Epson ActionPrinter 3250 Product Support Bulletin(s) - Page 11

ESCm1 m2 n1 n2 Set Length in Defined Units

Page 11 highlights

PSB No: P-0082 Page: 5 of 14 ESC ( C m1 m2 n1 n2 (Set Page Length in Defined Units I ESC ( C m1 m2 n1 n2 is the command for setting the page length in units where ml, m2, n1 and n2 are variables. The "unit' is usually 1/360 of an inch unless defined otherwise by the "ESC ( U" command. Currently, the values for m1 and m2 MUST be m1=2 and m2=0. 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 360. 3. Divide the result by 256 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. 2 3. 4. 5. The page length is 8.5 inches. 8.5 x 360 = 3060 3060 divided by 256 = 11 with a remainder of 244. n1=244 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, chr$(12), or by pressing the "FF button on the control panel while the printer is "Off Line".

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22

PSB No: P-0082
Page:
5 of 14
ESC ( C m1 m2 n1 n2 (Set Page Length in Defined Units
II
ESC ( C m1 m2 n1 n2 is the command for setting the page length in units where ml,
m2, n1 and n2 are variables. The “unit’ is usually 1/360 of an inch unless defined
otherwise by the “ESC ( U" command. Currently, the values for m1 and m2 MUST be
m1=2 and m2=0.
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 360.
3.
Divide the result by 256 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, chr$(12), or by pressing the “FF button on the
control panel while the printer is “Off Line”.