6.2 Arithmetic Operation Instructions
6.2.13 Block data addition and subtraction
6-55
6
BA
S
IC
INSTRUCTIONS
BK+,
B
K
-
BK+, BK-
(2) Block addition is performed in units of 16 bits.
(3) The constant can be specified between 32768 and 32767 (BIN 16 bits) for
.
(4) The following is the result when an underflow or overflow is generated by the operation.
The carry flag in this case does not turn ON.
BK-(P)
(1) Subtracts BIN data n points from the device specified for
and BIN data n points from the
device specified for
, and stores the result to the device specified for
.
(2) Block subtraction is performed in units of 16 bits.
(3) The constant can be specified between 32768 and 32767 (BIN 16 bits) for
.
(4) The following is the result when an underflow or overflow is generated by the operation.
The carry flag in this case does not turn ON.
s
2
+
(B
IN
)
(B
IN
)
(B
IN
)
5555
8888
(B
IN
)
3087
(B
IN
)
83
21
(B
IN
)
(B
IN
)
(B
IN
)
b15
b
0
12
3
4
456
7
2
000
(B
IN
)
12
3
4
(B
IN
)
4
000
+1
+
(n
2
)
+
n
(B
IN
)
4
3
21
s
1
d
s
1
+2
s
1
s
1
s
1
s
2
b15
b
0
+1
+
(n
2
)
+
(n
1
)
+2
(n
1
)
n
2
3
21
b15
b
0
d
d
d
d
3
2
7
6
7
3
2
7
6
7
+
2
+
2
3
2
7
6
7
3
2
7
6
7
(7FFF
H
)
(800
1
H
)
(000
2
H
)
(800
1
H
)
(FFFE
H
)
(7FFF
H
)
s
1
s
2
d
(B
IN
)
(B
IN
)
(B
IN
)
b15
b
0
12
3
4
56
78
987
6
(B
IN
)
4
3
21
(B
IN
)
4
000
(B
IN
)
(B
IN
)
(B
IN
)
b15
b
0
7
5
3
1
3
21
0
551
(B
IN
)
6
79
(B
IN
)
3
52
(B
IN
)
(B
IN
)
(B
IN
)
b15
b
0
87
65
8888
93
25
(B
IN
)
5
000
(B
IN
)
4
3
52
+1
+2
+
(n
2
)
+
(n
1
)
n
s
1
s
2
d
s
1
s
1
s
1
s
1
+1
+2
+
(n
2
)
+
(n
1
)
s
2
s
2
s
2
s
2
n
+1
+2
+
(n
2
)
+
(n
1
)
n
d
d
d
d
s
2
(B
IN
)
b15
b
0
8880
(B
IN
)
(B
IN
)
(B
IN
)
b15
b
0
8
445
(B
IN
)
(B
IN
)
(B
IN
)
(B
IN
)
(B
IN
)
b15
b
0
87
65
8888
93
25
(B
IN
)
5
000
(B
IN
)
4
3
52
+1
+2
+
(n
2
)
+
(n
1
)
n
s
1
s
2
d
s
1
s
1
s
1
s
1
+1
+2
+
(n
2
)
+
(n
1
)
n
d
d
d
d
115
452
8
3880
3
2
7
6
8
3
2
7
6
7
2
2
3
2
7
66
3
2
7
6
7
(8000
H
)
(7FFF
H
)
(000
2
H
)
(800
1
H
)
(FFFE
H
)
(7FFE
H
)
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: ......