Ladder Logic (IEC 61131-3:2013)
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].
Snapshot Ladder Logic (IEC 61131-3:2013) — released 2013 · lifecycle current (the third edition of the standard)
Family Ladder Logic — shelf: Embedded and Real-Time
The language targets bare hardware, fixed timing, or a certification regime for a safety-critical system. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Trajectory IEC 61131-3:1993 (1993 — first edition) · IEC 61131-3:2013 (2013 — assessed release; the third edition)
Tags
Use — Embedded
Paradigm — Imperative
Platform — Embedded target
Lifecycle — Current
Memory — Manual
Typing — Static, weak
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Ladder Logic (IEC 61131-3:2013); an unmarked link is the current reference for the language.
Landing page
Specification and reference
1 Assessment
This page assesses Ladder Logic in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 69.1/100 · Ecosystem coupling 68.0/100 · Engineering readiness 32.2/100
1.1 Core coupling
1.1.1 Type
- ❌ The type is a PLC data type:
BOOL,INT, andREALare checked by the vendor compiler (T2) - ❌ There are no sum types (T4)
- ❌ There are no generics (T5)
- ❌ There is no namespace: A global tag shares one controller-wide space, and a POU’s local variables are the only scope (T6)
1.1.2 Construction
- ❌ The I/O image is global: Every rung reads and writes the same process image (C1)
- ❌ A tag is writable from any rung (C2)
1.1.3 Memory
- ❌ There is no scope-exit release: A resource is a coil or an instruction the scan resets (M3)
- ❌ There is no ownership model: A tag is shared by every rung (M4)
1.1.4 Error
- ❌ A fault bit is the failure path: The program checks a bit, and no structure carries the failure (Er1)
1.1.5 Concurrency
- ❌ The scan is the only thread: One pass reads the inputs, executes the rungs, and writes the outputs (K1)
1.1.6 Platform
- ❌ A program runs on one controller family: The vendor’s runtime and I/O modules are the platform (P1)
- ✅ The standard is published: IEC 61131-3 defines the languages and the program model, and the text is sold by the IEC
- ❌ Ordinary application work is out of reach: There is no file, socket, or heap (P4)
1.1.7 Trade-offs (not coupling)
- The rung is the program: A network of contacts and coils over one memory map
- The scan is the contract: The cycle time bounds every response
- The vendor is the platform: A project, a runtime, and an I/O module set come from one supplier
- The standard is shared, the implementations are not: A program does not move between vendors
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ A scan completes in a bounded time: The cycle is deterministic
1.2.2 Ecosystem
- ❌ The toolchain is proprietary: A vendor sells the IDE and the runtime (Ec4)
- ❌ The IDE is locked to the vendor: A project does not move between vendors unchanged (Ec5)
- ❌ A controller runs a program for decades: The installed base keeps old firmware (Ec7)
- ❌ A compiled PLC library binds to a version: Beckhoff ships libraries as *.compiled-library with a four-part version, increments the major digit when a new version is incompatible with the previous one, and fixes the version a project uses when the configuration activates on the target [5], [6] (Ec8)
1.2.3 Evolution
- ❌ The standard moves slowly: The third edition is from 2013 (V4)
1.2.4 Domain
- ❌ The domain is industrial control: A machine, a line, or a process (D1)
- ❌ The scan and the I/O image set the architecture: A network of rungs over a fixed memory map (D3)
1.2.5 Learning
- ✅ An electrician reads a rung: The notation mirrors a relay circuit
1.2.6 Syntax
- ❌ The notation is graphical and verbose: A network of contacts and coils (S1)
1.2.7 Testing
- ✅ The IDE simulates the controller: A rung is forced and watched
1.2.8 Security
- ⚠️ A tag has no access control inside the program
- ❌ IEC 61131-3 integer types wrap modulo the declared width, the scan cycle never seeing the carry (Q4)
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| structured-text and IL source | source | no | Source builds inside the vendor toolchain |
| compiled-library | compiled | yes | no — Beckhoff ships PLC libraries as *.compiled-library with a four-part version, increments the major digit when a new version is incompatible with the previous one, and fixes the library version a project uses when the configuration activates on the target [5] [6] |
1.3 Engineering readiness
1.3.1 Reproducibility
- ❌ A project is downloaded to a controller: The artifact is a vendor project file (Y1)
- ❌ A dependency is a firmware version: Nothing in the program pins it (Y2)
1.3.2 Supply chain
- ❌ A project file carries no signature (Y3)
1.3.3 Observability
- ❌ There is no tracing standard (Y5)
- ❌ There is no structured logging (Y6)
1.3.4 Feedback
- ✅ The vendor IDE ships online monitoring, forcing, and logic debug. (Y13)
- ✅ The compile-download cycle to the PLC is seconds. (Y7)
- ⚠️ Editor analysis is the IDE’s lint set, not a language service.
1.3.5 Interop
- ❌ There is no portable target: A program runs on one controller family (Y10)
1.3.6 Governance
- ❌ The vendors govern the implementations (Y11)
- ❌ The standard is sold, not open (Y12)
- ❌ Semantics rest on the standard-plus-vendor pair: the IEC standard enumerates implementation-dependent behavior, and no published conformance suite runs against the vendor’s runtime (Y17)
- ❌ The standard publishes the grammar, the compilers do not publish the parser: analysis runs on the vendor’s closed compilers (Y19)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
- ⚠️ No independent energy or time benchmark for the language is recorded.
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
- ❌ Sparse public training data: models write it less reliably than a mainstream language [7].
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified or standards-qualified path for safety-critical systems.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | — | 0 |
T2 |
weak static | language | ✅ | −8 | |
T3 |
dynamic/duck dispatch | language | — | 0 | |
T4 |
no sum types | language | ✅ | −4 | |
T5 |
no generics | language | ✅ | −4 | |
T6 |
no namespaces | language | ✅ | −8 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | — | 0 | |
T11 |
no module boundary | language | — | 0 | |
T12 |
no effect tracking | language | — | 0 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | — | 0 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | −6.9 (−24) | ||||
| Construction | C1 |
global mutable state by default | language | ✅ | −15 |
C2 |
no immutability by default | language | ✅ | −4 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | −5.4 (−19) | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | — | 0 | |
M3 |
no RAII | language | ✅ | −4 | |
M4 |
no ownership model | language | ✅ | −8 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | −3.4 (−12) | ||||
| Error | Er1 |
no structured path | language | ✅ | −15 |
Er2 |
unchecked exceptions only | language | — | 0 | |
Er3 |
errors ignored/non-exhaustive | language | — | 0 | |
Er4 |
no composable result type | language | — | 0 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −4.3 (−15) | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | ✅ | −15 |
K2 |
shared mutable state default | language | — | 0 | |
K3 |
manual sync no race detection | runtime | — | 0 | |
K4 |
no structured concurrency | language | — | 0 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | −4.3 (−15) | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | ✅ | −15 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | ✅ | −8 | |
| Platform cost | −6.6 (−23) |
Core coupling score: 69.1/100 — 108 of the 350 inventory points are present, so the axis cost is 100 × 108 ÷ 350 = 30.9 and the score is 100 − 30.9. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | — | 0 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | 0 | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | — | 0 | |
Ec3 |
small/niche/discontinued | context | — | 0 | |
Ec4 |
proprietary | context | ✅ | −8 | |
Ec5 |
platform-locked tooling | context | ✅ | −8 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | ✅ | −8 | |
Ec8 |
unpromised binary boundary | context | ✅ | −8 | |
Ec9 |
unpromised data boundary | context | — | 0 | |
| Ecosystem cost | −12.5 (−32) | ||||
| Evolution | V1 |
breaking changes | language | — | 0 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | — | 0 | |
V4 |
glacial standards | context | ✅ | −4 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | — | 0 | |
| Evolution cost | −1.6 (−4) | ||||
| Domain | D1 |
domain/vendor lock-in | context | ✅ | −15 |
D3 |
framework forces architecture | context | ✅ | −8 | |
| Domain cost | −9.0 (−23) | ||||
| Learning | L1 |
steep | context | — | 0 |
L2 |
large surface/multi-paradigm | context | — | 0 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | 0 | ||||
| Syntax | S1 |
verbose | language | ✅ | −8 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | −3.1 (−8) | ||||
| Testing | G1 |
weak tooling | context | — | 0 |
G2 |
poor debugging | context | — | 0 | |
G3 |
runtime-only errors | context | — | 0 | |
G4 |
no published monotonic clock | runtime | — | 0 | |
| Testing cost | 0 | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | — | 0 | |
Q3 |
known vulnerability/injection | context | — | 0 | |
Q4 |
silent integer overflow | language | ✅ | −15 | |
| Security cost | −5.9 (−15) |
Ecosystem coupling score: 68.0/100 — 82 of the 256 inventory points are present, so the axis cost is 100 × 82 ÷ 256 = 32.0 and the score is 100 − 32.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | ✅ | −15 |
Y2 |
dependencies not pinned | context | ✅ | −8 | |
Y14 |
no toolchain version pin | context | — | 0 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | −13.5 (−23) | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | — | 0 | |
Y16 |
no advisory feed | context | ✅ | −8 | |
| Supply chain cost | −13.5 (−23) | ||||
| Observability | Y5 |
no stable tracing standard | context | ✅ | −8 |
Y6 |
no structured logging | context | ✅ | −4 | |
Y15 |
no post-mortem diagnostics | runtime | ✅ | −8 | |
| Observability cost | −11.7 (−20) | ||||
| Feedback | Y7 |
slow build | context | — | 0 |
Y8 |
no fast in-editor analysis | context | — | 0 | |
Y13 |
no bundled debugger | context | — | 0 | |
| Feedback cost | 0 | ||||
| Interop | Y9 |
no foreign-function interface | language | — | 0 |
Y10 |
no portable target | context | ✅ | −4 | |
| Interop cost | −2.3 (−4) | ||||
| Governance | Y11 |
single-vendor governance | context | ✅ | −15 |
Y12 |
closed specification | context | ✅ | −15 | |
Y17 |
no conformance mechanism | context | ✅ | −8 | |
Y19 |
no published parser | context | ✅ | −8 | |
| Governance cost | −26.9 (−46) |
Engineering readiness score: 32.2/100 — 116 of the 171 inventory points are present, so the axis cost is 100 × 116 ÷ 171 = 67.8 and the score is 100 − 67.8. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: Ladder Logic is an industrial control language: the scan, the I/O image, and the rung notation make a machine’s logic readable to an electrician, and the cycle is deterministic. What it charges is the global tag space, the fault-bit path, the single scan thread, the vendor runtime, and a standard that has not moved since 2013. Main strength: a notation the plant can read. Main weakness: the program is bound to one controller family.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193