6. BASIC INSTRUCTIONS
6
−
31
MELSEC-A
6.2.8 BCD 8-digit multiplication, division
(DB*, DB*P, DB/, DB/P)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
(S1)
O O O O O O O O O O O O O O O O
(S2)
O O O O O O O O O O O O O O O O
(D)
O O O O O O O O O O O
K1
to
K8
O
O
Function DB*
(1) Performs multiplication of the BCD data specified at (S1) and the BCD data
specified at (S2), and stores the multiplication result into the device specified at
(D).
(2) If (D) is a bit device, the 8 lower digits (32 lower bits) of the multiplication result
may only be specified.
K1 1 lower digit (B0 to 3), K4 4 lower digits (B0 to 15), K8 8 lower digits (B0 to
31)
(3) At (S1) and (S2), 0 to 99999999 (BCD 8 digits) can be specified.
Applicable
CPU
All CPUs
Multiplication/division commands
(S1)
(S2)
(D)
(S1)
(S2)
(D)
P
(S1)
Multiplicand/dividend or
head device number stor-
ing multiplicand/dividend
(S2)
Multiplier/divider or head
device number storing
multiplier/divider
(D)
Head device number
which will store the result
Setting data
DB
∗
, DB/
Indicates the instruction symbol.
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......