
81
Programming
Status Reporting
10/22/2008 TTP2100 Technical Manual P1003640-001
Status Reporting
The printer is equipped with a number of sensors that report the printer status and various
conditions such as out-of-paper, previous printout not removed, etc.
Figure 27 • Sensor placement in the printer
A good practice in unattended printer applications is to check for errors and paper availability
before printing.
1. Send a Status Report Query (ESC ENQ 6) and check that the answer is "No errors"
2. If “Status codes available” is indicated, read out the status message with Status Request
(ESC ENQ 1), and take appropriate actions.
3. Send a paper-near-end query (ESC ENQ 2) to see if the sensor reports low paper level.
4. If paper-near-end is indicated, report the condition to the systems supervisor so that he can
schedule a service visit to the printer.
5. Print the printout.
Note • A status reply must be read! Sending a second status query without reading the reply
of the first query may lock the printer.
Note • When using a multitask OS, status queries and responses may not be transferred
immediately from your application to the printer and vice versa. So write your program in such
a way that it repeats the query if it gets a timeout or an invalid reply. Good practice is to ask
once every ten seconds, five times before giving up.
Note • You should construct your application in such a way so as not to request status while
printing, as this can result in loss of data.
Paper entry
Cutter
Ticket
taken/fallen)
sensor
(
Ticket load
sensor
TOF sensor
Light source
Printhead
closed
sensor
Cutter hom e sensor
Kommentare zu diesen Handbüchern