Star Micronics NX-15 Printer User Manual


 
62
Table 5-3
Form feed commands
Function
Control code
Advancepapertotopofnextpage
CHR$(12)
Reversepapertotopofcurrentpage
(ESC)CHR$(12)
Changing the page length
You may have some computer forms that are not 11 inches
high. That’s no problem, because you can tell your printer how
high the forms are that you are using. There are two commands
for doing this, shown in this table.
Table 5-4
Form length control
Function
Control code
Setthepagelengthton lines
(ESC)“C”CHR$(n)
Setthepagelengthto
n inches (ESC) “C”CHR$(0)CHR$(n)
Let’s set up a 7 inch high form length, which is typical of
many computer checks. The following program will do it.
NEW
10
Demo of variable form lengths
20 LPRINT CHR$(27);“C”;CHR$(0);CHR$(7);
30 LPRINT “PAY TO THE ORDER OF:“
40 LPRINT CHR$(12);
5(1LPRINT “PAY TO THE ORDER OF:“
6(1END
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).