Structured Text ⇄ Ladder Diagram · IEC 61131-3 · edit either side · by Joshua Ott
Structured text
examples
Inputs
Outputs this scan
Ladder diagram
every rung re-evaluates each scan
[ ] normally open — passes power when TRUE · [/] normally closed — passes power when FALSE green = energized this scan · arithmetic uses function blocks, not operators
an IF/ELSE in text becomes two rungs gated by the same variable and its complement
the diagram is editable: click a tag, pin, or coil to rename it · click a contact symbol
to flip [ ]/[/] · drag ⋮⋮ to reorder rungs · drag contacts to reorder them ·
× deletes · type any expression into a pin
diagram edits regenerate the text in flat rung form — complementary rungs collapse back to
IF/ELSE, comments are dropped