Programming instructions
164
Intermec Fingerprint 6.13 – Programmer's Guide
16. ERROR-HANDLING, cont'd.
Continued!
ERRHAND.PRG Utility Program
The "ERRHAND.PRG" is primarily intended for use with printer
models fitted with a display and possible also a membrane keyboard
and is included in many Configuration EPROM:s. The program
contains routines for handling errors, managing the keyboard and
display, and for printing. Use ERRHAND.PRG to quickly get
started with your programming.
By merging ERRHAND.PRG with your program, the latter can
gain access to ERRHAND's subroutines. Do not use the lines 10–
20 and 100000–1900200 in your program, since those line numbers
are used by ERRHAND.PRG.
Example:
NEW
LOAD "XXX.PRG"
MERGE "ROM:ERRHAND.PRG"
RUN
If you have more than one application program that requires error-
handling in your printer, you will save valuable memory space by
keeping ERRHAND.PRG stored separately and merging it with
the current program directly after loading, compared with saving
ERRHAND.PRG merged with each program. The approximate
size of ERRHAND.PRG is 4 kilobyte.
Variables and subroutines in ERRHAND.PRG that your program
can use, or which you can modify, are:
Variables
• NORDIS1$ and NORDIS2$ at line 10 contain the main display
texts. You may replace them with your own text.
• DISP1$ and DISP2$ contain the actual text that will appear on the
printer's display on line 1 and 2 respectively.
Subroutines
• At line 160,000
The errors which normally may occur during printing are taken
care of:
Error 1005 Out of paper
Error 1006 No field to print
Error 1022 Head lifted
Error 1027 Out of transfer ribbon
Error 1031 Next label not found
The subroutine shows the last error that occurred, if any, and the
line number where the error was detected. The information is
directed to your terminal. Called by the statement GOSUB
160000.
4. Error-Handling Program