home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / ibm / pc / hardware / 30150 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.7 KB

  1. Path: sparky!uunet!ukma!wupost!cs.utexas.edu!natinst.com!natinst.com!not-for-mail
  2. From: cummings@natinst.com (Rodney Cummings)
  3. Newsgroups: comp.sys.ibm.pc.hardware
  4. Subject: Re: Interfacing HPIB plotter to centronics
  5. Date: 17 Nov 1992 14:14:57 -0600
  6. Organization: National Instruments, Austin, TX
  7. Lines: 76
  8. Message-ID: <1ebjs1INNtg@falcon.natinst.com>
  9. References: <1992Nov16.181921.24183@fwi.uva.nl>
  10. NNTP-Posting-Host: falcon.natinst.com
  11.  
  12. In article <1992Nov16.181921.24183@fwi.uva.nl> stolk@fwi.uva.nl (Bram) writes:
  13. >I have a HP plotter, model 9872C which I would like to connect to
  14. >an IBM PC compatible.
  15. >
  16. >The problem is the interfacing.
  17. >The HP has a connector for a HPIB aka GPIB aka IEEE-448 aka IEC-625 bus.
  18. >This is a bus system, whereas my PC has a simple IO port, being
  19. >the Centronics parallel port.
  20. >
  21. >I was wondering if there is any chance that I can interface my
  22. >computer and plotter.
  23. >I was thinking along this kinda line:
  24. >Suppose I make a conversion cable between the centronics and the
  25. >HPIB pin layout.
  26. >Then I write a simple piece of code that sends data to the parallel port
  27. >which will setup my system such that the computer is the only talker,
  28. >and the plotter is the only listener (listen-only).
  29. >Then, I hope, I should be able to use regular plotter drivers from
  30. >standard PC software to drive my plotter.
  31. >
  32. >There are several things that may screw up my plan, as outlined above.
  33. >First of all, some pins on GPIB may have no centronics counterpart,
  34. >or visa versa.
  35.  
  36. The GPIB bus has 8 control lines : 1 that is always asserted by the
  37. device, 3 that are always asserted by the host, and 4 that can be
  38. asserted by either side.  Most Centronics parallel ports have 9 control
  39. lines : 5 that are always asserted by the device, and 4 that are always
  40. asserted by the host.  This makes it impossible to get a fully functional
  41. GPIB port by using a conversion cable alone.
  42.  
  43. >Second, it may be that every now and then GPIB bus commands must be
  44. >xmitted, so that a pre configuring the system before using DOS applications
  45. >won't do.
  46.  
  47. Here's where your problem comes in.  The GPIB bus normally requires
  48. "addressing" before a transfer can begin.  This addressing involves
  49. raising the ATN line and sending the "talk address" of the host and the
  50. "listen address" of the plotter.  Doing this by way of a conversion cable
  51. would be pretty tricky.
  52.  
  53. If your plotter has a dip switch that allows you to configure it to be
  54. "listen-only", then you may be able to get away with not doing the
  55. addressing.  In this case, a simple conversion cable that ties the
  56. GPIB data lines to the Centronics data lines, and ties the appropriate
  57. handshake lines together may be all you need.  If this is the case,
  58. I *think* that HP sells such a conversion cable... you might try
  59. comp.sys.hp to find out.
  60.  
  61. >Third, it may be the case that the HP9872C does not use the common
  62. >plotter language HP-GL, as I was hoping.
  63. >This will mean that regular DOS drivers won't be able to cope with
  64. >the plotter.
  65.  
  66. I dunno about this one... 
  67.  
  68. >
  69. >If you know how to connect GPIB devices to a centronics port,
  70. >or, maybe, you know for a fact that the thing I want is unviable,
  71. >please drop me line,
  72.  
  73. As long as your DOS drivers are compatible with the plotter, it is
  74. definitely possible.  If you find out that the plotter requires
  75. GPIB addressing (and thus a conversion cable won't work), we
  76. (National Instruments) sell a Centronics to GPIB conversion box.
  77. It has an internal processor that handles all the needed conversions
  78. between the two ports, including GPIB addressing and data buffering.
  79. Mail me if you're interested...
  80.  
  81. >
  82. >        Thanx in advance,
  83. >
  84. >            Bram Stolk
  85. -- 
  86.      Rodney Cummings            cummings@natinst.com
  87.      National Instruments       Austin, Texas
  88.