Notes 4
Notes 4
Controller Process
Measurement
Comparison
The block diagram of a closed-loop system is shown below. In this case the feed forward block
G(s) represents actuator, process and controller. The feedback transfer function is denoted as
H(s).
1
ENGR6925: Automatic Control Engineering, Fall 2006 2
B(s)
closed-loop
H(s) transfer function
X(s) = G(s)E(s)
X(s) G(s)
=
R(s) 1 + G(s)H(s)
Thus the overall closed-loop transfer function can be described as;
G(s)
X(s) = R(s)
1 + G(s)H(s)
Disturbance
D(s)
H(s)
For R(s) = 0 the output for the disturbance input is YD (s) and is given by;
YD (s) G2 (s)
=
D(s) 1 + G1 (s)G2 (s)H(s)
1 G2 (s)H(s)
E(s) = R(s) − D(s)
1 + G1 (s)G2 (s)H(s) 1 + G1 (s)G2 (s)H(s)
1 G2 (s)H(s)
E(s) = R(s) − D(s)
1 + L(s) 1 + L(s))
In general we prefer to have a larger loop gain L(s) so that the effect of disturbance is minimized.
Generally this works out at lower frequencies. However, increasing loop gain can cause the
measurement noise to be magnified and therefore can cause some bad control performance.
Generally measurement noise is high at higher frequencies. Thus a controller is desired to have
a lower gain at higher frequencies and higher gain at lower frequencies.
up = Kp e(t)
ENGR6925: Automatic Control Engineering, Fall 2006 4
Thus
Up (s) = Kp E(s)
where Kp is the proportional gain of the controller. It is important to note here that when error
converges to zero, the proportional signal also becomes zero. Therefore if a system does not
require a control signal once the target has been reached, the proportional control can provide
the driving force to reach the target.
Integral Control
Integral control action provides a signal proportional to the accumulated feedback error over a
period of time. Therefore
Zt
ui = Ki edt
0
Thus
Ki
Ui (s) =
s
Integral control action will have a finite value once error converges to zero. Therefore at steady
state the integral action will be active with a constant control output.
Derivative Control
The derivative control intends to provide damping to a control system and is proportional to
the error rate.
de(t)
ud = Kd
dt
Thus
Ud (s) = Kd sE(s)
We sometimes write using derivative time constant as;
Consider the first-order process with unity feedback system as shown in the figure above.
The overall transfer function is given by;
Y (s) G(s)
=
R(s) 1 + G(s)
ENGR6925: Automatic Control Engineering, Fall 2006 5
where
Kp
G(s) =
Ts + 1
The error signal is given by;
E(s) = R(s) − Y (s)
E(s) Y (s) 1
=1− =1−
R(s) R(s) 1 + G(s)
E(s) 1
=
R(s) 1 + G(s)
E(s) 1
=
R(s) 1 + TKs+1
p
E(s) Ts + 1
=
R(s) T s + Kp + 1
For a unit-step input R(s) = 1/s;
Ts + 1 1
E(s) =
T s + Kp + 1 s
To find the steady state response we use the final-value theorem, given as;
ess = lim e(t) = lim sE(s)
t→∞ s→0
s(T s + 1) 1 Ts + 1
ess = lim =
s→0 T s + Kp + 1 s T s + Kp + 1
1
ess =
Kp + 1
It is clear that the proportional control of a first-order will result in a steady state error value.
y(t)
1
1+KP
In order to reduce it is possible to increase the proportional gain so that the fraction 1/(1 + Kp )
will become appreciably small. However, such increase requires a considerable input to the
process.
ENGR6925: Automatic Control Engineering, Fall 2006 6
Now consider the same process being controlled by an integral controller. For this system;
KI
G(s) =
s(T s + 1)
E(s) 1
=
R(s) 1 + s(TKs+1)
I
E(s) s(T s + 1)
=
R(s) T s2 + s + KI
For a unit-step input;
s(T s + 1) 1
E(s) =
T s2 + s + KI s
(T s + 1)
E(s) =
T s2 + s + KI
Using final value theorem;
s(T s + 1)
ess = lim sE(s) = lim
s→0 s→0 T s2 + s + KI
ess = 0
The integral control output can made to be faster by employing a higher gain for KI .
However, we can see from the transfer function that the second order characteristic equation
will start producing complex roots, which will cause oscillation in the output. The roots of the
Characteristic equation can be found by
2 2 s KI 1 2 KI 1
T s + s + KI = T (s + + ) = T (s + ) + −
T T 2T T 4T 2
For non-oscillatory response,
KI 1
− ≤0
T 4T 2
i.e.
1
KI ≤
4T
ENGR6925: Automatic Control Engineering, Fall 2006 7
However, such a response would be quite low. To increase the response rate, we use PI (Pro-
portional plus Integral) control. The proportional control would provide additional force to
drive the system towards the target, and the integral controller would maintain the steady state
control. We can perform the following analysis to determine the overall characteristic equation
and also a disturbance analysis to control a first order system using PI control.
KP s+KI
Y (s) s(T s+1)
=
R(s) 1 + Ks(TP s+KI
s+1)
Y (s) sKp + KI
= 2
R(s) T s + (KP + 1)s + KI
We can also find E(s) using;
E(s) Y (s) T s2 + s
=1− =
R(s) R(s) T s2 + (KP + 1)s + KI
T s2 + s 1
ess = lim sE(s) = lim s 2
=0
s→0 s→0 T s + (KP + 1)s + KI s
This is understandable, when Integral controller is included the steady state error always be-
comes zero for a first order process. To find the load disturbance properties, consider the case
When R(s) = 0;
Y (s) 1/(T s + 1)
= =
D(s) 1 + (kP + KI /s)(1/(T s + 1))
Y (s) s s
= = 2
D(s) s(T s + 1) + (Kp s + KI ) T s + (Kp + 1)s + KI
ENGR6925: Automatic Control Engineering, Fall 2006 8
E(s) −s
= 2
D(s) T s + (Kp + 1)s + KI
Td
D(s) =
s
Thus using final value theorem;
−s2 Td
ess = lim 2
=0
s→0 T s + (Kp + 1)s + KI s
Now we can see from the above analysis, even under a load disturbance, the PI controller has
the ability to converge the output to its target state and this proves its robustness in controlling
a first order process.
D(s)
E(s) 1 s(Js + b)
= KP
= 2
R(s) 1 + s(Js+b) Js + bs + Kp
s(Js + b) 1 (Js + b)
E(s) = =
Js2 + bs + Kp s Js2 + bs + Kp
s(Js + b)
ess = lim sE(s) = =0
s→0 Js2 + bs + Kp
ENGR6925: Automatic Control Engineering, Fall 2006 9
This indicates the Proportional control is sufficient for position control of a motor. Also, we see
in the process model the term s/s, which provides self-integration ability for the motor. Now
consider the load disturbance aspects.
For R(s) = 0;
1
Y (s) s(Js+b)
= KP
D(s) 1 + s(Js+b)
Y (s) 1
= 2
D(s) Js + bs + KP
As E(s) = R(s) − Y (s) = −Y (s)
−D(s)
E(s) =
Js2 + bs + KP
For a constant load disturbance of d(t) = Td
Td
D(s) =
s
Then
−Td
E(s) =
s(Js2 + bs + KP )
Using final-value theorem;
−sTd
ess = lim sE(s) = lim
s→0 s→0 s(Js2 + bs + KP )
−Td
ess = lim
s→0 (Js2
+ bs + KP )
−Td
ess =
KP
We can see that the motor tries to provide an opposite torque at the steady state to overcome
the load disturbance. This proves the proportional controller is insufficient to provide load
disturbance properties, although it can work well for a position control. Now we will look at
the PI control system.
D(s)
E(s)
R(s)
KP + sKD
1 Y(s)
+
- s(js+b)
Y (s) KP + KD s
= 2
R(s) Js + (b + KD )s + Kp
From the Characteristic equation it is clear that the addition of derivative control able to
increase the overall damping effect of the system. The effective damping coefficient can now be
found as;
b + KD
ξ= √
s KP J
R(s) K X(s)
+
- s(Ts + 1)
X(s) G(s)
=
R(s) 1 + G(s)
X(s) K/T
= 2
R(s) s + s/T + K/T
Therefore; p
ωn = K/T , 2ξωn = 1/T
Thus;
X(s) ωn2
= 2
R(s) s + 2ξωn s + ωn2
The unit-step response is given by when R(s) = 1/s. Therefore;’
ωn2 1
X(s) =
s2 + 2ξωn s + ωn2 s
p p
where ωd = ωn 1 − ξ 2 and φ = tan−1 1 − ξ 2 /ξ
The peak overshoot occurs when dx(t)/dt = 0. While differentiating we can write;
dx(t) 1
−ξωn e−ξωn t sin (ωd t + φ) + ωd e−ξωn t cos (ωd t + φ) = 0
= −p
dt 1 − ξ2
ENGR6925: Automatic Control Engineering, Fall 2006 12
ωd tp = π
φ
tp = p
ωn 1 − ξ 2
The maximum overshoot is when t = tp and ωd tp = φ. Thus
1
x(tp ) = 1 − p e−ξωn tp sin (π + φ)
1−ξ 2
we can also argue that the peak overshoot occurs at the half-cycle time. Therefore,
1
x(tp ) = 1 + p e−ξωn π/ωd sin (φ)
1 − ξ2
Therefore
π
ωn = √ = 1.14 rad/s
3 1 − 0.42
Therefore
1
= 2ξωn = 2 × 0.4 × 1.14
T
Therefore
T = 1.09 s
As
K
= ωn2
T
K = T ωn2 = 1.09 × 1.142 = 1.42