EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

Arithmetic Operators

 

Overview

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.

Warning_Color.gifWARNING

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.

What Is in This Section?

This section contains the following topics:

oADD

oMUL

oSUB

oDIV

oMOD

oMOVE

oSIZEOF