home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / modem / cashdwr.zip / CAS-HW.TXT
Text File  |  1993-04-29  |  30KB  |  799 lines

  1.  
  2.  
  3.  
  4.  
  5.                     Implementation-Specific Information
  6.                                     for
  7.                         Intel Communications Products
  8.                                Supporting the
  9.             DCA/Intel Communicating Applications Specification
  10.  
  11.  
  12.  
  13.                                  April 1993
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Copyright (C) 1988-1993.  All rights reserved.
  20.  
  21. Intel Corporation
  22. 5200 N.E. Elam Young Pkwy.
  23. Hillsboro, OR 97124-6497
  24.  
  25.  
  26.  
  27.  
  28. The information in this document has been developed by Intel Corporation.
  29. Although it has been released into the public domain and is not
  30. confidential or proprietary, this document is still the copyright and
  31. property of Intel Corporation.
  32.  
  33.  
  34.  
  35.  
  36. Disclaimer of Warranty
  37.  
  38. INTEL CORPORATION EXCLUDES ANY AND ALL IMPLIED WARRANTIES, INCLUDING
  39. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  INTEL
  40. MAKES NO WARRANTY OF REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH
  41. RESPECT TO THIS SPECIFICATION, ITS QUALITY, PERFORMANCE, MERCHANTABILITY,
  42. OR FITNESS FOR A PARTICULAR PURPOSE.  INTEL SHALL HAVE NO LIABILITY FOR
  43. SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RESULTING
  44. FROM THE USE OR MODIFICATION OF THIS DOCUMENT.
  45.  
  46.  
  47.  
  48. This document uses the following trademarks:
  49.  
  50.      SatisFAXtion is a trademark and Intel is a registered trademark of
  51.      Intel Corporation.
  52.  
  53.      DCA and Digital Communications Associates are registered trademarks of
  54.      Digital Communications Associates, Incorporated.
  55.  
  56. *****************************************************************************
  57. Introduction
  58.  
  59. This document lists the CAS implementation-specific information
  60. for the Intel SatisFAXtion board, the Intel Connection
  61. CoProcessor board, and CASModem implementations (Class1, Class2, & SendFAX). 
  62. It also describes the EP2DCX program for converting Epson FX-85 format files
  63. to DCX files.
  64.  
  65.  
  66. The two functions Get Hardware Status (12H) and Run Diagnostics
  67. (13H) return information that varies depending on the kind of
  68. hardware used to implement the specification.  Be aware that if
  69. your code relies on the information returned by these functions,
  70. that code might not work correctly on hardware other than the
  71. Intel SatisFAXtion board or the Intel Connection CoProcessor
  72. board.  In addition, Intel reserves the right to change without
  73. notice the information these functions return.
  74.  
  75. Note:     As of this writing, the Intel Connection CoProcessor
  76.      board supports CAS Version 1.0 and the Intel SatisFAXtion
  77.      board supports CAS Version 1.2.  CAS Version 1.2 is a
  78.      superset of Version 1.0 (that is, programs written to run on
  79.      CAS Version 1.0 will also run on CAS Version 1.2).
  80.  
  81. Caution: Normal foreground applications can make CAS calls at any
  82.      time.  However, because the Intel implementation of CAS may
  83.      perform DOS file I/O operations when a CAS function is
  84.      called, TSRs (terminate and stay resident programs) or other
  85.      programs that run in the background should not make  CAS
  86.      calls when DOS file I/O cannot be performed. Normally, DOS
  87.      file I/O cannot be performed when the DOS busy flag is set,
  88.      except in a DOS idle interrupt service  routine (int 28H).
  89.  
  90. 12H - Get Hardware Status
  91. -------------------------
  92. Description:
  93.  
  94. The Get Hardware Status function (12H) returns the status of the
  95. communication hardware in the form of a 128-byte data structure.
  96. The calling program determines where the data structure is to be
  97. placed by setting the DS:DX registers to point to a 128-byte area
  98. in memory.
  99.  
  100. Caution: The data structure and values returned by this function
  101.      are hardware-dependent and will vary according to type of
  102.      hardware used to implement the CAS services.  To make your
  103.      programs hardware independent, it is recommended that when
  104.      possible you use the Get Current Event (10H) and Get Queue
  105.      Status (11H) functions, or examine the Control File, instead
  106.      of using this function.
  107.  
  108.  
  109. Input:
  110.  
  111.      AH = Multiplex number
  112.      AL = 12H
  113.      DS:DX points to a 128-byte status area
  114.  
  115. Return:
  116.  
  117.   AX = 0 if successful, negative if not.  If successful, the
  118.   function fills the status area with hardware-dependent status
  119.   information.
  120.  
  121. See Also:
  122. Get Current Event Status (10H)
  123. Get Queue Status (11H)
  124.  
  125.  
  126. Returned Data Structure:
  127. ------------------------
  128. The format of the data area pointed to by DS:DX is as follows,
  129. depending on whether the hardware is an Intel SatisFAXtion board,
  130. CASModem implementation, or an Intel Connection CoProcessor
  131. board.  (In the following description, bits that are "set" have a
  132. value of 1.)
  133.  
  134. SatisFAXtion Board:
  135.  
  136. Offset    Length    Description
  137.  
  138. 0    1    Bit fields indicating the status of the connection:
  139.  
  140.           Bit  Description
  141.           0  Data modem in use.  When this bit is set to 1, the
  142.              fax image modem cannot be used until the data modem
  143.              has hung up the connection.
  144.           1  Resolution of the fax image for the current page:  1
  145.              indicates coarse resolution (200 dpi x 100 dpi) and 0
  146.              indicates fine resolution (200 dpi x 200 dpi).
  147.           2  If set to 1, data buffer dumped on receive.
  148.           3  If set to 1, data is in the buffer.
  149.           4  If set to 1, the current mode is file transfer mode.
  150.           5  If set to 1, request for retransmit of last page has
  151.              been made.
  152.           6  If set to 1, there is no data on the current page or
  153.              file.  This bit is only used when block transfers of
  154.              pages or files is taking place.
  155.           7  If set to 1, the board is busy in T.30 CCITT fax
  156.              protocol.
  157.  
  158. 1    1    Board State
  159.  
  160.           Bits Description
  161.           0-2  T.30 CCITT protocol state.
  162.  
  163.           2 1 0  Action     State
  164.           0 0 0  Idle       None
  165.           0 0 1  Dialing    A
  166.           0 1 0  Answering  A
  167.           0 1 1  Transmitting    C
  168.           1 0 0  Receiving  C
  169.           1 0 1  Pre-message     B
  170.           1 1 0  Post-message    D
  171.           1 1 1  Disconnect E
  172.  
  173.           3-5 & 7 Current bit rate.
  174.           7 5 4 3
  175.           0 0 0 0    300bps
  176.           0 1 0 0    2400bps
  177.           0 1 0 1    4800bps
  178.           0 1 1 0    7200bps
  179.           0 1 1 1    9600bps
  180.           1 0 0 0    12200bps
  181.           1 0 0 1    14400bps
  182.  
  183.           6  Handset jack active (off-hook).  When this bit is
  184.              set to 1, neither the fax image modem nor the data
  185.              modem can be used (except for the current connection
  186.              send or receive) until the device connected to the
  187.              handset jack has been placed back on-hook.
  188.  
  189. 2    1    Number of KBytes free in the buffer.
  190. 3    1    Number of pages or files in the buffer
  191. 4    1    Number of retries left to dial this number.  The user
  192.           sets the initial retry value in the SatisFAXtion SETUP
  193.           program.  The value is then automatically decremented
  194.           each time a call is attempted.
  195. 5    1    Fax page number to retransmit.  Used in conjunction
  196.           with the "request for retransmit of last page" flag
  197.           (offset 0, bit 5).
  198. 6    1    Current block transfer page or file.  Number of the
  199.           current page or file that is being transferred between
  200.           the resident manager and the board (not necessarily the
  201.           page or file that is currently being transmitted over
  202.           the phone line).
  203. 7    1    Number of rings detected when receiving a call.  Rings
  204.           are counted only if auto-answer is enabled.
  205. 8    2    Error count.  A 16 bit unsigned integer (byte 9 is most
  206.           significant byte) that indicates the number of errors
  207.           that have occurred during the connection.
  208. 10   4    Length of file being transferred in file transfer mode.
  209. 14   6    Reserved
  210. 20   1    FAX Hardware Type
  211.           B = Satisfaxtion & Satisfaxtion 200
  212.           C = Net Satisfaxtion
  213.           D = Satisfaxtion 400
  214.           E = Class 1 fax
  215.           F = Class 2 fax
  216.           G = Send Fax
  217. 21   13   Transfer agent name; ASCII string, null terminated.
  218. 34   5    Transfer agent version number; ASCII string, null
  219.           terminated.
  220. 39   13   Resident loader name; ASCII string; null terminated.
  221. 52   5    Resident loader version number; ASCII string, null
  222.           terminated.
  223. 57   21   Remote CSID; ASCII string, null terminated.
  224. 78   13   Resident manager name; ASCII string, null terminated.
  225. 91   5    Resident manager version number; ASCII string, null
  226.           terminated.
  227. 96   32   Reserved.
  228.  
  229.  
  230.                       CASModem Implementations:
  231.  
  232.  
  233. Offset    Length    Description
  234.  
  235. 0    1    Bit fields indicating the status of the connection:
  236.  
  237.           Bit  Description
  238.           0  Data modem in use.  When this bit is set to 1, the
  239.              fax image modem cannot be used until the data modem
  240.              has hung up the connection.
  241.           1  Resolution of the fax image for the current page:  1
  242.              indicates coarse resolution (200 dpi x 100 dpi) and 0
  243.              indicates fine resolution (200 dpi x 200 dpi).
  244.           2  Not used.
  245.           3    "       ".
  246.           4    "       ".
  247.           5  If set to 1, request for retransmit of last page has
  248.              been made.
  249.           6  If set to 1, there is no data on the current page or
  250.              file.  This bit is only used when block transfers of
  251.              pages or files is taking place.
  252.           7  If set to 1, the board is busy in T.30 CCITT fax
  253.              protocol.
  254.  
  255. 1    1    Board State
  256.  
  257.           Bits Description
  258.           0-2  T.30 CCITT protocol state.
  259.  
  260.           2 1 0  Action     State
  261.           0 0 0  Idle       None
  262.           0 0 1  Dialing    A
  263.           0 1 0  Answering  A
  264.           0 1 1  Transmitting    C
  265.           1 0 0  Receiving  C
  266.           1 0 1  Pre-message     B
  267.           1 1 0  Post-message    D
  268.           1 1 1  Disconnect E
  269.  
  270.           3-5 & 7 Current bit rate.
  271.           7 5 4 3
  272.           0 0 0 0    300bps
  273.           0 1 0 0    2400bps
  274.           0 1 0 1    4800bps
  275.           0 1 1 0    7200bps
  276.           0 1 1 1    9600bps
  277.           1 0 0 0    12200bps
  278.           1 0 0 1    14400bps
  279.  
  280.           6  Not used (always 0)
  281.  
  282. 2    1    Not Used.
  283. 3    1       "      "   .
  284. 4    1    Number of retries left to dial this number.  The user
  285.           sets the initial retry value in the SatisFAXtion SETUP
  286.           program.  The value is then automatically decremented
  287.           each time a call is attempted.
  288. 5    1    Fax page number to retransmit.  Used in conjunction
  289.           with the "request for retransmit of last page" flag
  290.           (offset 0, bit 5).
  291. 6    1    Current block transfer page or file.  Number of the
  292.           current page or file that is being transferred between
  293.           the resident manager and the board (not necessarily the
  294.           page or file that is currently being transmitted over
  295.           the phone line).
  296. 7    1    Number of rings detected when receiving a call.  Rings
  297.           are counted only if auto-answer is enabled.
  298. 8    2    Not used (always 0).
  299. 10   4    Length of file being transferred in file transfer mode.
  300. 14   6    Reserved.
  301. 20   1    FAX Hardware Type.
  302.           B = Satisfaxtion & Satisfaxtion 200
  303.           C = Net Satisfaxtion
  304.           D = Satisfaxtion 400
  305.           E = Class 1 fax
  306.           F = Class 2 fax
  307.           G = Send Fax
  308. 21   13   Transfer agent name; ASCII string, null terminated.
  309. 34   5    Transfer agent version number; ASCII string, null
  310.           terminated.
  311. 39   13   Resident loader name; ASCII string; null terminated.
  312. 52   5    Resident loader version number; ASCII string, null
  313.           terminated.
  314. 57   21   Remote CSID; ASCII string, null terminated.
  315. 78   13   Not Used.
  316. 91   5       "     ".
  317. 96   2    Port I/O Address.
  318. 98   1    IRQ#.
  319. 99   9    ASCIIZ Board ID
  320. 108  20   Reserved.
  321.  
  322.  
  323.  
  324.                    Connection CoProcessor Board:
  325.  
  326. Offset    Length    Description
  327.  
  328. 0    1    Bit fields indicating the status of the transmission:
  329.           0-2  Reserved.
  330.           3    Set if file transfer mode is active
  331.           4-6  Reserved
  332.           7    Set if the hardware is busy sending or receiving
  333.  
  334. 1    2    Reserved
  335. 3    1    Number of retries left to dial this number.  The user
  336.           sets the initial retry value in the Connection
  337.           CoProcessor's INSTALL or SETUPCC programs.
  338. 4    1    Reserved
  339. 5    1    Bit fields indicating the phone line status:
  340.  
  341.           0-2     Hardware sequence state
  342.           2 1 0
  343.           0 0 0  Idle
  344.           0 0 1  Dial
  345.           0 1 0  Answer
  346.           0 1 1  Transmit
  347.           1 0 0  Receive
  348.           1 0 1  Pre-message
  349.           1 1 0  Post-message
  350.           1 1 1  Disconnect
  351.  
  352.           3    Set if buffer dumped on receive
  353.           4    Set if ring detected and auto-answer is enabled
  354.           5    Set if off hook (on line)
  355.           6    Set if Connection CoProcessor will be sending data
  356.           7    Reserved
  357.  
  358. 6    1    Bit fields indicating the baud rate status
  359.           0-3  Reserved
  360.           4-6 Bit Rate   Modem Mode
  361.           6 5 4
  362.           0 0 0  300 baud   V.21 (HDLC)
  363.           1 0 0  2400 baud  V.27 ter
  364.           1 0 1  4800 baud  V.27 ter
  365.           1 1 0  7200 baud  V.29
  366.           1 1 1  9600 baud  V.29
  367.  
  368.           7    Reserved
  369.  
  370. 7    3    Reserved
  371. 10   1    Bit fields indicating additional hardware status:
  372.  
  373.           0    Set if line length compensation bit 0 is set
  374.           1    Set if line length compensation bit 1 is set
  375.           2    0 - DMA channel 3 is in use
  376.                1 - DMA channel 1 is in use
  377.           3    Reserved
  378.           4    Set if ring is detected
  379.           5    Set if off hook
  380.           6    Set if Connection CoProcessor has control of the
  381.                DAA (not latched)
  382.           7    Set if modem option is installed
  383.  
  384. 11   1     Bit fields indicating configuration of COM ports,
  385. Interrupts, and I/O ports:
  386.  
  387.           0-2  2 1 0  COM Port IRQ    I/O port
  388.           0 0 1  COM 1    IRQ 4  I/O ports 3F8h - 3FFh
  389.           0 0 0  COM 2    IRQ 3  I/O ports 2F8h - 2FFh
  390.           0 1 1  COM 3    IRQ 4  I/O ports 3E8h - 3EFh
  391.           0 1 0  COM 4    IRQ 3  I/O ports 2E8h - 2EFh
  392.           1 1 1  COM 3    IRQ 5  I/O ports 3E8h - 3EFh
  393.           1 1 0  COM 4    IRQ 2  I/O ports 2E8h - 2EFh
  394.  
  395.           3-7  Reserved
  396.  
  397. 12   1    Bit fields indicating additional hardware status:
  398.           0    Set if 2400 bps (V.27 ter) enabled
  399.           1    Set if 4800 bps (V.27 ter) enabled
  400.           2    Set if 7200 bps (V.29) enabled
  401.           3    Set if 9600 bps (V.29) enabled
  402.           4-7  Reserved
  403.  
  404. 13   1     Reserved
  405. 14   2    Error count (received errors or retransmission
  406.           requests).  This value is valid only when the
  407.           Connection CoProcessor is busy.  Thus it is reset when
  408.           the board is idle.
  409. 16   4    Reserved
  410. 20   1    The character "A" if the Connection CoProcessor board
  411.           is present.
  412. 21   9    Reserved.
  413. 30   21   CSID of the remote hardware
  414. 51   77   Reserved
  415.  
  416. 13H - Run Diagnostics
  417.  
  418. Description:
  419.  
  420. The Run Diagnostics function (13H) runs a set of diagnostics on
  421. the board or reports on their progress.  The value in register DL
  422. determines the action of function.
  423.  
  424. Input:
  425.  
  426.      AH = Multiplex number
  427.      AL = 13H
  428.      DL = Mode:     0 - Report progress of diagnostics
  429.                1 - Start running diagnostics
  430.  
  431. Return:
  432.  
  433. Information about the diagnostics is returned in register AX, as
  434. described below:
  435.  
  436. DL = 1  Start Running Diagnostics.  Either a 0 (diagnostics
  437.      successfully begun) or a negative error code is returned in
  438.      AX.  The error code is one of the CAS error codes (such as,
  439.      Communications Board Busy).
  440. DL = 0  Report Progress of Diagnostics.  One of the following
  441.         values is returned in AX:
  442.  
  443.      Value          Condition
  444.  
  445.      0040H          diagnostics in process
  446.      0000H          diagnostics passed
  447.      1???H          diagnostics failed
  448.  
  449. If a negative number is returned, the individual bits of AX
  450. contain the information shown below, depending on the type of
  451. hardware being used (that is, SatisFAXtion board or Connection
  452. CoProcessor board.)  (In the following  description, bits that
  453. are "set" have a value of 1.)
  454.  
  455. SatisFAXtion:
  456.  
  457. Bits of AX     Description
  458.  
  459. 0         Set if 9600 bps fax modem device failed
  460. 1         Set if 2400 bps data modem device failed
  461. 2-15           Reserved
  462.  
  463. CASModem Implementation:
  464. Diagnostics always succed for Class1, Class2, & SendFAX hardware.
  465.  
  466. Connection Coprocessor:
  467.  
  468. Bits of AX       Description
  469.  
  470. 0    Set if ROM checksum failed
  471. 1    Set if RAM failed
  472. 2    Set if SDLC chip failed
  473. 3    Set if 9600 bps fax modem module failed
  474. 4-15 Reserved
  475.  
  476. *****************************************************************************
  477.  
  478.  
  479.  
  480. CAS Class 5 Errors Specific to FAXPOP.EXE
  481.  
  482.      Note:            This section describes the CAS Class 5 errors that
  483.                  Intel's FAXPOP.EXE application uses.  If your application
  484.                  does not log Class 5 errors, you can skip this section.
  485.  
  486. A CAS error code consists of two parts, an error class and an error
  487. subcode.  The error class is returned in AH and the error subcode is
  488. returned in AL.  The error class indicates the general type of operation in
  489. which the error occurred; the error subcode indicates the specific kind of
  490. error that occurred.  Class 5 error codes are reserved for application-
  491. specific errors.
  492.  
  493. The Intel fax pop-up shipped with the SatisFAXtion board (FAXPOP.EXE) uses
  494. the CAS class 5 error codes listed in the following table.  All codes are
  495. in hexadecimal.  The full error code (class plus subcode) is listed in the
  496. Error column, and the class and subcode are listed separately in the next
  497. two columns.  When these errors are returned to an application, they are
  498. returned as the negative of these codes.  For example, the "Insufficient
  499. disk space" error code is returned in AX as FAFFH which is the negative
  500. (2's complement) of 0501H.
  501.  
  502. Table of Error Codes
  503.  
  504. Error Class Subcode Description
  505. 0500  5     00    Tried to send while in graphics mode
  506. 0501  5     01    Insufficient disk space
  507. 0502  5     02    Internal buffer overflow
  508.  
  509.  
  510. When FAXPOP Logs Class 5 Errors
  511.  
  512. Normally, when FAXPOP detects an error, an error message is displayed on
  513. the monitor screen in a pop-up window.  However, if the screen is in
  514. graphics mode and the user has set the SatisFAXtion software to not allow
  515. the pop-up to be displayed when in graphics mode, error messages cannot be
  516. displayed on the screen.  Instead, they are logged as events in the log
  517. queue, using the class 5 error codes.  The only information that is valid
  518. in this event record is the error code.
  519.  
  520. ****************************************************************************
  521.  
  522. PRN2FAX
  523.  
  524. The Intel SatisFAXtion board and the FAX software allow any file that is in
  525. ASCII, DCX, or PCX format to be sent as a fax.  The Intel FAXPOP program
  526. also allows a file that is in Epson FX-85 or HP-PCL-5 format to be sent as a 
  527. fax.  FAXPOP does this by converting the file from Epson FX or HP-PCL-5 format 
  528. to DCX format.  The program PRN2FAX.EXE (a small, command-line driven program
  529. , which is included with the SatisFAXtion board software) performs this same
  530. conversion.  You will find more information on the PRN2FAX utility in the 
  531. manual for your Intel fax card.
  532.  
  533. Other applications software can use the PRN2FAX program to facilitate the
  534. sending of faxes directly from the application.  For example, if a word
  535. processor provides output in Epson FX format, the word-processor software
  536. can execute PRN2FAX to convert the Epson FX output to DCX format.  The
  537. resulting file can then be submitted to CAS and sent through a SatisFAXtion
  538. board or Connection CoProcessor board as a fax.
  539.  
  540.      Note:            An Intel fax board must be installed to run PRN2FAX;
  541.                       otherwise, an error is generated.
  542.  
  543. The following section describes the PRN2FAX command line format and
  544. parameters and the errors codes and messages that PRN2FAX generates.
  545.  
  546.      The printer-to-dcx DOS command line utility converts an Epson FX-85,
  547. PCL-5, or ASCII print file to a dcx-format file, suitable for submission to
  548. CAS for sending as a fax.  The FX-85 printer is specifically emulated, but the
  549. entire Epson FX series of printers uses a similar command set, so print files
  550. designated for any Epson FX-series printer should work satisfactorily.  The
  551. PCL-5 emulation does not support a few major features, namely HP-GL graphics
  552. commands, and print image modeling.  All of the bitmap fonts and
  553. scalable typefaces that are built into the LaserJet III printer are supported,
  554. as well as all of the bitmap fonts found in HP's A-Z cartridges.
  555.  
  556.  
  557.      The command line syntax to invoke the utility is:
  558.  
  559.  
  560.  
  561.  
  562.    prn2fax [d:]infile[.ext] [d:][outfile.[ext]] /type [/p] [/s] [/o] [/help] 
  563.                                                       [/?]
  564.  
  565.         Parameters enclosed in square brackets [] are optional.
  566.  
  567.         The parameters are described on the following page.
  568.  
  569.      Notes on parameters:
  570.  
  571.         infile - Any valid DOS pathname, no default extension.
  572.  
  573.         outfile - May be specified or not specified.
  574.      
  575.                   If not specified, the output file will be placed on the
  576.                   same drive and in the same directory as the input file.
  577.                   It will have the same filename as the input file, but
  578.                   the filename extension will be .dcx.
  579.  
  580.                   If specified, a valid DOS pathname is required.  No default
  581.                   drive or directory information from the input filename is
  582.                   applied.  If the filename does not have an extension, .dcx
  583.                   is appended to it.
  584.  
  585.                   An exisiting file of the same name as the output file
  586.                   will be deleted without warning.
  587.  
  588.         /type -   Emulation type, must be specified:
  589.  
  590.                   /e - Epson FX-85 emulation.
  591.                   /h - HP PCL-5 emulation.
  592.                   /a - ASCII file emulation.
  593.                   /c - Compressed print ASCII file emulation.
  594.  
  595.         /p - Instead of a dcx-format file, a pcx-format file is produced.
  596.              The entire document will be one, possibly very long, page.
  597.              All references to .dcx file extensions will change to .pcx.
  598.              Note: The HP emulator will only write the first page to
  599.              the output file.
  600.  
  601.         /s - ("silent") All screen displays, including error messages, are
  602.              suppressed.  This option is intended for use when prn2fax is
  603.              exec'd from other programs that will check the return code
  604.              for errors.
  605.  
  606.         /o - ("override errors") Emulation will continue regardless of the
  607.              number of command errors encountered in the input file.
  608.  
  609.         /help -  Causes the PRN2FAX help screen to be displayed.  When this
  610.         or /?    option is used, all other command line arguments are ignored.
  611.                  The help screen is shown on the next page. 
  612.  
  613.      The command line parameters may be any combination of upper and/or lower
  614. case text.
  615.  
  616.  
  617.  
  618. PRN2FAX HELP SCREEN
  619.  
  620.  
  621. PRN2FAX    Vx.xx
  622. Copyright (c) 1992 Intel Corporation.  All rights reserved.
  623.  
  624.    PRN2FAX infile[.ext] [dcxfile[.ext]] /<type> [/P] [/S] [/O]  [ ] = optional
  625.  
  626.    infile   print file to be converted to DCX (or PCX) format.
  627.             Can include a pathname.
  628.  
  629.    dcxfile  DCX (or PCX) file created by PR2DCX.  The default is the
  630.             "infile" filename with the extension .DCX (or .PCX), placed in
  631.             the "infile" drive and directory.
  632.  
  633.    .ext     The file's extension.
  634.  
  635.    /<type>  Emulation type (required): /E = Epson FX-85,
  636.             /H = HP PCL-5, /A = ASCII, /C = Compressed ASCII
  637.  
  638.    /P       Produces a file in PCX (rather than DCX) format.
  639.  
  640.    /S       Suppresses screen displays, including error messages.  Use
  641.             when executing PRN2FAX from programs that check the return code.
  642.  
  643.    /O       Overrides errors so conversion continues regardless of the
  644.             number of command errors in "infile".
  645.  
  646.  
  647. PCX FILE INCOMPATIBILITY BETWEEN EMULATORS
  648.  
  649. When the /P option is used to generate a PCX file for an input file that
  650. is longer than one page, the Epson and ASCII emulators generate a single,
  651. extra long page that contains all of the output data.  The HP emulator
  652. generates only the actual first page of the input file that is submitted for
  653. emulation.  
  654.  
  655.  
  656.  
  657. ERROR CONDITIONS
  658.  
  659.    "Input and output files must have different names."
  660.  
  661.      This message is generated when the input and output files are the
  662.      same file, in the same directory, on the same drive.
  663.  
  664.    "Program terminated by Ctrl-Break."
  665.  
  666.      This message replaces the "Program terminated by ESC" message
  667.      generated by the emulators.
  668.  
  669.    "Intel fax hardware required."
  670.  
  671.      This message is generated if there isn't an intel fax card installed.
  672.  
  673.    "No input file specified.  (Type 'PRN2FAX /help' for more info)."
  674.  
  675.    "Syntax error or invalid command line option specified.
  676.     (Type 'PRN2FAX /help' for more info)."
  677.  
  678.    "No emulation type specified. (Type 'PRN2FAX /help' for more info)." 
  679.  
  680.    "More than one emulation type specified.  (Type 'PRN2FAX /help' for
  681.     more info)."
  682.  
  683.    "Too many files (maximum 2) specified.  (Type 'PRN2FAX /help' for more
  684.     info)."
  685.  
  686.    "Too many command line options (maximum 10) specified."
  687.  
  688.  
  689.      For three specific DOS errors, the following text is added to the error
  690. message generated by the emulator, if the error applies to opening either
  691. the input file or the output file:
  692.  
  693.    DOS error 2, file not found, or DOS error 3, path not found
  694.  
  695.      "Check that you entered the correct filename."
  696.  
  697.    DOS error 15, invalid drive specification
  698.  
  699.      "Type in a valid drive."
  700.  
  701.  
  702.  
  703.  
  704. EXIT CODES
  705.  
  706.      When the utility completes execution, it provides an 8-bit exit code
  707. to DOS.  An application that exec's the utility has access to this exit
  708. code after the utility completes.  The exit code for error-free operation
  709. is zero.  The exit code is formatted into three bit-fields:
  710.  
  711.         _______________
  712.        |_|_______|_____|
  713.         0 1 2 3 4 5 6 7
  714.  
  715.  
  716. bit 0:      0 = DOS error
  717.             1 = Non-DOS error
  718.  
  719. bit 1:      Not used.
  720.  
  721. bits 2 - 4: Type of DOS operation, if DOS error:
  722.             0 = open
  723.             1 = close
  724.             2 = read
  725.             3 = write
  726.             4 = seek
  727.  
  728. bits 5 - 7: File that error is associated with, if DOS error:
  729.             0 = No file involved
  730.             1 = Input file
  731.             2 = output file
  732.             3 = pcx merge file
  733.             4 = emulator overlay file
  734.             5 = page image file
  735.             6 = soft font file
  736.  
  737.  
  738. bits 1-7: Error code, if non-DOS error (bit 0 = 1):
  739.  
  740.           00h - No input file specified.
  741.           01h - Input and output file are the same file.
  742.           02h - Invalid command line option specified.
  743.           03h - No emulation type was specified.
  744.           04h - Multiple emulation types were specified.
  745.           05h - Too many command line options were specified.
  746.           06h - Too many files were specified.
  747.           07h - Utility was invoked with /help or /? option.
  748.           08h - Emulation was aborted by request.
  749.           09h - 99 output pages exceeded.
  750.           0ah - Error in header of a PCX merge file.
  751.           0bh - An invalid type of PCX file was specified.
  752.           0ch - A PCX merge file was too wide.
  753.           0dh - A PCX merge file had a data format error.
  754.           0eh - A PCX merge file had a premature end-of-file.
  755.           0fh - Disk full error.
  756.           10h - No Intel fax hardware installed.
  757.           11h - Format error in emulator overlay file.
  758.           12h - Not enough memory to load emulator overlay file.
  759.           13h - Unknown error while loading overlay file.
  760.           14h - Input file contained invalid printer commands.
  761.           15h - No output generated due to no vertical movement.
  762.           16h - Invalid command in emulator configuration file.
  763.           17h - Internal processing failure.
  764.           18h - Unknown emulator error.
  765.           19h - Menu object allocation error.
  766.           1ah - Reader object allocation error.
  767.           1bh - Writer object allocation error.
  768.           1ch - Page object allocation error.
  769.           1dh - Soft font allocation error.
  770.           1eh - Font allocation error.
  771.           1fh - Intellifont font list allocation error.
  772.           20h - Intellifont index file error.
  773.           21h - Intellifont typeface file error.
  774.           22h - Intellifont buffer allocation error.
  775.           23h - Intellifont cache allocation error.
  776.           24h - Soft font general error.
  777.           25h - Soft font allocation error.
  778.           26h - Soft font buffer allocation error.
  779.           27h - Reader general error.
  780.           28h - Input redirection error.
  781.           29h - Writer general error.
  782.           2ah - Output data encoding error.
  783.           2bh - Page image general error.
  784.           2ch - XMS error.
  785.           2dh - EMS error.
  786.           2eh - Page cursor error.
  787.           2fh - Soft font general allocation error.
  788.           30h - Soft font unknown error.
  789.           31h - Reader general allocation error.
  790.           32h - Reader unknown error.
  791.           33h - Writer general allocation error.
  792.           34h - Writer unknown error.
  793.           35h - Page image general allocation error.
  794.           36h - Page image unknown error.
  795.           37h - PCX merge unknown error.
  796.           38h - PCL redirection unknown error.
  797.           39h - Intellifont general error.
  798.           3ah - HP/GL-2 commands in input file.
  799.