AMX NETLINX PROGRAMMING LANGUAGE Manual page 32

Programming language
Table of Contents

Advertisement

NetLinx Programming Overview
The actual instancing of the structure is unique to the
structure's elements with colons (:) instead of enclosing the structure with braces
elements with commas (
DEV PANEL_A = 128:1:0
DEV PANEL_B = {128, 1, 0}
Using the
STRUCTURE DEVCHAN
{
}
{
}
DEVCHAN
DEV PANEL_A = 192:1:0
DEV PANEL_B = 129:1:0
DEVCHAN BUTTON_A = { PANEL_A, 1 }
DEVCHAN BUTTON_B = { 128:1:0, 2 }
DEVLEV LEVEL_1 = { PANEL_A, 1 }
DEVLEV LEVEL_2 = { 128:1:0, 2 }
,
DEV
DEVCHAN
DEVCHAN
DEV PANEL_GROUP1[] = { 128:1:0, 129:1:0, 130:1:0 }
DEV MSP_GROUP[5] = { MSP1, MSP2, MSP3 }
DEVCHAN PRESET1_BUTTONS[5] = { {TP1, 21}, {MSP1, 1}, {134:1:0, 1} }
DEVLEV VOL1_LEVEL[] = { {TP1, 1}, {MSP1, 1}, {192:1:0, 1} }
You can use the structures and arrays of the structures within many commands and situations where you
would use a device number, a device and channel combination, or a device and level combination. These
data sets allow you to combine devices, devices and channels, and devices and levels without using the
DEFINE_COMBINE
certain pages of panels or to combine panels under certain conditions. In Axcess, once the panels were
combined you were locked into that system configuration.
Instead of writing the following statements:
PUSH[MSP1, 1]
PUSH[MSP2, 1]
PUSH[MSP3, 1]
[RELAY, 1] = ![RELAY, 1]
[MSP1, 1] = [RELAY, 1]
[MSP2, 1] = [RELAY, 1]
[MSP3, 1] = [RELAY, 1]
You can use device sets or channel sets to accomplish the same functionality:
16
). For example:
,
structure, you create the structures
DEV
DEV DEVICE
INTEGER CHANNEL
STRUCTURE DEVLEV
DEV DEVICE
INTEGER LEVEL
and
instance and initialize similarly to other NetLinx structures:
DEVLEV
, and
are structures built into the NetLinx language. You can do more with
DEVLEV
, and
than you could with structures you create within the code.
DEVLEV
or
DEFINE_CONNECT_LEVEL
structure because you separate the individual
DEV
(* correct *)
(* wrong *)
and
DEVCHAN
DEVLEV
sections. This gives you the ability to combine
NetLinx Programming Language Reference Guide
and separating the
{}
like this:
DEV
,

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents