GFS-154B M07 Introduction To The Process Database
GFS-154B M07 Introduction To The Process Database
Objectives
y Compare primary and secondary database tags.
y Describe the commonly used tag types.
y Discuss the Database Manager.
y Open, Close, Reload and Import/Export a Process Database in the Database
Manager.
y Configure Database Manager Columns and Queries.
Introduction to the Process Database
Overview
The Process Database (PDB) is the central repository for real-time SCADA data and
information. It is comprised of tags (or blocks) that are linked to IO addresses to facilitate
visualisation and management of plant floor data. Tags can also be linked to each other to
form chains where more complex actions can be performed in specific sequences. Every
tag has fields to fully describe it, from its name and description to alarm limits and security
restrictions.
The Database Manager is the application used to develop and administer tag databases.
NOTE:
Within the Database Manager, tags are displayed in rows and fields are
displayed in columns.
NOTE:
The Database Manager is capable of working on both local and remote Process
Databases.
Database Tags
Tags are the basic units of the Process Database. They can read, write, calculate and
manipulate data, even performing basic logic execution if required. Tags come in a variety
of types, with each tag type specializing in specific duties.
Tag Chains
Tags can be linked together to form tag chains. These chains of tags pass values to one
another in series, performing special actions at each transfer. There are some basic rules
governing chains:
1. Since the data must come from somewhere, the tag chain must start with a Primary tag
(though additional primary tags can appear in the middle or end of a chain as well). This
Primary tag will receive its values from the DIT, an operator input or possibly a script. A
Secondary tag cannot start a chain.
2. Tags can be members of only one chain at a time.
3. All tags in the chain inherit the scan time of the Primary tag at the start of the chain. The
entire chain will be evaluated based on this scan time.
4. All tags will receive their data from the tag preceding it in the chain, and will pass the
result of their actions to the tag following it.
Figure 7-2. Tag Chain Examples - Read-only (top) and Read-Write (bottom).
Calculation Tags
A valuable secondary tag, the Calculation block can use up to eight inputs (from tags or
constants) to execute mathematical expressions. For equations using more than eight
inputs, extra Calculation blocks may be chained together, with results passed from block to
block as new inputs.
Program Tags
Program tags are neither Primary or Secondary tags - they are known as Batch Blocks.
These stand-alone blocks can execute simple 20 line programs to assist with internal
database actions and logic.
Fanout (FN) Secondary Passes the value it receives to up to four additional tag
fields. This is a simple way split a chain or to send values
to more than one chain.
Histogram (HS) Secondary Records how frequently a value occurs and can be
displayed in a Histogram chart (FIX32 or FIX Desktop only)
in a display.
Lead Lag (LL) Secondary Allows simulation of process dynamics by combining the
advantages of lead and lag compensation strategies.
Multistate Digital Input Primary Allows the distillation to a single output (0-7) from the
(MDI) combination of multiple (maximum of three) digital input
states. Each of the eight result states can be labelled.
On-Off Control (BB) Secondary Uses analog values along with upper and lower thresholds
to write digital values to downstream blocks (such as DO).
Pareto Primary Accepts up to eight inputs, calculates percentages and then
provides the output to a Bar chart (FIX32 or FIX Desktop
only).
PID (PID) Secondary The PID block maintains balance in a closed loop by
changing the controlled variable (an analog output) in
response to deviations from a user-defined set point.
Program Batch Executes simple 20 line programs to assist with internal
database actions and logic.
Ramp (RM) Primary Decreases or increases a target output value using up to
three stages for ramping values. Each ramp stage lets you
specify a target value and a ramp rate.
Ratio/Bias (RB) Secondary The Ratio Bias block lets you change an incoming signal by
adding a constant (bias) and/or by multiplying by a constant
(ratio).
Signal Select (SS) Secondary Samples up to six inputs, manipulates the inputs according
to a user-selected mode, and sends the result to the next
block.
SQL Data (SQD) Secondary Transfer data between PDB tags and relational database
tables.
SQL Trigger (SQT) Primary This tag can trigger a relational database read or write
(SELECT, INSERT, UPDATE, DELETE) based upon
events or time.
Text (TX) Primary Retrieves text data from DIT using an IO address and scan
time. Alarms can be generated from this tag. Can also
write values to the DIT.
Timer (TM) Secondary Counts time up or down based on the value being passed
to it by upstream tags.
Totalizer (TT) Secondary Maintains totals based on the values passed to it from
upstream tags.
Trend (TR) Secondary Able to buffer up to 80 values in a FIFO cache. These
values can be used to pre-populate a real-time trend when
it opens.
Table 7-1. iFIX tags.
DatabaseManager
The Database Manager is the main tool used for creating, editing and monitoring the
Process Database. What is displayed in the spreadsheet interface is simply a view into aPDB
– the user has a high level of control over what is displayed.
Database Menu
New creates a fresh database using the read-only EMPTY.PDB file.
You will be prompted to create a new save name. Close does not
shut down SAC or the PDB, it simply ends the current session with
the PDB and clears the view in Database Manager. You will be
prompted to save changes if any were made.
The Database Manager is a client tool that allows development of
PDB files on remote nodes, as well as the local PDB. There are two
ways to view and access PDBs around the network: “Open” and
“Reload”. “Open” and “Reload” are very similar in appearance but
result in quite different actions being taken.
The Open command results in a dialog box listing the SCADA servers
as listed in the SCU network configuration. A green icon next to the
node name indicates a good connection; a red icon indicates a bad
connection. By choosing a node, the Database Manager will “open”
a development session with the node, using the currently active PDB.
You are able to interact with the PDB including actions such as Figure 7-3. Database Menu.
adding new tags, modifying existing tags or simply viewing the
current settings.
The Reload command also results in a dialog box listing the available SCADA servers. It also
shows a list of all the PDB files in the SCADA’s PDB directory. By selecting a PDB from this
list, the user is indicating that they would like to either change the PDB that SAC is operating
on, or that they would like SAC to restart the PDB using the default start up settings.
Obviously, changing the PDB on-the-fly can disturb all attached clients who require data
from its tags, so reloading is not recommended for stable operational environments but
instead for isolated nodes where development, testing and simulation are required.
Open will allow a user to view the currently loaded PDB, whereas Reload will result in SAC
stopping the current PDB, reloading it (or another PDB) and restarting all processing.
Verify is a helpful development troubleshooting tool. It will enumerate all the tags in the PDB
and ensure that there are no errors in their configuration. It can detect missing or empty
fields in tags, orphaned secondary blocks, illegal chains, and missing or illegal tags in
dependent blocks (such as the Calculation block).
Summary will provide the user with a quick report showing how many tags are in the PDB,
how many of them count as IO against the license (Primary tags only), as well as a Database
Serial Number (DSN). The Database Serial number is very helpful to developers in
maintaining PDB version control.
7-8 GE Fanuc Automation Americas Training Services GFS-154B
Introduction to the Process Database
Import/Export
The Import and Export features are valuable tools to help rapidly develop and application. It
can often be easier and quicker to build tag and field lists in a simple CSV file. In these
situations, the Export feature will create a CSV file with the fields for each tag type (AI, DI, CA,
Etc.) in columns and the visible tags in rows. This exported information is very helpful to use
as a template for quick addition of new tags. Using MS Excel as a CSV editor will grant the
developer access to useful “copy” and “fill” tools that can create tags very quickly.
The Import feature will temporarily pause SAC and build all the tags in the CSV file. The tag
creation is very quick, and when completed, SAC will restart the PDB.
Tag Type field. Tag Name field. Next Block field. Description field. Etc.
Figure 7-4. Sample CSV file using the PDB Import/Export feature.
Edit Menu
The Edit menu features commonly used
commands such as Cut, Copy and Paste.
Blocks menu
The Blocks menu provides the tools for working with tags. The
Show selection opens a tag for viewing only, leaving it on-scan.
The Modify selection will open the tag for editing. Any tag is taken
off-scan while it is being edited.
The Generate function can quickly create multiple tags with
sequential numbers in their various fields (such as tag name,
description, IO address, etc.). Figure 7-8. Edit Menu
The Drivers menu will display links to the currently available IO Drivers. If listed here, the
DITs have been created and are ready to use with PDB tags. The Help menu provides iFIX
assistance (with Electronic Books) or specific help for Database Manager, block types and
fields (with Help topics).
Add Add
Block. Block. Context Sensitive
Help. (or use F1).
The Options Dialog has a number of convenient user preferences that can be changed to
suit a user’s needs. The Enable Spreadsheet Auto Refresh option is helpful when
troubleshooting values, alarms and chain execution, but it does consume extra PC
resources. Automatically Put Block on Scan after Modify is helpful for returning a block to
its normal scan status after it has been edited.
Display in Modify mode ensures that double-clicking a tag in the Database Manager opens
the tag for editing (taking it off scan), whereas Display in Show will open the tag for read-
only review (and leave it on scan).
Lab Objectives: At the end of this exercise, the student will be able to:
y Import tags into the Process Database from a CSV file.
y Configure Database Manager Columns and Appearance.
y Reload the Process Database
When you are finished with these exercises, answer the Summary Questions at the end of
the module.
Introduction
We have successfully established communications to our control devices on the Plant Floor
and our IO Drivers are populating the DITs with current values. Our next task is to rapidly
create a set of database tags to get the PDB started. We will be importing a CSV file with
pre-populated tag information to create the tags. We will also change the appearance of
the Database Manager to help us with development. Finally, we will save and reload our
newly created PDB.
3. You should see an empty sheet. We are going to populate the PDB by importing some
pre-made tags for the Water Treatment application. From the Database menu, choose
Import.
Notice that SAC must be stopped while a bulk import is being performed. For that reason
it is best to do this on engineering workstations only, as opposed to operational SCADAs.
4. Use the Open File dialog to navigate to the import file. It is located in the
C:\Classfiles\PDB directory and is named WATERTAGS.CSV.
5. Click Import when you have selected the correct file. The Status bar at the bottom of the
Database Manager will indicate that an import is in progress. The area on the left shows
the tag names currently being imported. When finished, there should be 45 rows – this
information can be found in the Database Manager title bar.
6. From the Database menu select Save As… and save the database as WATER.
7. From the View menu, select Re-Sort. Your Database Manager should look something like
this.
8. Now we will change the appearance of the Database Manager to suit our needs. We will
start by adding additional fields. From the View menu, select Properties…
Notice there are five tabs. To assign additional fields to columns click on the Columns
Tab:
a. From the Available Columns list, select Scan Stat and then click the add button.
b. Next, scroll down the Available Columns list until you locate the Alarm Area 1 field.
Click the add button.
9. The Display Columns list should resemble the one pictured below.
Database Manager
Font settings.
Click the Apply button. You should see that the columns have been added to the
Database Manager (under this window). If you need to resize columns, you can click the
target column in the Display Columns list and then change the Display Width. You can
also click and drag column widths in the Database Manager (much like for MS Excel).
10. Click the Font tab. Choose a Font to use in the Database Manager that will make things
easier to read. For example, 10 point Verdana. Click Apply to test the font. When
satisfied, click OK.
11. We will change some of the operating defaults for the Database Manager. Open the
Tools menu and select Options. Be sure to configure at least the following:
a. Enable “Save Settings on Exit”.
b. Enable “Automatically Put Block on Scan after Modify”.
c. Select “Display in MODIFY Mode”.
13. Finally, Save the PDB. When finished, open the Database menu and Reload the PDB to
restart all tags with default start up settings. Your PDB should resemble the figure below.
Review Questions
1. What is the difference between Primary and Secondary tags?
3. What is the difference between opening a PDB file and reloading a PDB file?
4. What type of file can be used for bulk import and export of tags?
Review
Now that you have completed this module, you should be able to:
y Compare primary and secondary database tags.
y Describe the commonly used tag types.
y Discuss the Database Manager.
y Open, Close, Reload and Import/Export a Process Database in the Database Manager.
y Configure Database Manager Columns and Queries.