31
The BASIC programs to observing the effect of ESC &, ESC % and ESC : commands are
as below:
10 LPRINT CHR$(27); “W”; CHR$(8);
8 times horizontal and vertical size
20 LPRINT CHR$(27); “&”; CHR$(65);
‘ESC
&
command
30 LPRINT CHR$(
&
H02); CHR$(
&
H7C); CHR$(
&
H40);
40 LPRINT CHR$(
&
HC0); CHR$(
&
H40); CHR$(
&
H00);
50 LPRINT CHR$(27); “%”; CHR$(65); CHR$(65); CHR$(0); ’ESC %command
60 LPRINT CHR$(65); CHR$(13);
Print user-defined character
70 LPRINT CHR$(27); CHR$(58);
‘ESC : command
80 LPRINT CHR$(65);
‘print original character
The print result of the above programs is as following:
4.2.5 Graphics Printing command
ESC
K
Print the dot-matrix graphics
Form: ASCII:
ESC
K
n1
n2……data……
Decimal:
27
75
n1
n2……data……
HEX:
1B
4B
n1
n2……data……
Explain: This command is used to print (n1) ×8bit dot-matrix graphics. The width
of this graphics is (n2×256+n1) dots and the height is 8 dots. Each column has 8 dots
and can be presented by a 8-bit byte, the MSB is on the top.
The values of n1, n2 denote a 16-bit binary data, n1 is LSB and n2 is MSB, which mean
that the width of printed dot-matrix graphics through ESC K command is n1. For
dot matrix series printers, n2=0 and n1 should be between 1 and the largest dots numbers.
Data are the bytes content of each column in this graphics. The bytes number should
equal to n1.
For example: If you want to print two Chinese characters “
中文
” with ESC K command, the
Содержание SP-D10
Страница 41: ...39 Character set 2...
Страница 46: ...44...
Страница 51: ...49...
Страница 52: ...50...