HP3000-L Archives

December 1996, Week 2

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:
Michael Anderson <[log in to unmask]>
Reply To:
Michael Anderson <[log in to unmask]>
Date:
Wed, 11 Dec 1996 18:09:04 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (73 lines)
Richard Corn wrote:
>
> In article <[log in to unmask]>,
> [log in to unmask] says...
>
>We used to use an unsupported tool called "HPSLAVE" in conjuntion with
>WRQ's Reflection product to enable our users to print directly to their
>PC
>printer. When we made the jump to TCP/IP, we lost that capability
>because
>we cannot (or do not know how) to have the printer tell the HP3000 that
>the
>buffer is full. Anybody else use this product and figure out how to do
>this?
>
>

Richard,

I have written lots of apps that slave print thru PC's and dumb term's. I
have never heard of this unsupported program "HPSLAVE". I wrote a little
subroutine that I call from within the appl. code itself. My subroutine is
written COBOL. Without coping the entire thing to the list I can tell you
exactly what I write to the terminal/PC to enable slave printing. here it is.

--------------------------------------------------------------------
BEGIN "SLAVON"

To enable slave printing with a msg on the top line of the BLOCK MODE
terminal

Note: The term "TERMINAL" refers to a Reflections emulation of an HP700/9x.
      All FWRITE's are directed to a terminal that has already been opened
    for output.

      ( % indicates an OCTAL value.)

1. FWRITE ( %320 %33 "X" %33 "H" %33 "S" %33 "L" )

2. FWRITE ( %320 %33 "&a0c1R" %33 "K" %33 "&dBPrinting, please wait...." )

3. PC SUPPORT: REFLECTIONS COMMANDS) syntax: <esc>&oF[reflections command]

 FWRITE ( %33 "&oFSET CONFIG-LOCKED NO" %15 )
 FWRITE ( %33 "&oFSET AUTO-FORM-FEED NO" %15 )
 FWRITE ( %33 "&oFSET DISABLE-PRINTER-TRANSLATION YES" %15 )
 FWRITE ( %33 "&oFSET PRINTER-BYPASS YES" %15 )
 FWRITE ( %33 "&oFSET PRINTER-CLOSE-MANUALLY YES" %15 )
(Following is optional, without it print goes to the default printer)
 FWRITE ( %33 "&oFSET PRINRT-DEFAULT "HP LaserJet III,HPPCL5MS,LPT1:"" %15 )
 FWRITE ( %33 "&oFSET CONFIG-LOCKED YES" %15 )

4. Enable slave printing.

 FWRITE ( %320  %33 "&p4d1p20C" ).


END OF "SLAVON"
--------------------------------------------------------------------
If you want a copy of the COBOL program, just ask. I am not sure if this is
what you want.

--
_______________________________________________
Michael Anderson
HP3000 Systems Programmer/Analyst
_______________________________________________

Current: 8 years@ TIW Corporation Houston Texas
Prior: 3 years@ MICOM Systems Simi Valey, Calif.
Email@work mailto:[log in to unmask]
Email@home mailto:[log in to unmask]

ATOM RSS1 RSS2