structured-text
7 posts
PLC Online Compiler: Write, Compile and Verify IEC 61131-3 in the Browser
What a PLC online compiler checks and why it matters: types, timer instances, duplicate coils and unreachable logic — compile IEC 61131-3 free in the browser.
Structured Text Examples: 10 Real PLC Programs Explained Line by Line
Ten structured text programming examples for PLC: start/stop, timers, counters, CASE state machines, FOR loops, scaling and alarms — explained line by line.
Why Ladder Logic Can't Loop, and the Four Ways Industry Works Around It
Ladder logic has no FOR loop by design. Why, the four workarounds plants use (AOIs, array instructions, one-per-scan, jumps), and our compiler's approach.
Structured Text (ST) PLC Programming: Syntax and Examples
Structured Text (ST) for PLCs: variables, IF/CASE, loops, timers and function blocks, with real examples and when to choose ST over ladder.
Structured Text to Ladder Logic Converter: How It Works (and How to Verify the Result)
How a structured text to ladder logic converter really works (parse, model, render), why hand translation drifts, and what the diagram can and cannot prove about your intent. Worked example: the three-wire start/stop circuit.
PLC Code Generators: What AI Can Draft — and What Must Be Verified
The trust problem with generated control logic, why a PLC code generator should produce drafts rather than artifacts, how a compile-and-repair loop works, a worked example of an ambiguous request and the assumptions it surfaces, and what gets refused.
One Rung or Five? How to Count Networks in Ladder Logic
A network is one output, not one condition. The reset-latch example shows why the same behaviour can be one rung or two, and how timers and math count.