Ladder Logic
Ladder logic, LD is a PLC programming language that represents control logic as rungs of a virtual ladder, with input contacts on the left and output coils on the right. It originated in the 1970s as a direct visual analogue of relay-logic schematics, easing the transition for electricians moving from hardwired relay panels to programmable controllers. It remains the most widely-used PLC language in industry.
Read one of your own drawings.
Drop a P&ID, instrument index, or schedule. Tagsight reads it to the tag and opens a workspace you keep when you sign in.
PDF · DWG · DXF · TIFF · PNG · XLSX
Ladder logic is the oldest of the IEC 61131-3 controller languages and still the most widely used, because it was designed in the 1970s to look exactly like the relay schematics the electricians of the day already read. Input contacts down the left, output coils on the right, current flowing across each rung. That heritage is the whole explanation for its staying power. Ladder is poor at arithmetic, awkward for long sequences, and clumsy for reusable code, but it is unmatched at letting a maintenance technician stand in front of a running machine in the middle of the night and trace why an output is not energizing, contact by contact, the same way they would trace a relay panel. Decades on, the workforce that maintains and modifies plant logic is still trained ladder-first, and that troubleshooting accessibility is a real operational asset rather than nostalgia. Modern practice does not write ladder-only. It writes ladder-mostly, mixing structured text for the math, function block for control loops, and sequential function chart for state machines, while keeping the I/O handling and the simple interlocks in ladder where the maintainer can read them. Safety-rated variants exist on most platforms, restricted to a certified subset of instructions. The connection to the controls dataset is direct on import. A clean I/O list with correct signal classes is what populates the controller tag database that the ladder program addresses, and a tag imported as the wrong class is a rung that will never behave as drawn.
Why ladder won and stayed won.
Electricians in 1975 already read relay-ladder schematics. Allen-Bradley's PLC-2 let them write the same diagram on a CRT and execute it in a controller. Forty years on, the workforce that maintains and modifies machine and process logic still leans heavily on people whose first PLC training was in ladder. Ladder is bad at math, bad at sequencing, bad at large state machines, but extraordinarily good at letting a maintenance technician trace a wire-and-relay-equivalent at 2 AM. That troubleshooting accessibility is the durable advantage.
Where ladder breaks down.
Complex math, PID tuning, scaling, filtering is awkward in ladder. Structured text or function block is better. Multi-step sequences get unreadable in ladder past a certain length. SFC is better. Reusable code blocks are clumsier in ladder than in structured text. Modern projects mix languages. Ladder for I/O handling and simple interlocks, structured text for math and parsing, function block for control loops, SFC for state machines. Ladder-only is a legacy pattern. Ladder-mostly is current good practice.
Frequently asked.
Is ladder logic the same across all PLC vendors.
The basic concept yes. The syntax, instruction set, and tooling vary across Allen-Bradley, Siemens, Mitsubishi, Omron, and Schneider. Cross-vendor ladder code is rarely directly portable. IEC 61131-3 standardizes the core but vendor-specific extensions are universal.
Do safety PLCs use ladder.
Most do support a safety-rated ladder language, Studio 5000 GuardLogix safety ladder, Siemens F-Ladder, with restrictions on which instructions are SIL-certified. Function block is also common in safety logic. The safety language is a subset of the standard ladder language, with additional verification and certification on the instructions you're allowed to use.
What is the difference between ladder logic and relay logic.
Relay logic is the physical implementation using discrete electromechanical relays wired on a panel. Ladder logic is the software representation of the same circuit structure, executed inside a PLC. Ladder adopts the graphical notation of relay-ladder diagrams, contacts on the left rails, coils on the right to ease the transition for technicians familiar with relay panels. The electrical behavior is equivalent, but the PLC executes it deterministically in software without physical contacts.