/
COEmcyClr
COEmcyClr
Description
This function checks the current error state and updates the object directory. The EMCY message is transmitted, if the error was previously detected.
Prototype
void COEmcyClr(CO_EMCY *emcy, CPU_INT08U err);
Parameter | Description |
---|---|
emcy | pointer to the EMCY object |
err | EMCY error identifier in User EMCY table |
Returned Value
none
Additional Information
This function can be removed from the CANopen device by disabling the emergency support with the configuration CO_EMCY.N
.
Example
The following example demonstrates the clearing of a possible detected emergency event APP_EMCY.2
within the application of the CANopen node AppNode.
: COEmcyClr (&(AppNode.Emcy), APP_EMCY_2); :
Note: The emergency identifier APP_EMCY.2
must be defined within the application specific configuration. See CANopen Config Manual for details.
, multiple selections available,
Related content
COEmcySet
COEmcySet
More like this
COEmcyReset
COEmcyReset
More like this
COEmcyGet
COEmcyGet
More like this
COEmcyCnt
COEmcyCnt
More like this
COEmcyHistReset
COEmcyHistReset
More like this
Managing Emergency Errors
Managing Emergency Errors
More like this