Classical control
Algorithms
- PID controller
Sets the control to a weighted sum of the error, its integral and its filtered derivative, the most used controller in industry.
1 languagesintro - Ziegler-Nichols tuning
Sets PID gains by rules from the ultimate gain and period found at the edge of oscillation, or from a step response.
1 languagesintro - Relay feedback autotuning
Puts a relay in the loop to make a limit cycle, reads the ultimate gain and period from it, and tunes a PID from them.
1 languagescore - Root locus construction rules
Computes the features that fix the shape of a root locus from the open-loop poles and zeros, the real axis segments, asymptotes, breakaway points, departure angles and axis crossings.
1 languagescore - Smith predictor
Takes the dead time out of the loop by feeding back a delay-free model output, so the controller can be tuned as if there were no delay.
1 languagescore
Techniques
- Cascade control
An inner loop controls a fast secondary variable and an outer loop sets its reference, so inner disturbances are rejected early.
intro - Feedforward control
Adds a control term computed from the reference or from a measured disturbance, so the loop acts before an error appears.
intro - Root locus
The paths of the closed-loop poles, the roots of D(s) + K N(s), as one gain K goes from 0 to infinity. Used to choose the gain and to place compensator poles and zeros.
intro - Anti-windup
Stops or bleeds the integrator of a controller while the actuator saturates, by conditional integration or by feeding back the saturation error.
core - Controller discretization by emulation
Designs a continuous controller and turns it into a discrete one by Tustin, matched pole-zero or hold equivalents.
core - Internal model control
A controller structure that runs a model of the plant in parallel and inverts its invertible part with a filter, which gives PID tuning rules.
core - Lead-lag compensator
A first-order compensator that adds phase near crossover when its zero lies below its pole, or raises the low frequency gain when its pole lies below its zero.
1 languagescore - Loop shaping
Design a controller C by shaping the Bode plot of L = PC: high gain at low frequency, low gain at high frequency, and a crossover with a slope near -20 dB per decade and enough phase margin.
core - Relative gain array
A matrix of ratios of open-loop to closed-loop gains that tells which input should control which output in a multivariable plant.
core - Two-degree-of-freedom control
A controller that treats the reference and the measured output by separate paths, so tracking and disturbance rejection are tuned apart.
core
Concepts
- Feedback control loop
A loop in which a controller acts on the error between a reference and the measured output. It lowers the effect of disturbances and plant errors, but feeds sensor noise in and can destabilize.
intro - Integrator windup
When the actuator saturates, the integral of a controller keeps growing, which causes a large overshoot once the error changes sign.
core
Definitions
- Bode plot
Two graphs against log frequency: the gain 20 log10 |G(j omega)| in decibels and the phase in degrees. Logs turn a product of factors into a sum of simple curves.
intro - Gain margin
The factor 1/|L(j omega_pc)| by which the loop gain can grow before the closed loop loses asymptotic stability, read where the phase is -180 degrees. With several crossings, the least above 1 counts.
intro - Nyquist plot
The closed curve that L(s) draws in the complex plane while s goes once clockwise around the right half plane. Its encirclements of -1 and its distance to -1 measure the loop.
intro - Phase margin
The extra phase lag 180 + arg L(j omega_c) degrees that the loop can take at the gain crossover before the closed loop loses asymptotic stability. With several crossovers, the smallest counts.
intro - Steady-state error
The limit of the error r - y of a stable loop for a step, ramp or parabola reference. The system type and the constants K_p, K_v and K_a give it, for example 1/(1 + K_p) for a step and type 0.
intro - Step response specifications
The rise time, peak time, overshoot, settling time and steady-state value of the response to a unit step. Books differ on the rise time and the settling band, so a definition must state them.
intro - Complementary sensitivity function
T = L/(1 + L), the closed-loop map from reference to output and from sensor noise to output, with S + T = 1. A small peak of W T gives robust stability under multiplicative plant errors.
core - Nichols chart
A plot of the open-loop gain in dB against the open-loop phase in degrees, on a grid of contours of constant closed-loop gain and phase of T = L/(1 + L). Used to read margins and shape loops.
core - Sensitivity function
S = 1/(1 + L) for the loop transfer function L. It maps an output disturbance to the output, gives the relative change of the loop per change of the plant, and its peak is 1 over the distance to -1.
core
Theorems
- Final value theorem
If f(t) has a limit, it equals the limit of sF(s) as s goes to 0. For rational F the limit of f exists exactly when all poles of sF(s) are in the open left half plane. Else sF(0) can mislead.
intro - Internal model principle
A stable loop keeps zero steady-state error to a class of references or disturbances under all small plant changes only if the controller contains a model of the generator of that class.
core - Nyquist stability criterion
With P open-loop poles in the right half plane and N clockwise encirclements of -1 by L(s) as s goes clockwise around that half plane, the closed loop has Z = N + P unstable poles.
core - Bode gain-phase relation
For a stable minimum-phase G, the phase at omega_0 is a weighted average of the slope of ln |G| against ln omega. A slope of -20n dB per decade over a wide band gives a phase near -90n degrees.
advanced - Bode sensitivity integral
For L of relative degree at least 2 and an asymptotically stable closed loop, the integral of ln |S(j omega)| from 0 to infinity is pi times the sum of Re p over the open-loop RHP poles.
advanced
Models
- Standard second-order system
The transfer function omega_n^2 / (s^2 + 2 zeta omega_n s + omega_n^2). The damping ratio zeta and the natural frequency omega_n fix the overshoot, the speed and the resonance in closed form.
intro