
PT-Basic Programming Manual Ver. 1.00 32/143
To terminate TIMER event trigger.
ON TIMER(1,200) GOSUB A1
ON TIMER(2,300) GOSUB A2
…
A1:
OFF TIMER(1)
…
RETURN
A2:
OFF TIMER(2)
…
RETURN
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.
To activate COM event trigger.
ON COM(N%) GOSUB SubLabel | SubName
ON COM(1) GOSUB READ1
…
READ1:
OFF COM(1)
…
ON COM(1) GOSUB READ1
RETURN
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).
Commentaires sur ces manuels