CHEN3005 Process Instrumentation and Control: Matlab Demo 2
CHEN3005 Process Instrumentation and Control: Matlab Demo 2
Matlab Demo 2
Objectives
To build a Matlab Simulink model for simulation study
To perform PID controller tuning using Ziegler-Nichols formula
To plot figures (process variable responses)
Preliminary
Let the process be given by the FOPDT model as follows:
K p e−θ s p
G p (s)=
τ ps +1
Illustrative Example
Consider a process is given by the following FOPDT model
1.6 e−2 s
G p (s)=P( s)=
5 s+ 1
Calculate the PID controller parameters using the Zigler-Nichols formula
Build a Simulink model which include the following features
o Data logging on the process variable (Y), manipulated variable (U) and time
(t) into the Workspace
o A display of the Integral Absolute Error (IAE) to show the time-domain
performance qualitatively
o A display showing the process variable (Y) response and manipulated variable
(U) response in one monitor
o Output disturbance to the system
After running the simulation for servo and regulatory control cases (choose suitable
simulation duration and step test time), plot the responses using the following
command
o plot(t,Y)
o Edit the figure to appear as desired
o Export the edited figure to your Microsoft document
The complete Matlab Simulink model would appear as in the Figure 1 below.