How to combine PCL codes

rover

Distinguished
Jun 17, 2004
25
0
18,530
Archived from groups: comp.sys.hp.hardware (More info?)

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?
 
G

Guest

Guest
Archived from groups: comp.sys.hp.hardware (More info?)

Rover <rover44614@RemoveThisStuffNetscape.net> 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
 
G

Guest

Guest
Archived from groups: comp.sys.hp.hardware (More info?)

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
<rover44614@RemoveThisStuffNetscape.net> 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?
>
 

rover

Distinguished
Jun 17, 2004
25
0
18,530
Archived from groups: comp.sys.hp.hardware (More info?)

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?
>
 

rover

Distinguished
Jun 17, 2004
25
0
18,530
Archived from groups: comp.sys.hp.hardware (More info?)

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?
>