Programming instructions
161
Intermec Fingerprint 6.13 – Programmer's Guide
16. ERROR-HANDLING
1. Standard
Error-Handling
Intermec Fingerprint is intended to be as flexible as possible. Thus,
there are very few fixed error-handling facilities, but instead there
are a number of tools for designing error-handling routines accord-
ing to the demands of each application.
The following error-handling facilities are always available:
• Out-of-Media Detection
Provided the printhead is lowered, the software will check for
three possible errors when either the < Print > or < Feed > key on
the printer is pressed. If an error is detected, a message will appear
in the display:
- Error 1005 (Out of paper)
- Error 1031 (Next label not found)
- Error 1027 (Out of ribbon – thermal transfer printers only)
After the error has been attended to, the error message can be
cleared by pressing any of the keys.
• Syntax Check
Each program line or instruction that is received on the standard
IN channel will be checked for possible syntax errors before it is
accepted. Provided there is a working two-way communication
1
,
possible syntax errors will be transmitted to the host on the
standard OUT channel, e.g. “Feature not implemented” or “Font
not found".
• Execution Check
Any program or hardware error that stops the execution will be
reported on the standard OUT channel, provided there is a working
two-way communication
1
. In case of program errors, the number
of the line where the error occurred will also be reported, e.g.
“Field out of label in line 110”. After the error has been corrected,
the execution must be restarted by means of a new RUN statement,
unless there is a routine for dealing with the error condition
included in the program.
Error Messages
By means of the system variable SYSVAR(19), see chapter 15.7,
you can choose between four types of error messages as illustrated
by the following examples using error #19:
1.
“Invalid font in line 10” (default)
2.
“Error 19 in line 10: Invalid font”
3.
“E19”
4.
“Error 19 in line 10”
1
/. For a working two-way communication,
three conditions must be fulfilled:
• Serial communication
• Std IN channel = Std OUT channel
• Verbosity enabled.