Академический Документы
Профессиональный Документы
Культура Документы
OW351_R1100
Since the equipment explained in this document has a variety of uses, the user and those
responsible for applying this equipment must satisfy themselves as to the acceptability of each
application and use of the equipment. Under no circumstances will Emerson Process
Management be responsible or liable for any damage, including indirect or consequential losses
resulting from the use, misuse, or application of this equipment.
The text, illustrations, charts, and examples included in this manual are intended solely to explain
the use and application of the OvationTM Unit. Due to the many variables associated with specific
uses or applications, Emerson Process Management cannot assume responsibility or liability for
actual use based upon the data provided in this manual.
No patent liability is assumed by Emerson Process Management with respect to the use of
circuits, information, equipment, or software described in this manual.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any
form or by any means, including electronic, mechanical, photocopying, recording or otherwise
without the prior express written permission of Emerson Process Management.
The document is the property of and contains Proprietary Information owned by Emerson Process
Management and/or its subcontractors and suppliers. It is transmitted in confidence and trust, and
the user agrees to treat this document in strict accordance with the terms and conditions of the
agreement under which it was provided.
This manual is printed in the USA and is subject to change without notice.
Ovation is the mark of Emerson Process Management. Other marks are the property of their
respective holders.
Copyright © Emerson Process Management Power & Water Solutions, Inc. All rights reserved.
Emerson Process Management
Power & Water Solutions
200 Beta Drive
Pittsburgh, PA 15238
USA
Ovation Algorithms Reference Manual (for use with Ovation 3.5.1 systems)
OW351_R1100
Version 5
January 2018
This version of Ovation Algorithms Reference Manual contains the following new information:
Updated the information regarding the parameters of the PID algorithm (see page 372).
Made miscellaneous corrections and clarifications.
Contents
3 Understanding tracking 9
3.1 What is tracking? ........................................................................................................ 9
3.2 What is the purpose of tracking? ................................................................................ 10
3.3 What is the tracking process? .................................................................................... 11
3.4 What are the best practices for using tracking? ........................................................... 11
3.5 What algorithms support tracking? ............................................................................. 12
3.6 Tracking examples .................................................................................................... 14
3.7 Setting tracking signals for algorithms ........................................................................ 15
4 Algorithm classifications 19
4.1 What are algorit hm classification groups? ................................................................... 20
4.2 Alarm Manipulation algorithms ................................................................................... 21
4.3 Artificial I/O algorithms (signal generators) .................................................................. 21
4.4 Boolean Logic algorithms .......................................................................................... 22
4.5 Boolean Logic Memory algorithms ............................................................................. 22
4.6 Custom Calculation algorithms .................................................................................. 23
4.7 Device Control algorithms ......................................................................................... 23
4.8 Fieldbus algorithms ................................................................................................... 24
4.9 Filtering algorithms ................................................................................................... 25
4.10 Hardware Interface algorithms ................................................................................... 26
4.11 Link Controller Module Interface algorit hms ................................................................ 27
4.12 Loop Interface Module algorithms .............................................................................. 28
4.13 Mathematical and Statistical algorit hms ...................................................................... 29
4.14 Modulating Cont rol algorithms ................................................................................... 30
OW351_R1100 i
Table of Contents
ii OW351_R1100
Table of Contents
OW351_R1100 iii
Table of Contents
iv OW351_R1100
Table of Contents
OW351_R1100 v
Table of Contents
vi OW351_R1100
Table of Contents
Index 897
OW351_R1100 vii
SECTION 1
IN THIS SECTION
Algorithms are mathematical formulas that define a specific control strategy. An algorithm may be
thought of as a collection of system points that are controlled by the algorithm. The algorithm
reads values (inputs) and writes values (outputs) into points to accomplish certain des ired actions
in the system. (Refer, Ovation Record Types Reference Manual for information about point record
types.)
The Ovation Control Builder places these algorithms on control sheets to tell the Ovation control
system what algorithms to use, what points to associate with the algorithms, and in what order the
algorithms should execute. The Control Builder combines multiple algorithms and even multiple
control sheets to create an entire control strategy for a system process.
The Ovation algorithms are typically provided with the Ovation Controller, and are used to
implement a wide range of functionality for a Controller. Each algorithm is repres ented in the
Control Builder by a unique symbol.
For information on adding algorithms to sheets in the Control Builder, refer to Ovation Control
Builder User Guide.
Q-line, Fieldbus, SIS, and migrated special function algorithms are described in Ovation Q-line
and Specialty Algorithms Reference Manual.
OW351_R1100 1
SECTION 2
IN THIS SECTION
Some algorithms (for example, an MASTATION algorithm) require the hardware address of the
associated I/O module in order to perform their functions. You must enter the hardware address
for the algorithm into the hardware address field.
For a point that is read from or written to an I/O card, the hardware address parameter indicates
the offset from where the pertinent I/O register resides.
Addressing that is initialized in the algorithm is either for Ovation cards or Q-line cards.
For Ovation, the address is determined by the module position in the I/O cabinet.
For Q-line, the hardware address is equal to the address directly jumpered on the card plus
the offset into the proper channel number (no doubling required).
OW351_R1100 3
2.2 What is propagated point quality?
Many algorithms generate a quality setting for the output. In most cases, the quality of the output
equals the quality of the input. This is commonly called propagated quality. However, this simple
propagation is not true for all algorithms.
In general, the worst quality of the algorithm's input points is passed on to the output point for
each standard algorithm. For example, an input sensor failure causes BAD quality to propagate
through all standard algorithms that directly or indirectly use the input point. This BAD quality may
be used to reject certain algorithms to Manual mode. (Refer to the individual algorithm reference
pages for complete information.)
Process points may have one of the following quality values, assigned by the user or the system:
GOOD = Point is functioning properly.
FAIR = Typically an entered value.
POOR = Generated from certain algorithms if some inputs were BAD and some were GOOD.
BAD = Point is not functioning properly, typically caused by sensor failure.
S I G N AL AC TI O N
Auto Mode MASTATION sets the output Auto Mode signal TRUE when the algorithm is in
Auto mode.
High Limit Reached All algorithms set the High Limit Reached output signal TRUE when the output
is at the high lim it specified and the High Limit Reached output signal is not
scan removed.
Local Manual Mode MASTATION sets the Local Manual Mode output signal TRUE when the
algorithm is in Local Manual mode.
Low Limit Reached All algorithms set the Low Limit Reached output signal TRUE when the output
is at the low limit specified and the Low Limit Reached output signal is not
scan removed.
Manual Mode MASTATION sets the output Manual mode signal TRUE when the algorithm is
in Manual mode.
4 OW351_R1100
2.4 What is invalid number checking and quality checking for algorithms?
Most algorithms perform invalid number checking on analog input points. These points include
tracking inputs. If an invalid number is detected, the drop goes into alarm and the problem is
identified by Fault Code 66, Fault ID 3.
For algorithms, Fault Parameter 3 contains the number of the algorithm sheet detecting an invalid
number. These numbers are reported as hexadecimal values. The Ovation System Viewer
application provides access to fault code information and suggests possible user actions to
correct the fault.
When an invalid number is input to an algorithm, generally the output of the algorithm is also
invalid and is marked with BAD quality. In the following algorithm reference sheets, each
algorithm that performs invalid number checking discusses how the invalid number is treated and
the results that occur from the invalid number.
There are three types of invalid numbers: indefinite, NAN, and denormal.
An indefinite invalid number is generated from a mathematical operation for which there is no
reasonable result.
A NAN (not-a-number) invalid number is an unrecognizable real number format and should
never occur.
A denormal invalid number is generated when the result of a mathematical operation is too
small to be represented in the 32-bit real number format used in the system. If an analog input
is a denormal invalid number, the drop is placed into alarm identified by Fault Code 66, Fault
ID 3.
However, certain algorithms store the denormal value into a temporary variable, convert it to zero,
and use that value (0) in the algorithm calculation. Consequently, these algorithms calculate a
valid output value with GOOD quality and the drop goes into alarm.
If the output of the algorithm is a denormal invalid number, then the value of the output is set to
zero and the drop is not placed into alarm. These denormal invalid numbers are displayed
throughout the system as zero.
If an invalid number is generated, the cause of the problem generate should be immediately
investigated and corrected since it could cause a control problem in the system.
In addition to invalid number checking, many algorithms generate a quality set ting on the output.
OW351_R1100 5
2.5 What are single precision floating point numbers?
Single precision floating point numbers are represented within 32 binary bits. One-bit is the sign of
the characteristic, 23-bits show the binary value of the characteristic, one-bit for the sign of the
mantissa, and 7-bits for the value of the binary mantissa.
The Ovation system is limited to single precision floating point numbers, which can affect
algorithm precision. In certain cases, this may prevent an algorithm from writing a value beyond a
certain number if a single precision floating point limitation is reached. Although the internal
algorithm calculation can handle double precision floating point numbers, Ovation points are
limited to single precision values. More information is available by researching the IEEE754
floating point standard.
The second status word in an analog or digital process point may contain error information
generated by an algorithm that processed the value of that point.
For analog and digital points, the 2W record field contains the second status word.
If a bit is TRUE, then the error indicated by that bit has been detected.
If a bit is FALSE, then the error has not been detected.
The following binary to hexadecimal conversion table is included to assist you in using algorithms
that require binary to hexadecimal conversion.
B I N AR Y TO HE X AD E C I M AL C O N V E R S I O N T AB L E
B I N AR Y H E X AD E C I M AL DE C I MAL
0000 0 0
0001 1 1
0010 2 2
0011 3 3
0100 4 4
0101 5 5
0110 6 6
0111 7 7
1000 8 8
1001 9 9
1010 A 10
1011 B 11
1100 C 12
6 OW351_R1100
2.7 Binary to hexadecimal conversion for algorithms
B I N AR Y TO HE X AD E C I M AL C O N V E R S I O N T AB L E
B I N AR Y H E X AD E C I M AL DE C I MAL
1101 D 13
1110 E 14
1111 F 15
For example, in DIGDRUM, the following binary number represents the states of the 16 outputs in
a given step. The right-most bit represents Output 001, and the left-most bit represents Output
016. For example, if you want Step 5 to have the outputs in these states, I05 would be initialized
to 0x53C6.
Hexadecimal: 5 3 C 6 0x53C6
OW351_R1100 7
SECTION 3
3 Understanding tracking
IN THIS SECTION
The tracking function is a sophisticated control feature that is implemented through the signals
that connect the algorithms. Tracking may be defined as aligning a portion of a control system
that is not in control to the portion of the control system that is in control.
To implement tracking in the Ovation system, tracking signals are sent between algorithms.
These signals tell the upstream algorithm whether or not to be in the tracking mode and what
value is required by the downstream algorithm to achieve the present output.
Typically, multiple control strategies (or “modes”) are defined to control a process. For example,
both manual and automatic control modes may be available. Multiple types of automatic control
may be available, such as flow control, level control, element control, and cascade control modes.
During the transition from one control mode to another, tracking is needed.
When transferring between control strategies (for instance, from manual to automatic control
modes), information is required by the newly selected control strategy to ensure a smooth
transition. These required values are obtained from the active control strategy and are provided to
the other available strategies. This exchange of information between control strategies is referred
to as tracking.
OW351_R1100 9
3.2 What is the purpose of tracking?
Tracking signals are automatically generated by the Control Builder. The Control Builder assigns
points to carry the tracking mode and value information. The insertion of tracking logic is
transparent to the user (requires no user input to implement). You have the option of turning
tracking off.
10 OW351_R1100
3.3 What is the tracking process?
Tracking works by reverse calculation of the normal control functions. Control may be thought of
as proceeding from “top to bottom,” with inputs on the top, computations in the middle, and
outputs on the bottom. On the other hand, tracking may be thought of as proceeding from “bottom
to top,” with the output values on the bottom being used to calculate values for the computational
elements in the middle. Effectively, tracking calculates a value for an upstream control function,
so that the upstream objectives are satisfied.
One output point that is used for tracking is created for each algorithm that has an IN1 input. The
output is listed in the algorithm definitions as TOUT. TOUT contains the track output value, mode
and status output signals for the cascade IN1 variable.
Some algorithms have two to four additional tracking outputs for the Input 2, Input 3, and Input 4
as well. These are TRK2, TRK3, and TRK4.
The tracking output is input by the upstream algorithm as TRIN (Tracking Input Point) according
to the tracking rules outlined in the following sections. TRIN contains the tracking analog input
value and the tracking and limiting mode input signals.
Tracking values are generated by a reverse calculation of the normal algorithm function. That is,
when the algorithm is actively controlling the process, it uses one or more inputs to calculate an
output. When in the tracking mode, the algorithm is provided with the output value, and must
calculate the input value required to obtain that output. This value is sent to the upstream
algorithm that is generating the algorithm’s input. When there is more than one input, the value is
sent to the IN1 input.
Not all algorithms initiate tracking. All algorithms do not process the signals the same way. Refer
to the individual algorithm descriptions to determine how the signals are processed for a particular
algorithm.
OW351_R1100 11
3.5 What algorithms support tracking?
The algorithms in the following table support tracking through dual-purpose analog inputs and
outputs (that is, track value in AV field, mode status bits in 3W field). See Ovation Record Types
Reference Manual for information on record fields and status bits.
Note: The following algorithms are described in the Ovation Q-Line and Specialty Algorithms
Reference Manual: FFAI, FFAO, FFDI, FFDO, FFMAI, FFPID, QSRM, XMA2, and XML2.
ANALOG x x
DEVICE
BALANCER x x TRK01-
TRK16
DIVIDE x x x
FIELD x
FFAI x
12 OW351_R1100
3.5 What algorithms support tracking?
FFAO x
FFDI x
FFDO x
FFMAI x
FFPID x1 x
FUNCTION x x x
GAINBIAS x x x
GASFLOW x x
HISELECT x x x x x x
LEADLAG x x x
LOSELECT x x x x x x
MASTATION x x x
MULTIPLY x x x
PID x x1 x x
PIDFF x x1 x x
QSRMA x x x
RATELIMIT x x
SETPOINT x2 x
SETSTATES x
SQUARE- x x x
ROOT
SUM x x x
TRANSFER 3 x4 x x x
XMA2 x x x
XML2 x2 x
X3STEP x x
2 Information Only
OW351_R1100 13
3.6 Tracking examples
One of the most common uses of tracking is during the transition between manual mode and auto
mode. In this case, the control algorithm upstream of the MASTATION algorithm must be tracked
to the current output of the MASTATION algorithm. The input to the MASTATION station is the
same as the output from the MASTATION station at the moment of the mode change, and
bumping is prevented.
Another common use of tracking is for one input into a SUM algorithm. A two-input SUM algorithm
normally adds two inputs, A and B, to produce an output, C. That is, A + B = C. When the
algorithm is in tracking mode, C is dictated by downstream tracking requirements and one of the
inputs, which may be continually varying as process conditions change. Therefore, a value for the
other input must be calculated by the algorithm such that the sum of the inputs is equal to the
required output. Simple algebraic manipulation of the SUM equation reveals that the dependent
input must be tracked to the difference between required C and independent B. That is, A = C - B.
Still another common tracking use involves one of the inputs to a PID algorithm’s error calculation.
As in the SUM example, the output of the PID is dictated by downstream tracking requirements
and the process variable acts as an independent variable. However, because integral action is
involved in this control algorithm, the concept for tracking changes. Here, the appropriate
technique is to cause a zero error to be presented to the PID during tracking periods to provide no
error-related movement of the PID output when tracking is initially released.
Therefore, the dependent input to the PID error function, the set point, should be tracked to the
value of the process variable input so that a zero-error condition is produced. Also, the PID output
must be tracked when the associated portion of the sys tem is not in control so that integral action
does not cause process upsets by following set point errors. As described previously, this
condition is called reset windup.
Typically, an MASTATION algorithm is placed below the PID algorithm on a control sheet.
In summary, there might be a change in your plant's process values (for example, the
temperature rose in a feedwater system). The applicable process control sheet contains the logic
that defines the desired value for the process. The algorithm PID looks at the difference between
the actual process value and the desired process value and reacts based on this difference. It
performs the necessary action (for example, add cold water to lower the water temperature) to
bring the process back to the desired value.
The concept of reset windup applies to normal control modes as well as to tracking modes. It is
undesirable to allow the integral action in a control algorithm to move any further in a direction
that tends to drive a control element past its limits of travel. Once the integrator winds past where
it should be, it takes time to wind back to the control region when the time comes. Control delays
result and process upsets may occur. The solution is to compute an integrator output that keeps
the downstream demand to the control element at the limit until it becomes time to drive the
control element into the control range. This approach is called anti-reset windup limiting.
14 OW351_R1100
3.7 Setting tracking signals for algorithms
The Ovation tracking functions performs the anti-reset windup limiting function if the following two
conditions are met:
The sheets must be configured using the Ovation sheet tracking rules.
The Scale Top and Scale Bottom parameters of the algorithms must be set to reflect the
actual control element ranges, usable controller ranges, and so forth.
The fact that an algorithm is at its top or bottom of scale is used to produce signals that inhibit the
upstream algorithm from moving too far in the wrong direction. If algorithms are properly
configured, reset windup is prevented. Reset windup is technically more of a concern in control
mode than in tracking mode.
The digital tracking signals are set and used as described in t he following table.
S I G N AL AC TI O N O F TH E AL G O R I TH M I MP L E ME N T A TI O N B Y TH E
I N I TI ATI N G TH E T R AC K I N G AL G O R I TH M BE I N G T O L D TO
T R AC K
Track PID and PIDFF set the Track output signal The output value is set equal to the
TRUE. Track input value. An internal track
buffer is set up to provide a
TRANSFER sets the Track output signal bumpless transfer when the Track
TRUE for the value that is not selected. input signal is removed.
MASTATION set the Track output signal
TRUE for one loop after it reads the
hardware value on the first pass.
MASTATION sets the Track output signal
TRUE when the algorithm is not in Auto
mode.
All algorithms set the Track output signal
TRUE when the Track input signal is
TRUE.
OW351_R1100 15
3.7 Setting tracking signals for algorithms
S I G N AL AC TI O N O F TH E AL G O R I TH M I MP L E ME N T A TI O N B Y TH E
I N I TI ATI N G TH E T R AC K I N G AL G O R I TH M BE I N G T O L D TO
T R AC K
Track-if-Lower HISELECT sets the Track-if-Lower output If the output value of the PID or
signal TRUE for the value that is not PIDFF is less than the Track input
selected only when there are no Track, value, then a negative error causes
Track-if_Higher, or Track-if-Lower input the Controller to take action from the
signals and the gain on the input value is previous output value, and a positive
positive. error causes the Controller to take
action from the Track input value.
LOSELECT sets the Track-if-Lower output
signal TRUE for the value that is not
selected only when there are not Track,
Track-if-Higher, or Track-if-Lower input
signals and the gain on the input value is
negative.
All algorithms set the Tack-if-Lower output
signal TRUE when there is no Track input
signal and either:
The Track-if-Lower signal is TRUE and
the gain on the input value is positive, or
The Track-if-Higher input signal is TRUE
and the gain on the input value is
negative.
Track-if-Higher LOSELECT sets the Track-if-Higher output If the output value of PID or PIDFF
signal TRUE for the value that is not is greater than the Track input value,
selected only when there are no Track, then a positive error causes the
Track-if-Higher, or Track-if-Lower input Controller to take action from the
signals and the gain on the input value is previous output value, and a
positive. negative error causes the Controller
to take action from the Track input
HISELECT sets the Track-if-Higher output value.
signal TRUE for the value that is not
selected only when there are no Track,
Track-if-Higher, or Track-if-Lower input
signals and the gain on the input value is
negative.
All algorithms set the Track-if-Higher output
signal TRUE when there is no Track input
signal and :
The Track-if-Higher input signal is TRUE
and the gain on the input value is
positive, or
The Track-if-Lower input signal is TRUE
and the gain on the input value is
negative.
16 OW351_R1100
3.7 Setting tracking signals for algorithms
S I G N AL AC TI O N O F TH E AL G O R I TH M I MP L E ME N T A TI O N B Y TH E
I N I TI ATI N G TH E T R AC K I N G AL G O R I TH M BE I N G T O L D TO
T R AC K
Lower Inhibit PID and PIDFF set the Lower Inhibit output The output is prevented from
signal TRUE when the algorithm is in decreasing its value, but it is
Cascade mode, no Track input signal permitted to increase.
exists, and:
The Track-if-Lower input signal is TRUE
and either the gain on the setpoint is
positive with INDIRECT action on the
error or the gain on the setpoint is
negative with DIRECT action on the error,
or
The Track-if-Higher input signal is TRUE
and either the gain on the setpoint is
negative with INDIRECT action on the
error, or the gain on the setpoint is
positive with DIRECT action on the error.
All algorithms set the Lower Inhibit output
signal TRUE when there is no Track input
signal and:
The output value is at the low limit
specified and the gain on the output value
is positive, or
The output value is at the high limit
specified and the gain on the input value
is negative, or
The Lower Inhibit input signal is TRUE
and the gain on the input value is
positive, or
The Raise Inhibit input signal is TRUE
and the gain on the input value is
negative.
OW351_R1100 17
3.7 Setting tracking signals for algorithms
S I G N AL AC TI O N O F TH E AL G O R I TH M I MP L E ME N T A TI O N B Y TH E
I N I TI ATI N G TH E T R AC K I N G AL G O R I TH M BE I N G T O L D TO
T R AC K
Raise Inhibit PID and PIDFF set the Raise Inhibit output The output is prevented from
signal TRUE when the algorithm is in increasing its value, but it is
Cascade mode, no Track input signal permitted to decrease.
exists, and:
The Track-if-Higher input signal is TRUE
and either the gain on the setpoint is
positive with INDIRECT action on the
error, or the gain on the setpoint is
negative with DIRECT action on the error,
or
The Track-if-Lower input signal is TRUE
and either the gain on the setpoint is
negative with INDIRECT action on the
error, or the gain on the setpoint is
positive with DIRECT action on the error.
All algorithms set the Raise Inhibit output
signal TRUE when there is no Track input
signal, and:
The output value is at the high limit
specified and the gain on the input value
is positive, or
The output value is at the low limit
specified and the gain on the input value
is negative, or
The Raise Inhibit input signal is TRUE
and the gain on the input value is
positive, or
The Lower Inhibit input signal is TRUE
and the gain on the input value is
negative.
18 OW351_R1100
SECTION 4
4 Algorithm classifications
IN THIS SECTION
OW351_R1100 19
4.1 What are algorithm classification groups?
Algorithms can be classified according to their function. Many algorithms can be placed in more
than one category because they can have multiple applications.
All of the standard Ovation algorithms can be found in at least one of the following algorithm
classification groups:
Note: Reference pages for standard Ovation algorithms are found in the Ovation Algorithms
Reference Manual. Reference pages for Q-Line, Fieldbus, SIS, and migrated algorithms are
found in Ovation Q-line and Specialty Algorithms Reference Manual.
20 OW351_R1100
4.2 Alarm Manipulation algorithms
Description
Alarm manipulation algorithms provide a means of interfacing alarm information into the control
scheme.
Common uses
Description
Artificial I/O algorithms generate a value and serve as place holders to input values into the
system.
Common uses
OW351_R1100 21
4.4 Boolean Logic algorithms
Description
Boolean logic algorithms represent logical gates for binary logic (1 or 0).
AND - All inputs must be true to get true output. Implement as normally open contacts in a
series.
OR - One or more inputs must be true to get true output. Implement as normally open
contacts in parallel.
NOT - Inverts the input. Implement with normally closed contacts.
XOR - Inputs must be different from each other to get true output. For example, out = (A AND
(NOT B)) OR ((NOT A) AND B).
Common uses
Description
Boolean logic memory algorithms remember the state of the input change.
Common uses
22 OW351_R1100
4.6 Custom Calculation algorithms
Description
Custom calculation algorithms support complex mathematical equations within a single algorithm.
These algorithms can be used to simplify mathematical processes instead of using separate
mathematical function algorithms.
Common uses
Description
Device control algorithms are predefined control schemes used to quickly implement start/stop,
open/close logic.
Common uses
OW351_R1100 23
4.8 Fieldbus algorithms
DIGITAL DEVICE (see page 174) - Provides logic to control the following seven types of
devices:
MOTOR (see page 180) - Simple controlled motor.
MOTOR NC (see page 178) - Non-controlled motor.
MOTOR 2-SPD (see page 183) - Two-speed or bi-directional controlled motor.
MOTOR 4-SPD (see page 186) - Two-speed and bi-directional controlled motor.
SAMPLER (see page 175) - Controlled sampler (calculates running time).
VALVE (see page 192) - Controlled valve.
VALVE NC (see page 177) - Non-controlled valve.
ELCCONTROL - Allows control logic to select which ELC module, of a redundant pair, is in
control.
Description
Fieldbus algorithms interface to Fieldbus function blocks. Function blocks are self-contained
software modules that reside in Fieldbus devices. Therefore, Fieldbus devices can be controlled
by Ovation Fieldbus algorithms and integrated as part of an Ovation control scheme.
Note: Information on Fieldbus algorithms can be found in Ovation Q-Line and Specialty
Algorithm Reference Manual.
Common uses
24 OW351_R1100
4.9 Filtering algorithms
Description
Filtering algorithms stabilize I/O readings. In most cases, they are used to filter out noise or
compensate for a true delay.
Common uses
OW351_R1100 25
4.10 Hardware Interface algorithms
Description
Hardware interface algorithms read and/or write data to/from I/O modules or field devic es.
Common uses
Also see Link Controller module interface algorithms (see page 27).
26 OW351_R1100
4.11 Link Controller Module Interface algorithms
Description
Link Controller module interface algorithms manipulate inputs, outputs, and statuses to the
Ovation Link Controller module providing serial communications via standard protocols to external
devices (such as Modbus, Allen-Bradley, etc.).
Common uses
OW351_R1100 27
4.12 Loop Interface Module algorithms
Description
Loop interface module algorithms enable the interface to the local loop controllers or electric
drives. For more information, see Ovation I/O Reference Manual.
Common uses
Note: Refer to Ovation Q-Line and Specialty Algorithms Reference Manual for information on
the XMA2 and XML2 algorithms.
28 OW351_R1100
4.13 Mathematical and Statistical algorithms
Description
Mathematical and statistical algorithms perform calculations using standard math formulas and
properties.
Common uses
OW351_R1100 29
4.14 Modulating Control algorithms
Description
Modulating control algorithms implement modulating control strategies, such as level control,
feedwater control, flow/temperature controls, and so forth.
Common uses
Implement modulating control scheme with balancing functions, selection functions, override
functions, proportional, integral and derivative functions, and operator interface functions.
30 OW351_R1100
4.15 Monitor Function algorithms
Description
Monitor function algorithms monitor point status with certain criteria such as limits, quality, and
transitions. These algorithms create discrete logic that can be used for program flow control.
Common uses
OW351_R1100 31
4.16 Operator Interface algorithms
Description
Operator interface algorithms are control function algorithms that provide a means for the
operator to interact with the control system.
Common uses
Note: Refer to Ovation Q-Line and Specialty Algorithms Reference Manual for information on
the XMA2 and XML2 algorithms.
32 OW351_R1100
4.17 Point Format Conversion algorithms
Description
Point format conversion algorithms provide the means to translate point values from one data
structure to another.
Common uses
OW351_R1100 33
4.18 Pulse Accumulator Module Interface algorithms
Description
Pulse accumulator module interface algorithms read and reset accumulator pulses in the Ovation
Pulse Accumulator card.
Common uses
Note: Refer to Ovation Q-Line and Specialty Algorithms Reference Manual for information on
the QPACMD, QPACMPAR, and QPASTAT algorithms.
34 OW351_R1100
4.19 Q-Line Interface algorithms
Description
Q-Line interface algorithms are used specifically with Q-Line I/O hardware in an Ovation system.
These algorithms are the only Q-Line algorithms supported in Ovation.
Note: Information on Q-Line algorithms can be found in Ovation Q-Line and Specialty Algorithm
Reference Manual.
Common uses
OW351_R1100 35
4.20 Redundant Signal Processing algorithms
Description
Redundant signal process algorithms select which signal or which statistic (median, average,
maximum, minimum, and so forth) to use for control in a redundant configuration.
Common uses
36 OW351_R1100
4.21 Sequential Logic algorithms
Description
Sequential logic algorithms help you control processes that are sequential in nature and follow a
predetermined set of steps.
Common uses
OW351_R1100 37
4.22 Signal Compensation algorithms
Description
Signal compensation algorithms adjust the input signal based on density, volume, enthalpy, and
so forth in order to provide a true indication of the process value.
Common uses
38 OW351_R1100
4.23 System Diagnostic algorithms
Description
System diagnostic algorithms directly interface and set system statuses in order to assist in
troubleshooting and monitoring Ovation points.
Common uses
Provide a mechanism to monitor system status and initiate actions in the control system.
For more information, refer to the Ovation Standard Algorithms Reference Manual.
Description
System time function algorithms read the UTC system clock and allow you to perform functions
based on time.
Common uses
OW351_R1100 39
4.25 Time/Counter Function algorithms
Description
Timer/Counter function algorithms execute actions based on user-specified time input. These
algorithms manipulate an output based on time.
Common uses
Implement timing functions in the control scheme (such as delays and pulses).
Monitor loop count to determine functions such as equipment running time.
40 OW351_R1100
4.26 Tracking algorithms
Description
The tracking algorithms support tracking. Tracking may be defined as aligning a portion of a
control system that is not in control to the portion of the control system that is in control. Tracking
is used to prevent bumps and to reduce process upsets. Tracking algorithms support tracking
through dual-purpose inputs and outputs (that is, the track value in the AV field).
Common uses
OW351_R1100 41
4.27 Turbine Interface algorithms
Note: Refer to Ovation Q-Line and Specialty Algorithms Reference Manual for information on
the Foundation Fieldbus, QSRMA, XMA2, and XML2 algorithms.
Description
Turbine interface algorithms allow communication to the Ovation I/O interfaces and to hydraulic
servos dedicated to position control of process control valves.
Common uses
Note: Refer to Ovation Q-Line and Specialty Algorithms Reference Manual for information on
the QVP and QSRMA algorithms.
42 OW351_R1100
SECTION 5
..
IN THIS SECTION
OW351_R1100 43
4.27 Turbine Interface algorithms
44 OW351_R1100
4.27 Turbine Interface algorithms
OW351_R1100 45
5.1 Understanding algorithm descriptions
Most of the algorithm reference pages contain the following information (where applicable):
Description - Describes the algorithm's operation.
Invalid Real Numbers and Quality - Describes how quality is set.
Functional Symbol - Illustrates (in pictorial form) the algorithm's operation. See Algorithm
functional symbols (see page 47).
Control Builder Symbols -- Shows how the algorithm will appear in the Control Builder and
Signal Diagram programs.
Algorithm Record Type (if required) - Defines the type and size of the record generated for
storing parameters and other information necessary to the algorithm. (See Ovation Record
Types Reference Manual.)
Algorithm Definitions - Provides the following information on the algorithm:
Names of the parameters used.
Algorithm record field used by each tuning constant or data initialization parameter; also,
the type of entry required in this field (integer, byte, or real).
Parameter types such as those described below:
Variable = Input or output signal to the algorithm (that is, analog or digital).
Tuning Constant = Fixed parameter that remains constant unless it is changed by the
user at the Operator's Station or Control Builder.
Data Initialization Parameter = Fixed constant that cannot be changed by the user at
the Operator's Station but can be changed by the Control Builder.
Selectable = Can be either a Tuning constant in an algorithm record field or a point
record.
Reconcilable Constant = Parameter can be tuned and reconciled through a special,
project-specific diagram.
Algorithm Initialization = Internal parameter that is exposed by the algorithm.
Definition of whether the parameter is required or optional.
If the parameter is optional and not initialized by the user, it defaults to zero.
If there are input points to the algorithm that are optional and not initialized by the user,
they have a value of zero for analog points and FALSE for digital inputs.
Default value (if applicable).
Brief description of the parameter.
Minimum point record required by each variable.
Each algorithm defines the minimum size point record that can be used for each
algorithm input or output.
The quality (see page 4) of the points is set BAD when a detectable hardware failure is
encountered. This information can be used in control strategies or for alarming purposes
by detecting BAD quality using the QUALITYMON series of algorithms.
Function - Explains the algorithm's operation in terms of a mathematical equation.
Application Example - Provides an example to demonstrate the use of the algorithm.
Miscellaneous Sections - Applicable to a specific algorithm only.
46 OW351_R1100
5.1 Understanding algorithm descriptions
The following table lists the items used in the algorithm functional symbols:
FU N C TI O N AL D E S C R I P TI O N
S YMB O L
Required Analog (LA record type) input or output (solid line and solid
arrowhead).
Required Digital or Packed Digital (LD or LP record type) input or output (solid
line and hollow arrowhead).
Required Algorithm (LC record type) input or output (solid line and line
arrowhead).
Required Drop (DU) input or output (solid line and no arrowhead).
Optional or Selectable Analog (LA record type) input or output (dashed line and
solid arrowhead).
Optional or Selectable Digital or Packed Digital (LD, LP record type) input or
output (dashed line and hollow arrowhead).
Optional or Selectable Algorithm (LC record type) input or output (dashed line
and line arrowhead.
Optional or Selectable Drop (DU record type) input or output (dashed line and no
arrowhead)
Note: Symbols portrayed in this manual only serve as an example and can be configured
differently depending on the number and type of pins that are used. The Control Builder
application may show various symbol configurations of the same algorithm and may not directly
match what is shown in this document.
OW351_R1100 47
5.2 AAFLIPFLOP
5.2 AAFLIPFLOP
Description
The AAFLIPFLOP algorithm simulates a memory device whose output state is inverted by each
momentary TRUE signal on SRST (that is, the output state OUT is inverted when there is a
transition in the input SRST from a FALSE to a TRUE signal). OUT is set to FALSE anytime the
reset digital input signal RSET is TRUE.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
48 OW351_R1100
5.2 AAFLIPFLOP
Function
0 0 0 S
0 0 1 T
0 1 0 S
0 1 1 S
1 X X 0
where:
X = Value can be 0 or 1.
S = Output remains in the same or previous state.
T = Output toggles from the previous state.
OLD SRST = Value of the SRST input on the previous loop executed by the functional
processor.
On the first pass, OUT is set to FALSE if RSET is TRUE. Otherwise, OUT is set as follows:
If the optional INIT input is initialized by the user, OUT is set to the value of INIT.
If INIT is not initialized or has BAD quality on the first pass, OUT remains in the same
state. OUT is set to FALSE on power up/reset unless it is initialized to TRUE by the user
in the program.
OW351_R1100 49
5.3 ABSVALUE
5.3 ABSVALUE
Description
The output for the ABSVALUE algorithm is the absolute value of input IN1.
The value of IN1 is checked for invalid real numbers. If IN1 is valid, the quality of IN1 is
propagated to the quality of OUT and the real number value of OUT is written to the point record.
If the value of IN1 is invalid or if the calculated value of OUT written to the point record is invalid,
the quality and the reason are set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
Function
OUT = ABS(IN1)
50 OW351_R1100
5.4 ALARMLIMIT
5.4 ALARMLIMIT
Description
The ALARMLIMIT algorithm allows logic to be driven using alarm limits and values produced by
analog points.
Functional Symbol
The alarm limit value (ALVAL) parameter can be configured to output the current selected Limit
Type (LTYPE). This value is also stored in the Alarm Limit (ALIM) field. The ALIM field allows you
to reconcile the alarm limit to the control sheet for documentation purposes.
If the selected limit is not defined in the input point (as determined by the LB record field), the
algorithm will set ALVAL to 0 and BAD quality.
Note: Alarm Limits can be defined as values or points. In the case of a point, the algorithm will
use the value of the point during the executed control cycle.
The alarm active (ACT) output is set depending on the following three parameters: ATYPE,
LTYPE, and QUAL.
The chosen alarm type (ATYPE) determines how alarm limits and alarm cutouts should be
monitored.
ATYPE DE S C R I P TI O N
Note: If you choose ALMQC, the algorithm monitors the selected limit in LTYPE, and any lower
defined limits. For instance, if you choose LOW2, the algorithm monitors LOW2, LOW3, and
LOW4. The user-defined high and low limits are exempt from this and will only be monitored if
specifically selected.
OW351_R1100 51
5.4 ALARMLIMIT
The chosen limit type (LTYPE) determines what limit the algorithm will use to determine if the
input point is in alarm. Deadbands are taken into account as well, using the same definition as the
DB and DJ record fields. Refer, Ovation Record Types Reference Manual for more information.
Description
LTYPE L I MI T FI E L D DE S C R I P TI O N
The configured quality parameter (QUAL) determines how quality is used in the calculation of the
ACT output. The QUAL table in the template describes the QUAL parameter options. For
instance, if "Value and GOOD quality" are selected, the output will be set to true if the LTYPE is
satisfied and the point quality is GOOD. If "Value or BAD quality" is selected, the output will be set
to true if the LTYPE is satisfied or the quality is BAD.
Description
QUAL DE S C R I P TI O N
52 OW351_R1100
5.4 ALARMLIMIT
Output Quality
Point quality is not propagated. If the selected LTYPE is currently not defined in the attached
analog input point (LB field), then the ALVAL output will go to zero (0), and the ACT output will
reset. Both outputs will also go to BAD quality.
SID Storage
In order to assist with graphics programming, all input and output point SIDs are stored in fields in
the algorithm. This allows the graphic to access multiple SIDs by accessing a si ngle SID (the
algorithm LC record).
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Inputs:
Outputs:
OW351_R1100 53
5.4 ALARMLIMIT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
54 OW351_R1100
5.4 ALARMLIMIT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 55
5.5 ALARMMON
5.5 ALARMMON
Description
The ALARMMON algorithm sets OUT equal to TRUE if any of the inputs are in alarm (alarm
status is TRUE). OUT is set to TRUE if unacknowledged and alarm bits are set in the first status
word of the point or alarm bit is TRUE and unacknowledged is FALSE.
The inputs are optional, numbering from 1 through 16, and may be analog or digital types. The
ALRM flag determines the type of alarm check that the algorithm performs.
If the ALRM flag is 0 (X1=0), the optional output (FOUT) is set FALSE if no inputs went into
alarm since the last loop. FOUT is set TRUE for one loop when inputs go into alarm.
If the ALRM flag is 1 (X1=1), the digital output (FOUT) is set TRUE if one or more inputs have
their unacknowledged alarm bit set to TRUE.
If the ALRM flag is 2 (X1=2), the OUT point is set to a 1 when any of the Inputs are in alarm.
The FOUT point is set to a 1 (for 1 loop) if any of the inputs go into alarm and they were not in
Alarm in the previous loop.
If the ALRM flag is 3 (X1=3), the OUT point is set to TRUE when any of the input points are in
ALARM. The FOUT point is set to a TRUE whenever any of the input points have both their
'ALARM' and 'unacknowledged' bits set TRUE.
Functional Symbol
56 OW351_R1100
5.5 ALARMMON
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
State change digital points should not be used since the alarm status is set TRUE for each state change.
This is an improper use of this algorithm.
OW351_R1100 57
5.6 ANALOG DEVICE (ADEVICE)
The Analog Output Device algorithm is used to interface to Motor Control Centers (MCCs). Under
normal operation, the analog device algorithm attempts to control the device.
When the Analog Device algorithm is in AUTO, the error is calculated by taking the feedback
minus the demand times a sensitivity factor. The default sensitivity factor is one. If the error is less
than the inner deadband, the analog output is set to zero. If the error is greater than the outer
deadband, the analog output is set equal to this error. If the error is between the two deadbands,
the error is scaled between zero and one. The closer the error is to the outer deadband, the
closer the scale factor to one. The closer the error is to the inner deadband, the closer the scale
factor is to zero. The output is simply the error multiplied by the scale factor. The output is
clamped to the clamping limits (MAX). The quality of OUT is set to the worst quality of the two
inputs when not in tracking mode.
The shed relay is a copy of the tracking flag (IN3). If the tracking flag (IN3) is reset or the tracking
input indicates that there is tracking, the tracking output is equal to the tracking input. When
tracking, quality is set to the quality of the track input variable.
Tracking Signals
Tracking is performed through signals passed in the upper 16 bits of the third status word of the
analog tracking point. This algorithm takes the following action in response to the information
found in the digital input signal TRIN:
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
58 OW351_R1100
5.6 ANALOG DEVICE (ADEVICE)
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 59
5.6 ANALOG DEVICE (ADEVICE)
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
60 OW351_R1100
5.7 ANALOGDRUM
5.7 ANALOGDRUM
Description
The ANALOGDRUM algorithm is a software drum controller with one analog output value and up
to 30 steps OR a software drum controller with two analog output values and up to 15 steps. The
output selected is based on the current step number and a list of up to 30 /15 initialized real
values. The current step number may be tracked to a selected step (TRIN) when in tracking mode
(TMOD = TRUE), increased (INC), or decreased (DEC). The current step number is only
increased or decreased on a FALSE to TRUE transition of INC and DEC. The maximum number
of steps must be initialized. When the step number becomes greater than the maximum number
of steps, the current step number is reset to one.
The track input value (TRIN) and output value (OUT) are checked for invalid real numbers. If a
tracking request is received and TRIN is an invalid number, then the tracking request is ignored.
However, the current step can be increased (using INC) or decreased (using DEC) even when
TRIN is an invalid number. If the algorithm calculates an invalid real number output, the value is
invalid and the quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 61
5.7 ANALOGDRUM
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
62 OW351_R1100
5.7 ANALOGDRUM
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 63
5.7 ANALOGDRUM
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
64 OW351_R1100
5.8 AND
5.8 AND
Description
The AND algorithm is a logical AND gate that can implement up to eight inputs. For the AND
algorithm, the output equals the logical AND of two to eight inputs (that is, all inputs must be
TRUE for the output to be TRUE). AND requires at least two inputs and up to eight digital inputs.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT = IN1 AND IN2 AND IN3 AND IN4 AND IN5 AND IN6 AND IN7 AND IN8
OW351_R1100 65
5.9 ANNUNCIATOR
5.9 ANNUNCIATOR
Description
The ANNUNCIATOR algorithm calculates one alarm window state of a lamp box, based on the
result of annunciator logic (IN1), the previous window state (OUT), and the inputs from the
operator push-button interface (ACK, RSET, TEST). The algorithm also determines the state of
the horn (HORN) and the chime (CHIM) based on IN1, OUT, and the inputs PRHN and PCHM.
IN1 can be an analog, digital, or packed point. If IN1 is a packed point, the algorithm will count
each bit. If all 16 bits are set, then the algorithm assigns a value of 16 to IN1. If 15 bits are set,
regardless of which bits, then the algorithm assigns a value of 15 to IN1, and so on. Once the
value is determined, the algorithm will compare the value with the value of the last alarm state
(OUT).
If IN1<=OUT and the OUT 1W unacknowledged bit is set and the user sets the ACK input true,
the algorithm will attempt to reset the OUT 1W unacknowledged bit.
Once the IN1 value is processed, the algorithm will set OUT equal to IN1
1. If IN1 = 0 and the OUT 1W unacknowledged bit is set and the ACK input is true.
2. If IN1 = 0 and the OUT 1W unacknowledged bit is not set and the OUT 1W reset bit is set and
the RSET input is false.
1. If 0 < IN1 <= OUT and the OUT 1W unacknowledged bit is set and the ACK input is false and
the OUT 1W better alarm bit is set.
66 OW351_R1100
5.9 ANNUNCIATOR
Note: All lights will be turned off if IN1 = 0 and the OUT 1W unack nowledged bit and reset bits
are not set.
If the value of IN1 is invalid or if the calculated value of OUT (written to the point record) is invalid,
the quality and reason of OUT is set to BAD.
Functional Symbol
OW351_R1100 67
5.9 ANNUNCIATOR
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
68 OW351_R1100
5.10 ANTILOG
5.10 ANTILOG
Description
The ANTILOG algorithm scales an input value and outputs the antilog of the scaled value.
If the scaled input is outside the range for which the antilog can be stored as a real number, an
optional “out-of-range” digital is set, and the output value is set to the corresponding limiting
value.
Two algorithm tuning parameters are used: one for the scaling factor, and one to select the base
to be used for the calculation (base 10 or the natural base e, where the natural base e is the
default).
The value of IN1 is checked for invalid real numbers. If IN1 is invalid, the value of OUT equals the
invalid value of IN1, and OUT's quality is set to BAD and conditional calculated reason is set. The
quality of flag FOUT also is set to BAD. If IN1 is valid, the quality and reasons of IN1 are
propagated to OUT.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 69
5.10 ANTILOG
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
Function
Note: For range-check ing purposes, the upper and lower limits of x such that e x can be
represented as a real number are:
70 OW351_R1100
5.11 ARCCOSINE
5.11 ARCCOSINE
Description
The ARCCOSINE algorithm performs the mathematical arc cosine function. ARCCOSINE has
one input and one output analog point. Each time the algorithm is executed, if the output is on
scan, it is set to the ARCCOSINE of the input. The output of this algorithm is in radians. If an
output in degrees is desired, multiply it by 57.29579 to convert to degrees. If the input to this
algorithm is outside the range of -1.0 to +1.0, the output is an invalid number and the drop is
placed into alarm.
Analog input values are checked for invalid real numbers. If the input value is invalid, the value of
the output is invalid and its quality is set to BAD. If the input is valid, the quality of the input is
propagated to the output.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 71
5.12 ARCSINE
5.12 ARCSINE
Description
The ARCSINE algorithm performs the mathematical arc sine function. ARCSINE has one input
and one output analog point. Each time the algorithm is executed, if the output is on scan, it is set
to the ARCSINE of the input. The output of this algorithm is in radians. If an output in degrees is
desired, multiply it by 57.29579 to convert to degrees. If the input to this algorithm is outside the
range of -1.0 to +1.0, the output is an invalid number and the drop is placed into alarm.
Analog input values are checked for invalid real numbers. If the input value is invalid, the value of
the output is invalid and its quality is set to BAD. If the input is valid, the quality of the input is
propagated to the output.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
72 OW351_R1100
5.13 ARCTANGENT
5.13 ARCTANGENT
Description
The ARCTANGENT algorithm performs the mathematical arc tangent function. ARCTANGENT
has one input and one output analog point. Each time the algorithm is executed, if the output is on
scan, it is set to the ARCTANGENT of the input. The output of this algorithm is in radians. If an
output in degrees is desired, multiply it by 57.29579 to convert to degrees.
Analog input values are checked for invalid real numbers. If the input value is invalid, the value of
the output is invalid and its quality is set to BAD. If the input is valid, the quality of the input is
propagated to the output.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT = ARCTANGENT(IN1)
OW351_R1100 73
5.14 ASSIGN
5.14 ASSIGN
Description
The ASSIGN algorithm transfers point value and the quality of one point to another point of the
same record type. The algorithm allows value and quality to be passed from one analog to
another analog point, or from a digital to another digital point or from one packed to another
packed point. For deluxe point types, the ASSIGN algorithm transfer the U8 and U9 timestamps
from the input point to the output point. In this way, it is possible to determine the time at which
the control logic had the value from the I/O available for computation inside the control task. You
must specify an output point name - default points may not be used.
If the input point is an analog point, the value is checked for an invalid real number. If the input
value is invalid, the value of the output is invalid and its quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
74 OW351_R1100
5.15 ATREND
5.15 ATREND
Description
The ATREND algorithm outputs a user-specified point to a strip chart recorder for trending. By
tuning the algorithm, the operator may change the point being trended to any point in the system
that is on the Ovation network. Any point with a system identification (that is, LA/LD record size or
larger) can be trended, regardless of the Controller in which the point is located or used. The
output to the recorder is set to zero percent for five seconds and then to 100 percent for 10
seconds to indicate that the point being trended or its scaling has been changed. A Tuning
diagram allows the point name to be entered to change the point being trended.
To enter a point to trend, open the Signal Diagram that contains the ATREND algorithm. Right -
click on the ATREND algorithm, and select the Advanced Tuning option. Enter the point name
to be trended on the advanced tuning window. For more information on Signal Diagram s, refer to
Ovation Control Builder User Guide.
Top of scale and bottom of scale values may also be specified online and are used to convert an
analog point's current value to a percentage of full scale. A digital point's current value is output
as either 25 percent (FALSE) or 75 percent (TRUE). This converted value is then normalized to
be output to a specified analog output point card. To time tag each hour during a trend, the output
to the recorder may be set to zero percent for five seconds at the start of each hour when this is
initialized in the X3 field of algorithm record. If you are not trending a point, a value of zero is
output to the I/O card. The output (TRND) is set TRUE when a point is being trended. If no point
is being trended, TRND is set FALSE.
Note: ATREND can only trend points on a local network , not on a remote network .
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 75
5.15 ATREND
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Note: The following fields in the algorithm record are used to trend a particular point. The Tuning
diagram associated with the tuning of this algorithm enables you to initialize and tune these fields.
76 OW351_R1100
5.16 AVALGEN
5.16 AVALGEN
Description
The AVALGEN algorithm initializes an analog point. For the AVALGEN algorithm, the output is
the analog value stored in the tuning constant (VALUE). This value is a set point or bias to other
algorithms. If VALUE is entered incorrectly or if the data is corrupted, then the algorithm
generates an invalid number, the value of OUT is invalid, and its quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Function
OUT = VALU
OW351_R1100 77
5.17 BALANCER
5.17 BALANCER
Description
The BALANCER algorithm monitors the modes of up to 16 downstream algorithms and performs
a user-defined type of tracking when all of the downstream algorithms are requesting the
upstream algorithm to track. A special configuration of the BALANCER algorithm enables it to be
used to balance the outputs of several downstream Manual/Auto (M/A) station algorithms.
The actual number of downstream algorithms is initialized by the user. You connect the output of
this algorithm to the IN1 input of any downstream algorithm or to the IN2 input of a downstream
selector type algorithm. When configuring the BALANCER algorithm, y ou specify which
algorithms (in other sheets and/or drops) use the output signal of the BALANCER algorithm. The
BALANCER algorithm checks the feedback signals to see how many of the downstream
algorithms are requesting the upstream algorithm to track (how many are in Manual mode). It then
uses this information, along with the type of control initialized, to calculate the analog output value
which is being sent to the inputs of these downstream algorithms.
Also, when connecting track ing points, you must connect them sequentially. For example, the
BALANCER algorithm assumes that if the number of track ing points is three, then they must be
TRK1, TRK2, TRK3. They cannot be TRK1, TRK2, TRK4.
Functional Symbol
Note: If the TRK inputs are all raise inhibit or lower inhibit or a combination of raise inhibit and
manual or lower inhibit and manual, the BALANCER output value will stay at the value prior to
the inhibit.
In a raise inhibit condition, the value cannot be raised; however it can be lowered. Conversely,
in a lower inhibit condition, the value cannot be lowered; however it can be raised.
78 OW351_R1100
5.17 BALANCER
Control Modes
There are two types of control: NORMAL and MA BALANCER. You must select a type of tracking
(highest, lowest or average) to be used for both types of control.
NORMAL
If all of the downstream algorithms are requesting the upstream algorithm to track, then the output
of the BALANCER algorithm is either the highest, the lowest or the average of the analog track
signals passed back from the downstream algorithms. The quality of the output is then the worst
quality of the analog track signals passed back.
The gains and biases of the downstream algorithms that are between the BALANCER and the
MASTATION algorithms must be equal to 1.0 and 0.0, respectively, for this type of control to be
implemented properly.
If any of the downstream algorithms are not requesting the upstream algorithm to track, then the
output of the BALANCER algorithm is the gained and biased analog input value. The quality of
the output is the quality of the input value.
The downstream algorithms may be any of the standard algorithms. Internal tracking within the
BALANCER algorithm is implemented when switching from the highest, lowest, or average of the
analog track signals to the gained and biased analog input value.
MA BALANCER
Note: When the algorithm is track ing in "Balancer" mode, the TOUT value is the average of all
the TRK inputs.
If all of the downstream MA algorithms are requesting the upstream algorithm to track, then the
output of the BALANCER algorithm is either the highest, the lowest or the average of the analog
track signals passed back from the downstream algorithms.
If any of the downstream algorithms are not requesting the upstream algorithm t o track, then the
output of the BALANCER algorithm is a value which causes the average of all the downstream
algorithm outputs to be equal to the gained and biased input value.
The quality of the output is the worst quality of the analog track signals pass ed back.
The downstream algorithms must be MASTATION and the gains and biases of these algorithms
must all be equal to 1.0 and 0.0, respectively, for this type of control to be implemented properly.
Internal tracking within the BALANCER algorithm is implemented when switching from the
highest, lowest, or average of the analog track signals to the value which balances the
downstream algorithm outputs.
If the algorithm generates an` invalid output value, the last valid value is used for the output, and
the quality of OUTPUT point is set to BAD. In addition, if the algorithm receives an invalid value
as an input, or calculates an invalid value as the output, the drop is placed into alarm.
OW351_R1100 79
5.17 BALANCER
CAUTION! The feedback tracking signals from the downstream algorithms must be initialized
before downloading the BALANCER algorithm. If the feedback tracking signal information is
missing, errors result.
The Control Builder allows you to type in or connect signal lines for TOUT point from the
downstream algorithms. The tracking point is fed back as an analog track input to the BALANCER
algorithm to be used to calculate the correct analog output value.
Tracking Signals
This algorithm takes the following action in response to the information found in the analog track
signals (in the third status field), which are passed back from the downstream algorithms:
Bit description
BI T D E S C R I P TI O N A C TI O N TRK S I G N AL
80 OW351_R1100
5.17 BALANCER
The output is limited by high and low limits specified by the user. The high and low limit flags and
the tracking signal from the algorithm are output in the third status field of the TOUT, to be used
for display and by an upstream algorithm.
Note: If the algorithm generates an invalid track output value, the IN1 input is used as the track
output value, unless it is invalid. The track output value is not updated if both the calculated
track output and IN1 input values are invalid. See guidelines in MASTATION algorithm
description for setting MASTATION CNFG parameter.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 81
5.17 BALANCER
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
82 OW351_R1100
5.18 BCDNIN
5.18 BCDNIN
Description
The BCDNIN algorithm reads a packed point (IN) in Binary Coded Decimal (BCD), converts it to a
real number, and stores it in the AV field of the output record (OUT). You must indicate the type of
action to be taken on the input value. Direct action causes the input value to be read directly.
Inverse action causes the input value to be read and inverted (one's complement) before it is
used. You must specify the number of BCD digits to read and the bit position where the reading is
to begin.
Functional Symbol
Algorithm Definition
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 83
5.18 BCDNIN
Example 1
BITP = 0
NDIG = 4
Example 2
BITP = 4
NDIG = 2
84 OW351_R1100
5.19 BCDNOUT
5.19 BCDNOUT
Description
The BCDNOUT algorithm reads a real value from input IN, converts it to binary -coded-decimal
(BCD), and outputs a number of digits to a packed output point. You must indicate the type of
action to take on the output value. Direct action causes the output value to be written directly.
Inverse action causes the value to be inverted (one's complement) before it is written to the output
point. You must specify the number of BCD digits to write, and the bit position where the writing is
to begin.
Invalid Numbers
The analog input (IN) is checked for invalid real numbers. If an invalid real number is entered as
IN, it is not written to the output point.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 85
5.19 BCDNOUT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Example 1
To write four BCD digits, starting at Bit Position 0, where the current value of IN is 6281.0:
BITP = 0
NDIG = 4.
Example 2
To write two BCD digits, starting at Bit Position 4, where the current value of IN is 28.0:
BITP = 4
NDIG = 2
86 OW351_R1100
5.20 BILLFLOW
5.20 BILLFLOW
Description
The BILLFLOW algorithm generates an AGA3 gas flow calculation for orifices. It is applicable for
downstream and upstream static pressure measurements. It can be used for both tap and flange
orifices.
The super compressibility factor can be calculated one of two ways. The value can be passed in
the compressibility (SC) point, or the algorithm can calculate the compressibility factor with
additional information from the N2 and C02 tuning fields.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 87
5.20 BILLFLOW
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
88 OW351_R1100
5.21 BUFFER
5.21 BUFFER
Description
The BUFFER algorithm gathers the value and status of a point and associates a timestamp with
this information. The data is stored in a queue and is accessible via the High Speed Data
Acquisition (HSDA) Application Programming Interface (API). An API is an interface implemented
by a software program to enable interaction with other software, much in the same way that a
user interface facilitates interaction between humans and computers.
Functional Symbol
Requirements
A limited number of BUFFER algorithms may be used in any given Controller and control task
depending on the Controller processor and memory usage. It is up to the user to test the
algorithm/API performance to ensure data is being adequately collected.
Note: The API allows for up to 1,000 BUFFER algorithms per Controller; however, depending
on Controller processing time and memory usage, the Controller may not be able to support
1,000 BUFFER algorithms. Emerson recommends that all BUFFER algorithms be tested in a
worst case scenario on actual Controllers in order to prevent data loss.
Enable (ENBL)
The enable input (ENBL) parameter allows you to enable or disable the BUFFER algorithm. When
disabled, the BUFFER algorithm will not store any data and will not send any data to the queue
for retrieval. It will also zero out its internal buffer.
When enabled, the algorithm will immediately send data to the queue and will store up to 10 data
values in its own internal buffer. If no point is connected to the enable pin, the algorithm will
always be enabled.
On initial startup or if the algorithm is disabled, the STAT queue overflow bit, ACNT, TCNT, CEW,
and CER fields will be reset to zero.
OW351_R1100 89
5.21 BUFFER
The buffer input point (IN) allows you to connect any analog (LA), digital (LD), or packed (LP)
point to the algorithm. When the algorithm is enabled, the algorithm will collect the value,
timestamp, and 1W field - First Status Word for LA and LD points, and the A3 field - Invalidity bits
for LP points. Collection occurs by exception or is based on deadband.
Timestamp
The timestamp is accurate to 1 millisecond resolution. The Controller provides the time based on
UTC (Coordinated Universal Time) time in the Controller. This information is stored in two
variables called timestampSeconds and timestampNanoseconds. The times tampSeconds
variable contains the amount of seconds since 12:00 AM January 1, 1970. The
timestampNanoseconds variable contains the amount of nanoseconds since the last full second.
Note: The time stored in timestampSeconds is provided in UTC. The user's application converts
this time to local time and adjusts a nanoseconds part from timestampNanoseconds.
After initial startup, the Controller uses the NTP server to set its calendar time. During this time,
the algorithm timestamp values may be invalid.
The BUFFER algorithm allows you to configure how the algorithm retrieves the timestamp. If an
individual algorithm is selected, each BUFFER algorithm will retrieve a timestamp based on when
the algorithm was executed. If a control task is selected, then the control task will retrieve the
timestamp based on when it was executed and all BUFFER algorithms within the same control
task will use the same timestamp for that control cycle.
Deadbands
If the connected point is an analog point, an analog deadband may be associated. The algorithm
uses the deadband to determine whether or not to collect the point's information and send it to the
queue. It uses the deadband as follows: the algorithm compares the previously collected value
with the currently scanned value for changes beyond the specified deadband value. For instance,
if the deadband is set to 5, and the point's current value is 9, but during the next control cycle, the
value is 12, the point will not be collected. However, if the point's value increases from 9 to 15 in
the next control cycle, the point information will then be collected and sent to the queue.
90 OW351_R1100
5.21 BUFFER
If the connected point is a digital or packed point, a digital deadband may be as sociated. The
algorithm determines whether to collect the point information depending on which option is
selected:
0 to 1 Transition -- Information is collected when the point value or any bit in the point
transitions from a 0 to a 1.
1 to 0 Transition -- Information will be collected when the point value or any bit in the point
transitions from a 1 to a 0.
State Change -- Information will be collected when the point value or any bit in the point
changes.
Note: If a zero analog deadband is assigned, the algorithm will collect the point value by
exception. Also, if the 1W field - status word or the A3 field - invalidity bits change for the IN
point, then the point will be collected and placed into the queue regardless of deadbands.
When the BUFFER algorithm is enabled, the value, status, and timestamp of the input (IN) will be
written to element 1 of the fields defined in the template. For each subsequent loop time, if the
BUFFER algorithm determines the value/status is to be collec ted, it will continue to write to each
element, increasing the element by 1 each time. For instance, the algorithm writes to element 1,
then element 2, then element 3, and so forth. After the algorithm writes to the 10th element, it
starts with element 1 again. If the algorithm is disabled, it resets all elements and starts from
element 1 when enabled again.
HSDA task
The information stored in each element is read by the High Speed Data Acquisition task (HSDA)
and sent to the appropriate MMI that is requesting the information. If the HSDA task is unable to
read the values from the element fields prior to the algorithm rewriting to that element, the
algorithm will set the queue overflow bit in the status output (STAT). The algorithm continues
writing over each subsequent element. When the HSDA task is able to read the current element,
the queue overflow bit resets.
Note: The HSDA task runs at a higher priority than the control task s in order to avoid pre-
emption by the control task .
Busy
The algorithm sets the busy bit to true when it is executing. The busy bit prevents the high-speed
data acquisition task from reading values in the middle of a data write. When the algorithm
finishes executing during a control task cycle, it resets the busy bit.
Queue Overflows
In order to determine a queue overflow, the algorithm and the HSDA task store a count of how
many times it has accessed the first element. For instance, the first time that the algorithm
completes writing to the first 10 elements, it stores a zero to the ACNT field; the next time the
algorithm writes to the first 10 elements, it stores a 1 to the ACNT field, and so on. After the
HSDA task reads the first 10 elements, it stores a zero to the TCNT field; the next time the HSDA
task reads the first 10 elements, it stores a 1 to the TCNT field, and so on.
OW351_R1100 91
5.21 BUFFER
In addition, the algorithm stores the current element written to the current element written (CEW)
field, and the HSDA task stores the current element read to the current element read (CER) field.
The BUFFER algorithm uses the information to determine if it has overwritten a field that has not
been read from yet. When this occurs, the queue overflow bit in the STAT output is set, and the
buffer continues to write values to each element. Any data not read by t he HSDA task during this
time is lost. When the HSDA task is able to read the current element, the queue overflow bit
resets.
Note: To avoid overruns, the algorithm subtracts 10,000 from ACNT and TCNT once TCNT
reaches 10,000.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Inputs:
92 OW351_R1100
5.21 BUFFER
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 93
5.21 BUFFER
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
The HSDA User API for Windows applications consists of the following files on each MMI:
hsda.dll
hsda.lib
hsda_defines.h
hsda.h
You must use these files to create your own application to communicate with selected Controllers
in order to collect data from each BUFFER algorithm.
94 OW351_R1100
5.21 BUFFER
Supplied Functions:
HsdaStatus Type HsdaStartup()
Definitions:
OW351_R1100 95
5.21 BUFFER
typedef union {
REAL32 analog;
INT32 digital;
UINT32 packed;
} HsdaValueT ype;
typedef struct {
HsdaValueTy pe pointValue;
INT32 timestam pSec onds;
INT32 timestam pNan osec onds;
INT32 firstStatus;
} HsdaBufferDataTy pe;
96 OW351_R1100
5.21 BUFFER
typedef union {
HsdaBufferDataTy pe bufferData;
} HsdaDataTy pe;
typedef struct {
Sid_type sid;
HsdaDataTyp e data;
} HsdaEve ntT ype;
typedef enum {
HSDA_SID_ OK,
HSDA_SID_ USED,
HSDA_SID_ NOT_FOUND,
HSDA_SID_ DROP_UNREACHAB LE
} HsdaSidStatu sType;
typedef struct {
Sid_type sid;
HsdaSidStatus Type sidStatus;
} HsdaSidDiagTyp e;
typedef enum {
HSDA_CONN_CONNECTED,
HSDA_CONN_DROP_UNAV AILA BLE,
HSDA_CONN_M AX_CLIENTS _EXCEEDE D,
HSDA_CONN_BACKUP_ NOT_READY,
HSDA_CONN_CONNECTING,
HSDA_CONN_UNSUPPORT ED_PROTO_ VERSION,
HSDA_CONN_UNKNOW N
} HsdaConn StatusT ype;
typedef enum
{
HSDA_ANALOG_TYPE,
HSDA_DIGITAL_T YPE,
HSDA_PACKED_TY PE,
HSDA_UNKNOWN_ TYPE
} HsdaPointData Type;
OW351_R1100 97
5.21 BUFFER
98 OW351_R1100
5.21 BUFFER
API Usage
Note: In the following procedure, steps that contain the word "must" are required by the user
application. Steps that contain the word "may" are optional.
Note: The Hsda API does not handle applications that share one session across multiple
threads. The behavior of such applications may be unpredictable.
OW351_R1100 99
5.21 BUFFER
100 OW351_R1100
5.21 BUFFER
Additionally, the drop diagnostic information includes the number of processed data frames, lost
network frames, a flag indicating whether the drop is active or in standby, and a flag indicating
whether an overflow occurred in the local Windows-side event buffers.
API Responsibilities
The HSDA Windows API is responsible for maintaining a connection to the HSDA servers,
automatic retrieval of HSDA event data from the network, detecting communication
failures/delays, and re-establishing the connection. For the purpose of keeping track of the
connection state, the API periodically checks for incoming messages (data, diagnostic, or
heartbeat) from each server. If no data is received over an extended period of time, a Start
Logging request is resent to the server. Once the server has successfully processed the Start
Logging request, it starts to periodically send HSDA event data over the network. No explicit 'Get
Data' request is sent from the client to the server, which reduces network traffic. The events
obtained from the network are stored in internal data buffers on the workstation side, for later
retrieval by the client using the HsdaData call.
Connections to drops are not shared between HSDA sessions. Each HSDA session has its own
connection to each drop from which it receives data.
OW351_R1100 101
5.21 BUFFER
All communication between the Ovation Station and the Ovation Controller is performed using the
UDP protocol. If the Windows firewall is turned on, you must create an exception for the end
application. On the Ovation Controller, the HSDA task listens on port 4599 for connections from
the Ovation Station. The active (in control) Controller initiates a connection to the backup
Controller. The backup Controller listens on port 4678 for HSDA connections from the active
Controller. The active Controller tries to establish the connection to its partner once a second. The
active Controller also checks if the number of connections is less than the maximum number of
connections when a new connection attempt is made.
102 OW351_R1100
5.22 CALCBLOCK
5.22 CALCBLOCK
Description
The CALCBLOCK algorithm is designed to allow you to solve complex mathematical equations
within a control sheet. The CALCBLOCK algorithm supports any operation from the following list.
For more complex equations, CALCBLOCK algorithms can be cascaded together. Logical
operations are supported by the CALCBLOCKD algorithm (see page 112).
Each CALCBLOCK algorithm can support up to 18 inputs and 10 floating point constants.
Each CALCBLOCK algorithm can support up to 15 operations (in any combination). Each
operator has two arguments.
The intermediate result of each operation is stored in the Real Fields (1-15) of the algorithm
record. These intermediate results display in the tuning window of the monitor graphic and can
be used by the user to debug a calculation.
The result of the defined calculation is stored in the OUT point. If an invalid number (for example,
divide by zero, 1n (negative number), infinity, and so forth), occurs, the VALID output is set to
logical FALSE. If the calculation does not result in an invalid number, the VALID output is set to
logical TRUE.
The real constant fields are the only tunable fields in the algorithm. All editing must be performed
via the Control Builder.
The optional ENBL input allows the algorithm to be conditionally executed. If the input is
connected, the calculation is carried out only if the ENBL input is TRUE. If the ENBL input is
FALSE, the calculation is not performed, and the output is set to the previous value.
If the ENBL input is not connected, then there is no conditional execution, and the calculation is
performed each execution loop.
Note: The round function rounds to the nearest integer value. If the number falls midway, it is
rounded to the nearest value above (for positive numbers) or below (for negative numbers). For
example, round (1.5) = 2 and round (-1.5) = -2.
CALCBLOCK operations
M ATH E M A TI C AL S TAN D AR D S C I E N TI F I C
OW351_R1100 103
5.22 CALCBLOCK
M ATH E M A TI C AL S TAN D AR D S C I E N TI F I C
*Exp (exp(a))
Functional Symbol
104 OW351_R1100
5.22 CALCBLOCK
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 105
5.22 CALCBLOCK
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
106 OW351_R1100
5.22 CALCBLOCK
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 107
5.22 CALCBLOCK
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Example 1
108 OW351_R1100
5.22 CALCBLOCK
Algorithm parameter
A L G O R I TH M V AL U E S TE P S O L U TI O N
P AR AME T E R
OUT Y Y = RES2
Example 2
This calculation is divided into two parts using two CALCBLOCK algorithms as follows:
OW351_R1100 109
5.22 CALCBLOCK
Algorithm parameter
A L G O R I TH M V AL U E I N TE R ME D I AT E S TE P S TE P S O L U TI O N
P AR AME T E R
110 OW351_R1100
5.22 CALCBLOCK
A L G O R I TH M V AL U E I N TE R ME D I AT E S TE P S TE P S O L U TI O N
P AR AME T E R
Algorithm parameter
A L G O R I TH M V AL U E I N TE R ME D I AT E S TE P S TE P S O L U TI O N
P AR AME T E R
OW351_R1100 111
5.23 CALCBLOCKD
5.23 CALCBLOCKD
Description
The CALCBLOCKD algorithm is the digital version of the CALCBLOCK algorithm (see page 103).
CALCBLOCKD can only perform logical functions. The list of functions is outlined in the following
table. For more complex calculations, CALCBLOCKD algorithms can be cascaded together.
Logical
L O G I C AL
And (a && b)
Nand (a ^& b)
Or (a || b)
Nor (a ^| b)
Xor (a xor b)
Not (not a)
Each CALCBLOCKD algorithm can support up to 18 inputs and 10 floating point constants. Each
CALCBLOCKD algorithm can support up to 15 of the above operations (in any combination).
Each operator has two arguments.
The intermediate result of each operation is stored in the Real Fields (1-15) of the algorithm
record. These intermediate results display in the tuning window of the monitor graphic and can be
used by the user to debug a calculation. The result of the defined calculation is stored in the OUT
point. If an invalid calculation occurs, the VALID output is set to logical FALSE. If the calculation
does not result in an invalid number, the VALID output is set to logical TRUE.
The real constant fields are the only tunable fields in the algorithm. All editing must be performed
via the Control Builder.
The optional ENBL input allows the algorithm to be conditionally executed. If the input is
connected, the calculation is carried out only if the ENBL input is TRUE. If the ENBL input is
FALSE, the calculation is not performed, and the output is set to the previous value. If the ENBL
input is not connected, then there is no conditional execution, and the calculation is performed
each execution loop.
112 OW351_R1100
5.23 CALCBLOCKD
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 113
5.23 CALCBLOCKD
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
114 OW351_R1100
5.23 CALCBLOCKD
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 115
5.23 CALCBLOCKD
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
116 OW351_R1100
5.23 CALCBLOCKD
Example
A L G O R I TH M P AR AM E TE R V AL U E S TE P S O L U TI O N
OUT A A = RES3
OW351_R1100 117
5.24 COMPARE
5.24 COMPARE
Description
The COMPARE algorithm compares the value of IN1 with the value of IN2, and the appropriate
output is set TRUE.
Analog input values are checked for invalid real numbers. If the input value is invalid, the output
points are set to FALSE.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
118 OW351_R1100
5.25 COSINE
5.25 COSINE
Description
The COSINE algorithm performs the mathematical cosine function. COSINE has one input and
one output analog point. Each time the algorithm is executed, if the output is on scan, it is set to
the COSINE of the input. The input to this algorithm is in radians. If an input is only available in
degrees, multiply it by 0.01745329 to convert to radians.
Analog input values are checked for invalid real numbers. If the input value is invalid, the value of
the output is invalid and its quality is set to BAD. If the input is valid, the quality of the input is
propagated to the output.
If the absolute value of the input is greater than 10 18, then the output of the COSINE algorithm is
invalid and its quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT=COSINE(IN1)
OW351_R1100 119
5.26 COUNTER
5.26 COUNTER
Description
The COUNTER algorithm counts up or down based on the input DIRECTION for the direction to
count. If DIRECTION (DRCT) is INC (one), the counter increments, otherwise it decrements.
While the ENABLE (ENBL) is TRUE, the count increments or decrements by one for each scan
that the IN1 input is TRUE.
If the COUNTER increments, the ACTUAL (ACT) continues to increment even if it is greater than
the TARGET (TARG). If the value stored in ACT reaches the maximum value (16,777,216), it
remains unchanged. The OUT is set TRUE when ACT is equal to or greater than TARG.
If the COUNTER decrements, it starts decrementing from the TARGET value. If the value stored
in ACT reaches the minimum value (-16,777,216), it disregards the IN1 input and remains at the
minimum value. The OUT is set TRUE when ACT is less than or equal to zero.
If either TARG or ACT is invalid, no operation occurs and OUT is set to FALSE. If ENBL is
FALSE, then ACT is set to zero when the COUNTER algorithm is configured to count up or set to
preset.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
120 OW351_R1100
5.26 COUNTER
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
Example
Function
OW351_R1100 121
5.27 DBEQUALS
5.27 DBEQUALS
Description
The DBEQUALS high/low comparator algorithm monitors two analog input values. If the absolute
value of the difference between the signals exceeds the deadband value, the digital output is set
TRUE. If the absolute value of the difference between the signals is less than the absolute value
of the difference between DBND and RTRN, then the output is set FALSE.
Both analog input values are checked for invalid real numbers. If one of the input values is invalid,
the value of the output is invalid and its quality is set to BAD. If all the inputs are valid, the worse
quality among the inputs is propagated to the output.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
122 OW351_R1100
5.27 DBEQUALS
Function
IF OUT = TRUE
THEN IF ABS(TEMP) <ABS(DBND - RTRN)
THEN OUT = FALSE
where:
OW351_R1100 123
5.28 DEVICE
5.28 DEVICE
Description
With one output and no feedback, the DEVICE algorithm sets the device to a defined state (on,
off, start, stop, open, close) when commanded.
124 OW351_R1100
5.28 DEVICE
With one output and one feedback, the DEVICE algorithm can set the output to a defined state,
set the “In Transition” bit (A2 field of bit 1 of the device record), and then monitor the input. If the
input's state does not match the output state within a user- specified amount of time, the device
indicates a failed operation has occurred. If the feedback indicates the desired state is reached
within the user-specified time, the device sets its current state field to the appropriate value. In
either case, the In Transition bit resets at the end of the operation.
OW351_R1100 125
5.28 DEVICE
With two digital outputs and two digital feedbacks, the DEVICE algorithm can set the appropriate
output to “1” or ON and wait for the appropriate feedback to be true. When the appropriate
feedback indicates true, the device sets its current state field to the appropriate state. If the
feedback does not indicate the appropriate state is reached within the user-specified time, the
device status display indicates a failed operation.
126 OW351_R1100
5.28 DEVICE
With two digital outputs and one feedback, the DEVICE algorithm can set the appropriate output
to “1” or ON and wait for the feedback to go to the desired state. When the feedback indicates the
new state, the device sets its current state field to the appropriate state. If the feedback does not
indicate the appropriate state was reached within the user-specified time, the device indicates a
failed operation.
OW351_R1100 127
5.28 DEVICE
With three outputs and two feedbacks, the algorithm can set the appropriate output to “1”
according to the OPEN/CLOSE, START/STOP, or STOP TRAVEL command requested. If the
request is an Open or Close command, the feedbacks are monitored to see if the new state is
reached. When the feedbacks indicate the new state, the device's current state bit is updated to
the appropriate state. If the feedbacks do not indicate the appropriate state within the user-
specified time, the device indicates a failed operation. If the command is a Stop Operation
request, the algorithm writes a “1” to the Stop Travel output and indicates that the device is
stopped.
128 OW351_R1100
5.28 DEVICE
Control Operation
If the state of the I/O is indeterminate (that is, when both input status bit s are equal to 1, or both
are equal to zero and the device is not being commanded to another state), the Sensor Failure bit
(bits 2 and 3 of the 1W field in the DVCE point) is set. Note, that once a device is commanded to
another state, the “In Transition” status is set true as soon as the algorithm starts driving the
device to the commanded state. The “In Transition” status is reset when the device feedback
indicates the new state, and the operation is successful. If the operation fails, and the device
indicates it is neither open nor closed (both bits of the feedbacks are zero or one), the “In
Transition” status remains set and the Input Sensor Failure bit is not set. However, the Operation
Failed bit (bit 2 of the A2 field of the DVCE point) is set.
The device with two feedbacks may also be configured to display a “Failure to Respond” status. If
you configure the device to have a response time, the failure occurs if both feedbacks are not at a
zero (clear) state within the defined response time. If a “Failure to Respond” occurs, there is no
“Operation Failure” since the algorithm waits for a new command to process following the
response failure.
In the event of “Failure to Respond”, OUTPUT1, OUTPUT2, and OUTPUT3 all equal zero. In this
case, OUTPUT1 represents OPEN/START/ON bit, OUTPUT2 represents CLOSE/STOP/OFF bit,
and OUTPUT3 represents STOP (TRAVEL) bit.
In the event of “Failure to Operate,” OUTPUT1, OUTPUT2, and OUTPUT3 equal zero, as if
“Failure to Respond.” After any “Failure to Operate” or “Failure to Respond,” the OUTPUTs are
always zero.
The digital inputs and outputs used by the DEVICE algorithm can either be signals read from or
written to I/O cards, other digital process points contained in the system, or a combination of the
two.
Whenever a device experiences a failed operation (or response failure), it may ignore additional
requests for state changes or it may continue servicing such requests, depending on how the
device is configured (bit 4 of MODE parameter). You may want a DEVICE algorithm t o ignore
further requests after a piece of equipment has failed in order to prevent further damage to the
equipment. Regardless of how a device is configured, it services at least one request subsequent
to each change of operating mode (for example, Auto Mode to Manual Mode). If the device is
configured to ignore requests after a failure, it displays the status “LOCKOUT” when a failed
operation (or response failure) occurs.
Control Modes
A device is put into one of three modes by the operator by pressing the appropriate control key
(located on the Control Panel or Ovation Keyboard) or specified function key (located on a
standard keyboard). Note that the device must be configured to operate in that mode. Therefore,
the DEVICE has three modes of operation that can be adjusted during monitoring. These modes
are as follows:
AUTO
MANUAL
LOCAL
OW351_R1100 129
5.28 DEVICE
Auto Mode
Auto Mode allows the Controller application program to control the device through user-
programmed logic. The device cannot go into Auto mode unless one or both of the following
conditions are true:
The “Auto Permissive” bit is true.
The device is configured so that its default mode (bit 7 in MODE parameter) is Auto.
Once either of the above conditions is satisfied, and the device is not in Local mode, the device
can enter Auto mode if:
The operator presses the Auto mode request key.
An Emergency Override occurs and the device's default mode is Auto.
The Local Mode input goes false after being true, and the device's default mode is Auto.
The default mode is Auto, and the DEVICE algorithm is in its first pass.
The device exits Auto mode whenever one of the following happens:
The operator presses the Manual Mode Request key.
The operator Tags Out the device.
The “Auto Permissive” bit (bit 5 of the C5 field of the command word) goes False and the
default mode is not Auto mode (the device goes to Manual mode).
Local Mode is commanded through the optional LRE input.
Emergency Override occurs and the device's default mode is Manual (occurrence of an
override forces the mode to Manual).
The device may be configured (Bit 6 of MODE parameter) to go to Manual mode when a change
of state command is entered. If this is the case, pressing the following control keys causes the
device to go to Manual mode:
Start/Open/Trip.
Stop/Close/Reset.
Stop Travel (discontinue operation in progress).
When in Auto Mode, the DEVICE algorithm accepts commands from the digital process points
that are linked to the device through the DEVICE algorithm. Possible commands are:
Stop/Close/Reset.
Start/Open/Trip.
Stop Travel (discontinue operation in progress).
Emergency OPEN/START Override.
Emergency CLOSE/STOP Override.
130 OW351_R1100
5.28 DEVICE
Manual Mode
Manual Mode of operation allows the operator to control the device with the control keys. The
device goes into this mode when one of the following occurs:
The operator requests Manual mode by pressing the Manual Mode request key.
In Auto mode, the “Auto Permissive” bit (bit 5 of the C5 field of the command word) goes false
and the device default mode is not Auto.
Upon startup of the Controller, if the default mode of the device is Manual.
Occurrence of an Emergency Override and the default mode of the device is Manual, or in
Local mode, the hardware field input goes false and the default mode of the device is Manual.
The device may be configured to go to Manual mode when an Engineer Station or Operator
Station change of state command is entered. If this is the case, pressing the following control
keys causes the device to go to Manual mode:
Start/Open/Trip.
Stop/Close/Reset.
Stop Travel (discontinue operation in progress).
The device exits Manual mode whenever one of the following happens:
Local Mode is commanded through the optional LRE (reject to local) input.
The operator requests Auto Mode (and the “Auto Permissive” bit is set or Auto is the device's
default mode), or the operator requests the device to be Tagged-Out with the appropriate
control key.
When in Manual Mode, the DEVICE algorithm executes the Emergency Override to the device
only if the device is configured (see bit 0 in MODE parameter) so that the overrides have
precedence over the operator's commands.
Local Mode
Local Mode is the lowest level mode of operation for the device. A device can enter this mode
only if the following two conditions are met:
The device is configured to monitor the LRE input that indicates a local mode is active.
The LRE point is in the set (true) state.
When this point goes true, the device immediately goes into Local Mode and stays in this mode
until the following occurs:
The LRE point is reset (goes false).
As long as the LRE point is true, the device does not accept any commands from the Auto and
Manual modes. It does however, report the current state of the device. Device Trips, Sensor
Failures, and Failed Operations cannot be determined when in Local Mode; therefore, these
conditions are not checked for or reported when in Local Mode.
When the device goes into Local Mode, inputs are read and outputs are not energized; they are
left as they were when device went into Local Mode. When the device leaves the Local Mode, the
device goes to its default mode AUTO or MANUAL as defined by bit 7 in MODE parameter. If
input sensors cannot be determined (both = 0, or both = 1) and the device has not been
commanded to change state, all three outputs equal zero.
OW351_R1100 131
5.28 DEVICE
There are several commands that are requested with keys and are executed if the device is in
Auto or Manual mode. These commands are:
Set “Override Failure” flag (Disable Lockouts).
Clear “Override Failure” flag (Enable Lockouts).
Tag Out the Device.
Acknowledge Trip.
Auto mode request.
Manual mode request.
These commands are not accepted, however, if the device is in Local mode or is tagged-out.
Maintenance Modes
Tag Out
When in Tag Out Mode, the device ignores all commands except “Remove Tag Out.” The device
goes to its default mode when the Tag Out is removed.
Lock Out
A subset of the Tag Out Mode is the device “LOCK OUT” mode. Lock out occurs if the device is
configured (see bit 4 MODE parameter) to ignore subsequent commands to change state after an
operation fails. In other words, the device has only one opportunity to change state in a particular
mode. If the operation fails, the DEVICE algorithm does not accept another Open/Start or
Close/Stop command while locked out.
A device may be removed from Lock Out by any of the following actions:
Pressing the Auto or Manual mode request keys.
Setting the failure override flag (disabling lockouts) via the appropriate key.
Tagging out the device.
Control being transferred to Local mode (the LRE point goes true).
When returning from Lock Out, variables OUT1, OUT2, and OUT3 equal zero.
Change of State
In general, a change of state command in progress is continued until the device reaches the new
state or until a time out occurs. The following conditions cause an operation in progress to be
discontinued:
The device is Tagged Out, resulting in inputs being read and outputs not energized, left as
they were at the time of Lock Out.
The device goes to Local mode, resulting in inputs being read and outputs not being
energized, left as they were when device went to Local Mode
A Stop (discontinue operation) command is requested by the current control mode and an
Emergency Override is not in progress. If the device is in Manual mode, however, and it is
configured so the Emergency Overrides do not have priority over Manual commands, a
Manual Stop request overrides the Emergency command.
132 OW351_R1100
5.28 DEVICE
In order for a change of state command to be executed, its proper permissive must be true. For
example, a Manual Close/Stop command only executes if the Close/Stop permissive of the device
is true. The Emergency Override and Stop (discontinue operation) commands do not require any
permissive to be true in order to be executed.
The permissives of a device are set true on start-up and remain true unless the DEVICE algorithm
is used to update them.
You can set the amount of time that a device allows for the equipment to change state following a
command. You must specify the units of time (0.1 seconds, seconds, or minutes) to measure
transition time, and the maximum number of time units to get to the set and reset states. You can
also specify a time period (in loops) for the equipment to respond to a command.
For devices with feedback, you can also configure the amount of time that the DEVICE algorithm
sets the appropriate output “ON”. The following modes are supported:
Set output “ON” for a user-configured time period (less than the transition time), or until the
new state is reached, whichever occurs first. (Setting bit 1 of MODE parameter indicates this
mode.)
Set output “ON” for a user-configured time period (equal to the transition time) or until the new
state is reached, whichever occurs first. (Indicate this mode by setting bit 2 of the MODE
parameter.)
Maintain output “ON” continuously, until a new command is given. This mode also has a time-
out associated with it, but the pulsing continues after the time-out occurs. If the operation fails
(device does not reach the commanded state) the operation is flagged as a failure, and the
pulsing is discontinued until a new command is given. (This mode is indicated by bit 3 of the
MODE parameter.)
For the case where the device has only one output (no feedbacks), the output is set to “ON” (or
“OFF”) continuously depending on whichever command is requested. There are no time-outs for
this case.
A device always writes to its output(s) when a new change of state command occurs regardless
of the state of its input(s). If the device command is from other application logic, care should be
taken to ensure that the command is maintained or pulsed as needed.
The device continuously checks for change of state commands when it is not in the process of
executing one. The device executes a change of state command when it is first set “ON.” If the
command stays “ON,” the device treats it as a new command when it finishes executing the last
command. Since the device writes to its output(s) when a new command occurs, its output(s)
cycle continuously “ON” and “OFF” if the following are true:
A change of state command is “ON” and it matches the state of the device's input(s).
The device is configured to set its output(s) “ON” for a certain amount of time, then “OFF.”
Emergency Overrides
In addition to the change of state commands, in each of the operating modes there are two other
commands: Emergency Start/Open/Trip and Emergency Stop/Close/Reset.
These two commands are generated by external logic in the Controller and can act as emergency
overrides over all other commands, including Stop Travel.
OW351_R1100 133
5.28 DEVICE
Whenever either the Emergency Open, or Emergency Close input becomes true, the DEVICE
algorithm forces the device to its default state and attempts to get the device to the commanded
state. (If the DEVICE algorithm is not configured to ignore failures, t he emergency command
executes only once.) If both emergency overrides are set at the same time, the device remains on
its present course of action. Any occurrence of an override forces the device to its default mode.
As long as either Emergency input is set, the DEVICE algorithm ignores all Auto commands to
drive the device. The device may also be configured to have the Emergency inputs override the
Manual commands or the Manual commands override the Emergency inputs. Upon removal of
the emergency override, the device returns to servicing commands of its default mode.
Note: Emergency overrides, lik e all other commands, are ignored when the device is tagged out
or in Local Mode.
Alarming
The DEVICE algorithm supports seven types of alarms. All of these alarms , except Trips, require
operator acknowledgment. The device conditions which can produce alarms are:
Failed Operations.
Failures to Respond.
Trips.
Alarm State.
Sensor Failures.
Emergency Overrides.
Attention (Trouble).
Failed Operations
If the Failed Operations alarm is configured, the DEVICE algorithm puts the device in alarm
whenever the equipment does not complete a change-of-state command (for example, if a valve
is commanded to open and it does not do so within the user-specified time). A Failed Operation
Alarm clears upon the next Open, Close, or Stop command to the device.
Failure to Respond
If the Failure to Respond alarm is configured, the DEVICE algorithm puts the device into alarm if
the feedbacks do not reflect an “In Transition” state within a user-specified number of loops. The
“In Transition” state must be that both feedbacks have a value of 0.
Trips
If Trip alarms are configured, the DEVICE algorithm puts the device into alarm whenever the
equipment unexpectedly changes state (for example, when a breaker trips open). A Trip Alarm
clears when you acknowledge the Trip by commanding the device to the Tripped state. Trip Alarm
returns do not require acknowledgment by the user.
Alarm State
The device can be configured to go into alarm based on a us er-defined state. The alarm clears
only when the device returns to the non-alarmed state. These alarms must be acknowledged by
the user.
134 OW351_R1100
5.28 DEVICE
Sensor Failures
Emergency Override
The Emergency Override alarm is generated any time an override occurs and the device is not at
the override state. For example, the occurrence of an Emergency Open would generate an alarm
if the device is Closed. If both override inputs happen to become true at the same time, an alarm
is generated regardless of the state of the device.
Attention
The Attention (Trouble) alarm is caused by different conditions depending on how the device is
configured. Currently, the standard DEVICE algorithm does not generate an ATTENTION alarm.
If the device is configured to alarm a combination of conditions, the points are put into alarm when
either one or more of the alarm conditions exist.
Clearing Alarms
Upon Tagging Out, Scan Removing, or putting a device into Local mode, t he following alarms are
cleared:
Failed Operation.
Failure to Respond.
Sensor Failures.
Trips.
Attention.
A State Alarm, however, is not cleared by any of the conditions mentioned above. It must be
cleared by commanding the device.
Tagging out or going to Local mode clears any Emergency Override present.
OW351_R1100 135
5.28 DEVICE
The status information mentioned above comes from various flags (bits) in certain fields in the
packed point and algorithm record.
The A2 field of the Packed point (DVCE) has the following information:
BI T D E S C R I P TI O N
Bit 0 Current State. This bit indicates the current state of the feedback signals. In case feedback
signals give conflicting data, the last known state is reported. When scan removed, the last
command state is reported.
Bit 1 In Transition. This bit indicates the device algorithm is currently in the process of trying to
change the state of its equipment. The bit is set true when the device starts to execute a
command. It is reset when the feedback signals indicate the operation is complete or the
operation has failed.
Bit 2 Operation Failed. This bit is set following any unsuccessful attempt to change the state of
the equipment. It remains set until the next attempt is made to change the state of the
equipment. Failed operation is not indicated if the device is scanned off.
Bit 3 Tripped. This bit is set any time the equipment changes state on its own, not by the
algorithm. It remains set until the Trip Acknowledge command is received. If it is not
acknowledged, no other change of state operations, in any mode, is processed. The tripped
bit is not set when the device is Tagged Out or Scanned Removed.
Bit 4 Stopped. This bit is set whenever the device is commanded to stop. The bit remains set
until the next attempt is made by the device to change the state of the equipment.
Bit 5 Emergency Close. This bit reflects the status of the override inputs to the device.
136 OW351_R1100
5.28 DEVICE
BI T D E S C R I P TI O N
Bit 6 Emergency Open. This bit reflects the status of the override inputs to the device.
Bit 7 Last Commanded State. This bit reflects the last known state of the device.
Bit 8 Local Mode. This bit indicates that the device is in local mode.
Bit 9 Manual Mode. This bit indicates that the device is in manual mode.
Bit 10 Auto Mode. This bit indicates that the device is in auto mode.
Bit 11 Reserved.
Bit 12 Attention. This bit indicates certain error conditions are present.
Bit 13 Failed to Respond. This bit indicates that the device did not respond to a command.
Bit 14 Locked Out. This bit indicates that the state of the device is locked out.
Bit 15 Tagged Out. This bit indicates that the state of the device is tagged out.
The C5 field in the device algorithm holds the command word. This command word is the
interface between a Controller and a device. The bits in the C5 field are defined in the following
table:
BI T D E S C R I P TI O N
OW351_R1100 137
5.28 DEVICE
Alarming
The following fields in the Packed point (DVCE) must be set for alarming:
Alarming Parameters
T YP E OF A L AR MI N G FI E L D S TO B E SET
Operate, Sensor, Trips, Overrides and Attention, State Set(0) Set E0 to 0x386d and E1 to 0x386c.
The C4 field in the algorithm record defines the mode configuration. The bits in the C4 field are
defined in the following table:
BI T MOD E DE S C R I P TI O N
* Bits 1, 2, and 3 are not meant to b e used together. Only one of these b its should b e used at a time.
Also, these options apply to START/OPEN and STOP/CLOSE commands only. The STOP TRAVEL
command uses Bit 3 regardless of what is selected.
138 OW351_R1100
5.28 DEVICE
The C7 field in the algorithm record defines the emergency Open/Close configuration. The bits in
the C7 field are defined in the following table:
BI T MOD E DE S C R I P TI O N
Bit 5 Off The Trip Acknowledge action causes a command to the output(s)
based on the current feedback state.
Bit 6 Off The OPRM (Open Permissive) does NOT apply to the EMOP
(Emergency Open) input.
Bit 7 Off The CPRM (Close Permissive) does NOT apply to the EMCL
(Emergency Close) input.
OW351_R1100 139
5.28 DEVICE
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
140 OW351_R1100
5.28 DEVICE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 141
5.28 DEVICE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
142 OW351_R1100
5.28 DEVICE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 143
5.29 DEVICESEQ
5.29 DEVICESEQ
Description
The DEVICESEQ algorithm provides an interface between a control logic function and a
MASTERSEQ algorithm. In the most common application configuration, the logic control is utilized
to control a particular device. In this configuration, the MASERSEQ algorithm typically provides a
supervisory control function of multiple devices. Refer to the MASTERSEQ reference pages (see
page 335) for details on the operation of the MASTERSEQ algorithm.
The DEVICESEQ algorithm communicates with the associated MASTERSEQ algorithm via a
packed group point status point. The DEVICESEQ algorithm interfaces to the control logic via
individual inputs and outputs. Refer to the template definition table for details on the algorithm
inputs, outputs, and configuration parameters.
Functional Symbol
Details of Operation
The DEVICESEQ algorithm provides the MASTERSEQ with the status information of the
associated device. This status information is outlined in the following status information section.
The DEVICESEQ algorithm also transfers the value of the GO bit in the status point to the STRT
output. As long as the GO bit in the status point is TRUE, the associated device is considered to
be running.
The algorithm can also be configured to utilize an internal failure timer. This timer monitors the
amount of time that elapses while the device is running. The timer stops accumulating time when
either the PASS or FAIL input becomes TRUE. The elapsed time is compared to the value of the
TARG parameter each execution cycle of the algorithm. The internal timer expires when the
accumulated time becomes greater than or equal to the value of TARG parameter and is greater
than zero. Setting the value of the TARG parameter greater than zero enables the failure timer. If
the failure timer is enabled, the accumulated time is always stored in the R3 field of the algorithm.
In addition, the accumulated time is also stored in the optional ACT output point.
The algorithm also incorporates an additional internal timer that stores the time that has elapsed
while the device was running. This timer value is stored in both the optional TIME output and the
R4 field of the algorithm record. This value is independent of the internal failure timer and is
always updated whether the internal failure timer is utilized or not. The accumulated time in both
timers is calculated based on loop time.
During the first pass mode of the controller and when the RESET bit in the status point (MSTR) is
TRUE, the DEVICESEQ algorithm sets the elapsed time for both the step timer and the internal
failure timer to zero.
144 OW351_R1100
5.29 DEVICESEQ
Status Information
The DEVICESEQ algorithm provides the attached MASTERSEQ algorithm with the following
status information:
It provides an indication that the associated device is ready for a remote start. The device is
ready for remote start when the RDY input is TRUE. The value of the RDY input is then
transferred to the READY bit of the status point during each execution cycle of the algorithm.
It provides an indication that the associated device has failed. The device is failed when the
FAIL input is TRUE. The value of the FAIL input is transferred to the FAILED bit in the status
point during each execution cycle of the algorithm.
It provides an indication that the associated device has complet ed operation when the PASS
input is TRUE. The value of the PASS input is transferred to the SUCCESS bit during each
execution cycle of the algorithm.
Freeze Mode
The purpose of the freeze mode is to preserve the operating state of the algorithm after the
device has completed operation. The algorithm can be configured to freeze the value of the bits in
the status point after the algorithm has been selected by the attached MASTERSEQ. As a result,
this enables you to determine and evaluate the performance of the device at a later point in time.
A DEVICESEQ algorithm is selected when the INSTEP bit in the status point is TRUE. If the FRZ
field in the algorithm is initialized to “FREEZE”, the algorithm does not update the status point
after the INSTEP bit transitions from TRUE to FALSE. Thus, the status bits that originate with the
DEVICESEQ retain their previous values. This state is referred to as freeze mode.
In freeze mode, the algorithm sets the FROZEN bit to logic 1 in the status point. In order to clear
the freeze mode condition, the attached MASTERSEQ algorithm must be reset. This causes the
RESET bit in the status point to become TRUE and the DEVICESEQ resets according to the rules
outlined in the initial state and reset section.
Note: Emerson does not recommend using freeze mode with an associated MASTERSEQ
algorithm which is operating in priority mode. See the MASTERSEQ reference pages (see page
335) for more details on priority mode operation.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 145
5.29 DEVICESEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
146 OW351_R1100
5.29 DEVICESEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
B I T N U MB E R O R I G I N ATO R S I G N AL NAME DE S C R I P TI O N
8 - 15 Reserved for - -
future use
OW351_R1100 147
5.30 DEVICEX
5.30 DEVICEX
Description
The DEVICEX algorithm combines the commands to open and close or start and stop a piece of
equipment with feedback signals indicating the command was accomplished. Devices allow
controlled access of the equipment they own and simplify the operation of the equipment. This
algorithm provides digital outputs that reflect how the I/O outputs of the device are being
maintained and the different status/mode conditions of the device.
Signal Combinations
With one output and no feedback, the DEVICEX algorithm sets the device to a defined state (on,
off, start, stop, open, close) when commanded.
148 OW351_R1100
5.30 DEVICEX
With one output and one feedback, the DEVICEX algorithm can set the output to a defined state,
set the “In Transition” bit (A2 field of bit 1 of the device record), and then monitor the input. If the
input's state does not match the output state within a user- specified amount of time, the device
indicates a failed operation has occurred. If the feedback indicates the desired state is reached
within the user-specified time, the device sets its current state field to the appropriate value. In
either case, the In Transition bit resets at the end of the operation.
OW351_R1100 149
5.30 DEVICEX
With two digital outputs and two digital feedbacks, the DEVICEX algorithm can set the appropriate
output to “1” or ON and wait for the appropriate feedback to be true. When the appropriate
feedback indicates true, the device sets its current state field to the appropriate state. If the
feedback does not indicate the appropriate state is reached within the user-specified time, the
device status display indicates a failed operation.
150 OW351_R1100
5.30 DEVICEX
With two digital outputs and one feedback, the DEVICEX algorithm can set the appropriate output
to “1” or ON and wait for the feedback to go to the desired state. When the feedback indicates the
new state, the device sets its current state field to the appropriate state. If the feedback does not
indicate the appropriate state was reached within the user-specified time, the device indicates a
failed operation.
OW351_R1100 151
5.30 DEVICEX
With three outputs and two feedbacks, the algorithm can set the appropriate output to “1”
according to the OPEN/CLOSE, START/STOP, or STOP TRAVEL command requested. If the
request is an Open or Close command, the feedbacks are monitored to see if the new state is
reached. When the feedbacks indicate the new state, the device's current state bit is updated to
the appropriate state. If the feedbacks do not indicate the appropriate state within the user-
specified time, the device indicates a failed operation. If the command is a Stop Operation
request, the algorithm writes a “1” to the Stop Travel output and indicates that the device is
stopped.
152 OW351_R1100
5.30 DEVICEX
Control Operation
If the state of the I/O is indeterminate (that is, when both input status bits are equal to 1, or both
are equal to zero and the device is not being commanded to another state), the Sensor Failure bit
(bit 2 and 3 of the 1W field of the DVCE point) in the device record is set and the quality is set to
bad. Note, that once a device is commanded to another state, the “In Transition” status is set to
true as soon as the algorithm starts driving the device to the commanded state. The “In
Transition” status is reset when the device feedback indicates the new state, and the operation is
successful. If the operation fails, and the device indicates it is neither open nor closed (both bits of
the feedbacks are zero or one), the “In Transition” status remains set and the Input Sensor Failure
bit is not set. However, the Operation Failed bit (bit 2 of the A2 field of the DVCE point) is set.
The device with two feedbacks may also be configured to display a “Failure to Respond” status. If
you configure the device to have a response time, the failure occurs if both feedbacks are not at a
zero (clear) state within the defined response time. If a “Failure to Respond” occurs, there is no
“Operation Failure” since the algorithm waits for a new command to process following the
response failure. However, if the device is Stopped and the feedback s indicate a zero condition,
the Sensor Failure bit is not set.
The digital inputs and outputs used by the DEVICEX algorithm can either be signals read from or
written to I/O cards, other digital process points contained in the system, or a combination of the
two.
Whenever a device experiences a failed operation (or response failure), it may ignore additional
requests for state changes or it may continue servicing such requests. This depends on how the
device is configured (bit 4 of the C4 field of the algorithm record). You may want a DEVICEX
algorithm to ignore further requests after a piece of equipment has failed in order to prevent
further damage to the equipment. Regardless of how a device is configured, it services at least
one request subsequent to each change of operating mode (for example, Auto Mode to Manual
Mode). If the device is configured to ignore requests after a failure, it displays the status
“LOCKOUT” when a failed operation (or response failure) occurs.
Control Modes
A device is put into one of three modes by the operator by pressing the appropriate control key
(located on the Control Panel or Ovation Keyboard) or specified function key (located on a
standard keyboard). Note that the device must be configured to operate in that mode. Therefore,
the DEVICEX has three modes of operation that can be adjusted during monitoring. These modes
are as follows:
AUTO
MANUAL
LOCAL
Auto Mode
Auto Mode allows the Controller application program to control the device through user-
programmed logic. The device cannot go into Auto mode unless it is configured to operate in that
mode.
Once configured for Auto mode, the device can enter Auto mode if one of the following occurs:
OW351_R1100 153
5.30 DEVICEX
The Reject to Auto (ARE) input becomes true and both Manual (MRE) and Local (LRE)
rejects are false.
The default mode of the device is Auto, and the DEVICEX algorithm is in its first pass.
Upon a failed operation if the device is configured.
The device exits Auto mode whenever one of the following happens:
The device may be configured (bit 6 of the C4 field) to go to Manual mode when a change of state
command is entered. If this is the case, pressing the following control keys causes the device to
go to Manual mode:
Start/Open
Stop/Close
Stop Travel (discontinue operation in progress)
When in Auto Mode, the DEVICEX algorithm accepts commands from the digital process points
that are linked to the device through the DEVICEX algorithm. Possible commands are:
Stop/Close
Start/Open
Stop Travel (discontinue operation in progress)
Emergency OPEN/START Override
Emergency CLOSE/STOP Override
The device does not process any Manual or Local commands while in Auto mode.
Manual Mode
Manual Mode allows the operator to control the device with the control keys. The device cannot
go into Manual Mode unless it is configured for that mode. Once the device is configured, it can
enter Manual Mode when one of the following occurs:
The operator requests Manual mode by pressing the Manual Mode request key.
The status of the device is a return from Tag Out and its default mode is Manual.
The Reject to Manual (MRE) input goes true.
Upon startup of the Controller, the default mode of the device is Manual.
There is an occurrence of an Emergency Override and the default mode of the device is
Manual.
Upon a failed operation, if the device is configured.
154 OW351_R1100
5.30 DEVICEX
The device may be configured to go to Manual mode when a change of state command is
entered. In this case, pressing the following control keys causes the device to go to Manual mode:
Start/Open
Stop/Close
Stop Travel (discontinue operation in progress)
The device exits Manual Mode whenever one of the following happens:
When in Manual Mode, the DEVICEX algorithm accepts commands from the following possible
commands:
Start/Open
Stop/Close
Stop
When in Manual Mode, the DEVICEX algorithm allows the Emergency Override to the device only
if the device is configured (see bit 0 in C4 field) such that the overrides have precedence over the
operator's commands.
In addition, when in Manual Mode, the DEVICEX algorithm does not process any Auto and Local
commands to Close, Open, or Stop the devices.
Local Mode
Local Mode is the lowest level mode of operation for the device. A device can enter this mode
only if the following two conditions are met:
The device exits Local mode whenever one of the following happens:
The operator Tags Out the device.
The Reject to Manual (MRE) input goes true.
A Failed Operation occurs and the device is configured to enter Manual mode when it fails.
When in Local Mode, the DEVICEX algorithm accepts commands. Commands are digital process
points that are linked to the device through the DEVICEX algorithm. Possible commands are:
Stop/Close
Start/Open
Stop Travel (discontinue operation in progress)
Emergency OPEN/START Override
Emergency CLOSE/STOP Override
As long as the device is in the Local mode, the DEVICEX algorithm does not execute any
commands from the Auto and Manual modes. However, the Emergency Overrides is honored
when the device is in Local mode.
OW351_R1100 155
5.30 DEVICEX
There are several commands that are requested with keys and are executed if the device is in
Auto, Manual or Local mode. These commands are:
Tag Out the Device
Acknowledge Trip
Auto mode request
Manual mode request
Local mode request
Tag Out
When in Tag Out Mode, the device ignores all commands except “Remove Tag Out”. The device
goes to its default mode when the Tag Out is removed.
Lock Out
A subset of the Tag Out mode is the device “LOCK OUT” mode. Lock out occurs if the device is
configured (see bit 4 C4 field) to ignore subsequent commands to change state after an operation
fails. In other words, the device has only one opportunity to change state in a particular mode. If
the operation fails, the DEVICEX algorithm does not accept another Open/Start or Close/Stop
command while locked out.
A device may be removed from a Lock Out condition by any of the following actions:
Pressing the Auto, Manual or Local mode control keys.
Tagging out the device.
Emergency Overrides
In addition to the change of state commands, in each of the operating modes there are two other
commands: Emergency Start/Open/Trip and Emergency Stop/Close/Reset.
These two commands are generated by external logic in the Controller and can act as emergency
overrides over all other commands, including Stop Travel.
Whenever either the Emergency Open, or Emergency Close input becomes true, the DEVICEX
algorithm forces the device to its default state and attempts to get the device to the commanded
state. (If the DEVICEX algorithm is not configured to ignore failures, the emergency command
executes only once.) If both emergency overrides are set at the same time, the device remains on
its present course of action.
As long as either Emergency input is set, the DEVICEX algorithm ignores all Auto and Local
commands to drive the device. The device may also be configured to have the Emergency inputs
override the Manual commands or the Manual commands to override the Emergency inputs.
Upon removal of the emergency override, the device returns to its default mode.
Note: Emergency overrides, lik e all other commands, are ignored when the device is tagged
out or in Local Mode.
156 OW351_R1100
5.30 DEVICEX
Change of State
In general, when a change of state command is in progress, it is continued until the device
reaches the new state or until a time out occurs. The following conditions cause an operation in
progress to be discontinued:
The device is Tagged Out, resulting in inputs being read and outputs not set to true. They are
left as they were at the time of Lock Out.
A Stop (discontinue operation) command is requested by the current control mode and an
Emergency Override is not in progress. However, if the device is in Manual mode, and it is
configured such that the Emergency Overrides do not have priority over Manual commands, a
Manual Stop request overrides the Emergency command.
In order for a change of state command to be executed, its proper permissive bit must be true.
For example a Manual Close/Stop command is only executed if the Close/Stop permissive bit of
the device is true. The Emergency Override and Stop (discontinue operation) commands do not
require any permissives to be true in order to be executed.
The permissives of a device are set to true on start-up and remain true unless the DEVICEX
algorithm is used to update them.
The amount of time that a device allows for the equipment to change state following a command
can be set by the user. You must specify the units of time for transition (tenths of a second,
seconds, or minutes), and the maximum number of time units to get to the set and reset states.
You can also specify a time period (in loops) for the equipment to respond to a command.
For devices with feedback, the amount of time that the DEVICEX algorithm sets the appropriate
output to “ON” can also be configured by the user. The following modes are supported:
Set output “ON” for a user-configured time period (less than the transition time), or until the
new state is reached, whichever occurs first. (Indicate this mode by setting bit 1 of C4 field.)
Set output “ON” for a user-configured time period (equal to the transition time) or until the new
state is reached, whichever occurs first. (Indicate this mode by setting bit 2 of the C4 field.)
Maintain output “ON” continuously, until a new command is given. This mode also has a time-
out associated with it, but the pulsing continues after the time-out occurs. If the operation
should fail (device does not reach the commanded state) the operation is flagged as a failure,
and the pulsing discontinues until a new command is given. (Indicate this mode by setting bit
3 of the C4 field.)
For the case where the device has only one output (no feedbacks), the output is set to “ON” (or
“OFF”) continuously depending on whichever command is requested. There are no time-outs for
this case.
A device always writes to its output(s) when a new change of state command occurs regardless
of the state of its input(s). If the device command is from other application logic, care should be
taken to ensure that the command is maintained or pulsed as needed.
The device continuously checks for change of state commands when it is not in the process of
executing one. The device executes a change of state c ommand when it is first set to “ON.” If the
command stays “ON,” the device treats it as a new command when it finishes executing the last
command. Since the device writes to its output(s) when a new command occurs, its output(s)
cycles continuously “ON” and “OFF” if the following are true:
A change of state command is “ON” and it matches the state of the device's input(s).
The device is configured to set its output(s) “ON” for a certain amount of time, then “OFF”.
OW351_R1100 157
5.30 DEVICEX
Alarming
The DEVICE algorithm supports seven types of alarms. All of these alarms, except Trips, require
operator acknowledgment. The device conditions which can produce alarms are:
Failed Operations
Failures to Respond
Trips
Alarm State
Sensor Failures
Emergency Overrides
Attention (Trouble)
Failed Operations
If the Failed Operations alarm is configured, the DEVICEX algorithm puts the device in alarm
whenever the equipment does not complete a change-of-state command (for example, if a valve
is commanded to open and it does not do so within the user-specified time). A Failed Operation
Alarm clears upon the next Open, Close, or Stop command to the device.
Failure to Respond
If the Failure to Respond alarm is configured, the DEVICEX algorithm puts the device into alarm if
the feedbacks do not reflect an “In Transition” state within a user-specified number of loops. The
“In Transition” state must be that both feedbacks have a value of 0.
Trips
If Trip alarms are configured, the DEVICEX algorithm puts the device into alarm whenever the
equipment unexpectedly changes state (for example, when a breaker trips open). A Trip Alarm
clears when you acknowledge the Trip by commanding the device to the Tripped state. Trip Alarm
returns do not require acknowledgment by the user via the Alarm window since they are c leared
by commanding the device.
Alarm State
The device can be configured to go into alarm based on a user-defined state. The alarm clears
only when the device returns to the non-alarmed state. These alarms must be acknowledged by
the user.
Sensor Failures
Either one or both of the following conditions cause a Sensor Failure alarm:
The device feedbacks are indeterminate (that is, both show a 00 or 11 status) and the device
is not in transition. This is an input sensor alarm.
The outputs do not reflect the value written to them (output sensor alarm).
158 OW351_R1100
5.30 DEVICEX
Emergency Override
The Emergency Override alarm is generated any time an override occurs and the device is not at
the override state. For example, the occurrence of an Emergency Open generates an alarm if the
device is Closed. If both override inputs happen to become true at the same time, an alarm is
generated regardless of the state of the device.
Attention (Trouble)
If the device is configured to go into alarm based on a combination of conditions, the point is put
into alarm when either one or more of the alarm conditions exist.
Clearing Alarms
Upon Tagging Out, Scan Removing, or putting a device into Local mode, the following alarms are
cleared:
Failed Operation
Failure to Respond
Sensor Failures
Trips
Attention
A State Alarm, however is not cleared by any of the conditions mentioned above. It must be
cleared by commanding the device.
Tagging out or going to Local mode clears any Emergency Override present.
OW351_R1100 159
5.30 DEVICEX
The status information mentioned above comes from various flags (bits) in certain fields in the
packed point and algorithm record.
The A2 field of the Packed point (DVCE) has the following information: The bits in the A2 field are
defined in the following table:
BI T D E S C R I P TI O N
Bit 0 Current State. This bit indicates the current state of the feedback signals. In case feedback
signals give conflicting data, the last known state is reported. When scanned removed the
last command state is reported.
Bit 1 In Transition. This bit indicates the device algorithm is currently in the process of trying to
change the state of its equipment. The bit is set true when the device starts to execute a
command. It is reset when the feedback signals indicate the operation is complete or the
operation has failed.
Bit 2 Operation Failed. This bit is set following any unsuccessful attempt to change the state of
the equipment. It remains set until the next attempt is made to change the state of the
equipment. Failed operation are not indicated if the device is scanned off.
Bit 3 Tripped. This bit is set any time the equipment changes stage on its own, not by the
algorithm. It remains set until the Trip Acknowledge command. If it is not acknowledged, no
other change of state operations, in any mode are processed. The tripped bit is not set
when the device is Tagged Out or Scanned Removed.
Bit 4 Stopped. This bit is set whenever the device is commanded to stopped. The bit remains
set until the next attempt is made by the device to change the state of the equipment.
Bit 5 Emergency Close. This bit reflects the status of the override inputs to the device.
160 OW351_R1100
5.30 DEVICEX
BI T D E S C R I P TI O N
Bit 6 Emergency Open. This bit reflects the status of the override inputs to the device.
Bit 7 Last Commanded State. This bit reflects the last known state of the device.
Bit 8 Local Mode. This bit indicates that the device is in local mode.
Bit 9 Manual Mode. This bit indicates that the device is in manual mode.
Bit 10 Auto Mode. This bit indicates that the device is in auto mode.
Bit 11 Reserved.
Bit 12 Attention. This bit indicates certain error conditions are present.
Bit 13 Failed to Respond. This bit indicates that the device did not respond to a command.
Bit 14 Locked Out. This bit indicates that the state of the device is locked out.
Bit 15 Tagged Out. This bit indicates that the state of the device is tagged out.
The C5 field in the DEVICEX algorithm holds the command word. This command word is the
interface between a Controller and the algorithm. The bits in the C5 field are defined in the
following table:
BI T D E S C R I P TI O N
OW351_R1100 161
5.30 DEVICEX
Alarming
The following fields in the Packed point (DVCE) must be set for alarming:
Alarming Parameters
T YP E OF A L AR MI N G FI E L D S TO B E SET
Operate, Sensor, Trips, Overrides and Attention, Set E0 to 0x386d and E1 to 0x386c
State Set(0)
The amount of time a device allows for the equipment to change state following a command is
user-configurable. You must specify the units of the time (tenths of a second, seconds, or
minutes) to measure the transition time in, and the maximum number of tim e units to get to the
set and reset states. You may also specify a time period (in loops) for the equipment to respond
to a command.
Time Units field (D0 field in the algorithm record) - holds the user-entered time units for
the set and reset time-outs. Valid values are 0 for tenth of seconds, 1 for seconds, and 2 for
minutes.
Set Time-out field (D2 field in the algorithm record) - holds the user-entered value. The
maximum number for tenth of a second and second is 255. The maximum number for
minutes is 100.
Reset Time-out field (YT field in the algorithm record) - holds the user-entered value. The
maximum number for tenth of a second and second is 255. The maximum number for
minutes is 100.
Time to Respond field (YP field in the algorithm record) - applies only to devices with two
feedbacks. If this value is non-zero, the device feedbacks must respond to a command within
the response time or the operation is discontinued and a 'Failure to Respond' alarm is
generated.
The C4 field in the algorithm record defines the mode configuration. The bits in the C4 field are
defined in the following table:
BI T MOD E D E S C R I P TI O N
162 OW351_R1100
5.30 DEVICEX
BI T MOD E D E S C R I P TI O N
Bit 1 On Set output 'ON' for a configured time period (less than the time -
out). If this bit is set, the algorithm maintains the appropriate
output for the number of loops in the Pulse Time or until the
operation is successful, whichever occurs first.
Bit 2 On Set output 'ON' until a user-configured time-out (or the operation
is successful). The transition times for setting and resetting the
device are entered in the Set Time-out and Reset Time-out fields.
Bit 3 On Set output 'On' continuously until a new command is entered.
Bit 4 On Set Override Failure bit in the A2 field of the DVCE point.
Note: If bits 1, 2, and 3 are all zero, then the information in bits 3, 4, and 5 in the Custom
Configuration word is used to maintain/pulse the outputs.
The custom configuration (C7 field in the algorithm record) bits are defined below. You may also
define the mode(s) a device may operate in, the position the device may be tagged out in, and so
forth as defined in the following table:
BI T MOD E DE S C R I P TI O N
Bit 6 On The Auto Stop is maintained input (always on until the alg orithm turns
it off).
Off The Auto Stop is pulsed input.
OW351_R1100 163
5.30 DEVICEX
BI T MOD E DE S C R I P TI O N
Bit 7 On The Auto Start is maintained input (always on until the algorithm turns
it off).
Off The Auto Start is pulsed input.
Bit 8 On The Local Stop is maintained input (always on until the algorithm
turns it off).
Off The Local Stop is pulsed input.
Bit 9 On The Local Start is maintained input (always on until the algorithm
turns it off).
Off The Local Start is pulsed input.
Functional Symbol
164 OW351_R1100
5.30 DEVICEX
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 165
5.30 DEVICEX
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
166 OW351_R1100
5.31 DFIELD
5.31 DFIELD
Description
The DFIELD algorithm is used only with the hardware digital output variable points. It should be
used instead of “output digital hardware” I/O connectors in applications involving interfaces to
control elements (for example, valves and dampers).
The output digital point (FAIL) is TRUE when the algorithm detects a hardware error on the I/O
card.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 167
5.32 DIGCOUNT
5.32 DIGCOUNT
Description
The DIGCOUNT algorithm sets the output digital FLAG TRUE if M inputs or more of the N digital
inputs are TRUE (where N < 12, and M and N are constants). The output analog record is set
equal to the number of TRUE digital inputs.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
168 OW351_R1100
5.33 DIGDRUM
5.33 DIGDRUM
Description
The DIGDRUM algorithm is a software drum controller with up to 32 digital output values and up
to 50 steps. The outputs selected to be TRUE are based on the current step number and a list of
up to 50 initialized integer values. These integers contain 32 bits of data, which are then mapped
onto the 32 digital outputs. Thus, for each step, you can initialize any combination of TRUE and
FALSE states for any or all of the 32 outputs by converting a string of up to 32 bits into a
hexadecimal number.
Functional Symbol
OW351_R1100 169
5.33 DIGDRUM
These 50 integers should be input as hexadecimal numbers (for example, 0x1234). Refer to the
Binary to Hexadecimal Conversion Table (see page 6) for information on how to create a
hexadecimal number from 16 bits.
The current step number may be tracked to a selected step (TRIN) when in tracking mode (TMOD
= TRUE), increased (INC), or decreased (DEC). The current step number is only increased or
decreased on a FALSE to TRUE transition of INC and DEC. The maximum number of steps must
be initialized. When the current step number becomes greater than the number of steps, the
current step number is reset to one. If TRIN is a non-integer value, the algorithm rounds the value
to the nearest integer. Any value for TRIN not in the range of one to NMIN is converted to a one
by the algorithm.
The track input value (TRIN) and output value (OUT) are checked for invalid real numbers. If a
tracking request is received and TRIN is an invalid number, then the tracking request is ignored.
However, the current step can be increased (using INC) or decreased (using DEC) even when
TRIN is an invalid number.
If the algorithm calculates an invalid real number output, the value is invalid and the quality is set
to BAD.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
170 OW351_R1100
5.33 DIGDRUM
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 171
5.33 DIGDRUM
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
172 OW351_R1100
5.33 DIGDRUM
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 173
5.34 DIGITAL DEVICE
The Digital Device algorithm provides logic to control the following seven types of devices:
The Digital Device algorithm provides a digital alarm bit to be set for applicable devices. The
algorithm provides time delays for each device as needed, which keeps the device from failing
while the device is processing a command. The time delay for each device can be independently
tuned in the Control Builder. A run counter is maintained for the motor and the sampler devices
and can be reset by the Operator Keyboard. The algorithm keeps the count in local memory as
either hours, minutes, or seconds, and then saves it as an analog output.
Where applicable, there are three modes: AUTO, MANUAL, and OFF. When the device is in OFF
mode, the algorithm only tracks the inputs and does not respond to any control logic or operator
commands. When in AUTO mode, the device only responds to control logic, and in MANUAL
mode, the device only responds to the Program Keys on the Operator Keyboard (described in the
following table).
P R O G R AM KE Y D E S C R I P TI O N
P1 Close/Stop
In order for a device to respond to a command, the device must be available - not failed - and in
either MANUAL or AUTO mode. Where applicable, the algorithm can be reset either by a remote
reset device point, or by the Operator Keyboard. When the device is reset, the alarm output point
is always reset, along with the packed status alarm bits. When a device is in either the Failed or
the Unavailable condition, the device remains in the OFF mode until the problem is resolved and
the device is reset. The device is always put in the MANUAL mode when the reset is set and the
device is READY. The algorithm responds for both the Remote Reset and the Operator Reset in
any mode.
174 OW351_R1100
5.34 DIGITAL DEVICE
Description
The Controlled Sampler device has the option of having the Operator Keyboard on or off. The
priority is set in the Control Builder and can only be changed in the Control Builder. The list of
inputs and outputs are found in the Algorithm Definitions table.
If the Operator Keyboard is off, the keyboard keys are disabled, and the output (OUT1) of the
device follows the input (IN1). When the Operator Keyboard is on, the output follows the input
until the output is changed manually by the operator with either the STOP or START keys. The
output follows the input again once there is a change in the input.
The runtime counts when the output is set. The total runtime will not update when Sample Reset
Priority (SPRI) is set to "Operator Keyboard OFF." The operator has the ability to reset the
runtime when either priority is set. There are no modes, time delays, or alarms associated with
the Controlled Sampler. The runtime can be tuned by changing the RUNT parameter in the
Control Builder.
Functional Symbol
Algorithm Definitions
N AME LC T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
AL G . O P TI O N AL V AL U E POI N T
RE C O R D RE C .
FI E L D
OW351_R1100 175
5.34 DIGITAL DEVICE
N AME LC T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
AL G . O P TI O N AL V AL U E POI N T
RE C O R D RE C .
FI E L D
176 OW351_R1100
5.34 DIGITAL DEVICE
The Non-Controlled Valve does not accept control information from either the control logic or the
operator (see the Algorithm Definitions table for a list of inputs and outputs). The algorithm
activates the digital alarm bit when in the failed state (see the Truth table for states of the valve).
There are no modes, time delay, or run time associated with this device.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Truth Table
OW351_R1100 177
5.34 DIGITAL DEVICE
The Non-Controlled Motor does not accept control information from either the control logic or the
operator (refer to the Algorithm Definitions table for the list of inputs and outputs). The digital
alarm bit is set when the motor is either in the failed state or Unavailable state (refer to the Truth
table for the states of the motor). The Non-Controlled Motor has an analog run time output that
may be reset by the operator. The runtime value can be tuned in the Control Builder. There are no
modes or time delays associated with this device.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
178 OW351_R1100
5.34 DIGITAL DEVICE
Truth Table
OW351_R1100 179
5.34 DIGITAL DEVICE
The Simple Controlled Motor runs at one speed and in one direction when in operation. This
motor has the option of accepting start or stop commands from either the control logic or the
operator.
When the device is in AUTO mode, the algorithm accepts control commands from the Remote
Start (IN3) and Remote Stop (IN4) inputs. When the device is in MANUAL mode, the algorithm
accepts the control commands Stop and Start from the Operator Keyboard. Whenever a
command is processed in either AUTO or MANUAL mode, the outputs (OUT1 and OUT2) are set
accordingly for the duration of the time delay previously set in the Control Builder.
The Stop Permissive (IN8) must be set to allow the motor to be stopped. The Stop Permissive is
automatically set when no input is connect to IN8. Refer to the Algorithm Definitions table for the
list of inputs and outputs.
When the device fails to start or stop, the alarm triggers, but the device stays in the current mode
and continues looking for the proper combination of Running and Ready. When this combination
is detected, the alarm is reset and the device continues operating in a normal condition. All other
alarms put the device in OFF mode. Refer to the Truth table for the states of the motor.
The Simple Controlled Motor also has a status packed point that displays which alarm has been
set, the last command, and which mode it is currently in. Refer to the Output Status Bits table for
the list of the status bits.
Functional Symbol
180 OW351_R1100
5.34 DIGITAL DEVICE
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 181
5.34 DIGITAL DEVICE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Truth Table
BI T DE S C R I P TI O N
0 Failed to Stop
1 Failed to Start
2 Not Applicable
3 Not Applicable
4 Not Applicable
5 Device Unavailable
6 Device Deviation
7 Device Failed
8 Last Command Stop
9 Last Command Start
10 Not Applicable
11 Not Applicable
12 Not Applicable
13 Device Off
14 Device in Manual
15 Device in Auto
182 OW351_R1100
5.34 DIGITAL DEVICE
The Two-Speed or Bi-Directional Controlled Motor has the option of either running fast or slow, or
running forward or backward when in operation. This motor has the option of accepting start or
stop commands from either the control logic or the operator.
When the device is in AUTO mode, the algorithm accepts control commands from the Remote
Fast/Forward Start (IN4), Remote Slow/Reverse Start (IN5), and Remote Stop (IN6) inputs. When
the device is in MANUAL mode, the algorithm accepts the control commands Stop, Fast/Forward
Start, and Slow/Reverse Start from the Operator Keyboard. Whenever a command is processed
in either AUTO or MANUAL mode, the outputs (OUT1, OUT2, and OUT3) are set accordingly for
the duration of the time delay previously set in the Control Builder.
The Stop Permissive (IN10) must be set to allow the motor to be stopped. The Stop Permissive is
automatically set when no input is connected to IN10. This motor may be commanded to change
direction or speed without first being stopped. Refer to the Algorithm Definitions table for the list of
inputs and outputs.
The digital alarm bit is set when one of the following occurs:
The device is in the Failed state.
The device is in the Unavailable state.
The device changes running states without being commanded to do so.
The device fails to start or stop.
When the device fails to start or stop, the alarm triggers, but the device stays in the current mode
and continues looking for the combination of Running and Ready. When this combination has
been detected, the alarm is reset and the device continues operating in a normal condition. All
other alarms put the device in OFF mode. See the Truth table for the states of the motor.
The Two Speed or Bi-Directional Controlled Motor also has a status packed point that displays
which alarm has been set, the last command, and which mode it is currently in. See Output Status
Bits for the list of status bits.
Functional Symbol
OW351_R1100 183
5.34 DIGITAL DEVICE
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
184 OW351_R1100
5.34 DIGITAL DEVICE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Truth Table
BI T DE S C R I P TI O N
0 Failed to Stop
OW351_R1100 185
5.34 DIGITAL DEVICE
BI T DE S C R I P TI O N
7 Device Failed
8 Last Command Stop
9 Last Command Start Fast/Forward
10 Last Command Start Slow/Reverse
11 Not Applicable
12 Not Applicable
13 Device Off
14 Device in Manual
15 Device in Auto
186 OW351_R1100
5.34 DIGITAL DEVICE
Description
The Two-Speed and Bi-Directional Controlled Motor has the option of accepting start or stop
commands from either the control logic or the operator. This motor has the option of running in
any one of the following four states:
Fast and forward
Fast and reverse
Slow and forward
Slow and reverse
When the device is in AUTO mode, the algorithm accepts control commands from the Remote
Fast Forward Start (IN6), Remote Slow Forward Start (IN7), Remote Fast Reverse Start (IN8),
Remote Slow Reverse Start (IN9), and Remote Stop (IN10) inputs.
When the device is in MANUAL mode, the algorithm accepts t he control commands Stop, Fast
Forward Start, Slow Forward Start, Fast Reverse Start, and Slow Reverse Start from the Operator
Keyboard. Whenever a command is processed in either AUTO or MANUAL mode, the outputs
(OUT1, OUT2, OUT3, OUT4, and OUT5) are set accordingly for the duration of the time delay
previously set in the Control Builder.
The Stop Permissive (IN14) must be set to allow the motor to be stopped. The Stop Permissive is
automatically set when no input is connected to IN14. This motor may be com manded to change
direction or speed without first being stopped. See the Algorithm Definitions table for the list of
inputs and outputs.
The digital alarm bit is set when one of the following occurs:
The device is in the Failed state.
The device is in the Unavailable state.
The device changes running states without being commanded to do so.
The device fails to start or stop.
When the device fails to start or stop, the alarm triggers, but the device stays in the current mode
and continues looking for the proper combination of Running and Ready. When this combination
is found, the alarm is reset and the device continues operating in a normal condition. All other
alarms put the device in OFF mode. See the Truth table for the states of the motor.
The Two-Speed and Bi-Directional Controlled Motor also has a status packed point that displays
which alarm has been set, the last command, and which mode it is currently in. See the Output
Status Bits table for the list of status bits.
OW351_R1100 187
5.34 DIGITAL DEVICE
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
188 OW351_R1100
5.34 DIGITAL DEVICE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
OW351_R1100 189
5.34 DIGITAL DEVICE
Truth Table
190 OW351_R1100
5.34 DIGITAL DEVICE
BI T DE S C R I P TI O N
0 Failed to Stop
OW351_R1100 191
5.34 DIGITAL DEVICE
The Controlled Valve has the option of accepting commands from either the control logic or the
operator.
When the device is in AUTO mode, the algorithm accepts control commands from the Remote
Open (IN3) and Remote Close (IN4) inputs. When the device is in MANUAL mode, the algorithm
accepts the control commands Close and Open from the Operator Keyboard. Whenever a
command is processed in either AUTO or MANUAL mode, the outputs (OUT1 and OUT2) are set
accordingly for the duration of the time delay previously set in the Control Builder.
The Open and Close Permissives (IN8 and IN9) must be set to allow the valve to be opened or
closed. The Open and Close Permissives are automatically set when no input is connected to IN8
or IN9. See the Algorithm Definitions table for the list of inputs and outputs.
The digital alarm bit is set when one of the following occurs:
The device is in the Failed state.
The device opens or closes without being commanded to do so.
The device fails to open or close.
When the device fails to open or close, the alarm triggers , but the device stays in the current
mode and continues looking for the proper Open and Close input combination. When this
combination is found, the alarm is reset, and the device continues operating in a normal condition.
All other alarms put the device in OFF mode. See the Truth table for the states of the valve.
The Controlled Valve also has a status packed point that displays which alarm has been set, the
last command, and which mode it is currently in. See the Output Status Bits table for the list of the
status bits.
Functional Symbol
192 OW351_R1100
5.34 DIGITAL DEVICE
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 193
5.34 DIGITAL DEVICE
Truth Table
BI T DE S C R I P TI O N
0 Failed to Close
1 Failed to Open
2 Not Applicable
3 Not Applicable
4 Not Applicable
5 Not Applicable
6 Device Deviation
7 Device Failed
8 Last Command Close
9 Last Command Open
10 Not Applicable
11 Not Applicable
12 Not Applicable
13 Device Off
14 Device in Manual
15 Device in Auto
194 OW351_R1100
5.35 DISTRIBUTOR
5.35 DISTRIBUTOR
Description
The DISTRIBUTOR algorithm distributes an input signal (IN) into two or more (up to eight) analog
outputs (OUTx). The final value of the outputs will be the balance of the IN value, the number of
devices needed to satisfy the demands of the system, and other configuration options.
The DISTRIBUTOR algorithm is available in the Ovation 3.5 release and later.
Functional Symbol
5.35.1 Input, FNUM parame ter, and O utput pins (IN, FNUM, and OUT [1-8])
All algorithms connected to the IN and OUTx pins are required to be on a scale of 0 to 100. If an
IN pin is out of this range, the algorithm will substitute the closest boundary as the input value. If
the calculated OUTx value is out of range, the algorithm defaults to the nearest limit.
The FNUM parameter is defined as the number of devices required to cover a full load. It has a
range from 1 to the maximum number of algorithms connected to the OUTx pins. FNUM's default
value is 0, which the algorithm interprets and sets the FNUM parameter to the number of OUTx
pins currently connected to downstream algorithms. For example, if FNUM is set to zero and
three OUTx pins are connected, then the algorithm will use 3 as FNUM's value. In the default
configuration, each of the OUTx pins will be equal to the IN value, because FNUM would be equal
to the number of OUTx pins connected. See the following figure.
OW351_R1100 195
5.35 DISTRIBUTOR
In the default Distributor equation shown above, IN = the input value, FNUM = the number of
devices needed to satisfy the system demand, and Nc = the number of connected OUT pins.
In most cases, the sum of all the OUTx values will equal the product of the IN value and FNUM.
Note: For simplicity, equations are presented with default parameters when Base Gains (BG)
are equal to 100% and Corrections Gains are equal to 1.0.
All OUTx pins that are connected to another algorithm must be connected consecutively with no
sk ipped OUTx pins.
You can specify a lower number FNUM than the number of points connected to the OUTx pins.
For example, a Distributor algorithm is controlling three valves equally (such as an MASTATION
opening/closing physical valves), but the demand for this application is, at most. only what two
valves can provide. If all three valves were open 100%, the system would be overloaded. When
you lower FNUM from the number of OUTx pins to a lesser number (in this case, two), it is
equivalent to lowering the total output of three devices to a maximum output of what two devices
can provide.
You can set FNUM to exceed the number of OUTx pins connected, but this will have no effect on
the algorithm. The Distributor algorithm will reset FNUM internally back to the default (that is, to
the maximum OUTx pins connected).
Some configurations or tracking signals may change the Default Equation for the OUTx pins, but
the algorithm will achieve the Steady State, if possible.
The Exclusion (EXCL) feature allows you to ignore OUTx pins already connected to the algorithm
(this includes the tracking TRINx signals) by selecting the unwanted pins (see Internal and
External Control (see page 203) for how OUTx can be selected). The Distributor algorithm
subtracts these pins from the number of connected pins in the default equation. In addition, the
excluded OUTx pins are excluded from the Steady State equation.
When the OUTx pin is excluded, the values of the outputs will not change. This is achieved by
setting the Track Out (TOUT) TRACKing bit for one loop cycle. The value of Track Out is
calculated as follows:
196 OW351_R1100
5.35 DISTRIBUTOR
Note: For simplicity, equations are presented with default parameters when Base Gains are
equal to 100% and Corrections Gains are equal to 1.0.
Example
If the default settings are used, IN's value is set 50 and there are three OUTx pins connected,
each will equal 50. If one pin is excluded, TOUT will change from 50 to 33.3 and the TOUT
TRACKing bit will be set. Depending on what is driving the Distributor input, the IN value may
drop from 50 to 33.3. The remaining OUTx points would remain at 50 through the transition. Once
the excluded OUTx pins are included again, the algorithm recalculat es the OUTx values and will
move to the new values incrementally using the TRAT. When the newly included pin is re-
considered in the equation, TOUT's value may change drastically.
Based on the information above, the two OUTx pins that are not excluded are set to 75 and the
OUTx pin that was just included is 50. TOUT in this instance will jump to the average of the three
OUTx pins. TOUT will also pulse its TRACKing bit. In an MAStation, this will change the OUT pin
(and the Distributor's input) to equal the value of TOUT. All of the OUTx pins that were excluded
are then re-apportioned incrementally based on the moving values of the recently included pin.
The included OUTx pin is moving to the new OUTx value using the TRAT parameter (multiplied
by BGx).
OW351_R1100 197
5.35 DISTRIBUTOR
Tracking is applied to the input pin and all eight output pins (TRINx). When a downstream
algorithm sends one of the following tracking signals, the OUTx value will be controlled by the
downstream algorithm connected to it:
High/low limit.
TRACK bit (for example, an MAStation in manual mode).
Lower/raise inhibit
When the TRACK bit is set in TRINx, the Distributor relinquishes control of the OUTx value and
assigns the TRINx value directly to OUTx. The other OUTx values controlled by the Distributor
are redistributed depending on the TRINx values, as well as other changes in the algorithm.
Where:
Note: For simplicity, the figure above does not consider Base Gain (BG) and Correction Gains.
If high limit or raise inhibit tracking bits are set and the IN value is going up, the Distributor
algorithm will freeze the OUTx value on the last OUTx value, all other OUTx values will shift to
achieve SteadyState. This also applies when the low limit or lower inhibit bit is set and the IN
value is going down. When both a high and a low signal are set on the same TRINx, the OUTx pin
will equal TRINx until one (or both) of the downstream signals are released.
When the OUTx pin(s) are released from their downstream tracking signals, the Distributor will
rebalance the OUTx pins. The TRAT is applied to the released pins until all the OUTx values are
balanced.
198 OW351_R1100
5.35 DISTRIBUTOR
For the algorithm to reach Steady State, the sum of all the CGAIN inputs must equal the number
of all the attached OUTx pins. Since the correction gain can change, the current values may not
equal the number of OUTx pins all the time. To ensure equalization, each CGAIN is divided by the
"CGAIN Average." The new CGAIN values are then multiplied by the OUTx fields:
The CGAIN values will be applied in proportion to one another but will not unbalance the
algorithm's Steady State. For example, if all of the CGAIN values were equal to the maximum
value (1.5 or CMAX) and applied directly to the OUTx values, the Steady State equation would
not work. However, if CGAIN_Avg divides into each CGAINx value, it will work within the Steady
State equation.
Using CGAIN_Avg changes the value of the CGAINx, but the OUTx values will still be the same
proportional difference from each other. If the CGAINx values are 1.5, 1.5, and 0.7 for the first
three OUTx pins, OUT1 and OUT2 should be equal to one another, and OUT3 should be
proportionally less than the other OUTx values.
OW351_R1100 199
5.35 DISTRIBUTOR
The GAINx inputs have tracking signals attached to them (TRKGx). The TRKGx value is equal to
the internal input value IGx (Internal and External Control (see page 203)). This is provided for
external applications that change the OUTx values. If external inputs are switched to user control,
the external applications will have the information needed to make a smooth transition before
handing over control to a user diagram.
The Priority Deadband (PDB) function is defined as the priority of outputs that will be used to
compensate for small changes in the IN value. This mechanism is designed to protect devices
against excessive wear. For example, when a change in the IN value is small, only one or a few
selected outputs should be used; the rest of the signals should not change in value.
The Priority Deadband mechanism requires you to define which outputs are set in priority mode
and what is the value of the deadband parameter. The Deadband parameter defines the maximal
difference between the priority output and other non-priority outputs. If the difference in the
current step would exceed the deadband value. then all output signals (priority and non-priority)
are used in the calculations for this step. The following formula defines how the output value in
Priority mode is calculated.
Where:
200 OW351_R1100
5.35 DISTRIBUTOR
For a general example for how PDB is applied, refer to the following table:
0 50 200 50 50 50 50
1 49 196 48 48 50 50
2 48 192 46 46 50 50
3 47 188 47 47 47 47
4 46 184 45 45 47 47
5 45 180 43 43 47 47
6 44 176 44 44 44 44
Time 3, 6 At this time, the values are distributed normally because the differences between
priority and non-priority points would be bigger than the priority deadband (PDB=5).
The Base Gain (BGx) parameter gives the ability to re-apportion the final OUTx signals. The
range of BGx is from 100 (the default) to five (5) and anything outside that range will be
considered equal to 100.
BGx is applied to the OUTx equation only after everything else has been calculated.
When none of the OUTx pins have reached a high limit (for example: OUTx >= 100), BGx will
simply be the equation shown above. However, if the BGx causes an OUTx value to exceed its
high limits, then the Distributor algorithm will set those OUTx parameters to their limits (for
example: OUTx = 100) and the downstream algorithms will set the High Limit flags in the returned
TRINx fields. These pins are considered at a High Limit and need to be treated as if the High Limit
Flag was already set. To solve the other OUTx values and keep the Steady State, the algorithm
must solve all the other OUTx values with the Tracking Equation.
OW351_R1100 201
5.35 DISTRIBUTOR
The Distributor algorithm takes the following action in response to the information found in the
analog track signals (in the third status field), which are passed back from the downstream
algorithm:
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
1. The tracking bit is Pulsed ON if the selected EXCL outputs have changed from the previous
Task Cycle.
2. The tracking bit is set ON continually if all OUTx pins are excluded and/or all TRINx TRACK
bits are set.
The Lower Inhibits bit is set if all outputs are limited from down (TRACK, low limit, lower inhibit)
and Steady State equation is not met.
202 OW351_R1100
5.35 DISTRIBUTOR
The Raise Inhibits bit is set if all outputs are limited from top (TRACK, high limit, raise inhibit) and
the Steady State equation is not met.
The Low Limit bit is set if all outputs (excluded pins are not counted) are on low limit (0.0). In this
case, the Lower Inhibit bit is set as well.
The High Limit bit is set if all outputs (excluded pins are not counted) are on high limit (100.0). In
this case, the Raise Inhibit bit is set as well.
The other bits are “passed though” from the TRINx pins to the TOUT pin only if all the TRINx pins
have the same signal(s) set. This does not count pins that are excluded.
The Distributor has several parameters that can accept inputs from pin(s), as well as fields from
inside the algorithm record, but never both at the same time. These are called "selectable inputs,"
and they apply to the optional features EXCL mode, PDB Mode, and GAINx inputs.
External:
1. Two packed 16-bit input pins control the EXCL and PDB features. The packed points are
used to select the OUTx pins that are connected. Bit 0 is equal to OUT1 and Bit 7 is equal to
OUT8. (Bits 8 through 15 are not used.) To select the OUTx pin(s), set and hold a "1" in the
correct bit. To deselect an OUTx pin(s), set the required bit to "0."
2. The Correction Gain uses eight analog input pins (GAINx). Each pin corresponds to an
attached OUTx pin.
1. The EXCL and PDB each use a set of parameters for internal control (EXON\EXOFF and
PDON\PDOFF). One field is used to select OUTx pins, while the other field is used to deselect
OUTx pins. This parameter uses bit maps to choose the selected OUTx pins. For example, if
EXON = 0x5 then OUT1 and OUT3 will be selected. If EXOFF = 0x1, OUT1 is deselected, but
OUT3 remains unchanged. The fields reset to zero after they are applied to the algorithm.
2. The CGAIN uses eight LC record parameters to control the gain internally (IGx parameters).
FE ATU R E S EX TE R N AL I N TE R N AL
Note: The use of the selectable pins are optional. If the pins are not used, the operator must
use the internal fields in order to utilize this feature.
OW351_R1100 203
5.35 DISTRIBUTOR
You can switch between internal algorithm fields or external algorithm pins for EXCL mode, PDB
mode, and CGAIN. This can be done as follows:
1. The command signal pin (CMD) - a 16-bit packed point input pin:
a) To turn the input pin(s) ON for a specific function (and accept input from an external
application), the appropriate bit (1, 3, 5) must be set to "1."
b) To turn the input pin(s) OFF for a specific function (and accept input from the internal
algorithm field), the appropriate bit (0, 2, 4) must be set to "1."
c) If both appropriate bits (0, 1) or (2, 3) or (4, 5) are set to "1," the input pin(s) will be turned
OFF.
d) If both the appropriate bits (0, 1) or (2, 3) or (4, 5) are set to "0," the state will depend on
internal algorithm fields (see #2 below).
Note: The signals can be pulsed or held. If these signals are held at 1, you will not be able to
change its state from the internal algorithm fields.
204 OW351_R1100
5.35 DISTRIBUTOR
C O N TR O L AL G O R I TH M 1 6 -BI T P AC K E D
T YP E RE F E R E N C E P O I N T " CMD" RE S U L TS
There is a data init parameter for each of the selectable inputs to determine whether the input
pins are ON or OFF after first pass startup. If the pins XSEL and/or PSEL are OFF for the first
pass, an engineer can set the internal value of the EXCL and PBD selection bitmaps with the
FPEX and FPPR parameters. For example, an engineer can set FPEA to OFF , which will turn off
the XSEL pin for the first time the algorithm runs. Then they can exclude OUT1 and OUT3 for the
first pass by setting FPEX to 0x05.
FE ATU R E S FI R S T P AS S S TATE FI E L D S I N I T V AL U E S (O N L Y I F TH E P I N
I S OFF)
Exclusion FPEA (XSEL is ON/OFF after First FPEX (if FPEA is OFF)
pass)
Priority Deadband FPPA (PSEL is ON/OFF after First FPPR (if FPPA is OFF)
pass)
Correction Gain FPGA (GAINx is ON/OFF after First IG[1-8] (if FPGA is OFF)
pass)
OW351_R1100 205
5.35 DISTRIBUTOR
STAT1 Pins
B I TS DE S C R I P TI O N
0-7 A bitmap of OUTx pins that the Distributor has control over
8 GAIN input pins that are active
9 PDB input pins that are active
10 EXCL input pins that are active.
11 Track if Lower and Track if Higher conditions are active.
STAT2 Pins
B I TS DE S C R I P TI O N
Quality is propagated from the IN pin to all OUTx pins that are excluded. If a point is excluded, the
value and quality is taken from the TRIN point.
In order to assist with graphics programming, all output point SIDs are stored in fields in the
algorithm. This allows the graphic to access multiple SIDs by accessing a single SID (the
algorithm LC record).
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
206 OW351_R1100
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 207
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
208 OW351_R1100
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 209
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
210 OW351_R1100
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 211
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
212 OW351_R1100
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 213
5.35 DISTRIBUTOR
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
214 OW351_R1100
5.36 DIVIDE
5.36 DIVIDE
Description
The DIVIDE algorithm divides two gained and biased inputs. The output of the DIVIDE algorithm
is the result of the gained and biased IN1 divided by the gained and biased IN2. If the gained and
biased IN2 is zero, or an invalid real number, then the output is either the high or low limit
according to the sign of the IN1.
Note: If the algorithm receives an invalid value as the input, or if it calculates an invalid value as
the output, the drop is placed into alarm.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the third status field of an analog point to
the algorithm. This algorithm takes the following action in response to the information found in the
input signal TRIN:
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
OW351_R1100 215
5.36 DIVIDE
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the
definitions given in Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored.
Otherwise, the value of the conditional track bit is transferred to all output track points.
If the Conditional Track bit is set in the track input point, the analog value of all output
track points is calculated based on the analog value of the track input point.
The high and low limit flags and the tracking signals from the algorithms are outputs to TOUT, to
be used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT
is set BAD otherwise, the quality of OUT is set to the worst quality of the two inputs when not in
tracking mode. When tracking, the quality is set to the quality of the track input variable.
Note: If the algorithm generates an inverted track output, the IN1 value is used as t he track
output, unless it is invalid, The track output value is not updated if both the calculated track
output and INI input values are inverted.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
216 OW351_R1100
5.36 DIVIDE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 217
5.37 DROPSTATUS
5.37 DROPSTATUS
Description
The DROPSTATUS algorithm accesses and outputs the contents of any record field in the Drop
Status Record (DU) for a particular Controller. To access the contents of a record field, the field
number must be specified. If an invalid field number is entered, zero is written to the AOUT and
POUT output points.
The data in the DU record field is output as a packed point. If specified, the contents of the record
field can also be output as an analog value. (Refer to the Ovation Record Types Reference
Manual.)
Note: For Ovation 3.2 systems and later, the DROPSTATUS algorithm will allow any DU record
to be used as an input into the drop status.
Functional Symbol
Field Numbers
FI E L D NU MB E R FI E L D N AME
1 FA
2 FB
3 FC
4 FK
5 FS
6 FO
7 HC
8 TA
9 CT
10 RT
11 LN
12 E5
13 E6
14 GD
15 GL
218 OW351_R1100
5.37 DROPSTATUS
FI E L D NU MB E R FI E L D N AME
16 GI
17 GG
18 GH
19 NC
20 FF
21 JU
22 U4
23 U5
24 U6
25 U7
26 KM
27 VE
28 K0
29 K1
30 TR
31 NE
32 IS
33 IE
34 OP
35 OE
OW351_R1100 219
5.37 DROPSTATUS
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
220 OW351_R1100
5.38 DRPI1A
5.38 DRPI1A
Description
The DRPI1A algorithm converts the gray codes (IN1) to actual rod positions. On the first pass, the
rod position is always a zero value with BAD quality. For control rods, the calculation for
converting gray codes into steps is converting the gray code to a decimal number and adding the
two gray codes together and multiplying the sum by STEP. If there is an error reading either gray
code, or if the gray code is above the maximum range, only the good code is used in the
calculation and the resultant quality is set to FAIR. If gray code A is BAD, then the rod position is
equal to: ((converted gray code B times 2 times STEP) + (1/2 times STEP)). If the gray code B is
BAD, then the rod position is equal to: ((converted gray code A times 2 times STEP) - (1/2 times
STEP)). If both gray codes are BAD or above the limits, then the rod position is set to zero with
BAD quality.
If the rod is a shutdown rod and the converted gray codes added together equal BOTS, then the
rod position is equal to GAP and POOR quality. If the converted gray codes added together is
greater than BOTS, then the rod position is equal to TOPG plus the calculated position.
If bit 12 of IN1 is set, then the algorithm sets a two-second timer. When the timer expires, the
algorithm saves the current rod being scanned. During the first scan of any rod after the two
second timer has expired, a rod value of zero is allowed. At all other times a zero is not valid. If a
zero is not allowed, then any zero reading is ignored by setting the rod number (RODZ) to zero.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 221
5.38 DRPI1A
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
222 OW351_R1100
5.39 DVALGEN
5.39 DVALGEN
Description
The DVALGEN algorithm initializes a digital point. For the DVALGEN algorithm, the output is the
digital value stored in the tuning constant (VALU). This value can be used to force any digital
input to any algorithm to either a TRUE or FALSE statement that remains fixed unless changed
by a tuning function.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT = VALUE
OW351_R1100 223
5.40 DXCSTATUS
5.40 DXCSTATUS
Description
The Digital eXcitation Controller algorithm (DXCSTA TUS ) interfaces with the Digital Excitation
Controller (DEC) module for the purpose of reconciling the module’s tuning parameters with the
Ovation Database Server.
Note: For more information on the DEC module, refer to the Digital eXcitation Controller User
Guide and the Ovation Bus and Specialty I/O Reference Manual.
Exchange tuning parameters and site rating parameters with the module. Parameters can be
uploaded from and downloaded to the module using a custom graphic.
Reconcile tuning parameters and site rating parameters with the Ovation Database Server.
Perform on-demand calibration of excitation module inputs.
Swap control between modules in a redundant system.
The DXCSTAUS algorithm operates in conjunction with a single excitation module or a redundant
pair of modules.
Functional Symbol
NAME DE S C R I P TI O N
224 OW351_R1100
5.40 DXCSTATUS
NAME DE S C R I P TI O N
ASTA1 Algorithm status word output to control logic for primary module.
ASTA2 Algorithm status word output to control logic for partner module.
STATE Algorithm internal state (see state diagram).
Algorithm Parameters
DSTA, DST2 -- Status returned by the driver after a processing command requests from the
algorithm. DSTA is the status returned from the module. DST2 is the status returned from the
redundant module.
DIAG -- Tuning diagram number.
DVNM -- Device number for Ethernet I/O.
HWA1, HWA2 -- Hardware address of module and redundant module, respectively.
Module tuning parameters.
Module site rating parameters.
Note: Custom graphics are typically used to modify the site ratings parameters.
Most of the algorithm parameters consist of DEC module tuning parameters and site rating
parameters. A complete list of algorithm parameters appears in the Algorithm parameters table.
Initial values for module tuning parameters are specified as the default values for the parameters
in the DXCSTA TUS algorithm.
Algorithm parameters
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
OW351_R1100 225
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
226 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
OW351_R1100 227
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
228 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
AUX2: AN Char No - - -
AN
AUX3: AN Char No - - -
AN
AUX1: R1 Real Yes Tuning 15 VHL integrator gain,
VHLI Constant in fractional percent
of terminal voltage /
PT VAC.
AUX1: R2 Real Yes Tuning 10 VHL controller
VHLP Constant proportional gain, in
fractional percent of
terminal voltage /
(PT VAC * sec).
AUX1: R3 Real Yes Tuning 0.05 PSS variable,
PSVT Constant stabilizer output
maximum limit, in
per unit.
OW351_R1100 229
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
230 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
OW351_R1100 231
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
232 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
OW351_R1100 233
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
234 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
OW351_R1100 235
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
236 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
OW351_R1100 237
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
238 OW351_R1100
5.40 DXCSTATUS
N AME RE C O R D T YP E RE C O N C I L E TU N I N G DE F AU L T DE S C R I P TI O N
FI E L D R ATI N G
C ON F I G.
The following table describes the DXCSTATUS algorithm’s dual input parameters.
N AME RE C O R D T YP E RE C O N - TU N I N G DE F AU L T D E S C R I P TI O N
FI E L D CILE R ATI N G
C ON F I G.
Inputs
N AME T YP E DE S C R I P TI O N CO MME N T
OW351_R1100 239
5.40 DXCSTATUS
ACMD
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
The module bits indicate which module (primary or backup) should receive the decoded
command. Since it is possible to send a message to both modules with the same command, the
encoding of bits 14 and 15 are as follows
FRC D E S C R I P TI O N
If the command encoded in the CMD field is to force a particular module into control, bit pattern
11 for the module bits becomes an invalid pattern. If a command is being sent to m odule 2 and
the redundant flag for the algorithm is not set, the command is ignored.
RESERVED bits are reserved for future use. RESERVED bits must be set to zero or undefined
behavior may result.
Bits 4-6 identify which devices are being calibrated when a calibrate command is issued.
CMD DE S C R I P TI O N
Bit 4 CTs
Bit 5 PT1
Bit 6 PT2
CMD provides commands which may affect the module or both modules in a redundant pair.
CMD DE S C R I P TI O N
240 OW351_R1100
5.40 DXCSTATUS
CMD DE S C R I P TI O N
Outputs
Output pins
N AME T YP E D E S C R I P TI O N
ASTA1, ASTA2
The following values are defined for the ASTA1 and ASTA2 outputs. ASTA1 refers to the primary
module, and ASTA2 refers to the partner module.
ASTA BI T M E AN I N G
OW351_R1100 241
5.40 DXCSTATUS
ASTA BI T M E AN I N G
242 OW351_R1100
5.40 DXCSTATUS
Tuning parameters are module-shared memory variables that contain the gains, time constants,
and other tuning values, which configure the control loops on the module. Tuning parameters
consist of the following items:
Control loop PID gains.
Limiter PI gains.
PSS time constants and gains.
Site ratings are module-shared memory variables that contain rated values, ratios, and functional
enable parameters that govern operation of the system and scaling of process parameters. Site
ratings consist of the following items:
PT and CT ratios.
Rated field current.
Rated terminal voltage.
Individual limiter and protective enable parameters.
The Ovation system maintains the module tuning parameters and site ratings in the LC records of
the DXCSTA TUS algorithm. The Operator Station contains custom graphics that interact with the
DXCSTATUS algorithm to allow the tuning parameters to be transferred back and forth between
the LC record and the module. The tuning parameters are transferred on operator command from
the graphic; they do not update automatically when the values change on the graphic or module.
Note: Refer to Ovation Record Types Reference Manual for more information on LC record
fields.
OW351_R1100 243
5.40 DXCSTATUS
Site ratings are typically entered using custom graphics during system configuration and may be
modified during testing. The site ratings must be downloaded to the module using the
DXCSTATUS algorithm after entry or modification. The site ratings should be reconciled with the
Ovation Database once they have been specified or modified.
Tuning parameters are typically modified by Emerson personnel during service or unit startup.
After the module has been properly tuned, the tuning parameters are uploaded from the module.
The updated tuning parameters are then reconciled with the Ovation Database.
The module tuning parameters and site ratings are stored locally in the module in the
installation.conf configuration file. This file is written upon downloading parameters to the
module from the DXCSTATUS algorithm. After uploading new tuning parameters, they must then
be downloaded back to the module(s) to force them to be written to the configuration file.
244 OW351_R1100
5.40 DXCSTATUS
Note: Reconciling the algorithm parameters is an Ovation function and not truly a function of the
DXCSTATUS algorithm or the module.
I/O calibration.
Swap control between modules in a redundant pair.
Upload/Download function
The Upload/Download function retrieves tuning and site rating parameters from the module to the
algorithm (upload) and sends tuning and site rating parameters from the algorithm to the module
(download).
The Upload from Module function is invoked by setting the CMD field in the algorithm’s ACMD
input. The algorithm sends a request to the module communications driver, instructing the driver
to read the controlling module’s parameters. When the module responds, the driver updates the
algorithm LC record with the parameters and then sets the completion status parameter in the LC
record indicating that the upload is complete.
The Download to Module function is invoked by setting the CMD field in the algorithm’s ACMD
input. The algorithm sends a request to the module communications driver, instructing the driver
to send the parameters contained in the algorithm’s LC record to the module. The driver locates
the algorithm LC record using the SID that was passed in with the request. When the transfer
completes, the driver updates the status parameter in the LC record indicating that the download
is complete.
Note: Refer to Ovation Record Types Reference Manual for more information on LC record
fields.
All module I/O is calibrated during factory testing, but because CT and PT panels are not
assigned to a module until that module is used in a system, field calibration may be necessary.
The DXCSTATUS algorithm coordinates field calibration of the module PT and CT inputs. Other
I/O cannot be calibrated in the field.
All CTs are calibrated as a group. Each set of PTs is calibrated independently; the PTs within a
set are calibrated as a group. The devices being calibrated are identified by bits 4 - 6 in the
algorithm command word. If a bit is non-zero, then that set of devices (CTs, PT1, PT2) is affected
by the calibration command.
OW351_R1100 245
5.40 DXCSTATUS
It is possible to calibrate all inputs simultaneously by applying appropriate signals to each input
and selecting all calibration devices with bits 4 - 6. Once new coefficients have been calculated,
they take immediate effect. Subsequent measurements will demonstrate the efficacy of the new
calibration. To make the new coefficients permanent, they must be committed to a file. If the new
calibration is unsatisfactory, the Cancel Calibration command will undo the change as long as it
has not been committed.
The Transfer Control function transfers control from the controlling module to the non-controlling
module. This supports the ability to force a particular module to control in order to perform
maintenance on the other module.
Note: The Transfer Control function is designed for maintenance purposes only and should
never be used during normal operation of the system.
246 OW351_R1100
5.40 DXCSTATUS
The following figure shows the DXCSTATUS algorithm state diagram. The state diagram
indicates the control flow between states and the values for each state.
State value
0 RESET
1 READY
2 STARTING COMMAND (UPLOAD)
3 WAITING FOR COMMAND (UPLOAD)
4 FINISHING COMMAND (UPLOAD)
5 STARTING COMMAND (DOWNLOAD)
OW351_R1100 247
5.40 DXCSTATUS
248 OW351_R1100
5.41 FACEPLATE
5.41 FACEPLATE
Description
The FACEPLATE algorithm is a generic algorithm used to collect all inputs necessary for a
graphic faceplate. Its purpose is to reduce the amount of data needed by the graphic designer
when adding faceplates to a process diagram or window.
You need to pass only the name of the FACEPLATE algorithm to a graphic macro. The graphic
macro then retrieves all relevant input signals from the FACEPLATE algorithm and displays the
data accordingly.
The FACEPLATE algorithm sequences through all arguments and checks for a connection. It
then stores the system IDs for those connected points in the appropriate record fields of the
FACEPLATE algorithm.
The algorithm can have a maximum of two control algorithm points and up to 30 input points,
which can be analog, digital, or packed.
In addition to the generic template, two other templates exist for this algorithm.
DIGITAL DEVICE template (see page 252).
MASTATION template (see page 256).
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 249
5.41 FACEPLATE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
250 OW351_R1100
5.41 FACEPLATE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 251
5.41 FACEPLATE
This template should be used with the DIGITAL DEVICE algorithm. The following symbols show
an example of how this template could be used.
Note: Default symbols are not available for this template. Users are responsible for generating
their own symbols since the interface is defined within the individual graphics macros.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
252 OW351_R1100
5.41 FACEPLATE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 253
5.41 FACEPLATE
For the digital faceplate values to be displayed in a graphic using the FACEPLATE algorithm, use
the following example to place code in the main screen diagram.
In the DIAGRAM section (OCB010F001 will be replaced by the name of your faceplate):
254 OW351_R1100
5.41 FACEPLATE
In the FOREGROUND section (to display specific values of the record field of the Faceplate
algorithm):
PROCESS _PT 5521 3069 15 -1 RIGHT OFF HORZ VECTOR_ OVER 108
351 1 L:PK3 AV
PROCESS _PT 5535 4231 15 -1 HEX OFF HORZ VECTOR_OV ER 108 351 1
L:DEV1 A2
To call the faceplate Macro (49100 in this case) using the one $D1 point - the LC faceplate
algorithm name.
28 28 2 3 0 0
Refer, Ovation Graphics Language Reference Manual for more information on graphic
commands.
OW351_R1100 255
5.41 FACEPLATE
This template should be used with the MASTATION algorithm. The following symbols show an
example of how this template could be used.
Note: Default symbols are not available for this template. Users are responsible for generating
their own symbols since the interface is defined within the individual graphics macros.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
256 OW351_R1100
5.42 FIELD
5.42 FIELD
Description
The FIELD algorithm is used only with the hardware analog output variable points. This algorithm
checks the value against the IO card limits and sets the appropriate bits in the track output point.
It should be used instead of “output analog hardware” I/O connectors in applications involving
interfaces to control elements (for example, valves and dampers).
The output digital point (FAIL) is TRUE when the algorithm detects a hardware error on the I/O
card. This algorithm is designed to read the value from the point record and output value TOUT
on the first pass.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 257
5.42 FIELD
Tracking Signals
The high and low limits flags and tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm.
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
258 OW351_R1100
5.43 FIFO
5.43 FIFO
Description
The FIFO algorithm provides a basic First In - First Out operation. The order in which any of the
16 digital inputs transition from FALSE to TRUE is preserved. The order is stored using the input
number of the associated input (that is, 1 for IN1, 2 for IN2, 3 for IN3, and so forth).
Initially, the value of the output is zero. If the FIFO is empty, the output is also zero. For each
successive FALSE to TRUE Transition of the rotate (RTAT) input, the oldest input number stored
in the FIFO is removed from internal storage and that numerical value is written to the output
(OUT). Note that the output is considered separate from the actual FIFO.
The point retains the value until either the rotate (RTAT) or the clear (CLR) input transitions from
FALSE to TRUE. A FALSE to TRUE transition on the (RTAT) input causes the oldest entry in the
FIFO to be removed from the FIFO and placed in the output (OUT). At this point, the value in the
(OUT) variable is no longer included in the queue.
If multiple inputs transition from FALSE to TRUE on the same execution cycle of the Controller,
then they are ordered according to their numerical number. For example, IN1 is placed in the
FIFO first and thus is rotated out first.
A FALSE to TRUE transition on the clear (CLR) input causes the output and all the internal FIFO
entries to be set to zero. As long as the clear (CLR) input remains TRUE, the algorithm ignores all
the inputs and thus does not operate.
The FIFO is considered full when all 16 inputs have made a transition from FALSE to TRUE
without any subsequent FALSE to TRUE transition on the rotate (RTAT) input. When this full
condition exists, any further FALSE to TRUE transitions of any of the inputs are ignored until at
least one of the stored values is rotated out of the FIFO.
The FLAG output is set TRUE when the FIFO is NOT empty.
Note: The FIFO values are stored in the algorithm record fields G0-G9, B0-B5.
OW351_R1100 259
5.43 FIFO
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
260 OW351_R1100
5.43 FIFO
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 261
5.44 FIRSTOUT
5.44 FIRSTOUT
Description
The FIRSTOUT algorithm monitors up to 16 digital inputs and provides an indication of the first
digital input to transition from zero to one. The algorithm output is a packed group point whose 16
bits correspond to each of the 16 digital inputs. If more than 16 inputs need to be monitored,
multiple algorithms can be cascaded together. The resolution of the algorithm is equal to the
period of the control task in which it executes.
Note: The quality values of the digital inputs are not propagated to the digital outputs.
Functional Symbol
262 OW351_R1100
5.44 FIRSTOUT
Algorithm States
The FIRSTOUT algorithm operates in three states: armed, tripped and disabled.
In the disabled state, the algorithm does not operate. In the armed state, the algorithm monitors
the digital value of all connected inputs (IN1-IN16). If any of the inputs transition from a zero to a
one, the algorithm enters the tripped state.
When RST input is set to zero, the algorithm is in the disabled state. A zero to one transition on
the RST input sets the algorithm to the armed state. When this transition occurs, any inputs (IN1-
IN16) that are a one are ignored. Thus, it is not necessary to ensure that all inputs are a zero
when the algorithm is armed.
The current state of the algorithm is indicated in two ways: the X1 field of the algorithm LC record
and the STATE output. The following table shows the states and the indications.
S TATE X1 FI E L D STATE
O U TP U T
Armed or Disabled 0 0
Tripped 1 1
Once the algorithm enters the tripped state it remains in that state. The RST input must be set to
zero to enter the disabled state, and then set to a one in order to enter the armed stat e again.
The FIRSTOUT algorithm can be selectively executed by using the reset (RST) input. The RST
input must be set to a one for the algorithm to operate. If the RST input is set to a zero, the
algorithm is disabled and the algorithm is not executed in each loop that the RST is set to zero.
Trip Reporting
Each of the 16 bits in the monitor (MNTR) output corresponds to the IN1 - IN16 inputs. Bit zero
corresponds to IN1, bit one corresponds to IN2, and so forth. When the algorithm is operating in
the armed state, all bits in the MNTR points are set to zero. If any of the inputs (IN1 - IN16)
transition to a one, the corresponding bit in the MNTR packed point output is set to one.
If multiple inputs transition to one on the same execution cycle, the algorithm can be configured to
report which input(s) caused the change. This can be done in one of two ways. First, the default is
for all inputs that transitioned to be reported in the MNTR output. Optionally, only the input with
the lowest input number can be reported in the MNTR output. Note that the MULT output point is
set to one when either of these conditions occur. The desired configuration is specified using the
MCFG (X2) field in the algorithm LC record.
The number of inputs that transitioned from zero to one is reported in the optional analog output
NTRP. During operation in armed mode, the NTRP output is set to zero.
OW351_R1100 263
5.44 FIRSTOUT
Dependencies among RST, IN1-IN16 inputs, and TRPD output are shown on the following timing
diagram.
1
RST 0
IN1 1
0
IN2 1
0
TRPD 1
0
If it is necessary to monitor more than 16 digital inputs, multiple FIRSTOUT algorithms can be
cascaded together. The TRPD output of each algorithm is connected to one of the inputs
(IN1 - IN6) of the subsequent algorithm.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
264 OW351_R1100
5.44 FIRSTOUT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 265
5.44 FIRSTOUT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
266 OW351_R1100
5.45 FLIPFLOP
5.45 FLIPFLOP
Description
The FLIPFLOP algorithm is a memory device. Its output states are defined in the Function for
Reset Override and Function for Set Override Truth tables.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
1 = Flip-flop with
set override
0 = Flip-flop with
reset override
SET - Variable Required - Input (digital); set LD, LP
0 0 S
0 1 0
1 0 1
1 1 0
where:
OW351_R1100 267
5.45 FLIPFLOP
On power up/reset of the Controller, OUT is set according to the truth table, unless SET and
RSET are both FALSE.
0 0 S
0 1 0
1 0 1
1 1 1
where:
On power up/reset of the Controller, OUT is set according to the truth table, unless SET is set
FALSE.
268 OW351_R1100
5.46 FUNCTION
5.46 FUNCTION
Description
If the input value is invalid or less than the smallest element in the X-array, the output assumes
the value of the corresponding Y-array element. Also, if the input value is greater than the largest
X-array element, the output assumes the value of the corresponding Y-array element. If there is
more than one output value (Y-array) for a particular input value (X-array), the output is the first
element of the Y-array encountered.
The TPSC and BTSC algorithm definitions must match the highest and lowest Y-array values of
the function defined in order for tracking to be properly implemented. If the limits are different, the
algorithm tracks to the value. But upon releasing, it bumps back to the calculated output value.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog point. This algorithm takes the following action in response to the information found
in the input signal TRIN:
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
OW351_R1100 269
5.46 FUNCTION
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the
definitions given in Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored.
Otherwise, the value of the conditional track bit is transferred to all output track points.
If the Conditional Track bit is set in the track input point, the analog value of all output
track points is calculated based on the analog value of the track input point.
The high and low limit flags and the tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT is
set to BAD. Otherwise, the quality of OUT is set to the quality of the input when not in tracking
mode. When tracking, the quality is set to the quality of the track input variable.
When the FUNCTION algorithm is tracking, it forces the upstream algorithm to track to the X-
array value associated with the Y-array value to which the FUNCTION is told to track. However, if
there is more than one X-array value associated with the specified Y-array value, the FUNCTION
algorithm forces the upstream algorithm to track to the first X-array value encountered.
Note: If the algorithm generates an invalid track output value, the input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
270 OW351_R1100
5.46 FUNCTION
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 271
5.46 FUNCTION
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
272 OW351_R1100
5.47 GAINBIAS
5.47 GAINBIAS
Description
The GAINBIAS algorithm multiplies the analog input with an internal gain, adds a bias and then
limits the output value.
To scale the output proportionally to the input, calculate the required Gain and Bias as follows:
Note: If the algorithm receives an invalid value as an input, or calculates an invalid value as the
output, the drop is placed into alarm.
Functional Symbol
OW351_R1100 273
5.47 GAINBIAS
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status of
the analog point. This algorithm takes the following action in response to the information found in
the input signal TRIN:
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the definitions
given in Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track b it is ignored. Otherwise, the
value of the conditional track bit is transferred to all output track points. If the Conditional Track
bit is set in the track input point, the analog value of all output track points is calculated based on
the analog value of the track input point.
274 OW351_R1100
5.47 GAINBIAS
The high and low limit flags and the tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm. If the OUT value is invalid, the quality of OUT is
set to BAD. Otherwise, if the quality propagation (PROQ) option is ON, the quality of OUT is set to
the quality of the input when not in tracking mode. When tracking, the quality is set to the quality
of the track input variable. If the PROQ option is OFF, the quality of OUT is set to GOOD.
Note: If the algorithm generates an invalid track output value, the input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 275
5.47 GAINBIAS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OFF = Quality
of the output is
always GOOD,
except when
OUTPUT is not
a valid real
number.
IN1 - Variable Required - Input analog LA
Function
276 OW351_R1100
5.48 GASFLOW
5.48 GASFLOW
Description
The TPSC and BTSC parameters are used to limit the output value of the algorithm.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the analog tracking
point's third status word. This algorithm takes the following action in response to the information
found in the input signal TRIN:
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
OW351_R1100 277
5.48 GASFLOW
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
The high and low limit flags are output to TOUT to be used for display.
The output has the worst quality of the analog inputs specified assigned to the quality of the
output.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
278 OW351_R1100
5.48 GASFLOW
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 279
5.48 GASFLOW
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
280 OW351_R1100
5.48 GASFLOW
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 281
5.48 GASFLOW
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
282 OW351_R1100
5.48 GASFLOW
Function
IF MASSFLOW THEN
IF (P2 = 0) OR (T1 = 0) THEN
OUTVAL = 0
ELSE
IF DELTAP
OUTVAL = IN1 * (P1/P2) * (T1/T2)
ELSE
OUTVAL = (P1/P2) * (T1/T2)
ELSE
IF (P1 = 0) OR (T2 = 0) THEN
OUTVAL = 0
ELSE
IF DELTAP
OUTVAL = IN1 * (P2/P1) * (T2/T1)
ELSE
OUTVAL = (P2/P1) x (T2/T1)
where:
P1,P2,T1,T2,OUTVAL = local, temporary, real variables
ABSPRES, ABSTEMP = constants from the pressure and temperature conversion tables
built into the algorithm
OW351_R1100 283
5.49 HEARTBEAT
5.49 HEARTBEAT
Description
The HEARTBEAT algorithm is designed to generate heartbeat signals that can be received by
other drops for use in safety critical applications. The algorithm can also be utilized to monitor up
to five heartbeat signals generated from heartbeat algorithms in other Controllers. If the algorithm
detects that a heartbeat signal being monitored has ceased, it sets the corresponding output to
one. It has a value of zero when it is communicating.
A heartbeat signal is a continuously changing signal that is generated and broadcast from an
Ovation Controller. A heartbeat signal that is continuously changing is an explicit indication that
the Controller generating the heartbeat signal is functioning properly.
Typically, the heartbeat signal allows a control strategy to monitor other heartbeat signals (ones
that are broadcast from other Controller drops) and take appropriate actions if the heartbeat
signals cease. It is common in power generation applications to have the loss of a heartbeat
signal from one or more Controllers generate a Master Fuel Trip (MFT) in the Controller that is
monitoring the heartbeat signals.
Functional Symbol
284 OW351_R1100
5.49 HEARTBEAT
Overview
The value of a heartbeat signal output (HTBT) is a continuously changing analog value. The
HTBT output is updated each loop time to a new number. The actual value of the heartbeat signal
is not important - it is important that the heartbeat signal updates each loop time by the originating
Controller and that the receiving Controller records a different value each loop time.
If any input heartbeat signals are connected to the HEARTBEAT algorithm, they are monitored to
ensure that the value changes on each successive loop. During each execution loop, the value of
each connected input is read and compared to that point's value that was read on the previous
loop. Under normal conditions, these two successive values should be different - that is, the
changing signal is being received from the originating drop(s) successfully. If the value of any of
the input points is unchanging for the user-entered timeout period (TIME1 - 5), the corresponding
trip output OUT1 - 5 is set to true.
Note that if the user-entered timeout period is not an exact multiple of the control task period in
which the algorithm is executing, then the algorithm rounds the user-entered value to the next
higher integer multiple of the task period. When this occurs, the resulting actual timeout is the
user-entered timeout plus the control task period. This action ensures that the tuning fields of the
algorithm always reflect the exact timeout period.
Emerson recommends that when the algorithm is used to generate a heartbeat signal, it should
be executed in a 0.1 second control task. When the algorithm is used to monitor other heartbeat
signals, Emerson recommends that it should be executed in a 0.1 second control task.
Also, note that the algorithm ensures that the user-entered timeout cannot be set to a value less
than the time that it takes the Ovation Network to detect a loss of communication on a primary
Controller and to initiate a failover. This time is typically five seconds.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 285
5.49 HEARTBEAT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Note: Emerson
recommends that the
Heartb eat output
(HTBT) points b e b uilt
with a b roadcast
frequency of 100msec
instead of 1 second.
Note: The algorithm sets the parameter to a minimum value required for the Ovation network
sub system to detect a timeout. You only have the option to extend the timeout value. Also, if the user -
entered timeout is not an integer multiple of the control task period, the algo rithm rounds up to the user-
entered value to the next highest integer multiple of the control task period.
286 OW351_R1100
5.50 HIGHLOWMON
5.50 HIGHLOWMON
Description
The HIGHLOWMON algorithm is a high and low signal monitor with reset deadband and
fixed/variable limits. For the HIGHLOWMON algorithm, if the input value (IN1) is greater than the
high set point or less than the low set point, the digital output flag is set TRUE. To reset the flag,
the input must be less than the high set point minus the deadband on the high set point, and
greater than the low set point plus the deadband on the low set point.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 287
5.51 HIGHMON
5.51 HIGHMON
Description
The HIGHMON algorithm is a high signal monitor with reset deadband and a fixed/variable limit.
With the HIGHMON algorithm, if the input value (IN1) exceeds the fixed set point value, the digital
flag is set TRUE. To clear the flag, IN1 must be less than the set point value minus the deadband.
The value of IN1 is checked for invalid real numbers. If IN1 is invalid, OUT retains its last valid
value, and the quality of OUT is set to BAD. The quality of IN1 is not propagated.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
288 OW351_R1100
5.51 HIGHMON
Function
In the Function above, if neither condition is satisfied, the value of the output is maintained from
the previous value. See below:
For the first loop, if IN1 = 51, HISP = 50, HIDB = 5, then the function would look like this:
IF 51 > 50
THEN OUT = TRUE
ELSE
IF 51 < (50 - 5)
THEN OUT = FALSE
For the first loop, OUT = TRUE
For the second loop, if IN1 = 48, HISP = 50, HIDB = 5, then the function would look like this:
IF 48 > 50
THEN OUT = TRUE
ELSE
IF 48 < (50 - 5)
THEN OUT = FALSE
For the second loop, neither condition is met. Therefore, the value of the output is maintained
from the previous value so OUT = TRUE.
For the third loop, if IN1 = 42, HISP = 50, HIDB = 5, then the function would look like this:
IF 42 > 50
THEN OUT = TRUE
ELSE
IF 42 < (50 - 5)
THEN OUT = FALSE
For the third loop, OUT = FALSE
OW351_R1100 289
5.52 HISELECT
5.52 HISELECT
Description
The HISELECT algorithm performs a gain and bias on four inputs. The output is equal to the
greater of the four values, according to the quality (QUAL) parameter.
The quality (QUAL) parameter contains three options that enable you to select the value and type
of quality that the output point receives.
The WORSE option selects the greater value for an output point, independent of the qualities of
the input points. The output point is assigned the worst quality of the input points.
The SELECTED option also selects the greater value, independent of the qualities of the input
points. The output point is assigned the value and quality of the selected input point. However, if
any of the gained and biased values are equal, the better quality is assigned to the output point.
The NOTBAD option selects the greater gained and biased input value, providing the qualities of
both inputs are not BAD. The quality of the output is set equal to t he quality of the input selected
or to the better quality of the two inputs if the gained and biased input values are equal. If one
input has BAD quality, the gained and bias input value and the quality of the input with the not
BAD quality are assigned to the output. The output is equal to the greater gained and biased input
value and contains BAD quality if both input qualities are BAD.
Note: If the algorithm calculates an invalid output value by using one of the gained and biased
inputs, the value of the other three points is used for the output. In addition, for the NOTBAD
option, if the quality of four input points is BAD, and only one of the inputs is a valid value, the
algorithm selects the valid gained and biased input for the output, and sets the quality of the
output point to BAD.
If the calculated track output is invalid, then the IN2 output is equal to the IN1 input, and the
cascade track output is equal to the IN1 input, if the inputs are valid. If the calculated track
output and the input values are invalid, then the IN1 and IN1 track outputs are not updated.
Functional Symbol
290 OW351_R1100
5.52 HISELECT
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog tracking point. This algorithm takes the following action in response to the
information found in the analog input signal TRIN:
Bit description
BI T D E S C R I P TI O N AC TI O N TRK1 S I G N AL
18 Track if higher Passed through or set TRUE Passed through or set TRUE when
when IN1 input is not selected IN2 input < is not selected and IN2
and IN1 gain is >0* gain is >0*
** Only when the Track signal is not present; the signals are set according to the definitions given in
Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored. Otherwise, the value of
the conditional track bit is transferred to all output track points. If the Conditional Track bit is set in the
track input point, the analog value of all output track points is calculated based on the analog value of the
track input point.
The high and low limit flags, and the tracking signals from the algorithm are output to TRK3 and
TRK4, to be used for display and by upstream algorithms. If the output value is invalid, the quality
of OUT is set to BAD. Otherwise, the quality of OUT is set according to the quality (QUAL)
parameter. When tracking, the quality is set to the quality of the track input variable.
OW351_R1100 291
5.52 HISELECT
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
292 OW351_R1100
5.52 HISELECT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 293
5.52 HISELECT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Function
294 OW351_R1100
5.53 HSCLTP
5.53 HSCLTP
Description
HSCLTP calculates Enthalpy (H) and Entropy (S) of Compressed Liquid given its Temperature
and Pressure. It is one of the functions of the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
OW351_R1100 295
5.54 HSLT
5.54 HSLT
Description
HSLT calculates Enthalpy (H) of Saturated Liquid given its Temperature. It is one of the functions
of the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
296 OW351_R1100
5.55 HSTVSVP
5.55 HSTVSVP
Description
HSTVSVP calculates Enthalpy (H), Entropy (S), Temperature, and Specific Volume of Saturated
Vapor given its Pressure. It is one of the functions of the STEAMTABLE algorithm
(see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
OW351_R1100 297
5.56 HSVSSTP
5.56 HSVSSTP
Description
HSVSSTP calculates Enthalpy (H), Entropy (S), and Specific Volume of Superheated Steam
given its Temperature and Pressure. It is one of the functions of the STEAMTABLE algorithm (see
page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
298 OW351_R1100
5.57 INTERP
5.57 INTERP
Description
The INTERP algorithm provides a linear table-lookup and interpolation function. The algorithm
provides a lookup table for the value of a dependent variable (Y) based on the value of an
independent variable (X). The actual value X (XIN) is input to the algorithm along with up to ten
reference Y values (Y1...Y10) and their corresponding X values (X1...X10).
If the value of the XIN is not identically equal to any of the X1...X10 inputs, then resulting value of
YOUT is calculated by linear interpolation between the closest two values that the input XIN falls
between (that is, Xn + Xn+1). The formula to calculate YOUT is given as follows:
The value of YOUT is limited by the user-defined high and low limit values. Refer to the
accompanying figure that illustrates the interpolation procedure.
Functional Symbol
Quality
The algorithm propagates the worst quality between the XIN input and the associated Y inputs
used to determine the value of YOUT. If the output is an exact Y input, then the YOUT quality is
the worst quality of the XIN input and that particular Y input.
User Configuration
The values of X1...X10 MUST be monotonically increasing (that is, Xn+1 > Xn). If the value of the
XIN is found to fall between X1...X10, then the VALID output is set to logic one. If the
monotonicity of the X1 - X10 is not monotonically increasing, then the algorithm may yield
unpredictable results. If the algorithm can determine that the table is not monotonically increasing,
then YOUT is set equal to Y10 and the VALID output is set to logic 0.
If the value of XIN > X10, then YOUT is set equal to Y10. If XIN < X1, then YOUT is set equal to
Y1. In both of these cases, the VALID output is set to logic zero. If the algorithm calculates an
invalid number, then YOUT is set to the last GOOD value and the quality is set to BAD.
If the YOUT is calculated by interpolating between Y n and Y n+1, then the quality of YOUT is the
worst quality of the XIN, Y n and Y n+1 inputs.
OW351_R1100 299
5.57 INTERP
Interpolation Illustration
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
300 OW351_R1100
5.57 INTERP
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 301
5.57 INTERP
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
302 OW351_R1100
5.58 KEYBOARD
5.58 KEYBOARD
Description
The KEYBOARD (Key Interface) algorithm interfaces the following control keys (P1 - P8,
Start/Open, Stop/Close, AUTO, MAN, SPUP, SPDN, INC, and DEC) to the Controller in the most
basic form. The output of each key is available for use once the algorithm is activated via a
control select command.
The KEYBOARD algorithm interfaces the Operator Station programmable keys (P1 through P10)
to the Controller in the most basic form. The output of each programmable key is available for use
once the algorithm is activated via a control select key. When using this algorithm, none of the ten
Control keys may be used for the activated control select number.
For the INC, DEC, SPDN, and SPUP keys, the output maintains a TRUE signal for as long as the
key is pressed. For all other keys, the output of this algorithm is a pulse (TRUE signal) of variable
length. The pulse length is determined by the LENGTH (LENG) parameter, which specifies the
pulse length in loops. If LENGTH is equal to 0 or 1, the pulse is 1 loop long. The LENGTH
parameter may specify a pulse length up to 255 loops.
Note: P9 and P10 k eys are the same as Open and Close k eys.
Functional Symbol
OW351_R1100 303
5.58 KEYBOARD
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
304 OW351_R1100
5.58 KEYBOARD
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 305
5.59 LATCHQUAL
5.59 LATCHQUAL
Description
The LATCHQUAL algorithm latches and unlatches the quality of an input analog or digital point.
The algorithm sets or clears the “Latched Quality” bit of the IN1 point, depending on SET and
RSET points. Bit 14 of the 2W (second status word) of the analog point or bit 11 of the 2W
(second status word) of the digital point is the “Latched Quality” bit for the point.
Functional Symbol
If RSET is TRUE and the latched quality bit of IN1 is set, the Latched Quality bit is cleared.
If RSET is FALSE and SET is TRUE, then depending on the value of QUAL, the IN1 point sets its
Latched Quality bit and quality as follows:
If QUAL = 0 and Latched Quality of IN1 is not set, then Latched quality bit is set at its current
state.
If QUAL = 1 and Latched Quality of IN1 is not set or the Quality of IN1 is not GOOD, then the
Quality is set (latched) to GOOD.
If QUAL = 2 and Latched Quality of IN1 is not set or the Quality of IN1 is not FAIR, then the
Quality is set (latched) to FAIR.
If QUAL = 3 and Latched Quality of IN1 is not set or the Quality of IN1 is not POOR, then the
Quality is set (latched) to POOR.
If QUAL is greater than or equal to 4 and Latched Quality of IN1 is not set or the Quality of
IN1 is not BAD, then the Quality is set (latched) to BAD.
RSET overrides SET. If both are TRUE, then the Latched Quality bit of IN1 is cleared.
Note: IN1 can be a digital or analog point, with the minimum point record being LD or LA. If a
smaller point record is used, then no action is tak en.
306 OW351_R1100
5.59 LATCHQUAL
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 307
5.60 LEADLAG
5.60 LEADLAG
Description
LEADLAG is a nonlinear lead/lag function. The output value is a function of the old output, old
input, new input, gain, lead and lag time constants. In steady state, OUT = IN1 x GAIN (except
when limited). The output achieves 98 percent of the expected steady -state output value in five
time constants.
The algorithm can be configured to be a pure lead function. The output value is a function of the
old output, old input, new input, gain and lead time constants. The output achieves 98% of the
expected steady-state output value in five time constants.
Note: If the algorithm receives an invalid value as an input, or calculates an invalid value as the
output, the drop is placed into alarm.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog track point. This algorithm takes the following action in response to the information
found in the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
308 OW351_R1100
5.60 LEADLAG
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
The high and low limit flags and the tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT is
set to BAD. Otherwise, the quality of OUT is set to the quality of the input when it is not in trac king
mode. When tracking, the quality is set to the quality of the track input variable.
Note: If the algorithm generates an invalid track output value, the IN1 input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and IN1 input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 309
5.60 LEADLAG
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Note: This is
approximately
1/5 of the total
time to settle. For
example, for a 1
minute total, set
LAG to 12
seconds.
310 OW351_R1100
5.60 LEADLAG
Function
LEADLAG:
where:
LEAD-ONLY
where:
OW351_R1100 311
5.61 LEVELCOMP
5.61 LEVELCOMP
Description
The LEVELCOMP algorithm calculates the density compensated water level in a pressurized
steam drum. This compensation assumes a differential pressure transmitter is inputting the raw
level signal. One leg of the transmitter is connected to a condensate reservoir which establishes
the transmitter's maximum water level. The other side of the transmitter is connected to the poi nt
which defines the minimum transmitter water level. The distance between these taps is the
transmitter range “D”. See the following figure for details of the assumed piping configuration.
312 OW351_R1100
5.61 LEVELCOMP
The steam and water inside the drum are at saturation conditions. The water in the condensated
reservoir is pressurized water. The LEVELCOMP algorithm uses the specific volume of the steam
in the drum (µs), the specific volume of the water in the drum (µw) and the specific volume of the
water in the reference leg(µr), and the specific volume of the water at calibration conditions (µcal)
to compute the compensated level. The LEVELCOMP algorithm does the steamtable calculations
to obtain values for µs, µw, and µr based on input points pressure and temperature. The
derivation of µr requires an estimation of the average temperature in the condensate reference
column. The temperature can be a variable point or entered as a tuning constant. The calibration
fluid specific volume (µcal) is an estimated value entered as a tuning constant.
The raw drum level input normally varies from a negative value for minimum level to a positive
value at a maximum to +20 inwc at a maximum with 0 inwc being normal water level. The
minimum (MIN) and maximum (MAX) values are not used in the compensation calculation. The
algorithm output has the same range as the input.
OW351_R1100 313
5.61 LEVELCOMP
If the output value is invalid, the quality of the OUT is set to BAD. If the pressure (PRES) or
temperature (TEMP) value is out of range for the compressed liquid, saturated liquid or saturated
vapor regions, the quality of OUT is set to BAD. Otherwise, the quality of OUT is set to the worst
quality of the inputs.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
314 OW351_R1100
5.61 LEVELCOMP
Function
OW351_R1100 315
5.62 LOG
5.62 LOG
Description
The LOG algorithm performs the mathematical logarithmic function. For the LOG algorithm, the
output equals the base 10 logarithm of the input value plus a bias. If the input value is less than or
equal to zero, the output is set to a large negative number (-3.4 x 1038). The value of IN1 is
checked for invalid real numbers. If IN1 is valid, the quality of IN1 is propagated to the quality of
OUT and the real number value of OUT is written to the point record. If the value of IN1 is invalid
or if the calculated value of OUT written to the point record is invalid, the quality of OUT is set to
BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
316 OW351_R1100
5.63 LOSELECT
5.63 LOSELECT
Description
The LOSELECT algorithm performs a gain and bias on the four inputs. The output is equal to the
smallest of the four values, according to the quality (QUAL) parameter.
The quality (QUAL) parameter contains three options that enable you to select the value and type
of quality that the output point receives.
The WORSE option selects the lower value for an output point, independent of the qualities of the
input points. The output point is assigned the worst quality of the input points.
The SELECTED option also selects the lowest value, independent of the qualities of the input
points. The output point is assigned the value and quality of the selected input point. However, if
any of the gained and biased values are equal, the best quality is assigned to the output point.
The NOTBAD option selects the lowest gained and biased input value, providing the qualities of
both inputs are not BAD. The quality of the output is set equal to the quality of the input selected
or to the better quality of the two inputs if the gained and biased input values are equal. If one
input has BAD quality, the gained and bias input value and the quality of the input with the not
BAD quality are assigned to the output. The output is equal to the lowest gained and biased input
value and contains BAD quality if both input qualities are BAD.
Note: If the algorithm calculates an invalid output value by using one of the gained and biased
inputs, the value of the other point is used for the output.
If the calculated track output is invalid, then the IN2 track output is equal to the IN2 input, and
the IN1 track output is equal to the IN1 input, if the inputs are valid. If the calculated track
outputs and the input values are invalid, then the IN2 and IN1 track outputs are not updated.
Functional Symbol
OW351_R1100 317
5.63 LOSELECT
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status of
the analog tracking point. This algorithm takes the following action in response to the informati on
found in the analog input signal TRIN:
Bit description
BI T D E S C R I P TI O N AC TI O N TRK1 S I G N AL
18 Track if higher Passed through or set TRUE Passed through or set TRUE
when IN1 input is not selected when IN2 input is not selected
and IN1 gain is >0*. and IN2 gain is >0*.
** Only when the Track signal is not present; the signals are set according to the definitions
given in Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored. Otherwise,
the value of the conditional track bit is transferred to all output track points. If the Conditional Track bit
is set in the track input point, the analog value of all output track points is calculated based on the
analog value of the track input point.
318 OW351_R1100
5.63 LOSELECT
The high and low limit flags, and the tracking signals from the algorithm are output to TRK2,
TRK3, and TRK4, to be used for display and by upstream algorithms. If the output value is invalid,
the quality of OUT is set to BAD. Otherwise, the quality of OUT is set according to the QUALITY
(QUAL) parameter. When tracking, the quality is set to the quality of the track input variable.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 319
5.63 LOSELECT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
320 OW351_R1100
5.63 LOSELECT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 321
5.64 LOWMON
5.64 LOWMON
Description
The LOWMON algorithm is a low signal monitor with reset deadband and a fixed variable limit.
For the LOWMON (Low signal monitor, reset deadband) algorithm, if the input value (IN1) goes
below the fixed set point value (LOSP), the digital output is set TRUE. To clear the output, IN1
must be greater than the set point value plus the deadband. The value of IN1 is checked for
invalid real numbers. If IN1 is invalid, OUT retains its last valid value, and the quality of OUT is set
to BAD. The quality of IN1 is not propagated.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
* When a parameter type is defined as "Selectable" and marked as "Required," the Control Builder may
default the parameter to a value and mark it as "Optional." However, for the control function to be
executed properly, you must enter a value for the parameter.
Function
322 OW351_R1100
5.65 MAMODE
5.65 MAMODE
Description
MAMODE is used in conjunction with a MASTATION algorithm. This algorithm is used to send the
priorities (raise/lower), inhibits (raise/lower), reject (manual/auto), track bit and Slew Bias
commands to the MASTATION. If Bias is TRUE, then MASTATION can raise/lower the Bias
value. If Bias is FALSE, the Bias value is slewed to zero and the Bias value is not allowed to be
raised or lowered.
The output TRK, AUTO, MAN and LOC points are set TRUE based on the MASTATION's track
point connected to the algorithm.
Functional Symbol
Bits In Mode
BI T D E S C R I P TI O N
OW351_R1100 323
5.65 MAMODE
BI T D E S C R I P TI O N
Note: If a mode word is provided, its contents are decoded and shown in the Control Builder i n
the bottom status bar along with the track words. See Ovation Control Builder User Guide for
more information.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
324 OW351_R1100
5.66 MASTATION
5.66 MASTATION
Description
MASTATION algorithm interfaces a CRT-based soft manual/auto station and an optional Ovation
Loop Interface module card with the functional processor.
You select one of the following interfaces with the TYPE Algorithm Field:
Functional Symbol
If an Ovation Loop Interface Module is set in TYPE and the Controller is reset, powered-up or
fails, the output is read from the Ovation Loop Interface module card and used initially in the OUT
field of the algorithm. This reports the status of the field device before any action is taken by either
the algorithm or the operator.
Note: The TPSC and BTSC parameters are used to limit the output value of the algorithm.
These values must always be 100% and 0%, respectively when a SLIM interfaces to an
Ovation Loop Interface module card.
OW351_R1100 325
5.66 MASTATION
Auto Mode
The output equals the gained and biased input plus the bias bar value
(OUT = (IN1 x IN1 GAIN) + IN1 BIAS + BIAS BAR) except:
When the algorithm is told to track, the output equals the track input when the tracking signal
is present. The output ramps from the track input back to the gained and biased input when
the tracking signal is removed.
When a raise inhibit or lower inhibit signal is present, it may prevent the output from following
the input.
The bias bar value is output as an analog value and may be raised or lowered by the
Increase/Decrease set point keys (arrow up/arrow down) on the Operator's Keyboard. This value
is only added to the output value in Auto mode; it has no effect on the output (but still may be
raised or lowered) in Manual or Local mode.
If an Ovation Loop Interface module is selected, the output value is written to the card.
The Increase/Decrease Output keys on the Operator's Keyboard have no effect in this mode.
Manual Mode
The output is raised or lowered by using the Increase/Decrease Out put requests. The raise inhibit
and lower inhibit signals override the Operator's Keyboard Increase/Decrease Output requests.
The tracking signal causes the output to equal the track input, regardless of the raise/lower inhibit
signals and the Increase/Decrease Output key requests. The bias bar value has no effect on the
output, but still may be raised and lowered.
If an LI interface is selected, the output value is written to the card. The output value may also be
raised or lowered from the Loop Interface Module (SLIM) in this mode.
Local Mode
This mode is only available if an LI Module, type interface has been selected. The
Increase/Decrease commands from the SLIM directly control the LI card, which is in Local mode.
The algorithm either reads the demand counter on the LI, and causes its output to track the card's
value. In this tracking mode, all directional commands inside the functional processor (for
example, Variable Input, Raise Inhibit and Lower Inhibit) and directional commands from the
Operator's/Alarm Console (for example, Increase, Decrease) have no effect on the algorithm.
Mode Transfers
The algorithm transfers between the Auto, Manual, and Local modes as follows:
The digital reject signal from the MAMODE Algorithm rejects the algorithm from Auto to
Manual mode.
The Auto Request and Manual Request signals from the AUTO and MAN mode request keys
on the Operator's Keyboard switch the algorithm to the desired mode if it is not in Local mode.
If the LI is selected, the SLIM can switch the algorithm between Auto, Manual, and Local
modes.
If the LI is selected, and if there are hardware errors, the algorithm rejects to Local mode. If
the card determines that there is a SLIM communications error while it is in Local mode, it
rejects the card to Manual mode. The algorithm also goes to Manual mode.
326 OW351_R1100
5.66 MASTATION
If the Quality Reject (REJQ) feature is OFF, then the quality check is not performed on the
input when in Auto mode. If the algorithm is in Auto mode and the quality of the input goes
BAD or not GOOD depending on the Quality Reject flag, then the algorithm rejects the card to
Manual mode.
Regardless of the REJQ parameter, the input value (IN1) is checked for an invalid value when
the algorithm is in Auto mode. If the algorithm is in Auto mode and the value of the i nput
becomes invalid, the algorithm rejects the card to Manual mode. If the algorithm is not in Auto
mode and the operator tries to select Auto mode when the input value is invalid, the algorithm
remains in the same mode and does not reject the card to Manual mode.
The track input value is also be checked for invalid real numbers when the algorithm is being
told to track. While in Auto mode, if the algorithm is told to track and the track input value is
invalid, the algorithm rejects the card to Manual mode. In all modes, the track request is
ignored when the track input value is invalid.
On reset/power-up, the algorithm is in Local mode if a LI interface is selected. If a soft
interface is selected, then the algorithm goes to the mode initialized by the First pass mode
(FP) parameter.
On reset/power-up of the LI card, if LI interface is selected and RLI priority (PRLI) is YES,
then the algorithm is set to local mode and the output value is zero. If the LI interface is
selected and RLI priority (PRLI) is NO, then the algorithm changes the RLI card mode from
local to the last mode before the card is powered down. The LI analog output value is
initialized to the last output value before the card was powered off.
Key usage
KE Y US E
OW351_R1100 327
5.66 MASTATION
The MRE point becomes true for the amount of time specified in the MRET parameter. The
algorithm sets the point true anytime the algorithm goes to manual (unless specified by operator
request).
Priority Raise/Lower
The Priority Raise/Lower functionality (PRAR, PRAT, PLWR, PLWT parameters) is available
when the MODE input pin is connected to output of MAMODE algorithm.
If bit 0 (Priority Lower) in MODE pin is active, the MASTATON output is decreased with the rate
defined by the PLWR (Priority Lower Rate) parameter. In that case, the output is going to the
value defined by the PLWT (Priority Lower Target) parameter. If the PLWT value is lower than the
BTSC limit, the MASTATION output stops on the BTSC limit.
If bit 1 (Priority Raise) in MODE pin is active, the MASTATON output is increased with the rate
defined by the PRAR (Priority Raise Rate) parameter. In that case, the output is going to the
value defined by the PRAT (Priority Raise Target) parameter. If the PRAT value is lower than the
TPSC limit, the MASTATION output stops on the TPSC limit.
If both bits (Priority Lower and Priority Raise) are active at the same time, the MASTATION will
ignore these commands.
Operational Symbol
The following symbol illustrates the operation of MASTATION via a SAMA representation.
328 OW351_R1100
5.66 MASTATION
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog track point. This algorithm takes the action shown in the following table in response
to the information found in the analog input signal TRIN.
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the definitions given
in Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored. Otherwise, the
value of the conditional track bit is transferred to all output track points. If the Conditional Track
bit is set in the track input point, the analog value of all output track points is calculated based on
the analog value of the track input point.
Note: If a mode word is provided, its contents are decoded and shown in the Control Builder in
the bottom status bar along with the track words. See Ovation Control Builder User Guide for
more information.
The high and low limit flags, the mode and the tracking signals from the algorithm are output to
TOUT, to be used for display and by an upstream algorithm. The configuration of the use of this
algorithm must be specified by the user for correct implementation of the track ing features. If the
upstream algorithm is BALANCER, then the configuration must indicate that this algorithm is
being used with the BALANCER algorithm. Otherwise, the configuration is specified as NORMAL.
OW351_R1100 329
5.66 MASTATION
If a BAD hardware status error caused the algorithm to reject to Local, the quality remains BAD
on the output and the algorithm remains in Local mode until the error is cleared. If a write error
caused the algorithm to reject to Local, the quality becomes GOOD on the output and the
algorithm remains in Local mode until Local mode is exited via the SLIM.
If there are no hardware errors, the quality of OUT is set to the quality of the track input variable
when tracking. Otherwise, the quality of OUT is GOOD when in Manual mode or set to the quality
of the input when in Auto mode.
If the algorithm calculates an invalid real number for the output in Auto mode, the quality of OUT
is set to BAD and the drop is placed into alarm.
Note: If the algorithm generates an invalid track output value, the IN1 input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and IN1 input values are invalid.
The TPSC and BTSC parameters are used to limit the output value of the algorithm. These values
must always be 100% and 0%, respectively, when interfacing to an LI card which is connected to
a SLIM.
Any output raise or lower request, from the Operator Station is sent directly to the LI configured as
an electric drive card type when it is in Failed Local mode. The LI outputs any SLIM raise or lower
requests for the output, then outputs any controller raise or lower requests for the output to the
digital raise or lower outputs.
When the position feedback signal of an LI configured as an electric drive card type fails, the LI
goes to Failed Local mode and the value of output point is the feedback signal from the drive. The
output bar SLIM display flashes between 0 and 100% to indicate the Failed Local mode.
The options to have runbacks and/or interface to an electric drive on the LI card must be
configured through the I/O Builder.
CAUTION! When using the MASTATION algorithm with a BALANCER algorithm, follow these
guidelines:
2. For all MASTATIONS that immediately follow BALANCER, set MASTATIONS CNFG
parameter to BALANCER.
330 OW351_R1100
5.66 MASTATION
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 331
5.66 MASTATION
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
332 OW351_R1100
5.66 MASTATION
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 333
5.66 MASTATION
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
* When a parameter type is defined as "Selectable" and marked as "Required," the Control Builder may
default the parameter to a value and mark it as "Optional." However, for the control function to be executed
properly, you must enter a value for the parameter.
334 OW351_R1100
5.67 MASTERSEQ
5.67 MASTERSEQ
Description
The algorithm monitors the device that corresponds to each step via a packed group point. This
packed group point is termed the status point. There is a unique status point for each device. The
status point serves as both input and output for the MASTERSEQ and DEVICESEQ algorithms
according to the bit definitions in the accompanying table. A device is considered “on” or “running”
when bit zero, in its associated packed group status point, is equal to logic 1. Likewise a device is
considered “off” or “stopped” when bit zero is equal to logic zero.
Functional Symbol
OW351_R1100 335
5.67 MASTERSEQ
User Configuration
The attached devices are numbered sequentially from 1-30 and the associated default status
points are named DV01-DV30 respectively. These 30 devices can be sequenced in any user-
defined order. The 30 integer fields in the algorithm template (ST01-ST30) correspond to the 30
possible steps. The steps are numbered sequentially. In order to associate a particular device
with a step number, the device number is included in the integer field that corresponds to that
step number. A particular device can be included in multiple steps in the sequence. The current
step number being considered by the MASTERSEQ is stored in the STEP output.
In the following sections, a step is considered complete when the DEVICE SEQ algorithm
assigned to that step indicates a success or failure or the user overrides the step via the OVRD
input. If a step references a device that does not exist or a zero is specified as the device number
for a particular step, then, that step is skipped and the algorithm increments the step.
The MASTERSEQ algorithm can operate in two modes. These are normal mode and priority
mode. In normal mode, the step numbers increase sequentially and the corresponding devices
are executed accordingly. In priority mode, the step number that corresponds to the device to be
executed is input to the algorithm via the TKIN input. That step is executed when the TMOD input
is TRUE. The order of the steps does not need to be sequential. This allows the sequence to be
dynamically adaptive based on the requirements of a particular application.
The algorithm is reset to the initial state when the RSET input is TRUE regardless of the mode of
operation. Any time the RSET input is TRUE, it causes the algorithm to clear all bit s in the status
point, stop any device that is currently running, and set the current step to zero. Refer to the reset
flow chart for a visual depiction of the actions performed when the RSET input is TRUE.
Initial State
The initial step of the algorithm, on power-up, is zero. At step zero, no devices are active. In
normal mode, if the ENBL input is equal to logic one, the algorithm sequences to the first
available step. If the ENBL input is equal to logic 0, then all devices are ignored and remain in
their previous state and the algorithm is inactive. A step is considered to be available if its
associated device number corresponds to a DEVICESEQ algorithm that is connected to the
MASTERSEQ algorithm. If the device number is valid, the device is considered for execution
according to the rules outlined in the following sections. If the ENBL input is FALSE the algorithm
is inactive regardless of the mode of operation.
In the normal mode of operation, the sequential execution of the connected devices is controlled
via the PRCD and OVRD inputs on the algorithm. The PRCD input acts as a “start” button. If the
PRCD input is TRUE, the algorithm reads the value of the READY and FAILED bits from the
associated status point. Refer to the description of the DEVICESEQ algorithm for details on how
the READY and FAILED bits in the status point are initialized. If the associated device is READY
and not FAILED, the algorithm sets bit one, in the status point that corresponds to that devic e, to
logic 1.
If the READY bit in the status point is FALSE, the algorithm sets the HOLD output to logic 1. If the
FAILED bit is TRUE, the algorithm sets HOLD output to logic 1. In both of these conditions, the
algorithm remains at the current step.
336 OW351_R1100
5.67 MASTERSEQ
If while a device is running, the SUCCESS bit becomes TRUE in the corresponding status point,
the algorithm sets bit zero in the status point to logic 1 (thus stopping the device) and the step is
incremented to the next step sequential number. The next device is not started unless the PRCD
input is TRUE.
If while a device is running, the FAILED bit becomes TRUE in the status point, the step number is
not be incremented and both the HOLD and FAIL outputs are set to logic 1. Once this condition is
reached, one of the following actions must occur in order for the step to increment:
A. The FAIL condition must be cleared which causes the FAIL output to be set to logic zero and
the step is incremented to the next sequential number.
B. The OVRD input must be set to logic 1, which causes the step to increment to the next
sequential number.
If at any time during execution, the OVRD input becomes equal to logic 1, the algorithm
increments the current step. If the OVRD input is equal to logic 1 while a particular step is bei ng
executed, the algorithm turns the corresponding device off and the step number is incremented to
the next available step. Any tine the step is incremented as a result of the OVRD input, the
OVERRIDE bit is set to 1 at the status point. This provides a history feature for each step to
indicate how the step number was advanced. If the PRCD and OVRD inputs are equal to logic 1
simultaneously, the OVRD takes precedence.
When the last step in the sequence has completed, the algorithm sets the DONE output logi c to 1.
At this point, the algorithm must be reset to begin operation again.
Refer to the normal mode flow chart for a visual depiction of the operation of the algorithm when
operating in normal mode.
In priority mode, the step number to be executed is determined by the analog value of the TKIN
input. Any fractional value to the right of the decimal point, in the TKIN input value, is truncated.
This gives you the ability to dynamically steer the algorithm to any desired step in the sequence.
The value of the TKIN input is used as the step number only if the TMOD input is TRUE. Thus the
algorithm is considered to be in priority mode when the step number is determined from the TKIN
input. As in normal mode, the PRCD input must be TRUE in order for the execution of the step to
begin.
If the value of TKIN is equal to a step that corresponds to a valid device, the TMOD input is TRUE
and PRCD input is FALSE, the algorithm sets the current step to the TKIN value. However, the
step is not executed until the PRCD input becomes TRUE. When operating in Priority Mode, the
algorithm ignores the OVRD input. If the value of the TKIN refers to a device that does not exist,
the algorithm remains at the previous step. If a device is running, the TKIN and TMOD inputs are
ignored until the step completes.
If the MODE parameter is advisory, TKIN must be less than the maximum number of steps
(NMIN). If the MODE parameter is priority, then TKIN must be less than 30 (the total number of
allowed steps). This applies only in priority mode. All other checks for valid device apply no matter
what the priority MODE parameter is set to.
If the READY bit, in the status point, is TRUE and the FAILED bit is FALSE, the algorithm issues
a start to the associated device. This is accomplished by setting bit zero in the status point to logic
1.
OW351_R1100 337
5.67 MASTERSEQ
If the READY bit in the status point is FALSE, the algorithm sets the HOLD output logic to 1. If the
FAILED bit is TRUE, the algorithm sets both the HOLD and FAIL output to logic 1. In both of
these conditions, the algorithm remains at the current step.
If while a device is running, the SUCCESS bit becomes TRUE in the corresponding status point,
the algorithm sets bit zero in the status point logic 0 (thus stopping the device). The step is set to
the value of the TKIN input if it is a valid step. The next device is not started unless the PRCD
input is TRUE.
If while a device is running, the FAILED bit becomes TRUE in the status point, both the HOLD
and FAIL outputs are set to logic 1. When this condition is reached, the current step can be
changed via the TKIN and TMOD inputs.
Refer to the priority mode flow chart for a visual depiction of the operation of the algorithm when
operating in priority mode.
If any time during the priority mode operation the TMOD input becomes FALSE, the algorithm
reverts to normal mode operation. The hybrid mode section outlines the operation of the algorithm
using a combination of normal mode and priority mode.
It is possible to operate the algorithm in a hybrid mode where some steps are performed in
normal mode and others in Priority Mode. The mode switch is controlled by the digital value of the
TMOD input and thus can be done dynamically. When operating in normal mode, the normal
mode rules outlined above apply and when operating in priority mode, the priority mode rules
above apply.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
338 OW351_R1100
5.67 MASTERSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 339
5.67 MASTERSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
340 OW351_R1100
5.67 MASTERSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 341
5.67 MASTERSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
342 OW351_R1100
5.67 MASTERSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 343
5.67 MASTERSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
344 OW351_R1100
5.67 MASTERSEQ
BI T O R I G I N ATO R S I G N AL N AME DE S C R I P TI O N
N U MB E R
4 MASTERSEQ INSTEP Signal from Master that the step is currently being
Executed.
5 MASTERSEQ OVERRIDE When TRUE indicates that the OVRD input was
used to Increment the step.
8 - 15 Reserved for - -
future use.
OW351_R1100 345
5.67 MASTERSEQ
346 OW351_R1100
5.67 MASTERSEQ
OW351_R1100 347
5.68 MEDIANSEL
5.68 MEDIANSEL
Description
The MEDIANSEL (Median value selector, quality and deviation checks) algorithm monitors analog
transmitter inputs for quality and deviation from each other. The output (OUT) of the algorithm is
the median of the three analog inputs as long as there are no Quality or Deviation Alarms.
Otherwise, the algorithm determines the best or most probably correct input or average of inputs
for the output value. In addition to the output signal (OUT), there is a High Alarm analog output
(HI), a Low Alarm analog output (LO) and 12 digital signals, indicating the states of the inputs,
which may be output as individual digital points or as a packed digital record.
Functional Symbol
The type of quality on the input that sets the Quality Alarm for that point is initialized in the Control
Indicator Word. The Control Deviation Alarm digital output signal between two points is set TRUE
when the difference of the two points is greater than the user-initialized Control Deviation
Deadband (CNDB) and the two points are not in Quality Alarm. Also, the Alarm Deviation Alarm
digital output signal between two points is set TRUE when the difference of the two points is
greater than the user-initialized Alarm Deviation Deadband (ALDB) and the two points are not in
Quality Alarm. The Alarm Deviation Deadband should be less than the Control Deviation
Deadband for the algorithm to function properly.
If all three transmitters are in Quality Alarm, the output value remains the last GOOD value. In
addition, if all three transmitters are in quality alarm or if the output (OUT) value is invalid, the
quality of the output is set to BAD.
If two transmitters are in Quality Alarm, the output value is the value of the transmitter that is
not in Quality Alarm.
If one transmitter is in Quality Alarm and there is no Control Deviation Alarm between the
two transmitters not in Quality Alarm, the output value is the average of the two transmitters
not in Quality Alarm.
348 OW351_R1100
5.68 MEDIANSEL
If one transmitter is in Quality Alarm and there is a Control Deviation alarm between the
two transmitters not in Quality Alarm, the output value is:
1. The higher value of the two transmitters not in Quality Alarm if the higher value is greater than
the High Alarm Monitor value (HMTR) and the lower value is not less than the Low Alarm
Monitor value (LMTR).
OR
2. The lower value of the two transmitters not in Quality Alarm if the lower value is less than the
Low Alarm Monitor value and the higher value is not greater than the High Alarm Monitor
value.
OR
3. Either the higher or lower value of the two transmitters not in Quality Alarm, depending on the
High/Low Output parameter initialized in the Control Indicator Word.
If none of the transmitters are in Quality Alarm but all three transmitters are in Control
Deviation with each other, the output value is:
1. The highest value of the transmitters if the higher value is greater than the High Alarm Monitor
value (HMTR) and the lowest value is not less than the Low Alarm Monitor value (LMTR).
OR
2. The lowest value of the transmitters if the lowest value is less than the Low Alarm Monitor
value and the highest value is not greater than the High Alarm Monitor value.
OR
3. Either the highest or lowest value of the transmitters, depending on the High/Low Output
parameter initialized in the Control Indicator Word.
If none of the transmitters are in Quality Alarm but one transmitter is in Control Deviation
with both of the other two transmitters and there is no Control Deviation alarm between the
other two transmitters, the output value is the average of the two transmitters not in Control
Deviation Alarm with each other. If none of the transmitters are in Quality Alarm and two
transmitters are in Control Deviation Alarm with each other but not with the third transmitter, the
output value is the value of the third (median) transmitter.
If none of the transmitters are in Quality or Control Deviation Ala rm and either all or none
of the three transmitters are in Alarm Deviation with each other, the output is the median
value of the transmitters.
If none of the transmitters are in Quality or Control Deviation Ala rm but one transmitter is
in Alarm Deviation with both of the other two transmitters and there is no Alarm Deviation
between the other two transmitters, the output value is the average of the two transmitters not
in Alarm Deviation with each other.
If none of the transmitters are in Quality or Control Deviati on Alarm and two transmitters
are in Alarm Deviation with each other but not with the third transmitter, the output value is
the value of the third (median) transmitter.
If none of the transmitters are in Control Deviation Alarm with each other, the high alarm
output and low alarm output values are set equal to the output value. Otherwise, the high alarm
output value is set equal to the highest transmitter value not in Quality Alarm, and the low alarm
output value is set equal to the lowest transmitter value not in Quality Alarm.
OW351_R1100 349
5.68 MEDIANSEL
The Transmitter Quality Alarm digital output (XBQ) is set TRUE when all three transmitters are in
Quality Alarm. The Transmitter A Quality Alarm digital output (XABQ) is set TRUE when
Transmitter A is in Quality Alarm. The Transmitter B Quality Alarm digital output (XBBQ) is set
TRUE when Transmitter B is in Quality Alarm. The Transmitter C Quality Alarm digital output
(XCBQ) is set TRUE when Transmitter C is in Quality Alarm.
The Transmitter A - Transmitter B Control Deviation Alarm digital output (ABDC) is set TRUE
when the deviation between Transmitter A and Transmitter B is greater than the Control Deviation
Deadband. The Transmitter A - Transmitter C Control Deviation Alarm digital output (ACDC) is set
TRUE when the deviation between Transmitter A and Transmitter C is greater than the Control
Deviation Deadband. The Transmitter B - Transmitter C Control Deviation Alarm digital output
(BCDC) is set TRUE when the deviation between Transmitter B and Transmitter C is greater than
the Control Deviation Deadband.
The Transmitter A - Transmitter B Alarm Deviation Alarm digital output (ABDA) is set TRUE when
the deviation between Transmitter A and Transmitter B is greater than the Alarm Deviation
Deadband. The Transmitter A - Transmitter C Alarm Deviation Alarm digital output (ACDA) is set
TRUE when the deviation between Transmitter A and Transmitter C is greater than the Alarm
Deviation deadband. The Transmitter B - Transmitter C Alarm Deviation Alarm digital output
(BCDA) is set TRUE when the deviation between Transmitter B and Transmitter C is greater than
the Alarm Deviation Deadband.
The Transmitter Malfunction Alarm digital output (XALM) is set TRUE when there is a Quality
Alarm on any of the three signals or when the deviation between any two transmitter values is
greater than either the Control Deviation Deadband or the Alarm Deviation Deadband.
The Manual Reject digital output is either a one-shot signal or a maintained output, depending on
the MRE output type that is initialized in the Control Indicator Word (CNTL).
The Packed output signal (PBPT) contains the Manual Reject output, the Transmitter Malfunction
Alarm, the Quality Alarms, the Control Deviation Alarms, and the Alarm Deviation Alarms for all
three transmitters.
The HOLD parameter holds the output value and quality for a desired number of loops when a
manual reject occurs.
350 OW351_R1100
5.68 MEDIANSEL
FU N C TI O N KE Y US E
Note: If the transmitter selected goes to BAD quality, then the algorithm changes mode to
median.
The transmitter's input values to the algorithms are checked for invalid real numbers. If an input
value contains an invalid real number, it is not used in generating the output of the algorithm.
However, the Transmitter Quality Alarm digital output for the point is set to TRUE if the input value
is invalid.
If the algorithm calculates an invalid real number for the output, the quality of the output is set to
BAD and the output value is invalid.
INSEL parameter
The INSEL parameter determines which inputs of the MEDIANSEL algorithm are being used to
calculate the output. The Signal Diagram application displays green circles around the active pins.
If none of the pins are selected, then nothing will display. You can also view this information via
the Process Diagram System graphics as well. Refer to Ovation Operator Station User Guide for
more information on the Signal Diagrams application and the Process Diagram System graphics.
The MEDIANSEL algorithm activates individual bits in the Y0 field depending on the conditions in
the description field. If a signal is active, that signal is being used in the output calculation.
OW351_R1100 351
5.68 MEDIANSEL
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
352 OW351_R1100
5.68 MEDIANSEL
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 353
5.68 MEDIANSEL
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
354 OW351_R1100
5.68 MEDIANSEL
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Bit 1 - Signal A
0 = Not Active
1 = Active
Bit 2 - Signal B
0 = Not Active
1 = Active
Bit 3 - Signal C
0 = Not active
1 = Active
* If no inputs are selected, it indicates one of the following:
the inputs are all BAD quality.
the output is scan removed.
Manual Reject is activated with HOLD.
the calculated output is invalid.
OW351_R1100 355
5.69 MULTIPLY
5.69 MULTIPLY
Description
The MULTIPLY algorithm multiplies two gained and biased inputs. The output of the MULTIPLY
algorithm is the product of the two individually gained and biased inputs.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog point. This algorithm takes the following action in response to the information found
in the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
356 OW351_R1100
5.69 MULTIPLY
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the definitions given
in Setting Tracking Signals (see page 14).
*** If the algorithm is being told to track, then the Conditional track bit is ignored. Otherwise, the
value of the conditional track bit is transferred to all output track points. If the Conditi onal Track bit
is set in the track input point, the analog value of all output track points is calculated based on the
analog value of the track input point.
The high and low limit flags and the tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT is
set to BAD. Otherwise, the quality of OUT is set to the worst quality of the two inputs when not in
tracking mode. When tracking, the quality is set to the quality of the track input variable.
Note: If the algorithm generates an invalid track output value, the IN1 input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and IN1input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 357
5.69 MULTIPLY
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
358 OW351_R1100
5.70 NLOG
5.70 NLOG
Description
The NLOG algorithm performs the mathematical natural logarithmic function. For the NLOG
algorithm, the output equals the natural logarithm of the input value plus a bias. If the input value
is less than or equal to zero, the output is set to a large negative number (-3.4 x 1038).
Note: Other logarithmic algorithms are ANTILOG (see page 69) and LOG. (see page 316)
The quality of the input is propagated to the output. However, if the algorithm calculates an invalid
value for the output, the quality of the output is set to BAD, and the output value is invalid.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 359
5.71 NOT
5.71 NOT
Description
The NOT algorithm is a logical NOT gate. For the NOT algorithm, the output is the logical NOT of
the input.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
IF IN1 = TRUE
THEN OUT = FALSE
ELSE
OUT = TRUE
360 OW351_R1100
5.72 OFFDELAY
5.72 OFFDELAY
Description
The OFFDELAY algorithm extends the time that the output is TRUE. On a FALSE -to-TRUE state
level change of the IN1 (Pulse Stretcher), the Timer ACTUAL (ACT) is set to zero and the OUT
output is TRUE.
On a subsequent TRUE-to-FALSE state level change of the IN1, the ACTUAL (ACT) begins
accumulating time. When ACTUAL (ACT) is equal to the TARGET (TARG), accumulation stops,
the OUT output is set to FALSE, and ACTUAL (ACT) retains data until it is reset by another
FALSE-to-TRUE state level change of the IN1 input.
If the TARGET (TARG) value specifies a time which is less than or equal to the sheet scan time, it
is permissible for the OUT output to be set FALSE on the same scan that the IN1 input changed
from TRUE to FALSE.
The timers are re-triggerable (that is, the ACTUAL (ACT) can be reset before it reaches the
TARGET (TARG) value).
If the TARGET (TARG) or ACTUAL (ACT) operands contain a negative or invalid number, OUT is
set to FALSE but no other operation takes place.
When a Controller resets, if IN1 is FALSE, ACTUAL (ACT) remains unchanged and t he OUT
output is TRUE according to the comparison between the ACTUAL (ACT) and the TARGET
(TARG). However, if the ACTUAL (ACT) has an initial value, then the ACTUAL'S (ACT's) initial
value is compared to TARG. If IN1 is TRUE, ACTUAL (ACT) is set to zero and OUT is TRUE.
In redundant Controllers, during Fail over, if IN1 is FALSE, ACTUAL (ACT) remains unchanged
and both outputs are TRUE according to the comparison between the ACTUAL (ACT) and
TARGET (TARG). If IN1 is TRUE, ACT is set to zero and OUT is TRUE.
An optional time base (minimum of 0.1 second) can be entered in the R1 field of the algorithm
record. The default time base is 1 second.
Functional Symbol
OW351_R1100 361
5.72 OFFDELAY
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
(IN1)
TARGET TARGET
362 OW351_R1100
5.73 ONDELAY
5.73 ONDELAY
Description
The ONDELAY algorithm delays the time that the output is set to TRUE. When the ONDELAY
algorithm is enabled with the IN1 input TRUE, the Timer ACTUAL (ACT) accumulates time per
the specified Time BASE (BASE) until it equals the Timer TARGET (TARG). At this point, it stops
accumulating and remains at the TARGET (TARG) value and OUT goes to TRUE.
If the IN1 input changes from TRUE to FALSE while the Timer is enabled (ENBL), the ACTUAL
(ACT) retains the current value. When the IN1 input changes back to the TRUE state, the
ACTUAL (ACT) resumes accumulating time.
You can reset ACTUAL (ACT) to zero at any time by making the ENBL input FALSE. This causes
OUT to go FALSE. Typically; however, the IN1 and ENBL inputs are tied together so that
ONDELAY acts as a “classical” timer.
Note: If ENBL is not connected, the algorithm work s as a “classical” timer. The same
functionality can be achieved when the IN1 and ENBL inputs are tied together.
If the ACTUAL (ACT) value is equal to or greater than the TARGET (TARG) value, transitions of
the IN1 input have no effect.
Of special consideration is the case when the Timer TARGET (TARG) equals zero. In this
instance, the OUT output follows the IN1 input as long as the Timer is enabled.
If the TARGET (TARG) specifies a time which is less than or equal to the sheet scan time, it is
permissible for the OUT output to be TRUE on the first scan that the IN1 and ENBL i nputs are
TRUE.
If the TARGET (TARG) or ACTUAL (ACT) operands contain a negative or invalid number, OUT is
set to FALSE but no other operation takes place.
When a Controller resets, if ENBL is TRUE, ACTUAL (ACT) remains unchanged and the OUT
output is energized according to the comparison between ACTUAL (ACT) and TARGET (TARG).
However, if ACTUAL (ACT) has an initial value, then ACT's initial value is compared to TARGET
(TARG). If ENBL is FALSE, ACTUAL (ACT) is set to zero and OUT is FALSE.
An optional time base (minimum of 0.1 second) can be entered in the R1 field of the algorithm
record. The default time base is 1 second.
OW351_R1100 363
5.73 ONDELAY
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
* When a parameter type is defined as "Selectable" and marked as "Required," the Control Builder may
default the parameter to a value and mark it as "Optional." However, for the control function to be
executed properly, you must enter a value for the parameter.
364 OW351_R1100
5.73 ONDELAY
(IN1)
OW351_R1100 365
5.74 ONESHOT
5.74 ONESHOT
Description
The ONESHOT algorithm sets the output TRUE on a transition for a specified period of time. On a
FALSE-to-TRUE transition of the IN1 input, the OUT output energizes. The ACTUAL (ACT) is
reset to zero and immediately begins accumulating time, and continues to accumulate until it
equals the TARGET (TARG) or until another FALSE-to-TRUE transition of the IN1 input has
occurred.
When ACTUAL (ACT) equals TARGET (TARG), the OUT output de-energizes and the ACTUAL
(ACT) retains its value until a FALSE-to-TRUE transition of the IN1 input has occurred.
The function is retriggerable (that is, if the ACTUAL (ACT) is accumulating time and the IN1 input
makes a FALSE-to-TRUE transition before it reaches the TARGET (TARG) value, the function is
reset and begins accumulating from time zero).
If the ACTUAL (ACT) is greater than the TARGET (TARG), it is inhibited from acc umulating time
and the OUT output is de-energized.
If the TARGET (TARG) or ACTUAL (ACT) operands contain a negative or invalid number, OUT is
de-energized but no other operation takes place.
When a Controller resets, regardless of the IN1 state, ACTUAL (ACT) continues to accumulate
and OUT output is energized according to the comparison between ACTUAL (ACT) and TARGET
(TARG). However, if ACTUAL (ACT) has an initial value, then ACTUAL's (ACT) init ial value is
compared to TARGET (TARG).
In redundant Controllers, during Failover, regardless of the IN1 state, ACTUAL (ACT) continues to
accumulate and the OUT output is energized according to the comparison between ACTUAL
(ACT) and TARGET (TARG).
When a control sheet is modified and then loaded, the algorithm behavior depends on the
algorithm state and the changes made on the sheet.
If the ONESHOT is in a triggered state (IN1 = TRUE) and any changes were made to any of
the ONESHOT’s parameters, the OUT resets to zero and the ACTUAL (ACT) is also reset to
zero upon a sheet load.
In other cases, when the ONESHOT is not in a triggered state or no changes are made to any
of the ONESHOT’s parameters, the OUT keeps the current value and ACTUAL (ACT)
continues to count (if the target value has not been reached).
If a tuning change is made to the TARGET (TARG) from the signal diagram, it is ignored if the
ONESHOT is in its triggered state (IN1 = TRUE). For example, if the TARGET (TARG) is 10 and
the ONESHOT is triggered, changing the target to 20 will not change the time when the OUT
transitions to zero (it will still be a 10 second pulse).
If a tuning change is made (via the signal diagram) to the BASE, the ONESHOT will recalculate
its ACTUAL (ACT) time and if the recalculated time has not reached its TARGET (TARG), the
OUT will remain at a one state until the target is reached. For example, assume the ONESHOT
with a BASE of 1 and a TARGET of 20 is triggered. At count 10, the base is then changed to 2.
The ACTUAL (ACT) will immediately change to 5 and the OUT will stay at a one state until the
count reaches 20 which will actually be 40 seconds from the time it was triggered.
366 OW351_R1100
5.74 ONESHOT
In the Ovation Developer Studio, the TARGET is actually labeled "Pulse Time Number."
If the TARGET input is connected to another algorithm output, the ONESHOT behaves differently
than the manner described above. Tuning changes (via the signal diagram) will not be ignored but
will function as follows: Assume a TARGET of 30 and the ONESHOT is triggered. The ACTUAL
(ACT) time will increment normally. If the TARGET input is changed to a greater value before the
30 seconds has timed out, the pulse will obey the new value. Therefore, if the value was changed
to 60, the pulse length will now be 60 seconds instead of 30 (but only if the TARGET input value
changed before the original 30 seconds had timed out).
Conversely, if the TARGET input time is shortened before the original target is reached, the
ONESHOT will obey the new TARGET. Assume an initial TARGET of 30 and the ONESHOT is
triggered. A change is made to the TARGET input to 20 so now the pulse length will be
shortened to 20. If the ACTUAL (ACT) value is greater than 20 when the change is made, the
OUT will immediately transition to zero. Tying the TARGET to an AVALGEN algorithm offers
additional flexibility especially in cases where it is not known exactly how long the ONESHOT
should be and online tuning changes are desired.
Connecting the TARGET to other algorithms can be done to create additional functions such as a
variable ONESHOT pulse output.
An optional time base (minimum of 0.1 second) can be entered in the R1 field of the algorithm
record. If a value is not entered or a zero is entered into BASE (R1), the default time base is
assumed to be 1 second.
Functional Symbol
OW351_R1100 367
5.74 ONESHOT
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
(IN1)
368 OW351_R1100
5.75 OR
5.75 OR
Description
The OR (Logical OR gate up to 8 inputs) algorithm changes the Boolean of the output based on
the input. The output equals the logical OR of two to eight inputs (that is, at least one input must
be TRUE for the output to be TRUE).
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 369
5.76 PACK16
5.76 PACK16
Description
The PACK16 algorithm specifies up to 16 optional digital values as inputs, which are placed into
their corresponding positions in the A2 record field of an LP or larger point record. Inputs may be
of any size (that is, LD, or DD). Variable PBPT functions as an output LP point record, which is
broadcast on the Data Highway for use by other drops. PBPT also functions as an input, when
desired, to pack the LP record from multiple algorithms. These other algorithms can be additional
PACK16 algorithms or other types. For example, you could pack Bits 0 through 10 from Algorithm
X, Bits 11 through 15 from algorithm Y. Bit locations can be left unpacked as spares, if desired.
Note: If digital inputs have bad quality, then the pack ed point (PBPT) bit remains unchanged.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
370 OW351_R1100
5.76 PACK16
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 371
5.77 PID
5.77 PID
Description
The PID algorithm provides a proportional, integral, derivative controller function. The algorithm is
a parallel PID implementation that utilizes integral tracking signals for bumpless transfer. The
output value is limited via user-defined limits and anti-reset windup is handled internally.
Functional Symbol
Guidelines
1. PV GAIN and PV BIAS must be used to normalize the process variable inputs to a 0 to 100
percent value.
(PV x PV GAIN) + PV BIAS = PV percent. Thus:
2. STPT GAIN and STPT BIAS must be used to normalize the set point to a 0 to 100 percent
value. If setpoint input units are not 0 to 100 percent, then:
3. Determine set point high and low limits with these equations:
set point high limit = (100 - STPT BIAS)/STPT GAIN
set point low limit = (0 - STPT BIAS)/STPT GAIN
372 OW351_R1100
5.77 PID
Auto-scaling options
The Auto-scaling option consists of a configuration parameter (AUSC) and Engineering Units
limits parameters (high and low limits) for PV and STPT inputs of the PID algorithm.
NONE
PV_ONLY
SP_ONLY
BOTH
Auto-scaling is disabled. The PID uses the gain and bias values that are configured by the user
for each input (R1, R2 for PV and R3, R4 for SP).
Auto-scaling is enabled for the process variable only. The STPT input (setpoint) uses the gain and
bias values configured by the user. For the PV gain and bias values, the top and bottom
engineering units range are read depending on the Auto-Scaling parameter option. The
appropriate gain and bias values are calculated so that the PV auto-scale high and low limits are
scaled to 0%-100%, according to the formulas:
The calculated gain and bias values are then written to the R1 and R2 LC record fields by the
algorithm. These changes will be reconcilable from the database in the same manner as if it were
tuned.
Auto-scaling is enabled for the Set Point only. The PV (Process Variable) input uses the gain and
bias values configured by the user. For the SP gain and bias values, the top and bottom
engineering units range are read depending on the Auto-Scaling parameter option. The
appropriate gain and bias values are calculated so that the SP auto-scale high and low limits are
scaled to 0%-100%, according to the formulas:
The calculated gain and bias values are then written to the R3 and R4 LC record fields by the
algorithm. These changes will be reconcilable from the database in the same manner as if it were
tuned.
OW351_R1100 373
5.77 PID
Auto-scaling is enabled for both the PV and SP. The PV auto-ranging is handled as outlined in
PV_ONLY and the SP auto-scaling is handled as outlined in SP_ONLY.
The Auto-scaling parameter option consists of the configuration parameter (AUSCP). This
parameter allows the user to configure what scaling parameters to use.
This case applies to any configuration of auto-scaling. The auto-scaling range values are
considered invalid if any one of the following occurs:
In the case where the range values are invalid for a particular input, the output will not change
and will be marked as BAD quality. Also, the PID will post an Invalid Calculated Number message
in the Error Log and will place the drop in alarm.
Output Calculation
The output (which is in either engineering units or percent and limited by the high and low limits
specified) equals the result of the PID equation except:
When the algorithm is told to track, the output equals the track input when the tracking signal
is present. The output ramps at the user-specified track rate, from the track input back to the
controlled value when the tracking signal is removed.
When a raise inhibit or lower inhibit signal is present, it may prevent the PID controller from
controlling.
If the algorithm calculates an invalid real number for the output, the quality of the output is set
to BAD. Consequently, if an invalid value is entered as an input to the algorithm, or if the
algorithm generates an invalid value for the output, the drop is placed into alarm. In all cases,
the output is set to the last GOOD value.
If the algorithm generates an invalid track output value, the set point input value is used as
the track output, unless it is invalid. The track output value is not updated if both the
calculated track output and the set point input values are invalid.
The algorithm can be configured to utilize a Deadband region in the Controller error signal. This
Deadband region is used to modify the error signal that is presented to the PID equation.
The Controller error signal is calculated as the difference between the normalized proc ess
variable and normalized set point and is passed as the input to the PID equation. If the algorithm
is configured to utilize an error Deadband and the error is within the deadband limits, the error
that is presented to the PID equation is Error = Error X Error Deadband Gain.
374 OW351_R1100
5.77 PID
When the algorithm is configured to use deadband, transitions into and out of the deadband
region are smoothed internally by utilizing a hold and track operation. During this transition cycle,
the Controller output is set to its previous value and the integral term is re-calculated to account
for the apparent proportional gain change in the new region. This effectively eliminates the abrupt
change in the proportional term due to the deadband transition. Derivative action is disabled when
the algorithm is operating within the deadband region.
If no deadband action is desired, the inner deadband limit (DBND) should be set to zero.
Single Deadband
The Single Deadband mode is configured by initializing the inner deadband limit (DBND field) to a
non-zero value and setting the deadbands option (DOPT) parameter to SINGLE. This value
represents the normalized Controller error signal to be used as the Deadband region limits.
Deadband is symmetrical with respect to zero. For example, if the DBND field equals 5, then the
deadband region is between -5% and +5%. If the Controller error signal is within the deadband,
then the actual error that is presented to the PID equation is the product of the error signal and
the error deadband gain. The ERRD field contains the value of the error deadband gain. The valid
values for this field are any real numbers between zero and one [0 - 1].
As an example, consider the following: DBND is 5 and ERRD is 0.5. For a normalized Controller
error signal of 2%, the actual error signal that is applied to the PID equation is 2% x 0.5 = 1%. In
general, for these example values of DBND and ERRD, any normalized error signal between -5%
and +5% is reduced by 50% before being applied to the PID equation. Derivative action is
disabled when the algorithm is operating within the deadband region.
Double Deadband
The Double Deadband configuration utilizes two deadband limits. These are the inner (DBND)
and the outer deadband limit (ODBND). Once the absolute value of the error signal is less than or
equal to the inner deadband, then the deadband gain is applied. The deadband gain is applied
until the absolute value of the error signal is greater than the outer deadband.
The Double Deadband mode is configured by initializing the Outer Deadband (ODBND) field to a
value greater than the inner deadband limit (DBND) and setting the deadbands option (DOPT)
parameter to DOUBLE. The Double Deadband mode is designed to be used when a noisy
process variable is present. When noise is present in the Process Variable signal, it causes
fluctuations in the magnitude of the error signal. When a Single Deadband is used, the Controller
error signal can fluctuate in and out of the deadband region (DBND) on successive execution
loops. In severe cases, this can lead to reduced performance of the PID algorithm. An example of
this situation is shown graphically in the following figure.
In this figure, at time t1, the signal has entered the inner deadband region. At time t2, the noise
has caused the signal to exit the inner deadband region, and at t3, it enters it again. The same
problem is seen again as the signal leaves the inner deadband region, as seen at t4, t5 and t6.
At each transition into and out of the deadband, the algorithm performs a track and hold
operation. This prevents the output from spiking due to the abrupt change in the proportional
term.
In Singe Deadband mode, subsequent transitions into and out of the deadband region can lead to
reduced performance of the PID algorithm.
OW351_R1100 375
5.77 PID
To prevent this situation, a second outer deadband region (ODBND) can be defined by the user.
This should be larger than the inner deadband region (DBND) as shown in the following figure.
More specifically, the outer deadband (ODBND) should be defined as equal to, or larger than, the
noise seen in the signal PLUS the inner deadband region (DBND).
376 OW351_R1100
5.77 PID
For example, if the DBND field is equal to 5, then that deadband region is between -5% and +5%.
Once the Controller error signal reaches this inner deadband region of + or -5%, a noise in the
signal with a peak of + or -3% could push the Controller error signal back out of the inner
deadband region up to + or -8% on the next scan. Therefore, the outer deadband (ODBND)
should be set larger than + or -8% to compensate for noise. In the following figure, we set the
ODBND to +/- 10. If the outer deadband (ODBND) region is less than the defined inner deadband
(DBND) region, then the outer deadband region is set equal to the inner deadband value.
OW351_R1100 377
5.77 PID
If the Hard Inhibit parameter (INHB) of PID is set to ENABLED, and PID receives an inhibit signal
from downstream, PID stops updating the PID output and holds the last calculated value prior to
the receipt of the inhibit signal. As long as the inhibit condition remains, normal control action will
resume only after the PID error changes sign.
If the Hard Inhibit parameter (INHB) is set to DISABLED, and PID receives the inhibit signal from
downstream, PID continues calculating a new output value each loop time. PID compares the
new value to the previous output value and if updating the output point with the new value would
violate the inhibit condition, then the previous output value is maintained. If the new value would
not violate the inhibit condition, then the output point is updated with the new output value.
Example
If INHB is set to ENABLED when PID receives a lower inhibit signal (LWI) via track input from a
downstream algorithm, PID output cannot decrease. The output value remains constant until
either the LWI signal is removed, or the process error changes to where PID output increases and
resumes normal control action.
If INHB is set to DISABLED when PID receives a lower inhibit signal (LWI) via track input from a
downstream algorithm, PID continues to calculate a PID output each loop time. The calculated
value is stored in the algorithm and compared to the output calculated during the previous loop
time. If a lower inhibit occurs, the actual PID output will be the greater of the two calculated
values. If a raise inhibit occurs, the actual PID output will be the lesser of the two calculated
values.
Note: In either case, PID uses internal mechanisms to ensure that an integral windup condition
does not occur during an inhibited situation.
Tracking Signals
External tracking and limiting are done through signals passed in the upper 16 bits of the third
status word of the analog track points. This algorithm takes the following action in response to
information found in the third status word of the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
378 OW351_R1100
5.77 PID
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
The High and Low limit flags, the mode, and the tracking signals from the algorithm are output to
TOUT to be used for display and by upstream algorithms.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 379
5.77 PID
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
380 OW351_R1100
5.77 PID
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 381
5.77 PID
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
382 OW351_R1100
5.77 PID
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 383
5.77 PID
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
384 OW351_R1100
5.77 PID
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
** Anytime that the value of this field is greater than the inner deadband (DBND), the double deadband
action results. This value should be set to zero if single deadband action is desired.
*** When a parameter type is defined as "Selectable" and marked as "Required," the Control Builder may
default the parameter to a value and mark it as "Optional." However, for the control function to be executed
properly, you must enter a value for the parameter.
For selectable parameters, the record field associated with the param eter will reflect the value of what is
currently selected.
OW351_R1100 385
5.77 PID
386 OW351_R1100
5.77 PID
Conditional tracking is a scheme which allows tighter control of the process variable when the
control strategy is implemented using cascaded Controllers. Essentially, the conditional tracking
scheme allows the upstream Controller to have immediate influence on the final output when the
error between the process variable and the set point changes direction while the downstream
Controller is in a saturation condition. Conditional tracking is incorporated when the downstream
Controller (Controller “B” in figure) operates in cascaded mode.
The purpose of cascaded mode is to allow two PID algorithms to be used in a cascaded
configuration where the output of one PID is the set point for another. When you desire to arrange
two PID Controllers in this configuration, the type parameter should be set to c ascaded in the
downstream Controller only. It is not necessary to configure the upstream Controller in the
cascaded configuration.
When the downstream Controller is configured in the cascaded mode, the Controller operates as
a conventional PID controller so long as the Controller is not in a saturation condition. However, if
the Controller output is saturated at the HI or LO limit or if the Controller receives an inhibit signal
from a downstream algorithm the behavior of the cascaded pair is as follows:
The downstream Controller (Controller “B” in figure) asserts the conditional track signal in its
output tracking point along the applicable limit or inhibit bit. The downstream Controller also
calculates a track output value that if applied as a set point input, yields a Controller error of zero
(see Equation 1 in the previous figure).
When the upstream Controller sees the conditional track bit set, it adjusts its output as follows: If
the error signal causes the Controller output to move against the inhibit s ignal (for example,
output attempts to increase when the algorithm is receiving a raise inhibit), then the algorithm sets
its output equal to the track input received from downstream.
If the error signal causes the output to move away from the inhibit signal, the algorithm sets its
output equal to the track input and begin controlling.
Without this mode, the upstream Controller would first have to move enough to zero the error on
the downstream Controller before having any effect on the process. This would introduce
additional dead-time in the Controller response and in the case of processes with slow dynamics
(for example, temperature control), this additional dead-time may be significant.
Only the PID algorithm configured to be in cascaded mode asserts the conditional track bit. The
upstream Controller (Controller “A” in the previous figure) does not pass the conditional track bit in
its track output.
OW351_R1100 387
5.77 PID
If the Hard Inhibit parameter (INHB) of the PID algorithm is set to ENABLED, and PID receives an
inhibit signal from downstream, the PID algorithm stops updating the PID output and holds the
last calculated value prior to the receipt of the inhibit signal. As long as the inhibit condition
remains, normal control action will resume only after the PID error changes sign.
If the Hard Inhibit parameter (INHB) is set to DISABLED, and the PID algorithm receives the
inhibit signal from downstream, PID continues calculating a new output value each loop time. PID
compares the new value to the previous output value and if updating the output point with the new
value would violate the inhibit condition, then the previous output value is maintained. If the new
value would not violate the inhibit condition, then the output point is updated with the new output
value.
Example
If INHB is set to ENABLED when PID receives a lower inhibit signal (LWI) via track input from a
downstream algorithm, the PID algorithm output cannot decrease. The output value remains
constant until either the LWI signal is removed, or the process error changes to where PID output
increases and resumes normal control action.
If INHB is set to DISABLED when PID receives a lower inhibit signal (LWI) via track input from a
downstream algorithm, the PID algorithm continues to calculate a PID output each loop time. The
calculated value is stored in the algorithm and compared to the output calculated during the
previous loop time. If a lower inhibit occurs, the actual PID output will be the greater of the two
calculated values. If a raise inhibit occurs, the actual PID output will be the lesser of the two
calculated values.
Note: In either case, PID uses internal mechanisms to ensure that an integral windup condition
does not occur during an inhibited situation.
388 OW351_R1100
5.78 PIDFF
5.78 PIDFF
Description
The PIDFF algorithm is designed to accept an externally generated analog signal that is used as
a feed-forward bias. This analog signal is summed with the actual PID output (sum of the
proportional, integral and derivative terms) to become the final control output. The advantage to
having the feed-forward input incorporated in the PID algorithm is that saturation conditions,
caused by either the final control output exceeding the algorithms limits or raise/lower inhibit
signals generated by the downstream algorithms, are handled internally to the algorithm. This can
greatly improve Controller response times to sudden changes in the direction (algebraic sign) of
the Controller error signal when the Controller is in a saturation condition.
The PID portion of the algorithm provides a proportional, integral, derivative Controller function.
The algorithm is a parallel PID implementation that utilizes integral tracking signals for bumpless
transfer. The output value is limited via user-defined limits and anti-reset windup is handled
internally.
Functional Symbol
Guidelines
1. PV GAIN and PV BIAS must be used to normalize the process variable inputs t o a 0 to 100
percent value. Use this equation:
(PV x PV GAIN) + PV BIAS = PV percent. Thus,
OW351_R1100 389
5.78 PIDFF
2. STPT GAIN and STPT BIAS must be used to normalize the set point to a 0 to 100 percent
value. If setpoint input units are not 0 to 100 percent, then:
The algorithm can be configured to utilize a Deadband region in the Controller error signal. This
Deadband region is used to modify the error signal that is presented to the PID equation.
The Controller error signal is calculated as the difference between the normalized process
variable and normalized set point and is passed as the input to the PID equation. If the algorithm
is configured to utilize an error Deadband and the error is within the deadband limits, the error
that is presented to the PID equation is Error = Error X Error Deadband Gain.
When the algorithm is configured to use deadband, transitions into and out of the deadband
region are smoothed internally by utilizing a hold and track operation. During this transition cycle,
the Controller output is set to its previous value and the integral term is re-calculated to account
for the apparent proportional gain change in the new region. This effectively eliminates the abrupt
change in the proportional term due to the deadband transition. Derivative action is disabled when
the algorithm is operating within the deadband region.
If no deadband action is desired, the inner deadband limit (DBND) should be set to zero.
Single Deadband
The Single Deadband mode is configured by initializing the inner deadband limit (DBND field) to a
non-zero value and setting the deadbands option (DOPT) parameter to SINGLE. This value
represents the normalized Controller error signal to be used as the Deadband region li mits.
Deadband is symmetrical with respect to zero. For example, if the DBND field equals 5, then the
deadband region is between -5% and +5%. If the Controller error signal is within the deadband,
then the actual error that is presented to the PID equation is the product of the error signal and
the error deadband gain. The ERRD field contains the value of the error deadband gain. The valid
values for this field are any real numbers between zero and one [0 - 1].
As an example, consider the following: DBND is 5 and ERRD is 0.5. For a normalized Controller
error signal of 2%, the actual error signal that is applied to the PID equation is 2% x 0.5 = 1%. In
general, for these example values of DBND and ERRD, any normalized error signal between -5%
and +5% is reduced by 50% before being applied to the PID equation. Derivative action is
disabled when the algorithm is operating within the deadband region.
390 OW351_R1100
5.78 PIDFF
Double Deadband
The Double Deadband configuration utilizes two deadband limits. These are the inner (DBND)
and the outer deadband limit (ODBND). Once the absolute value of the error signal is less than or
equal to the inner deadband, then the deadband gain is applied. The deadband gain is applied
until the absolute value of the error signal is greater than the outer deadband.
The Double Deadband mode is configured by initializing the Outer Deadband (ODBND) field to a
value greater than the inner deadband limit (DBND) and setting the deadbands option (DOPT)
parameter to DOUBLE. The Double Deadband mode is designed to be used when a noisy
process variable is present. When noise is present in the Process Variable signal, it causes
fluctuations in the magnitude of the error signal. When a Single Deadband is used, the Controller
error signal can fluctuate in and out of the deadband region (DBND) on successive execution
loops. In severe cases, this can lead to reduced performance of the PID algorithm. An example of
this situation is shown graphically in the following figure.
In the following figure, at time t1, the signal has entered the inner deadband region. At time t2, the
noise has caused the signal to exit the inner deadband region, and at t3, it enters it again. The
same problem is seen again as the signal leaves the inner deadband region, as seen at t4, t5 and
t6.
At each transition into and out of the deadband, the algorithm performs a track and hold
operation. This prevents the output from spiking due to the abrupt change in the proportional
term.
In Singe Deadband mode, subsequent transitions into and out of the deadband region can lead to
reduced performance of the PID algorithm.
OW351_R1100 391
5.78 PIDFF
To prevent this situation, a second outer deadband region (ODBND) can be defined by the user.
This should be larger than the inner deadband region (DBND) (see the following figure). More
specifically, the outer deadband (ODBND) should be defined as equal to, or larger than, the noise
seen in the signal PLUS the inner deadband region (DBND).
For example, if the DBND field is equal to 5, then that deadband region is between -5% and +5%.
Once the Controller error signal reaches this inner deadband region of + or -5%, a noise in the
signal with a peak of + or -3% could push the Controller error signal back out of the inner
deadband region up to + or -8% on the next scan. Therefore, the outer deadband (ODBND)
should be set larger than + or -8% to compensate for noise. In the following figure, the ODBND
was set to +/- 10. If the outer deadband (ODBND) region is less than the defined inner deadband
(DBND) region, then the outer deadband region is set equal to the inner deadband value.
392 OW351_R1100
5.78 PIDFF
Output Calculation
The output (which is in either engineering units or percent and limited by the high and low limits
specified) equals the algebraic sum of the result of the PID equation and the feed-forward input
except:
When the algorithm is told to track, the output equals the track input when the tracking signal
is present. The output ramps at the user-specified track rate, from the track input back to the
controlled value when the tracking signal is removed.
When a raise inhibit or lower inhibit signal is present, it may prevent the PID Controller from
controlling.
When the sum of the actual PID output and the normaliz ed feed-forward input exceeds either
the high or low limit of the algorithm, the output in this case is clipped at the corresponding
limit.
If the algorithm calculates an invalid real number for the output, the quality of the output is set
to BAD. Consequently, if an invalid value is entered as an input to the algorithm, or if the
algorithm generates an invalid value for the output, the drop is placed into alarm. In all cases,
the output is set to the last GOOD value.
If the algorithm generates an invalid track output value, the set point input value is used as
the track output, unless it is invalid. The track output value is not updated if both the
calculated track output and the set point input values are invalid.
Tracking Signals
External tracking and limiting are done through signals passed in the upper 16 bits of the third
status word of the analog track points. This algorithm takes the following action in response to
information found in the third status word of the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
OW351_R1100 393
5.78 PIDFF
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
The High and Low limit flags, the mode, and the tracking signals from the algorithm are output to
TOUT to be used for display and by upstream algorithms.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
394 OW351_R1100
5.78 PIDFF
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Normal -
Derivative
applied to
change in error.
Set point -
Derivative
applied to
change in set
point.
Process -
Derivative
applied to
change in
process
variable.
TPSC R5-Real Tuning Required 100.0 Maximum value -
Constant of the output
point
BTSC R6-Real Tuning Required 0.0 Minimum value -
Constant of the output
point
OW351_R1100 395
5.78 PIDFF
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
396 OW351_R1100
5.78 PIDFF
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 397
5.78 PIDFF
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
** Anytime that the value of this field is greater than the inner deadband (DBND), the double
deadband action results. This value should be set to zero if single deadband action is desired.
*** When a parameter type is defined as "Selectable" and marked as "Required," the Control Builder
may default the parameter to a value and mark it as "Optional." However, for the control function to be
executed properly, you must enter a value for the parameter.
398 OW351_R1100
5.78 PIDFF
OW351_R1100 399
5.78 PIDFF
Refer to the “Functional Operation of PIDFF” diagram for the following example. Consider the
case where the output limits on the PIDFF algorithm are 0-100%, the external feed-forward input
has a normalized value of 75%, the actual PID output is 50% and the error between process
variable and set point causes the PID output to increase. This condition would require that the
final output be 125%, which violates the algorithm's high limit of 100%. The final PIDFF output is
clipped at 100%. If the error between the process variable and the set point were to change
direction, the PID output would have to move 25% before it had any effect on the final control
output and thus the process variable. Depending on the tuning parameters, the time that this
takes can be significant.
By incorporating the feed-forward input into the PIDFF algorithm, this direction change in the error
between the process variable and set point has an immediate effect on the final control output.
The PIDFF begins integrating from the high limit of 100% and thus has immediate influence on
the final control output and subsequently on the process variable.
Conditional tracking is a scheme which allows tighter control of the process variable when the
control strategy is implemented using cascaded Controllers. Essentially, the conditional tracking
scheme allows the upstream Controller to have immediate influence on the final output when the
error between the process variable and the setpoint changes direction while the downstream
controller is in a saturation condition. Conditional tracking is incorporated when the downstream
Controller (Controller “B” in previous figure) operates in cascaded mode.
The purpose of cascaded mode is to allow two PID algorithms to be used in a cascaded
configuration where the output of one PID is the set point for another. When you desire to arrange
two PID Controllers in this configuration, the type parameter should be set to cascaded in the
downstream Controller only. It is not necessary to configure the upstream Controller in the
cascaded configuration.
400 OW351_R1100
5.78 PIDFF
When the downstream controller is configured in the cascaded mode, the Controller operates as a
conventional PIDFF Controller so long as the Controller is not in a saturation condition. However,
if the controller output is saturated at the HI or LO limit or if the Controller receives an inhibit
signal from a downstream algorithm, the behavior of the cascaded pair is as follows:
The downstream Controller (Controller “B” in the previous figure) asserts the conditional track
signal in its output tracking point along the applicable limit or inhibit bit. The downstream
Controller also calculates a track output value that if applied as a set point input, yields a
Controller error of zero (see the previous Equation 1).
When the upstream Controller sees the conditional track bit set it adjusts its output as follows: If
the error signal causes the Controller output to move against the inhibit signal (for example,
output attempts to increase when the algorithm is receiving a raise inhibit), then the algorithm sets
its output equal to the track input received from downstream.
If the error signal causes the output to move away from the inhibit signal, the algorithm sets its
output equal to the track input and begin controlling.
Without this mode, the upstream Controller would first have to move enough to zero the error on
the downstream Controller before having any effect on the process. This would introduce
additional dead-time in the Controller response and in the case of processes with slow dynamics
(for example, temperature control) this additional deadtime may be significant.
Only the PIDFF algorithm configured to be in cascaded mode asserts the conditional track bit.
The upstream Controller (Controller “A” in previous figure) does not pass the conditional track bit
in its track output.
OW351_R1100 401
5.79 PNTSTATUS
5.79 PNTSTATUS
Description
The PNTSTATUS algorithm outputs the states of two specified bits of the point record's status
word. When the ENBL input is TRUE, the states of BITA and BITB of the point record's status
word are output to OUTA and OUTB, respectively. For example, if the bit specified by BITA is a
one, then OUTA is TRUE. Conversely, if the bit specified by BITA is a zero, then OUTA is FALSE.
This example also holds TRUE for BITB and OUTB.
For analog and digital records, the valid range for BITA and BITB is 0 through 31.
When the ENBL input is TRUE and either the BITA or BITB operand contains an invalid bit
number, no operation occurs and the BITA and BITB outputs are FALSE.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
402 OW351_R1100
5.79 PNTSTATUS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 403
5.80 POLYNOMIAL
5.80 POLYNOMIAL
Description
The POLYNOMIAL algorithm performs a mathematical fifth order polynomial function. The output
of the POLYNOMIAL algorithm is the result of a fifth order polynomial equation of the input using
the coefficients listed in this description.
The quality of the analog input is propagated to the output. However, if the algorithm calculates an
invalid value for the output, the quality of the output is set to BAD, and the output value is invalid.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
404 OW351_R1100
5.80 POLYNOMIAL
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT = CX0 (IN1)0 + CX1 (IN1)1 + CX2 (IN1)2 + CX3 (IN1)3 + CX4 (IN1)4 + CX5 (IN1)5
OW351_R1100 405
5.81 PREDICTOR
5.81 PREDICTOR
Description
This algorithm can be utilized to implement a standard Smith Predictor control system structure in
processes that are characterized by dynamics that include a deadtime. The advantage of using a
Smith Predictor is that the Controller (typically a PID) tuning can be performed as if no dead time
exists in the process, and hence a relatively high gain can be applied to expedite the response.
The output of the PREDICTOR is the result of the summation of the actual process variable and a
no-delay model output minus the with-delay model output. This is illustrated mathematically in the
functional diagram. The process input to the algorithm is gain and biased. The algorithm output
directly connects to the downstream PID algorithm process input. When no dead time is present
in the process (and the model), the process variable input to the PREDICTOR directly passes
through unmodified to the downstream PID process input. You have the option to configure the
algorithm to use either a first or second order model of the plant.
Since the internal memory size for each algorithm is limited, a long dead time must be realized by
an internal time delay plus a chain of cascaded external delays (implem ented by TRANSPORT
algorithm).
The plant model dead time is realized by storing N samples of the process variable. The value of
N is a function of the Process dead-time and the control area loop time. The value of N is
calculated as follows:
Due to memory limitations, the PREDICTOR algorithm can store up to eight samples. If the value
of N is greater than eight, the remainder of the samples can be realized by using Transport Delay
algorithms as shown in the configuration example of the PREDICTOR.
If the algorithm receives an invalid value as the input, or if it calculates an invalid value as the
output, the drop is placed into alarm and the output is set to the last GOOD value with quality set
to BAD. Under normal operation, the output propagates the quality of the PV input.
Functional Symbol
406 OW351_R1100
5.81 PREDICTOR
Algorithm Tuning
Algorithm Definitions listed as Tuning Constants for this algorithm are monitored and modified
with the Tuning Diagrams. Parameters for the process model (gain, first and second time
constants) can also be modified by outside algorithms through selectable pins. The guideline for
tuning is that the model gain and time constants should be set as close as possible to the
parameters reflecting the real process. Tuning for the length of dead time can be implemented by
modifying the internal time delay (in T3 field) and/or the number of samples in the TRANSPORT
algorithms.
If a first order model of the plant is desired, the FOTC field of the algorithm is initialized to the
value of the time constant (in seconds) of the 1st order model. The SOTC field should be set to a
value of zero. Here the time constant refers to the time (in seconds) that is required for t he Step
response of the process to achieve 66% of its final value.
If a second order model of the plant is desired, more advanced system identification methods can
be used to determine the values of the FOTC and the SOTC.
Both the gain and the dead time can be calculated by applying a step input to the control output
(output of M/A in the configuration example) of the Control Loop. The time (in seconds) that it
takes for the process variable to begin to respond is the dead time. The gain value is calculated
by taking the ratio of the change in the process output divided by the change in input (change in
the process variable divided by the change in control output).
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 407
5.81 PREDICTOR
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
The control system structure can be illustrated by the following diagram. The dashed line box
contains the Predictor.
408 OW351_R1100
5.81 PREDICTOR
where:
= dead time.
OW351_R1100 409
5.82 PRIORITY Algorithm Package
The PRIORITY algorithm package is a combination of three individual algorithms that can be
used together to perform priority-based sequencing of devices:
410 OW351_R1100
5.82 PRIORITY Algorithm Package
5.82.1 PRIORITY
Description
The purpose of this algorithm is to consolidate complex logic to perform priority-based sequencing
when turning devices ON and OFF. The PRIORITY algorithm allows the user to attach up to 16
devices and control these devices by turning them on or off based on a set of priorities configured
by the user.
Functional Symbol
OW351_R1100 411
5.82 PRIORITY Algorithm Package
Operation
The device status is determined from the feedback inputs (FBx) and the ready for control inputs
(RDYx). An FBx input is the ON/OFF status of a device (1 = ON, 0 = OFF). A RDYx input
indicates if the device is available for control (1 = ready, 0 = not ready).
The algorithm automatically detects the maximum number of devices available for control. This is
calculated by counting the number of devices connected to the FBx pins. At most, 16 individual
devices can be controlled by one Priority algorithm. The number of devices currently ON
(NUMON) is determined by the active FBx inputs. The user, and/or control logic, determines the
number of devices currently required to turn on (NUMRQ). That value is reflected in the NUMRQ
output and is determined by the configured limitations and system inputs.
Note: If LLIM and HLIM are configured via signal diagrams, the fields will only allow a value
between 0 - 15 for LLIM and 1 - 16 for HLIM.
412 OW351_R1100
5.82 PRIORITY Algorithm Package
The algorithm commands devices ON and OFF using the Command Device ON (DVON) and
Command Device OFF (DVOFF) packed output points, where each of the 16 bits represents the
corresponding device. The algorithm calculates when to turn a device ON and OFF based on
device priority and NUMRQ. In both the DVON and DVOFF outputs, bits for unconnected devices
(FBx) are always OFF.
The algorithm calculates the next device to switch ON or OFF and sets the appropriate bit for
these devices in the Next On (NON) and Next Off (NOFF) packed output points. This calculation
is based on device priority and whether the appropriate FBx and RDYx pins are set. Both outputs
provide an indication of what device would turn on/off next, if the priorities increase/decrease or
NUMRQ is changed.
A bit map of the devices the algorithm expects to be ON is displayed in the REQON output.
Note: Devices whose RDYx signal is off, but FBx is currently on, will be added to the REQON
bit map and to the NUMON value, as well.
Priority Management
Part of the calculation for turning a device ON or OFF is based on the device priority. Priorities are
set by the user using the DPRx fields or EDPRx pins. The priority for each device can be set from
1 to 16 using the DPRx fields, or 0x0 through 0xF using the EDPRx pins, with 1 or 0x0 being the
highest priority and 16 or 0xF being the lowest. More than one device can have the same priority,
in which case higher priority is given to the lower numbered device. For example, if device 1 and
device 13 have the same priority assigned, then device 1 will always be treated as the higher
priority.
The PRIORITY algorithm will try to run the highest priority device first, and work its way to the
lowest priority device, until the NUMRQ is reached (or there are no more devices ready to
activate). For example, if device 1 has a priority of 6 and device 2 has a priority of 3, then device 2
will run before device 1. However, if device 2’s RDYx pin is deactivated and device 1’s RDYx pin
is activated, then device 1 will turn on, even though it has a lower priority.
After the algorithm accepts the new priorities, they will be displayed in the CPRx fields. If DPRx is
set to any value outside the range of 1 to 16, CPRx will be set to 16, but the algorithm will not
change the DPRx fields.
OW351_R1100 413
5.82 PRIORITY Algorithm Package
Disabled/Auto/Manual Mode
Selecting between disabled, automatic, and manual modes can be done using the
DSABL/AUTO/MAN inputs or the Disable/Auto/Manual buttons.
In disabled mode, the algorithm will only update the status and number of active devices currently
on (NUMON) and will accept user priority changes. It will not attempt to turn on devices. In
addition, if the rotation mode (RTMOD) parameter is configured as on - ignore disabled
(ON_IGN_DSABL), the algorithm will continue to rotate priorities.
In Auto mode, certain algorithm commands are controlled via input pin connections.
The following parameters are affected by AUTO/MAN mode: INCDV, DECDV, NUM, ANUM,
CODV, CMAN, CAUTO, SDPR, and EDPRx/DPRx.
In addition, you may configure the algorithm to allow both manual and auto commands at the
same time while the algorithm is in auto mode using the manual/auto control (MACTL) parameter.
This allows the operator to direct the algorithm via pushbutton, even though the algorithm is in
auto.
If more than one of the mode signals is set at the same time, the algorithm will give precedence to
Disabled mode, then Manual mode, then Auto mode. For instance, if Manual and Auto are both
set at the same time, the algorithm will reject to Manual mode.
Operation Mode
There are three different ways to turn on several different devices. Using the operating mode
(OPMOD) parameter, devices can be turned on/off in three different modes: SERIAL, PARALLEL,
or serial on, parallel off (S_ON_P_OFF). In serial mode, the devices will be activated or
deactivated one at a time, until the NUMRQ and NUMON equal each ot her. In parallel mode, the
algorithm will calculate the difference between NUMRQ and NUMON and attempt to turn on/off
that many devices all at once. In serial on, parallel off mode, the algorithm will turn on devices in
serial mode but will turn off devices in parallel mode.
Rotation Mode
The PRIORITY algorithm provides the capability to automatically change device priorities
internally, based on the changing states of the FBx inputs. When Rotation mode is activated,
priorities are rotated each time one of the devices is turned on or off. When a device turns off, its
priority is set to the number of connected devices (lowest priority). Devices not connected are set
to a lower priority than all connected devices. For instance, if eight devices are connected, then all
the devices not connected are set to a higher number than 8, as long as the user didn’t tune the
priorities manually. Turning on a device sets it to the highest priority of 1. Priorities of all other
devices are incremented or decremented respectively.
This mode can be switched off (NO_ROTATION), switched on (ROTATION), or switched on when
the algorithm is disabled (ON_IGN_DSABL) using the RTMOD parameter.
414 OW351_R1100
5.82 PRIORITY Algorithm Package
Changeover Mode
The algorithm can be configured to rotate devices based on a set of timers, rather than an
external mechanism. This functionality is called Changeover, and it is designed to even out the
wear of devices while they are running for an extended period of time.
In order to activate changeover, RTMOD must be in an active state (that is, ROTATION or
ROT_WHEN_ENBL modes). In addition, COMOD must be configured to UP_CHNGOVER or
DN_CHNGOVER modes and the three changeover timers need to be configured. The input signal
changeover enable (COEN) indicates that changeover is ready to run (when it is not connected
changeover is enabled by default).
Example:
First, a command is given to the algorithm to start a changeover via the Changeover Device
(CODV) signal. The algorithm will increase the NUMRQ from 3 to 4 (COMOD is set to
UP_CHNGOVER). The fourth Device would have the length of TAC timer (allowed time for
changeover) to turn on. If the device turns on in time, then NUMRQ will hold four devices until the
TTC (transition time) timer counts down to zero. Once TTC reaches zero, NUMRQ is set t o 3
again and then the device that had the highest priority needs to turn off before TAC reaches zero.
The following state table displays the possible states that changeover can be in. These states are
reported through the CSTAT output.
Bit description
B I TS DE S C R I P TI O N
0 Idle flag
1 Changeover manual
2 Changeover auto
3 On hold flag
4 Started flag
5 Pending flag
6 Finished flag
7 Ready flag
8 Reinitialize flag
9 Timeout flag
10 External Change flag
11 Manual reject flag
OW351_R1100 415
5.82 PRIORITY Algorithm Package
416 OW351_R1100
5.82 PRIORITY Algorithm Package
Timeout State
Job: Abandon changeover sequence, reject to manual changeover mode, restart TBC
countdown.
Reason: Requested change of device states did not occur during TAC countdown.
Outputs: “Timeout” flag is set. Changeover mode is set to manual. “Manual reject” flag is
set. TBC is output to CTIME pin.
Next State: “Idle”
External Change State
Job: Abandon changeover, reinitialize TBC countdown.
Reason: External change occurred during changeover sequence.
Outputs: “External Change” flag is set. TBC is output to CTIME pin.
Next State: “Idle”
Reinitialize State
Job: Reinitialize TBC countdown.
Reason: External change occurred when changeover was idle.
Outputs: “Reinitialize” flag is set. TBC is output to CTIME pin.
Next State: “Idle”
Manual Reject
Job: This is the error state for automatic changeover.
Reason(s): If there is an interruption in the sequence during Auto Changeover, then the
sequence will default to Manual Changeover.
Interruptions include the following:
- Unexpected change in the number of required devices.
- The control mode is changed from auto, to manual or disabled.
- SDPR is activated and new device priorities are excepted.
- One of the timers (TAC, TBC, TTC) finished counting down before its task could
complete.
- TBC is initially set to zero or less.
To clear the Manual Reject, start the sequence again. However, if the interruption was
never taken care of, or accrues again, then the sequence will again abort to this state.
OW351_R1100 417
5.82 PRIORITY Algorithm Package
The algorithm allows the user to specify up to 32 prohibited configurations. This is represented as
32 individual bit maps. For example, if bits 0, 2, and 10 are set, then devices 1, 3 and 11 cannot
run at the same time. If the algorithm tries to change devices to a configuration that is forbidden,
then the algorithm will try to find another configuration that will work.
Note: Prohibited configurations only apply to exact instances of running devices. For instance, if
devices 1, 2, and 3 are prohibited from running, and devices 1, 2, 3, and 4 are requested to run,
then the prohibited configuration will not apply, and all four devices will run. However, if only
devices 1, 2, and 3 are attempting to run, then the algorithm will prevent the devices from
running.
Algorithm Status
Algorithm status and error information is stored in the STAT output. The STAT output bits are
defined as shown:
Bit description
B I TS DE S C R I P TI O N
0 Disabled mode.
1 Manual mode.
2 Auto mode.
3 Increasing.
4 Decreasing.
5 Priorities rotated.
6 Priority rotation enabled.
7 External priorities accepted.
8 Algorithm load or tuning change.
9 No more available devices to turn OFF.
10 No more available devices to turn ON.
11 Maximum or minimum number of ON devices reached.
12 Reserved.
13 Prohibited configuration.
14 External Priorities are different than current Priorities.
15 RESERVED.
418 OW351_R1100
5.82 PRIORITY Algorithm Package
SID Storage
In order to assist with graphics programming, all output point SIDs are stored in fields in the
algorithm. This allows the graphic to access multiple SIDs by accessing a single SID (the
algorithm LC record).
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Inputs:
OW351_R1100 419
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
420 OW351_R1100
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 421
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
422 OW351_R1100
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 423
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
424 OW351_R1100
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 425
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
426 OW351_R1100
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 427
5.82 PRIORITY Algorithm Package
5.82.2 PRIORITY-EXT
Description
The PRIORITY-E XT algorithm allows the user to dynamically calculate external priorities and is
designed for use with the PRIORITY algorithm. The algorithm allows priorities to be assigned to
input device channels by means of operating hours or other analog parameters related to devices.
Functional Symbol
Sorting
The PRIORITY-E XT algorithm sorts inputs using the status of each analog input based on the
status priority mode (SPMOD), and the value of the analog input (AINx) based on the sorting
mode (SOMOD).
The algorithm sorts by Status first. The status priority mode is configured via the SPMOD
parameter:
Note: Even if SPMOD is set to NONE, inputs that are not connected will have the lowest
priorities.
Standard
Status Priority 0 – Quality - Good
Status Priority 1 – Quality - Fair
Status Priority 2 – Quality - Poor
Status Priority 3 – Quality - Bad
Status Priority 4 – Sensor
Status Priority 5 – Timeout
Status Priority 7 – Point Not Connected
Custom – user can assign each status (SPG, SPF, SPP, SPB, SPS, SPT) a custom priority
(0-5)
None - Priorities are not taken into account while sorting inputs
Note: It is possible for a point to have an assigned quality and also be in Sensor or Timeout
status. In this scenario, Timeout tak es precedence over Sensor, and Sensor tak es precedence
over all Quality statuses.
428 OW351_R1100
5.82 PRIORITY Algorithm Package
Sorting Mode
Once the algorithm sorts by status, it will then sort the inputs by value. Sorting mode (SOMOD)
determines how the algorithm will sort the inputs. If ascending, the algorithm will assign a greater
priority to the lower numbered input with the lowest value. If descending, the algorithm will assign
greater priority to the higher numbered input with the highest value.
Each output contains packed priorities for four devices. Priorities are zero based (Highest priority -
0x0 through Lowest priority - 0xF) are output through four packed points EDPR1-EDPR4. Bits 0-3
of EDPR1 contain the priority for input/device 1; bits 4-7 in EDPR1 contain the priority for
input/device 2; bits 8-11 in EDPR1 contain the priority for input/device 3; and bits 12-15 contain
the priority for input/device 4. EDPR2 applies to inputs 5-8, EDPR3 applies to inputs 9-12, and
EDPR4 applies to inputs 13-16. The EDPRx outputs can be connected directly to the EDPRx
inputs of the PRIORITY algorithm.
The current device priority fields store the same values that are in the EDPR outputs for use with
graphics applications. The priorities in these fields are one based. For instance, if the priority
displayed in EDPRx is 0x0, the priority will display as 1 in the CPR field. If it is a 0x5 in EDPRx, it
will display as a 6 in the CPR field.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Inputs:
OW351_R1100 429
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
430 OW351_R1100
5.82 PRIORITY Algorithm Package
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 431
5.82 PRIORITY Algorithm Package
5.82.3 PRIORITY-REJ
Description
Functional Symbol
432 OW351_R1100
5.82 PRIORITY Algorithm Package
Each PRIx input contains the packed priorities for four devices (PRI1 though PRI4). For example,
Bits 0-3 of PRI1 contain the priority for device 1; bits 4-7 contain the priority for device 2; bits 8-11
contain the priority for device 3; and bits 12-15 contain the priority for device 4. PRI2 applies to
devices 5-8, PRI3 applies to devices 9-12, and PRI4 applies to devices 13-16.
The PRIx inputs are designed to be used with the PRIx outputs of the PRIORITY algorithm. The
priorities of each device can only be set between 0x0 (the highest priority) and 0xF (the lowest
priority). If two (or more) devices have the same priority, then the lowest numbered device will be
given higher priority.
Algorithm Status
Algorithm status and error information is stored in the STAT output. The STAT output bits are
defined as shown:
Bit description
BI T DE S C R I P TI O N
OW351_R1100 433
5.82 PRIORITY Algorithm Package
SID Storage
In order to assist with graphics programming, all output point SIDs are stored in fields in the
algorithm. This allows the graphic to access multiple SIDs by accessing a single SID (the
algorithm LC record). Output SIDs are mapped into the C0 - C2 fields.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Inputs:
434 OW351_R1100
5.83 PSLT
5.83 PSLT
Description
PSLT calculates Pressure of Saturated Liquid given its Temperature. It is one of the functions of
the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
OW351_R1100 435
5.84 PSVS
5.84 PSVS
Description
PSVS calculates Pressure of Saturated Vapor given its Entropy (S). It is one of the functions of
the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
436 OW351_R1100
5.85 PULSECNT
5.85 PULSECNT
Description
The PULSECNT algorithm counts the number of FALSE to TRUE transitions of the digital input
point. If the Reset flag is TRUE, the output count is set to zero before the digital value is checked.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
IF RSET
THEN OUT = 0
IF IN1 = TRUE AND OLDIN = FALSE
THEN OUT = OUT + 1
where:
OW351_R1100 437
5.86 QAVERAGE
5.86 QAVERAGE
Description
The QAVERAGE algorithm output is the unweighted average of the N inputs. Analog inputs
whose quality is BAD, or whose value is not being updated, are excluded from the average
calculation so that only the remaining inputs are averaged. The quality of the output equals the
worst quality of all the input values averaged. If all points have BAD quality, the old output value is
retained, and the quality of the output is set BAD.
The values of the analog inputs to the algorithm are checked for invalid real numbers. If the value
of an input is invalid, that input is considered to have BAD quality.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
If the quality is GOOD for all points, and the points are being updated,
THEN OUT = (IN1 + ...INN)/N
Any point with BAD quality is excluded from the average. If all points have BAD quality,
THEN OUT = OLDOUT
and the quality is BAD.
438 OW351_R1100
5.87 QUALITYMON
5.87 QUALITYMON
Description
The QUALITYMON algorithm sets the digital output signal (OUT) TRUE if the input value (IN1)
has the same quality as selected in the quality type field(X1). IN1 can be either an analog or
digital variable.
The value of the input (IN1) to the algorithm is checked for invalid real numbers. If the input value
is invalid, that input is considered to have BAD quality, and the digital output (OUT) is set TRUE.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
If the quality of IN1 is the selected quality type, or if its value is not being updated,
OW351_R1100 439
5.88 RAMPGEN
5.88 RAMPGEN
Description
The RAMPGEN algorithm ramps its output to follow a setpoint target when in automatic mode, or
it ramps the output up or down at a fixed rate in manual mode.
Functional Symbol
Functionality
The bits in the STIN input pin control the behavior of the RAMPGEN algorithm.
Bit description
BI T D E S C R I P TI O N
Bit 0 Initialize OUT to INIT input. If this bit is active, OUT is set immediately to the INIT value.
If the INIT value is higher than HILM or lower than LOLM, then OUT is cut to the limit.
Note: If Bit 0 is set to TRUE, it overrides the other b its. The algorithm initializes OUT to INIT and
ignores the other b its.
440 OW351_R1100
5.88 RAMPGEN
BI T D E S C R I P TI O N
Bit 5 Implied manual mode. When TRUE and a Ramp Up or Down (bit 2=1 or bit 3 =1), the
algorithm will ramp in manual mode without respect to the Ramp Auto/Manual mode (bit
1).
Bit 6 Inhibit increase.
Bit 7 Inhibit decrease.
Bits 8 - 15 NOT USED.
The state of the algorithm is presented from the STOU output pin. It is a word of 16 consecutive
bits. They are:
Bit description
BI T DE S C R I P TI O N
The OUT output pin keeps the current value for setpoint.
Also note:
Fast and slow ramp has to be a positive value.
DDBND parameter has to be greater or equal to 0.0. This parameter defines the minimum
value of output change to set Bit 3 or Bit 4 in the STOU output pin.
BIT 3 is TRUE when (OUT – LAST_OUT) > DDBND * task_area.
BIT 4 is TRUE when (OUT – LAST_OUT) < -DDBND * task_area.
OW351_R1100 441
5.88 RAMPGEN
Tracking and limiting are done through signals passed in the upper 16 bits of the third stat us word
of the analog track point. This algorithm takes the following action in response to the information
found in the analog input signal TRKIN:
Bit description
BI T D E S C R I P TI O N AC TI O N TOUT S I G N AL
442 OW351_R1100
5.88 RAMPGEN
Quality
The quality of the OUT pin will be set to the same value as the lowest quality analog input pin. For
example, if the INIT pin quality is BAD, LORT quality is FAIR, and all other inputs quality are
GOOD, then the OUT quality is set to BAD. In this case, the algorithm calculates the value based
on the bits in the STIN input and updates the OUT and TOUT pins in each loop.
The quality of the STIN input is not considered in the quality calculations.
If the value of inputs used for OUT calculations is invalid (INF or NAN), then the algorithm does
not update the SETPT and TOUT pins – the outputs are set to the last correct value.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 443
5.89 RATECHANGE
5.89 RATECHANGE
Description
The RATECHANGE algorithm calculates the analog value of OUT as the smoothed rate of
change of IN1. The smoothing time constant (SMTH) can either be dynamic, using an input pin, or
a constant, by defining it within the algorithm. This calculation is performed once per loop cycle
giving OUT units of [IN1] per loop time.
If the smoothing time constant (SMTH) is less than zero, the negative value is ignored and the
calculation is performed with a smoothing time constant of 0. The quality of OUT is then set to
BAD. The quality of OUT will also be set to BAD if an invalid real number is read from IN1. Unless
either of these situations occur, the quality of OUT will be the same as the quality of IN1.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Note: This is
approximately 1/5
of the total time to
settle. For
example, for 1
minute total, set
SMTH to 12
seconds.
444 OW351_R1100
5.89 RATECHANGE
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Function
where:
S(N) = smoothed value of the analog variable (alpha x IN1) + (beta x old
smoothed value)
SS(N) = double smoothed value of the analog variable (alpha x S(N)) + (beta x old
double smoothed value)
OW351_R1100 445
5.90 RATELIMIT
5.90 RATELIMIT
Description
The RATELIMIT algorithm is a rate limiter with fixed rate limit and flag when rate limit is
exceeded. For the RATELIMIT algorithm, if the rate of change of the output is less than or equal
to the rate limit, the output equals the input, and the digital output flag is set FALS E. If the rate of
change of the output is greater than the rate limit, the output change is limited to the rate limit
value and the digital output flag is set to TRUE. The quality of the analog input is propagated to
the output.
The input value (IN1) to the algorithm is checked for invalid real numbers. If the input value is
invalid, the output is invalid and the quality of the output is set to BAD. Also, if the input is invalid,
the digital output flag retains its last value and its quality is set to BAD. If the input value is valid,
the quality of the input is propagated to the output.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog track point. This algorithm takes the following action in response to the information
found in the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
446 OW351_R1100
5.90 RATELIMIT
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
The high and low limit flags and the tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT is
set to BAD. Otherwise, the quality of OUT is set to the quality of the input when not in tracking
mode. When tracking, the quality is set to the quality of the track input variable.
Note: If the algorithm generates an invalid track output value, the IN1 input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and IN1 input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 447
5.90 RATELIMIT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
* When a parameter type is defined as "Selectable" and marked as "Required," the Control Builder may
default the parameter to a value and mark it as "Optional." However, for the control function to be executed
properly, you must enter a value for the parameter.
Function
where:
448 OW351_R1100
5.91 RATEMON
5.91 RATEMON
Description
The RATEMON algorithm is a rate of change monitor with reset deadband and fixed/variable rate
limit. For the RATEMON algorithm, if the input value (IN1) increases at a rate faster than the user-
specified rate of change limit in the positive direction, or decreases at a rate faster than the user-
specified rate of change limit in the negative direction, the digital output flag (OUT) is set TRUE.
To reset the output flag, the input value must increase at a rate slower than the rate of change
limit in the positive direction minus the deadband on the positive rate of change limit, or decrease
at a rate slower than the rate of change limit in the negative direction minus the deadband on the
negative rate of change limit.
The input value (IN1) is checked for invalid real numbers. If IN1 is invalid, the digital flag retains
its last value and its quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 449
5.91 RATEMON
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
where:
450 OW351_R1100
5.92 RESETSUM
5.92 RESETSUM
Description
The RESETSUM algorithm accumulates until told to reset. For the RESETSUM algorithm, if the
Run flag is TRUE, the output value (OUT) is the sum of the gained input value (IN1) and the old
output value. If the Freeze flag is TRUE, the output value is also stored in the frozen output
(FOUT). As OUT continues to totalize IN1, the value in FOUT is frozen when the Freeze flag
reverts back to FALSE.
If the Reset flag is TRUE, OUT is set to the reset count stored in the RCNT (R1) field of the
algorithm record. If the Run flag is FALSE, the algorithm does nothing. You may tune the output
value anytime by setting the TRST (R3) field of the algorithm record to a non-zero value. The
algorithm will set the TRST (R3) field back to zero after it detects a non-zero value. The TRST
(R3) value is checked first; then, the Reset flag is checked before the summation is made.
Note: The Ovation system is limited to single precision floating point numbers, which can affect
algorithm precision. This may be seen if the RESETSUM algorithm stops updating its output and
lock s at what appears to be a maximum value (though no max value is defined or reached). For
more information on this, refer to: What are single precision floating point numbers?
(see page 6).
Functional Symbol
The quality of the input is propagated to the output points (OUT and FOUT) under the following
conditions:
The quality of the output is not affected by requests to tune the value of the output through the
use of the R3 record field or by setting the RSET flag to TRUE.
OW351_R1100 451
5.92 RESETSUM
Quality propagation is overruled by invalid real numbers. If the input (IN1) contains an invalid real
number, the quality of the output (OUT) is set to BAD, providing the point is not scan-removed
and that the RUN flag is TRUE. The quality of the frozen output point (FOUT) is also set to BAD if
the point is not scan-removed and the freeze flag (FFLG) is TRUE.
The value of the input (IN1) is checked for invalid real numbers. If the input value is invalid, the
output (OUT) retains its last valid value. If the input value is valid, the quality of IN1 is propagated
to OUT.
If the FFLG flag is TRUE and the input is invalid, the value of the frozen output (FOUT) is equal to
the output (OUT).
If the input is invalid, any requests to digitally reset the output value (OUT) through the use of the
RSET flag are ignored.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
452 OW351_R1100
5.92 RESETSUM
Function
IF TRST 0
IF RUN = TRUE
IF FFLG = TRUE
IF RSET = TRUE
ELSE
OUT = TEMP
where:
OW351_R1100 453
5.93 RLICONFIG
5.93 RLICONFIG
Description
The RLICONFIG algorithm is used to send data constant information to the Loop Interface card. If
the data stored in the card versus the data stored in the algorithm is different, then the algorithm
sends the information in the algorithm to the card. The algorithm supports tuning either the
Control Defined Process Variable, the Setpoint or Output/Drive, Analog Input 1, or Analog Input 2
sections of the Loop Interface card.
The optional STAT output point contains the status of the Loop Interface card. The following
conditions apply:
If bit 0 is true, then the algorithm cannot communicate with the card.
If bit 1 is true, the algorithm is configuring the setpoint section.
If bit 2 is true, the algorithm is configuring the process variable section.
If bit 3 is true, the algorithm is configuring the electric drive section.
If bit 4 is true, the algorithm is configuring the analog input 1 section.
If bit 5 is true, the algorithm is configuring the analog input 2 section.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
454 OW351_R1100
5.93 RLICONFIG
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 455
5.93 RLICONFIG
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Note: The slow/fast, raise/lower pulse on/off times for electric drive signals (low byte = off time;
high byte = on time) are in units of 0.1 or 0.004 seconds.
Two ranges of value (0.1 or 0.004 second resolution) are available for the electric drive slow/fast
action pulse on/off values.
For 0.1 second resolution, byte values in the range of 0 to 127 (00 to 7FH) are used. For
example, 03H represents a 0.3 second pulse time (3 x 0.1).
For 0.004 second resolution, byte values in ranges 128 to 255 (80 to FFH) are used to represent
the range 0 to 127. For example, 83H represents a 0.012 second pulse time (3 x 0.004).
456 OW351_R1100
5.94 RPACNT
5.94 RPACNT
Description
The RPACNT algorithm reads the pulse count from the Ovation Pulse Accumulator card. The
algorithm uses the hardware address in the OUT point to access the Ovation Pulse Accumulator
card.
When IN1 is TRUE, the algorithm reads the pulse count from the card, resets the counter to zero
and stores the pulse counts in OUT. Conversion may be done on the pulse value before the pulse
count is stored in the OUT point. A linear conversion, if chosen, is taken from the CV, 1V and 2V
of the OUT point. For example, consider the case in which the input is a count of contact closures
from a watt hour meter. The number of megawatt hours per pulse can be accounted for in the
coefficients that are calculated as part of the point record. For example, to get the megawatt
hours per hour, the rate would be:
The FOUT point contains accumulated pulse count until the reset flag (RSET) is TRUE. If IN1 and
RSET are TRUE, then FOUT contains the pulse count read from the card.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 457
5.95 RPAWIDTH
5.95 RPAWIDTH
Description
The RPAWIDTH algorithm reads the pulse width from the Ovation Pulse Accumulator card. (See
Ovation I/O Reference Manual.) The algorithm uses the hardware address in the OUT point to
access the Ovation Pulse Accumulator card. If there is a hardware error, the OUT is set to BAD
quality.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
458 OW351_R1100
5.96 RSRSTATUS
5.96 RSRSTATUS
Description
Displays the status register and command register for the Ovation Servo Driver (RSR) card.
Calibrates Channel 1 and Channel 2 of the RSR card using a project-specific graphic
(diagram 8799) instead of using the RSR serial port.
Uploads and downloads configurable parameters used by the RSR card. (See Ovation I/O
Reference Manual.)
If a point is assigned to the ENBL input, and the point is TRUE, then the STAT1, STAT2, and
CMD outputs are updated. If ENBL is FALSE, then the last value of STAT1, STAT2, and CMD is
retained.
Note: Use the RSRSTATUS algorithm only with E or greater level of RSR firmware.
Functional Symbol
Calibration Commands
There are three different types of calibrations that can be done to the valve:
0% or Low Calibration command - moves the actuator until the 0% position is re-
established. The feedback gain is not re-established.
100% or High Calibration command - moves the actuator until the 100% position is re-
established. The feedback gain is not re-established.
Full Calibration command - moves the actuator until both the 0% and 100% positions are
re-established. It also re-establishes the feedback gain.
During the travel sequence, the actuator moves the valve at a programmable rate. While the
Valve Positioner is traveling, the graphic displays and continuously updates the current voltage
value based on the position. There is also a Clear Calibration command that may be used if the
calibration command is no longer desired.
The UTYP parameter can be configured to allow the constant value to be automatic ally uploaded
after any calibration command.
OW351_R1100 459
5.96 RSRSTATUS
Upload Command
The upload command is used to retrieve the constant values currently stored in the RSR card
memory. When the upload command is executed, the X3 value is changed and the RSR card is
commanded to send the current values stored in its memory to the 32-bit real number fields of the
algorithm record. The standard graphic then displays the values in these selected algorithm
record fields for the user when the upload is finished. Note these values can only be uploaded
when the RSR card is in local or normal mode.
Note: For the Ovation 3.5 release and later, the UPLOAD operation can change the OutputMin
and OutputMax values maximally about +/-2 but only one time. For example, if you set
OutputMax=9000, this value will be changed to 8999 after download and upload operations and
will not be changed until you type a new value. This property is related to a numerical rounding
issue and the fact that the RSR card tunes parameters as a short unsigned INT.
Download Command
The download command is used to update the constant values currently stored in the RSR Card
memory. When the download command is requested, the X3 field is changed, and the values
entered into the graphic are stored in the 32-bit real number fields of the algorithm record. Then
the values in the selected fields of the algorithm record are written to the RSR memory. Note
these values can only be downloaded when the RSR card is in local or normal mode.
The DTYP parameter can be configured to automatically download the constant values when the
RSR card is replaced or reseated in the slot.
Interface Information
The calibration commands are sent to the X3 field in the algorithm record.
Command description
C AL I B R AT E CO MM AN D C O MM AN D DE S C R I P TI O N
0 No Command.
8 Upload Request.
9 Download Request.
11 Channel 2 Calibrate 0%
460 OW351_R1100
5.96 RSRSTATUS
C AL I B R AT E CO MM AN D C O MM AN D DE S C R I P TI O N
As the commands are being executed, messages are displayed on the graphic by the status
value in the X5 field of the algorithm record.
Status description
S TATU S D E S C R I P TI O N
0 No Message.
1 Calibration in Progress.
2 Poor Calibration.
3 Calibration Time-out.
4 Upload Error.
5 Download in Progress.
6 Download Error.
7 Download Time-out.
OW351_R1100 461
5.96 RSRSTATUS
In order to perform tuning calibrations on the RSR module, you need to use a tuning diagram
such as diagram 8799. This diagram is accessed from a custom graphic. You can use the
Ovation Graphics Builder to create code that will call the 8799 calibration diagram. Refer to the
Ovation Graphics Builder User Guide for more information on building Ovation graphics.
The following is an example of calling the 8799 diagram from diagram 1000 by using a standard
OL_BUTTON command in Ovation Graphics Builder:
OL_BUTTON 6868 6044 HORZ SQUARED TEXT_LABEL VECTOR 137 438 1 "RSR
TUNING" EXEC_POKE 7 2 6 0 5 \RSRSTAT\ ID \RSRSTAT\ ID 3 83 3 117 8799 20 0 0 0 0
15 \RSR-DMD1\ ID \RSR-POS1\ ID\RSR-INTGV1\ ID \RSR-DMD2\ ID \RSR-POS2\ ID \RSR-
INTGV2\ ID \RSR-STAT1\ ID \RSR-STAT2\ ID \RSR-CMD\ ID \MASTATION1\ ID
\MAMODE1-MODE\ ID \MASTATION2\ ID \MAMODE2-MODE\ ID \RSR-OUT1\ ID \RSR-
OUT2\ ID
462 OW351_R1100
5.96 RSRSTATUS
Diagram 8799
Diagram 8799 consists of three main sections: Common, Channel 1 and Channel 2:
Common section contains configuration pushbuttons and tuning constant entry fields common
for both channels.
Channel 1 section contains configuration pushbuttons, tuning constant entry fields and
message lines used only for Channel 1.
The Channel 2 section contains configuration pushbuttons, tuning constant entry fields and
message lines used only for Channel 2.
OW351_R1100 463
5.96 RSRSTATUS
The pushbuttons and entry fields that are used to set configuration values are described in the
following table.
B U TTO N OR EN TR Y FI E L D DE S C R I P TI O N
INTEGRAL button DAC is displayed in RawVoltage and OutputValue for both channels -
the yellow rectangle confirms selection.
LVDT button Feedback voltage is displayed in RawVoltage and OutputValue for
both channels - the yellow rectangle confirms selection.
PROPOR button Proportional output option flag to 1 - the yellow rectangle confirms
selection.
REGUL button Proportional output option flag to 0 - the yellow rectangle confirms
selection.
REDUND button Redundant LVDT option flag to 1 - the yellow rectangle confirms
selection.
SINGLE button Redundant LVDT option flag to 0 - the yellow rectangle confirms
selection.
INPLACE button Fail-in-place flag to 1 - the yellow rectangle confirms selection.
retreatHoldT entry field The time in milliseconds - retreat occurs after this time has expired,
and (ABS|Target-Feedback| < posErrorRetreat).
464 OW351_R1100
5.96 RSRSTATUS
Calibration is performed by using command push buttons and entering tuning constants in the
entry fields. Some of the push buttons are accompanied with rectangular confirmation boxes –
when the function is selected the box color is changed. The full, zero hot and t op hot calibration
sequences can be started selecting proper push buttons. The calibration sequence can be
stopped at any time. It is not possible to start calibration sequence for both channels
simultaneously. When the calibration of any channel is in progress DOWNLOAD, UPLOAD,
CLEAR EF’s, OUTPUT, LVDT push buttons are disabled.
When the calibration is finished, the tuning of the PI position control should be performed. It can
be done in RSR local or normal mode. When local mode is selected the only way to change the
valve position demand is to press UP or DOWN push buttons. Normal mode is selected by
pressing DPU push button and the valve position demand is changed by pressing up/down arrow
push buttons, or entering demand in DEO entry field.
The following push buttons and entry fields are used to set the values of important configuration.
B U TTO N OR EN TR Y FI E L D DE S C R I P TI O N
DPU button RSR channel 1(2) to normal mode - the green rectangle confirms
selection.
LOC button RSR channel 1(2) to local mode - the yellow rectangle confirms selection.
AUT button Mastation channel 1(2) to auto mode - the blue rectangle confirms
selection.
MAN button Mastation channel 1(2) to manual mode - the red rectangle confirms
selection.
up arrow push button Raise Mastation channel 1(2) output.
demodGain entry field The A/D converter gain to achieve a voltage range representing 0 to 100
%.
errorDbS entry field When the absolute value of the difference between the target position and
the actual position is less than this value, the valve is considered to be
stable.
OW351_R1100 465
5.96 RSRSTATUS
B U TTO N OR EN TR Y FI E L D DE S C R I P TI O N
errorDbF entry field When the absolute value of the difference between the target position and
the actual position is greater that this value, the valve is considered to be
in motion.
piGainDb entry field PI Controller gain inside deadband.
Outoffset entry field RSR output offset for the proportional mode.
calRateCh1(2) entry field Automatic calibration demand change rate – channel 1(2).
DIRECT entry field PI mode.
seatLimit entry field When target valve position is equal to or less than this value, seating
action controls the output.
backSeatLimit entry field When the target valve position is equal to or greater than this valu e,
backseating action controls the output.
exitSeatVal entry field When the RSR is seating the valve, then decides to retreat, this is the
output in mV to which the output goes.
exitBkSeatVal entry field When the RSR is backseating the valve, then decides to retreat, this is the
output in mV to which the output goes.
Calzero entry field The converted to decimal hexadecimal A/D converter reading for the 0%
position.
Calhndrd entry field The converted to decimal hexadecimal A/D converter reading for the 1 00%
position.
Contingency entry field The difference between Servo Driver target position and actual
Position.
The following display fields in the bottom of the 8799 diagram are used to display the status and
calibration of the RSR module.
FI E L D DE S C R I P TI O N
466 OW351_R1100
5.96 RSRSTATUS
FI E L D DE S C R I P TI O N
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 467
5.96 RSRSTATUS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
468 OW351_R1100
5.97 RUNAVERAGE
5.97 RUNAVERAGE
Description
The output, which is calculated every loop, is the average of the last N samples of the input,
where N is 8 or less. Thus, the time period for the average is the product of t he sampling interval
time and the number of samples. If the quality of the input is BAD, that value of the input is not
included in the calculation. If the quality of the samples for a given period is BAD, then the output
value remains unchanged, but the quality is set BAD. During initial operation before N samples
exist, the output that is calculated is based on the available samples.
The values of all IN1 samples are checked for invalid real numbers. If an IN1 sample value is
invalid, the stored, internal quality of that IN1 is set to BAD. Only sample values with GOOD,
FAIR, and POOR quality are used to calculate the value of OUT; the quality of OUT is set
according to the rules listed in the Function section of this description.
At any given time, the output is the average of N samples, made up of the most current sample
and the previous N-1 samples. Every sampling time, the oldest sample is discarded and replaced
with a new sample.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 469
5.97 RUNAVERAGE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
470 OW351_R1100
5.98 RUNTIME
5.98 RUNTIME
Description
The RUNTIME algorithm counts long-lasting service times of devices. This algorithm consists of
two counters; run time (RTIME) and number of starts (NUMST).
Functional Symbol
The algorithm is activated when you set the START input. When this occurs, the algorithm begins
to increment the RTIME counter and also increments the NUMST parameter by 1. The START
input must remain set to activate the algorithm. If the START input is unset, the algorithm will stop
incrementing the RTIME counter.
You can reset the algorithm through the time reset (TRST) and number of starts reset (SRST)
inputs. Resetting the algorithm through these inputs will set both the RTIME and the NUMST
counters to 0 and qualities to GOOD.
There are several reset options available through the tuning parameters: time reset option
(TROP) and starts reset option (SROP). These options are summarized in the following table:
Parameters
TU N I N G P AR AM E TE R V AL U E N AME RE S E T S E L E C TE D
OW351_R1100 471
5.98 RUNTIME
The run time (RTIME) parameter is determined by the difference between the Controller time in
the current loop and the Controller time in the previous loop and added to an internal counter. The
internal counter is a 32-bit integer number. This allows counting up to 2^32 = 4,294,967,296
seconds which is equivalent to 136 years or 1,193,046 hours. For simplicity, the algorithm uses a
maximum of 999,999 hours at which time the counter will not increment any further. The
maximum value is equivalent to more than 100 years. The number of seconds is recalculated to
hours represented by a floating value and is reflected in the RTIME algorithm output.
The number of starts (NUMST) parameter is determined by the amount of times the START input
transitions from 0 to 1. This counter is reflected in the number of starts (NUMST) output and is
internally stored in the algorithm. The maximum number of starts is 999,999, at which time the
counter will not increment any further.
The algorithm supports splitting the time represented in RTIME into hours, minutes, and seconds.
Each part is reflected in optional outputs; run hours (RHRS), run minutes (RMIN), and run
seconds (RSEC).
A manual update of either the RTIME counter or the NUMST counter can be achieved by
changing either the incremental tuning value for the time parameter (TTIM) or the incremental
tuning value for the number of starts parameter (TNST) respectively. Changing these parameters
will cause the algorithm to add the value entered to the current RTIME or NUMST value. The
algorithm will then zero out each field (TTIM and/or TNST) and update the current incremental
tuning value for time (CTTIM) or current incremental tuning value for number of starts (CTNST)
respectively. The CTTIM and CTNST fields store the user-entered values for future references.
If you want to start the algorithm with either the TTIM or TNST values, you must first reset each
counter to zero out the current RTIME and NUMST counters. Then the TTIM and TNST values
can be entered.
Note: Entering a number less than zero or greater than 999,999 will cause the algorithm to
ignore the value and reset the TTIM and TNST fields to zero.
472 OW351_R1100
5.98 RUNTIME
When the reconcile option is off, the algorithm initializes its outputs to 0 and POOR quality after a
clear and load of both Controllers. When the reconcile option is on, the algorithm will initialize its
outputs using the previously reconciled values in the RTIME - R1 and NUMST - G3 fields and set
all outputs to GOOD quality. The initialized values will also be stored in the CTTIM and CTNST
fields for future reference. When the algorithm is started, it begins counting from the initialized
values.
If the RECOP option is off, any time a loaded Controller is restarted without an operable partner
drop (and with the INITP option set to OFF), the RTIME and NUMST are initialized to 0, and the
outputs will be marked with POOR quality. POOR quality indicates that the value is not
trustworthy because the output values will be initialized to 0. The qualities are changed to GOOD
after a reset by the time reset (TRST) and/or start reset (SRST) inputs. Also, updating the TTIM
field will set the RTIME quality to GOOD and updating the TNST field will set the NUMST quality
to GOOD.
If the INITP option is ON, the algorithm will initialize its outputs from the NUMST and RTIME
output points that are periodically saved by the Controller. This allows the RTIME and NUMST
values to persist in cases of dual power failures to a Controller pair. The saved point values do
not persist when both Controllers are cleared at the same time; however, you may use the
RECOP option described above. If both the INITP and RECOP option are ON, the algorithm will
initialize its outputs using whichever value is greater.
Note: You must separately configure the RTIME and NUMST points to be “Periodic save” using
the Ovation Developer Studio. The resolution of the INITP option is limited by the Controller
parameter “Save Variables @ Interval (sec)” defined by the Ovation Developer Studio. See
Ovation Developer Studio User Guide for more information on configuration.
SID Storage
In order to assist with graphics programming, all output point SIDs are stored in fields in the
algorithm. This allows the graphic to access multiple SIDs by accessing a single SID (the
algorithm LC record).
OW351_R1100 473
5.98 RUNTIME
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Inputs:
474 OW351_R1100
5.98 RUNTIME
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 475
5.99 RVPSTATUS
5.99 RVPSTATUS
Description
Displays the status register and command register for the Ovation Valve Positioner (RVP)
Card.
Calibrates the RVP card using a standard graphic (diagram 8719) instead of using the RVP
serial port.
Uploads and downloads configurable parameters used by the RVP card. (See Ovation I/O
Reference Manual.)
If a point assigned to the ENBL input and point is TRUE, then the STAT and CMD outputs are
updated. If ENBL is FALSE, then the last value of STAT and CMD is retained.
Functional Symbol
Calibration Commands
There are four different types of calibrations that can be done to the valve:
0% or Low Calibration command - moves the Valve Positioner until the 0% position is re-
established. The feedback gain is not re-established.
100% or High Calibration command - moves the Valve Positioner until the 100% position is
re-established. The feedback gain is not re-established.
Full Calibration command - moves the Valve Positioner until both the 0% and 100%
positions are re-established. It also re-establishes the feedback gain.
Null-Point Calibration command - moves the Valve Positioner to the electrical null point of
the LVDT. The Null-Point Calibration can be requested at the same time as the Full
Calibration. If this is done, the Positioner moves through the sequences of the full cal ibration,
but stops at the null point when encountered.
When the calibration command is executed, the controlling MASTATION enters manual mode
and tracks the position demand feedback. During the travel sequence, the Valve Positioner
moves the valve at a programmable rate. While the Valve Positioner is traveling, the graphic
displays and continuously updates the current voltage value based on the position. There is also
a Clear Calibration command that may be used if the calibration command is no longer desired.
476 OW351_R1100
5.99 RVPSTATUS
Upload Command
The upload command is used to retrieve the constant values currently stored in the RVP Card
memory. When the upload command is executed, the X3 value is changed and the RVP Card is
commanded to send the current values stored in its memory to the 32-bit real number fields of the
algorithm record. The standard graphic then displays the values in these selected algorithm
record fields for the user when the upload is finished. Note these values can only be uploaded
when the RVP card is in local or normal mode.
Download Command
The download command is used to update the constant values currently stored in the RVP Card
memory. When the download command is requested, X3 field is changed, and the values entered
into the graphic are stored in the 32-bit real number fields of the algorithm record. Then the values
in the selected fields of the algorithm record are written to the RVP memory. Note these values
can only be downloaded when the RVP card is in local or normal mode.
Interface Information
The calibration commands are sent to the X3 field in the algorithm record.
Calibrate command
C AL I B R AT E CO MM AN D C O MM AN D DE S C R I P TI O N
0 No Command.
1 Calibrate 0%.
2 Calibrate 100%.
3 Full Calibration.
4 Go to Null Point Calibration.
7 Clear Calibration Request.
8 Upload Request.
9 Download Request.
As the commands are being executed, messages are displayed on the graphic by Status Value in
the X5 field of the algorithm record.
Status description
S TATU S D E S C R I P TI O N
0 No Message.
1 Calibration in Progress.
2 Poor Calibration.
3 Calibration Time-out.
4 Upload Error.
OW351_R1100 477
5.99 RVPSTATUS
S TATU S D E S C R I P TI O N
5 Download in Progress.
6 Download Error
7 Download Time-out
8 RVP Card Not Ready.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
478 OW351_R1100
5.100 SATOSP
5.10 0 SATOSP
Description
The SATOSP algorithm transfers one analog value to a packed point record for use by
programmable controllers.
The analog point record value field is converted to an integer and stored in the packed digital
value field. Conversion is done by rounding off fractional values less than 0.50 to zero and
fractional values greater than or equal to 0.50 to the next highest integer. If the value of the
analog point record is less than the smallest integer (-32767), or greater than the largest integer
(32767), the minimum or maximum integer value is used.
The bit pattern used to store negative numbers is the sign and magnitude method.
If the quality of the analog point record is BAD, or if the value of the analog point is an invalid
number, then the packed point value remains at its last valid value. The quality of the input is not
propagated to the output.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 479
5.101 SELECTOR
5.10 1 SELECTOR
Description
The SELECTOR algorithm transfers between N analog inputs. For the SELECTOR algorithm, the
output is equal to one of N analog inputs, where N is an integer less than eight. The input
selected is based on a binary address formed by three digital inputs per the table. If address 000
or an address greater than N is selected, the output signal is zero.
Input states
None 0 0 0
1 1 0 0
2 0 1 0
3 1 1 0
4 0 0 1
5 1 0 1
6 0 1 1
7 1 1 1
The value of the selected input is checked for invalid real numbers. If the input value is invalid, the
output value is invalid and the quality of the output is set to BAD. Otherwise, the quality of the
selected input is propagated to the output.
Functional Symbol
480 OW351_R1100
5.101 SELECTOR
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 481
5.102 SETPOINT
5.10 2 SETPOINT
Description
The SETPOINT algorithm performs a manual loader function. The algorithm provides an interface
to the Control Builder or Operator Station diagram. Interface to the hard setpoint portion of the
Ovation Loop Interface (LI) card may be initialized. If the LI hardware address is initialized, the
algorithm reads the setpoint stored on the LI setpoint counter to use as its output value. If the LI
or hardware address is not initialized, the algorithm uses the last output value as its output value.
Note: The rate of change is constant in Signal Diagrams regardless of the settings for the
algorithm parameters.
Functional Symbol
The output of this algorithm may be increased and/or decreased by the SLIM station or the
Operator's Soft Station diagram.
It continually checks the Set Point Increase/Decrease function keys from the Operator's Station
for increase/decrease requests for the setpoint output. If requests are received from both the hard
and soft stations at the same time, the station contacts override the Operator's Keyboard keys.
On power-up or reset of the Controller, the output is the initial value of the algorithms output
(default value = 0.0) if the LI is not initialized. Otherwise, the output is the current value stored on
the LI setpoint counter.
If the LI card is selected in the TYPE algorithm field and the Controller is reset, powered-up or
fails, the setpoint is read from the LI card and used initially in the OUT field of the algorithm. This
reports the status of the field device before any action is taken by either the algorithm or the
operator.
Key usage
KE Y US E
Set Point Increase Function Key (Control Up Arrow) Raise the output
Set Point Decrease Function Key (Control Down Arrow) Lower the output
Note: If the top and bottom scales are equal, the high limit flag is set and the output value is
equal to the top scale.
If the algorithm is told to track and the track input is invalid, the track request is ignored and the
drop is placed into alarm.
482 OW351_R1100
5.102 SETPOINT
If the LI hardware address is initialized, this value is written to the setpoint counter on the
specified card. If the algorithm is operating with an LI, and the LI card is in Local mode, the output
of the algorithm cannot be changed from the Operator Station. In this case, the output of the
algorithm can be changed from the SLIM station only.
If SETPOINT is to write the setpoint value to the LI card, then changes to the setpoint value (that
is, tracking, Control Builder or Operator Station raise/lower requests, and so forth) are
implemented as described previously.
The SETPOINT algorithm monitors the LI card for any raise and lower requests from the SLIM.
Raise/lower requests from the SLIM override any other setpoint change requests received by this
algorithm (that is, tracking, Operator Station raise/lower requests, and so forth). If there are no
SLIM requests, then the setpoint value is changed as described previously. The setpoint value is
only written to the output point.
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog track point. This algorithm takes the action shown in the following table in response
to the information found in the analog input signal TRIN:
Bit description
BI T D E S C R I P TI O N A C TI O N TOUT S I G N AL
OW351_R1100 483
5.102 SETPOINT
The high and low limit flags and tracking signals from the algorithm are output to TOUT for
display. If the LI hardware address is initialized, the quality of OUT is BAD if there are any LI
hardware errors. Otherwise, the quality of OUT is GOOD when not tracking or set to the quality of
the track input variable when tracking.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
484 OW351_R1100
5.103 SIMTIME
5.10 3 SIMTIME
Description
The SIMTIME algorithm is used to set time in the Controller. It is reserved for Emerson use only.
5.10 4 SINE
Description
The SINE algorithm performs a mathematical sine function. The SINE algorithm has one input
and one output analog point. Each time the algorithm is executed, if the output is on scan, it is set
to the SINE of the input. The input to this algorithm is in radians. If an input is only available in
degrees, multiply it by 0.01745329 to convert to radians.
Analog input values are checked for invalid real numbers. If the input value is invalid, the value of
the output is invalid and its quality is set to BAD. If the input is valid, the quality of the input is
propagated to the output.
If the absolute value of the input greater than 10 18 then the output of the SINE algorithm is invalid
and its quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT = SINE(IN1)
OW351_R1100 485
5.105 SLCAIN
5.10 5 SLCAIN
Description
The SLCAIN algorithm reads up to 16 analog values from a Group 1 QLC or Ovation Link
Controller (LC) card (or redundant pair of Group 1 QLC cards).
Functional Symbol
The Hardware addresses of the primary and secondary QLC/LC cards are specified by the PHW
and SHW parameters (if no secondary QLC/LC is used, SHW is set to zero).
Digital inputs PSTA and SSTA define whether the points are to be read from the primary or
secondary QLC/LC, as shown below:
If PSTA = TRUE, the points are read from the primary QLC/LC (status of SSTA does not
matter).
If PSTA = FALSE and SSTA = TRUE, the points are read from the secondary QLC.
If PSTA = FALSE and SSTA = FALSE, the point values are not updated and the points are
assigned BAD quality.
If PSTA = FALSE and SSTA is not defined, the point values are not updated and the points
are assigned BAD quality.
If PSTA and SSTA are not defined, the point values are not updated and the points are
assigned BAD quality.
Note: Although both PSTA and SSTA are optional parameters, at least one must be defined for
the points to be updated.
486 OW351_R1100
5.105 SLCAIN
The FRMT parameter is used to specify the format of the analog point data to be read from the
QLC/LC registers. The four available formats are as follows:
Formats
FRMT * FO R M AT DE S C R I P TI O N
The point data is retrieved from consecutive QLC/LC data registers, starting at the register
specified by parameter REG1. Depending on the format selected, the total area required for the
16 analog points could be 16, 32, or 48 registers.
The point parameters (OUT1 through OUT16) are associated with consecutive QLC/LC data
registers, even if some points are omitted from the argument list. For example, if REG1 = 4,
FRMT = 1, and point OUT1 is omitted, then OUT2 is read starting at data register 6 (no read is
performed from data registers 4 and 5).
The location from which a given point is read can be calculated using the following formula:
where:
point_address QLC/LC data register containing the first word of data from the point
Any point which lies (completely or partially) beyond the end of the 2048 QLC/LC data regi sters is
assigned BAD quality. For example, if REG1 = 2044 and FRMT = 2, only the first point value
(parameter Al) can be obtained.
OW351_R1100 487
5.105 SLCAIN
If alarm and/or limit checking are to be performed on points read from the QLC/LC, use point
record type Long Analog (LA).
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
488 OW351_R1100
5.106 SLCAOUT
5.10 6 SLCAOUT
Description
Functional Symbol
The hardware addresses of the primary and secondary QLC/LC cards are specified by the PHW
and SHW parameters (if no secondary QLC/LC is used, SHW is set to zero).
Digital inputs PSTA and SSTA define whether the points are to be written to the primary or
secondary QLC/LC, as shown below:
If PSTA = TRUE, the points are written to the primary QLC/LC (status of SSTA does not
matter).
If PSTA = FALSE and SSTA = TRUE, the points are written to the secondary QLC.
If PSTA = FALSE and SSTA = FALSE, the points are not output.
If PSTA = FALSE and SSTA is not defined, the points are not output.
If PSTA and SSTA are not defined, the points are not output.
Note: Although both PSTA and SSTA are optional parameters, at least one must be defined for
the points to be output.
The FRMT parameter is used to specify the format of the analog point data to be written to the
QLC/LC registers. The three available formats are as follows:
FRMT FO R M AT DE S C R I P TI O N
0 Integer Integer value in the range +32767 to -32768. Each point occupies
one data register.
1 Intel Real Floating-point real number. Each point occupies two data registers.
2 Intel Real with status Status word followed by floating-point real number. Each point
occupies three data registers.
Note that depending on the format selected, each point value occupies between 1 and 3 data
registers.
OW351_R1100 489
5.106 SLCAOUT
The point data is written to consecutive QLC/LC data registers, starting at the register specified by
parameter REG1. Depending on the format selected, the total area required for the 16 anal og
points could be 16, 32, or 48 registers.
The point parameters (A1 through A16) are associated with consecutive QLC/LC data registers,
even if some points are omitted from the argument list. For example, if REG1 = 4, FRMT = 1, and
point A1 is omitted, then A2 is written starting at data register 6 (no data is written to registers 4
and 5).
The location to which a given point is written can be calculated using the following formula:
where:
point_address QLC/LC data register containing the first word of data from the point.
No data is written to registers beyond the valid range (0 through 2047). Points which lie partially
beyond the valid range of registers are written to the extent possible; points which lie completely
beyond the valid range of registers are not written. For example, if REG1 = 2044 and FRMT = 2,
only the first point value (parameter Al) can be written.
Timed-Out Points
The TIME parameter determines what action is taken when a received point (to be written to the
QLC/LC) is timed-out. Depending on the selected TIME setting, the point is either not written to
the QLC/LC, or the last received value is written.
TIME is interpreted as a mask of bits to determine the selected setting for each point, as shown
below:
Point IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
TIME bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
For each point, a value of 0 (zero) in the corresponding bit indicates that the point should not
be written if it is timed-out.
For each point, a value of 1(one) in the corresponding bit indicates that the last received value
should be written if the point is timed-out.
490 OW351_R1100
5.106 SLCAOUT
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 491
5.107 SLCDIN
5.10 7 SLCDIN
Description
The SLCDIN algorithm reads up to 16 digital values from a Group 1 QLC or Ovation Link
Controller (LC) card (or redundant pair of Group 1 QLC cards).
Functional Symbol
The Hardware addresses of the primary and secondary QLC cards are specified by the PHW and
SHW parameters (if no secondary QLC is used, SHW is set to zero).
Digital inputs PSTA and SSTA define whether the points are to be read from the primary or
secondary QLC/LC, as shown below:
If PSTA = TRUE, the points are read from the primary QLC/LC (status of SSTA does not
matter).
If PSTA = FALSE and SSTA = TRUE, the points are read from the secondary
QLC/LC.
If PSTA = FALSE and SSTA = FALSE, the point values are not updated and the points are
assigned BAD quality.
If PSTA = FALSE and SSTA is not defined, the point values are not updated and the points
are assigned BAD quality.
If PSTA and SSTA are not defined, the point values are not updated and the points are
assigned BAD quality.
Note: Although both PSTA and SSTA are optional parameters, at least one must be defined for
the points to be updated.
492 OW351_R1100
5.107 SLCDIN
Each digital point occupies one data register (equivalent to the 1W field of the point data record).
The FRMT parameter is used to specify the format of the Digital point data to be read from the
QLC/LC register. The three available formats are as follows:
The following bits are placed into the 1W field (no other bits cleared) of the digital point record:
Format description
FRMT DE S C R I P TI O N
The remaining bits of the 1W field are used for alarm status, operator entry, and Data Highway
status information. (See Ovation Record Types Reference Manual.)
The point data is retrieved from consecutive QLC/LC data registers, starting at the register
specified by parameter REG1. The total area required for the 16 digital points is 16 registers.
The point parameters (OUT1 through OUT16) are associated with consecutive QLC/LC data
registers, even if some points are omitted from the argument list. For example, if REG1 and point
OUT1 is omitted, then OUT2 is read from data register 5
(no read is performed from data register 4).
The location from which a given point is read can be calculated using the following form ula:
where:
Any point which lies beyond the end of the 2048 QLC/LC data regist ers is assigned BAD quality.
For example, if REG1 =2044, only the first three point values (parameters OUT1, OUT2, and
OUT3) can be obtained.
OW351_R1100 493
5.107 SLCDIN
If alarm checking is to be performed on digital points read from the QLC/LC, use point record type
Long Digital.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
494 OW351_R1100
5.108 SLCDOUT
5.10 8 SLCDOUT
Description
The SLCDOUT algorithm writes up to 16 digital points to a Group 1 QLC or Ovation Link
Controller (LC) card (or redundant pair of Group 1 QLC cards).
Functional Symbol
The hardware addresses of the primary and secondary QLC/LC cards are specified by the PHW
and SHW parameters (if no secondary QLC/LC is used, SHW is set to zero).
Digital inputs PSTA and SSTA define whether the points are to be written to the primary or
secondary QLC/LC, as shown below:
If PSTA = TRUE, the points are written to the primary QLC/LC (status of SSTA does not
matter).
If PSTA = FALSE and SSTA = TRUE, the points are written to the secondary QLC/LC.
If PSTA = FALSE and SSTA = FALSE, the points are not output.
If PSTA = FALSE and SSTA is not defined, the points are not output.
If PSTA and SSTA are not defined, the points are not output.
Note: Although both PSTA and SSTA are optional parameters, at least one must be defined for
the points to be output.
OW351_R1100 495
5.108 SLCDOUT
Each digital point occupies one data register (equivalent to the 1W field of the point data record).
(See Ovation Record Types Reference Manual.)
The point data is written to consecutive QLC/LC data registers, starting at the register specified by
parameter REG1. The total area required for the 16 digital points is 16 registers.
The point parameters (IN1 through IN16) are associated with consecutive QLC/LC data registers,
even if some points are omitted from the argument list. For example, if REG1 = 4 and point IN1 is
omitted, then IN2 is written to data register 5 (no data is written to register 4).
The location to which a given point is written can be calculated using the following formula:
where:
point_address = QLC/LC data register containing the digital point
point_number = 1 for parameter IN1, 2 for parameter IN2, and so on.
No data is written to registers beyond the valid range (0 through 2047). For example, if REG1 =
2044, only the first three point values (parameters IN1 through IN3) can be written.
Timed-Out Points
The TIME parameter determines what action is taken when a received point (to be written to the
QLC/LC) is timed-out. Depending on the selected TIME setting, the point is either not written to
the QLC/LC, or the last received value is written.
TIME is interpreted as a mask of bits to determine the selected setting for each point, as shown
below:
Point IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
TIME bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
For each point, a value of 0 (zero) in the corresponding bit indicates that the point should not
be written if it is timed-out.
For each point, a value of 1 (one) in the corresponding bit indicates that the last received
value should be written if the point is timed-out.
496 OW351_R1100
5.108 SLCDOUT
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 497
5.109 SLCPIN
5.10 9 SLCPIN
Description
The SLCPIN algorithm reads up to 16 packed points from a Group1 QLC card or LC
(or redundant pair of Group 1 QLC cards).
Functional Symbol
Note: For the Windows platform, the parameters OUT10 - OUT16 are represented as
OT10 - OT16.
The hardware addresses of the primary and secondary QLC/LC cards are specified by the PHW
and SHW parameters (if no secondary QLC/LC is used, SHW is set to zero).
Digital inputs PSTA and SSTA define whether the points are to be read from the primary or
secondary QLC/LC, as shown below:
If PSTA = TRUE, the points are read from the primary QLC/LC (status of SSTA does not
matter).
If PSTA = FALSE and SSTA = TRUE, the points are read from the secondary QLC/LC.
If PSTA = FALSE and SSTA = FALSE, the point values are not updated.
If PSTA = FALSE and SSTA is not defined, the point values are not updated.
If PSTA and SSTA are not defined, the point values are not updated.
Note: Although both PSTA and SSTA are optional parameters, at least one must be defined for
the points to be updated.
498 OW351_R1100
5.109 SLCPIN
Data Format
Each packed point value occupies one QLC/LC data register. For packed points, the value is
stored in the A2 field of the LP point data record. See Ovation Record Types Reference Manual.)
The point data is retrieved from consecutive QLC/LC data registers, starting at the register
specified by parameter REG1. The total area required for the 16 packed point values is 16
registers.
The point parameters (OUT1 through OUT16) are associated with consecutive QLC/LC data
registers. For example, if REG1 = 4, the value of OUT1 is read from register 4, OUT2 is read from
register 5, and so on. These point parameters are required and may not be omitted from the
argument list, regardless of the number of points which are actually used by the application.
The location from which a given point is read can be calculated using the following formula:
where:
Any value which lies beyond the end of the 2048 QLC data registers or 4096 LC data register is
not read. For example, if REG1 = 2044, only the first three point values (parameters OUT1,
OUT2, and OUT3) can be obtained.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 499
5.109 SLCPIN
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
500 OW351_R1100
5.110 SLCPOUT
5.11 0 SLCPOUT
Description
The SLCPOUT algorithm writes up to 16 packed points to a Group 1 QLC card or LC (or
redundant pair of Group 1 QLC cards).
Functional Symbol
The hardware addresses of the primary and secondary QLC/LC cards are specified by the PHW
and SHW parameters (if no secondary QLC/LC is used, SHW is set to zero).
Digital inputs PSTA and SSTA define whether the points are to be written to the primary or
secondary QLC/LC, as shown below:
If PSTA = TRUE, the points are written to the primary QLC/LC (status of SSTA does not
matter).
If PSTA = FALSE and SSTA = TRUE, the points are written to the secondary QLC/LC.
If PSTA = FALSE and SSTA = FALSE, the points are not output.
If PSTA = FALSE and SSTA is not defined, the points are not output.
If PSTA and SSTA are not defined, the points are not output.
Note: Although both PSTA and SSTA are optional parameters, at least one must be defined for
the points to be output.
OW351_R1100 501
5.110 SLCPOUT
Data Format
Each packed group point value occupies one QLC/LC data register.
For packed points, the value is obtained from the A2 field of the LP point data record. (See
Ovation Record Types Reference Manual.)
The point data is written to consecutive QLC/LC data registers, starting at the register specified by
parameter REG1. The total area required for the 16 packed point values is 16 registers.
The point parameters (IN1 through IN16) are associated with consecutive QLC/LC data registers.
For example, if REG1 = 4, the value of IN1 is written to register 4, IN2 is written to register 5, and
so on. These point parameters are required and may not be omitted from the argument list,
regardless of the number of points which are actually used by the application.
The location to which a given point is written can be calculated using the following formula:
where:
point_address = QLC/LC data register containing the packed group or holding register value
point_number = 1 for parameter IN1, 2 for parameter IN2, and so on.
No data is written to registers beyond the valid range (0 through 2047 for QLC and 0-4096 for
LC). For example, if REG1 = 2044, only the first three point values (parameters IN1 through IN3)
can be written.
Timed-Out Points
The TIME parameter determines what action is taken when a received point (to be written to the
QLC/LC) is timed-out. Depending on the selected TIME setting, the point is either not written to
the QLC/LC, or the last received value is written.
TIME is interpreted as a mask of bits to determine the selected setting for each point, as shown
below:
Point IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
TIME bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
For each point, a value of 0 (zero) in the corresponding bit indicates that the point should not
be written if it is timed-out.
For each point, a value of 1 (one) in the corresponding bit indicates that the last received
value should be written if the point is timed-out.
502 OW351_R1100
5.110 SLCPOUT
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 503
5.111 SLCSTATUS
5.11 1 SLCSTATUS
Description
The SLCSTATUS algorithm reads hardware and user application status information from a Group
1 QLC or Ovation Link Controller (LC) card (or redundant pair of Group 1 QLC cards). The status
information is placed in packed group points.
Functional Symbol
The hardware addresses of the primary and secondary QLC/LC cards are specified by the PHW
and SHW parameters.
An additional parameter is also provided to indicate whether both QLC/LC are present in the drop.
Bits 0 and 1 of the AVBL parameter are used for the primary and secondary QLC/LC,
respectively. If the bit is set to 0, then that QLC/LC card is not present. If the bit is set to 1, then
that QLC/LC card is present.
The application status information is retrieved from four consecutive QLC/LC data registers,
starting at the register specified by parameter REG1. The integer values read from these
locations are stored in the user-initialized packed (LP) points, as follows:
Register points
D AT A RE G I S TE R LP P O I N TS
REG1 PFID/SFID
REG1 + 1 PPR1/SPR1
REG1 + 2 PPR2/SPR2
REG1 + 3 PAUX/SAUX
504 OW351_R1100
5.111 SLCSTATUS
The fault ID obtained from REG1 (PFID or SFID) is also used by SLCSTATUS to place the drop
into QLC/LC fault. If this value is non-zero, a fault is reported with the following values:
Fault Code = 129
Fault ID = PFID/SFID
Fault Parameter 1 = PPR1/SPRl
Fault Parameter 2 = PPR2/SPR2
Note: Fault Code 129 is reported for either the primary or secondary QLC/LC. The Fault ID or
Fault Parameter(s) must be appropriately defined to indicate which QLC/LC is in fault.
The PAUX/SAUX parameters may be used to define additional information for use by the
application.
QLC hardware status information is placed in the PSTA and SSTA variables (for the primary and
secondary QLCs, respectively). The bits in these parameters are defined as follows:
BI T D E F I N I TI O N
0 Watchdog timer:
0 = Timed-out
l = Not timed-out
1 SBX module:
0 = Module is attached
1 = Module is not attached
2 DRAM parity:
0 = No parity error
1 = Parity error
3 Configuration switch 6 setting:
0 = QLC boot from external disk
1 = QLC boot from flash memory
4 Configuration switch 5 setting:
0 = 80C187 installed
1 = 80C187 not installed
5 Configuration switch 4 setting (Baud rate for communication with external
personal computer)
8 - 15 Undefined
Note: The term 'configuration switch' refers to QLC DIP switch SW3. The switch settings are
defined as 0 = ON = closed; 1 = OFF = open.
The watchdog timer must be reset by the user application. Otherwise, bit 0 of PSTA/SSTA is
always = 0.
OW351_R1100 505
5.111 SLCSTATUS
LC Hardware Status information is placed in the PSTA and STA variables (for the primary and
secondary LCs, respectively). The bits in these parameters are defined as follows:
Bit definition
BI T D E F I N I TI O N
0 Watchdog Timer:
0 - Timed-Out
1 - Not Timed-out
1-2 Personality Module Type:
0 - RS - 232 Applications Port
1 - RS - 485 Full Duplex Applications Port
3 Boot up Serial Link Controller from:
0 - External PC via Local Serial Port
1 Internal Flash Memory
5 BAUD RATE on Serial Port:
0 - Use 9600 BAUD RATE
1 - Use 19200 BAUD RATE
6-15 Undefined
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
506 OW351_R1100
5.111 SLCSTATUS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 507
5.112 SMOOTH
5.11 2 SMOOTH
Description
This algorithm “smooths” an analog input value. Smoothing of an analog input (sometimes
referred to as digital filtering) consists of giving the most weight to the most recent sample and the
diminishing weight to all preceding readings. The relative weight given to the most recent value is
determined by the smoothing time constant specified for input filtering. The input (IN1) is sampled
each loop. If the smoothing time constant is less than or equal to zero, t he output is equal to the
input value. If the smoothing time constant is less than zero, the quality of the output is set to
BAD.
The value of IN1 is checked for an invalid real number. If the calculated value of the output is
invalid, the quality of OUT is set to BAD; otherwise, the quality of IN1 is propagated to the output.
Note: Algorithm record fields that contain real number values are not updated if the new value is
an invalid real number.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
508 OW351_R1100
5.112 SMOOTH
Function
where:
OW351_R1100 509
5.113 SOFTSOE
5.11 3 SOFTSOE
Description
The SOE events generated by the SOFTSOE algorithm are identical to any hardware SOE events
and are stored in the same history, combined on the same reports, and so forth.
Note: Even though the resolution of events that are generated using the SOFTSOE algorithm is
to the nearest one millisecond, the accuracy is only as good as the control task period in which
the algorithm executes. SOFTSOE is designed to generate an SOE event based on the time the
algorithm samples the trigger point. This is only accurate to the period of the control task , which
could be significantly different from the time when the trigger point actually changed state. That
is, the time tag on the SOE event only reflects the time (to the nearest millisecond) when the
algorithm sampled the input.
Functional Symbol
The state of an input digital point triggers the SOE event. The event trigger state is user
configurable. Available options are rising edge, falling edge, rising or falling edge (both), or time
change.
Note: The point connected to the TRIG input must be a digital point; it cannot be a bit of a
pack ed point.
The SOE Event Trigger point should not have the SOE point flag enabled in its definition. If the
SOE point flag is enabled, it uses one of the available 1,024 SOE point slots per Controller. These
slots are typically used for hardware SOE points only.
Although the system does not prevent it, you should not use the same digital point in more than
one SOFTSOE algorithm since this is a redundant configuration. It is also redundant to connect
hardware SOE points to SOFTSOE algorithms.
510 OW351_R1100
5.113 SOFTSOE
The time that is assigned to the SOE event can be one of the following:
Current system time at the time the associated digital point changes to the triggering state.
Optional external event time provided to the algorithm of which the user provides the format
(see External Time Formats).
U8 and U9 fields of deluxe records. This is useful for third-party links.
If you cannot guarantee that the change of trigger value and related external time value are
delivered to the algorithm at the same execution loop, the tunable parameters TMDLY and VDLY
can be used to set the maximum allowed delay between the trigger change and the external time
value change.
When a trigger value changes, but the time value does not change at the same execution loop,
the algorithm waits. The VDLY parameter specifies how long to wait for a change of time value. If
the time value changes within this time, an SOE event is generated with the new time value. If the
time value does not change before this time passes or before the trigger value changes once
more, the action taken depends on the NOTME parameter.
The NOTME parameter defines the action taken when a trigger value changes, but a relevant
change of external time value is not observed. Depending on this parameter, the algorithm can do
one of the following:
Send no SOE events.
Send an SOE event with the current system time.
Send an SOE event with the last received external time value.
Conversely, when the external time value changes, but the trigger value does not change at the
same execution cycle, the algorithm waits. The TMDLY parameter specifies how long to wait for a
change of triggering value. If the trigger value changes within this time, the SOE event is
immediately generated with the previously received time value. If the trigger value does not
change within this time, the algorithm waits for another change of time value before generating an
SOE event.
The TMCHG parameter tells whether the external time value changes every time the trigger value
changes or only when new SOE events are triggered. This information allows the algorithm to
associate changes of the external time value with proper changes of the trigger value.
The time change option is useful for external events (received from third-party systems) which do
not have an associated digital value, but only have the time when a particular event occurred. In
this configuration, the time used for tagging the events cannot be the current system time.
When the external time value is passed to the algorithm using two or more points, the algorithm
assumes that the entire time value changes whenever any of those points change. The algorithm
cannot detect when one of those points was already updated while the other still has the old
value. Therefore, if two or more points are used for the external time value, it should be
guaranteed that either both are delivered to the algorithm at the same time, or that both are
delivered before or at the same time as the triggering value.
OW351_R1100 511
5.113 SOFTSOE
The events stored in the internal buffer are sent to SOE in subsequent algorithm executions, as
soon as there is enough space for them in the software SOE queue. However, the SOFTSOE
algorithm never sends more than three buffered messages in one execution cycle.
The Number of Pending Events (G0) field in the LC record indicates the number of events that are
currently stored in the internal buffer, pending to be sent to the SOE. This number does not
include possible messages already inserted in the queue, waiting to be processed by the SOE
subsystem.
If for some reason the algorithm internal event buffer becomes full before the pending events can
be transferred to the SOE, and there is no place in it for the newly generated event, the event is
lost and the algorithm sets the optional ERR output to true for one execution cycle.
You can use the optional ENBL input to control the operation of the algorithm. The algorithm only
generates SOE events when the ENBL input is true. If the ENBL input is not connected, the
algorithm will always be enabled and generate events.
As an option, the timestamp that is stored in the resulting SOE event can be input externally. You
select one of the available formats of the time values passed to the algorithm.
The timestamp in SOE messages is actually made of the seconds and nanoseconds fields, even
though SOE information is stored in the history with microsecond resolution.
This format presents the timestamp information in two parts -- seconds and microseconds.
Timestamp
512 OW351_R1100
5.113 SOFTSOE
Seconds
The "seconds" part is represented as the number of full seconds since January 1, 1970. You
cannot pass this value with one packed or analog point because it has a wider range than can be
precisely represented by those point types.
You can utilize either two packed (LP/DP) or analog (LA/DA) points or one packed digital (PD)
point for the "seconds" part. When using two packed points, the first contains Low Order Word
(bits 0 - 15) and the second contains High Order Word (bits 16 - 31) of the value.
I N P U T NAME FU N C TI O N
I N P U T NAME FU N C TI O N
Seconds = TSEC1
Microseconds
The "microseconds" part specifies the number of microseconds in the specified second when the
event occurred.
As with seconds, this value can either be passed to the SOFTSOE algorithm using two packed
(LP/DP) or analog (LA/DA) points or one packed digital (PD) point.
I N P U T NAME FU N C TI O N
OW351_R1100 513
5.113 SOFTSOE
I N P U T NAME FU N C TI O N
Microseconds = ETIM1
This format presents the timestamp information in two parts - seconds and milliseconds.
Timestamp
Seconds
The "seconds" part is represented as the number of full seconds since January 1, 1970.
You can utilize either two packed (LP/DP) or analog (LA/DA) points or one packed digital (PD)
point for the "seconds" part. When using two packed points, the first contains Low Order Word
(bits 0 - 15) and the second contains High Order Word (bits 16 - 31) of the value.
I N P U T NAME FU N C TI O N
I N P U T NAME FU N C TI O N
Seconds = TSEC1
514 OW351_R1100
5.113 SOFTSOE
Milliseconds
The "milliseconds" part specifies the number of milliseconds in the specified second when the
event occurred.
One packed (LP or DP) or packed digital (PD) point is used for the "milliseconds" part.
I N P U T NAME FU N C TI O N
Milliseconds = ETIM1
This format presents the timestamp information as a single value -- the total number of
milliseconds since the last full hour. A packed digital point is required.
The time provided to the algorithm is relative and can be definitely interpreted only within a
specified period of time. This puts several constraints on the mechanism of generating and
passing the time value to the algorithm:
It must be guaranteed that every timestamp is transferred from the third-party system to the
Ovation system and processed by the SOFTSOE algorithm in less than an hour from the
moment when it was generated. If a time value older than 59 minutes and 55 seconds is
received, it is interpreted incorrectly and an invalid timestamp is generated.
The source of time must be synchronized with the Ovation system. If a time value more than
four seconds in the future is received, it is interpreted incorrectly and an invalid timestamp is
generated.
This format should be avoided when an SOE event is triggered by a change of time value. If
two consecutive events are received by the algorithm with the exact one hour interval
between timestamps, the algorithm is unable to detect a change of time, and the SOE event
is not generated.
I N P U T NAME FU N C TI O N
Timestamp
OW351_R1100 515
5.113 SOFTSOE
Seconds
Milliseconds
This format presents the timestamp information as a single value - the total number of
milliseconds since the last full minute.
I N P U T NAME FU N C TI O N
Timestamp
516 OW351_R1100
5.113 SOFTSOE
Seconds
Milliseconds
This format is supported for Ovation deluxe records only. The Ovation deluxe records support the
U8 and U9 time scan fields. These fields are designed to hold seconds and nanoseconds
respectively. Third-party interfaces typically use these fields to store the time when the point was
processed.
This format also allows the U8 and U9 to be used for the SOE event timestamp.
Seconds = U8
Nanoseconds = U9
Event timestamp = Seconds [S] + Nanoseconds [nS]
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 517
5.113 SOFTSOE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
518 OW351_R1100
5.113 SOFTSOE
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 519
5.114 SPTOSA
5.11 4 SPTOSA
Description
The SPTOSA algorithm transfers a packed point record into an analog point record.
The packed digital value field is converted to a whole (real) number (for example, 4.0) and stored
in the analog point value field.
If Bit 15 is a zero, a positive number results. If Bit 15 is a one, a negative number results. The bit
pattern for each packed word produces a real number between -32767 and +32767. The method
for converting bit patterns into negative numbers is the sign and magnitude method.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
520 OW351_R1100
5.115 SQUAREFOOT
5.11 5 SQUAREFOOT
Description
The SQUAREROOT algorithm multiplies the analog input with an internal gain, adds a bias and
then takes the square root.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog track point. This algorithm takes the following action in response to the information
found in the analog input signal TRIN:
Bit description
BI T D E S C R I P TI O N AC TI O N TOUT S I G N AL
OW351_R1100 521
5.115 SQUAREFOOT
BI T D E S C R I P TI O N AC TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the
definitions given in Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored. Otherwise, the
value of the conditional track bit is transferred to all output track points. If the Conditional Track
bit is set in the track input point, the analog value of all output track points is calculated based on
the analog value of the track input point.
The high and low limit flags and the tracking signals from the algorithm are output to TOUT to be
used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT is
set to BAD. Otherwise, the quality of OUT is set to the quality of the input when not in tracking
mode. When tracking, the quality is set to the quality of the track input variable.
Note: If the algorithm generates an invalid track output value, the IN1 input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and IN1 input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
522 OW351_R1100
5.115 SQUAREFOOT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OW351_R1100 523
5.116 SSLT
5.11 6 SSLT
Description
SSLT calculates Entropy (S) of Saturated Liquid given its Temperature. It is one of the functions
of the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
524 OW351_R1100
5.117 STATISTICS
5.11 7 STATISTICS
Description
The STATISTICS algorithm performs running calculations of weighted arithmetic mean, variance
and standard deviation of sampled input, based on values from TW (Time Window). The TW
parameter is defined by the user. This algorithm also tracks input samples to determine their
minimal and maximal value from TW last time. Additionally a user can divide the time window into
a maximum of four regions and define weights for each region. Weights can be defined by a point
or as a static, non-negative real value. Values from a given partition are taken with the same
weight.
Functional Symbol
OW351_R1100 525
5.117 STATISTICS
UNIT — units of time. The user can select from one of five units:
0 = tenths of a second
1 = seconds
2 = minutes
3 = hours
4 = days
TW = UNIT x TIME
Because the time window can encompass a large number of input samples, it is divided into NUM
(up to 60) subregions. For each subregion, a set of DISTANCE subsequent input samples is
taken. Only valid samples without BAD quality are used. Each time the algorithm takes the next
set of DISTANCE subsequent input samples into a new subregion, it stores a number of
acceptable samples, their sum and the sum of their squares for this subregion. Those values are
then used to calculate outputs.
526 OW351_R1100
5.117 STATISTICS
The recommended length of time window is a multiple of p (control area time). The following
guidelines are recommended for best performance:
If NUM is smaller than 60, then the algorithm uses M last input values itself to calculate
outputs. Value of NUM is set to M. DISTANCE is set to 1.
If NUM is a multiple of 60, then the algorithm divides the time window into 60 subregions with
the same length (DISTANCE). For each sub region number of acceptable input values, the
sum and sum of squares is computed and then used to calculate outputs. The value of NUM
is set to 60, its maximal number. DISTANCE is set to M/60.
The following description illustrates how the algorithm calculates NUM parameter and
DISTANCE.
First, the algorithm calculates the number of all cycles (number of input samples) during the time
window:
where:
Next, the algorithm calculates the distance (number of input samples taken into each subregion):
where:
DISTANCE is rounded up
Based on the number of all cycles during time window and distance, the algorithm calculates the
number of subregions, as:
If the length of time window is not a multiple of p then bit 1 in the STAT output point is set to 1. In
this case, the length of time window is shorter than original settings.
OW351_R1100 527
5.117 STATISTICS
UNIT = seconds
TIME = 90
If the length of time window is a multiple of p but M is not a multiple of 60, then bit 0 in the STAT
output point is set to 1. In this case, the length of time window is not changed, but the last
subregion is smaller. Distance for the last shorter subregion is calculated as a remainder of
NUMBER_ALL_CYCLES / DISTANCE.
For further explanation, the following two examples are shown. The first example shows a
situation when the recommended conditions are followed. The second example shows a situation
when the recommended conditions are not followed.
528 OW351_R1100
5.117 STATISTICS
Example 1
UNIT = seconds
TIME = 300
For these settings, the time window is equal to 300 control cycles and NUM parameter (number of
subregion) is equal to 60 (maximal value).
OW351_R1100 529
5.117 STATISTICS
Example 2
This example represents a situation when the length of time window is not divided by 60 and the
recommended parameters are not followed. This situation can happen when a user sets
parameters that do not follow the recommendations. A second situation can happen when the
control time area changes (sheet is run in a different time area). The algorithm works correctly
with these parameters, but they are different from the recommended parameters.
UNIT = seconds
TIME = 303
530 OW351_R1100
5.117 STATISTICS
The following figure represents a distribution of sums in the time window using non-recommended
parameter conditions.
In this case, the number of subregions is reduced to NUM=51. This number makes a steady
distribution of subregions – number of input samples used to calculate each sum (except last) is
the same. Each sum is calculated from six input samples; however, the last sum only has three
input samples.
OW351_R1100 531
5.117 STATISTICS
Weights definition
The Time window can be divided into a maximum of four regions. The user defines ranges of
regions and weights.
Note: Ranges are defined in the same units as the time window. Weight value has to be a non-
negative real value.
Below is an example with definitions, ranges and weights (expanded Example 1).
Example 3
UNIT = seconds
TIME = 300
R1 =6
R2 = 150
R3 = 293
R4 = TIME = 300
For these settings, the time window is equal to 300 control cycles and the NUM parameter is
equal to 60.
532 OW351_R1100
5.117 STATISTICS
OW351_R1100 533
5.117 STATISTICS
In the case with weights, the algorithm must check membership to a region for each sum. The
algorithm calculates where the end for each region is supposed to be. Calculations are based on
the following equations:
UNIT = seconds
TIME = 300
PART1 = 6
PART2 = 150
PART3 = 293
NUM =60
534 OW351_R1100
5.117 STATISTICS
These results are shown in the Time Window with Weights figure.
Final output (if all samples are not BAD) is solved with the following equation:
OW351_R1100 535
5.117 STATISTICS
Qualities of MEAN, VAR, SDEV and ROC outputs are based on qualities for subregions.
If the weight signals are set to a negative real value, then the ROC, VAR, SDEV, and MEAN
outputs will be set to BAD quality.
If the weighted parameters are defined by the input pins, then the outputs will remain BAD
until the W1 through W4 input(s) are set to GOOD again.
If the weighted parameters are defined in the algorithm, then the algorithm will set the
negative value to zero, and the quality will be set to GOOD.
Qualities of MIN and MAX outputs are set to qualities of input samples with minimum and
maximum value during time window Tw. In addition, those qualities are set to BAD until the first
subregion is filled.
536 OW351_R1100
5.117 STATISTICS
Function
MEAN output
The STATISTICS algorithm calculates the weighted arithmetic mean of input samples.
If weights are equal to 1.0, then the algorithm calculates the standard mean of input samples.
Additionally, the algorithm calculates sample variance and standard deviation, which are defined
as the following (note that “NUM” is changed to “N”):
where:
OW351_R1100 537
5.117 STATISTICS
The algorithm cannot store all the values for the above equation. Therefore, the standard
deviation and variance are derived by the following equations:
Using the sum in each region, the equation can be written as follows:
where:
538 OW351_R1100
5.117 STATISTICS
where:
where:
The outputs minimum value MIN and maximum value MAX are calculated at every loop, based on
stored min/max input values of samples from N last subregions. Qualities of t hese outputs are set
to qualities of samples with minimum value and maximum value.
ROC Output
The STATISTICS algorithm also calculates the rate of change of MEAN output value defined as:
where:
OW351_R1100 539
5.117 STATISTICS
Additional Information
During initial operation, the algorithm calculates outputs based on the configuration of “TOPT”
parameters. TOPT is defined as:
0 (yes) Mean value is equal to current input value (until buffer is full). STDV and VAR
are equal to 0.0. When the buffer is full, the algorithm starts working according
to the explanations listed in the examples above.
1 (no) Algorithm calculates MEAN, STDV and VAR values based on the samples as
they become available in the Time window.
Each change of the TIME parameter clears all stored data. STATE value is reset to 0.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
540 OW351_R1100
5.117 STATISTICS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 541
5.118 STEAMFLOW
5.11 8 STEAMFLOW
Description
If the output value is invalid, the quality of OUT is set to BAD. Otherwise, the quality of OUT is set
to the worst quality of the two inputs.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
542 OW351_R1100
5.118 STEAMFLOW
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
DELTAP:
FLOW:
OW351_R1100 543
5.119 STEAMTABLE
5.11 9 STEAMTABLE
Description
The STEAMTABLE algorithm calculates thermodynamic properties of water and steam. The
STEAMTABLE algorithm supports both English and SI engineering units. The inputs are checked
to determine if they are in range. If they are not, the output point is set to BAD, the last GOOD
value is retained, and the Flag output is set to TRUE. If more than one input is required, they are
also checked to determine if the combination of input is reasonable. If they are not reasonable,
the output point is set to BAD, the last GOOD value is retained, and t he Flag output is set to
TRUE. Otherwise, the quality of the OUT is set to the worst quality among the inputs.
Note: The steam tables are based on the 1967 American Society of Mechanical Engineers
(ASME) steam tables.
There are eleven individual symbols for the functions the STEAMTABLE algorithm performs. They
are as follows:
Region
RE G I O N CO N TR O L BU I L D E R RE Q U I R E D I N P U T O U TP U T
AL G O R I TH M S YMB O L
544 OW351_R1100
5.119 STEAMTABLE
RE G I O N CO N TR O L BU I L D E R RE Q U I R E D I N P U T O U TP U T
AL G O R I TH M S YMB O L
Saturated Vapor (SV) PSVS (see page 436) Entropy (IN1) Pressure (OUT)
HSTVSVP Pressure (IN1) Enthalpy (OUT)
(see page 297) Temperature (OUT1)
Atm. Pressure (IN2)
Entropy (OUT2)
Specific Volume
(OUT3)
The Control Builder Algorithm Symbol table provides a definition for each abbreviation used to
create the name for each STEAMTABLE function . They are as follows:
A B B R E V I ATI O N DE F I N I TI O N
CL Compressed Liquid
H Enthalpy
P Pressure
S Entropy
SL Saturated Liquid
SS Super Heated
SV Saturated Vapor
T Temperature
V Specific Volume
Functional Symbol
OW351_R1100 545
5.119 STEAMTABLE
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Engineering Units
N AME SI EN G L I S H
546 OW351_R1100
5.120 STEPTIME
5.12 0 STEPTIME
Description
The STEPTIME algorithm is an automatic step timer. For the STEPTIME algorithm, the output
(STEP) is an analog real value that always equals an integer from one through 50. The value
increments after a predetermined time delay, which may be different for each time interval. For
example, STEP may stay at 1 for 10 seconds, and then stay at 2 for five minutes. The time
intervals for each step are initialized integers in the algorithm record. The units of time to be used
for all the time intervals must be the same. The X1 field of the algorithm record should be
initialized to indicate which units are to be used according to the table. When all used steps are
completed, the output reverts to Step 1. Steps that have a time interval of zero are skipped.
Functional Symbol
The value of STEP is tracked to the value of the track input (TRIN) when the tracking request
(TMOD) is TRUE. If the algorithm is told to track a step that has a zero time interval, the value of
STEP is the next step after this step that has a non-zero time interval. If the algorithm is not
tracking (TMOD = FALSE), the current time and the current step are held constant when the hold
request (HOLD) is TRUE. The time remaining in the timing cycle for the current step is output as
hours (RHRS), minutes (RMIN), and seconds (RSEC) with resolution down to a tenth of a second.
The hours (EHRS), minutes (EMIN), and seconds (ESEC) with resolution down to a tenth of a
second of the time elapsed in the timing cycle for the current step are also available if the optional
outputs are initialized by the user.
OW351_R1100 547
5.120 STEPTIME
Rules
1. The outputs are not scan-removable, but may be set to certain values using the TMOD and
TRIN inputs to track the algorithm to a particular step.
2. The track input and output values are checked for invalid real numbers. If a track request is
received and the track input is invalid, the tracking request is ignored.
If the algorithm calculates an invalid real number for the output, the quality of the output is set
to BAD and the output value is invalid. Otherwise, the quality of the output is set to GOOD.
3. The algorithm is also reset to the first step if a drop failover occurs and the value of the
current step number is invalid. Otherwise, the algorithm remains in the current step.
4. Controller loop time must be set to 100, 200, 500, or 1,000 milliseconds.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
548 OW351_R1100
5.120 STEPTIME
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 549
5.120 STEPTIME
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
550 OW351_R1100
5.120 STEPTIME
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 551
5.121 SUM
5.12 1 SUM
Description
The output of the SUM algorithm is the sum of the four individually gained and biased inputs.
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog tracking point. Make sure to connect the upstream algorithm which needs tracking
to SUM’s IN1. This algorithm takes the following action in response to the information found in the
analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
552 OW351_R1100
5.121 SUM
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
** Only when the Track signal is not present; the signals are set according to the
definitions given in Setting Tracking Signals.
*** If the algorithm is being told to track, then the Conditional track bit is ignored.
Otherwise, the value of the conditional track bit is transferred to all ou tput track
points. If the Conditional Track bit is set in the track input point, the analog value of
all output track points is calculated based on the analog value of the track input point.
The high and low limit flags and the tracking signals from the algorithm are output to TOUT, to be
used for display and by an upstream algorithm. If the output value is invalid, the quality of OUT is
set to BAD. Otherwise, the quality of OUT is set to the worst quality of the two inputs when not in
tracking mode. When tracking, the quality is set to the quality of the track input variable.
Note: If the algorithm generates an invalid track output value, the IN1 input value is used as the
track output, unless it is invalid. The track output value is not updated if both t he calculated track
output and IN1 input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 553
5.121 SUM
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
554 OW351_R1100
5.121 SUM
Function
IN1GB = (IN1 x IN1 GAIN) + IN1 BIAS
IN2GB = (IN2 x IN2 GAIN) + IN2 BIAS
IN3GB = (IN3 x IN3 GAIN) + IN3 BIAS
IN4GB = (IN4 x IN4 GAIN) + IN4 BIAS
OUT = IN1GB + IN2GB + IN3GB + IN4GB
IF OUT >= TPSC THEN
OUT = TPSC
ELSE
IF OUT <= BTSC THEN
OUT = BTSC
OW351_R1100 555
5.122 SYSTEMTIME
5.12 2 SYSTEMTIME
Description
While the RUN flag is set, the SYSTEMTIME algorithm accesses the time from the Contoller’s
time (expressed in Universal Time Coordinates (UTC)) and stores it in the separate, optional,
analog outputs for seconds, minutes, hours, day, month, and year.
If the month value is zero (indicating that the time is not updated), or if the RUN flag is FALSE, the
optional Time Not Updated digital output is set.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
556 OW351_R1100
5.123 TANGENT
5.12 3 TANGENT
Description
The TANGENT algorithm performs a mathematical tangent function. TANGENT has one input
and one output analog point. Each time the algorithm is executed, if the output is on scan, it is set
to the TANGENT of the input. The input to this algorithm is in radians. If an input is only available
in degrees, multiply it by 0.01745329 to convert to radians. If the input is +/ - pi/2 or any integer
multiple of pi, plus pi/2, the output is an invalid number and the drop is placed into alarm.
Analog input values are checked for invalid real numbers. If the input value is invalid, the value of
the output is invalid and its quality is set to BAD. If the input is valid, the quality of the input is
propagated to the output.
If the absolute value of the input is greater than 10 18 then the output of the TANGENT algorithm is
invalid and its quality is set to BAD.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
OUT=TANGENT(IN1)
OW351_R1100 557
5.124 TIMECHANGE
5.12 4 TIMECHANGE
Description
The TIMECHANGE algorithm checks the Controller’s time (expressed in Universal Time
Coordinates (UTC)) against the old values of the time. If the hours, minutes, or seconds have
changed, the appropriate output digital flags are set; otherwise, they are reset. Each output
produces a one loop, one shot pulse when hours, minutes, or seconds change from a previous
value.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
558 OW351_R1100
5.125 TIMEDETECT
5.12 5 TIMEDETECT
Description
The TIMEDETECT algorithm checks the hour value from the Controller’s time (expressed in
Universal Time Coordinates (UTC)) against the old hour value for a change. If the hour has
changed, the current hour and day of the week are checked against the hour for the change of
day, the hours for the change of shift, and the day and hour for the change of week. The flags are
reset if the hour has not changed. If a change has occurred for the day, shift, or week, the digital
output for that change is TRUE for one loop.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E P T.
FI E L D RE C .
Note: SHF1 must be initialized. If SHF2 and SHF3 are not initialized or are initialized to zero, the SHFT is
not updated. If WEEK is not initialized or is initialized to zero, WCHG is not updated. DCHG is always
updated.
OW351_R1100 559
5.126 TIMEMON
5.12 6 TIMEMON
Description
If the RUN flag is set, the TIMEMON algorithm provides the following functions:
If the Controller Date/Time is between the Date 1/Time 1 and Date 2/Time 2 tuning constants,
the optional digital output flag, FLG1 is set TRUE.
When the Date 2/Time 2 tuning constants are zero, FLG1 is pulsed when the Controller
Date/Time is equal to Date 1/Time 1.
The MON, DAY, DWK fields of the tuning constants are ignored if zero; therefore, the tuning
constants can represent time-into-year, time-into-month, time-into-week, or time-into-day. (For
example: if HR1 is set to 15.0 and no other FLG1 tuning constants are specified, FLG1 is
pulsed every day at 3:00 p.m.)
The optional digital output FLG2 is set when the Controller time equals the Start Time tuning
constants, and at every following incremental boundary in the day, as specified by the
Incremental Time tuning constants.
For example: if SHR = 15, SMIN = 30, IMIN = 1, and ISEC = 30, FLG2 is pulsed at 3:30 p.m.
and at each following 90-sec interval until 23:59:59.
Functional Symbol
Note: The Incremental Time constant should be at least three times the Loop time for the FLG2
output to be seen as a pulse.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
560 OW351_R1100
5.126 TIMEMON
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 561
5.126 TIMEMON
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
562 OW351_R1100
5.127 TRANSFER
5.12 7 TRANSFER
Description
The TRANSFER algorithm performs a transfer between two inputs. The output is equal to the IN2
input if the digital input FLAG is TRUE, and to the IN1 input if the digital input FLAG is FALSE.
If the algorithm generates an invalid output value for the selected input, the other input is
selected, and the algorithm generates a valid output value if the input for the other point is valid.
The algorithm automatically performs a bumpless transfer between the track input and the
selected input when a tracking request is removed. The algorithm ramps to the selected input
(IN1 or IN2) at the specified track ramp rate TRRx (TRR1 or TRR2).
Internal tracking may be selected to allow a bumpless transfer between IN1 and the IN2 inputs.
Individual track ramp rates may be initialized to ramp from the IN1 to the IN2 and from the IN2 to
the IN1.
The Output Direction Forcing (ODF) option forces a change in the direction of an output value in
the transition state. When the ODF option is ON, the output value changes monotonically (strictly
increasing or decreasing the function between ordered sets that preserves the given order)
towards the value of the selected input. If the ODF option is OFF, the output value changes
towards the value of the selected input; however, this may not always be monotonically.
Differences in the algorithm behavior depend on the direction of changes of the selected input.
Refer to the following two examples of ODF:
Example 1
The following example presents a scenario when the transfer algorithm behavior is same
regardless of whether ODF = ON or ODF = OFF.
Properties
P R O P E R TI E S DE S C R I P TI O N
OW351_R1100 563
5.127 TRANSFER
The following figure shows that the Transfer algorithm behavior is same regardless of whether
ODF = ON or ODF = OFF.
Figure 21: Transfer algorithm behavior is same for ODF = ON and ODF = OFF
Example 2
The following example presents a scenario when the Transfer algorithm behavior is different
when the ODF = ON or ODF = OFF.
Properties
P R O P E R TI E S D E S C R I P TI O N
Parameters ODF = ON
SLEW = ON
TRRx = 1.0 (TRR1 = 1.0 and TRR2 = 1.0)
564 OW351_R1100
5.127 TRANSFER
P R O P E R TI E S D E S C R I P TI O N
Results when ODF = OFF Output value (green line) decreases with TRRx ramp rate when the
selected signal (blue line) is constant.
When the selected value decreases, the output value changes with ramp
rate equal to RAMP_OF_SELECTED_SIGNAL + TRRx. This means that
the output changes with the speed equal to the speed of change of the
selected signal and TRR1 parameter.
Results when ODF = ON Output (green line) moves towards the selected signal (blue line) with the
ramp rate is equal to TRRx in both cases: when the selected value is
constant and also when selected value decreases.
The ramp rate equals to RAMP_OF_SELECTED_SIGNAL + TRRx only
when the value of the selected signal and the value of the output are
moving in the same direction. One of the following situations is possible:
The output is transferring from a lower to a higher value and the selected
value is increasing.
The output is transferring from a higher to a lower value and the selected
value is decreasing.
The following figure shows the Transfer algorithm behavior when ODF = OFF (default settings).
Figure 22: Transfer algorithm behavior when for ODF = OFF (default settings)
OW351_R1100 565
5.127 TRANSFER
The following figure shows that the Transfer algorithm behavior when ODF = ON.
The rules are analogical (this means that the algorithm behavior is very similar; however, not
identical) for transfer from a higher to a lower value and from a lower to a higher value.
566 OW351_R1100
5.127 TRANSFER
Summary
When the ODF parameter is OFF (default value), the output value changes with ramp rate
equal to RAMP_OF_SELECTED_S IGNAL + TRRx.
When the ODF parameter is ON, the output value changes with ramp rate equal to
RAMP_OF_SELECTED_SIGNA L + TRRx only, when the value of the selected signal and
value of the output are going in the same direction (Example 1). Otherwise (Example 2), the
output value is changing with ramp rate equal to TRRx.
Note: If the algorithm receives an invalid value as the selected input, or calculates an invalid
value as the output, the drop is placed into alarm.
Functional Symbol
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog point. This algorithm takes the following action in response to the information found
in the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N TRK1 S I G N AL TRK2 S I G N AL
OW351_R1100 567
5.127 TRANSFER
BI T DE S C R I P TI O N TRK1 S I G N AL TRK2 S I G N AL
** Only when the Track signal is not present; the signals are set according to the definitions given in
Setting Tracking Signals (see page 15).
*** If the algorithm is being told to track, then the Conditional track bit is ignored. Otherwise, the value of
the conditional track bit is transferred to all output track points. If the Conditional Track bit is set in the
track input point, the analog value of all output track points is calculated based on the analog value of the
track input point.
The high and low limit flags, and the tracking signals from the algorithm are output to, TRK1 and
TRK2, to be used for display and by upstream algorithms. If the output value is invalid, the quality
of OUT is set to BAD. Otherwise, the quality of OUT is set to the quality of the selected input.
When tracking, the quality is set to the quality of the track input variable.
Note: If the calculated track output is invalid, then the IN2 output is equal to the IN2 inputs, and
the IN1 track output is equal to the IN1 variable input, if the inputs are valid. If the calculated
track outputs and the input values are invalid, then the IN2 and IN1 track outputs are not
updated.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
568 OW351_R1100
5.127 TRANSFER
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 569
5.127 TRANSFER
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
Function
570 OW351_R1100
5.128 TRANSLATOR
5.12 8 TRANSLATOR
Description
The TRANSLATOR algorithm translates the output based on the input of a predefined table. For
the TRANSLATOR algorithm, the input value (IN1) is first rounded to an integer value. This
integer is then used as an index number to access one of the 50 integers initialized in the
algorithm record. The selected integer from the algorithm record is output as a real number in the
output record (OUT). If the input value (always rounds down to an integer) is less than one or
greater than 50, no action is taken and OUT is not changed.
If the input value selects an integer between 1 and 50 that has not been initialized, then OUT
equals zero. The maximum integer number that can be initialized for I01 through I50 is + 32,767.
If the input value (when rounded to an integer) is less than 1 or greater than 50, or if the input
value is invalid, no action is taken, and OUT is not changed. However, if the input value is invalid,
the quality of OUT is set to BAD.
Functional Symbol
OW351_R1100 571
5.128 TRANSLATOR
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
572 OW351_R1100
5.128 TRANSLATOR
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 573
5.128 TRANSLATOR
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
574 OW351_R1100
5.129 TRANSPORT
5.12 9 TRANSPORT
Description
The TRANSPORT algorithm samples the analog input point and outputs the sample value with a
time delay. The sampling time (TSAM) and the number of samples (NSAM) control the delay
(DELAY = TSAM x NSAM). If TSAM is less than the loop time of TRANSPORT, TSAM equals the
loop time. The output is zero until the number of samples have been collected. Additional
TRANSPORT algorithms can be strung together in series to obtain longer delay times, if required.
NSAM is continually limited to a range of 1 through 25. If NSAM is negative or zero, then NSAM
goes to 1. If NSAM is greater than 25, NSAM goes to 25.
The value of the analog input (IN1) is checked for invalid real numbers. If the input value is
invalid, the output value is invalid and the quality of the output is set to BAD. Otherwise, the
quality of the output is set to GOOD.
Functional Symbol
IN1
~ OR
IN1 ~ OUT
OUT
Algorithm Record Type = LC
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 575
5.129 TRANSPORT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
576 OW351_R1100
5.130 TRNSFINDX
5.13 0 TRNSFINDX
Description
The TRNSFINDX algorithm selects the output analog value from up to 64 outputs which hold the
input IN1. The number of outputs is determined by NMIN which must be less than or equal to 64.
The output selected is based on the index which is the second analog input (IN2). If the index is
less than or equal to 0, or if an index greater than NMIN is selected, the input is not stored.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 577
5.131 TRUTHTB L
5.13 1 TRUTHTBL
Description
This digital output of TRUTHTB L is selected from one of 256 possible digital values. The 16
integer values (field B0 through C5) contain the 256 possible digital output states; each bit in an
integer represents a possible digital output (where: 0 = FALSE and 1 = TRUE). The output
selected is based on a binary address formed by eight digital inputs. The integer binary address
values may be input as hexadecimal numbers. Refer to "Converting Algorithm Binary to
Hexadecimal" (see page 6) for information on how to create a hexadecimal number from 16 bits.
The inputs are optional; therefore, any input that is not specified is assumed to have a value of
zero (FALSE). The input binary address may range from zero to 255. The letter "A" represents Bit
0 in the address and the letter "H" represents Bit 7 in the address. For example, if the input binary
address is 36 (C and F are TRUE), the digital output would be based on the value of Bit 4 (the
fifth bit) in the third integer.
Symbol
Note: The size of the algorithm symbol varies as required to enclose the logic symbols being
executed by this algorithm.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
578 OW351_R1100
5.131 TRUTHTB L
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 579
5.131 TRUTHTB L
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Application Example
TRUTHTB L is a general purpose, logic algorithm. The output represents a Boolean equation of up
to eight inputs. In general, TRUTHTBL condenses discrete logic elements (for example, AND,
OR, NOT, XOR, NAND, or NOR) into one algorithm call. The logic statement of the output is
stated as a Boolean equation and then translated into the proper tuning constants. This
translation can be done manually.
580 OW351_R1100
5.131 TRUTHTB L
The following figure shows how the tuning contents can be manually derived.
OW351_R1100 581
5.132 TSLH
5.13 2 TSLH
Description
TSLH calculates Temperature for Saturated Liquid given its Enthalpy (H). It is one of the functions
of the STEAMTABLE (see page 544) algorithm.
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
582 OW351_R1100
5.133 TSLP
5.13 3 TSLP
Description
TSLP calculates Saturation Temperature of Saturated Liquid given its Pressure. It is one of the
functions of the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
OW351_R1100 583
5.134 UNPACK16
5.13 4 UNPACK16
Description
The UNPACK16 algorithm specifies up to 16 optional, packed digital values in the A2 record field
of a packed LP point record as optional outputs of this algorithm. These outputs may be initial ized
as any combination of LD and DD records. The bit in the A2 record field that corresponds to the
output digital point number is moved to the output digital point record.
Note: The UNPACK16 algorithm only tak es LP and DP record types as inputs.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
584 OW351_R1100
5.134 UNPACK16
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 585
5.135 VCLTP
5.13 5 VCLTP
Description
VCLTP calculates Specific Volume of Compressed Liquid given its Temperature and Pressure. It
is one of the functions of the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
586 OW351_R1100
5.136 VSLT
5.13 6 VSLT
Description
VSLT calculates Specific Volume of Saturated Liquid given its Temperature. It is one of the
functions of the STEAMTABLE algorithm (see page 544).
Functional Symbol
The following table represents the lower and upper limits of valid values for the algorithm.
However, the calculated output values may be invalid even though the input values are valid.
P AR AME T E R P R O P E R TY L O W V AL U E HI G H V AL U E
OW351_R1100 587
5.137 XOR
5.13 7 XOR
Description
The XOR algorithm performs a mathematical exclusive OR function. For the XOR algorithm, the
output is the logical, exclusive “OR” of the two inputs (that is, if one input is TRUE and the other
input is FALSE, the output is TRUE; otherwise, the output is FALSE).
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Function
IF IN1 = IN2
THEN OUT = FALSE
ELSE
OUT = TRUE
588 OW351_R1100
5.138 X3STEP
5.13 8 X3STEP
Description
The X3STEP algorithm controls devices that must be kept within a certain tolerance and tuned by
an operator. The algorithm receives the Input demand (IN1) and the position feedback (IN2) of a
device (both are defined within a range of 0-100%). The difference (Error = IN11 - IN2), along with
other user-entered configuration parameters determine how the algorithm attempts to position the
equipment so that the error is zero.
The algorithm moves the equipment by energizing two digital outputs (DIG1 and DIG2)
associated with the device. The digital outputs may be energized in one of three ways (thus, the
algorithm's name X3STEP) to move the device to the demanded position:
Maintained steadily ON.
Pulsed (coarse-pulsed and fine pulsed) ON and OFF.
Maintained steadily OFF.
Functional Symbol
The action of each digital output depends on the value of the error, and the user-entered
parameters: ON1, COR1, FNE1, ON2, COR2, and FNE2.
The parameters ON1, COR1, and FNE1, affect DIG1 when the error is above zero. The
parameters ON2, COR2, and FNE2, affect DIG2 when the error is below zero. The bar graph
below shows the relationship of the parameters with respect to the error.
OW351_R1100 589
5.138 X3STEP
where:
FO R DIG2 FO R DIG1
ON2 = If the error is below or equal to ON2, the ON1 = If the error is above or equal to ON1 the
digital output DIG2 is maintained ON. digital output DIG1 is maintained ON.
COR2 = If the error is below or equal to COR2, the COR1 = If the error is above or equal to COR1,
digital output DIG2 is coarse pulsed. the digital output DIG1 is coarse pulsed.
FNE2 = If the error is below or equal to FNE2, the FNE1= If the error is above or equal to FNE1, the
digital output DIG2 is fine pulsed. If the error is digital output DIG1 is fine pulsed. If the error is
below zero, but above FNE2, DIG2 is maintained above zero, but below FNE1, DIG1 is maintained
OFF. OFF.
Operation
-----------------------------------------------------------
-15 -12 -8 8 12 15
If the initial error is above or equal to 15, the digital output (DIG1) is set ON. DIG1 is maintained
ON until the error falls below 15. At this point, the DIG1 output begins and continues coarse
pulsing until the error is below 12. Once this occurs, the DIG1 output begins and continues fine
pulsing until the error is below 8. When this occurs, DIG1 is set OFF. Please note that the
converse of the above definitions are TRUE when the error is below 0.
In general, X3STEP turns off both its digital outputs when it detects errors in configuration or
operation. They remain OFF until the error conditions clear. Also, when errors occur on input IN2,
OUT is not updated but retains its last valid value.
The digital outputs are both set OFF (DIGI1 = 0 and DIGI2 = 0) under any of the following
conditions:
The IN1 input has BAD quality, is an invalid real number, or is not being updated across the
Ovation network.
The IN2 input has BAD quality, is an invalid real number, or is not being updated across the
Ovation network.
The digital input DEVO (Operational Status of Device) is set indicating that there is a problem
with the device.
The error is zero or below FNE1 for DIG1. The error is zero or above FNE2 for DIG2.
An on time span of 0 or less is invalid. This invalid configuration is reported by setting t he
quality of OUT to BAD and setting bit 3 of its 1W field. This error is reported at runtime.
590 OW351_R1100
5.138 X3STEP
The algorithm has been incorrectly configured by setting ON1, COR1, FNE1, or ON2, COR2,
and FNE2 all to zero. This invalid configuration is reported by setting the quality of OUT to
BAD and bit 3 of its 1W field. This error is reported at runtime. The outputs are set to 0 for one
execution loop under any of the following conditions:
The Controller is reset (hardware or software reset).
A failover occurs.
The algorithm is modified and downloaded.
Tracking Signals
This algorithm ignores the TRIN tracking signals. During first pass after a reset, or failover, and
anytime the DEVO digital is TRUE, Bit 16 of TOUT is set TRUE causing the upstream algorithm
to track OUT. Bit 16 of TOUT is set FALSE at all other times.
Bits 20 and 31 of TOUT are set ON when the IN2 value reaches 100 percent or greater. This
indicates the algorithm has reached the High Limit and requests the upstream algorithm to inhibit
raising the output.
Bits 19 and 30 of TOUT are set ON when the IN2 value reaches 0 percent or less. This indicates
that the algorithm has reached the Low Limit and requests the upstream algorithm to inhibit
lowering the output. All other bits (17-18 and 21-29) of TOUT are not used.
The TOUT value output is set equal to OUT and its quality is always set to GOOD.
Algorithm Configurations
To maintain the digital outputs ON at all times when the error is not zero, the settings
presented in the following tables are required:
Example for DIG1 is ON all time, coarse and fine pulsing is eliminated
ON 0.1 0 0 0.00001
OW351_R1100 591
5.138 X3STEP
Example for DIG2 is ON all time, coarse and fine pulsing is eliminated
ON -0.1 0 0 -0.00001
To eliminate coarse pulsing of a digital the settings presented below in the tables are
required.
If the error is initially above ON1 (or below ON2), the digital remains ON until the error falls below
ON1 (or above ON2). When this occurs and COR1 (or COR2) equals zero, coarse pulsing is
ignored and fine pulsing begins. Fine pulsing continues until the error falls below FNE1
(or above FNE2). At this point the digital is maintained OFF.
ON 11 2 0 10
Fine pulsing 5 2 0 10
OFF 1 2 0 10
592 OW351_R1100
5.138 X3STEP
ON -11 -2 0 -10
Fine pulsing -5 -2 0 -10
OFF -1 -2 0 -10
To eliminate fine pulsing of a digital the settings presented below in the tables are required.
If the error is initially above ON1 (or below ON2), the digital remains ON until the error falls below
ON1 (or above ON2). At this point, coarse pulsing begins and is maintained until the error falls
below COR1 (or above COR2). When this occurs and FNE1 (or FNE2) equals zero, fine pulsing is
ignored and the digital is maintained OFF.
ON 11 0 2 10
Coarse pulsing 5 0 2 10
OFF 1 0 2 10
OW351_R1100 593
5.138 X3STEP
ON -11 0 -2 -10
To eliminate maintaining the digital outputs ON steady when the error is not zero, the settings
presented below in the tables are required.
Assumes a non-zero value for COR1, COR2, FNE1, or FNE2. If the error is initially above COR1
(or below COR2), the digital is pulsed coarsely until the error falls below COR1 (or above COR2).
When this occurs, fine pulsing begins and continues until the error falls below FNE1 (or above
FNE2). At this point the digital is maintained OFF.
Coarse pulsing 11 2 5 0
Fine pulsing 3 2 5 0
OFF 1 2 5 0
594 OW351_R1100
5.138 X3STEP
Fine pulsing -3 -2 -5 0
OFF -1 -2 -5 0
The ON and OFF times for the coarse and fine pulses are determined from the user-entered
off-time and on-time span tuning fields.
OUT is assigned the value of IN2, where IN2 is the position feedback of device defined and
should be defined in range 0-100 percent.
If IN2 is less than zero, OUT is assigned a value of zero. If IN2 is greater than 100, OUT
is assigned a value of 100. Otherwise, OUT is assigned the value of IN2.
If IN2 has BAD quality, or is an invalid real number, OUT retains its last valid value and its
quality is set to BAD.
The quality of OUT and its 1W field report algorithm error conditions are described below:
Quality
OUT Q U AL I T Y 1 W BI T S E T DE S C R I P TI O N
Tuning Constants
For proper operation, ON2 < COR2 and COR1 < ON1, if any of ON2, COR2, COR1 and ON2
have non-zero values. The algorithm does not check for this invalid configuration and
algorithm results may be improper for the wrong configuration.
For proper operation, COR2 < FNE2 and FNE1 < COR1, if any of COR2, FNE2, FNE1 and
COR1 have non-zero values. The algorithm does not check for this invalid configuration and
algorithm results may be improper for the wrong configuration.
Set CTM1, CTM2, FTM1, FTM2 (time spans for pulsing) in multiples of the control task’s loop
time.
If CTM1, CTM2, FTM1, and FTM2 and the accompanying ON and OFF times that are less
than one loop time, the algorithm assumes those times are equal to one loop time.
OW351_R1100 595
5.138 X3STEP
Algorithm Definitions
N AME LC T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N M I N I MU M
AL G O R I TH M O P TI O N AL V AL U E POI N T
RE C O R D RE C O R D
FI E L D
596 OW351_R1100
5.138 X3STEP
N AME LC T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N M I N I MU M
AL G O R I TH M O P TI O N AL V AL U E POI N T
RE C O R D RE C O R D
FI E L D
OW351_R1100 597
5.138 X3STEP
N AME LC T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N M I N I MU M
AL G O R I TH M O P TI O N AL V AL U E POI N T
RE C O R D RE C O R D
FI E L D
598 OW351_R1100
5.139 2XSELECT
5.13 9 2XSELECT
Description
The 2XSELECT algorithm monitors two analog transmitter inputs for quality and deviation from
each other. The output is either one of the two input values; the higher value, the lower value, or
the average of the two values, depending on the mode selected. You select the mode through the
use of the TMOD and MODE tracking inputs, the Operator’s Keyboard function keys, or the
Control Builder.
Functional Symbol
The Control Indicator Word is used to specify which of the Average, Lower and Higher modes are
inhibited, and the type of quality of the input that sets the Quality Alarm for that point. The
Average, Lower, and Higher modes cannot be selected if they are inhibit ed by the Control
Indicator Word, or when either of the transmitters is in Quality Alarm, or when the deviation
between the two transmitter values is greater than the Control Deviation Deadband tuning
constant (CNDB).
The Transmitter A mode cannot be selected when Transmitter A is in Quality Alarm and
Transmitter B is not in Quality Alarm. The algorithm goes to Transmitter A mode when both
transmitters are in Quality Alarm, or when Transmitter B is in Quality Alarm. The Transmitter B
mode cannot be selected when Transmitter B is in Quality Alarm. The algorithm goes to
Transmitter B mode when Transmitter A is in Quality Alarm and Transmitter B is not in Quality
Alarm.
OW351_R1100 599
5.139 2XSELECT
On the first pass of the algorithm, if the Tracking Input (MODE) is initialized by the user, the mode
is set according to the rounded value of the tracking input as follows:
Mode
M O D E V AL U E M O D E S E L E C TE D
1 Average
2 Lower
3 Higher
4 Transmitter A
5 Transmitter B
If the rounded value of the tracking input is not 1 through 5, or if the trac king input was not
initialized, the mode is set to Average mode. If the mode selected on the first pass is inhibited, or
if it is blocked by a Quality Alarm or a Deviation Alarm, as described above, the mode is set to the
next lowest priority mode (where the Average mode has the highest priority and Transmitter B
mode has the lowest priority) until a mode is selected that is not inhibited or blocked. If both
transmitters are in Quality Alarm, the output of the algorithm latches onto the last good value and
the mode is set to the Transmitter A mode.
If the Tracking Mode Request digital input (TMOD) is initialized, the mode is set according to the
rounded value of the tracking input and the above table when the Tracking Mode Request signal
is TRUE and there are no Quality Alarms. The mode remains unchanged if the rounded value of
the tracking input is not 1 through 5 when the Tracking Mode Request signal is TRUE.
You may select a different mode by using the function keys on the Operator’s Keyboard when the
Tracking Mode Request signal is FALSE. The value of the analog output (OUT) is according to
the mode of the algorithm:
Mode
MOD E O U TP U T V AL U E
The Transmitter Deviation Alarm digital output (XDEV) is set TRUE when the deviation between
the two transmitter values is greater than the Alarm Deviation Deadband tuning constant (ALDB),
or when one or both transmitters contain invalid real numbers.
The Transmitter A Quality Alarm digital output (XABQ) is set TRUE when the quality of the
Transmitter A analog input goes BAD or NOT GOOD, depending on the Quality Alarm Type flag.
The Transmitter B Quality Alarm digital output (XBBQ) is set TRUE when the quality of the
Transmitter B analog input point goes BAD or NOT GOOD, depending on the Quality Alarm Type
flag.
600 OW351_R1100
5.139 2XSELECT
The Transmitter Malfunction Alarm digital output (XALM) is set TRUE when there is a Quality
Alarm on either of the two signals, when one or both input points contain invalid values, or when
the deviation between the two transmitter values is greater than the Control Deviation Deadband
tuning constant (CNDB).
The Manual Reject digital output (MRE) is set TRUE when both transmitters are in Quality Alarm,
or when the deviation between the two transmitter values is greater than the Control Deviation
Deadband tuning constant (CNDB). The P3 function key on the Operator’s Keyboard toggles the
inhibiting of the deviation check. For example, by pressing the P3 function key on the Operator’s
Keyboard, the Manual Reject output is only set TRUE when both transmitters are in Quality
Alarm. Then, by pressing the P3 function key again, the Manual Reject output is set TRUE when
both transmitters are in Quality Alarm or when the deviation is too large.
The packed digital output signal (PBPT) contains the Quality Alarms for both transmitt ers, the
Manual Reject output, the Transmitter Malfunction Alarm, the Tracking Request signal, the mode
of the algorithm, and the state of the Inhibit Control Deviation Alarm Check for the MRE digital
output feature.
The HOLD parameter holds the output value and quality for a desired number of loops when a
manual reject occurs.
Note: The information in the pack ed digital output signal is also stored in the B7 field of the
algorithm record.
2XSELECT ramps at the user-entered rate (specified in Units/Sec. via the RATE template
parameter) during mode changes. If no entry is made in the RATE parameter or a value of 0
is entered, 2XSELECT changes its output value to the new value during mode changes.
2XSELECT returns from a deviation (XDEV) condition (that is, when the absolute difference
between the XA and XB inputs is greater than the ALDB parameter) only when absolute
difference between the XA and XB inputs return to a value which is less than or equal to
Alarm Limit Deadband (ALDB) minus DBND. If no entry is made in the DBND parameter or a
value of 0 is entered, 2XSELECT returns from an XDEV condition.
2XSELECT returns from a CNDB condition (that is, when the absolute difference between the
XA and XB inputs is greater than the CNDB parameter) only when absolute difference
between the XA and XB inputs return to a value which is less than or equal to CNDB minus
DBND. If no entry is made in the DBND parameter or a value of 0 is entered, 2XSELECT
returns from a CNDB condition.
Function keys
FU N C TI O N KE Y US E
OW351_R1100 601
5.139 2XSELECT
FU N C TI O N KE Y US E
The transmitter input values to the algorithm are checked for invalid real numbers. If a transmitter
contains an invalid value, its Quality Alarm digital output is set TRUE.
If both transmitters are in Quality Alarm, or contain invalid values, the value of the algorithm
output (OUT) quality is set to BAD.
If the algorithm calculates an invalid real number for the output, the quality of the output is set to
BAD and the output value is invalid.
INSEL parameter
The INSEL parameter determines which inputs of the 2XSELECT algorithm are being used to
calculate the output. The Signal Diagram application displays green circles around the active pins.
If none of the pins are selected, then nothing will display. You can also view this information via
the Process Diagram System graphics as well. Refer to Ovation Operator Station User Guide for
more information on the Signal Diagrams application and the Proc ess Diagram System graphics.
The 2XSELECT algorithm activates individual bits in the Y0 field depending on the conditions in
the description field. If a signal is active, that signal is being used in the output calculation.
602 OW351_R1100
5.139 2XSELECT
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
1 - Lower Selection
(0 = Not allowed
1 = Allowed)
2 - Higher Selection
(0 = Not allowed
1 = Allowed)
3 - Quality Alarm
Type
(0 = BAD Quality
Alarm
1 = NOT GOOD
Quality Alarm)
ALDB R1-Real Tuning Required 0.0 Alarm Deviation —
Constant Deadband.
OW351_R1100 603
5.139 2XSELECT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
604 OW351_R1100
5.139 2XSELECT
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 605
SECTION 6
6 Q-Line algorithms
IN THIS SECTION
OW351_R1100 607
6.1 What are Q-Line algorithms?
Q-Line algorithms are algorithms that are used specifically with Q-Line I/O hardware in an Ovation
system. These algorithms are the only Q-Line algorithms supported in Ovation. They can be
added to an Ovation control sheet by the Ovation Control Builder and then used in your Ovation
control scheme.
The Q-Line algorithms are listed below, The reference pages for Q-Line algorithms use the same
format as the standard Ovation algorithm reference pages (see page 46).
PVSPSLI (see page 609) - Writes the functional processor-defined process variable (PVAR)
and/or set point (STPT) values to the Q-Line Loop Interface (QLI) for display at the Loop
Interface Module (LIM).
PWDIN (see page 612) - Converts a digital pulse to an analog value proportional to the width
of the pulse.
QLIPASS (see page 614) - Changes the default station (or loop) number and password
number for up to 12 QLI cards
QPACMD (see page 619) - Writes a command byte to a QPA card.
QPACMPAR (see page 625) - Writes a comparator value to a QPA card.
QPASTAT (see page 626) - Outputs the digital status from a QPA card.
QSDDEMAND (see page 627) - Writes demand and mode to a QSD card.
QSDMODE (see page 629) - Indicates QSD mode.
QSRMA (see page 630) - Interface manual/auto station to a QSR card.
QVP (see page 636) - Interface to a QVP card.
XFLOW (see page 639) - Calculates a pressure-and-temperature-compensated mass or
volumetric flow for ideal gases.
XMA2 (see page 645) - Interface between a soft manual/auto station and a QAM, QAA, or
QLI card and the functional processor.
XML2 (see page 656) - Soft and/or hard manual loader station with an interface to the QAM
or QLI card setpoint.
XPIDSLI (see page 661) - PID controller with supervisory set point and QLI or QLJ card
interface.
608 OW351_R1100
6.2 PVSPSLI
6.2 PVSPSLI
Description
The PVSPSLI algorithm writes the functional processor-defined process variable (PVAR) and/or
set point (STPT) values to the Q-Line Loop Interface (QLI) for display at the Loop Interface
Module (LIM). These analog inputs must be of type AC or greater so that the top of bar, bottom of
bar, and engineering units fields may be used to initialize the c onfiguration data sections of the
QLI card for the process variable and set point values. The top of bar and bottom of bar fields
from each input are also used to scale the values to be written to the card.
Symbol
You specify which values are written to the QLI card by initializing the bits in the configuration
byte parameter (INIT). This information and the appropriate values are written to the QLI card. If
the algorithm is initialized to perform the special functional processor-defined process variable for
the QLI card, do not use an XFLOW algorithm configured to interface to the same QLI card, and
do not configure the QLI card as a massflow card-type. Also, if the algorithm is initialized to
perform the special functional processor-defined set point for the QLI card, do not use the
XPIDSLI algorithm to interface to the same QLI card.
If this algorithm is initialized to write the functional processor-defined set point to the QLI card,
then the QLI no longer raises or lowers the set point value in response to raise/lower requests
from the LIM. If you desire to have raise and lower set point requests from the LIM, and XML
algorithm, configured to interface to the same QLI card, must be used. Refer to t he description of
the XML2 algorithm (see page 656).
Bit 10 is set in the second status word of the digital output (STAT) for one loop whenever the
process variable (flow configuration) or the set point configuration data sections are reconfigured.
This does not affect the quality of the digital point (that is, the quality is not set BAD when the QLI
is reconfigured).
OW351_R1100 609
6.2 PVSPSLI
The digital output point is set TRUE and the quality of the digital output is BAD if invalid values or
any hardware errors are detected when either the process variable or the set point information is
written to the QLI card. The following hardware errors are reported in the second status word of
the digital output (STAT):
Bit description
BI T DE S C R I P TI O N
The process variable (PVAR) and set point (STPT) inputs are checked for invalid real numbers.
The QLI Card retains its last valid value if the point chosen to be written to the QLI card contains
an invalid value.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
610 OW351_R1100
6.2 PVSPSLI
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 611
6.3 PWDIN
6.3 PWDIN
Description
The PWDIN algorithm converts a digital pulse to an analog value proportional to the width of the
pulse. A QSE Card is used to time tag a digital signal’s transition from FALSE to TRUE and then
from TRUE to FALSE. The time difference between these two events is the pulse width, which
may vary from a minimum of 5 msec to a maximum of 65 sec. The pulse width is then multiplied
by a scaling factor to obtain the output analog value. (The output analog value is always zero,
except in the loop where the TRUE to FALSE transition occurs. In this loop, the width is
calculated and its value is output.)
Note: The PWDIN algorithm must run in a 300 millisecond or faster task area.
Functional Symbol
The digital outputs of the algorithm are used to reflect the current state of their corresponding
digital signals on the QSE Card.
The second status word of each digital output indicates error conditions; Bit 0 is set when an
invalid QSE Card hardware address is used, while Bit 2 is set when the QSE Card is bad.
Bit 2 of the second status word of an analog output is set when an event is missed for that point.
Note: The use of PWDIN for a particular QSE card precludes the use of any of the points in this
card for SOE purposes. The remaining bit positions on this QSE Card may be used as regular,
digital inputs (DI records).
612 OW351_R1100
6.3 PWDIN
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 613
6.3 PWDIN
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
614 OW351_R1100
6.4 QLIPASS
6.4 QLIPASS
Description
The QLIPASS algorithm changes the default station (or loop) number and password number for
up to 12 QLI cards. It is used under two conditions:
If there is more than one Q-Line Loop Interface (QLI) card per Loop Interface Module (LIM),
this algorithm is needed to assign a particular station (or loop) number to a QLI card. This
station (or loop) number is selected at the LIM to display values from the specified QLI c ard.
If tuning of the PID gain, reset time, derivative gain and rate parameters from the LIM is
desired, a password must be set up. The valid range for passwords is 0 through OFFFFH, or
0 through 65,535 (although LIM tuning will be locked out for passwords exceeding 9999
decimal).
Functional Symbol
The value of the STAT output variable is TRUE if an invalid hardware address, a write verification
error, or a QLI configuration error is detected for any QLI specified. If no errors are detected in
any QLI’s, the value of STAT is FALSE.
The second status word of the STAT output variable contains the group status of up to 12 QLI
cards. Up to four bits can be set by any of 12 QLI cards as follows:
Bit description
BI T DE S C R I P TI O N
0 Invalid hardware address; specified address is out of range (2<= QLI address <= 3F0H)
1 Write verification error that can be caused by:
No power in QLI
No QLI card at specified address
An unsuccessful QLI configuration attempt
OW351_R1100 615
6.4 QLIPASS
BI T DE S C R I P TI O N
3 QLI configuration error caused by two consecutive configuration updates. This cou ld be
caused by another algorithm having the same QLI address, where both algorithms are
trying to reconfigure the same section on the QLI card.
10 Configuration update this loop.
The first 12 bits of the PNTS packed group, output record represent the s tatus of the 12 possible
QLI cards. For a bit not scan-removed, that bit will be set for any of the following conditions:
Rules
1. When assigning station numbers, the final (maximum) station number should be specified as
a negative number. For example, if there are nine stations assigned to one LIM, the ninth
station should be added to the template as - 9. This will signal the LIM to loop from Station 1
through Station 9, and back to Station 1.
2. When adding an additional QLI loop to a LIM (thereby, increasing the last station number
used), it is necessary to recycle power on the LIM and select the new final loop at the LIM.
This enables the LIM to sequence from Station 1 through the new station number, and back to
Station 1.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
616 OW351_R1100
6.4 QLIPASS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 617
6.4 QLIPASS
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
618 OW351_R1100
6.5 QPACMD
6.5 QPACMD
Description
QPACMD writes a command byte to the QPA Card. The command byte may be written to a
particular QPA Card or to many cards through a group write address. The group write address
must be between 0x1F8 and 0x1FF. If the GADR parameter is initialized, the group write address
is used; otherwise, the hardware address from the IN1 record is used.
The bits in the command byte are set or reset according to the data initialization parameters
FRZ0, STR0, RST0, FRZ1, STR1, and RST1. If the command byte is to be written to a particular
card and a parameter is zero, the corresponding bit in the command byte remains unchanged
from its present value. When writing to the group write address, each bit must be set or reset and
both counters on all the cards with that group write address are affected. The digital input signal
(RUN) must be TRUE for the algorithm to execute.
Note: If QPASTAT is used in conjunction with QPACMD, mak e sure that QPASTAT runs before
QPACMD. Otherwise, the flag CMPF in QPASTAT clears prematurely.
Functional Symbol
Algorithm Definitions
N AME LC T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
AL G . O P TI O N AL V AL U E P T.
RE C . RE C .
FI E L D
OW351_R1100 619
6.5 QPACMD
N AME LC T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
AL G . O P TI O N AL V AL U E P T.
RE C . RE C .
FI E L D
620 OW351_R1100
6.5 QPACMD
Application Example
Three algorithms can access the QPA card: QPACMD, QPASTAT, and QPACMPAR. This is one
example of how to use the QPACMD command (see QPACMPAR (see page 625) for another
example).
In this example, a QPA card is used to count a pulsed input. The input is a count of contact
closures from a megawatt meter. The number of megawatts per pulse is accounted for in the
coefficients that are calculated as part of the point record.
Be careful when selecting hardware addresses for QPA cards. They require four consecutive
addresses each, even though there are only two inputs for each card. The extra two addresses
are used for control and status word transfer. In this example, the QPA card is located in the first
slot of Q-crate 1 in a Controller (where: half-shell = A1 and card hardware address = 0x80).
In this example, the input for Counter 1 (IN1) is assigned analog point EW1. This is the second
card input. Counter 0 uses the first card input.
IN1 must be initialized as an analog input point in the Controller. The following is an example of
such a point (EW1).
Field value
FI E L D V AL U E
RT LA
EU ‘MWH’
ED ‘MWH To PHOSIE- ACBNO1’
CV 1
IV 0.6
2V 0.0
Other points needed by algorithms used in this example are added to the database.
Point
P O I N T NAME T YP E FR E Q U E N C Y
HOUR LD 1.0
PMIN LD 1.0
SECND LD 1.0
EW1R LA 1.0
EW1TOT LA 1.0
DX1PASS LD 1.0
OW351_R1100 621
6.5 QPACMD
EW1 may have non-zero values for parameters such as TOPBAR, BOTBAR, and LIMITS, as
desired, just as any other analog input point.
In this example, if one pulse from a megawatt meter equals 10 kilowatt hours, in order to make
EW1 equivalent to megawatt hours, a conversion coefficient must be used on the point.
This means that if there were three pulses per minute in an one hour period, the coefficient would
calculate a value as follows:
Alternate Example
An alternate method of converting pulse counts into megawatts per hour is to leave the CI and CV
record fields blank so that the value of EW1 represents the actual pulse count from the QPA card.
A gain could be used in the RESETSUM algorithm to calculate megawatts per hour.
The following application is used to control the QPA card in this example.
Example
A L G O R I TH M AL G O R I TH M P AR AM E TE R S P O I N T /V AL U E S
SCHG SECND
MCHG PMIN
QPACMD (111) IN1 EW1
FRZ0 0
RST0 0
STR0 0
FRZ1 0
RST1 0
STR1 1
RUN DX1PASS
QPACMD (112) IN1 EW1
FRZ0 0
RST0 0
STR0 0
FRZ1 2
RST1 0
STR1 0
RUN PMIN
622 OW351_R1100
6.5 QPACMD
A L G O R I TH M AL G O R I TH M P AR AM E TE R S P O I N T /V AL U E S
FRZ0 0
RST0 0
STR0 0
FRZ1 1
RST1 1
STR1 0
RUN PMIN
RESETSUM (115) IN1 EW1
FFLG HOUR
RSET HOUR
RUN PMIN
RCNT 0.0
GAIN 1.0
OUT EW1R
FOUT EW1T0T
1. Algorithm 110 (TIMECHANGE) generates PMIN and HOUR, which are flags denoting a
change in minutes and hours, respectively. These flags are used by the QPACMD and
RESETSUM algorithms. HOUR, PMIN, and SECND must be initialized as digital points.
2. Algorithm 111 (QPACMD) sends the control command START to Counter 1 (STR1 = 1) of the
QPA card when the digital input DX1PASS point is set. DX1PASS is a point from some
control scheme, which is set to 1 only during the first pass through t he application. Therefore,
the QPA starts collecting pulse counts upon start-up, after a hardware reset, or Controller
failover.
3. The algorithm pair of 112 and 113 reads the data from QPA Counter 1 (IN1 = EW1). There
are two counters working within the QPA card. One is an actual counter linked directly with
the pulse input, which is always accumulating data unless reset. The other counter is Counter
1, which reads data from the actual counter upon command.
4. Algorithm 112 unfreezes (FRZ = 2) Counter 1 so that the values in Counter 1 reflect the data
in the actual counter. Algorithm 113 then freezes (FRZ = 1) the value stored in Counter 1 and
resets the actual counter to zero before accumulating more pulse data. Only the reset
operation (RST1 = 1) affects the actual QPA count. The freeze/unfreeze operation only
causes the current value to be placed on the DIOB or removed from the DIOB.
OW351_R1100 623
6.5 QPACMD
These four algorithms (110, 111, 112, and 113) only run when the digital flag PMIN is true. PMIN
may be generated any number of ways, but in this application, PMIN is set as an output flag from
the TIMECHANGE algorithm every minute. By holding the QPA Counter 1 value frozen for one
minute, a valid QPA reading is present on the DIOB during the entire one-minute period, allowing
other algorithms to access the data.
RESETSUM (115) totals the values read from the QPA over a period of time. The values are
summed, based on the state of the flags PMIN and HOUR. In this example, EW1R contains the
number of megawatts accumulated every minute for an hour. Output EW1TOT is an hourly total
of megawatts generated and is triggered by HOUR. The value of EW1R is stored into EW1TOT
on the hour and EW1R is reset to zero, ready to accumulate the next hour’s information.
The commands START, STOP, FREEZE, and UNFREEZE may be hard-wired in the field if the
availability of the QPA count is to be controlled by hardware rather than software.
624 OW351_R1100
6.6 QPACMPAR
6.6 QPACMPAR
Description
QPACMPAR writes a comparator value (VALU) to a comparator register on a QPA Card at the
hardware address found in the counter input (IN1). If IN1 has a linear conversion (to normalize its
current value), the input VALUE is denormalized before it is written to the QPA Card as the
comparator value. If the conversion on IN1 is not linear, the value of VALU is assumed to have
been already denormalized. The denormalized value of VALU is high and low limited between
zero and 32767 so that it can be properly written to the QPA Card. The digital input signal (RUN)
must be TRUE for the algorithm to execute.
The new value (VALU) to be written to the QPA card is checked for invalid real numbers. If the
new value is invalid, it is not written to the QPA card, and a “Hardware Error” is reported in the
second status work (2W record field) of the analog input CNTR.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Application Example
This example describes one method of using the QPACMPAR, QPASTAT, and QPACMD
algorithms together to access the data stored on the QPA card.
1. Use QPACMPAR to write a comparator value to the QPA card. This value is stored in a QPA
hardware register (VALU). When the value stored in IN1 equals the value stored in VALU, the
QPA card automatically sets the CMPF flag (a bit in the status register).
2. Use QPASTAT to read the status flags: CMPF, RUNF, and FRZ1. If CMPF is set, use
QPACMD to reset the QPA CNTR.
CAUTION! If both counters on the QPA card are being used, reading the status of one
Counter with QPASTAT clears the other Counter’s CMPF flag if that flag was set.
OW351_R1100 625
6.7 QPASTAT
6.7 QPASTAT
Description
QPASTAT reads the status byte from a QPA card at the hardware address found in the counter
input (IN1). The hardware address is checked to determine which counter on the card is used.
The corresponding status flags are checked and output as digital records.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
626 OW351_R1100
6.8 QSDDEMAND
6.8 QSDDEMAND
Description
The QSDDEMAND algorithm controls the servo driver card (QSD) demand signal and controls
the operation mode (Auto, Manual) of the QSD card. It also services the watchdog timer by
setting the keep alive bit upon each call.
The algorithm places the QSD in automatic if the auto request input (AREQ) is TRUE, the ready
bit read from the QSD card has been TRUE for the specified amount of time (RDY), and the card
in place bit read from the QSD is TRUE.
The algorithm rejects the QSD to local manual if the local manual request input (LREQ) is TRUE,
if the card in place bit from the QSD is FALSE, or if the demand output to the QSD does not equal
the value read back.
The algorithm sets the sensor alarm bits if either the card in place bit is not set or the demand
read back from the QSD card does not equal the demand written to the card.
Note: The OUT point must contain the hardware address for the QSD card.
Functional Symbol
OW351_R1100 627
6.8 QSDDEMAND
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
628 OW351_R1100
6.9 QSDMODE
6.9 QSDMODE
Description
The QSDMODE algorithm reads the mode in which the QSD card is operating. The output is
TRUE if the QSD card is in Auto Mode. The algorithm also checks the card in place bit and if it is
not set, the sensor alarm bit is set.
Note: The IN1 point must contain the hardware address for the QSD card.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 629
6.10 QSRMA
6.10 QSRMA
Description
The QSRMA algorithm interfaces the manual/auto station to a QSR card. The QSRMA algorithm
writes a demand and shutdown option to one channel on the QSR card. The algorithm also
outputs status information for the channel such as the card is okay or shutdown is active.
Functional Symbol
Auto Mode
The output equals the gained and biased input plus the bias bar value (OUT = (IN1 x IN1G) +
IN1B + BIAS) except:
When the algorithm is told to track, the output equals the track input when the tracking signal
is present. The output ramps from the track input back to the gained and biased input when
the tracking signal is removed.
When a raise inhibit or lower inhibit signal is present, it may prevent the output from following
the input.
The bias bar value is output as an analog value and may be raised or lowered by the
Increase/Decrease set point keys on the Control Panel or Operator’s Keyboard. This value is only
added to the output value in Auto mode; it has no effect on the output (but still may be raised or
lowered) in Manual or Local mode.
The output value is written to the demand register to a channel on the QSR card.
The Increase/Decrease Output keys on the Operator’s Keyboard have no effect in this mode.
Manual Mode
The output is raised or lowered by using the Increase/Decrease Output requests. The raise inhibit
and lower inhibit signals override the Operator’s Keyboard Increase/Decrease Output requests.
The tracking signal causes the output to equal the track input, regardless of the raise/lower inhibit
signals and the Increase/Decrease Output key requests. The bias bar value has no effect on the
output, but still may be raised and lowered.
The output value is written to the demand register to a channel on the QSR card.
630 OW351_R1100
6.10 QSRMA
Local Mode
If the QSR card has any hardware error, then the algorithm stays in Local Mode.
Mode Transfers
The algorithm transfers between the Auto, Manual, and Local modes as follows:
The digital reject signal rejects the algorithm from Auto to Manual mode or from Auto to Local
mode (when the Manual Inhibit feature is ON).
The Auto Request and Manual Request signals from the AUTO and MAN mode request keys
on the Control Panel or Operator’s Keyboard switches the algorithm to the desired mode if it
is not in Local mode.
If the QSR has hardware errors, the algorithm rejects to Local mode.
If the Quality Reject (REJQ) feature is OFF, then the quality check is not performed on the
input when in Auto mode. If the algorithm is in Auto mode and the quality of the input goes
BAD or not GOOD depending on the Quality Reject flag, then the algorithm rejects to Manual
mode as long as the Manual inhibit feature is OFF. If the Manual inhibit feature is on, the
algorithm rejects to Local mode.
Regardless of the REJQ parameter, the input value is checked for an invalid value when the
algorithm is in Auto mode. If the algorithm is in Auto mode and the value of the input becomes
invalid, the algorithm rejects to Manual mode, providing the Manual Inhibit feature is OFF. If
the Manual Inhibit feature is ON, the algorithm rejects to Local mode if the QSR is selected. If
the algorithm is not in Auto mode and the operator tries to select Auto mode when the input
value is invalid, the algorithm remains in the same mode and does not reject to Manual mode.
The track input value is also checked for invalid real numbers when the algorithm is being told
to track. While in Auto mode, if the algorithm is told to track and the track input value is
invalid, the algorithm rejects to Manual mode, providing the Manual Inhibit feature is OFF. In
all modes, the track request is ignored when the track input value is invalid.
On reset/power-up, the algorithm is in Local mode if a QSR interface is, then the algorithm
goes to the mode initialized by the Firstpass mode (FP) parameter unless that mode is
blocked by the Manual Inhibit feature.
Note: The Manual Inhibit feature prevents the algorithm from entering Manual mode when it is
on.
The interface keys of the Control Panel and Operator’s Keyboard are:
Key usage
KE Y US E
OW351_R1100 631
6.10 QSRMA
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog point. This algorithm takes the action shown in the following table in response to the
information found in the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
The high and low limit flags, the mode and the tracking signals from the algorithm are output to
TOUT, to be used for display and by an upstream algorithm. The configuration of the use of this
algorithm must be specified by the user for correct implementation of the tracking features. The
following hardware related errors are set in the second status word of the analog output record
and cause the analog output to have BAD quality:
Bit description
BI T D E S C R I P TI O N
2 BAD hardware status. The Data Valid and Card OK bits on the QSR card.
If an invalid hardware address or BAD hardware status error caused the algorithm to reject to
Local, the quality remains BAD on the output and the algorithm remains in Local mode until the
error is cleared.
632 OW351_R1100
6.10 QSRMA
If there are no hardware errors, the quality of OUT is set to the quality of the track input variable
when tracking. Otherwise, the quality of OUT is GOOD when in Manual mode or set to the quality
of the input when in Auto mode.
If the algorithm calculates an invalid real number for the output in Auto mode, the quality of OUT
is set to BAD, the OUT value is invalid, and the drop is placed into alarm.
Note: If the algorithm generates an invalid track output value, the input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and input values are invalid.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 633
6.10 QSRMA
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
634 OW351_R1100
6.10 QSRMA
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 635
6.11 QVP
6.11 QVP
Description
The QVP algorithm provides an interface to the Controller for communicating to the QVP card.
The algorithm provides set point position information as well as providing a calibration interface to
the QVP card. (See QVP Servo Controller User Guide.)
Normal Mode
The QVP algorithm provides an interface between the Ovation system and a QVP card. It allows
you to input two digital command words to the QVP and receive two digital status words in return.
Also, you may input and output analog utility points (one in, one out) for use in conjunction with
the command/status words. Optionally, you may output the internal working set point of the QVP.
Primarily, the algorithm’s function is to provide communication between a QVP card and the
Ovation system. However, it also stores certain card information and may be called upon to
configure a card as detailed below.
When you initiate a request to change some of the QVP working values (gain, reset, and so forth),
this algorithm intercepts the value and wait for the QVP’s response to the user. If the operation
was successful, the algorithm stores that information in the algorithm record. At next QVP startup,
if you have set a QVP jumper (JS6) for “configure from controller,” the algorithm sends all
configuration information currently stored.
At the end of a QVP calibration sequence, if the card was calibrated properly, the card sets a bit
in the second status word indicating that the calibration is done. If the algorithm sees this bit set, it
queries the card for all calibration data and store this information in the algorithm record. Again, at
card startup, the algorithm attempts to send this information to the QVP if the jumper has been set
to warrant this operation.
The algorithm also signals an error if it or the user has attempted to send a command to the card
and no response has been given.
The special test mode has the system set point input from the SPIN analog point and the valve
position output to the VPOT analog point. This way, all functions may be tested without the need
for adding any other algorithms. In order to execute the special test mode, valid point names must
be entered for the optional SPIN and VPOT entry fields in the algorithm template, the algorithm
must be made tunable, and the U1 tuning constant must be set to 356.0 through a tuning
diagram.
636 OW351_R1100
6.11 QVP
Registers
Each QVP card uses eight registers and each QVP algorithm interfaces to one QVP card. With
each scan of the Controller, the algorithm writes the appropriate value to a register and waits for a
response. If there is no response, it sets an error bit in the status word for that card. The QVP
responds by putting a response value into the same register, which is read and processed by the
algorithm. QVP registers are defined below:
Registers
QVP Hardware Address Set Point in (real, 1st word) Position out (real, 1st word)
QVP Hardware Address + 1 Set Point in (real, 2nd word) Position out (real, 2nd word)
QVP Hardware Address + 2 Dummy input word 1 Digital status word 1
QVP Hardware Address + 3 Dummy input word 2 Digital status word 2
QVP Hardware Address + 4 Digital input word 1 Set point out (real, 1st word)
QVP Hardware Address + 5 Digital input word 2 Set point out (real, 2nd word)
QVP Hardware Address + 6 Analog utility input point (real, Analog utility output point
1st word) (real, 1st word)
QVP Hardware Address + 7 Analog utility input point (real, Analog utility output point
2nd word) (real, 2nd word)
Functional Symbol
OW351_R1100 637
6.11 QVP
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
638 OW351_R1100
6.12 XFLOW
6.12 XFLOW
Description
where:
P1 = PACT + ABSPRES
P2 = PREF + ABSPRES
T1 = TACT + ABSTEMP
T2 = TREF + ABSTEMP
The algorithm can be operated with or without a Q-Line Loop Interface (QLI) card. If interfacing to
a QLI card, the inputs should be read from the QLI card by using the AIN algorithm and specifying
a QLI card type.
When operating with a QLI interface, the QLI card should be configured for mass flow operation.
This is specified through the card-type jumpers on the QLI card. A QLI hardware address of zero
indicates no QLI card interface.
The SCALE TOP and SCALE BOT parameters are used to limit the output value of the algorithm.
If the QLI hardware address is not zero, the QLI configuration data for the flow section is written
onto the QLI card. If the switch on the QLI card is not in Ignore EEPROM position, the
configuration data is saved in EEPROM on the QLI card. The top of bar, bottom of bar and the
first four characters of the engineering units parameters for the output are used for the
configuration data.
You must initialize these parameters to be displayed at the Loop Interface Module (LIM).
If the QLI hardware address is not zero, then Bit 10 is set in the second status word of the output
record for one loop whenever the QLI card is reconfigured. This does not affect the quality of the
output record (that is, the output quality is not set BAD when the QLI card is reconfigured).
OW351_R1100 639
6.12 XFLOW
Functional Symbol
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third st atus word
of the analog track point. This algorithm takes the following action in response to the information
found in the digital input signal TRIN:
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
640 OW351_R1100
6.12 XFLOW
The high and low limit flags are output TOUT to be used for display.
If the QLI hardware address is not zero, the following hardware related errors are set in the
second status word of the analog output record and cause the analog output to have BAD quality:
BI T DE S C R I P TI O N
0 Invalid hardware address. The user specified a hardware address outside the legal range of
0 to 3FCH.
1 Write verification error. The algorithm tried to reconfigure the flow section of the QLI card,
was unable to do so.
3 QLI configuration error. The algorithm tried to reconfigure the QLI card for two consecutive
loops. This could be caused by another algorithm having the same QLI address, where both
algorithms are trying to reconfigure the same section on the QLI card.
The output will have bad quality if any QLI hardware-related errors are detected. If this is not the
case, the worst quality of the analog inputs specified is assigned to the quality of the output.
Algorithm Definitions
N AME LC AL G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 641
6.12 XFLOW
N AME LC AL G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
642 OW351_R1100
6.12 XFLOW
N AME LC AL G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
Function
THEN
P1 = P2 = 1
ELSE
P1 = PACT + ABSPRES
THEN
T1 = T2 = 1
ELSE
T1 = TACT + ABSTEM P
OW351_R1100 643
6.12 XFLOW
IF MASSFLOW THEN
OUTVAL = 0
ELSE
ELSE
OUTVAL = 0
ELSE
OUTPUT = 0
ELSE
where:
P1, P2, T1, T2, OUTVAL = local, temporary, real variables
ABSPRES, ABSTEMP = constraints from the pressure and temperature conversion
tables built into the algorithm
644 OW351_R1100
6.13 XMA2
6.13 XMA2
Description
The XMA2 algorithm interfaces a CRT-based soft manual/auto station and an optional QAM,
QAA, QVP, QLI, or QLJ card with the functional processor.
Functional Symbol
If QLI is set in TYPE and the Controller is reset, powered-up or fails, the output is read from the
QLI or QLJ card and used initially in the OUT field of the algorithm. This reports the status of the
field device before any action is taken by either the algorithm or the operator.
Note: The TPSC and BTSC parameters are used to limit the output value of t he algorithm.
These values must always be 100% and 0%, respectively when a SLIM interfaces to a QLI or
QLJ card.
OW351_R1100 645
6.13 XMA2
Auto Mode
The output equals the gained and biased input plus the bias bar value (OUT= (IN1 x IN1G) +
IN1G + IN1B) except:
When the algorithm is told to track, the output equals the track input when the tracking signal
is present. The output ramps from the track input back to the gained and biased input when
the tracking signal is removed.
When a raise inhibit or lower inhibit signal is present, it may prevent the output from following
the input.
The bias bar value is output as an analog value and may be raised or lowered by the
Increase/Decrease set point keys on the Operator’s Keyboard. This value is only added to the
output value in Auto mode; it has no effect on the output (but still may be raised or lowered) in
Manual or Local mode.
If a QAM or QAA interface is selected, the output value is written to the demand counter on the
QAM or QAA card. A digital signal may be written to a QBO card as an optional indication of the
Auto mode by using the ALITE point. This point has the hardware address for the QBO card.
The Increase/Decrease Output keys on the Operator’s Keyboard have no effect in this mode.
Manual Mode
The output is raised or lowered by using the Increase/Decrease Output requests. The raise inhibit
and lower inhibit signals override the Operator’s Keyboard Increase/Decrease Output requests.
The tracking signal causes the output to equal the track input, regardless of the raise/lower inhibi t
signals and the Increase/Decrease Output key requests. The bias bar value has no effect on the
output, but still may be raised and lowered.
If a QAM or QAA interface is selected, the output value is written to the demand counter on the
QAM or QAA card. A digital signal may be written to a QBO card output as an optional indication
of the Manual mode by using the MLITE point.
The output value may also be raised or lowered from the small Loop Interface Module (SLIM) in
this mode.
Local Mode
This mode is only available if a QAM, QAA, QVP, QLI, or QLJ type interface has been selected.
The Increase/Decrease commands from the Operator Interface Module (OIM) directly control the
QAM or QAA card, which is in Manual. The Increase/Decrease commands from the SLIM directly
control the QLI card, which is in Local mode. The algorithm either reads the demand counter on
the QAM or QLI, or the position feedback value on the QAA and causes its output to track the
card’s value. In this tracking mode, all directional commands inside the functional processor (for
example, Variable Input, Raise Inhibit and Lower Inhibit) and directional commands from the
Operator’s station (for example, Increase, Decrease) have no effect on the algorithm.
The QAM card can be optionally put in Auto (Computer) mode when the algorithm receives either
a Manual or Auto mode request from the Operator’s Keyboard. This Auto request is output as a
signal to a QBO card by using the REQ Point.
646 OW351_R1100
6.13 XMA2
Mode Transfers
The algorithm transfers between the Auto, Manual, and Local modes as follows:
The digital reject signal rejects the algorithm from Auto to Manual mode or from Auto to Local
mode when the Manual Inhibit feature is ON.
The Auto Request and Manual Request signals from the AUTO and MAN mode request keys
on the Operator’s Keyboard switch the algorithm to the desired mode if it is not in Local mode
(or if the REQ point has been initialized for a QAM card).
If the QAM or QAA interface is selected, the OIM can reject the algorithm to Local mode. The
COMP (computer) pushbutton at the OIM causes the algorithm to enter a previously selected
mode.
If the QAM or QAA interface is selected and there are hardware errors, the algorithm rejects
to Local mode if the NO FAIL feature if OFF. If the QAM interface is selected and the NO
FAIL feature is on, then the algorithm remains in the previous mode and continues to function
normally. The quality of OUTPUT is set to BAD when there are any QAM or QAA hardware
errors.
If the QLI or QLJ interface is selected, the SLIM can switch the algorithm between Auto,
Manual, and Local modes.
If the QLI or QLJ interface is selected, and if there are hardware errors, the algorithm rejects
to Local mode. If the card determines that there is a SLIM communications error while it is in
Local mode, it rejects the card to Manual mode. The algorithm also goes to Manual mode.
If the Quality Reject (REJQ) feature is OFF, then the quality check is not performed on the
input when in Auto mode. If the algorithm is in Auto mode and the quality of the cascade input
goes BAD or not GOOD depending on the Quality Reject flag, then the algorithm rejects to
Manual mode as long as the Manual inhibit feature is OFF. If the Manual inhibit feature is on,
the algorithm rejects to Local mode.
Regardless of the REJQ parameter, the input value is checked for an invalid value when the
algorithm is in Auto mode. If the algorithm is in Auto mode and the value of the input becomes
invalid, the algorithm rejects to Manual mode, providing the Manual Inhibit feature is OFF. If
the Manual Inhibit feature is ON, the algorithm rejects to Local mode if the QAM, QAA, QLI or
QLJ interface is selected. If the algorithm is not in Auto mode and the operator tries to select
Auto mode when the input value is invalid, the algorithm remains in the same mode and does
not reject to Manual mode.
The track input value is also checked for invalid real numbers when the algorithm is being told
to track. While in Auto mode, if the algorithm is told to track and the track input value is
invalid, the algorithm rejects to Manual mode, providing the Manual Inhibit feature is OFF. In
all modes, the track request is ignored when the track input value is invalid.
On reset/power-up, the algorithm is in Local mode if a QAM, QAA, QLI or QLJ interface is
selected. If a soft interface is selected, then the algorithm goes to the mode initialized by the
Firstpass mode (FP) parameter unless that mode is blocked by the Manual Inhibit feature.
Note: The Manual Inhibit feature prevents the algorithm from entering Manual mode when it is
on.
OW351_R1100 647
6.13 XMA2
Key usage
KE Y US E
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog track point. This algorithm takes the action shown in the following table in response
to the information found in the input signal TRIN:
Bit description
BI T DE S C R I P TI O N A C TI O N TOUT S I G N AL
648 OW351_R1100
6.13 XMA2
The high and low limit flags, the mode and the tracking signals from the algorithm are output,
TOUT, to be used for display and by an upstream algorithm. The configuration of the use of this
algorithm must be specified by the user for correct implementation of the tracking features. If the
upstream algorithm is BALANCER, then the configuration must indicate that this algorithm is
being used with the BALANCER algorithm. Otherwise, the configuration is specified as NORMAL.
If the QAM, QAA, QLI, or QLJ interface is selected, the following hardware related errors are set
in the second status word of the analog output record and cause the analog output to have BAD
quality:
Bit description
BI T DE S C R I P TI O N
2 BAD hardware status. The Power and Card OK bits on the QLI or QLJ card were
not set.
If an invalid or BAD hardware status error caused the algorithm to reject to Local, the quality
remains BAD on the output and the algorithm remains in Local mode until the error is cleared.
The error bit in the second status word remains set in Local mode, even though the quality is
GOOD, which enables you to determine the cause of the reject.
If there are no hardware errors, the quality of OUT is set to the quality of the track input variable
when tracking. Otherwise, the quality of OUT is GOOD when in Manual mode or set to the quality
of the cascade input when in Auto mode.
If the algorithm calculates an invalid real number for the output in Auto mode, the quality of OUT
is set to BAD, the OUT value is invalid, and the drop is placed into alarm.
Note: If the algorithm generates an invalid track output value, the input value is used as the
track output, unless it is invalid. The track output value is not updated if both the calculated track
output and input values are invalid.
The TPSC and BTSC parameters are used to limit the output value of the algorithm. These values
must always be 100% and 0%, respectively, when interfacing to a QLI card which is connected to
an SLIM.
When the LI is configured as an electric drive card type, a difference between the actual position
and the demand value < FINE causes no raise or lower action to be taken. A difference in CRSE
causes fast raise or lower action to be taken. The slow rates specified by the ONOFF parameter
determines the raise or lower action taken when the difference is between FINE and CRSE.
Any output raise or lower request, from Operator station, are sent directly to the QLI configured as
an electric drive card type when it is in Failed Local mode. The QLI outputs any LIM raise or lower
requests for the output, then outputs any Controller raise or lower requests for the output to the
digital raise or lower outputs.
When the position feedback signal of a QLI configured as an electric drive card type fails, the QLI
goes to Failed Local mode and the value of output point is the feedback signal from the drive. The
output bar LIM display flashes between 0 and 100% to indicate the Failed Local mode.
The Reverse (Inverse) voltage configuration parameter on the QLI or QLJ card causes the output
voltage to be zero for an output value of 100%. The default for this configuration parameter is
Normal Voltage (that is, the output voltage is full voltage for an output of 100% and is zero volts
for an output of 0%).
OW351_R1100 649
6.13 XMA2
The options to have runbacks and/or interface to an electric drive on the QLI card must be
configured through the card-type jumpers on the QLI card.
CAUTION! When using the XMA2 algorithm with a BALANCER algorithm, follow these
guidelines.
For all XMA2s that immediately follow BALANCER, set XMA2’s CNFG parameter to
BALANCER.
For XMA2s that follow XMA2s in guideline 2, set CNFG parameter to NORMAL.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
650 OW351_R1100
6.13 XMA2
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 651
6.13 XMA2
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
652 OW351_R1100
6.13 XMA2
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 653
6.13 XMA2
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Note: 771=0303H)
654 OW351_R1100
6.13 XMA2
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 655
6.14 XML2
6.14 XML2
Description
The XML2 algorithm performs a manual loader function. The algorithm provides an interface to
the Operator’s soft station. Interfaces to the hard Operator Interface Module (OIM) station and set
point portion of the QAM, QLI or QLJ card may each be initialized. If the QAM, QLI or QLJ
hardware address is initialized, the algorithm reads the set point stored on the QAM, QLI or QLJ
set point counter to use as its output value. This counter may be incremented/decremented at any
time by external Increase/Decrease contacts from an OIM station which is wired directly to the
QAM, QLI or QLJ card. If the QAM, QLI or QLJ hardware address is not initialized, the algorithm
uses the last output value as its output value.
Functional Symbol
The output of this algorithm may be increased and/or decreased by the hard OIM station or the
Operator’s soft station. If the hardware addresses of the Increase and Decrease contacts from the
hard OIM station are initialized, then the algorithm monitors the contacts that it reads from the
QCI or QBI inputs (which are connected to the hard OIM station) for increase and/or decrease
requests for the set point.
This initialization is typically used when a QAA card is used in place of the QAM card and an OIM
set point adjustment feature is desired. It continually checks the Set Point Increase/Decrease
function keys from the Operator’s station for increase/decrease requests for the set point output. If
requests are received from both the hard and soft stations at the same time, the hard OIM station
contacts override the Operator’s Keyboard keys. On power-up or reset of the functional
processor, the output is the initial value of the algorithms output (default value = 0.0) if the QAM,
QLI or QLJ interface is not initialized. Otherwise, the output is the current value stored on the
QAM, QLI or QLJ set point counter.
656 OW351_R1100
6.14 XML2
If the QLI card is selected in the CARD algorithm field and the Controller is reset, powered-up or
fails, the set point is read from the QLI or QLJ card and used initially in the OUT field of the
algorithm. This reports the status of the field device before any action is taken by either the
algorithm or the operator. The interface keys of the Operator’s Keyboard are:
Key usage
KE Y US E
Note: If the top and bottom scales are equal, the high limit flag is set and the output value is
equal to the top scale.
If the algorithm is told to track and the track input is invalid, the track request is ignored and the
drop is placed into alarm.
If the QAM, QLI or QLJ hardware address is initialized, this value is written to the set point
counter on the specified card.
If the algorithm is operating with a QLI or QLJ interface and the QLI or QLJ card is in Local mode,
the output of the algorithm cannot be changed from the Operator’s station. In this case, the output
of the algorithm can be changed from the SLIM station only.
If a QLI or QLJ interface is selected and the QLI or QLJ hardware address is not zero, the default
configuration data for the set point section is written to the QLI or QLJ card. If the switch on the
QLI or QLJ card is not in the “Ignore EEPROM” position, the data is saved in EEPROM on the
QLI or QLJ card. The set point top of scale, bottom of scale and units parameters for the
configuration data are taken from the top of bar, bottom of bar, and the first four characters of the
engineering units fields in the output record. The output record must be modified by the user to
contain the correct engineering units that display at the SLIM. The top of bar and bottom of bar
fields in the output record are initialized to the SCALE TOP and SCALE BOT values by the
algorithm.
If XML2 is to write the set point value to the QLI or QLJ card, then changes to the set point value
(that is, tracking, Operator’s station raise/lower requests, etc.) are implemented as described
previously. The top of bar, bottom of bar and engineering units parameters of the out put point are
used to initialize the set point section of the configuration data on the QLI or QLJ card.
OW351_R1100 657
6.14 XML2
However, if the QLI or QLJ set point value is being written to the QLI or QLJ card by the PVSPSLI
algorithm, then the set point value for this algorithm is not read from the QLI or QLJ card, but is
determined by the last output value. Under these conditions, the XML2 algorithm monitors the QLI
or QLJ card for any raise and lower requests from the SLIM. Raise/lower requests from the SLIM
override any other set point change requests received by this algorithm (that is, tracking,
Operator’s station raise/lower requests, etc.). If there are no SLIM requests, then the set point
value is changed as described previously. The set point value is only written to the output point.
Neither the set point value nor the configuration data is written to the QLI or QLJ card under these
conditions.
If a card interface is specified, the following, hardware-related errors are set in the second status
word of the analog output record and cause the analog output to have BAD quality:
Bit description
BI T DE S C R I P TI O N
2 BAD hardware status. The Power and Card OK bits on the QLI or QLJ card were
not set or the Power and Alive Bits on the QAM card were not set.
658 OW351_R1100
6.14 XML2
Tracking Signals
Tracking and limiting are done through signals passed in the upper 16 bits of the third status word
of the analog point. This algorithm takes the action shown in the following table in response to the
information found in the input signal TRIN:
Bit description
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
The high and low limit flags are output to TOUT to be used for display. If the QAM, QLI or QLJ
hardware address is initialized, the quality of OUT is BAD if there are any QAM, QLI or QLJ
hardware errors. Otherwise, the quality of OUT is GOOD when not tracking or set to the quality of
the track input variable when tracking.
OW351_R1100 659
6.14 XML2
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
660 OW351_R1100
6.15 XPIDSLI
6.15 XPIDSLI
Description
The XPIDSLI algorithm combines the functions of a PID controller with a soft M/A station interface
on a calculated set point and a soft M/A station interface on the output with a Q-Line Loop
Interface (QLI) or Q-Line Loop Interface with Output Readback (QLJ) card interface. The
algorithm functions in Supervisory, Cascade, Auto, or Manual modes.
Note: You cannot operate this algorithm without a QLI or QLJ card interface.
Functional Symbol
Mode
XPIDSLI M O D E M O D E DI S P L AY E D AT LIM
Local Local
Manual Manual
Auto Auto
Cascade Cascade
Supervisory Cascade
In the event of reset, power-up, or failover, both the set point and output values are read from the
card.
CAUTION! You MUST follow Guidelines 1 and 2. Failure to do so could result in a negative
value which causes the process to become uncontrollable.
OW351_R1100 661
6.15 XPIDSLI
Guidelines
1. You MUST use PV GAIN and PV BIAS to normalize the proces s variable inputs to a 0 to 100
percent value. Use this equation: (PV x PV GAIN) + PV BIAS = PV percent.
2. You MUST use SET GAIN and SET BIAS to normalize the set point to a 0 to 100 percent
value. The set point definition depends on which mode is operating: CAS, SUPV, or internal
set point. Use this equation: (SP x SP BIAS) + SP BIAS = set point percent.
3. Determine set point high and low limits with these equations:
set point high limit = (100 - SP BIAS)/SP GAIN
set point low limit = (0 - SP BIAS)/SP GAIN
Note: The SCALE TOP and SCALE BOT parameters are used to limit the output value of the
algorithm. These values must always be 100% and 0% respectively when an LIM interfaces to a
QLI or QLJ card.
662 OW351_R1100
6.15 XPIDSLI
The Increase/Decrease Output keys and the Increase/Decrease Set Point keys on the LIM have
no effect in these modes. Both the set point and output values are written to the card in these
modes.
Auto Mode
The Increase/Decrease Set Point keys on the LIM override any other set point change requests
except digitally entered set points (DES). However, the Increase/Decrease Output keys on the
LIM have no effect in this mode.
Note: A digitally entered set point (DES) is a value entered by the user in a MAC Monitoring
Program tuning diagram. Lik ewise, a digitally entered output (DEO) is a value entered by the
user.
The internal set point is read from the card, raised or lowered, and written back to the card. Also,
the calculated output value is written to the card in this mode.
Manual Mode
The Increase/Decrease Output keys and the Increase/Decrease Set Point keys on the LIM
override any other set point and output change requests except digitally entered outputs (DEO).
Both the set point and output values are read from the card, either raised or lowered, and then
written back to the card in this mode.
Local Mode
The set point and output values may only be changed by the Increase/Decrease Set Point keys
and the Increase/Decrease Output keys at the LIM in this mode. The algorithm reads the set point
and output values from the card and causes these output values to track the card’s values. In this
tracking mode, all set point and output raise and lower requests from the functional processor, the
Operator’s/Alarm Console or DEO or DES are ignored.
Mode Transfers
The algorithm transfers between the Supervisory, Cascade, Auto, Manual, and Local modes as
follows:
The digital reject signal will reject the algorithm to Manual mode or to Local mode when the
Manual Inhibit feature is ON and when it is TRUE and the quality is not BAD.
The Supervisory Request, Cascade Request, Auto Request and Manual Request signals
from the SUPV, CAS, AUTO and MAN mode request keys on the Operator’s Keyboard will
switch the algorithm to the desired mode if it is not in Local mode.
The Cascade Request, Auto Request, Manual Request, and Local Request signals from the
CASC, AUTO, MAN and LOC mode request keys on the LIM will switch the algorithm to the
desired mode.
The algorithm rejects to Local mode if there are any hardware errors.
On reset/power-up, the algorithm goes to the mode initialized by the Firstpass mode (FP
MODE) parameter unless that mode is blocked by either the Manual Inhibit or Auto Inhibit
features. If both the Manual and Auto Inhibit features are ON, then the Firstpas s mode is
Cascade mode. Otherwise, the Firstpass mode is the mode which has its inhibit feature OFF.
OW351_R1100 663
6.15 XPIDSLI
If the Quality Reject (QUAL REJ) feature is OFF, then no quality checks are performed on any
of the input variables. Otherwise, the controller automatically rejects to the Manual mode (or
Local mode if the Manual Inhibit feature is ON) when:
The mode is Cascade and the quality of the cascade set point goes BAD or not GOOD,
depending on the Quality Reject flag.
The mode is Supervisory and the quality of the supervisory set point goes BAD or not
GOOD, depending on the Quality Reject flag.
The mode is Cascade, Supervisory or Auto and the quality of the process variable goes
BAD or not GOOD, depending on the Quality Reject flag.
If the algorithm is in a given mode and the quality of one of the points being checked goes
BAD or not GOOD (depending on the Quality Reject flag), then the algorithm rejects to
Manual mode as long as the Manual Inhibit feature is OFF, or to Local mode if the Manual
Inhibit Feature is ON. If the algorithm is in a given mode and the operator tries to select a
mode which has BAD or not GOOD quality (depending on the Quality Reject flag) on one of
the points being checked, then the algorithm remains in the same mode and does not reject.
Regardless of the Quality Reject parameter (QUAL REJ), the input values to the algorithm are
checked for invalid real numbers. In a given mode, the following inputs are checked:
AUTO: process variable input
CASCADE: process variable and cascade input
SUPERVISORY: process variable and supervisory input
If the algorithm is in a given mode and the value of one of the inputs being checked become
invalid, the algorithm rejects to Manual mode, providing the Manual Inhibit feature if OFF, or
to Local mode if the Manual Inhibit Feature is ON. If the algorithm is in a given mode and the
operator tries to select a mode where one of the input values being checked is invalid, the
algorithm remains in the same mode and does not reject.
The track input value is also checked for invalid real numbers when the algorithm is told to
track. If the algorithm is told to track and the track input value is invalid, then the algorithm
rejects to Manual mode, providing the Manual Inhibit feature is OFF, or to Local mode if the
Manual Inhibit Feature is ON. In all modes, the track request is ignored when the track input
value is invalid.
Note: The Auto and Manual Inhibit flags prevent the algorithm from going to either the Auto or
Manual modes, respectively. The algorithm remains in the previous mode when it tries to enter a
mode that is block ed by one of these Inhibit flags.
The set point top of scale, bottom of scale and units parameters for the configuration data are
taken from the top of bar, bottom of bar and the first four characters of the engineering units fields
in the set point output record. The set point output record must be modified by the user to contain
the correct engineering units that will be displayed at the LIM. The set point top of bar and bottom
of bar are initialized by the XPIDSLI algorithm according to the GAIN and BIAS parameters
specified.
The configuration data for the set point and for the output sections is written to the card. If the
switch on the card is not the Ignore EEPROM position, the data is saved in EEPROM on the card.
664 OW351_R1100
6.15 XPIDSLI
The Reverse (Inverse) Voltage configuration parameter on the card causes the output voltage to
be zero for an output value of 100% and to be full voltage for an output value of 0%. The default
for this configuration parameter is Normal Voltage (that is, the output voltage is full voltage for an
output of 100% and is zero volts for an output of 0%). In order to use the Reverse (Inverse)
Voltage option, the Inverse Voltage, INV VOLT, configuration parameter in this algorithm must be
set to ON.
CAUTION! Due to the possibility of causing a process upset, use extreme care when
reversing the output voltage of the QLI or QLJ card while online.
Note: When the QLI or QLJ is configured as an electric drive card type, a difference between
the actual position and the demand value <=1% will cause no raise or lower action to be tak en.
A difference >= 5% will cause fast raise or lower action to be tak en.
These values are fixed and cannot be changed. The slow rates specified b y the ONOFF TIME
Parameter determine the raise/ lower action tak en when the difference is between 1% and 5%.
The same slewing rates are used for both the output and the set point changes.
Key usage
KE Y US E
OW351_R1100 665
6.15 XPIDSLI
Optional Function
The algorithm has the option of using either a digital or a packed point for the manual reject signal
(REJ).
If the reject input is a packed point and the requested mode is valid for a given type of algorithm,
a packed reject input will cause the algorithm to reject to the requested mode as long as it is not
blocked by other options such as MANUAL or AUTO INHIBIT.
Mode
M O D E RE Q U E S T BI T
Manual 0
Auto 1
Supervisory 2
Cascade 3
DDC 4
Tracking Signals
Tracking is incorporated into the algorithm to ensure a bumpless transfer between each of the
modes. External tracking and limiting are done through signals passed in the upper 16 bits of the
third status word of the analog track point. This algorithm takes the following action in response to
the information found in the input signal TRIN:
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
666 OW351_R1100
6.15 XPIDSLI
BI T DE S C R I P TI O N AC TI O N TOUT S I G N AL
The high and low limit flags, the mode, and the tracking signals from the algorithm are output as
TOUT, to be used for display and by an upstream algorithm. When tracking, the quality of the
output is set to the quality of the track input variable. Otherwise, the qualities of the outputs are
set according to the following if there are no hardware errors:
Mode
MOD E S E T P O I N T Q U AL I TY O U TP U T Q U AL I T Y
1. The set point for the PID (in the same units as the cascade input).
2. A real analog value representing the process variable deviation from the set point (in percent
of full scale).
If the algorithm calculates an invalid real number for the output, the quality of the output is
set to BAD and the output value will be invalid. Consequently, if an invalid value is
entered as an input to the algorithm, or if the algorithm generates an invalid value for the
output, the drop is placed into alarm.
If the algorithm generates an invalid track output value, the cascade input value is used
as the track output unless it is invalid. The track output value is not updated if both the
calculated track output and the cascade input values are invalid.
If the algorithm generates an invalid real number as the new value of the set point, the
internal set point is not updated. However, when the set point value becomes invalid the
drop is placed into alarm, and the quality of the set point is set to BAD.
OW351_R1100 667
6.15 XPIDSLI
Bit 10 is set in the second status word of the output record for one loop whenever the output
configuration data section is reconfigured. Bit 10 is set in the second status word of the set point
record for one loop whenever the set point configuration data section is reconfigured. This does
not affect the quality of either record (that is, the output and/or set point quality is not set BAD
when the card is reconfigured).
The following hardware related errors are set in the second status word of the analog output
record and cause the analog output to have BAD quality.
Bit description
BI T DE S C R I P TI O N
0 Invalid hardware address. The user specified a hardware address outside the legal range of 0
to 3FCH.
1 Write verification error. The algorithm tried to reconfigure the output section of the card but was
unable to do so.
2 Bad hardware status. The power and card OK bits on the card were not set
3 Configuration error. The algorithm tried to reconfigure the card for two consecutive loops. This
could be caused by another algorithm having the same address, where both algorithms are
trying to reconfigure the same section of the card.
4 Normalization error. The Read back error failed on QLJ; the mode is not changed. Position
feedback signal below 3.4 milliamps on QLI configured as an electric drive card type; QLI goes
into Failed Local mode. Once the signal returns above 3.7 milliamps, the error clears and BAD
quality is removed. QLI goes to Local mode if LIM is present; otherwise, it goes into Man ual
mode.
Any of these errors will cause the algorithm to reject to Local mode. If an invalid hardware
address or bad hardware status error caused the algorithm to reject to Local, the quality will
remain BAD on the output, and the algorithm will remain in Local mode until the error is cleared.
If a write verification error or configuration error caused the algorithm to reject to Local, the quality
will become GOOD on the output and the algorithm will remain in Local mode until Local mode is
exited via the LIM. The error bit in the second status word will remain set in Local mode, even
though the quality is GOOD, so as to enable the user to determine the cause of the reject.
Note: If the card determines that there is a LIM communications error while it is in Local mode, it
will reject the card to Manual mode. The algorithm will also go to Manual mode.
668 OW351_R1100
6.15 XPIDSLI
The following hardware related errors are set in the second status word of the analog set point
record and cause the analog set point to have BAD quality:
Bit description
BI T DE S C R I P TI O N
0 Invalid hardware address. The user specified a hardware address outside the legal range
of 0 to 3FCH.
1 Write verification error. The algorithm tried to reconfigure the set point section of the card
but was unable to do so.
2 Bad hardware status. The power and card OK bits on the card were not set
3 Configuration error. The algorithm tried to reconfigure the card for two consecutive loops.
This could be caused by another algorithm having the same address, where both
algorithms are trying to reconfigure the same section of the card.
Any of these errors will cause the algorithm to reject to Local mode. If an invalid hardware
address or bad hardware status error caused the algorithm to reject to Local, the quality wil l
remain BAD on the set point and the algorithm will remain in Local mode until the error is cleared.
If a write verification error or configuration error caused the algorithm to reject to Local, the quality
will become GOOD on the set point and the algorithm will remain in Local mode until Local mode
is exited via the LIM. The error bit in the second status word will remain set in Local mode (even
though the quality if GOOD) to enable the user to determine the cause of the reject.
Algorithm Definitions
N AME LC A L G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 669
6.15 XPIDSLI
N AME LC A L G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
670 OW351_R1100
6.15 XPIDSLI
N AME LC A L G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 671
6.15 XPIDSLI
N AME LC A L G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
672 OW351_R1100
6.15 XPIDSLI
N AME LC A L G . T YP E DE F AU L T DE S C R I P TI O N MI N .
RE C O R D V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 673
SECTION 7
IN THIS SECTION
Fieldbus algorithms interface to Foundation Fieldbus function blocks. Function blocks are self-
contained software modules that reside in Foundation Fieldbus devices. Fieldbus algorithms
Implement Foundation Fieldbus logic at the transmitter level. Therefore, Fieldbus devices can be
controlled by Ovation Fieldbus algorithms and integrated as part of an Ovation control scheme.
The Fieldbus algorithms are listed below, The reference pages for Fieldbus algorithms use the
same format as the standard Ovation algorithm reference pages (see page 46).
OW351_R1100 675
7.2 Ovation Fieldbus algorithms and function blocks
Fieldbus devices are digital field instruments containing processors that monitor the performance
and state of the device. Self-contained software modules known as function blocks, reside in the
Fieldbus devices.
While function blocks reside in a device, the Ovation control system uses algorithms on control
sheets that mimic the function blocks. Therefore, Fieldbus devices can be controlled by Ovation
Fieldbus algorithms and can be part of an Ovation control scheme.
Foundation Fieldbus allows you to execute control algorithms in the Controller, in the Fieldbus
devices, or in both. However, the key to successful control is making an algorithm choice that best
supports your plant’s needs.
Examples
The Ovation Controller can handle Fieldbus function block to Fieldbus function block or Ovation
Algorithm to Fieldbus function block control schemes. For example:
Scenario 1
Scenario 2
676 OW351_R1100
7.2 Ovation Fieldbus algorithms and function blocks
The STAT point can be used to indicate problems with a function block.
B I TS DE S C R I P TI O N
OW351_R1100 677
7.3 FFAI
7.3 FFAI
Description
The FFAI algorithm is used to interface to a Fieldbus Analog Input function block. The FFAI
algorithm shadows a single measurement value and status from a Fieldbus device to an Ovation
point (Out).
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The PV point displays the Process Variable value and status from the function block. The TOUT
point displays the algorithm’s mode and tracking signals.
The FFAI algorithm supports Manual and Auto modes. These modes are tunable from both the
Ovation tuning graphic as well as the Fieldbus Module Engineering window in the Developer
Studio.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Tracking Signals
The high and low limits flags and tracking signals from the algorithm are output to TOUT, and are
to be used for display and by an upstream algorithm. All Fieldbus function blocks support different
modes, which is also reflected in the TOUT point. The following information is TOUT’s output
associated with the algorithm.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
678 OW351_R1100
7.3 FFAI
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 679
7.3 FFAI
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
680 OW351_R1100
7.4 FFAO
7.4 FFAO
Description
The FFAO algorithm is used to interface to a Fieldbus Analog Output function block. The FFAO
algorithm shadows a single measurement value and status from a Fieldbus device to the Ovation
point (Out).
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The FFAO algorithm supports Manual, Auto and Cascade modes. These modes are tunable from
both the Ovation tuning graphic as well as the Fieldbus Module Engineering window in the
Developer Studio.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Tracking Signals
The high and low limits flags and tracking signals from the algorithm are output to TOUT, and are
to be used for display and by an upstream algorithm.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
OW351_R1100 681
7.4 FFAO
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
682 OW351_R1100
7.4 FFAO
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 683
7.5 FFDI
7.5 FFDI
Description
The FFDI algorithm is used to interface to a Fieldbus Discrete Input function block. The FFDI
algorithm shadows a single discrete input and status from a two-state field to an Ovation point
(OUT).
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The PV point displays the Process Variable value and status from the function block. The TOUT
point displays the algorithms mode and tracking signals.
The FFDI algorithm supports Manual and Auto modes. These modes are tunable from both the
Ovation tuning graphic as well as the Fieldbus Module Engineering window in the Developer
Studio.
Some Fieldbus device manufacturers put additional information in bits 1 through 7 of the
value/status register. To access these bits, select "octet" in the Type parameter field (see the
Algorithm Definitions table).
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Tracking Signals
The high and low limits flags and tracking signals from the algorithm are output to TOUT, and are
to be used for display and by an upstream algorithm. All Fieldbus function blocks support different
modes, which is also reflected in the TOUT point. The following information is TOUT’s output
associated with the algorithm.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
684 OW351_R1100
7.5 FFDI
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 685
7.5 FFDI
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
686 OW351_R1100
7.6 FFDO
7.6 FFDO
Description
The FFDO algorithm is used to interface to a Fieldbus Discrete Output function block. The FFDO
algorithm shadows a discrete value and status from a fieldbus device to an Ovation point (OUT).
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The FFDO algorithm supports Manual, Auto, and Cascade modes. These modes are tunable from
both the Ovation tuning graphic as well as the Fieldbus Module Engineering window in the
Developer Studio.
Some Fieldbus device manufacturers put additional information in bits 1 through 7 of the
value/status register. To access these bits, select "octet" in the Type parameter field (see the
Algorithm Definitions table).
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Tracking Signals
The high and low limits flags and tracking signals from the algorithm are output to TOUT, and are
to be used for display and by an upstream algorithm. All fieldbus function blocks support different
modes, which is also reflected in the TOUT point. The following information is TOUT’s output
associated with the algorithm.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
OW351_R1100 687
7.6 FFDO
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
688 OW351_R1100
7.6 FFDO
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 689
7.7 FFISEL/FFISELX
7.7 FFISEL/FFISELX
Description
The FFISEL algorithm interfaces to a Foundation Fieldbus Input Selector function block. The Input
Selector function block generates an output selected from up to four inputs based on a configured
selection type. The following selection types are used:
Maximum.
Minimum.
Middle.
Average.
First GOOD (first input with GOOD quality).
The FFISEL algorithm shadows the Input Selector function block input and output values. The
Input Selector function block does not support back calculation so Ovation tracking is not
supported.
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The FFISEL algorithm also supports the Extended Input Selector function block, as implemented
in Rosemount field devices. The extended function block is often referred to as ISELX. The
extended function block adds four additional inputs for a total of eight.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communicatio n
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
690 OW351_R1100
7.7 FFISEL/FFISELX
The FFISEL algorithm supports Direct Entered Output functionality for the OUT parameter, but
only in Manual mode.
The FFISEL algorithm supports the capability to change the Fieldbus mode between MAN and
AUTO from an Ovation Signal Diagram. A mode indication displays on the Signal Diagram. The
Signal Diagram provides an entry field for the Direct Entered Output of the OUT parameter.
During Controller failover and also during Fieldbus port download, it may not be possible to get
GOOD values from the device. The FFISEL algorithm supports failover and port download by
using the last GOOD values and quality during this time.
OW351_R1100 691
7.7 FFISEL/FFISELX
SELECT_TYPE Parameter
The SELECT_TYPE parameter configures the type of selection the Input Selector function block
performs. It is a contained parameter; and therefore, is not available as an input to the FFISEL
algorithm. Selection processing takes place after input processing. Inputs with corresponding
Disable inputs set to TRUE are discarded. Inputs whose status is BAD are discarded. If no inputs
or fewer than those defined in MIN_GOOD remain, selection does not take place.
The SELECT_TYPE parameter must be entered through the Control Builder Properties Editor
(see Ovation Control Builder User Guide for more information on the Property Editor).
The following table shows the select types and corresponding values:
V AL U E S E L E C TI O N T YP E
1 First Good -- transfer the first remaining input to the output of the function block.
2 Minimum -- transfer the lowest remaining input value to the output of the function
block.
3 Maximum -- transfer the highest remaining input value to the output of the function
block.
4 Middle -- transfer the middle value to the output. If two inputs are in the middle,
transfer the average of the two.
5 Average -- transfer the average of the remaining inputs to the output of the function
block.
Tracking Signals
The Foundation Fieldbus Input Selector function block does not support back calculation so
Ovation tracking is not supported. However, the TOUT parameter is still used to indicate the
mode of the underlying function block.
BI T DE S C R I P TI O N TOUT S I G N AL
692 OW351_R1100
7.7 FFISEL/FFISELX
BI T DE S C R I P TI O N TOUT S I G N AL
The FFISEL algorithm also supports the Extended Input Selector function block as implemented
in Rosemount field devices. The extended function block is often referred to as ISELX, and adds
four additional inputs IN5 through IN8. It also adds four disable inputs, DIS5 through DIS8. An
additional output, DOUT, indicates an alarm state for the function block's analog output.
Two functional symbols are defined for the FFISEL algorithm. One symbol supports the Input
Selector function block and has four analog inputs. The second symbol supports the extended
Input Selector function block (ISELX) and has eight analog inputs, eight digital inputs, and the
additional digital output, DOUT. Both symbols display in the Control Builder's Add Algorithm
dialog box (see Ovation Control Builder User Guide for more information on the Add Algorithm
dialog box).
Note: The Developer Studio view of the FFISEL algorithm will show all of the possible
parameters (IN1-IN8 and DIS1-DIS8) whether it is extended or not.
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C O R D
Inputs:
OW351_R1100 693
7.7 FFISEL/FFISELX
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C O R D
694 OW351_R1100
7.7 FFISEL/FFISELX
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C O R D
OW351_R1100 695
7.7 FFISEL/FFISELX
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C O R D
696 OW351_R1100
7.7 FFISEL/FFISELX
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C O R D
OW351_R1100 697
7.8 FFMAI
7.8 FFMAI
Description
The FFMAI algorithm is used to interface to a Fieldbus Multiple Analog Input function block. The
FFMAI algorithm shadows up to eight measurement values and statuses from a fieldbus device to
Ovation output points.
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The FFMAI algorithm supports Manual and Auto modes. These modes are tunable from both the
Ovation tuning graphic as well as the Fieldbus Module Engineering window in the Developer
Studio.
Note: The FFMAI algorithm also supports the FFMAI_RMT function block .
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Tracking Signals
The high and low limits flags and tracking signals from the algorithm are output to TOUT, and are
to be used for display and by an upstream algorithm. All Fieldbus function blocks support different
modes, which is also reflected in the TOUT point. The following information is TOUT’s output
associated with the algorithm.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
698 OW351_R1100
7.8 FFMAI
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 699
7.8 FFMAI
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
700 OW351_R1100
7.8 FFMAI
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 701
7.9 FFMAO
7.9 FFMAO
Description
The FFMAO algorithm is used to interface to a Foundation Fieldbus Multiple Analog Output
function block. The FFMAO algorithm shadows up to eight measurement values and statuses
from Ovation analog process points to a Fieldbus device.
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
702 OW351_R1100
7.9 FFMAO
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 703
7.10 FFMDI
7.10 FFMDI
Description
The FFMDI algorithm is used to interface to a Foundation Fieldbus Multiple Digital Input function
block. The FFMDI algorithm shadows up to eight digital states and statuses from a Fieldbus
device to Ovation digital process points.
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
704 OW351_R1100
7.10 FFMDI
Tracking Signals
The FFMDI function block, as an input, does not support back calculation or the Cas mode, and
so Ovation tracking is not supported. However the TOUT parameter is still used to indicate the
mode of the underlying function block.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 705
7.10 FFMDI
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
706 OW351_R1100
7.10 FFMDI
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 707
7.11 FFMDO
7.11 FFMDO
Description
The FFMDO algorithm is used to interface to a Foundation Fieldbus Multiple Digital Output
function block. The FFMDO algorithm shadows up to eight digital states and statuses from
Ovation digital process points to a Fieldbus device.
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
708 OW351_R1100
7.11 FFMDO
Tracking Signals
The FFMDO function block does not support back calculation or the Cas mode, and so Ovation
tracking is not supported. However the TOUT parameter is still used to indicate the mode of the
underlying function block.
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 709
7.11 FFMDO
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
710 OW351_R1100
7.11 FFMDO
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 711
7.12 FFPID
7.12 FFPID
Description
The FFPID algorithm shadows the Fieldbus FFPID function block input and output values. It also
maps the Fieldbus back-calculation points to Ovation tracking points.
The STAT point indicates status and error information of the function block. See the STAT bits
table (see page 677) for bit definitions.
The FFPID algorithm supports Manual, Auto, and Cascade modes. These modes are tunable
from both the Ovation tuning graphic as well as the Fieldbus Module Engineering window in the
Developer Studio.
All Fieldbus algorithms shadow the actual Fieldbus function block quality unless a communication
error occurs. In the case of a communication error, the output quality will be defined by the FERR
parameter. If the actual Fieldbus function block output quality is BAD or the FERR parameter is
set to BAD and a communication error occurs, the output quality will be marked as BAD and the
output value will latch at the last known GOOD quality value. The AMODE parameter will display
an unknown mode or no mode in this scenario.
Functional Symbol
Tracking Signals
External tracking and limiting are done through signals passed in the upper 16 bits of the third
status word of the analog track points. This algorithm takes the following action in response to
information found in the third status word of the analog input signal TRIN:
Bit description
BI T DE S C R I P TI O N TOUT S I G N AL
712 OW351_R1100
7.12 FFPID
BI T DE S C R I P TI O N TOUT S I G N AL
The High and Low limit flags, the mode and the tracking signals from the algorithms are output to
TOUT to be used for display and by upstream algorithms.
Algorithm Definitions
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 713
7.12 FFPID
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
714 OW351_R1100
7.12 FFPID
O V ATI O N FI E L D B U S T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
P AR AM P AR AM O P TI O N AL V AL U E POI N T
RE C .
OW351_R1100 715
SECTION 8
IN THIS SECTION
What are Ovation SIS Logic Solver algorit hms? ........................................................ 718
LSAI ...................................................................................................................... 721
LSALM................................................................................................................... 723
LSAND................................................................................................................... 725
LSAVTR................................................................................................................. 727
LSBDE ................................................................................................................... 744
LSBFI .................................................................................................................... 746
LSBFO................................................................................................................... 749
LSCALC................................................................................................................. 752
LSCE M .................................................................................................................. 767
LSCMP .................................................................................................................. 790
LSDI ...................................................................................................................... 792
LSDO..................................................................................................................... 794
LSDVC................................................................................................................... 801
LSDVTR ................................................................................................................ 812
LSLI M .................................................................................................................... 829
LSMI D ................................................................................................................... 832
LSNAND ................................................................................................................ 836
LSNDE................................................................................................................... 838
LSNOR .................................................................................................................. 840
LSNOT................................................................................................................... 842
LSOFFD ................................................................................................................ 843
LSOND .................................................................................................................. 845
LSOR..................................................................................................................... 847
LSPDE ................................................................................................................... 849
LSRET ................................................................................................................... 851
LSRS ..................................................................................................................... 853
LSSEQ................................................................................................................... 855
LSSR ..................................................................................................................... 860
LSSTD ................................................................................................................... 862
LSTP ..................................................................................................................... 869
LSXNOR ................................................................................................................ 871
LSXOR .................................................................................................................. 872
SIS connector algorithm table .................................................................................. 873
GSECPARA MREF .................................................................................................. 874
NONSECPA RA M ................................................................................................... 875
SECPARA M ........................................................................................................... 876
SECPARA MREF .................................................................................................... 878
OW351_R1100 717
8.1 What are Ovation SIS Logic Solver algorithms?
Safety Instrumented System (SIS) algorithms are self-contained software modules that reside in
Logic Solvers. All Logic Solver output channel algorithms can only be accessed by the Logic
Solver where the physical connection is performed.
Note: The term "Logic Solver" refers to both the 1508 Logic Solver and the CSLS.
The use of SIS algorithms and the SIS system, is described in Ovation Safety Instrumented
System (SIS) User Guide.
The SIS algorithms are listed and briefly described in the following table. Note that the SIS
algorithm reference pages follow the same format as the standard Ovation algorithms
(see page 43).
Note: Some SIS algorithm parameters may show "LX" in the Minimum Point Record column in
the Algorithm Definitions table. LX indicates that the parameter can tak e any (LA (analog), LD
(digital), or LP (pack ed)) point record.
Algorithms from the SIS family are not valid in control macros or standard control functions
A L G O R I TH M DE S C R I P TI O N FU N C TI O N
LSAI Analog Input Accesses a single analog measurement value and quality from an I/O
(see page 721) channel. The input value is a transmitter's 4 to 20 mA signal.
LSALM Alarm Performs alarm detection on a user-specified input. The parameters
(see page 723) generated can then be used to generate alarm events at the user
interface.
LSAND Logical AND Generates a digital output value based on the logical AND of 2 to 16
(see page 725) digital inputs. The algorithm supports signal quality propagation.
LSAVTR Analog Voter Monitors a number of input values and determines if there are enough
(see page 727) votes to trip. If a configured number of the inputs vote to trip, the
algorithm trips and sets the output of the algorithm to 0 (zero).
LSBDE Bi-Directional Generates a True (1) digital pulse output when the digital input makes
(see page 744) Edge Trigger a positive (False-to-True) or negative (True-to-False) transition since
the last execution of the algorithm. The algorithm supports signal
quality propagation.
LSBFI Boolean Fan In Generates a digital output based on the weighted binary sum, binary
(see page 746) coded decimal (BCD) representation, or logical OR of 1 to 16 digital
inputs. The algorithm supports signal quality propagation.
LSBFO Boolean Fan Decodes a binary weighted input to individual bits and generates a
(see page 749) Out digital output value for each bit (as many as 16 outputs). The
algorithm supports signal quality propagation.
LSCALC Calculation/ Allows you to specify an expression that determines the algorithm's
(see page 752) Logic output. Mathematical functions, logical operators, constants and
parameter references can be used in the expression.
LSCEM Cause Effect Defines interlock and permissive logic that associates as many as 16
(see page 767) Matrix (uses inputs and 16 outputs. Configure one or more inputs to trip each
advanced output. When an input becomes active, all outputs associated with
editor) that input trip.
718 OW351_R1100
8.1 What are Ovation SIS Logic Solver algorithms?
A L G O R I TH M DE S C R I P TI O N FU N C TI O N
LSCMP Comparator Compares two values and sets a Boolean output based on that
(see page 790) comparison.
LSDI Digital Input Accesses a single digital measurement value and quality from a two -
(see page 792) state field device and makes the processed physical input available to
other algorithms. The algorithm supports signal inversion, and signal
quality propagation..
LSDO Digital Output Takes a digital input value repres enting the commanded output state
(see page 794) and writes it to a specified Digital Output channel. The algorithm
supports fault state detection and field device confirmation.
LSDVC Digital Valve Drives a HART Two-state Output channel connected to a digital valve
(see page 801) Controller controller. The algorithm supports partial stroke testing, fault state
detection, and field device confirmation.
LSDVTR Digital Voter Monitors a number of input values and determines if there are enough
(see page 812) votes to trip. If a configured number of the inputs vote to trip, the
algorithm trips and sets the output of the algorithm to 0 (zero).
LSLIM Limit Limits an input value between two reference values. The algorithm
(see page 829) has options that set the output to a default value or the last value if
the input becomes out of range.
LSMID Middle Signal Selects between multiple analog signals. The algorithm selects the
(see page 832) Selector mid-valued input from the inputs that are not disabled and do not
have Bad status. If there is an even number of inputs, the average of
the two middle valued inputs is used as the middle value.
LSNAND Logical NAND Generates a digital output value based on the logical AND of 2 to 16
(see page 836) digital inputs, then performs a NOT on the result. The algorithm
supports signal quality propagation.
LSNDE Negative Edge Generates a True (1) digital pulse output when the digital input makes
(see page 838) Trigger a negative (True-to-False) transition since the last execution of the
algorithm. The algorithm supports signal quality propagation.
LSNOR (see Logical NOR Generates a digital output value based on the logical OR of 2 to 16
page 840) digital inputs, then performs a NOT on the result. The algorithm
supports signal quality propagation.
LSNOT Logical NOT Logically inverts a digital input signal and generates a digital output
(see page 842) value. The algorithm supports signal quality propagation.
LSOFFD Off-Delay Delays the transfer of a False (0) digital input value to the output by a
(see page 843) Timer specified time period. The algorithm supports signal quality
propagation.
LSOND On-Delay Delays the transfer of a True (1) digital input value to the output by a
(see page 845) Timer specified time period. The algorithm supports signal quality
propagation.
LSOR Logical OR Generates a digital output value based on the logical OR of 2 to 16
(see page 847) digital inputs. The algorithm supports signal quality propagation.
LSPDE Positive Edge Generates a True (1) digital pulse output when the digital input makes
(see page 849) Trigger a positive (False-to-True) transition since the last execution of the
algorithm. The algorithm supports signal quality propagation.
LSRET Retentive Generates a True (1) digital output after the input has been True for a
(see page 851) Timer specified time period. The elapsed time the input has been True and
the output value are reset when the reset input is set True.
LSRS Reset/Set Generates a digital output value based on NOR logic of reset and set
(see page 853) Flip-Flop inputs.
OW351_R1100 719
8.1 What are Ovation SIS Logic Solver algorithms?
A L G O R I TH M DE S C R I P TI O N FU N C TI O N
LSSEQ Sequencer Associates system states with actions to drive outputs based on the
(see page 855) (uses current state.
advanced
editor)
LSSR Set/Reset Flip- Generates a digital output value based on NAND logic of set and
(see page 860) Flop reset inputs.
LSSTD State Implements a user-defined state machine. The state machine
(see page 862) Transition describes the possible states, and the transitions between those
Diagram (uses states, that can occur.
advanced
editor)
LSTP Timed Pulse Generates a True (1) digital output for a specified time duration whe n
(see page 869) the input makes a positive (False-to-True) transition. The output
remains True even when the input returns to its initial digital value
and returns to its original False value only when the output is True
longer than the specified time duration.
LSXNOR Logical XNOR Performs a NOT on the exclusive OR of two inputs.
(see page 871)
LSXOR Logical XOR Performs an exclusive OR of two inputs to produce an output.
(see page 872)
720 OW351_R1100
8.2 LSAI
8.2 LSAI
Description
The Logic Solver Analog Input (LSAI) algorithm accepts a single analog input signal from an input
channel and makes it available to other algorithms.
The LSAI algorithm provides an interface to analog input devices connected to Logic Solvers that
are on the same SIS Data Server. Some typical analog devices are differential pressure, flow,
temperature, and level transmitters.
Analog inputs can be from conventional or HART channels. This algorithm does not use digital
values from HART channels.
Functional Symbol
Algorithm Execution
The LSAI algorithm accesses a single analog measurement value and quality from an input
channel.
The LSAI algorithm supports signal scaling and signal quality calculation.
The algorithm's output parameter (OUT) reflects the process variable (PV) value and quality.
When you configure the LSAI algorithm, you select the input channel associated with an analog
measurement by configuring the Ovation point. You select the point and the parameter the LSAI
algorithm accesses on that channel. The channel specified can be one of the 16 channels on this
Logic Solver or an input channel on a Logic Solver on the same SIS Data Server.
The Ovation system cannot change the scaling in a HART device connected to a Logic Solver
channel. Such changes must be done using AMS Device Manager or a handheld configurator.
These changes do not propagate into the Ovation database.
OW351_R1100 721
8.2 LSAI
Quality Handling
The SOP8 (Quality Opt:Bad if Limited) parameter allows you to select options for quality handling
and processing. This parameter is set in channel properties (see Ovation Safety Instrumented
System (SIS) User Guide for more information). The supported quality option for the Analog Input
algorithm is:
Bad if Limited
When this option is selected, the quality of PV and OUT is Bad if the quality of the referenced
channel is Bad due to exceeding the overrange, underrange, NAMUR, or sensor failure limits.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
722 OW351_R1100
8.3 LSALM
8.3 LSALM
Description
The Logic Solver Alarm (LSALM) algorithm detects alarm conditions on an analog input you
specify. Use the algorithm to generate an alarm condition that can be referenced by an alarm in
the control modules.
Functional Symbol
Algorithm Execution
Use the Alarm algorithm to detect alarm conditions for analog parameters from other algorithms.
You can choose the alarm detection type (High or Low) and the alarm limit. The algorithm
provides enable and delay parameters for the alarm you configure.
OW351_R1100 723
8.3 LSALM
Quality Handling
The algorithm does not support quality. Alarm detection is performed regardless of the quality of
the input.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
724 OW351_R1100
8.4 LSAND
8.4 LSAND
Description
The Logic Solver AND (LSAND) algorithm generates a digital output value based on the logical
AND of 2 to 16 digital inputs. The algorithm supports signal quality propagation.
IN1 through INx are the digital input values and quality (as many as 16 inputs).
Functional Symbol
Algorithm Execution
The number of inputs to the LSAND algorithm is an extensible parameter. The algorithm default i s
two inputs. Use the Control Builder (see Ovation Control Builder User Guide) to add additional
input pins.
The LSAND algorithm examines the inputs you define and applies the logical AND function to the
inputs. When all inputs are True (1), the output is True. When one or more of the inputs is False
(0), the output is False.
Quality Handling
The output quality is set to the worst quality among the selected inputs unless at least one input is
False and its quality is not Bad. When this is the case, the out put quality is set to Good.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
-- Number of Inputs
NOFIN Y0 - Byte Required 2 (automatically incremented -
by system)
IN1 - Variable Required - Input 1 LD
IN2 - Variable Required - Input 2 LD
IN3 - Variable Optional - Input 3 LD
IN4 - Variable Optional - Input 4 LD
IN5 - Variable Optional - Input 5 LD
IN6 - Variable Optional - Input 6 LD
IN7 - Variable Optional - Input 7 LD
OW351_R1100 725
8.4 LSAND
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
726 OW351_R1100
8.5 LSAVTR
8.5 LSAVTR
Description
The Logic Solver Analog Voter (LSAVTR) algorithm provides an analog voter function for safety
instrumented functions. A voter algorithm monitors a number of input values and determines if
there are enough votes to trip. The LSAVTR algorithm monitors as many as 16 analog inputs. If a
configured number of the inputs vote to trip, the algorithm trips and sets the output of the
algorithm to 0 (zero).
For example, a process shutdown might be required if a tank exceeds a certain temperature.
Three temperature sensors are installed in the tank and an analog voter algorithm is configured to
monitor the sensors and trip if two of the three transmitters detect a high temperature.
Because the Logic Solver is a De-energize to Trip system, the normal operating value of the
output is 1 (On) and the tripped value is 0 (Off).
Functional Symbol
Algorithm Execution
The LSAVTR algorithm has one or more floating-point inputs with quality and one digital output
with quality. The algorithm compares each input to a common configured trip limit to determine
whether that input is a vote to trip the output (change it from the normal operating value to the
tripped value). The inputs are typically the engineering unit values from multiple field transmitters
measuring the same process value.
Voting in the Analog Voter algorithm is an M out of N function or "MooN". That is, M inputs of the
total N inputs must vote to trip. For example, the algorithm can be configured as a 2 out of 3 voter
(2oo3), where two of the three inputs must exceed the trip limit before the output is tripped. The
output of the algorithm is typically connected to an LSCEM (Cause and Effect Matrix) algorithm,
which interprets the value as either a safe or dangerous process state.
The LSAVTR algorithm has three inputs by default. The number of inputs is extensible from 1 to
16. The M value corresponds to the parameter N2TRP (Votes needed to trip, default value is 2).
Common voting schemes include 2 out of 3 (2oo3), 1 out of 2 (1oo2), and 2 out of 2 (2oo2). Other
features of the algorithm make it useful for single transmitter applications as a 1oo1 voter.
To determine whether an input is a vote to trip, the value is compared to the limit value (TRLIM -
Voted-to-Trip Limit Value). The configuration parameter DTYPE (Input Detection Type)
determines whether the comparison is Greater Than (high limit) or Less Than (low limit).
OW351_R1100 727
8.5 LSAVTR
In addition to trip limit detection, the algorithm also compares the inputs to a common PTLIM (Pre-
Trip Limit Value) and applies voting to determine a pre-tripped condition. Pre-trip voting is typically
used as a pre-alarm condition, but it is possible to expose the POUT parameter as an algorithm
output so that a single voter algorithm can initiate trip demand logic for two different trip points.
A vote to trip must remain a vote to trip for a configured time (TRDLY - Trip Delay) before the
output changes to tripped. When the vote to trip clears, it must remain clear for NDLY (Output
Reset Delay) before the output changes to the normal state. The delays apply to both the OUT
and POUT (Output of Pre-Trip Vote) outputs. The default value for both delays is 0.0 seconds.
The TRSTS (Trip Status Indicator) and PSTAT (Pre-Trip/Startup Inhibit Status) parameters
indicate the state of the vote to trip.
It is often necessary to force a voter algorithm's output to remain at the Normal value during plant
startup to prevent a trip caused by inputs that have not stabilized at their normal operating values.
You may also want to bypass inputs to allow for sensor maintenance. By default, you can bypass
only one input of the algorithm at a time. The bypassed input cannot vote to trip.
The following sections explain how to use the BOPx options to implement startup and
maintenance bypasses.
Bypassing Inputs
If you have voter algorithms with 1 out of 2 (1oo2)) or 1 out of 1 (1oo1) voting schemes you may
want the ability to bypass inputs to allow for maintenance. Voters that require multiple votes to trip
can benefit from bypass functions as well, resulting in more predictable behavior during
transmitter maintenance. Default algorithm behavior requires that BPERM (Permit Input Bypass)
be true to bypass inputs. You can configure BPERM to be set by a display button or physical
switch (digital input to the Control module).
If your application does not require permission before inputs can be bypassed, you can select the
BOPTx option "Bypass Opt: PermitNotReq" (Bypass permit is not required to bypass).
728 OW351_R1100
8.5 LSAVTR
The following table shows the effect the BOPTx option "Bypass Opt: MaintBypRed" has on the
actual number to trip (ANTRP) for several voting schemes. Note that in no case is ANTRP less
than one.
CO N F I G U R E D BOPT X O P TI O N - A MAI N TE N AN C E B YP AS S R E D U C E S TH E N U MB E R TO
V O TI N G S C H E ME TR I P .
T H E O P TI O N I S N O T S E L E C TE D . T H E O P TI O N I S S E L E C TE D .
(U S E S C O N F I G U R E D N2 TRP) (RE D U C E S ANTRP)
If your application requires, you can enable bypassing multiple inputs simultaneously by selecting
the BOPTx option "Bypass Opt: MulBypAllowed" (Multiple maintenance bypasses are allowed).
If multiple bypasses are set, deselecting the BOPTx option "Bypass Opt: MulBypAllowed"
prevents further bypasses being set but existing bypasses remain set. Additional bypasses
cannot be set until all existing bypasses are cleared.
You can configure a maintenance bypass to be active for a finite time using BTOUT (Input Bypass
Reset Timeout). Its default value is 0.0 seconds, which means no timeout is applied (maintenance
bypasses remain active until BYPx (Voting Bypass for Input x) parameters become False, either
by changing True BYPx parameters to False or changing BPERM to False).
When BTOUT is non-zero, BTMR (Bypass Countdown Timer) is preset to BTOUT seconds when
the first BYPx parameter becomes True (not when BPERM becomes True). Each module scan
thereafter BTMR is decremented until it times out (unless all BYP x parameters become False, in
which case the algorithm resets BTMR to 0.0). The smallest possible configured time for BTOUT
parameter is 0.05 seconds. This value must be multiple of 0.05 seconds or it will be rounded off to
its nearest multiple.
BTMR is common to all inputs. The value of BTMR does not change when a second BYP x
parameter is changed to True (if multiple bypasses are allowed). When BTMR times out, the
algorithm default behavior changes all True BYPx parameters to False. If you use bypass
timeouts, do not expose BYPx parameters as algorithm inputs and connect to them. Doing so will
prevent the algorithm from removing bypasses upon timeout.
Optionally, you can use the bypass timer for indication only by selecting the BOP x option
"Maintenance bypass timeout is for indication only." This causes the timeout of BTMR to activate
a notification alarm (AALRT Expiration Reminder), but does not undo bypasses.
OW351_R1100 729
8.5 LSAVTR
You can configure the algorithm to remind operators that a bypass timeout is imminent. By
default, the algorithm does not notify. There are two ways you can cause a notification:
For bypasses with a configured timeout, you can cause notific ation in advance of the timeout
by setting RMTIM (Reminder Alarm Duration) to a non-zero value. When BTMR is non-zero
but less than or equal to RMTIM, the alarm condition (AALRT Expiration Reminder) is active.
The bypass timer is re-armed only after the first bypass. However, BTMR is a writeable
parameter. After notification that a timeout is about to happen, BTMR can be incremented
using a display button or some other suitable technique to extend the time.
A second approach is available when you are using the bypass timeout for indication only,
that is, bypasses are not removed when BTMR expires (the BOPx option "Maintenance
bypass timeout is for indication only" is selected). In this case the reminder alarm condition
becomes active when BTMR times out even if RMTIM is 0.0. If RMTIM is non-zero, the
reminder occurs prior to timeout. If BTMR times out, the reminder is active and remains active
until all bypasses have been removed.
The following table describes the behavior of the bypass timeout and reminder function for three
different configuration setups.
BPERM changes to BTMR stays 0.0 BTMR stays 0.0 BTMR stays 0.0
True.
First input is bypassed BTMR stays 0.0 BTMR = BTOUT seconds BTMR = BTOUT seconds
(BYPx changes to True) and begins timing down. and begins timing down.
Second input is BTMR stays 0.0 BTMR continues timing BTMR continues timing
bypassed (assuming the down. down.
BOPx option "Multiple
maintenance bypasses
are allowed" is
selected).
BTMR > RMTIM N/A No reminder No reminder
BTMR <= RMTIM No reminder Reminder alarm condition is Reminder alarm condition
active. is active.
Bypass timer times out N/A The algorithm changes all Reminder alarm condition
BYPx parameters to False. remains active until all
Reminder alarm condition bypasses are removed
clears on the following manually.
scan.
730 OW351_R1100
8.5 LSAVTR
It is often necessary to force a voter algorithm's output to remain at the Normal value during plant
startup to prevent a trip caused by inputs that have not stabilized at their normal operating values.
This startup bypass allows the process to reach normal operating conditions without tripping. Use
the STUP (Inhibit Startup Trip Detection) parameter and associated parameters for startup
bypasses. Do not use maintenance overrides for this purpose.
Timed Startup Bypass (the BOPx option Startup bypass duration is event-based is not
selected)
On a rising edge of the STUP parameter the algorithm forces OUT and POUT to the normal state
value for a configurable length of time defined by SUTM (Startup Inhibit Duration). When the
countdown timer SUTMR (Startup Inhibit Timer) times out, the algorithm resumes normal trip
detection. The default behavior of the algorithm is such that a subsequent rising edge of STUP
does not affect the startup time while SUTMR is timing down. To avoid a pending trip on timeout,
you can allow each rising edge of STUP to re-arm SUTMR (by selecting the BOPx option "Startup
bypass preset is allowed while active").
A reminder becomes available to STUP bypasses by selecting the BOP x option "Reminder
applies to startup bypass." When SUTMR is greater than 0.0 but less than RMTIM, the reminder
alarm condition (AALRT Expiration Reminder) is active. The reminder alarm condition is common
to the timeout of maintenance and startup bypasses.
Another option is to have the startup timer expire when inputs have stabilized, that is, when there
have not been enough votes to trip for a configurable period of time. When the BOPx option
"Startup bypass expires upon stabilization" is selected, the bypass timer expires when the
process stabilizes. While SUTMR is timing down, STMR times out whenever there are not enough
votes to trip and resets whenever the trip votes equal or exceed the number required to trip.
If STMR reaches the configured STM, SUTMR resets to 0.0 and normal trip detection resumes.
While SUTMR is timing down, the algorithm increments T2STB (Time to Stable) and stops as
soon as the STMR is triggered. T2STB (Time to Stable) indicates the total number of seconds
during the startup bypass until the inputs become and remain stable (assuming SUTM is
sufficiently long).
STMR does not reset at the end of the startup time period, but is reset at the beginning of a
startup and at any time during the startup when there are enough trip votes. T2STB is reset at the
beginning of a startup bypass. STMR and T2STB are processed even when the stabilization
option is not used (the BOPx option "Startup bypass expires upon stabilization" is not selected).
You can use the value of T2STB to optimize the configured SUTM.
Event-Based Startup Bypass (the BOPx option Startup bypass duration is event-based is
selected)
When the startup bypass expires based on an event rather than a fixed time period, select the
BOPx option "Startup bypass duration is event based." This ends the startup bypass when the
parameter STUP becomes False. STMR and T2STB are not processed. They are set to 0.0 when
STUP becomes True.
OW351_R1100 731
8.5 LSAVTR
The following table summarizes the BOPx options and their effects.
O P TI O N B E H AV I O R W H E N O P TI O N IS BE H AV I O R W H E N O P TI O N I S SET
S E T TO 1 (T R U E ) TO 0 (FAL S E )
732 OW351_R1100
8.5 LSAVTR
Quality Handling
The quality of the inputs influences algorithm behavior based on how the SOPT (Status Options if
Bad input) parameter is configured. The three choices of SOPT are:
Always Use Value — The value of the input is always used regardless of quality. In this way a
hardware failure does not necessarily cause a shutdown and time is allowed for repair.
Detected hardware failures are indicated by standard alarms on the Logic Solver card. This is
the default option.
Will Not Vote if Bad — The input value is not counted as a vote to trip if its quality is Bad.
Vote to Trip if Bad — The input value is counted as a vote to trip if the input quality is Bad.
The following table shows how several common voting schemes degrade when a single input has
bad quality based on the option chosen for SOPT.
O R I G I N AL V O TI N G RE S U L TI N G V O TI N G S C H E ME F OR SOPT V AL U E S
S C H E ME
AL W AYS US E V AL U E 1 W I L L NO T V O TE IF BAD V O TE TO TR I P IF
BAD
Note: The degraded voting scheme depends on the value of the input with Bad quality.
The LSAVTR algorithm determines the quality of OUT and POUT in the same way no matter
which quality option is chosen. The quality calculation is completely separate from the value
calculation.
The quality of OUT and POUT is Good if the number of non-bypassed inputs with Good quality is
greater than or equal to ANTRP (Actual Votes Needed to Trip), or all inputs are bypassed;
otherwise, the quality is Bad. Uncertain quality on inputs is treated as Good.
When any input has Bad quality, the AALRT Input Bad becomes active.
The TRSTS parameter indicates the state of the trip vote functions. The typical value for TRSTS
is Normal, and less commonly, Tripped. As shown in the following figure, TRSTS can be delayed
when TRDLY or NDLY is non-zero and a transition is occurring between normal and tripped
states.
A fifth state, Trip Inhibited, occurs whenever a startup bypass is active or when it is not possible to
trip because there are not enough inputs participating in voting. The latter case can occur when
inputs are bypassed or when inputs have bad quality and the selected SOPT option is Trip
inhibited.
OW351_R1100 733
8.5 LSAVTR
The solid lines in the figure show the common state transitions of TRSTS expected as the
process value moves above and below the trip point. The dashed lines show less common state
transitions.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
734 OW351_R1100
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 735
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
736 OW351_R1100
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 737
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
738 OW351_R1100
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 739
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
740 OW351_R1100
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 741
8.5 LSAVTR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
742 OW351_R1100
8.5 LSAVTR
AALRT
The following table shows the alerts that can appear for an LSAVTR algorithm, an explanation of
each alert and its bit position.
The alerts listed below will be sent to the Ovation Process Historian as SIF Alerts. For more
information on SIF Alerts, refer to Ovation Safety Instrumented System (SIS) User Guide.
LSAVTR alerts
B I T V AL U E EX P L AN A TI O N BI T P O S I TI O N
OW351_R1100 743
8.6 LSBDE
8.6 LSBDE
Description
The LSBDE algorithm generates a True (1) digital output when the digital input makes a positive
(False-to-True) or a negative (True-to-False) transition since the last execution of the algorithm. If
there has been no transition, the digital output of the algorithm is False (0).
Functional Symbol
Algorithm Execution
The Bi-directional Edge Trigger algorithm examines the input value, compares it to the previous
input value, and sets the output True for one scan period when the input has changed. Otherwise,
the output is False. The quality of the output value is set to the quality of the input value.
The following figure illustrates how the Bi-directional Edge Trigger algorithm responds to a
change in input:
744 OW351_R1100
8.6 LSBDE
Quality Handling
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 745
8.7 LSBFI
8.7 LSBFI
Description
The Logic Solver Boolean Fan Input (LSBFI) algorithm generates a digital output based on the
weighted binary sum, binary coded decimal (BCD) representation, transition state, or logical OR
of one to 16 digital inputs. The algorithm supports signal quality propagation.
RST (Reset First Weighted Output) is the input that, when True (1), clears FOUT (First Binary
Weighted Output) and activates the trap condition after all the inputs go False.
IN1 through INx are the digital input values and quality (as many as 16 inputs).
OUTI is the unsigned 32-bit binary weighted output value that represents the bit combination of
the inputs (INx).
OUT is the output value that represents the logical OR of the inputs (INx).
FOUT is the binary weighted output of the digital input values when one or more inputs is set after
RST is set.
Functional Symbol
Algorithm Execution
The Boolean Fan Input algorithm examines the digital input values at each algorithm execution.
The OUTI output is set to the sum of the bit values of the True inputs (IN1 is weighted as 1, IN2
as 2, IN3 as 4, IN4 as 8, and so on). The quality of OUTI is set to the worst quality among the
inputs.
When FOUT indicates a trap has not yet occurred (its value is False[0]) and one or more of the
inputs have become True, a trap condition is flagged and held by copying the value of OUTI to
FOUT. Thereafter, the FOUT value updates when the INx values transition from all False (0) to
one or more True (1). The quality of FOUT is equal to the quality of OUTI when the trap occurred.
The value of OUT is the logical OR of the digital inputs. OUT quality is set to the worst quality
among the inputs.
Note: Once the FOUT output is reset, the Boolean Fan Input algorithm does not set it again until
all of the INx values return to the False (0) state.
To support thumbwheel switch interfaces, the Boolean Fan Input algorithm uses a parameter to
store the binary coded decimal (BCD) representation of the digital inputs. The first four digital
inputs are used to construct the BCD ones digit. (Within these first four bits, the first input is the
least-significant bit.) The remaining sets of four inputs indicate the BCD tens, hundreds, and
thousands digits. When the four bits representing a digit are greater than nine, the digit is limited
to nine.
746 OW351_R1100
8.7 LSBFI
The following figure is an example of Boolean Fan Input algorithm execution for OUTI = 5510.
The result is BCD = 1586 and OUT = True.
Quality Handling
The quality of OUTI and OUT is set to the worst quality among the inputs. The FOUT quality is the
worst quality among the inputs when the FOUT value is written. The FOUT quality is reset when
the FOUT value is cleared.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
-- Number of Inputs
(automatically
NOFIN Y0 - Byte Required 2 -
incremented by
system)
Input 1
IN1 G4 Tunable Required 0 0 = No LD
1 = Yes
Input 2
IN2 G5 Tunable Required 0 0 = No LD
1 = Yes
Input 3
IN3 G6 Tunable Optional 0 0 = No LD
1 = Yes
Input 4
IN4 G7 Tunable Optional 0 0 = No LD
1 = Yes
Input 5
IN5 G8 Tunable Optional 0 0 = No LD
1 = Yes
Input 6
IN6 G9 Tunable Optional 0 0 = No LD
1 = Yes
OW351_R1100 747
8.7 LSBFI
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
Input 7
IN7 B0 Tunable Optional 0 0 = No LD
1 = Yes
Input 8
IN8 B1 Tunable Optional 0 0 = No LD
1 = Yes
Input 9
IN9 B2 Tunable Optional 0 0 = No LD
1 = Yes
Input 10
IN10 YU Tunable Optional 0 0 = No LD
1 = Yes
Input 11
IN11 B4 Tunable Optional 0 0 = No LD
1 = Yes
Input 12
IN12 B5 Tunable Optional 0 0 = No LD
1 = Yes
Input 13
IN13 B6 Tunable Optional 0 0 = No LD
1 = Yes
Input 14
IN14 B7 Tunable Optional 0 0 = No LD
1 = Yes
Input 15
IN15 B8 Tunable Optional 0 0 = No LD
1 = Yes
Input 16
IN16 B9 Tunable Optional 0 0 = No LD
1 = Yes
Variable Reset First Weighted
RST - Required - LD
Output
Variable First Binary Weighted
FOUT - Required - LX
Output
Variable BCD Representation
BCD - Optional - LX
of Inputs
OUT - Variable Optional - Logical Output LD
OUTI - Variable Optional - Binary Weighted LX
Output
ATRAP X1 - Byte Tunable Required 1 Enable First-Out Trap -
0=No, 1=Yes
748 OW351_R1100
8.8 LSBFO
8.8 LSBFO
Description
The Logic Solver Boolean Fan Output (LSBFO) algorithm decodes a binary weighted input to
individual bits and generates a digital output value for each bit. The algorithm supports signal
quality propagation.
OUT1 through OUTx are the digital output values and quality (as many as 16 outputs) that
represent the bit of the input.
Functional Symbol
Algorithm Execution
The number of outputs to the LSBFO algorithm is an extensible parameter. The algorithm default
is two outputs. Use the Control Builder (see Ovation Control Builder User Guide) to add additional
output pins.
The LSBFO algorithm treats the unsigned 32-bit input as a binary weighted value. The individual
bits that comprise this value are translated to the algorithm's digital outputs.
The first digital output represents the least-significant bit of the translated input value. The second
digital output is the next least-significant bit, and so on. The quality of the input (IN) is passed to
the quality of the digital outputs (OUTx).
The following is an example of Boolean Fan Output algorithm execution for IN = 5153.
OW351_R1100 749
8.8 LSBFO
Quality Handling
The quality of the algorithm outputs (OUTx) is set equal to the quality of the algorithm input (IN).
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
750 OW351_R1100
8.8 LSBFO
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
G1 - Variable
OUT12 Integer Optional - Output 12 LD
Bit 11
G1 - Variable
OUT13 Integer Optional - Output 13 LD
Bit 12
G1 - Variable
OUT14 Integer Optional - Output 14 LD
Bit 13
G1 - Variable
OUT15 Integer Optional - Output 15 LD
Bit 14
G1 - Variable
OUT16 Integer Optional - Output 16 LD
Bit 15
OW351_R1100 751
8.9 LSCALC
8.9 LSCALC
Description
The Logic Solver Calculation (LSCALC) algorithm evaluates an expression you define to
determine the algorithm's outputs. You can use mathematical functions, logical operators,
constants, and input and output references of the LSCALC algorithm in the expression.
IN1 through INx are the inputs to the algorithm (as many as 16 inputs).
OUT1 through OUTx are the algorithm outputs (as many as 16 outputs).
Functional Symbol
Algorithm Execution
The LSCALC algorithm uses as many as 16 inputs and 16 outputs to evaluate its contained
expression. In addition, the expression evaluator uses constants and input and output parameter
references of the LSCALC algorithm that you specify to evaluate the expression. External
references from LSCALC algorithm expressions and algorithm parameters, SIF errors, and SIF
alerts are not allowed. The calculated values are assigned to algorithm outputs for use as
parameters or inputs to the control strategy in other algorithms.
Expressions
Expressions are structured text in a specific syntax and are made up of operands, operators,
functions, constants, and keywords. You can write expressions using the LSCALC editor window
(refer, Ovation Control Builder User Guide).
Note: The values of temporary variables in expressions are not preserved on load or restored
on reboot. Temporary variables start with a value of 0 (zero) on the first scan after a load or
reboot.
Quality Handling
The algorithm's outputs are initialized to Bad. You must explicitly set the qual ity of outputs by
writing to the .ST field of an OUTx parameter. The .ST field is not automatically written when the
.CV field of an OUTx parameter is written.
If the LSCALC algorithm executes a divide by zero expression, the only effect is that quality of the
output is set to BAD.
752 OW351_R1100
8.9 LSCALC
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 753
8.9 LSCALC
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
754 OW351_R1100
8.9 LSCALC
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 755
8.9 LSCALC
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
756 OW351_R1100
8.9 LSCALC
Description
The Logic Solver is capable of executing Structured Text Language expressions. Expressions
represent calculations and have a specific syntax. Expressions for the Logic Solver are created in
the Logic Solver Calculation (LSCALC) algorithm. To facilitate the writing of expressions, use the
Expression Editor. For specific help on using the Expression Editor, select the Help button in the
Expression Editor window.
CAUTION! When writing expressions using an external editor, only use a plain ASCII
text editor (Notepad is recommended). Using other editors can cause the expression to
change during the load and save process.
The following functions and features are not supported in expressions in the Logic Solver:
References to I/O DSTs.
References to external parameters (outside the module containing the LSCALC algorithm).
References to algorithm parameters.
Writing to an OUT parameter of another LSCALC algorithm.
Reading or writing .CST and .AWST fields for any parameter.
String functions.
Array declarations.
Looping constructs:
While-Do-End_While
Goto
Label
Exit
OW351_R1100 757
8.9 LSCALC
The Option Explicit behavior is enforced even if the statement is not present in the expression,
requiring declaration of temporary variables.
The Logic Solver subset of expressions supports only references to the inputs and outputs of the
Logic Solver Calc algorithm. External and dynamic references are not supported.
Notes:
The following statement types are allowed in Logic Solver Calc expressions. Statements are
separated by semicolons.
Statement types
S TATE M E N T T YP E EX AM P L E S
758 OW351_R1100
8.9 LSCALC
Assignment Statements
Syntax:
or
tempvar := expression;
or
Description
P AR T D E S C R I P TI O N
If...Then...Else...End_If
Syntax:
[Else [elsestatements]]
End_If
OW351_R1100 759
8.9 LSCALC
Description
P AR T D E S C R I P TI O N
Note: The Structured Text Language requires the use of END_IF (with underscore). However,
the Ovation software allows you to use either END_IF or ENDIF.
You can simplify complex calculations by using variables to temporarily store values. All variables
are floating point numbers. The value of the variable is retained from one scan to t he next. The
initial (first scan) value of a variable is zero. The scope/visibility of variables is limited to the Logic
Solver Calc algorithm in which they exist.
Declaring Variables
You must declare variables used in the Logic Solver, because the Option Explicit statement is
implied. Option Explicit enables checking to ensure that a variable has been created in a
VAR...END_VAR statement before it is used in an expression. Variable names must start with a
letter or underscore. Variable names can contain only letters (A-Z, a-z), numbers (0-9), and
underscores ( _ ) and are not case sensitive.
Note: Some k eywords are reserved for Ovation expressions and cannot be used as local
variable names.
Syntax:
Description
P AR T D E S C R I P TI O N
760 OW351_R1100
8.9 LSCALC
Operands
Constants
The Logic Solver Calc algorithm accepts the following constant types:
Integer.
Float.
Named Constants.
Enumerated Constants.
Named Constants
The following tables list the named constants supported in expressions for the Logic Solver.
These tables are organized into types of named constants for easy reference.
TRUE/FALSE Constants
C O N S TAN T EX P L AN A TI O N
FALSE Boolean FALSE. This is always equivalent to 0.0 whether comparing or assigning.
True Boolean TRUE. If as signing ('item' := TRUE) then 'item' is set to 1.0. If comparing to
TRUE ('item' = TRUE), the statement is TRUE if the value of 'item' is >= 1.0.
Status Constants
Status constants are implemented as an 8-bit status word. The numeric value of the status word
is determined by which bits are set.
A Logic Solver Calc algorithm's OUT parameters default to a status of BAD (0). The expression
must explicitly set the status. Status propagation is not automatic in the Logic Solver Calc
algorithms. You can set the status to a numeric value.
OW351_R1100 761
8.9 LSCALC
You can also use the GOOD, BAD or UNC constants (for example, 'out1.st' := UNC). There are
also constants for the limit status (the two least significant bits of the status word). If the signal is
also limited or constant, you can use these additional constant words (LIMITED_CONS TA NT,
LIMITED_HIGH, LIMITED_LOW), but you must combine them with the status constant (GOOD,
BAD, UNC). For example, to set the status to GOOD High Limited, use the expression 'out1.st':=
GOOD | LIMITED_HIGH. The "|" operator is a bitwise OR function. The expression writes a value
of 130 to the status.
Status Constants
C O N S TAN T EX P L AN A TI O N
BAD If assigning BAD to a parameter status, the status is set to BAD NonSpecific
NotLimited (numeric value 0).
When comparing a status to BAD, the expression evaluates to TRUE if the
status is <=63.
GOOD If assigning GOOD to a parameter's status, the status is set to
GoodNonCascade NonSpecific NotLimited (numeric value 128).
When comparing a status to GOOD, the expression evaluates to TRUE if the
status is GoodNonCascade (that is, in the range of (inclusive) 128 to 191).
To test a status for the entire range of GOOD statuses (GoodNonCascade and
GoodCascade), use the greater than or equal to operator (>=). That is, the
value is >= 128.
LIMITED_CONSTANT When a status field is compared to LIMITED_CONSTANT using the equality
operator (=), the result will be TRUE if the limit status is
LIMITED_CONSTANT.
LIMITED_HIGH When a status field is compared to LIMITED_HIGH using the equality operator
(=), the result will be TRUE if the limit status is LIMITED_HIGH.
LIMITED_LOW When a status field is compared to LIMITED_LOW using the equality operator
(=), the result will be TRUE if the limit status is LIMITED_LOW.
UNC If assigning UNC to a parameter status, the status is set to Uncertain
NonSpecific NotLimited (numeric value 64).
When comparing a status to UNC, the expression evaluates to TRUE if the
status has a value in the range of (inclusive) 64 to 127.
Operators
Unary Operators
O P E R AT O R T YP E EX AM P L E
762 OW351_R1100
8.9 LSCALC
Binary Operators
O P E R AT O R T YP E EX AM P L E
Conditional Operator
The conditional operator (?) evaluates one of two expressions, depending on the value of a
condition. The syntax for using the operator is
condition?[expression1]:[expression2]
For example, the condition out1:=(in1=1)?in2:in3 means if IN1 is equal to 1 then OUT1 is set to
the value of IN2, if IN1 is NOT equal to 1 OUT1 is set to the value of IN3.
OW351_R1100 763
8.9 LSCALC
Functions
Math Functions
FU N C TI O N DE S C R I P TI O N N O TE S
764 OW351_R1100
8.9 LSCALC
Trigonometric Functions
FU N C TI O N DE S C R I P TI O N N O TE S
ACOS (x) Arc cosine of x Returns the arccosine of x in the range 0 to pi radians. If x is
less than -1 or greater than 1, ACOS returns a zero value.
ASIN (x) Arc sine of x Returns the arcsine of x in the range -pi/2 to pi/2 radians. If x is
less than -1 or greater than 1, ASIN returns a zero value.
ATAN (x) Arc tangent of x Returns the arctangent of x in radians.
COS (x) Cosine of x Returns the cosine of x where x is in radians.
SIN (x) Sine of x Returns the sine of x where x is in radians.
TAN (x) Tangent of x Returns the tangent of x where x is in radians.
Bitwise Functions
FU N C TI O N DE S C R I P TI O N NO TE S
ASR16 (i,n) Arithmetic Shift i Right n bits. Assumes 16-bit operand for sign preservation.
ROL (x,y) Rotate x to the left by y bits. Rotates the unsigned x by y bits to the left. The
function wraps bits rotated off one end of the value
to the other end. (Same as ROTL.)
ROR (x,y) Rotate x to the right by y bits. Rotates the unsigned x by y bits to the right. The
function wraps bits rotated off one end of the value
to the other end. (Same as ROTR.)
ROTL (x,y) Rotate x to the left by y bits. Rotates the unsigned x by y bits to the left. The
function wraps bits rotated off one end of the value
to the other end. (Same as ROL.)
ROTR (x,y) Rotate x to the right by y bits. Rotates the unsigned x by y bits to the right. The
function wraps bits rotated off one end of the value
to the other end. (Same as ROR.)
ROTL16 (i,n) Rotate i Left n bits Assumes 16-bit operand.
ROTR16 (i,n) Rotate i Right n bits Assumes 16-bit operand.
SHL (x,y) Shift x left by y bits, no carry Shifts x left by y number of positions and fills with
zeroes (0).
SHR (x,y) Shift x right by y bits, no carry Shifts x right by y number of positions and fills with
zeroes (0).
OW351_R1100 765
8.9 LSCALC
Miscellaneous Functions
FU N C TI O N DE S C R I P TI O N NO TE S
Comments
Comments are statements placed in an expression that act solely as a documentation tool for
users. The content of a comment has no effect on any processing. The structures of a comment
can take two forms:
(* *) - Anything between "(*" and "*)" is treated as a comment, even if it spans lines. These
comments do not nest - the first occurrence of "*)" will terminate the comment no matter how
many "(*" have occurred.
REM - Text on a line following "REM " (note the required space) is treated as a comment.
766 OW351_R1100
8.10 LSCEM
8.10 LSCEM
Description
Use the Logic Solver Cause and Effect Matrix (LSCEM) algorithm to define interlock and
permissive logic that associates as many as 16 inputs (CSx Input Cause parameters) and 16
outputs (EFFx Output Effect parameters). Use the algorithm's MATRX parameter to identify one
or more causes that cause each effect to trip. When a CSx becomes active, all effects associated
with that CSx also trip.
An LSCEM algorithm provides the logic for one or more safety instrumented functions (SIF). CSx
inputs are typically connected from upstream voter algorithms, but may come from any source
indicating either an active (0) or inactive (1) process trip condition. The EFFx outputs are typically
connected to downstream output algorithms.
Because the Logic Solver is a de-energize to trip environment, the Normal operating value of
EFFx parameters is 1 and the Tripped value is 0.
By default, the algorithm has four CSx inputs and one EFFx output. In addition, you can use the
DCx and DEx parameters to label causes and effects.
Functional Symbol
OW351_R1100 767
8.10 LSCEM
Algorithm Execution
Each EFFx output has a corresponding STAx (Current State of Effect) parameter. EFFx can be
either 1 (Normal) or 0 (Tripped). STAx can have one of six values shown in the following figure.
The arrows in the figure show the possible transitions between state values during normal
operation.
The values of STAx depend on whether EFFx is Tripped or Normal. The following table shows the
combinations that can occur.
Combinations
EFFX STA X
Normal Normal
Trip Initiated-Delayed
Tripped Tripped
Waiting for Reset Permit
Ready to Reset
Waiting to Start Permit
After an initial load or a reboot of the Logic Solver, the initial value of every EFFx is Tripped. An
effect remains Tripped as long as any causes assoc iated with that effect are tripped. After all
associated causes clear the effect become Normal.
The default behavior of the algorithm is for EFFx output values to be a function of the value and
quality of the CSx inputs. EFFx Trips when one or more CSx associated with it is active.
768 OW351_R1100
8.10 LSCEM
You can modify this behavior with the LSCEM algorithm's parameters in a number of ways:
Use DTMx (Trip Delay for Effect) to set a delay time for EFFx to transition to Tripped.
Use RPTx (Reset Permit) to require an operator reset to transition EFFx to Normal. RPTx can
be set from process feedback or it could be a manual operator reset, such as from a key
switch.
Use SPTx (Start Permit) to force STAx to Waiting for Start Permit, which prevents EFFx from
becoming Normal unless SPTx is True.
Use CMASK (Cause Mask) to prevent selected causes from becoming active.
If you require a simple, time-based sequencing, use DTMx (Trip Delay for Effect) to prevent EFFx
from going directly to Tripped when an associated cause becomes inactive. W hile DTMx is
greater than 0 (zero), STAx (Current State) is Trip Initiated - Delayed, which keeps EFFxNormal.
To require an operator reset before an effect can return to Normal, use RRS x (Require Reset for
Effect), RPTx (Reset Permit), and RSTx (Reset). When RRSx is True, EFFx remains Tripped
when an associated cause is active. How STAx transitions depends on RPTx.
If RPTx is True (the default value), STAx transitions from "Tripped directly" to "Ready to Reset."
Configure RPTx to False to make STAx transition from "Tripped" to "Waiting for Reset Permit."
The reset permit can be written from process feedback or set by an operator from a key switch or
other hardware device. When RPTx becomes True, STAx transitions to "Ready to Reset." From
here, setting RSTx to True transitions STAx and EFFx to Normal.
Use SPTx (Start Permit) in a similar way to require permission to transition STA x from "Waiting for
Start Permit." The default value of SPTx is True, which allows the transition. If SPTx is False and
associated causes are cleared, STAx transitions from "Tripped" to "Waiting for Start Permit." To
move STAx and EFFx to Normal, set SPTx to True.
Manipulate the parameter CMASK to prevent one or more causes from becoming active under
certain process conditions. Setting a bit in CMASK to True prevents the corresponding CSx from
tripping any associated effects. If after an effect is tripped CMASK masks the causes that tripped
that effect, STAx transitions out of Tripped. The state it transitions to depends on the configuration
of the algorithm parameters FEFx, SPTx, RRSx, and RPTx. Do not manipulate CMASK directly
from runtime interfaces. To bypass process conditions use upstream voter algorithms instead.
ACSx indicates the currently active causes that are associated with EFFx that are not masked in
CMASK. FOTx indicates the cause or causes that first tripped EFFx. If additional causes become
active, FOTx does not change. FOTx retains its value until EFFx returns to Normal.
For example, if CS2 becomes active and EFF1 trips, ACS1 and FOT1 are both set to 2. If CS3
(which is also associated with EFF1) subsequently becomes active, FOT1 remains 2 and ACS1
becomes 6 (bits 2 and 3 of ACS1 are set).
OW351_R1100 769
8.10 LSCEM
The following table summarizes the state-dependent conditions necessary to transition EFFECTx
value between Tripped and Normal.
Conditions
False (All associated non-masked causes are Any associated non-masked cause is active
inactive or
and SPTx = True) SOPT is set to Trip if Bad and any CSx
quality is Bad.
True (All associated non-masked causes are Any associated non-masked cause is active
inactive or
and RPTx = True SOPT is set to Trip if Bad and any CSx
and RSTx = True quality is Bad.
and SPTx = True)
The following descriptions and tables explain each state and the conditions necessary to
transition to other allowable states. Note that the value of the RSTx parameter is set to False at
the end of every execution independent of the current value of STAx.
STAx: Tripped
If STAx is Tripped, EFFx is also Tripped. STAx remains Tripped as long as one or more
associated non-masked causes are active.
EFFx transitions from Tripped when all the associated non-masked causes are inactive. If an
operator reset is not required and SPTx is True, STAx is set to Normal. If SPTx is False, STAx
moves to Waiting for Start Permit. If an operator reset is required and RPTx is True, STAx
becomes Ready to Reset. If RPTx is False, STAx becomes Waiting for Reset Permit.
The following table summarizes the possible changes STAx can make from Tripped.
Conditions
T O T R AN S I TI O N STA X T O ... RE Q U I R E S TH E FO L L O W I N G CO N D I TI O N S
770 OW351_R1100
8.10 LSCEM
While STAx is Waiting for Reset Permit, EFFx is set to Tripped. STAx can transition to this state
from Tripped or Ready to Reset if RRSx is True. If RRSx becomes False while STAx is Waiting
for Reset Permit, STAx does not change until a reset occurs.
The following table summarizes the possible changes from Waiting for Reset Permit.
T O T R AN S I TI O N STA X T O ... RE Q U I R E S TH E FO L L O W I N G CO N D I TI O N S
STAx can transition to Ready to Reset from Tripped or Waiting for Reset Permit. EFFx is Tripped
when STAx is Ready to Reset.
To reach this state RRSx must be True. If RRSx becomes False while STAx is Ready to Reset,
the STAx does not change until a reset occurs.
If an associated non-masked cause becomes active or FEFx is Force Trip, STAx changes to
Tripped. If RPTx becomes False, STAx changes back to Waiting for Reset Permit.
If SPTx is True, the STAx changes to Normal when RSTx is True. If SPTx is False, RSTx
becoming True causes STAx to change to Waiting for Start Permit.
The following table summarizes the possible changes of STA,i>n from Ready to Reset.
Conditions
T O T R AN S I TI O N STA X T O ... RE Q U I R E S TH E FO L L O W I N G CO N D I TI O N S
OW351_R1100 771
8.10 LSCEM
STAx can change from Tripped or Ready to Reset to Waiting for Reset Permit. EFFx is Tripped
when STAx is Waiting for Start Permit.
If an associated non-masked cause becomes active or FEFx is Force Trip, STAx changes to
Tripped.
The following table summarizes the possible changes of STAx from Waiting for Start Permit.
Conditions
T O T R AN S I TI O N STA X T O ... RE Q U I R E S TH E FO L L O W I N G CO N D I TI O N S
STATEn: Normal
STAx changes when a trip is initiated, that is, when one or more non-masked causes associated
with EFFx become active. If EFFx is not being sequenced with other effects, STAx becomes
Tripped immediately. Use DTMx to set how long to delay the transition to Tripped. If DTMx is non-
zero STAx changes to Trip Initiated-Delayed.
Conditions
T O T R AN S I TI O N STA X T O ... RE Q U I R E S TH E FO L L O W I N G CO N D I TI O N S
772 OW351_R1100
8.10 LSCEM
When STAxs Trip is Initiated - Delayed the trip condition has occurred, but EFFx continues to be
Normal until DTMx seconds have elapsed.
The timer DTRx (Trip Delay Timer for Effect) decrements from DTMx each scan based on the
algorithm's scan rate. The timer continues to count down even if no causes remain active.
When DTRx reaches zero, STAx changes to Tripped even if there are no active causes.
The following table summarizes the possible changes from Trip Initiated-Delayed.
T O T R AN S I TI O N STA X T O ... RE Q U I R E S TH E FO L L O W I N G CO N D I TI O N S
Tripped DTRx = 0
or
SOPT is set to Trip if Bad and any CSx quality is Bad.
Quality Handling
The quality of the CSx inputs influences block behavior based on how the SOPT (Status Options
if Bad Input) parameter is configured. The value of SOPT impacts the calculation of ACSx. The
status of the EFFx outputs is based on the quality of the associated causes and is not affected by
the value of SOPTS.
There are three options for SOPT: Always Use Value (the default option), Use Last Good Value if
Bad, and Trip if Bad.
When SOPT is set to Always Use Value, Bad status on an associated cause has no impact on the
value of ACSx. However, a sensor failure could cause an immediate shutdown as a result of the
process value changing. The setting of Use Last Good Value if Bad prevents the transition of an
associated cause to bad quality from initiating a shutdown, because the value used to calculate
ACSx is the value the last time the quality was Good. This allows time for repair. The third option
for SOPT is Trip if Bad. If this option is set, a Bad status on a cause input trips any associated
effect.
The quality of the effect outputs is set to Bad if any unmasked associated cause has Bad quality
and the effect is not forced to Normal or Tripped; otherwise, it is set to Good.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 773
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
774 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 775
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
776 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 777
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
778 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 779
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
780 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 781
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
782 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 783
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
784 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 785
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
786 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 787
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
788 OW351_R1100
8.10 LSCEM
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
CALRT
The following table shows the alert that can appear for an LSCEM algorithm; an explanation and
the bit position is given.
This alert will be sent to the Ovation Process Historian as a SIF alert. For more information on SIF
alerts, refer, Ovation Safety Instrumented System (SIS) User Guide.
Bit description
B I T V AL U E EX P L AN A TI O N BI T P O S I TI O N
An Effect has a non-zero FOT (First Active when there is a non-zero FOTx. 1
Causes to Trip Effect).
OW351_R1100 789
8.11 LSCMP
8.11 LSCMP
Description
The Logic Solver Comparator (LSCMP) algorithm compares two values (DSCV and CMPV1 -
Input and First Comparative Value respectively) and sets a Boolean output for each of the
following comparisons: LT (Less Than), GT (Greater Than), EQ (Equal To), NEQ (Not Equal).
Additionally, the LSCMP algorithm compares the DSCV against the range defined by CMPV2 and
CMPV1 to determine the Boolean output, INRGE (In-Range Comparison Output).
Functional Symbol
Algorithm Execution
The LSCMP algorithm has two algorithm calculations; the comparison calculation and the quality
propagation.
Comparison Calculation
The LSCMP algorithm compares the DSCV input with the CMPV1 input, the primary comparison
value. Based on the relationship between DSCV and CMPV1, the LT, GT, EQ, and NEQ outputs
are set to 0 (False) or 1 (True). A secondary comparison determines if DSCV is within the range
of CMPV1 to CMPV2. If DSCV is within this range, then the INRGE output is set to 1 (True),
otherwise 0 (False).
Quality Propagation
Bad quality on any of the input values propagates to the output. If the DSCV has bad quality, all
outputs reflect this bad quality. If DSCV has good quality but CMPV1 or CMPV2 has bad quality,
then the outputs associated with the bad input are also set to bad. The quality calculation is totally
independent of the comparison calculations.
The following table shows an example of the LSCMP algorithm outputs based on different input
values.
P AR AME T E R EX AM P L E 1 EX AM P L E 2 EX AM P L E 3
790 OW351_R1100
8.11 LSCMP
P AR AME T E R EX AM P L E 1 EX AM P L E 2 EX AM P L E 3
EQ 0 0 1
NEQ 1 1 0
INRGE 1 0 1
Quality Handling
Quality of each output is set to the worst quality of the inputs for each output, except that
Uncertain status is treated as Good for determining quality.
For example, if the quality on CMPV1 is bad, the quality on LT, GT, EQ, and NEQ are all set to
BAD. Also, if the quality on CMPV1 or CMPV2 is BAD, then the quality on INRGE is BAD.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 791
8.12 LSDI
8.12 LSDI
Description
The Logic Solver Digital Input (LSDI) algorithm accesses a single digital input from a two-state
field device and makes the processed physical input available to other algorit hms. You can
configure inversion on the input value.
The input can come from a local input channel on the Logic Solver or from input channel data
sent across the SIS Net from another Logic Solver.
Functional Symbol
Algorithm Execution
The LSDI algorithm accesses a single digital input from a two-state field device and makes the
processed physical input available to other algorithms. You can configure inversion on the input
value.
After calculation, the process variable (PVD) is copied to the output (OUT).
I/O Selection
When you configure the Digital Input algorithm, you select the input channel associated with the
digital measurement by configuring the Ovation point. You select the point and the parameter the
Digital Input algorithm accesses on that channel. Note that points can be specified for channels
directly attached to this Logic Solver or channels attached to Logic Solvers that reside in the
same SIS Data Server.
When you select Digital Input Channel for the channel type, the only selectable channel
parameter is:
FVALD – The last digital value with quality reported by the channel.
You can select the Invert input option (IOP1) to process FVALD:
Invert
When Invert is selected a NOT is performed on FVALD and the resulting value is copied to PVD
and OUT.
792 OW351_R1100
8.12 LSDI
Quality Handling
When the quality becomes Bad on the input channel, FVALD, PVD, and OUT are set to Bad
quality and the BLERR parameter shows Bad PV. Quality becomes Bad when line fault detection
is enabled and a line fault has been detected.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 793
8.13 LSDO
8.13 LSDO
Description
The LSDO algorithm drives a Logic Solver output channel (for example, a Digital Output channel)
to manipulate a solenoid or other final element. In a typical application, the algorithm's input is
from an output of a Logic Solver Cause and Effect Matrix (LSCEM) algorithm. The LSDO
algorithm must be used in the same Logic Solver as the physical connection of the channel.
Functional Overview
The following algorithm diagram shows a simple application that uses the LSDO algorithm to
operate a solenoid valve.
In this example, the input to the Logic Solver Digital Output algorithm is an effect output from a
Cause and Effect Matrix algorithm. During normal operation the effect output's value is 1. When
the inputs to the Cause and Effect Matrix algorithm indicate a hazardous condition exists, the
effect output is set to 0 (zero). This, in turn, trips the output of the Digital Output algorithm, driving
the associated Logic Solver channel to close the valve.
The Logic Solver Digital Input algorithm is wired to a limit switch or other indicator to confirm that
the valve closes. If the valve does not close, the PV input to the Digital Output algorithm from the
Digital Input algorithm eventually sets a fault state in the Digital Output algorithm.
794 OW351_R1100
8.13 LSDO
This simple example does not illustrate a number of configurable functions the algorithm supports:
Options for detecting a fault state.
Timers to delay sending a signal to close the valve or set the fault state.
Requiring permission before resetting the algorithm to normal operation after being tripped.
Functional Symbol
Algorithm Execution
Because the Logic Solver is a De-energized to Trip environment the normal operating value of the
output is On (1) and the tripped value is Off (0).
To use the LSDO algorithm in a safety shutdown application, as sign IOOUT to a Logic Solver
Digital Output channel connected to a valve controller. Typically, the CASND input of the LSDO
algorithm would be wired from an EFFECT output of an upstream LSCEM algorithm. Default
LSDO algorithm behavior passes the value of CASND to OUTD.
You can wire feedback from the final element to the RDBK input parameter of the LSDO
algorithm. This input would typically be wired from an LSDI algorithm representing a limit switch.
The RDBK value becomes the PVD of the LSDO algorithm. If the configurable time CTTM expires
before PVD confirms the off state, the DALRT Failed to confirm after trip command becomes
True. If RDBK is not wired, PVD has the same value as OUTD, so confirmation is immediate.
The LSDO algorithm enters a fault state when any of three conditions is detected and a
corresponding option has been selected for the detected condition. When the fault state is active,
the algorithm forces OUTD to Off, sets the Fault State Active bit in BLERR, and sets FSTAT to
Active. The FOPx options are selected by default and include:
Enable detection based on CASND quality.
If the quality of CASND becomes Bad, FTMR begins incrementing from 0.0. If the quality
remains Bad for FTIM seconds, OUTD is forced to Off (0). FTMR continues to increment
while the quality of CASND is Bad. The fault state condition clears immediately when the
quality transitions away from Bad.
Enable detection based on output channel quality.
OUTD is forced to Off if the Logic Solver detects a short or open in the field wiring (quality of
OUTD is Bad) while OUTD is being commanded On. The LSDO algorithm reacts to this
quality by forcing the output Off to track the state of the final element. Note that FTIM has no
effect when the fault state is a result of OUTD quality.
Note: If you use this option, you must also require a reset, either in this algorithm or in an
upstream LSCEM algorithm, because an active fault state condition clears when the algorithm
drives the output Off. Requiring a reset prevents the algorithm from driving the output back to
On during the next scan.
OW351_R1100 795
8.13 LSDO
Note: If you use this option, you must also require a reset, either in this algorithm or in an
upstream LSCEM algorithm, because an active fault state condition clears when the algorithm
drives the output Off. Requiring a reset prevents the algorithm from driving the output back to
On during the next scan.
FTMR is a writeable parameter. Be advised that writing to FTMR can cause the state of OUTD to
change depending on the value written.
Determining the Value of OUTD and Writing the Output Channel Value
The following figure is the state transition diagram for OSTAT. When OSTAT is Off or Off - Ready
to Reset, the value of OUTD is Off (0) and the Logic Solver channel defined by IOOUT is written
to Off. When OSTAT is On, OUTD is On (1) and IOOUT is written to On.
Note: To require a manual reset to transition OUTD to On (1), Emerson recommends that you
configure this in an upstream LSCEM algorithm, not the LSDO algorithm. The LSCEM algorithm
has a number of features that enhance the reset logic. The ability to require resets in the LSDO
algorithm (using the RQRST parameter) is provided if you do not have voter and LSCEM
algorithms to implement shutdown logic.
796 OW351_R1100
8.13 LSDO
If you set the LSDO algorithm's RQRST parameter to True, any transition of OUTD to Off (0)
causes OUTD to remain Off until all of the following conditions are met:
CASND equals 1.
FSTAT is not active.
RST is True.
RST should be changed to True using a button on a process display. The algorithm changes RST
back to False. Do not expose RST as an input on the algorithm and wire to it. If you need to reset
an LSDO algorithm from control module logic, use an LSCALC algorithm to do a conditional
assignment to RST.
When OSTAT is Off or Off - Ready to Reset, the value of OUTD is 0 and the channel on this
Logic Solver defined by IOOUT is written to Off.
PVD normally gets its value from RDBK. If the quality of RDBK is bad quality, PVD has the same
value as OUTD. Use the invert input option in the upstream LSDI algorithm if you are using a
closed limit switch.
The DALRT parameter reports two alarm conditions set by the algorithm (inactive = 0, active = 1):
OW351_R1100 797
8.13 LSDO
Event Generation
The LSDO algorithm generates a SIF Error/SIF Alert event record when any of the following
conditions become active and the ROPx option "Event records are not generated" is not selected.
The following alerts will be sent to the Ovation Process Historian. For more information on SIF
Errors and SIF Alerts, refer to Ovation Safety Instrumented System (SIS) User Guide.
The algorithm has set DALRT Failed to confirm following a command to trip.
The algorithm has set DALRT Confirm lost while commanded On.
The command to trip was successful and RDBK has been wired.
Alarm Detection
You can configure alarms to reference bits in DALRT and BLERR. You can reference these alarm
conditions upstream of the LSDO algorithm when required.
The Failed to confirm after trip command alert in DALRT propagates to the module level and
Module Event is sent to the Ovation Process Historian when the ROP x option "Alarm conditions
do not roll up to module level" is not selected.
Quality Handling
The quality of OUTD is normally Good. If the fault state is active, the quality is Good. If the quality
on the output channel is Bad, the quality of OUTD is set to Bad. Bad SensorFailure LowLimited
indicates an open or short circuit has been detected. Bad DeviceFailure NotLimited indicates a
channel error.
The quality of PVD is that of RDBK unless its quality is not connected, in which case the quality of
PVD is the same as OUTD.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
798 OW351_R1100
8.13 LSDO
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C .
OW351_R1100 799
8.13 LSDO
DALRT
The following table shows the alerts that can appear for an LSDO algorithm and the bit position of
each alert.
Bit value
B I T V AL U E BI T P O S I TI O N
800 OW351_R1100
8.14 LSDVC
8.14 LSDVC
Description
The Logic Solver Digital Valve Controller (LSDVC) algorithm provides an interface to the Fisher
Controls DVC6000ESD digital valve controller for safety shutdown applications. The algorithm's
output is assigned to a HART Two-state Output Channel on a Logic Solver. In a typical
application the algorithm's input is from an output of a Cause And Effect Matrix (LSCEM)
algorithm. The LSDVC algorithm must be used in the same Logic Solver as the physical
connection of the channel.
Functional Overview
The LSDVC algorithm contains all of the parameters found in the Digital Output (LSDO) algorithm.
In addition, the LSDVC algorithm performs automatic and manual partial stroke testing on the
associated valve.
The following algorithm diagram shows a simple application that uses the LSDVC algorithm to
operate a DVC6000ESD digital valve controller.
OW351_R1100 801
8.14 LSDVC
In this example, the input to the Digital Valve Controller algorithm is an effect output from a Cause
and Effect Matrix algorithm. During normal operation, the effect output's value is 1. When the
inputs to the Cause and Effect Matrix algorithm indicate a hazardous condition exists, the effect
output is set to 0 (zero). This, in turn, trips the output of the Digit al Valve Controller algorithm,
driving the associated Logic Solver HART Two-state Output Channel to the configured off-current
value, which closes the valve.
The Digital Input algorithm is wired to a limit switch or other indicator to confirm that the valve
closes. If the valve does not close, the PV input to the Digital Valve Controller algorithm from the
Digital Input algorithm eventually sets a fault state in the Digital Valve Controller algorithm.
This simple example does not illustrate a number of configurable functions the algorithm supports:
Options for detecting a fault state.
Timers to delay sending a signal to close the valve or set the fault state.
Requiring permission before resetting the algorithm to normal operation after being tripped.
A number of features that support partial stroke testing.
Functional Symbol
Algorithm Execution
Because the Logic Solver is a De-energized to Trip environment, the normal operating value of
the output is On (1) and the tripped value is Off (0).
To use the LSDVC algorithm in a safety shutdown application, assign IOOUT to a Logic Solver
HART Two-state Output Channel connected to a Fisher Controls DVC6000ESD digital valve
controller. Typically, the CASND input of the LSDVC algorithm would be wired from an EFFECT
output of an upstream LSCEM algorithm. Default LSDVC algorithm behavior passes the value of
CASND to OUT.
You can wire feedback from the DVC6000ESD to the RDBK input parameter of the LSDVC
algorithm. This input would typically be wired from an LSDI algorithm representing a limit switch.
The RDBK value becomes the PVD of the LSDVC algorithm. If the configurable time CTTM
expires before PVD confirms the off state, the "DALRT Failed to confirm after trip" c ommand
becomes True. If RDBK is not wired, PVD has the same value as OUT, so confirmation is
immediate.
802 OW351_R1100
8.14 LSDVC
The LSDVC algorithm enters a fault state when any of three conditions is detected and a
corresponding option has been selected for the detected condition. When the fault state is active,
the algorithm forces OUT to Off, sets the Fault State Active bit in BLERR, and sets FSTAT to
Active. The FOPx options are selected by default and include:
Enable detection based on CASND quality.
If the quality of CASND becomes Bad, FTMR begins incrementing from 0.0. If the quality
remains Bad for FTIM seconds, OUT is forced to 0 (zero). FTMR continues to increment while
the quality of CASND is Bad. The fault state condition clears immediately when the quality
transitions away from Bad.
Enable detection based on output channel quality.
OUT is forced to Off if the Logic Solver detects a short or open in the field wiring (quality of
OUT is bad quality) while OUT is being commanded On. The LSDVC algorithm reacts to this
quality by forcing the output Off to track the state of the DVC6000ESD. Note that FTIM has no
effect when the fault state is a result of OUT quality.
Note: If you use this option you must also require a reset, either in this algorithm or in an
upstream LSCEM algorithm, because an active fault state condition clears when the algorithm
drives the output Off. Requiring a reset prevents the algorithm from driving the output back to
On during the next scan.
Note: If you use this option you must also require a reset, either in this algorithm or in an
upstream LSCEM algorithm, because an active fault state condition clears when the algorithm
drives the output Off. Requiring a reset prevents the algorithm from driving the output back to
On during the next scan.
FTMR is a writeable parameter. Be advised that writing to FTMR can cause the state of OUT to
change depending on the value written.
OW351_R1100 803
8.14 LSDVC
Determining the value of OUT and writing the output channel value
The following figure is the state transition diagram for OSTAT. When OSTAT is Off or Off - Ready
to Reset, the value of OUT is Off (0) and the Logic Solver channel defined by IOOUT is written to
Off. When OSTAT is On, OUT is On and IOOUT is written to On.
Note: To require a manual reset to transition OUT to On (1), Emerson recommends that you
configure this in an upstream LSCEM algorithm, not the LSDVC algorithm. The LSCEM
algorithm has a number of features that enhance the reset logic. The ability to require resets in
the LSDVC algorithm (using the RQRST parameter) is provided if you do not have voter and
LSCEM algorithms to implement shutdown logic.
If you set the LSDVC algorithm's RQRST parameter to True, any transition of OUT to Off (0)
causes OUT to remain Off until all of the following conditions are met:
CASND equals 1.
FSTAT is not active.
RST is True.
RST should be changed to True using a button on a process display. The algorithm changes RST
back to False. Do not expose RST as an input on the algorithm and wire to it. If you need to reset
an LSDVC algorithm from control module logic, use an LSCALC algorithm to do a conditional
assignment to RST.
When RQRST is False, OUT's value is based on the value of CASND unless the fault state is
active.
When OSTAT is Off or Off - Ready to Reset, the value of OUT is Off and the channel on this
Logic Solver defined by IOOUT is written to Off. This results in the configured OFCUR value (0 or
4 mA) being sent to the Logic Solver's HART Two-state Output Channel defined in IOOUT.
When OSTAT is On, OUT is On and the channel is written to On. This results in 20 mA being sent
to the Logic Solver's HART Two-state Output Channel.
804 OW351_R1100
8.14 LSDVC
PVD normally gets its value from RDBK. If the RDBK is Bad, PVD has the same value as OUT.
Use the invert input option in the upstream LSDI algorithm if you are using a closed limit switch.
The DALRT parameter reports two alarm conditions set by the algorithm (inactive = 0, active = 1):
Failed to confirm after trip command.
The device fails to confirm after being commanded to trip. On any transition of OUT to Off, the
algorithm starts a confirmation timer. If the value of PVD is not 0 within CTTM seconds, the
alert Failed to confirm after trip command becomes True. The alert clears when OUT
transitions to On (1).
Confirm lost while commanded On.
The device confirms Off while it is being commanded On. When OSTAT is On and PVD has
transitioned to 1, the condition is detected if PVD becomes 0, for example if the device has a
failure that causes it to confirm in the Off state. The alert clears on the next transition of
OSTAT to On.
Note: Do not attempt to initiate consecutive partial strok e tests from the logic unless you verify
that each test completes before initiating the next. Otherwise, the first test succeeds and
subsequent tests fail or are denied until the first test completes.
The partial stroke testing facility in the LSDVC algorithm is in one of three states as indicated in
the PSSTA parameter, whose state transition diagram is shown in the following figure.
OW351_R1100 805
8.14 LSDVC
The partial stroke testing state is Idle when the algorithm has not been configured to initiate tests
periodically, that is, PSPT is zero hours, and the algorithm is waiting for a manual test to be
initiated by PSSRT.
The state is Armed when PSPT is greater than zero and PSNTR is timing down. A test starts
when PSNTR reaches zero (times out), or if prior to timing out, a manual test is started.
The state transitions to PST in Progress when a test is started from Idle or Armed. The algorithm
sends a request to the IO subsystem to initiate a partial stroke test. The algorithm generates an
event based on whether the test was successful, failed, or denied. The state then transitions to
Armed or Idle based on the value of PSPT.
The PST events will be sent to the Ovation Process Historian as Module Events. For more
information on module events, refer to Ovation Safety Instrumented System (SIS) User Guide.
When a partial stroke test fails, the algorithm sets the PSALR Test failed. The alert remains set
until the next time PSSTA is PST in Progress.
The partial stroke test can be denied by the DVC6000ESD when it is in some modes of operation;
for example, it is being calibrated or a test has been initiated from Valve link, or the connected
HART device does not support partial stroke testing. When a test is denied, the algorithm sets the
PSALR Test Denied, where it remains set until the next time PSSTA is PST in Progress.
When PSSTA is Armed or Idle, the algorithm compares the elapsed time since the last successful
test (PSSNT) to the maximum allowed time between successful tests (PSRIN) and sets the
PSALR No successful test in the required interval if the time has been exceeded (unless the
required interval is zero). PSSNT is set to zero after a test suc ceeds. PSSNT does not begin
incrementing after an initial load of the Logic Solver until a successful test has occurred.
A transition can occur between Idle and Armed when PSPT is written in runtime, or on the first
scan after a load if PSPT has changed. W hen the state is Idle, changing PSPT to a value greater
than zero causes the state to change to Armed and PSNTR to be initialized. When the state is
Armed, writing PSPT to zero changes the state to Idle. When Armed, a greater than zero write to
PSPT changes PSNTR to the value written to PSPT if that value is less than the current value of
PSNTR. PSNTR is decremented when the state is Armed.
When a load of the Logic Solver occurs where there is an existing configuration running, the
current state and timer values are copied from running LSDVC algorithms to retain the values.
Event Generation
The LSDVC algorithm generates a SIF Error or Module Event record when any of the following
conditions become active and the ROPx option "Event records are not generated" is not selected:
The algorithm has set DALRT Failed to confirm following a command to trip.
The algorithm has set DALRT to "Confirm lost while commanded On."
The command to trip was successful and RDBK has been wired.
806 OW351_R1100
8.14 LSDVC
Quality Handling
The quality of OUT is normally Good. If the fault state is active, the quality is Good. If the quality
on the output channel is Bad, the quality of OUT is set to Bad. Bad SensorFailure LowLimited
indicates an open or short circuit has been detected. Bad DeviceFailure NotLimited indicates a
channel error.
The quality of PVD is that of RDBK unless its quality is Bad, in which case the quality of PVD is
the same as OUT.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 807
8.14 LSDVC
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
808 OW351_R1100
8.14 LSDVC
DALRT
The following table shows the alerts that can appear for an LSDVC algorithm and the bit position
of each alert.
B I T V AL U E BI T P O S I TI O N
PSALR
The following table shows the alerts that can appear for an LSDVC algorithm and the bit position
of each alert.
Bits
B I T V AL U E BI T P O S I TI O N
The LSDVC algorithm provides an interface to the DVC6000ESD for safety shutdown and for
partial stroke testing. The HART Two-state Output Channel provides the control signal and the
HART communications path to the digital valve controller. You can configure the output channel
to have an OFCUR of 0 mA or 4 mA. The control signal can command the valve controller to the
tripped state regardless of the configured OFCUR value. Using an OFCUR value of 4 mA allows
HART communication between the Logic Solver and the valve controller whether the valve
controller is in the normal or the trip state. When the OFCUR is 0 mA, the power is removed
entirely when the LSDVC algorithm drives the channel Off.
CAUTION! Emerson recommends keeping the travel cutoffs in the DVC6000ESD (Travel
Cutoff High and Travel Cutoff Low) at their default value of 50%. Do not set Travel Cutoff Low
below 15% or set Travel Cutoff High above 85%.
OW351_R1100 809
8.14 LSDVC
Implementation Example
Outfit the valve with a solenoid as shown in the figure below.
Use two output channels on the Logic Solver, one configured as a Digital Output Channel and
one as HART Two-state Output Channel.
Set the OFCUR parameter to 4 mA.
Use two output algorithms in the SIS module, one LSDO and one LSDVC.
Wire the EFFECTn output from the LSCEM algorithm to the CASND input on both algorithms.
An advantage of this implementation is HART communication is active whether the valve is in the
normal or trip state.
810 OW351_R1100
8.14 LSDVC
Alternate Implementation
The DVC6000ESD is not outfitted with a solenoid valve.
Use a single output channel configured as HART Two-state Output Channel.
Set the OFCUR parameter to 0 mA.
Use one output algorithm, an LSDVC algorithm, in the control module
Wire the EFFECTx output from the LSCEM algorithm to the CASND input of the LSDVC
algorithm.
An advantage of this implementation is that only one output channel is required. The
disadvantage is not having HART communication when the DVC6000ESD is in the shutdown
state.
OW351_R1100 811
8.15 LSDVTR
8.15 LSDVTR
Description
The Logic Solver Digital Voter (LSDVTR) algorithm provides a digital voter function for safety
instrumented functions. A voter algorithm monitors a number of input values and determines if
there are enough votes to trip. The LSDVTR algorithm monitors as many as 16 digital inputs. If a
configured number of the inputs vote to trip, the algorithm trips and sets the output of the
algorithm to 0 (zero).
For example, a process shutdown might be required if a tank exceeds a certain temperature.
Three temperature sensors are installed in the tank and a digital voter algorithm is configured to
monitor the sensors and trip if two of the three transmitters detect a high temperature.
Because the Logic Solver is a De-energized to Trip environment, the normal operating value of
the output is 1 (On) and the tripped value is 0 (Off).
Functional Symbol
Algorithm Execution
The LSDVTR algorithm has one or more digital inputs with quality and one digital output with
quality. The algorithm examines each input to determine whether that input is a vote to trip the
output (change it from the normal operating value to the tripped value).
Voting in the Digital Voter algorithm is an M out of N function, that is, M inputs of the total N inputs
must vote to trip. For example, the algorithm can be configured as a 2 out of 3 voter, where two of
the three inputs must vote to trip before the output is tripped. The output of the algorithm is
typically wired to an LSCEM (Cause and Effect Matrix) algorithm, which interprets the value as
either a safe or dangerous process state.
The LSDVTR algorithm has three inputs by default. The number of inputs is extensible from 1 to
16. The M value corresponds to the parameter N2TRP (default value is 2). Common voting
schemes include 2 out of 3, 1 out of 2, and 2 out of 2. Other features of the algorithm make it
useful for single transmitter applications as a 1 out of 1 voter.
A vote to trip must remain a vote to trip for a configured time (TRDLY) before the output changes
to tripped. When the vote to trip clears, it must remain clear for NDLY before the output changes
to the normal state. The default for both delays is 0.0 seconds. The trip voting function has the
status parameter TRSTS that indicates the status of the trip vote.
812 OW351_R1100
8.15 LSDVTR
It is often necessary to force a voter algorithm's output to remain at the Normal value during plant
startup to prevent a trip caused by inputs that have not stabilized at their normal operating values.
You may also want to bypass inputs to allow for sensor maintenance. By default, you can bypass
only one input of the algorithm at a time. The bypassed input cannot vote to trip.
The following sections explain how to use the BOPx options to implement startup and
maintenance bypasses.
Bypassing Inputs
If you have voter algorithms with 1 out of 2 or 1 out of 1 voting schemes you may want the ability
to bypass inputs to allow for maintenance. Voters that require multiple votes to trip can benefit
from bypass functions as well, resulting in more predictable behavior during transmitter
maintenance. Default algorithm behavior requires that BPERM be true to bypass inputs. You can
configure BPERM to be set by a display button or physical switch (digital input to the SIS module).
If your application does not require permission before inputs can be bypassed you can select the
BOPx option "Bypass permit is not required to bypass."
OW351_R1100 813
8.15 LSDVTR
The following table shows the effect the BOPx option "A maintenance bypass reduces the number
to trip" has on the actual number to trip (ANTRP) for several voting schemes. Note that in no case
is ANTRP less than one.
Effects
C O N F I G U R E D V O TI N G BOP X O P TI O N - A MAI N TE N AN C E B YP AS S R E D U C E S TH E N U MB E R
S C H E ME TO TR I P .
T H E O P TI O N I S N O T S E L E C TE D . T H E O P TI O N I S S E L E C TE D .
(U S E S C O N F I G U R E D N2 TRP) (RE D U C E S ANTRP)
814 OW351_R1100
8.15 LSDVTR
If your application requires, you can enable bypassing multiple inputs simultaneously by selecting
the BOPx option "Multiple maintenance bypasses are allowed."
If multiple bypasses are set, deselecting the BOPx option "Multiple maintenance bypasses are
allowed" prevents further bypasses being set but existing bypasses remain set. Additional
bypasses cannot be set until all existing bypasses are cleared.
You can configure a maintenance bypass to be active for a finite time using BTOUT. Its default
value is 0.0 seconds, which means no timeout is applied (maintenance bypasses remain active
until BYPx parameters become False, either by changing True BYPx parameters to False or
changing BPERM to False).
When BTOUT is non-zero, BTMR is preset to BTOUT seconds when the first BYPx parameter
becomes True (not when BPERM becomes True). Each module scan thereafter BTMR is
decremented until it times out (unless all BYPx parameters become False, in which case the
algorithm resets BTMR to 0.0). The smallest possible configured time for BTOUT parameter is
0.05 seconds. This value must be multiple of 0.05 seconds or it will be rounded off to its nearest
multiple.
BTMR is common to all inputs. The value of BTMR does not change when a second BYP x
parameter is changed to True (if multiple bypasses are allowed). When BTMR times out, the
algorithm default behavior changes all True BYPx parameters to False. If you use bypass
timeouts, do not expose BYPx parameters as algorithm inputs and wire to them. Doing so will
prevent the algorithm from removing bypasses upon timeout.
Optionally, you can use the bypass timer for indication only by selecting the BOPx option
"Maintenance bypass timeout is for indication only." This causes the timeout of BTMR to activate
a notification alarm (DALRT Expiration Reminder), but does not undo bypasses.
You can configure the algorithm to remind operators that a bypass timeout is imminent. By
default, the algorithm does not notify. There are two ways you can cause a notification:
For bypasses with a configured timeout, you can cause notification in advance of the timeout
by setting RMTIM to a non-zero value. When BTMR is non-zero but less than or equal to
RMTIM, the alarm condition DALRT Expiration Reminder is active.
The bypass timer is re-armed only after the first bypass. However, BTMR is a writeable
parameter. After notification that a timeout is about to happen, BTMR can be incremented
using a display button or some other suitable technique to extend the time.
OW351_R1100 815
8.15 LSDVTR
A second approach is available when you are using the bypass timeout for indication only,
that is, bypasses are not removed when BTMR expires (the BOPx option "Maintenance
bypass timeout is for indication only" is selected). In this case the reminder alarm condition
becomes active when BTMR times out even if RMTIM is 0.0. If RMTIM is non-zero, the
reminder occurs prior to timeout. If BTMR times out, the reminder is active and remains active
until all bypasses have been removed.
The following table describes the behavior of the bypass timeout and reminder function for three
different configuration setups.
BPERM changes to BTMR stays 0.0 BTMR stays 0.0 BTMR stays 0.0
True
First input is BTMR stays 0.0 BTMR = BTOUT s econds and BTMR = BTOUT
bypassed (BYPx begins timing down seconds and begins
changes to True) timing down
Second input is BTMR stays 0.0 BTMR continues timing down BTMR continues timing
bypassed down
(assuming the
BOPx option
"Multiple
maintenance
bypasses are
allowed" is
selected).
BTMR > RMTIM N/A No reminder No reminder
BTMR <= RMTIM No reminder Reminder alarm condition is Reminder alarm
active condition is active
Bypass timer times N/A The algorithm changes all BYPx Reminder alarm
out parameters to False. Reminder condition remains active
alarm condition clears on the until all bypasses are
following scan. removed manually.
816 OW351_R1100
8.15 LSDVTR
It is often necessary to force a voter algorithm's output to remain at the Normal value during plant
startup to prevent a trip caused by inputs that have not stabilized at their normal operating values.
This startup bypass allows the process to reach normal operating conditions without tripping. Use
the STUP parameter and associated parameters for startup bypasses. Do not use maintenance
overrides for this purpose.
Timed Startup Bypass (the BOPx option "Startup bypass duration is event-based" is not
selected)
On a rising edge of the STUP parameter, the algorithm forces OUT to the normal state value for a
configurable length of time defined by SUTM. When the countdown timer SUTMR times out, the
algorithm resumes normal trip detection. The default behavior of the algorithm is such that a
subsequent rising edge of STUP does not affect the startup time while SUTMR is timing down. To
avoid a pending trip on timeout, you can allow each rising edge of STUP to re-arm SUTMR (by
selecting the BOPx option "Startup bypass preset is allowed while active").
A reminder becomes available to STUP bypasses by selecting the BOP x option "Reminder
applies to startup bypass." When SUTMR is greater than 0.0 but less than RMTIM the reminder
alarm condition (DALRT Expiration Reminder) is active. The reminder alarm condition is common
to the timeout of maintenance and startup bypasses.
Another option is to have the startup timer expire when inputs have stabilized, that is, when there
have not been enough votes to trip for a configurable period of time. When the BOP x option
"Startup bypass expires upon stabilization" is selected, the bypass timer expires when the
process stabilizes. While SUTMR is timing down, STMR times up whenever there are not enough
votes to trip and resets whenever the trip votes equal or exceed the number required to trip.
If STMR reaches the configured STM, SUTMR resets to 0.0 and normal trip detection resumes.
While SUTMR is timing down, the algorithm increments T2STB and stops as soon as the STMR
is triggered. T2STB indicates the total number of seconds during the startup bypass until the
inputs become and remain stable (assuming SUTM is sufficiently long).
STMR does not reset at the end of the startup time period, but is reset at the beginning of a
startup and at any time during the startup when there are enough trip votes. T2STB is reset at the
beginning of a startup bypass. STMR and T2STB are processed even when the stabilization
option is not used (the BOPx option "Startup bypass expires upon stabilization" is not selected).
You can use the value of T2STB to optimize the configured SUTM.
Event-Based Startup Bypass (the BOPx option "Startup bypass duration is event-based" is
selected)
When the startup bypass expires based on an event rather than a fixed time period, select the
BOPx option "Startup bypass duration is event based." This ends the startup bypass when the
STUP parameter becomes False. STMR and T2STB are not processed. They are set to 0.0 when
STUP becomes True.
When the BOPx option "Bypass permit control should be visible in operator interface" is selected,
the algorithm faceplate contains a button which operators can use to set BPERM. Do not select
this option if logic in the SIS module is writing to BPERM (for example, a keyswitch is used to
permit bypassing).
OW351_R1100 817
8.15 LSDVTR
The following table summarizes the BOPx options and their effects.
O P TI O N W H E N O P TI O N IS S E L E C TE D W H E N O P TI O N IS N OT
S E L E C TE D
818 OW351_R1100
8.15 LSDVTR
Quality Handling
The quality of the inputs influences algorithm behavior based on how the SOPT parameter is
configured. The three choices of SOPT are:
Always Use Value — The value of the input is always used regardless of quality. In this way a
hardware failure does not necessarily cause a shutdown and time is allowed for repair.
Detected hardware failures are indicated by standard alarms on the Logic Solver card. This is
the default option.
Will Not Vote if Bad — The input value is not counted as a vote to trip if its quality is Bad.
Vote to Trip if Bad — The input value is counted as a vote to trip if the input quality is Bad.
The following table shows how several common voting schemes degrade when a single input has
bad quality based on the option chosen for SOPT.
Schemes
O R I G I N AL RE S U L TI N G V O TI N G S C H E ME F OR SOPT V AL U E S
V O TI N G S C H E ME
AL W AYS US E V AL U E 1 W I L L NO T V O TE IF V O TE TO TR I P IF BAD
BAD
The LSDVTR algorithm determines the quality of OUT the same way no matter which quality
option is chosen. The quality calculation is completely separate from the value calculation.
The quality of OUT is Good if the number of non-bypassed inputs with Good quality is greater
than or equal to ANTRP or all inputs are bypassed; otherwise, the quality is Bad. Uncertain quality
on inputs is treated as Good.
When any input has Bad quality, the DALRT Input Bad bec omes active.
OW351_R1100 819
8.15 LSDVTR
TRSTS Indication
The TRSTS parameter indicates the state of the trip vote functions. The typical value for TRSTS
is Normal, and less commonly, Tripped. As shown in the following figure, TRSTS can be delayed
when TRDLY or NDLY is non-zero and a transition is occurring between normal and tripped
states.
A fifth state, Trip Inhibited, occurs whenever a startup bypass is active or when it is not possible to
trip because there are not enough inputs participating in voting. The latter case can occur when
inputs are bypassed or when inputs have bad quality and SOPT selected is Trip inhibited.
The solid lines in the figure show the common state transitions of TRSTS expected as the
process value moves above and below the trip point. The dashed lines show less common state
transitions.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
820 OW351_R1100
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 821
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
822 OW351_R1100
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 823
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
824 OW351_R1100
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 825
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
826 OW351_R1100
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 827
8.15 LSDVTR
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
DALRT
The following table shows the alerts that can appear for an LSDVTR algorithm, an explanation of
each alert, and the bit position of each alert.
The following LSDVRT alerts will be sent to the Ovation Process Historian as SIF Alerts. For more
information on SIF Alerts, refer to Ovation Safety Instrumented System (SIS) User Guide.
Bit description
B I T V AL U E EX P L AN A TI O N BI T P O S I TI O N
828 OW351_R1100
8.16 LSLIM
8.16 LSLIM
Description
The Logic Solver Limit (LSLIM) algorithm limits an input value between two reference values. The
algorithm has options that set the output to a default value or the last value if the input becomes
out of range.
LMIND is set True (1) when the input is limited to the OHLIM value. It remains True until the input
is limited to the OLLIM value, at which time it is set False (0). It remains False until the input is
again limited to the OHLIM value.
OUTLA is a Boolean value set True when the input is limited t o the minimum value.
OUTHA is a Boolean value set True when the input is limited to the maximum value.
If the LMOPT option is CLAMP, then OUT is set to either OHLIM or OLLIM when there is a
corresponding limit violation.
You can use other LMOPT options instead of passing the clamped value to the output. If the
UseLast option is set then the output is set to the last output when the high or low limit is
exceeded. If the UseDefault option is set then the output is set to the DEFLT parameter value.
Functional Symbol
OW351_R1100 829
8.16 LSLIM
Algorithm Execution
The LSLIM algorithm restricts the output value between a high limit and a low limit. When IN is
less than or equal to the configured minimum value (OLLIM), OUT equals OLLIM and OUTLA is
set True.
When IN is greater than or equal to the configured maximum value (OHLIM), OUT equals OHLIM
and OUTHA is set True.
When the value is within the limits, OUTHA and OUTLA are set False.
If the LMOPT option is CLAMP, then OUT is set to either OHLIM or OLLIM when there is a
corresponding limit violation.
You can use other LMOPT options instead of passing the c lamped value to the output. If the
UseLast option is set then the output is set to the last output when the high or low limit is
exceeded. If the UseDefault option is set then the output is set to the DEFLT parameter value.
The following table shows an example of the Limit algorithm outputs when OLLIM = 5 and
OHLIM = 90:
830 OW351_R1100
8.16 LSLIM
Quality Handling
The quality of the outputs (OUT, OUTHA, and OUTLA) are set to the input quality. The quality of
LMIND is always Good.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N . POI N T
RE C O R D O P TI O N AL V AL U E RE C O R D
FI E L D
OW351_R1100 831
8.17 LSMID
8.17 LSMID
Description
The Logic Solver Mid Selector (LSMID) algorithm selects the mid-valued input from multiple
analog signals. This algorithm selects only from those inputs that are not bad. When there is an
even number of inputs, the average of the two middle valued inputs is used as the OUT value and
SEL is the number of the lowest-valued input of the two that are averaged.
Functional Symbol
Algorithm Execution
This algorithm selects the mid-valued input from those inputs that are not bad from as many as 16
inputs. When the algorithm has an odd number of inputs, OUT is the value of the selected input
and SEL is the number of the selected input. When the algorithm has an even number of inputs,
OUT is the average of the two mid-valued inputs and SEL is the number of the lowest-valued
input of the two mid-valued inputs. For example, an algorithm has the following inputs:
IN1 = 17
IN2 = 20
IN3 = 19
IN4 = 66
In this example OUT is equal to 19.5 (the average of IN2 and IN3) and SEL is 3 (IN3 is 19, the
least-valued of the two mid-valued inputs).
Alarm Detection
This algorithm calculates a DVACT parameter that can be used for alarming. This parameter is
True if one or more of the inputs used in the selection process is farther than DVLIM away from
the middle signal. A DVHYS parameter is used when DVACT is set for the calculation of when the
alarm has cleared.
832 OW351_R1100
8.17 LSMID
Quality Handling
Typically (see exceptions below), when an input is selected, the quality of OUT and SEL are set
to the quality of the selected input.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 833
8.17 LSMID
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
834 OW351_R1100
8.17 LSMID
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 835
8.18 LSNAND
8.18 LSNAND
Description
The Logic Solver Not AND (LSNAND) algorithm generates a digital output value based on
inverting the logical AND of two to 16 digital inputs. The algorithm supports signal quality
propagation.
IN1 through INx are the digital input values and quality (as many as 16 inputs).
Functional Symbol
Algorithm Execution
The number of inputs to the LSNAND algorithm is an extensible parameter. The algorithm default
is two inputs. Use the Control Builder (see Ovation Control Builder User Guide) to add additional
input pins.
The LSNAND algorithm examines the inputs you define and applies the logical AND function to
the inputs, then applies the logical NOT function. When all inputs are True (1), the output is False.
When one or more of the inputs is False (0), the output is True.
Quality Handling
The output quality is set to the worst quality among the selected inputs unless at least one input is
False and its quality is not Bad. When this is the case, the output quality is set to GOOD.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
836 OW351_R1100
8.18 LSNAND
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 837
8.19 LSNDE
8.19 LSNDE
Description
The Logic Solver Negative Edge Detect Trigger (LSNDE) algorithm generates a True (1) digital
output when the digital input makes a negative (True-to-False) transition since the last execution
of the algorithm. If there has been no transition, the digital output of the algorithm is False (0).
Functional Symbol
Algorithm Execution
The LSNDE algorithm is used to trigger other logical events based on the falling transition of a
logical signal. If the input value has changed from True to False since the algorithm was last
executed, the output of the algorithm is set True. If the value has not changed from True to False,
the algorithm output is set False. The following figure shows how the LSNDE algorithm responds
to a change in input:
838 OW351_R1100
8.19 LSNDE
Quality Handling
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 839
8.20 LSNOR
8.20 LSNOR
Description
The Logic Solver Not OR (LSNOR) algorithm generates a digital output value based on inverting
the logical OR of two to 16 digital inputs. When one or more of the inputs is True (1), the output is
set to False.
IN1 through INx are the digital input values and quality (as many as 16 inputs).
Functional Symbol
Algorithm Execution
The number of inputs to the LSNOR algorithm is an extensible paramet er. The algorithm default is
two inputs. Use the Control Builder (see Ovation Control Builder User Guide) to add additional
input pins.
When one or more of the inputs is True (1), the output is set to False. Otherwise, the output is set
to True.
Quality Handling
The output quality is set to the worst among the input quality. However, when at least one input is
True and its quality is not Bad, the output quality is set to Good.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
840 OW351_R1100
8.20 LSNOR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
G0 - Variable
IN4 Integer Optional - Input 4 LD
Bit 3
G0 - Variable
IN5 Integer Optional - Input 5 LD
Bit 4
G0 - Variable
IN6 Integer Optional - Input 6 LD
Bit 5
G0 - Variable
IN7 Integer Optional - Input 7 LD
Bit 6
G0 - Variable
IN8 Integer Optional - Input 8 LD
Bit 7
G0 - Variable
IN9 Integer Optional - Input 9 LD
Bit 8
G0 - Variable
IN10 Integer Optional - Input 10 LD
Bit 9
G0 - Variable
IN11 Integer Optional - Input 11 LD
Bit 10
G0 - Variable
IN12 Integer Optional - Input 12 LD
Bit 11
G0 - Variable
IN13 Integer Optional - Input 13 LD
Bit 12
G0 - Variable
IN14 Integer Optional - Input 14 LD
Bit 13
G0 - Variable
IN15 Integer Optional - Input 15 LD
Bit 14
G0 - Variable
IN16 Integer Optional - Input 16 LD
Bit 15
OUT X1 - Byte Variable Required - Output LD
OW351_R1100 841
8.21 LSNOT
8.21 LSNOT
Description
The Logic Solver NOT (LSNOT) algorithm logically inverts a digital input signal and generates a
digital output value. When the input is True (1), the output is False (0). When the input is False,
the output is True.
Functional Symbol
Algorithm Execution
The LSNOT algorithm generates an output value that is the logical NOT of its input. When the
input is False, the output is True. When the input is True (1), the output is False.
Quality Handling
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
842 OW351_R1100
8.22 LSOFFD
8.22 LSOFFD
Description
The Logic Solver Off Delay Timer (LSOFFD) algorithm delays the transfer of a False (0) digital
input value to the output by a specified time period. The algorithm supports signal quality
propagation.
IN is the digital input value and quality used to trigger the timed digital output value.
The Off-Delay Timer algorithm immediately transfers the digital input value (IN) to the output
(OUT) and resets the ETIME when IN is True (1). When IN transitions to False (0), OUT is reset
to False after a specified time period (TIMED). During this time period, ETIME tracks the time
starting when IN transitions to False until the time specified by TIMED expires.
Functional Symbol
Algorithm Execution
The following figure shows the timed response of the Off-Delay Timer algorithm.
OW351_R1100 843
8.22 LSOFFD
When IN is True, OUT is set True and the elapsed time counter (ETIME) is set to zero. When IN
is False for longer than TIMED, OUT is set False.
Quality Handling
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
844 OW351_R1100
8.23 LSOND
8.23 LSOND
Description
The Logic Solver On Delay Timer (LSOND) algorithm delays the transfer of a True (1) digital input
value to the output by a specified time period. The algorithm supports signal quality propagation.
IN is the digital input value and quality used to trigger the timed digital output value.
The On-Delay Timer algorithm immediately transfers the digital input value (IN) to OUT and resets
the ETIME when IN is False. When IN transitions to True, OUT is set True after a configured time
period (TIMED). During this time period, ETIME tracks the time starting when IN transitions to
True until the time specified by TIMED expires.
Functional Symbol
Algorithm Execution
The following figure shows the timed response of the LSOND algorithm.
When IN is False, OUT is set False and the elapsed time counter (ETIME) is set to zero. When IN
is True longer than TIMED, OUT is set True.
OW351_R1100 845
8.23 LSOND
Quality Handling
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
846 OW351_R1100
8.24 LSOR
8.24 LSOR
Description
The Logic Solver OR (LSOR) algorithm generates a digital output value based on the logical OR
of two to 16 digital inputs. When one or more of the inputs is True (1), the output is set to True.
IN1 through INx are the digital input values and quality (as many as 16 inputs).
Functional Symbol
Algorithm Execution
The number of inputs to the LSOR algorithm is an extensible parameter. The algorithm default is
two inputs. Use the Control Builder (see Ovation Control Builder User Guide) to add additional
input pins. When one or more of the inputs is True (1), the output is set to True. Otherwise, the
output is set to False.
Quality Handling
The output quality is set to the worst among the input qualities. However, when at least one input
is True and its quality is not Bad, the output quality is set to GOOD.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 847
8.24 LSOR
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
G0 - Variable Optional
IN5 Integer - Input 5 LD
Bit 4
G0 - Variable Optional
IN6 Integer - Input 6 LD
Bit 5
G0 - Variable Optional
IN7 Integer - Input 7 LD
Bit 6
G0 - Variable Optional
IN8 Integer - Input 8 LD
Bit 7
G0 - Variable Optional
IN9 Integer - Input 9 LD
Bit 8
G0 - Variable Optional
IN10 Integer - Input 10 LD
Bit 9
G0 - Variable Optional
IN11 Integer - Input 11 LD
Bit 10
G0 - Variable Optional
IN12 Integer - Input 12 LD
Bit 11
G0 - Variable Optional
IN13 Integer - Input 13 LD
Bit 12
G0 - Variable Optional
IN14 Integer - Input 14 LD
Bit 13
G0 - Variable Optional
IN15 Integer - Input 15 LD
Bit 14
G0 - Variable Optional
IN16 Integer - Input 16 LD
Bit 15
OUT X1 - Byte Variable Required - Output LD
848 OW351_R1100
8.25 LSPDE
8.25 LSPDE
Description
The Logic Solver Positive Edge Trigger (LSPDE) algorithm generates a True (1) digital output
when the digital input makes a positive (False-to-True) transition since the last execution of the
algorithm. If there has been no transition, the digital output of the algorithm is False (0).
Functional Symbol
Algorithm Execution
Use the LSPDE algorithm to trigger other logical events based on the rising transit ion of a logical
signal. If the input value has changed from False to True since the algorithm was last executed,
the output of the algorithm is set True. Otherwise, the output is False. The following drawing
shows how the Positive Edge Trigger algorithm responds to a change in input:
OW351_R1100 849
8.25 LSPDE
Quality Handling
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
850 OW351_R1100
8.26 LSRET
8.26 LSRET
Description
The LSRET algorithm generates a True (1) digital output after the input has been True for a
specified time period. The time for which the input has been True and the output value are reset
only when the reset input is set True.
RST is the digital input value and quality used to reset OUT and ETIME.
Functional Symbol
Algorithm Execution
The algorithm output (OUT) is set True when the input (IN) has been True for a specified time
period (TIMED) while the RST input is False (0). When the RST input is False and the IN value
transitions to False, the ETIME stops and retains its value until IN transitions to True again. When
the RST value transitions to True, the ETIME is reset to zero and OUT is set False.
The following figure shows the timed response of the Retentive Timer algorithm.
OW351_R1100 851
8.26 LSRET
Quality Handling
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
852 OW351_R1100
8.27 LSRS
8.27 LSRS
Description
The Logic Solver Reset/Set Flip-Flop (LSRS) algorithm generates a digital output value based on
NOR logic of reset and set inputs:
If the reset input is False (0) and the set input is True (1), the output is True. The output
remains True, regardless of the set value, until the reset value is True. When reset becomes
True, the output is False.
When both inputs are True, the output is False.
When both inputs become False, the output remains at its last state and can be either True or
False.
Functional Symbol
Algorithm Execution
The LSRS algorithm is used to detect when the set input (SET) transitions to True. It holds the
output True, even when SET transitions to False, until another event changes the reset input
(RST) to True.
The following table shows the algorithm output value based on the possible SET and RST
combinations:
OW351_R1100 853
8.27 LSRS
Quality Handling
The output quality is equal to the worst quality among the inputs.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
854 OW351_R1100
8.28 LSSEQ
8.28 LSSEQ
Description
The LSSEQ algorithm associates system states with actions. The combination of LSSTD
algorithms (which associate transitions with states you define) and LSSEQ algorithms provide a
sequencing capability.
The LSSEQ algorithm can have as many as 16 states and 16 digital outputs. For each state, the
algorithm sets the value of the outputs based on the pattern defined by the MATRX parameter.
See the topic "To access the LSSEQ advanced editor window" in the Ovation Control Builder
User Guide for more information on the MATRIX parameter. The algorithm can step through the
states in sequence using internal increment and decrement parameters, or the algorithm can be
set to specific states (and the corresponding outputs set) from logic external to the algorithm.
Functional Symbol
Algorithm Execution
The LSSEQ algorithm has a configurable number of states and a configurable number of outputs.
By default the number of states is 16 and the number of outputs is 2. The MATRX parameter
defines a mask for each state that indicates how the outputs should be set when the algorithm is
in that state. The LSSEQ algorithm's state can be set in two ways:
If the STIND parameter is 1 (True) then STATE is set to the value of the STIN parameter.
This allows the algorithm to be driven from another algorithm, for example a State Transition
algorithm (LSSTD) whose STATE parameter is wired to STIN of the LSSEQ algorithm.
If the STIND parameter is 0 (False) the algorithm remains at its current state unless either the
INC or DEC parameter is set to True, thereby incrementing or decrementing STATE
accordingly. If the WRAP parameter is False STATE stops incrementing when the integer
value of STATE equals NOSTA and stops decrementing when the integer value of S TATE
equals 1. If the WRAP parameter is True STATE wraps around from NOSTA to 1 for an
increment and from 1 to NOSTA for a decrement.
You can disable the LSSEQ algorithm by setting the ENBLE parameter to False. This sets STATE
to 0 and sets all the outputs to 0 (False). When the ENBLE parameter is changed to True and the
STIND parameter is not set, the algorithm sets STATE to 1 and drives the outputs based on the
mask for state 1.
If the STIND parameter is 0 (False), setting RST to True resets STATE back t o state 1. RST
automatically resets to False after use.
OW351_R1100 855
8.28 LSSEQ
Overrides
In normal operation the outputs of the algorithm are a function of the current state and the
configured pattern for that state. However, the parameter OMASK can be manipulated to prevent
one or more outputs from being True. Setting bits in OMASK to 1 masks the corresponding output
from becoming 1 (True) regardless of what is configured for that state.
Quality Handling
The algorithm behavior is not affected by the quality of the input paramet ers. The algorithm's
outputs always have good quality.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
856 OW351_R1100
8.28 LSSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 857
8.28 LSSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
858 OW351_R1100
8.28 LSSEQ
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 859
8.29 LSSR
8.29 LSSR
Description
The Logic Solver Set/Reset Flip-Flop (LSSR) algorithm generates a digital output value based on
NAND logic of set and reset inputs:
When the reset input is False (0) and the set input is True (1), the output is True. The output
remains True until the reset input is True and the set input is False.
When the reset input is True, the output is equal to the set input.
When both inputs are True, the output is True.
When both inputs become False, the output remains at its last state and can be either True or
False.
Functional Symbol
Algorithm Execution
The LSSR algorithm is used to detect a change in the set input (SET). When the reset input
(RST) is False, OUT is set True after SET changes to True. OUT remains True, even when SET
returns to False, and remains True until RST is changed to True and SET is False.
The following table shows the algorithm output value based on the possible SET and RST
combinations:
860 OW351_R1100
8.29 LSSR
Quality Handling
The output quality is equal to the worst quality among the inputs.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 861
8.30 LSSTD
8.30 LSSTD
Description
The Logic Solver State Transition Diagram (LSSTD) algorithm implements a user-defined state
machine in the Logic Solver. A state machine describes the possible states, and the transitions
between those states, that can occur in a system. The combination of LSSTD and LSSEQ
algorithms provide a sequencing capability. LSSTD algorithms associate transitions with system
states. LSSEQ algorithms associate system states with actions.
State machines may be described by state transition diagrams. For example, a burner
management system could be defined by the following diagram of the allowed transitions (arrows)
between system states (circles).
The algorithm's MATRX parameter describes the state diagram (the association of states and
input transitions). See the topic "To access the LSSTD advanced editor window" in the Ovation
Control Builder User Guide for more information on the MATRIX parameter.
Functional Symbol
862 OW351_R1100
8.30 LSSTD
Algorithm Execution
The Logic Solver State Transition Diagram (LSSTD) algorithm implements a state transition
diagram. The algorithm can have up to 16 states (outputs) and up to 16 transitions (inputs). You
configure the number of transition inputs, the number of output states, and a matrix of states
versus transitions where each entry indicates the state that the algorithm goes to when that
transition is active. By default the number of inputs (transitions) is 3 and the number of outputs
(states) is 2.
The LSSTD algorithm has a digital input with status (INx) for each transition, a STATE indicating
the current state, and a digital output with status for each state (OUTx). When the algorithm
executes it loops through the transition inputs until an active input is found that has an entry for
the current state in the state-transition matrix. STATE is then set to the matrix value and the
corresponding OUTx output is also set. Once an active transition is found that has a non-zero
matrix entry, no more transitions are checked. If the c urrent state is a terminal state, that is, there
are no entries in the matrix for this state that are not zero, or if masked transitions prevent
transition to another state, the TRMNL parameter is set to True.
The initial state for the algorithm is state 1. When RST is set to True, the algorithm returns to the
initial state. The RST parameter automatically resets to False after it has been used.
The LSSTD algorithm also has an ENBL input. When ENBL is False, STATE is set to 0 and all
OUTx outputs are set to 0. When ENBL is changed from False to True the algorithm is forced into
state 1 and OUT1 is set to True. This allows an LSSTD algorithm to control other LSSTD
algorithms which implement sub-state machines. The Boolean output of the final sub-state
machine can then be wired into a transition of the top level algorithm which causes the sub-state
algorithm ENBL parameter to be set to False.
Overrides
In normal operation the algorithm transitions between states based on the beginning state, the
active transition inputs, and the configuration of the state-transition matrix. The normal behavior
can be overridden in two ways.
The parameter TMASK prevents one or more transition inputs from causing the state of the
algorithm to change. Setting bits in TMASK prevent the algorithm from seeing the
corresponding transition as active regardless of the transition's value or status.
The algorithm can also be forced into a specific state by setting the STIND parameter to 1
and setting STIN to the desired state.
The OVRRD parameter indicates when the normal logic is being overridden. It can take on one of
the following values from lowest to highest priority:
None — No overrides in effect.
All Associated Transitions Masked — All transitions that would be active have been masked
in TMASK.
State Forced — STIND has been set to 1.
OW351_R1100 863
8.30 LSSTD
Quality Handling
The quality of the input transition parameters influences the behavior of the LSSTD algorithm
based on the configuration of the SOPT parameter. The SOPT parameter has three values:
Always Use Value (the default) — Use an input's value regardless of the input's quality.
Ignore If Bad — If an input's quality is Bad, the input value has no effect on the algorithm.
Use Last Good Value — While an input's quality is Bad, any change in input value is ignored.
Quality is not propagated to OUTx parameters, which always have Good quality.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
864 OW351_R1100
8.30 LSSTD
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 865
8.30 LSSTD
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
866 OW351_R1100
8.30 LSSTD
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 867
8.30 LSSTD
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
868 OW351_R1100
8.31 LSTP
8.31 LSTP
Description
The Logic Solver Timed Pulse (LSTP) algorithm generates a True (1) digital output for a specified
time duration when the input makes a positive (False-to-True) transition. The output remains True
even when the input returns to False. The output returns to False only when the elapsed time is
more than the specified time duration. A False to True transition causes the timer to restart from
zero but the output remains True.
Functional Symbol
Algorithm Execution
The LSTP algorithm sets the output True for a specified time. You can use the algorithm to run a
motor for a specified time period.
The following figure shows the timed response of the LSTP algorithm.
OW351_R1100 869
8.31 LSTP
Quality Handling
The algorithm always sets the quality of OUT to Good.
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
870 OW351_R1100
8.32 LSXNOR
8.32 LSXNOR
Description
The Logic Solver Not Exclusive OR (LSXNOR) algorithm performs an exclusive OR of two inputs,
then performs a NOT on that result to produce an output. If neither input is True or if both inputs
are True, the output of the algorithm is True. If either input is False, the output of the algorithm is
False.
Functional Symbol
Algorithm Execution
The following table shows the algorithm output value based on the possible IN1 and IN2
combinations:
Quality Handling
If one or more of the inputs of the LSXNOR algorithm has Bad quality, the output has Bad quality.
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N . POI N T
RE C O R D O P TI O N AL V AL U E RE C O R D
FI E L D
OW351_R1100 871
8.33 LSXOR
8.33 LSXOR
Description
The Logic Solver Exclusive OR (LSXOR) algorithm performs an exclusive OR of two inputs to
produce an output that is True if one, and only one, of the inputs is true.
Functional Symbol
Algorithm Execution
The following table shows the algorithm output value based on the possible IN1 and IN2
combinations:
Quality Handling
If one or more of the inputs of the LSXOR algorithm has bad quality, the output has bad quality.
Algorithm Definitions
NAME LC A L G T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
872 OW351_R1100
8.34 SIS connector algorithm table
SIS connector algorithms are used to connect data between control modules and between Logic
Solvers. These algorithms accept points into sheets from inside and from outside the SIS
network.
Algorithm description
A L G O R I TH M DE S C R I P TI O N FU N C TI O N
SECPARAM (see Connects data Connects data on sheets that belong to the same SIS Data
page 876) Server.
SECPARAMREF Connects data Accepts data from a SECPARAM algorithm on sheets that
(see page 878) belong to the same SIS Data Server.
GSECPARAMREF Connects data Accepts data from a SECPARAM algorithm on sheets that
(see page 874) belong to different SIS Data Servers.
NONSECPARAM Connects data Accepts points into a sheet from outside the SIS network.
(see page 875)
OW351_R1100 873
8.35 GSECPARAMREF
8.35 GSECPARAMREF
Description
Note: The GSECPARAMREF algorithm is only supported in Ovation SIS. It is not supported in
Ovation SIS CHARMs.
The SECPARAM and GSECPARAMREF algorithms operate as a pair. This pair (parameter and
parameter reference) is required when the SIS sheets do not belong to the same SIS Data
Server.
Global secure parameters are similar to SIS secure parameters, but may be published globally.
When using global secure parameters, you must also configure the Logic Solver to publish its
secure parameters globally so that you can connect to other SIS Data Servers. This sends the
secure parameter data to the SISNet Repeater and then to all other Logic Solvers. A total of 32
Logic Solvers can publish globally.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
874 OW351_R1100
8.36 NONSECPARAM
8.36 NONSECPARAM
Description
Ovation SIS
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 875
8.37 SECPARAM
8.37 SECPARAM
Description
Note: The Ovation SIS through SIS Data Server (SDS) allows LSs to communicate with other
LS and the Controller. The Ovation SIS CHARMs through Local Safety Network (LSN) allows
CSLSs to communicate with other CSLS and the Controller.
The SECPARAM algorithm is used as a connector. SECPARAM accepts points into a sheet from
inside a SDS/LSN and transfers data to a SECPARAMREF algorithm.
Use the SECPARAM algorithm when connecting a SIS sheet in a Control Module to another
sheet that belongs to the same SDS/LSN. The SECPARAM algorithm can connect sheets in the
same or different Control Modules or Logic Solvers, as long as they all belong to the same SIS
Data Server/LSN.
The SECPARAM and SECPARAMREF algorithms operate as a pair. This pair (parameter and
parameter reference) is required when the SIS sheets belong to the same SDS/LSN. The number
of secure parameters a module can contain depends on the number of available secure
parameters available in the Logic Solver the module is assigned to.
Ovation SIS
Ovation SIS supports 16 high density secure parameters on a Logic Solver. Secure parameters
can be read by other modules in Logic Solvers on the same SIS Data Server. You must configure
a Logic Solver to publish its secure parameters globally so that you can connect to other SIS Data
Servers (see GSECPARAMREF (see page 874)). This sends the secure parameter data to the
SISNet Repeater and then to all other Logic Solvers. A total of 32 Logic Solvers can publish
globally.
Note: The GSECPARAMREF algorithm is only supported in Ovation SIS. It is not supported in
Ovation SIS CHARMs.
Note: The Ovation SIS CHARMs product does not support or use SIS Data Server (SDS) and
SISNet Repeater.
876 OW351_R1100
8.37 SECPARAM
Functional Symbol
Algorithm Definition
N AME LC AL G . T YP E RE Q U I R E D / D E F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 877
8.38 SECPARAMREF
8.38 SECPARAMREF
Description
Note: The Ovation SIS through SIS Data Server (SDS) allows LSs to communicate with other
LS and the Controller. The Ovation SIS CHARMs through Local Safety Network (LSN) allows
CSLSs to communicate with other CSLS and the Controller.
The SECPARAMREF algorithm is used as a connector, and works in conjunction with the
SECPARAM algorithm. SECPARAMREF accepts points into a sheet that belong to the same
SDS/LSN and accepts data from a SECPARAM (see page 876) a (see page 876)lgoritm.
Ovation SIS
To connect to a sheet that belongs to a different SDS, use GSECPARAMREF (see page 874)
algorithm.
Note: The GSECPARAMREF algorithm is only supported in Ovation SIS. It is not supported in
Ovation SIS CHARMs.
Note: The Ovation SIS CHARMs product does not support or use SIS Data Server (SDS) and
SISNet Repeater.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / DE F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
878 OW351_R1100
SECTION 9
IN THIS SECTION
Migration refers to the process of upgrading a system from WDPF to Ovation, while still using the
original Q-Line wiring and/or Q-Line I/O cards. This method of upgrade can save a company time
and money since the existing field wiring does not have to be replaced.
Typically, ladders are used only by Migration projects. After a system has been migrated, any
ladder logic that was used in the original system is preserved in the new Ovation system, and
may need to be edited.
Ladder control can be edited or built with a special user interface provided in the Control Builder.
The ladder control application contains a set of functions which duplicates relay -type circuits,
devices, and the operation sequence of a conventional, electrical relay system.
A ladder is edited or built in a dialog box that consists of a 7 by 9 cell array. Each cell can be
edited to display a shape (such as a coil, contact, or special function) and to store information
about that shape.
These shapes or functions form a relay diagram that depicts the types of inputs, controls, and
outputs. The diagram shows how these user-selected inputs are configured to cause an assigned
device to operate in a desired manner.
The information provided here is applicable for systems that have migrated control and databases
from a WDPF system to an Ovation system. The following table lists the Special Functions names
and parameter interface.
OW351_R1100 879
9.2 WDPF to Ovation reference table
The following table shows the WDPF algorithms (text, graphic, and special functions) with the
equivalent Ovation algorithms. The last column of the table tells you where you can find more
information about the algorithm.
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
880 OW351_R1100
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
OW351_R1100 881
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
882 OW351_R1100
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
OW351_R1100 883
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
884 OW351_R1100
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
OW351_R1100 885
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
886 OW351_R1100
9.2 WDPF to Ovation reference table
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
OW351_R1100 887
9.3 WDPF special functions to Ovation algorithms
S TAN D AR D W DPF EQ U I V AL E N T S O U R C E D O C U ME N T
A L G O R I TH M O V ATI O N A L G O R I TH M
The following table lists the original WDPF Special Function parameter and the corresponding
migrated Ovation Special Function parameter names.
888 OW351_R1100
9.3 WDPF special functions to Ovation algorithms
OW351_R1100 889
9.3 WDPF special functions to Ovation algorithms
890 OW351_R1100
9.3 WDPF special functions to Ovation algorithms
OW351_R1100 891
9.3 WDPF special functions to Ovation algorithms
892 OW351_R1100
9.4 What are migration algorithms?
The MODETRANS and SETSTATES algorithms are specifically used for migration.
OW351_R1100 893
9.4 What are migration algorithms?
9.4.1 M ODETRANS
Description
The MODETRANS algorithm transfers the Ovation tracking point status bit information (bits 16 -
32 stored in the 3W field) to an Ovation packed point. The Ovation packed point represents the
WDPF mode point. By recreating the WDPF mode point in Ovation, it allows the custom graphics
to remain the same because the same WDPF point is used.
Functional Symbol
Algorithm Definitions
N AME LC AL G . T YP E RE Q U I R E D / DE F AU L T DE S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
894 OW351_R1100
9.4 What are migration algorithms?
The SETSTATES algorithm sets tracking bits in the Ovation tracking point based on the inputs
that are connected.
Functional Symbol
Algorithm Definitions
N AME LC A L G . T YP E RE Q U I R E D / D E F AU L T D E S C R I P TI O N MI N .
RE C O R D O P TI O N AL V AL U E POI N T
FI E L D RE C O R D
OW351_R1100 895
Index
2 D
2XSELECT • 595 DBEQUALS • 122
Determining hardware addressing • 3
A DEVICE • 124
AAFLIPFLOP • 48 Device Control algorithms • 23
ABSVALUE • 50 DEVICESEQ • 144
Alarm Manipulation algorithms • 21 DEVICEX • 148
ALARMLIMIT • 51 DFIELD • 167
ALARMMON • 56 DIGCOUNT • 168
Algorithm classification groups • 20 DIGDRUM • 169
Algorithm classifications • 19 DIGITAL DEVICE • 174
Algorithm functional symbols • 47 DISTRIBUTOR • 195
Algorithm status and mode settings • 4 Distributor Algorithm Definitions • 206
Algorithms • 1 DIVIDE • 215
Algorithms that support tracking • 12 DROPSTATUS • 218
ANALOG DEVICE (ADEVICE) • 58 DRPI1A • 221
ANALOGDRUM • 61 DVALGEN • 223
AND • 65 DXCSTATUS • 224
ANNUNCIATOR • 66 DXCSTATUS functions • 241
ANTILOG • 69 DXCSTATUS state • 243
ARCCOSINE • 71 DXCSTATUS tuning parameters and site
ARCSINE • 72 ratings • 239
ARCTANGENT • 73 E
Artificial I/O algorithms (signal generators) •
21 Error information • 6
ASSIGN • 74 Exclusion (EXCL) • 196
ATREND • 75
AVALGEN • 77 F
B FACEPLATE • 245
FACEPLATE -- DIGITAL DEVICE template •
BALANCER • 78 248
Base Gain • 201 FACEPLATE -- MASTATION template • 252
BCDNIN • 83 FFAI • 674
BCDNOUT • 85 FFAO • 677
BILLFLOW • 87 FFDI • 680
Binary to hexadecimal conversion • 6 FFDO • 683
Boolean Logic algorithms • 22 FFISEL/FFISELX • 686
Boolean Logic Memory algorithms • 22 FFMAI • 694
BUFFER • 89 FFMAO • 698
FFMDI • 700
C FFMDO • 704
CALCBLOCK • 103 FFPID • 708
CALCBLOCKD • 112 FIELD • 253
COMPARE • 118 Fieldbus algorithms • 24
Copyright Notice • 2 FIFO • 255
Correction Gain • 199 Filtering algorithms • 25
COSINE • 119 First Pass Startup Options • 205
COUNTER • 120 FIRSTOUT • 258
Custom Calculation algorithms • 23 FLIPFLOP • 263
OW351_R1100 897
Index
898 OW351_R1100
Index
SATOSP • 475
P SECPARAM • 872
PACK16 • 366 SECPARAMREF • 874
PID • 368 SELECTOR • 476
PIDFF • 385 Sequential Logic algorithms • 37
PNTSTATUS • 398 SETPOINT • 478
Point Format Conversion algorithms • 33 SETSTATES • 891
Point Quality • 206 Setting tracking signals • 15
POLYNOMIAL • 400 SID Storage • 206
PREDICTOR • 402 Signal Compensation algorithms • 38
PRIORITY • 407 SIMTIME • 481
PRIORITY Algorithm Package • 406 SINE • 481
Priority Deadband (PDB) • 200 Single precision floating point numbers • 6
PRIORITY-E XT • 424 SIS algorithm types • 716
PRIORITY-RE J • 428 SIS connector algorithm table • 869
Propagated point quality • 4 SLCAIN • 482
PSLT • 431 SLCAOUT • 485
PSVS • 432 SLCDIN • 488
Pulse Accumulator Module Interface SLCDOUT • 491
algorithms • 34 SLCPIN • 494
PULSECNT • 433 SLCPOUT • 497
PVSPSLI • 605 SLCSTATUS • 500
PWDIN • 608 SMOOTH • 504
SOFTSOE • 506
Q SPTOSA • 516
SQUAREFOOT • 517
QAVERAGE • 434
SSLT • 520
Q-Line algorithms • 603, 604
Standard algorithm reference pages • 43
Q-Line Interface algorithms • 35
STAT bits used with function blocks • 673
QLIPASS • 611
STATISTICS • 521
QPACMD • 615
STEAMFLOW • 538
QPACMPAR • 621
STEAMTABLE • 540
QPASTAT • 622
STEPTIME • 543
QSDDEMAND • 623
SUM • 548
QSDMODE • 625
Summary of Changes • 3
QSRMA • 626
Switching Between Internal and External
QUALITYMON • 435
Inputs • 204
QVP • 632
System Diagnostic algorithms • 39
R System Time Function algorithms • 39
SYSTEMTIME • 552
RAMPGEN • 436
RATECHANGE • 440 T
RATELIMIT • 442
TANGENT • 553
RATEMON • 445
Time/Counter Function algorithms • 40
Redundant Signal Processing algorithms •
TIMECHANGE • 554
36
TIMEDETECT • 555
RESETSUM • 447
TIMEMON • 556
RLICONFIG • 450
Tracking • 9
RPACNT • 453
Tracking (best practices) • 11
RPAWIDTH • 454
Tracking (purpose of) • 10
RSRSTATUS • 455
Tracking algorithms • 41
RUNAVERAGE • 465
Tracking examples • 14
RUNTIME • 467
Tracking Inputs (TKIN[1-8]) • 198
RVPSTATUS • 472
Tracking Out (TOUT) • 202
S Tracking process • 11
TRANSFER • 559
SAMPLER (Controlled Sampler) • 175 TRANSLATOR • 567
OW351_R1100 899
Index
TRANSPORT • 571
TRNSFINDX • 573
TRUTHTB L • 574
TSLH • 578
TSLP • 579
Turbine Interface algorithms • 42
U
Understanding algorithm descriptions • 46
Understanding the Ovation SIS algorithms •
713
Understanding tracking • 9
UNPACK16 • 580
V
VALVE (Controlled Valve) • 192
VALVE NC (Non-Controlled Valve) • 177
VCLTP • 582
VSLT • 583
W
WDPF special functions to Ovation
algorithms • 884
WDPF to Ovation reference table • 876
What are Foundation Fieldbus algorithms? •
671
What are Ovation SIS Logic Solver
algorithms? • 714
X
X3STEP • 585
XFLOW • 635
XMA2 • 641
XML2 • 652
XOR • 584
XPIDSLI • 657
900 OW351_R1100