Справочник Пользователя для Mitsubishi Electronics FX

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-123
5.11.8
EDIV (FNC 123)
Operation:
The floating point value of S
is divided by the
floating point value of S
2
. The result of the division
is  s to r ed  in  D   a s  a   f lo at in g point  v alue. No
remainder is calculated.
Points to note:
Points a, b, c, d of the EADD instruction apply, except that a division is performed.
See page 5-122.
If  S
is 0 (zero) then a divide by zero error occurs and the operation fails.
5.11.9
ESQR (FNC 127)
Operation:
A square root is performed on the floating point
value of Sand the result is stored in D. 
Points to note:
Points a, b, c, d of the EADD instruction apply, except that a square root is performed.
See page 5-122.
If  S  is  negative then an error occurs and error flag M8067 is set ON.
Mnemonic
Function 
Operands
Program steps
S
1
S
2
D
EDIV
FNC 123
(Floating
Point
Division)
Divides one
floating point
number by 
another.
K, H - integer value automati-
cally
converted to floating point
D - must be in floating point
format (32 bits).
D - a floating
point value
(32 bits).
DEDIV,
DEDIVP:
13 steps
Mnemonic
Function 
Operands
Program steps
S
D
ESQR
FNC 127
(Floating
Point
Square
Root)
Calculates the
square root of
a floating point
value.
K, H - integer value automati-
cally
converted to floating point
D - must be in floating point
number format (32 bits).
D - a floating
point value
(32 bits).
DESQR,
DESQRP:
9 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
DEDIV
X10
D128
K500 D106
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
DESQR
M24
D302 D510