ExST assignment as expression
In ExST, TwinCAT allows the use of assignments as expressions, in extension to the IEC 61131-3 standard.
Examples:
| (*nVarInt1 and nVarInt2 obtain the value of nVarInt3 + 9*) |
| (*fVarReal1 and fVarReal2 obtain the value of nVarInt*) |
| (*incorrect assignment, the data types do not match!*) |
| (*b obtains the value of the Boolean expression i = 1 and is then checked in the if query*) |