Chapter 16 PLC Function ApplicationsC2000-HS
16-88
API
ESQR
Binary floating point number find square root
127
D P
Bit device Word device
16-bit command
- - - -
32-bit command (9 STEP)
DESQR Continuous
execution type
DESQR
P
Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S * * *
D *
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
S: source device for which square root is desired D: result of finding square root.
When the square root is taken of the content of the register designated by S, the
result is temporarily stored in the register designated by D. Taking square roots
is performed entirely using binary floating-point numbers.
If the source operand S refers to a constant K or H, the command will transform
that constant into a binary floating point number for use in the operation.
When X0=On, the square root is taken of the binary floating point number (D1,
D0), and the result is stored in the register designated by (D11, D10).
X0
DESQR D0 D10
When X2 =On, the square root is taken of K1,234 (which has been automatically
converted to a binary floating-point number), and the results stored in (D11,
D10).
X2
DESQR K1234 D10