Download ACS CFSound-IV BASIC Programming
Transcript
ACS CFSound-IV BASIC Programming Manual 1 October 2015 @CLOSURE[x] The @CLOSURE[x] system variables allow the ACS BASIC program to access the CFSound and Expansion Module contact events. There are up to 56 contact inputs; permissible values for [x] are 0 through 55. Reading the variable returns a ‘1’ if the input contact[x] has had a closure since last being read. Closures are ‘sticky’ and the program must ‘clear’ the closure by assigning it a zero before it can be detected again. Optionally an event handler specified with the ONEVENT statement may be activated upon an input closure, which automatically clears the closure. 10 ONEVENT @CLOSURE[0],GOSUB 100 20 ONEVENT @CLOSURE[1],GOSUB 200 30 GOTO 30 100 PRINT "contact 0 closed":RETURN 200 PRINT "contact 1 closed":RETURN Ready run contact 0 closed contact 1 closed @OPENING[x] The @OPENING[x] system variables allow the ACS BASIC program to access the CFSound and Expansion Module contact events. There are up to 56 contact inputs; permissible values for [x] are 0 through 55. Reading the variable returns a ‘1’ if the input contact[x] has had an opening since last being read. Openings are ‘sticky’ and the program must ‘clear’ the opening by assigning it a zero before it can be detected again. Optionally an event handler specified with the ONEVENT statement may be activated upon an input opening, which automatically clears the opening. @PTT Writing this system variable to a non-zero value activates the CFSound-IV PTT relay. Setting it to zero deactivates the PTT relay. Reading this system variable returns 1 if the PTT relay is active, else zero. File Information The following system variables provide information about previously opened files: @FILE.SIZE[#N] The @FILE.SIZE[#N] read-only system variable allows the ACS BASIC program to determine the size in bytes of a previously opened file #N. @FILE.POSITION[#N] The @FILE.POSITION[#N] system variable allows the ACS BASIC program to ascertain or set the position of the next file read or write operation of a previously opened file #N. Copyright©1992-2015 by ACS, Sarasota, Florida 45 Back to Table of Contents ALL RIGHTS RESERVED