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)
Содержание NETLINX PROGRAMMING LANGUAGE
Страница 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Страница 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Страница 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Страница 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Страница 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Страница 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Страница 114: ...Mainline 98 NetLinx Programming Language Reference Guide FIG 1 Message and Mainline Processing in the NetLinx System...
Страница 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Страница 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Страница 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Страница 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...