
Comparator Instructions
The SG2 PLR includes a total of 15 separate comparator instructions that can be used throughout a
program. Each comparator has a choice of 5 operation modes. Additionally, each comparator has 7
parameters for proper configuration. The table below describes each configuration parameter, and lists
each compatible memory type for configuring counters.
Comparison Mode 1 (A
Y
-
A
X
A
Y
+
,
ON)
Comparison Mode 2 (A
X
A
Y
,
ON)
Comparison Mode 3 (A
X
A
Y
,
ON)
Comparison Mode 4 (A
X
,
ON)
Comparison Mode 5 (A
X
,
ON)
Example 1: Analog Signal Compare
In the example below, Mode 4 is the selected function that compares the value of analog input A1 to a
constant value (N) of 2.50. Status coil G1 turns ON is A1 is <= to 2.50.
51
Chapter 4: RLL Programming
™
SG2 PLR User Manual
Symbol Description
Comparison Mode(1~5)
AX analog input (A1~A8), the present value of the timer, counter, or a constant value.
AY analog input (A1~A8), the present value of the timer, counter, or a constant value.
AX analog input value(0.00~9.99)
AY analog input value (0.00~9.99)
Set reference comparative value: could be constant, or the present value of the timer, counter and
analog input.
Output terminal(G1~GF)
6*3/58VHU0DQXDO
6HFXUHRQOLQHRUGHULQJIURP
,QWHUQDWLRQDO2IILFHZZZEEHOHFFRP
'D\WRQ5RDG32%R[
2WWDZD,/86$
)D[
RUGHUV#EEHOHFFRPVXSSRUW#EEHOHFFRP
(XURSHDQ2IILFHZZZEEHXURSHFRP
:HVWOLQN&RPPHUFLDO3DUN
2UDQPRUH&R*DOZD\,UHODQG
)D[
RUGHUV#EEHXURSHFRPVXSSRUW#EEHXURSHFRP