EasyManua.ls Logo

CHD CHD6800 - GS Q Print Bitmap Block (V4.0.0)

Default Icon
31 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PRINTER CHD6800 Technical Manual
© Computer Hardware Design 23
* This command is not affected by print modes (emphasized, double-strike, underline,
character size).
2.35 GS q Print bitmap block (v4.0.0)
[FORMAT] <1D>H<71>H <l> <n> xL xH d1 … dk
[RANGE] l 30 (fixed) - number of pixel lines
n data format: 0 raw data (not supported), 1 RLE compressed data
(xL+xH x256) = 65535 length of following data
0dFFH
0kFFFFH
[DESCRIPTION] Prints 30 pixel line full printer width (384 pixels) bitmap block. Data d1…dk is in
convenient line format and should be RLE (Run Length Encoding) compressed, if <n> = 1.
RLE is lossless compression. In this case RLE works on byte basis. For compressed data
if 2 equal bytes follow, then 3
rd
is number of sequential equal bytes. For example, if
beginning of horizontal pixel line consists of following data “00 00 00 00 00 00 A5 A5 01
A5 02 02 02…”, then after applying RLE it will look “00 00 06 A5 A5 02 01 A5 02 02 03…”.
[CAUTION] * User defined characters, bit image (GS *), print bitmap block (GS q) and print raster bit
image (GS v 0) shares the same memory. Sending this command will discard bit image or
user defined characters.
* Data to be compressed should contain 30 pixel lines * (384 printer width / 8 bits per byte)
= 1440 bytes. Compressed data length is then specified by xL and xH.
* If bitmap to print consists of less than <l> (30) lines, missing lines should be filled with
0x00 and also sent.
* For better performance it is recommended to configure 115200 baud rate (GS ( E; fn =
11).
* This command is dedicated for printing receipts when using RS232 interface. For
graphical logotypes it is recommended to use FS q and FS p or GS * and GS /
commands.

Table of Contents