Addition And Subtraction Of Floating-Point Data (Single Precision) - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Addition and subtraction of floating-point data (single precision)

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

Advertisement

Table of Contents
loading

Table of Contents