LaserWriter Pro 810: Changing Page Size & Trays in PCL

What are the PCL escape codes to change paper trays on the LaserWriter Pro 810. Also, is there a way to select page size instead of specific paper trays in PCL?
Changing Paper Trays
The HP PCL escape code sequence for selecting paper trays on the LaserWriter Pro 810 follows below. Before sending the PCL code to the printer, the printer control panel "Paper Source" setting must have the asterisk on "Tray 3". In other words, set the paper source for Tray 3.

<esc>&l#h

<esc> = escape character
l     = lower case L
#     = paper tray selection below
       1 - upper tray
       4 - middle tray
       5 - lower tray

For example, if you want to use the paper in the lower tray, you would use the following escape code: <esc>&l5h

Changing Page Size
The HP PCL escape command for selecting the page size is:

<esc>&l#A

<esc> = escape character
l     = lower case L
#     = refers to the following page sizes:
        2 - letter
        3 - legal
        1 - executive
       26 - A4
       80 - Monarch Envelope
       81 - Comm. 10 Envelope

For example, if you wanted to print on a legal-sized page you would send: <esc>&l3A

In both of the cases above, to enter <esc>, press the Ctrl-P keys followed by the Esc key.

Note: You must use an ASCII text editor like DOS EDIT. You cannot enter the <esc> character in some Windows-based editors like Notepad.
Published Date: Feb 19, 2012