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