CognitiveTPG A799 User Manual

Page 71

Advertising
background image

Chapter 4: Programming Commands

71

Revision D 12/09

A799-PG00001D

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 80mm paper

640/8 for 82.5mm paper

The latest value from the set current logo command will be the logo index to be used to store the downloaded graphic.
m identifies 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 define a rectangular image n1 bytes wide and n2 bytes long. n1*8 specifies the number of dot columns, and n2*8
the number of dot rows. That is, each row is defined 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 define first, all dots that are not
white, and the second half defines all dots where the color = black. Thus all dots that are on (=1) in the first 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 definitions 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 100ms to allow the printer time to write the logo to flash.

Print Flash Logo

ASCII

FS p n m

Hexadecimal 1C 70 n m

Decimal

28 112 n m

Print flash logo ID n using mode m. See command 1D 2F m for description of mode m. See
command 1C 71 for description of n.

Define Flash Logos

ASCII

FS q n [xL xH yL yH d1 …dk]1…[xL xH yL yH d1 …dk]n

Hexadecimal 1C 71 n [xL xH yL yH d1 …dk]1…[xL xH yL yH d1 …dk]n

Decimal

28 113 n [xL xH yL yH d1 …dk]1…[xL xH yL yH d1 …dk]n

Define n flash logos specified by IDs 1 through n. Maximum size of logos is determined by
amount of flash allocated to logos. See command 1D 22 80… for flash allocation.
0 < xH:xL < 1024 max printable xH:xL = 72 = 576 dots wide
0 < yH:yL < 256
For each logo definition: xH:xL times 8 dots in the horizontal direction, yH:yL times 8 dots in the
vertical direction. Total data definition bytes k = xH:xL times yH:yL times 8 bytes. See command
1D 2A x y … for description of data definition bytes arrangement.
During execution of this command printer turns off USM and Real Time status processing. The
printer goes busy when writing to flash. At the end of this command the printer resets.

Advertising