Shared ladder program

Ladder logic: 5 rungs with CMP, XIC, MOV

A runnable ladder logic program with 5 rungs using CMP, XIC, MOV, TON, OTE. Open it in the free browser PLC simulator to edit, run and fork it. No install, no account.

Open a blank sandbox
RUNG 1Step= 0Start_PBMOV Step:= 10RUNG 2Step= 10TON Dwell3000 msRUNG 3Step= 10Dwell.DNMOV Step:= 20RUNG 4Step= 20Eject_SolRUNG 5Step= 20Eject_DoneMOV Step:= 0
Static preview of the shared program. The live editor is below.

What's in this program

CMPXICMOVTONOTE
  • 5 rungs
  • Uses a compare instruction

Instructions used: CMP (compare instruction), XIC (examine-if-closed contact (normally open)), MOV (move value into a register), TON (on-delay timer), OTE (output energise coil).

Edit & run it live

Loading the interactive editor…

More example programs

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