Applications & Tools: Customizing Wincc Controls
Applications & Tools: Customizing Wincc Controls
If you have any questions about this document, please contact us at the following
e-mail address:
[email protected]
Siemens AG 2013 All rights reserved
Copyright
Automation Solution 2
Configuration 3
Appendix 4
SIMATIC
Customizing WinCC Controls 5
References
Customizing WinCC Controls
History 6
Siemens AG 2013 All rights reserved
Copyright
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
Siemens AG 2013 All rights reserved
Table of contents
Warranty and liability ............................................................................................... 4
1 Automation Task ............................................................................................ 6
2 Automation Solution ...................................................................................... 7
2.1 Overview of customizing options ........................................................ 7
2.2 Required hardware and software components ................................... 8
3 Configuration .................................................................................................. 9
3.1 Customizing the toolbar ..................................................................... 9
3.1.1 Customizing the size of the buttons.................................................. 12
3.1.2 Customizing the button graphics ...................................................... 13
3.1.3 Modifying user-defined buttons ........................................................ 13
3.1.4 Customizing the divider/dividing space............................................. 14
3.2 Customizing grids ............................................................................ 14
3.3 Customizing the scrollbar................................................................. 17
4 Appendix....................................................................................................... 18
4.1 Layout structure AlarmControl.......................................................... 18
4.2 Layout structure FunctionTrendControl ............................................ 20
4.3 Layout structure OnlineTableControl ................................................ 21
4.4 Layout structure OnlineTrendControl ............................................... 23
Siemens AG 2013 All rights reserved
1 Automation Task
1.1 Requirement
Customizing WinCC controls according to individual requirements is frequently
required. Touch screen operation can be taken as an example, where the standard
control buttons are too small.
It is often desirable to adapt the appearance of the controls to the individual project
layout.
Figure 1-1 shows symbolically that the standard buttons are too small for touch
screen input.
Figure 1-1
Siemens AG 2013 All rights reserved
Copyright
2 Automation Solution
2.1 Overview of customizing options
This document facilitates the customization of WinCC controls. You thus have the
option to customize the following properties of the controls:
Buttons (size and layout)
Grids, e.g. in AlarmControl (individual icons, also dependent on values)
Scrollbar (style)
In Figure 2-1, however, the buttons have been customized, facilitating their
operation through a larger representation
Figure 2-1
Siemens AG 2013 All rights reserved
Copyright
Delimitation
This application does not include a description of the operation and use of WinCC.
3 Configuration
3.1 Customizing the toolbar
General
The operation and customization of the toolbar is the same for all WinCC controls.
Standard configuration
In the standard configuration, various buttons can be selected and their order be
arranged. Moreover, hotkeys can be assigned, via which the functions connected
with the buttons are called. It is possible to create user-defined buttons that trigger
certain events when being clicked on.
Figure 3-1
Siemens AG 2013 All rights reserved
Copyright
In the standard configuration, the toolbar graphics cannot be modified. The user-
defined buttons only have numbers and therefore have no significance to the user.
The size of the buttons is much too small for use on displays that are operated
manually via a touch screen. In the standard configuration, this size cannot be
modified.
Within this folder, a separate folder with the name of the control must be created
for each control the toolbar buttons of which are to be changed. For AlarmControl,
the folder is named "AlarmControl".
Create a subfolder at the above-mentioned path ("NewButton"), in which the
individual layouts for the toolbar can be stored.
Note Generally, please note that the "CCAxControlSkins" folder is PC-based and is
therefore not necessarily available on the WinCC client. This must be taken into
account especially when using multi-user systems or the "WebNavigator" option.
Note The file and folder names stated in the following must be precisely adhered to so
that the icons are displayed correspondingly by the controls.
Siemens AG 2013 All rights reserved
In the description, the data format "png" is used as an example. The "gif" and
"jpg" formats are also permissible.
Note Basically, it is not necessary to create all of the mentioned graphic files when
creating a new layout. For all files that are not available, the standard control
settings will be used.
Copyright
Figure 3-2
Siemens AG 2013 All rights reserved
Copyright
The "IconsBackground.png" file defines the size of the buttons. Since the toolbar
buttons are square, the maximum of the side lengths is read out of
"IconsBackground.png" and set as the height and length of the buttons. The thus
set size is fixed and cannot be changed through other graphics.
With this customization, you can set the size of the buttons according to your
needs.
Figure 3-3
Siemens AG 2013 All rights reserved
Copyright
Basic procedure
In order to customize the graphics, the "IconsNormal.png" file must be created in
the "Toolbar" folder. In this file, the individual graphics of the buttons must be
inserted successively (see the following figure). (The file for disabled buttons is
"IconsDisabled.png".)
Figure 3-4
The "IconsNormal.png" file can be customized as desired and replaced with new
graphics for the buttons. To use new graphics, the files "IconsNormal.png" and
"IconsDisabled.png" must be customized. This customization of the graphics can
be implemented with any graphic program.
The control then loads the file, cuts it into the single graphics, and displays the cut
parts on the buttons.
Figure 3-5
Copyright
The user-defined buttons are only provided with graphics that are numbered from
one through to nine. The numbers have no significance for the user. Moreover,
only nine user-defined buttons can be created, after that only dashed boxes will be
displayed.
Figure 3-6
Customized graphics of the user-defined buttons are created in the same manner
as the standard buttons described before.
After having created and renamed the files, store them in the "Toolbar" folder.
The divider and the left space before the buttons start can also be customized. In
order to modify the space around the divider, create the "Space.png" file and store
it in the "Toolbar" folder.
The width of this graphic is used as width of the dividing space. To modify the left
margin, you can create the "Left.png" file. A margin as wide as "Left.png" will be
created to the left of the start of the buttons.
Siemens AG 2013 All rights reserved
Figure 3-7
Copyright
Figure 3-8
Siemens AG 2013 All rights reserved
Copyright
The status content is displayed both as text and as icon. If there are any
comments, there is also an icon displayed.
1
An overview of all message blocks and their object names is provided in the Appendix.
2
An overview of all values that Status and further columns can take is provided in Appendix.
Figure 3-10
In the following, first of all the standard scrollbar is shown, which is displayed if no
modifications have been made.
Figure 3-11
Figure 3-12
4 Appendix
4.1 Layout structure AlarmControl
Toolbar graphics
Table 4-1
Values (name of the graphic) Description
IconsBackground.png Size of the toolbar icons
IconsDisabled.png Disabled icons
IconsDisabledEx.png Disabled user-defined icons
IconsNormal.png Icons
IconsNormalEx.png User-defined icons
Left.png Left margin in the toolbar
Space.png Space between the icons
Hit list 7
List of alarms to hide 8
Acknowledgement of central detectors 9
Single acknowledgement 10
Group acknowledgement 11
AutoScroll 12
Selection dialog 13
Display option dialog 14
Blocked items dialog 15
Print 17
Emergency acknowledgement 18
First alarm 19
Previous alarm 20
Next alarm 21
Last alarm 22
Infotext dialog 23
Comment dialog 24
Loop In Alarm 25
Table 4-3
Function Object ID (sequence in IconsNormalEx.png)
User-defined 1 1001
User-defined 2 1002
User-defined X 100X
Table 4-4
Copyright
Start / Stop 16
Print 17
Connect backup 18
Disconnect backup 19
Export data 20
Copyright
Grid
There is no grid available.
Copy lines 8
Select data connection 9
Select columns 10
Select time range 11
Previous column 12
Next column 13
Start / Stop 14
Copyright
Print 15
Define statistics range 16
Calculate statistics 17
Connect backup 18
Disconnect backup 19
Export data 20
Grid
Display of icons not possible.
Configuration dialog 2
First data set 3
Previous data set 4
Next data set 5
Last data set 6
Ruler 7
Zoom section 8
Copyright
Zoom +/- 9
Zoom time axis 10
Zoom value axis 11
Shift trend range 12
Shift axis range 13
Original view 14
Select data connection 15
Select trends 16
Select time range 17
Previous trend 18
Next trend 19
Start / Stop 20
Print 21
Define statistics range 22
Calculate statistics 23
Connect backup 24
Disconnect backup 25
Export data 26
Relative axis 27
Grid
Display of icons not possible.
Grid
Display of icons not possible.
Siemens AG 2013 All rights reserved
Copyright
5 References
5.1 Bibliography
This list is not complete and only represents a selection of relevant references.
Table 51
Subject Title
/1/ STEP7 Automatisieren mit STEP7 in AWL und SCL (Automating
with STEP7 in STL and SCL)
Hans Berger
Publicis MCD Verlag
ISBN 3-89578-341-2
/2/
6 History
Table 61
Version Date Modifications
V1.0 xx.xx.20xx First version
V1.1 07.12.2009 Corrected headers and footers
V2.1 13.06.2013 New version WinCC 7.2
Siemens AG 2013 All rights reserved
Copyright