Combining Devices, Channels And Levels; Virtual Devices, Levels And Device/Channel Sets; Combining And Uncombining Devices; Combining And Uncombining Levels - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

NetLinx Programming Overview

Combining Devices, Channels and Levels

Axcess allows you to combine devices and levels within the
DEFINE_CONNECT_LEVEL
can combine functionality within mainline by stacking push and release statements. Stacking pushes
allows you the flexibility to conditionally change what elements of the program share functionality, but
the program can be more difficult to maintain over time than if the panels were combined using
DEFINE_COMBINE
NetLinx provides several new methods for combining the functionality of devices, channels, and levels.
Using
DEV
reduce the overall maintenance associated with stacking pushes; however, data sets are statically
implemented within the
sets in the

Virtual devices, levels and device/channel sets

One of the drawbacks to combining devices and levels in Axcess is the way the central controller
handled the first device in the combine list going online and offline. This resulted in unexpected device
behavior and inconsistent feedback.
NetLinx uses virtual devices. Virtual devices carry a device number ranging from 32,768 to 36,863, a
port number of 1, and a system number of 0. Virtual Devices are devices that cannot be taken off the bus.
By listing a virtual device as the first device in a
COMBINE_LEVELS
DEFINE_COMBINE

Combining and uncombining devices

NetLinx still recognizes the
however, once the
two functions:
UNCOMBINE_DEVICES
combined the combine list and
COMBINE_DEVICES
mainline or in assignment statements.
value of 0 or -1, depending on the success or failure of the operation. The first device in a
COMBINE_DEVICES
either a list of individual device numbers,
UNCOMBINE_DEVICES
should be a virtual device. The format for
COMBINE_DEVICES (<virtual device>, <device1>, <device2>...)
UNCOMBINE_DEVICES (<virtual device>)
Devices combined with
DEFINE_COMBINE
list as the first device in the list.

Combining and uncombining levels

The NetLinx functions
DEFINE_CONNECT_LEVEL
DEFINE_CONNECT_LEVEL
UNCOMBINE_LEVELS
are connected to each other. It is also recommended that a Virtual
set in the
DEVLEV
UNCOMBINE_LEVELS
28
sections. This method is static and is fixed when the program compiles. You
.
,
and
accomplishes the same thing as stacking pushes in Axcess, and it
DEVCHAN
DEVLEV
DEFINE_EVENT
are set and cannot change at run time.
DEFINE_EVENT
, or
COMBINE_CHANNELS
statements are eliminated.
DEFINE_COMBINE
section has been compiled it remains static. NetLinx introduces
DEFINE_COMBINE
and
COMBINE_DEVICES
dynamically change the devices combined together. When devices are
set lists are reevaluated and updated during run time.
DEV
and
UNCOMBINE_DEVICES
COMBINE_DEVICES
statement should be a virtual device. The devices, listed after the virtual device, are
statement requires only the first device in the
COMBINE_DEVICES
section. The central controller recognizes any input from the devices in the combine
COMBINE_LEVELS
section in Axcess. For compatibility with Axcess code, the
section is still valid. Like
can be used within events and mainline code to dynamically change what levels
COMBINE_LEVELS
is:
DEFINE_COMBINE
section. When the program compiles, the references to the data
DEFINE_COMBINE
statement, the abnormalities seen in Axcess
section. This section still operates as it did in Axcess;
.
UNCOMBINE_DEVICES
COMBINE_DEVICES
are used as stand-alone statements in an event,
and
UNCOMBINE_DEVICES
sets, or any combination of devices and
DEV
and
COMBINE_DEVICES
respond like devices combined using the
and
UNCOMBINE_LEVELS
COMBINE_DEVICES
DEVLEV
function. The format for
COMBINE_LEVELS
NetLinx Programming Language Reference Guide
and
,
,
COMBINE_DEVICES
and
will return a
sets. The
DEV
list, which
COMBINE_DEVICES
is:
UNCOMBINE_DEVICES
work similar to the
,
COMBINE_LEVELS
set be used as the first
and
and

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents