Data acquisition method and system, numerical control equipment and electronic equipment

By automatically judging the motion state of the machine tool and filtering duplicate data, the problem of unstable data acquisition quality in the roundness test of CNC machine tools is solved, and the accuracy and efficiency of data acquisition and analysis are improved.

CN119087912APending Publication Date: 2024-12-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000335.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The data acquisition quality in the roundness test of existing CNC machine tools is unstable, resulting in poor test results and drawing effects, mainly due to the user's manual operation, which leads to redundant or missing data acquisition.

Method used

By automatically collecting machine tool axis coordinate data, the machine tool motion state is judged based on the received axis coordinate data, repeated data is filtered, data processing is ensured in the motion preparation and end stages, invalid data is reduced, and data acquisition is improved.

Benefits of technology

It realizes high-quality data acquisition, reduces data processing pressure, improves the accuracy and efficiency of data analysis, and avoids data acquisition quality problems caused by manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119087912A_ABST
    Figure CN119087912A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data acquisition method and system, numerical control equipment and electronic equipment, and belongs to the field of numerical control and data processing. The method comprises the following steps: receiving axis coordinate data of a machine tool; under the condition that it is determined that the machine tool enters the motion preparation stage according to the currently received axis coordinate data, axis coordinate data processing is carried out based on the currently received axis coordinate data until it is determined that the machine tool enters the motion ending stage according to the currently received axis coordinate data; wherein the axis coordinate data processing comprises the step of storing or sending the axis coordinate data, or the axis coordinate data processing comprises the step of storing or sending the filtered axis coordinate data. The embodiment of the invention has the effect of improving the data acquisition quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of numerical control and data processing, and in particular to a data acquisition method, system, numerical control equipment and electronic equipment. Background Art

[0002] The field of numerical control is a comprehensive field involving automation, mechanical processing, computer technology, etc. Among them, high-quality data collection is often related to the optimization of the production process, the improvement of product quality and the reduction of production costs.

[0003] Taking the roundness test of CNC machine tools as an example, the roundness test of CNC systems is an important part of the precision detection of CNC machine tools, providing intuitive graphics and data for debugging interpolation axes, system parameters, feedforward algorithms, and optimizing drivers. In the existing roundness test method, the operation process is that the user presses the "Start" button of the machine tool; the user clicks the "Start" button on the interface; and data collection begins.

[0004] However, the existing technology has the technical problem of unstable data acquisition quality, which in turn affects the roundness test results and drawing effects. Summary of the invention

[0005] The embodiments of the present application provide a data acquisition method, system, numerical control device, and electronic device to at least solve the technical problem of unstable quality of data collected in the prior art.

[0006] According to a first aspect of an embodiment of the present application, a data acquisition method is provided, the data acquisition method being used to acquire data on a motion state of a machine tool, the motion state including a motion preparation phase, a motion phase, and a motion end phase in chronological order, the data acquisition method comprising:

[0007] Receive axis coordinate data of machine tool;

[0008] In the case where it is determined that the machine tool enters the motion preparation stage according to the currently received axis coordinate data, axis coordinate data processing is performed based on the currently received axis coordinate data until it is determined that the machine tool enters the motion end stage according to the currently received axis coordinate data;

[0009] The axis coordinate data processing includes storing or sending the axis coordinate data, or the axis coordinate data processing includes storing or sending the axis coordinate data after filtering duplicate coordinates.

[0010] By adopting this embodiment, data under specific motion states can be automatically and specifically collected, while reducing invalid data and redundant data, reducing the resource requirements for data processing (such as storage and transmission), and improving the availability of data collection results. It is also beneficial to reduce the computational complexity of subsequent data analysis and improve data analysis efficiency and accuracy.

[0011] In combination with the first aspect, in an alternative implementation manner of the embodiments of the present application, the receiving of the axis coordinate data of the machine tool includes: starting to receive the axis coordinate data of the machine tool in response to the start signal of the machine tool; wherein, after the machine tool starts, it enters the motion state.

[0012] Adopting this implementation manner, on the one hand, the data acquisition process can be automated to improve efficiency; on the other hand, it can avoid the problems of unstable data acquisition quality and poor data quality (such as a large amount of redundant data, missing data, etc.) caused by improper timing of manually "starting" the machine tool and manually triggering the "start" button.

[0013] In combination with the first aspect, in an alternative implementation manner of the embodiments of the present application, when it is determined that the machine tool enters the motion preparation stage according to the currently received axis coordinate data, the axis coordinate data processing based on the currently received axis coordinate data includes:

[0014] When the first repetition count determined according to the currently received axis coordinate data reaches the first target count, it is regarded as entering the motion preparation stage, and the axis coordinate data processing is performed based on the currently received axis coordinate data;

[0015] Wherein, each time the axis coordinate data is received, the currently received axis coordinate data is compared with the previous axis coordinate data to determine whether there is a repetition, and the first repetition count is accumulated in the case of repetition.

[0016] Wherein, if the first repetition count reaches the first target count, the first repetition count is cleared.

[0017] Adopting this implementation manner can filter out the data before the motion preparation stage and part of the data during the motion preparation stage, reduce the pressure of data processing (storage, transmission, etc.), and improve the accuracy and efficiency of subsequent data analysis.

[0018] In combination with the first aspect, in an alternative implementation manner of the embodiments of the present application, the first target count is determined according to the period of receiving the axis coordinate data of the machine tool and the duration of the motion preparation stage; or,

[0019] The first target count satisfies the following condition: k1·T2 < N·T1 < k2·T2, where T1 represents the period of receiving the axis coordinate data of the machine tool, T2 represents the duration of the motion preparation stage, N represents the first target count, and 0.95 ≤ k1 < k2 ≤ 0.98.

[0020] Adopting this implementation manner is beneficial to filtering out as many repeated data in the motion preparation stage as possible.

[0021] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the processing of the axis coordinate data based on the currently received axis coordinate data includes:

[0022] Store the currently received axis coordinate data into a data file or send it to the target device; or,

[0023] When the axis coordinate data currently received is not repeated with the axis coordinate data previously received, the axis coordinate data currently received is stored in a data file or sent to a target device, so that repeated data collected during the motion phase can be filtered out.

[0024] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the step of determining that the machine tool enters the motion end stage according to the currently received axis coordinate data includes:

[0025] until a second number of repetitions determined according to the currently received axis coordinate data reaches a second target number of repetitions;

[0026] After the machine tool enters the motion preparation stage, the axis coordinate data currently received is compared with the axis coordinate data previously received to determine whether to repeat and, in the case of repetition, accumulate the second number of repetitions.

[0027] By adopting this implementation method, some data in the end stage of the movement can be filtered out, the pressure of data processing (storage, transmission, etc.) can be reduced, the proportion of redundant data or invalid data can be reduced, and the data quality can be improved.

[0028] In combination with the first aspect, in an optional implementation method of the embodiment of the present application, the motion state is a motion state under a roundness test, the motion preparation stage includes a first pause at the starting point of drawing a circle, the motion stage is drawing a circle from the starting point of drawing a circle, and the motion stop stage includes a second pause after the circle is drawn, or further, the motion state under the roundness test also includes a straight line motion stage from the center of the circle to the starting point of drawing a circle.

[0029] The adoption of this implementation method is beneficial to improving the data acquisition quality of machine tool roundness testing.

[0030] According to a second aspect of an embodiment of the present application, a data acquisition method is provided, the data acquisition method being used to acquire data on a motion state of a machine tool, the motion state including a motion preparation phase, a motion phase, and a motion end phase in chronological order, the data acquisition method comprising:

[0031] After the machine tool enters the motion preparation phase and lasts for a first time, processing the axis coordinate data until the machine tool enters the motion end phase and lasts for a second time;

[0032] The axis coordinate data processing includes storing or sending the axis coordinate data, or the axis coordinate data processing includes storing or sending the axis coordinate data after filtering duplicate coordinates.

[0033] In conjunction with the second aspect, in an optional implementation manner of the embodiment of the present application, the method includes:

[0034] Accumulating a first repetition number of consecutively receiving the same axis coordinate data, and when the first repetition number reaches a first target number, determining that the machine tool enters the motion preparation stage and lasts for a first time; and / or,

[0035] After the machine tool enters the motion preparation stage, the second repetition number of consecutive receipts of the same axis coordinate data is accumulated. When the second repetition number reaches the second target number, it is determined that the machine tool enters the motion end stage and lasts for a second time, and the second target number is less than or equal to the first target number.

[0036] According to a third aspect of an embodiment of the present application, a data processing system is provided, the data processing system being used to collect data on the motion state of a machine tool and perform data processing, the data processing system comprising:

[0037] A data acquisition module, used to acquire axis coordinate data using the method of the first aspect of the embodiment of the present application;

[0038] A data analysis module, used to perform data analysis on the axis coordinate data collected by the data collection module to obtain data evaluation indicators;

[0039] A drawing module, used for drawing reference graphics and drawing actual graphics corresponding to the axis coordinate data collected by the data collection module;

[0040] The display module is used to display the data evaluation index analyzed by the data analysis module and the reference graphics and actual graphics drawn by the drawing module.

[0041] In conjunction with the third aspect, in an optional implementation of the embodiment of the present application, the drawing module and the display module implement their functions through a first thread, and the data analysis module implements its function through a second thread;

[0042] The axis coordinate data collected by the data acquisition module is stored in a txt file;

[0043] The display module is also used to display a position input box for obtaining the coordinates of a specified starting position input by a user, so as to add a displacement instruction for moving the axis of the machine tool to the specified starting position in the NC program when generating the NC program.

[0044] According to a fourth aspect of an embodiment of the present application, there is provided an electronic device, including:

[0045] a memory for storing one or more computer instructions;

[0046] A processor is used to call the one or more computer instructions to implement the method described in the first aspect of the embodiment of the present application.

[0047] According to the fifth aspect of the embodiments of the present application, a numerical control device is provided for communicating with a numerical control machine tool, which adopts the method according to the first aspect or the second aspect of the embodiments of the present application, or includes a data processing system according to the third aspect of the embodiments of the present application, or includes an electronic device according to the fourth aspect of the embodiments of the present application.

[0048] The technical effects obtained by the above-mentioned second to fifth aspects are similar to the technical effects obtained by the first aspect and the corresponding technical means in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of a data collection method provided in an embodiment of the present application;

[0050] Figure 2 is a system schematic block diagram of a data acquisition system provided in an embodiment of the present application;

[0051] Figure 3 It is a flow chart of a roundness testing method provided in an embodiment of the present application;

[0052] Figure 4 This is a data collection process diagram provided by an embodiment of the present application;

[0053] Figure 5 This is a data analysis flow diagram provided by an embodiment of the present application;

[0054] Figure 6 It is a block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0056] It should be understood that the "plurality" mentioned in this article refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and so on are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and so on do not limit the quantity and execution order, and the words "first", "second" and so on do not limit certain different

[0057] In addition, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.

[0058] First, the terms involved in the embodiments of the present application are introduced.

[0059] Roundness test: An important testing method in CNC technology, mainly used to evaluate the accuracy and stability of machine tools when processing circular parts. The roundness test of CNC machine tools usually uses the high-precision position feedback function of the CNC system to measure the deviation between the actual position and the theoretical position of the machine tool at different positions by simulating tool movement or actual processing. After these deviation data are recorded, they are processed by specific algorithms or software to finally obtain the roundness error of the workpiece.

[0060] NC program: An important file used in numerical control programming to guide machine tools to perform processing. It contains all the information required for processing, such as tool paths, cutting parameters, workpiece positions, etc., to ensure that the machine tool can complete the processing task according to the preset instructions. The correctness and accuracy of the NC program directly affects the processing quality and efficiency.

[0061] The above introduces the terms involved in the embodiments of the present application. Next, the application scenarios of the data acquisition method provided in the embodiments of the present application in the field of numerical control are exemplarily introduced.

[0062] Taking the roundness test as an example, the motion trajectory of most CNC machine tools is a spatial curve. The roundness test is to let the machine tool move a circle of corresponding radius at a certain speed, and then analyze the actual effect of moving the circle, which can show the dynamic characteristics of the machine tool at the turning point. The test results of the roundness test of CNC machine tools directly affect the roundness error of the processed parts, and indirectly affect the matching accuracy, rotation accuracy, vibration and noise of the workpiece.

[0063] To accurately determine the actual circular effect, a method for high-quality data collection during the roundness test is required. The data collection method provided in the embodiment of the present application can be roughly operated as follows when applying the roundness test: input the input parameters for generating the NC program through the roundness test interface, and then automatically generate the roundness test NC program; run the NC program and then execute the data collection method provided in the embodiment of the present application to obtain the axis coordinate data; analyze, draw and present the axis coordinate data according to the obtained axis coordinate data, so as to display the effect of the roundness test on the interface.

[0064] The above exemplifies the application scenario of the embodiment of the present application. In this application scenario or similar scenarios, there is a related technology. In actual application, this technology requires the user to manually press the "Start" button of the machine tool, and then click the "Start" button on the interface to start data collection. And when the roundness test takes the current point as the center of the circle, there will be a straight line interpolation at the beginning stage. According to the inventor's research, in actual operation, the "Start" button and the "Stop" button are often pressed at inappropriate times, resulting in poor data collection quality, which in turn affects the test results and drawing effects.

[0065] Based on this, the embodiment of the present application provides a data collection method, and the data collection method is applied to collect data of the motion state of a machine tool as an example for explanation. Among them, the motion state includes a motion preparation stage, a motion stage, and a motion end stage in chronological order. Figure 1 The flow chart of the data acquisition method shown is as follows, and the method includes the following processing procedures.

[0066] 100: Receive the axis coordinate data of the machine tool. Taking the roundness test as an example, the axis coordinate data of the test axis of the machine tool is received.

[0067] 102: When it is determined that the machine tool has entered the motion preparation stage according to the currently received axis coordinate data, the axis coordinate data is processed based on the currently received axis coordinate data until it is determined that the machine tool has entered the motion end stage according to the currently received axis coordinate data. That is, the embodiment of the present application performs the processing of 102 while continuously receiving the axis coordinate data of the machine tool.

[0068] Specifically, 102 may include: making a judgment based on the currently received axis coordinate data, and when it is determined that the machine tool has entered the motion preparation stage, performing axis coordinate data processing based on the currently received axis coordinate data, and at the same time judging whether the machine tool has entered the motion end stage based on the currently received axis coordinate data, and if it has entered the motion end stage, stopping the axis coordinate data processing.

[0069] The axis coordinate data processing includes storing or sending the axis coordinate data, or the axis coordinate data processing includes storing or sending the axis coordinate data after filtering duplicate coordinates.

[0070] By adopting the data acquisition method provided in the embodiment of the present application, the motion state of the machine tool is automatically determined according to the currently received axis coordinate data, so that data under a specific motion state can be automatically and specifically collected. While reducing invalid data and redundant data, the resource requirements for data processing (such as storage and transmission) are reduced, and the availability of data acquisition results is improved. At the same time, it is beneficial to reduce the computational complexity of subsequent data analysis and improve data analysis efficiency and accuracy.

[0071] The above description is based on the application of the embodiment of the present invention in the roundness test scenario. The embodiment of the present invention and the following embodiments are not limited to the roundness test scenario unless otherwise specified. In other words, as long as the motion state of the machine tool includes the motion preparation phase, the motion phase and the motion end phase in chronological order, there is a motion state with unchanged position, and it is necessary to collect the axis coordinate data of the motion phase, the solution provided by the embodiment of the present application can be adopted.

[0072] In a possible embodiment of the present application, the axis coordinate data of the machine tool is received in response to a start signal of the machine tool; wherein the machine tool enters a motion state after being started.

[0073] By adopting this embodiment, compared with the existing method that requires manually triggering the "start" button to perform data collection after "starting" the machine tool, subsequent data collection can be automatically performed only when the machine tool is started. On the one hand, the data collection process can be automated to improve efficiency; on the other hand, the problem of poor data collection quality (for example, large amounts of data redundancy, data missing, etc.) caused by the inappropriate timing of manually "starting" the machine tool and manually triggering the "start" button can be avoided.

[0074] In a possible embodiment of the present application, when it is determined that the machine tool enters the motion preparation stage based on the currently received axis coordinate data, axis coordinate data processing is performed based on the currently received axis coordinate data, including: when the first repetition count determined based on the currently received axis coordinate data reaches the first target count, axis coordinate data processing is performed based on the currently received axis coordinate data. For example, each time axis coordinate data is received, it is compared with the previous axis coordinate data to determine whether there is a repetition, and if there is a repetition, the first repetition count is accumulated. If the first repetition count reaches the first target count, it is determined that the machine tool enters the motion preparation stage. Among them, the first repetition count can be cleared when it reaches the first target count.

[0075] In this embodiment, it is determined whether to perform axis coordinate data processing according to the first repetition count. In other words, it is determined whether the motion state of the machine tool is the motion preparation stage according to whether the first repetition count reaches the target value. Furthermore, when the first repetition count reaches the target value (that is, it is determined that the machine tool is in the motion preparation stage), axis coordinate data processing is performed. Thus, the data before the motion preparation stage and some data during the motion preparation stage can be filtered out, reducing the pressure of data processing (storage, transmission, etc.) and improving the accuracy and efficiency of subsequent data analysis.

[0076] Specifically, taking the roundness test as an example, the machine tool generally includes the following stages: the linear motion stage from the center of the circle to the starting point of drawing the circle, the motion preparation stage including the first pause at the starting point of drawing the circle, the motion stage including drawing the circle starting from the starting point of drawing the circle, and the motion end stage including the second pause (or stop) after drawing the circle ends. By using this embodiment, the data in the linear motion stage and a certain amount (for example, the first repetition count) of data in the motion preparation stage can be filtered out.

[0077] Optionally, in an implementation manner of this embodiment, the first target count is determined according to the period of receiving the axis coordinate data of the machine tool (the time interval between two consecutive receptions) and the duration of the motion preparation stage. Theoretically, when the period of receiving the axis coordinate data of the machine tool is fixed, the larger the first target count is, the better under the premise of not exceeding the duration of the motion preparation stage. In practical applications, the first target count can satisfy the following conditions: k1·T2 < N·T1 < k2·T2, where T1 represents the period of receiving the axis coordinate data of the machine tool, T2 represents the duration of the motion preparation stage, N represents the first target count, 0.8 ≤ k1 ≤ 0.99, or 0.95 ≤ k1 ≤ 0.98, or N·T1 = 0.95T2.

[0078] By using this implementation manner, it is beneficial to filter out as many repeated data in the motion preparation stage as possible.

[0079] Optionally, in a possible embodiment of the present application, axis coordinate data processing is performed based on the currently received axis coordinate data, including: storing the currently received axis coordinate data (and the axis coordinate data received thereafter) in a data file or sending it to a target device. For example, the received axis coordinate data can be stored in a txt file, or the received axis coordinate data can be directly sent to a data analysis module for data analysis.

[0080] Optionally, in a possible embodiment of the present application, when the axis coordinate data currently received is repeated or not repeated with the axis coordinate data previously received, the axis coordinate data currently received is stored in a data file or sent to a target device. With this implementation, some duplicate data can be filtered out, for example, duplicate data in the motion preparation phase, duplicate data in the motion phase, and / or duplicate data in the motion end phase.

[0081] Optionally, in a possible embodiment of the present application, until the machine tool is determined to enter the end stage of the movement according to the currently received axis coordinate data, includes: until the second number of repetitions determined according to the currently received axis coordinate data reaches the second target number. In other words, in this embodiment, it is determined that the machine tool enters the end stage of the movement when the second number of repetitions reaches the second target number.

[0082] After the machine tool enters the motion preparation stage, the axis coordinate data currently received is compared with the axis coordinate data previously received to determine whether to repeat and accumulate the second number of repetitions in the case of repetition. In other words, after the machine tool enters the motion preparation stage, it can be judged whether the machine tool enters the motion end stage.

[0083] By adopting this embodiment, the end stage of the movement can be automatically determined based on the repetition of the currently received axis coordinate data, and then the coordinate data processing can be stopped. Some data in the end stage of the movement can be filtered out, reducing the pressure of data processing (storage, transmission, etc.), reducing the proportion of redundant data or invalid data, and improving data quality.

[0084] Optionally, in this embodiment, the second target number may be the same as the first target number or may be different from the target number. For example, the second target number is less than the first target number, for example, the second target number is 10% to 20% of the first target number. In theory, when the end stage of the movement can be identified, the smaller the second target number is, the more conducive it is to reducing the number of coordinate comparisons and improving the efficiency of data collection and analysis.

[0085] An embodiment of the present application further provides a data acquisition method, which is used to acquire data on the motion state of a machine tool. The motion state includes a motion preparation phase, a motion phase, and a motion end phase in chronological order. The data acquisition method includes:

[0086] After the machine tool enters the motion preparation stage and lasts for a first time, axis coordinate data processing is performed until the machine tool enters the motion end stage and lasts for a second time; wherein the axis coordinate data processing includes storing or sending the axis coordinate data, or the axis coordinate data processing includes storing or sending the axis coordinate data after filtering duplicate coordinates.

[0087] Exemplarily, taking the application of the embodiment of the present application to roundness testing as an example, axis coordinate data processing is not performed in the linear motion stage, axis coordinate data processing is not performed before the motion preparation stage reaches a first time, axis coordinate data processing is started when the motion preparation stage reaches a first time, axis coordinate data processing is performed in the motion stage, axis coordinate data processing is performed before the motion end stage reaches a second time, and axis coordinate data processing is stopped when the motion end stage reaches a second time.

[0088] By adopting the method provided in this embodiment, it is possible to filter out data before the exercise preparation stage, part of the data during the exercise preparation stage, part of the data during the exercise end stage, and data after the exercise end stage, thereby improving the quality of data acquisition, reducing the pressure of data processing (storage, transmission, etc.), and improving the accuracy and efficiency of subsequent data analysis.

[0089] Optionally, in an implementation of this embodiment, the second time is the same as or different from the first time. For example, the second time is smaller than the first time. In theory, the smaller the first time is, the more conducive it is to reducing the amount of data comparison and improving data collection efficiency.

[0090] Optionally, in an implementation of this embodiment, a first repetition number of consecutively received same axis coordinate data is accumulated, and when the first repetition number reaches a first target number, it is determined that the machine tool enters the motion preparation stage and lasts for a first time, that is, it lasts for a first time in the motion preparation stage. With this implementation, it can be determined whether the machine tool is in the motion preparation stage and the duration of the stage according to the repetition number of the axis coordinate data.

[0091] Optionally, in one implementation of this embodiment, after the machine tool enters the motion preparation stage, the second number of repetitions of the same axis coordinate data are continuously received cumulatively, and when the second number of repetitions reaches a second target number, it is determined that the machine tool enters the motion end stage and lasts for a second time, that is, the motion end stage lasts for a second time, and the second target number is less than or equal to the first target number.

[0092] By adopting this implementation mode, whether the machine tool is in the end stage of movement and the duration of this stage can be determined according to the number of repetitions of the axis coordinate data.

[0093] Figure 2is a schematic block diagram of a data processing system according to an embodiment of the present application. Figure 2 As shown, the data processing system includes a data acquisition module 21, a data analysis module 22, a drawing module 23, and a display module 24. Each of these modules will be described below.

[0094] In this embodiment, the data acquisition module 21 is used to perform data acquisition using the data acquisition method provided in the previous embodiments or implementations of the present application.

[0095] For example, Figure 2 As shown, the data acquisition module 21 receives the axis coordinate data sent from the real-time system 20. Taking the roundness test as an example, the data acquisition module 21 is responsible for automatically collecting the coordinate data required for the roundness test, and can be used to selectively collect the coordinate data from the real-time system 20; write the data into a file; send a collection completion signal after the collection is completed, etc.

[0096] The real-time system 20 is responsible for sending the coordinate data of the encoder (in the machine tool feed system, the encoder performs position detection and feedback control) to the data acquisition module. The frequency can be customized, for example, once every 1 millisecond (ms).

[0097] In a practical application, the real-time system 20 can send axis coordinate data to the data acquisition module 21 based on XDDP (cross-domain datagram protocol). XDDP is suitable for communication between real-time systems and non-real-time human-computer interaction systems. In other practical applications, communication can also be based on IDDP (intra-domain datagram protocol), BUFP (buffer protocol), etc.

[0098] In this embodiment, the data analysis module 22 is used to perform data analysis based on the axis coordinate data collected by the data acquisition module 21 to obtain data evaluation indicators. The drawing module 23 is used to draw a reference graph (i.e., an ideal graph) and draw an actual graph corresponding to the axis coordinate data collected by the data acquisition module. The display module 24 is used to display the data evaluation indicators analyzed by the data analysis module 22 and the reference graph and actual graph drawn by the drawing module 23, so as to intuitively display the difference between the actual graph and the reference graph.

[0099] The data processing system provided in this embodiment can automatically complete high-quality data collection during the movement process of a machine tool (e.g., a CNC machine tool) (e.g., a roundness testing process), and further complete efficient, high-quality data analysis and display processing.

[0100] The present embodiment is described below by taking the application in roundness test as an example. As mentioned above, the various embodiments of the present application are not limited to the roundness test scenario, and will not be described in detail.

[0101] Optionally, in an implementation of this embodiment, as Figure 2 The display module 24 shown can be understood as a visual interface; in another implementation, the display module 24 can be understood as a visual interface and its display device. The functions of the display module 24 include: providing a parameter input function for the user; generating an NC program according to the parameters input by the user; sending a collection start signal to the data acquisition module 21 to trigger the data acquisition module 21 to start data collection; starting the data analysis module 22 and receiving the analysis and calculation results; providing a graphical interface for the user to view the test results, including graphics and calculation results.

[0102] Optionally, in an implementation of this embodiment, as Figure 2 As shown, the data acquisition module 21 writes the collected data into a txt file. The functions of the txt file include: writing and storing the axis coordinate data of the roundness test; and being read by the data analysis module 22 for data analysis and drawing.

[0103] Optionally, in an implementation of this embodiment, as Figure 2 As shown, the data analysis module 22 is mainly used to perform calculations on the data collected by the data collection module 21. The functions include calculating the data evaluation indexes of the roundness test (average radius, maximum radius, minimum radius, maximum radius difference △R and other data); sending the calculation results to the display module 24; processing the drawing coordinate points and sending them to the drawing module 23.

[0104] Optionally, in an implementation of this embodiment, as Figure 2 As shown, the drawing module 23 is used for drawing graphics of the display module 24. The functions include drawing an ideal circle, that is, a standard circle with a radius as an input value; drawing an error scale ring, and scaling the error according to the set scale ring scale value; and drawing an actual graphic.

[0105] A data acquisition system according to an embodiment of the present application is described above. Now, in conjunction with the accompanying drawings, a roundness test method according to an embodiment of the present application is described in detail by taking roundness test as an example.

[0106] like Figure 3 The figure is a schematic diagram of a process of a roundness test method according to an embodiment of the present application. The method is based on Figure 2 The data acquisition system shown in the figure realizes the roundness test of the data machine tool. Figure 3 As shown, the method mainly includes generating NC program, data collection, data analysis, and drawing display. The following is a detailed description.

[0107] 1. Input the parameters of the roundness test. Including: axis, radius, feed speed, number of turns, starting point and direction, etc. Compared with the prior art, the present application adds the setting of starting point and direction (clockwise or counterclockwise), so that multi-angle and multi-faceted factor analysis can be performed according to the test results of different parameter settings, which improves the flexibility and analysis ability of the test, allowing users to analyze the test results more comprehensively and in-depth. For example, compared with the traditional roundness test that can only use the current point as the center of the circle, the present application displays the center position input box in the interface through the display module, and then adds G90 G01X_Y_Z_ to the generated NC program to move to the test point (center of the circle, also known as the starting point).

[0108] 2. Calculate the estimated test time based on the parameters and send the parameters to the data analysis module and the drawing module. The estimated time can be calculated based on the radius, feed speed, and number of turns input by the user.

[0109] 3. Press the Generate Code button on the interface (display module 24) to call the function of automatically generating NC programs to automatically generate NC programs.

[0110] 4. Determine whether the estimated test time is too long or 0. If it is too long (for example, longer than the set value) or 0, a pop-up window will be displayed to warn you. In a practical application, the data acquisition module receives axis coordinate data once every 1 ms. To ensure that subsequent data analysis and drawing functions do not consume too many computing resources, the system of the embodiment of the present application sets the maximum estimated time to 5000 seconds.

[0111] 5. Determine whether the selected test axes are the same. If they are the same, the test plane (X_Y plane, Z_X plane, Y_Z plane) cannot be determined, and a pop-up alarm will appear.

[0112] 6. Generate the corresponding roundness test NC file according to the parameters (roundness test parameters).

[0113] 7. The CNC machine tool runs the generated machining program NC file; opens the txt file in write-only mode; sends the plane parameters and start signal to the data acquisition module. The plane parameters are used to specify which plane parameters need to be collected. For example, if the test plane selected by the user in the interface is the X_Y plane, the acquisition module only collects the X-axis coordinate and Y-axis coordinate data and writes them into the data file. Specifically, when the user presses the "Start" button of the CNC machine tool, the txt data file is opened in write-only mode, the file address is transmitted to the data acquisition module, and the plane parameters of the data acquisition module and the start filtering identifier are set to true.

[0114] 8. The data acquisition module starts filtering coordinates and writes the filtered coordinates into a txt data file. A program flow chart of the data acquisition module is as follows: Figure 4As shown, the embodiment of the present application realizes automatic collection of roundness test data through a data collection module.

[0115] 9. After the acquisition is completed (for example, the NC program execution ends, or the stop acquisition button in the display module is pressed to end the acquisition), initialize the acquisition tool; close the data file; send the acquisition completion identifier to the display module and pop up a window prompt.

[0116] 10. Press the start circle drawing button (for example, display an operable start button through the display module), call the data analysis module (which can be a newly created thread, or called a data analysis thread), set the ideal radius and starting point variables. If the collection is not completed, a pop-up window will be displayed to warn and exit.

[0117] 11. The data analysis module starts calculating (i.e., the data analysis thread starts calculating); the average radius, maximum radius, minimum radius, and maximum radius difference △R are calculated. The program calculation flow is as follows: Figure 5 shown.

[0118] 12. The drawing points are stored in a container; the drawing module sets the number of scale rings; the drawing module starts drawing the ideal circle and scale rings; and the actual circle is drawn, specifically, the actual circle is drawn according to the error resolution and the scaling error.

[0119] The error resolution set for drawing the graph is the scale value represented by the scale ring used to observe the error. The existing CNC system only has two inner and outer scale rings, which makes it difficult to intuitively and quickly observe the overall error performance of the circular trajectory. The embodiment of the present application can increase the number of scale rings to eight, which is more convenient to observe the error performance of each angle of the arc, which is conducive to improving the intuitiveness, comprehensiveness, accuracy and comparability of the roundness test results.

[0120] 13. The interface displays the roundness test calculation results and drawings. Specifically, the display module displays the calculation results of the data analysis module and the roundness test effect diagram drawn by the drawing module.

[0121] By adopting the method provided in this embodiment, it is possible to realize the generation of NC programs, high-quality data collection, multi-dimensional data analysis and intuitive test result presentation.

[0122] Figure 4 This is a data collection process diagram according to an embodiment of the present application, which can be used to implement Figure 2 The functions of the data acquisition module are shown below. Figure 4 Provide detailed explanation.

[0123] Taking the application in roundness test as an example, Figure 4 The logic of the data collection process shown is based on this application Figure 3The motion rule of the NC program generated by the embodiment shown is designed. The motion rule of the roundness test NC program is:

[0124] The first step is to take the current point as the starting point and move the first axis in a straight line, with the distance being the radius length;

[0125] The second step is to pause for a period of time, i.e. the preparation time for walking in a circle, for example 2s (2000ms), which is the exercise preparation stage;

[0126] The third step is to start drawing a circle with the starting point as the center.

[0127] Based on this rule, the inventor found that it is possible to determine whether to start or stop acquisition based on the number of pauses. Specifically, the first pause indicates that the motion preparation phase has begun, at which point acquisition can begin; the second pause / stop indicates that the program execution has ended, at which point acquisition can end. Thus, it is possible to fully automatically acquire the data required for roundness testing, ensuring the timeliness, completeness, and accuracy of the acquired data.

[0128] Specifically, the data collection methods include:

[0129] 1) Receive the current coordinate point x, y, z sent by the real-time system.

[0130] 2) Determine whether the start filter identifier is true. If it is true, determine the circle drawing plane. If it is the xy plane, obtain the x, y coordinate data; if it is the zx plane, obtain the z, x coordinate data; if it is the yz plane, obtain the y, z coordinate data. Exemplarily, as described above, when the "start" button of the CNC machine tool is pressed, the start filter identifier is set to true.

[0131] 3) Determine whether the currently received coordinate data is the same as the previous coordinate data. If they are the same, execute step 5 after accumulating the number of repetitions. If they are not the same, execute step 4.

[0132] 4) Set the number of repetitions to 0; store the current coordinates in the variable corresponding to the previous coordinate point.

[0133] 5) Determine whether the product of the number of repetitions and the period is greater than or equal to the target time. If yes, execute step 6, otherwise execute step 7. The period refers to the time interval between two consecutive receptions of coordinates, which can be determined according to the frequency of data transmission by the terminal.

[0134] The target time is less than the preparation time for the round trip. For example, the preparation time for the round trip is 2s and the frequency of data transmission by the real-time end is 1ms. Because the communication may not send 2000 data in 2000ms, but the number of data will not be too different, it can be set to pause once for 1950 repeated data, and the remaining 50 data with an uncertain number will be Figure 4 The duplicate point filtering mechanism shown is used to filter out the duplicate points, and according to the flow chart, the acquisition is paused for a data at the 1950ms mark, that is, the starting point of the circle, and the next data collected is the point that does not coincide with the starting point after the circle is started.

[0135] Filtering duplicate points ensures that the calculation result deviation and computing resource waste caused by a trajectory point being repeatedly incorporated into the calculation due to the high sending frequency of the real-time end are avoided.

[0136] 6) The number of pauses is increased by 1 (it should be noted that the initial value of the number of pauses is 0), and the number of repetitions is set to zero

[0137] 7) Determine whether the number of pauses is 1 and the number of repetitions is 0. If yes, execute step 8, otherwise execute step 9.

[0138] 8) Write the coordinates to the data file.

[0139] 9) Determine whether the number of pauses is greater than or equal to 2, if so, execute step 10, otherwise return to step 1.

[0140] 10) Initialize the data collection tool (set the start filtering identifier to false).

[0141] 11) Sending a collection completion signal to the display module so that the display module can start the data analysis module.

[0142] The method provided in this embodiment can automatically achieve high-quality data collection, reduce duplicate data and redundant data, reduce data storage and transmission pressure, and improve data analysis accuracy and efficiency.

[0143] Figure 5 This is a data analysis flow diagram according to an embodiment of the present application, which can be used to implement Figure 2 The functions of the data analysis module are shown below. Figure 5 Provide detailed explanation.

[0144] In a practical application, the data analysis module can be a thread class, and the program flow chart of its run function is as follows: Figure 5 As shown, the following steps are included.

[0145] 1) The thread start flag is set to true.

[0146] 2) Open the data file in read-only mode, such as the txt file mentioned above.

[0147] 3) Determine whether the file is empty, if so, end the process. If not, proceed to step 4.

[0148] 4) Read the coordinate points of the first row and calculate the coordinates of the center of the circle.

[0149] 5) The maximum radius is assigned a value of R, and the minimum radius is assigned a value of R.

[0150] 6) Determine whether it is at the end of the file. If so, execute step 12; if not, execute step 7.

[0151] 7) Read the coordinate point A of the next row; calculate the distance from the center of the circle to A; add it to the total distance.

[0152] 8) Determine whether the distance from the center of the circle to A is greater than the maximum radius. If so, assign the distance from the center of the circle to A to the maximum radius and execute step 9; if not, execute step 9.

[0153] 9) Determine whether the distance is less than the minimum radius. If so, assign the distance from the center of the circle to A to the minimum radius and execute step 10; if not, execute step 10.

[0154] 10) Calculate the relative coordinates of the current row coordinates with the center of the circle as the origin, and send a signal to the interface to store the relative coordinates in the circle drawing container. That is, process each row of coordinate points in the data file into relative coordinates with the center of the circle as the origin, and send them to the drawing module for drawing operations.

[0155] 11) Accumulate the number of coordinates count and return to step 6.

[0156] 12) Calculate the average radius = total distance / count; △R = maximum radius - minimum radius; store the calculation result in a structure variable, and send a signal to the interface (i.e., display module); the interface receives the signal, exits the data analysis thread, and sets the thread start identifier to false.

[0157] By adopting the method provided in this embodiment, each row of coordinate points in the data file is processed into relative coordinates with the center of the circle as the origin, and sent to the drawing module for drawing operation, thereby improving drawing efficiency.

[0158] The method provided in this embodiment can realize the calculation of multi-dimensional roundness test evaluation index and send it to the interface for display. In addition, the drawing module and the display module realize their functions through the first thread (main thread), and the data analysis module realizes its function through the second thread, that is, data analysis and processing are performed in the new thread, which can solve the problem of main interface jamming caused by calculation in the main thread. In addition, only one line of data in the file is read at a time during the calculation process, which is conducive to saving memory resources.

[0159] The above describes in detail the relevant method embodiments and system embodiments according to the embodiments of the present application. In a practical application, the above embodiments can be applied to the roundness test of a three-axis CNC machine tool.

[0160] In an existing roundness test, the roundness test can be performed with the current point as the center of the circle. If you want to perform a roundness test with a specified point as the center of the circle, you need to manually shake the roller. In comparison, the present application also provides an embodiment, in which the display module is also used to display a position input box for obtaining the coordinates of the specified starting position input by the user, so as to add a displacement instruction for moving the axis of the machine tool to the specified starting position in the NC program when the NC program is generated. Specifically, the center position coordinates are obtained through the center position input box set in the interface of the display module, and then the G90 G01 X_Y_Z_ instruction is automatically added to the generated NC program to automatically move to the specified center position during the execution of the NC program, automatically and accurately.

[0161] An embodiment of the present application further provides an electronic device, such as Figure 6 As shown, the electronic device includes a processor 100, at least one communication bus 200, a user interface 300, at least one external communication interface 400 and a memory 500. The communication bus 200 is configured to realize the connection and communication between these components. The user interface 300 may include a display screen, and the external communication interface 400 may include a standard wired interface and a wireless interface. The memory 500 stores computer instructions, which implement the methods of the related method embodiments of the present application when executed. The processor 100 is used to adopt the methods provided in the above embodiments when executing the computer instructions stored in the memory 500.

[0162] An embodiment of the present application also provides a numerical control device for communicating with a machine tool. The numerical control device includes the electronic device as described above, or adopts the data acquisition method provided in the above embodiment.

[0163] An embodiment of the present application further provides a machine tool, comprising the electronic device or numerical control device as described above, or adopting the data acquisition method provided by the embodiment as described above.

[0164] The description of the above computer program product, computer-readable storage medium, and electronic device is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the computer program product, computer-readable storage medium, and electronic device of this application, please refer to the description of the method embodiment of this application for understanding.

[0165] The sequence of serial numbers or introduction of the embodiments of the present application is for description only and does not represent the superiority or inferiority of the embodiments.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0168] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0169] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)). It is worth noting that the computer-readable storage medium mentioned in the embodiment of the present application may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0170] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the scene data of the current frame in the three-dimensional virtual scene, the device information of the client, and the scene interaction information involved in the embodiments of this application are all obtained with full authorization.

[0171] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A data collection method, characterized in that: The described data acquisition method is used to acquire data on the motion state of a machine tool. The motion state includes a motion preparation stage, a motion stage, and a motion end stage in chronological order. The data acquisition method includes: Receiving axis coordinate data of the machine tool; When it is determined based on the currently received axis coordinate data that the machine tool enters the motion preparation stage, performing axis coordinate data processing based on the currently received axis coordinate data until it is determined based on the currently received axis coordinate data that the machine tool enters the motion end stage; Wherein, the axis coordinate data processing includes storing or sending the axis coordinate data, or, the axis coordinate data processing includes filtering duplicate coordinates of the axis coordinate data and then storing or sending it.

2. The data collection method according to claim 1, characterized in that: The receiving of the axis coordinate data of the machine tool includes: Starting to receive the axis coordinate data of the machine tool in response to a start signal of the machine tool; wherein, the machine tool enters the motion state after starting.

3. The data collection method according to claim 1, characterized in that: When it is determined based on the currently received axis coordinate data that the machine tool enters the motion preparation stage, performing axis coordinate data processing based on the currently received axis coordinate data includes: When the first repetition count determined based on the currently received axis coordinate data reaches a first target count, it is regarded as entering the motion preparation stage, and axis coordinate data processing is performed based on the currently received axis coordinate data; Wherein, each time axis coordinate data is received, it is compared with the previous axis coordinate data based on the currently received axis coordinate data to determine whether there is a repetition, and the first repetition count is accumulated in the case of a repetition.

4. The method according to claim 3, characterized in that The method further includes: When the first repetition count reaches the first target count, clearing the first repetition count.

5. The data collection method according to claim 3, characterized in that: The first target count is determined according to the period of receiving the axis coordinate data of the machine tool and the duration of the motion preparation stage; or, The first target count satisfies the following condition: k1·T2 < N·T1 < k2·T2, where T1 represents the period of receiving the axis coordinate data of the machine tool, T2 represents the duration of the motion preparation stage, N represents the first target count, and 0.95 ≤ k1 < k2 ≤ 0.

98.

6. The data collection method according to claim 1, characterized in that: Performing axis coordinate data processing based on the currently received axis coordinate data includes: Storing the currently received axis coordinate data into a data file or sending it to a target device; or, When the currently received axis coordinate data is not repeated with the previous received axis coordinate data, storing the currently received axis coordinate data into a data file or sending it to a target device.

7. The data collection method according to any one of claims 1 to 6, characterized in that: The until it is determined based on the currently received axis coordinate data that the machine tool enters the motion end stage includes: Until the second repetition count determined based on the currently received axis coordinate data reaches a second target count, it is regarded as the machine tool entering the motion end stage; Wherein, after the machine tool enters the motion preparation stage, it is compared with the previous received axis coordinate data based on the currently received axis coordinate data to determine whether there is a repetition, and the second repetition count is accumulated in the case of a repetition.

8. The data collection method according to claim 1, characterized in that: The motion state is the motion state under the roundness test, the motion preparation stage includes the first pause at the starting point of drawing a circle, the motion stage is drawing a circle from the starting point of drawing a circle, and the motion stop stage includes the second pause after the circle is drawn. Alternatively, the motion state under the roundness test also includes a straight line motion stage from the center of the circle to the starting point of drawing a circle.

9. A data collection method, characterized in that: The data acquisition method is used to acquire data on the motion state of a machine tool, wherein the motion state includes a motion preparation phase, a motion phase, and a motion end phase in chronological order, and the data acquisition method includes: After the machine tool enters the motion preparation phase and lasts for a first time, processing the axis coordinate data until the machine tool enters the motion end phase and lasts for a second time; The axis coordinate data processing includes storing or sending the axis coordinate data, or the axis coordinate data processing includes storing or sending the axis coordinate data after filtering duplicate coordinates.

10. The data collection method according to claim 9, characterized in that: The method comprises: Accumulating a first repetition number of consecutively receiving the same axis coordinate data, and when the first repetition number reaches a first target number, determining that the machine tool enters the motion preparation stage and lasts for a first time; and / or, After the machine tool enters the motion preparation stage, the second repetition number of consecutive receipts of the same axis coordinate data is accumulated. When the second repetition number reaches the second target number, it is determined that the machine tool enters the motion end stage and lasts for a second time, and the second target number is less than or equal to the first target number.

11. A data processing system, characterized in that: The data processing system is used to collect data on the motion status of the machine tool and perform data processing, and the data processing system includes: A data acquisition module, used for acquiring axis coordinate data using the method according to any one of claims 1 to 10; A data analysis module, used to perform data analysis on the axis coordinate data collected by the data collection module to obtain data evaluation indicators; A drawing module, used for drawing reference graphics and drawing actual graphics corresponding to the axis coordinate data collected by the data collection module; The display module is used to display the data evaluation index analyzed by the data analysis module and the reference graphics and actual graphics drawn by the drawing module.

12. The data processing system according to claim 11, characterized in that: The drawing module and the display module realize their functions through the first thread, and the data analysis module realizes its function through the second thread; The axis coordinate data collected by the data acquisition module is stored in a txt file; The display module is also used to display a position input box for obtaining the coordinates of a specified starting position input by a user, so as to add a displacement instruction for moving the axis of the machine tool to the specified starting position in the NC program when generating the NC program.

13. An electronic device, characterized in that: The electronic device comprises: a memory for storing one or more computer instructions; A processor, configured to call the one or more computer instructions to implement the method according to any one of claims 1-10.

14. A numerical control device for communicating with a numerical control machine tool, characterized in that: The numerical control device adopts the data acquisition method as described in any one of claims 1-10, or includes the data processing system as described in any one of claims 11-12, or includes the electronic device as described in claim 13.