Ladder logic basics: contacts and coils
Industrial Control · Lesson 23 · Advanced
Purpose
Read and write ladder contacts/coils using Boolean semantics, scan order and single-writer discipline.
Learning objectives
- Trace data and energy paths
- Predict deterministic state changes
- Design maintainable panel implementation
- Verify before handover
A ladder contact instruction examines a Boolean value; it is not necessarily a physical contact. A coil writes a value or command according to rung truth and platform execution rules.
Core theory
Series examine instructions implement AND; parallel branches implement OR; a normally-closed/examine-if-off instruction tests the inverse state. Always name the underlying tag and physical interpretation.
PLC scans can make rung order, task order, latches and multiple writers significant. Assign each actuator command one controlled owner and use intermediate state logic.
Input bounce, output latency, communications updates, initialization, retentive memory and online edits must be considered. Safety logic needs its certified environment and validation.
| Term | Meaning | Symbol | Unit |
|---|---|---|---|
| Examine instruction | Program element testing a Boolean state | Not applicable | Not applicable |
| Coil | Instruction assigning or setting a Boolean result | Not applicable | Not applicable |
| Single writer | One controlled location responsible for a command value | Not applicable | Not applicable |
Assumptions: The supplied PLC behavior and equipment data are authoritative for the example; Safety functions are separately specified and validated.
- Invert: NOT StopFault = true.
- AND: true AND true = true.
- Output: RUN becomes true for this scan, subject to surrounding state and task rules.
RUN evaluates true in the supplied Boolean state.
Reasonableness check: The result follows the declared scan, wiring and assembly boundaries rather than assuming every platform behaves identically.
- Treating field input state and program contact instruction as the same thing
- Writing one output from several uncontrolled locations
- Using spare physical space as proof of thermal or EMC capacity
Where this appears in practice
PLC and panel engineering connects field signals, deterministic software, power/control distribution, safety functions, documentation and commissioning evidence.
Knowledge check
Does a normally-closed ladder instruction prove a physical NC contact is wired?
No. It tests an inverse Boolean; trace the tag and field circuit.
Answer: No. It tests an inverse Boolean; trace the tag and field circuit.
Practical exercise
Convert five rungs to Boolean expressions and identify multiple-writer, seal-in and restart defects.
Summary
- PLC logic operates on a sampled process image
- Panel layout is an electrical/thermal/EMC design
- Commissioning must prove hardware, software and safety behavior
Sources and review
- IEC 61131-3:2025: Programmable-controller languages: IEC; 2025; International
- IEC 60204-1:2016+AMD1:2021: Electrical equipment of machines: IEC; 6.1; International
- IEC 61439-1:2020: Low-voltage assemblies: general rules: IEC; 2020 with current corrigenda; International
Editorial review date: 2026-08-22. Professional electrical review is pending.