Professional Documents
Culture Documents
Proficy Historian 3.1 Alarms and Events
Proficy Historian 3.1 Alarms and Events
TM
Version 3.1
Jan. 2006
i
Proficy Historian Alarms and Events
All rights reserved. No part of this publication may be reproduced in any form or by any electronic or mechanical means, including photocopying
and recording, without permission in writing from GE Fanuc Automation Americas, Inc..
Notice
GE Fanuc Automation Americas, Inc. reserves the right to make improvements to the products described in this publication at any time and
without notice.
2006 GE Fanuc Automation Americas, Inc. All rights reserved. Microsoft is a registered trademark of Microsoft Corporation. Any other
trademarks referenced herein are used solely for purposes of identifying compatibility with the products of GE Fanuc Automation Americas, Inc.
We want to hear from you. If you have any comments, questions, or suggestions about our documentation, send them to the following email
address:
doc@gefanuc.com
ii
Table Of Contents
Table Of Contents
Historian Alarms and Events .........................................................................................................................................1
Alarm and Event Archive Configuration ..................................................................................................................2
OPC Alarm and Event Collector ...............................................................................................................................3
Working with Alarm and Event Data......................................................................................................................12
iii
Historian Alarms and Events
Historian includes Alarm and Event archiving, to provide the ability to retrieve and store Alarm and Event Data
from any OPC-compliant A&E server through the OPC Alarm and Event collector. Additions have also been
made to the Excel Add-In and OLE DB Provider to support alarm and event data.
Alarms are generally defined as tags going into an abnormal condition. For example, an alarm could be set on a
boiler when it reaches a specified temperature. Alarms usually have a well-defined life cycle, which is defined
by the individual data sources the alarms are collected from (iFIX, for example). They enter an alarm state, are
generally acknowledged, then return to normal.
Historian handles alarm data in two ways. You can view the entire Alarm as a single record that contains all
information about the alarm, or you can view the Alarm History, which shows the transitions of the alarm as
individual records.
Events are generally defined as activities in a system that occur once only. For example, a user logging on to a
device is an event. When viewing this data in Historian, each event is returned as a record.
Historian's OPC Alarm and Event Collector offers the ability to link alarm data with associated process data.
This allows you to quickly perform queries, through either the Excel Add-In or OLE DB Provider, that join
process data with alarm and event data, giving you a full picture of what may have caused an alarm to occur.
For more information, refer to the following topics:
Alarm and Event Requirements
Reference Documents
For related information about Historian, refer to the following documents:
Using the Historian Administrator
1
Proficy Historian Alarms and Events
The following are required to make use of the alarm and event support in Historian
An OPC-compliant Alarm & Events Server. This is included with GE Fanuc products such as
CIMPLICITY PE, ME and iFIX.
A Microsoft SQL server, such as MSDE or Microsoft SQL Server. (An MSDE SQL Server is installed
by Historian)
NOTE: Historian installs MSDE if the Alarm and Event collector is selected, and will use MSDE by
default. MSDE has a 2GB limit on the size of its databases. If your alarm and event database will
exceed this limit, you may wish to use SQL Server instead of MSDE. Refer to Historian Alarm and
Event SQL Configuration for more information.
iFIX users must install the iFIX OPC Alarm and Event Server.
By default, Historian's Alarm and Event archive is configured to use an integrated MSDE SQL database. This
MSDE database is installed with Historian, and is preconfigured for use with Historian's Alarm and Events
archive. However, you may want to configure Historian to make use of an existing Microsoft SQL Server.
Historian's database configuration is determined at install time. As part of the installation process, Historian
will prompt you to install and configure a local instance of MSDE (Microsoft's embedded database engine) or
make use of an existing SQL Server. If you wish to use an existing SQL Server or an existing MSDE
installation to store the Alarm and Event archive, select Use existing SQL Server instance, and enter values
for the Server Name, Database Name, Admin User, and Admin Password fields.
Alarm and Event archive management is handled transparently by the Historian Administration utility through
the Archives screen. Alarm and event data is archived alongside process data in Historian for the same time
2
Historian Alarms and Events
period. For more information, refer to Adding, Backing Up, or Restoring an Archive.
NOTE: If you have configured Historian Alarms and Events to use SQL Server, you must ensure that both
Historian and SQL Server have write access to the remote folder used for data backup.
Alarm Filtering
Event Attributes
3. Select the OPC Alarm and Event collector instance you wish to configure.
4. Configure the OPC Alarm and Event Collector's General options. Refer to Modifying General
Collector Options for more information.
5. Configure the OPC Alarm and Event Collector-specific options. Refer to Configuration of OPC Alarm
and Event Collector-specific fields for more information.
3
Proficy Historian Alarms and Events
b. In the OPC Server PROGID field, enter the PROGID of your OPC Alarm and Event server.
c. In the Link to Data Collector list box, select a data collector to link the Alarm and Events
collector to. Alternately, you can enter the name of the collector to link to manually by typing
it in the field.
WARNING: Although the collector will function properly with no associated data collector, alarm
and event data will not be associated with tag data from the data collector if it is not specified in this
field. As a result, queries through the Excel Add-in or the OLE DB Provider will not be able to join
tag and alarm data.
d. If you want to filter your events, enable the Filtering option and click on the Filters... button.
Refer to Alarm Filtering for more information.
NOTE: To install additional OPC Alarm and Event collectors, you must re-run the Historian install.
The following table outlines the OPC Alarm and Event Collector-specific configuration fields.
Field Description
4
Historian Alarms and Events
events.
The Historian alarm and event collector captures all event types, categories, sub-categories and conditions
supplied to it by the OPC Alarm and Event Server. Consult your OPC server documentation for more detail as
to which categories, sub-categories and conditions it provides.
Event Types
Three basic types of events are supplied by an OPC alarm and event server: Condition, Simple, and Tracking.
Each of these types has its own categories, sub-categories and conditions. For example, a Condition event may
have a Level category, which itself may have several conditions, such as LO LO, LO, HI, and HI HI.
Condition events record the transition of states in an alarm. For example, a condition event could be recorded
for an alarm when the level changes from LO to HI HI.
Tracking events are not associated with conditions, but rather track activity between the OPC Alarm and
Events Server and an OPC client. For example, if an operator acknowledges an alarm, a tracking event would
be recorded.
Simple events record everything not covered by Condition or Tracking events. For example, if a device were to
fail, a simple event would be recorded.
Event Categories
Event categories are used to group similar event types and are configured on the OPC alarm and events server.
For example, you might set up categories for "System Events", "Process Events", and "Batch Events". You
might likewise set up categories for different areas of your process, such as "Premix", "Dry Mix" or "Bake".
Categories can hold multiple event types, and a given source can generate events for multiple categories.
NOTE: Category names must be unique within the OPC alarm and event server.
Event Conditions
Conditions are named states of alarms and events within the OPC alarm and event server. Conditions could
include LO LO, LO, HI, and HI HI, as well as SYSTEM_FAILURE, LIMIT EXCEEDED, NORMAL STATE,
and others. Conditions may also contain sub-conditions, which help to further granularize. Consult your OPC
Server's documentation for a complete listing of its conditions.
5
Proficy Historian Alarms and Events
Events usually also include attributes, which give greater detail to the status of the event. Attributes vary from
server to server; user-defined attributes as well as vendor-defined attributes may be configured on your OPC
alarm and event server.
Some common attributes are:
Start time
End time
Acknowledgement status
Acknowledgement time
Operator name
Data Source
Quality
Severity
Historian archives all event attributes sent to it by the OPC alarm and event server. Consult your OPC alarm
and event server documentation for more information.
By default, the OPC Alarm and Event collector will collect all alarm and event data sent to it, and
archive it. This ensures that all your alarm and event data will be archived, without any special
configuration required. If you archive all of your alarm and event data, however, it can have an impact
on the amount of storage required for Historian to operate. As a result, you may wish to specify
which alarms and events you want the OPC Alarm and Event collector to collect.
Alarm and Event filtering works on an inclusive model. If filtering is not enabled, all alarm and event
data is collected. If filtering is enabled, then only the selected alarms and events will be collected.
6
Historian Alarms and Events
3. Select the OPC Alarm and Event Collector instance you want to configure.
7
Proficy Historian Alarms and Events
To filter by area
To filter by source
To filter by category
To filter by area:
6. To add an area manually, enter the area you want to filter by in the Area box and click Copy.
7. To remove areas from the Areas to Add list, select the area you want to delete and click Remove
Selected.
To filter by source:
6. To add a source manually, enter the source you want to filter by in the Source box and click Copy.
7. To remove sources from the Sources to Add list, select the source you want to delete and click
Remove Selected.
4. In the Categories Available field, select the category you want to filter by.
6. To add a category manually, enter the category you want to filter by in the Category box and click
Copy.
7. To remove categories from the Categories to Add list, select the category you want to delete and click
Remove Selected.
The Close Alarms dialog provides the ability to close open alarms through the Historian Administrator.
The Close Alarms dialog contains the following fields:
9
Proficy Historian Alarms and Events
Field Description
End Date/Time Shows alarms that are open with an end date before the
time specified.
Show Alarms button Click to show alarms for the specified time period.
To close an alarm:
3. From the list of collectors, select the alarm and event collector you wish to close alarms on.
4. Click the Close Alarms button. The Close Alarms dialog appears.
5. In the End Date/Time field, enter a date/time value. Clicking on the browse button brings up a
calendar.
6. Click the Show Alarms button. A list of open alarms will appear.
7. Select the alarms you wish to close, and click the Close Alarms button.
At the moment no OPC Alarm & Event Server exists for use with FIX32 SCADA systems. To accomodate
Alarm Collection from these systems, alarms can be proxied through an iFIX node with an OPC AE Server that
the Proficy Historian OPC Alarm Collector can then receive them from.
There are two different configurations that can occur in this instance.
The first would be a simple proxy in which only one FIX32 system forwards its alarms through a particular
iFIX node. In this situation (see Figure 1), the OPC AE Collector can be linked to the FIX32 Data collector
(see Configuration of OPC Alarm and Event Collector-specific fields). With the link created, any Queries
created with the Excel Add-In which compare Tag & Alarm data will function correctly.
10
Historian Alarms and Events
The second configuration (see Figure 2) consists of more than one FIX32 system proxying alarms through a
single iFIX node. In this situation, the 'Link To Data Collector' property cannot be set to both FIX32 data
collectors. As a result the area of the Alarm Archive responsible for creating the relationship between the alarm
and tag data will not be populated and in turn the Excel Add-In will be unable to link the data.
To link alarm and tag data in this situation, an OLE DB query can be performed with a join between the
"ItemID" column of the ihAlarms database and the "TagName" column of the ihRawData database. This join
can only be performed if No Prefix has been added to the tagname. Below is an example of a parameterized
query that uses the AlarmID property to find all values read from the corresponding tag for that alarm during
the duration of the alarm.
11
Proficy Historian Alarms and Events
Query Criteria
Example
Querying Alarm and Event data in the Excel Add-In retrieves alarm and event data according to your query
criteria. Three query types are available: alarm, alarm history, and events. For more detail refer to the Alarm
Query Types topic.
12
Historian Alarms and Events
NOTE: At the moment Alarm & Event data from FIX32 SCADA systems is not available through the Excel Add-
In. To retrieve this data, you must use OLE DB. For more information, refer to Using the OPC AE Collector
with FIX32 SCADA collectors.
1. From the Historian menu, choose Query Alarms & Events. The Query Alarms & Events dialog
appears.
2. Select a Server. Your default server should be selected. To set the selected server as default, ensure
the Set Server to Default option is enabled.
6. Click OK.
IMPORTANT: Excel limits the amount of data that can be entered into a formula or returned into a worksheet.
The following are guidelines for formula and result limits in various versions of Excel:
Three query types are provided by the Excel Add-In. These types are described in the following table.
13
Proficy Historian Alarms and Events
Alarm History If the Alarm History query type is chosen, each change
in the alarm's state will be returned in a single record.
The Excel Add-In can be set up to filter by one or more of an alarm's attributes with the Query Criteria section
of the dialog. For example, you may want to include alarms where the Alarm ID is equal to a specific Alarm ID
occurring after a specific start time.
Several query criteria are provided by the Excel Add-In to retrieve alarm and event data from Historian. In
addition to specifying which criteria to use in your query, you can specify which attributes will be displayed,
and how the results are sorted in your Excel spreadsheet.
3. From the Add query criteria where... listbox, select a query condition. Available query conditions
are:
is Equal To
is Not Equal To
NOTE: Some conditions may not be available for some query criteria.
1. In the value or cell... field, enter a comparison value. This can be a specific value, or can be a cell
reference.
2. Click the Add to Query button. The query criteria will appear in the Retrieve alarms where... list.
14
Historian Alarms and Events
3. To add multiple query criteria, repeat steps 2-5. Each criteria will be added with an AND operator.
4. To remove a query criteria, select it from the list and click on Remove Selected.
Consult your OPC alarm and event server documentation for more information on which attributes it provides.
The Output Settings section of the Alarm Query dialog box is separated into five distinct sections. These
sections are:
Output Range
Output Orientation
Maximum Results
Output Display
Output Sorting
Output Range
Click in the Output Range field and select a range of cells in a single row or column to determine where the
returned data is placed.
Output Orientation
Select either Columns or Rows for the output display. Selecting Columns displays a table of values with
parameters arranged in columns with header labels at the top. Selecting Rows rotates the table 90 degrees.
Maximum Results
Output Display
The Output Display section specifies which attributes the Excel Add-In should return to the spreadsheet.
Multiple selections can be made by holding the CTRL key and selecting.
15
Proficy Historian Alarms and Events
Output Sorting
Before displaying the returned alarm and event data in your Excel spreadsheet, the Excel Add-In can sort the
values according to the criteria you specify in the Output Sorting section. The following table describes how
the different sorting options sorts values:
Custom Sort Allows you to select which field(s) to sort the returned
alarms and events by. You can also specify whether to
sort in ascending or descending order. Multiple sort
conditions are supported.
None The returned alarms and events are not sorted at all.
They will be returned in the order they are received
from the alarm and event database.
2. Select a sortable attribute. Multiple selections can be made by holding the CTRL key and selecting.
3. Click on Sort-> to move the selected attribute(s) to the Attribute Sort list box.
4. Click in the Check for Descending check box to sort an individual attribute in descending order. The
default is to sort the attribute in ascending order.
5. Returned values are sorted from the top down. For example, if the Attribute Sort field contained the
values Start Time, Data Source Name, and Condition Name, the results would first be sorted by the
start time, then by the data source, then by the condition name. To change the order of sorting, select
an attribute in the Attribute Sort list box, and click Up or Down.
The Excel Add-In allows you to retrieve limited Alarm and Event data when you query tag data from the
Historian archive. The available Alarm and Event data appears as additional options in the Output Display list
16
Historian Alarms and Events
box in the Query Current Values, Query Raw Data, Query Calculated Data, and Query Filtered Data
dialog boxes.
Two options for alarm data appear:
Alarm Message
Alarm ID
The Historian OLE DB Provider has been extended to include alarm and event data. For more information refer
to the following topics:
OLEDB ihAlarms Table
Example Queries
17