I have done this with HP LJ8100N printers and it is working satisfactorily. See if it helps you.
1. SPAD > Full Admin > Device Types > Change
2. Copy Device type "HPLJ5SI" to Z* device types as below :
ZHP5SIT1 HP Laserjet 5 Si - Tray 1
ZHP5SIT2 HP Laserjet 5 Si - Tray 2
ZHP5SIT3 HP Laserjet 5 Si - Tray 3
ZHP5SIT4 HP Laserjet 5 Si - Tray 4
ZHP5SIT5 HP Laserjet 5 Si - Tray 5
3. Double click on ZHP5SIT1 > click on "Formats" button > Double click "DINA4" > Double click "Printer initialisation" > add character sequence "\e&l4H" as a last line(without quotes). This character sequence is a PCL command to select tray1.
Change all formats of device type "ZHP5SIT1" like DINA3, DINA5, X_58_170 to have "\e&l4H" as a last line in "printer initialisation"
4. Similarly change all formats of device type ZHP5SIT2 to have "\e&l1H" as a last line in "printer initialisation" section. \e&l1H is to select tray-2
5. Similarly change all formats of device type ZHP5SIT3 to have "\e&l5H" as a last line in "printer initialisation" section. \e&l5H is to select tray-3
6. Now define a new "output device" for Tray 1 e.g "optr1" that uses device type ZHP5SIT1
7. define a new "output device" for Tray 2 e.g "optr2" that uses device type ZHP5SIT2
8. define a new "output device" for Tray 3 e.g "optr3" that uses device type ZHP5SIT3
9. Now you can print to tray1,2 and 3 selectively by using output devices "optr1", "optr2", "optr3" respectively.
Thanks to sunil_mouje for that tip.

