6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
183
6
Multiplying 32-bit binary data
D*(P)(_U) instruction and DMUL(P)(_U) instruction can be used for multiplication of 32-bit binary data.
D*(P)(_U)
These instructions multiply the 32-bit binary data in the device specified by (s1) and the 32-bit binary data in the device
specified by (s2), and store the result in the device specified by (d).
■Descriptions, ranges, and data types
■Applicable devices
• These instructions multiply the 32-bit binary data in the device specified by (s1) by the 32-bit binary data in the device
specified by (s2), and store the multiplication result in the device specified by (d).
• When (d) is a bit device, only the lower 32 bits of the multiplication result are stored and the upper 32 bits cannot be
specified. If the upper 32 bits data of the multiplication operation result are required, temporarily store the result in a word
device, and transfer the data stored in word device ((d)+2) and ((d)+3) to the specified bit devices.
Multiplication result when (d) is a bit device
Ladder diagram Structured text
Not supported
Operand Description Range Data type Data type (label)
(s1) D*(P) Multiplicand data or the head device where the
data to be multiplied by another is stored
-2147483648 to +2147483647 32-bit signed binary ANY32
D*(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) D*(P) Multiplier data or the head device where the
data by which another is to be multiplied is
stored
-2147483648 to +2147483647 32-bit signed binary ANY32
D*(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(d) D*(P) Head device for storing the operation result 64-bit signed binary ANY32_S_ARRAY
(Number of elements:
2)
D*(P)_U 64-bit unsigned binary ANY32_U_ARRAY
(Number of elements:
2)
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
(s2)
(d)
• K1 ... Lower 4 bits (b0 to b3)
• K4 ... Lower 16 bits (b0 to b15)
• K8 ... Lower 32 bits (b0 to b31)
b0
567890 (BIN)
(s1)
123456 (BIN) 70109427840 (BIN)
×
··· ···
(s1)+1
(s2)
(s2)+1
(d)+2
(d)+3
b31 b16 b15
b0
··· ···
b31 b16 b15
b32
··· ···
b63 b48 b47
(d)
(d)+1
b0
··· ···
b31 b16 b15