Math And Numerical Functions Square Root - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/ Output
enable
IHI
ILO
OHI
OLO
IN
ok
OUT
166
GFK-1503E
For public disclosure
10.5.3.1 Parameters of the Scaling Function
Choices
When the function is enabled, the operation is
flow
performed.
R ,AI, AQ, constant
IHI and ILO contain a constant or reference for
the upper and lower limits of the unscaled data.
These limits, together with the values for OHI
and OLO, are used to calculate the scaling factor
that will be applied to the input value IN.
R ,AI, AQ, constant
OHI and OLO contain a constant or reference for
the upper and lower limits of the scaled data.
IN contains a constant or reference for the actual
R, AI, AQ, constant
value to be scaled.
The OK output is energized when the function is
flow, none
performed without overflow.
Output OUTcontains the scaled equivalent of the
R, AI, AQ
input value.
10.5.3.2 Example
In the example, the registers %R0120 through %R0123 are used to store the high and low
scaling values. The input value to be scaled is analog input %AI0017. The scaled output
data is used to control analog output %AQ0017. The scaling is performed whenever %
I0001 is ON.
%I0001
INT
%R0120
IHI
%R0121
ILO
%R0122
OHI
%R0123
OLO
%AI0017
IN

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:
Signed integer
INT
Double precision signed integer
DINT
Floating Point
REAL
OK is set ON if the function is performed without overflow, unless one of these invalid
REAL operations occurs:
Description
_
OK
%AQ0017
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents