IEC Structured Text
16
IEC Structured Text
ST is a high level textual editor, which has the appearance of PASCAL but is a dedicated lan-
guage for industrial control applications.
POUs, Functions and Function Blocks can be created using ST.
IEC Structured Text example:
IF .....THEN ..... ELSE conditions
CASE ...ELSE .... END_CASE structures
REPEAT
RETURN
Expression Evaluation
Variable Declaration etc
Complex mathematical expressions can be realised using these operators, in a few lines of text.
Structured Text Operators
16.1
Operator
(....)
Function(....) Parameter list of a function, function evaluation
**
-
NOT
*
/
MOD
+
-
<,>,<=,>=
=
<>
AND, &
XOR
OR
Training Manual GX IEC Developer
Description
Parenthesised expression
Exponentiation, ie raising to a power
Negation
Boolean compliment
Multiplication
Division
Modulus operation
Addition
Subtraction
Comparison operators
Equality
Non equality
Boolean AND
Boolean exclusive OR
Boolean OR
Structured Text Operators
Precedence
Highest
Lowest
16 - 1