7.1 Logical Operation Instructions
7.1.2 Logical AND operation on block data
7-7
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
BKA
ND
BKAND
Function
(1) Performs a logical AND operation on the data n points from the device specified for
, and
the data n points from the device specified for
, and stores the results to the device
specified for
and the following devices.
(2) The constant can be specified for
between -32768 and 32767 (16-bit BIN data).
s1
s2
d
A
N
D
b15
b8
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
b7
b0
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
+
1
+
2
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
n
b15
b8
0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0
b7
b0
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
+
1
+
2
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
n
b15
b8
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0
b7
b0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
+
1
+
2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
+
(n
1)
+
(n
2)
n
+
(n
1)
+
(n
2)
+
(n
1)
+
(n
2)
d
s1
s2
s2
s2
s2
s2
s1
s1
s1
s1
d
d
d
d
s2
b15
b8
0 0 1 1 0 0 1 1 0 0 0 0 0 0 1 1
b7
b0
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1
+
1
+
2
0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
b15
b8
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
b7
b0
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
+
1
+
2
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
+
(n
1)
+
(n
2)
n
B
K
A
N
D
b15
b8b7
b0
1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
n
+
(n
1)
+
(n
2)
d
s1
s2
s1
s1
d
d
d
d
s1
s1
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......