PI1X Basic Programming Manual Ver. 1.10
31/156
Purpose
:
To terminate TIMER event trigger.
Syntax
:
OFF TIMER(N%)
Example
:
ON TIMER(1,200) GOSUB A1
ON TIMER(2,300) GOSUB A2
…
A1:
OFF TIMER(1)
…
RETURN
A2:
OFF TIMER(2)
…
RETURN
Description
:
To resume the event trigger, call
ON TIMER… GOSUB…
N%
is an integer variable in the range of 1 to 5, indicating the
timer ID.
Purpose
:
To activate COM event trigger.
Syntax
:
ON COM(N%) GOSUB SubLabel | SubName
Example
:
ON COM(1) GOSUB READ1
…
READ1:
OFF COM(1)
…
ON COM(1) GOSUB READ1
RETURN
Description
:
When data is received from the COM port, a specific
subroutine will be executed.
N%
is an integer variable, indicating the COM port (now we
only can choose 1).