×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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 Syntax for inserting a CR-LF with the "LB" command

PCL Syntax for inserting a CR-LF with the "LB" command

PCL Syntax for inserting a CR-LF with the "LB" command

(OP)
I am using PCL5 with an HP 3800 Printer. I am trying to place a multi-line label in hp-gl/2 mode onto my form. If I use the "LO" command and also use a CR-LF with the "LB" command at the end of the line the text will automatically be aligned on the next line. What is the synatax for inserting the CR-LF?

RE: PCL Syntax for inserting a CR-LF with the "LB" command

I'm not sure what you are asking with "what is the syntax for inserting the CR-LF?".

The LO (Label Origin) command sets the initial cursor position, and also sets the Carriage Return point.

The Carriage Return point is the X-coordinate position to which subsequent CarriageReturn control codes (amongst others) within subsequent LB command(s), will move the cursor to.

The LB (Label) command (which does not itself reset the Carriage Return point) can include various control characters, such as:

CarriageReturn: the character with code decimal 13, hexadecimal 0d.

LineFeed: the character with code decimal 10, hexadecimal 0a.

The DT (Define Label Terminator) command defines the label terminator character, and whether it (if set as a printable character) should be printed or not; default terminator is the ETX control code (decimal code 3, hexadecimal 03).

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