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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PJL with PCL file question

Status
Not open for further replies.

EgorovAlex

Technical User
Oct 30, 2008
12
Hello,

Have spool file from HP driver:

00002a21 PJL Command @PJL SET JOBATTR="JobAcct8="aroot"<LF>
00002a44 PJL Command @PJL SET JOBATTR="JobAcct9=(null)"<LF>
00002a67 PJL Command @PJL ENTER LANGUAGE=PCL3GUI<LF>
Comment Switch language to PCL
00002a83 Data @PJL SET USERNAME="aroot"<LF>
00002a9d PCL Parameterised <Esc>&l7H Paper Source: Automatic Selection

This is normal situation, when after @PJL ENTER LANGUAGE=
follow another PJL command instead of PCL content?
 
On a PCL5 device, the "@PJL SET USERNAME="aroot"<LF>" would be treated as text data, because the device would by then be set to PCL mode, rather than PJL mode.

On a PCL5 device, this 'text' would be 'printed' at the top of the page; bearing in mind the default margins set on the device, this may mean that it is within an 'unprintable region' (depending on the device), so it may not actually appear to be printed.

I don't have much knowledge of PCL3GUI devices, so I don't know whether or not they actually accept text (as opposed to just encapsulated raster images), so I don't know what they'd make of it.
 
Found some info in PJL Technical Reference Manual
This example contain PJL SET command after ENTER LANGUAGE:

Example: Switching Printer Languages

This example contains two print jobs, one PCL and one PostScript. The PCL job prints first, then PJL code switches the printer language to prepare for the PostScript job.

<ESC>%–12345X@PJL <CR><LF>
@PJL COMMENT ** Beginning PCL Job ** <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
@PJL SET LPARM : PCL SYMSET = DESKTOP <CR><LF>
<ESC>E . . . . PCL job . . . .<ESC>E
~<ESC>%–12345X@PJL COMMENT End PCL <CR><LF>
@PJL COMMENT Ready for PostScript Job <CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE ... PostScript print job ... ^D
~<ESC>%–12345X
 
>> ... The PCL job prints first, then PJL code switches the printer language to prepare for the PostScript job ...

Yes - but only because the second set of PJL commands is introduced by a second Universal Exit Language escape sequence after the end of the PCL job.

The two jobs are each 'topped-and-tailed' by this UEL escape sequence (<esc>%-12345X), which resets the printer to power-on defaults and causes entry to PJL mode.
 
I'm not about second print job, I'm about commands:

@PJL ENTER LANGUAGE = PCL <CR><LF>
@PJL SET LPARM : PCL SYMSET = DESKTOP <CR><LF>

from manual of HP PJL, that mean this is possible, but another part of manual tell:

The ENTER command must be positioned immediately
before any personality-specific data. The selected
personality begins parsing immediately after the <LF> that
terminates in the ENTER command
 
Sorry - I didn't notice that yesterday.

As I stated before (with your first example), this is invalid (i.e. the example in chapter 3 of the "PJL Technical Reference" manual is wrong).
The "@PJL SET LPARM ..." command will be treated as ASCII text, and NOT as a PJL command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top