GFS-154B M05 System Configuration For Data Acquisition
GFS-154B M05 System Configuration For Data Acquisition
Objectives
y Explore enabling SCADA functions.
y Add IO drivers and set the PDB.
y Create Alarm Areas and common formats.
y Enable Alarm Services.
System Configuration for Data Acquisition and Alarming
Overview
Once the required IO drivers have been identified and installed, the SCADA server is ready for
further configuration. This will include enabling SCADA capabilities, defining which drivers to
load, which PDB to use, and how the alarming sub-system will be generate, label and deliver
alarms.
Specification of these features requires re-visiting the SCU to complete the SCADA and alarm
specific configuration. Once completed, the SCADA will be able to begin with data
acquisition and alarm generation.
Alarm components.
SCADA components.
SCADA Support
Enabling SCADA support designates the iFIX node as a SCADA server, allowing it to use IO
drivers and PDBs to manage data. Disabling SCADA support makes the iFIX node an iClient.
PDB
Once SCADA support has been enabled this field becomes available. A SCADA node can
have several PDB files in its PDB path, but only one can be loaded and connected to SAC at a
time. The PDB listed in this field will become the default PDB and iFIX will load it at start-up.
IO Drivers
The browse list for I/O Driver Name will return only installed IO drivers. iFIX will only create
DITs for IO Drivers in Configured IO Drivers listbox, and it can manage eight drivers at a time
(including the SIM and SM2 drivers). Simply browse to the desired IO driver and click Add to
include it in the list of drivers. When using IOCNTRL.EXE and the /A switch (in the SCU Task
configuration), all listed drivers will be started when iFIX starts.
Message Formats
Æ Advanced Æ Common Format
Developers can create common formats for how alarm messages are displayed by the
alarm destinations (or services).
The alarm message will be
displayed using field
information from the PDB
tags such as tag name,
description and units. These
fields will be displayed in
individual columns.
The common format can also
specify the length (in # of
characters) for each field in
the message. These fields
will be added, one after
another, to form a single-line
alarm message.
The order the fields appear in
the message will follow the
column order as per the list.
Use the arrows to move a
selected field up or down in
the list.
Alarm Areas
Alarm messages are high priority messages that often require operators to respond. As
SCADA servers generate alarms based on data coming in from all over the plant floor, it is
important to label and route alarms properly, so that operations staff do not get
overwhelmed by messages from parts of plant that do not concern them.
Alarm Areas allow developers to create labels for alarm messages so that they only end up
at necessary destinations. These labels can represent physical plant areas (such as Plant A
assembly, shipping, or packaging), logical areas (power, water, heating, etc.) or operational
areas (maintenance, operations, quality, lab, etc.). Up to fifteen (15) areas can be assigned to
each PDB tag. When an alarm message is generated, it will be labeled accordingly. Each
destination alarm service will have a list of valid areas (a filter) that will allow or restrict
message delivery based on the message alarm area.
The Alarm Area Database (AAD) is the central area where Alarm Areas are listed. By default,
the AAD is populated with sixteen (16) alarm areas (labelled by letters A – P). This is to
provide compatibility with other FIX32 and iFIX systems. To add alarm areas, enter an
alphanumeric label and click Add. There is no theoretical limit to the number of Alarm Areas.
Alarm Handling
Once generated, alarms are placed in a temporary queue on the SCADA. iClients and
SCADAs will request alarm updates from this central queue periodically. These alarm
updates will be routed to applications called Alarm Services. Each Alarm Service has its own
queue and can use its own custom Alarm Filter to restrict alarm delivery and routing. It can
also use a common (global) filter list.
This common Alarm Area list can be created from the same location as the common format
was configured.
Æ Advanced Æ Common Areas
Alarm Services
iFIX provides a number of Alarm Service applications to deliver alarms to the locations and
people who need to assess what is going on in the plant and prevent undesirable events
from getting out of control. Some of these services are graphical in nature, and others are
background programs that facilitate delivery to other applications for analysis or reporting.
Each Alarm Service has its own configuration requirements and interface. Both iClients and
SCADA servers can make use of these services to relay information to operators or other
applications.
To enable a service, highlight it and click the “Enable” radio button. The “Modify” button will
be enabled, thus allowing further configuration of the services.
ALARM PRINTERS
Any iFIX node (iClient or SCADA) can send alarms to a maximum of four alarm printers.
These printers can be assigned to serial, parallel or USB ports. The output to the printer is
not a document, but a single line
alarm message. For this reason,
inkjet and laser jet printers are
poor choices for an Alarm printer.
The best option is to use a dot
matrix line printer or plotter. Also,
alarm printers cannot be shared
by other applications. Once
designated as an iFIX Alarm
Printer, the printer will only create
alarm output, as these are
considered “mission critical”
messages that cannot be
interrupted by reports or trend
plots. Figure 5-7. Alarm Printer Configuration.
The Areas button allows selection of valid alarm areas for filtering based on the AAD. The
user can either choose “All” to let all alarms through, or a subset of the areas in the AAD, or
the “Areas Common to all Services” (ie. the Common Areas list).
The Format button allows the user to build a unique format for the alarm message or, more
commonly, to use the Common Format.
Alarm Summary
The Alarm Summary service is
responsible for routing alarm
messages to alarm summary tables
in displays. These interactive
summary objects provide operators
with a means to interact with the
alarm sub-system by reviewing,
sorting, filtering, acknowledging and
clearing alarms. It also provides
audible signals (Horn Support) to
indicate that new alarms are present
in the summary table.
Figure 5-8. Alarm Summary Configuration.
The Areas button can be used to filter the alarms in the Alarm Summary service queue, just
as with the other services. In displays, the Alarm Summary object also supports
supplemental filtering to further restrict what alarms are visible.
The message format does not apply to the Alarm Summary because it breaks the message
up into sorted columns in the display.
Alarm Files
The Alarm File service will write messages to
simple text-based files in the Alarm path
(generally the ALM directory). As with the
printers, the alarms are written line-by-line in
batches. The text-based files have an extension
of .ALM, and are created daily using the date
stamp as the file name (YYMMDD). Throughout
the day, alarms will be written to the text file,
which grows as large as is required. Figure 5-9. Alarm File Configuration.
Alarm History
The Alarm History service will provide messages to a viewer (ALMHIS.EXE) for review during
short-term troubleshooting. This viewer can be
launched from the Run prompt, or via
Workspace icons and scripts. The Alarm
History viewer only holds the alarms
temporarily, so it is not good for long-term
review of alarms. The alarms will be displayed
in a First In, First Out (FIFO) manner, up to a
maximum number (by default, 100).
Figure 5-10. Alarm History Configuration.
Alarm ODBC
The Alarm ODBC service is responsible for performing batch writes of alarm messages to
Relational Databases (RDBs) such as SQL server and Oracle. This is an effective tool for long-
term alarm storage and analysis.
This functionality is covered in the iFIX Advanced course.
Alarm Network
The Alarm Network service enables network transmission of alarms between nodes (SCADAs
and iClients). When the Alarm Network service is enabled, a Network Alarm Client task
(NAC.EXE) is set up to request alarms from all
SCADAs in the networked nodes list. A
Network Alarm Manager (NAM.EXE) is also
created (on SCADA nodes only) to receive the
requests and then respond with the latest
alarm messages. Thus, the Alarm Network
service must be enabled on every node that
needs to receive or send alarms over the
network.
FIGURE 5-11. ALARM NETWORK CONFIGURATION.
The User can specify a period for previous alarm retrieval, and also whether to bring
Summary Alarms only (excluding system or operator messages).
Lab Exercises
Lab Objectives: At the end of this exercise, the student will be able to:
y Add IO Drivers and PDB to SCU setup.
y Add tasks to the Task configuration.
y Create Alarm Areas and Common Formats.
y Enable Alarm Services with Alarm Area Filters.
When you are finished with these exercises, answer the Summary Questions at the end of
the module.
4. Ensure that SCADA Support is enabled. If disabled, the node becomes an iClient (and
cannot use a PDB or IO Drivers). In the Database Definition field type WATER.
When finished, your SCADA configuration should resemble the configuration below.
6. Click OK to commit the changes to your SCU file, acknowledging this prompt with Yes.
2. Ensure the following tasks have been automatically added by iFIX to the task list. (all
tasks are located in the C:\Program Files\GE Fanuc\Proficy iFIX BASE directory).
a. IOCNTRL.EXE
b. WSACTASK.EXE
c. SUMQDEL.EXE
d. WORKSPACE.EXE
3. Use the table below to assign the correct order, command line and mode for each task.
To edit a task, highlight the task, change the necessary field and then click the Change
button. If a tack is missing, use the browse - ? - button to navigate to the Base directory
and find the task, then click the Add button. Use the arrows to change the order or the
tasks.
1. First we will set the Common Format. Open the Alarms Configuration:
a. Configure menu Æ Alarms, or
b. Use the Alarms icon in the SCU toolbox.
2. Click the Advanced… button. In the resulting dialog, click the Common Format button.
3. Notice the fields that can be added to the alarm messages. We will change the format
of the message slightly…
a. In the Column Order, use the arrows to move the Description field up so that it is
after Tagname.
b. In the Length fields, change value to 10 and Description to 40.
Now, every Alarm service that uses the common message format will display alarms
using these rules.
6. Your Alarm Services Configuration dialog box should resemble the one shown below.
By default, all Services will use the Common Format and the Common Alarm Areas.
2. Once iFIX has been started, open the SCU (the Workspace has an icon for this.
Next open the AAD:
a. Configure menu Æ Alarm Area Database, or
b. Use the SCU Toolbox icon.
3. The Edit Alarm Area Database dialog is used to add, edit or delete Alarm Areas to the
AAD, one area at a time. By default the AAD includes Areas labelled A through P for
consistency with older FIX32 and iFIX systems. There is no limit to the number of Areas
you can add.
4. Type the Area into the Alarm Area field and then click the Add button.
One area at a time, add the following list of areas. These area labels are not case-
sensitive (but they are spelling-sensitive!).
a. SystemAlarm.
b. SCADA## (use your number).
c. Plant## (use your number).
d. PumpStation.
e. RapidMixer.
f. SedimentationTank.
g. FlocculationTank.
h. WaterFilter.
i. Clearwell.
6. When finished, click OK. Save your SCU file. These Alarm Areas will be available
immediately and do not require an iFIX restart to take effect.
Review Questions
1. What makes SCADA configuration distinct from a simple iClient configuration? (two
things you set in the SCU).
4. Where are Alarm Areas stored? Do SCADA servers and iClients need to use the same
Alarm Areas?
Review
Now that you have completed this module, you should be able to:
y Explore enabling SCADA functions.
y Add IO drivers and set the PDB.
y Create Alarm Areas and common formats.
y Enable Alarm Services.