Printing User-Defined Characters - Epson LX-810 User Manual

Hide thumbs Also See for LX-810:
Table of Contents

Advertisement

User-defined Characters
^
The following character definition program should help make this
clear:
100 LPRINT CHR$(2T);"x";CHR$(0) ;
110 LPRINT CHR$(2T);"&";CHR$(0);
^
120 LPRINT " ;
;
130 LPRINT CHR$(128) ;
lllO FOR I—1 TO 11
150 READ A: LPRINT CHR$(A);
160 NEXT I
^
170 LPRINT
180 LPRINT CHR$(27) ;
; CHR$ (1) ;
190 LPRINT
200 LPRINT CHR$(27);"$";CHR$(0) ;
^
210 LPRINT
220 END
230 DATA 32,80,168,8U,U2,8U,168,80,32,0,0
^
In line 100, the ESC x 0 command selects draft printing. The two
^
semicolons (;) in line 120 are nl and n2, the range of characters
being defined (in this case, a range of one). Line 130 contains al,
which in this case specifies to use the top eight pins of the print
^
head.
Line 180 selects the user-defined character set, and line 200
switches back to the normal character set. The actual character
^
design information (contained in the DATA statement in line 230)
^
is sent to the printer in the loop between lines 140 and 160.
Printing user-dejfined characters
If you entered the example program above, you defined a heart
and placed it in the RAM location for decimal code 59 (replacing
the semicolon). You can now print out a three-line sample of your
work. The first and third lines (printed by lines 170 and 210 of the
program) print the normal semicolon; the second line (line 190)
prints the heart that you defined.
^
4-24
Software and Graphics

Advertisement

Table of Contents
loading

Table of Contents