Sharp AR-M550U with user account numbers needs PJL?

Helge Blischke h.blischke at srz.de
Tue Jun 21 07:45:42 PDT 2005


Steve Marple wrote:
> 
> I have access to print to a Sharp AR-M550U photocopier/printer. It's installed such that to copy or print users *must* enter their account number. Windows users enter their code into a dialog box under printer preferences. The driver creates a PS or PCL file with some PJL commands at the start, including one to control accounting details on the photocopier:
> 
> @PJL SET ACCOUNTNUMBER="11111"
> 
> How do I persuade CUPS that this PostScript printer should be fed PJL  commands? Without it all I get is a notice page stating "Printing by unregistered account code is disabled by key operator programs."
> 
> I downloaded a PPD file and I modified JCLBegin to include the account number setting. JCLBegin is now:
> 
> *JCLBegin: "<1B>%-12345X at PJL JOB<0A>@PJL SET ACCOUNTNUMBER=<22>21807<22><0A>@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=SHORTEDGE<0A>@PJL SET OUTTRAY=TRAY2<0A>"
> 
> but CUPS outputs PostScript with any PJL before it.
> 
> I'm using CUPS 1.1.22 on Redhat FC3 and CUPS 1.1.23 on Gentoo (Base System version 1.4.16)

Look into your printer's manual (or ask your vendor), if the printer requires the account number to be set
*after* the @PJL JOB command. If yes, you may need to modify CUPS, as the routine that emits the
JCL stuff skips JOB commands in the *JCLBegin string and generates a job command of its own (with the title
as contents of the display variable etc.) at the end of the JCLBegin string.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list