Outline. Digital Control. Lecture 3

Similar documents
Readings: FC: p : lead compensation. 9/9/2011 Classical Control 1

Course Outline. Time vs. Freq. Domain Analysis. Frequency Response. Amme 3500 : System Dynamics & Control. Design via Frequency Response

Lecture 7:Examples using compensators

Frequency Response Analysis and Design Tutorial

EE 461 Experiment #1 Digital Control of DC Servomotor

and using the step routine on the closed loop system shows the step response to be less than the maximum allowed 20%.

Dr Ian R. Manchester

CDS 101/110: Lecture 9.1 Frequency DomainLoop Shaping

PERSONALIZED EXPERIMENTATION IN CLASSICAL CONTROLS WITH MATLAB REAL TIME WINDOWS TARGET AND PORTABLE AEROPENDULUM KIT

Implementation and Simulation of Digital Control Compensators from Continuous Compensators Using MATLAB Software

ECE317 Homework 7. where

ECE317 : Feedback and Control

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

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

ME 375. HW 7 Solutions. Original Homework Assigned 10/12, Due 10/19.

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

Chapter 5 Frequency-domain design

Bode Plots. Hamid Roozbahani

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Report

CDS 101/110: Lecture 8.2 PID Control

UCD3138 Control Theory UCD3138 Digital Controller Control Theory

EE Experiment 8 Bode Plots of Frequency Response

Bode Plot for Controller Design

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Module 08 Controller Designs: Compensators and PIDs

Outline. Goals Project Description/Requirements. Equipment Implementation Progress Summary References

Introduction to Signals and Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

Dr Ian R. Manchester Dr Ian R. Manchester Amme 3500 : Root Locus Design

ME451: Control Systems. Course roadmap

EELE 4310: Digital Signal Processing (DSP)

DSP based Digital Control Design for DC-DC Switch Mode Power Converter. Shamim Choudhury Texas Instruments Inc.

EE152 F13 Midterm 1. Before starting, please check to make sure that you have all 6 pages Total 100. V0.

CHASSIS DYNAMOMETER TORQUE CONTROL SYSTEM DESIGN BY DIRECT INVERSE COMPENSATION. C.Matthews, P.Dickinson, A.T.Shenton

Bode and Log Magnitude Plots

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Winter Semester, Linear control systems design Part 1

Motomatic via Bode by Frank Owen, PhD, PE Mechanical Engineering Department California Polytechnic State University San Luis Obispo

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

(A) Based on the second-order FRF provided, determine appropriate values for ω n, ζ, and K. ω n =500 rad/s; ζ=0.1; K=0.

EE 435. Lecture 16. Compensation Systematic Two-Stage Op Amp Design

CONTROLLER DESIGN FOR POWER CONVERSION SYSTEMS

Modeling and Analysis of Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

CDS 101/110: Lecture 10-2 Loop Shaping Design Example. Richard M. Murray 2 December 2015

DESIGN AND VALIDATION OF A PID AUTO-TUNING ALGORITHM

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

MEM01: DC-Motor Servomechanism

EEL2216 Control Theory CT2: Frequency Response Analysis

Matlab r and Simulink Use in Response Analysis of Automobile Suspension System in Design

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

CDS 110 L10.2: Motion Control Systems. Motion Control Systems

Relay Feedback Tuning of Robust PID Controllers With Iso-Damping Property

Lecture 10. Lab next week: Agenda: Control design fundamentals. Proportional Control Proportional-Integral Control

TUTORIAL 9 OPEN AND CLOSED LOOP LINKS. On completion of this tutorial, you should be able to do the following.

EE422G Solution to Homework #8

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

JUNE 2014 Solved Question Paper

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

Välkomna till TSRT15 Reglerteknik Föreläsning 5. Summary of lecture 4 Frequency response Bode plot

JNTUWORLD. 6 The unity feedback system whose open loop transfer function is given by G(s)=K/s(s 2 +6s+10) Determine: (i) Angles of asymptotes *****

Stabilizing and Robust FOPI Controller Synthesis for First Order Plus Time Delay Systems

Open Loop Frequency Response

MIMO-LTI Feedback Controller Design -Status report-

EE 560 Electric Machines and Drives. Autumn 2014 Final Project. Contents

The Matching Coefficients PID Controller

Sfwr Eng/TRON 3DX4, Lab 4 Introduction to Computer Based Control

EE 370/L Feedback and Control Systems Lab Section Post-Lab Report. EE 370L Feedback and Control Systems Lab

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

Analog Integrated Circuits Fundamental Building Blocks

PYKC 13 Feb 2017 EA2.3 Electronics 2 Lecture 8-1

Project Advisor: Dr. Gary L. Dempsey

4 Experiment 4: DC Motor Voltage to Speed Transfer Function Estimation by Step Response and Frequency Response (Part 2)

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SCIENCE AND ENGINEERING

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

Robust PID Controller Autotuning With An Iso-Damping Property Through A Phase Shaper

UAV: Design to Flight Report

Lecture 2, Amplifiers 1. Analog building blocks

LECTURE FOUR Time Domain Analysis Transient and Steady-State Response Analysis

ROBUST PID CONTROLLER AUTOTUNING WITH A PHASE SHAPER 1

Comparative Analysis of Controller Tuning Techniques for Dead Time Processes

Exercise 8: Frequency Response

Lecture 48 Review of Feedback HW # 4 Erickson Problems Ch. 9 # s 7 &9 and questions in lectures I. Review of Negative Feedback

Position Control of DC Motor by Compensating Strategies

Embedded Control Project -Iterative learning control for

, answer the next six questions.

DESIGN AND ANALYSIS OF FEEDBACK CONTROLLERS FOR A DC BUCK-BOOST CONVERTER

DYNAMIC VOLTAGE RESTORER FOR VOLTAGE SAG MITIGATION IN OIL & GAS INDUSTRY

(1) Identify individual entries in a Control Loop Diagram. (2) Sketch Bode Plots by hand (when we could have used a computer

Magnetic Levitation System

Designing PID controllers with Matlab using frequency response methodology

( ) = V s ( jω ) = 2 kω, a = 4, R s. = 500 nf Draw a Bode diagram of the magnitude and phase of the frequency. Let R p. response H jω. V in.

EE 482 : CONTROL SYSTEMS Lab Manual

Lab 4: First/Second Order DT Systems and a Communications Example (Second Draft)

Graphical User Interface Based Controller Design for Switching Converters

即時控制系統設計 Design of Real-Time Control Systems

SECTION 6: ROOT LOCUS DESIGN

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear control systems design

Bode plot, named after Hendrik Wade Bode, is usually a combination of a Bode magnitude plot and Bode phase plot:

Transcription:

Outline

Outline Outline 1 ler Design 2

What have we talked about in MM2? Sampling rate selection Equivalents between continuous & digital Systems

Outline ler Design Emulation Method for 1 ler Design Emulation Method for 2

ler Design ler Design Emulation Method for Digital controller can be obtained using: Emulation, which finds the discrete equivalent of a continuous controller Direct discrete design (next lecture)

ler Design Frequency Issues Emulation Method for Continuous Systems For a minimum-phase transfer function, the phase is uniquely determined by the magnitude curve: G(jω) n 9 where n is the slope of G(jω) in units of decade of amplitude Discrete Systems The amplitude and phase relationship is lost! The prediction of stability from the amplitude curve alone for minimum-phase systems is lost It is typically necessary to determine both magnitude and phase for discrete systems

ler Design Emulation Method Emulation Method for 1 A continuous controller is designed 2 Sample time is selected 3 Discrete equivalent is computed 4 Evaluation of design

Outline ler Design 1 ler Design Emulation Method for 2

ler Design Case Study: Antenna Control General System Model: J θ + B θ = T c + T d Discarding the disturbances T d gives the transfer function: where a = B J Design Specifications: Θ(s) U(s) = 1 s ( s a + 1) =.1 and u(t) = Tc(t) B. Overshoot to a step input less than 16% (PM 55) Settling time to 1% in less than 1s Tracking error to ramp of slope.1 rad sec less than.1rad Sampling time to give at least 1 samples in a rise-time

ler Design Lead Compensator Design for Antenna (FC pp. 375) Step 1 Design the low frequency gain K with respect to the steady-state error specification Antenna system case: K = 1 Step 2 Determine the needed phase lead sys=tf(1,[1 1 ]); margin(sys) PM=18 at ω =.38

ler Design Lead Compensator Design for Antenna (FC pp. 375) Step 3 Using lead contribution of φ max = 45 should result in PM=63 which is 8 more than needed. Step 4 Determine: α = 1 sinφ max 1 + sinφ max = 1 sin45 1 + sin45 =.1716 Step 5 T = 1 = 1 ω max α ω n = 2 α 2.92 α = 5.248 Giving a zero in s = 1 T =.19 and a pole in s = 1 αt = 1.11.

ler Design Lead Compensator Design for Antenna (FC pp. 375) Step 6 Draw the compensated frequency response, check PM Using the formulation: we use: sysd=tf([5.3 1],[.9 1]) sysc=sys*sysd margin(sysc) step(feedback(sysc,1)) D(s) = Ts + 1 αts + 1

ler Design Lead Compensator Design for Antenna (FC pp. 375) 4 Bode Diagram Gm = Inf db (at Inf rad/sec), Pm = 56.3 deg (at.55 rad/sec) 1.4 Step Response 2 1.2 System: untitled1 Time (sec): 5.65 Amplitude: 1.16 Magnitude (db) 2 4 1 System: untitled1 Time (sec): 13.3 Amplitude: 1.1 6 8 9 Amplitude.8.6 Phase (deg) 135.4.2 18 1 2 1 1 1 1 1 1 2 Frequency (rad/sec) 5 1 15 2 25 Time (sec) Figure: Frequency response Figure: Step response

ler Design Lead Compensator Design for Antenna (FC pp. 375) Step 7 Step 7: Iterate on the design until all specifications are met sysd=tf([1 1],[1 1]) sysc=sys*sysd margin(sysc) syscl=feedback(sysc,1) step(syscl)

ler Design Lead Compensator Design for Antenna (FC pp. 375) Bode Diagram Step Response 2 1.4 Magnitude (db) 2 4 6 8 Amplitude 1.2 1.8.6 System: syscl Time (sec): 3.63 Amplitude: 1.16 System: syscl Time (sec): 8.75 Amplitude:.99 45 Phase (deg) 9 135.4.2 18 1 2 1 1 1 1 1 1 2 Frequency (rad/sec) 2 4 6 8 1 12 Time (sec) Figure: Frequency response Figure: Step response

ler Design Digital Lead Compensator for Antenna - Fast Sampling Continuous lead controller Digitization - Fast Sample Rate D(s) = 1s + 1 s + 1 sysc=tf(1,[1 1 ]); lead=tf([1 1],[1 1]); syslead=sysc*lead; Ts=1/2; leadd1=c2d(lead,ts, zoh ); sysd=c2d(sysc,ts, zoh ); syscld=feedback(sysd*leadd1,1); step(syscld)

ler Design Digital Lead Compensator for Antenna - Fast Sampling 1.4 Step Response 1.2 System: syscldfast Time (sec): 3.65 Amplitude: 1.18 Amplitude 1.8.6 System: syscldfast Time (sec): 8.75 Amplitude:.99.4.2 2 4 6 8 1 12 Time (sec)

ler Design Digital Lead Compensator for Antenna - Slow Sampling Continuous lead controller Digitization - Slow Sample Rate D(s) = 1s + 1 s + 1 sysc=tf(1,[1 1 ]); lead=tf([1 1],[1 1]); syslead=sysc*lead; Ts=1/2; leadd1=c2d(lead,ts, zoh ); sysd=c2d(sysc,ts, zoh ); syscld=feedback(sysd*leadd1,1); step(syscld)

ler Design Digital Lead Compensator for Antenna - Slow Sampling 1.4 System: syscldslow Time (sec): 3.35 Amplitude: 1.35 Step Response 1.2 Amplitude 1.8.6 System: syscldslow Time (sec): 13.5 Amplitude:.99.4.2 2 4 6 8 1 12 14 16 18 Time (sec)

ler Design Effect of Sample Time on Step Response Step Response 1.4 1.2 Continuous Fast sampling Slow sampling 1 Amplitude.8.6.4.2 2 4 6 8 1 12 14 16 18 Time (sec)

ler Design Effect of Sample Time on Frequency Response 5 Bode Diagram Magnitude (db) 5 1 Phase (deg) 15 9 18 Continuous Fast sampling Slow sampling 27 1 2 1 1 1 1 1 1 2 Frequency (rad/sec)

ler Design Effect of Sample Time on Pole Locations 1 Pole Zero Map.8.6.4 System: untitled1 Pole :.5 +.866i Damping:.5 Overshoot (%): 16.3 Frequency (rad/sec): 1 System: syscldslow Pole :.737 +.422i Damping:.3 Overshoot (%): 37.3 Frequency (rad/sec): 1.9 Imaginary Axis.2.2 System: syscldfast Pole :.975.433i Damping:.482 Overshoot (%): 17.7 Frequency (rad/sec): 1.1.4.6.8 1 1.8.6.4.2.2.4.6.8 1 Real Axis

ler Design Incorporating Sampling Delay in System Continuous System G(s) = 1 s(1s + 1) Continuous System with Delay G d (s) = 2/T 1 s + 2/T s(1s + 1)

ler Design Lead Compensator for System using Slow Sampling Rate Inserting T = 1/2 G d (s) = 2/T 1 s + 2/T s(1s + 1) 4 = s(s + 4)(1s + 1)

ler Design Lead Compensator Design for Antenna Step 1 Design the low frequency gain K with respect to the steady-state error specification Steady-state unchanged from original system: K = 1 Step 2 Determine the needed phase lead sys=tf(1,[1 41 4 ]); margin(sys) PM=14 at ω =.38

ler Design Lead Compensator Design for Antenna Step 3 Using lead contribution of φ max = 5 should result in PM=64 which is 9 more than needed. Step 4 Determine: α = 1 sinφ max 1 + sinφ max = 1 sin5 1 + sin5 =.1325 Step 5 T = 1 ω max α = 1.4 (.1325) = 6.869 Giving a zero in s = 1 T =.1456 and a pole in s = 1 αt = 1.99.

ler Design Lead Compensator Design for Antenna Step 6 Draw the compensated frequency response, check PM Using the formulation: we use: sysd=tf([6.9 1],[.9 1]) sysc=sys*sysd margin(sysc) step(feedback(sysc,1)) D(s) = Ts + 1 αts + 1

ler Design Lead Compensator Design for Antenna 5 Bode Diagram Gm = 16.9 db (at 2.5 rad/sec), Pm = 48.6 deg (at.67 rad/sec) 1.4 System: untitled1 Time (sec): 4.76 Amplitude: 1.21 Step Response Magnitude (db) 5 1.2 1 System: untitled1 Time (sec): 13.6 Amplitude: 1.1 1 15 9 Amplitude.8.6 Phase (deg) 135 18.4.2 225 27 1 2 1 1 1 1 1 1 2 Frequency (rad/sec) 5 1 15 2 25 Time (sec) Figure: Frequency response Figure: Step response

ler Design Lead Compensator Design for Antenna Step 7 Step 7: Iterate on the design until all specifications are met sysd=tf([7.5 1],[.68 1]) sysc=sys*sysd margin(sysc) syscl=feedback(sysc,1) step(syscl)

ler Design Lead Compensator Design for Antenna Bode Diagram Step Response 5 1.4 Magnitude (db) 5 1 1.2 1 System: syscl Time (sec): 3.9 Amplitude: 1.16 System: syscl Time (sec): 7 Amplitude: 1.1 System: syscl Time (sec): 11.6 Amplitude: 1.1 15 Amplitude.8.6 Phase (deg) 9 18.4.2 27 1 2 1 1 1 1 1 1 2 Frequency (rad/sec) 5 1 15 2 25 3 Time (sec) Figure: Frequency response Figure: Step response

ler Design Digital Lead Compensator for Antenna - Slow Sampling Continuous lead controller Digitization - Slow Sample Rate D(s) = 7.5s + 1.68s + 1 sysc=tf(1,[1 1 ]); lead=tf([7.5 1],[.68 1]); syslead=sysc*lead; Ts=1/2; leadd1=c2d(lead,ts, zoh ); sysd=c2d(sysc,ts, zoh ); syscld=feedback(sysd*leadd1,1); step(syscld)

ler Design Digital Lead Compensator for Antenna - Comparison Bode Diagram Step Response Magnitude (db) 2 2 4 1.4 1.2 1 Continuous Slow sampling Compensated slow sampling Phase (deg) 6 8 9 18 Continuous Slow sampling Compensated slow sampling Amplitude.8.6.4.2 27 1 2 1 1 1 1 1 1 2 Frequency (rad/sec) 2 4 6 8 1 12 14 16 18 Time (sec) Figure: Frequency response Figure: Step response

ler Design Discretization in Matlab Matlab sysd=c2d(sys,ts,method) method: zoh : Zero order hold foh : First order hold (academic) tustin : Bilinear approximation (trapezoidal) prewarp : Tustin with a specific frequency used for prewarp matched : Matching continuous poles with discrete

ler Design Discretization of Lead Compensator - Fast Sample Rate Bode Diagram Step Response 1 1.2 ZOH Tustin Matched Magnitude (db) 1 2 1 Phase (deg) 3 4 45 9 135 ZOH Tustin Matched Amplitude.8.6.4.2 18 1 1 1 1 1 Frequency (rad/sec) 1 2 3 4 5 6 7 8 Time (sec) Figure: Frequency response Figure: Step response

ler Design Discretization of Lead Compensator - Fast Sample Rate Pole Zero Map.2.15.1.8.7.6.5.4.3.2.1 ZOH Tustin Matched Imaginary Axis.5.9.5.1.15.2.8.82.84.86.88.9.92.94.96.98 1 Real Axis

ler Design Discretization of Lead Compensator - Slow Sample Rate Bode Diagram Step Response Magnitude (db) 2 2 4 1.4 1.2 1 ZOH Tustin Matched Phase (deg) 6 8 45 9 135 18 ZOH Tustin Matched Amplitude.8.6.4.2 225 27 1 1 1 1 1 Frequency (rad/sec) 2 4 6 8 1 12 Time (sec) Figure: Frequency response Figure: Step response

ler Design Discretization of Lead Compensator - Slow Sample Rate Pole Zero Map Imaginary Axis 1.8.6.4.2.8π/T.9π/T π/t π/t.7π/t.6π/t.5π/t.4π/t.1.2.3.4.5.6.7.8.9.3π/t.2π/t ZOH Tustin Matched.1π/T.2.9π/T.1π/T.4.6.8π/T.2π/T.8.7π/T.3π/T.6π/T.4π/T 1.5π/T 1.8.6.4.2.2.4.6.8 1 Real Axis

ler Design Some important things to remember Discretization of compensator Use the method suited for implementation in the system Discrete equivalent of plant Use method corresponding to implementation (usually ZOH) Simulink can combine discrete compensator with continuous plant (digitization of plant not necessary)

ler Design Book: Problem 7.4 Problem 7.5 Problem 7.7