User manual

APOS KANJI User Manual Page 34 / 45
Ref : 3103039-FDE Issue A
4.1.38. ESC
(Description) Print bit image
(Format) <1Bh> <2Ah> <m> <n1> <n2> [<d>] (k x n)
(Comments) The mode of printing the bit image is defined by the value of m as given in
the table below.
m = 0, 1, 32 or 33
Beware that if an invalid value of m is sent, the command will be ignored and
the following bytes may be interpreted as either printable or control
characters.
The bit image itself is defined as an array whose height is n bytes where
for m = 0 or 1: n = 1
for m = 32 or 33: n = 3
The width is defined by the double-byte number <n1> <n2>. In normal
density, 1 bit represents a width of 2 dots but in double density, 1 bit
represents a width of 1 dot so the width of the data array is therefore k bytes
where
k =(n1 + n2 x 256)
When m = 0 or 32: 0 <= k <= 288
When m = 1 or 33: 0 <= k <= 576
As for the user-defined characters, the image data, [d], is defined with the
MSB at the top and with data sent to represent the image scannedfrom top
to bottom and then left to right. Therefore, there will need to be (k x n) bytes
of data sent to make up the entire image. If k exceeds the values given
above, subsequent data transfers will be ignored.
(Cross reference)
Vertical direction Horizontal direction
m Mode # Dots Density # Dots
Max
Density
0 8 dot single density 8 2 dots/mm 288 3 dots/mm
1 8 dot double density 8 2 dots/mm 576 6 dots/mm
32 24 dot double density 24 6 dots/mm 288 3 dots/mm
33 24 dot double density 24 6 dots/mm 576 6 dots/mm