
68
Programming
Status Reporting
Status Reporting
The printer is equipped with a number of sensors that report the printer status and various error conditions such as
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>, see page 59) and check that the answer is "No errors"
2.If an error is indicated, read out the error message with Status Request
(<ESC><ENQ><1>, page ), and take appropriate actions. Repeat this step until no more error code is available. If weekend sensor signals that paper is below this level, check again after next document is printed. If the sensor still signals a level below the weekend level after three successive print/check cycles, report the condition to the systems supervisor so that he can schedule a service visit to the printer. This
3.Send a
4.If
5.Print the printout.
Important • 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
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.
| TTP 7030™ Technical Manual | 10/05/2009 |