Menu
CoddyTech

Stop at the End

Part of the Counters and Numbers section of Coddy's PLC Programming journey. Lesson 13 of 17.

Now the end of the belt has a stopper: boxes no longer drop off, they wait there until the operator presses Take. With the stopper up, the Eye sits right under the waiting box, so it reads TRUE while a box waits.

The belt should stop while a box waits and start again on its own once the box is taken. A seal-in on Belt cannot do that: breaking it with the Eye would need Start again. So seal in a memory bit Run instead, and let the belt follow Run and the Eye:

Run says the line is switched on. Belt says the line is actually moving.

challenge icon

Challenge

Hard
  • seal in a memory bit Run in place of Belt, with Start, Stop and a normally closed C1.Q
  • Belt runs while Run is on and the Eye is clear

Test it: let a box reach the stopper, press Take.

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

Practice on your own: PLC playground