6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
147
6
Comparing 32-bit binary data
LDD(_U), ANDD(_U), ORD(_U)
These instructions perform a comparison operation between the 32-bit binary data in the device specified by (s1) and the 32-
bit binary data in the device specified by (s2). (Devices are used as NO contacts.)
■Descriptions, ranges, and data types
■Applicable devices
Ladder diagram Structured text
( is to be replaced by any of the following: D=(_U), D<>(_U), D>(_U),
D<=(_U), D<(_U), D>=(_U).)
Not supported
Operand Description Range Data type Data type (label)
(s1) LDD,
ANDD, ORD
Comparison data or head device where the
comparison data is stored
-2147483648 to +2147483647 32-bit signed binary ANY32
LDD_U,
ANDD_U,
ORD_U
0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) LDD,
ANDD, ORD
Comparison data or head device where the
comparison data is stored
-2147483648 to +2147483647 32-bit signed binary ANY32
LDD_U,
ANDD_U,
ORD_U
0 to 4294967295 32-bit unsigned binary ANY32_U
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)
LD
AND
OR
(s1) (s2)
(s1) (s2)
(s1) (s2)