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-7 PN: 9001158B
SENSOR STATUS (SG)
Receipt of SOH followed by SG causes the printer to return information bounded by an STX-ETX pair that reports
the current operating status of the printer’s sensors.
Figure 6-2, Return Status/Format Diagram
FORM OVERLAY STATUS (FO)
Receipt of SOH followed by FO causes the printer to return information bounded by an STX-ETX pair that reports
the forms downloaded into the printer.
Figure 6-3, Return Status/Format Diagram
SG RETURN STATUS TABLE
NUMBER ITEM CONTENT BYTES
1 Eye-Mark Sensor Level AD conversion value.0.255.binary data 1
2 Gap Sensor Level AD conversion value.0.255.binary data 1
3 Dispense Sensor
0 (00H). No paper
1 (01H). With paper
1
4 Head-Open Sensor
0 (00H). No paper
1 (01H). Head close
1
FO RETURN STATUS TABLE
NUMBER ITEM CONTENT BYTES
1 Registration Number 01.99.ASCII code 2
2 Registration Name Registration Name.ASCII code 16
STX ETX
DISPENSER
SENSOR
GAP SENSOR
LEVEL
EYE-MARK
SENSOR LEVEL
6+ Bytes
RETURN STATUS/FORMAT
HEAD-OPEN
SENSOR
STX ETXREGISTRATION NAME
20 Bytes
RETURN STATUS/FORMAT
REGISTRATION NUMBER