Fundamentals / Mechanical engineering / Control engineering

What a controller can learn and deliver

Use rank tests, an exact sampled model and a finite-time numerical observation to diagnose three different limits.

1. A pair of decaying modes

Let \(A=\operatorname{diag}(-1,-2),\ B=(1,1)^\mathsf{T}\). (a) Test reachability. (b) Test observability for \(C=(1,1)\) and then for \(C=(1,0)\). (c) For zero input, recover the initial state from the first sensor when \(y(0)=3,\dot y(0)=-5\).

Use both direction and time history

The reachability columns are \((1,1)\) and \((-1,-2)\); their determinant is \(-1\). The first observability matrix has rows \((1,1),(-1,-2)\) and also has full rank. The second has rows \((1,0),(-1,0)\), hence never sees the second mode. Solving \(x_1+x_2=3,\ -x_1-2x_2=-5\) gives

\[x_1=1,\ x_2=2.\]

In practice several noisy time samples are more reliable than a single numerical derivative.

2. A sampled proportional loop

A held-input plant has \(K=2,\ \tau=1\) s. Use \(K_p=2\). (a) Find the largest sample interval for asymptotic stability. (b) Pick an interval giving a zero discrete pole. (c) For a unit step from rest, find the corresponding output at the first update and its equilibrium error.

Solve both bounds using the exponential

The pole is \(z=5e^{-h}-4\). For a positive sample interval it stays below 1; the lower bound requires \(e^{-h}>3/5\), giving \(h\lt\ln(5/3)=0.511\) s. Equality gives an undamped alternating mode. For \(z=0\), take \(h=\ln(5/4)=0.223\) s. The initial held input is 2, so the first output is

\[2(1-0.8)2=0.8.\]

It stays there on subsequent samples, leaving error 0.2. A fast transient and accurate steady tracking are independent specifications.

3. Explain a numerical tracking record

Use the feedback experiment. (a) Predict the output errors at three and six closed-loop time constants for \(K=2,K_p=4\). (b) Predict which values change if the plant time constant doubles. (c) A drive limited to 2 command units shows a different early trace after a unit step. Identify a signal that could confirm the cause before changing gains.

Compare a finite observation with the steady balance

Here \(e_N=(1+8e^{-N})/9\). The two predictions are 0.15537 and 0.11331; the steady error is 0.11111. Doubling \(\tau\) doubles the times in seconds while preserving those two dimensionless observations. At switch-on the controller asks for \(K_p e=4\), twice the limit. Plot requested and delivered command on the same axes and identify the interval when they differ. The unsaturated model still supplies a valid comparison after checking the actual initial condition for recovery.

Choose an analogue filter order against a folding vibration

A sampled displacement loop runs at 100 Hz. Genuine motion below 10 Hz must retain at least 99% of its amplitude. A 78 Hz frame oscillation must be attenuated to at most 2% before sampling. With a 20 Hz cutoff, decide whether a second- or third-order Butterworth filter meets both amplitude conditions. Determine where the residual vibration appears after sampling.

Show the worked solution

For order \(n\), use \(G(f)=[1+(f/20)^{2n}]^{-1/2}\). At 10 Hz the ratios are 0.9701 and 0.9923 for orders two and three. At 78 Hz they are 0.0656 and 0.0169. Thus the third-order candidate meets both requirements. The second-order candidate misses both. The vibration folds to \(100-78=22\,\mathrm{Hz}\). Even though it lies outside the specified tracking band after sampling, it can still enter sampled diagnostics or excite a controller with appreciable gain there.

Revisit chapter 6 · Why a fast vibration can appear as a slow feedback error.

Notebook practice · Why one sample of latency can change the stability margin