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);
Parameter | Description |
---|---|
emcy | pointer to the EMCY object |
silent | Disables 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); :