Level Keywords - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

DEFINE_PROGRAM
PUSH[TP,17]
{
OFF[VOLUME,VOL_MUTE]
TO[VOLUME,VOL_UP]
}
PUSH[TP,18]
{
OFF[VOLUME,VOL_MUTE]
TO[VOLUME,VOL_DN]
}
PUSH[TP,19]
[VOLUME,VOL_MUTE] = NOT [VOLUME,VOL_MUTE]
[TP,17] = [VOLUME,VOL_UP]
[TP,18] = [VOLUME,VOL_DN]
[TP,19] = [VOLUME,VOL_MUTE]
Notice that the Volume Up and Volume Down buttons will automatically un-mute the volume
before starting to ramp the volume up or down. Also, these control channels affect both levels of the
volume card simultaneously. This code handles all the functions of your system except for the
bargraph and the Volume Preset button. These are discussed in Using Levels on page 44.

Level Keywords

Level keywords that you can use in the Axcess program are described below:
Level Keywords
SEND_LEVEL
CREATE_LEVEL
DEFINE_CONNECT_LEVEL All level connections are listed underneath the DEFINE_CONNECT_LEVEL
Axcess Programming Language
Sends a value to a specific level of a specific Axcess device.
Syntax:
SEND_LEVEL device, level number, variable
Reads a level from an Axcess device that supports levels.
Syntax:
CREATE_LEVEL device, level number, variable
CREATE_LEVEL requires three parameters:
• The device from which to read the level.
• The level of the device to read (some devices have many different levels).
• The variable in which to store the level.
This keyword creates an association between the specified level of the device
and the specified variable. During the execution of a program, Axcess continu-
ally updates the variable to contain the value of the level with which it is associ-
ated. Since this association only needs to be done once, CREATE_LEVEL is
only allowed to appear in the DEFINE_START section of a program.
header.
Syntax:
DEFINE_CONNECT_LEVEL (device 1, level number 1, device
2,level number 2, ... )
The section inside the parentheses represents a single connection. All levels
listed in the connection will follow each other. If any one level changes, all oth-
ers will change to match it. Any number of levels may be supported per con-
nection, and there is no limit to the number of connections. The best location
for this definition section is immediately following the DEFINE_VARIABLE sec-
tion.
(* VOLUME UP *)
(* VOLUME DOWN *)
(* VOLUME MUTE *)
Levels
43

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AXCESS CONTROL SYSTEM PROGRAM and is the answer not in the manual?

This manual is also suitable for:

Axcess

Table of Contents