beautypg.com

Sel language, Wtxx (i/o port • flag wait) – IAI America DS-S-C1 User Manual

Page 49

background image

47

[Function]

Program waits until designated in operand 2 turns ON/OFF.
Can abort the wait after a set time by designating a time in operand 2.
Setting range is 0.01~99 seconds. After a set time has elapsed, the output
turns ON (Only where is an operand 2).

WTXX

ON

... Waits for I/O port · flag to turn ON.

OF

... Waits for I/O port · flag to turn OFF.

[Example 1]

WTON 15

Waits for I/O port 15 to turn ON.

[Example 2]

WTOF 25

5 900

Wait for input 25 to turn ON. If not ON within 5 seconds,
turn flag 900 ON and proceed to the next step.

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

X

X

T

W

g

a

l

F

·

O

/

I

l

a

n

o

i

t

p

O

t

u

o

e

m

i

T

U

T

WTXX (I/O Port

Flag Wait)

12. SEL Language