EasyManua.ls Logo

Delta VP3000 Series - Page 357

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development Platform VP3000
348
API Instruction code Operand Function
127 D ESQR P S, D
Binary floating-point number square root
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (9 steps)
DESQR
Continuous
execution
type
DESQRP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S: the source device for calculating square root
D: operation result
Calculate square root of the content in register that S designates, the result will be stored in
the register that D designates. The square root operation is performed in the form of binary
floating-point numbers.
If S is a designated constant K or H, the instruction will convert the constant into a binary
floating-point value before the square root operation.
Example
Example 1
When X0 = ON, calculate the square root of the binary floating-point number (D1, D0), and
store result to the register that (D11, D10) designate.
X0
DESQR D0 D10
Example 2
When X2 = ON, calculate the square root of K1234 (convert to binary floating-point number
automatically), and stores the result in (D11, D10).
X2
DESQR K1234 D10

Table of Contents

Related product manuals