AG090115 How to configure SIMATIC STEP7 V5.5 to read cyclic data from Objective: To use Siemens SIMATC S7300 PLC to read data from MultiRanger/HydroRanger 200 HMI through SmartLinx PROFIBUS communication module. Equipment Description SIMATIC S7300 S7-315 PLC SIMATIC Step7 V5.5 SP4 SmartLinx PROFIBUS module MultiRanger or HydroRanger 200 HMI Code example for the S7300 Step7 V5.5 SP4 MLFB Part Number 6ES7 315-2AG10-0AB0 A5E35778741 While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied. Overview This application guide is an addition to the operating instructions for the MultiRanger/HydroRanger 200 HMI. It focuses on the configuration of SIMATC S7300 PLC to read the cyclic data from MultiRanger/HydroRanger 200 HMI over PROFIBUS. During the reading process, the PLC will cyclically exchange data with the PROFIBUS slave and present the process data to the user. Hardware set-up 1. 2. Open the MultiRanger/HydroRanger 200 HMI lid. Mount the SmartLinx module into the socket and fix it in place with the two fixing screws (included). Siemens Level and Weighing 1954 Technology Drive, P.O. Box 4225 Peterborough, Ontario K9J 7B1 / Canada Tel.: (705) 745-2431 Fax: (705) 741-0466 www.siemens.com/sensorsystems
Mounting hole Module connector (underside, 34-pin) to Siemens device Mounting hole Mounting hole Terminal block Termination switch Node address switches Status indicators Process data Description Data type Byte Word Point data PV point 1 in programmed units Float 0 0 PV point 1 status byte Word 4 2 PV point 1 signal strength Word 6 3 AG090115 Page 2 of 9
Description Data type Byte Word PV point 2 in programmed units Float 8 4 PV point 2 status byte Word 12 6 PV point 2 signal strength Word 14 7 PV point 3 in programmed units Float 16 8 PV point 3 status byte status Word 20 10 I/O Digital inputs Word 22 11 Relay outputs Word 24 12 ma input 1 Float 26 13 Totalizer 1 Double 30 15 Totalizer 2 Double 34 17 How to configure the SIMATC S7300 PLC 1. 2. NOTE: this guide assumes the user is familiar with SIMATIC STEP7. Launch Step7, select File, and then New. Enter a project name in the project window and click OK. In this example, the project name is Hydroranger200. AG090115 Page 3 of 9
3. In the project window, right click on the project name, click on Insert New Object and then select SIMATIC 300 Station. 4. From the Options menu, select Install GSD Files and then browse to the location of the GSD file. Click Install. 5. Double click on the Hardware option in the main window to open the hardware configuration screen. AG090115 Page 4 of 9
6. Once in the hardware configuration screen, select the S7300 rack by clicking on the RACK-300 folder in the catalogue tree on the right side of the screen. Now click on the Rail and drag it over to the rack in the main window. 7. Then from the catalogue tree, select the S7300 CPU that you are currently using. In the example below, we are using the S7-315 2 DP CPU. 8. Drag the CPU over to the rack in the main screen. You will then see the window shown below. AG090115 Page 5 of 9
9. 10. In the pop-up window, click on the Parameters tab and enter the master address. Then click on New to add the PROFIBUS network. A new window will appear. In the new window, enter information into the fields as shown below. Click OK to go back to the main screen. The PROFIBUS network has been added to the CPU. The main hardware window should now look like this: AG090115 Page 6 of 9
11. From the catalogue tree, select the PROFIBUS card by clicking through PROFIBUS DP, Additional Field Devices, General, Anybus IM. 12. Drag the Anybus device onto the PROFIBUS network shown below. A new window will appear. 13. In the new window, enter the slave address for the MultiRanger/HydroRanger 200 HMI and click OK. Note: The address here should match the address of the rotary switches on the SmartLinx card. AG090115 Page 7 of 9
14. Now, in the catalogue tree, highlight the Anybus device you have just added. Drag the relevant modules from the catalogue into the slots to make up 19 Words of input. 15. 16. 17. 18. 19. From the Station menu, select Save and Compile. From the PLC menu, select Download to download the configuration to the PLC. Close the hardware configuration window. Select Blocks from the main project window. Right click on the Blocks folder, select Insert New Object and then choose Variable Table. 20. Enter a name for the VAT table or leave as the default VAT1. AG090115 Page 8 of 9
21. 22. In the Blocks folder, double click on the VAT Table to open it. Create a VAT table like the one shown below. 23. Review the values in the VAT table and confirm that they are correct for your application. AG090115 Page 9 of 9