Shared ladder program

Ladder logic: 4 rungs with rising-edge, CMP, MOV

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

Open a blank sandbox
RUNG 1PRead_InputsMOV Sensor_Word:= 10RUNG 2NOT Sensor_InvertedNOT Sensor_W…RUNG 3AND Sensors_ClearSensor_I… and 15RUNG 4Sensors_Clear= 5Expected_Pattern
Static preview of the shared program. The live editor is below.

What's in this program

rising-edgeCMPMOVNOTANDOTE
  • 4 rungs
  • Uses a compare instruction

Instructions used: rising-edge (one-shot rising-edge contact), CMP (compare instruction), MOV (move value into a register), NOT, AND, 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.