Chapter 10 Real Value Peocessing; Floating-Point Instruction; Adding Single-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

10
REAL VALUE PEOCESSING
10.1

Floating-point instruction

Adding single-precision real numbers

E+
This instruction adds single-precision real numbers.
ST
ENO:=EPLUS(EN,s1,s2,d);
■Execution condition
Instruction
E+
Setting data
■Description, range, data type
Operand
Description
(s1)
First addend data or the start device where the first addend data is stored
(s2)
Second addend data or the start device where the second addend 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 adds the single-precision real number in the device specified by (s2) to the single-precision real number in
the device specified by (s1), and store the result in the device specified by (d).
(s1)+1
(s1)
+
Single-precision real number Single-precision real number
-126
• Value 0 or 2
≤|specified value (stored value)| <2
(d).
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 in the device specified by (d) exceeds the following range. (An overflow has occurred.)
128
|(d)|<2
Execution condition
Word
RX, RY, LB
SW
(s2)+1
(s2)
(d)+1
Single-precision real number
128
can be specified or stored in the devices specified by (s1), (s2), and
Range
-126
128
0, 2
≤|(s1)|<2
-126
128
0, 2
≤|(s2)|<2
G, RWw, RWr, LW
(d)
10 REAL VALUE PEOCESSING
10.1 Floating-point instruction
Data type
ANYREAL_32
ANYREAL_32
ANYREAL_32
BOOL
BOOL
Constant
K, H
105
10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents