Control Lap6 - Waleed Aleyan
Control Lap6 - Waleed Aleyan
6. Manual tuning
T. Salem Ebid
N. 219080543
The method you are referring to is the gain margin and phase margin
method for tuning control systems. In this method, the gain and phase
margins of the open-loop transfer function of the control system are
analyzed to determine the stability and performance of the system.
The gain margin is the amount of gain that can be added to the system
before it becomes unstable, while the phase margin is the amount of
phase lag that can be added before the system becomes unstable.
o Manual tuning:
TS 0.285 sec
Tr 0.174 sec
OS% 0.401%
ESS 1-1=0.0%
TS 13.8 sec
Tr 7.71 sec
OS% 0%
ESS 1-1=0.0%
Advantages:
Disadvantages:
When using a method Manual tuning, the system must be oscillating. If the system is
not oscillating, use the method Ziegler Nichols tuning and method of implementation
in the following report.
Ziegler_Nichols tuning
In this method, the response to the system is selected using Unit step as input in the
open loop. If the response curve is set to S_shep, this method can be applied
Transfer function is
ωn (s) 3.475
=
v a (s ) 0.00374 S 2 +0.516 S +12.34
System: g2
0.2
Final value: 0.22
0.15
Am plitude
0.1
0.05
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (seconds)
T
R=
L
L=0.00429
T =0.0567
0.056 7
R= =12 .21
0. 00429
The table of the value and type of each microcontroller after finding the
value T/L
Type of Kp Ti Td
controller
P T/L ∞ 0
R>10¿ Pcontroller
PI 0.9T/L L/0.3 0
7.5< R<10 ¿ P I controller
PID 1.2T/L 2L 0.5L
3< R<7.5 ¿ P I Dcontroller
By reliability R>10 we define the type of controller P controller and when added with
the system gives the following response
In the case of the system is not S_shep to the other way we use the other solution
method of Ziegler_Nichols tuning.
Transfer function is
ωn (s) 3.475
=
v a (s ) 0.00374 S 3 +0.516 S 2 +12.34 s
2.5
2
Amplitude
1.5
0.5
0
0 2 4 6 8 10 12
Time (seconds)
Note that the system response does not take the form of S_shep so we will get to the
method second method
In this way we put Ti = ∞ and Td = 0 and use P controller only to increase kp from 0
to Kcr (critical value) in which the oscillation arises.
In order to use this method, the system must be critical and pass through Kcr
interrupting the imaginary axis. This intersection point can be found using the Roth or
Root locus method
200 System: g
Gain: 488
150 Pole: 0.303 + 57.2i
Im a g in a r y A x is ( s e -c1)o n d s
Damping: -0.0053
100 Overshoot (%): 102
Frequency (rad/s): 57.2
50
-50
-100
-150
-200
-250
-350 -300 -250 -200 -150 -100 -50 0 50 100 150
-1
Real Axis (seconds )
2π
P cr= =109 sec
w
K cr =488
When we find a value Kcr,Tcr we calculate in the following table the type and value
of the controller we will use to improve system responsiveness.
P 0.5Kcr ∞ 0
7.5< R<10 ¿ P I controller
PI 0.45Kcr Pcr/1.2 0
ωn (s) 3.475
=
v a (s ) 0.00374 S +0.516 S 2 +12.34 s
3
Type of Kp Ti Td
controller
P 288 ∞ 0
PI 219.6 90.833 0
TS 13.8 sec
Tr 7.71 sec
OS% 0%
ESS 1-1=0.0%
Note :It is clear that this system is stable, whether it is of the first, second, or third type, where
Ess is zero in all cases. For this, we used the third type, as it is considered more accurate .
Advantages:
Disadvantages:
The Ziegler-Nichols method assumes that the system is stable and has a well-
defined response to step inputs, which may not be true for all systems.
The method can be sensitive to noise and disturbances in the system, and may
require multiple tests to obtain accurate results.
The method may not be suitable for systems with highly nonlinear or time-
varying beha.
Discussion
The Ziegler-Nichols tuning method is one of the most popular and widely used
methods for tuning PID controllers. It provides a simple and straightforward
approach to determine the proportional, integrative, and derivative gains of a
system based on experimental data obtained through step tests. However, it has
some limitations and may not be suitable for all systems.