141
FNC
11
D Z C P P
S1
S2
D
S
1
2
M
3
○ ○ ○○
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S1
S2
S
D
S1≤S2
The ZCP instruction will be enabled when X20 = “ON”.
If < (D100 < K100, the compare value is less than the lower limit), then M100 = “ON”;
When X20 = “OFF”, the instruction is inactive, the “ON”/“OFF” statuses of M100, M101 and M102 will remain as
same as the statuses before it is disabled.
ZCP K100 K200 D100 M100
X20
S1 S 2 S
D
S S1 S2
D
S1 S 2 S1
S
S1
S
S1
S S 2
S2
Operand
Devices
Zone Compare
D occupies 3 consecutive devices
S1 : the lower limit of zone compare
S2 : the upper limit of zone compare
S : the compare value
D : the compare result; occupying 3 consecutive points
Compare the content value of (Compare Value) with the values of (lower limit of zone compare) and
(upper limit of zone compare), then save the result in (compare result).
If ≤ ≤ (K100 ≤ D100 ≤ K200, the content value of D100 is between the upper and lower limit), then
M101 = “ON”;
If > (D100 > K200, the compare value is bigger than the upper limit), then M102 = “ON”.
When > , the content value of will become both upper/lower limits to be compared with the .
S