ADDR_DATA

The ADDR_DATA structure is defined in <inc_path/toolkit.h> as:

typedef struct addr_data
{
   char  address[TOOLKIT_ADDR_LENGTH + 1];
   int   type;
   int   domain_index;
   int   domain_offset;
   int   addr_offset;                           /* RESERVED FOR GE INTELLIGENT PLATFORMS USE */
   int   point_type;
   int   elements;
   int   point_address_type;                    /* RESERVED FOR GE INTELLIGENT PLATFORMS USE */
   char  point_id[TOOLKIT_LONG_ID_LEN + 1 ];    /* RESERVED FOR GE INTELLIGENT PLATFORMS USE */
   char  scan_type;                             /* RESERVED FOR GE INTELLIGENT PLATFORMS USE */
   char  scan_rate;                             /* RESERVED FOR GE INTELLIGENT PLATFORMS USE */
   char  fullAddress[ADDR_LEN + 1];
   char  short_point_id[TOOLKIT_SHORT_POINT_ID_LEN + 1];
} ADDR_DATA;

Where:

address is the ASCII representation of the address.

type is the type of addressing used. Valid values are:

TOOLKIT_STD_ADDR (standard addressing)

TOOLKIT_USER_DEFINED_ADDR (custom addressing)

domain_index is the domain index of the start address.

For diagnostic data, valid values for domain_index are:

100 Protocol diagnostic bits
101 Protocol diagnostic bytes
102 Protocol diagnostic words
104 Protocol diagnostic double words
108 Protocol diagnostic 8-bytes

domain_offset is the domain offset of the start address.

addr_offset is reserved for GE Intelligent Platforms use.

point_type is the point data type. The standard CIMPLICITY point types supported by the Device Communications Toolkit are:

TOOLKIT_BOOLEAN           0       /* POINT TYPE IS DIGITAL         */
TOOLKIT_BITSTRING         1       /* POINT TYPE IS BITSTRING       */
TOOLKIT_OCTETSTRING       2       /* POINT TYPE OCTETSTRING        */
TOOLKIT_TEXTPOINT         3       /* POINT TYPE TEXTSTRING         */
TOOLKIT_UNSIGNED_ANALOG8  4       /* POINT TYPE UNSIGNED ANALOG 8  */
TOOLKIT_UNSIGNED_ANALOG16 5       /* POINT TYPE UNSIGNED ANALOG 16 */
TOOLKIT_UNSIGNED_ANALOG32 6       /* POINT TYPE UNSIGNED ANALOG 32 */
TOOLKIT_ANALOG8           7       /* POINT TYPE SIGNED   ANALOG 8  */
TOOLKIT_ANALOG16          8       /* POINT TYPE SIGNED   ANALOG 16 */
TOOLKIT_ANALOG32          9       /* POINT TYPE SIGNED   ANALOG 32 */
TOOLKIT_FLOATINGPOINT     10      /* POINT TYPE FLOATING POINT     */
TOOLKIT_UNSIGNED_ANALOG64 13      /* POINT TYPE UNSIGNED ANALOG 64 */
TOOLKIT_ANALOG64          14      /* POINT TYPE ANALOG 64 */
 
short_point_id – is reserved for GE Intelligent Platforms use.

elements is the number of point elements.

point_address_type is reserved for GE Intelligent Platforms use.

point_id is reserved for GE Intelligent Platforms use.

scan_type is reserved for GE Intelligent Platforms use.

scan_rate is reserved for GE Intelligent Platforms use.

full_address is the ASCII representation of the address to be used if the device supports addresses up to 256 characters, and support.use_long_addresses is set to TOOLKIT_YES.