70

NEW

10' Demo of one-time line feeds

20LPRINT "LINE NUMBER 1."

30LPRINT "LINE NUMBER 2.";

40' One-time line feed

50LPRINT CHR$(27);"J";CHR$(lOO);

60LPRINT "LINE NUMBER 3."

70LPRINT "LINE NUMBER 4."

80END

Here is what your printer will produce with Standard mode:

LINE NUMBER 1.

LINE NUMBER 2.

LINE NUMBER 3.

LINE NUMBER 4.

The (ESC) “J” CHR$(lOO) in line 50 changes the spacing to 100/180 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 semicolons. This prevents the normal line feed from occurring.

The (ESC) “j” CHR$(n) command works the same way ex- cept that the paper moves in the opposite direction. Try this sim- ple change to your program to see the difference.

40' One-time reverse line feed

50 LPRINT CHR$(27);"j";CHR$(lOO);

LINE NUMBER 3.

LINE NUMBER 4.

LINE NUMBER 1.

LINE NUMBER 2.

Page 79
Image 79
Star Micronics NB24-10/15 user manual Here is what your printer will produce with Standard mode