EEL2216 Control Theory CT2: Frequency Response Analysis

Similar documents
Frequency Response Analysis and Design Tutorial

Bode and Log Magnitude Plots

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

Lecture 7:Examples using compensators

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

Dr Ian R. Manchester

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

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

Laboratory PID Tuning Based On Frequency Response Analysis. 2. be able to evaluate system performance for empirical tuning method;

Introduction to PID Control

JUNE 2014 Solved Question Paper

EES42042 Fundamental of Control Systems Bode Plots

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

Cleveland State University MCE441: Intr. Linear Control Systems. Lecture 12: Frequency Response Concepts Bode Diagrams. Prof.

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

Open Loop Frequency Response

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

EE Experiment 8 Bode Plots of Frequency Response

Exercise 8: Frequency Response

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

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

Analog Circuits Prof. Jayanta Mukherjee Department of Electrical Engineering Indian Institute of Technology-Bombay

BSNL TTA Question Paper Control Systems Specialization 2007

CDS 101/110: Lecture 9.1 Frequency DomainLoop Shaping

Homework Assignment 13

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

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

3.2 Measuring Frequency Response Of Low-Pass Filter :

Loop Design. Chapter Introduction

ME451: Control Systems. Course roadmap

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

Experiment 2: Transients and Oscillations in RLC Circuits

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

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

ECE 532 Hspice Tutorial

Bode Plots. Hamid Roozbahani

ECE317 Homework 7. where

Lecture 18 Stability of Feedback Control Systems

ECE317 : Feedback and Control

Testing Power Sources for Stability

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.

CDS 101/110: Lecture 8.2 PID Control

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

Compensation of a position servo

FREQUENCY RESPONSE AND PASSIVE FILTERS LABORATORY

Pole, zero and Bode plot

Designing PID controllers with Matlab using frequency response methodology

Kent Bertilsson Muhammad Amir Yousaf

ECE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

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

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

EC CONTROL SYSTEMS ENGINEERING

Operational Amplifier Circuits

ME 375 System Modeling and Analysis

CHAPTER 6 Frequency Response, Bode. Plots, and Resonance

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.

Microelectronic Circuits II. Ch 9 : Feedback

Class #16: Experiment Matlab and Data Analysis


SAR (successive-approximation-register) ADCs

Lecture 8 ECEN 4517/5517

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

Module 08 Controller Designs: Compensators and PIDs

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

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

Advanced Motion Control Optimizes Laser Micro-Drilling

CONTROLLER DESIGN FOR POWER CONVERSION SYSTEMS

Positive Feedback and Oscillators

ECE 310L : LAB 9. Fall 2012 (Hay)

IEEE 802.3aq Task Force Dynamic Channel Model Ad Hoc Task 2 - Time variation & modal noise 10/13/2004 con-call

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK UNIT - I SYSTEMS AND THEIR REPRESENTATION

Chapter 5 Frequency-domain design

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

Motomatic Servo Control

EE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

Laboratory Experiment #1 Introduction to Spectral Analysis

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

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

of harmonic cancellation algorithms The internal model principle enable precision motion control Dynamic control

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

Lab 1: Simulating Control Systems with Simulink and MATLAB

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

Discretization of Continuous Controllers

PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SCIENCE AND ENGINEERING

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

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

EE 482 : CONTROL SYSTEMS Lab Manual

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

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

Magnetic Levitation System

LINEAR MODELING OF A SELF-OSCILLATING PWM CONTROL LOOP

DC/DC Converter Stability Measurement

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

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

Homework Assignment 13

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

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

DEPARTMENT OF ELECTRICAL ENGINEERING. Date: Assistant A2: PSpice 2 PC Pool

ECE 3155 Experiment I AC Circuits and Bode Plots Rev. lpt jan 2013

Transcription:

EEL2216 Control Theory CT2: Frequency Response Analysis 1. Objectives (i) To analyse the frequency response of a system using Bode plot. (ii) To design a suitable controller to meet frequency domain and time domain performance criteria. 2. Introduction The frequency response is a representation of a system's response to sinusoidal inputs at varying frequencies. The output of a linear system to a sinusoidal input is a sinusoid of the same frequency but possibly with a different magnitude and phase. The frequency response is defined as the measure of any system's response at the output to a signal of varying frequency (but constant amplitude) at its input. In this lab session, we will see how we can use the open loop frequency response of a system to predict its behaviour in closed loop. To plot the frequency response, we create a vector of frequencies (varying between zero or dc and infinity) and compute the value of the system s transfer function at these frequencies. If G(s) is the open loop transfer function of a system and ω is the frequency vector, we then plot G(jω) vs. ω. Since G(jω) is a complex number, we can plot both its magnitude and phase (the Bode plot) or its position in the complex plane (the Nyquist plot). Bode plot A Bode plot is the representation of the magnitude and phase of G(jω) (where the frequency vector ω contains only positive frequencies). To see the Bode plot of a transfer function, you can use the SCILAB bode command. The standard bode command in SCILAB plots the horizontal axis in Hz. (Of course we know that by using the relationship ω = 2πf we can easily convert our results to frequency in rad/s if required). Open a SciNotes editor to key in the codes. num = 100; den = (s^3+9*s^2+30*s+40); tf = num/den; ansys = syslin('c',tf); bode(ansys,0.1,100); The above codes should display the Bode plots for the transfer function 100 G ( s) =. Please note that the frequency is in logarithmic scale, the magnitude 3 2 s + 9s + 30s + 40 is given in decibels (top) and the phase is given in degrees (bottom). Note: Decibel is defined as 20 log10 ( G(jω) ). 1

0 Magnitude (db) -50-100 10-1 10 0 10 1 10 2 Frequency (Hz) -50 Phase (degree) -100-150 -200-250 10-1 10 0 10 1 10 2 Frequency (Hz) Gain margin and phase margin Figure 1 The gain margin is defined as the change in open loop gain required to make the closed loop system unstable. Systems with greater gain margins can withstand greater changes in system parameters before becoming unstable in closed loop. Keep in mind that unity gain in magnitude is equal to a gain of zero in db. On the Bode plot, the gain margin is the difference between the magnitude curve and 0dB at the phase crossover frequency, Wpc. Wpc is the frequency that gives us a phase of -180 degrees. The phase margin is defined as the change in open loop phase shift required to make a closed loop system unstable. The phase margin also measures the system's tolerance to time delay. On the Bode plot, the phase margin is the difference in phase between the phase curve and -180 degrees at the gain crossover frequency, Wgc. Wgc is the frequency that gives us a gain of 0dB. 2

We can find the gain and phase margins for a system directly using SCILAB. To obtain the phase crossover frequency and gain margin, type [gm,wpc]= g_margin(ansys) whereas to obtain the gain crossover frequency and phase margin, type [pm,wgc] = p_margin(ansys) For the current example, you should get gain margin = 7.23dB, phase crossover frequency = 0.872Hz, phase margin = 37.6 degrees and gain crossover frequency = 0.579Hz. Additionally, the command show_margins(ansys) will show the margins on the Bode plot but will not display their numerical values, as shown in Figure 2. 0 Magnitude (db) -50-100 -150-200 10-3 10-2 10-1 10 0 10 1 10 2 10 3 Frequency (Hz) 0 Phase (degree) -100-200 -300 10-3 10-2 10-1 10 0 10 1 10 2 10 3 Frequency (Hz) Figure 2 3

Adding gain shifts the magnitude plot upwards. Now suppose you add a gain of 50 to the original system, by entering the command bode(50*ansys,0.1,100); You should get the plot shown below. Figure 3 As you can see the phase plot is exactly the same as before, and the magnitude plot is shifted up by 34dB (gain of 50). The phase margin is now about -60 degrees. A negative value for either the gain margin or the phase margin indicates that the closed loop is unstable. Bandwidth frequency The bandwidth frequency is defined as the frequency at which the closed loop magnitude response is equal to -3 db. However, when we design via frequency response, we are interested in predicting the closed loop behaviour from the open loop response. Therefore, we will use a second-order system approximation and say that the bandwidth frequency equals the frequency at which the open loop magnitude response is between -6 and -7.5dB, assuming that the open loop phase response is between -135 degrees and -225 degrees. In order to illustrate the importance of the bandwidth frequency, we will show how the output changes with different input frequencies. We will find that sinusoidal inputs with frequency less than Wbw (the bandwidth frequency) are tracked reasonably well by the system. Sinusoidal inputs with frequency greater than Wbw are attenuated (in magnitude) by a factor of 0.707 or greater (and are also shifted in phase). 4

Let's say that we have the following closed loop transfer function representing a system: 1 G CL ( s) = 2 s + 0. 5s + 1 First of all, find the bandwidth frequency from the Bode plot by typing num = 1; den = (s^2+0.5*s+1); tf = num/den; ansys = syslin('c',tf); bode(ansys,0.01,1); You should get the plot in Figure 4. Figure 4 Since this is the closed loop transfer function, the bandwidth frequency is the frequency corresponding to a gain of -3 db, which is approximately 1.4 rad/s or 0.22Hz. We can also read from the plot that for an input frequency of 0.3 rad/s or 0.047Hz, the output sinusoid should have a magnitude of about one and the phase should be shifted by a few degrees behind the input. For an input frequency of 3 rad/s or 0.47Hz, the output magnitude should be about -20dB (or 1/10 of the input) and the phase should be nearly -180 degrees (almost out of phase with the input). We can use the csim command to simulate the response of the system to sinusoidal inputs. First, consider a sinusoidal input with a frequency lower than Wbw. We must also keep in mind that we want to view the steady-state response. Therefore, we will modify the axes in order to 5

see the steady-state response clearly (ignoring the transient response). w=0.3; num = 1; den = (s^2+0.5*s+1); t=linspace(0,100,1000); tf = num/den; u = sin(w*t); ansys = syslin('c',tf); y = csim(u,t,ansys); plot2d(t,[u' y']); 1.2 1 0.8 0.6 0.4 0.2 Amplitude 0-0.2-0.4-0.6-0.8-1 -1.2 0 10 20 30 40 50 60 70 80 90 100 Time (s) Figure 5 Note that the output (blue) tracks the input (black) fairly well; it is a few degrees behind the input as expected. However, if we set the frequency of the input higher than the Wbw for the system, we get a very distorted response (with respect to the input). To do this change the codes replacing w=0.3 with w=3 and run the codes. You will find that the magnitude is about 1/10 that of the input, as predicted, and that it is almost exactly out of phase (180 degrees behind the input). Feel free to experiment and view the response for several different frequencies, and see if they match the Bode plot. 6

Closed loop performance In order to predict closed loop performance from open loop frequency response, we need to have several concepts clear: The system must be stable in open loop if we are going to design via Bode plots. If the gain crossover frequency is less than the phase crossover frequency (i.e. Wgc < Wpc), then the closed loop system will be stable. For second-order systems, the closed loop damping ratio is approximately equal to the phase margin divided by 100 if the phase margin is between 0 and 60 degrees. We can use this concept with caution if the phase margin is greater than 60 degrees. A very rough estimate that you can use is that the bandwidth is approximately equal to the natural frequency. 3. Example system Let us use the concepts above to design a controller for the following system r e Controller u Plant y + GC(s) G(s) - where 10 G( s) = 125. s + 1. Figure 6 The design must meet the following specifications: Zero steady-state error. Settling time must be less than 2 seconds. Phase margin must be at least 30 degrees. 4. Procedures 4.1 Original system without controller (i) In order to plot the Bode plot, create an SCE-file with the following code: num = 10; den = (1.25*s+1); tf = num/den; ansys = syslin('c',tf); bode(ansys,0.01,100); (ii) Check the phase margin and gain crossover frequency and record them in Table 1 (row 1). (iii) Check the step response plot by adding the following two lines of code into the command window (after closing your Bode plot): 7

t=linspace(0,0.5,100); cl_ansys = ansys/. 1; //this implements negative unity feedback stepresp=csim('step',t,cl_ansys); plot2d(t,stepresp); xgrid(); Note that X = G/.H evaluates X = G/(1 + GH). 4.2 System with integral controller (i) Incorporate an integral term to yield zero steady-state error for a step input. Change your SCE-file to the following (this adds an integral term but no proportional term): K=1; num = 10; den = (1.25*s+1); numi = K; deni = s; tf = (numi/deni)*(num/den); ansys = syslin('c',tf); bode(ansys,0.01,100); (ii) Study the Bode plot and record the phase margin and gain crossover frequency in Table 1 (row 2). (iii) Plot the step response by adding the following lines to your SCE-file: t=linspace(0,15,100); cl_ansys = ansys/. 1; stepresp=csim('step',t,cl_ansys); plot2d(t,stepresp); xgrid(); (iv) Study the step response plot and record the steady-state error and settling time in Table 1 (row 2). You may change both the x-axis and y-axis limits for better view. 4.3 System with proportional-integral controller (i) In order to improve phase margin, we add a zero at s = -1. Thus we now have a PI K( s + a) controller with the following form of transfer function G C ( s) =, where a = 1. s Change your SCE-file to the following: K=1; num = 10; den = (1.25*s+1); numi = K*(s+1); deni = s; tf = (numi/deni)*(num/den); ansys = syslin('c',tf); bode(ansys,0.01,100); (ii) Obtain the step response plot as well. Study the Bode plot and step response plot. Record the results in Table 1 (row 3). (iii) Try to obtain a higher bandwidth frequency without changing the phase margin too much. 8

This can be achieved by increasing the gain. This will change the gain but the phase will remain the same. By trial and error, change a few gain values and study the Bode plot and step response plot. Record the relevant information in Table 1. Table 1 Steadystate error Settling time (s) 4.1 Original system 9% 0.45s 4.2 With integral controller 4.3 Adding a zero Changing the gain G1 = value. Record G2 = additional gain G3 (not inclusive of = original gain). Phase margin (degrees) Gain crossover frequency (Hz) 5. Exercises Refer to the on-the-spot assessment sheet. 6. Discussion In this lab, you have learned how to analyse the frequency response of a system using Bode plot. In particular, you have seen how to obtain the gain margin and phase margin from the Bode plot. You have also learnt how to design a suitable controller to meet frequency domain and time domain performance criteria. In general, we would like to have large gain margin and phase margin, to ensure that the closed loop system is more stable in the presence of noise (from the environment and from the sensors). In addition to this, we prefer a design with small settling time and no steady-state error. 7. Assessment 1. There will be an on-the-spot assessment for both CT1 and CT2. This will contribute 5% for CT1 and 5% for CT2. 2. There is no laboratory report required for CT1 and CT2. There will be a separate lab design project which contributes another 5% to your final marks. Please check announcement on MMLS regarding this. 9