2001/10/02
CHAPTER 6 EPSON - 17
•
m
i
specifies the tab based on the current line space setting.
•
The value of
m
i
must be in the range 0 to 255.
•
The tab stops must be set in ascending order. If you specify a channel’s tab settings in any other
order, any previous settings made for that channel are cleared.
•
Vertical tab settings are not affected by subsequent changes in the line spacing setting.
•
Esc b
n
0
clears the vertical tab settings set for channel
n.
•
You can select a channel using the
Esc /
command and move the print position to its tab stops using
the
VT
control code.
LPRINT CHR$(27); CHR$(98); CHR$(1); CHR$(10); CHR$(20); CHR$(0);
'Set tab stops at lines 10 and 20.
Select vertical tab channel
Esc/
n
(27)(47)n
<1Bh><2Fh>n
•
This command allows you to select a set of vertical tabs (or channel) that you defined using the
Esc b
command.
•
All subsequent vertical tab commands use the selected tab channel’s settings.
•
n
must be in the range from 0 to 7.
•
The default channel is channel 0. Channel 0 is the current channel when the printer is first switched
on or after a reset with the
Esc @
command.
•
There are no default vertical tab settings for any channel.
LPRINT CHR$(27); CHR$(47); CHR$(5); 'Select vertical tab channel 5
Vertical tab
VT
(11)
<0Bh>
•
The
VT
control code (ASCII 11) moves the current print position one vertical tab stop down the page.
The current vertical tab channel’s settings are used.
•
If you have not previously selected a vertical tab channel with the
Esc /
command, channel 0, the
default channel is used.
•
If you have not set any vertical tab stops for the current channel with either the
Esc B
,
Esc b
,
or Esc e
1
commands, the print position is moved down one line using the current line space setting.
•
If there are no tab stops below the current print position a line feed is performed.
•
If no tab stops have been set a carriage return and line feed are performed.
LPRINT CHR$(11); ' Vertical tab
6.5.
Using Standard Characters
Set pitch to 10 characters per inch
EscP
(27)(80)
<1Bh><50h>
This command sets the printing pitch to 10 characters per inch (cpi).
LPRINT CHR$(27); CHR$(80); 'Set pitch to 10 cpi
Set pitch to 12 characters per inch
EscM
(27)(77)
<1Bh><4Dh>
This command sets the printing pitch to 12 characters per inch (cpi).
LPRINT CHR$(27); CHR$(77); 'Set pitch to 12 cpi
Select / cancel proportional spacing
Escpn
(27)(112)n
<1Bh><70h>n
•
This command allows you to turn proportional spacing on or off.
•
Setting
n
to 1 turns proportional spacing on. Subsequent text is printed proportionally spaced.
•
Setting
n
to 0 turns proportional spacing off. Subsequent text is printed monospaced.
•
When you specify the value for
n
you can use the character codes for ‘0’ and ‘1’ (48 and 49) instead
of 0 and 1.
•
Selecting proportional spacing cancels condensed character mode.