61

Form feed

The simplest forms control code is the@wz feed. Form feed (or (FF)) is CHR$(12) and causes the printer to move the paper to the top of the next sheet. Try it by changing lines 40 and 50 to this:

40form feed

50 LPRINT (;HR$Iz);

Before you run the program, turn your printer off and adjust the paper so that the top of the sheet is even with the top of the ribbon guide on the print head, then turn the printer back on. If you don’t remember how to do this, review Chapter 2. When you run the program, the results will look like this:

w

.——— — — — — — — — .—.——

1...I NE NUMHER ‘1.

0 L INE NIJI”’IBER2.

(-) I

 

L – – . – – – – – – ––

———

n

~L INE NUMBER 3.

 

The form feed (CHR$(12)) in line 50 caused the printer to move to the top of a new page before printing the last two lines.

Reverse form feed

Just as your printer can perform a reverse line feed, it can do a reverse form feed. This code moves the paper so that the print- head is positioned at the top of the current page. This can be used, for example, to print text in a multi-column magazine for- mat; print the first column, then reverse form feed back to the top of the page to start the second column. The code for reverse form feed is easy to remember: (ESC) (FF).

Page 69
Image 69
Star Micronics NX-15 user manual ~L INE Number