Changing The State Of A Channel; Output Change Keywords - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Using Input and Output
Input Change Keywords (Cont.)
PUSH_DEVICE
RELEASE_DEVICE
PUSH_CHANNEL
RELEASE_CHANNEL

Changing the State of a Channel

The next series of keywords allows you to activate channels. This activation is called an output
change, which is a message to the output function of a channel. See FIG. 3.
FIG. 3 Keywords affecting output changes

Output Change Keywords

When you use an output change keyword to activate a channel in a device, the device starts the
operation associated with the channel. For instance, activating channel 5 on a relay card activates
relay number 5, whereas activating channel 5 on an infrared/serial card causes it to generate the
infrared pattern stored at location 5.
These keywords can be used in conjunction with variables. When a variable is activated with one of
these keywords, turning it ON gives it a value of 1, and turning it OFF gives it a value of Ø.
16
PUSH_DEVICE is a system variable containing the number of the device hav-
ing the channel that was just turned on due to an input change.
If a button for device T_PANEL was pressed, PUSH_DEVICE would be equal
to the device number of T_PANEL. This variable is set when a channel is
turned on, and it remains constant for one pass through mainline. If no channel
has been turned on, PUSH_DEVICE will contain Ø.
PUSH_DEVICE and RELEASE_DEVICE cannot both have a non-zero value
during the same pass through mainline. At least one of them will always be
zero.
RELEASE_DEVICE stores the number of the device containing the channel
whose button was most recently released.
If a button for device T_PANEL was released, RELEASE_DEVICE would be
equal to the device number of T_PANEL. This system variable is used in a pro-
gram in the same manner as PUSH_DEVICE. This variable will have the same
value for only one pass through the program.
PUSH_DEVICE and RELEASE_DEVICE cannot both have a non-zero value
during the same pass through mainline. At least one of them will always be
zero.
PUSH_CHANNEL is the same as PUSH_DEVICE, except that the channel
number that was most recently turned on is stored inside the variable.
PUSH_CHANNEL and RELEASE_CHANNEL cannot both have a non-zero
value during the same pass through mainline. At least one of them will always
be zero.
RELEASE_CHANNEL stores the channel whose button was most recently
released.
This system variable is used in a program in the same manner as
PUSH_CHANNEL.
PUSH_CHANNEL and RELEASE_CHANNEL cannot both have a non-zero
value during the same pass through mainline. At least one of them will always
be zero.
Axcess Programming Language

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Axcess

Table of Contents