Brother HL-Series Technical Reference Manual page 232

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96
Ÿ
You can only use this command in portrait orientation.
10 WIDTH "LPT1", 255
20 LPRINT "*** ESC ^ m n1 n2 ***"
30 LPRINT "--STANDARD DENSITY--"
40 M=0
50 GOSUB 120
60 LPRINT
70 LPRINT
80 LPRINT "--DOUBLE-DENSITY--"
90 M=1
100 GOSUB 120
110 END
120 FOR A=1 TO 10
130 LPRINT CHR$(27); "^";CHR$(M);CHR$(10);CHR$(0);
140 LPRINT CHR$(8);CHR$(128);CHR$(20);CHR$(0);
150 LPRINT CHR$(34);CHR$(128);CHR$(65);CHR$(0);
160 LPRINT CHR$(128);CHR$(128);CHR$(65);CHR$(0);
170 LPRINT CHR$(34);CHR$(128);CHR$(20);CHR$(0);
180 LPRINT CHR$(8);CHR$(128);CHR$(0);CHR$(0);
190 NEXT A
200 RETURN
** ESC ^ m n1 n2 ***
Sample 10
Print single-density image
EscK n
n
< image data >
1
2
Ÿ
This command enables you to define and print a single line raster bit image on a single text
line.
Ÿ
n
and n
1
Ÿ
The image consists of 256*n
of 4/30".
Ÿ
Each byte represents a vertical column of eight dots, the most significant bit representing the
dot at the top. Simply set a bit to 1 if you want a dot to appear in that position, and to 0 if you
want white space to appear.
Ÿ
Images are printed from left to right.
Ÿ
Images are printed at a horizontal resolution of 60 dots per inch and at an approximate
vertical resolution of 72 dots per inch.
Ÿ
You can only use this command in portrait orientation.
10 WIDTH "LPT1:", 255
20 LPRINT "*** ESC K n1 n2 ***"
30 FOR I=1 TO 5
40 '* STANDARD DENSITY BIT IMAGE MODE *
50 LPRINT CHR$(27);"K";CHR$(160);CHR$(0);
60 FOR J=1 TO 8
70 FOR K=1 TO 20
80 N=2^J-1
90 LPRINT CHR$(N);
100 NEXT K
110 NEXT J
120 LPRINT
130 NEXT I:END
*** ESC K n1 n2 ***
Sample 11
(27)(75)n1n2....
define the number of bytes that comprise the image.
2
+n
2
Chapter 5 " EPSON FX-850 " - 33
bytes of data, each byte representing a single vertical column
1
<1Bh><4Bh>n1n2....

Advertisement

Table of Contents
loading

Table of Contents