Define_Constant - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Axcess Basics
DEFINE_DEVICE
VCR
CD
CASS
RELAY
LIGHTS
VPROJ
TP
From this point on, you can reference device 1 with the name VCR, device 2 with the name CD,
and so on.
The Push window at the bottom of the screen is changed. If the devices in the previous example are
on AXlink, Axcess modifies the window to use the given device name instead of the device's
number. This provides a quick reference tool for future programming.
There is one more reason for using DEFINE_DEVICE. When you compare devices using the
Compare Current Devices... option in the Diagnostics menu, Axcess checks all the devices listed
under DEFINE_DEVICE. Next, it checks which devices are on AXlink. Axcess then tells you the
devices that you did not define in your program. These devices cannot be used or referenced until
they are defined, so check that all devices are under this heading.
AMX encourages the practice of starting control panel device numbers at device 128. This includes
radio frequency (RF) receivers, touch panels, softwire panels, and all other control panels and
receivers.

DEFINE_CONSTANT

Constants are identifiers whose values remain unchanged throughout the entire program. The
process of defining them is very similar to defining devices. Assigning a value to an identifier in
this section locks that value to the identifier for the entire program, making it possible to use
descriptive names instead of just numbers in your program.
In your system, the VCR, CD player, and cassette deck devices have channels that activate the
various transport functions, such as Play and Stop. As a general rule, Play is usually channel 1 and
Stop is channel 2. You could define these channel numbers as constants in your program to make it
more readable.
DEFINE_CONSTANT
PLAY
STOP
PAUSE
FFWD
REW
FSRCH
RSRCH
REC
SCREEN_UP
SCREEN_DN
SYSTEM_POWER
DRAPES_OPEN
DRAPES_CLOSE
DRAPES_STOP
AMP_POWER
10
= 1
(* AXC-IR/S: VCR *)
= 2
(* AXC-IR/S: CD PLAYER *)
= 3
(* AXC-REL8: VCR *)
= 4
(* AXC-REL8: SCREENS AND DRAPES *)
= 5
(* AXC-REL8: LOW VOLTAGE LIGHTING *)
= 6
(* AXC-IR/S: PROJECTOR *)
= 128
(* AXU-CVA COLOR VIDEO PANEL *)
= 1
(* VCR, CD AND CASS CONSTANTS *)
= 2
= 3
= 4
= 5
= 6
= 7
= 8
= 1
(* RELAY CONSTANTS *)
= 2
= 3
= 4
= 5
= 6
= 7
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