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;

   int   point_type;

   int   elements;

   int   point_address_type;

   char  point_id[ TOOLKIT_POINT_ID_LEN + 1 ];

   char  scan_type;

   char  scan_rate;

   char  fullAddress[ADDR_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 Fanuc use.

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

TOOLKIT_BOOLEAN

TOOLKIT_BITSTRING

TOOLKIT_OCTETSTRING

TOOLKIT_TEXTPOINT

TOOLKIT_UNSIGNED_ANALOG8

TOOLKIT_UNSIGNED_ANALOG16

TOOLKIT_UNSIGNED_ANALOG32

TOOLKIT_ANALOG8

TOOLKIT_ANALOG16

TOOLKIT_ANALOG32

TOOLKIT_FLOATINGPOINT

elements is the number of point elements.

point_address_type is reserved for GE Fanuc use.

point_id is reserved for GE Fanuc use.

scan_type is reserved for GE Fanuc use.

scan_rate is reserved for GE Fanuc 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.

More information

Device Communications Toolkit structures.