Anda di halaman 1dari 46

WinCC

Communication with
S7-1500, S7-1200
and ET 200SP
Siemens
As of SIMATIC WinCC V7.2 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/101908495 Support
Warranty and Liability

Warranty and Liability

Note The Application Examples are not binding and do not claim to be complete regarding the
circuits shown, equipping and any eventuality. The Application Examples do not represent
customer-specific solutions. They are only intended to provide support for typical
applications. You are responsible for ensuring that the described products are used
correctly. These Application Examples do not relieve you of the responsibility to use safe
practices in application, installation, operation and maintenance. When using these
Application Examples, you recognize that we cannot be made liable for any
damage/claims beyond the liability clause described. We reserve the right to make
changes to these Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these Application
Examples and other Siemens publications – e.g. Catalogs – the contents 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 of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(“wesentliche Vertragspflichten”). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
 Siemens AG 2018 All rights reserved

the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of the Siemens AG.

Security Siemens provides products and solutions with industrial security functions that support the
informa- secure operation of plants, systems, machines and networks.
tion In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial
security concept. Siemens’ products and solutions only form 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 be connected to the
enterprise network or the internet if and to the extent necessary and with appropriate
security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be taken into
account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.

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

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 2
Table of Contents

Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
2 Solution............................................................................................................... 5
2.1 Overview............................................................................................... 5
3 Configuration and Settings for WinCC V7.3 SE ............................................. 8
3.1 Loading AS symbols from an existing S7-1500 program ..................... 9
3.2 New features for AS messages .......................................................... 16
Configuring message classes ............................................................ 18
3.3 Implications for project changes in the controller ............................... 19
3.4 Connection with absolute addressing ................................................ 21
3.5 Ensuring a better overview of numerous tags .................................... 24
4 Configuration and Settings for WinCC V7.4 ................................................. 26
4.1 System diagnostics ............................................................................ 27
4.2 "Update" function ................................................................................ 29
4.3 Connection-specific tags .................................................................... 32
5 Configuration and Settings for WinCC V7.4 SP1 ......................................... 33
5.1 Prefix / suffix for tags .......................................................................... 34
5.2 New features for AS messages .......................................................... 36
 Siemens AG 2018 All rights reserved

5.3 Offline import of configuration data from TIA Portal for absolute
and symbolic addresses ..................................................................... 37
6 General.............................................................................................................. 40
6.1 Creating a new connection in runtime with an own name .................. 40
6.2 Overview table for the update function ............................................... 41
6.3 Channel diagnosis "SIMATIC S7-1200, S7-1500 Channel" ............... 42
7 Appendix .......................................................................................................... 45
7.1 Service and support ........................................................................... 45
7.2 Links & literature ................................................................................. 46
7.3 Change documentation ...................................................................... 46

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 3
1 Task

1 Task

Figure 1-1
S7-1500

Encrypted
process connection
As of WinCC V7.2

S7-1200
Process connection

ET 200SP
Process connection
 Siemens AG 2018 All rights reserved

Introduction
This application example shows how the S7-1200, S7-1500 and ET 200SP can
transfer tags and messages to WinCC. In addition, a secure connection is
established between the S7-1500 and the HMI.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 4
2 Solution

2 Solution
2.1 Overview
Setup
The figure below shows a schematic overview of the most important components of
the solution:
Figure 2-1

As of WinCC V7.2
S7-1500

S7-1200 ET 200SP

PROFINET / IE
SIMATIC S7-1200, S7-1500 Channel

Description
To communicate with each other, the devices use the communication channel
"SIMATIC S7-1200, S7-1500 Channel". This channel is available for you as of
 Siemens AG 2018 All rights reserved

SIMATIC WinCC V7.2. The communication is based on the TCP/IP protocol.


Depending on the version used, the channel offers the following functionalities. All
functions of the lower version are integrated in the higher versions as well.
Individual dialogs / tabs might have a different look depending on the WinCC
version used.

WinCC V7.2

1
Communication of the S7-1200 , S7-1500 and ET 200SP with WinCC single-
user systems
 Establishing a secure communication connection between WinCC and the S7-
1500 (not possible for S7-1200 and ET 200SP)
 Absolute access to AS symbol addresses of the automation system
 Different options for channel diagnosis
 SIMATIC S7-1200: 32 connections
 SIMATIC S7-1500: 16 connections

WinCC V7.3 SE
 Absolute and symbolic access to AS symbol addresses and messages of the
controller (for single-user and multi-user systems)
 "Read from AS" functions for reading and applying the AS symbols with an
optimized block access
 System messages (only S7-1500)
 Chronological reporting (program alarm)

1
as of firmware version V2.2

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 5
2 Solution

WinCC V7.4
 "Update" function for synchronizing project changes on the controller side with
WinCC
 ActiveX Control "WinCC SysDiagControl" for system diagnostics in runtime
 Increase of the maximum possible number of connections to:
– SIMATIC S7-1200: 32 connections
– SIMATIC S7-1500: 128 connections
 System tag for "Connection check" und "Disconnect connection"
 Raw data communication
Is raw data supported for communication between WinCC and controllers of
the S7-1200 / S7-1500 family?

WinCC V7.4 SP1


 SIMATIC S7-1200: up to 64 connections
 Supports full-text alarms, as for WinCC Runtime Professional V14
 Supports S7-1500 Software Controllers (S7-1507S)
For more information, please refer to the application example:
Setting up a connection between WinCC V7.4 SP1 and S7-1507S on an IPC
 Offline import of configuration data from TIA Portal for absolute and symbolic
 Siemens AG 2018 All rights reserved

addresses
 Setting the prefix/suffix as default value for tags for each connection
 Automatic update of S7-1500 messages

Characteristics features
The optimized access to the AS symbol addresses and control messages is
available for control via the online connection to the controller. Offline configuration
is possible for absolute addresses. As of V7.4 SP1, offline configuration without
CPU connection is possible for symbolic access as well.
The maximum possible number of connections is limited by the available system
resources and their performance data, particularly CPU, RAM and Ethernet
connection.
See FAQ:
Which quantity framework must you pay attention to for communication between an
S7-1200 or S7-1500 controller and WinCC Runtime Professional?

Supported data types


The communication channel supports the following data types:
 Binary tag
 Signed 8-bit value
 Unsigned 8-bit value
 Signed 16-bit value
 Unsigned 16-bit value
 Signed 32-bit value
 Unsigned 32-bit value

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 6
2 Solution

 Floating-point number 32-bit IEEE 754


 Floating-point number 64-bit IEEE 754
 Text variable 8-bit character set
 Text variable 16-bit character set (as of V7.3)
 Date and time format (as of V7.3)

2
Raw data tag as byte array (as of V7.4 )

Other features of the communication


 Cyclic reading of tags
 Time synchronization
 Export and import function
– Export of the tags from TIA Portal (for symbolic addressing and messages
as of WinCC V7.4 SP1)
– Import to WinCC via the WinCC Configuration Studio

Topics not covered by this application


This application example does not contain a description of the following:
 Configuration of the S7-1200, S7-1500 and ET 200SP in TIA Portal
 Installation of SIMATIC TIA Portal STEP 7 Professional and WinCC
 Siemens AG 2018 All rights reserved

Basic knowledge of these topics is assumed.

Assumed knowledge
Basic knowledge of SIMATIC WinCC (as of V7.2) and
TIA Portal STEP 7 Professional (as of V13 SP1) is assumed.

Example files and projects


The following list contains all files and projects that are used in this application
example.

Table 2-1
Component Note
101908495_WinCC_S71200_S71500_Channel_V2_en.pdf This document.

2
max. data block length of 8000 bytes

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 7
3 Configuration and Settings for WinCC V7.3 SE

3 Configuration and Settings for WinCC V7.3


SE
This chapter describes how to read AS symbols with symbolic addressing and
messages from the controller via WinCC V7.3 SE using the "SIMATIC S7-1200,
S7-1500 Channel" and how to apply them as tags and messages in WinCC.
In addition, it illustrates how to handle project changes on the controller side.

Validity
This chapter is valid for:
 STEP 7 as of V13 or higher
 WinCC V7.3 SE
 S7-1200 (for firmware version V2.2 and higher)
 S7-1500
 ET 200SP

Components used
 Siemens AG 2018 All rights reserved

This chapter was created with the following components:

Hardware components
Table 3-1
Component Qty. Order number Note
S7-1516-3 PN/DP 1 6AG1516-3AN00-7AB0 Alternatively, a different S7-
1500, S7-1200 or ET 200SP
can be used.
Development 1 - PC for configuring the
system controller and WinCC
The hardware requirements
for STEP 7
and WinCC shall apply.

Software components
Table 3-2
Component Qty. Order number Note
WinCC V7.3 SE 1 6AV63.1-....7-3... -
TIA Portal 1 6AV2103-0AA04-0AA5 Alternatively, TIA Portal
STEP 7 V14 SP1 STEP 7 V14 SP1 Basic can
Professional be used for an S7-1200.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 8
3 Configuration and Settings for WinCC V7.3 SE

3.1 Loading AS symbols from an existing S7-1500 program


The following section describes how to establish a secure connection including an
optimized block access to the address area of the controller in SIMATIC WinCC
with the communication channel "SIMATIC S7-1200, S7-1500 Channel". For this,
you can read and apply the AS symbols (tags) via the new functionality "Read from
AS".

Note It is only possible to read AS symbols for which the access rights are enabled for
SIMATIC WinCC. Otherwise, SIMATIC WinCC would not find them.
Check the settings of your PG/PC interface to ensure proper communication. For
this, please follow the instructions from the following video:
Why is the connection from WinCC to the S7 controller not established via
TCP/IP?

Table 3-3
No. Action
 Siemens AG 2018 All rights reserved

1. Create a new WinCC project or open an existing one.


2. Open the Tag Management via the project tree in the WinCC Explorer.

3. Add a new driver via the option "Add new driver > SIMATIC S7-1200, S7-1500
Channel" in the context menu of the Tag Management.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 9
3 Configuration and Settings for WinCC V7.3 SE

No. Action
4. Add a new connection via the context menu of the OMS+ channel using the "New
Connection" button.

5. In the corresponding context menu, click "Connection Parameters" of the


connection "NewConnection_1".
Enter the IP address of your controller.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 10
3 Configuration and Settings for WinCC V7.3 SE

No. Action
6. Optional: If you want to establish a secure connection to the S7-1500, add a
password in the "Options" tab. You have to specify the password in TIA Portal in
the CPU properties under "Protection & Security". This is only required for the
setting "No access (complete protection)".

Note
Access protection is only available for S7-1500. Further information on access
protection is available in the chapter "Configuring access protection for the CPU"
of the manual "S7-1500 – Getting Started". Access protection for the CPU is
configured in the "Protection & Security" tab of the CPU properties in TIA Portal.
 Siemens AG 2018 All rights reserved

7. Start the WinCC runtime.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 11
3 Configuration and Settings for WinCC V7.3 SE

No. Action
8. Read the AS symbols via "AS Symbols" > "Read from AS" in the context menu of
the connection.
 Siemens AG 2018 All rights reserved

Then, the symbols will be read.

After successful reading of the AS symbols, the following message is displayed.


Confirm with "OK".

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 12
3 Configuration and Settings for WinCC V7.3 SE

No. Action
9. Go to the "AS Symbols" tab. This tab lists the AS symbols of the controller that
have been read.

10. Enable the checkbox in the "Access" column for the AS symbols which you want
to apply to the WinCC Tag Management. WinCC automatically creates
corresponding WinCC tags with symbolic addressing.
 Siemens AG 2018 All rights reserved

11. The WinCC tags are now displayed together with their properties in the "Tags"
tab.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 13
3 Configuration and Settings for WinCC V7.3 SE

No. Action
12. Optional:
You can modify the tag names of the generated WinCC tags in the tabs "Tags"
and "AS Symbols".
 Siemens AG 2018 All rights reserved

The tag name is composed as follows:


“DataArea_BlockName_ElementName"

The separators are converted as follows (a "," or "-" in the element name will
remain).

Figure 3-1

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 14
3 Configuration and Settings for WinCC V7.3 SE

Notes Execute the "Read from AS" command again if there are any project changes
regarding the controller.
If WinCC Runtime is stopped and the Tag Management is closed, symbolic
addressing and the "AS Symbols" tab will not be displayed anymore. You can
display both in the Tag Management again using the "Read from AS"
command.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 15
3 Configuration and Settings for WinCC V7.3 SE

3.2 New features for AS messages


The following section describes how to read AS messages from the controller and
how to apply them to your WinCC project including the corresponding message
texts.

Note Only the S7-1500 can load AS messages.


The message length has to be limited to max. 400 characters.

Table 3-4
No. Action
1. Open the "Alarm logging" editor.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 16
3 Configuration and Settings for WinCC V7.3 SE

No. Action
2. In "AS Messages", right-click your S7-1500 connection. Import the
messages of the CPU via the "Load from AS" command.
 Siemens AG 2018 All rights reserved

3.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 17
3 Configuration and Settings for WinCC V7.3 SE

No. Action
4. Select the AS symbols and text lists you want to apply. They are available in
the tabs "AS Messages" and "AS Text lists".
 Siemens AG 2018 All rights reserved

Configuring message classes


When loading AS messages to a SIMATIC S7-1500, WinCC automatically assigns
a message class/message type with a corresponding setting to the messages.

Table 3-5
STEP 7 WinCC acknowledgment philosophy
Acknowledgment Acknowledgement Acknowledgement Without
“arrived” “left” status
“left”
No Acknowledgement Acknowledgement Without
acknowledgement “arrived” “left” status
“left”
No Information Acknowledgement Acknowledgement Without
acknowledgement only “arrived” “left” status
“left”

Bold font = applicable


Normal font = not applicable

Note The message classes in TIA Portal should be adapted to the message classes in
WinCC Configuration Studio, if possible. Thus, they could be assigned more
easily in WinCC Configuration Studio after import.
It is helpful to distinguish the colors of the message types ("arrived", "left",...).
Thus, the message type can be assigned more quickly and easily, e. g. in the
AlarmControl.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 18
3 Configuration and Settings for WinCC V7.3 SE

3.3 Implications for project changes in the controller


If you want to modify the project on the controller side, you have to reload the AS
symbols and messages via the context menu or using the import function. In this
case, the properties of the AS symbols and messages are compared to the
properties from the WinCC project.
If the AS symbol names or symbolic addresses do not match, the "AS Symbols"
tab will be highlighted in red. If the AS messages have changed, they will be
highlighted in red in the "AS Messages" tab. Tooltips with notes on possible causes
are displayed.

Note TIA Portal automatically generates the symbolic addresses of the AS symbols.
They depend on the corresponding AS symbol properties. Due to symbolic
access, address changes in the CPU program will not affect the symbolic
address.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 19
3 Configuration and Settings for WinCC V7.3 SE

Option in the event of a changed tag ID in WinCC V7.3 SE


As the "Update" function 4.2 is not yet available in WinCC V7.3 SE, you have the
option to restore the assignment using the "Export / Import" function of WinCC
Configuration Studio.

Note This kind of “updating" is only possible if you have performed the export before
changing the project on the controller side.

Figure 3-2
 Siemens AG 2018 All rights reserved

1 2 3 4 5

Configure and Read and e. g. open and Read WinCC Sym. name is assigned
load the CPU configure the load a project a ga in  IDs are to ID during import
tags in WinCC copy new (red)
Config-Studio
Config-Studio import
export

1. The CPU has been configured and loaded.


2. Tags have been read and configured in WinCC. Export created in WinCC
Configuration Studio on the connection level or higher.
3. Project change on the controller side, e. g. project copy, has been opened and
loaded.
4. AS symbols are read again in WinCC =>IDs are new (red)
5. Assignment of all symbolic names for the ID is carried out during import and
thus updated.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 20
3 Configuration and Settings for WinCC V7.3 SE

3.4 Connection with absolute addressing


As of WinCC V7.2, you can use the communication channel "SIMATIC S7-1200,
S7-1500 Channel" to establish a communication with non-optimized blocks.

For this, in TIA Portal, go to the properties of the block and uncheck the "Optimized
block access" option in the "Attributes" tab.
Figure 3-3
 Siemens AG 2018 All rights reserved

To get the absolute address (offset), compile the block in TIA Portal.
Figure 3-4

Note As soon as you make any changes concerning the block (e. g. another input),
the offset will not be displayed anymore. After recompiling, you can read it again.

For further information on creating tags, please refer to the manual


WinCC V7.2: Communication > Configuring the tags

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 21
3 Configuration and Settings for WinCC V7.3 SE

Import/export with TIA Portal

Note The process is only possible with absolute addressing.


It is not possible to use symbolic addressing for this procedure. Symbolic
addressing can only be exported as of V7.4 SP1.
The following restrictions exist:

 No side-by-side installation with WinCC Professional (TIA


Portal)
 No measurement archives
 No chronological messages

An export or import consists of two steps:


 Export of the tags from TIA Portal
 Import of the data via the WinCC Configuration Studio

Export procedure
Table 3-6
 Siemens AG 2018 All rights reserved

1. Create a new DB in TIA Portal and disable the optimized block access.
2. Compile the block to get the absolute addressing (offset).
3. Create a dummy HMI project (e. g. Basic Panel).
4. Use drag&drop to drag the block into a screen and set the access mode from
“symbolic” to “absolute”.
5. Click the “Export” button to export the HMI tags.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 22
3 Configuration and Settings for WinCC V7.3 SE

Import procedure
Table 3-7

1. In WinCC Configuration Studio, create an S-1200, S7-1500 channel for your


CPU. The connection name must be the same as in the export file.
2. Import the TIA Portal export file.

Note In WinCC V7.3 SE /WinCC V7.4, you should work either with “absolute
addressing" or “symbolic addressing".
 Siemens AG 2018 All rights reserved

With absolute addressing, it is only possible to use the offline import / export
procedure. If the symbolic addresses are read via the "Read from AS" function,
you have to create the absolute addresses again manually.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 23
3 Configuration and Settings for WinCC V7.3 SE

3.5 Ensuring a better overview of numerous tags


In order to ensure a better overview of AS symbols, there are various options to
adjust the different views. The methods described below will make it easier to
handle the AS symbols and tags available.
Moreover, prefixes can be used e. g. to summarize structures.

Search
The "Search" function can be used to limit the displayed AS symbols or tags to the
desired area.
Figure 3-5

Find & Replace


 Siemens AG 2018 All rights reserved

The "Find and Replace" function can be used e. g. to include prefixes for certain
blocks or structures in the name. Thus, you can define new search terms by means
of which you can create the views you want for every single search.
Figure 3-6

Note After having read the tags again, all changes made by the "Find and replace"
function have been overwritten and possibly have to be made again.

As of WinCC V7.4 SP1, you can set the Prefix / suffix for tags 5.1 as default value
instead of using the "Find and replace" function.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 24
3 Configuration and Settings for WinCC V7.3 SE

Note The default setting of the search is limited to the "Name" column. You can adjust
the settings via "Search in".
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 25
4 Configuration and Settings for WinCC V7.4

4 Configuration and Settings for WinCC V7.4


This chapter illustrates the system diagnostics and options for "updating" in case of
project changes in the controller side.
You can still use the procedures described in WinCC V7.2 and V7.3 SE regarding
AS symbols and AS messages.

Validity
This chapter is valid for:
 STEP 7 as of V13 or higher
 WinCC V7.4
 S7-1200 (for firmware version V2.2 and higher)
 S7-1500
 ET 200SP

Components used
This chapter was created with the following components:
 Siemens AG 2018 All rights reserved

Hardware components
Table 4-1
Component Qty. Order number Note
S7-1516-3 PN/DP 1 6AG1516-3AN00-7AB0 Alternatively, a different S7-
1500, S7-1200 or ET 200SP
can be used.
Development 1 - PC for configuring the
system controller and WinCC
The hardware requirements
for STEP 7
and WinCC shall apply.

Software components
Table 4-2
Component Qty. Order number Note
WinCC V7.4 1 6AV63.1-....7-4... -
TIA Portal 1 6AV2103-0AA04-0AA5 Alternatively, TIA Portal
STEP 7 V14 SP1 STEP 7 V14 SP1 Basic can
Professional be used for an S7-1200.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 26
4 Configuration and Settings for WinCC V7.4

4.1 System diagnostics


As of SIMATIC WinCC V7.4, the ActiveXControl "WinCC SysDiagControl" is
available for system diagnostics. You can find it in the "Controls" toolbar.
Figure 4-1
 Siemens AG 2018 All rights reserved

For details about the configuration, please refer to the manual


WinCC V7.4: Communication.
It indicates faults and errors of the SIMATIC S7-1200 and S7-1500 controllers. It
provides an overview and thus allows rapid localization of error sources.
In the ActiveXControl, the following views are available:
 Diagnostic overview
Displays the status of the controller and its submodules for all available
SIMATIC S7-1200/S7-1500 channels.
 Detailed view
Displays information on the selected controller.
 Diagnostic buffer view
Displays current data from the diagnostic buffer of the controller. Messages are
only displayed if the AS messages are loaded from the controller and applied
to WinCC.

Figure 4-2

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 27
4 Configuration and Settings for WinCC V7.4

Figure 4-3
 Siemens AG 2018 All rights reserved

Note The current data from the diagnostic buffer must be loaded via the menu item
"Diagnostic buffer" ( ). The buffer is not loaded automatically.

You can use a C script or VB script (e. g. executed via a mouse-click on a button)
to go from an AS message selected in the WinCC AlarmControl to the WinCC
SysDiagControl. For this, the AS message already must have been loaded from
the controller and applied to WinCC as messages.
In C:
SetPropChar(lpszPictureName,"<Name_SysDiaControl>").","NavigateTo",
GetPropChar(lpszPictureName,"<Name_AlarmControl>","DiagnosticsContext"));

In VBS:
ScreenItems("<Name_SysDiaControl>").NavigateTo =
ScreenItems("<Name_AlarmControl>").").DiagnosticsContext

Note Please note that toggling between the controls by means of a script is only
possible for system messages.
Further information on this and on how to configure the control are available in
the manual WinCC V7.4: Communication.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 28
4 Configuration and Settings for WinCC V7.4

4.2 "Update" function


With SIMATIC WinCC V7.4, the "Update" function is available. After project
changes on the controller side, symbolic addresses can change. You can use the
"Update" function to read the AS configuration again. Moreover, it restores
consistency by reassigning the symbolic addresses to the AS symbol names. The
AS symbol name is taken as a reference.
To use the function, the AS symbols and messages already must have been read
and applied as WinCC tag or WinCC messages.

Note "Update" function not possible


Access rights changed
If you disable the access rights of the AS symbols, these will not be accessible
anymore for WinCC. Thus, "updating" is no longer possible as well. If,
afterwards, you read the AS configuration again, the WinCC tags will be
highlighted in red.
 Siemens AG 2018 All rights reserved

AS symbol names changed


The "Read AS Symbols" function is based on the AS symbol name. If you
change the AS symbol name and read the AS configuration again afterwards,
"updating" will not be possible anymore.
The changed AS symbol name will be available in WinCC as a new AS symbol
and you have to apply it as a new WinCC tag. Delete the unused WinCC tag in
the "Tags" tab.

For the following project changes on the controller side, the symbolic addresses of
the AS symbols will change. Use the "Update" function.
 Current CPU program has been replaced by an identical CPU program (or
parts of it) from a reference project (project copy) and reloaded into the
controller
 Change of the data type of a CPU tag (also in the DB)

Note WinCC performs an automatic data type formatting between CPU data types and
HMI data types. If you change the data type of a CPU tag, a data type change
might affect the usage locations of the tag. Please note that adaptations might be
necessary.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 29
4 Configuration and Settings for WinCC V7.4

The following table shows how to update your WinCC tags and WinCC messages.

Table 4-3
No. Action
1. For AS symbols:
Open the Tag Management and read the AS symbols again. Then, go to the "AS
Symbols" tab.

For messages:
Open the "Alarm logging" and read the AS messages again. Then, go to the "AS
Messages" tab.
2. For AS symbols:
Select the lines of the AS symbols you would like to update.

For messages:
 Siemens AG 2018 All rights reserved

Select the lines of the AS messages you would like to update.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 30
4 Configuration and Settings for WinCC V7.4

No. Action
3. For AS symbols:
Update the AS symbol using the "Update" button in the corresponding context
menu.

For messages:
Update the AS message using the "Update" button in the corresponding context
menu.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 31
4 Configuration and Settings for WinCC V7.4

4.3 Connection-specific tags


To be able to monitor the connection status to the S7-1500, the following two
@system tags are available.
 "@<ConnectionName>@ForceConnectionState"
 "@<ConnectionName>@ConnectionState"

"@<ConnectionName>@ForceConnectionState" tag
In the connection, create the "@<ConnectionName>@ForceConnectionState" tag
to define the connection status between a WinCC station and S7-1200 / S7-1500:
 "1": The connection is established.
If you configure "1" as start value, the connection to S7-1200 / S7-1500 will be
established when starting runtime.

 "0": The connection is disconnected.


To ensure that the tag is initialized when starting runtime, assign an "absolute
address" to the tag. Moreover, this tag must not be a binary tag.
 Siemens AG 2018 All rights reserved

"@<ConnectionName>@ConnectionState" tag
Determine the current status of the connection using the connection-specific tag
"@<ConnectionName>@ConnectionState":
 "1": The connection is ready for operation.
 "0": The connection is interrupted or disconnected.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 32
5 Configuration and Settings for WinCC V7.4 SP1

5 Configuration and Settings for WinCC V7.4


SP1
This chapter describes how to perform an offline import of configuration data and
how to specify the prefix / suffix as default value.
You can still use the procedures described in WinCC V7.2, V7.3 and V7.4
regarding AS symbols and AS messages.

Validity
This chapter is valid for:
 STEP 7 V14 or higher
 WinCC V7.4 SP1
 S7-1200 (for firmware version V2.2 and higher)
 S7-1500
 ET 200SP

Components used
This chapter was created with the following components:
 Siemens AG 2018 All rights reserved

Hardware components
Table 5-1
Component Qty. Order number Note
S7-1516-3 PN/DP 1 6AG1516-3AN00-7AB0 Alternatively, a different S7-
1500, S7-1200 or ET 200SP
can be used.
Development 1 - PC for configuring the
system controller and WinCC
The hardware requirements
for STEP 7
and WinCC shall apply.

Software components
Table 5-2
Component Qty. Order number Note
WinCC V7.4 SP1 1 6AV63.1-....7-4... -
TIA Portal 1 6AV2103-0AA04-0AA5 Alternatively, TIA Portal
STEP 7 V14 SP1 STEP 7 V14 SP1 Basic can
Professional be used for an S7-1200.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 33
5 Configuration and Settings for WinCC V7.4 SP1

5.1 Prefix / suffix for tags


This section describes how to set the prefix/suffix as default value for tags for each
connection.

Procedure
Table 5-3
No. Action
1. In the Configuration Studio, go to the Tag Management and select the connection for which
you want to create a prefix or suffix.

2. Enter the desired prefix / suffix in the properties of the connection.


 Siemens AG 2018 All rights reserved

The prefix / suffix will be displayed exactly like you have specified it, i. e. it has to be entered
including the desired separators.

3. Now, read the AS symbols via "AS Symbols" > "Read from AS".

4. Enable the "Access" option to ensure that a tag with prefix and/or suffix will be created.

Note If later on you want to use a prefix or suffix for tags that already have been used,
it is necessary to remove the checkmark for the "Access" option and to set it
again.
Alternatively, you can use the "Find & Replace" function to assign the prefix and
suffix.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 34
5 Configuration and Settings for WinCC V7.4 SP1

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, symbolic
addressing and the “AS Symbols” tab will not be displayed anymore.
You can display both in the Tag Management again using the “Read from AS”
command.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 35
5 Configuration and Settings for WinCC V7.4 SP1

5.2 New features for AS messages


As of WinCC V7.4 SP1, messages of the S7-1500 can be applied automatically
after message changes. For this, set the checkmark for the "Auto Update" option at
connection level in the "Alarm logging".

Figure 5-1

Note If you have already read the AS messages manually using "Read from AS", first
delete the read messages in WinCC. Then, you can set the checkmark for the
 Siemens AG 2018 All rights reserved

"Auto Update" option to ensure that the messages are not available twice.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 36
5 Configuration and Settings for WinCC V7.4 SP1

5.3 Offline import of configuration data from TIA Portal for


absolute and symbolic addresses
As of WinCC V7.4 SP1, you can use the tool "SIMATIC SCADA Export for
TIA Portal" to perform an offline import of AS tags and AS messages from
TIA Portal to WinCC.
This tool is not part of the frame setup. You can download the version-specific
version in the following entry:
SIMATIC SCADA Export for TIA Portal

Note You can use this tool to export and import all AS tags and AS messages. It is not
possible to select individual tags and/or messages.

Procedure

Table 5-4
 Siemens AG 2018 All rights reserved

No. Action
1. In TIA Portal, open your project with the S7-1500 CPU to be exported.
2. Select your CPU and select the menu item "Online"> "Export to SIMATIC
SCADA".

3. Enter a name for the file to be exported and specify the storage path.
4. Click the "Export" button.
The export is carried out.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 37
5 Configuration and Settings for WinCC V7.4 SP1

No. Action
5. In the WinCC Explorer, open your project to which you want to import the S7-1500
CPU data.
6. Open the "Tag Management" in the WinCC Configuration Studio.
7. If no connection is available yet for the CPU, create the channel and the
connection. See chapter Loading AS symbols from an existing S7-1500 program
3.1
8. Select the connection. Select "Load from file" to import the data.
 Siemens AG 2018 All rights reserved

9. Open he storage path of the export file and select the format "TIA Portal Export
File (*.zip)" to be able to select the "*.zip" file.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 38
5 Configuration and Settings for WinCC V7.4 SP1

No. Action
10. Then, click the "Load from file" button. The AS symbols are displayed and it is
possible to toggle between them and the tags again using the button (1).

1
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 39
6 General

6 General
6.1 Creating a new connection in runtime with an own
name
With WinCC Runtime being activated, the name of a connection cannot be
changed. If you create a new connection, it is automatically named
"NewConnection_x".
You can use the following procedure with WinCC Runtime being activated to create
a new connection to the S7-1500 and to assign the name you want.

Table 6-1

1. In the Tag Management, go to "SIMATIC S7-1200, S7-1500 Channel" and select


the "OMS+" object.
2. Select the "Connections" tab.
3. Enter the name of the new connection directly in the "Name" column and confirm
the name using the "Return" key.
4. Subsequently, you can specify the connection parameters for the CPU.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 40
6 General

6.2 Overview table for the update function


This table shows after which project changes you should use "Update" function.

Table 6-2
HMI
Description Address changes Update function
relevant DB
Data type of HMI-
relevant tags in the Old address
DB changed and becomes red, tag Yes Necessary
symbols loaded gets new address
again from AS
CPU from backup Old address
project loaded with becomes red, tag Yes Necessary
identical DB setup gets new address
Old address
DB between two
becomes red, DB Yes Necessary
CPUs replaced
gets new address
Old address
Add DB from
becomes red, DB Yes Necessary
reference project
gets new address
 Siemens AG 2018 All rights reserved

Old address
Change of the data
becomes red, tag Yes Necessary
type on the CPU
gets new address
Tag name already
A new tag with the
exists, AS symbols
tag name of the AS
are read and Yes Not necessary
symbol + _1 is
selected for being
created
applied
DBs from global
Addresses have not
library added to No Not necessary
changed
project
Upgrading the Addresses have not
- Not necessary
firmware of the CPU changed
Device replacement Addresses have not
Yes Not necessary
of the CPU changed
AS symbol has to
Change of the
be read, applied
symbol name on the Yes Yes
and connected
CPU
again.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 41
6 General

6.3 Channel diagnosis "SIMATIC S7-1200, S7-1500


Channel"
For channel diagnosis of the communication channel "SIMATIC S7-1200, S7-1500
Channel", WinCC offers the following tools:
 "Status - Logical Connections" function
 ActiveXControl "WinCC Channel Diagnosis Control"
 "Channel Diagnosis" program
The channel diagnosis allows a status request of the current connections.

"Status - Logical Connections" tool


The "Status - Logical Connections" function is a tool integrated in SIMATIC WinCC.
To use it, you have to start the runtime. You can call the function via the menu
"Tools > Connection Status".
The tool displays the most important parameters of all connections that have been
created. This includes the following connection parameters:
 Connection ID
 Name of the connection
 Siemens AG 2018 All rights reserved

 Current status of the connection


 Number of tags read
 Number of read requests
 Number of tags written
 Number of write requests

You can cyclically update the connection parameters. You will find the necessary
setting in the bottom part of the dialog.
Figure 6-1

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 42
6 General

ActiveXControl "WinCC Channel Diagnosis Control"


For channel diagnosis in runtime, SIMATIC WinCC offers the ActiveXControl
"WinCC Channel Diagnosis Control".
Just like the "Status - Logical Connections" tool, it displays the most important
connection parameters of all connections that have been created. Add the control
to your runtime screen using the "Controls" toolbar.
Figure 6-2
 Siemens AG 2018 All rights reserved

In addition, the ActiveXControl offers a trace function. You can use this function to
trace the behavior of a channel in a trace file. Moreover, the connection parameters
are recorded in a log file.
Figure 6-3

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 43
6 General

"Channel Diagnosis" tool


The "Channel Diagnosis" tool is a program working independently of SIMATIC
WinCC. Analyzing the connections also requires an active runtime. It reflects the
structure and functionality of the ActiveXControl "WinCC Channel Diagnosis
Control". To find the tool, enter the term "Channel Diagnosis" in the Windows
search.

Note Further information on channel diagnosis is available in the following manual in


the chapters regarding channel diagnosis:
WinCC V7.3: Communication.
WinCC V7.4: Communication.
 Siemens AG 2018 All rights reserved

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 44
7 Appendix

7 Appendix
7.1 Service and support
Industry Online Support
Do you have any questions or need support?
Siemens Industry Online Support offers access to our entire service and support
know-how as well as to our services.
Siemens Industry Online Support is the central address for information on our
products, solutions and services.
Product information, manuals, downloads, FAQs and application examples – all
information is accessible with just a few mouse clicks at
https://support.industry.siemens.com

Technical Support
Siemens Industry's Technical Support offers quick and competent support
regarding all technical queries with numerous tailor-made offers
– from basic support right up to individual support contracts.
Please address your requests to the Technical Support via the web form:
 Siemens AG 2018 All rights reserved

www.siemens.com/industry/supportrequest

SITRAIN – Training for Industry


With our globally available training courses for our products and solutions and
using innovative teaching methods, we help you achieve your goals.
More information on the training courses offered as well as on locations and dates
is available at:
www.siemens.com/sitrain

Service offer
Our service offer comprises, among other things, the following services:
 Product Training
 Plant Data Services
 Spare Parts Services
 Repair Services
 Field & Maintenance Services
 Retrofit & Modernization Services
 Service Programs & Agreements
Detailed information on our service offer is available in the Service Catalog:
https://support.industry.siemens.com/cs/sc

Industry Online Support app


Thanks to the "Siemens Industry Online Support" app, you will get optimum
support even when you are on the move. The app is available for Apple iOS,
Android and Windows Phone:
https://support.industry.siemens.com/cs/ww/en/sc/2067

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 45
7 Appendix

7.2 Links & literature


Table 7-1
Topic
\1\ Siemens Industry Online Support
https://support.industry.siemens.com
\2\ Link to this entry
https://support.industry.siemens.com/cs/ww/en/view/101908495
\3\ SIMATIC S7-1500 Getting Started
https://support.industry.siemens.com/cs/ww/en/view/71704272
\4\ Manual "WinCC V7.2: Communication"
https://support.industry.siemens.com/cs/ww/en/view/73568736
\5\ Manual "WinCC V7.3: Communication"
https://support.industry.siemens.com/cs/ww/en/view/102691766
\6\ Manual "WinCC V7.4: Communication"
https://support.industry.siemens.com/cs/ww/en/view/109736225
\7\ Which quantity framework must you pay attention to for communication between an
S7-1200 or S7-1500 controller and WinCC Runtime Professional?
https://support.industry.siemens.com/cs/ww/en/view/98699910
 Siemens AG 2018 All rights reserved

\8\ Compatibility Tool for Automation and Drive Technology


https://support.industry.siemens.com/kompatool
\9\ Why is the connection from WinCC to the S7 controller not established via TCP/IP?
https://support.industry.siemens.com/cs/ww/en/view/79689088
\10\ Setting up a connection between WinCC V7.4 SP1 and S7-1507S on an IPC
https://support.industry.siemens.com/cs/ww/en/view/109750290

7.3 Change documentation


Table 7-2
Version Date Modifications
V1.0 10/2014 First version
V1.1 06/2015 CPU ET 200SP added
V1.2 06/2016 Chapter 4 "Ensuring a Better Overview of Numerous Tags"
added
V2.0 01/2018 Document revision regarding new functions with V7.4 SP1.
Several chapters added.

WinCC Communication S7-1200/ S7-1500


Entry ID: 101908495, V2.0, 01/2018 46