6-40
DB+(P),DB-(P)
When three 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.
: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (BCD 8 digits)
:
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 addition/subtraction operation result is stored (BCD 8 digits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
––
–– ––
S1 S1
S2 S2
D D
S1 S1
S2 S2
D D
Command
Command
P
S1 S2
D
S1 S2
D
DB+, DB-
DB+P, DB-P
DB+/DBindicates an instruction symbol of .
S1
S2
D
S1
S2
D
S1
S2
D
+
10234
5
67
(Upper 4 digits) (Lower 4 digits)
6
5
789123
(Upper 4 digits) (Lower 4 digits)
8
5
023690
(Upper 4 digits) (Lower 4 digits)
+1+1 +1
Digits exceeding the designated number
of digits are assumed to be 0.
S1 S1 S2
D D
S2
S1
S2
D
1065432199 000000 00654321