
BT-T080 Programming Manual
- 73 -
3.2.4 Status check
Printer status (normal status, error status)can be checked by command.
Error status includes: 1. paper end 2. print head lift-up 3. cutter error, etc.
1)
Real-time status transmission (refer to command
10 04 n
). This command is automatically
enabled when the printer is turned on or when error occurs after printer is powered on. Note: do
not check printer status during printing with printer driver.
2)
ASB command (refer to
1D 61 n
). The printer status can be returned automatically in certain
situations. Refer to the command description of
1D 61 n.
3.2.5 Bitmap download
Bitmap can be downloaded into RAM (hereinafter referred to as RAM bitmap) and nonvolatile memory
(hereinafter referred to as NV bitmap). NV bitmaps are retained after the printer is powered off while
RAM bitmaps are cleared after the printer is powered off or initialized by using command
1B 40
,
therefore the RAM bitmap has to be downloaded again when it is to be printed.
Refer to command
1D 2A
(download RAM bitmap) and
1C 71
(download NV bitmap) for detailed
information on how to perform the download. In both RAM bitmap download and NV bitmap download, a
number must be specified for the bitmap to be downloaded. Please read carefully the commands
1D 2A
and
1C 71 for
the difference between
RAM bitmap download and NV bitmap download.
Bitmap download data is processed as follows (to take BMP bitmap for example):
1)
The data is arranged in column data type in the bitmap download command. Refer to command
1D 2A
and
1C 71
for details.
2)
Normally, bitmap data is arranged in line data type. A monochromic BMP image is made of 62
bytes of BMP image attributes description (including bitmap width and height etc.) and normal
image data. The BMP image data is arranged in integral multiple of 4 bytes. For example, if the
width is 34 dots, 8 bytes instead of 5 bytes are needed to store the data. Therefore, the total
amount of bytes a bitmap occupies in the memory is “(Line width in bits+31)/32*4 * line height in
bits”.
Below is an example written under VC++ environment (for reference only):
Note: A non-monochromic BMP image must be transformed into a monochromic image before
downloading it to printer, and both the height (in dots) and width (in dots) of BMP image shall be multiple
of 8; otherwise the program and printer may not be able to process the data correctly.
//************************************************//
// Function: AntiRotateBmp90D //
// Utility: Transform monochromic bmp image into printer processable data //
//Parameter: pBmpData--- Pointer to source data //
// nPixelsOfWidth----image width (in dots) //
// nPixelsOfHeight---image height (in dots) //
// pBmpDataRotated--- Pinter to target data //
// Return value: 1: data transformation success 0: parameter error //
//************************************************//
int AntiRotateBmp90D(
char *pBmpData,