A power supply control method, electronic device and program product
By detecting mains power failure and determining the safe starting conditions of the diesel generator set in the control unit, a rapid and safe switch to backup power is achieved when the mains power is abnormal. This solves the problems of insufficient automation and safety in existing technologies and improves the stability and reliability of the power supply system.
Patent Information
- Application Number
- CN202611382392.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-17
AI Technical Summary
Existing technologies cannot simultaneously balance the automation level and security of the power grid in the distribution area, resulting in long power outage times and slow response times. Furthermore, diesel generator sets may be forcibly started under abnormal conditions, posing safety hazards and equipment damage risks.
The control unit detects mains power loss and determines the safe starting conditions of the diesel generator set, ensuring that it connects to the target power grid after meeting preset conditions and safely switches back to the main power supply when the mains power is restored. This includes monitoring parameters such as voltage, fuel level, and water temperature to achieve automated control.
It improves the automation and safety of the power supply system, ensuring a quick and safe switch to backup power in the event of mains power failure, reducing the risk of equipment damage, and enhancing the stability and reliability of power supply.
Smart Images

Figure CN123121968A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of power supply technology, and in particular relates to a power supply control method, electronic equipment and program product. Background Technology
[0002] With the deepening of power system reform and the continuous improvement of users' requirements for power supply reliability, the issue of ensuring power supply continuity in distribution network terminal areas has received increasing attention. Terminal areas are usually located on the low-voltage side of distribution network transformers, directly supplying power to industrial enterprises, commercial areas, and residential communities. Power outages in these areas will have a direct impact on production and daily life, with particularly prominent impacts in critical load scenarios such as hospitals, data centers, and important users.
[0003] In existing technologies, ensuring the reliability of power supply to distribution network terminal areas mainly relies on dual-power automatic switching solutions, traditional UPS backup power solutions, manual diesel generator starting solutions, and simple automatic switching and diesel generator starting solutions. Dual-power automatic switching solutions achieve main and backup power switching through dual mains power lines and automatic transfer switches. However, this solution strictly depends on the distribution network having dual-circuit power supply conditions. Given that distribution network terminals generally only have single-circuit power supply, its application scenarios are severely limited, and it cannot cover most terminal distribution areas. Traditional UPS backup power solutions use battery banks to provide short-term backup power for critical loads. Limited by battery capacity, the runtime is typically only 15 minutes to several hours, making it difficult to meet the needs of long-term power outages. Furthermore, battery maintenance costs are high, lifespan is limited, and it cannot support continuous power supply for high-power loads. Manual diesel generator starting solutions involve configuring mobile or fixed diesel generator sets near the distribution area, but they rely entirely on manual operation. Personnel must arrive on-site to manually start and connect to the grid, with response times typically exceeding 30 minutes, making it difficult to meet rapid power restoration needs and posing a risk of equipment damage or safety accidents due to operational errors. In some scenarios, the simple automatic switching diesel generator solution is configured with a voltage monitoring relay linked to the diesel generator. However, it only achieves a simple undervoltage trigger start function and lacks real-time two-way communication capability between the distribution network protection and control terminal and the diesel generator controller. It cannot obtain key safety parameters such as the diesel generator's fuel level and water temperature before startup, which leads to the diesel generator being forced to start under abnormal conditions such as low fuel level and overheating, posing a risk of equipment damage. At the same time, the automatic switchback logic after the mains power is restored is incomplete. Improper control of the switching operation timing can easily lead to dangerous situations where the mains power and the diesel generator operate in parallel or are out of phase, causing equipment damage or personal safety accidents. Moreover, the solution generally lacks remote monitoring and master station linkage capabilities, making it difficult to achieve unified management of the power supply status by the dispatch center.
[0004] It can be seen that existing technical solutions cannot simultaneously balance the level of automation and security of the power grid in the distribution area. Summary of the Invention
[0005] In view of this, embodiments of this application provide a power supply control method, electronic device, and program product to solve the technical problem in the prior art that it is impossible to simultaneously achieve both the degree of automation and security of the power grid in a distribution area.
[0006] In a first aspect, embodiments of this application provide a power supply control method applied to a power supply control system. The power supply control system includes a control unit, a first switch, and a second switch. The control unit is connected to mains power, a diesel generator set, the first switch, and the second switch, respectively. The first switch is used to control the connection and disconnection of the power supply link between the mains power and the target distribution area power grid, and the second switch is used to control the connection and disconnection of the power supply link between the diesel generator set and the target distribution area power grid. The method includes: If the control unit detects a loss of mains power, or if it receives a target control command, it will control the first switch to disconnect the power supply link between the mains power and the target power grid, and then check whether the diesel generator set meets the preset safe start conditions. The safe start conditions are used to ensure that the diesel generator set can operate safely after the power supply link between the diesel generator set and the target power grid is connected. If so, the control unit sends an operating command to the diesel generator set, and after the preset grid connection conditions are met, controls the second switch to connect the power supply link between the diesel generator set and the target power grid.
[0007] Optionally, the control unit detects whether there is a loss of mains power in the following manner: Obtain the real-time sampled values of the three-phase voltage of the mains power; If the real-time sampled values of the three-phase voltage of the mains power are all lower than the preset first voltage threshold for a duration greater than the first duration, then it is determined that there is a voltage loss phenomenon in the mains power.
[0008] Optionally, the control unit detects whether the diesel generator set meets the safe starting conditions in the following manner: Determine whether the maintenance switch of the target transformer area power grid is currently engaged, determine whether the power supply link between the mains power and the target transformer area power grid has been disconnected, determine whether the remaining fuel of the diesel generator set is greater than a preset first fuel level threshold, and determine whether the engine coolant temperature of the diesel generator set is less than a preset first coolant temperature threshold. If the maintenance switch of the target transformer area power grid is not currently in operation, the power supply link between the mains power and the target transformer area power grid is disconnected, the remaining fuel of the diesel generator set is greater than the first fuel level threshold, and the engine coolant temperature of the diesel generator set is less than the first coolant temperature threshold, then it is determined that the diesel generator set meets the safe start-up conditions.
[0009] Optionally, the control unit determines whether the grid connection conditions are met in the following manner: The rotational speed, output voltage, and output frequency of the diesel generator set are obtained. If the speed of the diesel generator set is within a preset speed range, the output voltage of the diesel generator set is within a preset voltage range, and the output frequency of the diesel generator set is within a preset frequency range, then the grid connection conditions are met.
[0010] Optionally, the method further includes: If the control unit detects that the mains voltage has returned to normal, after controlling the second switch to disconnect the power supply link between the diesel generator set and the target power grid, it controls the first switch to connect the power supply link between the mains and the target power grid and sends a shutdown command to the diesel generator set.
[0011] Optionally, the control unit detects whether the mains voltage has returned to normal in the following manner: Obtain the real-time sampled values of the three-phase voltage of the mains power; If the duration for which the real-time sampled values of the three-phase mains voltage are all greater than the preset second voltage threshold is greater than the second duration, then it is determined that the mains voltage has returned to normal.
[0012] Optional, also includes: During the operation of the diesel generator set, the control unit acquires the engine coolant temperature of the diesel generator set. If the engine coolant temperature of the diesel generator set is greater than a preset second coolant temperature threshold, the control unit controls the second switch to disconnect the power supply link between the diesel generator set and the target power grid, and sends a shutdown command to the diesel generator set. The second coolant temperature threshold is greater than the first coolant temperature threshold.
[0013] Optional, also includes: The control unit obtains the remaining fuel level of the diesel generator set during operation. If the remaining fuel level of the diesel generator set is less than a preset second fuel level threshold, the control unit controls the second switch to disconnect the power supply link between the diesel generator set and the target power grid and sends a shutdown command to the diesel generator set. The second fuel level threshold is less than the first fuel level threshold.
[0014] Secondly, embodiments of this application provide a power supply control system, including a control unit, a first switch, and a second switch; the control unit is connected to the mains power, a diesel generator set, the first switch, and the second switch respectively, the first switch is used to control the connection and disconnection of the power supply link between the mains power and the target distribution area power grid, and the second switch is used to control the connection and disconnection of the power supply link between the diesel generator set and the target distribution area power grid; The control unit is configured to, if a loss of mains power is detected, or if a target control command is received, after controlling the first switch to disconnect the power supply link between the mains power and the target power grid, detect whether the diesel generator set meets the preset safe start-up conditions; the safe start-up conditions are used to ensure that the diesel generator set operates safely after the power supply link between the diesel generator set and the target power grid is connected. If so, an operating command is sent to the diesel generator set, and after the preset grid connection conditions are met, the second switch is controlled to connect the power supply link between the diesel generator set and the target power grid.
[0015] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the power supply control method as described in any of the first aspects above.
[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the power supply control method as described in any of the first aspects above.
[0017] Fifthly, embodiments of this application provide a computer program product that, when run on a display device, causes the display device to perform the steps of the power supply control method as described in any of the first aspects above.
[0018] The beneficial effects of the power supply control method provided in this application embodiment are as follows: The power supply control method provided in this application is applied to a power supply control system, which includes a control unit, a first switch, and a second switch. The control unit is connected to the mains power, a diesel generator set, the first switch, and the second switch. The first switch controls the connection and disconnection of the power supply link between the mains power and the target distribution area power grid, and the second switch controls the connection and disconnection of the power supply link between the diesel generator set and the target distribution area power grid. The power supply control method provided in this application includes: if a mains power failure is detected by the control unit, or if a target control command is received, after controlling the first switch to disconnect the power supply link between the mains power and the target distribution area power grid, detecting whether the diesel generator set meets the preset safe start-up conditions. If so, sending a running command to the diesel generator set, and after meeting the preset grid connection conditions, controlling the second switch to connect the power supply link between the diesel generator set and the target distribution area power grid. The safe start-up conditions are used to ensure that the diesel generator set operates safely after the power supply link between the diesel generator set and the target distribution area power grid is connected. This solution can automatically and safely start the diesel generator set in the event of a mains power failure, while also taking into account the automation level and safety of the distribution area power grid. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating the implementation of the power supply control method provided in this application embodiment; Figure 2 This is a schematic diagram of the structure of a power supply control system provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] It should be noted that the terminology used in the embodiments of this application is only for explaining specific embodiments of this application and is not intended to limit this application. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, "at least one" or "one or more" means one, two or more. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0022] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0023] Traditional power supply reliability assurance technologies for distribution network terminal areas generally lack intelligent automatic control logic during mains power outages, resulting in long response times and an inability to effectively reduce power outage time. Furthermore, existing solutions lack the ability to sense the safety status of diesel generator sets, posing a safety hazard of forced start-up of diesel generator sets under abnormal conditions. In addition, there is a safety risk of simultaneous power supply from the mains and diesel generator sets during automatic switching. It is clear that existing technical solutions cannot simultaneously address both the automation level and security of the distribution network.
[0024] To address the above problems, this application provides a power supply control method. The power supply control method provided in this application is applied to a power supply control system. The power supply control system includes a control unit, a first switch, and a second switch. The control unit is connected to mains power, a diesel generator set, the first switch, and the second switch, respectively. The first switch controls the connection and disconnection of the power supply link between the mains power and the target distribution area's power grid, and the second switch controls the connection and disconnection of the power supply link between the diesel generator set and the target distribution area's power grid.
[0025] For ease of understanding, the following explains some key terms in this embodiment: A power supply control system is an automated system used to monitor the power supply status, perform power switching operations, and manage the operation of backup power supplies. This system is typically deployed at the end of the distribution network to ensure the continuity and reliability of power supply.
[0026] The control unit is a core component of the power supply control system. In this embodiment, the control unit can be a control terminal on the power distribution side, responsible for receiving various sensor data, processing control logic, issuing control commands, and communicating with external systems. Its functions include, but are not limited to, monitoring the mains power status, managing the operation of the diesel generator set, and controlling switch operation.
[0027] The first switch refers to the device used to control the electrical connection between the mains power supply and the target distribution area's power grid. This switch is usually a circuit breaker or contactor, which is in the closed state when the mains power supply is normal and is opened when the mains power is abnormal or when it is necessary to switch to a backup power supply.
[0028] The second switch refers to the device used to control the on / off connection of the electrical connection between the diesel generator set and the target power grid. This switch is also usually a circuit breaker or contactor, which is closed when the diesel generator set is providing backup power and is opened when the mains power is restored or the diesel generator set is shut down.
[0029] Municipal power refers to the electricity supply provided by the public power grid, which is the conventional main power source for the target distribution area's power grid.
[0030] A diesel generator set is an independent power generation device that provides power to the target area's power grid as a backup power source when the mains power is interrupted. This set typically consists of a diesel engine and a generator, and can start, operate, and output electricity upon command.
[0031] The target distribution area power grid refers to a specific area power grid at the end of the distribution network, whose power supply is guaranteed by the municipal power or diesel generator sets.
[0032] Voltage loss refers to an abnormality in the mains power supply, causing the voltage of the target distribution area's power grid to fall below the normal operating range.
[0033] Target control commands are instructions issued by external systems (such as distribution automation master stations or field operators) to trigger the power supply control system to perform specific operations, such as forcibly starting a diesel generator set.
[0034] Safe startup conditions refer to a series of preset conditions that must be met before a diesel generator set can be started and connected to the target power grid. These conditions are designed to ensure that no equipment damage or safety accidents occur during the startup and operation of the diesel generator set.
[0035] Grid connection conditions refer to the condition that, after the diesel generator set starts, its output voltage, frequency and other power quality parameters are stable within a preset range and meet the power quality requirements for supplying power to user loads, so that it can be safely connected to the target area power grid and start supplying power.
[0036] Please see Figure 1 , Figure 1 This is a flowchart illustrating the implementation of the power supply control method provided in the embodiments of this application. The power supply control method may include S101~S102, as detailed below: In S101, if the control unit detects a loss of mains power, or if it receives a target control command, it checks whether the diesel generator set meets the preset safe start conditions after the first switch is disconnected from the mains power and the target power grid. The safe start conditions are used to ensure that the diesel generator set can work safely after the power supply link between the diesel generator set and the target power grid is connected.
[0037] In this embodiment, during power supply control, the control unit continuously monitors the mains power supply status. When a mains voltage loss is detected, for example, by using a voltage detection circuit to determine whether the mains voltage is below a certain fixed threshold, or when the control unit receives a target control command from an external source (such as a remote monitoring system or on-site operators), the system will initiate a backup power switching process. For example, the target control command could be a signal to force the start of a diesel generator set.
[0038] In one possible implementation, the control unit can determine whether there is a loss of mains power by means of the following detailed method: Obtain real-time sampled values of the three-phase voltage of the mains power; if the real-time sampled values of the three-phase voltage of the mains power are all lower than the preset first voltage threshold for a duration greater than the first duration, it is determined that there is a voltage loss phenomenon in the mains power.
[0039] Specifically, the control unit periodically samples the voltage of the connected three-phase mains line using a built-in voltage sensor or an externally connected voltage transformer, acquiring its instantaneous value. These real-time sampled values are the fundamental data for determining whether a mains voltage loss has occurred, ensuring timely awareness of the mains power status. For example, a high-precision analog-to-digital converter (ADC) can be used to convert the analog voltage signal into a digital signal, and data can be acquired at a preset sampling frequency (such as once per millisecond or higher). These digitized voltage values are then transmitted to the control unit for further processing. Based on this, the control unit continuously compares the real-time sampled values with a preset first voltage threshold.
[0040] The first voltage threshold serves as a benchmark for determining whether the voltage is too low. For example, it can be set to 80% or 95% of the rated mains voltage, and the specific value can be adjusted according to the actual application scenario and power grid standards. Simultaneously, the control unit records the duration for which the voltage is below the threshold. Only when the real-time sampled values of all three phases of the mains voltage are below the preset first voltage threshold for a duration greater than the preset first duration is a voltage loss confirmed. This first duration is a time window used to filter out instantaneous voltage fluctuations or short-term drops, ensuring that a true voltage loss is only confirmed when the voltage remains below the threshold for a certain period. For example, the first duration can be set to 1 second, 3 seconds, or 5 seconds to distinguish between transient and persistent faults.
[0041] Through the above technical solution, the control unit no longer relies solely on instantaneous voltage values to determine mains voltage loss. Instead, it introduces a judgment logic based on "the duration for which all three-phase voltage real-time sample values are below a preset first voltage threshold is greater than a first duration." This method, based on a comprehensive judgment of duration and multi-phase voltage, effectively avoids misjudgments caused by instantaneous fluctuations in the power grid, sudden load changes, or short-term faults, thus significantly improving the accuracy and reliability of mains voltage loss detection. For example, when a brief voltage drop or single-phase fault occurs in the power grid, this solution does not immediately trigger the start-up and grid connection of the diesel generator set. Instead, it waits to confirm whether the voltage loss is continuous and affects the entire system, thereby reducing unnecessary system switching, lowering the start-up frequency and operating costs of the diesel generator set, and extending equipment life. Simultaneously, it ensures that in the event of a truly prolonged and widespread voltage loss, the system can switch to backup power in a timely and accurate manner, ensuring continuous power supply to the target distribution area and improving the stability and resilience of the power supply system.
[0042] Once the backup power switch is triggered, the control unit first sends a disconnect command to the first switch to ensure that the power supply link between the mains power and the target distribution area's power grid is broken. This step is crucial to prevent the mains power and the backup power from operating in parallel. For example, the control unit can drive the trip coil of the first switch via a relay, causing it to disconnect mechanically.
[0043] Optionally, after sending a disconnect command to the first switch, the control device can confirm whether the power supply link between the mains power and the target distribution area power grid has been disconnected. If the power supply link between the mains power and the target distribution area power grid is not confirmed to be disconnected after a preset timeout period (e.g., 30 seconds), an alarm signal is sent and the subsequent startup process is suspended, waiting for maintenance personnel to handle it.
[0044] After the first switch is turned off, the control unit will check whether the diesel generator set meets the preset safe starting conditions. These conditions are designed to ensure that the diesel generator set is in a safe operating condition before starting.
[0045] In one possible implementation, the control unit can detect whether the diesel generator set meets the preset safe starting conditions in the following way: Determine whether the maintenance switch of the target transformer area's power grid is currently engaged, whether the power supply link between the mains power and the target transformer area's power grid is disconnected, whether the remaining fuel level of the diesel generator set is greater than a preset first fuel level threshold, and whether the engine coolant temperature of the diesel generator set is less than a preset first coolant temperature threshold. If the maintenance switch of the target transformer area's power grid is not currently engaged, the power supply link between the mains power and the target transformer area's power grid is disconnected, the remaining fuel level of the diesel generator set is greater than the first fuel level threshold, and the engine coolant temperature of the diesel generator set is less than the first coolant temperature threshold, then the diesel generator set is determined to meet the safe starting conditions.
[0046] Specifically, when determining whether a maintenance switch is currently engaged in the target distribution area's power grid, the maintenance switch is a safety device in the power system used to isolate equipment during maintenance operations. When the maintenance switch is engaged, it usually indicates that maintenance is underway in that area, and power should not be supplied to that area to ensure the safety of maintenance personnel. The control unit can obtain the engagement status by reading the status sensor signals of the maintenance switch. For example, limit switches or proximity switches may be installed on the maintenance switch. When the switch is engaged or disengaged, the state of these switches changes. The control unit collects these signals through the corresponding I / O interface to determine whether the maintenance switch is engaged.
[0047] This step, determining whether the power supply link between the mains power and the target distribution area's grid has been disconnected, aims to prevent the diesel generator set from forming a grid connection with the mains power when supplying power to the target distribution area's grid, which could lead to dangerous situations such as short circuits, surges, or reverse power transmission. Before the diesel generator set supplies power to the target distribution area's grid, it must be ensured that the mains power is completely disconnected. The control unit can determine whether the power supply link has been disconnected by monitoring the status feedback signal of the first switch. For example, the first switch can be equipped with auxiliary contacts; when the switch is in the open position, the auxiliary contacts will close or open, feeding back the corresponding signal to the control unit. Additionally, detecting whether the voltage or current on the mains side is zero can also help determine the disconnection status of the power supply link.
[0048] When determining whether the remaining fuel level of a diesel generator set exceeds a preset first fuel level threshold, this condition ensures that the generator set has sufficient fuel to operate continuously after startup, preventing sudden shutdown due to fuel depletion, which could affect the continuity of power supply or cause equipment damage. The fuel tank of a diesel generator set is typically equipped with a level sensor, such as a float sensor, ultrasonic sensor, or pressure sensor. This sensor converts fuel level information into an electrical signal and transmits it to the control unit. The control unit compares the received fuel level signal with the preset first fuel level threshold to determine whether the fuel is sufficient.
[0049] The condition of determining whether the engine coolant temperature of a diesel generator set is below a preset first coolant temperature threshold is designed to ensure that the engine starts within a suitable temperature range, protecting it from overheating damage. Excessively high engine coolant temperature may indicate engine malfunction or overheating risk, and starting the engine under these conditions could exacerbate the damage. The engine cooling system of a diesel generator set is typically equipped with a coolant temperature sensor, such as a thermistor or thermocouple, to monitor the coolant temperature in real time. This sensor transmits the temperature signal to the control unit, which compares the received coolant temperature signal with the preset first coolant temperature threshold to determine whether the engine coolant temperature is within the safe starting range.
[0050] Through the above technical solutions, the control unit can comprehensively and accurately assess the operating environment and its own status before starting the diesel generator set. By checking the condition of the maintenance pressure plate, it effectively avoids accidental power supply during maintenance, ensuring personnel safety; by confirming that the mains power supply link is disconnected, it completely eliminates the risk of the diesel generator set connecting to the mains power grid, protecting the stability of the equipment and the power grid; by monitoring the remaining fuel level, it ensures that the diesel generator set has enough fuel for continuous power supply, avoiding unexpected shutdowns due to insufficient fuel; and by detecting the engine coolant temperature, it prevents starting under overheated or abnormal engine conditions, thereby extending the equipment's lifespan. These specific safety starting condition judgments significantly improve the starting reliability and operational safety of the diesel generator set as a backup power source, effectively avoiding risks such as equipment damage, operational instability, or impact on the power grid that may be caused by improper starting, ensuring the continuity and stability of power supply to the target distribution area's power grid in the event of mains power anomalies.
[0051] In S102, if so, the control unit sends an operating command to the diesel generator set, and after the preset grid connection conditions are met, controls the second switch to connect the power supply link between the diesel generator set and the target area power grid.
[0052] In this embodiment, if the diesel generator set meets these safe starting conditions, the control unit will send an operating command to the diesel generator set to start it and begin generating electricity. This operating command can be sent to the controller of the diesel generator set via a hard-wired signal or a serial communication protocol.
[0053] After the diesel generator set is started and running, its output power needs to meet the grid connection conditions in order to be safely connected to the target power grid.
[0054] In one possible implementation, the control unit can determine whether the grid connection conditions are met in the following way: The speed, output voltage, and output frequency of the diesel generator set are obtained. If the speed, output voltage, and output frequency of the diesel generator set are within a preset range, then the grid connection conditions are met.
[0055] Specifically, the control unit needs to acquire the diesel generator set's speed, output voltage, and output frequency. Acquiring the generator set's speed is crucial for determining its mechanical operating status, and is typically achieved in real-time using speed sensors (such as Hall effect sensors or photoelectric encoders) mounted on the generator set's crankshaft or flywheel. These sensors convert the speed information into electrical signals and transmit them to the control unit. Acquiring the generator set's output voltage and frequency is fundamental for determining its electrical output characteristics. The output voltage can be sampled in real-time using a voltage transformer (PT) or voltage sensor connected to the generator's output terminal, while the output frequency can be obtained by measuring the period of the output voltage or using a dedicated frequency sensor. This real-time data of electrical parameters is also transmitted to the control unit for further processing.
[0056] After obtaining the above parameters, the control unit will determine whether the diesel generator set's speed is within the preset speed range. The diesel generator set's speed directly determines its output frequency. In order to achieve stable grid connection with the target distribution area's power grid, the generator's speed must be stable within a specific range to ensure that the output frequency is stable within the preset frequency range. The control unit will compare the real-time speed value with this preset range to confirm whether the speed condition is met.
[0057] Simultaneously, the control unit also determines whether the diesel generator set's output voltage is within a preset voltage range. Before grid connection, the generator set's output voltage must be stable within the preset voltage range, which corresponds to the normal allowable voltage range for the target area's grid user load (e.g., for a 220V system, this can be set according to the rated voltage allowable deviation). Power can only be supplied to users when the output voltage is stable within this range, preventing the direct supply of unstable voltage (voltage spikes or drops) during startup to the user load and potential damage to electrical equipment. The preset voltage range is typically the allowable fluctuation range of the grid's rated voltage, which the control unit continuously monitors until the output voltage stabilizes within this range.
[0058] In addition, the control unit also determines whether the output frequency of the diesel generator set is within the preset frequency range. Output frequency is a core parameter for evaluating the quality of power output from a diesel generator set. The generator's output frequency must be stable within the preset frequency range (e.g., a 50Hz power frequency system can be set to 50Hz ± 0.5Hz). Frequency instability can lead to malfunctions or even damage to electrical equipment; therefore, power can only be supplied to user loads after the frequency has stabilized. The preset frequency range is typically the allowable fluctuation range of the grid's rated frequency, which the control unit continuously monitors until the output frequency stabilizes within this range. In practical applications, in addition to the frequency range, frequency stability is also considered to ensure synchronous grid connection.
[0059] In one possible implementation, if the preset grid connection conditions are not met within the preset grid connection waiting time after the control unit sends the operation command to the diesel generator set, the control device can stop executing step S102 and subsequent steps, and output alarm information to indicate that a grid connection failure has occurred.
[0060] Through the above technical solution, the control unit can accurately acquire and determine whether the speed, output voltage, and output frequency of the diesel generator set are all within the preset stable range after the diesel generator set starts. This ensures that the output power quality of the diesel generator set meets the power requirements of the target area's grid users before the second switch is activated to connect the power supply link between the diesel generator set and the target area's grid. This effectively avoids problems such as user load-side faults caused by substandard output power quality, significantly improves the stability, safety, and reliability of the diesel generator set's grid connection process, guarantees the continuous and stable power supply to the target area's grid, and extends the service life of the diesel generator set and related equipment.
[0061] After this, the control unit will turn on the second switch, thereby connecting the power supply link between the diesel generator set and the target power grid, so that the diesel generator set can supply power to the target power grid.
[0062] In one possible implementation, if the control unit detects that the duration for which all three phase voltages of the mains power are greater than the second voltage threshold is greater than the second duration before the control unit controls the second switch to turn on, the control unit can control the first switch to turn on the power supply link between the mains power and the target distribution area power grid, send a shutdown command to the diesel generator set, and not execute the step of controlling the second switch to turn on.
[0063] In some of the embodiments described above in this application, a scheme is proposed to supply power to the target distribution area's power grid via a diesel generator set when the mains power fails or a target control command is received. However, during the operation of the diesel generator set, if the mains power returns to normal, how to safely and smoothly switch back to mains power supply from the diesel generator set and how to reasonably shut down the diesel generator set are technical issues that require further consideration.
[0064] In response, this application further proposes a power supply control method. If the mains voltage is detected to have returned to normal, the control unit controls the first switch to connect the mains power supply to the target power grid after disconnecting the power supply link between the diesel generator set and the target power grid by controlling the second switch, and sends a shutdown command to the diesel generator set.
[0065] Specifically, "if the mains voltage is detected to have returned to normal" is the key trigger condition for the system to switch back from standby power supply mode to main power supply mode. In one possible implementation, the control unit can detect whether the mains voltage has returned to normal in the following way: Obtain real-time sampled values of the three-phase mains voltage; if the duration for which all three-phase mains voltage sampled values are greater than the preset second voltage threshold is greater than the second duration, then it is determined that the mains voltage has returned to normal.
[0066] Acquiring real-time samples of the three-phase mains voltage is fundamental for determining the mains power status. Control units typically integrate or connect to power parameter acquisition modules such as voltage and current sensors. These modules monitor the three-phase mains voltage (e.g., Ua, Ub, Uc) in real time, converting analog signals into digital signals, and then transmitting them to the control unit for processing. Real-time sampling ensures immediate awareness of the mains power status, providing accurate data input for subsequent judgments. The sampling frequency can be configured according to system requirements, such as sampling hundreds or thousands of times per second to capture rapid voltage changes.
[0067] The preset second voltage threshold is a pre-set voltage reference value used to determine whether the mains voltage has reached a normal level. It is usually slightly lower than the nominal mains voltage, but higher than a voltage value that may be considered abnormal or unstable. For example, for a 220V mains voltage, the second voltage threshold can be set to 200V or 210V. The setting of this threshold needs to take into account the fluctuation range of the power grid, load characteristics, and power quality requirements.
[0068] The second duration is a preset time length used to ensure that the mains voltage remains stable within the normal range after it recovers. This avoids misjudging a return to normal mains voltage due to a momentary voltage rise. For example, the second duration can be set to 5 seconds, 10 seconds, or longer, depending on the system's stability requirements and the characteristics of the power grid. Only when all three phases of the mains voltage remain above the second voltage threshold for more than this preset time is the mains voltage considered to have truly returned to normal, thus avoiding frequent switching caused by short-term fluctuations and improving the system's operational reliability.
[0069] After confirming the restoration of mains power, to ensure the safety of the switching process and avoid grid connection conflicts, the power supply to the diesel generator set must first be disconnected. The control unit sends a disconnect command to the second switch, causing it to switch from the conducting state to the disconnected state, thereby completely isolating the diesel generator set from the target area's power grid. The second switch typically uses a circuit breaker or contactor with high breaking capacity to ensure reliable disconnection even under load.
[0070] After the second switch is opened and the diesel generator set is confirmed to be isolated from the power grid, the control unit sends a conduction command to the first switch. Upon receiving the command, the first switch switches from the open state to the conduction state, thereby reconnecting the restored mains power to the target area's power grid and restoring mains power supply. This operation ensures the continuity and stability of power supply, smoothly transferring the grid load back to the mains power.
[0071] After the mains power supply is successfully restored and the diesel generator set has completed its backup power supply task, the control unit will send a shutdown command to the diesel generator set controller through a preset communication protocol or control signal. Upon receiving the command, the diesel generator set controller will execute according to its internally set shutdown procedure, such as gradual unloading, cooling, and final shutdown, to ensure that the generator set stops operating safely and orderly, thereby saving fuel, reducing wear and tear, and extending equipment life.
[0072] Through the above technical solution, this application provides a method for safely and smoothly switching the power supply from a diesel generator set back to mains power after the mains power has returned to normal. First, accurately detecting the restoration of normal mains voltage serves as the switching trigger condition, avoiding unnecessary or premature switching. Second, before connecting to the mains power, the power supply link between the diesel generator set and the target distribution area's power grid is disconnected, effectively avoiding grid connection conflicts or impacts between the mains power and the diesel generator set, ensuring the stability of the power grid operation. Subsequently, the mains power supply link is reconnected, restoring the normal supply of mains power. Finally, a shutdown command is promptly sent to the diesel generator set to stop operation, thereby saving fuel consumption, reducing equipment wear, and lowering operating costs. Overall, this solution achieves intelligent and automated management of the power supply system, improving the reliability and economy of power supply.
[0073] In some of the embodiments described above in this application, the system can start the diesel generator set to connect to the grid and supply power when the mains power fails, and switch back to mains power supply after the mains power is restored. However, under conditions of prolonged operation or excessive load, the engine coolant temperature of the diesel generator set may rise abnormally. If measures are not taken in time, it may lead to damage to the diesel generator set or even cause a safety accident, thereby affecting the reliability of power supply and the lifespan of the equipment.
[0074] In response, this application further proposes a power supply control method. During the operation of the diesel generator set, the engine water temperature of the diesel generator set is obtained through the control unit. If the engine water temperature of the diesel generator set is greater than a preset second water temperature threshold, the second switch is controlled to disconnect the power supply link between the diesel generator set and the target power grid, and a shutdown command is sent to the diesel generator set. The second water temperature threshold is greater than the first water temperature threshold.
[0075] Specifically, the control unit is configured to continuously monitor the operating status of the diesel generator set. While the diesel generator set is supplying power to the target area's power grid, the control unit periodically acquires the engine coolant temperature of the diesel generator set. This is typically achieved through a temperature sensor connected to the diesel generator set's cooling system, which transmits real-time coolant temperature data to the control unit. Upon receiving this real-time coolant temperature data, the control unit compares it with a preset second coolant temperature threshold.
[0076] The second coolant temperature threshold is a safety upper limit value used to indicate the normal operating temperature range of the diesel generator set engine. When the engine coolant temperature of the diesel generator set is detected to exceed this second coolant temperature threshold, it indicates that the engine may be at risk of overheating. To protect the equipment and ensure power supply safety, the control unit will take immediate action. First, the control unit will send a disconnect command to the second switch, causing the second switch to quickly disconnect the power supply link between the diesel generator set and the target area's power grid, thereby isolating the overheated diesel generator set from the grid. Next, the control unit will also send a shutdown command to the diesel generator set, causing it to stop operating to avoid irreversible damage caused by continued overheating. It is worth noting that the second coolant temperature threshold is set higher than the first coolant temperature threshold used for starting conditions. This aligns with the reality that the engine typically reaches a higher normal operating temperature during operation than during a cold start, ensuring the rationality and effectiveness of the monitoring.
[0077] Through the above technical solution, this application introduces a real-time engine coolant temperature monitoring and protection mechanism during the operation of the diesel generator set. This mechanism can promptly detect the overheating risk of the diesel generator set and automatically perform grid disconnection and shutdown operations, effectively avoiding overheating damage caused by prolonged operation or abnormal operating conditions, and significantly improving the safety and reliability of the diesel generator set operation. This not only extends the service life of the equipment but also ensures that during mains power outages, the backup power supply can continuously supply power to the target distribution area grid in a more stable and safer state, thereby improving the resilience of the entire power supply system.
[0078] In some of the embodiments described above in this application, the diesel generator set can provide continuous power supply to the target distribution area's power grid after meeting the safe start-up and grid connection conditions. However, during its implementation, fuel consumption of the diesel generator set during long-term operation is a significant issue. If the diesel generator set suddenly stops due to fuel depletion during operation, the target distribution area's power grid will face another power outage, affecting the stability and reliability of the power supply.
[0079] In response, this application further proposes to obtain the remaining fuel level of the diesel generator set during operation by using a control unit. If the remaining fuel level of the diesel generator set is less than a preset second fuel level threshold, the control unit will disconnect the power supply link between the diesel generator set and the target power grid and send a shutdown command to the diesel generator set. The second fuel level threshold is less than the first fuel level threshold.
[0080] Specifically, during the operation of the diesel generator set—that is, after the generator set has successfully started and established a power supply link with the target power grid through the second switch, and is providing power to the target power grid—the generator set continuously consumes fuel to maintain operation. The control unit can obtain the remaining fuel level of the diesel generator set in various ways. For example, a fuel level sensor can be installed in the fuel tank, which can detect the fuel level in real time and transmit analog or digital signals to the control unit. Upon receiving these signals, the control unit can convert them into specific fuel level values, such as liters or percentages. Alternatively, fuel level information can also be obtained through the intelligent management system interface built into the diesel generator set.
[0081] The preset second fuel level threshold is a pre-set fuel level warning value, typically lower than the minimum fuel level required for normal operation of the diesel generator set, but higher than the limit that would cause the generator set to shut down immediately. This threshold is designed to provide the control unit with an early warning point so that measures can be taken before the diesel generator set runs out of fuel. When the control unit determines that the remaining fuel level is less than the preset second fuel level threshold, it sends a disconnect command to the second switch, causing the switch to switch from the closed state to the open state, thereby cutting off the electrical connection between the diesel generator set and the target area's power grid. This operation aims to prevent the diesel generator set from causing a shock to the power grid due to unstable operation or sudden shutdown before running out of fuel. Simultaneously, the control unit also sends a shutdown command to the diesel generator set. This command is a control signal sent to the diesel generator set to instruct it to execute a safe shutdown procedure. This command can trigger the diesel generator set's controller to gradually reduce the load, stop the fuel supply, and ultimately shut down the engine, ensuring an orderly and safe shutdown of the diesel generator set and avoiding mechanical damage caused by sudden power outages or fuel depletion.
[0082] It is worth noting that the first fuel level threshold is the minimum fuel requirement checked before starting the diesel generator set to ensure that the generator set has sufficient fuel for startup and initial operation. The second fuel level threshold is a warning value monitored during the operation of the diesel generator set. The second fuel level threshold being lower than the first fuel level threshold means that the fuel level must be higher than the first fuel level threshold when starting the diesel generator set. During operation, when the fuel level drops below the second fuel level threshold, the system will trigger a shutdown procedure. This ensures sufficient fuel at startup and provides early warning during operation to prevent fuel depletion.
[0083] Through the above technical solution, the control unit can monitor the remaining fuel level of the diesel generator set in real time during operation. When the remaining fuel level falls below a preset second fuel level threshold, the system can promptly control the second switch to disconnect the power supply link between the diesel generator set and the target area's power grid, and send a shutdown command to the diesel generator set. This proactive fuel level monitoring and control mechanism effectively avoids the risk of the diesel generator set suddenly shutting down due to fuel depletion, thus preventing another power outage in the target area's power grid. By performing a planned shutdown before the fuel level runs out, not only is the continuity and stability of the power supply to the target area's power grid ensured, and the occurrence of unplanned power outages reduced, but it also helps protect the diesel generator set from mechanical damage that may be caused by dry burning or sudden shutdown, extending the equipment's service life. Furthermore, since the second fuel level threshold is lower than the first fuel level threshold, it ensures sufficient fuel at startup and provides a reasonable early warning point during operation, enabling the system to manage the operation of the diesel generator set more intelligently and safely.
[0084] The following example will provide a more detailed explanation of the above technical solution: In a target distribution grid supplying power to a critical load area (such as a hospital), a power supply control system is configured. This system includes a control unit, a first switch, and a second switch. The control unit is connected to the mains power supply, a diesel generator set, the first switch, and the second switch. The first switch controls the connection between the mains power supply and the target distribution grid, while the second switch controls the connection between the diesel generator set and the target distribution grid.
[0085] When the mains power supply is normal, the control unit continuously monitors the mains power status. Suppose that at a certain moment, due to an external power grid failure, the mains power fails. At this time, the control unit detects whether there is a voltage loss by acquiring real-time sampled values of the three-phase mains voltage. Specifically, the control unit continuously monitors the three-phase mains voltage. If it detects that the real-time sampled values of all three phases of the mains voltage are below a preset first voltage threshold (e.g., below 180V) for a duration greater than a first duration (e.g., for 5 seconds), the control unit determines that there is a voltage loss. This judgment method based on multi-phase voltage and duration avoids misjudgments caused by instantaneous voltage fluctuations, improves the accuracy of voltage loss detection, and is superior to the simple voltage relay triggering scheme in existing technologies.
[0086] Once the control unit detects a loss of mains power, it immediately sends a command to the first switch to disconnect the power supply link between the mains and the target distribution area's power grid, ensuring complete isolation between the mains and the target distribution area's power grid. This step effectively avoids the risk of parallel operation of the mains and diesel generator set when the mains power is restored, and solves the safety hazard of simultaneous power supply from the mains and diesel generator in existing technologies.
[0087] After the mains power supply link is disconnected, the control unit will not immediately start the diesel generator set. Instead, it will first check whether the diesel generator set meets the preset safe starting conditions. The control unit will perform the following checks: Determine whether the maintenance switch for the target area's power grid is currently engaged. If the maintenance switch is engaged, it indicates that the power grid is under maintenance, and the diesel generator set should not be started at this time.
[0088] Determine whether the power supply link between the mains power and the target transformer area's power grid has been disconnected. This check reconfirms that the first switch has correctly performed the disconnection operation, further ensuring operational safety.
[0089] Determine whether the remaining fuel level of the diesel generator set is greater than a preset first fuel level threshold (e.g., greater than 20% of the total fuel tank capacity).
[0090] Determine whether the engine coolant temperature of the diesel generator set is lower than a preset first coolant temperature threshold (e.g., less than 80°C).
[0091] If all the above conditions are met—namely, the maintenance switch of the target area's power grid is not currently engaged, the power supply link between the mains power and the target area's power grid is disconnected, the remaining fuel level of the diesel generator set is greater than the first fuel level threshold, and the engine coolant temperature of the diesel generator set is less than the first coolant temperature threshold—then the control unit determines that the diesel generator set meets the safe starting conditions. This multi-condition interlocking judgment mechanism solves the problem of the lack of diesel generator safety status perception in existing technologies, and avoids equipment damage and safety accidents that may be caused by forcibly starting the diesel generator set under abnormal conditions such as low fuel level or overheating.
[0092] After confirming that the diesel generator set meets the safe starting conditions, the control unit sends an operating command to the diesel generator set to start it. The diesel generator set begins to run and gradually reaches a stable state.
[0093] Subsequently, the control unit continuously acquires the diesel generator set's speed, output voltage, and output frequency to determine whether the preset grid connection conditions are met. Specifically, if the diesel generator set's speed is within a preset speed range, its output voltage is within a preset voltage range, and its output frequency is within a preset frequency range, the control unit determines that the grid connection conditions are met. This ensures that the diesel generator set is connected to the grid under stable output and acceptable power quality conditions, avoiding shocks caused by unstable output.
[0094] Once the grid connection conditions are met, the control unit sends a command to the second switch to connect the power supply link between the diesel generator set and the target distribution area's power grid, thus enabling the diesel generator set to provide backup power to the target distribution area's power grid. The entire process, from detecting mains power failure to the diesel generator set's grid connection, is automatically completed by the control unit without manual intervention, significantly shortening the power restoration time and solving the problems of lacking intelligent automatic control logic and long response times in existing technologies.
[0095] During the operation of the diesel generator set, the control unit continuously monitors its operating status. For example, the control unit acquires the engine coolant temperature of the diesel generator set in real time. If the engine coolant temperature is detected to be higher than a preset second coolant temperature threshold (e.g., 95°C, which is higher than the first coolant temperature threshold), it indicates that the diesel generator set may be at risk of overheating. At this time, the control unit will immediately control the second switch to disconnect the power supply link between the diesel generator set and the target area power grid, and send a shutdown command to the diesel generator set to protect the equipment.
[0096] Simultaneously, the control unit continuously monitors the remaining fuel level of the diesel generator set. If the remaining fuel level is detected to be less than a preset second fuel level threshold (e.g., 10% of the total fuel tank capacity, which is less than the first fuel level threshold), it indicates that the fuel is about to run out. At this time, the control unit will also control the second switch to disconnect the power supply link between the diesel generator set and the target area's power grid, and send a shutdown command to the diesel generator set to prevent damage due to fuel shortage. These operational safety monitoring mechanisms further enhance the reliability and safety of the diesel generator set's operation.
[0097] When the mains power returns to normal, the control unit detects this by acquiring real-time sampled values of the three-phase mains voltage. If the real-time sampled values of all three-phase mains voltages are greater than a preset second voltage threshold (e.g., greater than 210V) for a duration greater than a second duration (e.g., lasting 10 seconds), the control unit determines that the mains voltage has returned to normal. This judgment based on multi-phase voltage and duration avoids frequent switching caused by the "power flicker" phenomenon where the mains power is momentarily restored and then interrupted again.
[0098] Once the mains power is restored, the control unit first controls the second switch to disconnect the power supply link between the diesel generator set and the target area's power grid, ensuring isolation between the diesel generator set and the grid. Then, the control unit controls the first switch to connect the mains power link to the target area's power grid, restoring mains power supply. Finally, the control unit sends a shutdown command to the diesel generator set to stop operation. The entire automatic switchback logic after mains power restoration is complete and safe, resolving the problem of incomplete automatic switchback logic in existing solutions, which still require manual intervention.
[0099] Through the aforementioned fully automated control process, this power supply control method achieves rapid, safe, and seamless switching from mains power outage to diesel generator backup power supply, and then to automatic power restoration upon mains power recovery, significantly improving the power supply reliability of the target distribution area's power grid under unattended conditions. Simultaneously, the two-way communication between the control unit and the diesel generator enables remote monitoring and master station linkage, solving the problem of weak remote monitoring and master station linkage capabilities in existing technologies.
[0100] The power supply control method in this embodiment achieves rapid and safe switching of the target distribution area's power grid from mains power to diesel generator power supply when the mains power fails or a control command is received, by automatically monitoring the mains power status and intelligently controlling the diesel generator set through the control unit. At the same time, it takes into account the automation level and safety of the distribution area's power grid.
[0101] Based on the power supply control method provided in the above embodiments, this application further provides a power supply control system for implementing the above method embodiments. Please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a schematic diagram of a power supply control system provided in an embodiment of this application. The power supply control system includes a control unit 21, a first switch 22, and a second switch 23. The control unit 21 is connected to the mains power, a diesel generator set, the first switch 22, and the second switch 23, respectively. The first switch 22 is used to control the connection and disconnection of the power supply link between the mains power and the target power grid, and the second switch 23 is used to control the connection and disconnection of the power supply link between the diesel generator set and the target power grid.
[0102] The control unit 21 is used to: if a loss of mains power is detected, or if a target control command is received, after controlling the first switch to disconnect the power supply link between the mains power and the target power grid, detect whether the diesel generator set meets the preset safe start conditions; the safe start conditions are used to ensure that the diesel generator set can work safely after the power supply link between the diesel generator set and the target power grid is connected; if so, send an operation command to the diesel generator set, and after the preset grid connection conditions are met, control the second switch to connect the power supply link between the diesel generator set and the target power grid.
[0103] Optionally, the control unit 21 is specifically used for: Obtain real-time sampled values of the three-phase voltage of the mains power; If the real-time sampled values of the three-phase mains voltage are all below the preset first voltage threshold for a duration greater than the first duration, then it is determined that there is a voltage loss phenomenon in the mains.
[0104] Optionally, the control unit 21 is specifically used for: Determine whether the maintenance switch of the target area power grid is currently engaged, whether the power supply link between the mains power and the target area power grid has been disconnected, whether the remaining fuel of the diesel generator set is greater than the preset first fuel level threshold, and whether the engine coolant temperature of the diesel generator set is less than the preset first coolant temperature threshold. If the maintenance switch of the target area power grid is not currently in operation, the power supply link between the mains power and the target area power grid is disconnected, the remaining fuel of the diesel generator set is greater than the first fuel level threshold, and the engine coolant temperature of the diesel generator set is less than the first coolant temperature threshold, then the diesel generator set is determined to meet the safe starting conditions.
[0105] Optionally, the control unit 21 is specifically used for: Obtain the speed, output voltage, and output frequency of the diesel generator set; If the speed of the diesel generator set is within the preset speed range, the output voltage of the diesel generator set is within the preset voltage range, and the output frequency of the diesel generator set is within the preset frequency range, then the grid connection conditions are met.
[0106] Optionally, the control unit 21 is also used for: If the control unit detects that the mains voltage has returned to normal, it controls the first switch to connect the mains power supply link between the mains power supply and the target area power grid after disconnecting the power supply link between the diesel generator set and the target area power grid by controlling the second switch, and sends a shutdown command to the diesel generator set.
[0107] Optionally, the control unit 21 is specifically used for: Obtain real-time sampled values of the three-phase voltage of the mains power; If the real-time sampled values of the three-phase mains voltage are all greater than the preset second voltage threshold for a duration greater than the second duration, then it is determined that the mains voltage has returned to normal.
[0108] Optionally, the control unit 21 is also used for: During the operation of the diesel generator set, the engine water temperature of the diesel generator set is obtained through the control unit. If the engine water temperature of the diesel generator set is greater than the preset second water temperature threshold, the second switch is controlled to disconnect the power supply link between the diesel generator set and the target power grid, and a shutdown command is sent to the diesel generator set. The second water temperature threshold is greater than the first water temperature threshold.
[0109] Optionally, the control unit 21 is also used for: During operation of the diesel generator set, the remaining fuel level of the diesel generator set is obtained through the control unit. If the remaining fuel level of the diesel generator set is less than the preset second fuel level threshold, the second switch is controlled to disconnect the power supply link between the diesel generator set and the target power grid, and a shutdown command is sent to the diesel generator set. The second fuel level threshold is less than the first fuel level threshold.
[0110] It should be noted that the information interaction and execution process between the above-mentioned units are based on the same concept as the method embodiments of this application. Their specific functions and technical effects can be referred to the method embodiments section, and will not be repeated here.
[0111] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 3 As shown, the electronic device 3 provided in this embodiment may include: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30, such as a program corresponding to a power supply control method. When the processor 30 executes the computer program 32, it implements the steps described above in the power supply control method embodiment, for example... Figure 1 S101~S102 are shown. Alternatively, when processor 30 executes computer program 32, it implements the functions of each module / unit in the above power supply control system embodiment, for example... Figure 2 The functions of units 21-23 shown.
[0112] For example, computer program 32 can be divided into one or more modules / units, one or more of which are stored in memory 31 and executed by processor 30 to complete this application. One or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of computer program 32 in electronic device 3. For example, computer program 32 can be divided into control unit 21, first switch 22, and second switch 23; please refer to the specific functions of each unit. Figure 2 The relevant descriptions in the corresponding embodiments are not repeated here.
[0113] Those skilled in the art will understand that Figure 3 This is merely an example of electronic device 3 and does not constitute a limitation on electronic device 3. It may include more or fewer components than shown, or combine certain components, or use different components.
[0114] The processor 30 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0115] The memory 31 can be an internal storage unit of the electronic device 3, such as a hard disk or RAM. The memory 31 can also be an external storage device of the electronic device 3, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, or flash card. Furthermore, the memory 31 can include both internal and external storage units of the electronic device 3. The memory 31 is used to store computer programs and other programs and data required by the electronic device. The memory 31 can also be used to temporarily store data that has been output or will be output.
[0116] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units is merely an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the power supply control system can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0117] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0118] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments above.
[0119] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
[0120] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0121] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A power supply control method, characterized in that, An application is made in a power supply control system, the power supply control system including a control unit, a first switch, and a second switch; the control unit is connected to mains power, a diesel generator set, the first switch, and the second switch respectively; the first switch is used to control the connection and disconnection of the power supply link between the mains power and the target distribution area power grid; the second switch is used to control the connection and disconnection of the power supply link between the diesel generator set and the target distribution area power grid; the method includes: If the control unit detects a loss of mains power, or if it receives a target control command, it will control the first switch to disconnect the power supply link between the mains power and the target power grid, and then check whether the diesel generator set meets the preset safe start conditions. The safe start conditions are used to ensure that the diesel generator set can operate safely after the power supply link between the diesel generator set and the target power grid is connected. If so, the control unit sends an operating command to the diesel generator set, and after the preset grid connection conditions are met, controls the second switch to connect the power supply link between the diesel generator set and the target power grid.
2. The method according to claim 1, characterized in that, The control unit detects whether there is a loss of mains power in the following manner: Obtain the real-time sampled values of the three-phase voltage of the mains power; If the real-time sampled values of the three-phase voltage of the mains power are all lower than the preset first voltage threshold for a duration greater than the first duration, then it is determined that there is a voltage loss phenomenon in the mains power.
3. The method according to claim 1, characterized in that, The control unit detects whether the diesel generator set meets the safe starting conditions in the following manner: Determine whether the maintenance switch of the target transformer area power grid is currently engaged, determine whether the power supply link between the mains power and the target transformer area power grid has been disconnected, determine whether the remaining fuel of the diesel generator set is greater than a preset first fuel level threshold, and determine whether the engine coolant temperature of the diesel generator set is less than a preset first coolant temperature threshold. If the maintenance switch of the target transformer area power grid is not currently in operation, the power supply link between the mains power and the target transformer area power grid is disconnected, the remaining fuel of the diesel generator set is greater than the first fuel level threshold, and the engine coolant temperature of the diesel generator set is less than the first coolant temperature threshold, then it is determined that the diesel generator set meets the safe start-up conditions.
4. The method according to claim 1, characterized in that, The control unit determines whether the grid connection conditions are met in the following manner: The rotational speed, output voltage, and output frequency of the diesel generator set are obtained. If the speed of the diesel generator set is within a preset speed range, the output voltage of the diesel generator set is within a preset voltage range, and the output frequency of the diesel generator set is within a preset frequency range, then the grid connection conditions are met.
5. The method according to claim 1, characterized in that, The method further includes: If the control unit detects that the mains voltage has returned to normal, after controlling the second switch to disconnect the power supply link between the diesel generator set and the target power grid, it controls the first switch to connect the power supply link between the mains and the target power grid and sends a shutdown command to the diesel generator set.
6. The method according to claim 5, characterized in that, The control unit detects whether the mains voltage has returned to normal in the following way: Obtain the real-time sampled values of the three-phase voltage of the mains power; If the duration for which the real-time sampled values of the three-phase mains voltage are all greater than the preset second voltage threshold is greater than the second duration, then it is determined that the mains voltage has returned to normal.
7. The method according to any one of claims 1 to 6, characterized in that, Also includes: During the operation of the diesel generator set, the control unit acquires the engine coolant temperature of the diesel generator set. If the engine coolant temperature of the diesel generator set is greater than a preset second coolant temperature threshold, the control unit controls the second switch to disconnect the power supply link between the diesel generator set and the target power grid, and sends a shutdown command to the diesel generator set. The second coolant temperature threshold is greater than the first coolant temperature threshold.
8. The method according to any one of claims 1 to 6, characterized in that, Also includes: The control unit obtains the remaining fuel level of the diesel generator set during operation. If the remaining fuel level of the diesel generator set is less than a preset second fuel level threshold, the control unit controls the second switch to disconnect the power supply link between the diesel generator set and the target power grid and sends a shutdown command to the diesel generator set. The second fuel level threshold is less than the first fuel level threshold.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements each step of the power supply control method as described in any one of claims 1 to 8.
10. A computer program product, characterized in that, When the computer program product is executed by a processor, it implements each step of the power supply control method as described in any one of claims 1 to 8.
