Tia Portal
Tia Portal
Tia Portal
Table of contents 9
9. Logging tags ........................................................................................................... 9-3
9.1. Overview ............................................................................................................................... 9-4
9.2. Types of data logs ................................................................................................................. 9-5
9.3. Procedure for configuring data logs ...................................................................................... 9-6
9.4. Displaying data logs .............................................................................................................. 9-8
9.4.1. Trend view assign data log............................................................................................... 9-9
9.4.2. Trend view most important properties ............................................................................ 9-10
9.4.3. Trend view formatting table ............................................................................................ 9-11
9.5. Exercise 1: Configuring and displaying a data log .............................................................. 9-13
9. Logging tags
In this section, the user will learn about the log variants and practice using the logging functions.
Participants will get to know process value logs and the trend view. They will gain an overview of
the logging of tags.
Training aims:
Participants will be able to create process value logs, log process values and configure trend
views.
9.1. Overview
In addition to being displayed, tags can also be saved in a log file for subsequent analysis (e.g. as
temperatures, speeds, or states such as Motor Off).
Acquisition mode = On change
If a process tag needs to be logged in the background, even when it is not permanently
displayed on the HMI device, the acquisition mode of the tag must be set to "Cyclic
continuous".
With the Comfort Panels, in conjunction with the Siemens HMI memory cards, it is
guaranteed that the data on the SD card in the "Data" slot is safe even if there is a power
failure, if a Siemens HMI memory card is inserted in both slots.
It is therefore advisable to store logs and other user data on the SD card!
Tags
External tags
Acquisition of process values of the connected automation system (access to a memory
address)
Internal tags
Values within the HMI device
Circular log
When the configured log size has been reached (log is full), the oldest entries are overwritten.
Display system alarm when (log with system alarm depending on fill level)
When a configurable level (e.g. 90%) has been reached, a system alarm is triggered. When the
configured log size has been reached (log is full), the oldest entries are overwritten.
Trigger event when (log with "Overflow" event depending on fill level)
When the log is completely full, the "Overflow" event is triggered. A function list can be configured
for this event. The oldest entries are then overwritten again.
e.g. to copy logs prior to overwriting them
Create log
>> Project tree > HMI device > Historical data > Data logs tab
Clicking on an empty row in the table inserts a new log into the configuration.
>> Inspector window > Properties + Properties tab > Start mode
Characteristics at runtime start
Log can continue to be written or deleted
Alarm logging is initiated immediately or only after execution of the system function
"StartLogging"
>> Inspector window > Properties + Properties tab > Logging method
Log type
Contents of log entries
with alarm text; otherwise no logging of alarm texts, only alarm number
Assign logs
Following creation of the data log, the logs must be assigned to the tags.
>> Project tree > HMI device > HMI tags > Logging tags tab
Select tag
and then double-click Add new and the logging property for this tag is enabled. The data log and
the acquisition mode (if required, also the logging cycle) can now be assigned.
Logging of values can be further limited so that only values within/outside a configurable range
are saved in the log.
>> Inspector window > Properties + Properties tab > Deadband for logging
Variable or
constant
limits
Activating or
deactivating
Logged values of tags can be graphically displayed on the HMI device using a trend view.
The trend view shows the current or logged values within a particular time window.
When displaying data logs, the operator can shift the time window on the HMI device to view the
required information from the log.
The log view is not updated automatically.The contents of the log are displayed
statically when the screen is selected, although logging continues in the background. The
current log content is only shown after selecting the display again.
The assignment of values to the trend view is based on trend view properties
>> Inspector window > Properties + Properties tab > Trends
Several trends can be output in a view regardless of where they are stored (in the same log or in
different logs).
The source of the value is then set when defining the trend.
To improve clarity when displaying multiple trends, these can be assigned different line types
Buttons
>> Inspector window > Properties + Properties tab > Toolbar
When displaying logs, these must be activated, otherwise the user can only see the section of
displayed values and not move the display range.
When displaying real-time values, these are only necessary when the number of values in the
trend exceeds the displayed time (Time axis).
X axis
This must be adapted according to the displayed values.
>> Inspector window > Properties + Properties tab > Time axis
Y axis
This must be adapted to the displayed values.
>> Inspector window > Properties + Properties tab > Left value axis
>> Inspector window > Properties + Properties tab > Right value axis
A Y axis can be configured on the left and right. When displaying more than one trend, it is also
possible to set two different scales.
When the trend view is inserted, a standard width and sequenz is set for the columns of the table.
These can be adapted individually.
Task
Create the "Speed" log in which the values of the setpoint and actual speeds are saved
A circular log with 500 entries is adequate
Displaying the data log
Trend view in the "Trends" screen
Procedure
>> Inspector window > Properties + Properties tab > Left value axis
Set the end of the value axis to 1400
Set the length of the axis label to 4
>> Inspector window > Properties + Properties tab > Right value axis
Set the end of the value axis to 1400
Set the length of the axis label to 4
>> Inspector window > Properties + Properties tab > Toolbar
>> Inspector window > Properties + Properties > Appearance
Enable the option "Show ruler"
>> Inspector window > Properties + Properties tab > Table
Enable the option "Show value table"
Number of rows in the value table = 2