5525B/31/32 Line Matrix Printer LinePrinter Plus Programmer's Reference

86
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes
Margin, Bottom
ASCII Code ESC N
n
Hex Code 1B 4E
n
Dec Code 27 78
n
Purpose Sets the bottom margin.
Discussion
n
defines the number of lines above the bottom of the form to set
as the bottom margin.
n
has a range from 1 through 255 (hex 01
through hex FF). The actual margin in inches is the quotient of
n
divided by the current lines per inch (lpi).
If a line feed command causes the active position to advance
below the bottom margin, the paper advances to the top of the
next form. If the bottom margin set is equal to or greater than the
form length, printing is only allowed on the top line of each page.
If the forms length is changed by the ESC C code (Forms Length
sequence), the bottom margin is set to zero.
The bottom margin setting can also be selected from the control
panel; however, the host control code will override the control
panel setting. Any vertical tabs set within the bottom margin
zone will be ignored.
Margin Cancel, Bottom
ASCII Code ESC O
Hex Code 1B 4F
Dec Code 27 79
Purpose Resets the bottom margin to zero.
Margins, Horizontal
ASCII Code ESC X
n m
Hex Code 1B 58
n m
Dec Code 27 88
n m
Purpose Sets left and right margins in character positions.
where
n
= left margin position
m
= right margin position
Discussion The values of
n
and
m
must be in the range from 0 through 255
(hex 00 through hex FF). The margins are measured in
character positions at the current characters per inch (cpi).
n
is the column number from the left edge of the paper. For
example,
n
= 5 means that the line starts at column number 5.
Therefore it has a left margin of 4.
m
is the column number from the right edge of the paper. For
example,
m
= 56 means that the line ends on column 80 if the
form width is 136.