Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)
Chapter 6
Example:
Place the absolute value of value_1 into value_1_absolute. In this example, the
absolute value of negative four is positive four.
Relay Ladder
Structured Text
value_1_absolute := ABS(value_1);
Function Block
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
291