SQ-402 SCADA Add-In User Guide
SQ-402 SCADA Add-In User Guide
SQ-402
SCADA ADD-IN
USER GUIDE
Version 1.4
SQ-402 SCADA Add-In User Guide
www.survalent.com
FAX (905) 826-7144
Revisions
Version Description
1.0 Initial version.
1.1 Updated screen shots and document format.
1.2 Updated cover and logo.
1.3 Removed Chapter 6. For information on how to add excel reports to SmartVU please
refer to the Editors Online Help – How to Create a Pushbutton Report.
1.4 Updated all the screens and procedures to the updated SCADA Add-In feature.
SQ-402 SCADA Add-In User Guide
Contents
1 Introduction 1-1
SCADA Contents i
SQ-402 SCADA Add-In User Guide
1 Introduction
This document describes how to use the SCADA add-in for Microsoft Excel.
The SCADA add-in allows PC users on the network to import both current and historical SCADA data
directly into Microsoft Excel. The SCADA add-in uses the TCP/IP network protocol to forward queries to
the SCADA database server and return responses containing data back to the client.
In order to use the SCADA add-in, your PC must be running Windows NT, 2000, 2003, XP or Vista, and
your Microsoft Office package must be Office 2000 or later.
You must install the SCADA add-in on each PC that you intend to use.
Chapter 2 describes the installation procedure. The SCADA database server is already installed on your
SCADA host computers.
Chapter 3 describes how to import current data from the SCADA system.
Chapter 4 describes how to import historical data from the SCADA system.
Chapter 5 describes how to import other data tables from the SCADA system.
This chapter describes how to install the SCADA Add-In on your PC.
2.1 Setup
You can install the SCADA add-in from an install kit downloaded from Survalent’s web site. Depending
on your MS Excel version, you must install the appropriate 32 (x86) or x64-bit version of the software.
Click on the About Excel button to view the About Microsoft dialog which will indicate what version of
Excel you are running.
The installation procedure automatically enables the SCADA Add-In for Excel.
After the SCADA Add-In application is installed, you'll see a Survalent menu when you click on the Add-
ins tab.
You can access this dialog by going to File>Options>Add-ins. Select COM Add-ins in the Manage field
(located at the bottom of the window) using the drop-down menu and then click Go.
This step unloads the add-in and frees up memory, but does not remove it from your computer.
If your PC has already been networked to the SCADA host computers, you can skip this section.
For the PC to be able to connect to the SCADA host computers via the LAN, you have to define the IP
addresses of the host computers to the PC. You do this by creating and editing a file called HOSTS (no
extension). Windows comes with a HOSTS.SAM sample file that you can use as a model. The
content of the sample file is shown in Figure 2-5.
127.0.0.1 localhost
Make a copy of HOSTS.SAM in the same directory and call it just HOSTS (no extension). Edit it and add
the node names and IP addresses of your two SCADA host computers. Just add them to the bottom of
the list, under localhost. For example:
127.0.0.1 localhost
10.0.0.60 HOSTA
10.0.0.61 HOSTB
If your HOSTS file is correct, you should, after rebooting, be able to ping the host computers from a
Command Prompt window, as in:
C:\WINDOWS>PING HOSTA
C:\WINDOWS>
In the Connection Properties dialog that appears, enter the TCP/IP host names and a SCADA account.
The connection data need only be entered once for each spreadsheet (it's saved when you save the
spreadsheet).
You can now perform queries on the SCADA system. This is described in the following chapters.
2.3.1 Preferences
This dialog allows you to set your preferences for a connection to the SCADA host(s).
2.3.1.1 Language
Allows switching between Default English and Spanish for the entire Scada Add-in dialogs. An Application
restart is required to complete the language change.
This is especially useful for customers having multiple SCADA systems. If this feature is not used, they
need to reconfigure the connection every time they need to query a different SCADA System.
2.3.1.3 Timeouts
• Connection – This is the wait time for a connection with SCADA Server to get established. The
default is 5 seconds
3 Current Data
This chapter describes how to use the SCADA add-in to import current data.
Note: When a Point Data query is Added, it will be listed in the Queries window.
The following steps describe how to populate the Point Data Edit dialog.
2. Select the desired point table from the Table drop-down menu.
Note: Your choices of tables consist of AnalogPoints, StatusPoints and TextPoints.
3. In order to save the query, you have to specify the destination of the returned data (what location
of which worksheet). You can browse for the desired worksheet from the Name field under
Destination Worksheet.
4. To specify which points, you want considered for the query, either:
• Leave the “All Points” checkbox unchecked and use the Browse… pushbutton to browse
for the desired points.
5. Check the “Query On Open” checkbox if you want the query to be automatically executed when
the spreadsheet is opened.
6. Check the Column Heading checkbox if you want column headings to be displayed in your report.
8. Select the data fields that you want from the All Fields list by double-clicking on your selection.
9. For each data field, you can enter a caption in the Caption field to be used as the column
heading. (If you don’t enter a caption, the data field name will be used as the column heading.)
For example, the Value field will display as Status as shown in Figure 3-3.
Note: You can rearrange the order of the data fields by using the Up and Down buttons.
11. Click on the Criteria... button to specify selection criteria based on field values.
In the example of Figure 3-4, we selected the TransCount field name, the > operator, typed in a
value of 10, and then clicked on Add.
You can add multiple AND and OR clauses by using the Logical combo box.
12. After saving the query select the Get Data item from the Survalent menu.
When you save the spreadsheet and invoke it later, the queries contained in all of the sheets of the
spreadsheet are automatically executed (if you checked the “Query On Open” checkboxes).
Query results may be of variable length. Therefore, if you use the “Query On Open” option, the
spreadsheet should be saved with the contents cleared.
4 Historical Data
This chapter describes how to use the SCADA add-in to import historical data.
To create a new historical data query, click on the Historical Data... item of the Survalent menu. A
Historical Data dialog displays.
Click on Add to bring up the Historical Data Edit dialog where you can select the dataset, the points within
that dataset, and the time range of interest (either absolute or relative).
You can ask for either an absolute time range or a relative time range. In the example of Figure 4-2, we
are asking for the last hour's worth of samples.
A Condition Codes check box allows you to specify whether or not you want condition codes with the
sample values.
When you are done click on Ok, and then click on the Save button in the Historical Data dialog shown in
figure 4-1.
To generate the spreadsheet, select Get Data from the Survalent drop-down menu.
If you have the Historian feature, then al point changes are archived therefore any point may be used for
a historical query.
As displayed below, if you select None-External Historian then two additional fields display on the dialog:
• Browse – Allows you to select which points you want historical information for using the Drag-n-
Drop Points browser
Figure 4-3 Example of Additional Fields for External Historian Data Set
An example of the results of a historical data query, with condition codes, is shown in Figure 4-4 below.
The column headings of the sample columns consist of the point names (and qualifiers, if any). If you ask
for condition codes, they are returned in columns immediately beside the corresponding sample columns,
with the same point name column headings.
5 Other Data
This chapter describes how to use the SCADA add-in to import data tables other than those that contain
current or historical point data.
2. Select a table.
Result: The fields become activated
4. Select the data fields that you want from the All Fields list by double-clicking on your selection.
5. For each data field, you can enter a caption in the Caption field to be used as the column
heading. (If you don’t enter a caption, the data field name will be used as the column heading.)
Note: You can rearrange the order of the data fields by using the Up and Down buttons.
13. Click on the Criteria... button to specify selection criteria based on field values.
Note: You can add multiple AND/OR clauses by using the Logical combo box.
14. After saving the query select the Get Data item from the Survalent menu.
Figure 5-2 shows an example of a query that imports the Alarm Format table.