ESC & 02 m n data
Function:
Load User-Defined Characters
Code:
<1B> H <26> H <02> H <m> <n> (<a> (<p> )k1)k2
Range:
21H
≤
m
≤
n
≤
FFH
a = 7 or a = 9
k1 = 2*a
k2 = n - m +1
0
≤
p
≤
255
Description:
Self-defined characters can be loaded with this command.
“m” is the character code of the 1st character to be loaded, and “n” is
the code of the last character. If, for example, only one character needs
to be newly defined, n=m.
This produces the number of characters for k2 = n - m +1.
“a” is the character width in half dots. This value has to be passed on
for each character; however, it must not change during loading.
Character sets which are loaded with a = 7 can be printed with a
character density of 14 or 15.6 cpi.
Character sets which are loaded with a = 9 can be printed with a
character density of 10 or 11.7 cpi.
“p” is the user data (pin information). The amount of user data (bytes)
to be bypassed is k1 = 2 * a.
The following illustration shows the relationship between the data bit
and the matrix point of a 9-pin print head:
User data
Print head
Control Sequences
Description
GB - 55