5 object description, Object description, 5object description) – BECKHOFF ET9300 User Manual
Page 45

Application Note ET9300
43
Example: Object name (Object Code ARRAY)
UCHAR ArrObjName[] = "Array Obj";
Example: Object name (Object Code RECORD)
UCHAR RecObjName[] = "Record Obj\000First Entry\000Second Entry\000Third
Entry\000\377";
7.5
Object description
The object description connects all
object characteristics in one type “TOBJECT” (structure
“OBJECT”). The member variables of OBJECT are listed in
Table 5.
Table 5: "TOBJECT" member variables
Member
Data type
Description
Prev Entry
struct OBJECT
Pointer to previous dictionary entry.
Only available if the object dictionary entries
are dynamic linked (STATIC_OBJECT_DIC
= 0).
Next Entry
struct OBJECT
Pointer to next dictionary entry.
Only available if the object dictionary entries
are dynamic linked (STATIC_OBJECT_DIC
= 0).
Index
unsigned 16 bit
Object index of the described object. The
object value depends on the type of
EtherCAT slave and object usage (7.6Index
Ranges)
ObjDesc
TSDOINFOOBJDESC (32 bit)
Data Type
unsigned 16 bit
Includes the data type index of the object.
(defined in [2] )
ObjFlags
unsigned 16 bit
Bit 0-7: Max Subindex (value of subindex 0)
Bit 8-15: Object Code (defined in [2] )
pEntryDesc
TSDOINFOENTRYDESC *
Pointer to object description. Defined in
“7.3Entry description”
pName
unsigned char *
Pointer to object name. Defined in
“7.4Object name”
pVarPtr
void *
Pointer to local memory. Defined in
“7.2Define local memory”
Read
Pointer to Read Function. The prototype is
listed below. This function will be called
when an SDO upload is received. If this
pointer is NULL the standard SDO upload
function is executed.
Prototype:
UINT8 ReadFunction (
UINT16 Index,
UINT8 Subindex,
UINT32 Size,
UINT16 MBXMEM * pData,
UINT8 bCompleteAccess )