Argox PA-20 Basic Programming Manual User Manual
Page 35

PT-Basic Programming Manual Ver. 1.00
34/143
Purpose: To activate KEY event trigger.
Syntax: ON KEY(number%) GOSUB SubLabel | SubName
Example: ON KEY(1) GOSUB F1
ON KEY(2) GOSUB F2
…
F1:
OFF KEY(1)
…
RETURN
F2:
OFF KEY(2)
…
RETURN
Description: When a function key is pressed, a specific subroutine will be
executed.
number% is an integer variable in the range of 1 to 6,
indicating a function key of the keypad.
Purpose: To activate MINUTE event trigger.
Syntax: ON MINUTE GOSUB SubLabel | SubName
Example: ON MINUTE GOSUB AMINUTE
…
AMINUTE:
CurrentTime$=TIME$
CurrentMin%=VAL(MID$(CurrentTime$,3,2))
IF CurrentMin%=30 THEN
BEEP(30,50,0,0)
WAIT(200)
END IF
RETURN
Description: When the system time is on the minute, a specific subroutine
will be executed.