User Manual
Chapter 10
GFK-1503F
Jan 2020
Instruction Set Reference
146
Figure 128
10.5.4
Math and Numerical Functions Square Root
The Square Root function finds the square root of a value. When the function receives power
flow, the value of output Q is set to the integer portion of the square root of the input IN.
The output Q must be the same data type as IN.
The Square Root function operates on these types of data:
INT
Signed integer
DINT
Double precision signed integer
REAL
Floating Point
OK is set ON if the function is performed without overflow, unless one of these invalid REAL
operations occurs:
•
IN < 0
•
IN is NaN (Not a Number)
Otherwise, OK is set OFF.
Figure 129
Parameters of the Square Root Function
Input/
Output
Choices
Description
enable
flow
When the function is enabled, the operation is performed.