API
ESQR
127
D
P
Bit Devices
X
Y
M
K
S
*
D
*
Operands:
Please refer to the specifications of each model for the
range of operands.
Explanation
When X0 = ON, the square root of binary floating point (D1, D0) is stored in
Example
(D11, D10) after the operation of square root.
When X2 = ON, the square root of K1234 (automatically converted to binary
floating value) is stored in (D11, D10).
Word Devices
H
KnX KnY KnM
T
*
*
S: Source device D: Operation result
This instruction performs a square root operation on the floating point value
in S and stores the result in D. All data will be operated in binary floating
point format and the result will also be stored in floating point format.
If the source device S is specified as constant K or H, the integer value will
automatically be converted to binary floating value.
X0
DESQR
(D1, D0)
(D11, D10)
Binary floating
Binary floating
point
point
X2
DESQR K1234
Chapter 16 PLC Function C2000 Series
Floating Point Square Root
16-bit command (5 STEPS)
-
C
D
*
32-bit command
*
DESQR
Flag signal: none
D0
D10
D10
16-81
-
-
-
DESQR
P