Smoke Control Programs
5-21 Infinity Smoke Control Guide
TOC
This program will not be Run again until the FSCSLinkActive numeric
is set to FALSE.
The command for the FSCS to print out the status of the switches is:
Print “(SPR)(?SBK1)”; to COMM1
The “(SPR)” part tells the FSCS to suppress all switch activation
messages until it is polled. The “(?SBK1)” part tells the FSCS to perform
a Switch Status Block Transfer on I/O card 1. If you had a second switch
I/O card, you would request it’s switch data by sending “(?SBK2)” to the
FSCS.
The Read statement for reading the FSCS switch data from COMM1 into
the string InBuffer is:
Result = read(COMM1, 100, InBuffer, 500, “)”)
This command tells the CX9200 to wait for 100 characters, OR 5
seconds, OR until it receives the right parenthesis. Under normal
circumstances, it will receive the parenthesis first.
Technical Manuals Online! - http://www.tech-man.com