Waits and Timer Keywords
84
Axcess Programming Language
It is not necessary to use WAIT_UNTIL in your program yet, but the following program segment
illustrates the possible misuse of WAIT_UNTIL:
DEFINE_PROGRAM
WAIT_UNTIL (Y = 4)
{
X = Ø
Y = Ø
}
Y = 4
Y = 3
In this example, Y will never equal 4 at the end of mainline. The WAIT_UNTIL in this case is
useless.
This problem could make its way into a large program. Axcess cannot detect this sort of logic error,
so be sure that each WAIT_UNTIL statement can become true.
Naming and Removing Wait_Untils
A WAIT_UNTIL can be named in the same manner as a WAIT. To do this, a name in single quotes
is placed at the end of the statement. Once a WAIT_UNTIL has a name, it can be canceled with the
CANCEL_WAIT_UNTIL keyword, which removes it from the WAIT_UNTIL list. The
CANCEL_ALL_WAIT_UNTIL keyword removes all WAIT_UNTILs from the WAIT_UNTIL list.
Timer Keywords
Several more timing features are contained in the timer keywords. The SET_TIMER and
GET_TIMER keywords allow you to have a stopwatch and the ability to measure time intervals
within the Axcess Control System. The Timer keywords are described below:
Timer Keywords
SET_TIMER
Sets the Axcess timer
Axcess provides a simple timer. It cannot be stopped or paused, only set. Like
a WAIT, time is measured in increments of tenths of seconds. There is only one
such timer available, and therefore has somewhat limited use.
To set the timer, the SET_TIMER keyword is used. You must specify a number
between Ø and 65,535, and the timer will start counting up from that point.
After the timer reaches 65,535, it wraps around to Ø and starts over.
Summary of Contents for Axcess
Page 1: ...instruction manual Software Axcess Programming Language ...
Page 8: ...vi Axcess Programming Language Table of Contents ...
Page 12: ...Introduction 4 Axcess Programming Language ...
Page 22: ...Axcess Basics 14 Axcess Programming Language ...
Page 38: ...Channel Characteristics 30 Axcess Programming Language ...
Page 54: ...Levels 46 Axcess Programming Language ...
Page 62: ...Operators 54 Axcess Programming Language ...
Page 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Page 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Page 80: ...While Keywords 72 Axcess Programming Language ...
Page 86: ...Using Buffers 78 Axcess Programming Language ...
Page 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Page 102: ...Using Subroutines 94 Axcess Programming Language ...
Page 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Page 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Page 124: ...The External_Control Protocol 116 Axcess Programming Language ...