You are on page 1of 52

TriStation 1131

Turbomachinery Control Software

Surge Functions Library


SGB400.LT2

Document No.: SGB400.doc


September 25, 2003

Webster, Texas
Contents iii

CONTENTS

CONTENTS....................................................................................................................III

INTRODUCTION .............................................................................................................1

SURGE CONTROL FUNCTIONS (LIBRARY SGB400) ..................................................2


HC_1_02: FLOW CALCULATION # 1 - FUNCTION .............................................................. 2
HC_2_02: FLOW CALCULATION # 2 - FUNCTION .............................................................. 3
HC_3_02: FLOW CALCULATION # 3 - FUNCTION .............................................................. 5
HC_4_02: FLOW CALCULATION # 4 - FUNCTION .............................................................. 6
PRAT02:PRESSURE RATIO CALCULATION - FUNCTION................................................. 7
OPPOINT02: OPERATING POINT - FUNCTION BLOCK ..................................................... 8
SRG_LINE: SURGE LINE - FUNCTION ................................................................................ 12
RECAL: RECALIBRATE - FUNCTION BLOCK ................................................................... 15
SAFETY_MAR: TOTAL SAFETY MARGIN - FUNCTION.................................................. 16
TOTAL SAFETY MARGIN ..................................................................................................... 17
SP_HOVER: SETPOINT HOVER - FUNCTION .................................................................... 18
PID_SRG02: SURGE PID - FUNCTION BLOCK ................................................................... 20
ADPTV_TN1: ADAPTIVE TUNING - FUNCTION ............................................................... 22
ADPTV_TUN03: ADAPTIVE TUNING - FUNCTION .......................................................... 24
SRG_OVRD02: SURGE OVERRIDE - FUNCTION............................................................... 26
VALVE_SEL05: VALVE SELECT – FUNCTION BLOCK ................................................... 28
DUMP_SOL: DUMP SOLENOID - FUNCTION..................................................................... 31
SPD_BIAS: SPEED SETPOINT BIAS - FUNCTION.............................................................. 32
SIGMA02: SIGMA EXPONENT - FUNCTION ...................................................................... 33
T_SIGMA02: SUCTION / DISCHARGE - FUNCTION.......................................................... 34
T_AVG_FLOW02: FLOW COMBINED TEMP - FUNCTION............................................... 35
M_FLOW02: MASS FLOW CORRECTION - FUNCTION ................................................. 36
SPD_SRG_DECPL03: SPEED / SURGE DECOUPLE – FUNCTION BLOCK ..................... 37
LS_AVG: LOAD SHARING AVERAGE - FUNCTION ......................................................... 42
LS_HILIM: LOAD SHARING HIGH - FUNCTION ............................................................... 43
LS_BIAS02: LOADSHARE BIASING - FUNCTION BLOCK............................................... 44
SCALES - FUNCTION ............................................................................................................. 46

September 25, 2003 SGB400.doc


Contents iv

APPENDIX A: INVENSYS SYSTEMS INC. / TRICONEX TMC LIBRARIES


SOFTWARE SITE LICENSE AGREEMENT ............................................................47

September 25, 2003 SGB400.doc


Introduction 1
Invensys Systems, Inc.

INTRODUCTION
This manual contains the descriptions for the library functions used in the Triconex 1131 Surge
Control System. The following pages contain an example of how the library functions can be
linked together in a TS1131 program.
It is highly suggested that persons using this library contact the Triconex Turbomachinery
Consultants Department to verify proper usage of the functions.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 2
Invensys Systems, Inc.

Surge Control Functions (Library SGB400)


HC_1_02: Flow Calculation # 1 - function

Purpose
This module calculates the compressor operating point when the flow orifice is located in the
compressor suction.

Description
This function uses the analog inputs for flow; suction and discharge pressure, and calculates the
compressor operating point on the compressor map. This calculated operating point is the basis
for the control action used in the TS3000.

The following equation is used if the flow orifice is located in the compressor suction. Since the
pressure of the flowing suction is the same as the pressure of the flowing orifice and the base
pressure of the compressor and orifice is the same, the equation simplifies to:

 Psb * Psb 
rHc = H_pct ⋅  
 Pfob * (Ps + Ps_abs_cor) 

Notes: Psb must be entered in absolute units. Ps may be either absolute or gage. Ps_abs_cor is
used to convert gage pressures to absolute.

The function parameters are as follows:

VAR Parameter Type Description


INPUT H_pct REAL Differential Pressure across the orifice
in %
Pfob REAL Pressure, absolute orifice base (design
pressure from data sheet.)
Ps REAL Pressure, measured at the compressor
suction
Ps_abs_cor REAL Correction of pressure from gage to
absolute units
Psb REAL Pressure, compressor base (design
pressure from data sheet)

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 3
Invensys Systems, Inc.

HC_2_02: Flow Calculation # 2 - Function


Purpose
This module calculates the compressor operating point when the flow orifice is not located in
the compressor suction.

Description
This function uses the analog inputs for flow; suction and discharge pressure, suction and
discharge temperatures, and calculates the compressor operating point on the compressor map.
This calculated operating point is the basis for the control action used in the TS3000.

The following equation is used if the flow orifice is not located in the compressor suction. For
example, the orifice could be located in the compressor discharge or upstream of a suction-
throttling valve.

2
 Psb   Ts + T _ abs _ cor   Pfo + Pf _ abs _ cor   Tfob + T _ abs _ cor 
rHc = H_pct ⋅   ⋅   ⋅   ⋅  
 (Ps + Ps_abs_cor)   Tsb + T _ abs _ cor   Pfob   Tfo + T _ abs _ cor 

Notes: All pressure inputs must be in the same units. All base pressure inputs must be absolute.
Measured pressures may either be absolute or gage. Pf_abs_cor and Ps_abs_cor are used
to convert gage pressures to absolute. Temperatures, both measured and base, have units
of either Fahrenheit or Celsius. T_abs_cor is either 460 or 273.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 4
Invensys Systems, Inc.

The function parameters are as follows:

VAR Parameter Type Description


INPUT H_pct REAL Differential Pressure across the orifice in %.
Pfo REAL Pressure measured at the flowing orifice
Pfob REAL Pressure, orifice base in absolute units (data sheet)
Pf_abs_cor REAL Correction of orifice pressure to absolute units
Tfo REAL Temperature, measured at the flowing orifice
Tfob REAL Temperature, orifice base (data sheet)
Ps REAL Pressure, measured at the flowing suction
Ps_abs_cor REAL Correction of pressure from gage to absolute units
Psb REAL Pressure, compressor base in absolute units
Ts REAL Temperature, measured at the flowing suction
Tsb REAL Temperature, compressor base (data sheet)
T_abs_cor REAL Correction of temperature to absolute units

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 5
Invensys Systems, Inc.

HC_3_02: FLOW CALCULATION # 3 - FUNCTION


Purpose
This module calculates the compressor operating point when the flow orifice is located in the
compressor discharge, utilizing a thermodynamic property of compressors.

Description
Under normal circumstances a minimum of 5 analog inputs would be required to solve the
Equation 1. However by utilizing a thermodynamic property of compressors, the relationship
between pressure and temperature can be employed to reduce the number of field measurements
needed.
Since this equation utilizes the temperature and pressure ratio relationship it can ONLY be
employed with discharge flow measurement if there are no coolers between the compressor
discharge and the flow measurement.
k −1
Td  Pd  k ⋅eff
= 
Ts  Ps 
Substituting the above relationship into Flow Calculation #2 yields the following:
k −1
−1
 Psb   Pfob   Ps + Ps_abs_cor  k ⋅eff
rHc = H_pct ⋅   ⋅   ⋅  
 Ps + Ps_abs_cor   Pfo + Pf _ abs _ cor   Psb 

Notes: All pressure inputs must be in the same units. All base pressure inputs must be absolute.
Measured pressures may either be absolute or gage.

The parameters used by this function are as follows:

VAR Parameter Type Description


INPUT H_pct REAL Differential Pressure across the orifice in %.
Pfo REAL Pressure measured at the flowing orifice
Pfob REAL Pressure, orifice base in absolute units (data sheet)
Pf_abs_cor REAL Correction of orifice pressure to absolute units
Ps REAL Pressure, measured at the flowing suction
Ps_abs_cor REAL Correction of pressure from gage to absolute units
Psb REAL Pressure, compressor base in absolute units
k REAL Heat capacity ratio of the gas (Cp/Cv)
eff REAL Polytropic efficiency of compressor

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 6
Invensys Systems, Inc.

HC_4_02: FLOW CALCULATION # 4 - FUNCTION


Purpose
This module calculates the compressor operating point when the compensated mass flow is
available.

Description
This function uses the analog inputs for mass flow; suction pressure, suction temperature, and
calculates the compressor operating point on the compressor map. This calculated operating
point is the basis for the control action used in the TS3000.

The formula is:


2
 MFLOW Psb   Ts + T _ abs _ cor 
Hc _ 4 =  ⋅    ⋅ 100
 MFLW _ max (Ps + Ps _ abs _ cor )   Tsb + T _ abs _ cor 

Notes: All pressure inputs must be in the same units. All base pressure inputs must be absolute.
Measured pressures may either be absolute or gage. Ps_abs_cor is used to convert gage
pressures to absolute. Temperatures, both measured and base, have units of either
Fahrenheit or Celsius. T_abs_cor is either 460 or 273.

The parameters used by this function are as follows:

Inputs Parameter Type Description


INPUT MFLOW REAL Mass Flow.
MFLOW_max REAL Maximum Mass Flow
Ps REAL Pressure, measured at the flowing suction
Ps_abs_cor REAL Correction of pressure from gage to absolute units
Psb REAL Pressure, compressor base in absolute units
Ts REAL Temperature, measured at the flowing suction
Tsb REAL Temperature, compressor base (data sheet)
T_abs_cor REAL Correction of temperature to absolute units

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 7
Invensys Systems, Inc.

PRAT02:PRESSURE RATIO CALCULATION - FUNCTION


Purpose
This function performs the pressure ratio calculation which is used in surge control.

Description
The pressure ratio is the ratio of the absolute discharge pressure to the absolute suction pressure.
Discharge pressure and suction pressure must be in the same engineering units, psi, kPa, etc.
However they can be either gage or absolute, since the module will change gage measurements to
absolute.

The equation is:


Pd + Pd _ abs _ cor
PRAT =
Ps + Ps _ abs _ cor

Notes: All pressure inputs must be in the same engineering units. Measured pressures may either
be absolute or gage. Pd_abs_cor and Ps_abs_cor are used to convert gage pressures to
absolute.

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT Pd REAL Pressure, measured at compressor discharge
Pd_abs_cor REAL Correction of discharge pressure to absolute units
Ps REAL Pressure, measured at the flowing suction
Ps_abs_cor REAL Correction of pressure from gage to absolute units

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 8
Invensys Systems, Inc.

OpPoint02: OPERATING POINT - FUNCTION BLOCK


Purpose
This module calculates the corrected flow element differential head (hc), pressure ratio (Pd/Ps),
fallback hc and compensated flow.

Description
This module calculates the x and y coordinates of the surge graph operating point. The x-
coordinate, hc, is the corrected differential head produced by the flow element. The y-coordinate,
Pd/Ps, is the ratio of discharge pressure to suction pressure. In addition, this module calculates
compensated flow and the fallback value of hc. It can utilize the flow measurement in either the
suction or discharge of the compressor. Any pressure units can be used, provided the suction and
discharge pressure transmitters use the same units. The temperature units can be in Fahrenheit,
Celsius, or absolute units.
This module always makes the fallback value of hc available for use by the surge control
program. It is denoted (rHc)FB in the following equation. The program may choose to use this
calculation if a failure is reported on a pressure or temperature transmitter and the associated
measurement cannot be trusted.

2
 FLOW 
(rHc) FB =  * 100.0
 FLOWmax 

The integer (HXTYPE) determines the calculation mode. A value of 1 means the flow orifice is
in the compressor suction. A value of 2 means the orifice is in the compressor discharge and
there is temperature compensation. A value of 3 means the flow orifice is located in the
discharge and temperature measurements are not available.
HXTYPE 1, Flow Meter in Suction

(Ts) Ps h Pd
TT

Pfob
(Tfob)

Psb

The following equation is used to calculate hc if the flow orifice is located in the compressor
suction. This is Flow Calculation # 1. Since the pressure of the flowing suction is the same as

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 9
Invensys Systems, Inc.

the pressure of the flowing orifice and the base pressure of the compressor and orifice are the
same, the equation simplifies to:

 FLOW   Psb * Psb 


2

rHc =   *   *100.0
 FLOWmax   Pfob * (Ps + Px) 

If Suction Temperature exists:

 Ps + Px   Tfob + Tz 
Fcomp = FLOW *   *  
 Pfob   Ts + Tz 

If Suction Temperature does not exist:

 Ps + Px 
Fcomp = FLOW *  
 Pfob 

HXTYPE 2, Flow Meter in Discharge, Temperatures Present

Ts Ps h Pd Td
TT TT

Pfob
Tfob
Psb
Tsb

The following equation is used to calculate hc if the flow orifice is located in the compressor
discharge, and temperature inputs are available. This is Flow Calculation # 2.

 FLOW   Pd + Py   Psb   Ts + Tz   Tfob + Tz 


2 2

rHc =   * *  * *  * 100.0


 FLOWmax   Pfob   Ps + Px   Tsb + Tz   Td + Tz 

Compensated Flow:

 Pd + Py   Tfob + Tz 
Fcomp = FLOW *   *  
 Pfob   Td + Tz 

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 10
Invensys Systems, Inc.

HXTYPE 3, Flow Meter in Discharge, Temperatures not Present

Ps h Pd

Pfob

Psb, K, eff

The following equation is used to calculate hc if the flow orifice is located in the compressor
discharge, and temperature inputs are not available. This is Flow Calculation # 3.
k −1
−1
 FLOW   Psb   Pfob   Ps + Px  k ⋅eff
2

rHc =   *  *   *   * 100.0


 FLOWmax   Ps + Px   Pd + Py   Psb 

Compensated Flow:

 Pd + Py 
Fcomp = FLOW *  
 Pfob 

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 11
Invensys Systems, Inc.

The parameters for this function are as follows:

VAR Parameter Type Description


INPUT CI BOOL 1131 requirement
EFF REAL Polytropic Efficiency
FLOW REAL Gas Flow through Compressor
FLOWMAX REAL Flow Transmitter Maximum
HXTYPE DINT Selects Type of Calculation
Psb REAL Pressure, Absolute Compressor Base (design pressure
from data sheet)
Pfob REAL Pressure, Absolute Orifice Base (design pressure from
data sheet)
Pd REAL Discharge Pressure Measurement
Ps REAL Suction Pressure Measurement
Tsb REAL Temperature, Compressor Base (design temperature
from data sheet)
Tfob REAL Temperature, Orifice Base (design temperature from
data sheet)
Ts REAL Suction Temperature Measurement
Td REAL Discharge Temperature Measurement
K REAL Heat Capacity Ratio
Pxa REAL Suction Absolute Pressure Correction
Pya REAL Discharge Absolute Pressure Correction
X1 BOOL Suction Pressure: False=Gage; TRUE=Abs.
X2 BOOL Discharge Pressure: False=Gage; TRUE=Abs.
Z DINT Temperature Units: 1=F; 2=C, 3=Abs
OUTPUT ERRFLG BOOL Invalid Unit Selection
HX REAL Corrected Flow Element Differential Head, hc
Fcomp REAL Compensated Flow
rPRATIO REAL Pressure Ratio, Pd/Ps
HXfail REAL Transmitter Failure Fallback Value of hc

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 12
Invensys Systems, Inc.

SRG_LINE: SURGE LINE - FUNCTION


Purpose
This function determines the surge point based on the pressure ratio.

Description
This function determines the surge point from a 5-segment linear interpolation algorithm and the
pressure ratio.

100
(PR_F, HC_F)

80
(PR_E, HC_E)

60 (PR_D, HC_D)
Pd/ Ps

40 (PR_C, HC_C))

(PR_B, HC_B)
20

(PR_A, HC_A)
0

0 20 40 60 80 100
Surge Point %

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 13
Invensys Systems, Inc.

The inputs required are as follows:

VAR Parameter Type Description


INPUT PR_RATIO REAL Pressure Ratio (From PRAT Function)
PR_A REAL Pressure Ratio, Point A (Lowest)
PR_B REAL Pressure Ratio, Point B
PR_C REAL Pressure Ratio, Point C
PR_D REAL Pressure Ratio, Point D
PR_E REAL Pressure Ratio, Point E
PR_F REAL Pressure Ratio, Point F (Highest)
Hc_A REAL Surge Curve, Point A
Hc_B REAL Surge Curve, Point B
Hc_C REAL Surge Curve, Point C
Hc_D REAL Surge Curve, Point D
Hc_E REAL Surge Curve, Point E
Hc_F REAL Surge Curve, Point F

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 14
Invensys Systems, Inc.

Actual Operating margin


The actual operating margin (rMARGIN) is the distance of the Operating Point to the Surge
Point.

Control Line

Surge Line
Pressure Ratio

Current
PD Operating Point
PS

Actual Margin

Suction Flow (hc)

Actual Operating Margin Illustration

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 15
Invensys Systems, Inc.

RECAL: RECALIBRATE - FUNCTION BLOCK


Purpose
This function recalibrates the Operator Safety Margin if a surge has occurred.

Description
The TS3000 has a Recalibration feature that produces a bias (RECAL_AMT) which is added to
the Operator Safety Margin if a surge has occurred.
A surge event is assumed to have occurred if the Margin decreases less than -1%. Recalibration
is typically only enabled if the Surge Controller is enabled and either the Surge Controller is in
Auto or is not in Full Manual. Each time a surge occurs the Recalibration Bias is incremented by
kRCINC, but there is a maximum amount of Recalibrations that are allowed (kRCMAX).
The Recalibration Amount and Counter can be reset to 0 by setting the REC_RESET flag to 1.
The function resets the flag back to 0 after 3 seconds.
The Surge Counter is incremented anytime the margin decreases less than -1%. The REC_RESET
flag does not reset the Surge Counter.

The parameters for this function block are as follows:

VAR Parameter Type Description


INPUT MARGIN REAL Actual Margin
REC_ENB BOOL Recalibration Enabled
kRCINC REAL Recalibration Increment
kRCMAX REAL Maximum Recalibrations
deltaT REAL Scan Cycle Time, Seconds
OUTPUT fINSUR BOOL Compressor In Surge Flag
IN/OUT RECAL_AMT REAL Recalibration Bias
SURGE_COUNT REAL Surge Counter
RECAL_COUNT REAL Recalibration Counter
REC_RESET BOOL Recalibration Reset

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 16
Invensys Systems, Inc.

SAFETY_MAR: TOTAL SAFETY MARGIN - FUNCTION

Purpose
This function calculates the operator safety margin.

Description
The operator-entered margin can be a combination of constant and proportional terms. The
following graphs illustrate the two different types of margin. A constant margin is usually
sufficient. However, some compressors exhibit a narrow range of operation between surge and
choke flow at either low speeds or low opening positions on the guide vanes. In this case it is
desirable to have a small constant margin and a proportional margin that increases as the flow is
increased. The inputs to this function are as follows:

The equation for the Operator Safety Margin is:

(rSULIN • PROP _ MAR )


rSAFETY _ OP = CONST_MAR +
100

Surge Line
Pressure Ratio

Control Line based on:


PD Constant Margin
PS
Proportional Margin

Constant + Proportional Margin

Suction Flow (hc)

VAR Parameter Type Description


INPUT CONST_MAR REAL Constant safety margin (hc)
PROP_MAR REAL Proportional safety margin (%)
rSULIN REAL Surge Point

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 17
Invensys Systems, Inc.

TOTAL SAFETY MARGIN


The Total Safety Margin (rTOT_SAFETY) is the sum of the Operator Margin and the
Recalibration Margin.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 18
Invensys Systems, Inc.

SP_HOVER: SETPOINT HOVER - FUNCTION

Purpose
This function generates the setpoint hover feature of the surge control.

Description
Setpoint Hover forces the setpoint of the Surge PID to track the Operating Margin of the
Compressor. When the Operating Point moves away from the Control Line with increasing flow
or changing pressure ratio, the Setpoint Hover follows. Movement to the right of the Surge Curve
is instantaneous; movement back towards the Surge Line is determined by the Hover Increment.
This allows the controller to track the Operating Point instantly while allowing a configurable rate
at which the compressor can approach the surge line.

Hover Margin (kHOVER)


This is the distance that the Setpoint Hover will track the Operating Margin as it increases above
the Total Safety Margin.

Hover Increment (kHOV_INC)


Hover Increment is the speed at which the Setpoint Hover Line can move toward the Surge Line.
This sets the rate at which the compressor is allowed to move toward the Surge Line.

Control Line Hover Line

Surge Line
Control
Setpoint
Pressure Ratio

PD
PS
Current
Operating Point

Hover Setting

Suction Flow (hc)

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 19
Invensys Systems, Inc.

The inputs for the function are as follows:

VAR Parameter Type Description


INPUT TOTAL_SAFETY REAL Total Safety Margin
MARGIN REAL Operator Safety Margin
kHOVER REAL Hover distance
kHOV_INC REAL Hover Increment
deltaT REAL Scan cycle time, seconds
FEEDBACK REAL Feedback from last SP_HOVER

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 20
Invensys Systems, Inc.

PID_SRG02: SURGE PID - FUNCTION BLOCK


Purpose
This function block is the surge PID controller.

Description
The setpoint for the Surge PID is set from the Setpoint Hover function. The measurement is the
actual operating margin. The controller is configured for reverse action.
The tuning constants consist of gain and reset. With a gain constant of 2 and a 1% increase in
measurement, the output will decrease by 2%. The reset is in units of repeats /minute. If the reset
constant is increased, the integral response is quicker. The gain constant does not influence the
integral action.
The following is the equation for Proportional and Integral Action:

Re set
Output = K ⋅ (Error − Error1) + ⋅ Error ⋅ rDT
60

The derivative is usually set to 0 and scan time in seconds is connected to deltaT.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 21
Invensys Systems, Inc.

The inputs and outputs for the function are as follows:

VAR Parameter Type Description


INPUT SP REAL Set Point
PV REAL Process variable
GAIN REAL Controller Gain
RESET REAL RESET - Repeats / Min
DER REAL Derivative in Seconds
deltaT REAL Scan cycle time, seconds
DIR_ACTION BOOL Controller Action.
OUTPUT CO BOOL 1131 Requirement
IN/OUT CV REAL Controlled Variable

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 22
Invensys Systems, Inc.

ADPTV_TN1: ADAPTIVE TUNING - FUNCTION


Purpose
Tuning is stepped to 3 different values based on PID controller error.

Description
This is virtually the same as the following function, Adptv_Tun, except that the transition
between tuning cannot be ramped in this function; it must be stepped. When the Measurement is
less than Setpoint - BK_PT1, then output is set to TUNE_1.

When the Measurement is between Setpoint - BK_PT1 and SP + BK_PT2 then output is set to
Normal.
When the Measurement is greater than Setpoint + BK_PT2 then output is TUNE_2.

Setpoint
Adaptive Tuning

BK_PT2

Normal Tune_2

Tune_1
BK_PT1

Setpoint - Measurement

Adaptive Tuning Illustration

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 23
Invensys Systems, Inc.

The inputs for the function are as follows:

VAR Parameter Type Description


INPUT MEAS REAL Controller Measurement
SETPOINT REAL Controller Setpoint
TUNE_1 REAL Tuning when Measurement is Low
BK_PT1 REAL Low Measurement Breakpoint (positive value)
NORMAL REAL Tuning used when between breakpoints.
BK_PT2 REAL High Measurement Breakpoint
TUNE_2 REAL Tuning used when Measurement is High

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 24
Invensys Systems, Inc.

ADPTV_TUN03: ADAPTIVE TUNING - FUNCTION


Purpose
This function provides adaptive tuning to the PID function block.

Description
Normal tuning is used when the margin is running within the deadband of the setpoint. If the
margin decreases less than the setpoint minus BRKPT1, the tuning is linearly changed by the
amount of RISE1. If the margin increases above the setpoint plus BRKPT2, the tuning is linearly
changed by the amount of RISE2. If Limitx > NORMAL, the tuning increases linearly above the
Normal tuning towards the limit. If Limitx < NORMAL, the tuning decreases linearly below the
Normal tuning towards the limit.
The adaptive tuning constants are limited with the variables Limit1 and Limit2. Limit1 applies to
the lower end (Left) of the curve while Limit2 applies to the upper end (Right) of the curve. The
lower end is used when the margin is significantly lower than the setpoint; the upper end is used
when the margin is significantly higher than the setpoint. If a RISE variable is zero, the tuning
will step from NORMAL to the corresponding Limit.
The RISE variable is used to compute the tuning variable from the error between the setpoint and
measurement. The RISE variables begin to apply at the breakpoints. The RISE is a ratio of
tuning change to error change. For example, if the setpoint moves two percent from a breakpoint,
then the tuning parameter will be adjusted by 2 times the RISE variable. In this example, if the
RISE were 0.5, the tuning parameter would change by 1.0. If the RISE variables are too high,
then the surge control may become unstable when the error is large.

Setpoint
Limit1

RISE1
Adaptive BRKPT2
Tuning
Normal
RISE2

BRKPT1

Limit2

Margin
Left: TUNING = Normal +/- ((Setpoint - BRKPT1 - MARGIN) * RISE1)

Right: TUNING = Normal +/- ((MARGIN - Setpoint - BRKPT2)) * RISE2)

Adaptive Tuning Illustration

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 25
Invensys Systems, Inc.

The inputs for the function are as follows:

VAR Parameter Type Description


INPUT NORMAL REAL Normal Tuning
SETPOINT REAL Surge Setpoint
MARGIN REAL Margin from surge line
BRKPT1 REAL Lower end of Normal Tuning
RISE1 REAL Slope of Lower Tuning
BRKPT2 REAL Upper end of Normal Tuning
RISE2 REAL Slope of Upper Tuning
ENABLE BOOL Enable Adaptive Tuning
Limit1 REAL Lower End Tuning Limit
Limit2 REAL Upper End Tuning Limit

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 26
Invensys Systems, Inc.

SRG_OVRD02: SURGE OVERRIDE - FUNCTION

Purpose
This function protects the compressor from surge before the PID begins to act.

Description
The TS3000 has a proportional-only function, which forces the surge valve to open, independent
of normal proportional/integral controller action. This function begins to open the valve at a
specified margin to the left of the control line, and opens the valve as the operating point reaches
the surge line. This function protects the compressor, even if the TS3000 Surge PID Controller is
tuned for slow response.
If a safety margin of less than 2% is entered then the surge line is adjusted (for this function only)
to maintain a 2% margin. This allows for testing the surge line with a negative safety margin and
still maintaining surge override protection.

Closed
0%
SRG_OVRD
Surge Override
Enable Line
Pressure Ratio

kSO_MAX 0.7 of Safety Margin


Open

PD Operating Point
PS Control Line
Surge 10% Safety Margin
Line

As margin decrease from 7% to 0%


0 7 the surge override output
increases from 0% to kSO_MAX

Suction Flow (hc)

Surge Override Example

Surge OverrideEnable (kSO_ENB)


The Surge Override Enable entry defines the Surge Override Line. The Surge Override Enable is
entered as a fraction (0 to 1) of the Total Safety Margin. As the Operating Margin decreases from
the Surge Override Line towards the Surge Line the output of this function increases from 0% to
the Surge Override Maximum.

Surge Override Maximum (kSO_MAX)


Surge Override Maximum defines the maximum opening that the Surge Override Function can
open the surge valve, expressed as a number from 0 to 100%.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 27
Invensys Systems, Inc.

The inputs for the function are as follows:

VAR Parameter Type Description


INPUT TOT_SAFETY REAL Total Safety Margin
MARGIN REAL Margin from surge line
kSO_ENB REAL Surge Overide Enable
kSO_MAX REAL Surge Overide Maximum

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 28
Invensys Systems, Inc.

VALVE_SEL05: VALVE SELECT – FUNCTION BLOCK

Purpose
This function block selects the signal to be passed to the valve.

Description
When the surge controller is enabled there are three modes of operation: Auto, Full Authority
Manual and Partial Authority Manual. Auto is selected by setting Auto to 1. Manual is selected
by setting Auto to 0, if Full_Auth is 1 then operation is in Full Authority Manual, if Full_Auth is
0 then operation is in Partial Authority Manual.
The surge controller is disabled when SRG_ENB is set to 0. When disabled, the output to the
valve (VLV_DMD) is set to 100%. When the surge controller is first enabled, a Startup Ramp is
initiated which ramps the valve to slowly fade in the compressor to the process. The ramp rate is
adjusted by STRT_RMP (%/Sec) and is in effect in Auto and Partial Authority Manual.
Adjustable valve slew rates are provided. SLEW_OPEN is the maximum opening ramp rate
(%/Sec). SLEW_CLSD is the maximum closing ramp rate (%/Sec). SLEW_DB is the amount
the valve is allowed to move in either direction before the slew rates go into affect.
In Auto operation, the output to the valve (VLV_DMD) is set within the slew rate limits to the
highest of the following inputs: SRG_PID, SRG_OVRD and PROC_OVRD. The Valve demand
is limited from exceeding MAX_OUT. PROC_OVRD can be set from either a process override
controller or even a surge controller from another compressor stage. SRG_PID and
PROC_OVRD are limited from going less than 3% below VALVE_FB. MAN_DMD is set to
track VALVE_FB.
In Full Authority Manual, the output to the valve (VLV_DMD) is set within the slew rate limits
to MAN_DMD. MAX_OUT is not used while in Full Authority. SRG_PID and PROC_OVRD
are set to track VALVE_FB. When the surge controller is disabled, MAN_DMD is initialized to
100%.
In Partial Authority Manual, the output to the valve (VLV_DMD) is set within the slew rate
limits to the highest of the following inputs: MAN_DMD, SRG_PID, SRG_OVRD,
PROC_OVRD. The Valve demand is limited from exceeding MAX_OUT. SRG_PID and
PROC_OVRD are limited from going less than 3% below VALVE_FB.
Limit flags are provided to indicate which input has control of the valve. In automatic, if the
surge output is at 0%, only the Surge PID flag will be On.
A valve derivative output is provided for the Speed Setpoint Bias Module.
If the Transmitter Failed flag is set ON, then the controller is set to full manual (gAUTO is forced
to 0, but FULL_AUTH is not changed). The MAN_DMD is ramped to FAIL_SAFE at the
STRT_RMP ramp rate. If the Manual Demand is already greater than the FAIL_SAFE position at
the time the Fail Flag is set ON, then no action is taken. Also, if the controller is already in full
manual, no action is taken if the Transmitter Failed flag is set ON.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 29
Invensys Systems, Inc.

Valve Select Block

Valve Selection Simplified Block Diagram

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 30
Invensys Systems, Inc.

The inputs and outputs for the function are as follows:

VAR Parameter Type Description


INPUT FULL_AUTH BOOL Full Authority Mode
SRG_ENB BOOL Surge Enable Flag
MAX_OUT REAL Maximum Valve Limit
SLEW_OPEN REAL Valve Open Slew Rate (%/sec)
SLEW_CLSD REAL Valve Closed Slew Rate (%/sec)
SLEW_DB REAL Slew Dead Band (%)
deltaT REAL Sample Cycle Time (sec)
STRT_RMP REAL Startup Ramp Rate (%/sec)
VALVE_FB REAL Valve Feedback (%)
FAIL BOOL Fail Transmitter Indication
Fail_Safe REAL Fail Safe Position for transmitter failure
Windup_DB REAL Anti – Windup Dead Band
OUTPUT VLV_DMD REAL Valve Demand
VLV_DER REAL Valve Change from Last scan
fSRG_PID BOOL Surge PID Selected
fSRG_OVRD BOOL Surge Over-ride Selected
fPROC_OVD BOOL Process Over-ride Selected
fMAN_OVD BOOL Manual Demand Selected
IN/OUT SRG_PID REAL Output of Surge PID
SRG_OVRD REAL Output of Surge Over-ride
PROC_OVRD REAL Process Over-ride
MAN_DMD REAL Manual Demand
AUTO BOOL Automatic Mode

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 31
Invensys Systems, Inc.

DUMP_SOL: DUMP SOLENOID - FUNCTION


Purpose
This function generates the Dump signal to the Dump Solenoid.

Description
The Dump Solenoid output is set ON if either the Actual Margin decreases below the Dump Line
or the Surge Controller is disabled. The Dump Line is kDUMP times the Total Safety Margin.
The value for kDUMP is entered as a decimal fraction.

The Dump Solenoid output is set OFF if either the Actual Margin is greater than the Total Safety
Margin or the DUMP_ENB flag is OFF. The DUMP_ENB flag has precedence over the Surge
Enable flag. Typically the Dump Solenoid output is disabled while in Full Authority Manual.
The inputs for the function are as follows:

VAR Parameter Type Description


INPUT MARGIN REAL Surge Margin
TOT_SAFETY REAL Total Safety Margin
kDUMP REAL Fraction of Total Safety Margin
SRG_ENB BOOL Surge Enabled
DUMP_ENB BOOL Dump Enabled
FeedBack BOOL Dump Feed Back

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 32
Invensys Systems, Inc.

SPD_BIAS: SPEED SETPOINT BIAS - FUNCTION

Purpose
This function provides a Bias that can be added to the speed setpoint of the driver.

Description
As the surge valve opens the Bias is increased. The amount of Bias generated per % opening of
valve is set by DER (RPM / %). If the valve stops opening, the Bias ramps to 0 at the BIAS_RMP
ramp rate (%/Sec). The amount of Bias is limited from exceeding BIAS_MAX (%).
The Bias will only increase if the ENABLE input is ON, otherwise it will decay to 0 RPM at the
BIAS_RMP ramp rate.

The inputs for the function are as follows:

VAR Parameter Type Description


INPUT VLV_DER REAL Value Changed From Last Scan
DER REAL Valve Derivative RPM / Valve Change
BIAS_RMP REAL Speed Ramp, Percent / Second
BIAS_MAX REAL Maximum Bias
deltaT REAL Scan Cycle Time, Seconds
ENABLE BOOL Enable Function
FEEDBK REAL Feed Back

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 33
Invensys Systems, Inc.

SIGMA02: SIGMA EXPONENT - FUNCTION

Purpose
This function calculates the Sigma exponent from the specific heat ratio and polytropic
efficiency.

Description
The formula is:

SIGMA =
(k − 1)
k⋅n

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT k REAL Specific heat ratio
n REAL Polytropic Efficiency

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 34
Invensys Systems, Inc.

T_SIGMA02: SUCTION / DISCHARGE - FUNCTION

Purpose
This function calculates the suction or discharge temperature based on the polytropic relationship.

Description
Calculating Discharge Temperature
T1 is the suction temperature, P1 is the suction pressure, and P2 is the discharge pressure. The
function will calculate the discharge temperature.
Calculating Suction Temperature
T1 is the discharge temperature, P1 is the discharge pressure, and P2 is the suction pressure. The
function will calculate the suction temperature. The formula is:

P _ exp
 P2 
T _ SIGMA = T1 ⋅  
 P1 

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT T1 REAL Temperature # 1
T_abs_cor REAL Absolute correction, 460 or 273
P1 REAL Pressure # 1
P1_abs_cor REAL Pressure # 1 Absolute Correction
P2 REAL Pressure # 2
P2_abs_cor REAL Pressure # 2 Absolute Correction
P_exp REAL Sigma

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 35
Invensys Systems, Inc.

T_AVG_FLOW02: FLOW COMBINED TEMP - FUNCTION

Purpose
This function calculates the combined temperature of two mass flows.

Description
The formula is:

T _ AVG _ FLOW =
(MFLOW1 ⋅ T1) + (MFLOW2 ⋅ T 2)
MFLOW1 + MFLOW 2

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT MFLOW1 REAL Mass Flow # 1
T1 REAL Temperature Mass # 1
MFLOW2 REAL Mass Flow # 2
T2 REAL Temperature Mass # 2

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 36
Invensys Systems, Inc.

M_FLOW02: MASS FLOW CORRECTION - FUNCTION


Purpose
This function corrects mass flow for actual temperature and pressure.

Description
The formula is:
If SqRoot = 0 then

h P_fo + P_abs_cor T_fob + T_abs_cor


M _ FLOW = F_max ⋅ ⋅
100 P_fob T_fo + T_abs_cor
If SqRoot = 1 then

h P_fo + P_abs_cor T_fob + T_abs_cor


M _ FLOW = F_max ⋅ ⋅
100 P_fob T_fo + T_abs_cor

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT h REAL Orifice DP 0 – 100
F_max REAL Maximum Flow
T_fo REAL Orifice Temperature
T_fob REAL Base Orifice Temperature
T_abs_cor REAL Absolute Correction, 273 or 460
P_fo REAL Suction Pressure
P_abs_cor REAL Suction Pressure Absolute Correction
P_fob REAL Orifice Base Pressure, abs
SqRoot BOOL 0 if h has been square rooted

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 37
Invensys Systems, Inc.

SPD_SRG_DECPL03: SPEED / SURGE DECOUPLE –


FUNCTION BLOCK

Purpose
This function block provides Capacity Control with Speed / Surge Decoupling.

Description
The purpose of Capacity Control is to control the flow through the compressor. This can be done
by controlling suction pressure, discharge pressure, or flow. For example if the discharge pressure
controller is enabled and the discharge pressure is higher than the setpoint then the capacity
demand will automatically be reduced. Capacity Control is achieved by adjusting the speed of the
compressors and/or the opening of the vent valve.
Traditionally Capacity Control has been accomplished simply by having a pressure controller
manipulate the speed setpoint. This has two disadvantages. The first is that on a major loss of
load, the speed setpoint is drastically reduced which drives the compressor quickly into surge.
The surge valve then flies open, which then causes the capacity controller to quickly increase
speed to find a new steady state operating point. A second disadvantage is that speed and vent
valve may hunt due to interaction between the pressure, speed and anti-surge controllers.
Capacity Control implemented with decoupling between speed and surge control can best be
described by the following sequence:
At full capacity, the controller output is 100%: the surge valve is closed and the speed controller
is at maximum governor.
As capacity is reduced, the controller output decreases which causes the speed to reduce. Once
capacity is decreased to point that the compressor is near to the surge control line, the speed is no
longer reduced, since this would eventually result in compressor surging.
As capacity is further reduced, the controller reacts by opening the surge valve to maintain
pressure. At this point, the turbine speed is maintained to keep the operating point within 1 to 3%
greater than the surge control line. Since the actual surge margin is kept greater than the safety
margin of the surge controller, the surge controller is continually trying to close the surge valve.
The capacity controller maintains complete control of the surge valve through a high signal select
to the surge controller and surge control / capacity control decoupling is achieved.
As capacity is increased, the surge valve is closed. When the vent valve is closed, the controller
then increases the speed setpoint.
If capacity is increased quickly and the vent valve becomes limited due to the closure ramp limit
in the surge controller, then the speed setpoint is immediately increased to pick up load.
If capacity is decreased quickly, the speed setpoint is decreased by the hover amount and then
ramps down. The surge valve is opened to maintain capacity. Over time the speed setpoint will
ramp down and the surge valve will close.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 38
Invensys Systems, Inc.

Dynamic Breakpoint (DYN_BKPT):


The point at which capacity control switches from controlling speed to opening the surge valve is
called the Dynamic Breakpoint. This point is dynamic because it is variant depending on the gas
properties (temperature, molecular weight and compressibility). The Dynamic Breakpoint,
represented by BP in the figures below, represents the controller output at which if the output is
decreased any further, then the speed is reduced below that required to maintain the surge control
line. If the controller output increases above BP then the turbine speed is increased as shown in
the top figure. If the controller output decreases below BP, then the recycle valve opens and
speed is maintained at the Breakpoint amount, as shown in the bottom figure.
The Dynamic Breakpoint is prevented from decreasing more than 1.5% (BKPT_HVR) less than
the controller output.
The Dynamic Breakpoint is limited from declining quickly as a result of a rapid decrease in
pressure controller output. The Breakpoint will ramp fast (RAMP_FAST) if the margin is greater
than 10% (FAST_BKPT) above the safety margin, otherwise it will ramp slowly
(RAMP_SLOW). If the discharge capacity controller output decreases below the Breakpoint, the
surge valve will open. The Breakpoint will continue to ramp down until either the margin is
within 3% (DEADBAND_MX) of the control line or until 50 % (minimum governor), or until the
capacity controller is satisfied, whichever comes first.
If the Breakpoint comes within 1% (DEADBAND_MN) of the control line, the Dynamic
Breakpoint is increased. If the Dynamic Breakpoint is between 1% and 3% greater than the
control line then no change is made to the Dynamic Breakpoint.
The Breakpoint is limited from going below 50% (minimum governor).

Recycle Valve Speed Setpoint

Speed
(Open) 100% SP Line 100% (Max Gov)

Recycle Speed
Valve % (80, 60) Setpoint %
Recycle
Valve
Line

(Closed) 0% 0% (Min Gov)


0% (BP-50%) 50% BP 100%

Process Controller Output %

Recycle Valve Speed Setpoint

Speed
(Open) 100% Recycle SP Line 100% (Max Gov)
Valve
Line
Recycle Speed
Valve % Setpoint %
(50, 50) (75, 50)

(Closed) 0% 0% (Min Gov)


0% (BP-50%) 50% BP 100%

Process Controller Output %

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 39
Invensys Systems, Inc.

Gain Adjustment
An adjustment is available to balance the action of the speed setpoint and surge valve. Typically a
gain of 1 is used which represents that 1% of recycle valve change is equivalent to 1% of speed
setpoint change. A gain higher than 1 would be used in applications with large surge valves of
that have a bigger impact than changing the speed setpoint.

Surge Valve Override (SRG_VALVE):


As the capacity controller output increases from DYN_BKPT - 50 to the Breakpoint
(DYN_BKPT) the surge valve closes from 100 to 0%.
The Surge Valve Override (SRG_VALVE) is high-selected with the anti-surge controller to open
the vent valve.
If SURGE_ENB is not selected, SRG_VALVE is set equal to the SRGVLV_TRK input.
If only SURGE_ENB is selected, SRG_VALVE is set directly by the capacity controller.

Speed Setpoint Target (SPD_SP):


The speed setpoint is limited from going below the Breakpoint.
The speed setpoint is scaled to suction pressure controller output 50% to 100%
Since the Breakpoint DYN_BKPT is clamped from going below 50%, it is not possible to
calculate a negative speed setpoint.
If SPEED_ENB is not selected, SPD_SP is set equal to the SPDSP_TRK input.
If only SPEED_ENB is selected, SPD_SP is set directly by the capacity controller.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 40
Invensys Systems, Inc.

Surge Line
Pd PT
1040B
PT
Ps
1040A
FT Speed
h
1040 Controller

S
PID
M
TWO-
VALVE
Extraction CONTROL
Controller

S
Decoupling PID
M

S
PID Process
M
Controller
Surge
Controller

S
PID
M
Proportional
Term
>

Startup

FV1040
Recycle
STUP Valve

Process Controller Decoupling Block Diagram

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 41
Invensys Systems, Inc.

The input and output parameters for this function block are as follows:

VAR Parameter Type Description


INPUT SPEED_ENB BOOL Enable Speed Setpoint Control
SURGE_ENB BOOL Enable Surge Valve Control
TOT_SAFETY REAL Total Safety Margin, Percent
MARGIN REAL Margin from Surge Line, Percent
DEADBAND_MN REAL Minimum Speed Deadband, Percent
DEADBAND_MX REAL Maximum Speed Deadband, Percent
RAMP_FAST REAL Fast Ramp Rate, Percent / Minute
RAMP_SLOW REAL Slow Ramp Rate, Percent / Minute
FAST_BKPT REAL Fast / Slow Ramp Rate Breakpoint, Percent
BKPT_HVR REAL Hover Breakpoint, Percent
SPDSP_TRK REAL Speed Setpoint Track, Percent
SRGVLV_TRK REAL Surge Valve Track, Percent
GAIN REAL Surge Valve / Speed Gain
DT_MIN REAL Scan Cycle Time, Minutes
OUTPUT SPD_SP REAL Speed Setpoint
SRG_VALVE REAL Surge Valve
DYN_BKPT REAL Dynamic Breakpoint
SRG_LIM REAL Limiting From Surge Controller
TR_Flag BOOL Track Flag
IN/OUT DEMAND REAL Load Input From Capacity Controller

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 42
Invensys Systems, Inc.

LS_AVG: LOAD SHARING AVERAGE - FUNCTION


Purpose
Calculates average distance from control line, used for load sharing.

Description
This function calculates the average of up to 4 inputs that are both enabled and inside the limits.
If no inputs are enabled then the default value is output.

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT IN_1 REAL Distance to Control Line Comp 1
IN_2 REAL Distance to Control Line Comp 2
IN_3 REAL Distance to Control Line Comp 3
IN_4 REAL Distance to Control Line Comp 4
MINVAL REAL Minimum Acceptable Value
MAXVAL REAL Maximum Acceptable Value
IN_1_ENB REAL True if Comp 1 is enabled for averaging
IN_2_ENB REAL True if Comp 2 is enabled for averaging
IN_3_ENB REAL True if Comp 3 is enabled for averaging
IN_4_ENB REAL True if Comp 4 is enabled for averaging
DEFAULT REAL Default Output on Total Input Failure

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 43
Invensys Systems, Inc.

LS_HILIM: LOAD SHARING HIGH - FUNCTION


Purpose
Calculates highest enabled input, used for load sharing.

Description
This function calculates the highest enabled input. If no inputs are enabled then Output is set to
Default.

The input parameters for this function are as follows:

Inputs Parameter Type Description


LS_Out_1 REAL Loadshare Output - Comp 1
LS_Out_2 REAL Loadshare Output - Comp 2
LS_Out_3 REAL Loadshare Output - Comp 3
LS_Out_4 REAL Loadshare Output - Comp 4
LS_Enb_1 REAL Loadshare Enabled - Comp 4
LS_Enb_2 REAL Loadshare Enabled - Comp 4
LS_Enb_3 REAL Loadshare Enabled - Comp 4
LS_Enb_4 REAL Loadshare Enabled - Comp 4
Default REAL Default if no compressors enabled

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 44
Invensys Systems, Inc.

LS_BIAS02: LOADSHARE BIASING - FUNCTION BLOCK


Purpose
Provides bias to manipulate either speed or suction valve to load share parallel compressors.

Description
This function is called for each suction valve. The Capacity Demand is typically the output of
either a suction or discharge pressure controller.
When the Loadshare Enabled flag is Off, the Output is ramped to the Output Minimum Limit at
the Fade Out Ramp Rate. However if the operator has control of the Suction Valve, the Output
will track the position of the Suction Valve using the Feedback input.
When the Loadshare Enabled flag is first turned On, the Output is ramped to the Capacity
Demand at the Fade In Ramp Rate. Once the Output has reached within 0.5 % of the Capacity
Demand, the Fade In Flag will turn On and the Output to the Suction Valve will begin to
Loadshare.
When Faded In, the Output is set to the Capacity Demand plus the Loadshare Bias. The
Loadshare Bias integrates at the Loadshare Integral Rate (in minutes) in an attempt to bring the
Loadshare Differential to 0. The Bias will never ramp faster than the Maximum Rate of Change
(% / Min). The Loadshare Differential is externally calculated and is the difference of this
compressor’s Loadshare Measurement (operating distance to the surge control line) and the
average of all the compressors’ Loadshare Measurement values.
To ensure that all the suction valves are operating around the capacity demand, the Bias for all
compressors are ramped down if the Average Bias is above the Balance Deadband and the Bias
for all compressors are ramped up if the Average Bias is below the Balance Deadband. The Bias
is ramped at the Balance Rate (%/Min).
The Bias can be limited for the following reasons:
1. Maximum Output is Exceeded
2. Minimum Output is Exceeded
3. Output exceeds the Limit Deadband plus the Feedback (indication of Motor Current
Override)
4. The Bias exceeds the Maximum Bias Setting in either direction.
The Loadshare Limit Reached Flag is Set On if the Output exceeds the Limit Deadband plus the
Feedback (Motor Current Override).
If Loadshare Enable is set to Off, the Fade In flag is set to Off and the Output is ramped to the
Minimum Output. When the Output reaches within 0.5% of the Minimum Output, the Fade Out
Flag is set to On.

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 45
Invensys Systems, Inc.

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT CAP_DMD REAL Capacity Demand
LS_ENAB BOOL Loadshare Enabled
LS_DIF REAL Loadshare deviation from average
OUT_MIN REAL Output Minimum Limit
OUT_MAX REAL Output Maximum Limit
FADE_RATE REAL Fade In / Out Ramp (%/Min)
LS_T1_MIN REAL Loadshare Integration Rate (Min)
MAX_RATE REAL Maximum output rate of change (%/Min)
MAX_BIAS REAL Maximum Loadshare Bias
BIAS_AVG REAL Average of the Biases
BALANCE_RATE REAL Balance Rate (% / Min)
BALANCE_DB REAL Balance Deadband
LIMIT_DB REAL Limit Flag Deadband
SCAN_MIN REAL Scan time (Minutes)
FEEDBACK REAL Tracking (Final Output)
OUTPUT OUTPUT REAL Load share Output (Capacity Input + Bias)
BIAS REAL Loadshare Bias
FADED_IN BOOL Faded-In Indication Flag
FADED_OUT BOOL Faded-Out Indication Flag
LS_LIMIT BOOL External Limit Reached

September 25, 2003 SGB400.doc


Surge Control Functions (Library SGB400) 46
Invensys Systems, Inc.

SCALES - Function

Purpose
This function is identical to the SCALE function except that it checks for zero division and leaves
with a default result if the arguments require this operation.

Description
This function scales an input with the following equation:

 INPUT − MIN1 
SCALES =   * (MAX 2 − MIN 2) + MIN 2
 MAX 1 − MIN1 

If the denominator of the equation is zero, then the “MIN2” value is returned as a default value.

The input parameters for this function are as follows:

VAR Parameter Type Description


INPUT INPUT REAL Value to be scaled
MAX1 REAL Maximum Input
MIN1 REAL Minimum Input
MAX2 REAL Maximum Output
MIN2 REAL Minimum Output

September 25, 2003 SGB400.doc


Appendix A Site License Agreement 47

APPENDIX A: INVENSYS SYSTEMS INC. / TRICONEX TMC LIBRARIES


SOFTWARE SITE LICENSE AGREEMENT

Invensys Systems Inc. (hereafter referred to as Invensys or Invensys/Triconex) hereby grants you a
non-exclusive license to use the enclosed Software subject to the terms and restrictions set forth in
this License Agreement (“Agreement”). In addition, the terms and restrictions set forth in this
Agreement also cover any and all firmware embedded in Invensys/Triconex hardware products.
Proprietary Rights of Invensys/Triconex
The Invensys and Triconex logos, product names, software manuals, documentation and other support
materials are either patented, copyrighted, trademarked, or owned by Invensys/Triconex as trade
secrets and/or proprietary information. You agree not to remove any product identification or notices
of such proprietary restrictions from Invensys products. Invensys retains exclusive ownership of the
Software Product, Invensys printed materials, and Invensys patents, copyrights and trademarks. The
Software Product and any modifications or extraction thereof constitute trade secrets and/or
proprietary information of Invensys and will be protected by you.
Restrictions on Use and Transfer
Pursuant to this Agreement, you may: (a) Use the Software on a computer or computers used in
conjunction with a single Invensys/Triconex control system.; (b) Copy the Software into any
computers for back-up purposes in support of your use of the Software for a single Invensys/Triconex
control system.
You may not transfer the Software Product electronically from one computer to another over a
network which is located at a site other than the site at which the Software Product was initially
operated. You may not distribute copies of the Software Product or documentation relating thereto to
others. Neither the Software Product nor its documentation may be modified or transferred without
written permission from Invensys/Triconex. You agree to take all reasonable actions required to
ensure that the Software Product is not used, transferred or copied except as expressly provided in this
agreement.
YOU MAY NOT USE, COPY, MODIFY OR TRANSFER THE SOFTWARE PRODUCT, OR ANY
COPY, MODIFICATION, OR MERGED PORTION, IN WHOLE OR IN PART, EXCEPT AS
EXPRESSLY PROVIDED FOR IN THIS AGREEMENT. IF YOU TRANSFER POSSESSION OF
ANY COPY, MODIFICATION, OR MERGED PORTION OF THE SOFTWARE PRODUCT TO
ANOTHER PARTY, OR TO A LOCATION OTHER THAN THE SITE AT WHICH THE
SOFTWARE PRODUCT WAS INITIALLY OPERATED, THIS LICENSE IS AUTOMATICALLY
TERMINATED. YOU MAY NOT MODIFY, TRANSLATE, REVERSE ENGINEER,
DECOMPILE, OR DISASSEMBLE THE SOFTWARE, OR ANY PORTION THEREOF.

License Fee
You agree to pay a fee for the License hereunder in accordance with Invensys/Triconex’s standard
Price List. Failure to pay this fee will result in termination of this Agreement.
Term
This license is effective until terminated. You may terminate it at any other time by returning or
providing evidence of destruction of the Software Product together with all copies, modifications and
merged portions in any form. It will also terminate upon conditions set forth elsewhere in this
Agreement or if you fail to comply with any term or condition of this agreement. You agree upon
such termination to return or provide evidence of destruction of the Software Product together with all
copies, modifications, and merged portions in any form. The provisions of this Agreement which
protect the proprietary rights of Invensys shall continue in force after termination.

September 25, 2003 SGB400.doc


Appendix A Site License Agreement 48

Limited Warranty and Remedies


Invensys warrants the storage medium on which the Software in furnished, to be free from defects in
materials and workmanship under normal use for a period of ninety (90) days from the date of
delivery to you evidenced by a copy of your receipt. This warranty is limited to you and is not
transferable.
During the 90-day warranty period, Invensys will replace any storage medium not meeting the
foregoing warranty and which is returned to Invensys. Your sole and exclusive remedy in the event
of a defect is expressly limited to replacement of the storage medium as provided above.
THE FOREGOING WARRANTY DOES NOT EXTEND TO A SOFTWARE PRODUCT WHICH
HAS FAILED AS A RESULT OF ACCIDENT, MISAPPLICATION, ABUSE, OR AS A RESULT
OF SERVICE OR MODIFICATION BY ANYONE OTHER THAN INVENSYS/TRICONEX.
THE SOFTWARE PRODUCT AND DOCUMENTATION ARE LICENSED “AS IS” EXCEPT AS
EXPRESSLY SET FORTH ABOVE. NO OTHER WARRANTIES, EITHER EXPRESSED OR
IMPLIED, ARE MADE WITH RESPECT TO THE SOFTWARE PRODUCT, INCLUDING BUT
NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. INVENSYS EXPRESSLY DISCLAIMS ALL WARRANTIES NOT
STATED HEREIN. YOU ASSUME THE ENTIRE RISK AS TO THE RESULTS, QUALITY AND
PERFORMANCE OF THE SOFTWARE PRODUCT. SHOULD THE SOFTWARE PRODUCT
PROVE DEFECTIVE, YOU - AND NOT INVENSYS - ASSUME THE ENTIRE COST OF
NECESSARY SERVICING, REPAIR, OR CORRECTION UNLESS THE ASSUMPTION OF
SUCH COST CONFLICTS WITH STATE LAW. THIS WARRANTY GIVES YOU SPECIFIC
LEGAL RIGHTS, AND YOU MAY HAVE OTHER RIGHTS THAT VARY FROM STATE TO
STATE.

Limitation of Liability
NEITHER INVENSYS NOR ANYONE ELSE WHO HAS BEEN INVOLVED IN THE
CREATION, PRODUCTION, OR DELIVERY OF THIS SOFTWARE PRODUCT SHALL BE
LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES, SUCH AS BUT
NOT LIMITED TO LOSS OF ANTICIPATED PROFITS OR BENEFITS RESULTING FROM
THE USE OF THE SOFTWARE PRODUCT OR ARISING OUT OF ANY BREACH OF ANY
WARRANTY, UNLESS SUCH EXCLUSION IS IN CONFLICT WITH STATE LAW.

General
You may not sublicense, assign, or transfer the license or the Software Product except as expressly
provided in this Agreement. Any attempt to otherwise sublicense, assign, or transfer any of the
rights, duties, or obligations hereunder will make the license null and void.

If you have any questions concerning this Agreement, including warranty service, you should contact
Invensys Systems Inc., Triconex Product Line, 15345 Barranca Parkway, Irvine, CA 92618, or by
phone at 1-866-PHON-IPS (1-866-746-6477) or Worldwide 1-508-549-2424.

YOUR USE OF THE SOFTWARE PRODUCT ACKNOWLEDGES THAT YOU HAVE READ
THIS LICENSE AGREEMENT AND AGREE TO ITS TERMS. YOU FURTHER AGREE THAT
THIS LICENSE AGREEMENT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF THE
AGREEMENT BETWEEN US AND SUPERCEDES ANY PROPOSAL OR PRIOR
AGREEMENT, ORAL OR WRITTEN, AND ANY OTHER COMMUNICATIONS RELATING TO
THE SUBJECT MATTER OF THIS AGREEMENT.

September 25, 2003 SGB400.doc

You might also like