Control device, control method, and computer program

The control device calculates the notch filter depth using gain margin estimation and resonance frequency determination to stabilize the NC control system, addressing the challenge of configuring a stable control system in machine tools.

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

Patent Information

Application Number
JP2023058959
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 NC control devices for machine tools lack the ability to easily configure a stable control system by setting the depth of the notch filter, which is crucial for effective resonance frequency removal.

Method used

A control device that calculates the depth of the notch filter based on gain margin estimation, using a frequency estimator to determine resonance frequency and adjust the amplification factor to prevent oscillation, thereby setting the notch filter depth.

Benefits of technology

Enables the configuration of a stable control system by accurately calculating the notch filter depth, ensuring motor feedback stability and reducing the need for skilled workers and time-consuming manual adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024146197000001_ABST
    Figure 2024146197000001_ABST
Patent Text Reader

Abstract

To provide a control device, a control method, and a computer program, capable of setting the depth of a notch filter.SOLUTION: A control device for a machine tool includes an amplifier for amplifying and outputting a signal based on a difference between a speed command with respect to a movement object and the speed of the movement object detected by a speed detection part and a notch filter applied to the output of the amplifier. The control device includes an increase amount estimation part for estimating the increase amount of a gain margin when the movement object satisfying a second loading condition is moved, on the basis of a ratio between a first average speed when allowing the movement object satisfying a first loading condition related to loading onto the movement object to execute an estimation operation estimated in advance and a second average speed when allowing the movement object satisfying the second loading condition related to loading onto the movement object to execute the estimation operation.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technology relates to a control device, a control method, and a computer program for controlling a machine tool. [Background technology]

[0002] There is an NC control device for machine tools that drives and controls the motor of a table on which a workpiece is placed. The NC control device inputs a position command, detects the motor's position using an encoder, and performs feedback control. A notch filter is provided after the amplifier that generates a speed command based on the position command to remove resonance frequencies.

[0003] The NC control device is equipped with a sweep signal generator and a frequency analyzer. A sine wave with a constant amplitude and gradually changing frequency is input from the sweep signal generator as a position command. The frequency analyzer determines the resonance frequency based on the input sine wave. The NC control device sets the determined resonance frequency as the center frequency of a notch filter and removes the supply frequency. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 5-346813 Summary of the Invention [Problem to be solved by the invention]

[0005] Since the NC control device does not set the depth of the notch filter, it is not easy to configure a stable control system.

[0006] The present disclosure has been made in consideration of the above circumstances, and has an object to provide a control device, a control method, and a computer program capable of setting the depth of a notch filter. [Means for solving the problem]

[0007] A control device according to one embodiment of the present disclosure is a control device for a machine tool that includes an amplifier that amplifies and outputs a signal based on the difference between a speed command for a moving object and the speed of the moving object detected by a speed detection unit, and a notch filter applied to the output of the amplifier, and includes an increase amount estimation unit that estimates an increase amount of gain margin when moving the moving object that satisfies a first loading condition regarding loading onto the moving object, based on the ratio between a first average speed when a previously estimated estimated operation is performed on the moving object that satisfies a first loading condition regarding loading onto the moving object, and a second average speed when the estimated operation is performed on the moving object that satisfies a second loading condition regarding loading onto the moving object.

[0008] In the present disclosure, when the second loading condition is satisfied, an increase in the gain margin compared to the gain margin under the first loading condition is estimated, and the estimated increase is used to calculate the depth of the notch filter.

[0009] A control device according to one embodiment of the present disclosure includes an addition unit that adds a predetermined gain margin when moving the object to be moved that satisfies the first loading condition and the increase amount estimated by the increase amount estimation unit.

[0010] In the present disclosure, a predetermined gain margin in the case where the first loading condition is satisfied is added to the increase amount, and the result of the addition is used to calculate the depth of the notch filter.

[0011] In a control device according to one embodiment of the present disclosure, the machine tool includes a motor that drives the moving object, a torque control unit that controls the torque supplied to the motor based on the output of the notch filter and a signal indicating a frequency corresponding to the estimated operation, and a depth calculation unit that calculates the depth of the notch filter based on a resonant frequency included in the frequency and the addition result of the addition unit.

[0012] In the present disclosure, the depth of the notch filter is calculated based on the resonance frequency and the result of the addition.

[0013] In one embodiment of the control device of the present disclosure, a signal indicating a frequency corresponding to the estimated operation includes a sinusoidal torque command, and the control device is provided with a frequency estimation unit that estimates the resonant frequency based on the torque command, and the depth calculation unit calculates the depth of the notch filter based on the resonant frequency estimated by the frequency estimation unit.

[0014] In the present disclosure, the depth of the notch filter is calculated based on the resonant frequency estimated by the frequency estimator.

[0015] A control device according to an embodiment of the present disclosure includes a change unit that changes an amplification factor of the amplifier so as to prevent oscillation while the frequency estimation unit is estimating the resonant frequency.

[0016] In the present disclosure, the amplification factor of the amplifier is changed so as to prevent oscillation during estimation of the resonant frequency.

[0017] In a control device according to one embodiment of the present disclosure, the modification unit includes a judgment unit that judges whether or not oscillation has occurred during estimation of the resonant frequency by the frequency estimation unit, and reduces the amplification factor while the judgment unit determines that oscillation has occurred during estimation of the resonant frequency by the frequency estimation unit, and the frequency estimation unit estimates the resonant frequency each time it reduces the amplification factor, and the depth calculation unit calculates the depth of the notch filter when the judgment unit determines that oscillation has not occurred during estimation of the resonant frequency by the frequency estimation unit.

[0018] In the present disclosure, if it is determined that no oscillation occurs during estimation of the resonant frequency by the frequency estimator, the depth of the notch filter is calculated.

[0019] In a control device according to one embodiment of the present disclosure, the judgment unit determines that oscillation has occurred during estimation of the resonant frequency by the frequency estimation unit when the second average speed is greater than or equal to the multiplied value of the first average speed and a predetermined coefficient.

[0020] In the present disclosure, a determination is made as to whether or not oscillation has occurred during estimation of the resonant frequency.

[0021] In a control device according to one embodiment of the present disclosure, the object to be moved includes a table, the first loading condition includes no loading, and the second loading condition includes loading at least a jig on the table.

[0022] In the present disclosure, the first average speed is the average speed at which an unladen table moves, and the second average speed is the average speed at which a table with at least a tool loaded moves.

[0023] A control method according to one embodiment of the present disclosure is a control method for a machine tool having an amplifier that amplifies and outputs a signal based on the difference between a speed command for a moving object and the speed of the moving object detected by a speed detection unit, and a notch filter applied to the output of the amplifier, and estimates an increase in gain margin when moving a moving object that satisfies a first loading condition related to loading onto the moving object, based on a ratio between a first average speed when a previously estimated estimated operation is performed on the moving object that satisfies a first loading condition related to loading onto the moving object, and a second average speed when the estimated operation is performed on the moving object that satisfies a second loading condition related to loading onto the moving object.

[0024] In the present disclosure, when the second loading condition is satisfied, an increase in the gain margin compared to the gain margin under the first loading condition is estimated, and the estimated increase is used to calculate the depth of the notch filter.

[0025] A computer program according to one embodiment of the present disclosure is a computer program for controlling a machine tool having an amplifier that amplifies and outputs a signal based on the difference between a speed command for a moving object and the speed of the moving object detected by a speed detection unit, and a notch filter applied to the output of the amplifier, and causes a control device of the machine tool to execute a process of estimating an increase in gain margin when moving a moving object that satisfies a first loading condition related to loading onto the moving object, based on the ratio between a first average speed when a previously estimated estimated operation is performed on the moving object that satisfies a first loading condition related to loading onto the moving object, and a second average speed when the estimated operation is performed on the moving object that satisfies a second loading condition related to loading onto the moving object.

[0026] In the present disclosure, when the second loading condition is satisfied, an increase in the gain margin compared to the gain margin under the first loading condition is estimated, and the estimated increase is used to calculate the depth of the notch filter. Effect of the Invention

[0027] In the control device, the control method, and the computer program according to the embodiment of the present disclosure, when the second loading condition is satisfied, an increase in the gain margin compared to the gain margin under the first loading condition is estimated, and the estimated increase is used to calculate the depth of the notch filter. [Brief description of the drawings]

[0028] [Figure 1] FIG. 1 is a schematic perspective view of a machine tool. [Diagram 2] FIG. 2 is a block diagram of a machine tool. [Diagram 3] FIG. 2 is a block diagram relating to an X-axis motor. [Figure 4] 11 is a flowchart illustrating a depth calculation process for calculating the depth of a notch filter. [Diagram 5] FIG. 11 is a Bode plot diagram illustrating a frequency characteristic when a notch filter is applied. [Figure 6]FIG. 6 is a partially enlarged view of the Bode plot shown in FIG. 5. [Figure 7] 10 is a flowchart illustrating a process for creating a map showing the relationship between each gain margin, a resonance frequency, and a depth of a notch filter. [Figure 8] 13 is an example of a map showing a relationship between each gain margin and a center frequency and a depth of a notch filter. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029] The present invention will be described below with reference to the drawings showing a machine tool according to an embodiment. In the following description, up, down, front, back, left and right in the drawings will be used. Figure 1 is a simplified perspective view of a machine tool 1. The machine tool 1 has a rectangular base 2 extending in the front-to-rear direction. A pillar 3 is provided at the rear of the upper surface of the base 2. A control device 4 is provided at the rear surface of the pillar 3, and a spindle head 5 is provided at the front surface of the pillar 3. The spindle head 5 is movable in the vertical direction.

[0030] The spindle head 5 has a spindle (not shown) that extends vertically. A tool is attached to the lower end of the spindle. A spindle motor 6 that rotates the spindle is provided at the upper end of the spindle head 5. A tool magazine 7 is provided at the vertical midpoint of the upright 3 via two connecting plates 8. The two connecting plates 8 protrude forward from the upright 3 and are aligned on the left and right. The tool magazine 7 is fixed to the front ends of the two connecting plates 8. The tool magazine 7 is, for example, a turret-type tool magazine 7, and stores a plurality of tools. The tool magazine 7 is located forward of the spindle head 5. The control device 4 rotates the tool magazine 7 by driving the magazine motor 7a (see FIG. 2) to index the tool to a predetermined position, and drives the Z-axis motor 5a (see FIG. 2) to lower the spindle head 5 and attach the tool to the spindle. The control device 4 also drives the Z-axis motor 5a to raise the spindle head 5, remove the tool from the spindle, and store it in the tool magazine 7.

[0031] A holding device 11 for holding a workpiece is provided at the front of the upper surface of the base 2. The holding device 11 includes a table 9 and a movable table 10. The table 9 is provided on the movable table 10. The table 9 moves left and right by being driven by an X-axis motor 9a (see Figure 2). The movable table 10 moves forward and backward by being driven by a Y-axis motor 10a (see Figure 2). The table 9 moves forward and backward by the movement of the movable table 10.

[0032] 2 is a block diagram of the machine tool 1. The control device 4 includes a control unit 4a, a main memory unit 4b, an auxiliary memory unit 4c, and an interface 4d. The control unit 4a includes a processor or a logic circuit. Examples of the processor include a CPU, an MPU, or a GPU. Examples of the logic circuit include an FPGA, an ASIC, or a CPLD.

[0033] The main memory 4b includes a volatile memory, such as a RAM. The auxiliary memory 4c includes, for example, a non-volatile memory or a hard disk. The non-volatile memory is, for example, an EPROM, an EEPROM, or a flash memory. The auxiliary memory 4c stores a control program (program product) for the machine tool 1. The control program includes a machining program, a program for determining a resonance frequency, a program for calculating the depth of a notch filter, and the like. The auxiliary memory 4c stores a reference average speed V b , a given coefficient α, and a gain margin g md , and the depth calculation function d(f,g) are stored in advance. The control program may be stored in a portable storage medium 4e, such as an optical disk, and installed from the storage medium 4e to the auxiliary storage unit 4c. Examples of optical disks include CD-ROMs and DVDs. The control device 4 may be configured to be capable of communication, and the control program may be downloaded from a server to the auxiliary storage unit 4c via a network.

[0034] The CPU 4a reads out a control program from the auxiliary storage unit 4c to the RAM 4b, and outputs drive signals based on the control program to the X-axis motor 9a, the Y-axis motor 10a, the Z-axis motor 5a, the spindle motor 6, or the magazine motor 7a via the interface 4d and the drive circuits 9b, 10b, 5b, 6b, or 7b. The X-axis motor 9a is provided with an encoder 9c. The Y-axis motor 10a is provided with an encoder 10c. The encoders 9c, 10c transmit detection values ​​to the drive circuits 9b, 10b. The drive circuits 9b, 10b receive the detection values ​​of the encoders 9c, 10c and perform feedback control.

[0035] Encoders (not shown) are provided on the Z-axis motor 5a, the spindle motor 6, and the magazine motor 7a. The encoders transmit detection values ​​to the drive circuits 5b, 6b, and 7b. The drive circuits 5b, 6b, and 7b receive the detection values ​​from the encoders and perform feedback control. An operator operates the operation unit 20, which inputs information to the control device 4 via the interface 4d. The operation unit 20 has a keyboard, a touch panel, or switches, etc. The control device 4 outputs a display signal to the display unit 29 via the interface 4d. The display unit 29 displays information. The display unit 29 has a liquid crystal panel, an organic EL panel, or the like.

[0036] 3 is a block diagram of the X-axis motor 9a. The drive circuit 9b includes a position control unit 21, a speed control unit 22, a notch filter 23, a torque control unit 24, a speed detection unit 25, and a generation unit 26. A signal indicating a difference between a position command 40 input based on a control program and a detection value 41 of the encoder 9c, i.e., a value obtained by subtracting the detection value 41 from the position of the position command 40, is input to the position control unit 21. The detection value 41 is a position feedback. The position control unit 21 includes an amplifier (not shown) and the like, and amplifies the input difference to output a speed command 42. The speed detection unit 25 includes a differentiator (not shown) and the like. The detection value 41 is input to the speed detection unit 25. The speed detection unit 25 obtains and outputs a rotation speed 43 of the X-axis motor 9a, i.e., a speed feedback, based on the detection value.

[0037] The speed control unit 22 receives a signal representing the difference between a speed command 42 and a rotation speed 43, i.e., a signal obtained by subtracting the rotation speed 43 from the speed command 42. The speed control unit 22 includes an amplifier 22a and the like, and amplifies the input difference to output a torque command 44. The amplification factor of the amplifier 22a is changeable. The control unit 4a can change the amplification factor of the amplifier 22a. The torque command 44 is input to a notch filter 23.

[0038] A center frequency is set in the notch filter 23. The notch filter 23 attenuates the signal component of the center frequency in the input signal and outputs it. The notch filter 23 attenuates the signal component of the center frequency from the torque command 44 and outputs it.

[0039] The generator 26 outputs a torque command having a sinusoidal waveform. The generator 26 can change the frequency of the torque command having a sinusoidal waveform. In order to detect a resonant frequency, the generator 26 can change the frequency within a predetermined frequency range and output a torque command of each frequency.

[0040] The X-axis motor 9a is provided with a current detector 9e that detects the current flowing through the X-axis motor 9a. The value (current value) of the torque command from the notch filter 23 is added to the value (current value) of the torque command from the generation unit 26, and the current value detected by the current detector 9e, i.e., the current feedback, is subtracted from the addition result. The subtraction result is input to the torque control unit 24. The torque control unit 24 outputs the current command to the X-axis motor 9a. The X-axis motor 9a rotates based on the current command.

[0041] The calculation circuit 9d includes a speed detection unit 30, an averaging unit 31, a frequency average speed calculation unit 32, an integrated average speed calculation unit 33, a band-stop filter 34, and an averaging unit 35. A detection value 41 is input to the speed detection unit 30. The speed detection unit 30 has a differentiator. The speed detection unit 30 obtains the rotation speed of the X-axis motor 9a based on the detection value, and outputs the rotation speed to the averaging unit 31 and the band-stop filter 34. The averaging unit 31 averages the rotation speed to an absolute value, and outputs the averaged value to the frequency average speed calculation unit 32.

[0042] The band-stop filter 34 attenuates signal components having the same frequency as the frequency of the torque command input from the generation unit 26 to the torque control unit 24 from the signal indicating the rotation speed, and outputs the signal to the averaging unit 35. The averaging unit 35 averages the rotation speed, in which the signal components having the same frequency as the torque command frequency have been attenuated, into an absolute value, and outputs the signal to the frequency average speed calculation unit 32.

[0043] The frequency average speed calculation unit 32 calculates an average speed by subtracting the rotation speed input from the averaging unit 35 and the rotation speed obtained by attenuating the signal component having the same frequency as the frequency of the torque command input from the generation unit 26 to the torque control unit 24 from the rotation speed input from the averaging unit 31, i.e., the rotation speed including the signal component having the same frequency as the frequency of the torque command input from the generation unit 26 to the torque control unit 24. In other words, the frequency average speed calculation unit 32 calculates the average speed for the signal component having the same frequency as the torque command input from the generation unit 26 to the torque control unit 24.

[0044] The generator 26 changes the frequency within a predetermined frequency range and outputs a torque command for each frequency. The frequency average speed calculator 32 calculates the average speed V ave The control unit 4a calculates the average velocities V ave The control unit 4a sequentially stores the highest average speed V ave The frequency having the resonant frequency is estimated.

[0045] The integrated average speed calculation unit 33 integrates and averages the average speeds with different frequencies output by the frequency average speed calculation unit 32, and outputs the integrated average speed to the control device 4. The auxiliary storage unit 4c stores the integrated average speed. The drive circuit 10b and calculation circuit 10d of the Y-axis motor 10a have the same configuration as the drive circuit 9b and calculation circuit 9d of the X-axis motor 9a, and detailed description thereof will be omitted.

[0046] For example, before starting machining, an operator can mount jig 12 on table 9 and have control device 4 calculate the depth of notch filter 23, thereby setting the depth of notch filter 23. Control unit 4a drives, for example, X-axis motor 9a to calculate the depth of notch filter 23. Note that an operator can also place a workpiece on jig 12 and have control device 4 calculate the depth of notch filter 23.

[0047] 4 is a flowchart illustrating a depth calculation process for calculating the depth of notch filter 23. Here, a case will be described in which control unit 4a outputs a movement command, i.e., position command 40, to X-axis motor 9a and calculates the depth of notch filter 23.

[0048] The control unit 4a reduces the amplification factor of the amplifier 22a of the speed control unit 22 by a predetermined ratio, for example, 5% (S1). The control unit 4a estimates the resonance frequency (S2). The control unit 4a that executes step S2 corresponds to a frequency estimation unit. The control unit 4a refers to the auxiliary storage unit 4c, and among the average speeds with different frequencies calculated by the frequency average speed calculation unit 32, the highest average speed V ave The frequency with the resonant frequency f m The average speed V ave is the average speed when the jig is loaded onto the table 9, i.e., when the second loading condition is met. Average speed V ave corresponds to the second average velocity.

[0049] The control unit 4a controls the resonance frequency f m It is determined whether oscillation occurs during the estimation of the resonant frequency f m When it is determined that oscillation has occurred during the estimation of the resonant frequency f (S3: YES), the control unit 4a returns the process to step S1, further reduces the amplification factor, and m The control unit 4a that executes steps S1 and S3 corresponds to the change unit. The control unit 4a that executes step S3 corresponds to the determination unit. If oscillation occurs during the estimation of the resonant frequency, the frequency average speed calculation unit 32 is highly likely to calculate an erroneous average speed. Therefore, the control unit 4a recalculates the resonant frequency f mIn order to prevent oscillation during the estimation of the resonant frequency f m Re-estimate.

[0050] In step S3, the control unit 4a calculates, for example, the average speed V ave is the reference average speed V b and a predetermined coefficient α, that is, V ave ≧V b Determine whether or not the following holds true: Reference average speed V b is the average speed when the table 9 is unloaded, i.e., when the first loading condition is met. b is the average speed calculated by the integrated average speed calculation unit 33 and is calculated in advance. For example, the average value of measurements taken on a number of samples (for example, five samples) is taken as the reference average speed V b Also, when manufacturing and shipping a machine tool, a unique value for each machine is measured in an unloaded state and used as the reference average speed V b The reference average speed V b corresponds to the first average velocity. The predetermined coefficient α is determined in advance, for example, by an experiment. ave is the reference average speed V b If the average speed V is greater than or equal to the multiplication value of the predetermined coefficient α, it is determined that oscillation has occurred. ave is the reference average speed V b If the value is not equal to or greater than the product of the predetermined coefficient α, it is determined that no oscillation occurs.

[0051] In step S3, when it is determined that oscillation does not occur (S3: NO), the control unit 4a increases the gain margin increase amount g me The control unit 4a that executes step S4 corresponds to the increase amount estimation unit. me is expressed by the following formula: g me =-201log 10 (V ave / V b )

[0052] Gain margin increase amount g meindicates the increase in the gain margin when the table 9 is moved to satisfy the second loading condition, compared to the gain margin under the first loading condition. When the jig 12 is loaded, the gain is reduced by the inertia of the jig, compared to the case where no loading is performed, and the gain margin increases. This increased amount of the gain margin is the gain margin increase amount g me is equivalent to.

[0053] The control unit 4a estimates the gain margin increase amount g me and the gain margin g md The gain margin reduction allowance g m (S5). That is, the control unit 4a calculates g m =g me +g md The control unit 4a that executes step S5 corresponds to the adding unit. md indicates the gain margin when moving the table 9 without a load, that is, the table 9 that satisfies the first load condition, and is calculated in advance. That is, the allowable gain margin reduction amount g m is a parameter used to calculate the depth of the notch filter 23, taking into account the gain margin in the case of no load and the gain increase due to the loading of the jig 12. m , g me , g md All values ​​are before application of the notch filter.

[0054] The control unit 4a calculates the depth of the notch filter 23 (S6). The control unit 4a that executes step S6 corresponds to a depth calculation unit. The control unit 4a applies the estimated resonant frequency f m and the gain margin reduction allowance g m is applied to calculate the depth of the notch filter 23. The depth calculation function d(f, g) is calculated, for example, as follows.

[0055] FIG. 5 is a Bode diagram showing a schematic diagram of the frequency characteristic when the notch filter 23 is applied, and FIG. 6 is a partially enlarged diagram of the Bode diagram shown in FIG. 5. FIG. 6 shows a portion around the phase crossover frequency. FIG. 5 and FIG. 6 are Bode diagrams when the notch filter 23 with a center frequency of 400 Hz is applied. In the gain diagram of FIG. 6, a gain margin G1 indicates the gain margin of the graph 51a, a gain margin G2 indicates the gain margin of the graph 52a, a gain margin G3 indicates the gain margin of the graph 53a, a gain margin G4 indicates the gain margin of the graph 54a, and a gain margin G5 indicates the gain margin of the graph 55a. When the depth of the notch filter 23 of the graph 51a is d1, the depth of the graph 52a is d2, the depth of the graph 53a is d3, the depth of the graph 54a is d4, and the depth of the graph 55a is d5, the relationship of the magnitude of the depth is as follows: d1=d2 / d3; <d2<d3<d4<d5である。

[0056] In the phase diagrams of Figures 5 and 6, graph 51b corresponds to graph 51a of the gain diagram, graph 52b corresponds to graph 52a, graph 53b corresponds to graph 53a, graph 54b corresponds to graph 54a, and graph 55b corresponds to graph 55a.

[0057] As shown in the creation process described later, in the case of no load, the gain margin is calculated by simulation when the notch filter 23 having each frequency included in a predetermined frequency range is applied to the drive circuit 9b. For example, when the predetermined frequency range is 300 to 900 Hz, first, a plurality of notch filters 23 having different depths with a center frequency of 300 Hz are applied, and the gain margin when each notch filter 23 is applied is obtained. Next, the center frequency is changed, for example, a plurality of notch filters 23 having different depths with a center frequency of 310 Hz are applied, and the gain margin when each notch filter 23 is applied is obtained. In this way, the center frequency is changed until it becomes 900 Hz, and the gain margin is obtained. For example, as shown in FIG. 6, the gain margins G1 to G5 are obtained for each center frequency. As shown in the creation process described later, a point cloud is stored using the gain margin, etc.

[0058] Fig. 7 is a flowchart explaining a process for creating a map showing the relationship between each gain margin, resonance frequency, and notch filter depth, and Fig. 8 is an example of the map showing the relationship between each gain margin, resonance frequency, and notch filter depth. The map showing the relationship between each gain margin, resonance frequency, and notch filter depth is created in advance.

[0059] The map is created, for example, as follows. Here, a case will be described in which a creating device creates the map based on a computer program that performs map creation processing. The creating device has a control unit and a storage unit. The control unit includes a processor or a logic circuit, etc. The storage unit is rewritable. The storage unit stores, as parameters, a gain margin reduction allowance g md , the center frequency f of the notch filter 23, the depth d of the notch filter 23, and the reduction amount g of the gain margin after application of the notch filter 23 are stored in advance. m1n are stored in advance, and the predetermined values ​​β, γ, δ, and the minimum frequency f min , maximum frequency f max , maximum depth d max Maximum gain margin reduction amount g max In addition, a map d is stored in advance as a parameter indicating a storage area for storing the point cloud created in the creation process described later. map (f, g md ) is stored in advance.

[0060] First, the control unit calculates the gain margin g before applying the notch filter 23 from the frequency characteristics in the case of no load, that is, when the first load condition is satisfied. m1 The control unit calculates the gain margin reduction allowance g md The initial value (for example, 0.5 [dB]) is stored in (S12), and the initial value (minimum frequency f min , for example 300 Hz) is stored (S13), and an initial value (for example -2.5 [dB]) is stored as the depth d (S14).

[0061] The control unit calculates the frequency characteristic of the notch filter 23 having the center frequency f and the depth d, and adds it to the frequency characteristic in the case of no load, to calculate the frequency characteristic to which the notch filter 23 is applied (S15). The control unit calculates the gain margin g mn The control unit calculates the amount of decrease in the gain margin after application of the notch filter 23, g m1n Specifically, g m1 -g mn is calculated (S17).

[0062] The control unit determines the amount of decrease in the gain margin after application of the notch filter 23, g m1n The gain margin reduction allowance g md It is determined whether or not the value exceeds the threshold (S18). m1n G md If it exceeds the threshold (S18: YES), the control unit adds a predetermined value β to the depth d (S19). β is, for example, 2.5 [dB]. The control unit calculates the depth d by multiplying the center frequency f and the gain margin reduction allowance g md Map d as the optimal depth in map (f, g md ) (S20).

[0063] The control unit adds a predetermined value γ to the center frequency f, and stores an initial value (for example, −2.5 [dB]) in the depth d (S21). The predetermined value γ is, for example, 10 [Hz]. max It is determined whether the maximum frequency f max is, for example, the maximum value of a predetermined frequency range. The maximum value is, for example, 900 [Hz]. The center frequency f is the maximum frequency f max If it does not exceed the limit (S22: NO), the control unit returns the process to step S15.

[0064] The center frequency f is the maximum frequency f max If it exceeds the gain margin reduction allowance g md Add a predetermined value δ to the center frequency f and set the minimum frequency f minThe predetermined value δ is, for example, 0.5 [dB], and the minimum frequency f min is, for example, the minimum value of a predetermined frequency range. The minimum value is, for example, 300 [Hz]. The control unit determines the gain margin reduction allowance g md The maximum gain margin reduction amount g max It is determined whether the maximum gain margin reduction amount g max For example, the gain margin reduction allowance g is 8.0 [dB]. md is the maximum gain margin reduction amount g max If it does not exceed the gain margin reduction allowance g (S24: NO), the control unit returns the process to step S15. md is the maximum gain margin reduction amount g max If it exceeds the limit (S24: YES), the control unit ends the process.

[0065] In step S18, g m1n G md If the depth d does not exceed the maximum depth d (S18: NO), the control unit subtracts a predetermined value β from the depth d (S25). That is, the depth d is made deeper. max It is determined whether the maximum depth d max For example, 37.5 dB. The depth d is the maximum depth d max If the depth d exceeds the maximum depth d (S26: YES), the control unit advances the process to step S19. max If it does not exceed the limit (S26: NO), the control unit returns the process to step S15.

[0066] In the above-described creation process, the depth d of the notch filter 23 is changed from, for example, an initial value of −2.5 [dB] to a maximum depth d max For example, in steps S19, S21, and S25, the depth d of the notch filter 23 is changed in increments of 2.5 dB. The center frequency f of the notch filter 23 is set to, for example, the minimum frequency f min 300[Hz] to maximum frequency f maxFor example, in step S21, the center frequency f of the notch filter 23 is changed in increments of 10 Hz. md is the maximum gain margin reduction amount g from the initial value of 0.5 [dB] max For example, in step S23, the maximum gain margin reduction amount g max is changed in increments of 0.5 dB. map (f, g md ) corresponds to the point cloud in FIG.

[0067] Based on the created map, that is, based on the relationship between each gain margin, the resonant frequency (center frequency), and the depth of the notch filter, a depth calculation function d(f,g) is created. The depth calculation function d(f,g) is expressed by, for example, the following formulas (1) to (3).

[0068] d=-10 a ×(ff b )+b····(1) a=a3g 3 +a2g 2 +a1g 1 +a0··(2) b=b3g 3 +b2g 2 +b1g 1 +b0··(3) where d is the depth of the notch filter 23, f is the resonant frequency, g is the gain margin, and f b is the reference frequency (e.g., the minimum frequency in a given frequency range, f min ), a n and b n indicates the coefficient of the cubic function. n and b n is determined in advance. Graphs 51c to 58c shown by dashed lines in Fig. 8 visually represent the depth calculation function d(f,g). The depth calculation function d(f,g) is not limited to a cubic function, and may be a quadratic or lower function or a quartic or higher function. The depth calculation function d(f,g) may be determined based on the amount of calculation, the required accuracy, etc.

[0069] Estimated resonant frequency f m and the gain margin reduction allowance g m to f, g of the depth calculation function d(f, g) to obtain the depth d of the notch filter 23, that is, the appropriate depth of the notch filter 23. For example, the control unit 4a m The recommended depth value is displayed on the display unit 29. The operator visually checks the display unit 29 and operates the operation unit 20 to set the resonant frequency f m and a recommended depth value can be input to set an appropriate depth of the notch filter 23.

[0070] If the depth of the notch filter 23 is not determined, it is necessary to use a measuring device for frequency analysis, such as a frequency analyzer, to determine the depth and obtain the frequency characteristics with the jig 12 loaded, or to set the notch filter 23 to an average depth based on past cases and gradually deepen it to search for the point at which the oscillation subsides. Such measures require time and expense, and skilled workers. According to the embodiment, such time and expense can be reduced, and skilled workers are not required. Also, in this embodiment, the depth of the notch filter 23 is set based on the gain margin drop allowance g m is set as a parameter to ensure the stability of the motor feedback system. Therefore, it is possible to select a notch filter that provides the maximum amount of compensation while preventing the motor feedback system from becoming unstable through unnecessarily strong compensation, making it easy to suppress resonance.

[0071] Instead of the depth calculation function d(f, g), a map may be stored in the auxiliary storage unit 4c, and the depth of the notch filter 23 may be calculated based on the map.

[0072] The resonance frequency and notch filter depth may be calculated for the Y-axis motor 10a in the same manner as for the X-axis motor 9a. A configuration for calculating the resonance frequency and notch filter depth may be provided for the Z-axis motor 5a, the spindle motor 6, or the magazine motor 7a. That is, the moving object for which the resonance frequency and notch filter depth are calculated is not limited to the table 9, but may be the spindle head or the magazine motor 7a. The present invention is applicable not only to a motor for driving a table that moves parallel to the X-axis or Y-axis direction, but also to a motor for driving a table that rotates around the A-axis, which is an axis parallel to the X-axis, a table that rotates around the B-axis, which is an axis parallel to the Y-axis, and a table that rotates around the C-axis, which is an axis parallel to the Z-axis.

[0073] In the embodiment, the control device 4 does not include a driving circuit and an arithmetic circuit, but the control device 4 may include a driving circuit and an arithmetic circuit.

[0074] In the control device 4 according to the embodiment, when the second loading condition is satisfied, the gain margin g md The gain margin increase g compared to me The estimated gain margin increase g me is used to calculate the depth of the notch filter 23. Also, a predetermined gain margin g md and the gain margin increase g me The sum is used to calculate the depth of the notch filter. The resonance frequency f m and the sum result g m Based on this, the depth of the notch filter 23 is calculated.

[0075] Also, the amplification factor of the amplifier 22a is changed so that oscillation does not occur during the estimation of the resonance frequency. Also, when it is determined that oscillation does not occur during the estimation of the resonance frequency, the depth of the notch filter 23 is calculated. Also, it is possible to determine whether or not oscillation has occurred during the estimation of the resonance frequency.

[0076] It should be noted that a computer program can be deployed to be executed on a single computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[0077] The embodiments disclosed herein should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is intended to include all modifications within the scope of the claims and the scope equivalent to the claims. The matters described in each embodiment can be combined with each other. In addition, the independent claims and dependent claims described in the claims can be combined with each other in all combinations regardless of the citation format. Furthermore, the claims use a format (multiple claim format) in which a claim cites two or more other claims, but this is not limited to this. A format in which a multiple claim (multi-multi claim) citing at least one multiple claim may be used. [Explanation of symbols]

[0078] 1 Machine tools 4. Control device 4a Control section 9a X-axis motor 10a Y-axis motor 21 Position control section 22 Speed ​​control section 22a Amplifier 23 Notch Filter 24 Torque control section 26 Generation part

Claims

1. A control device for a machine tool comprising: an amplifier that amplifies and outputs a signal based on a difference between a speed command for a moving object and a speed of the moving object detected by a speed detection unit; and a notch filter that is applied to an output of the amplifier, and an increase amount estimating unit that estimates an increase amount of a gain margin when moving the moving object that satisfies a first loading condition regarding loading on the moving object, based on a ratio between a first average speed when the moving object that satisfies a first loading condition regarding loading on the moving object executes an estimated operation that is estimated in advance and a second average speed when the moving object that satisfies a second loading condition regarding loading on the moving object executes the estimated operation. Control device.

2. An adder that adds a predetermined gain margin in a case where the moving object that satisfies the first loading condition is moved and the increase amount estimated by the increase amount estimator. The control device according to claim 1 .

3. the machine tool includes a motor that drives the object to be moved, and a torque control unit that controls a torque supplied to the motor based on an output of the notch filter and a signal indicating a frequency corresponding to the estimated operation, a depth calculation unit that calculates a depth of the notch filter based on a resonance frequency included in the frequency and an addition result of the addition unit The control device according to claim 2.

4. the signal indicating a frequency corresponding to the estimated operation includes a sinusoidal torque command; a frequency estimation unit that estimates the resonance frequency based on the torque command, The depth calculation unit calculates a depth of the notch filter based on the resonance frequency estimated by the frequency estimation unit. The control device according to claim 3.

5. a change unit that changes the amplification factor of the amplifier so as to prevent oscillation during estimation of the resonance frequency by the frequency estimation unit; The control device according to claim 4.

6. The change unit includes a determination unit that determines whether or not oscillation has occurred during the estimation of the resonant frequency by the frequency estimation unit, and reduces the amplification factor while the determination unit determines that oscillation has occurred during the estimation of the resonant frequency by the frequency estimation unit; the frequency estimation unit estimates the resonant frequency every time the amplification factor is reduced, The depth calculation unit calculates a depth of the notch filter when the determination unit determines that oscillation does not occur during estimation of the resonant frequency by the frequency estimation unit. The control device according to claim 5.

7. The determination unit determines that oscillation has occurred during estimation of the resonant frequency by the frequency estimation unit when the second average speed is equal to or greater than a multiplication value of the first average speed and a predetermined coefficient. The control device according to claim 6.

8. the moving object includes a table, the first loading condition includes being unladen; The second loading condition includes loading at least a jig on the table. A control device according to any one of claims 1 to 7.

9. 1. A method for controlling a machine tool comprising: an amplifier that amplifies and outputs a signal based on a difference between a speed command for a moving object and a speed of the moving object detected by a speed detection unit; and a notch filter that is applied to an output of the amplifier, comprising: Based on a ratio between a first average speed when the moving object that satisfies a first loading condition regarding loading onto the moving object executes an estimated operation that has been estimated in advance and a second average speed when the moving object that satisfies a second loading condition regarding loading onto the moving object executes the estimated operation, an increase in gain margin when the moving object that satisfies the second loading condition is moved is estimated. Control methods.

10. A computer program for controlling a machine tool including an amplifier that amplifies and outputs a signal based on a difference between a speed command for a moving object and a speed of the moving object detected by a speed detection unit, and a notch filter that is applied to an output of the amplifier, The control device of the machine tool, Based on a ratio between a first average speed when the moving object that satisfies a first loading condition regarding loading onto the moving object executes an estimated operation that has been estimated in advance and a second average speed when the moving object that satisfies a second loading condition regarding loading onto the moving object executes the estimated operation, an increase in gain margin when the moving object that satisfies the second loading condition is moved is estimated. Execute the process Computer program.

Citation Information

Patent Citations

  • nc controller

    JP1993346813A