From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX"  2-SEP-1989 05:19
To:	MRGATE::"ARISIA::EVERHART"
Subj:	RE: HP LaserJet/uVax II

Message-Id:  <8909020904.AA00172@crdgw1.ge.com>
Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Fri,  1 SEP 89 15:17:37 PDT
Received: from Venus.YCC.Yale.Edu by KL.SRI.COM with TCP; Fri, 1 Sep 89 14:59:08 PDT
Date: Fri, 1 Sep 89 18:01 EDT
From: "Jerry Leichter - LEICHTER-JERRY@CS.YALE.EDU"
 <LEICHTER@Venus.YCC.Yale.Edu>
Subject: RE: HP LaserJet/uVax II
To: bg0l+@andrew.cmu.EDU, INFO-VAX@KL.SRI.COM
X-Vms-To: IN%"bg0l+@andrew.cmu.EDU"

	As it says in the subject line, I'm going to try to hook an HP LJ to
	a micro- VAX II. Anybody tried this yet? Care to relate
	experiences/horror stories or "gottcha"s?

	If the idea is silly, don't blame me. I didn't but it, I was willed
	the beasts in question as various and sundry networks and projects
	wound down.

It's not hard to do (once you get the RS-232 connections right - something I
can't help you with long distance).  The following file will tell you what to
do after that.

Works fine for me!
							-- Jerry

[Does this belong on the list of "commonly asked questions"?]

	--------------Command file to start up printer------------

Notes:	(a) These setups assume you have your printer attached to TTA0.
		Change the second line - the definition of SYS$LASERJET -
		if that's not the case.
	(b)  If the terminal port you are using has a speed other than
		19200 bps, change the set terminal command (third line)
		as appropriate for your system.  If your interface can
		manage it, I recommend using 19200 bps - my impression is
		that the resulting performance is better, though the
		difference is by no means huge.
	(c)  The queue initialization assumes that you have placed the setup
		modules in file SYS$LIBRARY:LASERJETLIB.TLB.

$ set noon
$ define/system/exec/translation:terminal SYS$LASERJET TTA0:
$ set terminal SYS$LASERJET/perm/nobroadcast/notypeahead/nowrap -
        /speed=19200/width=80/page=0/device_type=unknown
$ set device /spooled=(SYS$PRINT,SYS$SYSDEVICE:) SYS$LASERJET
$ initialize/queue/start/lib=laserjetlib/separate=(reset=reset) -
        /on=SYS$LASERJET/default=(flag,form=portrait) SYS$PRINT
$ define/form/stock=default portrait 1 /desc="Portrait Courier" -
        /setup=(portrait) /length=60/wid=80/margin=(bottom=0)/wrap/notrunc
$ define/form/stock=default landscape 2 /desc="Landscape"/setup=(landscape) -
        /length=45/wid=132/margin=(bottom=0)/wrap/notrunc
$ define/form/stock=default compressed 3 /desc="Compressed Portrait" -
        /setup=(compressed) /length=80/wid=120/margin=(bottom=0) -
        /wrap/notrunc
$ define/form/stock=default clandscape 4 /desc="Compressed Landscape" -
        /setup=(clandscape) -
        /length=64/wid=176/margin=(bottom=0)/wrap/notrunc

	----------------------Setup modules-----------------------

Notes:  (a) Each SETUP module should contain exactly one line; I have broken
		several into two lines to avoid mailer problems.
	(b) Replace all occurences of <ESC> by an ESCAPE character before
		using;
	(c) CLANDSCAPE uses an 8.5-point, 16.66-pitch line printer font that
		is not in the standard LaserJet; I have it on a cartridge,
		number 92286B.  I believe it comes standard on a LaserJet II
		(along, perhaps, with some other fonts, for which you could
		write your own setup modules).
	(d) All the exact values shown below have been "tuned" to go with the
		exact form defintions given above.  They reset spacing to make
		the output look good to my eye.  THEY ASSUME 8.5 x 11 INCH
		PAPER; you'll have to play around with them to get other paper
		sizes to work.  The symptom of a paper size mismatch is sim-
		ple:  The print symbiont will not properly track where top of
		page is, and output on successive pages will wander all over
		the sheet.  In theory, this dependency can be lessened by
		adding /form to the set terminal command given above, in which
		case the symbiont should send an actual form feed, rather than
		using linefeeds for positioning.  I haven't tried this, so I
		don't know if it will actually work.
	(e) All the values have been wrapped in ANSI DCS sequences (i.e.,
		ESC P ... ESC \).  The LaserJet will ignore both ESC P and
		ESC \, but the result is to make the LaserJet commands
		"invisible" to the VMS print symbiont.  This supresses one
		of the two blank pages you otherwise get between jobs.  I
		haven't been able to find a way to supress the other.
	(f) For best results, follow this rule when printing:

		    Use PRINT/PASSALL for .DVI-JEP (or other "image") files.
		    Use PRINT[/NOPASSALL] (the default) for "normal"
			ASCII files.

	(g) All this stuff applies to an HP LaserJet+.  I have not tried it
		on a straight LaserJet, nor on a LaserJet II.  (I've gotten
		confirmation that it works right from another site with a
		LaserJet II, however.)

---------------RESET.TXT-----------------
<ESC>P<ESC>E<ESC>\
---------------CLANDSCAPE.TXT----------------
<ESC>P<ESC>E<ESC>&l1O<ESC>&l63F<ESC>(8U<ESC>(s0p16.66h8.5v0s-3b0T
<ESC>&l5.6470C<ESC>\
---------------COMPRESSED.TXT----------------
<ESC>P<ESC>E<ESC>&l0O<ESC>&a5l80M<ESC>&a0R<ESC>&l8D<ESC>&l80F
<ESC>(8U<ESC>(s0p16.66h8.5v0s0b0T<ESC>\
---------------LANDSCAPE.TXT-----------------
<ESC>P<ESC>E<ESC>&l1O<ESC>&l55F<ESC>(8U<ESC>(s0p10h12v0s0b3T<ESC>\
---------------PORTRAIT.TXT------------------
<ESC>P<ESC>E<ESC>&l0O<ESC>&a5180M<ESC>&a0R<ESC>&l60F<ESC>(8U
<ESC>(s0p10h12v0s0b3T<ESC>&k11.4286H<ESC>&a4L<ESC>\
----------------------------------------------

