User guide

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
Expansion
co nd itio n
(A N D · OR)
Input
co nd itio n
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional BTNT
Output port·
Flag
Output port·
Flag
Expansion
condition
(A N D · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional W TON
Input port ·
Flag
Time out