DB-405 Report Database Editing
DB-405 Report Database Editing
DB-405
SCADA REPORT DATABASE
EDITING GUIDE
Version 1.7
DB-405 Report Database Editing Guide
www.survalent.com
FAX (905) 826-7144
It is assumed that you have some background knowledge about SCADA systems.
DB-405 Report Database Editing Guide
Revisions
Version Description
1.0 Initial version.
Updated figures, added more detail and examples in Generic Reports.
1.2
Added Operation Reports, Outage Reports, and Historical Data Reports.
Updated figures. Added Event reports, Tag reports, Operation Log reports and
1.3 Worldview reports. Added XML and XLS output file formats, and e-mail and FTP
server destinations.
1.4 Added details of data formats available in Generic reports.
Updated document with new screens and functionality.
1.5
Document reviewed by Ilija Mitrov.
SCADA Revisions
DB-405 Report Database Editing Guide
Contents
1 Introduction 1-1
SCADA Contents i
DB-405 Report Database Editing Guide
SCADA Contents ii
DB-405 Report Database Editing Guide
1 Introduction
This document describes how to configure your Windows SCADA system Report Database to define and
schedule your reports.
Chapter 2 describes the Report Scheduler. This is where you define the times and frequencies for
automatically generating your reports. Scheduled reports can be directed to any properly installed
Windows printer accessible to the SCADA hosts.
Using the STC Explorer, you can define several different basic types of reports:
• Generic Reports
• Operation Reports
• Outage Reports
• Historical Data Reports
• Event Reports
• Tag Reports
• Operation Log Reports
• Worldview Map Reports
Chapter 3 describes generic reports. These reports are tabular reports with user-selected data items and
user-specified layout. They may be used to extract data from any file in the database.
The other types of reports produce specialized information about specific system features. Each has a
limited capability for customization.
Chapter 5 describes the Outage Reports. Both of these reports are specific to the Operations and Outage
Accounting program.
NOTE: This program is an option and is not included in the baseline SCADA license. A separate license
is applicable for the Operations and Outage Accounting program.
Chapter 7 describes Event reports which are built-in specialized reports that are part of the Event Data
Recording feature.
Chapter 8 describes Tag reports which are built-in specialized reports that show currently applied tags.
Chapter 9 describes Operation Log reports which are built-in specialized reports that shows list of
operations made within a specified time period.
2 Scheduling Reports
The report Schedule allows you to automatically generate any of the reports you have defined, at specific
times. The reports may be produced on any Windows printer known to your SCADA host.
2.1 Introduction
The Schedule function (found under the Reports branch in the STC Explorer) consists of a list of user-
defined report schedule items. Each item names a defined report and the printer that the report is to be
sent to. It also includes a definition of the scheduled time(s) to produce the report. The report-generating
program in the SCADA system looks at these schedule items, and determines when to generate the
reports.
A particular report can be identified in more than one Report Schedule item. This allows you to produce
different instances of the same report on different schedules. For example, you might produce one
instance of the report at each shift change on the printer in the control room. A second instance of the
same report might also be generated on a printer in another office, but only once each day.
Note: Report Schedules do not make use of the Schedules found under the System branch of the STC
Explorer.
Depending on your choice, the rest of this section of the editor will vary in its
appearance to give you appropriate choices for other destination parameters.
Table 2.3-1 Report Scheduler Data Fields Descriptions—General continued
Field/Button Description
Destination Printer
For printer destinations, this drop-down list allows you to choose any of the
printers known to the system. These are the same printers that are installed
under Windows on your system. They may be connected directly to the
computer, or accessible via the network.
These are typically not the same printers as the ones that are defined in the
System branch of STC Explorer. Those are event loggers, rather than report
printers. The printers that you want to use for reports are the ones you see in
the Windows Control Panel.
Note: If you are editing on a workstation, you will see the Windows printers
installed on your workstation on the drop-down list. Take care to choose a
printer that is also installed under Windows on the SCADA host (you should
check the Windows Control Panel on the host to make sure). If you select a
printer known only to your workstation, the report will not be able to print when it
is generated by the SCADA host.
e-mail
For e-mail destinations, this drop-down list allows you to choose one of the
SMTP servers defined in the System->Internet->SMTP Servers branch of the
SCADA Explorer. See the SM400 System Manager’s Guide for details on
defining SMTP servers.
FTP
For FTP destinations, this drop-down list allows you to choose one of the FTP
servers defined in the System->Internet->FTP Servers branch of the SCADA
Explorer. See the SM400 System Manager’s Guide for details on defining FTP
servers.
Last Error The status (result) of the most recent printing of this report.
Last Print The time and date of the most recent printing of this report.
3 Generic Reports
This chapter describes the creation and modification of generic reports using the STC Explorer.
3.1 Introduction
The definition of a generic report describes a set of information you want to extract from the database,
usually for printing. The report is usually automatically printed on a schedule (as discussed in chapter 2).
You may preview your report in a window, or print it manually, as described in sections 3.6 and 3.7.
The content of the report is defined by specifying which table in the database you are interested in, and
which fields you want from that table. You can further qualify which records in the table will appear in the
report, in order to include only the desired items.
A generic report can be thought of as a list of records from the database. You can choose which
database table the data will be taken from, whether particular records will be included in the report or
discarded, and what data from the included records will appear on the list.
You can specify a header for each page, and a text caption for each data column in the list. Records
listed in the report can also be sorted or grouped in a variety of ways.
To define a report, navigate to the Reports branch in the STC Explorer and click on Generic. All the
generic reports display in the right window pane.
To create a new report, select New from the drop-down menu. A blank Generic Report dialog displays
Note: Do not delete a report that is still referred to by a Report Schedule. Remove the schedule first.
The dialog opens on the tab labeled General, whose fields are described below.
Since each table in the database is structured differently, this step determines
what you will see on the other pages of this editing dialog. Therefore, once you
make a selection here, and move to one of the other pages, you will not be
Table Name allowed to change the table selection for this report. If you have made an error in
choosing the table, you will have to delete this report, and create a new one.
In Table 3.3.2-1, you will find some examples of database tables that can be
reported, along with some of the data fields that would be of most interest for
reports. Although the list of fields in Table 3.3.2-1 is not complete, the drop-down
list in the report editor shows all fields for each table.
Here you specify the general text you want to see at the top of every page of your
report. You do not need to label each column of data at this point.
Header
Spaces and blank lines anywhere in the header are displayed just as you enter
them.
Select the orientation of the page for printing (portrait, or landscape). You may
choose <Default>, in which case the SCADA system will not set the orientation.
The printer will use its current default setting.
Orientation
Note: The Preview window (see 3.6) uses the settings of your default Windows
printer.
Header Choose the desired horizontal alignment for your header from the drop-down list
Alignment (left, right, or centered). All lines in the header will have the same alignment.
Export This button enables you to put the report out in different forms.
Preview This button allows you to see how the report displays.
For each item in the Report Columns list, you will want to specify how it is
formatted. Go to section 3.3.1 Format Windows for more details.
You must define each column you have included in the Report Columns list to determine how it should be
displayed or printed. To access the format window, double-click on any column in the list. The Format
Window displays.
The top of the window displays common format choices and the bottom of the window displays additional
format choices depending on the columns data type.
The following table describes the common format choices on the window.
You should also specify the Width of each data item when it is printed. This can
be thought of as the width of the column in which the data will be printed. If the
data is too long for the space you allow, it will wrap around within this column.
This number is not the number of characters, nor the actual physical size. It
Width, inch
should be thought of as a proportion of the total width of the page.
You may need to experiment a little, but start with a small number (say 5) for
your narrowest column, and choose proportionately larger numbers for any wider
columns you may have.
You can check this box, if you would prefer to specify the actual column widths
Fixed Width
you want, in inches.
Lastly, you can select how the data will be justified within the column space.
Alignment Choose to have it aligned on the left or right boundary, or to be centered within
the column.
The following section describes the specific format choices associated with the data type.
Integer
For some integer values you will want to “decode” the value of the field, in order to display some more
meaningful quantity. For example, any field that contains an ID of a record in another table such as the
ZoneID field. This field refers to a record in the Zone Groups table.
This can be handled by the Table and Field lists. For any desired fields in your
report, you can use the number that would have been printed as a Primary Key,
or “ID number”, to select an item in a different database table (the Reference
Table). Then you can select any field (the Reference Field) from that item, and
display the contents of that field instead.
Reference Table
In our example, this can be used to print the name or description of the tag type,
instead of the ID number. In the Report Column list, double-click (or right-click
and choose edit) TypeId. In the Format list, choose <Ref Table>. Once you
select the TagTypes table, the Field list will display all the fields available in that
table. Choose the Name or the Description field to display that text instead of the
TypeId number. You will also want to format this field appropriately.
Note: The Reference Tables list is not a special list. It contains all the same
database tables as you find in the main Table drop-down list on the General
page.
Double
The field is a double-precision floating point number. The number of decimal digits for numbers less than
1 and greater than 1 can be entered separately, which allows for higher precision for small numbers.
String
The field is a text string. The width (maximum number of characters displayed) and the alignment of the
text can be selected.
Date Time
The field contains a time and date expressed as hundreds of nanoseconds since Jan 1, 1601 (in UTC
time). The time can be converted to local time, taking the current time zone and daylight savings time into
account. Milliseconds can be included. The time and date format can be selected from several
alternatives.
Figure 3.3.1-4 DateTime Format Window
Table 3.3.2-1 contains the names of a few database tables most commonly used in reports. Think of each
table as one or more “rows” identified by a primary key number (in a field named Pkey). Each table holds
one type of database object, such as status points, or zone groups.
The PKey uniquely identifies each item in the table; it is usually the same ID number that you see in the
corresponding SCADA Explorer edit dialogs. Most files include fields called Name (containing the name
you gave to the item), and Desc (which contains the item’s descriptive text).
To select them, you must add statements to the Where list to define the records you
want. Think of these qualifiers as statements in the form “include all records from
the table, Where fieldname is condition”. For example, you could select all analog
points “Where VALUE = 3.14” or to report all analogs whose present value was
exactly that.
Where You can add as many qualifier statements as you need to get the data you want.
You may treat the individual lines in the Where list as being connected by either an
AND and/or OR operation, by making a choice using the “drop-down menu”
buttons.
For example, if you choose only AND, only records satisfying all of the conditions
will be included in the report. If you choose OR, records matching at least one
condition will appear in the report.
In the example above, only records with an IEDID value of 96 will be included in the
report.
Where in Each line can be written as a simple SQL statement. As an example, both
SQL Format alternatives in Figure 3.4-1 will produce the same result.
At any time, you can print or preview the report to make sure it looks the way you want. Note that
previewing the report will store the definition in the database, just as if you had pressed OK.
To preview your report, press the button labeled Preview. Figure 3-1 shows a typical report in the preview
window. This report has only a single page, but the viewer will allow you to step through the report page
by page, and to zoom in or out, using the button bar at the top of the window.
On the toolbar you will find a “Print…” button, as shown in Figure 3-1. Pressing it will bring up the
standard Windows Print dialog, where you can print the report using any printer known to your
workstation.
This is a report that lists all the analog points in a particular station.
The field “PKey” appears first and is formatted using <FullPointName>. The PKey in this table represents
the point’s internal ID number. This format choice will cause the full station and point name (separated by
a comma) to be printed. The other fields in the Report Fields list can use the <Default> format.
No reference table has been specified for any of these Report Columns.
This is the ID number of the desired station, which you can determine by looking at the stations in STC
Explorer.
You can edit this report definition to change the choice of station, or if you like, you can define a separate
report for each station.
4 Operations Reports
Operations reports are a built-in specialized type of report that is part of the optional Operation and
Outage Accounting feature. This type of report provides information about the past operation of the
devices designated for accounting.
4.1 Introduction
In order to understand the significance of the contents of this report, you should be familiar with the
Operation and Outage Accounting feature, as described in one of the chapters of the Point Database
Editing Guide.
When this feature is in use, status points are identified that correspond to switches or circuit breakers for
which accounting is to be maintained. The accounting data includes information about operation of these
devices, as well as accumulated outage information based on the time the devices have been open (off).
To define an operations report, navigate to the Reports branch in the STC Explorer and click on
Operations. All the reports display in the right window pane.
Note: To create a new report select New from the drop-down menu.
But normally, the operation report will be scheduled to print, like any other report. Refer to chapter 2 for a
discussion of report scheduling.
The top of the report includes the title and the settings that were used to generate the report.
4.3.2 Status
In the example, since the elapsed number of days is much greater than the specified “No-Op Days”, the
status of the device is marked “NO-OP”. The operation limit for the example device is evidently 3, since
the count shown (4) is 133.33% of the limit.
The Operations and Outage accounting package on your SCADA system may be optionally configured
not to count operator control actions, or Opens, or Closes.
Your system manager or technical support contact can help you with this. In these cases, the counts you
see in the report will reflect those settings. In particular, if operator controls are not counted, the Manual
field of the report will contain a dash “- “ and the Auto field will be equal to the Total column.
5 Outage Reports
Outage reports are a built-in specialized type of report that is part of the optional Operation and Outage
Accounting feature. It reports information about outages in equipment that has been designated for
accounting.
5.1 Introduction
In order to understand the significance of the contents of this report, you should be familiar with the
Operation and Outage Accounting feature, as described in Chapter 5 of DB-403 Windows SCADA
Automation Database Editing Guide. When this feature is in use, status points are selected that
correspond to switches or circuit breakers for which accounting are to be maintained. The accounting
data includes information about operation of these devices, as well as accumulated outage information
based on the time the devices have been open (off).
To define an outage report, navigate to the Reports branch in the STC Explorer and click on Operations.
All the reports display in the right window pane.
To edit an existing report right-click on one of the reports and select Edit from the drop down menu. The
Outages Report dialog displays as shown in Figure 5.2-1.
Note: To create a new report select New from the drop down menu.
But normally, the outage report will be scheduled to print, like any other report. Refer to chapter 2 for a
discussion of report scheduling.
An asterisk preceding the date and time of the outage is used to indicate that the outage began before
the reporting interval.
The status column (STAT) indicates the status of the outage at the end of the reporting interval:
• OK means the outage has cleared
• OUT means the outage is still outstanding
At the end of the report, a summary of total accumulated outage time is provided for all devices for which
outage accounting is specified.
The built-in historical data report facility provides a means of listing some or all of the content of a
historical data set that you have previously defined.
6.1 Introduction
A Historical Data Report allows you to extract data from one of your historical datasets and present it in
the form of a list.
An example of a historical data report is shown in Figure 6.3-1. This discussion of the Historical Data
Report assumes you are familiar with historical data, as described in DB-404, Historical Database Editing
Guide.
To define a historical report, navigate to the Reports branch in the STC Explorer and click on Historical.
All the reports display in the right window pane.
Note: To create a new report select New from the drop-down menu.
Field Description
Select this checkbox if you want the qualifiers you requested (max, min,
Display Qualifier
average, etc.) to be included in the report. Otherwise they will be omitted.
Choose the time interval that your report will cover. You may do this in one of
two ways, by choosing the appropriate radio button. You may specify an
absolute start and end time (and date) in the From and To fields, or you may
specify a time period prior to the time the report is generated, using the
Time Range Interval fields.
If you choose this second method, the report will automatically cover the
relative time interval specified, each time it is generated. This is a good
choice for reports that will be generated automatically on a schedule.
The All Points list shows all the points available in the current dataset. To
include one or more of these points in your report, drag the point name(s)
Points Lists from All Points into the Selected Points list. You can remove points from the
report by dragging point names from Selected Points back onto the All Points
list.
If you have the Historian feature, then all point changes are archived therefore any point may be used for
a historical query.
As displayed below, if you select Historian then two additional fields display on the dialog:
• Point Browser – Allows you to select which points you want historical information for using the
Drag-n-Drop Points browser
The report displays the time stamp of each sample, along with a column for each data item specified in
the report definition. The headings for these columns (except for the timestamp) are taken from the
captions specified in the report definition.
At the top of each page, the report header includes the title of the report, the time the report was
generated, the dataset used as a source of data, and the range of times included in the report.
7 Event Reports
An Event report is a built-in specialized type of report that is part of the Event Data Recording feature. It
reports information about Events in equipment that has been designated for accounting.
7.1 Introduction
An Event report allows you to extract data from the Event Data Recording table, as described in one of
the chapters of the Point Database Editing Guide. It reports the contents of the Event Data table (called
Events). This will produce a list of the events that have been recorded by the Event Data Recording
program.
To define a historical report, navigate to the Reports branch in the STC Explorer and click on Events. The
reports display in the right window pane.
Note: To create a new report select New from the drop down menu
Figure 7.2-1 Event Report Dialog
However, if, within the debounce interval, the report encounters a change of
state again that brings the point to its original state, the report discards both
changes. This ensures that true events are time tagged at the start of the
event but that the contact bounces are ignored.
Debouncing
Choose the time interval that your report will cover. You may do this in one of
two ways, by choosing the appropriate radio button. You may specify an
absolute start and end time (and date) in the From and To fields or choose
the time of the first and/or last available record using the checkboxes.
Alternatively, you may specify a time period prior to the time the report is
Time Range generated, using the Start … Days/Hours/Minutes Ago, the At (time) and
the For Interval Of fields.
If you choose this second method, the report will automatically cover the
relative time interval specified, each time it is generated. This is a good
choice for reports that will be generated automatically on a schedule.
You choose which points are included in the report by adding them to the
Units list, from the Drag and Drop Point Browser. Press the Point Browser
button to open the point browser window.
You can drag point names on to the list to include only those points in the
report. Or, you can drop one or more entire stations or entire RTUs onto the
Drop Units list, to include all of the points in the station(s) or the RTU(s).
Items may be removed from the Units list by right-clicking on the item and
choosing Delete.
If you want to include all points in the report, leave the Units list empty, and
simply check the All Points checkbox.
You may further filter the records that will be included in your report by their
user-defined Type. If you do not want such filtering, select the All Types
User Types
checkbox. Otherwise, select only the User Type(s) you want to include in the
report.
Choose the types of events that you want included in the report. If you want
Event Types
all types, you can just check the All checkbox.
8 Tag Reports
A Tag report is a built-in specialized type of reports that shows currently applied tags. It reports
information about the types of tags used, along with the time of their creation.
8.1 Introduction
In order to understand the significance of the contents of this report, you should be familiar with the Tags
feature, as described in one of the chapters of the Point Database Editing Guide. When a tag is applied,
the system records the type of tag, tag description and its timestamp. With this report, you can list of tags
currently in use.
To define a historical report, navigate to the Reports branch in the STC Explorer and click on Tags. The
reports display in the right window pane.
Note: To create a new report select New from the drop down menu
In the report, tags are listed from the newest to the oldest.
In this section, you may specify some additional grouping by the following
criteria:
Group By • None – No additional grouping
• Types – Group by tag type
• Points – Group by point name
• Station – Group by station name
RTU – Group by RTU name
Here you may filter tags in the report according to their time of creation
(timestamp). Choose the time interval that you want the report to cover. You
may do this in one of two ways, by choosing the appropriate radio button.
The first choice consists of specifying a start date and an end date in the
From and To fields. You may check the First Record checkbox to tell the
report to start with the oldest tag. And you can check the Last Record
Time Range checkbox to tell the report to end at the newest tag. Checking both First
Record and Last Record will cause the report to report all tags.
The second method consists of specifying a time range relative to the present
time (i.e. the time that the report is running). In this case, you specify a
relative start time, and a desired interval going forward from the start time.
This is a good choice for reports that will be generated automatically on a
schedule.
You choose which points are included in the report by adding them to the
Units list, from the Drag and Drop Point Browser. Press the Point Browser
button to open the point browser window. You can drag point names on to the
list to include only those points in the report. Or, you can drop one or more
entire stations or entire RTUs onto the list, to include all of the points in the
station(s) or the RTU(s).
Drop Units
Items may be removed from the Units list by right-clicking on the item and
choosing Delete.
If you want to include all points in the report, leave the Units list empty, and
simply check the All Points checkbox.
To request all points on one or more stations or RTUs click on the box beside
the desired stations or RTUs. If you want all the stations or RTUs, check the
User Types All checkbox. If the number of desired stations or RTUs is more than half the
total, you may find it easier to use the Select All and then uncheck the ones
you don’t want.
Choose the type of tags that you want included in your report. By default,
Tag Types there are four types of tags (as shown in the picture). If you want all the tag
types, check the All checkbox.
An Operation Log report is a built-in specialized type of report that shows list of operations made within a
specified time period.
9.1 Introduction
In order to understand the significance of the contents of this report, you should be familiar with the
Operation Logs feature, as described in one of the chapters of the WV 200 - Operators Guide.
The operation log report is designed to report on the logs that the system has kept about device
operations and operator actions. An example of an Operation Log report is shown in Figure 9.3-1.
To define an operations log report, navigate to the Reports branch in the STC Explorer and click on
Operation Log. The reports display in the right window pane.
Note: To create a new report select New from the drop-down menu
Figure 9.2-1 Operation Log Report Dialog
The first choice consists of specifying a start date and an end date in the
From and To fields. You may check the First Record checkbox to tell the
report to start with the oldest record. And you can check the Last Record
Time Range checkbox to tell the report to end at the newest record. Checking both First
Record and Last Record will cause the report to report all records.
The second method consists of specifying a time range relative to the present
time (i.e. the time that the report is running). In this case, you specify a
relative start time, and a desired interval going forward from the start time.
This is a good choice for reports that will be generated automatically on a
schedule.
You choose which points are included in the report by adding them to the
Units list, from the Drag and Drop Point Browser. Press the Point Browser
button to open the point browser window. You can drag point names on to the
list to include only those points in the report. Or, you can drop one or more
entire stations or entire RTUs onto the list, to include all of the points in the
station(s) or the RTU(s).
Drop Units
Items may be removed from the Units list by right-clicking on the item and
choosing Delete.
If you want to include all points in the report, leave the Units list empty, and
simply check the All Points checkbox.
You may further filter the records that will be included in your report by their
user-defined Type. If you do not want such filtering, select the All Types
User Types
checkbox. Otherwise, select only the User Type(s) you want to include in the
report.
Choose the types of events that you want included in the report. If you want
Event Types
all types, you can just check the All checkbox.
10 Worldview Reports
A Worldview report is a built-in specialized type of report that prints a specific view from a Worldview map.
To define a WorldView report, navigate to the Reports branch in the STC Explorer and click on Operation
Log. The reports display in the right window pane.
SCADA 10-1
DB-405 Report Database Editing Guide
Note: To create a new report select New from the drop-down menu
SCADA 10-2