Method, device and system for upgrading numerical control machine tool controller based on self-inspection result and large model request
By using the method of self -inspection and large model comparison analysis in the CNC machine tool controller system, the compatibility problems in the upgrade process are solved, the reliability and efficiency of upgrade are improved, and the automation recovery mechanism and detailed fault diagnosis have been achieved. Essence
Patent Information
- Application Number
- CN202411475755.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the upgrade of CNC machine tool controller system, compatibility issues lead to unsmooth upgrades, affecting the stable operation of equipment, and the existing solutions are complex and time-consuming, increasing production costs and risks.
Adopt the method of self -inspection results and large model requests to upgrade, by obtaining upgraded front conditions, operating self -inspection, comparison analysis, request upgrades, and obtaining operating status information, self -inspection and comparison analysis, judge whether the upgrade is successful, and and the successful upgrade. Automatically return to the old version when failed, providing detailed reasons for failure.
It improved the reliability and efficiency of the upgrade process, reduced manual intervention, provided clear judgments and failures of the successful upgrade, and reducing the risk of compatibility issues and the risk of upgrade failure.
Smart Images

Figure CN119376764A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of upgrading a numerical control machine tool controller, and in particular relates to a method, a device and a system for upgrading a numerical control machine tool controller based on a self-check result and a large model request. Background Art
[0002] In modern manufacturing, CNC machine tools are key processing equipment, and their performance and stability have a decisive impact on production efficiency and product quality. With the continuous advancement of technology, the control system of CNC machine tools also needs to be continuously updated to adapt to new production needs and technical standards. However, in the process of upgrading the CNC machine tool controller system, compatibility issues are a long-standing technical problem, which seriously affects the smooth progress of the upgrade and the stable operation of CNC machine tools.
[0003] Traditional CNC machine tool controller upgrade methods usually involve comprehensive replacement or adjustment of hardware and software. Due to the aging of hardware, performance and stability degradation, the newly upgraded system may not be compatible with the old hardware equipment, resulting in some functions not being able to operate normally. For example, some input and output interfaces may not respond, or key operating instructions cannot be executed correctly. In addition, insufficient compatibility between the software environment and the new system is also a common problem. The new system may introduce new communication protocols, operating logic or security mechanisms. These changes may conflict with the old version of the driver, operating system or control software, resulting in the overall system not being able to operate smoothly.
[0004] Existing solutions often require complex adjustments to existing systems, such as updating drivers, modifying configurations, and even replacing hardware or software components that do not match the new system in some cases. These methods are not only time-consuming and labor-intensive, but are also prone to errors during the upgrade process, increasing production costs and risks.
[0005] In order to solve the above problems, it is necessary to propose an innovative method. Summary of the invention
[0006] The purpose of the present invention is to provide a method, device and system for upgrading a CNC machine tool controller based on self-test results and large model requests, which can improve the reliability of the upgrade process, and can give a judgment on whether the upgrade is successful or not, and can also provide detailed reasons for failure, and reduce manual intervention and improve efficiency.
[0007] The technical solution adopted by the present invention is as follows:
[0008] A method for upgrading a CNC machine tool controller based on self-check results and a large model request, comprising the following steps:
[0009] S1: Obtain the prerequisites for upgrading;
[0010] S2: The CNC machine tool controller runs a self-test and obtains the self-test result;
[0011] S3: Preconditions and self-test results for large model comparison and upgrade;
[0012] S4: Request an upgrade and obtain the running status information after the upgrade;
[0013] S5: After the upgrade, the CNC machine controller runs the self-test again;
[0014] S6: The large model compares the running status information and self-test results after the upgrade to determine whether the upgrade is successful;
[0015] S7: After determining whether the upgrade is successful, the operation of success or failure includes the following steps:
[0016] A: After the upgrade fails, roll back the system and provide feedback;
[0017] B: After the upgrade is successful, confirm.
[0018] A device for upgrading a CNC machine tool controller based on self-check results and large model requests, comprising the following components:
[0019] Precondition acquisition unit: used to obtain the prerequisites required for upgrading;
[0020] Self-check execution unit: responsible for the self-check operation of the CNC machine tool controller;
[0021] Comparison and analysis unit: Use the language big model to compare and analyze the upgrade preconditions and self-test results to determine whether the current controller meets the upgrade conditions;
[0022] Upgrade request and execution unit: after confirming that the upgrade conditions are met, it requests the upgrade package from the server, executes the upgrade process, and obtains the running status information after the upgrade;
[0023] Self-check unit after upgrade: After the upgrade is completed, perform the self-check operation again to verify the upgrade effect;
[0024] Upgrade result judgment unit: compares the operation status information and self-test results after the upgrade through the large model to determine whether the upgrade is successful;
[0025] Rollback and feedback unit: If the upgrade fails, it will automatically roll back to the old version, give the reason for the failure through the big model, and record the upgrade failure log;
[0026] Success confirmation unit: If the upgrade is successful, a confirmation operation is performed, including sending an upgrade success notification, generating a success report, and starting a normal operation mode.
[0027] A system for upgrading a CNC machine tool controller based on self-check results and large model requests, including system components and software modules;
[0028] The system components include:
[0029] Processor: responsible for executing the logical operations and control operations of the entire system;
[0030] Memory: used to store instructions and data executable by the processor;
[0031] Input and output interface: used for data transmission and interaction with external devices;
[0032] Network communication module: supports network communication between the system and external servers or other devices, and implements the request and download of upgrade packages;
[0033] The software modules include:
[0034] Precondition management module: manages the acquisition and storage of upgrade preconditions;
[0035] Self-inspection management module: controls the self-inspection process and processes the self-inspection results;
[0036] Large model comparison module: Use the large language model to compare and analyze state vectors;
[0037] Upgrade management module: responsible for the request, download, execution and processing of upgrade packages;
[0038] Log and feedback module: records key information during the upgrade process and provides analysis and feedback on the causes of upgrade failures.
[0039] The technical effects achieved by the present invention are:
[0040] The present invention obtains the upgrade preconditions in the upgrade information before upgrading, performs a self-check, and uses a large model to compare the upgrade preconditions and the self-check results to determine whether the CNC machine tool controller can be upgraded. If it is determined that the upgrade can be upgraded, the upgrade is requested and the post-upgrade status information in the upgrade information is obtained. After the upgrade, the CNC machine tool controller performs a self-check again, and determines whether the upgrade is successful by comparing the post-upgrade status information in the upgrade information and the second self-check result through a large model. If the upgrade is unsuccessful, the old version is returned. The reliability of the upgrade process can be improved, and a judgment on whether the upgrade is successful or not can be given. Detailed reasons for failure can also be provided, and manual intervention can be reduced to improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a flow chart of the present invention;
[0042] Figure 2It is a unit block diagram of a device for upgrading a numerical control machine tool controller based on self-check results and large model requests of the present invention;
[0043] Figure 3 It is a module diagram of a system for upgrading a numerical control machine tool controller based on self-check results and large model requests of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose and advantages of the present invention more clearly understood, the present invention is specifically described below in conjunction with embodiments. It should be understood that the following text is only used to describe one or several specific embodiments of the present invention, and does not strictly limit the scope of protection of the specific claims of the present invention.
[0045] Embodiment 1:
[0046] like Figure 1 As shown in the figure, a method for upgrading a CNC machine tool controller based on self-check results and large model requests is provided. Before the CNC machine tool controller performs a system upgrade, the upgrade preconditions contained in the upgrade information are first obtained to ensure that the system upgrade has a clear technical basis. Next, the CNC machine tool controller will perform a self-check operation and generate a self-check result. By applying the large model technology, the system compares and analyzes the upgrade preconditions with the self-check results to determine whether the current CNC machine tool controller meets the upgrade conditions. If the large model determines that the upgrade conditions are not met, it will give detailed reasons for not allowing the upgrade to help users locate the problem and make corresponding adjustments.
[0047] If the large model determines that the upgrade conditions are met, the CNC machine tool controller will request to start the upgrade and obtain the post-upgrade running status information in the upgrade information. After the upgrade is completed, the controller will perform a second self-check operation and generate a new self-check result. At this time, the large model will perform a comparison analysis again, and compare the upgraded status information with the second self-check result in detail to determine whether the upgrade is successful. If the judgment is unsuccessful, the system will automatically roll back to the old version, and the large model will provide the specific reason for the failure to ensure that the user can clearly understand the reason for the upgrade failure and the subsequent corrective measures.
[0048] If the large model determines that the upgrade is successful, the system will confirm that the CNC machine tool controller has completed the upgrade and the new system can operate normally. Through this method, this patent not only greatly improves the reliability and controllability of the system upgrade, but also helps users avoid potential compatibility issues in advance and ensure that the CNC machine tool controller system can work stably and efficiently after the upgrade;
[0049] It includes the following steps:
[0050] S1: Obtain the prerequisites for upgrading;
[0051] Before upgrading the system, first obtain and clarify the upgrade prerequisites. This step ensures that there are clear technical and hardware requirements before the upgrade, and compares the self-test results with the prerequisites through a large model to determine whether the basic requirements for the upgrade are met to prevent blind upgrades;
[0052] First, before upgrading the CNC machine tool controller, you need to obtain and clarify the upgrade prerequisites in the upgrade information. The upgrade prerequisites are the basis for a successful upgrade. The upgrade prerequisites include:
[0053] S11: Hardware status, clarify the status and performance that the hardware devices in the CNC machine tool controller should have before upgrading, such as the performance of the server, the performance of the driver, the performance of the sensor, the operating frequency of the processor, the memory capacity, the interface configuration of the motherboard, the stability of the power supply, etc., and define the hardware state vector H pre for:
[0054] H pre =[h1,h2,...,h n ]
[0055] Among them, h i Represents the state of the i-th hardware component;
[0056] S12: CNC system status, which refers to the performance and functions that the CNC system software should have before upgrading, including the driver version, the stability of the control algorithm, the compatibility of the operating system, etc. The system state vector S is defined. pre for:
[0057] S pre =[s1,s2,...,s m ]
[0058] Among them, s i Represents the state of the i-th parameter in the system;
[0059] S13: Operating environment, including the operating environment of the CNC machine tool before the upgrade, such as temperature, humidity, vibration and other external factors, which may affect the stability of the upgrade. Define the environmental state vector E pre for:
[0060] E pre =[e1,e2,...,e p ]
[0061] Among them, e i Indicates the status of the i-th operating environment;
[0062] Finally, all the upgrade prerequisites are combined into C pre for:
[0063] Cpre =[H pre ,S pre ,E pre ]
[0064] S2: The CNC machine tool controller runs a self-test and obtains the self-test result;
[0065] The CNC machine tool controller will automatically perform a running self-check to ensure that the current system status can be accurately captured. The self-check content of the CNC machine tool controller includes:
[0066] S21: Hardware self-check, check the operating status of each hardware device, confirm whether there is hardware failure or performance degradation, hardware self-check result H current for:
[0067]
[0068] in, Indicates the result of the i-th hardware self-test;
[0069] S22: Software self-check, confirm whether the current version and configuration of the CNC system software are running normally, such as the driver, control program, etc. The software self-check result S current for:
[0070]
[0071] in, represents the result of the i-th software self-check;
[0072] S23: Environmental self-check, measure the current working environment, ensure that environmental factors will not affect the upgrade process, environmental self-check result E current for:
[0073]
[0074] in, represents the result of the i-th environment self-test;
[0075] Finally, the overall self-examination result C current for:
[0076] C current =[H current ,S current ,B current ]
[0077] S3: Preconditions and self-test results for large model comparison and upgrade;
[0078] The CNC machine tool controller performs self-tests before and after the upgrade, and accurately evaluates the current status of the equipment through the self-test results. The self-test before the upgrade ensures that the controller has the basic conditions for the upgrade, while the self-test after the upgrade is used to confirm whether the system upgrade is successful;
[0079] Using the big model to compare the upgrade preconditions and current self-test results to determine whether the current CNC machine tool controller meets the upgrade conditions is to make intelligent decisions through the prediction and analysis capabilities of the big model;
[0080] Among them, the large model can be a large language model or a multimodal large model, which is an artificial intelligence model that can process and understand a variety of different types of data input, such as text, images, sounds, etc. This model usually uses deep learning technology to learn the association and interaction between different modalities through a large amount of data training. The large model has a wide range of applications in natural language processing, computer vision, speech recognition and other fields, and can provide richer and more accurate information processing capabilities. The large model has been widely and maturely applied in some technical fields, which will not be repeated here;
[0081] The big model plays a core role in analysis and decision-making in this method. It is not only used to determine whether the system meets the upgrade conditions, but also provides detailed reasons when the upgrade fails, helping users to quickly locate the problem and correct it;
[0082] The large model compares multiple state vectors and calculates the differences between them. The calculation includes:
[0083] S31: Hardware comparison, the large model compares the hardware state vector and obtains the hardware state difference value ΔH, which is:
[0084] ΔH=H pre -H current
[0085] If the value of ΔH exceeds a certain threshold, the hardware does not meet the upgrade requirements;
[0086] For details, please refer to the following table:
[0087]
[0088]
[0089] S32: Software comparison: The large model compares the software state vector to obtain the software state difference value ΔS, which is:
[0090] ΔS=S pre -S current
[0091] If the value of ΔS exceeds a certain threshold, the software does not meet the upgrade requirements;
[0092] For details, please refer to the following table:
[0093]
[0094] S33: Environmental comparison: The large model compares the environmental state vector and obtains the environmental state difference value ΔE, which is:
[0095] ΔE=E pre -E current
[0096] If the value of ΔE exceeds a certain threshold, the environment does not meet the upgrade requirements;
[0097] For details, please refer to the following table:
[0098]
[0099] The big model gives a judgment result by comprehensively analyzing ΔH, ΔS and ΔE. If some differences exceed the set tolerance range, the big model will feedback the reason why the upgrade is not allowed and provide detailed instructions to inform whether the hardware, software or environmental factors do not meet the conditions.
[0100] S4: Request an upgrade and obtain the running status information after the upgrade;
[0101] If the large model determines that the system meets the upgrade conditions, the CNC machine tool controller will request to start the upgrade and start the upgrade process, including:
[0102] S41: Obtain the upgrade package. After receiving the request, the server will match the upgrade package.
[0103] S42: Verify the upgrade package. To ensure that the downloaded upgrade package is not damaged or tampered with, the system will use a digital signature or hash check to verify the integrity of the file. After successfully passing the check, the CNC machine tool controller is ready to perform the upgrade.
[0104] S43: Upgrade execution. The CNC machine tool controller begins to gradually replace the old system components according to the contents of the upgrade package. This process may include:
[0105] Update hardware drivers;
[0106] Upgrade the operating system kernel or some library files;
[0107] Replace the algorithm module of the control software;
[0108] Reconfigure system parameter files;
[0109] S44: Obtaining the upgraded running status information. During the upgrade process, the system will automatically download and obtain the upgraded running status information, including the new version of the hardware running information, hardware driver requirements, software running status, control parameters, etc., defining the running status information C post for:
[0110] C post =[H post ,S post ,E post ]
[0111] Among them, H post This is the state that the hardware should have after the upgrade. post It is the status of the software version and configuration file after the upgrade. post It is the ideal operating environment for the upgraded system.
[0112] S5: After the upgrade, the CNC machine controller runs the self-test again;
[0113] After the upgrade is complete, the system needs to ensure that the controller can operate normally in the new environment, so it will perform a self-test again. This self-test is similar to the self-test before the upgrade, but it focuses more on verifying whether the new system components are working properly. The specific content of the self-test is:
[0114] S51: Hardware self-check. The CNC machine tool controller first checks whether the new hardware driver has been loaded correctly and verifies the hardware status. At this time, the system will detect whether the operating status of the device is consistent with the upgraded hardware requirements and define the hardware status after verification. current-post for:
[0115]
[0116] in, represents the result of the i-th hardware verification;
[0117] The hardware self-test content includes but is not limited to:
[0118] Whether the operation of servers, drives, CPUs, and memory meets the new requirements;
[0119] Whether peripherals (such as I / O interfaces, sensors, etc.) are working properly;
[0120] Whether the power supply and motherboard communication are stable;
[0121] S52: Software self-check, the CNC machine tool controller checks whether the control software is successfully loaded and verifies the normal operation of its core modules, and defines the software status S after verification current-post for:
[0122]
[0123] in, represents the result of the i-th software verification;
[0124] The self-test will check:
[0125] Whether the driver and middleware are started correctly;
[0126] Whether the logic and parameters of the control algorithm are consistent;
[0127] Are there any anomalies in the system logs and error reports?
[0128] S53: Environmental self-check: the CNC machine tool controller detects the upgraded operating environment through sensors to confirm whether the environmental conditions are suitable for the new system operation and define the verified environmental status E current-post for:
[0129]
[0130] in, Represents the result of the i-th software verification.
[0131] It includes:
[0132] Whether environmental factors such as temperature, humidity, and pressure are stable;
[0133] Whether the working vibration of the machine tool is within the safe range;
[0134] All the results of the self-test process will be summarized and a self-test report will be generated for use in subsequent steps.
[0135] S6: After the self-check is completed, the big model on the cloud compares the upgraded running status information with the self-check results to determine whether the upgrade is successful;
[0136] After the upgrade is complete, the system performs a second self-check and compares it with the large model to verify whether the upgraded status is normal. This ensures that the upgrade operation is not only successfully executed, but also that the upgraded system can operate normally and meet the expected performance standards. If the large model determines that the upgrade has failed, the system will automatically roll back to the old version to ensure that the device will not be affected by the upgrade failure. The rollback mechanism provides users with double insurance and reduces the risks during the upgrade process. Whether the upgrade fails or does not meet the upgrade conditions, the large model will give specific feedback on the reasons. This ensures that users can fully understand the problem and provides clear diagnostic information, which helps further optimization and repair;
[0137] The specific contents of the comparison are:
[0138] S61: Hardware status comparison, the large model compares the hardware status to ensure that the hardware self-test results meet the upgraded hardware requirements and obtain the hardware status comparison value ΔHpost for:
[0139] ΔH post =H post -H current-post
[0140] If H post The value of is within the allowable range, indicating that the hardware meets the requirements after the upgrade;
[0141] For details, please refer to the following table:
[0142]
[0143] S62: Software status comparison: The large model compares the software status to ensure that the software self-check result is consistent with the running status information after the upgrade, and obtains the software status comparison value ΔS post for:
[0144] ΔS post =S post -S current-post
[0145] If ΔS post The value of is within the allowable range, indicating that the software has been successfully upgraded and is running stably;
[0146] For details, please refer to the following table:
[0147]
[0148] S63: Environmental status comparison: the environmental self-check result is compared with the ideal environmental status after the upgrade to obtain the environmental status comparison value ΔE post for:
[0149] ΔE post =E post -E current-post
[0150] If ΔE post The value of is within the allowable range, indicating that the environment is in an ideal state;
[0151] For details, please refer to the following table:
[0152]
[0153] S7: After determining whether the upgrade is successful, the operation of success or failure includes the following steps:
[0154] A: If the large model detects that any comparison result exceeds the allowed threshold, the system will determine that the upgrade has failed. After the upgrade fails, the system will be rolled back and feedback will be given;
[0155] If ΔHpost ,ΔS post ,ΔE post If any of the above differences are beyond the specified range, the upgrade will be considered as failed and the rollback mechanism will be automatically triggered. The specific operations are as follows:
[0156] A1: Automatically roll back to the old version. The CNC machine controller will reload the old system version and replace all updated drivers, control software and parameter configuration files. This process is usually carried out through the following steps:
[0157] Clean up the files and configuration of the new version;
[0158] Restore older versions of system components from backup;
[0159] Restart the controller to apply the old version;
[0160] A2: The big model gives the reason for the failure. The big model will analyze the reasons for the upgrade failure in detail and provide specific feedback. For example, if the hardware performance is insufficient, the big model will point out which hardware component (such as server, drive, sensor, memory, CPU) does not meet the requirements of the new version, or the external environment (such as high temperature) causes the system to fail to operate normally;
[0161] A3: Record the upgrade failure log. The controller will record all relevant failure information, including self-test results, analysis results of the large model, and detailed steps of the rollback operation, for subsequent analysis by technicians.
[0162] B: After the upgrade is successful, confirm.
[0163] If ΔH post ,ΔS post ,ΔE post All are within the permitted range. The system confirms that the upgrade is successful. The system confirms that it has been upgraded to the new version. The successful confirmation process is as follows:
[0164] B1: Upgrade success notification: the system will send a success notification to the operator or management system, informing the operator or management system that the system has been successfully upgraded, and attaching the status information after the upgrade;
[0165] B2: Generate a success report. The system automatically generates an upgrade success report, which includes:
[0166] Hardware status: such as the operating status of servers, drives, sensors, processors, memory, and peripherals;
[0167] Software status: such as control software version, driver version, system configuration, etc.;
[0168] Environmental conditions: external environmental conditions such as temperature, humidity, vibration, etc.
[0169] B3: Normal operation mode starts. After the system confirms that the upgrade is successful, the CNC machine tool controller switches to normal operation mode and starts to control the equipment according to the logic of the new system.
[0170] Through these detailed steps, the method ensures the intelligence, reliability and safety of the CNC machine tool controller upgrade process. Each step determines the system status through self-checking and large model comparison to minimize the risk of compatibility issues and upgrade failures.
[0171] Embodiment 2:
[0172] This embodiment is used to provide a device for upgrading a CNC machine tool controller based on a self-check result and a large model request, comprising the following components:
[0173] Precondition acquisition unit: This unit is responsible for extracting and clarifying the preconditions required for the CNC machine tool controller upgrade from the upgrade information, including hardware status, CNC system status, and operating environment. The hardware state vector, system state vector, and environment state vector respectively define the status and performance that the hardware device, software parameters, and environmental factors should have before the upgrade;
[0174] Self-check execution unit: This unit is responsible for the self-check operation of the CNC machine tool controller, including hardware self-check, software self-check and environmental self-check. Hardware self-check checks the operating status of each hardware device to confirm whether there is hardware failure or performance degradation; software self-check confirms whether the current version and configuration of the CNC system software are running normally; environmental self-check measures the current working environment to ensure that environmental factors will not affect the upgrade process;
[0175] Comparison and analysis unit: This unit uses the language big model to compare and analyze the upgrade preconditions and the current self-test results to determine whether the current CNC machine tool controller meets the upgrade conditions. The big model gives the judgment result by comprehensively analyzing the hardware state vector, system state vector and environment state vector;
[0176] Upgrade request and execution unit: After confirming that the upgrade conditions are met, this unit requests the upgrade package from the server, executes the upgrade process, and obtains the running status information after the upgrade. This unit includes the steps of obtaining the upgrade package, verifying the upgrade package, executing the upgrade, and obtaining the running status information after the upgrade;
[0177] Self-check unit after upgrade: After the upgrade is completed, the unit performs self-check operation again to verify the upgrade effect. The self-check content includes hardware self-check, software self-check and environmental self-check to ensure that the new system components are working properly;
[0178] Upgrade result judgment unit: compares the operation status information and self-test results after the upgrade through the big model to determine whether the upgrade is successful. If the big model determines that the upgrade fails, the system will automatically roll back to the old version;
[0179] Rollback and feedback unit: If the upgrade fails, the unit automatically rolls back to the old version, gives the reason for the failure through the large model, and records the upgrade failure log. The rollback mechanism includes steps such as cleaning up the files and configurations of the new version, restoring the system components of the old version from the backup, and restarting the controller to apply the old version;
[0180] Success confirmation unit: If the upgrade is successful, this unit performs confirmation operations, including sending a successful upgrade notification, generating a success report, and starting the normal operation mode.
[0181] Embodiment 3:
[0182] This embodiment is used to provide a system for upgrading a CNC machine tool controller based on self-check results and large model requests, aiming to realize intelligent, automatic and efficient CNC machine tool system upgrade, including system components and software modules;
[0183] The system components include:
[0184] Processor: Responsible for executing the logical operations and control operations of the entire system. It is the core component of the system and ensures that the system runs efficiently and accurately. The processor can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), or a programmable logic array (PLA). The processor can be a central processing unit (CPU) or other processing units with data processing capabilities and / or instruction execution capabilities, or a combination of several of them.
[0185] Memory: used to store instructions and data executable by the processor, including system programs, user data, etc. It is the basis for system operation. The storage can be volatile memory or non-volatile memory;
[0186] Input and output interface: used for data transmission and interaction with external devices, supporting a variety of input and output devices, such as keyboard, mouse, display, printer, etc., to realize information input and output;
[0187] Network communication module: supports network communication between the system and external servers or other devices, realizes the request and download of upgrade packages, and ensures that the system can obtain the latest upgrade information in a timely manner;
[0188] The software modules include:
[0189] Precondition management module: manages the acquisition and storage of upgrade preconditions to ensure that the system meets all necessary conditions before upgrading, avoiding incompatibility or errors during the upgrade process;
[0190] Self-check management module: controls the self-check process, processes the self-check results, ensures that the system hardware and software are in normal status before upgrading, and reduces the risk of upgrade failure;
[0191] Large model comparison module: Use the language large model to compare and analyze the state vector. By comparing and analyzing the difference between the current state of the system and the upgrade target state, it provides decision support for the upgrade process.
[0192] Upgrade management module: responsible for the request, download, execution and processing of upgrade packages, ensuring the smooth progress of the upgrade process, and verifying and confirming the system status after the upgrade is completed;
[0193] Log and feedback module: records key information during the upgrade process, including upgrade requests, download progress, execution results, etc., provides analysis and feedback on the causes of upgrade failures, and helps users quickly locate problems and take appropriate solutions.
[0194] From a technical perspective, this approach has the following obvious advantages:
[0195] Improve the reliability of the upgrade process;
[0196] By performing self-checks and comparing upgrade preconditions before upgrading, we ensure that the system will be upgraded only when it meets basic requirements. This greatly reduces the risk of upgrade failure due to system incompatibility or hardware aging, and ensures the feasibility of the upgrade.
[0197] Intelligent upgrade decision-making;
[0198] This method uses a large model for comparative analysis and decision-making. By comparing the self-check results with the upgrade preconditions and the status after the upgrade, it intelligently determines whether the upgrade can be performed and the success rate after the upgrade. The participation of the large model makes the entire process more intelligent and precise, reducing human intervention.
[0199] Automatic fallback mechanism ensures system security;
[0200] If the upgrade fails, the system will automatically roll back to the old version to prevent the device from not being able to operate normally due to the upgrade failure. This mechanism provides a high degree of security for the entire system and prevents negative impacts on production caused by upgrade failures.
[0201] Accurate fault diagnosis and feedback;
[0202] Whether it is the preparation phase before the upgrade or the verification of the results after the upgrade, the big model not only gives a judgment on whether the upgrade is successful or not, but also provides detailed reasons for failure. This function helps users quickly locate the problem and make corresponding adjustments, reducing troubleshooting time.
[0203] Reduce manual intervention and improve efficiency;
[0204] Through the automation and intelligence of the entire process, the necessity of manual intervention has been greatly reduced. The system can independently complete the condition judgment before the upgrade, the status verification after the upgrade, and the rollback operation in case of failure, which improves the overall upgrade efficiency.
[0205] Double self-check mechanism to ensure the upgrade effect;
[0206] Through two self-checks before and after the upgrade, the system is ensured not only to operate when the upgrade conditions are met, but also to verify whether the expected effect is achieved by comparing the operation status after the upgrade. This double verification mechanism greatly improves the success rate and stability of the upgrade.
[0207] Reduce compatibility risks;
[0208] Before the system is upgraded, the comparison and analysis of large models can be used to identify possible compatibility issues in advance, allowing users to foresee and avoid these problems and reduce the risk of downtime or functional abnormalities caused by system incompatibility.
[0209] Dynamically adapt to different hardware and software environments;
[0210] This method can dynamically adjust the upgrade plan according to different hardware configurations, software versions or system environments. It is not only suitable for various old devices, but also can ensure the smooth upgrade of new hardware, thus having wide applicability and flexibility.
[0211] In summary, this method improves the success rate of CNC machine tool controller system upgrades while also improving the safety and controllability of the entire process through intelligent upgrade decisions, automated rollback mechanism, double self-checking, and detailed feedback information.
[0212] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.
Claims
1. A method for upgrading a CNC machine tool controller based on self-check results and large model requests, characterized in that: The following steps are involved: S1: Obtain the prerequisites for upgrading; S2: The CNC machine tool controller runs a self-test and obtains the self-test result; S3: Preconditions and self-test results for large model comparison and upgrade; S4: Request an upgrade and obtain the running status information after the upgrade; S5: After the upgrade, the CNC machine controller runs the self-test again; S6: The large model compares the running status information and self-test results after the upgrade to determine whether the upgrade is successful; S7: After determining whether the upgrade is successful, the operation of success or failure includes the following steps: A: After the upgrade fails, roll back the system and provide feedback; B: After the upgrade is successful, confirm.
2. The method according to claim 1, characterized in that: The prerequisites for upgrading in S1 include: S11: Hardware status, clarify the status and performance that the hardware equipment in the CNC machine tool controller should have before upgrading, and define the hardware status vector H pre for: H pre =[h1,h2,...,h n ] Among them, h i Represents the state of the i-th hardware component; S12: CNC system status, which is the performance and functions that the CNC system software should have before upgrading, and defines the system state vector S pre for: S pre =[s1,s2,...,s m ] Among them, s i Represents the state of the i-th parameter in the system; S13: Operating environment, including the operating environment of the CNC machine tool before the upgrade, defining the environment state vector E pre for: THE pre =[e1,e2,...,e p ] Among them, e i Indicates the status of the i-th operating environment; Finally, all the upgrade prerequisites are combined into C pre for: C pre =[H pre ,S pre ,E pre ]。 3. The method according to claim 2, characterized in that: The self-check contents of the CNC machine tool controller in S2 include: S21: Hardware self-check, check the operating status of each hardware device, the hardware self-check result H current for: in, Indicates the result of the i-th hardware self-test; S22: Software self-check, confirm whether the current version and configuration of the CNC system software are running normally. The software self-check result S current for: in, represents the result of the i-th software self-check; S23: Environmental self-test, measure the current working environment, environmental self-test result E current for: in, represents the result of the i-th environment self-test; Finally, the overall self-examination result C current for: C current =[H current ,S current ,E current ]。 4. The method according to claim 3, characterized in that: In S3, the large model is used to compare the upgrade preconditions and the current self-test results to determine whether the current CNC machine tool controller meets the upgrade conditions; The large model compares multiple state vectors and calculates the differences between them. The calculation includes: S31: Hardware comparison, the large model compares the hardware state vector and obtains the hardware state difference value ΔH, which is: ΔH=H pre -H current If the value of ΔH exceeds the threshold, the hardware does not meet the upgrade requirements; S32: Software comparison: The large model compares the software state vector to obtain the software state difference value ΔS, which is: ΔS=S pre -S current If the value of ΔS exceeds the threshold, the software does not meet the upgrade requirements; S33: Environmental comparison: The large model compares the environmental state vector and obtains the environmental state difference value ΔE, which is: ΔE=E pre -E current If the value of ΔE exceeds the threshold, the environment does not meet the upgrade requirements.
5. The method according to claim 4, characterized in that: In S4, if the large model determines that the system meets the upgrade conditions, the CNC machine tool controller will request to start the upgrade and start the upgrade process, which specifically includes: S41: Obtain upgrade package; S42: Verify the upgrade package. After successfully passing the verification, the CNC machine tool controller is ready to perform the upgrade; S43: Upgrade execution, the CNC machine tool controller starts to gradually replace the old system components according to the content in the upgrade package; S44: Obtaining the upgraded running status information. During the upgrade process, the system will automatically download and obtain the upgraded running status information. Define the running status information C post for: C post =[H post ,S post ,E post ] Among them, H post This is the state that the hardware should have after the upgrade. post It is the status of the software version and configuration file after the upgrade. post It is the ideal operating environment for the upgraded system.
6. The method according to claim 5, characterized in that: The specific contents of the S5 self-test are as follows: S51: Hardware self-check. The CNC machine tool controller first checks whether the new hardware driver has been loaded correctly and verifies the hardware status. At this time, the system will detect whether the operating status of the device is consistent with the upgraded hardware requirements and define the hardware status after verification. current-post for: in, represents the result of the i-th hardware verification; S52: Software self-check, the CNC machine tool controller checks whether the control software is successfully loaded and verifies the normal operation of its core modules, and defines the software status S after verification current-post for: in, represents the result of the i-th software verification; S53: Environmental self-check: the CNC machine tool controller detects the upgraded operating environment through sensors to confirm whether the environmental conditions are suitable for the new system operation and define the verified environmental status E current-post for: in, Represents the result of the i-th software verification.
7. The method according to claim 6, characterized in that: The specific content of the comparison in S6 is: S61: Hardware status comparison, the large model compares the hardware status and obtains the hardware status comparison value ΔH post for: ΔH post =H post -H current-post If H post The value of is within the allowable range, indicating that the hardware meets the requirements after the upgrade; S62: Software status comparison: the large model compares the software status to obtain the software status comparison value ΔS post for: ΔS post =S post -S current-post If ΔS post The value of is within the allowable range, indicating that the software has been successfully upgraded and is running stably; S63: Environmental status comparison: the environmental self-check result is compared with the ideal environmental status after the upgrade to obtain the environmental status comparison value ΔE post for: ΔE post =E post -E current-post If ΔE post The value of is within the allowable range, indicating that the environment is in an ideal state.
8. The method according to claim 7, characterized in that: In S7, if ΔH post ,ΔS post ,ΔE post If any of the above differences are beyond the specified range, the upgrade will be considered as failed and the rollback mechanism will be automatically triggered. The specific operations are as follows: A1: Automatically roll back to the old version. The CNC machine tool controller will reload the old system version and replace all updated drivers, control software and parameter configuration files. A2: The big model gives the reason for the failure. The big model will analyze the reasons for the upgrade failure in detail and provide specific feedback; A3: Record the upgrade failure log. The controller will record all relevant failure information. In S7, at position B, if ΔH post ,ΔS post ,ΔE post All are within the permitted range. The system confirms that the upgrade is successful. The system confirms that it has been upgraded to the new version. The successful confirmation process is as follows: B1: Upgrade success notification: the system will send a success notification to the operator or management system, informing the operator or management system that the system has been successfully upgraded, and attaching the status information after the upgrade; B2: Generate a success report. The system automatically generates an upgrade success report. B3: Normal operation mode starts. After the system confirms that the upgrade is successful, the CNC machine tool controller switches to normal operation mode and starts to control the equipment according to the logic of the new system.
9. A device for upgrading a CNC machine tool controller based on self-check results and large model requests, characterized in that: Includes the following components: Precondition acquisition unit: used to obtain the prerequisites required for upgrading; Self-check execution unit: responsible for the self-check operation of the CNC machine tool controller; Comparison and analysis unit: Use the language big model to compare and analyze the upgrade preconditions and self-test results to determine whether the current controller meets the upgrade conditions; Upgrade request and execution unit: after confirming that the upgrade conditions are met, it requests the upgrade package from the server, executes the upgrade process, and obtains the running status information after the upgrade; Self-check unit after upgrade: After the upgrade is completed, perform the self-check operation again to verify the upgrade effect; Upgrade result judgment unit: compares the operation status information and self-test results after the upgrade through the large model to determine whether the upgrade is successful; Rollback and feedback unit: If the upgrade fails, it will automatically roll back to the old version, give the reason for the failure through the big model, and record the upgrade failure log; Success confirmation unit: If the upgrade is successful, a confirmation operation is performed, including sending an upgrade success notification, generating a success report, and starting a normal operation mode.
10. A system for upgrading a CNC machine tool controller based on self-check results and large model requests, characterized in that: Includes system components and software modules; The system components include: Processor: responsible for executing the logical operations and control operations of the entire system; Memory: used to store instructions and data executable by the processor; Input and output interface: used for data transmission and interaction with external devices; Network communication module: supports network communication between the system and external servers or other devices, and implements the request and download of upgrade packages; The software modules include: Precondition management module: manages the acquisition and storage of upgrade preconditions; Self-inspection management module: controls the self-inspection process and processes the self-inspection results; Large model comparison module: Use the large language model to compare and analyze state vectors; Upgrade management module: responsible for the request, download, execution and processing of upgrade packages; Log and feedback module: records key information during the upgrade process and provides analysis and feedback on the causes of upgrade failures.