Chapter 5 Relay Ladder Logic Programming
98
-
8B
Comparator Instructions
The SG2 smart
relay includes 31 comparator coils that can be used throughout a program. Each comparator has 8
different operation modes. Additionally, each comparator has 5 parameters for proper configuration. The table below
describes each configured pa
rameter, and lists each compatible element for configuring Comparators.
※
The preset value
②
,
③
and
④
can be a constant or refer to other function current value.
Comparator Mode 0 (
Internal Coil
)
Mode 0 Comparator (Internal Coil) used as
internal
auxiliary coils. No preset value.
In the example below
shows
the relationship among the numbered block diagram for a Mode 0 Comparator, the ladder diagram view, and the
software Edit Contact/Coil dialog box.
Analog comparator Mode 1~7
(1)
Analog Comparator mode 1:
ON
Ay
Ax
Ay
⑤
④
④
,
+
≤
≤
−
;
(2)
Analog Comparator mode 2:
ON
Ay
Ax
⑤
,
≤
;
(3)
Analog Comparator mode 3:
ON
Ay
Ax
⑤
,
≥
;
(4)
Analog Comparator mode 4:
ON
Ax
⑤
④
,
≥
;
(5)
Analog Comparator mode 5:
ON
Ax
⑤
④
,
≤
;
(6)
Analog Comparator mode 6:
ON
Ax
⑤
④
,
=
;
(7)
Analog Comparator mode 7:
ON
Ax
⑤
④
,
≠
;
Example 1: Analog Signal Compare
Symbol Description
①
Comparison Mode (0~7)
②
Ax analog input value (0.00~99.99)
③
Ay analog input value (0.00~99.99)
④
Reference comparative value, could be constant, or other data code
⑤
Output terminal (G01~G1F)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor