COEmcyCnt
Description
This function returns the number of currently detected EMCY errors.
...
The following example calculates the current number of detected emergency events within the application of the CANopen node AppNode.End of topic
Code Block | ||
---|---|---|
| ||
CPU_INT16S emcy;
:
emcy = COEmcyCnt (&(AppNode.Emcy));
if (emcy < 0) {
/* error handling */
} else {
/* emcy holds number of detected emergencies */
}
: |