Jam Alarm
Part of the Counters and Numbers section of Coddy's PLC Programming journey. Lesson 17 of 17.
Sometimes a box gets stuck. On an open belt a box crosses the Eye in under a second, so if the Eye stays blocked for 3 s while the belt runs, something is jammed. To make a jam here, the stopper is up and nobody takes the boxes: the first box stops under the Eye.
A jam must stop the belt and stay stopped until someone deals with it, so latch it: a set coil writes a BOOL Jam, a normally closed Jam breaks the belt's seal-in, and Start resets it.
Why latch? Once the belt stops, the timer's input goes FALSE and its Q drops. A plain coil would forget the jam a scan later.
Challenge
Hard- a BOOL
Jam, set when theEyeis blocked for 3 s while the belt runs - a normally closed
Jamin the belt's rung Startresets Jam
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"Wait","type":"BOOL"},{"name":"TallBoxes","type":"INT"},{"name":"ShortBoxes","type":"INT"},{"name":"C1","type":"CTU"},{"name":"T1","type":"TON"},{"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":"par","branches":[[{"t":"p","tag":"Tall"}],[{"t":"no","tag":"Wait"}]]},{"t":"nc","tag":"T1.Q"},{"t":"coil","tag":"Wait"}]},{"els":[{"t":"no","tag":"Wait"},{"t":"TON","inst":"T1","pt":"T#2400ms"}]},{"els":[{"t":"no","tag":"T1.Q"},{"t":"TP","inst":"T2","pt":"T#300ms"},{"t":"coil","tag":"Pusher"}]},{"els":[{"t":"p","tag":"Tall"},{"t":"math","op":"ADD","a":"TallBoxes","b":1,"dst":"TallBoxes"}]},{"els":[{"t":"p","tag":"Eye"},{"t":"math","op":"ADD","a":"ShortBoxes","b":1,"dst":"ShortBoxes"}]}]}This lesson includes a short quiz. Start the lesson to answer it and track your progress.
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