Assignment 1
Assignment 1
Assignment 1
LIST OF FIGURES.......................................................................................................3
QUESTION 1................................................................................................................4
QUESTION 2................................................................................................................5
QUESTION 3................................................................................................................7
QUESTION 4................................................................................................................8
QUESTION 5..............................................................................................................11
QUESTION 6..............................................................................................................16
REFERENCES...........................................................................................................17
2
LIST OF FIGURES
3
Assignment objectives: using MATLAB to simulate and test control systems; self-
learning new concepts from the simulation.
QUESTION 1
SOLUTION:
4
QUESTION 2
Attach a copy of the Scope output for a step input of unit magnitude, occurring at a
time of 5 units into the simulation. Your simulation should run until the process
reaches steady state.
SOLUTION:
5
Figure 2: Block Parameters: Step (Question 2)
6
Figure 4: Scope (Question 2)
7
QUESTION 3
What is the final value of the Scope output variable when simulated until it reaches
steady state? Demonstrate/show/prove theoretically (i.e., without using Simulink)
that this value is correct.
SOLUTION:
C (s ) Note:
T ( s) =
R ( s)
G(s) = Forward Path of block diagram
C (s ) G(s)
= 1
R ( s ) 1+G ( s ) H (s ) G(s) = 2
s + 6 s +5
C (s )
=
( 1
2
s + 6 s +5 ) G(s)H(s) = Loops in block diagram
R (s ) 1+ 0 G(s)H(s) = 0
1 1
C ( s) = R(s) R(s0) =
2 s
s +6 s+5
C ( s) =
1 1
s +6 s+5 s
2 ()
The above uses that the step input of unit magnitude occurs at a time of 5 units into
the simulation. Then, applying the Final Value Theorem (FVT):
lim C ( t ) =lim sC ( s )
t→∞ s →0
lim C ( t ) =lim s
t→∞ s →0 ( 2
1
s +6 s+5 () 1s )
lim C ( t ) =lim s
t→∞ s →0 ( 2
1
s +6 s+5 () 1s )
1
lim C ( t ) =lim 2
t→∞ s →0 (0) +6 (0)+ 5
1
lim C ( t ) = =0.2
t→∞ 5
8
Final answer = 0.2
QUESTION 4
Add a PID controller to the process (as shown below) and re-simulate the response
to a point in time so that it reaches steady state. Use P = 50, I = 0, D = 4
Discuss your observation of the response in both transient and steady state region
and compare to your answer in part 1.
SOLUTION:
9
Figure 5: Block Diagram with PID Controller (Question 4)
10
Figure 7: Block Diagram with Scope (Question 4)
11
12
QUESTION 5
Attach the Scope output for these simulations and explain why you observe the
behaviour noticed.
SOLUTION:
(A)
13
Figure 10: Block Parameters: PID Controller (Question 5A)
14
Figure 12: Scope (Question 5A)
15
(B)
16
Figure 15: Figure 7: Block Diagram with Scope (Question 5B)
17
18
QUESTION 6
SOLUTION:
Ziegler and Nichols came up with tuning rules in 1942 to help engineers find
and set the right parameters for PID controllers. In the middle of the 1950s,
automatic PID controllers were finally used a lot in industrial facilities.
This sort of control is used to steer an otherwise level system in the direction
of a goal location. It is utilised nearly everywhere for temperature control and in
several scientific, automation, and chemical processes. In this controller, closed-loop
feedback is utilised to keep the actual output of a method as near to the target as
feasible, if not produced at a fixed point.
19
REFERENCES
Bennett, S. (1993). Development of the PID Controller. IEEE Control Systems, 13(6), 58–
62. https://doi.org/10.1109/37.248006
Hammoodi, S. J., Sayegh Flayyih, K., Hamad, A. R., & Hammoodi, S. (2020). Design and
Implementation Speed Control System of DC Motor Based on PID Control and
Matlab Simulink. International Journal of Power Electronics and Drive System
(IJPEDS), 11(1), 127–134. https://doi.org/10.11591/ijpeds.v11.i1.pp127-134
J. Pearson. (1973). Modern Control System Theory and Application. IEEE Transactions
on Automatic Control, AC-18(3), 328–329.
https://doi.org/10.1109/TAC.1973.1100282
Rivera, D. E., Morarl, M., & Skogestad, S. (1986). Internal Model Control: Pid Controller
Design. Industrial and Engineering Chemistry Process Design and Development,
25(1), 252–265.
https://doi.org/10.1021/I200032A041/ASSET/I200032A041.FP.PNG_V03
20
21