48
CipherLab BASIC Programming Part I
OFF ALL
Purpose To terminate all the event triggers.
Syntax OFF ALL
Remarks To resume the event trigger, call ON event GOSUB…
Example
ON READER(1) GOSUB BcrData_1
ON READER(2) GOSUB BcrData_2
ON KEY(1) GOSUB KeyData_1
…
IF BACKUP_BATTERY < BATTERY_LOW% THEN
OFF ALL
BEEP(2000, 30)
CLS
PRINT “Backup Battery needs to be replaced!”
Loop:
GOTO Loop
END IF
OFF COM
Purpose To terminate “COM Event Trigger”.
Syntax OFF COM(N%)
Remarks To resume the event trigger, call ON COM… GOSUB…
“N%” is an integer variable, indicating the COM port.
N% = 1 ~ 2 for 8000, 8300
N% = 1, 2, 5 for 8200, 8400, 8700
N% = 1 ~ 4 for 8500
N% = 1 ~ 5 for 8700
Example
ON COM(1) GOSUB HostCommand
…
HostCommand_1:
OFF COM(1) REM disable the trapping during data processing.
…
ON COM(1) GOSUB HostCommand