Topic
Languages
The IEC 61131-3 languages and when each one fits: ladder, Structured Text, Function Block Diagram and Sequential Function Chart.
6 articles
Structured Text examples: 12 complete IEC 61131-3 programs you can run
Learn Structured Text from complete programs, not fragments: a seal-in, TON, TOF and CTU, a CASE state machine, analog scaling with LIMIT, a FOR loop over an array, your own FUNCTION_BLOCK, RETAIN memory, two tasks, and a tank fill with hysteresis. All twelve below compile on the LADV IEC 61131-3 compiler, and each opens in a browser lab with one click.
12 min readWhat does IEC 61131-3 compliant mean? Editions, statements and PLCopen
IEC 61131-3 compliant means the vendor claims its programming system implements the parts of the standard listed in its own compliance statement: feature tables saying what is supported, plus the values it chose where the standard leaves a choice. The standard itself does not certify anyone. Independent certification exists through PLCopen, and it covers a stated subset, so two compliant products can still differ.
9 min readLadder logic to Structured Text: converters, rules and pitfalls
Most rungs convert mechanically: series contacts become AND, a parallel branch becomes OR in brackets, an OTE becomes an assignment that runs every scan, and OTL or OTU become an IF with no ELSE. Timers, counters and one-shots become function block instances that must also be called every scan. A converter handles the simple rungs; test timers, edges and rung order yourself.
10 min readThe five IEC 61131-3 languages, and when each is right
IEC 61131-3 defines Ladder Diagram, Function Block Diagram, Sequential Function Chart, Structured Text and Instruction List. Ladder dominates discrete machine control because maintenance staff read it; Structured Text suits calculation and data handling; SFC suits sequences with clear steps; FBD suits process and signal flow; Instruction List is deprecated and should not be used for new work.
7 min readStructured Text for people who think in ladder
Map the concepts directly: a rung becomes an assignment guarded by a boolean expression, a series of contacts becomes AND, a parallel branch becomes OR in brackets, and a latch becomes an IF block rather than an assignment. Timers become function block instances that must be declared, which is the one genuinely new idea.
7 min readSequential Function Chart: when your machine has steps
Use SFC when the process has distinct steps with clear transitions between them: batch processes, machine start-up sequences, and any cycle where 'where are we' is a question operators ask. It replaces the step-counter-and-comparison pattern that ladder forces, making the current state explicit and the transitions visible.
6 min read