Chapter 16 PLC Function ApplicationsMS300
API
MUL
22
D
bit device
X
Y
M
S1
S2
D
Notes on operand usage:
The 16-bit command operand D occupies two consecutive points.
16-bit BIN multiplication operation:
When D is a bit device, K1–K4 can be designated as a hexadecimal number, which
occupies two consecutive units.
P
Word device
K
H
KnX KnY KnM
*
*
*
*
*
*
*
*
*
*
*
*
S1: Multiplicand. S2: Multiplier. D: Product.
Multiplies S1 and S2 using the BIN method, and stores the product in D.
When 16-bit DO is multiplied by 16-bit D10, the result is a 32-bit product; the
upper 16 bits are stored in D21, and the lower 16 bits are stored in D20. The bit
at the farthest left indicates the sign of the result.
BIN multiplication
16-bit command (7 STEP)
MUL
T
C
D
*
*
*
32-bit command (13 STEP)
*
*
*
DMUL
*
*
*
Flag signal: none
716
Continuous
MULP
execution type
execution type
Continuous
DMULP
execution type
execution type
Pulse
Pulse