3.6. Lag Compensation¶
Lecturer
Set up MATLAB
3.6.1. Introduction¶
Lead compensation is used to improved the transient response of a closed-loop control system.
In most cases it is also important to ensure that the steady-state accuracy of the closed-loop system is controlled.
In order to reduce the steady-state errors in a system we can use integral action (see PID compensation) which has the affect of increasing the system type number by 1 or increase the system gain.
Unfortunately gain compensation, because it acts at all frequencies, usually has the effect of reducing stability.
What is needed is a form of compensation that acts in a frequency dependent way: adding gain at low frequencies while maintaining mid-to-high frequency gains at the values needed to guarantee stable transient behaviour.
A dynamic compensator that has this effect is the “lag compensator”.
The lag compensator has the transfer function:
where $|z0|>|p0|.$
Considering the frequency response of Dlag(s)
The low and high-frequency gains are:
Because the low frequency gain is higher than the high frequency gain (the compensator has a low-pass characteristic). If the high frequency gain is designed to match the gain needed for transient performance, the low frequency gain can be independently designed to achieve steady-state performance requirements.
3.6.2. Properties of the Cascade Lag Compensator¶
As |z0|>|p0| (a ratio of z0/p0≤10 is usual), the angle contributed by the compensator to some arbitrary point s1 at on the s-plane, is illustrated in Figure 1.
Figure 1 Angle contribution of a lag compensator
The net contribution is
so that the lead compensator always makes a negative contribution to the angle criterion.
This has the effect of allowing the closed-loop poles to move to the right in the s-plane.
The design approach seeks to keep this negative contribution as small as possible so that the pole must be placed physically close to the zero. Typically |ϕc|<2∘.
For convenience, the DC gain of the lag compensator is made unity:
Since |z0|>|p0| then
Now, the uncompensated (or lead-compensated) closed-loop characteristic equation is
so
The gain K0 is the root-locus gain required to place the required dominant closed-loop poles at s=s1.
The values of the zero and pole are chosen such that
This equation requires that the pole and zero be close together and also that
For the lag compensated system, the new root-locus gain will be
The gain K is chosen to satisfy the steady-state error requirements and the compensator gain Kc is used to ensure that the effective gain at s=s1 is unchanged.
3.6.3. Design Procedure¶
Choose K0 to ensure that the desired dominant closed-loop poles satisfy the transient response requirements.
Calculate the gain K required to give the desired steady-state error.
Assuming that the lag compensator has unity DC gain choose Kc=K0/K.
Choose |z0| small with respect to |s1|.
A value of z0=|s1|/10 is often taken as a reasonable first approximation.
The lag compensator pole is then p0=Kcz0.
3.6.4. Example¶
The plant (type 1)
The feedback is
hence
root-locus
In common with previous examples, we chose closed-loop poles at s=−2±j2 and determine K0:
As an aside, we calculate the step response for comparison later:
The system is type 1 so that the static velocity error
We would, for the purposes of illustration, like to increase the static velocity error to 10 which will make the steady-state velocity error equal to 10%.
Thus we need K=40.
Now
so let the zero be
and
so
Let us see how we have done.
The closed-loop system:
has step response
Finally we compare the lag-compensated and gain compensated responses:
3.6.5. Comments¶
The lag compensator has a significantly longer settling time and a raised overshoot. These effects can be explained by examination of the closed-loop transfer function.
The benefits of the lag compensated repsonse can only be really seen when we compare the ramp responses. To determine the ramp response, we need to add an integrator to the plant and find the error responses:
The error is certainly reduced, but the settling time is rather long. To improve the design, a strategy would be to reduce the size of the lag pole to reduce still further the dynamic effects of the compensator on the settling time. However, the zero will still have an effect on the overshoot.
3.6.6. Resources¶
An executable version of this document is available to download as a MATLAB Live Script file cclag.mlx.
You can simulate this design after defining the parameters:
using this Simulink model lag_sim.slx [params.m].