Specifications

Commands - 94
PULSE
Tasking Statement
SYNTAX: PULSE n,address,bit,time,polarity
PURPOSE: To configure a digital output line as a timed or pulsed output.
REMARKS: You may configure up to eight digital I/O lines as independent pulse output. The lines may be on any
I/O port.
The parameter n is the pulse number and has a range from 0 to 7.
The address is the I/O address of an 8–bit port. The range is 0 to 255.
The bit parameter is the particular bit of the port. The value ranges from 0 to 7.
The time parameter is the time in seconds that the specified bit is active. You may specify a time
from 0.0 to 327.67 seconds.
The polarity parameter determines whether the specified bit will be active high or low. When polarity
is “1”, the bit will go high during the active time. It will go low during the active time if the polarity
is “0”.
For more information see the Multitasking Chapter.
RELATED: CLEAR PULSE, PULSE function
EXAMPLE: PULSE 5,48,2,2.55,1
Pulse number 5 is configured to output bit 2 at address 48 so the bit will go high for 2.55 seconds and
then return low. This sequence will execute only once.
ERROR: <Data > 255> - for address
<Data negative> – for n,address,bit,wait,active
<Time > 327.67 sec> - for t
<Data > 65,535> – for address
<Data out of range> – if bit or bit > 7