26
 F AQ about S 7 communication vi a IE S 7 commun icat ion via Industri al Eth ernet FAQ

Guideline S7 IE e

Embed Size (px)

Citation preview

Page 1: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 1/26

 

FAQ about S7 communicat ion via IE

S7 communicat ion via Industrial Ethernet

FAQ

Page 2: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 2/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 2/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Table of Contents

Table of Contents......................................................................................................... 2 Question........................................................................................................................ 2 

How you can configure a S7 connection via Industrial Ethernet with theSIMATIC NET-OPC Server and the SIMATIC NET PC Software?.............. 2 

Answer .......................................................................................................................... 2 The instructions and notes listed in this document provide a detailedanswer to this question. ............................................................................... 2 

1  Assignment of tasks ...................................................................................... 3 1.1  Condition .......................................................................................................... 3 2  Configuration of the PC station .................................................................... 4 

There are two possibilities for downloading the configuration on your PCstation: ....................................................................................................... 15 

2.1  Configuration and download from STEP7 or NCM PC................................... 15 2.2  Configuration and Download via “Import Station”........................................... 15 2.3  Start of the OPC Scout................................................................................... 19 3  History ........................................................................................................... 26 

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/15355168 

Question

How you can configure a S7 connection via Industrial Ethernet with theSIMATIC NET-OPC Server and the SIMATIC NET PC Software?

Answer

The instructions and notes listed in this document provide a detailedanswer to this question.

Page 3: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 3/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 3/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

1 Assignment of tasks

In this example, a commercially available Ethernet adapter is used thatimplements S7 communication over the OPC server with an S7 controlleron Ethernet.

NOTE The method described in these instructions also applies to the CP 1613,CP 1512, and CP 1612 communications processors.

1.1 Condition

It is assumed that one of the two following configuration tools is installed:

NCM PCNCM 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 7STEP 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.

Only one of these tools can be installed.

In chapter 2 “Configuration of the PC station” is described the configurationof PC station so that you can use the S7 communication via IndustrialEthernet to exchange data between PC station und S7

Page 4: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 4/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 4/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

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.

Create a new project with "Fileà New"

Figure 2-1 Giving the Project a Name

Confirm the project name you have entered (in the example: "PC_Station")with OK. An empty STEP 7 or NCM PC project is then created.

Page 5: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 5/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 5/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

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

Page 6: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 6/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 6/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Give the PC station you have just inserted the same name as yourcomputer (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 Project"(STEP 7: "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.

Page 7: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 7/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 7/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-5 Selecting the Modules from the Hardware Catalog

Now place your PC modules in this rack (for example by dragging themfrom the catalog).

If you want to use a CP 1613 (or CP 1512 or CP 1612), select the CP 1613(or CP 1512 or CP 1612) instead of the IE General module.

The following dialog appears automatically after you insert the module inthe PC station:

Page 8: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 8/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 8/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-6 Address Assignment Dialog

By clicking the "New" button, you can create a new Ethernet network:

Figure 2-7 Setting up an Ethernet Network in STEP 7 or NCM PC

Page 9: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 9/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 9/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Please enter the IP address of the network adapter in the box marked redin the screenshot (Figure 2-6 Address Assignment Dialog) and click the

"New" button. Following this, a further window opens that you simplyconfirm with OK (Figure 2-7 Setting up an Ethernet Network in STEP 7 orNCM PC).

Figure 2-8 Network Adapter with Parameters Assigned

The network adapter is now fully configured and networked. Confirm theparameter assignment with OK.

Page 10: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 10/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 10/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-9 Network Adapter Placed in the PC Station.

The module is now placed in a PC slot.

Figure 2-10 Configuring the OPC Server

Page 11: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 11/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 11/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Select the OPC server in the hardware catalog and then drag it to any slot.

Figure 2-11 NetPro Button

Now open the NetPro program. Use the button marked red in the toolbar inFigure 2-11 NetPro Button.

In NetPro, you can create the connection between the user application andthe S7 AS.

Figure 2-12 Creating connections in NetPro

To insert a connection, select the OPC server.

With "Insertà New Connection", you create a connection.

Page 12: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 12/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 12/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-13 Inserting a New Connection in NetPro

Page 13: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 13/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 13/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-14 Object Properties of the S7 connection

Because the connection is created "unspecified", further steps arenecessary. In the marked box, enter the IP or MAC address (depending onthe selected protocol type) of the partner.

The "Address Details" button opens the next dialog.

Page 14: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 14/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 14/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-15 Address Details of the S7 connection

Here, enter the slot of the CPU of the SIMATIC S7 partner controller. Youcan find out the slot of the CPU from the STEP 7 project of the partnercontroller (HW Config).

When you have specified the slot, click on the "OK" button. The main dialogappears again. By clicking "OK" again, the connection you have justcreated appears in the connection table of the PC station.

Figure 2-16 S7 connection created in NetPro

Page 15: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 15/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 15/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Now that you have created an S7 connection, connection configuration iscomplete. Now save and compile the project ("Networkà Save and

Compile"). This updates the information in the project.

Figure 2-17 Saving and Compiling

NOTE Warning indications can be displayed while proceeding with the “Saveand Compile” of a project. Warnings serve as piece of information andhave no functional effect. In case error warnings occur, search forpossible divergences in the previous steps of the instructions.

There are two possibilities for downloading the configuration on your PC station:

2.1 Configuration and download from STEP7 or NCM PCWith this function it is possible to perform a configuration completely from aremote computer, if a network connection (standard Ethernet) to the targetPC station is available. It is assumed that the PC station can be reachedvia network connection. The project engineering can be downloaded afterthat.

2.2 Configuration and Download via “Import Station”

With this function it is possible to download the configuration and projectengineering at once also without a connection to the target PC station.Depending on the application, other configurations can be loaded.

Open the “Station Configuration Editor”. You will find its icon on yourdesktop and also in the system tray.

Page 16: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 16/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 16/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-18 Station Configuration Editor

Click on the "Import Station..." button marked red in the screenshot.

Figure 2-19 Message about restarting the PC Station

Confirm the message with "Yes".

Page 17: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 17/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 17/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-20 Browsing for the XDB File

In the browser dialog, you specify the path in which the XDB file is located.The XDB file is always created in the project by NCM PC / STEP 7 (seeFigure 2-1 Giving the Project a Name).

Page 18: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 18/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 18/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-21 Information from the XDB File

As information, you can see once again which modules and applicationsare configured in the XDB file.

Page 19: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 19/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 19/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-22 The PC station is configured

The import is now complete and the project engineering is loaded. In the"Conn" column (red marker), you can see that the connections have alsobeen loaded.

2.3 Start of the OPC Scout

You can now start the OPC Scout with "Start à SIMATICà SIMATIC NETà OPC Scout".

Connect to the OPC server by double-clicking on "OPC.SimaticNet". In thedialog that appears, enter a suitable group name and confirm this with OK.

Page 20: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 20/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 20/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-23 Connecting to the OPC Server and creating a Group

Once the group has been created, double-click on it and the "OPCNavigator" opens. You will now see your protocols in the OPC NavigatorDouble-click on "S7" the connection name you configured in NetProappears.

Page 21: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 21/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 21/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-24 OPC Navigator

By double-clicking again on the connection and "Objects", the tree with theobjects that can be accessed appears. If you have downloaded data blocksto the CPU, these are already displayed.

Page 22: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 22/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 22/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-25 Objects in the OPC Navigator

By double-clicking on a DB, you now create a variable. If the DB is crossedthrough in red, this is OK. You will find a more detailed explanation of this inSIMATIC Technical Support on the Internet under the following Entry:

http://support.automation.siemens.com/WW/view/en/8763769 

To create an item, double-click on "New Definition" again. A new windowappears in which you can define various variables and data types.

Page 23: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 23/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 23/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-26 Creating the Items in the OPC Scout

In this example, the 2nd byte in data block DB10 will be accessed.

The syntax for DB is:S7:[<connectionname>]DB<no>,{<type>}<address>{,<quantity>}

Now click "OK", the item is now in the central area of the window. If youpress "à", you move the item to the right-hand column.

Page 24: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 24/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 24/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-27 Item Definition

Clicking the "OK" button inserts the item in the OPC Scout.

If the quality is good, your connection is established and it is possible toread/write the items.

Figure 2-28 OPC Scout

If you double-click on the box of the value, you can then write values.

Page 25: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 25/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 25/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

Figure 2-29 Writing Values

Page 26: Guideline S7 IE e

8/3/2019 Guideline S7 IE e

http://slidepdf.com/reader/full/guideline-s7-ie-e 26/26

 S7 communication via IE

Beitrags-ID: 15355168

V1.0 03.12.2007 26/26

   C  o  p  y  r   i  g   h   t     ©    S

   i  e  m  e  n  s   A   G    2

   0   0   7   A   l   l  r   i  g   h   t  s  r  e  s  e  r  v  e   d

   G  u   i   d  e   l   i  n  e_

   S   7_

   I   E_

  e .   d  o  c

 

3 History

Version Date Changes

V 1.0 03.12.2007 First issue