Shared ladder program

Ladder logic: 4 rungs with CMP, XIC, SUB

A runnable ladder logic program with 4 rungs using CMP, XIC, SUB, ABS, TON, OTE. Open it in the free browser PLC simulator to edit, run and fork it. No install, no account.

Open a blank sandbox
RUNG 1SUB Temp_ErrorOven_Temp − Temp_Set…RUNG 2ABS Temp_DeviationABS Temp_Err…RUNG 3Temp_Deviation> 10Heat_EnableTON Dev_Delay5000 msRUNG 4Dev_Delay.DNTemp_Deviation_Alarm
Static preview of the shared program. The live editor is below.

What's in this program

CMPXICSUBABSTONOTE
  • 4 rungs
  • Uses a compare instruction

Instructions used: CMP (compare instruction), XIC (examine-if-closed contact (normally open)), SUB (subtract two values), ABS, TON (on-delay timer), 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.