Chapter 16 PLC Function Applications
MS300
(High Speed Model)
16-56
API
MUL
S1
S2
D
BIN multiplication
22
D
P
Bit device
Word device
16-bit command (7 STEP)
MUL
Continuous
execution type
MULP
Pulse
execution type
32-bit command (13 STEP)
DMUL
Continuous
execution type
DMULP
Pulse
execution type
Flag signal: none
X Y M K H
KnX
KnY
KnM
T
C
D
S1
*
*
*
*
*
*
*
*
S2
*
*
*
*
*
*
*
*
D
*
*
*
*
*
Notes on operand usage:
The 16-bit command operand D will occupy 2 consecutive points
S1
: Multiplicand.
S2
: Multiplier.
D
: Product.
Using two data sources: When
S1
and
S2
are multiplied using the BIN
method, the product is stored in
D
.
16-bit BIN multiplication operation:
S1
D
b15..........b0
X
b15..........b0
S2
=
b31..........b16b15..............b0
D
+1
b15 is a symbol bit
b15 is a symbol bit
b31 is a symbol bit (b15 of D+1)
Symbol bit = 0 refers to a positive value.
Symbol bit = 1 refers to a negative value.
When
D
is a bit device, K1-K4 can be designated as a hexadecimal number,
which will occupy 2 consecutive units.
When 16-bit DO is multiplied by 16-bit D10, the result will be a 32-bit product; the
upper 16 bits will be stored in D21, and the lower 16 bits will be stored in D20.
Whether the bit at the farthest left is Off or On will indicate the sign of the result.
X0
D0
D10
D20
MUL
D0
D10 K8M0
MUL
Summary of Contents for VFD11AMS21AFSHA
Page 5: ...IV This page intentionally left blank...
Page 8: ...Chapter 1 Introduction MS300 High Speed Model 1 3 1 2 Model Name 1 3 Serial Number...
Page 20: ...Chapter 3 Installation MS300 High Speed Model 3 3...
Page 21: ...Chapter 3 Installation MS300 High Speed Model 3 4 This page intentionally left blank...
Page 24: ...Chapter 4 Wiring MS300 High Speed Model 4 3 4 1 Wiring...
Page 25: ...Chapter 4 Wiring MS300 High Speed Model 4 4 Figure 1...
Page 27: ...Chapter 4 Wiring MS300 High Speed Model 4 6 4 2 System Wiring Diagram...
Page 43: ...Chapter 6 Control Terminals MS300 High Speed Model 6 6 This page intentionally left blank...
Page 91: ...Chapter 8 Optional Cards MS300 High Speed Model 8 8 Frame F Fig 8 16...
Page 115: ...Chapter 9 Specification MS300 High Speed Model 9 10 This page intentionally left blank...
Page 123: ...Chapter 10 Digital Keypad MS300 High Speed Model 10 8 This page intentionally left blank...
Page 293: ...Chapter 13 Warning Codes MS300 High Speed Model 13 6 This page intentionally left blank...
Page 303: ...Chapter 14 Error Codes MS300 High Speed Model 14 10 This page intentionally left blank...