Star Micronics Rainbow NX-1000C User Manual page 55

Table of Contents

Advertisement

1
1
1
)
1
I
I
I
I
I
I
I
I
J
I
I
I
J
J
J
J
In the following program the car symbol is substituted for the "!" symbol,
which has character code 33. The attribute byte is 139, which specifies that
the character is a descender and is 11 dots wide.
100
110
120
130
135
140
150
160
170
180
190
200
210
220
230
240
REM
CAR SYMBOL qOWNLOAD PROGRAM (DRAFT)
OPEN4,4
PRINT*4, CHR$(27);CHR$(120);CHR$(48);
PRINT*4, CHR$(27);CHR$(58);
PRINT*4, CHR$(O);CHR$(O);CHR$(O);
PRINT*4, CHR$(27);CHR$(38);CHR$(0);
PRINT*4, CHR$(33);CHR$(33);
FOR 1=1 TO 12
READ X :PRINT*4, CHR$(X);
NEXT I
PRINT*4, CHR$(27);CHR$(37) ;CHR$(49);
PRINT*4, "WE ENCOUNTERED HEAVY TRAFFIC "
FOR 1=1 TO 15 : PRINT*4 ,
"!";
:NEXT I
PRINT*4, CHR$(27);CHR$(64); :CLOSE4 :END
DATA 139,124,
0, 66,
4, 64, 36, 16
DATA
2, 16, 12,
0
Near-letter-quality characters can also be downloaded. NLQ characters
are printed in two passes of the print head, the paper scrolling half a dot
up between the two passes. The dot matrix therefore has 16 instead of 8
vertical dot positions. The print head travels at half speed, so there are 23
instead of 11 horizontal dot positions.
The dot matrix for an NLQ car symbol is shown in Figure 3-4. The
black dots are printed on the first pass of the print head. The dots printed
on the second pass are shown in white in Figure 3-4, although of course they
too are printed black. In all there are 46 bytes of dot data. As in draft mode,
the printer cannot print adjacent horizontal dots. The procedure for
downloading this character is the same as for downloading a draft character,
except that NLQ mode must be selected by the < 27> < 120> < 49 >
command.
45

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents