Shared ladder program

Ladder logic: 2 rungs with CMP, XIC, OTE

A runnable ladder logic program with 2 rungs using CMP, 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 1Parts_Left< 20Level_ValidLow_Stock_LampRUNG 2Parts_Left< 5Level_ValidFeeder_Stop
Static preview of the shared program. The live editor is below.

What's in this program

CMPXICOTE
  • 2 rungs
  • Uses a compare instruction

Instructions used: CMP (compare instruction), 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.