Digital Control
Digital Control
Digital Control
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Control</strong> Law Processor - PID controller<br />
(Proportional-Integral-Derivative)<br />
►Continuous ( Analog) Expression<br />
Command Xi(t)<br />
Feedback Xf(t) Output M(t)<br />
e(t) = Xi(t) – Xf(t)<br />
M(t) = Kp*e(t) + Ki*∫e(t)dt + Kd * ---- d e(t)<br />
dt<br />
►Difference ( digital ) Expression<br />
-<br />
+<br />
----- (1)<br />
----- (2)<br />
Where -- e(t): Error signal; Kp: Proportional Gain; Ki: Integral Gain; Derivative Gain<br />
n<br />
m(n) = Kp × e(n) + Ki × ∑ e(i) × ∆t + Kd × ---------------e(n)<br />
– e(n-1)<br />
i=0<br />
∆t<br />
- (3)<br />
m(n)= m(n-1) + Kp × [e(n)-e(n-1)] + Ki × e(n) × ∆t + Kd × [---------------e(n)<br />
– e(n-1)<br />
-<br />
∆t<br />
e(n-1) – e(n-2)<br />
------------------- ] - (4)<br />
∆t<br />
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc.,<br />
Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />
and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 21<br />
TM