Intelligent Motion Systems DSP-402 Accessing The MDrivePlus CANopen, Process Data Object PDO

Page 17

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

Image 17
Contents Forcetm CANopen DSP402 Application Revision R020507 Contents Device Control Profile Position Mode Optional Application FE General I/O List of Figures This Page Intentionally Left Blank Application Guide MDrivePlus CANopen R020507 MDrivePlus Architecture IntroductionCan Message Format Profile Position Mode Section Homing Mode SectionProfile Velocity Mode Section Device ControlTrajectory Generator Objects and the Object DictionaryYes/No Xxxx h Index NamePDO Mapping DefaultCategory RangeIntentionally Left Blank Service Data Object SDO Accessing The MDrivePlus CANopenProcess Data Object PDO PDO AttributesPDO Mapping PDO Mapping Procedure Consumer PDODefault Mapping Example Consumer PDO Consumer PDO1 RPDO1 1400h Object Description PDO ObjectsConsumer PDO1 RPDO1 1400h Entry Description 1600h Object Description Mapping ParametersConsumer PDO2 RPDO2 1401h Entry Description Consumer PDO2 RPDO2 1401h Object Description1601h Object Description Mapping Parameters 1601h Entry Description Mapping ParametersConsumer PDO3 RPDO3 1402h Entry Description Consumer PDO3 RPDO3 1402h Object Description1602h Object Description Mapping Parameters 1602h Entry Description Mapping Parameters1A00h Object Description Mapping Parameters Producer PDO1 TPDO1 1800h Entry Description1A00h Entry Description Mapping Parameters Producer PDO2 TPDO2 1801h Object Description1A01h Entry Description Mapping Parameters 1A01h Object Description Mapping ParametersProducer PDO3 TPDO3 1802h Object Description Producer PDO3 TPDO3 1802h Entry Description1A02h Entry Description Mapping Parameters Accessibility Codes Object 2000h I/O Discretes ConfigDiscretes UnsignedObject 2004h Input Filter Mask Config 2002 h Config Input SwitchesObject 2002h I/O Discretes Config Object 2006h Input Filter Time ms 2004h2006h Input Filter Time See Entry Desc 2010h Analog Input2020h Software Limits as Unsigned Hardware2032 h Clock Options 2031 h Unit OptionsSee Table 2033 h Capture Input2205 h Hold Current % 2204 h Run Current %Object 2204h Run Current Percent Object 2205h Hold Current Percent2211h Options SettingInteger Point Target5002h FactoryAscii Ser. No 5003hControl and Status words State MachineState Machine Transitions Internal Object 6040h Controlword 6040 hUnsigned16 Object 6041h Statusword StatuswordBits 12-13 Operation Mode Specific Bit 4 Voltage EnabledBit 5 Quick Stop Active Bit 7 Warning±Integer8 6060h Mode of OperationModes of Operation Object 6060h Modes of OperationObject 6502h Supported Drive Modes 6061 h Mode of Operation DisplayObject 6061h Modes of Operation Display = Mode Supported = Mode Not Supported Intentionally Left Blank General Information Profile Position ModeTrajectory Generator Input Data DescriptionSet-Point Transmission from Host Computer Functional DescriptionSingle Set-Point Mode Move After a Move 6040h Bit 5=0 Controlword 6040h of Profile Position Mode6081 h Profile Velocity 607A h Target PositionPossible Integer 6084 h Profile Deceleration 6082 h End Velocity6083 h Profile Acceleration Object 6086h Motion Profile Type 6086 h Motion Profile TypeInput Data Description Homing ModeOutput Data Description Internal StatesHoming Offset 607Ch Statusword 6041h of Homing Mode607C h Homing Offset ± Integer 6098 h Homing MethodPossible ± Integer Homing Method 6098hMethod 2 Homing on the Positive Limit Switch and Index Pulse Homing on the Negative Home Switch and Index Pulse Methods 7 to 14 Homing on the Home Switch and Index PulseMethods 31 and 32 Reserved Methods 15 and 16 ReservedMethods 17 to 30 Homing without an Index Pulse Methods 33 and 34 Homing on an Index Pulse 6099 h Homing SpeedsMethod 35 Homing on the Current Position Homing Speeds 6099hIntentionally Left Blank 6063 h Position Actual Value 6062 h6064 h Position Actual Value Position Control Function6066 h Following Error Timeout 6065 h Following Error Window6068 h Position Window Time Unsigned Mfg-SpecificControlword 6040h of Profile Velocity Mode Profile Velocity ModeStatusword 6041h of Profile Velocity Mode 606C h Velocity Actual Value60FF h Maximum Slippage 60FF h Target VelocityInteger Mfg-Specific Object 60FFh Target VelocityObject 60FDh Digital Inputs 60FD h Digital InputsOptional Application FE General I/O Object 60FEh Digital Outputs 60FE h Digital OutputsWarranty Excellence in Motion