Method, device, equipment and medium for detecting fault of electric spindle bearing of CNC machine tool

By collecting and comparing electric spindle temperature rise data through simulated cutting scripts, the problem of unstable temperature rise control of electric spindle bearings in CNC machine tools is solved, preventive detection and early maintenance are achieved, the failure rate and maintenance costs are reduced, and the reliability of the machine tool is improved. sex.

CN117943891BActive Publication Date: 2024-09-06JIER MACHINE TOOL GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410332016.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-09-06
Estimated Expiration
2044-03-22

AI Technical Summary

Technical Problem

The temperature rise control device of the existing electric spindle bearings of CNC machine tools cannot guarantee stable operation, resulting in abnormal temperature rise of the electric spindle and damaging the bearing performance.

Method used

By constructing a simulated cutting script, the temperature rise data of the electric spindle is collected to form healthy data samples and real-time data samples, and the deviations between the two are compared. If the set threshold is exceeded, a fault warning is issued, prompting the detection of the temperature rise control device.

Benefits of technology

It realizes preventive detection of electric spindle bearings and early intervention in maintenance, avoiding high maintenance costs and maintenance cycles caused by bearing damage, reducing the failure rate and improving machine tool reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117943891B
    Figure CN117943891B
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and medium for detecting faults of electric spindle bearings of numerically controlled machine tools, which belongs to the technical field of intelligent detection of numerically controlled machine tools. The method steps are as follows: construct a simulation cutting script for the electric spindle of the numerically controlled machine tool in advance; when the electric spindle of the numerically controlled machine tool is in normal operation, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a healthy data sample; regularly perform electric spindle detection, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample; compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold, and when it exceeds, perform an electric spindle fault warning, prompting to perform temperature rise control device detection. The present invention realizes preventive detection of electric spindle high-speed bearings, reduces the failure rate of the electric spindle, and improves the reliability of the machine tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of intelligent detection of numerically controlled machine tools, and in particular relates to a method, device, equipment and medium for detecting faults of an electric spindle bearing of a numerically controlled machine tool. Background Art

[0002] CNC machine tools rely on electric spindles for high-speed cutting. With the development of electric spindles, CNC machine tools can even achieve high speeds of 10,000 revolutions. The electric spindle is a precision functional component with the highest degree of mechanical, electrical and hydraulic integration in CNC machine tools. When running at high speed, the friction of the bearings will generate a lot of heat. Therefore, high-speed rotation places high requirements on the heat dissipation of the electric spindle bearings.

[0003] The current electric spindle is equipped with a quantitative oil-gas lubrication device and a water cooling device to strictly control the temperature rise. However, the quality of the lubricating oil, the oil output and the air supply pressure will change with external factors during use, and the cooling water temperature and flow rate will also be variable during use. As a result, there is still a possibility that the temperature rise of the electric spindle is too high. Once an abnormal temperature rise occurs, it will cause irreversible damage to the bearings, seriously affecting the performance of the data machine tool.

[0004] In summary, CNC machine tools use electric spindles for high-speed cutting. As an important component of CNC machine tools, the stable performance of electric spindles is very important. Existing electric spindle bearings are equipped with quantitative oil and gas lubrication devices and water cooling devices for friction cooling during high-speed rotation, but the device for controlling temperature rise cannot guarantee stable operation, resulting in the possibility of abnormal temperature rise of the electric spindle, which will damage the electric spindle once the temperature rise is abnormal.

[0005] This is a shortcoming of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a method, device, equipment and medium for detecting faults of the electric spindle bearings of CNC machine tools. Summary of the invention

[0006] In view of the fact that the above-mentioned existing device for controlling temperature rise of the electric spindle in the prior art cannot ensure stable operation, resulting in the possibility of abnormal temperature rise of the electric spindle, and once the temperature rise is abnormal, the electric spindle will be damaged. The present invention provides a method, device, equipment and medium for detecting bearing faults of the electric spindle of a CNC machine tool to solve the above-mentioned technical problems.

[0007] In a first aspect, the present invention provides a method for detecting a fault in an electric spindle bearing of a CNC machine tool, comprising the following steps:

[0008] S1. Pre-build a simulation cutting script for the electric spindle of the CNC machine tool;

[0009] S2. When the electric spindle of the CNC machine tool is operating normally, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a healthy data sample;

[0010] S3. Regularly test the electric spindle of the CNC machine tool, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample;

[0011] S4. Compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold. If exceeded, issue an electric spindle fault warning and prompt the electric spindle temperature rise control device to be tested.

[0012] Furthermore, the specific steps of step S1 are as follows:

[0013] S11. Selecting the initial operating speed and acceleration time point for the electric spindle;

[0014] S12. Selecting the acceleration and the duration of each acceleration segment for each acceleration time point;

[0015] S13. Calculate the total operation time of the electric spindle according to the acceleration duration of each segment;

[0016] S14. Generate a simulation cutting script based on the initial operating speed of the electric spindle, the acceleration time point, the acceleration at each acceleration time point, the continuous acceleration time of each section, and the total operating time.

[0017] Furthermore, the specific steps of step S2 are as follows:

[0018] S21. Install a new electric spindle on the CNC machine tool and debug the electric spindle;

[0019] S22. The debugged electric spindle is run dry by executing the simulated cutting script according to the set number of times;

[0020] S23. Collect the bearing temperature value of the electric spindle during each execution of the simulated cutting script according to the sampling period, and save the bearing temperature value collected each time in the health database;

[0021] S24. Calculate the bearing temperature value deviation at the same sampling period point collected each time, take the deviation of each bearing temperature value as the normal data deviation and quantify it to obtain a healthy data sample.

[0022] Furthermore, the specific steps of step S23 are as follows:

[0023] S231. Set temperature sampling points at the front and rear ends of the electric spindle bearing;

[0024] S232. Pre-build a multi-dimensional array, the length of which is equal to the number of cycle points collected in each test;

[0025] S233. Collect the front temperature value and the rear temperature value of the electric spindle bearing during each execution of the simulated cutting script, save them in two multidimensional arrays respectively, and then save the two multidimensional arrays into the health database.

[0026] Furthermore, the specific steps of step S3 are as follows:

[0027] S31. Start the electric spindle test of the CNC machine tool according to the set test cycle;

[0028] S32. Execute the simulated cutting script to run the electric spindle idle;

[0029] S33. Collect the bearing temperature value of the electric spindle during the execution of the simulated cutting script according to the sampling period, and save the bearing temperature value collected each time in the current database as a real-time data sample.

[0030] Furthermore, the specific steps of step S33 are as follows:

[0031] S331. Collect the front temperature value and the rear temperature value of the electric spindle bearing during the execution of the simulation cutting script, and save them into two multidimensional arrays respectively;

[0032] S332. Check whether the existing data capacity has reached the total capacity of the current database;

[0033] If yes, go to step S334;

[0034] If not, proceed to step S333;

[0035] S333. Delete the multidimensional array with the longest storage time from the current database, and provide the released database space to the two multidimensional arrays currently collected;

[0036] S334. Save the two multidimensional arrays into the current database in a first-in-first-out manner to form real-time data samples.

[0037] Furthermore, the specific steps of step S4 are as follows:

[0038] S41. Compare the real-time data samples in the current database with the health data samples in the health database;

[0039] S42. Calculate the characteristic deviation of the temperature value of each sampling period point of each sampling point in the current database and the same sampling period point of the same sampling point in the health database;

[0040] S43. Determine whether the characteristic deviation exceeds the range of normal data deviation;

[0041] If yes, go to step S44;

[0042] If not, continue the electric spindle detection and return to step S3;

[0043] S44. Issue an electric spindle fault warning, output the sampling point temperature value, and remind to check the temperature rise control device at the sampling point.

[0044] Furthermore, in step S42, the average value of the bearing temperature values ​​collected at each sampling period point in the monitoring database is calculated, and the average value of the bearing temperature values ​​at each sampling period point is used as the standard temperature sequence;

[0045] The temperature value of each sampling period point of each sampling point in the current database is compared with the corresponding temperature value in the standard temperature sequence to calculate the characteristic deviation.

[0046] In a second aspect, the present invention provides a device for detecting a bearing fault of an electric spindle of a CNC machine tool, comprising:

[0047] A simulation cutting script building module is used to build a simulation cutting script for the electric spindle of a CNC machine tool in advance;

[0048] The health data collection module is used to start the simulation cutting script to collect the temperature rise data of the electric spindle to form a health data sample when the electric spindle of the CNC machine tool is operating normally;

[0049] The real-time data acquisition module is used to regularly detect the electric spindle of the CNC machine tool and start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample;

[0050] The electric spindle fault warning module is used to compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold. If it exceeds the threshold, an electric spindle fault warning is issued to prompt the electric spindle temperature rise control device to be tested.

[0051] Furthermore, the simulation cutting script building module includes:

[0052] An initial speed and time point setting unit is used to select the initial operating speed and acceleration time point for the electric spindle;

[0053] An acceleration setting unit, used to select the acceleration for each acceleration time point and the acceleration duration of each segment;

[0054] An operation time calculation unit, used for calculating the total operation time of the electric spindle according to the acceleration duration of each section;

[0055] The simulation cutting script generating unit is used to generate the simulation cutting script based on the initial operating speed, acceleration time point, acceleration at each acceleration time point, continuous acceleration time of each section and total operating time of the electric spindle.

[0056] Furthermore, the health data collection module includes:

[0057] The electric spindle installation and debugging unit is used to install a new electric spindle on a CNC machine tool and debug the electric spindle;

[0058] The first execution unit of simulated cutting is used to execute the simulated cutting script for the debugged electric spindle according to the set number of times to perform idle operation;

[0059] The reference health data acquisition unit is used to collect the bearing temperature value of the electric spindle during each execution of the simulated cutting script according to the sampling period, and save the bearing temperature value collected each time in the health database.

[0060] Furthermore, the real-time data acquisition module includes:

[0061] A detection start unit is used to start the electric spindle detection of the CNC machine tool according to the set detection cycle;

[0062] The second execution unit of simulated cutting is used to execute the simulated cutting script on the electric spindle to run idle;

[0063] The real-time data acquisition unit is used to collect the bearing temperature value of the electric spindle during the execution of the simulated cutting script according to the sampling period, and save the bearing temperature value collected each time in the current database as a real-time data sample.

[0064] Furthermore, the electric spindle fault warning module includes:

[0065] A data comparison unit, used for comparing the real-time data samples in the current database with the healthy data samples in the healthy database;

[0066] A characteristic deviation calculation unit, used to calculate the characteristic deviation between the temperature value of each sampling period point of each sampling point in the current database and the same sampling period point of the same sampling point in the healthy database;

[0067] A characteristic deviation judgment unit, used to judge whether the characteristic deviation exceeds the range of normal data deviation;

[0068] A continued detection unit is used to continue the electric spindle detection when the characteristic deviation does not exceed the range of normal data deviation;

[0069] The electric spindle fault warning unit is used to issue an electric spindle fault warning when the characteristic deviation exceeds the range of normal data deviation, output the sampling point temperature value, and remind to detect the temperature rise control device at the sampling point position.

[0070] In a third aspect, the present invention provides a computer device, comprising a processor and a memory;

[0071] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the method described in the first aspect above.

[0072] In a fourth aspect, the present invention provides a storage medium,

[0073] The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.

[0074] The beneficial effects of the present invention are:

[0075] The present invention provides a method, device, equipment and medium for detecting faults in the electric spindle bearings of numerically controlled machine tools. By periodically executing a simulated cutting script, the temperature rise characteristic data of the electric spindle bearings at the same rotation speed and the same operating time are compared and analyzed with the historical health data. By calculating the deviation of the characteristic data, it is determined whether the operating state of the electric spindle bearings is normal, thereby realizing preventive detection of the electric spindle high-speed bearings, and then performing early intervention and maintenance on the temperature control device, which can eliminate the fault factors that may cause damage to the electric spindle in the bud, avoid high maintenance costs and maintenance cycles caused by bearing damage, reduce the failure rate of the electric spindle, and improve the reliability of machine tools. It has good technical application prospects.

[0076] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.

[0077] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0079] Figure 1 It is a flow chart of an embodiment of a method for detecting a fault of an electric spindle bearing of a CNC machine tool according to the present invention.

[0080] Figure 2 It is a flow chart of another embodiment of the method for detecting faults of electric spindle bearings of CNC machine tools of the present invention.

[0081] Figure 3 It is a schematic diagram of a fault detection device for an electric spindle bearing of a CNC machine tool according to the present invention. DETAILED DESCRIPTION

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

[0083] Embodiment 1:

[0084] like Figure 1 As shown, the present invention provides a method for detecting a fault of an electric spindle bearing of a CNC machine tool, comprising the following steps:

[0085] S1. Pre-build a simulation cutting script for the electric spindle of the CNC machine tool;

[0086] S2. When the electric spindle of the CNC machine tool is operating normally, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a healthy data sample;

[0087] S3. Regularly test the electric spindle of the CNC machine tool, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample;

[0088] S4. Compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold. If exceeded, issue an electric spindle fault warning and prompt the electric spindle temperature rise control device to be tested.

[0089] Embodiment 2:

[0090] like Figure 2 As shown, the present invention provides a method for detecting a fault of an electric spindle bearing of a CNC machine tool, comprising the following steps:

[0091] S1. Pre-build a simulation cutting script for the electric spindle of the CNC machine tool; the specific steps of step S1 are as follows:

[0092] S11. Selecting the initial operating speed and acceleration time point for the electric spindle;

[0093] S12. Selecting the acceleration and the duration of each acceleration segment for each acceleration time point;

[0094] S13. Calculate the total operation time of the electric spindle according to the acceleration duration of each segment;

[0095] S14. Generate a simulation cutting script based on the initial operating speed, acceleration time point, acceleration at each acceleration time point, continuous acceleration time of each section, and total operating time of the electric spindle;

[0096] S2. When the electric spindle of the CNC machine tool is operating normally, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a healthy data sample; the specific steps of step S2 are as follows:

[0097] S21. Install a new electric spindle on the CNC machine tool and debug the electric spindle;

[0098] S22. The debugged electric spindle is run dry by executing the simulated cutting script according to the set number of times;

[0099] S23. Collect the bearing temperature value of the electric spindle during each execution of the simulated cutting script according to the sampling period, and save the bearing temperature value collected each time in the health database; the specific steps of step S23 are as follows:

[0100] S231. Set temperature sampling points at the front and rear ends of the electric spindle bearing;

[0101] S232. Pre-build a multi-dimensional array, the length of which is equal to the number of cycle points collected in each test;

[0102] S233. Collect the front temperature value and the rear temperature value of the electric spindle bearing during each simulation cutting script execution, save them in two multidimensional arrays, and then save the two multidimensional arrays in the health database;

[0103] S24. Calculate the bearing temperature value deviation of the same sampling period point collected each time, take the bearing temperature value deviation as the normal data deviation and quantify it to obtain a healthy data sample;

[0104] S3. Regularly test the electric spindle of the CNC machine tool, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample; the specific steps of step S3 are as follows:

[0105] S31. Start the electric spindle test of the CNC machine tool according to the set test cycle;

[0106] S32. Execute the simulated cutting script to run the electric spindle idle;

[0107] S33. Collect the bearing temperature value of the electric spindle during the execution of the simulation cutting script according to the sampling period, and save the bearing temperature value collected each time in the current database as a real-time data sample; the specific steps of step S33 are as follows:

[0108] S331. Collect the front temperature value and the rear temperature value of the electric spindle bearing during the execution of the simulation cutting script, and save them into two multidimensional arrays respectively;

[0109] S332. Check whether the existing data capacity has reached the total capacity of the current database;

[0110] If yes, go to step S334;

[0111] If not, proceed to step S333;

[0112] S333. Delete the multidimensional array with the longest storage time from the current database, and provide the released database space to the two multidimensional arrays currently collected;

[0113] S334. Save the two multidimensional arrays to the current database in a first-in-first-out manner to form a real-time data sample;

[0114] The current data collection and the healthy data collection use the same simulation cutting script to ensure that the acceleration curve, operating speed and duration of the electric spindle are the same;

[0115] S4. Compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold, and if it exceeds, issue an electric spindle fault warning and prompt the electric spindle temperature rise control device to be tested; the specific steps of step S4 are as follows:

[0116] S41. Compare the real-time data samples in the current database with the health data samples in the health database;

[0117] S42. Calculate the characteristic deviation of the temperature value of each sampling period point of each sampling point in the current database and the same sampling period point of the same sampling point in the health database;

[0118] In step S42, the average value of the bearing temperature values ​​collected at each sampling period point in the monitoring database is calculated, and the average value of the bearing temperature values ​​at each sampling period point is used as the standard temperature sequence;

[0119] Compare the temperature value of each sampling period point of each sampling point in the current database with the corresponding temperature value in the standard temperature sequence to calculate the characteristic deviation;

[0120] S43. Determine whether the characteristic deviation exceeds the range of normal data deviation;

[0121] If yes, go to step S44;

[0122] If not, continue the electric spindle detection and return to step S3;

[0123] S44. Issue an electric spindle fault warning, output the sampling point temperature value, and remind to check the temperature rise control device at the sampling point.

[0124] Embodiment 3:

[0125] like Figure 3 As shown, the present invention provides a device for detecting a fault of an electric spindle bearing of a numerically controlled machine tool, comprising:

[0126] The simulation cutting script building module is used to build the simulation cutting script for the electric spindle of the CNC machine tool in advance; the simulation cutting script building module includes:

[0127] An initial speed and time point setting unit is used to select the initial operating speed and acceleration time point for the electric spindle;

[0128] An acceleration setting unit, used to select the acceleration for each acceleration time point and the acceleration duration of each segment;

[0129] An operation time calculation unit, used for calculating the total operation time of the electric spindle according to the acceleration duration of each section;

[0130] A simulation cutting script generating unit is used to generate a simulation cutting script based on the initial operating speed, acceleration time point, acceleration at each acceleration time point, continuous acceleration time of each section and total operating time of the electric spindle;

[0131] The health data collection module is used to start the simulation cutting script to collect the temperature rise data of the electric spindle to form a health data sample when the electric spindle of the CNC machine tool is running normally; the health data collection module includes:

[0132] The electric spindle installation and debugging unit is used to install a new electric spindle on a CNC machine tool and debug the electric spindle;

[0133] The first execution unit of simulated cutting is used to execute the simulated cutting script for the debugged electric spindle according to the set number of times to perform idle operation;

[0134] A reference health data acquisition unit is used to acquire the bearing temperature value of the electric spindle during each execution of the simulated cutting script according to a sampling period, and save each acquired bearing temperature value in a health database;

[0135] The real-time data acquisition module is used to regularly detect the electric spindle of the CNC machine tool and start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample; the real-time data acquisition module includes:

[0136] A detection start unit is used to start the electric spindle detection of the CNC machine tool according to the set detection cycle;

[0137] The second execution unit of simulated cutting is used to execute the simulated cutting script on the electric spindle to run idle;

[0138] A real-time data acquisition unit is used to acquire the bearing temperature value of the electric spindle during the execution of the simulated cutting script according to a sampling period, and save each acquired bearing temperature value in a current database as a real-time data sample;

[0139] The electric spindle fault warning module is used to compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold. If it exceeds the threshold, the electric spindle fault warning is issued to prompt the electric spindle temperature rise control device to be tested; the electric spindle fault warning module includes:

[0140] A data comparison unit, used for comparing the real-time data samples in the current database with the healthy data samples in the healthy database;

[0141] A characteristic deviation calculation unit, used to calculate the characteristic deviation between the temperature value of each sampling period point of each sampling point in the current database and the same sampling period point of the same sampling point in the healthy database;

[0142] A characteristic deviation judgment unit, used to judge whether the characteristic deviation exceeds the range of normal data deviation;

[0143] A continued detection unit is used to continue the electric spindle detection when the characteristic deviation does not exceed the range of normal data deviation;

[0144] The electric spindle fault warning unit is used to issue an electric spindle fault warning when the characteristic deviation exceeds the range of normal data deviation, output the sampling point temperature value, and remind to detect the temperature rise control device at the sampling point position.

[0145] Embodiment 4:

[0146] The present invention provides a computer device, comprising a processor and a memory;

[0147] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the method described in Example 1 or Example 2.

[0148] Embodiment 5:

[0149] The present invention provides a storage medium.

[0150] The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in the above-mentioned embodiment 1 or embodiment 2.

[0151] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for detecting a bearing fault of an electric spindle of a CNC machine tool, characterized in that: The steps include: S1. Pre-build a simulation cutting script for the electric spindle of the CNC machine tool; the specific steps of step S1 are as follows: S11. Selecting the initial operating speed and acceleration time point for the electric spindle; S12. Selecting the acceleration and the duration of each acceleration segment for each acceleration time point; S13. Calculate the total operation time of the electric spindle according to the acceleration duration of each segment; S14. Generate a simulation cutting script based on the initial operating speed, acceleration time point, acceleration at each acceleration time point, continuous acceleration time of each section, and total operating time of the electric spindle; S2. When the electric spindle of the CNC machine tool is operating normally, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a healthy data sample; the specific steps of step S2 are as follows: S21. Install a new electric spindle on the CNC machine tool and debug the electric spindle; S22. The debugged electric spindle is run dry by executing the simulated cutting script according to the set number of times; S23. Collect the bearing temperature value of the electric spindle during each execution of the simulated cutting script according to the sampling period, and save the bearing temperature value collected each time in the health database; S24. Calculate the bearing temperature value deviation of the same sampling period point collected each time, take the bearing temperature value deviation as the normal data deviation and quantify it to obtain a healthy data sample; S3. Regularly test the electric spindle of the CNC machine tool, start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample; the specific steps of step S3 are as follows: S31. Start the electric spindle test of the CNC machine tool according to the set test cycle; S32. Execute the simulated cutting script to run the electric spindle idle; S33. Collect the bearing temperature value of the electric spindle during the execution of the simulation cutting script according to the sampling period, and save the bearing temperature value collected each time in the current database as a real-time data sample; S4. Compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold, and if it exceeds, issue an electric spindle fault warning and prompt the electric spindle temperature rise control device to be tested; the specific steps of step S4 are as follows: S41. Compare the real-time data samples in the current database with the health data samples in the health database; S42. Calculate the characteristic deviation of the temperature value of each sampling period point of each sampling point in the current database and the same sampling period point of the same sampling point in the health database; S43. Determine whether the characteristic deviation exceeds the range of normal data deviation; If yes, go to step S44; If not, continue the electric spindle detection and return to step S3; S44. Issue an electric spindle fault warning, output the sampling point temperature value, and remind to check the temperature rise control device at the sampling point.

2. The method for detecting a bearing fault of an electric spindle of a CNC machine tool according to claim 1, characterized in that: The specific steps of step S23 are as follows: S231. Set temperature sampling points at the front and rear ends of the electric spindle bearing; S232. Pre-build a multi-dimensional array, the length of which is equal to the number of cycle points collected in each test; S233. Collect the front temperature value and the rear temperature value of the electric spindle bearing during each execution of the simulated cutting script, save them in two multidimensional arrays respectively, and then save the two multidimensional arrays into the health database.

3. The method for detecting a bearing fault of an electric spindle of a CNC machine tool according to claim 2, wherein: The specific steps of step S33 are as follows: S331. Collect the front temperature value and the rear temperature value of the electric spindle bearing during the execution of the simulation cutting script, and save them into two multidimensional arrays respectively; S332. Check whether the existing data capacity has reached the total capacity of the current database; If yes, go to step S334; If not, proceed to step S333; S333. Delete the multidimensional array with the longest storage time from the current database, and provide the released database space to the two multidimensional arrays currently collected; S334. Save the two multidimensional arrays into the current database in a first-in-first-out manner to form real-time data samples.

4. A device for implementing the method for detecting a fault of an electric spindle bearing of a CNC machine tool according to any one of claims 1 to 3, characterized in that: include: A simulation cutting script building module is used to build a simulation cutting script for the electric spindle of a CNC machine tool in advance; The health data collection module is used to start the simulation cutting script to collect the temperature rise data of the electric spindle to form a health data sample when the electric spindle of the CNC machine tool is operating normally; The real-time data acquisition module is used to regularly detect the electric spindle of the CNC machine tool and start the simulation cutting script to collect the temperature rise data of the electric spindle to form a real-time data sample; The electric spindle fault warning module is used to compare the real-time data sample of the electric spindle with the healthy data sample to verify whether the deviation between the two exceeds the set threshold. If it exceeds the threshold, an electric spindle fault warning is issued to prompt the electric spindle temperature rise control device to be tested.

5. A computer device, characterized in that: including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the method described in any one of claims 1 to 3.

6. A storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 3.