Argox PA-20 Basic Programming Manual User Manual
Page 34

PT-Basic Programming Manual Ver. 1.00
33/143
Purpose: To activate ESC event trigger.
Syntax: ON ESC GOSUB SubLabel | SubName
Example: ON ESC GOSUB ESC_PRESS
…
ESC_PRESS:
OFF ESC
…
ON ESC GOSUB ESC_PRESS
RETURN
Description: When ESC key is pressed, a specific subroutine will be
executed.
Purpose: To activate HOUR event trigger.
Syntax: ON HOUR GOSUB SubLabel | SubName
Example: ON HOUR GOSUB OnHourAlarm
…
OnHourAlarm:
CurrentTime$=TIME$
H%=VAL(LEFT$(CurrentTime$,2))
FOR I%=1 TO H%
BEEP(30,20,0,0)
WAIT(100)
NEXT
RETURN
Description: When the system time is on the hour, a specific subroutine
will be executed.