FX Series Programmable Controlers Applied Instructions 5
5-143
5.10.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
SD
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:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Zero M8020
DESQR
M24
D302 D510