Chapter 17 Historical Data Collection and Trend Displays: 800xa Minerals Training
Chapter 17 Historical Data Collection and Trend Displays: 800xa Minerals Training
TABLE OF CONTENTS
Chapter 17 Historical Data Collection and Trend Displays........................................................................................................... 1
17.1 General Information........................................................................................................................................................... 2
17.1.1 Objectives ................................................................................................................................................................... 2
17.1.2 Legend ........................................................................................................................................................................ 2
17.2 800xA Architecture for Historical Functions..................................................................................................................... 3
17.2.1 Data Flow.................................................................................................................................................................... 3
17.2.2 Log Hierarchy............................................................................................................................................................. 5
17.2.3 Configuration Overview ............................................................................................................................................. 6
17.3 History Service .................................................................................................................................................................. 7
17.3.1 History Source Aspect ................................................................................................................................................ 7
17.4 Log Templates ................................................................................................................................................................... 9
17.4.1 How to Create a Direct Log Template ........................................................................................................................ 9
17.4.2 Hierarchical Log Templates...................................................................................................................................... 12
17.5 Log Configuration ........................................................................................................................................................... 13
17.5.1 How to Create a Log Configuration.......................................................................................................................... 13
17.5.2 Check the Data Size.................................................................................................................................................. 15
17.5.3 Presentation Settings................................................................................................................................................. 15
17.6 Reading Log Contents .................................................................................................................................................... 17
17.6.1 Check the History Source ......................................................................................................................................... 17
17.7 Trend Displays................................................................................................................................................................. 18
17.7.1 How to Create a Trend Display ................................................................................................................................ 19
17.7.2 How to Setup a Trend Display.................................................................................................................................. 20
17.8 Operation ......................................................................................................................................................................... 23
17.8.1 Tool Bar .................................................................................................................................................................... 23
17.8.2 How to Change the Time Scope ............................................................................................................................... 24
17.8.3 Table Part.................................................................................................................................................................. 25
17.8.4 Additional Table Columns........................................................................................................................................ 26
17.8.5 XY Plot ..................................................................................................................................................................... 27
17.8.6 Moving Trend Data to MS Excel.............................................................................................................................. 28
17.9 Trend Templates .............................................................................................................................................................. 29
17.9.1 How to Create a Trend Template.............................................................................................................................. 29
17.9.2 How to Setup a Trend Template ............................................................................................................................... 30
1 / 32
Configure logs
17.1.2 Legend
2 / 32
<>
Bold
What is a log?
A log is a collection of time stamped (tagged) data. The process or system object from
which the data originates is called the data source.
Data Source
LOG
Storage Interval
2592000s
or
30 days
Storage Size
3 / 32
Logging can take place as fast as once per second. There is almost no limit to the
number of logged data items. But there is always a balance between the rate of logging
and the number of data points to be logged if both are high then the network may be
considerably loaded.
Trend displays
Workplaces
(Clients)
Aspect
Server
Client/Server Network
Historical data
Connectivity
Server
Control Network
Controllers
Field bus
Field devices
The data collection is done using the OPC DA standard but the Historian also has the
ability to collect data through some proprietary protocols such as the AC 400
Controllers TTD logs.
4 / 32
Data Source
Storage Size
OPC
LOG 1
Storage Interval
t
0s 10s 20s 30s
60s
2592000s
or
30 days
Aggregate
LOG 2
t
0s 60s 120s 180s
180 days
Example
LOG1 is a direct log, logging data from the OPC server every 10 seconds.
LOG2 is a hierarchical log, logging the time average of the samples from LOG1 over
a 60 second time period (6 samples from LOG1).
5 / 32
Library Structure
Log Template
HOW DATA IS LOGGED
Control Structure
Log Configuration
WHAT IS LOGGED
6 / 32
The situation is similar to other service set-ups. The History Service is defined in the
Service Structure. This service may serve one or more History Service Groups.
The Basic History Service gets installed and configured automatically during system
creation. Unless further groups are required there is no work to be done in the Service
Structure.
For logging from data inside objects in the Control Structure, it is usual to set up the
history source as an aspect of the Control Network, and then all objects below it will
use this history source.
7 / 32
The History Source is now configured. All objects and child objects of the Control
Project object are able to use this History Source.
8 / 32
2. Mark History Log Templates in the Object Tree and select New Object from the
context menu.
3. History Log Template Library is just a container of log templates (like a folder).
You may create a new object of type History Log Template.
9 / 32
5. Create a new Property Log Template by clicking the Add button. The first log
must always be a direct log.
10 / 32
6. Select the tab card Data Collection and specify how to collect data.
We can specify the amount of data to store in either number of points or length of
time.
We can specify the resolution of the collection in terms of a minimum and maximum
time for taking a sample, and we can specify an exception deviation. This allows some
data compression by not collecting samples that have not changed significantly from
the previous. If we leave the Exception Deviation at 0.000%, samples will always be
collected at the minimum time.
The Min Capacity and Max Capacity figures at the bottom of the tab show the effect
of the decisions we make for storage interval and size based on whether data is
collected at the minimum or maximum resolution.
The Aggregates and Bad Data Quality Limit entries at the top are unavailable for a
Direct Log. We will see their use in the next section.
7. Select the tab card Log Definition and give a new name to the log.
NOTE!
8. Apply your changes by clicking onto the Apply button and the new template is
created.
11 / 32
The Bad Data Quality Limit specifies what percentage of the samples can be bad and
still create an acceptable aggregate. If more than this percentage is bad, the aggregate
sample will be marked bad in the hierarchical log.
12 / 32
13 / 32
4. Click onto the button Add Property Log to create a new log.
5. Select a property from the list and select a template.
6. Click onto the OK button. Click Apply to close the Main View of the aspect
Log Configuration.
There is no reason we cannot have more than one property log configured even for the
same property.
14 / 32
All values are used to display the trace in a Trend Display. These values can be set in
either of:
15 / 32
The above listed are in override order. For example you can override a value set in the
Object Type by writing a value in the Object Instance. Another example is a value set
in the Object Type, the Object Instance for presentation attribute or the Log can be
overridden in the Trend Display.
To override a presentation attribute the check box for the attribute must be marked. If
the check box is unmarked the default value is displayed.
Engineering Units are inherited from the source but can be overridden.
Normal Maximum and Normal Minimum are scaling factors, used for the scaling of
Y-axis in the Trend Display. The values are retrieved from the source but can be
overridden.
The Number of Decimals are retrieved from the source but can be overridden.
The Display Mode can be either Interpolated or Stepped. Interpolated is
appropriate for real values, Stepped for binary.
16 / 32
Logging is working
Bad news
Good news
17 / 32
Trace Area
Tool Bar
Trend Table
Any OPC property can be logged. That means more than just typical process data can
be displayed in a trend display. Diagnostic and system data can also be trended, but of
course the most common trends will be process data.
NOTE!
18 / 32
7. Add a Trend Display aspect to any object by right clicking and selecting New
Aspect. The aspect category is Trend Display.
8. Open the Config View of a trend display aspect and disable the check box
Default. Select the Trend Template from the drop down box.
19 / 32
11. Click the check box to at the far left of each row are to activate or deactivate the
trend display for that object.
This allows the operator to temporarily show only one trace for the sake of clarity
in the case of overlapping lines. Un-checking the box does not deactivate
collection of the data. It only clears the trace from the display.
20 / 32
13. Select the relevant aspect, which is in most cases Function Block or Control
Module.
14. Click on the Property field and select a property from the list. If no aspect is
selected the drop-down menu includes all available properties on the object,
otherwise only the properties from the selected aspect.
If necessary you can expand the column. Move with the mouse to the right column
end till the mouse cursor changes its design. Then click left and drag the column
as large as you want (similar to the handling in Microsoft Excel).
NOTE!
21 / 32
15. Select the Log Name. A drop-down menu provides a selection for several
sources for the values in the display.
It shows all logs defined by the Log Configuration Aspect for this particular
object. If there is no Log Configuration aspect on the selected object, the user can
select TRIM and SEAMLESS (the TRIM log is always available).
Once we have created historical collections, there will be multiple choices for the
source of the data. We can have real time trending as well as trending maintained
by the Connectivity Server and additional history maintained by the Information
Manager.
We could select one of these sources for the data, or we can set the selection to
SEAMLESS. This will instruct the system to find all possible sources and plot
them as a seamless set of data. It will be indistinguishable to the user where each
part of the data is coming from
NOTE!
16. The trend will now be visible. Click into the field High Range and set it.
17. Click onto the Save button to save your changes.
22 / 32
17.8 Operation
17.8.1 Tool Bar
The Tool Bar contains buttons for frequently used functions to operate the Trend
Display.
The Show/Hide Table button shows or hides the Trend Table. When the table is
hidden, it is replaced by a small table, showing trace colors and logged object in
the form object:property,log name. This state is part of the configuration and can
be saved with the Save button.
The Block/Unblock button toggles the updating of the graphical view. A pressed
button means the view updating is paused. By clicking the button again the view is
unblocked.
Use the Move Scope left/right buttons, to pan the graphical view in the selected
direction. The buttons move the scope by 25% of the current time scope.
Zoom in/out buttons let you zoom in or zoom out around the center point of the
scope. Zooming out increases the scope by 50%. Zooming in decreases the scope
by a third.
There is a vertical green line which is called the ruler. It can be moved anywhere on
the display by left clicking on point in time.
Move Ruler: Only the applicable buttons are available, depending on selected
ruler. These buttons moves the ruler left, right, up or down.
23 / 32
The Magnifying glass button toggles the magnifying glass mode. It will set up the
magnifying glass area with a default start time and end time, using 35 percent of
the area for the magnifying glass. It is very useful to analyze a process upset.
24 / 32
25 / 32
Description
Log Name
A drop-down menu shows logs defined by the Log Configuration Aspect. If there is no
Log Configuration aspect on the selected object, the user can select TRIM and
SEAMLESS.
Filter
The default filter value is zero (0), indicating no filter. The value must be between zero
(0) and one (1), not including one. Only values above 0.5 have a noticeable effect.
The filter works as a low-pass filter, effecting noise reduction for the trace. The visible
result is that the trace appears smoother. The closer this value is to one (1), the
stronger this effect will be. With a value very close to one (1), the trace will appear
almost flat. See example below.
Time Offset
The time offset used for the trace. The default is zero (0). The format used by the cell
is yy:mm:dd HH:MM:SS.
If this offset is positive, the trace is shifted right. If the offset is negative, the trace is
shifted left.
Style
To change the style, select from the drop-down menu of styles. The available styles
are shown below.
In addition to these, there is Normal. If this style is selected, the actual style depends
on what is specified for the display mode presentation attribute.
26 / 32
17.8.5 XY Plot
An XY-plot is a trend that use a trend variable instead of time on the X-axis. It draws
one signal as a function of another signal (instead of plotting it as a function of the
time).
Use the column Pair Property to define an index used for pairing XY plot.
27 / 32
Now you can paste the selected data to an external application (for instance, Microsoft
Excel). Go to the external application and use the Paste function to copy the data. If
the Trend Display is zoomed out you can not be sure to get the sampled data, instead it
might be interpolated.
An example of captured data being pasted into Microsoft Excel is shown below.
The columns display time, value and status word for each point in the trace.
28 / 32
.
Just as the case of alarm lists, there are templates in the Library Structure for trend
displays. We can modify the defaults or create new ones. As in the case of alarm lists,
it is much better to leave the defaults alone and create new ones in order to avoid
losing custom work when upgrading software revisions.
There are actually two types of objects shown, a Trend Template and a Trend
Template Library. The Library is just a container for the templates. Rather than add to
the existing library, which is called Default Trend Templates, it is better to create a
user library to add all the custom templates to.
21. Mark the Object called Trend Templates and create a new child object of category
Trend Template Library.
29 / 32
22. Mark the new library object and create a Trend Template object as a child.
In the default templates we have seen, there was only one graphical area, and all
the traces appeared in that area. It is possible to have multiple separate graphical
trace areas defined and to determine how much space is devoted to each.
We can also determine what time scopes will be available in the display. The one
with the check mark is the one that will come up when the display is called.
If we are creating an XY plot template, we can select a picture (jpg, bmp, wmf,
gif, etc) to appear as the background for the plot. A good use for this capability is
to have an ideal curve as the background picture. The actual curve is then plotted
against this ideal. Or we could have tolerance limits as the background picture.
30 / 32
25. The color tab is used to set the number of traces, assign the traces to trace areas
and set colors.
In addition to selecting the colors, we can configure the grid lines. We can
determine the resolution of the grid and whether the minor divisions are full lines
or just ticks along the edge.
One thing to notice is that each trace has a heading called area. This is the
graphical area in which the trace will appear if we configure more than one. By
default all traces are selected in area one. Just because we configure more than one
area, it doesnt mean any traces will appear in the second area unless we change
the assignment. This can be changed by clicking on the number.
31 / 32
26. The Columns tab is just like the alarm list column selector.
If we modify the trend template at some later point, the changes will not automatically
update in the trend displays that are based on that template. We will have to reselect
and apply the template to the display using Config View again.
32 / 32
17.1.1 Goals
Perform the necessary configurations to log process data.
Create a history source aspect on the Control Structure and define a template
specifying how data is to be collected. Then use a Log Configuration aspect on our
tank level and temperature and verify that data is being collected.
17.1.2 Legend
<>
Bold
1/4
2/4
Rename the Basic History Service Group from the default name of Basic to
AC800_BasicHistory.
Create and configure a new History Source aspect in the Control Structure. Configure
the Service Group setting to the AC800_BasicHistory.
Create a new History Log Template Library object in the Library Structure. Create it
under the History Log Templates object. Name your library Sxx_Log_Templates
Create a new History Log Template object in your Sxx_Log_Templates library and
name it Sxx_Logs_1s1d
3/4
4/4
Log the temperature TT1 and the level LT1 using the new template.
Verify that your logs are collecting good-quality data and that the data is correct.
17.2.1 Goals
Implement a Trend Display which uses a predefined trend template.
Familiarize yourself with the operation of the trend display.
17.2.2 Legend
<>
Bold
1/3
2/3
Configure the trend display to display the Sxx_LT1 and gTemp.Value values.
Fill the tank and heat up the content either with manual operations or using the
automatic sequence and observe the trend display.
Hint: adjust the display span and the date and time until the display area contains the
data you want copied.
3/3
17.3.1 Goals
Create a Trend Template to define the appearance and behavior of your trend display.
17.3.2 Legend
<>
Bold
1/3
2/3
Create a new Trend Template Library object in the Library Structure and name it
Sxx_TrendTemplates.
Create a new Trend Template object within this library and name it
Sxx_ProjectTrend.
Change the Sxx_Reactor trend display to use the new trend template.
3/3
17.1.1 Solutions
1. Select the Log Template aspect. In the preview pane, right-click Property Log in
the Property Log Template window and select Add Log from the context
menu.
2. The source should default to OPC and select the Direct log type.
3. Give this particular log a meaningful name on the Log Definition tab.
1/4
4. Select the Data Collection tab and make the appropriate settings and click the
Apply button.
1. Select the direct log just created in the Property Log Templates window, rightclick and select Add Log from the context menu. Accept the default log type
Hierarchical and give the new log a meaningful name.
2. Define the data collection as desired. Here we are storing 1 minute averages.
2/4
1. The new log is added to read data from the direct log just as the average log does.
Configure the settings accordingly.
Log the temperature TT1 and the level LT1 using the new template.
1. Add a new Log Configuration aspect to your Sxx_ReactorApp object in the
Control Structure.
2. Select the Log Configuration aspect in the aspect pane and make sure that the
status icon in the lower left corner is GREEN indicating that the lg has found a
History Source aspect for this object higher up in the tree. Locate the
gTemp.Value property and double-click it.
3/4
3. The New Property Log dialog will automatically select the correct data type. In
the Template drop-down selector, select your Sxx_Log_1s1d template.
4. Perform the same procedure on the Sxx_LT1 object in the Tank program in
the Control Structure.
4/4
17.3.1 Solutions
1. Type 30 Minutes into the Time Scope edit box and click the Enter button
2. Place a checkbox in the 30 Minute entry in the list of available time scopes.
1/3
1. On the Colors tab, click on the color in the Background color field.
2. Select the background color of your choice. In this exercise example, we will use
a black color.
2/3
1. Place a check box in each column that you want to be visible on the screen. Use
the column layout section by clicking and dragging a column to the desired
location for the position you want it in and adjusting its width as desired.
Change the Sxx_Reactor Trend Display to use the new Trend Template
1. Navigate to the Sxx_Reactor object in the Functional Structure and right-click
the Trend Display aspect and select Config View from the context menu
2. Select your new Trend Template
3/3