Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 79
Chapter 2 Program Instructions
ERROR
Field of Application
Statement for de ning error messages and enabling error handling for
speci ed error conditions (Intermec Direct Protocol only).
Syntax ERROR <nexp>[,<sexp>]
<nexp> is the number of the error condition.
<sexp> is the desired error message.
Remarks
The ERROR statement can only be used in the Intermec Direct Protocol
for the purpose of enabling error-handling and creating customized error
messages, as described below.
The built-in error-handler of the Intermec Direct Protocol will always
handle the following error conditions (also see the Intermec Direct Protocol
v7.50, Programmers Guide):
Out of paper
No eld to print
Head lifted
Out of transfer ribbon
Next label not found
Other errors will not be handled unless they have been speci ed by an
ERROR statement. The number of the error should be entered according to
the list of error messages at the end of this manual.
The ERROR statement also allows you to edit a suitable message in any
language. This message will appear in the printers display window if the
error occurs. The error message will be truncated to 33 characters. Character
No. 1-16 will appear on the upper line and character 18-33 will appear on the
lower line, whereas character No. 17 always is ignored.
ANSI control characters can be used in the error message string, see chapter
Printer Function Control; Display in the Intermec Fingerprint v7.50,
Programmers Guide. An empty string removes any previously entered error
message for the error in question. Likewise, a previously entered messages
string can be replaced by a new one.
When an error de ned by an ERROR statement is detected, the printer
sets its standard IN port BUSY and displays the error messages. The error
message will be cleared and the standard IN port will be set READY when
the printers <Print> key is pressed. However, in case of the standard errors,
the error condition must also be physically dealt with, for example by loading
a fresh stock of labels or lowering the printhead.
Error messages are not saved in the printers memory, but new ERROR
statements will have to be downloaded after each power up. Therefore,
it is recommended to save a set of ERROR statements as a le in the
host computer.
Note that the ERROR statements affects both the error messages in the
printers display window and the error messages returned to the host via the
standard OUT channel (see SETSTDIO statement).