A method, device, equipment and medium for determining the validity of spindle vibration data
By determining the effectiveness of spindle vibration data in CNC machining, the problem of poor accuracy of spindle vibration data in the prior art is solved, and higher data accuracy and operability are achieved.
Patent Information
- Application Number
- CN202410983678.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The existing CNC machining monitoring technology cannot effectively determine the accuracy of spindle vibration data, resulting in monitoring misjudgment after sensor failure, affecting the accuracy of the data.
By determining whether the state of the spindle vibration data stored during the prejudice is valid, if it is valid, continuous data acquisition is carried out, and whether the root mean square value of the vibration is less than the minimum value of the speed range, modify the data state to be invalid to improve data accuracy .
While improving data accuracy, it has good operability. By combining the working state of the machine tool, the accuracy of judgment is improved, thereby improving data accuracy.
Smart Images

Figure CN118493078B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of numerical control machining, and provides a method, device, equipment and medium for determining the validity of spindle vibration data. Background Art
[0002] As we all know, the accuracy of CNC machining monitoring technology depends on the accuracy of the collected data. However, in actual CNC machining scenarios, there are inevitably various factors that lead to low accuracy of collected data. For example, factors such as complex electromagnetic environment interference of machine tools and cable breakage lead to poor accuracy of collected spindle vibration data, and thus, the actual spindle vibration value cannot be reflected. However, the existing machining status monitoring technology does not determine whether the spindle vibration data itself is valid, so that monitoring is still carried out after the sensor fails, which leads to misjudgment of monitoring.
[0003] Therefore, how to improve the accuracy of spindle vibration data has become an urgent problem to be solved. Summary of the invention
[0004] The present application provides a method, device, equipment and medium for determining the validity of spindle vibration data, which are used to solve the problem of poor accuracy of spindle vibration data.
[0005] In one aspect, a method for determining the validity of spindle vibration data is provided, the method comprising:
[0006] For the target machine tool, determining whether the data state of the first spindle vibration data stored during pre-determination is a valid state;
[0007] If it is determined that the data state of the first spindle vibration data stored during the pre-determination is a valid state, data collection is performed on the target machine tool for multiple consecutive times to obtain multiple sets of second spindle vibration data;
[0008] Determine whether the vibration root mean square values of each of the plurality of groups of second spindle vibration data are all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range; wherein the speed range is a speed range corresponding to the spindle speed of the target machine tool obtained when the target machine tool is in a processing state;
[0009] If it is determined that the vibration root mean square values of the multiple sets of second spindle vibration data are all smaller than the root mean square minimum values corresponding to the upper and lower limits of the speed range, the data states of the multiple sets of second spindle vibration data are all modified to invalid states.
[0010] Optionally, the step of determining whether the vibration root mean square values of each of the plurality of groups of second spindle vibration data are all less than the root mean square minimum values corresponding to the upper and lower limits of the speed range includes:
[0011] For any group of second spindle vibration data, performing zero-position correction on the any group of second spindle vibration data according to a zero-position correction parameter to obtain the second spindle vibration data after zero-position correction;
[0012] Obtaining a vibration root mean square value of any group of second spindle vibration data according to the second spindle vibration data after zero position correction;
[0013] When the target machine tool is in a processing state, obtaining a current spindle speed of the target machine tool;
[0014] According to a preset speed interval relationship table, the speed interval corresponding to the spindle speed is determined.
[0015] Optionally, before determining whether the data state of the first spindle vibration data stored during pre-determination is a valid state for the target machine tool, the method further includes:
[0016] When the target machine tool is in a stationary state, determining whether the data state of the original data of the spindle vibration is a valid state;
[0017] If it is determined that the data state of the original spindle vibration data is a valid state, data collection is performed on the target machine tool multiple times at different rotation speeds to obtain multiple sets of third spindle vibration data;
[0018] Determining whether the data states of the plurality of sets of third spindle vibration data are all in a valid state;
[0019] If it is determined that the data states of the plurality of sets of third spindle vibration data are all in valid states, the plurality of sets of third spindle vibration data and the corresponding data states are stored in a local database.
[0020] Optionally, the step of determining whether the data state of the original spindle vibration data is a valid state when the target machine tool is in a stationary state includes:
[0021] Segmenting the original spindle vibration data to obtain a plurality of first segmented data;
[0022] respectively determining the average value and variance of each of the plurality of first segmented data;
[0023] Determine whether the average values of the plurality of first segmented data are all less than a preset maximum average threshold, and whether the variances of the plurality of first segmented data are all less than a preset maximum variance threshold;
[0024] If it is determined that the average values of the plurality of first segmented data are each less than a preset maximum average threshold, and the variances of the plurality of first segmented data are each less than a preset maximum variance threshold, then the data state of the main shaft vibration raw data is determined to be a valid state.
[0025] Optionally, the step of determining whether the data states of the plurality of sets of third spindle vibration data are all in a valid state comprises:
[0026] For any group of third spindle vibration data, segment the any group of third spindle vibration data to obtain a plurality of second segmented data;
[0027] Respectively determining the root mean square value and variance of each of the plurality of second segmented data;
[0028] Determine a root mean square value change rate between any two adjacent second segmented data according to the root mean square values of the plurality of second segmented data;
[0029] Determine whether the root mean square values of the plurality of second segmented data are all less than a preset maximum root mean square threshold, and whether the root mean square value change rate between any two adjacent second segmented data is all greater than a preset minimum root mean square value change rate threshold;
[0030] If it is determined that the root mean square values of the multiple second segmented data are each less than a preset maximum root mean square threshold, and the root mean square value change rate between any two adjacent second segmented data is greater than a preset minimum root mean square value change rate threshold, then the data state of any group of third spindle vibration data is determined to be a valid state.
[0031] Optionally, before determining whether the data state of the original spindle vibration data is a valid state, the method further includes:
[0032] Determining a collection frequency according to a maximum rotation speed of the target machine tool;
[0033] When the target machine tool is in a stationary state, data is collected on the target machine tool according to the collection frequency to obtain raw spindle vibration data;
[0034] According to the average value of the raw spindle vibration data, the raw spindle vibration data is zero-corrected to obtain the raw spindle vibration data after zero-correction;
[0035] Then, the step of determining whether the data state of the original spindle vibration data is a valid state when the target machine tool is in a stationary state comprises:
[0036] When the target machine tool is in a stationary state, it is determined whether the data state of the original spindle vibration data after the zero position correction is a valid state.
[0037] Optionally, the step of determining whether the data states of the plurality of sets of third spindle vibration data are all in a valid state comprises:
[0038] According to the average value of the original spindle vibration data, the plurality of sets of third spindle vibration data are subjected to zero-position correction to obtain a plurality of sets of third spindle vibration data after zero-position correction;
[0039] It is determined whether the data states of the plurality of groups of zero-corrected third spindle vibration data are all valid states.
[0040] In one aspect, a device for determining the validity of spindle vibration data is provided, the device comprising:
[0041] A first validity determination unit is used to determine, for a target machine tool, whether a data state of the first spindle vibration data stored during pre-determination is a valid state;
[0042] A spindle vibration data acquisition unit, configured to acquire multiple sets of second spindle vibration data by continuously collecting data from the target machine tool for multiple times if the data state of the first spindle vibration data stored during the pre-determination is determined to be a valid state;
[0043] A second validity determination unit is used to determine whether the vibration root mean square values of the plurality of groups of second spindle vibration data are all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range; wherein the speed range is a speed range corresponding to the spindle speed of the target machine tool obtained when the target machine tool is in a processing state;
[0044] The data status modification unit is used to modify the data status of the multiple sets of second spindle vibration data to an invalid state if it is determined that the vibration root mean square values of the multiple sets of second spindle vibration data are all less than the root mean square minimum values corresponding to the upper and lower limits of the speed range.
[0045] On the one hand, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein any one of the above methods is implemented when the processor executes the computer program.
[0046] Compared with the prior art, the beneficial effects of this application are:
[0047] In an embodiment of the present application, when determining the validity of the spindle vibration data, first, for the target machine tool, it can be determined whether the data state of the first spindle vibration data stored during the pre-determination is a valid state; if it is determined that the data state of the first spindle vibration data stored during the pre-determination is a valid state, data acquisition can be performed on the target machine tool to obtain multiple sets of second spindle vibration data; then, it can be determined whether the vibration root mean square values of the multiple sets of second spindle vibration data are all less than the minimum root mean square value corresponding to the upper and lower limits of the speed range; finally, if it is determined that the vibration root mean square values of the multiple sets of second spindle vibration data are all less than the minimum root mean square value corresponding to the upper and lower limits of the speed range, the data states of the multiple sets of second spindle vibration data can be modified to invalid states. Therefore, in an embodiment of the present application, since the validity of the spindle vibration data will only be determined in real time under the premise that the data state of the first spindle vibration data stored during the pre-determination is a valid state, the present application has good operability while improving data accuracy. In addition, since the present application combines the working state of the machine tool (taking into account the state characteristics of the machine tool itself) with the spindle vibration data, the accuracy of the data can be further improved by improving the accuracy of the judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0049] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a framework for determining the validity of spindle vibration data provided in an embodiment of the present application;
[0051] Figure 3 A schematic flow chart of a method for determining the validity of spindle vibration data provided in an embodiment of the present application;
[0052] Figure 4 A schematic diagram of a process flow for pre-determination of effectiveness provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of a flow chart of determining the validity of spindle vibration data of a machine tool in a stationary state provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of a flow chart for determining the validity of spindle vibration data at different speeds provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram of a spindle vibration data validity determination device provided in an embodiment of the present application.
[0056] Markings in the figure: 10-spindle vibration data validity determination device, 101-processor, 102-memory, 103-I / O interface, 104-database, 201-pre-determination software module, 202-vibration data acquisition parameter and state storage module, 203-real-time determination software module, 70-spindle vibration data validity determination device, 701-first validity determination unit, 702-spindle vibration data acquisition unit, 703-second validity determination unit, 704-data state modification unit, 705-zero position correction unit. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0058] As we all know, the accuracy of CNC machining monitoring technology depends on the accuracy of the collected data. However, in actual CNC machining scenarios, there are inevitably various factors that lead to low accuracy of collected data. For example, factors such as complex electromagnetic environment interference of machine tools and cable breakage lead to poor accuracy of collected spindle vibration data, and thus, the actual spindle vibration value cannot be reflected. However, the existing machining status monitoring technology does not determine whether the spindle vibration data itself is valid, so that monitoring is still carried out after the sensor fails, which leads to misjudgment of monitoring.
[0059] Based on this, the embodiment of the present application provides a method for determining the validity of spindle vibration data, in which, first, for the target machine tool, it can be determined whether the data state of the first spindle vibration data stored during the pre-determination is a valid state; if it is determined that the data state of the first spindle vibration data stored during the pre-determination is a valid state, then data acquisition can be performed on the target machine tool to obtain multiple sets of second spindle vibration data; then, it can be determined whether the vibration root mean square values of the multiple sets of second spindle vibration data are all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range; finally, if it is determined that the vibration root mean square values of the multiple sets of second spindle vibration data are all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range, then the data states of the multiple sets of second spindle vibration data can be modified to invalid states. Therefore, in the embodiment of the present application, since the validity of the spindle vibration data will only be determined in real time under the premise that the data state of the first spindle vibration data stored during the pre-determination is a valid state, the present application has good operability while improving data accuracy. In addition, since the present application combines the working state of the machine tool (taking into account the state characteristics of the machine tool itself) with the spindle vibration data, the accuracy of the data can be further improved by improving the accuracy of the judgment.
[0060] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0061] like Figure 1 FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario may include a spindle vibration data validity determination device 10 .
[0062] The spindle vibration data validity determination device 10 can be used to determine the validity of the spindle vibration data, for example, it can be a personal computer (PC), a server and a laptop. The spindle vibration data validity determination device 10 may include one or more processors 101, a memory 102, an I / O interface 103 and a database 104. Specifically, the processor 101 may be a central processing unit (CPU), or a digital processing unit, etc. The memory 102 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 102 may also be a non-volatile memory (non-volatile memory), such as a read-only memory, a flash memory (flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 102 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 102 may be a combination of the above memories. The memory 102 may store some program instructions of the method for determining the validity of the spindle vibration data provided in the embodiment of the present application, and these program instructions, when executed by the processor 101, can be used to implement the steps of the method for determining the validity of the spindle vibration data provided in the embodiment of the present application to solve the problem of poor accuracy of the spindle vibration data. The database 104 may be used to store the first spindle vibration data, the second spindle vibration data, the vibration root mean square value, the speed range, the third spindle vibration data, and the acquisition frequency data involved in the solution provided in the embodiment of the present application.
[0063] In the embodiment of the present application, the spindle vibration data validity determination device 10 can obtain the data state of the first spindle vibration data through the I / O interface 103, and then the processor 101 of the spindle vibration data validity determination device 10 will improve the validity of the spindle vibration data according to the program instructions of the spindle vibration data validity determination method provided in the embodiment of the present application in the memory 102. In addition, the first spindle vibration data, the second spindle vibration data, the vibration root mean square value, the speed range, the third spindle vibration data and the acquisition frequency and other data can also be stored in the database 104.
[0064] like Figure 2 As shown, it is a schematic diagram of a framework for determining the validity of spindle vibration data provided in an embodiment of the present application, wherein the framework includes a pre-determination software module 201, a vibration data acquisition parameter and state storage module 202, and a real-time determination software module 203.
[0065] Specifically, the pre-determination software module 201 can receive the pre-determination operation performed by the staff when the machine tool is in an idle state, so as to determine whether the vibration data of the machine tool spindle has the ability to distinguish different processing states of the machine tool through the collected data, and store the calculated collection parameters and the determined validity status in the vibration data collection parameter and state storage module 202. Furthermore, the real-time determination software module 203 can interact with the vibration data collection parameter and state storage module 202 in real time to read the collection parameters and data validity status calculated by the pre-determination software module 201, so that when the machine tool is in a processing state, the real-time determination software module 203 can collect real-time vibration data and process the determination validity. If the data is determined to be invalid, the data status stored in the vibration data collection parameter and state storage module 202 can be modified to invalid.
[0066] Among them, the pre-determination software module 201 includes functions such as data acquisition, data preprocessing, validity determination, data reading and writing (parameter data and status data can be read and written), visual display and interaction. The data acquisition function is connected to the CNC system and the spindle vibration data acquisition module, and can collect the spindle speed data inside the CNC system and the real-time data of the spindle vibration sensor; the data preprocessing function collects data for a period of time according to the calculated acquisition frequency when the machine tool is stationary, calculates the average value of the entire data, and subtracts the average value from each collected data to achieve the offset correction of the original data to the zero position; the validity determination function determines whether the collected vibration data is valid based on the vibration data after zero position correction; the data reading and writing function is connected to the vibration data acquisition parameter and status storage module 202 to achieve the persistence of the acquisition parameters and status data; the visual display and interaction function provides a human-computer interaction interface for the operator to manually set the machine tool parameters, view the data, and edit the acquisition parameters and status data saved in the vibration data acquisition parameter and status storage module 202.
[0067] The vibration data acquisition parameter and status storage module 202 may choose to use local files, local database software or remote database software to perform data persistence storage on the acquisition parameters and the determined validity status.
[0068] The real-time determination software module 203 includes functions such as data acquisition, data preprocessing, validity determination, data reading and writing (parameter data and status data can be read and written). The data acquisition function is connected to the numerical control system and the spindle vibration data acquisition module, and can collect the spindle speed data inside the numerical control system and the real-time data of the spindle vibration sensor; the data preprocessing function collects data for a period of time according to the calculated acquisition frequency when the machine tool is stationary, calculates the average value of the entire data, and subtracts the average value from each item of data collected to achieve the offset correction of the original data to the zero position; the validity determination function determines whether the collected vibration data is valid based on the vibration data after zero position correction; the data reading and writing function is connected to the vibration data acquisition parameter and status storage module 202 to achieve the persistence of the collected parameters and status data.
[0069] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be realized by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here. Below, the method of the embodiment of the present application will be introduced in conjunction with the accompanying drawings.
[0070] like Figure 3 FIG. 1 is a flow chart of a method for determining the validity of spindle vibration data provided by an embodiment of the present application. The method can be performed by Figure 1 The spindle vibration data validity determination device 10 is used to execute the method. Specifically, the process of the method is described as follows.
[0071] Step 301: for a target machine tool, determining whether the data state of the first spindle vibration data stored during pre-determination is a valid state.
[0072] In order to improve the validity of the spindle vibration data, in an embodiment of the present application, before performing a real-time judgment on the validity of the spindle vibration data, the validity of the spindle vibration data can be pre-judged for the target machine tool. Furthermore, after the pre-judgment, in order to further improve the accuracy of the judgment, for the target machine tool, various parameters and data states stored during the pre-judgment can be read from the local database. Based on this, it can be determined whether the data state of the first spindle vibration data stored during the pre-judgment is a valid state.
[0073] Step 302: If it is determined that the data state of the first spindle vibration data stored during the pre-determination is a valid state, data collection is performed on the target machine tool for multiple consecutive times to obtain multiple sets of second spindle vibration data.
[0074] In an embodiment of the present application, if it is determined that the data state of the first spindle vibration data stored during pre-judgment is a valid state, data can be collected continuously for multiple times on the target machine tool according to the collection frequency f stored during pre-judgment to obtain multiple sets of second spindle vibration data.
[0075] Of course, if it is determined that the data state of the first spindle vibration data stored during the pre-determination is invalid, then for the target machine tool, various parameters and data states stored during the pre-determination can be re-read from the local database.
[0076] Step 303: Determine whether the vibration root mean square values of the plurality of groups of second spindle vibration data are all smaller than the root mean square minimum values corresponding to the upper and lower limits of the speed range.
[0077] In the embodiment of the present application, the speed range is a speed range corresponding to the spindle speed of the target machine tool obtained when the target machine tool is in a processing state.
[0078] Specifically, in order to further improve the validity of the spindle vibration data, for any group of second spindle vibration data, zero-position correction can be performed on the second spindle vibration data according to the zero-position correction parameter e0 stored during pre-judgment to obtain the second spindle vibration data after zero-position correction; further, according to the second spindle vibration data after zero-position correction and the number of data points n stored during pre-judgment, the vibration root mean square value of any group of second spindle vibration data can be obtained; then, when the target machine tool is in a processing state, the current spindle speed of the target machine tool can be obtained; next, the root mean square minimum value corresponding to each speed stored during pre-judgment can be read from the local database, and finally, the speed range corresponding to the spindle speed can be determined according to a preset speed range relationship table (the table contains the correspondence between different spindle speeds and different speed ranges).
[0079] Furthermore, the minimum root mean square value corresponding to the upper and lower limits of the speed interval corresponding to the current spindle speed can be determined by reading the minimum root mean square value corresponding to each speed stored during the pre-determination from the local database. Then, for any group of second spindle vibration data, it is possible to directly determine whether the data state of any group of second spindle vibration data is invalid based on whether the vibration root mean square value of any group of second spindle vibration data is less than the minimum root mean square value corresponding to the upper and lower limits of the speed interval.
[0080] Step 304: If it is determined that the vibration root mean square values of the plurality of sets of second spindle vibration data are all smaller than the root mean square minimum values corresponding to the upper and lower limits of the speed range, the data states of the plurality of sets of second spindle vibration data are all modified to invalid states.
[0081] In order to further improve the validity of the spindle vibration data, in an embodiment of the present application, the data status of the multiple groups of second spindle vibration data acquired continuously for multiple times can be determined. Specifically, if it is determined that the vibration root mean square values of the multiple groups of second spindle vibration data acquired continuously for multiple times are all smaller than the root mean square minimum values corresponding to the upper and lower limits of the speed range, the data status of the multiple groups of second spindle vibration data can be modified to an invalid state.
[0082] Of course, if it is determined that the vibration root mean square values of the multiple groups of second spindle vibration data acquired continuously are not all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range, the data can be collected again for the target machine tool continuously based on the collection frequency f stored during the pre-determination to obtain a new round of multiple groups of second spindle vibration data, and continue to execute the step of "determining whether the data status of each group of second spindle vibration data is an invalid state".
[0083] In a possible implementation, before determining whether the data state of the first spindle vibration data stored during pre-determination is valid for the target machine tool, the validity of the spindle vibration data can be pre-determined by "determining the validity of the spindle vibration data when the machine tool is stationary" and "determining the validity of the spindle vibration data at different speeds". Figure 4 As shown, it is a schematic diagram of a process flow of effectiveness pre-determination provided in an embodiment of the present application, and the process of the pre-determination is introduced as follows.
[0084] Step 401: When the target machine tool is in a stationary state, determine whether the data state of the original spindle vibration data is a valid state.
[0085] In the complex electromagnetic environment of the machine tool itself, if the collected spindle vibration data is not properly shielded, it is very easy to be interfered by the 50Hz power supply of the machine tool. Therefore, in order to further improve the validity of the spindle vibration data, in the embodiment of the present application, when "determining the validity of the spindle vibration data when the machine tool is stationary", the original spindle vibration data can be processed in sections, and it is determined whether each section of data is valid to determine the validity of the original spindle vibration data. Figure 5 As shown, it is a schematic diagram of a process flow for determining the validity of spindle vibration data of a machine tool in a stationary state provided by an embodiment of the present application. The determination process is described as follows.
[0086] Step 4011: segment the original spindle vibration data to obtain a plurality of first segmented data.
[0087] In the embodiment of the present application, the original data of the main shaft vibration may be segmented at time intervals of 20 ms to obtain a plurality of first segmented data.
[0088] Step 4012: respectively determine the mean value and variance of the plurality of first segmented data.
[0089] In the embodiment of the present application, for any first segmented data, the average value e of any first segmented data can be calculated. 1i , and the variance S of any first segment data 2 .
[0090] Step 4013: Determine whether the average values of the plurality of first segmented data are all smaller than a preset maximum average threshold, and whether the variances of the plurality of first segmented data are all smaller than a preset maximum variance threshold.
[0091] In the embodiment of the present application, the preset maximum mean value threshold is set to e 1max , the preset maximum variance threshold is S 2 max , where the preset maximum mean threshold is e 1max and the preset maximum variance threshold is S 2 max The determination can be made by collecting data when the machine tool is not powered and has no electromagnetic interference.
[0092] Furthermore, in order to determine the validity of the original spindle vibration data, the average values of the plurality of first segmented data can be determined. 1i Are they all less than the preset maximum mean threshold e? 1max , and the variance S of each of the multiple first segmented data 2 Are they all less than the preset maximum variance threshold S 2 max .
[0093] Step 4014: If it is determined that the average values of the plurality of first segmented data are each less than a preset maximum average threshold, and the variances of the plurality of first segmented data are each less than a preset maximum variance threshold, then the data state of the original spindle vibration data is determined to be a valid state.
[0094] In the embodiment of the present application, if the average values e of the plurality of first segment data are determined 1i Are they all less than the preset maximum mean threshold e? 1max , and the variance S of each of the multiple first segmented data 2 Are they all less than the preset maximum variance threshold S 2 max , that is, e of all segmented data 1i <e 1max And S 2 2 max , it can be determined that the data status of the original data of the spindle vibration is a valid status.
[0095] Step 402: If it is determined that the data state of the original spindle vibration data is a valid state, data collection is performed on the target machine tool multiple times at different rotation speeds to obtain multiple sets of third spindle vibration data.
[0096] In the embodiment of the present application, the maximum spindle speed S of the target machine tool may be max , to divide the spindle speed range into 4 segments, and obtain 0-S max Then, the target machine tool can be started, and the spindle can be rotated from small to large according to the 5 fixed speed values obtained, and the same time t (t>10 seconds) is maintained at each speed value, thereby collecting the spindle vibration data of the whole process to obtain multiple groups of third spindle vibration data, where one speed range corresponds to a group of third spindle vibration data.
[0097] Of course, if it is determined that the data state of the original spindle vibration data is an invalid state, the original spindle vibration data and the corresponding data state (invalid state) may be stored in a local database.
[0098] Step 403: Determine whether the data states of the plurality of sets of third spindle vibration data are all valid.
[0099] In the embodiment of the present application, when “determining the validity of the spindle vibration data at different speeds”, each group of the third spindle vibration data may be processed in sections, and whether each section of data is valid may be determined to determine the validity of each group of the third spindle vibration data. Figure 6 As shown, it is a schematic diagram of a flow chart of validity determination of spindle vibration data at different speeds provided in an embodiment of the present application, and the determination process is described as follows.
[0100] Step 4031: For any group of the third spindle vibration data, segment the any group of the third spindle vibration data to obtain a plurality of second segmented data.
[0101] In the embodiment of the present application, for any set of third spindle vibration data, any set of third spindle vibration data can be divided into k segments to obtain a plurality of second segmented data, wherein the value of k is greater than 10 and the time of each second segmented data is less than 1 second.
[0102] Step 4032: respectively determine the root mean square value and variance of each of the plurality of second segmented data.
[0103] In an embodiment of the present application, for any set of third spindle vibration data, after determining to perform segmentation, the number of data points n in each second segment data can be directly determined, and then, based on the number of data points n, the root mean square value and variance of each second segment data can be directly calculated.
[0104] Step 4033: Determine the root mean square value change rate between any two adjacent second segmented data according to the root mean square values of the plurality of second segmented data.
[0105] Step 4034: Determine whether the RMS values of the plurality of second segmented data are all smaller than a preset maximum RMS threshold, and whether the RMS value change rate between any two adjacent second segmented data is greater than a preset minimum RMS value change rate threshold.
[0106] In an embodiment of the present application, different groups of third spindle vibration data have different preset maximum root mean square thresholds and preset minimum root mean square value change rate thresholds, and the preset maximum root mean square threshold and the preset minimum root mean square value change rate threshold can be obtained by conducting experiments on machine tools of the same type.
[0107] Step 4035: If it is determined that the RMS values of the plurality of second segmented data are each smaller than a preset maximum RMS threshold, and the RMS value change rate between any two adjacent second segmented data is greater than a preset minimum RMS value change rate threshold, then the data state of any group of third spindle vibration data is determined to be a valid state.
[0108] In an embodiment of the present application, if it is determined that the root mean square values of each of the multiple second segmented data are not uniformly less than a preset maximum root mean square threshold, and / or the root mean square value change rate between any two adjacent second segmented data is not uniformly greater than a preset minimum root mean square value change rate threshold, then the data state of any group of third spindle vibration data can be determined to be an invalid state.
[0109] Step 404: If it is determined that the data states of the plurality of sets of third spindle vibration data are all in a valid state, the plurality of sets of third spindle vibration data and the corresponding data states are stored in a local database.
[0110] In an embodiment of the present application, if it is determined that the data states of multiple groups of third spindle vibration data are all valid states, the minimum root mean square value at each speed (that is, the minimum root mean square value corresponding to the upper and lower limits of each speed range) can be calculated for subsequent real-time validity judgment of the spindle vibration data.
[0111] Furthermore, multiple sets of third spindle vibration data, acquisition frequency f, minimum RMS value at each speed, zero correction parameter e0, number of data points n, data status and other parameters can be stored in a local database for subsequent real-time validity judgment of the spindle vibration data.
[0112] Of course, if it is determined that the data states of the plurality of sets of third spindle vibration data are not all valid states, the plurality of sets of third spindle vibration data and the corresponding data states may be stored in a local database.
[0113] In a possible implementation manner, in order to further improve the validity of the spindle vibration data, in an embodiment of the present application, before determining whether the data state of the spindle vibration raw data is a valid state, the spindle vibration raw data may also be zero-point corrected.
[0114] Specifically, first, the maximum speed S of the target machine tool can be max (Unit RPM) divided by 60 to calculate the maximum spindle speed f max (Unit: Hz), and then the maximum rotation frequency f max Multiply by the amplification factor m (m ≥ 5), and round the amplified value by a multiple of 1024 to obtain the rounded rotation frequency. Then, the rounded rotation frequency can be determined as the actual acquisition frequency f of the spindle vibration data.
[0115] Then, when the target machine tool is stationary, data can be collected on the target machine tool according to the collection frequency f to obtain the original spindle vibration data.
[0116] Next, according to the average value e1 of the original spindle vibration data, the original spindle vibration data can be zero-corrected to obtain the original spindle vibration data after zero-correction. For example, the original spindle vibration data can be subtracted from the average value e1 to achieve the offset correction of the original spindle vibration data toward zero.
[0117] Furthermore, when determining whether the data state of the original spindle vibration data is valid when the target machine tool is stationary, it is possible to directly determine whether the data state of the original spindle vibration data after zero position correction is valid when the target machine tool is stationary.
[0118] In the embodiment of the present application, in order to further improve the validity of the spindle vibration data, in the embodiment of the present application, in the process of "determining the validity of the spindle vibration data at different speeds", the data can also be zero-corrected.
[0119] Specifically, when determining whether the data states of multiple groups of third spindle vibration data are all in valid states, the multiple groups of third spindle vibration data can also be zero-corrected according to the average value e1 of the original spindle vibration data to obtain multiple groups of third spindle vibration data after zero-correction; then, it can be directly determined whether the data states of multiple groups of third spindle vibration data after zero-correction are all in valid states.
[0120] In summary, in the embodiment of the present application, since the validity of the spindle vibration data is determined in real time only when the data state of the first spindle vibration data stored in the pre-determination is determined to be valid, the present application improves the accuracy of the data while also having good operability. In addition, since the present application combines the working state of the machine tool (taking into account the state characteristics of the machine tool itself) with the spindle vibration data, the accuracy of the data can be further improved by improving the accuracy of the determination.
[0121] Based on the same inventive concept, the embodiment of the present application provides a spindle vibration data validity determination device 70, such as Figure 7 As shown, the spindle vibration data validity determination device 70 includes:
[0122] A first validity determination unit 701 is used to determine, for a target machine tool, whether the data state of the first spindle vibration data stored during pre-determination is a valid state;
[0123] The spindle vibration data acquisition unit 702 is used to collect data from the target machine tool for multiple times to obtain multiple sets of second spindle vibration data if it is determined that the data state of the first spindle vibration data stored during the pre-determination is a valid state;
[0124] The second validity determination unit 703 is used to determine whether the vibration root mean square values of the plurality of groups of second spindle vibration data are all less than the root mean square minimum values corresponding to the upper and lower limits of the speed interval; wherein the speed interval is a speed interval corresponding to the spindle speed of the target machine tool obtained when the target machine tool is in a processing state;
[0125] The data status modifying unit 704 is used to modify the data status of the plurality of sets of second spindle vibration data to an invalid state if it is determined that the vibration root mean square values of the plurality of sets of second spindle vibration data are all less than the root mean square minimum values corresponding to the upper and lower limits of the speed range.
[0126] Optionally, the second validity determination unit 703 is further configured to:
[0127] For any group of second spindle vibration data, performing zero-position correction on any group of second spindle vibration data according to a zero-position correction parameter to obtain the second spindle vibration data after zero-position correction;
[0128] Obtaining a vibration root mean square value of any group of second spindle vibration data according to the second spindle vibration data after zero position correction;
[0129] When the target machine tool is in a processing state, the current spindle speed of the target machine tool is obtained;
[0130] According to the preset speed range relationship table, the speed range corresponding to the spindle speed is determined.
[0131] Optionally, the first validity determination unit 701 is further configured to:
[0132] When the target machine tool is in a stationary state, determining whether the data state of the original data of the spindle vibration is a valid state;
[0133] If it is determined that the data state of the original spindle vibration data is a valid state, data collection is performed on the target machine tool multiple times at different rotation speeds to obtain multiple sets of third spindle vibration data;
[0134] Determine whether the data states of the plurality of sets of third spindle vibration data are all in a valid state;
[0135] If it is determined that the data states of the plurality of sets of third spindle vibration data are all in valid states, the plurality of sets of third spindle vibration data and the corresponding data states are stored in a local database.
[0136] Optionally, the first validity determination unit 701 is further configured to:
[0137] Segmenting the original spindle vibration data to obtain a plurality of first segmented data;
[0138] respectively determining the mean value and variance of each of the plurality of first segmented data;
[0139] Determine whether the average values of the plurality of first segmented data are all less than a preset maximum average threshold, and whether the variances of the plurality of first segmented data are all less than a preset maximum variance threshold;
[0140] If it is determined that the average values of the plurality of first segmented data are all smaller than the preset maximum average threshold, and the variances of the plurality of first segmented data are all smaller than the preset maximum variance threshold, then the data state of the original spindle vibration data is determined to be a valid state.
[0141] Optionally, the first validity determination unit 701 is further configured to:
[0142] For any group of the third main shaft vibration data, segmenting any group of the third main shaft vibration data to obtain a plurality of second segmented data;
[0143] respectively determining the root mean square value and variance of each of the plurality of second segmented data;
[0144] Determine the root mean square value change rate between any two adjacent second segmented data according to the root mean square values of the plurality of second segmented data;
[0145] Determine whether the root mean square values of the plurality of second segmented data are all less than a preset maximum root mean square threshold, and whether the root mean square value change rate between any two adjacent second segmented data is all greater than a preset minimum root mean square value change rate threshold;
[0146] If it is determined that the root mean square values of each of the plurality of second segmented data are less than a preset maximum root mean square threshold, and the root mean square value change rate between any two adjacent second segmented data is greater than a preset minimum root mean square value change rate threshold, then the data state of any group of third spindle vibration data is determined to be a valid state.
[0147] Optionally, the spindle vibration data validity determination device 70 further includes a zero position correction unit 705, the zero position correction unit 705 being used to:
[0148] Determine the acquisition frequency based on the maximum speed of the target machine tool;
[0149] When the target machine tool is in a stationary state, data is collected on the target machine tool according to the acquisition frequency to obtain the original data of the spindle vibration;
[0150] According to the average value of the original spindle vibration data, the original spindle vibration data is zero-corrected to obtain the original spindle vibration data after zero-correction;
[0151] Then, when the target machine tool is in a stationary state, the step of determining whether the data state of the original spindle vibration data is a valid state includes:
[0152] When the target machine tool is in a stationary state, it is determined whether the data state of the original spindle vibration data after zero position correction is a valid state.
[0153] Optionally, the zero correction unit 705 is further used for:
[0154] According to the average value of the original spindle vibration data, zero-position correction is performed on multiple sets of third spindle vibration data to obtain multiple sets of third spindle vibration data after zero-position correction;
[0155] Determine whether the data states of the plurality of groups of third spindle vibration data after zero position correction are all valid states.
[0156] The spindle vibration data validity determination device 70 can be used to perform Figure 3-Figure 6 The method implemented in the embodiment shown in FIG. 1 is a method implemented in the embodiment shown in FIG. 1 . Therefore, the functions that can be realized by each functional module of the spindle vibration data validity determination device 70 can be referred to. Figure 3-Figure 6 The description of the illustrated embodiment is not repeated in detail.
[0157] In some possible implementations, various aspects of the method provided in the present application may also be implemented in the form of a program part, which includes a program code. When the program part is run on a computer device, the program code is used to enable the computer device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 3-Figure 6The method performed in the illustrated embodiment.
[0158] Those skilled in the art can understand that all or part of the steps of the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiment are executed; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks. Alternatively, if the above integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent part, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software part, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in various embodiments of the present invention. And the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0159] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0160] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for determining the validity of spindle vibration data, characterized in that: The method comprises: When the target machine tool is in a stationary state, determine whether the data state of the original spindle vibration data is in a valid state; wherein, when the target machine tool is in a stationary state, the step of determining whether the data state of the original spindle vibration data is in a valid state includes: segmenting the original spindle vibration data to obtain a plurality of first segmented data; respectively determining the mean value and variance of each of the plurality of first segmented data; determining whether the mean values of each of the plurality of first segmented data are less than a preset maximum mean threshold, and whether the variances of each of the plurality of first segmented data are less than a preset maximum variance threshold; if it is determined that the mean values of each of the plurality of first segmented data are less than the preset maximum mean threshold, and the variances of each of the plurality of first segmented data are less than the preset maximum variance threshold, then determine that the data state of the original spindle vibration data is in a valid state; If it is determined that the data state of the original spindle vibration data is a valid state, data collection is performed on the target machine tool multiple times at different rotation speeds to obtain multiple sets of third spindle vibration data; Determine whether the data states of the multiple groups of third spindle vibration data are all in valid states; wherein the step of determining whether the data states of the multiple groups of third spindle vibration data are all in valid states comprises: for any group of third spindle vibration data, segment the any group of third spindle vibration data to obtain a plurality of second segmented data; respectively determine the root mean square value and variance of each of the plurality of second segmented data; determine the root mean square value change rate between any two adjacent second segmented data according to the root mean square value of each of the plurality of second segmented data; determine whether the root mean square value of each of the plurality of second segmented data is less than a preset maximum root mean square threshold, and whether the root mean square value change rate between any two adjacent second segmented data is greater than a preset minimum root mean square value change rate threshold; if it is determined that the root mean square value of each of the plurality of second segmented data is less than the preset maximum root mean square threshold, and the root mean square value change rate between any two adjacent second segmented data is greater than the preset minimum root mean square value change rate threshold, then determine that the data state of any group of third spindle vibration data is in valid state; If it is determined that the data states of the plurality of sets of third spindle vibration data are all in valid states, storing the plurality of sets of third spindle vibration data and the corresponding data states in a local database; For the target machine tool, determining whether the data state of the first spindle vibration data stored during pre-determination is a valid state; If it is determined that the data state of the first spindle vibration data stored during the pre-determination is a valid state, data collection is performed on the target machine tool for multiple consecutive times to obtain multiple sets of second spindle vibration data; Determine whether the vibration root mean square values of each of the plurality of groups of second spindle vibration data are all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range; wherein the speed range is a speed range corresponding to the spindle speed of the target machine tool obtained when the target machine tool is in a processing state; If it is determined that the vibration root mean square values of the multiple sets of second spindle vibration data are all smaller than the root mean square minimum values corresponding to the upper and lower limits of the speed range, the data states of the multiple sets of second spindle vibration data are all modified to invalid states.
2. The method according to claim 1, characterized in that The step of determining whether the vibration root mean square values of the plurality of groups of second spindle vibration data are all smaller than the root mean square minimum values corresponding to the upper and lower limits of the speed range comprises: For any group of second spindle vibration data, performing zero-position correction on the any group of second spindle vibration data according to a zero-position correction parameter to obtain the second spindle vibration data after zero-position correction; Obtaining a vibration root mean square value of any group of second spindle vibration data according to the second spindle vibration data after zero position correction; When the target machine tool is in a processing state, obtaining a current spindle speed of the target machine tool; According to a preset speed interval relationship table, the speed interval corresponding to the spindle speed is determined.
3. The method according to claim 1, characterized in that Before determining whether the data state of the original spindle vibration data is a valid state, the method further includes: Determining a collection frequency according to a maximum rotation speed of the target machine tool; When the target machine tool is in a stationary state, data is collected on the target machine tool according to the collection frequency to obtain raw spindle vibration data; According to the average value of the raw spindle vibration data, the raw spindle vibration data is zero-corrected to obtain the raw spindle vibration data after zero-correction; Then, the step of determining whether the data state of the original spindle vibration data is a valid state when the target machine tool is in a stationary state comprises: When the target machine tool is in a stationary state, it is determined whether the data state of the original spindle vibration data after the zero position correction is a valid state.
4. The method according to claim 3, characterized in that The step of determining whether the data states of the plurality of sets of third spindle vibration data are all in a valid state comprises: According to the average value of the original spindle vibration data, the plurality of sets of third spindle vibration data are subjected to zero-position correction to obtain a plurality of sets of third spindle vibration data after zero-position correction; It is determined whether the data states of the plurality of groups of zero-corrected third spindle vibration data are all valid states.
5. A device for determining the validity of spindle vibration data, characterized in that: The device comprises: The first validity determination unit is used to determine whether the data state of the original spindle vibration data is a valid state when the target machine tool is in a stationary state; wherein, the step of determining whether the data state of the original spindle vibration data is a valid state when the target machine tool is in a stationary state includes: segmenting the original spindle vibration data to obtain a plurality of first segmented data; respectively determining the mean value and variance of each of the plurality of first segmented data; determining whether the mean values of each of the plurality of first segmented data are less than a preset maximum mean threshold, and whether the variances of each of the plurality of first segmented data are less than a preset maximum variance threshold; if it is determined that the mean values of each of the plurality of first segmented data are less than the preset maximum mean threshold, and the variances of each of the plurality of first segmented data are less than the preset maximum variance threshold, then determining that the data state of the original spindle vibration data is a valid state; if it is determined that the data state of the original spindle vibration data is a valid state, then performing data collection on the target machine tool multiple times at different speeds to obtain a plurality of sets of third spindle vibration data; determining whether the data states of the plurality of sets of third spindle vibration data are all in a valid state; wherein, the step of determining whether the data states of the plurality of sets of third spindle vibration data are all in a valid state The steps of the effective state include: for any group of third spindle vibration data, segmenting the any group of third spindle vibration data to obtain a plurality of second segmented data; respectively determining the root mean square value and variance of each of the plurality of second segmented data; determining the root mean square value change rate between any two adjacent second segmented data according to the root mean square value of each of the plurality of second segmented data; determining whether the root mean square value of each of the plurality of second segmented data is less than a preset maximum root mean square threshold, and whether the root mean square value change rate between any two adjacent second segmented data is greater than a preset minimum root mean square value change rate. rate threshold; if it is determined that the root mean square values of each of the plurality of second segmented data are less than the preset maximum root mean square threshold, and the root mean square value change rate between any two adjacent second segmented data is greater than the preset minimum root mean square value change rate threshold, then determine that the data state of any group of third spindle vibration data is a valid state; if it is determined that the data states of the plurality of groups of third spindle vibration data are all valid states, then store the plurality of groups of third spindle vibration data and the corresponding data states in a local database; for the target machine tool, determine whether the data state of the first spindle vibration data stored during pre-determination is a valid state; A spindle vibration data acquisition unit, configured to acquire multiple sets of second spindle vibration data by continuously collecting data from the target machine tool for multiple times if the data state of the first spindle vibration data stored during the pre-determination is determined to be a valid state; A second validity determination unit is used to determine whether the vibration root mean square values of the plurality of groups of second spindle vibration data are all less than the root mean square minimum value corresponding to the upper and lower limits of the speed range; wherein the speed range is a speed range corresponding to the spindle speed of the target machine tool obtained when the target machine tool is in a processing state; The data status modification unit is used to modify the data status of the multiple sets of second spindle vibration data to an invalid state if it is determined that the vibration root mean square values of the multiple sets of second spindle vibration data are all less than the root mean square minimum values corresponding to the upper and lower limits of the speed range.
6. An electronic device, characterized in that: The device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute any method according to claims 1-4 according to the obtained program instructions.
7. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any one of the methods in claims 1-4.
