220
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Comparing 32-bit binary data
LDD(_U), ANDD(_U), ORD(_U)
These instructions compare the two sets of 32-bit binary data specified. (Devices are used as normally open contacts.)
*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
• In safety programs executed by the Safety CPU, only safety devices and safety labels of data types described in the table
can be used.
Ladder ST
*1
( is to be replaced by any of the following: D=(_U), D<>(_U), D>(_U),
D<=(_U), D<(_U), D>=(_U).)
ENO:=LDD_(EN,s1,s2);
ENO:=ANDD_(EN,s1,s2);
ENO:=ORD_(EN,s1,s2);
ENO:=LDD__U(EN,s1,s2);
ENO:=ANDD__U(EN,s1,s2);
ENO:=ORD__U(EN,s1,s2);
( 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: LDD_, ANDD_, ORD_ and EQ(_U), NE(_U), GT(_U), LE(_U), LT(_U), GE(_U).)
*2
Instruction Execution condition
LDD(_U), ANDD(_U),
ORD(_U)
Every scan
Operand Description Range Data type Data type (label)
(s1) LDD,
ANDD,
ORD
Comparison data or the start device where the
comparison data is stored
-2147483648 to 2147483647 32-bit signed binary ANY32_S
LDD_U,
ANDD_U,
ORD_U
0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) LDD,
ANDD,
ORD
Comparison data or the start device where the
comparison data is stored
-2147483648 to 2147483647 32-bit signed binary ANY32_S
LDD_U,
ANDD_U,
ORD_U
0 to 4294967295 32-bit unsigned binary ANY32_U
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
LD
AND
OR
(s1) (s2)
(s1) (s2)
(s1) (s2)