6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
145
6
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Comparing 16-bit binary data
LD(_U), AND(_U), OR(_U)
These instructions perform a comparison operation between the 16-bit binary data in the device specified by (s1) and the 16-
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: =(_U), <>(_U), >(_U), <=(_U),
<(_U), >=(_U).)
Not supported
Operand Description Range Data type Data type (label)
(s1) LD, AND,
OR
Comparison data or device where the
comparison data is stored
-32768 to +32767 16-bit signed binary ANY16
LD_U,
AND_U,
OR_U
0 to 65535 16-bit unsigned binary ANY16_U
(s2) LD, AND,
OR
Comparison data or device where the
comparison data is stored
-32768 to +32767 16-bit signed binary ANY16
LD_U,
AND_U,
OR_U
0 to 65535 16-bit unsigned binary ANY16_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)