228
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Outputting a band comparison result of 32-bit binary data
DZCP(P)(_U)
These instructions compare the band between the 32-bit binary data specified by lower limit value (s1) and the 32-bit binary
data specified by upper limit value (s2) with the 32-bit binary data in the device specified by comparison data (s3). According
to the comparison result (below, within zone, or above), (d), (d)+1, or (d)+2 is turned on.
■Execution condition
■Description, range, data type
• The RnCPU and RnENCPU with firmware version "17" or later support this instruction. (Use an engineering tool with version "1.020W" or later.)
Ladder ST
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);
FBD/LD
Instruction Execution condition
DZCP
DZCP_U
DZCPP
DZCPP_U
Operand Description Range Data type Data type (label)
(s1) DZCP(P) Lower limit value or the start device for storing
the lower limit value
-2147483648 to 2147483647 32-bit signed binary ANY32_S
DZCP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) DZCP(P) Upper limit value or the start device for storing
the upper limit value
-2147483648 to 2147483647 32-bit signed binary ANY32_S
DZCP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s3) DZCP(P) Comparison data or the start device for storing
the comparison data
-2147483648 to 2147483647 32-bit signed binary ANY32_S
DZCP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(d) The start device where the comparison result is
stored
Bit ANYBIT_ARRAY
(Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)