CANopen-Industrial-Motor-Control---Why-PDOs-Are-Needed

Why Are PDOs Needed?

Although SDOs are reliable, they are too slow for continuous motion data. During motor operation, position and velocity must be refreshed every few milliseconds, so it is impractical to use a request-and-response exchange for every update. CANopen therefore provides PDOs (Process Data Objects) for real-time data transmission during the Operational state. PDOs are fast, have low overhead, and do not require a response.

TPDO and RPDO: The Two PDO Types

PDOs are divided according to data direction. A TPDO (Transmit PDO) sends data from a node to the network. In this example, the TMCM-6212 reports actual position (object 6064h) and actual velocity (object 606Ch) to the PLC in real time. An RPDO (Receive PDO) carries data received by a node. In this example, the PLC sends target position (object 607Ah) and the control word (object 6040h) to the motor drive.

Each PDO is assigned a fixed COB-ID consisting of a function code and a Node-ID. The following diagram shows the COB-ID allocation for NODE-1 (the TMCM-6212) in this system.

Figure 1. COB-ID allocation for NODE-1. (Image source: ADI)

PDO Message Structure

A PDO frame is very compact: a COB-ID followed by up to eight bytes of real-time data. The COB-ID identifies the PDO type and the node that produced it, preventing data conflicts. In the object dictionary, indices 1400h–15FFh (RPDO) and 1800h–19FFh (TPDO) store communication parameters; indices 1600h–17FFh (RPDO) and 1A00h–1BFFh (TPDO) store mapping parameters. Figure 2 shows the actual COB-ID configuration for NODE-1 in the PLC firmware.

Figure 2. PDO message structure: COB-ID plus eight bytes of real-time data. (Image source: ADI)

Four Triggering Methods

CANopen supports four PDO triggering methods:

  • Event-driven: The PDO is sent when a mapped variable changes.
  • Time-driven: The PDO is sent at a fixed interval.
  • Individual polling: A node is polled individually.
  • Synchronized or group polling: A SYNC signal coordinates transmission and reception for a group of nodes.

Technical tip: For event-driven PDOs, consider mapping analog and digital signals to separate PDOs to reduce the risk of data loss. PDOs are active only in the Operational state; they are not transmitted or received in the Pre-Operational state.

Related products:

Additional References