HP3000-L Archives

October 2006, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
john pitman <[log in to unmask]>
Reply To:
john pitman <[log in to unmask]>
Date:
Fri, 27 Oct 2006 08:14:04 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (119 lines)
Dave,Tracy and Keven,

- probably not my first post on this, have tried to make it work before, and
outside PCL use, it does work as documented.
- The PCL5 manual says that universal exit is recommended at START and END
of print jobs...

The reason I had to look at the spool files is that the code for pcl usage
we have is all home grown, and the details are a couple of layers down ,
hiding in a 'pcl_init' routine and coloured by the fact that it caters for
both laser and impact printers and variable routine addresses are used.
Anyway, we can mod the application readily, we just need to plan it so its
flexible as to which output on which printer ldevs needs which tray selected
- the same program prints either invoices or Pick slips for 6 different
entities running on same system, all running in batch jobs.

Thanks

john

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of Dave Powell, MMfab
Sent: Friday, 27 October 2006 4:32 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] tray selections in programs using PCL code

I do my tray-selection (similar printer, different tray) with env-files that
have the esc-E near the start, then tray-selection and other stuff below.
For
that matter, all my lasers have setup files that start with esc-Z and esc-E,
so nothing can ever get from the HP to a laser without the reset.

If you can add esc-E to your setup file and / or env-file, and you have
access
to the source code, it should be safe to take the reset command out of the
application (well, unless you also print somewhere without setup or
env-files).  Since the setup or env-file contents come first, your print
jobs
will still start with the reset like the manual suggests.

It sounds like you can mod the app, and taking the reset out while using
your
existing setup files might be easier / safer than adding tray selection to
the
app.  If you can't mod the app, you might be screwed.  But you scare me a
bit
taking about having to examine the spool files the hard way -- is the source
hard to decipher, or does your compiler automatically add the reset ??

Dave (I think I posted a sample env-file back in 08/2005)  Powell,   MMfab

----- Original Message ----- 
From: "john pitman" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, October 26, 2006 00:19
Subject: [HP3000-L] tray selections in programs using PCL code


> What fund this has been! NOT!
>
> HP 4100 TN, which initially did not even sense tray 3's presence because
the
> wiring connector was not properly assembled by refurb, or tested!
>
>
>
> Successfully tested using 2 ldevs assigned to different trays on same
> printer, with a test program.
>
> As soon as I run an invoice or pick slip print using PCL code, it will
only
> pull paper from Tray 3, irrespective of the npconfig.
>
>
>
> I intercepted spool files and looked at the PCL codes, and started
decoding
> them. Then by stepping over some of them in debug, I was able to isolate
the
> cause to a PCL Universal exit command (Esc%-12345X). Reading up on this,
it
> does an implicit Esc-E hard reset, which being inside the spool file,
> negates any ENV file commands issued by the spooler. Duh!
>
> This command is documented in PCL5 manual as highly recommended for start
> and end of print jobs to ensure printer is in correct mode. If I step over
> just this command, I get some other textual PCL commands printed , which
is
> not workable.
>
> SO far the only solution I can think of is the application program will
have
> to be given some parameters so it knows if tray selection is needed , and
> print the commands AFTER the Universal exit command is sent.
>
>
>
> Anybody else been here and solved it a different way please?
>
>
>
> TIA
>
> jp
>
>
>
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2