Sunteți pe pagina 1din 13

QUESTION: How can you link an S7-300 module as DP slave to a DP/PA-Link in the hardware configuration of STEP 7?

ANSWER: The normal way of linking the above-mentioned modules from the PROFIBUS-DP catalog of the hardware configuration of STEP 7 to the DP master segment of the DP/PA-Link is not possible. Linking the S7-300 as slave to a DP/PA-Link is only possible via the GSD files. When handling CPU-I slaves via GSD file you must make sure as user that the I/O areas match each other. First download the GSD files required for the above-mentioned modules onto your STEP 7 system. If these GSD files are already incorporated in your hardware configuration, you can skip this step. The GSD files are available in the Internet in the Entry ID: 113652 "PROFIBUS GSD files : SIMATIC". Via the menu item "Options > Install New GSD" you can incorporate the GSD files in your hardware configuration. Please close your S7 station before doing this.

Fig. 1: Installation of the new GSD file of the catalog Open your hardware configuration again and configure the module IM157 (e.g. the DP/PA-Link with MLFB: 6ES7157-0AA81-0XA0). From the PROFIBUS DP catalog/subdirectory "DP/PA link" you can link this module directly to the segment of the redundant master system using drag-and-drop.

Fig. 2: Selecting the DP/PA link in the HW Config Specify a PROFIBUS address for the DP/PA-Link and select "Interface Module for PROFIBUS-DP" (see Fig. 3).

Fig. 3: Selecting the interface module in the HW Config You will then find the S7-300 modules in the PROFIBUS DP catalog under "Additional Field Devices" (see Fig. 4).

Fig. 4: Selecting the S7-300 module Now use drag-and-drop to copy these modules to the master system. Make sure here that you select the right bus system (in Fig. 5: PROFIBUS (5)) and a PROFIBUS address. If you use the GSD files available at the time, then the CPU 315-2 DP is incorporated as DPV0 slave.

Fig. 5: Configuration in the HW Configuration Now you still have to create the HW configuration for the CPU being operated as DP slave. In the case of a standard slave, you usually only have to set the DP address and the baud rate. Create an S7-300 station according to your HW configuration. Connect the DP interface to a bus. (You now have to select a bus other than the one on your DP/DP link, because you have already assigned the address for the DP slave here). Set the DP interface of the CPU to slave mode (double-click DP Interface > Operating Mode tab). Please make sure that the PG functions are not activated.

Fig. 6: Settings as DP slave Set the bus parameters for the bus. Use the same bus parameters as you have set on the secondary side of your DP/DP link. Load the configuration into the DP slave CPU. Keywords: Interface modules, I/O devices

Which options do you have for accessing PROFIBUS devices from a PC behind an IWLAN/PB link PN IO or an IE/PB link PN IO? Display part number

Configuration notes:

The figure below describes the hardware setup and the connection of the devices.

Fig. 01 Essentially, you have two options: 1. Configure the PC as PROFINET IO controller and link the IE/PB Link or IWLAN/PB Link as PROFINET IO device. DP slaves and I slaves are accessed via the DP master. 2. Configure the PC as PC station and link the IE/PB Link or IWLAN/PB Link as gateway. You can then access CPUs on the PROFIBUS with an OPC client via routed S7 connections. It is not possible to access the DP slaves and I slaves. How to configure your IWLAN/PB link or IE/PB link as a PROFINET device:

No. Procedure 1 Use STEP 7 or NCM PC to create a new project with a PC station. 2 In the SIMATIC Manager, assign a device name and IP address to the IE/PB Link or IWLAN/PB Link via the menu "PLC > Edit Ethernet Node...".

Fig. 02 3 Open the hardware configuration of the PC station. Insert an OPC server and an IE network card into the PC station by drag-and-drop.

Fig. 03 4 In the PC station, right-click on the IE network card and select the menu "Insert PROFINET IO System" to insert a new PROFINET IO system.

Fig. 04 5 In the hardware catalog, select the IE/PB link or IWLAN/PB link under "PROFINET IO > Gateway" and add it to the PROFINET IO system by drag-and-drop. The IE/PB Link or IWLAN/PB Link is now configured as a PROFINET IO device.

Fig. 05 6 In the Properties dialog of the IE/PB Link or IWLAN/PB Link, you enter the device name and IP address that you have already assigned to the device.

Fig. 06

7 Configure the DP slaves on the PROFIBUS DP master system. In the example, an S7-300 CPU is configured as a DP slave.

Fig. 07 8 Save and compile the configuration. Then load the configuration into the PC station or into the controller if you are using an S7-300 or S7-400 as PROFINET IO controller. Note: Bear in mind that I slaves need to be configured separately. 9 Using an OPC client, you can now access the inputs and outputs on the PROFIBUS slave via PROFINET IO.

Fig. 08 Note: Make sure that the inputs and outputs are reversed. If you write to output byte 0 in the slave, input byte 0 must be queried in the OPC client in order to obtain the data. STEP 7 project:

PN IO.zip ( 502 KB ) Note: If you want to use an IE/PB Link configured as a gateway as PROFINET IO device, then you must first reset the IE/PB Link to the factory settings via the NCM diagnostics (special diagnostics) before configuring it as PROFINET IO device. It is not possible to reset in the SIMATIC Manager via the menu "PLC > Edit Ethernet Node...". How to configure your IWLAN/PB link or IE/PB link as a gateway:

No. Procedure 1 Use STEP 7 or NCM PC to create a new project with a PC station. 2 Open the hardware configuration of the PC station. Insert the OPC server and an IE network card into the PC station by drag-and-drop (see Fig. 03). 3 In the SIMATIC Manager, assign a device name and IP address to the IE/PB Link or IWLAN/PB Link via the menu "PLC > Edit Ethernet Node..." (see Fig. 02). 4 Insert a SIMATIC S7-300 as new object in the project. 5 Open the hardware configuration of the SIMATIC S7-300 station. 6 Do not insert a rack, but select the IE/PB Link or IWLAN/PB Link in the hardware catalog under "SIMATIC 300 - Gateway". Add the device directly to slot 0 by drag-and-drop. In the hardware configuration, enter the IP address already assigned and a PROFIBUS address for the IE/PB Link or IWLAN/PB Link.

Fig. 09 7 Configure all the devices and for the OPC server, configure the S7 connection in NetPro for data communication between PC station and S7-300 station connected to the PROFIBUS. We configure a single, unilaterally configured connection in this example. Specify the S7-300 CPU as the OPC server's connection partner.

Fig. 10 8 Load all the configurations into the controller, PC station and into the IE/PB Link or IWLAN/PB Link. 9 You can then access the data of the devices on the PROFIBUS with an OPC client via the configured S7 connection.

Fig. 11 STEP 7 project:

S7_Connection.zip ( 485 KB ) Note: If you want to use and configure an IE/PB Link configured as PROFINET IO device as a gateway, then you must first reset the IE/PB Link to the factory settings via the NCM diagnostics (special diagnostics) before configuring it as gateway. It is not possible to reset in the SIMATIC Manager via the menu "PLC > Edit Ethernet Node...". Further information: You can find out how to commission an IWLAN/PB Link PN IO in the manual "Gateway IWLAN/PB Link PN IO" in Entry ID: 21379908. You can find out how to commission an IE/PB link PN IO in the manual "Gateway IE/PB Link PN IO for Industrial Ethernet" in Entry ID: 19299692.

S-ar putea să vă placă și