Clear the Crossing
Part of the Timers section of Coddy's PLC Programming journey. Lesson 16 of 18.
When Walk goes out, someone may still be halfway across. Real crossings keep the cars on red a little longer, so the road is clear before green: the all red time.
One more timer in the chain does it. T2.Q starts T3, and now T3.Q ends the request:
Red stays on through it, because Red reads T1.Q, which is on until Req resets.
Challenge
MediumAfter Walk goes out, keep the cars on Red for 2 s more before Green. Add a third timer and let it reset Req instead of T2.
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"Req","type":"BOOL"},{"name":"T1","type":"TON"},{"name":"T2","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":"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":"T2.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