PI1X Basic Programming Manual Ver. 1.10
28/156
3.5
Commands for event trapping
Purpose
:
To terminate all the event triggers.
Syntax
:
OFF ALL
Example
:
ON ESC GOSUB ESC_PRESS
…
ESC_PRESS:
OFF ALL
PRINT "ESC KEY PRESS..."
ON ESC GOSUB ESC_PRESS
RETURN
Description
:
To resume the event trigger, call
ON event GOSUB…
Purpose
:
To terminate ESC event trigger.
Syntax
:
OFF ESC
Example
:
ON ESC GOSUB ESC_PRESS
…
ESC_PRESS:
OFF ESC
…
ON ESC GOSUB ESC_PRESS
RETURN
Description
:
To resume the event trigger, call
ON ESC GOSUB…
Purpose
:
To terminate COM event trigger.
Syntax
:
OFF COM(N%)
Example
:
ON COM(1) GOSUB READ1
…
READ1:
OFF COM(1)
…
ON COM(1) GOSUB READ1
RETURN
Description
:
N%
is an integer variable, indicating the COM port. Now we
only can choose 1(RS232).
To resume the event trigger, call
ON COM… GOSUB…