Operator Precedence; Identifiers; Devices - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Operator precedence

The table below shows the inherent precedence assigned to the operators. As noted in the chart, the
operator has the highest precedence in NetLinx systems but the lowest precedence in Axcess
(!)
systems. Axcess programs that are converted to NetLinx may exhibit logic problems if they use
statements that combine
resolving these issues.
Operator Precedence
Level Operators
1
2
3
4
5
6
7

Identifiers

An Identifier is a combination of letters, numbers, or underscores that represents a device, constant, or
variable. Identifier types include:

Devices

A device is any hardware component that can be connected to the NetLinx bus. Each device must be
assigned a unique number to identify it on the bus. While the Axcess language allows physical device
numbers in the range 0-255, the NetLinx language allows numbers in the range 0-32767. Device 0 refers
to the Master; numbers above 32767 are reserved for internal use.
NetLinx requires a Device:Port:System (D:P:S) specification where Axcess expected only a device
number. This D:P:S triplet can be expressed as a series of constants, variables separated by colons, or a
DEV structure. For example:
STRUCTURE DEV
{
}
A device specification in NetLinx can be expressed in one of two ways:
NetLinx Programming Language Reference Guide
and other operators. Contact AMX Technical Support for help
NOT (!)
!
~
*
/
%
<<
>>
+
-
<
<=
>
>=
=
&
|
^
&&
||
^^
• Devices
• Device Arrays
• Channel Arrays
INTEGER Number
// Device number
INTEGER Port
// Port on device
INTEGER System
// System device belongs to
Device Number: The compiler replaces the device number with an internally generated DEV
structure. This DEV structure contains the specified device Number. If the system and port
specifications are omitted (e.g. 128), system zero (indicating this system - the system
executing the code), and port one (indicating the first port), is assumed.
Associability
Left To Right
Left To Right
Left To Right
Left To Right
<> Left To Right
==
Left To Right
Left To Right
• Device-Channel Arrays
• Level Arrays
• Device-Level Arrays
Language Elements
NOT
41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents