Shared ladder program

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

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

Open a blank sandbox
RUNG 1PSim_LoadMOV Drive_Status:= 208RUNG 2Comms_OkBTD Drive_ModeBTD Drive_St…RUNG 3Drive_Mode= 5Mode_Is_Torque
Static preview of the shared program. The live editor is below.

What's in this program

rising-edgeXICCMPMOVBTDOTE
  • 3 rungs
  • Uses a compare instruction

Instructions used: rising-edge (one-shot rising-edge contact), XIC (examine-if-closed contact (normally open)), CMP (compare instruction), MOV (move value into a register), BTD, 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.