
Programming
Status Reporting Commands
57
Note • Errors 02, 05 and FF are terminal faults that require you to reset the printer before it will be operable again. The printer automatically recovers from the other error conditions as soon as the error is corrected.
A status enquiry command can only return one status code at a time. If there are two or more simultaneous errors, each error condition should be cleared and the status enquiry repeated in order to get a complete report of all status codes
The host computer cannot be certain that all error conditions have been cleared until an ACK is received.
The possible error conditions are reported in the above order.
Note • If you want to read out all status information directly, use <ESC><ENQ>E.
ESC ENQ 002 |
|
|
|
1B 05 02 | hex |
| |
27 5 2 | decimal |
|
|
| This command requests a | ||
| format. |
| |
|
|
| |
| Value = 1 | indicates “No paper” | |
|
|
| |
| Value = 0 | indicates “Paper present” at the sensor position | |
|
|
|
|
Note • The status of the sensor is sampled every time the printout is cut. If three succeeding samples show "no paper", the status reply changes to 00. This is to prevent false alarm if the side of the paper roll is not clean. If you want the current status of the sensor, use <ESC><ENQ><6> and extract the
10/05/2009 | TTP 7030™ Technical Manual |