beckhoff TwinCAT 2 PLC Control — 2.2.3 Structured Text (ST)

A Brief Introduction to TwinCAT PLC Control The evaluation of expression takes place by means of processing the operators according to certain binding rules. The operator with the strongest binding is processed first, then the operator with the next strongest binding, etc., until all operators have been processed. Operators with equal binding strength are processed from left to right. Below you find a table of the ST operators in the order of their binding strength: There are the following instructions in ST, arranged in a table together with example: TwinCAT 2 PLC Control 19 Version:

1.0 Operation Symbol Binding strength Put in parentheses (expression) Strongest binding Function call Function name (parameter list) Exponentiation EXPT Negate Building of complements - NOT Multiply Divide Modulo * / MOD Add Subtract + - Compare , = Equal to Not Equal to = Boolean AND AND Boolean XOR XOR Boolean OR OR Weakest binding