Emergency power supply method and device, computer program product and electronic equipment

By using an energy storage inverter to temporarily supply power when the power grid is abnormal and performing voltage compensation after the generator starts, the problem of long connection time for diesel generators to load is solved, and the continuous normal operation and rapid power supply of the load are realized.

CN119010322APending Publication Date: 2024-11-22GUANGDONG DIANWANG GONGSI YUNFU POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411123674.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In existing technologies, the process of connecting a diesel generator to a load is time-consuming, which affects the normal operation of the load.

Method used

The system determines whether the target grid is operating normally by obtaining the grid current. If the grid is not operating normally, the load is connected to the energy storage inverter and the target generator is started. The energy storage inverter supplies power within a preset time. After the generator starts, the load is connected to the generator and voltage compensation is performed through the energy storage inverter.

Benefits of technology

This ensures that the load continues to operate normally under abnormal grid conditions, avoiding power outages and improving the response speed and stability of power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010322A_ABST
    Figure CN119010322A_ABST
Patent Text Reader

Abstract

The invention discloses an emergency power supply method and device, a computer program product and electronic equipment. Relates to the power system field. The method comprises the steps of obtaining power grid current of a target power grid, and judging whether the target power grid works normally or not according to the power grid current; under the condition that the target power grid does not work normally, a load of the target power grid is connected with an energy storage inverter, a target power generator is started, and the energy storage inverter is used for supplying power to the load within a preset duration; under the condition that starting of the target generator is completed, the load is connected with the target generator, voltage compensation is conducted on the load through the energy storage inverter, and the target generator is used for supplying power to the load. According to the invention, the problem that the normal operation of the load is affected due to the long time consumption of the process of connecting the generator to the load in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power systems, and in particular to an emergency power supply method, device, computer program product, and electronic equipment. Background Art

[0002] Emergency power supply vehicles are characterized by flexibility, low investment, easy use and maintenance, and strong environmental adaptability. They play an important role in improving power supply continuity. Diesel generators have the advantages of long power supply time, no influence from battery capacity, moderate manufacturing price, and can provide emergency power supply support for a long time at a low cost. Therefore, they are the power supply medium for most emergency power supply vehicles.

[0003] However, the commissioning of a diesel generator requires the following processes: load shedding, diesel generator starting, generator no-load or light-load operation, gradual load increase, and connection of all loads. This process takes a long time, has a slow response speed, and is prone to power outages, which can cause the load to be without power for a certain period of time, affecting its normal operation.

[0004] With regard to the problem in the related art that the process of connecting the generator to the load takes a long time, thus affecting the normal operation of the load, no effective solution has been proposed so far. Summary of the invention

[0005] The present application provides an emergency power supply method, device, computer program product and electronic device to solve the problem in the related art that the process of connecting the generator to the load takes a long time, affecting the normal operation of the load.

[0006] According to one aspect of the present application, an emergency power supply method is provided. The method includes: obtaining the grid current of the target grid, and judging whether the target grid is operating normally according to the grid current; if the target grid is not operating normally, connecting the load of the target grid to the energy storage inverter, and starting the target generator, wherein the energy storage inverter is used to supply power to the load within a preset time; if the target generator is started, connecting the load to the target generator, and performing voltage compensation on the load through the energy storage inverter, wherein the target generator is used to supply power to the load.

[0007] Optionally, judging whether the target power grid is operating normally based on the power grid current includes: obtaining the power grid current of the target power grid at a first preset time interval; calculating the difference between a first power grid current obtained at a first moment and a second power grid current obtained at a second moment to obtain a first current difference, wherein the second moment is a previous sampling moment of the first moment; determining that the target power grid is not operating normally when the first current difference is a preset current value; and determining that the target power grid is operating normally when the first current difference is not a preset current value.

[0008] Optionally, before the target generator completes startup, the method also includes: acquiring the frequency of the output voltage of the target generator at a second preset time interval; calculating the difference between the first frequency acquired at the third moment and the second frequency acquired at the fourth moment to obtain a first frequency difference, wherein the third moment is a previous sampling moment of the fourth moment; when the absolute value of the first frequency difference is greater than or equal to the preset frequency value, determining that the target generator has not completed startup; when the absolute value of the first frequency difference is less than the preset frequency value, calculating the difference between the third frequency acquired at the fifth moment and the fourth frequency acquired at the sixth moment to obtain a second frequency difference, wherein the fifth moment is a previous sampling moment of the sixth moment, and the sixth moment is earlier than the third moment; when the absolute value of the second frequency difference is greater than or equal to the preset frequency value, determining that the target generator has not completed startup; when the absolute value of the second frequency difference is less than the preset frequency value, determining that the target generator has completed startup.

[0009] Optionally, after connecting the load to the target generator, the method further includes: obtaining the output current of the target generator at a third preset time interval; calculating the difference between the first output current obtained at the seventh moment and the second output current obtained at the eighth moment to obtain a second current difference, wherein the eighth moment is a previous sampling moment of the seventh moment; when the second current difference is a preset current value, determining that the connection between the load and the target generator has failed, and continuing to supply power to the load through the energy storage inverter until the second current difference is not the preset current value; when the second current difference is not the preset current value, determining that the load is successfully connected to the target generator, and executing the step of performing voltage compensation on the load through the energy storage inverter.

[0010] Optionally, before connecting the load of the target power grid to the energy storage inverter, the method also includes: acquiring the grid voltage of the target power grid according to the target period, calculating the first reference phase of the grid voltage according to the phase-locked loop, and acquiring the target phase of the output voltage of the energy storage inverter; updating the target phase of the output voltage of the energy storage inverter according to the size relationship between the first reference phase and the target phase; before connecting the load to the target generator, the method also includes: acquiring the output voltage of the target generator according to the target period, calculating the second reference phase of the output voltage according to the phase-locked loop, and acquiring the target phase of the output voltage of the energy storage inverter; updating the target phase of the output voltage of the energy storage inverter according to the size relationship between the second reference phase and the target phase.

[0011] Optionally, updating the target phase of the output voltage of the energy storage inverter according to the magnitude relationship between the first reference phase and the target phase includes: calculating the difference between the first reference phase and the target phase to obtain a first phase difference; when the first phase difference is greater than a preset phase difference, changing the angular frequency of the output voltage to the first angular frequency, and obtaining an updated target phase according to the first angular frequency; when the first phase difference is less than or equal to the preset phase difference, changing the angular frequency of the output voltage to a second angular frequency, and obtaining an updated target phase according to the second angular frequency, wherein the second angular frequency is less than the first angular frequency; updating the target phase of the output voltage of the energy storage inverter according to the magnitude relationship between the second reference phase and the target phase includes: calculating the difference between the second reference phase and the target phase to obtain a second phase difference; when the second phase difference is greater than the preset phase difference, changing the angular frequency of the output voltage to the first angular frequency, and obtaining an updated target phase according to the first angular frequency; when the second phase difference is less than or equal to the preset phase difference, changing the angular frequency of the output voltage to the second angular frequency, and obtaining an updated target phase according to the second angular frequency.

[0012] Optionally, the energy storage inverter operates in a first working state when supplying power to a load, and voltage compensation for the load through the energy storage inverter includes: obtaining an output current value of the energy storage inverter in the first working state, and determining a current reference value in a second working state based on the output current value; and controlling the energy storage inverter to operate in the second working state based on the current reference value.

[0013] According to another aspect of the present application, an emergency power supply device is provided. The device includes: a judgment unit, which is used to obtain the grid current of the target grid and judge whether the target grid is working normally according to the grid current; a first connection unit, which is used to connect the load of the target grid with the energy storage inverter and start the target generator when the target grid is not working normally, wherein the energy storage inverter is used to supply power to the load within a preset time; a second connection unit, which is used to connect the load with the target generator when the target generator is started, and perform voltage compensation on the load through the energy storage inverter, wherein the target generator is used to supply power to the load.

[0014] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, an emergency power supply method in the present application is implemented.

[0015] According to another aspect of the present invention, an electronic device is provided, comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein an emergency power supply method is executed when the computer-readable instructions are executed.

[0016] Through this application, the following steps are adopted: obtaining the grid current of the target grid, and judging whether the target grid is working normally according to the grid current; in the case that the target grid is not working normally, connecting the load of the target grid to the energy storage inverter, and starting the target generator, wherein the energy storage inverter is used to supply power to the load within a preset time; in the case that the target generator is started, connecting the load to the target generator, and performing voltage compensation on the load through the energy storage inverter, wherein the target generator is used to supply power to the load. The problem that the normal operation of the load is affected by the long time spent in the process of connecting the generator to the load in the related art is solved. By identifying whether the grid is working normally, and in the case of abnormal operation, while starting the generator, connecting the energy storage inverter to the load, so as to supply power to the load through the energy storage inverter, and judging the starting status of the generator, after the generator is started, the generator is connected to the load, thereby ensuring that the load is always in a normal operating state, thereby achieving the technical effect that the load will not be without power supply when the power supply of the grid is abnormal. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a flow chart of an emergency power supply method provided according to an embodiment of the present application;

[0019] Figure 2 is a flow chart of a method for determining a power grid state according to an embodiment of the present application;

[0020] Figure 3 is a flow chart of a method for determining a generator state according to an embodiment of the present application;

[0021] Figure 4 is a flow chart of a method for determining a generator access result according to an embodiment of the present application;

[0022] Figure 5 is a flow chart of a method for changing an output current value provided in an embodiment of the present application;

[0023] Figure 6 is a schematic diagram of an emergency power supply device provided according to an embodiment of the present application;

[0024] Figure 7 It is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] It should be noted that the emergency power supply method, device, computer program product and electronic device determined in the present disclosure can be used in the field of power systems, and can also be used in any field other than the field of power systems. The application field of the emergency power supply method, device, computer program product and electronic device determined in the present disclosure is not limited.

[0029] It should be noted that the collected information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) used in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated. Corresponding operation portals are provided for users to choose to authorize or refuse to use. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0030] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0031] Diesel generator: a power generation equipment that uses diesel as fuel. It generates heat energy by burning diesel, drives the generator to rotate, and thus generates electricity. It has the advantages of fast start-up, stable operation, and simple maintenance. It is widely used in various fields.

[0032] Energy storage inverter: a device used to convert electrical energy into other forms and store it. Its main function is to convert DC power into AC power or other forms of power so that it can be released for power supply when needed.

[0033] Phase-Locked Loop (PLL) is an electronic circuit used to lock the phase and frequency of an input signal to the phase and frequency of a reference signal.

[0034] Phase: In a circuit, phase refers to the offset angle or time delay of an AC signal relative to a reference signal. Phase is usually expressed in degrees or radians to describe the positional relationship of a signal waveform. In an AC circuit, phase is the relative relationship between current and voltage, which can affect the transmission and response of signals in the circuit. Changes in phase can cause signal delays, phase differences, frequency response, and other phenomena.

[0035] According to an embodiment of the present application, an emergency power supply method is provided.

[0036] Figure 1 is a flow chart of an emergency power supply method provided according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0037] Step S101, obtaining the grid current of the target grid, and judging whether the target grid operates normally according to the grid current.

[0038] Specifically, when the load is initially running, it is powered by the target power grid. Therefore, the grid current of the target power grid can be monitored. When there is an abnormality in the grid current, for example, the grid current is 0, it can be determined that the power supply of the target power grid to the load is abnormal. At this time, it is necessary to change the object that supplies power to the load to ensure the normal operation of the load equipment.

[0039] Step S102, when the target power grid is not operating normally, connecting the load of the target power grid to the energy storage inverter and starting the target generator, wherein the energy storage inverter is used to supply power to the load within a preset time period.

[0040] Specifically, the target generator can be a diesel generator or other generators. Taking the diesel generator as an example, when it is detected that the target power grid is not working properly, since the diesel generator is not started at this time, the diesel generator needs to be started. However, when the diesel generator is just started, it cannot supply power to the load. At this time, the load needs to be connected to the energy storage inverter, and the energy storage inverter temporarily supplies power to the load, thereby ensuring that the load can be powered by the energy storage inverter within the preset time of waiting for the diesel generator to complete the startup operation, thereby ensuring that the load is always in normal operation.

[0041] Step S103, when the target generator is started up, the load is connected to the target generator, and voltage compensation is performed on the load through the energy storage inverter, wherein the target generator is used to supply power to the load.

[0042] Specifically, when the diesel generator is started, the representative load can be connected to the diesel generator. At this time, the load can be connected to the diesel generator, so that the diesel generator supplies power to the load.

[0043] It should be noted that when switching the power supply equipment, the working state of the inverter will be converted from temporarily supporting the load operation to using the remaining capacity to compensate for the three-phase imbalance, and when the diesel generator is connected to the load, the voltage and current of the generator may change suddenly, which will have an impact on the output power of the generator, and after the switching is completed, there will be a large power fluctuation for a period of time, which is very harmful to the stable operation of the generator. Therefore, when switching from the energy storage inverter to the diesel generator, the integral link can be used to change the process of sudden change of the inverter current control loop input into a gradual process, so that the diesel generator can smoothly and gradually connect to all loads. Thereby, the power impact caused by the input of the generator and the switching of the energy storage inverter control loop is reduced to a large extent.

[0044] The emergency power supply method provided in the embodiment of the present application obtains the grid current of the target grid and judges whether the target grid is working normally according to the grid current; when the target grid is not working normally, the load of the target grid is connected to the energy storage inverter and the target generator is started, wherein the energy storage inverter is used to supply power to the load within a preset time; when the target generator is started, the load is connected to the target generator, and the load is voltage compensated by the energy storage inverter, wherein the target generator is used to supply power to the load. The problem that the normal operation of the load is affected by the long time spent in the process of connecting the generator to the load in the related art is solved. By identifying whether the grid is working normally, and in the case of abnormal operation, the energy storage inverter is connected to the load while starting the generator, so that the load is powered by the energy storage inverter, and the start-up status of the generator is judged. After the generator is started, the generator is connected to the load, thereby ensuring that the load is always in a normal operating state, thereby achieving the technical effect that the load will not be without power supply when the power supply of the grid is abnormal.

[0045] In order to ensure that the working status of the target power grid can be accurately determined, optionally, in the emergency power supply method provided in the embodiment of the present application, judging whether the target power grid is operating normally based on the power grid current includes: obtaining the power grid current of the target power grid at a first preset time interval; calculating the difference between a first power grid current obtained at a first moment and a second power grid current obtained at a second moment to obtain a first current difference, wherein the second moment is a previous sampling moment of the first moment; when the first current difference is a preset current value, determining that the target power grid is not operating normally; when the first current difference is not a preset current value, determining that the target power grid is operating normally.

[0046] Specifically, when determining whether the working state of the target power grid is abnormal, a judgment may be made based on the current value of the target power grid. Figure 2 is a flow chart of a method for determining a power grid status according to an embodiment of the present application. Figure 2 As shown, first, the grid current of the target grid can be acquired at a first preset time interval to determine the current of the target grid at different sampling nodes, and the current values ​​at adjacent sampling points are compared to determine whether the current is abnormal based on the comparison result.

[0047] Furthermore, after obtaining the grid current at multiple sampling points, any adjacent moments, such as the first moment and the second moment, are obtained, and the difference between the first grid current at the first moment and the second grid current at the second moment, that is, the first current difference, is calculated, and when the first current difference is a preset value (wherein the preset value can be 0), it is determined that the current at two adjacent sampling points has not changed, thereby determining that there is an abnormality in the grid current at the current moment, and the target grid is not operating normally. When the first current difference is not the preset value, it indicates that there is a slight fluctuation in the current, which is a current characteristic under normal operation. Therefore, it is determined that the target grid has no abnormality, thereby achieving the technical effect of accurately determining whether there is an abnormality in the target grid, and improving the accuracy of subsequent judgment of whether to start the target generator.

[0048] In order to accurately determine whether the target generator has completed startup and can be connected to the load, optionally, in the emergency power supply method provided in the embodiment of the present application, before the target generator completes startup, the method also includes: obtaining the frequency of the output voltage of the target generator according to a second preset time interval; calculating the difference between the first frequency obtained at the third moment and the second frequency obtained at the fourth moment to obtain a first frequency difference, wherein the third moment is the previous sampling moment of the fourth moment; when the absolute value of the first frequency difference is greater than or equal to the preset frequency value, determining that the target generator has not completed startup; when the absolute value of the first frequency difference is less than the preset frequency value, calculating the difference between the third frequency obtained at the fifth moment and the fourth frequency obtained at the sixth moment to obtain a second frequency difference, wherein the fifth moment is the previous sampling moment of the sixth moment, and the sixth moment is earlier than the third moment; when the absolute value of the second frequency difference is greater than or equal to the preset frequency value, determining that the target generator has not completed startup; when the absolute value of the second frequency difference is less than the preset frequency value, determining that the target generator has completed startup.

[0049] It should be noted that when determining whether the target generator has completed startup, the judgment can be made based on the frequency of the voltage output by the target generator. First, the frequency of the output voltage of the target generator needs to be obtained according to the second preset time interval, and whether the no-load operation of the generator is stable is judged based on the difference between the voltage frequencies at adjacent sampling moments.

[0050] Specifically, first obtain the voltage frequency at any two adjacent sampling moments, obtain the first frequency obtained at the third moment and the second frequency obtained at the fourth moment, calculate the difference between the two frequencies, obtain the first frequency difference, and determine whether the absolute value of the first frequency difference is greater than or equal to the preset frequency value. When the absolute value of the first frequency difference is greater than or equal to the preset frequency value, it is determined that the voltage frequency fluctuation of the target generator is large, indicating that the no-load operation state of the generator is stable, and the generator has not completed the starting operation.

[0051] Furthermore, when the absolute value of the first frequency difference is less than the preset frequency value, in order to avoid the occasional situation where the absolute value of the first frequency difference is less than the preset frequency value, it is necessary to further obtain the frequency difference at any time interval before the third moment, that is, the second frequency difference, and determine whether the absolute value of the second frequency difference is less than the preset frequency value. Only when the absolute value of the second frequency difference is also less than the preset frequency value can it be determined that the target generator is operating stably and can be connected to the load.

[0052] Figure 3 is a flow chart of a method for determining a generator state according to an embodiment of the present application, such as Figure 3 As shown, firstly, the difference between adjacent sampling moments is obtained, that is, the first frequency difference between the first frequency obtained at the third moment and the second frequency obtained at the fourth moment is calculated, and it is determined whether the absolute value of the first frequency difference is less than a preset frequency value (for example, 0.04). When the absolute value of the first frequency difference is greater than or equal to the preset frequency value, it is determined that the target generator has not completed startup.

[0053] Further, when the absolute value of the first frequency difference is less than the preset frequency value, the second frequency difference between the third frequency obtained at the fifth moment 0.3s ago and the fourth frequency obtained at the sixth moment is obtained, and it is determined whether the absolute value of the second frequency difference is less than the preset frequency value. When the absolute value of the second frequency difference is greater than or equal to the preset frequency value, it is determined that the target generator has not completed startup. When the absolute value of the second frequency difference is less than the preset frequency value, it is determined that the target generator has completed startup, thereby ensuring the accuracy of identifying the operating status of the generator.

[0054] In order to avoid the phenomenon that the target generator fails to connect to the load successfully, resulting in the load being without power supply, optionally, in the emergency power supply method provided in the embodiment of the present application, after the load is connected to the target generator, the method also includes: obtaining the output current of the target generator according to a third preset time interval; calculating the difference between the first output current obtained at the seventh moment and the second output current obtained at the eighth moment, to obtain a second current difference, wherein the eighth moment is the previous sampling moment of the seventh moment; when the second current difference is the preset current value, determining that the load has failed to be connected to the target generator, and continuing to power the load through the energy storage inverter until the second current difference is not the preset current value; when the second current difference is not the preset current value, determining that the load is successfully connected to the target generator, and executing the step of voltage compensation for the load through the energy storage inverter.

[0055] Specifically, after the load is connected to the target generator, it is also necessary to determine whether the target generator is successfully connected to the load, so as to determine whether to perform a state change operation on the energy storage inverter.

[0056] When determining whether the target generator is normally connected to the load, the current output by the generator can be detected to determine whether the diesel generator is put into the load system. If the difference between the current output by the generator at the current moment and the current at the previous sampling time is non-zero, it is considered that the generator has been put into system operation. In this case, the switching process between the two working modes is started. Otherwise, it is considered that the generator has not been put into the system, thereby ensuring that the target generator can normally supply power to the load.

[0057] For example, Figure 4 is a flow chart of a method for determining a generator access result according to an embodiment of the present application, such as Figure 4 As shown, the output current of the target generator can be obtained according to the third preset time interval, and the first output current can be obtained at the seventh moment, and after waiting for a time interval, the second output current can be obtained at the next sampling moment, that is, the eighth moment, and the difference between the first output current and the second output current can be calculated to obtain the second current difference, and when the second current difference is not the preset current value, it is determined that the generator has been successfully connected to the load system. At this time, the working mode of the energy storage inverter can be switched, so that the energy storage inverter changes from the state of supplying power to the load to the state of performing voltage compensation, thereby ensuring the stability of power supply to the load.

[0058] In order to ensure that the voltage phase is synchronized when switching from the target power grid to the energy storage inverter and from the energy storage inverter to the target generator, and to reduce the power fluctuation during switching caused by different phases, optionally, in the emergency power supply method provided in the embodiment of the present application, before connecting the load of the target power grid to the energy storage inverter, the method also includes: obtaining the grid voltage of the target power grid according to the target period, calculating the first reference phase of the grid voltage according to the phase-locked loop, and obtaining the target phase of the output voltage of the energy storage inverter; updating the target phase of the output voltage of the energy storage inverter according to the size relationship between the first reference phase and the target phase; before connecting the load to the target generator, the method also includes: obtaining the output voltage of the target generator according to the target period, calculating the second reference phase of the output voltage according to the phase-locked loop, and obtaining the target phase of the output voltage of the energy storage inverter; updating the target phase of the output voltage of the energy storage inverter according to the size relationship between the second reference phase and the target phase.

[0059] It should be noted that since the phases of the output voltages of the target power grid, energy storage inverter and target generator may be different, when switching the power supply mode, the power fluctuations during switching due to the different phases will affect the operating stability of the power supply equipment. Therefore, when switching the power supply mode, it is necessary to synchronize the phases to reduce the power fluctuations during switching caused by the different phases and ensure the normal operation of the power supply equipment.

[0060] Specifically, when switching from the target power grid to the energy storage inverter, it is necessary to obtain the grid voltage of the target power grid, calculate the first reference phase of the grid voltage according to the phase-locked loop, and compare the first reference phase with the target phase of the output voltage of the energy storage inverter, so as to adjust the target phase of the output voltage of the energy storage inverter according to the comparison result, so that when the energy storage inverter is connected to the load as a power supply device, the phase of the output voltage of the energy storage inverter is guaranteed to be the same as the phase of the grid voltage, thereby reducing the power impact caused by the switching of the power supply mode.

[0061] It should be noted that the PLL phase-locked loop is mainly composed of three parts: a phase detector, a loop filter, and a voltage-controlled oscillator. When the phase of the grid voltage is determined by the phase-locked loop, the grid voltage is used as the input signal of the PLL phase-locked loop, and its waveform contains the voltage amplitude, frequency, and phase information. The phase detector in the phase-locked loop compares the phase of the grid voltage signal with the phase of the synchronization signal inside the phase-locked loop, and outputs a voltage signal proportional to the phase difference. The loop filter filters the voltage signal to remove high-frequency noise and interference components to ensure the purity of the signal. The voltage-controlled oscillator adjusts the frequency and phase of its output signal according to the control voltage output by the loop filter to gradually reduce the phase difference with the grid voltage signal. When the phase difference is reduced to a sufficiently small degree, it can be considered that the PLL phase-locked loop has locked the phase of the grid voltage. At this time, the phase of the output signal of the PLL phase-locked loop (i.e., the output of the voltage-controlled oscillator) is basically consistent with the phase of the grid voltage signal, thereby achieving accurate detection and tracking of the grid voltage phase.

[0062] Similarly, when switching from an energy storage inverter to a diesel generator, a phase-locked loop is also required to calculate the second reference phase of the output voltage of the diesel generator, and compare the second reference phase with the target phase, so as to adjust the phase of the energy storage inverter according to the comparison result to ensure that the phase of the output voltage of the energy storage inverter is the same as the phase of the output voltage of the generator, thereby reducing the power impact caused by switching the power supply mode.

[0063] Optionally, in the emergency power supply method provided in an embodiment of the present application, updating the target phase of the output voltage of the energy storage inverter according to the size relationship between the first reference phase and the target phase includes: calculating the difference between the first reference phase and the target phase to obtain a first phase difference; when the first phase difference is greater than a preset phase difference, changing the angular frequency of the output voltage to the first angular frequency, and obtaining an updated target phase according to the first angular frequency; when the first phase difference is less than or equal to the preset phase difference, changing the angular frequency of the output voltage to a second angular frequency, and obtaining an updated target phase according to the second angular frequency, wherein the second angular frequency is less than the first angular frequency; according to the size relationship between the second reference phase and the target phase, updating the target phase of the output voltage of the energy storage inverter includes: calculating the difference between the second reference phase and the target phase to obtain a second phase difference; when the second phase difference is greater than the preset phase difference, changing the angular frequency of the output voltage to the first angular frequency, and obtaining an updated target phase according to the first angular frequency; when the second phase difference is less than or equal to the preset phase difference, changing the angular frequency of the output voltage to the second angular frequency, and obtaining an updated target phase according to the second angular frequency.

[0064] Specifically, when updating the target phase of the output voltage of the energy storage inverter, it is necessary to determine the difference between the reference phase and the target phase, and determine the adjustment method for the target phase based on the relationship between the difference and the preset phase difference, thereby completing the operation of updating the target phase of the output voltage of the energy storage inverter.

[0065] When adjusting the target phase according to the first reference phase of the target power grid, it is necessary to calculate the first phase difference between the first reference phase and the target phase, and when the first phase difference is greater than the preset phase difference, the angular frequency of the output voltage of the energy storage inverter is changed to the first angular frequency, wherein the first angular frequency can be ω f1 =100π+2π, and then the updated target phase is obtained through the integration link. When the first phase difference is less than or equal to the preset phase difference, the angular frequency of the output voltage of the energy storage inverter is changed to the second angular frequency, where the second angular frequency can be ω f2 =100π-2π, and then the updated target phase is obtained through the integral link, thereby completing the operation of updating the target phase of the energy storage inverter.

[0066] Similarly, when adjusting the target phase according to the second reference phase of the target generator, it is also necessary to calculate the second phase difference between the second reference phase and the target phase, and when the second phase difference is greater than the preset phase difference, the angular frequency of the output voltage of the energy storage inverter is changed to the first angular frequency, wherein the first angular frequency can be ω f1=100π+2π, and then the updated target phase is obtained through the integration link. When the second phase difference is less than or equal to the preset phase difference, the angular frequency of the output voltage of the energy storage inverter is changed to the second angular frequency, where the second angular frequency can be ω f2 =100π-2π, and then the updated target phase is obtained through the integral link, thereby completing the operation of updating the target phase of the energy storage inverter.

[0067] Optionally, in the emergency power supply method provided in an embodiment of the present application, the energy storage inverter operates in a first working state when supplying power to a load, and voltage compensation for the load through the energy storage inverter includes: obtaining the output current value of the energy storage inverter in the first working state, and determining a current reference value in a second working state based on the output current value; and controlling the energy storage inverter to operate in the second working state based on the current reference value.

[0068] It should be noted that the first working state can be a voltage and current dual closed-loop control state, and the second working state can be a current closed-loop control state. Voltage compensation through energy storage inverters refers to using energy storage inverters to adjust voltage fluctuations in the power grid to ensure stable operation of the power grid. The energy storage inverter can inject or extract electrical energy into the power grid according to the needs of the power grid to keep the voltage of the power grid within a stable range. This technology can improve the reliability and stability of the power grid, and can also help optimize the energy utilization and management of the power grid.

[0069] Specifically, when the energy storage inverter is supplying power to the load, the working state of the energy storage inverter is voltage and current dual closed-loop control. When the power supply mode is changed from energy storage inverter power supply to diesel generator power supply, the working state of the energy storage inverter is switched from voltage and current dual closed-loop control to current closed-loop control. At this time, after the switch, the current value in the current control loop will suddenly change, thereby generating a power shock.

[0070] therefore, Figure 5 is a flow chart of a method for changing an output current value provided in an embodiment of the present application, such as Figure 5 As shown, the output current value before the positive-sequence and negative-sequence voltage-current dual closed-loop control mode is switched can be obtained, and the current value is multiplied by the step function and then passed through an integral link to obtain a reference value for the current closed-loop control, and the reference value is used to replace the preset reference value in the current closed-loop control mode, so that according to the method of changing the reference value, the sudden current value output in the current closed-loop control system is changed into a current value with a changing process, so that the step input of the input current control loop in the process is changed into a ramp input, so as to eliminate the influence caused by the sudden change of the current control loop input, realize smooth switching between the two states, and thus greatly reduce the power impact caused by the generator input and the switching of the energy storage inverter control loop.

[0071] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0072] The embodiment of the present application also provides an emergency power supply device. It should be noted that the emergency power supply device of the embodiment of the present application can be used to execute the emergency power supply method provided by the embodiment of the present application. The emergency power supply device provided by the embodiment of the present application is introduced below.

[0073] Figure 6 Schematic diagram of an emergency power supply device provided according to an embodiment of the present application. Figure 6 As shown, the device includes: a judgment unit 61, a first connection unit 62, and a second connection unit 63.

[0074] The judging unit 61 is used to obtain the grid current of the target grid and judge whether the target grid operates normally according to the grid current.

[0075] The first connection unit 62 is used to connect the load of the target power grid to the energy storage inverter and start the target generator when the target power grid is not working properly, wherein the energy storage inverter is used to supply power to the load within a preset time period.

[0076] The second connection unit 63 is used to connect the load to the target generator when the target generator is started up, and to perform voltage compensation on the load through the energy storage inverter, wherein the target generator is used to supply power to the load.

[0077] The emergency power supply device provided in the embodiment of the present application obtains the grid current of the target grid through the judgment unit 61, and judges whether the target grid is working normally according to the grid current; the first connection unit 62 connects the load of the target grid to the energy storage inverter and starts the target generator when the target grid is not working normally, wherein the energy storage inverter is used to supply power to the load within a preset time; the second connection unit 63 connects the load to the target generator when the target generator is started, and performs voltage compensation on the load through the energy storage inverter, wherein the target generator is used to supply power to the load. The problem that the normal operation of the load is affected by the long time spent in the process of connecting the generator to the load in the related technology is solved, by identifying whether the grid is working normally, and in the case of abnormal operation, while starting the generator, the energy storage inverter is connected to the load, so that the load is powered by the energy storage inverter, and the start-up status of the generator is judged. After the generator is started, the generator is connected to the load, thereby ensuring that the load is always in a normal operating state, thereby achieving the technical effect that the load will not be without power supply when the power supply of the grid is abnormal.

[0078] Optionally, in the emergency power supply device provided in the embodiment of the present application, the judgment unit 61 includes: a first acquisition module, used to obtain the grid current of the target grid at a first preset time interval; a first calculation module, used to calculate the difference between a first grid current obtained at a first moment and a second grid current obtained at a second moment, to obtain a first current difference, wherein the second moment is a previous sampling moment of the first moment; a first determination module, used to determine that the target grid is not working normally when the first current difference is a preset current value; and a second determination module, used to determine that the target grid is working normally when the first current difference is not a preset current value.

[0079] Optionally, in the emergency power supply device provided in the embodiment of the present application, before the target generator completes startup, the device also includes: a first acquisition unit, used to acquire the frequency of the output voltage of the target generator according to a second preset time interval; a first calculation unit, used to calculate the difference between the first frequency obtained at the third moment and the second frequency obtained at the fourth moment, to obtain a first frequency difference, wherein the third moment is the previous sampling moment of the fourth moment; a first determination unit, used to determine that the target generator has not completed startup when the absolute value of the first frequency difference is greater than or equal to the preset frequency value; a second calculation unit, used to calculate the difference between the third frequency obtained at the fifth moment and the fourth frequency obtained at the sixth moment when the absolute value of the first frequency difference is less than the preset frequency value, to obtain a second frequency difference, wherein the fifth moment is the previous sampling moment of the sixth moment, and the sixth moment is earlier than the third moment; a second determination unit, used to determine that the target generator has not completed startup when the absolute value of the second frequency difference is greater than or equal to the preset frequency value; a third determination unit, used to determine that the target generator has completed startup when the absolute value of the second frequency difference is less than the preset frequency value.

[0080] Optionally, in the emergency power supply device provided in the embodiment of the present application, after the load is connected to the target generator, the device also includes: a second acquisition unit, used to obtain the output current of the target generator at a third preset time interval; a third calculation unit, used to calculate the difference between the first output current obtained at the seventh moment and the second output current obtained at the eighth moment, to obtain a second current difference, wherein the eighth moment is the previous sampling moment of the seventh moment; a fourth determination unit, used to determine that the connection between the load and the target generator has failed when the second current difference is a preset current value, and continue to supply power to the load through the energy storage inverter until the second current difference is not the preset current value; an execution unit, used to determine that the load is successfully connected to the target generator when the second current difference is not the preset current value, and execute the step of voltage compensation for the load through the energy storage inverter.

[0081] Optionally, in the emergency power supply device provided in the embodiment of the present application, before connecting the load of the target power grid to the energy storage inverter, the device also includes: a third acquisition unit, used to acquire the grid voltage of the target power grid according to the target period, calculate the first reference phase of the grid voltage according to the phase-locked loop, and acquire the target phase of the output voltage of the energy storage inverter; a first update unit, used to update the target phase of the output voltage of the energy storage inverter according to the size relationship between the first reference phase and the target phase; before connecting the load to the target generator, the device also includes: a fourth acquisition unit, used to acquire the output voltage of the target generator according to the target period, calculate the second reference phase of the output voltage according to the phase-locked loop, and acquire the target phase of the output voltage of the energy storage inverter; a second update unit, used to update the target phase of the output voltage of the energy storage inverter according to the size relationship between the second reference phase and the target phase.

[0082] Optionally, in the emergency power supply device provided in the embodiment of the present application, the first update unit includes: a second calculation module, which is used to calculate the difference between the first reference phase and the target phase to obtain the first phase difference; the first update module is used to change the angular frequency of the output voltage to the first angular frequency when the first phase difference is greater than the preset phase difference, and obtain the updated target phase according to the first angular frequency; the second update module is used to change the angular frequency of the output voltage to the second angular frequency when the first phase difference is less than or equal to the preset phase difference, and obtain the updated target phase according to the second angular frequency, wherein the second angular frequency is less than the first angular frequency; the second update unit includes: a third calculation module, which is used to calculate the difference between the second reference phase and the target phase to obtain the second phase difference; the third update module is used to change the angular frequency of the output voltage to the first angular frequency when the second phase difference is greater than the preset phase difference, and obtain the updated target phase according to the first angular frequency; the fourth update module is used to change the angular frequency of the output voltage to the second angular frequency when the second phase difference is less than or equal to the preset phase difference, and obtain the updated target phase according to the second angular frequency.

[0083] Optionally, in the emergency power supply device provided in the embodiment of the present application, the energy storage inverter operates in a first working state when supplying power to a load, and the second connection unit 63 includes: a second acquisition module, used to obtain the output current value of the energy storage inverter in the first working state, and determine the current reference value in the second working state according to the output current value; a control module, used to control the energy storage inverter to operate in the second working state according to the current reference value.

[0084] The emergency power supply device includes a processor and a memory. The judgment unit 61, the first connection unit 62, the second connection unit 63, etc. are all stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.

[0085] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of the generator connecting to the load taking a long time and affecting the normal operation of the load in the related art is solved by adjusting the kernel parameters.

[0086] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0087] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the emergency power supply method is implemented.

[0088] An embodiment of the present invention provides a processor, which is used to run a program, wherein the emergency power supply method is executed when the program is running.

[0089] Figure 7 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 7 As shown, an embodiment of the present invention provides an electronic device, the electronic device 70 includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned emergency power supply method when executing the program. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0090] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of the above-mentioned emergency power supply method.

[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0092] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0095] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0096] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0097] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0098] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0099] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. An emergency power supply method, characterized in that: include: Obtaining a grid current of a target grid, and judging whether the target grid operates normally according to the grid current; In the case that the target power grid is not operating normally, connecting the load of the target power grid to the energy storage inverter and starting the target generator, wherein the energy storage inverter is used to supply power to the load within a preset time period; When the target generator is started, the load is connected to the target generator, and voltage compensation is performed on the load through the energy storage inverter, wherein the target generator is used to supply power to the load.

2. The method according to claim 1, characterized in that Judging whether the target power grid is operating normally according to the power grid current includes: Acquiring the grid current of the target grid according to a first preset time interval; Calculate the difference between a first grid current obtained at a first moment and a second grid current obtained at a second moment to obtain a first current difference, wherein the second moment is a previous sampling moment of the first moment; When the first current difference is a preset current value, determining that the target power grid is not working properly; When the first current difference is not the preset current value, it is determined that the target power grid operates normally.

3. The method according to claim 1, characterized in that: Before the target generator is started, the method further includes: Acquiring the frequency of the output voltage of the target generator according to a second preset time interval; Calculate the difference between the first frequency obtained at a third moment and the second frequency obtained at a fourth moment to obtain a first frequency difference, wherein the third moment is a previous sampling moment of the fourth moment; When the absolute value of the first frequency difference is greater than or equal to a preset frequency value, determining that the target generator has not completed startup; When the absolute value of the first frequency difference is less than the preset frequency value, calculating the difference between the third frequency obtained at a fifth moment and the fourth frequency obtained at a sixth moment to obtain a second frequency difference, wherein the fifth moment is a previous sampling moment of the sixth moment, and the sixth moment is earlier than the third moment; When the absolute value of the second frequency difference is greater than or equal to the preset frequency value, determining that the target generator has not completed startup; When the absolute value of the second frequency difference is less than the preset frequency value, it is determined that the target generator has completed starting.

4. The method according to claim 1, characterized in that: After connecting the load to the target generator, the method further includes: acquiring the output current of the target generator according to a third preset time interval; Calculate the difference between the first output current obtained at the seventh moment and the second output current obtained at the eighth moment to obtain a second current difference, wherein the eighth moment is a previous sampling moment of the seventh moment; When the second current difference is a preset current value, determining that the load fails to connect to the target generator, and continuing to supply power to the load through the energy storage inverter until the second current difference is not the preset current value; When the second current difference is not the preset current value, it is determined that the load is successfully connected to the target generator, and the step of performing voltage compensation on the load through the energy storage inverter is performed.

5. The method according to claim 1, characterized in that Before connecting the load of the target power grid to the energy storage inverter, the method further includes: Acquire the grid voltage of the target grid according to a target period, calculate a first reference phase of the grid voltage according to a phase-locked loop, and acquire a target phase of the output voltage of the energy storage inverter; updating the target phase of the output voltage of the energy storage inverter according to the magnitude relationship between the first reference phase and the target phase; Before connecting the load to the target generator, the method further includes: Acquire the output voltage of the target generator according to the target period, calculate the second reference phase of the output voltage according to a phase-locked loop, and acquire the target phase of the output voltage of the energy storage inverter; According to the magnitude relationship between the second reference phase and the target phase, the target phase of the output voltage of the energy storage inverter is updated.

6. The method according to claim 5, characterized in that Updating the target phase of the output voltage of the energy storage inverter according to the magnitude relationship between the first reference phase and the target phase includes: Calculating a difference between the first reference phase and the target phase to obtain a first phase difference; When the first phase difference is greater than a preset phase difference, the angular frequency of the output voltage is changed to a first angular frequency, and an updated target phase is obtained according to the first angular frequency; When the first phase difference is less than or equal to the preset phase difference, the angular frequency of the output voltage is changed to a second angular frequency, and an updated target phase is obtained according to the second angular frequency, wherein the second angular frequency is less than the first angular frequency; Updating the target phase of the output voltage of the energy storage inverter according to the magnitude relationship between the second reference phase and the target phase includes: Calculating a difference between the second reference phase and the target phase to obtain a second phase difference; When the second phase difference value is greater than the preset phase difference value, changing the angular frequency of the output voltage to the first angular frequency, and obtaining an updated target phase according to the first angular frequency; When the second phase difference is less than or equal to the preset phase difference, the angular frequency of the output voltage is changed to the second angular frequency, and an updated target phase is obtained according to the second angular frequency.

7. The method according to claim 1, characterized in that When the energy storage inverter supplies power to the load, the energy storage inverter operates in a first working state, and voltage compensation for the load by the energy storage inverter includes: Acquire an output current value of the energy storage inverter in the first working state, and determine a current reference value in the second working state according to the output current value; The energy storage inverter is controlled to operate in the second working state according to the current reference value.

8. An emergency power supply device, characterized in that: include: A judging unit, used for obtaining a grid current of a target grid and judging whether the target grid is operating normally according to the grid current; a first connection unit, configured to connect a load of the target power grid to an energy storage inverter and start a target generator when the target power grid is not operating normally, wherein the energy storage inverter is configured to supply power to the load within a preset time period; The second connection unit is used to connect the load to the target generator when the target generator is started up, and to perform voltage compensation on the load through the energy storage inverter, wherein the target generator is used to supply power to the load.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the emergency power supply method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the emergency power supply method described in any one of claims 1 to 7.