Interaction Commands
Such commands only apply to the serial port and allow the host to understand the status and configuration of the printer.
Command | Description | Response | Contents of the Response |
|
| from printer |
|
<SOH># | Reset | Yes | <XOFF><XON>T |
<SOH>A | Send a readable status | Yes | <8 bytes, Y/N> <CR> |
| string |
| byte 1 : Y - printer busy |
|
|
| byte 2 : Y - paper out |
|
|
| byte 3 : Y - ribbon out |
|
|
| byte 4 : N (always) |
|
|
| byte 5 : Y - printing |
|
|
| byte 6 : Y - printer paused |
|
|
| byte 7 : Y - label presented |
|
|
| byte 8 : N (always) |
<SOH>B | Toggle pause | No |
|
| condition |
|
|
<SOH>E | Send the number of | Yes | e. g. |
| labels to be printed |
| 0000<CR> |
|
|
| no label left to be printed |
<SOH>F | Send status byte | Yes | n<CR> |
|
|
| Same as <SOH>A, except bits 1 to 8 |
|
|
| corresponds to bytes 1 to 8 of <SOH>A. |
Notes:
1.Control codes for the printer commands.
Symbol | Code (hexadecimal) |
XON | 11H |
XOFF | 13H |
STX | 02H |
SOH | 01H |
ESC | 1BH |
LF | 0AH |
CR | 0DH |
2. There is no space code in each command.