Specifications
Programmers Guide TH230/TH230+
190
GS 0x84
Function:
Download logo image
Code ASCII: GS 0x84 m n1 n2 d1 … dx
Code HEX: 0x1D 0x84 m n1 n2 d1 … dx
Range:
x = (n1 * n2 * 8) * m
m = 1 = monochrome
m = 2 = two-color
n1 ≤ 640/8
n2 ≤ 512/8
Description: The latest value from the set current logo command will be the logo index to
be used to store the download graphics.
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 the rectangular image n1 byte 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 is also an integral number of bytes. Note that n2 can be any
length, subject of memory space availability.
If 57.5 mm paper is used, the value of n1 could be bigger than 408/8 bytes
but of course, the logo is truncated on the right side while printed.
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 is 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 100 ms to allow the printer
time to write the logo to flash.