65

The < ESC > “J” CHR$(n) command causes the printer to make one line feed of n/21 6 inch, but does not change the setting of the line spacing. Try this program to see how it works:

NEW

10 ’ Demo of one-time line feeds

20LPRINT “LINE NUMBER1.”

30LPRINT “LINE NUMBER2. ‘I;

40One-time line feed

50LPRINT CHR$(27) ;“J”;CHR$(lOO) ;

60LPRINT “LINE NUMBER3.”

70LPRINT “LINE NUMBER4. ”

80END

Here is what your printer will produce:

The < ESC > “J” CHR$( 100) in line 50 changes the spacing to 100/216 inches for one line only without moving the printhead. The rest of the lines printed with the normal line spacing. Notice that both line 30 and line 50 end with semi- colons. This prevents the normal line feed from occurring.

The < ESC > “j” CHR$(n) command works the same way except that the paper moves in the opposite direction. Try this simple change to your program to see the difference.

40 ’ One-time reverse line feed

50 LPRINT CHR$(27);“j”;CHR$(lOO);

Page 71
Image 71
Star Micronics ND-10/15 user manual New