COEmcyReset

Description

This function clears all EMCY errors. The EMCY message transmission can be suppressed by setting the parameter silent to 1.

Prototype

void COEmcyReset(CO_EMCY *emcy, CPU_INT08U silent);

ParameterDescription
emcypointer to the EMCY object
silentDisables the EMCY message transmission for the state changes, made by this function

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 clears all detected emergency within the application of the CANopen node AppNode. The corresponding emergency state change messages will be sent.


    :
    COEmcyReset (&(AppNode.Emcy), 0);
    :