Programming instructions

45
Intermec Fingerprint 6.13 – Programmer's Guide
BREAK
The BREAK statement specifies an interrupt character by its
decimal ASCII value. BREAK can be separately specified for each
serial communication channel and for the printer's built-in key-
board.
The interrupt character for all serial channels is by default ASCII 03
dec. (ETX). Also see BREAK...ON.
The interrupt character from the printer's keyboard is by default
ASCII 158 dec. (<C> + <Pause> keys). Also see BREAK...ON.
BREAK...ON
Break interrupt for all serial communication channels is disabled
by default, but can be enabled by means of a BREAK ON statement
for the channel in question.
Break interrupt from the keyboard is enabled by default.
BREAK... OFF
The BREAK OFF statement revokes BREAK ON for the specified
device and deletes the specified break character from RAM.
ON BREAK ...GOSUB...
This instruction is not necessary for issuing a break interrupt, but is
useful for making the printer perform a certain task when a break
occurs, e.g. branch the execution to another part of the program,
show a message in the display, emit a warning signal, ask for a
password etc. ON BREAK... GOSUB... can be specified separately
for each serial communication channel and for the keyboard.
This example shows how a break interrupt will occur when you
press the X-key on the host connected to "uart1:". A signal is emitted
and a message appears in the printer's display.
10 BREAK 1,88
20 BREAK 1 ON
30 OPEN "console:" FOR OUTPUT AS 1
40 PRINT #1 : PRINT #1
50 PRINT #1, "Press X"
60 PRINT #1, "to break program";
70 ON BREAK 1 GOSUB 1000
80 GOTO 80
90 BREAK 1 OFF
100 END
1000 SOUND 880,50
1010 PRINT #1 : PRINT #1
1020 PRINT #1, "PROGRAM"
1030 PRINT #1, "INTERRUPTED";
1040 RETURN 90
RUN
5. FINGERPRINT PROGRAMMING, cont'd.
12. Breaking Execution,
cont'd.
Note:
A break interrupt character is saved in the
no-save area of the RAM memory, and
will not be removed before the printer is
restarted, unless you specifically delete it
by a BREAK...OFF statement for the
device in question.