Download Font; Graphics; Download Bmp Logo - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

Download font

ASCII
GS 0xF0 0x80 followed by file
Hexadecimal
1D F0 80
Decimal
29 240 128
This command is the sequence introducer for downloading existing files.
The downloaded font is always stored in the permanent font area of flash. If there is not enough memory in the permanent font area
to store the file the printer returns NACK.
When the file is downloaded the printer returns ACK.
If the file contents are incorrect the printer returns NACK. File format to be described in appendix.
So the full sequence for downloading files as font ID CB would be:
1D F0 01 CB
1D F0 80
followed by map file shftjis.chr
1D F0 02 01
1B 20 n
for horizontal character spacing
1B 33 n
for vertical character spacing
1D F0 80
followed by character definition file shftj16.chr
1D F0 02 02
1B 20 n
for horizontal character spacing
1B 33 n
for vertical character spacing
1D F0 80
followed by character definition file shftj24.chr

Graphics

These commands are used to enter and print graphics data and are described in order of their hexadecimal codes, unless otherwise
noted.
These commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but there
are 640 printable dots rather than 576 printable dots on 80 mm paper.

Download BMP logo

ASCII:
ESC (+*.BMP file)
Hexadecimal: 1B (+*.BMP file)
Decimal:
27 66 77(+*.BMP file)
Value:
Maximum width = 576 (640 for 82.5mm paper)
Maximum height = 512
Enters a downloaded BMP logo into RAM or flash.
The downloaded BMP logo can be printed by using the print downloaded bit image (1D 2F m) command.
To downloaded BMP file to save it as a logo, send the hexadecimal code 1B followed by the whole BMP file.
The printer decodes the BMP file header and will save the image data after checking important parameters, such as:
- Width
- Height
- Number of colors (only monochrome images are accepted)
BMPs and bit images continue to be definable only for the receipt station. However, there is no longer an automatic erasure
whenever the user downloads a character set (as happened previously) as well as in the case where the current logo was never set
> 0, (the automatic erasure if user flash memory had filled up with inactive logo 0 definitions upon next power cycle). Warnings
about the effect of running out of defined logo space during a download apply (i.e. the command is ignored). The application is
required to manage user data space, downloaded font space, and logo space.
After downloading a logo to the printer, wait 100ms to allow the printer time to write the logo to flash.
Exceptions
BMP file images that are not monochrome are put into the print buffer.
Related information
Microsoft BMP bitmap file format.
This command is recognized in Native mode.
In A793 and LEGACY emulations, the BMP file bytes are put into the print buffer.
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
69

Advertisement

Table of Contents
loading

Table of Contents