The new line 50 moves the paper up 3 lines, but the printhead doesn’t move. Therefore, line 60 prints its message starting in the column that the printhead was left in at the end of line 30.

FORMS CONTROLS

We have seen how to control the spacing between lines on a page. SD-lo/l5 also has commands that control the placement of printing on the page, and even adjust for different size pages.

nForm feed

The simplest forms control code is the form 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:

40 ‘Form feed.

50 LPRINT CHR$ (12) ;

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:

0

- -

0

0

0

Line number- 1. 0

I.-i ne number 2.

O I Line number 3.

, 1-i ne number 4.

0

Page 63
Image 63
Star Micronics SB-15 user manual Forms Controls