Top Banner
Using Matlab SISOTOOL 2016 part 4 Anthony Rossiter 1 Slides by Anthony Rossiter http://controleducation.group.shef.ac.uk/indexwebbook.html
17

Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Apr 03, 2018

Download

Documents

ngonhan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Using MatlabSISOTOOL 2016 part 4

Anthony Rossiter

1

Slides by Anthony Rossiter

http://controleducation.group.shef.ac.uk/indexwebbook.html

Page 2: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Introduction

• There has been a relatively major change in the presentation and functionality of sisotool in MATLAB 2016.

• This resource gives a quick overview of how to do lead and lag compensator design.

• Principally, it demonstrates the graphical placement tools for poles and zeros, but also the ease with which fine tuning can be done via the compensator editor.

• Real time demonstrations are given at the end of the video.

Slides by Anthony Rossiter

2

Page 3: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Assumptions

This resource assumes a simple feedback structure as follows (although sisotool will deal with more complicated structures).

Slides by Anthony Rossiter

3

System or process to be controlled

Compensator or controller

Target (a unit step)

Page 4: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

WARNING on preferences

Sisotool can display compensators in various standard forms.

1. It may, change the underlying proportional gain when you enter a pole and zero.

2. Ensure you always display the implied compensator and check that it has the numeric values you intended.

For this resource, we use pole/zero format which must FIRST be selected via preferences.

Slides by Anthony Rossiter

4

Page 5: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Slides by Anthony Rossiter

5

Select preferences

Select options tab

Select zero/pole option

Compensator editor now displays in pole/zero form.

Page 6: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

LAG COMPENSATOR DESIGN

Slides by Anthony Rossiter

6

Page 7: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Lag compensator design

For the sake of simplicity, as the focus is sisotool, this video uses the following design procedure (increase low freq. gain by a factor of 5).

1. Find gain K to set the PM to be 60 degrees.

2. Determine the gain cross-over frequency wg.

3. Set the zero to be wg/10.

4. Set the pole to be wg/50.

The use of sisotool to support this design method is demonstrated.

Slides by Anthony Rossiter

7

)50

(

)10

(

g

g

ws

ws

KC

Page 8: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Steps 1,2This is the same as the procedure demonstrated in the part 3 video, where drag of the bode gain plot is used to get a PM of 60 degrees.

Hence K=1.65

Slides by Anthony Rossiter

8

wg=0.97

)50

(

)10

(

g

g

ws

ws

KC

Page 9: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Steps 3,4

Next, use the graphical placement tool in the root-loci plot to place poles and zeros at approximately the correct places.

Slides by Anthony Rossiter

9

)02.0(

)1.0(65.1

)50

(

)10

(,97.0,65.1

s

sC

ws

ws

KCwKg

g

g

Page 10: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Add poles and zeros direct onto graph

Slides by Anthony Rossiter

10

Right click, select real pole and press

where wanted.

Right click, select real zero and press

where wanted.Note pole/zero

not exact but close and gain changed!

Need to make K=1.65 by

hand

Page 11: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

For an exact design

Slides by Anthony Rossiter

11

Enter desired values directly into the

compensator editor

Page 12: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

DESIGN WITHOUT EXPLICITLY COMPUTING VALUES OF K AND WG

Slides by Anthony Rossiter

12

Page 13: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Advantages of sisotool designThis is best done with a live demonstration.

The basic method is the same, but no explicit computations are made so quick and allows intuitive tuning.

1. Use drag of Bode to get desired PM (approx.).

2. Add a zero at a decade below the gain cross over frequency, which is clearly marked.

3. Add a pole to left of zero, with ratio the desired gain uplift.

4. Modify gain plot to regain phase margin.

Slides by Anthony Rossiter

13

Actual C(s) available from compensator editor if needed.

Page 14: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

LIVE DEMONSTRATION

Slides by Anthony Rossiter

14

Page 15: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Remark

• Poles and zeros can also be dropped directly into the root-loci plot if desired.

• A live demonstration will be used to show this.

Slides by Anthony Rossiter

15

Page 16: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

Conclusion

This video has demonstrated the basic use of the drag and drop facilities in sisotool in MATLAB 2016 for doing lag compensator design.

Drag (in Bode gain plot) allows the user to quickly get the desired phase margin.

Drop (in bode gain plot or root loci) allows poles and zeros to be placed with the mouse.

The edit compensator window can be used for fine tuning if desired.

Slides by Anthony Rossiter

16

Page 17: Using Matlab SISOTOOL 2016 part 4 - University of Sheffieldcontroleducation.group.shef.ac.uk/MATLAB/using matlab sisotool 2016... · Using Matlab SISOTOOL 2016 part 4 ... Add poles

© 2016 University of Sheffield

This work is licensed under the Creative Commons Attribution 2.0 UK: England & Wales Licence. To view a copy of this licence, visit http://creativecommons.org/licenses/by/2.0/uk/ or send a letter to: Creative Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA.

It should be noted that some of the materials contained within this resource are subject to third party rights and any copyright notices must remain with these materials in the event of reuse or repurposing.

If there are third party images within the resource please do not remove or alter any of the copyright notices or website details shown below the image.

(Please list details of the third party rights contained within this work.

If you include your institutions logo on the cover please include reference to the fact that it is a trade mark and all copyright in that image is reserved.)

Anthony RossiterDepartment of Automatic Control and

Systems EngineeringUniversity of Sheffieldwww.shef.ac.uk/acse

http://controleducation.group.shef.ac.uk/indexwebbook.html