Combining And Uncombining Channels; String Comparisons; Axcess Code - String Comparison; Netlinx Code - String Comparison - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

COMBINE_LEVELS (<virtual DEVLEV>, <DEVLEV1>, <DEVLEV2>...)
UNCOMBINE_LEVELS (<virtual DEVLEV>)
structures defined within the
DEVLEV
one dimension of a
list.

Combining and uncombining channels

Combining
individual channel on a virtual device to one or more channels on another device (or devices). The
format for
COMBINE_CHANNELS (<virtual DEVCHAN>, <DEVCHAN1[]>, <DEVCHAN2[]>...)
UNCOMBINE_CHANNELS (<virtual DEVCHAN>)

String Comparisons

While in Axcess it is possible to perform a string comparison using the '
COMPARE_STRING

Axcess code - string comparison

IF (TIME = '12:00:??')
(* Do something at noon - evaluation is valid for an entire minute *)

Netlinx code - string comparison

IF (COMPARE_STRING(TIME,''12:00:??'))
// Do something at noon - evaluation is valid for an entire minute

Modules

There are two ways to reuse code in different Axcess programs: Include Files and System Calls.
Modules are unique to NetLinx. Like Include files, the code within the Module is not limited to the
DEFINE_CALL
events, and mainline. Modules are passed parameters that are used to adapt the information and variables
used within the Module (similar to System calls).
Modules are similar to programs loaded into AXB-232++ boxes. They operate as stand-alone programs
inside the NetLinx program. Interaction between the Module and the NetLinx Program is done through
User Interface (UI) pushes and releases, turning virtual device channels on and off, and passing variables
and arrays to the Module. The code in the Module is local, or is restricted to use only within the Module.
This means that functions and subroutines defined with Module cannot be directly used with the main
NetLinx code.
NetLinx Programming Language Reference Guide
COMBINE_LEVELS
array. Any reference to the levels is handled through the first device in the
DEVLEV
s is unique to NetLinx. The NetLinx function
DEVCHAN
and
COMBINE_CHANNELS
UNCOMBINE_CHANNELS
function to be used instead.
Include files redirect the compiler to files with an .AXI extension. The .AXI files can contain
the same type of information present within an Axcess program. All data is accessible both
within the Include file and within the primary Axcess program. Include files are limited
because they are static. Mainline statements within the Include file cannot be adapted from
program to program without altering the Include file. To update the Include files in a program,
the entire program must be compiled and loaded.
System calls are external subroutines that can be instanced and referenced in the main
program. Like
DEFINE_CALL
System Call to the needs of different programs. System Calls have been one of the primary
tools for creating standardized reusable blocks of code. To update the System Calls within a
program, the entire program must be compiled and loaded.
section. Modules can contain variable definitions, functions, subroutines, startup code,
are either individual
COMBINE_CHANNELS
is:
subroutines, System Calls can pass parameters to adapt the
NetLinx Programming Overview
structures or
DEVLEV
combines an
' wildcard, Netlinx requires the
?
29

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents