1. Field of the Invention
The present invention relates to a motor control apparatus for compensating delay when reversing rotation of a motor coupled to a feed axis in a machine tool and an industrial machine and an arm of an industrial robot.
2. Description of the Related Art
A servomotor is coupled to a axis (a machine movable unit), such as a feed axis of a machine tool and an industrial machine and an arm of an industrial robot.
Rotation of the servomotor is converted to straight line motion of a table by a ball screw, and a transmission speed of the servomotor is decelerated by a reduction drive.
Regarding the ball screw or the reduction drive, a difference exists in some cases between a stop position in a positive direction and a stop position in a negative direction with respect to a certain position. Generally, the above-described difference is referred to as a backlash, which causes a decrease in position accuracy.
When the motor rotates reversely and the movable unit WA moves from the right direction to a left direction, as illustrated in
As described above, when the motor rotates reversely, the movable unit WA needs to move a predetermined moving amount referred to as a backlash before engaging with the driven unit WB. A backlash C illustrated in
A machine which performs position control of the driven unit WB based on position information of the motor without acquiring position information of the driven unit WB is a semi-closed controlled machine. The semi-closed controlled machine issues, to the motor, a compensation position command obtained by adding a backlash length to a move command after reversing of a speed command and moves the driven unit WB by an amount of the move command.
A machine which can acquire the position information of the motor and the position information of the driven unit WB both, namely a full-closed controller includes a sensor for the driven unit WB, so that it is only necessary to be provided with a desired value as the move command. In the full-closed controller, the driven unit WB starts moving after the motor has moved by a backlash length when reversing the speed command, and thus delay occurs. Therefore, the full-closed controller may include a speed command compensation function of accelerating the motor after reversing the speed command.
The above-described two techniques perform appropriate compensations at appropriate timings, and compensation amountcompensation amounts and compensation timings are determined in prior to operations. Therefore, these two techniques adopt feedforward control.
On the contrary, according to Japanese Laid-open Patent Publication No. 2014-054001, a position of a motor in a backlash is acquired, and then a backlash compensation amountcompensation amount is determined. In this case, the backlash compensation amountcompensation amount is determined using a current position of the motor in the backlash, so that the technique in Japanese Laid-open Patent Publication No. 2014-054001 adopts feedback control. According to Japanese Laid-open Patent Publication No. 2014-054001, an error between a movable unit and a driven unit when the movable unit engages with the driven unit is regarded as an initial error. A compensation amountcompensation amount is calculated by subtracting an error between the movable unit and the driven unit at current positions from the initial error.
According to Japanese Laid-open Patent Publication No. 2014-054001, a backlash is interpreted a mere gap between tooth faces. However, in normal machines, a backlash is a combination of a mere gap and elastic deformation generated by force acting between the movable unit and the driven unit. In addition, in some machines, there is very little above-described gap, and lost motion based on elastic deformation is dominant. Elastic deformation is generated by torsion of a coupling, especially a resin coupling, coupling the motor and the ball screw and expansion and contraction of the ball screw.
In the case where lost motion based on elastic deformation is caused, when the initial error is calculated in Japanese Laid-open Patent Publication No. 2014-054001, magnitude of a force acting on a backlash end and magnitude of a force necessary for reversing rotation of the motor are different, and there is a possibility that a calculated compensation amountcompensation amount differs from a required compensation amountcompensation amount.
When the compensation amountcompensation amount includes excess or deficiency, shape accuracy of a workpiece is deteriorated. Specifically, if the compensation amountcompensation amount is too small when machining a convex portion of a workpiece, and if the compensation amountcompensation amount is too large when machining a concave portion of the workpiece, a protrusion may be formed on the workpiece. In contrast, if the compensation amountcompensation amount is too large when machining a convex portion of a workpiece, and if the compensation amountcompensation amount is too small when machining a concave portion of the workpiece, a notch may be formed on the workpiece. In particular, when the compensation amountcompensation amount is too large, a notch on a machining surface of the workpiece seems like a scratch, and it is highly likely to be determined as defective machining in the workpiece which is often viewed as a problem.
The present invention is directed to the provision of a motor control apparatus capable of avoiding generation of an excess compensation amountcompensation amount by considering elastic deformation in consideration of the above-described issue.
In order to achieve the above-described purpose, according to a first aspect of the present invention, a motor control apparatus including a movable unit driven by a motor and a driven unit driven by the movable unit, the motor control apparatus includes a torque command calculation unit command calculation unit configured to calculate a torque command value with respect to the motor, a first position detection unit configured to detect a position of the movable unit, a second position detection unit configured to detect a position of the driven unit, an error calculation unit configured to calculate an error between a first position detection value detected by the first position detection unit and a second position detection value detected by the second position detection unit, a memory unit memory unit configured to memorize the error calculated by the error calculation unit in association with the torque command value as an initial error, and a compensation amountcompensation amount calculation unit configured to calculate a compensation amountcompensation amount for compensating an elastic deformation amount of an elastic factor between the movable unit and the driven unit, wherein the compensation amountcompensation amount calculation unit calculates the compensation amountcompensation amount based on the initial error held by the memory unit memory unit, the torque command value held in association with the initial error, and a torque command value calculated by the torque command calculation unit command calculation unit when the motor rotates reversely.
According to a second aspect of the present invention, in the motor control apparatus according to the first aspect, the compensation amount calculation unit calculates a spring constant of the elastic factor from the initial error held by the memory unit memory unit and the torque command value held in association with the initial error and calculates the compensation amount by subtracting a current error from a value obtained by dividing a torque command value calculated by the torque command calculation unit when the motor rotates reversely by the spring constant.
According to a third aspect of the present invention, in the motor control apparatus according to the first or the second aspect, the memory unit memory unit memorizes the error and the torque command value as the initial error when the movable unit moves while accelerating or at a constant speed.
Objects, features, and advantages of the present invention and additional objects, features, and advantages will become apparent from the following detailed descriptions of exemplary embodiments with reference to the attached drawings.
Embodiments of the present invention will be described in detail below with reference to the attached drawings. Same components are denoted by the same reference numerals in the drawings. Scales of the drawings have been appropriately changed to facilitate understanding of the present invention.
When the engagement member D engaged with the movable unit WA moves to the left direction, the second elastic deformation unit 62 elastically deforms, so that the table 54 moves to the left direction later than the engagement member D. As illustrated in
As is understood from comparison between
With reference to
The motor control apparatus 10 includes an error calculation unit 31 which calculates an error ΔP between a first position detection value DP1 detected by a first position detection unit 11 and a second position detection value DP2 detected by the second position detection unit 12.
The motor control apparatus 10 includes a memory unit 33 which memorizes the error ΔP calculated by the error calculation unit 31 in association with the torque command value as an initial error. The memory unit 33 can memorize other elements such as a speed. Further, the motor control apparatus 10 includes a compensation amount calculation unit 34 which calculates a compensation amount for compensating an elastic deformation amount of an elastic factor between the movable unit WA and the driven unit WB. The elastic factor between the movable unit WA and the driven unit WB is an elastic factor integrated with the first elastic deformation unit 61 and the second elastic deformation unit 62.
Specifically, the compensation amount calculation unit 34 calculates the compensation amount based on the initial error held by the memory unit 33, the torque command value held in association with the initial error, and the torque command value calculated by the torque command calculation unit 26 when the motor rotates reversely.
First, the position command calculation unit 20 calculates the position command value CP. In steps S11 and S12 in
As illustrated in
Then, in step S14, it is determined whether the screw 51 is accelerated or performs uniform motion. In other words, it is determined whether the movable unit WA is accelerated or performs uniform motion. It can be determined from the speed command value. When the screw 51 is determined as accelerated or performing uniform motion, the processing proceeds to step S15. In step S15, the memory unit 33 memorizes the error calculated in step S13 in association with the torque command value at that time as the initial error.
When the screw 51 is decelerated, a direction of a force generated by the motor is changed according to a magnitude relationship between a frictional force and a necessary deceleration force. Therefore, a direction of elastic deformation is not unique, and in some cases, the initial error is acquired in association with the torque command value in a state in which elastic deformation, namely both of the initial error and the torque command value scarcely occur. According to the present invention, since the error and the torque command value when the screw 51 is accelerated or performs uniform motion are adopted, at least the initial error corresponding to the frictional force acting on the machine is secured, and an effect of an error of the initial error and an error of the torque command value on the compensation amount is excluded.
Then, in step S16, it is determined whether the initial error and the torque command value are held, and when they are held, the processing proceeds to step S17. In step S17, the compensation amount calculation unit 34 calculates the compensation amount.
In step S16, the compensation amount calculation unit 34 calculates the spring constant by dividing the torque command value held in the memory unit 33 by the corresponding initial error. The memory unit 33 may memorize only the spring constant by calculating the spring constant in each predetermined period by dividing the torque command value by the initial error. In this case, a capacity of the memory unit 33 can be reduced.
When the motor M rotates reversely, the compensation amount calculation unit 34 divides the torque command value at the reversing rotation by the spring constant. Needless to say, a reciprocal of the spring constant may be calculated in advance and multiplied by the torque command value. Thus, an appropriate compensation amount corresponding to torque at the reversing rotation can be acquired from a following equation (1).
Compensation amount=(initial error in first direction/corresponding torque command value in first direction)×(current torque command value)−)current error) (1)
In the equation (1), the term (initial error in first direction/corresponding torque command value in first direction) is a reciprocal of a spring constant of the above-described elastic factor. The first direction is, for example, the left direction indicated in
With reference to
The speed detection value DV detected by the first position detection unit 11 is subtracted from the speed command value CV by a subtractor 25 and input to the torque command calculation unit 26. The torque command value calculated by the torque command calculation unit 26 is input to the motor M to drive the motor M.
According to the conventional technique, a compensation amount is calculated using a following equation (2).
Compensation amount=initial error in first direction−current error (2)
On the contrary, according to the present invention, the spring constant is calculated from the initial error in the first direction and corresponding torque. The compensation amount is calculated using the spring constant according to torque at the reversing rotation.
As described above, according to the present invention, the compensation amount is calculated in consideration of elastic deformation, so that the compensation amount does not become too large. Thus, a workpiece is not excessively machined, and a notch is not formed on a surface of the workpiece. Therefore, the present invention can reduce a likelihood that it is determined as defective machining in the workpiece.
According to the first and the second aspects, the compensation amount is calculated in consideration of elastic deformation, so that the compensation amount does not become too large. Thus, a workpiece is not excessively machined, and a notch is not formed on a surface of the workpiece.
According to the third aspect, a problem that a direction of a force generated by the motor is not uniquely fixed when decelerating can be eliminated. The force generated by the motor when decelerating can be acquired by subtracting frictional force acting on the machine from a force necessary for deceleration. In other words, according to the third aspect of the present invention, a problem that a direction of a force of the motor and a direction of elastic deformation (expansion or contraction) are changed in response to a magnitude relationship between the frictional force and the deceleration force is eliminated. Accordingly, a more accurate elastic deformation model can be provided, and a likelihood that a notch is formed on a surface of the workpiece can be further reduced.
While the present invention has been described with reference to the exemplary embodiment, it will be obvious for a person skilled in the art that various modifications, omission, and addition can be made in addition to the above-described modifications without departing from the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2014-206650 | Oct 2014 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5373220 | Tomoguchi | Dec 1994 | A |
5895181 | Ito | Apr 1999 | A |
6097168 | Katoh | Aug 2000 | A |
20120243956 | Yamazaki | Sep 2012 | A1 |
20140121818 | Iwashita et al. | May 2014 | A1 |
20140197773 | Ikai | Jul 2014 | A1 |
Number | Date | Country |
---|---|---|
103080859 | May 2013 | CN |
103154839 | Jun 2013 | CN |
103792955 | May 2014 | CN |
102015007132 | Dec 2015 | DE |
2004234205 | Aug 2004 | JP |
2010240827 | Oct 2010 | JP |
2014054001 | Mar 2014 | JP |
0239574 | May 2002 | WO |
Entry |
---|
Untranslated Decision to Grant a Patent mailed by Japan Patent Office, Feb. 23, 2016, 3 pages. |
Machine translation of Decision to Grant a Patent mailed by Japan Patent Office, Feb. 23, 2016, 3 pages. |
Untranslated Notification of Reasons for Refusal mailed by Japan Patent Office, Dec. 8, 2015, 3 pages. |
Machine translation of Notification of Reasons for Refusal mailed by Japan Patent Office, Dec. 8, 2015, 3 pages. |
English Abstract and Machine Translation for German Publication No. 10 2015 007 132 A1, published Dec. 17, 2015, 11 pgs. |
English Abstract and Machine Translation for Japanese Publication No. 2014-054001 A, published Mar. 20, 2014, 21 pgs. |
English Abstract and Machine Translation for Chinese Publication No. 103792955 A, published May 14, 2014, 1 pg. |
English Abstract and Machine Translation for Chinese Publication No. 103154839 A, published Jun. 12, 2013, 8 pgs. |
English Abstract and Machine Translation for Chinese Publication No. 103080859 A, published May 1, 2013, 14 pgs. |
English Abstract and Machine Translation for Japanese Publication No. 2004-234205 A, published Aug. 19, 2004, 17 pgs. |
English Translation of Japanese Publication No. 2010240827, published Oct. 28, 2010, 32 pages. |
English Translation of Japanese Publication No. 0239574, published May 16, 2002, 19 pages. |
Number | Date | Country | |
---|---|---|---|
20160098031 A1 | Apr 2016 | US |