beautypg.com

4 uncompressed font to ram (^d104) – Microcom 438 User Manual

Page 107

background image

Downloadable Graphics

Chapter 6

6-6

438 Operator’s Manual - 880052-0100

6.5.4

Uncompressed FONT to RAM (^D104)

This command allows graphic and/or font images (fonts must be less than 64KB
uncompressed) to be transmitted in ASCII-HEX, thereby allowing all data to pass over 7 or
8-bit data connections. This command is usable on data connections that support either 7
or 8-bit data.

The following is the format of the ^D104 command when used for a graphic image file:

^A<Slot Number>^D104
<Rotation> <Count> <Image Data>

Where:
<Memory Slot Number> is the memory slot location (1-255) where the graphic will be saved
in the printer’s memory. The printer uses the same TCI of “8” to select downloadable fonts
or graphics. Therefore a font and a graphic cannot have the same Slot Number or CGN
number.

<Rotation> is an 8-bit integer, 0 for an upright font, and 1 for a 90-degree rotated image.

<Count> is a 32-bit integer, least significant byte first. This is the number of bytes that the
image uses.

<Image Data> is the graphic image data that has been converted to ASCII-HEX.

ASCII-HEX Conversion
The ASCII-HEX conversion is performed by “ORing” the most significant and least
significant nibbles of every byte with “30” HEX.

For Example: To convert the byte “6C” to ASCII-HEX, simply OR the first and second
nibbles with “30” HEX. This results in the two bytes “36” HEX and “3C” HEX. This
conversion results in a file size that is twice as big as the source, the data can now be
transmitted over a 7-bit data connection.











Figure 6-1 ASCII-HEX Conversions


6C

6

C


36 3C

This manual is related to the following products: