Power input switching control method and device and medium

By using clamp circuits and software control in UPS relays to adjust the delay time, the problems of complex and high cost of traditional power input switching control solutions are solved, and the safety and reliability and economic benefits of power input switching are improved.

CN120033831APending Publication Date: 2025-05-23INVT POWER SYST SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510227142.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

Traditional power input switching control solutions have problems such as complex control, high cost and poor space utilization, which leads to problems such as stickiness during input switching of UPS relays, and even equipment damage.

Method used

By introducing a clamping circuit into the UPS relay, the bus voltage of the electrical equipment is clamped to the battery voltage, and the delay time is adjusted through software control to ensure that the drive on time of the battery relay is delayed after the main relay is disconnected to avoid live switching.

Benefits of technology

Dynamic balance of bus voltage during UPS relay input switching is achieved, avoiding live relay operation, reducing costs and improving space utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120033831A_ABST
    Figure CN120033831A_ABST
Patent Text Reader

Abstract

The invention discloses a power input switching control method and device and a medium, relates to the field of power electronics and control, and provides a power input switching control method for solving the problem of bus voltage instability in a part of scenes through a simple clamping circuit in allusion to safety risks possibly existing in current power input switching control. The clamping circuit passively achieves clamping of bus voltage, and extra control is not needed. And for the other part of scenes which cannot be solved by the clamping circuit, the problem of hot-line operation of the relay is avoided by controlling the time sequence of the relay. Therefore, compared with the existing solutions that the bidirectional DCDC module, the special large relay, the commercial power supply module and the battery power supply module work separately and independently and the like, the scheme has better economic benefits and lower implementation difficulty, and better meets the requirements of practical application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power electronics and control, and in particular to a power input switching control method, device and medium. Background Art

[0002] Uninterruptible Power Supply (UPS) relay is an uninterruptible power supply with energy storage device. It is a common topology as the main input switching device. Figure 1 As shown, the battery is the energy storage device in the UPS relay. When the mains power stops supplying power, the relay switches to the battery for power supply.

[0003] However, due to the structural characteristics of the UPS relay, when the external input voltage (such as Figure 1 When the battery input in the UPS is greater than the internal bus voltage, the battery relay will operate with current, which may easily cause problems such as the battery relay sticking, resulting in the UPS relay failing to switch normally as expected, and even causing damage to the UPS relay or even the entire electrical equipment.

[0004] At present, there are solutions to solve the above problems, such as using a bidirectional DC-DC (DCDC) module to charge and boost the busbar during the switching process, using a special large relay as a switching device, and separating the AC power supply module and the battery power supply module to work independently. However, all of the above solutions have problems such as complex control, high cost, and poor space utilization.

[0005] Therefore, technicians in this field are in urgent need of a power input switching control method to find a power input switching control solution with better economic benefits. Summary of the invention

[0006] The purpose of the present application is to provide a power input switching control method, device and medium to solve the problems of complex control, high cost and poor space utilization of traditional power input switching control solutions.

[0007] In order to solve the above technical problems, the present application provides a power input switching control method, which is applied to a UPS relay, wherein the UPS relay comprises: a main relay, a battery relay and a battery, wherein the battery is used to be connected to a bus of an electric device through a clamping circuit to clamp the bus voltage;

[0008] Methods include:

[0009] Obtain the actual voltage value of the mains connected to the main relay at the current moment and the actual voltage value of the busbar of the power-consuming equipment;

[0010] According to the actual voltage value of the mains and the actual voltage value of the busbar at the current moment, determine the instantaneous voltage value of the mains and the busbar drop voltage value at the actual disconnection moment of the main relay;

[0011] Compare the instantaneous voltage value of the mains power and the busbar drop voltage value, and adjust the delay time of the UPS relay according to the comparison result;

[0012] The delay time is the time between the main relay driving off and the battery relay driving on.

[0013] In a possible embodiment, before comparing the instantaneous voltage value of the mains power and the bus drop voltage value, the method further includes:

[0014] Get the actual voltage value of the battery;

[0015] If the actual voltage value of the battery is greater than the bus drop voltage value, the actual voltage value of the battery is used as the new bus drop voltage value.

[0016] In a possible embodiment, it further includes:

[0017] Measuring the first duration between the main relay driving closure moment and the actual disconnection moment;

[0018] Measuring the second duration of the battery relay from the moment it is driven on to the moment it is actually pulled in;

[0019] The delay duration also satisfies:

[0020] The sum of the second duration and the delay duration is greater than the first duration.

[0021] In a possible embodiment, if the actual voltage value of the mains electricity at the current moment is lower than the corresponding rated voltage value of the mains electricity, the method further includes:

[0022] If the instantaneous voltage value of the mains is less than the bus drop voltage value, the delay time is adjusted to control the battery relay to actually open after the main relay is actually disconnected.

[0023] In a possible embodiment, if the line voltage value of the mains power at the time when the main relay is actually disconnected is greater than the bus voltage value, the method further includes:

[0024] If the instantaneous voltage value of the mains is less than the bus drop voltage value, the time when any phase of the mains passes through zero after the actual disconnection time of the main relay is determined as the switching time;

[0025] Adjust the delay time to control the battery relay to actually open after the switching moment.

[0026] In a possible embodiment, determining the time when any phase of the main power crosses the zero point after the main relay is actually disconnected, which is recorded as the switching time, includes:

[0027] Determine the time when the three-phase voltage values ​​of the mains power are respectively lower than the actual voltage value of the bus for the first time, and obtain the first time, the second time and the third time; wherein the first time, the second time and the third time correspond to one phase of the three phases of the mains power respectively, and the switching time includes: the first time, the second time and the third time;

[0028] Adjusting the delay time to control the battery relay to actually open after the switching moment includes:

[0029] The sum of the second duration and the delay duration is greater than any one of the third duration, the fourth duration, and the fifth duration;

[0030] Among them, the third time length is the time length from when the main relay drive is turned off to the first moment; the fourth time length is the time length from when the main relay drive is turned off to the second moment; the fifth time length is the time length from when the main relay drive is turned off to the third moment.

[0031] In a possible embodiment, the first moment corresponds to the first phase among the three phases of the mains power that is lower than the actual bus voltage value for the first time;

[0032] If the third duration is less than the first duration, the method further includes:

[0033] Determine a sixth time duration required for the one phase corresponding to the third time duration to be lower than the actual bus voltage value for the second time;

[0034] The delay duration also satisfies:

[0035] The sum of the second duration and the delay duration is greater than any one of the sixth duration, the fourth duration, and the fifth duration.

[0036] In a possible embodiment, the delay duration also satisfies:

[0037] The sum of the second time duration and the delay time duration is less than the half-cycle time duration of the main relay being connected to the mains.

[0038] In a possible embodiment, it further includes:

[0039] If the delay time cannot satisfy the condition that the sum of the second time and the delay time is less than the half-cycle time of the mains power, the bus is controlled to be powered by bypass or powered off.

[0040] In order to solve the above technical problems, the present application also provides a power input switching control device, which is applied to a UPS relay. The UPS relay includes: a main relay, a battery relay and a battery. The battery is used to connect to the bus of the electrical equipment through a clamping circuit to clamp the bus voltage;

[0041] The device includes:

[0042] The acquisition module is used to obtain the actual voltage value of the mains connected to the main relay at the current moment and the actual voltage value of the busbar of the power-consuming equipment;

[0043] A determination module is used to determine the instantaneous voltage value of the mains and the bus drop voltage value at the actual disconnection moment of the main relay according to the actual voltage value of the mains and the actual voltage value of the bus at the current moment;

[0044] A comparison module is used to compare the instantaneous voltage value of the mains power and the busbar drop voltage value, and adjust the delay time of the UPS relay according to the comparison result;

[0045] The delay time is the time between the main relay driving off and the battery relay driving on.

[0046] In order to solve the above technical problems, the present application also provides a power input switching control device, comprising:

[0047] Memory for storing computer programs;

[0048] The processor is used to implement the steps of the power input switching control method as described above when executing a computer program.

[0049] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power input switching control method as described above are implemented.

[0050] The present application provides a power input switching control method, which realizes a dynamic balance system of bus voltage during the input power switching process of UPS relays, etc. through the synergistic effect of the voltage clamping circuit in hardware and the switching control method in software. Specifically, this solution clamps the bus voltage of the electrical equipment to the battery voltage through a simple clamping circuit. Even if the main relay of the UPS relay is disconnected during input switching, the output power of the electrical equipment is no longer borne only by the bus voltage. The clamping circuit will clamp the bus voltage to the battery voltage, which can avoid the instability of the bus voltage to a certain extent. In addition, for the special scenario where the external input mains voltage is greater than the battery voltage, this solution is also solved through a switching control method. Specifically, by obtaining the actual mains voltage value and bus voltage value at the current moment, the instantaneous mains voltage value and bus drop voltage value (i.e. the bus voltage value after the voltage drop caused by the disconnection of the mains power resulting in the output of the electrical equipment being entirely provided by the bus) are determined at the relay switching time node, i.e. the actual disconnection moment of the main relay; and by comparing the instantaneous mains voltage value and the bus drop voltage value, it is determined whether there is a risk of live switching of the relay; if the instantaneous mains voltage value is greater than the bus drop voltage value, it means that switching at this time may cause a risk of live relay action, and the problem can be avoided by adjusting the delay time of the UPS relay to delay the time for the battery relay to open.

[0051] It can be seen that this solution can solve the problem of bus voltage instability in some scenarios through a simple clamping circuit. The clamping circuit passively realizes the clamping of the bus voltage without additional control. For other scenarios that cannot be solved by the clamping circuit, a simple pure software control method is used to achieve it. Therefore, in actual applications, compared with existing solutions such as bidirectional DCDC modules, special large relays, and independent operation of AC power supply modules and battery power supply modules, this solution has better economic benefits and lower implementation difficulty, and better meets the needs of actual applications.

[0052] The power input switching control device and computer-readable storage medium provided in the present application correspond to the above method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0054] Figure 1 This is a common UPS relay application hardware topology diagram;

[0055] Figure 2A structural diagram of a clamping circuit provided by the present invention;

[0056] Figure 3 A flow chart of a power input switching control method provided by the present invention;

[0057] Figure 4 A control timing diagram of a power input switching control method provided by the present invention;

[0058] Figure 5 A schematic diagram showing that a phase voltage in the mains power provided by the present invention is lower than the bus voltage for the first time;

[0059] Figure 6 A structural diagram of a power input switching control device provided by the present invention;

[0060] Figure 7 This is a structural diagram of another power input switching control device provided by the present invention. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.

[0062] The core of this application is to provide a power input switching control method, device and medium.

[0063] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0064] like Figure 1 As shown, Figure 1 A common hardware topology structure is provided, which uses an uninterruptible power supply (UPS) relay as the main device for controlling the input power switching (part of the power input in the power-consuming device). The input power mainly includes AC power and battery (battery, as part of the UPS relay, is also an external input power for the power-consuming device). AC power is the external power input of the power-consuming device, and the battery is the internal energy storage device of the UPS relay, which serves as a backup power supply when the AC power is disconnected to provide uninterrupted power input.

[0065] Based on this structure, take the case of switching from AC input to battery input as an example: when the switch occurs, the main relay will be disconnected first; at this time, the output power is entirely borne by the bus voltage inside the power-consuming equipment, resulting in a decrease in the bus voltage; afterwards, when the battery relay is energized, if the bus voltage is lower than the external input voltage (battery voltage) of the power-consuming equipment, a large current will appear when it is energized, which can easily cause the battery relay to stick. Similar to the above, there is also the risk of live operation when the battery input is switched to AC input.

[0066] To solve the above problems, the present application provides a power input switching control method, which is applied to a UPS relay, wherein the UPS relay includes: a main circuit relay, a battery relay and a battery. Figure 1 As shown, the UPS relay and its hardware topology are existing circuit structures, and this embodiment does not impose additional restrictions on this.

[0067] However, it should be noted that the power input switching control method provided in the present application involves both hardware improvements and software improvements. The following embodiments also illustrate the two parts separately:

[0068] like Figure 2 As shown, in this solution, the battery in the UPS relay is used to connect to the bus of the electrical equipment through a clamping circuit to clamp the bus voltage to be consistent with the output voltage of the battery. Since the clamping circuit is a mature circuit structure, its most common function is to clamp the potential of the target point to a certain potential, which is the same as the purpose of using the clamping circuit in this method. Therefore, any clamping circuit that takes the battery voltage as input and can clamp the bus voltage to the battery voltage meets the needs of this method.

[0069] Figure 2 1 shows a possible clamping circuit implementation scheme, which is further improved by using a charger used in conjunction with a battery as an energy storage device in a UPS relay. Figure 2 In the charger structure shown, the electrical components in the dotted frame position in the original charger structure are replaced from insulated-gate bipolar transistor (IGBT) devices to diodes, thereby achieving the clamping effect. Figure 2 The rest of the parts are the original circuit structures of the battery charger, so they will not be described in detail in this embodiment.

[0070] for Figure 2 How does the clamping circuit shown in the figure achieve bus voltage clamping? Take the positive side of the battery as an example (BAT+): The current output by the battery flows along Figure 2The power flows to the busbar (N) through the red line, thereby clamping the busbar voltage to be consistent with the battery voltage. In other words, the busbar voltage will not be lower than the battery voltage, which can effectively solve the risk of live operation of the battery relay when the AC input is switched to the battery input.

[0071] In addition, it should be noted that the above embodiments and Figure 2 The clamping circuit shown is only one possible implementation scheme of the present application to solve the safety risk caused by live operation of UPS relays. It can be implemented by using the original charger used with the battery, and by improving the circuit structure of the charger and replacing the original two IGBT devices with diodes with lower cost and smaller volume, the purpose of clamping the bus voltage to the battery voltage can also be achieved.

[0072] However, if there are other considerations in actual application, such as wanting to directly use the existing battery charger without caring about the cost and circuit volume, then the above clamping circuit can also be implemented by the existing battery charger. Figure 2 The difference between the structures shown is only that the electrical components in the dotted box are IGBT devices or diodes. Existing chargers can realize bidirectional charging and discharging of the DC bus based on IGBT devices, and their functions include clamping the bus voltage (and can also reduce the bus voltage, or charge the bus voltage to a level higher than the battery voltage), ensuring the realization of the above technical effects.

[0073] It can be seen that the above two implementation methods of the clamping circuit have their own advantages and disadvantages in different application scenarios, but they can both achieve the purpose of clamping the bus voltage to the battery voltage, so in practical applications, the implementation method of the clamping circuit can be freely selected according to different needs.

[0074] Afterwards, the software improvement part in this application is described, and applied to the above hardware structure. This application also provides a power input switching control method, such as Figure 3 As shown, the method includes:

[0075] S11: Obtain the actual voltage value of the mains connected to the main relay and the actual voltage value of the busbar of the power-consuming equipment at the current moment.

[0076] S12: According to the actual voltage value of the mains and the actual voltage value of the bus at the current moment, determine the instantaneous voltage value of the mains and the bus drop voltage value at the actual disconnection moment of the main relay.

[0077] S13: Compare the instantaneous voltage value of the AC power and the bus drop voltage value, and adjust the delay time of the UPS relay according to the comparison result.

[0078] The delay time is the time between the main relay driving off and the battery relay driving on.

[0079] According to the above-mentioned relay energized action principle, when the main relay is actually turned off, the output power of the electrical equipment is all provided by the bus, which will cause the bus voltage to drop. Correspondingly, the bus drop voltage value in the above-mentioned step S12 refers to the bus voltage value after the bus voltage drops.

[0080] In addition, it can be known from the above-mentioned principle of relay energization that the main reason for the relay energization when the UPS relay performs input switching is that the AC voltage connected to the main relay (i.e., external input) is greater than the bus voltage. Based on the setting of the clamping circuit, if the voltage value of the external input AC power is less than the battery voltage value, the problem of the bus voltage being less than the external input AC power voltage value will never occur at any time, and the problem of relay energization can be completely avoided. However, for the scenario where the external input AC power voltage is greater than the battery voltage, the AC power voltage may be greater than the bus voltage. At this time, steps S11~S13 provided above in this method need to be solved.

[0081] Specifically, before performing input power switching control, the method first obtains the actual mains voltage value and bus voltage value at the current moment by step S11. Step S12 then uses this to calculate the instantaneous mains voltage value and bus drop voltage value at the moment when the main relay is actually turned off. If the bus drop voltage value is less than the instantaneous mains voltage value, it means that if the battery relay is turned on at this time, there may be a problem of the battery relay operating with current. At this time, this situation can be known based on the comparison in step S13, and the delay time for the battery relay to be driven to open can be adjusted to avoid opening the battery relay at this time. Similarly, if the bus drop voltage value is not less than the instantaneous mains voltage value, the battery relay can be turned on at the moment when the main relay is actually turned off. At this time, the input power switching will not cause the problem of the relay operating with current.

[0082] It should also be noted that for the calculation of the instantaneous voltage value of the mains and the bus drop voltage value in step S12, based on the characteristics of the mains and bus voltages, the mains, as a three-phase electricity, can determine the voltage value of any other phase based on the voltage value of any phase. Among them, the phase of the mains is related to time, so by obtaining the actual voltage value of the mains at the current moment, the instantaneous voltage value of the mains at any moment in the future can be predicted.

[0083] Exemplarily, the calculation formula of the instantaneous voltage value of the mains power can be expressed by the following formula:

[0084] Uin=Umax*sin(ωT1+φ);

[0085] In the formula, Uin represents the instantaneous voltage value of the mains; Umax represents the voltage peak value of the mains, which can be obtained by reverse calculation from the actual voltage value of the mains; ωT1+φ represents the phase of the mains when the main relay is actually disconnected.

[0086] Similarly, the bus drop voltage value is the bus voltage value after the voltage drops when the main relay is actually turned off because the power output of the electrical equipment is all provided by the bus. Therefore, the bus drop voltage value is related to the actual bus voltage value before the main relay is actually turned off (that is, the actual bus voltage value at the current moment) and the output power of the electrical equipment, based on which the bus drop voltage value can be calculated.

[0087] Exemplarily, the calculation formula of the bus drop voltage value can be expressed by the following formula:

[0088] Vdrop=√(Vbus^2- T1*Po / ηinv*Cbus);

[0089] Wherein, Vdrop represents the bus drop voltage value; Vbus represents the actual bus voltage value at the current moment; Po represents the output power of the electrical equipment; ηinv represents the inverter efficiency; Cbus represents the single-side bus capacitance value.

[0090] In addition, it should be noted that based on the setting of the clamping circuit, the bus voltage will not be less than the battery voltage. However, in actual applications, when calculating the bus drop voltage value in step S12, the calculated value may be less than the battery voltage. At this time, the comparison and input switching control based on the calculated value are not accurate enough. Based on this, this embodiment also provides a further implementation scheme, which includes before step S13:

[0091] S141: Obtain the actual voltage value of the battery.

[0092] S142: If the actual voltage value of the battery is greater than the bus drop voltage value, the actual voltage value of the battery is used as a new bus drop voltage value.

[0093] In this embodiment, before performing the comparison in step S13, the actual voltage value of the battery is first obtained and it is determined whether it is greater than the bus drop voltage value; if it is not greater than, it means that the bus drop voltage value is calculated accurately, and the comparison control in step S13 can be performed; if it is greater than, it means that the bus drop voltage value is not calculated accurately at this time. At this time, based on using the actual voltage value of the battery as the new bus drop voltage value, it can be closer to the actual bus drop voltage value, thereby improving the accuracy of the comparison and control in the subsequent step S13.

[0094] As can be seen from the above, this method provides a power input switching control solution that combines software and hardware, in which the bus voltage is clamped at the battery voltage through a hardware clamping circuit. For scenarios where the mains voltage is lower than the battery voltage, the problem of relay energization during input power switching can be completely avoided. In addition, compared with solutions such as bidirectional DCDC modules, special large relays, and solutions that separate the mains power supply module and the battery power supply module to work independently, the clamping circuit has lower costs and occupies less space, and the clamping function can be achieved passively without any control.

[0095] As for the special scenario where the AC voltage is greater than the battery voltage, this method solves the problem of live action through a set of control logic for the relay switching sequence. Specifically, by obtaining the real-time AC voltage and bus voltage values ​​before the input power is switched; by determining the AC instantaneous voltage and bus drop voltage values ​​at the key time node of the input power switching control (that is, the moment when the main relay is actually disconnected and the bus voltage drops), it is determined whether the AC voltage will be greater than the bus voltage when the input is switched at this time; if so, it means that turning on the battery relay at this time will cause live action, and this situation can be avoided by adjusting the delay time of the battery relay opening; if not, it means that turning on the battery relay at this time will not cause live action, and the battery relay can be turned on to complete the input switching.

[0096] In summary, this solution achieves the effect of avoiding live action when the relay input is switched through the synergy between the clamping circuit and the input switching control method. In addition, the clamping circuit itself is simple to implement, low-cost, requires little space, and does not require any additional control. Compared with traditional bidirectional DCDC modules, special large relays, and solutions that separate the mains power supply module and the battery power supply module to work independently, this solution has better economic benefits and feasibility.

[0097] On the other hand, it can be seen from the above embodiments that the power input switching control method provided in the present application focuses on the control of the main relay and the battery relay in the UPS relay, and the required switching control can be achieved by controlling the timing of opening and closing thereof.

[0098] In view of this, this embodiment first describes the general requirements for the actual UPS relay timing control: the control timing of the UPS relay is as follows: Figure 4 As shown, the period from the time when the main relay is driven off to the time when the main relay is actually actuated (i.e., the main relay is actually disconnected) is called the first time length T1; the period from the time when the battery relay is driven on to the time when the battery relay is actually actuated (i.e., the battery relay is actually turned on) is called the second time length T2; the period from the time when the main relay is driven off to the time when the battery relay is driven on is called the delay time length T0.

[0099] It is not difficult to understand that the above-mentioned T1 and T2 moments are only related to the hardware structure of the relay, which represents the delay between the control of the relay drive and the actual action of the relay, so it is impossible to directly control the length of T1 and T2. In addition, the specific values ​​of T1 and T2 are generally not known in advance, and it is necessary to actually conduct one or more experiments or simulations on the main relay and the battery relay to measure the specific values ​​of T1 and T2 (the maximum value of multiple experimental results can be taken to ensure safety). T0 is the duration from the main relay drive closing to the battery relay drive opening, which can be controlled by software logic. Therefore, the above-mentioned steps S11 to S13 are mainly to achieve the timing control of the UPS relay input power switching by controlling the delay time T0.

[0100] Furthermore, this embodiment also provides another possible implementation scheme for the timing control of input power switching, and the above method further includes:

[0101] S21: Measure the first duration from the time when the main relay is driven off to the time when it is actually disconnected.

[0102] S22: Measure the second duration from the moment the battery relay is driven on to the moment it is actually closed.

[0103] The delay duration also satisfies:

[0104] The sum of the second duration and the delay duration is greater than the first duration.

[0105] based on Figure 4 It is not difficult to see from the timing sequence shown that the purpose of this embodiment is to make T2+T0>T1, so as to avoid the main relay and the battery relay being turned on at the same time, avoiding the huge safety hazards caused by this. In the actual UPS relay input switching control, all controls should be controlled based on the premise of T2+T0>T1 to ensure safety.

[0106] In addition, in order to further improve the reliability of the above control method to avoid the main relay and the battery relay being turned on at the same time, this embodiment also provides a further implementation scheme, and the controlled quantity T0 also satisfies:

[0107] T2+T0>T1+Td;

[0108] Wherein, Td is any preset time length, for example, 1ms, 2ms, etc. The purpose of this embodiment is to further ensure that T2+T0>T1, so as to avoid the risk of explosion caused by the main relay and the battery relay being turned on at the same time, and to improve the safety and reliability of the electrical equipment.

[0109] As can be seen from the above, this embodiment constructs a time safety boundary for the relay action by controlling the time when the battery relay is driven to turn on when the input power is switched (specifically, controlling T0), thereby ensuring that the battery relay and the main circuit relay are not turned on at the same time, thereby avoiding the safety problems caused by the direct connection between the AC power and the battery.

[0110] Based on the above embodiments, it can be known that the most basic control condition that the present application needs to rely on when implementing the switching control of the power input is T2+T0>T1. In addition, in the implementation process of steps S11~S13, it is necessary to determine the bus voltage and the mains voltage at the actual disconnection time of the main relay (that is, the end time of T1). Among them, T0 is a controlled quantity that can be directly controlled, and T1 and T2 may be different under different working conditions, and generally need to be measured. However, even if interference factors such as measurement errors are ignored, there will be some special application scenarios that make the main relay unable to operate as expected (that is, the input main circuit is energized, causing the main relay to operate with power), that is, T1 is no longer accurate. It also makes the control strategy provided in the above embodiments no longer guarantee the safety and reliability of the power input switching control in these special application scenarios.

[0111] The following is a further description of several special scenarios where T1 is no longer accurate and needs to be switched from main input to battery input and their corresponding control methods:

[0112] Scenario 1: The line voltage of the mains input is lower than the rated line voltage;

[0113] Taking the rated line voltage of the mains in a certain area as 220V as an example, if the actual line voltage of the mains is lower than 220V, it means that the mains load rate is high and the current is large. At this time, it is necessary to switch from the main input to the battery input because the input current limit time has arrived. Due to the large current, the current will flow from the mains input to the internal bus of the electrical equipment, causing the main relay to operate with current, so T1 is no longer accurate at this time (that is, the actual time from the main relay driving off to the actual operation is no longer in line with expectations, and is generally longer than expected). If the switching control is performed according to T1 measured in step S21, the main relay and the battery relay may be turned on at the same time, resulting in the risk of explosion.

[0114] In view of this scenario, this embodiment provides a corresponding implementation scheme. If the actual voltage value of the mains electricity at the current moment is lower than the corresponding rated voltage value of the mains electricity, the method further includes:

[0115] S23-A: If the instantaneous voltage value of the AC power is less than the bus drop voltage value, the delay time is adjusted to control the battery relay to actually open after the main relay is actually disconnected.

[0116] That is, for scenario 1 where T1 is inaccurate, this embodiment proposes a control strategy that allows switching only when Uin < Vdrop. Based on this control strategy, it can effectively avoid the situation where the main relay operates with current due to low mains voltage and high load rate and cannot turn off as expected (T1), and protect the battery relay from conducting simultaneously with the main relay. That is, a protection logic for electrical equipment under low mains voltage is provided.

[0117] It should be noted that in the application scenario targeted by this embodiment, the main relay is delayed in turning off due to the large current of the mains. That is, when the input main relay is not disconnected, the output power of the electrical equipment is jointly borne by the bus and the mains. Therefore, the actual bus drop voltage value will be less than the result value calculated in the above formula, so there is sufficient margin. Based on the control method provided in this embodiment, the safety risk in the low mains voltage scenario can be effectively solved.

[0118] In addition, it should also be noted that the condition of Uin < Vdrop above is a special requirement for switching control in this special scenario, and it is also the condition for step S13 to determine whether to allow the input power supply to switch based on the comparison of the instantaneous mains voltage value and the bus drop voltage value. It can be seen that steps S11 - S13 actually cover the combined scenario of steps S21 - S22 and the special conditions proposed in this embodiment. In actual applications, steps S11 - S13 can be fully combined with steps S21 - S22 to implement. The switching control logic of steps S11 - S13 can meet the major premise of T2 + T0 > T1 in the above embodiment. Similarly, the following descriptions of how to meet the premise control condition of T2 + T0 > T1 in other special application scenarios and the further switching control schemes provided can all be implemented in combination with steps S11 - S13. And whether it is steps S11 - S13 or steps S21 - S22, they are all for controlling the controlled quantity T0.

[0119] Scenario 2: At the actual disconnection moment of the main relay, the line voltage value of the mains is greater than the bus voltage value.

[0120] As can be seen from the above, based on the clamping circuit, this application can clamp the bus voltage to the battery voltage to avoid the situation where during the period when the main relay is turned off and the battery relay is not opened, the output power of the electrical equipment is only provided by the bus voltage, resulting in the bus voltage being too low and lower than the external input voltage (mains voltage, battery voltage), which may cause the relay to operate with electricity.

[0121] In particular, since the feature that "at the actual disconnection moment of the main relay, the line voltage value of the mains is greater than the bus voltage value" is difficult to directly observe in actual applications, this embodiment also provides a common scenario that may lead to the above feature:

[0122] Taking the 220V mains power supply as an example again, when the input mains voltage is greater than 276V, high-voltage overlimit will occur and the power input will be switched from the main path to the battery. At this time, since the line voltage of the mains input is 276V, its peak value is 390V, while the current steady-state bus value is 400V, which is very likely to cause the input main path relay to act with a delay (i.e., T1 is inaccurate). Therefore, in this scenario, it is no longer safe to control the switching of the power input only based on T2 + T0 > T1.

[0123] To solve this problem, this embodiment also provides a corresponding implementation scheme. If the line voltage value of the mains power supply at the actual disconnection moment of the main path relay is greater than the bus voltage value, then this method further includes:

[0124] S23-B1: If the instantaneous voltage value of the mains power supply is less than the bus voltage drop value, then determine the moment when any phase of the mains power supply passes through the zero-crossing point after the actual disconnection moment of the main path relay, which is recorded as the switching moment.

[0125] S23-B2: Adjust the delay duration to control the battery relay to actually turn on after the switching moment.

[0126] Among them, the instantaneous voltage value Uin of the mains power supply and the bus voltage drop value Vdrop can be obtained based on the calculation formula provided in the above embodiment. However, different from the control scheme in Scenario 1 above, in this embodiment, when allowing switching, in addition to satisfying the condition Uin < Vdrop, it is also necessary to satisfy that one of the three-phase inputs of the mains power supply is at the zero-crossing point. Thus, it is avoided that the main path relay acts with a delay (T1 is inaccurate) due to the too high mains voltage, and further the problem that it is no longer safe to control the switching of the power input based on T2 + T0 > T1.

[0127] Furthermore, for this situation where the mains voltage is relatively large in this scenario, before the actual switching control starts, the bus voltage can be first increased to a voltage value higher than the current steady-state bus value of 400V (such as 430V) to leave a voltage drop margin for the bus voltage.

[0128] In addition, for the above Scenario 2, since it is difficult to detect the characteristic of whether the three phases of the mains power supply pass through the zero-crossing point, which brings a certain difficulty to the implementation of the switching control, so this embodiment also provides a possible implementation scheme for the specific implementation of the above step S23-B1:

[0129] Determine the moments required for the three-phase voltage values of the mains power supply to be respectively lower than the actual bus voltage value for the first time, and obtain the first moment, the second moment, and the third moment.

[0130] Among them, the first moment, the second moment, and the third moment respectively correspond to one of the three phases of the mains power supply, and the switching moment includes: the first moment, the second moment, and the third moment.

[0131] Then step S23-B2 further includes:

[0132] The sum of the second duration and the delay duration is greater than any one of the third duration, the fourth duration, and the fifth duration.

[0133] Wherein, the third duration is the duration between the driving-off of the main relay and the first moment; the fourth duration is the duration between the driving-off of the main relay and the second moment; the fifth duration is the duration between the driving-off of the main relay and the third moment.

[0134] Specifically, due to the excessive voltage of the commercial power supply (three-phase power), at time T1, there is still a commercial power voltage greater than the bus voltage (i.e., the battery voltage) inside the electrical equipment. At this time, the current will flow from the commercial power input from outside the electrical equipment to the bus inside the electrical equipment, resulting in the main relay operating with current, so the main relay cannot be turned off as expected (i.e., the measured T1). As Figure 5 shown, the actual turn-off duration will be extended to the moment when one of the three phases of the commercial power input from outside the electrical equipment (assumed to be phase A) drops below the bus voltage value inside the electrical equipment (since the bus voltage is clamped to the battery voltage, so Figure 5 the change of the internal bus voltage value is represented by the straight line segment BUS+). For the convenience of distinction, the extended duration is called the third duration T3, and the starting points of T3 and T1 are the same. At this time, if the control of the battery relay driving-on moment makes T2 + T0 < T4, it will cause the three-phase voltage of the commercial power supply (phase A) to be connected to the battery voltage through the main relay and the battery relay, resulting in problems such as explosion and damage to the electrical equipment.

[0135] Similarly, since the commercial power supply is three-phase power, in addition to the above-mentioned phase A, there will also be a fourth duration T4 and a fifth duration T5 corresponding to the other two phases. By analogy, T2 + T0 also needs to satisfy T2 + T0 > T4 and T2 + T0 > T5 respectively, to ensure that the other two phases of the three-phase commercial power supply will not be connected to the battery voltage through the main relay and the battery relay. Therefore, this embodiment proposes another control condition that T0 needs to satisfy, that is, T2 + T0 > MAX(T3, T4, T5). To ensure that when the input power supply is switched by controlling T0, any one of the three phases of the commercial power supply will not be connected to the battery voltage through the main relay and the battery relay, ensuring the safety and reliability of the power supply input switching of the electrical equipment.

[0136] On the other hand, in the above-mentioned embodiment, only the one-to-one correspondence between T3, T3, T4 and the three phases of the commercial power supply is mentioned, but it does not limit which phase of the three phases T2, T3, T4 specifically correspond to. In a possible embodiment, the moments when the three phases of the commercial power supply are first lower than the bus voltage value can be detected simultaneously, and according to the sequence of the moments lower than the bus voltage value, the corresponding required durations are named the third duration T3, the fourth duration T4, and the fifth duration T5 in turn.

[0137] Based on this, this embodiment also provides another possible implementation. For the third duration T3, if the third duration T3 is less than the first duration T1, the above method further includes:

[0138] S23-B3: Determine the sixth duration required for a certain phase to be lower than the actual bus voltage value for the second time corresponding to the third duration.

[0139] Then the delay duration T0 also satisfies:

[0140] The sum of the second duration and the delay duration is greater than any one of the sixth duration, the fourth duration, and the fifth duration.

[0141] As can be seen from the above embodiments, the switching control implemented in this embodiment needs to be based on a major premise, that is, it is necessary to satisfy T2 + T0 > T1. In the special scenario targeted by this embodiment, because the mains voltage is too high, the live operation of the main relay will make the measured value T1 inaccurate. However, the actual duration required for the main relay to turn off from being driven to actual operation should be longer than T1, that is, theoretically, the situation of T3 < T1 will not occur. However, based on the method for determining T3 provided in the above embodiments, the situation of T3 < T1 may occur during the calculation process. At this time, the value of T3 is inaccurate and cannot be used as a parameter basis for controlling the switching. Based on this, this embodiment further measures the duration T6 required for a certain phase corresponding to T3 to be lower than the bus voltage value for the second time, and uses T6 instead of T3 to participate in the switching control, so that T0 satisfies T2 + T0 > MAX(T6, T4, T5), thereby avoiding the safety risk caused by the direct connection of the mains and the battery.

[0142] It should be noted that the inaccurate T3 value in the above embodiments must correspond to the phase that is first lower than the bus voltage value among the three phases of the mains. This problem will not occur in the other two phases, that is, there is no need to separately measure the duration required for the second time to be lower than the bus voltage value.

[0143] In addition, the two scenarios shown above are also two representative scenarios where T1 becomes inaccurate due to "excessive current of the main input (mains)" and "excessive voltage of the main input (mains)". In other application scenarios, if T1 also becomes inaccurate due to excessive mains current or voltage, the switching control can also refer to the control scheme provided in the above embodiments.

[0144] It should also be noted that the several special application scenarios mentioned in the above embodiments are all aimed at the scenario of switching from main power input to battery input, where the main power has special performance and causes the main relay to operate under power. In other words, a compensatory switching control scheme is provided for the scenario where T1 is not accurate among the two measured quantities T1 and T2. However, the reason why it does not involve the switching of the battery to the main power and the live operation of the battery relay is that this scheme clamps the bus voltage to the battery voltage through a clamping circuit. Therefore, the voltages at both ends of the battery relay input and output are theoretically always consistent, and the battery relay will not operate under power, that is, theoretically T2 is always accurate. Therefore, the above embodiments are all for explaining several possible application scenarios where T1 is no longer accurate and their corresponding control schemes.

[0145] On the other hand, this embodiment also provides another possible implementation scheme. When performing switching control, the delay time T0 also satisfies:

[0146] The sum of the second time duration and the delay time duration is less than the half-cycle time duration of the main relay being connected to the mains.

[0147] In a possible example, the mains frequency is 50 Hz, and the mains half-cycle duration is 10 ms, that is, T2+T0<10 ms.

[0148] It should be noted that the switching control methods provided in the above embodiments are all to realize power input switching control by controlling the interval (i.e. controlling the duration of T0) to turn on the battery relay drive after the main relay drive is turned off. The restriction conditions for T0 mentioned in the above embodiments are all to limit the lower limit value of T0. However, the value of T0 cannot be infinite. If the value of T0 is too large, the time interval between the main relay turning off and the battery relay turning on will be too long. At this time, the output power of the electrical equipment is all provided by the bus voltage. If the time of this stage is too long, the bus voltage will gradually be unable to bear the output power of the electrical equipment, resulting in unstable output of the electrical equipment. Therefore, this embodiment limits the upper limit value of the T0 value to ensure that the battery relay drive is turned on within half a city power cycle after the main relay drive is turned off, thereby ensuring the output stability of the electrical equipment.

[0149] It should also be noted that the restriction condition of being less than the half-cycle duration (10ms) of the mains power can not only restrict T2+T0, but also restrict the lower limit value restriction conditions MAX(T3, T4, T5) and MAX(T6, T4, T5) of T2+T0 in the above embodiment. If MAX(T3, T4, T5)>10ms or MAX(T6, T4, T5)>10ms, it means that the restriction condition determined at this time may be misjudged due to the mains voltage being too high or the frequency being too high, and other measures can be taken to avoid safety problems.

[0150] Furthermore, if the upper limit value restriction condition provided for T0 in the previous embodiment conflicts with the lower limit value restriction condition provided for T0 in the other embodiments, that is, they cannot be satisfied at the same time, this embodiment also provides a possible implementation scheme, and the above method further includes:

[0151] S24: If the delay time cannot satisfy the condition that the sum of the second time and the delay time is less than the half-cycle time of the mains power, the bus is controlled to be powered by the bypass or powered off.

[0152] When entering the branch where step S24 is located, it means that the previously determined lower limit restriction condition may be due to a misjudgment caused by excessively high AC voltage or frequency in extreme scenarios, and cannot be used as a basis for switching control. In addition, even if there is no misjudgment of the lower limit condition, the switching control achieved in this way will cause the output of the electrical equipment to be unstable, seriously affecting the function of the electrical equipment, which is contrary to the original intention of the UPS relay to provide uninterruptible power input to ensure long-term continuous and stable operation of the electrical equipment. Therefore, this embodiment switches the bus to bypass power supply or directly cuts off power to facilitate operation and maintenance personnel to find and troubleshoot problems as soon as possible.

[0153] In addition, it can be seen from the above embodiments that the power input switching control method provided in the present application can ensure effective and reliable control of the power input switching by controlling only one parameter, namely, the delay time T0 from the main relay drive being turned off to the battery relay drive being turned on. The implementation is simple and efficient.

[0154] On the other hand, it should be noted that the implementation schemes provided in the above embodiments do not conflict with each other, and can also complement each other, so that the method can achieve reliable and safe switching control effects in various scenarios. Therefore, the implementation schemes provided in the above embodiments can be implemented separately or together, and this embodiment does not limit this.

[0155] In the above embodiment, a power input switching control method is described in detail, and the present application also provides an embodiment corresponding to a power input switching control device. It should be noted that the present device is also established and applied to UPS relays, and the UPS relays include: a main relay and a battery relay. Among them, the busbar whose power input switching is controlled by the UPS relay is connected to the battery through a clamping circuit, and the clamping circuit is used to clamp the busbar voltage to be consistent with the output voltage of the battery.

[0156] In addition, the present application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

[0157] Based on the perspective of functional modules, such as Figure 6 As shown, this embodiment provides a power input switching control device, including:

[0158] The acquisition module 11 is used to obtain the actual voltage value of the mains connected to the main relay and the actual voltage value of the bus of the power-consuming equipment at the current moment;

[0159] The determination module 12 is used to determine the instantaneous voltage value of the mains and the bus drop voltage value at the actual disconnection moment of the main relay according to the actual voltage value of the mains and the actual voltage value of the bus at the current moment;

[0160] The comparison module 13 is used to compare the instantaneous voltage value of the mains power and the bus drop voltage value, and adjust the delay time of the UPS relay according to the comparison result.

[0161] The delay time is the time between the main relay driving off and the battery relay driving on.

[0162] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0163] Figure 7 A structural diagram of a power input switching control device provided in another embodiment of the present application is shown as follows: Figure 7 As shown, a power input switching control device includes: a memory 20 for storing a computer program;

[0164] The processor 21 is used to implement the steps of a power input switching control method as described in the above embodiment when executing a computer program.

[0165] The power input switching control device provided in this embodiment may include but is not limited to a mobile terminal, a personal computer, a workstation, etc.

[0166] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to learning of electrical equipment.

[0167] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of a power input switching control method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include, but is not limited to, a power input switching control method, etc.

[0168] In some embodiments, a power input switching control device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power source 25 , and a communication bus 26 .

[0169] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on a power input switching control device, and may include more or fewer components than those shown in the figure.

[0170] A power input switching control device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a power input switching control method.

[0171] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0172] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0173] The above is a detailed introduction to a power input switching control method, device and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

[0174] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A power input switching control method, applied to a UPS relay, the UPS relay comprising: A main relay, a battery relay and a battery, wherein the battery is used to connect to a busbar of an electrical device through a clamping circuit to clamp the busbar voltage; Methods include: Obtaining the actual voltage value of the mains connected to the main relay and the actual voltage value of the busbar of the electrical equipment at the current moment; According to the actual voltage value of the mains and the actual voltage value of the bus at the current moment, determine the instantaneous voltage value of the mains and the bus drop voltage value at the actual disconnection moment of the main relay; Comparing the instantaneous voltage value of the mains power with the bus drop voltage value, and adjusting the delay time of the UPS relay according to the comparison result; The delay time is the time between the driving off time of the main relay and the driving on time of the battery relay.

2. The power input switching control method according to claim 1, characterized in that: Before comparing the instantaneous voltage value of the mains power with the bus drop voltage value, the method further includes: Obtaining an actual voltage value of the battery; If the actual voltage value of the battery is greater than the bus drop voltage value, the actual voltage value of the battery is used as the new bus drop voltage value.

3. The power input switching control method according to claim 1, characterized in that: Also includes: Measuring a first duration between the main relay being driven off and actually disconnected; Measuring a second time duration between the driving start time and the actual closing time of the battery relay; Then the delay duration also satisfies: The sum of the second duration and the delay duration is greater than the first duration.

4. The power input switching control method according to claim 3, characterized in that: If the actual voltage value of the mains electricity at the current moment is lower than the corresponding rated voltage value of the mains electricity, the method further includes: If the instantaneous voltage value of the mains power is less than the bus drop voltage value, the delay time is adjusted to control the battery relay to actually open after the main relay is actually disconnected.

5. The power input switching control method according to claim 3, characterized in that: If the line voltage value of the mains at the time when the main relay is actually disconnected is greater than the bus voltage value, the method further includes: If the instantaneous voltage value of the mains is less than the bus drop voltage value, the time when any phase of the mains passes through zero after the actual disconnection time of the main relay is determined as the switching time; The delay time is adjusted to control the battery relay to actually open after the switching time.

6. The power input switching control method according to claim 5, characterized in that: Determining the time when any phase of the mains passes through zero after the main relay is actually disconnected, recorded as the switching time, includes: Determine the time when the three-phase voltage values ​​of the mains power are respectively lower than the actual voltage value of the bus for the first time, and obtain a first time, a second time and a third time; wherein the first time, the second time and the third time correspond to one phase of the three phases of the mains power respectively, and the switching time includes: the first time, the second time and the third time; Adjusting the delay time to control the battery relay to actually open after the switching moment includes: The sum of the second duration and the delay duration is greater than any one of the third duration, the fourth duration and the fifth duration; Among them, the third time length is the time length from the main relay drive being closed to the first moment; the fourth time length is the time length from the main relay drive being closed to the second moment; the fifth time length is the time length from the main relay drive being closed to the third moment.

7. The power input switching control method according to claim 6, characterized in that: The first moment corresponds to the first phase of the three phases of the mains power that is lower than the actual bus voltage value for the first time; If the third duration is less than the first duration, the method further includes: Determine a sixth time duration required for the one phase corresponding to the third time duration to be lower than the actual bus voltage value for the second time; Then the delay duration also satisfies: The sum of the second duration and the delay duration is greater than any one of the sixth duration, the fourth duration, and the fifth duration.

8. The power input switching control method according to any one of claims 1 to 7, characterized in that: The delay duration also satisfies: The sum of the second time duration and the delay time duration is less than the half-cycle time duration of the main relay being connected to the mains power.

9. The power input switching control method according to claim 8, characterized in that: Also includes: If the delay time cannot satisfy the condition that the sum of the second time and the delay time is less than the half-cycle time of the mains power, the bus is controlled to be powered by bypass or powered off.

10. A power input switching control device, applied to a UPS relay, the UPS relay comprising: A main relay, a battery relay and a battery, wherein the battery is used to connect to a busbar of an electrical device through a clamping circuit to clamp the busbar voltage; The device includes: An acquisition module is used to acquire the actual voltage value of the mains connected to the main relay and the actual voltage value of the busbar of the electrical equipment at the current moment; A determination module, used to determine the instantaneous voltage value of the mains and the bus drop voltage value at the actual disconnection moment of the main relay according to the actual voltage value of the mains and the actual voltage value of the bus at the current moment; A comparison module, used for comparing the instantaneous voltage value of the mains power with the bus drop voltage value, and adjusting the delay time of the UPS relay according to the comparison result; The delay time is the time between the driving off time of the main relay and the driving on time of the battery relay.

11. A power input switching control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the power input switching control method as claimed in any one of claims 1 to 9 when executing the computer program.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power input switching control method according to any one of claims 1 to 9 are implemented.