Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
6-38
DB+(P),DB-(P)
6.2.6  
BCD 8-digit addition and subtraction operations 
(DB+(P),DB-(P))
DB+(P),DB-(P)
 When two data are set ((
+1,
)+(
+1,
) (
+1,
), (
+1,
)-(
+1,
) (
+1,
))
Function
DB+
(1) Adds the BCD 8-digit data designated by 
 and the BCD 8-digit data designated by 
, and 
stores the result of the addition at the device designated by 
.
(2) 0 to 99999999 (BCD 8 digits) can be assigned to 
 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 go ON.
DB-
(1) Subtracts the BCD 8-digit data designated by 
 and the BCD 8-digit data designated by 
and stores the result of the subtraction at the device designated by 
.
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored 
(BCD 8 digits)
: Head number of the devices where the data to be added to/subtracted from is stored (BCD 8 digits)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
Basic
Process
High
performance
Redundant Universal
D
D
S
S
D
D
D
D
S
S
D
D
Command
Command
P
S
D
S
D
DB+, DB-
DB+P. DB-P
DB+/DB-
indicates an instruction symbol of                .
S
D
S
D
D
S
D
0
0
3 2 3 4 5 6
(Upper 4 digits) (Lower 4 digits)
9
0
8 7 1 0 6 8
(Upper 4 digits)(Lower 4 digits)
0
1
1 9 4 5 2 4
(Upper 4 digits)(Lower 4 digits)
Digits exceeding the designated number 
of digits are assumed to be 0.
D
S
D
S
D
D
S
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
D
S
D
0
0
3 2 3 4 5 6
(Upper 4 digits) (Lower 4 digits)
9
0
8 7 1 0 6 8
(Upper 4 digits) (Lower 4 digits)
9 5 4 7 6 1 2
(Upper 4 digits) (Lower 4 digits)
+1
+1
+1
Digits exceeding the designated number  
of digits are assumed to be 0.
D
S
D
S
D
D
0