IAI America SSEL User Manual
Page 145
123
Part 2 Programs
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.)
[Example]
BTPN
300
1
Turn ON output port 300 for 1 second.
BTPN
600
10
Turn ON flag 600 for 10 seconds.
(Note 5)
If other task interrupts after a port is turned on until it is subsequently turned off, an error will
generate in pulse output time, in which case pulse output cannot be used for a specified
period.
Timer setting (seconds)
The output port or flag turns ON here, after
which the program will proceed to the next step.
ON
OFF