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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting bac 4 on a Lexmark T642 from Unix

Status
Not open for further replies.

PicPic

Programmer
Jul 7, 2009
2
CA
Anyone knows the PCL code to choose the bac 4 on the Lexmark T642 from a Unix system.
With esc &l4H I was able to select bac2
With esc &l5H I was able to select bac3
But I tried from &l1H to &l8H and was never able to select the right paper source. Bac 4 is the big cassette containing 2000 sheet.
This printer emulates PCL6.

Thanks.
 
These are all PCL5 commands.

If it is truly a PCL6 printer without PCL5,
then you will have to get familiar with PCL6.

It would be VERY difficult in this context.

Perhaps DansDad will have a suggestion?





Jim Asman
 
Hi Jim,
The printer was also supporting PCL5 because I just found that I could use &l20G to get to high density back and it worked. I was able to select it.

I was going to write back a note that I found it but we were faster than me.

Thanks for your reply.

André
 
As Jim indicates, if the printer were PCL6 only, then generating a PCL6 print stream is much harder than generating an equivalent one with PCL5.

[PCL6 is a highly structured language, using a binary post-fix notation, whilst PCL5 is an escape based system using (mainly) ASCII characters.]

However (as you have discovered) most (current) printers (except for the cheap 'host-based' ones) support both Page Description Languages.

I realise that you are trying to generate the print stream on a *n*x system - but do you have access to a Windows system?

If you do, install the relevant Windows PCL5 driver for the printer, and you may be able to discover the required PCL identifiers for the Paper Source ({esc}&l#H) and Output Bin ({esc}&l#G) escape sequences relevant to that printer model, as follows:


(a) If the driver follows the standard Windows driver model, the installation will probably have placed one or more .GPD files in the %WinDir%\System32\Spool\Drivers folder tree.

Examination (use NotePad) of these files (the names aren't necessarily obvious) may yield entries of the form:
Code:
    *Option: Tray5
    {
        *rcNameID: =IDS_TRAY5
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.40
            *Cmd: "<1B>&l9H"
        }
    }


(b) If that doesn't provide the answer, use the Windows driver to print ('to file') a small sample document, having first selected the required paper source and/or output bin via the driver Properties dialogue.

Then examine the generated print file to determine what PCL escape sequences (or PJL statements?) were used to select the tray/bin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top