Open-Loop controller An Open-Loop (OL) controller is characterized by no direct connection between the output of the system and its input; therefore external disturbance, non-linear dynamics and parameter variations can cause significant errors between the plant output and the reference signal. r(s) Kp u(s) Gp(s) y(s) r(s) is the reference signal u(s) )is the control signal y(s) is the plant output K p is the controller gain G p (s) is the plant transfer function
Closed-Loop controller A Closed-Loop (CL) controller improves the plant behaviour by means of a feedback loop; the controller transfer functions are designed so that: y(t) r(t) in a desirable manner. CONTROLLER PLANT r(s) () e(s) () Gc(s) u(s) () Gp(s) y(s) H(s) e(s) = r(s) - y(s) is the error signal G c ()i (s) is the feed-forward df d controller transfer function H(s) is the feedback controller transfer function
The CL transfer function (CLTF) is: y ( s ) G ( s ) = r( s) 1+ G( s) H ( s) where G(s)=G c (s)g p (s) The denominator of CLTF is called the closed-loop l characteristic i polynomial and the equation: 1 + G( s) H ( s) = isthe closed-loop l characteristic equation (CLCE). TheCLCEhas n roots inthes-plane.
AN INTRODUCTION TO CONTROL THEORY By means of the Laplace transforms the relationship between input r(s) and output y(s) of a dynamic system can be rearranged in the following form: y s G(s) is called the transfer function: = G s r s ( ) ( ) ( ) G ( s ) = y s / r s ( ) ( ) and this is the keystone of control system design. r ( s ) y (s ) G (s )
For a linear second order system the transfer function is: G ( s ) λω 2 n = 2 2 s + 2ζω n s + ω n where the parameters λ, ζ, ω n characterise the response of the plant. λ is the low-frequency gain. The response for a unit step input is: 2.5 λ = 2, ζ =.5, ω n = 3 y = λr = 2 2 1.5 1 y(t) r(t) r = 1.5 t s 4 ζω n 27. s 1 2 3 4 5 6 7 8 9 1 time (s)
- The steady-state output is λr - The settling time of the response is t s 4/(ζω n ) - The transient is an exponential curve. The number of overshoots is (approximately) given by: ζ = 1. no overshoot (critical damping) ζ =7.7 1 overshoot (underdamping) ζ =.5 2 overshoots (underdamping)
Effects of unmodelled terms - The linear transfer function is an idealised model of the plant dynamics - Unmodelled terms can sometimes have a significant effect. Examples include stiction (i.e. static friction), signal noise, non-linear dynamics, load disturbances and parameter variations -.1 -.1 -.2 with linear -.2 -.3 stiction.1 -.1 -.1 with parameter linear variation -.2 (m 2m) -.4 -.3 -.5 with -.6 square-law drag -.7 linear -.4 4 -.5 -.8 -.2 -.3 -.3 -.4 -.4 -.5 -.5 with noise linear -.6.9 6 9.5.1.15.2.25.3.35.4.45.5 time (s) -.6 6.5.1.15.2.25.3.35.4.4.45.5.5 time (s)
Open-Loop controller An Open-Loop (OL) controller is characterized by no direct connection between the output of the system and its input; therefore external disturbance, non-linear dynamics and parameter variations can cause significant errors between the plant output and the reference signal. r(s) Kp u(s) Gp(s) y(s) r(s) is the reference signal u(s) )is the control signal y(s) is the plant output K p is the controller gain G p (s) is the plant transfer function
Closed-Loop controller A Closed-Loop (CL) controller improves the plant behaviour by means of a feedback loop; the controller transfer functions are designed so that: y(t) r(t) in a desirable manner. CONTROLLER PLANT r(s) () e(s) () Gc(s) u(s) () Gp(s) y(s) H(s) e(s) = r(s) - y(s) is the error signal G c ()i (s) is the feed-forward df d controller transfer function H(s) is the feedback controller transfer function
The CL transfer function (CLTF) is: y ( s ) G ( s ) = r( s) 1+ G( s) H ( s) where G(s)=G c (s)g p (s) The denominator of CLTF is called the closed-loop l characteristic i polynomial and the equation: 1 + G( s) H ( s) = isthe closed-loop l characteristic equation (CLCE). TheCLCEhas n roots inthes-plane.
Closed-Loop performance criteria Statement of the standard control problem: Determine u so that y follows a reference vector, r, ina well-defined and stable manner. Also ensure that the effects of disturbances are rejected in the steady-state. The following figure gives a qualitative idea of a successful control response: Effect of disturbance removed r y Desirable transient t behaviour Zero steady-state error Application of disturbance t
Therefore, in order of priority, the main performance criteria for a closed-loop system are: 1) stability 2) relative stability: closed-loop loop (CL) transient behaviour and dominant roots 3) steady-state behaviour 4) disturbance rejection
1) Stability The closed-looploop system must be stable under all circumstances. This is governed by the roots of the CLCE, which must be all in the left-half f of s-plane: Stable CL System Unstable CL System Im s-plane Im s-plane Re Re rd : CLCE roots (3 rd -order in this example)
2) Relative Stability: Closed-Loop (CL) Transient Behaviour and Dominant Roots The CLCE roots must be placed within specific regions insideid the left-half of s-plane in order to achieve desirable transient performance. Typical measures of transient performance are settling time and number of overshoots: these are largely governed by the distribution of the dominant roots of CLCE. 1 st -Order Dominance 2 nd -Order Underdamped Dominance Im s-plane Im s-planep +jω d -1/T Re -ζω n -jω d Re 2 Damped natural frequency: ω = ω 1 ζ : CLCE roots (4 th -order in this example) d n
3) Steady-State (ss) Behaviour This is governed by the characteristics of the reference signal r(s) and the number of integrators in the OLTF (i.e. the number of factors of s in the denominator of the OLTF). This number is called the CL system type, and is usually, 1 or 2. If the CL system has unit feedback (H(s) = 1), then: Type OLTFs give zero ss error when r is an impulse. Type 1 OLTFs give zero ss error when r is an impulse or a step. Type 2 OLTFs give zero ss error when r is an impulse, step or a ramp. In general, the CL steady-statestate error can be calculated from the Final Value Theorem: 1 + G ( s ) H ( s ) G ( s ) e = [ se( s)] = sr s s= ( ) 1+ GsHs () () s=
4) Disturbance Rejection Effects of disturbances are analysed in the same manner as steadystate errors. The controller should negate the effect of disturbances, at least at steady-state. Usually, the precise nature of the disturbances is unknown, but their structure can be estimated, for instance disturbances are constant, cyclic, random, etc.
Basic controller design The strategy for controller design is: 1) Determine the plant transfer function and its parameters. 2) Determine the required CL performance criteria. 3) Make an engineering judgement on the simplest controller to reach the goal. 4) Determine the controller parameters (gains) that satisfy the CL performance criteria. 5) Simulate the CL performance as design verification (optional, but sometimes essential).
Proportional (P) control This is the simplest linear controller: G ( s ) = k ; H ( s ) = 1 The parameter k p is called the proportional p gain: thedesign problem is to find a suitable value for this gain. c p We examine the following transfer function: G p ( s) = 2 s 18 + 3s + 9 With three different values of k p :.2;1;5.
Proportional (P) control poles in the s-plane 15 1 5 Im -2-1.5-1 -.5.5-5 -1-15 Re kp =,2 kp = 1 kp = 5
Proportional (P) control 1.6 1.4 1.2 1.8.6.4.2 -.2.5 1 1.5 2 2.5 3 3.5 4 4.5 5 reference signal kp =.2 kp = 1 kp = 5
Proportional-plus-Integral (PI) control To reduce the steady state error, we introduce a pole in the controller forward dynamics: ki ( s) = k p + ; H ( s) = 1 s The parameter k i isthe integral gain. G c We take k p = 1 and three different values of k i :.5; 1; 2. The plant response has been improved, but the response is too slow and there are too many overshoots.
Proportional-plus-Integral (PI) control poles in the s-plane 6 4 2 Im -2-1.5-1 -.5.5-2 -4-6 Re ki =.5 ki = 1 ki = 2
AN INTRODUCTION TO AUTOMATIC CONTROL Proportional-plus-Integral (PI) control 1.6 1.4 1.2 1 8.8.6.4.2 -.2 2.5 1 1.5 2 2.5 3 3.5 4 4.5 5 reference signal ki =.5 ki = 1 ki = 2
AN INTRODUCTION TO AUTOMATIC CONTROL Proportional-Integral-Derivative (PID) control To reduce the settling-timetime and the overshoots, we introduce a zero in the controller forward dynamics: G ki ( s) = k p + + kd s ; H ( s) = 1 s The parameter k d isthe derivative i gain. c We take k p = 5, k i = 2 and three different values of k d :.1;.5; 1. We observe that the plant response is very good for the following combination: k p =5, k i =2, k d =1
AN INTRODUCTION TO AUTOMATIC CONTROL Proportional-Integral-Derivative (PID) control poles in the s-plane 15 1 5 Im -17-14.5-12 -9.5-7 -4.5-2.5-5 -1-15 Re kd =.1 kd =.5 kd = 1
AN INTRODUCTION TO AUTOMATIC CONTROL Proportional-Integral-Derivative (PID) control 1.6 1.4 1.2 1.8.6.4 2.2 -.2.5 1 1.5 2 2.5 3 3.5 4 4.5 5 reference signal kd =.1 kd =.5 kd = 1