T315H-07 Historical Data Collection - RevE
T315H-07 Historical Data Collection - RevE
TABLE OF CONTENTS
Chapter 7 - 1
T315H-07 Historical Data Collection - RevE
7.1.1 Objectives
On completion of this chapter you will be able to:
• Set up the history source
• Describe how historical information is collected
• Configure log templates
• Configure logs
7.1.2 Legend
> Indicates when you go from one menu to a sub-menu
Italic Indicates object and file names
“ “ Indicates dialog box buttons, tabs, menus etc.
Bold Indicates important topics
Indicates start/explanation of student activity
Chapter 7 - 2
System 800xA Training
7.2.1 Overview
The 800xA system supports a full array of historical and reporting functions. Many of
these functions such as archiving require the Information Manager software. However,
basic historical collection is performed by the Basic Historian in the Connectivity
Server and so it is available as a base feature of System 800xA.
If Information Manager is installed in the system, it gets its data from the
Connectivity Server’s basic historical logs using the OPC’s HDA standard protocol.
This protocol, unlike the DA protocol, can get multiple values for the same point with
one request. If the Information Manager machine is off line for a while, there is no
loss of data because it can retrieve the whole time period from the Connectivity Server
when it comes back on line.
Trend displays
Aspect Workplaces
Server (Clients)
Client/Server Network
Control Network
Controllers
The Connectivity Server is usually redundant so it is unlikely that data will be lost due
to a failure. Both Connectivity Servers are always collecting the data so if one is off-
line, it will back fill from the other when it returns to service.
The data collection is done using the OPC DA standard but the Basic Historian also
has the ability to collect data through some proprietary protocols such as the AC 400
Controllers TTD logs.
Chapter 7 - 3
T315H-07 Historical Data Collection - RevE
Data Source
LOG
Storage Interval
t
0s 10s 20s 30s 2’592’000s
or
30 days
Storage Size
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.
The collections of historical data for tags in 800xA are called “property logs”. This is
because we are logging a property of an OPC item on a periodic basis. For example in
a PID loop, the signal for the set point, process variable, and control output are all
individual properties.
Chapter 7 - 4
System 800xA Training
OPC
LOG 1
Storage Interval
t
0s 10s 20s 30s 60s 2’592’000s
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).
Chapter 7 - 5
T315H-07 Historical Data Collection - RevE
Library Structure
Log Configuration
WHAT IS LOGGED
Default log templates are provided both for trend logs provided by the 800xA Basic
Historian and by the Information Management option.
Chapter 7 - 6
System 800xA Training
The situation is similar to other service set-ups. The Basic History service is defined in
the Service Structure. This service may serve one or more History Service Groups.
We will have additional service groups if there are multiple Connectivity Servers
whether they are for AC 800M, Harmony, or other connectivity types.
The Basic History service gets installed and configured automatically during system
creation. Unless further service groups are required there is no work to be done in the
Service Structure. If we have redundant Connectivity Servers, there will be two
service providers in the Basic service group.
Chapter 7 - 7
T315H-07 Historical Data Collection - RevE
2. Add an aspect of type History Source to the Control Project and name it History
Source.
4. Select the service group Basic from the list of the available service groups. This
service group is defined in the Service Structure > Basic History > Basic as
explained above.
The history source is now configured. All objects and child objects of the Control
Project object are able to use this history source.
Chapter 7 - 8
System 800xA Training
2. Mark History Log Templates and select “New Object” from the context menu.
Create a new library for your own templates.
Chapter 7 - 9
T315H-07 Historical Data Collection - RevE
5. Create a new Property Log template by clicking the “Add” button. The first log
must always be a direct log.
Chapter 7 - 10
System 800xA Training
6. Select the tab card “Data Collection” and specify how to collect data.
Storage Size
We can specify the amount of data to store in either number of points or length of
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.
Chapter 7 - 11
T315H-07 Historical Data Collection - RevE
7. Select the tab card “Log Definition” and give a new name to the log.
Taking a look at the “Data Collection tab” of the second level of the hierarchical log,
we can decide how to reduce the resolution of the data. The Aggregate entry has
many selections from average to standard deviation, summation, interpolation and
many others.
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.
Chapter 7 - 12
System 800xA Training
Typically Log Configuration aspects are placed on the objects in the Control
Structure to collect data from a specific tag (instance). We will see later in this
section that for certain type of tags it also makes sense to place a Log Configuration
aspect in the Object Type Structure.
2. Add a Log Configuration aspect to the instance and give a proper name.
Chapter 7 - 13
T315H-07 Historical Data Collection - RevE
3. Select the “Config View” of the Log Configuration aspect. Click onto the button
“Add Property Log” to create a new log.
Must be checked
5. Click onto the “OK” button. Click “Apply” to close the “Main View” of the Log
Configuration aspect.
6. To implement the log click “Apply”. The log is created in the server and the
sampling is started immediately.
NOTE! We can have more than one property log configured even
for the same property.
Chapter 7 - 14
System 800xA Training
Follow the same procedure as explained above to create the Log Configuration aspect.
It is then important to define the Log Configuration aspect as “Copy to all instances”
in the Object Type Definition aspect .
Chapter 7 - 15
T315H-07 Historical Data Collection - RevE
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 box for the attribute must be checked. If the
box is unchecked the default value is displayed. The default value can be a property
name or a value, depending on what is specified in the Control Connection aspect.
Engineering Units are inherited from the source but can be overridden.
Normal Maximum / 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 is 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.
Chapter 7 - 16
System 800xA Training
Note that this indication will always show “History Source not specified” in the
Object Type Structure, but it should indicate “green” on the instances.
The “Property Log” tab displays log information. The Data Size is the size of the
property log on disk. It is the sum of the size of all logs. The size of each log file is the
sum of the file header and the data storage size.
Chapter 7 - 17
T315H-07 Historical Data Collection - RevE
Chapter 7 - 18
System 800xA Training
By right-clicking over the list of log configurations, a menu will be displayed where
you can choose to enable, disable, delete or open log configurations. You can also
choose to run auto-correct if they have not passed the consistency check.
Chapter 7 - 19
T315H-07 Historical Data Collection - RevE
F Exercise 7.1
Chapter 7 - 20
System 800xA Training
Chapter 7 - 21