Multiple Waits - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Multiple Waits

At this point, the System Power button completes two events, with a delay in between. In many
cases, you may want to initiate a series of several events by pressing one button.
In this section, you will make the System Power button accomplish several more things when the
power is turned on and off. For example, when the power is turned on, you may want a series of
timed events to take place. First, the rack power comes on. Simultaneously, the screen starts to
come down and the drapes start to close. 1 second later, the amp power comes on, just like before.
After a 20 second delay, the Medium lighting scene is selected.
When the power is turned off, a different sequence happens. First, the amp power is turned off,
lights go to the Full setting, the screen is raised, and the drapes are opened. After a 1 second delay,
the rack power turns off. 2 minutes later, the lights go to the Off setting.
Here is the code for the System Power Push for the scenario described above:
DEFINE_PROGRAM
PUSH[TP,8]
{
IF ([RELAY,SYSTEM_POWER])
{
CANCEL_WAIT 'AMPS ON'
CANCEL_WAIT 'LIGHTS TO MED'
OFF[RELAY,AMP_POWER]
PULSE[LIGHTS,LIGHT_FULL]
PULSE[RELAY,SCREEN_UP]
PULSE[RELAY,DRAPES_OPEN]
WAIT 1Ø 'SYSTEM OFF'
WAIT 2ØØ 'LIGHTS OFF'
}
ELSE
{
CANCEL_WAIT 'SYSTEM OFF'
CANCEL_WAIT 'LIGHTS OFF'
ON[RELAY,SYSTEM_POWER]
PULSE[RELAY,SCREEN_DN]
PULSE[RELAY,DRAPES_CLOSE]
WAIT 1Ø 'AMPS ON'
WAIT 2ØØ 'LIGHTS TO MED'
}
}
Notice the use of the PULSE keyword. This is done, as you may recall, because TO cannot be used
inside a WAIT. Since the lighting buttons are momentary, you use a PULSE to actuate the relay for
just a moment.
Axcess Programmnig Language
OFF[RELAY,SYSTEM_POWER]
PULSE[LIGHTS,LIGHT_OFF]
ON[RELAY,AMP_POWER]
PULSE[LIGHTS,LIGHT_MED]
(* POWER ON/OFF *)
Waits and Timer Keywords
81

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