• IN < 0
• IN is NaN (Not a Number)
Otherwise, OK is set OFF.
Input Output
OK Enable
SQROOT
10.5.4.1 Parameters of the Square Root Function
Input/ Output
Choices
Description
enable flow
When the function is enabled, the operation is
performed.
IN
All data types: R, AI, AQ,
constant
INT data type only: I, Q,
M, T, G
A constant or reference for the value whose
square root is to be calculated. If IN is less than
zero, the function will not pass power flow.
Range for constants is minimum/maximum DINT
for double-precision signed integer operations.
ok
flow, none
The OK output is energized when the function is
performed without overflow, unless an invalid
operation occurs.
Q
All data types: R, AI, AQ
INT data type only: I, Q,
M, T, G
Output Q contains the square root of IN.
10.5.4.2 Example
In the example, the square root of the integer number located at %AI001 is placed into the
result located at %R0003 whenever %I0001 is ON.
%I0001
%AI001
SQROOT
INT
IN Q %R0003
10.5.5 Math and Numerical Functions Trigonometric
Functions
There are six Trigonometric functions: Sine, Cosine, Tangent, Inverse Sine, Inverse
Cosine, and Inverse Tangent.
10.5.5.1 Sine, Cosine, and Tangent
When a Sine, Cosine, or Tangent function receives power flow, it operates on IN, whose
units are radians, and stores the result in output Q. Both IN and Q are floating-point
values.
Instruction Set Reference GFK-1503E User Manual 167
For public disclosure