Multiplying 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Multiplying 32-bit binary data

D*(_U)
These instructions multiply the two sets of 32-bit binary data specified.
ST
ENO:=DMULTI(EN,s1,s2,d);
■Execution condition
Instruction
D*
D*_U
Setting data
■Description, range, data type
Operand
Description
(s1)
D*
Multiplicand data or the start device where multiplicand data is stored
D*_U
(s2)
D*
Multiplier data or the start device where multiplier data is stored
D*_U
(d)
D*
Start device for storing the operation result
D*_U
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s1)
(s2)
(d)
Processing details
• 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 operation result in the device specified by (d).
(s1)
(s1)+1
b31
b16 b15
b0
···
···
567890 (BIN)
×
• When (d) is a bit device, only the lower 32 bits of the operation result are stored. If the upper 32 bits of the operation result
are required, temporarily store the result in a word device, and transfer the data stored in (d)+2 and (d)+3 to the specified
bit devices.
Ex.
Operation result when (d) is a bit device
• K1⋅⋅⋅Lower 4 bits (b0 to b3)
• K4⋅⋅⋅Lower 16 bits (b0 to b15)
• K8⋅⋅⋅Lower 32 bits (b0 to b31)
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
70
6.1 Arithmetic Operation Instructions
Execution condition
RX, RY, LB
(s2)
(s2)+1
(d)+3
b31
b16 b15
b0
b63
···
···
···
123456 (BIN)
ENO:=DMULTI_U(EN,s1,s2,d);
Range
-2147483648 to 2147483647
0 to 4294967295
-2147483648 to 2147483647
0 to 4294967295
Word
SW
(d)+2
(d)
(d)+1
b48 b47
b32
b31
b16 b15
b0
···
···
···
70109427840 (BIN)
Data type
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S_ARRAY
(Number of elements: 2)
ANY32_U_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
G, RWw, RWr, LW
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents