Sel language – IAI America DS-S-C1 User Manual
Page 41
Advertising
39
12. SEL Language
n
o
i
s
n
a
p
x
E
n
o
i
t
i
d
n
o
c
)
R
O
·
D
N
A
(
t
u
p
n
I
n
o
i
t
i
d
n
o
c
)
g
a
l
F
·
O
/
I
(
d
n
a
m
m
o
C
t
s
o
P
)
g
a
l
F
·
t
r
o
p
t
u
p
t
u
O
(
d
n
a
m
m
o
C
1
d
n
a
r
e
p
O
2
d
n
a
r
e
p
O
l
a
n
o
i
t
p
O
l
a
n
o
i
t
p
O
R
Q
S
.
o
N
e
l
b
a
i
r
a
V
a
t
a
D
R
Z
●
SQR(Square)
[Function]
Stores the square root (SQR) of the data in operand 2 in the variable in operand 1.
[Example 1]
SQR
1
4
Assign square root of 4,2 to variable 1.
[Example 2]
LET
1
10
Assign 10 to variable 1.
LET
2
4
Assign 4 to variable 2.
SQR
*1
*2
Assign the square root of 4 (contents of variable 2) to variable 10
(contents of variable 1).
The output turns ON when the result of the operation is 0.
Advertising