70

Chapter 4: Programming Commands

Revision D 12/09

Print raster monochrome graphics (ColorPOS®)

ASCII

GS 0x82 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper

Hexadecimal

1D 82 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper

Decimal

29 130 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper

ASCII

DC1 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper

Hexadecimal

11 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper

Decimal

17 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper

Value and range of n: n1 to n72/n80 corresponds to one dot row data for a thermal receipt printer.

Each bit defines whether or not a dot of the current color will be printed. This command is used for printing a monochrome graphic in real-time. Offsets, page and any other modes or overlays, including watermark do not apply and are overridden by this command. A complete rendering of the intended final image should have been done by the application before sending the dot rows. If two-color paper is indicated by the set paper type command, then the raster will be printed in the color that is defined by the set current color command.

���

���� ��

��� ��� ���

���

���

���

������ ������������������

������� ��������������������

Print raster color graphics (ColorPOS®)

ASCII

GS 0x83 n1…..n144 (576 dots 80mm paper) / n160 (640 dots, 82.5mm paper)

Hexadecimal

1D 83 n1…..n144 (576 dots 80mm paper) / n160 (640 dots, 82.5mm paper)

Decimal

29 13 n1…..n144 (576 dots 80mm paper) / n160 (640 dots, 82.5mm paper)

Value and range of n: n1 to n144 / n160 corresponds to one dot row data.

For each printed dot row starting at the top left, two-part bit strings are used to define (in the first half), all dots that are of either color (i.e. not white). The second half string defines only the dots where the color = black. Thus all dots which are on in the first half string but not on in the second half string, select the secondary color. The parameter of this command is thus a string of bytes for one dot row with the same structure as defined for the thermal color format file given in the download color logo command.

This command is used for printing a single raster of color graphics in real-time. Offsets, page and any other modes or overlays, including watermark, and current color do not apply to this command. A complete rendering of the intended final image has to be done by the application before sending the dot rows.

A799-PG00001D

Page 70
Image 70
Cognitive Solutions A799 manual Print raster monochrome graphics ColorPOS, Print raster color graphics ColorPOS