Shared ladder program

Ladder logic: 4 rungs with XIC, XIO, OTL

A runnable ladder logic program with 4 rungs using XIC, XIO, OTL, TON, OTU, RES. Open it in the free browser PLC simulator to edit, run and fork it. No install, no account.

Open a blank sandbox
RUNG 1PartDetect_SensorLStretch_LatchRUNG 2Stretch_LatchTON Stretch_Timer50 msRUNG 3Stretch_Timer.DNUStretch_LatchRESStretch_TimerRUNG 4Stretch_LatchPart_Count.DNCTU Part_CountPRE 9999
Static preview of the shared program. The live editor is below.

What's in this program

XICXIOOTLTONOTURESCTU
  • 4 rungs
  • Uses parallel branches (OR logic)

Instructions used: XIC (examine-if-closed contact (normally open)), XIO (examine-if-open contact (normally closed)), OTL (output latch coil), TON (on-delay timer), OTU (output unlatch coil), RES (reset a timer or counter), CTU (count-up counter).

Edit & run it live

Loading the interactive editor…

More example programs

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