UPS (Uninterrupted Power Supply) protection method and device and electronic equipment
By using communication cards and PLC in UPS power supply to control power detection and charging and discharging, the floating charging problem of UPS power supply when it is not in use for a long time is solved, extending the power supply life and improving intelligence and safety.
Patent Information
- Application Number
- CN202411249809.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-03
AI Technical Summary
UPS power supply is easily in a floating charging state when it is not used for a long time, resulting in overcharging, false power, and loss of emergency functions. The existing technology lacks effective protection methods, resulting in low battery utilization and incomplete charging and discharging functions.
By connecting to the communication card, obtain the power value of the UPS power supply, store it in the PLC, and set a preset power detection threshold in the PLC to control the charging and discharging of the UPS power supply, including disconnecting or turning on the external load, ensuring that the power is maintained within a certain range. , avoid floating charge state.
It effectively extends the service life of the UPS power supply, ensures timely consumption of power after full charge, ensures manual switching in abnormal states, and improves intelligence and reliability.
Smart Images

Figure CN119070466A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of UPS power supply protection, and in particular to a UPS power supply protection method, device and electronic equipment. Background Art
[0002] UPS, or uninterruptible power supply, is a power supply containing an energy storage device. UPS power supply is an energy storage device that can supplement power supply when abnormal situations occur on site. Since ordinary power supply may cause power outages due to abnormal reasons, UPS contains energy storage components, including rectifiers, inverters, static switches and other components, which can solve this problem. It can still automatically supply power when power is off to protect the stable operation of equipment. UPS power supply is used in various industries such as industry and aerospace. At present, UPS power supply needs to be automatically switched when the system power supply is abnormal, and it needs to be connected to the power supply in daily use. Such situations cause the UPS power supply to be in a floating charge state all the time. If it is not used for a long time, the battery pack will automatically store energy, resulting in overcharging and virtual electricity. In an emergency, the battery may fail, lose power, and lose emergency function. However, there is a lack of effective UPS power supply protection methods in the prior art, and it is difficult to achieve the purpose of protecting the UPS power supply by controlling the automatic switching of the UPS power supply, resulting in low battery utilization and incomplete charging and discharging functions, so further improvements are needed.
[0003] Therefore, the prior art needs to be further developed. Summary of the invention
[0004] The purpose of the present invention is to overcome the above technical deficiencies and provide a UPS power supply protection method, device and electronic equipment to solve the problems existing in the prior art.
[0005] To achieve the above technical objectives, according to a first aspect of the present invention, the present invention provides a UPS power supply protection method, comprising:
[0006] S100, using the communication card connected to the UPS host, obtain the power of the UPS power supply, and convert it into power value and store it in the PLC;
[0007] S200, setting a preset power detection threshold in the PLC to determine whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold;
[0008] S300, controlling the charging and discharging of the UPS power supply according to the judgment result.
[0009] Specifically, the method further includes:
[0010] The PLC is connected to a touch screen, and the touch screen is used to display the power value of the UPS power supply and the preset power detection threshold input by the user.
[0011] Specifically, the first preset detection threshold is smaller than the second preset detection threshold.
[0012] Specifically, controlling the charging and discharging of the UPS power supply according to the judgment result includes:
[0013] Determine whether the power value of the UPS power supply is less than or equal to a first preset detection threshold, and determine whether to control the UPS power supply to charge according to the determination result, while disconnecting the external load.
[0014] Specifically, determining whether to control the UPS power supply to charge and disconnect the external load according to the judgment result includes:
[0015] If the power value of the UPS power supply is less than or equal to the first preset detection threshold, the UPS power supply is controlled to charge and the external load is disconnected at the same time;
[0016] If the power value of the UPS power supply is greater than the first preset detection threshold, determine whether the power value of the UPS power supply is greater than or equal to the second preset detection threshold, and determine whether to control the UPS power supply to connect to the external load for discharging and stop charging based on the judgment result.
[0017] Specifically, the step of determining whether to control the UPS power supply to connect to the external load for discharging and stop charging according to the judgment result includes:
[0018] If the power value of the UPS power supply is greater than or equal to the second preset detection threshold, the UPS power supply is controlled to connect to the external load for discharging, and charging is stopped at the same time;
[0019] If the power value of the UPS power supply is less than the second preset detection threshold, the UPS power supply is not controlled to connect to the external load for discharging, and charging is not stopped at the same time.
[0020] Specifically, the method further includes:
[0021] When the UPS power supply is discharging without an external load, continuously detecting whether the power value of the UPS power supply is less than or equal to a first preset detection threshold, and determining whether to control the UPS power supply to charge according to the determination result;
[0022] If the power value of the UPS power supply is less than or equal to the first preset detection threshold, the UPS power supply is controlled to charge until the power value of the UPS power supply rises to the second preset detection threshold.
[0023] Specifically, the method further includes:
[0024] A manual switching indication button is arranged on the display interface of the touch screen, and the manual switching indication button is used to output a control signal for controlling the charging and discharging of the UPS power supply, thereby manually controlling the charging and discharging of the UPS power supply.
[0025] According to a second aspect of the present invention, a UPS power supply protection device is provided, comprising:
[0026] A UPS host, wherein the UPS host is connected to an external load and is used to supply power to the external load;
[0027] The acquisition module includes a communication card connected to the UPS host, which is used to acquire the power of the UPS power supply and convert it into a power value and store it in the PLC;
[0028] The control module includes a PLC, which is used to set a preset power detection threshold, determine whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and control the charging and discharging of the UPS power supply according to the determination result.
[0029] According to a third aspect of the present invention, there is provided an electronic device, comprising: a memory; and a processor, wherein the memory stores computer-readable instructions, and the computer-readable instructions implement the above-mentioned UPS power supply protection method when executed by the processor.
[0030] Beneficial effects:
[0031] The present invention utilizes a communication card connected to a UPS host to obtain the power of a UPS power supply, converts it into a power value and stores it in a PLC, sets a preset power detection threshold in the PLC, determines whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and controls the charging and discharging of the UPS power supply according to the determination result, thereby avoiding the UPS power supply being in a floating charge state when not in use for a long time, and being able to maintain the power supply within a certain power range, further ensuring that the UPS power supply can be consumed in time after being fully charged, ensuring that the power supply is not always in a floating charge state, and at the same time ensuring that the power supply can be manually switched in an abnormal state, thereby greatly extending the service life of the UPS power supply, and greatly improving the intelligence, safety and reliability of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flow chart of a UPS power supply protection method provided in a specific embodiment of the present invention;
[0033] Figure 2 It is a schematic diagram of the composition of a UPS power supply protection device provided in a specific embodiment of the present invention;
[0034] Figure 3 It is a circuit connection diagram of a UPS power supply protection device provided in a specific embodiment of the present invention;
[0035] Figure 4 is a schematic diagram of a touch screen display interface provided in a specific embodiment of the present invention;
[0036] Figure 5 It is a schematic diagram of a control program of a UPS power supply protection method provided in a specific implementation manner of the present invention. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.
[0038] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.
[0039] See also Figure 1 This embodiment provides a UPS power supply protection method, including:
[0040] S100, using the communication card connected to the UPS host, obtain the power of the UPS power supply, and convert it into power value and store it in the PLC;
[0041] It should be noted here that the first preset detection threshold and the second preset detection threshold are pre-set before step S100. The present invention does not limit the specific values of the first preset detection threshold and the second preset detection threshold, as long as the UPS power supply protection method proposed by the present invention can be applied.
[0042] Preferably, the present invention sets the first preset detection threshold to 60% of the battery capacity of the UPS power supply, and the present invention sets the second preset detection threshold to 90% of the battery capacity of the UPS power supply. The above settings can further improve the service life of the UPS power supply and greatly improve the safety and reliability of the present invention.
[0043] It can be understood that the communication card selected in the present invention needs to ensure compatibility with the UPS power supply and the communication protocol of the PLC. An RS-485 communication card can be used, following the RS-485 serial communication standard, which is mainly used for long-distance and multi-point communications. A program can be written in the PLC to receive power information from the communication card.
[0044] S200, setting a preset power detection threshold in the PLC to determine whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold;
[0045] Specifically, the method further includes:
[0046] The PLC is connected to a touch screen, and the touch screen is used to display the power value of the UPS power supply and the preset power detection threshold input by the user.
[0047] It is understandable that users can monitor the power consumption of the UPS power supply based on the power displayed on the touch screen, and can set a preset power detection threshold according to actual needs, which greatly improves the convenience and intuitiveness of UPS power management.
[0048] S300, controlling the charging and discharging of the UPS power supply according to the judgment result.
[0049] Specifically, the preset power detection threshold includes a first preset detection threshold and a second preset detection threshold, and the first preset detection threshold is smaller than the second preset detection threshold.
[0050] It should be noted here that the first preset detection threshold is the lower limit value for detecting the UPS power supply, and the second preset detection threshold is the lower limit value for detecting the UPS power supply. By setting the upper limit value and the lower limit value of the UPS power supply, the power of the UPS power supply can be maintained between the upper limit value and the lower limit value, thereby greatly extending the service life of the UPS power supply.
[0051] Specifically, controlling the charging and discharging of the UPS power supply according to the judgment result includes:
[0052] Determine whether the power value of the UPS power supply is less than or equal to a first preset detection threshold, and determine whether to control the UPS power supply to charge according to the determination result, while disconnecting the external load.
[0053] Specifically, determining whether to control the UPS power supply to charge and disconnect the external load according to the judgment result includes:
[0054] If the power value of the UPS power supply is less than or equal to the first preset detection threshold, the UPS power supply is controlled to charge and the external load is disconnected at the same time;
[0055] If the power value of the UPS power supply is greater than the first preset detection threshold, determine whether the power value of the UPS power supply is greater than or equal to the second preset detection threshold, and determine whether to control the UPS power supply to connect to the external load for discharging and stop charging based on the judgment result.
[0056] Specifically, the step of determining whether to control the UPS power supply to connect to the external load for discharging and stop charging according to the judgment result includes:
[0057] If the power value of the UPS power supply is greater than or equal to the second preset detection threshold, the UPS power supply is controlled to connect to the external load for discharging, and charging is stopped at the same time;
[0058] If the power value of the UPS power supply is less than the second preset detection threshold, the UPS power supply is not controlled to connect to the external load for discharging, and charging is not stopped at the same time.
[0059] It can be understood that the PLC compares the read power value of the UPS power supply with the set first preset detection threshold and the second preset detection threshold through the control program. The present invention sets the first preset detection threshold to 60% of the battery capacity of the UPS power supply, and sets the second preset detection threshold to 90% of the battery capacity of the UPS power supply. When the power received by the PLC from the UPS power supply is less than or equal to 60% of the battery capacity of the UPS power supply, the external load is immediately disconnected, and the 220V power supply is used for charging at the same time. When the power received by the PLC from the UPS power supply is greater than or equal to 90% of the battery capacity of the UPS power supply, the charging is immediately stopped, and the external load is connected for discharging. Such a cycle further ensures that when the UPS power supply is fully charged, the power of the UPS power supply can be consumed in time. At the same time, when the power of the UPS power supply is insufficient, the discharging is stopped in time, and charging is performed at the same time, thereby ensuring that the power of the UPS power supply can be maintained within a certain power range, greatly extending the service life of the power supply.
[0060] Specifically, the method further includes:
[0061] When the UPS power supply is discharging without an external load, continuously detecting whether the power value of the UPS power supply is less than or equal to a first preset detection threshold, and determining whether to control the UPS power supply to charge according to the determination result;
[0062] If the power value of the UPS power supply is less than or equal to the first preset detection threshold, the UPS power supply is controlled to charge until the power value of the UPS power supply rises to the second preset detection threshold.
[0063] It should be noted here that the PLC continuously monitors the power level of the UPS power supply. When the UPS power supply is not in use for a long time, that is, the UPS power supply has no external load to discharge, the PLC will only control the UPS power supply to charge when it detects that the power level of the UPS power supply is less than or equal to the first preset detection threshold. When it detects that the power level of the UPS power supply rises to the second preset detection threshold, the charging is stopped. The PLC can also consume the battery power of the UPS power supply by controlling the charging and discharging process of the UPS power supply through the program. Therefore, it is further ensured that the UPS power supply is not always in a floating charge state when it is not in use for a long time.
[0064] Specifically, the method further includes:
[0065] A manual switching indication button is arranged on the display interface of the touch screen, and the manual switching indication button is used to output a control signal for controlling the charging and discharging of the UPS power supply, thereby manually controlling the charging and discharging of the UPS power supply.
[0066] It can be understood that the manual switching indication button is set so that when an abnormal situation occurs in the UPS power supply and the load needs to be disconnected urgently, or when charging needs to be disconnected, the user can switch to manual mode through the manual switching indication button to control the charging and discharging status of the UPS power supply, which greatly improves the intelligence, usability and reliability of the present invention.
[0067] The working principle of the present invention is described below by specific examples:
[0068] like Figure 3 As shown, the UPS power protection device includes a UPS host, a PLC, a communication card, and a touch screen.
[0069] First, the device is installed with a 485 communication card, connected to the UPS host, reads the power status of the UPS power supply, and converts it into data to read into the PLC. The PLC is installed and the read power supply power is compared with the power set by the operator, such as Figure 5 As shown, set up the program to make a judgment, and finally connect the touch screen. Figure 4 It is a display interface of the touch screen, which is convenient for personnel to monitor and adjust the minimum power. For example, when the power supply is normal, the upper limit threshold of power detection is set, that is, the first preset detection threshold is 90% of the battery capacity. When the battery of the UPS power supply is charged to 90% of the battery capacity, the power supply is disconnected from the 220V power supply, and the UPS power supply is put into power supply and used, that is, KA1 is cut off, and the switches of external loads such as KA2, KA3, KA4, and KA5 are put into use; the lower limit threshold of power detection is set, that is, the second preset detection threshold is 60% of the battery capacity. When the power consumption of the UPS power supply reaches the minimum power value, that is, 60% of the battery capacity, the external load is disconnected, and the UPS power supply is powered by 220V power supply, that is, KA1 is put into use, and the switches of external loads such as KA2, KA3, KA4, and KA5 are cut off. This ensures that the UPS automatic switching function is complete, and the program can regularly consume 6-10% of the battery power. This method ensures the health of the battery and meets the application when there is a demand for use.
[0070] It should be noted here that the present invention utilizes a communication card connected to a UPS host to obtain the power of the UPS power supply, and converts it into a power value and stores it in the PLC, sets a preset power detection threshold in the PLC, determines whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and controls the charging and discharging of the UPS power supply according to the determination result, thereby avoiding the UPS power supply being in a floating charge state when not in use for a long time, and being able to maintain the power supply within a certain power range, further ensuring that the UPS power supply can be consumed in time after being fully charged, ensuring that the power supply is not always in a floating charge state, and at the same time ensuring that the power supply can be manually switched in an abnormal state, thereby greatly extending the service life of the UPS power supply, and greatly improving the intelligence, safety and reliability of the present invention.
[0071] See also Figure 2 This embodiment provides a UPS power supply protection device, the system comprising:
[0072] A UPS host 100, the UPS host is connected to an external load and is used to supply power to the external load;
[0073] The acquisition module 200 includes a communication card connected to the UPS host, and is used to acquire the power of the UPS power supply and convert it into a power value and store it in the PLC;
[0074] The control module 300 includes a PLC, which is used to set a preset power detection threshold, determine whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and control the charging and discharging of the UPS power supply according to the determination result.
[0075] It should be noted here that the present invention utilizes a communication card connected to a UPS host to obtain the power of the UPS power supply, and converts it into a power value and stores it in the PLC, sets a preset power detection threshold in the PLC, determines whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and controls the charging and discharging of the UPS power supply according to the determination result, thereby avoiding the UPS power supply being in a floating charge state when not in use for a long time, and being able to maintain the power supply within a certain power range, further ensuring that the UPS power supply can be consumed in time after being fully charged, ensuring that the power supply is not always in a floating charge state, and at the same time ensuring that the power supply can be manually switched in an abnormal state, thereby greatly extending the service life of the UPS power supply, and greatly improving the intelligence, safety and reliability of the present invention.
[0076] In a preferred embodiment, the present application further provides an electronic device, the electronic device comprising:
[0077] A memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the UPS power supply protection method is implemented. The computer device can be broadly a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities. In one embodiment, the computer device may include a processor, a memory, a network interface, a communication interface, etc. connected via a system bus. The processor of the computer device can be used to provide necessary computing, processing and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and an internal memory. An operating system, a computer program, etc. may be stored in or on the non-volatile storage medium. The internal memory can provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the computer device can be used to connect and communicate with external devices through a network. When the computer program is executed by the processor, the steps of the method of the present invention are performed.
[0078] The present invention may be implemented as a computer-readable storage medium having a computer program stored thereon, which causes the steps of the method of an embodiment of the present invention to be executed when executed by a processor. In one embodiment, the computer program is distributed on a plurality of computer devices or processors coupled to a network so that the computer program is stored, accessed and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be performed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be performed by one or more computer devices or processors, and one or more other method steps / operations may be performed by one or more other computer devices or processors. One or more computer devices or processors may perform a single method step / operation, or perform two or more method steps / operations.
[0079] It will be appreciated by those skilled in the art that the method steps of the present invention may be performed by instructing related hardware such as a computer device or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present invention to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, database, or other media herein may include non-volatile and / or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0080] It should be noted here that the present invention utilizes a communication card connected to a UPS host to obtain the power of the UPS power supply, and converts it into a power value and stores it in the PLC, sets a preset power detection threshold in the PLC, determines whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and controls the charging and discharging of the UPS power supply according to the determination result, thereby avoiding the UPS power supply being in a floating charge state when not in use for a long time, and being able to maintain the power supply within a certain power range, further ensuring that the UPS power supply can be consumed in time after being fully charged, ensuring that the power supply is not always in a floating charge state, and at the same time ensuring that the power supply can be manually switched in an abnormal state, thereby greatly extending the service life of the UPS power supply, and greatly improving the intelligence, safety and reliability of the present invention.
[0081] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0082] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A UPS power supply protection method, characterized in that: The method comprises: S100, using the communication card connected to the UPS host, obtain the power of the UPS power supply, and convert it into power value and store it in the PLC; S200, setting a preset power detection threshold in the PLC to determine whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold; S300, controlling the charging and discharging of the UPS power supply according to the judgment result.
2. The UPS power supply protection method according to claim 1, characterized in that: The method further comprises: The PLC is connected to a touch screen, and the touch screen is used to display the power value of the UPS power supply and the preset power detection threshold input by the user.
3. The UPS power supply protection method according to claim 1, characterized in that: The preset power detection threshold includes a first preset detection threshold and a second preset detection threshold, and the first preset detection threshold is smaller than the second preset detection threshold.
4. The UPS power supply protection method according to claim 3, characterized in that: The controlling the charging and discharging of the UPS power supply according to the judgment result comprises: Determine whether the power value of the UPS power supply is less than or equal to a first preset detection threshold, and determine whether to control the UPS power supply to charge according to the determination result, while disconnecting the external load.
5. The UPS power supply protection method according to claim 4, characterized in that: The step of determining whether to control the UPS power supply to charge and disconnect the external load according to the judgment result includes: If the power value of the UPS power supply is less than or equal to the first preset detection threshold, the UPS power supply is controlled to charge and the external load is disconnected at the same time; If the power value of the UPS power supply is greater than the first preset detection threshold, determine whether the power value of the UPS power supply is greater than or equal to the second preset detection threshold, and determine whether to control the UPS power supply to connect to the external load for discharging and stop charging based on the judgment result.
6. The UPS power supply protection method according to claim 5, characterized in that: The method of determining whether to control the UPS power supply to connect to the external load for discharging and stop charging according to the judgment result includes: If the power value of the UPS power supply is greater than or equal to the second preset detection threshold, the UPS power supply is controlled to connect to the external load for discharging, and charging is stopped at the same time; If the power value of the UPS power supply is less than the second preset detection threshold, the UPS power supply is not controlled to connect to the external load for discharging, and charging is not stopped at the same time.
7. The UPS power supply protection method according to claim 6, characterized in that: The method further comprises: When the UPS power supply is discharging without an external load, continuously detecting whether the power value of the UPS power supply is less than or equal to a first preset detection threshold, and determining whether to control the UPS power supply to charge according to the determination result; If the power value of the UPS power supply is less than or equal to the first preset detection threshold, the UPS power supply is controlled to charge until the power value of the UPS power supply rises to the second preset detection threshold.
8. The UPS power supply protection method according to claim 2, characterized in that: The method further comprises: A manual switching indication button is arranged on the display interface of the touch screen, and the manual switching indication button is used to output a control signal for controlling the charging and discharging of the UPS power supply, thereby manually controlling the charging and discharging of the UPS power supply.
9. A UPS power supply protection device, characterized in that: include: A UPS host (100), the UPS host being connected to an external load and being used to supply power to the external load; An acquisition module (200), comprising a communication card connected to a UPS host, for acquiring the power of a UPS power supply and converting it into a power value and storing it in a PLC; The control module (300) includes a PLC, which is used to set a preset power detection threshold, determine whether the power value of the UPS power supply is greater than or equal to the preset power detection threshold, and control the charging and discharging of the UPS power supply according to the determination result.
10. An electronic device, characterized in that: include: Memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the UPS power supply protection method according to any one of claims 1 to 8 is implemented.
