beautypg.com

IAI America SSEL User Manual

Page 136

background image

114

Part 2 Programs

z SQR (Root operation)

Command, declaration

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command,
declaration

Operand 1

Operand 2

Output

(Output, flag)

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

2

5

SQR

100

*2

Assign 5 to variable 2.
Assign the root of the content of variable 2 (5) to
variable 100.