CognitiveTPG A760 User Manual

Page 73

Advertising
background image

A760 User Guide: Programming Supplement

Chapter 4: Programming commands

73

Revision F January 2010

Background logo print mode (ColorPOS

®

)

ASCII

GS 0x92 n

Hexadecimal 1D 92 n
Decimal

29 146 n

This command will place into the graphics buffer the
logo designated by n. As soon as there is a print action
command (such as text output) the graphics buffer will
be merged (logical OR process) with print output.

This command sets the graphics buffer state to “merge
pending”, functioning and performing the save as in the
form and merge real time surround graphics command.

Related information

This command is ignored in page mode.

Shade and store logo (ColorPOS

®

)

ASCII

GS Ox9A n m o

Hexadecimal 1D 9A n m o
Decimal

29 154 n m o

Value of n:

n is ID (logo index value) of an existing

logo in either flash or RAM memory

Value of m:

m is the % of shading to be applied to

the logo, 0 <= m <=100.

Value of o:

o is the new ID (logo index value) to be

used to store the shaded result, according

to the current setting of user storage into

flash or RAM.

This command applies shading to an existing logo of any
size, storing the result in a new logo at index o. The new
logo is thus better suited for use in a merging mode. The
% of shading will have only a few perceptible gradations,
so large increments (20 is suggested) should be used to
achieve visibly distinct effects.

Logo print with knife cut

ASCII

GS 0x9B m n

Hexadecimal 1D 9B m n

Decimal

29 155 m n

Value of m:

0 = Standard size

1 = Double wide

2 = Double high

3 = Double high/wide

Value of n:

01 - FF (Hex)

#dot rows = n x 24

n = 5 is the recommended setting

Because the printhead and cutting knife are physically
separated, it is necessary to advance the printed area of a
receipt past the knife to avoid the last of the printing from
being cut off. This advance of paper however, causes a
blank space at the start of the next receipt that could be
used. To utilize this space and reduce paper usage, this
command starts to print a logo for the next receipt before
initiating the cut at the end of the current receipt. At a set
location during the printing of the logo, the corresponding
paper advance is stopped and a paper cut performed.

The formula “n x 24” is used to determine the number of
dot rows to move the paper from the start of the logo to the
position of the cut.
If n x 24 is greater than the height of the logo, the logo
height is used to determine the cut position. If n = 0 the
cut is eliminated.
In order for this command to function properly, all
commands used by legacy applications to move the end of
the current receipt past the knife should be removed.
The command is available only in A795 native mode.

Related information

See “Print downloaded bit image” command.

Advertising