Menu
CoddyTech

The Door Opens

Part of the Latches, Edges and Interlocks section of Coddy's PLC Programming journey. Lesson 15 of 20.

A garage door: one motor drives it up (MotorUp) or down (MotorDown). Two limit switches tell the PLC where it is: UpLimit is TRUE when the door is fully open, DownLimit when it is fully closed.

A limit switch stops a motor at the end of its travel. Without one, the motor keeps pushing against the top until something bends or burns. Here the limit switches read TRUE at the end of travel; many real machines wire them NC, like Stop, so a broken wire stops the motor too.

A press of Open starts the door and the seal-in keeps it going. At the top, UpLimit turns TRUE, the normally closed contact opens, and the motor stops.

challenge icon

Challenge

Easy

A press of Open runs MotorUp. It keeps running, and stops when UpLimit turns TRUE.

Try it yourself

{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[]}]}

All lessons in Latches, Edges and Interlocks

Practice on your own: PLC playground