CN114755518A - Test method and test platform for control logic of energy storage system - Google Patents

Test method and test platform for control logic of energy storage system Download PDF

Info

Publication number
CN114755518A
CN114755518A CN202210368077.9A CN202210368077A CN114755518A CN 114755518 A CN114755518 A CN 114755518A CN 202210368077 A CN202210368077 A CN 202210368077A CN 114755518 A CN114755518 A CN 114755518A
Authority
CN
China
Prior art keywords
energy storage
test
control
storage system
management system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210368077.9A
Other languages
Chinese (zh)
Inventor
熊尚峰
李理
晏桂林
龚禹生
吴晋波
洪权
唐倩韬
李辉
刘伟良
欧阳帆
刘志豪
肖俊先
肖纳敏
吴雪琴
李林山
牟秀君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hunan Electric Power Co Ltd
State Grid Hunan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hunan Electric Power Co Ltd
State Grid Hunan Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Hunan Electric Power Co Ltd, State Grid Hunan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202210368077.9A priority Critical patent/CN114755518A/en
Publication of CN114755518A publication Critical patent/CN114755518A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a method and a platform for testing control logic of an energy storage system, wherein the method comprises the following steps: constructing a virtual energy storage power station and a control system according to the structure of the tested energy storage system, and operating the virtual energy storage power station and the control system; determining test equipment of a tested energy storage system, taking corresponding simulation logic modules in the virtual energy storage power station and the control system as target simulation logic modules, and connecting the test equipment with the target simulation logic modules; the method comprises the steps of shielding a target simulation logic module, reserving an interface between the target simulation logic module and test equipment, sending test data to the test equipment, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, obtaining the test result fed back by the test equipment from the reserved interface, and verifying whether the test equipment has problems according to the test result. The method can accurately find out the hardware with problems in the energy storage system, and improves the reliability of the energy storage system.

Description

Test method and test platform for control logic of energy storage system
Technical Field
The invention relates to the field of computer software, in particular to a method and a platform for testing control logic of an energy storage system.
Background
At present, the grid connection performance and the framework requirements of energy storage power stations are vague, the frameworks of the energy storage power stations are not uniform, the equipment functions and the performance of different manufacturers are greatly different, the control strategies are mutually contradictory, and the control functions are overlapped. The energy storage power station which is partially built according to the existing grid-connected performance and architecture requirements cannot meet the requirements of multi-scene application of the power grid. At present, a standard system of the grid-connected performance and the architecture requirement in China is not formed, and the rapid and healthy development of the industry is influenced. The energy storage standard relates to a plurality of links such as design, transportation, installation, acceptance check, commissioning, operation and maintenance, post-disaster treatment, battery recovery and the like, the standard system of the energy storage system is imperfect, the structural requirement of the energy storage power station does not fully consider the equipment safety, and the health and the rapid development of the energy storage industry are directly influenced.
The core equipment of the energy storage power station is a huge number of energy storage modules, and the performance of the energy storage modules and the integrated system thereof determines the operation level of the energy storage power station. The state evaluation and detection of the traditional material battery are mature day by day, but the effective evaluation and detection technology with wider universality of the large-capacity emerging material battery such as a lithium ion battery and the like is still lacked, and the technical development and the operation safety of a large-scale energy storage power station are seriously threatened. The debugging quality of the energy storage module and the energy storage power station is improved, and the method is an important guarantee for improving the grid-connected performance of the system. Strengthen energy storage module debugging quality, can promote the quality and the reliability of the energy storage module of entrying to the net, ensure that energy storage power station performance satisfies the electric wire netting operating requirement of stateful, the two constitutes the foundation stone of ensuring energy storage power station intrinsic safety jointly.
Due to the high integration and particularity of a battery and Battery Management System (BMS), a converter control system (PCS) and an Energy Management System (EMS) in the energy storage system, the current microcomputer-based relay protection test method based on analog signals and physical input and output cannot well meet the test requirements of a battery energy storage power station. Therefore, the control logic of the energy storage system is tested by adopting a mode of constructing a physical simulation platform of the energy storage system at present.
For example, patent 108318757a discloses an energy storage system control strategy test optimization platform based on semi-physical simulation, on which a battery unit, an inverter, and an energy manager simulation model are built, and whether system parameters of an energy storage system meet national standards under steady-state and transient-state operating conditions is tested and optimized. However, this platform relies on the energy storage system actual energy manager and can only support closed loops of information flow between the energy manager and the various simulation models.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: aiming at the problems in the prior art, the test method and the test platform for the control logic of the energy storage system are provided, so that the hardware with problems in the energy storage system can be accurately found, and the reliability of the energy storage system is improved.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for testing control logic of an energy storage system comprises the following steps:
s1) constructing a corresponding state flow model as a virtual energy storage power station and a control system according to the structure of the tested energy storage system, and operating the virtual energy storage power station and the control system;
s2) determining the test equipment of the energy storage system to be tested, taking the corresponding simulation logic module in the virtual energy storage power station and the control system as a target simulation logic module, shielding the target simulation logic module, reserving the interface of the target simulation logic module, and connecting the test equipment with the interface;
s3) sending test data to the test equipment through the interface, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, obtaining the test result fed back by the test equipment from the interface, and verifying whether the test equipment has problems according to the test result.
Further, the specific step of step S1) includes:
s11), establishing a virtual simulation environment, establishing corresponding simulation logic modules according to control logics of each part in an electric primary system and an electric secondary system of the energy storage system, taking a state flow model established by all the simulation logic modules as a virtual energy storage power station and a control system, and loading the virtual energy storage power station and the control system into a virtual machine, wherein each part in the electric primary system and the electric secondary system of the energy storage system comprises an energy management system, a battery management system, a converter control system and a battery;
S12) setting the virtual energy storage power station and the control system as a server side, and simultaneously establishing a client side as an upper computer to operate all simulation logic modules in the virtual energy storage power station and the control system.
Further, the specific step of connecting the test device to the interface in step S2) includes: and connecting the interface with the test equipment according to a Modbus communication protocol.
Further, the step S3) includes that the test device includes an energy management system, the test data includes output data of the simulation logic modules corresponding to the battery management system and the converter control system, and the performing, by the test device, the control logic test according to the test data specifically includes: acquiring output data of simulation logic modules corresponding to a battery management system and a converter control system, executing a first control logic according to the output data and outputting a corresponding instruction as a test result, wherein the first control logic comprises:
judging whether the battery management system and the converter control system have faults or not according to the output data, and stopping all charging and discharging if the faults exist; further judging the operation mode of the battery management system, judging the type of the received control instruction when the battery management system is in a forbidden mode, and determining the charging power for the battery management system if the control instruction is a charging instruction; if the command is a discharging command, setting the discharging power to be 0, judging the type of the received control command when the battery management system is in a charging forbidding mode, and if the command is a discharging command, determining the discharging power for the battery management system; if the charging command is the charging command, setting the charging power to be 0, judging the type of the received control command when the battery management system does not forbid charging or forbid discharging, and if the charging command is the charging command, calculating the charging power for the battery management system according to the operation mode; if the charge state is the discharging instruction, calculating discharging power for the battery management system according to the operation mode, judging whether the charge state exceeds the upper limit and the lower limit, and further correcting the charging and discharging power.
Further, the test equipment includes a converter control system in step S3), the test data includes output data of a simulation logic module corresponding to the energy management system, and performing a control logic test on the test equipment according to the test data specifically includes: acquiring output data of a simulation logic module corresponding to the energy management system, executing a second control logic according to the output data and outputting a corresponding instruction as a test result, wherein the second control logic comprises: and executing a PQ control algorithm according to the data to obtain the calculation results of the voltage, the current loop, the power loop and the phase-locked loop.
Further, the test device includes a battery management system, step S3) includes the battery management system, the test data includes output data of the simulation logic module corresponding to the battery, and performing the control logic test by the test device according to the test data specifically includes: acquiring output data of a simulation logic module corresponding to the battery, executing a third control logic according to the output data and outputting a corresponding instruction as a test result, wherein the third control logic comprises: dividing the working environment temperature of the energy storage system into preset intervals and configuring corresponding charging and discharging power; matching corresponding charging and discharging power according to the interval of the current working environment temperature of the energy storage system; and adjusting the charging and discharging power according to the charge state in the output data.
Further, dividing the operating environment temperature of the energy storage system into preset intervals and configuring corresponding charging and discharging power specifically includes: setting a low-temperature first area, a low-temperature second area, a high-temperature first area and a high-temperature second area, and setting the charge and discharge power to be 0 when the temperature of the working environment is outside all the areas; when the working environment temperature is higher than the low-temperature first region and lower than the high-temperature second region or the environment temperature is higher than the high-temperature first region and lower than the high-temperature second region, the maximum charge-discharge power is set to be half of the rated maximum charge-discharge power; and when the temperature of the working environment is lower than the first high-temperature area and higher than the second low-temperature area, the maximum charge-discharge power is set as the rated maximum charge-discharge power.
Further, the adjusting the charging and discharging power according to the state of charge in the output data specifically includes: when the state of charge is higher than a preset upper limit, adjusting the charging power to 0; and when the state of charge is lower than the preset lower limit, adjusting the discharge power to 0.
The invention also provides a test platform of the control logic of the energy storage system, which comprises a virtual energy storage power station and a control system, wherein the virtual energy storage power station and the control system comprise corresponding simulation logic modules which are established according to the control logic of each part in the electrical primary system and the electrical secondary system of the energy storage system;
The virtual energy storage power station and control system is used for determining test equipment of the tested energy storage system, taking a corresponding simulation logic module as a target simulation logic module, and connecting the test equipment with the target simulation logic module; then shielding the target simulation logic module, reserving an interface of the target simulation logic module, connecting the test equipment with the interface, sending test data to the test equipment through the interface, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, acquiring the test result fed back by the test equipment from the interface, and verifying whether the test equipment has problems according to the test result.
Further, the virtual energy storage power station and control system comprises a simulation logic module of the energy management system, a simulation logic module of the battery management system, a simulation logic module of the converter control system and a simulation logic module of the battery.
Compared with the prior art, the invention has the following advantages:
the invention constructs a state flow model of the energy storage system as a virtual energy storage power station and a control system according to the actual condition of the energy storage system to simulate the energy flow of the energy system, shields a corresponding simulation logic module for the actually tested hardware equipment, but keeps an external input/output signal interface of the simulation logic module, can input and output signals of the hardware equipment, is connected with the input/output interface of the corresponding simulation logic module by utilizing a Modbus communication protocol, and further forms a closed loop of information flow and energy flow between the tested hardware equipment and the corresponding simulation logic module, thereby reducing the difficulty of grid-connected debugging of the energy storage system, accurately finding the problems of each equipment with the grid-connected performance index of the energy storage system, proposing the configuration standard of the functional performance and the interface of the energy storage power station control equipment, and improving the standardization level of the grid-connected process of the energy storage power station, meanwhile, the intelligent and automatic level of field debugging of the energy storage power station is improved, the standardized development of the debugging technology of the control equipment in the energy storage industry is promoted, and the standard level of debugging and grid connection of the energy storage power station is improved. The energy storage power station grid-connected test optimization method is provided, the support capability of the energy storage power station grid-connected performance to the operation of a power grid is verified through tests, and the accuracy and the reliability of the power grid to the regulation and control of the energy storage power station are improved.
Drawings
FIG. 1 is a flow chart of a method of an embodiment of the present invention.
Fig. 2 is a flowchart of the construction and operation of the virtual energy storage power station and the control system in the embodiment of the present invention.
FIG. 3 is a block diagram of a test platform according to an embodiment of the present invention.
FIG. 4 is a logic model of operation control of the virtual energy storage power station and the control system according to the embodiment of the present invention.
FIG. 5 is an operational control logic model of the energy management system in an embodiment of the present invention.
Fig. 6 is an operation control logic model of the converter control system in the embodiment of the invention.
Fig. 7 is an operation control logic model of the battery management system in the embodiment of the present invention.
Fig. 8 is an operation control logic model of the battery in the embodiment of the present invention.
FIG. 9 is a block diagram of a control logic test of an energy management system in an embodiment of the invention.
Fig. 10 is a control logic test block diagram of the battery management system in the embodiment of the present invention.
FIG. 11 is a logic simulation interface of the energy storage power station control system in an embodiment of the invention.
Fig. 12 is a virtual machine operation test interface in an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
Description of related terms:
1) battery Management System (BMS)
The BMS is the brain of the core battery system of the energy storage system, is responsible for monitoring the state of the battery system and ensuring the safe and reliable operation of the battery system, and is an important component of the whole energy storage system. The BMS can monitor and collect the state parameters of the battery cell, the battery module and the battery cluster in real time, perform necessary calculation and processing on the related state parameters, and realize effective control on a battery system according to a specific control strategy; meanwhile, the BMS can perform information interaction with the PCS and the EMS through a communication interface and an analog/digital input/output interface of the BMS, so that the linkage of the whole energy storage system is formed.
2) Converter control system (PCS)
The converter control system is a key link for realizing alternating current-direct current electric energy conversion and is a bridge for connecting a battery and a power grid. The PCS controls the inverter to effectively charge and discharge the battery pack according to various information uploaded by the BMS, and the functions of peak regulation, frequency modulation, peak clipping, valley filling, power output and the like are achieved.
3) Energy Management System (EMS)
The EMS is a system for realizing real-time monitoring, active automatic control and reactive voltage control of a battery in a battery energy storage power station and devices such as the BMS, the PCS, a dry-type transformer, a collecting line and the like by using a computer. The main functions of the EMS comprise data acquisition and processing, alarming, active control, reactive control, energy storage SOC maintenance, logic locking, diagnosis and early warning, panoramic analysis and the like.
As shown in fig. 1, the present embodiment provides a method for testing control logic of an energy storage system, including the following steps:
s1) constructing a corresponding state flow model as a virtual energy storage power station and a control system according to the structure of the tested energy storage system, and operating the virtual energy storage power station and the control system;
s2) determining the test equipment of the tested energy storage system, taking the corresponding simulation logic modules in the virtual energy storage power station and the control system as target simulation logic modules, shielding the target simulation logic modules, reserving the interfaces of the target simulation logic modules, and connecting the test equipment with the interfaces;
s3) sending test data to the test equipment through the interface, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, obtaining the test result fed back by the test equipment from the interface, and verifying whether the test equipment has problems according to the test result.
Through the steps, the virtual energy storage power station and the control system are constructed in the embodiment to simulate the energy flow of the energy system, the corresponding simulation logic module is shielded for the actually tested hardware equipment, the external input and output signal interface of the simulation logic module is reserved, the signal input and output of the hardware equipment can be connected with the input and output interface of the corresponding simulation logic module, and then the closed loop of the information flow and the energy flow is formed between the tested hardware equipment and the corresponding simulation logic module, so that the difficulty of grid-connected debugging of the energy storage system is reduced, and the problems of each equipment of the grid-connected performance index of the energy storage system are accurately found.
As shown in fig. 2, in this embodiment, the specific step of step S1) includes:
s11) establishing a virtual simulation environment, establishing corresponding simulation logic modules according to control logics of each part in an electric primary system and an electric secondary system of an energy storage system, taking a state flow model established by all the simulation logic modules as a virtual energy storage power station and a control system, and loading the virtual energy storage power station and the control system into a virtual machine, wherein each part in the electric primary system and the electric secondary system of the energy storage system comprises an energy management system, a battery management system, a converter control system and a battery;
s12) setting the virtual energy storage power station and the control system as a server side, and simultaneously establishing a client side as an upper computer to operate all simulation logic modules in the virtual energy storage power station and the control system.
Specifically, as shown in fig. 3, in the embodiment, the virtual energy storage power station and the control system are simulation results of components in an electrical primary system and an electrical secondary system of the energy storage system, respectively, where: an electrical primary system of the energy storage system relates to each link of a battery, a PCS and an EMS, and an electrical secondary system of the energy storage system comprises the BMS, the PCS, a control protection system and a background monitoring system.
In this embodiment, an energy storage unit of the energy storage system is composed of a battery and an energy storage converter, the battery is used as an energy carrier, the battery is connected to the PCS for inversion after being converged, the battery is connected to a low-voltage side of the 10kV step-up transformer, a high-voltage side of the step-up transformer is converged and connected to a 10kV bus, and then the battery is connected to a power grid transformer substation. The battery adopts a 3-layer distributed structure of a battery pack, a battery cluster and a battery stack, the battery pack is formed by combining single battery cores in series and parallel, the battery pack is connected in series to a high-voltage box to form the battery cluster, and the battery cluster is connected in parallel to a direct-current bus bar to form the battery stack. And the PCS controller receives the instruction of the background monitoring system and adjusts the PCS working mode, such as a charging and discharging mode and active and reactive power, according to the instruction. The EMS monitors and controls all electrical operation equipment and energy storage equipment in the substation, integrates a receiving scheduling instruction except an electrical monitoring system contained in a conventional substation, and realizes the functions of AGC (automatic generation control), AVC (automatic voltage control) and the like.
Therefore, as shown in fig. 2, in step S11) of this embodiment, a virtual simulation environment is first built through Simscape of Matlab, then, according to the operation control logic of BMS, PCS, EMS, and battery, simulation logic modules corresponding to BMS, PCS, EMS, and battery are built through StateFlow of Matlab, and the complete state flow model obtained after each simulation logic module is built is used as a virtual energy storage power station and a control system, as shown in fig. 4, and then, the state flow model of the virtual energy storage power station and the control system is converted into a C code through Simulink code module of Matlab, and is loaded into an embedded system or a Linux virtual machine.
As shown in fig. 2, in step S12), when the virtual energy storage station and the control system operate on the embedded system or the Linux virtual machine, the virtual energy storage station and the control system are first equivalent to a server, each simulation logic module in the state flow model is operated, a client is further established under Linux, an upper computer that issues instructions is simulated to serve as an energy management system, and communication between the server and the client is realized through Modbus or 2EC61850 communication protocol to verify whether the virtual energy storage station and the control system operate normally in the virtual machine, the simulation logic module corresponding to the BMS may also be docked with an actual BMS through Modbus communication protocol, and if a measurement quantity fed back by the actual BMS is received, the virtual energy storage station and the control system operate normally in the virtual machine.
In the embodiment, the simulation logic module corresponding to the EMS has the functions of controlling the upper and lower limits of AGC, AVC and SOC; the simulation logic module corresponding to the PCS can be used for PQ control, low-pass, high-pass, primary frequency modulation and virtual inertia; the simulation logic module corresponding to the BMS has a three-level alarm function and protection logic, and the fixed value can be set. The simulation logic module corresponding to the battery adopts a lithium ion battery second-order Thevenin model.
As shown in fig. 4 and fig. 5, in this embodiment, the input data of the simulation logic module corresponding to the EMS includes: [ PCS ] represents the operating state of PCS; [ BMS ] represents the BMS working state and the collected battery related information; HMI _ EMS _ CMD represents the operation mode command of EMS; HMI _ EMS _ P represents the initial power state of the energy management system EMS. Based on the input information, when the running state of the EMS meets the corresponding condition, the state is switched, and the corresponding jump is realized. The boxes in fig. 5 represent the state of the EMS system, the codes in [ ] at the connecting lines represent the satisfied conditions, the codes in { } represent operations, and the Running box refers to a specific data processing function, which represents the operation control logic of the EMS system as follows: firstly, judging whether BMS and PCS have faults or not, and if the faults exist, stopping all charging and discharging. The operation mode of the BMS is further judged, when the BMS is in a forbidden mode, the type of the received control instruction is judged, and if the control instruction is a charging instruction, the BMS system determines the charging power; if the command is a discharge command, the discharge power is set to 0. When the BMS is in a charging prohibition mode, judging the type of the received control instruction, and if the type of the received control instruction is a discharging instruction, determining the discharging power by the BMS system; if the charging command is received, the charging power is set to 0. When the BMS system does not forbid charging or forbid discharging, judging the type of the received control instruction, and if the type of the received control instruction is a charging instruction, calculating the charging power by the BMS system according to the running mode; if the command is a discharging command, the BMS calculates the discharging power according to the operation mode; and then judging whether the SOC state exceeds the upper limit and the lower limit, and further correcting the charge and discharge power.
As shown in fig. 4 and fig. 6, in this embodiment, the input data of the simulation logic module corresponding to the PCS includes: HMI _ PCS _ CMD indicates an operating mode command of the PCS; [ EMS ] represents an output power scheduling command of EMS. Based on the input information, when the operating state of the PCS meets the corresponding condition, the state is switched, and corresponding skipping is realized. The boxes in fig. 6 represent the state of the PCS system, the code in [ ] at the connection line represents the satisfied condition, the code in { } represents the operation, and the Running box refers to a specific data processing function, which represents the operation control logic of the PCS system as: and obtaining the calculation results of a plurality of links such as a voltage loop, a current loop, a power loop, a phase-locked loop and the like according to the PQ control algorithm.
As shown in fig. 4 and 7, in this embodiment, the input data of the simulation logic module corresponding to the BMS includes: HMI _ BMS _ CMD represents an operation mode command of the BMS; [ Battery ] represents the state of charge of the Battery. And based on the input information, when the running state of the BMS meets the corresponding condition, switching the state to realize corresponding skip. The blocks in fig. 7 represent the state of the BMS system, the codes at the connecting lines [ ] represent the satisfied conditions, the codes in { } represent the operations, where HMI _ BMS _ CMD refers to the control commands of the BMS, BMS. error _ NUM refers to the BMS down-time, Running blocks refer to specific data handling functions, which represent the operation control logic of the BMS system as: firstly, dividing the working environment temperature of the energy storage system into a first low-temperature area, a second low-temperature area, a first high-temperature area and a second high-temperature area, wherein when the working environment temperature is lower than the first low-temperature area or higher than the second high-temperature area, the active and reactive charging and discharging powers of the energy storage system are all 0; when the working environment temperature is higher than the first low-temperature region and lower than the second high-temperature region or the environment temperature is higher than the first high-temperature region and lower than the second high-temperature region, the maximum active and reactive charge and discharge power is set to be half of the rated maximum charge and discharge power; when the working environment temperature is lower than the first high-temperature area and higher than the second low-temperature area, the maximum active and reactive charge and discharge power can be set as the rated maximum charge and discharge power, so that the classification of the charge and discharge power grades is determined. When the energy storage system operates, judging the operation mode of the energy storage system, further calculating the charge-discharge power, and adding the upper limit and the lower limit of the charge state to restrict, when the charge state is higher than the upper limit, adjusting the charge power to be 0; when the state of charge is lower than the lower limit, the discharge power is adjusted to 0.
In fig. 4, the input data of the simulation logic module corresponding to the battery includes: [ PCS ] indicates the operating state of the PCS. The boxes in fig. 8 indicate the state of the BMS system, the code at the connection line [ ] indicates the satisfied condition, the code at { } indicates the operation, indicating that the operation control logic of the battery is: initializing relevant information of the battery, and updating the information of the battery according to the input information; and after every 0.1 second, the information of the battery is automatically updated.
In this embodiment, after the step S1), simulation verification is further performed on each simulation logic module according to the operation control logic described above to verify whether the control logic is feasible, and after the control logic passes, the virtual energy storage power station and the control system are used as a simulated power conversion system to simulate the energy flow of the energy storage system test platform in the operation process.
In step S2), the testing device is obtained according to the debugging stage of the energy storage system and the requirement of the debugging target.
The debugging stage of the energy storage system can be divided into 2 stages of factory integrated joint debugging and field debugging. The factory integration joint debugging mainly has 3 targets: firstly, in order to ensure the production quality of the battery and improve the reliability and the safety of the production and the operation of the battery, basic performances of a single battery cell, a battery module and a battery cluster, such as charge and discharge capacity, insulation, temperature and the like, and safety performance test tests such as overcharge/overdischarge, extrusion, falling and the like need to be carried out; secondly, the requirement of an energy storage power station monitoring system (namely EMS) access scheduling automation technical specification is met; and the EMS of the energy storage power station realizes the functions of information acquisition, processing, monitoring, control, operation management and the like of other station equipment such as BMS, PCS, power distribution equipment and the like in the energy storage power station, and the functions and the performances of the EMS are required to be checked to meet the technical specification requirements and the consistency with the communication protocols of the BMS, PCS, public measurement and control and other electrical secondary devices. The field debugging refers to a function verification test carried out on a single device, a plurality of device-associated subsystems and a whole station system after the installation of the electrical primary device and the electrical secondary device is finished. Therefore, the whole debugging process can be divided into 3 stages of single debugging, sub-system debugging and system debugging.
The objectives and requirements of each debugging stage of the BMS, PCS and EMS system are described below.
(1) Monomer commissioning
The cell commissioning will commission the Battery Management System (BMS), the converter control system (PCS) and the Energy Management System (EMS), respectively.
The BMS monomer debugging comprises the following main contents:
a) basic inspection: the appearance is intact, and the model and specification are in accordance with technical documents and design drawings.
b) Checking an analog quantity: voltage detection, current detection and temperature detection.
c) And (5) detecting the insulation resistance.
d) And (3) detecting a fault diagnosis function: the BMU and the BCMU can output various alarm quantities for controlling the safe operation of the system; the alarm amount includes cell voltage, total voltage, state of charge (SOC), temperature, communication, hardware fault, and the like.
e) And (4) detection of a protection function: in the charging and discharging process, the BMS protects the phenomena of monomer overvoltage, undervoltage, overhigh temperature, low temperature, overcurrent and the like.
According to the detection rule of the converter, the PCS monomer debugging mainly comprises the following steps: appearance inspection, insulation resistance test, input/output inspection, protection function test, efficiency test, power factor test, charge/discharge switching time test, harmonic current test and direct current component test.
Key contents of EMS individual debugging include: the method comprises the following steps of analog quantity testing, state quantity (switching value) testing, remote control function testing, event sequence recording resolution testing, pulse input testing, power grid dispatching communication testing and switch and disconnecting link locking logic testing.
(2) Subsystem debugging
The battery energy storage power station has a plurality of subsystems according to different functions: the system comprises a battery energy storage subsystem, a relay protection and safety automatic device subsystem, a clock synchronization subsystem, an alternating current and direct current integrated power supply subsystem, an energy storage power station auxiliary monitoring subsystem, a metering subsystem, a telecontrol communication subsystem, a secondary safety protection subsystem and the like. The battery energy storage subsystem consists of a battery, a BMS, a PCS and an EMS and is the most core part of the battery energy storage power station. In a subsystem debugging stage, main debugging contents of the battery energy storage subsystem comprise: communication tests among BMS, PCS and EMS; remote measurement, remote signaling, remote control and remote regulation test among BMS, PCS and EMS; testing the time synchronization function among BMS, PCS and EMS; BMS and PCS cooperate to protect the logic test; and testing the control functions of the BMS and the PCS by the EMS.
(3) System debugging
When the functions of all subsystems of the battery energy storage power station are verified correctly and communication debugging with all levels of scheduling master stations is completed, a line optical fiber differential protection joint debugging test of the energy storage power station access substation grid-connected point is required to be carried out, so that safety guarantee is provided for system debugging of the battery energy storage power station access power grid. According to the requirement of a test regulation of the battery energy storage power station accessing to a power grid, the test items comprise: firstly, testing the adaptability of a power grid; testing power control; testing overload capacity; fourthly, testing low voltage/high voltage ride through; testing the quality of the electric energy; sixthly, testing the protection function; seventhly, testing charge-discharge response time, adjusting time and conversion time; and eighthly, testing energy efficiency.
In step S2), after the test device is determined, shielding the corresponding simulation logic module in the simulation model according to the actually tested hardware device, but keeping the external i/o signal interface of the simulation logic module, and connecting the test device with the corresponding i/o interface of the simulation logic module in the Linux virtual machine through Linux programming and Modbus communication protocol, so that a closed loop of energy flow and information flow is formed between the hardware test device and the simulation model of the energy storage system.
If the actual test is that the BMS is used, the corresponding simulation logic module is shielded, an input interface and an output interface which are connected with the actual BMS system are reserved, the input interfaces and the output interfaces are in butt joint with the actual BMS system through a Modbus protocol, the output data of the simulation logic module of the battery is sent to the actual BMS system through the output interface in the subsequent test process, the BMS feeds back and uploads the test results of the measurement quantity and the like to the virtual energy storage system through the input interface, and then the closed loop of the energy flow and the information flow is formed, so that the information flow based on information acquisition corresponds to the energy conversion of the actual device in real time, the information flow and the energy flow are formed respectively, and meanwhile, the real-time and unique mapping relation between the information flow and the energy flow is ensured.
By the step S2), when monomer debugging is carried out, shielding off the corresponding simulation logic module, reserving corresponding signal input and output ports in the original closed loop of the virtual energy storage power station and the control system, connecting the signal input and output ports with an external tested monomer physical system, and forming a closed loop again; in the debugging of the subsystem, the stability and the reliability of communication, signal quantity measurement and transmission among BMS, PCS and EMS can be verified and debugged in an auxiliary way; in the control logic verification of system debugging, a simulation logic module can replace part of a hardware system and equipment to carry out debugging test.
In step S3), when the testing device is an EMS, the testing data is output data of the simulation logic modules corresponding to the BMS and the PCS, and the EMS executes the control logic described above according to the testing data, and the process is as shown in fig. 9, and includes:
judging whether the battery management system and the converter control system have faults or not according to the output data, and if the faults exist, stopping all charging and discharging; further judging the operation mode of the battery management system, judging the type of the received control instruction when the battery management system is in a forbidden mode, and determining the charging power for the battery management system if the control instruction is a charging instruction; if the command is a discharging command, setting the discharging power to be 0, judging the type of the received control command when the battery management system is in a charge-forbidden mode, and if the command is a discharging command, determining the discharging power for the battery management system; if the charging command is the charging command, setting the charging power to be 0, judging the type of the received control command when the battery management system does not forbid charging or forbid discharging, and if the charging command is the charging command, calculating the charging power for the battery management system according to the operation mode; if the command is a discharging command, calculating discharging power for the battery management system according to the operation mode, then judging whether the state of charge exceeds the upper limit and the lower limit, and further correcting the charging and discharging power.
Step S3), when the test device is a PCS, the test data is output data of a simulation logic module corresponding to the EMS, and the PCS executes the control logic described above according to the test data, that is: and executing a PQ control algorithm according to an output power scheduling instruction of a simulation logic module of the EMS to obtain the calculation results of the voltage, the current loop, the power loop and the phase-locked loop.
Step S3), when the testing device is a BMS, the testing data is output data of the simulation logic module corresponding to the battery, and the BMS executes the aforementioned control logic according to the testing data, and the process is shown in fig. 10 and includes: acquiring output data of a simulation logic module corresponding to the battery, executing a third control logic according to the output data and outputting a corresponding instruction as a test result, wherein the third control logic comprises: dividing the working environment temperature of the energy storage system into a preset interval and configuring corresponding charging and discharging power; matching corresponding charging and discharging power according to the interval of the current working environment temperature of the energy storage system; and adjusting the charging and discharging power according to the state of charge in the output data. Wherein:
dividing the working environment temperature of the energy storage system into preset intervals and configuring corresponding charging and discharging power specifically comprises the following steps: setting a low-temperature first area, a low-temperature second area, a high-temperature first area and a high-temperature second area, wherein when the working environment temperature is outside all the areas, the charge and discharge power is set to be 0; when the working environment temperature is higher than the first low-temperature area and lower than the second high-temperature area or the environment temperature is higher than the first high-temperature area and lower than the second high-temperature area, the maximum charge-discharge power is set to be half of the rated maximum charge-discharge power; when the temperature of the working environment is lower than the first high-temperature area and higher than the second low-temperature area, the maximum charge-discharge power is set as the rated maximum charge-discharge power;
The step of adjusting the charge-discharge power according to the state of charge in the output data specifically comprises the following steps: when the state of charge is higher than a preset upper limit, adjusting the charging power to 0; and when the state of charge is lower than a preset lower limit, adjusting the discharge power to 0.
The following is further illustrated by specific examples:
firstly, defining that the equipment debugging stage is monomer debugging, and the debugging target is the control logic test of BMS and EMS;
secondly, according to the actual engineering design condition of the energy storage system, establishing simulation logic modules corresponding to the BMS, the PCS, the EMS and the battery through the Simscape and StateFlow of Matlab, constructing to obtain a state flow model of the virtual energy storage power station and the control system, and then performing simulation verification to ensure that the control logic of the simulation logic modules corresponding to the BMS, the PCS, the EMS and the battery is feasible;
thirdly, converting the state flow model of the virtual energy storage power station and the control system into a C code by using a Simulink C Coder tool, loading a Linux virtual machine to operate as a server, setting a client through Linux programming, and communicating the client and the server through a Modbus protocol to verify whether the virtual energy storage power station and the control system operate normally in the virtual machine, wherein a logic simulation interface of an energy storage system is shown in an attached drawing 11, and an energy storage system test platform is embedded into a virtual machine operation test interface which is shown in an attached drawing 12;
And fourthly, shielding the simulation logic modules corresponding to the BMS and the EMS, connecting interfaces of the two simulation logic modules with the actual BMS and the EMS, and acquiring feedback test results received by the interfaces of the simulation logic modules corresponding to the BMS and the EMS after the actual BMS and the EMS are interconnected with the virtual energy storage power station and the control system to form a closed loop, and judging whether the test results meet performance indexes and requirements of the control logic tests of the BMS and the BMS.
The embodiment also provides a test platform of the control logic of the energy storage system, which comprises a virtual energy storage power station and a control system, wherein the virtual energy storage power station and the control system comprise corresponding simulation logic modules which are established according to the control logic of each part in the electrical primary system and the electrical secondary system of the energy storage system, and the corresponding simulation logic modules comprise a simulation logic module of an EMS (energy management system), a simulation logic module of a BMS (battery management system), a simulation logic module of a PCS (power system) and a simulation logic module of a battery;
the virtual energy storage power station and control system is used for determining test equipment of the tested energy storage system, taking a corresponding simulation logic module as a target simulation logic module, and connecting the test equipment with the target simulation logic module; then shielding the target simulation logic module, reserving an interface of the target simulation logic module, connecting the test equipment with the interface, sending test data to the test equipment through the interface, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, acquiring the test result fed back by the test equipment from the interface, and verifying whether the test equipment has problems according to the test result.
To sum up, the embodiment analyzes the research of the operation control interaction logic of the energy storage system, researches the operation control logic structure of the energy storage system, puts forward the requirements of a test platform of the energy storage system, formulates an operation logic test scheme of the energy storage system, combs an operation control logic test flow of the energy storage system, realizes the functional performance and the interface of the energy storage system control equipment, improves the standardization level of the grid-connected process of the energy storage power station, simultaneously improves the intellectualization and the automation level of the field debugging of the energy storage power station, promotes the standardized development of the debugging technology of the energy storage industry control equipment, and improves the standardization level of the grid-connected process of the energy storage power station. By providing the energy storage power station grid-connected test optimization method, the support capability of the energy storage power station grid-connected performance to the operation of the power grid is verified through the test, and the accuracy and the reliability of the power grid to the regulation and control of the energy storage power station are improved. The invention can provide effective technical support for improving the reliability, economy, flexibility and the like of the operation of the power system by storing energy. And finally, the effectiveness of the method is verified through the operation of the energy storage system test platform.
The foregoing is illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention shall fall within the protection scope of the technical solution of the present invention, unless the technical essence of the present invention departs from the content of the technical solution of the present invention.

Claims (10)

1. A method for testing control logic of an energy storage system is characterized by comprising the following steps:
s1) constructing a corresponding state flow model as a virtual energy storage power station and a control system according to the structure of the tested energy storage system, and operating the virtual energy storage power station and the control system;
s2) determining the test equipment of the tested energy storage system, taking the corresponding simulation logic modules in the virtual energy storage power station and the control system as target simulation logic modules, shielding the target simulation logic modules, reserving the interfaces of the target simulation logic modules, and connecting the test equipment with the interfaces;
s3) sending test data to the test equipment through the interface, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, obtaining the test result fed back by the test equipment from the interface, and verifying whether the test equipment has problems according to the test result.
2. The method for testing the energy storage system control logic according to claim 1, wherein the step S1) includes the following steps:
s11) establishing a virtual simulation environment, establishing corresponding simulation logic modules according to control logics of each part in an electric primary system and an electric secondary system of an energy storage system, taking a state flow model established by all the simulation logic modules as a virtual energy storage power station and a control system, and loading the virtual energy storage power station and the control system into a virtual machine, wherein each part in the electric primary system and the electric secondary system of the energy storage system comprises an energy management system, a battery management system, a converter control system and a battery;
S12) setting the virtual energy storage power station and the control system as a server side, and simultaneously establishing a client side as an upper computer to operate all simulation logic modules in the virtual energy storage power station and the control system.
3. The method for testing the energy storage system control logic according to claim 1, wherein the step of connecting the interface of the test device in step S2) comprises: and connecting the interface with the test equipment according to a Modbus communication protocol.
4. The method for testing the control logic of the energy storage system according to claim 1, wherein the test equipment in step S3) includes an energy management system, the test data includes output data of simulation logic modules corresponding to the battery management system and the converter control system, and performing the control logic test by the test equipment according to the test data specifically includes: acquiring output data of simulation logic modules corresponding to a battery management system and a converter control system, executing a first control logic according to the output data and outputting a corresponding instruction as a test result, wherein the first control logic comprises:
judging whether the battery management system and the converter control system have faults or not according to the output data, and if the faults exist, stopping all charging and discharging; further judging the operation mode of the battery management system, judging the type of the received control instruction when the battery management system is in a forbidden mode, and determining the charging power for the battery management system if the control instruction is a charging instruction; if the command is a discharging command, setting the discharging power to be 0, judging the type of the received control command when the battery management system is in a charge-forbidden mode, and if the command is a discharging command, determining the discharging power for the battery management system; if the command is a charging command, setting the charging power to be 0, judging the type of the received control command when the battery management system is not forbidden to charge or forbidden to discharge, and if the command is a charging command, calculating the charging power for the battery management system according to the operation mode; if the command is a discharging command, calculating discharging power for the battery management system according to the operation mode, then judging whether the state of charge exceeds the upper limit and the lower limit, and further correcting the charging and discharging power.
5. The method for testing the control logic of the energy storage system according to claim 1, wherein the test equipment in step S3) includes a converter control system, the test data includes output data of a simulation logic module corresponding to the energy management system, and the performing, by the test equipment, the control logic test according to the test data specifically includes: acquiring output data of a simulation logic module corresponding to the energy management system, executing a second control logic according to the output data and outputting a corresponding instruction as a test result, wherein the second control logic comprises: and executing a PQ control algorithm according to the data to obtain the calculation results of the voltage, the current loop, the power loop and the phase-locked loop.
6. The method for testing the control logic of the energy storage system according to claim 1, wherein, in step S3), the test device includes a battery management system, the test data includes output data of a simulation logic module corresponding to the battery, and performing, by the test device, the control logic test according to the test data specifically includes: acquiring output data of a simulation logic module corresponding to the battery, executing a third control logic according to the output data and outputting a corresponding instruction as a test result, wherein the third control logic comprises: dividing the working environment temperature of the energy storage system into a preset interval and configuring corresponding charging and discharging power; matching corresponding charging and discharging power according to the interval of the current working environment temperature of the energy storage system; and adjusting the charging and discharging power according to the state of charge in the output data.
7. The method for testing the control logic of the energy storage system according to claim 6, wherein the step of dividing the operating environment temperature of the energy storage system into preset intervals and configuring corresponding charging and discharging power specifically comprises the steps of: setting a low-temperature first area, a low-temperature second area, a high-temperature first area and a high-temperature second area, and setting the charge and discharge power to be 0 when the temperature of the working environment is outside all the areas; when the working environment temperature is higher than the low-temperature first region and lower than the high-temperature second region or the environment temperature is higher than the high-temperature first region and lower than the high-temperature second region, the maximum charge-discharge power is set to be half of the rated maximum charge-discharge power; and when the temperature of the working environment is lower than the first high-temperature area and higher than the second low-temperature area, the maximum charge-discharge power is set as the rated maximum charge-discharge power.
8. The method for testing the control logic of the energy storage system according to claim 7, wherein the step of adjusting the charging and discharging power according to the state of charge in the output data specifically comprises: when the state of charge is higher than a preset upper limit, adjusting the charging power to 0; and when the state of charge is lower than the preset lower limit, adjusting the discharge power to 0.
9. A test platform for control logic of an energy storage system is characterized by comprising a virtual energy storage power station and a control system, wherein the virtual energy storage power station and the control system comprise corresponding simulation logic modules which are established according to the control logic of each part in an electrical primary system and an electrical secondary system of the energy storage system;
The virtual energy storage power station and control system is used for determining test equipment of the tested energy storage system, taking a corresponding simulation logic module as a target simulation logic module, and connecting the test equipment with the target simulation logic module; then shielding the target simulation logic module, reserving an interface of the target simulation logic module, connecting the test equipment with the interface, sending test data to the test equipment through the interface, waiting for the test equipment to carry out control logic test according to the test data, feeding back a test result, acquiring the test result fed back by the test equipment from the interface, and verifying whether the test equipment has problems according to the test result.
10. The test platform of the control logic of the energy storage system according to claim 9, wherein the virtual energy storage power station and control system comprises a simulation logic module of an energy management system, a simulation logic module of a battery management system, a simulation logic module of a converter control system, and a simulation logic module of a battery.
CN202210368077.9A 2022-04-08 2022-04-08 Test method and test platform for control logic of energy storage system Pending CN114755518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210368077.9A CN114755518A (en) 2022-04-08 2022-04-08 Test method and test platform for control logic of energy storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210368077.9A CN114755518A (en) 2022-04-08 2022-04-08 Test method and test platform for control logic of energy storage system

Publications (1)

Publication Number Publication Date
CN114755518A true CN114755518A (en) 2022-07-15

Family

ID=82329846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210368077.9A Pending CN114755518A (en) 2022-04-08 2022-04-08 Test method and test platform for control logic of energy storage system

Country Status (1)

Country Link
CN (1) CN114755518A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291538A (en) * 2022-08-23 2022-11-04 上海玫克生储能科技有限公司 Digital simulation method and system for photovoltaic energy storage power station
CN115714725A (en) * 2022-10-17 2023-02-24 江西科骏实业有限公司 Network instruction virtual simulation implementation method and system for teaching application
WO2024037522A1 (en) * 2022-08-17 2024-02-22 南方电网调峰调频发电有限公司储能科研院 Control method and system for using high-capacity medium-voltage chain-type energy storage system as off-grid test power source
CN117707710A (en) * 2024-02-05 2024-03-15 双一力(宁波)电池有限公司 Energy storage project simulation test system and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037522A1 (en) * 2022-08-17 2024-02-22 南方电网调峰调频发电有限公司储能科研院 Control method and system for using high-capacity medium-voltage chain-type energy storage system as off-grid test power source
CN115291538A (en) * 2022-08-23 2022-11-04 上海玫克生储能科技有限公司 Digital simulation method and system for photovoltaic energy storage power station
CN115714725A (en) * 2022-10-17 2023-02-24 江西科骏实业有限公司 Network instruction virtual simulation implementation method and system for teaching application
CN115714725B (en) * 2022-10-17 2023-09-12 江西科骏实业有限公司 Teaching application-oriented network instruction virtual simulation implementation method and system
CN117707710A (en) * 2024-02-05 2024-03-15 双一力(宁波)电池有限公司 Energy storage project simulation test system and method

Similar Documents

Publication Publication Date Title
CN114755518A (en) Test method and test platform for control logic of energy storage system
CN110943483B (en) Micro-grid system and control method
CN109633310B (en) Interconnection and intercommunication detection cloud platform for electric vehicle charging facility
CN106054672B (en) Real microgrid operation dynamic simulation test platform based on RT-LAB
CN106340968B (en) Integrated support system and method for power distribution network management and control
CN105140996B (en) A kind of Li-ion batteries piles balanced management system and balance control method
CN107453380A (en) A kind of energy storage EMS and method based on distributed AC servo system pattern
CN107037733B (en) Wind farm energy storage hardware in-loop test adjustment system and method
CN109212351A (en) A kind of electric car non-on-board charger automatic checkout system and method
CN212627257U (en) String type two-stage conversion battery energy storage system comprising pre-diagnosis module
CN107463732B (en) Multi-terminal alternating current-direct current active power distribution network scheduling control simulation system and method
CN104155616A (en) Photovoltaic system current transformer test platform
CN109884434B (en) Joint debugging test method, system and medium for battery energy storage power station system
CN106505605A (en) Sodium-sulphur battery power station energy storage subsystem
CN105556782A (en) Storage battery system
CN106549503A (en) Sodium-sulphur battery Power Station Monitored Control System
CN110112824A (en) A kind of autonomous acquisition of DC power system monitoring data and intelligent management-control method
CN112531912A (en) Modularized energy storage device based on retired battery and echelon utilization heterogeneous method thereof
CN113422363A (en) Intelligent parallel direct-current power supply management system
CN203135572U (en) Transformer substation DC device state monitoring system
CN111864889A (en) Uninterrupted emergency power supply system and method for open-circuit protection of lead-acid storage battery pack
CN108693442A (en) The detection method and system of electric network fault
CN102611085B (en) Intertripping simulation analysis method
CN104467050A (en) Charging and discharging control method and device for storage battery
CN209159468U (en) A kind of energy storage battery BMS system of quick response

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination