Menu
CoddyTech

Two Coils, One Tag

Part of the First Rungs section of Coddy's PLC Programming journey. Lesson 17 of 20.

What if two rungs drive the same output?

Each scan solves rung 1, then rung 2. Rung 2 writes Green last, so it wins: with PB1 held and PB2 not, rung 1 turns Green on and rung 2 turns it off again before the outputs are written. PB1 seems to do nothing. The editor warns about it under the rung.

The fix: one coil per output, and put the conditions together on its rung.

challenge icon

Challenge

Easy

This program is broken: PB1 does nothing. Make Green light from PB1 or PB2, with one coil.

Try it yourself

{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[{"t":"no","tag":"PB1"},{"t":"coil","tag":"Green"}]},{"els":[{"t":"no","tag":"PB2"},{"t":"coil","tag":"Green"}]}]}

All lessons in First Rungs

Practice on your own: PLC playground