• 검색 결과가 없습니다.

Dept. of Chemical and Biological Engineering Korea University

N/A
N/A
Protected

Academic year: 2021

Share "Dept. of Chemical and Biological Engineering Korea University"

Copied!
13
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

CHE302 Process Dynamics and Control Korea University 11-1

CHE302 LECTURE XI

CONTROLLER DESIGN AND PID CONTOLLER TUNING

Professor Dae Ryook Yang

Fall 2001

Dept. of Chemical and Biological Engineering Korea University

Korea University 11-2

CONTROLLER DESIGN

• Performance criteria for closed-loop systems

– Stable

– Minimal effect of disturbance

– Rapid, smooth response to set point change – No offset

– No excessive control action

– Robust to plant-model mismatch

• Trade-offs in control problems

– Set point tracking vs. disturbance rejection – Robustness vs. performance

2 2

1 2

, , 0

min ( ( ) ( ))

c I D

K w e w u d

τ τ

τ + ∆ τ τ

(2)

CHE302 Process Dynamics and Control Korea University 11-3

GUIDELINES FOR COMMON CONTROL LOOPS

• Flow and liquid pressure control

– Fast response with no time delay

– Usually with small high-frequency noise

– PI controller with intermediate controller gain

• Liquid level control

– Noisy due to splashing and turbulence

– High gain PI controller for integrating process

– Conservative setting for averaging control when it is used for damping the fluctuation of the inlet stream

• Gas pressure control

– Usually fast and self regulating

– PI controller with small integral action (large reset time)

Korea University 11-4

• Temperature control

– Wide variety of the process nature – Usually slow response with time delay

– Use PID controller to speed up the response

• Composition control

– Similar to temperature control usually with larger noise and more time delay

– Effectiveness of derivative action is limited

– Temperature and composition controls are the prime

candidates for advance control strategies due to its importance and difficulty of control

(3)

CHE302 Process Dynamics and Control Korea University 11-5

TRIAL AND ERROR TUNING

• Step1: With P -only controller

– Start with low Kc value and increase it until the response has a sustained oscillation (continuous cycling) for a small set point or load change. (Kcu)

– Set Kc = Kcu.

• Step2: Add I mode

– Decrease the reset time until sustained oscillation occurs. ( ) – Set .

– If a further improvement is required, proceed to Step 3.

• Step3: Add D mode

– Decrease the reset time until sustained oscillation occurs. ( ) – Set .

(The sustained oscillation should not be cause by the controller saturation)

τIu I 3 Iu

τ = τ

τDu

D 3 Du

τ = τ

Korea University 11-6

CONTINUOUS CYCLING METHOD

• Also called as loop tuning or ultimate gain method

– Increase controller gain until sustained oscillation – Find ultimate gain (KCU) and ultimate period (PCU)

• Ziegler-Nichols controller setting

– ¼ decay ratio (too much oscillatory)

– Modified Ziegler-Nichols setting

0.5PCU/8 PCU/2

0.6KCU PID

- PCU/1.2

0.45KCU PI

- -

0.5KCU P

KC Controller

PCU/3 PCU/2

0.2KCU No overshoot

PCU/3 PCU/2

0.33KCU Some overshoot

PCU/8 PCU/2

0.6KCU Original

KC Controller

τI τD

τD

τI

(4)

CHE302 Process Dynamics and Control Korea University 11-7

• Examples

4.0 6.0

No overshoot 0.19

4.0 6.0

Some overshoot 0.31

1.5 6.0

Original 0.57

KC

Controller τI τD

3.87 5.8

No overshoot 1.58

3.87 5.8

Some overshoot 2.60

1.45 5.8

Original 4.73

KC

Controller τI τD

4 3.5

( ) 7 1

s p

G s e

s

=

+

( ) 2

(10 1)(5 1)

s p

G s e

s s

=

+ +

0.95 12

CU CU

K P

=

=

7.88 11.6

CU CU

K P

=

=

Korea University 11-8

• Advantages of continuous cycling method

– No a priori information on process required – Applicable to all stable processes

• Disadvantages of continuous cycling method

– Time consuming

– Loss of product quality and productivity during the tests – Continuous cycling may cause the violation of process

limitation and safety hazards

– Not applicable to open-loop unstable process

– First-order and second-order process without time delay will not oscillate even with very large controller gain

=> Motivates Relay feedback method. (Astrom and Wittenmark)

(5)

CHE302 Process Dynamics and Control Korea University 11-9

RELAY FEEDBACK METHOD

• Relay feedback controller

– Forces the system to oscillate by a relay controller

– Require a single closed-loop experiment to find the ultimate frequency information

– No a priori information on process is required – Switch relay feedback controller for tuning – Find PCUand calculate KCU

– User specified parameter: d

– Use Ziegler-Nichols Tuning rules for PID tuning parameters 4

CU

K d

πa

=

Decide d in order not to perturb the system too much.

Korea University 11-10

DESIGN RELATIONS FOR PID CONTROLLERS

• Cohen-Coon controller design relations

– Empirical relation for ¼ decay ratio for FOPDT model

(6)

CHE302 Process Dynamics and Control Korea University 11-11

• Design relations based on integral error criteria

– ¼ decay ratio is too oscillatory

– Decay ratio concerns only two peak points of the response – IAE: Integral of the Absolute Error

– ISE: Integral of the Square Error

• Large error contributes more

• Small error contributes less

• Large penalty for large overshoot

• Small penalty for small persisting oscillation

– ITAE: Integral of the Time-weighted Absolute Error

• Large penalty for persisting oscillation

• Small penalty for initial transient response

IAE =

0 e t dt( )

[ ]

2

ISE =

0 e t( ) dt

IAE

ITAE =

0t e t dt( )

Korea University 11-12

• Controller design relation based on ITAE for FOPDT model

• Similar design relations based on IAE and ISE for

other types of models can be found in literatures.

(7)

CHE302 Process Dynamics and Control Korea University 11-13

• Example1 Example2

( ) 10

2 1

e s

G s s

=

+

0.977

(0.859)(1/2) 1.69

0.169

c c

KK K

= =

⇒ =

PI

0.680

/ (0.674)(1/2) 1.08

1.85

I I

τ τ τ

= =

⇒ =

1.85 0.169

ITAE

2.44 0.245

ISE

2.02 0.195

IAE

Kc

Method τI

4 3.5

( ) 7 1

e s

G s s

=

+

Most oscillatory

Trade -offs

Korea University 11-14

• Design relations based on process reaction curve

– For the processes who have sigmoidal shape step responses (Not for underdamped processes)

– Fit the curve with FOPDT model

– Very simple

– Inherits all the problems of FOPDT model fitting

* / /

S = S ∆ =u K τ ( ) ( 1)

Ke s

G s s

θ

τ

=

+ S = ∆K u/τ

(8)

CHE302 Process Dynamics and Control Korea University 11-15

DIRECT SYNTHESIS METHOD

• Analysis: Given G

c

(s), what is y(t)?

• Design: Given y

d

(t), what should G

c

(s) be?

• Derivation

– If (Y/R)d = 1, then it implies perfect control. (infinite gain) – The resulting controller may not be physically realizable – Or, not in PID form and too complicated.

– Design with finite settling time:

( ) 1 /

( ) 1 1 1 /

OL c

c

OL c

G G G

Y s Y R

R s G G G G G Y R

 

= + = + ⇒ =  −  Let GOL = K G G Gm c v p @G Gc

( / ) Specify ( / ) 1

1 ( / )

d

d c

d

Y R G Y R

G Y R

 

⇒ =  − 

c

( / ) = 1

d 1

Y R τ s+

Korea University 11-16

• Examples

1. Perfect control (Kcbecomes infinite)

2. Finite settling time for 1st-order process

3. Finite settling time for 2nd-order process

1 2

( ) and ( / ) 1

( 1)( 1) d

G s K Y R

s s

τ τ

= =

+ +

1 1

( ) (infinite gain, unrealizable)

( ) 1-1 ( )

G sc

G s G s

  ∞

=   =

( ) and ( / ) 1

( 1) d c 1

G s K Y R

s s

τ τ

= =

+ +

1/( 1)

1 1 1

( ) 1 (PI)

( ) 1-1/( 1)

c c

c c c

s s

G s G s s K s K s

τ τ τ

τ τ τ τ

 +  +  

=  +  = =  + 

1 2

( ) and ( / ) 1

( 1)( 1) d c 1

G s K Y R

s s s

τ τ τ

= =

+ + +

1 2 1 2

1 2 1 2

( ) 1

( ) 1 (PID)

( ) ( )

c

c

G s s

K s

τ τ τ τ

τ τ τ τ τ

 

= +  + + + + 

(9)

CHE302 Process Dynamics and Control Korea University 11-17

• Process with time delay

– If there is a time delay, any physically realizable controller cannot overcome the time delay. (Need time lead)

– Given circumstance, a reasonable choice will be

– Examples 1.

2. With 1st-order Taylor series approx. ( )

3.

(

/

)

1

cs d

c

Y R e

s

θ

τ

=

+

( ) and ( / ) ( )

( 1) 1

s s

d c

c

Ke e

G s Y R

s s

θ θ

θ θ

τ τ

= = =

+ +

/( 1)

1 1 1

( ) (not a PID)

( ) 1 - /( 1) 1-

s c

c s s

c c

e s s

G s G s e s K s e

θ

θ θ

τ τ

τ τ

+ +

= + = +

s 1

eθ ≈ −θs

1 1 1

( ) 1 (PI)

( ) ( )

c

c c

G s s

K s K s

τ τ

τ θ τ θ τ

+  

= + = +  + 

1 2

( ) and ( / ) ( )

( 1)( 1) 1

s s

d c

c

Ke e

G s Y R

s s s

θ θ

τ τ τ θ θ

= = =

+ + +

1 2 1 2 1 2

1 2 1 2

( 1)( 1) 1 ( ) 1

( ) = 1 (PID)

( ) ( ) ( ) ( )

c

c c

s s

G s s

K s K s

τ τ τ τ τ τ

τ θ τ θ τ τ τ τ

+ + +

= + + + + + +

Physically realizable

Korea University 11-18

• Observations on Direct Synthesis Method

– Resulting controllers could be quite complex and may not even be physically realizable.

– PID parameters will be decided by a user-specified parameter:

The desired closed-loop time constant ( )

– The shorter makes the action more aggressive. (larger Kc) – The longer makes the action more conservative. (smaller Kc) – For a limited cases, it results PID form.

• 1st-order model without time delay: PI

• FOPDT with 1st-order Taylor series approx.: PI

• 2nd-order model without time delay: PID

• SOPDT with 1st-order Taylor series approx.: PID

• Delay modifies the Kc.

• With time delay, the Kc will not become infinite even for the perfect control (Y/R=1).

(1st order)

( )

c c

K K

τ τ

τ τ θ

+

1 2 1 2

( ) ( )

(2nd order)

( )

c c

K K

τ τ τ τ

τ τ θ

+ +

+

τc

τc

τc

(10)

CHE302 Process Dynamics and Control Korea University 11-19

INTERNAL MODEL CONTROL (IMC)

• Motivation

– The resulting controller from direct synthesis method may not be physically unrealizable.

– If there is RHP zero in the process, the resulting controller from direct synthesis method will be unstable.

– Unmeasured disturbance and modeling error are not considered in direct synthesis method.

• Source of trouble

– From direct synthesis method ( / )

1

1 ( / )

d c

d

G Y R

G Y R

 

=  − 

Direct inversion of process causes many problems

Resulting controller may have higher-order numerator than denominator

Process is unknown

Korea University 11-20

• IMC

– Feedback the error between the process output and model output.

– Equivalent conventional controller:

– Using block diagram algebra

*

( )

C = GP + L P = G E

c

E = − R C C − % = − + R C GP %

*

* *

( )

( ) / (1 )

c

c c

P G R C GP

P G R C G G

= − +

⇒ = − −

%

%

* *

( ) / (1 )

c c

C = GG R C − − G G % + L

* * * *

(1 + GG

c

G G C

c

% ) = GG R

c

+ − (1 G G L

c

% )

* *

* *

(1 )

1 ( ) 1 ( )

c c

c c

G G G G

C R L

G G G G G G

= + −

+ − + −

% % %

*

1

* c c

c

G G

= G G

− %

* *

If , (1 G % = G C = G GR

c

+ − G G L

c

)

(11)

CHE302 Process Dynamics and Control Korea University 11-21

• IMC design strategy

– Factor the process model as

contains any time delays and RHP zeros and is specified so that the steady-state gain is one

is the rest of G.

– The controller is specified as

• IMC filter f is a low-pass filter with steady-state gain of one

• Typical IMC filter:

• The is the desired closed-loop time constant and parameter r is a positive integer that is selected so that the order of numerator of Gc* is same as the order of denominator or exceeds the order of denominator by one.

G % % % = G G

+

G%+

G%

*

1

G

c

f G

= %

1 ( c 1)r f = τ s

+ τc

Uninvertibles

Korea University 11-22

• Example

– FOPDT model with 1/1 Pade approximation

(1 /2) (1 / 2)( 1)

K s

G s s

θ

θ τ

= −

+ +

%

1 / 2

(1 / 2)( 1)

G s G K

s s

θ θ τ

+

= −

=

+ +

% %

*

1 (1 /2)( 1) 1

( 1)

c

c

s s

G f

K s

G

θ τ

τ

+ +

= =

% +

*

*

(1 / 2)( 1)

(PID)

( / 2)

1

c c

c c

G s s

G G G K s

θ τ

τ θ

+ +

= =

− % +

1 ( / 2 ) / 2

/ 2

( / 2 ) / 2

c I D

c

K K

τ θ τ τ θ τ τθ

τ θ τ θ

= + = + =

+ +

(12)

CHE302 Process Dynamics and Control Korea University 11-23

IMC based PID controller settings

Korea University 11-24

COMPARISON OF CONTROLLER DESIGN RELATIONS

• PI controller settings for different methods ( ) 2

1 e

s

G s s

=

+

No modeling error 50% error in process gain best

Somewhat robust

(13)

CHE302 Process Dynamics and Control Korea University 11-25

EFFECT OF MODELING ERROR

• Actual plant

• Approx. model

– Satisfactory for this case – Use with care

• All kinds of tuning method should be used for initial setting and fine tuning should be done!!

( ) 2

(10 1)(5 1) e

s

G s s s

=

+ +

2

4.7

( ) 12 1 e

s

G s s

=

% +

As the estimated time delay gets smaller, the performance degradation will be pronounced.

Korea University 11-26

GENERAL CONCLUSION FOR PID TUNING

• The controller gain should be inversely proportional to the products of the other gains in the feedback loop.

• The controller gain should decrease as the ratio of time delay to dominant time constant increases.

• The larger the ratio of time delay to dominant time constant is, the harder the system is to control.

• The reset time and the derivative time should increase as the ratio of time delay to dominant time constant increases.

• The ratio between derivative time and reset time is typically between 0.1 to 0.3.

• The ¼ decay ratio is too oscillatory for process control. If less oscillatory response is desired, the controller gain should decrease and reset time should increase.

• Among IAE, ISE and ITAE, ITAE is the most conservative and ISE is the least conservative setting.

참조

관련 문서

- Dynamic modeling and solving ODE system with Laplace transform - Analysis of dynamic behavior of open and closed loop control system 3.. Preliminary