This application claims priority under 35 U.S.C. § 119 and/or § 365 to Japanese Application No. 2015-30794 filed Feb. 19, 2015, the entire contents is incorporated herein by reference.
1. Field of the Invention
The present invention relates to a numerical controller, and in particular, relates to a numerical controller performing speed control that suppresses excessive positioning deviation.
2. Description of the Related Art
During machining, there always arises a difference between a position command from a numerical controller controlling the machine and an actual position of a servo motor, which difference is referred to as a position deviation amount. When the position deviation amount exceeds a predefined allowable position deviation amount, the numerical controller generates a position deviation excess alarm and determines that the servo motor is in an abnormal state to shut the magnetization of the servo motor. Hence, the servo motor is thereby stopped without acceleration/deceleration.
In this case, the machine suffers shock due to the sudden stop of the servo motor. In the case of a gravitational axis, there is danger of its falling until a brake works. If it happens during the machining, the following problems would arise: a workpiece and/or a tool may be affected; recovery operation and/or determination of the cause may take time and extend the machining time; and so on. The allowable position deviation amount is determined by an operator using the following expression (1) and set to the numerical controller:
ERR=V×(1−α)/PG (1)
where, ERR is the allowable position deviation amount, V is a feed speed, PG is a position gain of a servo, and α is a feedforward coefficient.
The allowable position deviation amount ERR is typically calculated and set based on a feed speed of approximately 1.2 times the fastest speed of rapid traverse with the position gain PG of the servo and the feedforward coefficient α being fixed values. Otherwise, it may separately be configurable for cutting.
In practice, however, the position gain PG of the servo and the feedforward coefficient α may be switched for use depending on the purpose (movement command and the like) how the servo motor is operated, for example, in cutting feed, in rapid traverse, in synchronizing the main spindle with the servo motor, and the like. Conventional techniques for preventing such problems occurring when the position deviation excess alarm arises are disclosed in Japanese Patent Application Laid-Open No. 2004-321000 and Japanese Patent Application Laid-Open No. 04-293107.
Japanese Patent Application. Laid-Open No. 2004-321000 discloses a technology of servo motor control in which deviations are created between a position command, a speed command and the like and their feedbacks and a current command based on the deviations is clamped at a predetermined current restriction value.
On the other hand, Japanese Patent Application Laid-Open No. 04-293107 discloses a technology in which only when excessive load is exerted on a feed motor, an appropriate speed value is calculated from an actual position deviation amount, a theoretical position deviation amount and a servo loop gain to clamp the speed on the basis of the appropriate speed value.
In the conventional techniques as described above, when the actual position deviation amount which is the feedback of the servo motor exceeds a predefined allowable position deviation amount, the alarm is generated, clamping is performed at a speed not exceeding the allowable position deviation amount, or the deviations are created between the position command, the speed command and the like and their feedbacks to clamp the current command at a predetermined current restriction value as servo control.
The allowable position deviation amount is obtained from the speed, the loop gain of the servo and the feedforward coefficient using the expression (1) above. Since the speed, loop gain and feedforward coefficient may be changed depending on the movement command or the like, these may be changed in accordance with the movement command or the like. Moreover, when the movement commands having a different loop gain of the servo or a different feedforward coefficient, as would be found in the cutting feed and the rapid traverse, are overlapped, the loop gain of the servo and the feedforward coefficient may be switched during overlapping.
Moreover, in a function used for a press machine or the like, the loop gain of the servo may be varying depending on the position during the movement performed by one movement command. In such a case, the allowable position deviation amount with respect to the feed speed at that time cannot be correctly checked, and the position deviation excess alarm may arise incorrectly.
In addition, in either of the technology disclosed in Japanese Patent Application Laid-Open No. 2004-321000 and the technology disclosed in Japanese Patent Application Laid-Open No. 04-293107 above, the feedback values such as the position feedback and the actual position deviation amount are checked. Hence, time lag may arise in checking, and the position deviation amount which has been fed back may exceed the position deviation amount which is wanted to be checked. Moreover, the current command and the speed have to be changed so that a position deviation amount does not exceed the allowable position deviation amount, based on the fed-back position deviation amount. Hence, there is a problem that operation cannot be achieved at the acceleration/deceleration which is desired to be under control.
Therefore, an object of the present invention is to provide a numerical controller capable of executing a movement command at a speed not exceeding a feed speed which is given by a position deviation not exceeding a predefined allowable position deviation amount even when a position gain of a servo or a feedforward coefficient varies in executing the movement command.
A numerical controller according to the present invention controls a machine on the basis of a machining program, and includes: a program analysis unit that analyzes the machining program to generate command data; a parameter setting unit that sets a parameter actually used for servo control on the basis of the command data; and a speed control unit that obtains a feed speed which is given by a position deviation not exceeding a predefined allowable position deviation amount, on the basis of the set parameter and a predefined allowable position deviation amount, and when a feed speed commanded by the command data is larger than the obtained feed speed, clamps the feed speed commanded by the command data at the obtained feed speed.
The parameter may contain at least a position gain of a servo and a feedforward coefficient.
The speed control unit may obtain the feed speed which is given by a position deviation not exceeding the predefined allowable position deviation amount, as a maximum speed which satisfies the expression:
V≤ERR×PG/(1−α)
where V is the feed speed which is given by a position deviation not exceeding the predefined allowable position deviation amount, ERR is the allowable position deviation amount, PG is a position gain of a servo, and α is a feedforward coefficient.
According to the numerical controller according to the present invention, a movement command can be executed at a speed not exceeding a feed speed which is given by a position deviation not exceeding a predefined allowable position deviation amount even when a position gain of a servo or a feedforward coefficient which is actually used varies in executing the movement command, enabling to suppress a position deviation amount excess alarm from arising in advance. Moreover, a movement command according to a set acceleration/deceleration value can be achieved.
The aforementioned and other objects and features of the present invention will be apparent from the following description of embodiments with reference to the appended drawings, in which:
In the present invention, a feed speed which is given by a position deviation not exceeding a predefined allowable position deviation amount is obtained based on a position gain of a servo actually used in a movement command, a feedforward coefficient actually used in the movement command, and the predefined allowable position deviation amount, in executing the movement command. Then, when a command speed in the movement command is larger than a feed speed which is given by a position deviation not exceeding the predefined allowable position deviation amount, the command speed is clamped at the feed speed which is given by a position deviation not exceeding the predefined allowable position deviation amount to execute the movement command. Moreover, by performing the clamping of the command speed before performing acceleration/deceleration, operation at a set acceleration/deceleration can be achieved.
First, a numerical controller according to a first embodiment of the present invention is described using
As illustrated in
The program analysis unit 11 reads and analyzes a command block from a machining program 21 stored in a memory (not shown), and generates and outputs command data.
The parameter setting unit 12 determines whether or not a loop gain PG of a servo and a feedforward coefficient α are needed to be changed in accordance with a movement command commanded by the command data, on the basis of the command data output by the program analysis unit 11. When needed to be changed, the parameter setting unit 12 changes the loop gain PG of the servo and the feedforward coefficient α.
The speed control unit 13 calculates a speed V which is given by a position deviation not exceeding the predefined allowable position deviation amount ERR, using the expression (2) below, on the basis of the loop gain (position gain of the servo) PG and the feedforward coefficient α which are set by the parameter setting unit 12 and actually used in the movement command commanded by the command data, and the allowable position deviation amount ERR which is predefined.
V≤ERR×PG/(1−α) (2)
Then, the speed control unit 13 compares the calculated speed V with a command speed in the movement command commanded by the command data. When the command speed is larger than the speed V, the speed control unit 13 changes (clamps) the feed speed in the movement command commanded by the command data so as to be V.
The interpolation unit 14 generates data obtained by performing interpolation calculation of points on a command path for an interpolation period on the basis of the movement command commanded by the command data and the speed determined by the speed control unit 13.
The acceleration/deceleration unit 15 performs acceleration/deceleration processing on the basis of the interpolation data output by the interpolation unit 14 to calculate the speed of each drive axis for each interpolation period, and outputs the calculated speed data to the servo control unit 16.
Then, the servo control unit 16 controls a servo motor 2 on the basis of the output of the acceleration/deceleration unit 15 and the parameters such as the loop gain PG of the servo and the feedforward coefficient α which are set by the parameter setting unit 12.
The basic configuration and processing flow in the numerical controller of the present invention have been described so far. Hereafter, more specific embodiments in the numerical controller of the present invention are presented.
A numerical controller according to a second embodiment of the present invention is described using
The numerical controller 1 according to the present embodiment is configured to perform acceleration/deceleration before interpolation and acceleration/deceleration after interpolation and includes an acceleration/deceleration before interpolation unit 17 and an acceleration/deceleration after interpolation unit 18 as illustrated in
Functions of individual elements constituting this numerical controller 1 illustrated in
When the acceleration/deceleration before interpolation is enabled, the acceleration/deceleration before interpolation unit 17 performs the acceleration/deceleration before interpolation processing on the basis of the movement command commanded by the command data and the speed defined by the speed control unit 13, and outputs the result data to the interpolation unit 14.
The interpolation unit 14 generates data obtained by interpolation of the points on the command path for the interpolation period, on the basis of the result data output by the acceleration/deceleration before interpolation unit 17 in the case where the acceleration/deceleration before interpolation is enabled, or on the basis of the movement command commanded by the command data and the speed defined by the speed control unit 13 in the case where the acceleration/deceleration before interpolation is disabled.
Then, when the acceleration/deceleration after interpolation is enabled, the acceleration/deceleration after interpolation unit 18 performs the acceleration/deceleration after interpolation processing on the basis of the interpolation data output by the interpolation unit 14 to calculate the speed of each drive axis for each interpolation period, and outputs the result data to the servo control unit 16. When the acceleration/deceleration after interpolation is disabled, the output of the interpolation unit 14 is output to the servo control unit 16.
Since processes in step SB01 to step SB06 in this flowchart of
A numerical controller according to a third embodiment of the present invention is described.
The numerical controller 1 according to the present embodiment performs control in which movement commands different in loop gain of the servo and in feedforward coefficient, such as cutting feed and rapid traverse, overlap.
When a movement command of the cutting feed and a movement command of the rapid traverse overlap, loop gains of the servo and/or feedforward coefficients are switched in switchover between the cutting feed and the rapid traverse, during movement in the overlapping.
In the numerical controller of the present embodiment, even before and after loop gains of the servo and/or feedforward coefficients are switched in the switchover, on the basis of the position gain of the servo and the feedforward coefficient which are actually used and the predefined allowable position deviation amount, the feed speed which is given by a position deviation not exceeding the predefined allowable position deviation amount is sequentially obtained. When the feed speed to be output is larger than the speed which is given by a position deviation not exceeding the predefined allowable position deviation amount, the speed obtained by clamping at the speed which is given by a position deviation not exceeding the predefined allowable position deviation amount is set as the feed speed. Then, similarly to the aforementioned numerical controller according to the first embodiment, the speed control processing, the acceleration/deceleration processing and the interpolation processing are performed.
As described above, in the present embodiment, in the case where a movement command of the cutting feed and a movement command of the rapid traverse overlap, even when loop gains of the servo and/or feedforward coefficients are switched during a movement in overlapping, the speed which is given by a position deviation not exceeding the predefined allowable position deviation amount is sequentially calculated. Further, the speed is controlled based on the calculated speed. Hence, the position deviation amount excess alarm can be beforehand suppressed from arising. Moreover, the movement command according to the set acceleration/deceleration value can be achieved.
A numerical controller according to a fourth embodiment of the present invention is described.
The numerical controller 1 according to the present embodiment performs control in which the loop gain of the servo is varying with the position of the servo motor during the movement performed by one movement command, and is mainly applied to control of a press machine and the like.
In the numerical controller according to the present embodiment, based on the loop gain of the servo which is actually used and is varying with the position, the feedforward coefficient actually used, and the predefined allowable position deviation amount, the feed speed which is given by a position deviation not exceeding the predefined allowable position deviation amount is sequentially obtained. When the feed speed to be output is larger than the speed which is given by a position deviation not exceeding the predefined allowable position deviation amount, the speed obtained by clamping at the speed which is given by a position deviation not exceeding the predefined allowable position deviation amount is set as the feed speed. Then, similarly to the numerical controller according to the first embodiment, the speed control processing, the acceleration/deceleration processing and the interpolation processing are performed.
As described above, in the present embodiment, even when as in a function used in a press machine and the like, the loop gain of the servo is varying with the position of the servo motor during the movement performed by one movement command, the speed which is given by a position deviation not exceeding the predefined allowable position deviation amount is sequentially obtained. As the speed is controlled based on that calculated speed, the position deviation amount excess alarm can be beforehand suppressed from arising and the movement command according to the set acceleration/deceleration value can be achieved.
As described above, the embodiments of the present invention have been described. The present invention is not limited to the examples in the aforementioned embodiments but can be implemented in various modes with proper modifications added thereto.
Number | Date | Country | Kind |
---|---|---|---|
2015-30794 | Feb 2015 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5767646 | Matsumoto | Jun 1998 | A |
6437534 | Kakino | Aug 2002 | B1 |
9785139 | Oda | Oct 2017 | B2 |
9851709 | Sato | Dec 2017 | B2 |
20010012972 | Matsumoto | Aug 2001 | A1 |
20040258495 | Kakino | Dec 2004 | A1 |
20080024083 | Yamaguchi | Jan 2008 | A1 |
20100087948 | Yamaguchi | Apr 2010 | A1 |
20120010745 | Ide | Jan 2012 | A1 |
20120283851 | Yamamoto | Nov 2012 | A1 |
20130264988 | Iwashita | Oct 2013 | A1 |
20140084838 | Horiguchi | Mar 2014 | A1 |
20140292250 | Hirose | Oct 2014 | A1 |
20140350709 | Mochida | Nov 2014 | A1 |
20150008861 | Sonoda | Jan 2015 | A1 |
Number | Date | Country |
---|---|---|
S64-31205 | Feb 1989 | JP |
H01-308181 | Dec 1989 | JP |
H04-293107 | Oct 1992 | JP |
H04-362702 | Dec 1992 | JP |
2004-321000 | Nov 2004 | JP |
2008-269349 | Nov 2008 | JP |
Entry |
---|
Decision to Grant a Patent issued Jan. 31, 2017 in Japanese Patent Application No. 2015-030794 (3 pages) with an English Translation (3 pages). |
Number | Date | Country | |
---|---|---|---|
20160246284 A1 | Aug 2016 | US |