Industrial process control method and device based on communication time delay
By obtaining and processing production data and communication time delay data in the industrial process control system, calculating the status evaluation score and priority coefficient of the control instructions, optimizing the sorting and execution order of the scheduling queue, the misjudgment problem caused by communication time delay is solved, and the stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202510192742.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-21
- Publication Date
- 2025-05-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the industrial process, communication time lags occur in data transmission between sensors, servers, and servers and on-site equipment, resulting in misjudgment of emergency commands and ordinary commands, and insufficient system stability and reliability.
By obtaining production data and communication time delay data, preprocessing and updating, inputting it into the preset state evaluation model to calculate the state evaluation score, and obtaining the priority coefficient of the control instructions, calculating the comprehensive evaluation score through the comprehensive evaluation model, and sorting and allocating the scheduling queues based on this score to ensure that key control instructions are executed first.
It effectively solves the impact of communication delay on control instructions, optimizes the execution order of control instructions, avoids misjudgment of instructions, and improves the system's data security and stability.
Smart Images

Figure CN120017696A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an industrial process control method and device based on communication time lag. Background Art
[0002] At present, with the rapid development of emerging technologies such as the Internet of Things, cloud computing, and big data, industrial production automation, intelligence, and networking have become a development trend. Distributed control systems are widely used in factories to achieve unified scheduling. Under the current wave of Industry 4.0, the rapid development of emerging technologies such as the Internet of Things (IoT), cloud computing, and big data has brought profound changes to the traditional manufacturing industry. Industrial production has gradually become automated, intelligent, and networked, and distributed control systems have increasingly become the core of factory management.
[0003] In one existing technology, an estimation method is mainly used, whereby sensors in an industrial system upload collected environmental data to a control system in the form of analog signals or digital signals through different communication protocols on the sensors, and the control system transmits the information to a server through industrial Ethernet.
[0004] In the prior art, since data transmission between sensors, between servers, and between servers and field equipment often results in communication delays, and inevitably misjudgments between emergency commands and ordinary commands, there is a problem of insufficient system stability and reliability. Summary of the invention
[0005] The present invention provides an industrial process control method and device based on communication time delay, which can solve the problem of insufficient system stability and reliability due to frequent communication time delay in data transmission between sensors, between servers, and between servers and field equipment, and the inevitable misjudgment of emergency commands and ordinary commands.
[0006] In a first aspect, in order to solve the above technical problems, the present invention provides an industrial process control method based on communication time delay, comprising: Acquire production data and communication time delay data, wherein the production data includes control time delay, process time delay and status data, and the communication time delay data includes transmission time and delay time of the communication time delay; Preprocessing and updating the production data to obtain the latest system status; Inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction; Obtaining a priority coefficient of the current control instruction in a ready scheduling queue, wherein the ready scheduling queue is a sequence of the current control instructions stored in the system; The state evaluation score and the priority coefficient are calculated by using a preset comprehensive evaluation model to obtain a comprehensive evaluation score; Based on the comprehensive evaluation score, a sequence number is assigned to the ready-to-schedule queue to obtain a corresponding scheduling queue sequence number; Searching the key control instruction corresponding to the scheduling queue sequence number in the ready scheduling queue, judging whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, adding the key control instruction to the ready scheduling queue, updating the ready scheduling queue to obtain the latest scheduling queue, and performing industrial process control according to the latest scheduling queue; The execution condition refers to that the execution time of the current control instruction is greater than the maximum execution time of the key control instruction, and the ready scheduling queue is a sequence of key control instructions stored in the system.
[0007] In an optional implementation manner, the preprocessing and updating according to the production data to obtain the latest system status includes: Performing repair processing and filtering and noise reduction processing on the production data to obtain processed data; Obtain the output of the production process; The processed data is used as a variable and the output of the production process is used as a dependent variable to calculate and obtain the control parameters under the current control state; According to the control parameters, the current system state is updated to obtain the latest system state.
[0008] In an optional implementation manner, obtaining the output of the production process includes: Perform sampling analysis according to the current control instruction to obtain the control state of the current control instruction; The control state of the current control instruction is evaluated and analyzed to obtain the output of the production process.
[0009] In an optional implementation, the state evaluation score and the priority coefficient are calculated by a preset comprehensive evaluation model to obtain a comprehensive evaluation score, including: The comprehensive evaluation score is calculated using the following formula: F(k) = f(ts + td) * ck Among them, F(k) is the comprehensive evaluation score, f(ts + td) represents the status evaluation score of the current control instruction, ck represents the priority coefficient of the current control instruction, ts represents the starting sending time of the communication delay, and td represents the communication delay time.
[0010] In an optional embodiment, the method further includes: The status evaluation score of the current control instruction is calculated using the following formula: f(ts) = w0 + w1* ts Among them, f(ts) is the state evaluation score of the current control instruction, w0 represents the basic score when the current control instruction is not generated, and w1 represents the weight score for each increase of ts milliseconds after the current control instruction is generated.
[0011] In an optional implementation, assigning a sequence number to the ready scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number includes: Initializing the ready scheduling queue, setting all state values of the current control instructions of the ready scheduling queue to 0, and obtaining a first scheduling queue; According to the first scheduling queue, the current control instructions in the first scheduling queue are numbered starting from 1, and are accumulated one by one until a maximum control instruction is reached, to obtain a second scheduling queue; According to the comprehensive evaluation score of each current control instruction, comparison and arrangement are performed from the second scheduling queue to obtain the corresponding scheduling queue number.
[0012] In an optional implementation, the obtaining of the priority coefficient of the current control instruction in the ready scheduling queue, wherein the ready scheduling queue is the current control instruction sequence stored in the system, includes: The priority coefficient of the current control instruction is calculated by the following formula: ck = Pmax / Psum Among them, ck is the priority coefficient of the current control instruction, Pmax is the highest priority among all current control instructions in the (ts + td) time window, and Psum is the sum of the priorities of all current control instructions in the (ts + td) time window.
[0013] In a second aspect, the present invention provides an industrial process control device based on communication time delay, comprising: A data acquisition module, used to acquire production data and communication time delay data, wherein the production data includes control time delay, process time delay and status data, and the communication time delay data includes the sending time and delay time of the communication time delay; A data processing module, used to pre-process and update the production data to obtain the latest system status; A state evaluation module, used for inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction; A coefficient calculation module, used to obtain the priority coefficient of the current control instruction in the ready scheduling queue, wherein the ready scheduling queue is the current control instruction sequence stored in the system; A comprehensive evaluation module, used to calculate the state evaluation score and the priority coefficient through a preset comprehensive evaluation model to obtain a comprehensive evaluation score; A sequence number acquisition module, used to assign a sequence number to the prepared scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number; A queue acquisition module is used to search the key control instruction corresponding to the scheduling queue number in the ready scheduling queue, determine whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, add the key control instruction to the ready scheduling queue, update the ready scheduling queue, obtain the latest scheduling queue, and perform industrial process control according to the latest scheduling queue.
[0014] In a third aspect, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the industrial process control method based on communication time delay as described above is implemented.
[0015] In a fourth aspect, the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned industrial process control methods based on communication time delay.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention discloses an industrial process control method based on communication time lag, comprising the steps of acquiring production data and communication time lag data, preprocessing and updating according to the production data to obtain the latest system state, inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, acquiring a priority coefficient of the current control instruction in a ready scheduling queue, calculating the state evaluation score and the priority coefficient through a preset comprehensive evaluation model to obtain a comprehensive evaluation score; assigning a sequence number to the ready scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number, searching for a key control instruction corresponding to the scheduling queue sequence number in the ready scheduling queue, judging whether the key control instruction meets an execution condition, adding the key control instruction to a ready scheduling queue when the key control instruction meets the execution condition, updating the ready scheduling queue to obtain a latest scheduling queue, and performing industrial process control according to the latest scheduling queue. Compared with the existing technology, which mainly uses estimation methods, sensors in industrial systems upload the collected environmental data to the control system in the form of analog signals or digital signals through different communication protocols on the sensors, and the control system transmits the information to the server through industrial Ethernet.
[0017] The present invention takes into account the influence of time delay on different types of control instructions through an industrial process control method based on communication time delay, which is more representative and targeted, and improves the reliability of control accuracy under time delay state. In addition, a control instruction priority coefficient is introduced, and the priority of the control instruction is dynamically adjusted according to the time delay situation, thereby avoiding the influence of time delay on the control instruction, optimizing the execution order of the control instruction, and avoiding the situation of misjudgment of instructions. A scheduling queue generation mechanism based on a comprehensive evaluation score is also designed to ensure that key control instructions are executed first, thereby improving data security and stability. Therefore, the present invention can solve the problem that communication time delay often occurs in data transmission between sensors, between servers, and between servers and field devices, and inevitably misjudgment occurs between emergency commands and ordinary commands, and there is a problem of insufficient system stability and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a flow chart of an industrial process control method based on communication time delay provided by the first embodiment of the present invention; Figure 2 It is a structural schematic diagram of a system data sending device provided by the present invention; Figure 3 is a schematic structural diagram of an industrial process control device based on communication time delay provided by a second embodiment of the present invention; Figure 4 It is a schematic diagram of a flow chart of obtaining the latest system status provided by the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Reference Figure 1 The first embodiment of the present invention provides an industrial process control method based on communication time delay, comprising the following steps: S11, acquiring production data and communication time delay data, wherein the production data includes control time delay, process time delay and status data, and the communication time delay data includes sending time and delay time of the communication time delay; S12, preprocessing and updating according to the production data to obtain the latest system status; S13, inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction; S14, obtaining the priority coefficient of the current control instruction in the ready-to-schedule queue; S15, calculating the state evaluation score and the priority coefficient by using a preset comprehensive evaluation model to obtain a comprehensive evaluation score; S16, assigning a sequence number to the prepared scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number; S17, searching the ready scheduling queue for the key control instruction corresponding to the scheduling queue sequence number, judging whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, adding the key control instruction to the ready scheduling queue, updating the ready scheduling queue to obtain the latest scheduling queue, and performing industrial process control according to the latest scheduling queue; In step S11, production data and communication time lag data are acquired, wherein the production data includes control time lag, process time lag and status data, and the communication time lag data includes the sending time and delay time of the communication time lag.
[0021] In the industrial production process, production data is collected through various sensors and equipment. These production data not only include specific physical quantities (such as temperature, pressure, current, etc.), but also involve state data and various types of time-delay data in the process flow. Among them, control time lag refers to the time interval between issuing a control instruction and executing the instruction. The generation of control time lag will be affected by factors such as the computing power of the system, the response speed of the actuator, and changes in the external environment. Process time lag refers to the response delay caused by equipment or process characteristics during the production process. For example, a temperature sensor needs a certain amount of time to adjust the output of the heating device after detecting a temperature change. State data is data obtained from the sensor in real time, including but not limited to voltage, current, temperature, pressure, speed, gas concentration, liquid level, etc. These measurements will be used to describe important indicators of production status.
[0022] In industrial control systems, information will be delayed during transmission from the sender to the receiver. The delays include the sending time and the delay time. The sending time refers to the specific time when the data packet is sent. When the data is sent, the timestamp is set by code or hardware to record the sending time. When the receiver receives the data, the receiving time is recorded for subsequent delay calculation and analysis. The delay time refers to the time difference between the sending of a data packet and the receiving of the data packet by the receiver. Network analysis tools (such as Wireshark, Ping, Traceroute, etc.) are used to monitor the transmission of data on the network. These tools can provide detailed delay and packet loss rate information.
[0023] In industrial control systems, operation logs are generated to record all communication events so that the sending and receiving times can be extracted and the communication delay data can be analyzed.
[0024] In step S12, preprocessing and updating are performed according to the production data to obtain the latest system status.
[0025] In one implementation, the production data is repaired and filtered to obtain processed data; the output of the production process is obtained; the processed data is used as a variable and the output of the production process is used as a dependent variable for calculation to obtain control parameters under the current control state; based on the control parameters, the current system state is updated to obtain the latest system state.
[0026] It should be noted that obtaining the output of the production process includes: performing sampling analysis according to the current control instruction to obtain the control state of the current control instruction; and evaluating and analyzing the control state of the current control instruction to obtain the output of the production process.
[0027] In modern industrial automation systems, a systematic approach can be adopted to repair and filter the production data to reduce noise, so as to obtain more accurate and reliable processed data. On this basis, the output of the production process is obtained, and the processed data is used as the independent variable, and the output of the production process is regarded as the dependent variable for calculation, so as to obtain the control parameters under the current control state. After obtaining the current control parameters, the current system state is updated according to these control parameters to obtain the latest system state, ensuring that the production system can be adjusted in real time to adapt to various internal and external changes, thereby improving the overall production efficiency. At the same time, combined with real-time data analysis and control parameter adjustment, a closed-loop control system can be formed to achieve fine management of the production process.
[0028] Specifically, it is necessary to first perform sampling analysis based on the current control instruction to obtain the control status of the instruction. This process involves the immediate analysis of existing data, and also requires a comprehensive evaluation and analysis of the control status, and ultimately the actual output of the production process is obtained to ensure a close connection between the control instruction and the actual output, so that the production process can quickly respond to various changes.
[0029] The latest system status can be divided into two states. One is that when the production system is in a steady state, the system status at any sampling time is selected as the determined control instruction operation state. This state is suitable for scenarios where the system is relatively stable, which helps to simplify the analysis process and provide a clear reference point. The other is suitable for dynamic processes. When the production system of the control system is in constant change, the corresponding system state can be determined according to the time when the control instruction is received. This dynamic process takes into account the dynamic characteristics of the system and can better reflect the real-time production situation. Among them, when it is necessary to take into account the immediacy of the control instruction and the dynamics of the system, a weighted method can be used for quantitative assessment to comprehensively consider the impact between the two.
[0030] In step S13, the latest system state and the communication time lag data are input into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction.
[0031] In one implementation, the state evaluation score of the current control instruction is calculated by the following formula: f(ts) = w0 + w1* ts Among them, f(ts) is the state evaluation score of the current control instruction, w0 represents the basic score when the current control instruction is not generated, and w1 represents the weight score for each increase of ts milliseconds after the current control instruction is generated.
[0032] f(ts) is the state evaluation score for the current control instruction, which quantifies the performance of the system when executing a specific control instruction. It can be used to measure the effectiveness of the control instruction. The higher the score, the faster and more stable the system response is, which can better meet the expected goals. On the contrary, the lower the score, the more problems there may be, such as delayed response, system instability, etc. w0 is the basic score corresponding to the current control instruction without any delay or external influence. It can be obtained by analyzing historical performance data. It represents the basic operating level that the system can achieve under the most ideal conditions. It provides a benchmark for subsequent evaluation and facilitates the evaluation of system performance changes under different time delay conditions. When the system is in a good state, f(ts) should be greater than w0; when the system has lags, failures or other problems, f(ts) will be significantly lower than w0. w1 represents the increase in the state evaluation score corresponding to the current control instruction for each increase of ts milliseconds, that is, the degree of influence of communication delay on the evaluation score. The determination of w1 usually depends on experimental data analysis, which can be obtained by observing the relationship between control instructions and system response time in actual applications, or by performing multiple tests to obtain statistical data. The size of w1 directly reflects the system's sensitivity to communication delays. If w1 is large, it means that the system is more vulnerable to delays and is prone to performance degradation. If w1 is small, it means that the system can tolerate certain delay changes and still maintain relatively stable performance. ts refers to the time delay between system response and control command issuance, usually in milliseconds. This parameter can be obtained by monitoring network delays, device feedback time, and various control links. It can be obtained through real-time monitoring tools equipped with modern control systems to accurately capture these delay data.
[0033] Using the state evaluation model, the impact score of the current control instruction relative to the system can be quickly obtained. This immediacy can timely understand the current operating status of the system, discover potential problems, and take measures to correct them. For example, if f(ts) shows that it is significantly lower than the expected level, you can immediately check whether the system has faults or optimization needs. Based on the evaluation results of f(ts), more scientific decisions can be made. If the state evaluation score continues to be lower than a certain threshold, you can decide to modify the control strategy, adjust parameters, or reconfigure the system to improve overall performance. Through such a feedback loop, operational efficiency can be continuously optimized and resource waste can be reduced. The flexibility of the state evaluation model enables the system to make dynamic adjustments based on real-time data. When f(ts) reflects that the system response is insufficient, the control system can automatically modify the parameter settings or adjust the control algorithm to improve the adaptability to time lags. This adaptive mechanism can not only improve efficiency, but also enhance the robustness of the system, enabling it to better cope with uncertainty and changing environments.
[0034] In step S14, the priority coefficient of the current control instruction in the ready scheduling queue is obtained, wherein the ready scheduling queue is a sequence of the current control instructions stored in the system.
[0035] In one implementation, the priority coefficient of the current control instruction is calculated by the following formula: ck = Pmax / Psum Among them, ck is the priority coefficient of the current control instruction, Pmax is the highest priority among all current control instructions in the (ts + td) time window, and Psum is the sum of the priorities of all current control instructions in the (ts + td) time window.
[0036] In the control system, Pmax represents the highest priority instruction among all current control instructions within a certain time window (ts + td), ts represents the starting sending time of the communication delay, and ts represents the communication delay time. The system will query all instructions stored in the ready scheduling queue according to the definition and setting of each control instruction. Each instruction will have a preset priority value, which can be fixed or dynamically adjusted based on real-time data. In specific implementation, the maximum priority value can be found by traversing the ready scheduling queue. For example, in a simple data structure, an instruction can be represented by (instruction ID, priority). When searching, it is only necessary to compare the priority values of each instruction. Psum is the sum of the priorities of all current control instructions within a certain time window (ts + td). The system needs to traverse the ready scheduling queue and add up the priorities of all instructions. In actual implementation, a loop structure can be used to add the priorities of each instruction one by one to obtain the sum. Psum provides an overall priority view, allowing the system to understand the relative weights of all current instructions to be scheduled, and then make reasonable scheduling decisions.
[0037] In the control system, each instruction needs to be evaluated for priority. The priority of each instruction directly affects the response speed and resource allocation efficiency of the system. The priority coefficient (ck) of the current control instruction is calculated by a specific formula to make the best scheduling decision in the ready scheduling queue. By calculating ck, the system can proportionally process instructions of different priorities. The larger the value of ck, the higher the relative priority of the control instruction in the entire queue; conversely, the lower the priority. The use of priority coefficients can provide an important basis for scheduling. For example, during the scheduling process, the instruction with the largest ck value can be selected from the ready scheduling queue for execution, which can effectively reduce the average response time of the system and improve the execution efficiency of instructions. Through the introduction of Psum, not only the highest priority instruction is considered, but also the existence of other low-priority instructions is comprehensively considered. This design makes the scheduling strategy fairer and avoids a single high-priority instruction from occupying resources for a long time, causing "hunger". In some cases, the priority may need to be adjusted dynamically due to changes in external conditions. For example, the importance of an instruction may increase due to an emergency. At this time, the priority needs to be recalculated and the ready scheduling queue needs to be updated. Using the above formula, the system can update the priority and ready scheduling queue in real time to ensure that good performance can be maintained after dynamic adjustment. The execution time of instructions will also affect the effectiveness of priority. In long-running tasks, their priorities will be adjusted according to the remaining execution time to prevent low-priority instructions from taking up too many resources.
[0038] In step S15, the state evaluation score and the priority coefficient are calculated by using a preset comprehensive evaluation model to obtain a comprehensive evaluation score.
[0039] In one implementation, the comprehensive evaluation score is calculated using the following formula: F(k) = f(ts + td) * ck Among them, F(k) is the comprehensive evaluation score, f(ts + td) represents the status evaluation score of the current control instruction, ck represents the priority coefficient of the current control instruction, ts represents the starting sending time of the communication delay, and ts represents the communication delay time.
[0040] The comprehensive evaluation score F(k) is a quantitative indicator used to evaluate the execution priority and status performance of control instructions within a certain time window. The higher the value, the more priority the instruction should be executed under the current conditions. In real-time control systems, a reasonable execution order is directly related to system performance and response speed, so it is particularly important to calculate an accurate comprehensive evaluation score. The dynamic calculation of the comprehensive evaluation score (F(k)) allows the control system to adjust the execution order of instructions in real time, so as to better adapt to environmental changes and task requirements, so that the system can still maintain high stability and reliability when facing emergencies or external interference. In addition, by comprehensively analyzing the priority and status of each instruction, the system can effectively allocate resources to avoid resource exhaustion or bottleneck problems caused by too frequent scheduling of certain instructions.
[0041] The state evaluation score f(ts + td) is an evaluation of the effectiveness of the current control instruction under specific circumstances. It is calculated by the state evaluation model in step S13 and reflects the success probability of the instruction and its contribution to the system under given conditions. The state evaluation score (f(ts + td)) usually changes over time. Specifically, if the delay becomes larger after the request is sent, it may mean that the importance of the instruction decreases, so its evaluation score needs to be adjusted accordingly. The priority coefficient refers to the importance of the current control instruction relative to other instructions, which is calculated by the priority coefficient formula in step S14.
[0042] In step S16, based on the comprehensive evaluation score, a sequence number is assigned to the ready scheduling queue to obtain a corresponding scheduling queue sequence number.
[0043] In one implementation, the ready scheduling queue is initialized, and all state values of the current control instructions of the ready scheduling queue are set to 0 to obtain a first scheduling queue; according to the first scheduling queue, the current control instructions in the first scheduling queue are numbered starting from 1 and accumulated one by one until the maximum control instruction is reached to obtain a second scheduling queue; according to the comprehensive evaluation score of each current control instruction, they are compared and arranged from the second scheduling queue to obtain the corresponding scheduling queue serial number.
[0044] Before starting to assign serial numbers, the system needs to know the initial status of all tasks to be executed. These status values can be obtained from the equipment and environment in real time through sensors, data acquisition modules or control parameters. Initializing all status values to 0 helps to establish a unified starting point, which can eliminate interference between instructions and make subsequent scheduling more fair and effective. This process ensures that the scheduling algorithm compares different control instructions under the same basic conditions, thereby reducing errors and improving the accuracy of decisions. According to the first scheduling queue, all current control instructions are numbered, starting from 1 and accumulating one by one until the maximum control instruction is reached to form the second scheduling queue. The numbering process allows each control instruction to have a unique identifier, so that subsequent operations can clearly reference specific control instructions. Such numbering can facilitate subsequent priority adjustment and scheduling selection, and provide a clear framework for system management and monitoring. By clearly numbering the scheduling queue, the traceability and management efficiency of the scheduling process are significantly improved. By comparing the comprehensive evaluation scores, the urgency and importance of each control instruction can be intelligently evaluated, thereby realizing dynamic scheduling. The comparison process takes into account a variety of influencing factors, making scheduling more realistic and able to cope with complex and changing environments. Under different operating environments, the system can quickly adapt to changes and avoid resource waste or task delays that may be caused by static scheduling, thereby improving the flexibility and real-time nature of scheduling, ensuring that key tasks are processed in a timely manner, and enhancing the overall efficiency of the system.
[0045] In step S17, the key control instruction corresponding to the scheduling queue serial number is searched in the ready scheduling queue, and it is determined whether the key control instruction meets the execution condition. When the key control instruction meets the execution condition, the key control instruction is added to the ready scheduling queue, and the ready scheduling queue is updated to obtain the latest scheduling queue, and industrial process control is performed according to the latest scheduling queue.
[0046] In the control system, a suitable data structure is designed to efficiently manage the scheduling queue. The scheduling queue usually uses an array, a linked list or other suitable collection types to store the scheduling tasks. Based on such a design, task management and scheduling can be performed effectively. Usually, a linear list (such as an array or a linked list) is used to store these instructions, so that the control instructions in the scheduling queue can be quickly accessed. By selecting an appropriate data structure, the search efficiency can be improved. For example, if the scheduling queue is small, the array can be directly accessed through the index. For a large dynamic queue, since the linked list can dynamically add and delete instructions, the linked list can be used for fast access. Such a search process can ensure that the scheduling system executes tasks in a predetermined order. If the scheduling queue is ordered, a binary search algorithm can be used to improve the search efficiency; if it is unordered, it may be necessary to traverse the entire queue for linear search. The size of the queue and the frequency of instruction changes need to be considered during design. A timestamp field is added to each control instruction to record its creation time and expected execution time. The current time is obtained through the system clock or timer and compared with the time of each key control instruction. When the system determines that the current control instruction is being executed, the timestamp of the instruction is checked. If the current time exceeds the execution time allowed for the critical control instruction, the system considers that the condition is met and is ready to execute the relevant instruction. Once it is determined that the execution condition of the critical control instruction is met, the instruction is added to the ready scheduling queue, and the newly added instruction is inserted into the ready queue. Specifically, a FIFO (first in, first out) strategy can be used, or dynamic sorting can be performed based on priority to ensure that high-priority instructions are processed first. When inserted, the status of the instruction should be marked as "ready" or "to be executed", and the metadata of the scheduling queue should be updated to reflect the information of the newly added instruction. After adding a new critical control instruction to the ready queue, the status of the queue is updated in a timely manner to ensure that all information is up to date. For completed instructions, their status needs to be updated to "completed" and removed from the ready scheduling queue to prevent duplicate scheduling. At the same time, the status of other unfinished instructions needs to be kept accurate. If a priority queue is used, the entire queue needs to be sorted after the new instruction is inserted to ensure that the highest priority instruction is always at the front of the queue.
[0047] In order to facilitate the understanding of the present invention, some preferred embodiments of the present invention are further described below.
[0048] The following describes the working process of the present invention using a common scenario as an example. Figure 2 , which is Figure 1 Schematic diagram of the working scenario of the method.
[0049] In an automotive parts manufacturing plant, multiple control instructions need to be monitored and adjusted in real time during the production process to ensure the efficient operation of the production line. Production data and communication delay data are key factors in maintaining production efficiency and product quality. The factory has introduced an advanced scheduling system to process this data. The various devices and sensors in the factory continuously collect production data, including control delay (such as equipment response time), process delay (such as the time required for a certain process) and status data (such as equipment operation status). At the same time, the communication network records the communication delay data, including the sending time and the delay time. These data are uniformly transmitted to the central control system. The central control system preprocesses the collected production data, such as removing outliers and noise, and updates the internal state model to obtain the latest system status. This includes analyzing the operating efficiency of the equipment and the time consumption of each process. The latest system status and communication delay data are input into the preset state evaluation model for calculation to obtain the state evaluation score of the current control instruction. For example, if a control instruction responds faster to a specific process, its state evaluation score will be correspondingly higher. The system searches for the current control instruction in the queue to be scheduled and obtains its priority coefficient. Through the preset comprehensive evaluation model, the status evaluation score and the priority coefficient are combined and calculated to obtain a comprehensive evaluation score. This score reflects the importance of the current control instruction in the entire scheduling queue. According to the comprehensive evaluation score, the instructions in the ready scheduling queue are sorted to obtain the corresponding scheduling queue number. For example, control instructions with good status and high priority will be assigned to the front. In the ready scheduling queue, the system searches for the key control instruction corresponding to the scheduling queue number and determines whether it meets the execution condition. The execution condition stipulates that the execution time of the current control instruction must be greater than the maximum execution time of the key control instruction to ensure that resources will not conflict. When the key control instruction meets the execution condition, the system will add it to the ready scheduling queue and update the queue to reflect the new status. At this time, the ready scheduling queue contains control instructions that can be executed immediately to ensure a smooth production process. According to the latest ready scheduling queue, the system begins to implement industrial process control and dispatches corresponding control instructions to each production equipment, thereby effectively promoting the production process.
[0050] In summary, the present invention discloses an industrial process control method based on communication time delay, including obtaining production data and communication time delay data, preprocessing and updating according to the production data to obtain the latest system state, inputting the latest system state and the communication time delay data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to the current control instruction, obtaining the priority coefficient of the current control instruction in the ready scheduling queue, calculating the state evaluation score and the priority coefficient through a preset comprehensive evaluation model to obtain a comprehensive evaluation score; based on the comprehensive evaluation score, assigning a sequence number to the ready scheduling queue to obtain a corresponding scheduling queue sequence number, searching the ready scheduling queue for a key control instruction corresponding to the scheduling queue sequence number, judging whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, adding the key control instruction to the ready scheduling queue, updating the ready scheduling queue to obtain the latest scheduling queue, and performing industrial process control according to the latest scheduling queue. Compared with the prior art, which mainly uses the estimation method, the sensors in the industrial system upload the collected environmental data to the control system in the form of analog signals or digital signals through different communication protocols on the sensors, and the control system transmits the information to the server through industrial Ethernet. The present invention takes into account the influence of time delay on different types of control instructions through an industrial process control method based on communication time delay, which is more representative and targeted, and improves the reliability of control accuracy under time delay state. In addition, the control instruction priority coefficient is introduced, and the priority of the control instruction is dynamically adjusted according to the time delay situation, so as to avoid the influence of time delay on the control instruction, optimize the execution order of the control instruction, and avoid the situation of misjudgment of instructions. A scheduling queue generation mechanism based on comprehensive evaluation scores is also designed to ensure that key control instructions are executed first, and improve data security and stability. Therefore, the present invention can solve the problem that communication time delay often occurs in data transmission between sensors, between servers, and between servers and field devices, and it is inevitable that misjudgment will occur between emergency commands and ordinary commands, and there is a problem of insufficient system stability and reliability.
[0051] Reference Figure 3 The second embodiment of the present invention provides an industrial process control device based on communication time delay, comprising: A data acquisition module, used to acquire production data and communication time delay data, wherein the production data includes control time delay, process time delay and status data, and the communication time delay data includes the sending time and delay time of the communication time delay; A data processing module, used to pre-process and update the production data to obtain the latest system status; A state evaluation module, used for inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction; A coefficient calculation module, used to obtain the priority coefficient of the current control instruction in the ready scheduling queue, wherein the ready scheduling queue is the current control instruction sequence stored in the system; A comprehensive evaluation module, used to calculate the state evaluation score and the priority coefficient through a preset comprehensive evaluation model to obtain a comprehensive evaluation score; A sequence number acquisition module, used to assign a sequence number to the prepared scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number; A queue acquisition module is used to search the key control instruction corresponding to the scheduling queue number in the ready scheduling queue, determine whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, add the key control instruction to the ready scheduling queue, update the ready scheduling queue, obtain the latest scheduling queue, and perform industrial process control according to the latest scheduling queue.
[0052] It should be noted that an industrial process control device based on communication time delay provided in an embodiment of the present invention is used to execute all process steps of an industrial process control method based on communication time delay in the above embodiment. The working principles and beneficial effects of the two correspond one to one, and thus will not be elaborated upon.
[0053] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned industrial process control method embodiments based on communication time delay are implemented, for example Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented, such as the queue acquisition module.
[0054] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.
[0055] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or a combination of certain components, or different components. For example, the electronic device may also include an input / output device, a network access device, a bus, etc.
[0056] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0057] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0058] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0059] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0060] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. An industrial process control method based on communication time delay, characterized in that: Executed by a computer, including: Acquire production data and communication time delay data, wherein the production data includes control time delay, process time delay and status data, and the communication time delay data includes sending time and delay time of the communication time delay; Preprocessing and updating the production data to obtain the latest system status; Inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction; Obtaining a priority coefficient of the current control instruction in a ready scheduling queue, wherein the ready scheduling queue is a sequence of the current control instructions stored in the system; The state evaluation score and the priority coefficient are calculated by using a preset comprehensive evaluation model to obtain a comprehensive evaluation score; Based on the comprehensive evaluation score, a sequence number is assigned to the ready-to-schedule queue to obtain a corresponding scheduling queue sequence number; Searching the key control instruction corresponding to the scheduling queue sequence number in the ready scheduling queue, judging whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, adding the key control instruction to the ready scheduling queue, updating the ready scheduling queue to obtain the latest scheduling queue, and performing industrial process control according to the latest scheduling queue; The execution condition refers to that the execution time of the current control instruction is greater than the maximum execution time of the key control instruction, and the ready scheduling queue is a sequence of key control instructions stored in the system.
2. The industrial process control method based on communication time delay according to claim 1, characterized in that: The preprocessing and updating according to the production data to obtain the latest system status includes: Performing repair processing and filtering and noise reduction processing on the production data to obtain processed data; Obtain the output of the production process; The processed data is used as a variable and the output of the production process is used as a dependent variable to calculate and obtain the control parameters under the current control state; According to the control parameters, the current system state is updated to obtain the latest system state.
3. The industrial process control method based on communication time delay according to claim 2 is characterized in that: The obtaining of the output of the production process comprises: Perform sampling analysis according to the current control instruction to obtain the control state of the current control instruction; The control state of the current control instruction is evaluated and analyzed to obtain the output of the production process.
4. The industrial process control method based on communication time delay according to claim 1, characterized in that: The state evaluation score and the priority coefficient are calculated by a preset comprehensive evaluation model to obtain a comprehensive evaluation score, including: The comprehensive evaluation score is calculated using the following formula: F(k) = f(ts + td) * ck; Among them, F(k) is the comprehensive evaluation score, f(ts + td) represents the status evaluation score of the current control instruction, ck represents the priority coefficient of the current control instruction, ts represents the starting sending time of the communication delay, and ts represents the communication delay time.
5. The industrial process control method based on communication time delay according to claim 4, characterized in that: The method further comprises, The status evaluation score of the current control instruction is calculated using the following formula: f(ts) = w0 + w1*ts; Among them, f(ts) is the state evaluation score of the current control instruction, w0 represents the basic score when the current control instruction is not generated, and w1 represents the weight score for each increase of ts milliseconds after the current control instruction is generated.
6. The industrial process control method based on communication time delay according to claim 1, characterized in that: The step of assigning a sequence number to the prepared scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number includes: Initializing the ready scheduling queue, setting all state values of the current control instructions of the ready scheduling queue to 0, and obtaining a first scheduling queue; According to the first scheduling queue, the current control instructions in the first scheduling queue are numbered starting from 1, and are accumulated one by one until a maximum control instruction is reached, to obtain a second scheduling queue; According to the comprehensive evaluation score of each current control instruction, comparison and arrangement are performed from the second scheduling queue to obtain the corresponding scheduling queue number.
7. The industrial process control method based on communication time delay according to claim 4, characterized in that: The obtaining of the priority coefficient of the current control instruction in the ready scheduling queue, wherein the ready scheduling queue is the current control instruction sequence stored in the system, comprises: The priority coefficient of the current control instruction is calculated by the following formula: ck = Pmax / Psum; Among them, ck is the priority coefficient of the current control instruction, Pmax is the highest priority among all current control instructions in the (ts + td) time window, and Psum is the sum of the priorities of all current control instructions in the (ts + td) time window.
8. An industrial process control device based on communication time delay, characterized in that: include: A data acquisition module, used to acquire production data and communication time delay data, wherein the production data includes control time delay, process time delay and status data, and the communication time delay data includes the sending time and delay time of the communication time delay; A data processing module, used to pre-process and update the production data to obtain the latest system status; A state evaluation module, used for inputting the latest system state and the communication time lag data into a preset state evaluation model for calculation to obtain a state evaluation score corresponding to a current control instruction, wherein the current control instruction is a pre-stored instruction; A coefficient calculation module, used to obtain the priority coefficient of the current control instruction in the ready scheduling queue, wherein the ready scheduling queue is the current control instruction sequence stored in the system; A comprehensive evaluation module, used to calculate the state evaluation score and the priority coefficient through a preset comprehensive evaluation model to obtain a comprehensive evaluation score; A sequence number acquisition module, used to assign a sequence number to the prepared scheduling queue based on the comprehensive evaluation score to obtain a corresponding scheduling queue sequence number; A queue acquisition module is used to search the key control instruction corresponding to the scheduling queue number in the ready scheduling queue, determine whether the key control instruction meets the execution condition, and when the key control instruction meets the execution condition, add the key control instruction to the ready scheduling queue, update the ready scheduling queue, obtain the latest scheduling queue, and perform industrial process control according to the latest scheduling queue.
9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, an industrial process control method based on communication time delay as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute an industrial process control method based on communication time delay as described in any one of claims 1 to 7.