Shared ladder program

Ladder logic: 3 rungs with CMP, XIC, OTL

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

Open a blank sandbox
RUNG 1Tank_Level> 800LPump_RunRUNG 2Tank_Level< 200UPump_RunRUNG 3Pump_RunPump_Output
Static preview of the shared program. The live editor is below.

What's in this program

CMPXICOTLOTUOTE
  • 3 rungs
  • Uses a compare instruction

Instructions used: CMP (compare instruction), XIC (examine-if-closed contact (normally open)), OTL (output latch coil), OTU (output unlatch coil), 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.