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 #133 background imageLoading...
Page #133 background image
Reserved Identifiers
117
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
DEVICE_INFO NetLinx stores information, such as manufacturer, device name and device ID,
for each device in the system. The DEVICE_INFO keyword allows a program-
mer to access all available information for any device. If the device does not
exist in the system, a Device ID of zero is returned. This keyword is usually
used to determine the firmware version of a device in the system.
DEVICE_INFO(DEV Device, DEV_INFO_STRUCT Info)
Parameters:
• Device: The device to query.
• Info: A DEV_INFO_STRUCT variable to populate with the device information.
Result:
DEVICE_INFO does not return a result. However, if the DEVICE_INFO call is
successful, the DEVICE_ID element of the structure will be non-zero. If
DEVICE_ID is zero, the structure contains no useful information.
The DEV_INFO_STRUCT contains the following information:
• Info. MANUFACTURER_STRING - A string identifying the manufacturer of the
device.
• Info. MANUFACTURER - A integer identifying the manufacturer.
• Info. DEVICE_ID_STRING - A string description/model number for the
specified device. This is the same information returned by the
DEVICE_ID_STRING keyword.
• Info. DEVICE_ID - A unique ID number identifying its device type, such as an
infrared/serial card or touch panel. This is the same information returned by
the DEVICE_ID keyword.
• Info. VERSION - A string identifying the firmware version of the device. This is
not available for AXLink devices.
• Info. FIRMWARE_ID - A unique ID number identifying the firmware for this
device. This is not available for AXLink devices.
• Info.SERIAL_NUMBER - A 16-character serial number of the specified
device. The serial number of every device is established when manufactured.
This is the same information returned by GET_SERIAL_NUMBER keyword.
This is not available for AXLink devices.
• Info. SOURCE_TYPE - An integer identifying how the device is connected to
the master. This value can be any of the following:
$00 (SOURCE_TYPE_NO_ADDRESS) - There is no source address.
$01 (SOURCE_TYPE_NEURON_ID) - The device is connected via ICSNet.
$02 (SOURCE_TYPE_IP_ADDRESS) - The device is connected via IP.
$03 (SOURCE_TYPE_AXLINK) - The device is connected via ICSNet.
$10 (SOURCE_TYPE_NEURON_SUBNODE_ICSP) - The device is connected
via ICSNet.
$11 (SOURCE_TYPE_NEURON_SUBNODE_PL) - The device is connected via
ICSNet.
$12 (SOURCE_TYPE_IP_SOCKET_ADDRESS) - This device is a NetLinx
socket.
$13 (SOURCE_TYPE_RS232) - This device is connected via RS232.
$20 (SOURCE_TYPE_INTERNAL) - This device is internal to the NetLinx
controlled.
• Info. SOURCE_STRING - A string identifying the source address. Normally,
this contains only useful information when Info.SOURCE_TYPE is $02 (IP), in
which case this contains the IP address of the device.

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