Peter Nachtwey
Member
I am doing some S7 programming. This is the first in 6 years.
I got the Profibus DP interface to the motion controller working.
Look at what this takes!!! If you don't know where to click you are screwed. Look at step 12. How is one supposed to guess that? Why can't I add the RMC from just one dialog box where I select the node, how many registers are used, and where they appear in the S7? NOOOOOOOOOO. You must hunt down all the menus.
RMC150 Profibus DP Configuratioin
1. Create the S7 project.
2. Click on Hardware in the project directory. This opens up HW COnfig.
3. Import the RMC150 GSD file. First download the file from here
http://www.deltamotion.com/dloads/downloads.php?category=rmc150&subcategory=Utilities
or
http://www.deltamotion.com/files/rmc150gsd.zip
4. Extract the file into a directory.
5. In the Step 7 HW Config menu go to Options->Install GSD File....
6. Browse to the directory where the GSD file was extracted to.
7. Read the Readme.TXT DELT0AC6.GSD. This file says were to copy the .gsd and .bmp file but it is better to use the STEP7 GSD installation for the Step 7. The .bmp is an icon for the RMC150 and the Step7 HW Config program will install the .bmp file too.
8. Close the GSD installation dialog box.
9. Add any other modules here.
10. Close the HW Config
11. Click on the Configure Network button on the Simatic Manager bar.
12. On the S7 Icon there are two Profibus DP connections. On the left right click or alt enter and configure the MPI connection.
13. One the right Connection do the same. I bumped the speed up to 12 MB/sec.
14. One the right under Profibus DP->Additional Field Devices->General->Motion Controller you will see the RMC150 and RMC75 too if that is also installed.
15. Click on the right Profibus DP conneciton on the S7 icon and then drag the RMC150 from the right hand selection pane to the Profibus DP network. A dialog box should open that says "PROFIBUS Interface RMC150 Motion Cont". The word controller is truncated on my computer.
16. Select the Node address. I selected 5. Don't use nodes lower than 3 as these are normally reserved for the PLC, HMIs and programming masters.
17. Hit OK and the RMC150 icon should appear connected to the network.
18. Right click on the right side of the RMC150 and then on open object. A message may be displayed about saving away info. Another image of the network should appear.
19. One the right pane where the Profibus DP->Additional Field Devices->General->Motion Controller selection is click on the RMC150. This will expand to provide more options. Choose the number of I/O registers here. I chose 32 in and out. This may be a problem for some Profibus DP masters as they may not support 32 registers in and out. In this case check with the Profibus DP master documentation to see the maximum number of CONSISTENT I/O registers supported. Data consistency is important as it makes sure all the data in the register get sent at the same time. In the S7 SFC 14 and 15 make sure the data is transfered in a consistent manner.
DO NOT ACCESS THE PERIPHERAL REGISTERS DIRECTLY!!!!
Double clicking on the register options will assign default addresses.
20. I double clicked on the I address and a "Properties DP Slave" dialog box opens. I changed my input and output address to 272 to 399. 32 32 bit registers requires 128 bytes. As noted above, not all Profibus DP master will support that many I/O bytes for one device.
21 In the HW Config station menu I clicked on save and compile.
22 Close windows and get back the the Simatic Manager.
23 Download the program to the RMC. The green light on the RMC150's Profibus DP card should now be green. SUCCESS!!!!!
This is too much just to get the green light on the Profibus DP light to turn on.
Now I must write the program. I inserted SFC13 which is the Profibus DP slave diagnostics. The function just says SFC13 and the inputs are labeled IN0 and IN1. How does one get the symbols? Do I have to enter them? I know I had symbols on my previous example but I don't remember how to get them.
One the main menu->View->Display with-> I have all the options checked and still no symbols. The documentation for SFC13 references a REQ and LADDR. I am assuming these are IN0 and IN1. Finally, there is no example.
More hate and discontent coming. It took 6 hours just to get the USB to MPI connector working. I hate being forced to waste my time in an inferior programming environment. Meanwhile I have customers waiting for answers.
BTW, is the S7-313 limited in how many registers it can send in and receive over Profibus DP?
I got the Profibus DP interface to the motion controller working.
Look at what this takes!!! If you don't know where to click you are screwed. Look at step 12. How is one supposed to guess that? Why can't I add the RMC from just one dialog box where I select the node, how many registers are used, and where they appear in the S7? NOOOOOOOOOO. You must hunt down all the menus.
RMC150 Profibus DP Configuratioin
1. Create the S7 project.
2. Click on Hardware in the project directory. This opens up HW COnfig.
3. Import the RMC150 GSD file. First download the file from here
http://www.deltamotion.com/dloads/downloads.php?category=rmc150&subcategory=Utilities
or
http://www.deltamotion.com/files/rmc150gsd.zip
4. Extract the file into a directory.
5. In the Step 7 HW Config menu go to Options->Install GSD File....
6. Browse to the directory where the GSD file was extracted to.
7. Read the Readme.TXT DELT0AC6.GSD. This file says were to copy the .gsd and .bmp file but it is better to use the STEP7 GSD installation for the Step 7. The .bmp is an icon for the RMC150 and the Step7 HW Config program will install the .bmp file too.
8. Close the GSD installation dialog box.
9. Add any other modules here.
10. Close the HW Config
11. Click on the Configure Network button on the Simatic Manager bar.
12. On the S7 Icon there are two Profibus DP connections. On the left right click or alt enter and configure the MPI connection.
13. One the right Connection do the same. I bumped the speed up to 12 MB/sec.
14. One the right under Profibus DP->Additional Field Devices->General->Motion Controller you will see the RMC150 and RMC75 too if that is also installed.
15. Click on the right Profibus DP conneciton on the S7 icon and then drag the RMC150 from the right hand selection pane to the Profibus DP network. A dialog box should open that says "PROFIBUS Interface RMC150 Motion Cont". The word controller is truncated on my computer.
16. Select the Node address. I selected 5. Don't use nodes lower than 3 as these are normally reserved for the PLC, HMIs and programming masters.
17. Hit OK and the RMC150 icon should appear connected to the network.
18. Right click on the right side of the RMC150 and then on open object. A message may be displayed about saving away info. Another image of the network should appear.
19. One the right pane where the Profibus DP->Additional Field Devices->General->Motion Controller selection is click on the RMC150. This will expand to provide more options. Choose the number of I/O registers here. I chose 32 in and out. This may be a problem for some Profibus DP masters as they may not support 32 registers in and out. In this case check with the Profibus DP master documentation to see the maximum number of CONSISTENT I/O registers supported. Data consistency is important as it makes sure all the data in the register get sent at the same time. In the S7 SFC 14 and 15 make sure the data is transfered in a consistent manner.
DO NOT ACCESS THE PERIPHERAL REGISTERS DIRECTLY!!!!
Double clicking on the register options will assign default addresses.
20. I double clicked on the I address and a "Properties DP Slave" dialog box opens. I changed my input and output address to 272 to 399. 32 32 bit registers requires 128 bytes. As noted above, not all Profibus DP master will support that many I/O bytes for one device.
21 In the HW Config station menu I clicked on save and compile.
22 Close windows and get back the the Simatic Manager.
23 Download the program to the RMC. The green light on the RMC150's Profibus DP card should now be green. SUCCESS!!!!!
This is too much just to get the green light on the Profibus DP light to turn on.
Now I must write the program. I inserted SFC13 which is the Profibus DP slave diagnostics. The function just says SFC13 and the inputs are labeled IN0 and IN1. How does one get the symbols? Do I have to enter them? I know I had symbols on my previous example but I don't remember how to get them.
One the main menu->View->Display with-> I have all the options checked and still no symbols. The documentation for SFC13 references a REQ and LADDR. I am assuming these are IN0 and IN1. Finally, there is no example.
More hate and discontent coming. It took 6 hours just to get the USB to MPI connector working. I hate being forced to waste my time in an inferior programming environment. Meanwhile I have customers waiting for answers.
BTW, is the S7-313 limited in how many registers it can send in and receive over Profibus DP?