Push at the Right Time
Part of the Counters and Numbers section of Coddy's PLC Programming journey. Lesson 15 of 17.
The Tall sensor is 600 mm before the pusher. At 250 mm a second, a tall box reaches the arm 2400 ms after it reaches the sensor. So wait 2400 ms, then stroke.
A TON cannot time it from Tall alone: the sensor is TRUE for under a second. Remember the box in a memory bit Wait: a P contact on Tall sets it, it seals itself in, and the timer's Q drops it. The TON times while Wait is TRUE, and its Q starts the stroke.
T1.Q is TRUE for one scan only, because it drops Wait. That is far too short for a stroke, so it starts the TP rather than driving the Pusher itself.
Challenge
Hard- a memory bit
Wait, set by a P contact onTalland sealed in untilT1.Q - a TON
T1of 2400 ms on Wait - start the Pusher's TP from
T1.Qin place of Tall
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"C1","type":"CTU"},{"name":"T2","type":"TP"}],"rungs":[{"els":[{"t":"par","branches":[[{"t":"no","tag":"Start"}],[{"t":"no","tag":"Belt"}]]},{"t":"no","tag":"Stop"},{"t":"nc","tag":"C1.Q"},{"t":"coil","tag":"Belt"}]},{"els":[{"t":"no","tag":"Belt"},{"t":"coil","tag":"Lamp"}]},{"els":[{"t":"no","tag":"Eye"},{"t":"CTU","inst":"C1","pv":6,"r":"Start"}]},{"els":[{"t":"move","src":"C1.CV","dst":"Display"}]},{"els":[{"t":"no","tag":"Tall"},{"t":"TP","inst":"T2","pt":"T#300ms"},{"t":"coil","tag":"Pusher"}]}]}All lessons in Counters and Numbers
3Project: Sorting Conveyor
Run the BeltCount the BoxesA Batch of SixStop at the EndSpot Tall BoxesPush at the Right TimeTally by SizeJam AlarmPractice on your own: PLC playground