Supported ST syntax
Supported Structured Text syntax
Section titled “Supported Structured Text 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 BlinkVAR 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 functionEND_IFEND_PROGRAM