Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mixing PJL and PCL 1

Status
Not open for further replies.
In a word, no!

PJL commands "wrap" the PCL job.

If you want to switch trays in the middle of a PCL print job, then use the PCL command

<esc>&l#H

where the # is a numeral that represents the desired tray. See the PCL5 tech Reference.

Put it as the very first thing on the page to be printed from the new tray.

Jim Asman
 
I believe you can move back and forth between PCL and PS using PJL on a per page basis in one job.

Would this not work, its not pretty and I'm not positive about the resets. Unfortunatly I don't have access to my notes right now.

<ESC>%-12345X@PJL<CR><LF>
@PJL JOB<CR><LF>
@PJL SET DUPLEX=ON<CR><LF>
@PJL ENTER LANGUAGE=PCL<CR><LF>
<ESC>Epage1<FF>page2<FF><ESC>E<CR><LF>
<ESC>%-12345X@PJL<CR><LF>
@PJL SET someother varible = some value<CR><LF>
@PJL ENTER LANGUAGE=POSTSCRIPT<CR><LF>
%%PS<your PS code here>
<ESC>%-12345X@PJL<CR><LF>
@PJL EOJ<CR><LF>
<ESC>%-12345X
 
UncleRick

Your sample would work, but I think that this is just two JOBS concatenated; state changes in one would not effect the other (so you couldn't, for example, change input tray in the first, and expect this to still be effective in the second, which is what I understood was a requirement (from the original post)).

The reason for this is that the <ESC>%-12345X (Universal Exit Language) statement not only causes entry to be made to the PJL interpreter, it also does a reset to the power-on default settings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top