Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

This function returns the current CANopen NMT state machine mode.

Prototype

CO_MODE CONmtGetMode(CO_NMT *nmt);

ParameterDescription
nmt reference to NMT structure

Returned Value

>0     The current NMT mode

=0     An error is detected

Additional Information

The following table shows the possible values of the type CO.MODE:

ValueDescription
CO_INVALID Device in INVALID mode, e.g. not initialized
CO_INIT Device in INIT mode
CO_PREOP Device in PRE-OPERATIONAL mode
CO_OPERATIONAL Device in OPERATIONAL mode
CO_STOP Device in STOP mode

Example

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

  • No labels