FAQ Communication Over PROFIBUS
Transcript of FAQ Communication Over PROFIBUS
-
7/31/2019 FAQ Communication Over PROFIBUS
1/20
FAQ Communication over PROFIBUS
Communication over PROFIBUS
FAQ
-
7/31/2019 FAQ Communication Over PROFIBUS
2/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 2/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
Table of Contents
Table of Contents ......................................................................................................... 2Question ........................................................................................................................ 2
How do I configure a PC station as DP Slave interfacing to a S7 station (asDP Master) for the SIMATIC NET OPC server with the SIMATIC NET PCSoftware?..................................................................................................... 2
Answer........................................................................................................................... 2The instructions and notes listed in this document provide a detailedanswer to this question. ............................................................................... 2
1
Assignment of tasks....................................................................................... 3
1.1 Condition........................................................................................................... 32 Configuration of the PC station..................................................................... 43 Interfacing the PC station (DP slave) to the S7 station (DP master)........ 11
Rules.......................................................................................................... 144 Start of the OPC Scout ................................................................................. 165 History ........................................................................................................... 20
This entry is from the Internet offer of Siemens AG, Automation and Drives,Service & Support. Clicking the link below directly displays the downloadpage 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 (asDP Master) for the SIMATIC NET OPC server with the SIMATIC NET PCSoftware?
Answer
The instructions and notes listed in this document provide a detailedanswer to this question.
-
7/31/2019 FAQ Communication Over PROFIBUS
3/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 3/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
1 Assignment of tasks
In this example a CP5611 is used that implements the communication overthe OPC server as DP slave with a S7 station as DP master onPROFIBUS.
NOTE The method described in these instructions also applies to thecommunications 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 tocreate PC projects and open STEP 7 projects. It is, however, notpossible 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 thissoftware.
It `s assumed that STEP 7 is installed and that the project engineering forthe DP master already exists (for example STEP 7 project with theconfiguration of the S7 station).
If the DP master is a PC station instead of a S7 station, the projectengineering can also be created with NCM PC.
In chapter 2 Configuration of the PC station is described the configurationof the PC station so that you can use it as DP slave on a S7 station, whichworks as DP master.
-
7/31/2019 FAQ Communication Over PROFIBUS
4/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 4/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
2 Configuration of the PC station
After successful completion of the hardware and software installation of theSIMATIC NET CD and the configuration tool and after restarting yourcomputer, you start NCM PC or STEP 7 with "Start (in Windows XP: AllPrograms) SIMATIC SIMATIC Manager or SIMATIC NCM PCManager or using the desktop icon of the same name.
Open the STEP 7 project with the configuration of the S7 station as DPmaster.
Figure 2-1 opening STEP 7 project
Confirm the selection of the project (in the example: "S7300") with OK. Theproject is opened.
-
7/31/2019 FAQ Communication Over PROFIBUS
5/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 5/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
Figure 2-2 inserting the PC station
With the menu command "Insert Station SIMATIC PC-Station" youinsert the PC station.
Figure 2-3 changing the name of the PC station
-
7/31/2019 FAQ Communication Over PROFIBUS
6/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 6/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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 PCstation, 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, clickon the button marked in red.
-
7/31/2019 FAQ Communication Over PROFIBUS
7/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 7/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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 inthe PC station.
Figure 2-6 address assignment dialog
-
7/31/2019 FAQ Communication Over PROFIBUS
8/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 8/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
You have to configure the DP master and DP slave on the samePROFIBUS network. For this reason select the PROFIBUS network towhich 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 DPmaster.
Change to the register Operating Modein the property view of theCP5611.
-
7/31/2019 FAQ Communication Over PROFIBUS
9/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 9/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
Figure 2-8 property view of the CP5611 register Operating Mode
Activate the function DP slave, to use the CP5611 as DP slave. In theselection box Assigned applicationyou have to select the entry OPC
Server.
Confirm the dialog with OK.
Figure 2-9 hardware configuration projecting the CP5611
-
7/31/2019 FAQ Communication Over PROFIBUS
10/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 10/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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 reasonthe following message appears while saving and compiling the hardwareconfiguration of the PC station.
Figure 2-10 inconsistency of the system data
The system data only becomes consistent after the PC station has beeninterfaced to the S7 station.
-
7/31/2019 FAQ Communication Over PROFIBUS
11/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 11/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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-400station 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-clickon the interface DP. The property view of the DP interface opens.
Change to the register Operating Mode and activate the function DPmaster.
Confirm the property view of the DP interface with OK.
-
7/31/2019 FAQ Communication Over PROFIBUS
12/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 12/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
Figure 3-2 hardware configuration of the S7 station
In the hardware catalog got to PROFIBUS DP Configured Stationsandselect the PC station as DP Slave object. Following drag and drop theselected 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.
-
7/31/2019 FAQ Communication Over PROFIBUS
13/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 13/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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 tableof the PC station.
-
7/31/2019 FAQ Communication Over PROFIBUS
14/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 14/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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 theother universal module as input with 16 bytes length.
Rules
In the configuration data of the universal modules use only "Byte" as theunit.
In the configuration data of the universal modules, use only "Unit" forthe "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 arepermitted in total.
A maximum of 32 sub modules are permitted.
-
7/31/2019 FAQ Communication Over PROFIBUS
15/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 15/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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 commandPLC 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 menucommand 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.
-
7/31/2019 FAQ Communication Over PROFIBUS
16/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 16/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
4 Start of the OPC Scout
Start the OPC Scout with "Start SIMATIC SIMATIC NET OPCScout".
Double-click the OPC.SimaticNetfor connection with the SIMATIC NETOPC server. In the dialog that appears, enter a suitable group name andconfirm 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-clickon "DP". The configured DP connection appears.
-
7/31/2019 FAQ Communication Over PROFIBUS
17/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 17/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
Figure 4-2 OPC-Navigator
Double-click on the configured DP-Slave, which means double-click onCP5611. You can see all objects which can be accessed.
Figure 4-3 objects in the OPC-Navigator
-
7/31/2019 FAQ Communication Over PROFIBUS
18/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 18/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
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
In the OPC-Navigator select the Outputs _Qand move the existing item tothe 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 betweenPC station and S7 station is established. So its possible to read and writerespectively the OPC items.
-
7/31/2019 FAQ Communication Over PROFIBUS
19/20
Communication over PROFIBUS
Entry-ID: 16650883
V1.0 10.03.2008 19/20
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
Figure 4-6 OPC Scout
Double-click on the box value of the defined Input-Item to write valuesinto S7 station.
-
7/31/2019 FAQ Communication Over PROFIBUS
20/20
Communication over PROFIBUS
Entry-ID: 16650883
V /
CopyrightSiemensAG2008Allrightsreserved
Gu
ide_DPSlave_e.doc
5 History
Version Date Changes
V 1.0 10.03.2008 First Issue