An expression is a construct that returns a value following its evaluation.
Expressions consist of operators and operands. In ⮫ Extended Structured Text (ExST), ⮫ Extended Structured Text (ExST), ⮫ Extended Structured Text (ExST), you can also use assignments as expressions. An operand can be a constant, variable, function call, or another expression.
Special ST expressions are also:
-
Access to
-
Elements of array variables
-
Components of a structure variable
-
Variables of a function block instance or a program
-
-
Method call
Examples
|
|
Constant, literal |
|
|
Variable |
|
|
Function call |
|
|
Expression |
|
|
In ExST: Assignment |
-
Evaluation of expressions