beautypg.com

IAI America XSEL-KX User Manual

Page 103

background image




87

Part 4 Commands


 SQR (Root operation)

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command, declaration

Output

(Output, flag)

Command,
declaration

Operand 1

Operand 2

Optional

Optional

SQR

Variable

number

Data

ZR

[Function]

Assign the root of the data specified in operand 2 to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.


[Example 1]

SQR

1

4

Assign the root of 4 (2) to variable 1.

[Example 2]

LET

1

10

Assign 10 to variable 1.
Assign 4 to variable 2.
Assign the root of the content of variable 2 (4) to the
content of variable 1 (variable 10).

LET

2

4

SQR

*1

*2

This manual is related to the following products: