206
DB*, DB*P, DB/, DB/P
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BCD 8 digits)
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BCD 8 digits)
:
Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)
Function
DB*
(1) Multiplies the BCD 8-digit data designated by and the BCD 8-digit data designated by , and stores the product at the
device designated by .
(2) If has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the product, and the higher 8 digits
(upper 32 bits) cannot be designated.
K1.....Lower 1 digit (b0 to 3), K4.....Lower 4 digits (b0 to 15), K8.....Lower 8 digits (b0 to 31)
(3) 0 to 99999999 (BCD 8 digits) can be assigned to and .
DB/
(1) Divides 8-digit BCD data designated by and 8-digit BCD data designated by , and stores the result in the device
designated by .
(2) 64 bits are used for the result of the division operation, and stored as quotient and remainder.
Quotient (BCD 8 digits)
:Stored at the lower 32 bits.
Remainder (BCD 8 digits) :Stored at the upper 32 bits.
(3) If has been designated as a bit device, the remainder of the operation will not be stored.
DB*, DB*P, DB/, DB/P BCD 8-digit multiplication and division operations
6.2.8
DB*, DB*P, DB/, DB/P
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
DB , DB/
*
DB P, DB/P
S1
S2
D
S1
S2
D
indicates an instruction s
y
mbol of DB
*
,
DB/.
*
S1
S2
D
S1
S2
D
S1
S2
D
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
+1
+1
9
9
9
9
9
9
9
8
0
0
0
0
0
0
0
1
+1
+2
+3
D
D
D
D
S1
S1
S2
S2
D
S1
S2
S1
S2
D
6
5
7
8
1
9
2
3
1
0
2
3
5
4
6
7
/
+
1
+
1
0
0
0
0
0
0
4
5
1
0
2
3
6
3
0
8
D
i
g
i
ts
exceed
i
ng
the
des
i
gnated
number
of
d
i
g
i
ts
are
assumed
to
be
0
(L
ower
4
d
i
g
i
ts
)
(U
pper
4
d
i
g
i
ts
)
(L
ower
4
d
i
g
i
ts
)
(U
pper
4
d
i
g
i
ts
)
+
1
+
3
+
2
Rema
i
nder
Q
uot
i
ent
S1
S2
D
S1
S2
D
D
D
D