FAQ Communication over PROFIBUS Communication over PROFIBUS FAQ
Table of Contents Table of Contents... 2 Question...2 How do I configure a PC station as DP Slave interfacing to a S7 station (as DP Master) for the SIMATIC NET OPC server with the SIMATIC NET PC Software?... 2 Answer... 2 The instructions and notes listed in this document provide a detailed answer to this question.... 2 1 Assignment of tasks... 3 1.1 Condition... 3 2 Configuration of the PC station... 4 3 Interfacing the PC station (DP slave) to the S7 station (DP master)... 11 Rules... 14 4 Start of the OPC Scout... 16 5 History... 20 This entry is from the Internet offer of Siemens AG, Automation and Drives, Service & Support. Clicking the link below directly displays the download page of this document. http://support.automation.siemens.com/ww/view/en/16650883 Question Answer How do I configure a PC station as DP Slave interfacing to a S7 station (as DP Master) for the SIMATIC NET OPC server with the SIMATIC NET PC Software? The instructions and notes listed in this document provide a detailed answer to this question. V1.0 10.03.2008 2/20
1 Assignment of tasks In this example a CP5611 is used that implements the communication over the OPC server as DP slave with a S7 station as DP master on PROFIBUS. NOTE The method described in these instructions also applies to the communications processors CP 5511, CP 5512 and CP5621. 1.1 Condition There are the following configuration tools: NCM PC: NCM PC is supplied with the SIMATIC NET CD and allows you to create PC projects and open STEP 7 projects. It is, however, not possible to edit S7 blocks in the STEP 7 project with this software. STEP 7: STEP 7 is a separate software package with which you can create S7-400, S7-300 and PC projects. S7 blocks can be edited with this software. It `s assumed that STEP 7 is installed and that the project engineering for the DP master already exists (for example STEP 7 project with the configuration of the S7 station). If the DP master is a PC station instead of a S7 station, the project engineering can also be created with NCM PC. In chapter 2 Configuration of the PC station is described the configuration of the PC station so that you can use it as DP slave on a S7 station, which works as DP master. V1.0 10.03.2008 3/20
2 Configuration of the PC station After successful completion of the hardware and software installation of the SIMATIC NET CD and the configuration tool and after restarting your computer, you start NCM PC or STEP 7 with "Start (in Windows XP: All Programs ) SIMATIC SIMATIC Manager or SIMATIC NCM PC Manager or using the desktop icon of the same name. Open the STEP 7 project with the configuration of the S7 station as DP master. Figure 2-1 opening STEP 7 project Confirm the selection of the project (in the example: "S7300") with OK. The project is opened. V1.0 10.03.2008 4/20
Figure 2-2 inserting the PC station With the menu command "Insert Station SIMATIC PC-Station" you insert the PC station. Figure 2-3 changing the name of the PC station V1.0 10.03.2008 5/20
Give the PC station you have just inserted the same name as your computer (in the example: "PC_Station"). Now open the hardware configuration of the PC station by selecting the PC station, then pressing the right mouse button and selecting "Open Object". Figure 2-4 hardware configuration of the PC station You will see an empty rack. If you cannot see the hardware catalog, click on the button marked in red. V1.0 10.03.2008 6/20
Figure 2-5 selecting the modules from the hardware catalog Now place your PC modules in this rack (for example by dragging them from the hardware catalog). The following dialog appears automatically after you insert the module in the PC station. Figure 2-6 address assignment dialog V1.0 10.03.2008 7/20
You have to configure the DP master and DP slave on the same PROFIBUS network. For this reason select the PROFIBUS network to which the DP master is connected. Figure 2-7 property view of the CP5611 register General Now the CP5611 is connected to the same PROFIBUS network like the DP master. Change to the register Operating Mode in the property view of the CP5611. V1.0 10.03.2008 8/20
Figure 2-8 property view of the CP5611 register Operating Mode Activate the function DP slave, to use the CP5611 as DP slave. In the selection box Assigned application you have to select the entry OPC Server. Confirm the dialog with OK. Figure 2-9 hardware configuration projecting the CP5611 V1.0 10.03.2008 9/20
Select the OPC server in the hardware catalog and then drag it to any slot. Save and compile the configuration with the menu command Station Save and Compile. At that time the DP slave isn t interfaced to a DP master. For this reason the following message appears while saving and compiling the hardware configuration of the PC station. Figure 2-10 inconsistency of the system data The system data only becomes consistent after the PC station has been interfaced to the S7 station. V1.0 10.03.2008 10/20
3 Interfacing the PC station (DP slave) to the S7 station (DP master) Open the existing STEP 7 project with the SIMATIC Manager. Figure 3-1 opening the STEP 7 project The project includes the S7 station and the configured PC station. NOTE In this example is used a S7-300 station as DP master. If a S7-400 station is used as DP master the same procedure is implemental. Open the hardware configuration of the S7 station. In the hardware configuration of the S7-300 CPU you have to double-click on the interface DP. The property view of the DP interface opens. Change to the register Operating Mode and activate the function DP master. Confirm the property view of the DP interface with OK. V1.0 10.03.2008 11/20
Figure 3-2 hardware configuration of the S7 station In the hardware catalog got to PROFIBUS DP Configured Stations and select the PC station as DP Slave object. Following drag and drop the selected object to the configured PROFIBUS DP master system. The dialog for connecting the PC station to the DP master is displayed. Click on the button Connect and confirm the dialog with OK. V1.0 10.03.2008 12/20
Figure 3-3 connecting the PC station to the DP master Now select the PC station you just inserted. An empty slot table appears. In this example two universal modules are inserted in the empty rack table of the PC station. V1.0 10.03.2008 13/20
Figure 3-4 Specifying inputs and outputs for the DP slave Double-click on the inserted universal module in the slot table. Parameterize the universal module as output with 16 bytes length and the other universal module as input with 16 bytes length. Rules In the configuration data of the universal modules use only "Byte" as the unit. In the configuration data of the universal modules, use only "Unit" for the "Consistent over:" setting. Do not enter any empty modules. The maximum data length per module is 16 bytes. A maximum of 122 bytes inputs and maximum 122 bytes outputs are permitted in total. A maximum of 32 sub modules are permitted. V1.0 10.03.2008 14/20
Figure 3-5 configuring universal modules Save and compile the configuration with the menu command Station Save and Compile. Download the configuration into S7-300 station with the menu command PLC Download. After completing the download, close the hardware configuration of the S7-300 station. Following open the hardware configuration of the PC station. Save and compile the configuration of the PC station with the menu command Station Save and Compile. Download the configuration into PC station with the menu command PLC Download to Module. Exit the hardware configuration of the PC station. V1.0 10.03.2008 15/20
4 Start of the OPC Scout Start the OPC Scout with "Start SIMATIC SIMATIC NET OPC Scout". Double-click the OPC.SimaticNet for connection with the SIMATIC NET OPC server. In the dialog that appears, enter a suitable group name and confirm this with OK. Figure 4-1 connecting with the OPC server and enter a group name Double-click the OPC group which you have created. The "OPC-Navigator" opens. You will now see your protocols in the OPC Navigator. Double-click on "DP". The configured DP connection appears. V1.0 10.03.2008 16/20
Figure 4-2 OPC-Navigator Double-click on the configured DP-Slave, which means double-click on CP5611. You can see all objects which can be accessed. Figure 4-3 objects in the OPC-Navigator V1.0 10.03.2008 17/20
In the OPC-Navigator select the inputs Eingänge _I and move the existing item to the right-hand window with the button. Figure 4-4 defining itms for the inputs of the DP slave In the OPC-Navigator select the Outputs _Q and move the existing item to the right-hand window with the button. Figure 4-5 defining items fort he outputs of the DP slave Exit the OPC-Navigator with OK. The items are applied in den OPC Scout. If the quality of the created OPC items is good, your connection between PC station and S7 station is established. So it s possible to read and write respectively the OPC items. V1.0 10.03.2008 18/20
Figure 4-6 OPC Scout Double-click on the box value of the defined Input-Item to write values into S7 station. V1.0 10.03.2008 19/20
5 History Version Date Changes V 1.0 10.03.2008 First Issue V1.0 10.03.2008 20/20