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 />

Dictionary entries of the data type OBJ_ARRAY and OBJ_RECORD store the<br />

number of sub-entries in the format UNSIGNED8 as an RO entry at subindex 0.<br />

For arrays this entry is created automatically. For records this isn’t the case for<br />

historical reasons, which means the application has to define the entry at subindex<br />

0 as TYP_UINT8 in the descriptor string to be compatible with the current<br />

revision of the specification /1/.<br />

Example for a single value or array descriptor of data type INTEGER32:<br />

const char *DescrSimple[] = {TYP_INT32, 0};<br />

Example for a record descriptor of a INTEGER32 at sub-index 1 and an<br />

INTEGER16 at sub-index 2. The UNSIGNED8 entry at sub-index 0 is also<br />

defined:<br />

const char *DescrComplex[] = {TYP_UINT8, TYP_INT32, TYP_INT16, 0}<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!