Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID:...

20
https://support.industry.siemens.com/cs/ww/en/view/101908495 Application example 06/2016 WinCC Connection to S7-1500, S7-1200 and ET 200SP WinCC V7.3 SE

Transcript of Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID:...

Page 1: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

https://support.industry.siemens.com/cs/ww/en/view/101908495

Application example � 06/2016

WinCC Connection toS7-1500, S7-1200 andET 200SPWinCC V7.3 SE

Page 2: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

Warranty and liability

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 2

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Warranty and liability

Note The Application Examples are not binding and do not claim to be completeregarding the circuits shown, equipping and any eventuality. The ApplicationExamples do not represent customer-specific solutions. They are only intendedto provide support for typical applications. You are responsible for ensuring thatthe described products are used correctly. These Application Examples do notrelieve you of the responsibility to use safe practices in application, installation,operation and maintenance. When using these Application Examples, yourecognize that we cannot be made liable for any damage/claims beyond theliability clause described. We reserve the right to make changes to theseApplication Examples at any time without prior notice.If there are any deviations between the recommendations provided in theseApplication Examples and other Siemens publications – e.g. Catalogs – thecontents of the other documents have priority.

We do not accept any liability for the information contained in this document.Any claims against us – based on whatever legal reason – resulting from the use ofthe examples, information, programs, engineering and performance data etc.,described in this Application Example shall be excluded. Such an exclusion shallnot apply in the case of mandatory liability, e.g. under the German Product LiabilityAct (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,body or health, guarantee for the quality of a product, fraudulent concealment of adeficiency or breach of a condition which goes to the root of the contract(“wesentliche Vertragspflichten”). The damages for a breach of a substantialcontractual obligation are, however, limited to the foreseeable damage, typical forthe type of contract, except in the event of intent or gross negligence or injury tolife, body or health. The above provisions do not imply a change of the burden ofproof to your detriment.Any form of duplication or distribution of these Application Examples or excerptshereof is prohibited without the expressed consent of the Siemens AG.

Securityinforma-tion

Siemens provides products and solutions with industrial security functions thatsupport the secure operation of plants, systems, machines and networks.In order to protect plants, systems, machines and networks against cyberthreats, it is necessary to implement – and continuously maintain – a holistic,state-of-the-art industrial security concept. Siemens’ products and solutions onlyform one element of such a concept.Customer is responsible to prevent unauthorized access to its plants, systems,machines and networks. Systems, machines and components should only beconnected to the enterprise network or the internet if and to the extent necessaryand with appropriate security measures (e.g. use of firewalls and networksegmentation) in place.Additionally, Siemens’ guidance on appropriate security measures should betaken into account. For more information about industrial security, please visithttp://www.siemens.com/industrialsecurity.

Siemens’ products and solutions undergo continuous development to make themmore secure. Siemens strongly recommends to apply product updates as soonas available and to always use the latest product versions. Use of productversions that are no longer supported, and failure to apply latest updates mayincrease customer’s exposure to cyber threats.To stay informed about product updates, subscribe to the Siemens IndustrialSecurity RSS Feed under http://www.siemens.com/industrialsecurity.

Page 3: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

Table of contents

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 3

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Table of contentsWarranty and liability ............................................................................................... 21 Task................................................................................................................. 42 Solution........................................................................................................... 5

2.1 Overview ........................................................................................... 52.2 Hardware and software components .................................................. 72.2.1 Validity .............................................................................................. 72.2.2 Components used ............................................................................. 7

3 Configuration and Settings ............................................................................ 9

3.1 Loading AS symbols from an existing S7-1500 program..................... 93.2 Loading AS messages from an existing S7-1500 program ............... 15

4 Ensuring a Better Overview of Numerous Tags .......................................... 185 Related literature .......................................................................................... 206 History .......................................................................................................... 20

Page 4: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

1 Task

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 4

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

1 Task

Figure 1-1

S7-1500

S7-1200

WinCC V7.3

Encryptedprocess connection

Process connection

ET 200SPProcess connection

IntroductionThe task is to provide process tags and AS messages of S7-1200, S7-1500 andET 200SP in WinCC V7.3 SE.It shall be possible to establish a secure HMI connection to S7-1500.

Page 5: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

2 Solution2.1 Overview

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 5

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

2 Solution2.1 Overview

SetupThe figure below shows a schematic overview of the most important components ofthe solution:

Figure 2-1

S7-1500

S7-1200

PROFINET IE

WinCC V7.3

SIMATIC S-1200, S7-1500 Channel

ET 200SP

DescriptionWinCC V7.3 SE provides the communication channel“SIMATIC S7-1200, S7-1500 Channel” for communication with the S7-1200,S7-1500 and ET 200SP CPUs. Communication to S7-1200, S7-1500 and ET200SP can be realized with absolute addressing and from WinCC V7.3 SE alsowith symbolic addressing.Communication to S7-1200 and S7-1500 can be realized with absolute addressingand, as of WinCC V7.3 SE, also with symbolic addressing.It is possible to establish a secure connection between WinCC V7.3 SE and S7-1500.

Characteristics features· Symbolic addresses and CPU alarming are accessed via online connection to

the CPUs only· Offline configuration can only be made for absolute addresses

Note Currently, no raw data tags can be used via“SIMATIC S7-1200, S7-1500 Channel”.

Page 6: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

2 Solution2.1 Overview

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 6

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Features of the communication to S7-1200 and S7-1500· Cyclic reading of tags· Chronological reporting (program alarm)· Loading of AS messages (S7-1500)· Password protection· Time synchronization· Use of the S7-1200/S7-1500 tags in WinCC

– Export / Import function1) Export of the tags from TIA Portal (only absolute addressing)2) Import to WinCC via the WinCC Configuration Studio

· Loading of AS symbols

Topics not covered by this applicationThis application does not include a description of:· Configuration of the S7-1500 in TIA Portal· Installation of SIMATIC TIA Portal and WinCC V7.3 SEBasic knowledge of the topics listed above is assumed.

Assumed knowledgeBasic knowledge of WinCC V7.3 SE and SIMATIC TIA Portal is assumed.

Page 7: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

2 Solution2.2 Hardware and software components

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 7

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

2.2 Hardware and software components

2.2.1 Validity

This application is valid for· STEP 7 V13 or higher· WinCC V7.3 SE· S7-1200 (for firmware version V2.2 and higher)· S7-1500· ET 200SP

2.2.2 Components used

The application has been created using the following components:

Hardware componentsTable 2-1

Component Qty. Order number Note

S7-1516-3 PN/DP 1 6AG1516-3AN00-7AB0 Alternatively, a different S7-1500, S7-1200 or ET 200SPcan be used.

Developmentsystem

1 PC for configuring thecontroller and WinCC.The hardware requirementsfor STEP 7 and WinCC shallapply.

Software componentsTable 2-2

Component Qty. Order number Note

WinCC V7.3 SE 1 S79220-B5964-PTIA PortalSTEP 7 V13Professional

1 6ES7822-1..03-.. Alternatively, TIA PortalSTEP 7 V13 Basiccan be used for an S7-1200.

Note Please use the SIMATIC NET V12 installation included in WinCC V7.3 SE, ifSTEP 7 or TIA Portal is not available on your PC. (Thus, the communicationdrivers will be installed.)

Page 8: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

2 Solution2.2 Hardware and software components

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 8

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Example files and projectsThe following list includes all files and projects that are used in this example.

Table 2-3

Component Note

color_filling_station.zip Getting StartedS7-1500

101908495_WinCC_S71200_S71500_Chanel_de.pdf This document

Page 9: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 9

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

This section describes how to configure tags in WinCC using optimized blockaccess to the address range in the S7-1500 automation system.Table 3-1

Process Action

1 Opening a WinCC projectCreate a new WinCC project or open an existing one.

2 Creating an S7-1200 / S7-1500 channelOpen the “Tag Management”.

Enter the IP address, access point and product family.3 Add “SIMATIC S7-1200, S7-1500 Channel”.

Page 10: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 10

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

4 Right-click to add a “New Connection”.

5 Right-click to open the “Connection Parameters”.

Enter the IP address of your S7-1500, S7-1200 or ET 200SP.

Page 11: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 11

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

6 Optional: Enter a password to implement a secure connection to the S7-1500.

NoteAccess protection is only available for S7-1500 CPUs. For further information,please refer to the manual “SIMATIC S7-1500 Automation System >Protection > Configuring access protection for the CPU“ \3\

7 Starting WinCC RuntimeStart WinCC Runtime.

Page 12: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 12

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

8 Reading AS symbolsRight-click the connection under “AS Symbols” -> “Read from AS” to read thesymbols of the S7-1500.

Now, the symbols are read.

Confirm the message with “OK”.

Page 13: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 13

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

9 The symbols of the S7-1500 are now listed in the “AS Symbols” tab:

10 Checkmark “Access” to automatically create the tags with symbolicaddressing.

11 These are now displayed together with their properties in the “Tags” tab.

Page 14: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.1 Loading AS symbols from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 14

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

12 You can change the tag name in the “Tags” and “AS Symbols” tabs.

Notes If changes are made to the controller, it is absolutely necessary to execute the“Read from AS” command again.

If WinCC Runtime is stopped and the Tag Management is closed, symbolicaddressing and the “AS Symbols” tab will not be displayed anymore. You candisplay both in the Tag Management again by means of the “Read from AS”command.

Page 15: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.2 Loading AS messages from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 15

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

3.2 Loading AS messages from an existing S7-1500programTable 3-2

Process Action

1. Open the “Alarm logging” editor.

Page 16: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.2 Loading AS messages from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 16

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

2. Under “AS Messages”, right-click “NewConnection_1” to open the contextmenu.

3. Import the system messages via the “Load from AS” command.

Page 17: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

3 Configuration and Settings3.2 Loading AS messages from an existing S7-1500 program

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 17

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Process Action

4. Now, the “AS Messages” and “AS Text lists” tabs are available.

Note Loading of AS messages is only possible for S7-1500 controllers.

Page 18: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

4 Ensuring a Better Overview of Numerous Tags

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 18

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

4 Ensuring a Better Overview of NumerousTagsIn order to ensure a better overview of AS symbols, there are various options toadjust the different views. The methods described below will make it easier tohandle the AS symbols and tags available.Moreover, prefixes can be used e. g. to summarize structures.

SearchThe search function can be used to limit the displayed AS symbols or tags to thedesired area.Figure 4-1

Find/ReplaceThe “Find and Replace” function can be used e. g. to include prefixes for certainblocks or structures in the name. Thus, you can define new search terms by meansof which you can create the views you want for every single search.Figure 4-2

Page 19: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

4 Ensuring a Better Overview of Numerous Tags

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 19

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

Note The default setting of the search is limited to the “Name” column and can beadjusted in the “Search in” settings:

Page 20: Application example 06/2016 WinCC Connection to S7 … Task WinCC S7-1200/ S7-1500 Entry-ID: 101908495, 1.2, 06/2016 4 ã S i e m e n s A G C o p y r i g h t 2 0 1 6 A l l r i g h

5 Related literature

WinCC S7-1200/ S7-1500Entry-ID: 101908495, 1.2, 06/2016 20

ãS

iem

ens

AG

Cop

yrig

ht20

16A

llrig

hts

rese

rved

5 Related literature

Table 5-1

Topic

\1\ Siemens Industry Online Supporthttps://support.industry.siemens.com

\2\ Download page of this entryhttps://support.industry.siemens.com/cs/ww/en/view/101908495

\3\ S7-1500 Manual; Access protectionhttps://support.industry.siemens.com/cs/mdm/109249299?c=72744267787&t=1&s=Manual S7-1500 Access protection&lc=en-WW

6 History

Table 6-1

Version Date Modifications

V1.0 10/2014 First versionV1.1 06/2015 CPU ET 200SP addedV1.2 06/2016 Chapter 4 “Ensuring a Better Overview of Numerous Tags”

added