244
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Addition and subtraction of floating-point data (single precision)
E+(P), E-(P) [When two data are set]
*1 Applicable for the Universal model QCPU, LCPU.
■E+
• Adds the 32-bit floating decimal point type real number designated at (D) and the 32-bit floating decimal point type real
number designated at (S), and stores the sum in the device designated at (D).
• Values which can be designated at (S) and (D) and which can be stored, are as follows:
0, 2
-126
| Designated value (stored value) | < 2
128
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
■E-
• Subtracts a 32-bit floating decimal point type real number designated by (D) and a 32-bit floating decimal point type real
number designated by (S), and stores the result at a device designated by (D).
• Values which can be designated at (S) and (D) and which can be stored, are as follows:
0, 2
-126
| Designated value (stored value) | < 2
128
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
• Basic model QCPU: The serial number (first five digits) is "04122" or later.
(S): 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 data to be added to/subtracted from is stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S)
*1
(D)
*1
Basic
Process
High
performance
Redundant
Universal
LCPU
Ver.
Command
Command
P
S
D
S D
E+, E-
E+P, E-P
E+/E-
indicates an instruction symbol of .
+1
32-bit floating-point
real number
+
+1
32-bit floating-point
real number
+1
32-bit floating-point
real number
SD D S D D
+1
32-bit floating-point
real number
+1
32-bit floating-point
real number
+1
32-bit floating-point
real number
SD D S D D