Download presentation
Presentation is loading. Please wait.
Published byRoger Harris Modified over 8 years ago
1
Exercise 1 Suppose we have a simple mass, spring, and damper problem. Find The modeling equation of this system (F input, x output). The transfer function. Let M = 1 kg b = 10 N s/m k = 20 N/m F = 1 N 3. Find Open-Loop Step Response. 4. Design a proportional controller to improve the output ( π π =17.89). 5. Design a proportional derivative controller to improve the output (π=0.56 and π π =17.89).
2
1. The modeling equation of this system
Solution 1 1. The modeling equation of this system π=π π 2 π₯ π π‘ 2 π π₯ =βπ π₯ βπ π₯+πΉ βΉ π π₯ +π π₯ +π π₯=πΉ 2. The transfer function. Taking the Laplace transform of the modeling equation, we get π π 2 π π +π π π(π )+π π(π )=πΉ(π ) βΉ πΊ π = π π πΉ π = 1 π π 2 +π π +π Let M = 1 kg b = 10 N s/m k = 20 N/m F = 1 N πΊ π = π π πΉ π = 1 π π +20 Plug these values into the above transfer function 3. Find Open-Loop Step Response. Create a new m-file (Matlab) and run the following code: the DC gain of the plant transfer function is 1/20, so 0.05 is the final value of the output to an unit step input. this corresponds to the steady-state error of 0.95, quite large indeed. the rise time is about one second, the settling time is about 1.5 seconds
3
4. Proportional Control The proportional controller (Kp) reduces the rise time, increases the overshoot, and reduces the steady-state error. πΊ π = π π πΉ π = πΎ π π π +(20+ πΎ π ) 1 π π +20 πΎ π + - πΉ π π π π π 2 =20+ πΎ π βΉ πΎ π = π π 2 β20=300 Let the proportional gain equal 300 and change the m-file to the following The above plot shows that the proportional controller reduced both the rise time and the steady-state error, increased the overshoot, and decreased the settling time by small amount.
4
Proportional-Derivative Control
Now, let's take a look at a PD control. From the table shown above, we see that the derivative controller (Kd) reduces both the overshoot and the settling time. The closed-loop transfer function of the given system with a PD controller is: 20+ πΎ π = π π 2 βΉ πΎ π = π π 2 β20=300 10+ πΎ π· =2π π π βΉ πΎ π· =2π π π β20= β10βΉ πΎ π· =10 This plot shows that the derivative controller reduced both the overshoot and the settling time, and had a small effect on the rise time and the steady-state error.
5
Exercise 2 Use a PD controller to control the system G s = 1 π 2 +π to meet the specifications π=0.2 πππ π π =4 πππ/π ππ.
6
The open Loop Analysis: the system poles p = 0 and p= - 1.
Solution the system TF: G s = 1 π 2 +π The open Loop Analysis: the system poles p = 0 and p= - 1. - 1 System poles Im Re 3.9 Desired π=0.2 π π =4 Desired Poles Specifications: π 2 +2π π π π + π π 2 =0 π 1,2 β0.8Β±π3.9 0.8 The system does not meet the desired specification, we need a controller. 1 π 2 +π πΎ π + πΎ π· π + - π¦ π π π¦ π Controller πΆπΏπΆπΈ : π 2 +π +1 πΎ π + πΎ π· π =0 For the design, we need to find πΎ π and πΎ π· to meet the specifications . π·ππ ππππ πΆπΏπΆπΈ : π 2 +2π π π π + π π 2 = π π = π π +16=0 πΆπΏπΆπΈ : π πΎ π· π + πΎ π =0 1+ πΎ π· =1.6 πΎ π· =0.6 By matching coefficients: πΎ π =16 πΎ π =16
7
Exercise 3 Use a PI controller to control the system G s = 1 π +3 to meet the specifications π=0.7 πππ π‘ π <1 π ππ.
8
The open Loop Analysis: the system pole: p= - 3.
Solution The system is type zero, it has no integrator. In order to have no steady-state error we need to add an integrator to make the system type one. The open Loop Analysis: the system pole: p= - 3. - 3 System poles Im Re - 4 π>4 π=0.7 satisfy the settling time π=0.7. π π > 4 π = 4 0.7 π‘ π = 4 π <1 π π >5.71 π π =6 π=π π π >4 1 π +3 πΎ π + πΎ πΌ π + - π¦ π π π¦ π The controller design: PI controller πΎ π + πΎ πΌ π = πΎ π (π + πΎ πΌ πΎ π ) π Gain Zero = πΎ πΌπ Integrator The PI controller can be written as: πΆπΏπΆπΈ :π π +3 + πΎ π π + πΎ πΌ πΎ π =0 π 2 +(2+ πΎ π ) π + πΎ πΌ =0 π·ππ ππππ πΆπΏπΆπΈ : π 2 +2π π π π + π π 2 = π π = π π +36=0 2+ πΎ π =8.4 πΎ π =7.4 πΎ πΌ =36 πΎ πΌ =36
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.