98 | Chapter 4: Programming Commands | Revision D 12/09 |
Recognizing data from the printer
An application sending various real time and
Responses to transmit peripheral device status (1B 75) and transmit paper sensor status (1B 76) are
Batch mode response | Response recognized by: |
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
| |
ASCII | HEX |
|
|
|
|
|
|
|
|
| |
ECS u 0 | 1B 75 0 | 0 | 0 | 0 | 0 | 0 | 0 | x | x | Binary | |
ESC v | 1B 76 | 0 | x | x | 0 | 0 | x | x | x | Binary | |
GS I n | 1D | 49 n | 0 | x | x | 0 | x | x | x | x | Binary |
GS r n | 1D | 72 n | 0 | x | x | 0 | x | x | x | x | Binary |
|
|
|
|
|
| ||||||
Real time response |
| Response recognized by: |
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
| |
ASCII | HEX |
|
|
|
|
|
|
|
|
| |
GS EOT n | 1D | 04 n | 0 | x | x | 1 | x | x | 1 | 0 | Binary |
DLE EOT n | 10 04 n | 0 | x | x | 1 | x | x | 1 | 0 | Binary | |
GS ENQ | 1D | 05 | 1 | x | x | x | x | x | x | x | Binary |
XON |
|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | Binary |
XOFF |
|
| 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | Binary |
|
|
|
|
| |||||||
Unsolicited status mode (USM) | Response recognized by: |
|
|
| |||||||
USM Byte 1 |
|
| 0 | x | x | 1 | x | x | 0 | 0 | Binary |
USM Byte |
|
| 0 | x | x | 0 | x | x | x | x | Binary |
Bar codes
These commands format and print bar codes and are described in order of their hexadecimal codes.
These commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but there are 640 printable dots rather than the 576 printable dots on 80mm paper.
Select printing position of HRI characters
ASCII | GS H n | |
Hexadecimal | 1D 48 n | |
Decimal | 29 72 n | |
Value of n: | Printing position | |
| 0 | = Not printed |
| 1 | = Above the bar code |
| 2 | = Below the bar code |
| 3 | = Both above and below the bar code |
Default: | 0 | (Not printed) |
Prints HRI (human readable interface) characters above or below the bar code.