Quantcast
Channel: All Printers - LaserJet posts
Viewing all articles
Browse latest Browse all 6647

Re: Laser Jet 600 M602 PCL code to select paper source

$
0
0

As I said in my response to your (same) question in the Consumer forums:

 

You'll probably have to determine the # value in your (PCL5) escape sequence <Esc>&l#H by trial and error, since HP no longer appear to publish the details for modern devices.

 

For 'external' trays, the supported values may be quite large (e.g. 253).

 

The Tray Map tool in the PCL Paraphernalia application (available via this link ) enables you to generate test jobs containing user-selectable combinations of Paper SizePaper Type and Paper Source (tray identifier) values, which may help with the exercise.

 

PCL XL (the Page Description Language underlying PCL6) is a totally different language to PCL5; it is much more structured, and uses a binary post-fix notation, so (unlike with PCL5) you can't just embed a few adhoc sequences amongst the source text.

 

Having said that, you may (or may not) be able to find out the required values in two other ways:

 

  • Using the Windows PCL5 driver (if there is one) for your target printer, print a sample simple document, with the required external tray selected in the Print Preferences, but also select the 'print to file' option; then analyse the resultant .prn file (use the PRN File Analyse tool in the PCL Paraphernalia application) to determine the sequence used by that driver to select the target paper tray.
  • Or look in the subfolders of the %Windows%\System32\Spool\Drivers folder for .GPD files (there'll probably be quite a few, and it is difficult to determine which ones are associated with a particualr printer); open the files (using NotePad) and look for 'tray or bin definitions'; for example, in hpism7a0.gpd (I've no idea which printer model this is for, since I've installed a number of drivers, for test purposes, in the past):

 

*Macros: BinIndexes
{
    *%DMBIN_FORMSOURCE                                  :  15
    HP_DMBIN_PRINTER_AUTO_SELECT                        : 257
    HP_DMBIN_MANUAL_FEED_TRAY_1                         : 258
    HP_DMBIN_TRAY1                                      : 259
    HP_DMBIN_TRAY2                                      : 260
    HP_DMBIN_TRAY3                                      : 261
    HP_DMBIN_TRAY4                                      : 262
    HP_DMBIN_TRAY5                                      : 263
    HP_DMBIN_TRAY6                                      : 264
    HP_DMBIN_TRAY7                                      : 265
    HP_DMBIN_MAIN_TRAY                                  : 259
    HP_DMBIN_PHOTO_TRAY                                 : 300
    HP_DMBIN_UPPER_TRAY                                 : 259
    HP_DMBIN_LOWER_TRAY                                 : 260
    HP_DMBIN_LOWER_UPPER_TRAY                           : 302
    HP_DMBIN_UPPER_LOWER_TRAY                           : 303
    HP_DMBIN_SPECIALTY_MEDIA_TRAY                       : 304
    HP_DMBIN_ANY_ROLL                                   : 257
    HP_DMBIN_ROLL_1                                     : 400
    HP_DMBIN_ROLL_2                                     : 401
    HP_DMBIN_ENVELOPE_FEEDER                            : 512
    HP_DMBIN_CD_DVD_TRAY                                : 304

    
}

 

 

 


Viewing all articles
Browse latest Browse all 6647

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>