Shared ladder program

Ladder logic: 5 rungs with CMP, XOR, OTE

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

Open a blank sandbox
RUNG 1XOR Input_ChangedInput_Wo… xor Input_Wo…RUNG 2Input_Changed≠ 0Something_MovedRUNG 3AND Watched_ChangedInput_Ch… and 12RUNG 4Watched_Changed≠ 0Watched_Input_MovedRUNG 5MOV Input_Word_Last:= Input_Wo…
Static preview of the shared program. The live editor is below.

What's in this program

CMPXOROTEANDMOV
  • 5 rungs
  • Uses a compare instruction

Instructions used: CMP (compare instruction), XOR, OTE (output energise coil), AND, 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.