background image

Manual – DFD11B DeviceNet Fieldbus Interface  

31

Programming samples in RSLogix 5000

Project Planning and Startup

5.5

Programming samples in RSLogix 5000

5.5.1

MOVIDRIVE

®

 B with 3 PD data exchange

1. Set the DIP switches on the DFD11B to

• adjust the baud rate to the DeviceNet network
• set the address (MAC-ID) to a value used by no other node
• set the number of PD (according to this sample) to 3

2. Then follow chapter 5.2 and 5.2.1 to add MOVIDRIVE

®

 B with DFD11B to the De-

viceNet configuration.

3. Follow chapter 5.3 to set the communication parameters of MOVIDRIVE

®

 B.

4. Now the integration into the RSLogix project can performed.

Generate a controller tag with a user-defined data type to get a plain interface to the
inverters process data (

 

following figure)

The description for PI and PO data can be assigned to the controller tag fitting to the
definitions made in MOVIDRIVE

®

 B (

 

chapter 5.3).

11752AXX

11753AXX

0

0

I

Summary of Contents for DFD11B

Page 1: ...Drive Technology Drive Automation System Integration Services DFD11B DeviceNet Fieldbus Interface Manual Edition 10 2007 11637013 EN...

Page 2: ...SEW EURODRIVE Driving the world...

Page 3: ...rd in MOVITRAC B 12 4 2 1 System bus connection between a MOVITRAC B and the DFD11B option 12 4 2 2 System bus connection between multiple MOVITRAC B units 13 4 3 Installing the DFE11B UOH11B gateway...

Page 4: ...ata exchange 54 6 2 The Common Industrial Protocol CIP 56 6 2 1 CIP object directory 56 6 3 Return codes for parameter setting via explicit messages 66 6 4 Definitions of terminology 68 7 Operating MO...

Page 5: ...e information contained in the MOVIDRIVE MOVITRAC documentation to ensure safe operation and to achieve the specified product character istics and performance requirements SEW EURODRIVE assumes no lia...

Page 6: ...e to changes in the unit behavior This may result in unexpected not uncontrolled system behavior 2 3 Safety functions The MOVIDRIVE MDX60B 61B and MOVITRAC B drive inverters may not perform safety fun...

Page 7: ...bus parameters and their coding the MOVIDRIVE Fieldbus Unit Profile manual and the MOVITRAC B and MOVIDRIVE MDX60B 61B system manual provide information on various control concepts and application opt...

Page 8: ...bus timeout or rapid stop concepts You can for example adjust the monitoring functions of MOVIDRIVE MOVITRAC specifically to your application You can determine for instance which of the drive in verte...

Page 9: ...MOVIDRIVE MDX61B MOVITRAC B and UOH11B gateway housing 4 1 Installing the DFD11B option card in MOVIDRIVE MDX61B NOTES Only SEW EURODRIVE personnel may install or remove option cards for MOVIDRIVE MD...

Page 10: ...option card from electrostatic charge use discharge strap conductive shoes and so on before touching it Before installing the option card remove the keypad and the front cover oper ating instructions...

Page 11: ...2 Remove the two retaining screws of the black cover plate on the card retaining brack et Remove the black cover plate 3 Position the option card onto the retaining bracket so that the three retainin...

Page 12: ...S1 ON NOTE Only SEW EURODRIVE engineers may install or remove option cards for MOVITRAC B 62198AXX 1 Terminating resistor activated S1 ON 2 DIP switch S2 reserved S2 OFF X46 X26 Terminal assignment X4...

Page 13: ...2 3 4 5 6 7 8 24V IO DC 24 V 9 GND DFD 11B MOD NET BUS FAULT 0 1 PIO NA 5 NA 4 NA 3 NA 2 NA 1 DR 1 DR 0 PD 4 PD 3 PD 2 PD 1 PD 0 AS F2 F1 1 2 3 4 5 NA 0 S1 S2 X30 BIO 1 2 1 2 1 2 MOVITRAC B DFD11B via...

Page 14: ...th 40 pF m at 1 kHz Suitable cables are e g CAN bus or DeviceNet cables The permitted total cable length depends on the baud rate setting of the SBus 250 kBaud 160 m 500 kBaud 80 m 1000 kBaud 40 m Con...

Page 15: ...he system bus connection NOTE Only SEW EURODRIVE engineers are allowed to install or remove option cards in from the UOH11B gateway housing 62197AXX UOH11B gateway housing X26 Terminal assignment X26...

Page 16: ...switches for setting the baud rate Five DIP switches for setting the process data length NA 0 NA 5 DR 0 DR 1 PD 0 PD 4 AS F1 F2 Setting the MAC ID Media Access Control Indentifier Setting the DeviceNe...

Page 17: ...The cable to be used is also described in the DeviceNet specification Volume I Appendix B The connection must be made ac cording to the color code specified in the following table DFD11B DeviceNet con...

Page 18: ...ts Do not route them parallel to power cables motor leads Use metallic grounded cable racks in industrial environments Route the signal cable and the corresponding equipotential bonding close to each...

Page 19: ...anner Configuring the SBus communi cation of the gateway The AS DIP switch is used to configure the SBus communication of the gateway chapter Auto setup for gateway operation The configuration is carr...

Page 20: ...de and connected Online Connection to a master has been established Connection is active established state Flashing red 1 s cycle Minor fault or connection timeout A correctable error has occurred A d...

Page 21: ...is set via DIP switches A correctable error has occurred Bit strobe I O connection is in timeout state Red light Critical fault or critical link failure An error that cannot be remedied has occurred...

Page 22: ...SEW_GATEWAY_DFD11B eds is required Install the following files with the RSNetWorx software to build the DeviceNet network with the DFD11B option Proceed as follows Select the menu item Tools EDS Wiza...

Page 23: ...iceNet Scanner to the I O configuration the file dnt containing the DeviceNet configuration is selected To view and edit the DeviceNet configuration RSNetWorx can be launched from this dialog followin...

Page 24: ...on in MOVIDRIVE B By reading the device properties in online mode the process data Pd configuration of the DFD11B can be checked following figure The parameter Pd configuration gives the number 1 10 o...

Page 25: ...from and to DeviceNet units is packed into a DINT Array that is transferred from the scanner to the local I O tags of the Logix Processor In order not to have to search for the data from a certain de...

Page 26: ...es in online mode the process data Pd configuration of the DFD11B can be checked following figure The parameter Pd configuration gives the number 3 24 of process data words PD set via DIP switches PD...

Page 27: ...I O tags of the Logix Processor In order not to have to search for the data from a certain device in this array manually the DeviceNet Tag Generator tool generates copy commands and two controller tag...

Page 28: ...rch is completed the DFD11B periodically exchanges three process data words with each connected drive inverter The process output data are fetched from the fieldbus divided into blocks of three and tr...

Page 29: ...IDRIVE B drive inverter can be set straight away via De viceNet without any further settings once the DeviceNet option card has been installed For example all parameters can be set by the PLC after po...

Page 30: ...s Activation of the control signal source and setpoint source SBus is signaled to the higher level controller using the SBus mode active bit in the status word For safety reasons you must also enable...

Page 31: ...of PD according to this sample to 3 2 Then follow chapter 5 2 and 5 2 1 to add MOVIDRIVE B with DFD11B to the De viceNet configuration 3 Follow chapter 5 3 to set the communication parameters of MOVID...

Page 32: ...I O following fig ure Make sure that this CPS command is executed after the automatically by DeviceNet Tag Generator generated DNet_ScannerInputsRoutine In order to copy the data from the new data st...

Page 33: ...set the PLC to Run Mode and set the Scanner CommandRegister Run to 1 to activate the data exchange via De viceNet Now the actual values from the device can be read and setpoint values can written The...

Page 34: ...dd the DFD11B gateway to the DeviceNet con figuration 3 Execute the Auto Setup Function of the DFD11B gateway according to chapter 5 3 to configure the data mapping to the drives 4 Follow chapter 5 4...

Page 35: ...ne that read the data from the local I O following figure Make sure that these CPS commands are executed after the automatically by DeviceNet Tag Generator generated DNet_ScannerInputsRoutine Please n...

Page 36: ...Generator generated DNet_ScannerOutputsRoutine Please note that the structure DNet_Scanner_N10_POL_O Data contains the PD to all drives on the gateway so that the 6 data bytes of to each drive have t...

Page 37: ...les in RSLogix 5000 Project Planning and Startup The data in the controller tags should be equal to the process data displayed in the monitor for the DFx fieldbus gateway or in the parameter tree in M...

Page 38: ...MOVIDRIVE B via ex plicit messages and the register object follow the following steps 1 Generate the user defined data structure SEW_Parameter_Channel following figure 2 Define the controller tags fo...

Page 39: ...n the further data in the following order A Source Element ReadParameterRequest Index B SourceLength 12 C Destination ReadParameterResponse Index D Class 7hex E Instance 1 F Attribute 4hex G Service C...

Page 40: ...figure On response to the read request ReadParameterResponse Index should indicate the read index and ReadParameterResponse Data should contain the read data In this sample P160 internal setpoint n11...

Page 41: ...r execution following figure For contact select the tag WriteParameterStart For the Message Control select the tag WriteParameter Click on in the MSG instruction to open the Message Configuration Wind...

Page 42: ...y altering WriteParameterStart to 1 the write request is executed once following figure On response to the write request WriteParameterResponse Index should give the written index and WriteParameterRe...

Page 43: ...ntical to the access to MOVIDRIVE B parameter data chapter 5 5 3 The only difference is that Read WriteParameterRequest SubChannel1 is to be set to 2 and Read WriteParameterRequest SubAddress1 is to b...

Page 44: ...nputs DeviceNet Scanner SLC500 Power section 1746 P2 1485A C2 Terminating resistor 1485A C2 Terminating resistor 1747 SDN 1746 IB16 1794 ADN 1794 IB16 1794 ADN 1794 OV16 1746 OB16 1747 L542 DeviceNet...

Page 45: ...ID1 device 0 Bit Strobe I O I 3 015 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 PID2 device 0 Bit Strobe I O I 3 016 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 PID3 device 0 Bit Strobe I O I...

Page 46: ...DX61B now works in fieldbus mode and can receive process data The program can now be written for the SLC500 54178AEN Menu no Index Parameter Value 100 8461 Setpoint source Fieldbus 101 8462 Control si...

Page 47: ...implemented The current status is written to the outputs O 1 0 of the output module of the SLC500 in rung 2 The process data values are output to the scanner memory area in the following figure Status...

Page 48: ...the motor is stopped with the rapid stop States 2 and 3 are treated similarly to states 0 and 1 and are thus not explained any further In the figure above the current actual value of the device with...

Page 49: ...the following overview 54172AEN Memory area Function Length Value Description Transmission header cmd status 1 2 word each follow ing table cmd Entry of command code status Entry of transmission stat...

Page 50: ...ueue 5 255 Reserved Network node status Description 0 Ignore transmission block 1 Transmission completed successfully 2 Transmission in progress 3 Error Slave device not in the scan list 4 Error Slave...

Page 51: ...index 1 word and the parameter data 2 words 54175AEN 4 1 2 3 5 6 7 8 9 0 MOVIDRIVE MDX61B PLC SLC500 Scanner 1747 SDN Request of a transmission block Contact plan scanning Response of a transmission b...

Page 52: ...elegram to be used is written in N7 0 to N7 8 N7 10 to N7 15 hold the data that are to be received 02149AXX Word length Request Function Value 1 TXID 1 Cmd 1 Start 2 Connection 0 Size 8 3 Service Ehex...

Page 53: ...ting from N7 0 are copied into the M0 file with a rising edge of bit B3 0 1 This starts the reading of parameter 8304 2070hex In rung 6 the system waits for the rising edge of scanner bit I 3 0 15 I 3...

Page 54: ...rval must not be altered in the inverter using MOVITOOLS or the DBG60B keypad because it can only be activated via the bus If a timeout occurs for the polled I O messages this connection type enters t...

Page 55: ...place as follows via DeviceNet with the reset service of the connection object class 0x05 instance 0x03 undetermined attribute by interrupting the connection via reset service of the identity object...

Page 56: ...1 Identify Object 03 DeviceNet Object 05 Connection Object 07 Register Object 0F Parameter Object Attri bute Acc Name Data type Default value hex Description 1 Get Vendor ID UINT 013B SEW EURODRIVE Gm...

Page 57: ...us Table Coding of the extended device status 8 Minor Recoverable Fault Minor fault that can be remedied 9 Minor Unrecoverable Fault Minor fault that cannot be remedied 10 Major Recoverable Fault Majo...

Page 58: ...g to DIP switches 0 63 2 Get Baud rate According to DIP switches 0 2 3 Get BOI 4 Get Set Bus off Counter Error counter of the physical CAN Interface 0 255 5 Get Allocation information 6 Get MAC ID swi...

Page 59: ...ribute Access Name 1 Get State 2 Get Instance type 3 Get Transport Class trigger 4 Get Produce connection ID 5 Get Consume connection ID 6 Get Initial com characteristics 7 Get Produced connection siz...

Page 60: ...ed for ac cess As the register object is designed so that INPUT objects can only be read and OUTPUT objects can be read and written the options listed in the following table are available for addressi...

Page 61: ...NG READ ATTRIBUTE WRITE WRITE VOLATILE Get_Attribute_Single Get_Attribute_Single Set_Attribute_Single Set_Attribute_Single Get_Attribute_Single Get_Attribute_Single Get_Attribute_Single Get_Attribute_...

Page 62: ...bits Attribute 4 represents the parameter data When accessing attribute 4 the SEW parameter channel must be attached to the service telegram The SEW parameter channel consists of the elements listed i...

Page 63: ...me Data type Default value hex Description 2 Get Max Instance UINT 0025 Maximum instance 37 8 Get Parameter Class Descriptor UINT 0009 Bit 0 Supports parameter instances Bit 3 Parameters are saved per...

Page 64: ...ion Process data configuration 7 Get Set Setp descr PO1 Process output data assignment for PD1 8 Get Setp descr PO2 Process output data assignment for PD2 9 Get Set Setp descr PO3 Process output data...

Page 65: ...Parameter that is to be read or writ ten see table fieldbus parameter gateway 2 Get Link Path Size USINT 00 Not used here 3 Get Link Path Packed EPATH 00 Not used here 4 Get Descriptor WORD 0000 Read...

Page 66: ...ansfer or if a service is performed which has not been imple mented The coding of these return codes is described in the DeviceNet specification section General Error Codes Timeout of explicit mes sag...

Page 67: ...ed service 11 Reply data too large The length of the transmitted data is longer than the size of the receive buffer 12 Reserved for DeviceNet 13 Not enough data The length of the transferred data is t...

Page 68: ...ncludes the class no instance no attribute no and the data Explicit message Parameter data message assists in addressing the DeviceNet objects Get_Attribute_Single Read service for a parameter Instanc...

Page 69: ...o via DeviceNet 7 Operating MOVITOOLS MotionStudio via DeviceNet At the moment it is not possible to run MOVITOOLS MotionStudio via DeviceNet or via DeviceNet master to enable communication down to th...

Page 70: ...NET PIO BIO BUS FAULT Status Cause Off Off Off Off Off No power supply via MOVIDRIVE B or X26 when mounted into MOVITRAC B or gateway hous ing Off Yellow Off Off Booting During bootup and synchronizat...

Page 71: ...a words E If the PLC is not sending data to the DFD11B please refer to the documentation of the PLC manufacturer for support F Is the DFD11B mounted into MOVITRAC B or gateway housing if yes proceed w...

Page 72: ...o be set via DIP switches Bus cable length For thick cable according to DeviceNet specification 2 0 Appendix B 500 m at 125 kBaud 250 m at 250 kBaud 100 m at 500 kBaud Transmission level ISO 11898 24...

Page 73: ...ches Bus cable length For thick cable according to DeviceNet specification 2 0 Appendix B 500 m at 125 kBaud 250 m at 250 kBaud 100 m at 500 kBaud Transmission level ISO 11898 24 V Connection technolo...

Page 74: ...e safety notes 5 General safety notes for bus systems 6 I Installation DFD11B UOH11B 15 DFD11B option card in MOVITRAC B 12 DFD11B option card in MOVIDRIVE MDX61B 9 Installing and remove an option car...

Page 75: ...ring the SBus communication of the gateway 19 Setting the MAC ID 19 Setting the baud rate 19 Setting the process data length 19 Setting the DIP switches 19 Structure of the safety notes 5 T Technical...

Page 76: ...reduces the cost and complexity of daily operations With a global presence that offers responsive and reliable solutions Anywhere With innovative technology that solves tomorrow s problems today With...

Reviews: