. . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Infinite Peripherals, Inc.
Page 12
www.ipcprint.com
PP-55 Resident Command Set Version 1.01
Detailed Description
ESC * m n[ d ] k
ESC * m n h f [ d ] k
Specifying the Bit Image Mode (Sending graphics data horizontally)
[Code] <1B>H<2A>H<m><n> [ <d> ] k
<1B>H<2A>H<m><n> <h><00>H [ <d> ] k (mode 18 only)
[Range] {m = 16, 17, 18, 20 bit image mode }
{0 <= n <= 40h}
{0 <= d <= FFh}
{k = n * 24 * 48} (m = 16)
{k = n * 24 * 48} (m = 17) { After decompression }
{k = n * h * 48} (m = 18) { After decompression }
{k = n * 24 * 48} (m = 20) { After decompression }
{0 <= h <= 24 (Used only for mode 18.)}
[Outline] In these graphics modes is sent a graphics block with variable width n*8
dots and height 24 dots for modes 16,17 and h dots for mode 18. In mode
17 data is compressed, and the bytes count specified is before the
compression. In mode 16 the same data is without compression. Mode 20
is similar to mode 17, but every byte is mirrored before putting in the print
buffer (bits 0 and 7, 1 and 6, 2 and 5, 3 and 4 change places). All modes
are high resolution (203 x 203 DPI).
• When bit image data have been input in excess of dot position of one line
(384 dots) , the excess data are discarded.
• d is bit image data, the bits subject to printing are taken as "1" and those
not as "0".
[Caution] • When the values set in m (bit image mode) are out of the above range,
the data following after n is processed as normal printing data.
• After completion of bit image printing, printer returns to normal data
processing mode.
[Compression procedure for mode 17 and 18]
A simple RLE encoding like this in PCX files is used. If two most
significant bits of the byte are set, the 6 LSB contain a repeat
counter (1-63), and the next byte contains the data to be repeated.
A single data byte with 2 MSB set must be sent as two bytes.