A system and method for automatically charging and discharging energy storage batteries based on load tracking

Dynamically adjusting the charging and discharging power of the energy storage system through load tracking technology solves the problem of overcharging or over-discharging the battery during grid-connected power supply, prolongs the life of the battery and load, and improves the efficiency of the energy storage system.

CN115719964BActive Publication Date: 2024-09-03XINZHI ENERGY STORAGE TECH (ZHEJIANG) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211084506.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-06
Publication Date
2024-09-03
Estimated Expiration
2042-09-06

AI Technical Summary

Technical Problem

The existing grid-connected battery power supply lacks a load power tracking method, which causes the battery to be overcharged or overdischarged, damaging the battery life, and too many instantaneous voltage changes reduce the load life.

Method used

An automatic charging and discharging system for energy storage batteries based on load tracking is adopted. The load power is collected in real time through the matrix digital energy management control system and the main control module, and the charging and discharging power of the energy storage system is dynamically adjusted according to the electricity price information to ensure that the power consumption is less than the load. demand, avoid backflow phenomenon, and use the power supply switching device to switch the power supply mode when the load is not powered.

Benefits of technology

It effectively avoids overcharging or over-discharging of the battery, prolongs the life of the battery and the load, and improves the energy usage rate and economic benefits of the energy storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115719964B
    Figure CN115719964B
Patent Text Reader

Abstract

The present invention proposes an automatic charging and discharging system and method for energy storage batteries based on load tracking. The system includes: a mains input terminal, electrically connected to an energy storage converter PCS and a power supply switching device; a matrix digital energy management and control system DMMES, electrically connected to a main control module, the energy storage converter PCS and an energy storage unit BAT, and used to receive a control signal from the main control module, control the input and output power of the energy storage converter PCS, and control the charging and discharging of the energy storage unit BAT; the main control module is electrically connected to a signal acquisition terminal, the signal acquisition terminal is used to acquire real-time power of the load, the main control module is used to obtain electricity price information, and generate a control signal to the matrix digital energy management and control system DMMES according to the electricity price information and the real-time power of the load; the present invention monitors the power required by the load through a tracking algorithm during the discharge process of the energy storage system, and the energy storage system can provide corresponding power to meet the load operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of load tracking, and in particular to an automatic charging and discharging system and method for an energy storage battery based on load tracking. Background Art

[0002] At present, the domestic demand for electricity is increasing, but the domestic electricity demand management is still at a relatively low level. In order to achieve scientific, orderly and economical electricity use, improve the efficiency of electricity use, and achieve the purpose of energy conservation and environmental protection, the national power department has introduced a ladder electricity price strategy, using peak and valley electricity prices to regulate the electricity consumption behavior of power users. The DC power supply system consists of AC input, switching power supply system, battery, and load. The battery is used as a backup battery. When the AC input loses power, the battery can ensure the normal operation of the load. Due to the good power supply of my country's power grid and the very stable AC power, the battery has been working in a floating charge state for a long time, wasting part of the power. Under the premise of ensuring reliable power supply to the load, in order to give full play to the value of the battery, many power users, battery manufacturers and power equipment manufacturers have developed a "peak shaving and valley filling" energy storage control system based on the switching power supply system. The main method is to indirectly control the switching power supply operation mode by adding a "peak shaving and valley filling" controller or add a "peak shaving and valley filling" control function to the controller in the switching power supply system, so that the battery changes from the original floating charge energy consumption mode to the "peak shaving and valley filling" cycle operation mode, which improves the use value of the battery, makes rational use of power resources, and brings economic benefits. However, the existing battery and grid-connected power supply lacks a way to track the power of the load, and cannot feedback and adjust the charging and discharging power of the battery according to the amount of load power consumption, which will cause the battery to be overcharged or over-discharged, damaging the battery life. At the same time, there is a lack of a way to switch between the battery and the grid without power failure. Too many instantaneous voltage changes will reduce the load life. Summary of the invention

[0003] The present invention solves the problems of over-discharge or over-charge in grid-connected battery power supply in the prior art and the problem of reduced load life due to switching power supply, and proposes an automatic charging and discharging system and method for energy storage batteries based on load tracking, which tracks the power changes of the load during operation, and the energy storage system will provide corresponding power to meet the load demand. During the charging process of the energy storage system, the difference between the power that the energy storage project can provide and the power required by the load can be used to charge the energy storage system. During the discharge process of the energy storage system, the power required by the load is monitored through a tracking algorithm, and the energy storage system can provide corresponding power to meet the load operation, thereby improving the energy utilization rate of the energy storage system.

[0004] In order to achieve the above objectives, the following technical solutions are proposed:

[0005] An automatic charging and discharging system for energy storage batteries based on load tracking, comprising:

[0006] A mains input terminal, electrically connected to the energy storage converter PCS and the power supply switching device, for charging the energy storage unit BAT through the energy storage converter PCS and for supplying power to the load through the power supply switching device;

[0007] The matrix digital energy management control system DMMES is electrically connected to the main control module, the energy storage converter PCS and the energy storage unit BAT, and is used to receive the control signal of the main control module, control the input and output power of the energy storage converter PCS, and control the charging and discharging of the energy storage unit BAT;

[0008] A main control module is electrically connected to a signal acquisition terminal, the signal acquisition terminal is used to collect real-time power of the load, and the main control module is used to obtain electricity price information, and generate a control signal to a matrix digital energy management control system DMMES according to the electricity price information and the real-time power of the load;

[0009] Energy storage unit BAT, used to store electrical energy and supply power to the load;

[0010] The power supply switching device is used to switch the power supply mode without interrupting the power supply to the load.

[0011] The electricity price information of the present invention uses the city electricity to power the load when the electricity price is low, and charges the battery according to the battery power to avoid overcharging the battery. The battery refers to the energy storage unit BAT. When the electricity price is high, the battery is used to power the load, and the battery is prevented from being over-discharged according to the battery power information. During the charging and discharging process of the battery, the charging power and the discharging power are dynamically adjusted according to the load tracking algorithm, so that the power consumption will always be less than the power required by the load, avoiding the backflow phenomenon, and ensuring the dynamic output of the maximum power, ensuring that the energy storage system obtains the maximum benefit. The present invention also provides a power supply switching device for switching the power supply mode without interrupting the load.

[0012] Preferably, the power supply switching device includes a mains access branch, a PCS access branch for energy storage converters, a main power supply line and a power supply bypass. The mains access branch and the PCS access branch for energy storage converters are connected in parallel to one end of the main power supply line, and the other end of the main power supply line is connected to the load. One end of the power supply bypass is connected in parallel to the mains access branch and the PCS access branch for energy storage converters, and the other end of the power supply bypass is connected to the load. Only one of the mains access branch and the PCS access branch for energy storage converters is turned on at the same time. The power supply bypass is used to store electric energy and to supply power to the load when the power supply is switched.

[0013] Preferably, the AC power access branch includes a first relay K1 and a commutating diode D1, the energy storage converter PCS access branch includes a second relay K2 and an anti-backflow diode D2, the main power supply includes a voltage-stabilizing diode D3, the power supply bypass includes a capacitor, one end of the first relay K1 is connected to the AC power input end, the other end of the first relay K1 is connected to one end of the commutating diode D1, the other end of the commutating diode D1, one end of the voltage-stabilizing diode D3, one end of the anti-backflow diode D2 and one end of the capacitor are connected in parallel, the other end of the anti-backflow diode D2 is connected to one end of the second relay K2, the other end of the second relay K2 is connected to the energy storage converter PCS, the other end of the voltage-stabilizing diode D3 and the other end of the capacitor are connected in parallel to the load, and the first relay K1 and the second relay K2 are electrically connected to the main control module.

[0014] A method for automatically charging and discharging an energy storage battery based on load tracking, using the above-mentioned automatic charging and discharging system for an energy storage battery based on load tracking, specifically comprises the following steps:

[0015] S1, obtain the real-time electricity price a, determine whether the real-time electricity price a is less than or equal to the first threshold b, if not, enter S2, if yes, the load is powered by the mains input terminal, and determine whether the energy storage unit BAT is greater than or equal to c% of the total capacity, if yes, no operation is performed, if not, the energy storage unit BAT is charged by the mains input terminal, and the input power of the energy storage converter PCS is obtained based on the load tracking algorithm until the electric energy stored in the energy storage unit BAT reaches d% of the total capacity;

[0016] S2, determine whether the electric energy stored in the energy storage unit BAT is greater than or equal to e% of the total capacity. If so, the load is powered by the energy storage unit BAT, and the output power of the energy storage converter PCS is obtained based on the load tracking algorithm. If not, enter S3;

[0017] S3, determine whether the real-time electricity price a is less than or equal to the second threshold value f, if so, the load is powered by the mains input terminal, if not, enter S4;

[0018] S4, determine whether the electric energy stored in the energy storage unit BAT is greater than or equal to g% of the total capacity. If so, the load is powered by the energy storage unit BAT, and the output power of the energy storage converter PCS is obtained based on the load tracking algorithm. If not, the load is powered by the mains input terminal;

[0019] The numerical relationships are as follows: b is less than f, c% is less than d%, e% is less than c%, and g% is less than e%.

[0020] Preferably, the process of obtaining the input power of the energy storage converter PCS based on the load tracking algorithm is as follows:

[0021] Within a certain time period T, determine whether the average power P1 of the load is less than or equal to the AC input power P3. If not, no operation is performed; if so, the charging power of the energy storage unit BAT is calculated as P2=P3-P1, so that the input power of the energy storage inverter PCS is adjusted to P2.

[0022] Preferably, the P2 further includes an overload adjustment step, specifically including the following steps:

[0023] Sa, within a certain time period T, the real-time power of the load is obtained at a certain time interval, the obtained real-time power is grouped according to the time sequence, and all the real-time power before the current collection time is taken as the historical real-time power;

[0024] Sb, calculating the real-time power change value according to the historical real-time power;

[0025] Take the most recent set of real-time power data before the previous acquisition moment and calculate the average to get each set of change values ​​E[X(n)]:

[0026] E[X(n)]=X(n)-An

[0027] Where: X(n) is the nth real-time power data of the group, An is the mean value of the group data; the calculation formula of An is:

[0028]

[0029] Sc, determine whether the fluctuation value of the real-time power change value is less than the set allowable fluctuation threshold, if so, return to Sc, if not, proceed to Sd;

[0030] Sd, uses the average value of historical real-time power to adjust the input power P2 of the energy storage converter PCS and returns it to Sa.

[0031] Preferably, the Sc specifically comprises the following steps:

[0032] Calculate the variance S of the most recent set of real-time power data before the acquisition moment, and determine whether the variance S is greater than the variance threshold. If so, return Sa. If not, determine whether the fluctuation value of the real-time power change value is less than the set allowable fluctuation threshold, that is, determine whether |Emax-Emin|<L is satisfied, where: Emax is the maximum change value, Emin is the minimum change value, and L is the allowable fluctuation threshold; if so, do not process and return Sa. If not, proceed to Sd.

[0033] As a preferred embodiment, the input power P2 of the energy storage converter PCS is adjusted using the average value An of the historical real-time power, and Sa is returned. The formula for adjusting the input power P2 of the energy storage converter PCS is as follows:

[0034] P2=KAn+B

[0035] Wherein: K is the conversion coefficient, B is the deviation value, and K and B are obtained by using historical data as a training set, through the BP neural network algorithm, and taking P2+P1≤P3 as the objective function.

[0036] Preferably, the process of obtaining the output power of the energy storage converter PCS based on the load tracking algorithm is as follows:

[0037] The average power P4 of the load within a set cycle time t before the switching time node T1 is obtained, and the output power P5 = P4-X of the energy storage converter PCS is calculated, where X>0, and X is the anti-backflow constant.

[0038] The beneficial effects of the present invention are: the electricity price information of the present invention uses the city electricity to power the load when the electricity price is low, and charges the battery according to the battery power to avoid overcharging the battery. The battery refers to the energy storage unit BAT. When the electricity price is high, the battery is used to power the load, and the battery is prevented from being over-discharged according to the battery power information. During the charging and discharging process of the battery, the charging power and the discharging power are dynamically adjusted according to the load tracking algorithm, so that the power consumption will always be less than the power required by the load, avoiding the backflow phenomenon, and ensuring the dynamic output of the maximum power, ensuring that the energy storage system obtains the maximum benefit. The present invention also provides a power supply switching device for switching the power supply mode without interrupting the load. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a system configuration diagram of an embodiment;

[0040] Figure 2 is a diagram showing the structure of a power supply switching device of an embodiment;

[0041] Figure 3 It is a method flow chart of an embodiment. DETAILED DESCRIPTION

[0042] Example:

[0043] This embodiment proposes an automatic charging and discharging system for energy storage batteries based on load tracking. Figure 1, including: a mains input terminal, electrically connected to the energy storage converter PCS and the power supply switching device, used to charge the energy storage unit BAT through the energy storage converter PCS and to supply power to the load through the power supply switching device; a matrix digital energy management and control system DMMES, electrically connected to the main control module, the energy storage converter PCS and the energy storage unit BAT, used to receive the control signal of the main control module, control the input and output power of the energy storage converter PCS and control the charging and discharging of the energy storage unit BAT; the main control module is electrically connected to a signal acquisition terminal, the signal acquisition terminal is used to collect the real-time power of the load, the main control module is used to obtain electricity price information, and generate a control signal to the matrix digital energy management and control system DMMES according to the electricity price information and the real-time power of the load; the energy storage unit BAT is used to store electric energy and supply power to the load; the power supply switching device is used to switch the power supply mode when the load is powered on. The power supply switching device includes a mains access branch, an energy storage converter PCS access branch, a power supply main line and a power supply bypass. The mains access branch and the energy storage converter PCS access branch are connected in parallel to one end of the power supply main line, and the other end of the power supply main line is connected to the load. One end of the power supply bypass is connected in parallel to the mains access branch and the energy storage converter PCS access branch, and the other end of the power supply bypass is connected to the load. Only one of the mains access branch and the energy storage converter PCS access branch is turned on at the same time. The power supply bypass is used to store electric energy and supply power to the load when the power supply is switched. Figure 2 The mains access branch includes a first relay K1 and a commutation diode D1, the energy storage converter PCS access branch includes a second relay K2 and an anti-backflow diode D2, the main power supply includes a voltage-stabilizing diode D3, and the power supply bypass includes a capacitor. One end of the first relay K1 is connected to the mains input end, and the other end of the first relay K1 is connected to one end of the commutation diode D1. The other end of the commutation diode D1, one end of the voltage-stabilizing diode D3, one end of the anti-backflow diode D2, and one end of the capacitor are connected in parallel. The other end of the anti-backflow diode D2 is connected to one end of the second relay K2, and the other end of the second relay K2 is connected to the energy storage converter PCS. The other end of the voltage-stabilizing diode D3 and the other end of the capacitor are connected in parallel to the load. The first relay K1 and the second relay K2 are electrically connected to the main control module.

[0044] This embodiment also proposes a method for automatically charging and discharging an energy storage battery based on load tracking, using the above-mentioned automatic charging and discharging system for an energy storage battery based on load tracking, referring to Figure 2 , specifically including the following steps:

[0045] S1, obtain the real-time electricity price a, determine whether the real-time electricity price a is less than or equal to the first threshold b, if not, enter S2, if yes, the load is powered by the mains input terminal, and determine whether the energy storage unit BAT is greater than or equal to c% of the total capacity, if yes, no operation is performed, if not, the energy storage unit BAT is charged by the mains input terminal, and the input power of the energy storage converter PCS is obtained based on the load tracking algorithm until the electric energy stored in the energy storage unit BAT reaches d% of the total capacity;

[0046] S2, determine whether the electric energy stored in the energy storage unit BAT is greater than or equal to e% of the total capacity. If so, the load is powered by the energy storage unit BAT, and the output power of the energy storage converter PCS is obtained based on the load tracking algorithm. If not, enter S3;

[0047] Based on the load tracking algorithm, the input power process of the energy storage converter PCS is as follows:

[0048] Within a certain time period T, determine whether the average power P1 of the load is less than or equal to the AC input power P3. If not, no operation is performed; if so, the charging power of the energy storage unit BAT is calculated as P2=P3-P1, so that the input power of the energy storage inverter PCS is adjusted to P2.

[0049] P2 also includes an overload regulation step, which specifically includes the following steps:

[0050] Sa, within a certain time period T, the real-time power of the load is obtained at a certain time interval, the obtained real-time power is grouped according to the time sequence, and all the real-time power before the current collection time is taken as the historical real-time power;

[0051] Sb, calculates the real-time power change value based on the historical real-time power;

[0052] Take the most recent set of real-time power data before the previous acquisition moment and calculate the average to get each set of change values ​​E[X(n)]:

[0053] E[X(n)]=X(n)-An

[0054] Where: X(n) is the nth real-time power data of the group, An is the mean value of the group data; the calculation formula of An is:

[0055]

[0056] Sc, determine whether the fluctuation value of the real-time power change value is less than the set allowable fluctuation threshold, if so, return to Sc, if not, proceed to Sd;

[0057] Sc specifically includes the following steps:

[0058] Calculate the variance S of the most recent set of real-time power data before the acquisition moment, and determine whether the variance S is greater than the variance threshold. If so, return Sa. If not, determine whether the fluctuation value of the real-time power change value is less than the set allowable fluctuation threshold, that is, determine whether |Emax-Emin|<L is satisfied, where: Emax is the maximum change value, Emin is the minimum change value, and L is the allowable fluctuation threshold; if so, do not do anything and return Sa. If not, proceed to Sd.

[0059] Sd, use the average value of historical real-time power to adjust the input power P2 of the energy storage converter PCS, and return Sa. Use the average value of historical real-time power An to adjust the input power P2 of the energy storage converter PCS, and return Sa. The formula for adjusting the input power P2 of the energy storage converter PCS is as follows:

[0060] P2=KAn+B

[0061] Where: K is the conversion coefficient, B is the deviation value, K and B are obtained by using historical data as the training set, through the BP neural network algorithm, with P2+P1≤P3 as the target output u(k). It includes the following steps:

[0062] 1) Initialize the structure of the selected BP neural network controller, select the number of input layer nodes i, the number of hidden layer nodes j, and the number of output layer nodes n, and give random values ​​of the hidden layer weight coefficient v[i][j] and the output layer weight coefficient w[j][n] in the range of -1 to 1, and select the learning rate a and the smoothing factor b;

[0063] 2) Sampling to obtain estimated power r(k) and actual output y(k), and calculating error e(k) = r(k) - y(k);

[0064] 3) Normalize the estimated power r(k), actual output y(k), target output u(k), and error e(k) as the input of the neural network;

[0065] 4) Calculate the input value and output value HO2[n] of each layer of neurons in the BP neural network controller. The output value HO2[n] is denormalized to K and B. Send the target output u(k) to the controlled object to participate in control and calculation;

[0066] 5) By comparing the parameters of the input value and the output value, the steepest descent method is used to adjust the learning rate a and the weight coefficients v[i][j] and w[j][n]. The steepest descent method is used to correct the weight coefficients of the BP neural network. The adjustment direction is the negative direction of E(k), and an inertia is added to accelerate the search and converge to the global minimum. This is the key to the optimization of the steepest descent method. The adjustment formula is as follows:

[0067]

[0068]

[0069]

[0070] Where P is the step size of one adjustment, γ1 and γ2 are the coefficients of variation of the learning rate and the weight coefficient change, respectively, and θ is the threshold; when e(k) is greater than e(k-1), 0<γ1<1, γ2=1; when Δe(k) is less than Δe(k-1), γ1 is greater than 1, and when |e(k)| is greater than θ, γ2 is greater than 1;

[0071] The step length P is adjusted by adjusting the value of γ, and the weight coefficients v[i][j] and w[j][n] are adjusted by adjusting the value of γ and the adjusted step length P so that the steepest descent function curve approaches the global optimal solution;

[0072] 6) The optimized weight coefficients w[j][n] of the output layer, the weight coefficients v[i][j] of the hidden layer, and the learning rate a are sent to the BP neural network controller. The two output values ​​of the output layer of the BP neural network controller are K and B.

[0073] S3, determine whether the real-time electricity price a is less than or equal to the second threshold value f, if so, the load is powered by the mains input terminal, if not, enter S4;

[0074] S4, determine whether the electric energy stored in the energy storage unit BAT is greater than or equal to g% of the total capacity. If so, the load is powered by the energy storage unit BAT, and the output power of the energy storage converter PCS is obtained based on the load tracking algorithm. If not, the load is powered by the mains input terminal. The process of obtaining the output power of the energy storage converter PCS based on the load tracking algorithm is as follows:

[0075] Get the average power P4 of the load within a set cycle time t before the switching time node T1, and calculate the output power P5 of the energy storage converter PCS = P4-X, where X>0, and X is the anti-backflow constant. This ensures that the power consumption provided will always be less than the power required by the load, avoiding the backflow phenomenon, ensuring the dynamic output of the maximum power, and ensuring that the energy storage system obtains the maximum benefit.

[0076] The numerical relationships are as follows: b is less than f, c% is less than d%, e% is less than c%, and g% is less than e%.

Claims

1. A method for automatically charging and discharging an energy storage battery based on load tracking, using an automatic charging and discharging system for an energy storage battery based on load tracking, characterized in that: The specific steps include: S1, obtain the real-time electricity price a, determine whether the real-time electricity price a is less than or equal to the first threshold b, if not, enter S2, if yes, the load is powered by the mains input terminal, and determine whether the energy storage unit BAT is greater than or equal to c% of the total capacity, if yes, no operation is performed, if not, the energy storage unit BAT is charged by the mains input terminal, and the input power of the energy storage converter PCS is obtained based on the load tracking algorithm until the electric energy stored in the energy storage unit BAT reaches d% of the total capacity; S2, determine whether the electric energy stored in the energy storage unit BAT is greater than or equal to e% of the total capacity. If so, the load is powered by the energy storage unit BAT, and the output power of the energy storage converter PCS is obtained based on the load tracking algorithm. If not, enter S3; S3, determine whether the real-time electricity price a is less than or equal to the second threshold value f, if so, the load is powered by the mains input terminal, if not, enter S4; S4, determine whether the electric energy stored in the energy storage unit BAT is greater than or equal to g% of the total capacity. If so, the load is powered by the energy storage unit BAT, and the output power of the energy storage converter PCS is obtained based on the load tracking algorithm. If not, the load is powered by the mains input terminal; The numerical relationship As follows: b is less than f, c% is less than d%, e% is less than c%, and g% is less than e%; The process of obtaining the input power of the energy storage converter PCS based on the load tracking algorithm is as follows: Within a certain time period T, determine whether the average power P1 of the load is less than or equal to the mains input power P3. If not, do not perform any operation. If so, calculate the charging power of the energy storage unit BAT as P2=P3-P1, and adjust the input power of the energy storage converter PCS to P2. The process of obtaining the output power of the energy storage converter PCS based on the load tracking algorithm is as follows: The average power P4 of the load within a set cycle time t before the switching time node T1 is obtained, and the output power P5 = P4-X of the energy storage converter PCS is calculated, where X>0, and X is the anti-backflow constant.

2. According to claim 1, a method for automatically charging and discharging an energy storage battery based on load tracking is characterized in that: The P2 also includes an overload adjustment step, which specifically includes the following steps: Sa, within a certain time period T, the real-time power of the load is obtained at a certain time interval, the obtained real-time power is grouped according to the time sequence, and all the real-time power before the current collection time is taken as the historical real-time power; Sb, calculating the real-time power change value according to the historical real-time power; Take the most recent set of real-time power data before the previous acquisition moment and calculate the average to get each set of change values ​​E[X(n)]: E[x(n)]=x(n)-An Where: X(n) is the nth real-time power data of the group, An is the mean value of the group data; the calculation formula of An is: Sc, determine whether the fluctuation value of the real-time power change value is less than the set allowable fluctuation threshold, if so, return to Sc, if not, proceed to Sd; Sd, uses the average value of historical real-time power to adjust the input power P2 of the energy storage converter PCS and returns it to Sa.

3. The method for automatically charging and discharging an energy storage battery based on load tracking according to claim 2 is characterized in that: The Sc specifically comprises the following steps: Calculate the variance S of the most recent set of real-time power data before the acquisition moment, and determine whether the variance S is greater than the variance threshold. If so, return Sa. If not, determine whether the fluctuation value of the real-time power change value is less than the set allowable fluctuation threshold, that is, determine whether |Emax-Emin|<L is satisfied, where: Emax is the maximum change value, Emin is the minimum change value, and L is the allowable fluctuation threshold; if so, do not process and return Sa. If not, proceed to Sd.

4. The method for automatic charging and discharging of energy storage batteries based on load tracking according to claim 2 is characterized in that: The input power P2 of the energy storage converter PCS is adjusted using the average value An of the historical real-time power, and returned to Sa. The formula for adjusting the input power P2 of the energy storage converter PCS is as follows: P2=KAn+B Wherein: K is the conversion coefficient, B is the deviation value, and K and B are obtained by using historical data as a training set, through the BP neural network algorithm, and taking P2+P1≤P3 as the target output.

5. According to the load tracking method for automatic charging and discharging of energy storage batteries according to claim 1, it is characterized in that the system include: A mains input terminal, electrically connected to the energy storage converter PCS and the power supply switching device, for charging the energy storage unit BAT through the energy storage converter PCS and for supplying power to the load through the power supply switching device; The matrix digital energy management control system DMMES is electrically connected to the main control module, the energy storage converter PCS and the energy storage unit BAT, and is used to receive the control signal of the main control module, control the input and output power of the energy storage converter PCS, and control the charging and discharging of the energy storage unit BAT; A main control module is electrically connected to a signal acquisition terminal, the signal acquisition terminal is used to collect real-time power of the load, and the main control module is used to obtain electricity price information, and generate a control signal to a matrix digital energy management control system DMMES according to the electricity price information and the real-time power of the load; Energy storage unit BAT, used to store electrical energy and supply power to the load; The power supply switching device is used to switch the power supply mode without interrupting the power supply to the load.

6. The method for automatic charging and discharging of energy storage batteries based on load tracking according to claim 5 is characterized in that: The power supply switching device includes a mains access branch, an energy storage inverter PCS access branch, a main power supply line and a power supply bypass. The mains access branch and the energy storage inverter PCS access branch are connected in parallel to one end of the main power supply line, and the other end of the main power supply line is connected to the load. One end of the power supply bypass is connected in parallel to the mains access branch and the energy storage inverter PCS access branch, and the other end of the power supply bypass is connected to the load. Only one of the mains access branch and the energy storage inverter PCS access branch is turned on at the same time. The power supply bypass is used to store electric energy and supply power to the load when the power supply is switched.

7. The method for automatically charging and discharging an energy storage battery based on load tracking according to claim 6 is characterized in that: The mains access branch includes a first relay K1 and a commutation diode D1, the energy storage converter PCS access branch includes a second relay K2 and an anti-backflow diode D2, the main power supply includes a voltage regulator diode D3, the power supply bypass includes a capacitor, one end of the first relay K1 is connected to the mains input end, the other end of the first relay K1 is connected to one end of the commutation diode D1, the other end of the commutation diode D1, one end of the voltage regulator diode D3, one end of the anti-backflow diode D2 and one end of the capacitor are connected in parallel, the other end of the anti-backflow diode D2 is connected to one end of the second relay K2, the other end of the second relay K2 is connected to the energy storage converter PCS, the other end of the voltage regulator diode D3 and the other end of the capacitor are connected in parallel to the load, and the first relay K1 and the second relay K2 are electrically connected to the main control module.