Communication Management Method for CNC Machine Tools Based on OPC UA

By calibrating and analyzing information of CNC machine tools through the OPC UA IoT terminal, the linkage communication control of CNC machine tools is realized, which solves the problem of uncertainty in the linkage control of CNC machine tools, improves processing efficiency and accuracy, and ensures the smooth transfer of products between different machine tools.

CN115801823BActive Publication Date: 2026-04-21HUIZHIAN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUIZHIAN INFORMATION TECH CO LTD
Filing Date
2022-10-19
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In the existing technology, the linkage control of CNC machine tools has control uncertainty and cannot achieve accurate linkage communication, resulting in reduced processing efficiency and accuracy, and unstable transfer of products between different CNC machine tools.

Method used

All CNC machine tools are calibrated using OPC UA IoT terminals. Through information input from camera terminals and machine tool control terminals, linkage communication control is achieved, the processing progress and real-time status are analyzed, and the CNC machine tools are instructed to enter the pre-working state to ensure the smooth transfer of products between different machine tools.

Benefits of technology

It improves the efficiency and accuracy of continuous processing of products by CNC machine tools, ensures the smooth transfer of products between different machine tools, and reduces control uncertainty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801823B_ABST
    Figure CN115801823B_ABST
Patent Text Reader

Abstract

The application provides an OPC UA-based numerical control machine tool communication management method, which collects and analyzes information fed back by a camera terminal and a machine tool control terminal of each numerical control machine tool by using an OPC UA Internet of Things terminal, realizes linkage communication between a numerical control machine tool currently processing a product and another numerical control machine tool processing the next step of the product, and enables the product to quickly and smoothly enter the processing link of the other numerical control machine tool after completing the current processing, thereby effectively improving the efficiency and accuracy of continuous processing of the product by different numerical control machine tools and ensuring smooth transfer of the product between different numerical control machine tools.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of numerical control machine tool control, and particularly to a communication management method for numerical control machine tools based on OPC UA. Background Art

[0002] In an intelligent workshop, multiple different types of numerical control machine tools are usually set. Products such as auto parts have relatively complex external shapes, and a single numerical control machine tool cannot complete the production of auto parts. This requires multiple numerical control machine tools to cooperate with each other and execute corresponding processing procedure links in sequence to produce the required parts. During the processing, different numerical control machine tools need to work in strict accordance with the sequence of processing procedure links to ensure the accuracy of part product processing and avoid producing defective products. In order to ensure the accurate linkage of different numerical control machine tools during product processing, the prior art usually needs to rely on manual monitoring to track the processing progress of the product in real time, so as to start or stop the corresponding numerical control machine tool at an appropriate time and realize the transfer of the product between different numerical control machine tools. The above semi-automatic linkage control method of numerical control machine tools has great control uncertainty. It cannot perform linkage communication control on all numerical control machine tools, reducing the automation and stability of numerical control machine tool control, and cannot achieve seamless transfer processing of products between different numerical control machine tools. Summary of the Invention

[0003] Aiming at the defects existing in the prior art, the present invention provides a communication management method for numerical control machine tools based on OPC UA, which calibrates all numerical control machine tools participating in product production, and realizes the linkage communication control of all numerical control machine tools through the input of the camera terminal and the machine tool control terminal of each numerical control machine tool by the OPC UA Internet of Things terminal; analyzes the machine tool working state data fed back by the machine tool control terminal, determines the processing progress information of the numerical control machine tool currently processing the product, and combines the above calibration results to instruct another numerical control machine tool associated with the numerical control machine tool in the product production process to enter the pre-working state; then analyzes the product processing image of the numerical control machine tool to obtain the real-time state of the numerical control machine tool and the product conveying state, and judges whether the product has completed the processing on the current numerical control machine tool, so as to instruct whether another numerical control machine tool changes the current pre-working state; the above method uses the OPC UA Internet of Things terminal to collect and analyze the information fed back by the camera terminal and the machine tool control terminal of each numerical control machine tool, realizes the linkage communication between the numerical control machine tool currently processing the product and another numerical control machine tool for the next adjacent processing of the product, enables the product to quickly and smoothly enter the processing link of another numerical control machine tool after completing the current processing, thereby effectively improving the efficiency and accuracy of continuous processing of products by different numerical control machine tools, and ensuring the smooth transfer of products between different numerical control machine tools.

[0004] This invention provides a communication management method for CNC machine tools based on OPC UA, which includes the following steps:

[0005] Step S1: Based on the current product production scenario, determine all CNC machine tools involved in the current product production and calibrate all CNC machine tools; connect the camera terminals and machine tool control terminals of each CNC machine tool to the OPC UA IoT terminal;

[0006] Step S2: Collect machine tool working status data fed back by the machine tool control terminal through the OPC UA IoT terminal, and analyze and process the machine tool working status data to obtain the current processing progress information of the corresponding CNC machine tool on the product; based on the processing progress information and the calibration result, instruct another CNC machine tool associated with the CNC machine tool in the product production process to enter the pre-working state.

[0007] Step S3: Collect product processing images captured by the camera terminal of the CNC machine tool through the OPC UA IoT terminal, and analyze and process the product processing images to obtain the real-time status of the processing parts and the product conveying status of the CNC machine tool; based on the real-time status of the processing parts and the product conveying status, determine whether the product has completed the processing on the CNC machine tool.

[0008] Step S4: The OPC UA IoT terminal analyzes and processes the product delivery status, and based on the analysis results, instructs the other CNC machine tool whether to change its current pre-working status.

[0009] Furthermore, in step S1, based on the current product production scenario, all CNC machine tools involved in the current product production are determined, and the calibration of all CNC machine tools specifically includes:

[0010] Based on the current product manufacturing scenario, determine the processing steps for the current product and their execution sequence; wherein, the processing steps include the processing type of CNC machine tool processing of the current product;

[0011] Based on the current product's processing stage, identify all CNC machine tools involved in the current product's processing and production, and obtain the equipment identification information of each CNC machine tool.

[0012] Based on the execution order of all processing steps, a matching equipment identity information list is generated to calibrate all CNC machine tools; wherein, the equipment identity information list refers to a sequence list formed by arranging the identity information of all equipment according to the execution order.

[0013] Furthermore, in step S1, connecting the camera terminals and machine tool control terminals of all CNC machine tools to the OPC UA IoT terminal specifically includes:

[0014] Each of the CNC machine tools’ respective camera terminals and machine tool control terminals is connected to the OPC UA IoT terminal via an independent two-way data communication link.

[0015] Furthermore, in step S2, the OPC UA IoT terminal collects machine tool operating status data fed back by the machine tool control terminal, and analyzes and processes the machine tool operating status data to obtain the corresponding CNC machine tool's current processing progress information for the product. Specifically, this includes:

[0016] The OPC UA IoT terminal sends a request to all machine tool control terminals to acquire operating current data, and analyzes and processes the operating current data fed back by each machine tool control terminal to determine the real-time operating current value of each CNC machine tool. If the real-time operating current value is greater than or equal to a preset current threshold, it is determined that the corresponding CNC machine tool is currently performing a processing step on the product; if the real-time operating current value is less than the preset current threshold, it is determined that the corresponding CNC machine tool is not currently performing a processing step on the product. At any given time, only one CNC machine tool is performing a processing step on the product.

[0017] The execution progress information of the CNC code is retrieved from the machine tool control terminal of the CNC machine tool currently performing the product processing stage, and this information is used as the current processing progress information of the CNC machine tool on the product.

[0018] Furthermore, in step S2, based on the processing progress information and the calibration results, instructing another CNC machine tool associated with the CNC machine tool in the product manufacturing process to enter a pre-working state specifically includes:

[0019] The percentage of CNC code that has been executed is extracted from the execution progress information of the CNC code;

[0020] Based on the equipment identity information list, determine the equipment identity information of another CNC machine tool located immediately downstream of the product production process of the CNC machine tool.

[0021] If the percentage of CNC code that has been executed is greater than or equal to a preset percentage threshold, then the OPCUA IoT terminal sends a trigger command to the other CNC machine tool based on the device identity information determined above, instructing the other CNC machine tool to enter the pre-working state.

[0022] Furthermore, in step S2, determining the equipment identity information of another CNC machine tool located immediately downstream of the product production process of the CNC machine tool, based on the equipment identity information ranking list, specifically includes: if the percentage of CNC code executed is greater than or equal to a preset percentage threshold, then through the OPC... The UA IoT terminal, based on the aforementioned determined device identity information, enters a pre-working state for the other CNC machine tool. To ensure that the CNC machine tool entering the pre-working state is another CNC machine tool located immediately downstream of the product production process of the first CNC machine tool, before sending the trigger command, it first sends five device identity information extraction commands and receives the returned information, and analyzes whether the device identity information contained in the returned information is the same as that of the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool. If, after five or more sending of the device identity information extraction commands, the returned information contains the same device identity information as the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool, it indicates that the device identity information authentication is successful. Otherwise, it sends the device identity information extraction command a sixth time. If the subsequently returned information contains the same device identity information as the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool, it indicates that the device identity information authentication is successful. Otherwise, the device identity information authentication fails, indicating that the current CNC machine tool does not belong to the CNC machine tool that needs to enter the pre-working state, and at the same time, it generates a device trustworthiness alarm message, which is as follows:

[0023] Step S201: Send the equipment identity information extraction command to the CNC machine tool five times, and use the following formula (1) to analyze whether the equipment identity information contained in the returned information is the same as that of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool, and obtain the total number of times the equipment identity information contained in the returned information is the same as that of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool.

[0024]

[0025] In the above formula (1), M represents the total number of times that the returned information contains the same device identity information as another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool; C(a) represents the information returned in the a-th time, and the information is in hexadecimal form; C0 represents the device identity information of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool, and the device identity information is in hexadecimal form; T represents the preset time period; n(T) represents the number of information received after time T after the fifth time the device identity information extraction instruction is sent to the CNC machine tool; D[] represents the zero check function. If the value in the parentheses is 0, the function value of the zero check function is 1. If the value in the parentheses is not 0, the function value of the zero check function is 0.

[0026] Step S202: Using the formula (2) below, based on the analysis results of the number of times the equipment identity information of another CNC machine tool adjacent to the downstream of the product production process of the CNC machine tool is the same and the return information corresponding to the sixth sending of the equipment identity information extraction command, control whether the current CNC machine tool equipment enters the pre-working state.

[0027]

[0028] In the above formula (2), G represents the control value for whether the current CNC machine tool equipment has entered the pre-working state; C (6) represents the returned information corresponding to the sixth sending of the equipment identity information extraction instruction, and the information is in hexadecimal form;

[0029] If G=1, then control the current CNC machine tool to enter the pre-working state;

[0030] If G=0, then the current CNC machine tool will not perform pre-work, and the following step S203 will be used to generate a device reliability alarm message;

[0031] If G = -1, then control the current CNC machine tool to not perform pre-work and return to step S201 above;

[0032] Step S203: Using the following formula (3), generate a device reliability alarm message.

[0033]

[0034] In the above formula (3), Z 16 This indicates a device reliability alarm message, and the message format is hexadecimal; A 16 The standard generic frame header representing a device reliability alarm message; E 16 The standard generic frame tail that indicates a device reliability alarm message.

[0035] Furthermore, in step S3, the product processing images captured by the camera terminal of the CNC machine tool are collected through the OPC UA IoT terminal, and the product processing images are analyzed and processed to obtain the real-time status of the processed parts and the product conveying status of the CNC machine tool. Specifically, this includes:

[0036] The OPC UA IoT terminal collects product processing images captured by the camera terminal of the CNC machine tool, and identifies the processing parts of the CNC machine tool and the edge contour information of the product from the product processing images;

[0037] Based on the edge contour information of the processed component, determine whether the processed component is in a retracted state;

[0038] Determine whether the product is located on the connecting conveyor belt between the numerical control machine tool and the other numerical control machine tool according to the edge profile information of the product.

[0039] Further, in the step S3, judging whether the product has completed the processing on the numerical control machine tool according to the real-time state of the processing component and the product conveying state specifically includes:

[0040] If the processing component is in the retracted state and the product is located on the connecting conveyor belt, it is judged that the product has completed the processing on the numerical control machine tool; otherwise, it is judged that the product has not completed the processing on the numerical control machine tool.

[0041] Further, in the step S4, analyze and process the product conveying state through the OPC UA Internet of Things terminal, and according to the above analysis results, indicate whether the other numerical control machine tool changes its current pre-working state specifically includes:

[0042] Analyze and process the actual position of the product on the connecting conveyor belt through the OPC UA Internet of Things terminal to determine whether the product has entered the processing range of the other numerical control machine tool; if so, indicate that the other numerical control machine tool switches from the current pre-working state to the formal processing state of the product; if not, indicate that the other numerical control machine tool maintains its current pre-working state unchanged.

[0043] Compared with the prior art, the numerical control machine tool communication management method based on OPC UA calibrates all numerical control machine tools participating in product production, and through the OPC UA Internet of Things terminal, according to the inputs of the camera terminal and the machine tool control terminal of each numerical control machine tool, realizes the linkage communication control of all numerical control machine tools; analyzes the machine tool working state data fed back by the machine tool control terminal, determines the processing progress information of the numerical control machine tool currently processing the product, and combines the above calibration results to indicate another numerical control machine tool associated with the numerical control machine tool in the product production process to enter the pre-working state; then analyzes the product processing images of the numerical control machine tool to obtain the real-time state of the numerical control machine tool and the product conveying state, and judges whether the product has completed the processing on the current numerical control machine tool, so as to indicate whether the other numerical control machine tool changes its current pre-working state; the above method uses the OPC UA Internet of Things terminal to collect and analyze the information fed back by the camera terminal and the machine tool control terminal of each numerical control machine tool, realizes the linkage communication between the numerical control machine tool currently processing the product and another numerical control machine tool for the next adjacent processing of the product, enables the product to quickly and smoothly enter the processing link of another numerical control machine tool after completing the current processing, thereby effectively improving the efficiency and accuracy of continuous processing of products by different numerical control machine tools, and ensuring the smooth transfer of products between different numerical control machine tools.

[0044] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.

[0045] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a flowchart illustrating the OPC UA-based CNC machine tool communication management method provided by the present invention. Detailed Implementation

[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] See Figure 1 This is a flowchart illustrating the OPC UA-based CNC machine tool communication management method provided in an embodiment of the present invention. The OPC UA-based CNC machine tool communication management method includes the following steps:

[0050] Step S1: Based on the current product production scenario, determine all CNC machine tools involved in the current product production and calibrate all CNC machine tools; connect the camera terminals and machine tool control terminals of each CNC machine tool to the OPC UA IoT terminal;

[0051] Step S2: Collect machine tool working status data fed back by the machine tool control terminal through the OPC UA IoT terminal, and analyze and process the machine tool working status data to obtain the current processing progress information of the corresponding CNC machine tool on the product; based on the processing progress information and the calibration result, instruct another CNC machine tool associated with the CNC machine tool in the product production process to enter the pre-working state.

[0052] Step S3: The OPC UA IoT terminal collects the product processing images captured by the camera terminal of the CNC machine tool, and analyzes and processes the product processing images to obtain the real-time state of the processed parts and the product conveying state of the CNC machine tool; according to the real-time state of the processed parts and the product conveying state, it is judged whether the product has completed the processing on the CNC machine tool.

[0053] Step S4: The OPC UA IoT terminal analyzes and processes the product conveying state, and according to the above analysis results, indicates whether the other CNC machine tool changes its current pre-working state.

[0054] The beneficial effects of the above technical solution are as follows: The CNC machine tool communication management method based on OPC UA calibrates all CNC machine tools participating in product production. Through the OPC UA IoT terminal, according to the inputs of the camera terminal and the machine tool control terminal of each CNC machine tool, the linkage communication control of all CNC machine tools is realized; analyzes the machine tool working state data fed back by the machine tool control terminal, determines the processing progress information of the CNC machine tool currently processing the product, and combines the above calibration results to indicate another CNC machine tool associated with the CNC machine tool in the product production process to enter the pre-working state; then analyzes the product processing images of the CNC machine tool to obtain the real-time state of the CNC machine tool and the product conveying state, and judges whether the product has completed the processing on the current CNC machine tool, so as to indicate whether another CNC machine tool changes its current pre-working state; the above method uses the OPC UA IoT terminal to collect and analyze the information fed back by the camera terminal and the machine tool control terminal of each CNC machine tool, realizes the linkage communication between the CNC machine tool currently processing the product and another CNC machine tool for the next adjacent processing of the product, enables the product to quickly and smoothly enter the processing link of another CNC machine tool after completing the current processing, thereby effectively improving the efficiency and accuracy of continuous processing of products by different CNC machine tools, and ensuring the smooth transfer of products between different CNC machine tools.

[0055] Preferably, in step S1, according to the current product production scenario, determining all CNC machine tools participating in the current product production and calibrating all CNC machine tools specifically includes:

[0056] According to the current product production scenario, determine the processing steps of the current product and their execution order; wherein, the processing steps include the processing types of CNC machine tool processing for the current product.

[0057] According to the processing steps of the current product, determine all CNC machine tools participating in the current product processing production, and obtain the device identity information of all CNC machine tools respectively.

[0058] Based on the execution order of all processing steps, a matching equipment identity information list is generated to calibrate all CNC machine tools; where the equipment identity information list is a sequence table formed by arranging the identity information of all equipment according to the execution order.

[0059] The beneficial effects of the above technical solution are as follows: Production workshops typically house multiple CNC machine tools of different types, each capable of performing different product processing modes. In actual product manufacturing, multiple CNC machine tools of varying types usually need to cooperate and sequentially execute different processing steps to complete the product's processing. In practice, based on the actual processing requirements of the product, the processing steps and their execution sequence for the current product are determined. From this, the CNC machine tool capable of performing the corresponding processing step is selected. Based on the execution sequence, the equipment identity information of all selected CNC machine tools is arranged and labeled, generating a corresponding equipment identity information list. This equipment identity information list accurately reflects the operating sequence of each CNC machine tool throughout the entire product processing process, facilitating targeted on / off control of each CNC machine tool in the future.

[0060] Preferably, in step S1, connecting the camera terminals and machine tool control terminals of all CNC machine tools to the OPC UA IoT terminal specifically includes:

[0061] Each of the CNC machine tools’ respective camera terminals and machine tool control terminals is connected to the OPC UA IoT terminal via an independent two-way data communication link.

[0062] The beneficial effects of the above technical solution are as follows: by using the above method, independent data interaction communication between the OPC UA IoT terminal and all camera terminals and machine tool control terminals can be guaranteed, avoiding data crosstalk.

[0063] Preferably, in step S2, the OPC UA IoT terminal collects machine tool operating status data fed back by the machine tool control terminal, and analyzes and processes the machine tool operating status data to obtain the current processing progress information of the corresponding CNC machine tool on the product, specifically including:

[0064] The OPC UA IoT terminal sends a request to acquire operating current data to all machine tool control terminals, and analyzes and processes the operating current data fed back by each machine tool control terminal to determine the real-time operating current value of each CNC machine tool. If the real-time operating current value is greater than or equal to a preset current threshold, it is determined that the corresponding CNC machine tool is currently performing a processing step on the product; if the real-time operating current value is less than the preset current threshold, it is determined that the corresponding CNC machine tool is not currently performing a processing step on the product. At any given time, only one CNC machine tool is performing a processing step on the product.

[0065] The execution progress information of the CNC code is retrieved from the machine tool control terminal of the CNC machine tool currently performing the product processing stage, and this information is used as the current processing progress information of the CNC machine tool on the product.

[0066] The beneficial effects of the above technical solution are as follows: In actual operation, when a CNC machine tool is processing a product, the internal operating current of the machine tool needs to reach the corresponding rated current value to ensure that the machine tool accurately executes the corresponding CNC code to achieve the corresponding processing action on the product. Through this method, it is possible to accurately determine which CNC machine tool is currently processing the product, thereby accurately locating the current processing procedure and facilitating the identification of the subsequent processing steps and their corresponding CNC machine tools. Furthermore, each CNC machine tool processes the product based on its pre-stored CNC code; therefore, the execution progress of the CNC code is consistent with the actual processing progress of the product. Retrieving the execution progress information of the CNC code from the machine tool control terminal allows for timely and accurate acquisition of the current processing progress information of the CNC machine tool on the product.

[0067] Preferably, in step S2, based on the processing progress information and the calibration result, instructing another CNC machine tool associated with the CNC machine tool in the product production process to enter the pre-working state specifically includes:

[0068] The percentage of CNC code that has been executed is extracted from the execution progress information of the CNC code;

[0069] Based on the equipment identification information list, determine the equipment identification information of another CNC machine tool located immediately downstream of the product production process of this CNC machine tool;

[0070] If the percentage of the CNC code that has been executed is greater than or equal to the preset percentage threshold, then the OPC UA IoT terminal sends a trigger command to the other CNC machine tool based on the device identity information determined above, instructing the other CNC machine tool to enter the pre-working state; wherein, the pre-working state refers to the CNC machine tool being in the preheating state or the CNC machine tool's motor operating at a speed lower than the rated speed.

[0071] The beneficial effects of the above technical solution are as follows: By using the percentage of CNC code executed by the CNC machine tool as a benchmark, it is possible to accurately determine whether the CNC machine tool is close to completing the processing of the product. This facilitates the triggering and waking up of the CNC machine tool to execute the next processing step, so that after the product completes the current processing step, it can smoothly and quickly enter the next processing step, thereby improving the processing efficiency of the product.

[0072] Preferably, in step S2, determining the equipment identity information of another CNC machine tool located immediately downstream of the product production process of the current CNC machine tool, based on the equipment identity information ranking list, specifically includes: if the percentage of CNC code executed is greater than or equal to a preset percentage threshold, then through the OPC... The UA IoT terminal, based on the aforementioned determined device identity information, enters a pre-working state for the other CNC machine tool. To ensure that the CNC machine tool entering the pre-working state is another CNC machine tool located immediately downstream of the product production process of the first CNC machine tool, before sending the trigger command, it first sends five device identity information extraction commands and receives the returned information, and analyzes whether the device identity information contained in the returned information is the same as that of the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool. If, after five or more sending of the device identity information extraction command, the returned information contains the same device identity information as the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool, it indicates that the device identity information authentication is successful. Otherwise, it sends the device identity information extraction command a sixth time. If the subsequently returned information contains the same device identity information as the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool, it indicates that the device identity information authentication is successful. Otherwise, the device identity information authentication fails, indicating that the current CNC machine tool does not belong to the CNC machine tool that needs to enter the pre-working state, and at the same time, it generates a device trustworthiness alarm message, which is as follows:

[0073] Step S201: Send the equipment identity information extraction command to the CNC machine tool five times, and use the following formula (1) to analyze whether the equipment identity information contained in the returned information is the same as that of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool, and obtain the total number of times the equipment identity information contained in the returned information is the same as that of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool.

[0074]

[0075] In the above formula (1), M represents the total number of times that the returned information contains the same device identity information as another CNC machine tool whose product production process is adjacent to the downstream of the CNC machine tool; C(a) represents the information returned in the a-th time, which is in hexadecimal format; C0 represents the device identity information of another CNC machine tool whose product production process is adjacent to the downstream of the CNC machine tool, which is in hexadecimal format; T represents the preset time period; n(T) represents the number of information received after time T starting from the fifth time the device identity information extraction instruction is sent to the CNC machine tool; D[] represents the zero check function. If the value in the parentheses is 0, the function value of the zero check function is 1. If the value in the parentheses is not 0, the function value of the zero check function is 0.

[0076] Step S202: Using the formula (2) below, based on the analysis results of the number of times the equipment identity information of another CNC machine tool adjacent to the downstream of the product production process of this CNC machine tool is the same and the return information corresponding to the sixth equipment identity information extraction command, control whether the current CNC machine tool enters the pre-working state.

[0077]

[0078] In the above formula (2), G represents the control value for whether the current CNC machine tool equipment has entered the pre-working state; C(6) represents the information returned corresponding to the sixth sending of the equipment identity information extraction instruction, which is in hexadecimal form;

[0079] If G=1, then control the current CNC machine tool to enter the pre-working state;

[0080] If G=0, then the current CNC machine tool will not perform pre-work, and the following step S203 will be used to generate a device reliability alarm message;

[0081] If G = -1, then control the current CNC machine tool to not perform pre-work and return to step S201 above;

[0082] Step S203: Using the following formula (3), generate a device reliability alarm message.

[0083]

[0084] In the above formula (3), Z 16 This indicates a device reliability alarm message, which is in hexadecimal format; A 16 The standard generic frame header representing a device reliability alarm message; E 16 The standard generic frame tail that indicates a device reliability alarm message.

[0085] The beneficial effects of the above technical solution are as follows: Using the above formula (1), the device identity information contained in the returned information is analyzed to see if it is the same as that of another CNC machine tool whose product production process is adjacent to the downstream of the CNC machine tool. The total number of times the device identity information contained in the returned information is the same as that of another CNC machine tool whose product production process is adjacent to the downstream of the CNC machine tool is obtained, which is convenient for subsequent analysis of the actual status of the CNC machine tool by the total number of times. Then, using the above formula (2), based on the number of times the device identity information of another CNC machine tool whose product production process is adjacent to the downstream of the CNC machine tool is the same and the analysis results of the returned information corresponding to the sixth sending of the device identity information extraction command, the current CNC machine tool device is controlled to enter the pre-working state, so as to avoid the device with mismatched identity information due to factors during data transmission from entering the pre-working state, thereby improving the accuracy and reliability of the system. Finally, using the above formula (3), a device credibility alarm message is generated. The credibility in the alarm message reminds the staff that the identity information of the CNC machine tool device currently being interacted with is likely to be incorrect and needs to be repaired.

[0086] Preferably, in step S3, the process of collecting product processing images captured by the camera terminal of the CNC machine tool through the OPC UA IoT terminal, and analyzing and processing the product processing images to obtain the real-time status of the processed parts and the product conveying status of the CNC machine tool specifically includes:

[0087] The OPC UA IoT terminal collects product processing images captured by the camera terminal of the CNC machine tool, and identifies the processing parts of the CNC machine tool and the edge contour information of the product from the product processing images;

[0088] Based on the edge contour information of the machined part, determine whether the machined part is in a retracted state; wherein, the retracted state means that the machined part has retracted to the corresponding avoidance position of the CNC machine tool;

[0089] Based on the edge contour information of the product, determine whether the product is located on the connecting conveyor belt between the CNC machine tool and the other CNC machine tool.

[0090] The beneficial effects of the above technical solution are as follows: Through the above method, the product is accurately visually identified during the processing, and it is determined whether the product has been processed in the current CNC machine tool. This facilitates the rapid transfer of the processed product to the connecting conveyor belt and its transport to the CNC machine tool corresponding to the next processing stage.

[0091] Preferably, in step S3, determining whether the product has completed processing on the CNC machine tool based on the real-time status of the processing component and the product conveying status specifically includes:

[0092] If the processing component is in the retracted state and the product is on the connecting conveyor belt, it is determined that the product has completed the processing on the CNC machine tool; otherwise, it is determined that the product has not completed the processing on the CNC machine tool.

[0093] The beneficial effects of the above technical solution are as follows: through the above method, the processed products can be smoothly transferred to the CNC machine tool corresponding to the next processing stage via the connecting conveyor belt, ensuring the continuity of product processing.

[0094] Preferably, in step S4, the OPC UA IoT terminal analyzes and processes the product delivery status, and based on the analysis results, instructs the other CNC machine tool whether to change its current pre-working state. This specifically includes:

[0095] The OPC UA IoT terminal analyzes the actual position of the product on the connecting conveyor belt to determine whether the product has entered the processing range of the other CNC machine tool. If so, it instructs the other CNC machine tool to switch from the current pre-working state to the formal processing state of the product. If not, it instructs the other CNC machine tool to maintain the current pre-working state.

[0096] The beneficial effects of the above technical solution are as follows: In this way, when the product has entered the processing range of another CNC machine tool, it indicates that the other CNC machine tool is capable of processing the product in the corresponding processing stage. At this time, the other CNC machine tool is instructed to switch from the current pre-working state to the formal processing state of the product to ensure continuous processing of the product; when the product has not entered the processing range of another CNC machine tool, the other CNC machine tool is instructed to maintain the current pre-working state, which can prevent the other CNC machine tool from entering the formal processing state too early and increasing its own operating load.

[0097] As can be seen from the content of the above embodiments, the communication management method for CNC machine tools based on OPC UA calibrates all CNC machine tools participating in product production, and through the OPC UA Internet of Things terminal, according to the inputs of the camera terminal and the machine tool control terminal of each CNC machine tool, realizes the linkage communication control of all CNC machine tools; analyzes the machine tool working state data fed back by the machine tool control terminal, determines the processing progress information of the CNC machine tool currently processing the product, and combines the above calibration results to instruct another CNC machine tool associated with the CNC machine tool in the product production process to enter the pre-working state; then analyzes the product processing images of the CNC machine tool to obtain the real-time state of the CNC machine tool and the product conveying state, and judges whether the product has completed the processing on the current CNC machine tool, so as to instruct whether another CNC machine tool changes its current pre-working state; the above method uses the OPC UA Internet of Things terminal to collect and analyze the information fed back by the camera terminal and the machine tool control terminal of each CNC machine tool, realizes the linkage communication between the CNC machine tool currently processing the product and another CNC machine tool for the next adjacent processing of the product, enables the product to quickly and smoothly enter the processing link of another CNC machine tool after completing the current processing, thereby effectively improving the efficiency and accuracy of continuous processing of products by different CNC machine tools, and ensuring the smooth transfer of products between different CNC machine tools.

[0098] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A CNC machine tool communication management method based on OPC UA, characterized in that, It includes the following steps: Step S1: Based on the current product production scenario, determine all CNC machine tools participating in the production of the current product and calibrate all CNC machine tools; connect the camera terminals and machine tool control terminals of each CNC machine tool to the OPC UA IoT terminal; wherein, determining all CNC machine tools participating in the production of the current product and calibrating all CNC machine tools based on the current product production scenario specifically includes: determining the processing steps and their execution order for the current product based on the current product production scenario; wherein, the processing steps include the processing types of CNC machine tool processing of the current product; determining all CNC machine tools participating in the processing and production of the current product based on the processing steps, and obtaining the equipment identity information of each CNC machine tool; generating a matching equipment identity information ranking list based on the execution order of all processing steps, thereby calibrating all CNC machine tools; wherein, the equipment identity information ranking list refers to a sequence table formed by arranging all equipment identity information according to the execution order; Step S2: The OPC UA IoT terminal sends a working current data acquisition request to all machine tool control terminals, and analyzes and processes the working current data returned by each machine tool control terminal to determine the real-time working current value of each CNC machine tool. If the real-time working current value is greater than or equal to a preset current threshold, it is determined that the corresponding CNC machine tool is currently performing a processing step on the product. If the real-time working current value is less than the preset current threshold, it is determined that the corresponding CNC machine tool is not currently performing a processing step on the product. At any given time, only one CNC machine tool is performing a processing step on the product. The execution progress information of the CNC code is retrieved from the machine tool control terminal of the CNC machine tool currently performing the processing step on the product, and this is used as the current processing progress information of the CNC machine tool on the product. The percentage value of the CNC code that has been executed is extracted from the execution progress information of the CNC code. Based on the equipment identity information ranking list, the equipment identity information of another CNC machine tool located immediately downstream of the product production process of the CNC machine tool is determined. If the percentage value of the CNC code that has been executed is greater than or equal to a preset percentage threshold, the OPC UA IoT terminal sends a request to all machine tool control terminals to acquire working current data, and analyzes and processes the working current data returned by each machine tool control terminal to determine the real-time working current value of each CNC machine tool. Based on the device identity information determined above, the UA IoT terminal sends a trigger command to the other CNC machine tool, instructing the other CNC machine tool to enter the pre-working state; Step S3: Collect product processing images captured by the camera terminal of the CNC machine tool through the OPC UA IoT terminal, and analyze and process the product processing images to obtain the real-time status of the processing parts and the product conveying status of the CNC machine tool; based on the real-time status of the processing parts and the product conveying status, determine whether the product has completed the processing on the CNC machine tool. Step S4: The OPC UA IoT terminal analyzes and processes the product delivery status, and based on the analysis results, instructs the other CNC machine tool whether to change its current pre-working status.

2. The CNC machine tool communication management method based on OPC UA as described in claim 1, characterized in that: In step S1, connecting the camera terminals and machine tool control terminals of all CNC machine tools to the OPC UA IoT terminal specifically includes: Each of the CNC machine tools’ respective camera terminals and machine tool control terminals is connected to the OPC UA IoT terminal via an independent two-way data communication link.

3. The CNC machine tool communication management method based on OPC UA as described in claim 1, characterized in that: In step S2, determining the device identity information of another CNC machine tool located immediately downstream of the product production process of the first CNC machine tool, based on the device identity information ranking list, specifically includes: if the percentage of CNC code executed is greater than or equal to a preset percentage threshold, then through the OPC... The UA IoT terminal, based on the aforementioned determined device identity information, enters a pre-working state for the other CNC machine tool. To ensure that the CNC machine tool entering the pre-working state is another CNC machine tool located immediately downstream of the product production process of the first CNC machine tool, before sending the trigger command, it first sends five device identity information extraction commands and receives the returned information, and analyzes whether the device identity information contained in the returned information is the same as that of the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool. If, after five or more sending of the device identity information extraction commands, the returned information contains the same device identity information as the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool, it indicates that the device identity information authentication is successful. Otherwise, it sends the device identity information extraction command a sixth time. If the subsequently returned information contains the same device identity information as the other CNC machine tool immediately downstream of the product production process of the first CNC machine tool, it indicates that the device identity information authentication is successful. Otherwise, the device identity information authentication fails, indicating that the current CNC machine tool does not belong to the CNC machine tool that needs to enter the pre-working state, and at the same time, it generates a device trustworthiness alarm message, which is as follows: Step S201: Send the equipment identity information extraction command to the CNC machine tool five times, and use the following formula (1) to analyze whether the equipment identity information contained in the returned information is the same as that of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool, and obtain the total number of times the equipment identity information contained in the returned information is the same as that of another CNC machine tool that is adjacent to the downstream of the product production process of the CNC machine tool. (1) In the above formula (1), The total number of times the returned information contains the same device identity information as another CNC machine tool that is immediately downstream of the product production process of the CNC machine tool. This represents the information returned for the a-th time, and the information is in hexadecimal format. This indicates the equipment identification information of another CNC machine tool whose product production process is adjacent to the downstream of the CNC machine tool. The equipment identification information is in hexadecimal format. Indicates a preset time period; This indicates the start of the fifth instruction to retrieve equipment identity information from the CNC machine tool. The number of messages received after a certain time; This represents the null test function. If the value inside the parentheses is 0, the function value of the null test function is 1; if the value inside the parentheses is not 0, the function value of the null test function is 0. Step S202: Using the formula (2) below, based on the analysis results of the number of times the equipment identity information of another CNC machine tool adjacent to the downstream of the product production process of the CNC machine tool is the same and the return information corresponding to the sixth sending of the equipment identity information extraction command, control whether the current CNC machine tool enters the pre-working state. (2) In the above formula (2), Control values ​​indicating whether the CNC machine tool has entered the pre-working state; This indicates the information returned corresponding to the sixth sent device identity information extraction command, and the information is in hexadecimal format; like Then, the current CNC machine tool will be controlled to enter the pre-working state; like If so, the current CNC machine tool is not allowed to perform pre-operation, and a device reliability alarm message is generated using the following step S203; like If so, the current CNC machine tool will not perform pre-work and will return to step S201 above; Step S203: Using the following formula (3), generate a device reliability alarm message. (3) In the above formula (3), This indicates a device reliability alarm message, and the message is in hexadecimal format. A standard generic frame header indicating device reliability alarm messages; The standard generic frame tail that indicates a device reliability alarm message.

4. The CNC machine tool communication management method based on OPC UA as described in claim 1, characterized in that: In step S3, the product processing images captured by the camera terminal of the CNC machine tool are collected through the OPC UA IoT terminal, and the product processing images are analyzed and processed to obtain the real-time status of the processed parts and the product conveying status of the CNC machine tool. Specifically, this includes: The OPC UA IoT terminal collects product processing images captured by the camera terminal of the CNC machine tool, and identifies the processing parts of the CNC machine tool and the edge contour information of the product from the product processing images; Based on the edge contour information of the processed component, determine whether the processed component is in a retracted state; Based on the edge contour information of the product, determine whether the product is located on the connecting conveyor belt between the CNC machine tool and the other CNC machine tool.

5. The CNC machine tool communication management method based on OPC UA as described in claim 4, characterized in that: In step S3, determining whether the product has completed processing on the CNC machine tool based on the real-time status of the processing component and the product conveying status specifically includes: If the processing component is in the retracted state and the product is on the connecting conveyor belt, it is determined that the product has completed the processing on the CNC machine tool; otherwise, it is determined that the product has not completed the processing on the CNC machine tool.

6. The CNC machine tool communication management method based on OPC UA as described in claim 5, characterized in that: In step S4, the product delivery status is analyzed and processed by the OPC UA IoT terminal, and based on the analysis results, the other CNC machine tool is instructed whether to change its current pre-working state. This specifically includes: The OPC UA IoT terminal analyzes the actual position of the product on the connecting conveyor belt to determine whether the product has entered the processing range of the other CNC machine tool. If yes, the other CNC machine tool is instructed to switch from the current pre-working state to the formal processing state of the product. If no, the other CNC machine tool is instructed to maintain the current pre-working state.

Citation Information

Patent Citations

  • Method and system for control of intelligent Internet-of-things machine tool based on statistic analysis

    CN109194757A

  • Numerical control machine tool data acquisition method based on edge computing and virtualization technology

    CN115086379A