A numerical control machine tool data acquisition method, system and device based on a unified communication architecture protocol
The CNC machine tool data acquisition method using a unified communication architecture protocol solves the problem of data incompatibility between machine tools from different manufacturers, realizes unified data access and distribution for multi-brand machine tools, improves system integration efficiency and development flexibility, and is suitable for flexible manufacturing environments.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGBO HOLLYSYS INTELLIGENT TECH CO LTD
- Filing Date
- 2026-04-21
- Publication Date
- 2026-07-24
AI Technical Summary
Existing CNC machine tool equipment suffers from data format incompatibility due to proprietary communication protocols used by different manufacturers, resulting in information silos, complex system integration, high development threshold, and difficulty in achieving deep integration of information technology and operational technology.
It adopts a unified communication architecture protocol, dynamically constructs the address space by obtaining configuration data files, dynamically loads the underlying communication toolkit, and uses a soft gateway to coordinate with the CNC acquisition service process to achieve real-time data acquisition and mapping, supporting unified data access and distribution for machine tools from multiple manufacturers.
It enables efficient centralized management of multi-brand machine tool data, reduces integration complexity, improves development flexibility and delivery efficiency, supports agile iteration in flexible manufacturing environments, and enhances system fault tolerance and robustness.
Smart Images

Figure CN122457686A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mechanical engineering technology, and in particular to a method, system and device for acquiring data of CNC machine tools based on a unified communication architecture protocol. Background Technology
[0002] In current manufacturing plants, there are often CNC machine tools from multiple brands, both new and old. To analyze the overall efficiency of these machines and to provide early warnings and diagnoses of faults, it is essential to monitor core data such as machine tool operating status, shutdown alarms, and machining programs in real time. However, existing machine tool data acquisition technologies face significant challenges: different manufacturers' equipment often uses their own closed proprietary communication protocols, resulting in incompatible data formats and creating isolated information silos within the workshop, severely hindering the pace of enterprise digital transformation. Furthermore, traditional acquisition systems are typically strongly bound to specific protocols, making system integration difficult. When new equipment needs to be integrated, the development threshold is high, the code complexity is significant, and achieving deep integration between upper-level information technology and lower-level operational technology is extremely challenging. Therefore, the industry urgently needs a unified acquisition solution that can shield against differences in underlying proprietary protocols, support dynamic expansion, and possess standardized data interfaces. Summary of the Invention
[0003] To address the above problems, this invention proposes a CNC machine tool data acquisition method based on a unified communication architecture protocol, comprising: Obtain the configuration data file of the target CNC machine tool, wherein the configuration data file contains at least equipment attribute information and a list of acquisition tags; Based on the list of collection tags defined in the configuration data file, an address space conforming to the unified communication architecture standard is dynamically constructed; Based on the machine tool manufacturer and model in the equipment attribute information, dynamically load the underlying communication development toolkit that matches the target CNC machine tool; Using the underlying communication development toolkit, the corresponding data acquisition thread is started according to the preset polling cycle to obtain the real-time operating data of the target CNC machine tool through a private protocol; In response to the detection of a change in the status or value of the real-time running data, the changed real-time running data is mapped to the address space of the unified communication architecture standard specification for refresh, so as to provide unified data access and distribution to the outside world through the unified communication architecture protocol.
[0004] Furthermore, the configuration data file adopts a structured data format, and the configuration data file defines a unified information model structure, which includes: The configuration data file includes a version identifier field and a timestamp field, wherein the timestamp field is used to trigger the update verification of the configuration data file. The root node name field is used to specify the root node name of the address space of the unified communication architecture standard specification; The equipment list object describes the equipment name, manufacturer, model, and communication parameters of the target CNC machine tool. The tag list object is used to describe the identifier name, access address, data type enumeration value, read / write access attributes, and preset polling period of each tag in the tag list.
[0005] Furthermore, before acquiring the configuration data file of the target CNC machine tool, the process also includes: A pre-built tag library is constructed, which is classified according to different machine tool manufacturers and machine tool models. It stores a set of frequently used tags corresponding to equipment status and processing data, which can be called and reloaded when generating the collection tag list.
[0006] Furthermore, the CNC machine tool data acquisition method based on the unified communication architecture protocol runs within the CNC acquisition service process, and the method also includes a collaborative control step with the software gateway process: The soft gateway process receives service configuration data, generates the configuration data file, and sends it to a shared specified directory; The soft gateway process initiates the numerical control acquisition service process; The numerical control acquisition service process loads the configuration data file from the specified directory and constructs the underlying communication link and the address space of the unified communication architecture standard specification; The CNC acquisition service process asynchronously writes the operation log information to the specified log directory in the form of a file, which is then read and debugged by the software gateway process.
[0007] Furthermore, the soft gateway process and the CNC acquisition service process are deployed as independent processes within the same container space, and perform bidirectional data communication and control command transmission through a unified communication architecture protocol. The control commands include at least stop commands, start commands, and status query commands. Furthermore, after dynamically constructing the address space conforming to the unified communication architecture standard specification, the method also includes a dynamic hot reloading step: monitoring the timestamp field of the configuration data file; when a change in the timestamp field is detected, re-parse the configuration data file; and while maintaining the continuous operation of the CNC acquisition service process, dynamically reconstructing and changing the address space of the unified communication architecture standard specification according to the updated acquisition tag list.
[0008] This application also discloses a CNC machine tool data acquisition system based on a unified communication architecture protocol, including: A configuration parsing module is used to obtain the configuration data file of the target CNC machine tool. The configuration data file contains at least equipment attribute information and a list of acquisition tags. The address space construction module is used to dynamically construct an address space that conforms to the unified communication architecture standard specifications based on the collection tag list defined in the configuration data file. The driver adaptation module is used to dynamically load the underlying communication development toolkit that matches the target CNC machine tool based on the machine tool manufacturer and machine tool model in the device attribute information; The multi-threaded acquisition module is used to start the corresponding data acquisition thread according to the preset polling cycle using the underlying communication development toolkit, so as to obtain the real-time operating data of the target CNC machine tool through a private protocol; The data mapping and publishing module is used to respond to the detection of a change in the status or value of the real-time running data, and to map the changed real-time running data to the address space of the unified communication architecture standard specification for refreshing, so as to provide unified data access and distribution to the outside world through the unified communication architecture protocol.
[0009] Furthermore, the system also includes: The containerized collaborative subsystem includes independently running software gateway process units and CNC acquisition service process units; The software gateway process unit is used to issue the configuration data file and control the start and stop of the CNC acquisition service process unit; the CNC acquisition service process unit is used to perform data acquisition of the underlying machine tool and feed back the operation log file to the software gateway process unit.
[0010] This application also discloses an electronic device, characterized in that it includes: a processor; a memory for storing a computer program; wherein the processor executes the computer program to implement the above-described method.
[0011] This application also discloses a computer-readable storage medium having a computer program stored thereon, characterized in that the computer program implements the above-described method when executed by a processor.
[0012] In summary, the intelligent recommendation method and system for open-pit mine start-up processes provided by this invention have the following significant advantages compared to existing technologies: First, it completely breaks down the information silos of multiple brand machine tools, greatly reducing integration complexity. This invention unifies the proprietary protocol data of multiple manufacturers into a standardized unified communication architecture information model, providing a consistent access interface for upper-layer systems. This achieves high-concurrency, low-latency centralized data management and distribution, greatly simplifying the integration difficulty of industrial automation systems. Second, it achieves deep integration and high decoupling of information technology and operational technology architecture. This invention adopts an architecture design with independent processes and containerized deployment of the soft gateway and CNC acquisition service, successfully shielding the differences in software development kits provided by various CNC manufacturers at the operating system level. This allows developers to flexibly choose the most suitable technology stack and high-level programming language to implement acquisition for specific machine tools, effectively lowering the development threshold and improving delivery efficiency. Third, it possesses extremely high flexibility and dynamic scalability. This invention innovatively designs a dynamic address space construction mechanism based on structured configuration files. Combined with a pre-built library of commonly used acquisition tags, it not only eliminates the tedious manual configuration work, but also enables dynamic changes and expansions of the address space without system downtime, which is highly compatible with the agile iteration requirements of flexible manufacturing environments. Attached Figure Description
[0013] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0014] Figure 1 This is a flowchart provided in an exemplary embodiment of the present invention; Figure 2 This is a schematic diagram of the system architecture provided in an exemplary embodiment of the present invention; Detailed Implementation
[0015] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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, 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.
[0016] This embodiment provides a CNC machine tool data acquisition method based on a unified communication architecture protocol, including: Step S10: Obtain the configuration data file of the target CNC machine tool, wherein the configuration data file contains at least equipment attribute information and a list of acquisition tags; Step S20: Based on the list of collection tags defined in the configuration data file, dynamically construct an address space that conforms to the unified communication architecture standard specification; Step S30: Based on the machine tool manufacturer and model in the equipment attribute information, dynamically load the underlying communication development toolkit that matches the target CNC machine tool; Step S40: Using the underlying communication development toolkit, start the corresponding data acquisition thread according to the preset polling cycle to obtain the real-time operating data of the target CNC machine tool through the private protocol; Step S50: In response to detecting a change in the status or value of the real-time running data, the changed real-time running data is mapped to the address space of the unified communication architecture standard specification for refresh, so as to provide unified data access and distribution to the outside world through the unified communication architecture protocol.
[0017] In some embodiments, the configuration data file adopts a structured data format, and the configuration data file defines a unified information model structure, which includes: The configuration data file includes a version identifier field and a timestamp field, wherein the timestamp field is used to trigger the update verification of the configuration data file. The root node name field is used to specify the root node name of the address space of the unified communication architecture standard specification; The equipment list object describes the equipment name, manufacturer, model, and communication parameters of the target CNC machine tool. The tag list object is used to describe the identifier name, access address, data type enumeration value, read / write access attributes, and preset polling period of each tag in the tag list.
[0018] By defining a structured JSON unified information model that includes timestamps, root nodes, device attributes, and multi-dimensional tag attributes, the extremely complex underlying physical locations of machine tools are abstracted into standardized digital mappings. This highly structured data specification completely shields the underlying differences between heterogeneous systems, allowing the system to integrate new devices without modifying any core code; only the configuration text needs to be adjusted, greatly improving the system's maintainability and generalization capabilities.
[0019] In some embodiments, before obtaining the configuration data file of the target CNC machine tool, the method further includes: A pre-built tag library is constructed, which is classified according to different machine tool manufacturers and machine tool models. It stores a set of frequently used tags corresponding to equipment status and processing data, which can be called and reloaded when generating the collection tag list.
[0020] By pre-installing a set of frequently used data collection tags categorized by manufacturer and model, the system enables out-of-the-box device integration. This mechanism significantly reduces the workload for implementation engineers who need to manually configure each machine tool on-site, thereby lowering the barrier to project deployment, reducing error rates, and improving overall delivery efficiency.
[0021] In some embodiments, the CNC machine tool data acquisition method based on a unified communication architecture protocol runs within a CNC acquisition service process, and the method further includes a collaborative control step with a software gateway process: The soft gateway process receives service configuration data, generates the configuration data file, and sends it to a shared specified directory; The soft gateway process initiates the numerical control acquisition service process; The numerical control acquisition service process loads the configuration data file from the specified directory and constructs the underlying communication link and the address space of the unified communication architecture standard specification; The CNC acquisition service process asynchronously writes the operation log information to the specified log directory in the form of a file, which is then read and debugged by the software gateway process.
[0022] The software gateway and CNC data acquisition service are separated into independent processes and loosely coupled and coordinated through specified directory file exchange and a unified communication architecture protocol. This architecture not only achieves physical isolation and integration between information technology and underlying operational technology, but also enables the development team to select the most suitable programming language for the software development kit of a specific machine tool, completely eliminating the constraints of a single technology stack. Furthermore, because the data acquisition processes are independent, the communication failure of one device will not cause the entire gateway system to crash, greatly enhancing the fault tolerance and robustness of industrial-grade systems.
[0023] In some embodiments, the soft gateway process and the CNC acquisition service process are deployed as independent processes in the same container space, and perform bidirectional data communication and control command transmission through a unified communication architecture protocol. The control commands include at least stop commands, start commands, and status query commands.
[0024] In some embodiments, after dynamically constructing the address space conforming to the unified communication architecture standard specification, a dynamic hot-loading step is also included: Monitor the timestamp field of the configuration data file; When a change is detected in the timestamp field, the configuration data file is re-parsed; While maintaining the continuous operation of the numerical control acquisition service process, the address space of the unified communication architecture standard specification is dynamically reconstructed and changed according to the updated acquisition tag list.
[0025] By introducing timestamp comparison and dynamic reconstruction technologies, the system overcomes the technical bottleneck of traditional data acquisition systems that require power outages and restarts when modifying data points. The system can continuously monitor existing equipment and maintain data flow without interruption, while simultaneously hot-loading newly added data acquisition tags into a standardized address space in real time. For flexible manufacturing workshops aiming for 24 / 7 uninterrupted production, this avoids production line downtime caused by configuration changes, ensuring the absolute integrity of production data.
[0026] This application also discloses a CNC machine tool data acquisition system based on a unified communication architecture protocol, including: The configuration parsing module 10 is used to obtain the configuration data file of the target CNC machine tool, wherein the configuration data file contains at least equipment attribute information and a list of acquisition tags; Address space construction module 20 is used to dynamically construct an address space that conforms to the unified communication architecture standard specification based on the collection tag list defined in the configuration data file; The driver adaptation module 30 is used to dynamically load a low-level communication development toolkit that matches the target CNC machine tool based on the machine tool manufacturer and machine tool model in the device attribute information. The multi-threaded acquisition module 40 is used to start the corresponding data acquisition thread according to the preset polling cycle using the underlying communication development toolkit, so as to obtain the real-time running data of the target CNC machine tool through a private protocol; The data mapping and publishing module 50 is used to respond to the detection of a change in the status or value of the real-time running data, and to map the changed real-time running data to the address space of the unified communication architecture standard specification for refreshing, so as to provide unified data access and distribution to the outside world through the unified communication architecture protocol.
[0027] In some embodiments, the system further includes: The containerized collaborative subsystem 60 includes an independently running software gateway process unit and a numerical control acquisition service process unit; The software gateway process unit is used to issue the configuration data file and control the start and stop of the CNC acquisition service process unit; the CNC acquisition service process unit is used to perform data acquisition of the underlying machine tool and feed back the operation log file to the software gateway process unit.
[0028] This application also discloses an electronic device, characterized in that it includes: a processor; a memory for storing a computer program; wherein the processor executes the computer program to implement the above-described method.
[0029] This application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method.
[0030] For components that are functionally identical or similar, existing mature devices can be used for replacement, and the implementation method is not limited to the structure shown in this specification.
[0031] The present invention can also be implemented in the form of software, hardware, or a combination of software and hardware; wherein the software can be stored in a computer-readable medium and executed by a processor to perform the corresponding function.
[0032] Suitable computer-readable media include, but are not limited to, hard disks, flash memory, read-only memory (ROM), random access memory (RAM), and other media capable of storing program code.
[0033] The execution order of the steps described in the flowchart or logic block diagram can be adjusted or parallelized as needed, provided that it does not affect the implementation of the function.
[0034] The accompanying drawings referenced in this specification are for illustrative purposes only. Their dimensions, scale, or colors may be adjusted according to actual production needs. The reference numerals in the drawings should not be construed as limiting the scope of protection.
[0035] All the technical features disclosed in this invention can be combined in any way to form an interactive or collaborative structure, as long as the combination does not contradict each other or conflict with the technology.
[0036] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and all such modifications and variations fall within the scope of protection claimed by the invention.
Claims
1. A method for acquiring data from a CNC machine tool based on a unified communication architecture protocol, characterized in that, include: Obtain the configuration data file of the target CNC machine tool, wherein the configuration data file contains at least equipment attribute information and a list of acquisition tags; Based on the list of collection tags defined in the configuration data file, an address space conforming to the unified communication architecture standard is dynamically constructed; Based on the machine tool manufacturer and model in the equipment attribute information, dynamically load the underlying communication development toolkit that matches the target CNC machine tool; Using the underlying communication development toolkit, the corresponding data acquisition thread is started according to the preset polling cycle to obtain the real-time operating data of the target CNC machine tool through a private protocol; In response to the detection of a change in the status or value of the real-time running data, the changed real-time running data is mapped to the address space of the unified communication architecture standard specification for refresh, so as to provide unified data access and distribution to the outside world through the unified communication architecture protocol.
2. The method according to claim 1, characterized in that, The configuration data file adopts a structured data format, and the configuration data file defines a unified information model structure, which includes: The configuration data file includes a version identifier field and a timestamp field, wherein the timestamp field is used to trigger the update verification of the configuration data file. The root node name field is used to specify the root node name of the address space of the unified communication architecture standard specification; The equipment list object describes the equipment name, manufacturer, model, and communication parameters of the target CNC machine tool. The tag list object is used to describe the identifier name, access address, data type enumeration value, read / write access attributes, and preset polling period of each tag in the tag list.
3. The method according to claim 2, characterized in that, Before obtaining the configuration data file of the target CNC machine tool, the method further includes: A pre-built tag library is constructed, which is classified according to different machine tool manufacturers and machine tool models. It stores a set of frequently used tags corresponding to equipment status and processing data, which can be called and reloaded when generating the collection tag list.
4. The method according to claim 1, characterized in that, The CNC machine tool data acquisition method based on a unified communication architecture protocol runs within a CNC acquisition service process. The method also includes a collaborative control step with a software gateway process. The soft gateway process receives service configuration data, generates the configuration data file, and sends it to a shared specified directory; The soft gateway process initiates the numerical control acquisition service process; The numerical control acquisition service process loads the configuration data file from the specified directory and constructs the underlying communication link and the address space of the unified communication architecture standard specification; The CNC acquisition service process asynchronously writes the operation log information to the specified log directory in the form of a file, which is then read and debugged by the software gateway process.
5. The method according to claim 4, characterized in that: The soft gateway process and the CNC acquisition service process are deployed as independent processes in the same container space, and perform bidirectional data communication and control command transmission through a unified communication architecture protocol. The control commands include at least stop commands, start commands, and status query commands.
6. The method according to claim 1 or 2, characterized in that, After dynamically constructing the address space that conforms to the unified communication architecture standard, the process also includes a dynamic hot-loading step: Monitor the timestamp field of the configuration data file; When a change is detected in the timestamp field, the configuration data file is re-parsed; While maintaining the continuous operation of the numerical control acquisition service process, the address space of the unified communication architecture standard specification is dynamically reconstructed and changed according to the updated acquisition tag list.
7. A CNC machine tool data acquisition system based on a unified communication architecture protocol, characterized in that, include: A configuration parsing module is used to obtain the configuration data file of the target CNC machine tool. The configuration data file contains at least equipment attribute information and a list of acquisition tags. The address space construction module is used to dynamically construct an address space that conforms to the unified communication architecture standard specifications based on the collection tag list defined in the configuration data file. The driver adaptation module is used to dynamically load the underlying communication development toolkit that matches the target CNC machine tool based on the machine tool manufacturer and machine tool model in the device attribute information; The multi-threaded acquisition module is used to start the corresponding data acquisition thread according to the preset polling cycle using the underlying communication development toolkit, so as to obtain the real-time operating data of the target CNC machine tool through a private protocol; The data mapping and publishing module is used to respond to the detection of a change in the status or value of the real-time running data, and to map the changed real-time running data to the address space of the unified communication architecture standard specification for refreshing, so as to provide unified data access and distribution to the outside world through the unified communication architecture protocol.
8. The system according to claim 7, characterized in that, The system also includes: The containerized collaborative subsystem includes independently running software gateway process units and CNC acquisition service process units; The software gateway process unit is used to issue the configuration data file and control the start and stop of the CNC acquisition service process unit; the CNC acquisition service process unit is used to perform data acquisition of the underlying machine tool and feed back the operation log file to the software gateway process unit.
9. An electronic device, characterized in that, include: processor; Memory, used to store computer programs; When the processor executes the computer program, it implements the method as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.