Yaskawa MP900 Series Motion Programming Manual User Manual

Page 166

Advertising
background image

4.6 Basic Functions

4 -33

The input units and output results are different for integer and real number data.

D

Integer Data

The result is different from that obtained for the mathematical square root, and is calcu-
lated using the following formula:

32768 * sign(A) * |A|∕32768

sign(A): Sign of A register
|A|:

Absolute value of A register

That is to say, the output is the result of the mathematically expressed square root multi-
plied by √32768. When the input is a negative number, an absolute square root is calcu-
lated, and the negative number is taken as the operation result. The operation error is a
maximum of ±2.

D

Real Number Data

The SQT command uses the immediately preceding operation result (real number data)
as input and returns the square root in a real number register.

Example:

D

Integer Data

Integer Input

MW00100 = SQT (MW00102);

(01448)

(00064)

(8)

(181)

64

× 32768

= 1448

Negative Number Input

(−01448)

MW00100 = SQT (MW00102);

(−00064)

(8)

(181)

64

× 32768

= 1448

D

Real Number Data

Integer Input

MF00100 = SQT (MF00102);

(8.0)

(64.0)

Negative Number Input

MF00100 = SQT (MF00102);

(−8.0)

(−64.0)

4

Advertising
This manual is related to the following products: