PID control and compensation
แนะนำใหม่
8:27
ระบบควบคุม
This course closes the loop. Signals and systems gave us the open-loop transfer function; now we ask how to make the output follow the input quickly…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| PID controller/ˌpiː aɪ ˈdiː kənˈtrəʊlə/ | ตัวควบคุม PID |
| proportional/prəˈpɔːʃənl/ | สัดส่วน |
| integral/ˈɪntɪɡrəl/ | อินทิกรัล |
| derivative/dɪˈrɪvətɪv/ | อนุพันธ์ |
| lead compensator/liːd ˈkɒmpənseɪtə/ | เครื่องชดเชยแบบนำหน้า |
| anti-windup/ˈænti ˈwɪndʌp/ | ป้องกันการอิ่มตัว |
ตัวควบคุมที่คุณจะปรับค่ามากที่สุด
- วงลูปอุตสาหกรรมส่วนใหญ่ใช้ PID นี่คือตัวควบคุมแรกที่วิศวกรปรับ และตัวที่ถูกปรับบ่อยที่สุด
- แต่ละพจน์สามพจน์ของมันซื้อพฤติกรรมหนึ่งและเสียค่าใช้จ่าย Known Price ที่ทราบล่วงหน้า
สามพจน์
- ตัวควบคุม PID PID ทำงานกับข้อผิดพลาด $e = r - y$: $u = K_{p}e + K_{i}\displaystyle\int e\,dt + K_{d}\dfrac{de}{dt}$
- แบบสัดส่วน ตอบสนองทันที แบบอินทิเกรต จำไว้ ขจัดข้อผิดพลาดคงที่ แบบอนุพันธ์ คาดการณ์ เพิ่มการหน่วง
Match each term to what it does.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Each term improves one behaviour, and each has a cost.
การปรับค่า Ziegler–Nichols
- เพิ่มกำลังสัดส่วนจนกว่าวงลูปจะสั่นสะเทือนเพียงเล็กน้อย บันทึกกำลังสุดท้าย $K_{u}$ และคาบ $T_{u}$
- แถว PID ของตาราง: $K_{p} = 0.6K_{u}$, $T_{i} = T_{u}/2$, $T_{d} = T_{u}/8$ ในรูปแบบขนาน $K_{i} = K_{p}/T_{i}$ และ $K_{d} = K_{p}T_{d}$
A loop oscillates at K_u = 20 with period T_u = 4 s. What integral time T_i does the Ziegler–Nichols PID row give, in s?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$T_{i} = T_{u}/2 = 2$ s, with $K_{p} = 0.6 \times 20 = 12$ และ $T_{d} = T_{u}/8 = 0.5$ s.
K_p = 28.8 and T_i = 1.11 s. What is the parallel integral gain K_i? Give 1 decimal place.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$K_{i} = K_{p}/T_{i} = 28.8/1.11 = 25.9$ per second.
การ์ดนี้ได้รับการแก้ไขแล้ว จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะได้รับการอัปเดต
What each term costs
- Each term's benefit comes with a price:
| Term | Gives | Costs |
|---|---|---|
| P | a fast response | may leave steady-state error |
| I | zero steady-state error | phase lag, more overshoot |
| D | damping | amplifies measurement noise |
- Take the derivative of the measurement, not the error, or every setpoint step kicks the actuator.
Taking the derivative of the error, instead of the measurement, makes a setpoint step kick the actuator.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
A step in r has an infinite slope, so de/dt spikes. The measured output moves smoothly, so derivative on y avoids the kick.
ตัวอย่างคำนวณ: Ziegler–Nichols
- กระบวนการที่กำลังทำงานสั่นที่ $K_{u} = 48$, $T_{u} = 2.22$ s, ดังนั้น $K_{p} = 28.8$, $T_{i} = 1.11$ s, $T_{d} = 0.278$ s.
- P เพียงอย่างเดียวมีค่าเกินเป้าหมาย 65% และเกิดข้อผิดพลาดแบบ ramp ที่ $8/K_{p} = 0.278$. ระบบ PID จะขจัดข้อผิดพลาดนั้นได้ แต่ยังคงมีการสั่นที่ 60%: เป็นการปรับเบื้องต้น ไม่ใช่การปรับให้สมบูรณ์


The running plant 1/[s(s + 2)(s + 4)] runs with P control, K_p = 16. What is the steady-state error for a unit ramp?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$K_{v} = K_{p}/(2 \times 4) = 2$, so the ramp error is $1/K_{v} = 0.5$. An integrator would remove it.
ตัวอย่างวิธีทำ: เพิ่มพจน์อนุพันธ์
- เมื่อใช้ $K_{p} = 28.8$ พหุนามของระบบ PD จะเป็น $s^{3} + 6s^{2} + (8 + K_{p}T_{d})s + K_{p}$: พจน์อนุพันธ์จะเพิ่มเข้าไปในพจน์การหน่วง
- ที่ $T_{d} = 0.5$ rad/s ขั้วของระบบอยู่ที่ $-2$ และ $-2 \pm j3.22$. เมื่อเปิดใช้งาน D ที่สัญญาณวัด กราฟขั้นบันไดจะไม่มีการเกินเป้าหมายและเข้าสู่สถานะคงตัวภายใน 2.1 วินาที
One knob for gain, one for damping
Move Kp and Td and watch overshoot, settling and the Routh verdict move together; gain alone breaks the loop at 48, and damping repairs it.
With K_p = 20 and T_d = 0.3 s on the running plant, what is the s-coefficient of the PD characteristic polynomial?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$8 + K_{p}T_{d} = 8 + 6 = 14$. Derivative raises the damping term directly.
ตัวชดเชยแบบนำหน้า (Lead compensator)
- ตัวชดเชยแบบนำหน้า $\dfrac{1 + \tau s}{1 + \alpha\tau s}$, ที่มี $0 < \alpha < 1$, จะเพิ่มเฟสใกล้กับความถี่หนึ่ง: $\sin\phi_{m} = \dfrac{1 - \alpha}{1 + \alpha}$.
- For +45°, $\alpha = 0.172$. It also raises the high-frequency gain by $1/\alpha = 5.8$, which the design must absorb.
A lead network must add 30° at its peak. What α does it need? Give 3 decimal places.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$\alpha = (1 - \sin 30°)/(1 + \sin 30°) = 0.5/1.5 = 0.333$. Its high-frequency gain rises by $1/\alpha = 3$.
การป้องกัน Integrator Windup
- เมื่อ actuator เกิดภาวะอิ่มตัว (saturate) Integrator จะยังคงสะสมข้อผิดพลาดที่มันไม่สามารถนำไปใช้ได้ แล้วปล่อยออกมาเป็นการเกินเป้าหมายครั้งใหญ่ในที่สุด
- การป้องกัน Integrator Windup จะหยุดเหตุการณ์นี้: บังคับจำกัดค่า Integrator ขณะที่มีภาวะอิ่มตัว, หรือป้อนกลับส่วนเกินจากภาวะอิ่มตัว
ข้อผิดพลาดทั่วไปสามประการ
- ค่า Gain สูงสุดสำหรับระบบที่ไม่เคยสั่น. ใช้เวอร์ชันการตอบสนองแบบขั้นบันไดจากตาราง
- การผสมผสานรูปแบบการปรับค่า. $K_{p}, T_{i}, T_{d}$ ไม่ได้เป็นค่า Gain แบบขนาน
- การลืมค่า $1/\alpha$ ของตัวชดเชยแบบนำหน้า. การเพิ่ม Gain ที่ความถี่สูงจะกินส่วน Margin ที่เราคำนวณไว้ไปหมด
สรุปทบทวน
- P ตอบสนอง, I จำได้, D คาดการณ์ล่วงหน้า
- Ziegler–Nichols ให้การปรับเบื้องต้น; ส่วน Margin และการจำลองผลจะปิดท้ายงาน
- ใช้ Derivative กับสัญญาณวัด; ต้องใช้ Anti-windup เสมอ
A digital PI has $K_p = 2$, $K_i = 5$ และ $T = 0.1$ s. The running sum is 1.00 and this sample's error is 0.40. After adding $eT$ to the sum, what is $u$?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The sum becomes $1.00 + 0.40 \times 0.1 = 1.04$, so $u = 2 \times 0.40 + 5 \times 1.04 = 0.8 + 5.2 = 6.0$.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Recap
- P reacts, I remembers, D anticipates.
- Ziegler–Nichols gives a starting point; margins and simulation complete the design.
- Derivative on the measurement; anti-windup always.
- In code: a running sum for I, a difference over $T$ for D (filtered), and clamps on both the integral and the output.
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้