COEmcyGet
Description
This function returns the current EMCY error status.
...
The following example reads the current status of a possible detected emergency event APP_EMCY.2
within the application of the CANopen node AppNode.
Code Block | ||
---|---|---|
| ||
CPU_INT16S warning; : warning = COEmcyGet (&(AppNode.Emcy), APP_EMCY_2); if (warning < 0) { /* error handling */ } else { /* warning holds current emergency status */ } : |
Note: The emergency identifier APP_EMCY.2
must be defined within the application specific configuration. See CANopen Config Manual for details.