Multiplying 16-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 16-bit binary data

*(_U)
These instructions multiply the two sets of 16-bit binary data specified.
ST
ENO:=MULTI(EN,s1,s2,d);
■Execution condition
Instruction
*
*_U
Setting data
■Description, range, data type
Operand
Description
(s1)
*
Multiplicand data or the device where multiplicand data is stored
*_U
(s2)
*
Multiplier data or the device where multiplier data is stored
*_U
(d)
*
Start device for storing the operation result
*_U
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s1)
(s2)
(d)
Processing details
• These instructions multiply the 16-bit binary data in the device specified by (s1) by the 16-bit binary data in the device
specified by (s2), and store the operation result in the device specified by (d).
(s1)
b15
b0
···
5678 (BIN)
×
• When (d) is a bit device, data should be specified in order from lower bits.
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
68
6.1 Arithmetic Operation Instructions
Execution condition
RX, RY, LB
(s2)
(d)+1
b15
b0
b31
···
···
1234 (BIN)
7006652 (BIN)
ENO:=MULTI_U(EN,s1,s2,d);
Range
-32768 to 32767
0 to 65535
-32768 to 32767
0 to 65535
Word
SW
(d)
b16 b15
···
b0
Data type
ANY16_S
ANY16_U
ANY16_S
ANY16_U
ANY32_S
ANY32_U
BOOL
BOOL
Constant
G, RWw, RWr, LW
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents