8/18/2019 SCADA Study Material
1/388
Contents of Windows Control Center.
Working With Projects.
Before you can monitor and control a process, you must first create a project in WinCC. You
should define all the necessary elements, components and settings in this project.
This chapter shows you:-
• How to open and close WinCC software and the WinCC !plorer.
• The structure of the WinCC !plorer.
•
The types of project in WinCC.
• How to create a project and wor" with project.
• How to acti#ate and deacti#ate a project.
• How to copy a project.
Working with tags.
This chapter contains all important items of information a$out tags:
• Tag %anagement and tag selection dialog $o!.
• Tag types.
• Create and edit tags.
• &ogging tags in 'untime.
Creating Process Pictures
The (raphics )esigner is an editor for creating process pictures and ma"ing them dynamic.
This chapter will show you :-
• How to use the *(raphics )esigner+ editor.
• lements and $asic settings of the (raphics )esigner.
• Wor"ing with ictures.
8/18/2019 SCADA Study Material
2/388
• Wor"ing with o$jects.
• The properties of an o$ject.
• Wor"ing with o$jects in the $ject alette.
• Wor"ing with Controls.
• Testing rocess ictures in 'untime.
Setting Up an Alarm System
• larm &ogging in WinCC.
• rinciples of %essage /ystem.
• Configuring the %essage /ystem.
• %essage rchi#ing.
• )isplaying messages in 'untime.
On Line Trend Control
• How to create an n &ine Trend
• WinCC 0unction Trend control
• )isplaying n &ine Trend in 'untime
8/18/2019 SCADA Study Material
3/388
CHAPTER-I
Working With Projects
Opening the WinCC !plorer
"ntroduction
When you start WinCC, the WinCC !plorer normally opens.
fter installation, WinCC is entered in the start menu of the operating system. WinCC can $e
started with the 1WinCC 23.41 command.
The WinCC !plorer can also $e opened from the des"top or using the Windows !plorer.
#ote$
5f you only ha#e a runtime license installed on a computer, you can only wor" in the WinCC
!plorer or in a WinCC editor for one hour. 5f the WinCC !plorer or a WinCC editor
remains open for more than one hour, WinCC changes to the demonstration mode.
Principle
You can open the WinCC !plorer in the following ways:
• from the Windows /tart menu
• $y clic"ing the WinCC!plorer.e!e file in the Windows !plorer
• using a shortcut from the Windows )es"top
8/18/2019 SCADA Study Material
4/388
• in the Windows !plorer using a project file 6'7CT8.%C
• with utostart
• with a project that opens in utostart
You can start WinCC only once on a computer. 5f you attempt to open the WinCC !plorer
when it is already open, this will $e pre#ented without an error message. You can continue towor" normally in the open WinCC !plorer.
Start %ode o& the WinCC !plorer
Open project
When you start WinCC the first time, the WinCC !plorer is opened without a project.
Whene#er you start WinCC again, the last project you had open will $e opened again.
With the "ey com$ination 6/H50T8 and 6&T8, you can pre#ent WinCC from opening a project immediately. ress the 6/H50T8 "ey and the 6&T8 "ey when WinCC starts. 9eep
the "eys pressed until the window of the WinCC !plorer appears. The WinCC !plorer
opens without opening a project.
Acti'ated Project
5f the project was acti#ated when you e!ited WinCC runtime, it will $e opened in runtime
again when you restart WinCC.
5f you close a project and open another project that was opened the last time in the acti#ated
state, WinCC once again opens the project in runtime.
With the "ey com$ination 6/H50T8 and 6CT'&8, you can pre#ent WinCC acti#atingruntime immediately. ress the 6/H50T8 "ey and the 6CT'&8 while WinCC is opening.
9eep the "eys pressed until the project is open and displayed fully in the WinCC !plorer.
WinCC opens the last project without starting runtime.
Opening the WinCC !plorer
Windows Start %enu
You can open the WinCC !plorer from the Windows /tart menu. 5n the folder 1/5%T5C1
8 1WinCC1, select the entry 1WinCC 23.41. WinCC !plorer opens.
Windows !plorer
You can start WinCC with the 1WinCC!plorer.e!e1 start file. You can locate the
1WinCC!plorer.e!e1 file in the Windows !plorer in your installation path in 1WinCC$in1.
Windows (esktop
8/18/2019 SCADA Study Material
5/388
You can create a shortcut for the 1WinCC!plorer.e!e1 file. You then place this shortcut on
the des"top of the computer.
Opening a Project in the Windows !plorer
You can start WinCC $y opening a WinCC project in the Windows !plorer. pen the file
6'7CT8.%C in the installation path of the project.
You can only start a project from the Windows !plorer when WinCC has not yet started.
Autostart
You can also start WinCC using utostart when the computer starts up. Create a shortcut forthe 1WinCC!plorer.e!e1 file and mo#e this shortcut to the 1utostart1 folder of your
computer. ach time you start the Windows system, WinCC will also $e started
automatically.
Opening the WinCC !plorer with a Project Open
You can close the WinCC !plorer without closing the open project. You can reopen theWinCC !plorer from the Windows /tart menu or $y clic"ing a shortcut on the des"top. This
also applies e#en if you open a project using utostart only in runtime.
)emote WinCC Startup
You can start WinCC of another computer in the networ". You will find more detailedinformation in the WinCC 5nformation /ystem under 1Configurations1 8 1%ulti-;ser
/ystems1 8 1'emote Configuration1.
Opening a Project
*+ile* , *Open* %enu Command
5n the WinCC !plorer, you open a project with the 1pen1 command in the 10ile1 menu. 5nthe 1pen1 window, select the project folder and open the project file 6'7CT8.%C.
*+ile* , *Last +ile* %enu Command
5n the 10ile1 menu, you can open one of the last files opened with the 1&ast 0ile1 menu
command. ;p to eight projects are displayed.
*Open* -utton
You can open a project with the $utton in the tool$ar.
8/18/2019 SCADA Study Material
6/388
Opening a Project with Autostart
You can open a specific project using utostart when your computer starts up. To do this, you
use the 1utostart1 tool of WinCC.
#ote$
5f you open a project while another project is acti#e in runtime, runtime is deacti#ated andthe pre#iously acti#e project is closed.
Opening the WinCC !plorer
"ntroduction
When you close the WinCC !plorer, you normally close the project that was last open at thesame time.
5f runtime is acti#ated, or if you ha#e opened a WinCC editor, you can close the WinCC
!plorer separately. The project remains open and acti#e if it was already acti#e. pen
editors are not closed. You can open the WinCC !plorer again from the Windows /tart
menu or from a shortcut on the des"top.
You can close the WinCC !plorer regardless of whether a project is open. The rele#ant
WinCC processes continue to run in the $ac"ground. When you open the WinCC !plorer
again, WinCC does not need to reload the project data and the !plorer ta"es less time toopen.
Principle
You can e!it WinCC in the following ways:
•
With the 1!it1 menu command in the WinCC !plorer menu $ar • With the 1/hut )own1 menu command in the WinCC !plorer menu $ar
• With the 1Close1 $utton
• When you shut down Windows
• With a C action in the acti#ated project
8/18/2019 SCADA Study Material
7/388
#ote$
fter starting, WinCC always opens the last project that was open $efore you e!ited. 5f the
project was acti#ated when you e!ited WinCC, it will $e opened in runtime again.
Closing the WinCC !plorer
*+ile* %enu *!it* Command
You close the WinCC !plorer with the 1!it1 menu command in the 10ile1 menu. The 1!it
WinCC !plorer1 dialog $o! opens.
5n the list $o!, you can select one of the following options:
ption WinCC ction
Close project and e!it WinCC!plorer
5f acti#e, the project is also deacti#ated and closed. TheWinCC !plorer and all open WinCC editors are closed.
!it WinCC !plorer nly the WinCC !plorer closes. The project remains open
and acti#e if it was already acti#e. WinCC editors remain
open.
*+ile* %enu *Shut (own* Command
5n the 10ile1 menu of the menu $ar, there is a command called 1/hut )own1. )epending on
your computer configuration, you can e!it WinCC with 1/hut )own1 and at the same time
shut down the computer.
*Close* -utton
You can close the WinCC !plorer with the $utton in the top right corner of the window .
!iting Windows
When you e!it Windows or log off the current user, WinCC closes completely.
C Action in the Acti'ated Project
You can, for e!ample, configure a $utton in the project with which you can e!it Windows. To
do this, you use the 1!it WinCC1 or 1!it WinCC or Windows1 dynamic wi
8/18/2019 SCADA Study Material
8/388
The user interface of the WinCC !plorer consists of the following elements:
• Title $ar
• %enu $ar
• Tool$ar
• /tatus $ar
• =a#igation window and data window
%enu -ar o& the WinCC !plorer
"ntroduction
The menu $ar of the WinCC !plorer includes most of the commands that you can use in the
Windows !plorer. Commands that you cannot use in the current situation are disa$led>displayed in gray?.
/ome commands are a#aila$le only when you open the pop-up menu of an element in a
window.
/ome commands can $e acti#ated using the "ey com$inations >shortcut "eys? familiar fromWindows.
8/18/2019 SCADA Study Material
9/388
The following ta$les pro#ide $rief information on the commands in the menu $ar. The
1nline Help >Chapter?1 column indicates the rele#ant chapters in the WinCC 5nformation
/ystem that contain more detailed information.
*+ile* %enu
The 10ile1 menu includes the following commands:
Command 9ey
Com$ination
0unction nline Help >Chapter?
=ew 6CT'&@=8 Creates a new project. Wor"ing with rojects 8
Creating and diting
rojects
pen 6CT'&@8 pens an e!isting project. Wor"ing with rojects 8Creating and diting
rojects
Close --- Closes an open project. Wor"ing with rojects 8
Creating and diting
rojects
cti#ate --- /tarts an open project in runtime. Wor"ing with rojects 8
cti#ating a roject
rint roject)ocumentation
--- rints the project documentation. )ocumentation ofConfiguration and
'untime )ata 8 roject
)ocumentation
2iew roject)ocumentation --- /tarts the print pre#iew of the project documentation. )ocumentation ofConfiguration and
'untime )ata 8 roject
)ocumentation
roject
)ocumentation
/etup
--- /ets up the project documentation
for printing.
)ocumentation of
Configuration and
'untime )ata 8 roject
8/18/2019 SCADA Study Material
10/388
)ocumentation
'ecent 0ile --- )isplays the most recently opened
projects up to a ma!imum of eight.
You can select one of the projectsand open it.
Wor"ing with rojects 8
Creating and diting
rojects
!it 6&T@0A8 pens a dialog in which you canclose the WinCC !plorer.
Wor"ing with rojects 8Closing the WinCC
!plorer
/hut )own --- !its WinCC and shuts down the
computer.
Wor"ing with rojects 8
Closing the WinCC
!plorer
*dit* %enu
The 1dit1 menu includes the following commands:
Command 9ey
Com$ination
0unction nline Help >Chapter?
;ndo 6CT'&@8 ;ndoes the last action. Thiscommand is not a#aila$le for all
actions.
---
Cut 6CT'&@8 Cuts the selected o$ject. With
1aste1, the o$ject can $e mo#ed toanother location.
---
Copy 6CT'&@C8 Copies the selected o$ject to the
clip$oard.
---
aste 6CT'&@28 astes a copied or cut o$ject. ---
)elete 6)&8 )eletes a selected element. ---
Characteristics --- )isplays the 1roperties1 dialog of a
selected element.
'efer to the description of
the rele#ant editor.
8/18/2019 SCADA Study Material
11/388
*/iew* %enu
The 12iew1 menu includes the following commands:
Command 9ey
Com$ination
0unction nline Help >Chapter?
Tool$ars --- )isplays or hides the tool$ar. Wor"ing with rojects 8 TheWinCC !plorer
/tatus Bar --- )isplays or hides the status $ar. Wor"ing with rojects 8 The
WinCC !plorer
&arge/ym$ols
--- )isplays the elements in the datawindow as large sym$ols.
---
/mall
/ym$ols
--- )isplays the elements in the data
window as small sym$ols.
---
&ist --- )isplays the elements in the data
window as a list of names.
---
)etails --- )isplays the elements in the data
window as a list of names with
additional information, for e!ample
date of change and file type.
'efer to the description of
the rele#ant editor.
'efresh 60D8 'efreshes the #iew in the data
window.
---
*Tools* %enu
The 1Tools1 menu includes the following commands:
Command 9eyCom$ination
0unction nline Help >Chapter?
&anguage --- Changes the user interface language
of the WinCC !plorer and the
editors.
/tructure of %ulti-language
rojects 8 &anguage
/upport in WinCC
/tatus of
)ri#er
--- )isplays the status of logical
connections in the project.
Communication
)iagnostics 8 Channel
8/18/2019 SCADA Study Material
12/388
Connections )iagnostics
/tatus of
/er#er
Connections
--- )isplays the current status of all
in#ol#ed ser#ers and clients of a
multi-user system at the WinCCclient and the WinCC ser#er of a
ser#er-ser#er communication,
respecti#ely.
(reen E Connection status:
sta$lished, data e!change ta"ing place.
(ray E Connection status:
sta$lished, no data e!change.
'ed E Connection status:)isconnected.
Wor"ing with rojects 8
The WinCC !plorer
/tatus of
ClientConnections
--- )isplays the current status of all
ser#ers and clients in#ol#ed in aWinCC ser#er.(reen E Connection status:
sta$lished, data e!change ta"ing
place.(ray E Connection status:
sta$lished, no data e!change.
'ed E Connection status:
)isconnected.
Wor"ing with rojects 8
The WinCC !plorer
*0elp* %enu
The 1Help1 menu includes the following commands:
Command 9eyCom$ination
0unction nline Help >Chapter?
Contents
and 5nde!
60F8 pens the WinCC information
system.
---
8/18/2019 SCADA Study Material
13/388
)irectHelp
6/H50T@0F8 cti#ates )irect Help. ---
;se Help --- Tips on wor"ing with help. ---
$out
WinCC
!plorer
--- )isplays the installed #ersion and the
installed components of WinCC.
---
Tool1ar o& the WinCC !plorer
"ntroduction
;sing the $uttons in the tool$ar, you can acti#ate commands. You can also hide the tool$ar in
the WinCC !plorer $y pointing to the 12iew1 menu in the menu $ar and selecting the
1Tool$ar1 command.
-uttons in the Tool1ar
The tool$ar in the WinCC !plorer contains $uttons with the following functions:
5con Tooltip %eaning
=ew Creates a new project.
pen pens a project.
)eacti#ate !its runtime.
cti#ate /tarts the project in runtime.
Cut Cuts a selected o$ject. The o$ject is deleted at its original location assoon as it is pasted elsewhere.
Copy Copies an o$ject to the clip$oard. The o$ject can $e duplicated at the
same location or a compara$le location in the path.
aste astes a cut or copied o$ject.
8/18/2019 SCADA Study Material
14/388
&arge /ym$ols lements in the data window are displayed as large sym$ols.
/mall /ym$ols lements in the data window are displayed as small sym$ols.
&ist lements in the data window are displayed as a list of names only.
)etails lements in the data window are displayed as a list with detailedinformation.
Characteristics pens the 1roperties1 dialog of an element.
Help cti#ates the direct help for an element you then left clic".
0or further information on the commands, refer to the section 1%enu Bar1.
Status and Title -ar o& WinCC !plorer
"ntroduction
The status $ar and title $ar contain general information on the project and settings in theeditor.
Title -ar
The current path of the open WinCC project is displayed.
Status -ar
/tatus )isplays tips on editing and displays the current path of afile.
=um$er of configured tags G
=um$er of power tags
=um$er of configured e!ternal tags G num$er of tags
co#ered $y a license.
$ject>s? =um$er of o$jects of the selected editor, e.g. the num$er of
pictures in (raphics )esigner
C/ /hift function is acti#e >upper case?.
=;% The numeric pad on the right of the "ey$oard is acti#e.
/C'& The Windows 1/croll1 function is acti#e.
8/18/2019 SCADA Study Material
15/388
Types o& Project
"ntroduction
There are three types of project a#aila$le in WinCC:
• /ingle-user project
• %ulti-user project
• Client project
Single2User Project"ntroduction
5f you only want to wor" with one computer in a WinCC project, create a single-user project.
The WinCC project runs on one computer that functions as the ser#er for processing the data
and as an operator input station. ther computers cannot access the project.
Principle
The computer on which you create the single-user project is configured as a ser#er.
The computer is connected to the programma$le controller #ia the process communication.
)edundancy
You can also create a single-user project as a redundant system. 5n this case, you configure a
single-user project with a second redundant ser#er.
Archi'e Ser'er
You can also create an archi#e ser#er for a single-user project. 5n this case, you configure asingle-user project and a second ser#er on which the data of the single-user project is
archi#ed.
%ulti2User Project
"ntroduction
8/18/2019 SCADA Study Material
16/388
5f you only want to wor" with se#eral computers in a WinCC project, create a multi-user
project.
0or a multi-user system, there are two $asic options:
• %ulti-user system with one or more ser#ers:
/e#eral ser#ers with one or more clients. ne client accesses se#eral ser#ers. The
runtime data is distri$uted on different ser#ers. The configuration data is on the
ser#ers and on the clients.
• %ulti-user system with only one ser#er:
ne ser#er with one or more clients. ll the data is on the ser#er.
Principle
You create a multi-user project on the ser#er. The ser#er is connected to the programma$le
controller #ia the process communication.
5n the multi-user project, you configure the clients that access the ser#er. 5n a second step,
you create the reuired client projects on the rele#ant computers.
5f you want to wor" with se#eral ser#ers, duplicate the multi-user project on the second
ser#er. dapt the duplicated project accordingly. You can also create a second multi-user
project on the second ser#er that is independent of the project on the first ser#er.
ser#er can also access another ser#er in the role of client. You can use this option, fore!ample, when you use an archi#e ser#er or a file ser#er.
Client Project
"ntroduction
5f you create a multi-user project, you must then create the clients that access the ser#er. Youcreate a client program on the computer that will $e used as a client.
0or a WinCC client, there are two $asic options:
• %ulti-user system with one or more ser#ers:
The client accesses se#eral ser#ers. The runtime data is distri$uted on different
ser#ers. The configuration data on the multi-user projects is on the rele#ant ser#ers.There may $e local configuration data in the client projects on the clients: ictures,
scripts, and tags.
• %ulti-user system with only one ser#er:
The client accesses a single ser#er. ll the data is located on the ser#er and isreferenced on the clients.
n archi#e ser#er or a file ser#er can also access another ser#er in the role of client.
8/18/2019 SCADA Study Material
17/388
#ote$
The WinCC client replaces the clients and multi-clients that were used in WinCC up to
#ersion 2D.F. )epending on the configuration, a WinCC client ta"es o#er the role of a 2D.F
client or a 2D.F multi-client.
Principle
You create a multi-user project on the ser#er. The ser#er is connected to the programma$le
controller #ia the process communication. 5n the multi-user project, you create the clients that
access the ser#er.
5f you configure a multi-user system with only one ser#er, you do not create a separate client
project on the WinCC client.
5f you configure a multi-user system with se#eral ser#ers, you must create a separate client
project on each client. This also applies when you only want to access one ser#er $ut reuireadditional configuration data on the client.
%ulti2User System with One or %ore Ser'ers
To access more than one ser#er, you create a client project on the client. You specify the
project properties on the WinCC client.
n the ser#er, you create pac"ages using the /er#erdata component. The pac"ages contain allthe important configuration data of the multi-user project. You load the pac"ages on the
WinCC client.
You only need to create and compile the pac"ages once manually. 5f the configuration data on
a ser#er is modified, WinCC automatically generates the reuired pac"ages. The pac"agescan $e downloaded to the clients automatically or manually.
Central Ser'er Con&iguration &or a %ulti2User System with One Ser'er
5f you want to configure a client that accesses only one ser#er, specify all the settings in the
multi-user system on the ser#er. When you edit the startup list of the client, you should onlystart applications that are actually reuired on the client.
You do not create a separate project on the client. You start the ser#er project using remoteaccess. You will find more detailed information in the WinCC 5nformation /ystem under
1Configurations1 8 1%ulti-;ser /ystems1.
We1 Client
8/18/2019 SCADA Study Material
18/388
You can configure a client that accesses the ser#er o#er the intranet or o#er the 5nternet. 5f
you reuire this type of access, you create a We$ client with the WinCC We$ =a#igator
option.
0ow to Create a Project
"ntroduction
5f you want to create a new project, you must first ma"e se#eral $asic settings in WinCC.
Based on these settings, WinCC creates a project that you can edit immediately.
Principle
0ollow the steps outlined $elow when creating a project:
• )efine project type
• /pecify the project name and project folder
• 5f reuired, enter the name of the configuration engineer, the project #ersion, and a
comment
• /pecify the computer properties
• /pecify the settings for runtime
You can specify the computer properties and the settings for runtime immediately aftercreating the project or during configuration. 0or more detailed information, referred to the
sections 1/pecifying Computer roperties1 and 1/ettings for 'untime1
Procedure
rocedure
FClic" on the $utton in the WinCC !plorer tool$ar.The 1WinCC !plorer1 dialog $o! opens.
8/18/2019 SCADA Study Material
19/388
I/elect the reuired type of project and confirm with 191.The 1Create a =ew roject1 window opens.
A
5n the 1)ri#e1 list $o! under 1roject ath1, select the dri#e on which you want to create the
project folder.
D 5n the 10older1 list $o! under 1roject ath1, select the path in which you want to create the
project folder.
3 Confirm with 1Create1.
WinCC creates a project with the reuired name and opens the project in the WinCC
!plorer.
http://changeimageicon%281%2C%27../grafik/03_200_new_project.JPG')
8/18/2019 SCADA Study Material
20/388
J Clic" on the project name in the na#igation window of the WinCC !plorer and select the
1roperties1 command in the op-up menu.
The 1roject roperties1 dialog opens.
K 5n the (eneral ta$, you go to the name of the configuration engineer, a project #ersion, and
a comment. Change the project type with the 1Type1 list $o!.
L Clic" on the 191 $utton to close the dialog.
Alternati'e Procedure
You can create a new project in the following ways:
• When you first start WinCC
• 5n the menu $ar of the WinCC !plorer in the 10ile1 menu with the 1=ew1 command
• With the shortcut "ey 6CT'&@=8
http://changeimageicon%283%2C%27../grafik/03_200_proj_properties_01.gif')
8/18/2019 SCADA Study Material
21/388
0ow to Speci&y the Computer Properties
"ntroduction
When you create a project, you must adapt the properties of the computer on which the project will $e acti#ated.
5n a multi-user system, you must adapt the properties indi#idually for each computer youcreate.
Procedure
rocedure
F Clic" on the 1Computer1 component in the na#igation window of the WinCC
!plorer.
WinCC displays the list of computers in the data window.
I
/elect the reuired computer and select the 1roperties1 command in the conte!t-
sensiti#e menu.
The 1Computer roperties1 dialog opens.
8/18/2019 SCADA Study Material
22/388
M Chec" whether the correct computer is entered in the 1Computer =ame1 input $o!.You will find the computer name in the Windows Control anel under 1/ystem1 on
the =etwor" 5dentification >Windows I444? or Computer =ame >Windows ? ta$.
A
5f you create a multi-user project, the 1Computer Type1 indicates whether the
computer is configured as a ser#er or as a client.
5f you ha#e already created other computers in the project, these will $e displayed in
the 1=ames of Clients1 or 1=ames of /er#er1 $o!. The la$eling of the $o! depends on
whether you are displaying the computer properties of a ser#er or of a client.
D Clic" on the 191 $utton to close the dialog.
Changing the Computer #ame
You can change the computer name in a project. Before WinCC accepts the modifiedcomputer name, you must close and reopen the project.
#ote$
5f the field 1Computer =ame1 does not contain the proper computer name, (raphics )esigner will open a picture in the nglish configuration language, regardless of the language settings.
You may reset the desired language in (raphics )esigner.
8/18/2019 SCADA Study Material
23/388
Acti'ating a Project
"ntroduction
5f you wish to operate and o$ser#e a process , you must acti#ate the respecti#e project.
WinCC starts runtime and acti#ates communication with the programma$le controller. ll process data is stored in the runtime data$ases.
This section e!plains
• the settings you can ma"e in runtime
• how to acti#ate a project
• how to deacti#ate a project
• how to acti#ate a project automatically when you $oot your computer
#ote$
When you start WinCC or open a project, holding down the "eys 6CT'& @ /H50T8 pre#entsWinCC from acti#ating runtime at the same time.
When starting WinCC, if you hold down the "eys 6&T @ /H50T8, you pre#ent WinCC
opening a project at the same time. This also pre#ents runtime $eing started at the same time.
Settings you can make in runtime
"ntroduction
When you acti#ate a project, additional program modules reuired for e!ecution in runtime
are loaded. 5n the startup list, you specify which applications will $e started when youacti#ate a project.
)epending on the configuration, WinCC itself enters some applications in the startup list.
(raphics 'untime is always started and is acti#ated as default.
To achie#e $etter performance, you should only start applications that you actually reuire in
runtime.
Procedure
rocedure
8/18/2019 SCADA Study Material
24/388
F Clic" on the 1Computer1 component in the na#igation window of the WinCC !plorer.WinCC displays the list of computers in the data window.
I
/elect the reuired computer and select the 1roperties1 command in the conte!t-sensiti#e menu.
The 1Computer roperties1 dialog opens.
M Clic" on the /tartup ta$.
A cti#ate the applications to loaded when runtime starts in the 1/tart seuence of WinCC
runtime1 list $o!.
The acti#ated modules are indicated $y a chec" mar" in front of the entry in the list. Withthe 1dit1 $utton, you can open a dialog in which you can enter start parameters for an
application.
D
5f you want to open additional programs or tas"s when you start runtime, clic" on the1dd1 $utton.
The 1dd pplication1 dialog opens.
8/18/2019 SCADA Study Material
25/388
3 nter the reuired application and the full path in the 1pplication1 input $o!. You can
locate the file using the 1Browse1 $utton.
J
5f reuired, select the start parameters, the wor"ing folder for the application, and the
window properties.
Confirm with 191.
The added application is entered in the 1dditional Tas"sGpplications1 $o!. With the
1'emo#e1 $utton, you can delete an application from the startup list.
K /elect an application and clic" on the 1;p1 and 1)own1 $uttons. This is how you specifythe order in which the applications are started. The list of additional applications is read
out from top to $ottom.
L Clic" on the 191 $utton to close the dialog.
0ow to Start )untime
"ntroduction
8/18/2019 SCADA Study Material
26/388
When you start runtime, you acti#ate your project. ll configured processes are started and
run if the status of the system permits. You can also acti#ate your project on a test system.
You may recei#e error messages, howe#er, it processes cannot run as intended on the testsystem.
Principle
You can start 'untime in se#eral ways:
• 0rom the tool$ar of the WinCC !plorer • 0rom the menu $ar of the WinCC !plorer
• When you start WinCC
• 0rom utostart when you start the Windows system
)uring configuration you can call indi#idual pictures in runtime:
• 0rom the tool$ar of the (raphics )esigner
• 0rom the menu $ar of the (raphics )esigner
)e3uirements
• The computer must ha#e the reuired 'untime license installed.
• The correct computer name must $e entered in the project.
• picture must $e specified as the start picture.
#ote$
n project acti#ating, free memory space of at least F44 %Byte must $e a#aila$le.
Procedure
rocedure
F pen the reuired project in the WinCC !plorer.
IClic" on the $utton in the tool$ar.
The 1cti#ate )TB/=%1 dialog opens. WinCC displays the applications that will
$e started. The 1WinCC 'untime1 window opens with the settings you selected in the1Computer roperties1 dialog.
8/18/2019 SCADA Study Material
27/388
#ote$
)uring start of WinCC or during opening of a project, holding down the "ey com$ination
6/hift@Ctrl8 pre#ents that WinCC acti#ates the project immediately.
When starting WinCC, if you hold down the "eys 6/H50T @ &T8, you pre#ent WinCCopening a project immediately. This also pre#ents runtime $eing started at the same time.
Alternati'e Procedures
%enu -ar o& the WinCC !plorer
pen the 10ile1 menu in the menu $ar and select the 1cti#ate1 command. s long asruntime is acti#ated, WinCC displays a chec" mar" $eside the 1cti#ate1 command.
When you start WinCC
You can e!it WinCC while a project is acti#ated. When you restart WinCC again, WinCC
opens the project and starts runtime immediately.
Autostart when 4ou Start the Windows System
You can also start WinCC using utostart when the computer starts up. You can also specify
that WinCC starts immediately in runtime.
5raphics (esigner
You can call a picture opened in the (raphics )esigner in runtime. 5f runtime is already open,
the picture replaces the current screen.
You can use this function in the following situations:
• You want to test a picture in runtime.
• You want to update a picture in an acti#ated project without any delay.
5n the tool$ar, you can start runtime using the $utton.
5n the menu $ar, you can start runtime in the 10ile1 menu with the 1cti#ate 'untime1
command.
#ote$
You cannot e!it 'untime from (raphics )esigner. !it runtime in WinCC !plorer.
8/18/2019 SCADA Study Material
28/388
0ow to !it )untime
"ntroduction
When you e!it runtime, you deacti#ate your project. ll acti#e processes are stopped.
Principle
You can e!it runtime in se#eral ways:
• 0rom the tool$ar of the WinCC !plorer
• 0rom the menu $ar of the WinCC !plorer
• When you close a project
• When you close the WinCC !plorer
• With a C action in the acti#ated project
Procedure
rocedure
F Change to the WinCC !plorer.
IClic" on the $utton in the tool$ar.
The 1)eacti#ate )TB/=%1 dialog opens. WinCC displays the applications thatwill $e e!ited. The 1WinCC 'untime1 window closes.
Alternati'e Procedure
%enu -ar o& the WinCC !plorer
pen the 10ile1 menu in the menu $ar and select the 1cti#ate1 command. WinCC remo#es
the chec" mar" $eside the command indicating that runtime is acti#ated.
Closing the Project
You can close the project running in runtime. This deacti#ates the project.
Closing the WinCC !plorer
You can close WinCC while a project is acti#ated. This deacti#ates the project.
8/18/2019 SCADA Study Material
29/388
#ote$
fter starting, WinCC always opens the last project that was open $efore you e!ited. 5f the
project was acti#ated when you e!ited WinCC, it will $e opened in runtime again.
C Action in the Acti'ated Project
You can, for e!ample, configure a $utton in the project with which you can e!it Windows. Todo this, you use the 1!it WinCC 'untime1 and 1!it WinCC1 dynamic wi
8/18/2019 SCADA Study Material
30/388
You can only copy the entire project and the entire folder structure. You cannot e!clude any
data or folders from the copy operation.
fter, the project has $een duplicated, you can open and edit or acti#ate it immediately. 5f
you copy the project to another computer, you must, howe#er, adapt the computer name inthe project.
#ote$
5f the 1)uplicate1 or 1/a#e s ...1 options of the roject )uplicator are used, the sameWinCC #ersion must $e installed on the destination computer.
Copying to a Storage %edium
You cannot copy a project directly to a data medium. 5f you want to copy a project forarchi#ing on an e!ternal data medium such as a C)-'%, copy the project to a local folder.
You then copy this folder to the data medium.
5f you compress the project data $efore copying, for e!ample in a 5 archi#e, you reuireless space on the data medium. This also pre#ents each indi#idual file $ecoming read-only
after copying to a C)-'%.
)e3uirements
• 5f only configuration data are copied, the project may $e opened and remain
acti#ated. nother project may remain open on the source computer and may run in'untime.
• You ha#e created the target folder.
• You ha#e access rights for the target folder.
• =o WinCC project must $e open on the target computer since write-protected orsystem-accessed data cannot $e o#erwritten $y the roject )uplicator.
• The target computer has enough free space on the hard dis".
Procedure
rocedure
F
5n the Windows /tart menu, select 1/imatic1 then 8 1WinCC1 8 then 1Tools1 and finally the
1roject )uplicator1 command. The WinCC roject )uplicator opens.
8/18/2019 SCADA Study Material
31/388
I
nter the project you want to duplicate in the 1/elect the source project that is to $e
duplicated1 $o!. You can enter the folder path and the project file 6'7CT8.%C
directly or $rowse for them with the $utton.
M
Clic" on the 1/a#e s...1 $utton. The 1/a#e as a WinCC roject1 dialog opens.
A /elect the folder to which you want to copy your project and enter the name of the projectin the 10ile name1 $o!.
5f you want to copy the project and gi#e it a new name, enter the new name here. The
project files are renamed accordingly when the project is copied.
D Clic" on the 1/a#e1 $utton.
The 1Copying...1 dialog opens. When copying, the roject )uplicator displays the files andfolders with a progress $ar. With the 1Cancel1 $utton, you can stop the copying.
3 Close the roject )uplicator with the 1Close1 $utton.
J 5f you ha#e copied the project to another computer, the original computer name is stillentered in the project properties. Correct the computer name in the project properties when
you open the project the first time. The modified computer name is adopted after you close
8/18/2019 SCADA Study Material
32/388
and open the project again.
#ote$
5f you duplicate an open WinCC project on the source computer, no progress $ar will $e
displayed.
Alternati'e Procedure
You can also copy a project in the /imatic %anager using the 1&oad Target /ystem1 function.
0or more detailed information, refer to the WinCC 5nformation /ystem under 1Wor"ing with
WinCC1 8 15ntegration of WinCC in the /5%T5C %anager1
CHAPTER-II
Creating (ata -ase o& Tags
Tag %anagement
"ntroduction
Tag %anagement administers the tags and communication dri#ers used in the project. You
will find Tag %anagement in the na#igation window of WinCC !plorer.
Usage
Tags with #alues supplied $y the process are referred to as process or e!ternal tags in WinCC.
5n the case of process tags, Tag %anagement determines the communication dri#er $y meansof which WinCC is connected to the automation system and how the e!change of data is
ta"ing place. The associated tags are created in the directory structure of this communication
dri#er.
Tags not supplied with #alues $y the process, "nown as the 1internal tags1, are created in the15nternal Tags1 directory.
8/18/2019 SCADA Study Material
33/388
To pro#ide a $etter o#er#iew, you can arrange the tags in Tag %anagement in groups.
Creating tags in Tag %anagement leads to a directory structure in which you can na#igate in
a manner similar to Windows directories.
Con&iguration o& Tag %anagement
#a'igation window
You will find Tag %anagement in the na#igation window of WinCC !plorer.
5nternal tags and associated tag groups will $e found in the 15nternal Tags1 directory.
WinCC creates a new directory in Tag %anagement for each communication dri#er that is set
up. ;nder the communication dri#er you will find a channel unit, its connections andassociated tag groups and process tags.
Tag %anagement uses the following icons:
5con %eaning
Tag %anagement
5nternal Tags
Communication dri#ers
Channel ;nit
8/18/2019 SCADA Study Material
34/388
Connection
Tag (roup
Tag
/tructure type
(ata window
The data window of WinCC !plorer shows you the contents of the directory you selected inthe na#igation window.
Tooltip
5n 'untime you can #iew the status information on connections and tags as a tooltip. To #iew
it, mo#e the mouse pointer in the data window to the connection or tag you want.
The tooltip contains the following information:
• with a connection, $rief information a$out the state
• The current process #alue of a tag
• The uality code of a tag
• The date on which a tag was last changed
%enu 1ar
t 1dit1 you can cut, copy, paste and delete tags and tag groups. t 1dit1 8 1roperties1
you can #iew the properties of the selected tag, the communication dri#er, the channel unit or
connection.
t 12iew1 you can modify the way in which o$jects are presented in the data window andupdate the display.
Tool1ar
0or tags and tag groups you can use the 1Cut1, 1Copy1, 1aste1 and 1roperties1 $uttons.
8/18/2019 SCADA Study Material
35/388
You can modify the display in the data window $y means of the 1&arge 5cons1, 1/mall
5cons1, 1&ist1 and 1)etails1 $uttons.
Status 1ar
The status $ar can display the following information, regardless of the operated o$ject:
• Current directory path in the project and tips on operation
• !ternal tags: =um$er of configured process tags
• &icense: =um$er of licensed process tags >power tags?
+ind
5n Tag %anagement you can open the search function from the shortcut menu.
You can search for tags, tag groups, connections, channel units and communication dri#ers.
Tag %anagement and tags
"ntroduction
Communication $etween WinCC and the automation system ta"es place $y means of
communication dri#ers. )ata generated $y the automation system or the WinCC project are
transferred $y means of tags.
This chapter pro#ides infomation on managing tags and on the different types of tags.
Tags
"ntroduction
)ata are passed on in a WinCC project $y means of tags. tag has a data address and a
sym$olic name, which is used in the project. The data address is used in communication withthe automation system.
WinCC wor"s with two "inds of tags:
8/18/2019 SCADA Study Material
36/388
• rocess tags
• 5nternal Tags
WinCC simplifies tag handling $y means of two other o$ject types:
• Tag groups
• /tructure types
=ame con#entions
When naming tags, you must respect certain con#entions:
• Tag names must $e uniue throughout the project. When tags are created, WinCC
does not distinguish $etween upper and lower case characters in a name.
• Tag names must not $e longer than FIK characters. 5n the case of structure tags, this
limit applies to the whole e!pression 1structure tag name @ dot @ structure tag
element name1.
• You must not use certain characters in tag names. You will find the characters youmust not include in a name in the WinCC 5nformation /ystem at 1Wor"ing with
projects1 8 1uthori
8/18/2019 SCADA Study Material
37/388
You can also create tags e!ternal to WinCC and import them into your project.
0or e!ample, you can esta$lish a connection to the WinCC configuration tool for your project
and create the tags with the help of the configuration tool in an !cel ta$le. You assign
certain properties to these tags in the ta$le. WinCC can use the configuration tool to read inthe data and then automatically creates the tags with the specified properties.
Process Tags
(e&inition
You use process tags for communication $etween WinCC and the automation system.
The properties of process tags depend on the communication dri#er $eing used. Therefore,
create process tags in Tag %anagement also under a specific communication dri#er, its
channel unit and its connections.
You can set the following properties for process tags:
• =ame
• )ata type
• ddress on the channel unit
• dapt format
• &imit #alues
•
/tart #alue
• 'eplacement #alue
• /caling
#ote$
rocess tags are also referred to 1e!ternal tags1 on the system.
Usa1le data types
You can use the following data types for process tags:
8/18/2019 SCADA Study Material
38/388
• Binary tag
• /igned K-$it #alue
• ;nsigned K-$it #alue
• /igned F3-$it #alue
• ;nsigned F3-$it #alue
• /igned MI-$it #alue
• ;nsigned MI-$it #alue
• 0loating-point num$er MI-$it 5 JDA
• 0loating-point num$er 3A-$it 5 JDA
• Te!t tag K-$it
• Te!t tag F3-$it character set
• 'aw data tag
Licensing o& Power Tags
0or WinCC, you purchase licenses to $e a$le to use a certain num$er of process tags and
archi#e tags.
ower tags are licensed process tags. With a license co#ering F4IA power tags, for e!ample,
you are a$le to operate a WinCC project in 'untime on a computer which uses up to F4IA process tags. The num$er of licensed and configured process tags will $e seen in the status
$ar of WinCC !plorer.
&icenses are di#ided into the following types
• 1'C1: for configuration and 'untime of a certain num$er of process tags
• 1'T1: only for 'untime of a certain num$er of process tags
#ote$
The process tags reuired for the 1/ystem 5nfo1 channel need no licenses. Thus, the tags are
not entered in the license count.
8/18/2019 SCADA Study Material
39/388
"nternal Tags
(e&inition
5nternal tags are not connected to the process.
You use 5nternal tags to manage data within a project or to transfer data to an archi#e.
You can set the following properties for internal tags:
• =ame
• )ata type
• ;pdates project-wideGon local computers >only rele#ant with multi-user projects
without additional client projects?
• &imit #alues
• /tart #alue
Usa1le data types
You can use the following data types for internal tags:
• Te!t reference
• Binary tag
• /igned K-$it #alue
• ;nsigned K-$it #alue
• /igned F3-$it #alue
• ;nsigned F3-$it #alue
• /igned MI-$it #alue
• ;nsigned MI-$it #alue
• 0loating-point num$er MI-$it 5 JDA
• 0loating-point num$er 3A-$it 5 JDA
• Te!t tag K-$it
8/18/2019 SCADA Study Material
40/388
• Te!t tag F3-$it character set
• 'aw data tag
System tags
WinCC applications create tags reuired for internal administration of the project. The names
of these tags $egin with an 1O1 character. You cannot delete or rename these tags. You can
e#aluate, $ut not change, the #alue of the tag.
!ceptions to this rule are tags created with the 1'edundancy1 option. They can $e set $y
means of scripts, for e!ample:
• O'%P%/T'
• O'%P%/T'P=%
#ote$
You must not create tags whose name starts with an NON. Tags with an O prefi! are created
only $y WinCC and C/ J.
Structure types and structure tags
(e&inition
WinCC /tructure types simplify the creation of se#eral tags ha#ing identical properties.
)esignation )efinition )isplayed in...
/tructure
type
structure type denotes a scheme that is used in
WinCC to create a certain group of tags. structure
type contains at least one structure element.
Component 1/tructure
Types1
/tructure
element
structure element is a component of a structure
type. 5t is used as a template when creating a structure
tag with the help of a structure type.
Component 1/tructure
Types1 8 /tructure Type 8
1/tructure roperties1
dialog $o!
/tructure tag
structure tag is a tag that was created with the help
of a structure type. The template of a structure tag is a
structure element.
The name of a structure tag consists of the name of the
structure instance and the name of the structure
Component 1Tag
%anagement1 8 15nternal
Tags1 or a connection,under which the structure
tags were created with the
8/18/2019 SCADA Study Material
41/388
element $eing used. Both parts of the name areseparated $y a dot.
help of structure type.
/tructure
instance
5f the tags defined in a structure type are created withthe help of the structure type, a structure instance
occurs. The structure instances created with the same
structure type are displayed under this structure type
in the data window.
The name of a structure instance is also referred to as
the tag prefi!.
Component 1/tructure
Types1 8 /tructure Type
Principle
You define a certain tag structure when you create a structure type.
You create a structure type in WinCC !plorer. You create a structure element for each tag.You assign the properites to a structure element which the tag created $y that should possess.
When creating a tag, assign a created structure type as data type. The structure types aredisplayed in the 1)ata Type1 selection window according to standard data types. WinCC
creates a structure instance under the associated structure type and the structure tags in Tag%anagement. The created structure tags are defined $y the structure elements of this type.
5n the same structue type, you can define structure elements for internal tags and process
tags. When a structure instance is created under the connection of a communication dri#er,
the process tags defined in the structure type are created under the connection. The internaltags, howe#er, are created in Tag %anagement at 15nternal tags1.
%odi&ying structure types
5f you ha#e created a structure instance with a structure type, you can no longer modify the
properties of this structure type. You must first delete the structure instance. 5n doing so, youalso delete all associated structure tags. fter that you can change the properties of the
structure type and the structure elemets and regenerate a structue instance.
You can modify the properties of structure instances and structure tags later. 5f you rename
the structure instance, then rename the associated tags at the same time.
Usage
5f a certain tag configuration occurs se#eral times in your system, use structure types. 5n thisinstance, for e!ample, se#eral temperature controllers can $e in#ol#ed that are always set up
according to the same principle.
Consider which tags you re3uire &or the temperature controller.
Then create a T%'T;' structure type in which each tag is represented $y a structure
element, for e!ample &%=TPF, &%=TPI, &%=TPM. ach time you create a
8/18/2019 SCADA Study Material
42/388
new structure instance with this structure type, WinCC automatically generates all structure
tags for the corresponding temperature regulator.
You use the created structure tags when, for e!ample, you configure pictures which you
would li"e to integrate $y means of picture windows.
Structure types in picture windows
You configure a picture, T%P'(&'.)&, for the temperature regulator. You do not
connect the o$jects in the picture with tags $ut with structure elements.
To do this, you ha#e to enter the name manually, since you cannot directly enter elements $y
means of a dialog $o!. lternati#ely, you can connect structure tags you ha#e created anddelete the first part of the name, which is determined $y the structure instance. You lin" e.g.
the structure tags of the structure '(&'P. 5n the tag name displayed, e.g.
'(&'P.&%=TPF, delete the '(&'P and the lin"ing point in the input field.
Configure a picture window and integrate the picture T%P'(&'.)&. pen the o$ject properties of the picture window. ccept one of the created structure instances with a dot
$ehind the name, such as 1C=T'&&'P.1, as the tag prefi!.
Configure a second picture window with the picture T%P'(&'.)& and the ne!t
structure instance, e.g. '(&'PB, as tag prefi!, e.g. 1'(&'PB.1.
5n 'untime, WinCC composes the names of the reuired structure tags from the following
elements:
• Tag prefi!es of the picture window
• =ames of the structure elements lin"ed in the pictureT%P'(&'.)&
Then the first picture window displays the state of regulator and the second picture windowthe state of regulator B.
#ame con'entions
When naming, you must respect certain con#entions:
• Tag names must $e uniue throughout the project. When tags are created, WinCC
does not distinguish $etween upper and lower case characters in a name.
• Tag names must not $e longer than FIK characters. 5n the case of structure tags, this
limit applies to the whole e!pression 1structure tag name @ dot @ structure tag
element name1.
• There are certain characters which you cannot use in the names of structure types,
structre elements and structure tags. You will find the characters you must not includein a name in the WinCC 5nformation /ystem at 1Wor"ing with projects1 8 1=on-
authori
8/18/2019 SCADA Study Material
43/388
You must not create tags whose name starts with an NON. Tags with an O prefi! are created
only $y WinCC and C/ J.
=ote:
'emem$er that WinCC distinguishes $etween upper and lower case characters in a
configuration. 5f you change upper and lower case characters in a tag name, you must adaptyour configuration accordingly.
Tag groups
(e&inition
You can sort your tags into tag groups in Tag %anagement.
You create a tag group as a directory at 15nternal tags1 or at the connection of a channel unit.
/u$groups are not possi$le.
Usage
When creating a large num$er of tags in your project, you can com$ine them in groupsaccording to su$ject.
You can create, for e!ample, a tag group for e#ery picture in your project. You create the tags
you use in one of your pictures in the appropriate group.
5n this way WinCC ma"es it easier for you to assign and retrie#e tags.
#ame con'entions
The names of tag groups must $e uniue in the whole project. You must use a namesimultaneously for tags and tag groups. When tags and tag groups are created, WinCC does
not distinguish $etween upper and lower case characters in a name.
You must not use certain characters in the names of tag groups. You will find the characters
you must not include in a name in the WinCC 5nformation /ystem at 1Wor"ing with projects18 1=on-authori
8/18/2019 SCADA Study Material
44/388
5n (raphics )esigner you can #iew the tag selection dialog $o! continuously. Call the option
12iew1 8 1Tool$ars...1 on the menu $ar. /elect the chec" $o! ne!t to the 1Tags1 entry.
5n the (lo$al /cript editor, open the tag selection dialog $o! $y choosing 1dit1 8 1Tag
Browser1.
5n the tag selection dialog $o!, you can #iew either all tags in the project or na#igate in thedirectory structure. You select a highlighted tag $y clic"ing 191.
(rag and drop
You can also connect a tag to an o$ject or o$ject attri$ute $y means of drag and drop. With
drag and drop, there are two places a$o#e which you can store the tag:
• $o#e an o$ject in the picture
• $o#e an attri$ute in the 1$ject roperties1 dialog $o!, roperties ta$
/tore the tag a$o#e an attri$ute in the 1$ject roperties1 dialog $o!, roperties ta$. This
ensures that this attri$ute is dynami
8/18/2019 SCADA Study Material
45/388
/tatus display Current status
Te!t list utput #alue
Chec" $o! /elected $o!es
ption $o! /elected $o!es
/lider o$ject rocess dri#er connection
+ilter
;sing the filter function, you can reduce the selected num$er of tags or sym$ols so as tosearch more efficiently.
When searching, you can use the placeholders 1Q1 and 1R1. You can only use alphanumeric
characters when searching for names. WinCC sa#es the last I4 search criteria you entered.
!ample
The following internal tags ha#e $een created in WinCC, for e!ample: 1#arF1S 1#arI1S 1#arM1S1sm#I1 and 1apmF1. s a search criterion, enter 1aQ1 and e!it the filter function with the
6Ta$8 "ey. WinCC then shows all the tags whose name starts with 1a1. 5n this case, the tag
NapmFN in the N&ist of all TagsN folder.
#ote$
The search operation in the tag selection dialog $o! can ta"e some time when there is a large
num$er of tags. /earching lasts a$out one minute with FD,444 tags.
5t is sensi$le to arri#e at a preselection in the tag selection dialog $o! $y means of the filter.
(ata source
This function is a#aila$le when you are wor"ing with WinCC integrated in /T J.
5n this $o! you can select the data source from which you would li"e to attach a tag.
1WinCC Tags* as data source
WinCC display all configured internal tags and process tags. You can create new tags $y
means of the 1Create a =ew Tag1 function. You can edit e!isting WinCC tags with the 1ditTag1 function.
8/18/2019 SCADA Study Material
46/388
#ote$
5n certain situations the tag selection dialog $o! sets a filter to the data type of the tag.
6S Tags6 as data source
WinCC displays all C/ J process tags. C/J process tags are all opera$le and #isi$le C0C
and /0C modules which were configured in the C/ J ngineering /ystem. 1C0C1 standsfor 1Continuous 0unction Chart1. 1/0C1 stands for 1/euential 0unction Chart1. You can
update the attri$utes of the display tag $y operating the 1;pdate / Tags1 $utton. This isnecessary only when an attri$ute is modified in the C/ J ngineering /ystem while the tagselection dialog $o! is open. ttri$utes are items such as name, type or comment relating to a
process tag.
0urther information on this is a#aila$le in the Chapter 15ntegration in the /5%T5C
%anager1 and in the 1rocess Control /ystem C/J perator /tation1 configuration manual.
*Update S Tags* 1utton
The $utton is a#aila$le to you after selecting the 1/ tags1 data source.
You can use this $utton to update the C0CG/0C connections. C0CG/0C stands for
1Continuous 0unction ChartG/euential 0unction Chart1. When you e!tend /T J
connections, you can update the corresponding engineering station with this function.
*STP7 Sym1ols* as data source
WinCC displays all the inputs, outputs, and $it memories in the /T J sym$ol list and all
the glo$al data $loc"s. The sym$ol lists and the data $loc"s are created in /5%T5C
%anager. 5n this case, data $loc"s themsel#es cannot $e mapped. nly the parameters of the
pre#ailing data $loc" displayed in the data window can $e mapped.
*Trans&er (ata* 1utton
The $utton is a#aila$le to you after selecting the 1/T J /ym$ols1 data source.
The 1Transfer )ata1 function is used $y WinCC to apply the selected sym$ols or parameters
of data $loc"s to the WinCC data$ase.
Tag types
"ntroduction
When you create a tag, you assign one of the possi$le data types to the tag.
This data type depends on the type of data for which you would li"e to use the tag.
#ote$
8/18/2019 SCADA Study Material
47/388
5f you modify the data type of an e!isting process tag, the pre#iously defined tag address is
deleted. This reason for this is that the &C address changes when the data type is modified.
Adapt &ormat
The data type of a tag in WinCC can differ from the data type used in the automation system.
You can then set that WinCC con#erts the data type of a tag for transfer to the automationsystem.
Tag types with type con#ersion Tag types without type con#ersion
/igned K-$it #alue Te!t reference
;nsigned K-$it #alue Binary tag
/igned F3-$it #alue Te!t tag K-$it character set
;nsigned F3-$it #alue Te!t tag F3-$it character set
/igned MI-$it #alue 'aw data type
;nsigned MI-$it #alue /tructure types
0loating-point num$er MI-$it 5 JDA
0loating-point num$er 3A-$it 5 JDA
Te!t re&erence
(e&inition
With tags ha#ing the 1Te!t reference1 data type, you refer to an entry in the WinCC Te!t
&i$rary. You can only configure te!t references as internal tags.
You use te!t references, for e!ample, when you want to display different $loc"s of te!talternately. You assign the corresponding te!t 5) of the entry in the Te!t &i$rary to the tag.
Creating a te!t re&erence
You create a tag with the 1Te!t reference1 data type as an internal tag.
8/18/2019 SCADA Study Material
48/388
5n the 1Tag roperties1 dialog $o!, select the 1/tart #alue1 chec" $o! on the &imitsG'eporting
ta$. nter the te!t 5) from the Te!t &i$rary as the start #alue.
#ote$
5n a multi-user system, WinCC uses for te!t output the language of the computer on which
the te!t reference was created.
Adapt &ormat
Type con#ersion does not ta"e place for the 1Te!t reference1 data type.
-inary tag
(e&inition
The 1Binary tag1 data type corresponds to a $it. $inary tag can assume the #alues T'; or
141 and 0&/ or 1F1.
The $inary tag is stored as a $yte on the system.
#ote$
/ome communication dri#ers cannot transfer single $its. The use of $inary tags can result indegraded performance with these communication dri#ers. Ta"e note of the help for the
different communication dri#ers in the WinCC 5nformation /ystem at 1Communication1.
-"T
The 1Binary tag1 data type is also referred to as 1Bit1.
Adapt &ormat
Type con#ersion does not ta"e place for the 1Binary tag1 data type.
/igned K-$it #alue
(e&inition
The 1/igned K-$it #alue1 data type is one $yte long and is signed >plus or minus?.
Char8Signed -yte
The 1/igned K-$it #alue1 data type is also referred to as 1Char1 or 1/igned $yte1.
Adapt &ormat
8/18/2019 SCADA Study Material
49/388
5f you create a new tag with the 1/igned K-$it #alue1 data type, the 1Type Con#ersion1 $o!
will display the 1CharTo/ignedByte1 $y default. The range of num$ers is -FIK to @FIJ.
The following type con#ersions are possi$le for the 1/igned K-$it #alue1 data type:
dapt format =um$er range
CharTo/ignedByte -FIK to @FIJ>no con#ersion?
CharTo;nsignedByte 4 to FIJ
CharTo;nsignedWord 4 to FIJ
CharTo;nsigned)word 4 to FIJ
CharTo/ignedWord -FIK to @FIJ
CharTo/igned)word -FIK to @FIJ
CharTo%/BByte -FIK to @FIJ
CharTo%/BWord -FIK to @FIJ
CharTo%/B)word -FIK to @FIJ
CharToBC)Byte 4 to LL
CharToBC)Word 4 to FIJ
CharToBC))word 4 to FIJ
CharTo/ignedBC)Byte -L to @L
CharTo/ignedBC)Word -FIK to @FIJ
CharTo/ignedBC))word -FIK to @FIJ
CharTo!t/ignedBC)Byte -JL to @JL
CharTo!t/ignedBC)Word -FIK to @FIJ
CharTo!t/ignedBC))word -FIK to @FIJ
8/18/2019 SCADA Study Material
50/388
CharToi"enByte 4 to LL
CharToi"enWord 4 to FIJ
CharToi"en)word 4 to FIJ
CharTo/ignedi"enByte -L to @L
CharTo/ignedi"enWord -FIK to @FIJ
CharTo/ignedi"en)word -FIK to @FIJ
CharTo!cessByte 4 to LL
CharTo!cessWord 4 to FIJ
CharTo!cess)word 4 to FIJ
CharTo/igned!cessByte -L to @L
CharTo/igned!cessWord -FIK to @FIJ
CharTo/igned!cess)word -FIK to @FIJ
Unsigned 921it 'alue
(e&inition
The 1;nsigned K-$it #alue1 data type is one $yte long and is not signed.
-yte8Unsigned 1yte
The 1;nsigned K-$it #alue1 data type is also referred to as 1$yte1 or 1;nsigned $yte1.
Adapt &ormat
5f you create a new tag with the 1;nsigned K-$it #alue1 data type, the 1Type Con#ersion1 $o!will display the 1ByteTo;nsignedByte1 $y default. The range of num$ers is 4 to IDD.
The following type con#ersions are possi$le for the 1;nsigned K-$it #alue1 data type:
dapt format =um$er range
ByteTo;nsignedByte 4 to IDD
8/18/2019 SCADA Study Material
51/388
>no con#ersion?
ByteTo;nsignedWord 4 to IDD
ByteTo;nsigned)word 4 to IDD
ByteTo/ignedByte 4 to FIJ
ByteTo/ignedWord 4 to IDD
ByteTo/igned)word 4 to IDD
ByteToBC)Byte 4 to LL
ByteToBC)Word 4 to IDD
ByteToBC))word 4 to IDD
ByteToi"enByte 4 to LL
ByteToi"enWord 4 to IDD
ByteToi"en)word 4 to IDD
ByteTo!cessByte 4 to LL
ByteTo!cessWord 4 to IDD
ByteTo!cess)word 4 to IDD
Signed :;21it 'alue
(e&inition
The 1/igned F3-$it #alue1 data type is two $ytes long and is signed >plus or minus?.
Short8Signed word
The 1/igned F3-$it #alue1 data type is also referred to as 1/hort1 or 1/igned word1.
Adapt &ormat
5f you create a new tag with the 1/igned F3-$it #alue1 data type, the 1Type Con#ersion1 $o!
will display the 1/hortTo/ignedWord1 $y default. The range of num$ers is -MIJ3K to@MIJ3J.
8/18/2019 SCADA Study Material
52/388
The following type con#ersions are possi$le for the 1/igned F3-$it #alue1 data type:
dapt format =um$er range
/hortTo/ignedWord -MIJ3K to @MIJ3J
>no con#ersion?
/hortTo;nsignedByte 4 to IDD
/hortTo;nsignedWord 4 to MIJ3J
/hortTo;nsigned)word 4 to MIJ3J
/hortTo/ignedByte -FIK to @FIJ
/hortTo/igned)word -MIJ3K to @MIJ3J
/hortTo%/BByte -FIJ to @FIJ
/hortTo%/BWord -MIJ3J to @MIJ3J
/hortTo%/B)word -MIJ3K to @MIJ3J
/hortToBC)Byte 4 to LL
/hortToBC)Word 4 to LLLL
/hortToBC))word 4 to MIJ3J
/hortTo/ignedBC)Byte -L to @L
/hortTo/ignedBC)Word -LLL to @LLL
/hortTo/ignedBC))word -MIJ3K to @MIJ3J
/hortTo!t/ignedBC)Byte -JL to @JL
/hortTo!t/ignedBC)Word -JLLL to @JLLL
/hortTo!t/ignedBC))word -MIJ3K to @MIJ3J
/hortToi"enByte 4 to LL
/hortToi"enWord 4 to LLLL
8/18/2019 SCADA Study Material
53/388
/hortToi"en)word 4 to MIJ3J
/hortTo/ignedi"enByte -L to @L
/hortTo/ignedi"enWord -LLL to @LLL
/hortTo/ignedi"en)word -MIJ3K to @MIJ3J
/hortTo!cessByte 4 to LL
/hortTo!cessWord 4 to LLLL
/hortTo!cess)word 4 to MIJ3J
/hortTo/igned!cessByte -L to @L
/hortTo/igned!cessWord -LLL to @LLL
/hortTo/igned!cess)word -MIJ3K to @MIJ3J
Unsigned :;21it 'alue
(e&inition
The 1;nsigned F3-$it #alue1 data type is two $ytes long and is not signed.
Word8Unsigned word
The 1;nsigned F3-$it #alue1 data type is also referred to as 1word1 or 1;nsigned word1.
Adapt &ormat
5f you create a new tag with the 1;nsigned F3-$it #alue1 data type, the 1Type Con#ersion1
$o! will display the 1WordTo;nsignedWord1 $y default. The range of num$ers is 4 to3DDMD.
The following type con#ersions are possi$le for the 1;nsigned F3-$it #alue1 data type:
dapt format =um$er range
WordTo;nsignedWord 4 to 3DDMD
>no con#ersion?
WordTo;nsignedByte 4 to IDD
8/18/2019 SCADA Study Material
54/388
WordTo;nsigned)word 4 to 3DDMD
WordTo/ignedByte 4 to FIJ
WordTo/ignedWord 4 to MIJ3J
WordTo/igned)word 4 to 3DDMD
WordToBC)Byte 4 to LL
WordToBC)Word 4 to LLLL
WordToBC))word 4 to 3DDMD
WordToi"enByte 4 to LL
WordToi"enWord 4 to LLLL
WordToi"en)word 4 to 3DDMD
WordTo!cessByte 4 to LL
WordTo!cessWord 4 to LLLL
WordTo!cess)word 4 to 3DDMD
WordTo/imaticCounter 4 to LLL
WordTo/imaticBC)Counter 4 to LLL
Signed
8/18/2019 SCADA Study Material
55/388
The following type con#ersions are possi$le for the 1/igned MI-$it #alue1 data type:
dapt format =um$er range
&ongTo/igned)word -IFAJAKM3AJ to @IFAJAKM3AJ
>no con#ersion?
&ongTo;nsignedByte 4 to IDD
&ongTo;nsignedWord 4 to 3DDMD
&ongTo;nsigned)word 4 to IFAJAKM3AJ
&ongTo/ignedByte -FIK to @FIJ
&ongTo/ignedWord -MIJ3K to @MIJ3J
&ongTo%/BByte -FIJ to @FIJ
&ongTo%/BWord -MIJ3J to @MIJ3J
&ongTo%/B)word -IFAJAKM3AJ to @IFAJAKM3AJ
&ongToBC)Byte 4 to LL
&ongToBC)Word 4 to LLLL
&ongToBC))word 4 to LLLLLLLL
&ongTo/ignedBC)Byte -L to @L
&ongTo/ignedBC)Word -LLL to @LLL
&ongTo/ignedBC))word -LLLLLLL to @LLLLLLL
&ongTo!t/ignedBC)Byte -JL..@JL
&ongTo!t/ignedBC)Word -JLLL to @JLLL
&ongTo!t/ignedBC))word -JLLLLLLL to @JLLLLLLL
&ongToi"enByte 4 to LL
&ongToi"enWord 4 to LLLL
8/18/2019 SCADA Study Material
56/388
&ongToi"en)word 4 to LLLLLLLL
&ongTo/ignedi"enByte -L to @L
&ongTo/ignedi"enWord -LLL to @LLL
&ongTo/ignedi"en)word -LLLLLLL to @LLLLLLL
&ongTo!cessByte 4 to LL
&ongTo!cessWord 4 to LLLL
&ongTo!cess)word 4 to LLLLLLLL
&ongTo/igned!cessByte -L to @L
&ongTo/igned!cessWord -LLL to @LLL
&ongTo/igned!cess)word -LLLLLLL to @LLLLLLL
&ongTo/imaticTimer F4 to LLL4444
&ongTo/imaticBC)Timer F4 to LLL4444
Unsigned
8/18/2019 SCADA Study Material
57/388
5f you create a new tag with the 1;nsigned MI-$it #alue1 data type, the 1Type Con#ersion1
$o! will display the 1)wordTo;nsigned)word1 $y default. The range of num$ers is 4 to
AILAL3JILD.
The following type con#ersions are possi$le for the 1;nsigned MI-$it #alue1 data type:
dapt format =um$er range
)wordTo;nsigned)word 4 to AILAL3JILD
>no con#ersion?
)wordTo;nsignedByte 4 to IDD
)wordTo;nsignedWord 4 to 3DDMD
)wordTo/ignedByte 4 to FIJ
)wordTo/ignedWord 4 to MIJ3J
)wordTo/igned)word 4 to IFAJAKM3AJ
)wordToBC)Byte 4 to LL
)wordToBC)Word 4 to LLLL
)wordToBC))word 4 to LLLLLLLL
)wordToi"enByte 4 to LL
)wordToi"enWord 4 to LLLL
)wordToi"en)word 4 to LLLLLLLL
)wordTo!cessByte 4 to LL
)wordTo!cessWord 4 to LLLL
)wordTo!cess)word 4 to LLLLLLLL
)wordTo/imaticTimer F4 to LLL4444
)wordTo/imaticBC)Timer F4 to LLL4444
8/18/2019 SCADA Study Material
58/388
+loating2point num1er
8/18/2019 SCADA Study Material
59/388
0loatTo%/BByte -FIJ to @FIJ
0loatTo%/BWord -MIJ3J to @MIJ3J
0loatTo%/B)word -I.FAJAKMe@4L to @I.FAJAKMe@4L
0loatToBC)Byte 4 to LL
0loatToBC)Word 4 to LLLL
0loatToBC))word 4 to L.LLLLLLe@4J
0loatTo/ignedBC)Byte -L to @L
0loatTo/ignedBC)Word -LLL to @LLL
0loatTo/ignedBC))word -LLLLLLL to @LLLLLLL
0loatTo!t/ignedBC)Byte -JL to @JL
0loatTo!t/ignedBC)Word -JLLL to @JLLL
0loatTo!t/ignedBC))word -J.LLLLLLe@4J to @J.LLLLLLe@4J
0loatToi"enByte 4 to LL
0loatToi"enWord 4 to LLLL
0loatToi"en)word 4 to L,LLLLLLe@4J
0loatTo/ignedi"enByte -L to @L
0loatTo/ignedi"enWord -LLL to @LLL
0loatTo/ignedi"en)word -LLLLLLL to @LLLLLLL
0loatTo!cessByte 4 to LL
0loatTo!cessWord 4 to LLLL
0loatTo!cess)word 4 to L.LLLLLLe@4J
0loatTo/igned!cessByte -L to @L
8/18/2019 SCADA Study Material
60/388
0loatTo/igned!cessWord -LLL to @LLL
0loatTo/igned!cess)word -LLLLLLL to @LLLLLLL
0loatTo/DTimer F4 to LLL4444
0loatTo/D0loat @-F.J4FAFFe@MK
0loatTo/imaticTimer F4 to LLL4444
0loatTo/imaticBC)Timer F4 to LLL4444
+loating2point num1er ;?21it " 7>?
(e&inition
The 10loating-point num$er 3A-$it 5 JDA1 data type is eight $ytes long and is signed
>plus or minus?.
(OU-L
The 10loating-point num$er 3A-$it 5 JDA1 data tape is also referred to as 1)ou$le1.
Adapt &ormat
5f you create a new tag with the 10loating-point num$er 3A-$it 5 JDA1 data type, the
1Type Con#ersion1 $o! will display the 1)ou$leTo)ou$le1 $y default. The num$er range is
@-F.JLJ3LMFMAK3IMFe@M4K.
#ote$
0or e#ery 1)ou$leTo0loat1 type con#ersion, only the first se#en places are considered. The
0loat data type only allows se#en digits.
The following type con#ersions are possi$le for the 10loating-point num$er 3A-$it 5 JDA1
data type:
dapt format =um$er range
)ou$leTo)ou$le @-F.JLJ3LMFMAK3IMFe@M4K
>no con#ersion?
)ou$leTo;nsignedByte 4 to IDD
)ou$leTo;nsignedWord 4 to 3DDMD
8/18/2019 SCADA Study Material
61/388
)ou$leTo;nsigned)word 4 to AILAL3JILD
)ou$leTo/ignedByte -FIK to @FIJ
)ou$leTo/ignedWord -MIJ3K to @MIJ3J
)ou$leTo/igned)word -IFAJAKM3AJ to @IFAJAKM3AJ
)ou$leTo0loat @-M.A4IKIMe@MK
)ou$leTo%/BByte -FIJ to @FIJ
)ou$leTo%/BWord -MIJ3J to @MIJ3J
)ou$leTo%/B)word -IFAJAKM3AJ to @IFAJAKM3AJ
)ou$leToBC)Byte 4 to LL
)ou$leToBC)Word 4 to LLLL
)ou$leToBC))word 4 to LLLLLLLL
)ou$leTo/ignedBC)Byte -L to @L
)ou$leTo/ignedBC)Word -LLL to @LLL
)ou$leTo/ignedBC))word -LLLLLLL to @LLLLLLL
)ou$leTo!t/ignedBC)Byte -JL to @JL
)ou$leTo!t/ignedBC)Word -JLLL to @JLLL
)ou$leTo!t/ignedBC))word -JLLLLLLL to @JLLLLLLL
)ou$leToi"enByte 4 to LL
)ou$leToi"enWord 4 to LLLL
)ou$leToi"en)word 4 to LLLLLLLL
)ou$leTo/ignedi"enByte -L to @L
)ou$leTo/ignedi"enWord -LLL to @LLL
8/18/2019 SCADA Study Material
62/388
)ou$leTo/ignedi"en)word -LLLLLLL to @LLLLLLL
)ou$leTo!cessByte 4 to LL
)ou$leTo!cessWord 4 to LLLL
)ou$leTo!cess)word 4 to LLLLLLLL
)ou$leTo/igned!cessByte -L to @L
)ou$leTo/igned!cessWord -LLL to @LLL
)ou$leTo/igned!cess)word -LLLLLLL to @LLLLLLL
)ou$leTo/DTimer F4 to LLL4444
)ou$leTo/D0loat @-F.J4FAFFe@MK
)ou$leTo/imaticTimer F4 to LLL4444
)ou$leTo/imaticBC)Timer F4 to LLL4444
Te!t tag 921it character set and Te!t tag :;21it character set
(e&inition
Te!t tags are distinguished $y the character set that has to $e displayed:
• With the 1Te!t tag K-$it character set1 data type, each of the characters that has to $e
displayed in this tag is one $yte long. With the K-$it character set, the /C55 character set can $e displayed for e!ample.
• With the 1Te!t tag F3-$it character set1 data type, each of the characters that has to $e
displayed in this tag is two $ytes long. You reuire a tag of this type to display the;nicode character set, for e!ample.
Process tag with the Te!t tag data type
0or process tags with the 1Te!t tag K-$it character set1 and 1Te!t tag F3-$it character set1
data types, you must specify the length of the te!t tags. te!t tag that is reuired to
accommodate F4 characters later must $e ten long for the 1K-$it character set1 and I4 longfor the 1F3-$it character set1.
Adapt &ormat
8/18/2019 SCADA Study Material
63/388
There is no type con#ersion for the 1Te!t tag K-$it character set1 and 1Te!t tag F3-$it
character set1 data types.
)aw (ata Tag
(e&inition
!ternal and internal 1'aw data type1 tags can $e created in WinCCNs Tag %anagement. The
format and the length of a raw data tag are not fi!ed. 5ts length can $e in the range from F and
3DDMD $ytes. 5t is either defined $y the user or results from a specific application.
The contents of a raw data tag are not fi!ed. nly senders and recei#ers can interpret thecontents of a raw data tag. They are not interpreted $y WinCC.
#ote$
raw data tag cannot $e displayed within 1(raphics )esigner1.
Potential applications within WinCC
'aw data tags can $e used in the following modules within WinCC:
• 1larm &ogging1: 0or data e!change with the message $loc"s on the automation
system with message and ac"nowledgement processing of the message system.
• 1(lo$al /cript1: 5n scripts for data e!change using the 1(etG/etTag'aw1 functions.
• 1Tag &ogging1: 0or process controlled archi#ing with process controlled tags in the
process #alue archi#e.
• 1;ser rchi#e1: for transferring jo$s, data, processing ac"nowledgements $etween
WinCC and the automation systems.
1ddress roperties1
5n the case of e!ternal 'aw data tags the 1ddress roperties1 dialog $o! is not identical for
all communication dri#ers, since the parameters of the tag address and the supported raw datatag types depend on the communication dri#er $eing used.
Adapt &ormat
Type con#ersion is not possi$le in WinCC for the 1raw data type
!ternal Tags
"ntroduction
8/18/2019 SCADA Study Material
64/388
WinCC tags are reuired to access specific data in an /. These tags, which reuire a
connection to an /, are referred to as e!ternal tags. Tags, which do not ha#e a process
connection, are called internal tags.
(ata Types and Type Con'ersion
When configuring e!ternal tags, in addition to the tag name, you must also specify a datatype and - for some data types - a type con#ersion:
The data type agrees with the data format in WinCC. Type con#ersion determines thecon#ersion from / format to WinCC format. The type con#ersion applies in $othtransmission directions:
• in the /: e.g. for certain functions >such as timer #alues G BC) displays? or #ia the
information to $e addressed >such as $yte address, word address in data $loc" or 5G
range?
• in WinCC: e.g. for analog #alues - for processing or calculating.
s a rule, the / data format is fi!ed. There are then the following options for selecting the
WinCC format:
• The WinCC data format can match the / format. 0or this purpose, select the type
con#ersion, which uses the same format on $oth ends and considers the sign of theWinCC data type, e.g. 1WordTo/ignedWord1. 5f this cannot $e achie#ed with the
selected data type, change it in WinCC.
• The WinCC format follows the #alue processing in WinCC.
You must o$ser#e the following points when selecting the data type and - if necessary - type
con#ersion:
• /ign: /hould it $e considered in the con#ersionR Can negati#e tag #alues occur during
operationR >for e!ample, when differences in regulation #alues are presented in
percent?
• 2alue range: )o the tag #alues, which can occur in operation, all fall within the #alue
range a#aila$le in each format or is it possi$le that the #alue could o#erflow the range
in WinCC or on the /R 5n the e#ent of an o#erflow, a #alue may not $e possi$le to
display on the end or may lead to an error in the later processing.
• )ifferent type con#ersions with the same #alue range: 5t is possi$le that se#eral
con#ersions of a data type may ha#e the same #alue range, e.g.
1ByteTo;nsigned)word1 and 1ByteTo;nsignedWord1 with the #alue range 4...FIJU.
f 5n such cases you should always determine the format of the data on the / andchec" whether this format is not perhaps o#er-dimensioned and thus wasting
resources. >e.g. )Word instead of Word?.
8/18/2019 SCADA Study Material
65/388
5f the #alue range reuired in the / is not co#ered $y the selected type con#ersion, change
the data type in WinCC.
WinCC (ata Types and Type Con'ersion
The following ta$le shows which WinCC data types support type con#ersion.
)ata Type Type Con#ersion
Binary Tag =o
;nsigned K-Bit 2alue Yes
/igned K-Bit 2alue Yes
;nsigned F3-Bit 2alue Yes
/igned F3-Bit 2alue Yes
;nsigned MI-Bit 2alue Yes
/igned MI-Bit 2alue Yes
0loating-point =um$er MI-Bit 5 JDA Yes
0loating-point =um$er 3A-Bit 5 JDA Yes
Te!t tag K-$it character set =o
Te!t Tag F3-Bit Character /et =o
'aw data type =o
#ote$
When using type con#ersions, ma"e certain that the data sent from the / can $e interpreted
$y WinCC within the selected type con#ersion. 5f the data cannot $e interpreted $y WinCC,an error will $e logged in the file 1WinCCPsysP4!.log1 in the directory
1../iemensWinCC)iagnose1.
Linear Scaling o& #umerical Tag Types
&inear scaling can $e used with numerical data types. The #alue range of a #alue in a process
can $e represented linearly in a specific #alue range of a WinCC tag.
8/18/2019 SCADA Study Material
66/388
s an e!ample, a process could reuire that a nominal #alue $e entered in the unit $arU,
while WinCC should permit the user to enter this #alue in m$arU. ;sing linear scaling, the
#alue range in the process 4 ...FU can $e con#erted to the #alue range 4 ...F444U of theWinCC tag.
Setting Te!t Tag Lengths
You must set the length of tags with the data type 1Te!t Tag K-Bit Character /et1 or 1Te!t Tag
F3-Bit Character /et1. te!t tag, which should later ta"e F4 characters, must $e assigned a
length of F4 in the case of an 1K-Bit Character /et1 or, in the case of a 1F3-Bit Character /et1,a length of I4.
Addressing in an Automation System
WinCC tags are assigned to data areas in the /. They must addressed in a particular manner
in the /. The type of addressing depends on the type of communication partner.
0ow to create a new connection
"ntroduction
!ternal tags can only $e created on the $asis of a connection to an automation system. 5f the
necessary connection does not e!ist, it must first $e created.
Prere3uisites
• The reuired communication processor and associated hardware dri#er must $e
installed.
• The desired communication dri#er must also $e installed, e.g. 1/5%T5C /J rotocol
/uite1.
Procedure
F !pand the #iew of the communication dri#er in 1Tag %anagement1.
I /elect the desired channel unit, e.g. 1'05B;/1.
M 5n the pop-up menu for the channel unit, select 1=ew )ri#er Connection...1.
8/18/2019 SCADA Study Material
67/388
A n the 1(eneral1 ta$$ed card, in the field 1=ame1, enter a name for the connection thatis uniue within the scope of the project.
D Clic" on the 1roperties1 $utton to open the 1Connection arameters1 dialog. /et the parameters as reuired for this connnection. 0or further details, please refer to the H&
documentation for the respecti#e channel.
3 Close all of the dialogs $y clic"ing on 191.
Type con'ersions sorted 1y WinCC data type
"ntroduction
When configuring e!ternal tags, a type con#ersion must $e performed for all numerical data
types.
The data format on the WinCC-side determines the data type. The type con#ersion defines
how the WinCC format will $e con#erted to the / format. This definition applies fortransfers in $oth directions.
/elect the desired WinCC data type from the list. The ta$le $elow will then list the supported
type con#ersions and #alue ranges.
WinCC (ata Type
8/18/2019 SCADA Study Material
68/388
Type con'ersion
*Unsigned 92-it /alue*
/alue )ange
ByteTo;nsignedByte 4...IDD >no con#ersion?
ByteTo;nsignedWord 4...IDD
ByteTo;nsigned)word 4...IDD
ByteTo/ignedByte 4...FIJ
ByteTo/ignedWord 4...IDD
ByteTo/igned)word 4...IDD
ByteToBC)Byte 4...LL
ByteToBC)Word 4...IDD
ByteToBC))word 4...IDD
ByteToi"enByte 4...LL
ByteToi"enWord 4...IDD
ByteToi"en)word 4...IDD
ByteTo!cessByte 4...LL
ByteTo!cessWord 4...IDD
ByteTo!cess)word 4...IDD
Type Con'ersion
*Signed 92-it /alue* /alue )ange
CharTo;nsignedByte 4...FIJ
CharTo;nsignedWord 4...FIJ
CharTo;nsigned)word 4...FIJ
8/18/2019 SCADA Study Material
69/388
CharTo/ignedByte -FIK...@FIJ >no con#ersion?
CharTo/ignedWord -FIK...@FIJ
CharTo/igned)word -FIK...@FIJ
CharTo%/BByte -FIK...@FIJ
CharTo%/BWord -FIK...@FIJ
CharTo%/B)word -FIK...@FIJ
CharToBC)Byte 4...LL
CharToBC)Word 4...FIJ
CharToBC))word 4...FIJ
CharTo/ignedBC)Byte -L...@L
CharTo/ignedBC)Word -FIK...@FIJ
CharTo/ignedBC))word -FIK...@FIJ
CharTo!t/ignedBC)Byte -JL...@JL
CharTo!t/ignedBC)Word -FIK...@FIJ
CharTo!t/ignedBC))word -FIK...@FIJ
CharToi"enByte 4...LL
CharToi"enWord 4...FIJ
CharToi"en)word 4...FIJ
CharTo/ignedi"enByte -L...@L
CharTo/ignedi"enWord -FIK...@FIJ
CharTo/ignedi"en)word -FIK...@FIJ
CharTo!cessByte 4...LL
8/18/2019 SCADA Study Material
70/388
CharTo!cessWord 4...FIJ
CharTo!cess)word 4...FIJ
CharTo/igned!cessByte -L...@L
CharTo/igned!cessWord -FIK...@FIJ
CharTo/igned!cess)word -FIK...@FIJ
Type Con'ersion
*+loating2point #um1er ;?2-it " 7>?* /alue )ange
)ou$leTo)ou$le @-F.JLJ3LMFMAK3IMFe@M4K >no con#ersion?)ou$leTo;nsignedByte 4...IDD
)ou$leTo;nsignedWord 4...3DDMD
)ou$leTo;nsigned)word 4...AILAL3JILD
)ou$leTo/ignedByte -FIK...@FIJ
)ou$leTo/ignedWord -MIJ3K...@MIJ3J
)ou$leTo/igned)word -IFAJAKM3AJ...@IFAJAKM3AJ
)ou$leTo0loat @-M.A4IKIMe@MK
)ou$leTo%/BByte -FIJ...@FIJ
)ou$leTo%/BWord -MIJ3J...@MIJ3J
)ou$leTo%/B)word -IFAJAKM3AJ...@IFAJAKM3AJ
)ou$leToBC)Byte 4...LL
)ou$leToBC)Word 4...LLLL
)ou$leToBC))word 4...LLLLLLLL
8/18/2019 SCADA Study Material
71/388
)ou$leTo/ignedBC)Byte -L...@L
)ou$leTo/ignedBC)Word -LLL...@LLL
)ou$leTo/ignedBC))word -LLLLLLL...
Top Related