Automatic control method and system for microgrid grid-connected / off-grid switching
By monitoring the grid frequency and phase angle difference within the sliding window using a multi-electric energy measurement and control device, the problem of uncertain mode switching status during microgrid grid-to-grid switching is solved, achieving more reliable and timely grid-connection control and reducing the risk of misjudgment.
Patent Information
- Application Number
- CN202611480508.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-17
AI Technical Summary
In the existing microgrid grid-connected/off-grid switching control, the mode switching status confirmation is uncertain, and communication delays and the dynamic process of the phase-locked loop make it difficult to judge the synchronization stability. The timing of closing is difficult to determine accurately, which increases the risk of exceeding the limits of synchronization parameters.
By monitoring the grid frequency through multiple energy measurement and control devices, and using the frequency difference change trend and phase angle difference within the sliding window to determine the mode switching of the energy storage converter and the synchronous stability assessment, the timing of closing is predicted by combining the mechanical action time of the circuit breaker, thus forming a continuous closed-loop control.
It improves the reliability and timeliness of microgrid grid connection, reduces the risk of misjudgment caused by communication anomalies and mechanical action delays, and ensures the accuracy of grid connection synchronization conditions.
Smart Images

Figure CN123121806A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of microgrid operation control technology, and in particular to an automatic control method and system for microgrid grid-connected / off-grid switching. Background Technology
[0002] With the increasing integration of distributed photovoltaic, energy storage, and charging loads into microgrids, microgrids typically need to possess the capabilities of grid-connected operation, off-grid operation during faults, and reconnection after grid restoration. For systems where energy storage converters provide off-grid power, the energy storage converters need to switch from grid-connected mode to grid-connected mode after grid restoration, and synchronization parameters such as voltage, frequency, and phase angle need to be checked at the grid connection point. In existing control systems, the converter mode switching status can be confirmed through inter-controller communication feedback, and the closing conditions are determined based on the quasi-synchronization threshold. However, communication delays, packet loss, and the dynamic process of the phase-locked loop (PLL) within the energy storage converter can cause uncertainty in the timing of mode switching completion. During PLL convergence, the phase angle difference may briefly enter the allowable range during damped oscillations, and single-moment threshold judgments cannot distinguish between instantaneous satisfaction and stable synchronization. Furthermore, there is a mechanical action time between receiving the closing command and the contact closing of the grid-connected smart circuit breaker, during which frequency differences may still cause phase angle changes, increasing the risk of exceeding synchronization parameter limits during actual closing. Therefore, there is still room for improvement in the existing on-grid and off-grid switching control in terms of mode status confirmation, synchronization stability judgment, and closing timing determination. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this manual provides an automatic control method and system for switching microgrids between on-grid and off-grid.
[0004] In a first aspect of this disclosure, an automatic control method for switching between grid and off-grid operations in a microgrid is provided, comprising: The multi-electric energy measurement and control device monitors the grid-side frequency. When the frequency deviation exceeds the allowable range, it sends a trip command to the grid-connected smart circuit breaker, and the microgrid switches to off-grid operation, while the energy storage converter enters grid-connected mode. After the power grid is restored, the multi-energy measurement and control device continuously confirms that the voltage parameters on the grid side meet the restoration conditions through multiple power frequency cycles. The multi-energy measurement and control device sends a command to the energy storage converter to switch from grid-connected mode to grid-following mode, calculates the difference between the microgrid side frequency and the grid side frequency on a cycle-by-cycle basis, and determines whether the energy storage converter has completed the mode switch based on the changing trend of the frequency difference. After confirming the mode switch is completed, the multi-electric energy measurement and control device collects the phase angle difference between the grid side and the microgrid side cycle by cycle within the sliding window. It simultaneously performs threshold condition judgment and stability condition judgment on the phase angle difference within the window. The threshold condition is that the synchronous parameters of each sampling point within the window are within the threshold range. The stability condition is that the dispersion of the phase angle difference within the window is lower than the stability threshold. Once the threshold condition and the stability condition are simultaneously satisfied, a closing command is sent to the grid-connected intelligent circuit breaker.
[0005] As an optional solution, determining whether the energy storage converter has completed mode switching based on the changing trend of the frequency difference includes: the multi-energy measurement and control device stores the frequency difference of multiple consecutive power frequency cycles in a buffer, divides the frequency difference sequence in the buffer into a first half and a second half, and calculates the arithmetic mean of the absolute values of each data point in the first half and the arithmetic mean of the absolute values of each data point in the second half, respectively; when the ratio of the arithmetic mean of the second half to the arithmetic mean of the first half is less than a set ratio, it is determined that the energy storage converter has completed mode switching.
[0006] As an optional approach, the dispersion of the phase angle difference within the window is the standard deviation of the phase angle difference of each sampling point within the sliding window relative to the arithmetic mean of the phase angle differences within the window.
[0007] As an optional solution, the multi-electric energy measurement and control device starts a timeout timer after sending the instruction to switch from grid-connected mode to grid-connected mode; if the mode switch is not determined to be completed within the timeout threshold, the instruction is resent and the timer is reset to zero; after the number of consecutive resentments exceeds the resentment limit, the grid connection process is terminated and off-grid operation is maintained.
[0008] As an optional solution, the capacity of the sliding window is not less than the power frequency cycle number corresponding to the damped oscillation period in the phase-locked loop step response of the energy storage converter.
[0009] As an optional approach, the confirmation that the grid-side voltage parameters meet the recovery conditions for multiple consecutive power frequency cycles includes: determining that the grid has recovered when three conditions are continuously met within K consecutive power frequency cycles: the grid-side voltage amplitude deviation does not exceed the set percentage of the rated value, the grid-side frequency deviation does not exceed the frequency threshold, and the three-phase voltage imbalance does not exceed the imbalance threshold; if any condition is not met, the continuous count is reset to zero; K is determined according to the protection reclosing time setting value of the connected line.
[0010] As an optional solution, the multi-energy measurement and control device achieves power supply switching through two sets of high-speed relays; the control coils of the two sets of high-speed relays are respectively connected to the voltage of different phases of the power grid; when the power grid is energized, the two sets of high-speed relays are energized and their normally open contacts are closed, and the multi-energy measurement and control device is powered by the power grid; when the power grid is de-energized, the two sets of high-speed relays are de-energized and their normally closed contacts are closed, and the multi-energy measurement and control device is powered by the microgrid.
[0011] As an optional solution, after the closing command is issued, the multi-energy measurement and control device continuously monitors the synchronization parameters before the contacts of the grid-connected smart circuit breaker close; when the frequency difference or phase angle difference exceeds the corresponding threshold, a blocking command is issued to stop the closing.
[0012] As an optional approach, before issuing the closing command, the multi-energy measurement and control device predicts the phase angle difference at the closing time based on the current frequency difference and the mechanical action time of the circuit breaker; when the predicted phase angle difference exceeds the phase angle threshold, the issuance of the closing command is postponed.
[0013] In a second aspect of this disclosure, an automatic control system for microgrid grid-to-grid switching is also provided, including multiple energy measurement and control devices, a grid-connected smart circuit breaker, and an energy storage converter; The multi-electric energy measurement and control device is used to monitor the grid-side frequency. When the frequency deviation exceeds the allowable range, it sends a trip command to the grid-connected smart circuit breaker to enable the microgrid to switch to off-grid operation and enable the energy storage converter to enter the grid-connected mode. The multi-energy measurement and control device is also used to confirm, through multiple consecutive power frequency cycles, that the voltage parameters on the grid side meet the recovery conditions after the power grid has been restored. The multi-electric energy measurement and control device is also used to send a command to the energy storage converter to switch from grid-connected mode to grid-following mode, calculate the difference between the microgrid side frequency and the grid side frequency on a cycle-by-cycle basis, and determine whether the energy storage converter has completed the mode switch based on the changing trend of the frequency difference. The multi-electric energy measurement and control device is also used to collect the phase angle difference between the grid side and the microgrid side cycle by cycle within a sliding window after the confirmation mode switch is completed. The phase angle difference within the window is simultaneously judged by threshold condition and stability condition. The threshold condition is that the synchronous parameters of each sampling point within the window are within the threshold range. The stability condition is that the dispersion of the phase angle difference within the window is lower than the stability threshold. The multi-energy measurement and control device is also used to issue a closing command to the grid-connected smart circuit breaker after the threshold condition and the stability condition are simultaneously satisfied.
[0014] This application confirms the actual mode switching status of the energy storage converter by monitoring the changing trend of the frequency difference between the microgrid side and the grid side, and uses a sliding window to jointly judge the synchronization parameter threshold and the stability of the phase angle difference. This allows the grid connection control process to determine the closing timing based on the actual convergence state of the phase-locked loop. At the same time, it combines the mechanical action time of the circuit breaker to predict the phase angle difference at the moment of contact closure. This forms a continuous closed loop with the mode switching confirmation, synchronization stability judgment and actual closing action, reducing the risk of misjudgment caused by communication anomalies, transient oscillations of the phase-locked loop and mechanical action delays. Under the premise of ensuring grid connection synchronization conditions, it improves the reliability and control timeliness of the microgrid's recovery from off-grid status to grid connection.
[0015] Other features and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart of an automatic control method for switching between grid connection and off-grid operation in a microgrid according to one embodiment of this application.
[0018] Figure 2 This is a schematic diagram illustrating the convergence trend determination of the PCS mode switching frequency difference in one embodiment of this application.
[0019] Figure 3 This is a schematic diagram illustrating the dual-condition determination of sliding window synchronization stability in one embodiment of this application.
[0020] Figure 4 This is a schematic diagram of circuit breaker closing phase angle prediction in one embodiment of this application.
[0021] Figure 5 This is a schematic block diagram of an automatic control system for switching between on-grid and off-grid operations in a microgrid, as described in this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0023] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this disclosure.
[0024] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0025] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0026] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0027] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0028] This method is applicable to grid-connected distributed multi-energy microgrid systems, where photovoltaic power generation systems, energy storage systems, electric vehicle charging systems, grid-connected converter systems, and AC / DC smart distribution systems coexist within the same microgrid architecture. The microgrid is connected to the 0.4kV mains bus via a grid-connected smart circuit breaker. It operates in grid-connected mode during normal operation and can operate independently after grid failure. The implementing entity for this method can be a multi-energy measurement and control device, referring to a centralized measurement and control device installed on the grid-connected smart circuit breaker side. This device collects three-phase voltage signals from both the grid side and the microgrid side of the circuit breaker via voltage transformers and communicates with the power conversion system (PCS) via Ethernet. The PCS operates in grid-connected mode in off-grid mode and in grid-connected mode.
[0029] In one embodiment, the power supply of the multi-energy measurement and control device is automatically switched via two sets of high-speed relays J01 and J02. The control coil of J01 is connected to the A-phase voltage of the grid side, and the control coil of J02 is connected to the C-phase voltage of the grid side, respectively, and is directly excited by different phases. When the grid is energized, J01 and J02 are simultaneously energized, and their normally open contacts close, supplying power to the multi-energy measurement and control device from the grid side of the circuit breaker; when the grid loses power, the circuit breaker trips, and J01 and J02 are released due to the loss of voltage in their control coils, and their normally closed contacts close, supplying power to the multi-energy measurement and control device from the microgrid side.
[0030] The purpose of having two sets of relays connected to different phases is to ensure that even in the event of a single-phase open-circuit fault, one set of relays maintains the correct operating state, reducing the probability of power outages. The contact actuation time of the high-speed relays does not exceed 3 milliseconds, and the filter capacitors of the power module inside the multi-energy measurement and control device maintain continuous power supply during this period. The voltage vector data collected by the multi-energy measurement and control device is transmitted via Ethernet, with voltage-acquired data sent first, and the transmission delay not exceeding 0.05 milliseconds, ensuring that the voltage vector tracking speed is controlled within half a power frequency cycle.
[0031] The implementation process of the method described in this application will be explained in detail below with reference to specific embodiments.
[0032] Figure 1 This is a flowchart of an automatic control method for switching between grid and off-grid in a microgrid, according to an embodiment of this disclosure. Figure 1 As shown, the method may include the following steps.
[0033] In step 11, the multi-electric energy measurement and control device monitors the grid-side frequency. When the frequency deviation exceeds the allowable range, it sends a trip command to the grid-connected smart circuit breaker, and the microgrid switches to off-grid operation, while the energy storage converter enters the grid-connected mode.
[0034] In some embodiments, the multi-energy measurement and control device continuously collects the three-phase voltage on the grid side and calculates the grid-side frequency through zero-crossing detection or discrete Fourier transform. When the grid-side frequency deviation exceeds the allowable range, for example, when the frequency is higher than 50.5Hz or lower than 49.5Hz, the multi-energy measurement and control device determines that the grid power supply is abnormal and issues a trip command to the grid-connected smart circuit breaker. After the circuit breaker trips, the microgrid switches to off-grid operation, and the PCS immediately enters grid-connected mode, providing a synchronization reference for the photovoltaic power generation system and electric vehicle charging system in the microgrid using its autonomously generated voltage and frequency references. At the same time, relays J01 and J02 are released, and the power supply to the multi-energy measurement and control device is automatically switched to the microgrid side.
[0035] In step 12, multiple consecutive power frequency cycles confirm that the grid-side voltage parameters meet the recovery conditions.
[0036] In some embodiments, when the power grid resumes power supply, voltage reappears on the grid side, J01 and J02 re-engage, and the power supply to the multi-energy measurement and control device switches back to the grid side. The multi-energy measurement and control device begins to collect the three-phase voltage on the grid side cycle by cycle, calculating the voltage amplitude, frequency, and three-phase voltage imbalance. To eliminate interference from brief trial power supply during the automatic reclosing process of the power grid, the multi-energy measurement and control device confirms that the grid-side voltage parameters meet the recovery conditions within K consecutive power frequency cycles. Specifically, the grid-side voltage amplitude deviation does not exceed a set percentage of the rated value, for example, 10%; the grid-side frequency deviation does not exceed a frequency threshold, for example, 0.5Hz; and the three-phase voltage imbalance does not exceed an imbalance threshold, for example, 5%.
[0037] The power grid is considered restored if all three conditions are met continuously for K consecutive cycles. If any condition is not met, the continuous count is reset to zero and the accumulation restarts. K is determined based on the protection reclosing time setting of the connected line. Specifically, it is the reclosing time of the upstream line plus a safety margin, divided by the duration of a single power frequency cycle (20 milliseconds) and rounded up. For example, if the upstream line reclosing time is set to 0.8 seconds and the safety margin is 0.2 seconds, K is 50 cycles, corresponding to a 1-second confirmation window.
[0038] Step 13: Determine whether the energy storage converter has completed the mode switch. Specifically, the multi-energy measurement and control device sends a command to the energy storage converter to switch from grid-connected mode to grid-following mode, calculates the difference between the microgrid-side frequency and the grid-side frequency cycle by cycle, and determines whether the energy storage converter has completed the mode switch based on the changing trend of the frequency difference.
[0039] In some embodiments, after grid restoration confirmation, the multi-energy measurement and control device sends a command to the PCS via Ethernet to switch from grid-connected mode to grid-following mode. Upon receiving the command, the PCS's internal phase-locked loop (PLL) begins tracking the grid frequency, and the PCS output frequency gradually approaches the grid frequency from its autonomous reference. Since Ethernet communication may experience delays or packet loss, the actual time when the PCS completes the mode switch is uncertain for the multi-energy measurement and control device. Therefore, this method utilizes the inherent differences in electrical performance between grid-connected mode and grid-following mode to indirectly confirm the switching status: in grid-connected mode, the PCS outputs an independent frequency, and the difference between the microgrid frequency and the grid frequency remains essentially constant; in grid-following mode, the PLL actively tracks the grid frequency, and this frequency difference gradually approaches zero. Accordingly, the multi-energy measurement and control device only needs to observe the trend of the frequency difference to determine whether the PCS has entered grid-following mode.
[0040] Specifically, the multi-energy measurement and control device starts a timeout timer simultaneously with the transmission of commands, with a starting value of 0. Subsequently, it acquires the three-phase voltages on both the grid side and the microgrid side at each power frequency cycle, and calculates the grid side frequency accordingly. and microgrid side frequency Both are in Hz; then calculate the difference between them to get the frequency difference: in This is the sequence number of the current power frequency. The unit is Hz. Frequency is obtained using the zero-crossing detection method, which records the moment when the voltage of the same phase crosses zero in each cycle. The reciprocal of the time interval between two consecutive positive zero-crossings is the frequency value of that cycle. The multi-energy measurement and control device sequentially stores the frequency differences of multiple consecutive power frequency cycles into a first-in-first-out buffer with a capacity of L data points.
[0041] Specifically, L is determined based on the PLL response characteristics configured in the PCS. During the system debugging phase, the PCS performs a mode switch from network construction to network following, and the number of cycles taken for the frequency difference to decrease from its initial value to below 10% of its initial value is recorded. ;L take The percentage is between 40% and 60%, rounded to the nearest integer. This ratio ensures that the buffer accumulates enough data to reflect the convergence trend in the first half of the PLL convergence process. For example, if measured during debugging... It has 20 cycles, and L can be configured to 10.
[0042] Figure 2 This is a schematic diagram illustrating the convergence trend determination of the frequency difference during PCS mode switching in one embodiment of this application. As shown in the figure, when the energy storage converter is in grid-connected mode, the frequency difference between the microgrid side and the grid side remains basically stable; after switching to grid-connected mode, the frequency difference gradually decreases with the power frequency and approaches 0. The multi-energy measurement and control device will continuously... Each frequency difference data point is stored in a frequency difference buffer, with a window range of [missing information]. to It is divided into the first half and the second half, among which This indicates the dividing point between the two segments. Calculate the absolute value of the frequency difference between the first and second halves of the segment respectively. to The arithmetic mean of the second half is used to determine the mode switching of the energy storage converter when the ratio of the arithmetic mean of the second half to the arithmetic mean of the first half is less than the set ratio.
[0043] In one embodiment, after the buffer is filled with L frequency difference data points, the multi-energy measurement and control device performs a convergence trend judgment on the frequency difference sequence within the buffer. Specifically, the L frequency difference data points are divided into a first half and a second half, with the data in the middle position being included in the first half when L is odd; the arithmetic mean of the absolute values of each data point in the first half is then calculated. and the arithmetic mean of the absolute values of the data points in the second half Both units are .
[0044] Specifically, when the ratio of the arithmetic mean of the second half to the arithmetic mean of the first half is less than a set ratio... At that time, that is The multi-energy measurement and control device determines that the PCS has completed the switch from the grid construction mode to the grid following mode, and the PLL is in the process of convergence.
[0045] Optionally, a ratio can be set. During the system debugging phase, the calibration was performed by continuously collecting frequency difference data for 200 cycles while the PCS maintained stable network configuration. The ratio of the absolute values of the two halves of the spectrum was calculated by sliding the window through the data with a window length of L, and the minimum ratio across all windows was recorded as the minimum value. This value reflects the maximum natural fluctuation ratio that steady-state measurement noise may cause. Take greater than A value less than 1 allows it to distinguish between two scenarios: "the frequency difference is indeed decreasing" and "it is only measuring noise fluctuations." Typical values range from 0.6 to 0.8, and can be configured to 0.7 for example.
[0046] As an example, assuming the microgrid frequency is 50.3Hz and the grid frequency is 50.0Hz in PCS network mode, the initial frequency difference is approximately 0.3Hz. After the multi-energy measurement and control device sends a mode switching command, L is 10 cycles, and the frequency differences sequentially filled into the buffer are 0.30, 0.28, 0.25, 0.22, 0.18, 0.15, 0.12, 0.10, 0.08, and 0.07, in Hz.
[0047] Among them, the mean of the absolute values of the first five values for The mean of the absolute values of the five values in the second half for The ratio is 0.104 / 0.246, which is approximately 0.42. This is less than the set ratio of 0.7, indicating that the PCS has completed the mode switch.
[0048] In one embodiment, if the timeout threshold is reached... The inner buffer was full, but the convergence criterion was not met. The multi-electrical energy measurement and control device determined that the command might not have been correctly received or executed by the PCS, and resent the command to switch from network construction mode to network following mode to the PCS, while resetting the timeout timer to zero. The number of consecutive retransmissions exceeded the retransmission limit. If no convergence trend is observed, the multi-electric energy measurement and control device will terminate the grid connection process, maintain the off-grid operation status, and output alarm information.
[0049] in, The method for determining this is to measure the 99th percentile value of the Ethernet communication round-trip delay during the debugging phase. In addition to the maximum processing time of instructions within the PCS In addition, there is the time required for the PLL to start tracking and for the frequency difference to show its first observable decrease. The sum of these three factors multiplied by a safety factor of 2. Specifically, if... For 5 milliseconds For 100 milliseconds, If it is 500 milliseconds, then It takes about 1.2 seconds, but can actually be configured to take 1.5 seconds. Based on the maximum total waiting time allowed by the grid connection process and a single... The ratio is determined, for example, it can be configured to 3 times.
[0050] The aforementioned frequency difference trend judgment method utilizes the fundamental difference in electrical characteristics between the network-based mode and the grid-following mode. In the network-based mode, the PCS operates according to the frequency reference generated by its own crystal oscillator, and has no tracking relationship with the grid frequency; the frequency difference remains approximately constant over a period of time. In the grid-following mode, the PCS's PLL continuously adjusts its output frequency to align with the grid frequency, inevitably causing the frequency difference to exhibit a monotonically decreasing trend. The multi-energy measurement and control device calculates the frequency based on existing voltage vector measurement results, without requiring the PCS to send back confirmation signals via the communication link. Under normal communication conditions, the convergence trend satisfies the criterion in the first half of the PLL adjustment time, and the confirmation speed is faster than waiting for communication feedback. When Ethernet packets are lost, the frequency difference sequence remains constant without a convergence trend; after a timeout, a retransmission is triggered to avoid process deadlock.
[0051] In step 14, after confirming that the mode switch is completed, the phase angle difference between the grid side and the microgrid side is collected cycle by cycle within the sliding window, and the threshold condition judgment and stability condition judgment are performed on the phase angle difference within the window.
[0052] In some embodiments, this stage begins after mode switching is confirmed. At this point, the PLL of the PCS has started tracking the grid frequency. However, the convergence of the phase-locked loop from the initial frequency difference to the steady state is not instantaneous. It manifests as damped oscillations of the phase angle difference around the target value, with the amplitude gradually decaying to the steady-state noise level after several cycles. The photovoltaic inverters in the microgrid synchronously adjust their own PLLs following the output of the PCS, making the overall phase angle convergence process on the microgrid side more complex and the oscillation decay slower than that of a single PCS. Traditional quasi-synchronization methods determine whether the phase angle difference is within a threshold range at a single moment, failing to distinguish between the moment when the phase angle difference accidentally crosses the threshold during oscillation and the steady-state synchronization after the PLL truly converges. The sliding window dual-condition evaluation introduced in this stage directly quantifies the fluctuation amplitude of the phase angle difference within the window, distinguishing between the two states.
[0053] Specifically, the multi-electric energy measurement and control device collects the three-phase voltages on the grid side and the microgrid side at each power frequency cycle and calculates the voltage amplitude difference between the two sides. Frequency difference and phase angle difference Voltage amplitude difference is expressed as a percentage based on rated voltage, frequency difference is in Hz, and phase angle difference is in degrees. These three items are collectively referred to as synchronization parameters, which are the set of parameters characterizing the degree of synchronization between the microgrid side and the grid side. The multi-energy measurement and control device maintains a first-in-first-out sliding window with a capacity of P sampling points. Each power frequency cycle writes a new set of data into the window while removing the oldest set of data.
[0054] Specifically, the sliding window capacity P is not less than the power frequency cycle number corresponding to the damped oscillation period in the step response of the PCS phase-locked loop. In particular, the step response of the PLL contains a damped oscillation component with an oscillation angular frequency... The oscillation period is related to the natural frequency and damping ratio of the PLL. Approximately .Will Divide by the power frequency cycle duration of 20 milliseconds and round up to obtain the lower limit of P. During the system commissioning phase, the oscillation period is directly read by observing the oscillation waveform of the phase angle difference after the PCS mode switch, and P is determined accordingly. In a typical microgrid, the damped oscillation period of the PLL is between 100 and 400 milliseconds, corresponding to a P range of 5 to 20 cycles, for example, it can be configured to 10.
[0055] Figure 3 This is a schematic diagram of the dual-condition determination of sliding window synchronization stability in one embodiment of this application. As shown in the figure, the horizontal axis represents the power frequency cycle, the vertical axis represents the phase angle difference, and the dashed lines represent the phase angle threshold and the phase angle difference, respectively. Phase angle threshold. After the PCS enters grid-following mode, the phase angle difference exhibits damped oscillations as the PLL converges. The multi-electric energy measurement and control device uses a length of... The sliding window is used for judgment: first, it is determined whether the synchronous parameters of each sampling point within the window are all within the threshold range; if not, the grid connection condition is not met; if so, it is then determined whether the dispersion of the phase angle difference within the window is lower than the stability threshold. If the stability condition is not met, the grid connection condition is not met; if it is met, the grid connection condition is determined and a closing command is issued. In the figure, the first window indicates that the stability condition is not met, and the second window indicates that the stability condition is met.
[0056] In one embodiment, evaluation begins after the sliding window is filled with P data points. Each time the window slides one position, the multi-energy measurement and control device checks whether the synchronous parameters of all P sampling points within the window are within the threshold range, i.e., each sampling point must simultaneously meet the threshold. , and Three conditions.
[0057] The determination of each threshold value is based on the quasi-synchronous grid connection technical regulations and microgrid access standards. This is the frequency threshold, and its value is related to the upper limit of the frequency surge after the circuit breaker is closed, for example, 0.2Hz; The phase angle threshold is related to the possible increase in phase angle difference during the mechanical operation time of the circuit breaker, and must be less than the maximum allowable phase angle difference for closing, for example, 5 degrees. The voltage amplitude deviation threshold is set to the allowable deviation of the grid connection point voltage, for example, 5% of the rated voltage. If any parameter at any sampling point within the window exceeds the corresponding threshold, the threshold condition is not met, and the window continues to slide until the next evaluation.
[0058] In one embodiment, provided the threshold condition is met, the multi-energy measurement and control device further calculates the dispersion of the P phase angle difference data within the window. Specifically, the dispersion is the standard deviation of the phase angle difference at each sampling point within the window relative to the arithmetic mean of the phase angle differences within the window, i.e., the sample standard deviation known in the art. in For the first in the window The phase angle difference between the sampling points, in degrees; This is the arithmetic mean of the P phase angle differences within the window, in degrees; The standard deviation is calculated, and the unit is also degrees.
[0059] Specifically, the stability condition is: Below the stability threshold The time is satisfied. Among them, The calibration was performed through steady-state measurements during the commissioning phase. Specifically, after the PCS operated stably for more than 60 seconds in grid-connected mode under normal grid conditions, the multi-energy measurement and control device continuously recorded the phase angle difference data of 200 power frequency cycles, and the standard deviation of these 200 data points was calculated and denoted as [missing information]. This reflects the steady-state measurement noise level of the multi-electric energy measurement and control device itself. Pick 3 times, that is The basis for selecting a 3-fold coefficient is that when steady-state measurement noise approximately follows a normal distribution, 3 times the standard deviation covers 99.7% of the normal fluctuation range. Exceeding this range indicates that the main source of phase angle difference fluctuation is not measurement noise, but residual oscillations caused by the PLL not yet converging. In a typical 0.4kV microgrid, when the voltage measurement accuracy of the multi-energy measurement and control device is 0.1 degrees, Typically within the range of 0.2 to 0.3 degrees, corresponding to It is approximately 0.6 to 0.9 degrees, and can be configured to 1 degree, for example.
[0060] As an example, suppose P is 10, and at a certain moment during PLL convergence, the 10 phase angle differences within the window are 2.1, 1.8, 1.5, 1.2, 0.9, 0.7, 0.5, 0.4, 0.3, and 0.2 degrees. (Arithmetic mean) The deviation is 0.96 degrees. The squares of the deviations at each point are 1.30, 0.71, 0.29, 0.06, 0.004, 0.07, 0.21, 0.31, 0.44, and 0.58, respectively. The sum of the squares is 3.96. Dividing by 10 gives 0.396. Taking the square root gives... Approximately 0.63 degrees. If When configured to 1 degree, the standard deviation is below the threshold, but the data within the window shows a clear monotonically decreasing trend. The phase angle difference at each point is not all less than the 5-degree threshold (the first few points exceed it). The threshold condition is not met, so it will not enter the next stage.
[0061] Once the PLL has fully converged, the data within the subsequent window tends to stabilize. For example, if the 10 phase angle differences within the window are 0.3, 0.2, 0.1, 0.2, 0.3, 0.1, 0.2, 0.3, 0.2, and 0.1 degrees, the arithmetic mean is 0.2 degrees, the sum of the squares of the deviations at each point is 0.04, divided by 10, we get 0.004, and the standard deviation is... It is approximately 0.063 degrees, much smaller than Simultaneously, all points are within a 5-degree threshold range, the frequency difference is within 0.2Hz, and the voltage deviation is within 5%. Both the threshold condition and the stability condition are satisfied.
[0062] In some embodiments, the threshold condition and the stability condition must be met simultaneously within the same sliding window for the multi-energy measurement and control device to determine that the synchronization stability assessment has passed. If either condition is not met, the window continues to slide, waiting for the next assessment.
[0063] The physical basis of the stability condition lies in the fact that after the PLL converges, the fluctuation of the phase angle difference originates solely from measurement noise, and its standard deviation is comparable to the steady-state noise level. While the PLL is still oscillating and converging, the phase angle difference fluctuates significantly with the oscillations, and its standard deviation is significantly higher than the steady-state level. The standard deviation directly quantifies the fluctuation amplitude of the phase angle difference within the window, distinguishing accidental matching during oscillation from true steady-state synchronization. This criterion works in conjunction with the threshold condition; the threshold condition filters out windows where all synchronous parameters are within the allowable range, and the stability condition further excludes non-steady-state windows where the instantaneous value is within the threshold but the fluctuation is still too large.
[0064] The prerequisite for normal operation under stability conditions is that the mode switch confirmation has been completed. If the PCS is still in grid-connected mode, the microgrid frequency operates independently of the grid frequency, and the phase angle difference reflects the beat frequency between the two independent frequency sources. When the beat frequency is very low, the phase angle difference changes slowly in a short period of time, and the window standard deviation may be too low, leading to misjudgment. After confirming that the PCS has switched to grid-connected mode through the frequency difference convergence trend in the aforementioned steps, subsequent changes in the phase angle difference reflect the convergence state of the PLL, and the standard deviation then has the physical meaning to distinguish between oscillation and steady state.
[0065] Optionally, in some embodiments, the multi-energy measurement and control device sets a maximum evaluation time from the start of this stage, for example, 2 to 3 times the PLL adjustment time. If the evaluation is still not passed after this time, the multi-energy measurement and control device returns to step S1 to resend the mode switching command.
[0066] In step 15, after the threshold condition and stability condition are met simultaneously, a closing command is sent to the grid-connected intelligent circuit breaker.
[0067] In some embodiments, after the synchronization stability assessment is passed, the multi-energy measurement and control device first compares the voltage amplitudes on the grid side and the microgrid side. If a deviation exists, it sends a voltage adjustment command to the PCS to align the voltages on both sides. After voltage alignment, the multi-energy measurement and control device sends a closing command to the grid-connected smart circuit breaker, and the closing motor starts to operate.
[0068] Specifically, during the mechanical operation of the grid-connected smart circuit breaker before the contacts close, the multi-energy measurement and control device continuously monitors synchronization parameters. When the frequency difference or phase angle difference exceeds the corresponding threshold, the multi-energy measurement and control device issues a blocking command to stop the closing. This measure prevents forced closing when the system state deviates during the mechanical operation of the circuit breaker.
[0069] Figure 4 This is a schematic diagram of circuit breaker closing phase angle prediction in one embodiment of this application. As shown in the figure, with time as the horizontal axis and phase angle difference as the vertical axis, the current phase angle difference is obtained at the current evaluation time, and the expected phase angle increment is calculated based on the current frequency difference and the mechanical action time of the circuit breaker. There is a mechanical action time of the circuit breaker from the time the closing command is issued to the time the contacts actually close. The current phase angle difference is added to the expected phase angle increment to obtain the predicted phase angle difference, and compared with the phase angle threshold. If the predicted phase angle difference does not exceed the phase angle threshold, the closing command is issued; if it exceeds the phase angle threshold, the closing command is postponed. This process is used to predict the synchronous state at the time the contacts actually close.
[0070] Optionally, before issuing the closing command, the multi-energy measurement and control device predicts the phase angle difference at the closing time based on the current frequency difference and the mechanical action time of the circuit breaker. Specifically, the prediction method involves multiplying the current frequency difference by the mechanical action time of the circuit breaker from receiving the command to contact closure, then multiplying by 360 degrees to obtain the phase angle increment within that time period, which is then added to the current phase angle difference. If the predicted phase angle difference exceeds the phase angle threshold... If the circuit breaker's mechanical action time is 70 milliseconds, the current frequency difference is 0.05 Hz, and the current phase angle difference is 2 degrees, then the predicted phase angle increment is 0.05 × 0.07 × 360, approximately equal to 1.26 degrees. The predicted phase angle difference at the time of closing is 3.26 degrees, which is less than the 5-degree threshold, allowing the issuance of the closing command.
[0071] After the circuit breaker contacts close, the microgrid resumes grid-connected operation.
[0072] All the calculations in the above steps involve only addition, subtraction, multiplication, division, and square root operations. The calculation workload for a single power frequency cycle is: two frequency calculations, one frequency difference update, and calculations of the mean and standard deviation of L or P floating-point numbers. The embedded processor used in the multi-power energy measurement and control device has ample margin after completing the above calculations within a 20-millisecond time window for a single power frequency cycle.
[0073] This method determines the completion status of PCS mode switching by analyzing the frequency difference trend and assesses synchronization stability using the standard deviation of phase angle difference within a sliding window. This allows the grid connection timing to be determined by the actual convergence status of the microgrid-side PLL: when PLL converges quickly, the window passes the evaluation in a short time, accelerating the grid connection process; when convergence is slow, the window automatically extends the evaluation period to avoid misjudging synchronization conditions during oscillation phases. The frequency difference trend analysis also possesses self-detection capabilities for communication faults. When Ethernet packet loss causes the PCS to fail to perform mode switching, it can automatically identify and resend the command, reducing the likelihood of grid connection process interruptions due to communication failures.
[0074] Figure 5 This is a schematic block diagram of an automatic control system for switching between grid and off-grid operations in a microgrid, according to one embodiment of this disclosure. Figure 5 As shown, the system includes: This includes multiple electrical energy measurement and control devices, grid-connected intelligent circuit breakers, and energy storage converters; The multi-electric energy measurement and control device is used to monitor the grid-side frequency. When the frequency deviation exceeds the allowable range, it sends a trip command to the grid-connected smart circuit breaker to enable the microgrid to switch to off-grid operation and enable the energy storage converter to enter the grid-connected mode. The multi-energy measurement and control device is also used to confirm, through multiple consecutive power frequency cycles, that the voltage parameters on the grid side meet the recovery conditions after the power grid has been restored. The multi-electric energy measurement and control device is also used to send a command to the energy storage converter to switch from grid-connected mode to grid-following mode, calculate the difference between the microgrid side frequency and the grid side frequency on a cycle-by-cycle basis, and determine whether the energy storage converter has completed the mode switch based on the changing trend of the frequency difference. The multi-electric energy measurement and control device is also used to collect the phase angle difference between the grid side and the microgrid side cycle by cycle within a sliding window after the confirmation mode switch is completed. The phase angle difference within the window is simultaneously judged by threshold condition and stability condition. The threshold condition is that the synchronous parameters of each sampling point within the window are within the threshold range. The stability condition is that the dispersion of the phase angle difference within the window is lower than the stability threshold. The multi-energy measurement and control device is also used to issue a closing command to the grid-connected smart circuit breaker after the threshold condition and the stability condition are simultaneously satisfied.
[0075] The implementation process of the functions and roles of each module in the above system is detailed in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0076] The description in this disclosure is provided for illustrative and descriptive purposes only and is not intended to be exhaustive or to limit the disclosure to its forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described in order to better illustrate the principles and practical application of this disclosure and to enable those skilled in the art to understand this disclosure and to design various embodiments with various modifications suitable for a particular purpose.
[0077] In the above embodiments, the descriptions of each embodiment have different focuses. Parts not described in detail in a certain embodiment can be referred to in the relevant descriptions of other embodiments. The above descriptions are merely preferred embodiments of this application and explanations of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solutions formed by specific combinations of the above technical features, but should also cover other technical solutions formed by arbitrary combinations of the above technical features or their equivalent features without departing from the inventive concept.
Claims
1. An automatic control method for switching between grid connection and off-grid operation in a microgrid, characterized in that, include: The multi-electric energy measurement and control device monitors the grid-side frequency. When the frequency deviation exceeds the allowable range, it sends a trip command to the grid-connected smart circuit breaker, and the microgrid switches to off-grid operation, while the energy storage converter enters grid-connected mode. After the power grid is restored, the multi-energy measurement and control device continuously confirms that the voltage parameters on the grid side meet the restoration conditions through multiple power frequency cycles. The multi-energy measurement and control device sends a command to the energy storage converter to switch from grid-connected mode to grid-following mode, calculates the difference between the microgrid side frequency and the grid side frequency on a cycle-by-cycle basis, and determines whether the energy storage converter has completed the mode switch based on the changing trend of the frequency difference. After confirming the mode switch is completed, the multi-electric energy measurement and control device collects the phase angle difference between the grid side and the microgrid side cycle by cycle within the sliding window. It simultaneously performs threshold condition judgment and stability condition judgment on the phase angle difference within the window. The threshold condition is that the synchronous parameters of each sampling point within the window are within the threshold range. The stability condition is that the dispersion of the phase angle difference within the window is lower than the stability threshold. Once the threshold condition and the stability condition are simultaneously satisfied, a closing command is sent to the grid-connected intelligent circuit breaker.
2. The method according to claim 1, characterized in that, The step of determining whether the energy storage converter has completed mode switching based on the changing trend of the frequency difference includes: the multi-electric energy measurement and control device stores the frequency difference of multiple consecutive power frequency cycles into a buffer, divides the frequency difference sequence in the buffer into a first half and a second half, and calculates the arithmetic mean of the absolute values of each data point in the first half and the arithmetic mean of the absolute values of each data point in the second half, respectively; when the ratio of the arithmetic mean of the second half to the arithmetic mean of the first half is less than a set ratio, it is determined that the energy storage converter has completed mode switching.
3. The method according to claim 1, characterized in that, The dispersion of the phase angle difference within the window is the standard deviation of the phase angle difference of each sampling point within the sliding window relative to the arithmetic mean of the phase angle differences within the window.
4. The method according to claim 1, characterized in that, After the multi-electric energy measurement and control device sends the instruction to switch from grid-connected mode to grid-following mode, it starts a timeout timer; if the mode switch is not determined to be completed within the timeout threshold, it resends the instruction and resets the timer to zero. If the number of consecutive retransmissions exceeds the retransmission limit, the grid connection process will be terminated and the off-grid operation will continue.
5. The method according to claim 1, characterized in that, The capacity of the sliding window is not less than the power frequency cycle number corresponding to the damped oscillation period in the phase-locked loop step response of the energy storage converter.
6. The method according to claim 1, characterized in that, The confirmation that the grid-side voltage parameters meet the recovery conditions for multiple consecutive power frequency cycles includes: when the three conditions of grid-side voltage amplitude deviation not exceeding the set percentage of the rated value, grid-side frequency deviation not exceeding the frequency threshold, and three-phase voltage imbalance not exceeding the imbalance threshold are continuously met within K consecutive power frequency cycles, the grid is determined to be restored; if any condition is not met, the continuous count is reset to zero; K is determined according to the protection reclosing time setting value of the connected line.
7. The method according to claim 1, characterized in that, The multi-energy measurement and control device achieves power supply switching through two sets of high-speed relays; the control coils of the two sets of high-speed relays are respectively connected to the voltage of different phases of the power grid; when the power grid is energized, the two sets of high-speed relays are energized and their normally open contacts are closed, and the multi-energy measurement and control device is powered by the power grid; when the power grid is de-energized, the two sets of high-speed relays are de-energized and their normally closed contacts are closed, and the multi-energy measurement and control device is powered by the microgrid.
8. The method according to claim 1, characterized in that, After issuing the closing command, the multi-energy measurement and control device continuously monitors the synchronization parameters before the contacts of the grid-connected smart circuit breaker close; when the frequency difference or phase angle difference exceeds the corresponding threshold, it issues a blocking command to stop the closing.
9. The method according to claim 8, characterized in that, Before issuing the closing command, the multi-energy measurement and control device predicts the phase angle difference at the closing time based on the current frequency difference and the mechanical action time of the circuit breaker; when the predicted phase angle difference exceeds the phase angle threshold, the issuance of the closing command is postponed.
10. An automatic control system for switching between grid connection and off-grid operation in a microgrid, characterized in that, This includes multiple electrical energy measurement and control devices, grid-connected intelligent circuit breakers, and energy storage converters; The multi-electric energy measurement and control device is used to monitor the grid-side frequency. When the frequency deviation exceeds the allowable range, it sends a trip command to the grid-connected smart circuit breaker to enable the microgrid to switch to off-grid operation and enable the energy storage converter to enter the grid-connected mode. The multi-energy measurement and control device is also used to confirm, through multiple consecutive power frequency cycles, that the voltage parameters on the grid side meet the recovery conditions after the power grid has been restored. The multi-electric energy measurement and control device is also used to send a command to the energy storage converter to switch from grid-connected mode to grid-following mode, calculate the difference between the microgrid side frequency and the grid side frequency on a cycle-by-cycle basis, and determine whether the energy storage converter has completed the mode switch based on the changing trend of the frequency difference. The multi-electric energy measurement and control device is also used to collect the phase angle difference between the grid side and the microgrid side cycle by cycle within a sliding window after the confirmation mode switch is completed. The phase angle difference within the window is simultaneously judged by threshold condition and stability condition. The threshold condition is that the synchronous parameters of each sampling point within the window are within the threshold range. The stability condition is that the dispersion of the phase angle difference within the window is lower than the stability threshold. The multi-electric energy measurement and control device is also used to issue a closing command to the grid-connected intelligent circuit breaker after the threshold condition and the stability condition are simultaneously satisfied.
