The Safety Beam
Part of the Latches, Edges and Interlocks section of Coddy's PLC Programming journey. Lesson 19 of 20.
A door must never come down on a car. A light beam crosses the doorway low down. Beam is wired like Stop: TRUE while the beam is clear, FALSE while a car breaks it.
Two changes make the door safe:
- a normally open
Beamcontact on the down rung, so a blocked beam stops the door - a path with a normally closed
Beambeside Open, so a blocked beam opens it again
For one scan the up rung waits, because the interlock still sees MotorDown on. The down rung drops it, and on the next scan the door starts back up.
Challenge
MediumProtect the car: with a car in the doorway the door must not close, and if a car drives in while it closes, it stops and opens again. Test it with Car in the doorway on the machine.
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[{"t":"par","branches":[[{"t":"no","tag":"Open"}],[{"t":"no","tag":"MotorUp"}]]},{"t":"no","tag":"Stop"},{"t":"nc","tag":"UpLimit"},{"t":"nc","tag":"MotorDown"},{"t":"coil","tag":"MotorUp"}]},{"els":[{"t":"par","branches":[[{"t":"no","tag":"Close"}],[{"t":"no","tag":"MotorDown"}]]},{"t":"no","tag":"Stop"},{"t":"nc","tag":"DownLimit"},{"t":"nc","tag":"MotorUp"},{"t":"coil","tag":"MotorDown"}]}]}All lessons in Latches, Edges and Interlocks
4Project: Garage Door
The Door OpensThe Door ClosesThe Door InterlockStop the DoorThe Safety BeamThe Remote ButtonPractice on your own: PLC playground