Chapter 16 PLC Function ApplicationsMS300
711
Continuous
execution type
Continuous
execution type
Notes on operand usage:
The content value of operand S1 is less than the content value of
S2 operand.
The operand D occupies three consecutive points.
S1: Lower limit of range comparison. S2: Upper limit of range comparison. S:
Comparative value. D: Results of comparison.
Compares value S with the lower limit S1 and upper limit S2, and stores the
results of comparison in D.
When lower limit S1 > upper limit S2, the command uses the lower limit S1 as
the upper and lower limit.
Size comparison is performed algebraically. All data is compared in the form of
numerical binary values. Because this is a 16-bit command, when b15 is 1, this
indicates a negative number.
When the designated device is M0, it automatically occupies M0, M1 and M2.
When X0 = ON, the ZCP command executes, and M0, M1 or M2 is ON. When
X0 = OFF, the ZCP command does not execute, and the state of M0, M1 or M2
remains in the state prior to X0 = OFF.
For ≥, ≤, or ≠ comparison results, use series and parallel connections for M0–
M2.
X0
M0
M1
M2
ZCP
If C10 < K10, M0 = On
If K10 < C10 < K100, M1 = On
If C10 > K100, M2 = On
X0
K10 C10 M0K100
= =
To clear results of comparison, use the RST or ZRST command.
X0
M0
RST
M1
RST
M2
RST
X0
M0
ZRST
M2