Ladder logic simulator

The classic plant-floor circuits running a real scan: pick one, flip the inputs, and watch power flow through the rungs.

Result

Motor: OFF
Scans0

Scan order matters: rungs solve top to bottom, and an output written on rung 0 is already visible to rung 1 in the same sweep.

Start / Stop with seal-in — live scan
StartMotorStopMotor0 — Start OR the Motor output BIT sealing itself in — not a starter auxiliary — through the (NC) stop

Formula sources: Standard ladder logic per IEC 61131-3: XIC/XIO contacts, OTE coils, TON timers, CTU counters

A teaching simulator running a free scan — not a substitute for your PLC's programming software or for testing on de-energized equipment. The sweep order and instruction behavior (timer resets, edge detection) follow the common Allen-Bradley-style semantics, but the scan PERIOD here is 50 ms at its fastest, where a real processor sweeps in single-digit milliseconds. That gap is deliberate and visible: it is what makes the cycle watchable.