• Tiada Hasil Ditemukan

Monitoring and Control of Pressure in a Gas Plant via PID plus Feedforward Controller

N/A
N/A
Protected

Academic year: 2022

Share "Monitoring and Control of Pressure in a Gas Plant via PID plus Feedforward Controller "

Copied!
60
0
0
Tunjuk Lagi ( halaman)

Tekspenuh

(1)
(2)

CERTIFICATION OF APPROVAL

Monitoring and Control of Pressure in a Gas Plant via PID plus Feedforward Controller

by

Ezyan Hanis Binti Sulaiman

A project interim submitted to the

Electrical & Electronics Engineering Programme Universiti Teknologi PETRONAS

in partial fulfilment of the requirement for the Bachelor of Engineering (Hons)

(Electrical & Electronics Engineering)

Approved: )provea:

'

AP Dr. Nordin bin Saad

UNIVERSITI TEKNOLOGI PETRONAS TRONOH, PERAK

June 2009

(3)

CERTIFICATION OF ORIGINALITY

This is to certify that I am responsible for the work submitted in this project, that the original work is my own except as specified in the references and acknowledgements, and that the original work contained herein have not been undertaken or done by unspecified sources or persons.

EZYAWI-IANIS BINTI SULAIMAN

(4)

ABSTRACT

This project is about the development of a controller for a process using well-established advanced process control (APC) algorithm; mainly PID and Feedforward controls. This work focuses on a model of a process that would be used for investigation of the effectiveness of several control strategies towards effective control in overcoming disturbances in the plant. The controller is observed to see how well a variable can be manipulated and controlled in real-time implementation. However, it is well known that the performances of these controllers much depend on the appropriate implementation of additional functionalities such as anti-windup and feedforward, for example, in addition to the tuning of PID parameters. The process targeted is a gas process and it mainly focused on pressure and flow control of a gaseous pilot plant. To execute the overall simulation, the controller is built on MATLAB/Simulink/LabVIEW which is a technical computing program that has easily adaptable structure where control strategies and model variables can be modified. It is shown in the results of simulation and performance analysis of both controller and process that the PID plus Feedforward control could substantially improve control performance with implementation of a model error. The PID controller provides the needed reaction to the process variable to reach steady state during setpoint changes and disturbances while the feedforward element manages to fully

eliminate the effects of disturbance injection without causing too much disruption to the process response.

(5)

ACKNOWLEDGEMENTS

I would like to start by expressing my gratitude towards Universiti Teknologi PETRONAS for giving me the opportunity to carry out an interesting and challenging final project. Being involved in this project has had me exposed to the field of process control engineering and a whole new meaning to the engineering course I have taken. My heartfelt appreciation to Assoc. Prof. Dr. Nordin bin Saad for his guidance and teachings as my supervisor. I have learned so much from him and this project would be less meaningful without his involvement.

Secondly, I would like to thank all Final Year Project (FYP) Committee, especially Electrical and Electronics Engineering Department that has equipped students with essential skills for self-learning. Its well-rounded graduate philosophy has proven to be

useful for carrying out this project. Also, my acknowledgement would be incomplete without giving credit to Mr. Tri Chandra as the graduate assistant who has guided me along with two other final year students on the basic theory and development of this project.

Furthermore, I would like to thank my family and close friends for all the help and support they have given me throughout completing this project. Their guidance, kindness, and sincerity are very much appreciated. Finally, to each and every one that has been helping me directly or indirectly, thank you.

(6)

TABLE OF CONTENTS

CERTIFICATION OF APPROVAL

... i CERTIFICATION OF ORIGINALITY

... ii ABSTRACT

... iii ACKNOWLEDGEMENTS

... iv LIST OF FIGURES

... vii LIST OF TABLES

... ix LIST OF ABBREVIATIONS

... x CHAPTER 1: INTRODUCTION

... 1 1.1 Background Study

... 1 1.2 Problem Statement

... 2 1.3 Objective and Scope of Study ... 3 CI-IAPTER 2: LITERATURE REVIEW

... 5 2.1 The PID Controller

... 5 2.2 The Feedforward Theory

... 7 CHAPTER 3: METHODOLOGY

... 11 3.1 Process Description

... 11 3.2 Procedure Identification

... 12 3.3 Tools Required

... 13 3.4 Empirical Model Identification

... 14 3.4.1 Plant Experimentation

... 14 3.4.2 Determine Model Structure

... 17 3.4.3 Parameter Estimation

... 17 3 . 4.4 Diagnostic Evaluation

... 19

(7)

3.5 Controller Design

... 23 3.5.1 Building the PID Controller ... 23 3.5.2 Building the Feedforward Controller

... 34 CHAPTER 4: RESULTS AND DISCUSSION

... 36 4.1 Performance Analysis

... 36 4.1.1 Controller Performance and Process Response using PID Controller.... 37 4.1.2 Controller Performance and Process Response using PID plus

Feedforward Controller

... 39 4.2 Fine-Tuning

... 41 4.2.1 Comparisons of Controllers before and after PID Fine-tuning ... 41 4.2.2 Feedforward Controller Gain Fine-tuning

... 43 CHAPTER 5: CONCLUSION AND RECOMMENDATION

... 46 5.1 Conclusion

... 46 5.2 Recommendations for Future Work

... 47

REFERENCES

... 48 APPENDIX:

Gantt chart for Second Semester of Final Year Project (Jan 2009)

(8)

LIST OF FIGURES

Figure 1: Block Diagram of Process Control ... 3 Figure 2: The Control Loop of Test Rig ... 4 Figure 3: Example of Feedforward Control Process Reactions ... 7 Figure 4: The Block Diagram for Feedforward Implementation

... 8 Figure 5: Variables chosen for the process control ... 11 Figure 6: The Process Reaction Curve for Response at PT212 ... 15 Figure 7: The Process Reaction Curve for Response at FT211

... 16 Figure 8: Comparison of Measured and Simulated Response of PT212 for Process Model using Method I ... 19 Figure 9: Comparison of Measured and Simulated Response of PT212 for Process Model using Method 11 ... 20 Figure 10: Comparison of Measured and Simulated Response of FT2I I for Disturbance Model using Method I ... 21 Figure 11: Comparison of Measured and Simulated Response of FT211 for Disturbance Model using Method II ... 22 Figure 12: The PID plus Feedforward Block Diagram ... 23 Figure 13: Bode plot for Process Model, Gp for PT212

... 25 Figure 14: PV Response using PID Constants from Ziegler-Nichols Closed Loop Tuning Method

... 26 Figure 15: 1'ID Controller Response using Ziegler-Nichols Closed Loop Tuning Method27

Figure 16: PV Response using PID Constants from Ziegler-Nichols Open Loop Tuning Method

... 28 Figure 17: PID Controller Response using Ziegler-Nichols Open Loop Tuning Method 29 Figure 18: PID Controller Response using Cohen-Coon/Ciancone Tuning Correlations 31

(9)

Figure 19: PID Controller Response using Cohen-Coon/Ciancone Tuning Correlations 31 Figure 20: The PID Structure

... 33

Figure 21: The PID Controller built in Simulink ... 33

Figure 22: The PID plus Feedforward Controller built in Simulink ... 35

Figure 23: Open Loop Simulation of Pressure Process as the Responses changed in FCV211 and PCV212 ... 36

Figure 24: Setpoint Change and Process Variable Response using PID Controller... 37

Figure 25: The PID Controller Response ... 38

Figure 26: Setpoint Change and Process Variable Response using PID plus Feedforward Controller ... 39

Figure 27: The PID plus Feedforward Controller Response ... 40

Figure 28: PID Controller Response before Fine-Tuning ... 41

Figure 29: PID Controller Response before Fine-Tuning ... 42

Figure 30: PID plus Feedforward Controller Response before Fine-Tuning ... 42

Figure 31: PID plus Feedforward Controller Response after Fine-Tuning ... 43

Figure 32: Process Variable Response when Kff = 0.2 ... 44

Figure 33: Process Variable Response when Kff = 0.3678 ... 44

Figure 34: Process Variable Response when Kff = 0.4 ... 45

(10)

LIST OF TABLES

Table 1: Pros and Cons of using Feedforward Control ... 10 Table 2: Calculations from Process Reaction Curve of PT212 ... 17 Table 3: Model Parameters for Transfer Function PT212

... 18 Table 4: Calculations from Process Reaction Curve of FT211 ... 18 Table 5: Model Parameters for Transfer Function FT211

... 18 Table 6: Ziegler-Nichols Closed Loop Tuning Correlations

... 26 Table 7: Ziegler-Nichols Open Loop Tuning Correlations

... 28 Table 8: Cohen-Coon Tuning Correlations

... 30

(11)

LIST OF ABBREVIATIONS

PID proportional-integral-derivative FODT first order plus dead time

PV process variable

barg unit of pressure M /. s 3 volumetric flow rate

(12)

CHAPTER I INTRODUCTION

1.1 Background Study

To maintain the desired set point for a control variable in a plant where the process variable is constantly being monitored, an engineer has to be aware of the disturbances that may occur during a process. The type and magnitude of disturbances affecting a gas plant can have a direct effect on the resulting product variability. Therefore, a study on a control process for an improved disturbance rejection is done to design the controller of the proposed control loop.

One of the control strategies to improve the regulatory performance of a process is feedforward control. This strategy trades off additional complexity in the form of instrumentation and engineering time in return for a controller better able to reject the impact of disturbances on the measured process variable. All of the elements used in the design of the controller refer to a particular action done

in the control loop. The control actions would have an effect on the control loop performance [l].

(13)

1.2 Problem Statement

To achieve the best control strategy would involve performance requirements from the process control design such as process variable measurements, final control element characteristics, control structure in MATLAB/Simulink/LabVIEW and control calculations to achieve the best performance. A new design method is proposed in this report to further refine the concept for modeling a controller to monitor and control the pressure in the

gas plant, which is PID plus Feedforward Controller.

For the experiment, the control loop of the test rig was modified to better suit the chosen method in terms of dynamic response and sensitivity.

Modifications are made to reduce the complications in calculations of the variables involved.

(14)

1.3 Objectives and Scope of Study

This study investigates the monitoring and controlling of a pressure vessel in a gas plant. The open loop control system comprises a gas vessel, transmitters, controllers and control valves.

The main objective of this project is to create and develop a controller for maintaining desired set point of pressure in gas tank while at the same time, controlling the flow of input in a gaseous pilot plant. In order to do this, a new design method is proposed, which is using PID plus Fecdforward controller. To proceed with this, the knowledge of MATLAB/Simulink/LabVIEW is essential in order to create the plant controller. Although regulation is often of primary concern for a PID controller, achieving a high performance in following set point is important in this application. The feedforward control structure and design would be applied in this project.

Input Controller Control Valve Output

Figure 1: Block Diagram of Process Control

(15)

r---1

i

OUT

Ir ---, %

Pressure in vessel is maintained at desired setpoint

vL"z1z

FCV 211

Figure 2: The Control Loop of Test Rig

Feetllorwara Control Element

Feedforward

-Th

Control Block I implemented

here

-. 11

IN

(16)

CHAPTER 2

LITERATURE REVIEW

2.1 The PID Controller

A PID controller is a generic control loop feedback mechanism widely used in industrial control systems. PID stands for proportional-integral- derivative. A YID controller attempts to correct the error between a measured process variable and a desired setpoint by calculating and then outputting a corrective action that can adjust the process accordingly. The PID controller algorithm involves three separate parameters; the Proportional, the Integral and Derivative values. The Proportional value determines the reaction to the current error, the Integral determines the reaction based on the sum of recent errors and the Derivative determines the reaction to the rate at which the error has been changing.

By adjusting the three constants in the PID controller algorithm, the controller can provide control action designed for specific process requirements such as the position of a control valve or the power supply of a heating element.

The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the setpoint and the degree of system oscillation. It is noted that the use of the PID algorithm for control does not guarantee optimal control of the system or system stability [3].

(17)

The controller algorithm is shown as below;

MV(t) = Kc (E(t) + Tt

jö E(t') dt' + Td d

cd[ (t))

+I

where,

MV (t) = Manipulated Variable Kc = Controller Gain Ti = Integral Time Td = Derivative Time

E (t) = Error

CV (t) = Controlled Variable or Process Variable I= Initial Constant

The proportional mode provides a rapid adjustment of the manipulated variable, does not provide zero offset although it reduces the error, speeds the dynamic response and can cause instability if tuned improperly. The integral mode achieves zero offset, adjusts the manipulated variable in a slower manner than the proportional mode, thus giving poor dynamic performance and can cause instability if tuned improperly. The derivative mode does not influence the final steady-state value of error, provides rapid correction based on the rate of change of controlled variable and can cause undesirable high-frequency

variation in the manipulated variable [1].

(18)

2.2 The Feedforward Theory

Feedforward control is designed using the five design rules which are the feedforward design criteria. They are;

" Single loop control is not acceptable

" Variable is measured

" Indicates a key disturbance No causal relationship with valve

" Variable dynamics due to disturbance not much faster than feedback loop

Below is an example of the process reactions when feedforward control is implemented [6].

_---

76 74

/z

GG

: 7-' V ya

5. ^

I 23

i

('1 Ot I= cli. turh. uicr clTcct

r

411 ta aIIIII ,m , r. "u IM 1F(1 )In

ýIV(t1=ý

40 %i(1 F! ) ice. 17C w 1fir1

Tne

4C so EO uo ne " zo "40 160

+fLi XY

18] 2a

Figure 3: Example of Feedforward Control Process Reactions

(19)

To achieve the desired performance, block diagram algebra is implemented to determine the controller design;

N Ica. Urcd l1i% lUfIiA11Cl'. I

ý D,,, ( s)

I

I Cldful'1\ard

cuttUullcr ý (:

ýýsl

ý

NI N, (s)

\lanipulalcd %arlahle

;, ý(")

(: i, (, º

C'N' , (ti)

iýls) CN

( uuliulkil i: uiabk. I

(V(. ) !

Figure 4: The Block Diagram for Feedforward Implementation

C'i"'(s) - C'I. ý'(5) C'I b'(s) O

G, -, (s)G,, (s)J

Dr(s)

G, (s) _

1liV(s) Gd (s) Dill(s) Gp(s)

The relationship between Ga(s), Gd(s) and Gp(s)

Dm(s) = Measured disturbance Ga(s) = Feedforward controller Gd(s) = Disturbance

GP(s) = Process

CV(s) = Controlled Variables

(20)

If Go(s) and Gd(s) are both first order with dead time, then it is proven that the equation of feedforward control is;

G, is) = bIY(s) __G,

(s) U. (s) (i, (s)

Deadtime

Lfi'fýl T... c+1

G? (s) ". . ý.. ,_

-K I- L'

D.,, (s) !7 [_ s+ 1

Gain

Lead-lag function

The Feedforward Control Equation

Thus, the transfer function for Gff(s) is;

T.. s +1 llr c. s>

- _K

Gft(s)=

D_ (s)

r, ¢s+1

where

Lead - lag = T,, s+I

Tý, s+1

FF controller gain =K, =' Controller dead time = Of = B, - B, >o

Lead time = T = r, Lag time =T =r,

(21)

There are pros and cons when using feedforward control. This is discussed in the table below;

Pros Cons

Compensates for disturbance before Cannot eliminate the steady state the controlled variable is affected. offset

Does not affect the stability of Requires a sensor and model for

system each disturbance.

Table 1: Pros and Cons of using Feedforward Control

The feedforward control is desired when a single loop performance is unacceptable.

Apart from that, a measured variable should be available for it to work. A measured disturbance variable must;

" Indicate the occurrence of an important disturbance

" Not have a causal relationship from valve to measured disturbance sensor

" Not be significantly faster than the manipulated variable output dynamics (feedback)

(22)

CHAPTER 3 METHODOLOGY

3.1 Process Description

SET POINT Set at PT212 to 5 barg

PROCESS VARIABLE

Pressure in vessel VL-212 maintained at desired set point, PT212

GAS PLANT

- Flow controlled by FCV-211 - Pressure controlled by PCV-212

MANIPULATED VARIABLE Amount of % opening in valve PCV-

212

DISTURBANCE ELEMENT Set point changes in FCV-211

2

Figure 5: Variables chosen for the process control

(23)

3.2 Procedure Identification

Plant Experimentation Process Reaction Curve (PRC)

I

Determine Model Structure (FODT) 4

Parameter Estimation t

Develop models of the process control and disturbance element in MATLAB/Simulink/LabVIEW and the PID plus Feedforward controller using the models obtained from

Exnerimental Model Identification.

t

Tuning of the controller based on Ziegler-Nichols closed and open loop method and Cohen-Coon and Ciancone method.

Controller Simulation in Matlab and Simulink

4

i

Controller fine-tuning 4

Real-time Implementation

No

Performance and Analysis

(24)

3.3 Tools Required

The applications and plant used in this project will be;

a. MA"ILA13

MATLAB is a numerical computing environment and programming language.

Created by The MathWorks, MATLAB allows easy matrix manipulation, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages.

b. Simulink

Simulink, developed by The MathWorks, is a commercial tool for modeling, simulating and analyzing multidomain dynamic systems. Its primary interface is a graphical block diagramming tool and a customizable set of block libraries. It offers tight integration with the rest of the MATLAB environment and can either drive MATLAB or be scripted from it. Simulink is widely used in control theory and digital signal processing for multidomain simulation and design.

c. LabVIEW

LabVIEW (Laboratory Virtual Instrumentation Engineering Workbench) is a platform and development environment for a visual programming language from National Instruments.

d. Gas Pilot Plant

The process plant that will be used is the Gas Pilot Plant located in the Plant Process Control Systems Laboratory at Block 23, Universiti Teknologi PETRONAS. It consists of equipments that can be found in any industrial process plants such as controllers and valves.

(25)

3.4 Empirical Model Identification

Empirical model identification is a very efficient modeling method specifically designed for process control. The objective of the empirical model identification is to do parameter estimation based on the obtained Process Reaction Curve (PRC) which will lead to the identification of the process and disturbance models of the control system. Another one is to determine the initial values of controller parameters (Kc, T, and TI)) through several tuning methods such as the Ziegler-Nichols Open-Loop Tuning method and Cohen-Coon Tuning correlations. Furthermore, it is done to test out the performance of the controller mode chosen (PID).

To start off the modeling, a proper experimental design is done to determine process shape and duration and to also detemine the base operating conditions for the process, which essentially determine the conditions on which process model is accurate. The steps to starting the experimental design are describing the base operating conditions, defining the perturbations, defining the variables to be measured and estimating the duration of experiment [I ].

3.4.1 Plant Experimentation

The experiment is designed to establish the relationship between one input and output. Plant operation is monitored during the experiment, using devices such as transmitters, controllers and valves. In this study, the experiment makes use of valves PCV212 and FCV21 1, controllers PIC212 and FIC21 1, and transmitters PT212 and FT211. There are two models that needed to be identified which are the process model and the disturbance model. The assumptions for the model structures would be first-order-with-dead-time (FOD'l') models, which are based on prior knowledge on unit operation and

(26)

The first model is the process model which involves PCV212 and the process response is monitored at PT212. A step change input is introduced in PCV212 at a specified time to analyze the result of the experiment. The second model is the disturbance model which followed the same procedures as the first model and involving FCV21 1 and transmitter FT211. Starting with the process model, the experiment is started by maintaining the valve's opening PCV212 at 50% and PT212 is monitored. At time 120.2 seconds, the valve opening is changed to 70% and the change in process response is recorded. The initial value of pressure at PT212 is 4.68 barg.

Pr. co" H.. dae C. rn

b. R.. p..., Prn:

ý,

P ,"

/... ý_.: __ _ During setpoint change

N

ý ____

'. u IlU 1'A 3D l'.. u =L Yfý

iý.

Figure 6: The Process Reaction Curve for Response at P1212

(27)

Procltt R-, n Luw h Reapcnu n iT. '11

10 X

4 L_J

ý

During setpbint change

: OD : '0 1(T, 3'f YL YJ SOC 550

Try

Figure 7: The Process Reaction Curve for Response at FT211

The experiment for the disturbance model is started by maintaining valve FCV211's opening at 50% and FT211 is monitored. At time 198.9 seconds, the valve opening is changed to 70% and the change in process response is recorded. The initial value of flow at FT211 is 14.48 m3 Is.

(28)

3.4.2 Determine Model Structure

From the patterns in the experimental data and study of the plant's operation, the initial model structure can be chosen. In this study, the models for both process and disturbance are determined to be first-order-with-dead-time models which are adequate for process control analysis and design. The form of the model is expressed below, with X(s) referring to the input and Y(s) referring to the output [l].

Y (S) Kp e-Os X (S) rs +1

Kp = Steady State Process Gain

T= Apparent Time Constant

0= Apparent Dead Time

3.4.3 Parameter Estimation

After a model structure has been selected and data collected, the values for the model parameters is determined to observe whether the model provided a good fit for the experimental data. The method used is the graphical process curve calculation which involved Method I and Method II. The calculations for process model PT212 are as below;

Measurement Value

Change in Perturbation (MV), a 20% opening

Change in output (PV), A 2.609 barg

Maximum slope, S -0.0536 barg/s

Apparent Dead Time, 0 7s

Table 2: Calculations from Process Reaction Curve of PT212

(29)

Calculations Value

Steady State Process Gain, Kp 0.13045 barg/% opening

Apparent Time Constant, T Method I Method II

Method I: tr =A/S

Method 11: t=1.500,63A - tO 28A)

-48.66 s -65.55 s

Table 3: Model Parameters for Transfer Function PT212

The methods and calculations for disturbance model FT21 I are done similar to the process model and tabulated as below;

Measurement Value

Change in Perturbation (MV), ß 20% opening

Change in output (PV), A 0.9582 M 31S

Maximum slope, S -0.0536 m /s

Apparent Dead Time, 0 0.8 s

Table 4: Calculations from Process Reaction Curve of FT211

Calculations Value

Steady State Process Gain, Kp 0.04791 (m /s)/% opening

Apparent Time Constant, 'r Method I Method II

Method 1: T=A/S

Method II: r=1.500 63 v- t 2S, i

12.22s 582.15 s

Table 5: Model Parameters for Transfer Function FT21 1

(30)

3.4.4 Diagnostic Evaluation

Evaluation is required before the model is used for control, which could determine how well the model fits the data used for parameters estimation. In this study, the approach used is the comparison of the model prediction with the measured data.

Starting with the process model for PT212, a comparison of measured data and simulated models of both Methods I and lI is done to select the process model that would be used in this project to further construct the proposed controller.

Compinson of Msssond and SonNalsd CVtpý Fsspontt of PT212 fur Pncsst Modsl usmg Mslftod 1

Moe. ' ý_

ý. ý... _ ... _... _... _ :...:.

> 35 During setpoint chahg

,

. :...

... ... ... __ .

0 im 150 am 2'3]

3w YC «

T-

. 5C

Figure 8: Comparison of Measured and Simulated Response of PT212 for Process Model using Method I

(31)

Companson af Measured and S-lafed Oulprt Fe, ponse cl P7212 br Process Model ucmg Method 111Cnosen MOdelf 5T_

Me>>ured ---Medel

---

.-.. ý. ý. _.. -

.. _ . ..:....

.s. . _... _.. _...: _.. __...

IN

35 During setpoint chang'e ý

-ý''"-- ýIII

---... -'" ---- ý.

---

-ý--- -

Figure 9: Comparison of Measured and Simulated Response of PT212 for Process Model using Method 11

From the comparison of simulated response using Method I and II, the model calculated using Method II generated a much closer resemblance to the measured data. Thus, the chosen model for the process, GG is as below;

co

Gp =

h'P e-Eps rs+1

-0.13045 e-75

65.55s+1

(32)

For the disturbance model FT211, the same comparison of measured data and simulated models of both Methods I and 11 are done to select the disturbance model that would be used in this project to further construct the proposed controller.

:5

20

>

O 10

. _`

0

-o

Companson of Measured end Sanuiued Ootpul Response of FT211 for Disturbance Model using Method I (Chosen Model)

During. setpo i nt. cha nge

... .... . ... ... ... ...

--- Measured Model

II111III111

50 IIJO 150 IA : ýw 3.0 360 100 1W 5W

. 'f. U lime

Figure 10: Comparison of Measured and Simulated Response of FT211 for Disturbance Model using Method I

(33)

Companson of Messund and Sanulated Output Response of F T211 or Dist obance Model usug Method I

I Maasured,

___Mel 1

---

ö iý

r'

.. ...

O 10ý

During setpoint eharrge ... :I

i ý___. _ __... . _: _... . ... _ .: _. _ . ...:... ... ...,... .. _

50 1(D 15i0 200 'SO 3lL ±`ý /m 150 S0.1 Jý0

rýe

Figure 11: Comparison of Measured and Simulated Response of FT211 for Disturbance Model using Method II

From the comparison of simulated response using Method I and II, the model calculated using Method I generated a much closer resemblance to the measured data. Thus, the chosen model for the disturbance, Gd is as below;

Gä =

Gd =

Ts+1

Ka e-6c='

0.04791 e-'-'s

12.22s+ 1

(34)

3.5 Controller Design

The aim of this study is to implement the feedforward control strategy with PID control scheme and achieve a newly-devised controller. By testing each control scheme and putting them together. a new control strategy is obtained. Figure below shows a conceptual block diagram of the control scheme

that needed to be achieved [2].

Disturbance

Feed Forward Controller

Disturbance

1

Sensor; Transmitter

1

PID Controller ---

' PID ý "Y "

F"

.ä .B

Measurement

Sensor, Transmitter

ý ý ý ý ý ---_ý Figure 12: The PID plus Feedforward Block Diagram

3.5.1 Building the PID Controller

Since one of the aims of this methodology is to design a control scheme based on PID Controller, the controller mode that needed to be concentrated on is P1D mode in reverse-acting since the response goes to the opposite direction from the change in input and the process gain is negative [3]. Thus, the controller algorithm used is shown below;

D

Disturbance Process

Feed For ., ard Computation Element

T ICO'ee: rcý:

"a oII

--- -- --- --- Proce- ss

CO ý- ra_; Variable

FCE

I-ý_ýý-

Frocess +t ý

(35)

t MV(t) = Kc E(t) + Ti

J E(t') dt' + Td d dt(t) +I 0

where,

MV (t) = Manipulated Variable Kc = Controller Gain Ti = Integral Time Td = Derivative Time

E (t) = Error

CV (t) = Controlled Variable or Process Variable I= Initial Constant

In order to build the PID controller, the parameters would need to be tuned using three controller tuning methods and the responses analyzed to choose the most suitable controller tuning method for the PID controller and further fine-tuning [1]. The three controller tuning methods used are;

i) Ziegler-Nichols Closed Loop Tuning Method

This method used the plotting of amplitude ratio and phase angle in the form of Bode plot. The critical frequency w, and the amplitude ratio AR are determined to calculate the ultimate gain, Ku, which brings the system to margin of stability at the critical frequency, and the ultimate period, Pu, which is the period of oscillation of system at the margin of stability. From here, the parameters of PID

(36)

, 1z -

--ý i i

ýý

i

__.. _. -- --__. - ---ý

... . : `.:

i

Figure 13: Bode plot for Process Model, Gp for PT212

Ultimate gain, Ku, is the value of the proportional gain that brings the system to the boundary of stability at critical frequency.

K_1_1

11 1 G, (Jo) I AR

Ultimate period, Pu, is the period of oscillation of the system at the margin of stability.

P

rr

2r wý

Ultimate gain, Ku = 338.8 Ultiirwte period, Pu = 9.336 s

(37)

Controller Kc Ti Td P1D Ku / 1.7 = 199.3 Pu/2.0 = 4.7 Pu/8 = 1.17

Table 6: Ziegler-Nichols Closed Loop Tuning Correlations

The controller is set to manual mode when the opening in valve is changed. PID tuning correlations are included in the controller. The PID controller's mode is then changed to auto and the process variable response is observed.

,

ri n

-ý... -... ....

C ..

i.... v .

ýý - .

:. ý - ý.. .... .... ....

.H D ing setpoint change During disturbance ý.

ý fi5 ý

--- ý ,'

... u . 2`4 ,0 Ya

'Q7 ý -

H 9 1 , . . fL l G ý

,. ý. ý. ý

Figure 14: PV Response using PID Constants from Ziegler-Nichols Closed Loop Tuning Method

(38)

Figure 15: PID Controller Response using Ziegler-Nichols Closed Loop Tuning Method

From the figures above, it is observed that the process variable response had quite an overshoot, quick rise time and settling time. The controller response was aggressive at setpoint change but that could be fixed with fine-tuning.

(39)

ii) Ziegler Nichols Open Loop Tuning Method

This method provided correlations that are used with simplified process models developed from open loop process reaction curves. The parameters used are taken from the process model. Gp.

Controller Kc Ti Td

PI D (1.2/Kp) (r/ 0) = 86 2.0 0= 14 0.5 0=3.5

Table 7: Ziegler-Nichols Open Loop Tuning Correlations

The controller is set to manual mode when the opening in valve is changed. PID tuning correlations are included in the controller. The YID controller's mode is then changed to auto and the process variable response is observed.

Figure 16: PV Response using PID Constants from Ziegler-Nichols Open Loop

(40)

N

l1

Duri4g setp4int change

I

During disturbance

L

rt9o 7(i1

T"nv IU ý ., . r4 -,.,

Figure 17: PID Controller Response using Ziegler-Nichols Open Loop Tuning Method

From the figures above, it is observed that the process variable response had a smaller overshoot during setpoint change compared to Ziegler-Nichols Closed Loop Tuning Method but a slower rise time. The system also showed a slower settling time and a much higher overshoot during the disturbance in comparison with previous method. The controller response was less aggressive at setpoint change but that could be fixed with fine-tuning.

(41)

iii) Cohen-Coon Tuning Correlations

This method of controller tuning corrects the slow, steady-state response given by the Ziegler-Nichols method when there is a large dead time relative to the open loop time constant. This method is only used for first-order models with time delay.

Controller Kc Ti Td

1r9 1+ ) (32+6 8 )

40

PID Kp B 3z z

B 9 11+2 8

=97.6 13+8

= 2.5

= 16.5 Table 8: Cohen-Coon Tuning Correlations

The controller is set to manual mode when the opening in valve is changed. PID tuning correlations are included in the controller. The PID controller's mode is then changed to auto and the process variable response is observed.

(42)

D

ý 5'

.4

(/ ý

C_ Dur'ng setpoint change

1 1,

During disturbance

: r, %n -m ri, uu Er r: u

Figure 18: PV Response using PID Constants using Cohen-Coon/Ciancone Tuning Correlations

VU ! _a? toNý GoMrto: vCýrýcona'uývp I; errNýlýem

HI

ý,

\\

ý

443

During disturbance r Duri g setpöint change

I

nm lac I5

Figure 19: PID Controller Response using Cohen-Coon/Ciancone Tuning Correlations

(43)

From the figures above, it is observed that, similar with the results from Ziegler- Nichols Open Loop Tuning Method, the process variable response had a smaller overshoot during setpoint change compared to Ziegler-Nichols Closed Loop Tuning Method but a slower rise time. The system also showed a slower settling time and a much higher overshoot during the disturbance in comparison with the first method. The controller response was less aggressive at setpoint change but that could be fixed with fine-tuning.

Comparing all three tuning methods, the most suitable system needed to be chosen. Each method achieved zero steady state offset, which is the aim of this control system, but the responses from Ziegler-Nichols Closed Loop Tuning method has the shortest rise time, settling time and smaller overall overshoot in contrast to the other two methods.

(44)

Thus, the most suitable tuning method for the PID Controller is chosen to be Ziegler-Nichols Closed Loop Tuning Method. Shown below is the PID structure built inside Simulink to build the overall controller.

Figure 20: The PID Structure

From the PID structure above, the PID controller is then built in MATLAB and Simulink and shown below;

Figure 21: The PID Controller built in Simulink

(45)

3.5.2 Building the Feedforward Controller

After selecting the suitable transfer functions to present the process and disturbance models, thus the feedforward element could be constructed. The feedforward algorithm that has been studied is structured as below;

T., s+1 ý. _ G, ý(s)= --Ii; °e

D. (s) 7,

_s+1 where

Lead-lag T's +I ew, Tas+l FF controller gain =A=-

ýI'

of

Controller dead time = BF = B; -9? 0 Lead time = T = r.

Lag time = T, -- r,

The process and disturbance models that have been selected are shown as below;

Process A- 'ode,. ' GU = -0.130-5 e- = 65.55s -1 and

0.04791 e-` s_

Disruroance

A: ode', Gd =

11-7,75 -1

Hence, the feedforward model, Gff structured using the disturbance and process models and algorithms above are obtained as below. The feedforward dead time is set to 0 to make it logical, as the latter dead time resulted in negative value

[6].

(46)

The feedforward model needed to be included in the PID Controller design, thus the completed controller design which has been built in Simulink is shown as below;

PIp PMs PeeloýN Ce4wa

=

FMfl_3 Bs -. 601

ý +zý+

a FF w, u, a feeae, aº4Citf@1w4E aoldkt

ý xH1

I'

kdl ON M FCV217

I mom

ý

boom

vm-9ý2

H 011

Stin4k PID1

ni w

Nk.

* Feedforward Element

p[I

Revere Acting Mode

PID Controller Process

Figure 22: The PID plus Feedforward Controller built in Simulink

To WNSpicN

The controller has been built using the traditional feedback system, PID control system and Feedforward model. As shown in the figure above, these control schemes has all been put together to build the controller structure as studied in this project.

r+ a0 ýý

sP, cý2 O Si I''

13 Gl I

Sceµ2

10 smov0

(47)

CHAPTER 4

RESULTS AND DISCUSSION

4.1 Performance Analysis

Typically, after designing the controller structure, the controller and process performance are subsequently evaluated. In this study, simulations are done repeatedly so analysis can be made to further investigate the characteristics of the controller and responses.

OD

lot

n-

Ina ul value of FCV21 I

India: value of PCV'Ql

Ter FuncLCn kom FCV211

- +O Outl

O 111971, i2 ns. + Tnnslor Fcn2

4 6E3 Inmai raue of W

TronCqr Functwn In PCV212 -013015 Ffi 55s. 1 Transfer Fcn

Figure 23: Open Loop Simulation of Pressure Process as the Responses changed

(48)

4.1.1 Controller Performance and Process Response using PID Controller only

For this controller's simulation, the step change is introduced at 50 seconds and the setpoint is changed from 4.68 barg to 5 barg. The process variable reached steady state at 78.5 seconds at the first setpoint change and the disturbance step input is introduced at 200 seconds. The controller has been fine-tuned to get a better process response.

S. 1pWlY Changrr and W Hwponw in P1212 usng MD CortmiNl f

, 95

> 49

4 tG

LD

11 1

!!

11 I1 I1 11

ý ý

ý_ ý _ _.

ý

;___:

il 11 rI 1I I 11 11 11 1I

- Srt Pwnt

-- -- Pracoss varuao (wl

,- , ,. ýýý,,

_ ng setpoint change

A tl

, ýý ___,.. . _... _ :... :... ... __....,.... ...: .... ý... 1 i

: ... . ..:.. ... .... . ..: ...

i

I

1.

ý 1m. ). ) W

i

Figure 24: Setpoint Change and Process Variable Response using PID Controller

(49)

PID GonroOef Respmte Me, fvr Tiwunq

r_. _ -r

t)

ý ýý

-ý- A) im '

..,, s.. ý.

s. voým a....

1: 11 : [f : 'U 300 3! 0 400

T mr ". )

Figure 25: The PID Controller Response

During setpoint change, a small percentage of overshoot occurred in the process response. The system had a short rise time and took approximately 28.5 seconds to reach steady state. It also had zero steady state offset which is the aim of the control system. After disturbance is injected, the response showed minor overshoot before PID control corrected the error to reach steady state at 246

seconds.

(50)

4.1.2 Controller Performance and Process Response using PID plus Feedforward Controller

For this controller's simulation, the conditions have been set the same with the previous controller. The step change is introduced at 50 seconds and the setpoint is changed from 4.68 barg to 5 barg. The process variable reached steady state at 80 seconds at the first setpoint change and the disturbance step input is introduced at 200 seconds. The controller has been fine-tuned to get a better process response.

Selpou1 Change and PV Response n P1212 using PID plus Feedlorward Conteoller

Setpoint --- Process yanaWe (PV(

; Q,

49,

> 4 9

a4 95

4B

t?...:...:... ...:...:... ...:... _...

I1

...

anga

... ... . ....

:

X. 4

I I

. :.. ... ... . No thaüee duriitie disiuPbance .:....,...,

i ý... _. _.. >

...;... _... i...

_.... _...; _... _...;... __E... _... __.

JI L a)

... ... ... .... ... ... ... ... - a ... ...

130 1

...:

1

150

11

D . '5tl 3C

Tone (s)

YII]

Figure 26: Setpoint Change and Process Variable Response using PID plus Feedforward Controller

...

(51)

PM pl.. F. "dlww. d Cor"rollar Fosponc. ager Fn. Tunxg

ý __

...

...:...

...

i t

U

11

IU f-

... ... . ... ...

... ...

i DlylurEan[e

... ...

... ... ... ...

__s...: ... ...:...

11p1 11

50 100 150 ii

250 300

r a .

,

450

Figure 27: The PID plus Feedforward Controller Response

During setpoint change, a small percentage of overshoot occurred in the process response. The system had a short rise time and took approximately 30 seconds to reach steady state. It also had zero steady state offset which is the aim of the control system. After disturbance is injected, the response did not show any change which demonstrates that PID plus Feedforward control could substantially improve control performance with implementation of a model error.

(52)

4.2 Fine-Tuning

The tuning constants calculated previously are considered initial values to be applied to the process to obtain empirical information on closed-loop performance and modified until acceptable control performance is obtained.

Fine-tuning had been necessary because of errors in the process model and simplifications in the tuning method [1].

4.2.1 Comparisons of Controllers before and after PID Fine-tuning

The P11) and PID plus Feedforward controllers has been fine-tuned to get improved control performances. Changes for both controllers in the controller gain, Kc, increased around 0.5%, and derivative time, Td, decreased around 50%

are implemented. The controller responses before and after fine-tuning are compared and analyzed.

Haspons. of PN Coolrallur only

1)

ýý u

...

ý. ý ý... . ý.:. ý ... ...

... . ... ... ...

... ;... ... ... . .;...,,. ý....

Su Im ý'ý 1CD 73] 3m

l ma (q

Figure 28: PID Controller Response before Fine-Tuning F ... ... ... ...

... ...

i

ýý ac,

(53)

i'üJ CMreYw f]ýspanae Mer FnsT-q

ýn

R

n 4(1

...

... -

iýiýlnl Chenq"

... ...

... ...

... ... ... ... ...

n

...

II

--1_ 1116

100 150 ; VO 250 300 350 100

150 T, mv (s1

Figure 29: PID Controller Response after Fine-Tuning

i

From the figures above, it is observed that the PID controller gave quite an aggressive performance using the tuning constants earlier calculated. By fine- tuning the constants, the controller's performance improved and showed a much stable characteristic.

17. sponss al f+N) pl. s I. AOnwrE conlrW. t

...

,, ý. ýn ... . ...

... ...

... .

i

---li-_--1 III]I]

'LI 1p1] 1) Z(I) yJ7 ppp prD ýpp

Týme I"1 f-0

t_ .;... :... __

(54)

plo plus Feedt md CoMmlle, Respv, se A Fv rung

...

kw ý ý40

ýýibsnte '-ý...

.. _... . ...:.. ý'.

.

...:... ...:... ... ... ... ... ... ....

rm im m

r, m. 1111 ffl

Figure 3I: PID plus Feedforward Controller Response after Fine-Tuning

From the figures above, it is observed that the PID plus Feedforward controller gave quite an aggressive performance using the tuning constants earlier calculated. By fine-tuning the constants, the controller's performance improved and showed a much stable characteristic.

4.2.2 Feedforward Controller Gain Fine-tuning

In this study, the feedforward controller gain, KJJ, is adjusted to analyze the difference it had in overcoming disturbance in the process variable (PV) response. The calculated K/fis 0.3678 and the other controller gain values tested vary from 0.2 and 0.4.

...:...

(55)

ý ý' ý'

4 'Al

ßer ttt Q1tDDn1" utrp POD DWa F-.. d.. rrd f rvereD.. wdwn WI -02

+. i ..., '...

_.,. _ ...:...:... . ý:..

i... __. ... . _....

I; r

I. ýl

.ýi.,.... .. ý :... ...

ý:

... ... ...: .1ý. ... ... _

.ýi....:.... ... _'___. _.... __:.. ES ý. ý

.. _. __...:... _. _. .... ... i... 1. _ I,

.ýi.. ii...

L...

i. ý. iý., '_

ý--- --- --- ý-- ----'----ý-- ý -'

ii ýý ý--_ . _.. _.... .

ii,, , , I, .

...

...:... ý... t...

i...

4'11

Il 50 171

1III

ý ? ýO 3m 350 470 l50

ýmý [11

- Sýtpoýný

---{*/

Figure 32: Process Variable Response when Kff= 0.2

Pmc. s. N.. pon.. u.. 9 VD Pk- 1.. Aowod ConbdM wtnn hl =Ul, IU

_-.

s

ý4 90

.. ý1 ii , ýi

II ýi ýý

- JWVowd

w

No CT. ngg /uring DMorbinc.

,-I. -

Ch--I-

_1I -___l 1

tý+l ül] ýw yu

uu aal "1V

r..,. IQ

Figure 33: Process Variable Response when Kff = 0.3678

(56)

Pmcaos Paspcnaa uaaq PID plua Faodbrward ConMIlN ý1wn 101 ý 04

___pV

... . ... _...

... .. ._... . .... .. ýý

_.. _... . ...

;,, 2

üý

... ... ...

. ... ... ... ... ... ... ... --- - ... .--

ý

... ... : ...

... : ... :...;...:...,...

I

_L I

'll 1W 150 110 : 50 300 350

Tlme (, )

Figure 34: Process Variable Response when Kff = 0.4

From the figures above, it is observed that at Kff = 0.2, the PV response showed that when the disturbance is injected, the feedforward controller manage to eliminate the disturbance error by a small percent compared to when Kff = 0.4, which showed that the disturbance error managed to disrupt the PV response a little before response went back to steady state. When Kff = 0.3678, the feedforward controller has managed to fully eliminate the effects of disturbance injection without bringing any disruptions to the PV response.

This proved the importance of approximate calculations of process and disturbance models since the feedforward algorithm depended solely on the models to get the most desired controller performance.

(57)

CHAPTER 5

CONCLUSION AND RECOMMENDATIONS

5.1 Conclusion

The PID plus Feedforward controller is one of the choice used in an industrial process plant, however, a thorough study to improve this control scheme and strategy still need to be explored. Understanding how to apply it on a plant process apart from studying its features, design and improving control performance is essential. The process targeted is a gas process and it mainly focused on pressure control on a gaseous pilot plant. The understanding of the controllers and the protocol eases the understanding on how a process control work and how it can be manipulated for various purposes. The methodology covers the empirical model identification to select the suitable parameters for the PID plus Feedforward controller which involved calculation of process and disturbance models, data analysis, controller tuning and performance.

Furthermore, real-time implementation could be conducted to evaluate the performance and viability of the approach by making a few adjustments and tuning on the controller.

(58)

From the analysis of controller performance and process response, it is evaluated that the PID plus Feedforward control could substantially improve control performance with model accuracy. The implementation of fine-tuning had been necessary because of errors in the process model and simplifications in the tuning method. Furthermore, this study has shown that feedforward is applied when feedback control does not provide satisfactory control performance.

5.2 Recommendations for Future Work Future work should be as follows;

" Feedforward control involves a new algorithm for which there is no accepted standard display used in commercial equipment. Since the feedforward controller responds to disturbances, it has no set point -a factor that changes the display significantly. One feature that should be provided in the display is the ability to turn the feedforward and

feedback on PID on and off separately.

" The operator should have a display of the result after the feedforward and feedback signal have been combined, because the operator would always want to know the signal sent to the final control element.

" The work presented in this report could still be improved where it is recommended to further refine the approach of the studied controller that can later be implemented in real time.

(59)

REFERENCES

11] Thomas E. Marlin, Process Control: Designing Processes and Control Systems .

for Dynamic Performance, 2nd Edition, McGraw Hill, 2000.

[2] Antonio Visioli, Practical PID Control - Advances in Industrial Control, Use of a Feed/orward Action, Springer, 2006.

[3] K. Astrom and T. Hägglund, PID Controllers: Theory, Design, and Tuning, 2nd Edition, Instrument Society of America, 1995.

[4] Antonio Visioli (2003), A new design. for a PID plus Feedfbrward controller, Dipartimento di Elettronica per I'Automazione, University of Brescia, Italy.

[5] Antonio Visioli, Practical PID Control - Advances in Industrial Control, Basics of PID Control, Springer, 2006.

[6] Plant Process Control Systems Lecture, Topic on Feedforward and Flow Ratio

(60)

APPENDIX: GANTT CHART FOR SECOND SEMESTER OF FINAL YEAR PROJECT (JAN 2009)

No. Detail/ Week 1 2 3 4 5 6 7 8 9 10 11 12 13 14

1 Project Work Continue -Practical/Laboratory Work 2 Submission of Progress Report 1

3 Project Work Continue -Practical/Laboratory Work 4 Submission of Progress Report 2 5 Project work continue

-Practical/Laboratory Work

6 Submission of Dissertation Final Draft

7 Oral Presentation

8 Submission of Project Dissertation

0 0

Suggested milestone Process

Rujukan

DOKUMEN BERKAITAN

And the time response of the PI controller developed and enhanced by using Smith predictor method is shown in the following figure... Figure 3.21: time response of the PI

Voltage controller based on A Fast response due to electronic converter A Some power lost Intelligent Algorithm tuning B The controller adapts according to B Low reliability

In this proposed project application, due to the current technologies in the year of 2019, most of the augmented reality application is not considered mature and it

Table 5.3 Sample marked area as potential object position - 1 Colour histogram comparison Template image.. Search

The response system using PS-PID after given certain disturbance has very short oscillation, fast response time in around 1 s and has minimum steady state error, as

Faculty of Information and Communication Technology (Perak Campus), UTAR INTERACTIVE LEARNING APPLICATION FOR COMPUTER.. PROGRAMMING

Since P controller settings obtained using CC method were same as P controller settings obtained by using ZN open loop tuning method, the process reaction curve of P controller

A Ziegler–Nichols tuning method and an adaptive gain technique have been used to design the PID controller, while the neural network controller has been designed from the

PID controller has widely used in Heat exchanger QAD MODEL BDT921 to control the output process.. PID is a generic control loop feedback mechanism attempts

The objective of the work reported in this paper is to investigate the performance of an intelligent hybrid iterative learning control scheme with input shaping for input tracking

In this research, the researchers will examine the relationship between the fluctuation of housing price in the United States and the macroeconomic variables, which are

SELF-TUNING PID CONTROLLER DESIGN USING FUZZY LOGIC FOR A SINGLE-LINK FLEXIBLE JOINT ROBOT MANIPULATOR.. Ali Dehghani * ,

For ease of reference, the proposed control algorithm, which incorporates both the model adaptation and self-tuning strategies in a single controller, is referred to as

This study proposes a composite controller that comprises Function Approximation Technique (FAT)-based Adaptive Controller (FATAC) for the slow subsystem to control

In this project, the Author stresses on designing a control strategy, which is tuning the parameter of the PID controller. Firstly, the Author need to determine the main caused

As the inverted pendulum system is a nonlinear system, the PID controller itself is insufficient to control the movement of the cart and pendulum. Thus, the current inverted

This technique would aid the PID tuning process and would be able to replace the current tuning methods such as the Ziegler-Nichols method, Butterworth filter design

The temperature control results of PID controller and fuzzy controllers were obtained, the most suitable step response characteristics for controller tuning and rule

This research focuses on a comparative study between PID controller and FuzzyPID controller for speed control of permanent magnet brushless (PM BLDC) motor

In this paper, the performance of position tracking control for EHS system will be investigated using a PID controller with optimization technique.. The servo valve

Hence, this research proposed a novel approach of closed-loop temperature control using a new self-tuning fuzzy fractional-order PI (FOPI) controller to realize

There is various of PID tuning method available but the method selected for the research is Particle Swarm Optimization PSO and the results was compare with Genetic Algorithm

From the controller implementation results, PID- computed torque control controller emerged as a much better control technique for the micro-manipulator model due