Shared ladder program

Ladder logic: 3 rungs with rising-edge, CMP, ADD

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

Open a blank sandbox
RUNG 1PJam_DetectADD Jam_CountJam_Count + 1RUNG 2Jam_Count≥ 3Call_MaintenanceRUNG 3PAck_PBCLR Jam_Count:= 0
Static preview of the shared program. The live editor is below.

What's in this program

rising-edgeCMPADDOTECLR
  • 3 rungs
  • Uses a compare instruction

Instructions used: rising-edge (one-shot rising-edge contact), CMP (compare instruction), ADD (add two values), OTE (output energise coil), CLR (clear a register).

Edit & run it live

Loading the interactive editor…

More example programs

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