232
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Comparing 32-bit binary block data
DBKCMP(P)(_U)
These instructions compare the two sets of 32-bit binary block data specified.
*1 The engineering tool with version "1.035M" or later supports the ST.
*2 EQ indicates =, NE indicates <>, GT indicates >, LE indicates <=, LT indicates <, and GE indicates >=.
■Execution condition
■Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
Ladder ST
*1
( is replaced by any of the following: DBKCMP=(P)(_U),
DBKCMP<>(P)(_U), DBKCMP>(P)(_U), DBKCMP<=(P)(_U),
DBKCMP<(P)(_U), DBKCMP>=(P)(_U).)
ENO:=DBKCMP_(EN,s1,s2,n,d);
ENO:=DBKCMP_P(EN,s1,s2,n,d);
ENO:=DBKCMP__U(EN,s1,s2,n,d)
;
ENO:=DBKCMP_P_U(EN,s1,s2,n,
d);
( is replaced by any of the following: EQ, NE, GT, LE, LT, GE.)
*2
FBD/LD
( is to be replaced by combination of any of the following: DBKCMP_ and EQ(P)(_U), NE(P)(_U), GT(P)(_U), LE(P)(_U), LT(P)(_U), GE(P)(_U).)
*2
Instruction Execution condition
DBKCMP(_U)
DBKCMPP(_U)
Operand Description Range Data type Data type (label)
(s1) DBKCMP(P) Comparison data or the start device where the
comparison data is stored
-2147483648 to 2147483647 32-bit signed binary ANY32_S
*1
DBKCMP(P)_
U
0 to 4294967295 32-bit unsigned binary ANY32_U
*1
(s2) DBKCMP(P) Start device where the comparison data is
stored
32-bit signed binary ANY32_S
*1
DBKCMP(P)_
U
32-bit unsigned binary ANY32_U
*1
(d) Start device for storing the comparison
operation result
Bit ANY_BOOL
*1
(n) Number of data points to be compared 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)