ESC/P Command Reference
- 48 -
5. Control Command Details
ESC B
Specify vertical tab position
ASCII: ESC
B
[
n
]
k
NUL
Decimal: 27
66
[
n
]
k
0
Hexadecimal: 1B
42
[
n
]
k
00h
Parameters
1
≤
n
≤
255
0
≤
k
≤
16
Description
z
The vertical tab position is the line feed amount (when this command was specified)*n from the top
margin.
z
Enter n values in ascending order and end the settings with NUL.
z
If an n value is smaller than a previous one, tab setting is ended.
z
Up to 16 vertical tabs can be specified.
z
ESC B NUL cancels all vertical tab positions.
z
Vertical tab positions can be specified regardless of the setting of the bottom margin position. However,
vertical tab positions outside the print area (beyond the bottom margin position) are invalid and only
become valid when a change in the top margin setting or bottom margin setting moves the print area to
include those tab positions.
z
Use VT to move to the vertical tab position.
z
When changing vertical tab positions, specify all positions again.
z
If the top margin is moved, the vertical tab positions are also moved by the same amount.
z
Even if the line feed amount is changed after the vertical tab positions have been specified, the vertical tab
position settings do not change.
z
Performing a VT when no vertical tabs have been specified is equal to performing a CR.