EasyManuals Logo
Home>Mitsubishi>Controller>FX1N Series

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #259 background imageLoading...
Page #259 background image
FX Series Programmable Controlers Applied Instructions 5
5-139
5.10.5 EADD (FNC 120)
Operation:
The floating point values stored in the source
devices S
1 and S2 are algebraically added and the
result stored in the destination device D.
Points to note:
a) The instruction must use the double word format; i.e., DEADD or DEADDP. All source data
and destination data will be double word; i.e. uses two consecutive data registers to store
the data (32 bits).
Except for K or H, all source data will be regarded as being in floating point format and the
result stored in the destination will also be in floating point format.
b) If a constant K or H is used as source data, the value is converted to floating point before
the addition operation.
c) The addition is mathematically correct: i.e., 2.3456 × 10
2
+(-5.6× 10
-1
)=2.34× 10
2
d) The same device may be used as a source and as the destination. If this is the case then,
on continuous operation of the DEADD instruction, the result of the previous operation will
be used as a new source value and a new result calculated.
This will happen every program scan unless the pulse modifier or an interlock program is
used.
e) If the result of the calculation is zero 0 then the zero flag, M8020 is set ON.
If the result of the calculation is larger than the largest floating point number then the carry
flag, M8021 is set ON and the result is set to the largest value.
If the result of the calculation is smaller than the smallest floating point number then the
borrow flag, M8022 is set ON and the result is set to the smallest value.
Mnemonic Function
Operands
Program steps
S
1 S2 D
EADD
FNC 120
(Floating
Point
Addition)
Adds two floating
point numbers
together
K, H - integer value automatically
converted to floating point
D - must be in floating point
format (32 bits).
D-afloating
point value
(32 bits).
DEADD,
DEADDP:
13 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Zero M8020
Borrow M8021
Carry M8022
DEADD
X07
K52000
D106 D108
For more information about the format of floating point number refer to page 4-46.

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
BrandMitsubishi
ModelFX1N Series
CategoryController
LanguageEnglish

Related product manuals