Star Micronics NB24-10/15 Printer User Manual


 
83
the one-time horizontal tab command. Try this program to see
how these commands work.
10
Demo of print positions
20 LPRINT
‘I* 1st Line, 1st Column”
30 LPRINT
CHR$(27);“fl”;CHR$(3);
40 LPRINT
‘I* 5th Line, 1st Column”
50 LPRINT
CHR$(27);“fO”;CHR$(7);
60 LPRINT
I’* 6th Line, 7th Column”
70 LPRINT
CHR$(27);“fl”;CHR$(2);
80 LPRINT
CHR$(27);“fO”;Cl%R$(5);
90 LPRINT
‘I* 9th Line, 5th Column”
100 END
In this program, line 30 sends a one-time vertical tab with
(ESC) “f” 1 command. Line 50 sends a one-time horizontal tab
with (ESC) “f” 0 command. Finally, line 70 and line 80 send
one-time vertical tab and one-time horizontal tab, so the line 90
prints text at the specified position.
* 1st Line, 1st Column.
* 5th Line, 1st Column.
* 6th Line, 7th Column.
* 9th Line, 5th Column.
Table 5-10
Vertical tab commands
Function
Control code
Advance paper to next tab position
CHR$(ll)
Set vertical tabs at nl, n2, etc.
(ESC) “B” CHR$(nl) CHR$(nZ) . . . . .
CHRW)
Set vertical tabs every n lines
(ESC) “e” 1 CHR$(n)
One-time vertical tab
(ESC) “f” 1 CHR$(n)