Advance Function Instruction
7-135
FUN 208 P
FSQR
FLOATING POINT NUMBER SQUARE ROOT
FUN 208 P
FSQR
S : Source register to be taken square root
D : Register for storing result
(square root value)
S, D may combine with V, Z, P0~P9 to serve
indirect address application
HR ROR DR K XR
Range
Operand
R0
∣
R383
9
R5000
∣
R8071
D0
∣
D4095
Floating
point
number
V、Z
P0~P9
S ○ ○ ○ ○ ○
D ○ ○* ○ ○
Description
z The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of
the format please refer to 5.3 (Numbering System) page 5-9.
z When operation control "EN" = 1 or "EN↑" ( P instruction) from 0 to 1, take the square root of the data
specified by the S value or S~S+1 register, and store the result into the register specified by D~D+1.
z If the value of S is negative, then the error flag "ERR" will be set to 1, and do not execute the operation.
EN
S :
D :
ERR
208P.FSQR
X0
2520.04
D0