A method for preventing reverse current in a photovoltaic system

By periodic sampling and data buffering of grid-connected voltage of the photovoltaic system, the voltage change rate is calculated, the transient voltage segment is locked, the island event compliance is judged, and the anti-countercurrent regulation instructions are generated, the problem of insufficient grid disturbance identification in the existing technology is solved, and the stability and safety of the power grid are improved.

CN120150140BActive Publication Date: 2025-07-11HEREO NEW ENERGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510629424.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-07-11
Estimated Expiration
2045-05-16

AI Technical Summary

Technical Problem

In the scenario where sudden changes in the power grid load or rapid occurrence of transient disturbances, the existing technology cannot establish a continuous and effective real-time data cache, resulting in a lack of continuity in voltage and current monitoring data, making it difficult to accurately distinguish between island and non-island disturbances, and the response mode of anti-countercurrent measures is single and lack of flexibility.

Method used

By periodically sampling the grid-connected voltage of the photovoltaic system and the power grid connection point, establishing an instant voltage data buffer, calculating the voltage amplitude change rate, locking the transient voltage segment, extracting the core voltage disturbance parameters, judging the compliance of the island event, and generating anti-countercurrent adjustment instructions.

Benefits of technology

Accurate capture and identification of voltage disturbances is achieved, the efficiency and accuracy of the identification of grid disturbance types is improved, unnecessary power loss caused by blind response of inverters is avoided, and the stability and safety of grid operation are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120150140B_ABST
    Figure CN120150140B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of anti-counterflow, and specifically to an anti-counterflow method for a photovoltaic system, which includes the following steps: periodically sample the voltage at the grid connection point of the photovoltaic system and the grid, continuously obtain the instantaneous measurement values of the voltage, and establish and update an immediate voltage data cache; based on the immediate voltage data cache, extract the voltage data within the most recent fixed time window, calculate the maximum change rate of the voltage amplitude within the time window, and judge and generate a voltage transient trigger signal. In the present invention, by continuously and periodically sampling the voltage at the grid connection point and establishing an immediate voltage data cache, precise capture of voltage disturbances is achieved; through the calculation of the change rate of the voltage amplitude within a specific time window, the precise moment when a voltage transient event occurs can be identified, improving the real-time performance and accuracy of voltage transient detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of anti-counterflow, and particularly to an anti-counterflow method for a photovoltaic system. Background Art

[0002] The technical field of anti-counterflow refers to a series of prevention and control methods and measures proposed for the problem of reverse power flow of electric energy generated during the connection of distributed power sources such as photovoltaic and wind power to the power grid. When the grid load decreases and the power generation of the distributed power source exceeds the local load demand, the excess electric energy will be sent back to the grid, which may cause fluctuations in the grid voltage and frequency and affect the operation stability of the grid.

[0003] The prior art usually relies on real-time monitoring of voltage, current, and power flow directions for dynamic adjustment. However, in scenarios where the grid load suddenly changes or transient disturbances occur rapidly, a continuous and effective instant data cache fails to be established, resulting in the lack of continuity of monitoring data. At the same time, only the power flow direction is concerned while ignoring the duration of the disturbance event and the rate of change of the amplitude, which increases the probability of misjudgment in determining the type of disturbance source. As a result, the response mode of the anti-counterflow measures is single and lacks flexibility, making it difficult to accurately distinguish between island and non-island disturbances. Therefore, improvements are needed. Summary of the Invention

[0004] The purpose of the present invention is to solve the deficiencies existing in the prior art and propose an anti-counterflow method for a photovoltaic system.

[0005] To achieve the above purpose, the present invention adopts the following technical solution. An anti-counterflow method for a photovoltaic system includes the following steps:

[0006] Periodically sample the voltage at the grid connection point of the photovoltaic system and the grid, continuously obtain the instantaneous measurement values of the voltage, and establish and update the instant voltage data cache; based on the instant voltage data cache, extract the voltage data within the most recent fixed time window, calculate the maximum rate of change of the voltage amplitude within the time window, and determine and generate a voltage transient trigger signal;

[0007] In response to the generated voltage transient trigger signal, lock the data of the voltage transient occurrence section corresponding to the trigger moment from the instant voltage data cache to form a locked transient voltage segment; based on the locked transient voltage segment, calculate the maximum peak value of the voltage amplitude within the segment and the duration for which the voltage exceeds the normal operation range, and obtain the core voltage disturbance parameter pair;

[0008] Match and compare the voltage peak amplitude and duration in the core voltage disturbance parameter pair with a preset reference interval of islanding event characteristics to determine the degree of compliance of the disturbance event with a true islanding event, and establish an islanding event compliance index; based on the islanding event compliance index, evaluate the source of the current transient disturbance and determine the grid disturbance source classification code.

[0009] Based on the obtained grid disturbance source classification code, determine whether the current transient disturbance belongs to a non-islanding type of grid fault, determine the response mode of the inverter, and generate an anti-counterflow regulation command.

[0010] Preferably, the step of obtaining the instantaneous voltage data cache is as follows:

[0011] By setting a voltage sampling trigger period, call the voltage sensor at the grid connection point, continuously record the instantaneous measurement values of the grid connection point voltage obtained at each sampling trigger moment, and input all the measurement values into the data temporary storage area in sequence to obtain a sequence of instantaneous measurement values of the grid connection point voltage.

[0012] According to the sequence of instantaneous measurement values of the grid connection point voltage, enter the voltage information item by item in chronological order, establish a voltage record table structure with time stamps, and perform data overwrite or append updates after each sampling to generate a voltage measurement record set with a time index.

[0013] Based on the voltage measurement record set with a time index, perform duplicate checking on the newly collected data, dynamically maintain the voltage record set arranged in chronological order, and generate an instantaneous voltage data cache.

[0014] Preferably, the step of obtaining the voltage transient trigger signal is as follows:

[0015] Based on the instantaneous voltage data cache, trace back from the current time point to a preset fixed time period forward, extract all voltage amplitude data and corresponding time stamp information arranged in sequence within the fixed time period to form a voltage amplitude sequence and a time sequence within a fixed time window.

[0016] According to the voltage amplitude sequence and time sequence within the fixed time window, calculate the change rate fluctuation intensity of the voltage amplitude.

[0017] Compare the change rate fluctuation intensity of the voltage amplitude with a set rate fluctuation critical value under stable operating conditions. If the change rate fluctuation intensity of the voltage amplitude is greater than the critical value, it is determined that a transient disturbance has occurred, and a voltage transient trigger signal is generated.

[0018] Preferably, the step of obtaining the locked transient voltage segment is as follows:

[0019] Retrieve the voltage record position corresponding to the trigger moment in the instant voltage data cache based on the trigger moment information carried in the voltage transient trigger signal, determine the voltage record index position corresponding to the generation moment of the voltage transient trigger signal, and generate a voltage transient start index;

[0020] According to the voltage transient start index, retrieve and extend forward and backward respectively from the instant voltage data cache, track the process of the voltage transient amplitude deviating from the stable state for the first time and recovering to the stable state, determine the start and end index intervals of the voltage transient occurrence, and form a voltage transient occurrence section;

[0021] Based on the voltage transient occurrence section, extract and store separately all the voltage amplitude data and the corresponding time data in the instant voltage data cache within the voltage transient occurrence section, construct an independent voltage amplitude and time information sequence, and obtain a locked transient voltage segment.

[0022] Preferably, the obtaining steps of the core voltage disturbance parameter pair are as follows:

[0023] Based on the locked transient voltage segment, extract all the voltage amplitude data and the corresponding timestamp information within the segment, construct a voltage amplitude sequence and a timestamp sequence with matching structures, and obtain a transient voltage amplitude sequence and a timestamp sequence;

[0024] According to the transient voltage amplitude sequence and the timestamp sequence, calculate the maximum peak value and count the duration for which the voltage amplitude exceeds the normal operation range;

[0025] Based on the maximum peak value extracted from the transient voltage amplitude sequence and the duration for which the voltage amplitude exceeds the normal operation range, combine to form a corresponding relationship between the voltage amplitude peak value and the duration, and generate a core voltage disturbance parameter pair.

[0026] Preferably, the obtaining steps of the island event compliance index are as follows:

[0027] According to the voltage amplitude peak value and the cumulative overlimit duration in the core voltage disturbance parameter pair, retrieve the corresponding voltage amplitude threshold range and duration threshold range within the preset island event characteristic reference interval respectively, calculate the difference between the voltage amplitude peak value and the duration and the upper and lower thresholds of the reference interval one by one, and obtain the voltage amplitude difference and the duration difference;

[0028] Based on the voltage amplitude difference and the duration difference, taking the preset island event characteristic reference interval as the standard, calculate the relative proportion values of the two differences in their respective threshold intervals item by item, and divide the differences into three levels: high compliance, medium compliance, and low compliance according to the proportion values, and obtain the voltage amplitude matching level and the duration matching level;

[0029] According to the voltage amplitude matching level and the duration matching level, call the comprehensive compliance level decision table for item-by-item matching, take the lower value of the two levels as the comprehensive matching level, define the comprehensive matching level as the compliance degree of the islanding event, and generate the islanding event compliance index.

[0030] Preferably, the steps for obtaining the power grid disturbance source classification code are as follows:

[0031] Based on the islanding event compliance index, extract the compliance level, combine the voltage change rate and the amplitude jump direction within a fixed interval before and after the trigger moment, form a triple of the compliance level value, the voltage change rate value, and the amplitude change symbol, and generate a disturbance feature input combination;

[0032] According to the disturbance feature input combination, calculate the disturbance source type recognition value;

[0033] Based on the disturbance source type recognition value, perform classification matching with the disturbance type recognition reference interval to generate the power grid disturbance source classification code.

[0034] Preferably, the steps for obtaining the anti-counterflow regulation instruction are as follows:

[0035] According to the power grid disturbance source classification code, analyze the coding bit sequence in the power grid disturbance source classification code, interpret each coding bit as three identifiers: disturbance type, disturbance intensity level, and duration level. Judge the value of the disturbance type identifier. If the identifier field does not belong to the valid coding range indicating the islanding event, it is determined that the current transient disturbance is a non-islanding type power grid fault, and a power grid fault type determination result is generated;

[0036] According to the power grid fault type determination result, combined with the current system operation state, extract the inverter working mode, the power grid frequency state, and the load power fluctuation value. Use these three parameters as judgment conditions for conditional combination reasoning, select the inverter working mode corresponding to the matching condition, and judge whether it is necessary to limit the inverter injection current to generate the inverter response mode;

[0037] Based on the inverter response mode, expand the control actions included in the response mode, list item by item the values set for the suppression of active power output, the adjustment of reactive power compensation amplitude, and the setting of the grid-connected current phase shift, and combine all the control action parameters to generate the anti-counterflow regulation instruction.

[0038] Compared with the prior art, the advantages and positive effects of the present invention are as follows:

[0039] In the present invention, by continuously and periodically sampling the voltage at the grid connection point, an immediate voltage data cache is established, enabling precise capture of voltage disturbances. By calculating the rate of change of voltage amplitude within a specific time window, the exact moment when a voltage transient event occurs can be identified, improving the real-time performance and accuracy of voltage transient detection. On this basis, transient voltage segments are extracted to obtain disturbance parameters such as the maximum peak value of voltage amplitude and the duration of overlimit, improving the accuracy of feature extraction for voltage disturbance events. Further, a multi-dimensional matching of core voltage disturbance parameters and the reference interval of island event characteristics is adopted to construct an island event compliance index, enhancing the recognition efficiency and accuracy of power grid disturbance types and avoiding misjudgment of disturbance events. According to the classification of disturbance sources, by analyzing and numerically outputting response strategies, targeted anti-backflow adjustment commands are dynamically generated, effectively avoiding unnecessary power losses caused by the blind response of inverters and enhancing the stable support ability and safety guarantee ability of distributed power sources for power grid operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the steps of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0041] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0042] Please refer to Figure 1 , the present invention provides a technical solution, a method for preventing backflow in a photovoltaic system, including the following steps:

[0043] Periodically sample the voltage at the grid connection point where the photovoltaic system is connected to the grid, continuously obtain the instantaneous measurement values of the voltage, and establish and update an immediate voltage data cache; based on the immediate voltage data cache, extract the voltage data within the most recent fixed time window, calculate the maximum rate of change of voltage amplitude within the time window, and determine and generate a voltage transient trigger signal;

[0044] In response to the generated voltage transient trigger signal, lock the data of the voltage transient occurrence section corresponding to the trigger moment from the immediate voltage data cache to form a locked transient voltage segment; based on the locked transient voltage segment, calculate the maximum peak value of voltage amplitude within the segment and the duration of the voltage exceeding the normal operating range, and obtain a pair of core voltage disturbance parameters;

[0045] Based on the voltage peak amplitude and duration in the core voltage disturbance parameter pair, match and compare them with the preset reference interval of islanding event characteristics, judge the degree of compliance of the disturbance event with the true islanding event, and establish an islanding event compliance index; based on the islanding event compliance index, evaluate the source of the current transient disturbance and determine the grid disturbance source classification code.

[0046] According to the obtained grid disturbance source classification code, judge whether the current transient disturbance belongs to a non-islanding type grid fault, determine the response mode of the inverter, and generate an anti-counterflow regulation instruction.

[0047] The steps for obtaining the instantaneous voltage data cache are as follows:

[0048] By setting the voltage sampling trigger period, call the voltage sensor at the grid connection point, continuously record the instantaneous measured values of the grid connection point voltage obtained at each sampling trigger moment, and input all the measured values into the data temporary storage area in sequence to obtain a sequence of instantaneous measured values of the grid connection point voltage.

[0049] According to the sequence of instantaneous measured values of the grid connection point voltage, enter the voltage information item by item in chronological order, establish a voltage record table structure with time stamps, and perform data overwrite or append updates after each sampling to generate a set of voltage measurement records with time indexes.

[0050] Based on the set of voltage measurement records with time indexes, perform duplicate checking on the newly collected data, dynamically maintain the set of voltage records arranged in chronological order, and generate an instantaneous voltage data cache.

[0051] Specifically, by setting the voltage sampling trigger period, for example, for a power grid with a nominal frequency of 50 Hz, to capture fast voltage fluctuations that may indicate early faults or disturbances, the sampling frequency is set to 200 times the fundamental frequency of the power grid, that is, the voltage sampling trigger period is specifically set to seconds, which is 0.1 milliseconds. The selection of this period is based on the statistical analysis of historical power grid disturbance data, especially the analysis of the change rate of the voltage waveform at the initial stage of the disturbance event, and the minimum time interval that can ensure capturing at least 99.5% of the characteristics of the starting stage of such fast transient processes is selected. According to this 0.1-millisecond voltage sampling trigger period, drive the voltage sensor installed at the grid connection point to work. This voltage sensor can be an opto-isolated voltage transformer with a nanosecond-level response time, or a measurement unit composed of a high-precision voltage dividing resistor network and a high-speed 16-bit analog-to-digital converter (ADC). At each sampling trigger moment defined by this period, for example, at the absolute time stamp When the time is right, the voltage sensor synchronously captures the instantaneous analog waveform values of the three-phase (or single-phase, depending on the system configuration) voltages at the grid connection point, and immediately converts them into digital quantities through the ADC. For example, at this moment, it is recorded as Ua = 220.12 volts, Ub = 219.58 volts, Uc = 220.31 volts. Immediately following, at the next sampling moment , it records Ua = 220.05 volts, Ub = 219.63 volts, Uc = 220.25 volts again. These continuously acquired digital data points containing the instantaneous values of each phase voltage are sent one by one and in real time into a pre-allocated memory buffer with the characteristics of First In First Out (FIFO). This buffer serves as a data temporary storage area, and its capacity is set to be sufficient to accommodate all the sampling data of at least two complete power frequency cycles. Taking a 50 Hz power grid as an example, a power frequency cycle is 20 milliseconds, so the number of sampling points contained in two cycles is . If each sampling point contains three-phase voltage values and each phase voltage is represented by a 4-byte floating-point number, then the buffer size is at least. All these sequentially arranged measurement values form a temporally continuous and ordered list of original voltage readings in the data temporary storage area, thus obtaining a sequence of instantaneous measurement values of the grid connection point voltage.

[0052] Based on the sequence of instantaneous measurement values of the grid connection point voltage obtained in the previous step, the system starts from the starting position of this sequence and extracts each voltage instantaneous measurement value one by one in strict chronological order. For each measurement value taken out from the sequence, for example, at a specific sampling moment the obtained instantaneous voltage value is (if it is a three-phase system, then represents a set of three-phase voltage values at that moment, such as ). The system will forcibly associate a high-precision timestamp with it. This timestamp comes from a hardware Real-Time Clock (RTC) that is tightly synchronized with the Central Processing Unit (CPU). This RTC is synchronized with an external time server through the Network Time Protocol (NTP). For example, if a certain voltage value If the acquisition occurs at the moment when the RTC displays the time as "May 7, 2025, 18:01:38 and 123456 microseconds", then this complete time information will be used as the timestamp of this data point. Subsequently, each information unit containing the precise timestamp and the corresponding instantaneous voltage value (or polyphase voltage values) is organized and entered into a structured data record. This data record appears as a logically tabular structure in memory, and each row represents the data at a sampling moment, including at least the following column fields: "Globally Unique ID" (for example, a 64-bit integer that monotonically increases starting from 1, used to uniquely identify each record), "Precise Timestamp" (represented as an integer with nanosecond precision in Coordinated Universal Time (UTC) or a specific high-precision floating-point number, such as 1678886400.123456789 seconds), "Phase A Voltage Value" (floating-point number, unit: volt), "Phase B Voltage Value" (floating-point number, unit: volt), "Phase C Voltage Value" (floating-point number, unit: volt), and an optional "Data Quality Flag Bit" (for example, a byte, used to mark whether the data has been verified, whether there are anomalies, etc.). After each new instantaneous voltage measurement value and its corresponding timestamp data are prepared, the system will update this record set according to the preset storage management strategy. To ensure the timeliness of analysis and control memory occupancy, this set is implemented as a circular buffer with a fixed size, and its size is set to , for example, if it is necessary to analyze the power grid dynamics in the most recent 10 seconds and the sampling period is 0.1 millisecond, then the record set will store . When new data records enter, if the current number of records has reached , then the earliest stored record (i.e., the record with the smallest ID or the earliest timestamp) will be overwritten by the new record. This continuous entry and update operation dynamically generates a set of voltage measurement records with time indexing.

[0053] Based on the set of time-indexed voltage measurement records generated and continuously updated in the previous step, whenever a new voltage measurement record (including the exact timestamp and the corresponding instantaneous voltage value) is passed from the data acquisition process and is about to be added to the final real-time data cache, the system will first perform a duplicate check on this new record. The core logic of the duplicate check is mainly based on the uniqueness of the timestamp and the close comparison with the timestamps of the existing records in the set. Specifically, when executing, it will retrieve the record with the latest timestamp in the cache and compare the timestamp of the new record with that of this latest record. If the two are exactly the same, then the voltage values will be further compared. If the voltage values of all phases are also exactly the same (or the difference is within the basic noise fluctuation range of the instrument, for example, the absolute difference is less than 0.01 volts), then this new record is determined to be duplicate data and is discarded by the system. In addition, to handle the "pseudo-non-duplicate" situation that may be caused by minor jitters in system clock synchronization or extremely slight offsets in sampling times, a very small time difference tolerance threshold is set. , and its value is usually set according to the stability of the system clock and the expected maximum sampling jitter. For example, if it is known that the short-term stability of the system RTC is better than 5 microseconds, then it can be set to 0.005 milliseconds (i.e., 5 microseconds), which is much smaller than the sampling period of 0.1 milliseconds, ensuring that only real-time point conflicts are processed. If the absolute value of the difference between the timestamp of the new record and the timestamp of any existing record in the cache is less than this , and the corresponding instantaneous voltage values of each phase also show a high degree of similarity, specifically judged as the absolute average value of the voltage differences between each phase is less than a preset small voltage change threshold (this threshold is set based on the empirical value of 1.5 times the noise standard deviation plus one standard deviation of the sensor in the stable state. For example, if the noise standard deviation is 0.008 volts, then the threshold is ), then this new record may also be identified as potential duplicate or abnormal data and is processed according to preset rules (such as, retaining the record with an earlier timestamp, or marking it for further manual verification). By default, the timestamp is used as the primary criterion to ensure the uniqueness of the data at each exact time point in the cache. After successfully passing the duplicate check, this newly confirmed valid and unique voltage record will be officially integrated into a memory data structure dedicated to fast reading and analysis. This structure constitutes the core of the real-time voltage data cache. The cache always maintains the characteristic that all records are strictly sorted in ascending order by timestamp internally. If this cache is implemented based on, for example, a circular array or a doubly linked list with a size of as mentioned above, then the safe addition of new data points (after duplicate checking) may trigger the removal of the oldest data point (if the cache is full), thus maintaining the constant size of the cache and the timeliness of the data. This series of duplicate checking and dynamic maintenance operations ensure the final output real-time voltage data cache.

[0054] The steps for obtaining the voltage transient trigger signal are as follows:

[0055] Based on the instant voltage data cache, trace back from the current time point to a preset fixed time period forward, and extract all the voltage amplitude data and corresponding timestamp information arranged in sequence within the fixed time period, forming a voltage amplitude sequence and a time sequence within the fixed time window;

[0056] According to the voltage amplitude sequence and the time sequence within the fixed time window, calculate the change rate fluctuation intensity of the voltage amplitude. The calculation formula is:

[0057] ;

[0058] where, is the change rate fluctuation intensity of the voltage amplitude, is the voltage amplitude at the th moment, is the timestamp at the th moment, is the total number of voltage measurement values within the time window;

[0059] Compare the change rate fluctuation intensity of the voltage amplitude with the set rate fluctuation critical value under stable operating conditions. If the change rate fluctuation intensity of the voltage amplitude is greater than the critical value, it is determined that a transient disturbance has occurred, and a voltage transient trigger signal is generated.

[0060] Specifically, based on the instant voltage data cache generated in the previous system stage, the system, in each analysis cycle (for example, performing analysis every 10 milliseconds), first takes the current precise system time point as a reference and traces back to a preset fixed time period in the historical data direction. The length of this fixed time period, for example, is set to 100 milliseconds, which is determined based on the statistical analysis of the duration characteristics of typical power grid transient events (such as voltage dips caused by short-circuit faults, large load switching, etc.). The goal is to ensure that the window can completely capture the core dynamic processes of most transient events while taking into account the calculation efficiency. Specifically, the system filters out all voltage records in the instant voltage data cache whose timestamps fall within the interval from "the current time point" to "the current time point minus 100 milliseconds". Subsequently, from these filtered records, the voltage amplitude data contained in each record and the precisely corresponding sampling timestamp information are extracted. Among them, for the voltage amplitude data, if it is a three-phase system, it refers to the positive-sequence voltage amplitude or the voltage amplitude of a specific phase. These extracted voltage amplitude data and corresponding timestamp information are arranged in the order of the timestamps, and no order adjustment or data interpolation operations are allowed to ensure that the original time sequence characteristics of the data are retained, thereby forming a voltage amplitude sequence and a corresponding time sequence containing continuous sampling points within the fixed time window.

[0061] Formula: , the advantage of the formula is that by calculating the fluctuation intensity of the voltage amplitude change rate, it can sensitively capture the drastic or abnormal changes in the grid voltage. Its core idea is to quantify the "instability" or "acceleration" of the voltage change trend. Compared with only monitoring the voltage amplitude itself or a single change rate, it is more sensitive to the initial stage of voltage disturbance, especially for those complex transient processes where the change rate itself is also rapidly changing. For example, during the initial stage of a near - zone fault or islanding effect, not only will the voltage deviate from the normal value, but the deviation speed and acceleration will also show a specific pattern. Through the square - sum and square - root operations, similar to calculating the standard deviation, this formula can amplify and accumulate these second - order change effects, enabling even small fluctuations indicating potential instability to be effectively detected. At the same time, through normalization processing, the fluctuation intensities under different - length windows or different numbers of sampling points can be made comparable to a certain extent.

[0062] Parameter is obtained as follows: represents the total number of voltage measurement values included in the current fixed time window. This value is directly determined according to the length of the voltage amplitude sequence within the fixed time window formed in the previous step. For example, if the set fixed time period is 100 milliseconds and the previously configured voltage sampling trigger period (i.e., the time interval between two adjacent sampling points) of the system is 0.1 milliseconds, then the total number of voltage measurement values in the time window is calculated by the formula: sample points. Here, adding 1 is because if both ends of the time period include sampling points, and in this embodiment, .

[0063] Parameter is obtained as follows: represents the voltage amplitude corresponding to the th sampling moment ( ranging from 1 to ) within the fixed time window. These voltage amplitude data are directly sourced from the voltage amplitude sequence formed within the fixed time window, which is extracted from the real - time voltage data cache. The unit of the voltage amplitude is volts. For example, for a case, the five consecutive voltage amplitudes extracted from the voltage amplitude sequence are: , , , , .

[0064] Parameter is obtained as follows: Indicates the exact timestamps corresponding to the th sampling moment within a fixed time window ( ranging from 1 to ). These timestamp data are directly sourced from the time series within the formed fixed time window, and this sequence corresponds one-to-one with the voltage amplitude sequence. For example, in the case of the above , if the voltage sampling trigger period is 0.1 millisecond and the starting timestamp of the window is 0 millisecond, then the corresponding timestamp sequence is: , , , , .

[0065] Calculation process: Taking , and the example data given in the previous parameter acquisition step as an example: V, ms;

[0066] Substituting the parameters into the formula, the calculated result is 41.4327. This result indicates that within the selected time window containing 5 sampling points, the fluctuation intensity of the voltage amplitude change rate is approximately 41.4327 volts per square millisecond. This value quantifies the severity of the change in the voltage change rate, that is, the average fluctuation amplitude of the voltage "acceleration". The larger the value, the more unstable the voltage change, and the more frequent or severe the change in the trend.

[0067] Based on the calculated fluctuation intensity of the voltage amplitude change rate , for example, its value is 41.4327 volts per square millisecond, compare it with a pre-set critical value of the rate fluctuation representing the stable operation state of the power grid. The setting of this rate fluctuation critical value is based on the values of a large number of historical power grid operation data under fault-free and undisturbed conditions through statistical analysis. The specific method is: collect the data under stable operating conditions for at least one continuous month or longer to form a sample set containing millions of values, calculate the average value and standard deviation of this sample set. The rate fluctuation critical value is then set as a threshold that can distinguish normal fluctuations from abnormal disturbances with a high confidence level (e.g., 99.95%). For example, it is set as , where is a coefficient selected based on the balance of the desired detection sensitivity and false alarm rate. For example . If through the above statistics, the calculated The average value is 0.5 volts per square millisecond, and the standard deviation is 0.2 volts per square millisecond. Then the rate fluctuation critical value volts per square millisecond. When the rate fluctuation intensity of the change rate of the latest calculated voltage amplitude (such as 41.4327 volts per square millisecond) is greater than this rate fluctuation critical value (such as 1.3 volts per square millisecond), the system determines that a voltage transient disturbance has occurred in the current power grid and immediately generates a voltage transient trigger signal. This signal is a boolean type flag or an event object containing information such as the trigger time and the trigger value, etc., to initiate subsequent detailed disturbance analysis and response processes.

[0068] The steps to obtain the locked transient voltage segment are as follows:

[0069] Based on the trigger time information carried in the voltage transient trigger signal, retrieve the voltage record position corresponding to the trigger time in the immediate voltage data cache, determine the voltage record index position corresponding to the voltage transient trigger signal generation time, and generate a voltage transient start index;

[0070] According to the voltage transient start index, extend the retrieval forward and backward from the immediate voltage data cache respectively, track the process of the voltage transient amplitude deviating from the stable state for the first time and returning to the stable state, determine the start and end index intervals of the voltage transient occurrence, and form a voltage transient occurrence section;

[0071] Based on the voltage transient occurrence section, extract and store separately all the voltage amplitude data and the corresponding time data in the immediate voltage data cache within the voltage transient occurrence section, construct an independent voltage amplitude and time information sequence, and obtain the locked transient voltage segment.

[0072] Specifically, based on the precise trigger time information carried in the voltage transient trigger signal generated in the previous stage. For example, if the signal indicates that a possible voltage transient was detected at the absolute system timestamp "18:01:38.123456 on May 7, 2025", immediately utilize this trigger time information to perform a retrieval operation in the immediately updated voltage data cache that was previously constructed. This cache is a collection that stores a large number of voltage measurement records with precise timestamps in chronological order. The goal of the retrieval is to locate the voltage record that exactly matches the trigger time timestamp given in the voltage transient trigger signal, or is the closest within an allowed extremely small time error (for example, set to one-tenth of the sampling period. If the sampling period is 0.1 milliseconds, the error tolerance is 0.01 milliseconds, and this tolerance is set according to the system clock synchronization accuracy and the jitter characteristics of the sampling device). Specifically, the retrieval process can use a binary search algorithm (if the records in the cache are strictly sorted based on timestamps and support random access) or through a hash index (if the timestamp is used as a key value), or perform a comparison one by one in a simple sequential storage structure. Once this voltage record that exactly corresponds to or is closest to the trigger time is found, the system extracts the storage location identifier of this record in the immediately updated voltage data cache. This identifier can be an array index, a linked list node pointer, or a unique row number of a database record. For example, if the immediately updated voltage data cache is an array containing 1 million records and the record corresponding to the trigger time is located at the 753,421st position in the array, then this position 753,421 is determined as the voltage record index position corresponding to the generation time of the voltage transient trigger signal, and a voltage transient start index is generated based on this.

[0073] Based on the voltage transient start index determined in the previous step, for example, the index value is 753,421, which points to the data point where the transient was first detected in the immediately updated voltage data cache. The system uses this point as the center and performs a stretching retrieval in both the forward (historical data) and backward (subsequent data) directions of the time series, aiming to define the complete duration of the entire voltage transient event. In specific operations, the system will check the voltage amplitude data before and after the voltage transient start index one by one and compare it with the upper and lower threshold values of the preset grid voltage stable state. For example, for an AC system with a nominal effective voltage of 230 volts, its corresponding peak value is approximately 325 volts. The lower limit of the voltage amplitude (here referring to the short-term RMS value or envelope value) during stable operation can be set to 90% of the nominal effective voltage, that is , and the upper limit can be set to 110% of the nominal effective voltage, that is When the system retrieves data by tracing back from the voltage transient start index, it searches for the first sampling point where the voltage amplitude continuously remains within the above-mentioned stable range ([207V, 253V]) for a preset minimum stable duration (for example, lasting for 20 milliseconds, corresponding to a complete cycle of a 50 Hz power grid. If the sampling period is 0.1 milliseconds, then 200 consecutive sampling points need to meet the condition). The index of this point is recorded as the actual start index of the transient occurrence. Similarly, the system retrieves data backward (in the direction of increasing time) from the voltage transient start index, searching for the first sampling point where the voltage amplitude re-enters and continuously remains within the stable range ([207V, 253V]) for the same preset minimum stable duration. The index of this point is then recorded as the actual end index of the transient occurrence. Through this two-way tracing and the judgment based on continuous stability, the start and end index ranges covered by the entire process of the voltage transient deviating from the stable state and finally fully recovering to the stable state are determined, thus forming the voltage transient occurrence section.

[0074] Based on the accurately determined voltage transient occurrence section in the previous step, this section is jointly defined by an actual start index and an actual end index. For example, the start index is 753000 and the end index is 755500, which means the transient event starts from the 753000th record in the real-time voltage data cache and ends at the 755500th record. Next, the system will browse all the data records within this section and completely copy out all the voltage amplitude data and their corresponding precise time data (timestamps) located between this start index and end index (including both) from the real-time voltage data cache. This extraction process ensures that the voltage information and time information of each sampling point during the transient are captured without omission. For example, if the voltage transient occurrence section covers 2501 sampling points (from index 753000 to 755500), then the system will extract these 2501 voltage amplitude readings and their corresponding 2501 timestamps. These extracted voltage amplitude data and timestamp data will then be organized into two independent but strictly time-ordered sequences or lists: a voltage amplitude sequence (for example, a floating-point number array, storing them in sequence ), and a timestamp sequence (for example, a long integer or high-precision floating-point number array, storing them in sequence ). These two newly constructed sequences are jointly stored in a dedicated memory area or data structure to form a data copy separated from the main cache. This copy only contains the data related to the specific transient event currently identified, thus obtaining a locked transient voltage segment with clear structure and focused content.

[0075] The steps to obtain the core voltage disturbance parameter pair are as follows:

[0076] Based on the locked transient voltage segments, extract all the voltage amplitude data and corresponding timestamp information within the segments, construct a voltage amplitude sequence and a timestamp sequence with matching structures, and obtain the transient voltage amplitude sequence and the timestamp sequence;

[0077] According to the transient voltage amplitude sequence and the timestamp sequence, calculate the maximum peak value and count the duration for which the voltage amplitude exceeds the normal operating range. The calculation formula is:

[0078] ;

[0079] Wherein, represents the duration for which the voltage amplitude exceeds the normal operating range in the th transient, is the sampling time interval for each sampling point, is the voltage amplitude at the th sampling point, is the upper limit of voltage operation, is the lower limit of voltage operation, is the total number of sampling points in the voltage amplitude sequence;

[0080] Based on the maximum peak value extracted from the transient voltage amplitude sequence and the duration for which the voltage amplitude exceeds the normal operating range, combine them to form the correspondence between the voltage amplitude peak value and the duration, and generate the core voltage disturbance parameter pairs.

[0081] Specifically, based on the locked transient voltage segment obtained in the previous stage, which contains all the instantaneous voltage amplitude data sampled at high frequency during a specific transient event and their corresponding timestamp information, the system first extracts these two corresponding original data sequences from this segment, namely the original instantaneous voltage amplitude sequence and the original timestamp sequence. Then, to facilitate voltage quality assessment in line with industry standards, the system processes the original instantaneous voltage amplitude sequence to construct a transient voltage amplitude sequence that is more suitable in structure for characterizing the severity of voltage events. The specific processing method is to divide the locked transient voltage segment into a number of continuous complete cycles or half-cycle windows in time according to the preset grid nominal frequency (for example, 50 Hz, corresponding to a period of 20 milliseconds). For each such window, calculate the root mean square (RMS) value of all the instantaneous voltage amplitudes within the window. For example, if the segment duration is 100 milliseconds and the sampling period is 0.1 milliseconds, there are 1000 instantaneous sample points in the segment, and one RMS value is calculated every 20 milliseconds (200 sample points), resulting in 5 RMS voltage amplitudes. These calculated per-cycle (or per-half-cycle) RMS values constitute the new "transient voltage amplitude sequence". At the same time, generate a corresponding timestamp for each calculated RMS value, which can be taken as the end moment or the central moment of the corresponding calculation window, thus forming a matching "transient timestamp sequence". These two sequences together form the transient voltage amplitude sequence and timestamp sequence required for subsequent analysis.

[0082] Formula: , the benefit of the formula is that it provides a standardized and quantifiable method to evaluate the severity of voltage transient events, especially by accurately calculating the cumulative duration during which the voltage amplitude exceeds the normal operating range , which directly reflects the time that electrical equipment endures abnormal voltage and is one of the key indicators for judging whether the equipment may be damaged or whether the system needs to take protective measures. The conditional judgment in the formula clearly defines what is "beyond the normal operating range". Combining the operation of multiplying the indicator function by 1, the complex conditional judgment is transformed into simple counting, making the calculation of the total duration intuitive and easy to implement.

[0083] Parameter The acquisition steps are as follows: represents the calculation When calculating, each sampling point in the transient voltage amplitude sequence represents the time interval or duration. In the current context, since is the root mean square (RMS) value calculated from the original high-frequency sampled instantaneous voltage data according to a fixed time window (for example, one power grid cycle), so This is the length of the fixed time window for calculating the RMS value. For example, if the grid frequency is 50 Hz and its period is 20 milliseconds, and it is set to calculate the RMS voltage amplitude for each complete cycle , then the value of is 20 milliseconds, that is

[0084] The parameter is obtained as follows. represents the voltage amplitude of the th sampling point in the transient voltage amplitude sequence, where each value is the root mean square (RMS) value calculated from the original high-frequency instantaneous voltage within the time window (such as one grid cycle), in volts (V). This sequence represents the per-cycle (or per-window) variation of the effective voltage during the transient event. For example, for a transient event lasting 100 milliseconds, if , then values will be obtained. A specific example sequence is: , , , , .

[0085] The parameter is obtained as follows. represents the upper threshold of the allowable voltage amplitude (here referring to the RMS value) during normal grid operation. This value is set strictly in accordance with the power quality standard. For example, for a low-voltage distribution system with 220 V (phase voltage) or 230 V (phase voltage, standard in some regions), the allowable long-term operating voltage deviation is usually or . Here, is selected as an example. If the nominal phase voltage is 230 V, then is calculated as: .

[0086] The parameter is obtained as follows. represents the lower threshold of the allowable voltage amplitude (here referring to the RMS value) during normal grid operation. Similar to , this value is also set in accordance with the relevant power quality standard, using the same reference standard and nominal voltage as . If the nominal phase voltage is 230 V and the allowable negative deviation is 10%, then is calculated as: .

[0087] The parameter is obtained as follows. represents the value used to calculate Transient voltage amplitude sequence The total number of sampling points in, that is, the length of this sequence, which is determined by the total duration of the transient event and the time window used to calculate each value jointly. Specifically, is equal to the total duration of the locked transient voltage segment divided by , and then rounded (usually rounded up or determined according to the specific window division logic). For example, if the total duration of a transient segment is 100 milliseconds and is set to 20 milliseconds (one power grid cycle), then sampling points

[0088] And the "maximum peak" refers to finding the maximum RMS value from the transient voltage amplitude sequence , denoted by . The calculation method is to traverse all elements in the sequence and find its maximum value. For example, for the sequence V, its maximum peak .

[0089] Calculation process: Taking , , , as an example, the transient voltage amplitude sequence is V

[0090] Calculate : For : (False) (False). The condition is false. The contribution is 0. For : (False) (True). The condition is true. The contribution is 1. For : (False) (True). The condition is true. The contribution is 1. For : (False) (False). The condition is false. The contribution is 0. For : (False) (False). The condition is false. The contribution is 0.

[0091] Sum .

[0092] Calculate :

[0093] ;

[0094] That is, 40 milliseconds. This result indicates that in the transient event of this example, the cumulative duration during which the voltage amplitude (RMS value) exceeds the preset normal operating range (207V to 253V) is 40 milliseconds. This value is a key parameter for quantifying the severity of transient disturbances. Combining with the maximum peak (RMS) calculated previously, they jointly constitute the core description of the transient event in terms of amplitude and duration.

[0095] Based on the maximum peak extracted from the transient voltage amplitude sequence in the previous step (this sequence is composed of RMS voltage values calculated period by period or window by window), for example volts, and the duration during which the voltage amplitude exceeds the normal operating range calculated by the formula , for example milliseconds, the system combines these two key quantification metrics. Specifically, in implementation, these two values are paired and stored to form a data structure or object containing two elements. For example, it can be represented as a tuple: Or a record with explicit field names (such as max_rms_peak and duration_outside_limits). In this example, the corresponding relationship formed is (240.0 volts, 40 milliseconds). This structure clearly associates the most severe voltage amplitude deviation of the transient event (reflected in the form of RMS peak) with the total time it exceeds the normal limit. Without any further complex transformation or statistical processing, just placing these two directly calculated and extracted parameters side by side to generate the core voltage disturbance parameter pair.

[0096] The steps to obtain the islanding event compliance index are as follows:

[0097] According to the voltage amplitude peak and the cumulative over-limit duration in the core voltage disturbance parameter pair, respectively retrieve the corresponding voltage amplitude threshold range and duration threshold range within the preset islanding event characteristic reference interval. Calculate the difference between the voltage amplitude peak and the duration and the upper and lower thresholds of the reference interval to obtain the voltage amplitude difference and the duration difference;

[0098] Based on the voltage amplitude difference and the duration difference, taking the preset islanding event characteristic reference interval as the standard, calculate the relative proportion values of the two differences in their respective threshold intervals item by item. Divide the differences into three levels: high compliance, medium compliance, and low compliance according to the proportion values to obtain the voltage amplitude matching level and the duration matching level;

[0099] According to the voltage amplitude matching level and the duration matching level, call the comprehensive compliance level decision table for item-by-item matching, and use the lower value of the two levels as the comprehensive matching level. Define the comprehensive matching level as the compliance degree of the islanding event, and generate the islanding event compliance index.

[0100] Specifically, based on the core voltage disturbance parameter pair obtained in the previous stage, this parameter pair includes the peak value of the voltage amplitude in this transient event (for example, the calculated peak effective value is 240.0 volts) and the cumulative over-limit duration of the voltage amplitude exceeding the normal operation range (for example, 40 milliseconds). The system will first retrieve the "preset islanding event characteristic reference interval" from a pre-configured parameter library. This reference interval is comprehensively defined based on the statistical analysis of a large number of known real islanding event data and in combination with relevant industry standards (such as the description of the voltage and frequency behavior in the islanding state in the requirements for distributed power grid connection operation in IEEE1547), aiming to delimit the characteristic range of the voltage amplitude and duration that a typical islanding event is most likely to exhibit. This reference interval specifically includes two parts: one is the "voltage amplitude threshold range", for example, set to [215.0 volts, 245.0 volts] (this range indicates that the voltage in the initial stage of islanding may be in an interval close to normal but slightly offset. This value is set based on the common voltage fluctuation characteristics when the distributed power supply independently supplies power after the 230-volt nominal voltage system loses the support of the main grid. The lower limit is the nominal voltage minus about 6.5%, and the upper limit is the nominal voltage plus about 6.5%), and the other is the "duration threshold range", for example, set to [0.5 seconds, 2.0 seconds] (this range is set based on the fact that the islanding detection algorithm usually needs to respond within a few seconds, while excluding extremely short transient disturbances and considering the possible maintenance time length of the islanding before instability). Subsequently, the system compares the peak value of the voltage amplitude (240.0 volts) in the core voltage disturbance parameter pair with the upper and lower limits of the retrieved voltage amplitude threshold range [215.0 volts, 245.0 volts] respectively and calculates their differences. Specifically, if the measured value is within the interval, the difference is defined as 0. If it is outside the interval, the difference is defined as the absolute difference between the measured value and the nearest interval boundary. For example, since the peak value of the voltage amplitude 240.0 volts is within the interval [215.0 volts, 245.0 volts], the voltage amplitude difference is 0 volts. Similarly, the cumulative over-limit duration (40 milliseconds, that is, 0.04 seconds) is compared with the upper and lower limits of the duration threshold range [0.5 seconds, 2.0 seconds]. Since 0.04 seconds is less than the lower limit of 0.5 seconds, the difference is calculated as , thus obtaining the voltage amplitude difference and the duration difference respectively.

[0101] Based on the voltage amplitude difference (e.g., 0 volts) and the duration difference (e.g., 0.46 seconds) calculated in the previous step, and referring to the "preset reference interval for islanding event characteristics" as the evaluation criterion, the system then calculates the relative proportion values of these two differences respectively accounting for the widths of their corresponding characteristic reference intervals. First, determine the widths of each reference interval: the width of the voltage amplitude threshold range [215.0 volts, 245.0 volts] is , and the width of the duration threshold range [0.5 seconds, 2.0 seconds] is . The relative proportion value of the voltage amplitude difference is calculated as the voltage amplitude difference divided by the width of the voltage amplitude reference interval, that is . The relative proportion value of the duration difference is calculated as the duration difference divided by the width of the duration reference interval, that is . Then, based on the preset grading rules, the system classifies each of these calculated relative proportion values (which are actually the degrees of deviation) into three grades: high compliance, medium compliance, and low compliance. The grading rules are as follows (where the smaller the proportion value, the more it conforms to the characteristics): for the relative proportion values of voltage amplitude and duration, if the proportion value is less than or equal to 0.1 (i.e., the difference does not exceed 10% of the corresponding interval width), it is rated as "high compliance"; if the proportion value is greater than 0.1 and less than or equal to 0.3 (i.e., the difference is between 10% and 30% of the interval width), it is rated as "medium compliance"; if the proportion value is greater than 0.3 (i.e., the difference exceeds 30% of the interval width), it is rated as "low compliance". These thresholds (0.1 and 0.3) are set based on the sensitivity analysis of the distribution of islanding event characteristic parameters and combined with expert experience, aiming to effectively distinguish different degrees of matching situations. According to this rule, the relative proportion value of the voltage amplitude is 0, so the voltage amplitude matching grade is "high compliance", and the relative proportion value of the duration is approximately 0.3067, so the duration matching grade is "low compliance". Finally, the voltage amplitude matching grade and the duration matching grade are obtained.

[0102] Based on the voltage amplitude matching level (e.g., "high compliance") and duration matching level (e.g., "low compliance") obtained from the previous step's assessment, the system then calls an internally stored "comprehensive compliance level decision table" or executes equivalent logical rules to comprehensively evaluate these two individual matching levels. The construction principle of this decision table is that the overall compliance is considered high only when all the characteristic parameters participating in the evaluation exhibit highly similar characteristics to a typical islanding event. In this method, the specific comprehensive rule adopted is to take the lower level of the voltage amplitude matching level and the duration matching level as the final comprehensive matching level. For example, if "high compliance" is assigned 3 points, "medium compliance" is assigned 2 points, and "low compliance" is assigned 1 point, then the score for the voltage amplitude matching level is 3 points, the score for the duration matching level is 1 point, and the lowest value of the two is 1 point, corresponding to "low compliance". Therefore, the comprehensive matching level is "low compliance", and this comprehensive matching level is defined as a quantitative indicator of the degree of compliance between the current transient disturbance event and the true islanding event. Finally, based on this comprehensive matching level ("low compliance"), the system generates the islanding event compliance indicator for this analysis.

[0103] The steps to obtain the power grid disturbance source classification code are as follows:

[0104] Based on the islanding event compliance indicator, extract the compliance level, combine the voltage change rate and the amplitude jump direction within a fixed interval before and after the triggering moment, form a triple of the compliance level value, voltage change rate value, and amplitude change sign, and generate a disturbance feature input combination.

[0105] According to the disturbance feature input combination, calculate the disturbance source type identification value. The calculation formula is:

[0106] ;

[0107] where, is the disturbance source type identification value, is the number of disturbance feature points, is the th moment's instantaneous voltage amplitude increment, is the th moment's islanding event compliance level, is the compliance level reference constant;

[0108] Based on the disturbance source type identification value, perform classification matching with the disturbance type identification reference interval to generate the power grid disturbance source classification code.

[0109] Specifically, based on the islanding event compliance index generated in the previous stage, which quantifies the similarity between the current voltage disturbance and the characteristics of typical islanding events. For example, when the compliance is obtained as "low compliance", the system first extracts this compliance level and numerically represents it. Specifically, referring to the preset mapping rules: map "high compliance" to the numerical value 3, "medium compliance" to the numerical value 2, and "low compliance" to the numerical value 1. Therefore, the compliance level value of the current example is 1. Subsequently, the system combines the precise trigger time information recorded in an earlier stage (i.e., when the voltage transient was first triggered) to define a symmetric fixed time interval around this trigger time. For example, this fixed interval is set to be 100 milliseconds from 50 milliseconds before the trigger time to 50 milliseconds after the trigger time. The selection of this time interval is based on the fact that the key dynamic characteristics of most power grid disturbances (especially in the initial stage of faults and island formation) are usually most significant within dozens to one hundred milliseconds after the disturbance occurs. The system extracts the original high-frequency sampled instantaneous voltage amplitude data within this 100-millisecond interval from the immediate voltage data cache, and selects several (for example, ones, selecting one feature point every 10 milliseconds) disturbance feature points within this interval. For each feature point (from 1 to ), calculate the "instantaneous voltage amplitude increment" of this point relative to its immediately preceding sampling point . At the same time, record or determine the "amplitude jump direction" near each feature point (i.e., the sign of, positive for increase, negative for decrease), and combine the previously extracted overall event compliance level value (such as 1) with the instantaneous voltage amplitude increment calculated at each feature point (for example, the sequence ) and the corresponding amplitude change sign (for example, the sequence ) to jointly form a set of triples containing groups of information (or equivalently, each feature point corresponds to a triple ). This set is the generated disturbance feature input combination.

[0110] Formula: , the benefit of the formula is that it combines the dynamic characteristics of the voltage disturbance (reflected by the instantaneous voltage amplitude increment ) with the static compliance characteristics of the event (reflected by the difference between the islanding event compliance level and the reference ) to achieve comprehensive identification of the disturbance source type. The denominator term plays a regulating role: when the island compliance level of the event and the preset reference representing typical island characteristics When approaching closer, the denominator gets closer to 1, making the dynamic change of the voltage to more significant; conversely, if the island compliance of the event is very low (i.e., far from ), the denominator will increase, thus weakening the influence, and this design enables the value to more accurately reflect the nature of the disturbance. If a disturbance is dynamically intense (large ), but its characteristics do not match the island well, its value will be effectively suppressed. On the contrary, even if the dynamic change is not extreme, but if it highly conforms to the island characteristics, its contribution will be retained. By averaging multiple feature points, the robustness of the recognition result is enhanced, effectively distinguishing whether it is an island event or other types of power grid faults;

[0111] The steps to obtain the parameter are as follows. represents the total number of disturbance feature points used to calculate the disturbance source type recognition value . These feature points are selected within a fixed time interval defined and centered around the voltage transient trigger moment. For example, this fixed time interval is 100 milliseconds. If it is set to uniformly select feature points for analysis at a step of 10 milliseconds within this interval, then the number of selected feature points points; in this embodiment, feature points are selected.

[0112] The steps to obtain the parameter are as follows. represents the instantaneous voltage amplitude increment observed at the th disturbance feature point moment ( ranging from 1 to ), with the unit of volts (V). It is calculated by comparing the instantaneous voltage amplitude at this feature point moment with the instantaneous voltage amplitude at its immediately preceding original sampling moment, that is , where is the instantaneous voltage amplitude of the feature point, is the high-frequency sampling period of the system (e.g., 0.1 millisecond). These values directly reflect the microscopic dynamic change of the voltage near the feature point. For example, for cases, three consecutive voltage instantaneous amplitude increments extracted from the generated disturbance feature input combination may be: , , , which means the voltage drops by 15 volts at the first feature point, drops by 25.5 volts at the second point, and rises by 8.2 volts at the third point.

[0113] The parameter The obtaining steps of represent the numerical representation of the islanding event compliance level evaluated at the -th perturbed feature point moment. This level value is derived from the extraction and quantification of the "islanding event compliance index" for the entire transient event, that is, "high compliance" corresponds to 3, "medium compliance" corresponds to 2, and "low compliance" corresponds to 1. Since the "islanding event compliance index" is a single evaluation result given for the entire identified transient event, in the summation term of the current formula, for all feature points (from 1 to ) has the same value, that is . For example, if the obtained event compliance level is "low compliance", its numerical value after conversion is 1. Therefore, for all , , this parameter reflects the similarity between the current perturbation and the islanding in macroscopic features.

[0114] The parameter The obtaining steps are as follows: is a preset compliance level benchmark constant without unit. It is used as a reference point to evaluate the relative position of the actual islanding event compliance level . Its value is set to optimize 's ability to distinguish different perturbation types. The setting strategy is to set as the value representing the "highly compliant" islanding event, so that when is also "high compliance", the term is minimized, thereby maximizing the influence of on . If "high compliance" is mapped to the numerical value 3, then can be set.

[0115] Calculation process: Take , as an example. From the above parameter obtaining steps, we have: V, (low compliance).

[0116] Calculate term: Since and is the same for all , so . . .

[0117] Now calculate each term of the summation : For , for , for ;

[0118] Summation ;

[0119] Calculation ;

[0120] The result shows that after comprehensively considering the instantaneous dynamic changes of voltage and the compliance of the overall event with the island characteristics, the identified value of the disturbance source type obtained by calculation is approximately -4.815. This negative value and its specific magnitude are the key numerical bases for distinguishing the disturbance source type. A larger negative value may indicate a certain type of power grid fault (such as a rapid voltage drop), while a larger positive value may indicate another type of disturbance or a characteristic more tending to an island (depending on the design intention and subsequent classification criteria).

[0121] Based on the identified value of the disturbance source type obtained from the previous step , for example, its value is -4.815. Next, it will be classified and matched with a set of pre-defined "reference intervals for disturbance type identification". This set of reference intervals is divided and calibrated based on the value statistical distribution characteristics of a large number of known types of power grid disturbance events (including various faults, operation disturbances, and real and simulated island events). Each interval corresponds to a specific power grid disturbance source classification code. For example, the reference intervals and corresponding classification codes may be set as follows (these thresholds are empirically determined based on historical data analysis and simulation results to ensure the distinguishability of the value distributions of various events ): If , the classification code is "GF01" (indicating a severe voltage dip type power grid fault). If , the classification code is "GF02" (indicating a general voltage dip or short-term fluctuation type power grid fault). If , the classification code is "UD00" (indicating an unclear or minor disturbance, non-typical island and non-typical fault). If , the classification code is "IS01" (indicating a suspected island or specific non-fault disturbance). If , the classification code is "IS02" (indicating a highly suspected island event). Match the currently calculated with the above intervals. Since , it falls into the interval corresponding to the classification code "GF02". The system thus generates the power grid disturbance source classification code for this disturbance as "GF02".

[0122] The steps for obtaining the anti-islanding regulation instruction are as follows:

[0123] According to the power grid disturbance source classification code, analyze the encoded bit sequence in the power grid disturbance source classification code, interpret each encoded bit as three identifiers: disturbance type, disturbance intensity level, and duration level. Judge the value of the disturbance type identifier. If the identifier field does not belong to the valid encoding range representing islanding events, then determine that the current transient disturbance is a non-islanding type of power grid fault, and generate a power grid fault type determination result;

[0124] Based on the power grid fault type determination result, combined with the current system operating state, extract the inverter operating mode, power grid frequency state, and load power fluctuation value. Use these three parameters as judgment conditions for conditional combination reasoning, select the inverter operating method corresponding to the matching conditions, and determine whether to limit the inverter injection current, and generate an inverter response mode;

[0125] Based on the inverter response mode, expand the control actions included in the response mode into parameters, list item by item the values set for active power output suppression, reactive power compensation amplitude adjustment, and grid-connected current phase offset, and combine all control action parameters to generate an anti-counterflow adjustment instruction.

[0126] Specifically, according to the power grid disturbance source classification code generated in the previous stage, for example, the obtained classification code is "GF02". The system first performs a structured analysis on this code. For example, the "power grid disturbance source classification code" adopts a four-character structure, where the first two letters represent the major category of the disturbance, and the last two digits represent the disturbance intensity and duration characteristics or sub-classifications respectively. Therefore, for "GF02", the system parses it as follows: the first two characters "GF" are used as the disturbance type identifier, representing "Grid Fault", the third digit "0" is used as the disturbance intensity level identifier. For example, 0 represents low intensity, 1 represents medium intensity, and 2 represents high intensity. The fourth digit "2" is used as the disturbance duration or specific sub-type level identifier. For example, 0 represents instantaneous, 1 represents short-term, and 2 represents persistent or specific fault sub-class. Next, the system judges the value of the parsed disturbance type identifier "GF", compares it with the preset "valid encoding range representing islanding events", which is preset according to system definitions and relevant standards to uniquely identify islanding or suspected islanding events. For example, all codes starting with "IS" (IslandSuspected / Detected) (such as "IS01", "IS02") are defined as the valid encoding representing islanding events. Since the currently parsed disturbance type identifier "GF" is not within the encoding range starting with "IS", the system determines that the currently occurring transient disturbance is indeed a non-islanding type of power grid fault, and generates a clear power grid fault type determination result of "non-islanding type of power grid fault" accordingly.

[0127] Based on the determination result of the power grid fault type generated in the previous step, it is confirmed that the current disturbance is a "power grid fault of non-island type". The system further combines the current real-time overall operating state information of the photovoltaic system to determine the specific response strategy of the inverter. For this purpose, the system extracts the following three key current system operating state parameters from the supervisory control and data acquisition system: The first item is the "inverter operating mode". For example, by reading the internal status register of the inverter, it is known that the current mode is "maximum power point tracking (MPPT) mode"; the second item is the "power grid frequency status". The grid-connected point frequency is measured in real time by a high-precision frequency meter. For example, the current frequency is measured to be 49.6 Hz, and the status is determined based on a preset frequency threshold. This threshold is set according to the power grid operation standard (such as the allowable deviation of the State Grid frequency is usually 50 Hz Hz, which can be relaxed to Hz in case of emergency), for example, less than 49.5 Hz is defined as "too low frequency", 49.5 to 50.5 Hz is "normal frequency", and higher than 50.5 Hz is "too high frequency". Then the current 49.6 Hz belongs to the state of being slightly lower than "normal frequency"; the third item is the "load power fluctuation value", which is calculated by the percentage of the change in the net exchange power at the grid-connected point in the past short period (for example, the last 1 second) relative to the rated power of the inverter. For example, the calculated fluctuation value is +15% (indicating that the load suddenly decreases or the photovoltaic output increases relatively), and it is compared with the preset fluctuation threshold (for example, low fluctuation: less than 5%, medium fluctuation: 5% to 20%, high fluctuation: greater than 20%, these thresholds are set based on the local load characteristics and the experience of the inverter regulation ability). The current fluctuation belongs to "medium fluctuation". Subsequently, the system uses the determination result of the "power grid fault of non-island type" that has been confirmed, and the three parameters of the "inverter operating mode (MPPT)", "power grid frequency status (slightly lower than normal)", and "load power fluctuation value (medium fluctuation)" that are extracted and determined as input conditions, and applies the built-in conditional combination reasoning logic (usually a set of IF-THEN-ELSE rule sets, which are pre-programmed by power grid safety experts and inverter control engineers according to relevant grid connection guidelines and anti-counterflow requirements). For example, a rule may be: "If it is a non-island power grid fault, and the frequency is normal, and the load power has a medium positive fluctuation (the trend of net power flowing into the power grid increases), then the inverter should slightly suppress the active power output and check the reactive power demand". By matching these conditions, the system selects an inverter operating method that is most suitable for the current situation, and determines whether it is necessary and to what extent to limit the grid-connected injection current of the inverter, and finally generates an inverter response mode, such as "active power slightly suppression mode combined with voltage support".

[0128] Based on the inverter response mode generated in the previous step, for example, determined as "mild active power suppression mode combined with voltage support", the system further specifies this abstract response mode into a set of directly executable control parameters and actions. First, the system parameterizes and expands each standard control action included in this response mode, that is, searches for the preset parameter sets associated with the "mild active power suppression mode combined with voltage support" mode. These parameter sets are predefined and stored in the inverter control logic according to the inverter design specifications, grid connection protocols, and a large number of simulation test results. For example, "mild active power suppression" may be specifically quantified as reducing the current active power output by 10% of its rated value, or reducing it to an absolute safety upper limit value. For example, if the current output is 50 kW and the rated value is 100 kW, the target output after suppression is , or directly set to not exceed 40 kW. "Voltage support" may be expanded to adjust the reactive power output to help stabilize the grid voltage. For example, according to the current grid connection point voltage measurement value, if the voltage is low, the inverter is instructed to generate inductive reactive power, and its amplitude may be set to 5% of the rated apparent power, that is, output 5 kVA of reactive power. At the same time, the phase shift of the grid-connected current is also accurately calculated and set according to the required active and reactive power combinations. For example, when the target active power is 45 kW and the reactive power is 5 kVA, the corresponding current amplitude and phase angle reference values are calculated. The system lists these specific set values item by item: the target value of the active power output (for example, 45 kW), the target kVA value of the reactive power compensation (for example, 5 kVA), and the adjusted grid-connected current phase angle (for example, lagging behind the voltage by degrees). Then, all these detailed control action parameters (active power set point, reactive power set point, current phase setting, etc.) are combined and packed to form a structured data instruction. This instruction is the finally generated anti-counterflow regulation instruction and is sent to the underlying control execution unit of the inverter.

[0129] The above is only the preferred embodiment of the present invention, and it is not intended to limit the present invention in other forms. Any person skilled in the art may use the technical content disclosed above to make changes or modifications into equivalent embodiments with equivalent changes and apply them to other fields. However, as long as it does not depart from the technical solution content of the present invention, any simple modification, equivalent change, and modification made to the above embodiments based on the technical essence of the present invention still fall within the protection scope of the technical solution of the present invention.

Claims

1. A method for preventing reverse current in a photovoltaic system, characterized in that, Including the following steps: Periodically sample the grid-connected point voltage of the photovoltaic system and the grid, continuously obtain the instantaneous measurement values of the voltage, and establish and update the immediate voltage data cache; Based on the immediate voltage data cache, extract the voltage data within the most recent fixed time window, calculate the maximum change rate of the voltage amplitude within the time window, and judge to generate a voltage transient trigger signal; In response to the generated voltage transient trigger signal, lock the data of the voltage transient occurrence section corresponding to the trigger moment from the immediate voltage data cache to form a locked transient voltage segment; Based on the locked transient voltage segment, calculate the maximum peak value of the voltage amplitude within the segment and the duration for which the voltage exceeds the normal operating range to obtain a pair of core voltage disturbance parameters; According to the voltage peak amplitude and duration in the pair of core voltage disturbance parameters, match and compare with the preset reference interval of the island event characteristics, judge the degree of conformity between the disturbance event and the real island event, and establish an island event conformity index; Based on the island event conformity index, evaluate the source of the current transient disturbance and determine the grid disturbance source classification code; According to the obtained grid disturbance source classification code, judge whether the current transient disturbance belongs to a non-island type grid fault, determine the response mode of the inverter, and generate an anti-backflow regulation instruction; The steps for obtaining the island event conformity index are as follows: According to the voltage amplitude peak and the cumulative overlimit duration in the pair of core voltage disturbance parameters, respectively retrieve the corresponding voltage amplitude threshold range and duration threshold range within the preset reference interval of the island event characteristics, and calculate the difference between the voltage amplitude peak and the duration and the upper and lower thresholds of the reference interval one by one to obtain the voltage amplitude difference and the duration difference; Based on the voltage amplitude difference and the duration difference, taking the preset reference interval of the island event characteristics as the standard, calculate the relative proportion values of the two differences in their respective threshold intervals item by item, and divide the differences into three levels: high conformity, medium conformity, and low conformity according to the proportion values to obtain the voltage amplitude matching level and the duration matching level; According to the voltage amplitude matching level and the duration matching level, call the comprehensive conformity level decision table for item-by-item matching, and take the lower value of the two levels as the comprehensive matching level, define the comprehensive matching level as the degree of conformity of the island event, and generate an island event conformity index; The steps for obtaining the grid disturbance source classification code are as follows: Based on the island event conformity index, extract the conformity level, combine the voltage change rate and the amplitude jump direction within a fixed interval before and after the trigger moment, form a triple of the conformity level value, the voltage change rate value, and the amplitude change sign, and generate a disturbance characteristic input combination; According to the disturbance characteristic input combination, calculate the disturbance source type identification value; Based on the disturbance source type identification value, perform classification matching with the disturbance type identification reference interval to generate a grid disturbance source classification code.

2. The method for preventing reverse current in a photovoltaic system according to claim 1, characterized in that The steps for obtaining the immediate voltage data cache are as follows: By setting the voltage sampling trigger period, the voltage sensor at the grid connection point is called to continuously record the instantaneous measured values of the grid connection point voltage obtained at each sampling trigger moment, and all the measured values are sequentially input into the data temporary storage area to obtain a sequence of instantaneous measured values of the grid connection point voltage; According to the sequence of instantaneous measured values of the grid connection point voltage, the voltage information is entered item by item in chronological order, a voltage record table structure with time stamps is established, and data overwrite or append updates are performed after each sampling to generate a voltage measurement record set with a time index; Based on the voltage measurement record set with a time index, the newly collected data is judged for duplication, and the voltage record set arranged in chronological order is dynamically maintained to generate an instant voltage data cache.

3. The method for preventing reverse current in a photovoltaic system according to claim 1, wherein The steps for obtaining the voltage transient trigger signal are as follows: Based on the instant voltage data cache, trace back from the current time point to a preset fixed time period forward, extract all the voltage amplitude data and corresponding time stamp information arranged in sequence within the fixed time period, and form a voltage amplitude sequence and a time sequence within the fixed time window; According to the voltage amplitude sequence and the time sequence within the fixed time window, calculate the change rate fluctuation intensity of the voltage amplitude; According to the change rate fluctuation intensity of the voltage amplitude, compare it with the rate fluctuation critical value set under the stable operation condition. If the change rate fluctuation intensity of the voltage amplitude is greater than the critical value, it is judged that a transient disturbance has occurred, and a voltage transient trigger signal is generated.

4. The method for preventing reverse current in a photovoltaic system according to claim 1, characterized in that, The steps for obtaining the locked transient voltage segment are as follows: Based on the trigger moment information carried in the voltage transient trigger signal, retrieve the voltage record position corresponding to the trigger moment in the instant voltage data cache, determine the voltage record index position corresponding to the moment when the voltage transient trigger signal is generated, and generate a voltage transient start index; According to the voltage transient start index, retrieve and extend forward and backward from the instant voltage data cache respectively, track the process of the voltage transient amplitude deviating from the stable state for the first time and recovering to the stable state, determine the start and end index intervals of the voltage transient occurrence, and form a voltage transient occurrence section; Based on the voltage transient occurrence section, jointly extract and separately store all the voltage amplitude data and corresponding moment data in the instant voltage data cache within the voltage transient occurrence section, construct an independent voltage amplitude and moment information sequence, and obtain the locked transient voltage segment.

5. The method for preventing reverse current in a photovoltaic system according to claim 1, characterized in that, The steps for obtaining the core voltage disturbance parameter pair are as follows: Based on the locked transient voltage segment, extract all the voltage amplitude data and corresponding time stamp information within the segment, construct a voltage amplitude sequence and a time stamp sequence with a matching structure, and obtain a transient voltage amplitude sequence and a time stamp sequence; According to the transient voltage amplitude sequence and the time stamp sequence, calculate the maximum peak value and count the duration for which the voltage amplitude exceeds the normal operation range; Based on the maximum peak value extracted from the transient voltage amplitude sequence and the duration for which the voltage amplitude exceeds the normal operation range, combine them to form a corresponding relationship between the voltage amplitude peak value and the duration, and generate a core voltage disturbance parameter pair.

6. The method for preventing reverse current in a photovoltaic system according to claim 1, wherein The steps for obtaining the anti-counterflow regulation instruction are as follows: According to the grid disturbance source classification code, analyze the encoded bit sequence in the grid disturbance source classification code, interpret each encoded bit as three identifiers: disturbance type, disturbance intensity level, and duration level. Make a value judgment on the disturbance type identifier. If the identifier field does not belong to the valid coding range representing islanding events, determine that the current transient disturbance is a non-islanding type of grid fault, and generate a grid fault type determination result; Based on the grid fault type determination result, combined with the current system operating state, extract the inverter operating mode, grid frequency state, and load power fluctuation value. Use these three parameters as judgment conditions for conditional combination reasoning, select the inverter operating method corresponding to the matching conditions, and determine whether to limit the inverter injection current to generate an inverter response mode; Based on the inverter response mode, expand the control actions included in the response mode, list item by item the values set for active power output suppression, reactive power compensation amplitude adjustment, and grid-connected current phase offset. Combine all control action parameters to generate an anti-counterflow regulation instruction.

Citation Information

Patent Citations

  • Grid-connection point voltage rise suppression method for distributed power generation system

    CN107482674A

  • Source load system anti-reflux control method and device and source load system

    CN114498703A