Download ACS CFSound-IV BASIC Programming
Transcript
ACS CFSound-IV BASIC Programming Manual 1 October 2015 Some Funny Characters...................................................................................................................30 Don’t Get Boxed In ..................................................................................................................31 Character Rules .......................................................................................................................31 Don’t Repeat Yourself.....................................................................................................................32 Rules for Subroutines ...............................................................................................................33 Making Changes ..............................................................................................................................34 Rules for Editing ......................................................................................................................35 There’s a System .............................................................................................................................36 System Timers ..........................................................................................................................37 Rules for System Variables .......................................................................................................38 Staging an Event..............................................................................................................................38 Rules for Events........................................................................................................................39 ACS BASIC Reference ................................................................................................................. 40 Program vs Direct Mode ........................................................................................................................40 Programs .................................................................................................................................................40 Line Numbers .........................................................................................................................................41 Variables.................................................................................................................................................42 Constants ................................................................................................................................................42 System Variables ....................................................................................................................................44 Timing .............................................................................................................................................44 @TIMER[x] .............................................................................................................................44 Input / Output ..................................................................................................................................44 @PORT[x] / @PORT2[x] ........................................................................................................44 @CONTACT[x] .......................................................................................................................44 @CLOSURE[x] ........................................................................................................................45 @OPENING[x] ........................................................................................................................45 @PTT .......................................................................................................................................45 File Information...............................................................................................................................45 @FILE.SIZE[#N] .....................................................................................................................45 @FILE.POSITION[#N] ...........................................................................................................45 @FEOF[#N] ............................................................................................................................46 Socket Communications ..................................................................................................................46 @SOCKET.EVENT[#N] ..........................................................................................................46 @SOCKET.TIMEOUT .............................................................................................................46 Real Time Clock..............................................................................................................................47 @SECOND / @MINUTE / @HOUR / @DOW / @DATE / @MONTH / @YEAR ..................47 Sound Control .................................................................................................................................47 @SOUND$ ...............................................................................................................................47 @VOL / @NSVOL....................................................................................................................47 @MUTE ...................................................................................................................................48 @LINEIN .................................................................................................................................48 @SOUNDFRAMEPRESCALER ..............................................................................................48 @SOUNDFRAMESYNC ..........................................................................................................48 Serial Communications Control ......................................................................................................49 @BAUD ...................................................................................................................................49 Copyright©1992-2015 by ACS, Sarasota, Florida ALL RIGHTS RESERVED