home *** CD-ROM | disk | FTP | other *** search
/ Best of German Only 1 / romside_best_of_german_only_1.iso / anwender / ed / prtcom.doc < prev    next >
Text File  |  1991-11-03  |  3KB  |  84 lines

  1. PRTCOM.DOC is the documentation file for program PRTCOM.COM
  2. Version 2.0 December 1988.  This program is in the public domain.
  3.     The program has been written as a replacement for the printer
  4. redirection function of the MODE program supplied with MS-DOS.
  5.  
  6.          MS-DOS command:                PRTCOM command:
  7.  
  8.     MODE COM1:4800,N,8,1,(P)             PRTCOM 17801
  9.     MODE LPT1:=COM1:
  10.  
  11. Back to parallel printer:
  12.  
  13.     MODE LPT1:                           PRTCOM Q
  14.  
  15. The program redirects all LPT1, LPT2, and LPT3 output to
  16. COM1/.../COM4.  The command syntax is 'PRTCOM xblps':
  17.  
  18.     x = 1,...,4 = COM1,COM2,COM3,COM4
  19.     b = 1,...,8 = 110,150,300,600,1200,2400,4800,9600 baud
  20.     l = 7,8 = 7,8 bits data length
  21.     p = 0,1,2 = parity: none,even,odd
  22.     s = 1,2 = stop bits: 1,2
  23.  
  24. The command 'PRTCOM Q' reactivates the old (ROM) printer driver.
  25.  
  26. The PRTCOM command may be included in the AUTOEXEC.BAT file.
  27. PRTCOM becomes resident in memory and hooks software interrupt
  28. INT 17H.  IF a character is to be printed, it does the following:
  29.  
  30.     1. Initialize the serial port to the parameters.
  31.     2. Loop until both DSR (data set ready) and CTS (clear to
  32.        send) signals from the printer are in asserted state.
  33.     3. Send character.
  34.     4. Return "no error" status code.
  35.  
  36. The program never returns any error status code.  Therefore
  37. it may loop forever, waiting for DSR and CTS to become active
  38. and causing the program to 'hang'.  If the printer is either
  39. not connected or offline and you wish to interrupt the printing,
  40. press the SCROLL LOCK key (turn SCROLL LOCK LED on).  If the
  41. SCROLL LOCK LED is on, PRTCOM does dummy prints, i.e. returns
  42. the "no error" status codes without printing the characters.
  43. Then you may either wait until dummy printing has been finished,
  44. or break the printing, if the (application) program permits
  45. it (Control-C or ESCape should work).
  46.     If there is any other memory resident printer software
  47. (character set converters, screen graphics hardcopy routines),
  48. PRTCOM must be loaded first.
  49.     Install your application program(s) to LPT1, PRN, LST or
  50. "standard".
  51.  
  52. If you are having trouble to get your serial printer to work,
  53. here is a description of the standard serial printer cable for
  54. IBM-PCs and compatibles:
  55.  
  56.               PC                           printer
  57.  
  58.          cable has a                    cable has a
  59.          25 pin RS 232C                 25 pin RS 232C
  60.          FEMALE connector               MALE connector
  61.  
  62.               1      ----------------------   1
  63.       protective ground
  64.               7      ----------------------   7
  65.         signal ground
  66.               2 TX   ---------------------->  3 RX
  67.               3 RX  <----------------------   2 TX
  68.               4 RTS  ---------------------->  5 CTS
  69.               5 CTS <----------------------   4 RTS
  70.               6 DSR <----------------------  20 DTR
  71.              20 DTR  ---------------------->  6 DSR
  72.  
  73. Some serial printers need the DCD (data carrier detect) pin 8
  74. signal to recognize, that there is a computer willing to print.
  75. Add a connection from DSR pin 6 (printer site) to DCD pin 8
  76. (printer site) in that case.
  77.  
  78. If you have any comments, write to:
  79.  
  80.                         Klaus D. Wloczyk
  81.                         Otto-Hahn-Strasse 7
  82.                         W-6458 Rodenbach 1
  83.                         Germany
  84.