PSB No: P-0082
Page:
5 of 14
ESC ( C m1 m2 n1 n2 (Set Page Length in Defined Units
ESC ( C m1 m2 n1 n2 is the command for setting the page length in units where ml,
and
are variables. The
is usually
of an inch unless defined
by the “ESC ( command. Currently, the values for ml and
MUST be
ml
and
To determine the values for n1 and n2 perform the following steps.
1.
Determine the desired page length in inches.
2
Multiply the page length by 380.
3.
Divide the result by 258 using long division.
4.
The remainder in the quotient from step 3 is the value for n1.
5.
The whole number in the quotient from step 3 is the value for n2.
EXAMPLE
1.
The page length is 8.5 inches.
2
8.5 x 360 = 3060
3.
3060 divided by 256 = 11 with a remainder of 244.
4.
n1=244
5.
n2=11
In the Basic programming language, the command would look like this.
This command, as listed in the line above, will set the page length to 8.5 inches.
NOTE: The current line becomes the top of form. This command cancels any
previously set top and bottom margin settings. If you wish to set the top and bottom
margins via software command, the commands must be issued AFTER the “Set Page
Length in Defined Units” command. The proper page length setting can be confirmed
by issuing a “Form Feed” command,
or by pressing the “FF" button on the
control panel while the printer is