The Wait Lamp
Part of the Timers section of Coddy's PLC Programming journey. Lesson 17 of 18.
A walker who presses the button wants to know it worked. The call box has a Wait lamp: it lights at the press and goes out when Walk lights.
You already have that state. Wait is lit while the request is on and the walk has not started, the same as the amber condition:
Good programs reuse state like this instead of adding more latches.
Challenge
MediumLight Wait from the press of WalkButton until Walk lights. It stays dark the rest of the time.
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"Req","type":"BOOL"},{"name":"T1","type":"TON"},{"name":"T2","type":"TON"},{"name":"T3","type":"TON"}],"rungs":[{"els":[{"t":"no","tag":"WalkButton"},{"t":"set","tag":"Req"}]},{"els":[{"t":"no","tag":"Req"},{"t":"TON","inst":"T1","pt":"T#3s"}]},{"els":[{"t":"no","tag":"T1.Q"},{"t":"TON","inst":"T2","pt":"T#5s"}]},{"els":[{"t":"no","tag":"T2.Q"},{"t":"TON","inst":"T3","pt":"T#2s"}]},{"els":[{"t":"nc","tag":"Req"},{"t":"coil","tag":"Green"}]},{"els":[{"t":"no","tag":"Req"},{"t":"nc","tag":"T1.Q"},{"t":"coil","tag":"Amber"}]},{"els":[{"t":"no","tag":"T1.Q"},{"t":"coil","tag":"Red"}]},{"els":[{"t":"no","tag":"T1.Q"},{"t":"nc","tag":"T2.Q"},{"t":"coil","tag":"Walk"}]},{"els":[{"t":"nc","tag":"Walk"},{"t":"coil","tag":"DontWalk"}]},{"els":[{"t":"no","tag":"T3.Q"},{"t":"reset","tag":"Req"}]}]}All lessons in Timers
4Project: Pedestrian Crossing
Green Until PressedAmber Before RedRed and WalkClear the CrossingThe Wait LampNight ModePractice on your own: PLC playground