Chapter 16 PLC Function ApplicationsMS300
716
Continuous
execution type
Continuous
execution type
Notes on operand usage:
The 16-bit command operand D occupies two consecutive points.
S1: Multiplicand. S2: Multiplier. D: Product.
Multiplies S1 and S2 using the BIN method, and stores the product 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
occupies two consecutive units.
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.