What can be the W-ELP command to merge a macro according to a tray command: If the document is requested to be printed on tray 2, merge with macro 1000, if tray 3 merge with macro 2000 and tray 4 merge with macro 3000.
There are minimum 2 possible implementations, depending upon
if a whole job is printed to a unique try or
if the tray selection may change during the job.
One comment before the solutions are explained. In both displayed cases we need to make us of the PCL5 paper tray command Esc&l#H. This command is inserted by the software and the # is the internal PCL tray number. Unfortunately the tray 1 is not 1 in PCL it us usually 4, the next tray 4, and then maybe the next one 6 or 10 or 20. In other words, you need to know the correct PCL tray numbers for the physical tray you want to draw the paper from. A help can be the ELP Command Generator form W-ELP. The second drop down list box from the Input Tray group has those internal try numbers in the () after each tray description.
A1: Let's assume the easy way, the whole job is drawn out of the same paper tray:
; all standard entries but add those 2 rules
[Tigger on Tray 4]
; Primary trigger is always true as we find always a digit 1 in all streams
; Secondary Trigger is only true for tray 4 (Standard HP tray 2)
; use the ELP command to print on all pages the Form 1000
[Tigger on Tray 5]
A2: If the tray changes in the print job from page to page,
This will not work anymore. There are several solutions for that one, here is just the one we assume as the best:
Before starting, you need to know that ELP is very recursive, so if we would replace a command by a command plus something, then the software will start to loop. However, you need anyway to setup each tray with different media type, in order to prevent to draw form other trays, once the tray is empty. In our example the Tray 2 to 4 has to be set to Plain, Preprinted and Letterhead.
The second benefit is, that you save also the ELP module, so the solution is cheaper, as it only uses the internal basic method of tray mapping. In this case ELP does not map, but adds a functionality.
; all standard entries but add:
TRAYMAP=My New Tray Map Rule Section
[My New Tray Map Rule Section]
As the rules and the questions are fairly easy, there is no explanation to the used Escape sequences. < br>
One more note: The command will start to print an overly on all coming pages. If the form (=macro) is only to be printed on the first page after the tray change, then replace 4X by 3X.