Beruflich Dokumente
Kultur Dokumente
+ = S T
S T
K S G
d
i
p C
*
* ) (
HHHH..
2y rearranging the above formla, a more conventional transfer fnction form can be obtained>
Chemi(al + ,ro(ess Engineering %&&-2&&8
=
&+ation @.;.a
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
+ +
=
S T
S T S T T K
S G
i
i d i p
C
) * (
) (
4
HHHH....
1here >
Kp > Proportional gain
Ti > Integral time constant
Td > Derivative time constant
$ch a controller has three different ad0stments (Kp, Ti, Td), which interact with each other
#ef )/*
7& E8perimental ,ro(edure + #esults analysis
7% E8er(ise ) % * : ,osition Control 9ith a proportional (ontroller
,ro(edure
$witch on the system. The Display will read ID$%*,7 T J *- m$I. Then I Pt the controller on:line so that
all controller configrations and parameters can be set by software on the P% by pressing T&35 then
&KT&3 on the keypad. Then I have $elected $&38? from the men and then $&T <P $&38?. Then the
following will be set according to the experimental procedre>
T J *- m$ J -a.ex
yJP?$K L$elect the position variable from +adratre decoder as the feedback re+iredM
kJ@- .ex L8ale of proportional gainM
kiJ-- .ex LIntegral gain is set to /eroM
kvJ-- .ex LDerivative gain is set to /eroM
Kext thing to do is to select a Step inpt as the type of digital inpt Dtype from the signal generator that the
otpt is re+ired to follow.
d*J---- .ex L$et the signal generator to provide a step waveform. $et as for
d4J4--- .ex hexadecimal digit nmbers. %hanges from - volts to 4., 8oltsM
dcycJ@;-- .ex LThe cycle time is dcyc x ,- ms J 7.4 sM
Chemi(al + ,ro(ess Engineering %&&-2&&8
*-
&+ation @.;.b
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
In order to activate the control and the internal demand generator select Run (this takes the otpt position to
d*) followed by Input On/Off (this enables the step demand inpt from d* to d4 and back to d* in a cycle
time given by dcyc). The motor will drive alternately forward and reverse between two positions. ?bserve
the effect of different vales of proportional control on the step response.
#esults
The following reslts were obtained as shown in figure 4 when the servo has been set p.
.igure 4 : The gain B J 4- in hex (74 in decimal) with proportional (P) controller only.
Chemi(al + ,ro(ess Engineering %&&-2&&8
**
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
%an yo make the response nstable at some vale of kN
Oes the response at the moment is nstable as shown in figure - and the vale of 'ain B is FF in hex J
4,, decimal.
.igure - : The vale of 'ain B is FF in hex J4,, decimal, with P controller only
Chemi(al + ,ro(ess Engineering %&&-2&&8
*4
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure 3 : The gain is set BJ4- h, The Derivative controller is set to Bv J -@ h, so the
system is controlled by Proportional and Derivative.
) See $ppendi8 $ for more results o'tained for this e8er(ise *
72 E8er(ise ) 2 * : $ simple speed (ontrol 9ith a lo9 gain and a steady input demand of 8 rad:s
,ro(edure
The ?b0ective of this exercise was to learn that the stability and dynamic response of a digital control system
are affected by the sampling interval as well as by the loop gain. Then the following will be set according to
the experimental procedre>
T J *@msJ*-.ex
yJ8el
kJ-;
kiJ--
kvJ--
adc> off
dtype> step
d* J 4--- (e+ivalent to ! rad"s)
d4 J 4;-- (e+ivalent to = rad"s)
dcyc J @;--
mJ8el
pwm cycle *- ms
RUN will rn a simple speed control with a low gain k J -; and a steady inpt demand of ! rad"s.
# step demand of = rad"s will not commence ntil Input On/Off is pressed.
Kow the vale of IkI has to be increases by nit steps, noting the measred speed, ntil the control becomes
nstable, and then I have to se the oscilloscope program to detect instability. The vale of IkI after which
instability 0st occrs is easily fond by in0ecting a small step distrbance after each gain increment. Kote
the critical vale of IkI.
#esults
Chemi(al + ,ro(ess Engineering %&&-2&&8
*7
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
The following reslts were obtained as shown in figure 7 when I have set p the servo.
.igure 7 : The gain BJ -;h, the system is controlled by Proportional only.
The actal speed does not close to the demand vale of kJ-;, becase the gain which is pshing the demand
vale is too low kJ-;.
1hen the gain has been increased kJ4, the actal speed come closer to the demand vale as shown
in figure 8
Chemi(al + ,ro(ess Engineering %&&-2&&8
*;
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure 8 : The gain BJ 4, h, this system is controlled by Proportional only.
) See $ppendi8 B for more results o'tained for this e8er(ise *
1hen the gain has increases kJ;-, then I have pt in some integral gain BiJ-, h the actal speed is closer
then ever to the demand vale as shown in figure 9. #nd the error position is /ero.
Chemi(al + ,ro(ess Engineering %&&-2&&8
*,
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure 9 : The gain kJ;-h and the integral gain BiJ-,h , this system is controlled by
proportional and integral.
Then I have to increase the vale of k by nit steps, noting the measred speed, ntil the control becomes
nstable, then I have to se the oscilloscope program to detect instability. The vale of B after which
instability 0st occrs is easily fond by in0ecting a small step distrbance after each gain increment.
I have noted the critical vale of IkI. Then the reslt in figure %& was obtained.
Chemi(al + ,ro(ess Engineering %&&-2&&8
*@
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure%& : The gain BJ4-h, the system is controlled by Proportional only.
7/ E8er(ise ) / * : Effe(t of sampling interval
,ro(edure
The effect of sampling interval with B set to some vale below the critical gainC alter the vale of T from
l@ms to 74ms
Is the system more or less stableN
%ontine increasing B ntil complete instability reslts. Then I have to Kote the vale of B.
Then the following will be set according to the experimental procedre
T J ;ms
B J a vale below the critical vale
P15 cycle J ;ms
L5akes the plse width modlation cycle consistent with the shorter sample interval PT)M
Chemi(al + ,ro(ess Engineering %&&-2&&8
*E
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
3epeat the stability test, varying IkI pwards ntil instability sets in. Find the critical vale of IkI and note the
indicated speed for an inpt demand of 4--- hex.
To see the effect of sampling interval with B set to some vale below the critical gain (kJ-,h),
I have set the vale of time period T (TJ4-h).
#esults
Then the following reslt was obtained as shown in figure %%. The system was less stable.
.igure%% : The gain BJ-,h and with a time period of T J4-h
Then I have contined increasing gain PB) ntil it becomes a complete instability and the reslt was
obtained is shown in figure%2
Chemi(al + ,ro(ess Engineering %&&-2&&8
*!
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure%2 : The gain BJ*, h and with a time period of T J4- h the system is complete instability.
) See $ppendi8 C for more results o'tained for this e8er(ise *
74 E8er(ise ) 4 * : ,ID (ontrol
,ro(edure
1e were re+ired to carry ot an investigation of Proportional, Integral and Derivative (PID) %ontrol
5ethod. PID control is one of the simplest and most widespread types of control. The reason for its
Poplarity is that this method does not re+ire detailed knowledge of the dynamics of the plant which is to
be controlled. # good mathematical model of the controlled system is sally difficlt to obtain de to
ncertainty abot effects sch as friction, nonlinearity, and immeasrable distrbances sch as random noise.
The PID %ontroller allows an operator to simply tne three gains on:line ntil sitable control is obtained.
Chemi(al + ,ro(ess Engineering %&&-2&&8
*=
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
!he ,roportional; Integral and Derivative <ains are tuned in order to o'tain the three (ontrol o'1e(tives of :
*) 3apid response (variation of ndamped natral fre+ency) and redction of steady state error by
tning proportional gain k.
4) Introdction of damping into the closed:loop system with Derivative gain in order to prevent
oscillation of the system otpt (controlled variable) abot the setpoint.
7) 3edction of the error to /ero when tracking changing reference inpts sch as ramps by tning
Integral gain.
# schematic of the digital servo system is shown in figure %/
.igure %/ : # schematic of the digital servo system
The feedback signal can be selected to be either anglar position or velocity. This is compared with a
software generated set point signal v which can be selected to be a step inpt, a ramp inpt or a programmed
tra0ectory which yo wold like the otpt to follow. #n external analoge setpoint can be converted to a
digital signal and added to the software generated signal v bt yo will not do this.
The ob0ective of the control system is to redce the error e between the reference variable v and the system
otpt y as rapidly as possible.
The control system can be patched p easily in software on the P% by choosing $&38? $&T<P from the
men.
Chemi(al + ,ro(ess Engineering %&&-2&&8
4-
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
The control signal for the analoge PID controller is given by the e+ation as follows >
1here J control otpt
e J v:y error
v J demand"setpoint
y J otpt (position"velocity or both)
Bp J proportional gain
Bi J integral gain
Bv J derivative gain
Oo will be implementing a digital controller.
74 ) i * : ,osition (ontrol 9ith a proportional (ontroller
,ro(edure
(et the inpt reference variable v be a step inpt which changes from a position given by d* J ---- hex to
d4 J 4--- hex with a cycle time of dcyc J @;-- hex (which in real time is e+al to dcyc x ,- m$) is e+al to
7.4 $. $et p the system to feedback the position variable i.e. y JP?$K.
(et the derivative gain kv and the Integral gain ki be /ero. $et the initial vale of the proportional gain k to
4- hex. $et the sampling period T J -# hex or *- m$ and the P15 cycle J *- m$. The plse width
modlation cycle time mst always be the same as the sampling period T. Display the demanded signal v
and the position signal by sing the men $&T <P DI$P(#O. Then increase the gain k and notice the effect
on system rise time and overshoot. The aim is to obtain a stable response with the smallest possible rise time.
#esults
1hen I set the initial vale of the proportional gain k to 4- hex. Then the derivative gain kv and
the integral gain ki I have also set to /ero, then the following reslt was obtained as shown in figure %4.
Chemi(al + ,ro(ess Engineering %&&-2&&8
4*
&+ation E.;.a
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure %4 : The gain BJ4- h, with Proportional %ontroller only.
1hen I have increased the gain k and I have to notice the effect on system rise time and overshoot. Then
the following reslt was obtained as shown in figure %-
.igure %- > The gain BJ7- h , with Proportional %ontroller only.
Chemi(al + ,ro(ess Engineering %&&-2&&8
44
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
74 ) ii * : ,osition (ontrol 9ith a proportional and derivative ),D* (ontroller
,ro(edure
1ith kv and ki /ero increase k to give stable response with the smallest possible rise time. Then increase the
derivative gain kv in small increments ntil all the overshoot is eliminated. The aim is to obtain a fast and
critically damped response.
#esults
Then the following reslt in figure %3 was obtained.
.igure%3 : The gain BJ*-h , with derivative gain k8J-,h , this system is %ontrolled by
proportional and derivative.
Chemi(al + ,ro(ess Engineering %&&-2&&8
47
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
74 ) iii * : $ tra(2ing position (ontrol system and elimination of tra(2ing
error 9ith integral (ontrol
,ro(edure
I have to investigate the ability of the proportional controller to track a constantly changing demanded inpt.
This can be done by selecting the demanded inpt to be a 3#5P with the same vales of D*, D4 and cycle
time as in (i). $tart with a P controller only and see if the otpt signal y ever catches p with the demand v.
If not, then introdce integral action ntil the error between the two is /ero.
#esults
Then the following reslts were obtained as shown below.
.igure%7 : The gain BJ7- h , with Dtype ramp, this system is %ontrolled by Proportional.
Kow the following reslts were obtained when we have introdced the derivative gain and integral gain.
Chemi(al + ,ro(ess Engineering %&&-2&&8
4;
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure%8 : The gain (BJ7-h), with derivative gain (k8J-,h), this system is controlled
by Proportional and Derivative.
Chemi(al + ,ro(ess Engineering %&&-2&&8
4,
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure%9 : The gain BJ7,h , with derivative gain k8J-,h , with integral gain kiJ-,h this system
is controlled by Proportional, Derivative and Integral (PID).
E.; ) iv * : Speed (ontrol 9ith an input demand of v = 8 rad:s
,ro(edure
I have to investigate the speed control. The PID %ontroller can be sed to control the speed of the inertial
load (the position disc). $et the sampling period to be *@ ms (*- hex). %ompare a demanded speed specified
by v with the measred speed. This of corse means that the feedback is selected to be y J 8el. The speed
can be changed from a vale given by dl J 4--- hex (! rad"s) to d4 J 4;-- hex (= rad"s) with a cycle time of
dcyc J@;-- hex (7.4 $). The inpt can either be a step or a ramp between the two levels dl and d4. The
control action investigated can be P, PD or PID.
#esults
The following reslts were obtained >
.igure 2& : The gain BJ*,h, with a time period of TJ*-h , this system is controlled by Proportional
only. Kow the following reslts were obtained when we have introdced the derivative gain and
integral gain.
Chemi(al + ,ro(ess Engineering %&&-2&&8
4@
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure 2% : The gain BJ*@h, with a time period of TJ*-h, with derivative gain k8J-,h,
this system is controlled by Proportional and Derivative.
) See $ppendi8 D for more results o'tained for this e8er(ise *
Chemi(al + ,ro(ess Engineering %&&-2&&8
4E
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
.igure 22 : The gain BJ*@ h , with a time period of TJ*-h , with derivative gain k8J-,h, and
with integral gain kiJ-,h this system is controlled by Proportional, Derivative and Integral.
74 ) v * : !he effe(t of sampling period ! on system sta'ility and a((ura(y
,ro(edure
I have to set p a speed control system exactly as in (iv) with an inpt demand of 4--- hex and proportional
action only. I also have to Increase the gain k pwards ntil instability reslts. The vale of gain k 0st below
the vale which cases instability is termed the critical gain. The critical gain can be more readily fond by
toggling the setpoint between 4--- hex and 4;-- hex. This change in inpt shold drive the system into
instability. Kow, with the gain k set at the critical vale, change the sampling period from *@ m$ (*- .ex) to
74 m$ (4-.ex).
#esults
The following reslts were obtained >
.igure 2/ : The gain (BJ*@h), with a time period of (TJ*-h), with an inpt demand of (D*J4---h),
this system is controlled by Proportional only. Kow is when we increase the gain PB) and Time
period PT) pwards ntil instability reslts.
Chemi(al + ,ro(ess Engineering %&&-2&&8
4!
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
The following reslt was obtained as shown in figure 24
.igure 24 : The gain (BJ4,h), with a time period of (TJ4-h), with an inpt demand of (D*J4---h),
this system is controlled by Proportional only
Chemi(al + ,ro(ess Engineering %&&-2&&8
4=
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
8& #esults $nalysis + Dis(ussion
#t the beginning of exercise * I have tested the motor sing proportional and derivative control on the
nit step response. I have tested the motor sccessflly and I have driven the motor alternatively
forward and reverse between two positions with ot the motor over shoot and oscillate the final positions.
In exercise 4 I have investigated that a simple speed control with a low gain kJ-;, steady inpt demand
of ! rad"s and step demand of = rad"s. I have tested and rn sccessflly a simple speed control with
a low gain, steady inpt demand and step demand to see if the actal speed come closer to the demand
vales. 1hen I have increased the gain kJ;-, then I have pt in some integral gain (BiJ-,h), then the
actal speed is closer then ever to the demand vales. In exercise 7 I have investigated that the effect
of sampling interval. To see the effect of sampling interval with B set to some vale below the critical
gain (kJ-,h) and I have set the vale of time period T (TJ4-h). Then the system becomes nstable.
Then I have contined increasing gain (kJ*Eh) ntil the system it becomes a completely nstable. The first
part of exercise ; is position control with a proportional controller in order to obtain a stable response with
the smallest possible rise time. 1hen I set the initial vale of the proportional gain k to 4- hex. Then
the system has large overshoot. 1hen I have increased the gain k and then I have introdced derivative
and integral controller, then all the overshoot is eliminated. The second part of exercise ; is a tracking
position control system and elimination of tracking error with integral control. I have started with a
P controller, and then I have introdced integral action ntil the error between the two it becomes /ero.
The second third part of exercise ; is a $peed control with an inpt demand of v J ! rad"s. the inpt demand
can either be a step or a ramp between the two levels dl and d4. The control action was investigated and
we have sed P, PD and PID. The last part of exercise ; is to see the effect of sampling period T
on system stability and accracy. I have set p a speed control system exactly as in (iv) with an inpt
Chemi(al + ,ro(ess Engineering %&&-2&&8
7-
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
demand of 4--- hex and proportional action only. Then I have also increased the gain B pwards ntil the
system becomes nstable.
Don)t forget appendices Oa mahmood
#eferen(es
Bi'liography
Q7R $heffield hallam niversity. Q?nlineR #vailable from>
http>""www.sh.ac.k"schools"eng"teaching"rw"pidttorial.htmSPageT4-end. Q#ccessed ! #pril 4--ER.
3ef ( 4 ) www.freepatentsonline.com";-=,*,E.html
Chemi(al + ,ro(ess Engineering %&&-2&&8
7*
Mahmood Mustafa Control Engineering
ID : 2489429 Supervised By : Dr !ari" Sattar
Q7R Packaging digest. Q?nlineR #vailable from> http>""www.packagingdigest.com"articles"4--7-!"==.php.
Q#ccessed *- #pril 4--ER.
#ef )4* 999t(n1edu:>rgraham:,ID?tuninghtml
#ef )-
: Innovative atomation control. Q?nlineR #vailable form> http>""www.ctc:
control.com"cstomer"elearning"servott"pid.asp
Chemi(al + ,ro(ess Engineering %&&-2&&8
74