10.6.2.2
Parameters for the Range Function
Input/ Output
Choices
Description
enable
flow
When the function is enabled, the operation is
performed.
L1
R, AI, AQ, constant
INT and WORD only: I,
Q, M, T, G
L1 contains the start point of the range.
Constants must be integer values for double
precision signed integer operations.
L2
R, AI, AQ, constant
INT and WORD only: I,
Q, M, T, G
L2 contains the end point of the range.
Constants must be integer values for double
precision signed integer operations.
IN
R, AI, AQ
INT and WORD only: I,
Q, M, T, G
IN contains the value to be compared against the
range specified by L1 and L2.
Q
flow, none
Output Q is energized when the value in IN is
within the range specified by L1 and L2,
inclusive.
10.6.2.3
Example
In this example, when the Range function receives power flow from relay %I0001, the
function determines whether the value in %AI001 is within the range 0 to 100. %R0001
contains the value 100. %R2 contains the value 0.
%I0001
%R0001
%R0002
%Q0001
RANGE
INT
L1 Q
L2
IN
%AI001
Output coil %Q0001 is On only if the value presently in %AI0001 is within the range 0 to
100.
IN Value %AI001
Q State %Q0001
< 0
OFF
0 — 100
ON
> 100
OFF
Instruction Set Reference
GFK-1503E User Manual 173
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: ......