Mitsubishi Electronics FX2N ユーザーズマニュアル
FX Series Programmable Controlers
Applied Instructions 5
5-122
5.11.6
EAUB (FNC 121)
Operation:
The floating point value of S
2
is subtracted from the
floating point value of S
1
and the result stored in
destination device D.
Points to note:
All points of the EADD instruction apply, except that a subtraction is performed.
See page 5-122.
See page 5-122.
5.11.7
EMUL (FNC 122)
Operation:
The floating point value of S
1
is multiplied with the
floating point value of S
2
. The result of the
multiplication is stored at D as a floating point
value.
value.
Points to note:
Point a, b, c and d of the EADD instruction apply, except that a multiplication is performed.
See page 5-122.
See page 5-122.
Mnemonic
Function
Operands
Program steps
S
1
S
2
D
ESUB
FNC 121
(Floating
Point
Sub-traction)
FNC 121
(Floating
Point
Sub-traction)
Subtracts one
floating point
number from
another
floating point
number from
another
K, H - integer value automati-
cally
converted to floating point
D - must be in floating point
number format (32 bits).
cally
converted to floating point
D - must be in floating point
number format (32 bits).
D - a floating
point value
(32 bits).
point value
(32 bits).
DESUB,
DESUBP:
13 steps
DESUBP:
13 steps
Mnemonic
Function
Operands
Program steps
S
1
S
2
D
EMUL
FNC 122
(Floating
Point Mul-
tiplication)
FNC 122
(Floating
Point Mul-
tiplication)
Multiplies two
floating point
numbers together
floating point
numbers together
K, H - integer value automati-
cally
converted to floating point
cally
converted to floating point
D - must be in floating point
format (32 bits).
format (32 bits).
D - a floating
point value
(32 bits).
point value
(32 bits).
DEMUL,
DEMULP:
13 steps
DEMULP:
13 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
FLAGS
Zero M8020
Borrow M8021
Carry M8022
DESUB
X17
D120
K79124
D128
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
DEMUL
M12
D108 K1000 D130