T306-10 Excel Data Access - RevE
T306-10 Excel Data Access - RevE
TABLE OF CONTENTS
Chapter 10 - 1
T306-10 Excel Data Access - RevE.doc
10.1.1 Objectives
On completion of this chapter you will be able to:
Read data using Excel
10.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 10 - 2
System 800xA Training
10.2.1 Overview
Data Direct (Excel Data Access) is an add-in for Microsoft Excel designed to retrieve
data (real-time data, historical values, lab data, batch information, and event
information) from System 800xA.
This functionality is one of the basic system functionalities, although it is part of the
Information Management software package. This means that it can be installed along
with the core system without installing IM, and that it doesn’t require additional
licensing. Nevertheless when installed in systems with IM some of its features are
enhanced (data access from non 800xA nodes, extended amount of historical values,
etc).
NOTE! Data Direct can run in any system node.
Chapter 10 - 3
T306-10 Excel Data Access - RevE.doc
Excel Data Access provides the ability for ad-hoc queries and simple reports.
Complex reports should consider the use of Open Data Access (ODA).
Chapter 10 - 4
System 800xA Training
Select Add-ins from the pane on the left. Click the “Go” button in the right pane.
Chapter 10 - 5
T306-10 Excel Data Access - RevE.doc
Use the Windows file chooser dialog to find and select the “DataDirect.xla” file
located in:
“%ABB_ROOT%InformIT\DataDirect\Bin”
Chapter 10 - 6
System 800xA Training
Chapter 10 - 7
T306-10 Excel Data Access - RevE.doc
Click “OK” in the Trust Center dialog. Click “OK” in the Excel Options dialog
Chapter 10 - 8
System 800xA Training
See Results
Chapter 10 - 9
T306-10 Excel Data Access - RevE.doc
10.2.6 Login
To obtain a runtime license, log on to a data server. The login procedure connects the
Excel spreadsheet to a specified host data server for all dialogs except the Industrial IT
Process Values, History Values, Alarm/Event dialogs. For the Industrial IT Process
and History Values dialogs, logging in gives full access to all aspects and objects
represented in the connected aspect system. One runtime license is taken up for each
user that logs in to the data server. DataDirect provides two methods for logging in to
support license use.
Log in on an ad-hoc basis: Automatically disconnects when the current dialog is
closed to help minimize the time that a runtime license is occupied.
Log in on a perpetual basis: Stays logged in until you choose to log off
regardless of how many dialogs are opened and closed.
Chapter 10 - 10
System 800xA Training
To disconnect from the data server, press the “Disconnect” button in the Login dialog,
or exit Excel.
Chapter 10 - 11
T306-10 Excel Data Access - RevE.doc
Filter Options
Item List
The “Start Cell” input field defines the cell position where the result data will be
filled. If the “Insert” checkbox is selected, instead of filling the cells new rows will be
inserted.
The “Output” options are used for:
“Formula” = the destination cell will be filled with the function required to
retrieve the specified data. This means that if a calculation is executed the data
will be updated.
“Data Only” = the numeric value of the property at the moment of configuration
will be written in the cell, and it cannot be modified by a calculation.
Chapter 10 - 12
System 800xA Training
The “Item List” will show the available information for the selected object. The
contents of this list will change according to the data type:
1. Process Data will show every OPC property
2. Historical will show only the properties that are being logged by a Log
Configuration aspect
3. Alarm and Events Dialog will show only the Alarm & Event lists and alarm lines
NOTE! It is recommended to avoid using the “Get Current
Value” option, since it delays the population of the table.
Chapter 10 - 13
T306-10 Excel Data Access - RevE.doc
If a property is being logged using different logs they will be available to be chosen.
The “Retrieval Information” section defines how the historical data is going to be
treated before being added to the report:
“Raw Data” = only the first points in the time window will be included
“Interpolated Data” = the user can select a calculation algorithm (for example time
average) to process all the points in the time window and reduce them to the
amount of points defined by “Nr of Values”
If the “Start” and “End” times are static, the report will always show data from that
fixed time window. If they are dynamic the time window will be relative to the
calculation time, so the data will change for every calculation.
Chapter 10 - 14
System 800xA Training
The time span needs to be specified like the time window for historical data.
Chapter 10 - 15
T306-10 Excel Data Access - RevE.doc
In the following example the In.Value property of the object S01_LT1 was selected,
and in the output options the object name and timestamp were enabled.
Chapter 10 - 16
System 800xA Training
If an icon is not available on the tool bar, use the “View” tab on the Options dialog to
make it available
Chapter 10 - 17
T306-10 Excel Data Access - RevE.doc
Open the SQL Query dialog. To do this, click the “SQL” button, or choose DataDirect
> SQL Query from the menu bar.
Enter the query in the SQL Statement window.
It retrieves data via the Display Server of the IM. If configured properly, it can pick up
data from either the System 800xA platform or from external sources.
It has two independent methods to access data.
Forms that allow immediate one time data access
Functions that allow repeated access for reports
Real Time values
Chapter 10 - 18
System 800xA Training
History Values
Event Log
Chapter 10 - 19
T306-10 Excel Data Access - RevE.doc
Chapter 10 - 20