PM diagram of the Transfer Function and its use in the Design of Controllers

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

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

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

Exercises for lectures 13 Design using frequency methods

Systems Analysis and Control

Homework 7 - Solutions

EE C128 / ME C134 Fall 2014 HW 8 - Solutions. HW 8 - Solutions

MAS107 Control Theory Exam Solutions 2008

ELECTRONICS & COMMUNICATIONS DEP. 3rd YEAR, 2010/2011 CONTROL ENGINEERING SHEET 5 Lead-Lag Compensation Techniques

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

r + - FINAL June 12, 2012 MAE 143B Linear Control Prof. M. Krstic

ECE382/ME482 Spring 2005 Homework 6 Solution April 17, (s/2 + 1) s(2s + 1)[(s/8) 2 + (s/20) + 1]

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

Module 5: Design of Sampled Data Control Systems Lecture Note 8

K(s +2) s +20 K (s + 10)(s +1) 2. (c) KG(s) = K(s + 10)(s +1) (s + 100)(s +5) 3. Solution : (a) KG(s) = s +20 = K s s

LINEAR CONTROL SYSTEMS. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Stability of CL System

Boise State University Department of Electrical Engineering ECE461 Control Systems. Control System Design in the Frequency Domain

Systems Analysis and Control

Systems Analysis and Control

Exercise 1 (A Non-minimum Phase System)

Systems Analysis and Control

Exercise 1 (A Non-minimum Phase System)

Lecture 5: Frequency domain analysis: Nyquist, Bode Diagrams, second order systems, system types

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

1 (20 pts) Nyquist Exercise

ME 475/591 Control Systems Final Exam Fall '99

Chapter 6 - Solved Problems

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

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

Frequency Response Analysis

Topic # Feedback Control

Frequency (rad/s)

Engraving Machine Example

ECE382/ME482 Spring 2005 Homework 8 Solution December 11,

EE3CL4: Introduction to Linear Control Systems

MAK 391 System Dynamics & Control. Presentation Topic. The Root Locus Method. Student Number: Group: I-B. Name & Surname: Göksel CANSEVEN

MAE 143B - Homework 9

Asymptotic Bode Plot & Lead-Lag Compensator

Outline. Classical Control. Lecture 5

1 (s + 3)(s + 2)(s + a) G(s) = C(s) = K P + K I

Radar Dish. Armature controlled dc motor. Inside. θ r input. Outside. θ D output. θ m. Gearbox. Control Transmitter. Control. θ D.

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

Proportional plus Integral (PI) Controller

ECE382/ME482 Spring 2005 Homework 7 Solution April 17, K(s + 0.2) s 2 (s + 2)(s + 5) G(s) =

Active Control? Contact : Website : Teaching

Robust Performance Example #1

Frequency Response Techniques

Root Locus Methods. The root locus procedure

CYBER EXPLORATION LABORATORY EXPERIMENTS

Phase Margin Revisited: Phase-Root Locus, Bode Plots, and Phase Shifters

(Refer Slide Time: 2:11)

Dynamic circuits: Frequency domain analysis

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Control Systems I. Lecture 9: The Nyquist condition

The Relation Between the 3-D Bode Diagram and the Root Locus. Insights into the connection between these classical methods. By Panagiotis Tsiotras

EE 4343/ Control System Design Project LECTURE 10

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

MIMO Toolbox for Matlab

ECE 486 Control Systems

MEM 355 Performance Enhancement of Dynamical Systems

Reglerteknik: Exercises

Digital Control Systems

Step Response Analysis. Frequency Response, Relation Between Model Descriptions

Unit 11 - Week 7: Quantitative feedback theory (Part 1/2)

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

MAE 143B - Homework 8 Solutions

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

DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD

Cascade Control of a Continuous Stirred Tank Reactor (CSTR)

CHAPTER # 9 ROOT LOCUS ANALYSES

The requirements of a plant may be expressed in terms of (a) settling time (b) damping ratio (c) peak overshoot --- in time domain

The root locus (RL) is a systematic technique for investigating,

AMME3500: System Dynamics & Control

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall K(s +1)(s +2) G(s) =.

The Frequency-response Design Method

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

ESE319 Introduction to Microelectronics. Feedback Basics

Desired Bode plot shape

FREQUENCY-RESPONSE DESIGN

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

ECE 388 Automatic Control

Positioning Servo Design Example

EECS C128/ ME C134 Final Thu. May 14, pm. Closed book. One page, 2 sides of formula sheets. No calculators.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall 2007

INTRODUCTION TO DIGITAL CONTROL

MAE 143B - Homework 9

Richiami di Controlli Automatici

Example on Root Locus Sketching and Control Design

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

R a) Compare open loop and closed loop control systems. b) Clearly bring out, from basics, Force-current and Force-Voltage analogies.

Topic # Feedback Control Systems

Lecture 1: Feedback Control Loop

Mechanical Systems Part A: State-Space Systems Lecture AL12

SRM UNIVERSITY DEPARTMENT OF BIOMEDICAL ENGINEERING ODD Semester DAY floor

Compensator Design for Helicopter Stabilization

Analysis and Design of Analog Integrated Circuits Lecture 12. Feedback

16.30/31, Fall 2010 Recitation # 2

Systems Analysis and Control

80DB A 40DB 0DB DB

Transcription:

PM diagram of the Transfer Function and its use in the Design of Controllers Santiago Garrido, Luis Moreno Abstract This paper presents the graphical chromatic representation of the phase and the magnitude of the transfer function G(s) of a system and its educational use in the design of the most typical controllers. The magnitude is represented in decibels and the phase is represented by colours. This representation permits to put a face to the transfer functions, deepening our intuitive understanding of transfer functions. An important characteristic of this diagram is that permits to read the phase and the gain margins directly and the imaginary axis cut represents the Bode diagram. It permits to see intuitively the connexions among the different diagrams. It is also possible to put the grid with damping ratio ζ and frequency ω n. In summary, this PM diagram can be useful, especially in Control Education because improves the intuition about transfer functions, and it can be used in a Classical Control Course to complement the design of controllers using the Root Locus diagram. Index Terms Root Locus, PID controller, Lead network, Bode plot, Phase margin, Gain margin. I. INTRODUCTION A picture is worth a thousand words. There are many possible representations of the transfer function G(s) of a system such as the Root Locus, the Bode diagram, the Nyquist diagram and the Nichols diagram. In all of them, it is possible to see some characteristics of the system and to create different kinds of controllers to improve the behaviour of the system. Nowadays, with tools such as SISOTOOL of Matlab, it is possible to see many of these diagrams at the same time and the time response of the system to tune the controller. The graphical representation of functions is one of the most important mathematical tools because it allows us to understand the behaviour of the functions. While it is easy to represent the graph of a real function in the plane, the graph of a single variable complex function is more problematic. The reason adduced about why we can not represent the Transfer Function is because G(s) : C C and as C is equivalent to represent two real variables, it is necessary to have 4 axis to represent the Transfer Function G(s). Our brain is trained to visualize objects in three spatial dimensions, while the graphs of complex functions live in a four-dimensional space. Hence most of us are unable to imagine such an object. Complex functions have the reputation of being mysterious entities; seeing these strange objects may help to overcome the fear one might feel while dealing with them. Santiago Garrido and Luis Moreno are with the Robotics Lab., Carlos III University, Madrid, Spain. {sgarrido,moreno}@ing.uc3m.es The Phase Magnitude (PM) diagram makes it possible to put a face to the functions, deepening our intuitive understanding of basic and advanced concepts in complex analysis. They reveal intrinsic structures behind the formulas, literally open our eyes to the wonderful realm of complex functions, and may serve students, teachers, scientists, and engineers as simple and efficient tools in their work. A possibility is to represent the magnitude and the phase of the function in each point with level curves. Cavicchi[6],[7] tried this solution in 996 and 23, but the problem was the bad resolution and the difficulty of reading his diagrams. But the situation has changed with the modern mathematical program computers that permit us to represent the fourth spatial dimension using the colour-coded values of the phase on the domain of the function. This is the solution adopted in this paper. Another problem with the representation of transfer functions is that they are rational and they have poles. In these points the function goes to infinity and far from the poles and zeros, the function is quite plane. In these conditions, the level curves are too close near the poles and zeros, and there are not level curves in the almost plane zones. A possible solution to solve this problem is the technique adopted in the Complex Variable books [3], [4], [5]: to represent the arctan of the function G(s), but in this case the magnitude level curves are not equally spaced and the diagram can t be used numerically. The best solution for Control applications is the solution adopted by Bode in its diagram: to use the vertical scale in decibels y = 2 log (x), because in this way the zones near the poles have less level curves and the level curves are equally spaced: the space between two consecutive magnitude level curves is the same in decibels. The solution adopted in this paper is inspired in [3], but represents the complex function by its module in decibels: 2 log G(s) and its phase in rescaled hsv coded colours. In the figures of the examples of controllers each phase band represents and each magnitude band 2 db. In this case the module level curves are equally spaced, and it is possible to read in the representation almost directly the gain and the phase that has to add the controller and use the values directly in the solution of problems and exercises. Different extensions of Root Locus and related diagrams have been used by many researchers. Ogata[] treats the Constant Gain Locus diagram and the Contour Roots in his book. Also, Kuo[2] refers to the Contour Root Locus. Cavicchi[6], [7] uses the Phase-Root diagram that represent the level curves of gain and phase. More recently, Cerone[8] proposes the Constant Magnitude Loci for Control Education.

(a) A single zero (b) A double zero (c) A triple zero Fig. : PM diagram of a zero, a double zero and a triple zero In Fig. are shown the PM diagram of a single zero, G(s) = s, a double zero, G(s) = s 2, and a triple zero G(s) = s 3. As it can be seen the order of the colours is the same as that the original complex plane C. In the case of a double zero, the different colours appear twice and in the case of a triple zero, the different colours appear three times. In Fig. 2 are shown the PM diagram of a single pole, G(s) = /s, a double pole, G(s) = /s 2, and a triple pole G(s) = /s 3. The different colours appear once, twice and three times but in the opposite orientation. In all the PM diagrams presented in this work, the magnitude or modulus of the transfer function G(s) is represented in decibels, i.e., it is represented 2 log G(s). In this way, the difference between two consecutive lines is the same in decibels. The other set of level curves, the coloured ones, represent the phase arg(g(s)). In this case, the scale is linear with red representing and cyan representing 8. That means that the cyan line is the Root Locus and the red line is the Inverse Root Locus. An important characteristic of this diagram is that it permits to read the phase margin directly because it is the phase distance from the actual closed poles position following the same magnitude line until the intersection with the imaginary axis and the Gain Margin that it is the magnitude distance following the cyan line that represents 8 until its intersection with the imaginary axis. The imaginary axis cut represent the Bode diagram. It is also possible to put the grid with damping ratio ζ and the frequency ω n. In the drawings, we have used linear scales for the real and imaginary axis, but if there are poles and zeros placed in different decades, it would be better to put log scales. In order to use these diagrams to calculate controllers C(s) for a system G(s), it is possible to read the phase, calculate the controller C (s) with gain that adds that phase, represent the PM diagram of C (s)g(s), and then multiply by the gain needed to have C(s) = K c C (s). The use of the SISOTOOL has a strange characteristic. You can add zeros and poles and change its positions, and change the gain until by trial and error you have the closed loop poles in the desired position. However, in the educational books about Control the process is different, you know the desired position of the closed loop poles and you have to calculate the controller in order to have the closed loop poles in the required positions. II. EXPERIMENTAL RESULTS The PM diagram permits to read directly the magnitude and the phase of the transfer function in each point. Its difference between the present closed loop poles and the desired ones gives the phase and the gain that has to be added by the controller. The phase and magnitudes can be read directly (approximately) or by clicking in the position to be given by Matlab (more precise). A. Ideal PD design. Suppose you have the system G(s) = (s + )(s + 2) This system has the closed loop poles placed in s,2 =.5 ±.86j as shown in Fig. 4 (point on the right). Its magnitude is G(.5 +.86j) =.5 and its phase is arg(g(.5 +.86j)) = 8 The desired specifications give us that the desired closed loop poles have to be placed in s,2 = 3.4 ± 3.4j, as shown in Fig. 4 (point on the left). The magnitude and phase of G(s) in these points are G( 3.4±3.4j) =.788 and arg(g( 3.4 ± 3.4j)) = 25.77. If the desired controller is an ideal P D controller C(s) = K c (s + b), then the phase can be calculated using Fig. 5 as [ arctan 3.4 ] b 3.4 [ 8 arctan 3.4 ] 3.4 + 8 arctan = 8.4 2.4

(a) A single pole (b) A double pole (c) A triple pole Fig. 2: PM diagram of a pole, a double pole and a triple pole (a) G(s) = (s+3)(s+4) (s+)(s+2) (b) G(s) = (s+)(s+2)(s+3) (c) G(s) = Fig. 3: PM diagram of different transfer functions (s+)(s+2)(s+3)(s+4) i.e. arctan 3.4 b 3.4 = 54.2 and that means that b = In order to calculate the gain, the magnitude condition can be applied: K = d d 2 d = The desired controller is 3.42 +.4 2 3.4 2 + 2.4 2 3.42 + ( 3.4) 2 = 3.28 C(s) = K(s + b) = 3.28(s + ) = s + b = K c = 7.8 s + = 7.8( +.9s) b The operations can be simplified using the PM diagram of the Fig. 4: The controller will be designed in two steps: The first step is the design of a controller of gain that aport the desired phase (Fig. 4) and the second step is to calculate the necessary gain. Between the cyan square and the green square in (Fig. 4) there are five and a half lines of phase (each one of ) and that means that the required phase of the controller has to be approximately φ = 54. Obviously, the best way of measuring the angle is that it appears in the data tip, as shown in Fig. 4. Applying arctan 3.4 b 3.4 = 54 the zero has to be in b =. The controller of gain that aport the necessary phase is C (s) = s + Now, we represent the function C (s)g(s) = s + = ( +.9s) (s + )(s + 2) as shown in Fig. 6. Now, we are going to design the second step: to calculate the necessary gain to pass from the point

Fig. 4: PM diagram of G(s) = (s+)(s+2). The original closed loop poles are s,2 =.5 ±.86j (on the right), and the desired poles are s,2 3.4 ± 3.4j (on the left) Im Fig. 6: PM diagram of the Transfer Function G(s) = of the ideal PD design s+ (s+)(s+2) 3.4j -b -3.4-2 - Fig. 5: Application of the phase condition for the ideal PD design on right of Fig. 6 that are the actual closed loop poles to the point on the left that represent the desired poles. The actual closed loop poles of this system are in s =.59 ±.68j. In this figure, these closed loop poles are in the Root Locus (cyan line) and have magnitude db =. In order to find the gain, it is necessary to read the magnitude at the desired closed loop poles, C (s)g(s) s= 3.4+3.4j = 25 db =.56, then K c = /.56 = 7.8. The desired controller is s + b C(s) = K c = 7.8 s + = 7.8( +.9s) b B. Design of a lead network. Consider the system G(s) =. It is desired to find a controller with a static coefficient of velocity error K v = 2s, and phase margin of 5. 4K Re The first step is to find the value of K in order to have the required K v K v = lim s sg(s) = lim s s 4K = 2K = 2 s(s + 2) therefore, K =. Now, we represent the PM diagram of G(s) = 4 as shown in Fig.7. In this diagram, we find the point of the imaginary axis with magnitude line of db, the phase margin is the number of phase bands between the actual position and that cyan band that represents 8. In this case there are a bit less than two bands, approximately 8. The lead network C(s) = s + z α s + p = s + T α s + αt has to add a phase φ = γ desired γ actual + 5 = 5 8 + 5 = 37 and the parameter α of the network can be calculated as α = sin(φ) + sin(φ) =.24 As the lead network adds a magnitude of log(α)db in its middle point ω c = αt, we search the point with magnitude K m = log(α) = 6.2 db

Fig. 7: PM diagram of G(s) = 4 This point correspond to frequency ω c = 9 rad/sec. Choosing this frequency as the new frequency of transition ω c = αt, it is possible to find the corner frequencies of the lead network and T = αω c = 4.4 αt = ω c α = 8.4 In summary, the lead network is C(s) = 8.4 s + 4.4 4.4 s + 8.4 = 4.723s + 4.4 s + 8.4 Where the multiplicative constant α is to have gain equal to. The closed loop poles of the system with the lead network are placed in 6.9 ± 8j as shown in Fig. 8 and its Bode, that it are the values in the imaginary axis of this figure, is shown in Fig.9. III. PHASE MARGIN, GAIN MARGIN AND BODE DIAGRAM It is possible to use the Matlab command sgrid to put over the PM diagram in order to read the values of the damping ratio ζ and the natural frequency ω n as shown in Fig. that represent the system G(s) = (s + )(s + 2)(s + 3) Fig. 8: PM diagram of C(s)G(s) = 4.723 s+4.4 Magnitude (db) Phase (deg) 5 5 45 45 9 35 Bode Diagram 4 s+8.4 8 2 3 Frequency (rad/s) Fig. 9: Bode plot of the uncompensated system G(s) = 4 (blue), the compensated system C(s)G(s) = 4.723 s+4.4 4 (green), and the lead network C(s) = s+8.4 4.723 s+4.4 s+8.4 (red)

In this case, the closed loop poles are placed in s,2 =.8 ±.8j, because of this G(s,2 ) = = db. The cut of the imaginary axis is the Bode diagram shown in Fig.. The gain margin is the value of the intersection of the Root Locus (cyan line) with the imaginary axis, in this case GM = 4.8 db, and the Phase Margin is the number of colour bands following the same zero gain line (white Line) until the intersection with the imaginary axis, multiplied by the value of each band,. In this case there are 8 bands, approximately P M = 8. Finally, in this figure the bandwidth (BW) is the distance over the imaginary axis from the origin to the point in which G(s) = 3 db. In this example, BW =.2 rad/sec. Imag Axis 5 4 3 2 7 2 3 4.8.9.975.975.9.8 6 5 Root Locus Editor for Open Loop (OL).68.68 4.56 5 7 6 5 4 3 2 Real Axis 3.56.42 2.42.28.28.4.4 Magnitude (db) Phase (deg) 2 2 4 6 8 45 9 35 8 225 G.M.: 4.6 db Freq: 3.32 rad/s Stable loop Open Loop Bode Editor for Open Loop (OL) P.M.: 8.3 deg Freq:.3 rad/s 27 2 2 Frequency (rad/s) Fig. : Root Locus and Bode diagram of G(s) = (s+)(s+2)(s+3) Fig. 2: PM diagram Graphic User Interface of the PM Diagram Matlab Toolbox the Bode diagram. It also can be read the bandwidth. Finally the PM diagram permits unify the time and frequency analysis. Fig. : PM diagram of G(s) = (s+)(s+2)(s+3) The authors have written a PM Diagram Toolbox for Matlab that include an Graphic User Interface shown in Fig. 2. IV. CONCLUSIONS This paper presents a graphical chromatic representation of transfer functions that it is very visual and intuitive. In Control Education, it can be used to design controllers in an easier way and more intuitive than with the Root Locus diagram. It also give us an deeper knowledge of the transfer function and unifies the analysis in time and frequency because the cut of the PM diagram with the imaginary axis is the Bode diagram. The Phase and Gain margins can be read directly in the PM diagram in a very visual and natural way, without using REFERENCES [] Ogata, K., Modern Control Engineering, 5th. ed. Prentice Hall, 29. [2] Kuo, B. C., Automatic Control Systems, 6th ed.. Prentice Hall, 99. [3] Wegert, E., Visual Complex Functions: An Introduction With Phase Portraits. BirkhŁuser, 22. [4] Needham, T. Visual Complex Analysis. Clarendon Press, 998. [5] Mathews, J., Howell, R., Complex Analysis for Mathematics and Engineering. Jones and Bartlett Learning, 2. [6] Cavicchi, T.J., Phase-Root Locus and Relative Stability. IEEE Contr. Syst. Mag., vol 6, pp. 69-76, 996. [7] Cavicchi, T.J., Phase Margin Revisited: Phase-Root Locus, Bode Plots, and Phase Shifters. IEEE Trans on Education. vol 46(). pp. 68-76, 23. [8] Cerone, v., Canale, M. and Regruto, D., Loop-shaping Design with Constant Magnitude Loci in Control Education. Int. J. Engng. Ed. vol 24(), pp. 27-36, 28