6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
155
6
Comparing 32-bit binary data band
DZCP(P)(_U)
These instructions perform a comparison operation on the 32-bit binary data in the device specified by (s1) and the 32-bit
binary data in the device specified by (s2) with the 32-bit binary data in the device specified by comparison source (s3), and
output the comparison result (below, within zone, above) to the device specified by (d) onwards.
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
Ladder diagram Structured text
ENO:=DZCP(EN,s1,s2,s3,d);
ENO:=DZCPP(EN,s1,s2,s3,d);
ENO:=DZCP_U(EN,s1,s2,s3,d);
ENO:=DZCPP_U(EN,s1,s2,s3,d);
Operand Description Range Data type Data type (label)
(s1) DZCP(P) Lower limit comparison data or the head device
where the comparison data is stored
-2147483647 to +2147483647 32-bit signed binary ANY32
DZCP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) DZCP(P) Upper limit comparison data or the head device
where the comparison data is stored
-2147483647 to +2147483647 32-bit signed binary ANY32
DZCP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s3) DZCP(P) Comparison source data or the head device
where the comparison source data is stored
-2147483647 to +2147483647 32-bit signed binary ANY32
DZCP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(d) The starting bit device to which the comparison
result is output
Bit ANY_BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
(s2)
(s3)
(d)
*1