Machine tool spindle vibration data acquisition time calibration method, device, equipment and medium
By calculating the rotational speed and root mean square data of the machine tool spindle, the acquisition time deviation is updated, which solves the problem of poor synchronization between the machine tool spindle vibration data and the processing status, achieves precise time correspondence, and provides data support for refined processing.
Patent Information
- Application Number
- CN202410670682.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-28
AI Technical Summary
In existing machine tool spindle vibration data collection methods, the collection time synchronization between vibration data and processing status is poor, making it difficult to accurately correspond to working conditions in actual processing scenarios.
By obtaining the operating status data of the CNC system and the vibration data of the machine tool spindle, the root mean square data and rotation speed of each revolution are calculated, thereby updating the calibration time deviation, ensuring the accuracy of the vibration data collection time, and establishing an accurate time correspondence between the machining status and the vibration data. relation.
It achieves time synchronization between the machining status data and vibration data within one rotation of the machine tool spindle, avoiding cumulative errors and ensuring the precise time correspondence between the machine tool spindle vibration data and the internal machining status data of the CNC system, for more refinement The processing technology analysis provides data support.
Smart Images

Figure CN118237982B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of CNC machine tool data processing, and in particular to a method, device, equipment and medium for calibrating the time of collecting vibration data of a machine tool spindle. Background Art
[0002] During the CNC machining process, the rotation of the machine tool spindle drives the tool to cut the workpiece. The vibration signal during the rotation of the machine tool spindle can directly reflect the machining status and is widely used in machining process status monitoring and spindle equipment status monitoring.
[0003] At present, the vibration data of the machine tool spindle comes from an independent data acquisition system, which is independent of the machine tool CNC system. The data acquisition time between the two systems is not synchronized, the data acquisition frequency is inconsistent, and the data acquisition cycle is uncertain. It is difficult to establish an accurate time correspondence between the vibration data and the processing status. The acquisition time synchronization is poor, and data can only be collected and analyzed under specific experimental conditions. It is difficult to accurately correspond to the working conditions in actual processing scenarios. Summary of the invention
[0004] The main purpose of this application is to provide a method, device, equipment and medium for calibrating the time of machine tool spindle vibration data acquisition, aiming to solve the technical problem of poor synchronization between the acquisition time of vibration data and processing status in the existing machine tool spindle data acquisition method.
[0005] To achieve the above purpose, the present application provides a method for calibrating the time of machine tool spindle vibration data acquisition, comprising the following steps:
[0006] Obtaining the operating status data of the numerical control system; wherein the numerical control system is used to connect to the numerical control machine tool;
[0007] Acquire vibration data of the machine tool spindle at the acquisition time; wherein the vibration data is acquired based on a vibration data acquisition device, the vibration data includes original vibration data and a timestamp returned by the vibration data acquisition device, the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and a calibration time deviation, and the current calibration time deviation is set to 0;
[0008] According to the vibration data, the root mean square data of each revolution of the machine tool spindle is obtained; wherein the root mean square data of each revolution is the root mean square value of each revolution of a plurality of vibration data contained in one revolution of the machine tool spindle;
[0009] According to the running status data, the first starting point moment and the first ending point moment when the speed of the machine tool spindle increases from 0 to the processing speed are obtained;
[0010] According to the signal characteristics of the root mean square data per revolution, the second starting point moment and the second end point moment when the speed of the machine tool spindle increases from 0 to the processing speed are obtained;
[0011] The first time period is compared with the second time period to update the calibration time deviation; wherein the first time period is the time period from the first starting moment to the first ending moment, and the second time period is the time period from the second starting moment to the second ending moment.
[0012] Optionally, after obtaining the operating status data of the numerical control system, the method further includes:
[0013] The operation status data is stored in a preset first data cache queue; wherein the first data cache queue is a real-time data cache queue based on a numerical control system;
[0014] After obtaining the RMS data of the machine tool spindle, it also includes:
[0015] The root mean square data per revolution is stored in a preset second data cache queue; wherein the second data cache queue is a real-time vibration root mean square data per revolution cache queue based on the machine tool spindle.
[0016] Optionally, according to the running status data, obtaining a first starting point moment and a first end point moment when the speed of the machine tool spindle increases from 0 to the machining speed includes:
[0017] In the first data cache queue, determining whether the speed of the machine tool spindle increases from 0 to the processing speed;
[0018] If yes, the speed change rate range of the machine tool spindle speed from 0 to the machining speed is obtained through historical data, and the speed change rate threshold K is set;
[0019] The moment when the speed change rate is greater than K and the speed value is at the minimum point is taken as the first starting point;
[0020] The moment when the speed change rate is greater than k and the speed value is at the maximum value is taken as the first end point moment.
[0021] Optionally, in the step of determining in the first data cache queue whether the rotation speed of the machine tool spindle increases from 0 to the machining rotation speed, the determination condition includes:
[0022] Determine whether the maximum value of the rotation speed of the machine tool spindle in the first data cache queue is near the specified processing rotation speed;
[0023] It is determined whether the minimum value of the rotation speed of the machine tool spindle in the first data cache queue is near 0.
[0024] Optionally, according to the signal characteristics of the root mean square data per revolution, obtaining the second starting time and the second ending time when the speed of the machine tool spindle increases from 0 to the machining speed includes:
[0025] Set the upper and lower thresholds corresponding to the RMS data of each revolution of the machine tool spindle;
[0026] Determine in sequence whether the root mean square data per revolution in the second data cache queue is greater than an upper threshold;
[0027] The time when the first root mean square data per revolution in the second data cache queue is greater than the upper threshold is taken as the second end time;
[0028] From the second end point forward, it is determined in sequence whether the root mean square data per revolution in the second data cache queue is less than the lower limit threshold;
[0029] The time when the first root mean square data per revolution in the second data cache queue is less than the lower limit threshold is used as the second starting time.
[0030] Optionally, setting the upper threshold and lower threshold corresponding to the root mean square data per revolution of the machine tool spindle includes:
[0031] The upper threshold is set according to the root mean square value of the machine tool spindle at the processing speed in the historical data;
[0032] The lower limit threshold is set according to the RMS value of each revolution of the machine tool spindle when it is stationary in the historical data.
[0033] Optionally, comparing the first time period with the second time period to update the calibration time offset includes:
[0034] Obtaining a deviation value between a first time period and a second time period;
[0035] comparing the deviation value with a preset time threshold;
[0036] If the deviation value is less than the time threshold, a new calibration time deviation is obtained; wherein the new calibration time deviation = the first starting point moment - the second starting point moment;
[0037] If the deviation value is greater than the time threshold, the existing calibration time deviation is updated.
[0038] Optionally, obtain the root mean square data of each revolution of the machine tool spindle, including:
[0039] According to the machining speed and vibration data acquisition frequency corresponding to the machine tool machining, the number of vibration data points V contained in one rotation of the machine tool spindle is obtained;
[0040] Get the root mean square value of each revolution of V vibration data;
[0041] The middle moment when obtaining V vibration data is used as the timestamp of the root mean square value of each revolution;
[0042] Output the revolution RMS value and the timestamp of the revolution RMS value as Revolution RMS data.
[0043] Optionally, the operation status data includes CNC system time, machining program name, machining program line number, spindle power, spindle speed, feed speed and positions of each coordinate axis.
[0044] Optionally, the length of the first data cache queue is greater than 100, and the first data cache queue contains at least 2 seconds of real-time data of the numerical control system, and the second data cache queue contains at least 2 seconds of root mean square data per revolution.
[0045] To achieve the above purpose, the present application also provides a machine tool spindle vibration data acquisition time calibration device, comprising:
[0046] A first data acquisition module is used to acquire the operation status data of the numerical control system; wherein the numerical control system is used to connect to the numerical control machine tool;
[0047] The second data acquisition module is used to acquire the vibration data of the machine tool spindle at the acquisition time; wherein the vibration data is acquired based on the vibration data acquisition device, the vibration data includes the original vibration data and the timestamp returned by the vibration data acquisition device, the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and the calibration time deviation, and the current calibration time deviation is set to 0;
[0048] A third data acquisition module is used to acquire the root mean square data per revolution of the machine tool spindle according to the vibration data; wherein the root mean square data per revolution is the root mean square value per revolution of a plurality of vibration data contained in one revolution of the machine tool spindle;
[0049] A first time acquisition module, used for acquiring the first starting time and the first ending time of the speed of the machine tool spindle increasing from 0 to the processing speed according to the operation status data;
[0050] A second time acquisition module is used to acquire a second starting time and a second ending time when the speed of the machine tool spindle increases from 0 to the processing speed according to the signal characteristics of the root mean square data per revolution;
[0051] The calibration module is used to compare the first time period and the second time period to update the calibration time deviation; wherein the first time period is the time period from the first starting moment to the first end moment, and the second time period is the time period from the second starting moment to the second end moment.
[0052] To achieve the above objectives, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned machine tool spindle vibration data acquisition time calibration method.
[0053] To achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored. The processor executes the computer program to implement the above-mentioned machine tool spindle vibration data acquisition time calibration method.
[0054] The beneficial effects that this application can achieve are as follows:
[0055] The present application obtains the operating status data of the CNC system and the vibration data of the machine tool spindle respectively, wherein the operating status data can reflect the processing status of the machine tool. In order to establish an accurate time correspondence between the vibration data collected during the actual processing of the machine tool and the processing status, it is necessary to accurately obtain the acquisition time of the vibration data, and the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and the calibration time deviation, that is, the acquisition time needs to be updated according to the calibration time deviation. Therefore, the root mean square data of each revolution of the machine tool spindle is first obtained according to the vibration data, and then the first starting point moment and the time when the speed of the machine tool spindle increases from 0 to the processing speed can be obtained according to the operating status data. The first end moment, and according to the signal characteristics of the root mean square data per revolution, the second starting moment and the second end moment when the speed of the machine tool spindle increases from 0 to the processing speed can be accurately identified, and finally the first time period between the first starting moment and the first end moment and the second time period between the second starting moment and the second end moment are compared to update the calibration time deviation, thereby accurately updating the acquisition time, realizing the time synchronization between the processing status data and the vibration data within the time period of one rotation of the machine tool spindle, ensuring the precise time correspondence between the vibration data of the machine tool spindle and the processing status data inside the CNC system, and providing data support for more refined processing technology analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the prior art description. In all drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0057] Figure 1 Schematic diagram of the flow of a method for calibrating the time of machine tool spindle vibration data acquisition in an embodiment of the present application;
[0058] Figure 2 Schematic diagram of the connection structure of the hardware devices involved in the embodiments of the present application.
[0059] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.
[0061] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0062] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0063] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0064] Example 1
[0065] Reference Figure 1-Figure 2 The present embodiment provides a method for calibrating the time of collecting vibration data of a machine tool spindle, and the method comprises the following steps:
[0066] Step S10: Acquire the operation status data of the numerical control system; wherein the numerical control system is used to connect to the numerical control machine tool;
[0067] Step S20: acquiring vibration data of the machine tool spindle at the acquisition time; wherein the vibration data is acquired based on a vibration data acquisition device, the vibration data includes original vibration data and a timestamp returned by the vibration data acquisition device, the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and a calibration time deviation, and the current calibration time deviation is set to 0;
[0068] Step S30: acquiring root mean square data per revolution of the machine tool spindle according to the vibration data; wherein the root mean square data per revolution is the root mean square value per revolution of a plurality of vibration data contained in one revolution of the machine tool spindle;
[0069] Step S40: acquiring the first starting point and the first ending point of the speed of the machine tool spindle increasing from 0 to the machining speed according to the operation status data;
[0070] Step S50: acquiring the second starting point time and the second ending point time when the speed of the machine tool spindle increases from 0 to the machining speed according to the signal characteristics of the RMS data per revolution;
[0071] Step S60: Compare the first time period and the second time period to update the calibration time deviation; wherein the first time period is the time period from the first starting moment to the first end moment, and the second time period is the time period from the second starting moment to the second end moment.
[0072] In this embodiment, the operating status data of the numerical control system and the vibration data of the machine tool spindle are obtained respectively, wherein the operating status data can reflect the processing status of the machine tool. In order to establish an accurate time correspondence between the vibration data collected during the actual processing of the machine tool and the processing status, it is necessary to accurately obtain the acquisition time of the vibration data, and the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and the calibration time deviation, that is, the acquisition time needs to be updated according to the calibration time deviation. Therefore, the root mean square data of each revolution of the machine tool spindle is first obtained according to the vibration data, and then the first starting point and the first end point of the machine tool spindle speed increasing from 0 to the processing speed can be obtained according to the operating status data, and the first starting point and the first end point of the machine tool spindle speed increasing from 0 to the processing speed can be obtained according to the each revolution The signal characteristics of the RMS data can accurately identify the second starting moment and the second end moment when the machine tool spindle speed increases from 0 to the processing speed. Finally, the first time period between the first starting moment and the first end moment and the second time period between the second starting moment and the second end moment are compared to update the calibration time deviation, thereby accurately updating the acquisition time, realizing the time synchronization between the processing status data and the vibration data within the time period of one rotation of the machine tool spindle, and the time is updated every time the machine tool spindle rotates one circle, thereby avoiding cumulative errors, ensuring the precise time correspondence between the machine tool spindle vibration data and the processing status data inside the CNC system, and providing data support for more refined processing technology analysis.
[0073] It should be noted that the hardware equipment involved in this embodiment mainly includes a CNC machine body, a CNC system, a machine spindle, a host computer, a vibration sensor, and a vibration data acquisition device. The CNC system, the vibration data acquisition device, and the host computer are connected through a network and have a mutual communication function. The CNC system is connected to the CNC machine body to control the machine body to perform processing actions. The CNC system contains all the state data of the machine operation process. The vibration data acquisition device is connected to the vibration sensor and has the function of obtaining the vibration sensor measurement data. The vibration sensor is fixed on the machine spindle and has the function of measuring the vibration amplitude of the machine spindle. In this embodiment, a program can be developed in the host computer to collect the internal operation status data of the CNC system in real time through the CNC system data acquisition interface, including CNC system time, processing program name, processing program line number, spindle power, spindle speed, feed speed, and processing status data such as the position of each coordinate axis.
[0074] As an optional implementation, after obtaining the operating status data of the numerical control system, the method further includes:
[0075] The operation status data is stored in a preset first data cache queue; wherein the first data cache queue is a real-time data cache queue based on a numerical control system;
[0076] After obtaining the RMS data of the machine tool spindle, it also includes:
[0077] The root mean square data per revolution is stored in a preset second data cache queue; wherein the second data cache queue is a real-time vibration root mean square data per revolution cache queue based on the machine tool spindle.
[0078] In this embodiment, after obtaining the operating status data and the root mean square data per revolution respectively, they can be stored in the corresponding first data cache queue and the second data cache queue respectively, which can solve the data storage problem when large amounts of data are concurrent. The concurrent data can be cached in the queue, and multi-dimensional data processing based on parallel cache queues can be realized. At the same time, it is convenient to extract related data in the corresponding data cache queue later.
[0079] As an optional implementation, in step S40, obtaining the first starting time and the first ending time when the speed of the machine tool spindle increases from 0 to the machining speed according to the operation status data includes:
[0080] Step S41: determining in the first data cache queue whether the speed of the machine tool spindle increases from 0 to the processing speed;
[0081] Step S42: If yes, then obtain the speed change rate range of the machine tool spindle speed from 0 to the machining speed through historical data, and set the speed change rate threshold K;
[0082] Step S43: taking the moment when the speed change rate is greater than K and the speed value is at the minimum point as the first starting point;
[0083] Step S44: The moment when the rotation speed change rate is greater than k and the rotation speed value is at the maximum value is taken as the first end point moment.
[0084] In this embodiment, when the speed of the machine tool spindle increases from 0 to the first starting moment and the first end moment of the processing speed, it is first determined in the first data cache queue whether the speed of the machine tool spindle increases from 0 to the processing speed. When the processing speed is reached, the speed change rate range of the machine tool spindle speed from 0 to the processing speed is calculated based on historical data, and the speed change rate threshold K is set according to the historical data. The moment when the speed change rate is greater than K and the speed value is at the minimum value point is taken as the first starting moment, recorded as tm1, and the point where the speed change rate is greater than K and the speed value is near the maximum value is taken as the first end moment, recorded as tm2. The first starting moment and the first end moment can be obtained in real time, and the data can be sent to the vibration data acquisition device.
[0085] It should be noted that, according to actual conditions, the program for collecting vibration data can be run in different threads of the same process as the internal data collection program of the numerical control system, or can be run in a different process from the internal data collection program of the numerical control system.
[0086] As an optional implementation, in the step of determining in the first data cache queue whether the speed of the machine tool spindle increases from 0 to the machining speed, the determination condition includes:
[0087] Determine whether the maximum value of the rotation speed of the machine tool spindle in the first data cache queue is near the specified processing rotation speed;
[0088] It is determined whether the minimum value of the rotation speed of the machine tool spindle in the first data cache queue is near 0.
[0089] In this embodiment, when judging whether the speed of the machine tool spindle increases from 0 to the processing speed, the above-mentioned maximum and minimum range conditions need to be met, that is, as long as the maximum value of the machine tool spindle speed is near the specified processing speed and the minimum value is near 0, it can be judged that the speed of the machine tool spindle has increased from 0 to the processing speed.
[0090] As an optional implementation, in step S50, according to the signal characteristics of the root mean square data per revolution, obtaining the second starting time and the second end time when the speed of the machine tool spindle increases from 0 to the machining speed includes:
[0091] Step S51: setting an upper threshold and a lower threshold corresponding to the root mean square data per revolution of the machine tool spindle;
[0092] Step S52: determining in sequence whether the RMS data per revolution in the second data cache queue is greater than an upper threshold;
[0093] Step S53: taking the time when the first RMS data per revolution in the second data cache queue is greater than the upper threshold as the second end time;
[0094] Step S54: from the second end point forward, determine in sequence whether the RMS data per revolution in the second data cache queue is less than the lower limit threshold;
[0095] Step S55: taking the time when the first RMS data per revolution in the second data cache queue is less than the lower limit threshold as the second starting time.
[0096] In this embodiment, when the spindle vibration data acquisition device receives the information of the first starting moment and the first end moment when the spindle speed increases from 0 to the processing speed, the upper threshold and the lower threshold corresponding to the root mean square data per revolution are first set. The second data cache queue has multiple sets of root mean square data per revolution corresponding to each rotation of the machine tool shaft. The moment when the first root mean square data per revolution is greater than the upper threshold is taken as the second end moment, recorded as tv2. This moment is the moment when the spindle rotates to the processing speed. Then, based on the second end moment, the root mean square data per revolution in the second data cache queue are identified in sequence to obtain the first root mean square data per revolution that is less than the lower threshold, and the moment when the root mean square data per revolution is identified is taken as the second starting moment, recorded as tv1, thereby achieving accurate search of the second starting moment and the second end moment.
[0097] As an optional implementation, in step S51, the upper threshold and the lower threshold corresponding to the root mean square data per revolution of the machine tool spindle are set, including:
[0098] Step S511: setting an upper threshold value according to the RMS value of the machine tool spindle at the machining speed in the historical data;
[0099] Step S512: setting a lower threshold value according to the RMS value per revolution of the machine tool spindle when it is stationary in historical data.
[0100] In this embodiment, the upper and lower thresholds can be set by respectively obtaining the root mean square value of each revolution of the machine tool spindle at the processing speed and at rest based on historical data, which is more referenceable.
[0101] As an optional implementation, in step S60, comparing the first time period with the second time period to update the calibration time deviation includes:
[0102] Step S61: Obtaining a deviation value between the first time period and the second time period;
[0103] Step S62: comparing the deviation value with a preset time threshold;
[0104] Step S63: If the deviation value is less than the time threshold, a new calibration time deviation is obtained; wherein the new calibration time deviation = the first starting time - the second starting time; if the deviation value is greater than the time threshold, the existing calibration time deviation is updated.
[0105] In this embodiment, after the first time period (tm2-tm1) and the second time period (tv2-tv1) are accurately obtained, the deviation value between them is calculated, and a time threshold is set. When the deviation value is less than the time threshold, a new calibration time deviation tb=tm1-tv1 is obtained. When the deviation value is greater than the time threshold, the existing calibration time deviation tb is directly updated, thereby realizing the update of the calibration time deviation to correct the collection time of the vibration data.
[0106] As an optional implementation, obtaining the root mean square data of each revolution of the machine tool spindle includes:
[0107] According to the machining speed and vibration data acquisition frequency corresponding to the machine tool machining, the number of vibration data points V contained in one rotation of the machine tool spindle is obtained;
[0108] Get the root mean square value of each revolution of V vibration data;
[0109] The middle moment when V vibration data are obtained is used as the timestamp of the root mean square value of each revolution;
[0110] Output the revolution RMS value and the timestamp of the revolution RMS value as Revolution RMS data.
[0111] In this embodiment, the number of vibration data points V contained in one rotation of the machine tool spindle can be calculated according to the processing speed and the vibration data collection frequency. The root mean square value per revolution can be calculated based on the number of points V and the vibration data. At the same time, the middle moment of the V vibration data is used as the timestamp of the root mean square value per revolution. The root mean square value per revolution and the timestamp of the root mean square value per revolution are jointly used as the root mean square data per revolution.
[0112] As an optional implementation, the length of the first data cache queue is greater than 100, and the first data cache queue contains at least 2 seconds of real-time data of the numerical control system, and the second data cache queue contains at least 2 seconds of root mean square data per revolution.
[0113] Example 2
[0114] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a machine tool spindle vibration data acquisition time calibration device, comprising:
[0115] A first data acquisition module is used to acquire the operation status data of the numerical control system; wherein the numerical control system is used to connect to the numerical control machine tool;
[0116] The second data acquisition module is used to acquire the vibration data of the machine tool spindle at the acquisition time; wherein the vibration data is acquired based on the vibration data acquisition device, the vibration data includes the original vibration data and the timestamp returned by the vibration data acquisition device, the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and the calibration time deviation, and the current calibration time deviation is set to 0;
[0117] A third data acquisition module is used to acquire the root mean square data per revolution of the machine tool spindle according to the vibration data; wherein the root mean square data per revolution is the root mean square value per revolution of a plurality of vibration data contained in one revolution of the machine tool spindle;
[0118] A first time acquisition module, used for acquiring the first starting time and the first ending time of the speed of the machine tool spindle increasing from 0 to the processing speed according to the operation status data;
[0119] A second time acquisition module is used to acquire a second starting time and a second ending time when the speed of the machine tool spindle increases from 0 to the processing speed according to the signal characteristics of the root mean square data per revolution;
[0120] The calibration module is used to compare the first time period and the second time period to update the calibration time deviation; wherein the first time period is the time period from the first starting moment to the first end moment, and the second time period is the time period from the second starting moment to the second end moment.
[0121] The relevant explanations and examples of each module in the device of this embodiment can refer to the method of the aforementioned embodiment, and will not be repeated here.
[0122] Example 3
[0123] Based on the same inventive concept as the aforementioned embodiment, this embodiment provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned machine tool spindle vibration data acquisition time calibration method.
[0124] Example 4
[0125] Based on the same inventive concept as the aforementioned embodiment, this embodiment provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the above-mentioned machine tool spindle vibration data acquisition time calibration method.
[0126] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for calibrating the time of machine tool spindle vibration data acquisition, It is characterized in that The following steps are involved: Acquiring operation status data of a numerical control system; wherein the numerical control system is used to connect to a numerical control machine tool; Acquire vibration data of a machine tool spindle at an acquisition time; wherein the vibration data is acquired based on a vibration data acquisition device, the vibration data includes original vibration data and a timestamp returned by the vibration data acquisition device, the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and a calibration time deviation, and the current calibration time deviation is set to 0; According to the vibration data, obtaining the root mean square data per revolution of the machine tool spindle; wherein the root mean square data per revolution is the root mean square value per revolution of a plurality of the vibration data contained in one revolution of the machine tool spindle; According to the operating status data, obtaining a first starting point moment and a first end point moment when the speed of the machine tool spindle increases from 0 to the processing speed; According to the signal characteristics of the root mean square data per revolution, obtaining a second starting point moment and a second end point moment when the speed of the machine tool spindle increases from 0 to the machining speed; The first time period is compared with the second time period to update the calibration time deviation; wherein the first time period is the time period from the first starting moment to the first ending moment, and the second time period is the time period from the second starting moment to the second ending moment.
2. The machine tool spindle vibration data acquisition time calibration method according to claim 1, It is characterized in that After obtaining the operating status data of the numerical control system, the method further includes: The operation status data is stored in a preset first data cache queue; wherein the first data cache queue is a real-time data cache queue based on the numerical control system; After obtaining the root mean square data of each revolution of the machine tool spindle, the method further includes: The root mean square data per revolution is stored in a preset second data cache queue; wherein the second data cache queue is a real-time vibration root mean square data per revolution cache queue based on the machine tool spindle.
3. The machine tool spindle vibration data acquisition time calibration method as claimed in claim 2, It is characterized in that The step of obtaining, according to the operating status data, a first starting point moment and a first end point moment when the speed of the machine tool spindle increases from 0 to a machining speed includes: In the first data cache queue, determining whether the speed of the machine tool spindle increases from 0 to the processing speed; If yes, the speed change rate range of the machine tool spindle from 0 to the machining speed is obtained through historical data, and a speed change rate threshold K is set; The moment when the speed change rate is greater than K and the speed value is at the minimum point is taken as the first starting point moment; The moment when the rotation speed change rate is greater than K and the rotation speed value is at the maximum value is taken as the first end point moment.
4. The machine tool spindle vibration data acquisition time calibration method as claimed in claim 3, It is characterized in that In the step of judging in the first data cache queue whether the rotation speed of the machine tool spindle increases from 0 to the machining rotation speed, the judging conditions include: Determining whether the maximum value of the rotation speed of the machine tool spindle in the first data cache queue is near a specified processing rotation speed; It is determined whether the minimum value of the rotation speed of the machine tool spindle in the first data cache queue is near 0.
5. The machine tool spindle vibration data acquisition time calibration method as claimed in claim 3, It is characterized in that The obtaining, according to the signal characteristics of the RMS data per revolution, of the second starting point moment and the second ending point moment when the speed of the machine tool spindle increases from 0 to the machining speed comprises: Setting an upper threshold and a lower threshold corresponding to the root mean square data per revolution of the machine tool spindle; Determine in sequence whether the root mean square data per revolution in the second data cache queue is greater than the upper limit threshold; The time when the first root mean square data per revolution in the second data cache queue is greater than the upper threshold is used as the second end time; From the second end point onwards, it is determined in sequence whether the root mean square data per revolution in the second data cache queue is less than the lower limit threshold; The time when the first root mean square data per revolution in the second data cache queue is less than the lower limit threshold is used as the second starting time.
6. The machine tool spindle vibration data acquisition time calibration method as claimed in claim 5, It is characterized in that The step of setting the upper threshold and the lower threshold corresponding to the root mean square data per revolution of the machine tool spindle comprises: An upper threshold is set according to the root mean square value of the machine tool spindle at the processing speed described in the historical data; The lower threshold is set according to the RMS value of the machine tool spindle at rest as described in the historical data.
7. The machine tool spindle vibration data acquisition time calibration method as claimed in claim 5, It is characterized in that The comparing the first time period with the second time period to update the calibration time deviation includes: Obtaining a deviation value between the first time period and the second time period; Comparing the deviation value with a preset time threshold; If the deviation value is less than the time threshold, a new calibration time deviation is obtained; wherein the new calibration time deviation = the first starting point moment - the second starting point moment; If the deviation value is greater than the time threshold, the existing calibration time deviation is updated.
8. The machine tool spindle vibration data acquisition time calibration method according to claim 1, It is characterized in that The step of obtaining the root mean square data of each revolution of the machine tool spindle comprises: According to the machining speed and vibration data acquisition frequency corresponding to the machine tool machining, the number of vibration data points V contained in one rotation of the machine tool spindle is obtained; Obtaining V root mean square values per revolution of the vibration data; The middle moment when the V vibration data are obtained is used as the timestamp of the root mean square value per revolution; The RMS value per revolution and a timestamp of the RMS value per revolution are output as RMS data per revolution.
9. The machine tool spindle vibration data acquisition time calibration method according to claim 1, It is characterized in that The operation status data includes the numerical control system time, the machining program name, the machining program line number, the spindle power, the spindle speed, the feed speed and the position of each coordinate axis.
10. The machine tool spindle vibration data acquisition time calibration method according to claim 2, It is characterized in that The length of the first data cache queue is greater than 100, and the first data cache queue contains at least 2 seconds of real-time data of the numerical control system, and the second data cache queue contains at least 2 seconds of root mean square data per revolution.
11. A machine tool spindle vibration data acquisition time calibration device, It is characterized in that include: A first data acquisition module, used to acquire operating status data of a numerical control system; wherein the numerical control system is used to connect to a numerical control machine tool; A second data acquisition module is used to acquire vibration data of the machine tool spindle at an acquisition time; wherein the vibration data is acquired based on a vibration data acquisition device, the vibration data includes original vibration data and a timestamp returned by the vibration data acquisition device, the acquisition time is the sum of the timestamp returned by the vibration data acquisition device and a calibration time deviation, and the current calibration time deviation is set to 0; A third data acquisition module is used to acquire the root mean square data per revolution of the machine tool spindle according to the vibration data; wherein the root mean square data per revolution is the root mean square value per revolution of a plurality of the vibration data contained in one revolution of the machine tool spindle; A first time acquisition module, used for acquiring, according to the operating status data, a first starting time and a first ending time when the speed of the machine tool spindle increases from 0 to the processing speed; A second time acquisition module, used for acquiring a second starting time and a second ending time when the speed of the machine tool spindle increases from 0 to the machining speed according to the signal characteristics of the root mean square data per revolution; A calibration module is used to compare a first time period with a second time period to update the calibration time deviation; wherein the first time period is a time period from the first starting moment to the first ending moment, and the second time period is a time period from the second starting moment to the second ending moment.
12. A computer device, It is characterized in that The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the machine tool spindle vibration data acquisition time calibration method according to any one of claims 1 to 10.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the machine tool spindle vibration data acquisition time calibration method according to any one of claims 1 to 10.
