6. BASIC INSTRUCTIONS
6
−
16
MELSEC-A
6.2.3 BIN 16-bit multiplication, division
(*, *P, /, /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 O O
(S2)
O O 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 O O
K1
to
K4
O
O
Functions
*
(1) Performs the multiplication of BIN data specified at (S1) and the BIN data
specified at (S2), and stores the multiplication result into the device specified at
(D).
(2) When (D) is a bit device, specify the bits, beginning with the lower bits.
Example
K1: Lower 4 bits (b0 to 3)
K4: Lower 16 bits (b0 to 15)
K8: 32 bits (b0 to 31)
(3) At (S1) and (S2), -32768 to 32767 (BIN 16 bits) can be specified.
(4) The judgment of whether the data of (S1) and (S2) are positive or negative is
made at the highest bit (b15) and that of (D), at (b31).
Applicable
CPU
All CPUs
(S1)
Multiplicand/dividend or
head device number
storing multiplier/dividend
(S2)
Multiplicand/divider or
head device number
storing multiplier/divider
(D)
Head device number
which will store the result
Setting data
∗
, /
Indicates the instruction symbol.
Multiplication/division commands
(D)
(S1)
(S1)
(S2)
(S2)
(D)
P
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: ......