PLC firmware upgrade method, device, computer equipment and storage medium

Use digital twin technology to evaluate the stability of PLC firmware, compare the performance of old and new firmware, and ensure that firmware upgrades will not affect the stability of the production line. This solves the problem that new firmware may introduce errors and achieves safe and reliable PLC firmware upgrades.

CN118409776BActive Publication Date: 2024-09-27SHENZHEN HUICHEN AUTOMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410856005.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

New firmware upgrades may introduce unknown errors, affect the stability and reliability of the PLC, and cause instability in the continuous operation of the production line.

Method used

Use digital twin technology to build a digital twin model of the PLC production system, evaluate the stability of the firmware through virtual copying and simulation operations, compare the performance of the original firmware and the target firmware, ensure that its stability impact is evaluated before upgrading, and the firmware is performed within the preset range upgrade.

Benefits of technology

Through detailed simulation and comparative analysis, we minimize the risks brought by new firmware, ensure the continuous and stable operation of the production system, and provide a safe, reliable and cost-effective upgrade strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118409776B
    Figure CN118409776B
Patent Text Reader

Abstract

The present invention relates to a method, device, computer equipment and storage medium for upgrading the firmware of a PLC. By acquiring the configuration data and production line layout data of the PLC, an initial digital twin model of a PLC production system is constructed, so that virtual simulation can be performed without intervening in the actual production system. The logic of the original firmware is integrated into the model, and the first PLC stability evaluation data is run and obtained to establish a performance benchmark. The upgraded target firmware logic is integrated into the model to form a second PLC production system digital twin model and run to evaluate its performance, and obtain the second PLC stability evaluation data. By comparing the two evaluation data, the performance of the new and old firmware and the problems that may be introduced by the new firmware can be intuitively seen. Decide whether to perform a firmware upgrade based on the evaluation results. This method provides a safe, reliable and cost-effective strategy to reduce the risk of firmware upgrades and ensure the stable operation of the production system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of PLC firmware upgrade, and in particular to a PLC firmware upgrade method, device, computer equipment and storage medium. Background Art

[0002] PLC (Programmable Logic Controller) is a key component in industrial automation and is widely used to control and monitor production lines, mechanical equipment and industrial processes. PLC firmware is software embedded in the PLC hardware, which is responsible for core functions such as instruction interpretation, execution and device management. As technology develops and the demand for industrial automation grows, PLCs must adapt to new control algorithms, safety standards and communication protocols. Firmware upgrades have therefore become a necessary means to ensure that PLCs adapt to these changes, improve system stability and expand functionality. Through firmware upgrades, the service life of the equipment can be extended and the high cost of frequent hardware replacement can be avoided.

[0003] However, the new firmware may introduce unknown errors, affecting the stability and reliability of the PLC, which is unacceptable for the continuous operation of the production line. Summary of the invention

[0004] The main purpose of the present invention is to provide a PLC firmware upgrade method, device, computer equipment and storage medium to solve the technical problem that the new firmware may introduce unknown errors, thereby affecting the stability and reliability of the PLC.

[0005] To achieve the above-mentioned purpose, the present invention provides a method for upgrading PLC firmware, comprising the following steps: obtaining initial configuration data of the PLC, removing configuration information of the original firmware in the initial configuration data to obtain target configuration data, and using digital twin technology to virtually copy the PLC and all production lines managed by the PLC based on the target configuration data to construct an initial PLC production system digital twin model, wherein the initial configuration data at least includes production line layout data; integrating the original firmware logic into the initial PLC production system digital twin model based on the configuration information of the original firmware to obtain a first PLC production system digital twin model, running the first PLC production system digital twin model, and evaluating the performance of the PLC and the production line in the first PLC production system digital twin model to obtain first PLC stability evaluation data; obtaining the configuration data of the target firmware after the original firmware is upgraded, and evaluating the performance of the target firmware based on the target firmware. The configuration data of the component integrates the target firmware logic into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, runs the second PLC production system digital twin model, and evaluates the performance of the PLC and the production line in the second PLC production system digital twin model to obtain second PLC stability evaluation data; uses the first PLC stability evaluation data as the stability standard of the PLC and the production line, performs data analysis on the second PLC stability evaluation data, evaluates the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtains a final PLC stability evaluation value; determines whether the final PLC stability evaluation value is within a preset range, if the final PLC stability evaluation value is within the preset range, uses the target firmware to upgrade the PLC firmware, if the final PLC stability evaluation value is not within the preset range, ends the process.

[0006] Furthermore, the initial configuration data of the PLC is obtained, the configuration information of the original firmware in the initial configuration data is eliminated to obtain the target configuration data, and based on the target configuration data, the digital twin technology is used to virtually copy the PLC and all production lines managed by the PLC to construct an initial PLC production system digital twin model, including: collecting the configuration data of the PLC, eliminating the configuration information of the original firmware in the initial configuration data to obtain the target configuration data, wherein the configuration data also includes mechanical parameter data; creating a PLC production system digital twin preparatory model in the digital twin platform according to the production line layout data and the mechanical parameter data, and importing the PLC control logic and PLC program code in the target configuration data into the PLC production system digital twin preparatory model to obtain the initial PLC production system digital twin model.

[0007] Furthermore, based on the configuration information of the original firmware, the original firmware logic is integrated into the initial PLC production system digital twin model to obtain a first PLC production system digital twin model, the first PLC production system digital twin model is run, and the performance of the PLC and the production line in the first PLC production system digital twin model is evaluated to obtain the first PLC stability evaluation data, including: loading the configuration information of the original firmware in the initial PLC production system digital twin model, integrating the original firmware logic into the PLC production system digital twin model to obtain the first PLC production system digital twin model; testing the PLC control logic in the first PLC production system digital twin model, if the PLC control logic in the first PLC production system digital twin model fails the test, adjusting the first PLC production system digital twin model according to the test results, and re-executing the step of "testing the PLC control logic in the first PLC production system digital twin model"; if the PLC control logic in the first PLC production system digital twin model passes the test, Test, then activate the simulation environment of the first PLC production system digital twin model, and make the virtual sensors in the first PLC production system digital twin model simulate input operations and the virtual actuators simulate output operations; control the first PLC production system digital twin model in the simulation environment, simulate the daily operation of the PLC based on the original firmware logic, and collect the operation data of the PLC and the production line during the simulation process to obtain the first PLC operation data; based on the time series of the first PLC operation data, convert the first PLC operation data into first grid data, wherein each time point is a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; calculate the global clustering coefficient of the first grid data to obtain the first evaluation data, calculate the average path length of the first grid data to obtain the second evaluation data, and calculate the network diameter of the first grid data to obtain the third evaluation data; integrate the first evaluation data, the second evaluation data and the third evaluation data to obtain the first PLC stability evaluation data.

[0008] Furthermore, based on the configuration data of the target firmware, the target firmware logic is integrated into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, the second PLC production system digital twin model is run, and the performance of the PLC and production line in the second PLC production system digital twin model is evaluated to obtain second PLC stability evaluation data, including: loading the configuration information of the target firmware in the initial PLC production system digital twin model, integrating the target firmware logic into the PLC production system digital twin model to obtain a second PLC production system digital twin model; activating the simulation environment of the second PLC production system digital twin model, simulating input operations of virtual sensors and output operations of virtual actuators in the second PLC production system digital twin model; controlling the second PLC production In the simulation environment, the digital twin model of the production system simulates the daily operation of the PLC based on the target firmware logic, and collects the operation data of the PLC and the production line during the simulation process to obtain second PLC operation data; based on the time series of the second PLC operation data, the second PLC operation data is converted into second grid data, wherein each time point is regarded as a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; the global clustering coefficient of the second grid data is calculated to obtain fourth evaluation data, the average path length of the second grid data is calculated to obtain fifth evaluation data, and the network diameter of the second grid data is calculated to obtain sixth evaluation data; the fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain second PLC stability evaluation data.

[0009] Further, the first evaluation data, the second evaluation data and the third evaluation data are integrated to obtain the first PLC stability evaluation data, including: using the minimum-maximum normalization formula to perform normalization processing on the first evaluation data, the second evaluation data and the third evaluation data; performing quantile mapping processing on the second evaluation data and the third evaluation data to adjust the evaluation direction of the second evaluation data and the third evaluation data; performing weighted aggregation on the first evaluation data, the second evaluation data and the third evaluation data to obtain the first PLC stability evaluation data;

[0010] Furthermore, the fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain second PLC stability evaluation data, including: using the minimum-maximum normalization formula to normalize the fourth evaluation data, the fifth evaluation data and the sixth evaluation data; performing quantile mapping on the fifth evaluation data and the sixth evaluation data to adjust the evaluation directions of the fifth evaluation data and the sixth evaluation data; and performing weighted aggregation on the fourth evaluation data, the fifth evaluation data and the sixth evaluation data to obtain second PLC stability evaluation data.

[0011] Furthermore, taking the first PLC stability evaluation data as the stability standard of the PLC and the production line, performing data analysis on the second PLC stability evaluation data, evaluating the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtaining a final PLC stability evaluation value, including: calculating the difference between the first PLC stability evaluation data and the second PLC stability evaluation data, and obtaining the final PLC stability evaluation value.

[0012] The present invention also provides a PLC firmware upgrade device, comprising: a construction unit, used to obtain the initial configuration data of the PLC, remove the configuration information of the original firmware in the initial configuration data to obtain the target configuration data, and use the digital twin technology based on the target configuration data to virtually copy the PLC and all production lines managed by the PLC to construct an initial PLC production system digital twin model, wherein the initial configuration data at least includes production line layout data; a first evaluation unit, used to integrate the original firmware logic into the initial PLC production system digital twin model based on the configuration information of the original firmware to obtain a first PLC production system digital twin model, run the first PLC production system digital twin model, and evaluate the performance of the PLC and the production line in the first PLC production system digital twin model to obtain first PLC stability evaluation data; a second evaluation unit, used to obtain the configuration data of the target firmware after the original firmware is upgraded, and based on the target firmware The target firmware logic is integrated into the initial PLC production system digital twin model according to the configuration data to obtain a second PLC production system digital twin model, the second PLC production system digital twin model is run, and the performance of the PLC and the production line in the second PLC production system digital twin model is evaluated to obtain second PLC stability evaluation data; a third evaluation unit is used to use the first PLC stability evaluation data as the stability standard of the PLC and the production line, perform data analysis on the second PLC stability evaluation data, evaluate the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtain a final PLC stability evaluation value; an upgrade unit is used to determine whether the final PLC stability evaluation value is within a preset range. If the final PLC stability evaluation value is within the preset range, the target firmware is used to upgrade the PLC firmware. If the final PLC stability evaluation value is not within the preset range, the process is terminated.

[0013] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0014] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0015] The firmware upgrade method, device, computer equipment and storage medium of the PLC provided by the present invention obtain the initial configuration data of the PLC, including the production line layout data. After removing the configuration information of the original firmware from these data, an initial PLC production system digital twin model is constructed using digital twin technology. This step allows us to perform virtual simulation without intervening in the actual production system, thereby ensuring that the production environment is reproduced in theory. Next, the logic of the original firmware is integrated into the digital twin model to form a first PLC production system digital twin model. By simulating and running this model, the performance of the PLC containing the original firmware and the production line under its control can be evaluated, thereby obtaining the first PLC stability evaluation data. This step is to establish benchmark data for comparison with the performance of the new firmware. By integrating the logic of the upgraded target firmware into the same digital twin model, a second PLC production system digital twin model is created. By running this model and evaluating its performance, the second PLC stability evaluation data can be obtained. This allows an intuitive comparison of the performance of the new and old firmware under the same conditions, as well as any performance improvements or problems that may be introduced by the new firmware. Using the first PLC stability assessment data as a benchmark, the second PLC stability assessment data is analyzed in detail to assess the actual impact of the target firmware on the stability of the PLC system. This step is critical to decision-making because it is directly related to whether the new firmware should be deployed. Finally, if the final PLC stability assessment value is within the preset acceptance range, the firmware upgrade can be performed; if it is not within this range, the upgrade process is terminated. This decision ensures that any firmware upgrade will not have a negative impact on the continuous operation of the production line.

[0016] Overall, this firmware upgrade method based on digital twin technology provides a safe, reliable and cost-effective upgrade strategy for PLC systems. Through detailed simulation and comparative analysis, this method can minimize the risks that may be brought by the new firmware and ensure the continued stable operation of the production system. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 1 is a schematic diagram of the steps of a method for upgrading the firmware of a PLC in one embodiment of the present invention;

[0018] Figure 2 It is a structural framework diagram of a PLC firmware upgrade device in one embodiment of the present invention;

[0019] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

[0020] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0022] Reference Figure 1 The embodiment of the present invention provides a method for upgrading the firmware of a PLC, comprising the following steps:

[0023] S1, obtain the initial configuration data of the PLC, remove the configuration information of the original firmware in the initial configuration data to obtain the target configuration data, and use the digital twin technology based on the target configuration data to virtually copy the PLC and all production lines managed by the PLC to build an initial PLC production system digital twin model, wherein the initial configuration data at least includes production line layout data.

[0024] S2. Based on the configuration information of the original firmware, the original firmware logic is integrated into the initial PLC production system digital twin model to obtain a first PLC production system digital twin model. The first PLC production system digital twin model is run, and the performance of the PLC and production line in the first PLC production system digital twin model is evaluated to obtain first PLC stability evaluation data.

[0025] S3, obtain the configuration data of the target firmware after the original firmware is upgraded, and integrate the target firmware logic into the initial PLC production system digital twin model based on the configuration data of the target firmware to obtain the second PLC production system digital twin model, run the second PLC production system digital twin model, and evaluate the performance of the PLC and production line in the second PLC production system digital twin model to obtain the second PLC stability evaluation data.

[0026] S4, using the first PLC stability evaluation data as the stability standard of the PLC and the production line, performing data analysis on the second PLC stability evaluation data, evaluating the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtaining a final PLC stability evaluation value.

[0027] S5 determines whether the final PLC stability evaluation value is within the preset range. If the final PLC stability evaluation value is within the preset range, the target firmware is used to upgrade the PLC firmware. If the final PLC stability evaluation value is not within the preset range, the process ends.

[0028] That is, the embodiment of the present invention provides a PLC firmware upgrade method based on digital twin technology, which can evaluate the impact of firmware upgrade on the stability of the PLC system in detail. First, the initial configuration data of the PLC is obtained, including the production line layout data. After removing the configuration information of the original firmware from these data, an initial PLC production system digital twin model is constructed using digital twin technology. This step allows us to perform virtual simulation without intervening in the actual production system, thereby ensuring that the production environment is reproduced in theory. Next, the logic of the original firmware is integrated into the digital twin model to form a first PLC production system digital twin model. By simulating and running this model, the performance of the PLC containing the original firmware and the production line under its control can be evaluated, thereby obtaining the first PLC stability evaluation data. This step is to establish baseline data for comparison with the performance of the new firmware. By integrating the logic of the upgraded target firmware into the same digital twin model, a second PLC production system digital twin model is created. Running this model and evaluating its performance can obtain the second PLC stability evaluation data. This allows an intuitive comparison of the performance of the new and old firmware under the same conditions, as well as any performance improvements or problems that may be introduced by the new firmware. Using the first PLC stability assessment data as a benchmark, the second PLC stability assessment data is analyzed in detail to assess the actual impact of the target firmware on the stability of the PLC system. This step is critical to decision-making because it is directly related to whether the new firmware should be deployed. Finally, if the final PLC stability assessment value is within the preset acceptance range, the firmware upgrade can be performed; if it is not within this range, the upgrade process is terminated. This decision ensures that any firmware upgrade will not have a negative impact on the continuous operation of the production line.

[0029] Overall, this firmware upgrade method based on digital twin technology provides a safe, reliable and cost-effective upgrade strategy for PLC systems. Through detailed simulation and comparative analysis, this method can minimize the risks that may be brought by the new firmware and ensure the continued stable operation of the production system.

[0030] In one example, the initial configuration data of a PLC is obtained, the configuration information of the original firmware in the initial configuration data is removed to obtain target configuration data, and based on the target configuration data, the PLC and all production lines managed by the PLC are virtually copied using digital twin technology to construct an initial PLC production system digital twin model, including: collecting the configuration data of the PLC, removing the configuration information of the original firmware in the initial configuration data to obtain the target configuration data, wherein the configuration data also includes mechanical parameter data; creating a PLC production system digital twin preparatory model in a digital twin platform based on the production line layout data and the mechanical parameter data, and importing the PLC control logic and PLC program code in the target configuration data into the PLC production system digital twin preparatory model to obtain the initial PLC production system digital twin model.

[0031] In this example, the first step is to obtain the initial configuration data of the PLC, which includes the configuration data and mechanical parameter information of the PLC, as well as the production line layout information. The key to this step is to remove the configuration information of the original firmware from the initial configuration data, so as to obtain the target configuration data that is not affected by the original firmware. Such processing ensures that the digital twin model constructed in the next step can be simulated purely based on hardware and structural parameters without being restricted by the existing firmware settings, so as to more accurately evaluate the compatibility of the new firmware with the hardware and structural design. Next, based on the production line layout information and mechanical parameter information, a digital twin preparatory model of the PLC production system is created on the digital twin platform. This preparatory model contains all the necessary physical and logical information, and it simulates the behavior and interaction of the production line under PLC management in the physical world. The technical effect of this step is to provide a detailed and accurate virtual environment, which is crucial for subsequent testing and evaluation because it ensures that all tests are carried out under conditions that are as consistent as possible with the actual environment. Then, the PLC control logic and PLC program code in the target configuration data are imported into this digital twin preparatory model to form an initial PLC production system digital twin model. This step makes the model include not only the physical layout and mechanical operating parameters of the production line, but also incorporates the specific logic and programming of the control system, so that the simulation environment also matches the actual production environment at the control logic level. Through this series of operations, the initial PLC production system digital twin model constructed allows developers and engineers to exhaustively test and verify the possible impact of new control strategies and program codes on the production system before any actual hardware upgrades. This approach greatly reduces the risks that may arise in actual applications, because all modifications and optimizations are performed in a controllable and safe virtual environment and will not affect the operation of the existing production line. Ultimately, this technical solution provides an efficient and safe way to predict and optimize the upgrade effect of the PLC system, thereby ensuring that the stability and efficiency of the production line are still guaranteed after the firmware upgrade.

[0032] In one example, the original firmware logic is integrated into the initial PLC production system digital twin model based on the configuration information of the original firmware to obtain a first PLC production system digital twin model, the first PLC production system digital twin model is run, and the performance of the PLC and the production line in the first PLC production system digital twin model is evaluated to obtain first PLC stability evaluation data, including: loading the configuration information of the original firmware in the initial PLC production system digital twin model, integrating the original firmware logic into the PLC production system digital twin model to obtain the first PLC production system digital twin model; testing the PLC control logic in the first PLC production system digital twin model, if the PLC control logic in the first PLC production system digital twin model fails the test, adjusting the first PLC production system digital twin model according to the test results, and re-executing the step of "testing the PLC control logic in the first PLC production system digital twin model"; if the PLC control logic in the first PLC production system digital twin model passes the test; If the test is passed, the simulation environment of the digital twin model of the first PLC production system is activated, and the virtual sensors in the digital twin model of the first PLC production system simulate input operations and the virtual actuators simulate output operations; the digital twin model of the first PLC production system is controlled to simulate the daily operations of the PLC based on the original firmware logic in the simulation environment, and the operation data of the PLC and the production line in the simulation process are collected to obtain the first PLC operation data; based on the time series of the first PLC operation data, the first PLC operation data is converted into first grid data, wherein each time point is regarded as a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; the global clustering coefficient of the first grid data is calculated to obtain the first evaluation data, the average path length of the first grid data is calculated to obtain the second evaluation data, and the network diameter of the first grid data is calculated to obtain the third evaluation data; the first evaluation data, the second evaluation data and the third evaluation data are integrated to obtain the first PLC stability evaluation data.

[0033] In this example, digital twin technology is used to integrate and evaluate the performance of the original firmware logic in the PLC production system through a detailed step-by-step process. First, the configuration information of the original firmware is loaded into the initial PLC production system digital twin model, which creates the first PLC production system digital twin model. This process ensures that the digital model accurately reflects the operation and management of the PLC under the current firmware, providing a basis for subsequent testing and evaluation. Next, the PLC control logic is tested in the first PLC production system digital twin model. If the PLC control logic fails the test, the model is adjusted according to the test results, and the test steps are repeated to ensure that each adjusted model can meet the expected control logic and performance standards. This iterative process helps to optimize the control logic and ensure the stability and reliability of the system. Once the PLC control logic passes the test, the simulation environment of the digital twin model is activated so that the virtual sensors and actuators in the model can simulate actual operations. This setting allows the model to simulate the daily operation of the PLC in a controlled environment and collect detailed data about the operation of the PLC and the production line. Subsequently, the collected first PLC operation data is converted into first grid data. In this network model, each time point is a node, and the connection strength between nodes is determined by the data similarity of adjacent time points. By calculating the global clustering coefficient, average path length, and network diameter, multi-dimensional evaluation data for the stability of the PLC system can be obtained. These metrics reflect the coherence, efficiency, and complexity of system operation. Finally, the first evaluation data, second evaluation data, and third evaluation data are integrated to form the final first PLC stability evaluation data. This comprehensive evaluation can determine the performance of the current firmware in the actual operating environment, as well as possible risks and deficiencies.

[0034] In short, this technical solution can not only accurately test and optimize the PLC control logic through detailed simulation and evaluation, but also predict possible problems and impacts before actual application, thereby ensuring that firmware upgrades or modifications can be carried out without interfering with the production process, greatly improving the safety and efficiency of operations.

[0035] In one example, based on the configuration data of the target firmware, the target firmware logic is integrated into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, the second PLC production system digital twin model is run, and the performance of the PLC and the production line in the second PLC production system digital twin model is evaluated to obtain second PLC stability evaluation data, including: loading the configuration information of the target firmware in the initial PLC production system digital twin model, integrating the target firmware logic into the PLC production system digital twin model to obtain a second PLC production system digital twin model; activating the simulation environment of the second PLC production system digital twin model, simulating input operations of virtual sensors and output operations of virtual actuators in the second PLC production system digital twin model; controlling the second PLC In the simulation environment, the digital twin model of the production system simulates the daily operation of the PLC based on the target firmware logic, and collects the operation data of the PLC and the production line during the simulation process to obtain second PLC operation data; based on the time series of the second PLC operation data, the second PLC operation data is converted into second grid data, wherein each time point is a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; the global clustering coefficient of the second grid data is calculated to obtain fourth evaluation data, the average path length of the second grid data is calculated to obtain fifth evaluation data, and the network diameter of the second grid data is calculated to obtain sixth evaluation data; the fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain second PLC stability evaluation data.

[0036] In this example, a systematic approach is used to integrate and evaluate the performance of the target firmware in the PLC production system using digital twin technology. First, the configuration information of the target firmware is loaded into the initial PLC production system digital twin model. This step creates the second PLC production system digital twin model, ensuring that the logic of the new firmware is fully integrated into the model, providing a basis for subsequent evaluation. Subsequently, the simulation environment of the second PLC production system digital twin model is activated so that the virtual sensors in the model can simulate input operations and the virtual actuators can simulate output operations. This step allows the simulation environment to reflect the performance of the new firmware when controlling the PLC and the production line it manages, thereby conducting real-time performance testing. Next, in the simulation environment, the second PLC production system digital twin model is controlled based on the target firmware logic to perform daily operations and collect operation data at the same time. These data include the operation information of the production line under the control of the PLC, providing raw data for subsequent data analysis, making the evaluation results more accurate and convincing. Afterwards, the collected second PLC operation data is converted into second grid data. In this network model, each time point is a node, and the connection strength between nodes is determined by the data similarity of adjacent time points. This conversion makes the dynamics of the data and the interaction of the system more obvious, facilitating complex network analysis. By calculating the global clustering coefficient, average path length, and network diameter of the second grid data, multi-dimensional evaluation data on the overall structure and efficiency of the system can be obtained. The global clustering coefficient reflects the tightness of the network, while the average path length and network diameter provide information about the network efficiency and maximum extension range. Finally, these evaluation data (the fourth, fifth, and sixth evaluation data) are integrated to form the second PLC stability evaluation data. This comprehensive evaluation can evaluate the possible performance of the new firmware in the actual operating environment, as well as the improvements or risks that may be brought.

[0037] In general, this technical solution can accurately predict the impact of new firmware on PLC system performance without affecting the operation of existing production lines through detailed simulation and evaluation processes. This method greatly improves the security and efficiency of firmware upgrades, ensures the stable operation of production systems, and provides a scientific basis for future firmware optimization and upgrades.

[0038] In one example, the first evaluation data, the second evaluation data, and the third evaluation data are integrated to obtain first PLC stability evaluation data, including: using a minimum-maximum normalization formula to normalize the first evaluation data, the second evaluation data, and the third evaluation data; performing quantile mapping on the second evaluation data and the third evaluation data to adjust the evaluation directions of the second evaluation data and the third evaluation data; and performing weighted aggregation on the first evaluation data, the second evaluation data, and the third evaluation data to obtain first PLC stability evaluation data.

[0039] In this technical solution, the method of integrating various evaluation data of the digital twin model of the first PLC production system to obtain the first PLC stability evaluation data includes several key steps, each of which is intended to ensure the scientific nature of data processing and the accuracy of the evaluation results. First, the first evaluation data, the second evaluation data, and the third evaluation data are normalized using the minimum-maximum normalization formula. Minimum-maximum normalization is a commonly used data preprocessing technique, the purpose of which is to linearly transform the original data into the range of [0, 1], thereby eliminating the differences in the dimensions and numerical ranges of the original data, and enhancing the comparability between the data. This step is crucial for the subsequent integration of evaluation data of different types and magnitudes, because it ensures that each data is measured with the same standard, thereby avoiding any data from having a disproportionate impact on the results due to its large original numerical range. Next, the second evaluation data and the third evaluation data are quantile mapped, and the evaluation direction of the two data is adjusted. Quantile mapping is a data transformation technique used to adjust the distribution of data to make it more consistent with the expected analysis model. The evaluation direction adjustment in this step is to ensure that all evaluation data are heading in the same direction (i.e., high values ​​represent good or bad), so that the data can be correctly aggregated in subsequent steps. Finally, the first evaluation data, the second evaluation data, and the third evaluation data that have been normalized and direction-adjusted are weighted aggregated. Weighted aggregation is a mathematical method that combines different aspects of information reflected by different data by assigning different weights to different data. The weight assignment is usually based on the importance of each data in the overall evaluation. In this way, a single value can be obtained - the first PLC stability evaluation data, which comprehensively reflects the performance of the PLC system on multiple key performance indicators.

[0040] In one example, the fourth evaluation data, the fifth evaluation data, and the sixth evaluation data are integrated to obtain second PLC stability evaluation data, including: using the minimum-maximum normalization formula to normalize the fourth evaluation data, the fifth evaluation data, and the sixth evaluation data; performing quantile mapping on the fifth evaluation data and the sixth evaluation data to adjust the evaluation directions of the fifth evaluation data and the sixth evaluation data; and performing weighted aggregation on the fourth evaluation data, the fifth evaluation data, and the sixth evaluation data to obtain second PLC stability evaluation data.

[0041] In this example, the stability assessment of the digital twin model of the second PLC production system involves a series of sophisticated data processing steps to ensure the scientificity and accuracy of the assessment results. First, the fourth, fifth, and sixth assessment data are normalized by using the minimum-maximum normalization formula. The main purpose of this step is to unify the different data dimensions into a fixed range (usually 0 to 1), which can eliminate the difficulty of comparison between data due to different dimensions and numerical values. The normalized data have the same comparison benchmark, making subsequent data analysis more fair and comparable. Next, the fifth and sixth assessment data are quantile mapped and the assessment direction of these data is adjusted. Quantile mapping is an effective data transformation technique used to adjust the statistical distribution of data to make it more suitable for analysis and interpretation. In addition, adjusting the assessment direction is to ensure that all assessment data are enhanced or weakened in the same direction (for example, high values ​​always represent better or worse performance), which is a prerequisite for effective aggregation. The last step is to perform weighted aggregation on the processed fourth, fifth, and sixth assessment data. Weighted aggregation is a method of combining multiple data sources into a single evaluation result, where each data source is given a different weight based on its importance in the overall evaluation. This method allows different evaluation indicators to have different influences based on their degree of influence on PLC stability. Overall, by integrating three key evaluation data to form a comprehensive second PLC stability evaluation data, a scientific and accurate stability evaluation result is provided. This evaluation method not only improves the accuracy of the evaluation, but also enhances the credibility of the evaluation, so that PLC firmware upgrades and system optimization decisions can be made based on a solid data foundation, thereby ensuring the stability and efficient operation of the production system.

[0042] In one example, the first PLC stability evaluation data is used as the stability standard of the PLC and the production line, and the second PLC stability evaluation data is analyzed to evaluate the impact of the introduction of the target firmware on the stability of the PLC and the production line to obtain a final PLC stability evaluation value, including: calculating the difference between the first PLC stability evaluation data and the second PLC stability evaluation data to obtain the final PLC stability evaluation value.

[0043] In this example, the entire technical solution aims to evaluate the impact of the target firmware on the stability of the PLC and production line by comparing the first and second PLC stability evaluation data, and derive the final PLC stability evaluation value based on this. This method provides a systematic way to quantify the effect of the firmware upgrade and determine whether to adopt the new firmware. First, the first PLC stability evaluation data is set as the stability standard for the PLC and the production line. This means that the first PLC stability evaluation data reflects the performance and stability level of the PLC system under the existing firmware configuration, providing a baseline for comparison. Using this data as a standard, any analysis of the second PLC stability evaluation data has a clear reference point, so that the improvement or possible risks of the target firmware can be intuitively evaluated. Next, the analysis of the second PLC stability evaluation data is performed. By calculating the difference between the first PLC stability evaluation data and the second PLC stability evaluation data, the specific impact of the target firmware on the stability of the PLC system can be quantified. This calculation process is simple and direct, allowing a quick conclusion to be drawn as to whether the target firmware improves the stability of the system or causes a decrease in stability. The final PLC stability evaluation value is a key indicator that directly shows the performance changes of the new firmware relative to the old firmware. If this evaluation value shows a positive improvement, then you can consider deploying the new firmware to the actual PLC system; if the evaluation value shows that stability has decreased, then you need to reconsider the decision to upgrade the firmware or further adjust and optimize the firmware. Overall, a structured and quantitative approach is used to evaluate the actual impact of firmware upgrades on the stability of the PLC system. This approach not only improves the accuracy of decision-making, but also enhances the understanding and control of the effects before and after the implementation of the new firmware, thereby ensuring the stable operation and efficient performance of the production system. This is a critical evaluation process for production lines that rely on PLC control to ensure that the benefits of technology updates are maximized while avoiding possible operational risks.

[0044] Reference Figure 2 , an embodiment of the present invention provides a PLC firmware upgrade device, comprising:

[0045] A construction unit 1 is used to obtain initial configuration data of the PLC, remove the configuration information of the original firmware in the initial configuration data to obtain target configuration data, and use digital twin technology to virtually copy the PLC and all production lines managed by the PLC based on the target configuration data to build an initial PLC production system digital twin model, wherein the initial configuration data at least includes production line layout data;

[0046] A first evaluation unit 2 is used to integrate the original firmware logic into the initial PLC production system digital twin model based on the configuration information of the original firmware, obtain a first PLC production system digital twin model, run the first PLC production system digital twin model, and evaluate the performance of the PLC and the production line in the first PLC production system digital twin model to obtain first PLC stability evaluation data;

[0047] A second evaluation unit 3 is used to obtain the configuration data of the target firmware after the original firmware is upgraded, and based on the configuration data of the target firmware, the target firmware logic is integrated into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, run the second PLC production system digital twin model, and evaluate the performance of the PLC and the production line in the second PLC production system digital twin model to obtain second PLC stability evaluation data;

[0048] A third evaluation unit 4 is used to use the first PLC stability evaluation data as the stability standard of the PLC and the production line, perform data analysis on the second PLC stability evaluation data, evaluate the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtain a final PLC stability evaluation value;

[0049] The upgrade unit 5 is used to determine whether the final PLC stability evaluation value is within a preset range. If the final PLC stability evaluation value is within the preset range, the target firmware is used to upgrade the PLC firmware. If the final PLC stability evaluation value is not within the preset range, the process is terminated.

[0050] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.

[0051] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0052] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0053] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0054] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0055] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0056] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for upgrading the firmware of a PLC, characterized in that: The following steps are involved: Acquire the initial configuration data of the PLC, remove the configuration information of the original firmware in the initial configuration data to obtain the target configuration data, and use the digital twin technology to virtually copy the PLC and all production lines managed by the PLC based on the target configuration data to build an initial PLC production system digital twin model, wherein the initial configuration data at least includes production line layout data; Integrating the original firmware logic into the initial PLC production system digital twin model based on the configuration information of the original firmware to obtain a first PLC production system digital twin model, running the first PLC production system digital twin model, and evaluating the performance of the PLC and the production line in the first PLC production system digital twin model to obtain first PLC stability evaluation data; Obtaining configuration data of the target firmware after the original firmware is upgraded, and integrating the target firmware logic into the initial PLC production system digital twin model based on the configuration data of the target firmware, obtaining a second PLC production system digital twin model, running the second PLC production system digital twin model, and evaluating the performance of the PLC and the production line in the second PLC production system digital twin model to obtain second PLC stability evaluation data; Taking the first PLC stability evaluation data as the stability standard of the PLC and the production line, performing data analysis on the second PLC stability evaluation data, evaluating the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtaining a final PLC stability evaluation value; Determine whether the final PLC stability evaluation value is within a preset range. If the final PLC stability evaluation value is within the preset range, use the target firmware to upgrade the PLC firmware. If the final PLC stability evaluation value is not within the preset range, end the process. Wherein, running the first PLC production system digital twin model and evaluating the performance of the PLC and the production line in the first PLC production system digital twin model to obtain the first PLC stability evaluation data includes: activating the simulation environment of the first PLC production system digital twin model, and making the virtual sensor in the first PLC production system digital twin model simulate input operation and the virtual actuator simulate output operation; controlling the first PLC production system digital twin model in the simulation environment to simulate the daily operation of the PLC based on the original firmware logic, and collecting the operation data of the PLC and the production line in the simulation process to obtain the first PLC operation data; based on the time series of the first PLC operation data, converting the first PLC operation data into first grid data, wherein each time point is a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; calculating the global clustering coefficient of the first grid data to obtain the first evaluation data, calculating the average path length of the first grid data to obtain the second evaluation data, and calculating the network diameter of the first grid data to obtain the third evaluation data; integrating the first evaluation data, the second evaluation data and the third evaluation data to obtain the first PLC stability evaluation data; Among them, based on the configuration data of the target firmware, the target firmware logic is integrated into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, the second PLC production system digital twin model is run, and the performance of the PLC and the production line in the second PLC production system digital twin model is evaluated to obtain the second PLC stability evaluation data, including: loading the configuration information of the target firmware in the initial PLC production system digital twin model, so that the target firmware logic is integrated into the PLC production system digital twin model to obtain the second PLC production system digital twin model; activating the simulation environment of the second PLC production system digital twin model, so that the virtual sensors in the second PLC production system digital twin model simulate input operations and the virtual actuators simulate output operations; controlling the second PLC production The system digital twin model simulates the daily operation of the PLC based on the target firmware logic in the simulation environment, and collects the operation data of the PLC and the production line in the simulation process to obtain the second PLC operation data; based on the time series of the second PLC operation data, the second PLC operation data is converted into second grid data, wherein each time point is a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; the global clustering coefficient of the second grid data is calculated to obtain the fourth evaluation data, the average path length of the second grid data is calculated to obtain the fifth evaluation data, and the network diameter of the second grid data is calculated to obtain the sixth evaluation data; the fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain the second PLC stability evaluation data; The first evaluation data, the second evaluation data and the third evaluation data are integrated to obtain the first PLC stability evaluation data, including: using the minimum-maximum normalization formula to perform normalization processing on the first evaluation data, the second evaluation data and the third evaluation data; performing quantile mapping processing on the second evaluation data and the third evaluation data to adjust the evaluation direction of the second evaluation data and the third evaluation data; performing weighted aggregation on the first evaluation data, the second evaluation data and the third evaluation data to obtain the first PLC stability evaluation data; The fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain the second PLC stability evaluation data, including: using the minimum-maximum normalization formula to perform normalization processing on the fourth evaluation data, the fifth evaluation data and the sixth evaluation data; performing quantile mapping processing on the fifth evaluation data and the sixth evaluation data to adjust the evaluation direction of the fifth evaluation data and the sixth evaluation data; performing weighted aggregation on the fourth evaluation data, the fifth evaluation data and the sixth evaluation data to obtain the second PLC stability evaluation data; The method comprises: taking the first PLC stability evaluation data as the stability standard of the PLC and the production line, performing data analysis on the second PLC stability evaluation data, evaluating the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtaining a final PLC stability evaluation value, including: calculating the difference between the first PLC stability evaluation data and the second PLC stability evaluation data, and obtaining the final PLC stability evaluation value; The evaluation direction refers to a direction in which the evaluation data is represented as good or bad, and at least includes: a high value of the evaluation data represents a good evaluation direction.

2. The firmware upgrade method according to claim 1, characterized in that: Acquire the initial configuration data of the PLC, remove the configuration information of the original firmware in the initial configuration data to obtain the target configuration data, and use the digital twin technology to virtually copy the PLC and all production lines managed by the PLC based on the target configuration data to build an initial PLC production system digital twin model, including: Collecting initial configuration data of the PLC, removing configuration information of the original firmware in the initial configuration data to obtain target configuration data, wherein the initial configuration data also includes mechanical parameter data; According to the production line layout data and mechanical parameter data, a PLC production system digital twin preparatory model is created in the digital twin platform, and the PLC control logic and PLC program code in the target configuration data are imported into the PLC production system digital twin preparatory model to obtain the initial PLC production system digital twin model.

3. The firmware upgrade method according to claim 2, characterized in that: Integrating the original firmware logic into the initial PLC production system digital twin model based on the configuration information of the original firmware to obtain a first PLC production system digital twin model, and running the first PLC production system digital twin model, including: Loading the configuration information of the original firmware into the initial PLC production system digital twin model, integrating the original firmware logic into the PLC production system digital twin model, and obtaining a first PLC production system digital twin model; Testing the PLC control logic in the first PLC production system digital twin model; if the PLC control logic in the first PLC production system digital twin model fails the test, adjusting the first PLC production system digital twin model according to the test result, and re-executing the step of "testing the PLC control logic in the first PLC production system digital twin model"; If the PLC control logic in the digital twin model of the first PLC production system passes the test, the step of "activating the simulation environment of the digital twin model of the first PLC production system" is executed.

4. A PLC firmware upgrade device, characterized in that: include: A construction unit is used to obtain initial configuration data of the PLC, remove the configuration information of the original firmware in the initial configuration data to obtain target configuration data, and use digital twin technology to virtually copy the PLC and all production lines managed by the PLC based on the target configuration data to build an initial PLC production system digital twin model, wherein the initial configuration data at least includes production line layout data; A first evaluation unit is used to integrate the original firmware logic into the initial PLC production system digital twin model based on the configuration information of the original firmware, obtain a first PLC production system digital twin model, run the first PLC production system digital twin model, and evaluate the performance of the PLC and the production line in the first PLC production system digital twin model to obtain first PLC stability evaluation data; A second evaluation unit is used to obtain the configuration data of the target firmware after the original firmware is upgraded, and based on the configuration data of the target firmware, integrate the target firmware logic into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, run the second PLC production system digital twin model, and evaluate the performance of the PLC and the production line in the second PLC production system digital twin model to obtain second PLC stability evaluation data; A third evaluation unit is used to use the first PLC stability evaluation data as the stability standard of the PLC and the production line, perform data analysis on the second PLC stability evaluation data, evaluate the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtain a final PLC stability evaluation value; An upgrading unit, used for judging whether the final PLC stability evaluation value is within a preset range, and if the final PLC stability evaluation value is within the preset range, upgrading the PLC firmware by using the target firmware, and terminating the process if the final PLC stability evaluation value is not within the preset range; Wherein, running the first PLC production system digital twin model and evaluating the performance of the PLC and the production line in the first PLC production system digital twin model to obtain the first PLC stability evaluation data includes: activating the simulation environment of the first PLC production system digital twin model, and making the virtual sensor in the first PLC production system digital twin model simulate input operation and the virtual actuator simulate output operation; controlling the first PLC production system digital twin model in the simulation environment to simulate the daily operation of the PLC based on the original firmware logic, and collecting the operation data of the PLC and the production line in the simulation process to obtain the first PLC operation data; based on the time series of the first PLC operation data, converting the first PLC operation data into first grid data, wherein each time point is a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; calculating the global clustering coefficient of the first grid data to obtain the first evaluation data, calculating the average path length of the first grid data to obtain the second evaluation data, and calculating the network diameter of the first grid data to obtain the third evaluation data; integrating the first evaluation data, the second evaluation data and the third evaluation data to obtain the first PLC stability evaluation data; Among them, based on the configuration data of the target firmware, the target firmware logic is integrated into the initial PLC production system digital twin model to obtain a second PLC production system digital twin model, the second PLC production system digital twin model is run, and the performance of the PLC and the production line in the second PLC production system digital twin model is evaluated to obtain the second PLC stability evaluation data, including: loading the configuration information of the target firmware in the initial PLC production system digital twin model, so that the target firmware logic is integrated into the PLC production system digital twin model to obtain the second PLC production system digital twin model; activating the simulation environment of the second PLC production system digital twin model, so that the virtual sensors in the second PLC production system digital twin model simulate input operations and the virtual actuators simulate output operations; controlling the second PLC production The system digital twin model simulates the daily operation of the PLC based on the target firmware logic in the simulation environment, and collects the operation data of the PLC and the production line in the simulation process to obtain the second PLC operation data; based on the time series of the second PLC operation data, the second PLC operation data is converted into second grid data, wherein each time point is a node in the grid, and the data similarity between adjacent time points determines the connection strength between the nodes corresponding to the adjacent time points; the global clustering coefficient of the second grid data is calculated to obtain the fourth evaluation data, the average path length of the second grid data is calculated to obtain the fifth evaluation data, and the network diameter of the second grid data is calculated to obtain the sixth evaluation data; the fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain the second PLC stability evaluation data; The first evaluation data, the second evaluation data and the third evaluation data are integrated to obtain the first PLC stability evaluation data, including: using the minimum-maximum normalization formula to perform normalization processing on the first evaluation data, the second evaluation data and the third evaluation data; performing quantile mapping processing on the second evaluation data and the third evaluation data to adjust the evaluation direction of the second evaluation data and the third evaluation data; performing weighted aggregation on the first evaluation data, the second evaluation data and the third evaluation data to obtain the first PLC stability evaluation data; The fourth evaluation data, the fifth evaluation data and the sixth evaluation data are integrated to obtain the second PLC stability evaluation data, including: using the minimum-maximum normalization formula to perform normalization processing on the fourth evaluation data, the fifth evaluation data and the sixth evaluation data; performing quantile mapping processing on the fifth evaluation data and the sixth evaluation data to adjust the evaluation direction of the fifth evaluation data and the sixth evaluation data; performing weighted aggregation on the fourth evaluation data, the fifth evaluation data and the sixth evaluation data to obtain the second PLC stability evaluation data; The method comprises: taking the first PLC stability evaluation data as the stability standard of the PLC and the production line, performing data analysis on the second PLC stability evaluation data, evaluating the impact of the introduction of the target firmware on the stability of the PLC and the production line, and obtaining a final PLC stability evaluation value, including: calculating the difference between the first PLC stability evaluation data and the second PLC stability evaluation data, and obtaining the final PLC stability evaluation value; The evaluation direction refers to a direction in which the evaluation data is represented as good or bad, and at least includes: a high value of the evaluation data represents a good evaluation direction.

5. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.