24.08.2013 Views

CANopen Manager / Slave Manual - esd electronics, Inc.

CANopen Manager / Slave Manual - esd electronics, Inc.

CANopen Manager / Slave Manual - esd electronics, Inc.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CANopen</strong>-<strong>Slave</strong><br />

Page 32 of 65<br />

these values is managed by the <strong>CANopen</strong> slave library.<br />

For multibyte data types the structure has to be initialized with a pointer to an<br />

application defined memory region, the length of this memory range and the<br />

length of the current string.<br />

Handler is the object event handler of this entry which is called by the <strong>CANopen</strong><br />

slave library to indicate data changes to the application. In comparison to<br />

canOpenInitDictionary() this handler indicates a timestamp in addition to the<br />

values which are indicated with the standard handler. Refer to chapter 4.6 for a<br />

detailed description of the data event handler.<br />

Return: 0 or an error code described in the appendix.<br />

canOpenReadDictionary()<br />

Name: canOpenReadDictionary() - reading a local directory entry<br />

Synopsis: int canOpenReadDictionary<br />

(<br />

HNODE HNode, /* handle of the <strong>CANopen</strong> node */<br />

unsigned short Index, /* index in the object directory */<br />

unsigned short Subindex, /* subindex of entry */<br />

void * Data /* pointer to data sink */<br />

)<br />

Description: This function reads an entry in the local object directory. It can be called in<br />

every node state.<br />

Index is the index in the object directory and subindex is the subindex.<br />

Data is a pointer to an application-memory area in which the data is stored. This<br />

memory range must have a size of at least 4 bytes. In numerical data data is a<br />

pointer to the data, in other data types it is a pointer to a pointer to the data.<br />

Return: 0 or an error code described in the appendix.<br />

Software <strong>Manual</strong> • Doc. No.: C.2002.21 / Rev. 2.2 <strong>CANopen</strong> <strong>Slave</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!