Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INSTITUTE OF
ENGINEERING
PULCHOWK
CAMPUS
A
LAB REPORT
ON
DIGITAL CONTROL SYSTEM
LAB NO. 4
SUBMITTED BY:
SUBMITTEDTO:
PRAKASH ACHARYA
ER. DEPAK CHAND
EXPERIMENT-4
SIMULATION STUDY USING SIMULINK OF MATLAB
OBJECTIVE:
To Familiarisation with MATLAB SIMULATION.
Study simulation of discrete time control system using simulink.
THEORITICAL BACKGROUND OF DISCRETE TIME CONTROL SYSTEM:
Discrete time control systems are those in which one or more variables can
change only at discrete instant of time. These instants are denoted by KT (K=0, 1,
2, 3). Discrete-time control system differs from continuous-time control system
in form of the signal. Signals in discrete-time control system are in sampled data
form or digital form.
smoothes the input signal to produce the output signal which is constant from the
last sampled value until the next sample is available. Transfer function of ZOH is
1 e Ts
G h 0 ( s)
s
given by
.
PREPARATORY WORKS:
Before coming to lab the students are advised to gain a clear understanding of:
Sampling and hold operation
Pulse transfer function of digital controller and digital control system
Response of digital control system to standard inputs and effect of the
sampling time on the response.
LABORATORY WORKS:
Laboratory exercise is the simulation study of discrete-time control system using
simulink.
1. Start the MATLAB.
2. In the command prompt type SIMULINK. A new window will open.
3. From file menu open a new blank file.
4. Select the components needed from the different libraries and design the control
system by dragging and dropping.
5. Connect the input to the designed system by dragging a source from the source
library.
6. Connect the output of the system to scope block by bringing it from the sink
library.
7. Set the appropriate block parameters by double clicking it.
8. Choose Kp =1, Ki=0, Kd=0 and Sampling time=1.
9. Set the simulation parameters
10. Start simulation and observe the differences among continues simulation,
simulation using first order hold and using 2nd order hold.
11. Repeat simulation by varying the sampling time of 0.5, 0.1 and .01. Observe the
differences from the previous case.
12. Also repeat simulation by varying Kp.
13. Observe the variation with non zero Ki and Kd and suggest your comments.
14.Repeat the whole procedure for a plant transfer function of 2nd order.
15.Simulate the speed control of dc motor you did in analog control
system lab in discrete time domain. Take transfer function of motor as
0.478
0.12 s 1
I/P
Gain
Block
P-controller
Tacho-Generator
O/P
G. DISCUSSIONS:
1. Explain any discrepancy observed in simulation using contious time
model and discrete model.
2. Discuss the effect of sampling time for discrete simulation.
3. What variation on the response was observed when parameters of
controller were varied?
Kp
1
Pulse
Generator
s+1
Product2
Zero-Order
Hold
Ki
z-1
Plant
Scope
Integrql1
Inputp
z-1
Kd
z
Derivative1
Kp
1
s+1
Product1
Ki
z
z-1
First-Order
Hold
Plant1
Integral2
Kd
z-1
z
Derivative2
Kp
1
s+1
Ki
1
s
Integral4
Kd
du/dt
Derivative
Plant2
1. As specified in the lab sheet ,whenKp =1, Ki=0, Kd=0 and Sampling time=1,the
simulation output is shown below.
COMMENTS:
Proportional-Integral-Derivative (PID) control is the most common
control algorithm used in industry and has been universally
accepted in industrial control. The popularity of PID controllers
can be attributed partly to their robust performance in a wide
range of operating conditions and partly to their functional
simplicity, which allows engineers to operate them in a simple,
straightforward manner.
The proportional term produces an output value that is
proportional to the current error value. The proportional response
can be adjusted by multiplying the error by a constant Kp, called
the proportional gain constant.
The proportional term is given by:
A high proportional gain results in a large change in the output
for a given change in the error. If the proportional gain is too
high, the system can become unstable . In contrast, a small gain
results in a small output response to a large input error, and a
less responsive or less sensitive controller. so we take in this
experiment kp=1,0 for different sampling period and observe the
result.
The contribution from the integral term is proportional to both
the magnitude of the error and the duration of the error.
Theintegral in a PID controller is the sum of the instantaneous
error over time and gives the accumulated offset that should
have been corrected previously. The accumulated error is then
multiplied by the integral gain ( ) and added to the controller
output.
The integral term is given by: