PROFIBUS Communications Module M/N RECOMM-PBUS Instruction Manual D2-3479-1
The information in this manual is subject to change without notice. Throughout this manual, the following notes are used to alert you to safety considerations: ! ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Important: Identifies information that is critical for successful application and understanding of the product.
CONTENTS Chapter 1 Introduction 1.1 PROFIBUS Module Features ........................................ 1-1 1.2 Related Documentation ................................................. 1-2 1.3 Getting Assistance from Reliance Electric..................... 1-2 Chapter 2 Getting Started 2.1 PROFIBUS Module Components .................................. 2-1 2.2 Required Equipment ...................................................... 2-2 2.3 Installation Checklist ...............................................
Chapter 6 Using I/O Messaging 6.1 About I/O Messaging ..................................................... 6-1 6.2 Understanding the I/O Image......................................... 6-1 6.3 Using Logic Command/Status ....................................... 6-4 6.4 Using Reference/Feedback ........................................... 6-4 6.5 Using Datalinks .............................................................. 6-4 6.5.1 Rules for Using Datalinks .................................... 6-4 6.5.
List of Figures Figure 2.1 – Components of the PROFIBUS Module ................................. 2-1 Figure 3.1 – Setting the Node Address....................................................... 3-2 Figure 3.2 – ERNI and Phoenix Subcon Connectors.................................. 3-3 Figure 3.3 – Network Wiring Diagram......................................................... 3-3 Figure 3.4 – Phoenix Subcon Plus M1 Connection for Terminating Resistors...........................................................
Figure 5.28 – SLC Address: M1/M0 (Datalink D)...................................... 5-16 Figure 5.29 – SLC Address M1/M0 (Parameter Access) .......................... 5-16 Figure 5.30 – Station 1 Network Window.................................................. 5-16 Figure 5.31 – Station 2 Network Window.................................................. 5-17 Figure 5.32 – Network Window Scanner Selection................................... 5-18 Figure 5.33 – Save As Dialog Window..............................
Figure 7.11 – Sample SLC Ladder Logic - Station 2 Parameter Protocol (Continued)......................................................................... 7-14 Figure 7.12 – Sample SLC Ladder Logic - Station 2 Parameter Protocol (Continued)......................................................................... 7-15 Figure 8.1 – Status Indicators (Location on Drive May Vary) ..................... 8-1 Figure 8.2 – Viewing and Clearing Events Using an LCD OIM...................
VI PROFIBUS Communications Module
List of Tables Table 2.1 – Equipment Shipped with the PROFIBUS Module .................... 2-2 Table 2.2 – Required User-Supplied Equipment ........................................ 2-2 Table 3.1 – RECOMM-PBUS DB-9 Pin Layout .......................................... 3-3 Table 4.1 – Configuration Tools.................................................................. 4-1 Table 4.2 – Selections for Drive Response to Communication Fault.......... 4-4 Table 4.3 – Fault Configuration Parameters ................
VIII PROFIBUS Communications Module
CHAPTER 1 Introduction This manual provides information about the PROFIBUS Communications module (RECOMM-PBUS) and using it with SP600 drives. It is intended for qualified electrical personnel familiar with installing, programming, and maintaining AC drives and networks. The PROFIBUS module is an embedded communication option for DPI AC drives, such as the SP600 drive. The module is mounted in the drive and receives its required power from the drive.
1.2 Related Documentation Refer to the following related publications as necessary for more information. All of the publications are available from http://www.theautomationbookstore.com or http://www.reliance.com. • • • D2-3485 SP600 AC Drive User Manual D2-3501 SP600 AC Drive User Manual (6SB401 Series) D2-3488 VS Utilities Getting Results Manual Online help installed with the software • 1747-6.2 SLC 500 Modular Hardware Style Installation and Operation Manual • 1747-6.
CHAPTER 2 Getting Started This chapter provides: • • • • 2.1 A description of the PROFIBUS module components A list of parts shipped with the module A list of user-supplied parts required for installing the module An installation checklist PROFIBUS Module Components Status Indicators DPI Connector PROFIBUS Connector Node Address Switches Three LEDs to indicate the status of the connected drive, module, and network. Refer to chapter 8 for more information about the LEDs.
2.2 Required Equipment Table 2.1 lists the equipment shipped with the PROFIBUS module. When you unpack the module, verify that the package includes all of these items. Table 2.1 – Equipment Shipped with the PROFIBUS Module Item Description One RECOMM-PBUS PROFIBUS module A 2.54 cm (1 in) and a 15.24 cm (6 in) Internal Interface cable (only one cable is needed to connect the module to the drive) One grounding wrist strap One floppy disc with GSD file PROFIBUS Module User Manual (D2-3479) Table 2.
2.3 Installation Checklist This section is designed to help experienced users start using the PROFIBUS module. If you are unsure about how to complete a step, refer to the referenced chapter. Step ❒ 1 Review the safety precautions for the module. Throughout this manual ❒ 2 Verify that the drive is properly installed. SP600 AC Drive User Manual ❒ 3 Commission the module. Chapter 3, Installing the PROFIBUS Module Action Set a unique node address using the switches on the module.
Step ❒ 8 Action Refer to: Configure the scanner to communicate with the module. Use a network tool for PROFIBUS to configure the master on the network. ❒ 9 Chapter 5, Configuring the PROFIBUS Scanner Create a ladder logic program. Chapter 6, Using I/O Messaging. Chapter 7, Using Explicit Control the module and connected drive. Messaging Monitor or configure the drive using Explicit (Parameter Protocol) Messages.
CHAPTER 3 Installing the PROFIBUS Module Chapter 3 provides instructions for installing the PROFIBUS module in an SP600 drive. 3.1 Preparing for an Installation Before installing the PROFIBUS module, verify that you have all required equipment. Refer to chapter 2, Getting Started. 3.2 Commissioning the Module To commission the module, you must set a unique node address. (Refer to the Glossary for details about node addresses.
2 2 3 4 1 0 5 9 4 0 6 8 3 1 7 5 9 6 8 Tens Digit 7 Ones Digit Setting Description 00 - 99 Node address used by the module if switches are enabled. The default switch setting is 05. Important:If the address switch is set to “00”, the module will use the setting of P-DP Addr Cfg (module parameter 3) for the node address. Refer to chapter 4, Configuring the PROFIBUS Module. Figure 3.1 – Setting the Node Address 3.
Phoenix Subcon Plus 1M Connector ERNI Connector Figure 3.2 – ERNI and Phoenix Subcon Connectors B A B A B A B A B A B A Figure 3.3 – Network Wiring Diagram Only use cable that conforms to PROFIBUS cable standards. Belden #3079A PROFIBUS cable or equivalent is recommended. Table 3.
Table 3.1 – RECOMM-PBUS DB-9 Pin Layout (Continued) Terminal 6 Signal +5V BUS 7 8 Not connected A-LINE 9 Not connected Step 5. Function Isolated +5V from bus Negative RxD/TxD according to RS485 specification Connect the PROFIBUS cable to the module, and secure it with the two screws on the connector. (See figure 3.5.) Note: The screws on some connectors tie the PROFIBUS cable ground/shield to the metal of the socket. In some cases, PROFIBUS will not operate correctly without this connector. 3.
3.5 Connecting the Module to the Drive Step 1. Remove power from the drive. Step 2. Use static control precautions. Step 3. Connect the Internal Interface cable to the DPI port on the drive and then to the DPI connector on the module. PROFIBUS Module SP600 Drive 1-20 HP SP600 AC Drive Frame 2 and Larger 15.24 cm (6 in) Internal Interface cable DPI connector PROFIBUS connector Retaining screws 2.54 cm (1 in) Internal Interface cable Figure 3.
Step 4. For 1-20 HP SP600 drives, fold the Internal Interface cable behind the module and mount the module on the drive using the four captive screws. See figure 3.6. For frame 2 and larger SP600 drives, mount the module on the drive using the four captive screws to secure and ground it to the drive. Important: All screws must be tightened since the module is grounded through a screw. The recommended tightening torque is 0.9 N-m (8 in-lb).
3.6 Applying Power ! ATTENTION: Unpredictable operation may occur if parameter settings and switch settings are not compatible with your application. Verify that settings are compatible with your application before applying power to the drive. Failure to observe these precautions could result in severe bodily injury or loss of life. Step 1. Verify that the module will have a unique address on the network. If a new address is needed, reset its switches (refer to section 3.2, Commissioning the Module).
3-8 PROFIBUS Communications Module
CHAPTER 4 Configuring the PROFIBUS Module Chapter 4 provides instructions and information for setting the parameters in the module. For a complete list of parameters, refer to Appendix B, PROFIBUS Module Parameters. For definitions of terms in this chapter, refer to the Glossary. 4.1 Configuration Tools The PROFIBUS module stores parameters and other information in its own non-volatile memory. Therefore, you must access the module to view and edit its parameters. Table 4.
4.2 Using the LCD OIM to Configure the Module Use the procedure in figure 4.1 to access the parameters on the PROFIBUS module using the LCD OIM. If you are unfamiliar with the operation of the LCD OIM, refer to the SP600 AC Drive User Manual (D2-3485 or D2-3501) for more information.
4.4 Setting the I/O Configuration The I/O configuration determines the type of data sent to the drive. Logic Command/Status, Reference/Feedback, and Datalinks may be enabled or disabled. Step 1. Set the bits in module parameter 11 (DPI I/O Config) as shown in figure 4.3. A “1” enables the I/O. A “0” disables it. Bit 0 is the right-most bit. In figure 4.3, it is highlighted and equals “1.
4.5 Setting a Fault Action ATTENTION: Parameter 9 (Comm Flt Action) and parameter 10 (Idle Flt Action) let you determine the action of the module and connected drive if communications are disrupted or the scanner is idle. By default, these parameters fault the drive. You can set these parameters so that the drive continues to run. Precautions should be taken to ensure that the settings of these parameters do not create a risk of injury or equipment damage.
4.5.1 Setting the Fault Configuration Parameters If you set module parameter 9 (Comm Flt Action) or module parameter 10 (Idle Flt Action) to “Send Flt Cfg,” the values in the parameters shown in table 4.3 are sent to the drive after a communications fault and/or idle fault occurs. You must set these parameters to values required by your application. Table 4.
4.5.2 Resetting the Module Changes to switch settings or some module parameters require that you reset the module before the new settings take effect. You can reset the module by cycling power to the drive or by using module parameter 8 (Reset Module). ! ATTENTION: If the module is transmitting control I/O to the drive, the drive may fault when you reset the module. Determine how your drive will respond before resetting a connected module.
4.6 Viewing the Module Configuration The parameters in table 4.4 provide information about how the module is configured. You can view these parameters at any time. Table 4.4 – Module Configuration Status Parameters Number Name Description 01 DPI Port The port on the drive to which the module is connected. Usually, it is port 5. 02 DPI Data Rate The data rate used by DPI in the drive. It is set in the drive, and the module detects it. 04 P-DP Addr The node address used by the module.
4-8 PROFIBUS Communications Module
CHAPTER 5 Configuring the PROFIBUS Scanner A scanner is a separate module of a multi-module controller or a built-in component of a single-module controller that provides communication with a module connected to a network. PROFIBUS scanners are available from several manufacturers, including SST. SST PROFIBUS scanners come with a software tool for configuring the scanner (see figure 5.1). Device Library window Network Configuration window [001]_RECOMM_PBUS [002]_RECOMM_PBUS Online Browse window Figure 5.
5.1 Configuring a Simple Network: An Example In this example, we will be configuring two SP600 drives to be Station 1 and Station 2 on a PROFIBUS network. This will be the configuration used throughout the manual, including the ladder examples. Apart from the node address and scanner mapping, they will have identical configurations. This chapter describes the steps to configure a simple network like the network in figure 5.2.
Follow the steps outlined below only when a new GSD file needs to be added to the SST PROFIBUS Configuration Software Tool. Typically, this is only done once, after the software tool is initially installed or if configuring a RECOMM-PBUS on the network for the very first time with this software tool. The software tool comes with standard data files as shown in figure 5.3. Additional data files, such as the RECOMM-PBUS GSD file, will need to be added to configure the RECOMM-PBUS in the scanner. Figure 5.
Step 3. Find the directory location of the data file(s) you wish to add (typically, the source location is a floppy disk in drive A:). “Rele0573.gsd” is the GSD file for the RECOMM-PBUS as shown in figure 5.5. Rele0573.gsd Rele0573.gsd Figure 5.5 – Adding the GSD File for the RECOMM-PBUS Step 4. Select “Rele0573.gsd” for the RECOMM-PBUS and click Open. Step 5. Click on the (+) sign of the Slaves folder as shown in figure 5.6. Reliance Electric RECOMM-PBUS [V1.001.01] Figure 5.
5.2 Configuring the SST-PFB-SLC PROFIBUS Scanner The following steps are performed to configure the SST-PFB-SLC scanner using the SST PROFIBUS Configuration Software Tool. In our example, the PROFIBUS network will consist of a SLC master and two SP600 drives.
Step 4. A user-defined Name and Description can be given to the scanner. In our example, the scanner will be Station 0 on the network, as shown in figure 5.7. Figure 5.7 – SST-SST-PFB-SLC Master (General) Dialog Box Step 5. Click on the Parameters tab to view the Scan Cycle Times. In our example, use the default settings as shown in figure 5.8. Figure 5.
Step 7. Accept the settings in our example (COM1 on the PC at 115200 bps baud rate), as shown in figure 5.9. Figure 5.9 – COM Port Default Settings Step 8. The scanner will appear in the network window as shown in figure 5.10. Double-click on the scanner in the network window. Figure 5.10 – Scanner Network Window Step 9. Double-click on the RECOMM-PBUS listed in the Reliance Electric library folder. A user-defined Name and Description can be given to this RECOMM-PBUS.
Logic Command / Status, Reference / Feedback, Datalinks and Parameter Access (explicit messaging) modules are added using the Modules tab. Step 10. Click on the Modules tab. Click Add to view the choice of modules. Reliance Electric RECOMM-PBUS Figure 5.12 – RECOMM-PBUS Modules Tab In our example, Station 1 will be controlled using Logic Command / Status and Reference / Feedback. The SP600 drive uses 16-bit Reference / Feedback (2 bytes). Step 11.
Step 12. The “Ctrl/Stat & Ref/Fdbk” (2+2 bytes) module has now been added as shown in figure 5.14. Reliance Electric RECOMM-PBUS Figure 5.14 – Modules: Ctrl/Stat & Ref/Fdbk Viewing Window Station 1 will be configured to use Datalinks A1 and A2. The SP600 drive uses 16-bit Datalinks. Step 13. Click Add to continue adding modules. Select “Datalink A (2x2bytes)” and click OK. Figure 5.
Step 14. The “Datalink A” module has now been added as shown in figure 5.16. Reliance Electric RECOMM-PBUS Figure 5.16 – Modules: Datalink A Viewing Window Station 1 will also be configured to use Datalinks B1 and B2. The SP600 drive uses 16-bit Datalinks. Step 15. Click Add to continue adding modules. Select “Datalink B (2x2 bytes)” and click OK. Figure 5.
Step 16. The “Datalink B” module has now been added as shown in figure 5.18. Reliance Electric RECOMM-PBUS Figure 5.18 – Modules: Datalink B Viewing Window Station 1 will also be configured to use Datalinks C1 and C2. The SP600 drive uses 16-bit Datalinks. Step 17. Click Add to continue adding modules. Select “Datalink C (2x2bytes)” as shown in figure 5.19 and click OK. Figure 5.
Step 18. The “Datalink C” module has now been added as shown in figure 5.20. Reliance Electric RECOMM-PBUS Figure 5.20 – Modules: Datalink C Viewing Window Station 1 will also be configured to use Datalinks D1 and D2. The SP600 drive uses 16-bit Datalinks. Step 19. Click Add to continue adding modules. Select “Datalink D (2x2bytes)” as shown in figure 5.21 and click OK. Figure 5.21 – Add Modules: Datalink D Selection Window The “Datalink D” module has now been added.
Step 20. Click Add to continue adding modules. Select “Parameter Access” as shown in figure 5.22 and click OK. Figure 5.22 – Add Modules: Parameter Access Selection Window Step 21. The “Parameter Access” module has now been added as shown in figure 5.23. Reliance Electric RECOMM-PBUS Figure 5.23 – Modules: Parameter Access Viewing Window Settings can be chosen to map Station modules to SLC addresses. In our example, M1/M0 files are used for Input / Output.
Step 22. Click on the SLC Address tab as shown in figure 5.24. Reliance Electric RECOMM-PBUS Figure 5.24 – SLC Address: M1/M0 (Ctrl/Stat & Ref/Fdbk) Step 23. Datalink A is at word 2 in the M1/M0 files as shown in figure 5.25. Reliance Electric RECOMM-PBUS Figure 5.
Step 24. Datalink B is at word 4 in the M1/M0 files as shown in figure 5.26. Reliance Electric RECOMM-PBUS Figure 5.26 – SLC Address: M1/M0 (Datalink B) Step 25. Datalink C is at word 6 in the M1/M0 files as shown in figure 5.27. Reliance Electric RECOMM-PBUS Figure 5.
Step 26. Datalink D is at word 8 in the M1/M0 files as shown in figure 5.28. Reliance Electric RECOMM-PBUS Figure 5.28 – SLC Address: M1/M0 (Datalink D) Step 27. Parameter Access starts at word 10 in the M1/M0 files. Note that Parameter Access uses 4 words (10-13). See figure 5.29. Click OK when finished. Reliance Electric RECOMM-PBUS Figure 5.29 – SLC Address M1/M0 (Parameter Access) Step 28. Station 1 is now displayed in the network window. See figure 5.30. [001]_RECOMM_PBUS (**) Figure 5.
Step 29. Station 1 is configured as follows: Module M1/M0 Word Ctrl/Stat & Ref Fdbk 0 Datalink A 2 Datalink B 4 Datalink C 6 Datalink D 8 Parameter Access 10 Note that Station 1 occupies 14 words (0-13). Step 30. The same steps for configuring Station 1 will be used for configuring Station 2. Refer to previous steps (starting at step 9,) for Configuring the SST-PFB-SLC PROFIBUS Scanner-Station 2. (See figure 5.31.) [001]_RECOMM_PBUS(**) [002]_RECOMM_PBUS(**) Figure 5.
Important: The processor needs to be in program mode before proceeding. Step 32. Right-click on the scanner in the network window and select “Connect”. Then right-click again on the scanner in the network window and select “Load Configuration”. If a minimum cycle time attention window pops up, click OK to continue. After the configuration has been loaded into the scanner, “Configured Program” will be displayed in the message window (see figure 5.32). [001]_RECOMM_PBUS(**) [002]_RECOMM_PBUS(**) Figure 5.
Summary of the sample scanner configuration: M0 / M1 Addressing Module Station 1 Station 2 Logic Command / Status 0 14 Reference / Feedback 1 15 Datalink A1 2 16 Datalink A2 3 17 Datalink B1 4 18 Datalink B2 5 19 Datalink C1 6 20 Datalink C2 7 21 Datalink D1 8 22 Datalink D2 Parameter Access 5.3 9 23 10-13 24-27 GSD Diagnostic Messages In the case of invalid GSD module configuration, the peripheral will send one of the messages shown in table 5.1. Table 5.
5-20 PROFIBUS Communications Module
CHAPTER 6 Using I/O Messaging Chapter 6 provides information and examples that explain how to use I/O Messaging to control an SP600 drive. ! 6.1 ATTENTION: The examples in this publication are intended solely for purposes of example. There are many variables and requirements with any application. Rockwell Automation does not assume responsibility or liability (to include intellectual property liability) for actual use of the examples shown in this publication.
The I/O image table will vary based on the following: • Size (either 16-bit or 32-bit) of the Reference/Feedback word and Datalink words used by the drive. • Configuration of parameter 11 (DPI I/O Config). If not all I/O is enabled, the image table is truncated. The image table always uses consecutive words starting at word 0. Figure 6.1 illustrates an example of an I/O image with 16-bit words.
An image that uses 32-bit words for Reference and Datalinks would change the I/O image in figure 6.1 as follows: Word I/O Word I/O 0 Logic Command/Status 7 - 10 Datalink B 1-2 Reference/ Feedback 11 - 14 Datalink C 3-6 Datalink A 15 - 18 Datalink D Figure 6.2 illustrates an example of an I/O image that does not use all of the I/O data. Only the Logic Command/Reference and Datalink B are enabled. In this example, the Reference is a 32-bit word, and Datalinks are 16-bit words.
6.3 Using Logic Command/Status When enabled, the Logic Command/Status word is always word 0 in the I/O image. The Logic Command is a 16-bit word of control produced by the scanner and consumed by the module. The Logic Status is a 16-bit word of status produced by the module and consumed by the scanner. This manual contains the bit definitions for compatible products available at the time of publication in Appendix C, Logic Command/ Status Words. For other products, refer to their documentation. 6.
• Parameter settings in the drive determine the data passed through the Datalink mechanism. Refer to the documentation for your drive. • When you use a Datalink to change a value, the value is not written to the Non-Volatile Storage (NVS). The value is stored in volatile memory and lost when the drive loses power. 6.5.2 32-Bit Parameters using 16-Bit Datalinks To read (and/or write) a 32-bit parameter using 16-bit Datalinks, typically both Datalinks (A,B,C,D) are set to the 32-bit parameter.
Example: Power Up Marker (242) = 88.4541 hours MSW = 13decimal = 1101binary = 219 + 218 + 216 = 851968 LSW = 32573 851968 + 32573 = 884541 6.6 Sample SLC Ladder Logic Program The PROFIBUS sample program uses an SLC processor with an SST PROFIBUS scanner (SST-PFB-SLC) in the first slot of the rack and will work with SP600 drives.
Parameter Settings Table 6.
SLC Data Table Read Data File N10: contains the actual read data that can be used elsewhere in the ladder program.
Logic Command/Status Words The examples in sections 6.7 and 6.8 use the Logic Command word and Logic Status word for SP600 drives. Refer to Appendix C, Logic Command/Status Words, for more information. The definition of the bits in these words may vary if you are using a different DPI Host product. Refer to the documentation for your Host product.
6.7 Sample SLC Ladder Logic - Main Program This sample program is for a PROFIBUS demonstration using a SLC 5/05 processor with an SST Profibus scanner (SST-PFB-SLC) in the first slot of the rack.
PROFIBUS scanners vary from manufacturer to manufacturer in how the bytes are ordered in a word. For example, some PROFIBUS scanners operate with high & low bytes swapped (the value "1234" is represented as "3412"). The READ data is copied into N10: and the bytes are reversed in the SWP instruction below so a value such as "3412" is viewed as "1234".
Execute LAD 4 - Station 2 Drive Logic JSR Jump To Subroutine SBR File Number 0006 U:4 The PROFIBUS scanner is configured for 28 bytes (14 words) of outputs for each drive. Two drives require 48 bytes (28 words). Station 1 M0:1.0 M0:1.1 M0:1.2 M0:1.3 M0:1.4 M0:1.5 M0:1.6 M0:1.7 M0:1.8 M0:1.9 M0:1.10 M0:1.11 M0:1.12 M0:1.13 (N20:0) (N20:1) (N20:2) (N20:3) (N20:4) (N20:5) (N20:6) (N20:7) (N20:8) (N20:9) (N20:10) (N20:11) (N20:12) (N20:13) Station 2 M0:1.14 M0:1.15 M0:1.16 M0:1.17 M0:1.18 M0:1.19 M0:1.
Write the drives data to the PROFIBUS scanner. SST Scanner Write Data Word 0 COP Copy File Source Dest Length 0009 #N21:0 #M0:1.0 28 END 0010 Figure 6.
6.8 Sample SLC Ladder Logic Station 1 Program Controlling the Logic Command word in the drive. B3:20 /* bits are controlled elsewhere in the user program.
Station 1 Datalink A1 Datalink A1 (parameter 300) set to Acceleration Time 1 (parameter 140). N19:2 is controlled elsewhere in the user program. Station 1 Datalink A1 Write MOV Move Source 0007 Dest N19:2 50< N20:2 50< Station 1 Datalink A2 Datalink A2 (parameter 301) set to Deceleration Time 1 (parameter 142). N19:3 is controlled elsewhere in the user program.
Station 1 Datalink B2 Datalink B2 (parameter 303) set to Stop Mode A (parameter 155). N19:5 is controlled elsewhere in the user program. Station 1 Datalink B2 Write MOV Move Source 0010 Dest N19:5 1< N20:5 1< Station 1 Datalink C1 Datalink C1 (parameter 304) set to Preset Speed 1 (parameter 101). N19:6 is controlled elsewhere in the user program.
Station 1 Datalink D1 Datalink D1 (parameter 306) set to Preset Speed 3 (parameter 103). N19:8 is controlled elsewhere in the user program. Station 1 Datalink D1 Write MOV Move Source 0013 Dest N19:8 300< N20:8 300< Station 1 Datalink D2 Datalink D2 (parameter 307) set to Preset Speed 4 (parameter 104). 19:9 is controlled elsewhere in the user program. Station 1 Datalink D2 Write MOV Move Source 0014 Dest N19:9 400< N20:9 400< Figure 6.
6.9 Sample SLC Ladder Logic Station 2 Program Controlling the Logic Command word in the drive. B3:21 /* bits are controlled elsewhere in the user program.
Station 2 Speed Reference SP600 Speed Ref A Sel (parameter 90) needs to be set to "Network." N19:15 is controlled elsewhere in the user program. Station 2 Speed Reference Write MOV Move Source N19:15 8192 < Dest N20:15 8192 < 0006 Station 2 Datalink A1 Datalink A1 (parameter 300) set to Acceleration Time 1 (parameter 140). N19:16 is controlled elsewhere in the user program.
Station 2 Datalink B1 Datalink B1 (parameter 302) set to Jog Speed (parameter 100). N19:18 is controlled elsewhere in the user program. Station 2 Datalink B1 Write MOV Move Source 0009 Dest N19:18 100< N20:18 100< Station 2 Datalink B2 Datalink B2 (parameter 303) set to Stop Mode A (parameter 155). N19:19 is controlled elsewhere in the user program.
Station 2 Datalink C2 Datalink C2 (parameter 305) set to Preset Speed 2 (parameter 102). N19:21 is controlled elsewhere in the user program. Station 2 Datalink C2 Write MOV Move Source 0012 Dest N19:21 200< N20:21 200< Station 2 Datalink D1 Datalink D1 (parameter 306) set to Preset Speed 3 (parameter 103). N19:22 is controlled elsewhere in the user program.
6-22 PROFIBUS Communications Module
CHAPTER 7 Using Explicit Messaging (Parameter Protocol) Chapter 7 provides information and examples that explain how to use Explicit Messaging to monitor and configure the module and connected SP600 drive, as well as other peripherals. ! ATTENTION: The examples in this publication are intended solely for purposes of example. There are many variables and requirements with any application.
Refer to step 21 in chapter 5 to view the procedure for adding the “Parameter Access” module to a configuration. This maps four words input and output to the end of the I/O configuration, which is used as the request/response in the parameter message format (figure 7.2). Parameter 23 (Parameter Mode) in the PROFIBUS module is used to configure the parameter protocol that is active. The default protocol is the Parameter Protocol. 7.
7.3 Parameter Protocol This protocol uses four words in the PROFIBUS I/O area. Requests and responses are a handshake procedure and cannot be batched, meaning that if the master sends a request, it has to wait for the response before sending a new request.
7.3.1 Parameter Message Request Table 7.1 – Parameter Message Request Data Word 1 Description PNU - Parameter Number (Bit 0-10) The parameter number determines which parameter to access in the selected peripheral. Parameters 1-1023 can be accessed. Parameter numbers 1024 - 2048 are used to access the fault object. Parameter 1024 is equal to the latest fault, 1025 to the prior fault, and so on. SPM (Bit 11) Reserved - Should always bet set to 0.
7.3.2 Parameter Message Response Table 7.2 – Parameter Message Response Data Word Description 1 PNU - Parameter Number (Bit 0-10) Requested parameter number. SPM (Bit 11) Reserved - is always set to 0. RC - Response Code (Bit 12-15) 2 One of the following codes will be sent: 0 = No request 1 = Transfer parameter value (8-bit & 16-bit word) 2 = Transfer parameter value (32-bit word) 3-6 = Reserved 7 = Request rejected. Error message is found in word 3. See table below for fault number description.
7.3.3 Parameter Protocol Examples Read Examples Request Bit 15-12 Parameter Access RC Word 1 (PCA) Parameter Access Word 2 (IND) Parameter Access Word 3 (PVA) Parameter Access Word 4 (PVA) 11 SPM 15-12 RC 11 SPM 10-0 PNU Subindex Not Used Parameter value high (32-bit high word) Parameter value low (32-bit low word/ or 8-bit/16-bit value) Not Used SPM Not used PNU Parameter number to read Subindex Selects which DPI port to talk to (“0” = DPI Host, “5” = RECOMM-PBUS on SP600 drives).
tion (he x) Des Valu e crip ress Add SLC Par . Wo Acces rd s e sag Mes Command N20:10 1 N20:11 2 0 1000 hex = Read 8C hex = 140 dec (parameter 140) DPI Port 0 (DPI Host) N20:12 3 0 Not Used N20:13 4 0 Not Used N10:10 1 108C Transferring 16-bit parameter value ("1") Confirms Par. Number of the request ("8C") N10:11 2 0 Confirms Par. Access Word 2 of the request (DPI Port #) N10:12 N10:13 3 4 0 32 Not Used 32 hex = 50 dec = 5.
1 Reply tion (he x) Des Valu e crip ress Par . Wo Acces rd s SLC Add e sag Mes Command N20:10 1000 hex = Read 10F4 F4 hex = 244 dec (parameter 244) 0 DPI Port 0 (DPI Host) N20:11 2 N20:12 3 0 Not Used N20:13 4 0 Not Used N10:10 1 10F4 Transferring 16-bit parameter value ("1") Confirms Par. Number of the request ("F4") N10:11 2 N10:12 3 4 Confirms Par.
Write Examples Request Response Bit 15-12 11 10-0 Parameter Access RC SPM PNU Word 1 (PCA) Parameter Access Subindex Word 2 (IND) Parameter Access Parameter value high Word 3 (32 bit high word) (PVA) Parameter Access Parameter value low (32-bit low word/ Word 4 or 8-bit/16-bit value) (PVA) Request RC “2” (‘0010’ binary) to write a 8-bit or 16-bit parameter “3” (‘0011 binary) to write a 32-bit parameter SPM Not used PNU Parameter number being written Subindex Selects which DPI port to talk to (“0”= DPI
tion (he x) Des crip ress Par . Wo Acces rd s SLC Add e sag Mes Valu e 2000 hex = Change parameter value (word) 65 hex = 101 dec (parameter 101) DPI Port 0 (DPI Host) Command N20:10 1 2065 N20:11 N20:12 2 3 0 N20:13 4 64 N10:10 1 1065 Transferring 16-bit parameter value ("1") Confirms Par. Number of the request ("65") N10:11 2 0 Confirms Par. Access Word 2 of the request N10:12 3 0 Not Used N10:13 4 64 Confirms Par.
N20:11 2 5 N20:12 3 0 Reply 300F tion (he x) Des Valu e 1 crip ress Add SLC Par . Wo Acces rd s e sag Mes Command N20:10 3000 hex = Change parameter value (32-bit) F hex = 15 dec (parameter 15) DPI Port 5 (RECOMM-PBUS) Not Used N20:13 4 64 64 hex = 100 dec = 10.0 Hz N10:10 1 200F Transferring 32-bit parameter value ("2") Confirms Par. Number of the request ("F") N10:11 2 5 Confirms Par. Access Word 2 of the request N10:12 3 0 Confirms Par.
7.4 Sample SLC Ladder Logic- Station 1 Parameter Protocol This section of the routine is only needed if the application needs to perform Parameter Protocol Reads or Writes to Station 1. On power up, initialize the Parameter Protocol routine. Station 1 Par Prot Messaging Request B3:19 U 15 First Pass S:1 0015 15 This circuit utilizes the Parameter Protocol.
N10:10 is the Station 1 Response Parameter Access Word 1. It is < > 0 when a message has been received in response to a message request. If the response is >= 7000 hex (28672 decimal), then the module is responding that an error has occurred. In this case, the returned data in the response will contain a fault code and not parameter value data. The response message can be found at: N7:20 = PCA word = contains the RC and PNU N7:21 = Subindex = the DPI port # ("0"= Host or SP600 drive, "5" = RECOMM-PBUS, etc.
7.5 Sample SLC Ladder - Station 2 Parameter Protocol This section of the routine is only needed if the application needs to perform Parameter Protocol Reads or Writes to Station 2. Station 2 Par Prot Messaging Request B3:19 U 0 On power-up, initialize the Parameter Protocol routine. First Pass S:1 0015 15 This circuit utilizes the Parameter Protocol.
l N10:24 is the Station 2 Response Parameter Access Word 1. It is < > 0 when a message has been received in response to a message request. If the response is >= 7000 hex (28672 decimal), then the module is responding that an error has occurred. In this case, the returned data in the response will contain a fault code and not parameter value data.
7-16 PROFIBUS Communications Module
CHAPTER 8 Troubleshooting the PROFIBUS Module and Network Chapter 8 contains information for troubleshooting the PROFIBUS module and the network. 8.1 Understanding the Status Indicators The PROFIBUS module has three status indicators. They can be viewed on the module or through the drive cover. (See figure 8.1.) ➀ ➁ ➂ ➃ ➀ ➁ ➂ Number Status Indicator Description Refer to... DRIVE DPI Connection Status Section 8.1.1 MS Module Status Section 8.1.2 NET A PROFIBUS Status Section 8.1.
8.1.1 DRIVE Status Indicator Table 8.1 – DRIVE Status Indicator: State Definitions Status Off Cause The module is not powered or is not connected properly to the drive. Flashing The module is not Red receiving a ping message from the drive. Solid Red Securely connect the module to the drive using the ribbon cable. • • Apply power to the drive. • Cycle power to the drive. Verify that cables are securely connected.
8.1.2 MS Status Indicator Table 8.2 – MS Status Indicator: State Definitions Status Off Cause The module is not powered. Flashing The module has Red failed the firmware test. Solid Red The module has failed the hardware test. Flashing The module is Green operational but is not transferring I/O data. Solid Green The module is operational and transferring I/O data. Corrective Action • Securely connect the module to the SP600 drive using the ribbon cable. • Apply power to the drive and network.
8.1.3 NET A Status Indicator Table 8.3 – NET A Status Indicator: State Definitions Status Off Cause The module is not powered or is not connected properly to the network. Flashing Error in PROFIBUS Red configuration. 8-4 Corrective Actions • Securely connect the module to the drive using the Internal Interface cable and to the network using a PROFIBUS cable. • Correctly connect the PROFIBUS cable to the PROFIBUS connector. • • Apply power to the drive. Re-configure the PROFIBUS module.
8.2 Module Diagnostic Items Table 8.4 lists diagnostic items that can be accessed using VS Utilities software or the LCD OIM. Table 8.4 – Module Diagnostic Items No. Event Description 1 Common Logic Cmd The current value of the Common Logic Command being transmitted to the host. 2 Prod Logic Cmd The current value of the Product-specific Logic Command being transmitted to the host. 3 Reference The current value of the Product-specific Reference being transmitted to the host.
Table 8.4 – Module Diagnostic Items (Continued) No. Event Description 16 Datalink A2 Out The current value of Datalink A2 being received from the host. 17 Datalink B1 Out The current value of Datalink B1 being received from the host. 18 Datalink B2 Out The current value of Datalink B2 being received from the host. 19 Datalink C1 Out The current value of Datalink C1 being received from the host. 20 Datalink C2 Out The current value of Datalink C2 being received from the host.
8.3 Viewing and Clearing Events The module maintains an event queue that reports the history of its actions. You can view the event queue using an LCD OIM or VS Utilities software. To View and Clear Events Using an LCD OIM Use the procedure shown in figure 8.2 to access the event queue using the LCD OIM. Note that you must have the RECOMM-PBUS module as the selected device to access the event queue.
Table 8.5 – Event Codes and Descriptions Code Event Description 8 Online @ 125k bps The module and DPI product are communicating at 125 kbps. 9 Online @ 500 kbps The module and DPI product are communicating at 500 kbps. 10 Bad Host Flt The module was connected to an incompatible product. 11 Dup. Port Flt Another peripheral with the same port number is already in use. 12 Type 0 Login The module has logged in for type 0 control.
APPENDIX A Technical Specifications Communications Network Protocol Data Rates Drive Protocol Data Rates PROFIBUS 9.6K, 19.2K, 45.45K, 73.75K, 187.5K, 500K, 1.5M, 3M, 6M, 12M. The module has auto baud rate detection. DPI 125K or 500K Electrical Consumption 370 mA at 5 V supplied through the drive. Mechanical Dimensions Height Length Width 19 mm (0.75 in) 86 mm (3.33 in) 78.5 mm (3.
A-2 PROFIBUS Communications Module
APPENDIX B PROFIBUS Module Parameters The following information is provided for each PROFIBUS module parameter along with its description: Parameter Number: Unique number assigned to each parameter. Parameter Name: Unique name assigned to each parameter. Range: Predefined parameter limits or selections. Default: Factory default setting. Type: Read Only or Read/Write Reset Required: Module must be reset before parameter value is recognized.
1 DPI Port Range: 0 to 7 Default: 0 Type: Read Only Reset Required: N/A Displays the port to which the module is connected. This will usually be port 5. 2 DPI Data Rate Range: 0 = 125 kbps 1 = 500 kbps Default: 0 = 125 K Type: Read Only Reset Required: N/A Displays the data rate used by the drive. This data rate is set in the drive and the module detects it. This will usually be 500 Kbps.
5 P-DP Rate Actual Range: 0 = 9.6 K 1 = 19.2 K 2 = 45.45 K 3 = 93.75 K 4 = 187.5 K 5 = 500K 6 = 1.5 M 7=3M 8=6M 9 = 12 M 10 = Off-line Default: N/A Type: Read Only Reset Required: N/A Displays the PROFIBUS data rate. 6 Ref/Fdbk Size Range: 0 = 16-bit 1 = 32-bit Default: 0 = 16-bit Type: Read Only Reset Required: N/A Displays the size of the Reference/Feedback. The drive determines the size of the Reference/Feedback.
8 Reset Module Range: 0 = Ready (No action) 1 = Reset Module 2 = Set Defaults (Restores module to factory-default settings) Default: 0 = Ready Type: Read/Write Reset Required: No No action if set to “Ready.” Resets the module if set to “Reset Module.” Restores the module to factory default settings if set to “Set Defaults.” This parameter is a command. It will be reset to “0 = Ready” after the command has been performed.
10 Idle Flt Action Range: 0 = Fault 1 = Stop 2 = Zero Data 3 = Hold Last 4 = Send Flt Cfg Default: 0 = Fault Type: Read/Write Reset Required: No Sets the action that the module and the drive take if the module detects that the scanner is idle because the controller was switched to program mode. This setting is effective only if the I/O that controls the drive is transmitted through the module.
12 DPI I/O Active Range: See figure B.2. Default: See figure B.2. Type: Read Only Reset Required: N/A No t No Used t No Used tU Da sed ta Da link D t Da alink ta C Da link B ta Cm link A d/R ef Sets the I/O that the module is actively transmitting. The value of this parameter will usually be equal to the value of DPI I/O Config (parameter 11). x x x 0 0 0 0 1 7 6 5 4 3 2 1 0 1 = I/O Enabled 0 = I/O Disabled x =Not Used Figure B.
14 Flt Cfg Ref Range: 0 to 4294967295 Default: 0 Type: Read/Write Reset Required: No Sets the Reference data that is sent to the drive if any of the following is true: • Comm Flt Action (parameter 9) is set to Send Flt Cfg and communications are disrupted. • Idle Flt Action (parameter 10) is set to Send Flt Cfg and the scanner is put into Program mode. Important: If the drive uses a 16-bit Reference, the most significant word of this value must be set to zero (0) or a fault will occur.
23 Parameter Mode Range: 0 = Par Prot 1 = DPI Par Prot Default: 0 = Par Prot Type: Read/Write Reset Required: No Sets the format used when performing explicit messages: • Par Prot (Parameter Protocol) is used to read or write single parameters. • DPI Par Prot is reserved for future use. Performing explicit messaging requires the “Parameter Access” module to be added when configuring the node with a network software tool.
APPENDIX C Logic Command/ Status Words Appendix C provides the definitions of the Logic Command/Logic Status words that are used for some products that can be connected to the PROFIBUS module. If you do not see the Logic Command/Logic Status for the product that you are using, refer to your product’s documentation. C.
Logic Bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Command x x x x 1 Description Reference Select 000 = No Command 001 = Ref. 1 (Ref A Select) 010 = Reserved 011 = Ref. 3 (Preset 3) 100 = Ref. 4 (Preset 4) 101 = Ref. 5 (Preset 5) 110 = Ref. 6 (Preset 6) 111 = Ref. 7 (Preset 7) MOP Decrement 0 = Not Decrement 1 = Decrement A 0 = Not Stop condition (logic 0) must first be present before a 1 = Start condition will start the drive.
Logic Bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 x x x x Logic Command/Status Words Status Reference Description 0000 = Ref A Auto 0001 = Reserved 0010 = Preset 2 Auto 0011 = Preset 3 Auto 0100 = Preset 4 Auto 0101 = Preset 5 Auto 0110 = Preset 6 Auto 0111 = Preset 7 Auto 1000 = Term Blk Manual 1001 = DPI 1 Manual 1010 = DPI 2 Manual 1011 = DPI 3 Manual 1100 = DPI 4 Manual 1101 = DPI 5 Manual 1110 = DPI 6 Manual 1111 = Jog Ref C-3
C-4 PROFIBUS Communications Module
GLOSSARY communications module - Devices such as drives, controllers, and computers usually require a module to provide a communication interface between them and a network such as PROFIBUS. A module reads data on the network and transmits it to the connected device. It also reads data in the device and transmits it to the network. The RECOMM-PBUS PROFIBUS module is an module that connects SP600 drives to a PROFIBUS network.
DPI - A peripheral communication interface used by various Reliance Electric drives and power products. DPI peripheral - A device that provides an interface between DPI and a network or user. Peripheral devices are also referred to as “modules” and “modules.” The serial converter and SP600 OIM are examples of DPI peripherals. DPI product - A device that uses the DPI communications interface to communicate with one or more peripheral devices. For example, a motor drive such as a SP600 drive is a DPI product.
Logic Command/Logic Status - The Logic Command is used to control the SP600 drive (e.g., start, stop, direction). It consists of one 16-bit word of input to the module from the network. The definitions of the bits in this word depend on the drive. The Logic Status is used to monitor the SP600 drive (for example, operating state, motor direction). It consists of one 16-bit word of output from the module to the network. The definitions of the bits in this word depend on the drive.
scanner - A separate module (of a multi-module controller) or a built-in component (of a single-module controller) that provides communication with modules connected to a network. Also called a master. See also controller. status indicators - LEDs that are used to report the status of the module, network, and drive. They are on the module and can be viewed on the front cover of the drive when the drive is powered.
INDEX A assistance, technical, 1-2 C cables, Internal Interface, 3-5 Comm Flt Action (9), B-4 communications specifications, A-1 D Datalink Size (7), B-3 Datalinks, using, 6-4 dimensions, module, A-1 DPI connector, 2-1 DPI Data Rate (2), B-2 DPI I/O Active (12), B-6 DPI I/O Config (11), B-5 DPI ports, 3-5 DRIVE status indicator, 8-2 E Equipment required for installation, 2-2 events codes and descriptions, 8-7 viewing and clearing, 8-7 examples configuring a simple network, 5-2 datalinks, 6-6 parameter pr
N NET A status indicator, 8-4 network connecting module to, 3-2 connectors, 3-3 termination, 3-4 troubleshooting, 8-1 to 8-8 node address setting with parameter, 4-2 setting with switches, 3-1 switches, location of, 2-1 protocol, A-1 publications, related, 1-2 R RECOMM, 3-3 Ref/Fdbk Size (6), B-3 Reference/Feedback, using, 6-4 regulatory compliance, A-1 Reset Module (9), B-4 resetting the module, 4-6 Rockwell Automation, getting assistance from, 1-2 O OIM (Operator Interface Module) configuring the modul
U.S. Drives Technical Support Tel: (1) 262.512.8176, Fax: (1) 262.512.2222, Email: support@drives.ra.rockwell.com, Online: www.ab.com/support/abdrives Publication D2-3479-1– November 2002 Copyright © 2002 Rockwell Automation, Inc. All Rights Reserved. Printed in USA.