CPE501 - Lab Simulink Control Loop Syste PDF
CPE501 - Lab Simulink Control Loop Syste PDF
Remarks:
--------------------------- ---------------------------
Date: Date:
TABLE OF CONTENT
2.0 INTRODUCTION............................................................................................................4
8.0 RECOMMENDATIONS...............................................................................................26
The Simulink Lab is done to investigate the effect of PID’s parameter (Proportional, Integral and
Derivative) and Deadtime of the process towards the process controllability. 3 set of varying
parameter value with the other two parameter is set at constant for Lab 1, Lab 2 and Lab 3. For
Lab 4, 3 varying value of time delay with fixed value of PID is consider. Larger value of P will
reduce the time taken for the process to reached the set point since the controller action becomes
slower and slows down the process response. Larger P value also reduce the number of oscillates.
Larger value of I increase the time taken for the process to reach the set point as the controller
actions becomes faster and fasten the process response. Larger I value also increase the number
of oscillates. Increasing the D value will makes the controller action becomes faster and the
process becomes faster, dampening the overshoot. However, no changes in the number of
oscillates present. Increasing the value of time delay, will increases the time taken for the process
to reached the set point. The number of oscillation increases as the time delay increases due to
the longer time taken for the response to reach half of its final value from the zero instant.
In order to stabilise the industrial processes due to the changes in operating conditions and
present of process disturbances, controllers come in handy in an automatic control system. PID
controller using the mathematical function consisting of three parameters which are Proportiona,
Integral and Derivatives. All the lab is done in closed loop system since the controller is set to
automatic.
The controller action becomes faster and the process response becomes faster by
increasing the derivatives value, dampening the graph of the process response curve. The
derivative control look out at the rate of change of the process variable and make corrective
action to the output variable for any error.
Manual parameter tuning that be done using trial and error if the changes in operating condition
and present of disturbance in the process.
Delay Time : The time required for the process to reach at 50% of its final value by a time
response signal during its first cycle of oscillation.
Settling Time : The time at which the PV reaches ±5% of the total change in the process variable.
Overshoot : Most notably associated with P-only controller. The difference between the SP
to where the PV settles out at a steady state value.
Decay ratio :The size of the second peak above the new steady state divide by the size of the
first peal above the same steady state level.
1) The mathlab software is opened and the Simulink icon located inside the software is
clicked to start the Simulink.
2) The New Window icon is clicked to open up a new empty model window, named
Untitled, the platform for the Simulink model is build.
3) The Simulink Browser icon is clicked to open up the Simulink Browser to find all
the blocks for the Simulink model.
4) The Simulink simulation parameters is set up to 600.
Figure 5 - Process Flow Diagram for Varying Integral value in PID Controller
1) The same step as in Lab 1 but with varying value of I and constant value of P and D.
1 0.05 0.01 0.00
2 0.05 0.05 0.00
3 0.05 0.10 0.00
Figure 6 - Process Flow Diagram for Varying Derivative value in PID Controller
1) The same step as in Lab 1 but with varying value of I and constant value of P and D.
1 0.05 0.01 0.00
2 0.05 0.01 0.05
3 0.05 0.01 0.10
1) ‘Analog Clock’ block and ‘To Workspace’ block entitled Time is linked together.
2) ‘Constant’, ‘PID(s) Controller’, ‘Transfer Function’, ‘Sum’, ‘Transport Delay’,
‘Scope’ and ‘Display’ block is drag from the Simulink browser to the model window.
The blocks are then connected.
3) The process set point is set up to 1 at the ‘Constant’ block entitled Set Point (SP).
4) P, I and D controller’s parameters is set up to P = 0.2, I = 0.01 and D = 0.00,
respectively at the ‘PID(s) Controller’ block.
5) Process transfer function is set up as following at the ‘Transfer Function’ block.
5s
s2 + 10s
6) The Time Delay is the set up to 5 at the ‘Transport Delay’ block.
7) All the process response is set up in array-2D dimension.
8) After all the blocks has been connected to each other, the simulation is then run and
the ‘Scope’ block is clicked for the output, generating the process response
graphically.
9) The PV vs Time is the plotted via the mathlab window command as the following.
>>plot(time,PV)
10) All the blocks in Step 2 is copied and paste for the second set with different value of
Time Delay. For the second set, Time Delay = 7. Then, the simulation is run.
11) The second process response is then generated via the mathlab command as the
following.
>>figure(2)*plot(time,PV1)
12) All the blocks in Step 2 is copied and paste for the third set with different value of
Time Delay. For the third set, Time Delay = 9. Then, the simulation is run.
13) The third process response is then generated via the mathlab command as the
following.
>>figure(3)*plot(time,PV2)
14) All the three response is then combined by dragging and linking all the three set of
blocks using the ‘Mux’ block. All the respective ‘Scope’ block is removed and
replaced with only one ‘Scope’ block connected to the ‘Mux’ block for all the process
response to be in a figure.
(a)
(b)
(c)
Figure 7 – Process Flow Diagram for (a) Set 1(P = 0.05), (b) Set 2 (P=0.10), (c) Set 3 (P=0.15)
(a)
(b)
(c)
Figure 9 – Process Flow Diagram for (a) Set 1, I = 0.01, (b) Set 2, I = 0.05 . (c) Set 3, I = 0.10.
(a)
(b)
(c)
Figure 11 - Process Flow Diagram for (a) Set 1, D = 0.00, (b) Set 2, D = 0.05, (c) Set 3, D =
0.10
Figure 13 - Process Flow Diagram for Combined Response for Varying Time Delay
Value
Time
The figure shows the combine process response at varying P of P = 0.05, P = 0.10 and P
= 0.15 for Set 1, Set 2 and Set 3, respectively. At P = 0.05, the max process variable is at 1.6%
compared to at P = 0.10 and P = 0.15 where the process variables is at 1.4% and approximately
1.25%, respectively. The proportional control applies corrective action appropriate to eliminate
error. From the graph, larger value of controller gain will further decreasing the error from the
process.
Other than reducing the oscillates number, larger value of P ensure the stability of the
process. As seen in figure, for P = 0.15 at approximate time = 100, the process already reached
stabilization compared to at P = 0.10 and P = 0.05 where the process reached stabilization at time
= 200 and time = 500, respectively. Larger value of P will reduce the time taken for the process
to reached the set point since the controller action becomes slower and slows down the process
response.
Time
The figure shows the combined process response at varying Integral value of I = 0.01, I
= 0.05 and I = 0.10 for Set 1, Set 2 and Set 3, respectively. At I = 0.10, the max process variables
is approximately 1.85%, whereas at I = 0.05 and I = 0.01, the process variables is approximately
at 1.8% and 1.6% respectively. Integral control eliminates the residual error after the proportional
control by adding a control effect to the process. From the graph, larger value of I will increase
the number of the oscillates.
Other than increase the number of oscillates, larger value of I also reduce the stability of
the process. As seen in figure, for I = 0.10 the time taken for the process to stabilized is
approximately at time = 550, compared to I = 0.05 and I = 0.01 at time = 500 and time = 420,
respectively. Larger value of I increase the time taken for the process to reach the set point as the
controller actions becomes faster and fasten the process response.
Time
The figure shows the combine process response at varying Derivative value of D = 0.00,
D = 0.05 and D = 0.10 for Set 1, Set 2 and Set 3, respectively. At D = 0.00, the max process
variable is at 1.6% compared to at D= 0.05 and D = 0.10 where the process variables is at 1.58%
and approximately 1.56%, respectively. The derivative control depends on the rate of error
change. From the graph, smaller value of D, increase the overshoot of the graph but do not have
any effects on the number of oscillates.
The derivative action only dampening the graph. Increasing the D value will makes the
controller action becomes faster and the process becomes faster. Besides, in order to enhance the
effects of this controller, larger value is needed to be consider. Thus, this control is rather suitable
for those process that is slow and taking longer time constant.
Time
The figure shows the combine process response at varying Time Delay value of TD = 5,
TD = 7 and TD = 9 for Set 1, Set 2 and Set 3, respectively. At TD = 5, the max process variable
is at 2.2% compared to at TD= 7 and TD = 9 where the process variables is at approximately
1.8% and 1.75%, respectively. From the graph, increasing value of time delay, increases the time
taken for the process to reached the set point. The number of oscillation increases as the time
delay increases. The size of the oscillate is vary though, with TD = 9 as the largest follows by
TD = 7 and TD = 5, respectively. This is due to the longer time taken for the response to reach
half of its final value from the zero instant.
The process response towards the controller action varies according to the different value of the
PID’s parameter value. Larger value of P will reduce the time taken for the process to reached
the set point since the controller action becomes slower and slows down the process response.
Larger P value also reduce the number of oscillates. Larger value of I increase the time taken for
the process to reach the set point as the controller actions becomes faster and fasten the process
response. Larger I value also increase the number of oscillates. Increasing the D value will makes
the controller action becomes faster and the process becomes faster, dampening the overshoot.
However, no changes in the number of oscillates present. Increasing the value of time delay, will
increases the time taken for the process to reached the set point. The number of oscillation
increases as the time delay increases due to the longer time taken for the response to reach half
of its final value from the zero instant.
There are several recommendations can be made to improve the process response for the lab
based on the results obtained. Reduced the value of the integral action and increase the value of
the proportional action and the derivative action. This is to reduce the number of oscillates and
time taken for the process to reached the set point. Besides, the optimum P, I and D values should
be calculated using tuning rules to choose the right value of PID to control the process response
for lab 4. The tuning rules that can be consider is Tuning Rules by Ziegler – Nichols, Cohen –
Coon and CHR (Chien, Hrones & Reswick).
Abdul Aziz Ishak, Z. A. (2013). PID Tuning Fundamental Concepts and Applications. Shah
Alam: Penerbit Press UiTM.
H. Bischoff, D. H. (1997). Process Control System. Festo Didactic GmbH & Co.
Lab 1 - Effect of Controller Gain. (9 October, 2018). Retrieved from I-Learn (CPE501 -
Chemical Process Control).
Lab 2 - Effect of Integral Time. (9 October, 2018). Retrieved from I-Learn (CPE501 - Chemical
Process Control).
Lab 3 - Effect of Derivative Time. (9 October, 2018). Retrieved from I-Learn (CPE501 -
Chemical Process Control).
Lab 4 - Effect of Deadtime. (9 October, 2018). Retrieved from I-Learn (CPE501 - Chemical
Process Control).