Star Micronics NB-15 User Manual page 111

Star micronics printer user's manual
Table of Contents

Advertisement

103
Note that we didn't hnvc to re-enter the download characters,
since they were already sent to the printer with the first pro-
gram. They will stay with the printer until you download new
characters
to replace them or turn the printer
off. Even the
(ESC) "@" command,
which initializes the printer,
does not
destroy the contents
of download RAM.
n How to print the characters
in control code area
As explained
earlier, you can define characters
with ASCII
values below 32. But you cannot printout those characters
with
normal usage. This is inconvenient
to us, even we can define
download characters
in that range. So, we have made a com-
mand to print those characters:
(ESC i "I" CHR$(z)
L
L
b..
This command is used to print the characters
(if n = 49) or to
select as the control codes (if n = 48). Let's try it out. Enter this
program:
10 LPRINT CHR$(27) ;"xO";
20 LPRINT CHR$(27);"&":CHR$(O);CHR$(7);CHR$(7);
30
FOR M=l TO 30
40 READ MM
50 LPRINT CHR$(MM);
60
NEXT M
70 LPRINT
90 DATA
1,
9,
2, 31,253, 64, 32, 1,128, 80,
5,
0
100 DATA 168,
2,128,
80,133,
0,168,
74,
0, 80,
52,
0
110 DATA 32,
8,
0,
0,
0,
0
120 LPRINT CHR$(27) ;"%l";CHR$(O) ;
130 LPRINT CHR$(27) ;'*Il";
140 LPRINT CHR$( 7)
150 LPRINT CHR$(27) ;"&O";CHR$(O)
160 LPRINT CHR$(27) ; "IO";
You should have printed out the character we defined, instead
of beep.

Advertisement

Table of Contents
loading

Table of Contents