MatLab Assignment

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

MANDALAY TECHNOLOGICAL UNIVERSITY

DEPARTMENT OF MECHATRONICS ENGINEERING

CONTROL ENGINEERING
(McE – 42077)

MATLAB
Assignment

Mg Ther Htet Aung


IV-BE MC-26
Exercise 1:
(a) Get the transfer function from R(s) to Y(s).
(b) Get the transfer function from D(s) to Y(s).
(c) Generate the system response; for K= 10, 20, 50, 100; due to a unit step input
– r(t).
(d) Generate the system response; for K= 10, 20, 50, 100; due to a unit step
disturbance – r(t).
(e) For each case, find the percentage overshoot (P.O), rise time, settling time,
steady state of y(t).
(f) Compare the results of the two cases.
(g) Investigate the effect of changing the controller gain on the influence of the
disturbance on the system output.

Solution

(a) The transfer functions from R(s) to Y(s) for K= 10, 20, 50, 100.
(b) The transfer functions from D(s) to Y(s) for K= 10, 20, 50, 100.
(c) The system response; for K= 10, 20, 50, 100; due to a unit step disturbance –
r(t)
Input Code:
Output

(d) The system response; for K= 10, 20, 50, 100; due to a unit step disturbance –
r(t)
Input Code:
Output
(e) The percent overshoot, rise time, settling time, steady state of y(t) due to a
unit step input-r(t)
The percent overshoot, rise time, settling time, steady state of y(t) due to a unit step
disturbance-d(t)
(f) Comparison between the unit step input and unit step disturbance
Percent Rise Time Settling Time Steady State
Overshoot
K
Step Distu- Step Distu- Step Distu- Step Distu-
Input rbance Input rbance Input rbance Input rbance
10 0 0 0.2045 2.4509 0.3893 4.4361 1 0.1

20 3.8606 0 0.1698 1.1364 0.9133 2.0676 1 0.05

50 12.8912 0.6487 0.1261 0.3763 0.7180 0.5905 1 0.02

100 22.0164 9.4773 0.0972 0.1856 0.6659 0.5943 1 0.01

(g)
In the unit step disturbance, we got percent overshoot value zero for K=10, 20,
which means that the system is overdamped. And we got underdamped system for
K=50 ,100.

Therefore, the larger the controller gain, the more like the system to be
underdamped.

The steady state value of system response decreases while increasing in controller
gain.

The rising time and the settling time also take longer due to the disturbance except
for the settling time in underdamped system.
Exercise 2: Design of a Second order feedback system based on performances. For
the motor system given below, we need to design feedback such that the overshoot
is limited and there is less oscillatory nature in the response based on the
specifications provided in the table. Assume no disturbance (D(s)=0).

Table: Specifications for the Transient Response


Performance Measure Desired Value
Percent Overshoot Less than 8%
Settling Time Less than 1s

Solution
Input Code:
Output
Ka 20 30 50 60 80

Percent 0 1.1758 7.6893 10.8433 16.2929


Overshoot
Settling 0.5835 0.3176 0.3790 0.3404 0.4038
Time

For the given motor system, specifications for


(a) Percent overshoot < 8%
(b) Settling time < 1 s
The suitable value of Ka is 50.
Ka = 50 satisfies the design condition specified.

♦♦♦♦♦

You might also like