Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Characters for HP Laserjet 4100T 1

Status
Not open for further replies.

csunix

Programmer
Mar 23, 2004
129
GB
Does anybody know or know where I can get the controls characters in order to select a certain paper for the above printer?
 
Can you give some details? What is it you are trying to do, or what is not working right?

Matt J.

Please always take the time to backup any and all data before performing any actions suggested for ANY problem, regardless of how minor a change it might seem. Also test the backup to make sure it is intact.
 
Through Unix I'm wanting to be able to print from one paper for letterheaded paper and another paper tray for reports. I assume within my Unix script I would need to use some control characters that the printer would recognise.

cs
 
Assuming you are wanting PCL5 (rather than PCLXL or PostScript) control sequences: to designate the paper source tray for paper feed:

Esc & l # H (0x 1b 26 6c # 48)

where:

# = 0 Print current page (paper source remains unchanged)
>0 Value is printer type dependent

Note that the identifier value is rarely the same as the external tray number shown on the printer. I'm not sure of the values pertinent to the 4100, but a lot of printers use some fairly standard settings. For example:

A value of 1 usually identifies the main tray;
A value of 2 usually identifies the manual feed tray;
A value of 4 or 5 usually identifies the auxiliary paper tray.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top