User Guide

Channel Characteristics
24
Axcess Programming Language
and all the feedback statements are together. A good compromise is to break your program into
sections of code where each section has a similar group of functions, and put the feedback
statements for each section right below it, as shown in FIG. 5.
Device and Channel Keywords
Device and Channel keywords that you can use in the Axcess program are described in the table
below.
FIG. 5 Different positions for feedback statements
Device and Channel Keywords
DEVICE_ID Every Axcess device has a unique device ID number identifying its device type,
such as an Infrared/Serial Card or a Touch Panel. The DEVICE_ID keyword
returns the ID number of a specified device. If the device does not exist in the
system, DEVICE_ID returns Ø. This keyword is usually used for determining
whether or not a device is present in the system. For example:
IF (DEVICE_ID(VCR)) (* If the card exists, these
statements are executed *)
{
SEND_STRING Ø, "'VCR is online', 13, 1Ø"
}
For a current list of device numbers for Axcess devices, refer to the Devi-
ceid.TXT text file, included on the AMX Control Disc. Deviceid.TXT is located in
the AMXTools\AMXDOS\Software folder.
DO_PUSH This keyword causes an input change from off to on to occur on a specified
device-channel without the device-channel being activated by external means.
Here is the format:
DO_PUSH (device,channel)
The DO_PUSH keyword holds the PUSH for one half-second. It then releases
the channel by generating another input change for the device-channel from on
to off. The effect is the same as someone pressing a button on a panel for one
half-second. The release can be delayed by repeating the DO_PUSH before
the half-second time period elapses.
This keyword is useful only in limited situations, and its use is strongly discour-
aged.