Shared ladder program

Ladder logic: 2 rungs with CMP, XIC, rising-edge

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

Open a blank sandbox
RUNG 1Recipe_Loaded≠ Recipe_SelectedCycle_IdleReload_NeededRUNG 2Reload_NeededPLoad_PBMOV Recipe_Loaded:= Recipe_S…
Static preview of the shared program. The live editor is below.

What's in this program

CMPXICrising-edgeOTEMOV
  • 2 rungs
  • Uses a compare instruction

Instructions used: CMP (compare instruction), XIC (examine-if-closed contact (normally open)), rising-edge (one-shot rising-edge contact), OTE (output energise coil), MOV (move value into a register).

Edit & run it live

Loading the interactive editor…

More example programs

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