6.3
Logical Operation Instructions
Performing an AND operation on 16-bit data
WAND(P) [using two operands]
These instructions AND each bit of 16-bit binary data from the device specified by (d) and each bit of 16-bit binary data from
device specified by (s), and store the results in the device specified by (d).
Ladder diagram
(s)
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data for AND or device where the data is stored
(d)
Device for storing AND results
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions AND each bit of 16-bit binary data from the device specified by (d) and each bit of 16-bit binary data from
device specified by (s), and store the results in the device specified by (d).
b15
···
(d)
1
1
1
1
1
1
1
···
b15
(s)
0
0
0
1
0
0
1
···
b15
(d)
0
0
0
1
0
0
1
• Bit devices subsequent to number of points by nibble specification are calculated as 0.
Operation error
There is no operation error.
Word
T, ST, C, D,
C, LC
W, SD, SW, R
b8
b7
···
1
0
0
0
0
1
1
1
AND
···
b8
b7
0
0
0
1
1
0
1
0
···
b8
b7
0
0
0
0
0
0
1
0
Structured text
Not supported
Range
-32768 to +32767
-32768 to +32767
Double word Indirect
U\G
Z
LC
LZ
b0
1
b0
0
b0
0
Data type
Data type (label)
16-bit signed binary
ANY16
16-bit signed binary
ANY16
Constant
specification
K, H
E
$
6 BASIC INSTRUCTIONS
6.3 Logical Operation Instructions
6
Others
215