Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)
Chapter 6
Example:
Calculate the square root of value_1 and place the result in sqr_result.
Relay Ladder
Structured Text
sqr_result := SQRT(value_1);
Function Block
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
285