Download character, Esc % esc, Selects user-defined character set. (epson) – Compuprint 4247-L03 Programmer Manua User Manual
Page 52: Defines the 24-pin download characters. (epson), Download character esc

Download Character
ESC %
Selects user-defined character set. (EPSON)
ASCII Code
ESC & n
Hexadecimal Value
X'1B' X'25' n
Decimal Value
27 37 n
This command switches between normal (resident) and user-defined (downloaded) characters:
n
Selection
1
Selects the use of downloaded character set in RAM
0
Selects the use of resident character set in ROM
ESC &
Defines the 24-pin download characters. (EPSON)
ASCII Code
ESC & NUL n m a
0
a
1
a
2
d
1
... d
x
Hexadecimal Value
X'1B' X'26' 00 n m a
0
a
1
a
2
d
1
... d
x
Decimal Value
27 38 00 n m a
0
a
1
a
2
d
1
... d
x
Range
0 ≤ n ≤ 127
0 ≤ m ≤ 127
0 < = d
x
< = 255
a
0
a
1
a
2
: see below
This escape sequence is used to download fonts to the printer. Once fonts have been downloaded, they
can be selected by ESC % n.
Parameter n is the character position of the first character and parameter m is the character position of the
last character to be downloaded. For example, to download character “RST” the user would specify n=52H
and m=54H. Characters must be downloaded to consecutive positions after the first character. The
parameters a
0
, a
1
, and a
2
must be sent for each character being downloaded and are known as the
attribute bytes. Parameter a
0
specifies the number of dot columns to be added before the character.
Parameter a
1
specifies the width of the character. Parameter a
2
specifies the number of dot columns to
add after the character. The parameters d
1
... d
x
represent the dot column data being downloaded for each
character. 2 or 3 data bytes represent 1 column of dots depending upon the print mode type as shown
below. Draft, Letter Quality, superscript, and subscript fonts can be downloaded. It is necessary to select
the desired print mode prior to sending the download data. Each dot column has a width of 1/120" in Draft
and 1/360 in Letter Quality. Following are limits of parameters a
0
, a
1
, and a
2
for LQ Draft and
Super/Subscript print mode at various character pitches.
LQ
DRAFT
10 cpi
12 cpi
15 cpi
Prop
Script
Norm
Script
a
1
29
23
15
39
23
9
7
a
0
+ a
1
+ a
2
36
30
24
42
36
12
12
The mapping of data bits to wires is as follows:
36
Programmer Manual