Professional Documents
Culture Documents
MIT16 30F10 Lec20 PDF
MIT16 30F10 Lec20 PDF
Digital Control
d
r e u y
Gc(s) Gp(s)
−
• Can implement this using analog circuits, but as you have seen, there
are many advantages to implementing these using a computer – much
more flexible
yk A2D
Digital Computer
November 5, 2010
Fall 2010 16.30/31 20–2
Ts
y(t) y(k)
November 5, 2010
Fall 2010 16.30/31 20–3
u(k)
u(t) ?
• Basic approach is to just hold the latest value of u(k) for the entire
periods Ts
• Called a zero-order hold (ZOH)
Ts
u(k) = y(k)
y(t) ZOH u(t)
November 5, 2010
Fall 2010 16.30/31 20–4
• So sampled and held e(t) looks like input e(t), but delay is obvious.
November 5, 2010
Fall 2010 16.30/31 20–5
Time
November 5, 2010
Fall 2010 16.30/31 20–6
Control Law
• Basic compensator
s + z U (s)
Gc(s) = Kc =
s + p E(s)
xc(k + 1) − xc(k)
= Acxc + Bce
Ts
xc(k + 1) = (I + TsAc)xc(k) + TsBce(k)
u(k) = Ccxc(k) + Dce(k)
November 5, 2010
Fall 2010 16.30/31 20–7
initialize uold
k = k + 1
wait
end while
• Note that this outputs the control as soon after the data read as
possible to reduce the delay
• result is that the write time might be unknown
• Could write uk+1 at end of wait – delay is longer, but fixed
November 5, 2010
Fall 2010 16.30/31 20–8
Summary
• Using a digital computer introduces some extra delay
• Sample and hold ≈ Ts/2 delay
• Holding u(k) to end of loop ≈ Ts delay
• So the delay is ≈ Ts/2–3Ts/2
• With ωs ≈ 15ωBW , delay effects are small, and the cts and discrete
controllers are similar
November 5, 2010
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.