IAI America XSEL-QX User Manual
Page 183

159
Part 4 Commands
z BTPN (Output ON pulse)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional
BTPN
Output
port, flag
Timer
setting
CP
[Function]
Turn ON the specified output port or flag for the specified time.
When this command is executed, the output port or flag specified in operand 1 will be
turned ON and then the program will proceed to the next step. The output port or flag will
be turned OFF automatically upon elapse of the timer setting specified in operand 2.
The timer is set in a range from 0.01 to 99.00 seconds (including up to two decimal places).
(Note 1)
If this command is executed with respect to an output port or flag already ON, the output
port or flag will be turned OFF upon elapse of the timer setting.
(Note 2)
If the program ends after the command has been executed but before the timer is up, the
output port or flag will not be turned OFF.
(Note 3)
This command will not be cancelled by a TIMC command.
(Note 4)
A maximum of 16 timers, including BTPN and BTPF, can be operated simultaneously in a
single program. (There is no limitation as to how many times these timers can be used in a
single program.)
(Note 5)
A dedicated output (system output), other than a general-purpose output, cannot be
specified for operand 1.
(Note 6)
If other task/interruption process is inserted after the port is turned ON, and before it is
turned OFF, an error will generate in the pulse output time. Accordingly, this command
cannot be used as a constant time pulse output.
[Example]
BTPN
300
1
Turn ON output port 300 for 1 second.
BTPN
600
10
Turn ON flag 600 for 10 seconds.
Timer setting (seconds)
The output port or flag turns ON here, after which
the program will proceed to the next step.
ON
OFF