COEmcyClr()

This function checks the current error state and updates the object dictionary.

Description

The EMCY message is transmitted, if the error was previously detected.

Prototype

void COEmcyClr(CO_EMCY *emcy, uint8_t err);

Arguments

Parameter Description
emcy pointer to EMCY object
err error code identifier in application EMCY table

Returned Value

  • none

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.