SERVO CONTROLLER

Abstract: The servo controller when the rotational direction of the servo motor is inverted, adds backlash correction data (BC) to position deviation data (PC) to generate a speed instruction (VCMD) and adds backlash acceleration quantity (BACC) to the speed instruction to correct backlash. In order to terminate the backlash acceleration at a suitable time, a counter (19) adds up the speed feedback pulses from a moment when the acceleration control is started, an acceleration stop instruction unit (20) monitors the added-up value of the speed feedback pulses, and an acceleration quantity output unit (21) no longer produces the backlash acceleration quantity (BACC) when the added-up value has reached a predetermined value. @(13pp Dwg.No.1/2)@

Description: Technical Field This invention relates to a servo-control apparatus and, more particularly, to a servo-control apparatus capable of performing a backlash correction rapidly and of reducing quadrant projections produced as a result of friction and backlash. Background Art In order to correct for backlash of gears or the like when the direction of rotation of a servomotor controlling the feed shaft of a machine tool is reversed, or in other words, when the direction of travel of the movable element of the machine is reversed, preset backlash correction data is applied to position error data to generate a velocity command, and the rotation of the servomotor is controlled based on the velocity command. However, since the backlash correction data acts upon a velocity loop through a predetermined position gain K P , the machine does not move immediately because of a delay in the servo-system. As a consequence, a quadrant projection is produced at the location where the direction of machining is reversed. Accordingly, in order to diminish the effects of backlash and friction and reduce projections at quadrant changeover points at the time of cutting, it has been proposed to apply a suitable amount of acceleration (referred to as "backlash acceleration") to the velocity command for a prescribed period of time. Documents WO 88/04445 and DE-C1-36 41 888 disclose such backlash correction. However, when an NC unit effects backlash correction at the same time that the backlash correction data is delivered to the servo side, the motor is not completely reversed in direction owing to the delay between the command and the servo-system. The unfortunate result is that bite-in is caused on the inner side. In actuality, therefore, the direction in which the motor rotates is monitored and backlash acceleration is applied at the timing of the reversal in direction of rotation. When control of backlash acceleration is carried out at the time of the reversal in motor direction, the occurrence of quadrant projections caused by backlash and friction in the machine system can be reduced considerably. There are cases where the effect of a sudden change in velocity at the end of acceleration shows up at the cut surface in the form of inadequate smoothness if the amount of backlash acceleration is made constant over the entire period of application. Accordingly, it has been proposed to enlarge the amount of backlash acceleration at the start of acceleration in order to prevent inadequate acceleration, and thereafter reduce the amount of acceleration gradually with the passage of time to prevent a sudden change in velocity when backlash acceleration ends. However, the backlash acceleration algorithm itself is open-loop control, and it is required that parameters (the amount of backlash acceleration, backlash acceleration time, etc.) be set accurately for each and every machine. In addition, optimum parameters change depending upon cutting velocity, workpiece weight, temperature, the condition of the cut surface, etc. Consequently, even if quadrant projections can be made very small under certain conditions, these projections can enlarge or cut-in can result on the inner side when cutting is performed under other conditions. Accordingly, an object of the present invention is to provide a servo-control apparatus capable of eliminating backlash with the same parameters even if machine conditions and cutting conditions change, thereby making it possible to eliminate quadrant projections. Another object of the present invention is to provide a servo-control apparatus capable of ending backlash acceleration at an optimum timing, whereby the amount of backlash acceleration can be made a suitable value and quadrant projections can be eliminated. Disclosure of the Invention In accordance with the present invention, the foregoing objects are attained by monitoring the accumulated value of velocity feedback and stopping backlash acceleration when the accumulated value becomes equal to a predetermined value. Brief Description of the Drawings Fig. 1 is a block diagram of a servo-control apparatus according to the present invention; and Fig. 2 shows the results of measurement in a case where a machine tool is made to cut a perfect circle using the servo-control apparatus according to the present invention. Best Mode for Carrying Out the Invention Fig. 1 is a block diagram of a servo-control apparatus according to the present invention. Numeral 11 denotes an NC unit which generates a move command P C every predetermined sampling time T S , and which outputs an amount of backlash correction B C when there is a reversal in the direction of the move command. Numeral 12 denotes a position error arithmetic unit for computing a difference between the move command P C and a detected amount of movement P A every sampling time. Numeral 13 designates an error counter for accumulating the difference in accordance with the equation E r + (P C - P A ) → E r and outputting a position error E r . Numeral 15 denotes a velocity controller for outputting a torque command based on the difference between a velocity command V CMD′ and velocity feedback (actual velocity) V A . Numeral 16 represents an arithmetic unit for computing a frictional torque T f from a torque command T CMD outputted by the velocity controller 15. Shown at numeral 17 is a machine system including a servomotor, which is the object controlled, a pulse coder, etc. The machine system 17 is expressed by a transfer function (J m represents motor inertia). Numeral 18 denotes a backlash correction timing discriminator, and 19 a counter to which pulses generated by a pulse coder (not shown) are applied as the velocity feedback V A in order to be counted during each sampling time period T S . Numeral 20 denotes an acceleration-stop instructing unit for monitoring the accumulated value in the counter and outputting an acceleration-stop signal ASP when the accumulated value attains a predetermined value, e.g,. 2 - 3. Numeral 21 denotes a unit for outputting the amount of acceleration. An adder for adding the amount of backlash acceleration is shown at numeral 22. The backlash correction timing discriminator 18 stores and holds the amount of backlash correction B C supplied by the NC unit 11 when the direction of the move command is reversed. In addition, the discriminator 18 monitors the content (position error) E r of the error counter 13 and detects the reversal in the direction of rotation of the servomotor in response to E r = 0. In response to detection of the reversal in direction of rotation, the discriminator 18 outputs the amount of backlash correction B C to an adder 20, outputs a signal RDI indicative of the reversal in rotational direction to the acceleration output unit 21, and outputs a counter reset signal RST. The acceleration output unit 21 outputs an amount of backlash acceleration B ACC when the position error E r becomes zero (RDI = "1"), and terminates the output of the backlash acceleration when the accumulated value of velocity backlash V A becomes equal to a predetermined value (ASP = "1"). The overall operation of the apparatus of Fig. 1 will now be described. The difference, which is calculated in the arithmetic unit 12, between the move command P C and detected amount of movement P A every sampling time T S is integrated by the error counter 13 to obtain the position error E r , after which the position error is multiplied by the position gain K P to provide the velocity command V CMD . The velocity controller 15 subsequently outputs the torque command T CMD conforming to a velocity error, thereby rotating the servomotor. When the direction of commanded movement is reversed under these conditions, the preset amount of backlash B C is outputted by the NC unit 11, and the latter generates a move command PC in the reversed direction every sampling time T S . The backlash correction timing discriminator 18 holds the abovementioned amount of backlash correction B C and subsequently monitors the content (position error) E r of the error counter 13 in parallel with the servo-control processing described above. When the condition E r = 0 is established, it is determined that the servomotor has reversed direction. In response to detection of the reversal in rotational direction, the discriminator 18 outputs the held backlash correction B C to the adder 20, outputs the rotational direction reversal signal RDI to the acceleration output unit 21 and outputs the counter reset signal RST to reset the content of counter 19 to zero. The backlash correction adder 20 adds the backlash correction B C and the position error E r and applies the result to the position gain setting unit 14. The latter multiplies the result by the position gain K P to generate the velocity command V CMD conforming to the amount of backlash correction. The acceleration output unit 21 outputs a constant amount of backlash acceleration B ACC in response to the rotational direction reversal signal RDI. As a result, the adder 22 adds the amount of backlash acceleration B ACC and the velocity command V CMD and applies the sum to the velocity controller 15 as the true velocity command V CMD′ . The velocity controller 15 computes the velocity error and outputs the torque command TCMD conforming to this velocity error, thereby rotating the servomotor 17 to rapidly correct backlash. In parallel with the foregoing processing, the counter 19 accumulates the velocity feedback VA from the moment acceleration control begins (i.e., from the moment E r = 0 is established). That is, the counter 19 receives, as the velocity feedback V A , the pulses generated by a pulse coder (not shown) and counts these pulses during each sampling time period T S of digital servo-processing. The acceleration-stop instructing unit 20 monitors the accumulated value in the counter 19 and outputs the acceleration-stop signal ASP when the accumulated value attains a predetermined value, e.g,. 2 - 3. This causes the acceleration output unit 21 to stop outputting the backlash acceleration signal B ACC , thereby completing backlash acceleration control. The reason for terminating backlash acceleration when the accumulated value reaches 2 - 3 is as follows: In digital servo-control, the sampling time T S is on the order of 1 msec, and spatial resolution of the servomotor, which is dependent upon the resolution of the pulse coder, is on the order of 10,000/rev. Velocity is very low when the servomotor reverses direction (i.e., at the start of acceleration control). Consequently, the number of feedback pulses (velocity feedback) V A every sampling time is usually zero and sometimes attains a value of one. Therefore, when it is detected that the velocity feedback V A has attained a value of one and backlash acceleration is terminated, termination timing is too soon, a sufficient backlash acceleration cannot be applied and quadrant projections cannot be eliminated. Further, in an arrangement where backlash acceleration is terminated upon detecting that the condition V A = 1 has been established, the termination of backlash acceleration will occur if the condition VA = 1 is established due to slight vibration in the motor for some reason (such as an external disturbance or unsteady current). As a result, the amount of acceleration will be greatly inadequate and backlash acceleration control will lose its meaning. On the other hand, if backlash acceleration is terminated after the number of feedback pulses (velocity feedback) V A in the sampling time T S is detected to have attained a value of two, the rotational velocity at this time will be 12 rpm. As a result, the timing for terminating acceleration will be too late, backlash acceleration will be excessive and cut-in will occur on the inner side. Accordingly, in the present invention, the arrangement is such that the accumulated value of the velocity feedback V A is monitored and backlash acceleration is terminated when the accumulated value becomes 2 - 3. With such an arrangement, timing for ending backlash acceleration can be made that at which the amount of backlash acceleration attains the optimum value without being hastened or retarded excessively and irrespective of some variation in load conditions, a variation in cutting velocity, etc. Fig. 2 shows the results of measurement in a case where a machine tool is made to cut a perfect circle using the servo-control apparatus according to the present invention. The dashed line indicates a true circle, and numerals 1, 2 indicate the results of measurement for a case where cutting is performed in clockwise and counter-clockwise directions, respectively. Quadrant projections and cut-in on the inner side are eliminated at quadrant changeover points 3a - 3d. Thus, in accordance with the present invention, it is arranged to start backlash acceleration when the direction of servomotor rotation is reversed and end backlash acceleration when the accumulated value of velocity feedback becomes equal to a predetermined value of 2 - 3. As a result, timing for ending backlash acceleration can be made that at which the amount of backlash acceleration attains the optimum value without being hastened or retarded excessively and irrespective of some variation in load conditions, a variation in cutting velocity, etc. This makes it possible to eliminate quadrant projections and cut-in on the inner side.

Claims: A servo-control apparatus for generating a velocity command (V CMD ) by applying backlash correction data (B C ) to position error data (E r ) when direction of rotation of a servomotor is reversed, and performing a backlash correction by adding an amount of backlash acceleration (B ACC ) to said velocity command, characterized by comprising: means (13) for detecting reversal of the direction of rotation of the servomotor; detecting means (19) for detecting that an accumulated value of velocity feedback has become equal to a predetermined value after backlash acceleration is started; and acceleration output means (21) for outputting the amount of backlash acceleration when direction of rotation of a servomotor is reversed, and terminating output of the amount of backlash acceleration when the accumulated value of velocity feedback becomes equal to the predetermined value. A servo-control apparatus according to claim 1, wherein said predetermined value is two or three.

Inventors: IWASHITA YASUSUKE C O FANUC DA, IWASHITA, YASUSUKE, C/O FANUC DAI-3 VIRAKARAMATSU
Applicants: FANUC LTD, FANUC LTD.
Application year: 1989
Main classification: G05B19
IPC codes: G05D3, G05B19