home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / do101j2.arj / INITCOM.SCR < prev    next >
Text File  |  1991-10-29  |  2KB  |  49 lines

  1. .pg wi full clr cy
  2.     COMMAND NAME»gray«: »%t« InitCommunications »ye«
  3.  
  4.     /INITCOM {port} {baud} [{parity} {data} {stop} {string}]
  5. /cw
  6.     »%t«InitCommunications»#« initializes the built-in communications
  7.     functions.  »wh«It must be run »+re«before»wh« any other communications
  8.     command.»#«
  9.  
  10.     »cy«{port}       »ye«1»#« or »ye«2»#« indicating the »gr«COM:»#« port to initialize
  11.     »cy«{baud}       »#«The speed of the connection: »ye«300 1200 2400 9600»#«
  12.     »cy«{parity}     »#«(»ma«O»#«)dd, (»ma«E»#«)ven, (»ma«N»#«)one. Defaults to "»ye«N»#«"
  13.     »cy«{data}       »#«Data bits: »ma«7»#« or »ma«8»#«. Defaults to "»ye«8»#«"
  14.     »cy«{stop}       »#«Stop bits: »ma«1»#« or »ma«2»#«. Defaults to "»ye«1»#«"
  15.     »cy«{string}     »#«Initialization string sent to modem. Defaults to »ye«none»#«.
  16.  
  17. .pg clr
  18.     Here are some examples:
  19. »wh«
  20.     /INITCOM 1 9600
  21. »#«
  22.         Initializes COM»ye«1»#«: to »wh«9600»#« baud, »wh«No»#« parity, »wh«8»#« data bits, »wh«1»#« stop bit
  23.                           will »re«NOT»#« send an initialization string to the
  24.                           modem.
  25.  
  26. .pg
  27. »wh«    /INITCOM 2 2400 E 7 1
  28. »#«
  29.         Initializes COM»ye«2»#«: to »wh«2400»#« baud, »wh«Even»#« parity, »wh«7»#« data bits, »wh«1»#« stop bit
  30.                           will »re«NOT»#« send an initialization string to the modem.
  31.  
  32. .pg
  33. »wh«    /INITCOM 1 1200 N 8 1 ATS0=1
  34. »#«
  35.         Initializes COM»ye«1»#«: to »wh«1200»#« baud, »wh«No»#« parity, »wh«8»#« data bits, »wh«1»#« stop bit
  36.                           sends "»cy«ATS0=1»#«" to initialize modem.
  37.         »gr«NOTE»cy«: »#«If you include a later parameter, you must »ye«explicitly»#« state
  38.               all previous parameters even if they are the defaults.
  39.  
  40. .pg
  41.     If »%t«DO»#« is unable to initialize the COM: port, it will abort with the
  42.     message "»cy«Cannot Open Serial Port»#«".  Check the parameters and COM:
  43.     port to assure that they are correct for your configuration.
  44.  
  45. /ENDEXEC
  46.  
  47.  
  48.  
  49.