10.5.3.1
Parameters of the Scaling Function
Input/ Output
Choices
Description
enable
flow
When the function is enabled, the operation is
performed.
IHI
ILO
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.
OHI
OLO
R ,AI, AQ, constant
OHI and OLO contain a constant or reference for
the upper and lower limits of the scaled data.
IN
R, AI, AQ, constant
IN contains a constant or reference for the actual
value to be scaled.
ok
flow, none
The OK output is energized when the function is
performed without overflow.
OUT
R, AI, AQ
Output OUTcontains the scaled equivalent of the
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
%R0120
%R0121
%R0122
%R0123
%AI0017
OK
ILO
OHI
OLO
IN
%AQ0017
OUT
SCALE
_
INT
IHI
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:
166
GFK-1503E
VersaMax PLC User Manual
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......