Sel language – IAI America DS-S-C1 User Manual
Page 39
![background image](/manuals/350266/39/background.png)
37
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
N
I
S
.
o
N
e
l
b
a
i
r
a
V
a
t
a
D
R
Z
●
SIN (Sine)
[Function]
Assigns the sine of operand 2 to the contents of the variable in operand 1.
The output turns ON when the result of the operation is 0.
For the setting in operand 1, designate a real number varible in the operand 100
~
199, 300
~
399.
Note 1:
Radian=Angle x
π÷
180
[Example 1]
SIN
100
0.523599
Assign 0.5, sine of 0.523599, to variable 100.
[Example 2]
LET
1
100
Assign 100 to variable 1.
LET
101
30
30x
π÷
180 (radian) (convert 30°to radian and
MULT
101
3.141592
assign this to variable 101).
DIV
101
180
Assign 0.5, sine of contents in variable101 to
SIN
*1
*101
variable 100 (contents of variable 1).
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
S
O
C
.
o
N
e
l
b
a
i
r
a
V
a
t
a
D
R
Z
[Function]
Assigns the cosine of operand 2 to the contents of the variable in operand 1.
The output turnsON when the result of the operation is 0.
For the setting in operand 1, designate a real number variable in the range 100~199, 300~399
.
Note:
Radian = Angle x
π÷
180.
[Example 1]
SIN
100
1.047197
Assign 0.5, sine of 1.047191 to variable 100.
[Example 2]
LET
1
100
Assign 100 to variable 1.
LET
101
30
60x
π÷
180 (radian) (convert 60°to radian and
MULT
101
3.141592
assign this to variable 101).
DIV
101
180
Assign 0.5, cosine of contents in variable101 to
SIN
*1
*101
variable 100 (contents of variable 1).
●
COS(Cosine)
12.3
Functional calculation commands