Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands70
A776 (B780) Programming Guide A776-PG00001 C 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
Value and range of n: n1 to n72/n80 corresponds to one dot row data for a thermal receipt printer.
Each bit denes whether or not a dot of the current color will be printed. This command is used for printing a
monochrome graphic in real-time. Osets, page and any other modes or overlays, including watermark do not apply
and are overridden by this command. A complete rendering of the intended nal 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
dened by the set current color command.
Print raster color graphics (ColorPOS
®
)
ASCII GS 0x83 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper)
Hexadecimal 1D 83 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper)
Decimal 29 13 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm 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 dene (in the rst half), all dots that
are of either color (i.e. not white). The second half string denes only the dots where the color = black. Thus all dots
which are on in the rst 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 dened for the thermal color format
le given in the download color
logo command.
This command is used for printing a single raster of color graphics in real-time. Osets, page and any other modes or
overlays, including watermark, and current color do not apply to this command. A complete rendering of the intended
nal image has to be done by the application before sending the dot rows.
Download logo image (ColorPOS
®
)
ASCII GS 0x84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m
Hexadecimal 1D 84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m
Decimal 29 132 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m
Value of m: 1 = monochrome
2 = two-color
Max n1 = 576/8 for 80 mm paper or
640/8 for 82.5 mm paper
The latest value from the set current logo command will be the logo index to be used to store the downloaded
graphic.
m identies whether the image is monochrome (which requires one parameter bit row description) or two-color,
which requires a pairing of bit descriptions for each row.
n1 * n2 dene a rectangular image n1 bytes wide and n2 bytes long. n1*8 species the number of dot columns, and
n2*8 the number of dot rows. That is, each row is dened by an integral number of bytes and the number of rows is
also an integral number of bytes. Note that n2 can be any length, subject to memory space availability.
For each color dot row starting at the top left, a two part parameter byte string is used to dene rst, all dots that are
not white, and the second half denes all dots where the color = black. Thus all dots that are on (=1) in the rst half but
not on in the second half select the paper-color. A sequence of these raster row strings is used to specify the complete
logo. In the monochrome case, only one bit is needed per row. This is the same structure as used for the denitions of
print raster monochrome graphics and print raster color graphics.
This command is used for storing a logo of n1 by n2 size indexed by the current logo value.
After downloading a logo to the printer, wait 100 ms to allow the printer time to write the logo to ash.