Datamax 7A300007 Rev. 2 manual Bit Compressed Graphics, Graphic String Component, Function

Models: 7A300007 Rev. 2

1 67
Download 67 pages 48.07 Kb
Page 31
Image 31

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

height (# of lines)

width

(# of bytes in each line)

counter

r (# of lines)

Function

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

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

{127 ≥ Counter ≥ 0} Process the next (Counter + 1) bytes of data as 8 bit

Values

graphics.

 

{0 > Counter ≥ -128} Repeat the next single byte of data ((-Counter) + 1) times.

For Unsigned

{127 ≥ Counter ≥ 0} Process the next (Counter+1) bytes of data as 8 bit graphics

Values

{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:

25

Page 31
Image 31
Datamax 7A300007 Rev. 2 manual Bit Compressed Graphics, Graphic String Component, Function