MOD (Return Remainder of Division)
Instruction Description: Returns the remainder of an integer division operation. The value at the IN1 input is divided by the value at the IN2 input and the remainder is returned at the OUT output.
HMI Panel
OUT (Remainder)
1
Network 1: MOD Operation
MOD
EN
IN1
IN2
ENO
OUT
%MD10
IN1
IN2
NEG (Twos Complement) & ABS (Absolute Value)
NEG Description: Inverts the arithmetic sign of the value at parameter IN and stores the result in parameter OUT.
ABS Description: Calculates the absolute value of a signed integer or real number at parameter IN and stores the result in parameter OUT.
ABS Description: Calculates the absolute value of a signed integer or real number at parameter IN and stores the result in parameter OUT.
HMI Panel
NEG OUT
50
ABS OUT
50
Network 2: NEG & ABS Operations
NEG
EN
IN
ENO
OUT
%MD20
IN
ABS
EN
IN
ENO
OUT
%MD24
IN
CALCULATE (Math Equation)
Instruction Description: Creates a math function that operates on inputs (IN1, IN2, .. INn) and produces the result at OUT, according to the equation that you define.
HMI Panel
OUT Result
25
Network 3: CALCULATE Block
CALCULATE
EN
IN1
IN2
IN3
ENO
OUT
%MD30
IN1
IN2
IN3