210
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
BIN 32-bit data band comparisons
DZCP(P)
• One of (D), (D)+1, and (D)+2 turns on depending on the results (small, within the band, large) after comparison data (S3),
(S3)+1 is compared with the lower limit values (S1), (S1)+1 and the upper limit values (S2), (S2)+1.
• When the contact turns off, "(D) to (D)+2" hold the conditions immediately before the contact turns on and off.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• Set values smaller than the upper limit values (S2), (S2)+1 as the lower limit values (S1), (S1)+1. If the lower limit values
(S1), (S1)+1 are larger than the upper limit values (S2), (S2)+1, the upper limit values (S2), (S2)+1 will be handled as the
same values as the lower limit values (S1), (S1)+1.
• LCPU: The serial number (first five digits) is "16042" or later.
• QnUDVCPU: The serial number (first five digits) is "16043" or later.
(S1): Start number of the devices where the lower limit value is stored (BIN 32 bits)
(S2): Start number of the devices where the upper limit value is stored (BIN 32 bits)
(S3): Head number of device where data for comparison or comparison data is stored (BIN 32-bit)
(D): Head number of devices where the comparison results are stored (Bit)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
(S2)
(S3)
(D)
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The range of 3 points from the device specified in (D) exceeds the range of
the corresponding device.
Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
S3S2S1
DZCPP
DZCP
DZCPP
DZCP
S3S2S1
D
D
Command
Command
DZCP
Contact
S1 S2 S3 D
D
D
D+2
+1
S1 S3
S1
[
[
[
[
[
]
]S2S3
S1
S1
+1
+1
]
]
+1
+1
]+1
>,
,
,
,
,[
[]+1
]+1
,
,>S2S3
Turns on when
Turns on when
Turns on when
S2
S2
S3
S3
S3
≤≤