Sel language – IAI America DS-S-C1 User Manual
Page 60
![background image](/manuals/350266/60/background.png)
58
[Function]
Returns the obtained resources.
[Example 1]
Please refer to GTRS.
[Function]
Obtains resource. If resource is not available, program pauses until the resource is released.
Assigns resource no. 1~9.
[Example 1]
Define X axis as resource 1.
Program 1
Program 2
GTRS 1
:
Program 1 obtain resource 1.
MOVL 1
GTRS
1
Program 2 can not obtain resource 1.
RLRS 1
(Obtain wiat)
As resource 1 returns, Program 2 obtains it.
:
MOVP 2
Program 2 uses the X axis.
:
RLRS
1
Program 2 returns the resource.
By doing the above, even when the same axis is used for multiple programs, an error will not
be encountered. .
●
RLRS (Return Resource)
* Commands not yet publicly available can not be used.
12. SEL Language
n
o
i
s
n
a
p
x
E
n
o
it
i
d
n
o
c
)
R
O
·
D
N
A
(
t
u
p
n
I
n
o
it
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
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
it
p
O
l
a
n
o
it
p
O
S
R
T
G
.
o
N
e
c
r
u
o
s
e
R
●
GTRS (Obtain Resource)
*Commands not yet publicly available can not be used.
n
o
i
s
n
a
p
x
E
n
o
it
i
d
n
o
c
)
R
O
·
D
N
A
(
t
u
p
n
I
n
o
it
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
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
it
p
O
l
a
n
o
it
p
O
S
R
L
R
.
o
N
e
c
r
u
o
s
e
R
12.10
Resource management commands
[Example 2]
LET
1
5
Assign 5 to variable 1.
GTRS *1
Obtain resource of variable 1 (content 5).