Star Micronics NB-15 User Manual page 68

Star micronics printer user's manual
Table of Contents

Advertisement

This program
should print "PAY TO THE ORDER OF:"
twice, and they should be 7 inches apart. Line 20 sets the form
length to 7 inches. After line 30 prints, line 40 sends a form feed
advance the paper to the top of the next form. Line 50 then
prints its message.
After you have run this program, turn off the printer and ad-
just the top of form position. When you turn the printer back on
the page length
will reset to its normal setting
(usually 11
inches).
When you set the bottom margin with (ESC)"N"CHR$(n),
the value of n tells the printer how many blank lines should be
left at the bottom of the page.
Let's try a simple application to see how these margins work.
Enter this program,
which will print 150 lines without bottom
margins.
10 ' Demo of
bottom
margin
40 LPRINT CHR.$(12);
' Form feed
BOTTOM MARGIN
Many programs
that you use a printer
don't keep track of
where they are printing
on the page. This causes a problem
when you get to the bottom of a page because these programs
just keep on printing, right over the perforation.
This makes it
very hard to read, especially if a line happens to fall right on the
perforation.
And if you separate the pages then you are really in
trouble.
Of course your printer has a solution to this predicament.
This
printer can keep track of the position on the page, and advance
the paper so that you won't print too near the perforation.
There
is a command to do this. The control codes to set and cancel are
given in the following table.
Table 6-4
Bottom margin commands
Function
Control code
Set bottom margin to n lines
(ESC)"N"CHR$(n)
Cancel bottom marain
(ESC)"O"

Advertisement

Table of Contents
loading

Table of Contents