Professional Documents
Culture Documents
Appendix XIII
WINCC
Configuration Instructions
Author: Hao Xu
Page: p603 - p680
Last modified: 10/11/2013
This is part of the Engineering Thesis WinCC SCADA System via Profibus & OPC by Hao Xu.
603 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Preface
This configuration instruction provides a comprehensive description about the operations and configurations
of. The contents are summarized as follows:
Prerequisite
Resources
604 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Project Types
Tag Types
Tags in WinCC are used to carry variables for operations. Tags can be put into groups for easy management and
2 tag types are available as follows:
Internal tag: The tag which only carries value within WinCC. Internal tag also includes some
unchangeable system tags for system routine data which has a prefix of @.
External tag: The tag which links between WinCC and PLC for data exchange.
Archiving
Archiving is used to store process data either on hard disk or local RAM at a defined archiving cycle time. The
archiving data can also be compressed to reduce the data volume.
Communication Driver
SIMATIC S7 PROTOCOL SUITE
Under project tree, right click on Tag Management and choose Add new driver. Open SIMATIC S7
PROTOCOL SUITE.chn from C:\Program Files (x86)\Siemens\WinCC\bin.
Locate SIMATIC S7 PROTOCOL SUITE under Tag management with all its supported protocols as follows
(Figure 511):
605 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Right click on PROFIBUS and choose New Driver Connection. Click Properties in the pop up window to open
Connection Parameter window (Figure 513). Enter the Profibus address in the Station Address field and
leave 0 for the unsupported Segment ID. The Rack Number and Slot Number must match the PLC hardware
configuration in the PLC configuration software.
606 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
SYSTEM INFO
In WinCC, under project tree, right click on Tag Management and choose Add new driver. Open SYSTEM
INFO.chn from C:\Program Files (x86)\Siemens\WinCC\bin.
Locate SYSTEM INFO under Tag management (Figure 514), right click on SYSTEM INFO and choose New
Driver Connection. Right click the driver connection just created and select New Tag. In the window pops up,
press Select button to choose the required system information (Figure 515).
Data type
8-bit character set
Uint16
Uint16
Uint16
Uint16
8-bit character set
Uint16
Uint16
Uint16
Uint16
Int32
Floating 32-bit
Int32
Floating 32-bit
Floating 32-bit
Uint32
Floating 32-bit
After the selection is done, the tag can be used like normal tags, but without any PLC memory address.
607 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
OPC
Communicate with National Instruments OPC Server
Firstly create a LabVIEW project and create some Network-Published shared variables under a library
(Figure 516). Deploying all the shared variables by right clicking on the library and choose Deploy All.
In WinCC, under project tree, right click on Tag Management and choose Add new driver. Open OPC.chn
from C:\Program Files (x86)\Siemens\WinCC\bin.
Locate OPC communication driver under Tag management (Figure 517), right click on OPC Groups (OPCHN
Unit #1) and choose System Parameter.
Select National Instruments.Variable Engine. 1 under \\<LOCAL> directory if NI OPC server is on the
current computer (Figure 518). Otherwise locate the same item under AD directory. [106]
608 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 519: Browsing National Instruments shared variable engine library in WinCC Explorer
Now the OPC variables are listed under the OPC driver connection and are ready to be used like normal tags as
shown in Figure 520.
609 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Select OPCServer.WinCC.1 from the localhost if WinCC OPC server is on the current computer. Otherwise
browse from the network and search for the OPC server (Figure 522).
610 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Now OPC variables appear in the project library and are ready to be used in LabVIEW (Figure 524).
611 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Creating Tags
To create external tags, in the project tree, right click Driver connection under Tag management and select
New Tag. To create internal tags, right click Internal tags under Tag Management in the project tree and
choose New Tag. Alternatively, a tag group can be created under Driver connection to help to organize tags.
In the pop up window, Data type and Adapt format can be selected with additional Linear scaling function.
Click Select button to assign the variable address (Figure 525).
Under Limits/Reporting tab, user can define the initial value, lower and upper limits for the tag and also set a
Substitute value to override the actual tag value when certain events are triggered (Figure 526).
612 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Structure Tag
The structure tag is primarily used to create tags with certain hierarchy structure. Right click Structure tag in
the project tree and choose New Structure Type. In the Structure properties window, define a structure and
its elements with desired data types as shown in Figure 527. [87] [94]
After a structure tag has been created, it can be selected from the Data type drop down menu in the Tag
properties. Once the structure is given to a tag, multiple tags will be generated automatically based on the
number of elements in the structure and all the elements will have consecutive addresses.
Update Cycle
The available update cycles are as follows:
Upon change
250 [ms]
500 [ms]
1 [s]
2 [s]
5 [s]
10 [s]
1 [min]
5 [min]
10 [min]
1 [h]
User cycle 1 5
613 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Tag Simulator
In the project tree, right click Internal tags under Tag management and select New Tag (Figure 528). Type a
name in the pop up window and define the data type.
614 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Under Properties tab in the Simulation window, set up the parameters under Sine tab. Other tabs are also
available if required. Tick the active tick box to enable the tag during the simulation as shown in Figure 531.
Figure 531: Sine wave simulation settings in WinCC tag simulator tool
615 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
616 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Diagnosis
After activate WinCC, click Tools from WinCC Explorer menu bar and choose Status of Driver Connections to
open Status - Logical Connections window as shown in Figure 533. User can click Update button to manually
update or tick Cyclic update to cyclically update the condition of the communication drivers. [93]
617 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
AutoStart
AutoStart enables a project to automatically start after computer startup (Figure 535). AutoStart can be
located at C:\Program Files (x86)\Siemens\WinCC\bin. [29] [90]
618 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Computer Properties
General
Right click on Computer in the project tree and choose Properties to open Computer properties window as
shown in Figure 536. If a project created on a computer needs to be running on a different computer, make
sure to change the computer name in the Computer properties window. The new computer name will take
effect after restarting program. [29]
619 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Startup
Under Startup tab, user can define which Runtime modules need to be loaded after activating WinCC.
Applications or tasks from other manufacturers in the computer can also be set to start automatically while
WinCC is activated (Figure 537). [29]
620 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Parameters
User can set up the display language and clock settings under the Parameters tab. Disable Keys are used to
disable combination keys during operations to eliminate the interference as shown in Figure 538.
621 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Graphics Runtime
Graphics Runtime tab contains some setups for the start screen, cursor control for cursor movement cycles,
hot keys, disable window buttons and window attributes (Figure 539).
622 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Runtime
The Runtime tab is the place to set up the script debugger and mouse pointer icons (Figure 540).
623 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Graphics Designer
The Graphics Runtime option under Startup tab of the computer properties needs to be ticked to enable
screen display while activating WinCC as shown in Figure 541. [29]
624 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Standard Objects
Table 371 summaries the function of standard objects.
Object names
Line
Polygon
Polyline
Ellipse
Circle
Ellipse Segment
Pie Segment
Ellipse Arc
Circular Arc
Rectangle
Rounded Rectangle
Static Text
Connector
Description
Create a straight line with customized colours and styles.
Create a polygon with customized colours and styles.
Create a polyline with customized colours and styles.
Create an ellipse with customized colours and styles.
Create a circle with customized colours and styles.
Create a quarter of ellipse with customized colours and styles.
Create a quarter of circle with customized colours and styles.
Create an ellipse arc with customized colours and styles.
Create a circular arc with customized colours and styles.
Create a rectangle with customized colours and styles.
Create a rectangle with rounded corners with customized colours and styles.
Create a static text with customized fonts, colours and styles.
Create a connector to visually connect different objects with connection points.
Table 371: Standard objects description in WinCC Explorer
Smart Objects
Below is some description about some important attributes of the objects.
Application Window
The Application window is used to display global action scripts, script diagnostic and print jobs. [110]
Picture Window
The Picture window is used to load a screen with all its contents into a window with its size and position. In
the object property, right click Dynamic icon of Picture name in the Miscellaneous section to select the
control source. [29]
625 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Control
The Control object contains a full range of the ActiveX objects that can be integrated into the WinCC screens
(Figure 542).
OLE Element
OLE element inserts an Object Linking and Embedding (OLE) element such as Excel, PowerPoint files into the
screen (Figure 543).
626 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
I/O Field
The I/O field is able to read/write value to a tag with pre-defined limits (Figure 544).
In the object property, right click Dynamic icon of Output value in the Output/Input section to select the
control source.
Bar
The Bar represents value with a bar graph which allows the user to visualize the process with all sorts of limits,
offset and guides (Figure 545).
In the object property, right click Dynamic icon of Process driver connection in the Miscellaneous section to
select the control source. Activate Trend in Miscellaneous section will display a little arrow which indicates
the direction of process i.e. increasing or decreasing. The average value of the last 15 valid values will be
displayed on the bar if Average value option is enabled in the Miscellaneous section.
627 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Graphic Object
The Graphic object allows user to import an external picture for display purpose as shown in Figure 546.
Status Display
The Status display object is used to display a pre-assigned picture depending on the value of a tag as shown in
Figure 547.
628 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Text List
The Text list is used to display different texts according to different values (Figure 548). It can be used as
input or output.
In the object property, right click Dynamic icon of Process driver connection in the Miscellaneous section to
select the control source. Double click Assignments from Output/Input section to open Text List
assignments. User can assign different texts to different values. Press Change button to accept changes and
press Append button to add new value.
Combobox
The Combobox is to visualize the selection from a drop down list.
In the object property, right click Dynamic icon of Selected box in the Miscellaneous section to define the
linking source. The corresponding text display can be entered in Selected text entry and the number of the
entries can be specified in Number of rows in Geometry section.
List Box
The List box can be used as a text selection field to send and receive information depends on the selection of
the text.
In the object property, right click Dynamic icon of Selected box in the Miscellaneous section to define the
linking source. The corresponding text display can be entered in Selected text entry and the number of entries
can be specified in Number of rows in Geometry section.
3D-Bar
The 3D-bar is able to display the values graphically related to the low and high limits.
629 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Windows Objects
Button
Button is generally used to trigger events by setting the event functions (Figure 549).
Check Box
The Check box is typically used to read and write to multiple bits in a byte or word.
In the object property, right click Dynamic icon of Selected Boxes in the Output/Input section to select the
control source. The number of available check boxes can be specified in Number of Boxes in the Geometry
section and the text of each check box can be entered via Text and Index in the Font section.
Option Group
The Option Group is typically used to read and write to a single bit in a byte or word.
In the object property, right click Dynamic icon of Selected Box in the Output/Input section to select the
control source. The number of available check box can be specified in Number of Boxes in the Geometry
section and the text of each check box can be entered via Text and Index in the Font section.
Round Button
The Round button works similar to the normal button except it has the latch function.
The latching function can be set from Latch Down in the Style section of the object properties and the initial
state can also be set via the parameter called Pressed in the same section.
630 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Slider Object
The Slider object provides a slider visual representation while controlling the manipulated variable.
In the object property, right click Dynamic icon of Process driver connection in the Miscellaneous section to
select the control source. Operation Steps in the Miscellaneous section defines the resolution of the value
(Figure 550).
In the object property, right click Dynamic icon of Process driver connection in the Miscellaneous section to
define the control variable.
Tube Objects
Tube objects allow user to create customized interconnected tubes for the process. 4 styles of tube are
available:
631 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Controls
User can add and remove Controls from the palette by right clicking on the Control directory and click
Add/Remove. [95]
Figure 551: WinCC digital/analog clock control configuration settings in WinCC Explorer
632 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
633 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
WinCC AlarmControl
The WinCC AlarmControl is used to automatically display all the messages set up in Alarm Logging if
conditions are met.
Drag a WinCC AlarmControl object into the screen, right click and choose Configuration dialog to open the
configuration window.
The columns shown can be selected from Message lists tab as shown in Figure 555. However, the available
columns are based on the active Message blocks in Alarm Logging configuration.
634 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
635 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Description
Help
Configuration dialog
Message list
Short-term archive list
Long-term archive list
Lock list
Hitlist
List of messages to be hidden
Ackn. central signalling devices
Single acknowledgement
Group acknowledgement
Emergency acknowledgement
Selection dialog
Display options dialog
Lock dialog
Print
Export data
Autoscroll
First message
Previous message
Next message
Last message
Infotext dialog
Comments dialog
Loop In Alarm
Lock message
Release message
Hide message
Unhide message
Sort dialog
Time base dialog
Copy rows
Connect backup
Disconnect backup
First page
Previous page
Next page
Last page
Table 372: WinCC AlarmControl toolbar functions description in WinCC Explorer [101]
636 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Description
Display the number of current messages in the list.
Display the number of pending messages waiting for
Pending acknowledgeable messages
acknowledgement.
Number of pending hidden messages Display the number of hidden pending messages.
Messages in the list
Display the number of messages in the window.
Selection
Indicate a message selection does exist.
Display option
Indicate the filter criteria is active.
Locked
Indicate at least one message is locked.
Pending hidden messages
Indicate there are hidden pending messages.
Connection status
Indicate the status of the server connection.
Date
Display the system date.
Time
Display the system time.
Time base
Display the time base used for displaying time.
Table 373: WinCC AlarmControl status bar elements description in WinCC Explorer [101]
637 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
WinCC OnlineTrendControl
The WinCC OnlineTrendControl is used to display tag values over a time period in a graph.
Drag a WinCC OnlineTrendControl object into the screen, right click and choose Configuration dialog to
open the configuration window.
Under Trends tab, user can add trends to display and assign tags to trends (Figure 557). Different trends can
be displayed on different trend windows with either same or different time and value axes. Both Online tags
and Archive tags are available.
638 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
639 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
640 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
641 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Description
Help
Configuration dialog
First data record
Previous data record
Next data record
Last data record
Zoom area
Zoom +/Zoom time axis +/Zoom value axis +/Move trend area
Move axes area
Original view
Select data
connection
Select trends
Select time range
Copy lines
Select data
connection
Previous trend
Next trend
Stop
Start
Print
Export data
Ruler
Define statistics area
Calculate statistics
Connect backup
Disconnect backup
Relative axis
Table 374: WinCC OnlineTrendControl toolbar functions descriptions in WinCC Explorer [98]
Table 375 is the description of all the status display from WinCC OnlineTrendControl.
Status
Connection status
Date
Time
Time base
Description
Indicate the status of the server connection.
Display the system date.
Display the system time.
Display the time base used for displaying time.
Table 375: WinCC OnlineTrendControl status bar elements description in WinCC Explorer [98]
642 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
WinCC FunctionTrendControl
The WinCC FunctionTrendControl is essentially used to output tag values as a function of another tag. In
other words, it is used to create parametric functions with 2 tag components.
Drag a WinCC FunctionTrendControl object into the screen, right click and choose Configuration dialog to
open the configuration window.
Under Trends tab, user can add trends to display in the trend window (Figure 561). Different trends can be
displayed on different trend windows with either same time and value axis or different axes. Multiple trend
windows can be added under Trend window tab and individual axis can be added under X axes and Y axes
tab.
643 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
644 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Description
Help
Configuration dialog
Zoom area
Zoom +/Zoom time axis +/Zoom value axis +/Move trend area
Move axes area
Original view
Select data connection
Select trends
Select time range
Previous trend
Next trend
Stop
Start
Print
Export data
Ruler
Connect backup
Disconnect backup
Table 376: WinCC FunctionTrendControl toolbar functions description in WinCC Explorer [102]
Table 377 is the description of all the status display from WinCC FunctionTrendControl.
Status
Connection status
Date
Time
Time base
Description
Indicate the status of the server connection.
Display the system date.
Display the system time.
Display the time base used for displaying time.
Table 377: WinCC FunctionTrendControl status elements description in WinCC Explorer [102]
645 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
WinCC OnlineTableControl
The WinCC OnlineTableControl is used to display the tag values over a time period in a table.
Drag a WinCC OnlineTableControl object into the screen, right click and choose Configuration dialog to open
the configuration window.
Under Value columns tab, user can add value columns to display and assign tags to columns as shown in
Figure 563. Both Online tags and Archive tags are available.
646 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
647 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Description
Help
Configuration dialog
First data record
Previous data record
Next data record
Last data record
Edit
Copy lines
Select data connection
Select columns
Select time range
Previous column
Next column
Stop
Start
Print
Export data
Define statistics area
Calculate statistics
Connect backup
Disconnect backup
Table 378: WinCC OnlineTableControl toolbar functions description in WinCC Explorer [99]
Table 379 is the description of all the status display from WinCC OnlineTableControl.
Status
Connection status
Selected row
Selected column
Date
Time
Time base
Description
Indicate the status of the server connection.
Display the number of the selected lines.
Display the number of the selected columns.
Display the system date.
Display the system time.
Display the time base used for displaying time.
Table 379: WinCC OnlineTableControl status elements description in WinCC Explorer [99]
648 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
WinCC RulerControl
The WinCC RulerControl is used to perform calculations for WinCC OnlineTrendControl, WinCC
FunctionTrendControl and WinCC OnlineTableControl.
Drag a WinCC RulerControl object into the screen, right click and choose Configuration dialog to open the
configuration window.
Under General tab, select the target control source as shown in Figure 565.
After activating WinCC, click Ruler from the toolbar of the target control source window to show the hidden
WinCC RulerControl window. Click Set statistics range from the toolbar of target control source window to
select a calculation range for Statistics area in WinCC RulerControl. Click Calculate statistics in the target
control source window to calculate and display the Minimum, Maximum values etc. in WinCC RulerControl.
649 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Description
Help
Configuration dialog
Ruler window
Statistics area
Statistics
Print
Export data
Table 381 is the description of all the status display from WinCC RulerControl.
Status
Source
Row
Column
Date
Time
Time base
Description
Indicate the control which contains the data source.
Display the number of the selected line.
Display the number of the selected column.
Display the system date.
Display the system time.
Display the time base used for displaying time.
WinCC UserArchiveControl
WinCC UserArchiveControl provides access to the user archives data records
IXDiskSpace.DiskSpace
This control allows user to monitor the available capacity on a storage medium. [97]
.NET Control
.NET Control is used to integrate .NET applications as controls into the screen. [97]
WPF Control
WPF Control is used to integrate WPF files as controls into the screen. [97]
650 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Export Data
For all the control windows, all the recorded data can be exported as a CSV file using the Export Data function
from the toolbar (Figure 566).
The export setting can be set under Export tab in the Configuration dialog of each control as shown in Figure
567.
651 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Do not retain: The online configuration during Runtime will not retain.
Retain during Runtime: The online configuration during Runtime will only retain for the current
Runtime session.
Retain permanently: The online configuration during Runtime will be stored for the future.
652 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Tag Logging
Double click Tag logging in the project tree in WinCC Explorer to open up Tag logging configuration window.
User can define customized timers in the Timers list as shown in Figure 569. The acquisition and archiving
times are based on these timer values.
To create an archive, right click on Archives from the list, then choose Archive Wizard. Select either Process
Value Archive or Compressed Archive and import the logging tags during the wizard as shown in Figure
570.
653 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 571: Archiving settings of process tag in tag logging in WinCC Explorer
Additional value processing can be set up under parameter tab as shown in Figure 572.
Figure 572: Parameters setting of process tag in tag logging in WinCC Explorer
654 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Compressed Archive
Right click on CompressedArchive and choose Properties. Under Compression tab, define the Processing
methods and Compression time period as shown in Figure 573. The possible processing methods are as
follows:
Calculate
Calculate and copy
Calculate and delete
Calculate, copy and delete
655 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 574: Parameters setting of compressed tag in tag logging in WinCC Explorer
Click on Archive Configuration will show 2 types of tag loggings as shown in Figure 575. TagLogging Fast
refers to any logging with archiving time less or equal to 1 minute by default and the TagLogging Slow refers
to any logging with archiving time greater than 1 minute by default.
656 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Finally, the Tag Logging Runtime option under Startup tab in the computer properties needs to be loaded to
enable tag logging as shown in Figure 577.
Figure 577: Tag logging Runtime startup in computer properties in WinCC Explorer
657 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Alarm logging
Double click Alarm logging in the WinCC Explorer project tree to open Alarm logging configuration window.
Message Blocks
Message blocks are used to define the message line that needs to be displayed.
Right click on the item of Message blocks and choose Add/Remove to add or remove items. 3 types of
Message blocks are as follows:
Description
Display the number of the CPU and automation system in which the
messages are triggered.
Indicate whether archiving is enabled.
Display the type of the message.
Display the name of the user.
Display the date for the message.
Display the duration for the message.
Indicate whether a limit violation occurs.
Display the user defined information for the message.
Display the class of the message.
Display the comment of the message.
Indicate whether loop in alarm is activated.
Display the message number.
Display the message priority.
Indicate whether the message will be logged.
Indicate whether a message has been acknowledged.
Display the computer name.
Indicate whether daylight saving is activated.
Time of day for incoming, outgoing and acknowledged.
Not supported.
Display message status such as Came in and Went out.
All the items in the Message blocks will be able to be displayed in WinCC AlarmControl window.
658 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Message Classes
Message classes are used to define numerous basic settings for messages.
Error
System, requires acknowledgement
System, without acknowledgement
Right click each message class and choose Properties to open the message configuration window. User can add
or remove message types under Class tab as shown in Figure 578.
Click Properties under Class tab to edit the text and background colour based on the alarm events (Figure
579), so they can be easily distinguished from each other in the message window.
Figure 579: Color settings of alarm events in alarm logging in WinCC Explorer
659 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 580: Acknowledgement settings of message class in alarm logging in WinCC Explorer
Description
Incoming message must be acknowledged.
Outgoing message must be acknowledged.
Message is flashing if flashing is enabled in the respective message
block.
Only the first message is flashing when Flashing on is selected.
Message does not have Went out status.
The comments in the message window are available to the logged on
user.
The comments of the incoming message are always displayed in the
user text blocks.
660 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Group Messages
Group messages are used to create groups to organize messages. If a message is not assigned to any user
defined group, then the message belongs to its own message class group.
The Lock tag and can be assigned to the whole group from the properties of the group as shown in Figure 581.
It is used to indicate whether the messages from this group are locked. Whenever the message group is locked,
certain bit of the lock tag will be set.
661 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Analog Alarm
To include the analog alarm module, in the Alarm Logging window, click Tools from the menu bar and choose
Add Ins. In the Add Ins window, select Analog Alarm and click OK as shown in Figure 582.
Figure 582: Add Ins with analog alarm in alarm logging in WinCC Explorer
Now Analog Alarm should be found in the Alarm Logging window as shown in Figure 583.
Right click on Analog Alarm and choose New. In the Properties window, select the tag which needs to be
monitored as shown in Figure 584.
Figure 584: Analog alarm tag selection in alarm logging in WinCC Explorer
662 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
663 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Alarm Messages
User can add new alarm messages by right clicking on the message list at the bottom and choose Append New
Line. Right click message and choose Properties to open the message configuration window as shown in
Figure 586.
Figure 586: Alarm message properties settings in alarm logging in WinCC Explorer
Message Tag
The Message tag is the tag which would trigger the message by certain message bit.
Acknowledge Tag
Acknowledge tag is used to acknowledge messages with certain bits.
664 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Status Tag
The Status tag is used to provide the came in/went out information for multiple messages. The Status tag can
be a byte, word or Dword and the first half of the bits are the arrive bits and the second half of the bits are the
acknowledgement bits. A single status bit is assigned to a message which will also be the arrive bit for that
message. And the acknowledgement bit of that message will then have an offset of half of the total bits in the
tag. Therefore, a byte, a word and a Dword can display the status of 4, 8 and 16 messages respectively. Table
384 illustrates the rule.
Status bit
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Byte
Arrive bit ACK bit
0
4
1
5
2
6
3
7
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Word
Arrive bit ACK bit
0
8
1
9
2
10
3
11
4
12
5
13
6
14
7
15
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
DWord
Arrive bit ACK bit
0
16
1
17
2
18
3
19
4
20
5
21
6
22
7
23
8
24
9
25
10
26
11
27
12
28
13
29
14
30
15
31
665 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 587: Alarm logging Runtime startup in computer properties in WinCC Explorer
666 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
User Administrator
Double click User Administrator in the project tree to bring up the User Administrator window as shown in
Figure 588. Multiple groups can be created and each of the group can have multiple users. Multiple
authorizations can be assigned to each group or user.
A user will remain logged on until the system is shut down or another user logs on. Alternatively, an automatic
logout function can be activated for safety operations. [105]
Most of the objects are able to be protected from unauthorized access. To set up the security, in the object
properties, locate Authorization setting and select the desired single authorization then click OK (Figure
589). Now this object can only be accessed by the user group or user whose authorization matches the
assigned authorization.
667 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
668 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Properties
Static
The static value is a constant value or a default value when the dynamics are not executed.
Dynamic
Table 385 is the description of different property dynamic icons.
Dynamic icon
White bulb
Green bulb
Red lightning
Green lightning with VB
Green lightning with C
Yellow lightning with C
Description
No dynamics.
Dynamic with a tag.
Dynamic via a dynamic dialog.
Dynamic via a VB action.
Dynamic via a C action.
Dynamic via a C action which has not been translated.
Dynamic Dialog
The Dynamic dialog is used for controlling an object property such as mapping a tag value to a value which can
be interpreted by the operator. 3 modes are available:
Do not evaluate tag status: Assign values according to different value ranges.
Tag status: Assign values according to different tag statuses.
Quality code: Assign values according to different tag qualities.
C-Action
C Action is used to dynamically control the property of an object or to react to events using ANSI-C script.
VBS-Action
VBS Action is used to dynamically control the property of an object or to react to events using VBScript.
Tag
The Tag connection is used to transfer the source object value to the target object.
669 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Event
Table 386 is the description of different event dynamic icons.
Dynamic icon
White lightning
Blue lightning
Green lightning with VB
Green lightning with C
Yellow lightning with C
Description
No action.
Action via direction connection.
Action via VBS.
Action via ANSI-C.
Action via ANSI-C which has not been translated.
C-Action
C Action is used to dynamically react to object events using ANSI-C script.
VBS-Action
VBS Action is used to dynamically react to object events using VBScript.
Direct Connection
The Direct connection is able to transfer a constant or a value from any object to a target objects properties
when certain event is triggered.
670 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
671 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
672 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 593: Menu and toolbar setup in graphics Runtime of computer properties in WinCC Explorer
Now activate WinCC will show the menu and toolbar on the top of the screen as shown in Figure 594.
Figure 594: Menu and toolbar on the top of WinCC Runtime screen
673 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Horn
Double click Horn from the project tree to open the configuration window as shown in Figure 595. Click OK or
Apply button to create a horn group with internal tags as shown in Figure 596 and Figure 597.
Figure 596: Horn tag group under Internal tags in WinCC Explorer
Under Signal assignment tab, choose the previous alarm tags and assign an audio file to each of them and then
click Apply button (Figure 599).
675 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Script
ANSI-C
Table 387 shows the specification of different types of ANSI-C functions and actions.
Project function
Standard function
Internal function
Local action
Global action
User create
Yes
No
No
Yes
Yes
Edit
Yes
Yes
No
Yes
Yes
Security
Yes
Yes
No
Yes
Yes
Trigger
No
No
No
Yes
Yes
Availability
Project wide
Across projects
Project wide
Assigned computer
Client-server project
Extension
.fct
.fct
.icf
.pas
.pas
Table 387: ANSI-C functions and actions description in WinCC Explorer [110]
There are totally 3 different entries for ANSI-C script, Global Script in the project tree, object Properties and
object Events. Dynamic wizard could also be used to create ANSI-C script. [109]
VBScript
Table 388 shows the specification of different types of VBScript procedures and actions.
User create
Standard procedure Yes
Project procedure
Yes
Standard module
Yes
Project module
Yes
Local action
Yes
Global action
Yes
Edit
Yes
Yes
Yes
Yes
Yes
Yes
Security
Yes
Yes
Yes
Yes
Yes
Yes
Trigger
No
No
No
No
Yes
Yes
Availability
Across projects
Project wide
Across projects
Project wide
Project wide
Client-server project
Extension
N/A
N/A
.bmo
.bmo
.bac
.bac
Table 388: VBScript functions and actions description in WinCC Explorer [111]
There are totally 4 different entries for VBScript, Global Script and Menus and toolbars in the project tree,
object Properties and object Events.
Trigger
To add a trigger to the action, in the Global Script window, click Info/Trigger button from the toolbar and
under Trigger tab, user can configure the trigger as shown in Figure 600.
676 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
677 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
OS Project Editor
The OS Project Editor is used for Runtime system configuration and message system settings. [86]
Time Synchronization
Time Synchronization ensures mandatory synchronization for all operator stations. [86]
Lifebeat Monitoring
The Lifebeat Monitoring function monitors the functionality and status of all the automation systems and
operator stations. [86]
Report Designer
The Report Designer is used to configure reports and layouts. [86]
Global Script
Global Script is a collection of scripts which make the project dynamic with functions and actions. [86]
Text Library
The Text Library is used to create and edit language-dependent user texts. [86]
Text Distributor
The Text Distributor is used to import and export language-dependent user texts. [86]
Cross-Reference
The Cross-Reference function localizes displays and rewires the location at which objects are used. [86]
Redundancy
Redundancy function is used to operate 2 servers at the same time. [86]
678 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
Figure 602: Siemens OPC DAAutomation 2.0 in Visual Basic editor in Excel
Now user can develop some VBA program in Excel to access WinCC tags.
679 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
680 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
681 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu
682 | P a g e
WinCC SCADA System via Profibus & OPC by Hao Xu