Versions Compared

Key

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

...

The following example shows how to perform operations only in operational mode of the CANopen node AppNode:


Code Block
languagecpp
    CO_MODE mode;
    :
    mode = CONmtGetMode (&(AppNode.Nmt));
    if (mode == CO_OPERATIONAL) {
        /* perform actions in operational mode */
    }
    :