Numerical control device, program, and medium stored with program

The numerical control device addresses the need for extensive testing in chatter vibration prediction by deriving and classifying frequencies, enhancing the accuracy of machine learning models for chatter detection without requiring numerous machining tests.

JP2024146245APending Publication Date: 2024-10-15BROTHER KOGYO KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023059029
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing methods require extensive testing to gather sufficient training data for accurate machine learning-based prediction of chatter vibrations, necessitating a large number of machining tests.

Method used

A numerical control device that acquires machining conditions and vibration data to derive chatter frequencies, classifies them into normal and abnormal frequencies, and generates learning data using machine learning, allowing accurate prediction without extensive testing.

Benefits of technology

Enables accurate prediction of chatter frequencies with reduced testing by deriving and classifying frequencies, improving the accuracy of machine learning models for chatter vibration detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024146245000001_ABST
    Figure 2024146245000001_ABST
Patent Text Reader

Abstract

To provide a numerical control device and a program, each enabling acquisition of learning data without performing a large amount of test, the learning data enabling the frequency of chatter vibration to be accurately predicted, and a medium stored with a program.SOLUTION: A numerical control device is configured to: acquire a machining condition to be used when performing cutting machining of a workpiece (S11); measure vibration data of a vibration generated according to relation between the machining condition and a mechanical structure of a machine tool (S15); derive a first frequency which is a frequency of a chatter vibration generated in the machine tool, on the basis of the vibration data (S19); determine a second frequency which is a frequency of a chatter vibration generated when the workpiece is cut under machining conditions different from the acquired machining conditions, on the basis of the first frequency (S27); generate learning data for subjecting a model for determining the chatter frequency to machine learning, on the basis of the first frequency and the second frequency (S28).SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a numerical control device, a program, and a medium storing the program. [Background technology]

[0002] Machine learning may be used to accurately identify the frequency of chatter vibrations that occur during the operation of a machine tool. Machine learning is used to predict and determine the frequency of chatter vibrations. For example, Patent Document 1 discloses a method for deriving prediction data for predicting the occurrence of chatter vibrations based on a pre-learning data set obtained by simulation and a final learned data set based on an experiment. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2021-166045 Summary of the Invention [Problem to be solved by the invention]

[0004] In order to perform machine learning and execute highly accurate predictions, a large amount of training data is required. To obtain a large amount of training data, a large amount of testing is usually required. For this reason, it is desirable to obtain training data that can execute highly accurate predictions without executing a large amount of testing.

[0005] An object of the present invention is to provide a numerical control device, a program, and a medium storing the program, which are capable of obtaining learning data capable of accurately predicting the frequency of chatter vibration without conducting a large amount of testing. [Means for solving the problem]

[0006] A numerical control device according to a first aspect of the present invention is characterized in that it comprises a first acquisition means for acquiring machining conditions when cutting a workpiece with a machine tool; a second acquisition means for acquiring vibration data of vibrations generated in the machine tool in accordance with a relationship between the machining conditions acquired by the first acquisition means and a mechanical structure of the machine tool; a derivation means for deriving a first frequency which is a frequency of chatter vibration generated in the machine tool based on the multiple vibration data acquired by the second acquisition means; a determination means for determining a second frequency which is a frequency of chatter vibration generated in the machine tool when the workpiece is cut under machining conditions different from the machining conditions acquired by the first acquisition means, based on the first frequency derived by the derivation means; and a generation means for generating learning data for obtaining by machine learning a model to be used when determining the frequency of chatter vibration of the machine tool, based on the machining conditions acquired by the first acquisition means, the first frequency measured by the derivation means, and the second frequency determined by the determination means.

[0007] In the first aspect, the numerical control device uses a second frequency determined based on the first frequency in addition to a first frequency derived based on measured vibration data to generate learning data used to obtain a model by machine learning. In this case, the numerical control device can obtain a model that can accurately determine the frequency of chatter vibration compared to a case in which learning data is generated using only the first frequency. In addition, the numerical control device can determine the second frequency without performing testing and generate learning data based on the first and second frequencies. Therefore, the numerical control device can generate learning data for obtaining a model that can accurately determine the frequency of chatter vibration by machine learning without performing a large amount of testing.

[0008] In a first aspect, the machining conditions may be at least one of a diameter of a tool that cuts the workpiece, a number of teeth of the tool, a length of the tool, a cutting depth of the tool, and a rotation speed of a spindle to which the tool is attached. The numerical control device can generate learning data for obtaining a model for determining a frequency of chatter vibration by machine learning when cutting is performed under various machining conditions.

[0009] In the first aspect, the numerical control device may further include a determination means for determining whether a chatter vibration frequency derived based on vibration data of vibration generated in the machine tool that machines the workpiece under specific machining conditions is correct or incorrect, using the model obtained by machine learning from the learning data generated by the generation means. The numerical control device can determine whether a derived result of the chatter vibration frequency generated in the machine tool is correct or incorrect, based on the model obtained by machine learning using the learning data.

[0010] In a first aspect, the numerical control device may include a classification means for classifying the first frequency derived by the derivation means into a first normal frequency which is a correct frequency of chatter vibration and a first abnormal frequency which is an incorrect frequency of chatter vibration, the determination means includes a first determination means for determining a second normal frequency which is a correct frequency of chatter vibration and a second determination means for determining a second abnormal frequency which is an incorrect frequency of chatter vibration, and the generation means may generate the learning data based on the machining conditions acquired by the first acquisition means, the first normal frequency and the first abnormal frequency classified by the classification means, and the second normal frequency and the second abnormal frequency determined by the determination means. In this case, the numerical control device can generate learning data for obtaining a model capable of determining whether a derived result of a chatter vibration frequency generated in a machine tool is correct or incorrect, based on the first normal frequency, the first abnormal frequency, the second normal frequency, and the second abnormal frequency.

[0011] In the present invention, the second determination means may determine, as the second abnormal frequency, a frequency obtained by modifying at least one of the first normal frequency and the second normal frequency based on a parameter calculated from a rotation speed of a spindle to which a tool for cutting the workpiece is attached. In this case, the numerical control device can improve accuracy in determining that the derived result of the chatter frequency is erroneous.

[0012] In a first aspect, the first determination means may calculate a damping ratio and a resonance frequency from the machining conditions and the first frequency, derive a relationship between a rotation speed of a spindle to which the tool is attached and a chatter vibration frequency based on the damping ratio and the resonance frequency, and determine the second normal frequency based on the relationship. In this case, the numerical control device can determine a frequency close to a chatter vibration frequency actually generated in a machine tool as the second normal frequency.

[0013] A program according to a second aspect of the present invention causes a computer to execute a first acquisition step of acquiring machining conditions when a workpiece is cut by a machine tool, a second acquisition step of acquiring vibration data of vibrations generated in the machine tool according to a relationship between the machining conditions acquired by the first acquisition step and a mechanical structure of the machine tool, a derivation step of deriving a first frequency that is a frequency of chatter vibration generated in the machine tool based on the multiple vibration data acquired by the second acquisition step, a determination step of determining a second frequency that is a frequency of chatter vibration generated in the machine tool when the workpiece is cut under machining conditions different from the machining conditions acquired by the first acquisition step based on the first frequency derived by the derivation step, and a generation step of generating learning data for obtaining a model used in determining a frequency of chatter vibration of the machine tool by machine learning based on the machining conditions acquired by the first acquisition step, the first frequency measured by the derivation step, and the second frequency determined by the determination step. According to the second aspect, the same effect as that of the first aspect is achieved.

[0014] A medium according to a third aspect of the present invention stores a program for causing a computer to execute a first acquisition step of acquiring machining conditions when a workpiece is cut by a machine tool, a second acquisition step of acquiring vibration data of vibrations generated in the machine tool according to a relationship between the machining conditions acquired by the first acquisition step and a mechanical structure of the machine tool, a derivation step of deriving a first frequency that is a frequency of chatter vibration generated in the machine tool based on the multiple vibration data acquired by the second acquisition step, a determination step of determining a second frequency that is a frequency of chatter vibration generated in the machine tool when the workpiece is cut under machining conditions different from the machining conditions acquired by the first acquisition step based on the first frequency derived by the derivation step, and a generation step of generating learning data for obtaining a model used in determining the frequency of chatter vibration of the machine tool by machine learning based on the machining conditions acquired by the first acquisition step, the first frequency measured by the derivation step, and the second frequency determined by the determination step. According to the third aspect, the same effect as that of the first aspect is achieved. [Brief description of the drawings]

[0015] [Figure 1] 2 is a block diagram showing the electrical configuration of the machine tool 1 and a numerical control device 29. FIG. [Diagram 2] 13 is a flowchart of a learning data generation process. [Diagram 3] 13 is a flowchart of a determination process. [Figure 4] FIG. 13 is a diagram illustrating a process for determining a first normal frequency and a first abnormal frequency. [Diagram 5] FIG. 4 is a diagram illustrating an example of a first normal frequency, a first abnormal frequency, and a second abnormal frequency. [Figure 6] FIG. 4 is a diagram illustrating an example of a first normal frequency, a first abnormal frequency, a second normal frequency, and a second abnormal frequency. [Figure 7] FIG. 13 is a schematic diagram illustrating an example of learning data. [Figure 8] 13 is a flowchart of a determination process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] <Configuration of machine tool 1> The configuration of machine tool 1 will be described with reference to Fig. 1. Machine tool 1 is a machine tool that performs cutting (e.g. drilling, tapping, side machining, etc.) on a workpiece held on the top surface of a table (not shown), for example, by moving a tool attached to a spindle extending in the Z-axis direction in the X-axis, Y-axis, and Z-axis directions. Note that the X-axis, Y-axis, and Z-axis directions of machine tool 1 correspond, as an example, to the left-right, front-back, and up-down directions of machine tool 1.

[0017] The machine tool 1 includes a spindle mechanism, a spindle movement mechanism, a tool changer, etc., which are not shown. The spindle mechanism includes a spindle motor 51, and rotates a spindle to which a tool is attached. The spindle movement mechanism includes a Z-axis motor 52, an X-axis motor 53, and a Y-axis motor 54. The spindle movement mechanism moves the spindle relatively in the directions of the X, Y and Z axes with respect to a workpiece supported on the upper surface of the table. The tool changer includes a magazine motor 55. The tool changer drives a tool magazine (not shown) that stores a plurality of tools, and replaces the tool attached to the spindle with another tool.

[0018] The electrical configuration of the machine tool 1 will be described. The machine tool 1 includes an operation panel 15, a numerical control device 29, drive circuits 51A-55A, a spindle motor 51, a Z-axis motor 52, an X-axis motor 53, a Y-axis motor 54, a magazine motor 55, and the like. The operation panel 15 is provided on a cover (not shown). The operation panel 15 includes an input unit 15A and a display unit 15B. The input unit 15A is used by a user to input settings for various operations and the like to the machine tool 1. The display unit 15B displays various setting screens for selecting a program, setting machining conditions, and the like. The user operates the input unit 15A while checking the display unit 15B to set various operations of the machine tool 1, machining conditions for cutting a workpiece, and the like.

[0019] Numerical control device 29 includes a CPU 31, a ROM 32, a RAM 33, a storage device 39, and an interface 35. CPU 31 is responsible for controlling machine tool 1. ROM 32 stores initial setting information and the like. RAM 33 temporarily stores various data and the like. Storage device 39 stores programs (NC programs, judgment programs) that perform each process described below, learning data and anomaly detection models described below. The NC program is a program created by the user in an NC language.

[0020] The program stored in storage device 39 may be stored in a readable external storage medium (USB memory, CD-ROM, etc.). CPU 31 may read the program from the storage medium and store it in storage device 39. Machine tool 1 may also be capable of communicating with other devices (servers, etc.) via a communication line. The program may be stored in a storage device of the other devices. CPU 31 may store in storage device 39 a program acquired by communicating with the other devices.

[0021] The input unit 15A and the display unit 15B are connected to the CPU 31 via the interface 35. The CPU 31 is connected to the drive circuits 51A to 55A via the interface 35. The drive circuits 51A to 55A are connected to the spindle motor 51, the Z-axis motor 52, the X-axis motor 53, the Y-axis motor 54, and the magazine motor 55, which are the objects to be controlled. The spindle motor 51, the Z-axis motor 52, the X-axis motor 53, the Y-axis motor 54, and the magazine motor 55 are equipped with encoders 51B to 55B.

[0022] The encoders 51B to 55B detect the rotational positions of the drive shafts of the spindle motor 51, the Z-axis motor 52, the X-axis motor 53, the Y-axis motor 54, and the magazine motor 55, and output the detection results to the drive circuits 51A to 55A. The CPU 31 can detect the rotational position of the spindle motor 51 based on the detection results of the rotational position of the encoder 51B by the drive circuit 51A. The CPU 31 can detect the coordinate values ​​of the X-, Y-, and Z-axes of the Z-axis motor 52, the X-axis motor 53, and the Y-axis motor 54 based on the detection results of the rotational positions of the encoders 52B to 54B by the drive circuits 52A to 54A. The coordinate values ​​of the X-, Y-, and Z-axes are position information of the spindle. The CPU 31 controls the drive circuits 51A to 54A based on the position information of the spindle, etc., to perform cutting of the workpiece.

[0023] <Functional Overview of Numerical Control Device 29> Chatter vibration is vibration that occurs due to the relationship between the machining conditions, compliance of the machine structure, and the workpiece when cutting a workpiece with machine tool 1. Note that the machine structure is a concept that includes not only the machine structure of machine tool 1 but also tools, workpiece, jigs, etc. When chatter vibration occurs, machine tool 1 vibrates periodically at a frequency (hereinafter referred to as chatter frequency) that corresponds to the vibration characteristics based on the machine structure of machine tool 1 and the machining conditions during cutting.

[0024] In response to this, the numerical control device 29 derives the chatter frequency based on data (hereinafter referred to as vibration data) detected in time series by the encoders 51B to 54B when the machine tool 1 cuts the workpiece and the machining conditions during the cutting process. More specifically, the numerical control device 29 calculates the difference between the position information of the encoders 51B to 54B and the command position information of the NC program in time series and acquires it as vibration data. The numerical control device 29 derives the chatter frequency based on the acquired vibration data of each axis. The numerical control device 29 judges whether the derived chatter frequency is correct or incorrect using an anomaly detection model. The anomaly detection model is a machine learning model obtained by machine learning using learning data. When the machining conditions of the cutting process and the chatter frequency are input, the anomaly detection model outputs a judgment result indicating whether the input chatter frequency is correct or incorrect. This allows, for example, the user to implement measures for suppressing chatter vibration in the machine tool 1 based on the chatter frequency determined to be correct by the anomaly detection model.

[0025] In order to improve the accuracy of the determination of the correctness of the chatter frequency using the anomaly detection model, it is preferable that a large amount of learning data is used in the process of obtaining the anomaly detection model by machine learning. However, the learning data usually requires vibration data detected in time series by the encoders 51B to 54B during a machining test. Since the machining test is performed by driving the machine tool 1 to cut the workpiece, a large amount of machining tests is required to generate a large amount of learning data. In contrast, the numerical control device 29 can generate learning data without the need for a large amount of machining tests by executing the learning data generation process described below.

[0026] <Learning data generation process> The learning data generation process will be described with reference to Figures 2 and 3. When an instruction to start generating learning data is input via the input unit 15A, the CPU 31 of the numerical control device 29 reads out and executes a machining test program stored in the storage device 39, thereby starting the learning data generation process.

[0027] The CPU 31 acquires the machining conditions for the first machining test based on the read machining test program (S11). The machining conditions are the diameter of the tool, the number of teeth of the tool, the length of the tool in the Z-axis direction, the cutting depth of the tool in the X-axis and Y-axis directions during cutting, the cutting depth of the tool in the Z-axis direction during cutting, and the rotation speed of the spindle. The cutting depth of the tool in the Z-axis direction corresponds to the cutting depth of the tool in the axial direction. The cutting depth of the tool in the X-axis and Y-axis directions corresponds to the cutting depth of the tool in the radial direction. The machining conditions excluding the rotation speed of the spindle are particularly called common machining conditions. The rotation speed of the spindle is changed every time a machining test is performed. FIG. 4(A) shows an example of the acquired machining conditions.

[0028] As shown in FIG. 2, the CPU 31 drives the spindle mechanism, the spindle moving mechanism, and the tool changer based on the read machining test program. As a result, the CPU 31 starts the machining test under the machining conditions acquired by the process of S11 (S13). The CPU 31 repeatedly acquires vibration data detected by the encoders 51B to 54B during the machining test at a cycle of 2 msec (S15). The CPU 31 stores the acquired multiple vibration data in the storage device 39. When the CPU 31 has acquired vibration data continuously for a predetermined time T (for example, 1 sec), it ends the machining test started in S13. Note that the acquisition cycle of the vibration data detected by the encoders 51B to 54B is not limited to the above value, and may be another value (for example, 0.5 msec).

[0029] The CPU 31 determines whether the machining test executed by the processes of S11 to S15 has been repeated a predetermined number of times k or more (S17). The predetermined number of times k is a preset integer of 2 or more. In the example of the machining condition shown in FIG. 4(A), the predetermined number of times k is 4. As shown in FIG. 2, if the number of machining tests is less than the predetermined number of times k (S17: NO), the CPU 31 returns the process to S11.

[0030] The CPU 31 acquires the machining conditions for the second machining test based on the machining test program (S11). In the acquired machining conditions, only the spindle rotation speed is changed from the machining conditions in the machining tests already performed. In an example of the machining conditions shown in FIG. 4(A), the spindle rotation speed is set as follows: 1st time: 3000 rpm, 2nd time: 4000 rpm, 3rd time: 5000 rpm, and 4th time: 5500 rpm. As shown in FIG. 2, the CPU 31 starts the machining test under the machining conditions acquired by the process of S11, as in the first time, and repeatedly acquires vibration data in two periods for a predetermined time T (S13, S15) and stores it in the storage device 39. Thereafter, the processes of S11 to S15 are repeated until the number of times the machining test is performed reaches a predetermined number k.

[0031] When the machining test has been performed a predetermined number k of times, the vibration data acquired by performing the machining test under machining conditions with different spindle rotation speeds is stored in the memory device 39. The vibration data stored in the memory device 39 is a plurality of pieces of vibration data for each machining condition. The CPU 31 determines that the machining test has been repeatedly performed a predetermined number k of times by the process of S15 (S17: YES). The CPU 31 advances the process to S19.

[0032] The CPU 31 derives the chatter frequency of the chatter vibration for each machining test based on the multiple vibration data stored in the storage device 39 (S19). An example of a method for deriving the chatter frequency is as follows. The CPU 31 calculates the frequency characteristics of the multiple acquired vibration data using Fourier transform or the like. The CPU 31 extracts a frequency with the largest vibration amplitude based on the calculated frequency characteristics. If the rotation frequency of the tool (rotation speed divided by 60) and the passing frequency of the cutting edge of the tool are not synchronized with the extracted frequency, the CPU 31 derives the extracted frequency as the chatter frequency. Hereinafter, the chatter frequency derived by the process of S19 is also referred to as the first frequency. The CPU 31 stores the derived first frequency in the storage device 39 in association with the corresponding rotation speed of the spindle.

[0033] For example, 120 Hz is derived as the first frequency when the rotation speed of the spindle is 3000 rpm (first time, see FIG. 4A), 135 Hz is derived as the first frequency when the rotation speed of the spindle is 4000 rpm (second time, see FIG. 4A), 150 Hz is derived as the first frequency when the rotation speed of the spindle is 5000 rpm (third time, see FIG. 4A), and 50 Hz is derived as the first frequency when the rotation speed of the spindle is 5500 rpm (fourth time, see FIG. 4A). As shown in FIG. 4B, the derived first frequencies (120 Hz, 135 Hz, 150 Hz, 50 Hz) are stored in the storage device 39 in association with the corresponding rotation speeds of the spindle (3000 rpm, 4000 rpm, 5000 rpm, 5500 rpm, etc.).

[0034] As shown in FIG. 2, the CPU 31 classifies the first frequency derived by the process of S19 into a correct chatter frequency and an erroneous chatter frequency (S21). For example, in an example shown in FIG. 4(B), the first frequency 50 Hz derived based on the vibration data acquired during the fourth machining test is significantly different from the first frequencies 120 Hz, 135 Hz, and 150 Hz derived based on the vibration data acquired during the first to third machining tests. In such a case, as shown in FIG. 4(C), the CPU 31 classifies the first frequencies 120 Hz, 135 Hz, and 150 Hz derived based on the vibration data acquired during the first to third machining tests as correct chatter frequencies (also referred to as first normal frequencies). On the other hand, the CPU 31 classifies the first frequency 50 Hz derived based on the vibration data acquired during the fourth machining test as an erroneous chatter frequency (also referred to as first abnormal frequency). The CPU 31 associates the classified first normal frequency and first abnormal frequency with the corresponding spindle rotation speed, and stores them in the memory device 39 for each common machining condition (tool diameter, tool blade number, tool length in the Z-axis direction, tool radial cutting depth, and tool axial cutting depth) (see FIGS. 5(A) and (B)).

[0035] A first example of a specific method of the process of S21 is as follows. For example, the CPU 31 derives a plurality of relationships between the rotation speed and the chatter frequency using a specific first frequency (for example, a first frequency derived based on vibration data acquired in a first machining test) and each of the other first frequencies other than the first frequency (for example, each of a plurality of first frequencies derived based on vibration data acquired in a second, third, ... machining test). Next, the CPU 31 applies the rotation speed during the machining test that was not used in the derivation to the derived plurality of relationships, and calculates the chatter frequency for each rotation speed. Next, the CPU 31 selects a relationship between the rotation speed and the chatter frequency that is most similar between the chatter frequency calculated based on the derived plurality of relationships and the chatter frequency derived based on the vibration data. Note that, for example, the rotation frequency (rotation speed÷60) is used as a threshold value for determining whether or not they are approximate. Next, the rotation speed during the machining test that was not used when the selected relationship was derived is applied to the selected relationship between the rotation speed and the chatter frequency, and calculates the chatter frequency. The chatter frequency calculated based on the selected relationship is compared with the chatter frequency derived based on the vibration data, and any chatter frequency that is not approximate is classified as an abnormal chatter frequency. Note that, for example, the rotation frequency (rotation speed divided by 60) is used as a threshold value for determining whether or not the two frequencies are approximate.

[0036] A second example of a specific method for the process of S21 is a method using the technique disclosed in JP 2012-200848 A. In this technique, first, a phase is calculated from specific machining conditions, a rotation speed, and a chatter frequency. Next, based on the calculated phase, a combination of the rotation speed and the chatter frequency is converted into a combination of the chatter frequency and the phase. Next, based on the relationship between the chatter frequency and the phase, a first abnormal frequency is classified from the first frequency by outlier detection using LOF (Local Outlier Factor).

[0037] As shown in FIG. 2, after classifying the first frequencies by the process of S21, the CPU 31 judges whether there are two or more first normal frequencies classified as correct first frequencies (S23). If the CPU 31 judges that there is one first normal frequency (S23: NO), it changes the machining conditions acquired in S11 (S24) and returns the process to S11. The only machining condition to be changed is the rotation speed of the spindle, and the common machining conditions are not changed. The CPU 31 acquires the changed machining conditions (S11) and repeats the machining test again from the first time. If the CPU 31 judges that there are two or more first normal frequencies (S23: YES), it advances the process to S25.

[0038] The CPU 31 judges whether the machining tests with different common machining conditions have been performed a predetermined number of times j times through the processes of S11 to S21 (S25). The predetermined number of times j is a preset integer of 2 or more. If the number of times that the machining tests with different common machining conditions have been performed is less than j times (S25: NO), the CPU 31 changes the common machining conditions among the machining conditions acquired in S11 (S26) and returns the process to S11. In this case, the CPU 31 acquires machining conditions including the changed common machining conditions (S11) and repeats the machining test from the first time again. If the number of times that the machining tests with different common machining conditions have been performed is j times (S25: YES), the CPU 31 executes a determination process (see FIG. 3) to determine a second frequency (second normal frequency or second abnormal frequency) described later for each common machining condition (S27). That is, under mutually different common machining conditions, the rotation speed of the spindle is changed to acquire vibration data, and two or more first normal frequencies are acquired based on the vibration data.

[0039] The determination process will be described with reference to FIG. 3. The CPU 31 selects one of the j common machining conditions, and acquires the first frequency corresponding to the selected common machining condition for a predetermined number of times k from the storage device 39. The CPU 31 extracts a plurality of first normal frequencies classified as correct chatter frequencies by the process of S21 (see FIG. 2) from the acquired first frequencies. The CPU 31 calculates the damping ratio and the resonance frequency of the vibration system of the machine tool 1 based on the common machining condition among the machining conditions acquired by the process of S11 (see FIG. 2), the extracted plurality of first normal frequencies, and the rotation speed of the spindle corresponding to each first normal frequency (S51). Here, the vibration system includes not only the vibration system of the machine tool 1, but also vibration systems of a tool attached to the spindle, a workpiece held on a table, a jig, and the like. The predetermined number of times k may be changed for each common machining condition.

[0040] For example, if it is determined that there is only one first normal frequency (S23: NO, see FIG. 2), a machining test under the changed machining conditions may not be performed, and instead, hypothetical values ​​may be used as the damping ratio and resonant frequency calculated by the processing of S51.

[0041] The CPU 31 executes a stability limit analysis based on the calculated damping ratio and resonance frequency of the chatter vibration. The stability limit analysis provides data that allows a stability limit diagram to be plotted. Details of the stability limit analysis method are disclosed in Eiji Shamoto, "Technical Commentary: Mechanism of Chatter Vibration Generation and Suppression in Cutting," Denki Seiko, Vol. 82, No. 2, 2011, pp. 143-155. The CPU 31 derives (S53) the relationship between the spindle rotation speed and the chatter frequency shown in the stability limit diagram as the relationship between the spindle rotation speed and the chatter frequency when the machine tool 1 performs cutting under the common machining conditions acquired in the process of S11 (see FIG. 2).

[0042] CPU 31 determines n correct chatter frequencies corresponding to n rotation speeds (n is any integer equal to or greater than 1) other than the spindle rotation speeds corresponding to each first normal frequency, based on the relationship derived by the process of S53, more specifically, the relationship between the spindle rotation speed and the chatter frequency shown in the stability limit diagram (S55). Hereinafter, the chatter frequency determined by the process of S55 is referred to as the second normal frequency. CPU 31 stores the determined n second normal frequencies in storage device 39 in association with the corresponding spindle rotation speeds.

[0043] For example, as shown in Fig. 4(C), when the first normal frequencies of 120Hz (3000rpm), 135Hz (4000rpm), and 150Hz (5000rpm) are classified as correct chatter frequencies, the second normal frequencies of 100Hz, 125Hz, 140Hz, 145Hz, 155Hz, and 160Hz are determined as correct chatter frequencies when the spindle is rotated at rotational speeds of 2000rpm, 3500rpm, 6000rpm, 7000rpm, 8000rpm, and 9000rpm, respectively, excluding 3000rpm, 4000rpm, and 5000rpm. In this case, n is 6. As shown in FIG. 5(A), the determined second normal frequencies (100 Hz, 125 Hz, 140 Hz, 145 Hz, 155 Hz, 160 Hz) are stored in memory device 39 in association with the corresponding spindle rotation speeds (2000 rpm, 3500 rpm, 6000 rpm, 7000 rpm, 8000 rpm, 9000 rpm).

[0044] As shown in Fig. 3, next, CPU 31 selects m second normal frequencies (m is any integer equal to or less than n) from the determined n second normal frequencies (S57). CPU 31 determines m erroneous chatter frequencies (hereinafter, second abnormal frequencies) by applying a parameter according to the rotation speed of the spindle to the selected second normal frequencies (S59). CPU 31 stores the determined second abnormal frequencies in storage device 39 in association with the corresponding rotation speed of the spindle. Hereinafter, the second normal frequencies and the second abnormal frequencies are collectively referred to as second frequencies.

[0045] The method of determining the second abnormal frequency is as follows. In the following, a specific example will be described in which 140 Hz (6000 rpm) and 155 Hz (8000 rpm) are selected from the second normal frequencies shown in Fig. 5(A). In this case, m is 2.

[0046] The CPU 31 calculates a candidate for the second abnormal frequency by applying the following formula (1) to each of the two selected second normal frequencies. The second normal frequency is represented as fc (Hz), the rotation speed of the spindle as v (rpm), the variable as i, and the calculated second abnormal frequency as f[x] (Hz). The variable i is any integer, the number of teeth, or a multiple of the number of teeth. x is an integer equal to or greater than 1. v / 60 corresponds to the rotation frequency (Hz) of the spindle. f[x] = |fc±v / 60×i| (1)

[0047] For example, based on 140 Hz selected as the second normal frequency, the second abnormal frequency f[x] is calculated as follows: f[1] = |140 + 6000 / 60 × 1| = 40 (Hz) f[2] = |140-6000 / 60×1| = 240(Hz) f[3] = |140 + 6000 / 60 × 2| = 60 (Hz) f[4] = |140-6000 / 60×2| = 340(Hz) f[5] = |140 + 6000 / 60 × 4| = 260 (Hz) f[6] = |140-6000 / 60×4| = 540(Hz)

[0048] Next, the CPU 31 randomly selects one of the calculated second abnormal frequency candidates (f[1] to f[6]) and determines it as the second abnormal frequency. For example, when f[2] is selected, the CPU 31 stores the determined second abnormal frequency of 240 Hz in the storage device 39 in association with the spindle rotation speed of 6000 rpm, as shown in FIG. 6(B). Furthermore, the CPU 31 may delete the second normal frequency of 140 Hz referred to when determining the second abnormal frequency of 240 Hz, and the spindle rotation speed of 6000 rpm associated with the second normal frequency of 140 Hz, from the second normal frequencies stored in the storage device 39 (see FIG. 6(A)).

[0049] The CPU 31 determines the second abnormal frequency 688.3 Hz based on the selected second normal frequency 155 Hz in the same manner as above. The CPU 31 stores the determined second abnormal frequency 688.3 Hz in the storage device 39 in association with the spindle rotation speed of 8000 rpm (see FIG. 6(B)). The CPU 31 may also delete the second normal frequency 155 Hz referred to when determining the second abnormal frequency 688.3 Hz and the spindle rotation speed of 8000 rpm associated with the second normal frequency 155 Hz from the second normal frequencies stored in the storage device 39 (see FIG. 6(A)).

[0050] As shown in FIG. 3, after determining m second abnormal frequencies by the processing of S59, the CPU 31 selects N frequencies from the first normal frequencies and the (nm) second normal frequencies stored in the storage device 39, and also selects M frequencies from the m second normal frequencies stored in the storage device 39 (S61).

[0051] The CPU 31 selects all j common processing conditions and determines whether the processes of S51 to S61 have been performed for the first frequency a predetermined number k of times corresponding to the selected common processing conditions (S63). If there are unselected common processing conditions (S63: NO), the CPU 31 next selects one of the unselected common processing conditions and returns to S51 to repeat the process. If the CPU 31 determines that all j common processing conditions have been selected and the processes of S51 to S61 have been performed for the first frequency a predetermined number k of times corresponding to the selected common processing conditions (S63: YES), the CPU 31 ends the determination process and returns the process to the learning data creation process (see FIG. 2).

[0052] As shown in Fig. 2, the CPU 31 generates learning data (S28) based on the N correct chatter frequencies and the M erroneous chatter frequencies selected for each common machining condition by the process of S61 (see Fig. 3) of the determination process and the common machining conditions among the machining conditions acquired by the process of S11. The generated learning data is data for obtaining an anomaly detection model by machine learning. Fig. 7 shows an example of the generated learning data. The learning data includes explanatory variables and objective variables. As explanatory variables, the rotation speed and the chatter frequency are stored for each common machining condition. As objective variables, flag information indicating whether the corresponding chatter frequency is correct or incorrect is stored.

[0053] 2, the CPU 31 uses the generated learning data to execute machine learning of the anomaly detection model stored in the storage device 39 (S29). The CPU 31 ends the learning data generation process.

[0054] <Determination process> The determination process will be described with reference to Fig. 8. When an instruction to start the determination of the chatter frequency is input via the input unit 15A, the CPU 31 of the numerical control device 29 reads out and executes a determination program stored in the storage device 39, thereby starting the determination process.

[0055] Based on the read-out judgment program, the CPU 31 acquires the machining conditions during cutting of the workpiece (S71). Based on the read-out judgment program, the CPU 31 drives the spindle mechanism, the spindle movement mechanism, and the tool changer, and performs cutting of the workpiece under the machining conditions acquired by the processing of S71 (S73). The CPU 31 acquires vibration data detected by the encoders 51B to 54B during cutting (S75). The CPU 31 stores the acquired vibration data in the storage device 39.

[0056] The CPU 31 derives the chatter frequency based on the vibration data stored in the storage device 39 in a manner similar to the process of S19 (see FIG. 2) (S77).

[0057] The CPU 31 inputs the machining conditions acquired by the process of S71 and the chatter frequency derived by the process of S77 to the anomaly detection model stored in the storage device 39 (S79). The anomaly detection model outputs a determination result indicating whether the input chatter frequency is correct or incorrect. The CPU 31 acquires the determination result output from the anomaly detection model.

[0058] When the CPU 31 determines based on the acquired judgment result that the chatter frequency derived by the process of S77 is correct (S81: YES), it causes the display unit 15B to display normal notification information for notifying that the chatter frequency is correct together with the derived chatter frequency (S83). The CPU 31 ends the judgment process. When the CPU 31 determines based on the acquired judgment result that the chatter frequency derived by the process of S77 is incorrect (S81: NO), it causes the display unit 15B to display abnormal notification information for notifying that the derived chatter frequency is incorrect (S85). The CPU 31 ends the judgment process.

[0059] <Actions and Effects of the Present Embodiment> The numerical control device 29 generates learning data (S28) used to obtain an anomaly detection model by machine learning using a first frequency (S19) derived based on vibration data detected by the encoders 51B to 54B, and a second frequency (S27) determined by a determination process based on the first frequency. In this case, the numerical control device 29 can obtain an anomaly detection model that can accurately determine whether the derived result of the chatter frequency is correct, compared to a case in which learning data is generated using only the first frequency. In addition, the numerical control device 29 determines the second frequency without the need to measure vibration data by performing a machining test, and generates learning data based on the first frequency and the second frequency. Therefore, the numerical control device 29 can generate learning data for obtaining an anomaly detection model by machine learning that can accurately determine the chatter frequency, without the need to perform a large amount of machining tests.

[0060] The machining conditions acquired in the process of S11 include the diameter of the tool, the number of teeth of the tool, the axial cutting depth of the tool, the radial cutting depth of the tool, and the rotation speed of the spindle. In this case, the anomaly detection model obtained by machine learning using the learning data generated by the numerical control device 29 can determine the chatter frequency of chatter vibrations that occur when cutting is performed under various machining conditions. Therefore, the numerical control device 29 can generate learning data to be used for the machine learning of such an anomaly detection model.

[0061] Numerical control device 29 judges whether the chatter frequency derived based on the physical model of machine tool 1 is correct or incorrect, using an abnormality detection model obtained by machine learning from the generated learning data (S81). Numerical control device 29 can accurately judge whether the derived result of the chatter frequency of chatter vibration occurring in machine tool 1 is correct or incorrect, based on the abnormality detection model obtained by machine learning using the learning data.

[0062] The numerical control device 29 classifies the first frequency derived by the process of S19 into a correct chatter frequency (first normal frequency) and an erroneous chatter frequency (first abnormal frequency) (S21). The numerical control device 29 determines a second normal frequency based on the first normal frequency (S57), and determines a second abnormal frequency based on the determined second normal frequency (S59). The numerical control device 29 generates learning data for obtaining an anomaly detection model by machine learning based on the first normal frequency, the first abnormal frequency, the second normal frequency, and the second abnormal frequency. In this case, the anomaly detection model obtained by machine learning using the learning data generated by the numerical control device 29 can determine whether the chatter frequency is correct. Therefore, the numerical control device 29 can generate learning data used for machine learning of such an anomaly detection model.

[0063] The numerical control device 29 calculates a candidate for the second abnormal frequency by substituting the second normal frequency into formula (1). The chatter frequency is modulated by the rotation frequency of the tool or the passing frequency of the cutting edge of the tool (rotation frequency x number of teeth). Therefore, the frequency calculated by formula (1) is likely to be close to the chatter frequency output as an erroneous derivation result. Therefore, the numerical control device 29 can improve the judgment accuracy of the anomaly detection model obtained by machine learning using the generated learning data.

[0064] The numerical controller 29 calculates the damping ratio and the resonant frequency from the machining conditions and the first normal frequency. The numerical controller 29 derives a stability limit diagram showing the relationship between the rotation speed of the spindle and the chatter frequency based on the damping ratio and the resonant frequency. The numerical controller 29 determines the second normal frequency based on the derived stability limit diagram (S55). In this case, the numerical controller 29 can determine a frequency close to the chatter frequency of chatter vibration actually generated in the machine tool 1 as the second normal frequency.

[0065] <Modification> The present invention is not limited to the above embodiment, and various modifications are possible. In the above, it is assumed that the learning data generation process and the judgment process are executed by the CPU 31 of the numerical control device 29, but the present invention is not limited to this. For example, at least one of the learning data generation process and the judgment process may be executed by a PC having a storage device storing a program. For example, the learning data may be created by the PC, and then the created learning data may be transmitted from the PC to the numerical control device 29 via an interface such as a USB. The numerical control device 29 may execute the judgment process based on the learning data received from the PC. When the judgment process is executed by the PC, the judgment result may be displayed on a display connected to the PC. Also, for example, the learning data generated by the numerical control device 29 may be transmitted from the numerical control device 29 to the PC via an interface such as a USB. The PC may execute the judgment process based on the learning data received from the numerical control device 29.

[0066] The learning data generation process may generate learning data based on vibration data detected by encoders 51B-54B while machine tool 1 is operating in a manner other than a machining test. For example, numerical control device 29 may generate learning data based on vibration data detected by encoders 51B-54B during a hammering test of machine tool 1.

[0067] An acceleration sensor may be provided in the spindle mechanism. The acceleration sensor may measure vibrations occurring in the machine tool 1. Numerical control device 29 may obtain acceleration data measured by the acceleration sensor as vibration data.

[0068] The machining conditions do not have to include all of the tool diameter, the number of tool teeth, the axial cut amount of the tool, the radial cut amount of the tool, and the spindle rotation speed, but may include at least one of the tool diameter, the number of tool teeth, the axial cut amount of the tool, the radial cut amount of the tool, and the spindle rotation speed. The machining conditions may further include conditions other than the tool diameter, the number of tool teeth, the axial cut amount of the tool, the radial cut amount of the tool, and the spindle rotation speed (e.g., feed rate, machining time, information on the workpiece, etc.).

[0069] The model obtained by machine learning using the generated learning data is not limited to the anomaly detection model. For example, the numerical control device 29 may use the generated learning data to machine-learn a derivation model capable of directly deriving a chatter frequency based on the vibration data measured by the encoders 51B to 54B.

[0070] The method of classifying the chatter frequency in the process of S21 is not limited to the above method. For example, the numerical control device 29 may classify the chatter frequency based on the calculation results of the rotation speed, chatter frequency, and number of teeth of the spindle. In this case, for example, the numerical control device 29 may multiply the chatter frequency by 60, divide the result by the rotation speed and the number of teeth, and classify it as a correct chatter frequency (first normal frequency) if the decimal part of the result is a value within a predetermined range. Also, for example, the numerical control device 29 may multiply the chatter frequency by 60, divide the result by the rotation speed and the number of teeth, and classify it as an incorrect chatter frequency (first abnormal frequency) if the decimal part of the result is a value outside the predetermined range.

[0071] The numerical control device 29 may generate the learning data based only on the first normal frequency and the second normal frequency, or may generate the learning data based only on the first abnormal frequency and the second abnormal frequency. The numerical control device 29 may generate the learning model using all of the first frequency derived by the process of S19 and the second frequency determined by the process of S27, or may generate the learning model using only a part of the first frequency and the second frequency.

[0072] The number of second normal frequencies determined by the process of S55 is not limited to the above embodiment. For example, the numerical control device 29 may determine the rotational speeds between 1 rpm and the maximum rotational speed at which the spindle can rotate in increments of 1 rpm, and determine the second normal frequencies corresponding to each of the determined rotational speeds based on the stability limit diagram derived by the process of S53. The method of deriving the normal chatter frequency (second frequency) by the process of S55 is not limited to the above embodiment.

[0073] The method of determining the second abnormal frequency from the second normal frequency is not limited to the above embodiment. The variable i in formula (1) may be a value of 3 or 5 or more. The numerical control device 29 may generate learning data using all the second abnormal frequencies calculated based on formula (1). The numerical control device 29 may determine the second abnormal frequency using a formula other than formula (1).

[0074] The numerical control device 29 may determine the second abnormal frequency by substituting the first normal frequency into formula (1). The numerical control device 29 may determine the second abnormal frequency by substituting both the first normal frequency and the second normal frequency into formula (1). The numerical control device 29 may determine the second abnormal frequency by applying a formula other than formula (1) based on the first abnormal frequency.

[0075] The processes from S11 to S15 and S71 to S75 may be configured to execute an NC program to acquire vibration data in advance.

[0076] <Other> The CPU 31 performing the process of S11 is an example of the first acquisition means of the present invention. The CPU 31 performing the process of S15 is an example of the second acquisition means of the present invention. The CPU 31 performing the process of S19 is an example of the derivation means of the present invention. The CPU 31 performing the process of S27 is an example of the decision means of the present invention. The CPU 31 performing the process of S28 is an example of the generation means of the present invention. The CPU 31 performing the process of S81 is an example of the judgment means of the present invention. The CPU 31 performing the process of S21 is an example of the classification means of the present invention. The CPU 31 performing the process of S55 is an example of the first decision means of the present invention. The CPU 31 performing the process of S59 is an example of the second decision means of the present invention. The process of S11 is an example of the first acquisition step of the present invention. The process of S15 is an example of the second acquisition step of the present invention. The process of S19 is an example of the derivation step of the present invention. The process of S27 is an example of the decision step of the present invention. The process of S28 is an example of the generation step of the present invention. [Explanation of symbols]

[0077] 1: Machine tool 29: Numerical control device 31 :CPU 51B~54B: Encoder

Claims

1. A first acquisition means for acquiring machining conditions when cutting a workpiece by a machine tool; a second acquisition means for acquiring vibration data of vibrations generated in the machine tool according to a relationship between the machining conditions acquired by the first acquisition means and a mechanical structure of the machine tool; a derivation means for deriving a first frequency which is a frequency of chatter vibration occurring in the machine tool based on the plurality of vibration data acquired by the second acquisition means; a determining means for determining a second frequency, which is a frequency of chatter vibration occurring in relation to compliance of the machine structure when the workpiece is cut under machining conditions different from the machining conditions acquired by the first acquiring means, based on the first frequency derived by the derivation means; a generation means for generating learning data for obtaining, by machine learning, a model used when determining a frequency of chatter vibration of the machine tool, based on the machining conditions acquired by the first acquisition means, the first frequency measured by the derivation means, and the second frequency determined by the determination means; A numerical control device comprising:

2. The processing conditions are:

2. The numerical control device according to claim 1, characterized in that at least one of the diameter of a tool used to cut the workpiece, the number of teeth of the tool, the length of the tool, the cutting depth of the tool, and the rotational speed of a spindle to which the tool is attached is selected.

3. 2. The numerical control device according to claim 1, further comprising a determination means for determining whether a chatter vibration frequency derived based on vibration data of vibrations generated in the machine tool that machines the workpiece under specific machining conditions is correct or incorrect, using the model obtained by machine learning from the learning data generated by the generation means.

4. a classification means for classifying the first frequency derived by the derivation means into a first normal frequency which is a correct frequency of chatter vibration and a first abnormal frequency which is an erroneous frequency of chatter vibration, The determining means is a first determining means for determining a second normal frequency which is a correct frequency of chatter vibration; A second determination means for determining a second abnormal frequency, which is an erroneous frequency of chatter vibration; Equipped with The generating means includes:

4. The numerical control device according to claim 3, wherein the learning data is generated based on the machining conditions acquired by the first acquisition means, the first normal frequency and the first abnormal frequency classified by the classification means, and the second normal frequency and the second abnormal frequency determined by the determination means.

5. The second determination means is 5. The numerical control device according to claim 4, wherein a frequency obtained by modifying at least one of the first normal frequency and the second normal frequency based on a parameter calculated from a rotational speed of a spindle to which a tool for cutting the workpiece is attached is determined as the second abnormal frequency.

6. The first determination means is Calculating a damping ratio and a resonance frequency from the processing conditions and the first frequency; Deriving a relationship between a rotation speed of a spindle to which a tool is attached and a frequency of chatter vibration based on the damping ratio and the resonance frequency; determining the second normal frequency based on the relationship 5. The numerical control device according to claim 4 .

7. A first acquisition step of acquiring machining conditions when cutting a workpiece by a machine tool; a second acquisition step of acquiring vibration data of vibrations generated in the machine tool according to a relationship between the machining conditions acquired in the first acquisition step and a mechanical structure of the machine tool; a derivation step of deriving a first frequency which is a frequency of chatter vibration occurring in the machine tool based on the plurality of vibration data acquired in the second acquisition step; a determination step of determining a second frequency, which is a frequency of chatter vibration generated in the machine tool when the workpiece is cut under machining conditions different from the machining conditions acquired in the first acquisition step, based on the first frequency derived in the derivation step; a generation step of generating learning data for obtaining, by machine learning, a model used when determining a frequency of chatter vibration of the machine tool, based on the machining conditions acquired in the first acquisition step, the first frequency measured in the derivation step, and the second frequency determined in the determination step; A program for causing a computer to execute the following.

8. A first acquisition step of acquiring machining conditions when cutting a workpiece by a machine tool; a second acquisition step of acquiring vibration data of vibrations generated in the machine tool according to a relationship between the machining conditions acquired in the first acquisition step and a mechanical structure of the machine tool; a derivation step of deriving a first frequency which is a frequency of chatter vibration occurring in the machine tool based on the plurality of vibration data acquired in the second acquisition step; a determination step of determining a second frequency, which is a frequency of chatter vibration generated in the machine tool when the workpiece is cut under machining conditions different from the machining conditions acquired in the first acquisition step, based on the first frequency derived in the derivation step; a generation step of generating learning data for obtaining, by machine learning, a model used when determining a frequency of chatter vibration of the machine tool, based on the machining conditions acquired in the first acquisition step, the first frequency measured in the derivation step, and the second frequency determined in the determination step; A medium that stores a program for causing a computer to execute the above.

Citation Information

Patent Citations

  • Method for predicting status of machining operation

    JP2021166045A