Ap09 600
Ap09 600
AP09-600
Implementation
Advanced Process Manager - 1
While this information is presented in good faith and believed to be accurate, Honeywell disclaims
the implied warranties of merchantability and fitness for a particular purpose and makes no
express warranties except as may be stated in its written agreement with and for its customer.
Contacts
World Wide Web
The following Honeywell Web sites may be of interest to Industry Solutions customers.
Honeywell Organization WWW Address (URL)
Corporate http://www.honeywell.com
International http://content.honeywell.com/global/
Telephone
Contact us by telephone at the numbers listed below.
Organization Phone Number
Honeywell International
Process Solutions
2500 West Union Hills Drive
Phoenix, AZ 85027
1-800 343-0228
About This Publication
This publication supports TotalPlant® Solution (TPS) system network Release 640.
TPS is the evolution of TDC 3000X.
This publication defines the Advanced Process Manager I/O and control functions that
are available in software Releases 500 - 600. Used as a reference manual for process
engineers, control-system engineers, and application engineers who design and
implement data-acquisition and control strategies for TPS systems with Local Control
Networks and Universal Control Networks.
The user should be familiar with the system control functions described in System
Control Functions in the Implementation/Startup & Reconfiguration - 2 binder before
using this publication.
Detailed descriptions of the parameters mentioned in this publication can be found in the
Advanced Process Manager Parameters Reference Dictionary.
1 INTRODUCTION
1.1 General Description
1.1.1 I/O Functions
1.1.2 Control Functions
1.2 Common Functions
1.2.1 Point Form
1.2.2 Associated Display
1.3 Alarming
1.3.1 Alarm Priorities
1.3.2 Alarm Enable Status
1.3.3 Contact Cutout
1.3.4 Primary Module Point
1.3.5 Auxiliary Units
1.4 Red Tagging
1.5 References
2 I/O FUNCTIONS
2.1 Overview
2.2 High and Low Level Analog Input Point
2.2.1 PV Characterization
2.2.2 PV Range Checking and Filtering
2.2.3 PV Source Selection
2.2.4 Alarming
2.2.4.1 Disable Input Alarming When Using Open-Line Detection
2.3 Smart Transmitter Interface Point
2.3.1 Parameter Comparisons
2.3.2 STI IOP Functions
2.3.3 Smart Transmitter Communication Modes
2.3.4 Database Considerations
2.3.5 Point States
2.3.6 STI IOP Commands
2.4 Analog Output Point
2.4.1 Direct/Reverse Output
2.4.2 Output Characterization
2.4.3 Calibration Compensation
2.4.4 Disable Output Alarming when Using Open-Line Detection
2.5 Digital Input Point
2.5.1 Status Digital Input Point
2.5.2 Latched Digital Input Point
2.5.3 Accumulation Digital Input Point
2.5.4 Sequence Of Events Digital Input IOP
2.6 Digital Output Point
2.6.1 Pulse Width Modulated (PWM) Output Type
2.6.2 Status Output Type
2.6.3 Initialization Request Flag
2.7 Pulse Input Point
2.7.1 Operation
2.8 Serial Interface
2.8.1 Operation
2.8.2 Configuration
2.8.3 Checkpointing and Startup
4.1 Description
4.2 Point States
4.2.1 Normal States
4.2.2 Momentary States
4.2.3 Moving/Bad States
4.3 Mode Attributes
4.4 Interlocks
4.4.1 Permissive Interlocks
4.4.2 Override Interlocks
4.4.3 Configurable Interlock Bypass
4.4.4 Safety Interlocks for State 0 (SI0)
4.5 Commanded State (OP)
4.6 Digital Outputs
4.6.1 Latched Output
4.6.2 Pulsed Output
4.7 Output Connections
4.7.1 Digital Output Point—Latched Output
4.7.2 Digital Output Point—Pulsed Output
4.7.3 Logic Slot Flags
4.7.4 APM Box PV Flags
5 LOGIC POINT
5.1 Functions
5.2 Configuring the Logic Point
5.2.1 Logic Input Connections
5.2.2 Flags
5.2.3 Numerics
5.2.4 Logic Blocks
5.2.5 Output Connections
5.2.6 Generic Descriptors
5.3 Logic Block Algorithms
5.3.1 Null (Null)
5.3.2 AND Gate (AND)
5.3.3 OR Gate (OR)
5.3.4 NOT Gate (NOT)
5.3.5 NAND Gate (NAND)
5.3.6 NOR Gate (NOR)
5.3.7 XOR Gate (XOR)
5.3.8 Qualified OR Gate with 2 Inputs ON (QOR2)
5.3.9 Qualified OR Gate with 3 Inputs ON (QOR3)
5.3.10 Switch (SWITCH)
5.3.11 Compare Equal with Deadband (CE)
5.3.12 Compare Not Equal with Deadband (NE)
5.3.13 Compare Greater Than with Deadband (GT)
5.3.14 Compare Greater Than or Equal with Deadband (GE)
5.3.15 Compare Less Than with Deadband (LT)
7 REGULATORY PV POINT
7.1 Features
7.2 PV Input Connections
7.3 PV Algorithm Calculation
7.4 PV Range Check and Filtering
7.4.1 PV Value Status
7.5 PV Source Selection
7.6 PV Alarm Detection
7.7 PV Algorithms
7.7.1 Data Acquisition (DATAACQ)
7.7.2 Flow Compensation (FLOWCOMP)
7.7.3 Middle of Three Selector (MIDOF3)
7.7.4 High Selector, Low Selector, Average (HILOAVG)
7.7.5 Summer (SUMMER)
7.7.6 Variable Dead Time with Lead-Lag Compensation (VDTLDLG)
7.7.7 Totalizer (TOTALIZR)
7.7.8 General Linearization (GENLIN)
7.7.9 Calculator (CALCULTR)
8.1 Functions
8.2 Control Input Connections
8.3 PV Source Selection (Pid, PosProp, and RatioCtl Algorithms)
8.4 Modes
8.4.1 Mode Attribute
8.4.2 Normal Mode
8.4.3 Normal Mode Attribute
8.4.4 Remote Cascade Handling (Pid Algorithms)
8.5 Safety Shutdown
8.6 External Mode Switching
8.7 Setpoint Handling
8.7.1 Setpoint (SP) Limits (Pid, PosProp, PidPosPr, and RatioCtl
Algorithms)
8.7.2 SP Target-Value Processing (Pid, PosProp PidPosPr, and RatioCtl
Algorithms)
8.7.3 PV Tracking (Pid Algorithms)
8.7.4 Deviation and Advisory Deviation Alarming
8.7.5 Bad Output Alarm
8.7.6 Ratio and Bias Options (Pid Algorithms)
8.7.7 SP Access Restrictions
8.8 Setpoint/Output (SP/OP) Tolerance Check
8.9 Alarm Detection
8.10 Control Output Processing
8.10.1 Initial Control Processing
8.10.2 Output High and Low Limits
8.10.3 Output Rate-of-Change Limits
8.10.4 Output Minimum-Change Limit
8.10.5 Output Limiting in Manual Mode
8.10.6 Control Output Connections
8.11 Initialization
8.11.1 PV Initialization
8.11.2 Control Initialization
8.12 Windup Protection
8.12.1 Windup Status
8.12.2 Status Propagation
8.13 Override Control
8.13.1 O/R Status and Feedback
8.13.2 Processing in an Override Control Strategy
8.13.3 Guidelines for Using Override Control
8.14 Control Algorithms
8.14.1 Proportional, Integral, Derivative (PID)
8.14.2 PID with Feedforward (PIDFF)
8.14.3 PID with External Reset-Feedback (PIDERFB)
8.14.4 Position Proportional Controller (POSPROP)
8.14.5 PID Position Proportional Controller (PIDPOSPR)
8.14.6 Ratio Control (RATIOCTL)
8.14.7 Ramp and Soak (RAMPSOAK)
8.14.8 Auto Manual (AUTOMAN)
10 ARRAY POINTS
11.1 Features
11.2 General Description
11.3 Input Connections
11.3.1 Digital Inputs
11.3.2 Logic Inputs
11.3.3 Secondary Variable Input
11.3.4 Local Manual Input
11.4 Output Connections
11.4.1 Digital Outputs
11.4.2 Logic Output Connections
11.5 Alarms
11.6 Maintenance Statistics
INTRODUCTION
Section 1
This section contains an introduction to the Advanced Process Manager Control functions, and also
provides references to other publications that are useful or necessary in implementing control
system functions.
The Advanced Process Manager (APM) is designed to provide flexible and powerful
process scanning and control capabilities. To do this, it uses a powerful multiprocessor
architecture with separate microprocessors dedicated to perform specific tasks. As depicted
in Figure 1-1, the APM consists of the Advanced Process Manager Module (APMM) and
the I/O Subsystem.
The APMM consists of a Communication Processor and Modem, I/O Link Interface
Processor, and Control Processor. APMM redundancy can be optionally provided. The
Communication Processor is optimized to provide high performance network
communications, handling such functions as network data access and peer-to-peer
communications. The Control Processor is the APM resource dedicated to executing
regulatory, logic, and sequence functions, including a powerful user programming facility.
Because communication and I/O processing are performed by separate dedicated hardware,
the full power of the control processor can be applied to control strategy implementation.
The I/O Link Interface Processor is the interface to the I/O Subsystem.
The I/O Subsystem consists of a redundant I/O Link and the I/O Processors. These I/O
Processors handle all field I/O for both data acquisition and control functions. The I/O
Processors, for example, provide such functions as engineering unit conversion and alarm
limit checking independent of the APMM. All control operations are performed within the
APMM, with all data acquisition being performed in I/O Processors. The process engineer
has complete flexibility of choice, within the maximum APM design limits, in the
assignment of point types and control strategies. The interactive tools provided by both the
TotalPlant Solution (TPS) System Universal Station and Universal Work Station are used
to implement these selections. Refer to Section 31 in the Engineer’s Reference Manual for
more information.
NETWORK
INTERFACE
MODULE
Optional
HIGH LEVEL LOW LEVEL DIGITAL DIGITAL Fiber
ANALOG ANALOG INPUT INPUT Optics
INPUT INPUT PROCESSOR Sequence Of Extender
PROCESSOR PROCESSOR Events
Processor to Remote
16 8 32 32 IOPs
8 16, 32
The I/O Processors, in conjunction with Field Termination Assemblies (FTAs), perform
input and output scanning, and processing on all field I/O. A redundant I/O Link is standard
for added security. I/O processing is performed separately from control processing functions
so that I/O scan rates are completely independent of I/O quantity, controller loading,
processing, and alarming. This partitioning of processing requirements allows more
efficient use of control processor capability and future integration of additional I/O
Processor types.
The following I/O Processors (IOPs) are available for the APM:
Up to 40 of the above I/O processors can be selected in any mix. An option allows
redundant Analog Output and High Level Analog Input processors (up to 40 primary and 40
redundant IOPs). Each of the I/O processor functions is described in Section 2.
The APM provides a variety of control tools that can be customized to address a wide range
of process automation needs. Functions from I/O scanning, through regulatory and logic
control to more advanced control can be easily implemented through the APM. The APM
toolbox includes a sophisticated regulatory control package, fully integrated interlock logic
functions, and an advanced process engineer-oriented Control Language (CL/APM).
CL/APM is an enhanced version of the Control Language implemented by Honeywell in the
Multifunction Controller, Process Manager, and Application Module. This language facility
includes the sequence structures needed to handle batch or hybrid applications as well as the
computational capability needed for some continuous control tasks. Key to the power of this
control capability is that each of the functions shares data freely within the APM and can
share data from other devices on the Universal Control Network.
• Regulatory PV • Array
• Regulatory Control • Process Module
• Digital Composite • Device Control
• Logic • Box Flag, Numeric, and Timer
Each of these data point types is described beginning with Section 3 of this publication. In
addition, the descriptions of the Regulatory PV (RegPV) and Regulatory Control (RegCtl)
points also contain detailed descriptions of the algorithms associated with the respective points.
Separate functional elements of the APM are used to implement various parts of typical control
loops and control strategies. Each of these functional elements can be assigned a user-defined
point name to allow for location-independent reference to the data associated with that function.
For example, points are assigned by the user for analog input and analog output slots. The I/O
Processor data (engineering-unit range for inputs, characterization option for outputs, etc.) is
configured as part of the point-build process for these points. A separate point would be
configured for each regulatory control (RegCtl) slot that would be linked to the assigned analog
I/O points through input/output connections.
The APM provides a configurable parameter called PNTFORM (Point Form) that allows the
user to define which points are to be used as the primary operator interface for point data. The
PNTFORM parameter provides the user with two choices for point form: "Full" and
"Component." Points that are configured as having "Full" point form include alarm-related
parameters and sometimes, some other miscellaneous parameters. This information is needed
when the point is to be used as the primary operator interface to the point's data.
Component point form should be used for points that provide inputs to the "Full" point, and
for those points that handle the outputs from the "Full" points. "Component" points should
be used as part of the "Full" point that has been designated a primary operator interface
point.
NOTE
The maximum number of points per Network Interface Module (NIM) is 8000. Both full and
component points should be counted when checking against this limit. Note that for the
DI and DO portions of a digital composite point, the inputs and outputs from/to the digital
composite point are not to be counted as part of the point total if they are implemented
using the hardware reference source and destination addresses that are entered on the
respective configuration form for the digital composite point.
CAUTION
Database security is provided to prevent an operator from starting an IOP that has an invalid
database. After initial configuration, each IOP must be set valid. Validating the database of an
IOP by selecting the VALIDATE IOP DB target on the display with the keylock in the Engineering
position causes the IOP database to be accepted as is (that is, default/null configuration or
configuration loaded from IDF). When the IOPs are marked valid, select SAVE DATA to
checkpoint the configured data. You cannot checkpoint unless the IOP database is marked
valid. Restoring the database from a valid checkpoint also sets the IOP database valid. An IOP
cannot be switched from Idle to Run unless its database is valid.
The following paragraphs provide examples of the usage of the "Full" and "Component"
point forms.
In Figure 1-2, a single-loop PID controller has the PV of a Smart Transmitter Interface
point (FT100) connected to the PV of a RegCtl point (FIC100) that has been configured for
a PID algorithm. The output (OP) of the RegCtl point is applied to an analog output (AO)
point (FY100). In this case, FIC100 is the primary operator interface and is configured as a
"Full" point. FT100 and FY100 are parts (components) of FIC100, and could be configured
as "Component" points.
FIC100
PNTFORM = FT100 PV OP FY100 PNTFORM =
REGCTL
Component STI AO Component
PID ALGO
PNTFORM =
Full
SMART FIELD
TRANS- DEVICE
MITTER
Figure 1-3 shows a single-loop PID controller that is controlling mass flow. The mass flow
is computed by the flow compensation PV algorithm in regulatory PV (RegPV) point
(FX101). FX101 receives three PVs representing the uncompensated flow, absolute
pressure, and absolute temperature from AI points FT101, PT101, and TT101. FX101
provides the PV as mass flow to a RegCtl point (FIC101) that has been configured for a
PID algorithm. FIC101 provides an output to an AO point (FY101).
In this example, FIC101 is the primary operator interface and would be configured as a
"Full" point. FX101 is part of FIC101 and would be configured as a "Component" point.
FT101, PT101, and TT101 could be configured as "Full" or "Component " points. "Full"
would be selected for any of these points that require separate alarm reporting, such as
alarming for uncompensated flow, line pressure, or fluid temperature. FY101 must be
configured as a "Component" point.
FX101 FIC101
PNTFORM = REGPV PV REGCTL PNTFORM =
Component MASSFLOW ALGO PID ALGO Full
OP
PNTFORM =
Full or Component
PNTFORM =
FT101 PT101 TT101 FY101 Component
AI AI AI AO
Figure 1-4 shows a single-output, single-input digital composite point (MTR100) that
interfaces a motor control circuit through digital output (DO) point MTR100OP, and digital
input (DI) point MTR100FB. In this example, MTR100 is the primary operator interface
and would be configured as a "Full" point. MTR100OP and MTR100FB are parts of
MTR100 and would be configured as "Component" points.
Note that assigning point names in this example for the standard digital input point and
digital output point is optional. These points can be alternatively referenced, using the
hardware reference addresses that would be assigned as the source and destination on the
configuration form for the digital composite point.
MTR100
MTR100OP
OP
DO
(See Note)
DO
PNTFORM = TO /FROM
Full MOTOR CONTROL
CIRCUIT
MTR100FB
DI PV
DI
PNTFORM =
Component
DIGITAL COMPOSITE
POINT
Figure 1-5 shows three types of stand-alone points. FT102 and CT105 are points that could
be used for data acquisition; in this case these points would be configured as full points. For
the stand-alone digital output (DO) point SW103, a digital composite (DigComp) point
would be used and would be configured as having 0 (zero) inputs and 1
output.
FIELD FT102
DEVICE AI PV
PNTFORM = Full
FIELD CT105
DEVICE DI PV
PNTFORM = Full
FIELD OP SW103
DEVICE DO
With Release 510 and later software, an Associated Display can be configured for each
HPM point at build time by entering the name of a custom built schematic in the
ASSOCDSP parameter. At operating time, the operator can call up that associated custom
schematic from a point Detail Display or Group Display.
The ASSOCDSP parameter can be changed from the configuration page of the Detail
Display (for points that have a configuration page). The keylevel must = Engineer.
1.3 ALARMING
The following paragraphs describe the common alarming functions that can be configured
for APM points. The alarm parameters available depend on the point type. Refer to the
individual point description for details. Alarm detection and reporting for a point can be
configured only if the full point form is specified.
1.3.1 Alarm Priorities
For each point, a separate alarm priority can be specified for each alarm (for example, PV
high alarm can be low priority but PV high high alarm can be emergency). The following
alarm priorities are supported for APM points:
Emergency
High
Low
Journal
JnlPrint
Printer
NoAction
The Journal option causes alarms to be journaled only. The JnlPrint selection causes alarms
to be journaled in the HM and printed. If the Printer option is selected, alarms are printed
but not journaled. Note that if the printer is not working, alarms could be lost.
Alarm priority configuration information is maintained by the NIM.
1.3.2 Alarm Enable Status
Alarm enable status is applicable to full point forms and allows the user to enable, disable,
and inhibit alarms. This function is accomplished through the ALENBST parameter. The
alarm enable status function is resident in the NIM.
The main purpose of the contact cutout function is to prevent a proliferation of alarms from
being reported to the operator. This function can be used to cut out alarms on a point when they
are generated because of alarm conditions that have been detected at other points. Contact
cutout is provided for all the point types in the APM and is implemented through the
CONTCUT parameter. Another point or CL program must write to the CONTCUT parameter
in order to change the Contact Cutout state.
When the contact cutout state is applied, alarms at the point are cut out. New alarms are not
reported on the alarm summary display at the Universal Station, nor are they journaled on the
History Module or Real Time Journal. This is the same way inhibited alarms are handled except
Cutout alarms continue to be reported to the AM or CM60 for event initiated processing (EIP).
A Contact Cutout True message is journaled for points that are in alarm when cutout. For points
that are not in alarm when cut out, no message is journaled.
On event recovery (for example, node failover), the system journals a Contact
Cutout True message for points that are currently in alarm and cut out.
When Contact Cutout is removed, points that were in alarm are checked and if the
alarm condition still exists, the system generates a new alarm with a current
timestamp. A Contact Cutout False message is journaled for points that returned to
normal while cut out. No message is journaled for points that were not in alarm
while cut out.
NOTE
A network configuration option provides two choices for handling unacknowledged alarms
that exist on the US Alarm Summary display when Contact Cutout is applied:
• CLEAR IMMEDIATELY clears all of the point’s unacknowledged alarms from the
display.
• CLEAR WHEN ACKED (also called the Backlight Option) leaves unacknowledged
alarms on the display and the time stamp is backlit. The alarms are cleared when they
are acknowledged.
If the second option (above) is selected, the complete backlighting action is as follows:
• If an a point’s alarm state returns to normal while the point is cutout, the timestamp
remains backlit. When cutout is removed—
backlighting is removed from the timestamp
the point’s priority indicator is backlit (indicating return to normal)
a contact Cutout False message is journaled.
• If the NIM fails over while Contact Cutout is applied to any point, the point’s
tagname is backlit in addition to it’s timestamp. As soon as communication
is restored, backlighting is removed from the tagname.
Alarmable NIM points in Release 520 and later software have an Auxiliary Unit
($AUXUNIT) parameter. If this parameter is set to null (- -), alarms and messages on that
point go to the primary unit. If a valid Unit ID is specified, alarms and messages from that
point go to the Auxiliary Unit.
$Auxunit can be configured at build time or, with the proper keylevel, it can be initially
assigned or changed by schematics, CL programs, the DEB alter parameters function, or
from the configuration page of the Point Detail display. The keylevel necessary to change
$AUXUNIT is configurable in the System Wide Values section of the Network
Configuration File.
Alarms from a point where $AUXUNIT has been configured are accepted only by Universal
Stations having an Area Database in which both the Primary Unit and the Auxiliary Unit are
configured.
If an $AUXUNIT assignment is changed and there are outstanding alarms on the old unit,
alarms are deleted from the old unit and added to the new unit.
A point can be "red tagged" to indicate that it requires maintenance. This is accomplished
by setting the REDTAG parameter to On. Typically, the operator sets the output of the point
to a desired safe value before putting on the red tag. Once red tagged, the mode, mode
attribute, external mode switching state, and output cannot be changed. The point cannot be
reconfigured or deleted if the red tag is On. Red tagging is supported for only the analog
output, RegCtl (only if it is outputting to an AO or a PWM DO Processor), and digital
composite point types. A point must be configured for the full point form in order to be red
tagged.
The mode and the mode attribute of the point must be changed to Man and Oper,
respectively, and the external mode switching state, if configured, must be Disabled before
the point can be red tagged. To red tag a digital composite point, the output of the point
must not be configured for the momentary state.
The Red Tag function prevents changes to the output on a point that has the REDTAG
parameter set to ON, but it may still be possible to change the output connected to the field.
For example, even if a Digital Composite point has REDTAG set to ON, a program/Logic
Block can still change the state of the Digital Output.
1.5 REFERENCES
The following publications contain information related to the control functions described in
this publication:
I/O FUNCTIONS
Section 2
This section defines the I/O functions available in the APM analog and digital data points. The APM
control functions are described beginning with Section 3. Definitions of the parameters mentioned in
this section can be found in the Advanced Process Manager Parameter Reference Dictionary, which
is in this binder.
2.1 OVERVIEW
The analog and digital data points in the I/O Processors (IOPs) perform input and output
processing on all field I/O. These functions are performed independently of the control
functions. The partitioning of processing requirements allows more efficient use of control
processor capability and future integration of additional IOP types. The following I/O points
are available in the APM, and are described in this section:
• Analog Output
• Digital Input
• Digital Output
• Pulse Input
• Serial Interface
To support on-line field maintenance activities, Standby Manual units are recommended for
the Process Manager AO and DO I/O Processors.
*Note that a Serial Device Interface (SDI) IOP is configured as a Smart Transmitter Interface (STI) IOP.
The analog input point converts an analog PV signal received from a field sensor to
engineering units for use by other data points in the APM, and by the rest of the
TotalPlant Solution (TPS) system. To accomplish this function, the analog input point
(shown in Figure 2-1) performs
• PV characterization
• PV source selection
• Alarm detection
High level points are located in the High Level Analog Input (HLAI) IOP. One type of
low level point is located in the Low Level Analog Input (LLAI) IOP. This type is
generally used for control points. The other type is located in either the Low Level
Multiplexer (LLMUX) or the Remote Hardened Multiplexer (RHMUX) IOP. This type is
generally used for data acquisition points. The type of analog input point needed is based on
the type of field sensor that is providing the input to the point and the characterization
options selected by the user as listed in Table 2-1.
PVRAW
P
V
SENSRTYP 15V DegreesC
P4 2 V DegreesF
C PVTEMP
05V H DegreesK
0-100 MV A DegreesR
PVRAW
Thermcpl R
A
Rtd Normal
C
Slidewire TCRNGOPT
T Extended
E
Therm
R
PVCHAR Rtd Direct
I
Linear INPTDIR
Z
Reverse
Sqrroot A
T
I OTD (Open Thermocouple
PVEULO
O Detection)
PVEUHI N
PVCALC
(in Eu)
PVCLAMP Noclamp
PVEXEUHI Range Clamp
PVEXEULO Checking
PVEXHIFL
& PV
TF PVEXLOFL
Filtering
PVAUTO
PNTFORM
Componnt
PVMan or PVSub Full
(from Operator or Program)
PVAUTO PV
PVSOURCE
Man/Sub Auto Auto
PVEUHI PVP (PV in %)
Man/Sub NORMALIZATION
PVEULO LASTPV
PV
ALENBST
Enable Inhibit
Disable
HIGHAL
Half
One A
Two L
PVALDB Three A
Four R
Five M
PVHTP PVHIFL
D
PVHPR E
• •
• T •
PV ALARM •
• E • PV ALARM
TRIP POINTS • •
• C FLAGS
AND PRIORITIES
PVROCPTP T PVROCNFL
PVROCPPR I PVROCPFL
O
N
PTINAL
2.2.1 PV Characterization
The PV signal received from the field is characterized based on the entries that the user
makes for the SENSRTYP, PVCHAR, PVTEMP, INPTDIR, and TCRNGOPT parameters
as shown in Figure 2-1. The input PV signal is first converted to a raw PV signal (PVRAW)
whose units can be %, ratio, millivolts, microvolts, or milliohms depending on the entry
made for the SENSRTYP parameter.
The PVRAW signal is then converted to the engineering units. The engineering unit
conversions that are performed in the HLAI, LLAI and LLMUX points are listed in the
following chart, and described in the following paragraphs.
HLAI Point LLAI Point LLMUX Point (NOTE 1)
Linear Linear Linear
Square Root Square Root RTD (NOTE 2)
Thermal Thermal (with reference Thermal (with reference
Slidewire junction compensation) junction compensation)
NOTES:
1. In general, LLMUX points apply to (include) points built against the LLMUX IOP as
well as the RHMUX IOP. The RHMUX does not have a unique point type.
2. RTD is not supported by RHMUX IOP.
2.2.1.1 Linear Conversion
The PVRAW value is converted to a floating-point number. The output value of the linear
conversion is PVCALC, which is calculated based on the raw input span (for slidewire and
0-100 mV sensor types only), and the engineering unit span. The state of the input direction
parameter (INPTDIR) is taken into consideration during the calculation of PVCALC as
follows:
For slidewire and 0-100 mV sensor types, when INPTDIR is Direct:
(PVRAW - PVRAWLO)
PVCALC = (PVRAWHI - PVRAWLO) * (PVEUHI - PVEULO) + PVEULO
For 0-5V, 0.4-2V, and 1-5V, sensor types, when INPTDIR is Direct:
PVRAW
PVCALC = 100 * (PVEUHI - PVEULO) + PVEULO
For 0-5V, 0.4-2V, and 1-5V, sensor types, when INPTDIR is Reverse:
PVRAW
PVCALC = PVEUHI - 100 * (PVEUHI - PVEULO)
The square-root calculation is applied to the PVRAW input such that 100% of span = 1.0.
The square-rooted value is then converted to engineering units based on the configured PV
engineering-unit range values. (For example, square root of 100% = 100%; square root of
50% = 70.71%.) The output value of the square-root conversion is PVCALC, which is
calculated based on the state of the input direction parameter (INPTDIR) as follows:
PVRAW
PVCALC = 100 * (PVEUHI - PVEULO) + PVEULO
PVRAW
PVCALC = - 100 * (PVEUHI - PVEULO) + PVEULO
- PVRAW
PVCALC = PVEUHI - 100 * (PVEUHI - PVEULO)
- PVRAW
PVCALC = PVEUHI - 100 * (PVEUHI - PVEULO)
Thermal linearization is performed on thermocouple and RTD input types, and is selectable
by parameter PVCHAR. The following thermocouples are supported by the analog input
point:
The range of the thermocouple type used with the LLAI or LLMUX points (NOTE ) can be
increased by selecting Extended as the entry for the TCRNGOPT parameter. Refer to the
APM PRD for the normal and extended ranges.
The LLAI and LLMUX points calculate the reference junction compensation from the
measured reference junction output level. This value is stored and then later converted back
to microvolts, with respect to 0 degrees C, for each thermocouple that is to be compensated.
The cold-junction reference compensation (PVREFJN) parameter is expressed in
microvolts for the specified thermocouple and is added to the microvolt value for PVRAW.
NOTE: In general, LLMUX points apply to (include) points built against the LLMUX IOP
as well as the RHMUX IOP. The RHMUX does not have a unique point type.
The following 3-wire RTDs are supported by the analog input point:
PtDinRTD
PtJisRTD
NicklRTD
CopprRTD
For an RTD, the LLAI and LLMUX (NOTE) points calculate the lead-wire compensation
and then subtract the value from PVRAW.
The maximum allowable lead-wire resistance and intrinsic safety barrier resistance for the
RTDs are listed in the following chart.
Note: Proper compensation for lead-wire resistance depends on the resistance being equal in
each leg of the RTD. This includes resistance due to lead-wire resistance and intrinsic safety
barriers. No provision is made to compensate for lead-wire resistance mismatch or intrinsic-
safety-barrier resistance mismatch. Both the lead resistance and the intrinsic-safety-barrier
resistance are allowed simultaneously when connected to an RTD in a Division 1 area.
If the range-checked and filtered value is less than the value specified by the user-
configured LOCUTOFF parameter, the final output called PVAUTO is forced to PVEULO.
First-order filtering is performed on PVCALC, as specified by the user through parameter
TF (filter lag time).
2.2.4 Alarming
The analog input data point compares the PV to threshold values and records the alarms in
the database of the data point. The alarms are then reported by the Advanced Process
Manager Module (APMM). The parameters that are associated with alarming in the analog
input point are as follows:
Refer to the Advanced Process Manager Parameter Reference Dictionary for the
definitions of these parameters.
With R640, disabling annunciation of BADPV alarms for IOP-resident AI points using
open-line detection is performed using the $OLDEVDS parameter. This function is used for
disabling the BADPV alarms generated by LLAI/LLMUX IOPs for open thermocouples or
RTDs, when transmitters and positioners are physically disconnected for normal
maintenance.
4. The event is removed from the alarm lists and alarm displays.
The initial value of $OLDEVDS can be ENABLE or DISABLE and can be changed
between the two values at any time from a detail display or a schematic.
However, this function is not applicable for all AI points. For other types of analog inputs,
the initial value of $OLDEVDS is NOOTDETC. When this value is set, it cannot be
changed, even by the DEB. This ensures that analog inputs other than those having open-
line detection will not have BADPV values removed from the alarm displays because the
BADPVs are a result of other factors other than $OLDEVDS being set to DISABLE.
The NIM resident parameter $OLDEVDS can be configured through the DEB and the TPS
Builder. This parameter is valid for both full and component point forms.
ATTENTION
The Smart Transmitter Interface (STI) point provides an interface to Honeywell's advanced
series of Smartline 3000 Smart Transmitters. The STI point can support the following
Smartline Transmitter types:
• ST3000 Smart Pressure Transmitter for differential, gauge, and absolute pressure
measurements
The STI points are located on the STI IOP. Each STI IOP has a maximum of 16 inputs, and
it can communicate bidirectionally with up to 16 Smartline transmitters, regardless of the
mix of transmitter types (pressure, temperature, or flow) using Honeywell’s digitally
enhanced (D.E.) protocol.
The STIMV IOP supports all of the above and multi-PV Smartline Transmitter types such
as the following:
An STIMV IOP allows up to four multi-PV transmitters or a mix of multi-PV and single
PV transmitter inputs that total no more than 16. A multi-PV transmitter is configured as if
it were in n contiguous slots where n = the number of PVs expected. The STITAG
parameter value for each contiguous slot must be identical. Refer to the PM/APM Smartline
Transmitter Integration Manual for complete details.
The STI IOP and the Smartline Transmitters use bidirectional digital communication to
allow the user to configure, view, and modify the transmitter database from the Universal
Station. This digital protocol allows a more precise PV value to be transferred, thereby
permitting more accurate control of the process. In addition, the transmitter can also send a
secondary variable such as the transmitter temperature, cold junction temperature, or
totalized value, depending on the transmitter type.
The transmitter database can be configured at the Universal Station and down-line loaded to
the transmitter and the transmitter database can be up-line loaded to the STI IOP as
required, when the STI point is in the inactive state.
All key transmitter parameters can be accessed from the Universal Station including
The user can access these variables through the point's Detail Display or custom-built
schematics. In addition to the tag name assigned to the process point associated with the
transmitter, the transmitter is also assigned a tag name and the access mechanism follows
the TDC3000 parameter access mechanism. This allows all the LCN capabilities applicable
to a data point to be also applicable to the Smartline Transmitters.
The STI IOP maintains a copy of the transmitter's database. When a transmitter failure
occurs, the database can be down-loaded to the transmitter. This database save/restore
feature can significantly reduce the downtime of a control loop by reducing the time in
getting a replacement transmitter in operation. The transmitter database can also be saved to
a History Module or removable media if a checkpoint request is initiated. This allows for
centralized control of the transmitter database, which significantly minimizes the effort
required to establish the transmitter database during startup or normal operation.
The STI IOP also allows the user to access the detailed status of a transmitter. The status is
displayed at a Universal Station together with the scratchpad information that has been
entered, including any maintenance notes.
Calibration of the transmitter can also be accomplished from the Universal Station. This
function allows on-line adjustment of the transmitter's working ranges so that the reference
points for a measurement are accurate.
In addition a Smart Field Communicator (SFC), which is a hand-held device, can also be
physically connected to the appropriate FTA in the APM cabinet to communicate with
Smartline Transmitters without disrupting the process, as required (refer to the appropriate
Operating Guide for Smart Field Communicators).
To configure the STI IOP point to operate with the appropriate Smartline Transmitter, it is
necessary to know the parameter relationships between the STI IOP and the transmitter
database. Table 2-2 lists and describes these relationships.
Upper Range Value & URV Define the operating range of the transmitter.
Lower Range Value LRV These values correspond to the values for
PVEUHI and PVEULO, respectively.
Upper Range Limit & URL These parameters are the respective built-in
Lower Range Limit LRL maximum and minimum limits of the transmitter
and they cannot be changed. These parameters
are read-only parameters at the Universal
Station. URL must be configured to match the
URL value of the transmitter.
For more information on the STI IOP, refer to the appropriate Smartline transmitter
publication and to the PM/APM Smartline Transmitter Integration Manual. For more
information on STI IOP parameters, refer to the Advanced Process Manager Parameter
Reference Dictionary.
A detail display of a typical STI point is shown in Figure 2-2. It also shows the location of
the transmitter database parameters.
DD MMM YY 08:39:21 1
FIRST PAGE
PRIMMOD -------
SP 0.0 CONTCUT OFF RANGE LIMITS PV COEFFICIENTS
DD MMM YY 08:39:21 1
CONFIG PAGE
______________________CONFIGURATION DATA___________________
COMMAND
PVFORMAT D1 LOCUTOFF ------ PVLLPR NOACTION
NONE PVSRCOPT ALL PVCHAR JTHERM PVLOPR NOACTION
PVCLAMP NOCLAMP SENSRTYP STT PVROCPPR NOACTION
DNLOADDB
PVALDB ONE PIUOTDCF ON PVROCNPR NOACTION
PVALDBEU 1.00000 BADPVPR LOW
UPLOADDB ASSOCDSP PVHHPR NOACTION
INPTDIR DIRECT PVHIPR HIGH
SET_LRV
Commands ______________________SMART TRANSMITTER DATA_____________ __
SET_URV
15013
Transmitter Parameters
P
V
SMARTLINE TRANSMITTER
Spt_Gp
Spt_Ap Linear C Analog
PV H PV
(from Sfm PVCHAR Linear A PV-DB DECONF
process) (output form) R
SQrroot PV-SV
SENSRTYP A
Stp-Dp Linear C PV-SV-DB
Stt T
PIUOTDCF
B Therm E
R CJACT
PVCHAR E Therm I URL
(probe type) Z
LRL
A
T URV
I LRV
NiNiMoTc
O DAMPING
N
PVRAW % Smart
PVEUHI PV Engineering Unit Direct Transmitter
PVEULO Conversion & PV Reverse INPTDIR
PVCHAR Input Direction IOP
PVCALC
(in Eu)
PVAUTO
PNTFORM
PVMan or PVSub Component
Full
(from Operator or Program)
PV (in Eu)
PVSOURCE
PV (in Eu)
Half Disable
A
One
L
Two HIGHAL
PVALDB A
Three
R
Four M
Five
PVHITP PVHIFL
D
PVHIPR E •
• T •
• E •
• C •
• T •
PVROCNTP I PVROCNFL
BADPVPR O
PRIMMOD N
PTINAL
3971
A functional diagram of the STI IOP point is shown in Figure 2-3. The STI point performs
the following functions:
• PV characterization
• Range Checking and PV filtering
• PV source selection
• Alarm detection
2.3.2.1 PV Characterization
The PV signal (PVRAW) received from the transmitter has been characterized by the
transmitter in terms of linear or square-root characterization and damping. For the
STT 3000, PVRAW is further characterized based on the entries that the user makes for the
SENSRTYP, PVCHAR, and INPTDIR parameters as shown in Figure 2-3. Table 2-3 lists
the PV characterization options available for the various transmitter (sensor) types.
2.3.2.2 Linear Conversion
If the entry for PVCHAR is Linear, the PVRAW input from the FTA is calculated as a
proportion of the input span in percent, as determined from upper and lower range values
URV and LRV. This proportion is then used in generating an identical proportion of the
output span, as determined from PVEULO and PVEUHI shown in Figure 2-4. The URV
and LRV values are the 100% and 0% values that correspond to the PVEUHI and PVEULO
values, respectively.
[from
(PV Value
FTA) * 100% = PVRAW ] [f(PVRAW) = PVCALC ]
0%
LRV PVEULO
1. PVRAW is a percentage of the configured range for the sensor type. For Multivariable transmitters,
PVRAW Engineering Units are different for each PV slot.
2. If the transmitter gross status indicates Output mode or Bad, PVRAW of the STI point is set to NaN,
and PVSTS is set to Bad
3. The normal operating range for PVRAW (0% = PVRAWLO, 100% = PVRAWHI) is configured by the
user.
4. For the supported temperature ranges, refer to the definition of the PVCHAR parameter in the
Advanced Process Manager Parameter Reference Dictionary.
If square root is selected, this function is performed by the smart transmitter in its
computation of PVRAW. The value for PVCALC is then determined in the same manner as
linear conversion. These conversion equations are provided below.
For INPTDIR = Direct:
PVRAW
PVCALC = 100 (PVEUHI - PVEULO) + PVEULO
If INPTDIR = Reverse:
PVRAW
PVCALC = 100 (PVEULO - PVEUHI) + PVEUHI
Thermal linearization is available for the thermocouple and RTD inputs of the Stt
(temperature) transmitter. Thermal linearization is selectable by parameter PVCHAR. The
following thermocouples are supported for an STI point:
Btherm
Etherm
Jtherm
Ktherm
NiNiMoTC
Ntherm
RhRad
Rtherm
Stherm
Ttherm
W5W26TC
W3W25TC
The STI point calculates the reference junction compensation from the measured reference
junction output level. This value is stored and then later converted back to millivolts, with
respect to 0 degrees C, for each thermocouple that is to be compensated. The external cold-
junction reference compensation (CJTACT) parameter is expressed in millivolts for the
specified thermocouple and is added to the millivolt value for PVRAW.
PtDinRTD (Pt100D)
PtJisRTD (Pt100J)
NicklRTD (Ni500)
Pt200RTD
Pt500RTD
Cu10RTD
Cu25RTD
For an RTD, the STI point calculates the lead-wire compensation and then subtracts the
value from PVRAW.
PV range checking ensures that the PVCALC output of PV characterization is within the
limits defined by parameters PVEXEULO and PVEXEUHI. If either of the limits is
violated, the output of the range check is set to BadPV if clamping has not been specified. If
clamping has been specified, the output of the range check is clamped.
If the range-checked and filtered value is less than the value specified by the
user-configured LOCUTOFF parameter, the final output called PVAUTO is forced to
PVEULO.
PV filtering can be implemented at the STI IOP, or at the Smartline Transmitter. At the STI
IOP, first-order filtering is performed on PVCALC, as specified by the user through
parameter TF (filter lag time). At a transmitter, filtering is performed on the PV depending
on the value entered for the DAMPING parameter using the SFC. The user should decide
the type of filtering required based on the following guidelines:
• The DAMPING parameter allows for better control accuracy because more PV samples
are used in calculating the filtered PV value at the transmitter.
• TF can be changed on-process from the Universal Station. To change the DAMPING
value requires the point to be made inactive and requires the database to be down-line
loaded to the transmitter after the change has been made.
For better control accuracy, the use of the DAMPING value is preferred over the TF value.
The transmitter accepts only certain DAMPING values from the STI IOP, and the value
received must first be converted to one of the predefined DAMPING values that reside in
the transmitter. This conversion is accomplished automatically by the STI IOP by finding
the DAMPING value that is nearest to the desired DAMPING value.
DAMPING values differ between the Smartline Transmitters. The valid DAMPING values
for each transmitter type are contained in the following listing.
* The values listed are the first-order filter time constants in seconds.
The PVSOURCE parameter allows the user to select the source of the PV for this data
point. As shown in Figure 2-3, the PV can be provided by the Range Checking and Filtering
circuit (when PVSOURCE is Auto), or it can be the manually entered PV (when
PVSOURCE is Man or Sub).
In addition, the PV source option parameter (PVSRCOPT) determines whether it is
permissible to change the PV source to a source other than Auto. PVSRCOPT has two
states: OnlyAuto and All. The All state allows the PV to be manually entered for this data
point.
2.3.2.7 Alarming
The STI point compares the PV to threshold values and records the alarms in the database
of the data point. The alarms are then reported by the Advanced Process Manager Module
(APMM). The parameters that are associated with alarming in the STI point are as follows:
ALENBST PVHHPR PVLOPR
BADPVFL PVHHTP PVLOTP
BADPVPR PVHIFL PVROCNFL
PRIMMOD PVHIPR PVROCNPR
PTINAL PVHITP PVROCNTP
PVALDB PVLLFL PVROCPFL
PVALDBEU PVLLPR PVROCPPR
PVEXHIFL PVLLTP PVROCPTP
PVEXLOFL PVLOFL
PVHHFL
Refer to the Advanced Process Manager Parameter Reference Dictionary for the
definitions of these parameters.
2.3.3 Smart Transmitter Communication Modes
All communications between the STI IOP and the Smartline transmitters are in bit-serial
form using the Honeywell DE (digital enhanced) protocol. The communication mode for
the transmitter is selectable through the DECONF (DE configuration mode ) parameter,
whose possible entries are as follows:
DECONF Definition
Entry
* The use of these two modes is recommended because they offer database mismatch detection and
on-process mismatch recovery.
During normal operation, the STI point database and the corresponding transmitter database
contain the same information. If under special conditions, the databases are not the same, a
status message appears on the STI point's Detail Display to indicate a database mismatch.
Three possible ways that a database mismatch can occur between the STI IOP database and
the transmitter database are as follows:
The following parameters of the STI IOP database and the transmitter database are
compared when the STI IOP checks for database mismatches:
CJTACT
DAMPING
DE_CONF
FREQ60/50
PIUOTDEN
PVCHAR
SENSRTYP
STITAG
URL
URV, LRV
If a database mismatch is detected, the first four parameter mismatches are displayed in the
S1 status field of the STI point's Detail Display at the Universal Station. These mismatched
parameters are preceded by the message "DATA BASE DISCREPANCY." The user can
correct the mismatch by one of the following methods:
• Download the STI IOP database to the transmitter by issuing a DnLoadDb command
through the COMMAND parameter when the point is in an Inactive state. If the loading
is successful, the point STATE changes to OK when the point is made active.
• Upload the transmitter database to the STI IOP by issuing an UpLoadDb command
through the COMMAND parameter when the point is in an Inactive state. If the loading
is successful, the point STATE changes to OK when the point is made active.
• Correct the mismatched parameter using the SFC. If the parameter or parameters are
updated by the SFC to the same value as in the STI IOP database, the state changes
from Mismatch to OK when the next database transfer from the transmitter occurs.
If a mismatch occurred because the Smart Field Communicator (SFC) was used to change a
parameter in the transmitter database, the data in the transmitter database may be correct. In
this case, the STI IOP does not know which value to use and issues an "SFC MODIFIED
XMTR DATABASE" message, which appears on the Detail Display. The user should wait
until the next database transfer occurs from the transmitter before taking action. At that
time, the specific change is displayed.
A database mismatch can also occur because the transmitter was miswired during
installation. This can be fixed by correcting the transmitter wiring.
For the MagneW3000, the URL value displayed on the SFC is a factor of 10 higher than the
actual value displayed at the Universal Station. The value displayed at the SFC is the scaled
limit while the value displayed at the Universal Station represents raw data. Also, the STI
IOP does not respond to changes made in the MagneW3000 database parameters for up to 3
minutes when the database changes are made using the Local Setting Card. This card is an
option that is available with the MagneW3000.
States Description
OK Normal state; indicates that the STI point and the transmitter are OK.
Transmitter is updating the PV value at the STI point. STATE
remains OK when the point is made inactive.
DBChange Indicates that a database mismatch between the STI point and the
transmitter has been detected. Transmitter is not updating the PV
value at the STI point. STATE remains DBChange when the point
is made inactive.
Loading Indicates that database loading between the STI point and the
transmitter is occurring.
Loadcomp Indicates that the database transfer between the STI point and the
transmitter has been successfully completed.
Loadfail Indicates that the parameter transfer between the STI point and the
transmitter has not been successfully completed.
Calfail Indicates that the calibration has not been successfully completed.
The result of issuing a command to an STI IOP point is reflected in the STATE parameter
for the point.
Parameter OPTDIR allows the user to specify whether the output of the data point is direct
acting (where 4 mA = 0%, and 20 mA = 100%) or reverse acting (where 4 mA = 100%, and
20 mA = 0%). The default mode is direct acting.
Output characterization allows the user to specify an output transfer function, using
configurable X-Y coordinates that provide five linear segments as shown in Figure 2-6. The
length of each segment is variable according to the coordinates that can be entered as
applicable constants for OPOUT1-4 and OPIN1-4 parameters, which are real numbers.
As shown in Figure 2-6, the end points of the curve are fixed at coordinates
OPOUT0,OPIN0 (at -6.9%) and OPOUT5,OPIN5 (at 106.9%). These coordinates are fixed
at these values to ensure that neither the characterization function nor its inverse can
provide output values which are outside the -6.9% to 106.9% range.
None
Oper Cas
Output
Value (from Operator)
MODATTR MODE
None
Man
Output
Value (from Program) Prog Full
Output Componnt
(from PM Regulatory Point) PNTFORM
Value
OPTDIR OP
Direct DIRECT/
REVERSE
Reverse CALCULATION
On OPCHAR Off
OPIN0 OPOUT0
OPIN1 OPOUT1
OPIN2 OUTPUT OPOUT2
OPIN3 CHARACTERIZATION OPOUT3
OPIN4 OPOUT4
OPIN5 OPOUT5
OPOUT5
(106.9%)
OPOUT4
OPOUT3
OPOUT2
OPOUT1
OPOUT0
(-6.9%)
OPIN0 OPIN1 OPIN2 OPIN3 OPIN4 OPIN5
(-6.9%) (106.9%)
Depending on the output value, the analog output point interpolates linearly between the
two nearest values. The interpolated value becomes the output value OPFINAL.
The final stage of output processing in the analog output point is calibration compensation.
This is accomplished in the data point using internal offset and scale constants. The output
value OPFINAL is then routed to the field through the appropriate FTA.
NOTE
Slot or module level soft failures can prevent a point (or points) from outputting to the field. The
regulatory control point will initiate a "Bad Output" alarm (If configured) when any connection is
broken. If all configured point connections to the field are broken, the regulatory control point
driving that analog output slot goes into initialization.
The open-line detect parameter has two states, ENABLE and DISABLE. By default, it will
be in ENABLE state. Setting the parameter to DISABLE will disable the annunciation
events. Only the OUTPUTFL soft failure alarm events are disabled.
The NIM resident parameter $OLDEVDS can be configured through DEB and the TPS
Builder. This parameter is valid for both full and component point forms.
A digital input point converts a digital PVRAW signal received from the field to a PV that
can be used by other data points in the APM and the system. A functional diagram of the
digital input point is shown in Figure 2-7.
Bad PV Flag—Control strategies can test for a bad Digital Input PV. Parameter BADPVFL
is set ON when—
• The PV source has been switched to Substituted, and the point is inactive or the
module status is Idle.
• The PV source is AUTO and the PV is not being updated, because either the point is
inactive, the module is idle, there is a slot soft failure, or the FTA is missing.
The digital input point is a single-input point that can be configured as a status input, a
latched input, or for accumulation, as described in the following paragraphs.
For this digital input type, the PVAUTO value represents the state of the raw input signal
after the direct/reverse conversion is performed. The status digital-input point can be
configured for PV source selection, detection of off-normal alarms, and for reporting any
PV state changes to the system. The status digital input point is selected by entering Status
for the DITYPE parameter.
The current state of the PV input is represented on the Universal Station Group and Detail
Displays as two boxes, as shown in Figure 2-8. The boxes are lighted or extinguished
depending on the current state of PVRAW and the input direction as configured through the
INPTDIR parameter, as shown in the chart in Figure 2-8. The current PV state is also
available to be used as an input to logic slots, and other APM control functions.
The PV source parameter (PVSOURCE) option determines the source of the PV for a status
input point. The source can be the PV input from the field (PVauto), the PV state entered by
the operator (PVman), or it can be supplied by a user program (PVsub). PVSOURCE has
no effect on the latched and accumulation options of the digital input point. If PVSOURCE
is PVauto, PV tracks PVRAW.
Change Of State Reporting—Digital Input Status points (and Sequence of Events points)
can be configured for Change Of State (COS) alarm reporting through the ALMOPT
parameter. The alarm is generated when the input changes state in either direction. Alarm
priority is determined through the OFFNRMPR/ALPRIOR parameters as before.
COS alarms are removed from the Alarm Summary display following acknowledgement.
The Point does not remain in alarm so there is no Return-to-Normal. Point Detail or Group
displays will never show a point in COS alarm.
Older digital input IOPs may need to have a new firmware chip for COS reporting. Check
the IOP's detail display. For COS reporting the Digital Input IOP firmware revision must be
5.0 or later.
Note that when a point with COS reporting is changed from Inactive to Active, a COS
alarm is generated if the PV = 1. There is no COS alarm if the PV = 0. The same alarming
occurs if the point is active and the IOP is put into Run mode.
Alarm Delay—When off-normal alarming has been configured and an off-normal alarm is
detected, the event is reported to the system. Further off-normal alarms for the same data
point are not reported until the time delay (0 to 60 seconds) specified by the DLYTIME
parameter expires. When the time delay expires, the time-delay function is disabled and the
off-normal alarm for the data point can again be reported.
For Change of State alarms, when a PV state change occurs, a COS alarm is produced and
the delay timer is started. When DLYTIME expires, two situations are possible—
• the PV is in the same state and future state changes are immediately alarmed.
• the PV is in the opposite state (it may have changed many times during the
DLYTIME period) so a second COS alarm is produced and the timer starts again.
The EVTOPT parameter for the status input allows the user to optionally specify the tag
name (EIPPCODE) of a data point in the system that is to be notified when the PV changes
state, and/or specify that a time stamp be added to the reported PV state change.
For a status input point, EVTOPT has the four possible entries: None, EIP, SOE, and
EIPSOE. EIP specifies that the user supply the tag name of the data point in the system that
is to receive the PV state change, while SOE specifies that a time stamp is added to the
PV state change to establish a sequence of events.
Change of State Reporting can initiate Event Initiated Processing if the point is configured
for both COS and EIP. Note that digital input points that have COS (or Off Normal
alarming) and EVTOPT EIP configured will have EIP triggered twice. EIP processing
associated with COS reporting is not recoverable for NIM/APM failovers. Full EIP
recovery is available for DISOE points.
To capture the occurrence of momentary digital inputs, such as from pushbuttons, requires
the user to configure the digital input point as a latched digital input point. Configuring the
point as a latched point is accomplished by entering Latched for the DITYPE parameter.
When configured as a latched input point, an input pulse that is on for a minimum of 40
milliseconds is latched true for 1.5 seconds. This ensures that any control function that
needs to monitor this event will execute at least once during the time that the signal is
latched on.
The current state of the latched PV input is represented on the Universal Station Group and
Detail displays as two boxes, as shown in Figure 2-8. The boxes are lighted or extinguished
depending on the current state of PVRAW and the input direction as configured through the
INPTDIR parameter, as shown in the chart in Figure 2-8. The current PV state is also
available to be used as an input to logic slots, and other APM control functions.
DITYPE
Accum
Status PV
OVERVAL
Latched
None STARTFL
1.5 Sec
Start STOPFL
Command Stop UP/ RESETFL
Reset DOWN
ACCUMULATION
PVAUTO OLDAV
PVman PV AVTVFL
(from Operator) SOURCE Countdown OVERFLOW
PVsubstituted Resetval
(from Program)
Only AVTV
All Auto
AV
PVSRCOPT
PV
DITYPE = Status DITYPE = Latched or Status
PV PV
EVTOPT
ALMOPT
None
EIPSOE
None ChngOfSt SOE EIP
Offnorml
(EIPPCODE)
DLYTIME
(TIME STAMP)
(N/A for latched inputs)
ALENBST
EIPPCODE & TIME STAMP
Enable Inhibit
(N/A for latched inputs)
Disable
PV
Printer Printer
JnlPrint JnlPrint
High High
Journal
Journal
NoAction
NoAction PVNORMFL
PVNORMAL OFFNRMFL
STATE 1
BOX
(Upper)
STATETXT (1)
STATE 0
BOX
(Lower)
STATETXT (0)
PV = ON. PV = OFF.
State 1 Box is State 0 Box is
ON lit. lit.
State 0 Box is State 1 Box is
extinguished. extinguished.
PV = OFF. PV = ON.
State 0 Box is State 1 Box is
OFF lit. lit.
State 1 Box is State 0 Box is
extinguished. extinguished.
The EVTOPT parameter for the latched input allows the user to optionally specify the tag
name (EIPPCODE) of a data point in the system that is to be notified when the PV changes
state. For a latched input point, EVTOPT has two possible entries: None and EIP.
The operator has the capability of issuing start, stop, and reset commands to the
accumulator for starting, stopping, and resetting the accumulation. For resetting the
accumulator, the operator can specify the value to which the accumulator is reset by using
the RESETVAL parameter to enter the value. When the accumulator is reset, the old
accumulated value is displayed using the OLDAV parameter.
2.5.3.3 Target Value
The operator can specify the accumulator target value through the AVTV parameter. When
the accumulated value (PVAUTO) reaches the target value (PVTV), parameter AVTVFL is
set to On. AVTVFL is set to Off when the accumulator is reset.
2.5.3.4 Overflow
If the accumulated value AV overflows the accumulator (AV > 999999), the OVERFLOW
parameter is set to On. In addition, it is set to 0 when the accumulator is configured for
counting up (incrementing); it is set to 32767 if it is configured for counting down
(decrementing).
Sequence of Events (SOE) points are used to report the order of occurrence of physical
events. The SOE digital input IOPs can use the same type FTAs as digital input cards, but
the best overall performance is obtained when using the high resolution 24 VDC Digital
Input FTAs.
SOE events are recorded in a journal with a timestamp so that you can determine, for
example, which event started an upset and the progression of events thereafter. The record
includes the point ID, point descriptor, state text unit, and time of occurrence to one ms
resolution. Refer to the Engineer’s Reference Manual for a discussion of SOE Journal size
requirements. For SOE Journal and Process Unit Journal Configuration requirements refer
to the Network Configuration Forms Instruction manual.
SOE points can also be configured for Change of State Reporting (an alarm is generated
when the input changes state in either direction). Refer to the discussion under Status
Points.
Each sequence of events IOP card provides 32 status and/or latched type inputs.
2.5.4.2 Timestamping
Timestamps are based on the "wall clock" time entered in the LCN. Time is broadcast over
the UCN every six seconds by the NIM with the lowest UCN address. To do this, the time
synch parameter (TIMESYNC) must be enabled during NIM configuration and the NIM
must contain an EPNI card. If there is a redundant NIM, its TIMESYNC parameter should
also have been enabled in case the primary NIM fails.
Resolution
The operator sees one millisecond resolution as reported in the SOE Journal. Event time is
reported in hours, minutes, seconds, and milliseconds. The entries are further sorted at a
submillisecond level that affects the order of entry but does not appear in the journal.
Reporting
Typical SOE Journal entries appear as follows:
Date (MM/DD/YY)
10:50:21:848 SE150501 ON
10:50:21:849 SE150501 OFF
10:50:21:850 SE150502 ON
10:50:21:851 SE150502 OFF
Table 2-5 shows the guaranteed Minimum Physical Event Separation (MPES) values using
various Field Termination Assemblies for two digital state change events occurring be-
tween two points. In one case the events are on the same IOP. In the other case, assume that
the events are in different APMMs on two separate UCNs, logical or physical, or in case of
NIM failover. Assume that both points are using the same type of FTA. These
specifications implicitly include DISOE IOP and/or APMM failovers, are valid for stable
system operating conditions, and represents the guaranteed worst-case conditions.
MPES MPES
Two Turn-On Two Events (On/Off)
Digital Input FTA Type and Model # Events In Same IOP On Different UCNs
High Resolution 24 Vdc (MU/C-TDID12/52) 3.0 ms 6.5 ms
Galvanic 24 Vd c (MU/C-GDID12/13/82/83) 6.6 ms 7.4 ms
Low Cost 24 Vdc (MU/C-TDID72) 10.6 ms 10.6 ms
120 Vac (MU/C-TDIA12/52) 44.1 ms 44.1 ms
240 Vac (MU/C-TDIA22/62) 44.1 ms 44.1ms
DITYPE
Status
Latched
1.5 Sec
PVAUTO
PVman PV
(from Operator) SOURCE
PVsubstituted
(from Program)
Only
All Auto
PVSRCOPT
PV
DITYPE = Status DITYPE = Latched or Status PVCHGDLY
PV PV
ALMOPT
None ChngOfSt
Offnorml EVTOPT
EIPSOE None
DLYTIME SOE EIP
(EIPPCODE)
ALENBST D
(TIME STAMP) e
Enable Inhibit (N/A for latched inputs) l
a
Disable y
EIPPCODE & TIME STAMP
(N/A for latched inputs)
Printer Printer
PV
JnlPrint JnlPrint
High High
Journal Journal
NoAction NoAction
PVNORMFL
PVNORMAL OFFNRMFL
15016
HIGHAL HIGHALPR
2.5.4.4 Configuration
Digital input SOE IOP points are configured by selecting the DIGITAL INPUT target from
the NIM Point Build Menu. The configuration considerations are similar to those described
for the conventional digital input point, with the following additions:
DITYPE—Choose STATUS as the Digital Input Type. Note that the SOE IOP can be
used as a conventional digital input point if you choose Latched.
DEBOUNCE—The contact debounce time parameter specifies the time interval used to
debounce an input from mechanical contacts of a field input source. It is defined as the
length of time following an input state change during which the input must remain
unchanged in the new state to declare it a valid event. DEBOUNCE has a range of
0 - 50 milliseconds in one millisecond increments. The default value of 10 ms should
suffice for most contacts. If not, choose a value slightly longer than the
manufacturer's specified contact bounce time.
A B C
A B C D E F
11007
This waveform represents the field input. Tick marks across the waveform indicate the 200
microsecond scan intervals of the DISOE IOP hardware. Assume that the input state
changes at point A.
At point B, the state change is detected. At this point, the current time and old state are
recorded. The debounce timer is started.
• if the input remains at a steady state until the debounce timer expires, then an event
is generated with a timestamp corresponding to the time of detection (point B).
• if the input changes before the debounce timer expires (point c), then the change of
state event detected at B is discarded, the timer is restarted and runs for the full
debounce time—
If a new input detected at D remains in a steady state until the debounce timer
expires (point F), then an event is generated with a timestamp corresponding to
the original time of detection (point D).
If the input has returned to the old state (dotted line at E) when the debounce
timer runs out (point F), no event is generated.
PVCHGDLY—The PV change delay parameter specifies the time of separation in seconds for
reporting two consecutive PV change events from the same input source. It is intended to prevent
repeated rapid reporting of PV change events (i.e., chattering). It can be configured over a 0–60
second range in one second increments. It applies to points configured as EIP, EIPSOE, or SOE
only. Ideally, PVCHGDLY AND DLYTIME should have the same value.
When a PV state change is detected, the change is reported and the PV change delay timer
is started.
If the PV does not change before the delay timer runs out, no further action is taken.
If the PV state changes more than once before the PV change delay timer runs out, only
the last state change is noticed and timestamped but not yet reported. When the
delay timer expires—
If the PV state changes more than once before the PV change delay timer runs out, only
the second state change is noticed and timestamped but not yet reported. When the
delay timer expires—
If the PV state is different from the state that started the timer, this event
is reported.
If the PV state is the same as the original PV state that started the timer, no event is
reported.
The digital output point provides a digital output to the field based on the origin of the input
and the configured parameters. A functional diagram of the digital output point is shown in
Figure 2-10. The digital output point does not have any modes.
There are two types of digital output points: pulse-width modulated (PWM) output and
status output. Selection of the output type is accomplished through the DOTYPE parameter
shown in Figure 2-10. The PWM type is used in combination with RegCtl algorithms to
provide true proportional control. The status type output is the normal configuration for
digital outputs that are linked to digital composite points. Actual output action can be
status, latched or momentary, depending on the configuration of the digital composite point.
The default for untagged component DO points is Status.
The pulse width modulated output type can receive its input from a APM regulatory point
(that has been configured for a PID type algorithm) through a user-specified output
connection. The length of the pulse is derived from the OP parameter provided by the
regulatory point. Because OP is in percent, the percent value becomes the percent on-time
for the pulse whose period (1 to 120 seconds) is specified by the PERIOD parameter, as
shown in the timing diagram in Figure 2-10.
The output direction of the output signal can be configured to be direct or reverse acting by
using the OPTDIR parameter, as shown in the timing diagram in Figure 2-10.
The pulse on-time for direct and reverse acting outputs is calculated as follows:
OP% * PERIOD
Pulse On-Time = 100
If the value of OP is less than 0%, it is clamped to 0%; an OP with a value greater than
100% is clamped to 100%.
The status output type can be controlled from a digital composite-point output, a logic slot
output, or a RegCtl point (that has been configured for the PosProp algorithm) as
determined by the output connection. The output latch function is obtained by linking
digital composite-point output connections to the SO parameter. Pulsed operation (pulse-on
or pulse-off) can be obtained by linking the output connections to the ONPULSE and
OFFPULSE parameters, respectively.
If SO is received from a logic slot, the SO output of the digital output point tracks the SO
output provided by the logic slot.
When ON, this parameter indicates (for Status Output type points) that control strategies in
the APM cannot manipulate the output. Parameter INITREQ is set ON when—
PWM
DOTYPE
Status
OPTDIR
Direct
Reverse
From
Digital Composite OFFPULSE OFF-PULSE
Point or GENERATOR
Logic Block
SO
SO
OP
(On-Time in %)
OUTPUT
OPTDIR = Direct
Period (1 to 120 Seconds)
OUTPUT
OPTDIR = Reverse
SO OUTPUT
SO OUTPUT
OFFPULSE
(0 TO 60 SECONDS)
Figure 2-10 — Digital Output Point, Functional Diagram and Waveforms 2079
Totalizing means the IOP maintains a 32-bit accumulation (AV) for each channel (updated
every 20 ms). The least significant bits are provided by the hardware accumulator. The 32-
bit entity continually rolls (i.e., there is no start, stop, or reset). The Pulse IOP only sets the
parameter AV to zero when the point is inactive, the IOP is in Idle, or an error is detected.
In the case of an error, status parameter AVSTS is set to BAD. Refer also to the Regulatory
PV Totalizer algorithm description in subsection 7.7.7.
2.7.1.2 Frequency Counting
TIMEBASE is a time scale factor. The choices are seconds, minutes, or hours.
C2 is a meter factor in pulses per engineering unit (e.g., pulses per gallon). If the instrument
vendor instead supplies the factor K in engineering units per pulse (e.g., gallons per pulse),
then C2 must represent the reciprocal of the factor K, i.e., C2 = 1/K.
P AV
V $ACCSRC
PVRAW 32-BIT
C PV
ACCUMULATION
H
A
R
A
Seconds C C1
T
TIMEBASE Minutes C2
E
Hours R
I
Z
A
T
I
PVEULO
O
PVEUHI N
PVCALC
(in Eu)
PVCLAMP Noclamp
PVEXEUHI Range Clamp
PVEXEULO Checking
& PV PVEXHIFL
TF PVEXLOFL
Filtering
PVAUTO
PNTFORM
Componnt
PVMan or PVSub Full
(from Operator or Program)
PVAUTO
PV
PVSOURCE
PV
Enable ALENBST
Inhibit
Disable
Half
One A
Two L
PVALDB Three A HIGHAL
Four R
Five M
PVHITP PVHIFL
D
PVHIPR E
• •
T •
PV ALARM • •
• E • PV ALARM
TRIP POINTS • •
• C FLAGS
AND PRIORITIES
PVROCPTP T PVROCNFL
PVROCPPR I PVROCPFL
O
N
PTINAL
The rate value is treated similar to an analog input PV and is supported by high/low alarms,
Rate of Change (ROC) alarming, filtering, etc., on a half second processing interval (every
four seconds for ROC only).
The Pulse IOP calculates the unsigned integer AVDELTHS every half second.
AVDELTHS is the change in AV from the last half second and is intended for display
purposes. The parameter’s value is normally constant, but the operator will observe a
change if the pulse input rate varies.
APM
FTA To Field
1 Device
SI Power
IOP Panel
FTA To Field
2 Device
11008
Figure 2-12 — Serial Interface Point Hardware, Block Diagram
Each active SI slot must have a corresponding Array point. Data collected through the
SI slot is available as local data for use by Digital Composite points, Device Control points,
CL programs, etc. Array points are described in Section 10.
Flags and Numerics are fully supported as I/O connections; however, the Serial Interface is
primarily intended as an input vehicle and it can efficiently import large quantities of data.
Additionally, the Serial Interface IOP firmware runs diagnostic routines. It monitors and
reports any detected communications timeouts or errors between the IOP and FTAs.
2.8.2 Configuration
On the APMM Node Specific Configuration display, you must choose an APMM scan
period (SCANPER). The APMM scan period specifies the scan period in seconds at which
the APMM images the Serial Interface IOP database to the Array points. During Node
Specific Configuration, you must also specify the IO Module Numbers that contain SI
cards. Otherwise, no specific configuration is required for an SI slot, except what is entered
for the associated Array point. Array points are described in Section 10 of this manual.
The maximum number of SI and associated Array points at the three configurable scan
periods are—
The Serial Device Interface (different from the Serial Interface) uses a Serial Device
Interface (SDI) module and a Companion Field Termination Assembly (FTA) designed to
transfer serial data from and to specific external devices.
Communications with the device mimics a Smart Transmitter analog input point. The SDI
module is configured as you would for a Smart Transmitter Interface Module (STIM).
• Manual/Auto Station
• Toledo Weigh Scale, Model 8142-2089
• Toledo Weigh Scale, Model 8142-2189
• UDC 6000 Process Controller
Each SDI board can support two serial channels and each FTA can communicate in
ANSI/EIA-232 (RS-232) or EIA-422/485. The EIA-232 interface connects to one serial
device and the EIA-485 interface can connect to a multidrop network of up to eight devices.
APM
FTA To Field
1 Device
FTA To Field
2 Device
(e.g., EIA-485 device)
11393
Figure 2-13 — The SDI Interface
Implementation —You can communicate directly with the SDI using CL or control
algorithms. Other implementation methods are described in the Process Manager
Implementation Guidelines or the PM/UDC 6000 Integration manual (see References).
Control—Operators typically control an SDI device from a custom schematic. You can
build your own schematic or contract with Honeywell Engineering Services to build it.
The Manual/Auto Station interfaces with the Process Manager through the Serial Device
Interface FTA using EIA-485 protocol at 19.2 k baud. Up to four M/A Stations can be
connected in multidrop to each of the two SDI FTAs. Each of eight slots in the SDI IOP can
be configured for use with one Manual/Auto station. Slots 1–4 correspond to logical
address for FTA one and slots 9–12 correspond to logical address 1–4 on FTA two (slot one
= M/A Station 1 on FTA1, etc. and slot–9 = M/A Station 1 on FTA2 etc.).
Refer to the Advanced Process Manager Implementation Guidelines manual for additional
information.
2.9.2.1 Communications
Invalid data—Both data received from the SDI IOP and data received from the Manual
Auto Station are checked for reasonableness. Very small values may be rounded to .001.
Very large (absolute) values are either rejected or stored as NaN.
Time out—A time out signal is sent from the SDI IOP to the FTAs every half second. Loss
of this signal for 10 seconds or more halts all communications with the Manual/Auto
Stations connected to that FTA.
Refer to the Manual/Auto Station manual for additional information on the Manual/Auto
Station itself.
2.9.2.2 Implementation
The PV and OP process signals are directly connected to appropriate modules in the PM.
Process and status signals are sent from the PM to the M/A station and operator changes to
the Set Point at the M/A station are read into the PM as if those changes were at a Universal
Station. Figure 2-14 illustrates a typical Manual Auto Station implementation.
Unless the PM Override flag is set, the PM responds to SP, OP, or mode change operations
from the M/A Station's front panel. The PM Override function can inhibit operator
functions attempted from the M/A station front panel that would affect SP, OP, or Mode.
APM
FTA
PV
HLAI
Regulatory Field
Control Signals
Point
OP
AO
FTA
FTA
M/A M/A
Station Station
Logic SDI Power
Blocks IOP Panel
M/A
Station
FTA
11394
Figure 2-14 — M/A Station Implementation
Tables 2-6 through 2-8 show how to relate parameters seen at the Universal Station through
the STI point and their meaning as Manual/Auto station parameters.
LRV Low end of operating range Low end of operating PV (in engineering
for PVRAW range for PVRAW units)
PVEUHI PV high range in eng. units PV high range in Must be set to 100.0
engineering units
PVEULO PV low range in eng. units PV low range in Must be set to 0.0
engineering units
PVEXEUHI PV extended range high PV extended range high Must be set to 100.0
limit in engineering units limit in eng. units
PVEXEULO PV extended range low limit PV extended range low Must be set to 0.0
in engineering units limit in engineering units
Table 2-7 — Control, Status and Other Parameters Sent to the Manual Auto Station
Parameter Meaning as an STI Point Parameter As an M/A Station
Parameter
CJTACT Internal cold junction reference active OFF = Manual Mode
ON = Auto Mode
DAMPING Damping M/A Station Alarms:
1 = Alarm 1 true
2 = Alarm 2 true
3 = Both Alarms true
PIUOTDCF Open thermocouple detect enable ON = In Override
OFF = Not in Override
PTEXECST Point execution state Active = Point is active
Inactive = Point is inactive
PVTV PV target value Setpoint in eng. units
In addition to configuring the SDI IOP as an STI point, at least one, and preferably two
logic points must be built to read data from each M/A station, perform necessary processing
and then write the processed data, control, and status signals back to the M/A station.
The primary logic point handles the control functions and the following rules apply:
The second logic point is optional and is used to write back information such as Valve
Position, Alarm state, and the Override flag using the parameters shown in the tables.
Refer to the Advanced Process Manager Implementations Guidelines (see References) for
detailed information about implementing the above rules.
To modify any Regulatory Control Point parameter from the M/A station, the external
Mode Switching Enable parameter ESWENBST must be set to ENABLE.
The Regulatory Control Point’s Mode attribute parameter (MODATTR) must be set to
PROG so that OP can be modified by a Logic point.
Only a one second scan period is supported for the M/Auto Station Logic points.
The PV High, PV Low, and PV Extended Range parameters must be configured with the
values shown in Table 2-6 in order to transfer an SP change request to the Regulatory
Control point’s set point parameter SPP.
LRV Low end of operating range for PVRAW Decimal Point Position (D)
1 = 1.0
2 = 0.1
3 = .01
4 = 0.001
5 = 0.0001
DECONF Digitally Enhanced Configuration Mode Parity Selection:**
0 = No Parity
1 = Odd Parity
2 = Even Parity
3 = No Parity
4 = No change
LRL Lower Range Limit Weight recorded when feed
status switched from On to Off.
* Values are modified to 6 digits or less by moving the decimal point per LRV.
** Odd parity should not be used. Even parity is preferred.
This section provides an overview of the control functions available in the APM. Definitions of the
parameters mentioned in this section can be found in the Advanced Process Manager Parameter
Reference Dictionary.
The parallel processing architecture of the Advanced Process Manager allows the control
processing capability of the APM to be totally independent of other APM functions such as
the number of I/O points built, data requests for APM data from the Network Interface
Module and other UCN devices, and alarming functions; therefore, only two factors must
be considered when configuring the control processing: control slot type, and the
scheduled frequency of execution otherwise referred to as scan rate. These factors are
described in the following paragraphs.
The following control slot types are resident in the Advanced Process Manager Module:
The point mix is defined by specifying the number of slots of each type using the
NDCSLOT, NLOGSLOT, NPMSLOT, NPVSLOT, NCTLSLOT, NDEVSLOT, and
NARRSLOT parameters that are found on the UCN/PM Configuration Form. This
configuration form allows the user to specify the particulars of the APM Box Data Point.
The slot numbers for each point type range from 1 to the user-specified maximum number
listed in the above chart. For example, if NPVSLOT is set to 35, the RegPV points can be
configured in any RegPV slot from slot 1 to slot 35. Similarly, if NLOGSLOT is set to 40,
the logic points can be configured to run in any logic slot from slot 1 to slot 40. The point
types and slot numbers are used for the initial configuration of a data point and for
specifying the processing order.
Regulatory type (RegPV, RegCt1) and digital type (DigComp, DEVCTL, and Logic) slots
can be configured for scanning at different rates as specified by the SCANRATE parameter
and by the Fast Slots parameters. SCANRATE deals with the base scan rate for all points
of a certain type. The Fast Slots parameters allow a specified number of regulatory or
digital type slots to be processed at a quarter second rate without regard to the base scan rate
for the rest of the group. These are APM Box Data Point parameters. Array points are not
processed (require zero PUs) so they are not affected by the SCANRATE parameter.
The scan rates indicate the number of times that all slots of that particular type (except Fast
Slots) are scanned and processed each second. For example, a scheduled frequency of 1/4
sec for the regulatory slots indicates that all the regulatory slots in this APM will be scanned
and processed four times each second. The scan rate has an impact on the number of slots
that can be processed as described in paragraph 3.1.3.
The following chart contains the scheduled frequency of the respective entries for the
SCANRATE parameter:
Entry for RegCtl & RegPV Slots Logic, DigComp, DevCTL ProcMod Slots
SCANRATE Parameter Scheduled Freq. Scheduled Freq. Scheduled Freq.
Fast Slots parameters allow a specified number of the regulatory control, regulatory PV,
digital composite, or logic slots to be processed at a quarter second rate without regard
to the scan rate for the rest of the group. When fast slots are specified, they are the lower
numbered slots for that type. For example, if there are 50 regulatory control slots and 15 are
specified as Fast (NFASTCTL = 15), then slots 1-15 are scanned every quarter second, and
slots 16-50 are scanned at the rate specified by the parameter SCANRATE.
The point processing executive in the APMM runs at quarter-second (or 250 milliseconds)
intervals or "cycles." (Each quarter second cycle is further divided into two sub cycles to
provide a breakpoint for database synchronization.) Slot scheduling determines the
assignment of slots to cycles and the ordering within a cycle. This operation is
automatically performed at the time of transition from IDLE to RUN state, based on the
following rules.
• There are four cycles per second. The slots executing at four times per second are
processed on every cycle. The slots executing at two times per second are processed on
every other cycle, and the slots executing once per second are processed on every fourth
cycle.
• Each slot type has a different processing weight assigned to it. The slots processing
slower than four times per second are distributed between the four cycles to equalize the
processor loading (to whatever extent possible) of each cycle.
The processing order of the slots within a cycle is determined based on the point type as
follows (from left to right):
RegPV Fast RegPV ProcMod Logic Fast Logic
DevCtl Fast DevCtl DigComp Fast DigComp
RegCtl Fast RegCtl
Within each point type, the slots are processed in the descending order of the slot
number (that is, from highest slot number, down to one).
The processing power of the APM control processor is measured in terms of "Processing
Units (PUs)." Each control processor has an assured rate of 160 PUs per second. Each slot
type consumes a certain amount of PUs subject to the scheduled frequency.
The relationship between the scheduled frequencies and the Processing Units for the slot
types are contained in the following chart. Please note that slots use more Processing Units
at faster frequencies.
Process Module Points—When configuring each APM, you can choose how many
processing units are allocated for its Process Module points.
• If parameter SEQPROC = 1_PU, one PU is allocated per Process Module point per
scan and up to 40 Process Module points can be processed each quarter-second cycle.
• If parameter SEQPROC = 2_PU, two PUs are allocated per Process Module point
per scan and up to 20 Process Module points can be processed each quarter-second
cycle.
In batch applications where many small sequences are needed and you want all of them
loaded at the same time, 1_PU is the appropriate choice for parameter SEQPROC.
Process module points in software releases R230 (and earlier) always used two processing
units, therefore, parameter SEQPROC should be set to 2_PU if updating from R230 and
earlier versions.
Memory Units—APMM capacity is measured in terms of Memory Units. For the point
database and sequence programs, the maximum capacity is 15,000 Memory Units (MU)
allocated as follows:
Any mix of the preceding slot types can be used, but the mix is subject to the following
constraints:
1. Point mix used must not exceed 160 Processing Units or 15,000 Memory Units per
APM.
2. Absolute number of each slot type per APM cannot exceed the maximum shown in
the following chart (regardless of the available PUs):
The APM has the capability to handle most configurations of up to 160 PU without
encountering an overrun. Overruns occur when a specific task cannot be completed in the
allowed time. The following three kinds of overruns are possible in the APMM.
• Point Processing
• I/O Link Access
• UCN Access (Peer-to-Peer Communication)
Point Processing Overrun—A point processing overrun occurs when the slots that are
scheduled to be processed during any subcycle cannot be finished within the allocated time
of 125 msec. When this occurs, all the points are processed to completion (nothing is
aborted), but the following subcycle is delayed until the next 125 msec subcycle. Also, the
current hour point processing-overrun counter is incremented by 1.
The primary cause of point processing overruns are several long sequence programs that are
processing on the same subcycle. If a point processing overrun occurs for four seconds in a
row (on any subcycle within each second), a point processing-overload soft failure is
generated. The soft failure is reset when an overrun does not occur for eight seconds.
For each subcycle, the current hour and previous hour point processing-overrun counters are
maintained in the APMM and displayed on the UCN Detailed Status Displays to help track
down the cause of the overrun.
I/O Link Access Overrun—This type of overrun occurs when parameter read or write
access requests, from slots residing in the APMM to I/O Processors in the same APM, are not
completed within a cycle time. This indicates that too many parameter access requests were
attempted through the I/O link within the last cycle (250 msec). When this occurs, point
processing is delayed by 125 msec and the I/O link overrun counter is incremented by 1. This
continues until the requested data becomes available. I/O link accesses to some parameters
are not counted as I/O link accesses, and accesses to them are considered as being
"unlimited." These are the digital input point’s PV (parameter PVFL) and BADPVFL, and
the Digital Output point’s SO, and INITREQ parameters.
The anticipated average number of I/O link accesses (from APMM points within the same
APM) is 120 parameters for each 250 msec cycle. Access overruns can be expected when
the number of I/O link accesses exceeds 200 parameters for each 250 msec cycle.
If an I/O link overrun occurs for four seconds in a row (on any cycle within each second),
an I/O link access-overload soft failure is generated. The soft failure is reset when an
overrun does not occur for eight seconds.
For each cycle, the current hour and previous hour I/O link access-overrun counters are
maintained in the APMM and displayed on the UCN Detailed Status Displays to help track
down the cause of the overrun.
UCN Access Overrun—This type of overrun occurs when parameter read or write access
requests to other APMs (or other nodes) on the same UCN are not completed within the
given time (0.75 seconds).
When this type of access overrun occurs, the UCN access-overrun counter is incremented
by 1, but point processing is not delayed. The sequence programs that access data from
other UCN devices remain suspended until a response becomes available (or a
communication timeout occurs). For input connections at RegPV, RegCtl, and logic slots
that require data from the UCN, the last fetched value is used until new data becomes
available, or a time-out occurs.
If the UCN access overrun occurs for 8 seconds in a row (on any cycle within each second),
a UCN access-overload soft failure is generated. The soft failure is reset when an overrun
does not occur for 16 seconds.
For each subcycle, the current hour and previous hour UCN access-overrun counters are
maintained in the APMM and appear on the UCN Detailed Status Displays to help track
down the cause of the overrun.
This display can be accessed through the APM Status Display/Detail Display target; then
under CONTROL CONFIGURATION, choose SCHEDULE INFO.
DD MMM YY HH:MM:SS 02
Along the left side, the type of point and execution order appears. The four 1/4 second
cycles and their subcycles divide the display into columns. The numbers in each column
represent the point slots. All of the points in a subcycle run consecutively in descending
order (compare to the drawing in 3.1.2.3). Overruns (if any) for the point processing
executive (PPX) and the I/O Link (IOL) appear across the bottom for the cycle or subcycle
affected.
CAUTION
When the point mix or the scan rate is changed, the database of all the slots is defaulted to a
null configuration and the database requires reconfiguration.
Point building follows box Configuration. Each point is configured to run in a slot inside
the APMM. The first time through a power-up cycle (APMM box state transition from
ALIVE to IDLE), the database of each slot (included in the default point mix) is defaulted
to a null configuration. The user can build or load a point configuration into each slot.
When a point is deleted, the database of the slot containing the point is defaulted to the null
configuration.
3.3 POINT EXECUTION STATE
Slot processing in the APMM is performed only when the APMM box state is RUN. Only
those slots whose point execution state (PTEXECST) is Active are processed. The point's
execution state must be Inactive in order to modify any of the configuration parameters (for
example, engineering unit range, PV or control algorithm ID, input/output connections,
etc.). When a point is made Inactive, all the calculated variables (like PV, CV, alarms, etc.)
are set to their default values ("NaN" for real numbers and OFF for Logical). The point
execution state cannot be changed back to Active until all the configuration parameters are
specified.
Table 3-2 summarizes the important status conditions for Warm/Cold restart functions.
Timer PV Last Good Value3 Last Good Value3 Last Good Value3
STATE Stopped Stopped Stopped
1. Control is halted by the final point in the cascade which always outputs to an IOP.
2. Count may be inaccurate if rollover occurs in IOP.
3. The last good value can come from PM RAM Memory if battery power was continuously
available; otherwise, from the last checkpoint stored on the History Module.
3.4.1 Implementation
The APM provides the following two convenient mechanisms for implementing peer-to-
peer communications functions:
• Input/Output Connection
• CL Read/Write Statement
Characteristics and configuration limits for input/output connection for each access are
described below.
• Input Connections—The RegPV, RegCtl, DevCtl, and Logic slots can use standard
input connections to obtain data from other UCN devices. When such a connection is
configured, it is scanned at the rate of twice per second, regardless of the scan rate of
the slot in which it is configured. The data obtained is saved internally and used (more
than once if the slot is running faster than twice a second) until the next time that it
needs data. Peer-to-peer data is requested .75 seconds before it is needed. The data
obtained from another UCN device can therefore be up to .75 second old by the time it
is used. A maximum of 50 input connections can be configured for each APMM.
We recommend that input connections be used for continuous peer access that requires
a 1/2 second update (see Table 3-3).
• Output Connections—The RegCtl, DevCtl, and Logic slots can use standard output
connections to provide outputs to other UCN devices. Output connections are processed
when the slot is processed, thus outputs are updated four times per second, two times
per second, or once per second depending on the point processing rate. The number of
output connections per APMM is not limited.
Input 50 values per 1/2 Analog —On failure, bad value Use for continuous
Connections second (NaN) is substituted. (1/2 second) update
Digital - Addressed by Logic of data required for
Slot. On failure, ON, OFF, RegPV, RegCtl,
or last value is substituted DevCTL, or Logic
based on user configuration. Slots.
On recovery from failure,
accessed values are then
used.
Characteristics and configuration limits for CL/APM read/write peer access are as follows:
We recommend that the CL read/write technique be used for on-demand peer access,
and for continuous peer access that requires a 1-second update.
3.4.2 Restrictions
Certain restrictions exist on the type of data that can be accessed through peer-to-peer
communication. These restrictions vary with the point type. Table 3-4 shows the type of
data that can be accessed for each point type or connection type.
RegCtl.CISRC No restrictions
RegCtl.CODSTN RegCtl.SP only
RegPV.PISRC No restrictions
Logic.LISRC No restrictions
Logic.LODSTN No restrictions
DevCTL.LISRC No restrictions
DevCTL.LODSTN No restrictions
• Adopt a single approach for all peer-peer communications; use either input/output
connections or CL read/write statements. If a 1-second update is adequate and cascade
interconnection is not required, the CL read/write approach offers increased capability
(quantity/throughput) for peer data access.
• For CL read/write approach, consistently use same method (either CL reads or CL
writes).
• For CL read/write approach, the Process Module Data Points that are continually
affecting peer-to-peer communication should be grouped on the same 1/4-second cycle.
The APM allows the referencing of parameters of I/O points (AO,DI, DO) on a hardware
basis within the same APM using the standard input/output hardware connection reference
syntax (user-written sequence programs can reference DI points). This type of addressing
does not affect the point count in the NIM and these “untagged” references can be quickly
built, but there are several disadvantages. Untagged points are not easily visible in the
system so you must use the Command Processor Find Names function to see the
connections. Note that operating displays cannot include untagged points.
The use of untagged references is not recommended, however, there might be a reason to
use them or some may be present in an existing system. If you use them keep good records.
Standard status displays are available to show which points are associated with each hardware
module.
____________________
*The AI address !AImmSss.Parameter is not supported because the analog input point does
not have a useable default database.
3.6 REDUNDANCY
The APM can contain optional redundant APMM modules and certain types of optional
redundant IOP modules (currently HLAI, STIM, and AO modules). During APM Node
Specific configuration, the user specifies which modules are redundant and, for IOPs, the
file/card locations of the redundant partners. Refer to Section 2 in the Advanced Process
Manager Implementation Guidelines manual for more information.
If a redundant APMM module or synchronized redundant IOP module fails, switchover is
automatic and transparent to the user (input and set output operations are unaffected). Data
acquisition, alarming, and control strategies are automatically managed by the system.
The principal parameters that pertain to APM redundancy are—
ACTPRIM IOMFILEA/B POSITION
FTACONN IOREDOPT SYNCHSTS
IOMCARDA/B PKGOPT WITHBIAS
Refer to these parameters in the Advanced Process Manager Parameter Reference
Dictionary for additional information.
The Status Message function is available for RegCtl, RegPV, Logic, DigComp, DevCtl,
ProcMod, and Array points. One table of messages is configurable for each NIM.
During UCN Node Configuration for the NIM, you can enter up to 15 Message Text Items,
(MSGTXT(n)). The entry is an 8-character ASCII string. Message text item 0 defaults to
NONE and is not configurable. The actual number of Message Text items that you can enter
is determined by parameter NMSGTXT, the number of Message Text items.
On the point’s Detail display, the operator can select STSMSG and choose any message
from the table of Message Text items that appears. That Message Text item then replaces
the current contents of STSMSG and, if nothing of higher priority is currently displayed,
appears as a comment at the lower left of the display. The Status Message also appears in
place of the “Red Tag” message when Red Tag is on.
If a point is not in Red Tag, a CL program can store a message (in STSMSG). When Red
Tag is on, only the engineer or supervisor can store the message.
This section describes the functions available in the digital composite point. The description of the
output portion of the point is provided first, followed by the description of the input portion. Definitions
of the parameters mentioned in this section can be found in the Advanced Process Manager
Parameter Reference Dictionary.
4.1 DESCRIPTION
The digital composite point is a multi-input/multi-output point that provides an interface to
discrete devices such as motors, pumps, solenoid valves, and motor-operated valves. This
point provides built-in structures for handling interlocks, and supports display of the
interlock conditions in group, detail, and graphic displays. In addition, the digital composite
point can be used with logic slots and other digital points to implement complex interlock
schemes.
Some of the features of the digital composite point are as follows:
• Input and output states of the data point are totally independent of each other and can be
configured as required by the user's application. The inputs and outputs of the point can
be linked to I/O points or to Boolean flags within the APM.
• Supports devices with two or three commandable states (motor-operated valves,
reversing motors, etc.). Specific states can be defined as being momentary.
• Provides structured approach to handling interlock functions and includes indication to
the operator of existence of interlock condition.
State 1 Descriptor
STATETXT (1)
FORWARD
State 1 Box
State 0 Descriptor
STOP STATETXT (0)
State 0 Box
PVState 0 Indicator
OP State 0 Indicator (Commanded State)
PVFL (0)
State 2 Descriptor
REVERSE STATETXT (2)
State 2 Box
As an example, assume that the digital composite point shown in Figure 4-1 is connected
through digital output points and digital input points to a motor control circuit and that the
current state of the digital composite point is state 0 (STOP).
• In state 0, the PV indicator of the STOP box is lit, indicating that the motor is stopped
because the proper PV input has been received from the field. All other indicators in the
display are in the extinguished condition.
• When the operator touches the FORWARD box to place the motor in the forward
running direction, the digital composite point output goes to State 1. Outputs from the
digital composite point are provided as determined by the ST1_OPn parameter (where
n=1..3). When the proper PV inputs are received from the field, the FORWARD box is
lighted. This indicates to the operator that the motor is running. Also, the current state
of the PV can be read by a logic slot or by a user program by accessing parameter
PVFL(n) where n is 0, 1, or 2. If the PV is in State 0, PVFL(0) is on; otherwise,
PVFL(0) is off. PVFL(1) and PV(FL2) operate in the same manner for States 1 and 2,
respectively.
• Similarly, when the operator presses the STOP box, the operator is notified that the
motor is stopped by the lighted PV indicator in the STOP box. The operator can then
select the REVERSE box to start the motor running in the reverse direction.
The states of a digital composite point can be configured as being momentary by using the
MOMSTATE parameter. The commanded states can be configured as momentary where
the state acts like a doorbell (state remains active as long as a switch is pressed). The
momentary states (MOMSTATE) parameter specifies which of the states are momentary as
follows:
Entry Description
Mom_1 State 1 is momentary. When released from this state, it jumps back to State 0.
Mom_0 State 0 is momentary. When released from this state, it jumps back to State 1.
Mom_0 can be selected only if the NOSTATES parameter = 2.
Mom_2 State 2 is momentary. When released from this state, it jumps back to State 0.
Mom_2 can be selected only if NOSTATES parameter = 3.
Mom_1_2 States 1 and 2 are momentary. When released from any one of these states, it back
jumps to State 0. Mom_1_2 can be selected only if NOSTATES parameter = 3.
The digital composite point has two standard states that represent conditions when the
current state of the device is "bad" (indeterminate) or the current state is "moving" (from
one state to another). The bad state can result when the PV input signals from the process
are in an inconsistent state (e.g., for a valve, the limit switches indicating open and closed
are both simultaneously on). The moving state is encountered when the device is in
transition from one state to another (e.g., a slow moving valve is changing from the open
state to the closed state). The moving/bad state descriptor is located below the State 2 box
on the display. In the example described above, the descriptor assigned for the BADPVTXT
parameter would be the word FAULTY and the descriptor assigned for the MOVPVTXT
parameter would be the word MOVING. These descriptors are configured once for each
APM box data point and then are used for all digital composite points in the same APM.
If the standard "bad/moving" default text is not desired, you can select the PV Text Option
during point configuration, and enter two eight-character strings of your choice. While the
words "bad/moving" are defined on a PM/APM box basis, your entries override them on a
per point basis. Up to 15 unique bad/moving text descriptors can be defined on a UCN
network basis.
The digital composite point supports only the manual (MAN) mode with mode attributes
(specified by parameter NMODATTR) of Operator and Program. If the mode attribute is
Operator, only the Universal Station operator can provide the commanded output state, as
shown in Figure 4-2. On the other hand, if the mode attribute is Program, only user
programs (continuous or discontinuous) can provide the commanded output state. The
operator mode attribute flag (OPRATRFL) is also provided for potential use by the
interlocking logic.
The MODEPERM parameter is provided to optionally prevent the operator (as opposed to
the supervisor or engineer) at the Universal Station from changing the mode attribute.
Two kinds of interlocks, permissives and overrides, are provided in the output portion of a
digital composite point. The states of the interlocks are typically controlled by output
connections from logic slots that can write to the P0-P2 permissive interlock parameters,
and I0-I2 override interlock parameters. In addition, a safety override interlock (SI0) that
cannot be bypassed is provided.
The permissive interlock parameters P0-P2 shown in Figure 4-2 are controlled by logic slot
outputs, and the permissive interlocks determine whether the operator and user programs
are allowed to change the output of a digital composite point to a specific state. A
permissive interlock is provided for each of the three states. The permissive interlocks
themselves never cause the output to change.
For the commanded output to be changed to the desired state, the corresponding permissive
interlock parameter must be set to ON. As an example, if a logic-slot output has set
parameter P1 to OFF, the commanded output of the digital composite point cannot be set to
State 1. The permissive interlock parameters P0, P1, and P2 are all defaulted to ON, thereby
allowing permission for all the states. They must be individually set to OFF by the logic
slots to prevent access to the corresponding commanded output state.
The override interlock parameters I0-I2 shown in Figure 4-2 are also controlled by the logic
slot outputs and can force the commanded output to a specific state regardless of the
condition of the permissive interlocks. The operator and user programs cannot change the
output state when any override interlock is in the ON condition. An override interlock is
provided for each of the three output states.
When parameter I0 is set to ON by a logic slot output, the commanded output state is forced
to State 0 (regardless of the condition of parameters I1 and I2). When I0 is OFF and I1 is
ON, the commanded output is forced to State 1 (regardless of parameter I2). Finally, when
I0 and I1 are OFF and I2 is ON, the commanded output is forced to State 2.
Override interlock parameters I0-I2 are all defaulted to OFF, disabling all the override
interlocks. They must be set to ON to force the output to go to any specific state. If the
override interlock forces the output to go to a momentary state, it stays in that state as long
as the interlock remains ON and then switches back to the original state when the override
interlock is reset to Off.
When all the override interlocks are OFF, the last value of the commanded output is
maintained (except for momentary state) until changed by the operator, a user program, or
another override interlock. The interlock logic restores the output value to the output
devices (Digital Output IOPs) whenever the interlock value changes, even if the state
asserted by the interlock is already in effect.
NOTE
For those upgrading from R400 to R510 and later systems, note the differences
described in this section and make sure your strategy still works as intended.
In R410 and R510 or later systems, a lower priority interlock (such as I1) can
become active if a higher priority interlock (such as I0) is no longer true but has
not yet been confirmed. In R400 systems, Confirmation has to be done before the
lower priority interlock is activated.
When the Digital Composite point is built, you can specify the tag name of the Logic point
that is driving the interlocks as parameter LOGICSRC. The contents of this parameter then
appear on the Group Display when the Digital Composite point is selected. After
identifying the Logic point, an operator can call up the Detail Display for that point to find
out about the interlocks.
You can predefine an eight character alarm descriptor for each override interlock, I0-I2.
When the override interlock is activated, that string is displayed on the detail display. CL
programs can write into these descriptors (InDESC) before asserting the interlock. The
detail display text then explains why the program forced the interlock (e.g., TOO HOT in
the Override Alarm Descriptor, OVRDDESC).
On On
Commanded State NMODATTR OROPT BYPASS
(OP) from Program
Program
Commanded
STATE 2 State STATE 1
STATE 0
Permissive
Interlocks ON ON ON
(P1, P0, & P2 are OFF P2 OFF P0 OFF P1
controlled by
Logic Blocks)
ON OFF
STATE 2 I2
Override
Interlocks
(I2, I1, & I0 are
controlled by ON OFF
Logic Blocks) STATE 1 I1
ON OFF
STATE 0 I0
OFF
Safety ON
Interlock STATE 0 SI0
Output Connections
(Up to 3 Outputs)
PULSEWTH OUTPUT STxOPy
STCHGOPT STATE STxOPy
SEALOPT GENERATOR
MOMSTATE (OPFINAL) STxOPy
x = 0, 1, 2
y = 1, 2, 3 2100
The operator can have the ability to bypass the permissive and override interlocks for a
digital composite point. To do so, the override parameter OROPT must be set to ON. The
operator can then set (or reset) the parameter BYPASS from the Universal Station. Note
that while BYPASS is ON, the point execution state parameter can’t be changed. When the
BYPASS parameter is reset, existing override interlocks (if any) take effect immediately.
The group display shows whether interlocks are being bypassed. The organizational
summary display lists all the points for which BYPASS = ON.
The safety override interlock parameter SI0 behaves like the I0 interlock, but it cannot be
bypassed even when BYPASS is configured and turned on (see Figure 4-2).
• Alarm with Confirm Required— if a state 0 interlock causes the OP state to change,
an interlock-trip alarm is generated. The interlock that caused the alarm must return
to OFF and the operator must reset the trip-confirm required flag OVRDCONF. The
trip-confirm required flag can also be reset by REDTAG, BYPASS, or
LOCALMAN, but the motor cannot be restarted by the operator, interlock, or other
system functions until the interlock trip alarm is terminated.
• If SIO resets, a lower priority interlock can be asserted and confirm automatically as
described in subsection 4.4.2.
You can predefine an 8-character alarm descriptor for SIO. When the safety override
interlock is activated, that string is displayed on the detail display. CL programs can write
into these descriptors (InDESC) before asserting the interlock. The detail display text then
explains why the program forced the interlock (e.g., TOO HOT in the Override Alarm
Descriptor, SIODESC). SIOALPR sets the interlock-trip alarm priority.
Trip Descriptor—When a device trips because of an interlock, the cause of the trip is
available as an 8-character descriptor from the parameter OVRDDESC.
The command to go to a specific state results in outputs to the process that drive the actual
state of the device to the commanded state. The commanded state is represented by the OP
parameter in the digital composite point; the commanded state can be State 1 (ST1), State 0
(ST0), or State 2 (ST2). The OP parameter is available for configuration only if the number
of digital output connections (NODOPTS) is configured to be greater than 0.
Up to nine Boolean parameters of the form STx_OPy (where x = 0, 1, or 2 for the state
number and y = 1, 2, or 3 for the output number) allow the user to specify the state values
that are to be stored by the output connections. For each of the three commanded states per
output connection, the user must define the value (On or Off) of the state.
CL programs or Logic points can test the parameter INITREQ to see if they are allowed to
command a certain state. If INITREQ(i) = ON, then CL programs or Logic points cannot
change the output to STATE(i) (i = 0, 1, or 2).
The Status Output command parameter allows Logic points or CL programs (APM or AM)
to manipulate outputs (subject to interlocks and the mode attribute). Logic or CL programs
can set SOCMD(i) to ON to command State(i) where I = 0, 1, or 2. The same rules apply as
storing the corresponding state to the OP parameter, i.e., the mode attribute must be
PROGRAM, the corresponding permissive must be available, no override can be active,
etc. The actual output (OP) is switched to the requested state only by an OFF to ON change
of the corresponding SOCMD(i) flag. There is no priority scheme; the last one changing
from OFF to ON controls the output.
OP can be commanded to state 1 or state 0 using the OPCMD parameter. When OPCMD is
ON, OP is set to state 1. When OPCMD is OFF, OP is set to State 0. OPCMD can be used
when three states are defined, but will only command OP to state 1 or state 0. Overrides
take precedence over OPCMD; however, when the override is cleared, the OP will be
commanded to the state determined by OPCMD. OPCMD should not be used in
conjunction with SOCMD since OPCMD will always override the state set by SOCMD.
Like SOCMD, OPCMD only affects OP when the mode attribute is PROGRAM.
CAUTION
Do not configure two different logic outputs to drive OPCMD and SOCMD of the same Digital
Composite Point.
This condition is determined to be true any time the PV is not in state1 or state 2 and either
of the following is present
If the seal-in option is enabled, when the above condition is detected, the output
destinations are set to the state corresponding to OP of state 0, but OP is not altered. The
actual state commanded to the output destinations can be observed on the lower part of the
group display as OPFINAL. OPFINAL is displayed in reverse video if it is different from
OP. OPFINAL is set equal to OP on the next store to OP, thus clearing the seal condition.
However, if OPCMD is used, it must be set OFF, then ON to clear the seal condition.
State Change Option—A configurable option (STCHGOPT) allows break before make on
output changes. You must configure state 0 as the break, or off, or inactive state. The
number of states must equal 3.
When an output change from state 1 to state 2 or from state 2 to state 1 is commanded—
• OP changes to state 0 first.
• if the command disagree time out alarm is configured and a corresponding PV state
is applicable, the alarm is held off until a successful feedback has been reached (i.e.,
PV = state 0).
• the digital composite point waits for a predefined pause time (PAUSETIM).
• OP is then changed to the requested value.
Example—if the break before make option is enabled, commanding a motor to change
direction from forward to reverse causes the motor to stop before reversing.
Note that the CL state change statement waits until feedback for the second OP change is
successfully received.
The user can specify the latched or pulsed output type for the digital composite point
through the configurable output connections.
Configuring the digital composite point for a latched output is accomplished by specifying
any parameter other than ONPULSE or OFFPULSE.
Configuring the digital composite point for a pulsed output is accomplished through the
output connections by specifying the ONPULSE or OFFPULSE parameters as the
destination points for the outputs. The width of the pulse is configured at the digital
composite data point through the PULSEWTH parameter; it allows the user to specify a
pulse width from 0 to 60 seconds as a real number. The selected pulse width applies to all
of the output connections.
The destinations of the outputs (and the output types) from a digital composite point are
specified by the user through the DODSTN(1)-DODSTN(3) parameters. The categories of
destinations that can be specified are as follows:
• Digital Output Point—Latched Output
• Digital Output Point—Pulsed Output
• Logic Slot Flag
• APM Box Flag
• Process Module Slot Flag
• Device Control Slot Flag
These destinations must be in the same APM box as the digital composite point that is
being configured.
To assign the digital composite-point output to the latched output of a digital output point,
the user can enter either of the following output connections for the respective DODSTN(n)
output connection parameter:
Tagname.SO
or
!DOmmSss.SO
where: Tagname is the 8- or 16-character name assigned to the data point through
the NAME parameter.
!DO signifies a digital output point. This is the start of the hardware-reference
form of addressing the digital output.
mm is the IOP card number from 1-40 of the Digital Output IOP Card within
the same APM.
ss is the slot number in the range from 1-16 on the same Digital Output IOP
Card.
Pulsed outputs can be either of two types: normally off pulsed-on, and normally on pulsed-
off. To assign the digital composite-point output to the pulsed output of a digital output
point, the user can enter the following information for the respective DODSTN(n) output
connection parameter:
Tagname.ONPULSE
or
!DOmmSss.ONPULSE
where: Tag Name is the 8- or 16-character name assigned to the data point through the
NAME parameter.
ONPULSE or OFFPULSE signifies the pulsed output of the digital output
point.
or
!DOmmSss.OFFPULSE
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
To assign the digital composite-point output to a logic-slot flag, the user can enter the
following information for the respective DODSTN(n) output connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
nn is the flag number to which the output of the digital composite is sent. The
flag number has a range of 7-12: flag numbers 1-6 have dedicated uses and
cannot be used as destinations by a digital composite point.
To assign the digital composite-point output to an APM box PV flag in the same APM box,
the user can enter the following information for the respective DODSTN(n) output
connection parameter:
Tagname.PVFL or !BOX.FL(nnnn)
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
!BOX specifies the same APM box in which the digital composite point
resides.
nnnn is the flag number. Box flags from 1 to 16,384 are available.
To assign the digital composite-point input to a Device Control slot flag, the user can enter
the following information for the respective DISRC(n) input connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
FL signifies a flag
nn is the flag number to which the input of the digital composite is sent. The
flag number has a range of 7-12: flag numbers 1-6 have dedicated uses and
cannot be used as destinations by a Device Control point.
To assign the digital composite-point input to an Array Point flag, the user can enter the
following information for the respective DISRC(n) input connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
FL signifies a flag
nn is the flag number to which the input of the digital composite is sent. The
flag number has a range of 1-NFLAG, where NFLAG is the array point
parameter that defines the number of flags in the Array point.
Digital Composite and Device Control points can have digital output connections through
an SI/Array point to a field device. The field device or its interface may interrupt or change
the output and not provide any indication of the change.
If flag data is mapped back from the SI/Array point, a digital output read-back check
determines the actual value of the output. After a new output state is stored to the digital
output connections, the read-back check is delayed for a time period equal to the feedback-
time parameter time (FBTIME) or 4 seconds, whichever is greater. This delay allows the
SI/Array output enough time to reach even a slow responding field device before causing a
Command Disagree alarm (see subsections 4.14 and 11.5).
If a discrepancy then exists between OPFINAL and OP, the operator is advised. If
OPFINAL does not agree with any of the defined states, its state is displayed as NONE.
A digital composite point that has at least one output connected to a DO IOP is forced into
the initialization manual condition (INITMAN is On) when one of the following conditions
exists:
• The associated DO IOP has failed or been powered off (digital composite point cannot
communicate with the DO IOP), the DO IOP is in an idle condition, or in standby
manual, for the FTA is missing.
• The associated DO IOP has its initialization request (INITREQ) flag set. The flag may
be set because the point is inactive, the point is not configured as a status output type, or
one of the output diagnostics has failed.
• The digital composite point is inactive.
• The APMM is in an idle condition.
INITMAN is displayed at the Universal Station for the particular digital composite point to
inform the user that one of the above conditions has occurred. When the condition is
corrected, INITMAN is set to Off.
When INITMAN transitions from On to Off, the digital composite point provides an output
value OP as follows:
• If override interlocks are active and not bypassed, the OP value corresponds to the
highest priority override interlock.
• Otherwise, in cases where feedback is configured, the stored OP value tracks the PV
state if the PV state is valid (that is, not bad or moving).
• Otherwise, (if the input is bad) the OP value is back-initialized from the output
connections if there are no output connections to the ONPULSE/OFFPULSE
parameters, and if a valid OP value can be constructed from the values of the output
connections. For output connections to ONPULSE or OFFPULSE, OP is set to
State 0.
• Otherwise, the OP is set to State0.
When configuring digital inputs of the digital composite data point, the user can specify the
input connections, PV states, PV source and options, alarming, and change-of-state events.
The input portion of a digital composite point can be configured only if the user has entered
1 or 2 for the number-of-digital-inputs parameter (NODINPTS). A functional diagram of
the input portion of the digital composite point is shown in Figure 4-3.
The inputs to a digital composite point are specified by the user through digital input-source
parameters DISRC(1)-DISRC(2). Inputs to the digital composite point are designated as
Input 1 and Input 2, and they can be obtained from any of the following sources:
These sources must be in the same APM box as the digital composite point that is being
configured.
The status of Input 1 is represented by parameter D1; Input 2 is represented by parameter
D2. Input 2 can be configured only when the entry for the number-of-digital-inputs
parameter (NODINPTS) is 2.
To assign the PV of a digital input point to the PV input of a digital composite point in the
same APM box, the user can enter the following information for the respective DISRC(n)
input connection parameter:
Tagname.PVFL
or
!DImmSss.PVFL
where: Tagname is the 8- or 16-character name of the point that will provide the PV.
· PVFL signifies the PV of the respective digital input point.
· !DI signifies a digital input point. This is the start of the hardware reference address.
· mm is the Digital Input IOP Card number from 1-40 within the same APM.
· the letter “S” is a constant.
· ss is the slot number in the same Digital Input IOP Card in the range from 1-32.
D1 CURRENT
INPUT1
INPUT STATE
INPUT2 D2 GENERATOR
PVAUTO
PV (from Program)
Sub
All OnlyAuto
PVSRCOPT
PV
BAD PV
BADPVFL
ALARMING
BADPVPR
COMMAND CMDFALFL
CMDFALTM > 0
FAIL ALARM
PVNORMAL
< > None OFF-NORMAL OFFNRMFL
ALARMING
OFFNRMPR
UNCOMMANDED
UNCMDFL
CHANGE ALARM
15017
To assign the logic slot output to the PV input of a digital composite point, the user can
enter the following information for the respective DISRC(n) input connection parameter:
Tagname.SO(nn)
where: Tagname is the 8- or 16-character name assigned to the logic slot that is
providing the output.
To assign a logic slot flag to the input of a digital composite point, the user can enter the
following information for the respective DISRC(n) input connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the logic slot that is
providing the flag.
To assign a APM box PV flag to the input of a the digital composite point, the user can
enter the following information for the respective DISRC(n) input connection parameter:
Tagname.PVFL
or
!BOX.FL(nnnn)
To assign the digital composite-point output to a Device Control slot flag, the user can enter
the following information for the respective DODSTN(n) output connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
FL signifies a flag
nn is the flag number to which the output of the digital composite is sent. The
flag number has a range of 7-12: flag numbers 1-6 have dedicated uses and
cannot be used as destinations by a Device Control point.
To assign the digital composite-point output to an Array Point flag, the user can enter the
following information for the respective DODSTN(n) output connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the data point through the
NAME parameter.
FL signifies a flag
nn is the flag number to which the output of the digital composite is sent. The
flag number has a range of 1-NFLAG, where NFLAG is the array point
parameter that defines the number of flags in the Array point.
To assign a Process Module slot flag to the input of a digital composite point, enter the
following information for the respective DISRC(n) input connection parameter:
Tagname.FL(nn)
where: Tagname is the 8- or 16-character name assigned to the Process Module flag
The flexibility of the digital composite point allows the user to assign the states of the PV
for each possible combination of digital inputs, so that the states correspond to the different
applications in which this point type can be used. The PV parameter represents the current
state of the interfaced device and is derived from inputs D1 and D2 that can be feedback
signals from the process. Separate parameters are used to configure a single-input point and
a dual-input point.
NOTE
The inputs to a digital composite point are usually the PVs from digital input points. The
digital input points should be configured as component points that force the input direction
to be direct (as opposed to reverse). The actual direct/reverse action can be configured by
assigning the appropriate PV state to the input as described in the following paragraphs.
For a single-input point, there is only one input parameter (D1). D1 has two possible PV
states (PVstate0 and PVstate1) that can be assigned to either of the following input
conditions:
The user has to assign only PVstate0 or PVstate1 to parameter D_1; the system
automatically assigns the other PV state to parameter D1_0.
For a dual-input point, there are two input parameters (D2 and D1) that together have four
possible combinations of input values as follows:
To these four combinations of input values, the user can assign any four of the following
five PV states:
Pvstate1
Pvstate0
Pvstate2
MovPV
BadPV
PVstates1, 0, and 2 cause the PV indicator to be lighted in the respective state box on the
group display when the assigned D2D1 input conditions are satisfied. The MovPV and
BadPV states cause the respective MOVPVTXT or BADPVTXT descriptor to appear
below the state boxes on the group display.
4.13 PV Source
The PV source parameter (PVSOURCE) determines the source of the current PV state for
the digital input portion of the digital composite data point. The possible sources of the
current PV state are as follows:
Source Description
Man (Manual) Current PV state is provided by the operator from the Universal Station.
Auto (Automatic) Current PV state is derived from Input 1 (D1) and Input 2 (D2).
If a change does not occur in the commanded output state but the input PV state changes
(and the PV is not bad), an uncommanded-change alarm is generated. This alarm condition
returns to normal when the input PV state and the commanded state are the same. If the
point state has been configured as being momentary, this type of alarm is not applicable.
Alarm priority for the command disagree alarm, the command fail alarm, and the
uncommanded change alarm is determined by the Command Disagree Priority
(CMDDISPR) parameter.
4.14.2 Off-Normal
Detection of off-normal alarms is configured by selecting an FBTIME greater than zero.
The normal state of the PV input is defined by the user through the PVNORMAL
parameter.
When the PV input state is different than the state specified by the PVNORMAL parameter,
the off-normal alarm is generated. The alarm condition returns to normal when the PV input
state and the specified PV normal state are the same. When command disagree is
configured, the off-normal alarm is inhibited if PVNORMAL = OP. This is to avoid two
alarms at the same time and help isolate failures. You can set the priority of the off-normal
alarm with the OFFNRMPR parameter.
The Maintenance Statistics page of the Digital Composite Point Detail Display provides
statistical information about the point. For example—
Statistics are enabled by entries in the Maintenance Statistics section during point
configuration. You can enter the maximum number of hours that you want to allow in each
state and maximum number of transitions that you want to allow into each state. Even if
either maximum is reached, the Digital Composite point does not provide an alarm, but a
CL program can be written to monitor the statistics and take action.
The above statistics are accumulated since the most recent reset. A program can reset the
statistics with the RESETFL parameter anytime or they can be reset from the Maintenance
Statistics page as explained below.
The Maintenance Statistics display contains a REDTAG target. The REDTAG and RESET
targets work as follows:
If you select the REDTAG target (and ENTER), the point’s REDTAG parameter is set to
ON and a RESET target appears. Selecting the RESET target (and ENTER), resets the
points maintenance statistic values. If you select REDTAG (and ENTER, the REDTAG
condition clears and the RESET target disappears.
LOGIC POINT
Section 5
This section defines the functions available in the logic point. Definitions of the parameters
mentioned in this section can be found in the Advanced Process Manager Parameter Reference
Dictionary.
5.1 FUNCTIONS
The logic point provides a configurable mix of logic capability that, together with a digital
composite point, provides the basis for integrated logic functions. The logic point is also
fully integrated with the regulatory functions in the APM. A logic point consists of logic
blocks, flags, numerics, user-defined generic descriptors, input connections, and output
connections as shown in Figure 5-1.
12_24_4 12 24 4
12_16_8 12 16 8
12_8_12 12 8 12
Inputs to the logic point are assigned by the user during configuration by using logic input
connections. The user can specify up to 12 inputs that are assigned to logic-point inputs
L(1) to L(12), as shown in Figure 5-1. The logic input connections can be specified using
the "Tagname.Parameter" format, or the hardware reference address format by using the
LISRC parameter.
GENERIC DESCRIPTORS
CONNECTIONS CONNECTIONS
SO (1)
LISRC (1) L (1) LOGALG (1) LOSRC (1) LODSTN (1)
:
: : LOENBL (1) :
:
:
: :
SO (24) LOSRC (12) LODSTN (12)
LISRC (12) L (12) LOGALG (24)
LOENBL (12)
NUMERICS FLAGS
Because the logic point can be used for implementing safety interlocks, special handling is
provided for inputs, especially Boolean inputs, that cannot be obtained because of
communication or configuration errors.
For example, an input obtained from a failed DI Processor can result in a communication
error. Alternatively, an input can be coming from a digital composite point in another APM
(or PM) and the point mix in that APM can be changed such that the specified point no
longer exists. This results in a configuration error. In order for the logic to be able to
continue in spite of a configuration error, the following special features are provided:
• Bad Boolean Inputs—If a Boolean input is not successfully fetched, its value is
defaulted based on the logic input bad handling option parameter (LIBADOPT) as
follows:
LIBADOPT = On The On state is substituted for the unsuccessful input.
LIBADOPT = Off The Off state is substituted for the unsuccessful input.
LIBADOPT = Hold The previous value (the last successfully fetched value) is
substituted for the unsuccessful input. On startup, the previous
value is defaulted to the Off state. If required, the startup
condition can be monitored by checking the startup flag.
• Bad Real Inputs—If a real input cannot be successfully fetched, its value is defaulted to
NaN. If required, special action can be taken in the logic by checking it with the "check
for bad" logic algorithm.
• Input Bad Flag—When an error is encountered in fetching the value of any input, flag
FL(5) is set to On. Note that flag FL(5) is not set to On if a real input is successfully
fetched but has a value of NaN.
• Processing Order—The logic points defined for each APM are processed in decending
order. Within each logic point, the inputs are calculated first, then the gates are
processed, then the outputs are processed, each in ascending order.
5.2.2 Flags
Twelve flags, FL(1) to FL(12), are provided for each logic point. The states of flags FL(1)
to FL(6) are controlled by the APM and cannot be changed by the user. Flags FL(7) to
FL(12) are assigned by the user for controlling the path of the logic in the respective logic
point.
FL(1) Always Off (but see 5.2.5 when used for logic output enable).
FL(2) Always On.
FL(3) On only if this logic point is processing for the first time after becoming
active.
FL(4) On only if this point is processing for the first time after the APMM box
state has transitioned from Idle to Run, or the APMM has gone into the
Run state following a power-up.
FL(5) On if at least one of the logic input connections was unsuccessful in
fetching the specified source parameter.
FL(6) Used by the watchdog timer logic algorithm. It is set to On by the
function or device being monitored to indicate that it is alive. The
watchdog timer algorithm always sets this flag to Off. Flag FL(6) cannot
be changed from the Universal Station.
FL(7)-FL(12) Can be changed as determined by the user. They can be changed from the
Universal Station, other logic points, or user programs.
Flags FL(1) to FL(5) cannot be changed by the user, but the states of these flags can be used
as inputs to the logic points and can also be read by user programs.
5.2.3 Numerics
Eight numerics, NN(1) to NN(8), are provided with each logic point. The numerics can be
used as reference values for the comparison logic algorithms, or they can be used as source
parameters for the output connections when writing predefined analog constants to other
points. The values of the numerics can be changed from the Universal Station, by other
logic points, or by user programs. A bad numeric input typically has the value NaN.
The parameters associated with a logic block are always qualified with an array index
corresponding to the number of that logic block. For example, LOGALG(4) represents the
algorithm configured in the logic block number 4, whose output is SO(4), and the inputs
may be S1(4), S2(4), etc.
On the first time through configuration, the outputs of all logic blocks are set to OFF;
however, on a subsequent restart (for example: IDLE to RUN transition of the APMM
state, or INACTIVE to ACTIVE transition of the point execution state), all the outputs are
held at their previous values.
Processing Order—The logic points defined for each APM are processed in descending
order. Within each logic point, the inputs are calculated first, then the gates are processed,
then the outputs are processed, each in ascending order.
Logic output connections are used to write the values of local parameters of a respective
logic point to the configured destinations. Up to 12 output connections can be configured
for each logic point. The actual number of output connections is determined by the
LOGMIX parameter described in paragraph 5.2. The destinations are specified by parameter
LODSTN by using the "Tagname.Parameter" format or the hardware reference address
format.
The logic output connection can write the selected local parameters of a logic point to any
of the following destinations:
The user must specify the local parameter within the logic point and the destination to
which it is to be written. The local parameter to be written is specified as the logic output
source (LOSRC(n), where n = 1 to 12). The source parameter for the output connection can
be selected from any of the flags (specified as FL1, FL2, etc.), numerics (specified as N1,
N2, etc.), external inputs (specified as L1, L2, etc.), or the output of any of the logic blocks
(specified as SO1, SO2, etc.).
Associated with each output connection is a logic output enable flag, LOENBL(n). The
parameter pointed to by LOENBL(n) must be ON for the corresponding output connection
to write to the specified destination. If store-only-on-a-change is required, the appropriate
condition to store can be determined by the CHDETECT logic algorithm and then used to
manipulate the enable signal; or if the FL1 parameter is specified for the output enable and
the output data type is Boolean, then output occurs on change only. The logic output enable
flag can be obtained from any of the flags (specified as FL1, FL2, etc.), external inputs
(specified as L1, L2, etc.), or the output of any of the logic blocks (specified as SO1, SO2,
etc.).
Up to 12 user-defined generic descriptors are provided with each logic point for identifying
parameters of the logic point with custom names that are to be shown on Universal Station
displays. Generic descriptors can be assigned to any of the following logic-point
parameters:
• Flags (FL1, FL2, etc.)
• Numerics (N1, N2, etc.),
• External inputs (L1, L2, etc.),
• Outputs of any of the logic blocks (SO1, SO2, etc.).
Typically, the generic descriptors identify critical interlock signals, operator-adjusted
parameters, etc.
The actual number of descriptors used is determined by the NODESC parameter for this
logic point. For each descriptor, the parameter to which it is attached is defined by
PRMDESC(n) parameter, and the corresponding 8-character descriptor is defined by
GENDESC(n).
Logic blocks perform logic functions. Each logic block can have up-to-four inputs and
produce a single Boolean output, depending on the selected algorithm. The algorithm can
require real or Boolean inputs. The real inputs can be obtained from any of the numerics
(specified as NN1, NN2, etc.) or the external inputs (specified as L1, L2, etc.). The Boolean
inputs can be any of the flags (specified as FL1, FL2, etc.), external inputs (specified as L1,
L2, etc.), or the output of any of the logic blocks (specified as SO1, SO2, etc.).
When one of the external inputs (L(1), L(2), .. L(12)) is used as an input to an algorithm,
the value fetched can be real or Boolean. If the algorithm requires a real input and the
fetched value is Boolean, it is treated as NaN. If the algorithm requires a Boolean input and
the fetched value is real, it is treated as OFF. In either case, the bad input flag, FL(5), is not
affected.
• Null (NULL)
• AND Gate (AND)
• OR Gate (OR)
• NOT Gate (NOT)
• NAND Gate (NAND)
• NOR Gate (NOR)
• XOR Gate (XOR)
• Qualified OR Gate With 2 Inputs ON (QOR2)
• Qualified OR Gate With 3 Inputs ON (QOR3)
• Switch (SWITCH)
• Flipflop (FLIPFLOP)
This logic algorithm provides an output (SO) that is always set to OFF.
This algorithm provides a 3-input AND gate, with each input (S1, S2, and S3) having the
capability of being optionally inverted, as required. The output SO is determined as follows:
S1
S2 AND SO
S3
SO = (((S1REV = OFF) AND (S1 = ON)) OR ((S1REV = ON) AND (S1 = OFF)))
AND
(((S2REV = OFF) AND (S2 = ON)) OR ((S2REV = ON) AND (S2 = OFF)))
AND
(((S3REV = OFF) AND (S3 = ON)) OR ((S3REV = ON) AND (S3 = OFF)))
This logic algorithm provides a 3-input OR gate, with each input (S1, S2, and S3) having
the capability of being optionally inverted, as required. The output SO is determined as
follows:
S1
S2 OR SO
S3
SO = (((S1REV = OFF) AND (S1 = ON)) OR ((S1REV = ON) AND (S1 = OFF)))
OR
(((S2REV = OFF) AND (S2 = ON)) OR ((S2REV = ON) AND (S2 = OFF)))
OR
(((S3REV = OFF) AND (S3 = ON)) OR ((S3REV = ON) AND (S3 = OFF)))
This algorithm provides the Boolean inversion (NOT) function. The output SO is the
inversion of the input S1 as follows:
S1 NOT SO
ELSE SO = ON
This algorithm provides a 3-input NAND gate, with each input (S1, S2, and S3) having the
capability of being optionally inverted. The output SO is determined as follows:
S1
S2 NAND SO
S3
SO = NOT ( (((S1REV = OFF) AND (S1 = ON)) OR ((S1REV = ON) AND (S1 = OFF)))
AND
(((S2REV = OFF) AND (S2 = ON)) OR ((S2REV = ON) AND (S2 = OFF)))
AND
(((S3REV = OFF) AND (S3 = ON)) OR ((S3REV = ON) AND (S3 = OFF))))
This logic algorithm provides a 3-input NOR gate, with each input (S1, S2, and S3) having
the capability of being optionally inverted. The output SO is determined as follows:
S1
S2 NOR SO
S3
SO = NOT ( (((S1REV = OFF) AND (S1 = ON)) OR ((S1REV = ON) AND (S1 = OFF)))
OR
(((S2REV = OFF) AND (S2 = ON)) OR ((S2REV = ON) AND (S2 = OFF)))
OR
((S3REV = OFF) AND (S3 = ON)) OR ((S3REV = ON) AND (S3 = OFF))))
S1
XOR SO
S2
This algorithm provides a 4-input qualified-OR function that requires at least two inputs to
be ON before output SO is set to ON. The output is determined as follows:
S1
S2
QOR2 SO
S3
S4
IF (at least 2 inputs out of S1, S2, S3, and S4 are ON) THEN
SO = ON
ELSE
SO = OFF
This algorithm provides a 4-input qualified-OR function that requires at least three inputs to
be ON before output S0 is set to ON. The output is determined as follows:
S1
S2
QOR3 SO
S3
S4
IF (at least 3 inputs out of S1, S2, S3, and S4 are ON) THEN
SO = ON
ELSE
SO = OFF
S3
S1
SWITCH SO
S2
This algorithm compares two real inputs (R1 and R2) for being "almost equal" or within a
specified deadband. Output SO is determined as follows:
R1
R2
EQ SO
DEADBAND
This algorithm compares two real inputs for NOT being "almost equal," or being outside of
a prespecified deadband. Output SO is determined as follows:
R1
R2
NE SO
DEADBAND
This algorithm compares a real input (R1) for being greater than another real input (R2)
with a predefined deadband. Output SO is determined as follows:
R1
R2
GT SO
DEADBAND
This algorithm compares a real input (R1) for being greater than or equal to another real
input (R2) with a specified deadband. Output SO is determined as follows:
R1
R2
GE SO
DEADBAND
This algorithm compares a real input (R1) for being less than another real input (R2) with a
predefined deadband. Output SO is determined as follows:
R1
R2
LT SO
DEADBAND
This logic algorithm compares a real input (R1) for being less than or equal to another real
input (R2) with a predefined deadband. Output SO is determined as follows:
R1
R2
LE SO
DEADBAND
This logic algorithm checks a real input (R1) for being bad (equal to NaN). Output SO is
determined as follows:
R1 CHECKBAD SO
This logic algorithm provides a fixed-size output pulse at the SO output each time the S1
input transitions from the OFF state to the ON state. The output pulse width (in seconds) is
specified by the DLYTIME parameter. If the delay time is less than or equal to one sample
time (of the logic point), it is assumed to be equal to one sample time. Another output pulse
cannot be generated until the generation of the preceding pulse has been completed.
DLYTIME
S1 PULSE SO
S1
DLYTIME DLYTIME
SO
11021
This logic algorithm provides a pulse at the SO output each time the S1 input transitions
from the OFF to the ON state. If the input stays ON longer than a predefined time, the
output pulse is terminated. The maximum output pulse width (in seconds) is specified by
the DLYTIME parameter. If the specified output pulse width is less than or equal to one
sample time (of the logic point), it is assumed to be equal to one sample time.
DLYTIME
S1 MAXPULSE SO
S1
DLYTIME DLYTIME
SO
This algorithm generates a pulse at the SO output each time the S1 input transitions from
the OFF to the ON state. If the S1 input stays ON for an interval that is less than the
specified time, the output pulse is extended until the timed interval is over. The minimum
output pulse width (in seconds) is specified by the DLYTIME parameter. If the specified
output pulse width is less than, or equal to, one sample time (of the logic point), it is
assumed to be equal to one sample time.
DLYTIME
S1 MINPULSE SO
S1
DLYTIME DLYTIME
SO
This logic algorithm delays the input signal at the S1 input by one sample time. The SO
output always follows the input after one sample time delay.
S1 DELAY SO
This logic algorithm delays the input signal supplied at the S1 input when the input signal is
going from the OFF to the ON state. (There is no delay provided when the input changes
from the ON to the OFF state.) When the input state changes from OFF to ON, an internal
timer starts counting down the delay time specified by the DLYTIME parameter (in
seconds). When it times out, the S1 input is monitored again, and if it is still ON, the SO
output is set to ON. When the input state transitions to OFF, the SO output is set to OFF
immediately, and the timer is shut off (if it is running). If the specified delay time is less
than or equal to one sample time (of the logic point), it is assumed to be equal to one
sample time.
DLYTIME
S1 ONDLY SO
S1
DLYTIME DLYTIME
SO
This logic algorithm delays the input signal supplied at the S1 input when the input signal is
going from the ON to the OFF state. (There is no delay provided when the input changes
from the OFF to the ON state.) When the input state changes from ON to OFF, an internal
timer starts counting down the delay time specified by the DLYTIME parameter (in
seconds). When it times out, the S1 input is monitored again, and if it is still OFF, the SO
output is set to OFF. When the input state transitions to ON, the SO output is set to ON
immediately, and the timer is shut off (if it is running). If the specified delay is less than or
equal to one sample time (of the logic point), it is assumed to be equal to one sample time.
DLYTIME
S1 OFFDLY SO
S1
DLYTIME DLYTIME
SO
This logic algorithm provides a "time out" capability to monitor other system functions or
remote devices. The function or device monitored must set the watchdog reset flag FL(6)
(of this logic point) to ON within a time interval specified (in seconds) by the DLYTIME
parameter, otherwise it is assumed to have failed, and the SO output of the algorithm is set
to ON. If the specified delay time is less than or equal to one sample time (of the logic
point), it is assumed to be equal to one sample time. When the watchdog timer algorithm
runs and if the FL(6) flag is ON, the internal timer is set equal to DLYTIME, and FL(6)
and the output SO are both set to OFF; however, if FL(6) is OFF, the internal timer is
decremented, and if it becomes zero, the SO output is set to ON. Because this algorithm
always uses the FL(6) flag of the logic point as the reset input, only one Watchdog Timer
algorithm should be configured for each logic point.
This algorithm provides the flip-flop function. The SO output is determined by the states of
inputs S1 and S2 as follows:
S1
S2 FLIPFLOP SO
S3
S1 S2 SO
OFF OFF Not changed
ON OFF OFF
OFF ON ON
ON ON S3 input
This algorithm is used to detect changes in up-to-three inputs. The output SO is determined
as follows:
S1
S2 CHDETECT SO
S3
Four custom alarms can be configured for each logic point. The alarm source can be any of
the logic inputs (L1–L12), logic flags (FL1–FL12), logic gate outputs (SO1–SO24), or
None.
When the alarm source is None, a CL program can force an alarm by writing ON to the
alarm flag (C1FL–C4FL) and clear the alarm by writing OFF to the alarm flag.
Each of the four custom alarms permits an 8-character descriptor that appears on page one
of the Detail Display, the Alarm Summery Display, and the Real Time Journal, when that
alarm is active.
The alarm priority choices are: No Action, Journal, Low, High, Emergency, Journal Print,
and Printer.
This section describes the functions available in the Process Module Data Point and the associated
Box Flag, Box Numeric, and Box Timer Data Points. Definitions of the parameters mentioned in this
section can be found in the Advanced Process Manager Parameter Reference Dictionary.
Control strategies frequently need the flexibility of user programs for continuous, batch, or
hybrid applications. A Process Module Data Point is the resource for execution of user-
created programs written in Honeywell's Control Language (CL/APM). CL/APM is a
member of Honeywell's family of advanced process-engineer oriented languages and is a
powerful tool for advanced continuous control, sequential control, and computations. CL
programs are self-documenting, which is an important feature when future modifications of
control strategies are anticipated.
The Process Module Data Point is the interface between the system and a CL/APM
(sequence) program that resides in the Process Module Data Point. The Process Module
Data Point shown in Figure 6-1 is the mechanism through which
• Sequence alarms (sequence errors, failures, and phase alarms) are reported to the
system; an alarm priority can be assigned to sequence alarms.
PROCMOD
OVERPHAS SEQUENCE
OVERSTEP
CONTROL
OVERSTAT
ACP INTERFACE
BATCHID
LOCAL VARIABLES
SEQMODE CL/APM
SEQUENCE • 127 Flags
SEQNAME
PROGRAM • 80 Numerics
STATUS
PHASE • 16 Strings
STEP • Normal • 4 Times
INTERFACE Sequence
STATMENT
PHASETIM • Subroutines
• Abnormal
Condition
Handlers
ALPRIOR
ALARM
PHASEAL
INTERFACE
SEQERR
• Monitor current process values such as temperatures, pressures, and flows and current
states of devices such as valves and motors. The sequence program can access values
from the local APM database, and from any other node such as APM, HPM, PM, LM,
or SM that is on the same UCN. A sequence program can read the values of almost all
parameters in the APM database except for character-string descriptors such as
PTDESC (Point Descriptor), and input/output connections.
• Control the process by using the accessed values to calculate new values and write them
to the appropriate parameters. The sequence program can write values into the local
APM database and into any other node such as APM, HPM, PM, LM, or SM that is on
the same UCN. A sequence program can write values to all parameters in the APM
database except for calculated variables such as alarm flags and general configuration
parameters such as PVALGID (PV Algorithm Identifier).
• Use the 127 local flag variables, the 80 local numeric variables, the 16 8-character string
variables and the 4 time variables that reside in each Process Module Data Point. The
string variables can alternatively be used as 8 16-character or 4 32-character or 2 64-
character strings. It can also use the local flags, numerics, strings and times that reside
in other Process Module Data Points. Additional flags, numerics, strings, time, and
timer variables reside in the APM Box (see Section 9) and are available to all sequence
programs in the same APM. CL programs cannot access APM Box variables with an
index of greater than 4,095. Array points can be used to refer to those variables (see
Section 10).
NOTE
With R530, the compile time of a loaded CL/APM sequence program is provided. Time and
Date stamp information is shown on the Detail Display of the UCN ProcMod point. To access
this page, select the target CONFIG PARAMS from the first page of the ProcMod Point Detail
Display.
The user's process is usually partitioned into process units where the operators have the
responsibility to control one or more process units. To support this type of partitioning, the
APM Process Module Data Points (sequence programs) can be partitioned on a process unit
basis as shown in Figure 6-2. This is accomplished by using the following three elements:
• The set of CL/APM sequence programs that control individual process unit.
• The set of process monitoring and control elements that are used by the sequence
program to control the operation of the process unit.
• The operating displays at the Universal Station such as the Module Summary Display
(see Figure 6-3) which shows the current status of the process modules on a process unit
basis, and the Module Group and Module Detail displays which allow the operator to
start and stop the sequence programs, override various portions of the sequence
programs, etc.
Wherever possible, process unit partitioning should be consistent with the inherent
boundaries in the system, such as:
(APMM)
Process Equipment
SEQUENCE-EXECUTION SEQUENCE-EXECUTION
MODULE STATE MODE PHASE NAME
OPERATING
STATUS
UNIT ID UNIT MODULE SEQUENCE OPER EXEC MODE PHASE STEP MSG BATCH 1D
SINGLE-PROCESS
01 EM1 REACT NORM RUN AUTO SETUP ST2 CFM
MODULE LINE 01 EM2 OFF NL AUTO
STEP LABEL
MESSAGE INDICATOR
• To compile a CL/APM program (binding it to a process module point) and load it into
the APM, refer to the CL/APM Data Entry publication in the Implementation/Advanced
Process Manager - 2 binder.
The Sequence Library contains the names of the sequence programs. The Sequence
Library is divided into three sections, with each section having a maximum of 1000
entries. (The section is defined by the LIBRYNUM parameter.) A section of the library
can be viewed by reconstituting the point, using $NxxLiby where xx is the UCN number
on which the NIM resides and y is the section number of the library.
The library entries can be made automatically by the CL Compiler, or they can be entered
manually by the user. If the manual entry method is to be used, the user should first enter
the names on the NIM Library Configuration Form, AP88-540. The LIBRYTXT parameter
defines the allowable character set for the library entries.
Library 1 is reserved for sequence names; Libraries 2 and 3 are reserved for all other names.
If the CL Compiler completely fills up Libraries 2 and 3, the compiler will begin entering
the overflow information into Library 1, beginning with index number 1,000 and working
down towards index number 2.
The sequence library resides in the NIM, and it is applicable to all the APMs (or PMs or
HPMs) on the same UCN.
Each Process Module Data Point contains 127 local flags, 80 local numerics, 4 local time
variables, and 16 local 8-character strings. The strings can alternatively be allocated as 8
16-character, 4 32-character, or 2 64-character strings. Flags are designated FL(1) to
FL(127) and the numerics are designated NN(1) to NN(80). Times are designated TIME(1)
to TIME(4) and Strings are designated STRn(mm) where n is the string length (8, 16, 32,
64) and mm is the specific string number. For example, STR8(15) for 8-character strings,
STR16(7) for 16-character strings, etc.
The primary purpose of the flags and numerics is to provide storage for recipe data and
intermediate results. Time variables are used to record date/time information, and strings
contain text strings that name or describe things. These local variables can be accessed by
the sequence executing in the same process module in which they reside, or they can be
accessed by any other sequence in the same APM. The flags and numerics can also be
accessed by all system functions, such as CL programs in the AM, Universal Station
displays, etc. They can be accessed as local variables by CL/APM by using the AT clause.
Refer to the CL/APM Reference Manual.
These local variables are accessed by the various system elements using the
"Tagname.Parameter" convention where the Tagname is the name of the process module in
which they reside, and the "Parameter" is the parameter name such as FL(15), NN(25),
STR8(15), or Time(4). To store (write) into the local flags and numerics, the keylock
position must equal or exceed the minimum access level specified in parameter SPLOCK.
Flag, Numeric, String, Times, and Timer variables that reside in the APM box are a
different set of variables from the local flags, numerics, strings, and times. These variables
are available to the sequence programs in this APM and to the other sequence programs in
the APMs (or PMs or HPMs) on the same UCN and, with some minor restrictions, to other
system functions. They are described in Section 9 of this manual.
As shown in Figure 6-4, each sequence program consists of two main sections: the data
declaration section and the execution section.
The data declaration section requires the user to provide optional CL/APM statements that
relate user-defined names to APM flags, numerics, strings, and times that declare the
numeric constants, and that name the data points used in the program.
• A normal sequence that is the main program. The normal sequence is the main program
that provides control when conditions in the process are normal (e.g., the process is
proceeding within acceptable limits and does not require special control actions). The
main program is divided into "Phases," "Steps," and "Statements" as shown in Figure 6-4.
Step—A step executes a minor process function such as opening a valve with
associated checks and verification, or checking a temperature. At least one step is
executed each time the sequence is executed. A step is visible at a Universal Station
as a process milestone. It is identified in the sequence program by a STEP statement,
and consists of an ordered set of CL/APM statements. The step size is limited to a
maximum of 255 statements.
Program Header
Execution Section
Normal Sequence
Abnormal Condition
Handlers
Phase (Phasename)
Step (Stepname)
Statement Step (Stepname)
Statement Statement
• Statement
• •
• •
Statement Statement
Step (Stepname) •
•
END
Phase (Phasename)
Step (Stepname)
Statement
Statement Subroutines
•
• Step (Stepname)
Phase (Phasename) Statement
• •
• •
END END
• Subroutines—Subroutines simplify the program structure and are used for executing
repetitive functions, thereby reducing the programming effort and memory
requirements. Subroutines can be called by the normal sequence, other subroutines, or
abnormal condition handlers. Two levels of nesting are supported for both normal and
abnormal sequences. A runtime error is generated if the nesting level is violated.
Subroutines are specific to one sequence program, i.e., subroutines defined outside of
the program and maintained in subroutine libraries are not supported in the Advanced
Process Manager.
Note that the priority of a Restart Section is the same as the abnormal-condition handler
that contains the Restart Section.
The abnormal condition handlers can be enabled or disabled anywhere within a Phase
by using the ENB statement, which causes a suspend condition. The new conditions to
be monitored take effect immediately. The abnormal condition can also be enabled or
disabled by the phase header in the phase statement.
• CL block in an AM.
The process module operational state represents the operational condition of a process
module. The module state is represented through the PROCMOD parameter and the
allowable states are listed and described in Table 6-1. A state diagram is provided in
Figure 6-5.
The sequence execution mode defines the manner in which the sequence program is
executed. The sequence execution mode is established through the SEQMODE parameter,
and the allowable modes are listed and described in Table 6-2.
OFF
NORMAL
HOLD
EMERGENCY
SHUTDOWN
SHUTDOWN
Hold,
Shutdown,
Restart
Restart
Section
Section
2550
State Description
Norm (Normal) The normal sequence program is running in the process module slot.
* Parameter PROCMOD also contains the Strt (Start) and Stop states, which are transitional
states that can be controlled by one of the items listed in paragraph 6.1.5.2.
Auto (Automatic) Normal mode of operation. Sequence runs from beginning to end
without operator intervention.
The sequence execution state represents the current state of the sequence program. These
states are defined through parameter SEQEXEC and are listed and described in Table 6-3.
Figure 6-6 shows the possible state transitions of the sequence.
NOT LOADED
LOADING
LOADED
RUN
NL (Not Loaded) Initial state in which sequence has not been assigned to a process module.
This state is automatically entered from the DLL state when loading has
been aborted.
DLL (Down-Line Transient state during which the loading of the sequence into the process
Loading) module slot is in progress.
Loaded Sequence program has been loaded into the process module slot. This
state is automatically entered from the DLL state when loading has been
completed.
Failure
Code Definition
169 An attempt was made to start a sequence that was not loaded
into the process module slot.
(Continued)
Fail (continued)
Error
Code Definition
The process module displays at the Universal Station allow the user to perform phase, step,
and statement overrides when the sequence execution state is Fail, Error, or Pause. An
attempt to access the override function from anywhere other than the Universal Station
results in an error code of 107 (key-level error). The overrides are not restricted by the
value in CNTLOCK if the sequence execution state is Fail or Error.
• Phase Override—Allows the user to skip execution of one phase after another, in
forward or reverse order. Phase override works only in the sequence for which it is
invoked; it is implemented through the OVERPHAS parameter.
• Step Override—Allows the user to skip execution of one step after another, in forward
or reverse order. Step override works only in the phase for which it is invoked; it is
implemented through the OVERSTEP parameter.
• The sequence execution state is changed to Fail, Error, or End as indicated by a change
in the SEQEXEC parameter. The SEQEXEC parameter has a key level of View only
and cannot be changed from the LCN or by a CL/APM program.
The priority of the sequence alarm can be configured for each process module through the
SEQPR parameter. The entry for this parameter can be Emergency, High, Low, JnlPrint,
Printer, Journal, or NoAction.
Two types of programmed operator messages can be generated by the sequence program as
listed below.
• Message with feedback—A SEND statement with the confirmation option (WAIT)
causes the sequence to be suspended until the message has been confirmed by the user
at the Universal Station.
These messages can be displayed at the Universal Station and/or logged on the printer,
depending on how the user codes the message statement.
It is good practice to confirm any outstanding messages after a sequence failure before
rerunning the sequence and before loading a new sequence.
The restart option determines how the sequence program is started following a warm restart.
A Warm restart is considered as being a transition from Idle to Run, or a short power
interruption that does not change the APM database. The following restart options are
available:
• Off—The process module operational state is changed to Off and the sequence-
execution state is changed to Loaded (or Not Loaded if a sequence has not been loaded).
REGULATORY PV POINT
Section 7
This section describes the functions available in the Regulatory PV (RegPV) point. The functions are
described first and are followed by detailed descriptions of the algorithms. Definitions of the
parameters mentioned in this section can be found in the Advanced Process Manager Parameter
Reference Dictionary.
7.1 FEATURES
While standard I/O functions such as engineering unit conversion and alarming are handled
directly by the I/O Processors, Regulatory PV (RegPV) points provide an easy-to-use
configurable approach for implementing PV calculations and compensation functions. PV
processing provides a menu of selectable algorithms such as mass flow, totalization, and
variable dead-time compensation.
Summer (Summer)
Totalizer (Totalizr)
Calculator (Calcultr)
Detailed descriptions of these algorithms can be found in this section beginning with
paragraph 7.7.
PV INPUT
NOPINPTS PROCESSING
PVALGID PV USER-SUPPLIED
ALGORITHM :
: VALUES FOR THE
CALCULATION CONFIGURED
PVINIT
ALGORITHM
PVCALC
(in EU)
PVCLAMP Noclamp
PVEXEUHI PV FILTERING Clamp
PVEXEULO AND
TF RANGE CHECK PVEXHIFL
PVEXLOFL
PVAUTO
PNTFORM
Componnt
PVMan or PVSub Full
(from Operator or Program)
PVAUTO
PV
PVSOURCE
PV
Half
A HIGHAL
One
L
Two A
PVALDB R
Three
M
Four
Five
D
PVHHTP E
PVHHFL
T
PVHHPR E PVHIFL
: C :
PV ALARM : T : PV ALARM
TRIP POINTS : I : FLAGS
AND PRIORITIES : O :
PVROCPTP N PVROCNFL
PVROCPPR PVROCPFL
PTINAL
Fig. 7-1
UC09-200
#2080
The PV alarming function can be implemented only when Full has been entered for the
PNTFORM parameter. The following types of alarms are detected during PV alarm
processing:
PV High/Low
PV High-High/Low-Low
PV Rate-of-Change Positive/Negative
PV Significant Change
BadPV
PV source selection has no effect on alarm processing. For more detailed alarm
information, refer to paragraph 4.3 in System Control Functions.
7.7 PV ALGORITHMS
The PV Algorithms in the APM are described in the sections that follow. Each of the PV
algorithm descriptions has the same form and the same headings:
FUNCTION
USE
Each of the algorithm descriptions mentions several parameters associated with the
algorithm. The parameter names consist of CAPITAL letters. References to parameters not
named in the descriptions are provided after the descriptions. Further information on all
data-point parameters, including the data type, range, and access keys, is provided in the
Advanced Process Manager Parameter Reference Dictionary.
7.7.1.1 Function
This algorithm normally accepts the input and places it, unchanged, in PVCALC. All of the
other PV algorithms alter the input(s) in some way. See Figure 7-2.
7.7.1.2 Use
The most common use of this algorithm is to provide a PV that has been through PV Input
Processing, PV Algorithm Processing, PV Filtering, and PV Source Selection (see Figure
7-1). The value in PVCALC is filtered, and becomes PV, if the PV source is Auto.
The input to this algorithm and its output are in engineering units.
7.7.1.4 Equation
This algorithm has one equation form. The operation is simply the replacement of the data
point's calculated PV (PVCALC) with the value of the input:
PVCALC = P1
Where P1 contains the first input value and PVCALC contains the value that becomes the
PV when PVSOURCE = Auto.
The parameters associated with with this algorithm are P1, PVCALC, and P1STS. Refer to
the Advanced Process Manager Parameter Reference Dictionary.
Measured
Process Value
or Calculated (Data Point
P1 PVCALC
Value from Parameter)
Another Data
Point
7.7.2.1 Function
7.7.2.2 Use
Flow Input F
P
COMPTERM G FLOWCOMP (Data Point
PVCALC
Inputs T Parameter)
Q
Z
Simplified Equation:
PVCALC = F*COMPTERM
A: Liquids
B: Gases, Vapors
C: Gases, Vapors (Spec. Gravity)
D: Volumetric Flow of Gases and Vapors
E: Steam
Parameter PVEQN specifies one of five different equations for this algorithm. The equation
causes the compensation term (COMPTERM) to differ according to the application, as
follows (see 7.7.2.4 for the actual equations):
Equation A
Equation B
Primarily used for mass-flow compensation of gas or vapor flows. Actual absolute
temperature and pressure are used as compensation inputs.
Equation C
Used for mass-flow compensation of gas or vapor flows. Actual specific gravity
(measured or calculated), absolute temperature, and pressure are used as compensation
inputs.
Equation D
Principally used for volumetric-flow compensation for gas or vapor flows. Actual
temperature, pressure, and molecular weight are used as compensation inputs. The
molecular weight can be calculated by the Calculator algorithm, or a user written program
in the AM or Computing Module (CM50/CM60).
Equation E
Used for mass-flow compensation of steam flows in industrial applications. Actual temperature,
pressure, specific gravity, steam compressibility, and steam quality are used as compensation
inputs. This equation can also be used for "custody transfer" of gases or liquids.
On a cold or warm restart, or when this data point is activated, PVCALC is recalculated the
next time the FLOWCOMP data point is processed.
Error Handling
If the status of any of the input values is bad, PVCALC contains NaN and the PVAUTOST
becomes Bad. If there are no bad inputs but the status of one or more of the inputs is
"uncertain," the PVAUTOST becomes Uncertn.
Refer to 7.7.2.4, Equations, for more detail on the inputs and parameters mentioned in
these notes.
Units of Measure—The absolute value of either U.S. Customary Units or SI (metric) units
can be used. All inputs and parameters must be in engineering units of one system or the
other. The typical value for P0 (see definition of this parameter under 7.7.2.4) in U.S.
Customary Units is 14.696 psia and in SI units it is 101.325 kPa. The typical T0 value is
459.69°F in U.S. Customary Units and 273.15°C in SI units.
Equation A can be used for either mass or volumetric compensation of liquid flows. The
use depends on whether the measurement of uncompensated flow is a mass measurement or
a volumetric measurement, and on the desired uncompensated-flow units. Here are three
ways to use Equation A:
If the measured value of specific gravity at flow conditions is available, the actual
specific gravity, referred to standard conditions, is calculated from that measurement
by another data point and input to C2 through a general input connection. If actual
specific gravity is measured by a lab, a numeric data-point could be used to hold the
value and input to C1 through a general input connection. For the latter case, another
data point uses the lab value to calculate specific gravity at flow conditions and the
result is input G.
7.7.2.4 Equations
You configure PVEQN for data point that uses the Flow Compensation algorithm to specify
one of five equations. The equations select the compensation term. The basic equation is
C1
PVCALC = C * C2 * F * COMPTERM
Where:
COMPTERM = The compensation term. This term differs in each of the five
flow-compensation equations, A through E. Its value lies
between the COMPLO and COMPHI limits, which are
specified by the process engineer. If either limit parameter
contains NaN, the corresponding limit check is not made.
NOTE
The equations shown below are performed using absolute values for pressure and temperature.
You must convert temperatures and pressures to absolute values in order to use this algorithm.
G
Equation A: COMPTERM = RG (Liquids)
P+P0 RT
Equation B: COMPTERM = RP * T+T0 (Gases & Vapors)
P+P0 RT G
Equation C: COMPTERM = RP * T+T0 * RG (Gases & Vapors
w/Specific Gravity)
P+P0 RT RG
Equation D: COMPTERM = RP * T+T0 * G (Volumetric Flow
of Gases & Vapors)
P+P0 RT X RQ
Equation E: COMPTERM = RP * T+T0 * RX * Q (Steam)
Where the following (in engineering units) are received through input connections
G = Measured or calculated specific gravity or molecular weight.
P = Measured actual gage pressure.
T = Measured actual temperature.
X = Measured actual steam compressibility.
Q = Measured actual steam-quality factor.
And the following parameters are specified by the process engineer
RG = Design specific gravity or reference molecular weight, in the same
engineering units as G (Default value = 1.0).
RP = Design pressure, converted to an absolute value (Default value = 1.0).
RQ = Design steam quality factor, in the same units as Q (Default value =1.0)
Other parameters associated with this algorithm are as follows (refer to the Advanced
Process Manager Parameter Reference Dictionary):
COMPHILM
COMPLOLM
COMPTERM
FSTS
GSTS
PSTS
PVCALC
PVEQN
QSTS
TSTS
XSTS
This algorithm provides a calculated PV (PVCALC) that is normally the middle value of
three values from the PV input connections. PVAUTOST is Bad, only if all three inputs to
this algorithm are bad. If at least one input is valid (normal or uncertain), the algorithm
provides a valid value in PVCALC.
When configured with only two inputs, this algorithm serves as a high/low selector or input
averaging block. These functions are selected by choosing the corresponding control
equation (A, B or C as shown below).
If only one valid input value is available, it is selected. If only two valid input values are
available, the selected value can be the highest or the lowest, or the average of the two, as
specified when you select the equation to be used by this algorithm. See Figure 7-4.
P1
PVCALC
P2 MIDOF3 (Data Point
Parameter)
SELINP
P3
7.7.3.2 Use
This algorithm is used to provide a reasonably secure PVCALC when inputs are available
from three redundant inputs, one or more of which may occasionally fail or provide erratic
values. The Low Selector, High Selector, Average PV algorithm provides a somewhat
similar function with up-to-six input connections (see 7.7.4).
Normal operation occurs if there are no inputs with a bad-value status. Inputs are treated as
valid if their value status is either normal or uncertain.
If there are two inputs with equal values or if all three input values are equal,
PVCALC = the value for which there is at least one other equal
and
SELINP = the lowest-number input with and equal value, SelectP1
through SelectP3.
Error Handling
PVAUTOST becomes Uncertn only when the selected input is uncertain, or for equation C,
when one of the inputs used for averaging is uncertain.
The PVAUTO status is bad and PVCALC becomes NaN when the status of all three inputs
is bad.
7.7.3.4 Equations
If three valid inputs are present, the equations have no meaning and the algorithm functions
normally, as described under Normal Operation with Three Valid Inputs. The equations
specify what the algorithm is to do if one or more inputs has a bad-value status. The
equations function as follows:
Equation A
PVCALC = NaN
SELINP = None
Where:
PVCALC = The output of this algorithm. It is selected as the PV for the data
point when the PVSOURCE is Auto.
P1, P2, and P3 The input values. The default value is NaN.
Refer to the Advanced Process Manager Parameter Reference Dictionary for more
information.
It can accept up to six inputs. Valid inputs are those with a status that is "Normal" or
"Uncertain." When the input selection functions are used, the number of the input that is
selected is contained in a accessible parameter (SELINP). See Figure 7-5.
7.7.4.2 Use
One example of the use of this algorithm is shown at the top of Figure 7-5. In this example,
the high value-selector version of the algorithm is used to detect hot spots in a boiler or a
reactor.
Either the high value-selector version or the low value-selector version can be used to
detect production bottlenecks. For example, this algorithm might be used to notify the
process operator that production is currently constrained by the speed of a gas compressor.
One of the selector options might also be used to select the "safest" PV for control.
One use of the averaging option is in balancing furnace passes. In this application, the
algorithm calculates the average of the outlet temperatures of the passes.
Forced Selection
The data point can be configured to allow the Universal Station operator, a user-written
program, or a general-input connection to force selection of one of the inputs.
Typically a flow P1
measurement Time-scaled
TOTALIZR PVCALC accumulation
Start
Stop
Operator or user-
Reset Target value
written program TIMEBASE flags
Target Value
Error Handling
Except when forced selection is in effect (Forced Selection), inputs with a bad status are
ignored and they do not make the PVAUTOST is Bad. For example, if the algorithm is
configured as a 4-input high-selector and one of the inputs goes bad, the algorithm
functions as a 3-input high-selector.
If the number of valid inputs (PVSTS is Normal or Uncertn) is less than the minimum
number specified in parameter NMIN, PVCALC becomes NaN and the PVAUTOST is
Bad.
• An input selection is forced and the status of that input is not bad (is normal or
uncertain).
• Forced selection is not in effect, at least as many inputs as specified by NMIN are
normal or uncertain, and the status of the selected one (Equation A or B) is uncertain.
• Equation C (averaging) is chosen, at least as many inputs as specified by NMIN are not
bad (normal or uncertain), and the status of any of them is uncertain.
PVCALC becomes NaN and PVAUTOST becomes Bad under either of the following
conditions:
• The selection of an input is forced and the status of that input is bad.
• Forced selection is not in effect, and there are fewer inputs with a status other than bad
than are specified by NMIN.
On a cold or warm restart, or when this data point is activated, PVCALC is simply
recalculated the next time this data point is processed.
7.7.4.4 Equations
Equation A selects the highest input value. Equation B selects the lowest input value.
Equation C calculates the average of all valid inputs.
SELINP = FSELIN
SELINP = FSELIN
Equation C—Average
SELINP = FSELIN
7.7.5.1 Function
This algorithm calculates a PV (PVCALC) that is the sum of up-to-six input values. The
input values can be scaled, the combined inputs can be scaled, and a bias value can be
added to the result. See Figure 7-6.
P1
P2
P3 (Data Point
P4 SUMMER PVCALC
Parameters)
P5
P6
EQUATION B, simplified:
PVCALC = P1 + P2 + . . . + P6
7.7.5.2 Use
A typical use is the calculation of the rate at which a component of a raw product is entering
a process unit, which is found by summing the proportion of the component in each of
several input streams and multiplying by the stream flow rates. This algorithm can also be
used to calculate a net heat loss by finding the difference between the heat inputs and heat
outputs (the difference can be obtained by using a negative scale factor, for example, –1.0).
Other possible uses are mass-balance, heat-balance, and inventory calculations.
This equation can be used to scale and bias a single variable; see 7.7.5.4 Equation A.
Because the input values can be either positive or negative, as can the scale factors and bias
values, the results in PVCALC can have a broad range of values. You should evaluate the
worst-case values you expect to be in use, to establish the PV range. When you configure
the data point, be sure to specify a PV range adequate to cover all expected values.
Error Handling
If there are no inputs with a bad status and the status of at least one input is uncertain,
PVAUTOST is Uncertn.
If the status of at least one input is bad, the PVAUTOST becomes Bad and PVCALC
contains NaN.
Restart or Point Activation
On any type of restart or when this data point is activated, PVCALC is normally calculated.
7.7.5.4 Equations
You can select one of two equations when you configure a data point that uses the Summer
PV algorithm:
Equation A
PVCALC = C * P1 + D
Equation B
Where:
PVCALC = The output of this algorithm. It is selected as the PV for this
data point when the PV source is AUTOmatic.
C = The overall scale factor. Default = 1.0.
C1 through Cn = The scale factors for P1 through Pn. Default = 1.0.
P1 through Pn = The PV input values. Equation B is limited to six inputs.
Default for all values is NaN.
D = The overall bias. Default = 0.
n = The number of PV inputs used. Default = 2.
Other parameters associated with the SUMMER algorithm are: N, PnSTS and PVEQN.
Refer to the Advanced Process Manager Parameter Reference Dictionary for more information.
Process Input P1
(Data Point
PVCALC
Parameter)
Variable Dead
P2
Time Input
Process Input P1
(Data Point
VDTLL PVCALC Parameters)
Variable Dead
Time Input P2
Figure 7-7 — Functional Diagram, Variable Dead time with Lead Lag PV Algo 1316
7.7.6.2 Use
This algorithm is used for feedforward control and in process simulations. For additional
use information, see Equations C and D, under 7.7.6.4.
This algorithm can be used as the PV algorithm in a data point that uses the PID
Feedforward control algorithm (see 8.13.2), Figure 8-7.
In a typical feedforward application, the PV provided by this algorithm serves as the
feedforward PV. An operator can "cut out" this feedforward component by switching the
PVSOURCE to Man.
You select the combinations of delay, lead compensation, and lag compensation by
selecting Equation A, Equation B, Equation C, or Equation D when configuring the data
point. The equations function as follows:
• Equation A, Lead-Lag—A change in the input value (P1) is subjected to one lead
compensation and two lag compensations. If you specify a time constant of zero in the
Lead Compensation time constant, TLD, Lag Compensation time constants, TLG1, or
TLG2, the corresponding lead or lag compensation is suppressed. If you don't suppress
the lead compensation, you must use at least one lag compensation.
• Equation B, Fixed Dead Time—A change in the input value (P1) is delayed by a
user-specified time. This data point must be made inactive in order to change the dead-
time value (TD).
• Equation C, Variable Dead Time—A change in the input value (P1) is delayed by a
time period the duration of which varies as the inverse of P2-input value variations.
The variable time period is determined by P2, the C1 and C2 scale factors, and bias
values D1 and D2. The delay (or dead time) typically represents a delay in the process
that depends on some variable in the process, such as flow, feed rate, or a conveyer-
belt speed.
Equations C and D have a cutoff feature that can simulate situations like a conveyer
belt stopping. If the flow or speed value, represented by the P2 input, drops below a
limit that you configure in the CUTOFFLM parameter, the value of the delayed P1
signal (DP1) goes to zero. (DP1 is not an external parameter.) When P2 again exceeds
the CUTOFFLM value, DP1 resumes as a normal, delayed output. If you don't want
this feature, configure CUTOFFLM as NaN. Note that DP1 is subject to scale factor C
and bias value D. See 7.7.6.4.
Equation C can be used to produce a fixed delay time that can be changed while the
data point is active.
• Equation D, Variable Dead Time with Two Lags—A change in the input value (P1)
is delayed as with Equation C and then receives lag compensation as specified by one
or two time constants (TLG1, TLG2). This equation is useful for simulating a portion
of a process that can be represented by a dead time and one or two lags. The cutoff
feature applies as for Equation C.
The delay of the input values is accomplished by a process that has the effect of shifting
the values through a table in the APM's memory. Values are shifted from one location in
the table to the next, at intervals calculated to provide the desired delay. This is illustrated
in Figure 7-8.
Interpolator DP1
Maximum of 31 locations
Delayed P1 Output
For an example of the delay-table operation, suppose that the P1-input value has been
constant at 5.0 units for an hour. Assume that the specified delay time, TD, is 15 minutes
and that the data point is processed every second; Time Sample (TS = 1/60) min. as
determined by the SCANRATE parameter. At this time, the output of the interpolator is
5.0 units, all of the locations in the table contain a value of 5.0 units, and P1 contains a
value of 5.0 units.
Now suppose that the input to P1 suddenly changes to 6.0 units. The interval at which new
values are shifted through the table and the number of table locations in use have been set
up so that it takes 15 minutes for the new value of 6.0 units to appear at the output of the
interpolator.
Three sample calculations follow. The first shows how a fixed delay time is determined
(Equation B), the second shows how a variable delay time is determined, and the third
shows how a change in the P2 input changes the variable delay time.
TD 15
NRATE = (TS = = 1
* 30) (0.5 * 30)
TD 15
NLOC = (TS = = 30 locations
*NRATE) (0.5 * 1)
If the calculated values of NRATE and NLOC had resulted in fractions, the results would
have been rounded up to the nearest larger integer and the actual delay time would have
been slightly more than specified.
Where the TD is less than 30 times TS, NRATE always has a value of 1. In such cases, the
delayed output is a true, but delayed, representation of the corresponding input value.
Where the NRATE value is greater than 1, the output signal is interpolated to approximate
the earlier change in the input, by using the last output value and the value in the last
location in the table. This is an excellent approximation for typically smooth changes in
process values.
1
1. The value in TS is 60 minutes. NLOC = 30.
2. Each time the data point is processed, a new variable delay time is calculated as
C1
TDNEW = (C2 + D1.
* P2) + D2
Assume the P2 input is 20.0 units and its scale factor is 0.05. Scale factor C1 is 30.0.
The biases, D1 and D2 both equal 0.
30.0
TDNEW = (0.05 + 0 = 30 minutes.
* 20.0) + 0
3. NRATE = (TSTDNEW =
30
= 60
* NLOC) (
1
60 * 30)
1
TD = NLOC * NRATE * TS = 30 * 60 * 60 = 30 minutes.
1
1. The value in TS is 60 minutes.
C1 30.0
2. TDNEW = (C2 + D1 = (0.05 + 0 = 25.641
* P2) + D2 * 23.4) + 0
minutes.
This is rounded to the nearest integer (not necessarily the next larger integer, as for a
fixed delay time), so
NRATE = 51.
In the Second Delay Time Example, the exact delay specified by the input was 25.641
minutes.
Variable delay-time parameters C1, C2, D1, and D2 in Equations C and D can be changed
at a Universal Station while the data point is active. Note that the D1 value allows a
supervisor or engineer to add a fixed delay time to the total variable delay time.
The C1 and C2 parameters are used to specify the time scale of the P2 value. D1 can be
used to offset that scale. Note that the P2 value is inversely proportional to the variable
time delay. Where P2 represents a flow rate or speed, when the flow or speed decreases,
the time delay increases to simulate the effect of the reduced flow or speed.
The minimum fixed delay time (Equation B) is equal to TS, the processing interval in
minutes. Delay values greater than 32,000*TS are rejected.
For Equations C and D the minimum step-change in the TD value is equal to NLOC*TS.
This is also the value of the smallest dead time (delay time). If the TDNEW value is less
than zero, it is clamped to zero. Also, if TDNEW exceeds 32,000*TS, it is clamped to
32,000*TS.
Time-Constant Recommendations
We recommend that the processing rate of a data point that uses this algorithm and
Equation A or D must be at least ten times greater than the lead or lag break-point
frequencies, so, divided by lead break-point frequency) be less than or equal to 10, so,
TLG1 should be equal to or greater than 2 * TS
TLG2 should be equal to or greater than 2 * TS
|TLD| should be equal to or greater than 10 * TS
Both positive and negative lead times can be specified, so it is the absolute value of TLD
that must be equal to or greater than 10 * TS.
We recommend that the rate amplitude (lag break-point frequency divided by the lead
break-point frequency) be less than or equal to 10 so,
|TLD| should be equal to or less than 10 * TLG1.
You can use these variable delay-time equations to attain a fixed delay time by setting the
value of C1 to 0 and adjusting the value of D1 to get the desired delay value. This permits
changes of delay time from a Universal Station while the data point is active, but the
resolution may be much less than using a fixed delay time (Equation B), where the delay
can be changed only by making the point inactive and then active again.
On a cold start, a warm start, and when the data point is activated, the lead-lag dynamics
are set to the steady state, and all values in the delay table are set to the current value of the
P1 input. PVCALC is calculated as follows:
PVCALC = C * P1 + D
Error Handling
For Equations C and D, if neither input has a bad-value status, but one or both has an
uncertain-value status, PVAUTOST is Uncertn. Equations A and B don't use the P2 input,
so for them, PVAUTOST is Uncertn only if the P1-value status (P1STS) is Uncertn.
For Equations C and D, if either input has a bad-value status, PVCALC becomes NaN and
the PVAUTOST is Bad. For Equations A and B, when P1STS is Bad, it causes PVCALC
to contain NaN and the PVAUTOST to be Bad.
When the input-value status is again normal or uncertain, the data point is initialized as for
a cold start under Restart or Point Activation, and the PVAUTO-value status becomes
normal, or uncertain, as appropriate.
7.7.6.4 Equations
You can select one of four equations when you configure a data point that uses the
Variable Dead Time with Lead-Lag Compensation PV algorithm:
1 + TLD *s
PVCALC(s) = [C * (1 + TLG1 * s) * (1 + TLG2 * s) * P1(s)] + D
DP1t = P1t-TD
PVCALC(s) = C * DP1 + D
If CUTOFFLM does not contain NaN and if P2 is less than CUTOFFLM, DP1 = 0.
Otherwise, calculate DP1 as follows:
DP1t = P1t-TD
C1
TD = C2 * P2 + D2
PVCALC(s) = C * DP1 + D
C1
TD = C2 * P2 + D2 + D1
DP1t = P1t-TD
1
PVCALC(s) = [C * (1 + TLG1 * s) * (1 + TLG2 * s|) * DP1(s)] + D
Where:
t-TD = The present time minus the actual dead (delay) time
(notation only, not a parameter).
Other parameters associated with the VDTLDLG algorithm is as follows (refer to the
Advanced Process Manager Parameter Reference Dictionary):
7.7.7.1 Function
This algorithm provides a time-scaled accumulation of an input value. The input value is
typically a flow measurement. Either analog or pulse input can be selected through
parameter ACCTYPE. The time-base can be seconds, minutes, or hours.
Start
Stop
Operator or user- Reset PVCALC
written program TIMEBASE
Time-scaled
TOTALIZR
Target Value accumulation
Analog (HLAI)
Target-value
P1
flags
ACCTYPE
P2
PV AV
Pulse IOP
The accumulation can be started, stopped, and reset by commands from a Universal
Station operator or from a user-written program. An operator or user-written program can
establish a target value for the accumulation. Status indicators are available to indicate that
the accumulation is near the target value, nearer to the target value, and is complete (has
reached or exceeded the target value).
For situations where the flow transmitter may not be precisely calibrated near the zero-
flow value, a zero-flow cutoff feature is provided that avoids accumulating negative flow
values. When the flow is below a user-specified cutoff value, the input value is clamped to
zero.
7.7.7.2 Use
An example of TOTALIZR's use in control is determining how full a tank is, so that the
flow into the tank can be shut off before it overflows. In such an application, the P1 input
to TOTALIZR would be the PV of PID-flow controller.
Typical Operation
The events in an operation that uses TOTALIZR might be as follows (see Figure 7-10):
• The target value, which represents the desired total volume, is specified to the AVTV
parameter in the TOTALIZR point, by an operator at a Universal Station or by a user-
written program.
NOTE
AVTV is displayed as the setpoint (SP).
• A Start command is issued to the TOTALIZR point. A logic slot or user program sets
the setpoint to some value.
• When the first "slowdown" or "near-target" flag (ADEV1FL) comes on, it is read by
logic or user program and reduces the setpoint.
• When the second "slowdown" or "near-target" flag (ADEV2FL) comes on, it is read by
logic or user program and reduces the setpoint.
• When the accumulation reaches the target value (AVTV), filling is complete and the
complete flag (AVTVFL) comes on. It is read by logic or user program and sets the
setpoint = 0.
Target
Value
(PVTV)
AVDEV1FL
P1 TOTALIZER AVDEV2FL CL Block(s)
AVTVFL
SP
PID OP
PV
F Flow Transmitter
Liquid
The user specifies the time base in seconds, minutes, or hours, in parameter TIMEBASE.
This is the time base in which the flow measurement is made. For example, liters per
second. This parameter only applies when ACCTYPE = ANALOG.
Scale factor, C, can be used to convert from one set of engineering units to another, for
example, from gallons per minute to barrels per minute.
Commands can be issued to the data point that is using TOTALIZR from a Universal
Station or by a user-written program. These commands are written in the TOTALIZR
point's COMMAND parameter.
• None—No action.
Command Flags
In addition to the above (enumerated) commands, explicit command flags are provided to
reset, start, or stop the totalizer.
The above flags are program-access level, so they can be written to by a Logic Point or a
user-written program.
The reset command sets the PVCALC parameter equal to the reset value (RESETVAL).
The value of PVCALC just prior to being reset is saved as the old accumulation value
(OLDAV). This allows other system functions using the totalized value to be able to reset
the totalizer without losing any "accumulation."
The accumulated value has a normal range of PVEULO to PVEUHI, where PVEUHI
defines the point where the bar graph is at the 100% level, and PVEULO is the point where
the bar graph is at the 0% level.
Values are accumulated as integers, but displayed as real numbers. You can enter values
using scientific notation; for example, 1,000,000 can be entered as 1E6. If the accumulated
value exceeds the limit of displayable characters, it will be displayed in scientific notation.
Near-Zero Cutoff
To prevent accumulation of negative flow values, where the flow transmitter may not be
precisely calibrated near zero flow, you can specify a cutoff value in parameter
CUTOFFLM. When the P1 value is below CUTOFFLM, it is replaced by zero. You can
eliminate this feature by specifying NaN in CUTOFFLM.
Target-Value Flags
The target value can be specified by an operator or a user-written program that is stored in
AVTV. This feature can be disabled by storing NaN in AVTV.
When the accumulated value in PVCALC is equal to or greater than AVTV, the target-
value-reached flag, AVTVFL, goes to On, indicating that the accumulation is complete.
Even if the accumulator has stopped, this check is made on each processing pass.
You can specify two other trip points in AVDEV1TP and AVDEV2TP, as deviations from
AVTV. Each of them is associated with a flag:
AVDEV1FL trips when
PVCALC > AVTV - AVDEV1TP
When the PVAUTOST of the accumulated value is Bad, AVTVFL, AVDEV1FL, and
AVDEV2FL are all Off.
You can configure equations A through F for this algorithm, but instead of specifying the
calculation, they specify combinations of the following five options:
• Use Zero—When the accumulator is running, if the input status P1STS (or P2STS for
Pulse IOP) is Bad, the input value is replaced by zero and the accumulation continues
with a PVAUTOST of Uncertn.
When the input status is Normal, PVAUTOST remains Uncertn until a reset command
is received. No special action by the operator is required.
• Use Last Good Value—When the accumulator is running, if the input status is bad,
the input value is replaced by the last good value and the accumulation continues with
PVAUTOST as Uncertn. When the input status is Normal, PVAUTOST remains
Uncertn until a Reset command is received. No special action by the operator is
required.
• Set PVAUTOST Bad and Stop—When the accumulator is running and the input
status is bad, the value in PVCALC becomes NaN, PVAUTOST goes Bad, and the
accumulator is stopped. If the PVSOURCE is Auto, a bad-PV alarm is generated.
When the input status is again Normal, PVAUTOST remains Bad until the
accumulator is started again. To restart the accumulation, the operator should estimate
its value and use the Reset command (see Commands, States and Command Flags)
to establish that value, then use the Start command to restart the accumulation. The last
accumulated value before the status went bad is in LASTPV.
• Continue After a Warm Restart—On a warm restart when the accumulator is
running, the accumulation continues from the last PVCALC value. The PVAUTOST
goes to uncertain (UNCERTN) and remains so until a Reset command is received.
When the Pulse Input IOP is used (ACCTYPE = PULSE), accumulation continues
with the accumulated value count (AV) obtained from the IOP. The totalizer assumes
that exactly one rollover of the IOP count has occurred, if necessary. The PVAUTOST
goes to UNCERTN and remains so until a Reset command is received.
• Set PVAUTOST Bad and Stop After a Warm Restart—On a warm restart when the
accumulator is running, the value in PVCALC becomes NaN, PVAUTOST goes Bad,
and the accumulation is stopped. The operator must intervene to restart the
accumulator.
If the accumulator is stopped, the input status is ignored. If the accumulator is stopped on a
warm restart, no special action by the operator is required.
When the TOTALIZR data point is activated, the PVCALC value becomes NaN,
PVAUTOST goes Bad and the accumulator state is Stopped. If the PVSOURCE is Auto,
this causes a bad-PV alarm and the operator must re-establish normal operation.
The processing that takes place for a warm restart is described under Bad Input and
Warm-Restart Options.
Error Handling
• The input status is Bad and the "use zero" or "use last value" (Equation A, B, D, or E)
is configured (see Bad-Input and Warm-Restart Options).
• The data point is in a warm restart and the continue option (Equations A, B, or C) is
configured (see Bad-Input and Warm-Restart Options).
A Reset command is needed to return PVAUTOST status to Normal, provided the input
status is Normal.
• The input status is Bad and the "set bad and stop" (Equation C or F) is configured.
• The data point is in a warm restart and is configured for "set bad and stop" (Equations
D, E, or F) is configured.
A Reset command is needed to return PVAUTOST to Normal, provided the input status is
Normal.
Configure one of Equations A through F for a TOTALIZR data point equation specifying
the operating bad-input and warm-restart options according to Bad-Input and Warm-
Restart Options.
Analog Operation—
For all equations, when the accumulator is running, the accumulated value in PVCALC is
calculated as follows:
PVCALC(i) = PVCALC(i-1) + C * (TIME-SCALE) * Pn
Where
PVCALC(i) = The output of this algorithm from the current pass. It is
selected as the PV for this data point when PVSOURCE is
Auto.
PVCALC(i-1) = The accumulated value at the end of the last processing pass
for this point.
C = The scale factor. Can be used to convert from eng. units to
different eng. units. Default value = 1.0
(Time-scale) = TS*60 if TIMEBASE contains Seconds.
TS if TIMEBASE contains Minutes.
TS/60 if TIMEBASE contains Hours.
If pulse is selected via parameter ACCTYPE, operation is the same, except input from the
Pulse IOP is supported as described below (refer also to the Pulse IOP description in
Section 2.7).
As Figure 7-9 indicates, P1/P2 input is from the Pulse IOP. Normally the P2 input (AV) is
used (see PV/AV Selection). AV is the accumulated value from the pulse IOP. It is a 32 bit
unsigned integer and used to determine volume. This method is more precise than if the
Pulse IOP rate value is used. Error handling selected by Equations A through F reference
the P2 input status.
The PV Totalizer algorithm contains a single user-configurable constant (C) —
PVCALC = C * DELTA_AV + PVCALC_LAST_SAMPLE
When configuring the PV Totalizer algorithm for pulse operation, select ACCTYPE =
PULSE. Then, define the pulse input source, P1SRC(1) to be the PV parameter of the PI
IOP. The APMM software uses the entity specified for P1SRC(1) to establish the
algorithm’s second input (P2) except that it uses the parameter ID of AV.
7.7.7.7 Parameters
Other parameters associated with the TOTALIZR algorithm are as follows (refer to the
Advanced Process Manager Parameter Reference Dictionary):
This algorithm calculates a PV that is a function of the input. The function can be any that
can be represented by up-to-12 continuous, linear segments. You specify the base value
and slope of each segment. The input is compared with the input range of each segment
and the output is set at the intersection of the input with the appropriate segment. See
Figures 7-11 and 7-12.
(Data Point
P1 GENLIN PVCALC
Parameter)
This algorithm is typically used to provide a linearized PV (in engineering units) for a
sensor with a nonlinear characteristic. This algorithm can also be used to characterize
functions of a single variable, such as heat transfer vs flow rate, or efficiency as a function
of load. The algorithm is particularly useful when the relationship of the input to
engineering units is empirically determined.
This algorithm supplements the standard linearization functions that are provided in the
IOPs for standard temperature sensors and differential flow meters.
On a cold or warm restart, or when a data point using this algorithm is activated, PVCALC
is recalculated the next time this data point is processed.
Error Handling
The SEGTOT, INi, and OUTi parameters can be changed through a Universal Station only
if the data point that uses the GenLin algorithm is made inactive.
Parameter—Value Restrictions
The input coordinate value parameters must be specified in ascending order from the
smallest value to the largest.
OUT3 100 -
90 -
80 -
Solution D
70 -
60 -
PVCALC
50 - SEGTOT = 3
OUT2 Solution A
40 -
Solution C
30 -
OUT1 20 -
Solution B
10 -
OUT0 0 -
0 10 20 30 40 50 60 70 80 90 100
OUTsegtot - OUT(segtot - 1)
PVCALC = *[P1 - IN(segtot - 1)] + OUT(segtot -1)
INsegtot - IN(segtot - 1)
100 - 45
=
85 - 55 * (70 - 55) + 45 = 72.5
The first and last segments are treated as if they indefinitely extended, so if P1 is less than
IN0 or greater than INsegtot (see 7.7.8.4), PVCALC is computed by assuming that the
slope of the appropriate segment continues to the intersection point.
7.7.8.4 Equation
Each time this algorithm is processed the input value P1 is compared with each segment,
starting with the first and continuing until a segment is found that intersects with the input.
When that segment is found, PVCALC is calculated as follows:
• If the P1 value is exactly equal to the input value at the beginning of any segment (P1 =
INi, for i in a range from 0 to the value in SEGTOT),
PVCALC = OUTi
• If P1 intersects any segment except the first one or the last one [INi < P1 < IN(i+1) for
any i from 1 to segtot-2],
OUT(i+1) - OUTi
PVCALC = IN(I+1) - IN1 * (P1 - IN1) + OUT1
OUTsegtot - OUT(segtot-1)
PVCALC = * [P1 - IN(segtot-1)] + OUT(segtot-1)
IN segtot - IN(segtot-1)
Where:
PVCALC = The output of this algorithm. It is selected as the PV for this
data point when the PV source is AUTOmatic.
P1 = The input value.
IN(i) = Input value at the beginning of the intersecting segment.
IN(i+1) = Input value at the end of the intersecting segment.
OUT(i) = Output value at the beginning of the intersecting segment.
OUT(i+1) = Output value at the end of the intersecting segment.
segtot = A subscript indicating the user-entered value in SEGTOT.
Other parameters associated with the GenLin algorithm are as follows (refer to the
Advanced Process Manager Parameter Reference Dictionary).
The calculator algorithm allows the user to write an equation to compute the PV and up to
four intermediate results. The result from evaluating the expression is stored into
PVCALC, which is then processed like any other PV algorithm. See Figure 7-13.
P1
P2
P3 (Data Point
P4 CALCEXP PVCALC
Parameters)
P5
P6
7.7.9.1 Function
The equation is specified at the time of point building and is loaded from the DEB without
additional steps such as compilation or linking. Up-to-six inputs can be configured and
stored into the destination parameters P1, P2 . . . P6.
• Free format reals and mixed real and integer calculations permitted.
• The result of any expression that has no "equate" associated with it is stored into
PVCALC.
Divide /
Multiply *
Subtract -
Add +
Absolute ABS
Square SQR
Square Root SQRT
Natural Logarithm LN
Base_10 Logarithm LOG
Exponent EXP
Sine SIN
Cosine COS
Tangent TAN
Arc-tangent ATAN
Equate =
• Other
Separator ;
7.7.9.2 Use
This algorithm can be used to perform any calculation or arithmetic function on up to six
inputs, using up to four intermediate results. Additionally is can be used as a selector
algorithm as noted above (see also 7.7.9.3 Options and Special Features).
• The user can configure up-to-six inputs, using the "Tagname.Parameter" format for
PISCRC(n). The destination inputs can be assigned, using PIDSTN(n) for P1 through
P6.
The result of expr_5 is stored in PVCALC (because it has no equate associated with it).
There is no restriction on the order in which the sub equations and the expression for
PVCALC are specified.
If C1-C4 are expressions, they are recalculated every time the algorithm is processed.
• If it is necessary, or desirable, to key user configurable constants into the equation, C1-
C4 can be useful. C1-C4 can then be entered or modified by an operator through the
detail displays, or by logic slots, or user program.
• Can be loaded from the DEB without extra linking and compiling.
• HI, LO, and AVG functions may have any number of inputs including constants.
If the calculated value of PVCALC is "bad," PVAUTOST is marked Bad. If the final value
of PVCALC is a normal number, PVAUTOST is marked Uncertn if any input that is used
in the calculation is uncertain or bad; otherwise it is set equal to Normal.
If the HI, LO, and AVG functions have bad inputs, they are ignored in the computation; if
all inputs are bad, the result is marked bad. On MID3 function, if only one input is bad, the
result is set equal to the average of the other two.
7.7.9.4 Equations
The equation can be up to 40 characters long. It is entered into the Parameter Entry Display
in the port for the parameter CALCEXP. You can configure up to four intermediate
expressions. The result of an expression not having an "equate" associated with it is stored
in PVCALC.
(180.0/(.15*P1)) + (P2+P3*LOG(P4))
C1=P1*P2;C2=P4*MAX(0,C1,100);SQRT(C2*10)
(P1 * P2)/C1
8.1 FUNCTIONS
Regulatory Control (RegCtl) points are used to perform standard control functions by
executing the algorithms that have been configured. Each control algorithm includes a
wide range of configurable options to allow implementation of complex control strategies
by a simple menu-select process. For example, initialization and windup protection are
inherently provided for all point interconnections. Also, the capability to ramp a setpoint
(by operator entry of a target value and ramp time) is configurable. Predefined and custom
displays are available to support these control strategies. These standard support functions
significantly simplify the implementation and use of sophisticated multiloop control
strategies. Increasingly advanced control strategies become practical as a result of the ease
of APM configuration.
The RegCtl point supports the following algorithms:
PID (Pid)
PID with Feedforward (PidFf)
PID with External Reset Feedback (PidErfb)
Position Proportional (PosProp)
PID Position Proportional (PIDPosPr)
Ratio Control (RatioCtl)
Ramp Soak (RampSoaK)
Override Selector (ORSel)
Auto Manual (AutoMan)
Incremental Summer (IncrSum)
Switch (Switch)
Null (Null)
Detailed descriptions of these algorithms can be found in this section beginning with
paragraph 8.13.
Figure 8-1 is a functional diagram of the RegCtl point.
The number of control input connections (NOCINPTS) and the destination parameter
(CIDSTN) for each connection are defaulted based on the noninitializable inputs required
by the control algorithm. (Refer to the individual control algorithm configuration form for
the destination parameters within each algorithm.) The control input connection-source
parameter CISRC allows the user to specify the source of the input using the
"Tagname.Parameter" format.
The inputs can be obtained from any source parameter that is a real number, an integer, or
a Boolean state. (Boolean states are treated as real numbers by the algorithm. The Off state
is equal to a real number of 0.0; the on state is equal to 1.0). For all RegCtl algorithms
except PIDERFB, the point's control output connections are also considered input
connections because the RegCtl point reads the output status before writing to it. A RegCtl
point can have a maximum of seven input and output connections that obtain inputs from
I/O Processors in the same APM.
Generally, initializable inputs are stored with control output connections at the primary
data point, and no input connections are required; however, in some cases it may be
required to obtain initializable inputs with input connections (for example, when
initialization and windup protection are not needed). To achieve this, the number of control
inputs is allowed to be increased based on the initializable inputs of the control algorithm.
The source of the PV can be an analog input point, a PV algorithm, a Universal Station, or
a user-written program. It is specified by the PVSOURCE parameter, whose value can be
changed by an operator, a supervisor, an engineer, or a user-written program. The
PVSOURCE parameter is configurable only if the data point has been configured as a full
point. PVSOURCE can have one of the following values:
• Auto—PV is received from an analog input point or a PV algorithm. The value is in
PVAUTO and its status is contained in PVAUTOST. During normal operation, the PV
source is Auto, and the PV and its value status (PVSTS) become equal to PVAUTO
and PVAUTOST, respectively, before PV range checks are made. When the PV source
is changed from Auto to Man or Sub, the PV remains at the last value until it is
changed by the operator (Man) or a program (Sub), so it doesn't "bump." In Man or
Sub, the status in PVSTS is Uncertn. When the PV source is changed from Man or Sub
to Auto, the PV immediately goes to the PVAUTO value. This might cause a bump in
the value unless it is changed gradually to the value in PVAUTO before changing the
source.
• Man—The PV is entered by an operator, supervisor, or engineer at a Universal Station.
• Sub—The PV is entered by a user-written program. A program can store a bad value in
PV, and if it does, PVSTS becomes Bad.
You can prevent PV source changes by entering OnlyAuto for the PVSRCOPT parameter.
This fixes the source as AUTO and the parameter PVSOURCE is removed from the point.
Configuring All in PVSRCOPT allows normal PV source selection.
PV (Input Value)
PV SOURCE
SELECTION
Pid, PosProp, ALL OTHER
and Ratio Ctl PV ALARM
DETECTION ALGORITHMS
Algorithms
EXTERNAL MODE
SWITCHING
INITIALIZATION
LOGIC
TARGET VALUE
PROCESSING OR
DEVIATION
ALARMING
Pid, PosProp,
and Ratio Ctl PV ALL OTHER
Algorithms TRACKING ALGORITHMS
DEVIATION
ALARMING
CONTROL
ALGORITHM
CALCULATION
CONTROL
OUTPUT OP (Output Value)
PROCESSING
ALARM
DISTRIBUTION
8.4 MODES
The following operating modes are applicable to the RegCtl point (refer to Figure 8-2):
• Cascade (Cas)—data point receives its setpoint value from a primary data point.
• Backup Cascade (Bcas)—local cascade mode where the RegCtl point receives its
setpoint from a primary data point even though the entry for the RCASOPT parameter
is Spc, DdcRsp, or Rsp (where the AM provides the setpoint). In this way, should the
AM or the NIM fail, the control strategy will shed to the local cascade mode.
Separate flags are provided to indicate if the current mode is manual (MANMODFL), auto
(AUTMODFL), or if the mode attribute is Oper (OPRATRFL). The modes and mode
attributes can be used in conjunction with the logic slots to implement interlocks.
The mode attribute denotes who has the authority to change certain parameters of a data
point, and is established through parameter MODATTR. The mode attributes are as
follows:
• Operator—Operator can supply the setpoint, output value, mode, ratio, and bias for a
data point (operator-access level).
• Program—Program can supply the setpoint, output value, mode, ratio, and bias for a
data point (program-access level).
At a Universal Station, the mode attribute is displayed next to the mode of the data point.
If the mode attribute is program, a "P-" is displayed to the left of MODE. If the mode
attribute is Operator, blanks are displayed to the left of MODE.
An access level of Ccont (Continuous Control) allows supervisory control from an LCN
module, such as the AM, to change the setpoint, output value, and mode of a data point.
OP (from AM)
Ddc
DdcRsp Spc
Rsp
RCASOPT
Cas
PV (from Program) Bcas Auto
Man
PV (from Operator) Sub MODE
Man
Configured Auto
PVAUTO
PV Connection (CISRC) PVSOURCE
REGULATORY MODE
CONTROL OP OP
POINT Cas or Auto
SP
Man
MODE MODATTR
Prog
Cas Auto None
Oper
Configured
SP Connection (CISRC)
MODE
Bcas Auto
Man
Cas
RCASOPT
Spc Rsp
DdcRsp
Ddc
SP (from AM)
None
SP (from Operator)
Oper MODATTR
SP (from Program)
Prog
OP (from Operator)
OP (from Program)
The normal mode is the mode that is copied into the MODE parameter when the operator
presses the NORM button at the Universal Station. Also at that time, the content of the
NMODATTR parameter is copied into the MODATTR parameter. This then becomes the
mode for the data point. The possible entries for the normal mode are None, Man, Auto,
Cas, and Bcas.
The following remote cascade options are provided by the RCASOPT parameter:
• Direct Digital Control with Remote Setpoint (DdcRsp)—This option is available for
only PID-type algorithms. It is configured by setting RCASOPT to DdcRsp. The AM
control strategy writes directly to the OP output of the RegCtl point when it is in Cas
mode. The output limits are not applicable. The AM can also write to the SP of the
RegCtl point subject to the setpoint limits. PV tracking is not performed in Cas mode.
This option is used primarily when a single PID controller in the APM is used to back
up a higher level control strategy running in the AM. The higher level control strategy
writes to the OP and also provides the SP for the backup control strategy.
• Remote Setpoint (Rsp)—This option is available for only PID-type algorithms and is
configured by setting RCASOPT to Rsp. The AM control strategy writes to the SP via
an AM general output connection, subject to the setpoint limits, when the RegCtl point
is in the Auto mode and it is being initialized by its secondary (i.e. INITMAN flag is
On). PV tracking is not performed in Auto mode when INITMAN is On, if Rsp is
selected.
The Rsp option is used primarily in a cascade control strategy where a RegCtl point is used
to backup a higher level control strategy running in the AM, and the higher-level control
strategy provides the SP for the backup control strategy. In the backup strategy, the
primary PID would be configured for the Rsp option (allowing the AM to specify the
backup SP), and the secondary would be typically configured for Ddc or Spc control.
When the RCASOPT parameter for the RegCtl point is configured for Spc, Ddc, or
DdcRsp and the operator at the Universal Station or a discontinuous user program (e.g. a
sequence program) tries to change the mode to Cas, the remote cascade request flag
(CASREQ) is set to On, but the actual mode is left unchanged. The actual mode is changed
to Cas only when
• The AM control strategy explicitly writes the mode to Cas (it should do this only after
seeing a remote cascade request from the secondary), or
• If Spc is entered for the RCASOPT parameter, and the AM control strategy writes to
the setpoint, or
• If Ddc or DdcRsp is entered for the RCASOPT parameter, and the AM control
strategy writes to the output value OP of the RegCtl point.
After CASREQ has been set to On, any mode change causes CASREQ to be set to Off.
The remote cascade shed mechanism in the APM allows the user to substitute the local
backup control strategy in the APM for the AM control strategy if the AM or NIM fails.
When a RegCtl point that is configured for Spc, Ddc, or DdcRsp control is in Cas mode
and the SP (if Spc) or the OP (if Ddc or DdcRsp) is not updated by the AM within a
predefined time, the AM or the NIM is assumed to have failed. The backup control
strategy is substituted by means of changing the mode to a preconfigured backup mode.
The maximum time allowed between updates is specified by SHEDTIME (in seconds) and
the backup mode is specified by SHEDMODE. Shedding to the backup mode can be
disabled by setting SHEDTIME to 0.
When the mode is shed to the preconfigured shed mode, the remote cascade shed flag
(RCASSHED) is set to On (mainly for indication at the Universal Station). Any
subsequent mode changes automatically set the RCASSHED to Off. The remote cascade
request flag is also set to On, which allows the AM to resume control at a later time
without operator intervention.
The Regulatory Control parameter BADCTLOP determines if the mode sheds to manual
on detection of a bad PV (or bad CV for algorithms that do not have a meaningful PV). For
the definition of a bad PV, refer to BADPVFL in the Parameter Reference Dictionary.
This function does not apply to the RampSoak, IncrSum, or RatioCtl algorithms.
The BADCTLOP parameter is configured on a per point basis as shown in the following
table:
Table 8-1 — Bad PV/Mode Shed
BADCTLOP SHED To Mode Ext. Mode
Selection Output (Mode) Attribute Switching Comments
This option allows the user to implement safety interlocks that effectively shut down a
single control loop. When the shutdown flag (SHUTDOWN) is set to On by a user-written
program, the mode and the mode attribute are changed to Man and Oper, respectively, and
the OP output is set equal to a predefined safe output value (SAFEOP). Further, the
external-mode-switching enable state (ESWENBST) is disabled, if it is currently enabled.
As long as the shutdown flag is On, the MODE, MODATTR, ESWENBST, and OP
parameter values cannot be changed. When the shutdown flag is set to Off, the control
loop must be manually restarted.
A Logic Point or CL program must be used to reset the Safety Shutdown Flag (from ON to
OFF).
If the point is already red tagged when the shutdown flag is turned On, the output value is
not changed. Typically, the safe output value can be configured as 0% (if the valve is fully
closed) or 100% (if valve fully open). In some cases it may be important to just hold the
last value. This can be achieved by setting the SAFEOP parameter to NaN.
External mode switching (EMS) is typically used to establish mode interlocks or, under
certain process conditions, to restrict the use of a mode that invokes a higher level of
control. External mode switching is an option and can be configured by entering Ems for
the EXTSWOPT parameter. Mode changes made through external mode switching have
no effect on the mode attribute of the data point, or on the normal mode and normal mode
attribute of the point. When a mode change is made, the last values of the normal mode
and normal mode attribute parameters stay in effect.
Each regulatory data point has three parameters (ESWMAN, ESWAUTO, and ESWCAS)
that are used as flags to indicate the mode to which the point has been switched.
When external mode switching is enabled by the operator or the program by setting the
ESWENBST parameter to Enable, the operator and the program are prevented from
changing the mode of the data point when the point is in the ESWMAN, ESWAUTO, or
ESWCAS mode as indicated on Table 8-2; however, the operator or the program can
disable external mode switching at any time by entering Disable for the ESWENBST
parameter.
Notes :
1. MAN is ESWMAN, AUTO is ESWAUTO, and CAS is ESWCAS, T = True, F = False, and X = don't care.
2. Previous Mode is the mode when the point was last processed.
3. If the effective new mode is not legal for the control algorithm, the mode doesn't change.
Setpoint handling takes place only if the configured control algorithm requires a setpoint.
Setpoint-handling functions are as follows:
• SP Target-Value processing
• PV Tracking
• Deviation Alarming
• Setpoint Restrictions
Setpoint limit parameters SPHILM and SPLOLM prevent setpoint values from exceeding
user-configured high and low limit values. These limits are configured in the same
engineering units as the SP and must be within the SP range plus extensions. Crossover of
setpoint limits is not allowed. The configured setpoint limits also apply to the advisory-
target value.
Setpoint limits are observed in initialization calculations. If the limits are violated by the
SP value, antireset windup-status propagation is invoked.
This option allows a Universal Station operator or a user-written program to "ramp" the
setpoint from the current value to a new value over a period of time. The option is
configured through the Data Entity Builder by entering TV in setpoint option parameter
SPOPT. If an operator is to ramp the SP, the mode attribute in MODATTR must be Oper;
and if a user-written program is to ramp the SP, the mode attribute must be Prog.
NOTE
Step 1 or 2 causes the TVPROC parameter to go to Preset if the point is in the Auto mode,
INITMAN is Off, and TVPROC is Off.
4. The SP begins moving linearly toward the new value and the value in RAMPTIME
decreases with time. When RAMPTIME = 0, SP reaches the new value and the status
in TVPROC changes to Off.
TVPROC can be changed to the Run state only from the Preset state. While TVPROC
contains either Preset or Run, SP high and low limits, and the SP high and low
engineering-unit ranges can't be changed.
Deviation (PV-SP) high and low alarms can be configured by using the alarm trip points
provided by the DEVHITP and DEVLOTP parameters. In addition, alarm priorities can be
established for these trip points by using the DEVHIPR and DEVLOPR parameters.
Parameters DEVHIFL and DEVLOFL are used as flags to indicate that a deviation (high or
low) alarm has been detected. This alarm returns to normal when the deviation (PV-SP) is
less than or equal to the configured trip point minus a deadband equal to 10% of the trip
point value.
8.7.4.2 Advisory Deviation Alarming (Pid, PosProp, PIDPosPr, and RatioCtl Algorithms)
This option allows an operator to manually change the SP to a predetermined value. The
predetermined value is usually calculated by a user-written program that stores the value in
advisory setpoint parameter ADVSP rather than storing it directly in SP. Advisory-
deviation alarming is selected by entering Asp for setpoint option parameter SPOPT.
This alarm type is available if the RegCtl point has been configured as a full point. When
this option is selected, an alarm is generated if the difference between the PV and the value
in ADVSP is greater than the trip-point value in ADVDEVTP. This alarm returns to
normal when the difference between the PV and ADVSP is less than or equal to the value
in ADVDEVTP minus a deadband equal to 10% of the trip-point value.
The following conditions must be true if advisory-deviation alarming is to function:
• SPOPT = Asp
• ADVDEVTP < > NaN
• ASPROC = Enable
• PV alarm status in PVVALST < > Bad
• Alarm-enable status in ALENBST < > Inhibit
If the advisory-deviation alarm is present and the value of one of the above-listed
configuration parameters is changed, the advisory-deviation alarm is reset.
If parameter ASPPROC = Disable, the value in ADVSP equals the value in SP.
NOTE
If SP target value processing or advisory deviation alarming is configured for a RegCtl point,
the ratio/bias options cannot be configured for the same data point.
The ratio and bias options are configured by entering one of the following values in ratio
and bias option parameter RBOPT:
If one of these options is configured, the SP is modified before being used by the PID
algorithm as follows:
SP_Store_Value*RATIO + BIAS
You can configure limits for both the RATIO and the BIAS values in the following
parameters:
In normal operation (in Cas mode and INITMAN is Off), all three options work alike.
RATIO and BIAS can be changed by a Universal Station operator or by user-written
programs (depending on whether MODATTR contains Oper or Prog). During initialization
of this point, however, RATIO and BIAS can be changed only if they are not being
initialized, based on the value in RBOPT, as follows:
If RATIO attempts to go outside one of its limits, it is clamped at the limit, and INITVAL
is calculated as follows:
BIAS = SP - (Store_Value*RATIO)
If BIAS attempts to go outside one of its limits, it is clamped at the limit, and INITVAL is
calculated as follows:
Two user-setable Hi and Lo limits on the SP-related bias parameter are provided.
Whenever operator or program entries are outside the limits, the entries are clamped to the
closest limit. Crossover of limits is inhibited.
You can configure high and low limits for the BIAS value that can be applied to the
setpoint for PID algorithms. A Universal Station user with a Supervisor key can change
these limits. An operator is prohibited from entering a value exceeding these limits. A
user-written program is clamped to the exceeded limit. Crossover of these limits is
prohibited.
You can configure high and low limits for the RATIO value that can be applied to the
setpoint for Pid Algorithms. A Universal Station user with a Supervisor key can change
these limits. An operator is not allowed to enter a value that exceeds these limits. If a user-
written program attempts to store a value outside the limits, it is clamped to the limit.
Crossover of these limits is prohibited.
__________________________
* Applicable to only Pid, PosProp, and RatioCtl algorithms.
8.10
The primary task of control output processing is to make the control algorithm calculation
available to the rest of the system (displays, printers, CL programs, other data points, etc.)
in percent or EUs, as needed. Control algorithms produce outputs in percent or in
engineering units.
• Provides the output value in percent and EUs for displays, printing, CL programs, and
for interpoint communications.
• Processes control output connections that send the output to the secondary data point
after conversion to EUs.
During initial control processing, initialization data is fetched from the secondary points
indicated by each control output connection.
The output engineering-unit range in CVEULO and CVEUHI is determined, based on the
EU range of the secondary pointed to by the first active control output connection. If this
connection has a communication or configuration error, the output range is set to bad and
the point is aborted. If this happens, the CI connections and CO connections, scheduled for
execution after initial control processing are not processed.
CAS No None PC PC PC PC PC PC
SPC RC RC RC RC RC RC
DDC I I PC PC I I
DDCRSP RC RC RC RC —— ——
RSP PC PC PC PC —— ——
BCAS No Any PC PC PC PC PC PC
1. If all of the control output connections are indisposable, CV is initialized to its last
value. When the first disposable control output connection becomes available, the CV
is back-calculated (% to EU conversion if the destination parameter is OP) from the
destination parameter of the secondary.
2. OP is calculated from CV, based on CVEULO and CVEUHI.
You can configure a maximum rate of change in percent-per-minute for output values of
RegCtl points using the OPROCLM parameter. The effect of this limit is to reduce
excessive rates of change in the output, to the limit. The smallest limit can't be less than
0.1 percent per point-processing interval. The default value for the limit is NaN, which
eliminates the limit check.
Typically, the output rate-of-change limit is used to match the slew rate of the final control
element to the control dynamics.
Use caution when setting the value of OPROCLM. This value should be set before loop
tuning has taken place. When done this way, tuning accommodates any slow down in
response time caused by rate limiting. If OPROCLM is changed after a loop has been
tuned, it is possible for poor loop dynamics or even instability to result.
Note that when a choice is available, rate limiting should be applied to PID algorithms
(PID, PIDFF, and PIDERFB) rather than regulatory control algorithms of other types. The
PID algorithms support special processing to prevent windup of the CV during rate
limiting. Other algorithms cannot provide this special processing.
You can configure a minimum output-change value for RegCtl points using parameter
OPMCHLM. This value is a percentage of the output-value range. If the absolute
difference between the output value at one processing pass and the next doesn't equal or
exceed the minimum change, the earlier value is maintained. A Universal Station user with
a Supervisory key can change the minimum output-change value.
The default minimum output-change value is NaN, which eliminates the minimum change
check.
This feature is used to minimize "wear and tear" on the final control device.
NOTE
An output connection of this type counts as one input and one output for the purpose of limiting
the number of input/output connections going across APMs.
• OP parameter of a digital output point that has been configured for pulse-width
modulation in the same APM. The following restrictions apply:
– The total number of control input and output connections fetching data from the
I/O Processors must not exceed seven (prefetch limit updated in R600).
• Any addressable parameter of any accessible slot if the configured control algorithm is
PidERFB.
CAUTION
Up to four output connections are permitted from a Regulatory Control point but the control
output destinations must be all IOPs (AOs or pulse width modulated DOs) or all Regulatory
Control inputs. The outputs cannot be a mix of IOPs and Regulatory Control inputs.
The output alarms are available only for Regulatory Control points configured as full
points and are disabled if the trip points are not specified.
8.11.1 PV Initialization
The principal purpose of PV initialization is to set up starting values the first time the point
is processed or the first time it is processed after recovering from a BadPV value status.
PV initialization is useful for only functions involved in history collection or for
dynamically varying values. Stated another way, PV initialization is required where the
new value depends on the previous value.
The following events cause PV initialization:
• Point's execution state is changed to Active.
• APM undergoes a warm or cold restart.
• PVAUTOST recovers from Bad value status.
PV initialization consists of the following functions:
• PVCALC is calculated from the PV inputs, using the steady-state portion of the
equation. For calculations that don't involve time, the normal equation is used.
• PVAUTO is made equal to PVCALC. If PV filtering is configured, the filter dynamics
are initialized to steady state.
• No other PV processing is affected by PV initialization.
The value that is to be protected from a bump (the value to back-calculate from) is
obtained at the point's output or at the secondary's initializable input. When "fan out"
connections to more than one output are used, the Regulatory Control output is initialized
from the first disposable secondary.
General Mechanism—At each point-processing pass, the following information is
retrieved from all secondaries to which the data point has control output connections. The
data that is retrieved to support initialization is
• Initialization Request
• Initialization Value
An initialization request from the secondary causes the control output connection on the
primary to go to an "output indisposable" state, a condition where a newly generated output
to the secondary has no effect on the secondary. A control output connection also has
"output indisposable" status if an error has been detected when the initialization request
and initialization value should have been received.
When all connections from a primary are in the "output-indisposable" state, the primary is
forced to the initialized state. This causes the primary to set its initialization request. In
turn, this may cause the control output connection of a preceding primary to assume the
"output indisposable" state and may force that primary to be initialized as well. In this
manner, the initialization state is propagated upstream to all interconnected primaries.
During the initialization state, each point remains in that state until a disposable output
connection is found. For points with one control output connection, the primary sets its
output value to the initialization value received from its secondary while in the initialized
state. For points with more than one control output connection, on the first processing pass
when a disposable output connection is available, the primary sets its output value to the
initialization value received from its secondary.
When initialization is being performed for a control strategy, each data point's output is
readjusted by back-calculating an initializable input or by an internal (bias) adjustment.
When each point resumes normal calculations, the new output and the input value at its
secondary are balanced and no bump occurs.
Indisposable outputs are not the only factor for triggering initialization. It is possible to
force a back-calculation by writing to a point's output while it is in MANual mode, or a
user program or a logic slot can set the control initialization flag in a point. For these cases,
the point does not go to the initialization state but its primary may, because the point sent
an initialization request to the primary.
Special handling is provided for connections to local I/O (e.g., Analog Outputs or Digital
Pulse Width Modulated Outputs). In the event that communication with the local output
module is lost, the mode automatically goes to MANual to permit the operator to take
control. When communication with the module is restored, back initialization to the output
value occurs automatically. The operator can then return the strategy to the desired mode.
This handling is triggered by loss of communications on the I/O link, failure of the I/O
processor, or an I/O processor-detected power outage.
Conditions that Cause Control Initialization—The need to initialize a data point is
indicated by external upsets that directly affect the point or it is indicated by an
initialization request from a secondary data point.
Control initialization is caused by any of the following:
• A user program or logic slot has requested initialization (see "Initialization Forced by a
Program," below).
• The point is active for the first time (an inactive to active transition).
• The point is executing the first time after a warm APM restart.
• All control output connections were indisposable and now one or more output
connections is disposable.
A control output connection is indisposable when
• A secondary has made an initialization request, or
• A communication/configuration error has been detected in retrieving an initialization
request and initialization value from a secondary.
The following are the reasons why a secondary data point sends an initialization request to
its primary data point:
• The secondary isn't in Cas mode, or
• The secondary is inactive.
• The initializable input to the secondary (the destination of the primary's control output
connection) is not selected for a secondary that uses the Switch algorithm (configured
for PV tracking) or the input is being bypassed by the Override Selector algorithm, or
• The secondary is in the initialization state.
Initialization of a Point in the Same APM—For a primary and a secondary that are both
in the same APM, an enhancement is provided. This enhancement presents the operator
with an immediate indication of initialization when a cascade strategy is opened or closed.
Initialization Forced by a Program or Logic Slot—A user-written program or a logic
slot can cause a data point to initialize by setting the data point's control initialization-
request flag (CTRLINIT). The next time the point is processed, it initializes. CTRLINIT is
cleared when the processing pass is complete. An initialization request is sent to its
primary, thus propagating initialization up through the control strategy.
Limit Checking During Control Initialization—Limit checks apply during initialization
except for output rate-of-change limits.
How Initialization is Indicated at Universal Stations—When a data point that is
initializing is displayed, the display indicates that it is initializing. For example, on a group
display or a detail display, INIT appears in the point-status field that is just below the mode
indicator.
PID algorithms are protected from windup caused by reset action. Windup status
parameters are maintained that pass the status "upstream" to the primary points along the
initialization path. Each PID algorithm checks its output windup status and takes
appropriate action to prevent reset windup. These functions are standard and require no
configuration by the user.
When this point's ARWOP contains something other than Normal, integral control in the
windup direction stops. Integral action in the other direction and P and D action continue.
For the remainder of the control subsystem, the windup status serves only as a warning,
and not as a constraint. For example if the status in ARWNET is Lo, lowering SP won't
have an immediate effect on the output of the final secondary; however, SP can be lowered
if the SP low-limit has not yet been reached.
The values in the windup-status parameters indicate whether raising or lowering the
associated parameter value will affect the output of the final secondary, as it should.
Windup status is propagated to ARWOP and ARWNET of the same point, and then from
ARWNET of the secondary point to the primary point, and so on.
Propagation from secondary to primary is instantaneous if both are in the same process
unit and the same APM. Otherwise, it takes place on the next processing pass for each
point.
When the point is returned from inactive to active status, when it undergoes a cold start, or
when it is initialized, the status in PTORST becomes NotCon.
The following two parameters apply only to the Override Selector Control algorithm:
OROPT— When on, the feedback value is propagated to nonselected primaries of
the override selector algorithm.
When Off, the feedback value is not propagated. However, nonselected
primaries are kept from winding up by propagating a windup status
opposite of the OrSel equation (Hi-Lo) in addition to the OrSel point
windup status (ARWNET) to the nonselected primaries. This windup
status propagation prohibits the non-selected primaries of the OrSel
from winding up in the direction opposite of the OrSel selection
equation.
OROFFSET — When On, PID output is initialized to: Feedback Value + Gain * Error.
When Off, PID output is initialized to only the Feedback value.
NOTE
The override status (Feedback Value) can be propagated to a maximum of five primaries.
O/R-feedback propagation is initiated by only the most downstream O/R selector. In the
example, if TAG-F were also an O/R selector, the O/R strategy would consist of points
TAG-A, TAG-B, TAG-C, TAG-D, TAG-E, and TAG-F. O/R propagation would be
initiated by TAG-F and not TAG-E, as before.
Initialization in an Override Strategy
TAG-A TAG-B
PV PV
OP
PID PID
OP
SP SP TAG-E
X1 O/R
TAG-C LO OP
SP SELECT
OP X2
PID
X3
PV TAG-F
To
X1
Secondary
SOME or Valve
TAG-D
CONTROL
PV ALGO.
PV ALGO. X2
You should follow these guidelines to configure properly functioning O/R strategies:
• Proportional and Derivative Action on PIDs—While PIDs in an O/R scheme can be
configured with proportional and derivative action on SP, use of these actions should
be carefully considered because undesired results may occur, such as momentary
oscillation caused by "kicks" in the error.
• Boundaries—The entire O/R strategy must be within the same APM. The number of
primaries for initiating the O/R strategy must be £ 5.
• Fanout—No fanout control output connections are allowed in an O/R strategy. All
primaries upstream from the O/R-selector point can have only one control output
connection.
8.14.1.1 Function
The output of this algorithm is normally "floating," because of the dynamics of the integral
and derivative terms. Internally, the output is calculated as increments of output change,
but the increments are accumulated to provide a full-value output, thus simplifying the
techniques used to achieve "bumpless" outputs when modes or tuning constants are
changed.
The algorithm operates to reduce error in the control loop to zero. Error is represented by
the difference between the process variable in percent (PVP) and the setpoint in percent
(SPP). The control-algorithm output value (CV) is also calculated as a percentage of the
configured engineering-units range for the data point that uses this algorithm.
8.14.1.2 Use
The PID algorithm is used as a controller that either directly moves a control device
(valve) in the process, or provides an input to another data point.
This algorithm requires only one input connection. The default for number of input
connections is 1; however, it can be increased to 2, allowing the SP to be fetched with an
input connection. When the SP is fetched, the normal operating mode of the point is
usually affected.
When the APM's PID point is a primary for another data point in the same APM or
another APM (or PM) on the same UCN, its output is connected to the SP of the other data
point (via Tagname.Parameter). If the APM's PID point is directly controlling a valve, its
output is connected to the output of a Analog or Digital IOP (through
"Tagname.Parameter" or the hardware reference address !AOmmSss.OP or
!DOmmSss.OP where mm is the IOP card number in the APM, and ss is the slot number
of the output on the IOP card).
If the APM point is a secondary for another data point, it can be configured to receive an
input from another source. Sources include another data point on the same UCN, an AM
data point, or a point properly configured in another CM with proper access level. If the
remote cascade connection is coming from a regulatory data point in the AM, it handles
everything automatically.
Setpoint
From Initializing Processing
Primary
CAS
SPP
To
PID CV OP Secondary
AUTO
Operator or PVP
User-Written
Program Output
From PV Algo
Processing
or IOP
Equations:
A: Full PID
B: PI on error, D on PV change only
C: I on error, PD on PV change only 1327
D: Integral control only
In all other cases (including the continuous CL programs in the AM directly writing to the
APM), the user must explicitly take care to assure
• The remote device must use "continuous_control" access level for stores to SP, OP,
and MODE parameters.
• It must also handle mode changes for closing the cascade. See 8.4.4, Remote Cascade
Requests, for additional information.
• Windup protection.
This algorithm supports all remote cascade options. PV source selection is supported if
the point is configured "full." See 7.5, PV Source Selection, for details.
During configuration, select one of these two forms. They differ as follows:
• Noninteractive (Ideal) Form—In this form, P, I, and D are added in the time domain.
D is added as a damped derivative to limit peak amplitude. This form is often called
the digital-computer version of the PID controller.
The PV engineering unit range (PVEULO and PVEUHI) must be specified. The setpoint
engineering unit range (SPEULO and SPEUHI) always follows the PV range. The output
engineering unit range (CVEULO and CVEUHI) is derived from the secondary if the
number of output connections is greater than 0, otherwise it must be specified.
You select the combinations of proportion, integral, and derivative control terms by
choosing Equation A, B, C, or D. The equations function as follows (also see 8.14.1.4):
• Equation A—all three terms (P, I, and D) act on the error (PV - SP).
• Equation B—The proportional and integral terms act on error (PV - SP) and the
derivative acts on PV changes. This equation is used to eliminate derivative spikes in
control action that occur with quick changes in the setpoint.
• Equation C—The integral term acts on error (PV - SP) and the proportion and
derivative terms act on PV changes. This equation provides the smoothest and slowest
response to setpoint changes.
When you use equation A, B, or C, the integral or derivative terms can be eliminated by
setting their time constants to 0 (see 8.14.1.4). Setting both T1 and T2 to 0 results in only
proportional control.
When configuring a data point that uses the PID algorithm, you can select direct-control
action or reverse-control action. You can also change the control action through the detail
display if you have an engineer's key, or a user-written program can change the control
action. The control action can be changed at the Universal Station or by a program, only
while the data point is in Man mode. The attribute must be appropriate (Oper or Prog) for
the change to be accepted.
Changing the control action effectively changes the sign of the gain. With direct action, an
increase in PV increases output; with reverse action, an increase in PV decreases output.
As an example, with direct-control action, assume
SPP = 50%
PVP = 51%
Deviation = PVP - SPP = 1%
If PVP increases, the deviation (error) increases, so the output, CV, increases (see
Equation A under 8.14.1.4).
The opposite occurs with reverse-control action: If the deviation increases, CV decreases.
8.14.1.3.6 PV Tracking
• INITMAN = On, and either the mode is not Auto, or RCASOPT is not Rsp
• The first time the data point is processed after becoming active.
• This slot is a secondary within a local (inside the same APM) and is going through 1-
shot control initialization.
NOTE
The 1-shot control initialization occurs when
PV tracking is typically chosen when the data point is a secondary in a cascade control
strategy, because it allows the PID to resume control with no error, after the point has been
in Man mode or is initialized.
PV tracking can also be used when the data point is the ultimate primary point. In such a
case, a startup procedure could be used where the point is started in Man mode and the
valve manually adjusted to bring the PV close to the desired value, and the data point
would then be switched to Auto.
When configuring a data point that uses the PID algorithm, and equations A, B, or C, you
can choose any of the following four gain options:
• Linear Gain—This is the most commonly used gain option. The gain, K, used in the
chosen equation (see 8.14.1.4) is set by the user. The default value for K is 1.
• Gap Gain Modification—This option is used to reduce the sensitivity of the control
action when the PV is in a narrow band (gap) around the setpoint. The size of this
band is specified by the user. K, as used in the chosen equation is derived as follows:
or,
Where:
K = KLIN * KNL
Where:
For the ideal form of the PID, nonlinear gain does not act on the derivative component.
NLGAIN = Nonlinear gain, specified by the user. Value ranges from 0.0 to
240.0. Default = 0.
PVP = PV in percent
SPP = SP in percent
The main use of this option is to compensate for nonlinear-process gain. The user can
tune the PID gain independently of the operating point of the process. For example, in
controlling the level in a tank whose cross section is not constant, the gain could be
modified to compensate for the nonlinear rate of level change that is caused by the
changing shape of the tank. The General Linearization PV algorithm (subsection
7.9.8) could be used to compute the inverse of the level-change characteristic, and the
resulting PV could be used to modify the level-control gain.
K is derived as follows:
K = KLIN * KEXT
Where:
It is possible to use this option for multiplicative-feedforward control, but the PID with
Feedforward-control algorithm (subsection 8.14.2) is a better choice because it
provides a better operator interface and better recovery from a "bad" feedforward
input.
When the output of this algorithm reaches the user-specified output limits, or reaches the
setpoint limits of the data point's secondary, or when a woundup-status indication is
received from the secondary, the PID algorithm stops calculating the integral term but the
calculation of the proportional and derivative terms continues.
This is the same way that windup conditions are handled in Basic Controllers,
Multifunction Controllers, and Extended Controllers.
Without this suppression feature, the first setpoint change after switching from Man or
Auto to Cas mode could cause a sudden move (kick) in the output because of the
proportional or derivative terms. This "kick" occurs when, for some reason, the primary
data point's output is not initialized, and an abrupt change in the setpoint occurs when Cas
mode resumes.
To suppress this "kick," the proportional and derivative terms are not calculated the first
time the PID data point is processed after changing to Cas mode.
This feature is especially useful when the PID point is one of two or more secondaries of
its primary data point. When this data point is changed to Cas mode, even if the primary is
not initialized, the output of this data point does not bump the first time it is processed.
As an example of the usefulness of this feature, consider a single PID that is controlling
temperature by controlling the flow of either gas or oil. This PID's output is connected to
both flow controllers, but only one secondary is in cascade at any time. When a change
from one fuel to the other is made, the user-written program initializes the output of the
temperature-controller PID by storing a new, full-value output in CV. The cascade
connection is switched from one to the other, and the dynamic compensation of the flow of
the new fuel proceeds. The value stored in CV is the setpoint of the new secondary in
percent (SPP). Through this technique, the full-value output of the primary has been
initialized without affecting its dynamic calculations, so the fuel switchover is quick and
smooth.
The following are restrictions on some of the values used with this algorithm:
• The engineering units range that you specify for the PV also applies to the SP.
• For best performance, we recommend that the integral (T1) and derivative (T2) time
constants be within the following ranges:
T1 > 20.0 * TS
Ratio control can be achieved by modifying the setpoint input to the PID algorithm by a
RATIO of some other process point that is stored to through a control output connection,
for example, a fuel-to-air ratio in furnace control (it can also be accomplished with the
Ratio Control algorithm. See 8.14.6). When configuring a PID data point, you can select
one of the following options for modifying the setpoint through the RBOPT parameter:
• No ratio or bias
If you select one of the ratio and bias options, configured or operator-entered ratio and bias
values are used to modify the setpoint (by multiplying it by the ratio and adding the bias
value) only while the data point is in Cas mode. In Auto mode, the ratio calculation does
not occur because this option is intended to receive the process value to be modified by the
ratio, only from another data point (which can happen only in the Cas mode).
All Remote Cascade Options are supported: Spc, Ddc, DdcRsp and Rsp.
On a warm restart, or when the data point is activated, initialization takes place as
described under 8.14.1.5.
If the status of the PV value goes bad, the CV value is changed to bad (NaN) and the data
point remains in the current mode. When the PV-value status returns to normal, the CV
value is initialized and the PID dynamics are returned to a steady state. An initialization
request and initialization value are sent to the primary data point.
8.14.1.4 Equations
You can select one of four equations when you configure a data point that uses the PID
control algorithm. Equations A through D differ in the interactive and noninteractive
forms of the algorithm.
1 + T1 * s 1 + T2 * s
CVs = K * [ T1 * s * 1 + a * T2 * s * (PVPs - SPPs)]
1 + T1 * s 1 + T2 * s 1 + T1 * s
CVs = K * [ T1 * s * 1 + a * T2 * s * PVPs - T1 * s *
SPPs]
1 + T1 * s 1 + T2 * s 1
CVs = K * [ T1 * s * 1 + a * T2 * s * PVPs - T1 * s * SPPs]
1
CVs = T1 * (PVPs - SPPs)
* s
1 + T1 * s
CVs = K * [( T1 * s + T2 * s) * (PVPs - SPPs)]
1 + T1 * s 1 + T1 * s
CVs = K * [( T1 * s + T2 * s) * PVPs - T1 * s * SPPs)]
1 + T1 * s 1
CVs = K * [( T1 * s + T2 * s) * PVPs - T1 * SPPs]
* s
1
CVs = T1 * (PVPs - SPPs)
* s
Where:
8.14.1.5 Initialization
When the output destination of the primary is to the secondary, initialization occurs as
follows:
• When this slot is being processed for the first time after the APM state (APMMSTS)
has changed to Run or OK
• When this slot has only one disposable secondary that just underwent 1-shot
initialization
• When the output is indisposable (when the mode of the secondary slot is not in Cas)
When a PID point's secondary uses an Override Selector algorithm (see Figure 8.5), the
following functions take place:
• When override feedback is propagated, override status is returned in PTORST to the
PID point. The status is one of these.
Not Connected
Selected
Not Selected
• When the PID point is processed, it does the following.
If the status returned is Not Connected, there is no action.
If the status returned is Not Selected and if the PID point's mode is Auto or Cas and
CV is not equal to NaN, the PID point's CV is initialized as follows:
IF OROFFSET = On, CV = ORFBSEC* + GAIN * ERROR
CV = ORFBSEC + K * (PVP – SPP)
where ORFBSEC is the override-feedback value (in %) sent to the PID from the
secondary.
When the PID point is not selected, if it is in Cas mode an override-feedback value is
calculated as follows and sent to the primary:
If RBOPT is not equal to NoRatBi
PV - BIAS
ORFB = RATIO
otherwise, ORFB = PV
Note that if equation D is selected, K = 1 in these equations.
NOTE
If the offset value is in such a direction that it causes the nonselected PID to become selected,
the offset values will be set to 0.0.
In addition to the parameters already mentioned, the following parameters are associated
with the PID algorithm (refer to the Advanced Process Manager Parameter Reference
Dictionary):
CTLEQN PVTRACK DEV DELCV
* See 8.10.6, Control Output Connections, for restrictions and additional information.
From
Primary
CAS
SPP PID
CV OP X1 CV
AUTO X2 Override
X3 SELECTOR
X4
INITVAL
To PTORST PTORST
Primary
ORFBSEC ORFBSEC
The use of the PID Feedforward Control algorithm is the same as the PID algorithm,
except that this algorithm can accept a dynamic feedforward signal from the process, or a
value that is representative of some condition in the process, to be combined with the
PID's incremental output before the full-value output is accumulated.
This algorithm requires two input connections (from PV processing and FF inputs). The
inputs can be increased to three, allowing the SP to be fetched with an input connection.
The feedforward signal can be obtained from an analog-input point, and it is often
subjected to dead-time compensation or lead-lag compensation before being connected to
the FF input of this algorithm. That compensation can be provided by algorithms such as
the Variable Dead-Time with Lead-Lag Compensation PV algorithm (7.7.6). Figure 8-7
shows an example of such a strategy.
If additive-feedforward action is chosen, the feedforward signal is multiplied by a user-
specified scale factor (KF) and added to the incremental output of the PID computation.
This scale factor might be used to convert an engineering-units input to a percentage.
This algorithm supports all remote cascade options and PV source selection (if the point is
configured as a full point).
8.14.2.3 Options and Special Features
All of the following PID Control-algorithm options and special features apply to the PID
Feedforward Algorithm:
• 8.14.1.3.6 PV Tracking
Setpoint Feedforward
From Initializing Processing Signal
Primary
CAS
SPP
To
PIDFF CV OP
AUTO Secondary
PVP
Operator or
User-Written
Program Output
From PV Algo or
I/O Module Processing
1330
Inlet Feed
Dynamic Feed-Forward
PV Algorithm:
Signal
F Variable Dead-Time
with Lead-Lag
T Fuel
Outlet Feed
1331
Figure 8-7 — Example, PIDFF Control Algorithm in Feed Heater Control
• If the feedforward signal comes from a PV algorithm, switch the PV source for the
data point that is using the PV algorithm to Man (if you do this and the PV is changed
while the PVSOURCE is Man, the feedforward signal is affected). To resume
feedforward action, switch the PVSOURCE back to Auto.
• If the feedforward signal comes from a control algorithm, switch the mode of the data
point that is using the control algorithm to Man (if you do this and the output (OP) is
changed while the source point is in manual, the feedforward signal is affected). To
resume feedforward action, switch back to Normal mode (Auto or Cas).
If the value status for the feedforward signal goes bad, the feedforward component of the
output value is frozen at the last good value and normal PID processing continues.
When the value status of the feedforward signal returns to normal, normal feedforward
action resumes. This does not cause a bump in the output because any change from the
last good value is internally absorbed and the PID dynamics are not affected. The floating,
full-value output continues as if there were no feedforward change, but the contribution of
the feedforward action continues from that time.
• Man
• Auto
• Cas
All Remote Cascade Options are supported: Spc, Ddc, DdcRsp and Rsp.
You can select PID equations, just as described for the interactive form and the non-
interactive form under 8.14.1.4.
In addition, the feedforward signal is applied to the incremental output of the PID
computation, as follows:
• If additive action is configured
CVn = CVn-1 + DELCV + KFF * (FFn - FFn-1)
Note that the back calculation of CVPID keeps CV unchanged, and thus, prevents a
bump.
If the result of (KFF * FFn + BFF) is less than 0.01, it is clamped at 0.01.
Where:
CV = Full-value output in percent, PID combined with feedforward
action
CVPID = The full value output before the multiplicative term. This is an
internal parameter and is not available to displays nor to user-
written programs.
DELCV = The incremental output of PID computation. Default = N/A.
BFF = Bias value for multiplicative action. Default = 0.
Setpoint
Processing
CAS
To
SPP PIDERFB CV OP Secondary
AUTO
PVP
Operator or
User-Written
From PV Algo
Program
or IOP
S1 Tracking Switch Control
TRFB Tracking Value*
RFB Reset Feedback Value**
4250
4250
Figure 8-8 — Functional Diagram, PID with External Feedback Control Algorithm
8.14.3.2 Uses
The use of the PID with External Reset-Feedback algorithm is the same as the PID
algorithm, except that this algorithm can accept a reset-feedback signal (RFB) from
another data point, typically the PV of the secondary PID data point that is receiving its
setpoint from this data point.
• RFB (Reset Feedback Value) — typically from the PV of another data point which is
receiving its setpoint from this data point
Output destination can be to a secondary data point in the APM or to any desired
destination using control output connection (that is, any addressable parameter of any
accessible slot).
The number of inputs can be increased to four, allowing the SP to be fetched with an input
connection.
The tracking switch-control signal (S1) is usually stored with an output connection from a
Logic slot (or a program). If the switch control is On, the CV value from this data point is
replaced by the tracking value. If, for some reason, the secondary is not using the output
of this data point, S1 can be set to On by logic external to the PIDErfb, which causes this
point's CV to track the secondary's PV. When the secondary begins to accept OP from this
point for control, S1 is set to Off (by the external logic), and CV is then at the same value
as the controlled variable (PV), so there is no bump and normal control can resume.
In a simple application, both the reset-feedback signal and the tracking value may come
from the PV of the secondary data-point. See Figure 8-9.
PIDERFB
SPP OFF
PID +/- Output
PVP Accum CV OP SP PID
S1
On PV
1333
Figure 8-9 — Example of Application for PIDERFB
The following functions will be supported by the APM to integrate a third-party hand/auto
station:
• OUTPUT Ability to manipulate the output of the hand/auto station (when in Auto
position) from the PID, and to initialize the PID output to allow the
hand/auto station to switch bumplessly to auto position.
• MODE Indication that the hand/auto station is in "hand" (or Local Manual)
position at the group display of the PID driving the output.
In order for the interface to be generic (to allow support for hand/auto stations from many
different vendors), all signals are wired into the APM through analog and digital IOPs.
This requires a total of two AI slots, one AO slot, and two DI slots in addition to the
requirements if no hand/auto station support is desired.
The following I/O signals must be supported by the third-party hand/auto station:
• PV_IN: Analog input used to display the PV value on the hand/auto station. The
signal from the analog transmitter is wired into this input as well as to the
APM through an AI IOP.
• CV_IN: Analog input from the controller. It represents the control value position
requested by the APM's PID.
• CV_OUT Analog output. This output drives the control valve. When the hand/auto
station is in auto position, CV_OUT should track the CV_IN input; when
in local manual position, it can be manipulated by the raise/lower keys.
This output is also fed back to the APM through an AI IOP for
initialization of the PID output. The corresponding AI FTA must not be
grounded (the zero-ohm resistor to ground at the FTA should be
removed). Also the output current drive capability of the hand/auto
station must be sufficient to handle an additional 250 ohm resistor used to
convert 4-20 milliamps to 1-5 volts.
• MAN_STS: Digital output indicating that the hand/auto station is in local manual
position.
• SP_IN: Analog input used to display the SP value on the hand/auto station. The
setpoint of the APM's PID controller is connected to this input through an
AO IOP.
• SP_OUT: Analog output generated by the hand/auto station to change the SP value
of the APM's SP.
All of the following PID Control-algorithm options and special features apply to the PID
with External Reset Feedback algorithm:
If S1 is Off, and the reset-feedback input has a bad value, the data-point mode doesn't
change and the CV value goes bad (NaN). When the RFB input is again good, the CV
value is initialized (see 8.14.1.5) and the dynamic terms are returned to a steady state. If
configured for external initialization, an initialization request is sent to the primary data
point.
If S1 is On, and the tracking-value input has a bad value, the data-point mode doesn't
change and the CV value goes bad (NaN). When the TRFB input is again good, the CV
value is initialized (see 8.14.1.5) and the dynamic terms are returned to a steady state. If
so configured, an initialization request is sent to the primary data point.
PID_PRIM #1 PID_SEC #1
PV OP
SP
SP OP
SPP S1 TRFB
PV_IN CV_OUT
ANALOG DISPLAY SERVICE
Input Output
From NOTE: #1 SP, AND PV MAY BE CONNECTED TO THE PID_SEC IN A To
SINGLE LOOP CONTROL SITUATION.
Process Process
#2 SEE THE NEXT PAGE FOR DETAILS OF THE LOGIC SLOT
CONFIGURATION.
Fig. 8.15.3-3
2083
DI.MAN.PVFL L1
(ANALOG_DSP.MAN_MODE)
OR
ALG S01 PID_SEC.S1
AO_CV.INITREG L2
PID_PRIM.SP L3 AO.SP.OP
(ANALOG_DSP.SP_IN)
AI.SP.PV L4 PID_PRIM.SPP
(ANALOG_DSP.SP_OUT) ENB
DI_SP.PVFL L5
(ANALOG_DSP.SP_CHNG)
2084
The output of this algorithm can be to any desired destination using control output
connections.
NOTE
Initialization and windup protection normally associated with control output connections are not
performed with this algorithm. That is, initialization occurs only when S1, the tracking switch-
control signal, is true.
Output connections store the value of the OP after converting to engineering units.
See 8.10.6, Control Output Connections, for restrictions on the number of output connections
and destinations for this algorithm.
PV Engineering unit range (PVEULO and PVEUHI) and the output engineering unit range
(CVEULO and CVEUHI) must be specified. The SP engineering unit range (SPEULO
and SPEUHI) always follows the PV range.
All Remote Cascade Options are supported: Spc, Ddc, DdcRsp and Rsp.
8.14.3.4 Equations
CV = CVPID + CVRFB
Where:
K = Gain
8.14.3.5 Initialization
Initialization normally associated with output connections is not performed with this
algorithm. Output connections store the value of the OP (after converting to engineering
units based on CVEULO and CVEUHI) to the secondary.
This algorithm manipulates two digital outputs, raise and lower, to drive the PV toward the
SP. The setpoint is typically the desired position of a valve and the PV is the actual
feedback from the process.
Digital outputs are pulsed at a time interval specified by the CYCLETIME parameter and
the pulse width is proportional to the error signal.
This algorithm requires only one input. The number of inputs is defaulted to one; however,
the SP can be fetched with an input connection. PV Source selection is supported if the
point is configured as a full point. The Advisory (ASP) and Target Value (TV) options of
SPOPT (Setpoint Option) are supported.
The Raise/Lower digital outputs are stored to the destinations specified by the parameters
RAISDSTN and LOWRDSTN, respectively. The only valid output destinations are to
pulsed (but not PWM type) digital outputs. The pulse can be ONPULSE or OFFPULSE.
SP
SP
100% of Scale
From PV Algo
or I/O Module PV POSPROP PV
0 % of Scale
LOWER
RAISE
Figure 8-13 — Example of Position Proportion in Step Valve Control Strategy 2086
8.14.4.2 Use
This algorithm is used to pulse two digital outputs to drive the process variable toward the
setpoint. This algorithm would typically be used to step a valve open or closed, to raise or
lower a rotary device, or to move plates of a pulp mill refiner together or apart.
8.14.4.3.1 Modes
All four modes (Man, Auto, Cas, and Bcas) apply. When in Auto, Cas or Bcas modes, the
normal computation is performed. When in Man mode, the output pulses are issued on
operator demand.
In Manual mode, the output can be manipulated from the group and detail displays using
the Raise/Lower keys. At the time of configuration, the engineer must define "manual
output pulse time (MANOPTIM)." When the operator presses the Raise key (single up-
arrow), raise output pulse of width equal to MANOPTIM is issued. When the operator
presses the fast raise key (double up-arrow), raise output pulse to width equal to 10 times
MANOPTIM is issued. Lower output pulses can be similarly generated.
Output high and low flags can be set to indicate the status of the limit switches
representing the valve position. When OPHIFL is set, the Raise output pulses are not
generated. When OPLOFL is set, Lower output pulses are inhibited.
OPHIFL and OPLOFL are usually set by output connections on Logic slot based on limit
switch feedback (brought into the system through digital inputs) from the process.
NOTE
In manual mode, the operator can manipulate the output Raise/Lower pulses regardless of the
status of the OPHIFL and the OPLOFL.
The Raise/Lower digital outputs are stored to the destinations specified by RAISDSTN and
LOWRDSTN, respectively. The only valid outputs are to ONPULSE or OFFPULSE of
digital outputs configured as Status type.
Both options, advisory setpoint (ASP) and target value (TV), are supported.
The PV Engineering unit ranges (PVEULO and PVEUHI) must be specified. The setpoint
engineering unit range (SPEULO and SPEUHI) always follows the PV range. The output
engineering unit range (CVEULO and CVEUHI) does not apply.
The standard control slot parameters that are normally related to the analog output value do
not apply because analog outputs are not valid destinations for outputs from this algorithm.
The OPHIFL and OPLOFL are explained under 8.14.4.3.4. Other parameters associated
with analog outputs cannot be fetched or stored by any system function. Internally, they are
defaulted such that they do not have any effect on the system functions.
PARAMETER INTERNALLY
NAME DEFAULTED TO
CV NaN
CVEUHI 100.0
CVEULO 0.0
OPEU N/A
OPHILM 105.0%
OPLOLM -5.0%
OPROCLM NaN
OPMCHLM 0.0
SAFEOP N/A
NOCOPTS 1
INITMAN Off
8.14.4.4 Equations
8.14.4.5 Initialization
The Raise and Lower outputs are both set to OFF (or their normal states) and the cycle is
restarted when forward calculation is resumed after initialization.
The SP is set equal to the PV (subject to the setpoint limits) when any of the following
conditions exist:
• The mode is Man.
• The slot is being processed for the first time after becoming active.
• This slot is a secondary within a local (inside the same APM box) cascade control
strategy, and it is going through one-shot control initialization.
NOTE
The one-shot control initialization occurs:
The position proportional control algorithm is forced to initialize when outputting to a digital
output point that has its INITREQ parameter = ON.
8.14.5.1 Function
This algorithm can be viewed as a normal PID algorithm joined in cascade with a PosProp
algorithm such that the PosProp part uses the del_cv of the normal PID as its PV to
generate raise and lower pulses. The function of the PID part of the algorithm is the same
as that of the normal PID algorithm except that PidPosPr does not support OP (and OP
related parameters OPEU, OPHILM, etc.) and CV (and CVEUHI, CVEULO). The end part
of the algorithm behaves exactly as a POSPROP algorithm. Figure 8-14 demonstrates the
concept.
PV Lower
PID del_cv POSPROP
SP Raise
8.14.5.2 Use
This algorithm is typically used in place of the POSPROP algorithm to operate a motor
driven valve without position feedback.
8.14.5.3.1 Modes
All four modes (Man, Auto, Cas, and Bcas) apply. When in Auto, Cas, or Bcas modes, the
normal computation is performed. When in Man mode, the output pulses are issued on
operator demand.
In Manual mode, the output can be manipulated from the group and detail displays using
the Raise/Lower keys. At the time of configuration, the engineer must define "manual
output pulse time (MANOPTIM)." When the operator presses the Raise key (single up-
arrow), raise output pulse of width equal to MANOPTIM is issued. When the operator
presses the fast raise key (double up-arrow), raise output pulse to width equal to 10 times
MANOPTIM is issued. Lower output pulses can be similarly generated.
Output high and low flags can be fetched using the input connection parameters Output
High and low Flag Input Source (OPHISRC) and (OPLOSRC), respectively. These flags
serve the same function as the similar flags for POSPROP.
The Local Manual state is supported and it can be fetched with an input connection using
the input parameter Local Manual Source (LMSRC).
If CYCLE_TIMER expired:
IF ((ACCUMULATED_DEL_CV > DEADBND) AND (OPHIFL = OFF))
Issue a raise pulse of width equal to:
ACCUMULATED_DEL_CV
RAISETIM = K1 * RAISRATE + DEADTIME
(-ACCUMULATED_DEL_CV)
LOWERTIM = K1 * LOWRRATE + (RT * DEADTIME)
Parameters related to the analog output value do not apply and are defaulted to the same
values as those similar parameters in the PosProp algorithm.
8.14.5.6 Safety Shutdown
The Shutdown flag, when turned on, causes the mode to go to MAN with OPR attribute
and the output is derived based on the value of a new parameter SAFOPCMD as follows:
When:
SAFOPCMD = Idle No more output pulses are issued.
SAFOPCMD = Raise Raise pulses are issued until the PV is > EUHI, or OPHIFL
is ON. If the PV is bad, the test for PV > EUHI is ignored.
SAFOPCMD = Lower Lower pulses are issued until the PV is < EUHI, or OPLOFL
is ON. If the PV is bad, the test for PV < EUHI is ignored.
8.14.5.7 Bad PV/Mode Shed
For PidPosPr (and PosProp) algorithms, Shed Hold, Shed Low, High, and Shed Safe are
interpreted as follows:
BADCTLOP Action Taken for PIDPosPr (and PosProp)
No Shed IDLE, No more output pulses are issued.
Shed Hold IDLE
Shed High Raise, Raise pulses are issued until PV > EUHI or OPHIFL is ON.
If the PV is bad, the test for PV > EUHI is ignored.
Shed Low Lower, Lower pulses are issued until the PV < EUHI or OPLOFL is
ON. If the PV is bad, the test for PV < EUHI is ignored.
Shed Safe Handled like Shutdown based on the value of
SAFOPCMD.
8.14.6 Ratio Control (RATIOCTL)
8.14.6.1 Function
This algorithm calculates a setpoint for a PID algorithm that is the desired ratio of a
controlled variable to an uncontrolled variable. The value of the controlled variable is
maintained at a specified ratio of the value of the uncontrolled variable. The data point that
uses this algorithm usually uses Calculator PV algorithm to calculate the measured value
of the ratio for displays and reports.
Ratio control can also be accomplished with the ratio-bias options of the PID or PID
Feedforward control algorithms (see 8.14.1, 8.14.2). This Ratio-control algorithm has
several advantages, including the display of the actual ratio attained as calculated by the
Calculator PV algorithm and direct control of the ratio through the SP of the Ratio
algorithm.
8.14.6.2 Use
This algorithm is typically used in the control of the flow of a gas or fluid, as a ratio of an
another flow. For example, in a furnace, the air supply might be controlled as a ratio of the
fuel supply. If more heat is required to maintain combustion efficiency, the fuel flow is
increased and the air flow can be increased as a ratio of the fuel-flow increase.
Figure 8-16 shows an example of such an application. In this example, the data point that
uses the Ratio-control algorithm also uses the Calculator PV algorithm to calculate the
actual ratio achieved, for display or printing. The Calculator PV should use the filtered
value (X2FILT) of the uncontrolled variable.
To evaluate this example, see the equations under 8.14.6.4 and you will note that the same
scale factor, 0.7, is used for P1 in the PV algorithm and for K1 in the Ratio-control
algorithm. The resulting scaled ratio between the "other" flow and the controlled flow is
2.00/0.7 = 2.857, so if the "other" flow is 6.00 gallons per minute, the controlled flow must
be 6.00*2.857 = 17.143 gallons per minute.
The 0.7 scale factor is used for C1 and K1 in the example to illustrate that the same scale
factors and bias values must be used with the PV algorithm and the Ratio-control
algorithm (K1 = C1, K2 = C2, B1 = C3, and B2 = C4), so that the actual ratio calculated
by the PV algorithm will be the same as the desired ratio (2.00) when the loop is stable. If
the scale factor in C1 and K1 were 1.0, the controlled flow would stabilize at the "other"
flow, multiplied by the ratio. In the example of Figure 8.15, the controlled flow would be
6.00*2.00 = 12.00 gallons each minute. In any case, the controlled flow stabilizes at a
value equal to the "other" flow, multiplied by the desired ratio, as modified by any scale
factors other than 1.0 or any bias values other than 0.
17.143 GPM
Controlled Flow
This algorithm requires two input connections, for PV processing and X2. The number of
input connections is defaulted to 2; however, it can be increased to 3, allowing the SP to be
fetched with an input connection.
The PV engineering unit range (PVEULO and PVEUHI) must be specified. The setpoint
engineering unit range (SPEULO and SPEUHIU) always follows the PV range. The output
engineering unit range (CVEULO and CVEUHI) is derived from the secondary if the
number of output connections is greater than 0; otherwise, it must be specified.
Any data point that uses RATIOCTL should use the Calculator PV algorithm (7.7.9).
X2FILT, the filtered value of the uncontrolled variable X2 is connected to P2 and the
variable controlled by the PID algorithm (see Figure 8-16) is connected to P1. The scale
factors and bias values in the Calculator PV algorithm must have the same values as their
counterparts in the Ratio Control algorithm:
RATIOCTL CALCULATOR
K1 = C1
K2 = C2
B1 = C3
B2 = C4
Thus, Calculator can calculate the actual (measured) ratio attained, and when the
PVSOURCE is Auto, that value is available in the PV parameter of the data point for use
on displays and reports.
• Man
• Auto
• Cas
On a cold or warm restart or when the RATIOCTL data point is activated, initialization
takes place as described under 8.14.6.5.
If the value status of the X2 input is bad, the CV value is changed to bad (NaN). The data
point remains in the same mode. When the X2 input again has normal status, initialization
takes place as described under 8.14.6.5.
In R600 or later, the Algorithm includes an operator-entered bias. This Bias parameter
value is added after all other calculations to obtain the CV for print. For equivalent
operation when migrating from PRE R600 Releases set BO = 0.0.
8.14.6.3.9 Initialization Ramping Bias
The bias B is made up of two components, BO and BI, where BO is the operator entered bias and BI
is the internal bias. An optional initialization method using an internal ramping bias is available.
Parameter RATE1 specifies the decay rate for the Internal Bias, BI. The value of BI is set during the
algorithms initialization and decays to zero at a rate defined by RATE1.
Compatibility—If RATE1 is set to NaN, the initialization ramping value is set to 0.0 and
the initialization value for the primary is determined by back calculation compatible with
PRE R500 functions. When migrating from R4xx or R5xx to R600, the fixed bias term BO
should be defaulted to 0.0.
When RATE1 = NaN
K1 * (CV - BO) + BI
INITVAL =
K 2 * X 2 FILT + B 2
If RATE1 is set to a non-zero value, and the Ratio Control block is in Cascade mode, the
SP value is back calculated. During initialization, an internal bias that is equal to the
difference between the old CV value and the new CV value is added to the output
calculation to produce a bumpless output Internal Bias (BI) is calculated as follows:
SP * ( K 2 * X 2 FILT + X 2) - BI
BI = CVold – -BO
K1
where CVold is the last calculated CV value before initialization.
If the primary accepts the initialization value (INITVAL), then BI turns out to be zero. If
the primary does not accept the initialization value, then BI turns out to be non-zero. If not
zero, the internal bias (BI) decays at the rate specified by RATE1. RATE1 is specified in
engineering units per minute. If RATE1 = 0, then BI does not decay but remains fixed.
If the Ratio Control block operates in Auto mode during initialization when the mode changes
from manual to auto, the internal bias (BI) is added to the output. BI decays at the rate
specified by RATE1 as described for Cascade mode. The default value of RATE1 = NaN.
At the X2 input to the Ratio Control block, the value of the uncontrolled variable is filtered
by a single lag filter. Parameter X2TF determines The X2 filter time (0 - 60 minutes) and
X2FILT is the filtered value of X2. The X2FILT value appears on the point detail display.
This filter is active only if the point is in the AUTO or CASC mode.
Compatibility—When X2TF is set for 0.0 minutes lag time, X2 is not filtered as was the
case for the algorithm prior to Release 500.
The default value of X2TF = 0.0.
8.14.6.4 Equations
When the data point is initialized, an initialization request is sent to the primary, and the
initialization value to be applied by the primary to the SP input is calculated and sent to the
primary as follows:
K1 * (CV - BO) + BI
INITVAL =
K 2 * X 2 FILT + B 2
From Initializing
Primary
CAS
SP RATIOCTL
AUTO CV OP X1 CV
X2 Override
X3 SELECTOR
X4
To I NITVAL PTORST
Primary PTORST ORFBSEC
ORFBSEC
ORFBSEC is not an external parameter.
When the data point's secondary uses an Override Selector algorithm (see Figure 8-17), the
following functions take place if the RATIOCTL algorithm if it is in Cas mode:
• The override status is sent to the primary data point in PTORST (Point Override
Status).
• If the status in PTORST is not selected, a feedback value, calculated as follows, is sent
to RATIOCTL's primary data point.
PV RAMPSOAK CV OP SP PID
CV OP
PV
PV Output
Algorithm Processing
FT
SOAKT3
SOAKV3
SOAKT2
RATE3 SOAKT4
CV SOAKV2 RATE4
SOAKT1
RATE2 SOAKV4
SOAKV1
RATE1
Time
Figure 8-18 — Functional Diagram of Ramp and Soak Control Algorithm 1337
8.14.7.1 Function
When not used in connection with the switch algorithm, output from this algorithm is
usually used as the setpoint for a secondary data point that uses a PID algorithm to control
a process variable, according to the ramps and soak periods. The PV of a data point that
uses RAMPSOAK is normally the PV of the PID point.
RAMPSOAK is principally used for automatic temperature cycling in furnaces and ovens.
It can also be used for automatic startup of units, and for simple batch-sequence control
where the batch sequence is part of a process that is otherwise a continuous process.
Once started, the configured sequence of ramps and soak periods repeats itself, if it is not
stopped by an operator or by a user-written program. A Universal Station operator can put
the point in Man mode to freeze the sequence, and then return it to Auto to continue the
sequence.
• CYCLEOPT = Single
When the mode is changed from Man to Auto, the algorithm cycles through the
configured rampsoak sequence until the last soak segment is completed. At this point,
the mode is switched back to Man and the current segment ID is set to RAMP1 (the
first segment). Another sequence can now be executed by simply switching the mode
back to Auto.
• CYCLEOPT = Cyclic
When the mode is changed from Man to Auto, the algorithm cycles through the
configured rampsoak sequence until the last soak segment is completed. At this point,
the current segment ID is set to RAMP1 (the first segment) and the whole cycle is
repeated.
The operating modes establish the operating state of the RAMPSOAK algorithm as
follows:
• Man—The sequence is stopped and the ramp/soak timers are not running.
• Man mode
This allows the user to enter starting output value for the Ramp/Soak profile and
to change the value during profile.
– SP = CV (SP doesn't affect the output but can be seen at Universal Stations and
user-written programs).
• Auto Mode
– If the current segment is a ramp, and if the guaranteed ramp conditions are OK
(see 8.14.7.3.6),
If CV should overshoot the next soak value it is clamped at that value, the
remaining soak-time (REMSOAKT), the current-segment (CURSEGID), and
the mark timers and flags (see 8.14.7.3.7) are updated.
– If the guaranteed ramp conditions are not OK, the mark timers (see 8.14.7.3.7) are
stopped.
– If the current segment is a soak, and if the point just changed from Man to Auto,
or just started the soak segment, and the guaranteed soak time conditions are not
OK (see 8.14.7.3.5),
CV holds at its last value and the mark timers and flags (see 8.14.7.3.7) are
updated.
If the soak timer times out, the current segment (CURSEGID) becomes the next
ramp segment.
– In any case, in Auto mode, SP is equal to CV. SP doesn't affect the output but can
be seen at Universal Stations and by user-written programs.
NOTE
If the polarity of the ramp rate is opposite to the soak target value, the output jumps to the soak
target value. That is, the ramp segment for this ramp/soak cycle is omitted and the
next segment is invoked.
When the RAMPSOAK point is in Man mode, an operator at a Universal Station can
change the remaining soak time (REMSOAKT) if the current segment is a soak.
Also, when the point is in Man mode, an operator can change the current segment
(CURSEGID).
When the mode is returned to Auto the sequence continues, as modified by these changes.
If the segment was changed, the sequence resumes with the new segment, which can be a
ramp or a soak.
Because changes to these parameters don't change the mark functions (see 8.14.7.3.7),
except if CURSEGID is a lower segment than the mark segment (SnSEGID), operators
should not be allowed to change REMSOAKT or CURSEGID when the mark functions
are configured.
This feature guarantees that the PV is at the proper soak value before the soak-time
measurement begins.
If, when a soak segment begins or is resumed by switching from Man to Auto, the PV is
not within a user-specified deviation (MXSOKDEV) from the SP value (SP always equals
CV), the soak timer doesn't start. When the deviation is within the MXSOKDEV value, the
timer is started and continues, even if the deviation again exceeds MXSOKDEV.
Because the PV could be above or below SP, it is the absolute value of the deviation that is
checked against MXSOKDEV.
To bypass this check you can change MXSOKDEV to NaN.
The soak timer can also be kept from starting when HOLDCMD is On. This allows you to
use a Logic Slot to set HOLDCMD to hold the soak timer until some other condition is
met.
HOLDCMD also affects the guaranteed ramp function. See 8.14.7.3.6.
This feature guarantees that the PV keeps up with the desired value indicated by SP (SP
always tracks CV).
You can specify a maximum ramp-deviation value in MXRMPDEV. There are two
conditions that cause the ramp to stop to wait for the PV to catch up with SP. They are
• RATEn > 0
and
PV < (SP - MXRMPDEV)
• RATEn < 0
and
PV > (SP + MXRMPDEV)
These checks are bypassed if MXRMPDEV contains NaN.
Another condition that stops the ramp is HOLDCMD containing On. You can use a logic
slot to set HOLDCMD to stop or hold the ramp until some condition that you specify is
met.
The content of HOLDCMD also affects the guaranteed soak-time feature. See 8.14.7.3.5.
PV
Two flags are provided with the RAMPSOAK algorithm to indicate to other data points
that a specified time has elapsed from the beginning of a specified ramp segment or soak
segment. These mark-timer flags are S1 and S2.
Each of these flags has three associated parameters that specify the segment in which the
flag is set On, the time counted from the beginning of the segment, and the time from the
beginning of the segment until the end time (when the flag is set Off). These parameters
are as follows:
NOTE
For example S1SEGID = 2
S1BGNTIM = 5 min
S1ENDTIM = 6 min • S1BGNTIM must be less than
Pulsewidth = ENDTIM-BGNTIM or equal to S1ENDTIM.
(Same is true for S2 parameters.)
SEG1 SEG2
5 6 • S1ENDTIM is not required to
—
—
—
—— —
—— —
terminate the marker within the
segment specified by S1SEGID. For
example, if Segment 2 is only 5.5
minutes long, then the marker will
remain on until 6 minutes after the
S1 start of Segment 2 (which is 0.5
minutes into Segment 3).
Timer Starts
The S1 or S2 flag is turned on at the number of minutes after the specified segment begins,
as is specified in SnBGNTIM. The corresponding flag is turned Off at the number of
minutes after the specified segment begins, as specified in SnENDTIM.
• At the end of the last segment in the sequence, the S1 and S2 flags are turned Off and
the timers are reset.
• The mark timers suspend when the data point is in Man mode and the S1 and S2 flags
are unchanged.
• If the remaining soak time (REMSOAKT) is changed (in Man mode), the mark timers
are not affected.
• If the current segment (CURSEGID) is changed (in Man mode) to a segment that is
earlier than or equal to a segment specified by SnSEGID, the corresponding mark flag
goes to Off and its timers are reset. If a later segment is specified in CURSEGID, the
flags and timers are not affected.
RSK1
SP OP
X1
PV S1
To Logic
OP
RSK2
SP OP
X2
PV S1 S1
S2
To Logic
TRACKING
EQUATION B
LOGIC
RSK1.S1 L1 SWITCH.S2
PULSE
RSK2.S1
L2 SWITCH.S1
PULSE
PROCESSING ORDER:
2092
Figure 8-22 — Use of Logic Slot and Switch to Achieve Additional RampSoak Segments
A sequence of more than 12 ramp and soak segments can be attained by interconnecting
RAMPSOAK points. A Logic Slot can be used with a Switch Algorithm (see 8.14.10) to
select any of the four RampSoak Algorithm data points.
Longer sequences can be accomplished by setting the S1 Mark Flag at the end of the last
soak segment (S1 must be on for at least one sample time).
A Logic point reads the S1 Mark Flag and, using a pulse Logic Block (Pulse width can be
one sample time), sets the corresponding S input on the Switch Algorithm. This causes the
next RampSoak to become selected and all nonselected RampSoaks are INIT. The Switch
Algorithm should be configured for tracking and Equation B.
The PV engineering unit range (PVEULO and PVEUHI) and the output engineering unit
range (CVEULO and CVEUHI) must be specified. The setpoint engineering unit range
(SPEULO and SPEUHI) always follows the PV range.
If the RAMPSOAK data point uses a PV algorithm, the setpoint EU range is the same as
the PV EU range, and can't be differently configured. You should configure this point's PV
EU range to be the same as the SP EU range of the secondary point that is receiving this
point's output.
The setpoint and output limits do not apply. Setpoint limits are not available at all, and the
output limits are defaulted to -6.9% to 106.9% and cannot be changed.
The deviation limits (MXRMPDEV and MXSOKDEV) apply to all segments in the
sequence.
8.14.7.3.10 Restart or Point Activation
On a cold restart, a warm restart, or when the data point is activated, the mode goes to Man
and the CV value is NaN. All timers are reset, and the current segment ID is made equal to
the first ramp segment.
No special action occurs on a hot restart and the operation continues from where it was.
8.14.7.3.11 Control Input Connections
The ramp soak control algorithm requires only one control input connection (for PV). The
number of control input connections is fixed at one.
In a typical application, the output of this algorithm provides the SP of a secondary
controller (which is usually a PID control algorithm). The PV of the secondary controller is
then fetched with a control input connection into the PV of the RAMPSOAK. If used in
some different way such that the PV is not available from the secondary, the PV of the
RAMPSOAK should be fetched from its own SP parameter.
8.14.7.4 Equations
There are no configurable equations for the RAMPSOAK algorithm. The ramp and soak
segments are specified in the following parameters (also see Figure 8.18):
• Number of ramp/soak segment-pairs in the sequence—NORSSEQ
Default = 2
• Ramp Rates, EUs per minute—RATE1 through RATE12
Default = NaN
• Soak values—SOAKV1 through SOAKV12
Default = NaN
• Soak times, in minutes—SOAKT1 through SOAKT12
Default = 0
All of the significant parameters associated with the RAMPSOAK algorithm have been
described. Refer to the Advanced Process Manager Parameter Reference Dictionary for
additional parameter information.
8.14.8.1 Function
In cascade mode, this algorithm calculates a control output that is equal to the input value
plus a bias value. The bias value is normally provided by a Universal Station operator. In
manual mode, the output is controlled by a Universal Station operator or a user-written
program. See Figure 8-23.
Equation A is designed to provide "bumpless" returns to cascade operation, even though its
primary data point may not accept the initialization value from the AUTOMAN data point.
Equation B provides automatic balancing of the biases between several auto manual
stations and "bumpless" closing of cascades, with ramping of the initialization component.
8.14.8.2 Use
The AUTOMAN control algorithm typically serves as the ultimate secondary data point in a
cascade-control strategy. As such it directly drives the control element (valve) through an
analog output slot (a slot using a PID algorithm). See Figure 8-24.
This algorithm is very useful for a secondary data point that is one of two or more
secondaries of the same primary data point (a "fan-out" configuration). In such a
configuration, AUTOMAN can provide a "bumpless" output even if its primary doesn't
accept AUTOMAN's initialization request, but accepts one from one of its other
secondaries. This might happen because the AUTOMAN point is temporarily out of the
cascade because it is inactive or because it is in Man mode.
For an example of output from a PID controller to two auto manual stations, see the
example under Equation B (8.14.8.4).
CAS
o o
MAN
From Primary o
Data Point
Output
CAS Processing
o
o X1
o To
MAN CV OP
Secondary
AUTOMAN
To
Primary INITVAL
CV = X1 +B
Where :
B = BO + BI
Equation A:
PRIMARY Output
DATA POINT Processing
o CAS
o AUTOMAN CV OP
o
Man
Note
To Additional
Secondary
Data Points
NOTE: In a PM, this is an Analog Output point (slot) with PNTFORM = Component.
On a DataHiway this is a CB, MC, or EC point (slot) using a CM, CMA, or DDC
algorithm.
To support the use of this algorithm as one of the secondaries in a fan-out configuration,
special handling of the bias value is provided. When the data point is configured for
external initialization, the bias value, B, consists of two components.
B = BO + BI
When the user or a program enters a bias value in B while in cascade operation, that value
goes to B0 and BI is forced to zero. BI is an internal parameter that cannot be accessed by a
user. B cannot be entered in Equation B.
When the cascade connection is broken (in Man mode, initialization-manual input, etc.) a
value is calculated for the primary to initialize to, as follows:
INITVAL = CV - B0
The actual output value from the primary data point (X1 input)
If the primary data point did accept AUTOMAN's initialization value, BI turns out to
contain zero. If the primary did not accept INITVAL, BI contains a value that causes CV to
contain the value it had just before the cascade closed. In either case, CV does not "bump."
If BI has a value other than zero, that value ramps to zero at a rate specified by the user in
the RATE1 parameter. RATE1 is specified in engineering units-per-minute or NaN. If
RATE1 is set to NaN, then the internal bias instantaneously changes to 0 and may cause a
bump in the output. If a positive value is entered in RATE1, the value of BI ramps to zero at
a rate specified in the RATE1 parameter. Thus, while the output doesn't "bump" it does
ramp to the new value called for by the input from the primary.
For example, assume that the AUTOMAN data point is operating in Cas mode
X1 = 6
B = 5; BI = 0, BO = 5
CV = X1 + B = 11
RATE1 = 2 units per minute
BI = CV - BO - X1 (12 - 5 - 7 = 0)
B = B0 + BI = 5 + 0 = 5
CV = 7 + 5 = 12
B = 5; BI = 0, B0 = 5
This time, the primary doesn't accept INITVAL, and the output of the primary went to nine
units
OPprim = 9
BI = INITVAL - OPprim = 7 - 9 = -2
B = 5 - 2 = 3
CV = 9 + 3 = 12
12 Units
• Man
• Cas
• Bcas if RCASOPT = Ddc
You must configure the X1 input range in XEULO and XEUHI. The output engineering
unit ranges (CVEULO and CVEUHI) always follow the X input ranges.
On a cold or warm restart or when the data point is activated, initialization takes place as
described under 8.14.8.3.1. On a hot restart, initialization does not occur.
If the X1 input has a bad-value status (or Equation B and X2 is bad), the CV value is bad
but the data point remains in the same mode. When the bad input returns to normal, CV is
recalculated and an initialization request is sent to the primary.
Alternately, the strategy could be configured so that the bias value is held in a numeric.
Each auto manual point would then fetch the numeric value into its X2 input. In this
configuration, bias balancing is achieved by setting K on the two auto manual stations to
+0.5 and -0.5, respectively.
8.14.8.5 Initialization
When the data point's secondary uses an Override Selector algorithm (see Figure 8-25), the
following functions take place:
• If this point is in Cas mode, Override Status PTORST is returned to this point through
special processing. If that status is "not selected," an override-feedback value is
calculated as follows, and it is passed on to the AUTOMAN data point's primary:
ORFB = ORFBSEC - B
For more details on override control see subsection 8.13 of this publication.
PTORST-(Selected)
To INITVAL
Primary PTORST ORFBSEC
ORFBSEC
8.14.9.1 Function
This algorithm calculates the sum of the incremental changes in up to four input values. The
output is obtained by adding the sum of the changes in all inputs, after each input is
multiplied by a scale factor. See Figure 8-26.
X1
X2 To
INCRSUM CV OP
X3 Secondary
X4
Output
Processing
8.14.9.2 Use
This algorithm is typically used where more than one primary data point is used to
manipulate the setpoint of the same secondary data point. The primaries usually use PID
algorithms, and are connected to an INCRSUM data point. The output from the INCRSUM
data point is connected to the secondary, as shown here. This is sometimes referred to as a
"fan-in connection."
PID
X1
PID X2
INCRSUM CV OP SP Secondary
PID X3
Data Point
X4 PV
PID
Special handling of the outputs of PID data points is necessary in the Incremental Summer,
because it is the dynamic operation of the PID that is significant—the full-value output is
not significant. As the process variables change, PID outputs have no direct relation to the
input, therefore they are said to be "floating." The incremental summer responds only to
changes in the PID outputs, and calculates a full-value output to be applied to the control
device (valve) in the process or to the secondary data point.
While the PID algorithms handle SPs, PVs, and outputs as percentages of the configured
range, the Incremental Summer performs its calculations in engineering units.
To prevent a primary PID point in Auto or Cas mode from winding-up beyond its own
output limits, every time the Incremental Summer point is processed it changes the PID's
output value to its own CV value after converting to percent. This does not affect the
dynamic changes in the PID outputs.
If a primary PID is in Man mode, the PID's CV is not changed by the Incremental Summer.
The following restrictions apply to the PID points that are the Incremental Summer point's
primaries.
• Each must have only one control-output connection.
• Each must reside in the same APM box.
• Each must be a normal PID (8.14.1) or a PID Feedforward.
8.14.9.3.3 Engineering Unit Ranges
You must configure the X-input ranges in XEULO and XEUHI. The output engineering
unit ranges (CVEULO and CVEUHI) always follow the X input ranges.
8.14.9.3.4 Changes to Incremental Summer Output by User-Written Programs
If the Incremental Summer's secondary is an Override Selector data point, and its Override
Status (PTORST) is not selected, the CV of the INCRSUM data point is set equal to the
override feedback value. During the next pass of forward calculation, the incremental
summer computes its CV in the normal fashion.
This is very useful for cases where several feedforward signals are added to the output of a
PID controller (the addition done by the incremental summer algorithm) and the overall
result is fed to an override selector. Because the output of the PID controller tracks the
output of the incremental summer, which in turn tracks the output of the override selector
when not selected, the output of the PID controller is prevented from winding up when not
selected by the override.
This algorithm operates only in Man and Cas modes, and in Bcas if RCASOPT = Ddc.
Because the output of each PID primary tracks the OP output value of the INCRSUM data
point, switching this point from Man to Cas does not "bump" the process.
Note: The dynamic correction calculated by a PID primary appears as a change in that data
point's output after it is processed again and the Incremental Summer actually uses this
change as its input. The full-value outputs of PIDs connected to the Incremental Summer
have no meaning.
On a warm restart, or point activation, initialization takes place as described under 8.14.9.5.
When an input becomes bad ( = NaN), it is not used in the calculation. No bad control
alarm is generated. When the bad input returns to a normal value, its use in the output
computation is resumed in the CV calculation without "bumping" the value. This feature
allows adding multiple feedforward signals to the output of a PID controller.
NOTE
If a single feedforward input is needed, the PID feedforward control algorithm should be used.
CV is calculated as follows:
Where:
8.14.9.5 Initialization
Initialization occurs in Man mode when the output is indisposable, or when recovering from
a bad CV value (NaN), as follows:
CV(n-1) = CV
X1(n-1) = X1
.
.
.
Xm(n-1) = Xm
8.14.10.1 Function
X1
MAN
X2 CV OP
From up to 4
Other Data
Points CAS
X3
X4 Output
Processing
8.14.10.2 Use
The SWITCH control algorithm is used to allow the operator at a Universal Station to alter
control strategies by selecting any of four inputs to be passed on to the output, if Equation A
is chosen. If Equation B is chosen, a Logic Slot can change the switch position, or the
operator can store to SELXINP if all four input selection flags (S1, S2, S3, and S4) are
Off.
You can use SWITCH to select inputs from differing sources and to pass them on to a
single destination or you can use more than one SWITCH data point to switch a single
source to differing destinations. Figure 8-29 shows an example of each of these situations.
Either A, B, C, or D is connected to E:
A
B X1
X2
X3 SWITCH CV OP SP E
C
X4
D
F X1 SWITCH CV OP SP G
X1 SWITCH CV OP SP H
The X-input engineering unit ranges (XEULO and XEUHI) must be specified for
X-inputs. The output engineering unit ranges (CVEULO and CVEUHI) always follow the
X-input ranges.
If Equation A is chosen, an operator at a Universal Station can change the switch position in
one of two ways:
• By changing the desired switch indicator from Off to On—When one of the S1, S2, S3,
or S4 indicators is changed to On, all others go Off. SELXINP then indicates the
position selected.
The second method is very useful when operating with custom displays. The displays can
be built to allow the operator to see the positions and strategies selected unless S1 through
S4 are all OFF.
Equation B is primarily intended for automatic switching between inputs with the help of
logic (or user programs). In the APM, an operator is allowed to change the switch position,
by storing to the SELXINP parameter when configured for Equation B, if all input selection
flags (S1, S2, S3 or S4) are Off.
With Equation B, turning an S1, S2, S3, or S4 indicator On does not turn the others Off, as
it does with Equation A; therefore, the switch position is changed by storing On and Off in
the S1-S4 parameters as follows:
S1 S2 S3 S4 Xn SELXINP
On - - - X1 SELECTX1
Off On - - X2 SELECTX2
Off Off On - X3 SELECTX3
Off Off Off On X4 SELECTX4
Where "-" means On or Off does not affect the switch position.
You can configure the SWITCH algorithm for the tracking option, which causes non-
selected inputs to track the selected input value. This allows the switch position to be
changed without "bumping" the output.
When tracking option is configured, the primaries connected to non-selected inputs can be
initialized. Should one of the primaries not accept the initialization value from the
SWITCH data point, the output may bump when that input is selected. (A primary might
not accept an initialization value because it has more than one secondary and accepts
initialization from one of its other secondaries.)
NOTE
For the tracking option to work, the Switch input must come from an APM primary Regulatory
Control point. The output destination from the RegCtl point must specify the Switch point (that is,
the Switch input must be pushed from the RegCtl point).
When SWITCH is included in an override control strategy, the tracking option must be
configured.
On a cold or warm restart, or when the SWITCH data point is activated, initialization takes
place, as configured. See 8.14.10.5.
On a hot restart, normal operation resumes with no initialization.
If a selected input has a bad-value status, the CV value goes bad (NaN), but the operating
mode does not change. When the status of the selected input is again good, CV is
recalculated, an initialization request is sent to the primary data point.
Equations A and B:
CV = Xn
n = 1, 2, 3, or 4
SELXINP = The selected input, which can range from SelectX1 through
SelectX4.
Where:
NOTE
See 8.14.10.3.4 for special information regarding Equation B.
8.14.10.5 Initialization
If the tracking option is configured (see 8.14.10.3.5), the non-selected primaries are
continually initialized.
If this data point's secondary is an Override Selector point and if this point is in Cas mode,
when override-feedback processing takes place, override status and an override value are
passed to this point's primary. The status is in parameter PTORST.
If PTORST indicates not selected, the value passed to the selected primary in ORFB is
equal to the value received from the secondary in ORFBSEC.
8.14.11.1 Function
The Override Selector Algorithm is used with up-to-four PID inputs, all of which are
initializable. The input with the highest value or the input with the lowest value is selected
and passed on to the output of this data point. The algorithm can operate as a simple
selector or an override option can be configured that prevents PID points in an override-
control strategy from winding up. Refer to Figure 8-29.
If the override option is configured (OROPT = On), an operator can put the ORSEL point in
a bypass state and any of the inputs can be bypassed; that is, not used in the algorithm
calculation. Four logical parameters are provided to select the input to be bypassed. These
parameters are BYPASSX1, BYPASSX2, etc. There is an additional parameter, BYPASS.
When BYPASS = On, the input Xn for which BYPASSXn is On is initialized (equal to the
selected input) and not used in the calculation of the output. When all four inputs are
bypassed, the output is maintained at the last values.
All bypass parameters can be stored by the operator, or any system function, but only the
BYPASS parameter is available for changing at the group display level.
8.14.11.2 Use
This algorithm can be used, without the override option, as a simple selector that selects
either the highest or the lowest of the connected and active inputs. With the override option,
it is used for override-control strategies where a process variable is measured and normally
controlled, but where another variable is selected to constrain the controlled variable, under
a specified condition. This is often referred to as "multivariable-constraint control."
Figure 8-31 illustrates an override strategy. The X1 input to the ORSEL point is normally
selected and applied as the setpoint to the fuel-flow controller. If the value of the air flow
multiplied by some ratio exceeds the fuel-flow setpoint, the air flow constrains the fuel
flow.
Output
Processing
CAS
X1 To
CV
X2 ORSEL Secondary
MAN X3
X4 ORFBSEC
From
Init.
Primaries Feedback Value
Sel To Primaries
Notsel,
Notcon
CAS
MAN
Equation A: HI Selector
Equation B: LO Selector
In a strategy like that of Figure 8-31, Equation A, the override option is configured. PID
data points connected to non-selected inputs are prevented from "winding up" by forcing
their outputs to track the override feedback signal (ORFBSEC). For more detail on such
strategies, refer to 8.13.
The simple selector (override option not configured) can be set up to initialize one input,
but not all inputs, by using control-input connections for the inputs that are not to be
initialized, and by using a control-output connection from the point that is connected to the
input to be initialized.
NOTE
There are some important guidelines that must be observed when configuring an override-control
strategy. See 8.13 and the configuration information below.
SP A ir
PV Cont.
Air
F
Fuel
If X2 exceeds X1, air flow
constrains fuel flow.
If the override option is configured, PID points connected to non-selected inputs are
prevented from "winding up" by forcing their outputs to track the override-feedback signal
(ORFBSEC).
Override Offset
When configured as an override selector, any of the inputs X1, X2, X3, and X4 can be
individually bypassed (not used in the algorithm calculation). Four logical parameters are
provided to select the input to be bypassed. These parameters are BYPASSX1,
BYPASSX2, BYPASSX3, and BYPASSX4. An additional parameter, BYPASS is
provided. When BYPASS is On, the input Xn for which BYPASSXn is On is initialized
(set equal to the selected input) and not used in the calculation of the output. When all four
inputs are bypassed, the output is maintained at the last value.
These parameters are available only when the override option is configured (OROPT = On).
All bypass parameters can be stored by the operator, or any system function, but only
BYPASS is available for changing at the group display level.
NOTE: When a selected input is bypassed, all parameters go through 1-shot initialization.
Because a data point that uses ORSEL is always a secondary to at least one other data point,
this algorithm operates only in the following modes:
• Cas
• Man
On a warm restart, or on activating the data point, the CV is initialized to the value returned
from the secondary and an initialization request is sent to all of the primaries.
In Cascade mode with BYPASS Off, if any input has a Bad-Value status, CV's value is bad
(NaN) and the mode doesn't change when the CV value goes bad. Also, in Cascade mode
with BYPASS On, any non-bypassed input (BYPASSXn=Off) that has a Bad-Value status
causes CV to go bad (NaN).
If a bad input, that was causing CV to be Bad, returns to Normal, CV returns to normal, CV
is made equal to OP, and all bypassed primaries are initialized (see subsection 8.14.11.5).
8.14.11.4 Equations
8.14.11.5 Initialization
Initialization requests from secondary points are ignored as long as the ORSEL output is
disposable.
If the override option is configured for the ORSEL point and the ORSEL point is in Cas
mode and not initializing, it propagates override-feedback information to its primary points
and on "upstream."
When BYPASS is Off, the appropriate NotCon, Sel, NotSel status is given to ORSEL's
primaries in PTORST, and the override-feedback value that is passed to the primaries is
calculated as follows:
ORFBSEC = CV
Where ORFBSEC is the feedback value from the secondary. (ORFBSEC is an internal
parameter)
If, under the above conditions, BYPASS is On, the status sent to the primary connected to
the nonbypassed selected input is Sel, NotCon is sent to the bypassed primaries and they are
all initialized. NotSel is set to the nonbypassed non-selected primaries.
If there is more than one Override-Feedback data point in a strategy, only the one nearest
the final control element (the "most downstream" point) initiates override feedback.
Override-feedback propagation is the passing of status and feedback values, from the
initiating Override Feedback Selector, "upstream" through one or more other data points.
If so,
If PTORST ( Point Override Status) = SEL (selected), ORFB = CV
else
ORFB = ORFBSEC
Where ORFBSEC is the feedback value from the secondary.
And, PTORST status sent to the selected primary is the same as that received from the
secondary. If BYPASS is false, the status to all other primaries is NotSel. If BYPASS is
true, non-selected inputs are initialized, so the status sent to them is NotCon.
In addition to the parameters already mentioned, the following parameters are associated
with the ORSEL algorithm. Refer to the Advanced Process Manager Parameter Reference
Dictionary.
BYPASS
BYPASSX1
BYPASSX2
BYPASSX3
BYPASSX4
CTLEQN
OROFFSET
OROPT
Processing order is always important, but especially for the ORSEL strategy. ORSEL
functions will not work properly if point processing order is incorrect.
9.2.1 Alarming
The first 128 flag points (slots) can be configured for off-normal alarming. An alarm will be
generated when the PV of the flag point is changed from STATE0 (Off) to STATE1 (On).
Alarming is available only if the flag point has been configured as a Full point.
Group Display
PVFL = On
STATE1
STATETXT(1)
STATETXT(0)
PVFL PV STATE PV
o
PNTFORM
Full o o Componnt
STATE1
HIGHAL
ALENBST
ALARM DETECTION HIGHALPR
Printer (Only for Flag Slots
JnlPrint 1 - 128)
Emergncy
CONTCUT
OFFNRMPR Low
High
Journal EIPPCODE
NoAction
PVNORMAL
PRIMMOD
Minutes, Seconds
TIMEBASE
TIMER
PV Current Time Value
DATA
Start POINT
RV Remaining Time
Stop (SP - PV)
Time variables can be used to store date/time information such as the date machinery was
put in service, when the machinery was serviced last, when the machinery was last used,
etc.
The APM box provides up to 4096 global Time variables. The maximum limit is
determined by the Node Specific Configuration parameter NTIME (number of times). Time
variables are not configurable with a tag name. They can be accessed by !BOX.TIME(i) or
$NMxxNyy.TIME(i) where xx is the network number and yy is the APM node number. The
first 4095 Box Times are accessible from the LCN. An array point must be used to access
number 4096. After configuration, time variables are initialized to 0.
String variables can be used to store descriptive text data such as the brand name or model
of machinery, who to contact for service, etc.
The APM box provides up to 16,384 8-character String variables. The upper limit is
determined by the Node Specific Configuration (box) parameter NSTRING (number of
strings). The first 4095 Box Strings are accessible from the LCN. An array point must be
used to address strings with an index of greater than 4095.
String variables are not configurable with a tag name. They can be accessed by
!BOX.STRn(i) where n is the string length or $NMxxNyy.STRn(i) where xx is the network
number and yy is the APM node number. After configuration, string variables are initialized
to spaces.
ARRAY POINTS
Section 10
This section describes the Array point available in the Advanced Process Manager. Additional
information about the parameters mentioned in this section can be found in the Advanced Process
Manager Parameter Reference Dictionary.
In the first case, an Array point can define a section of the box variables as its own data (see
Figure 10-1). Access to single variables over the LCN is limited by the upper index (4095),
but using an Array point you can access upper Flag, Numeric, String, and Time variables.
The Array point can access and fetch string data in lengths of 8, 16, 32, or 64 characters.
APMM
Array
Point
12446
In the second case, large quantities of data from a Serial Interface (SI) IOP can be scanned
and imaged (read), and used as if it were local data to the Array point (see Figure 10-2).
Writes through the Serial Interface are also permitted. The Serial Interface IOP module is
described in Section 2 of this manual, and its use with an Array point is discussed later in
this section.
APM
SI IOP
APMM
(up to 80 SI
Array points)
Power
Adapter
16 Arrays 16 Arrays
To Field FTA FTA To Field
Devices 1 2 Devices
Each Array point can contain up to 512 Booleans (Flags), or 16 Reals (Numerics) or 32
Integers (Numerics), or 64 byte-sized Integers (Numerics), or 64 ASCII Characters (Strings)
Array point configuration begins with APM Node Specific Configuration. You can allocate
up to 256 array points through the parameter NARRSLOT. Other Node Specific
Configuration parameters that affect the Array point are—
• NNUMERIC - the number of Box Numerics (in multiples of 16) that you want
available.
• NSTRING - the number of Box Strings that you want available (in multiples of 16).
Note that Box Strings are only available as 8-character strings.
• NTIME - the number of Box Times (in multiples of 32) that you want available.
• SCANPER - if you intend to access Serial Interface data, this parameter specifies
the period at which the APMM scans SI data and maps it to the Array points. The
APMM can scan SI IOP data at three rates and this determines the maximum number
of Array points with SI connections that you can have:
Maximum Number of
SCANPER SI/Array Points
1 Second 80
0.5 Second 40
0.25 Second 20
Finally, you must select SI as the Module Type on the IO Module Configuration pages for
each SI IOP board that you wish to implement.
Note that 16,384 box flags are always available. The number of variables of each particular
global box variable data type available to an Array point is further limited by configuration
parameters for the Array point.
Data elements in the Array point are referred to by the Array point tagname, type of variable
and index number (i). For example ARR01.FL(9). The complete list follows:
Parameter
Variable Reference
Flags FL(i)
Numerics NN(i)
Strings STRn(i)
Times TIME(i)
In the case of strings, n refers to the string length, 8, 16, 32, or 64. For example STR32(4).
10.2.1 Configuration
When the External Data Option parameter (EXTDATA) on the Array point configuration
screen form is set to NONE, the Array point parameters provide indirect access to flag,
numeric, string, and time APM box global variables.
Note that an Array point is just a convenient way of referring to related data; the actual data
comes from the APM box global variables (in this case). When accessing one of these
variables by the Array point tag name, the APM translates the request to a specific APM
box global variable.
When accessing the APM box global variables, each Array point allows the following
configuration:
String length—The Array point parameter STRLEN specifies string length as 8, 16, 32, or
64 characters and this determines the format in which strings are presented on the Array
point Detail Display. Regardless of the value of STRLEN, Array point string data can still
be referenced using the STR8, STR16, STR32, or STR64 formats.
Figure 10-3 shows how longer character string lengths can be fetched from the 8-character
format APM box global string variables (provided that the access requested is within the
configured section). For example, if the Array point string starting index is set to 301 and
adequate APM box string variables are configured (in 8-character format), a request for the
64 character Array point parameter STR64(2) will fetch Box.STR8(309) through
Box.STR8(316). If only part of a longer character string can be been fetched, the available
portion is fetched. An array index error results when none of the requested string is
available.
STR32(1)
STR16(1) STR16(2)
STR64(1)
STR32(4)
STR64(2)
STR16(7) STR16(8)
11395
Array point ARR100 is configured to represent the ingredients necessary to make product
X. The parameters are configured as follows:
The 75 numerics list the amounts of all possible ingredients. The 75 strings describe each
ingredient. The descriptor entries (for NNDESC and STRDESC in this case) subsequently
appear on the point Detail Display and describe the ingredients. Refer to the Process
Operations Manual for examples of the Array point Detail Display.
Additional Array points could be configured to store other attributes of each of the 75
ingredients, such as specific gravities, etc.
After loading the Array point, the parameters AR100.STR16(1 to 75) can be used to refer to
the ingredients for Product X. The parameters AR100.NN(1 to 75) can be used to refer to
the amount of each ingredient for Product X.
On the Detail Display, array variables appear in a table numbered from 1 through the end of
the array. Note that by choosing the starting index to end in 1 in the above examples, the
box variables and array variables correspond more conveniently. For example,
ARR100.NN(70) is mapped to box variable NN(2070) and appears on the Detail Display as
N0070.
When the Array point is configured to obtain input from a serial interface (EXTDATA =
IO_FL, IO_NN, or IO_STR), additional parameters appear on the configuration screen
form. These are:
• the SI IOP module number IOPNUM
• the FTA number, 1 or 2 FTANUM
• the serial link device address DEVADDR
• FTA scan priority, low or high SCANPRI
APMM
Box
Variables
SI Image
Array Database
Point
Read
Write
SI IOP
Slots Slots
1–16 17–32
FTA FTA
#1 Serial #2 Serial
Link Link
Plug in Module
Scan
Serial
Subsystem
Serial
Register Subsystem
Range to
be Scanned
Serial
Subsystem
Figure 10-4 — Signal Path Between SI Subsystems and Array Point 11396
An SI Array point typically interfaces with an AEG Modicon Generic Controller, a Generic
Modbus RTU Controller, or an Allen-Bradley programmable logic controller. Other devices
that use the Modbus RTU protocol may communicate to an SI Array point. Your Honeywell
representative can provide a list of certified devices.
AUXDATA Parameters—These parameters are for use with the Generic Modbus
interface. They should be set to NaN (dashes) when communicating with an Allen-Bradley
PLC. Likewise, when the Modbus interface is being used, the AB_DATA parameters
should be set to NaN.
Parameter Specifies
AUXDATA1 Modbus Coil Keep Alive Address
AUXDATA2 Wait time before message retry
AUXDATA3 EIA protocol and modem control
AUXDATA4 Baud rate and Parity
AB_DATA parameters—These parameters are for use with the Allen-Bradley interface.
They should be set to NaN (dashes) when communicating with a Modbus. Likewise, when
the Allen-Bradley interface is being used, set AUXDATA parameters to NaN.
The following table is only a general overview of the AB_Data parameters. Each is
discussed in detail in the APM Serial Interface Options manual and there are many
variations depending on the PLC family.
Parameter Specifies
AB_DATA1 The PLC family
AB_DATA2 The PLC file number
AB_DATA3 The Data type
AB_DATA4 The Scan rate
Most of the remaining SI Array parameters considerations deal with a starting index and
array size (number of flags, numerics, or strings).
When used with the Serial Interface, the starting index parameters: FLSTIX (Flag),
NNSTIX (Numeric), or STRSTIX (String) refer to a register address in the serial device.
This register is scanned over the appropriate range as set by the array size.
Status reporting—Several Array point parameters are provided for status reporting. Error
information appears on the Array Point Detail displays and the SI IOP Detail Status display,
or can be tested with CL. The following parameters should be checked periodically:
• BADPVFL provides an overall database status (ON = bad). The overall status is bad
when there are communication problems or the SI module is in Idle. When the overall
status is bad, an attempt to access numeric, flag, or string data results in a bad access
status. Consequently, CL programs should check BADPVFL or INITREQ
before using SI data.
• INITREQ, when set to ON, indicates that the write to the SI module cannot be
completed.
• ERRCODE provides an 8-character error string. Refer to the Advanced Process
Manager Parameter Reference Dictionary for complete information.
Note that BADPVFL and INITREQ are always OFF if not using SI data (EXTDATA =
None).
Device Control or Digital Composite points can have digital output connections through an
SI/Array point to a field subsystem. The field device or its interface may interrupt or change
the output and not provide any indication of the change.
If flag data is mapped back from the SI/Array point, a digital output read-back check
determines the actual value of the output. After a new output state is stored to the digital
output connections, the read-back check is delayed for a time period equal to the feedback-
time parameter (FBTIME) or 4 seconds, whichever is greater. This delay allows the
SI/Array output enough time to reach even a slow responding field device before causing a
Command Disagree alarm (see subsections 4.5 and 11.5).
If a discrepancy then exists between OPFINAL and OP, the operator is advised. If
OPFINAL does not agree with any of the defined states, its state is displayed as NONE.
10.3.5 CL Notes
All Array point data (flags, numerics, etc.) can be accessed by a CL program (without
impacting IOL prefetch limitations). Refer to the Control Language/Advanced Process
Manager Reference manual for additional information.
The CL/APM compiler issues a warning when external Array point data (data read from a
Serial Interface) is used in a LOCAL declaration. This is done because the data is not truly
local, but resides in the external device connected to the Serial Interface IOP.
11.1 FEATURES
The Device Control (DevCtl) point provides a way to manipulate a device, typically a
motor, and a way to view the strategy through a single point. In addition, this point helps
the operator to graphically trace the source of an interlock condition.
You can allocate up to 160 Device Control points (NDEVSLOT) or combinations of
standard and fast DevCtl (NFASTDEV) points during Node Specific Configuration.
Some of the features of the device control point are as follows:
• Permits a custom logic design (within the strategies provided by the device control
point) of an interlocked motor control strategy.
• Allows configuration of a seal-in circuit function.
• Allows configuration of a state change function.
• Accommodates single- and dual-speed single direction motors, reversible single-speed
motors and motor-operated valves.
Digital Composite Section—Two digital inputs, a Local Manual input, and the Digital
Output(s) make up the Digital Composite part of the point as shown in the upper part of
Figure 11-1. All of the properties of the Digital Composite point described in Section 4
apply to this part of the Device Control point.
Logic Section—The left side of Figure 11-1 shows how up to 12 logic inputs are brought
into the point. The gates that follow allow the inputs to be inverted, delayed, compared, etc.
The resulting signals can drive other gates, interlocks, permissives, or output commands.
Two logic outputs can be configured to output most real or logical data from the point.
Processing order—The DevCtl point processing order should be regarded as: the
regulatory PV section first, then the logic section, and finally the digital composite section.
Permissive
State #1
Interlock
State #1
Alarms
Output #0
State Command
Permissive
State #0
Interlock
State #2
Primary and
Secondary Input
Gates, 1 to 12
NOTE
Every logic input that you specify must eventually be used to drive some output,
permissive, or interlock.
Algorithms—Figure 11-3 shows the various choices for the Primary Input Gate algorithm
(parameter PIALGID(n)) and the Secondary Input Gate algorithm (parameter SIALGID(n)).
The choices are discussed in the following paragraphs.
Primary Input Gate Algorithms—
Null means the input is passed unchanged to the output.
Comparison algorithms for the Primary Input Gate such as GT, GE, etc compare the
input to parameter PINN(n) where n is the gate number. PINN(n) contains a real number
entry of your choice.
Algorithms ending in 2 such as GT2, GE2, etc., compare the input to a primary input
source specified by PISRC(n) where n is the gate number. This allows you to compare
the configured input to one of the logic inputs (L1 – L12). Gate(n) output goes true
when the comparison succeeds.
In_Set algorithm compares the gate input with a table of ten numerics (NNINSET(n))
and the output goes true if the input equals any value in the set. You must enter the ten
numeric values which can range from 0 to 32,767.
For EQ, EQ2, NE, and NE2 gates, the deadband value defines the range of comparison.
For example, an EQ gate is configured with input numeric PINN(n) = 6 and deadband
parameter PIDEADBD(n) =2. The output is true when the input source is between 4 and 8.
Primary Secondary
L(n) Input Gate Input Gate SIDSTN(n)
1 –12 1 –12
PIALGID(n) SIALGID(n)
11399
(Algorithms) (Algorithms)
NULL NULL
INVERT DLY - Delay
GT - Greater than PINN(n) ONDLY - On Delay
GE - Greater than or equal to PINN(n) OFFDLY - Off Delay
LT - Less than PINN(n) PULSE
LE - Less than or equal to PINN(n) MAXPULSE
EQ - Equal to PINN(n) MINPULSE
NE - Not equal to PINN(n)
GT2 - Greater than PISRC(n)
GE2 - Greater than or equal PISRC(n)
LT2 - Less than PISRC(n)
LE2- Less than or equal PISRC(n)
EQ2 - Equal to PISRC(n)
NE2 - Not equal to PISRC(n)
IN_SET
Figure 11-3 — Primary and Secondary Logic Input Gate Algorithms
Secondary Input Gate Algorithms—These include various types of delays. Your entry
(0 – 8000 seconds) in parameter SIDLYTIM(n) determines the delay (per gate). These
functions are briefly described here and fully in the Logic Point description (Section 5).
Delay—The Delay algorithm causes a one cycle delay of the input value (at the
execution rate of the point). Parameter SIDLTYM does not apply to this gate.
On Delay—On Delay starts counting when the input switches from Off to On. If the
input is still On when the time runs out, the output is set to On. When the input signal
switches Off, the output is set to Off immediately and the timer (if running) is stopped.
Secondary Input Gate Destinations—the output destination from each Secondary Input
Gate is specified by SIDSTN(n). The choices are shown in Figure 11-4.
Secondary
Input Gate SIDSTN(n)
1–12
(Destination)
11400
NOTE
Every Secondary Input Gate that you configure must have an output destination specified.
You can configure up to four Primary Gates (NOPGATE) and up to two Secondary Gates
(NOSGATE). Each gate can have up to six inputs. The inputs are determined by specifying
them as destinations from other gates. It isn’t necessary to use these gates if you do not need
the functions they provide.
Primary Gate Inputs—Inputs to the Primary Gates can only come from Secondary Input
Gates. Up to six inputs are available.
Secondary Gate Inputs—Inputs to the Secondary Gates can come from any of the 12
Secondary Input Gates or any of the four Primary Gates.
Primary and Secondary Gate Algorithms—both the Primary and Secondary Gates have
identical algorithms. Algorithms beginning with a P have a pulsed output when the gate is
enabled. Pulse width is specified by parameter PGPLSWTH(n) for Primary Gates or
SGPLSWTH(n) for Secondary Gates. Pulse width can range from 0–8000 seconds.
Primary Secondary
Gate PGDSTN(n) Gate SGDSTN(n)
1–4 1– 2
(algorithms) (algorithms)
AND PAND AND PAND
OR POR OR POR
NAND PNAND NAND PNAND
NOR PNOR NOR PNOR
XOR PXOR XOR PXOR
Figure 11-5 — Primary and Secondary Logic Gate Algorithms
Primary
Gate PGDSTN(n)
1–4
(Destination)
11402
NOTE
Every Primary and Secondary Gate that you configure must have an output destination
specified.
Secondary
Gate SGDSTN(n)
1–2
(Destination) 11403
OVERRIDE
STOP
AND OR
Input_4
2 3
Input_5
Input_6
Input_7
11404
This Regulatory PV section of the DevCtl point provides an analog input for a Secondary
Variable (SECVAR). The Secondary Variable input connection is specified by parameter
SVSRC as a tag name.parameter or hardware address reference. Typically this input is used
to monitor motor current, flow rate, valve position, etc.
During configuration you can specify
• descriptors–(SVDESC and SVEUDESC)
• the high/low engineering unit range–(SVEUHI/SVEULO)
• the target value (setpoint)–(SVTV)
• the high and high high trip point–(SVHITP and SVHHTP)
You can also specify the alarm priorities, an alarm deadband, and the secondary variable
alarm mask time. Mask time (MASKTIM) specifies the time from 1–1000 seconds that
alarms are inhibited after an output change.
Several historical items related to the Secondary Variable can be accumulated and reported
on the Maintenance Statistics Display section of the point’s Detail Display. These are—
• the peak value of the secondary variable on the last run.
• the duration of the first peak above the full load high trip limit.
• the time that the secondary variable is continuously greater than its high trip limit.
SVHITPP SVHHTPP
SVTV
11405
11405b
When SVHITPP is configured = SVHHTPP, a single vertical dash represents both values.
Its color is determined in the same way as for SVHHTPP.
The Red Color Alarm Priority is configured during the Console Data part of Network
Configuration.
The bar graph color for the Secondary Variable in percent (SVP) depends on the Secondary
Variable High alarm Flag, the High High alarm Flag, and the Secondary Variable High and
High High alarm priorities.
If the two-color alarm option is selected in the Network Configuration File (NCF), SVP
color is described in Table 11-2.
If the three color alarm option was selected in the NCF, the SVP color is based on the color
choices in the NCF.
If the three color alarm option was selected in the NCF, the SVP color is based on the color
choices in the NCF.
Parameter LMSRC allows you to designate a logical input for the local manual signal. The
source can be specified as a tag name.parameter or as a hardware reference address.
Parameter LMREV permits the input to be inverted.
When the LOCALMAN flag is true, it indicates that the device’s state is being controlled
directly by external hardware. The Device Control point’s output tracks the PV (the actual
state of the device). When the device is taken out of Local/Manual, the output of the point
matches the current state of the device being controlled.
CAUTION
Do not configure two different logic outputs to drive OPCMD and SOCMD of the same Device
Control Point.
The ON command is sent to the output only if the permissives and interlocks are in a state
to permit the output. If the ON state is allowed, ON becomes the Output Final OPFINAL
output. OP and OPFINAL may be different; for example, if the seal in option is activated.
Seal-in —If the seal-in circuit is configured, it will unlatch the digital output contacts on
detection of the PV not following the output command as happens on a device drop out (for
example, a stopped motor). This condition is true any time the PV is not in state 1 or state 2
and either a command disagree alarm or an uncommanded state change alarm is present.
If the seal in option is enabled when the above condition is detected, the output destinations
are set to the state corresponding to OP of state 0, but OP is not altered. The actual state
commanded to the output destinations can be observed on the lower part of the group
display as OPFINAL. OPFINAL appears in reverse video when not equal to OP.
Figure 11-10 illustrates the interlock system associated with the Device Control Point’s
digital outputs. This illustration is described thoroughly in Section 4 for the Digital
Composite point and is reproduced here for convenience.
Inputs—Inputs to the interlocks can come from the output of —
• any of the Secondary Input Gates
• any of the Primary Gates
• either of the Secondary Gates.
Inputs to the interlocks can also be written to from outside if not driven by any interlock
logic (like OPCMD and SOCMD(n). Parameter LOGICSRC allows you to enter the name
of an external point (if any) that is controlling interlocks and permissives. The entry then
appears on the Detail Display.
Break Before Make Option—When OP is commanded from State 1 to State 2 (for
example, from forward to reverse), or from State 2 to State 1, OP will first go to State 0 (for
example, stop) and remain there for a configured pause time before going to the
commanded state.
Operator
Commanded State Off
(OP) from Operator Off
On On
Commanded State NMODATTR OROPT BYPASS
(OP) from Program Program
Commanded
STATE 2 State STATE 1
STATE 0
Permissive
Interlocks ON ON ON
(P1, P0, & P2 are OFF P2 OFF P0 OFF P1
controlled by
Logic Blocks)
ON OFF
STATE 2 I2
Override
Interlocks
(I2, I1, & I0 are
controlled by ON OFF
Logic Blocks) STATE 1 I1
ON OFF
STATE 0 I0
OFF
Safety ON
Interlock SI0
STATE 0
Output Connections
(Up to 3 Outputs)
PULSEWTH OUTPUT STxOPy
STCHGOPT STATE
STxOPy
SEALOPT GENERATOR
MOMSTATE (OPFINAL) STxOPy
x = 0, 1, 2
y = 1, 2, 3
Figure 11-10 — Interlocks and Permissive 2100
Figure 11-11 shows how the commanded digital output appears on the detail display for a
two state and for a three state output.
The right half of any state box (when filled) indicates the commanded state. The left half of
any state box (when filled) indicates the PV has changed to that state.
Two dashes in a state box means that operator commands for that state are not permitted.
This can be caused because an interlock is active, when a program is controlling the point,
or the permissive for the state is OFF.
START FORWARD
STOP OFF
REVERSE
11406
11406
The Device Control point can have up to two (NOLOPTS) Logic Output connections.
Figure 11-12 illustrates the Logic Output connection strategy. LOSRC is the logic source,
LOENBL is the flag that enables the gate, and LODSTN is the output destination.
LOSRC(n) Out
LODSTN(N)
LOENBL(n) Enable
11407
LODSTN(n), the destination point.parameter to which the output is pushed can be either an
ASCII tag name or the hardware address of a point. The destination parameter can be any
type parameter (a conversion is made internally to write the correct data type to the
destination). If a hardware address is used it must be of the form !BOX, !AOmmSss, or
!DOmmSss, where mm is an Analog output or Digital Output IOP module number and ss is
the slot number within that module.
11.5 ALARMS
CMDDISFL, the command disagree flag indicates that the field device did not go to the
commanded state within the allowed time.
CMDFALFL, the command fail alarm (also called the crack timer) is generated if the PV
doesn’t change within the time specified by the command fail timeout parameter
(CMDFALTM) after the OP is commanded to a new state. This alarm is useful for motor
driven valves with states of OPEN, INBETWEN, and CLOSED. Alarm priority for the
command fail alarm is determined by the Command Disagree Priority (CMDDISPR)
parameter.
The Secondary Variable high and high high alarms indicate the analog input SECVAR has
exceeded the configured limits and BADSVFL indicates the input value is NaN.
UNCMDFL, the uncommanded state alarm indicates that a field device changed state
without being command to do so.
The override interlock alarms and the safety override alarm indicate that an override is
active. Also refer to the Override descriptor description below.
A program can reset the maintenance statistics at any time by setting the point’s reset flag
parameter (RESETFL) to ON. The operator can only reset the statistics when the point is in
REDTAG.
During configuration, you can enter a maximum time allowed. The parameter
MAXTIMnH, n = 0, 1 or 2 sets the maximum time in hours. The maximum number of
transitions allowed into each state since the last reset is configured with parameter
MAXTRANn (where n = 0, 1 or 2). There is no alarming if the values are exceeded, but CL
programs can compare maximum specified values with accumulated values.
The Maintenance Statistics are presented in a plain english format. In addition, the display
contains a REDTAG target.
If you select the REDTAG target and press ENTER, the point’s REDTAG parameter is set
to ON and a RESET target appears. Selecting the RESET target (and pressing ENTER)
resets the points maintenance statistic values. If you select REDTAG, (and press ENTER)
the REDTAG condition clears and the RESET target disappears.
Box, APM
Alarm Enable Status 1.3.2
Alarm Priorities 1.3.1
Alarming 1.3
AO Data Point 2.4
Box Flag Data Point 9.2
Box Numeric Data Point 9.3
Box Timer Data Point 9.4
Common Functions 1.2
Control Functions 1.1.2, Section 3
Control Performance 3.1
Database Considerations 3.2
Determining Processing Capacity 3.1.3
DI Data Point 2.5
Dig Comp Data Point Section 4
DO Data Point 2.6
Flag Data Point 9.2
Global Variables 9.1
Hardware Reference Addressing 3.5
HLAI Data Point 2.2
I/O Functions 1.1.1, Section 2
LLAI Data Point 2.2
LLMUX Data Point 2.2
Logic Slot Section 5
Numeric, Box Data Point 9.3
Peer-to-Peer Communication 3.4
Point Execution State 3.3
Process Module Data Point 6.1
Pulse Input Data Point 2.7
Red Tagging 1.4
RegCtl Data Point Section 8
RegPV Data Point Section 7
RHMUX Data Point 2.2
Scan Frequency 3.1.2
Scan Rate 3.1.2.1
STI Data Point 2.3
Time Variables 9.5
Timer, Box Data Point 9.4
Calculator Algorithm 7.7.9
Arithmetic Functions 7.7.9.1
Assignment Statement 7.7.9.1
Equation 7.7.9.4
Error Handing of Bad-Inputs and Uncertain Values 7.7.9.3
Function 7.7.9.1
Functional Diagram Figure 7-13
Operators 7.7.9.1
Options and Special Features 7.7.9.3
Separator 7.7.9.1
Use 7.7.9.1
CALCULTR 7.7.9
Changing Dead Time (Delay-Time) Parameters (see also
Variable Dead Time with Lead Lag) 7.7.6.3
Characterization (HLAI, LLAI, LLMUX, and RHMUX)
Input (PV) 2.2.1
Linear Conversion 2.2.1.1
Range Checking and Filtering 2.2.2
Source Selection 2.2.3
Square Root 2.2.1.2
Thermal (RTD and Thermocouple) 2.2.1.3
Characterization (STI)
Input (PV) 2.3.2.1
Linear Conversion 2.3.2.2
Range Checking and Filtering 2.3.2.5
Source Selection 2.3.2.6
Square Root 2.3.2.3
Thermal (RTD and Thermocouple) 2.3.2.4
CL/APM Sequence Program 6.1.1
Cold/Warm Restart 3.3.2
Command Disagree Alarm 4.5, 4.14, 11.4.1, 11.5
Communications, Peer-to-Peer 3.4
Connections
Hardware Reference Addressing 3.5
Input Connections
To Digital Composite 4.11
From Digital Input PV 4.11.1
From Logic Slot Output 4.11.2
From Logic Slot Flag 4.11.3
From APM Box PV Flag 4.11.4
To Logic Slot 5.2.1
To Regulatory PV Data Point 7.2
To Regulatory Control Point 8.2
Output Connections
From Digital Composite
Latched 4.7.1
Pulsed 4.7.2
To Logic Slot Flag 4.7.3
To APM Box PV Flag 4.7.4
From Logic Slot 5.2.5
From Regulatory Control Slot 8.9.6
Contact Cutout 1.3.3
Control Algorithms 8.14
Control Functions — see Control Slots
Control Language — See "Process Module Data Point"
Control Slots
Connections — see "Connections"
Determining Processing Capacity 3.1.3
Digital Composite 4.1
Functions 1.1.2
Logic Slot 5.1
Overruns 3.1.3.1
Overview 3.1
Peer-to-Peer Communication 3.4
Point Form 1.2.1
Regulatory Control 8.1
Regulatory PV 7.1
Scan Rates 3.1.2
Types 3.1.1
Data Acquisition Algorithm (DATACQ) PV Algorithm 7.7.1
Function 7.7.1.1
Functional Diagram of Figure 7-2
Equations (forms of) 7.7.1.4
Options and Special Features 7.7.1.3
Use 7.7.1.2
DATACQ 7.7.1
Dead-Time (Delay-Time) Calculation (see also Variable
Dead Time with Lead Lag) 7.7.6.3
DEVICE CONTROL POINT 11, 3.1.1
Input Connections 11.3
Digital Inputs 11.3.1
Logic Inputs 11.3.2
Secondary Variable Input 11.3.3
Local Manual Input 11.3.4
Output Connections 11.4
Digital Outputs 11.4.1
Logic Output Connections 11.4.2
Read-Back Check 10.3.4
Alarms 11.5
Maintenance Statistics 11.6
Device Reservation 3.7
Digital Composite — see Section 4
Alarms 4.14
Command Disagree 4.14.1
Off-Normal 4.14.2
Uncommanded Change 4.14.1
Array Point Flags 4.7.6, 4.11.6
Change-Of-State Events 4.15
Commanded State 4.5
Connections
Input 4.11
Output 4.7
Configuring the Input State 4.12
Device Control Point Flags 4.7.5, 4.11.5
Initialization Manual 4.9
Inputs 4.10
Interlocks 4.4
Latched Output 4.6.1
Local Manual Indication 4.16
Maintenance Statistics 4.17
Reset/Redtag 4.17.1
Mode Attributes 4.3
Momentary States 4.2.2
Interlocks 4.4
Overrides 4.4.2
Permissives 4.4.1
Types, 4.4
I/O Functions — see "Inputs, Field" or "Outputs, Field"
I/O Points — see "Inputs, Field"or "Outputs, Field"
LLMUX Data Point 2.2
Logic Point
Algorithms 5.3
AND Gate 5.3.2
Check for Bad 5.3.17
Compare Equal with Deadband 5.3.11
Compare Greater Than or Equal with Deadband 5.3.14
Compare Greater Than with Deadband 5.3.13
Compare Less Than or Equal with Deadband 5.3.16
Compare Less Than with Deadband 5.3.15
Compare Not Equal with Deadband 5.3.12
Delay 5.3.21
Fixed Size Pulse 5.3.18
Flipflop 5.3.25
NAND Gate 5.3.5
NOR Gate 5.3.6
NOT Gate 5.3.4
Null 5.3.1
Off Delay 5.3.23
On Delay 5.3.22
OR Gate 5.3.3
Pulse with Maximum Time Limit 5.3.19
Pulse with Minimum Time Limit 5.3.20
Qualified OR Gate with 2 Inputs On 5.3.8
Qualified OR Gate with 3 Inputs On 5.3.9
Switch 5.3.10
Watchdog Timer 5.3.24
XOR Gate 5.3.7
Configuring the Logic Point 5.2
Connections
Input 5.2.1
Communication and Configuration Errors 5.2.1.1
Output 5.2.5
Descriptors, Generic 5.2.6
Logic Mix 5.2
Flags 5.2.2
Numerics 5.2.3
Low-Level Multiplexer Data Point 2.2
Manual/Auto Station, SDI Interface 2.9.2
Memory Units (MU) 3.1.3
Message Text, see Status Messages
Middle of Three Selector PV Algorithm (MIDOF3) 7.7.3
Equations (forms of) 7.7.3.4
Error Handling 7.7.3.3
Function 7.7.3.1
SUMMER 7.7.5
Summer Algorithm (SUMMER) PV Algorithm 7.7.5
Ensuring Adequate PV Range 7.7.5.3
Equations 7.7.5.4
Error Handling 7.7.5.3
Function 7.7.5.1
Functional Diagram Figure 7-6
Options and Special Features 7.7.5.3
Restart or Point Activation 7.7.5.3
Use7.7.5.2
Switch (SWITCH) Control Algorithm 8.14.10
Control Input Connections 8.14.10.3.1
Engineering Unit Ranges 8.14.10.3.2
Equations 8.14.10.4
Error Handling 8.14.10.3.9
Examples Figure 8-29
Function 8.14.10.1
Functional Diagram Figure 8-28
Initialization 8.14.10.5
Modes, Operational 8.14.10.3.6
Options and Special Features 8.14.10.3
Override Feedback Processing 8.14.10.6
Parameters 8.14.10.7
Positions of Switch
Control of by Operator (Equation A) 8.14.10.3.3
Control of with Equation B 8.14.10.3.4
Remote Cascade Options 8.14.10.3.7
Restart or Point Activation 8.14.10.3.8
Tracking Option 8.14.10.3.5
Use 8.14.10.2
Time-Constant Recommendations (see also
Variable Dead Time with Lead Lag) 7.7.6.3
Timer, Box 9.4
Times, Box 9.5
Toledo Weigh Scale Interface 2.9.3
Totalizer Algorithm (TOTALIZR) 7.7.7
Accumulated Value before Reset 7.7.7.3
Bad-Input and Warm-Restart Options 7.7.7.3
Command Flags 7.7.7.3
Commands, States and Command Flags 7.7.7.3
Diagram of Use Figure 7-9
Equations 7.7.7.4
Error Handling 7.7.7.3
Function 7.7.7.1
Near-Zero Cutoff 7.7.7.3
Restart or Point Activation 7.7.7.3
Special Features 7.7.7.3
Target-Value Flags 7.7.7.3
Time Base and Engineering Units Scaling 7.7.7.3
Typical Operation 7.7.7.3
Use 7.7.7.2
TOTALIZR 7.7.7
USERID 3.7
Variable Dead Time with Lead-Lag Compensation Algorithm
(VDTLDLG) 7.7.6
Changing Dead-Time (Delay-Time) Parameters 7.7.6.3
Dead Time (Delay-Time) Calculation 7.7.6.3
Equations (forms of) 7.7.6.4
Error Handling 7.7.6.3
Four Combinations of Delay and Lead-Lag
Compensation 7.7.6.3
Function 7.7.6.1
Functional Diagram Figure 7-7
Options and Special Features 7.7.6.3
Restrictions on Delay Time 7.7.6.3
Time Constant Recommendations 7.7.6.3
Use 7.7.6.2
Variable-Delay Time Example 7.7.6.3
VDTLDLG 7.7.6
Warm Cold Restart 3.3.2
Windup 8.14.1.3.8
Reader Comments
Comments:
Recommendations:
FROM:
Name: Date:
Title:
Company:
Address:
City: State: ZIP:
Telephone: FAX: