Shared ladder program

Ladder logic: 2 rungs with CMP, XIO, XIC

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

Open a blank sandbox
RUNG 1Fill_Actual≥ Fill_TargetFill_DoneRUNG 2Fill_DoneFill_EnableFill_Valve
Static preview of the shared program. The live editor is below.

What's in this program

CMPXIOXICOTE
  • 2 rungs
  • Uses a compare instruction

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