Download Print this page

Epson ActionPrinter 5500 - ActionPrinter-5500 Impact Printer Product Support Bulletin page 6

Understanding and using escp/2 commands and syntax
Hide thumbs Also See for ActionPrinter 5500 - ActionPrinter-5500 Impact Printer:

Advertisement

ESC (v m1 m2 n1 n2 is the command for advancing the print position vertically in
units where m1, 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 ml
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 vertical motion distance in inches.
2
Multiply the distance 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 desired distance is 1 inch.
2
1 x 3 6 0 = 3 6 0
3.
360 divided by 256=1 with a remainder of 104.
4.
n1=104
5.
n2=1
In the Basic programming language, the command would look like this.
This command, as listed in the line above, will feed the paper up 1 inch from the
current line. The current print column (horizontal position) IS NOT changed.
'Reverse" paper feed less than 1/2 inch can be performed with this command. To
accomplish "reverse" paper feeding requires the following steps.
1.
Determine the desired vertical motion dice in inches.
2
Multiply the distance by 360.
3.
Divide the result by 256 using long division.
4.
Subtract the remainder in the quotient computed in step 3 from 256.
5.
The result from step 4 is the value for n1.
6.
The value for n2 will always be 255.
PSB No: P-0082
Page: 6 of 14

Advertisement

loading