Channel Characteristics
26
Axcess Programming Language
Define_Latching
In this definition section, latching channels and variables are defined. A latching channel is a
channel that only changes its state once per PUSH. That is, if a latching channel is activated by a
TO keyword, it changes its state; when the TO is stopped by releasing the button that started it, the
channel does not go back to its previous state (like a momentary channel). The channel stays either
on or off. The status of a latching channel will reflect the on/off state of the channel. For example:
DEFINE_LATCHING
[RELAY,SYSTEM_POWER]
[VCR,PLAY]..[VCR,REWIND]
VAR1
In this example, the device-channel [RELAY,SYSTEM_POWER] is defined as latching, and the
variable VAR1 is defined as latching.
Define_Mutually_Exclusive
Members of a mutually exclusive set are placed in parentheses underneath the
DEFINE_MUTUALLY_EXCLUSIVE keyword. The double period (..) shortcut specifies a range
of device-channels to be defined as mutually exclusive. For example:
DEFINE_MUTUALLY_EXCLUSIVE
([RELAY,SCREEN_UP],[RELAY,SCREEN_DOWN])
([RELAY,DRAPE_OPEN]..[RELAY,DRAPE_STOP])
The first set defines two channels as mutually exclusive. The second set defines a range of channels
as mutually exclusive.
Define_Toggling
To make a channel toggling, it must be defined as both mutually exclusive and toggling. The
DEFINE_TOGGLING section is usually located directly after the
DEFINE_MUTUALLY_EXCLUSIVE section. Here is an example:
DEFINE_TOGGLING
[RELAY,SCREEN_UP]
[RELAY,SCREEN_DOWN]
Input and output changes occurring on non-combined panels will not affect combined panels, and
vice versa.
Summary of Contents for Axcess
Page 1: ...instruction manual Software Axcess Programming Language ...
Page 8: ...vi Axcess Programming Language Table of Contents ...
Page 12: ...Introduction 4 Axcess Programming Language ...
Page 22: ...Axcess Basics 14 Axcess Programming Language ...
Page 38: ...Channel Characteristics 30 Axcess Programming Language ...
Page 54: ...Levels 46 Axcess Programming Language ...
Page 62: ...Operators 54 Axcess Programming Language ...
Page 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Page 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Page 80: ...While Keywords 72 Axcess Programming Language ...
Page 86: ...Using Buffers 78 Axcess Programming Language ...
Page 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Page 102: ...Using Subroutines 94 Axcess Programming Language ...
Page 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Page 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Page 124: ...The External_Control Protocol 116 Axcess Programming Language ...