AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual page 88

Programming language
Table of Contents

Advertisement

Waits and Timer Keywords
DEFINE_PROGRAM
PUSH[TP,8]
{
IF ([RELAY,RACK_POWER])
{
CANCEL_WAIT 'AMPS ON'
OFF[RELAY,AMP_POWER]
WAIT 1Ø 'SYSTEM OFF'
}
ELSE
{
CANCEL_WAIT 'SYSTEM OFF'
ON[RELAY, RACK_POWER]
WAIT 1Ø 'AMPS ON'
}
}
Notice the organization of the above set of statements. Here is a simplified outline of the structure
of this code:
PUSH[TP,8]
{
}
As shown in the outline, following the PUSH statement is a single IF...ELSE statement which has a
device-channel reference for its condition. In this case, Axcess checks that channel's status. If it is
on, Axcess evaluates the condition as true and executes the first compound statement. Otherwise
Axcess executes the compound statement following the ELSE.
The first compound statement, which is executed if the rack power is on, uses a WAIT to perform a
time-delayed power-down of the system. The first statement cancels the WAIT named AMPS ON
to stop any previous attempts to turn the amps on. The second statement inside the compound
statement turns off the amplifier relay. The next statement is a WAIT statement for 1 second,
followed by an OFF statement to the rack power relay. Axcess places this Wait, SYSTEM OFF, into
the wait list and continues with the program. Since these statements are part of an IF compound
statement, Axcess does not execute the ELSE's compound statement.
As Axcess continues to run, the WAIT is still in the wait list. After 1 second has elapsed, Axcess
will execute the statement immediately following the WAIT, which in this case turns off the rack
power. The corresponding WAIT is then taken out of the list.
The compound statement following the ELSE is similar to the one just described, but its functions
are slightly different. Axcess first turns on the rack power, waits 1 second, and then turns on the
amp power.
80
OFF[RELAY, RACK_POWER]
ON[RELAY,AMP_POWER]
IF (device-channel)
compound statement
ELSE
compound statement
(* POWER ON/OFF *)
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?

This manual is also suitable for:

Axcess

Table of Contents