Spot Tall Boxes
Part of the Counters and Numbers section of Coddy's PLC Programming journey. Lesson 14 of 17.
Back to the open end, with the batch program. Now the boxes come in two sizes, and tall ones must go into the side bin. The Tall sensor sits high over the belt, so only a tall box breaks it: short boxes pass under.
The Pusher arm takes 300 ms to stroke out. A TP gives it exactly that: one 300 ms pulse on each rising edge of its input.
Run it and watch closely: the arm strokes once for each tall box, but the box is still far from the arm, and the stroke can even knock the short box ahead of it into the side bin. The next lesson fixes the timing.
Challenge
MediumAdd a rung: each tall box at the Tall sensor gives the Pusher one 300 ms stroke. Short boxes must not move it.
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"C1","type":"CTU"}],"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"}]}]}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