Abstract

IEC TS 62898-3-5:2026 provides technical requirements for the hardware in the loop testing (HIL), commissioning testing, and periodic testing that allows the verification, and quantification of the performance of microgrid monitoring, control, and energy management systems (MMCS and MEMS). This document applies to MMCS and MEMS developed for grid-connected or isolated microgrids, or both. This document includes the following aspects:
- general technical requirements;
- hardware in the loop testing;
- commissioning testing;
- periodic testing.

Status
Published
Publication Date
10-Jun-2026
Current Stage
PPUB - Publication issued - 60 Publication
Start Date
11-Jun-2026
Due Date
03-Jul-2026
Completion Date
03-Jul-2026

Buy Documents

Technical specification

IEC TS 62898-3-5:2026 - Microgrids - Part 3-5: Technical requirements - Testing for microgrid monitoring, control, and energy management systems

ISBN:978-2-8327-1277-1
Release Date:11-Jun-2026
English language (34 pages)
sale 15% off
Preview
sale 15% off
Preview

IEC TS 62898-3-5:2026 is an IEC Technical Specification for testing microgrid monitoring, control, and energy management systems (MMCS and MEMS). It specifies hardware in the loop testing (HIL), commissioning testing, and periodic testing for MMCS and MEMS used in grid-connected or isolated microgrids, or both. Engineers, system integrators, owners, and test labs use it to verify and quantify how these systems perform in practice.

What does IEC TS 62898-3-5:2026 specify?

IEC TS 62898-3-5:2026 specifies how to test MMCS and MEMS, from laboratory validation through on-site commissioning and later periodic checks. It focuses on the major functions that keep a microgrid operating and on the test conditions needed to measure them consistently.

The document is organized into:

  • Clause 1 - Scope
  • Clause 2 - Normative references
  • Clause 3 - Terms and definitions
  • Clause 4 - General technical requirements
  • Clause 5 - Laboratory testing
  • Clause 6 - Commissioning testing
  • Bibliography

In practice, this structure helps a reader move from the definition of the system, to the testing environment, to the detailed test cases for MEMS and MMCS, and then to on-site and follow-up testing.

What are the key requirements of IEC TS 62898-3-5:2026?

IEC TS 62898-3-5:2026 sets requirements for the test environment, the information the designer must supply, the test methods, and the way results are judged. The most important point is that the document ties each major MMCS or MEMS function to a reproducible test with observable outputs and recorded metrics.

Test environment and equipment information

Clause 4 requires the test environment to stay within the environmental range specified by the microgrid designer. If conditions move outside that range, the test is stopped and restarted after adjustment. This matters because the results must be repeatable and not biased by outside noise from earlier tests.

Clause 4 also requires technical documents for relevant devices, interface details, connection requirements, cable and grounding needs, and any supplementary devices needed for testing. In practice, this means the test team needs enough engineering detail to connect the real equipment or simulation models without guessing.

Laboratory testing with HIL and P-HIL

Clause 5 allows pure laboratory equipment, HIL, or a combination of both. It also describes P-HIL, where real power hardware is added to the loop. HIL is used for pre-deployment validation, while P-HIL is used when real power behavior and interface effects must be observed.

The document explains that a microgrid lab should include physical or simulated DER such as GENSET, PV, wind turbine, EES, loads, protective relays, a communication network, and real MMCS and MEMS control layers. This matters because the test setup must represent the interactions that the control system will see in service.

Communication and simulation model

Clause 5 states that HIL testing uses real communication media such as fibre optic, twisted wires, and wireless connections, and it can use IEC 60870-5-104, Modbus TCP, MQTT, OPC UA, or the IEC 61850 series. The exchanged data include telemetry, telecontrol signals, tele-adjustment commands, and telecontrol commands. For the reader, that means the test must cover not only control logic but also the data paths the system actually uses.

The simulation model is described in three layers: communication, state machine, and electrical behavior. This is important because the test must represent how the device is reached, how it changes state, and how the electrical system responds.

MEMS tests

Clause 5 gives HIL tests for MEMS functions including dispatch optimization, forecast, demand-side integration, and flexible resource management. Each test has initial conditions, a procedure, and evaluation criteria.

For example, dispatch optimization checks whether MEMS can generate scheduling curves and economic results from forecast and operating data. Forecast testing covers load, power generation, and electricity price forecast functions, with evaluation based on acceptable error or deviation metrics such as MAE, MSE, and RMSE. In practice, this tells a buyer or integrator that the MEMS must not only compute a plan, but also prove its prediction quality.

Demand-side integration and flexible resource management test how MEMS interacts with demand response, controllable loads, and ESS behavior. The reader should look for these tests if the system must respond to market prices, load classes, or resource imbalance.

MMCS tests

Clause 5 also defines HIL tests for MMCS, including anti-maloperation locking and alarm, frequency/voltage regulation in isolated mode, device switching, operation mode transition, active/reactive power control, islanding detection, black start, and an end-to-end HIL test before commissioning.

These tests matter because they check the control system’s core operating duties: alarm handling, breaker control, mode changes, synchronization, power control, islanding response, and black-start behavior. The document requires recorded data such as timing, waveforms, setpoints, breaker states, and deviations, so results can be compared against acceptance limits.

Commissioning and periodic testing

Clause 6 moves the testing into the installed microgrid. Commissioning must be carried out or overseen by a qualified engineer, and a report must document the results and parameter settings used. Calibration and inspection include grounding, isolation devices, wiring polarity, current transformer and potential transformer ratios, and conformance to design drawings.

Clause 6 also requires periodic testing based on an agreed written procedure, with frequency set by the manufacturer, system integrator, or microgrid owner. Periodic tests and type tests are also triggered by software updates or hardware changes. In practice, this gives organizations a way to confirm that MMCS and MEMS still work correctly after service changes.

What terms does IEC TS 62898-3-5:2026 define?

  • microgrid - A group of interconnected loads and distributed energy resources with defined electrical boundaries that acts as a single controllable entity and can operate in island mode.
  • MMCS - Microgrid monitoring and control system, a computer- or PLC-based system for real-time monitoring and control of a microgrid.
  • MEMS - Microgrid energy management system, the system that operates and controls energy resources and loads.
  • HIL - Hardware in the loop simulation, where real control hardware is tested against a real-time simulation.
  • P-HIL - Power in the loop testing, which adds real power hardware to HIL for higher-fidelity electrical behavior.
  • POC - Point of connection, the reference point where the user’s electrical facility connects to the electric power system.
  • EES system - Electrical energy storage system, a grid-connected storage installation that extracts, stores, and injects electrical energy.

Who uses IEC TS 62898-3-5:2026?

IEC TS 62898-3-5:2026 is used by microgrid designers, control-system manufacturers, test laboratories, system integrators, owners, and operators. It is also relevant to utilities and buyers who need to verify that MMCS and MEMS can perform before commissioning and during later operation.

In practice, these users apply the document to lab validation, factory acceptance-style testing, on-site commissioning, alarm and protection checks, control tuning, and periodic verification after software or hardware changes. It is especially relevant for microgrids serving critical facilities such as hospitals, data centres, and remote communities.

Which standards are used with IEC TS 62898-3-5:2026?

IEC TS 62898-3-5:2026 normatively references IEC TS 62898-3-2 for MEMS requirements and IEC TS 62898-3-4 for MMCS requirements. Those parts provide the functional basis that this testing document verifies.

Other standards named in the text support specific parts of the testing approach, including IEC 60364-8-82 for prosumer installation, IEC 62786 and EN 50549-10 for electrical model and connection context, IEEE 1547-2018 for interconnection context, and IEC 63406 for converter-based generating units in dynamic analysis. Communication and system behavior also refer to IEC 60870-5-104, IEC 61850, MQTT, Modbus TCP, OPC UA, and related references.

What does the IEC TS 62898-3-5:2026 document contain?

IEC TS 62898-3-5:2026 contains a detailed set of laboratory and field test methods, not just high-level requirements. It includes initial conditions, step-by-step procedures, and evaluation criteria for each MEMS and MMCS test case.

The document uses one comparison table to link testing objectives to HIL or P-HIL, and it uses many figures to show microgrid architectures and test flowcharts. These figures guide the setup of dispatch, forecast, demand response, switching, mode transition, islanding detection, and black-start tests.

It also contains guidance on the simulation model structure, the data exchanged during testing, and the records to keep during commissioning and periodic testing. For a reader planning test work, this is the part that shows how to build the setup, what to record, and how to judge the outcome.

Buy Documents

Technical specification

IEC TS 62898-3-5:2026 - Microgrids - Part 3-5: Technical requirements - Testing for microgrid monitoring, control, and energy management systems

ISBN:978-2-8327-1277-1
Release Date:11-Jun-2026
English language (34 pages)
sale 15% off
Preview
sale 15% off
Preview

Get Certified

Connect with accredited certification bodies for this standard

IMQ S.p.A. (Certification)

Italian electrical product certification.

ACCREDIA Italy Verified

SLG Prüf- und Zertifizierungs GmbH

German testing and certification body.

DAKKS Germany Verified

UL Solutions

Global safety science company with testing, inspection and certification.

ANAB United States Verified

Sponsored listings

Frequently Asked Questions

IEC TS 62898-3-5:2026 is a technical specification published by the International Electrotechnical Commission (IEC). Its full title is "Microgrids - Part 3-5: Technical requirements - Testing for microgrid monitoring, control, and energy management systems". This standard covers: IEC TS 62898-3-5:2026 provides technical requirements for the hardware in the loop testing (HIL), commissioning testing, and periodic testing that allows the verification, and quantification of the performance of microgrid monitoring, control, and energy management systems (MMCS and MEMS). This document applies to MMCS and MEMS developed for grid-connected or isolated microgrids, or both. This document includes the following aspects: - general technical requirements; - hardware in the loop testing; - commissioning testing; - periodic testing.

IEC TS 62898-3-5:2026 provides technical requirements for the hardware in the loop testing (HIL), commissioning testing, and periodic testing that allows the verification, and quantification of the performance of microgrid monitoring, control, and energy management systems (MMCS and MEMS). This document applies to MMCS and MEMS developed for grid-connected or isolated microgrids, or both. This document includes the following aspects: - general technical requirements; - hardware in the loop testing; - commissioning testing; - periodic testing.

IEC TS 62898-3-5:2026 is classified under the following ICS (International Classification for Standards) categories: 29.240.01 - Power transmission and distribution networks in general. The ICS classification helps identify the subject area and facilitates finding related standards.

IEC TS 62898-3-5:2026 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.

Standards Content (Sample)

Contents

  • 1 Scope
  • 2 Normative references
  • 3 Terms and definitions
  • 3.1 microgrid
  • 3.2 microgrid monitoring and control system
  • 3.3 microgrid energy management system
  • 3.5 renewable energy resource
  • 3.6 low voltage
  • 3.7 medium voltage
  • 3.8 point of connection
  • 3.9 power conversion system
  • 3.10 state of charge
  • 3.11 hardware in the loop simulation
  • 3.12 commissioning test
  • 3.13 periodic test
  • 3.14 generator set
  • 3.15 photovoltaic cell
  • 3.16 electrical energy storage system
  • 3.17 battery energy storage system
  • 3.18 flywheel energy storage system
  • 3.19 maximum power point tracking
  • 4 General technical requirements
  • 4.1 Test environment
  • 4.2 Equipment information
  • 5 Laboratory testing
  • 5.1 General requirements of laboratory testing
  • 5.2 HIL test for MEMS
  • 5.3 HIL test for MMCS
  • 6 Commissioning testing
  • 6.1 General requirements of commissioning testing
  • 6.2 Calibration and inspection
  • 6.3 Commissioning test for MEMS
  • 6.4 Commissioning test for MMCS
  • 6.5 Periodic testing
  • Bibliography

INTRODUCTION Microgrid monitoring, control, and energy management systems (MMCS and MEMS) are essential components of microgrid infrastructure designed to monitor, control, and optimize the operation of a microgrid. These systems play a central role in managing distributed energy resources (DERs), ensuring grid stability, and improving the efficiency and reliability of energy supply within a microgrid.

The major functions of MMCS and MEMS include the control of device switching, islanding detection, operation modes switching, active/reactive power control, black-start, antimaloperation locking, local power quality control, frequency/voltage regulation, tertiary control, etc.

Microgrid systems are often deployed in critical applications, such as hospitals, data centres, and remote communities. Providing a comprehensive testing for the MMCS and MEMS system is critical to ensure the microgrid system's stability, even during unexpected events or disturbances. A standardized set of testing procedures could facilitate the wide adoption of standard MMCS and MEMS functional and performance requirements by vendors and utilities while reducing the cost of design and construction.

The IEC 62898 series is intended to provide comprehensive guidelines and technical requirements for microgrid projects, however, there are some standardization gaps left in this series.

IEC TS 62898-3-1 mainly covers the requirements for microgrid protection, protection systems for microgrids and dynamic control for transient and dynamic disturbances in microgrids. IEC TS 62898-3-2 covers the technical requirements for microgrid energy management systems (MEMS), but this document does not specify any testing procedures required for MEMS. IEC TS 62898-3-3 covers the self-regulation of dispatchable loads of microgrids. IEC TS 62898-3-4 covers the technical requirements for the monitoring and control of microgrids, however, it does not specify any testing items or procedures for MMCS. The IEC TS 62898-3-5 aims to provide a standardized testing procedure for MMCS and MEMS' major functions.

This document covers the technical requirements for the hardware in the loop testing (HIL), commissioning testing, and periodic testing that allows the verification, and quantification of the performance of microgrid monitoring, control, and energy management systems. The HIL test aims to verify the performance of MMCS and MEMS major functions and provide a set of metrics to quantify the minimum requirements of different functions. This test requires the interaction between both systems and the real-time simulation environment. HIL testing is recommended for MW level or larger microgrids.

The commissioning test provides the performance evaluation of both systems' major functions on-site. This test will be conducted after MMCS and MEMS are installed and ready for operation. Certain testing items will show actual performances of the MMCS and MEMS such as voltage deviation, harmonics, step power response, voltage/current evolution, power management efficiency, etc.

The periodic function test is set to verify certain functions' performance after a certain time of operation. The test interval is specified by the manufacturer, system integrator, or microgrid owner.

1 Scope

This part of IEC 62898, which is a Technical Specification, provides technical requirements for the hardware in the loop testing (HIL), commissioning testing, and periodic testing that allows the verification, and quantification of the performance of microgrid monitoring, control, and energy management systems (MMCS and MEMS). This document applies to MMCS and MEMS developed for grid-connected or isolated microgrids, or both.

This document includes the following aspects:

  • general technical requirements;
  • hardware in the loop testing;
  • commissioning testing;
  • periodic testing.

2 Normative references

The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.

IEC TS 62898-3-2, Microgrids - Part 3-2: Technical requirements - Energy management systems IEC TS 62898-3-4, Microgrids - Part 3-4: Technical requirements - Microgrid monitoring and control systems

3 Terms and definitions

For the purposes of this document, the following terms and definitions apply. ISO and IEC maintain terminology databases for use in standardization at the following addresses:

  • IEC Electropedia: available at https://www.electropedia.org/
  • ISO Online browsing platform: available at https://www.iso.org/obp

3.1 microgrid

<in an electric power system> group of interconnected loads and distributed energy resources with defined electrical boundaries forming a local electric power system at distribution voltage levels, that acts as a single controllable entity and is able to operate in island mode, no matter if it is standalone or grid-connected Note 1 to entry: This definition covers both (utility) distribution microgrids and (customer owned) facility microgrids. [SOURCE: IEC 60050-617:2017 [30], 617-04-22, modified – "either grid-connected or island mode" has been changed to " in island mode, no matter if it is standalone or grid-connected"]

3.2 microgrid monitoring and control system

MMCS computer or PLC based system performing real time monitoring and control of microgrid Note 1 to entry: In a large grid or large microgrid, such a system is also designated by PMS (power monitoring system).

3.3 microgrid energy management system

MEMS system operating and controlling energy resources and loads of the microgrid [SOURCE: IEC 60050-617:2018 [30], 617-04-25] 3.4 distributed energy resources, pl.

DER, pl.

generators (with their auxiliaries, protection and connection equipment), including loads having a generating mode (such as electrical energy storage systems), connected to a low-voltage or a medium-voltage network [SOURCE: IEC 60050-617:2017 [30], 617-04-20]

3.5 renewable energy resource

RES non-fossil energy resource such as wind, solar, hydropower, biomass, geothermal, etc

3.6 low voltage

LV set of voltage levels used for the distribution of electricity and whose upper limit is generally accepted to be 1 000 V for alternating current [SOURCE: IEC 60050-601:1985 [31], 601-01-26]

3.7 medium voltage

MV any set of voltage levels lying between low and high voltage Note 1 to entry: The boundaries between medium- and high-voltage levels overlap and depend on local circumstances and history or common usage. Nevertheless, the band 30 kV to 100 kV frequently contains the accepted boundary.

[SOURCE: IEC 60050-601:1985 [31], 601-01-28]

3.8 point of connection

POC reference point on the electric power system where the user's electrical facility is connected [SOURCE: IEC 60050-617:2009 [30], 617-04-01]

3.9 power conversion system

PCS device that can control the charging and discharging process of a battery storage system, and carry out AC-DC conversion

3.10 state of charge

SOC available capacity in a battery pack or system expressed as a percentage of rated capacity [SOURCE: ISO 12405-4:2018 [32], 3.20]

3.11 hardware in the loop simulation

HIL hardware in the loop testing provides real time simulation for MMCS and MEMS

3.12 commissioning test

test on an item carried out on site, to prove that it is correctly installed and can operate correctly [SOURCE: IEC 60050-411:1996 [38], 411-53-06, modified – “a machine or equipment” has been replaced with “an item” and “the correctness of installation and operation” has been replaced with “that it is correctly installed and can operate correctly”.]

3.13 periodic test

periodic function test that is set to verify certain functions' performance after a certain time of operation

3.14 generator set

GENSET combination of an engine and electrical generator used to produce electrical power, typically as a backup or portable source of power

3.15 photovoltaic cell

PV device in which the photovoltaic effect is utilized [SOURCE: IEC 60050-521:2002 [32], 521-04-34]

3.16 electrical energy storage system

EES system grid-connected installation with defined electrical boundaries, which can include civil engineering works, energy conversion equipment and related ancillary equipment, comprising at least one electrical energy storage, which extracts electrical energy from an electric power system, stores this energy internally in some manner and injects electrical energy into an electric power system Note 1 to entry: The EES system is controlled and coordinated to provide services to the electric power system operators and to the electric power system users.

Note 2 to entry: In some cases, an EES system can require an additional energy source (non-electrical) during its discharge, providing more energy to the electric power system than the energy it stored (compressed air energy storage is a typical example where additional thermal energy is required). [SOURCE: IEC 60050-631:2023 [34], 631-01-02]

3.17 battery energy storage system

BESS electrical energy storage system with an accumulation subsystem based on batteries fitted with secondary cells Note 1 to entry: Battery energy storage systems include flow battery energy systems. [SOURCE: IEC 60050-631:2023 [34], 631-01-03]

3.18 flywheel energy storage system

FESS electrical energy storage system with an accumulation subsystem based on kinetic energy stored in a rotating mass (flywheel) Note 1 to entry: Flywheel energy storage systems store energy mechanically by accelerating a rotor (flywheel) to a high speed and maintaining the energy in the system as rotational energy. When energy is needed, the rotational energy is converted back into electrical energy.

Note 2 to entry: Flywheel systems typically include a motor-generator unit, power electronics, vacuum enclosure, and magnetic or mechanical bearings.

3.19 maximum power point tracking

MPPT maximum power point of the PV array control strategy whereby the power conditioner input voltage is always at or near the maximum power point of the PV array [SOURCE: IEC 61683:1999 [35], 3.8, modified – “maximum power point of the PV array” has been added.]

4 General technical requirements

4.1 Test environment

The test environment shall be maintained within an acceptable range of environmental conditions specified by the microgrid designer. If the environment conditions are out of the specified range, the test shall be terminated and restart after the adjustment of the test environment. Each test shall be carried out in a reproducible environment, in which other tests have not created bias or noise.

The testing environment is defined as ranging from a fully simulated environment to a field installed equipment. An acceptable simulation environment to test MMCS and MEMS is composed of each component of the microgrid which can be simulated with a HIL approach or with field installed equipment.

4.2 Equipment information

Microgrid designers shall provide technical documents for every relevant device and equipment and connection requirements necessary to conduct the tests. These documents shall include functional state diagrams, API specifications and connection requirements (if applicable). Any specific requisites, such as the need for shielded cables or specialized cables, maximum cable length, filter usage, and proper grounding connections, shall be clearly outlined. Designers shall supply any supplementary devices or equipment essential for test procedures. Given that a microgrid comprises multiple equipment units, each unit shall be accompanied by relevant technical documentation, such as qualification records, safety certifications, type test reports, and production test reports.

5 Laboratory testing

5.1 General requirements of laboratory testing

5.1.1 General

The test can be performed with pure lab equipment, HIL or a combination of both. HIL testing is generally used for pre-deployment validation of products. Prior to the deployment of MMCS and MEMS, HIL testing can simulate diverse grid conditions (such as faults, sudden load changes, etc.) through real-time simulation to validate the response logic and performance of controllers, protection devices, and power electronic equipment in advance. The simulator enables real-time parameter adjustments and emulation of unexpected events, allowing observation of the microgrid's dynamic response to mitigate operational risks in practical scenarios. By conducting closed-loop testing in laboratory environments, HIL eliminates the high risks and costs associated with on-site commissioning. HIL is used in combination with real test in a laboratory for factory acceptance tests (FATs).

5.1.2 Test object

Microgrid control consists of two key components, with requirements described in IEC TS 62898-3-4 and in IEC TS 62898-3-2. The control devices shall communicate and exchange information as specified in IEC TS 62898-3-2 and IEC TS 62898-3-4.

5.1.3 Testbed

To develop these control systems, algorithms shall be first simulated and then implemented into the control layers. A microgrid lab with real DER is mandatory to test and validate the full control system. However, some devices can be fully simulated, partially simulated (e.g. only a DER controller physically present) or fully physical (e.g. the microgrid controller or the entire DER being tested).

A microgrid lab shall include:

  • DER such as GENSET, PV, wind turbine, EES and flexible loads, physical or simulated;
  • capacitor banks, fixed loads with active/reactive power, and non-linear loads, physical or simulated;
  • devices causing inrush currents (motors, transformers, etc.), physical or simulated;
  • low voltage or medium voltage grid for system dynamics, physical or simulated;
  • protective relays, physical or simulated;
  • a physical communication network;
  • a disconnection system to test resilience, using physical setup or simulation;
  • real MMCS and MEMS control layers for validation.

MMCS and MEMS should be fully tested in the lab before commissioning. However, the lab can lack all necessary DER, loads, and scenarios encountered throughout a microgrid's lifespan. Conducting comprehensive multi-event combinations and automatic non-regression tests in a single lab can be costly and challenging.

HIL or P-HIL, or both, enable virtual extension of the lab to simulate a wide range of DER, induce failure conditions, and develop digital twins of customer microgrid setups. However, HIL alone is not enough. Real lab conditions are needed to fine-tune models before using HIL or P- HIL. DER manufacturers validate and test models during type tests, which can then be used for creating microgrid digital twins.

HIL and P-HIL provide the following capabilities:

  • integration of DER which are either unavailable or available in limited quantities in the lab;
  • execution of automated tests with various event combinations to validate system robustness;
  • pre-commissioning testing to enhance quality and reduce commissioning time. The complementary of lab, HIL and P-HIL is depicted in Figure 1:

NOTE On the left, pure lab testing. On the right lab testing combined with simulated DER (HIL or P-HIL, or both). Figure 1 – HIL and P-HIL enable to test and validate MEMS and MCMS beyond lab limitations

5.1.4 Equipment

HIL for microgrids involves connecting a real control system to a simulation of each component of the microgrid, including real communication protocols, enabling full system testing in real time. This technique has been widely used in engineering fields such as robotics, power electronics, and automotive systems. HIL simulation is used for the development and testing of complex real-time embedded systems incorporating electrical emulation of sensors and actuators. This principle is described in Figure 2.

Figure 2 – HIL applied for microgrids P-HIL extends the HIL concept by incorporating power in the loop, allowing physical testing of electrical devices such as GENSET, BESS, and loads. As shown in Figure 3, the control system and BESS, along with the communication protocol, are real, while the rest of the microgrid is simulated. The interface between the real DER and simulated assets is managed through closed-loop power amplifier.

Figure 3 – P-HIL applied for microgrids In P-HIL, real DER can be emulated using DC or AC banks that replicate the behaviour of a PV plant, GENSET, or the main electrical grid. The validation of microgrid control systems can leverage P-HIL simulation, given that the accuracy of the models is sufficient. This approach involves interconnecting real system components with simulated ones, enabling real-time simulation, as the simulated components shall exhibit the same temporal behaviour as their real counterparts.

While P-HIL cannot replace a real microgrid lab since real measurements are essential, it enhances the lab's capabilities by accommodating a larger variety of DER, more complex grid configurations, and transient events, such as grid frequency variations and voltage surges/drops. This technology is crucial for validating solutions on a wider range of scenarios.

5.1.5 Comparison between HIL and P-HIL

HIL simulation involves connecting a real controller to a simulated environment that runs in real time. The power system is modeled in software, while the controller hardware operates as it would in a real-world scenario.

Advantages of HIL simulation include:

  • Safety: No real power is involved, making it safe for testing edge cases and fault conditions.
  • Cost-effective: Eliminates the need for physical power components, reducing setup and operational costs.
  • Repeatability: Scenarios can be precisely replicated for debugging and validation.
  • Scalability: Easy to simulate large or complex systems without physical constraints. Disadvantages of HIL simulation include:
  • Lack of physical dynamics: Cannot capture real-world electrical phenomena like harmonics, switching transients, or electromagnetic interference.
  • Limited realism: The absence of actual power hardware can lead to oversimplified assumptions.
  • Interface constraints: Requires accurate modeling of I/O interfaces, which can introduce errors if not properly configured.

P-HIL extends HIL by incorporating real power hardware into the loop. A power interface (amplifier) connects the simulated environment to physical power components, such as inverters or loads.

Advantages of P-HIL simulation include:

  • High fidelity: Captures real electrical behavior, including non-linearities and dynamic responses.
  • Validation of power interfaces: Enables testing of power electronics and their interaction with the controller.
  • Real-world insights: Provides a more accurate representation of how the controller will perform in the field.

Disadvantages of P-HIL simulation include:

  • Complexity: Requires careful synchronization between simulation and hardware to avoid instability.
  • Cost and infrastructure: Involves expensive power amplifiers and safety measures.
  • Risk: Potential for hardware damage if faults are not properly managed.
  • Latency and stability: Time delays in the power interface can affect accuracy and system stability.

The choice between HIL and P-HIL depends on the testing objectives (see Table 1):

Table 1 – Testing objectives Objective Recommended method Algorithm development and debugging HIL Controller validation under fault conditions HIL Testing power electronics and real-world dynamics P-HIL Final-stage validation before deployment P-HIL

...