Numerical control device, method of control and program

The numerical control device uses a linear compensation model with basis functions to rapidly and accurately estimate friction compensation for individual ball screws, addressing friction torque variations and reducing quadrant protrusions.

JP2024122404APending Publication Date: 2024-09-09BROTHER KOGYO KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023029928
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-09

AI Technical Summary

Technical Problem

Existing numerical control devices face challenges in accurately and efficiently compensating for friction torque variations in double nut preload type feed drive mechanisms due to individual differences among ball screws, which require lengthy parameter learning times.

Method used

A numerical control device that employs a compensation model using a linear combination of N basis functions with compensation torque coefficients to estimate friction compensation, allowing for rapid and precise friction estimation by learning compensation torque for individual ball screws.

Benefits of technology

The device can quickly and accurately estimate friction compensation, effectively suppressing quadrant protrusions by learning compensation torque coefficients, thereby stabilizing the control process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide a numerical control device, method of control and program allowing for accurately estimating the compensation amount for friction on a ball-screw individual basis in a short time, in a feed-drive mechanism of a double-nut preload scheme.SOLUTION: A numerical control device includes a friction estimating section comprising a compensation model that estimates the compensation amount for friction by linear combination of a result of multiplying compensation-torque coefficients in the number of N respectively on base functions fc1 to fc9 in the number of N different in delay and inclination of rise up one from another, the base functions fc1 to fc9 converging to a predetermined value of rise up depending upon a movement distance from the compensation amount for friction before reversal in a direction of movement.SELECTED DRAWING: Figure 9
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 control method, and a program. [Background technology]

[0002] Patent Document 1 discloses a numerical control device that controls a feed drive mechanism of a double nut preload system to suppress quadrant projections that occur when the moving direction of the table is reversed. In order to suppress the quadrant projections, a friction compensator of the numerical control device estimates and compensates for the friction force when the moving direction of the table is reversed. The friction compensator includes a first friction characteristic estimator to a third friction characteristic estimator, an adder, and a response delay compensation unit. The first friction characteristic estimator to the third friction characteristic estimator each include an approximation equation with parameters such as the moving distance from the table reversal position, the rise coefficient of the friction torque after reversal, and the delay amount to the rise start position as a compensation model. The first friction characteristic estimator determines the friction torque that increases rapidly after the moving direction is reversed when the balls are in two-point contact with the nut and the ball screw shaft. This friction torque is determined from an approximation equation that approximates the rise of the friction torque immediately after the reversal. The second friction characteristic estimator determines the friction torque that increases gradually after the reversal when the balls are in two-point contact with the nut and the ball screw shaft. This friction torque is found from an approximation equation that approximates the rise of a section where there is two-point contact. The third friction characteristic estimation unit finds the friction torque that increases after a predetermined amount of movement after reversing the moving direction, i.e., after a gradual increase in friction torque, in a case where two-point contact and three-point contact are mixed between the ball and the nut and the ball screw shaft. This friction torque is found from an approximation equation that approximates the rise of a section where two-point contact switches to three-point contact. The adder adds the found friction torque. The response delay compensation unit generates a friction compensation signal based on the result of adding the friction torque. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2013-131026 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the above-mentioned numerical control device, the slope of the rise of the friction torque and the position at which the contact changes from two-point contact to three-point contact after the direction of movement is reversed vary due to individual differences in the ball screws. Therefore, in order to compensate for the friction torque with higher precision, it is necessary to identify the parameters of the compensation model for each individual ball screw. When trying to identify the parameters using the above-mentioned compensation model, there is a problem that it takes a long time to learn the parameters for each individual ball screw because the parameters of the rise coefficient and delay amount are nonlinear.

[0005] An object of the present invention is to provide a numerical control device, a control method, and a program that can estimate the friction compensation amount for each individual ball screw in a double-nut preload type feed drive mechanism in a short period of time with high accuracy. [Means for solving the problem]

[0006] The numerical control device of claim 1 includes a feed mechanism having a ball screw shaft and a ball nut fitted onto the ball screw shaft, and moving a moving body fixed to the ball nut, a motor that rotates and drives the ball screw shaft, a position detection mechanism that detects a position of the motor, a speed generation unit that generates a speed command so that the position of the motor detected by the position detection mechanism coincides with a generated position command, a speed detection unit that detects the speed of the motor, a torque generation unit that generates a torque command so that the speed detected by the speed detection unit coincides with the speed command generated by the speed generation unit, and a reversal of the rotation direction of the motor. a friction estimator that outputs a friction compensation amount based on a friction force generated in accordance with a moving distance from a position where a moving direction of the moving body is reversed due to a reversal of the moving direction, and a correction unit that corrects the torque command based on the friction compensation amount output by the friction estimator, the friction estimator is characterized in that it includes a compensation model that estimates the friction compensation amount by linear combination of results obtained by multiplying N basis functions, each of which has a different rise delay and slope, by N compensation torque coefficients, the N basis functions being basis functions that rise and converge to a predetermined value in accordance with the moving distance from the friction compensation amount before the reversal of the moving direction, and the N basis functions being different from one another in rise delay and slope.

[0007] The numerical control device drives the motor based on the friction compensation amount estimated by the compensation model. The numerical control device can suppress a quadrant projection that occurs when the moving direction of the moving body is reversed. The compensation model can learn a compensation torque for individual variations of the ball screw using a compensation torque coefficient to be multiplied with each basis function as a learning parameter, and has linearity with respect to the learning parameter. Therefore, it is possible to identify the compensation torque coefficient of the compensation model in a short period of time compared to a case where a nonlinear compensation model is used for learning parameters in which the rise coefficient and delay amount are learning parameters. Therefore, the numerical control device can stably learn parameters required for estimating the friction compensation amount for each individual ball screw in a short period of time. Therefore, the numerical control device can estimate the friction compensation amount for each individual ball screw with high accuracy in a short period of time.

[0008] The numerical control device of claim 2 may include an analysis unit that analyzes N change gradients indicating the gradient of the change in deviation when the N compensation torque coefficients are changed, a first acquisition unit that acquires the deviation between the position of the motor detected by the position detection mechanism and the position indicated by the position command signal when the moving operation of the moving body is performed based on the friction compensation amount based on the current N compensation torque coefficients, a first calculation unit that calculates a parameter update vector including N elements for correcting the N compensation torque coefficients based on the N change gradients analyzed by the analysis unit and the deviation acquired by the first acquisition unit, and a first update unit that updates the N compensation torque coefficients based on the parameter update vector calculated by the first calculation unit. The numerical control device can update the N compensation torque coefficients in a short time by performing a moving operation. In addition, the numerical control device can further suppress quadrant projections by driving the motor with a friction compensation amount based on the updated compensation torque coefficient.

[0009] In the numerical control device of claim 3, the analysis unit may include a second acquisition unit that acquires a deviation between the position of the moving body detected by the position detection mechanism when a moving operation of the moving body is performed based on the friction compensation amount when the N compensation torque coefficients are set to an initial value, and the position command signal; a first setting unit that adds a predetermined value to the initial value of an i-th compensation torque coefficient (i is an integer from 1 to N) among the N compensation torque coefficients, and sets the other compensation torque coefficients to the initial value; a third acquisition unit that acquires an i-th deviation between the position of the moving body detected by the position detection mechanism when a moving operation of the moving body is performed based on the friction compensation amount when the first setting unit adds up among the N compensation torque coefficients; and a change gradient calculation unit that calculates an i-th change gradient based on the deviation acquired by the second acquisition unit and the i-th deviation acquired by the third acquisition unit, and the change gradient calculation unit may calculate the change gradient for each of the N compensation torque coefficients set by the first setting unit. The numerical control device can calculate N change gradients required to update N compensation torque coefficients by simply executing N+1 movement operations.

[0010] In the numerical control device of claim 4, the movement operation performed by the third acquisition unit may be an operation based on the same position command signal as the movement operation performed by the second acquisition unit. Since the numerical control device executes the movement operation based on the same position command signal, the accuracy of the calculation result is high.

[0011] In the numerical control device of claim 5, the position command signal may be a signal for causing the movable body to reciprocate linearly or move in an arc. The numerical control device can analyze N change gradients by simply moving the movable body along a simple linear or arc trajectory.

[0012] In the numerical control device of claim 6, the analysis unit may include a fourth acquisition unit that acquires a deviation between the position of the motor detected by the position detection mechanism when the motor is driven based on a command obtained by adding a step torque command obtained by multiplying a unit step input by an applied torque to the torque command output by the torque generation unit, and a position indicated by the position command signal, a fifth acquisition unit that acquires an impulse response waveform based on the deviation acquired by the fourth acquisition unit, and a change gradient calculation unit that calculates the N change gradients based on the N basis functions and the impulse response waveform acquired by the fifth acquisition unit. The numerical control device can analyze the N change gradients by simply acquiring the deviation when a step torque command is input once. Therefore, the numerical control device can calculate the N change gradients required for updating the N compensation torque coefficients by simply executing a single movement operation.

[0013] The numerical control device of claim 7 includes an execution unit that executes a machining program including a command to move the moving body, and the change gradient calculation unit calculates the N change gradients at a predetermined sampling period as the moving body is moved by the execution unit, and includes a second update unit that updates the parameter update vector for each of the N change gradients calculated during the execution of the machining program, and the first update unit updates the N compensation torque coefficients based on the parameter update vector updated by the second update unit after the execution unit ends the machining program. The numerical control device can update the N compensation torque coefficients by simply executing an arbitrary machining program without performing a movement operation based on the same position command signal for learning. Therefore, the numerical control device can estimate a friction compensation amount corresponding to a change in friction force due to an environmental temperature at the time of execution of the machining program by simply executing an arbitrary machining program.

[0014] In the numerical controller of claim 8, the N basis functions may be defined by a sigmoid function or a tanh function. The numerical controller can define the compensation model by a simple function.

[0015] The control method of claim 9 is a control method for a numerical control device including a feed mechanism having a ball screw shaft and a ball nut fitted onto the ball screw shaft and moving a moving body fixed to the ball nut, a motor that rotates and drives the ball screw shaft, and a position detection mechanism that detects a position of the motor, the control method including a speed generating step of generating a speed command such that the position of the motor detected by the position detection mechanism coincides with a generated position command, a speed detection step of detecting the speed of the motor, and a torque generation step of generating a torque command such that the speed detected in the speed detection step coincides with the speed command generated in the speed generation step. a friction estimation step of outputting a friction compensation amount based on a friction force generated in accordance with a moving distance from a position where the moving direction of the moving body is reversed as a result of reversal of the rotation direction of the motor; and a correction step of correcting the torque command on the basis of the friction compensation amount outputted by the friction estimation step, wherein the friction estimation step estimates the friction compensation amount by a linear combination of results obtained by multiplying N compensation torque coefficients by N basis functions, the N basis functions being basis functions that rise and converge to a predetermined value in accordance with the moving distance from the friction compensation amount before the reversal of the moving direction, and having different rise delays and slopes.

[0016] By executing the above steps, the numerical control device can obtain the same effect as the numerical control device according to claim 1.

[0017] The program of claim 10 causes a computer to control a numerical control device including a feed mechanism having a ball screw shaft and a ball nut fitted onto the ball screw shaft and configured to move a moving body fixed to the ball nut, a motor for rotating the ball screw shaft, and a position detection mechanism for detecting a position of the motor, the program including a speed generating step of generating a speed command such that the position of the motor detected by the position detection mechanism coincides with the generated position command, a speed detecting step of detecting the speed of the motor, and a torque command such that the speed detected in the speed detecting step coincides with the speed command generated in the speed generating step. the friction estimation step executes a torque generation step of outputting a friction compensation amount based on a friction force generated in accordance with a moving distance from a position where the moving direction of the moving body is reversed as a result of reversal of the rotation direction of the motor; and a correction step of correcting the torque command based on the friction compensation amount outputted by the friction estimation step, wherein the friction estimation step estimates the friction compensation amount by a linear combination of results obtained by multiplying N compensation torque coefficients by N basis functions, the N basis functions being basis functions that rise and converge to a predetermined value in accordance with the moving distance from the friction compensation amount before the reversal of the moving direction, and the N basis functions having different rise delays and slopes.

[0018] By executing the above steps, the numerical control device can obtain the same effect as the numerical control device according to claim 1. [Brief description of the drawings]

[0019] [Figure 1] 2 is a diagram showing a part of the structure of the machine tool 20 and the electrical configuration of the numerical control device 10. [Diagram 2] FIG. 2 is a block diagram showing the detailed configuration of the numerical control device 10 and a feed mechanism. [Diagram 3] FIG. [Figure 4] 4 is a diagram showing a contact state of a ball 47 of a feed drive mechanism 56. FIG. [Diagram 5] 13 is an enlarged view of the error between an ideal arc trajectory and the actual trajectory of the feed drive mechanism 56. [Figure 6]6 is a graph showing the relationship between the motor torque of the feed drive mechanism 56 and the movement distance from the reversal position. [Figure 7] 6 is a diagram showing the relationship between the table displacement amount and friction torque of the feed drive mechanism 56. FIG. [Figure 8] FIG. 4 is a block diagram showing the configuration of a friction compensator 13. [Figure 9] A diagram showing the sigmoid function type basis function fci. [Figure 10] A diagram showing the tanh function type basis functions fci. [Figure 11] 13 is a flowchart of an update process. [Figure 12] 13 is a flowchart of a first change gradient analysis process. [Figure 13] 6A and 6B are diagrams showing a circular arc command and a straight line command in a learning operation. [Figure 14] FIG. 13 is a diagram showing the results of deviation obtained when the compensation torque coefficient ki is set to an initial value. [Figure 15] FIG. 13 is a diagram showing the deviation obtained when only the i-th compensation torque coefficient ki is changed. [Figure 16] A graph showing the deviation change gradient ∇ei. [Figure 17] 13 is a flowchart of a second change gradient analysis process. [Figure 18] Block diagram for acquiring impulse response waveform. [Figure 19] FIG. 11 is a diagram showing the step response obtained. [Figure 20] FIG. 11 is a diagram showing an impulse response waveform obtained. [Figure 21] A graph showing the calculation results of deviation change gradients ∇e1 to ∇e9. [Figure 22] FIG. 13 is a graph showing deviation e when a learning operation is performed. [Diagram 23] FIG. 13 is a diagram showing calculation results of the mean square error according to the number of times of learning. [Figure 24] FIG. 13 is a diagram showing a deviation e when the learning operation is executed multiple times based on an updated compensation torque coefficient ki. [Diagram 25] Block diagram for performing real-time processing. [Figure 26]1 is a flowchart of real-time processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] A first embodiment of the present invention will be described below with reference to the drawings. A numerical control device 10 shown in Fig. 1 controls the axial movement of a machine tool 20 according to a path commanded by a machining program, and cuts a workpiece fixed to a table 3. The numerical control device 10 includes a CPU 31, a ROM 32, a RAM 33, and a storage device 34. The CPU 31 is responsible for controlling the machine tool 20. The ROM 32 stores various programs for controlling the machine tool 20. The RAM 33 temporarily stores various data. The storage device 34 is composed of, for example, a flash memory, and stores various data.

[0021] An example of a table mechanism of a machine tool 20 will be described with reference to Fig. 1. The table mechanism includes a base 1, an intermediate table 50, and a table 3. The base 1 is rectangular. The intermediate table 50 moves on the base 1. The table 3 moves on the intermediate table 50.

[0022] The base 1 has a pair of linear guides 6A. The pair of linear guides 6A guide the intermediate table 50 in one axial direction. The ball screw shaft 4A and a nut (not shown) are disposed between the pair of linear guides 6A. The intermediate table 50 is fixed to the nut. The intermediate table 50 has a pair of linear guides 6B on its upper part. The linear guides 6B guide the table 3 in a direction perpendicular to the one axial direction.

[0023] As shown in Fig. 2, the table 3 has a block 51 at its lower part. The block 51 slides on rails 61 of the linear guide 6B. A pair of bearings 7 supports the ball screw shaft 4B. The pair of bearings 7 are fixed to the intermediate table 50. The bearings 7 have bearings 8 therein. The intermediate table 50 has a block (not shown) at its lower end. The block slides on rails (not shown) of the linear guide 6A.

[0024] A pair of bearings (not shown) support the ball screw shaft 4A. The pair of bearings are fixed to the base 1. The bearings have bearings (not shown) inside.

[0025] As shown in Fig. 1, a motor 2A is supported on the upper part of a base 1. The shaft of the motor 2A and a ball screw shaft 4A are connected by a coupling (not shown). The motor 2A has an oil seal (not shown) around the shaft.

[0026] As shown in Figure 2, the intermediate table 50 supports a motor 2B at its end. The shaft of the motor 2B and the ball screw shaft 4B are connected by a coupling 9. The motor 2B has an oil seal 52 around the shaft. The table 3 has fixed covers 53 on both ends. A seal member 55 is fixed to the end of the movable cover 54 opposite the table side end. The seal member 55 is made of rubber. The seal member 55 prevents chips and the like from entering between the fixed cover 53 and the movable cover 54.

[0027] The feed drive mechanism 56 moves the table 3 in one axial direction. The feed drive mechanism 56 is equipped with a ball screw shaft 4B and a nut 5. The feed drive mechanism 56 that moves the intermediate table 50 in one axial direction has the same configuration as the feed drive mechanism 56 of the table 3. The feed mechanism of the table 3 includes at least the feed drive mechanism 56, a linear guide 6B, a block 51, a motor 2B, a coupling 9, an oil seal 52, a movable cover 54, a seal member 55, and a bearing 7.

[0028] 1, a numerical control device 10 is connected to motors 2A and 2B. A table 3 is moved in two axial directions by being driven by the motors 2A and 2B.

[0029] The ball screw shafts 4A, 4B and nuts 5 convert the rotational motion of the motors 2A, 2B into linear motion in two axial directions of the table 3. The numerical control device 10 controls the motors 2A, 2B to control the position, speed and acceleration of the table 3.

[0030] As shown in Fig. 2, the rotary encoder 60 is attached to the motors 2A and 2B. Fig. 2 does not show the motor 2A and the rotary encoder 60 on the motor 2A side. The rotary encoder 60 detects the positions of the motors 2A and 2B and outputs the positions of the motors 2A and 2B as position detection signals. The position detection signals output by the rotary encoder 60 include position information of the table 3. The numerical control device 10 calculates the position of the table 3 based on the positions of the motors 2A and 2B based on the position detection signals and the pitch (the distance between the threads) of the ball screw shafts 4A and 4B.

[0031] An upper controller (e.g., CPU 31) outputs a position command signal to position controller 11. A rotary encoder 60 outputs position detection signals of motors 2A, 2B to position controller 11. The position controller 11 generates a speed command signal so that the position command signal and the position detection signal match, and outputs the signal to speed controller 12. A differentiator 16 converts the position detection signal into a speed detection signal and outputs the signal to speed controller 12.

[0032] The speed controller 12 generates a torque command signal so that the speed command signal and the speed detection signal coincide with each other, and outputs the signal to the adder 14. The friction compensator 13 generates a friction compensation signal based on the position command signal from the upper controller, and outputs the signal to the adder 14. The friction compensation signal is a signal that compensates for the friction force generated when the rotation direction of the motors 2A and 2B is reversed. The adder 14 adds the torque command signal from the speed controller 12 and the friction compensation signal from the friction compensator 13. The adder 14 outputs the friction-compensated torque command signal to the current control amplifier 15. The current control amplifier 15 functions as a torque controller. The current control amplifier 15 controls the current of the motors 2A and 2B so as to generate a torque as faithful as possible to the friction-compensated torque command signal. The subtractor 19 calculates the deviation between the positions of the motors 2A and 2B detected by the rotary encoder 60 and the positions indicated by the position command signals. The deviation calculation result corresponds to the error between the ideal position and the actual position in the table 3.

[0033] The configurations and operations of the position controller 11, speed controller 12, adder 14, current control amplifier 15, differentiator 16, and subtractor 19 are well known. Therefore, the configuration and operation of the friction compensator 13 according to the present invention will be described, focusing on the principle.

[0034] The feed drive mechanism 56 has frictional forces caused by a first friction source and a second friction source. The frictional forces caused by the first friction source are the preload of the blocks 51 of the linear guides 6A and 6B, the preload of the nuts 5 of the ball screw shafts 4A and 4B, and the preload of the bearings 8. The higher the preload, the higher the rigidity of the feed drive mechanism 56 and the greater the frictional force. The frictional force caused by the second friction source is the sliding resistance of the oil seal 52 and the seal of the movable cover 54. The frictional force increases as the sealing performance improves.

[0035] The frictional force changes suddenly when the moving direction of the table 3 reverses. When the moving direction of the table 3 reverses, the rotational direction of the ball screw shafts 4A and 4B reverses. The numerical control device 10 performs circular cutting by executing a circular interpolation motion (operation based on a circular command, which will be described later) using two orthogonal axes. At this time, the control system may not be able to respond to the change in frictional force. The graph at the top of Figure 1 shows the error between the ideal circular trajectory and the actual trajectory. The parts 71 to 74 surrounded by ellipses are quadrant protrusions. The friction compensator 13 estimates and compensates for the frictional force when the moving direction of the table 3 reverses with high precision. Therefore, the numerical control device 10 can minimize the quadrant protrusions.

[0036] The quadrant protrusion is caused by a change in frictional force generated in the feed drive mechanism 56. The way in which the quadrant protrusion occurs varies depending on the preload method of the ball screw shafts 4A and 4B. The preload methods of the ball screw shafts 4A and 4B are the oversize ball preload method and the double nut preload method. In the following explanation, the double nut preload method will be explained.

[0037] As shown in Fig. 3, the double-nut preload type feed drive mechanism 56 has two nuts 45, 46 as the nut 5. The nuts 45, 46 are ball nuts. A spacer 48 is located between the nuts 45, 46. As shown in Figs. 4(a) to 4(c), the ball 47 moves according to the moving direction of the nuts 45, 46. The ball 47 changes as needed with two or three points of contact with the nuts 45, 46 and the ball screw shaft 4A (4B). The white arrow in Fig. 4 indicates the rotation direction of the ball 47.

[0038] As shown in FIG. 4(a), the nut 46 is moving in one direction. The ball 47 contacts the nut 46 at one point and the ball screw shaft 4A (4B) at two points, resulting in three-point contact. As shown in FIG. 4(b), the nut 46 is in the middle of reversing its movement. The ball 47 contacts the nut 46 at one point and the ball screw shaft 4A (4B) at one point, resulting in two-point contact. Therefore, friction is smaller than in the case of three-point contact. As shown in FIG. 4(c), the nut 46 reverses its movement direction and moves in the opposite direction. The ball 47 contacts the nut 46 at two points and the ball screw shaft 4A (4B) at one point, resulting in three-point contact. Therefore, friction increases again. The double nut preload method is characterized by its high rigidity. Therefore, large machine tools and the like adopt the double nut preload method.

[0039] The effect of the preload method of the ball screw shafts 4A and 4B on the quadrant projections is explained. The error from the ideal trajectory when circular interpolation motion is performed using the numerical control device 10 that drives and controls the feed drive mechanism 56 was investigated. Figure 5 is an enlarged view of the error between the ideal circular trajectory and the actual trajectory. The feed speed is 3 m / min, and the command radius is 25 mm. One scale is 5 μm. The trajectory error is the quadrant projections. In Figure 5, the quadrant projections occur near 0°, 90°, 180°, and 270°. The movement direction of the X-axis is reversed at 0° and 180°. The movement direction of the Y-axis is reversed at 90° and 270°. The quadrant projections near each reversal position are the response of the servo system to the change in friction force that appears on the circular trajectory. The friction force is the friction force when the movement direction is reversed.

[0040] As shown in Fig. 5, the feed drive mechanism 56 has two quadrant projections. The first projection is due to the effect of friction when the quadrant changes. The second projection is due to the effect of friction that increases when the balls change from two-point contact to three-point contact with the nuts and ball screw shafts 4A and 4B.

[0041] Figure 6 is a graph showing the relationship between the movement distance from the reversal position of the ball screw shaft 4A (4B) and the motor torque [Nm]. As shown in Figure 6, in the double nut preload method, the motor torque increases slightly after reversal and becomes constant, then increases gradually and becomes constant again. From the reversal position, while the balls 47 are in two-point contact, the motor torque increases slightly and becomes constant. The balls 47 change from a two-point contact state to a three-point contact state. In the above case, two-point contact states and three-point contact states are mixed. Therefore, the motor torque increases gradually. After that, all the balls 47 are in three-point contact. Therefore, the motor torque reaches its maximum value and becomes constant.

[0042] FIG. 7 shows the relationship between the table displacement and friction torque during micro-circular motion of the machine tool 20. The feed rate is 5 mm / min, and the command radius is 0.1 mm. In micro-circular motion, friction force is not affected by speed and acceleration. As shown in FIG. 7, in the double nut preload method, the motor torque changes in a gentle step shape at a specified position after the movement direction is reversed. The step-like change is the cause of the quadrant protrusion becoming two-ridged. The numerical control device 10 focuses on the friction characteristics of the double nut preload method. The numerical control device 10 can compensate for the two-ridge quadrant protrusion by estimating the friction force or friction torque with high precision.

[0043] 8, a detailed configuration of the friction compensator 13 will be described. The friction compensator 13 includes an actual position estimator 21, a differentiator 22, a sign reversal detector 23, an integrator 24, a friction characteristic estimator 25, and a response delay compensation unit 30.

[0044] The upper controller inputs a position command signal to the real position estimator 21. The real position estimator 21 uses a model of a servo control system that performs the feed motion of the table 3. The real position estimator 21 estimates the actual position of the table 3 corresponding to the position command signal and generates an actual position signal. The real position estimator 21 may be composed of a first-order lag element or the like. The differentiator 22 is connected to the real position estimator 21. The differentiator 22 differentiates the real position signal and outputs it as a velocity signal. The sign reversal detector 23 and the integrator 24 are connected to the differentiator 22.

[0045] The sign reversal detection unit 23 detects a reversal of the sign of the speed signal. The sign reversal detection unit 23 outputs a reset signal to the integrator 24. The integrator 24 integrates the speed signal to restore the real position signal. The integrator 24 resets the integral value to zero for each reset signal output by the sign reversal detection unit 23. The integrator 24 generates a displacement signal from the position where the table 3 reverses its moving direction.

[0046] The friction characteristic estimating unit 25 is connected to the output terminal of the integrator 24. The friction characteristic estimating unit 25 estimates a friction compensation amount ft [N·m] based on the friction torque.

[0047] The response lag compensation unit 30 is connected to the output terminal of the friction characteristic estimation unit 25. The response lag compensation unit 30 generates a friction compensation signal based on the friction compensation amount ft estimated by the friction characteristic estimation unit 25. The response lag compensation unit 30 is configured with an inverse function of a transfer function. The transfer function is a model of the characteristics from the torque command signal to the torque actually output by the motors 2A and 2B. The torque command signal is input to the current control amplifier 15 (see Figure 2).

[0048] A compensation model for estimating the friction compensation amount ft will be described with reference to Figs. 9 and 10. Fig. 9 shows a compensation model for estimating the friction compensation amount ft using a sigmoid function type basis function f ci The compensation model is shown below. The sigmoid function base functions are defined by the following formulas (1) to (3). The displacement x' indicates the movement distance in the x-axis direction from the position where the movement direction is reversed. The rise coefficient a i is a constant that indicates the rise after the direction of movement is reversed. iis a constant that indicates the delay in rising after the direction of movement is reversed. bmi is the basis function f just before the direction of movement is reversed. ci The final output value of the basis function f ci Then, the final output value of the basis function before inversion, f bmi By adding, the basis function f ci By setting these constants appropriately for each i, the N basis functions f ci where i is a positive number from 1 to N, and in this embodiment, N is 9. ci The delay and slope of the rise are different. N basis functions f c1~ f c9 is the final output value of the basis function before the direction of movement is reversed. bmi The value rises according to the moving distance and converges to a predetermined value.

number

[0049] Figure 10 shows the tanh function type basis function f ci The compensation model is shown below. The tanh-type basis function f ci is defined by the following formulas (4) to (6). As in the case of formulas (1) to (3), the rise coefficient a i , delay amount b i , the basis function final output value f bmi By setting the above, the N basis functions f c1 ~f c9 The basis functions f in Figs. 9 and 10 are obtained. c1 ~f c9 are roughly the same. The operator selects either the sigmoid function type or the tanh function type. The basis function f c1 ~f c3 is a sigmoid function, and the basis function f c4 ~f c9 may be used in combination, such as in the tanh function form.

number

[0050] A method for estimating the friction compensation amount ft by the friction characteristic estimating unit 25 will be described. The friction compensation amount ft estimated by the friction compensator 13 is estimated by the following mathematical expression (7). According to the expression (7), the friction compensation amount ft is calculated by dividing the N basis functions f ci For N compensation torque coefficients k i In this embodiment, N is a positive number from 1 to 9. The friction characteristic estimation unit 25 uses the formula (7) to repeat a learning operation, which will be described later, to obtain the compensation torque coefficient k i Therefore, the accuracy of the estimated friction compensation amount ft is improved.

number

[0051] 11 to 24, the compensation torque coefficient k i The update process for updating the compensation torque coefficient k i The CPU 31 reads and executes a program from the ROM 32. By executing the program, the CPU 31 executes an update process.

[0052] When the update process is executed, the CPU 31 updates the deviation change gradient ∇e 1 ~∇e N A change gradient analysis process is executed to analyze the change gradient ∇e. The deviation indicates the error between the position indicated by the position command signal and the position indicated by the rotary encoder 60. 1 ~∇e N indicates the gradient of the deviation change. The gradient of the change ∇e 1 ~∇e N In the analysis, one of two methods, a first change gradient analysis process and a second change gradient analysis process, which will be described below, is performed. By performing these processes, the CPU 31 calculates N compensation torque coefficients k i The gradient of the deviation change when changing N gradients ∇ei It is possible to analyze the change gradient ∇e i The operator can appropriately set whether to acquire the above information.

[0053] The first change gradient analysis process will be described with reference to FIG. 12. When the first change gradient analysis process is executed, the CPU 31 sets i to 1 (S101). i is a positive number from 1 to N. The CPU 31 calculates N compensation torque coefficients k 1 ~k N The initial value (hereafter referred to as the compensation torque coefficient k 10 ~k n0 ) (S103). n is a positive number like N. The compensation torque coefficient k 10 ~k n0 are all set to 0. The initial values ​​may be values ​​other than 0, or may be different values ​​from each other.

[0054] The CPU 31 executes a learning operation (S105). The learning operation is a circular command shown in FIG. 13(A) or a linear command shown in FIG. 13(B). The circular command is the above-mentioned circular interpolation motion, and is a signal that moves the table 3 in an arc shape. The linear command is a short-axis reversal motion, and the table 3 moves back and forth in a straight line. When each command is executed, time t0 is the start time of sampling. Time tr is the time when the moving direction of the position command signal is reversed. Time te is the end time of sampling after the moving direction of the position command signal is reversed. Note that in a learning operation executed later, the CPU 31 commands the same operation as the operation executed in S105 as a position command signal. In the learning operations executed repeatedly, the times t0, tr, and te of the moving direction can be the same.

[0055] The CPU 31 calculates N compensation torque coefficients k i When the learning operation of the table 3 is performed based on the friction compensation amount ft when the friction compensation amount ft is set to the initial value, the deviation e between the position of the motors 2A and 2B detected by the rotary encoder 60 and the position command signal is k0 (S107). The CPU 31 obtains the deviation e k0 Get the.

[0056] The CPU 31 calculates N compensation torque coefficients k i Among them, the i-th compensation torque coefficient k i 2 i0 +h i (S109) A predetermined value h i The i-th compensation torque coefficient k i Compensation torque coefficient k other than i is the initial value. When i is 1, the first compensation torque coefficient k 10 , a given value h 1 Add the value h 1 The operator may set the compensation torque coefficient k 20 ~k n0 is set to an initial value of 0.

[0057] The CPU 31 executes a learning operation (S111). The CPU 31 moves the table 3 with the same signal (e.g., a circular arc command) as the position command signal executed in S105. The CPU 31 uses the compensation torque coefficient k set in the process of S109. i When the table 3 is moved based on the above, the i-th deviation e between the positions of the motors 2A and 2B detected by the rotary encoder 60 and the positions indicated by the position command signals is kih In this case, the CPU 31 obtains the deviation e shown in FIG. kih Get the.

[0058] The CPU 31 calculates the deviation e by using the formula (8). k0 and the obtained i-th deviation e kih Based on this, the i-th change gradient ∇e i The change gradient ∇e is calculated (S115). i In the calculation of the deviation e obtained in the process of S113, kih and the deviation e obtained in the process of S107 k0 and a given value h i The CPU 31 uses, for example, the change gradient ∇e i Get the.

number

[0059] The CPU 31 calculates the compensation torque coefficient k i The value of k i0 For example, the compensation torque coefficient k 10 ~k n0 all become 0. The CPU 31 increments i by 1 (S119). The CPU 31 determines whether i is greater than n (S121). If it is determined that i is smaller than n (S121: NO), the CPU 31 returns the process to S109.

[0060] When i is set from 1 to 2 and the process returns to S109 in S121, the CPU 31 changes the compensation torque coefficient k 20 For a given value h 2 Add the second compensation torque coefficient k 2 Compensation torque coefficient k other than i is the initial value, i.e., 0. Note that the value h 1 ~h n The CPU 31 executes steps S111 to S115 to obtain the second change gradient ∇e 2 Calculate the following.

[0061] The CPU 31 repeats the processes of S109 to S121 to obtain N change gradients ∇e i The CPU 31 obtains the deviation change gradient ∇e 1 ~∇e 9 If it is determined that i is greater than n (S121: YES), the CPU 31 ends the first change gradient analysis means and returns the process to the update process.

[0062] The second change gradient analysis process will be described with reference to Figs. 17 to 21. In the first change gradient analysis process, the learning operation is executed N times, but in the method using the second change gradient analysis process, the learning operation needs to be executed only once. In other words, in the second change gradient analysis process, by executing the learning operation only once, N change gradients ∇e i can be analyzed.

[0063] The CPU 31 outputs a step torque command S to obtain a step response waveform (S201). As shown in FIG. 18, the friction compensator 13 outputs the step torque command S. The step torque command S is a command obtained by multiplying a unit step input by an applied torque. The applied torque is, for example, the rated torque of the motors 2A and 2B. The adder 14 adds the step torque command S to the torque command from the speed controller 12. The current control amplifier 15 drives the motors 2A and 2B based on a torque command obtained by adding the step torque command S to a torque command signal. The subtracter 19 obtains the deviation between the positions of the motors 2A and 2B detected by the rotary encoder 60 and the positions indicated by the position command signals. The CPU 31 stores the deviation as time series data for a predetermined period of time, with the time when the step torque is applied being set as time 0, and obtains the step response waveform shown in FIG. 19. The step response waveform is obtained by dividing the time series data of the deviation output by the subtracter 19 by the applied torque. The time for storing the time series data is the time it takes for the deviation to sufficiently converge to zero after the step torque is applied.

[0064] The CPU 31 acquires an impulse response waveform (S203). The impulse response waveform is a time differential calculation result output by the differentiator 22 based on the deviation acquired in S201. The CPU 31 acquires, for example, an impulse response waveform shown in FIG. 20, and stores the acquired impulse response waveform in the storage device 34.

[0065] The CPU 31 executes the learning operation (S205). The motors 2A and 2B are driven by position command signals of circular arc commands or straight line commands. The CPU 31 stores time-series data x[m] (m=0, 1, . . . M) (M: total number of sampling data until the end of the learning operation) of the position command indicating the position when the learning operation is executed in the storage device 34 (S207). The CPU 31 sets i to 1 (S209). The CPU 31 calculates the basis function f ci The time series data x[m] of the position command stored in the storage device 34 is substituted into f ci [m] is calculated (S211).

[0066] The CPU 31 calculates the basis function f ci The output value fci Based on [m] and the calculated impulse response waveform, the i-th change gradient ∇e i g[j] (j=0, 1, . . . J) (J: total number of sampling data of impulse response) indicates the impulse response waveform acquired in S203. When i=1, the CPU 31 adds the basis function f c1 The gradient of change ∇e is calculated by convolution with the impulse response obtained in S203. 1 Calculate the following.

number

[0067] The CPU 31 increments i by 1 (S215). The CPU 31 judges whether i is greater than n (S217). If it is judged that i is smaller than n (S217: NO), the CPU 31 returns the process to S213 and calculates, for example, the second (i=2) change gradient ∇e 2 The CPU 31 repeatedly executes steps S213 to S217 to calculate N change gradients ∇e 1 ~∇e N In the second gradient calculation process, the gradient ∇e obtained in the first gradient analysis process is calculated. 1 ~∇e 9 We obtain the same results (see Figure 21).

[0068] When the CPU 31 determines that i is greater than n (S217: YES), the CPU 31 ends the second change gradient analysis process, and returns the process to the update process.

[0069] In the update process, the CPU 31 updates the compensation torque coefficient k 1 ~k N is set to an initial value (S3). The initial value may be set arbitrarily by the operator. The compensation torque coefficient k i The initial values ​​of may be set to all 1, may be set to all 0 as in the setting of the first change gradient calculation process, or may be set to the last updated compensation torque coefficient k 1 ~k N The CPU 31 may set the current compensation torque coefficient ki , i.e., the initial compensation torque coefficient k i The learning operation of Table 3 is executed based on the friction compensation amount ft based on (S5). The CPU 31 acquires the deviation e between the positions of the motors 2A and 2B detected by the rotary encoder 60 and the positions indicated by the position command signals (S7). For example, the CPU 31 acquires the deviation e shown in FIG. 22.

[0070] The CPU 31 calculates N compensation torque coefficients k i Parameter update vector k for updating d (S9) Calculate the parameter update vector k d is the compensation torque coefficient k i The parameter update vector k d In the calculation of i and the deviation e obtained in the process of S7 are used. Parameter update vector k d can be calculated by calculation method A or calculation method B. Calculation method A uses formula (10). Calculation method A is a method based on the linear least squares method. Calculation method A uses the change gradient ∇e i Find the weights that minimize the square error of the linear combination of and the inverse of the deviation e (-e), and then use the parameter update vector k d The CPU 31 calculates the parameter update vector k d get.

number

[0071] In the calculation method B, the parameter update vector k is calculated using the formulas (11) to (13). d The calculation method B calculates the parameter update vector k by applying the recursive least squares method. d The calculation method B obtains the same results as those obtained by the calculation method A. Compared to the calculation method A, the calculation method B does not require calculations such as an inverse matrix, and therefore can be implemented with less memory.

number

[0072] The CPU 31 calculates the parameter update vector k d Based on the above, N compensation torque coefficients k 1 ~k N The CPU 31 updates each compensation torque coefficient k i In equation (14), the parameter update vector k di is a function of N elements with value k d1 ~k dN The compensation torque coefficient k i is the initial compensation torque coefficient k 1 ~k n For each n parameter update vectors k d Each value of k d1 ~k dN The coefficient α is usually set to 1, but may be any other value.

number

[0073] The CPU 31 determines whether or not to end the learning (S13). As a condition for determining whether to end the learning, the CPU 31 may determine that the learning is to be ended when the learning has been repeated M times. The CPU 31 may also calculate the mean square error MSE i Calculate the mean square error (MSE) from the previous learning operation. i-1 and the mean squared error (MSE) in this learning operation i Mean square error MSE with i-1 The process may be terminated when the difference between the mean squared error MSE and the mean squared error MSE becomes equal to or smaller than a predetermined value. The predetermined value is assumed to be 0.01. As shown in FIG. 23, the mean squared error MSE 1 is 0.14, and the mean square error MSE based on the second learning run is 2 is 0.12. The difference between these is 0.02. Mean Square Error MSE i Since the difference between the mean squared error MSE and the mean squared error MSE becomes larger than 0.01, the CPU 31 determines not to end the learning process. 3is 0.11. Therefore, the mean square error MSE i The difference is 0.01. Mean Square Error MSE i Since the difference between the MSE i If the absolute value is not taken into account, the mean square error MSE i-1 When the difference between the positive and negative values ​​becomes larger, this indicates that the mean square error MSE has increased, and the CPU 31 may determine that learning should be terminated.

number

[0074] When it is determined that the learning is not to be ended (S13: NO), the CPU 31 returns the process to S5 and executes the learning operation. i、 That is, the updated compensation torque coefficient k i The deviation e based on the deviation e is obtained. This deviation e and the change gradient ∇e i Based on this, the CPU 31 calculates a parameter update vector k d (S9) and calculate the compensation torque coefficient k 1 ~k N The process of S5 to S13 is repeated six times, and the CPU 31 obtains the deviation e shown in FIG. 24. According to the obtained result in FIG. 24, the compensation torque coefficient k i Each time the learning operation is repeated by updating, the 1st to 6th peaks of the deviation e become lower. It can be seen that the CPU 31 can further suppress the quadrant spiking by repeating the learning operation.

[0075] When it is determined that the learning is to be ended (S13: YES), the CPU 31 ends the update process.

[0076] As described above, in the first embodiment, the friction compensator 13 of the numerical control device 10 includes a compensation model. The compensation model includes N basis functions f ci For N compensation torque coefficients k i The friction compensation amount ft is estimated by linear combination of the results of multiplying each of these.

[0077] The numerical control device 10 drives the motors 2A and 2B based on the friction compensation amount ft estimated by the compensation model. The numerical control device 10 can suppress the quadrant projection that occurs when the moving direction of the table 3 is reversed. The compensation model is a function of each basis function f ci The compensation torque coefficient k to be multiplied i The compensation torque can be learned for the individual variations of the ball screw using the parameters to be learned, and has linearity with respect to the parameters to be learned. i , and delay amount b i Compared with the case where a nonlinear compensation model is used for the learning parameters, the compensation torque coefficient k i Therefore, the numerical control device 10 can stably learn the parameters required for estimating the friction compensation amount ft for each individual ball screw in a short period of time. Therefore, the numerical control device 10 can estimate the friction compensation amount ft for each individual ball screw with high accuracy in a short period of time.

[0078] The CPU 31 calculates N compensation torque coefficients k i The gradient of the deviation change when changing N gradients ∇e i The CPU 31 analyzes the current N compensation torque coefficients k i When the learning operation of the table 3 is performed based on the friction compensation amount ft based on the above, the CPU 31 obtains the deviation e between the positions of the motors 2A and 2B detected by the rotary encoder 60 and the position indicated by the position command signal. i Based on the obtained deviation e, N compensation torque coefficients k i A parameter update vector k containing N elements for updating d The CPU 31 obtains the calculated parameter update vector k d Based on the above, N compensation torque coefficients k i The numerical control device 10 executes the learning operation to update N compensation torque coefficients k in a short time. i The numerical control device 10 can update the updated compensation torque coefficient k iBy driving the motors 2A and 2B with a friction compensation amount ft based on the above, the quadrant projection can be further suppressed.

[0079] The CPU 31 calculates N compensation torque coefficients k i When the learning operation of the table 3 is performed based on the friction compensation amount ft when the friction compensation amount ft is set to the initial value, the deviation e between the position of the motors 2A and 2B detected by the rotary encoder 60 and the position command signal is k0 The CPU 31 obtains N compensation torque coefficients k i The compensation torque coefficient k of the i-th (i is an integer from 1 to N) i The initial value of h i Add the other compensation torque coefficient k i The CPU 31 sets N compensation torque coefficients k i When the learning operation of the table 3 is performed based on the friction compensation amount ft obtained by adding the above, the i-th deviation e between the positions of the motors 2A and 2B detected by the rotary encoder 60 and the position indicated by the position command signal is calculated. kih The CPU 31 acquires the acquired deviation e k0 and the obtained i-th deviation e kih Based on this, the i-th change gradient ∇e i The numerical control device 10 calculates N compensation torque coefficients k by simply executing the learning operation N+1 times. i N gradient changes ∇e required to update i can be calculated.

[0080] The learning operation executed in the process of S111 is an operation based on the same position command signal as the learning operation executed in the process of S105. Since the numerical controller 10 executes the learning operation based on the same position command signal, the accuracy of the calculation result is high.

[0081] The position command signal is a signal for moving the table 3 back and forth linearly or moving the table 3 in an arc. The numerical control device 10 can obtain N change gradients ∇e i can be analyzed.

[0082] The CPU 31 obtains the deviation between the positions of the motors 2A and 2B detected by the rotary encoder 60 when the motors 2A and 2B are driven based on a command obtained by adding the step torque command S to the torque command signal, and the position indicated by the position command signal. The CPU 31 obtains an impulse response waveform based on the obtained deviation. The CPU 31 calculates the impulse response waveform by using N basis functions f ci Based on the calculated impulse response waveform, N change gradients ∇e i The numerical controller 10 calculates N change gradients ∇e by acquiring the deviation when the step torque command S is input only once. i Therefore, the numerical controller 10 can analyze N compensation torque coefficients k i N gradient changes ∇e required to update n can be calculated.

[0083] N basis functions f ci is defined by a sigmoid function or a tanh function. The numerical control device 10 can define the compensation model by a simple function such as a sigmoid function or a tanh function.

[0084] 25 and 26, the real-time update of the second embodiment will be described. The numerical control device 10 of the second embodiment updates the parameter update vector k during the operation of the machining program. d is updated to the compensation torque coefficient k at the end of the machining program. i Update the gradient ∇e i In the calculation of the second change gradient analysis process, the parameter update vector k d In this calculation, a recursive least squares method is applied using the equations (11) to (13) of the calculation method B. The numerical control device 10 is premised on storing the impulse response waveform in the storage device 34 in advance.

[0085] A block diagram of a numerical control device 10 for performing real-time updating will be described with reference to Fig. 25. The same components as those of the numerical control device 10 of the first embodiment are given the same reference numerals, and descriptions thereof will be omitted. The numerical control device 10 of the second embodiment includes a friction compensation learning device 17. The friction compensation learning device 17 is connected to the friction compensator 13, the subtractor 19, and the storage device 34.

[0086] The real-time processing will be described with reference to Fig. 26. When the operator specifies a machining program and also specifies the learning mode, the CPU 31 refers to the ROM 32, reads out the program, and executes it. When the program is executed, the CPU 31 executes real-time processing. The CPU 31 starts an operation based on the machining program that includes a command to move the table 3.

[0087] The CPU 31 determines whether or not a learning valid operation is being executed (S301). When executing a circular arc command or a straight line command of the machining program, the CPU 31 determines that a learning valid operation is being executed. If it is determined that a learning valid operation is not being executed (S301: NO), the CPU 31 returns the process and waits. If it is determined that a learning valid operation is being executed (S301: YES), the CPU 31 acquires the deviation e of the current cycle at a predetermined sampling cycle (S303). The current cycle corresponds to the current position of table 3 indicated by the current position command signal. The sampling cycle may be set appropriately by the user.

[0088] The CPU 31 calculates the basis function f ci The CPU 31 obtains the output value of the basis function f ci Get the output value.

[0089] The CPU 31 calculates the basis function f ci By substituting the output value of and the impulse response waveform stored in the storage device 34 into equation (9), the change gradient ∇e i The CPU 31 analyzes N change gradients ∇e corresponding to the current period (S307).i The CPU 31 calculates the deviation change gradient ∇e i By substituting into equations (11) to (13), the parameter update vector k d Update (S309).

[0090] The CPU 31 determines whether the machining program has ended (S311). If it is determined that the machining program has not ended (S311: NO), the CPU 31 updates the parameter update vector k d The CPU 31 returns to step S303 to update the parameter update vector k d Update the parameter update vector k until the sampling period m. d When the update is repeated, the change gradient ∇e i The parameter update vector k that minimizes the square error (the result of the calculation of equation (16)) between the linear combination of [m] and the inverse (-e[m]) of the deviation e[m] d The result is the same as that obtained by calculating

number

[0091] When it is determined that the machining program has ended (S311: YES), the CPU 31 uses the formula (14) to calculate the last updated parameter update vector k d Based on the above, N compensation torque coefficients k i (S313), and the CPU 31 ends the process.

[0092] As described above, the CPU 31 executes a machining program including a command to move the table 3. As the table 3 moves, the CPU 31 calculates N change gradients ∇e i The CPU 31 calculates N change gradients ∇e calculated during the execution of the machining program. i For each parameter update vector k dAfter the machining program is completed, the CPU 31 updates the updated parameter update vector k d Based on the above, N compensation torque coefficients k i The numerical control device 10 updates N compensation torque coefficients k by simply executing an arbitrary machining program without executing a movement operation based on the same position command signal for learning. i The numerical control device 10 can estimate the friction compensation amount ft corresponding to the fluctuation of the friction force due to the environmental temperature at the time of executing the machining program, simply by executing an arbitrary machining program.

[0093] The present invention is not limited to the above embodiment and various modifications are possible. In the above embodiment, the table 3 is the moving body. The moving body may be a mechanism for supporting a spindle gripping a tool. The mechanism may be composed of a spindle head and a column. The spindle head supports the spindle so that it can rotate. The column supports the spindle head so that it can move up and down or back and forth. The compensation model has been described for N=9, but other values ​​may be set. In response to this, the rise coefficient a i , delay amount b i The parameters such as the above may be set appropriately.

[0094] The nuts 45 and 46 are examples of the ball nuts of the present invention. The table 3 is an example of the moving body of the present invention. The rotary encoder 60 is an example of the position detection mechanism of the present invention. The position controller 11 is an example of the speed generation unit of the present invention. The differentiator 16 is an example of the speed detection unit of the present invention. The speed controller 12 is an example of the torque generation unit of the present invention. The friction compensator 13 is an example of the friction estimation unit of the present invention. The adder 14 is an example of the correction unit of the present invention. The CPU 31 that executes the process of S1 is an example of the analysis unit of the present invention. The CPU 31 that executes the process of S7 is an example of the first acquisition unit of the present invention. The CPU 31 that executes the process of S9 is an example of the first calculation unit of the present invention. The CPU 31 that executes the process of S11 is an example of the first update unit of the present invention. The CPU 31 that executes the process of S107 is an example of the second acquisition unit of the present invention. The CPU 31 that executes the process of S109 is an example of the first setting unit of the present invention. The CPU 31 that executes the process of S113 is an example of the third acquisition unit of the present invention. The CPU 31 that executes the process of S115 is an example of the change gradient calculation unit of the present invention. The CPU 31 that executes the process of S201 is an example of a fourth acquisition unit of the present invention. The CPU 31 that executes the process of S203 is an example of a fifth acquisition unit of the present invention. The CPU 31 that executes the process of S213 is an example of a change gradient calculation unit of the present invention. The CPU 31 that executes the process of S301 is an example of an execution unit of the present invention. The CPU 31 that executes the process of S307 is an example of a change gradient calculation unit of the present invention. The CPU 31 that executes the process of S309 is an example of a second update unit of the present invention. The CPU 31 that executes the process of S313 is an example of a first update unit of the present invention. [Explanation of symbols]

[0095] 10 Numerical control device 12 Speed ​​Controller 13 Friction compensator 25 Friction characteristic estimation section f ci Basis Functions ft Friction compensation amount k i Compensation Torque Coefficient k d Parameter Update Vector

Claims

1. a feed mechanism having a ball screw shaft and a ball nut fitted onto the ball screw shaft, the feed mechanism moving a moving body fixed to the ball nut; a motor that rotates the ball screw shaft; a position detection mechanism for detecting a position of the motor; a speed generating unit that generates a speed command so that the position of the motor detected by the position detection mechanism coincides with the generated position command; a speed detection unit for detecting a speed of the motor; a torque generating unit that generates a torque command so that the speed detected by the speed detection unit and the speed command generated by the speed generating unit coincide with each other; a friction estimating unit that outputs a friction compensation amount based on a friction force generated in accordance with a moving distance from a position where the moving direction of the moving body is reversed in response to a reversal of the rotation direction of the motor; a correction unit that corrects the torque command based on the friction compensation amount output by the friction estimation unit; In a numerical control device comprising: The friction estimation unit includes a compensation model that estimates the friction compensation amount by linear combination of N basis functions each having a different rise delay and slope, the N basis functions being basis functions that rise and converge to a predetermined value according to the movement distance from the friction compensation amount before the reversal of the movement direction, and multiplying the N basis functions by N compensation torque coefficients. A numerical control device comprising:

2. an analysis unit that analyzes N change gradients that indicate gradients of change in deviation when the N compensation torque coefficients are changed; a first acquisition unit that acquires a deviation between a position of the motor detected by the position detection mechanism when a moving operation of the moving body is performed based on the friction compensation amount based on the N current compensation torque coefficients and a position indicated by a position command signal; a first calculation unit that calculates a parameter update vector including N elements for correcting the N compensation torque coefficients based on the N change gradients analyzed by the analysis unit and the deviation acquired by the first acquisition unit; a first update unit that updates the N compensation torque coefficients based on the parameter update vector calculated by the first calculation unit; 2. The numerical control device according to claim 1, further comprising:

3. The analysis unit is a second acquisition unit that acquires a deviation between a position of the moving body detected by the position detection mechanism when a moving operation of the moving body is performed based on the friction compensation amount when the N compensation torque coefficients are set to initial values, and the position command signal; a first setting unit that adds a predetermined value to the initial value of an ith compensation torque coefficient (i is an integer from 1 to N) among the N compensation torque coefficients, and sets the other compensation torque coefficients to the initial value; a third acquisition unit that acquires an i-th deviation between a position of the moving body detected by the position detection mechanism when a moving operation of the moving body is performed based on the friction compensation amount obtained by adding up the N compensation torque coefficients by the first setting unit, and a position indicated by the position command signal; a change gradient calculation unit that calculates an i-th change gradient based on the deviation acquired by the second acquisition unit and the i-th deviation acquired by the third acquisition unit; Equipped with The change gradient calculation unit calculates the change gradient for each of the N compensation torque coefficients set by the first setting unit.

3. The numerical control device according to claim 2 .

4. The movement operation performed by the third acquisition unit is an operation based on the same position command signal as the movement operation performed by the second acquisition unit.

4. The numerical control device according to claim 3 .

5. The position command signal is a signal for causing the moving body to reciprocate linearly or for causing the moving body to move in an arc.

5. The numerical control device according to claim 4 .

6. The analysis unit is a fourth acquisition unit that acquires a deviation between a position of the motor detected by the position detection mechanism when the motor is driven based on a command obtained by multiplying a unit step input by an applied torque and adding the step torque command to the torque command output by the torque generation unit, and a position indicated by the position command signal; a fifth acquisition unit that acquires an impulse response waveform based on the deviation acquired by the fourth acquisition unit; a gradient calculation unit that calculates the N gradients based on the N basis functions and the impulse response waveform acquired by the fifth acquisition unit; 3. The numerical control device according to claim 2, further comprising:

7. an execution unit that executes a machining program including a command to move the moving body, the change gradient calculation unit calculates the N change gradients at a predetermined sampling period in accordance with the movement of the moving body by the execution unit; a second update unit that updates the parameter update vector for each of the N change gradients calculated during execution of the machining program; The first update unit updates the N compensation torque coefficients based on the parameter update vector updated by the second update unit after the execution unit finishes the machining program. The numerical control device according to claim 6 .

8. The N basis functions are defined as a sigmoid function or a tanh function.

8. The numerical control device according to claim 1, wherein the first and second inputs are connected to the first and second inputs.

9. a feed mechanism having a ball screw shaft and a ball nut fitted onto the ball screw shaft, the feed mechanism moving a moving body fixed to the ball nut; a motor that rotates the ball screw shaft; a position detection mechanism for detecting a position of the motor; A method for controlling a numerical control device comprising: a speed generating step of generating a speed command so that the position of the motor detected by the position detection mechanism coincides with the generated position command; a speed detection step of detecting a speed of the motor; a torque generating step of generating a torque command so that the speed detected in the speed detecting step coincides with the speed command generated in the speed generating step; a friction estimation step of outputting a friction compensation amount based on a friction force generated in accordance with a moving distance from a position where the moving direction of the moving body is reversed in response to a reversal of the rotation direction of the motor; a correction step of correcting the torque command based on the friction compensation amount outputted in the friction estimation step; Equipped with The friction estimation step estimates the friction compensation amount by linearly combining results of multiplying N basis functions, each of which has a different rise delay and slope, by N compensation torque coefficients, the basis functions rising from the friction compensation amount before the reversal of the moving direction and converging to a predetermined value in accordance with the moving distance. A control method comprising:

10. a feed mechanism having a ball screw shaft and a ball nut fitted onto the ball screw shaft, the feed mechanism moving a moving body fixed to the ball nut; a motor that rotates the ball screw shaft; a position detection mechanism for detecting a position of the motor; A computer that controls a numerical control device having the a speed generating step of generating a speed command so that the position of the motor detected by the position detection mechanism coincides with the generated position command; a speed detection step of detecting a speed of the motor; a torque generating step of generating a torque command so that the speed detected in the speed detecting step coincides with the speed command generated in the speed generating step; a friction estimation step of outputting a friction compensation amount based on a friction force generated in accordance with a moving distance from a position where the moving direction of the moving body is reversed in response to a reversal of the rotation direction of the motor; a correction step of correcting the torque command based on the friction compensation amount outputted in the friction estimation step; Run the command, The friction estimation step estimates the friction compensation amount by linearly combining results of multiplying N basis functions, each of which has a different rise delay and slope, by N compensation torque coefficients, the basis functions rising from the friction compensation amount before the reversal of the moving direction and converging to a predetermined value in accordance with the moving distance. A program characterized by:

Citation Information

Patent Citations

  • Method of compensating friction, friction compensator, and motor control device

    JP2008210273A

  • Method and apparatus for controlling feed drive system of machine tool

    JP2011175308A

  • Numerical control device and method for friction compensation

    JP2012108892A

  • Numerical control device and friction compensation method

    JP2013131026A

  • Numerical control apparatus and friction compensation method

    JP2014174854A