Star Micronics NX-15 Printer User Manual


 
56
Line feed is more complicated. Each time the printer receives
a CHR$(1O)it both advances the paper one line and returns the
print head to the left margin, ready to start a new line.
Now to add a ittle confusion most (but not all) versions of
BASIC add a line feed (CHR$(1O))to every carriage return
‘(CHR$(13))they receive. If your version of BASIC doesn’t do
this, then you should turn DIP switch 1-8off so that your printer
will add the line feed for you. When you have DIP switch 1-8off
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 1-8 on.
9 Reverse line feeds
Your.printer can move the paper up or down. The unique trac-
tor design allows the paper to be fed in either direction without
jamming. This allows you to move around the page at will. You
can use this feature to print several columns of text side by side,
or to print a graph and then move back up and insert descriptive
legends. As you experiment you’re bound to come up with more
uses!
The simplest form of reverse paper feeding is a reverse line
feed. The code is (ESC) (LF), which causes the paper to move
down (in effect, moving the printing I.@)one line. A “line” used
in a reverse line feed is the same size as a line in a regular line
feed (this is normally 1/6 inch). When you change the line spac-
ing (which you’llread about next), both forward and reverse line
feeds change.
Table 5-1
Line feed commands
Function Control code
Return print head to left margin
CHR$(13)
Advancepaper oneline
CHR$(1O)
Reversepaper oneline (ESG) CHR$(1O)
Changing the line spacing
When you turn your printer on, the line spacing is set to 6
lines per inch. This is fine for most printing applications, but
when you want something different, the 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: