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 4: Standard Command Codes
“i” Programming Reference
4-63 PN: 9001158B
BMP FILE, STORE
FUNCTION
To store for printing a graphic file in a BMP format in the memory.
FORMAT
<ESC>GTaaa,bbbbb,nn...n
aaa = Storage number (001 to 999)
bbbbb = Size of BMP file in bytes
nn..n+ = Data
Place within its own data stream specifying the placement of the graphic.
EXAMPLE
<ESC>A
<ESC>GT001, 12345, nn...n
<ESC>Q1<ESC>Z
OUTPUT
There is no printer output as a result of this command.
NOTES
Data must be sent in binary format.
The first 62 bytes of the stored file is used for the header and the remainder is the BMP image data.
The graphic will not be printed correctly if the specified size does not match the actual graphic size.
Only black and white non-compressed BMP files can be stored. Color BMP files will cause an error.
If you try to store an image in a memory area that already contains data, an error will occur.