Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!chinacat!woody From: woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) Newsgroups: comp.lang.postscript Subject: Re: How to change emulation modes on QMS PS-810???? Summary: here is some code Keywords: postscript, laserjet Message-ID: <1699@chinacat.Unicom.COM> Date: 13 Nov 90 05:47:22 GMT References: <286@jorel.APLDMT.COM> Organization: a guest of Unicom Systems Development, Austin Lines: 73 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