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 #166 background imageLoading...
Page #166 background image
Reserved Identifiers
150
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
SET_IP_ADDRESS (Cont.) The following definitions exist for the Flags member of the
IP_ADDRESS_STRUCT structure.
CONSTANT CHAR IP_Addr_Flg_DHCP = 1 // Use DHCP
The Flags member is a bit field that may be used for several different
purposes. Each bit is defined below:
Differing configuration parameters may be obtained, depending upon the con-
figuration of the network DHCP server. It is possible that the DHCP server will
provide the host name, IP address, subnet mask, gateway, and even DNS
information. In a minimal configuration, the DHCP server will only supply the IP
address and subnet mask.
IP_ADDRESS_STRUCT IPAddressResult =
GET_IP_ADDRESS(0:0:0,IPAddress)
Note: For NetLinx Central Controllers, the "Host Name" can only consist of
alphanumeric characters.
SET_LENGTH_ARRAY This function sets the effective length of a dimension of an array.
Set_Length_Array (<type> Array[ ], LONG Len)
Parameters:
• <type>: May be any intrinsic or user-defined data type.
• Array: Array of any type
• Len: Value to assign as the length
SET_LENGTH_ARRAY(NumArray,5)
SET_LENGTH_STRING This function sets the length of a CHAR or WIDECHAR string. This function is
retained for compatibility with previous versions of Axcess. It provides the
same functionality as SET_LENGTH_ARRAY.
SET_LENGTH_STRING (CHAR STRING[ ], LONG Len)
SET_LENGTH_STRING (WIDECHAR STRING[ ], LONG Len)
Parameters:
• STRING: The input character string.
• Len: The new string length.
SET_LENGTH_STRING(STRING, 10)
SET_OUTDOOR_
TEMPERATURE
This function establishes the value for the outdoor temperature. This value is
broadcast to all devices periodically. At this time, only the PLK-DMS and PLK-
IMS take advantage of the outdoor temperature. A value of 32768 indicates
that no outdoor temperature is available.
SET_OUTDOOR_TEMPERATURE(INTEGER Temp)
Parameters:
• Temp: The outdoor temperature as it shall be displayed. It is up to the
programmer to provide the correct temperature scale whether it is Celsius or
Fahrenheit.
SET_OUTDOOR_TEMPERATURE (32) // show 32 degrees
SET_PULSE_TIME This function sets the PULSE time in 1/10th second units. The default PULSE
time is 5 (0.5 seconds).
SET_PULSE_TIME (TIME)

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