Programming 63
Software Command Syntax
Important • Errors 2 and 5 are terminal faults that require you to reset the printer before it will be operable again. A reset means that any data in the buffer is lost.
The printer automatically recovers from the other conditions as soon as the condition is corrected.
<ESC><ENQ><1> can only return one status code at a time. If there are two or more simultaneous conditions, each 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 conditions have been cleared until an ACK is received.
In the case of multiple error conditions, the one with the lowest number is reported.
Note • To read out all status information at once, use <ESC><ENQ>E.
ESC ENQ 2 |
|
| |
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 successive samples show that there is no paper present at the sensor, the status reply changes to 1. This is to prevent false readings if the side of the paper roll is not clean. If you want instantaneous status of the sensor, use <ESC><ENQ><6> and examine the paper near end bit.
09/14/2009 | TTP 2000 Technical Manual |