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.