The following operators, prescribed by the IEC1131-3 standard, are available:
oADD
oMUL
oSUB
oDIV
oMOD
oMOVE
Additionally, there is the following standard-extending operator:
oSIZEOF
Consider possible overflows of arithmetic operations in case the resulting value exceeds the range of the data type used for the result variable. This may result in low values being written to the machine instead of high values or vice versa.
|
UNINTENDED EQUIPMENT OPERATION |
Always verify the operands and results used in mathematical operations to avoid arithmetic overflow. |
Failure to follow these instructions can result in death, serious injury, or equipment damage. |
This section contains the following topics:
oADD
oMUL
oSUB
oDIV
oMOD
oMOVE