Shared ladder program

Ladder logic: 3 rungs with XIC, XIO, MOV

A runnable ladder logic program with 3 rungs using XIC, XIO, MOV, NEG, CLR. Open it in the free browser PLC simulator to edit, run and fork it. No install, no account.

Open a blank sandbox
RUNG 1Jog_FwdJog_RevMOV Speed_Ref:= Jog_SpeedRUNG 2Jog_RevJog_FwdNEG Speed_RefNEG Jog_SpeedRUNG 3Jog_FwdJog_RevCLR Speed_Ref:= 0
Static preview of the shared program. The live editor is below.

What's in this program

XICXIOMOVNEGCLR
  • 3 rungs

Instructions used: XIC (examine-if-closed contact (normally open)), XIO (examine-if-open contact (normally closed)), MOV (move value into a register), NEG, 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.