250
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
ED+(P), ED-(P) [When three data are set]
■ED+
• Adds the 64-bit floating decimal point type real number designated at (S1) and the 64-bit floating decimal point type real
number designated at (S2), and stores the sum in the device designated at (D).
• Values which can be designated at (S1), (S2) and (D) and which can be stored, are as follows:
0, 2
-1022
| Designated value (stored value) | < 2
1024
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
■ED-
• Subtracts a 64-bit floating decimal point type real number designated by (S1) and a 64-bit floating decimal point type real
number designated by (S2), and stores the result at a device designated by (D).
• Values which can be designated at (S1), (S2) and (D) and which can be stored, are as follows:
0, 2
-1022
| Designated value (stored value) | < 2
1024
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
(S1): Data to be added to/subtracted from or head number of the devices where the data to be added to/subtracted from is stored (real number)
(S2): Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored (real number)
(D): Head number of the devices where the operation result will be stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S1)
(S2)
(D)
Command
Command
P
S1 S2 D
S1 S2 D
ED+, ED-
ED+P, ED-P
indicates an instruction symbol of ED+/ED-.
+3
64-bit floating-point
real number
+
+2 +1 +3
64-bit floating-point
real number
+2 +1 +3
64-bit floating-point
real number
D
+2
D D
+1
D
S1 S1 S1 S1 S2 S2 S2 S2
+3
64-bit floating-point
real number
+2 +1 +3
64-bit floating-point
real number
+2 +1 +3
64-bit floating-point
real number
+2 +1
S1 S1 S1 S1 S2 S2 S2 S2
D
D
D
D