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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Page 44 of 65<br />

canOpenResetError()<br />

Name: canOpenResetError() - resetting an error<br />

Synopsis: int canOpenWritePDO<br />

(<br />

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

unsigned short ErrorRegister, /* flags in error register */<br />

unsigned char * ErrorField /* pointer to error field */<br />

)<br />

Description: An error of the <strong>CANopen</strong> slave is reseted. An EMCY object with ErrorReset<br />

in the error-code field is transmitted. If this was the last error, the node changes<br />

from error state into error-free state.<br />

ErrorRegister is a mask of flags to reset in the error register (directory entry<br />

0x1001). Possible values are:<br />

ERROR_GENERIC ERROR_CURRENT<br />

ERROR_VOLTAGE ERROR_TEMPERATURE<br />

ERROR_COMMUNICATION ERROR_DEVICE_SPECIFIC<br />

ERROR_MANUFACTURER_SPECIFIC<br />

ErrorField is a pointer to a 5-byte-long character chain which contains an<br />

application-specific state description and is transmitted by means of the EMCY<br />

object.<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!