Digital Control: Summary # 7

Similar documents
6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

Digital Control Systems

ME 304 CONTROL SYSTEMS Spring 2016 MIDTERM EXAMINATION II

AN INTRODUCTION TO THE CONTROL THEORY

MAS107 Control Theory Exam Solutions 2008

EE C128 / ME C134 Fall 2014 HW 6.2 Solutions. HW 6.2 Solutions

Systems Analysis and Control

Root Locus. Motivation Sketching Root Locus Examples. School of Mechanical Engineering Purdue University. ME375 Root Locus - 1

100 (s + 10) (s + 100) e 0.5s. s 100 (s + 10) (s + 100). G(s) =

Systems Analysis and Control

Control Systems I Lecture 10: System Specifications

Homework 7 - Solutions

Analysis and Design of Control Systems in the Time Domain

Due Wednesday, February 6th EE/MFS 599 HW #5

ECEN 605 LINEAR SYSTEMS. Lecture 20 Characteristics of Feedback Control Systems II Feedback and Stability 1/27

Controls Problems for Qualifying Exam - Spring 2014

DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

Course Summary. The course cannot be summarized in one lecture.

MEM 355 Performance Enhancement of Dynamical Systems

PID controllers. Laith Batarseh. PID controllers

Lecture 13: Internal Model Principle and Repetitive Control

Intro to Frequency Domain Design

Alireza Mousavi Brunel University

7.2 Controller tuning from specified characteristic polynomial

Module 3F2: Systems and Control EXAMPLES PAPER 2 ROOT-LOCUS. Solutions

EE 380 EXAM II 3 November 2011 Last Name (Print): First Name (Print): ID number (Last 4 digits): Section: DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO

Transient response via gain adjustment. Consider a unity feedback system, where G(s) = 2. The closed loop transfer function is. s 2 + 2ζωs + ω 2 n

Discrete Systems. Step response and pole locations. Mark Cannon. Hilary Term Lecture

Systems Analysis and Control

PD, PI, PID Compensation. M. Sami Fadali Professor of Electrical Engineering University of Nevada

FEEDBACK CONTROL SYSTEMS

INTRODUCTION TO DIGITAL CONTROL

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) IN BIOMEDICAL ENGINEERING SEMESTER 1 EXAMINATION 2017/2018 ADVANCED BIOMECHATRONIC SYSTEMS

CHAPTER 7 STEADY-STATE RESPONSE ANALYSES

1 (20 pts) Nyquist Exercise

EE 422G - Signals and Systems Laboratory

IC6501 CONTROL SYSTEMS

EEL2216 Control Theory CT1: PID Controller Design

MEM 355 Performance Enhancement of Dynamical Systems

Compensator Design to Improve Transient Performance Using Root Locus

EEE 184 Project: Option 1

Unit 8: Part 2: PD, PID, and Feedback Compensation

Introduction to Feedback Control

Control of Manufacturing Processes

Proportional plus Integral (PI) Controller

Outline. Classical Control. Lecture 1

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

1 Chapter 9: Design via Root Locus

APPLICATIONS FOR ROBOTICS

Root Locus Design Example #4

SECTION 4: STEADY STATE ERROR

CDS 101/110 Homework #7 Solution

EE C128 / ME C134 Fall 2014 HW 9 Solutions. HW 9 Solutions. 10(s + 3) s(s + 2)(s + 5) G(s) =

Control Systems. University Questions

PID Control. Objectives

Feedback design for the Buck Converter

Dynamic Compensation using root locus method

Systems Analysis and Control

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Topic # Feedback Control

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

Chemical Process Dynamics and Control. Aisha Osman Mohamed Ahmed Department of Chemical Engineering Faculty of Engineering, Red Sea University

AMME3500: System Dynamics & Control

Software Engineering 3DX3. Slides 8: Root Locus Techniques

Design of a Lead Compensator

Chapter 8. Feedback Controllers. Figure 8.1 Schematic diagram for a stirred-tank blending system.

Control Systems. Design of State Feedback Control.

EL2450: Hybrid and Embedded Control Systems: Homework 1

a. Closed-loop system; b. equivalent transfer function Then the CLTF () T is s the poles of () T are s from a contribution of a

] [ 200. ] 3 [ 10 4 s. [ ] s + 10 [ P = s [ 10 8 ] 3. s s (s 1)(s 2) series compensator ] 2. s command pre-filter [ 0.

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control

Root Locus Design Example #3

Outline. Classical Control. Lecture 5

Essence of the Root Locus Technique

Fundamental of Control Systems Steady State Error Lecturer: Dr. Wahidin Wahab M.Sc. Aries Subiantoro, ST. MSc.

Automatic Control (TSRT15): Lecture 7

Course roadmap. Step response for 2nd-order system. Step response for 2nd-order system

Step input, ramp input, parabolic input and impulse input signals. 2. What is the initial slope of a step response of a first order system?

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

EEE 184: Introduction to feedback systems

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

Exercises for lectures 13 Design using frequency methods

Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL. Glenn Vinnicombe HANDOUT 5. An Introduction to Feedback Control Systems

If you need more room, use the backs of the pages and indicate that you have done so.

Control of Electromechanical Systems

Test 2 SOLUTIONS. ENGI 5821: Control Systems I. March 15, 2010

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

Optimal Polynomial Control for Discrete-Time Systems

Chapter 2 SDOF Vibration Control 2.1 Transfer Function

Laplace Transform Analysis of Signals and Systems

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering 2.04A Systems and Controls Spring 2013

Control Systems Lab - SC4070 Control techniques

Plan of the Lecture. Goal: wrap up lead and lag control; start looking at frequency response as an alternative methodology for control systems design.

Dr Ian R. Manchester

Transient Response of a Second-Order System

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

(a) Find the transfer function of the amplifier. Ans.: G(s) =

Systems Analysis and Control

Proportional, Integral & Derivative Control Design. Raktim Bhattacharya

Transcription:

Digital Control: Summary # 7 Proportional, integral and derivative control where K i is controller parameter (gain). It defines the ratio of the control change to the control error. Note that e(k) 0 u(k) u(k ) (4) This means that when the error is ero, the controller output does not change. It is possible to write the k th value for the controller output as follows u() u(0) + K i e() vu(2) u(0) + K i e(2) u(0) + K i e() + K i e(2). k u(k) u(0) + K i e(j) (5) j The output of the controller is proportional to all past errors. This means that the controller takes the history into account. Fig.. Block diagram of an integral controller The proportional controller discussed previously can be used to control the steady state error and the transient. It can be also used to reduces the steady state error; however, an infinite gain is needed to drive the steady state error to ero. Proportional controller: controller output is proportional to the error. Integral controller: change of the controller output is proportional to the error. In other words, the controller output is proportional to the integral of the error. The integral effort is what drives the error to ero. It is possible to write in the s-domain: U(s) K i E(s) () E(s) s U(s) (2) K i where U(s) is the output of the controller and E(s) is the input of the controller, K i is the controller gain. Integral control law Figure shows the block diagram of the controller where e(k) is the error, i.e., the difference between input and output of the system. The error is the input signal of the controller. u(k) is the output of the controller. The integral control law can be expressed as follows: u(k) u(k ) + K i e(k) (3) Find the -domain transfer function of the proportional controller u(k) u(k ) + K i e(k) (6) U() U() + K i E() (7) U() K i E() (8) K i (9) Steady state error with integral control In order to illustrate the effect of proportional control on steady state error we consider the following example. Consider the following system: G() 0.3 (0) The steady state error to a unit step input and unity feedback (with proportional controller with gain K ) is given by: e( ) lim( ) + 0.3 () + 0.7 (2) 88 (3) Steady state error to unit step with an integral controller e( ) lim( ) + Ki ( )( 0.3) (4)

Digital Controls, spring 208 Summary 7 0.8 Step Response Amplitude 0.6 0.4 0.2 Closed loop step response with unity feedback only 0 0 0. 0.2 0.3 0.4 0.6 0.7 0.8 0.9 (sec).5 Step Response Amplitude First order system with negative a Closed loop response with integral action 0 0 0. 0.2 0.3 0.4 0.6 0.7 0.8 0.9 Time (sec) Fig. 2. Step response for the closed loop system of (0). Clearly the steady state error is ero with the integral controller Fig. 3. Block diagram with integral controller in the presence of disturbance (top) and block diagram of PI controller (bottom) e( ) lim + Ki ( )( 0.3) (5) e( ) lim ( )( 0.3) ( )( 0.3) + K i 0 (6) Thus, with integral controller, for a system of type 0 and a constant input, the steady state error is ero and does not depend on K i. This means that any value of K i that satisfies stability can be used to drive the steady state error to ero. An illustration is shown in figure 2 for system (0), where the closed loop step response with and without integral controller is shown. Steady state error due to disturbance It is possible to consider the steady state error due to a step disturbance as shown in figure 3 top. Recall that the steady state error in the -domain is expressed as E() R() + C()G() D()G() + C()G() G()D() e d ( ) lim( ) + G()C() (7) (8) For a first order system and a unit step disturbance, we can write e d ( ) lim( ) 0.3 + Ki ( 0.3)( ) 0 (9) Therefore, the steady state error to a constant disturbance for any value of K i is 0. This means you can pick any value of K i as long as the system is stable. Proportional + integral Proportional +integral controller combines the advantages of proportional controller and those of integral controller. P control: improves the transient response. I control: ero steady state error. The controller has two terms: u p (k) K p e(k) u i (k) u i (k ) + K i e(k) The PI controller adds these terms together: u(k) u p (k) + u i (k) K p e(k) + u i (k ) + K i e(k) u(k ) u p (k ) + u i (k ) K p e(k ) + u i (k ) u(k) u(k ) K p e(k) K p e(k ) + K i e(k) Thus the final form for the PI controller is or u(k) u(k ) + K p e(k) K p e(k ) + K i e(k) (20) The transfer function of the PI controller is U() E() K p + K i U() E() (K i + K p ) K p (2) (22) Equation (2) emphasies on the components of the controller and equation (22) emphasies on the eros and poles of the controller. Steady state error with PI control: e( ) lim( ) + K p+k i K p 0.3 0 (23) PI controller by pole placement One of the most traditional ways to designing PI controllers is by using pole placement techniques. Consider the 2

Digital Controls, spring 208 Summary 7 block diagram of figure 3 bottom with G() 0.3 The closed loop transfer function is given by G cl () C()G() + C()G() ((K p+k i) K p) ( )( 0.3) ( )( 0.3)+((K p+k i) K p) ( )( 0.3) (K p + K i ) K p 2.3 + 0.3 + (K p + K i ) K p The characteristic polynomial is (24) (25) (26) Q() 2.3 + 0.3 + (K p + K i ) K p (27) The modeled characteristic polynomial is Q() 2 2 cos(ω d T )e ζωnt + e 2ζωnT (28) From the desired specifications, find the desired characteristic polynomial. Solve for K p, K i : equate the coefficients of the desired polynomial and the modeled characteristic polynomial and solve for K p and K i. Verify the results: check that the closed loop poles are inside the unit circle. Let G() 0.3 (29) Design a PI controller so that: T s s, M p % 0%. Take T 0.s. First T s s ζω n 8 (30) and ζ ln(m p) π 2 + ln 2 M p 9 (3) and ω n 3.56rad/s. The desired characteristic polynomial is obtained: from which we get: Finally: Q() 2 0.4 + 0.2 (32) 0.3 K p 0.2 (33) (K p + K i ).3 0.4 (34) K p 0.2 (35) K i.58 (36) In addition to pole placement, other techniques such as graphical tools and empirical methods can be used to design PI controllers. Proportional and derivative controller Integral controllers have the ability to drive the steady state error to ero. While in proportional control, the control action is based on the current error, in integral control, the controller action is based on the previous errors. The derivative term is different where the control action is based on the rate of change of the derivative. The idea in the derivative controller is that the controller should react immediately to any change in the error. The derivative control law has the form: u d (k) K d (e(k) e(k )) (37) where K d is the derivative control gain. It defines the importance given to the rate of change of the error. From equation (37), it is clear that the derivative action cannot react to a constant error. In practice, derivative action is never alone. It is used with proportional control and sometimes with integral control. The transfer function of the derivative action is given by U d () K d (E() E()) (38) U d E () K d (39) where K d is the controller gain. Proportional + derivative The transfer function of proportional + derivative controller is given by U E () K p + K d (K p + K d ) K d (40) Proportional derivative controllers have predictive ability and can be used effectively to reduce overshoot. Proportional + derivative + integral actions Proportional-integral-derivative controllers combine three different actions, three parameters K p, K i, K d are associated each with each action. The output of the controller is u(k) u p (k) + u i (k) + u d (k) (4) k K p e(k) + K i e(i) + K d (e(k) e(k )) i0 The transfer function of a PID controller is given by U() E() K p + K i + K d (42) The block diagram of a PID controller is shown in figure 4. The controller adds two poles to the system: one at the origin and the other one at. The controller transfer function can be written as C() (K p + K i + K d ) 2 (K p + 2K d ) + K d ( ) (43) There exist different methods to design PID controllers: Pole placement methods 3

Digital Controls, spring 208 Summary 7 The closed loop characteristic polynomial is given by Q() 3 3 2 +2+3(K p +K i +K d ) 2 3(K p +2K d )+3K d (50) By equating the two polynomials, we obtain T erm P ID Desired 3 2 3(K p + K d + K i ).3 3(K p + 2K d ) + 2 6 0 3K d 0.078 (5) The table above shows a comparison between the two polynomials in terms of their coefficients. The next step is to equate the coefficients and solve for the gains. Finally, by solving we get: K p 3 K i 0.06 (52) K d 0.026 Fig. 4. Block diagram of a PID control Graphical methods such as root locus Empirical methods (powerful in practice when it is difficult to obtain an algebraic model of the system) PID control using pole placement Pole placement means we chose the poles of the closed loop system. The chosen poles translate the desired characteristics of the system. The method is very similar to the PI design algorithm discussed previously. Consider the open loop transfer function given by G() 3 2 (44) Note that the open loop system is unstable. The desired poles locations are p,2 ± j0. (45) p 3 0.3 (46) The desired characteristic polynomial is given by Q() ( p )( p 2 )( p 3 ) ( + j0.)( j0.)( 0.3)(47) 3.3 2 + 6 0.078 (48) The closed loop transfer function is given by G cl () C()G() + C()G() (49) where C() is the transfer function of the PID controller given by (43). 4

Digital Controls, spring 208 Summary 7 x2 % Initial liquid level yx % Another variable for the liquid level f.75 % Numerical value of the disturbance T. % Sampling time r5 % desired liquid level, i.e., reference Kp2 % Proportionality gain Ki % Integral gain ep0 % previous sample error for time0:t:0 % Proportional u(kp)*(r-y) % The proportional control law only Fig. 5. Tank system yy+t*(u-f) % Open loop transfer function plot(time, y, b+ ) hold on end 5.5 5 4.5 4 Reference Level 3.5 3 2.5 With PI action 2.5 With P action only 0 5 0 5 20 25 30 time(s) Fig. 6. Closed loop system response with P and PI controller This example shows a simple implementation of the P and PI controllers to control the liquid level of figure 5. The closed loop system response is shown in figure 6. Sample code (for P only) can be found below. 5