SECTION 2

Accessing The MDrivePlus CANopen

Introduction

The access from the CAN network to the drive is done through data objects.

Process Data Object (PDO)

PDOs are messages in an unconfirmed service. They are used for the transfer of real-time data to and from the drive. The transfer is fast, because it is performed with no protocol overhead what means to transport eight application data bytes in one CAN-frame. The PDOs correspond to entries in the Object dictionary.

PDO Attributes

1.Two Types: RPDO (Receive) and TPDO (Transmit)

2.Up to 8 Bytes of application data per message frame. No additional protocol overhead is required.

3.Transfer is not confirmed

4.PDOs Require setup, SDOs map each byte of the PDO to one or more Object Entries.

5.PDOs operate using the Producer (TPDO)/Consumer (RPDO) relationship Push-Pull model.

6.Best for transferring data such as Device Status, Set-points etc.

Producer

Consumer

TPDO

Data

RPDO

RPDO

RPDO

Figure 2.1: PDO Producer – Consumer Relationship

Service Data Object (SDO)

A Service Data Object (SDO) reads from entries or writes to entries of the Object Dictionary. The SDO transport protocol al- lows transmitting objects of any size. The first byte of the first segment contains the necessary flow control information includ- ing a toggle bit to overcome the well-known problem of doubly received CAN frames. The next three byte of the first segment contain index and sub-index of the Object Dictionary entry to be read or written. The last four byte of the first segment are available for user data. The second and the following segments (using the very same CAN identifier) contain the control byte and up to seven byte of user data. The receiver confirms each segment or a block of segments, so that a peer-to-peer communi- cation (client/server) takes place.

SDO Attributes

1.Can access any Object in the Object Dictionary regardless of size.

2.Transfer is confirmed

3.Direct access to the Object Dictionary

4.Client/Server relationship.

5.Best for setting up configuration parameters.

Client

ID Request

ID

Request

Server

Figure 2.2: SDO Client – Server Relationship

Part 2: DSP-402 Implementation

Page 17
Image 17
Intelligent Motion Systems DSP-402 Accessing The MDrivePlus CANopen, Process Data Object PDO, Service Data Object SDO