Diesel generator system and control method based on grid-connected cooperative control
By performing offline testing and data decision-making in the diesel generator set, the problem of control instability caused by abnormal cloud-edge communication links was solved, and stable grid-connected operation and smooth transition under abnormal conditions were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SICHUAN CHUANNENG INTELLIGENT NETWORK IND CO LTD
- Filing Date
- 2026-03-20
- Publication Date
- 2026-06-23
Smart Images

Figure CN121886570B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system automation, specifically to a diesel generator system and control method based on grid-connected coordinated control. Background Technology
[0002] Diesel generator sets are often operated in grid-connected mode in microgrid, emergency power supply, and weak grid scenarios. To achieve cross-site collaborative scheduling, cloud-based energy management systems typically send collaborative control commands to the edge side, which in turn send them to the diesel generator set controller.
[0003] In actual operation, cloud-edge communication links may experience increased latency, latency jitter, packet loss, and intermittent interruptions, leading to uncertainty in the reception and execution of collaborative control commands. Simultaneously, measurement data may exhibit timestamp drift, authentication failures, or inconsistencies in electrical quantities, rendering closed-loop input unreliable. Continuing to execute cloud-based collaborative control under conditions of link or data anomalies may trigger reverse power, bus frequency / voltage fluctuations, or even protection actions. Conversely, simply isolating abnormal data could result in the loss of input for autonomous control and stability assessment, causing interruptions.
[0004] Therefore, a technical solution is needed that can maintain stable grid-connected operation under conditions of link anomaly, measurement anomaly, and timing anomaly, and can smoothly switch back to collaborative control after the link is restored. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a diesel generator control method based on grid-connected coordinated control, comprising the following steps:
[0006] Step 1: Perform offline time synchronization test and offline link test, and store node time deviation benchmark, link latency benchmark, link packet loss benchmark and control constraint benchmark;
[0007] Step 2: Collect reference time source time, collect the time measurement value of the metering device node and calculate the corrected time deviation of the metering device based on the node time deviation benchmark, collect cloud-edge link measurement value, calculate the link availability index based on the cloud-edge link measurement value, link delay benchmark and link packet loss benchmark, collect the metering device measurement data and diesel generator set controller measurement data, and generate measurement data;
[0008] Step 3: Perform integrity judgment, timing judgment, and physical consistency judgment on the measurement data to obtain the measurement data judgment result. Based on the link availability index and control constraint benchmark, obtain the cloud-edge link judgment result. The cloud-edge link judgment result is that when the link passes, the cloud-cloud collaborative control command is received and the command integrity judgment, command timing judgment, command replay judgment, and command feasible domain judgment are executed.
[0009] Step 4: When the instruction integrity judgment fails, the instruction replay judgment fails, or the instruction feasible domain judgment fails, the instruction buffer is maintained; when the instruction timing judgment fails, the time source is switched; when the measurement data judgment result is failed, the data source is isolated and the measurement data that passed the measurement data judgment most recently is used; when the cloud-edge link judgment result is failed, the autonomous control mode is switched and the slope limit active power input and slope limit reactive power input are issued.
[0010] Step 5: In autonomous control mode, Step 2 is executed repeatedly, and cloud-edge link decisions are made based on link availability indicators and control constraint benchmarks; and stability judgment results are generated based on measurement data; when the stability judgment result meets the stability threshold and the cloud-edge link decision result is passed, the system switches to cooperative control mode within a preset transition time, with active power limit slope and reactive power limit slope as constraints.
[0011] Furthermore, the aforementioned node time deviation reference includes:
[0012] The time deviation benchmark of the diesel generator set controller relative to the reference time source is calculated based on offline time synchronization test; the time deviation benchmark of the metering device relative to the reference time source is calculated based on offline time synchronization test; and the local high-stability clock drift parameter is calculated based on offline time synchronization test.
[0013] Furthermore, the control constraint benchmarks include:
[0014] The set of link thresholds includes: stability threshold, bus rated frequency, bus rated voltage, measurement time window threshold, residual threshold, command time window threshold, preset transition duration, active power limit slope, and reactive power limit slope. Among them, the link threshold set includes delay threshold, jitter threshold, packet loss threshold, and interruption threshold; the stability threshold includes frequency stability threshold, voltage stability threshold, and stability duration threshold.
[0015] Furthermore, the link availability metrics include: round-trip time, latency jitter, packet loss rate, and duration of continuous outages.
[0016] Furthermore, the cloud-edge link decision result obtained based on link availability metrics and control constraint benchmarks includes:
[0017] The cloud-edge link decision result is passed if, based on the control constraint benchmark, the round-trip delay is not greater than the delay threshold, the delay jitter is not greater than the jitter threshold, the packet loss rate is not greater than the packet loss threshold, and the continuous interruption duration is not greater than the interruption threshold; otherwise, the cloud-edge link decision result is failed.
[0018] Furthermore, the measurement data includes: metering device measurement timestamp, metering device measurement authentication field, metering device bus frequency, metering device bus voltage, metering device grid connection point active power, metering device load active power, diesel generator set controller output active power, and diesel generator set controller reverse power flag.
[0019] Furthermore, the aforementioned physical consistency determination includes:
[0020] The active power at the metering device's grid connection point is positive in the direction of external power grid input to the bus. The active power output of the diesel generator set controller is positive in the direction of diesel generator set input to the bus. The active power of the metering device's load is positive in the direction of bus output to the load. The power balance residual is calculated as the absolute value of the difference between the active power of the metering device's load, the active power at the metering device's grid connection point, and the active power output of the diesel generator set controller. It is determined that the power balance residual is not greater than the residual threshold of the control constraint benchmark.
[0021] Furthermore, the aforementioned timing decision includes:
[0022] The calibration measurement timestamp is obtained by correcting the measurement time deviation of the metering device. The absolute value of the measurement time difference is calculated based on the reference time source time and the calibration measurement timestamp. It is then determined that the absolute value of the measurement time difference is not greater than the measurement time window threshold of the control constraint benchmark.
[0023] Furthermore, the generation of stability determination results based on measurement data includes performing the following calculations and multi-dimensional decision logic:
[0024] Calculate the absolute value of the bus frequency deviation relative to the rated bus frequency and the absolute value of the bus voltage deviation relative to the rated bus voltage. Determine whether the following instantaneous stability conditions are met simultaneously: the absolute value of the bus frequency deviation is not greater than the frequency stability threshold; the absolute value of the bus voltage deviation is not greater than the voltage stability threshold; and the reverse power flag of the diesel generator set controller is 0. If these conditions are met, the stability determination result is determined to meet the stability threshold when the stability state duration is not less than the stability duration threshold, based on the cumulative stable state duration of the reference time source.
[0025] The diesel generator system based on grid-connected collaborative control, using the aforementioned diesel generator control method based on grid-connected collaborative control, includes: a reference time source, a backup time source, a cloud-based energy management module, an edge collaborative controller, a metering device, a diesel generator set controller, and a communication interface and data processing module.
[0026] The reference time source, backup time source, edge collaboration controller, metering device, diesel generator set controller, and communication interface are respectively connected to the data processing module; the cloud energy management module is connected to the communication interface.
[0027] The beneficial effects of this invention are as follows: by using cloud-edge link decision as a prerequisite for receiving and executing collaborative control commands, the risk of miscontrol caused by link anomalies is reduced; closed-loop input reliability screening is achieved through measurement data integrity, timing, and physical consistency decisions; input interruption caused by isolation is avoided by using data source isolation combined with the most recently passed decision measurement data; mode back-switching impact is reduced through stable thresholds, preset transition durations, and dual-slope limiting transition strategies; and robustness under time synchronization anomaly scenarios is improved through time source switching and local high-stability clock hold mode. Attached Figure Description
[0028] Figure 1 This is a flowchart illustrating the diesel generator control method based on grid-connected collaborative control. Detailed Implementation
[0029] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings, but the scope of protection of the present invention is not limited to the following description.
[0030] The features and performance of the present invention will be further described in detail below with reference to embodiments.
[0031] Example 1, as Figure 1 As shown, the diesel generator control method based on grid-connected coordinated control includes the following steps:
[0032] Step 1: Perform offline time synchronization test and offline link test, and store node time deviation benchmark, link latency benchmark, link packet loss benchmark and control constraint benchmark;
[0033] Step 2: Collect reference time source time, collect the time measurement value of the metering device node and calculate the corrected time deviation of the metering device based on the node time deviation benchmark, collect cloud-edge link measurement value, calculate the link availability index based on the cloud-edge link measurement value, link delay benchmark and link packet loss benchmark, collect the metering device measurement data and diesel generator set controller measurement data, and generate measurement data;
[0034] Step 3: Perform integrity judgment, timing judgment, and physical consistency judgment on the measurement data to obtain the measurement data judgment result. Based on the link availability index and control constraint benchmark, obtain the cloud-edge link judgment result. The cloud-edge link judgment result is that when the link passes, the cloud-cloud collaborative control command is received and the command integrity judgment, command timing judgment, command replay judgment, and command feasible domain judgment are executed.
[0035] Step 4: When the instruction integrity judgment fails, the instruction replay judgment fails, or the instruction feasible domain judgment fails, the instruction buffer is maintained; when the instruction timing judgment fails, the time source is switched; when the measurement data judgment result is failed, the data source is isolated and the measurement data that passed the measurement data judgment most recently is used; when the cloud-edge link judgment result is failed, the autonomous control mode is switched and the slope limit active power input and slope limit reactive power input are issued.
[0036] Step 5: In autonomous control mode, Step 2 is executed repeatedly, and cloud-edge link decisions are made based on link availability indicators and control constraint benchmarks; and stability judgment results are generated based on measurement data; when the stability judgment result meets the stability threshold and the cloud-edge link decision result is passed, the system switches to cooperative control mode within a preset transition time, with active power limit slope and reactive power limit slope as constraints.
[0037] Specifically, the edge co-controller performs offline time synchronization tests and offline link tests in offline mode, and stores the results through the benchmark storage module:
[0038] Node time deviation reference: at least includes the time deviation reference of the diesel generator set controller relative to the reference time source, the time deviation reference of the metering device relative to the reference time source, and the local high-stability clock drift parameters;
[0039] Link latency baseline and link packet loss baseline: used to characterize the latency and packet loss baseline of cloud-edge links under offline controllable conditions;
[0040] Control constraint benchmarks include at least the following: link threshold set, stability threshold, bus rated frequency, bus rated voltage, measurement time window threshold, residual threshold, command time window threshold, preset transition duration, active power limit slope and reactive power limit slope. The link threshold set includes delay threshold, jitter threshold, packet loss threshold and interruption threshold. The stability threshold includes frequency stability threshold, voltage stability threshold and stability duration threshold.
[0041] Offline time synchronization testing can obtain a time deviation benchmark using a sampling alignment method of "reference time source time - node time measurement value". The drift parameter of the local high-stability clock can be estimated from the change in time deviation over the test duration during the time synchronization test. An implementable drift estimation method is given below:
[0042] Within the time synchronization test interval, record the time deviation between the two moments. , and corresponding duration Calculate drift parameters .
[0043] Offline link testing is used to obtain link latency and packet loss benchmarks. An implementable benchmark calculation method is provided: during offline link testing, send... Each probe message was sent and round-trip delay samples were recorded. Count the number of lost messages With the number of transmissions :
[0044]
[0045] in, Used as a reference for link delay; For the offline link testing phase Round-trip delay of the probe message; This is the length of the offline link test window.
[0046]
[0047] in, As a baseline for packet loss in the link; This represents the number of packets lost within the offline link test window. This represents the number of packets sent within the offline link test window.
[0048] During grid-connected operation, the edge collaborative controller periodically executes step two:
[0049] Acquire reference time source time. The reference time source time is the time synchronization value output by the reference time source; the reference time source is the time synchronization output currently selected by the system, and can be switched to the backup time synchronization source output or the local high-stability clock hold mode output after the time source is switched.
[0050] Collect the node time measurement values of the metering device, and calculate the calibration time deviation of the metering device based on the node time deviation benchmark, which is used for subsequent measurement timestamp correction.
[0051] Collect cloud-edge link measurements and calculate link availability metrics based on cloud-edge link measurements, link latency benchmarks, and link packet loss benchmarks.
[0052] Collect measurement data from the metering device and the diesel generator set controller, and generate a measurement data object, wherein:
[0053] The measurement data of the metering device shall include at least: the metering device measurement timestamp, the metering device measurement authentication field, the metering device bus frequency, the metering device bus voltage, the metering device grid connection point active power, and the metering device load active power;
[0054] The measurement data of the diesel generator set controller shall include at least: the active power output of the diesel generator set controller and the reverse power indicator of the diesel generator set controller.
[0055] To ensure that the timing decision of measurement data has a definite caliber, the following correction and time window calculation methods can be used:
[0056]
[0057] in, To correct time deviations in the measuring device; The time measurement value of the metering device node; Reference time source time; This serves as the time deviation benchmark for the metering device relative to the reference time source.
[0058]
[0059] in, To correct the measurement timestamp; For measuring timestamps of the measuring device.
[0060]
[0061] in, This is the absolute value of the time difference measurement.
[0062] Edge co-controller will The measurement time window threshold in the control constraint benchmark is compared to output the measurement data timing decision.
[0063] Link availability metrics include round-trip time, latency jitter, packet loss rate, and duration of continuous outages. To calculate link availability metrics based on cloud-edge link measurements, link latency benchmarks, and link packet loss benchmarks, the following statistical and benchmark fusion method can be adopted:
[0064] In length Round-trip delay sequences of cloud-edge link probe packets are collected within a sliding window. , obtain window statistics and Within the same sliding window, the number of lost and transmitted probe packets is counted to obtain the packet loss rate statistics. Count the number of consecutive detection timeouts to obtain the duration of continuous interruptions. ; link delay benchmark Compared with link packet loss benchmark As a fusion component, online statistics are smoothed or corrected to form a link availability metric used for decision-making:
[0065]
[0066] in, Calculate round-trip delay for the window; For the first in the window Round-trip delay of the probe message; The length of the window;
[0067]
[0068] in, Calculate window latency jitter.
[0069]
[0070] in, Calculate the packet loss rate for the window; This represents the number of messages lost within the window. This represents the number of messages sent within the window.
[0071]
[0072] in, Duration of continuous interruption; This represents the number of times the continuous detection will time out. The detection period.
[0073] Furthermore, utilizing the fusion coefficient Integrate online statistics with link benchmarks:
[0074]
[0075] in, This refers to the round-trip time delay indicator; The fusion coefficient is and satisfies ; This serves as a reference for link delay.
[0076]
[0077] in, The packet loss rate is an indicator. This serves as a baseline for packet loss in the link.
[0078] The latency jitter metric is acceptable. The continuous interruption duration metric can be taken as The above definition is an example; equivalent definitions may also be used, as long as the link availability metric definition and threshold comparison logic are consistent.
[0079] The edge co-controller performs the following actions on the measurement data:
[0080] Integrity decision: Based on the verification result of the measurement authentication field of the metering device, output the integrity decision as either pass or fail;
[0081] Timing decision: based on The timing result is compared with the measurement time window threshold to determine whether the timing pass or fail.
[0082] Physical consistency judgment: The active power at the grid connection point of the metering device, the active power output of the diesel generator set controller, and the active power of the load of the metering device are all taken as positive, and the power balance residual is calculated.
[0083] The measurement authentication field of the metering device can be implemented using message authentication codes or digital signatures. One feasible message authentication code method is proposed: the set of measurement fields is hashed and combined with a shared key to calculate the authentication value. The edge collaborative controller recalculates the authentication value and compares it to complete the integrity determination.
[0084]
[0085] in, For power balance residuals; The active power of the load for the metering device is positively determined according to the direction of power output from the bus to the load. The active power at the grid connection point of the metering device is positively charged according to the direction of external power grid input to the busbar. The active power output of the diesel generator set controller is positively charged according to the direction of the diesel generator set feeding into the bus.
[0086] when If the residual value is not greater than the residual threshold in the control constraint baseline, the physical consistency decision is passed; otherwise, it fails. The residual threshold is used to cover measurement error, line loss margin, and sampling asynchronous error.
[0087] The aggregation rule for measurement data decision results can be as follows: when the integrity decision, timing decision, and physical consistency decision are all passed, the measurement data decision result is passed; when any one of the three decisions fails, the measurement data decision result is failed.
[0088] The edge collaborative controller performs cloud-edge link decisions based on the link availability index and the link threshold set in the control constraint benchmark. The cloud-edge link decision result is successful if the following conditions are met: round-trip delay is not greater than the delay threshold; delay jitter is not greater than the jitter threshold; packet loss rate is not greater than the packet loss threshold; continuous interruption duration is not greater than the interruption threshold; if any of these conditions are not met, the cloud-edge link decision result is unsuccessful.
[0089] When the cloud-edge link decision result is "pass", the edge collaborative controller receives the collaborative control command issued by the cloud energy management system and executes it:
[0090] Instruction integrity determination: The verification result of the instruction authentication field is output as either pass or fail. The instruction authentication field can be implemented using a message authentication code or a digital signature.
[0091] Instruction timing decision: The instruction timestamp is compared with the reference time source time in a window, and the comparison threshold is the instruction time window threshold in the control constraint baseline;
[0092] Instruction replay decision: Maintain the instruction sequence number window and use the set of received sequence numbers or bitmap in the window to determine duplicates;
[0093] Command Feasibility Domain Decision: Map the command load to active power and reactive power inputs, and output pass or fail based on the active power limit slope, reactive power limit slope and inverse power limit in the control constraint reference.
[0094] The replay decision can adopt the following window strategy: maintain the maximum received sequence number. With window width , when the new serial number It is judged as a failure when; And the window bitmap has been marked as outdated and is therefore considered a failure; when Updated regularly And scroll the window bitmap.
[0095] The edge co-controller performs control compensation and mode switching based on the decision result:
[0096] When instruction integrity determination fails, instruction replay determination fails, or instruction feasible domain determination fails, instruction buffer hold is executed. Instruction buffer hold maintains an instruction buffer queue that stores cooperative control instructions that have passed instruction determination; when hold is triggered, the most recently passed cooperative control instruction is read and active and reactive power inputs are maintained in a slope-limited manner.
[0097] When the instruction timing decision fails, the time source is switched: the reference time source is switched to the backup time source, and if the backup time source is unavailable, the reference time source is switched to the local high-stability clock hold mode.
[0098] When a measurement data decision result is unsuccessful, data source isolation is performed, and the measurement data from the most recent successful decision is used. Data source isolation rejects the untrusted measurement data and outputs the cached most recent successful decision measurement data, achieving zero-order hold. The cache update rule can be: when a measurement data decision result is successful, the current measurement data is written to the cache of the most recent successful decision measurement data.
[0099] When the cloud-edge link decision result is a failure, the autonomous control mode is switched and the active power limit and reactive power limit are issued to the diesel generator set controller. The limit slope is determined by the active power limit slope and reactive power limit slope in the control constraint benchmark.
[0100] In this specification, the slope-limited active power setpoint is the active power target setpoint sent by the edge collaborative controller to the diesel generator set controller. The slope-limited active power setpoint is generated by limiting the slope of the active power target setpoint, ensuring that the rate of change of the active power target setpoint within adjacent control cycles does not exceed the active power limit slope in the control constraint reference. This is used to suppress bus frequency fluctuations and reverse power risks caused by sudden changes in grid-connected power. The slope-limited reactive power setpoint is the reactive power target setpoint sent by the edge collaborative controller to the diesel generator set controller. The slope-limited reactive power setpoint is generated by limiting the slope of the reactive power target setpoint, ensuring that the rate of change of the reactive power target setpoint within adjacent control cycles does not exceed the reactive power limit slope in the control constraint reference. This is used to suppress bus voltage fluctuations and excitation shocks caused by sudden changes in reactive power. Both the slope-limited active power setpoint and the slope-limited reactive power setpoint serve as control inputs to the diesel generator set controller, used for a smooth transition during the switching process between autonomous control mode and collaborative control mode.
[0101]
[0102] in, For the first The slope limit of the output in each control cycle is given by the active power input. For the first The slope limit of the output in each control cycle is given by the active power input. For the first The active power target corresponding to each control cycle is given; To control the active power limit slope in the constraint benchmark; To control cycle duration;
[0103]
[0104] in, For the first The limiting slope reactive power given by the output of each control cycle; For the first The limiting slope reactive power given by the output of each control cycle; For the first The reactive power target corresponding to each control cycle is given; To control the reactive power limit slope in the constraint benchmark.
[0105] The above-mentioned slope limit update rule ensures that the changes in the active and reactive power of the slope limit setpoints within the control period are respectively controlled by... and The amplitude is limited, thereby maintaining stable delivery in autonomous control mode and achieving a smooth transition according to the preset transition time when switching back to collaborative control mode.
[0106] At the moment of switching to hold mode Record the reference time source time with local high-stability clock readings During the maintenance mode operation, the first The local high-stability clock reading is read during the next update. And based on drift parameters Extrapolation reference time source time:
[0107]
[0108] in, To maintain the reference time source time of the mode output; For the first The latest local high-stability clock reading; This is the local high-stability clock drift parameter and is the relative drift rate.
[0109] When the backup time source or the reference time source becomes available again, exit hold mode and complete the time source switch. The current time source can then be switched. Used as an initial value for continuous transition to avoid time jumps.
[0110] In autonomous control mode, the edge collaborative controller iteratively executes step two and performs cloud-edge link decisions based on link availability metrics and control constraint benchmarks, while simultaneously generating stability assessment results based on measurement data. The stability assessment includes at least:
[0111] Frequency stability determination: The absolute value of the difference between the metering device bus frequency and the bus rated frequency is not greater than the frequency stability threshold.
[0112] Voltage stability determination: The absolute value of the difference between the metering device bus voltage and the bus rated voltage is not greater than the voltage stability threshold.
[0113] Reverse power determination: The reverse power flag of the diesel generator set controller is 0;
[0114] Duration determination: The duration of the stable state is not less than the stable duration threshold.
[0115]
[0116] in, This represents the absolute value of the bus frequency deviation. The frequency of the metering device bus; The rated frequency of the busbar; This represents the absolute value of the bus voltage deviation. This refers to the bus voltage of the metering device. This is the rated voltage of the busbar.
[0117] The duration of stable operation is accumulated using a state machine approach: when the frequency stability, voltage stability, and inverse power conditions are simultaneously met for the first time, the reference time source time is recorded as... Clear when any condition is not met. And then wait for the next stable start:
[0118]
[0119] in, The duration of the steady state; The starting reference time for the stable state is the source time.
[0120] When the stability determination result meets the stability threshold of the control constraint benchmark and the cloud-edge link decision result is passed, the edge collaborative controller switches the collaborative control mode according to the active power limit slope and the reactive power limit slope within the preset transition time. During the switching process, the active power input and reactive power input in the collaborative control mode are updated with slope limiting to ensure that the change rate of active power input does not exceed the active power limit slope and the change rate of reactive power input does not exceed the reactive power limit slope.
[0121] Example 2: A diesel generator set control system based on grid-connected collaborative control, which applies the aforementioned diesel generator control method based on grid-connected collaborative control, includes: a reference time source, a backup time source, a cloud energy management module, an edge collaborative controller, a metering device, a diesel generator set controller, and a communication interface and data processing module.
[0122] The reference time source, backup time source, edge collaboration controller, metering device, diesel generator set controller, and communication interface are respectively connected to the data processing module; the cloud energy management module is communicatively connected to the communication interface; the edge collaboration controller includes:
[0123] Offline testing module: Performs offline time synchronization test and offline link test and generates node time deviation benchmark, link delay benchmark, link packet loss benchmark and control constraint benchmark;
[0124] The benchmark storage module stores node time deviation benchmarks, link delay benchmarks, link packet loss benchmarks, and control constraint benchmarks.
[0125] Acquisition module: Acquires reference time source time, metering device node time measurement value, cloud-edge link measurement value, metering device measurement data, and diesel generator set controller measurement data;
[0126] Time correction module: Calculates the correction time deviation of the metering device based on the node time deviation benchmark;
[0127] Link evaluation module: Calculates link availability metrics based on cloud-edge link measurements, link latency benchmarks, and link packet loss benchmarks;
[0128] Measurement data decision module: Performs integrity decision, timing decision, and physical consistency decision on the measurement data to obtain the measurement data decision result;
[0129] Link decision module: Obtains cloud-edge link decision results based on link availability indicators and control constraint benchmarks;
[0130] Command Decision Module: When the cloud-edge link decision result is pass, it receives cloud-based collaborative control commands and executes command integrity decision, command timing decision, command replay decision, and command feasible domain decision.
[0131] Buffer management module: Performs instruction buffer retention when instruction integrity decision fails, instruction replay decision fails, or instruction feasible field decision fails;
[0132] Time source switching module: Performs time source switching when instruction timing determination fails;
[0133] Data source isolation module: Performs data source isolation and uses the most recent measurement data that passed the measurement data decision when the measurement data decision result is unsuccessful;
[0134] Autonomous control module: When the cloud-edge link decision result is failure, it issues the slope limit active power input and the slope limit reactive power input;
[0135] Stability determination module: Generates stability determination results based on measurement data;
[0136] Mode Management Module: In autonomous control mode, the acquisition module, time correction module and link evaluation module are driven to run and execute cloud-edge link decision. When the stability judgment result meets the stability threshold of the control constraint benchmark and the cloud-edge link decision result is passed, the collaborative control mode is switched according to the active power limit slope and reactive power limit slope within the preset transition time.
[0137] Example 3: Based on Example 1, updates can be made based on historical windows. and Or adjust the fusion coefficient This enables the link availability metric to distinguish between long-term, slowly changing biases and short-term, sudden anomalies; at the same time, it can link the link threshold set with the baseline value, so that the threshold set is updated slowly with the baseline, thereby reducing the probability of misjudgment caused by fixed thresholds when link conditions change.
[0138] Example 4: Based on Example 1, the autonomous control mode can be extended to a hierarchical degradation strategy:
[0139] When the cloud-edge link decision result is failure and the measurement data decision result is pass, the autonomous control module uses the latest measurement data as input to issue the limit slope active power command and the limit slope reactive power command.
[0140] When both the cloud-edge link decision and the measurement data decision result are unsuccessful, the data source isolation module continues to output the measurement data that passed the measurement data decision most recently. The autonomous control module uses the measurement data as input to perform stability determination and slope limiting control to avoid input interruption.
[0141] The back-cut conditions remain as follows: the stability judgment result meets the stability threshold of the control constraint benchmark and the cloud-edge link decision result is passed. Within the preset transition time, the coordinated control mode is switched according to the active power limit slope and the reactive power limit slope, thereby reducing the back-cut impact.
[0142] The above description is merely a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the forms disclosed herein and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the concept described herein through the above teachings or related technologies or knowledge. Modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.
Claims
1. A diesel generator control method based on grid-connected coordinated control, characterized in that, Includes the following steps: Step 1: Perform offline time synchronization test and offline link test, and store node time deviation benchmark, link latency benchmark, link packet loss benchmark and control constraint benchmark; Step 2: Collect reference time source time, collect the time measurement value of the metering device node and calculate the corrected time deviation of the metering device based on the node time deviation benchmark, collect cloud-edge link measurement value, calculate the link availability index based on the cloud-edge link measurement value, link delay benchmark and link packet loss benchmark, collect the metering device measurement data and diesel generator set controller measurement data, and generate measurement data; Step 3: Perform integrity judgment, timing judgment, and physical consistency judgment on the measurement data to obtain the measurement data judgment result. Based on the link availability index and control constraint benchmark, obtain the cloud-edge link judgment result. The cloud-edge link judgment result is that when the link passes, the cloud-cloud collaborative control command is received and the command integrity judgment, command timing judgment, command replay judgment, and command feasible domain judgment are executed. The cloud-edge link decision result is passed if, based on the control constraint benchmark, the round-trip delay is not greater than the delay threshold, the delay jitter is not greater than the jitter threshold, the packet loss rate is not greater than the packet loss threshold, and the continuous interruption duration is not greater than the interruption threshold; otherwise, the cloud-edge link decision result is failed. Step 4: When the instruction integrity judgment fails, the instruction replay judgment fails, or the instruction feasible domain judgment fails, the instruction buffer is maintained; when the instruction timing judgment fails, the time source is switched; when the measurement data judgment result is failed, the data source is isolated and the measurement data that passed the measurement data judgment most recently is used; when the cloud-edge link judgment result is failed, the autonomous control mode is switched and the slope limit active power input and slope limit reactive power input are issued. Step 5: In autonomous control mode, Step 2 is executed repeatedly, and cloud-edge link decisions are made based on link availability indicators and control constraint benchmarks; and stability judgment results are generated based on measurement data; when the stability judgment result meets the stability threshold and the cloud-edge link decision result is passed, the system switches to cooperative control mode within a preset transition time, with active power limit slope and reactive power limit slope as constraints.
2. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The aforementioned node time deviation benchmark includes: The time deviation benchmark of the diesel generator set controller relative to the reference time source is calculated based on offline time synchronization test; the time deviation benchmark of the metering device relative to the reference time source is calculated based on offline time synchronization test; and the local high-stability clock drift parameter is calculated based on offline time synchronization test.
3. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The control constraint benchmarks include: The set of link thresholds includes: stability threshold, bus rated frequency, bus rated voltage, measurement time window threshold, residual threshold, command time window threshold, preset transition duration, active power limit slope, and reactive power limit slope. Among them, the link threshold set includes delay threshold, jitter threshold, packet loss threshold, and interruption threshold; the stability threshold includes frequency stability threshold, voltage stability threshold, and stability duration threshold.
4. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The link availability metrics include: round-trip time, latency jitter, packet loss rate, and duration of continuous outages.
5. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The measurement data includes: metering device measurement timestamp, metering device measurement authentication field, metering device bus frequency, metering device bus voltage, metering device grid connection point active power, metering device load active power, diesel generator set controller output active power, and diesel generator set controller reverse power flag.
6. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The aforementioned physical consistency determination includes: The active power at the metering device's grid connection point is positive in the direction of external power grid input to the bus. The active power output of the diesel generator set controller is positive in the direction of diesel generator set input to the bus. The active power of the metering device's load is positive in the direction of bus output to the load. The power balance residual is calculated as the absolute value of the difference between the active power of the metering device's load, the active power at the metering device's grid connection point, and the active power output of the diesel generator set controller. It is determined that the power balance residual is not greater than the residual threshold of the control constraint benchmark.
7. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The aforementioned timing decision includes: The calibration measurement timestamp is obtained by correcting the measurement time deviation of the metering device. The absolute value of the measurement time difference is calculated based on the reference time source time and the calibration measurement timestamp. It is then determined that the absolute value of the measurement time difference is not greater than the measurement time window threshold of the control constraint benchmark.
8. The diesel generator control method based on grid-connected coordinated control according to claim 1, characterized in that, The process of generating stability determination results based on measurement data includes performing the following calculations and multi-dimensional decision logic: Calculate the absolute value of the bus frequency deviation relative to the rated bus frequency and the absolute value of the bus voltage deviation relative to the rated bus voltage. Determine whether the following instantaneous stability conditions are met simultaneously: the absolute value of the bus frequency deviation is not greater than the frequency stability threshold; the absolute value of the bus voltage deviation is not greater than the voltage stability threshold; and the reverse power flag of the diesel generator set controller is 0. If these conditions are met, the stability determination result is determined to meet the stability threshold when the stability state duration is not less than the stability duration threshold, based on the cumulative stable state duration of the reference time source.
9. A diesel generator system based on grid-connected coordinated control, characterized in that, The diesel generator control method based on grid-connected collaborative control according to any one of claims 1-8 includes: a reference time source, a backup time source, a cloud energy management module, an edge collaborative controller, a metering device, a diesel generator set controller, and a communication interface and data processing module; The reference time source, backup time source, edge collaboration controller, metering device, diesel generator set controller, and communication interface are respectively connected to the data processing module; the cloud energy management module is connected to the communication interface.