98
Chapter 4 Configuring the Serial MatrixEmulation with Control Codes
Forms Length Set (Lines)
ASCII Code ESC C
n
Hex Code 1B 43
n
Dec Code 27 67
n
Purpose Sets the length of a form (paper) in lines.
where:
n
=1 through192 (hex 01 through C0) to specify the number of
lines per page at the current line spacing.
Comment The forms length set becomes the current forms length. The
forms length units are always defined in inches; therefore,
subsequent line spacing changes do not affect the result of this
command. Changing lpi does not change the forms length.
The forms length is set to the number of lines defined by the
quotient of
n
and the current line spacing so that the units are in
inches. If the calculated forms length in lines is not an exact
multiple of the target machine dot size, the forms length value is
adjusted down to the next possible multiple.
When forms length is set by the ESC C sequence, the skip-over
perforation is set to zero.
Form Margins, Set
ASCII Code ESC v
n1 n2 n3 n4
Hex Code 1B 76
n1 n2 n3 n4
Dec Code 27 118
n1 n2 n3 n4
Purpose Selects left (
n1
), right (
n2
), top (
n3
), and bottom (
n4
)form
margins.
where:
n1
=The width of the left margin (hex value) in character
columns at the current cpi. If the requested margin is larger than
the current (form width - right margin), the value is ignored.
n2
=The width of the right margin (hex value) in character
columns at the current cpi. If the requested margin is larger than
the current (form width - left margin), the value is ignored.
n3
=The length of the top margin (hex value) in character lines
at the current lpi. If the requested margin is larger than the
current (form length - bottom margin), the value is ignored.
n4
=The length of the bottom margin (hex value) in character
lines at the current lpi. If the requested margin is larger than the
current(form length - top margin), the value is ignored.
Comment A hex value of FF for
n1
,
n2
,
n3
,or
n4
indicates that the margin
remains unaffected. When set, the right and bottom margins
take effect immediately. The left margin takes effect for the
current line only if no horizontal motion has occurred for the line;
otherwise, it takes effect on the next line. The top margin always
takes effect on the next form.