Lecture 7:Examples using compensators

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

Frequency Response Analysis and Design Tutorial

Dr Ian R. Manchester

ECE317 : Feedback and Control

Outline. Digital Control. Lecture 3

EEL2216 Control Theory CT2: Frequency Response Analysis

EES42042 Fundamental of Control Systems Bode Plots

CDS 101/110: Lecture 8.2 PID Control

CDS 101/110: Lecture 9.1 Frequency DomainLoop Shaping

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

ECE317 Homework 7. where

ME451: Control Systems. Course roadmap

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

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

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

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

Bode Plot for Controller Design

Bode and Log Magnitude Plots

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

Module 08 Controller Designs: Compensators and PIDs

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

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

Välkomna till TSRT15 Reglerteknik Föreläsning 8

LECTURE 2: PD, PID, and Feedback Compensation. ( ) = + We consider various settings for Zc when compensating the system with the following RL:

Loop Design. Chapter Introduction

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

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

JUNE 2014 Solved Question Paper

Position Control of DC Motor by Compensating Strategies

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

DESIGN AND VALIDATION OF A PID AUTO-TUNING ALGORITHM

Chapter 5 Frequency-domain design

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

EE Experiment 8 Bode Plots of Frequency Response

Introduction to PID Control

EC CONTROL SYSTEMS ENGINEERING

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

Compensator Design using Bode Plots

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

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

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

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

SECTION 6: ROOT LOCUS DESIGN

Designing PID controllers with Matlab using frequency response methodology

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

Magnetic Levitation System

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

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

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

This manuscript was the basis for the article A Refresher Course in Control Theory printed in Machine Design, September 9, 1999.

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

LESSON 21: METHODS OF SYSTEM ANALYSIS

MEM01: DC-Motor Servomechanism

Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

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

Another Compensator Design Example

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

Feedback (and control) systems

Lecture 18 Stability of Feedback Control Systems

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 *****

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

UAV: Design to Flight Report

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

Lecture 8 ECEN 4517/5517

ME 375 System Modeling and Analysis

PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SCIENCE AND ENGINEERING

Compensation of a position servo

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

Design of Compensator for Dynamical System

Fundamentals of Servo Motion Control

EECE488: Analog CMOS Integrated Circuit Design Set 7 Opamp Design

CHAPTER 9 FEEDBACK. NTUEE Electronics L.H. Lu 9-1

Phys Lecture 5. Motors

EVALUATION ALGORITHM- BASED ON PID CONTROLLER DESIGN FOR THE UNSTABLE SYSTEMS

Homework Assignment 13

Application Note #2442

Microelectronic Circuits II. Ch 9 : Feedback

1.What is frequency response? A frequency responses the steady state response of a system when the input to the system is a sinusoidal signal.

Bode Plots. Hamid Roozbahani

[ á{tå TÄàt. Chapter Four. Time Domain Analysis of control system

AC : A STUDENT-ORIENTED CONTROL LABORATORY US- ING PROGRAM CC

, answer the next six questions.

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

EE 482 : CONTROL SYSTEMS Lab Manual

Calculating the input-output dynamic characteristics. Analyzing dynamic systems and designing controllers.

This article presents a review of PLL transfer functions with attention to the conditions required for steady-state stability

Open Loop Frequency Response

EE 308 Spring Preparation for Final Lab Project Simple Motor Control. Motor Control

Project Advisor: Dr. Gary L. Dempsey

Motor Control. Suppose we wish to use a microprocessor to control a motor - (or to control the load attached to the motor!) Power supply.

Position Control of a Large Antenna System

Effect of Controller Parameters on Pantograph-Catenary System

Review of Pole Placement & Pole Zero Cancellation Method for Tuning PID Controller of A Digital Excitation Control System

Hands-on Lab. PID Closed-Loop Control

BSNL TTA Question Paper Control Systems Specialization 2007

Pole, zero and Bode plot

EE 42/100: Lecture 8. 1 st -Order RC Transient Example, Introduction to 2 nd -Order Transients. EE 42/100 Summer 2012, UC Berkeley T.

Microelectronic Circuits - Fifth Edition Sedra/Smith Copyright 2004 by Oxford University Press, Inc.

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

Comparative Analysis of Controller Tuning Techniques for Dead Time Processes

Transcription:

Lecture :Examples using compensators Venkata Sonti Department of Mechanical Engineering Indian Institute of Science Bangalore, India, This draft: March, 8 Example :Spring Mass Damper with step input Consider the earlier spring mass damper system with values: M=,C=,K=. The loop trsnafer function GH is given by GH = s + s + We need to design a controller for a step response with the specs zero steady state error less than % overshoot settling time less than sec Lets look at the bode diagram. Last lecture we found that lim s GH = k p. From the bode diagram this is just the low frequency asymptote of the amplitude plot. The value is - db which is log(.). The step response shows this value of steady state. The system is overdamped and stable so our ideas of bandwidth will not hold. Lets reduce the steady state error with a integral controller. Lets use /s. The step and bode plots are shown in figure. The PM is degrees and so the system is quite heavily damped. The steady state error has been reduced but the settling time is 8 sec. We can reduce the settling time by raising the gain. Again there is only integral controller, ki=. The phase margin has gone down to 8 deg. There is a big overshoot. Rise time is. sec. Settling time is 8 sec. It is obvious that the system is more unstable. The lead compensator as seen earlier brings an additional phase margin which also raises damping and reduces overshoot and settling time. So we design a lead compensator. We try to give an additional degrees phase margin. Right now we have about 8 degrees. However, lead compensator also adds gain at higher frequencies. Hence, the gain crossover frequency will shift to the right. It can be seen from the figure that as we move to the right the phase curve is dropping rapidly toward -8 and hence if we wish to add degrees phase margin, we should compensate for the dropping phase and curve and calculate for degrees. So φ m = o and a = + sin(φ m) sin(φ m )

- - - -8 - Bode diagram of M=,C=,k=.......... step response of M=,C=,k=.. Figure : Bode plot and step response for /s + s +. closed loop. Bode Diagrams Gm=. db (at. rad/sec), Pm=. deg. (at.9 rad/s.9.8....... step response of Integral Cont...8. 8 Figure : Bode plot and step response Int controller /s for /s + s +. closed loop.

Gm=. db (at. rad/sec), Pm=8.9 deg. (at. rad/sec step response for ki=.8....8... 8 Figure : Bode plot and step response Int controller /s for /s + s +. closed loop. At high frequencies the gain given by a is log(a) =.89dB. The question is where will this additional phase get added. Obviously, it gets added at the new gain crossover, which is yet unknown! However, the phase is added at the center of the lead compensator bode diagram where the amplitude is log(a)/ =.db. Hence, the frequency point which is currently the gain crossover (gain=db) point must have been at -. db prior to compensation. Hence, we look for the point where the current gain value is -. db and this is ω =.9rad/s. From a and ω we can find the value of T = /( a ω). The lead compensator is then given by C(s) = ats + Ts + =.9s +.s + With the above compensator applied the bode and step response change to what is given in figure. We use a second compensator to gain some more phase margin. However, as the curve rapidly moves toward -8 not much is possible. See figure.

First lead compensator Gm=. db (at.9 rad/sec), Pm=. deg. (at.8 rad/se.. Step response with the first lead compensator.8.. a=.9, om=.9.... Figure : Bode plot and step response after lead compensation Bode plot with the second lead compensator. Gm=.8 db (at 9.9 rad/sec), Pm=. deg. (at. rad/se..8... Step response after second lead compensator a=, om=8..... Figure : Bode plot and step response after lead compensation

Example: Lag compensation on the cart problem The open-loop transfer function for this problem is : Y (s) U(s) = ms + b m=, b=, U(s)= Y(s)=Velocity output The design criteria are: Rise time < sec Overshoot < % Steady state error <%. Bode plot and open-loop response The first step in solving this problem using frequency response is to determine what open-loop transfer function to use. Just like for the Root-Locus design method, we will only use a proportional controller to solve the problem. The open-loop transfer function are shown below. Y (s) U(s) = ms + b In order to use a Bode plot, the open-loop response must be stable. Let Kp equals for now and see how the open-loop response looks like. Create an new m-file and enter the following commands. m = ; b = ; u = ; Kp=; numo=[kp]; deno=[m b]; step (u*numo,deno) Running this m-file in the Matlab command window should give you the following plot (figure ) bode(numo,deno) should give you the following Bode plot also (figure ).. Proportional controller Let s see what system characteristics we can determine from the above Bode plot. Recall that the bandwidth frequency (BW) (the frequency at the gain M(dB)=- -.db) is roughly equals to the natural frequency (Wn). Using the equation Tr =.8/ω n =.8/BW the rise time (Tr) for our system can be determined to be extremely long since the gain shown above do not reach - -.db. The damping ratio is roughly equals to the phase margin (in degrees) divided by. Since our phase margin is approximately degrees, the damping ratio will be.. Thus, we know that the system is overdamped (since the damping ratio is greater than ). Finally, the steady-state error can be found from the following equation: e( ) = + mag.% and (M db/) = mag where M db is the low frequency gain. For our system, since the low frequency gain M(dB) is approximately -db, the steady-state error should be 98%. We can confirm these by generating a closed-loop step response (figure ).

Step response for the openloop system Bode plot of the openloop system 9 8 8 Figure : Step response and bode plot of the open loop cart system...8.. Step response for the closed loop system Kp=...8... 8 Figure : Step response of the closed loop cart system.

In terms of the Bode plot, if we can shift the gain upward so that both the bandwidth frequency and the low frequency gain increase, then both the rise time and the steady-state error will improve. We can do that by increasing the proportional gain (Kp). Let s increase the proportional gain (Kp) to,say, and see what happens. Change the m-file to the following. m = ; b = ; u = ; Kp=; numo=[kp]; deno=[m b]; bode(numo,deno) Running this m-file in the Matlab command window should give you the following Bode plot and step response(figure 8). Bode plot of the open loop system kp= Step response of the closed loop system kp= To: Y() To: Y() Figure 8: Step response and bode plot of the closed loop cart system kp=. Now, the low frequency gain is about db (magnitude ) which predicts the steady-state error of %. The bandwidth frequency is about. rad/sec so that the rise time should be around 8 seconds confirmed by figure 8. As we predicted, both the steady-state error and the rise time have improved. Let s increase the proportional gain even higher and see what happens. Change the m-file to the following and rerun it. You should get the following Bode plot. m = ; b = ; u = ; Kp=; numo=[kp/b]; deno=[m/b ]; bode(numo,deno) Now, the low frequency gain is approximately db (magnitude ) that predicts the steadystate error of 9%, and the bandwidth frequency is around. that predicts the rise time of sec (within the desired value). Thus, both the steady-state error and the rise time should have been improved. Again, let s confirm these by generating the closed-loop step response (figure 9). If you noticed, the steady-state error will eventually reach the desired value by increasing the proportional gain even higher. However, by the time the steady-state error reaches the desired value, the rise time becomes too fast (unrealistic for the real physical system). Thus, let s leave the Kp as it is and implement a lag controller to handle the steady-state error problem.

Bode plot of the open loop system kp= Step response of the closed loop system kp= 9 8... 9 Figure 9: Step response and bode plot of the closed loop cart system kp=.. Lag controller If you take a look at the Lag or Phase-Lag Compensator using Frequency Response section of the Lead and Lag Compensator page, the lag controller adds gain at the low freqencies while keeping the bandwidth frequency at the same place. This is actually what we need: Larger low frequency gain to reduce the steady-state error and keep the same bandwidth frequency to maintain the desired rise time. The transfer function of the lag controller is shown below. G(s) = + ats a + Ts a < Now, we need to choose a value for a and T. Recall from the Lag or Phase-Lag Compensator using Frequency Response page, the steady-state error will decrease by a factor of a. The value T should be chosen so that two corner frequencies will not be placed close together because transient response gets worse. So let a equals. and T equals and see what happens. Copy the following m-file and run it in the Matlab command window. You should see the following Bode plot. m = ; b = ; u = ; Kp=; numo=[kp/b]; deno=[m/b ]; a =.; T=; numlag = [a*t ]; denlag = a*[t ]; newnum = conv(numo,numlag); newden = conv(deno,denlag); bode(newnum,newden) figure [numc,denc]=cloop(newnum,newden); step (u*numc,denc) Since the low frequency gain has increased while the bandwidth frequency stayed the same, the steady-state error should be reduced and the rise time should stay the same. Let s confirm this by generating a closed-loop step response (figure ) We can see that the steady-state error has been met. However, the settling time is too long. To fix this, raise the proportional gain to Kp=. With this change made, the following Bode and step response plots can be generated. (figure ) 8

Bode plot of the open loop system with lag compensator kp= Step response of the closed loop system with lag compensator kp= 9 8 Figure : Step response and bode plot of the closed loop cart system with compensator kp=. Step response of the closed loop system with lag compensator kp=step response of the closed loop system with lag compensator kp= 9 8 8 Figure : Step response and bode plot of the closed loop cart system with compensator kp=. 9

As you can see, the overshoot is in fact zero, the steady state error is close to zero, the rise time is about seconds, and the settling time is less than. seconds. The system has now met all of the design requirements. No more iteration is needed.