Multiplying Double-Precision Real Numbers - 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 double-precision real numbers

ED*
This instruction multiplies double-precision real numbers.
ST
ENO:=EDMULTI(EN,s1,s2,d);
■Execution condition
Instruction
ED*
Setting data
■Description, range, data type
Operand
Description
(s1)
Multiplicand data or the start device where multiplicand data is stored
(s2)
Multiplier data or the start device where multiplier data is stored
(d)
Start device for storing the operation result
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s1)
(s2)
(d)
Processing details
• This instruction multiplies the double-precision real number in the device specified by (s1) by the double-precision real
number in the device specified by (s2), and store the multiplication result in the device specified by (d).
(s1)+3
(s1)+2
(s1)+1
(s1)
×
Double-precision real number
-1022
• Value 0 or 2
≤|specified value (stored value)| <2
and (d).
• If the operation result is -0 or an underflow occurs, the operation result turns out to 0.
• When an input value is set using the engineering tool, a rounding error may occur. Refer to the following for the precautions
on setting input values using the engineering tool.
Page 26 Precautions
Operation error
Error code
Description
3402H
The value input to (s1) is -0, a subnormal number, NaN (not a number), or ±∞.
The value input to (s2) is -0, a subnormal number, NaN (not a number), or ±∞.
3403H
The data output from (d) exceeds the following range. (An overflow has occurred.)
1024
|(d)|<2
Execution condition
Word
RX, RY, LB
SW
(s2)+3
(s2)+2
(s2)+1
(s2)
Double-precision real number
1024
Range
-1022
1024
0, 2
≤|(s1)|<2
-1022
1024
0, 2
≤|(s2)|<2
G, RWw, RWr, LW
(d)+3
(d)+2
(d)+1
(d)
Double-precision real number
can be specified or stored in the devices specified by (s1), (s2),
Data type
ANYREAL_64
ANYREAL_64
ANYREAL_64
BOOL
BOOL
Constant
K, H
10 REAL VALUE PEOCESSING
10.1 Floating-point instruction
10
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents