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

Popular posts from this blog

How to change default calendar for new events in Lightning

https://getsatisfaction.com/mozilla_messaging/topics/how_set_default_calendar_for_new_events_in_lightning Edited version Open Tools > Options > Advanced tab, and click Config Editor button. In the "Filter:" box enter "calendar.registry"  Find a .calendar-main-default key - it will be set to true Other calendars either won't have a .calendar-main-default key (or it will be set to false) Right click on the value of the .calendar-main-default key that goes with the calendar that currently shows up by default in new events to toggle the value to false Click on the .calendar-main-in-composite key that goes with the calendar you want as default Right click on the same key and choose Copy Name from the menu that appears. Now right click on the key again and select New > Boolean Paste the name of the key and Use the backspace key to erase "in-composite" and type "default" Click OK and Choose true and click OK Now exit out of ...

clipy mac clipboard crash - troubleshoot and fix

 clipy for mac wouldn't load solution - timemachine restore of /Users/jpaul/Library/Application Support/com.clipy-app.Clipy/default.realm troubleshoot key command didn't work app not loaded console.app showed app crashing tried older newer versions of app tried older version of os tried to find data location no documentation on github /Users/ME/Library/Application Support/com.clipy-app.Clipy/ - didn't see any data /Users/ME/Library/Application Support/Clipy - found data in binary format tried silver searcher for the only keyword i could remember: ag keyword ~/ -  no results added binary ag --search-binary keyword ~/ Binary file /Users/ME/Dropbox/Backups/com.clipy-app.Clipy/default.realm matches. it is in default.realm downloaded realm studio - but i was getting an error Unable to open a realm at path '/Users/ME/Desktop/default.realm': Invalid top array size  googling that - it's a corrupt database restored default.realm from timemachine  and database opened and ...