Star Micronics NB-15 user manual print head to the left margin, ready to start a new line

Models: NB-15

1 114
Download 114 pages 4.7 Kb
Page 62
Image 62
print head to the left margin, ready to start a new line.

54

print head to the left margin, ready to start a new line.

Now to add a little confusion-most (but not all) versions of BASIC add a line feed (CHR$(lO)) to every carriage return (CHR$(13)) that they send. If your version of BASIC doesn’t do this, then you should turn DIP switch 2-6 off so that your printer will add the line feed for you. When you have DIP switch 2-6 off the printer will do the same thing when it receives a carriage return as it does when it receives a line feed.

If you find that your printer double spaces when it should single space, then you probably need to turn DIP switch 2-6 on.

Table 6-1

Line feed commands

Function

Control code

Return print head to left margin CHR$(lS)

Advance paper one line

CHR$(lO)

nChanging the line spacing

When you turn your printer on the line spacing is set to 6 lines per inch (or 8 lines per inch if DIP switch 2-8 is off). This is fine for most printing applications, but sometimes you may want something different. Your printer makes it easy to set the line spacing to whatever you want.

Try this program to see how easy it is to change the line spac- ing:

10 ’ Demo of line spacing

20 FOR I=1 TO 20

30 IF I=13 THEN 60

40LPRINT CHR$ (27) ; “A” ; CHRS( I ) ; CHR$ (27) ; “2” ;

50LPRINT “THIS LINE SPACING IS SET TO”;1

60NEXT I

70LPRINT “THIS LINE SPACING IS SET TO l/6 INCH.”

80 LPRINT CHR$(27) ; “A”;CHR$( 10) ;CHR$(27) ; “2”;

90END

This is what you will get:

Page 62
Image 62
Star Micronics NB-15 user manual print head to the left margin, ready to start a new line