[comp.lang.postscript] How to change emulation modes on QMS PS-810????

jmcook@jorel.APLDMT.COM (joel m. cook) (11/12/90)

I'm not sure this is the correct group for this question, but
it seems close(?).

I'm running UNIX/386 (SVR3.2.1) and have the above printer, normally
running in Postscript mode.  At times, however, it would be useful
to switch it to its HP LJII mode via software (rather than having
to use the switch on the back).  There's software that does
this from DOS, but since I'm using UNIX, I'd like to know what
set of commands needs to be used.  Any help will be much appreciated.
Please email and thanks in advance!	
-- 
			Joel M. Cook
			jmcook@jorel.apldmt.com

woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) (11/13/90)

In article <286@jorel.APLDMT.COM>, jmcook@jorel.APLDMT.COM (joel m. cook) writes:
> I'm not sure this is the correct group for this question, but
> it seems close(?).
> 
> I'm running UNIX/386 (SVR3.2.1) and have the above printer, normally
> running in Postscript mode.  At times, however, it would be useful
> to switch it to its HP LJII mode via software (rather than having

%
% copyright 1990 woody baker.  Permission granted to use provided
% this header remains intact.
% Woody Baker
% Rt.1 BoxI
% Manor, Tx. 78653


% downloaded routine to allow tray switching on the
% ps-800II printer
% this was developed to fix a nasty bug in the hp emulation of the
% PS-800 II.  Ignoring the tray setting stuff, the emulation switching
% works fine on a ps-810
% to use, print this to the printer.  The printer will load
% this in and it will stay in the printer until the power is turned
% off.  If you are typing it in, use a texteditor that will allow
% you to embed the ESC character, or use the basic version to create
% a file.  It is used by sending an *E to start the HPLJ emulator
% you must then send an ESC &k3G to enable cr/lf's to work correctly
% with the HP emulation.  To Exit the emulation, you send an escape
% sequence.  The sequence is 27 7f 04.  The 04 by it's self will also
% work.  That forces an end of job.  Then to switch trays, you send
% the normal escape sequence of  ESC l1H and ESC l0H  Where ESC is
% chr$(27) or 1B.  This will cause the papertray to switch and then
% restart the emulation.  The only caveat is that ^C, ^T,^S,^Q and ^D
% cannot be included in the character stream.  This version does NOT
% put the machine in transparent i/o mode.  If you are using a PARALELL
% interface, it will be in transparent i/o mode.
% You MUST put a space in front of and after the trayswitch commands.
%
% The character ^D will cause the current emulation to be terminated
% on the spot.  The printer will kickout a page.  The ^C command will
% cause the job to terminate, but will NOT kick the page out.  This will
% let you embed POSTSCRIPT code and use postscript code to do what
% you want.  You can then restart the emulator.
%
serverdict begin statusdict begin 0 exitserver

/*E		%change this if you want
	{
	serverdict begin statusdict begin
	hplj                              %start HP emulation.
	} def

% note that the following 2 commands actualy start with the ESCAPE
% character. I.E. you have to embed a hex 0x1b in place of the ^[
%

/l10H
	{
	statusdict begin 1 setpapertray end %pick tray
	serverdict begin statusdict begin
	hplj
	} def

/l11H
	{
	statusdict begin 2 setpapertray end
	serverdict begin statusdict begin
	hplj
	} def


Cheers
Woody

asmith@questor.wimsey.bc.ca (Adam Smith) (11/13/90)

jmcook@jorel.APLDMT.COM (joel m. cook) writes:
> I'm running UNIX/386 (SVR3.2.1) and have the above printer, normally
> running in Postscript mode.  At times, however, it would be useful
> to switch it to its HP LJII mode via software (rather than having
> to use the switch on the back).  There's software that does

If you have the QMS810, you probably have "PSEXEC" (or ought to be able to 
sleaze a copy of it from your QMS dealer). PSEXEC will send a routine to the 
printer that will kick it into HP emulation mode. Most of the routines that 
PSEXEC sends appear in the directory that the program was installed into 
(Startup on/off, Error handler, Status page, etc). My guess is that there is 
a PostScript (or QMS specific) file that can be downloaded by whatever means 
to achieve the desired effect. 
Find the file, move it over to your UNIX machine and dl it from there.

Tell me if the file exists and if it works.


========================================================================
 Adam Smith                     Genius - Graphic Artist - Bad Mood Guy
 The Chameleon Papers                           Vancouver, BC   CANADA
"Human beings are a great disappointment to me and it doesn't help
 one bit that I am one."      (Deko 64)
========================================================================

woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) (11/14/90)

In article <5LJks1w163w@questor.wimsey.bc.ca>, asmith@questor.wimsey.bc.ca (Adam Smith) writes:
> jmcook@jorel.APLDMT.COM (joel m. cook) writes:
> 
> If you have the QMS810, you probably have "PSEXEC" (or ought to be able to 
> Tell me if the file exists and if it works.
> 
It exists.  I wrote the guts of the switcher code for QMS (actualy 
The Laser Connection) about 3 years or so ago.  In a prior post
yesterday I think, I posted the core routine.  The one in the
PSexec program has been expanded to be more robust.  It is a short
bit of PS that can be sent down to a printer any way you wish.

Cheers
Woody