Star Micronics NX-15 Printer User Manual


 
I
84
Table 6-3
Eighth bit controls
Function
Control code
Turn the eighth bit ON
(ESC) “)”
Turn the eighth bit OFF
(ESC) “=”
Acceptthe eighth bit “as is”from
~Esc) “#,,
the comrmter
Block graphics characters and special symbols
Besides the upper and lower case letters and symbols that we
are by now familiar with, your printer has a whole different set
of characters that are for special uses. These characters include
block graphics for drawing forms and graphs, and special sym-
bols for mathematical, engineering and professional uses. The
special characters are included in two character sets. The
character set you normally use with the IBM mode is called
character set #1. The special characters are printed out when
you send ASCII codes 160 - 255 to the printer.
Your printer also offers character set #2 which is almost the
same as character set #1 except for the addition of ASCII codes
3
- 6, 21, and 128 -
159. Character set #2 is selected with
(ESC) “6”; to go back to character set #1, use (ESC) “7”.
You can also specify the power-on default character set by set-
ting DIP switch 1-7 on for character set #1 and off for character
set #2 while the DIP switch 2-5 is set off. The following program
will print out all of the graphics characters available:
10 LPRINT
CHR$(27) ; “O”;
20 LPRINT CHR$(27) ; “6”;
30 FOR 1=3 TO 6
40 LPRINT
;J ;CHR$(J ) : CHRS(9) ;
50 NEXTJ
60 LPRINT 21 , CHR$(21 )
70 LPRINT
80 FOR J=128 TO 254 STEP 5
.90 FOR I=J TO J+4
95 IF I >254 THEN110
100 LPRINT I ;CHR$(I ) ;CHR$(9) ;
110
NEXTI
120 LPRINT : LPRINT
130 NEXTJ