Application of Rapid Prototyping Tools For A Hierarchical Microgrid Control Implementation
Application of Rapid Prototyping Tools For A Hierarchical Microgrid Control Implementation
T for a
Hierarchical Miccrogrid Control Impllementation
George Messinis1, Fran Gonzalez-Espiin2, Virgilio Valdivia2, Judy Rea3, Darren Mollagghan3, Nikos Hatziargyriou1
1
School of Electrical and Compuuter Engineering, National Technical University of Athhens, Athens, Greece
[gmessinis, nh]@power.ece.ntua.gr
2
United Teechnologies Research Center-Ireland, Cork, Ireland
[email protected], [email protected]
3
Beaufort Research - HMRC, University College Cork, Cork, Irelannd
[J.Rea, d.mollaghan]@ucc.ie
Abstract— This paper presents the app plication of rapid microgrid includes electronically interfaced renewable sources.
prototyping tools for the implementation n of hierarchical In that regard, the algorithmss needed to control the power
microgrid automation and control algoorithms in Real- electronics converters to integraate renewables in the grid are of
Time/FPGA platforms based on a Triphase 3PExpress and a a paramount importance.
National Instruments CompactRIO platforms (NI cRIO). A three
layer hierarchical control structure has been n used, where the On the other hand, the automation
a and control of the
primary layer implements the power electroonics controls, the microgrid as an integrated sysstem needs the legacy SCADA
secondary layer implements the microgrrid controls and systems to move forward towards the smart grid concept. In
automation strategy, and the tertiary layeer implements the that regard, the Microgrid Centtral Controller (MGCC) [3] is of
energy management algorithms. The rapid prototyping tools a high relevance in microgridss control and operation since it
offer an environment that allows the implementation of concepts can act as the main controller (combining secondary and
related to the coordination, control and management
m of a tertiary controls) [4], [5] annd also as an aggregator and
Commercial and Industrial (C&I) building miicrogrid to provide microgrid interface to the griid in the case of decentralized
high quality power to both the local load ds (e.g. harmonic control.
distortion) and the grid (e.g. ancillary servicess). The microgrid is
composed of a three-phase diesel generator, a Li-ion battery, a The paper will focus on the application of rapid prototyping
motor-generator test rig for wind turbine emu ulation, a load bank tools in the microgrid and disstributed generation domain. A
with resistive, inductive and capacitive passiive load emulation real life microgrid that will be described later will be used as a
capabilities, a resistive load bank, a fault emullator and a back to test case. Communications, data d acquisition and microgrid
back converter to emulate loads or distributed resources. control algorithms will be implemented in the selected
platform. Using rapid prototyping tools with high level
Keywords—microgrid; rapid prototyping; FPGA;
F hierarchical programming languages (to freee the users from the burden of
control; Building Management System low level time consuming programming)
p will enable the
I. INTRODUCTION development and testing of com mplex applications in reasonable
times. These capabilities will improve the microgrid control
Microgrids [1], [2] are gaining more andd more importance both at the academic research level and also at the industrial
during the last years and pose a new paraadigm in electrical microgrid application level.
power systems. Microgrid control structures are
a of high interest
and have the potential of developing new power
p and energy The use of rapid prototypinng tools together with Real Time
management, both on the centralized and a decentralized Hardware in the Loop (RT-HIL) testing will reduce the gap
generation domains. Typical electrical generation in a between academia and industtry by effectively reducing the
time it takes for academic reseearch to be realized in industrial
Authorized licensed use limited to: Qatar University. Downloaded on September 18,2024 at 15:07:46 UTC from IEEE Xplore. Restrictions apply.
MicroGrid
Grid PM
Modbus PM PM PM PM PM
Analog
Wind Load
AC Load
Controller Diesel Turbine
DC Emulator Bank
Emulator
CAN LiIon
Fig. 2. Hierarchical control structure of the microgrid Battery
mode the loads are served by both the grid and the DERs. In Digital
case of grid disturbances or power outage the microgrid can
FPGA RT
operate in island mode, supplying the loads from the diesel Analog
RS485 DIOs Algorithms Algorithms
PLC
Inputs
generator, batteries and available RES until the grid is restored.
CompactRIO
Furthermore, several control strategies have been implemented
to allow for seamless transition between modes of operation, Fig. 3. Schematic diagram of the communications implemented in the
including reconfigurable control algorithms in the battery microgrid.
system for PQ control, grid forming and droop operation [13]. The NI cRIO system used in this project (NI cRIO-9081)
In the grid connected mode, both the diesel generator and the includes NI9225 modules for directly measuring 230V/50Hz
battery inverter work as current sources following the voltage waveforms, which allows for measuring all of the nodes
and frequency of the grid, while P and Q set points can be sent voltages in the microgrid. In order to measure the currents in
externally by the user or by secondary and tertiary control the nodes, LEM modules have been installed that convert the
algorithms. The diesel generator local controller may receive input signals to a ±10V signal which is then acquired by the
active power, power factor, voltage and frequency set points high resolution acquisition module NI9239. Even though the
using the Modbus protocol (via RS-485). The battery inverter main purpose of these modules is monitoring, the acquired
(a 15kVA bidirectional power electronics converter) receives signals can be used for control purposes if needed. The system
active and reactive power set points using CAN while it can also includes the digital input/output NI9375 module and the
also send information on the status of the device, state of analog output NI9264 module. Those modules are used for
charge of the battery, etc... that can be useful for secondary and interfacing other devices like PLCs, controllers or relays. In
tertiary control levels. In the islanded mode, both the diesel order to add industrial communications to the microgrid test
generator and the battery inverter can play the role of the grid rig, the modules NI9871 (for RS-485) and NI9862 (for CAN)
forming unit. Apart from one of them working as a voltage have been also installed. The communications schematic
source and the other as a current source, they can be operated diagram is shown in Fig. 3.
in parallel by means of voltage droop control. In that case the
two sources can share the microgrid load according to their The NI cRIO has been used to emulate a MGCC for
droop curves. Power sharing in this case may be optimized in hierarchical control of the Microgrid [13]. Secondary control
order to avoid generator overload and underload. An external layer and automation strategies have been programed in NI
PLC system (with Modbus and CAN communication cRIO by using the LabView environment.
capabilities) is used for data logging, protection and
Communications play an important role in the microgrid, as
interlocking and as an HMI.
well as in the secondary and tertiary control layers. The
III. IMPLEMENTATION OF THE MGCC IN A RAPID communications infrastructure has been used for coordinating
PROTOTYPING TOOL and controlling the distributed resources. In that regard, a fast
and secure implementation is of a high importance. In the
In order to implement control strategies and prove concepts microgrid setup, CAN is used for communicating with the
for microgrid management, the trend is to use rapid prototyping Triphase Battery Inverter system. Moreover, Modbus via RS-
tools that allow easy hardware integration and software 485 is used for communicating with multi-meters and the
development [15], [16]. One powerful solution that allows Diesel Generator controller.
controlling the heterogeneous devices in a microgrid is the NI
cRIO reconfigurable control platform. NI cRIO is based on a IV. IMPLEMENTATION OF THE PRIMARY CONTROL LAYER ON
reconfigurable embedded system architecture that includes a A RAPID PROTOTYPING TOOL ENVIRONMENT
Real-Time Processor running a Real-Time Operating System The schematic of the battery storage system is shown in
(RTOS) and a FPGA interconnected internally by a PCI bus. Fig. 4.
LabView graphical environment is used to program both, the
Real-Time Processor and the FPGA. Complex procedures that The bidirectional DC/DC stage is composed of three
need a high computational effort are implemented on the converters as the one shown in Fig. 5. The three converters are
FPGA, while procedures that need to be deterministically connected in parallel, so the interleaved PWM technique can be
executed are implemented on the Real Time module. In used to reduce the switching ripple.
addition, the NI cRIO offers a reconfigurable chassis to The three phase inverter is based on the well-known VSI
connect I/O modules requested by the application (e.g. topology with an output LCL filter, as shown in Fig. 6 [17].
industrial communication modules or digital and analogue
input and outputs).
Authorized licensed use limited to: Qatar University. Downloaded on September 18,2024 at 15:07:46 UTC from IEEE Xplore. Restrictions apply.
detailed zoom depicted in Fig. 10 shows the voltage seamless
transition managed by the secondary control layer.
Authorized licensed use limited to: Qatar University. Downloaded on September 18,2024 at 15:07:46 UTC from IEEE Xplore. Restrictions apply.
300
200
100
Voltage (V)
Voltage (V)
0
-100
-200
-300
Fig. 9. Experimental test showing an islanding transition while battery inverter Fig. 12. Experimental waveforms of the battery system: Step-down in the
is discharging at 8 kW rate at AC terminals. Diesel genset, battery inverter battery current (charging mode) (0A to -5A). From top to bottom and left to
and resistor bank are connected to the microgrid. right: Grid current, Grid voltage, Grid current and reference detail and DC-link
voltage.
300
200 REFERENCES
100 [1] Hatziargyriou, "Microgrids: Architectures and Control", Wiley-IEEE
Press, January 2014.
Voltage (V)
0
[2] R. Masiello and S. Venkata, "Microgrids: There May Be One in Your
-100 Future [Guest Editorial]", IEEE Power and Energy Magazine, 2013, vol.
11, pp. 14-93.
-200
[3] A. G. Tsikalakis, and N. D. Hatziargyriou. "Centralized control for
-300 optimizing microgrids operation. "IEEE Power and Energy Society
General Meeting, 2011.
7 113.88 113.9 113.92 113.94 113.96 113.98 114
Islanding Time (s) [4] V. Valdivia-Guerrero, F. Gonzalez-Espin, N. C. P. Chang, and R. Foley,
THD v = 2.3 % THD v = 2.6 %
"Modular d-q frame small-signal modelling and analysis of a microgrid"
15th European Conference in Power Electronics and Applications
Fig. 10. Detail of islanding transition while battery inverter is discharging at 8
(EPE), 2013, pp. 1-10.
kW rate at AC terminals. Diesel genset, battery inverter and resistor bank are
[5] F. Gonzalez-Espin, N. Chang, V. Valdivia-Guerrero, and R. Foley,
connected to the microgrid.
"Configuration, modelling and control of a microgrid for commercial
buildings application" European Conference on in Power Electronics
and Applications (EPE), 2013, pp. 1-10.
[6] J. MacDonald, P. Cappers, D. Callaway, and S. Kiliccote, "Demand
Response Providing Ancillary Services," presented at the Grid-Interop
Forum 2012.
[7] Madureira, A. G., and JA Pecas Lopes. "Coordinated voltage support in
distribution networks with distributed generation and microgrids." IET
Renewable Power Generation 3.4 (2009): pp. 439-454.
[8] Laaksonen, Hannu, Dmitry Ishchenko, and Alexandre Oudalov.
"Adaptive Protection and Microgrid Control Design for Hailuoto
Island", pp. 1-8.
[9] Mackiewicz, R. E. "Overview of IEC 61850 and Benefits." Power
Systems Conference and Exposition, 2006. PSCE'06. 2006 IEEE PES.
IEEE, 2006.
[10] Strasser T., Andrén F., Bründlinger R., Garabandic D., "Integrating PV
into the Smart Grid-Implementation of an IEC 61850 Interface for Large
Scale PV Inverters", in proceeding of EU PVSEC 2013, October, 2013.
[11] "Energy efficiency in buildings," European Commission, 2012.
[12] N. Pogaku, M. Prodanovic, and T. C. Green, "Modeling, Analysis and
Testing of Autonomous Operation of an Inverter-Based Microgrid,"
IEEE Transactions on Power Electronics, vol. 22, pp. 613-625, 2007.
[13] J. M. Guerrero, J. C. Vasquez, J. Matas, L. G. de Vicuna, and M.
Fig. 11. Experimental waveforms of the battery system: Step-up in the
battery current (discharging mode) (0A to 5A). From top to bottom and left to Castilla, "Hierarchical Control of Droop-Controlled AC and DC
right: Grid current, Grid voltage, Grid current and reference detail and DC-link Microgrids-A General Approach Toward Standardization," IEEE
voltage. Transactions on Industrial Electronics, vol. 58, 2011, pp. 158-172.
[14] ESB, "Conditions governing connection to the distribution system," ed.
Time delays associated to the communication protocols Ireland: ESB, 2006.
have been measured to allow the design of stable secondary [15] S. Buso, T. Caldognetto. "Rapid prototyping of digital controllers for
microgrid inverters", IECON 2013-39th Annual Conference of the IEEE
control algorithms on the MGCC. A Triphase 3PExpress has Industrial Electronics Society, 2013.
been used to implement the power electronics controls. [16] P. Kotsampopoulos, N. Hatziargyriou, B. Bletterie, G. Lauss, T.
Modeling of the storage system and experimental results of the Strasser, “Introduction of advanced testing procedures including PHIL
control implementation are shown to validate the correct for DG providing ancillary services”, 39th Annual Conference of the
IEEE Industrial Electronics Society IECON, Vienna, November 2013.
operation of the microgrid. [17] M. Liserre F. Blaabjerg, and S. Hansen, "Design and control of an LCL-
filter-based three-phase active rectifier," IEEE Transactions on Industry
Applications, vol. 41, 2005, pp. 1281-1291.
Authorized licensed use limited to: Qatar University. Downloaded on September 18,2024 at 15:07:46 UTC from IEEE Xplore. Restrictions apply.