Professional Documents
Culture Documents
MCLECTURE7
MCLECTURE7
= =
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 28
Impedence reflection to motor
side
According to the impedance reflection model
established before, the total inertia J and total
damping factor D are:
J = J
a
+ J
L
= 0.001+0.4167 = 0.4177 Kg.m2
D= D
a
+ D
L
= 0.01+0.1=0.11
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 29
Transfer function
Substituting the known
values gives
| | 1 1 ) 0 1 )( 11 . 0 4177 . 0 (
1
) (
) (
) (
+ + +
=
O
=
s s s s E
s
s G
L
) 11 . 1 4177 . 0 (
1
) (
+
=
s s
s G
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 30
Matlab m-file for motor only
D=0.1+0.01;
Num=Kt*n;
Den=[J*La J*Ra+La*D D*Ra+Kt*Kb 0];
step(Num, Den);
title(Step Response of the Motorized Robot
Arm);
End;
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 31
Response
0 2 4 6 8 10
0
500
1000
1500
Time (Seconds)
Step Response of Motorized Robot Arm
D
e
g
r
e
e
Figure 13. The motorized robot arm with velocity feedback step
response
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 32
Add feedback
Measure corresponding angle change. In this
case, Kp=(10-0)/(90-0)=0.1111 V/degree
The gear ratio is 1.
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 33
Feedback system
G(s)
H(s)=Kp
R(s)
C(s)
-
+
E(s)
F(s)
C(s) = G(s)E(s)
F(s) = H(s)C(s)
E(s) = R(s)-F(s)
C(s) = G(s)(R(s)-F(s)
C(s) = G(s)(R(s)-H(s)C(s))
C(s)=G(s)R(s)-G(s)H(s)C(s)
C(s)(1+G(s)H(s))=G(s)R(s)
C(s)/R(s) = G(s)/(1+G(s)H(s))
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 34
The new transfer function is:
0011 . 0 11 . 1 4177 . 0
1
) ( '
) ( 1
) (
) ( '
2
+ +
=
+
=
s s
s G
K s G
s G
s G
p
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 35
Matlab step response
computation
V=10;
Angle=90;
Kp=V/Angle; %feedback voltage/angle constant
G=tf([1],[0.4177 1.11 0]);
% the transfer function of the velocity loop
sysclose=feedback(G,Kp);
%the closed loop function of position feedback
step(sysclose);
end
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 36
Try this example
Does the response fit specifications.
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 37
Unit step response
Input of 1 volt
Figure 15. Step response of the position feedback uncompensated
system
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 38
Better but still not good
enough
After position feedback, the steady response
tends to be stable as shown in Figure 15.
However, the system response is too slow, to
make it have faster response speed, further
compensation is needed.
The following example describes the outline
of building a compensator for feedback
control system.
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 39
Other criteria
Rise time the time required for the
response to go from 0.1 to 0.9 of its final
value.
Settling time the time required for the
response to reach and stay within 2% of its
final value.
Steady state error difference between the
input and output for a given test input as time
approaches infinity.
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 40
New specification
The required response
could have an
overshoot below 10%
A settling time below
0.2 second
and a steady state error
of zero.
These seem OK.
Figure 15. Step response of the position feedback
uncompensated system
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 41
Rise time
The rise time is about 45 seconds.
So an improved rise time might be the
needed specification for this example.
Lets try a serial compensator.
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 42
Serial compensator
G(s)
H(s)
R(s)
C(s)
-
+
E(s)
F(s)
C(s) = G
c
(s)G(s)E(s)
F(s) = H(s)C(s)
E(s) = R(s)-F(s)
C(s) = G
c
(s)G(s)(R(s)-F(s)
C(s) = G
c
(s)G(s)(R(s)-H(s)C(s))
C(s)=G
c
(s)G(s)R(s)-G
c
(s)G(s)H(s)C(s)
C(s)(1+G
c
(s)G(s)H(s))=G
c
(s)G(s)R(s)
C(s)/R(s) = G
c
(s)G(s)/(1+G
c
(s)G(s)H(s))
G
c
(s)
E(s)
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 43
Compensator added
um(s) s u m (s) Ia(s) T(s)
output
180/t
rad 2 deg1
1/n
gear ratio1
n
gear ratio
compensator 1
La.s+Ra
Kt
Torque Constant
Sum2
Sum1
Kb
Motor angle velocity feedback
Kp
Load angle velocity feedback
s
1 1
Js+D
Input
uL(s)
Motor
Figure 14. Position and velocity feedback model of the motorized
rigid link
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 44
How do we design the
compensator?
Analog system
Digital system
We will explore the use of a digital
compensator using a digital filter in a
computer controller.
10/30/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 45
Any questions?