Design of PID Controller For Automatic Voltage Regulator and Validation Using Hardware in The Loop Technique
Design of PID Controller For Automatic Voltage Regulator and Validation Using Hardware in The Loop Technique
Design of PID Controller For Automatic Voltage Regulator and Validation Using Hardware in The Loop Technique
Abstract
The digital excitation control system (DECS) used for brushless synchronous generators has recently become popular
owing to its ease of operation and flexibility to manage the operating parameters to achieve good maintenance of the
output terminal voltage at the rated value. The latest industrial digital automatic voltage regulator (AVR) is used in
the forward path of DECS. This paper addresses the issues of the DECS that are responsible for deviating the
terminal voltage from the rated value and consequently making the power system unstable. A solution to the issue is
provided using a new method of tuning the PID controller that eases the impact of discretization on the terminal
voltage and keeps the DECS compatible with industrial standards. The controller designed in this way will be useful
to maintain the terminal voltage of the synchronous generator to enhance the stability of the power system to which
many renewable energy sources are interconnected. The proposed method improves the performance of the excitation
control system by reducing the overshoot from 75% to 16%. The simulation results are presented using an industrial
standard model of the excitation control system to demonstrate and compare the performance of the existing with the
new digital excitation system. The newly designed controller was tested and validated using the “hardware in the
loop” (HITL) technique.
Keywords: Automatic Voltage Regulator, PID Controller, Excitation Control System, Brushless Synchronous
generator
1. Introduction
Synchronous generators excitation control systems are designed with controllers that allow a lot of
setting flexibility to the operator to achieve an optimum generator terminal voltage response. Such
controllers are still the choice of the industry owing to their high reliability, fast responses, simplicity and
robustness [1]. However, owing to the advancements in “embedded system technology,” the trend of
upgrading the existing to a digital excitation control system (DECS) is in progress [2] that offers an easy
setting flexibility to the operator. A comparison with the popular existing PID controller tuning method [3]
explains the advantages and disadvantages of each method and implements the digital PID controller
using the pole zero cancellation method.
The role of ECS in the optimum performance of the generator is very important in terms of
maintaining the parameters of the controller at an adequate level, which ensures the dynamic behavior in
the generator terminal voltage, reactive power, and the power factor to keep the system stable. The
guidelines to the designer in regard the range of the performance indexes such as rise time, overshoot,
settling time, gain margin, phase margin, and bandwidth of the controller used for the excitation control
The rest of the paper is organized as follows: Section 2 explains the IEEE standard excitation control
system model. Section 3 explains the methods used for the PID controller tuning with the aim to comply
with the IEEE standard performance indexes. Section 4 presents the application example with the
simulation results and discussion. Section 5 explains the experimental work used to validate the proposed
method and finally, the paper is concluded in Section 6.
A “Type AC 5A” excitation control system model was used for the study and is shown in Fig 1. It is a
simplified model for brushless excitation systems with a rotating rectifier.
The voltage regulator of this system is supplied from a source such as a permanent magnet generator,
which benefits the regulator by not affecting its source voltage in case of disturbance. Unlike the other ac
models, this model uses loaded rather than open circuit exciter saturation data in the same manner as that
used for the dc models. This is a simplified model that is widely used in the industry because detailed data
for the system is not required for such implementation.
The model shown in Fig. 1 was modified to fit the PID controller and is shown in Fig 2. The design
methodology proposed in this paper includes the calculation of the PID gains, i.e., the proportional gain
(KP), integral gain (KI) and derivative gain (KD) using the transfer function of the standard model to
facilitate this. The model in Fig. 2 is reduced to Fig. 3.
In the reduced model, the generators terminal voltage is the output, the generator and exciter blocks are
reduced to the first order model. Kg is the forward gain of the generator, and tg and te are the generator
and exciter time constants, respectively. The controller used to control the terminal voltage of the
generator is a PID controller [2-3].
78 International Journal of Smart Grid and Clean Energy, vol. 7, no. 2, April 2018
The open-loop transfer functions of the generator, exciter, and the PID controller are Gg(s), Ge(s) and
Gc(s), respectively and their relationship is given in (1), (2), and (3). The closed loop transfer function
“TEC(s)” of the reduced model shown in Fig. 3 is given in (4).
KG
Gg ( s) (1)
t g s 1
1
Ge ( s) (2)
te s 1
KI
Gc ( s) K P sK D (3)
s
Gc ( s). G g ( s) . Ge ( s)
TEC ( s) (4)
1 Gc ( s). G g ( s) . Ge ( s)
The PID controller Gc(s) needs to be tuned using the appropriate values of the gains, i.e., KP, KI, and
KD, in a manner such that the controller complies with the IEEE standard performance indexes.
Fig. 4. The Bode response of the IEEE standard model and the reduced model of the excitation control system.
To ensure the design of the PID controller used for the excitation control system will work in the
bounded region to maintain the dynamic stability using the reduced model, the bode response of the IEEE
standard and reduced model of a typical excitation control system is given in Fig. 4 as a reference to fix
the scale of the design in terms of the phase margin because a reduced model gives an increased phase
margin when compared to the IEEE standard model.
Deepak M Sajnekar et al.: Design of PID controller for automatic voltage regulator … 79
Index Value
Overshoot ≤ 20%
Gain Margin ≥ 10 db
The range of the performance indexes of the excitation control system with small signal dynamics are
given in Table 2. The values reported in this table vary in the specified range on the basis of the capacity
of the generators and their loading conditions.
To achieve good performance indexes for the controller, as specified in the standard, the controller
design requires an appropriate tuning of the tepid controller. The tuning strategies used for analog PID
controllers currently used in the industry are the pole placement method (direct design approach) and the
pole zero cancellation method. Both have pros and cons in terms of the laborious mathematical
calculation and flexibility in the custom design. These methods are popular in the industry owing to their
capability of converging to a solution even when the precise data for the synchronous generator is not
available [3]. This paper considers cancelling zeros using the poles method, which ensures quick design
and excludes the mathematical complexities by avoiding trial and error, as presented in subsection A. The
proposed method used to tune the discrete PID controller is presented in subsection B. In this method, a
previously selected analog method was extended with modification to moderate the effect of
discretization by considering a suitable sampling time. To support the applicability of the modification to
the design, a fact was considered in the method, i.e., ‘a discrete PID controller and a continuous PID
controller behave the same when the sampling time chosen is very small’.
Table 2. The IEEE standard performance index with a small signal dynamic.
Index Value
Rise time ≤1s
Bandwidth 0.3 to 12 Hz
required dynamics. This makes the selected method suitable for the rotary excitation system application
[3].
The open-loop system transfer function of the reduced model is shown in Fig. 3 with a typical assumption
of Kg = 1 and given in (5).
K K
K D s 2 P s I
Gc ( s)G ( s ) K D K D
(5)
1 1
t g t e s s s
t g t e
The numerator and the denominator of the transfer function (5) have two zeros and three poles, and the
cancellation of two zeros with two farthest poles of (5) is achieved by ensuring the equation in (6).
2 KP K
s s I
KD KD
1 (6)
s 1 s 1
t g t e
KP K 1
s2 s I s s 1 (7)
KD K D t g t e
KP K t g te
s2 s I s2 s 1 (8)
KD KD
t g te t g te
Equating the LHS and RHS of equation (8) gives an expression for KP in (9) and KI in (10).
t g te
KP KD (9)
t g te
KD
KI (10)
t g te
Submitting KP and KI in (5) results in (11).
KD
Gc ( s).G( s) (11)
t g te s
The closed loop transfer function of the system in Fig. 3 using (11) as in (12).
KD
G c ( s)G ( s) t g te s
(12)
1 G c ( s )G ( s) 1
KD
t g te s
The time response of the system in (12) to a unit step input is given in (13).
Deepak M Sajnekar et al.: Design of PID controller for automatic voltage regulator … 81
KD
t (13)
tgte
C (t) 1 e
If “tr” is the required rise time for the design, it is defined as the time required for the response to rise
from 10% to 90% of its final value and the resulting expression for KD is given by (14).
t g te
KD . ln 9 (14)
tr KG
Derivative gain KD in (14) depends on the plant parameters tg, te, and the desired rise time “tr.” An
observation shows that the controller design is aims for a faster response with the proposed method
making the settling time (ts), percentage peak overshoot (%MP), gain margin (G.M) and phase margin
(P.M) comply with the IEEE standard range, as shown in Table 1 and Table 2.
Fig. 5. A comparison between the typical analog and the digital ECS’s step response. The discrete controller was
tuned using a non-modified analog gain.
T (1 z 1) (1 z 1)
Gc z K P KI KD (15)
2.(1 z 1) T
However, if the gains calculated using the existing method described earlier are directly used to
implement the discrete PID controller, the system becomes unstable as described by the step and bode
response of a typical excitation control system in Figs. 5 and 6.
The proposed method aims to tune the discrete PID controller with a large sampling time with a limit
of being two times shorter than the lowest exciter time constant such that the design complies with the
IEEE standard.
82 International Journal of Smart Grid and Clean Energy, vol. 7, no. 2, April 2018
The existing PID controller in (3) is discretized by replacing the integral term “1/s” with “T(1 + z −
1)/2(1 − z − 1)” using trapezoidal integration and a derivative term “s” with (1 − z − 1)/T, where T is the
sampling time. Thus, the discretized controller equation is shown in (15).
Fig. 6. A comparison between the typical analog and the digital ECS’s bode response. The discrete controller was
tuned using a non- modified analog gain.
K T
K PD K P I
2
(19)
K
ID
K T
I
K
D
K DD
T
Equating the RHS of (17) and (18) gives discrete PID gains KPD, KID, and KDD in (19) in terms of
Deepak M Sajnekar et al.: Design of PID controller for automatic voltage regulator … 83
The rotary excitation system of 500 KVA, 440 V, and a 50 Hz brushless synchronous generator, whose
manufacturer’s data are reported in Table 3, was used to demonstrate the methods described in Section 3.
Table 3. The parameters of the brushless synchronous generator used in this study.
Fig. 8. The 10% step increment and decrement response of the generator terminal voltage when the AVR consists of
the proportional controller only.
The solution for this problem is the use of a PI controller or PID controller. The disadvantage of the PI
controller is the integral gain that decreases the system’s dynamics and increases the phase delay and
consequently decreases the system’s stability. The proposed controller used for this system is the PID
controller whose derivative element compensates the system’s deceleration caused by an integral element.
The excitation system is an analog type and provided with an automatic volatage regulator (AVR) that
84 International Journal of Smart Grid and Clean Energy, vol. 7, no. 2, April 2018
has a proportional “P” controller in the forward path. This generator’s output terminal voltage (PU)
response for a 10% step increment and a 10% step decrement of the reference voltage is given in Fig. 8
and confirms the terminal voltage does not reach a steady state and consequently makes the power system
unstable.
The data sheet provided by the manufacturer does not contain the value of the exiter time constant;
therefore, for the design of the controller, the exciter time constant was approximated as one sixth of the
generator time constant, as proposed in [3].
The step and bode response of the reduced system model in (20) was compared with the IEEE standard
model (Fig. 2) and is shown in Figs. 9 and 10, respectively.
Fig. 9. A comparison of the reduced and IEEE standard model’s step response for the analog PID controller.
Fig. 10. A comparison of the reduced and IEEE standard model’s bode response for the analog PID controller.
Deepak M Sajnekar et al.: Design of PID controller for automatic voltage regulator … 85
Fig. 11. The 10% step increment and decrement voltage response of the capacitive loaded generator.
It can be seen that the method ensures the compatibility of an analog PID controller with the IEEE
standard performance indexes, as reported in Tables 1 and 2. The performance of the controller was
further investigated by connecting it to a loaded generator and the load connected to the generator was
capacitive.
The generator terminal voltage output response (PU) for a 10% step increment and 10% step
decrement to the reference voltage is shown in Fig 11, and the response for a 100% load connection at t =
12 s and rejection at t = 13 s is shown in Fig. 12, which confirms the stable and an improved operation of
the generator with the controller.
Fig. 12. The connection of load for 100% transient from offline to online.
Fig. 13. The unit step response of the digital excitation control system (DECS).
Fig. 15. The 10% step increment and decrement voltage response of the generator with a capacitive load.
Fig. 16. Load rejection: 100% Transient for online to offline transition.
Deepak M Sajnekar et al.: Design of PID controller for automatic voltage regulator … 87
The step and bode response of the designed controller used for the DECS after adjusting the value of
the forward gain KG to 0.045 is shown in Fig. 13 and 14, which show a rise time of 0.6 s, overshoot of
15.8%, settling time of 3.45 s, G.M of 18 db and P.M of 102. The values of the performance indexes
comply with the IEEE standard and thus, the stability of the system is ensured
The performance of the digital PID controller was further investigated by connecting it to a generator
with a capacitive load. The generator terminal voltage output response (PU) for a 10% step increment and
10% step decrement to the reference voltage is given in Fig. 15 and the response when a 100% load was
rejected at t = 20 s and reconnected at t = 22 s is shown in Fig. 16.
The DS1104 controller board is real-time hardware based on PowerPC technology, and its set of I/O
interfaces allows the controller board to be used for developing controllers for various systems with a
real-time interface (RTI). The function models on the DS1104 controller board can be easily configured
and run by inserting the blocks into a simulink block diagram and generating the model code via a
simulink coder.
The real-time model is compiled, downloaded, and started automatically in the MATLAB platform.
The experimental setup for the HITL experiment used to test the designed digital PID controller in the
excitation control system is given in Fig. 17. The discretized PID controller was built in a Dspace 1104
controller board using a RTI with the MATLAB simulink and the continuous model of the plant (i.e., the
exciter and the generator) was built in the PC.
Fig. 17. The experimental setup with DS 1104 in the loop to test the designed DECS.
Thus, the scheme takes the shape of hardware in the loop (HITL) and follows the IEEE standard model
given in Fig. 2. When the digital PID controller is used in the excitation system of 500 KVA, 440 V, and
a 50 Hz synchronous generator, the time response of this generator is shown in Fig. 18 wherein, the
terminal voltage reaches a steady state at t = 8 s and the stability of the system is ensured.
This experiment validates the method used for the design of the DECS. A comparison of the
performance of the PID controller with gains calculated using the proposed modified method and the non-
modified gains calculated using the cancelling poles by zeros method demonstrates the improvement in
the performance of the controller with the modified method, as reported in Table 4.
88 International Journal of Smart Grid and Clean Energy, vol. 7, no. 2, April 2018
Fig. 18. The generator output terminal voltage using the DECS.
6. Conclusions
A PID controller has been designed using the proposed method to ensure the terminal voltage of a
synchronous generator at the rated value. The use of the existing PID gains in the proposed modified
method makes the design process not only simple but also ensures that the design of the discrete PID
controller is IEEE compliant. The designed PID controller used in the AVR of a digital excitation system
was tested and validated using the HITL technique. An investigation shows that the sampling time for the
design may not necessarily be very small; thus, expensive processors can be avoided. However, the
drawback of this method is that the customized and a competitive design of the digital PID controller
cannot be ensured for the excitation system owing to the complexity involved in the design. This
complexity is a result of the conversion of the discrete PID controller, sample and hold block into an s
domain using the Pade approximation, which makes the order of the closed loop transfer function very
high. This work can further be extended for a competitive and customized design of the digital PID
controller with the aim of automating the tuning process of the PID controller in the digital excitation
system.
References
[1] Andrea B, Federico D, Marco I, Adriano P, Renato P. A feedback linearization scheme for the control of synchronous
generators. Electric Power Components and Systems. 2012; 40(16): 1842-1869.
Deepak M Sajnekar et al.: Design of PID controller for automatic voltage regulator … 89
[2] Godhwani, Basler MJ. A digital excitation control system for use on brushless excited synchronous generators. IEEE
Transactions on Energy Conversion. 1996; 11(3): 616-620.
[3] Kiyong K, Richard CS. Tuning a PID controller for a digital excitation control system. IEEE Transactions on Industry
Applications. 2005; 41(2): 485-492.
[4] IEEE Guide for Identification, Testing, and Evaluation of the Dynamic Performance of Excitation Control Systems, IEEE
STD 421.2, 2014.
[5] IEEE Recommended Practice for Excitation System Models for Power System Stability Studies, IEEE STD 421.5, 2005.
[6] IEEE Standard Definitions for Excitation Systems for Synchronous Machines, IEEE STD 421.1, 2007.
[7] IEEE Guide for Preparation of Specification for Excitation Systems, IEEE STD 421.4, 1990.
[8] Abul RH, Sadrul Ula AHM. Design and implementation of a fuzzy controller based automatic voltage regulator for a
synchronous generator. IEEE Transactions on Energy Conversion. 1994; 9(3): 550-557.
[9] Mahit G, Necati D. Fuzzy control of brushless excitation system for steam turbogenerators. IEEE Transactions on Energy
Conversion, 2010; 25(3): 844-852.
[10] Longquan X, Jianhua W, Cong P. Backstepping control of digital excitation systems based on neural network. IEEE
International Conference on Industrial Technology. 2008; 1-5.
[11] Saptarshi D, Indranil P. On the mixed H2/H∞ loop shaping trade-offs in fractional order control of the AVR system. IEEE
Transactions on Industrial Informatics, 2014; 10(4): 1982-1991.
[12] Jiang H, Yin X, Chen Y, Li D. Optimal excitation control of synchronous generator based on adaptive ants colony algorithm.
Third International Conference on Natural Computation, 2007, IEEE. 3: 3-7.
[13] Chuan Y, Ganesh KV, Keith C. AIS-Based coordinated and adaptive control of generator excitation systems for an electric
ship. IEEE Transactions on Industrial Electronics. 2012; 59(8): 3102-3112.
[14] Saavedra-Montes AJ, Ramos-Paja CA, Orozco-Gutierrez ML, Cifuentes WA, Ramirez-Scarpetta JM. Calculation of excitation
system controllers to fulfill IEEE standard performance indexes. Electric Power Systems Research, 2012; 89: 196-203.
[15] Kiyong K, Pranesh R, Jeffrey AB. Self-Tuning of the PID controller for a digital excitation control system. IEEE Transactions
On Industry Applications, 2010; 46(4): 1518-1524.
[16] Konara KMSY, Kolhe ML. Pitch controller modeling for wind turbine power regulation using feed forward control
strategies. In: Proc. of Power and Energy Engineering Conference (APPEEC), IEEE PES Asia-Pacific. 2015; 1-5.
[17] Patidar NP, Kolhe ML, Tripathy NP, Sahu B, Sharma A, Nagar LK, Azmi AN. Optimized design of wide-area PSS for
damping of inter-area oscillations. In: Proc. of IEEE 11th International Conference on Power Electronics and Drive
Systems.2015; 1172-1177.
[18] Panda S, Patidar NP, Mohan K. Cascaded PD-PI controller for active power frequency control of two-area multi-units power
system. IEEE International Conference Power and Renewable Energy (ICPRE), 2016.
[19] Michal L, Miroslaw W. Sampling rate impact on the tuning of PID controller parameters. Intl Journal of Electronics and
Telecommunications. 2016; 62(1).
[20] Akshay S, Nagar LK, Patidar NP, Kolhe ML, Nandanwar SR, Puranik VN, Singh VK. Minimizing uncertainties with
improved power system stability using wide area fuzzy-2 logic based damping controller. In: Proc. of IEEE 3rd International
Conference on Computational Intelligence & Communication Technology (CICT), 2017; 1-5.