home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21886 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  5.3 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!cs.utexas.edu!sun-barr!olivea!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!narfvx.enet.dec.com!francini
  2. From: francini@narfvx.enet.dec.com (John Francini)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: HP DeskJet on VMS 5.4-2 extra page eject/form feed
  5. Message-ID: <1993Jan24.221114.15586@nntpd.lkg.dec.com>
  6. Date: 24 Jan 93 21:53:03 GMT
  7. References: <01GTR0REM8CG91W9M7@admin.ripon.edu> <1993Jan22.180051.17983@mksol.dseg.ti.com>
  8. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  9. Organization: Digital Equipment Corporation, Littleton, MA
  10. Lines: 94
  11.  
  12.  
  13. In article <1993Jan22.180051.17983@mksol.dseg.ti.com>, pyron@skndiv.dseg.ti.com (Dillon Pyron) writes...
  14. >In article <01GTR0REM8CG91W9M7@admin.ripon.edu>, SCHANG@ADMIN.RIPON.EDU ("Jeff Schang ") writes:
  15. >>I'm setting up a DeskJet 500 to run on our VAXStation 3100 (5.4-2) and I am
  16. >>having one small problem.  The printer and queue are working perfectly 
  17. >>except for the fact that the DeskJet ejects ONE blank page BEFORE every 
  18. >>print job.  The DeskJet will eject TWO blank pages before the first job 
  19. >>that is printed after the queue or the printer is reset.
  20. >Well since the HP DJ500 on my (cough, my wife's) PC doesn't exhibit this, I'd
  21. >tend to look at the VAX.
  22. >>
  23. >>I have checked the SET QUEUE command for queue characteristics and I
  24. >>have checked the DeskJet book for an answer, but I haven't been able to
  25. >>figure out the problem.  I have tried setting the queue to default=nofeed
  26. >>and taking out the separate qualifier, but I get the same result.
  27. >>
  28. >>I set the terminal up as an LQP02 which is directly connected to the serial 
  29. >>port on the VAXStation, hence no LAT.
  30. >>
  31. >>I have tried setting the terminal to an LA100 and LN03, which yields
  32. >>the same result as well.
  33. >>
  34. >>Has anyone tried a similar setup, and if so, do you have any ideas?  Is 
  35. >>there a queue qualifier I'm missing, or a symbiont I should be using?
  36. >>
  37. >>I have included the terminal config and queue config below.  I created the 
  38. >>HP500CTL device control library from scratch using the DeskJet manual and 
  39. >>have had no problem printing with various forms aside from the extra eject.
  40. >>Thanks for any help.
  41. >>
  42. >>+-------------------------------------------------------------------+
  43. >>| Jeff Schang    Systems Manager/Postmaster   schang@admin.ripon.edu |
  44. >>| Ripon College   PO Box 248   Ripon, WI 54971  414/748-8713        |
  45. >>+-------------------------------------------------------------------+
  46. >>
  47. >>
  48. >>Terminal queue CENLETTER, on ARIEL::CENLQP, mounted form NARROW (stock=REGULAR)
  49. >>    /BASE_PRIORITY=4 /DEFAULT=(FEED,FORM=NORMAL (stock=REGULAR)) 
  50. >>    /LIBRARY=HP500CTL Lowercase /OWNER=[SYSTEM] /PROTECTION=(S:E,O:D,
  51. >>    G:R,W:W) /RETAIN=ERROR /SEPARATE=(RESET=(RESET))
  52. >>
  53. >>
  54. >>
  55. >>Form name                            Number   Description
  56. >>---------                            ------   -----------
  57. >>NARROW (stock=REGULAR)                   19   13 pitch draft
  58. >>    /LENGTH=66 /SETUP=(DRAFT,CPI13,VPI6) /STOCK=REGULAR /TRUNCATE /WIDTH=200
  59. >                        ^^^^^^^^^^^^^^^^
  60. >What do these do?  Is there any chance that any of these escape sequences
  61. >contains anything that might cause a form feed.  I'm not certain, but I believe
  62. >the DJ will do a formfeed if its buffer gets too full.  Normally not a problem
  63. >as it is quite big, but some escape sequences can be enormous!
  64.  
  65. Without actually seeing the contents of your setup modules it's somewhat
  66. hard to know for sure, but there _are_ a couple of things everyone trying
  67. to run an non-ANSI printer should know about VMS, the print symbiont, and
  68. forming setup and reset modules.
  69.  
  70. 0. The page eject at initial queue startup can not be eliminated without
  71. code changes to the symbiont. Period.  The print symbiont was designed back
  72. in the days of real tractor-fed line printers, and since at startup it had
  73. no idea where the printer was positioned, it always assumed the worst and
  74. sent a formfeed before starting the first job.  Most people didn't notice
  75. or care, since your typical full-size line printer required three or four
  76. pages ANYWAY to be wasted just to get the paper completely loaded.
  77. (Typically, the printer's stacker was about three sheets away from the
  78. print line.)
  79.  
  80. 1. The symbiont (stupidly, in my opinion) tries to parse any control
  81. sequences it sees in setup and reset modules to determine what effect they
  82. may have on the paper position.  However, its ideas about valid escape
  83. sequences haven't changed since the early 80s (and it knows nothing about
  84. non-ANSI devices like your HP).  So, much of the time, it gets it wrong and
  85. thinks the escape sequences moved the printer away from line 1 column 1 and
  86. throws a page.
  87.  
  88. 2. The symbiont ignores any control sequences that are imbedded inside the
  89. escape sequences <ESC>P and <ESC>\.  [This was originally done to handle
  90. ReGIS sequences, which are always bracketed by these two characters.]  So,
  91. you can put your DeskJet control sequences inside <ESC>P and <ESC>\
  92. delimiters.  NOTE WELL:  Do NOT include ANY carriage returns, formfeeds, or
  93. comments in the sequences, or you will get an unwanted blank page.
  94.  
  95. These should solve most problems.  [There are a few pathological situations
  96. that require stronger measures, but that is a subject for another post.]
  97.  
  98. John Francini
  99. Engineer, PATHWORKS Server Development Group
  100. Digital Equipment Corporation
  101. Littleton, MA
  102.