Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example calculates the current number of detected emergency events within the application of the CANopen node AppNode.


Code Block
languagecpp
    CPU_INT16S emcy;
    :
    emcy = COEmcyCnt (&(AppNode.Emcy));
    if (emcy < 0) {
        /* error handling */
    } else {
        /* emcy holds number of detected emergencies */
    }
    :