ST cheatsheet
Overview
---------------------------------
PROGRAM stexample
VAR
x : BOOL;
END_VAR
---------------------------------
x := TRUE;
REPEAT
x := FALSE;
UNTIL x := FALSE;
END_REPEAT;
---------------------------------Comment
// single-line comment<expression>; /* Comment after end of ST line */
<statement>; (* Comment after end of ST line *)/* Multiple line comment:
...
*/
(* Multiple line comment:
...
*)DataType
Type conversion
Operator
IF
CASE
FOR
WHILE
Last updated
Was this helpful?