6. BASIC INSTRUCTIONS
6
−
19
MELSEC-A
6.2.4 BIN 32-bit multiplication, division
(D*, D*P, D/, D/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
Functions D*
(1) Performs the multiplication of BIN data specified at (S1) and the BIN data
speci-fied at (S2), and stores the multiplication result into the device specified at
(D).
(2) When (D) is a bit device, up to the lower 32 bits can be specified and the upper
32 bits cannot be specified.
Example
K1: Lower 4 bits (b0 to 3)
K4: Lower 16 bits (b0 to 15)
K8: 32 bits (b0 to 31)
When the upper 32-bit data of multiplication result is required for the bit device,
store the data to the word device and then transfer the data ((D)+2) and ((D)+3)
of word device to the specified bit device.
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
D*, D/
Indicates the instruction symbol.
Multiplication/division commands
(S1)
(S2)
(D)
(D)
(S2)
(S1)
P
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......