beautypg.com

Chapter 4. programming – IAI America S-SEL-E User Manual

Page 140

background image

Page 135

BTNT (Output Port · Flag Invert)

WTON (Waiting Input/Output Port · Flag ON)

[Function]

Inverts the designated output port or flag. Operand 1 and 2 can be used to designate a range of ports or flags.

When this command is executed, items that were ON change to OFF and items that were OFF change to ON.

[Example]

BTNT

300

Reverse output port 300.

BTNT

300

310

Reverse output port 300 ~ 310.

BTNT

600

Reverse flag 600.

BTNT

600

610

Reverse flag 600 ~ 610.

[Function]

Waits until the designated I/O port or flag turns ON and does not proceed to the next step. You can use the

time out setting to set a time interval after which I/O waiting will be aborted. The time out setting is in units
of seconds (0.01 ~ 99 sec). When there is a time out setting, the post section turns ON. When there is no time
out setting, the post section is not available.

*Local flags cannot be used in Operand 1.

[Example]

WTON 25

Wait until input port 25 turns ON.

WTON 25

10

Wait until input port 25 turns ON. Time out occurs after a 10 second interval and
the program proceeds to the next step.

Chapter 4. Programming

E x p a n s i o n

c o n d i t i o n

( A N D · O R )

I n p u t

c o n d i t i o n

( I / O · F l a g )

C o m m a n d

P o s t

( O u t p u t p o r t · F l a g )

C o m m a n d

O p e r a n d 1

O p e r a n d 2

O p t i o n a l

O p t i o n a l

B T N T

O u t p u t p o r t ·

F l a g

O u t p u t p o r t ·

F l a g

E x p a n s i o n

c o n d i t i o n

( A N D · O R )

I n p u t

c o n d i t i o n

( I / O · F l a g )

C o m m a n d

P o s t

( O u t p u t p o r t · F l a g )

C o m m a n d

O p e r a n d 1

O p e r a n d 2

O p t i o n a l

O p t i o n a l

W T O N

I n p u t p o r t ·

F l a g

T i m e o u t

This manual is related to the following products: