Motherboard Forums


Reply
Thread Tools Display Modes

How to combine PCL codes

 
 





















Rover
Guest
Posts: n/a

 
      12-29-2004, 03:11 AM


I'm working on a Troy 521 (read that a HP 5si) I have these two lines of
PCL code

&l68f%-12400X
(10U(s0p13.0h0s0b4099T

The first two set the form length to 68 then turn on MICR printing. The
second line sets the font and pich. It works fine.

I want this in one line but what I have tried doesn't work. i.e. -

&l68f%-12400x(10U(s0p13.0h0s0b4099T

won't do it. The MICR doesn't get turned on or the font doesn't get set.

Any ideas?

 
Reply With Quote
 
Warren Block
Guest
Posts: n/a

 
      12-29-2004, 03:24 AM
Rover <> wrote:
> I'm working on a Troy 521 (read that a HP 5si) I have these two lines of
> PCL code
>
> &l68f%-12400X
> (10U(s0p13.0h0s0b4099T
>
> The first two set the form length to 68 then turn on MICR printing. The
> second line sets the font and pich. It works fine.
>
> I want this in one line but what I have tried doesn't work. i.e. -
>
> &l68f%-12400x(10U(s0p13.0h0s0b4099T
>
> won't do it. The MICR doesn't get turned on or the font doesn't get set.


The "X" changed to lower case in your example... But it may just be
that PCL command needs a carriage return terminator.

--
Warren Block * Rapid City, South Dakota * USA
 
Reply With Quote
 
Ben Myers
Guest
Posts: n/a

 
      12-29-2004, 04:24 AM
Honestly, once something is working well with PCL, it is not worth splitting
hairs to save a few bytes of data transmitted to the printer.

Way back when I was generating PCL graphics for a LaserJet II, I found the PCL
reference invaluable for clear descriptions of the rules for combining control
codes. If you already don't have a PCL5 reference, get one... Ben Myers

On Tue, 28 Dec 2004 22:11:20 -0500, Rover
<> wrote:

>I'm working on a Troy 521 (read that a HP 5si) I have these two lines of
>PCL code
>
>&l68f%-12400X
>(10U(s0p13.0h0s0b4099T
>
>The first two set the form length to 68 then turn on MICR printing. The
>second line sets the font and pich. It works fine.
>
>I want this in one line but what I have tried doesn't work. i.e. -
>
>&l68f%-12400x(10U(s0p13.0h0s0b4099T
>
>won't do it. The MICR doesn't get turned on or the font doesn't get set.
>
>Any ideas?
>


 
Reply With Quote
 
Rover
Guest
Posts: n/a

 
      12-29-2004, 12:44 PM
My real problem is line feeds. I'm working on a tight form and the
extra line messes things up.

The lower case "X" is to combine commands.

Rover wrote:
> I'm working on a Troy 521 (read that a HP 5si) I have these two lines of
> PCL code
>
> &l68f%-12400X
> (10U(s0p13.0h0s0b4099T
>
> The first two set the form length to 68 then turn on MICR printing. The
> second line sets the font and pich. It works fine.
>
> I want this in one line but what I have tried doesn't work. i.e. -
>
> &l68f%-12400x(10U(s0p13.0h0s0b4099T
>
> won't do it. The MICR doesn't get turned on or the font doesn't get set.
>
> Any ideas?
>


 
Reply With Quote
 
Rover
Guest
Posts: n/a

 
      12-30-2004, 12:14 AM
I got it to work. Contrary to what I thought iw was supposed to be,
Each sequence ends in an upper case letter. Lower case is for stringing
those codes that begin with the same Esc sequence.

&l68F%-12400X(10U(s0p13.0h0s0b4099T

Jim

Rover wrote:
> I'm working on a Troy 521 (read that a HP 5si) I have these two lines of
> PCL code
>
> &l68f%-12400X
> (10U(s0p13.0h0s0b4099T
>
> The first two set the form length to 68 then turn on MICR printing. The
> second line sets the font and pich. It works fine.
>
> I want this in one line but what I have tried doesn't work. i.e. -
>
> &l68f%-12400x(10U(s0p13.0h0s0b4099T
>
> won't do it. The MICR doesn't get turned on or the font doesn't get set.
>
> Any ideas?
>


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gigabyte GA-P35-DS3P BIOS beep codes not documented, CPU problems RoundSparrow Gigabyte 3 08-10-2007 07:58 PM
Gigabyte GA-P35-D3SP BIOS beep codes RoundSparrow Gigabyte 0 08-02-2007 04:01 AM
no beep codes... clinne Asus 7 06-08-2007 04:45 AM
PCL3 codes for programming Huub HP 7 03-11-2007 02:34 AM
A8N SLI SE - POST Beep Codes NormanW Asus 0 12-01-2006 01:16 PM


All times are GMT. The time now is 03:00 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43