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