beautypg.com

Sel language – IAI America DS-S-C1 User Manual

Page 56

background image

54

[Function]

Starts another program and processes it in parallel.
When that program (task) has been started, the port and flag in the post section is output.

[Example 1]

EXPG

10

Start program number 10.

[Example 2]

LET 1

10

Assign 10 to variable 1.

EXPG *1

Start variable 1 (content 10) program.

[Function]

Finishes the program. When final step is reached without the EXIT command, process
returns to the front.

* The status when the program is complete

• Output Port ..................... Valid
• Local Flag ..................... Invalid
• Local Variable ............... Invalid
• Current Value .................. Valid
• Global Flag ..................... Valid
• Global Variable ............... Valid

[Example]

:
:

EXIT

Ends the program.

12. SEL Language

EXIT (Exit Program)

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

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

T

I

X

E

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

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

G

P

X

E

.

o

N

m

a

r

g

o

r

P

P

C

EXPG (Start Another Program)

12.9

Task management commands