6 Application Instructions API 00-49 9. 32-bit BIN multiplication, +1 +1 +3 +2 +1 b31.. b16 b15.. b00 b31.. b16 b15.. b00 X = b63. b48 b47. b32 b31. b16 b15. b00 b31 is a symbol bit b31 is a symbol bit b63 is a symbol bit ) (b15 of D+3 Symbol bit = 0 refers to a positive value. Symbol bit = 1 refers to a negative value. 32-bit value x 32-bit value = 64-bit value When D serves as a bit device, it can designate K1 ~ K8 and construct a 32-bit result, occupying consecutive 2 10. If the product of a 32-bit multiplication must be a 32-bit value (32-bit value x 32-bit value = 32-bit value), users groups of 32-bit data. have to use API 114 MUL32/MUL32P.
Please refer to the explanation of API 114 MUL32/MUL32P for more information. Program Example: The 16-bit D0 is multiplied by the 16-bit D10 and brings forth a 32-bit product. The higher 16 bits are stored in D21 and the lower 16-bit are stored in D20. On/Off of the most left bit indicates the positive/negative status of the result value. X0 DVP-PLC Application Manual 6-40 MUL D0 D10 D20 MUL D0 D10 K8M0