User`s manual
8–54 IBM Proprinter Emulation
Vertical Tab Set/Clear
ASCII Code ESC B n1 n2 nk 0
Hex Code 1B 42 n1 n2 nk 30
Dec Code 27 66 n1 n2 nk 48
Purpose Sets or clears vertical tab positions.
Discussion The physical position on the paper is defined by n and the current line
spacing. n is the number of column settings. k equals the number of tab
position settings possible. The value of n can both be defined in the
range of 1 to 255, inclusive, while k is defined in the range of 1 to 64.
Any value for k over 64 is ignored. Subsequent line spacing changes
affect the tab position. If the value of n exceeds the forms length, that tab
position is ignored. In Proprinter protocol, vertical tab positions are set
by command ESC B and executed by command VT. The tab positions
must be in ascending order or the Proprinter emulation ignores the
out–of–order symbols. If the ESC B command is followed immediately
by 00H, the vertical tab positions are cleared. All control codes that
define vertical distance expressed in inches are stored internally in units
of paper drive steps. The ESC B code can occur at any place in the
datastream and is acted upon immediately.
Example The following sample program illustrates Vertical Tab Setting. To run the
sample below, set your printer at top–of–form.