Numerical control machine tool data synchronization method and device, numerical control machine tool and storage medium

By collecting and synchronizing external sensor signal data and internal electronic control data in CNC machine tools, and using preset timestamps to align data, the problem of time-consuming and labor-consuming manual alignment is solved, and efficient and accurate data synchronization is achieved.

CN119057560AActive Publication Date: 2024-12-03DONGFENG COMML VEHICLE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411373801.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-03
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

In the prior art, the internal and external data collected by CNC machine tools need to be manually aligned, which is time-consuming and labor-intensive and has poor results.

Method used

By collecting external sensor signal data of CNC machine tools and performing callbacks according to preset time intervals, recording callback trigger timestamps, collecting internal electronic control data and recording the start timetamp, data synchronization is performed based on these two timestamps to ensure data and time Poke alignment.

Benefits of technology

No manual synchronization processing is required, which improves work efficiency and improves the accuracy and efficiency of data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119057560A_ABST
    Figure CN119057560A_ABST
Patent Text Reader

Abstract

The invention relates to a numerical control machine tool data synchronization method and device, a numerical control machine tool and a storage medium, and belongs to the technical field of data processing.The numerical control machine tool data synchronization method comprises the steps that external sensor signal data of the numerical control machine tool are collected and called back according to a preset first time interval, recording a callback triggering timestamp; acquiring internal electric control data of the numerical control machine tool, and recording a start acquisition timestamp of the internal electric control data; and synchronizing the external sensor signal data and the internal electric control data based on the collection starting timestamp and the callback triggering timestamp. According to the method, manual data synchronization processing is not needed, the working efficiency is improved, and the data synchronization degree is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for synchronizing data of a numerically controlled machine tool, a numerically controlled machine tool and a storage medium. Background Art

[0002] With the continuous development of science and technology, intelligent CNC machine tools have been widely used in many modern industrial processing fields due to their excellent intelligent functions.

[0003] The realization of the intelligent functions of CNC machine tools mainly relies on their self-perception, self-learning and self-decision-making of the processing status. During the operation of the machine tool, a large amount of electronic control data such as position, speed, power, current and error will be generated inside the CNC system, which mainly comes from the control, feedback and status information of the actual operation of the machine tool. The key technologies of intelligent CNC machine tools lie in error compensation and prediction, component-level health status monitoring and maintenance, etc. Its essence is to use data-driven methods to mine the big data obtained from the operation of CNC machine tools. In order to improve the self-perception ability of machine tools, external sensors are often used. The fusion of internal electronic control data and external sensor data can greatly improve the self-perception ability of CNC machine tools. The internal electronic control data and external sensor signal data are obtained through different acquisition devices and acquisition methods respectively. At present, the acquisition of their synchronized data is mostly achieved by saving local data transfer and performing manual splicing and alignment.

[0004] It can be seen that the existing technology relies on manual alignment of internal data and external data collected by CNC machine tools, which is time-consuming and labor-intensive, and has poor results. Summary of the invention

[0005] In view of this, it is necessary to provide a CNC machine tool data synchronization method, device, CNC machine tool and storage medium to solve the problem that the existing technology relies on manual alignment of internal data and external data collected by CNC machine tools, which is time-consuming, labor-intensive and has poor results.

[0006] In order to solve the above problems, the present invention provides a method for synchronizing CNC machine tool data, comprising: Collecting external sensor signal data of a numerically controlled machine tool, and calling back the external sensor signal data at a preset first time interval, and recording a callback trigger timestamp; Collecting the internal electronic control data of the CNC machine tool and recording the start time stamp of collecting the internal electronic control data; The external sensor signal data and the internal electric control data are synchronized based on the start acquisition timestamp and the callback trigger timestamp.

[0007] In a possible implementation manner, the collecting of external sensor signal data of a numerically controlled machine tool and calling back the external sensor signal data at a preset first time interval include: Collecting the external sensor signal data of the CNC machine tool through an acquisition card, and storing the external sensor signal data in a buffer area of ​​the acquisition card; The external sensor signal data in the buffer area is recalled to the local storage area according to a preset first time interval.

[0008] In a possible implementation manner, the collecting the internal electronic control data of the CNC machine tool and recording the start time stamp of the collection of the internal electronic control data includes: Starting to collect the internal electronic control data of the CNC machine tool based on the data collection instruction, and recording the start time stamp of the collection of the internal electronic control data; The internal electric control data is stored in an internal buffer area, and the internal electric control data is stored in a local storage area according to a preset second time interval.

[0009] In a possible implementation, synchronizing the external sensor signal data and the internal electronic control data based on the start acquisition timestamp and the callback trigger timestamp includes: Determine the target callback trigger timestamp closest to the start acquisition timestamp; Intercepting the external sensor signal data segment between the start acquisition timestamp and the target callback trigger timestamp; The internal electric control data is synchronized with the external sensor signal data segment.

[0010] In a possible implementation manner, synchronizing the internal electronic control data with the external sensor signal data segment includes: Based on the start acquisition timestamp or determining the data synchronization moment; The internal electric control data and the external sensor signal data after the data synchronization time are synchronously stored in the local storage area.

[0011] In a possible implementation manner, the start time of collecting the external sensor signal data is earlier than the start time of collecting the internal electronic control data.

[0012] In one possible implementation, the method includes: Setting parallel threads for the internal electric control data and the external sensor signal data; The internal electric control data and the external sensor signal data are collected in parallel through the parallel threads.

[0013] The present invention also provides a data synchronization device for a numerically controlled machine tool, comprising: An external data acquisition module is used to collect external sensor signal data of the CNC machine tool, and to call back the external sensor signal data according to a preset first time interval, and record a callback trigger timestamp; An internal data acquisition module, used for acquiring the internal electronic control data of the CNC machine tool and recording the start time stamp of the acquisition of the internal electronic control data; A data synchronization module is used to synchronize the external sensor signal data with the internal electric control data based on the start acquisition timestamp and the callback trigger timestamp.

[0014] The present invention also provides a numerically controlled machine tool, comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the CNC machine tool data synchronization method described in any of the above embodiments.

[0015] The present invention also provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the CNC machine tool data synchronization method described in any of the above embodiments.

[0016] The beneficial effects of the present invention are as follows: the data machine tool data synchronization method provided by the present invention collects the external sensor signal data of the CNC machine tool, and regularly calls back the external sensor signal data, records the callback trigger timestamp, and records the start collection timestamp of the internal electric control data of the CNC machine tool, and then synchronizes the internal electric control data and the external sensor signal data based on the callback trigger timestamp and the start collection timestamp to ensure that the data is aligned with the timestamp, and there is no need for manual synchronization processing of the data, thereby improving work efficiency and having a high degree of data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 work.

[0018] FIG1 is a schematic diagram of a flow chart of a method for synchronizing data of a numerical control machine tool provided by an embodiment of the present invention; Figure 2 A schematic flow chart of a method for collecting data from an external sensor signal is provided for an embodiment of the present invention; Figure 3A flow chart of external sensor signal data acquisition is provided for an embodiment of the present invention; Figure 4 A schematic flow chart of an internal electric control data acquisition method is provided for an embodiment of the present invention; Figure 5 Provided is a flow chart of internal electric control data collection for an embodiment of the present invention; Figure 6 A flowchart of a method for implementing S103 is provided for an embodiment of the present invention; Figure 7 A flowchart of a method for implementing S603 is provided for an embodiment of the present invention; Figure 8 A schematic flow chart of a parallel acquisition method is provided for an embodiment of the present invention; Fig. 9 A schematic diagram of the structure of a data synchronization device for a numerical control machine tool provided by an embodiment of the present invention; Fig.10 A structural schematic diagram of a CNC machine tool provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the present invention and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0020] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0021] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0022] A specific embodiment of the present invention, as Figure 1 As shown, a method for synchronizing CNC machine tool data is disclosed, comprising: S101, collecting external sensor signal data of a CNC machine tool, and calling back the external sensor signal data at a preset first time interval, and recording a callback trigger timestamp; S102, collecting internal electronic control data of the CNC machine tool and recording the start time stamp of collecting the internal electronic control data; S103, synchronizing the external sensor signal data and the internal electric control data based on the start acquisition timestamp and the callback trigger timestamp.

[0023] In an embodiment of the present invention, the CNC machine tool may have multiple external sensor devices, such as vibration sensors, chip force sensors, sound sensors, image sensors, etc., which can obtain various types of signal data of the CNC machine tool during the processing process, and provide more abundant machine tool operation aggregation data for the realization of key intelligent technologies. Optionally, when collecting external sensor signal data, the collection frequency can be set, and according to the sampling frequency, the external sensor signal data collected within the time interval can be called back according to the preset first time interval. Optionally, the first time interval can be set according to actual conditions, such as 30s, 60s, etc. For each callback of the external sensor signal data, the callback trigger timestamp is recorded.

[0024] In an embodiment of the present invention, the internal electronic control data of a CNC machine tool can be directly and continuously collected through the internal data acquisition module of the CNC machine tool. Each time the collection starts, the start collection timestamp is recorded. It should be noted that after the CNC machine tool is turned on and started running, it can start collecting the internal electronic control data of the data machine tool. Generally, when the CNC machine tool is in a continuous processing state, it only needs to issue a start instruction for sequential data collection. Based on the start instruction for data collection, the internal data acquisition module of the CNC machine tool will continuously collect the internal electronic control data, so it is only necessary to record the start collection timestamp.

[0025] In an embodiment of the present invention, the internal electric control data and the external sensor information data can be synchronized based on the start acquisition timestamp of the internal electric control data and the callback trigger timestamp of the external sensor information data. The specific synchronization method will be described in detail later in the present invention.

[0026] The data machine tool data synchronization method provided by the present invention collects the external sensor signal data of the CNC machine tool, and regularly calls back the external sensor signal data, records the callback trigger timestamp, and records the start collection timestamp of the internal electric control data of the CNC machine tool, and then synchronizes the internal electric control data and the external sensor signal data based on the callback trigger timestamp and the start collection timestamp, ensuring that the data is aligned with the timestamp, eliminating the need for manual synchronization processing of the data, improving work efficiency, and having a high degree of data synchronization.

[0027] As a possible implementation mode of the present invention, in this implementation mode, Figure 2As shown, collecting the external sensor signal data of the CNC machine tool and calling back the external sensor signal data according to a preset first time interval includes: S201, collecting external sensor signal data of the CNC machine tool through an acquisition card, and storing the external sensor signal data in a buffer area of ​​the acquisition card; S202: recall the external sensor signal data in the buffer area to the local storage area according to a preset first time interval.

[0028] In the embodiment of the present invention, for the collection of external sensor signal data, it is necessary to first build a collection environment. For example, a CNC machine tool with an external three-axis acceleration sensor can collect the acceleration sensor signal data through an acquisition card, and store the signal data in the cache area of ​​the acquisition card, and call back the external sensor signal data in the cache area of ​​the acquisition card to the local storage area according to a preset first time interval. Specifically, Figure 3 As shown, a secondary development program for external data acquisition can be designed. The secondary development program can be used to configure sampling tasks, acquisition channels and acquisition parameters to drive the acquisition card to collect sensor data, and use the trigger callback function mode to save and update the external sensor information data in the cache. By setting the task timing, the callback function is triggered after each first time interval, and the stored data is transmitted to the local, the cache data is cleared, and the storage of new collected data is restarted. The trigger callback function realizes the continuous acquisition of external data by reading and storing the cached data.

[0029] The embodiment of the present invention implements continuous acquisition of the external sensor signal data by designing a callback function to call back the external sensor signal data in the buffer area of ​​the acquisition card.

[0030] As a possible implementation mode of the present invention, in this implementation mode, Figure 4 As shown, the internal electronic control data of the CNC machine tool is collected, and the start time stamp of the internal electronic control data collection is recorded, including: S401, starting to collect internal electronic control data of the CNC machine tool based on the data collection instruction, and recording the start time stamp of the internal electronic control data collection; S402, storing the internal electric control data in the internal buffer area, and storing the internal electric control data in the local storage area according to a preset second time interval.

[0031] In the embodiment of the present invention, for the collection of internal electronic control data of a CNC machine tool, such as Figure 5As shown, it is necessary to first establish a data transmission connection between the acquisition program and the CNC system by configuring the IP address and port number, call the acquisition function of the CNC system secondary development, set the acquisition parameters such as acquisition channel, sampling frequency and sampling time, and call the data acquisition instruction of the start acquisition function. The internal electronic control data of the CNC system will continuously store the sampled data in the internal cache according to the sampling configuration, and read the cached data at equal intervals and write it into the local data stream file, so as to realize the continuous reading and saving of internal data after the start of acquisition.

[0032] Further, such as Figure 6 As shown, the external sensor signal data and the internal electronic control data are synchronized based on the start acquisition timestamp and the callback trigger timestamp, including: S601, determining the target callback trigger timestamp closest to the start acquisition timestamp; S602, intercepting the external sensor signal data segment between the start acquisition timestamp and the target callback trigger timestamp; S603, synchronizing the internal electric control data with the external sensor signal data segments.

[0033] In the embodiment of the present invention, there is only one start acquisition timestamp for the CNC machine tool in a continuous working state, but there are multiple callback trigger timestamps, so it is necessary to first determine the target callback trigger timestamp to be synchronized with the start acquisition timestamp. In general, the callback trigger timestamp with the shortest time interval with the start acquisition timestamp can be determined as the target callback trigger timestamp, because the trigger callback timestamp records the callback moment of the external sensor signal data, and the callback data is the data collected within a period of time before the trigger callback timestamp. For the target callback trigger timestamp, whether the start acquisition timestamp is before or after it, it can be ensured that the collection time of the callback external sensor signal data corresponding to the target callback trigger timestamp includes the start acquisition timestamp, and it is ensured that the internal electric control data corresponding to the start acquisition timestamp has the corresponding external sensor signal data. Based on this, after determining the target callback trigger timestamp, the external sensor data segment between the start acquisition timestamp and the target callback timestamp is intercepted, and the external sensor signal data segment is synchronized with the internal electric control data.

[0034] The embodiment of the present invention determines the target callback trigger timestamp by starting the acquisition timestamp, and determines the external sensor signal data segment that needs to be synchronized with the internal electronic control data based on the target callback trigger timestamp, thereby achieving accurate synchronization of the internal electronic control data and the external sensor signal data of the CNC machine tool.

[0035] Further, such as Figure 7 As shown, the internal electronic control data is synchronized with the external sensor signal data fragments, including: S701, determining a data synchronization time based on a start collection timestamp; S702, synchronously storing the internal electric control data and the external sensor signal data after the data synchronization time in the local storage area.

[0036] In an embodiment of the present invention, after determining the target callback trigger timestamp and extracting the external sensor signal data segment, the moment corresponding to the start acquisition timestamp is determined as the data synchronization moment, indicating that the CNC machine tool starts to synchronously collect internal electronic control data and external sensor signal data from the data synchronization moment. Starting from the data synchronization moment, the internal electronic control data and external sensor signal data collected after the data synchronization moment are synchronously stored in the local storage area.

[0037] Furthermore, the start time of collecting the external sensor signal data is earlier than the start time of collecting the internal electronic control data.

[0038] In an embodiment of the present invention, firstly, by configuring an external acquisition task, the external acquisition process is put into a data acquisition state, and then the internal data acquisition process is started, and an external variable is used to control the data saving command of the external acquisition process, and the callback function trigger time of the external acquisition is captured, and by passing the internal start acquisition timestamp and the start data saving instruction to the external acquisition process, the callback trigger function closest to the start acquisition timestamp starts to save the acquired data, and through the time interval between the callback function trigger timestamp and the start acquisition timestamp, the fragment data between the start acquisition timestamp and the callback function trigger timestamp in the external acquisition cache is intercepted and saved, and the external acquisition is in a state of continuously saving cache data, so that the start timestamps of the external and internal acquisition data are aligned, and finally the synchronous acquisition of internal and external data is realized.

[0039] Optional, such as Figure 8 As shown, the method includes: S801, setting parallel threads for internal electronic control data and external sensor signal data; S802, collecting internal electronic control data and external sensor signal data in parallel through parallel threads.

[0040] In an embodiment of the present invention, in order to improve the collection efficiency of internal electric control data and external sensor signal data, parallel threads can be set for the internal electric control data and the external sensor signal data, and the internal electric control data and the external sensor signal data can be collected in parallel through the parallel threads. Specifically, a parallel thread for internal collection and external sensor data collection is created through a secondary development program, considering that the internal collection of the numerical control system is a continuous data stream mode of storing data in the buffer area and the external acquisition card collection usually adopts a buffer area cyclic collection and timing trigger data transmission mode, by capturing the internal collection start timestamp and the external collection callback trigger timestamp, and passing the internal collection start timestamp to the external collection callback function, using the start data saving instruction and intercepting the sensor data fragment from the external collection buffer area from the start collection timestamp to the trigger callback time, so that the internal data and the external data start data saving timestamp are aligned to achieve the synchronous collection of internal electric control data and external sensor data.

[0041] In order to better implement the CNC machine tool data synchronization method in the embodiment of the present invention, based on the CNC machine tool data synchronization method, correspondingly, Fig. 9 As shown, the embodiment of the present invention further provides a CNC machine tool data synchronization device, and the CNC machine tool data synchronization device 900 includes: The external data acquisition module 901 is used to collect the external sensor signal data of the CNC machine tool, and call back the external sensor signal data according to a preset first time interval, and record the callback trigger timestamp; The internal data acquisition module 902 is used to acquire the internal electronic control data of the CNC machine tool and record the start time stamp of the internal electronic control data acquisition; The data synchronization module 903 is used to synchronize the external sensor signal data and the internal electric control data based on the start acquisition timestamp and the callback trigger timestamp.

[0042] The CNC machine tool data synchronization device 700 provided in the above embodiment can implement the technical solution described in the above CNC machine tool data synchronization method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above CNC machine tool data synchronization method embodiment, which will not be repeated here.

[0043] The data machine tool data synchronization device provided by the present invention collects the external sensor signal data of the CNC machine tool, and regularly calls back the external sensor signal data, records the callback trigger timestamp, and records the start collection timestamp of the internal electric control data of the CNC machine tool, and then synchronizes the internal electric control data and the external sensor signal data based on the callback trigger timestamp and the start collection timestamp, ensuring that the data is aligned with the timestamp, eliminating the need for manual synchronization processing of the data, improving work efficiency, and having a high degree of data synchronization.

[0044] like Fig.10 As shown, the present invention also provides a numerical control machine tool 1000. The numerical control machine tool 1000 includes a processor 1001, a memory 1002 and a display 1003. Fig.10 Only some components of the numerical control machine tool 1000 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0045] In some embodiments, the processor 1001 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 1002, such as the CNC machine tool data synchronization method of the present invention.

[0046] In some embodiments, the processor 1001 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 1001 may be local or remote. In some embodiments, the processor 1001 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.

[0047] In some embodiments, the memory 1002 may be an internal storage unit of the CNC machine tool 1000, such as a hard disk or memory of the CNC machine tool 1000. In other embodiments, the memory 1002 may also be an external storage device of the CNC machine tool 1000, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the CNC machine tool 1000.

[0048] Furthermore, the memory 1002 may include both an internal storage unit of the CNC machine tool 1000 and an external storage device. The memory 1002 is used to store application software installed in the CNC machine tool 1000 and various data.

[0049] In some embodiments, the display 1003 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 1003 is used to display information of the CNC machine tool 1000 and to display a visual user interface. The components 1001-1003 of the CNC machine tool 1000 communicate with each other via a system bus.

[0050] In some embodiments, when the processor 1001 executes the CNC machine tool data synchronization program in the memory 1002, the following steps may be implemented: Collecting external sensor signal data of the CNC machine tool, and calling back the external sensor signal data according to a preset first time interval, and recording the callback trigger timestamp; Collect the internal electronic control data of the CNC machine tool and record the start time stamp of the internal electronic control data collection; The external sensor signal data and the internal electronic control data are synchronized based on the start acquisition timestamp and the callback trigger timestamp.

[0051] It should be understood that: when the processor 1001 executes the CNC machine tool data synchronization program in the memory 1002, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.

[0052] Correspondingly, an embodiment of the present invention also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions of the CNC machine tool data synchronization method provided by the above-mentioned method embodiments can be implemented.

[0053] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0054] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for synchronizing data of a numerical control machine tool, characterized in that: include: Collecting external sensor signal data of a numerically controlled machine tool, and calling back the external sensor signal data at a preset first time interval, and recording a callback trigger timestamp; Collecting the internal electronic control data of the CNC machine tool and recording the start time stamp of collecting the internal electronic control data; The external sensor signal data and the internal electric control data are synchronized based on the start acquisition timestamp and the callback trigger timestamp.

2. The method for synchronizing CNC machine tool data according to claim 1, characterized in that: The collecting of external sensor signal data of the numerical control machine tool and calling back the external sensor signal data according to a preset first time interval include: Collecting the external sensor signal data of the CNC machine tool through an acquisition card, and storing the external sensor signal data in a buffer area of ​​the acquisition card; The external sensor signal data in the buffer area is recalled to the local storage area according to a preset first time interval.

3. The method for synchronizing CNC machine tool data according to claim 2, characterized in that: The collecting of the internal electric control data of the numerical control machine tool and recording the start time stamp of the collection of the internal electric control data include: Starting to collect the internal electronic control data of the CNC machine tool based on the data collection instruction, and recording the start time stamp of the collection of the internal electronic control data; The internal electric control data is stored in an internal buffer area, and the internal electric control data is stored in a local storage area according to a preset second time interval.

4. The method for synchronizing CNC machine tool data according to claim 3, characterized in that: The synchronizing the external sensor signal data and the internal electric control data based on the start acquisition timestamp and the callback trigger timestamp includes: Determine the target callback trigger timestamp closest to the start acquisition timestamp; Intercepting the external sensor signal data segment between the start acquisition timestamp and the target callback trigger timestamp; The internal electric control data is synchronized with the external sensor signal data segment.

5. The method for synchronizing CNC machine tool data according to claim 4, characterized in that: The step of synchronizing the internal electric control data with the external sensor signal data segment comprises: Determine the data synchronization time based on the start acquisition timestamp; The internal electric control data and the external sensor signal data after the data synchronization time are synchronously stored in the local storage area.

6. The method for synchronizing CNC machine tool data according to claim 1, characterized in that: The start time of collecting the external sensor signal data is earlier than the start time of collecting the internal electric control data.

7. The method for synchronizing CNC machine tool data according to claim 1, characterized in that: The method comprises: Setting parallel threads for the internal electric control data and the external sensor signal data; The internal electric control data and the external sensor signal data are collected in parallel through the parallel threads.

8. A data synchronization device for a numerical control machine tool, characterized in that: include: An external data acquisition module is used to collect external sensor signal data of the CNC machine tool, and to call back the external sensor signal data according to a preset first time interval, and record a callback trigger timestamp; An internal data acquisition module, used for acquiring the internal electronic control data of the CNC machine tool and recording the start time stamp of the acquisition of the internal electronic control data; A data synchronization module is used to synchronize the external sensor signal data with the internal electric control data based on the start acquisition timestamp and the callback trigger timestamp.

9. A CNC machine tool, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the CNC machine tool data synchronization method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the CNC machine tool data synchronization method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Embedded type integratedly-manufactured data collecting terminal based on network

    CN103384268A

  • Machine tool multi-source data acquisition system and method based on NC code triggering

    CN110737243A

  • Automation system and method for cycle time, process and / or machine optimisation

    EP1892598A2

  • Method for recognizing image of green wall, and system thereof

    KR1020250072636A

  • Synchronizing device, synchronization method and synchronization program

    US20190383701A1