Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PD compensation.
PD, PI, PID Compensation PI compensation.
PID compensation.
M. Sami Fadali
Professor of Electrical Engineering
University of Nevada
1 2
PD Control Remarks
= loop gain Graphical procedures are no longer
= desired closed-loop pole location. needed.
Find a controller s.t. or CAD procedure to obtain the design
its odd multiple (angle condition). parameters for specified .
Controller Angle for evalfr(L,scl) % Evaluate L at scl
polyval( num,scl) % Evaluate num at scl
Zero location The complex value and its angle can also
be evaluated using any hand calculator.
3 4
Procedure:MATLAB or Calculator Procedure 5.2: Given &
1. Calculate
theta = pi angle(evalfr(l, scl) ) 1. Obtain error constant from and
2. Calculate zero location using determine a system parameter that
remains free after is fixed for the
3. Calculate new loop gain (with zero) system with PD control.
Lc = tf( [1, a],1)*L
2- Rewrite the closed-loop characteristic
4. Calculate gain (magnitude condition)
equation of the PD controlled system as
K = 1/abs( evalfr( Lc, scl))
5. Check time response of PD-compensated
system. Modify the design to meet the desired
specifications if necessary (MATLAB).
5 6
7 8
(a) & (a) Design (cont.)
MATLAB
a = 10 * sqrt(1-0.7^2)/ tan(theta) + 7
Calculate pole location & corresponding gain
a=
>> scl = 10*exp( j*( pi-acos(0.7) ) )
10.0000
scl =
k =1/abs(evalfr(tf( [1, a],1)*g,scl)) %
7.0000 + 7.1414I
k=
>> g=zpk([ ],[0,-4],1);
10.0000
>> theta=pi( angle( evalfr( g, scl) ) )
theta =
Gain at scl:
1.1731
9 10
5 2
Imaginary Axis
Imaginary Axis
4 10
0
3
-2
2
-4
1
-6
0
-8 -7 -6 -5 -4 -3 -2 -1 0 0.7
Real Axis -8
-20 -18 -16 -14 -12 -10 -8 -6 -4 -2 0
11 Real Axis 12
(b) for unit ramp (b) Design (cont.)
L L
13 14
15 16
PI Control PI Remarks
Integral control to improve
Used in cascade compensation (integral term in
(increases type by one) worse the feedback path is equivalent to a differentiator
transient response or instability. in the forward path)
Add proportional control controller has PI design for a plant transfer function is the
a pole and a zero. same as PD design of .
Transfer function of proportional-plus- A better design is often possible by "almost
integral (PI) controller canceling" the controller zero and the controller
pole (negligible effect on time response).
17 18
d
p scl
z scl a
a
Controller angle at
n
tan 180
21 22
Trig. Identity
3.5
2.5
1.5
Solve for
1
0.5
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
Multiplying by gives
23 24
Example 5.6 Solution
To use the PD procedure for PI design, consider
Design a controller for the position control
system to perfectly track a ramp input with a
dominant pair with . Procedure 5.1 with modified transfer function.
Unstable for all gains (see root locus plot).
Controller must provide an angle 249 at the
desired closed-loop pole location.
Zero at 1.732.
Cursor at desired pole location on compensated
system RL gives a gain of about 40.6.
25 26
4
Imaginary Axis
3 0.7
4
0
-10 -8 -6 -4 -2 0
Real Axis
27 28
Analytical Design MATLAB
Closed-loop characteristic polynomial scl = 4*exp(j*(pi acos( 0.7)) )
scl =
-2.8000 + 2.8566i
theta = pi + angle( polyval( [ 1, 10, 0, 0], scl ) )
theta =
1.9285
a = 4*sqrt(1-.7^2)/tan(theta)+ 4*.7
a=
1.7323
k = abs(polyval( [ 1, 10, 0,0], scl )/ polyval([1,a], scl) )
k=
Values obtained earlier, approximately. 40.6400
29 30
33 34
PID (proportional-plus-integral-
PID Design Procedures
plus-derivative) Control
Improves both transient & steady-state 1. Cancel real or complex conjugate LHP poles.
response. 2. Cancel pole closest to (not on) the imaginary
axis then add a PD controller by applying
proportional, integral, derivative Procedures 5.1 or 5.2 to the reduced transfer
gain, resp. function with an added pole at the origin.
3. Follow Procedure 5.3 with the proportional
Controller zeros: real or complex conjugate. control design step modified to PD design. The
PD design meets the transient response
specifications and PI control is then added to
improve the steady-state response.
35 36
Example 5.7 Design I
Cancel pole at 1 with a zero & add an
Design a PID controller for the transfer
integrator
function to obtain zero due to
ramp, and rad/s.
37 38
43 44
Solution (cont.) Step Response of PID-
Stable for all gains.
compensated System
Closed-loop characteristic polynomial