A method and system for controlling an energy storage converter based on a programmable controller
By prioritizing and dynamically scheduling the transmission of data from the energy storage converter, the problem of power output oscillation caused by resource contention in the programmable controller under severe load impacts is solved, thus achieving stable operation of the energy storage converter and efficient data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN ZHONGTIAN MINGSHENG TECH CO LTD
- Filing Date
- 2026-04-03
- Publication Date
- 2026-07-24
AI Technical Summary
When dealing with severe load shocks, the communication service tasks of the programmable controller occupy too much processor time slice due to the surge in data transmission, resulting in delays in the execution of core power control tasks, which in turn causes oscillations in the power output of the energy storage converter and reduces system stability.
By classifying the data collected by the energy storage converter, high-priority data is sent at fixed intervals, while the sending of low-priority data is dynamically scheduled based on processor resource utilization and control task execution status, thus avoiding resource contention.
It ensures the real-time and deterministic nature of core control tasks, improves the operational stability and reliability of energy storage converters under complex operating conditions, avoids minor overshoot or lag in power output, and enhances the continuous and stable operation of the production line and product quality.
Smart Images

Figure CN122456500A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of energy storage converter control technology, and in particular to an energy storage converter control method and system based on a programmable controller. Background Technology
[0002] In modern industrial manufacturing facilities, energy storage converters play a crucial role in maintaining the stability of the internal power grid, especially when handling large, fluctuating loads. To achieve high-precision control, a programmable logic controller (PLC)-based control system is typically employed. This system deploys the core power control program in a high-priority task, executing it cyclically at strictly fixed time intervals to ensure the real-time nature and deterministic nature of control commands. This design is standard practice in industrial control, guaranteeing that the converter can respond promptly and predictably to changes in grid conditions, which is critical for maintaining the continuous and stable operation of the production line.
[0003] However, with the deepening of the smart manufacturing concept, factories are increasingly demanding digital management and remote monitoring of their production processes. To this end, many factories have introduced advanced Manufacturing Execution Systems (MES), requiring all critical production equipment, including energy storage converters, to upload detailed operational status data to a central server in real time. This data includes, but is not limited to, the equipment's instantaneous power output, internal voltage and current values, temperature, operating mode, fault alarm information, and various internal status indicators. The aggregation of real-time data enables factory managers to conduct refined monitoring of the production line's operation. This data uploading requirement, in essence, places a new and continuous data communication burden on the underlying control system.
[0004] In real-world industrial production environments, the loads connected to energy storage converters are often not constant. For example, on heavy industrial production lines, there may be large stamping presses, electric arc furnaces, or induction heating equipment. When these devices start up, stop, or switch operating modes, they instantly draw or inject enormous power into the grid. When the energy storage converter needs to cope with such drastic power fluctuations, its internal voltage, current, temperature, and other operating parameters will experience numerous instantaneous changes. These rapid changes in parameters, and the various internal alarm messages that may be triggered as a result, need to be packaged and sent out via industrial Ethernet in real time, according to the new MES data upload requirements. This means that during these specific moments of drastic load changes, the amount of data communication that the programmable controller needs to process will experience an explosive increase, far exceeding the amount of data under normal stable operating conditions.
[0005] To ensure the reliability of industrial network communication, the underlying operating system of a programmable logic controller (PLC) typically grants high internal execution privileges to communication service tasks that process network data packets. This high privilege setting ensures that the PLC can maintain connectivity with external monitoring systems or higher-level controllers under any circumstances, preventing data loss or communication interruptions. Therefore, when an energy storage converter generates a large amount of status data and alarm information that needs to be uploaded due to severe load surges, the PLC's internal communication service tasks will consume more processor time slices than usual due to the sudden increase in data transmission volume. This is an operating system-level resource allocation strategy designed to prioritize the integrity of critical network connections and data transmission.
[0006] In this scenario, if a sudden load surge coincides with the data upload process of a large number of alarm messages generated within the converter, a subtle resource contention arises. To handle the sudden communication load, the programmable logic controller's operating system briefly preempts processor resources, allocating more CPU time to high-priority network communication tasks. This causes the execution of the core power control task, which is also set to high priority, to be delayed by microseconds. This means that the core control program may not be awakened and executed at its precisely scheduled moment, but instead begins processing the current grid status and generating new control commands only after a slight delay. This minute timing deviation, when occurring once, typically has a negligible impact on the converter's power output.
[0007] However, on some high-paced industrial production lines, severe load surges are commonplace, meaning that the aforementioned control command delays will repeatedly occur and accumulate. While each microsecond-level delay may seem insignificant individually, under high-frequency repetition, it can cause slight overshoot or lag in the power output of the energy storage converter during dynamic adjustment. This recurring, minute power output deviation, under specific operating conditions, may induce persistent, small oscillations in the output current. Although these oscillations are small in amplitude, they reduce the stability of the energy storage converter's support for the power grid, potentially affecting the long-term lifespan of connected equipment and even, in extreme cases, impacting product quality or production efficiency. This microsecond-level timing jitter caused by resource contention in the underlying operating system ultimately evolves into observable system performance degradation, a unique challenge that existing fixed-parameter-based control methods struggle to effectively address. Summary of the Invention
[0008] This application discloses a control method and system for an energy storage converter based on a programmable controller, aiming to solve the problem in the prior art where, when dealing with severe load shocks, the communication service task inside the programmable controller occupies too much processor time slice due to the surge in data transmission, resulting in delays in the execution of the core power control task, which in turn causes oscillations in the power output of the energy storage converter and reduces system stability.
[0009] The technical solution of this application is as follows: In a first aspect, this application discloses a control method for an energy storage converter based on a programmable logic controller (PLC), comprising: acquiring multiple data collected by the energy storage converter; classifying the multiple data into first data and second data according to the values of the multiple data; wherein the transmission priority of the first data is greater than the transmission priority of the second data; storing the first data in a first preset storage area; scanning and sending the data in the first preset storage area at preset intervals using a preset communication service task; storing the second data in a second preset storage area; and sending the data in the second preset storage area according to the start and end times of each control task in the multiple control tasks of the energy storage converter within a preset historical time period prior to the current time and the current resource utilization rate of the processor of the energy storage converter.
[0010] Furthermore, classifying multiple data into first data and second data based on the values of multiple data includes: for each data in the multiple data, determining whether the value of the data exceeds a preset normal value range; if so, determining the data as initial first data, otherwise determining the data as the second data; determining whether the data volume of the initial first data is greater than a preset data volume threshold; if so, compressing the initial first data to obtain the first data, otherwise determining the initial first data as the first data.
[0011] Based on this, according to the start and end times of the execution of each control task in the multiple control tasks of the energy storage converter within a preset historical time period prior to the current time and the current resource utilization rate of the processor of the energy storage converter, the data in the second preset storage area is transmitted, including: determining whether the processor is in a transmittable state according to the start and end times of the execution of each control task in the multiple control tasks and the current resource utilization rate of the processor of the energy storage converter; when the processor is in a transmittable state, transmitting the data in the second preset storage area based on the transmission speed of the target communication channel; the target communication channel is used to transmit the data in the second preset storage area.
[0012] Furthermore, determining whether the processor is in a transmittable state based on the start and end times of each control task in the multiple control tasks and the current resource utilization rate of the processor of the energy storage converter includes: determining whether the current resource utilization rate of the processor is less than a preset utilization rate threshold; if so, determining that the processor is in a resource-sufficient state; otherwise, determining that the processor is not in a transmittable state; when the processor is in a resource-sufficient state, determining whether the processor is in a transmittable state based on the start and end times of each control task in the multiple control tasks.
[0013] In some preferred embodiments, when the processor is in a resource-sufficient state, determining whether the processor is in a transmittable state based on the start and end times of each of the multiple control tasks includes: determining the execution duration of each control task based on the start and end times of each control task; determining whether there is a control task among the multiple control tasks whose execution duration is longer than a preset execution duration threshold; if so, determining that the processor is in a non-transmittable state; otherwise, determining that the processor is in a transmittable state.
[0014] As an optional solution, when the processor is in a resource-sufficient state, the processor's readiness to transmit is determined based on the start and end times of each of the multiple control tasks. This includes: for each of the multiple control tasks, using the end time of the control task and the start time of the next control task as the execution duration of a non-control task; determining whether the execution durations of multiple non-control tasks are all greater than a preset first duration threshold; if not, determining that the processor is not in a readiness to transmit state; if so, determining whether the processor is currently executing a control task; if so, determining that the processor is not in a readiness to transmit state; otherwise, determining whether the duration between the end time of the last control task executed by the processor and the current time is less than a preset first duration threshold; if so, determining that the processor is in a readiness to transmit state; otherwise, determining that the processor is not in a readiness to transmit state.
[0015] To enhance functionality, after determining that the processor is not in a transmittable state when the execution time of multiple non-control tasks is not uniformly greater than a preset first duration threshold, the method further includes: determining whether the available capacity of the second preset storage area is less than a preset capacity threshold; if so, during the idle time of the production system corresponding to the energy storage converter, transmitting the data in the second preset storage area based on the transmission speed of the target communication channel.
[0016] To improve the solution, after determining that the processor is not in a transmittable state while it is currently executing a control task, the method further includes: when the currently executing control task is completed, transmitting the data in the second preset storage area based on the transmission speed of the target communication channel within a preset first duration threshold.
[0017] To optimize the structure, data in the second preset storage area is transmitted based on the transmission speed of the target communication channel, including: obtaining a first preset correspondence; the first preset correspondence includes a one-to-one correspondence between multiple transmission speed ranges and multiple data volumes; the data volume corresponding to the transmission speed range of the target communication channel in the first preset correspondence is taken as the target data volume; the data in the second preset storage area is divided into multiple data packets; the data volume of the data packet is the target data volume; and the multiple data packets are transmitted sequentially through the target communication channel.
[0018] Secondly, this application also discloses a programmable logic controller (PLC)-based energy storage converter control system, comprising: an acquisition device and a processing device; the acquisition device is used to acquire multiple data collected by the energy storage converter; the processing device is used to classify the multiple data into first data and second data according to the values of the multiple data; the transmission priority of the first data is greater than the transmission priority of the second data; the processing device is used to store the first data in a first preset storage area; a preset communication service task scans and sends the data in the first preset storage area at preset intervals; the processing device is used to store the second data in a second preset storage area; the processing device is used to send the data in the second preset storage area according to the start and end times of the execution of each control task in multiple control tasks of the energy storage converter within a preset historical time period before the current time and the current resource utilization rate of the processor of the energy storage converter.
[0019] Beneficial Effects: This application discloses a programmable logic controller (PLC)-based energy storage converter control method. It acquires multiple data points collected by the energy storage converter and classifies them into first data and second data with different transmission priorities based on their values. The first data, with higher transmission priority, is stored in a first preset storage area and scanned and transmitted at fixed preset intervals via preset communication service tasks, ensuring the real-time and deterministic transmission of critical data. The second data is stored in a second preset storage area, and its transmission timing is dynamically evaluated and scheduled based on the start and end times of multiple control tasks of the energy storage converter within a preset historical timeframe prior to the current moment, as well as the current resource utilization rate of the processor.
[0020] Through the above technical solution, this application effectively solves the problem in the prior art where, when an energy storage converter faces severe load shocks, the communication service task excessively consumes processor resources due to a surge in data volume, leading to delays in the execution of core power control tasks and consequently causing power output oscillations. This application addresses this issue by prioritizing data, sending high-priority data (such as alarm information and key status parameters) rapidly through fixed-interval tasks, while combining the transmission of low-priority data (such as routine operating data) with the processor's idle state and the execution status of control tasks. This avoids large-scale data transmission when the processor is busy. This intelligent data scheduling mechanism ensures that the core power control task can be awakened and executed at its predetermined precise time, thereby maintaining the stability of the energy storage converter's support for the power grid, avoiding minor overshoots or lags in power output, and ultimately improving the continuous and stable operation of the production line and product quality. Attached Figure Description
[0021] Figure 1 A flowchart illustrating a control method for an energy storage converter based on a programmable logic controller (PLC) provided in this application; Figure 2 A flowchart illustrating another energy storage converter control method based on a programmable controller provided in this application; Figure 3 A flowchart illustrating another energy storage converter control method based on a programmable controller provided in this application; Figure 4 This application provides a schematic diagram of the architecture of an energy storage converter control system based on a programmable logic controller. Detailed Implementation
[0022] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. The components of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0023] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0024] Traditional energy storage converter control systems, when faced with severe load surges, may experience delays in core power control tasks due to communication service tasks competing for processor resources. This can lead to minute oscillations in power output, affecting grid stability and equipment lifespan. This microsecond-level timing jitter caused by resource contention in the underlying operating system presents a unique challenge that existing fixed-parameter-based control methods struggle to effectively address.
[0025] In this regard, such as Figure 1 As shown, this application proposes a control method for an energy storage converter based on a programmable logic controller (PLC), comprising: S101. Acquire multiple data points collected by the energy storage converter.
[0026] S102. Classify multiple data into first data and second data based on the values of multiple data.
[0027] The transmission priority of the first data is higher than that of the second data.
[0028] S103. Store the first data in the first preset storage area.
[0029] The preset communication service task scans and sends data in the first preset storage area at preset intervals.
[0030] S104. Store the second data in the second preset storage area.
[0031] S105. Based on the start and end times of each control task in the multiple control tasks of the energy storage converter within the preset historical time period before the current time and the current resource utilization rate of the processor of the energy storage converter, the data in the second preset storage area is sent.
[0032] This application classifies and manages the data collected by the energy storage converter and dynamically adjusts the data transmission strategy according to data priority and processor resource status, which effectively alleviates processor resource competition, ensures the real-time performance of core control tasks, and thus improves the operational stability and reliability of the energy storage converter under complex operating conditions.
[0033] To better understand the technical solution proposed in this application, some key terms and implementation environments involved are first explained. An energy storage converter is a power electronic device used to achieve bidirectional energy conversion, playing a crucial role in energy storage and release within the power grid. A programmable logic controller (PLC) is a widely used digital computing and operating electronic system in industrial automation. It internally runs multiple control tasks and communication service tasks, responsible for real-time control and data interaction of the energy storage converter. The processor is the core component of the PLC, responsible for executing various tasks and instructions. Data refers to various parameters collected by the energy storage converter during operation, such as voltage, current, temperature, and power. Transmission priority refers to the order in which different types of data are processed and sent during communication transmission. The preset storage area is the memory space within the PLC used for temporary data storage. The preset communication service task is a service program within the PLC specifically responsible for data communication. The preset interval duration refers to the time period for the preset communication service task to scan and send data. The control task refers to the program module within the PLC used to control the operation of the energy storage converter. Execution start and end times refer to the points in time when a control task begins and ends execution. Current resource utilization refers to the proportion of processor resources currently being used.
[0034] The core of the energy storage converter control method based on programmable controller proposed in this application lies in the intelligent classification and differentiated transmission of data collected by the energy storage converter in order to optimize the utilization of processor resources.
[0035] First, multiple data points need to be acquired from the energy storage converter. This data can be acquired in real time through hardware modules such as sensors and measurement units within the energy storage converter, and transmitted to the programmable controller (PLC) via an internal bus or interface. For example, the PLC can be configured with a data acquisition module that reads analog or digital data such as voltage, current, and temperature from various measurement points of the energy storage converter at a fixed sampling frequency (e.g., once per millisecond). This raw data is then cached for further processing.
[0036] Next, multiple data points are categorized into first data and second data based on their values. First data has a higher transmission priority than second data. For example, a preset normal value range can be set. If a data point exceeds this range, it is considered to have higher urgency or importance and should be classified as first data. Conversely, if the data value is within the normal range, it is classified as second data. Specifically, a judgment module can be set up. This module receives the collected data and makes judgments based on preset thresholds or rules. For example, if a temperature sensor on the energy storage converter detects a temperature value exceeding the safety limit, or a current value exceeds the rated range, these abnormal data points will be marked as first data. Regular operating parameters within the normal operating range, such as stable voltage, current, and power, will be marked as second data. This classification method ensures that critical abnormal data is prioritized.
[0037] Subsequently, the first data is stored in a first preset storage area. A preset communication service task scans and transmits the data in the first preset storage area at preset intervals. The first preset storage area can be a cache or a specific memory area within the programmable controller, used to store high-priority data. The preset communication service task is a resident task that is woken up at fixed time intervals (e.g., every 10 milliseconds) to check if there is data to be transmitted in the first preset storage area. Once data is detected, the task immediately packages it and sends it out through the target communication channel. For example, when an overvoltage alarm occurs in the energy storage converter, the relevant alarm data is classified as first data and stored in the first preset storage area. The preset communication service task quickly detects this data and immediately transmits it to the monitoring center via industrial Ethernet when the next preset interval arrives. This mechanism ensures that emergency data can be reported in a timely manner, avoiding serious consequences that may be caused by data delays.
[0038] Simultaneously, the second data is stored in a second preset storage area. This second preset storage area can be another memory region used to store lower-priority, routine data. For example, routine operating data such as voltage, current, and power of the energy storage converter under normal operating conditions will be continuously collected and stored in the second preset storage area. While this data is not urgent, it is crucial for long-term operational analysis and trend prediction.
[0039] Finally, data in the second preset storage area is sent based on the start and end times of each control task within a preset historical period prior to the current moment, and the current resource utilization of the energy storage converter's processor. This step is the core innovation of this application. Unlike traditional methods that blindly send all data, it intelligently selects an appropriate time to send the second data based on the processor's actual load and the execution status of the control tasks. For example, a scheduling module can be set up to continuously monitor the processor's current resource utilization and record the start and end times of each control task. When the scheduling module determines that the processor resources are sufficient and no critical control tasks are being executed or about to be executed, it triggers the sending of data from the second preset storage area. Specifically, if the processor's current resource utilization is below a certain preset threshold, and no long-running control tasks are found within a preset historical period, or there is sufficient idle time between control tasks, then the scheduling module will allow the data in the second preset storage area to be sent out through the target communication channel. This dynamic scheduling mechanism avoids sending a large amount of low-priority data when the processor is busy, thereby effectively preventing resource conflicts between communication tasks and core control tasks.
[0040] The overall working principle of this application is to solve the resource competition problem between communication tasks and core control tasks in traditional methods by prioritizing and differentiating the data collected by the energy storage converter. When the energy storage converter collects multiple data, these data are first intelligently classified into first data and second data. First data represents urgent or important information and has a higher transmission priority; second data represents routine operating information and has a relatively lower priority. After the first data is stored in the first preset storage area, it is scanned and sent by a high-priority preset communication service task at fixed preset intervals, ensuring real-time reporting of urgent information. Simultaneously, the second data is stored in the second preset storage area. Unlike the fixed transmission mechanism of the first data, the transmission of the second data is dynamically scheduled. The system continuously monitors the start and end times of multiple control tasks of the energy storage converter and the current resource utilization of the processor within a preset historical time period prior to the current moment. Data transmission in the second preset storage area is only triggered when processor resources are sufficient and the core control tasks are unaffected. For example, when the energy storage converter is dealing with severe load shocks, it may generate a large amount of abnormal data (first data) and routine data (second data). The method in this application prioritizes sending abnormal data to ensure timely delivery of alarm information. Regular data is sent only when the processor is idle, preventing data surges at critical moments from preempting processor resources and causing delays in the core power control task. In this way, this application ensures the real-time performance and determinism of the core control task while also guaranteeing the effective transmission of all data, thereby improving the operational stability and reliability of the energy storage converter under complex operating conditions.
[0041] The programmable logic controller (PLC)-based energy storage converter control method proposed in this application has significant advantages and innovations compared to existing technologies. Traditional energy storage converter control systems often employ a uniform communication strategy when processing data uploads, meaning all data is sent via high-priority communication service tasks or at a fixed frequency. This approach can easily lead to resource contention between communication tasks and core power control tasks when processor resources are limited or data volume surges, resulting in execution delays in the core control tasks. Ultimately, this manifests as minor oscillations in the power output of the energy storage converter, affecting grid stability.
[0042] The core innovation of this application lies in the introduction of a data classification and dynamic scheduling transmission mechanism. By dividing data into high-priority "first data" and low-priority "second data," and employing different transmission strategies for these two types of data, the aforementioned problems are effectively solved. Specifically, first data (such as alarm information and abnormal status data) is transmitted preferentially at fixed intervals through preset communication service tasks, ensuring the real-time nature of emergency information. The transmission of second data (such as routine operating parameters) is no longer arbitrary but is intelligently judged and scheduled based on processor resource utilization and the execution status of control tasks. Second data is only transmitted when the processor is relatively idle and will not affect the execution of core control tasks. This dynamic scheduling mechanism avoids sending large amounts of low-priority data when the processor is busy, thus effectively preventing communication tasks from preempting resources from core control tasks. For example, when an energy storage converter is dealing with large load shocks, traditional methods may cause delays in core control tasks due to the uploading of large amounts of routine data, leading to power oscillations. The method in this application prioritizes the execution of core control tasks, postponing the transmission of routine data to processor idle periods. This avoids such oscillations and significantly improves the stability and operational reliability of the energy storage converter in supporting the power grid. This differentiated and intelligent data transmission strategy is not available in existing technologies. While ensuring data integrity, it effectively resolves the contradiction between real-time performance and data transmission in industrial control systems, providing a solid technical guarantee for the stable operation of energy storage converters in complex industrial environments.
[0043] like Figure 2 As shown, this application further proposes the above-mentioned method of classifying multiple data into first data and second data based on the values of multiple data, including: S201. For each data point among multiple data points, determine whether the value of the data point exceeds the preset normal value range.
[0044] S202. If yes, the data is determined as the initial first data; otherwise, the data is determined as the second data.
[0045] S203. Determine whether the amount of the initial first data is greater than the preset data amount threshold. If so, compress the initial first data to obtain the first data. Otherwise, determine the initial first data as the first data.
[0046] Specifically, for each data point, the system determines whether its value exceeds a preset normal range. This preset normal range can be understood as the reasonable range within which various monitored parameters (such as voltage, current, temperature, and power) of the energy storage converter should fall under normal operating conditions. This range is typically preset based on historical operating data, equipment specifications, or industry standards. Its purpose is to quickly identify key data points that may indicate system abnormalities or malfunctions.
[0047] Furthermore, if so, the data is designated as the initial first data; otherwise, it is designated as the second data. The initial first data refers to data whose values exceed the preset normal range. These typically represent potential abnormal states of the system or events requiring urgent attention, and are therefore assigned a higher transmission priority. The second data, on the other hand, refers to data whose values fall within the preset normal range. These typically represent routine system operating status information and have a relatively lower priority. This classification mechanism aims to distinguish between critical abnormal data and routine operating data.
[0048] Furthermore, it is determined whether the initial first data volume exceeds a preset data volume threshold. If so, the initial first data is compressed to obtain the first data; otherwise, the initial first data is designated as the first data. The preset data volume threshold is used to limit the upper limit of the single transmission volume of high-priority data. The purpose of setting this threshold is to ensure the transmission of critical information while avoiding excessive bandwidth consumption due to abnormally large data volumes, which could affect the transmission efficiency of other data. When the initial first data volume is large, compression can effectively reduce the time and bandwidth resources required for transmission. Compression methods can include, but are not limited to, lossless compression algorithms (such as RLE, Huffman coding) or lossy compression algorithms (allowing a certain degree of precision loss), with the aim of reducing the data transmission load while ensuring the integrity of critical information.
[0049] The solution proposed in this application first determines whether the value of each data point collected by the energy storage converter exceeds a preset normal value range, thereby quickly identifying key data that may indicate system anomalies or faults. These data points, identified as initial first data, are given higher transmission priority due to their potential importance. Furthermore, considering that abnormal data may generate a large amount of data instantaneously in certain situations, such as sensor failures or severe system fluctuations, directly transmitting all initial first data could lead to communication channel congestion. Therefore, by determining whether the amount of initial first data exceeds a preset data volume threshold and compressing the data exceeding the threshold, the data transmission load can be effectively reduced while ensuring the integrity of key information. Thus, the compressed or directly determined first data has an optimized data volume, enabling transmission with higher efficiency and lower resource consumption. This ensures that when an anomaly occurs in the energy storage converter, key information can be sent out promptly and reliably, providing timely data support for subsequent fault diagnosis and handling.
[0050] Through the above technical solution, this application enables intelligent classification of data collected by the energy storage converter, ensuring that data with abnormal characteristics or high priority (first data) can be identified and processed in a timely manner. In particular, when the amount of abnormal data is large, the introduction of data volume threshold judgment and data compression mechanisms effectively avoids communication channel congestion caused by large amounts of abnormal data transmission, optimizing data transmission efficiency. This not only improves the real-time performance and reliability of data transmission from the energy storage converter, but also enables faster acquisition of critical information, especially in the event of system failures or abnormal situations, providing strong support for stable system operation and rapid fault response.
[0051] This application further proposes a specific method for sending data in the aforementioned second preset storage area. By finely judging the processor's transmittable state and sending data based on the transmission speed of the target communication channel, the efficiency and reliability of data transmission are ensured.
[0052] like Figure 3 As shown, data in the second preset storage area is sent according to the start and end times of each control task in the multiple control tasks of the energy storage converter and the current resource utilization rate of the processor of the energy storage converter, including: S301. Determine whether the processor is in a transmittable state based on the start and end times of each control task in multiple control tasks and the current resource utilization rate of the processor of the energy storage converter.
[0053] S302. When the processor is in a transmittable state, data in the second preset storage area is transmitted based on the transmission speed of the target communication channel.
[0054] The target communication channel is used to transmit data in the second preset storage area.
[0055] Specifically, determining whether the processor is in a sendable state refers to assessing whether the processor currently has sufficient resources and idle time to execute the second data transmission task without interfering with higher-priority control tasks. The start and end times of multiple control tasks provide the processor's task load information over a historical preset duration, allowing the system to identify potential idle windows for the processor. The processor's current resource utilization directly reflects its current workload, such as CPU usage and memory utilization. By comprehensively considering these two factors, a more accurate determination can be made as to whether the processor is in a suitable state for transmitting the second data.
[0056] Furthermore, when the processor is determined to be in a transmittable state, data in the second preset storage area will be transmitted. At this point, data transmission will be based on the transmission speed of the target communication channel. The target communication channel can be understood as a communication link specifically used for transmitting data in the second preset storage area, such as Ethernet, CAN bus, or other industrial communication protocols. Transmitting data based on its transmission speed means that the system will control the data transmission rate and packet size according to the actual bandwidth capacity of the channel to avoid channel congestion and ensure efficient and stable data transmission.
[0057] This application's solution addresses the ambiguity of the second data transmission timing in the basic scheme by introducing a refined judgment of the processor's transmittable state. Specifically, by analyzing the start and end times of multiple control tasks, the system can identify idle periods outside of critical control tasks, thus avoiding the transmission of second data during peak processor hours and ensuring the real-time performance and stability of control tasks. Simultaneously, by combining the processor's current resource utilization, it can further confirm whether the processor has sufficient computing resources to handle the data transmission task, preventing transmission delays or system performance degradation due to insufficient resources. Therefore, when the processor is determined to be in a transmittable state, it means that the processor has both idle time and sufficient resources. Transmitting second data at this time maximizes the utilization of system resources without negatively impacting core control functions. Furthermore, transmitting data based on the transmission speed of the target communication channel ensures that the data transmission rate matches the channel bandwidth, effectively avoiding communication channel overload and improving data transmission efficiency and reliability.
[0058] Through the above technical solution, this application can significantly optimize the transmission strategy of the second data in the energy storage converter. First, by comprehensively evaluating the start and end times of the control task execution and the processor resource utilization rate, intelligent judgment of the processor's transmittable state is achieved, effectively avoiding the transmission of non-urgent data during critical control task execution or when processor resources are scarce, thereby ensuring the real-time performance and stability of the energy storage converter control system. Second, data transmission is based on the transmission speed of the target communication channel, ensuring the efficiency and reliability of data transmission, avoiding communication channel congestion, and improving data throughput. Therefore, this application achieves effective management and transmission of non-urgent data without affecting the core control functions of the energy storage converter, improving the resource utilization and operating efficiency of the entire system.
[0059] This application further proposes a step for determining whether the processor is in a transmittable state based on the start and end times of each control task in multiple control tasks and the current resource utilization of the processor in the energy storage converter, including: Determine whether the processor's current resource utilization is less than a preset utilization threshold; if so, determine that the processor is in a resource-sufficient state; otherwise, determine that the processor is not in a transmittable state; when the processor is in a resource-sufficient state, determine whether the processor is in a transmittable state based on the start and end times of the execution of each of the multiple control tasks.
[0060] Specifically, determining whether the processor's current resource utilization is less than a preset utilization threshold refers to the system continuously monitoring the real-time load of the energy storage converter's processor. The preset utilization threshold can be set according to the energy storage converter's design requirements and actual operating experience; for example, it can be set to 80% or 90% of the CPU utilization. Its purpose is to first assess, from a macroscopic perspective, whether the processor has sufficient idle resources to handle data transmission tasks, avoiding further burdening the processor when it is already overloaded.
[0061] If the processor's current resource utilization is less than a preset utilization threshold, the processor is determined to be in a resource-sufficient state, indicating that the processor currently has the ability to execute additional tasks. Conversely, if it is not less than the preset utilization threshold, the processor is determined not to be in a transmittable state. In this case, the second data transmission should be paused or delayed to ensure the normal execution of the core control tasks.
[0062] In practical applications, even when the processor has sufficient resources, it's necessary to further determine whether the processor is in a transmit-ready state based on the start and end times of each of the multiple control tasks. This means that even if the processor's overall resources are sufficient, it's still necessary to consider whether there are critical control tasks being executed or about to be executed, to avoid data transmission conflicts with these tasks. The start and end times of the control tasks can be obtained from the programmable logic controller (PLC)'s task scheduling table to accurately determine the active time periods of the tasks.
[0063] This application's solution introduces a hierarchical judgment mechanism, first assessing the overall resource utilization of the processor. When the processor's current resource utilization is below a preset utilization threshold, it indicates that the processor has the capability to handle additional data transmission tasks, thus avoiding blindly transmitting data when processor resources are scarce and effectively reducing the risk of system overload. Based on this, the start and end times of multiple control tasks are further used to determine whether the processor is in a transmittable state, ensuring that even with sufficient resources, data transmission will not interfere with the core control tasks of the energy storage converter. This two-stage judgment method makes the second data transmission decision more intelligent and secure, better balancing data transmission needs and system stability requirements.
[0064] The above technical solution effectively avoids the transmission of secondary data during periods of low processor resources or critical control task execution in the energy storage converter, significantly improving the stability and reliability of the energy storage converter control system. By prioritizing the execution of core control tasks, this solution reduces the impact of data transmission on system real-time performance, thereby ensuring precise control and safe operation of the energy storage converter under various operating conditions. Furthermore, this hierarchical judgment mechanism optimizes the utilization efficiency of processor resources, enabling the effective transmission of non-critical data without affecting system performance.
[0065] This application further proposes a method for determining whether a processor is in a transmittable state, comprising: determining the execution duration of each control task based on the start and end times of each control task; determining whether there is a control task among multiple control tasks whose execution duration is greater than a preset execution duration threshold; if so, determining that the processor is in a non-transmittable state; otherwise, determining that the processor is in a transmittable state.
[0066] Specifically, determining the execution duration of each control task based on its start and end times involves recording or calculating the time interval from the start to the end of each task to obtain the actual amount of processor resources occupied by that task. For example, the start and end times of each control task can be precisely measured using a system clock or timer, and the difference between them can be calculated. Determining whether any of the multiple control tasks has an execution duration exceeding a preset threshold involves comparing the determined execution duration of each control task with a pre-set threshold. This preset threshold can be set based on the specific application scenario of the energy storage converter control system, the criticality of the control tasks, and real-time requirements. For example, for control tasks with extremely high real-time requirements, the execution duration threshold may be set shorter to ensure no additional interference during their execution.
[0067] In practical applications, if a control task's execution time exceeds a preset threshold, the processor is determined to be in a non-transferable state; otherwise, it is determined to be in a transferable state. This means that if any control task's execution time is detected to be excessively long, exceeding the system's acceptable range, even if current processor resources are sufficient, the system will consider the processor unsuitable for second data transmission to avoid any potential negative impact on the critical control task. Conversely, if the execution times of all control tasks are within acceptable limits, the processor is considered safe to perform second data transmission.
[0068] This application's solution addresses the risk of blindly transmitting second data when processor resources are sufficient but long-running control tasks exist, by introducing a judgment on the execution duration of control tasks. Specifically, by accurately calculating the execution duration of each control task and comparing it with a preset execution duration threshold, critical tasks that may occupy processor resources for extended periods can be identified. This meticulous consideration of task execution duration allows the system to more intelligently schedule the transmission of second data while ensuring the stable operation of control tasks. When long-running control tasks exist, the system proactively avoids transmitting second data, effectively preventing processor load fluctuations or delays caused by data transmission and ensuring the real-time performance and reliability of the energy storage converter control system.
[0069] Through the above technical solution, this application can more precisely evaluate the actual availability of the processor under resource-sufficient conditions. By determining whether there are control tasks with execution durations exceeding a preset threshold, second data transmission can be effectively avoided during the execution of critical, long-running control tasks, thereby significantly reducing the potential interference of second data transmission on the real-time performance, stability, and accuracy of the control tasks. This not only optimizes the processor resource scheduling strategy, ensuring that the core functions of the energy storage converter control system are not affected, but also improves the overall system reliability and data transmission security, enabling the second data to be sent efficiently without affecting the system's critical performance.
[0070] This application further proposes a method for determining whether the processor is in a sendable state based on the start and end times of each of the multiple control tasks when the processor is in a resource-sufficient state, specifically including: For each of the multiple control tasks, the execution end time of the control task and the start time of the next control task are taken as the execution duration of the non-control task. It is determined whether the execution durations of multiple non-control tasks are all greater than a preset first duration threshold. If not, it is determined that the processor is not in a transmittable state. If yes, it is determined whether the processor is currently executing a control task. If yes, it is determined that the processor is not in a transmittable state. Otherwise, it is determined whether the duration between the end time of the last control task executed by the processor and the current time is less than the preset first duration threshold. If yes, it is determined that the processor is in a transmittable state. Otherwise, it is determined that the processor is not in a transmittable state.
[0071] Specifically, the aforementioned "non-control task execution duration" refers to the period of time during which the processor is idle between two consecutive control tasks. For example, when there is a time interval between the end of one control task and the start of the next, this time interval is considered the non-control task execution duration. Its purpose is to identify the available time window for the processor outside of executing critical control tasks.
[0072] The "preset first duration threshold" can be understood as the shortest continuous idle time required to send data to the second preset storage area. By determining whether the execution time of all non-control tasks is greater than this threshold, it can be ensured that once the decision to send data is made, the processor has enough time to complete the data transmission without being interrupted by an upcoming control task.
[0073] In practical applications, determining whether the processor is currently executing a control task is to avoid initiating a data transmission task when the processor is busy processing critical control logic, thereby preventing negative impacts on the real-time control performance of the energy storage converter.
[0074] Furthermore, determining whether the time between the end time of the last control task executed by the processor and the current time is less than a preset first time threshold aims to capture the immediate idle state when the processor has just completed a control task and no new control tasks are started in a short period of time. If this idle time is sufficient, data can be sent immediately using this window, improving the timeliness of data transmission.
[0075] This application's solution more accurately determines whether the processor is in a transmittable state by finely evaluating the idle time of the processor between control task execution intervals and combining it with the processor's current real-time operating status. Specifically, firstly, by calculating the "non-control task execution duration," the system can identify the actual idle time period of the processor between consecutive control tasks. Secondly, these idle durations are compared with a "preset first duration threshold" to ensure that the identified idle time window is sufficient to support the effective transmission of data in the second preset storage area, avoiding transmission interruptions or inefficiencies due to excessively short idle time. Furthermore, by determining in real time whether the processor is currently executing a control task, this solution can effectively avoid initiating data transmission during the execution of critical control tasks, thereby ensuring the real-time performance and stability of the energy storage converter control. Finally, by checking the "duration between the end time of the last control task executed by the processor and the current time," this solution can capture the immediate idle window after the processor has just completed a control task, thereby achieving more flexible and full utilization of processor resources, enabling data in the second preset storage area to be transmitted in a timely and effective manner without affecting the core control functions.
[0076] Through the above technical solution, this application can more accurately assess the real-time availability of the energy storage converter processor, thereby maximizing the utilization of the processor's idle resources during control task intervals without interfering with critical control tasks. This not only improves the efficiency and timeliness of data transmission in the second preset storage area, effectively avoiding data backlog, but also significantly reduces the impact of data transmission on the core control functions of the energy storage converter, enhancing the stability and reliability of the system. Compared to a rough judgment based solely on task execution duration or resource utilization, this solution introduces judgments on non-control task execution duration and real-time task status, making the data transmission strategy more intelligent and adaptive, thereby optimizing the performance of the entire energy storage converter control system.
[0077] In some embodiments of this application described above, after determining that the processor is not in a sendable state when the execution times of multiple non-control tasks are not uniformly greater than a preset first duration threshold, the method further includes: Determine whether the available capacity of the second preset storage area is less than the preset capacity threshold; if so, during the idle time of the production system corresponding to the energy storage converter, send the data in the second preset storage area based on the transmission speed of the target communication channel.
[0078] Traditional energy storage converter control methods, when determining whether the processor is in a transmittable state based on the start and end times of control tasks and processor resource utilization, aim to avoid data transmission interfering with critical control tasks. However, in some situations, if the processor remains in an intransmittable state for an extended period, such as due to non-control task execution times exceeding a preset first duration threshold, while the available capacity of the second preset storage area continuously decreases, the second data may not be transmitted in a timely manner, potentially leading to data overflow or loss. Without addressing this issue, the energy storage converter system may face the risk of losing important historical or diagnostic data, affecting the system's long-term operational analysis and fault diagnosis capabilities. To address this, this application proposes an optimized scheme that ensures the transmission of the second data even when the processor is not in a transmittable state under specific emergency conditions.
[0079] Specifically, when the processor is determined to be in a non-transmittable state according to the above scheme, this application further introduces monitoring of the available capacity of a second preset storage area. The second preset storage area is used to store second data with lower transmission priority. Available capacity refers to the remaining space in the storage area currently available for data storage. The preset capacity threshold is a pre-set lower limit; when the available capacity of the second preset storage area falls below this threshold, it indicates that the storage area is about to be saturated, posing a risk of data overflow. This threshold can be flexibly configured according to actual application needs, data generation rate, and data importance, for example, it can be set to 10% or 20% of the total capacity.
[0080] Furthermore, if the determination result indicates that the available capacity of the second preset storage area is less than a preset capacity threshold, the system will trigger an emergency transmission mechanism. In this case, data transmission no longer strictly follows the judgment of whether the processor is in a transmittable state, but instead selects to transmit data during the idle time of the production system corresponding to the energy storage converter. The idle time of the production system refers to the time period outside of the energy storage converter system performing its core production or control tasks, such as during periods of low load, system maintenance windows, or specific scheduling gaps. Selecting to transmit during these idle times aims to minimize the impact on the core functions of the energy storage converter while ensuring timely transmission of the second data and avoiding storage area overflow. Data transmission will still be based on the transmission speed of the target communication channel to ensure transmission efficiency.
[0081] This application's solution addresses the issue of potential data loss due to storage overflow when the processor is not in a transmittable state for extended periods due to uneven execution of non-control tasks. By introducing a judgment on the available capacity of the second preset storage area, it resolves this problem. When the available capacity of the second preset storage area falls below a preset capacity threshold, it indicates increased storage pressure. At this point, even if the processor is not in a normally transmittable state, the system will initiate an emergency transmission strategy. This strategy utilizes the idle time of the production system corresponding to the energy storage converter for data transmission, thereby avoiding conflicts with critical control tasks and ensuring timely transmission of the second data when the storage area is about to saturate. This mechanism ensures that even when regular scheduling cannot meet data transmission demands, the integrity and reliability of the data can still be guaranteed by utilizing idle system resources.
[0082] By employing the aforementioned technical solution, this application effectively avoids the risk of data overflow or loss in the second preset storage area when the processor is unable to send second data due to conventional scheduling limitations. This solution improves the robustness and reliability of second data transmission while ensuring that the core control tasks of the energy storage converter are not interfered with. Especially under high system load or intensive control tasks, it can flexibly cope with storage pressure and ensure the integrity of all collected data. Consequently, the data management capabilities of the energy storage converter system are significantly enhanced, providing a more comprehensive and reliable data foundation for subsequent data analysis, fault diagnosis, and system optimization.
[0083] This application further proposes that, after the processor is currently performing a control task and it is determined that the processor is not in a transmittable state, the method also includes: When the currently executing control task is completed, within a preset first duration threshold, data in the second preset storage area is transmitted based on the transmission speed of the target communication channel.
[0084] Specifically, "when the currently executing control task is completed" means that the system detects that the currently running control task has completed all its operations and released the processor resources it occupied. At this time, the processor may be in a relatively idle state temporarily, or there may be a brief gap before the next critical task begins. The "preset first duration threshold" can be understood as the maximum time window during which the system allows data transmission after the control task is completed. Its purpose is to ensure that data transmission operations do not interfere with subsequent critical control tasks, while also taking advantage of the processor's brief idle period for data transmission. In practical applications, this preset first duration threshold can be flexibly configured according to factors such as the actual operating load of the energy storage converter, the density of control tasks, and the urgency of data transmission; for example, it can be set to tens to hundreds of milliseconds.
[0085] The solution proposed in this application solves the problem of data transmission being completely blocked during the processor's execution of control tasks by immediately sending data from a second preset storage area within a short idle window of a preset first duration threshold after the processor completes the current control task. Because processor resources are released after the control task is completed, and data transmission occurs within the preset first duration threshold, the system can effectively utilize processor resources without affecting the execution of critical control tasks, preventing the accumulation of second data due to prolonged waiting and thus improving the timeliness of second data transmission.
[0086] Through the above technical solution, even when the processor is determined to be in an untransmittable state due to executing a control task, it can still seize the brief idle window of the processor after the control task is completed and promptly send data from the second preset storage area. This significantly improves the data transmission efficiency and response speed of the energy storage converter, especially for second data that, although lower in priority than the first data, still requires a certain degree of timeliness. It avoids data backlog or information delays caused by long waiting times, thereby optimizing the overall system's operation monitoring and fault diagnosis capabilities.
[0087] This application further proposes a method for transmitting data in the second preset storage area based on the transmission speed of the target communication channel, which includes: Obtain a first preset correspondence; the first preset correspondence includes a one-to-one correspondence between multiple transmission speed ranges and multiple data volumes; take the data volume corresponding to the transmission speed range of the target communication channel in the first preset correspondence as the target data volume; divide the data in the second preset storage area into multiple data packets; the data volume of the data packets is the target data volume; transmit the multiple data packets sequentially through the target communication channel.
[0088] Specifically, the first preset mapping relationship can be understood as a pre-established mapping table or rule set, designed to optimize the size of data packets based on the actual transmission capacity of the target communication channel. In this mapping relationship, different transmission speed ranges are associated with different data volumes. For example, when the transmission speed is low, the corresponding data volume is small to avoid channel overload; when the transmission speed is high, the corresponding data volume is large to improve transmission efficiency. This first preset mapping relationship can be configured and stored during system initialization based on the specifications of the communication hardware, network environment test results, or empirical values.
[0089] Specifically, using the data volume corresponding to the transmission speed range of the target communication channel in the first preset correspondence as the target data volume means that before data transmission, the system first detects or obtains the actual transmission speed of the current target communication channel. Then, based on the established first preset correspondence, it finds the specific transmission speed range that the transmission speed falls into and extracts the data volume corresponding to that range as the target data packet size for this data transmission. For example, if the transmission speed of the target communication channel is 10Mbps, and the first preset correspondence specifies that the data volume corresponding to the "5Mbps-15Mbps" range is 1KB, then the target data volume is determined to be 1KB.
[0090] In practical applications, the data in the second preset storage area is divided into multiple data packets, with the data size of each packet being the target data size. The purpose is to segment all the second data to be sent according to the predetermined target data size. This segmentation method ensures that the size of each data packet matches the current transmission capacity of the target communication channel, thereby avoiding the transmission of excessively large or small data blocks and improving transmission adaptability. For example, if the second preset storage area contains 10KB of data, and the target data size is 1KB, then this data will be divided into 10 1KB data packets.
[0091] Furthermore, transmitting multiple data packets sequentially through the target communication channel means that after the data is effectively divided into multiple data packets of the target data size, these data packets are sent one by one through the target communication channel in a certain order. This sequential transmission method helps maintain the stability and continuity of the data stream and facilitates data reassembly and verification at the receiving end.
[0092] The proposed solution introduces a first preset correspondence and dynamically determines the target data volume based on the transmission speed of the target communication channel, thereby dividing the data in the second preset storage area into appropriately sized data packets for transmission. This refined data packet management ensures that data transmission can fully adapt to the current transmission capacity of the target communication channel. When the processor is in a transmittable state, the system no longer simply sends data but adjusts the data packet size according to the channel speed, avoiding transmission failure or retransmission due to excessively large data packets, and also avoiding low transmission efficiency caused by excessively small data packets. This mechanism ensures that the second data can be transmitted in an optimized manner with limited communication resources, effectively solving the transmission efficiency and stability problems that may exist in the basic solution.
[0093] Through the above technical solution, this application can dynamically adjust the size of data packets according to the actual transmission speed of the target communication channel, thereby achieving adaptive and efficient transmission of the second data. This significantly improves the efficiency and stability of data transmission, especially when network bandwidth fluctuates or when a large amount of non-urgent data needs to be transmitted, enabling better utilization of communication resources and reducing transmission delays and error rates. Compared to the basic solution that only sends data based on transmission speed, this application, through refined data packet division and management, makes the data transmission process more intelligent and robust, effectively avoiding transmission bottlenecks or resource waste caused by the mismatch between data volume and channel capacity.
[0094] This application also discloses a programmable logic controller (PLC)-based energy storage converter control system, comprising: an acquisition device and a processing device; the acquisition device is used to acquire multiple data collected by the energy storage converter; the processing device is used to classify the multiple data into first data and second data according to the values of the multiple data; the transmission priority of the first data is greater than the transmission priority of the second data; the processing device is used to store the first data in a first preset storage area; a preset communication service task scans and sends the data in the first preset storage area at preset intervals; the processing device is used to store the second data in a second preset storage area; the processing device is used to send the data in the second preset storage area according to the start and end times of each control task in the multiple control tasks of the energy storage converter within a preset historical time period before the current time and the current resource utilization rate of the processor of the energy storage converter.
[0095] The specific process of the energy storage converter acquiring multiple data points has been described in the above embodiments and will not be repeated here. It should be emphasized that the acquisition device in this application can be understood as a hardware module or software component responsible for data acquisition within a programmable controller. Specifically, the acquisition device may include, but is not limited to, analog input modules, digital input modules, serial communication interface modules, etc. These modules are directly connected to sensors and measurement units inside the energy storage converter to read operating parameters such as voltage, current, temperature, frequency, and power in real time. For example, the acquisition device can be a high-speed data acquisition card configured on the programmable controller. This acquisition card can synchronously acquire data from multiple analog input channels at a preset sampling frequency (e.g., once per millisecond) and transmit this raw data to a processing device for subsequent processing via an internal bus. As an alternative, the acquisition device can also periodically read data from intelligent sensors or sub-controllers inside the energy storage converter via standard industrial communication protocols (such as ModbusTCP, EtherNet / IP, etc.).
[0096] The above embodiments have described the specific process by which the processing device classifies multiple data into first data and second data based on the values of multiple data, stores the first data in a first preset storage area, scans and sends the data in the first preset storage area at preset intervals through a preset communication service task, stores the second data in a second preset storage area, and sends the data in the second preset storage area according to the start and end times of each control task in the multiple control tasks of the energy storage converter within a preset historical time period before the current time and the current resource utilization rate of the processor of the energy storage converter. These details will not be repeated here.
[0097] It is important to emphasize that the processing device in this application can be understood as a collection of the central processing unit (CPU) of a programmable controller and the software program modules running on it. Specifically, the processing device may include: a data classification module, a first data storage and transmission module, a second data storage module, and a data transmission scheduling module. The data classification module is responsible for receiving data collected by the acquisition device and classifying it into first data or second data according to preset classification rules (e.g., whether it exceeds the normal value range). The first data storage and transmission module is responsible for storing the first data in a first preset storage area and coordinating preset communication service tasks to scan and transmit these data at preset intervals. The second data storage module is responsible for storing the second data in a second preset storage area. The data transmission scheduling module is one of the core components of the processing device. It continuously monitors the current resource utilization of the processor and the start and end times of the execution of each control task, and intelligently determines when it is safe to transmit data in the second preset storage area to avoid resource conflicts with the core control tasks. For example, the processing device may be a high-performance industrial-grade CPU running a real-time operating system (RTOS) and deploying the aforementioned software modules. These modules collaborate efficiently through mechanisms such as shared memory and message queues to achieve intelligent data processing and transmission. As a preferred implementation, some functions of the processing device, such as data classification or data compression, can also be implemented using dedicated hardware accelerators (such as FPGAs or ASICs) to further improve processing efficiency and real-time performance.
[0098] The above are merely embodiments of this application and are not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A control method for an energy storage converter based on a programmable logic controller (PLC), characterized in that, include: Acquire multiple data points collected by the energy storage converter; Classify multiple data points into first data and second data based on their values; The transmission priority of the first data is higher than that of the second data; The first data is stored in the first preset storage area; A preset communication service task scans and sends data in the first preset storage area at preset intervals; The second data is stored in a second preset storage area; Data in the second preset storage area is sent based on the start and end times of each control task in the multiple control tasks of the energy storage converter within a preset historical time period prior to the current time and the current resource utilization rate of the processor of the energy storage converter.
2. The energy storage converter control method based on a programmable controller according to claim 1, characterized in that, Based on the values of multiple data points, classify them into first data and second data, including: For each data point in a dataset, determine whether the value of that data point exceeds a preset normal value range; If so, the data is determined as the initial first data; otherwise, the data is determined as the second data. Determine whether the amount of the initial first data is greater than a preset data amount threshold. If so, compress the initial first data to obtain the first data; otherwise, determine the initial first data as the first data.
3. The energy storage converter control method based on a programmable controller according to claim 1, characterized in that, Based on the start and end times of each control task in the multiple control tasks of the energy storage converter within a preset historical time period prior to the current time, and the current resource utilization rate of the processor of the energy storage converter, data in the second preset storage area is sent, including: Whether the processor is in a transmittable state is determined based on the start and end times of each control task in the multiple control tasks and the current resource utilization rate of the processor of the energy storage converter. When the processor is in a transmittable state, data in the second preset storage area is transmitted based on the transmission speed of the target communication channel; the target communication channel is used to transmit data in the second preset storage area.
4. The energy storage converter control method based on a programmable controller according to claim 3, characterized in that, Determining whether the processor is in a transmittable state based on the start and end times of each control task in multiple control tasks and the current resource utilization of the processor of the energy storage converter includes: Determine whether the current resource utilization rate of the processor is less than a preset utilization rate threshold; If so, determine that the processor is in a resource-sufficient state; otherwise, determine that the processor is not in a sendable state. When the processor is in a resource-sufficient state, it is determined whether the processor is in a sendable state based on the start and end times of the execution of each of the multiple control tasks.
5. The energy storage converter control method based on a programmable controller according to claim 4, characterized in that, When the processor is in a resource-sufficient state, determining whether the processor is in a sendable state based on the start and end times of each of the multiple control tasks includes: The execution duration of each control task is determined based on its start and end times. Determine whether there are any control tasks among multiple control tasks whose execution time exceeds a preset execution time threshold; If yes, determine that the processor is in a non-transmittable state; otherwise, determine that the processor is in a transmittable state.
6. The energy storage converter control method based on a programmable controller according to claim 4, characterized in that, When the processor is in a resource-sufficient state, determining whether the processor is in a sendable state based on the start and end times of each of the multiple control tasks includes: For each of the multiple control tasks, the execution end time of the control task and the execution start time of the next control task are used as the execution duration of the non-control task. Determine whether the execution time of multiple non-control tasks is greater than a preset first time threshold. If not, determine that the processor is not in a transmittable state; if yes, determine whether the processor is currently executing a control task. If so, determine that the processor is not in a transmittable state; otherwise, determine whether the duration between the end time of the last control task executed by the processor and the current time is less than a preset first duration threshold. If yes, determine that the processor is in a transmittable state; otherwise, determine that the processor is not in a transmittable state.
7. The energy storage converter control method based on a programmable controller according to claim 6, characterized in that, After determining that the processor is not in a sendable state when the execution times of multiple non-control tasks are not uniformly greater than a preset first time threshold, the method further includes: Determine whether the available capacity of the second preset storage area is less than a preset capacity threshold; If so, during the idle time of the production system corresponding to the energy storage converter, data in the second preset storage area is sent based on the transmission speed of the target communication channel.
8. The energy storage converter control method based on a programmable controller according to claim 6, characterized in that, After determining that the processor is not in a transmittable state while the processor is currently performing a control task, the method further includes: When the currently executing control task is completed; Within a preset first duration threshold, data in the second preset storage area is transmitted based on the transmission speed of the target communication channel.
9. The energy storage converter control method based on a programmable controller according to claim 3, characterized in that, Data in the second preset storage area is transmitted based on the transmission speed of the target communication channel, including: Obtain a first preset correspondence; the first preset correspondence includes a one-to-one correspondence between multiple transmission speed ranges and multiple data volumes; The amount of data corresponding to the transmission speed range of the target communication channel in the first preset correspondence is taken as the target data amount; The data in the second preset storage area is divided into multiple data packets; the data volume of each data packet is the target data volume. The multiple data packets are transmitted sequentially through the target communication channel.
10. A control system for an energy storage converter based on a programmable logic controller (PLC), characterized in that, include: Acquisition device and processing device; The acquisition device is used to acquire multiple data collected by the energy storage converter; The processing device is used to classify multiple data into first data and second data according to the values of multiple data; the transmission priority of the first data is greater than the transmission priority of the second data. The processing device is used to store the first data into a first preset storage area; A preset communication service task scans and sends data in the first preset storage area at preset intervals; The processing device is used to store the second data into a second preset storage area; The processing device is used to send data in the second preset storage area according to the start and end times of the execution of each control task in the multiple control tasks of the energy storage converter within a preset historical time period before the current time and the current resource utilization rate of the processor of the energy storage converter.