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-2 PN: 9001158B
INTRODUCTION
Bi-Directional communications is a two-way communications protocol between the host and the printer enabling
the host to monitor and control the printer’s operational status.
GENERAL CONFIGURATION
Refer to Appendix: Reference Table 40 for printer configuration commands.
RECEIVE BUFFER
This protocol controls information such as reception, print, and cancelation for every item. When the buffer is near
full, an error will occur informing the host that either there is not enough memory remaining or that the item quantity
has been exhausted.
To release the receive buffer one of those conditions must be remedied.
DATA TRANSMISSION
Data transmissions must be preceded with STX (HEX 02H) and be followed by ETX (HEX 03H) to function.The
string must also include the item number or an error will occur. An error will also occur if an incorrect item number
is identiifed. BCC must follow <ESC>Z if the BCC function is enabled.
Print Data
<STX><ESC>A<ESC>{ID 00000}<ESC>{Print Data}<ESC>Z<ESC>BCC<ETX>
Status Request
{ENQ}