6.2 Arithmetic Operation Instructions
6.2.6 8-digit BCD data addition and subtraction
6-35
6
BA
S
IC
INSTRUCTIONS
DB+, DB-
DB+, DB-
6.2.6
8-digit BCD data addition and subtraction
DB+, DB-
F
unct
i
on
DB+(P)
(1) Adds the 8-digit BCD data specified for
and the 8-digit BCD data specified for
, and
stores the result of the addition to the variable specified for
.
(2) Values can be specified between 0 and 99999999 (8-digit BCD) for
,
and
.
(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.
The carry flag in this case does not turn ON.
DB+(P)
DB-(P)
P: Executing condition
:
indicates any of the following
instructions.
B+
B+P
B-
B-P
Input argument,
EN:
Executing condition
: Bit
s1:
Data to be added or subtracted
: ANY32
s2:
Addition or subtraction data
: ANY32
Output argument,
ENO:
Execution result
: Bit
d:
Operation result
: ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
−
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
DB+
EN
ENO
s
1
d
s
2
Not su
pp
orted
s
1
s
2
d
s
1
s
2
d
+
1
0
2
3
4 5 6
7
6
5
7 8 9
1 2
3
8
5
0
2
3
6
9 0
s
1
s
2
d
(
Upp
er
4
d
i
g
i
ts) (
L
o
w
er
4
d
i
g
i
ts)
(
Upp
er
4
d
i
g
i
ts) (
L
o
w
er
4
d
i
g
i
ts)
(
Upp
er
4
d
i
g
i
ts) (
L
o
w
er
4
d
i
g
i
ts)
D
i
g
i
ts
exceed
i
ng
t
h
e
s
p
ec
ifi
ed
num
b
er
o
f
d
i
g
i
ts
are
assumed
to
b
e
0
.
s
1
s
2
d
+
1
0
6 5 4
3
2 1
9
9
0 0 0 0 0 0
0
0
6 5 4
3
2 1
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......