Shared ladder program

Ladder logic: 3 rungs with rising-edge, CMP, XIC

A runnable ladder logic program with 3 rungs using rising-edge, CMP, XIC, CTU, OTE, RES. Open it in the free browser PLC simulator to edit, run and fork it. No install, no account.

Open a blank sandbox
RUNG 1PIn1CTU C1PRE 4RUNG 2C1.ACC≥ 4Out2RUNG 3In2RESC1
Static preview of the shared program. The live editor is below.

What's in this program

rising-edgeCMPXICCTUOTERES
  • 3 rungs
  • 2 timers
  • 1 counter
  • 2 data registers
  • Uses a compare instruction

Instructions used: rising-edge (one-shot rising-edge contact), CMP (compare instruction), XIC (examine-if-closed contact (normally open)), CTU (count-up counter), OTE (output energise coil), RES (reset a timer or counter).

Edit & run it live

Loading the interactive editor…

More example programs

Want to build your own? Open the free ladder logic sandbox.