Warning Before a Start
Part of the Timers section of Coddy's PLC Programming journey. Lesson 12 of 18.
Before a big machine moves, it warns the people around it. A horn sounds for a few seconds, and only then does the machine start.
Latch a Run bit from the start button. A TON on Run starts the machine when it is done, and the horn sounds while Run is on but the timer is not done yet:
When T1.Q turns on, the horn stops and the machine starts in the same scan. A stop drops Run, and with it the horn, the timer and the machine.
Challenge
EasyPB1 starts the machine (Green), PB2 stops it. Before Green lights, sound the Horn for 2 s. Green lights when the horn stops and stays lit until PB2.
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[]}]}This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Timers
4Project: Pedestrian Crossing
Green Until PressedAmber Before RedRed and WalkClear the CrossingThe Wait LampNight ModePractice on your own: PLC playground