M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.2 Arithmetic Operation Instructions
ED+, ED+P, ED-, ED-P: Floating-point data addition and subtraction operations (double precision) (De-
vice at storage destination: Shared type)
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
ED+, ED-
ED+P, ED-P
Setting data
Setting data
Addition or subtraction data, or the first number of the device storing addition or
S
subtraction data.
The first number of the device storing the data that is added or stored (the result of
D
the addition or subtraction is stored in this device).
Functions
ED+
Adds the 64-bit floating-point real number designated by (D) to the 64-bit floating-point real number designated by (S) and
stores the result of the addition at the device designated by (D).
D+3 D+2 D+1
D
64-bit floating-point real
number
The following values can be designated and stored by (S) or (D).
-1022
0, 2
≤ | Designated value (stored value) | < 2
When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
Usable devices
B SB
T SM V
T
C
○
○
○
○
Command
Command
Meaning
S+3 S+2 S+1
S
+
64-bit floating-point real
number
1024
Con-
Word devices
stant
D
R/ZR W SW SD
Z
○
○
○
○
○
○
○
○
○
○
D+3 D+2
D+1
D
64-bit floating-point real
number
197
Digit
Pointer
designa-
Index
tion
E
P
○
○
indicates the signs "ED+"/"ED-"
S
D
P
S
D
Data type
Real number
IB-1501667-B