Anda di halaman 1dari 20

FAQ Communication over PROFIBUS

Communication over PROFIBUS


FAQ

Communication over PROFIBUS

Entry-ID: 16650883

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 1.1 2 3
Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

Assignment of tasks....................................................................................... 3 Condition........................................................................................................... 3 Configuration of the PC station..................................................................... 4 Interfacing the PC station (DP slave) to the S7 station (DP master)........ 11 Rules .......................................................................................................... 14 Start of the OPC Scout ................................................................................. 16 History ........................................................................................................... 20

4 5

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
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?

Answer
The instructions and notes listed in this document provide a detailed answer to this question.

V1.0

10.03.2008

2/20

Communication over PROFIBUS

Entry-ID: 16650883

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 S7400, S7-300 and PC projects. S7 blocks can be edited with this software.

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883

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

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

Confirm the selection of the project (in the example: "S7300") with OK. The project is opened.

V1.0

10.03.2008

4/20

Communication over PROFIBUS

Entry-ID: 16650883
Figure 2-2 inserting the PC station

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

With the menu command "Insert insert the PC station.

Station

SIMATIC PC-Station" you

Figure 2-3 changing the name of the PC station

V1.0

10.03.2008

5/20

Communication over PROFIBUS

Entry-ID: 16650883 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

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883
Figure 2-5 selecting the modules from the hardware catalog

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883

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

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

Now the CP5611 is connected to the same PROFIBUS network like the DP master. Change to the register Operating Modein the property view of the CP5611.

V1.0

10.03.2008

8/20

Communication over PROFIBUS

Entry-ID: 16650883
Figure 2-8 property view of the CP5611 register Operating Mode

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

Activate the function DP slave, to use the CP5611 as DP slave. In the selection box Assigned applicationyou 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

Communication over PROFIBUS

Entry-ID: 16650883 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 isnt 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

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

The system data only becomes consistent after the PC station has been interfaced to the S7 station.

V1.0

10.03.2008

10/20

Communication over PROFIBUS

Entry-ID: 16650883

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

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883
Figure 3-2 hardware configuration of the S7 station

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

In the hardware catalog got to PROFIBUS DP Configured Stationsand 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 Connectand confirm the dialog with OK.

V1.0

10.03.2008

12/20

Communication over PROFIBUS

Entry-ID: 16650883
Figure 3-3 connecting the PC station to the DP master

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883
Figure 3-4 Specifying inputs and outputs for the DP slave

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883
Figure 3-5 configuring universal modules

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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 S7300 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

Communication over PROFIBUS

Entry-ID: 16650883

Start of the OPC Scout


Start the OPC Scout with "Start Scout". SIMATIC SIMATIC NET OPC

Double-click the OPC.SimaticNetfor 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

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883
Figure 4-2 OPC-Navigator

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

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

Communication over PROFIBUS

Entry-ID: 16650883 In the OPC-Navigator select the inputs Eingnge _Iand move the existing item to the right-hand window with the button .
Figure 4-4 defining itms for the inputs of the DP slave

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

In the OPC-Navigator select the Outputs _Qand 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 its possible to read and write respectively the OPC items.

V1.0

10.03.2008

18/20

Communication over PROFIBUS

Entry-ID: 16650883
Figure 4-6 OPC Scout

Double-click on the box value of the defined Input-Item to write values into S7 station.

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

V1.0

10.03.2008

19/20

Communication over PROFIBUS

Entry-ID: 16650883

History
Version V 1.0 Date 10.03.2008 First Issue Changes

Copyright Siemens AG 2008 All rights reserved Guide_DPSlave_e.doc

V1.0

10.03.2008

20/20