Control System-Ii Lab File: Bachelor of Engineering (Division of Instrumentation & Control
Control System-Ii Lab File: Bachelor of Engineering (Division of Instrumentation & Control
LAB FILE
Bachelor of Engineering
(Division of Instrumentation & Control
Engineering)
SUBMITTED BY:
Website: http://www.nsit.ac.in
INDEX
S. No. Experiment
Remarks
SOFTWARE EXPERIMENTS
1
2
3
4
5
HARDWARE EXPERIMENTS
6
7
9
10
SOFTWARE
EXPERIMENTS
EXPERIMENT 1
Aim
Modelling of a DC Motor and studying the PID Design Method
MATLAB CODE
% Problem 1 : Modeling of DC Motor and studying the PID Design method.
J = 0.01;
% Moment of inertia of rotor(kg.m2/s2)
b = 0.1;
% Damping ratio(Nms)
R = 1;
% Electric resistance(ohm)
L = 0.5;
% Electric inductance(Henry)
K = 0.01
% Electromotive force constant(Nm/Amp)
Ke = K;
Kt = K;
Kp = 100;
% Proportional constant
Ki = 1;
% Integration constant
Kd = 1;
% Derivative constant
% State space matrics
A = [-b/J K/J;-K/L -R/L];
B = [0;1/L];
C = [1 0];
D = 0;
% State space to transfer function conversion
[b,a] = ss2tf(A,B,C,D);
% Open loop transfer function
G = tf(b,a);
G
% Step response of OLTF
x = step(G);
figure(1);
plot(x);
xlabel('time(sec)');
ylabel('velocity(m/sec)');
title('step response of original the plant');
%Step response of P comtroller
C = pid(Kp);
T = feedback(C*G,1);
T
x1 = step(T);
figure(2);
plot(x1);
xlabel('time(sec)');
ylabel('velocity(m/sec)');
title('step response of P controller');
% Step renponse of PID controller
C1 = pid(Kp,Ki,Kd);
T1 = feedback(C1*G,1);
T1
x2 = step(T1);
figure(3);
plot(x2);
xlabel('time(sec)');
ylabel('velocity(m/sec)');
title('step response of PID controller');
% Now change the value of Kp to 10 and check the step response of PID
% controller.
% Now change Ki to 200 and check step response of PID controller.
% Now change Kd to 10 and check PID controller.
OUTPUTS
K = 0.0100
G=
2
-----------------s^2 + 12 s + 20.02
Continuous-time transfer function.
T=
200
---------------s^2 + 12 s + 220
Continuous-time transfer function.
T1 =
2 s^2 + 200 s + 2
-----------------------s^3 + 14 s^2 + 220 s + 2
Continuous-time transfer function
EXPERIMENT 2
AIM
Modelling a Cruise Control System and finding the solution using PID control
MATLAB CODE
% Problem 2 : Modeling of cruise control system and finding the solution
using
% PID cotroller
m = 1000;
% Mass of car in kg
b = 50;
% Damping constant in Nsec/m
u = 500;
% Force applied by the engine in N
Kp = 100;
% Proportionality constant
Ki = 1;
% Integral constant
s = tf('s');
% State-space matrices
A = [0 1;0 -b/m];
B = [0;1/m];
C = [0 1];
D = 0;
% State-space to transfer function conversion
[b,a] = ss2tf(A,B,C,D);
% Open loop trensfer function
G = tf(b,a);
G
% Step response of OLTF
x = step(u*G);
figure(1);
plot(x);
axis([0 100 0 10]);
xlabel('time(sec)');
ylabel('velocity(m/sec)');
title('step response of original the plant');
%%
% Step response of the plant with proportional gain Kp = 600 & 100 & 1000
C = pid(Kp);
T = feedback(C*G,1);
T
x1 = step(T);
%subplot(2,2,2);
figure(2);
plot(x1);
%axis([0 100 0 10]);
xlabel('time(sec)');
ylabel('velocity(m/sec)');
title('step response of original the plant with proportional gain Kp=600');
%%
% Step response of the plant with PI control Kp=800 and Ki=40 and also
% Kp=600 & Ki=1
C = pid(Kp,Ki);
T1 = feedback(C*G,1);
T1
x2 = step(T1);
%subplot(2,2,2);
figure(3);
plot(x2);
%axis([0 100 0 10);
xlabel('time(sec)');
ylabel('velocity(m/sec)');
title('step response of original the plant with PI control Kp=800 and
Ki=40');
OUTPUTS
G=
0.001 s
-----------s^2 + 0.05 s
Continuous-time transfer function.
T=
0.1 s
-----------s^2 + 0.15 s
Continuous-time transfer function.
T1 =
0.1 s^2 + 0.001 s
-----------------------s^3 + 0.15 s^2 + 0.001 s
Continuous-time transfer function.
subplot(2,1,2),bode(T1);
grid on;
OUTPUTS
G=
0.001 s
-----------s^2 + 0.05 s
Continuous-time transfer function.
EXPERIMENT 4
AIM
Simulink modelling of a DC Motor speed
SIMULINK MODEL
COMPLETE MODEL
Working equations:J
d2
d
d2 1
d
=T
b
=
= (Ktib )
2
2
dt
J
dt
dt
dt
L
di
di 1
d
=Ri +V e= = (Ri+V Ke )
dt
dt L
dt
EXPERIMENT 5
AIM
Simulink modelling of a DC Motor position
SIMULINK MODEL
COMPLETE MODEL
Working equations:J
d2
d
d2 1
d
=T
b
=
= (Ktib )
2
2
dt
J
dt
dt
dt
L
di
di 1
d
=Ri +V e= = (Ri+V Ke )
dt
dt L
dt
HARDWARE
EXPERIMENTS
EXPERIMENT NO.6
AIM: To perform flow control using PID controller in a process rig.
APPARATUS: Process Rig (PCT-100), Power Supply, Computer.
THEORY:
PID Control
It uses 3-term control to calculate output signal which is used to
drive the control element of PCU. This takes a measured value from
FUNCTION PANEL
It consists of 4 buttons and a status panel.
1. START: It is used to start the flow control cycle. The traffic light
symbol situated to right of these buttons will go from red to
green indicating that flow control routine within the PLC is active.
2. STOP: It is used to stop the flow control cycle. Traffic light symbol
will go from green to red indicating that flow control routine
within PLC is disabled.
3. MENU: It is used to return to the main menu screen.
4. ALARMS: Used to popup lookout alarms window and show a list of
any current or created alarms.
Status panel has 2 indciators that show status of both RUN/STOP
switch on PLC mounting from control panel of process tank, tank-full
switch.
FLOW MEASUREMENT
Flow rate of liquid is measured by means of flow meter of impeller
type. The fluid flow through the meter rotating the impellers which
has 6 blades. Mounted on either side of impeller is an IR transmitter
and receiver producing an IR beam which is broken by rotating
OBSERVATION
1.)
PROPORTIONAL OFFSET
As the gain was increased, response showed a proportional offset
and finally become unstable.
2.)
EFFECT OF LOAD CHANGE ON PROPORTIONAL
CONTROLLER
The proportional controller output to pump remains unchanged, a
bigger proportional offset was incurred.
3.)
EFFECT OF INTEGRAL ACTION
Having introduced a load change, integral action will increase the
controller output to account for load change.
4.)
EFFECT OF DERIVATIVE ACTION
Derivative action improves system response time, however, it will
easily create an unstable system and exaggerate signal noise. The
PCU flow cycle has small time constant and there is little need for
derivative action to decrease response time. Derivative action is
best implemented in slower control cycles.
EXPERIMENT NO.7
AIM: For Analog DC Motor Control, perform the following:
a)
b)
c)
d)
APPARATUS:
M315 DC Motor Module, AS3 Command Potentiometer, CL10 Interface
Module with PC Connection Lead, Power Supply, 4mm Connecting Leads,
Virtual Control Laboratory Software
THEORY:
Step Response:
There are two parts to any time response analysis:
a) A transient period which occurs immediately the input changes and
during which system seems to be dominated by disturbances other
than the input.
b) A steady state condition which is reached after transients have died
out. The system seems to have settled down to the influence of
input.
6. A and B are now final and initial values of trace for response. Click
on slope box. Move slope line until its slope is same as that of initial
part of transient.
PROCEDURE:
1. Start VCL software and load the setup.
2. Disengage the output potentiometer, then switch the power ON and
enable the motor.
THEORY:
Position Control with Velocity Feedback:
A system has natural frequency n and damping factor . A scheme is
required whereby the proportional gain can be increased to speed up the
system and another control introduced to increase damping. The
additional control is called Velocity Feedback. A separate tachogenerator
is used to generate velocity signal.
PROCEDURE:
1. Start VCL software and load the setup.
2. Disengage the output potentiometer, then switch the power ON and
enable the motor.
OBSERVATIONS:
Gain controls the speed of response until the drive saturates. Velocity
feedback control the amount of damping.
Value of Kv VFB setting for optimum velocity = 1.9
THEORY:
PID Control:
With proportional control, there is always an error in output. It decreases
as gain increases, but never disappears. Though it speeds up transient
response but it introduces an unwanted overshoot and oscillations.
Integral effect eliminates the steady state error.
PROCEDURE:
1. Start VCL software and load the setup.
2. Proportional Control: Set integral time constant (ITC) OFF and
derivative time constant (DTC) to 0.
3. Set proportional band (PB) to 100%. Error is 50%.
4. Change values of PB until it reduces the error to 4%.
5. Integral Control: Decrease input level to 30% and set PB to 40%. Set
ITC = 1 sec an click ON/OFF box. Click channel 4 ON.
6. Decrease ITC till a good response is obtained.
7. Make note of PI settings.
PB = 30%, ITC = 0.245 sec
8. Change plant to process.
9. Increase DTC until only a small overshoot can be seen.
DTC = 0.125 sec
OBSERVATIONS (Proportional Control):
Increasing gain decreases error but output gets increasingly noisy.
EXPERIMENT NO.8
AIM
To perform various experiments on pneumatic/electro pneumatic systems
using pneumatic/electro pneumatic valve.
APPARATUS REQUIRED
Double acting cylinder, single acting cylinder, solenoid spring valve,
relay,push button, toggle switch and power supply
THEORY
SOLENOID VALVE--A solenoid valve is
an electromechanically operated valve. The valve is controlled by an electric
current through a solenoid: in the case of a two-port valve the flow is
switched on or off; in the case of a three-port valve, the outflow is switched
between the two outlet ports. Multiple solenoid valves can be placed together
on a manifold.
Solenoid valves are the most frequently used control elements in fluidics.
Their tasks are to shut off, release, dose, distribute or mix fluids. They are
found in many application areas. Solenoids offer fast and safe switching, high
reliability, long service life, good medium compatibility of the materials used,
low control power and compact design.
OBSERVATION
EXPERIMENT 1
NC SOLENOID VALVE
When the PUSH button is pressed the circuit is closed &single acting
cylinder is extended on releasing.
EXPERIMENT 2
RELAY
EXPERIMENT 3
5/2 SOLENOID SPRING VALVE AND RELAY
EXPERIMENT 4
5/2 SOLENOID SPRING VALVE AND PUSH BUTTON
RESULT
Various experiments on pneumatic/electro pneumatic systems using
pneumatic/electro pneumatic valve are performed and results are observed.
EXPERIMENT NO.9
INTEGRAL:
Its set time taken for integral action to duplicate the proportional action
of controller,if error was to remain constant during period.it is not
SAMPLE TIME:
It is time interval between successive measured values. A long period
between samples reduce the need of rapid analogous to digital conversion
and reduces to computational load but degrading effects become
significant.
Time between consecutive samples is dead time.
EXPERIMENT TIME:
it is for batch volume experiment and may be varied between
seconds.this is period over which target volume of water should be
delivered at overflow of tank.
TRAFFIC LIGHT:
it is to show the real time state of function,when red process has been
halted. When green process is real time when amber,process is running
slow heavy processing of some sort is taking place. When green process is
running in real time.
TRENDS:
Shows result from experimental session.
The process control technology pressure module model.PCT M3 has the
following features:
pressure control
speed controlled compressor
pressure range 0-1 bar
PROCEDURE:
by operating the process control technology pressure modules,using PLC
controlled pressure control, the vital characteristic can be easily
demonstrated by varying tuning of PID controller
PROPORTION OFFSET:
set flow integral action time and derivate action time to zero.
tune the proportional controller for L->H gain,recording the system
response as either print out or trend file.
EFFECTS OF LOAD CHANGE ON PROPORTIONAL CONTROLLER
introduce a load change by either causing a change in input pressure(via
valve) or in form of disturbance(noise).
EFFECT OF INTEGRAL ACTIO N:
using previously tuned system with a stable proportional offset ,gradually
introduce integral action.
Record system response.
introduce load change as in(2),recording effects of controller.
EFFECT OF DERIVATIVE ACTION:
using optimum tuned PI controller developed in (3),gradually introduce
derivative action.
Record system response as either print out or trend file.
OBSERVATION:
1. PROPORTIONAL OFFSET:
As PG was increased, response showed a proportional offset and finally
became unstable.
2. EFFECT OF LOAD CHANGE:
since proportional controller output remains unchanged, therefore a
bigger proportional offset incurred.
3. EFFECT OF INTEGRAL ACTION:
having introduced a load change,integral action will increase the controller
EXPERIMENT NO.10
(ii)
APPARATUS:
Process control module temperature control PCT-M4, PC
THEORY:
Thermoelectric cooling uses the Peltier effect to create a heat flux
between the junctions of two different types of materials. A Peltier cooler,
heater, or thermoelectric heat pump is a solid-state active heat
pump which transfers heat from one side of the device to the other, with
consumption of electrical energy, depending on the direction of the
current. Such an instrument is also called a Peltier device, Peltier heat
pump, solid state refrigerator, or thermoelectric cooler (TEC). It can be
used either for heating or for cooling, although in practice the main
application is cooling. It can also be used as a temperature controller that
either heats or cools.
PROCEDURE:
(i)
(ii)
(iii)
(iv)
(v)
OBSERVATIONS:
(i)
P Control :
SP = 50o C
Fan on:
PG
5
10
15
20
Steady State
50
50
50
50
Time (sec)
95
98
113
138
40
80
50
50
205
213
Fan off:
PG
5
10
15
20
80
(ii)
Steady State
50
50
50
50
50
Time (sec)
98
103
110
140
238
PG control :
SP : 50
PG
10
10
100
100
I
999
10
999
10
Steady State
51
52
56
50
OBSERVATIONS:
(i)
(ii)