Datamax-O'Neil APEX Series Programmer’s Manual User Manual

Page 31

Advertising
background image

25

The following 8-bit graphic command is used to print a single line of graphic

Escape Sequence: ESC V SOH NUL 72 bytes of data

Hexadecimal:

1B 56 01 00 72

bytes

of

data

Decimal:

27 86 1 0 72

bytes

of

data

8 Bit Compressed Graphics

ESC v height width counter data [c data] [c data] …

This command differs from the 8 Bit Graphics command described above by reducing the number of bits (bytes) that
have to be sent to the printer. This allows for faster data transfer between the host computer and the printer.

Graphic String Component

Function

height

(# of lines)

An eight bit value representing the number of dot-lines contained in the following data set

width

(# of bytes in each line)

An eight bit value representing the number of bytes to be contained in each dot-line of the following
data set

An eight bit value which describes how the following data will be processed

For Signed
Values

{127 ≥ Counter ≥ 0} Process the next (Counter + 1) bytes of data as 8 bit
graphics.
{0 > Counter ≥ -128} Repeat the next single byte of data ((-Counter) + 1) times.



counter

r

(# of lines)

For Unsigned
Values

{127 ≥ Counter ≥ 0} Process the next (Counter+1) bytes of data as 8 bit graphics
{128 ≥ Counter ≤ 255} Repeat the next Singe byte of data, (( 256 – Counter)+1)
times

Example: Compressed graphic

The following graphics data is to be printed:

Advertising
This manual is related to the following products: