Technical data
Table Of Contents
- 0. i Cover B
- 0. i Copyright B
- 0. i TOC B
- 1. i Introduction B
- 2. i Programming Concepts B
- 3. i Code Quick Reference B.backup
- 4. i Standard Command Codes B
- 5. i Optional Command Codes B
- 6. i Bi-Directional Communications B
- 7. i Appendix B
- 7
- appendix
- custom graphics
- CUSTOM GRAPHICS EXAMPLE
- 1. Determine the matrix size for the graphic. It must be in 8 dot by 8 dot blocks. The example here has six blocks horizontally and six blocks vertically (48 x 48).
- 2. Lay out a grid and draw the image on the grid.
- 3. Transfer the image into a bit map representation and then into hexadecimal format:
- 4. Using the hexadecimal data, send the following code to print the graphic image as designed.
- 5. To send the data in binary format, the software must convert the data into binary format before transmitting it to the printer. Using the BASIC programming language for example, this is done by notation “CHR$ (&HC0)” which sends the hexidecima...
- PCX GRAPHICS EXAMPLE
- CUSTOM GRAPHICS EXAMPLE
- printer configuration commands
- reference tables

Unit 6: Bi-Directional Communications
“i” Programming Reference
6-5 PN: 9001158B
ENQUIRE & RESPONSE
ENQUIRE (ENQ)
Upon receipt of an ENQ command, the printer responds with status information bounded by an STX/ETX pair. The
status information is defined as follows:
<STX>{ # Byte ID }{ # Status Byte }{ # Byte Label Remaining }{ # Byte Job Name }<ETX>
ID Identifies the current print job ID. Is defined using the Job ID (<ESC>ID)
command transmitted with the print job.
Status Defines the current status of the printer.
Label Remaining Defines the quantity of labels remaining in the current print job.
If an ENQ is received after the print job specified in the ID bytes has been completed, or the buffer is empty of data,
the printer will respond with “space” characters for the ID number (Remaining Labels & Job Name bytes).
The host computer transmits an ENQ to the printer which responds within five milliseconds unless actively printing.
If printing, it will respond upon finishing and then resume printing.
Refer to Appendix: Reference Tables 41 and 42 for additional information.
CANCEL (CAN)
If a CAN command is received, it will stop the print job and clear all data from the buffers. A delay of five
milliseconds is required before any new data may be downloaded. The CAN command is effective upon receipt,
even if the printer is offline or in an error condition. The printer will return an ACK if the printer is not in an error
condition and a NAK if an error condition exists.
PRINT JOB
Upon receipt of a valid print job (<ESC>A....<ESC>Z), an ACK will be returned by the printer if an error condition
does not exist and a NAK if an error condition exists.
PRINTER STATUS (MG)
Receipt of SOH followed by MG causes the printer to return information bounded by an STX-ETX pair that reports
the current operating status of the printer.
RETURN STATUS TABLE
STATUS RETURN CONTENT
ACK (HEX 06H) Displays that an error has not occured with the printer.
NAK (HEX 15H) Displays that an error has occured with the printer.
MG RETURN STATUS TABLE
NUMBER ITEM CONTENT BYTES
1 Not Used 00H Fixed 1
2 Not Used 00H Fixed 1
3 Print Speed
00H 75mm/sec
01H 103mm/sec
1
4 Print Movement
00H Continuous
01H Tear-Off
02H Dispense
1