54
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 6 Setting Up the Printer
The
ERROR
command activates error-handling for the specified error
type and allows you to write an error message, which will be trans-
mitted back to the host computer (according to selected verbosity
and type of error message, see chapters 6.13 and 6.14):
ERROR <error number>, "<error message>"
<error number>
error number (see chapter 12.1)
<error message>
text string enclosed by double quotation
marks. Maximum 33 characters
Example:
ERROR 43,"MEMORY
OVERFLOW"
↵
Four error conditions are always handled without having to be acti-
vated by an
ERROR
command:
Out of paper
The Power LED turns Red. The printer sends a message back to the
host computer. The printer waits for the printhead to be lifted and
lowered, then the error is cancelled.
Head lifted
The Power LED turns Red. The printer sends a message back to the
host computer. The printer waits for the printhead to be lowered,
then a formfeed is performed. If the error stopped a print operation,
the operation will be restarted automatically.
Out of transfer ribbon
The Power LED turns Red. The printer sends a message back to the
host computer. The printer waits for a ribbon to be loaded. If the
error stopped a print operation, the operation must be restarted.
Next label not found
The Power LED turns Red. The printer sends a message back to the
host computer. The printer performs a formfeed and then stops and
waits for the operator to press Feed.
Note that error handling and
error messages specified by
ERROR
commands are not saved
in the printer's battery backed-
up memory, but must be trans-
mitted to the printer after each
power-up.
15. Error Handling,
cont'd.