32
dot-matrix graphics for the two Chinese is as the below figure shows. Each character is
composed by 7 × 8 dots to 7 columns, there is a space between the two characters, so
totally there are 15 columns, then n1=15, n2=0, the 15-byte data showed in hexadecimal
are as follows:
7C, 44, 44, FF, 44, 44, 7C, 00, 41, 62, 54, C8, 54, 62, 41
The BASIC process about this example as follow:
LPRINT CHR$(27); “W”; CHR$(4);
Enlarge horizontal and vertical size 4 times
LPRINT CHR$(27); “K”; CHR$(15); CHR$(0);
‘ESC K command
LPRINT CHR$(
&
H7C); CHR$(
&
H44); CHR$(
&
H44); CHR$(
&
HFF);
LPRINT CHR$(
&
H44); CHR$(
&
H44); CHR$(
&
H7C); CHR$(
&
H00)
LPRINT CHR$(
&
H41); CHR$(
&
H62); CHR$(
&
H54); CHR$(
&
HC8)
LPRINT CHR$(
&
H54); CHR$(
&
H62); CHR$(
&
H41);
LPRINT CHR$(10); CHR$(13);
‘enter to print text
The print result is as following:
ESC
‘
Print the curve
Form: ASCII:
ESC
‘ m
n1 n2……nm
CR
Decimal:
27
39
m
n1 n2……nm
13
HEX:
1B
27
m
n1 n2……nm
0D
Explain: This command is used to print curve along the paper-feeding direction. The
value of m is the number of curves to be printed, which should be between 1 and the
largest dots number.
There are m dots of curve in one horizontal line. N1, n……nm presents the positions