| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
Comet includes a fax driver that allows an MTB program to send a fax via a "CAS-compatible" fax modem.
The Comet Fax Driver includes the following features:
Comet communicates with the fax modem via a TSR program usually supplied with the fax modem itself. This program, which is based on the based on the "Communicating Application Specification (CAS)" standard developed by Intel and DCA, is hereinafter referred to as the "CAS Manager."
The original implementations of the CAS standard were for the Intel SatisFAXtion and NetSatisFAXtion fax modems. As additional CAS-compatible modems and software become known to Signature Systems, we will inform you of these products.
Here are the basic steps for configuring the Comet Fax Driver:
Here are the basic steps for using the Comet Fax Driver:
For a Comet system within a network, where the fax board is contained in a "fax server," use the network fax CAS Manager (e.g., the TSR program included with NetSatisFAXtion).
For example:
OPEN (1) "LP3",EXCP=9999 ! open fax device
Notes:
| Position | Description |
|---|---|
| 1-3 | Last partition to open fax device |
| 4 | F = fax device |
| 5 | 1 = Intel CAS-compatible fax board |
The Comet Fax Driver provides mnemonics that let you specify the phone number, the TO and FROM information, text and/or graphics for the cover page, text and or graphics for the fax itself, and other parameters for the fax (headers, resolution, sending time/date, deletion options, etc.).
The minimum information needed by the fax driver is:
For example, to specify the fax phone number, use either of the following instructions:
PRINT (1) (FAX Phone="1-707-874-1369")
or
PRINT (1) (FAX Phone=PHONE$)
In this case, the mnemonic is named (FAX Phone) and it includes one argument, a string containing the fax phone number. This argument may be a constant (first example) or a variable (second example).
Write the "body" of the fax as follows:
PRINT (1) "This is the first line."
PRINT (1) "This is the second line."
PRINT (1) "This is the third line."
PRINT (1) "This is the fourth line."
PRINT (1) "This is the fifth line."
Additional information can be specified using other fax mnemonics (see below), but none of these additional items is required by the fax driver.
For example:
PRINT (1) (FAX Submit Job) ! submit fax job
Once the job is submitted, additional mnemonics may be used to inquire about the status of the fax job and/or delete the fax job. See below for more information on these mnemonics.
Example:
CLOSE (1) ! close fax device
Note: If you haven't written a FAX PHONE instruction to the fax device, your program will generate an exception upon closing the fax device. Therefore, we suggest that you include an ERRORTO statement in your program to handle this potential exception.
As mentioned above, the fax driver provides mnemonics to control all aspects of the fax board. Here are a few short examples of how these mnemonics can be used.
For a complete list, see Fax mnemonics.
PRINT (1) (FAX From=FROM$)
where FROM$ is a user-defined string
PRINT (1) (FAX To=TO$)
where TO$ is a user-defined string
PRINT (1) (FAX Fine Resolution)
PRINT (1) (FAX Cover Page)
PRINT (1) (FAX Cover Text="Line 1...")
PRINT (1) (FAX Cover Text="Line 2...")
PRINT (1) (FAX Cover Text="Line 3...")
PRINT (1) (FAX Cover Text="Line 4...")
PRINT (1) (FAX Logo File=LOGOFILE$)
where LOGOFILE$ is a user-defined variable that contains the full path name/file name of a PCX graphics file (e.g., c:\graphics\logo.pcx).
PRINT (1) (FAX Submit Job) ! submit fax job
INPUT (1) EVHANDLE$ ! get event handle
where EVHANDLE$ is a user-defined variable (2 bytes) containing a hex value associated with the fax job that has just been submitted (in essence, a "fax job identification number").
The event handle may be used to inquire about the queued fax job as follows:
PRINT (1) (FAX Job Status=EVHANDLE$)
This instruction returns the complete CAS Control File structure in a subsequent READ. This control structure is described in the CAS Control File documentation.
The event handle may also be used to delete a queued fax job as follows (assuming that the fax has not been transmitted):
PRINT (1) (FAX Delete Job=EVHANDLE$)
The event handle is a useful feature for managing faxes in the CAS Manager's queue. Ideally, your programs should obtain and save (in a data file) the event handle for each fax sent. You could then write a simple fax management "utility" program to inquire on the status of your pending fax jobs.
The minimum instructions needed to send a fax are:
The following default values are assumed for the fax device:
List of References: