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-8 PN: 9001158B
INTERFACE STATUS (IG)
Receipt of SOH followed by IG causes the printer to return information bounded by an STX-ETX pair that reports
the type of interface connection currently set.
Figure 6-4, Return Status/Format Diagram
BATTERY INFORMATION (BI)
Receipt of SOH followed by BI causes the printer to return information bounded by an STX-ETX pair that reports
battery information.
Figure 6-5, Return Status/Format Diagram
IG RETURN STATUS TABLE
NUMBER ITEM CONTENT BYTES
1 Interface Connection Type
0.00H (Not used)
1.01H (Serial)
2.02H (Wireless LAN)
3.03H (Not used)
4.04H (IrDA)
5.05H (Bluetooth)
1
BI RETURN STATUS TABLE
NUMBER ITEM CONTENT BYTES
1 Battery Information
Battery output voltage is returned (ASCII)
0: 30H = 7.1V and below (low battery)
1: 31H = 7.2-7.4V (battery near end)
2: 32H = 7.5-7.9V
3: 33H = 8.0V and above
1
2 Reserved Consists of 0 fixed data 5
STX ETX
3 Bytes
RETURN STATUS/FORMAT
INTERFACE CONNECTION TYPE
STX ETX
8 Bytes
RETURN STATUS/FORMAT
BATTERY INFORMATION RESERVED