Microcom 322M User Manual

Page 65

Advertising
background image

Chapter 7

Downloadable Graphics

322M Operator’s Manual

61

“00 00 01 02 03 04 00 05 FF 00 FD FF 04 00 00 FF 00”

Result interpretation:
00 - the first byte is 00
00 - count of 0 (the previous 00 byte is not repeated or repeated zero times)
01 - a 01 byte
02 - a 02 byte
03 - a 03 byte
04 - a 04 byte
00 - another 00 byte in the file
05 -

the 00 byte is repeated 5 times for a total of 6 “00” bytes (00+05=6 “00” bytes)

FF - a FF byte
00 - count of o (the previous FF byte is not repeated or repeated zero times)
FD - a FD byte
FF - another FF byte
04 -

the FF byte is repeated 4 times for a total of 5 “FF” bytes (FF+04 = 5 “FF” bytes)

00 - another 00 byte
00 - repeat count = 0
FF - another FF byte
00 - repeat count = 0

The compression scheme is slightly inefficient for single 00 HEX and FF HEX occurrences
by entering two for each of these occurrences but most image bitmaps include large areas
of either blank space (00 HEX) or black space (FF HEX).

If a string of more than 255 00 HEX or FF HEX occurs, the byte-plus-count sequence may
be repeated as often as necessary to incorporate all occurrences of the byte. For example,
a string of 1132 “FF” HEX bytes in sequence may be encoded as:

“FF FF FF FF FF FF FF FF FF 6B”

The first four pairs of FF HEX each encode 256 bytes of FF HEX (one for the fist FF byte
and 255 copies) totaling 1024 bytes of FF HEX. The next FF HEX byte adds another and
the 6B HEX adds 107 additional copies for a total of 1132 FF HEX bytes.
(4 X 256)+1+107 = 1132

7.2.2

Uncompressed Image (^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 useable 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<CR>
<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

Advertising