MATLAB Applications No. (2) Block Diagram Reduction: Objective
MATLAB Applications No. (2) Block Diagram Reduction: Objective
Objective:
The objective of this application is to reduce block diagrams to a single
transfer function through block diagram manipulation and reduction.
Transfer Function:
A transfer function is a property of the system elements only, and is not
dependent on the excitation and initial conditions. The transfer function
is a mathematical relationship between the input and output of a control
system component. The transfer function of each component is a placed in
a block. Specifically, the transfer function is defined as the output divided
by the input, expressed as:
Output
Transfer Function =
Input
Therefore, the transfer function relating the output 𝑌(𝑠) to the input 𝑈(𝑠) is:
𝑌(𝑠)
= 𝐺1 (𝑠) ± 𝐺2 (𝑠)
𝑈(𝑠)
3. The blocks connected in feedback loop: The system transfer function
can be obtained as shown in Figure 3.4.
Therefore, the transfer function relating the output 𝑌(𝑠) to the input 𝑅(𝑠)
is:
𝑌(𝑠) 𝐺(𝑠)
=
𝑅(𝑠) 1 ± 𝐺(𝑠) 𝐻(𝑠)
The block diagram representation of a given system often can be reduced
to a simplified block diagram with fewer blocks than the original diagram.
Example 3.2: Determine the open loop transfer function for the system
shown in Figure 3.5.
Example 3.3: Determine the 𝑌(𝑠)/𝑈(𝑠) for the system shown in Figure 3.6.
Solution:
>> % To determine the Y(s)/U(s) of Example 4.3 %
>> s=tf('s');
>> G1=4*(s+2)/(s*(s+4));
>> G2=2*s/(s+6);
>> G=parallel(G1,G2) % or: G=G1+G2
Transfer function:
2 s^3 + 12 s^2 + 32 s + 48
------------------------------------
s^3 + 10 s^2 + 24 s
Example 3.4: Consider the feedback control system in Figure 3.7.
Determine the closed loop transfer function in the case:
1. Negative feedback.
2. Positive feedback.
Solution:
>> % To determine the closed loop transfer function of Example 3.4 %
>> % 1. In the case: Negative feedback %
>> s=tf('s');
>> G1=500/(s+1);
>> G2=1/(s+10);
>> H=1/(0.5*s+1);
>> G=series(G1,G2);
>> T=feedback(G,H) % T=feedback(G,H,-1), or T=G/(1+G*H) %
Transfer function:
250 s + 500
-------------------------------------------
0.5 s^3 + 6.5 s^2 + 16 s + 510
>> T=minreal(T)
T=
500 s + 1000
---------------------------------------
s^3 + 13 s^2 + 32 s + 1020
>> % 2. In the case: Positive feedback %
>> T=feedback(G,H,+1) % T=G/(1- G*H) %
Transfer function:
250 s + 500
----------------------------------------
0.5 s^3 + 6.5 s^2 + 16 s – 490
>> T=minreal(T)
T=
500 s + 1000
----------------------------------
s^3 + 13 s^2 + 32 s - 980
Example 3.5: A multi loop feedback control system is shown in Figure 3.8:
Khaled Mustafa Mahmoud Session: Spring 2017/2018
40
Compute the closed loop transfer function using the series, parallel, and
feedback functions.
Solution:
>> % To determine Y(s)/R(s) using series, parallel, and feedback functions %
>> s=tf('s');
>> G1=2/(s+1);
>> G2=1/(s*(s+4));
>> G3=5/s;
>> H1=3;
>> H2=1/s;
>> G4=parallel(G1,G2);
>> G5=feedback(G3,H1);
>> G=series(G4,G5);
>> T=feedback(G,H2)
Transfer function:
10 s^3 + 45 s^2 + 5 s
-------------------------------------------------------
s^5 + 20 s^4 + 79 s^3 + 70 s^2 + 45 s + 5
Example 3.7: Simplify the block diagram shown in Figure 3.11. Then
obtain the closed loop transfer function 𝑌(𝑠)/𝑅(𝑠) using MATLAB.
Figure 3.12: Successive reduction of the block diagram shown in Figure 3.11.
>> % To determine Y(s)/R(s) using MATLAB %
>> syms s KI
>>G1=KI/s;G2=1/(2*s+1);G3=(s+5);
>>G4=1/(3*s+1);H1=1;H2=H1;H3=1/s;
>>T1=G1*G2/(1+G1*G2*H1);
>>T2=G3*G4/(1+G3*G4*H2);
>>T=T1*T2/(1-T1*T2*H3/(G1*G4))
>>pretty(simplify(T))
KI (s + 5)
--------------------------------------------
8 s3+13 s2 + 4 KI s -10 s + 6 KI -5
Homework 3.3: A control system has a block diagram shown in Figure 3.15:
If: 𝐺1 (𝑠) = 1/𝑠, 𝐺2 (𝑠) = 10/(2𝑠 + 4), 𝐺3 (𝑠) = 3/𝑠, 𝐺4 (𝑠) = 3/(𝑠 + 1),