Using Levels; Reading Levels; Making A Preset; Using Bargraphs - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Levels

Using Levels

Reading Levels

When a level is associated with a variable using CREATE_LEVEL, Axcess continually keeps the
variable updated with the value of that level. As the user ramps the volume level up, the value in
VOL_LEVEL increases. When the volume is ramped up to the maximum, VOL_LEVEL will
contain 255, and when the volume is muted, the variable will contain Ø.
The AXC-VOL volume card remembers the last level when it is muted so that it can un-mute to
that same level.

Making a preset

A preset is a level stored for later retrieval. In this section, you will give the Volume Preset button a
dual role. If the button is pressed and held for two seconds, the current level of the volume card is
stored in the variable PRESET. If the button is pressed for less than two seconds, it sends a
command to the volume card to set the level of the card to the previously saved level in
VOL_PRESET. Here is the code:
DEFINE_PROGRAM
PUSH[TP,2Ø]
{
OFF[VOLUME,VOL_MUTE]
WAIT 2Ø 'STORE VOL PRESET'
VOL_PRESET = VOL_LEVEL
}
RELEASE[TP,2Ø]
{
CANCEL_WAIT 'STORE VOL PRESET'
SEND_COMMAND VOLUME,"'PØL',ITOA(VOL_PRESET)"
}
[TP,2Ø] = (VOL_LEVEL = VOL_PRESET)
The PUSH of the Preset button turns off the mute and starts a two second wait. When the wait
expires, the current volume level (VOL_LEVEL) is stored in the variable VOL_PRESET. On the
release of the button, the WAIT to store the VOL_PRESET is canceled and the current value of the
Preset is sent to the volume card to be recalled.
The feedback for the Volume Preset button lights when the current volume level equals the value of
the PRESET variable.

Using bargraphs

To continuously display the current level of the volume card on the Touch Panel's bargraph, use the
SEND_LEVEL keyword. Here is the syntax:
SEND_LEVEL device, level number, value
The SEND_LEVEL keyword is used to update a level in a device. Assume your bargraph display
on the Touch Panel has level number 1. To keep the display updated continually, add the following
line to your program, on mainline:
SEND_LEVEL TP, 1, VOL_LEVEL
44
(* VOLUME PRESET *)
(* VOLUME PRESET *)
Axcess Programming Language

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Axcess

Table of Contents