Introduction to Digital Control. Week Date Lecture Title

Similar documents
Feedback Control of Linear SISO systems. Process Dynamics and Control

Lecture Schedule: Week Date Lecture Title

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

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

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

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

1 An Overview and Brief History of Feedback Control 1. 2 Dynamic Models 23. Contents. Preface. xiii

Dr Ian R. Manchester

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

DIGITAL CONTROLLER DESIGN

EE 422G - Signals and Systems Laboratory

INTRODUCTION TO DIGITAL CONTROL

Time Response of Systems

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) =

EE402 - Discrete Time Systems Spring Lecture 10

Chapter 7 Control. Part Classical Control. Mobile Robotics - Prof Alonzo Kelly, CMU RI

EE Experiment 11 The Laplace Transform and Control System Characteristics

School of Engineering Faculty of Built Environment, Engineering, Technology & Design

Modelling and Control of Dynamic Systems. PID Controllers. Sven Laur University of Tartu

Lecture 5 Classical Control Overview III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Control System Design

Systems Analysis and Control

Controls Problems for Qualifying Exam - Spring 2014

Methods for analysis and control of. Lecture 6: Introduction to digital control

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

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

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

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

Feedback Control of Dynamic Systems

Dynamic Response. Assoc. Prof. Enver Tatlicioglu. Department of Electrical & Electronics Engineering Izmir Institute of Technology.

Control of Manufacturing Processes

Linear State Feedback Controller Design

Chapter 13 Digital Control

Lecture Discrete dynamic systems

Control Systems Design

Systems Analysis and Control

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.

Course roadmap. ME451: Control Systems. Example of Laplace transform. Lecture 2 Laplace transform. Laplace transform

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

Video 5.1 Vijay Kumar and Ani Hsieh

Systems Analysis and Control

CDS 101/110a: Lecture 8-1 Frequency Domain Design

DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD

Laplace Transforms Chapter 3

EEL2216 Control Theory CT1: PID Controller Design

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

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

Table of Laplacetransform

Dr. Ian R. Manchester

ECE317 : Feedback and Control

SECTION 5: ROOT LOCUS ANALYSIS

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual


Control Systems I Lecture 10: System Specifications

Analysis and Design of Control Systems in the Time Domain

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Chapter 7. Digital Control Systems

Distributed Real-Time Control Systems

ECE 486 Control Systems

Control Systems II. ETH, MAVT, IDSC, Lecture 4 17/03/2017. G. Ducard

Control of Electromechanical Systems

Professional Portfolio Selection Techniques: From Markowitz to Innovative Engineering

CHAPTER 10: STABILITY &TUNING

Course Outline. Higher Order Poles: Example. Higher Order Poles. Amme 3500 : System Dynamics & Control. State Space Design. 1 G(s) = s(s + 2)(s +10)

7.4 STEP BY STEP PROCEDURE TO DRAW THE ROOT LOCUS DIAGRAM

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation

Exercise 5: Digital Control

School of Mechanical Engineering Purdue University. DC Motor Position Control The block diagram for position control of the servo table is given by:

Classify a transfer function to see which order or ramp it can follow and with which expected error.

Digital Control: Part 2. ENGI 7825: Control Systems II Andrew Vardy

MAS107 Control Theory Exam Solutions 2008

Robotics & Automation. Lecture 25. Dynamics of Constrained Systems, Dynamic Control. John T. Wen. April 26, 2007

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Discrete-time Controllers

Topic # Feedback Control Systems

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

FEEDBACK CONTROL SYSTEMS

EE C128 / ME C134 Final Exam Fall 2014

Chapter 3 Data Acquisition and Manipulation

Lecture 5: Linear Systems. Transfer functions. Frequency Domain Analysis. Basic Control Design.

Controller Design using Root Locus

Alireza Mousavi Brunel University

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

Automatic Control (TSRT15): Lecture 7

Optimal Polynomial Control for Discrete-Time Systems

Introduction to Feedback Control

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

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

CYBER EXPLORATION LABORATORY EXPERIMENTS

9.5 The Transfer Function

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

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL & COMPUTER ENGINEERING FINAL EXAM. COURSE: ECE 3084A (Prof. Michaels)

Problem Weight Total 100

Question: Total. Points:

Automatic Control (MSc in Mechanical Engineering) Lecturer: Andrea Zanchettin Date: Student ID number... Signature...

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

BASIC PROPERTIES OF FEEDBACK

Pole placement control: state space and polynomial approaches Lecture 2

Transcription:

http://elec3004.com Introduction to Digital Control 2016 School of Information Technology and Electrical Engineering at The University of Queensland Lecture Schedule: Week Date Lecture Title 1 29-Feb Introduction 3-Mar Systems Overview 2 3 4 7-Mar Systems as Maps & Signals as Vectors 10-Mar Data Acquisition & Sampling 14-Mar Sampling Theory 17-Mar Antialiasing Filters 21-Mar Discrete System Analysis 24-Mar Convolution Review 28-Mar Holiday 5 6 7 8 9 10 11 12 13 31-Mar 4-Apr Frequency Response & Filter Analysis 7-Apr Filters 11-Apr Digital Filters 14-Apr Digital Filters 18-Apr Digital Windows 21-Apr FFT 25-Apr Holiday 28-Apr Introduction to Feedback Control 3-May Holiday 5-May Feedback Control & Regulation 9-May Servoregulation/PID 12-May Introduction to (Digital) Control 16-May Digital Control Design 19-May Stability 23-May Digital Control Systems: Shaping the Dynamic Response & Estimation 26-May Applications in Industry 30-May System Identification & Information Theory 2-Jun Summary and Course Review ELEC 3004: Systems 12 May 2016 2 1

Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 G. Franklin, J. Powell, M. Workman Digital Control of Dynamic Systems 1990 TJ216.F72 1990 [Available as UQ Ebook] Today FPW Chapter 4: Discrete Equivalents to Continuous Transfer Functions: The Digital Filter FPW Chapter 5: Design of Digital Control Systems Using Transform Techniques ELEC 3004: Systems 12 May 2016 3 Final Exam Information announcement Date: Saturday, June/18 (remember buses on Saturday Schedule) Time: 9:30 am Location: TBA (Maybe Heath Room?) UQ Exams are now ID Verified Please remember your ID! ELEC 3004: Systems 12 May 2016 4 2

Final Exam Information Section 1: Digital Linear Dynamical Systems 5 Questions 60 Points (33 %) Section 2: Digital Processing / Filtering of Signals 5 Questions 60 Points (33 %) Section 3: Digital & State-Space Control 5 Questions 60 Points (33 %) Online materials: Supplied Equation Sheet Some Review Notes ELEC 3004: Systems 12 May 2016 5 PID (Intro) ELEC 3004: Systems 12 May 2016 6 3

PID in Perspective Deceivingly effective a little control goes a long way Lots of legacy Shifts happen in abruptly Ex: Temperature Control On Off: Lots of oscillations High gains + Inertia Derivative action useful here PID: Low level Computer as high-level setting set-point Case Studies : DVD drive: 3 PIDs Rotation speed Focus Track following Canadian Paper mill PID Audit 2000 Loops 97%: PI 20%: Worked well ( σ) 30%: Bad Tuning 30% : Broken kit 20%: non anti-aliasing, poor sampling rates, etc. Old-timers unwilling to learn new technology Lower γ [Learning Rate] +: Not change for change sake Auto-tuning Distributed operation Fast sampling and data-processing ELEC 3004: Systems 12 May 2016 7 PID Algorithm (in various domains): PID Algorithm (in Z-Domain): Tz D z = K p 1 + T I z 1 + T D z 1 Tz As Difference equation: Pseudocode [Source: Wikipedia]: ELEC 3004: Systems 12 May 2016 8 4

PID Intuition Effects of increasing a parameter independently Parameter Rise time Overshoot Settling time Steady-state error Stability K p Minimal change K I Eliminate K D Minor change No effect / minimal change Improve (if K D small) ELEC 3004: Systems 12 May 2016 9 Tuning Ziegler-Nichols (Only) moderately good tuning only in restricted situations. Step Response Method Chien, Hrones, and Reswick Load disturbance response method Frequency Response Method set-point response method ELEC 3004: Systems 12 May 2016 10 5

Poles are Eigenvalues: Some Implications ELEC 3004: Systems 12 May 2016 11 Stability of a 2 nd order regulator The linear behavior of the system in the close neighborhood of the origin is described by AND, the characteristic equation is: ELEC 3004: Systems 12 May 2016 12 6

Various Types of Singularities (2 nd order systems) ELEC 3004: Systems 12 May 2016 13 How to Design? Back to Analog! (Design By Emulation) ELEC 3004: Systems 12 May 2016 14 7

Two cases for control design The system Isn t fast enough Isn t damped enough Overshoots too much Requires too much control action ( Performance ) Attempts to spontaneously disassemble itself ( Stability ) ELEC 3004: Systems 12 May 2016 15 Dynamic compensation We can do more than just apply gain! We can add dynamics into the controller that alter the open-loop response compensator plant -y u y s + 2 1 s(s + 1) Img(s) -y combined system s + 2 s(s + 1) Increasing k y Re(s) ELEC 3004: Systems 12 May 2016 16 8

But what dynamics to add? Recognise the following: A root locus starts at poles, terminates at zeros Holes eat poles Closely matched pole and zero dynamics cancel The locus is on the real axis to the left of an odd number of poles (treat zeros as negative poles) Img(s) Re(s) ELEC 3004: Systems 12 May 2016 17 The Root Locus (Quickly) The transfer function for a closed-loop system can be easily calculated: y = CH r y y + CHy = CHr y r = CH 1 + CH r + S - e C controller u H plant y ELEC 3004: Systems 12 May 2016 18 9

The Root Locus (Quickly) We often care about the effect of increasing gain of a control compensator design: Multiplying by denominator: y r = y r = kch 1 + kch kc n H n C d H d + kcnhn characteristic polynomial r + S - e k C u H y ELEC 3004: Systems 12 May 2016 19 The Root Locus (Quickly) Pole positions change with increasing gain The trajectory of poles on the pole-zero plot with changing k is called the root locus This is sometimes quite complex Increasing k Img(s) Re(s) (In practice you d plot these with computers) ELEC 3004: Systems 12 May 2016 20 10

Root Locus Design: Evan s Method Imagine the basic feedback system : Characteristic Equation: 1 + DGH = 0 Put the characteristic equation in Root Locus form: 1 + K L(s) = 0 If we define L(s) = b(s) a(s) then a s + K b s = 0 and L s = 1 K Thus a Root Locus is a graph of all possible roots of 1 + K L s = 0 and K as the variable parameter This is the solution to the roots of the closed-loop system characteristic equation and thus the closed-loop poles of the system. The root-locus graph may be viewed as a method for interring the dynamic properties of a system as K changes. ELEC 3004: Systems 12 May 2016 21 Designing in the Purely Discrete ELEC 3004: Systems 12 May 2016 22 11

Now in discrete Naturally, there are discrete analogs for each of these controller types: Lead/lag: 1 αz 1 1 βz 1 PID: k 1 + 1 τ i (1 z 1 ) + τ d(1 z 1 ) But, where do we get the control design parameters from? The s-domain? ELEC 3004: Systems 12 May 2016 23 Emulation vs Discrete Design Remember: polynomial algebra is the same, whatever symbol you are manipulating: eg. s 2 + 2s + 1 = s + 1 2 z 2 + 2z + 1 = z + 1 2 Root loci behave the same on both planes! Therefore, we have two choices: Design in the s-domain and digitise (emulation) Design only in the z-domain (discrete design) ELEC 3004: Systems 12 May 2016 24 12

Emulation design process 1. Derive the dynamic system model ODE 2. Convert it to a continuous transfer function 3. Design a continuous controller 4. Convert the controller to the z-domain 5. Implement difference equations in software Img(s) Img(s) Img(z) Re(s) Re(s) Re(z) ELEC 3004: Systems 12 May 2016 25 Emulation design process Handy rules of thumb: Use a sampling period of 20 to 30 times faster than the closedloop system bandwidth Remember that the sampling ZOH induces an effective T/2 delay There are several approximation techniques: Euler s method Tustin s method Matched pole-zero Modified matched pole-zero ELEC 3004: Systems 12 May 2016 26 13

Euler s method* Dynamic systems can be approximated by recognising that: x x k + 1 x k T x(t k+1 ) As T 0, approximation error approaches 0 x(t k ) *Also known as the forward rectangle rule Just an approximation more on this later T ELEC 3004: Systems 12 May 2016 27 An example! Convert the system Y s X s T, using Euler s method. = s+2 s+1 into a difference equation with period 1. Rewrite the function as a dynamic system: sy s + Y s = sx s + 2X s Apply inverse Laplace transform: y (t) + y(t) = x (t) + 2x(t) 2. Replace continuous signals with their sampled domain equivalents, and differentials with the approximating function y k + 1 y(k) x k + 1 x(k) + y k = + 2x k T T ELEC 3004: Systems 12 May 2016 28 14

An example! Simplify: y k + 1 y(k) + Ty k y k + 1 + T 1 y k = x k + 1 x(k) + 2Tx k = x k + 1 + 2T 1 x k y k + 1 = x k + 1 + 2T 1 x k T 1 y k We can implement this in a computer. Cool, let s try it! ELEC 3004: Systems 12 May 2016 29 Back to the future A quick note on causality: Calculating the (k+1)th value of a signal using y k + 1 = x k + 1 + Ax k By k future value current values relies on also knowing the next (future) value of x(t). (this requires very advanced technology!) Real systems always run with a delay: y k = x k + Ax k 1 By k 1 ELEC 3004: Systems 12 May 2016 30 15

Back to the example! (The actual calculation) ELEC 3004: Systems 12 May 2016 31 Tustin s method Tustin uses a trapezoidal integration approximation (compare Euler s rectangles) Integral between two samples treated as a straight line: u kt x k 1 + x(k) = T 2 Taking the derivative, then z-transform yields: s = 2 T z 1 z+1 which can be substituted into continuous models x(t k ) x(t k+1 ) (k 1)T kt ELEC 3004: Systems 12 May 2016 32 16

Matched pole-zero If z = e st, why can t we just make a direct substitution and go home? Y(s) = s+a X(s) s+b Y(z) = z e at X(z) z e bt Kind of! Still an approximation Produces quasi-causal system (hard to compute) Fortunately, also very easy to calculate. ELEC 3004: Systems 12 May 2016 33 Matched pole-zero The process: 1. Replace continuous poles and zeros with discrete equivalents: (s + a) (z e at ) 2. Scale the discrete system DC gain to match the continuous system DC gain 3. If the order of the denominator is higher than the enumerator, multiply the numerator by (z + 1) until they are of equal order* * This introduces an averaging effect like Tustin s method ELEC 3004: Systems 12 May 2016 34 17

Modified matched pole-zero We re prefer it if we didn t require instant calculations to produce timely outputs Modify step 2 to leave the dynamic order of the numerator one less than the denominator Can work with slower sample times, and at higher frequencies ELEC 3004: Systems 12 May 2016 35 Discrete design process 1. Derive the dynamic system model ODE 2. Convert it to a discrete transfer function 3. Design a digital compensator 4. Implement difference equations in software 5. Platypus Is Divine! Img(z) Img(z) Img(z) Re(z) Re(z) Re(z) ELEC 3004: Systems 12 May 2016 36 18

Discrete design process Handy rules of thumb: Sample rates can be as low as twice the system bandwidth but 5 to 10 for stability 20 to 30 for better performance A zero at z = 1 makes the discrete root locus pole behaviour more closely match the s-plane Beware dirty derivatives dy dt terms derived from sequential digital values are called dirty derivatives these are especially sensitive to noise! Employ actual velocity measurements when possible ELEC 3004: Systems 12 May 2016 37 Sampling a continuous-time system Source: Boyd, Lecture Notes for EE263, 10-22 ELEC 3004: Systems 12 May 2016 38 19

Piecewise constant system Source: Boyd, Lecture Notes for EE263, 10-23 ELEC 3004: Systems 12 May 2016 39 Qualitative behaviour of x(t) Source: Boyd, Lecture Notes for EE263, 10-24 ELEC 3004: Systems 12 May 2016 40 20

Qualitative behaviour of x(t) [2] Source: Boyd, Lecture Notes for EE263, 10-25 ELEC 3004: Systems 12 May 2016 41 Qualitative behaviour of x(t) [3] Source: Boyd, Lecture Notes for EE263, 10-26 ELEC 3004: Systems 12 May 2016 42 21

Qualitative behaviour of x(t) [4] Source: Boyd, Lecture Notes for EE263, 10-27 ELEC 3004: Systems 12 May 2016 43 Qualitative behaviour of x(t) [5] Source: Boyd, Lecture Notes for EE263, 10-28 ELEC 3004: Systems 12 May 2016 44 22

Stability ELEC 3004: Systems 12 May 2016 45 Fast sampling revisited For small T: Hence, the unit circle under the map from z to s-plane becomes: ELEC 3004: Systems 12 May 2016 46 23

Specification bounds Recall in the continuous domain, response performance metrics map to the s-plane: ω n = s Img(s) Img(s) θ Img(s) Re(s) Re(s) Re(s) s = 1.8 t r s = σ s = 4.6 t s θ = sin 1 ζ ELEC 3004: Systems 12 May 2016 47 Discrete bounds These map to the discrete domain: Img(z) Img(z) Img(z) z Re(z) Re(z) Re(z) z = e t st In practice, you d use Matlab to plot these, and check that the spec is satisfied ELEC 3004: Systems 12 May 2016 48 24

Example Code: %% Input System Model G numg=5; deng=[1 20 0]; sysg=tf(numg, deng); %% Approximate the ZOH (1-e^-sT)/(s) [nd, dd]=pade(1,2); %pade gives us the "hold" or -e^-st of a ZOH sysp=tf(nd, dd); sysi=tf([1],[1,0]); %Now we need the "1/s" portion sys1=series(1-sysp, sysi); % Approximation as a series %% Open loop response syso=series(sys1, sysg); % computer the open loop G with the ZOH sys=feedback(syso,1); % Computer the unity feedback response step(sys) % Display the step response ELEC 3004: Systems 12 May 2016 49 Break!: Fun Application: Optical Proximity Correction ELEC 3004: Systems 12 May 2016 50 25

Next Time PID! Review: PID notes online Chapter 5 of FPW Deep Pondering?? ELEC 3004: Systems 12 May 2016 51 26