NetLinx Programming Overview
5
NetLinx Programming Language Reference Guide
DEFINE_VARIABLES
Axcess Language NetLinx Language
Axcess supports 5 types of variables:
• Integer Variables (default) can contain a value
from 0 to 65,535.
• Character Arrays are single element arrays, in
which each element has a value from 0 to 255 with
a maximum of 255 elements
• 2-Dimensional Arrays equate to a maximum of
255 single element character arrays. Each
element can have a value from 0 to 255.
• Integer Arrays are single element arrays, in which
each element can contain a value from 0 to 65,535
with a maximum of 255 elements
• 2-Dimensional Integer Arrays may have a
maximum value of 65,535.
Variables are Non-Volatile (the variable loses its
value when the program is loaded, but retains its
value if the controller is reset).
DEFINE_VARIABLE
VALUE
ARRAY[3]
ARRAY_2DIM[4][6]
INTEGER INT_ARRAY[6]
NetLinx substantially increased the number of supported
variable types. In addition to more data types, NetLinx
also supports Sets, Structures, and Multi-dimensional
arrays.
Arrays default to Character Arrays. Variables default to
Integer Variables. Variables default to Non-Volatile, but
can be set as Non-Volatile or Volatile (Volatile variables
are initialized when code is loaded or when the system
is reset).
DEFINE_VARIABLE
CHAR VALUE1
WIDECHAR BIGCHAR
INTEGER VALUE2
SINTEGER SIGNED1
LONG BIGVALUE
SLONG SIGNED2
FLOAT DECIMAL
DOUBLE VERYBIGVALUE
INTEGER ARRAY[3][3][3]
VOLATILE INTEGER RESET_VAR