PID de Controlador Americano
PID de Controlador Americano
PID de Controlador Americano
May 2010
Welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Important Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
About this Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Using the Mouse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Selecting from Menus or Hierarchies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
What You Need to Get Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Contents iii
DeltaV Operate Run. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Diagnostics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
MPC Operate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
Process History View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
Installation Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
Other Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
OPC Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
DeltaV Excel Add-In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
DeltaV Reporter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
OPC Mirror . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Introducing DeltaV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Where to Find More Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
DeltaV Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
DeltaV Books Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
DeltaV Web Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
Paper Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
Technical Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
Windows Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23
Contents v
Line Styles and Fill Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
Links, Dynamic Properties, and Parameter References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
Creating Datalinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
Switching to DeltaV Operate in Run Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23
Dynamos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23
Creating a Pump Using a Dynamo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
Creating a Tank Using a Dynamo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
Finishing the Process Picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28
Trend Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30
Setting Previous and Next Pictures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32
Creating a Pushbutton to Start the SFC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Glossary-1
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index-1
Contents vii
viii Getting Started with Your DeltaV Digital Automation System
Welcome
Welcome to the Emerson Process Management DeltaV digital automation system.
The DeltaV system offers powerful, easy-to-use software for designing and operating
a process control application. The system uses many standard Windows features to
provide a familiar user interface.
This revision of Getting Started with Your DeltaV Digital Automation System supports
DeltaV Version 10.3 software. For earlier versions of the DeltaV software, retain the
manual applicable to that version.
Important Information
This book is intended for users of a new system, not one that is already controlling a
process. We recommend that you do not perform any tutorial procedures that involve
installation of configuration information into an operational system without fully
considering the impact of these changes.
The first user must log into Windows using the Administrator account. The
procedure for the first user’s logon differs between workgroups and domains. Refer to
the important information in “Setting Up Your First User Account” on page 2-27 for
instructions.
It is assumed that Windows software and the DeltaV software are installed on your
computer and that you are using a new DeltaV system. The Emerson recommended
Windows installation and the DeltaV installation procedure set up your computer to
operate properly with DeltaV software. Do not make any registry changes to your
operating system as these may result in unpredictable behavior.
Welcome ix
strategy and operator pictures for a simple process example. The scenario for the
process example is described in detail.
Chapter 3, Learning About the DeltaV Explorer, shows you how to open the
DeltaV Explorer and use the navigation features.
Chapter 4, Creating and Downloading the Control Strategy, steps you through the
creation of four modules for controlling a tank discharge and a sequential
function chart that defines the process startup sequence.
Chapter 5, Creating Operator Pictures, introduces the basic tools for using
DeltaV Operate in configure mode and shows you how to create a set of operator
pictures complete with colorful graphics, faceplate and detail pictures,
pushbuttons, and a trend chart.
Chapter 6, Using DeltaV Operate in Run Mode, shows the operator pictures from
the operator viewpoint and explains how to navigate the pictures, change
operating parameters, acknowledge alarms, and perform other operator tasks.
Chapter 7, Collecting and Displaying Data, shows how you can gather and display
system and process data using DeltaV tools, such as DeltaV Reporter and the
DeltaV Excel Add-In.
Chapter 8, Configuring the Network, Loading and Assigning Licenses, and
Setting Up User Accounts, steps you through the procedures for configuring
workstations, controllers, and I/O, and assigning licenses to workstations and
controllers.
The Glossary is limited to the terms introduced in this book. A more complete
glossary can be found in the DeltaV Books Online.
Assumptions
It is assumed that you are a control engineer getting ready to configure a DeltaV
application. You are familiar with control theory and are somewhat familiar with the
implementation of control systems.
Welcome xi
To be able to use the DeltaV system, the startup steps you need to perform are:
Hardware
The manual, Installing Your DeltaV Digital Automation System, also available as an online
book, describes the DeltaV system hardware and provides instructions for installing
and powering up the system.
Terminology
Control strategies in the DeltaV system are configured in modules. A module, which
is the smallest logical control entity in the system, contains algorithms, conditions,
alarms, displays, historical information, and other characteristics that define the
process equipment. Algorithms are the logical steps that define how the module
behaves. The DeltaV system provides control, equipment, and unit modules.
Generally, a control module contains one uniquely tagged control entity, such as a
control loop or motor, with its associated logic. Defining a module around a single
field device and its related control logic makes it easy to create, download, operate,
debug, and take a single module out of service without affecting other modules.
In this book, the instruction for starting the DeltaV Explorer is expressed as “Click
Start | DeltaV | Engineering | DeltaV Explorer.”
Many applications allow quick access to other DeltaV applications through buttons
on their toolbars and through an Applications menu. The following example shows
the Applications menu and some of the toolbar buttons in the DeltaV Explorer.
Engineering Tools
The main engineering tools are Configuration Assistant, DeltaV Explorer, Control
Studio, and, if you have a license for the batch applications, Recipe Studio. Others
include User Manager, Database Administrator, FlexLock, and System Preferences.
Auto-Update Service
Use the Auto-Update Service to set which files are automatically transferred
from the ProfessionalPLUS workstation to all other workstations after any node is
downloaded.
Configuration Assistant
If you are a first time user, Configuration Assistant is a great tool to learn the
basics of the DeltaV system. Once you become familiar with the configuration
methodology, you will most likely use the DeltaV Explorer.
Control Studio
Control Studio is used to design and modify the individual modules and
templates that make up your control strategy. With this application you can
graphically build a control module by dragging items from a palette to the module
diagram. You then “wire the items together” to create an algorithm for the module.
Database Administrator
The Database Administrator tools let users with the necessary administrator
privileges perform database maintenance tasks such as creating, deleting, copying, and
backing up databases.
DeltaV Explorer
The DeltaV FlexLock application creates dual desktops (Windows desktop and
the DeltaV desktop) on a single workstation to provide both a secure operating
environment and a wide open engineering environment. Access to a desktop is
determined by the current user's privileges.
The System Alarm Management application lets you view and work with
alarms within selected areas, units, modules, and Logic Solvers. It provides a way to
efficiently view multiple alarms, enable and disable multiple alarms, and set limits and
priorities on multiple alarms.
System Preferences
System Preferences allows you to tailor the Engineering Tools to hide any
functions that you do not require. Enabling or disabling a function causes the DeltaV
applications to reveal or conceal the applicable menus and choices without adding or
removing any application software.
User Manager
User Manager lets you specify access levels for groups and individuals. You
define the roles users can have (administrator, operator, engineer, and so on) and the
typical privileges and span of control required for each role. Then, when you create
individual user accounts, you specify the role or roles a user will have.
To be able to create or edit control modules, a user needs to have configure privileges.
Similarly, to download configuration changes, a user needs download privileges.
DeltaV Neural
DeltaV Predict
DeltaV Predict implements model predictive control for small and medium-
sized multivariable processes in DeltaV environments. DeltaV Predict allows you to
control interactive processes within measurable operating constraints while
automatically accounting for process interaction and measurable disturbances. DeltaV
Predict consists of:
Model Predictive Control (MPC) function block
MPC Simulation function block
Dynamos
MPC Operate application
DeltaV PredictPro
Inspect with InSight provides advanced process monitoring that allows you to
instantly identify under-performing loops and malfunctioning field devices. InSight
performance monitoring takes full advantage of the fieldbus block architecture
supported in the DeltaV system. The InSight user interface provides indices that
quantify loop utilization, measurements with a Bad, Uncertain or Limited status,
limitations in control action, process variability, and availability of recommended
tuning.
Operator Tools
The operator tools are used for the day-to-day operation of the process control
system. The primary operator tools are DeltaV Operate Run, Process History View,
Diagnostics, and Batch Operator Interface. The DeltaV Login application is used to
log in and out of the DeltaV system and to change the DeltaV system password.
Batch History View retrieves batch-specific data from the Batch Historian
database and allows you to view the data in several different formats. It is also possible
to add comments and have them saved as part of a batch's history in the Batch
Historian database.
The Batch Operator Interface is the graphical interface used by the operator to
monitor and control all automated batch operations. The Batch Operator Interface
provides the operator many different views into the batch production process.
Operators can easily switch between views by clicking on toolbar buttons.
DeltaV Login
The DeltaV Login application shows the current user and lets operators log on
and off the DeltaV system and change their DeltaV system password.
Diagnostics
The Diagnostics application provides you with information on the status and
integrity of the system devices. You can view the diagnostics information any time
after you have placed the system devices on the control network and downloaded
your workstations.
MPC Operate
DeltaV Process History View displays real-time and historical data from the
Continuous Historian as well as from the Event Chronicle. Module and node
parameters are plotted on a graph and events are displayed in a tabular (grid) format.
Other Applications
The following subsections contain information on other applications related to the
DeltaV system.
OPC Server
The DeltaV OPC Server works in the background and does not show up on the Start
menu. It makes data such as process data, alarms, diagnostics, and engineering
information easy to access and available for import into desktop applications such as
Microsoft Excel. The Real-Time Data Server also supports comprehensive analysis
tools such as historian packages, manufacturing systems, and laboratory management
systems.
OPC Mirror
The OPC (OLE for Process Control) Mirror connects OPC servers on multiple
control systems and enables bidirectional data traffic from one system to another.
This linkage can be between DeltaV OPC servers, DeltaV and PROVOX servers, or
several other OPC server combinations.
Introducing DeltaV
Introducing DeltaV lets you choose between the Configuration Assistant for a guided
tour of the DeltaV system or the DeltaV Explorer so you can easily get started using
the DeltaV software.
The DeltaV system provides online assistance in several forms. The Help system
can be accessed in DeltaV applications by pressing the F1 key, by clicking the Help
Topics button on the toolbar, or by selecting Help | Help Topics on the menu bar.
The Help Topics dialog has three tabs: Contents (for an expandable list of topics),
Index (for keyword search), and Find (for full-text search). If you need assistance on
using Help, one of the topics in every Help application is “Using Help.” Below are
examples of the Contents and Index tabs from the DeltaV Explorer Help.
Books Online provides an easy-to-use Table of Contents that lets you select a topic
from the contents on the left and view the topic in a window on the right. For
example, the figure below shows the contents under Function Blocks - General
Information (in the Configuration book). To move through a book, continue to click
the plus signs to expand the Table of Contents.
Paper Manuals
Most DeltaV product information is in Books Online. You can print single pages,
chapters, or whole books. You can also order a paper copy of most manuals from
Emerson Process Management.
Technical Service
There are several options available for technical service, including help desk support,
remote diagnosis, 24-hour emergency support, and software update service. The
technical support options are described in the Maintenance manual in the Books
Online.
The Technical Support telephone numbers are listed in the Help System under
Frequently Asked Questions, as well as in the Maintenance manual in the Books
Online.
A Look Ahead
The tutorials focus on developing the control strategy and operator pictures for a
process that involves monitoring the level in a tank and controlling the flow while
discharging the contents. The book contains six tutorials:
Chapter 3, Learning About the DeltaV Explorer, shows you how to open the
DeltaV Explorer and use the navigation features.
Chapter 4, Creating and Downloading the Control Strategy, steps you through the
creation of four modules for controlling the tank process and a sequential
function chart that defines the process startup sequence.
Chapter 5, Creating Operator Pictures, introduces the basic tools of the DeltaV
Operate application in configure mode and shows you how to create a set of
operator pictures complete with colorful graphics, faceplate and detail pictures,
pushbuttons, and a trend chart.
Chapter 6, Using DeltaV Operate in Run Mode, shows the operator pictures from
the operator viewpoint and explains how to navigate the pictures, change
operating parameters, acknowledge alarms, and perform other operator tasks.
Chapter 7, Collecting and Displaying Data, shows how you can gather and display
system and process data using DeltaV tools, such as DeltaV Reporter and the
DeltaV Excel Add-in.
Control Modules
The first thing you will do is create four control modules for the process equipment
and flow loop. In the figure above, the labels in the ovals (LI-101, MTR-101, and so
on) are the names you will give to the DeltaV control modules. The labels LT-1, FT-1,
XI-1, and so on, are the Device Tags that you will use for the transmitters, valves, and
other I/O instruments.
MTR-101 2-State Motor with Start and stop pump XI-1 ZX-1
interlocks
The Device Tags are assigned to I/O card channels as part of the I/O configuration
process, which is described in Chapter 8.
1. Set to automatic the flow loop controlling the outlet flow valve (FIC-101).
3. Wait for the regulatory valve to open, then open the block valve (XV-101).
Operator Pictures
You will also create a graphical representation of the tank system, similar to the one
shown below, for operators to use in monitoring and controlling the process.
Tip You can change the width of the columns in the right pane by pointing to the line between
columns in the column title bar, holding down the left mouse button, and dragging the line
right or left to the column size desired.
5. Click the other Function Block Template categories to see their contents.
6. Close the Function Block Templates.
Module Templates
Module templates provide basic control strategies for common control tasks such as
analog control, monitoring, motor control, and valve control.
3. Select PID_LOOP.
The contents are listed in the right pane.
4. Expand Motors-2State, then select MTR-11_ILOCK.
Context Menus
Pointing to an object and clicking the right mouse button displays a context menu that
allows you to perform different tasks, depending on the type of object.
3. Click Apply to send the time and date changes to the master time node, which
broadcasts the time to all nodes on the Control Network.
4. Click Close to close the dialog box without changing the time.
4. In the Physical Network Properties dialog box, click Browse and select the
workstation that you want to be the source for the master time.
Caution Do not change the time using the Windows date and time properties. Windows date and time
properties do not synchronize the time in all the workstations and controllers. Instead, use the
Set/Synchronize Network Time tool (accessed from the Tools command in the DeltaV
Explorer) to change the system time. This ensures that all workstations and controllers are
synchronized.
Be aware that setting and synchronizing the system time affects event journals and historical
data.
On Your Own
Take a few minutes to open and close different levels in the hierarchy to get familiar
with the database contents and with the navigation tools.
You can also take a look at some of the context menus. This will give you an idea of
how much you can do in the DeltaV Explorer application. At this point, however, do
not make any selections from the context menus.
Note This manual assumes that you are working on a new system or one that is in the
beginning stages of configuration—not one that is controlling a process.
1. In the DeltaV Explorer, point to Control Strategies and click the right mouse
button.
Note In naming the motor (MTR) templates, the following convention was used: the first digit
after MTR is the number of outputs; the second is the number of inputs. Thus, MTR-
11_ILOCK is for a motor with one output, one input, and interlocks.
4. Click the module name a second time (or click the right mouse button and select
Rename from the context menu).
Note If you are copying a module from an area, you must hold down the Ctrl key or the module
will be moved rather than copied to the new location. If you are copying a module from
the library, it is not necessary to hold down the Ctrl key while dragging the module.
Note If you are creating a module in a DeltaV Batch application, module names are limited
to 16 characters (letters, numbers, and underscores) and the first character must be a
letter. Dashes should not be used in any control module that will be used in the DeltaV
Batch system.
6. Click the minimize button in the upper right corner to minimize DeltaV
Explorer. It appears on the Windows taskbar at the bottom of your screen. To
reopen it later, simply click on its name in the taskbar.
It’s that easy. You now have a control module in your TANK-101 plant area.
Note If the palette is not showing, point to the edge of the Diagram window, hold down the
mouse button and drag the side of the window to resize it to show the palette column.
Note If another user has changed the Diagram Preferences (on the Diagram tab in the Layout
group), your pictures may look different than the ones in this book. The default settings
are shown below:
Parameter Filtering
Parameters are data used in module function blocks to perform calculations and logic.
Some parameters are defined and unchangeable for certain function blocks. Some
default to a most common value, but may be modified. Others must be set by the user.
Some function blocks have a large number of parameters. To help you quickly access
the ones you need, a number of parameter filtering options are available. In the
Parameter view, the Common configuration filter setting lists the parameters that are
most often used for the configuration of the control module. These parameters
generally have default values set, but should be modified to fit the application.
Parameters and parameter filtering are described in detail in the Books Online
Configuration manual.
(Another way to launch Control Studio is to click its button in the DeltaV
Explorer toolbar. We have minimized the Explorer to keep the desktop
2. To choose a template from the library, click the Main button, then click
New. On the New dialog, select Start from Existing and click the Browse button.
3. Click in the Object Type field at the bottom of the dialog box, and select Module
Templates.
5. In the Parameter View, scroll down the list if necessary, and select IO_IN_1.
6. Double-click the IO_IN_1 parameter to open the Properties dialog box.
7. In the Device Tag field, enter LSC-1. (LSC-1 is the Device Tag used in our tank
example for Limit Switch-Closed.)
The Device Tags for the tank application are listed in the table in Chapter 2.
To identify the Primary Control picture associated with this control module
1. In Control Studio, click the Main button, point to Module, then click Properties.
The Properties dialog box appears.
Note Picture file names must be alphanumeric and cannot contain the hyphen character, begin
with a number, or use a Visual Basic reserved word.
Note that the fields for Detail picture and Faceplate picture are already filled in.
All the control module templates in the library have pre-defined Detail and
Faceplate pictures associated with them.
3. Click OK.
1. Click the Main button, point to Download, then click Assign to Node.
The Browse dialog box opens.
3. Click OK.
Note After clicking OK in the Browse dialog box, an information message appears, notifying
you that assigning a module to a node will modify the database. Click Yes to confirm
that you want to assign the module.
4. In the Object Name box, type XV-101 as the name for this module and click
Save.
4. Click OK to close the message box and click OK on the Properties dialog.
You now have two control modules, one for the motor and one for the block
valve. You have learned quite a bit, which you will be able to put to use in the
following exercises.
If you want to take a break you can quit Control Studio by clicking the Close button in
the upper right corner. Before starting the next exercise, simply start Control Studio
from the Start button.
1. In Control Studio, click the Main button, then click New. The New dialog box
appears.
2. Select the Analog Input (AI) function block from the palette; drag-and-drop it
onto the Function Block diagram.
3. To find out more about this function block, point to the AI block, click the right
mouse button and select What’s this? from the menu.
5. In the list of parameters, double-click HI_HI_LIM (or click the right mouse
button and select Properties).
6. In the Properties dialog box, change the value to 1000 and click OK.
7. Double-click the IO_IN parameter.
2. Select the Output parameter, click the right mouse button, and select What’s
This? from the menu to get a description.
3. Drag-and-drop the Output parameter onto the diagram to the right of the AI
function block.
A Properties dialog box appears.
4. Click Enabled.
Note The line style can be changed in the Process History View application.
6. Use the default value of 60 seconds as the sampling period.
7. Click OK.
Later, we will assign the area (TANK-101) to the Continuous Historian subsystem,
enable history collection on the workstation, and download the workstation in order
to collect and view the historical data for the field values.
1. Click the Out connector on the AI block and hold down the left mouse button.
(The focus must be in Diagram View for this button to be active.)
Tip If you want to rearrange the diagram, click one of the function blocks and move it. The
connector line moves and resizes automatically.
We have abbreviated the instructions for finishing the module. If you have forgotten
any of the steps, refer to the details in Exercise 4.
1. Right-click the Diagram View, then click Properties and set the Primary Control
picture to TANK101.
3. Save the control module in area TANK-101 under the object name LI-101.
When you have finished, quit Control Studio. Do not simply minimize Control
Studio. In the next exercise, we will show you a new way to open Control Studio
directly from the Explorer. If you minimize Control Studio, you will have two copies
of Control Studio open.
If you have the DeltaV Explorer minimized, restore it to full size by clicking on its
name in the Windows taskbar at the bottom of your screen. Otherwise, open it from
the Start button.
3. Select FIC-101, click the right mouse button, and select Assign.
Alternatively, drag-and-drop FIC-101 from the TANK-101 area to the controller
object under the Physical Network | Control Network.
4. In the Browse dialog box, select the controller and click OK.
Note After clicking OK in the Browse dialog box, an information message appears, notifying
you that assigning a module to a node will modify the database. Click Yes to confirm
that you want to assign the module.
2. If necessary, click the List button to display the contents of the right pane as
shown in the next figure.
3. Select PID1 (the PID loop function block) and make the following changes to
the parameters in the right pane.
d. Double-click RESET and change the value from 10 to 3 (that is, 3 seconds per
repeat).
Only three of the alarms, HI_ALM, LO_ALM, and PVBAD_ALM are enabled. For
the example, you will modify the HI_ALM slightly to change the value from 95 to 90.
This means that an alarm will be activated if the flow goes above 90 gallons per
minute.
1. Double-click HI_ALM (or select HI_ALM in the Alarm View, click the right
mouse button, and select Properties).
You have already named the module and assigned it to the controller.
Tip If you have access to a printer, you can print out the diagram, which includes
Configuration Tips. Click the Main button, then click Print. Click the diagram check
The motor module, shown later in this exercise, includes these function blocks, all of
which are from the palette group named Logical:
Eight Condition blocks (CND)
Boolean Fan Input (BFI) block
Logical And (AND), logical Not (NOT), and logical Or (OR) blocks
Device Control (DC) block
The CND, BFI, AND, NOT, and OR blocks are used to specify the interlock logic.
The DC block is for motor control.
Some of the things you will do in this exercise are:
Delete the excess condition blocks.
Specify the interlock conditions using the remaining three condition blocks.
Specify the Device Signal Tags for the input and output parameters.
Change the Detail picture associated with this module to one that has three
conditions rather than eight.
3. If TANK-101 is not in the Look in field, open the pull down list and select
Control Strategies. In the large center box that lists the contents of Modules,
double-click TANK-101.
6. Change the palette to Logical so you can easily access the descriptions for the
individual blocks.
(Remember, you can point to a palette item or a function block on the diagram, click
the right mouse button, and select What’s This? for a description.)
1. Place the mouse pointer outside the upper left corner of CND4.
The boxes named CND4 Through CND8 should be selected. If not, click a blank
spot and try again.
3. Press the Delete key to delete the selected items. (Or click the right mouse
button and select Delete from the context menu.)
The Expression Assistant inserts the characters shown in the following table when
constructing expressions. If you type the expressions without using the Expression
Assistant, you need to use these characters in the same way.
Parameter Tagnames
Parameter values are defined by their tagnames (tags, for short) in the form:
module/function block/parameter
When identifying parameter tags, you can build the tags from scratch by typing them
in or you can use the parameter browser, which is a tool for searching the database.
1. On the View tab, in the Windows group, click Arrange so that you can see all the
views again.
3. Click the right mouse button and select Expression from the menu to open the
Expression Assistant.
5. Click the External Parameter button. This button browses for parameters that
are external to the current parameter.
The Browse dialog box opens.
7. Double-click these items in each succeeding level: XV-101, DC1, PV_D and CV.
The Expression Assistant assembles the tagname and puts it in the Expression
box.
XV-101 is the module for the block valve; DC1 is the function block; PV_D.CV is the
current value for the process value; and CLOSED is one of the states in the named
set, vlvnc-pv. The expression indicates that an interlock should occur (the motor
should shut off) if the block valve is closed. (A named set is simply a way to define
names and equate them to integer values. Named sets are defined in the DeltaV
Explorer, under System Configuration | Setup.)
1. Select the CND2 block and use the Expression Assistant to specify the interlock
condition as:
'//LI-101/AI1/PV.CV'< 100;
LI-101 is the control module for the level indicator. AI1 is the analog input
function block. PV.CV is the parameter for the analog input current value. The
expression indicates that an interlock should occur (the motor should shut off) if
the tank level goes below 100 gallons.
To specify the third condition (the regulatory valve is less than 5 percent open)
1. Select the CND3 block and use the Expression Assistant to specify the interlock
condition as:
'//FIC-101/PID1/PV.CV' < 5;
FIC-101 is the module for controlling the outlet flow (regulatory) valve. PID1 is
the loop function block, and PV.CV is the parameter indicating the current state
of the valve (percent open). The expression indicates that an interlock should
occur if the valve is less than 5 percent open.
1. In the Function Block diagram, click the Device Control function block, DC1.
3. In the Properties dialog box, type XI-1 in the Device Tag field and click OK.
(If you have configured the controller and I/O channels, as described in Chapter
8, you can browse for the Device Tag under the controller.)
The parameter field is automatically set to the correct parameter,
FIELD_VAL_D.
4. Double-click the IO_OUT_1 parameter. (This is the output signal from the
Discrete Loop block to the field device.)
5. In the Properties dialog box, type ZX-1 in the Device Tag field and click OK.
The parameter field is automatically set to OUT_D.
1. Open the Properties dialog and set the Primary Control picture on the Displays
tab to TANK101.
Note that this module has two predefined pictures: DL_DT8 for the Detail
picture and DL_FP for the Faceplate picture.
5. Minimize Control Studio by clicking the Minimize button in the upper right
corner.
3. Point to Named Sets in the left pane, click the right mouse button and select
New | Named Set.
A new entry, NamedSetn (where n is the next number available), is added to the
end of the list of existing named sets. The entry is in an edit box, ready to be
renamed.
5. Double-click SFCCTRL (or select SFCCTRL, click the right mouse button, and
select Properties from the menu).
The Properties dialog box appears.
7. Click Add.
The State Properties dialog box appears.
11. Click OK to save the set and close the dialog box.
1. Restore Control Studio by clicking its button on the Windows task bar.
3. In the New dialog box, select Control Module or Template as the Object Type.
4. Select Sequential Function Chart as the Algorithm Type and click OK.
A new SFC diagram opens, with a single step, S1.
1. Click in the Parameter View, click the right mouse button, and select Add from
the menu.
The Properties dialog box appears.
4. For the Named set and Named state, browse and select SFCCTRL |IDLE.
5. For the Action type, select Assignment. (This type assigns the result of an
expression to a destination.)
7. To set the setpoint to the IDLE state, type the Action expression:
'SP':='SFCCTRL:IDLE'; (remember: named sets are case-sensitive.)
8. Click OK on the Properties dialog box. If necessary, make any corrections, and
click OK.
9. Select the step action (A1) in the Step Action View, right-click and select
Rename, and change the name to SET_TO_IDLE.
Giving the step actions meaningful names instead of A1, A2, etc., helps you
identify a particular action you may want to modify.
1. From the palette of All SFC Items, click Transition, drag to a point below
the box named STOP_AND_WAIT, and release the mouse button.
A plus sign named T1 appears.
2. Click the right mouse button and select Properties (or double-click the
transition).
The Properties dialog box appears.
3. Enter the transition description (Wait until Start), open the Expression Assistant
and build the condition statement:
'SP'= 'SFCCTRL:START'
1. Repeat the procedures for adding steps and transitions using the information in
Table 4-2, which follows. (Drag-and-drop Step and Transition icons from the
palette or use the Sequence item on the palette to automatically add multiple steps
and transitions in one operation. Use a Termination icon for the last transition.)
Tip On the View tab, in the Diagram group, click Diagram Preferences and check Display
Grid and Snap to Grid to help you line up the SFC objects on the diagram.
Note In the example, all Action Types are Assignment; all Action Qualifiers are Pulse,
except for Action 2 in Step 2, which has an Action Qualifier of Non-stored. (The reason
is that if Action 2 Step 2 were Pulse, it might not get set because it waits until the actual
mode is Auto. It would fail on the first try and never be set.)
2. Use the Connect Mode tool to connect the steps and transitions in order.
3. Change the step and transition names by clicking the right mouse button,
selecting Rename, and typing the Name listed in the table.
* IMPORTANT: Step actions use a special assignment operator (:=) and end with a semicolon (;). Transitions use an
equals sign (=) to indicate that when the condition is true, the next step should be made active. Parameter values are
enclosed in single quotes.
1. Select File Properties and set the Primary Control picture to TANK101.
2. Click the Assign to Node button on the toolbar and assign the SFC module to
the controller.
3. Click the Save button and save the SFC module as SFC-START.
4. Quit Control Studio by clicking the Close button in the upper right corner.
Important If you are working on a system that is controlling a process, it is recommended that you
do not perform any downloads for this tutorial unless you understand the impact of doing
so.
Note You must load and assign the controller licenses before downloading the modules to the
controller. Loading and assigning licenses is described in Chapter 8.
1. Open (or restore) the DeltaV Explorer and open System Configuration |
Physical Network | Control Network | CTLR1 (or your controller name) |
Assigned Modules. (This shows you all the modules you have assigned to the
controller.)
2. Point to Control Network, click the right mouse button, and select Download
| Control Network.