SITRAIN
ST-BWINCCS /Project Creation Page 1 Siemens AG © 2007
Contents Page
Creating a Project, Connecting a PLC, Tag Simulation 2...................................................................... 2
Creating a Project, Connecting a PLC, Tag Simulation 3...................................................................... 3
Objectives .......................................................................................................................................... 4
Configuration Preparation .....……....................................................................................................... 5
Creating a Project ................................................................................................................................ 6
WinCC Project Structure and Files …................................................................................................. 7
Interchanging between Projects ......................................................................................................... 8
Specifying Project Properties(1/2) ……............................................................................................... 9
Specifying Project Properties (Interface and Design) (2/2) ....…..................................................... 10
Computer Properties 1/2 ..……........................................................................................................... 11
Computer Properties 2/2 ....……......................................................................................................... 12
Task Definition ......……….................................................................................................................... 13
Tags for the Process Connection ....……............................................................................................ 14
Data Exchange with SIMATIC S7 ....…............................................................................................... 15
Setting the PG/PC Interface for CP5611 .…........................................................................................ 16
Specifying Properties of CP5611 Card .….......................................................................................... 17
Installation of SIMATIC Device Drivers (S7-DOS) ........…................................................................... 18
Communication Structure ..….............................................................................................................. 19
Selecting Communication Drivers for the Connection 1/2 .................................................................. 20
Selecting Communication Drivers for the Connection 2/2 .................................................................. 21
Exercise 1: Creation of Project „Control_Room“, Engineering of PLC Connection 1/2........................ 22
Exercise 1: Creation of Project „Control_Room“, Engineering of PLC Connection 2/2........................ 23
Configuring Process Tags for SIMATIC S7………............................................................................... 24
Exercise 2: Configuring Process Tags and Tag Groups ..................................................................... 25
Data Storage in SIMATIC S7: Motorola Format (Big-Endian) ..…....................................................... 26
SITRAIN
ST-BWINCCS /Project Creation Page 2 Siemens AG © 2007
Contents Page
System Info Channel ......................................................................................................................... 27
Editing System Info Channel Tag ............................................................................................ 28
Exercise 3: Configuring System Info Channel Tags and Groups 1/3 ………...................................... 29
Exercise 3: Configuring System Info Channel Tags and Groups 2/3 ………...................................... 30
Exercise 3: Configuring System Info Channel Tags and Groups 3/3 ………...................................... 31
Configuring Internal Tags .................……......................................................................................... 32
Exercise 4: Configuring Internal Tags and Tag Groups .………….................................................... 33
Status of the Connection .................................................................................................................. 34
Connection Diagnostic with SIMATIC S7 (*.LOG) ............................................................................ 35
Channel Diagnostics with Channel Diagnosis .................................................................................. 36
Quality Code .................................................................................................................................... 37
"CrossReference" (Cross Reference List 1/3) .................................................................................. 38
"CrossReference" (Cross Reference List 2/3) .................................................................................. 39
"CrossReference" (Cross Reference List 3/3) .................................................................................. 40
Tools: CrossReferenceAssistant ....................................................................................................... 41
Tag Simulation 1/2 ........…………….................................................................................................. 42
Tag Simulation 2/2 ......…………….................................................................................................... 43
Connection Status ............................................................................................................................ 44
Documentation for Communication ................................................................................................... 45
TIA Functions in WinCC ...…….......................................................................................................... 46
TIA Functionality, Compiling Symbols ....…….................................................................................... 47
Creating an OS (Operator Station) .................................................................................................... 48
Parameterizing an MPI Subnet via HW Config ................................................................................. 49
SITRAIN
ST-BWINCCS /Project Creation Page 3 Siemens AG © 2007
Contents Page
Symbol Table, Setting The Attribute Operator Control and Monitoring 1/2 ....................................... 50
DB1, Setting The Attribute Operator Control and Monitoring 2/2 ...................................................... 51
Creating an S7 Program ................................................................................................................... 52
Generating WinCC Tags ............……............................................................................................... 53
Selecting the Subnet for Compiling ..........……................................................................................. 54
Compiling Step7 Data to WinCC 1/2 ......………................................................................................ 55
Compiling Step7 Data to WinCC 2/2 ......………................................................................................ 56
Generated Connection and Tags in the WinCC Explorer .........…..................................................... 57
Generated Tags Linked to the Object ..............………...................................................................... 58
Tag Generation using Drag & Drop (Implicit Compiling) ....……….................................................... 59
If You Want to Know More ................................................................................................. 60
TIA: Network Entry Point with Writing Authority in STEP7 .…........................................................... 61
Generating Reference Data for Network Entry Point ....................................................................... 62
Network Entry Point to STEP 7 1/2 .........……................................................................................... 63
Network Entry Point to STEP 7 2/2 ........…….................................................................................... 64
Calling the Go To Location from WinCC and Return to WinCC .…………........................................ 65
TIA Functionality, Hardware Diagnosis from WinCC Pictures ......................................................... 66
Configuring an Attribute for Hardware Diagnosis …………............................................................... 67
Configuring an Event for Hardware Diagnosis ….............................................................................. 68
TIA Functionality, SIMATIC "Report System Error" in WinCC Graphic Pictures .............................. 69
- Creating a Project
- Configuring Tags
- Tag Simulation
- Cross Reference
SITRAIN
ST-BWINCCS /Project Creation Page 4 Siemens AG © 2007
- Type of Coupling
- Process Tags
- Internal Tags
SITRAIN
ST-BWINCCS /Project Creation Page 5 Siemens AG © 2007
Configuration Preparation
Process coupling
- Specifying the programmable logic controllers (PLCs) for the data
exchange
- Specifying the physical level for the data transmission
- Specifying the number of input data and output data for PLC
communication
- Specifying data areas for the individual send cycles
Visualization
- see Chapter 3.
Password Protection
- see Chapter 3.
- Context help
Office PC or
Industrial PC - one operator control
station
- one server, several clients
without their own project
SIMATIC NET
PLC
SITRAIN
ST-BWINCCS /Project Creation Page 6 Siemens AG © 2007
Use the Context Help. Open the context help by clicking on the question mark
icon in the WinCC Explorer dialog shown above. After clicking on the question
mark icon, move it to the different texts in the dialog window to obtain further
information.
Note You can use both lower case and upper case characters in a project name.
SITRAIN
ST-BWINCCS /Project Creation Page 7 Siemens AG © 2007
Note The directory structure is dynamic and is dependent on the software tools
installed and on the use of WinCC applications (on the WinCC CD).
ArchiveManager
AlarmLogging File Name Structure:
ComputerName_ProjectName_ALG_FromTime_ToTime.mdf
ArchiveManager
TagLogging Fast File name structure:
ComputerName_ProjectName_TLG_F_FromTime_ToTime.mdf
Acquisition cycle <1min.
ArchiveManager
TagLogging Slow File name structure:
ComputerName_ProjectName_TLG_S_FromTime_ToTime.mdf
Acquisition cycle >1min.
*.Log File Log Files *.log contain setup data, system status and error messages for the
application engineer and service technician.
Installation directory: Siemens\\WinCC\\Diagnose.
Start Runtime
Stop Runtime
SITRAIN
ST-BWINCCS /Project Creation Page 8 Siemens AG © 2007
3. Click on your file name, as illustrated in the slide above (File name :
Example.MCP).
Note If a third-party WinCC project (that was copied onto the hard drive from a data
storage medium) is started in Runtime, you must replace the existing computer
name with the local computer name before you start. You do this in "Computer"
Properties, "General" tab. Then you must exit WinCC and restart it. Now, Runtime
can be restarted.
SITRAIN
ST-BWINCCS /Project Creation Page 9 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 10 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 11 Siemens AG © 2007
Computer List The computer list contains all computers assigned to the current project.
General The computer name, e.g. Instructor, and the computer type are specified in the
"General" tab. Via the button “Assume local computer name" the computer name is
accepted in the computer properties.
The computer type (Server or Client) is defined for multi-user projects (client-server
configurations). "Server" is the presetting”.
Startup You use the "Startup" tab to select standard WinCC programs that are to be loaded
when the Runtime project is activated. You can start other applications during
startup by using the "Add" button.
Parameters You use the "Parameters" tab to specify the language setting at runtime, whereby a
spare (replacement) language can be taken into account. In order to avoid incorrect
operator handling in Runtime, typical Windows key combinations can be inhibited.
The PLC‘s time-of-day setting allows for universal time (UTC) or local time. The
Date/Time-of-Day selection possibilities allows you to display the RT time for
WinCC data in the valid local time zone or in the coordinated time zone (UTC
Universal Time Coordinated). In addition, the time format can be displayed
according to ISO 8601.
Graphics Runtime You can make individual project settings (see slide above) in the Graphics Runtime
tab. Select the Online Help.
Note The computer name may not contain a blank, a hyphen or an underscore. The first
character must be a letter. All characters must be capitalized. It is recommended
that you only use the characters a to z, A to Z, 0 to 9. Information on changing a
computer name can be found in FAQ 5708 281
.cur
.ani
SITRAIN
ST-BWINCCS /Project Creation Page 12 Siemens AG © 2007
Runtime The settings in this tab are valid (as of WinCC V6.0) for all WinCC projects on the
computer used. The following settings are possible :
- Set Debug Options for Visual Basic Scripts in the Graphics Designer
- Set Debug Options for Visual Basic Scripts in Global Script
- Restrict global design effects
- Use picture cache
- Change mouse pointer
- Enable monitor keyboard
Speed setpoint
Actual speed
Data Manager
Protocols
SITRAIN
ST-BWINCCS /Project Creation Page 13 Siemens AG © 2007
Task Definition The configuration example shows the communication between WinCC on a
Windows computer and a SIMATIC S7 300/400. The settings on the WinCC are
shown by means of examples, thus producing a guide for the configuration.
Depending on the system configuration, it may be necessary to use different
settings, such as for the slot number of the CPU. You are to configure the plant
simulation diagrams depicting the start picture, motor picture, bottling plant picture,
trends and message (alarm logging) picture. The configuration must then undergo
a function test.
Start Picture When you switch to runtime, the overview picture (company logo) is to appear. In
the start picture you can call the motor picture, the bottling plant picture, the trends
picture and the message picture. The pictures are displayed in a picture window
integrated in the start screen.
Motor Picture Input and output of digital values, display change of the switch setting.
Bottling Plant Display of digital values in graphic form (bar graph). Calculations with C actions
and diagnostics of C actions.
The user navigates between the pictures by using the buttons at the bottom of the
start screen. The pictures are displayed in a picture window integrated in the start
screen.
20
SIMATIC S5
SIMATIC S7
30
SIMATIC TI505
Archive
Other drivers 35
Message events
40.0 Motor 1 defective
40.1 Valve 3 sticks
...
SITRAIN
ST-BWINCCS /Project Creation Page 14 Siemens AG © 2007
Coupling The WinCC coupling can take place with SIMATIC drivers or other drivers.
Process Image The data manager manages the process image from the tag data from DBs, DXs,
inputs, outputs, and bit memories (flags).
Function You use the editors to configure the view and control functions made available in
WinCC and to connect the functions with the process by means of the tags.
Setpoint value 95
Digital output
SIMATIC NET
Digital input
SITRAIN
ST-BWINCCS /Project Creation Page 15 Siemens AG © 2007
Note In the Online help you will find a list of channel drivers for the process
communication.
Interface parameter
CP5611 assignment used:
CP5611 (MPI)
CPU
SITRAIN
ST-BWINCCS /Project Creation Page 16 Siemens AG © 2007
General You use the "Set PG/PC Interface" tool to define the connection between an
application such as STEP 7 and a module such as CP 5611. The tool is activated
with Start --> Settings --> Control Panel.
Properties In this tab, you adapt the parameters of the interface. For "Address", enter the MPI
address of the PG. This must be unique in the network. To make communication
possible, the "Transmission Rate" and "Highest Node Address" parameters must
be the same for all nodes (stations). The "PG/PC is the only master on the bus"
setting is only activated if only slaves are connected to the PG.
Diagnostics With this, you can check whether a connection can be made.
SITRAIN
ST-BWINCCS /Project Creation Page 17 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 18 Siemens AG © 2007
Driver The SIMATIC Device Drivers is required for the communication to the SIMATIC S7
via the SIMATIC S7 protocol suite.
Note The SIMATIC Device Drivers is to be selected under Communication for the
WinCC installation. If this has not taken place, it can be made later on with a Delta
Installation.
SITRAIN
ST-BWINCCS /Project Creation Page 19 Siemens AG © 2007
The Way it Works The WinCC data manager manages the WinCC tags during Runtime execution.
The various WinCC applications address their tag requirements to the data
manager. The data manager then has the task of fetching the demanded tag
values from the process by using the communication driver integrated into each
WinCC project. The communication driver makes the interface between WinCC
and the process using one of its channel units. The hardware connection to the
process is usually made using a communications processor. The WinCC
communication driver then sends request telegrams to the programmable logic
controller using this communications processor. The programmable logic controller
sends the requested process values back to the WinCC in corresponding reply
telegrams.
Data Manager The data manager takes over the administration of the data in WinCC. This is not
visible to the user. The data manager works with the data created in the WinCC
project and stored in the project database. It takes over the complete management
of the WinCC tags while WinCC is running in Runtime. All WinCC applications
have to request the data from the data manager in the form of WinCC tags. These
applications are, among others, Graphics Runtime, Alarm Logging Runtime and
Tag Logging Runtime.
Communication Driver
Various communication drivers are used so that WinCC can communicate with the
different types of available programmable logic controllers. The WinCC
communication drivers link the data manager to the programmable logic controller.
The communication driver is a C++ DLL which communicates with the data
manager through the interface specified by the data manager. This interface is a
so-called Channel API. The WinCC tags are supplied with process values through
this communication driver.
Hardware Driver The hardware connection to the process is usually made using a communications
processor. Every channel unit forms the interface to exactly one subordinate
hardware driver and therefore to exactly one communication module in the
computer.
Context menu
B)
SITRAIN
ST-BWINCCS /Project Creation Page 20 Siemens AG © 2007
3. In the window, search for the communication driver and then choose the driver
for your procedure (for example, for SIMATIC S7Protocol Suite.CHN).
4. In the "Connection" tab, enter the connection parameters for the S7 network
address :
Station address: 2 (MPI address)
Segment ID: 0 (not currently in use)
Rack Number: 0 (Rack number of the CPU)
Slot No.: 0 (CPU Slot)
C)
Context menu
SITRAIN
ST-BWINCCS /Project Creation Page 21 Siemens AG © 2007
3. In the “System Parameter - MPI” dialog box, open the “Unit” tab.
5. Exit the “System Parameter - MPI” dialog box by clicking on the “OK” button
Name of
driver
connection
Context menu
SITRAIN
ST-BWINCCS /Project Creation Page 22 Siemens AG © 2007
Objective Create a new project with the WinCC Explorer and define the connections and
tags required for data exchange between AS and HMI computer. Further pictures
and functions will be added to the ControlRoom project during the course.
Name of
driver
connection
Context menu
SITRAIN
ST-BWINCCS /Project Creation Page 23 Siemens AG © 2007
Note You can use both lower case and upper case characters in a project name.
Note:
Use of S7 symbols (TIA)
is possible as of WinCC V5.
SITRAIN
ST-BWINCCS /Project Creation Page 24 Siemens AG © 2007
Process Tags
Process tags establish the connection between the process and the HMI station.
They are configured after a PLC connection is setup.
New Group
WinCC allows you to combine tags in technological units. This results in a tag
structure that is easy to read. Before you begin with tag configuration (New Tag)
create a "New Group...".
New (Process) Tag
The slide above illustrates all the configuration steps.
Linear Scaling
The process values are scaled before they are displayed.
Internal Tags
WinCC makes it possible to define tags, which do not affect process coupling, for
an entire project. Tags can also be configured here either individually, or combined
in groups.
Limits/Reporting
On this page, the limits to be checked by the data manager are specified.
Substitute values to used in the case of connection errors and a start value to be
used by the data manager for the initial initialization.
Note
With integrated WinCC projects, access to the S7 symbols (TIA) is possible. The
tags are generated by WinCC.
Characters Not Allowed
When you give a tag a name, you have the following restrictions:
The @ character should be reserved for WinCC system tags; it is, however,
possible to use this character.
. : ? „ ' \ * $ % Blank
Capital / small letters is irrelevant.
The period is used as a separator in structure tags.
In the Motorola format (Big-Endian (“Big End”)), the byte with the
most significant bits (i.e. most significant digits) is saved first, i.e. at
the smallest memory address.
Example: addressing of binary tag: P_message0 Æ DB1.DBX16.2
SITRAIN
ST-BWINCCS /Project Creation Page 26 Siemens AG © 2007
Process tags establish the connection between the process and the operator
control and monitoring station. On the SIMATIC page, storage is always organized
byte-by-byte. If, however, two bytes are combined in one word, e.g. DB1.DBW16
(byte 16, byte 17), the data is stored in Motorola format on the SIMATIC page. In
this format, the byte with the most significant bits (i.e. the most significant digits) is
stored first, i.e. at the smallest memory address (in the example above in byte 16
of the DB1 data block). The bit pattern shown in the figure corresponds to the
decimal value 1024. When individual bits are addressed, the address is specified
byte-oriented. In the figure above, bit 10 in the data word 16 is addressed with the
address "DB1.DBX16.2". The right byte of the data word 16 (DB1.DBW16) has the
address 17.
SITRAIN
ST-BWINCCS /Project Creation Page 27 Siemens AG © 2007
Objective The system information channel permits the user to define different system
information about internal tags and to link it to input/output objects via a channel.
A)
B)
SITRAIN
ST-BWINCCS /Project Creation Page 28 Siemens AG © 2007
Step B Step B shows the generated object SYSTEM INFO in the project tree. The
generated tags are shown in the right window.
SITRAIN
ST-BWINCCS /Project Creation Page 29 Siemens AG © 2007
Result The internal tags you configured can now be linked with objects to make them
dynamic (action configuration).
Excel You can create and maintain large amounts of tags very effectively and easily with
Excel, for example. You get a fixed structure in the design of the tag name in
Excel, if you use the Export via the WinCC -> Tools -> "Tag Export Import". You
can then reimport this tag list created in Excel into WinCC with same the program.
The tool is located on your WinCC DVD and must first be installed.
Excel 2000, Excel XP, Excel 2003 SP3
In addition, you can install a Configuration Tool (Add-In for Excel) from the WinCC
DVD. With this tool you can configure mass data in Excel for connections, tags,
structures, messages, archive tags etc.
The Excel spreadsheet can also be executed on computers without WinCC
installed.
SITRAIN
ST-BWINCCS /Project Creation Page 31 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 32 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 33 Siemens AG © 2007
Internal Tags
WinCC makes it possible to define tags, which do not affect process coupling, for
an entire project. Tags can also be configured here either individually, or combined
in groups.
New Group
WinCC allows you to combine tags in technological units. This results in a tag
structure that is easy to read. Before you begin with tag configuration (New Tag)
create a "New Group...".
Limits/Reporting
The limits to be checked by the data manager are specified on this page. A start
value to be used by the data manager for an initial initialization and runtime
persistency so that the data of the tag will not be deleted after a runtime restart.
Configuring Tags
SITRAIN
ST-BWINCCS /Project Creation Page 34 Siemens AG © 2007
Objective Create a tag group (as shown above) with the associated internal tags within the
group.
Result The internal tags you configured can now be linked with objects to make them
dynamic (action configuration).
SITRAIN
ST-BWINCCS /Project Creation Page 35 Siemens AG © 2007
If the number of read-only and/or write-only tasks that are displayed increase
continually and no reduction takes place, it can lead to an overload of the data link.
You will find an explanation for the Error No. that is displayed in the Online Help.
You will find an example on the next page.
C:\Siemens\WinCC\Diagnose\SIMATIC_S7_PROTOCOL_SUITE_01.LOG
SITRAIN
ST-BWINCCS /Project Creation Page 36 Siemens AG © 2007
When you have a connection error, you can read out the file
"SIMATIC_S7_PROTOCOL_SUITE_01.LOG“. The LOG file records date, time-of-
day, and the events with error code. In the Online help, you will find the necessary
reference (cause of error) for the error code.
You will find further important *.LOG files in the WinCC diagnostic directory.
Storage of the *.LOG file depends on the installation path.
Call
Diagnosis Call "Channel Diagnosis" can be started as an application via the Windows Start menu.
That way, "Channel Diagnosis" is always available. The Channel Diagnosis Tool
must be installed from the WinCC DVD.
The advantage compared to the Log file
SIMATIC_S7_PROTOCOL_SUITE_01.LOG,
is that the status information of the connection is displayed directly.
ActiveX Control The status information for a channel can also be displayed in a process screen
through the ActiveX Control "WinCC Channel Diagnosis Control". The ActiveX
Control is available in the "Controls" object pallet of the Graphics Designer and is
inserted in a picture. That way, you can, for example, create a diagnosis process
screen in which you can call the status of communication and other information
while in runtime without having to reconfigure this combination as required.
Protocol In addition, you can analyze the events also recorded in a *.log and *.trc.
SITRAIN
ST-BWINCCS /Project Creation Page 38 Siemens AG © 2007
Handling If you point to a tag with the mouse while in Tag Management during WinCC
Runtime, a Quality Code appears. In addition to the current process value and the
time of the last change, an error code is displayed, e.g. Quality:8, - no connection
to PLC. This error code can be used to check the status and the quality of the tag.
Online Help
.
.. .XFC
Cross reference lists
Editor Filter
WinCC data
SITRAIN
ST-BWINCCS /Project Creation Page 39 Siemens AG © 2007
Cross Reference With the WinCC component "Cross Reference" (Cross Reference List) it is
possible :
- to find all the application locations of specific objects, such as tags, screens,
etc.
- for tags, to change the tag name using the function "Linking..." without
causing inconsistencies in the configuration.
Filter
You can use an adjustable filter to search for the following object types and create
a cross reference list :
- process tags and internal tags
- screens and screen windows
- archives
- project functions and standard functions
- OLE Objects
- ActiveX Controls
SITRAIN
ST-BWINCCS /Project Creation Page 40 Siemens AG © 2007
Tags in C-Actions
Tags in actions can only then be found and replaced by the Cross Reference if the
configuration rules for tags and screen names predefined in the C-Scripts are
adhered to.
Note The configuration rules are already taken into consideration by the Dynamic
Wizards during generation of the scripts.
When you set up C-Scripts, a comment recognizes the configuration rules.
Screen names are to be written without the file extension ".PDL".
You can find further information in the WinCC Online Help under Contents,
Editors, Cross Reference.
SITRAIN
ST-BWINCCS /Project Creation Page 41 Siemens AG © 2007
Note Screen names are to be written without the file extension ".PDL".
SITRAIN
ST-BWINCCS /Project Creation Page 42 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 43 Siemens AG © 2007
Simulation The simulation software provides the person configuring the system or the installer
with six different functions.
You can assign one of these six functions to each individual tag.
You can use these functions to supply the configured objects with realistic values.
Practical Functions
- Sine (as periodic, non-linear function).
- Oscillation (for simulating jumps of a reference input variable).
- Random numbers (provides you with randomly generated values).
- Increment (an up counter that begins again at the minimum value when it
reaches the maximum value).
- Decrement (a down counter that begins again at the maximum value when it
reaches the minimum value).
- Slider (a linear regulator that you can use to set a fixed value).
Note For installation, you can find this simulation program on your WinCC DVD.
To simulate process tags, you can also use the SIMATIC tool "PLCSIM", you do
not require SIMATIC hardware for PLCSIM.
SITRAIN
ST-BWINCCS /Project Creation Page 44 Siemens AG © 2007
Simulation All tags can be simulated during Runtime-mode with the simulation program
provided. The application is used for presentations and for testing functions.
Note Process tags can only be simulated if the communication connection to the PLC is
made. Since the tag value in the PLC can be changed by the simulation, you have
to take the necessary precautions (such as separating the load current circuits).
Simulating Tags
Creating tags for the tag table
1. Select M> Edit, O> New Tag
Note The update time for tag values is 1 second. A change does not go into effect until
the function is activated.
A maximum of 300 tags can be configured.
SITRAIN
ST-BWINCCS /Project Creation Page 45 Siemens AG © 2007
General Information If process tags or even internal tags are to be used in actions, you must read the
values via GetTag actions.
Permanent monitoring of the process connection from the PLC to WinCC can be
implemented with the GetTagState action (for example, a warning box pops up in
case of a fault or output a message).
Set Tag actions are made available for assigning the results of calculations.
The SetTagState action is available if the result of the SetTag action is to be
checked.
The success of a value change can be queried with the SetTagState action
(writing from WinCC to the PLC). This is especially important for process tags
because the most varied coupling faults can occur there.
The status is transferred as a bit register and can be either evaluated by the
Dynamic Dialog or by the status’ own actions.
- definition of a substitute value for a process tag that pops up when there is a
connection error. The setting is made in the Limits/Reporting tab (see slide
above).
- the status of a process tag can also be evaluated with the Dynamic Dialog
(see the Chapter on Graphics Screens.
SITRAIN
ST-BWINCCS /Project Creation Page 46 Siemens AG © 2007
You will find further documentation on the DVD and, after installation, on the hard
drive (see slide above); also on the Internet www.siemens.de/wincc using the link
"Support" -> Manuals.
SITRAIN
ST-BWINCCS /Project Creation Page 47 Siemens AG © 2007
Step7
WinCC
- Process tags in tag management
Database - User texts in the text library
- Messages in Alarm Logging Database
Communication (Compile)
STEP 7
symbol table
SITRAIN
ST-BWINCCS /Project Creation Page 48 Siemens AG © 2007
Requirements - Versions must fit together (Step7 V5.4 SP3.1 and WinCC V7.0).
- For the TIA functions presented on the next pages, you have to expand the
WinCC installation, as shown in the slide below.
-> Communication -> "Object Manager", "AS-OS Engineering" and "STEP7
Symbol Server“
Inputs, outputs, bit memories and elements of data blocks are mapped (compiled).
OS=Operator Station
SITRAIN
ST-BWINCCS /Project Creation Page 49 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 50 Siemens AG © 2007
By selecting the subnet "MPI", an MPI connection is generated in WinCC after the
OS has been compiled. Check the setting.
OS = Operator Station
set
SITRAIN
ST-BWINCCS /Project Creation Page 51 Siemens AG © 2007
Column B in the Symbol Table tells the program designer whether or not the
attribute has been set for operator control and monitoring.
Through the shortcut menu and the call of "Special Object Properties -> Operator
Control and Monitoring", the attribute can be set for every individual address.
This is necessary so that during compiling from S7, the tags in the Tag
Management of WinCC are created (generated).
The various possibilities of tag generation in WinCC are explained on the following
pages.
Note The Operator Control and Monitoring attributes are also set when tag generation
takes place from the WinCC side.
setzen
SITRAIN
ST-BWINCCS /Project Creation Page 52 Siemens AG © 2007
The flag (only for DBs) tells the program designer whether or not the attribute
has been set for operator control and monitoring. This is necessary so that during
the compiling of symbols, the tags in the Tag Management of WinCC are created.
S7_m_c true You assign this attribute and value when the symbol is to be used for tag
generation.
The various possibilities of tag generation in WinCC are explained on the following
pages.
Note The operator control and monitoring attributes are also set when the symbol
selection takes place from the WinCC side.
SITRAIN
ST-BWINCCS /Project Creation Page 53 Siemens AG © 2007
Compile Symbols
SITRAIN
ST-BWINCCS /Project Creation Page 54 Siemens AG © 2007
There are three ways of generating connection data and tags. These are
presented on the fowling pages.
- from Step7 via the Wizard "Compile Multiple OSs" -> Start... (only if operator
control and monitoring attributes were set for the symbols)
- trigger from WinCC via "Transfer Data" (possible without setting attributes on
the S7 side manually)
SITRAIN
ST-BWINCCS /Project Creation Page 55 Siemens AG © 2007
Prerequisite: Operator control and monitoring attributes for symbols have been
set.
2. After pressing the "Next" button, select "Entire OS" and "With memory reset" in
the "Scope" area.
3. In the last Wizard screen, you start the compiling (transfer) function by pressing
the "Compile" button.
2.
1. Select symbols
from the
Symbol Table
Symbols from
the Symbol Table
SITRAIN
ST-BWINCCS /Project Creation Page 56 Siemens AG © 2007
With this option, you can select several symbols simultaneously in order to then
compile (transfer) them.
2.
1. Select symbols
from the Data block
Symbols from
Data blocks
SITRAIN
ST-BWINCCS /Project Creation Page 57 Siemens AG © 2007
Symbol names from DBs with the definition of arrays and structures can only be
transferred individual.
2 3 1
SITRAIN
ST-BWINCCS /Project Creation Page 58 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 59 Siemens AG © 2007
Now you can use the tags from the tag list as usual for linking the objects. In the
example use the tag S7_Program_TIA/User.SetPointSpeed for the I/O field.
Drag&Drop
SITRAIN
ST-BWINCCS /Project Creation Page 60 Siemens AG © 2007
With this option, you open the Tags palette and Object Properties window and
drag&drop the icon onto an attribute name in the Dynamic column. Then the tag
will be generated.
SITRAIN
ST-BWINCCS /Project Creation Page 61 Siemens AG © 2007
Note The following pages are either for further information or for looking up more details
on a specific topic.
Inside WinCC:
PC Einschalten call of STEP7 block from
WinCC picture
In STEP7:
Link in STEP7 block:
call of WinCC picture from
Create user with right: STEP7
„STEP7 Editing“
SITRAIN
ST-BWINCCS /Project Creation Page 62 Siemens AG © 2007
SITRAIN
ST-BWINCCS /Project Creation Page 63 Siemens AG © 2007
Reference data are used to update lists such as: Cross Reference lists,
Assignment lists, etc. The operand for the network entry point must exist in the
CPU‘s block. The reference data must be updated.
SITRAIN
ST-BWINCCS /Project Creation Page 64 Siemens AG © 2007
Script generated by
Dynamic Wizard
SITRAIN
ST-BWINCCS /Project Creation Page 65 Siemens AG © 2007
For the network entry point with the Dynamic Wizard, select the event "Press right"
in the Wizard. The Wizard generates the script shown in the slide above. The
function can now be tested in Runtime.
Context
menu
SITRAIN
ST-BWINCCS /Project Creation Page 66 Siemens AG © 2007
If the network entry point is triggered in WinCC, the window "Go To Location..." is
then called. If the operand is used in several blocks or networks, you can use the
list to select the block with which the LAD/FBD/STL Editor is to be started.
The function "Show Picture..." in WinCC is possible in all three STEP7
representations.
SITRAIN
ST-BWINCCS /Project Creation Page 67 Siemens AG © 2007
The Hardware Diagnosis function enables you to start the STEP 7 Diagnosis
directly from WinCC pictures.
Depending on a configurable event, the STEP 7 "Diagnose Hardware" function is
started for the associated controller.
SITRAIN
ST-BWINCCS /Project Creation Page 68 Siemens AG © 2007
Script has to be
changed to:
GetHWDiag
SITRAIN
ST-BWINCCS /Project Creation Page 69 Siemens AG © 2007
Configuration No separate wizard currently exists for the jump to the Hardware Diagnosis. You
can however, use the wizard for the network entry point to configure the jump to
the hardware diagnosis. The jump to the hardware diagnosis can then be
configured in WinCC in an object generated in the Graphics Designer using the
"Network Entry Point" Dynamic Wizard. In a picture, insert the Windows object
"Button", for example. Start the Dynamic Wizard and select the "Network Entry
Point" from the "Standard Dynamics".
The function call created by the Dynamic Wizard has to be adjusted so that it
matches the one in the slide.
SITRAIN
ST-BWINCCS /Project Creation Page 70 Siemens AG © 2007
Configuration In HW Config, select the CPU for which you want to configure the system error
reporting. Then choose the menu commands Options > Report System Error.