Shared ladder program

Ladder logic: 2 rungs with XIC, CMP, TOD

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

Open a blank sandbox
RUNG 1Display_EnableTOD Display_WordTOD Parts_Ma…RUNG 2Parts_Made> 99999999Display_Overflow
Static preview of the shared program. The live editor is below.

What's in this program

XICCMPTODOTE
  • 2 rungs
  • Uses a compare instruction

Instructions used: XIC (examine-if-closed contact (normally open)), CMP (compare instruction), TOD, 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.