A Batch of Six
Part of the Counters and Numbers section of Coddy's PLC Programming journey. Lesson 12 of 17.
Boxes are packed in batches of six. The belt should stop by itself when the sixth box reaches the Eye, and Start should begin the next batch.
Set the counter's PV to 6. Its Q turns TRUE on the sixth box, so a normally closed contact on C1.Q in the belt's rung breaks the seal-in. Give the counter R = Start: pressing Start clears the count, Q goes off, and the belt can run again. Every Start clears the count, even one in the middle of a batch, so a Stop part way through starts that batch over.
Challenge
Medium- set the counter's PV to 6 and its R to
Start - add a normally closed contact on
C1.Qto the belt's rung
The belt should stop on the sixth box, and Start should run a new batch.
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":"coil","tag":"Belt"}]},{"els":[{"t":"no","tag":"Belt"},{"t":"coil","tag":"Lamp"}]},{"els":[{"t":"no","tag":"Eye"},{"t":"CTU","inst":"C1","pv":9999,"r":""}]},{"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