Appendix
Appendix
APPENDIX
B
APPENDIX
C
APPENDIX
D
APPENDIX D.II
Transfer function=
s+ 4
s +2 s +10
2
Bode Plot
The Bode plot consists of two graphs plotted on semi-log paper with
linear vertical scales and logarithmic horizontal scales. The first graph is a
plot of the magnitude of a frequency response function
decibels versus the logarithm of
G( j)
in
()
The logarithmic representation is useful in that it shows both the low- and
high-frequency characteristics of the transfer function in one diagram.
Furthermore, the frequency response of a system may be approximated
by a series of straight line segments.
Given a transfer function of a system, the Control System Toolbox
function bode(num, den) produces the frequency response plot with the
frequency vector automatically determined.
However, the function frqspec(w, mag) is developed which will return
r , M p , and
based
Polar Plot
ImG ( j)
versus
KI
+ KD s
s
K c (s+ z 0 )
s+ p 0
Several functions are developed for the root-locus design. These are
Function
Controller
PD
PI
controller designs.
s 1= + j
, the
damping ratio of the dominant poles, is substituted for s1. num and den
are row vectors of polynomial coefficients of the uncompensated openloop plant transfer function. The function phlead(num, den, s1) may
also be used to design phase-lag controllers. To do this, the desired pole
location s1 must be assumed slightly to the right of the uncompensated
pole position. The function returns the open-loop and closed-loop
numerators and denominators of the compensated system transfer
function.
i.
Phase-Lead Design
iii.
Phase-Lag Design
PID Design
a. PD Controller
Here both the error and its derivative are used for control, and the
compensator transfer function is
G c ( s ) =K p + K D s=K D s+
Kp
KD
Kp
KD
( )
s=
which improves the transient response. From a different point of view, the
PD controller may also be used to improve the steady-state error, because
it anticipates large errors and attempts corrective action before they
occur. The function [numopen, denopen, denclsd] = rldesign(num,
den, s1) with option 4 is used for the PD controller design.
b. PI Controller
The integral of the error as well as the error itself is used for control, and
the compensator transfer function is
G c ( s ) =K p +
K I K p ( s+ K I /K p )
=
s
s