CNC machine tool assembly method, system, equipment and storage medium

By introducing full-duplex communication and preset large models into the CNC machine tool assembly process, the automation and intelligence of CNC machine tool assembly have been realized, solving the problem of low assembly efficiency and improving the flexibility and efficiency of assembly.

CN118605380BActive Publication Date: 2025-01-10ZKHM CNC SOFTWARE (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411080688.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2025-01-10
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

The assembly process of CNC machine tools relies on manual operation, resulting in low assembly efficiency.

Method used

By establishing a full-duplex communication connection between the client and the server, real-time data exchange and analysis are performed using a pre-set large model, automatically generating assembly parameter information and performing format verification to control CNC machine tools for precise assembly.

Benefits of technology

It improves the flexibility and response speed of the assembly process, reduces reliance on human experience, and improves the efficiency and accuracy of the assembly process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605380B_ABST
    Figure CN118605380B_ABST
Patent Text Reader

Abstract

The present application discloses a method, system, device and storage medium for assembling a numerically controlled machine tool, and relates to the field of communication technology. The method for assembling a numerically controlled machine tool comprises: obtaining parameters of parts to be processed by the numerically controlled machine tool; after establishing a full-duplex communication connection with a server, sending the parameters of the parts to the server based on the full-duplex communication connection, wherein the server inputs the parameters of the parts into a preset large model for retrieval, obtains reply information corresponding to the parameters of the parts, and sends the reply information to a client; based on the full-duplex communication connection, receiving the reply information fed back by the server, determining the type of the reply information, and if the type of the reply information is assembly parameter information, determining the assembly parameter information according to the reply information, and performing a format check on the assembly parameter information; after the format check result is that the format check is successful, controlling the numerically controlled machine tool to assemble according to the assembly parameter information. The present application can improve the efficiency of the assembly process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a CNC machine tool assembly method, system, device and storage medium. Background Art

[0002] In modern manufacturing, CNC machine tools achieve high-precision and efficient parts processing through digital control. CNC machine tools cover a variety of types, from lathes, milling machines, grinders to compound machining centers, each with its own unique functions and scope of application. In the traditional CNC machine tool assembly process, from basic mechanical parts assembly to complex electrical connections, and then to subsequent system calibration, each step requires technicians to manually set. However, the assembly process involves a lot of physical adjustments and precise measurements, which require technicians to make manual adjustments based on personal experience. However, manual assembly is not only time-consuming, but also particularly slow in the processing of complex parts, which limits the assembly rate of CNC machine tools.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present application is to provide a CNC machine tool assembly method, system, device and storage medium, aiming to solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency.

[0005] To achieve the above purpose, the present application proposes a CNC machine tool assembly method, which is applied to a client. The CNC machine tool assembly method comprises:

[0006] Obtain the parameters of the parts to be processed by the CNC machine tool;

[0007] After establishing a full-duplex communication connection with the server, the part parameters are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client;

[0008] Receiving reply information fed back by the server based on the full-duplex communication connection, determining the type of the reply information, and if the type of the reply information is assembly parameter information, determining the assembly parameter information according to the reply information, and performing a format check on the assembly parameter information;

[0009] After the format inspection result is that the format inspection is successful, the numerical control machine tool is controlled to perform assembly according to the assembly parameter information.

[0010] In one embodiment, after the step of determining the type of the reply information, the method further includes:

[0011] If the type of the reply information is parameter supplementary information, determining the parameter supplementary information corresponding to the part parameter according to the reply information;

[0012] Determine the supplementary parameters corresponding to the part parameters according to the parameter supplementary information;

[0013] Sending the supplementary parameters to the server, wherein the server inputs the part parameters and the supplementary parameters into a preset macro model for retrieval, obtains updated reply information corresponding to the part parameters, and sends the updated reply information to the client;

[0014] Return to the execution step: determine the type of the reply information until it is detected that the type of the reply information is assembly parameter information.

[0015] In one embodiment, before the step of sending the part parameters to the server based on the full-duplex communication connection, the method further includes:

[0016] Initiate a connection request to the server;

[0017] receiving first response information sent by the server in response to the connection request, and establishing a TCP (Transmission Control Protocol) connection with the server based on the first response information;

[0018] Sending a connection upgrade request to the server, wherein the connection upgrade request is used to request upgrading the TCP connection to a full-duplex communication connection;

[0019] The receiving server responds to the connection upgrade request with second response information, and determines that the TCP connection is upgraded to a full-duplex communication connection.

[0020] The present application also proposes a CNC machine tool assembly method, which is applied to a server. The CNC machine tool assembly method comprises:

[0021] After establishing a full-duplex communication connection with the client, receiving the part parameters sent by the client based on the full-duplex communication connection, wherein the client sends the part parameters to be processed by the CNC machine tool to the server;

[0022] Input the part parameters into the preset macro model for retrieval, and obtain reply information corresponding to the part parameters;

[0023] The reply information is sent to the client based on the full-duplex communication connection, wherein the client receives the reply information fed back by the server, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information. After the format check result is that the format check is successful, controls the CNC machine tool to perform assembly according to the assembly parameter information.

[0024] In one embodiment, the types of the reply information include assembly parameter information and parameter supplementary information, and the step of inputting the part parameters into a preset macro model for retrieval to obtain the reply information corresponding to the part parameters includes:

[0025] Input the part parameters into a preset large model for retrieval, determine the retrieval results, and determine whether the part parameters need to be supplemented according to the retrieval results;

[0026] If supplementation is required, parameter supplementation information corresponding to the part parameters is generated, and the parameter supplementation information is used as reply information;

[0027] If supplementation is not required, assembly parameter information corresponding to the part parameters is generated, and the assembly parameter information is used as reply information.

[0028] In one embodiment, the reply information is parameter supplementary information, and after the step of sending the reply information to the client based on the full-duplex communication connection, the step further includes:

[0029] Receiving the supplementary parameters corresponding to the part parameters sent by the client, wherein the client determines the parameter supplementary information corresponding to the part parameters according to the reply information, determines the supplementary parameters corresponding to the part parameters according to the parameter supplementary information, and sends the supplementary parameters to the server;

[0030] Input the part parameters and the supplementary parameters into the preset large model for secondary retrieval to determine the retrieval results;

[0031] Return to the execution step: determine whether the part parameters need to be supplemented based on the search results.

[0032] In one embodiment, before the step of receiving the part parameters sent by the client based on the full-duplex communication connection, the step further includes:

[0033] Receive the connection request sent by the client;

[0034] Determining first response information in response to the connection request, sending the first response information to the client, and establishing a TCP connection with the client based on the first response information;

[0035] receiving a connection upgrade request sent by a client, and verifying the identity of the client and the validity of the connection upgrade request based on the connection upgrade request;

[0036] After determining that the verification is passed, a second response message is sent to the client to determine that the TCP connection is upgraded to a full-duplex communication connection.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a CNC machine tool assembly system, the CNC machine tool assembly system includes a client and a server, and the CNC machine tool assembly device includes:

[0038] The client obtains parameters of a part to be processed by a CNC machine tool;

[0039] After the client establishes a full-duplex communication connection with the server, the client sends the part parameters to the server based on the full-duplex communication connection;

[0040] After establishing a full-duplex communication connection with the client, the server receives the part parameters sent by the client based on the full-duplex communication connection;

[0041] The server inputs the part parameters into a preset macro model for retrieval, and obtains reply information corresponding to the part parameters;

[0042] The server sends the reply information to the client based on the full-duplex communication connection;

[0043] The client receives the reply information fed back by the server based on the full-duplex communication connection, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information;

[0044] After the format inspection result is successful, the client controls the CNC machine tool to perform assembly according to the assembly parameter information.

[0045] In addition, to achieve the above purpose, the present application also proposes a CNC machine tool assembly device, which is applied to a client, and the CNC machine tool assembly device includes:

[0046] An acquisition module is used to acquire parameters of parts to be processed by a CNC machine tool;

[0047] A first sending module is used to send the part parameters to the server based on the full-duplex communication connection after establishing a full-duplex communication connection with the server, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client;

[0048] A first receiving module, configured to receive reply information fed back by the server based on the full-duplex communication connection, determine the type of the reply information, and if the type of the reply information is assembly parameter information, determine the assembly parameter information according to the reply information, and perform format check on the assembly parameter information;

[0049] The assembly module is used to control the CNC machine tool to perform assembly according to the assembly parameter information after the format inspection result is that the format inspection is successful.

[0050] In addition, to achieve the above-mentioned purpose, the present application also proposes a CNC machine tool assembly device, which is applied to a server. The CNC machine tool assembly device includes:

[0051] A second receiving module is used for, after establishing a full-duplex communication connection with the client, receiving part parameters sent by the client based on the full-duplex communication connection, wherein the client sends the parameters of the part to be processed by the CNC machine tool to the server;

[0052] A retrieval module, used for inputting the part parameters into a preset macro model for retrieval, and obtaining reply information corresponding to the part parameters;

[0053] A sending module is used to send the reply information to the client based on the full-duplex communication connection, wherein the client receives the reply information fed back by the server, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information. After the format check result is that the format check is successful, controls the CNC machine tool to perform assembly according to the assembly parameter information.

[0054] In addition, to achieve the above-mentioned purpose, the present application also proposes a CNC machine tool assembly device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the CNC machine tool assembly method described above.

[0055] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the CNC machine tool assembly method described above are implemented.

[0056] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the CNC machine tool assembly method described above are implemented.

[0057] The present application obtains the parameters of the part to be processed by the CNC machine tool; after establishing a full-duplex communication connection with the server, the part parameters are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client, allowing two-way real-time communication between the client and the server without polling or long polling. The server will act as an intermediary to pass these parameters to the preset large model for analysis, and the preset large model is used to retrieve or predict assembly parameter information that matches the part parameters; based on the full-duplex communication connection, the reply information fed back by the server is received, and the type of the reply information is determined. If the type of the reply information is assembly parameter information, the assembly parameter information is determined according to the reply information, and the assembly parameter information is formatted to prevent assembly failure or equipment damage due to data errors; after the format check result is a successful format check, the CNC machine tool is controlled to perform assembly according to the assembly parameter information, and it is guided to perform precise assembly operations. In this application, through real-time communication and data exchange, the flexibility and response rate of the entire assembly process are improved, which helps to achieve intelligent assembly, automatically generate assembly parameters according to part characteristics, reduce dependence on manual experience, and improve the efficiency of the assembly process. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0060] Figure 1 A schematic diagram of a process flow provided for Embodiment 1 of the CNC machine tool assembly method of the present application;

[0061] Figure 2 A schematic diagram of a process flow provided for Embodiment 3 of the CNC machine tool assembly method of the present application;

[0062] Figure 3 This is a schematic diagram of the module structure of the CNC machine tool assembly device 01 according to the embodiment of the present application;

[0063] Figure 4 This is a schematic diagram of the module structure of the CNC machine tool assembly device 02 according to the embodiment of the present application;

[0064] Figure 5 It is a schematic diagram of the equipment structure of the hardware operating environment involved in the CNC machine tool assembly method in the embodiment of the present application.

[0065] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0066] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0067] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0068] Based on this, the embodiment of the present application provides a CNC machine tool assembly method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the CNC machine tool assembly method of the present application.

[0069] In this embodiment, applied to the client, the CNC machine tool assembly method includes steps S10 to S40:

[0070] It should be noted that the client is the control software or interface related to CNC machine tools, which is used to connect and interact with the server and the CNC system. The server is the back-end system that receives client requests and processes data. The server has a preset large model for data analysis, prediction or decision support.

[0071] Step S10, obtaining parameters of a part to be processed by a CNC machine tool;

[0072] It should be noted that part parameters can include the following: geometric parameters, such as size, shape, tolerance; physical parameters, such as material type, hardness, toughness, thermal conductivity, etc.; processing parameters, such as required surface finish, heat treatment requirements, coating requirements, etc.; position parameters, such as the initial position of the part on the workbench, rotation angle, alignment, etc. Generally speaking, part parameters are generated by computer-aided design software, and these parameters can be imported into a computer-aided manufacturing system to generate CNC codes. Alternatively, the operator manually enters the part parameters recorded on paper or electronic engineering drawings. If the part is a standard part or has been processed before, its parameters may have been stored in the processing database, and the corresponding processing parameters can be directly called by the unique identifier of the corresponding part.

[0073] Step S20, after establishing a full-duplex communication connection with the server, the part parameters are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client;

[0074] It should be noted that before this step begins, a full-duplex communication connection has been established between the client and the server. Full-duplex communication allows data to be transmitted in both directions simultaneously, that is, the client can send data to the server, and the server can also send data to the client at the same time, without switching the communication direction. This connection is usually implemented through the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol stack, which can ensure the reliability of data transmission.

[0075] After receiving the part parameters, the server forwards them to the preset large model for retrieval. The preset large model can be a database that stores a large amount of part information, or a machine learning model for prediction and decision-making. The retrieval process may involve querying whether there are similar parts in the database, or using the model to predict the assembly parameters corresponding to the parts. In this embodiment, the preset large model can be a large model dedicated to the machine tool, with the RAG framework at the bottom and the data source being the knowledge base. Unlike the general large model, the general large model is generally directly mounted on the database for access, while the machine tool large model in this embodiment needs to be semi-supervised trained with a large amount of data to learn the representation of features, and then the recommendation algorithm WDL (Wide & Deep Learning) can be used to make recommendations based on the context. WDL can improve the training speed of the model and the feature learning ability of the model.

[0076] The reply information is the reply information corresponding to the part parameters after the preset large model processes the part parameters. The reply information may include the similar part information found, the prediction results or other relevant data.

[0077] Throughout the entire process, full-duplex communication ensures the real-time and efficiency of data, while the preset large model provides data analysis and decision support capabilities, enabling the entire system to intelligently handle complex parts manufacturing needs.

[0078] Step S30, receiving reply information fed back by the server based on the full-duplex communication connection, determining the type of the reply information, and if the type of the reply information is assembly parameter information, determining the assembly parameter information according to the reply information, and performing a format check on the assembly parameter information;

[0079] It should be noted that the assembly parameter information may include assembly sequence, torque requirements, selection of assembly tools, assembly speed, preload pressure, etc. These are all information calculated or retrieved by a preset large model based on the part parameters of the parts to be processed by the CNC machine tool.

[0080] To ensure the integrity and correctness of the data, after receiving the assembly parameter information, the client will immediately perform a format check on the data. The format check can include checking whether the data structure conforms to the predefined format and whether the data field exists and the type is correct. For example, check the integrity of the data field to ensure that all necessary parameters exist and there are no missing items; check the data type is correct, such as the torque value should be a numeric type, not a string; check the data range is reasonable, such as the torque value should be within a reasonable physical range to avoid exceeding the capabilities of the machine tool; consistency check, such as there should be no repeated steps or discontinuous serial numbers in the assembly sequence.

[0081] It is understandable that format inspection is an important step to ensure the safety and efficiency of the assembly process. If the data format is incorrect or the data is wrong, it may lead to improper operation of the CNC machine tool, causing equipment damage, reduced processing quality and even safety accidents. Through format inspection, errors can be discovered and corrected early to avoid unnecessary subsequent losses. If the data inspection fails, the client should have a mechanism to re-request the data or notify the operator for manual intervention.

[0082] Step S40, after the format inspection result is successful, the CNC machine tool is controlled to perform assembly according to the assembly parameter information.

[0083] It should be noted that the assembly parameter information that has passed the format inspection contains all the necessary details, such as assembly sequence, torque setting, speed control, tool selection, etc. The client needs to decode this parameter information, understand its specific meaning and requirements, and then generate control instructions. Control instructions are specific codes or signals that can be executed by CNC machine tools, which can include starting a specific motor, adjusting the speed, changing the feed rate, setting the torque limit, activating a specific assembly tool, etc.

[0084] In response to control instructions, the CNC machine tool starts to perform assembly operations, including moving to the correct assembly position, tightening screws or connecting parts with appropriate torque, ensuring precise alignment and positioning between parts, monitoring feedback during the assembly process, such as torque, displacement, etc. to ensure that the operation is within the specified tolerance range, monitoring and feedback, etc.

[0085] This embodiment obtains the parameters of the part to be processed by the CNC machine tool; after establishing a full-duplex communication connection with the server, the part parameters are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client, allowing two-way real-time communication between the client and the server without polling or long polling. The server will act as an intermediary to pass these parameters to the preset large model for analysis, and the preset large model is used to retrieve or predict assembly parameter information matching the part parameters; based on the full-duplex communication connection, the reply information fed back by the server is received, and the type of the reply information is determined. If the type of the reply information is assembly parameter information, the assembly parameter information is determined according to the reply information, and the assembly parameter information is formatted to prevent assembly failure or equipment damage caused by data errors; after the format check result is that the format check is successful, the CNC machine tool is controlled to perform assembly according to the assembly parameter information, and it is guided to perform precise assembly operations. In this embodiment, through real-time communication and data exchange, the flexibility and response rate of the entire assembly process are improved, which helps to achieve intelligent assembly, automatically generate assembly parameters according to part characteristics, reduce dependence on manual experience, and improve the efficiency of the assembly process.

[0086] In a feasible implementation, step S30 may include steps A10 to A40:

[0087] In the CNC machine tool assembly method, the preset large model in the server may return multiple types of reply information, including assembly parameter information and parameter supplementary information. Each type of information corresponds to a different subsequent processing flow.

[0088] It should be noted that the assembly parameter information is the target information required by this method, and the assembly parameter information is ultimately used directly for the assembly of CNC machine tools. Therefore, when the reply information is assembly parameter information, it means that this round of assembly parameter inquiries has been completed and can be used directly for actual assembly operations. The parameter supplementary information is that the preset large model cannot successfully calculate or directly predict the assembly parameter information based on the input part parameters, and the client needs to supplement the input information so that the preset large model can continue to predict this round of inquiries until the assembly parameter information can be successfully predicted. For example, if the type of the reply information is assembly parameter information, the specific data content of the assembly parameter information can be directly returned, and if the type of the reply information is parameter supplementary information, the reply information may be "need to supplement the part size" and other similar information.

[0089] That is to say, the parameter supplement information usually contains the supplement or correction of the existing part parameters, which may require further processing by the client. For example, if the supplement parameters are determined and sent to the server again, it means that the assembly parameter information has not been completely determined and may require further iteration and optimization. When the server returns the assembly parameter information, it means that the complete assembly parameters have been obtained, and the client can stop the loop processing and prepare to control the CNC machine tool for assembly according to these parameters.

[0090] Step A10, if the type of the reply information is parameter supplementary information, determining the parameter supplementary information corresponding to the part parameter according to the reply information;

[0091] It should be noted that in the early stages of CNC machine tool assembly, the part parameters initially sent to the server may not be sufficient to generate the most optimized assembly parameter information due to the uncertainty of part characteristics or changes in processing conditions. Therefore, after receiving the preliminary part parameters, the server may find that more details are needed or certain assumptions are corrected to more accurately calculate or retrieve assembly parameters. Parameter supplementary information usually contains supplements or corrections to the original part parameters, aiming to refine or adjust the assembly parameters to better adapt to the actual characteristics of the part and the processing environment. Supplementary information may include additional geometric properties of the part, material properties, environmental conditions, processing accuracy requirements, etc.

[0092] Step A20, determining the supplementary parameters corresponding to the part parameters according to the parameter supplementary information;

[0093] Step A30, sending the supplementary parameters to the server, wherein the server inputs the part parameters and the supplementary parameters into the preset macro model for retrieval, obtains updated reply information corresponding to the part parameters, and sends the updated reply information to the client;

[0094] The server takes the part parameters and supplementary parameters as input and submits them to the preset big data analysis model. Based on the input parameters, the big model retrieves similar cases in the database and calculates the updated response information based on the patterns and rules learned during model training.

[0095] Step A40, return to the execution step: determine the type of the reply information, until it is detected that the type of the reply information is assembly parameter information, execute the step: determine the assembly parameter information according to the reply information.

[0096] It is understandable that even for the second search, the client still needs to first determine the type of reply information and take appropriate processing measures based on the actual type of information. If it is not the required assembly parameter information, the client will continue to monitor and receive new information and repeat steps A20 to A40 until the correct type is detected.

[0097] In this embodiment, if the type of the reply information is parameter supplementary information, the parameter supplementary information corresponding to the part parameter is determined according to the reply information; the supplementary parameters corresponding to the part parameter are determined according to the parameter supplementary information, and the assembly details of the part are determined more accurately by collecting additional parameter information; the supplementary parameters are sent to the server, wherein the server inputs the part parameter and the supplementary parameters into the preset large model for retrieval, obtains the updated reply information corresponding to the part parameter, and sends the updated reply information to the client, combines the original part parameter with the supplementary parameters, and obtains accurate assembly information; returns to the execution step: determining the type of the reply information, until it is detected that the type of the reply information is assembly parameter information, the execution step: then determining the assembly parameter information according to the reply information, forming a closed loop, continuously optimizing and refining the assembly parameters of the part, until the final confirmed assembly parameter information is obtained. In this embodiment, through a full-duplex communication connection, the client and the server can communicate in a two-way manner, continuously adjust and supplement the parameter information, until the optimal assembly parameter configuration is achieved. Once the assembly parameter information is determined, the CNC machine tool can be guided to perform actual assembly operations according to these parameters. This mechanism ensures the accuracy and flexibility of the assembly process and is suitable for complex manufacturing scenarios that require high customization and dynamic adjustment.

[0098] In a feasible implementation manner, before step S20, steps B10 to B40 may also be included:

[0099] Step B10, initiating a connection request to the server;

[0100] In scenarios where a persistent connection needs to be established, such as WebSocket communication, the client first needs to initiate a connection request to the server through the TCP protocol and perform a three-way handshake to establish a reliable transport layer connection.

[0101] Step B20, receiving a first response message sent by the server in response to the connection request, and establishing a TCP connection with the server based on the first response message;

[0102] It should be noted that when the client sends a connection request to the server, the server will respond to this request, usually in the form of a TCP SYN (Synchronize Sequence Numbers) packet, which is the first response information. This SYN packet contains the server's TCP port information and a random number called a sequence number, which is used to mark the beginning of this connection. After receiving this SYN packet, the client will check the information contained in it to ensure that it matches its own connection request. This includes confirming whether the server's IP address and port number are correct, and checking the validity of the sequence number.

[0103] Based on the first response information, the client will construct and send a SYN-ACK (Acknowledge character) packet back to the server. This packet contains the client's own sequence number and an acknowledgment of the server's SYN packet, indicating that the client is ready to establish a connection. After receiving the client's SYN-ACK packet, the server will send a packet containing only the ACK flag, which confirms the client's sequence number and completes the TCP three-way handshake process. Once the client receives the server's ACK confirmation, the TCP connection is successfully established. From this moment on, two-way data transmission can begin between the client and the server without the need for an additional handshake process.

[0104] Step B30, sending a connection upgrade request to the server, where the connection upgrade request is used to request upgrading the TCP connection to a full-duplex communication connection;

[0105] It should be noted that in step B20, a TCP connection has been established between the client and the server through a three-way handshake. This is a reliable, connection-oriented protocol for transmitting data between the client and the server. However, the standard HTTP (Hypertext Transfer Protocol) protocol is based on TCP, and its working method is that the client sends a request, the server responds, and then the connection is closed. Unless technologies such as long polling are used, true real-time two-way communication cannot be achieved.

[0106] In step B30, the client sends a special HTTP request to the server, which includes the Upgrade and Connection HTTP headers, requesting to upgrade the current TCP connection to a WebSocket connection.

[0107] Step B40: receiving second response information from the server in response to the connection upgrade request, and determining that the TCP connection is upgraded to a full-duplex communication connection.

[0108] After receiving the upgrade request, if the server supports and agrees to the upgrade, it will also include the Upgrade and Connection headers in the response and convert the connection state to WebSocket. In addition, the server will also send a Sec-WebSocket-Accept header, which contains the hash value of the Sec-WebSocket-Key header sent by the client in the request to verify the legitimacy of the connection. Once the server sends a response containing the correct upgrade header, the connection between the client and the server is considered to be upgraded to a WebSocket connection. This means that now the client and server can send data to each other at any time, rather than just being limited to the traditional mode of the client initiating a request and the server responding.

[0109] In this embodiment, an efficient two-way communication channel is established between the client and the server, which provides a basis for subsequent data exchange and the sending of control commands. The establishment of a full-duplex communication connection, especially through the WebSocket upgrade, is particularly important for application scenarios with high real-time requirements. It can reduce communication delays and improve the speed and reliability of data transmission.

[0110] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and no further description will be given later. On this basis, applied to the client, the assembly operation of the CNC machine tool has multiple sequential assembly operations, and the CNC machine tool assembly method can also include steps C10~C60:

[0111] Step C10, obtaining part parameters of a part to be processed by a CNC machine tool, machine status parameters of the CNC machine tool, and corresponding multiple assembly operations;

[0112] It should be noted that the entire assembly process may include multiple assembly operations, such as: parts preparation and inspection, spindle box and turret pre-installation, optical and mechanical installation, Z-axis lead screw and hanging angle installation, protective sheet metal, electrical cabinet, hydraulic and pneumatic parts installation, cable connection, machine tool debugging, cutting accuracy test, water leakage inspection, continuous operation test, final acceptance, etc.

[0113] The machine tool status parameters reflect the current condition and performance of the machine tool, and may include the following: accuracy verification status, which verifies whether the assembly meets the design requirements by measuring the machine tool's positioning accuracy, repeat positioning accuracy, straightness, verticality, parallelism and other parameters; functional test status, which performs a functional test after each assembly step to verify whether each component, such as the feed axis, spindle, and tool magazine, can operate normally; clearance adjustment status, which verifies whether the clearance between each moving component, such as the slide rail, lead screw, and bearing, meets the specifications during the assembly process; electrical parameter verification status, which checks the servo motor's current, voltage, encoder signal, etc., to determine whether the electrical system is normal Working, no abnormal alarm; thermal deformation monitoring status, monitoring temperature distribution and thermal deformation; lubrication system inspection status, confirming whether the lubrication system is operating normally and whether the lubrication points are fully lubricated; safety inspection status, ensuring that all safety devices such as door locks, emergency stop buttons and protective covers are in working condition; data recording status, recording the status parameters after each assembly, which is convenient for tracking the historical status of the machine tool; error compensation status, if assembly error is detected, compensation is made through software or hardware adjustment; system calibration status, after assembly and debugging are completed, the entire system needs to be calibrated to ensure that all parameters are set correctly to achieve optimal performance.

[0114] Step C20, determining a first assembly operation according to the operation sequence of each assembly operation, and obtaining operation information corresponding to the first assembly operation;

[0115] It should be noted that the operation sequence of each assembly operation can be determined according to the preset machine tool assembly sequence corresponding to each part. In the initial execution process, the assembly operation with the first order is determined first, and then the assembly parameter information corresponding to the assembly operation is predicted. After the prediction is completed, all subsequent assembly operations are predicted in turn. The operation information is usually the type of the corresponding assembly operation and the required parameter information.

[0116] Step C30, after establishing a full-duplex communication connection with the server, the part parameters, machine tool status parameters and operation information are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters, machine tool status parameters and operation information into a preset large model for retrieval, obtains reply information corresponding to the operation information, and sends the reply information to the client;

[0117] In this embodiment, the preset large model can predict a single assembly operation, and can predict assembly parameter information based on part parameters, current state parameters of the machine tool, and operation information of the assembly operation to be predicted.

[0118] Step C40, receiving reply information fed back by the server based on the full-duplex communication connection, determining the type of the reply information, and if the type of the reply information is assembly parameter information, determining the assembly parameter information corresponding to the operation information according to the reply information, and performing format check on the assembly parameter information;

[0119] Step C50, after the format inspection result is successful, the CNC machine tool is controlled to perform assembly according to the assembly parameter information;

[0120] Step C60, after the assembly is successful, obtain the updated machine state parameters of the CNC machine tool and the first assembly operation of the next operation sequence, and return to the execution step: obtain the operation information corresponding to the first assembly operation until all assembly operations are executed.

[0121] It should be noted that in step C50, only one assembly operation in the entire assembly process is executed, and subsequently the machine tool assembly parameter information corresponding to all the remaining assembly operations needs to be predicted in turn until the last assembly operation is executed, and then the entire assembly process can be completed.

[0122] This embodiment divides the assembly process of the CNC machine tool into multiple different assembly operations according to the time sequence of assembly, and introduces the state parameters of the machine tool. The assembly parameter information of only one assembly operation is predicted at a time. After executing one assembly operation, the state parameters of the machine tool are updated, and the next assembly operation is predicted based on the updated state parameters. The dynamic adjustment and optimization of the assembly process of the CNC machine tool is realized, the dependence on manual experience is reduced, and the efficiency and accuracy of assembly are improved. The parameters of each assembly operation are calculated based on the real-time status and the preset model, which ensures the accuracy and reliability of each assembly operation, and also provides a more accurate reference for future assembly operations.

[0123] The present application also provides a method for assembling a CNC machine tool, referring to Figure 2 , Figure 2 This is a flow chart of the third embodiment of the CNC machine tool assembly method of the present application.

[0124] In this embodiment, applied to a server, the CNC machine tool assembly method includes steps D10 to D30:

[0125] It should be noted that the client is the control software or interface related to CNC machine tools, which is used to connect and interact with the server and the CNC system. The server is the back-end system that receives client requests and processes data. The server has a preset large model for data analysis, prediction or decision support.

[0126] Step D10, after establishing a full-duplex communication connection with the client, receiving the part parameters sent by the client based on the full-duplex communication connection, wherein the client sends the part parameters to be processed by the CNC machine tool to the server;

[0127] Before this step begins, a basic connection has been established between the server and the client through the TCP protocol, and may be further upgraded to a full-duplex communication connection, such as a WebSocket connection. A full-duplex connection allows data to be transmitted in both directions at the same time, that is, the server can not only receive data from the client, but also send data to the client at any time without waiting for the client request or ending the current communication cycle.

[0128] It should be noted that part parameters can include the following: geometric parameters, such as size, shape, tolerance; physical parameters, such as material type, hardness, toughness, thermal conductivity, etc.; processing parameters, such as required surface finish, heat treatment requirements, coating requirements, etc.; position parameters, such as the initial position of the part on the workbench, rotation angle, alignment method, etc.

[0129] Step D20, inputting the part parameters into the preset large model for retrieval, and obtaining the reply information corresponding to the part parameters;

[0130] After receiving the part parameters, the server forwards them to a preset large model for retrieval. The preset large model can be a database that stores a large amount of part information, or a machine learning model for prediction and decision-making. The retrieval process may involve querying whether there are similar parts in the database, or using a model to predict the corresponding assembly parameters of the part.

[0131] When part parameters are input into the big model, the model will search the internal algorithm or database based on these parameters to find the record or pattern that best matches the input part parameters, which can include known assembly parameters, processing strategies, possible substitutes, or processing methods for similar parts. The result of the search is a set of response information for the input part parameters. It can be specific assembly parameters, such as the size and location of bolt holes, a list of required tools, processing sequence and methods, etc., or it can be an assessment of the feasibility of the part or a recommended modification plan.

[0132] The reply information is the reply information corresponding to the part parameters after the preset large model processes the part parameters. The reply information can include the similar part information found, the prediction results or other related data. Through the intelligent retrieval and matching mechanism, the assembly efficiency and accuracy are improved.

[0133] In a feasible implementation manner, the type of reply information includes assembly parameter information and parameter supplementary information, and step D20 may include steps D21 to D23:

[0134] Step D21, inputting the part parameters into the preset large model for retrieval, determining the retrieval results, and determining whether the part parameters need to be supplemented according to the retrieval results;

[0135] In the CNC machine tool assembly method, the preset large model in the server may return multiple types of reply information, including assembly parameter information and parameter supplementary information. Each type of information corresponds to a different subsequent processing flow.

[0136] It should be noted that the assembly parameter information is the target information required by this method, and the assembly parameter information is ultimately used directly for the assembly of CNC machine tools. Therefore, when the reply information is assembly parameter information, it means that this round of assembly parameter inquiries has been completed and can be used directly for actual assembly operations. The parameter supplementary information is that the preset large model cannot successfully calculate or directly predict the assembly parameter information based on the input part parameters, and the client needs to supplement the input information so that the preset large model can continue to predict this round of inquiries until the assembly parameter information can be successfully predicted. For example, if the type of the reply information is assembly parameter information, the specific data content of the assembly parameter information can be directly returned, and if the type of the reply information is parameter supplementary information, the reply information may be "need to supplement the part size" and other similar information.

[0137] That is to say, the parameter supplement information usually contains the supplement or correction of the existing part parameters, which may require further processing by the client. For example, if the supplement parameters are determined and sent to the server again, it means that the assembly parameter information has not been completely determined and may require further iteration and optimization. When the server returns the assembly parameter information, it means that the complete assembly parameters have been obtained, and the client can stop the loop processing and prepare to control the CNC machine tool for assembly according to these parameters.

[0138] It should be further explained that, in an embodiment of the present application, the preset large model can be a dedicated machine tool large model, which is built based on the RAG (Retrieval-Augmented Generation) framework. The RAG framework combines the advantages of retrieval technology and generative models, allowing the model to retrieve relevant information in an external knowledge base when generating a response. The model can not only generate responses based on its training data, but also reference external knowledge to enhance the accuracy and richness of the generation. The knowledge base of the dedicated machine tool large model comes from professional data and literature related to the machine tool, including technical specifications, operating manuals, troubleshooting guides, maintenance records, material science data, mechanical engineering principles, etc. Such a knowledge base provides the model with rich domain knowledge, enabling it to more accurately understand and generate text related to machine tools.

[0139] Step D22, if supplementation is required, generating parameter supplementation information corresponding to the part parameters, and using the parameter supplementation information as reply information;

[0140] It should be noted that in the early stages of CNC machine tool assembly, the part parameters initially sent to the server may not be sufficient to generate the most optimized assembly parameter information due to the uncertainty of part characteristics or changes in processing conditions. Therefore, after receiving the preliminary part parameters, the server may find that more details are needed or certain assumptions are corrected to more accurately calculate or retrieve assembly parameters. Parameter supplementary information usually contains supplements or corrections to the original part parameters, aiming to refine or adjust the assembly parameters to better adapt to the actual characteristics of the part and the processing environment. Supplementary information may include additional geometric properties of the part, material properties, environmental conditions, processing accuracy requirements, etc.

[0141] It is understandable that first, identify which specific parameters are missing or not clearly stated. Based on the identified missing or ambiguous parameters, generate a detailed request for parameter supplementary information. This request should clearly indicate which parameters are required. In order to facilitate the client's understanding and response, the parameter supplementary information will be presented in a structured format, which may be in the form of a table, list or other easy-to-read form. Once the supplementary information is sent, the server will enter a waiting state until it receives a response from the client, i.e., the supplementary parameters. After receiving the supplementary parameters sent by the system, the complete part parameters will be updated and submitted according to the supplementary information request, and a new round of retrieval and verification will be started again from step D21.

[0142] In a feasible implementation manner, after step D22, steps E10 to E30 may also be included:

[0143] Step E10, receiving supplementary parameters corresponding to the part parameters sent by the client, wherein the client determines the parameter supplementary information corresponding to the part parameters according to the reply information, determines the supplementary parameters corresponding to the part parameters according to the parameter supplementary information, and sends the supplementary parameters to the server;

[0144] It can be understood that by adding supplementary parameters, additional parameter details can be added to reduce the uncertainty in the retrieval process, thereby improving the matching degree and accuracy of the assembly parameters.

[0145] Step E20, inputting the part parameters and the supplementary parameters into the preset large model for secondary retrieval to determine the retrieval results;

[0146] It should be noted that the secondary search is relative to the first preliminary search. The first search is performed in step D21, when the preset large model is evaluated based only on the initial part parameters. The secondary search is performed after the supplementary parameters are received and integrated.

[0147] Step E30, return to the execution step: determine whether the part parameters need to be supplemented according to the search results.

[0148] Based on the results of the secondary search, the preset macro model will determine whether further parameter supplementation or adjustment is required. If the parameters are considered to be sufficiently complete and applicable, the process continues to the next step, such as generating assembly parameter information (step D23). If there are still problems, the system may need to return to step D22 or E10 to require the client to provide additional supplementary parameters or revise the parameters.

[0149] In this embodiment, an iterative feedback mechanism is used to ensure that part parameters can generate more accurate assembly parameter information, thereby avoiding generation errors or delays caused by insufficient information.

[0150] Step D23: if supplementation is not required, assembly parameter information corresponding to the part parameters is generated, and the assembly parameter information is used as reply information.

[0151] In this embodiment, through full-duplex communication connection, the client and the server can communicate bidirectionally, continuously adjust and supplement parameter information until the optimal assembly parameter configuration is achieved. Once the assembly parameter information is determined, the CNC machine tool can be guided to perform actual assembly operations according to these parameters. This mechanism ensures the accuracy and flexibility of the assembly process and is suitable for complex manufacturing scenarios that require high customization and dynamic adjustment.

[0152] Step D30, sending the reply information to the client based on the full-duplex communication connection, wherein the client receives the reply information fed back by the server, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information. After the format check result is that the format check is successful, controls the CNC machine tool to perform assembly according to the assembly parameter information.

[0153] It should be noted that the server uses a full-duplex communication connection established with the client, allowing data to be transmitted in both directions simultaneously without waiting for the alternating process of receiving or sending data. The full-duplex communication connection is usually based on the WebSocket protocol, allowing real-time two-way data exchange between the server and the client.

[0154] The server sends the encapsulated reply to the client over the network. This process can be completed quickly under a full-duplex connection because the data can be sent proactively without waiting for the client's request. The real-time nature of the full-duplex connection allows the server to send the reply almost immediately after calculating or retrieving the reply, reducing latency and making the assembly process more efficient and responsive.

[0155] In this embodiment, from receiving part parameters to calculating assembly parameter information, and then returning the results to the client, the automation and intelligence of the entire assembly process are ensured, the advantages of full-duplex communication are fully utilized, real-time interaction and efficient processing of data are realized, and the server can provide precise assembly guidance for CNC machine tools, thereby improving assembly efficiency and assembly quality.

[0156] In a feasible implementation manner, step D10 may further include steps F10 to F40:

[0157] Step F10, receiving a connection request sent by the client;

[0158] In scenarios where a persistent connection needs to be established, such as WebSocket communication, the client first needs to initiate a connection request to the server through the TCP protocol and perform a three-way handshake to establish a reliable transport layer connection.

[0159] When a client wants to establish a connection with a server, it sends a connection request, usually a SYN packet in the TCP protocol. This packet contains some information about the client, such as the sequence number the client wants to use, and connection parameters such as the maximum segment size, window size, and other option fields.

[0160] Step F20, determining first response information in response to the connection request, sending the first response information to the client, and establishing a TCP connection with the client based on the first response information;

[0161] When the server receives the connection request sent by the client, it needs to construct a response, namely the first response information. This response is actually a SYN-ACK packet, which contains the confirmation of the client's SYN request and the server's own SYN flag, indicating that the server is willing to establish a connection. The server sends the constructed SYN-ACK packet back to the client through the network. This packet carries the server's confirmation information and its own information, which is a key step in establishing a TCP connection. After receiving the server's SYN-ACK packet, the client will perform a third handshake, that is, send an ACK packet as a confirmation. This packet contains a confirmation of the server's sequence number, indicating that the client agrees to use the sequence number proposed by the server to start data transmission. Once the server receives the client's ACK confirmation, the TCP connection is considered to be successfully established.

[0162] Step F30, receiving a connection upgrade request sent by the client, and verifying the identity of the client and the validity of the connection upgrade request based on the connection upgrade request;

[0163] After the TCP connection has been established, if the client wants to upgrade from a normal HTTP or HTTPS connection to a full-duplex communication connection, it will send a specific HTTP request to the server. This request contains the Upgrade and Connection headers, indicating that the client wants to upgrade the current connection to the WebSocket protocol.

[0164] After receiving the connection upgrade request, the server needs to verify the identity of the client. Authentication includes checking whether the request contains valid authentication information, such as HTTP basic authentication or tokens. The validity verification of the connection upgrade request includes checking the Origin header of the request to ensure that the request comes from an allowed source, and the server will check other header information in the request, such as Host and Sec-WebSocket-Key, to ensure the integrity and security of the request.

[0165] Step F40, after determining that the verification is passed, a second response message is sent to the client to determine that the TCP connection is upgraded to a full-duplex communication connection.

[0166] If all verifications pass, the server will send a response with an HTTP 101 status code, which is the second response information, indicating that the connection upgrade request is accepted and the connection has been upgraded to the WebSocket protocol. The response should contain the Upgrade and Connection headers, as well as a Sec-WebSocket-Accept header, the value of which is calculated based on the Sec-WebSocket-Key header in the client request through a specific algorithm.

[0167] After sending the above response, the original HTTP / TCP connection will no longer be regarded as a normal HTTP connection, but will be redefined as a full-duplex WebSocket connection. A full-duplex communication connection means that data can be transmitted in both directions at the same time without waiting for the response from the other party. Under the WebSocket protocol, once the connection upgrade is completed, both the client and the server can send messages to each other at any time.

[0168] In this embodiment, an efficient two-way communication channel is established between the client and the server, which provides a basis for subsequent data exchange and the sending of control commands. The establishment of a full-duplex communication connection, especially through the WebSocket upgrade, is particularly important for application scenarios with high real-time requirements. It can reduce communication delays and improve the speed and reliability of data transmission.

[0169] Based on the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the third embodiment can be referred to the above description, and will not be repeated in the following. On this basis, when applied to the server, the assembly operation of the CNC machine tool has multiple sequential assembly operations, and the CNC machine tool assembly method can also include steps G10 to G30:

[0170] Step G10, after establishing a full-duplex communication connection with the client, receiving part parameters sent by the client based on the full-duplex communication connection, wherein the client sends the part parameters to be processed by the CNC machine tool, the machine tool status parameters and the operation information to the server, wherein the client sends the part parameters of the part to be processed by the CNC machine tool, the machine tool status parameters and the operation information of the first assembly operation to the server;

[0171] It should be noted that the operation sequence of each assembly operation can be determined according to the preset machine tool assembly sequence corresponding to each part. In the initial execution process, the assembly operation with the first order is determined first, and then the assembly parameter information corresponding to the assembly operation is predicted. After the prediction is completed, all subsequent assembly operations are predicted in turn. The operation information is usually the type of the corresponding assembly operation and the required parameter information.

[0172] Step G20, inputting part parameters, machine tool status parameters and operation information into the preset large model for retrieval, and obtaining reply information corresponding to the operation information;

[0173] In this embodiment, the preset large model can predict a single assembly operation, and can predict assembly parameter information based on part parameters, current state parameters of the machine tool, and operation information of the assembly operation to be predicted.

[0174] Step G30, sending a reply message to the client based on a full-duplex communication connection, wherein the client receives the reply message fed back by the server, determines the type of the reply message, and if the type of the reply message is assembly parameter information, determines the assembly parameter information according to the reply message, and performs a format check on the assembly parameter information. After the format check result is that the format check is successful, controls the CNC machine tool to perform assembly according to the assembly parameter information. After the assembly is successful, obtains the updated machine tool status parameters of the CNC machine tool and the first assembly operation of the next operation sequence, and returns to the execution step: obtains the operation information corresponding to the first assembly operation, until all assembly operations are executed.

[0175] It should be noted that in step G20, only the assembly parameter information of one assembly operation in the entire assembly process is predicted, and subsequently the machine tool assembly parameter information corresponding to all the remaining assembly operations needs to be predicted in turn until the last assembly operation is executed, and then the entire assembly process can be completed.

[0176] This embodiment divides the assembly process of the CNC machine tool into multiple different assembly operations according to the time sequence of assembly, and introduces the state parameters of the machine tool. The assembly parameter information of only one assembly operation is predicted at a time. After executing one assembly operation, the state parameters of the machine tool are updated, and the next assembly operation is predicted based on the updated state parameters. The dynamic adjustment and optimization of the assembly process of the CNC machine tool is realized, the dependence on manual experience is reduced, and the efficiency and accuracy of assembly are improved. The parameters of each assembly operation are calculated based on the real-time status and the preset model, which ensures the accuracy and reliability of each assembly operation, and also provides a more accurate reference for future assembly operations.

[0177] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the CNC machine tool assembly method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0178] The present application also provides a CNC machine tool assembly system, the CNC machine tool assembly system comprising a client and a server, the CNC machine tool assembly system comprising:

[0179] The client obtains parameters of a part to be processed by a CNC machine tool;

[0180] After the client establishes a full-duplex communication connection with the server, the client sends the part parameters to the server based on the full-duplex communication connection;

[0181] After establishing a full-duplex communication connection with the client, the server receives the part parameters sent by the client based on the full-duplex communication connection;

[0182] The server inputs the part parameters into a preset macro model for retrieval, and obtains reply information corresponding to the part parameters;

[0183] The server sends the reply information to the client based on the full-duplex communication connection;

[0184] The client receives the reply information fed back by the server based on the full-duplex communication connection, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information;

[0185] After the format inspection result is successful, the client controls the CNC machine tool to perform assembly according to the assembly parameter information.

[0186] The CNC machine tool assembly system provided by the present application adopts the CNC machine tool assembly method in the above embodiment, which can solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency. Compared with the prior art, the beneficial effects of the CNC machine tool assembly system provided by the present application are the same as the beneficial effects of the CNC machine tool assembly method provided by the above embodiment, and other technical features in the CNC machine tool assembly system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0187] This application also provides a CNC machine tool assembly device 01, which is applied to the client, please refer to Figure 3 , the CNC machine tool assembly device comprises:

[0188] An acquisition module 10 is used to acquire parameters of a part to be processed by a CNC machine tool;

[0189] A first sending module 20 is used to send the part parameters to the server based on the full-duplex communication connection after establishing a full-duplex communication connection with the server, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client;

[0190] A first receiving module 30 is used to receive the reply information fed back by the server based on the full-duplex communication connection, determine the type of the reply information, and if the type of the reply information is assembly parameter information, determine the assembly parameter information according to the reply information, and perform format check on the assembly parameter information;

[0191] The assembly module 40 is used to control the CNC machine tool to perform assembly according to the assembly parameter information after the format inspection result is that the format inspection is successful.

[0192] The CNC machine tool assembly device provided by the present application adopts the CNC machine tool assembly method in the above-mentioned embodiment 1, which can solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency. Compared with the prior art, the beneficial effects of the CNC machine tool assembly device provided by the present application are the same as the beneficial effects of the CNC machine tool assembly method provided by the above-mentioned embodiment, and other technical features in the CNC machine tool assembly device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0193] This application also provides a CNC machine tool assembly device 02, which is applied to a server, please refer to Figure 4 , the CNC machine tool assembly device comprises:

[0194] The second receiving module 50 is used for receiving the part parameters sent by the client based on the full-duplex communication connection after establishing a full-duplex communication connection with the client, wherein the client sends the part parameters to be processed by the CNC machine tool to the server;

[0195] A search module 60, for inputting the part parameters into a preset macro model for search, and obtaining reply information corresponding to the part parameters;

[0196] The sending module 40 is used to send the reply information to the client based on the full-duplex communication connection, wherein the client receives the reply information fed back by the server, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information. After the format check result is that the format check is successful, the CNC machine tool is controlled to perform assembly according to the assembly parameter information.

[0197] The CNC machine tool assembly device provided by the present application adopts the CNC machine tool assembly method in the above-mentioned embodiment 2, which can solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency. Compared with the prior art, the beneficial effects of the CNC machine tool assembly device provided by the present application are the same as the beneficial effects of the CNC machine tool assembly method provided by the above-mentioned embodiment, and other technical features in the CNC machine tool assembly device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0198] The present application provides a CNC machine tool assembly device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the CNC machine tool assembly method in the above-mentioned embodiment one or embodiment two.

[0199] Reference below Figure 5 , which shows a schematic diagram of the structure of a CNC machine tool assembly device suitable for implementing the embodiment of the present application. The CNC machine tool assembly device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The CNC machine tool assembly equipment shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0200] like Figure 5As shown, the CNC machine tool assembly equipment may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the CNC machine tool assembly equipment are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the CNC machine tool assembly device to communicate wirelessly or wired with other devices to exchange data. Although the CNC machine tool assembly device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0201] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0202] The CNC machine tool assembly equipment provided by the present application adopts the CNC machine tool assembly method in the above-mentioned embodiment 1 or embodiment 2, which can solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency. Compared with the prior art, the beneficial effects of the CNC machine tool assembly equipment provided by the present application are the same as the beneficial effects of the CNC machine tool assembly method provided by the above-mentioned embodiment, and other technical features in the CNC machine tool assembly equipment are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0203] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0204] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0205] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the CNC machine tool assembly method in the above-mentioned embodiment.

[0206] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned CNC machine tool assembly method, and can solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the CNC machine tool assembly method provided by the above-mentioned embodiment, and will not be repeated here.

[0207] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the CNC machine tool assembly method as described above are implemented.

[0208] The computer program product provided by the present application can solve the technical problem that the current CNC machine tool assembly relies on manual operation and has low assembly efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the CNC machine tool assembly method provided by the above embodiment, which will not be described in detail here.

[0209] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for assembling a CNC machine tool, characterized in that: Applied to the client, the CNC machine tool assembly method includes: Obtain the parameters of the parts to be processed by the CNC machine tool; After establishing a full-duplex communication connection with the server, the part parameters are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters into a preset large model for retrieval, obtains reply information corresponding to the part parameters, and sends the reply information to the client; Receiving reply information fed back by the server based on the full-duplex communication connection, determining the type of the reply information, and if the type of the reply information is assembly parameter information, determining the assembly parameter information according to the reply information, and performing a format check on the assembly parameter information; After the format inspection result is that the format inspection is successful, controlling the CNC machine tool to perform assembly according to the assembly parameter information; Wherein, after the step of determining the type of the reply information, the method further includes: If the type of the reply information is parameter supplementary information, determining the parameter supplementary information corresponding to the part parameter according to the reply information; Determine the supplementary parameters corresponding to the part parameters according to the parameter supplementary information; Sending the supplementary parameters to the server, wherein the server inputs the part parameters and the supplementary parameters into a preset macro model for retrieval, obtains updated reply information corresponding to the part parameters, and sends the updated reply information to the client; Return to the execution step: determine the type of the reply information until it is detected that the type of the reply information is assembly parameter information; Among them, the assembly operation of the CNC machine tool includes multiple sequential assembly operations, and the CNC machine tool assembly method further includes: Obtaining part parameters of a part to be processed by a CNC machine tool, machine status parameters of the CNC machine tool, and corresponding multiple assembly operations; Determine a first assembly operation according to the operation sequence of each assembly operation, and obtain operation information corresponding to the first assembly operation; After establishing a full-duplex communication connection with the server, the part parameters, machine tool status parameters and operation information are sent to the server based on the full-duplex communication connection, wherein the server inputs the part parameters, machine tool status parameters and operation information into a preset large model for retrieval, obtains reply information corresponding to the operation information, and sends the reply information to the client; Receiving reply information fed back by the server based on the full-duplex communication connection, determining the type of the reply information, and if the type of the reply information is assembly parameter information, determining the assembly parameter information corresponding to the operation information according to the reply information, and performing a format check on the assembly parameter information; After the format inspection result is successful, the CNC machine tool is controlled to perform assembly according to the assembly parameter information; After the assembly is successful, the updated machine state parameters of the CNC machine tool and the first assembly operation of the next operation sequence are obtained, and the execution step is returned to: obtaining the operation information corresponding to the first assembly operation until all assembly operations are executed.

2. The CNC machine tool assembly method according to claim 1, characterized in that: Before the step of sending the part parameters to the server based on the full-duplex communication connection, the step further includes: Initiate a connection request to the server; Receiving first response information sent by the server in response to the connection request, and establishing a TCP connection with the server based on the first response information; Sending a connection upgrade request to the server, wherein the connection upgrade request is used to request upgrading the TCP connection to a full-duplex communication connection; The receiving server responds to the connection upgrade request with second response information, and determines that the TCP connection is upgraded to a full-duplex communication connection.

3. A method for assembling a CNC machine tool, characterized in that: Applied to a server, the CNC machine tool assembly method comprises: After establishing a full-duplex communication connection with a client, receiving part parameters sent by the client based on the full-duplex communication connection, wherein the client is the client according to claim 1, and the client sends the parameters of the part to be processed by the CNC machine tool to the server; Input the part parameters into the preset macro model for retrieval, and obtain reply information corresponding to the part parameters; The reply information is sent to the client based on the full-duplex communication connection, wherein the client receives the reply information fed back by the server, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information. After the format check result is that the format check is successful, controls the CNC machine tool to perform assembly according to the assembly parameter information.

4. The CNC machine tool assembly method according to claim 3, characterized in that: The types of the reply information include assembly parameter information and parameter supplementary information. The step of inputting the part parameters into the preset large model for retrieval to obtain the reply information corresponding to the part parameters includes: Input the part parameters into a preset large model for retrieval, determine the retrieval results, and determine whether the part parameters need to be supplemented according to the retrieval results; If supplementation is required, parameter supplementation information corresponding to the part parameters is generated, and the parameter supplementation information is used as reply information; If supplementation is not required, assembly parameter information corresponding to the part parameters is generated, and the assembly parameter information is used as reply information.

5. The CNC machine tool assembly method according to claim 3, characterized in that: The reply information is parameter supplementary information. After the step of sending the reply information to the client based on the full-duplex communication connection, the method further includes: Receiving the supplementary parameters corresponding to the part parameters sent by the client, wherein the client determines the parameter supplementary information corresponding to the part parameters according to the reply information, determines the supplementary parameters corresponding to the part parameters according to the parameter supplementary information, and sends the supplementary parameters to the server; Input the part parameters and the supplementary parameters into the preset large model for secondary retrieval to determine the retrieval results; Return to the execution step: determine whether the part parameters need to be supplemented based on the search results.

6. The CNC machine tool assembly method according to claim 3, characterized in that: Before the step of receiving the part parameters sent by the client based on the full-duplex communication connection, the method further includes: Receive the connection request sent by the client; Determining first response information in response to the connection request, sending the first response information to the client, and establishing a TCP connection with the client based on the first response information; receiving a connection upgrade request sent by a client, and verifying the identity of the client and the validity of the connection upgrade request based on the connection upgrade request; After determining that the verification is passed, a second response message is sent to the client to determine that the TCP connection is upgraded to a full-duplex communication connection.

7. A CNC machine tool assembly system, characterized in that: The CNC machine tool assembly system comprises a client and a server, wherein the client is the client according to claim 1, and the server is the server according to claim 3. The CNC machine tool assembly system comprises: The client obtains parameters of a part to be processed by a CNC machine tool; After the client establishes a full-duplex communication connection with the server, the client sends the part parameters to the server based on the full-duplex communication connection; After establishing a full-duplex communication connection with the client, the server receives the part parameters sent by the client based on the full-duplex communication connection; The server inputs the part parameters into a preset macro model for retrieval, and obtains reply information corresponding to the part parameters; The server sends the reply information to the client based on the full-duplex communication connection; The client receives the reply information fed back by the server based on the full-duplex communication connection, determines the type of the reply information, and if the type of the reply information is assembly parameter information, determines the assembly parameter information according to the reply information, and performs a format check on the assembly parameter information; After the format inspection result is successful, the client controls the CNC machine tool to perform assembly according to the assembly parameter information.

8. A CNC machine tool assembly device, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the CNC machine tool assembly method according to any one of claims 1 to 2 or 3 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the CNC machine tool assembly method according to any one of claims 1 to 2 or 3 to 6 are implemented.

Citation Information

Patent Citations

  • Auxiliary assembly method and device based on feature recognition, equipment and storage medium

    CN113780081A