User Guide
iv
Axcess Programming Language
Table of Contents
Controlling Time in Axcess.............................................................................................. 79
The Wait List ................................................................................................................... 79
Multiple Waits.................................................................................................................. 81
Naming Waits.................................................................................................................. 82
Canceling, Pausing, and Restarting Waits...................................................................... 82
Special Uses of Wait ....................................................................................................... 83
The Wait_Until Keyword.................................................................................................. 83
Misusing Wait_Until......................................................................................................... 83
Naming and Removing Wait_Untils ................................................................................ 84
Timer Keywords .............................................................................................................. 84
Using Time, Date, and Day ....................................................................................87
Time, Date, and Day Keywords ...................................................................................... 88
Using Subroutines .................................................................................................89
Defining a Subroutine...................................................................................................... 89
Calling subroutines................................................................................................................. 89
Local Variables and Parameters..................................................................................... 90
Local Variables....................................................................................................................... 90
Parameters............................................................................................................................. 90
Passing values back to the caller........................................................................................... 91
Local Variables and Parameter Keywords...................................................................... 93
Include Files and System_Calls ............................................................................95
Managing Large Programs.............................................................................................. 95
Include files ............................................................................................................................ 95
System_Calls and Library files........................................................................................ 96
Factory System_Calls ..................................................................................................... 97
Pre-Processor Statements ..................................................................................101
Debugging .............................................................................................................103
Types of Errors.............................................................................................................. 103
Compilation Errors and Warnings ................................................................................. 103
Run-Time Errors............................................................................................................ 105
Using AMX BUG .................................................................................................................. 105
Tracking down your errors ............................................................................................ 106
Tracing program flow ........................................................................................................... 106
Viewing Variables.......................................................................................................... 107
Compiler Error Messages ....................................................................................109
The External_Control Protocol ...........................................................................113
Controlling Axcess from the Outside............................................................................. 113