Sel language – IAI America DS-S-C1 User Manual
Page 58
![background image](/manuals/350266/58/background.png)
56
[Function]
Stores task level of self task to operand 1 variable.
[Example 1]
GTPR
1
Store task level into variable 1.
[Example 2]
LET
1
10
Assign 10 to variable 1.
GTPR *1
Store task level into variable 1 (content 10).
[Function]
Reads the task condition of operand 2 program into operand 1 variable.
The value being read is as follows:
Execute condition
· · ·
TTS__RUN
01
Execute able condition · · ·
TTS__RDY
02
Wait condition
· · ·
TTS __WAI
04
Forced wait condition · · ·
TTS__SUS
08
Double wait condition · · · TTS__RDY
0C (12) WAI + SUS (4+8)
Pause conditon
· · ·
TTS__RDY
10 (16)
[Example 1]
GTPG 10
5
Read task condition of program 5 into variable 10.
[Example 2]
LET
1
10
Assign 10 to variable 1.
LET 2
5
Assign 5 to variable 1.
GTPG *1
*2
Read task condition of variable 2 (content 5) program into
variable 1 (content 10 variable).
●
GTPR (Acquire Task Level)
* 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
G
P
T
G
.
o
N
e
l
b
a
i
r
a
V
.
o
N
m
a
r
g
o
r
P
●
GTPG (Acquire Task Level)
* 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
R
P
T
G
.
o
N
e
l
b
a
i
r
a
V
P
C