Background
An Uninterruptible Power Supply (UPS), which is an uninterruptible power supply, is a constant voltage and constant frequency uninterruptible power supply that includes an energy storage device (usually a battery) and an inverter as a main component, and the operating mode thereof is mainly divided into two situations, namely a mains supply state (normal mains supply) and a battery state (abnormal mains supply). When the battery state, break off the commercial power, transmit the electric energy of battery to the dc-to-ac converter through the generating line and invert, give the consumer power supply again.
When the UPS is powered off, whether in a mains supply state or a battery state, the voltage on the bus is kept at a high value, which is usually much higher than a safe voltage, and therefore, the bus needs to be discharged so that the bus voltage is reduced to the safe voltage, thereby ensuring personal and property safety.
In the prior art, a bus discharge resistor is generally connected in parallel at two ends of a bus, and when a power-off command is received, a loop where the bus discharge resistor and the bus are located is conducted, so that electric energy on the bus is released to the bus discharge resistor. Two constraint conditions are provided for selecting the bus discharge resistor, and the two constraint conditions are mutually contradictory and respectively comprise that:
1) the discharge time period cannot exceed 5 minutes generally based on the requirements of discharge specifications, so that the resistance value of the bus discharge resistor is required to be small in order to realize rapid discharge, but the power loss is very serious at the moment.
2) Based on the requirement of power loss, the power loss of the bus discharge resistor cannot be too large, which requires that the resistance value of the bus discharge resistor is large, but the problem of too long discharge time is caused at the moment.
Therefore, the problem that how to simultaneously consider the problem that the power loss of the bus discharge resistor is too large and the discharge time is too long is a problem to be solved urgently by the technical personnel in the field.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for controlling the bus discharge of a UPS, which are used for simultaneously solving the problems of overlarge power loss and overlong discharge time of a bus discharge resistor.
In order to solve the above technical problem, the present invention provides a method for controlling bus discharge of a UPS, including:
when a shutdown power-off command is received, the bus is controlled to charge the storage battery;
judging whether the charging state of the storage battery reaches a preset state or not;
if yes, stopping charging the storage battery to discharge the bus discharging resistor through the bus until the voltage of the bus drops to a preset safe voltage.
Preferably, the determining whether the charging state of the storage battery reaches a preset state specifically includes:
judging whether the current input voltage of the storage battery is reduced to the charging voltage of the storage battery;
if so, determining that the charging state of the storage battery reaches the preset state, otherwise, determining that the charging state of the storage battery does not reach the preset state.
Preferably, before receiving the shutdown power-down command, the method further includes:
when the electric supply state is carried out, judging whether the residual energy storage capacity of the storage battery reaches a critical value or not according to the initial discharge voltage of the bus, the resistance value of the bus discharge resistor, the bus discharge time and the current energy storage capacity of the storage battery;
and if so, stopping charging the storage battery through the commercial power.
Preferably, before receiving the shutdown power-down command, the method further includes:
judging whether the residual energy-storable capacity of the storage battery meets a preset capacity or not according to the initial discharge voltage of the bus, the resistance value of the bus discharge resistor, the bus discharge duration and the current energy-stored capacity of the storage battery;
if not, outputting a first alarm signal.
Preferably, the charging of the storage battery by the control bus is specifically as follows: and controlling the bus to charge the storage battery in an evenly charged charging mode.
Preferably, the method further comprises the following steps:
when a power-off command is received, timing is started, and when the timing duration reaches a preset discharging duration, whether the voltage of the bus is reduced to the preset safe voltage is judged;
if not, outputting a second alarm signal.
In order to solve the above technical problem, the present invention further provides a bus discharge control apparatus of a UPS, including:
the first control unit is used for controlling the bus to charge the storage battery when a shutdown power-off command is received;
the judging unit is used for judging whether the charging state of the storage battery reaches a preset state or not;
and the second control unit is used for stopping charging the storage battery to discharge the bus discharging resistor through the bus until the voltage of the bus is reduced to a preset safe voltage when the judgment result of the judgment unit is yes.
In order to solve the above technical problem, the present invention further provides a bus discharge control apparatus of a UPS, including a memory for storing a computer program;
and a processor for implementing the steps of the bus discharge control method of the UPS when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the method for controlling the bus discharge of the UPS.
According to the bus discharge control method of the UPS, when a shutdown power-off command is received, the bus is controlled to charge the storage battery, and after the charge state of the storage battery reaches a preset state, the storage battery is stopped to discharge the bus discharge resistor through the bus until the voltage of the bus is reduced to a preset safe voltage. Therefore, in the method, the discharging process of the bus is realized through the storage battery and the bus discharging resistor, on one hand, the storage battery has higher efficiency of consuming electric energy compared with the bus discharging resistor, the discharging time can be shortened, on the other hand, the energy recovery is realized after the storage battery stores energy, and the resources are saved. Due to the advantages of the two aspects of the storage battery, when the bus discharge resistor is selected, the resistance value of the resistor is superior to that of the prior art no matter the resistance value is too large or too small. In conclusion, the method can simultaneously take account of the problems of overlarge power loss and overlong discharge time of the bus discharge resistor.
In addition, the invention also provides a bus discharge control device, equipment and a storage medium of the UPS, which correspond to the bus discharge control method of the UPS, and the effects are the same.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The invention provides a method, a device, equipment and a storage medium for controlling the bus discharge of a UPS, which are used for simultaneously solving the problems of overlarge power loss and overlong discharge time of a bus discharge resistor.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for controlling bus discharge of a UPS according to an embodiment of the present invention. As shown in fig. 1, the method includes:
s10: and when a shutdown power-off command is received, the bus bar is controlled to charge the storage battery.
It should be noted that the battery mentioned in the present invention is a battery of the UPS itself, and is not additionally added. The operation states of the UPS are divided into two types, which have already been described above and are not described herein again. When the mains supply state is realized, the storage battery receives the mains supply through the bus, so that energy is stored, and therefore, the bus always keeps high voltage no matter in the mains supply state or the battery state. When the UPS needs to be shut down, the voltage on the bus needs to be reduced to a safe voltage, which is a preset safe voltage described later. In the prior art, after a shutdown power-off command is received, a bus discharge resistor connected in parallel with a bus is directly controlled to consume electric energy on the bus, so that the purpose of voltage reduction is achieved. In this embodiment, the bus bar is first controlled to charge the battery. It will be appreciated that the battery must have a residual storable energy capacity due to the need to charge the battery, which would otherwise not be possible. Therefore, compared with the prior art, in the embodiment, the storage battery is required to be charged to a certain preset value, and is not charged through the commercial power any more, but the storage battery waits for the residual electric energy on the bus after the shutdown power-off command is obtained. The remaining energy-storable capacity of the storage battery needs to be set according to various parameters, is not necessarily a numerical value, and can also be a certain interval, and the various parameters specifically include the initial voltage of the bus, the total capacity of the storage battery, the resistance value of the bus discharge resistor and the like. In a specific implementation, the optimal value of the remaining energy storage capacity of the storage battery may be set empirically or calculated through a mathematical algorithm, for example, by collecting various historical data and performing calculation on a neural network, which is not limited in this embodiment.
The control bus charges the storage battery, on one hand, the storage battery has the function of storing energy, and can be used by electric equipment in a battery state after the energy is stored, so that the energy is saved, namely the loss of power is reduced; on the other hand, the working efficiency of the storage battery is generally higher than that of the bus discharge resistor, that is, the storage battery can make the voltage on the bus drop to a larger extent within the same time, or make the voltage on the bus drop to the same extent, and the time taken by the storage battery is far shorter than that of the bus discharge resistor.
In this case, the bus discharge resistance also consumes the electric energy on the bus at the same time, but the energy consumed by the bus discharge resistance is small compared to the energy consumed by the battery.
S11: and judging whether the charging state of the storage battery reaches a preset state, and if so, entering S12.
It can be understood that, when the storage battery is charged, there is a requirement for the input voltage, and once the input voltage is lower than the rated charging voltage of the storage battery, the charging cannot be continued, and at this time, the voltage on the bus may still be higher than the preset safe voltage. In addition, when the voltage on the bus decreases to a certain value, the bus can be discharged through the bus discharge resistor alone, and the discharge time is also satisfactory, in which case, the storage battery does not need to be kept in a charged state for a long time. Finally, there is also a case that the storage battery cannot be charged any more after being fully charged, and the residual electric energy on the bus needs to be released through the bus discharging resistor.
In summary, the charging state of the storage battery has various conditions, and once the preset state is reached, the charging can be stopped. And if the charging of the storage battery does not reach the preset state, continuously controlling the bus to charge the storage battery until the charging state of the storage battery reaches the preset state.
S12: and stopping charging the storage battery to discharge the bus discharge resistor through the bus until the voltage of the bus drops to the preset safe voltage.
When the storage battery is stopped being charged, the bus discharges the bus discharging resistance independently without control, and the bus discharging resistance belongs to natural discharging.
It should be noted that when the bus discharge resistor alone discharges the battery depends on the state of charge of the battery. In addition, the selection of the resistance value of the bus discharging resistor is also determined according to the parameters of the UPS and the discharging duration requirement, and is not described in detail in this embodiment.
According to the bus discharge control method of the UPS provided by the embodiment of the invention, when a shutdown power-off command is received, the bus is controlled to charge the storage battery, and after the charge state of the storage battery reaches a preset state, the storage battery is stopped to be charged so as to discharge the bus discharge resistor through the bus until the voltage of the bus is reduced to a preset safe voltage. Therefore, in the method, the discharging process of the bus is realized through the storage battery and the bus discharging resistor, on one hand, the storage battery has higher efficiency of consuming electric energy compared with the bus discharging resistor, the discharging time can be shortened, on the other hand, the energy recovery is realized after the storage battery stores energy, and the resources are saved. Due to the advantages of the two aspects of the storage battery, when the bus discharge resistor is selected, the resistance value of the resistor is superior to that of the prior art no matter the resistance value is too large or too small. In conclusion, the method can simultaneously take account of the problems of overlarge power loss and overlong discharge time of the bus discharge resistor.
Fig. 2 is a flowchart of another method for controlling bus discharge of a UPS according to an embodiment of the present invention. As a preferred implementation manner, in the above embodiment, the determining whether the state of charge of the storage battery reaches the preset state specifically includes:
s110: and judging whether the current input voltage of the storage battery is reduced to the charging voltage of the storage battery, if so, determining that the charging state of the storage battery reaches a preset state, and entering S12, otherwise, determining that the charging state of the storage battery does not reach the preset state, and returning to S110.
In this embodiment, considering that the power of the storage battery is far greater than the power of the bus discharge resistor, the consumed time is short, and the storage battery can store energy, therefore, the residual electric energy of the bus is distributed to the storage battery to the greatest extent, and the discharge duration and the power loss of the bus discharge resistor are reduced to the greatest extent.
Fig. 3 is a flowchart of another method for controlling bus discharge of a UPS according to an embodiment of the present invention. As a preferred implementation manner, on the basis of the foregoing embodiment, before receiving a power-off command, the method further includes:
s30: and when the electric supply state is carried out, judging whether the residual energy-storable capacity of the storage battery reaches a critical value or not according to the initial discharge voltage of the bus, the resistance value of the bus discharge resistor, the bus discharge duration and the current energy-storing capacity of the storage battery, and if so, entering S31.
S31: and stopping charging the storage battery through the commercial power.
In order to ensure that the storage battery can normally participate in the subsequent charging process, in this embodiment, when the utility power is in the utility power state, the remaining storable energy capacity of the storage battery is detected, and the critical value is also calculated in advance, because the parameters of each UPS are different and the resistance values of the bus discharge resistors are also different, the critical value is not a uniform value and needs to be determined according to specific conditions. Once the remaining storable energy capacity exceeds the critical value, it indicates that the subsequent discharging process cannot be normally implemented, for example, the requirement of the discharging duration cannot be met, or the power loss of the bus discharging resistor is large.
In this embodiment, the reason why the battery is in the commercial power state is that, in the commercial power state, the storage battery receives the commercial power through the bus to realize charging, and in the battery state, the storage battery is in discharging, and the remaining storable energy capacity of the storage battery is larger and larger, and the deviation from the critical value is further and further, so that the subsequent charging process of the storage battery is not affected.
Fig. 4 is a flowchart of another method for controlling bus discharge of a UPS according to an embodiment of the present invention. As a preferred implementation manner, on the basis of the foregoing embodiment, before receiving a power-off command, the method further includes:
s40: and judging whether the residual energy-storable capacity of the storage battery meets the preset capacity or not according to the initial discharge voltage of the bus, the resistance value of the bus discharge resistor, the bus discharge time and the current energy-storing capacity of the storage battery, if not, entering S41, and if so, entering S10.
S41: and outputting a first alarm signal.
It should be noted that in this embodiment, the precondition of S40 does not require that the battery be in a battery state or a mains state, and both states may be any. The predetermined capacity is different from the critical value in the previous embodiment, and the predetermined capacity also needs to be calculated in advance, and the predetermined capacity may be a numerical value or an interval. In specific implementation, if the remaining energy-storable capacity of the storage battery does not meet the preset capacity, that is, more energy cannot be stored, the electric energy consumed by the storage battery on the bus is insufficient, and more electric energy is released through the bus discharge resistor, so that the problem of long-time discharging process of the bus discharge resistor is caused. As for the type of the first alarm signal, the first alarm signal can be a buzzer, a flash lamp or a communication module which is connected to communicate with the mobile terminal.
The function of S40 is to prevent the system from continuing to control the battery and bus discharge resistance to proceed according to the above discharge method when the battery does not have sufficient remaining storable capacity, eventually resulting in discharge failure.
As a preferred implementation manner, on the basis of the above embodiment, the controlling the bus to charge the storage battery specifically includes: and the control bus charges the storage battery in an evenly-charged charging mode.
The uniform charging means that the battery is charged in a mode of constant current and constant time, and the charging is fast. The charging voltage is large compared to the floating charge. Float charging means that when the battery is fully charged, the charger does not stop charging, but provides a constant float voltage and a small float current to the battery, because the battery naturally discharges electric energy once the charger stops charging, and therefore the natural discharge is balanced by the float charging. However, in consideration of the characteristics of the secondary battery to be used in the present invention, it is preferable that the mode is a mode of uniform charging.
Fig. 5 is a flowchart of another method for controlling bus discharge of a UPS according to an embodiment of the present invention. As a preferred implementation, on the basis of the above embodiment, the method further includes:
s50: and when a shutdown power-off command is received, timing is started, when the timing duration reaches a preset discharge duration, whether the voltage of the bus is reduced to a preset safe voltage is judged, and if not, the step S51 is executed.
S51: and outputting a second alarm signal.
It is understood that the steps may not be strictly required in the order of S11 and S12, and may be performed simultaneously, so that S11 and S12 are independent from each other, or may be performed after S12 as shown in fig. 5. It should be noted that, after S12, S50 may be set, and only when the time period reaches the preset discharge time period, whether the voltage of the bus decreases to the preset safe voltage is determined, and it is not determined that the execution of S12 is finished.
As for the type of the second alarm signal, the second alarm signal can be a buzzer, a flash lamp or a communication module which is connected to communicate with the mobile terminal.
Fig. 6 is a structural diagram of a bus discharge control apparatus of a UPS according to an embodiment of the present invention. As shown in fig. 6, the apparatus includes:
and the first control unit 10 is used for controlling the bus bar to charge the storage battery when receiving a power-off command.
And a judging unit 11 for judging whether the charging state of the storage battery reaches a preset state.
And the second control unit 12 is used for stopping the charging of the storage battery to discharge the bus discharging resistor through the bus until the voltage of the bus drops to the preset safe voltage when the judgment result of the judgment unit is yes.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
According to the bus discharge control device of the UPS provided by the embodiment of the invention, when a shutdown power-off command is received, the bus is controlled to charge the storage battery, and after the charge state of the storage battery reaches a preset state, the storage battery is stopped to be charged so as to discharge the bus discharge resistor through the bus until the voltage of the bus is reduced to a preset safe voltage. Therefore, the device realizes the discharging process of the bus through two ways of the storage battery and the bus discharging resistor, on one hand, the storage battery has higher efficiency of consuming electric energy compared with the bus discharging resistor, and can shorten the discharging time, and on the other hand, the energy recovery and the resource saving are realized after the storage battery stores energy. Due to the advantages of the two aspects of the storage battery, when the bus discharge resistor is selected, the resistance value of the resistor is superior to that of the prior art no matter the resistance value is too large or too small. In conclusion, the method adopted by the device can simultaneously take account of the problems of overlarge power loss of the bus discharge resistor and overlong discharge time.
The bus discharge control device of the UPS in the embodiment of the present invention is described above from the perspective of the modular functional entity, and the bus discharge control apparatus of the UPS in the embodiment of the present invention is described below from the perspective of hardware processing. The apparatus comprises a memory for storing a computer program;
and a processor for implementing the steps of the bus discharging control method of the UPS according to the above embodiment when executing the computer program.
It should be noted that the memory and the processor may be of the UPS itself, and may also be added separately, without affecting the embodiment of the present invention.
According to the bus discharge control equipment of the UPS provided by the embodiment of the invention, when a shutdown power-off command is received, the bus is controlled to charge the storage battery, and after the charge state of the storage battery reaches a preset state, the storage battery is stopped to be charged so as to discharge the bus discharge resistance through the bus until the voltage of the bus is reduced to a preset safe voltage. Therefore, the bus discharging process is realized through the storage battery and the bus discharging resistor, on one hand, the storage battery has higher efficiency of consuming electric energy and can shorten the discharging time compared with the bus discharging resistor, on the other hand, the energy recovery is realized after the storage battery stores energy, and the resources are saved. Due to the advantages of the two aspects of the storage battery, when the bus discharge resistor is selected, the resistance value of the resistor is superior to that of the prior art no matter the resistance value is too large or too small. In conclusion, the method adopted by the equipment can simultaneously take account of the problems of overlarge power loss of the bus discharge resistor and overlong discharge time.
Finally, the invention also discloses an embodiment of the computer readable storage medium. In this embodiment, a computer-readable storage medium has stored thereon a computer program that, when executed by a processor, implements the steps of the bus discharge control method of the UPS as described in the above embodiments.
It will be appreciated that the units in the bus discharge control of the UPS described above may or may not be physically separate. That is, each functional unit may be integrated into one processing unit, each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (which may be a mobile phone, a tablet computer, or a handheld device), or all or part of the technical solution, and performs all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer storage medium provided by the embodiment of the invention stores a bus discharge control method of a UPS, and the method specifically comprises the following steps: when a shutdown power-off command is received, the bus is controlled to charge the storage battery, and after the charging state of the storage battery reaches a preset state, the storage battery is stopped to discharge the bus discharge resistance through the bus until the voltage of the bus is reduced to a preset safe voltage. Therefore, in the method, the discharging process of the bus is realized through the storage battery and the bus discharging resistor, on one hand, the storage battery has higher efficiency of consuming electric energy compared with the bus discharging resistor, the discharging time can be shortened, on the other hand, the energy recovery is realized after the storage battery stores energy, and the resources are saved. Due to the advantages of the two aspects of the storage battery, when the bus discharge resistor is selected, the resistance value of the resistor is superior to that of the prior art no matter the resistance value is too large or too small. In conclusion, the method can simultaneously take account of the problems of overlarge power loss and overlong discharge time of the bus discharge resistor.
The bus discharge control method, device, equipment and storage medium of the UPS provided by the present invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.