Arithmetic operationsPLCopen motion icon

Below are the standard operators that perform arithmetic operations:

+   Addition addition
-   Subtraction subtraction
*   Multiply multiplication
/   Divide division
- (NEG) integer negation (unary operator)

Below are the standard functions that perform arithmetic operations:

MIN get the minimum of two integers or an ANY
MAX get the maximum of two integers or an ANY
LIMIT bound an integer to low and high limits or an ANY
MOD modulo
ODD test if an integer is odd
SetWithin Force a value when within an interval