Device-Level Arrays - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Language Elements
A
DEVCHAN
ways:
In either case, the number of elements in the initialization array determines the effective length of the
array. That value can be determined at run-time by calling
available for a
The individual elements of a
,
Dev2
Chan2
third element in the device-channel array,
Furthermore, since a
referenced using the dot operator notation such as
A
DEVCHAN
result of providing a range of targets for the command or instruction where it is used. This implies an
alternate form for the following commands:
The index of the last member of the array for which an event notification was received can be determined
by calling
is referenced to in a particular notification message.

Device-level arrays

A device-level array (
internally as a
device with a field representing the level number.
STRUCTURE DEVLEV
{
DEV
INTEGER
}
The first component of a device-level pair (
can be specified as either a single device number, a constant
Each device specified in a device-level pair should be defined in the
second component is the level number on the device. The level number is expressed as an integer
constant.
A
DEVLEV
ways:
44
array is declared in the
DEFINE_VARIABLE
Declare a
array whose maximum length is determined by the number of elements in
DEVCHAN
the initialization array on the right-hand side, as shown below:
DEVCHAN[ ] DCSName
Use
to specify the maximum length of the array, as shown below:
MAXLEN
DEVCHAN[ ] DCSName[MAXLEN] = {{Dev1,Chan1}, {Dev2,Chan2}, ...}
array can be determined by calling
DEVCHAN[ ]
DEVCHAN
, etc.) or by using array notation with the device-channel array name. For example, the
array is an array of
DEVCHAN
array can be used anywhere a
Button[(DEVCHAN)]
DO_PUSH[(DEVCHAN)]
DO_RELEASE[(DEVCHAN)]
OFF[(DEVCHAN)]
ON[(DEVCHAN)]
. This is useful for determining which device and channel in an array
GET_LAST(MyDCSet)
array) is an array of device-level pairs. Each element is represented
DEVLEV
structure. This structure combines the fields of a
DEVLEV
// Device
// Level
array is declared in the
DEFINE_VARIABLE
or
DEFINE_CONSTANT
= {{Dev1,Chan1}, {Dev2,Chan2}, ...}
LENGTH_ARRAY
MAX_LENGTH_ARRAY
array can be referenced by their defined names (
, would be referenced by
MyDCSet
structures,
DEVCHAN
MyDCSet[3].Device
specification is required with the
[Device, Channel]
PULSE[(DEVCHAN)]
PUSH[(DEVCHAN)]
RELEASE[(DEVCHAN)]
TO[(DEVCHAN)]
) represents the device number, port, and system. It
Device
structure or as a D:P:S specification.
DEV
DEFINE_DEVICE
or
DEFINE_CONSTANT
NetLinx Programming Language Reference Guide
section in one of two
. The maximum length
.
,
Dev1
Chan1
.
MyDCSet[3]
members can be
DEVCHAN
or
MyDCSet[1].Channel
structure representing the
DEV
section. The
section in one of two
,
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents