EasyManuals Logo

AMX NETLINX PROGRAMMING LANGUAGE User Manual

AMX NETLINX PROGRAMMING LANGUAGE
246 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #167 background imageLoading...
Page #167 background image
Reserved Identifiers
151
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
SET_SYSTEM_NUMBER Sets the system number of the NetLinx master. The new system number will
take effect after the system has been rebooted.
SLONG SET_SYSTEM_NUMBER (INTEGER newSystemNum)
Parameters:
• newSystemNum: Desired new system number
Result:
• 0: Operation was successful.
• -1: System number is invalid.
• -2: Assignment of system number causes conflict.
This function only affects the master's system number, not the system number
of any attached devices. Therefore, any devices with pre-programmed system
numbers will no longer communicate with this master.
SET_SYSTEM_NUMBER (3) // set new system number
SET_TIMER This keyword resets the system timer. The system timer counts up in 1/10th
second units. The value passed to this function (TIME) may be any unsigned
32-bit variable or constant. This provides a timer with a maximum range of over
13 years.
SET_TIMER (TIME)
Note: The system timer is reset to zero on power up.
SET_VIRTUAL_CHANNEL_
COUNT
This function lets the programmer override the default number of channels that
a virtual device port maintains. By default every virtual device port maintains
the state of channels 1-255 inclusive.
SET_VIRTUAL_CHANNEL_COUNT(DEV Device, INTEGER Count)
Parameters:
• Device: The virtual device port to modify.
• Count: The number of channels that the specified virtual device port should
maintain.
SET_VIRTUAL_CHANNEL_COUNT (dvVirtual,1024) // 1024
channels
SET_VIRTUAL_LEVEL_
COUNT
This function lets the programmer override the default number of levels that a
virtual device port maintains. By default, every virtual device port maintains the
state of levels 1-8 inclusive.
SET_VIRTUAL_LEVEL_COUNT (DEV Device,INTEGER Count)
Parameters:
• Device: The virtual device port to modify.
• Count: The number of levels that the specified virtual device port should
maintain.
SET_VIRTUAL_LEVEL_COUNT (dvVirtual,10) // make it have 10
levels
SET_VIRTUAL_PORT_
COUNT
This function lets the programmer override the default number of ports that a
virtual device maintains. By default every virtual device maintains the state of a
single port (port 1).
SET_VIRTUAL_PORT_COUNT(DEV Device, INTEGER Count)
Parameters:
• Device: The virtual device to modify.
• Count: The number of ports that the specified virtual device should maintain.
SET_VIRTUAL_PORT_COUNT (dvVirtual,2) // 2 ports
SINTEGER This keyword defines an intrinsic data type representing a 16-bit signed
integer.
SLONG This keyword defines an intrinsic data type representing a 32-bit signed
integer.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AMX NETLINX PROGRAMMING LANGUAGE and is the answer not in the manual?

AMX NETLINX PROGRAMMING LANGUAGE Specifications

General IconGeneral
BrandAMX
ModelNETLINX PROGRAMMING LANGUAGE
CategorySoftware
LanguageEnglish

Related product manuals