Star Micronics ND-10/15 user manual Next

Models: ND-10/15

1 128
Download 128 pages 43.01 Kb
Page 80
Image 80

The absolute horizontal tab command moves the print head to a specified position on the page. The positon that you want the print head to move to (measured from the left margin) is specified by the values of nl and n2 in l/60-inch units using the formula nl + n2 x 256.

Try this program to see how this works.

10 ’ Demo of absolute horizontal tabs

20 FOR I=60 TO 70 STEP 2

30 LPRINT I ; “ttt++“;

40LPRINT CHR$(27) ;“$“;CHR$(I) ;CHR$(O) ;

50LPRINT “Horizontal tab.”

60NEXT I

70END

In this program, the print head is positioned before the “H” in “Horizontal” is printed.

The relative horizontal tab command can move the print head right from the current position. The formula for calcu- lating how much the print head moves is the same as in the

absolute horizontal tab command. However, the print head actually moves in l/120-inch units.

Try this program to see how this works.

10 ’ Demo of relative horizontal tabs

20 FOR I=1 TO 3

30 LPRINT “Relative”;

40LPRINT CHR$(27);“\“;CHR$(I*2O);CHR$(O);

50LPRINT “Horizontal”;

60LPRINT CHR$(27);“\“;CHR$(I*lO~;CHR$(O);

70LPRINT “Tab. ”

80NEXT I

90END

Page 80
Image 80
Star Micronics ND-10/15 user manual Next