Technical Note 05-96 Page 2

MMMMMNote: Any voice message transmissions MMMMMin progress will be completed.

  • The input register will accept up to 16 alarms at any time. As alarms are transmitted, locations in the input register are freed for use by new alarms. If the buffer is full (16 alarms) a CTS is not returned until the next alarm is sent and a ``place" is available in the buffer.

SAMPLE SOFTWARE

Included with the serial alarm input interface is sample software for testing or assisting in setting up the serial interface. The software program is written in Qbasic which is available with MSDOS 5.0 and later. The program name is RSINPUT.BAS and will load after Qbasic. The Com port is defaulted to COM 1, but can be changed if necessary in the program. Running the program will allow you to selectively send alarms to the encoder from the PC.

The following is the sample program listing:

MMMThis is a sample loop to test for INPUT MMMof multiple alarms.

Back

Picture
  • MMMCLS
  • MMMPRINT `` "
  • MMMgetzone:
  • INPUT ``ALARM ZONE," z%
  • IF z% = 0 THEN GOTO finish
  • PRINT `` "
  • OPEN
  • ``COM1:9600,N,8,1,BIN,CD0,CS100 0,DS0" FOR OUTPUT AS #1
  • PRINT #1, CHR$(z%)
  • CLOSE #1
  • GOTO getzone
  • finish:
  • END

Notes to the sample program:

  • CD0 disables carrier detect.
  • CS1000 is the key option. It tells the program to wait for 1000 msec. for CTS to go high before error (break in program).
  • DS0 disables DSR (data set ready).

If you have any questions, please contact CDT.

Rectangle
33408 Sandy Creek Lane, P.O. Box 776, Pine Valley, CA 91962-0776   (619) 478-2600   FAX (619) 478-2555
Copyright © 1998 by CDT
[Home] [Products] [Services] [Company] [Hot Links] [What's New]