Menu
CoddyTech

Which One Wins

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

What if Start and Stop are pressed at the same time? Both rungs have power. The scan solves them top to bottom, so one coil writes, then the other writes over it. Only the last write reaches the output.

Here the set rung comes last, so Start wins. A stuck Start button would keep the motor running while someone presses Stop.

On a machine, Stop must always win. Put the reset rung below the set rung.

challenge icon

Challenge

Easy

In this program Start wins when both buttons are held. Move the rungs so that Stop wins and the motor stays off.

Try it yourself

{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[{"t":"nc","tag":"Stop"},{"t":"reset","tag":"Motor"}]},{"els":[{"t":"no","tag":"Start"},{"t":"set","tag":"Motor"}]}]}

All lessons in Latches, Edges and Interlocks

Practice on your own: PLC playground