Fault detection method, system, computer readable storage medium and numerically controlled machine tool
By collecting and analyzing the operation data of CNC machine tool spindles and feed axes, fault analysis is performed, which solves the problem of relying on experience to judge faults in the existing technology, achieves accurate fault diagnosis of CNC machine tools and the ability to detect faults in a timely manner, and avoids Critical components are damaged.
Patent Information
- Application Number
- CN202010767648.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-03
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-08-03
AI Technical Summary
In the existing technology, fault diagnosis of CNC machine tool spindles and feed axes mostly relies on experience, resulting in problems being discovered only when serious processing problems occur, resulting in damage to key components and difficulty in repair.
By generating the operating program of the CNC machine tool, collecting the operating data of the spindle and feed axis, and conducting fault analysis, including segmentation testing, Fourier transform and frequency analysis, the resonance phenomenon and speed fluctuation indicators are determined, and the fault type is determined.
It achieves accurate fault diagnosis of CNC machine tool spindles and feed axes, and promptly detects equipment faults without increasing detection costs, making it easy to implement on site.
Smart Images

Figure CN114054785B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of CNC machine tool detection and signal processing, and relates to a detection method and system, and in particular to a fault detection method, system, computer-readable storage medium and CNC machine tool. Background Art
[0002] At present, the fault detection of mechanical transmission components of CNC machine tools or other CNC equipment usually requires the use of external detection equipment, such as vibration sensors and analysis equipment, etc. The related equipment costs are high and it is difficult to implement on site. Under normal circumstances, due to cost reasons, users of CNC machine tools or other CNC equipment will not specifically purchase related detection equipment. The use of traditional mechanical detection methods usually requires the disassembly of the machine, which is difficult to implement on site. On-site fault judgment of the spindle and feed axis mostly relies on experience, and problems can only be discovered when more serious processing problems occur. At this time, key components are usually damaged and difficult to repair.
[0003] Therefore, how to provide a fault detection method, system, computer-readable storage medium and CNC machine tool to solve the problem that the existing technology relies mostly on experience to judge the faults of the spindle and feed axis. Therefore, the problem will only be discovered when serious processing problems occur in the CNC machine tool, resulting in damage to key components and difficulty in maintenance. This has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the object of the present invention is to provide a fault detection method, system, computer-readable storage medium and CNC machine tool, which are used to solve the problem that the prior art relies mostly on experience to judge the faults of the spindle and feed shaft. Therefore, the problem will not be discovered until serious processing problems occur in the CNC machine tool, resulting in damage to key components and difficulty in repair.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a fault detection method on the one hand, which is applied to a CNC machine tool and is used to detect the spindle and feed axis of the CNC machine tool; the fault detection method comprises: generating an operation program of the CNC machine tool; after the CNC machine tool enters the operation state, collecting the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction; and performing fault analysis of the spindle and the feed axis based on the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction.
[0006] In one embodiment of the present invention, the generated operation program of the CNC machine tool includes an operation program for instructing the spindle to operate according to a specified action and an operation program for instructing each of the feed axes in three-dimensional directions to operate to a specified position.
[0007] In one embodiment of the present invention, the operation data of the main shaft includes the stable rotation speed of the main shaft; the operation data of each feed axis in the three-dimensional direction includes the feedback speed of each feed axis in the three-dimensional direction.
[0008] In one embodiment of the present invention, the step of performing fault analysis of the spindle and the feed axis according to the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction includes: dividing the test process into several test sections according to the stable rotation speed of the spindle.
[0009] In one embodiment of the present invention, the steps of performing fault analysis of the spindle and the feed axis according to the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction include: waiting for the spindle to enter a test section, obtaining the feedback speed of each feed axis in the three-dimensional direction at n data points at a stable speed in the test section; wherein n represents the number of data points of the spindle at the stable speed; calculating the average speed fluctuation value of each feed axis in the three-dimensional direction respectively; for each feed axis, determining whether the stable speed is a meaningful speed of the feed axis according to its average speed fluctuation value; if so, selecting a number of continuous data points from the feedback speed within the time period of staying at the stable speed, and performing Fourier transform on the several continuous data points; if not, entering the next test section; selecting the maximum amplitude corresponding to the number of the Fourier transform amplitudes according to the specified number, and forming a maximum frequency peak matrix with the frequencies corresponding to the selected maximum amplitudes; judging whether there is a common frequency in the maximum frequency peak matrix; if so, it indicates that the feed axis has a resonance phenomenon; if not, it indicates that the feed axis is normal.
[0010] In one embodiment of the present invention, the step of performing fault analysis on the spindle and the feed shaft based on the operating data of the spindle and the operating data of each of the feed shafts in the three-dimensional direction also includes: for each of the feed shafts, calculating the proportion of its common frequency in the feedback speed fluctuation; based on the proportion, calculating the speed fluctuation index of each of the feed shafts; the speed fluctuation index is an index for determining whether there is a spindle fault; if the speed fluctuation index of the feed shaft connected to the spindle is greater than the preset spindle fault threshold, it indicates that the spindle has a radial runout fault.
[0011] In one embodiment of the present invention, the step of performing fault analysis on the spindle and the feed shaft according to the operating data of the spindle and the operating data of each of the feed shafts in the three-dimensional direction also includes: when the spindle is at a stable rotation speed, according to the spindle rotation frequency, calculating the double frequency and half frequency of the spindle rotation frequency; judging whether there is the double frequency or half frequency of the spindle rotation frequency in the maximum frequency peak matrix of the feed shaft connected to the spindle; if so, it indicates that the spindle has a misalignment fault.
[0012] On the other hand, the present invention provides a fault detection system, which is applied to a CNC machine tool and is used to detect the spindle and feed axis of the CNC machine tool; the fault detection system includes: a program generation module, which is used to generate an operation program for the CNC machine tool; a data acquisition module, which is used to collect the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction after the CNC machine tool enters the operation state; and a fault analysis module, which is used to perform fault analysis of the spindle and the feed axis based on the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction.
[0013] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the fault detection method when executed by a processor.
[0014] The last aspect of the present invention provides a CNC machine tool, characterized in that it includes: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the CNC machine tool executes the fault detection method.
[0015] As described above, the fault detection method, system, computer-readable storage medium and CNC machine tool of the present invention have the following beneficial effects:
[0016] The fault detection method, system, computer-readable storage medium and CNC machine tool described in the present invention accurately diagnose the faults of the spindle and the feed shaft by collecting and analyzing the speed fluctuations of the feed shaft when the spindle rotates, so as to timely discover equipment faults without increasing the detection cost, which is convenient for on-site implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 FIG. 1 is a flow chart of a fault detection method according to an embodiment of the present invention.
[0018] Figure 2A It is a schematic diagram of the flow of S13 in the fault detection method of the present invention.
[0019] Figure 2B It is a schematic diagram of the flow of S13 in the fault detection method of the present invention.
[0020] Figure 2C It is a schematic diagram of the flow of S13 in the fault detection method of the present invention.
[0021] Figure 3 It is a schematic diagram showing the principle structure of a fault detection system in one embodiment of the present invention.
[0022] Component number description
[0023] 3 Fault Detection System
[0024] 31 Program Generation Module
[0025] 32 Data acquisition module
[0026] 33 Fault Analysis Module
[0027] Steps S11 to S13
[0028] Steps S131 to S138
[0029] Steps S131'~S133'
[0030] Steps S131”~S132” DETAILED DESCRIPTION
[0031] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0032] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0033] Embodiment 1
[0034] This embodiment provides a fault detection method, which is applied to a CNC machine tool and is used to detect the spindle and feed axis of the CNC machine tool; the fault detection method includes:
[0035] Generating an operating program for the CNC machine tool;
[0036] After the CNC machine tool enters the running state, collecting the running data of the spindle and the running data of each feed axis in the three-dimensional direction;
[0037] According to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction, the fault analysis of the main shaft and the feed shaft is carried out.
[0038] The following will describe in detail the fault detection method provided by this embodiment with reference to the diagram. Figure 1 , which is a flow chart of a fault detection method in one embodiment. Figure 1As shown, the fault detection method specifically includes the following steps:
[0039] S11, generating an operating program for the CNC machine tool.
[0040] In this embodiment, the generated operation program of the CNC machine tool includes an operation program for instructing the spindle to operate according to a specified action and an operation program for instructing each feed axis in a three-dimensional direction (XYZ direction) to operate to a specified position.
[0041] Specifically, the running program of the spindle running according to the specified action includes indicating that the maximum spindle speed is 20000 rpm, and the speed interval is set to 2000. During the test, the spindle stays at the speed of [0, 2000, 4000, 6000, 8000, 10000, 12000, 14000, 16000, 18000, 20000] for 2 seconds, and finally decelerates to 0, and the program running is completed.
[0042] The specified position of the feed axis can usually be set to the center of the motion range of the axis, and the specified action of the spindle is to accelerate from 0 to the specified speed at a set speed interval, and stay for a period of time at each speed interval, such as 2 seconds.
[0043] S12, after the CNC machine tool enters the operating state, collecting the operating data of the main shaft and the operating data of each feed axis in the three-dimensional direction.
[0044] In this embodiment, the operation data of the spindle includes data such as the stable rotation speed of the spindle, etc. The operation data of each feed axis in the three-dimensional direction includes data such as the feedback speed of each feed axis in the three-dimensional direction (XYZ three axes).
[0045] S13, performing fault analysis of the main shaft and the feed shaft according to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction.
[0046] See also Figure 2A , which is a schematic diagram of the process of S13. Figure 2A As shown, the S13 specifically includes the following steps:
[0047] S131, dividing the test process into several test sections according to the stable rotation speed of the spindle.
[0048] S132, wait for the spindle to enter a test section, and obtain the feedback speed of each feed axis in the three-dimensional direction at n data points at a stable rotation speed in the test section; wherein n represents the number of data points of the spindle at the stable rotation speed.
[0049] For example, when the spindle's stable speed is 12,000 rpm, the feedback speed of the X-axis of a milling machine is vel_x 12000 =[vel_x(1),vel_x(2)...vel_x(n)], the same applies to the YZ axes.
[0050] S133, respectively calculating the average velocity fluctuation value vel_vib of each of the feed axes in the three-dimensional directions.
[0051] For example, taking the X-axis at a spindle speed of 12000 rpm as an example, the calculation formula for the average speed fluctuation value vel_vib is as follows:
[0052] vel_vib x12000 =mean(abs(vel_x 12000 ))
[0053] Among them, abs is to find the absolute value, and mean is to calculate the mean.
[0054] S134, for each of the feed axes, determine whether the stable rotation speed is a meaningful rotation speed of the feed axis according to its average speed fluctuation value; if so, execute S135, if not, enter the next test section.
[0055] In this embodiment, when the average speed fluctuation value vel_vib is greater than the preset fluctuation threshold vel_th (confirmed according to the accuracy of the feedback element selected for the feed axis, usually in the range of 2 to 3 pulses corresponding to the speed fluctuation value), it is determined that the speed fluctuation data under the stable speed is meaningful, and the stable speed of the spindle is recognized as a meaningful speed.
[0056] S135, selecting a number of continuous data points from the feedback speed within the dwell time period at the stable speed, and performing Fourier transform on the number of continuous data points.
[0057] For example, taking the data at a rotation speed of 12,000 rpm, at a sampling frequency of 1,000 Hz, the data length for staying at each rotation speed for 2 seconds is about 2,000. For consistency in analysis, 1,024 consecutive data points are taken from the data for Fourier transform.
[0058] S136, selecting the maximum amplitude corresponding to the designated number from the amplitudes of the Fourier transform, and forming a maximum frequency peak matrix with the frequencies corresponding to the selected maximum amplitudes.
[0059] Specifically, in the amplitude result of Fourier transform, the frequencies corresponding to the five largest amplitudes are selected to form the maximum frequency peak matrix peak_set, where peak_set = [f 12000_max1 ,f 12000_max2 ,f 12000_max3,f 12000_max4 ,f 12000_max5 ]
[0060] S137, determining whether there is a common frequency f_r (also called resonance frequency) in the maximum frequency peak matrix; if so, it indicates that resonance exists in the feed shaft; if not, it indicates that the feed shaft is normal.
[0061] Specifically, when determining the common frequency f_r, assuming that there are n groups of meaningful rotational speeds in the test result, f_r is considered to be a valid resonance frequency only when it appears more than n*0.6 times in the meaningful rotational speeds, that is, the feed shaft resonates.
[0062] In the maximum frequency peak matrix peak_set, due to the influence of frequency resolution, when the deviation between two frequencies is within ±2 Hz, they are considered to have the same value and are identified as repetitive frequencies.
[0063] See also Figure 2B , which is a schematic diagram of the process of S13. Figure 2B As shown, the S13 further includes the following steps:
[0064] S131', after determining the resonance frequency f_r, for each of the feed axes, calculate the proportion of its common frequency in the feedback speed fluctuation.
[0065] At a meaningful speed, the amplitude result of Fourier transform is expressed as [m f1 ,m f2 ,m f3 ,...,m fn ], where m represents the amplitude and fn represents its corresponding frequency. The calculation formula of the proportion r_p of the common frequency in the feedback speed fluctuation is as follows:
[0066]
[0067] Among them, m k is the amplitude corresponding to the resonant frequency f_r, and sum is the sum.
[0068] S132', calculating the speed fluctuation index vel_m of each feed axis according to the ratio; the speed fluctuation index is an index used to determine whether the spindle has a fault.
[0069] Speed fluctuation index vel_m at a meaningful speed j The calculation formula is as follows:
[0070] vel_m j =r_p j ×vel_vib j
[0071] For each of the feed axes, vel_m at each meaningful speed j Take the average value to get the speed fluctuation index vel_m of each feed axis. Since the vel_m of the feed axis directly connected to the spindle can best reflect the spindle condition in actual situations, the vel_m value calculated using the feed axis data connected to the spindle is mainly considered in judging spindle failure. If the axis connected to the spindle of a machine tool is the z-axis, the vel_m is mainly considered. z The numerical value of .
[0072] S133', determine whether the speed fluctuation index vel_m of the feed shaft connected to the spindle is greater than the preset spindle fault threshold vel_m_th (the spindle fault threshold vel_m_th needs to be determined according to different models of machine tools, such as selecting the average vel_m value of multiple machine tools of the same model as vel_m_th); if the speed fluctuation index vel_m of the feed shaft connected to the spindle is greater than the preset spindle fault threshold vel_m_th, it indicates that the spindle has a mechanical fault, such as a radial runout fault of the spindle.
[0073] See also Figure 2C , which is shown as a flow chart of S13, such as Figure 2C As shown, the S13 further includes:
[0074] S131", for each meaningful speed, according to the spindle rotation frequency (spindle speed / 60) Hz, calculate the double frequency (2*spindle frequency Hz) and half frequency (0.5*spindle frequency Hz) of the spindle frequency.
[0075] S132", determine whether there is a double frequency or half frequency of the main shaft rotation frequency in the maximum frequency peak matrix of the feed shaft connected to the main shaft; if so, it means that there is a mechanical fault in the main shaft, that is, there is a misalignment fault in the main shaft; if not, it means that there is no mechanical fault in the main shaft.
[0076] Specifically, assuming that there are n groups of meaningful speeds in the test result, it is considered that the spindle has a mechanical fault only when the double frequency or half frequency of the main shaft rotation frequency appears more than n*0.6 times in the meaningful speeds.
[0077] In this embodiment, the analysis process of the feed shaft resonance fault, the analysis process of the spindle radial runout fault and the analysis process of the spindle misalignment fault can be performed simultaneously or sequentially.
[0078] The fault detection method of the present invention collects and analyzes the speed fluctuation of the feed shaft when the main shaft rotates to perform accurate fault diagnosis on the main shaft and the feed shaft, so as to timely discover equipment faults without increasing the detection cost, and is easy to implement on site.
[0079] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fault detection method is implemented.
[0080] A person skilled in the art can understand that a computer-readable storage medium is: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0081] Embodiment 2
[0082] This embodiment provides a fault detection system, which is applied to a CNC machine tool and is used to detect the spindle and feed axis of the CNC machine tool; the fault detection system includes:
[0083] A program generation module, used for generating an operating program for the CNC machine tool;
[0084] A data acquisition module, used for collecting the operation data of the spindle and the operation data of each feed axis in three-dimensional directions after the CNC machine tool enters the operation state;
[0085] The fault analysis module is used to perform fault analysis of the main shaft and the feed shaft according to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction.
[0086] The following will describe in detail the fault detection system provided by this embodiment in conjunction with the diagram. Figure 3 , which is a schematic diagram of the principle structure of a fault detection system in one embodiment. Figure 3 As shown, the fault detection system 3 includes: a program generation module 31 , a data acquisition module 32 and a fault analysis module 33 .
[0087] The program generation module 31 is used to generate the operating program of the CNC machine tool.
[0088] In this embodiment, the operating program of the CNC machine tool generated by the program generation module 31 includes an operating program for instructing the spindle to operate according to a specified action and an operating program for instructing each feed axis in a three-dimensional direction (XYZ direction) to operate to a specified position.
[0089] The data acquisition module 32 is used to collect the operation data of the spindle and the operation data of each feed axis in the three-dimensional direction after the CNC machine tool enters the operation state. In this embodiment, the operation data of the spindle includes data such as the stable rotation speed of the spindle. The operation data of each feed axis in the three-dimensional direction includes data such as the feedback speed of each feed axis in the three-dimensional direction (XYZ three axes).
[0090] The fault analysis module 33 coupled to the program production module 31 and the data acquisition module 32 is used to perform fault analysis of the main shaft and the feed shaft according to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction.
[0091] Specifically, the fault analysis module 33 divides the test process into several test sections according to the stable speed of the spindle; when the spindle enters a test section, the feedback speed of each feed axis in the three-dimensional direction at n data points is obtained at the stable speed in the test section; wherein n represents the number of data points of the spindle at the stable speed; the average speed fluctuation value vel_vib of each feed axis in the three-dimensional direction is calculated respectively; for each feed axis, according to its average speed fluctuation value, it is determined whether the stable speed is a meaningful speed of the feed axis; if so, a number of continuous data points are selected from the feedback speed within the time period of staying at the stable speed, and a number of continuous data points are Fourier transformed; if not, the next test section is entered; the maximum amplitude corresponding to the number of the Fourier transform amplitudes is selected according to the specified number, and the frequencies corresponding to the selected maximum amplitudes are formed into a maximum frequency peak matrix; it is determined whether there is a common frequency f_r (also called resonance frequency) in the maximum frequency peak matrix; if so, it indicates that the feed axis has resonance phenomenon; if not, it indicates that the feed axis is normal.
[0092] Specifically, after determining the resonance frequency f_r, the fault analysis module 33 calculates the proportion of the common frequency in the feedback speed fluctuation for each feed axis; based on the proportion, calculates the speed fluctuation index vel_m of each feed axis. j ; The speed fluctuation index is an index for determining whether there is a fault in the spindle; determine whether the speed fluctuation index vel_m of the feed shaft connected to the spindle is greater than the preset spindle fault threshold vel_m_th; if the speed fluctuation index vel_m of the feed shaft connected to the spindle is greater than the preset spindle fault threshold vel_m_th, it indicates that there is a mechanical fault in the spindle, such as a radial runout fault in the spindle.
[0093] Specifically, for each meaningful speed, the fault analysis module 33 calculates the double frequency (2*spindle frequency Hz) and half frequency (0.5*spindle frequency Hz) of the spindle working frequency according to the spindle rotation frequency (spindle speed / 60) Hz; determines whether there is double frequency or half frequency of the spindle rotation frequency in the maximum value peak matrix of the feed shaft connected to the spindle; if so, it means that the spindle has a mechanical fault, that is, the spindle has a misalignment fault; if not, it means that the spindle has no mechanical fault.
[0094] It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements, or they can all be implemented in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example: the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system. In addition, the x module can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. These modules can be integrated together in whole or in part, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software. The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), one or more digital singnal processors (DSP), one or more field programmable gate arrays (FPGA), etc. When a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. These modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0095] Embodiment 3
[0096] This embodiment provides a CNC machine tool, which includes: a processor, a memory, a transceiver, a communication interface and / or a system bus; the memory and the communication interface are connected to the processor and the transceiver through the system bus and complete mutual communication, the memory is used to store computer programs, the communication interface is used to communicate with other devices, and the processor and the transceiver are used to run the computer program, so that the CNC machine tool executes each step of the fault detection method described above.
[0097] The system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.
[0098] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0099] The protection scope of the fault detection method described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0100] The present invention also provides a fault detection system, which can implement the fault detection method described in the present invention. However, the implementation device of the fault detection method described in the present invention includes but is not limited to the structure of the fault detection system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0101] In summary, the fault detection method, system, computer-readable storage medium and CNC machine tool of the present invention can accurately diagnose the faults of the main shaft and the feed shaft by collecting and analyzing the speed fluctuation of the feed shaft when the main shaft rotates, so as to timely discover the equipment faults, and there is no need to increase the detection cost, which is convenient for on-site implementation. The present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
[0102] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A fault detection method, characterized in that: Applied to CNC machine tools, used to detect the spindle and feed axis of CNC machine tools; The fault detection method comprises: Generating an operating program for the CNC machine tool; After the CNC machine tool enters the running state, collecting the running data of the spindle and the running data of each feed axis in the three-dimensional direction; According to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction, the main shaft and the feed shaft fault analysis is performed; Wherein, the performing of the fault analysis of the main shaft and the feed shaft according to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction comprises: Based on the feed shaft speed fluctuation when the spindle rotates, the feed shaft resonance fault analysis, the spindle radial runout fault analysis and the spindle misalignment fault analysis are carried out.
2. The fault detection method according to claim 1, characterized in that: The generated operation program of the numerically controlled machine tool includes an operation program for instructing the spindle to operate according to a specified action and an operation program for instructing each of the feed axes in a three-dimensional direction to operate to a specified position.
3. The fault detection method according to claim 1, characterized in that: The operating data of the spindle includes the stable rotation speed of the spindle; The operation data of each feed axis in the three-dimensional direction includes the feedback speed of each feed axis in the three-dimensional direction.
4. The fault detection method according to claim 3, characterized in that: According to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction, the steps of performing the fault analysis of the main shaft and the feed shaft include: The test process is divided into several test sections according to the stable rotation speed of the spindle.
5. The fault detection method according to claim 4, characterized in that: According to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction, the steps of performing the fault analysis of the main shaft and the feed shaft include: When the spindle enters a test section, at a stable speed in the test section, the feedback speed of each feed axis in a three-dimensional direction at n data points is obtained; wherein n represents the number of data points of the spindle at the stable speed; Calculating the average speed fluctuation value of each feed axis in three-dimensional directions respectively; For each of the feed axes, determine whether the stable speed is a meaningful speed of the feed axis according to its average speed fluctuation value; if so, select a number of continuous data points from the feedback speed within the dwell time period at the stable speed, and perform Fourier transform on the number of continuous data points; if not, enter the next test section; Select the maximum amplitude corresponding to the specified number from the amplitudes of the Fourier transform, and form a maximum frequency peak matrix with the frequencies corresponding to the selected maximum amplitudes; Determine whether there is a common frequency in the maximum frequency peak matrix; if so, it means that the feed shaft has a resonance phenomenon; if not, it means that the feed shaft is normal.
6. The fault detection method according to claim 5, characterized in that: The step of performing fault analysis on the main shaft and the feed shaft according to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction also includes: For each of the feed axes, calculating the proportion of its common frequency in the feedback speed fluctuation; According to the ratio, the speed fluctuation index of each feed axis is calculated; the speed fluctuation index is used to Indicators for determining whether the spindle is faulty; If the speed fluctuation index of the feed shaft connected to the spindle is greater than a preset spindle fault threshold, it indicates that the spindle has a radial runout fault.
7. The fault detection method according to claim 4, characterized in that: The step of performing fault analysis on the main shaft and the feed shaft according to the operation data of the main shaft and the operation data of each feed shaft in the three-dimensional direction also includes: When the spindle is at a stable speed, the double frequency and half frequency of the spindle working frequency are calculated according to the spindle rotation working frequency; It is determined whether there is a double frequency or half frequency of the main shaft rotation frequency in the maximum frequency peak matrix of the feed shaft connected to the main shaft; if there is, it indicates that there is a misalignment fault in the main shaft.
8. A fault detection system, characterized in that: Applied to CNC machine tools, used to detect the spindle and feed axis of CNC machine tools; The fault detection system comprises: A program generation module, used for generating an operating program for the CNC machine tool; A data acquisition module, used for collecting the operation data of the spindle and the operation data of each feed axis in three-dimensional directions after the CNC machine tool enters the operation state; The fault analysis module is used to perform fault analysis of the spindle and the feed shaft according to the operating data of the spindle and the operating data of each feed shaft in the three-dimensional direction; including resonance fault analysis of the feed shaft, radial runout fault analysis of the spindle and misalignment fault analysis of the spindle based on the feed shaft speed fluctuation when the spindle rotates.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fault detection method according to any one of claims 1 to 7 is implemented.
10. A numerically controlled machine tool, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the CNC machine tool executes the fault detection method according to any one of claims 1 to 7.
