-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Printers Archive
- How to select tray using PJL command language

Create an account on the HP Community to personalize your profile and ask a question
Your account also allows you to connect with HP support faster, access a personal dashboard to manage all of your devices in one place, view warranty information, case status and more.

08-03-2015 10:10 AM
Product: LaserJet M2727nfs
Hello,
I am printing directly on the TCP port 9100 of my HP Laserjet printer with a script and would like to know what is the PJL command in order to set the tray on this specific printer. For example when I would like to print using the tray number I tried the following command:
@PJL SET MEDIASOURCE=TRAY2
but it does not work, my printer still uses tray 1...
Any ideas?
Regards
John
1 REPLY 1
08-04-2015 05:30 AM
Could be lots of reasons; for example:
- Perhaps your printer model does not support this particular PJL command.
- PJL commands are only interpreted if the printer is on 'PJL mode'; this mode is entered automatically when the printer receives a Universal Exit Language (UEL) escape sequence (<Esc>%-12345X).
- If the printer is not in PJL mode, PJL commands are treated as text data and printed (although they may be 'printed' in the unprintable regions if correct margins have not been set).
- Control sequences in your print job (following a "@PJL ENTER LANGUAGE = language" command, or (failing that), the first escape sequence or non-PJL data) may set a different media source.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.
Didn't find what you were looking for?
Ask the community
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.