Shared ladder program

Ladder logic: 2 rungs with XIC, CMP, CPT

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

Open a blank sandbox
RUNG 1Scale_EnableCPT Level_PercentLevel_Raw * 100 / RUNG 2Level_Percent≥ 90High_Level_Alarm
Static preview of the shared program. The live editor is below.

What's in this program

XICCMPCPTOTE
  • 2 rungs
  • Uses a compare instruction

Instructions used: XIC (examine-if-closed contact (normally open)), CMP (compare instruction), CPT, 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.