Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5039
  • Last Modified:

How to send PJL command to HP Laser?

How to send PJL command to HP Laser? Where can I get the information about PJL and PCL?
0
foxprohf
Asked:
foxprohf
1 Solution
 
vikiingCommented:
You can enable PJL command recognition by sending the printer these sequence:

     $%-12345X

(where "$" is actually Escape, this is, ASCII 27 [decimal])

After that, you can send

     @PJL ENTER LANGUAGE=PCL

to enable PCL mode.

The PJL and PCL languages are documented in HP's technical reference guides. I've asked for HP here (argentine branch office) and they sent me a thick manual (totally free !!); perhaps you'll be so lucky, and get the same in your country.

If you have old Write (Win 3.x), you can "print" something, checking the box "Print to a file", and then examine file's contents with an editor to see the first part, where printer is set up.

0
 
foxprohfAuthor Commented:
I try to copy a file to LPT1 to set the printer.

copy abc.txt LPT1

abc.txt is a file for PJL setting
////////////////////////////////////////
$%-12345X@PJL
@PJL DEFAULT PITCH = 12.00
$%-12345X
//////////////////////////////////////
However, I can't change it .

Is it true?
0
 
vikiingCommented:
Try removing the second %-12345X, because it performs a kind of printer reset.

I don't know PJL language, thus I don't know if that command (DEFAULT PITCH=12.00) is right or not. Sorry... :(
0
 
jrhelgesonCommented:
This question has been dormant since 1-14-1999, Are you still interested in this issue or should this question be archived?
0
 
MoondancerCommented:
GREETINGS!

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.  Also in the Community Support link is a question on how experts can help, if they wish, on the cleaning of old and abandoned questions.

http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
http://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now