prof. wahied gharieb ali abdelaal faculty of engineering computer and systems engineering department...

75
Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems (1) Topic# 9 Digital Control Design (PID)

Upload: ursula-anthony

Post on 22-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

Prof. Wahied Gharieb Ali Abdelaal

Faculty of EngineeringComputer and Systems Engineering Department

Master and Diploma Students

CSE 502: Control Systems (1)

Topic# 9

Digital Control Design (PID)

Page 2: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

2

Outline

Introduction

Indirect Control Design

Digital PID control design

Design Examples

Direct Control Design

Direct Design using Root Locus

Deadbeat Control Design

Page 3: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

3

Introduction

Page 4: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

4

Indirect control Design

Page 5: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

5

Indirect Control Design

Page 6: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

6

Indirect Control Design

Page 7: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

7

Approximations to Integration

Indirect Control Design

Page 8: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

8

Euler’s Approximation

Indirect Control Design

Page 9: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

9

Indirect Control Design

Page 10: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

10

Indirect Control Design

Page 11: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

11

Indirect Control Design

Page 12: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

12

Indirect Control Design

Page 13: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

13

Indirect Control Design

Page 14: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

14

Indirect Control Design

Page 15: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

15

Digital PID Control Design

A proportional controller (P) reduces error responses to disturbances, but still allows a steady-state error.

When the controller includes a term proportional to the integral of the error (I), then the steady state error to a constant input is eliminated, although typically at the cost of deterioration in the dynamic response.

A derivative control typically makes the system better damped and more stable.

Controller Effects

Page 16: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

16

Digital PID Control Design

Rise timeMaximum overshoot

Settling time

Steady-state error

PDecreaseIncreaseSmall change

Decrease

IDecreaseIncreaseIncreaseEliminate

DSmall change

DecreaseDecreaseSmall change

Note that these correlations may not be exactly accurate, because P, I and D gains are dependent of each other.

Closed-loop Response

Page 17: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

17

Digital PID Control Design

Page 18: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

18

Digital PID Control Design

PID controller with integral anti-windup

Page 19: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

19

Digital PID Control Design

Page 20: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

20

Digital PID Control Design

Page 21: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

21

Digital PID Control Design

Page 22: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

22

Digital PID Control Design

Page 23: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

23

Digital PID Control Design

Page 24: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

24

Digital PID Control Design

Page 25: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

25

Digital PID Control Design

Page 26: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

26

Discrete time equivalent of analog controller using Euler’s forward method (sampling period =T)

Example

Design Examples

Page 27: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

27

Discrete-time controllers when T = 0.4 s, which is relatively large as compared to the continuous-time controller’s fastest mode e−2t, the discrete-time controller approximation deviates significantly from the continuous-time controller.

As the sampling interval is decreased, the step responses of the analog and discrete-time controllers are the same.

Design Examples

Page 28: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

28

If we use the trapezoidal method, the transfer function of the digital controller becomes

Design Examples

Page 29: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

29

Design Examples

Page 30: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

30

Design Examples

Page 31: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

31

Design Examples

Page 32: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

32

Design Examples

Page 33: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

33

Design Examples

Page 34: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

34

Design Examples

Page 35: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

35

Design Examples

Page 36: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

36

Design Examples

Page 37: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

37

Design Examples

Page 38: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

38

Design Examples

Page 39: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

39

Design Examples

Page 40: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

40

Design Examples

Page 41: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

41

Design Examples

Page 42: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

42

Design Examples

Page 43: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

43

Design Examples

Page 44: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

44

Direct Control Design

Page 45: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

45

Direct Control Design

Page 46: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

46

Direct Design using Root Locus

Page 47: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

47

Direct Design using Root Locus

Page 48: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

48

Direct Design using Root Locus

Page 49: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

49

Direct Design using Root Locus

Page 50: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

50

Direct Design using Root Locus

Page 51: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

51

Direct Design using Root Locus

Page 52: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

52

Direct Design using Root Locus

Page 53: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

53

Direct Design using Root Locus

Page 54: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

54

Direct Design using Root Locus

Page 55: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

55

Direct Design using Root Locus

Page 56: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

56

Direct Design using Root Locus

N= Number of samples per oscillation

Page 57: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

57

Direct Design using Root Locus

Page 58: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

58

Deadbeat Control Design

One difference between a continuous-data control system and a discrete-data control system is that the latter is capable of exhibiting a deadbeat response. A deadbeat response is one that reaches the desired reference trajectory in a minimum amount of time without error. In contrast, a continuous-data system reaches the final steady-state trajectory or value theoretically only when time reaches infinity. The switching operation of sampling allows the discrete-data systems to have a finite transient period.. The output response reaches the desired steady state with zero error in a minimum number of sampling periods without inter sampling oscillations.

Design with Deadbeat Response

Page 59: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

59

Deadbeat Control Design

For the sampled system with ZOH

Page 60: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

60

Example: Consider the forward-path transfer function of the uncompensated system is given by

Deadbeat Control Design

Page 61: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

61

Deadbeat Control Design

Closed loop poles at the origin, so it

is so fast

Steady state after two samples without error

Page 62: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

62

Deadbeat Control Design

Page 63: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

63

Deadbeat Control Design

Page 64: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

64

Deadbeat Control Design

The output is delayed one sample than the input

Explain

Page 65: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

65

Deadbeat Control Design

Page 66: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

66

Deadbeat Control Design

Page 67: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

67

Deadbeat Control Design

Page 68: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

68

Deadbeat Control Design

Page 69: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

69

Deadbeat Control Design

Page 70: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

70

Deadbeat Control Design

Page 71: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

71

Deadbeat Control Design

Page 72: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

72

Deadbeat Control Design

Page 73: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

73

Deadbeat Control Design

Page 74: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

74

Deadbeat Control Design

Page 75: Prof. Wahied Gharieb Ali Abdelaal Faculty of Engineering Computer and Systems Engineering Department Master and Diploma Students CSE 502: Control Systems

75

Deadbeat Control Design