Skip to main content

how to set the page length of the epson dfx 5000 dot matrix printer

i want to print pdx and fedex multi part forms. so i got a dot matrix printer of craigslist from a travel company that doesn't print tickets anymore since eTickets are emailed.

so...

how to set the page length of the epson dfx 5000 dot matrix printer

1. http://files.support.epson.com/pdf/dfx5k_/dfx5k_u1.pdf

ESCC0
Format:
Set Page Length in Inches
ASCII code: ESC C 0 n
Decimal: 27 67 0 n
Hexadecimal : 1B 43 00 n
Comments:
Sets the page length to n inches. The value of n must be from 1
to 22. The top of form position is set to the current line.
Overrides the DIP switch page length setting.
Command Summary 8-13

2. length of form is 7 7/16 inches - 7.4375

but above only accepts integers

so Hexadecimal : 1B 43 00 07

3. how can i send this to printer? part a

http://www.codeproject.com/KB/recipes/BatchFileColors.aspx - download project

allows hexadecimal to big echo'd so

cecho {0x1B}{0x43}{0x00}{0x07} > lpt1:

4. how can i send this to printer? part b

http://www.dragon-it.co.uk/links/hp_pcl_codes.htm

where ~ is the [ESC] character which in edit (edit.exe) can be entered with Control P then Control [ and shows as an arrow pointing to the left.

a) edit.exe
b) CTRL-PCTRL-[C07
c) save as textfile.txt

COPY textfile.txt LPT1:
or COPY textfile.txt \\server\share
or TYPE textfile.txt > LPT1:
or PRINT textfile.txt


BUT form is 7 7/16 inches - so that handles 7 inches - but what about the 7/16s?

ALSO!!! printer has a serial port - if i had a good modem cable i could just hyperlink to the printer and interactively give it commands...

Comments