- Open Access
- Total Downloads : 1158
- Authors : Mary Jermila M, Anju Iqubal, Soumya Raj. L
- Paper ID : IJERTV2IS4578
- Volume & Issue : Volume 02, Issue 04 (April 2013)
- Published (First Online): 18-04-2013
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Pid Auto Tuning Using Relay Feedback
Mary Jermila M1, Anju Iqubal, Soumya Raj. L2
ISRO Inertial System Unit,Vattiyurkkavu,Thiruvananthapuram
Dept. of Electronics & Communication Engineering, Younus College of Engineering and Technology, Kollam-691010, Kerala, India.
Abstract– PID autotuning algorithms based on relay feedback are used to identify different options of the process frequency response before performing the actual tuning procedure.These algorithms require minimal amount of priori information about the controlled process, they are also insensitive to modelling errors and disturbances.In this paper,a PID autotuning procedure implimentation based on Astrom and Hagglunds method(1984) is presented.The procedure is based on the estimation of the ultimate gain ultimate frequency using a relay test signal in closed loop.The PID parameters are calculated using the Ziegler-Nichols tuning rules.In the case where the system is completely unknown,an initial tuning is required before the system can reach the set point,afterwards,a more accurate estimation is made.In case of linear systems,the ultimate gain and the ultimate frequency extracted from the initial tuning are expected to be similar to those extracted from the tuning.In case of nonlinear systems, estimation should be conducted for each change of the set point.Furthermore,the PID parameters extracted in the procedure can be used either for initialisation of other advanced optimization algorithms or for caliberating complicated adaptive regulators. This paper presents a PID autotuning procedure based on Astrom and Hagglund's method. This procedure is able to tune a PID controller without using preliminary experiments, modeling or external tools.
Index Terms PID, Autotuning, Relay Feedback, Control.
-
INTRODUCTION
In recent years,a number of autotuning techniques for simple and classic regulator structure(eg:PIDs) have been presented in literature[1].The great effort of these researches is motivated by two main reasons: first,a simple regulator is fast, easy to impliment and easy to tune, secondly,a classic structure is well known and accepted in the industrial world.As a result,some of these researches have also found direct industrial application.As far as PIDs are concerned,most methods are based on the identification of one point of the process frequency response,either by a propotional regulator bringing the closed loop system to the stability boundary,or by a relay forcing the controlled process variable to oscillate.This point is suitably moved in the complex plane by opertune choice of the propotional,integral and derivative actions performed by the PID regulator.
Astrom et.al [4] is presented to deal with a reduced knowledge about the process dynamics.The main feature of the method is its capability of exploring more than one point of the process frequency response before actually tuning the regulator.In fact,the algorithm looks for various points until some conditions defined by the required control performances(ie.the closed loop phase margin) are fulfilled;only at this step are PID parameters computed[3] .This search is performed by plugging in to the control loop a variable time delay,computed
by the algorithm itself at each step of the procedure.In so doing all the tuning formulas can be derived from the same,simple relation and,as a result,almost no a priori information on the process dynamics is required.Moreover, the regulator performance can be forecast easily during the tuning phase,before the PID is connected;this allows a skilled user,in case the required control behaviour cannot be obtained,to reset the tuner and start again with new specifications.Finally,the algoritm ensures conservative PID tuning in most cases,even if its assumptions on the process structure are evidently wrong:this makes it suitable for use as a pretuner for more complex and accurate adaptive PID controllers.
This paper presents a PID autotuning procedure for PLC platforms, based on Åström and Hägglund's method. This procedure is able to tune a PID controller without using preliminary experiments, modeling or external tools. The paper is organized as follows: Åström and Hägglund estimation method will be described in Section I. Simulation results of both the ZN manual method and the relay feedback method will be presented and discussed in Section III.Relay feedback examples are disscussed in sectionIV In Section V, a completely automatic tuning procedure will be presented, implemented using PLC code, which allows real time tuning of the controlled parameters in the field.Last in section VI relay feedback method applied to the complex DTG.
II PROBLEM STATEMENT
Consider the closed loop shown in Fig. 1. The unknown process transfer function is given by G(S) [7] while the PI controller is given by
(1)
The closed-loop transfer function from reference yr(t) to output y(t) is given by
(2)
For this closed-loop configuration,T(S) is also known as the complementary sensitivity function and L(S)=G(S)C(S) is the loop transfer function. The gain margin (GM)[2] and phase margin (PM) of a closed loop are defined as
where u and g are obtained from
(3)
Note that the imaginary part of G(iu) is zero. So the frequency is the ultimate frequency of the process and the ultimate gain is 1/ G(iu). Meaning:
(4)
The problem posed in this paper is to find the PI controllers
Comments:
(10)
parameters using relay tests, such that a closed-loop system with specified gain and phase margins is obtained.
III ULTIMATE POINT ESTIMATION
Astrom and Hagglund's method determines the ultimate point using a relay test signal as the system input. The test signal is automatically produced as described in Figure1 . The method is based on the fact that system with a phase lag of at least at high frequencies can oscillate under the ultimate period tu.
Figure 1: Block diagram for ultimate point estimation
The square signal of the relay output can be represented by a Fourier series:
-
Other points of the frequency responce can be identified if the relay hysteresis.An integrator or a known time delay can also be inserted in the loop for this purpose.
-
The identified point can be used to tune simple regulators,e.g. by using the Ziegler-Nichols method or by introducing phase and amplitude margins specifications.
The test is conducted in closed loop in order to limit the output amplitude deviation from the desired set point. The oscillations amplitude can be controlled by the relay test signal amplitude, where usually a small amount of 2%-10% of the control effort is enough. So, with a relatively simple experiment, a relay test signal can be produced and the system ultimate point can be estimated.
By neglecting higher frequencies:
(5)
Figure 2: ur(t) and y(t)
(6)
Neglecting higher frequencies is possible since most physical systems act as low pass filters. The transfer function of the relay for a sine wave input with amplitude a is:
(7)
The system will show continuous cycling (marginally stable) when the following condition is satisfied.
(8)
Placing equation [7] into [8] will result in:
(9)
Once the ultimate point (ultimate frequency and gain) has been estimated, a PID controller can be tuned using ZN rules. Table 1 provides the tuning parameters for the given ultimate gain and period of the process.
Table 1: ZN PID parameters according to the ultimate point
IV RELAY FEEDBACK TUNING EXMPLES AND SIMULATION
Consider the following different systems,to test the Relay Feedback tuning method,simulations are conducted on them.
G1(s) and G2(s) are first order dead time systems (FOPDT) commonly used for describing dynamic industrial processes. G3(s) is a high order system, representing process with extremely high time constants. G4(s) is a non-causal, unphysical system testing the method on a theoretical level.
A.Estimating the ultimate point
In order to estimate the ultimate point for the systems above, simulations were conducted as described in Figure (1). A relay test signal is used to control the system. Relay parameters were configured to guarantee oscillations.
System 1
System 2
System 3
System 4
Figure 3: System 1-4 outputs under relay control
The oscillations presented in Figure 3 are the output signal results of the simulations. These signals were used to find the ultimate point for each of the four systems. The ultimate gain is calculated using equation [11], where d the relay amplitude is known and a the output amplitude is measured.
The ultimate frequency of the output signals was determined from the cycle time of the oscillations.
B.PID parameters tuning
The ultimate point can now be used to tune the parameters of the PID controller. The tuning results were compared to the ZN bode plot method using the MSE criteria.
(11)
The results presented in Figure 4 present a step responses for each of the four systems using both relay feedback parameters and bode plot ZN parameters.
SYSTEM
TUNING METHOD
Kp
Ki
Kd
Td
Ti
1
RF
3.3953
0.3395
8.4883
2.5
10.0
BP
4.1604
0.4543
9.5245
2.28
9.15
72
2
RF
1.1575
0.0386
8.6812
7.5
30.0
BP
1.3571
0.0438
10.5075
7.7427
30.9
709
3
RF
1.1072
0.01483
21.4513
19.375
77.5
BP
1.1304
0.0149
21.4335
18.9612
75.8
448
4
RF
3.3953
0.1692
16.9719
5.0
20.0
BP
3.6005
0.2144
15.1137
4.19
16.7
905
SYSTEM
TUNING METHOD
GAIN MARGIN
PHASE MARGIN
DELAY MARGIN
MS E
1
RF
6.17
48.6
5.13
0.05
91
BP
4.84
41.5
3.58
0.06
24
2
RF
5.77
66.8
28.3
0.21
89
BP
4.26
63.6
22.4
0.21
82
3
RF
5.28
76.3
69.4
0.45
89
BP
5.14
73.7
63.9
0.45
75
SYSTEM
TUNING METHOD
GAIN MARGIN
PHASE MARGIN
DELAY MARGIN
MS E
1
RF
6.17
48.6
5.13
0.05
91
BP
4.84
41.5
3.58
0.06
24
2
RF
5.77
66.8
28.3
0.21
89
BP
4.26
63.6
22.4
0.21
82
3
RF
5.28
76.3
69.4
0.45
89
BP
5.14
73.7
63.9
0.45
75
Table2: Comparison Between Controller Parameters
4
RF
7.44
42
6.16
0.11
00
BP
8.45
31.4
4.44
0.12
77
4
RF
7.44
42
6.16
0.11
00
BP
8.45
31.4
4.44
0.12
77
System 4
Table3: Comparison Between Margins and MSE
SYSTEM
TUNING METHOD
SETLING TIME
PEAK RESPONSE
RISE TIME
%OVERSHOOT
1
RF
33.2
1.19
7.51
18.8
BP
27.1
1.41
6.88
41
2
RF
74.6
1.05
30.4
4.65
BP
92.8
1.23
27.4
23
3
RF
327
1.07
41.2
6.59
BP
328
1.09
40.3
9.05
4
RF
41.9
1.22
10.2
21.6
BP
61.2
1.4
9.91
39.6
Table4: Comparison Between Step Response Parameters
The simulation results shows that relay feedback method gives better performance than ZN bode plot method. Because the method uses only the ultimate data of the process, it shows poor performance for large time-delay processes, as does the classic ZN method.
System 1
Figure 4: Step response for both tuning methods
-
-
V.CLOSED LOOP PI CONTROLLER TUNING
The closed loop PI controller autotuning procedure is based on two consecutive phases that ate exicuted automatically.
During the first phase the relay test signal is used to control the system.In this case the amplitude of the test signai is rather large:0-75% of the controller output range,as described n the first phase in figure 6.The intial estimation of the ultimate point found from the half-set-point from a single oscilation and PI parameters are determined according to ZN tuning rules.Further the controller is activated in closed loop as described in figure 5 so the system will reach the desired set point.
Figure 5: Block diagram for the autotuning procedure
The amplitude of the relay test signal in this case can be rather small(2-10% of the control effort).Tests conducted during this work show that three oscilations are usalyy enough to complete the fine estimation of the ultimate point.The table below shows the parametrs for each phase.
Phase |
Kp |
Ti |
1 |
12.73 |
16.66 |
2 |
14.32 |
20.83 |
Phase |
Kp |
Ti |
1 |
12.73 |
16.66 |
2 |
14.32 |
20.83 |
System 2
System 3
Table 5: Autotuning results, phases 1&2
The simulation results of the two phases are shown in figure
Phase 1
Phase 1
Phase 2
Phase 2
Figure 6: PI controller autotuning procedure
VI RELAY FEEDBACK METHOD APPLIED TO mDTG
mDTG is used as a strap down inertial sensor and its rotor is held at its null position by force balancing through the permenant magnet toquer assembly.mDTG loop electronics is used to process the pick off output by sensing the rotor angular deflection from null position and then torque back the rotor to the null position.The general transfer function of mDTG is given below.
2
Figure 7:Block schematic of mDTG basic loop electronics
The simulation results are plotted below and here also relay feedback autotuning gives better perforance
Figure 8:Step response comparison
WN
…………. (12)
2 2
S + WN
2
Where WN =Nutation Frequency
The basic plant is constituted with mDTG dynamic mix and its scale factors,preamplifier,demodulator,2Nnotch filter,power amplifier,and readout resistor.The preamplifier is configured as two stages for implementing the offset correction.Phase sensitive rectification is used to convert the
pickoff output to DC signal. Figure 9:Output under relay control
Tabl 6:Performance comparison
VI CONCLUSION
Auto tuning procedure based on Astrom and Hagglunds method was presented.This method is useful to determine the ultimate point in closed loop.Here in this procedure there is no need of any prior knowledge about the system.The only design parameter to be set is the relay signal amplitude,which in inherently small.While limiting the amplitude for stability reasons,this method automatically gives oscilation in the ultimate frequency.
Practically, when no prior knowledge exists, initial tuning must be conducted until reaching the set point, where fine tuning will take place. In linear systems the parameters from the initial and fine tuning are expected to be similar. In nonlinear systems, retuning should be made for every change in the set point. For time-variant systems, retuning can be made every specific time frame in which system parameter change.
ACKNOWLEDGMENT
WE would like to thank all the faculties of IISU,Thiruvananthapuram and teachers and students of Electronics and Communication Engineering Department, Younus College of Engineering and technology for their guidance and support and facilities extended to us.
REFERENCES
[1]S.Levy,S.Korotkin,K,Hadad.A.Ellenbogen,M.Arad,Y.Kadmon, PID autotuning using Relay feedback27th Convention Of Electrical And Electronics Engineers In Israel,IEEE,2012.-
LIANG Xi-ming, LI Shan-chun, HASSAN A B, A novel PID controller tuning method based on optimization technique, School of Information Science and Engineering, Central South University, Changsha 410083, China,2010.
-
Gustavo H. M. de Arruda and Péricles R. Barros, Relay-Based Gain and Phase Margins PI Controller Design, in vol. 52, no. 5, Oct. 2003.
-
K. J. Aström and T. Hägglund, Automatic tuning of simple regulators with specifications on phase and amplitude margins, Automatica, vol. 20, no. 5, pp. 645651, 1984.
-
W. K. Ho, C. C. Hang, and J. H. Zhon, Performance tnid gain and phase margins of well known PI tuning formulas, IEEE Trans. Contr. Syst. Technol., vol. 3, pp. 245248, Mar. 1995.
TUNING METHOD GAIN MARGIN
PHASE MARGIN
SETTLING TIME
MSE
RF
8.48
39.6
61.5
0.0071
BP
7.93
38.6
62
0.0088
TUNING METHOD
GAIN MARGIN
PHASE MARGIN
SETTLING TIME
MSE
RF
8.48
39.6
61.5
0.0071
BP
7.93
38.6
62
0.0088
-
K. J. Aström and F. Hägglund, PID Controllers: Theory, Design and Tuning, 2nd ed. Research Triangle Park, NC: Instrument Society of America, 1995.
-
David I. Wilson Relay-based PID Tuning, Department of Electrical & Electronic Engineering, Feb/March, 2005.
-
Roland Longchamp,and Yves Piguet, Closed-Loop estimation of Robustness Margins by the Relay Method ,June 1995.
-
Robert J. G. Craig, Theory Of Operation Of A Two-Axis- Rate Gyro Ieee Transactions On Aerospace And Electronic Systems Vol. 26, No. 5 September 1990.