Skip to content

Supported ST syntax

logiccloud supports the following Structured Text (ST) syntax according to the IEC 61131-3 standard. The pages below document only the constructs that the logiccloud transpiler and runtime actually support.

A small program brings the main elements together — variables, a standard function block instance, a conditional and a standard-function call:

PROGRAM Blink
VAR
pulse : TON; // standard on-delay timer
output : BOOL;
END_VAR
pulse(IN := NOT pulse.Q, PT := T#500ms);
output := pulse.Q;
IF output THEN
cycles := ADD(cycles, 1); // standard function
END_IF
END_PROGRAM