Direct Assignment; Putting Input And Output Together - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Using Input and Output

Direct Assignment

Direct assignment is another method of generating an output change, that does not involve using
keywords. Any reference to a device-channel that does not have the keywords PUSH or RELEASE
preceding it is a reference to the output side of the channel. Thus, assigning a value directly to a
device-channel changes the output of the channel. For example:
[TP,1] = 1
This statement will send an output change to channel 1 of device TP, telling the channel to turn on
since Axcess interprets any non-zero number as ON. Putting this statement in mainline will set the
channel ON permanently. Using direct assignment is most appropriate in feedback statements. For
controlling devices, the keywords ON, OFF, and TO are more appropriate.

Putting Input and Output Together

Combining input and output changes into one statement is the basis of most Axcess programming.
Now you have the tools to write the code that will accomplish this. On your touch panel, you will
set buttons 1-5 to activate the screen and drape functions. Here is the first section of program code:
DEFINE_PROGRAM
PUSH[TP,1]
TO[RELAY,SCREEN_UP]
PUSH[TP,2]
TO[RELAY,SCREEN_DN]
PUSH[TP,3]
TO[RELAY,DRAPES_OPEN]
PUSH[TP,4]
TO[RELAY,DRAPES_CLOSE]
PUSH[TP,5]
TO[RELAY,DRAPES_STOP]
In this code, there are actually five separate, but similar statements. In each statement, there is the
keyword PUSH followed by a device-channel reference, in this case [TP,1]. This tells Axcess to
look here if channel 1 on device 128 receives an input change from OFF to ON. If such an input
change occurs, the corresponding TO statement executes.
The TO statement tells Axcess that for as long as channel 1 on device 128 is activated, turn on
device 1, channel 1.
Remember, TP is a device definition for device 128, and RELAY is a constant with a value of 1, as
is SCREEN_UP. Always be precise with the syntax. Use numbers for input channels, and device
names for devices, as shown in the example above.
18
(* SCREEN UP *)
(* SCREEN DOWN *)
(* DRAPES OPEN *)
(* DRAPES CLOSE *)
(* DRAPES STOP *)
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