Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PCL Code Breakdown

PCL Code Breakdown

PCL Code Breakdown


I have been asked to make a few changes to some PCL code, but i am a little stuck and was wondering whether someone could help me please?

I have the following line, i was hoping someone could tell me what each does?


I've tried looking it up in the manual, but its not exactly easy to understand!



RE: PCL Code Breakdown

This is just a series of escape sequnces with the same group characture so it can be abreviated to what you see.  It is for calling a font.  It could also be written as


Does that make it easier to read?
^[ = escape = 0x1b

^[(s0P = fixed spaced font

^[(s6V = font hieght 6/72 of an inch(strange, pitch is usually used for fixed spaced fonts)

^[(s0S = Style (0=upright)

^[(s3B = Stroke weight (3=bold)

^[(s24580T = typeface (24580=Helvetica)

RE: PCL Code Breakdown

^[(s6V has no effect if a fixed pitch font has been requested.

Similarly, the proportional Helvetica font won't be delivered for the same reason. You probably get Courier...

UNLESS there is a fixed pitch Helvetica font resident in the printer. Not impossible, but unlikely.

Jim Asman

RE: PCL Code Breakdown

I don't think that's always true


Now for proportional fonts the h value(10h, 16.66h for example are ignored) since it's horizontally proportional depending on the character.

RE: PCL Code Breakdown

Thanks guys.

RE: PCL Code Breakdown

Jim is correct in stating:
     ^[(s6V has no effect if a fixed pitch font has been requested
apart from the small exception noted by buff1, which is that both pitch and height are relevant to a fixed-pitch bitmap font; the height value will also still be stored in the font select table to provide a default value for the next proportionally-spaced font select.
(LinePrinter is the only bitmap font which is printer-resident on modern LaserJets and clones).

RE: PCL Code Breakdown


Can i ask one more question please?

I am trying enter a tab character into a barcode via a PCL escape sequence, what i have is below.

.PRINT '^[(s11p102h18vbs24680T' (q0)
.PRINT '^[*p+342x+448YW' 'Hello' \tab 'Goodbye'(q0)

The reason for this is:
I have a screen with 4 textboxes on it, If the user was going to manually enter data on these textboxes then they would type it in, press tab to move to the next box and then fill that in....etc....  I would like to be able to produce a barcode that can fill in each text box tabbing between them - with the user just scanning the one barcode.

Can anyone help me pls?


RE: PCL Code Breakdown

You should be able to embed a tab into a barcode using Code128A symbology.

If that font isn't 128A, you may be out of luck.

Certainly 3of9 does NOT support tabs. What type of barcode is being used here?

In a PCL context, you could get a Code128 soft font and use that.

Jim Asman

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close