Set_Length_Array; Set_Length_String; Set_Outdoor_Temperature; Set_Pulse_Time - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Reserved Identifiers
Keywords & Run-Time Library Functions (Cont.)
SET_IP_ADDRESS (Cont.)

SET_LENGTH_ARRAY

SET_LENGTH_STRING

SET_OUTDOOR_
TEMPERATURE

SET_PULSE_TIME

150
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.
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)
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)
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
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 Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents