ITEM: AN0992L

Using the second paper tray on a hp laserjet 4si.



Question:

ENV:  3.2.5 model 360
.DESC:  Customer is using this system with hp laser jet 4si printer.
This is a jet direct on a token ring.  He has created a virtual 
printer.  Customer wants to select the lower paper tray.
.ACT: Tried the following to set up the second tray for printing:

Response:

Paper tray is set from ci with %Iet based on the value
of the _u attribute.  Set _u=2 for lower tray, then make
changes as described below:  Change constant in
et from 5 to 4.

Set Paper Tray Variable (1: upper 2: lower 3: envelope feeder)
et = %?%G_O%{3}%=%t\\33&l%?%G_u%{3}%=%t6%e%?%G_u%{2}%=%t5%e1%;%;H%;
This is basically

if O=3
  then
   '\\33&l'
    if u=3
        6
    if u=2
        5
    else
        1
    'H'

This gives the pcl commands as follows
O=3
u=1 - '\\33&l1H'  - Upper Paper Tray
u=2 - '\\33&l5H'  - Lower Paper Tray.   (Manual says use '\\33&l4H)  BUG?
u=3 - '\\33&l6H'  - Envelope Feeder

This should work fine only if O=3 which is sheetfeed. 

Before this command is sent, ci includes %Ies.  This basically does the following:
O=1, es sends '\\33&l2H'   (PCL command for Manual Feed)

Then es sends '\\33&l'  and does a
   Get _Q  (Which is by default set to %IwQ), thus the earlier changes.   It would
        actually be much easier to just set Q=2 if that is what was wanted.
   puts value of Q into temporary value in temporary variable q.
   If u \< 3 then  (Normal paper tray)
      if q=1 then add '2'
      if q=2 then add '3'
      if q=4 then add '26'
      if q=5 then add '1' 
      else add '2'.
   else for all other O then
      if q=1 then add '80'
      if q=3 then add '81'
      if q=4 then add '90'
      if q=5 then add '91'
      else add '80'.
  'A' - end of PCL command.

Therefore if O=3 we get the following with 'et' values following.
 If u = 1 or 2:
Q=1:  '\\33&l2A'   - Letter
Q=2:  '\\33&l3A'   - Legal
Q=4:  '\\33&l26A' - A4 paper
Q=5:  '\\33&l1A'   - Executive
if u = 3 or greater:
Q=1:   '\\33&l80A'      - Monarch Envelope
Q=3:   '\\33&l81A' - COM 10 Envelope
Q=4:   '\\33&l90A' - DL Envelope
Q=5:   '\\33&l91A' - C5 Envelope
       other use Monarch Envelope

If O is not 3 - then assume manual and add '\\33&l2H' before
setting paper size.

So it would appear that the answer above is totally wrong,
and what needs to change is:
   Set Paper Tray Variable (1: upper 2: lower 3: envelope feeder)
et = %?%G_O%{3}%=%t\\33&l%?%G_u%{3}%=%t6%e%?%G_u%{2}%=%t5%e1%;%;H%;
to
 Set Paper Tray Variable (1: upper 2: lower 3: envelope feeder)
et = %?%G_O%{3}%=%t\\33&l%?%G_u%{3}%=%t6%e%?%G_u%{2}%=%t4%e1%;%;H%;
  
NEXT: Call Customer.

Response:

Not In, Left Message

Response:

Talked customer through making the change to et.  Changing
with 'lsvirprt' and 'et~v' going down to the line with '5', placing
the cursor on 5 and doing a 'r4' to replace with 4 and saving
the file.

Can't get to printer though AIX queues.  Off a jetdirect:  He could
print from his windows server.  
Do you have anything in a dev_wait state. - yes probably paper out.
disable queue_name

cd /var/spool/lpd/stat
ls p*
p.queue:dev
cat p.*
16412 - 
ps -ef | grep 16412
lpd 16412  id    /usr/lib/lpd/piobe .... -Hhost /var/spool/lpd/df...
kill -9 16412
lpstat - shows this queue as down, and printer is printing.

All prints from queues now printed.
Taking new queue - johnt
u=2
et~v - /5enter - r4
It now looks like:  
        %t    \THEN
             '4'
         %e    \ELSE
             '1'

Printed to the queue,
NEXT: Wonderful it worked. - printed with 3 hole paper in lower tray.


HR
CENTER
FONT size=2Support Line: Using the second paper tray on a hp laserjet 4si. ITEM: AN0992L
BRDated: August 1995 Category: N/A
BRThis HTML file was generated 99/06/24~13:30:26
BRComments or suggestions?
A href="../../../../feedback.htm"BContact us/B/ABR
/FONT
/CENTER
/BODY
/HTML