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

PCL newbie - help

Status
Not open for further replies.

Rogy

Programmer
Nov 20, 2002
43
0
0
SI

I am new in PCL. I want to know how does PCL work?
Basicaly I want to know how to send PCL commands
to printer.
Is there any good FAQ or Help?
I am using HP 6P, HP1100 and HP2200 printers.


Thanks for help!
 
PCL - Printer Control Language for HP compatible Laserjets and inkjets is basically (for the most part) easy to understand and learn. I suggest you get your hands on a
technical reference manual that will help you a great deal because I know I can't remember all of the commands without looking them up from time to time.

It's basically the Esc character (chr$(27)) plus a group
of text ended by a capital letter signifying the end of
the commandm or sequence.

Commands of the same type can be put within the same structure.

For example:
Change the font to 10CPI fixed pitch
print #1,chr$(27)+"(s0p10h12v0s0b0T"

0p is fixed pitch (1p is proportional)
10h width of font 12h height of font
0s Upright
0b medium weight
0T line printer typeface

The above is equivilent to
print #1,chr$(27)+"(s0P";
print #1,chr$(27)+"(s10H";
print #1,chr$(27)+"(s12V";
print #1,chr$(27)+"(s0S";
print #1,chr$(27)+"(s0B";
print #1,chr$(27)+"(s0T";

but takes less coding.

I have a page on my web site with many of the PCL commands.
It might be a starting place for you (or you can go to the HP site)

my site is: There's a link to the hp page on the links page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top