Star Micronics Radix User Manual page 117

Table of Contents

Advertisement

Special Features of the Radix Printer
103
50 LPRINT I "= " ;
60
LPRINT CRR!$(I) ; 'Send graphic char.
70 LPRINT
CHR$(9)
; 'Tab.
80 NEXT I : LPRINT : NEXT J
Figure 10-l
shows what this program will print. If your chart
doesn't look like this because it has regular letters and numbers
instead of the special symbols, then your computer is only using
seven bits (unless you have set
DIP
switch C-3 on by mistake). You
can get the correct printout by adding these lines:
55
LPRINT CRR$(27) ")I' ; 'Turn on 8th bit.
65
LPRINT CRR$(27) f'=f' ; 'Turn off 8th bit.
So how are all of these strange characters used? Here is a
short program that demonstrates how the graphics characters can
be combined to create figures.
10 'Draws a figure with block graphic chars.
20 LPRINT CRR$(27) "A" CRR$(
6)
; 'Set line spacing
to 6/72".
30
LPRINT CRR$(235) CRR$(231)
CHFG(231) CHR$(236)
40
LPRINT CRR$(233) CRR$(163) CRR$(161) CRR$(234)
50 LPRINT CRR$(233) CRR$(162) CRR$(16pI) CRR$(234)
60 LPRINT CRR$(237) CRR$(232) CIW(232) CRR$(238)
70 LPRINT CRR$(27) "2" ; 'Restore l/6" line spacing.
If you have a T-bit interface, add the following lines to the
program given above.
25
LPRINT CRR$(27) 'f)ff ; 'Turn on 8th bit.
65 LPRINT CHR$(27) ff=f' ; 'Turn off 8th bit.
In this program line 20 sets the line spacing to
6
dots which is
the height of the graphics characters. Then lines 30-60 print the

Advertisement

Table of Contents
loading

Table of Contents