You are on page 1of 28

Trend Display and Measured Value Archiving

SITRAIN
ST-BWINCCS /TagLogging Page 1 Siemens AG © 2007

Contents Page
Objectives ........................................................................................................................................................ 2
Configuration Preparation ............................................................................................................................... 3
Tag Logging 1/3 ................................................................................................................................................ 4
Tag Logging 2/3 ................................................................................................................................................ 5
Tag Logging 3/3 ................................................................................................................................................ 6
Measured Value Archiving and Processing ...................................................................................................... 7
Tag Logging Call-Up .......................................................................................................................................... 8
Tag Logging Configuration Interface ................................................................................................................. 9
Archive Wizard .................................................................................................................................................. 10
Process Value Archive Properties .................................................................................................................... 11
Editing Measurement Points ............................................................................................................................. 12
Archive Configuration for Fast and Slow 1/3 ..................................................................................................... 13
Backup Configuration for Fast and Slow Archive 2/3 ........................................................................................ 14
Specifying the Archive Contents for Fast or Slow Archive 3/3 .......................................................................... 15
Resetting the Archive and Evaluating Old Archives .......................................................................................... 16
WinCC Online Trend Control in the Graphics Designer and Trend Properties ............................................... 17
Further Window Properties for WinCC Online Trend Control ........................................................................... 18
Configuration Notes 1/2 .................................................................................................................................... 19
Configuration Notes 2/2 .................................................................................................................................... 20
Exercise 1: Create a Tag Logging Archive Using the Archive Wizard ............................................................... 21
Exercise 2: Tag Logging Archive Configuration ................................................................................................ 22
Exercise 3: WinCC OnlineTrendControl in the Graphics Designer ................................................................... 23
Exercise 4: Window Properties for WinCC OnlineTrendControl ...................................................................... 24
Exercise 5: Show Ruler Values via the Ruler Window (RulerControl) …………............................................... 25
Exercise 6: Function Test OnlineTrendControl ................................................................................................. 26
Exercise 7: Configuration of OnlineTableControl .............................................................................................. 27
Exercise 8: Function Test OnlineTableControl .................................................................................................. 28

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 1 TagLogging
Objectives

- Measurement Point

- Trend Display

- Trend Archive

SITRAIN
ST-BWINCCS /TagLogging Page 2 Siemens AG © 2007

Upon completion of this chapter, the participant should be able to:

• know the advantages of tag logging


• start tag logging
• adapt tag logging to the system requirements
• configure measurement points
• display measurement points in a picture as trends
• archive measurement points

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 2 TagLogging
Configuration Preparation

- Archive Description

- Archiving Time Period

- Trend Analysis

- Displaying Measured Values

SITRAIN
ST-BWINCCS /TagLogging Page 3 Siemens AG © 2007

Configuration Preparation
Process Connection
• Defining tags with the assignment of a signed 16-bit value

Acquiring Measured Values


• Grouping all measurement points
• Specifying the archive description
• Specifying the archiving time period
• Specifying the analysis and evaluation routines
• Specifying the reports
• Specifying the process values
• Defining the contents and display for the trend window
• Specifying the trend display

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 3 TagLogging
Tag Logging 1/3

Internal tag
Trend and
table display
Meas. value Calcu- with WinCC Controls
lation
0 n<HD
>=500ms Ring buffer RAM
Meas.value(s) SIEMENS

SICOMP
IPC RI 20

Meas. values in Fast Slow


Process Archive if
frame Inter- Archive
pre- <=1min >1min
tation Long-term archive

- Shift report
- Daily report
Integrated backup function - Monthly report

Archive system API


Long-term archive
server LAS
(Backup Server)
Central WinCC
Archive Server AddOn ODK Options
(CAS) PM User -Connectivity Pack
Analysis applications, -DataMonitor
e. g. Diagnosis (web clients
for display and analysis)
SITRAIN
ST-BWINCCS /TagLogging Page 4 Siemens AG © 2007

General Information
By means of tag logging, tags from the PLC are displayed in WinCC in the form of
trends and tables. The tags are archived and reported, if applicable.

To view the history, the measured values are saved on the hard drive in a ring
buffer archive.

Tag Logging - Measured value and measured value message frame


- Main memory (Real Time Trends)
- Ring buffer archive
- Opening for analysis programs and evaluation programs

Number of Measured Values with Fast Archive


Archiving to the database for server/single-user of up to 5000 values/second.

License The WinCC basic software contains 512 available archive tags. For extensive
configurations, an expansion using powerpacks is needed.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 4 TagLogging
Tag Logging 2/3
Swap out
Depends on the
request -> Backup
Archives Archive
(.mdf, .ldf)

RT master database

RT-DB (Fast cyclic archives with compressed data)


TLG Master
Database RT-DB (Slow cyclic archives with uncompressed data)

Data acquisition
• WinCC Data Manager
• OPC Server
• WinCC server-server Analysis / Evaluation
communication • WinCC Function TrendControl
• Protocols (Report Designer)

Long-term archiving Options


• High performance archiving • DataMonitor + Excel
• Swap data in and swap data out • Connectivity Pack + External Appl.
• IndustrialDataBridge + Ext. Appl.
Note: ES=Single segment,
compressed data is only read via the WinCC OLE-DB interface
SITRAIN
ST-BWINCCS /TagLogging Page 5 Siemens AG © 2007

Archiving For archiving measured values, WinCC uses cyclic archives (ring buffer) of a
configurable size. You can configure them with or without backup.
The archive files are always stored on the local computer in the associated
project.
The WinCC measured values archive consists of multiple single segments. You
can configure both the size/time of the measured values archive and the size/time
of the single segments in WinCC.
Example: The measured values archive archives all measured values that occur
within one week (1), each single segment archives the measured values that occur
within one day (2).
You can always configure both conditions at the same time. If either of the two
criteria (time or size) is exceeded, the following happens :
Criteria for measured values archive (DB) is exceeded (1)-> the oldest measured
values (that is, the oldest single segment) are deleted.
Criteria for single segment is exceeded (2)-> a new single segment (ES) is
created.
A new single segment is also created when you configure TagLogging data online
(for load Delta online).
DataMonitor
For visualization and evaluation, WinCC/DataMonitor provides a series of Internet-
capable tools for viewing (view only) and online analysis. These support all the
usual security mechanisms such as login/password, firewalls, encrypting etc..
Connectivity Pack
Access to WinCC using OPC and OLE-DB. Using OLE-DB, you can directly
access the archive data stored by WinCC in the MS SQL Server database. The
OPC HDA (Historical Data Access) and OPC A&E (Alarm & Events) servers
enable you to access historical WinCC archive system data and to pass on /
acknowledge messages.
IndustrialDataBridge
Configurable connection to databases and IT systems.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 5 TagLogging
Tag Logging 3/3

Data acquisition
+WinCC data manager
+OPC Server Runtime-Daten Tag Logging Fast Segment:
+WinCC Server-Server COMPUTER_PROJECT_TLG_F_<period_from>_<period_to>.LDF
Communication (max.11) COMPUTER_PROJECT_TLG_F_<period_from>_<period_to>.MDF
COMPUTER_PROJECT_TLG_F_JJJJMMTTHHMM.MDF
Example: HMI_ab#graf#TLG_F_200906020629.mdf
HMI_ab#graf#TLG_F_200906020901_200306021000.mdf

Runtime Data Tag Logging Slow Segment:


COMPUTER_PROJECT_TLG_S_<period_from>_<period_to>.LDF
COMPUTER_PROJECT_TLG_S_<period_from>_<period_to>.MDF
COMPUTER_PROJECT_TLG_S_JJJJMMTTHHMM.MDF
Example: HMI_ab#graf#TLG_S_200906020629.mdf
HMI_ab#graf#TLG_S_200906020901_200906021000.mdf

SITRAIN
ST-BWINCCS /TagLogging Page 6 Siemens AG © 2007

Name RT-DB The runtime data are distributed amongst the master database and several
runtime databases.
The master database manages the runtime databases and refers to the individual
runtime databases. The master database is created in the project directory. The
name of the master database consists of the project name with a trailing "RT".
The runtime databases each contain the archived data for a specific time period
and are stored in the project directory in a subdirectory
"ArchiveManager/TagLoggingFast or TagLoggingSlow".

The name of the runtime database consists of:


+ computer name
+ project name
+ ID for the type of data (ALG = Alarm Logging, TLG_F = Tag Logging
Fast, TLG_S = Tag Logging Slow)
+ date/time (year, month, day, hours, minutes).
If the time of the segment change is less than the RT Start time, an additional file
is created.
For example:
HMI_ab#graf#TLG_S_200306021001_200306021101.mdf. This file structure also
indicates that measured values were recorded in this time period.
If the file only contains the time of the segment change, then no measured values
were recorded in this time period.

Ldf=Database Transaction Log File (organization file)


mdf=Database Primary Data File (file with the user data)

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 6 TagLogging
Measured Value Archiving and Processing
Calculations
Sum
Archiving 1)
Mean Value

Minimum

Maximum

Free arithmetic

Last acquired
value
Acquisition Cycle Time
>=500ms
Archiving/Display
Cycle 1) 1)
SITRAIN
ST-BWINCCS /TagLogging Page 7 Siemens AG © 2007

General Information The WinCC system records measured values in an acquisition cycle, and the
values are saved during the archiving cycle to the hard drive. You have to make
sure that only the values are written to the archiving cycle. Values recorded in the
acquisition cycle are used only for the calculations named above, but they are not
saved in the archive.

Processing WinCC Tag Logging provides you with the following measured value processing:
- Sum
- Mean value
- Minimum value
- Maximum value
- Free arithmetic with scripts
- Current value

Types of Archiving WinCC Tag Logging provides you with the following types of archiving for
measured values :
- Acyclic, with Start/Stop Events (controlled by the return value)
In acyclic archiving, a tag / measured value is stored when a start event is
received or when the value of the tag changes.
- Cyclic - selective, with Start/Stop Events
Archiving is started dependent on an event being received and continues in
constant time cycles until a second event is received. When there is a Stop Signal,
the last acquired value is also stored.
- Cyclic - continuous
Data acquisition begins when the system is started (Runtime) and continues in
constant time cycles until the system is switched off.
- Only upon change

FAQ 71278 FAQ 71278 describes the meaning and functionality of the archiving types.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 7 TagLogging
Tag Logging Call-Up

1. Call the context menu.


2. Use the mouse to click on “Open”.
Result: Tag Logging starts.
3. Maximize the window and set up the interface as
you want it.
SITRAIN
ST-BWINCCS /TagLogging Page 8 Siemens AG © 2007

Task Definition
You are to configure the tag logging with measurement points, the process value
archive, and trend window templates.
The configuration must then undergo a function test.
The settings necessary for the exercise are shown in the configuration
explanation.

Requirements
If no tags have been configured as yet, then the tags must be configured now
before additional configurations are carried out (see Chapter 3 for configuration
instructions).

Tag Logging Call


Refer to the screen in the slide above.

Exiting Tag Logging


M > File, O > Exit.
If tag logging was open, you made changes, and you have not saved the changes
yet, a dialog box for saving appears after the “Exit” command.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 8 TagLogging
Tag Logging Configuration Interface

Edit new timers

Data window

Navigation window

Table window

SITRAIN
ST-BWINCCS /TagLogging Page 9 Siemens AG © 2007

Configuration Interface
After you call tag logging, the division illustrated in the slide above is displayed on
the monitor :
- The editors are displayed in a tree structure in the left window.
- The result of the configuration of the respectively selected editor is displayed in
the right window.
- The table window in the lower part of the screen in the slide above displays the
editing possibilities for texts, tags, and attributes for the measurement point.

Timers Shortcut menu, see slide above


With this you can freely create archiving and recording cycles.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 9 TagLogging
Archive Wizard

(1) Start wizard

SITRAIN
ST-BWINCCS /TagLogging Page 10 Siemens AG © 2007

Start Archive Wizard


(1) Shortcut menu, see slide above
To make it easier for you to begin configuring, the measured value system has a
configuration assistant (Archive Wizard) that takes all important settings into
consideration to set up an executable archive quickly. You can use the archive
editor at any time to change the defaults.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 10 TagLogging
Process Value Archive Properties
-Memory location: Main memory or hard disk
-For main memory, size in data records

Open
context menu

SITRAIN
ST-BWINCCS /TagLogging Page 11 Siemens AG © 2007

Memory Location Every measurement point can be recorded by the Tag Logging in two different
ways.
- in a main memory (RAM) - ring buffer.
- in a (local) hard disk - ring buffer.

Estimating the Required Memory Space


The number of measured values * approx. 3 bytes for Slow/Fast Archive
(see FAQ 1661 9980).
Slow and Fast Archive are stored in compressed form.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 11 TagLogging
Editing Measurement Points
-Name of archive and process tag -Editing, such as mean value,
-Tag provision by system/manually max.....action
FAQ 1755 1863) -Save when error -No display limitation
-Archiving enabled/disabled (last/replacement value) -Configured directly with upper/
-Unit, currently not used lower limit

Context menu

SITRAIN
ST-BWINCCS /TagLogging Page 12 Siemens AG © 2007

Measurement Points
Measurement points can be added, changed, or removed from the archive.
The process value archiving is controlled via cycles and events. The acquisition
cycles and the archiving cycles make sure that process values are continuously
acquired and saved. Beyond that, the process value archiving can also be
triggered and ended by events and actions.
- Cyclic continuous archiving (continuous)
- Cyclic selective archiving
- Acyclic, event-driven archiving
- Acyclic archiving when the process values change

Cyclic continuous For cyclic continuous archiving, select "cyclic" as the Archiving type in the
"Archiving" tab. Define the acquisition cycle and in the group "Archiving" determine
the archiving cycle. In the field "Hysteresis", configure whether only the process
value that lies absolutely ("abs.") or relatively ("in %") above or below the specified
threshold is to archived.
Cyclic selective For cyclic selective archiving, you additionally configure the start and stop events
in the group "Actions". In each case select a tag via "..." in the Tag Management or
a C-Script in the Function Browser. The tag or the function must return the values
"TRUE" or "FALSE". If the value "TRUE" occurs, archiving is started or archiving is
ended.
Acyclic If you want an acyclic, event-driven archiving, select "acyclic" as the Archiving type
in the "Archiving" tab and "event-driven" as the Acquisition. In the group "Events",
define the underlying event. For this, select a tag via "..." in the Tag Management
or a C-Script in the Function Browser. The tag or the function must return the
values "TRUE" or "FALSE". If the value "TRUE" occurs, archiving is started.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 12 TagLogging
Archive Configuration for Fast and Slow 1/3

ODER

ODER

Cyclic archive

RT Data

Cyclic archive
SITRAIN
ST-BWINCCS /TagLogging Page 13 Siemens AG © 2007

In Tag Logging, you define for which time period the data are to be archived and
as of when the data are to be overwritten.
Depending on the archiving cycle, you create a fast or/and slow archive. The data
is stored in compressed form in both archives.

Note By default, the backup begins one-quarter hour after the first time-dependent
segment change. With every configuration change, a new segment begins in RT.

Archive Configuration
The "Time period of all segments" or "Max. size of all segments" refers to the
entire archive. If the one or the other limit is exceeded, old segments are deleted
(or moved to the Backup directory).

The "Time period for single segments" or "Max. size of a single segment" refers to
archive slices. That way, the archive can be divided into several database files.

The "Time of the segment change" : Here you can enter a defined start time, for
example for a daily segmentation, every segment is to begin at 0:00 o’clock. If the
project is started for the first time at 16:00 o’clock, the first segment goes from
16:00 to 24:00 o’clock. After that, every segment covers the period from 0:00 to
24:00 o’clock.

+ smallest unit for the time period of all segments: 1 day


+ smallest unit for the size of all segments: 100 megabyte

The archive configuration settings are used by all archives.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 13 TagLogging
Backup Configuration for Fast and Slow Archive 2/3

RT Data

SITRAIN
ST-BWINCCS /TagLogging Page 14 Siemens AG © 2007

Swap Triggering
+ Archive segment is completed (15 minutes after completion) or
+ Maximum archive segment size is reached.

Example: RT Data
DOZENT_ab#graf#V5.1_TLG_S_200306021247_200306021254.mdf
DOZENT_ab#graf#V5.1_TLG_S_200306021301.mdf

DOZENT_ab#graf#V5.1_TLG_F_200306021247.mdf

Alternative Destination Path


The "Alternative destination path" is used if, for example, the network path for the
backup is not available, for example, because of a network failure.

Evaluation
Access to the swapped data:
+ such as, with optional WinCC tools
+ selecting the archive segments in the associated subdirectory.
Such as: DOZENT_ab#graf#V5.1_TLG_S_200306021247_200306021254.mdf
and with WinCC "Connect" evaluate old archive.
Delete Backup
To delete an archive backup, delete the associated LDF file and MDF file in the
Windows Explorer.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 14 TagLogging
Specifying the Archive Contents for Fast or Slow Archive 3/3

Slow Archive
(binaryCode)

No

Condition
true?

Yes

Fast Archive
(binaryCode)

SITRAIN
ST-BWINCCS /TagLogging Page 15 Siemens AG © 2007

Archive Contents The default setting specifies that the measuring values <=1 minute are stored in
compressed form (fast archive). The database is configured such that data storage
in compressed form (BinaryCode) results in a higher performance than if stored in
uncompressed form. All archive tags that fulfill these conditions are requires the
“WinCC OLE-DB“ Provider Interface (Connectivity Pack option).

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 15 TagLogging
Resetting the Archive and Evaluating Old Archives
Runtime

Connect backup Disconnect


backup

WinCC in CS mode WinCC in RT mode


Reset: Link:
All Database files in the Necessary when old archive files
fast archive are deleted are to be evaluated
after check back.
In the first RT mode, DB files Disconnect:
are automatically recreated. “Opposite” of Link
SITRAIN
ST-BWINCCS /TagLogging Page 16 Siemens AG © 2007

Sequence for Connecting


1. Copy backup files to a local drive or insert a memory medium (such as CD).

2. Link databases.

3. Values are immediately available in RT: For Trends, you only have to scroll
through the archive. For messages, you only have to read in the messages
once more (such as, changing from short-term archive into the long-term
archive).

4. When you don’t need the data any longer, disconnect the database.

5. Data can then be removed from the local drive.

You proceed in the same manner for Slow Archive. Furthermore, it is also possible
in Runtime to connect to a data medium in order to evaluate historical data.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 16 TagLogging
WinCC Online Trend Control in the
Graphics Designer and Trend Properties

SITRAIN
ST-BWINCCS /TagLogging Page 17 Siemens AG © 2007

The WinCC OnlineTrendControl is the runtime window in which measured values


are displayed during Runtime.

After creating the WinCC Online Trend Control, the number of trends, the
representation and possible operations of a trend template are parameterized.

The Properties dialog appears automatically after editing the Control. Further
parameters can be set in the properties window of the Control (see next page).

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 17 TagLogging
Further Window Properties for WinCC Online Trend Control
-Number of trend windows
- Status bar on/off -Labeling
-Layer of rulers - CSV file
- Release items of the -Alignment
-Grid lines - Scope
status bar -Time selection
-Labeling -Design of ruler
- Tooltip -Time range
-Course/fine scaling - Persistency
-Automatic or
from…to
-linear, logarithm.

- Toolbar on/off
- Key functions
- Authorization
- Hotkeys, Tooltip

Can be opened again


Toolbar by double-clicking

Status bar

SITRAIN
ST-BWINCCS /TagLogging Page 18 Siemens AG © 2007

You specify the design and the display of a trend window with the help of the
window properties for the WinCC Online Trend Control.

Call You can call the Properties window with a double-click on the left mouse
button.

You will find an exact description of the parameters in the Online Help.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 18 TagLogging
Configuration Notes 1/2

Acquisition: 1 min
Archiving: 1 min
This setting results in an optimum
communication load

Acquisition: 1 sec
Archiving: 5 sec
This setting results in an unnecessary
communication load

Acquisition: 5 sec
Archiving: 5 sec
Archive becomes large, optimum
communication load

Note: You have to take into Acquisition: 2 sec


consideration that the acquisition cycle Archiving: 10 sec
is a permanent load in the background
(communication´) Makes sense for arithmetic, such
as, mean value
SITRAIN
ST-BWINCCS /TagLogging Page 19 Siemens AG © 2007

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 19 TagLogging
Configuration Notes 2/2

C script with Global Script function:

Start Events and Stop Events are


functions that are called every 500
ms for every trend!
Better: Global Script Action (*.pas)
with TLGLockArchive (see FAQ)
or use tag link.

SITRAIN
ST-BWINCCS /TagLogging Page 20 Siemens AG © 2007

Example If 20 trends are acquired using Cyclic-Selective, then


20 trends x 2 functions (Start/Stop) x 2 (processings 2x500ms) = 80
scripts/sec are processed. That means the processor load increases very quickly.

Better: configure an action (*.pas) in Global Script with tag trigger and the function
TLGLockArchiv.

FAQ 2185 73 QUESTION:


How can you enable archiving per action?
ANSWER:
You can enable or disable archiving during system start in the Tag Logging under
Properties of Process Tag.
If you want to reverse this setting in Runtime, you have to configure the following
action behind a key, for example:

#include "apdefap.h"
void OnClick(..........................................
{
TLGConnect(NULL,NULL);
TLGLockArchiv(NULL,“Process value archive",FALSE,NULL);
TLGDisconnect(NULL);
}
Explanation:
"Process value archive" --> Name of the process value archive
FALSE --> Unlock Archive
TRUE --> Lock Archive

Note Group trends with Start/Stop Event in a separate archive.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 20 TagLogging
Exercise 1: Create a Tag Logging Archive Using the Archive Wizard

(1)
Context menu

SITRAIN
ST-BWINCCS /TagLogging Page 21 Siemens AG © 2007

Objective A measured values archive is to be added to the existing WinCC project


"Control_Room". The measured value archive is to be visualized in an additional
picture with an OnlineTrendControl as plot.

Exercise To make it easier for you to begin configuring, the measured values archive
system “Tag Logging” has a configuration assistant (Archive Wizard) that takes all
significant settings into consideration to set up an executable archive quickly.

1. Open the WinCC “Control_Room” project integrated in the S7 project


“Ventilation”
2. Open the "Tag Logging" editor in WinCC Explorer
3. In the opened "Tag Logging" editor, right-click on the "Archive" icon to open the
Archive Wizard.
4. Please run through the Archive Wizard (1) and set the following parameters :
- Archive name: Measured_Values_Station_1_10
- Archive type: Process Value Archive
- Tags: Trend_1
IVar_Meas

5. Save the tag logging configuration data

Process Tag Properties


Trend_1: Acquisition 1 sec, Archiving 1sec
IVar_Meas: Acquisition 1 sec, Archiving 1 sec.

Note The archiving cycle selected for the process tags used in the OnlineTableControl
must be uniform.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 21 TagLogging
Exercise 2: Tag Logging Archive Configuration

SITRAIN
ST-BWINCCS /TagLogging Page 22 Siemens AG © 2007

Objective An archive configuration is to be created that archives the measured values for
one day and in a short-term archive.

Exercise 1. Open the "Tag Logging" editor in WinCC Explorer

2. In the opened "Tag Logging" editor, right-click on the "Archive


Configuration" icon to open the Archive Configuration dialog box after double-
clicking on the "TagLogging Fast" icon.

3. Accept the settings from the figure above.

4. Save the tag logging configuration data

With these settings, up to 1200 MB measured values are stored in a fast short-
term archive (compressed) with an acquisition cycle of <= 1 minute for a day.
The measured values with an acquisition >1min are to be archived in a slow
archive (not planned for in this exercise).
Choose the current date and time after RT Start for the time of the segment
change.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 22 TagLogging
Exercise 3: WinCC OnlineTrendControl in the Graphics Designer

Copy the picture „Trends.pdl" from the catalog "ab_exercise" into your project.
SITRAIN
ST-BWINCCS /TagLogging Page 23 Siemens AG © 2007

Objective A trend picture is added to the Control_Room project. The OnlineTrendControl in


the figure above is parameterized to display data from the measured value archive
as trends.

Exercise 1. From the catalog "ab_exercise", copy the picture „Trends.pdl" into your project
with the subdirectory GraCS.

2. Also import the picture in SIMATIC Manager via "Import WinCC objects" so that
the copied picture also becomes visible in the SIMATIC Manager display. You
can access this import function in SIMATIC Manager by right-clicking on the
OS icon with the WinCC project name "Control_Room" to its right (below the
"WinCC Appl." icon)

3. Add a button for selecting the picture "Trends.pdl" to the start screen.

4. Please make the following settings in the window that appears:

- Trend 1 - Trend 2

Tab: Trends Tab: Trends


Color: red Color: green
Data source: Archive tags Data source: Archive tags
Tag name: Trend_1 Tag name: IVar_Meas

Connect dots linearly Connect dots linearly

Dot type: circles, dot width: 8

Note on tag name: Select the tag name via the dialog Archive/Tag Name. The
dialog is opened via the button to the right of the tag name field.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 23 TagLogging
Exercise 4: Window Properties for WinCC OnlineTrendControl

Can also be assigned parameters in RT

Double-click

SITRAIN
ST-BWINCCS /TagLogging Page 24 Siemens AG © 2007

Objective The representation of the value axis and time axis as well as the
OnlineTrendControl properties are defined.

Exercise 1. Please make the following settings in the window that appears:

- Trend 1 - Trend 2

- Tag: Value axes Tag: Value axes


Label: Temp. Label: Press.
Value range: from 0 to 100 Value range: from 0 to 120
Autom. display: no Autom. display: no
Decimal places: 0 Decimal places: 0

- Tab: Time axes Tab: Time axes


Label: time Label: time
Time range: 1 minute Time range: 1 minute
Update: yes Update: yes

- Tab: General
Closable: no
Text: Blast furnace W.

- Tab: Status Bar


Date: Show

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 24 TagLogging
Exercise 5: Show Ruler Values via the Ruler Window (RulerControl)

Double-click

SITRAIN
ST-BWINCCS /TagLogging Page 25 Siemens AG © 2007

Objective Additional windows for outputting values (ruler and statistics) are added to the
existing OnlineTrendControl.

Exercise Evaluated data and statistics are shown in a table in a ruler window, statistics
window, and statistics area window. You can configure the ruler window/statistics
window/statistics area window in the WinCC TrendRulerControl.

The ruler window shows the coordinate values of the trends on a ruler or values of
a selected row in the table. Proceed as follows to configure the ruler window.
1. Add the RulerControl to the controls palette.

2. Add the WinCC TrendRulerControl from the object palette in the picture.

3. Double-click on the TrendRulerControl to open the configuration dialog.

4. Select the object name of the already configured control on the "General" tab in
the "Source" field. The control type is shown in the "Type" field.

5. Go to the tab "Columns" and accept the selected columns as shown in the
figure .

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 25 TagLogging
Exercise 6: Function Test OnlineTrendControl

TrendControl

RulerControl

"TagLoggingRuntime" must be selected in the start-up list!


SITRAIN
ST-BWINCCS /TagLogging Page 26 Siemens AG © 2007

Objective The created trend picture is to be tested.

Exercise 1. Complement the computer start-up list. For this purpose, open the "Computer
properties" dialog box in WinCC Explorer. In this dialog box, activate the
following software component in the tab "Start up" in the list "WinCC Runtime
start-up sequence":
- Tag Logging Runtime

2. Start WinCC Runtime in WinCC Explorer

3. In Runtime mode, open the picture "Trends" and run a function test of your
configuration. In this test, execute the following operations in the process
control in OnlineTrendControl:

• Setting the value range for the Y axis


• Switching on/switching off the reading line
• Zoom a window area
• Selection according to the time period
• Hide trends
• Recorder function (vertical trend window)

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 26 TagLogging
Exercise 7: Configuration of OnlineTableControl

TrendControl

RulerControl

Note: Only measured


TableControl values with the same
archiving cycle are shown

"TagLoggingRuntime" must be selected in the start-up list!


SITRAIN
ST-BWINCCS /TagLogging Page 27 Siemens AG © 2007

Objective A table window (OnlineTableControl) is to be added to the created trend picture.

Exercise 1. Configure the output of the measured values via a table window
(WinCC OnlineTableControl).

2. Place the OnlineTableControl in the picture as shown above.

3. Open the “WinCC OnlineTableControl Properties” configuration dialog by


double-clicking on the OnlineTableControl.

4. In the tab “Value columns”, increase the number of value columns to two
(“New” button).

5. Use the following settings in the tab “Column values”


- Column value 1 - Column value 2
Object name: Trend_1 Object name: IVar_Meas
Font color: red Font color: green
Data supply: Archive tags Data source: Archive tags

Select the tag name in the dialog box “Archive/Tag name”.


The dialog box is opened by clicking on the button to the right of the field “Tag
name”.
Tag name: ........Trend_1 Tag name: ........ IVar_Meas

Note In the OnlineTableControl, only measured values that were recorded with the
same archiving patterns can be displayed.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 27 TagLogging
Exercise 8: Function Test OnlineTableControl

TrendControl

RulerControl

Note: Only measured


TableControl values with the same
archiving cycle are shown

"TagLoggingRuntime" must be selected in the start-up list!


SITRAIN
ST-BWINCCS /TagLogging Page 28 Siemens AG © 2007

Objective The created table window (OnlineTableControl) is to be tested.

Exercise 1. You are to carry out a function test on the configuration you created and test the
attributes you assigned. Start WinCC WinCC Runtime for this purpose.

2. Execute the following operations in the process control in OnlineTableControl :


• Change the time range from, for example, one minute to four seconds
• Hide/show columns

Note In the OnlineTableControl, only measured values that were recorded with the
same archiving patterns can be displayed.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 28 TagLogging

You might also like