NMT (Network Management) is the “main switch and state manager” for CANopen devices. Every CANopen device must follow this state machine, which defines its operating mode and the messages it may send and receive.
In this example, the TMCM-6212 motor drive passes through five operating stages after power-up.
Figure 1. NMT network management. (Image source: ADI)
The Five States
- Initialization: The device enters this state after power-up or reset, performs a hardware self-test, and initializes internal parameters. After the self-test, it automatically proceeds to
ID/Boot-Up. - ID/Boot-Up: After completing its self-test, the device sends a Boot-Up message on the CAN bus to tell the PLC or host computer, “I have started and am ready.” It then automatically enters
Pre-Operational. - Pre-Operational: The device can use SDOs to read and write drive parameters, heartbeat and emergency messages, and SYNC signals. PDO real-time data is not available in this state. In practice, drive parameters are configured here after power-up. An NMT start command switches the device to
Operational. - Operational: The device is fully active, and high-speed PDO messages are enabled. The PLC and drive can exchange target position, actual position, velocity, and other motion data in real time while the motor operates. A stop command can return the device to
Pre-OperationalorStopped. - Stopped: The device has been forced to stop by an NMT command. It can receive only NMT management commands; SDOs and PDOs are disabled, and the motor stops.
Meaning of the Return Arrows
The many return arrows in the state diagram indicate that states can be reset or changed at any time:
- A reset command from any state returns the device directly to
Initialization. OperationalandStoppedcan return toPre-Operational.Pre-OperationalandOperationalcan enterStopped.
What Each State Allows
| Communication object | Initialization | Pre-Operational | Operational | Stopped |
|---|---|---|---|---|
| Boot-Up message | ● | |||
| SDO (Service Data Object) | ● | ● | ||
| Emergency message | ● | ● | ||
| SYNC/time synchronization | ● | ● | ||
| Heartbeat/Node Guarding | ● | ● | ● | |
| PDO (Process Data Object) | ● |
Table 1. Communication objects available in each NMT state. (Source: ADI)
Engineering tip: Heartbeat monitoring — Each node periodically sends a heartbeat message, typically at a millisecond-scale interval configured through object 1017h, to indicate that it is still operating. A client such as a PLC or host computer checks these messages to determine whether each device is online and communicating correctly. CANopen also provides Node Guarding for monitoring node communication. The TMCM-6212 used in this series relies on heartbeat monitoring.
Summary
The NMT state machine is the overall operating-mode controller for the drive: power-up self-test, notify the master that the device is online, pre-operational parameter configuration, operational motor control, and stopping. The device can switch between modes as required and can be reset to start the sequence again.
Related products:
- Motor drive: ADI TMCM-6212
- Stepper motor: ADI QSH4218-35-10-027
