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.
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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.