Star Micronics NB-15 Printer User Manual


 
,
L
Try this program to see the difference that printing in one
direction makes.
10
Uni-directional printing
20 LPRINT CHR$(27);“A”;CHR$(6);
30 LPRINT CHR$(27) ;“2”;
40 FOR I=1 TO 10
50 LPRINT I
60 NEXT I
70 LPRINT :LPRINT
80 LPRINT CHR$(27) ;“Ul”;
90 FOR I=1 TO 10
100 LPRINT “I
110 NEXT I
120 LPRINT CHR$(12);CHR$(27);“@”
Here is what you will get. The top line is printed bi-directional-
ly, and the bottom is printed uni-directionally. You will have to
look hard because there isn’t much difference.
Let’s analyze the program. Line 20 defines the line spacing to
6/60 of an inch so that the characters that we print will touch top
to bottom, and line 30 activates the definition. Lines 40 - 60
print 10 vertical line characters. Then line 80 sets one-direction
printing and the vertical lines are printed again. Finally line 120
sends a form feed to advance the paper to the top of a new page,
and then uses the master reset to restore the printer to the