Numerical controller performing oscillation cutting correcting spindle tracking error

10705502 ยท 2020-07-07

Assignee

Inventors

Cpc classification

International classification

Abstract

A numerical controller includes a position instruction generating unit configured to generate the position instruction; an oscillation instruction generating unit configured to generate the oscillation instruction; a position speed control unit configured to add the position instruction and the oscillation instruction to generate a synthesized instruction; and a current control unit configured to control movement of a tool or rotation of a spindle. The oscillation instruction generating unit includes a tracking error calculating unit configured to obtain and calculate an actual angle and an ideal angle of the spindle, and a frequency recalculating unit configured to recalculate the oscillation frequency or a rotational speed of the spindle based on the actual angle and the ideal angle. The current control unit controls the movement of the tool or the rotation of the spindle according to the recalculated oscillation frequency or rotational speed of the spindle.

Claims

1. A numerical controller configured to perform oscillation cutting by superimposing an oscillation instruction on a position instruction, the oscillation instruction including specifying an oscillation frequency and an oscillation amplitude, the numerical controller comprising: a position instruction generating unit configured to generate the position instruction; an oscillation instruction generating unit configured to generate the oscillation instruction; a position speed control unit configured to add the position instruction and the oscillation instruction to generate a synthesized instruction; and a current control unit configured to control movement of a tool or rotation of a spindle, wherein the oscillation instruction generating unit includes: a tracking error calculating unit configured to obtain and calculate an actual angle and an ideal angle of the spindle, and a frequency recalculating unit configured to recalculate the oscillation frequency as a multiple of a ratio of the ideal angle divided by the actual angle, the oscillation instruction generating unit regenerates an oscillation instruction based on the recalculated oscillation frequency, the position speed control unit adds the position instruction and the regenerated oscillation instruction to regenerate a synthesized instruction, and the current control unit controls the movement of the tool or the rotation of the spindle according to the regenerated synthesized instruction.

2. The numerical controller according to claim 1, wherein the oscillation instruction generating unit further includes an amplitude recalculating unit configured to recalculate the oscillation amplitude such that tool paths overlap, and the current control unit further controls the movement of the tool according to the recalculated oscillation amplitude.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) Aforementioned and other objects and characteristics of the present invention will be made more apparent from description of the following embodiment in view of the accompanying drawings. Of these drawings:

(2) FIG. 1 is a view for explaining a principal of conventional oscillation cutting;

(3) FIG. 2 is a view for explaining a problem caused by a tracking error of the conventional oscillation cutting;

(4) FIG. 3 is a block diagram for explaining a configuration of a numerical controller;

(5) FIG. 4 is a view for explaining operations of a tracking error calculating unit and a frequency recalculating unit;

(6) FIG. 5 is a view for explaining an operation of an amplitude recalculating unit;

(7) FIG. 6 is a view for explaining an operation according to a first embodiment; and

(8) FIG. 7 is a view for explaining an operation according to a second embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

(9) Embodiments of the present invention will be described below with reference to the drawings below.

(10) FIG. 3 is a block diagram for explaining a functional aspect of a numerical controller 100 according to an embodiment of the present invention. The numerical controller 100 includes a position instruction generating unit 110 that generates a position instruction, i.e., a movement instruction of a tool according to a machining program, an oscillation instruction generating unit 120 that generates an oscillation instruction; a position speed control unit 130 that adds the position instruction and the oscillation instruction to generate a synthesized instruction; and a current control unit 140 that controls a current to drive a spindle motor or a servo motor according to the synthesized instruction.

(11) A conventional current control unit typically controls only a servo motor that moves a tool position. However, the current control unit 140 according to the present embodiment controls a spindle motor that rotates a spindle. Furthermore, a conventional numerical controller receives a position feedback from the servo motor, and corrects a position deviation. However, according to the present embodiment, too, it is possible to correct a position deviation likewise.

(12) The oscillation instruction generating unit 120 includes a frequency calculating unit 121 that calculates an appropriate oscillation frequency to perform oscillation cutting, an amplitude calculating unit 122 that calculates an oscillation amplitude likewise, a tracking error calculating unit 123 that calculates a tracking error based on feedbacks from a spindle motor and a servo motor, a frequency recalculating unit 124 that corrects a frequency according to the tracking error, and an amplitude recalculating unit 125 that corrects an amplitude according to the tracking error. The frequency recalculating unit 124 and the amplitude recalculating unit 125 correct the frequency and the amplitude such that tool paths overlap even when the tracking error occurs, so that chips continue to be shredded.

(13) An operation of the numerical controller 100 will be described with reference to FIGS. 3 and 4. In this regard, the present embodiment will mainly describe processing different from conventional oscillation cutting, and will omit or simplify known processing as appropriate.

(14) First, the position instruction generating unit 110 interprets the machining program and generates a position instruction. The oscillation instruction generating unit 120 generates an oscillation instruction. In this regard, the frequency calculating unit 121 and the amplitude calculating unit 122 determine an appropriate oscillation frequency and oscillation amplitude for shredding chips according to a known technique disclosed in, for example, Japanese Patent Application Laid-Open No. 2017-056515 A. The position speed control unit 130 adds the position instruction and the oscillation instruction to generate a synthesized instruction. The current control unit 140 controls the servo motor according to the synthesized instruction, and operates (feeds and oscillates) the tool.

(15) The tracking error calculating unit 123 receives a position (angle) feedback from the spindle motor, and detects that a spindle rotates once (i.e., a rotation angle that is actual one (referred to as an actual angle below) is 360 degrees). Furthermore, the tracking error calculating unit 123 receives the position and speed feedbacks from the servo motor, and obtains a position that is actual one (referred to as an actual position) or a speed that is actual one (referred to as an actual speed) of the tool at a point of time when the spindle rotates once. Furthermore, the tracking error calculating unit 123 calculates an angle that is ideal one (referred to as an ideal angle) for the spindle matching the actual position or the actual speed of the tool.

(16) This will be described with reference to FIG. 4. For example, it is assumed that an oscillation instruction is generated at I=2.5 (2.5 times of oscillation per rotation of spindle). At a point of time when the spindle rotates approximately once (actual angle=370 degrees), the actual position of the tool corresponding to a black point in FIG. 4 is obtained. A spindle angle corresponding to this actual position is calculated as 340 degrees in light of the synthesized instruction. This angle, 340 degrees, is the ideal angle. Thus, when there is a difference between the actual angle and the ideal angle, the tracking error occurs.

(17) The frequency recalculating unit 124 recalculates the oscillation frequency based on the actual angle and the ideal angle of the spindle. For example, the oscillation frequency multiplying factor I is recalculated according to a following equation.
Recalculated oscillation frequency multiplying factor I=current oscillation frequency multiplying factor I(ideal angle/actual angle)

(18) When, for example, the current oscillation frequency multiplying factor I is 2.5, the ideal angle is 340 degrees and the actual angle is 370 degrees, the recalculated oscillation frequency multiplying factor I is calculated as
2.5340/370=2.297.

(19) Alternatively, instead of adjusting the oscillation frequency multiplying factor I, the oscillation frequency multiplying factor I may be maintained, and a spindle rotational speed S may be adjusted. For example, the spindle rotational speed S is recalculated according to the following equation.
Recalculated spindle rotational speed S=current spindle rotational speed S(ideal angle/actual angle)

(20) When, for example, the current spindle rotational speed S is 200, the ideal angle is 340 degrees and the actual angle is 370 degrees, the recalculated spindle rotational speed S is calculated as
200340/370=183.78.

(21) When adopting the recalculated frequency, the amplitude recalculating unit 125 recalculates such an amplitude that the tool path of first rotation and a tool path of second rotation overlap.

(22) Significance of recalculation of the amplitude will be described with reference to FIG. 5. A solid line in FIG. 5 indicates a tool path having a frequency after recalculation. The tool path of the first rotation and the tool path of the second rotation that no longer overlap due to the tracking error come close to some degree thanks to frequency recalculation processing, yet do not overlap. In this case, when the amplitude calculating unit 122 adjusts the amplitude as illustrated in, for example, FIG. 5, it is possible to overlap the tool path of the first rotation and the tool path of the second rotation (indicated by a broken line circle in FIG. 5).

(23) In addition, only the frequency recalculation processing performed by the frequency recalculating unit 124 overlaps the tool path of the first rotation and the tool path of the second rotation. When, for example, the oscillation amplitude is high to some degree from beginning, it is sufficient to adjust only the frequency. In this case, the amplitude recalculating unit 125 does not need to recalculate the amplitude.

(24) The amplitude recalculating unit 125 recalculates an oscillation amplitude multiplying factor K according to, for example, the following procedure. The amplitude recalculating unit 125 stores tool paths of two rotations of the spindle in a buffer at all times. The amplitude recalculating unit 125 determines whether or not a curve indicated by the tool path of the first rotation and a curve indicated by the tool path of the second rotation have an intersection point. When there is the intersection point, the previous oscillation amplitude multiplying factor K is continuously used without recalculating the oscillation amplitude multiplying factor K. When there is not the intersection point, the curve indicating the tool path of the second rotation is corrected to increase the current oscillation amplitude multiplying factor K (by, for example, multiplying the current oscillation amplitude multiplying factor K with a multiplying factor larger than predetermined 1) to obtain the recalculated oscillation amplitude multiplying factor K. Thus, the oscillation amplitude is corrected to increase. For the recalculated oscillation amplitude multiplying factor K, too, the amplitude recalculating unit 125 repeatedly executes processing subsequent to the above determination processing until there is the intersection point.

(25) In addition, it is determined by the first determination processing that there is the intersection point, the current oscillation amplitude multiplying factor K may be corrected to decrease (by, for example, multiplying the current oscillation amplitude multiplying factor K with a multiplying factor smaller than predetermined 1). Furthermore, by repeatedly executing correction and determination processing, the minimum oscillation amplitude multiplying factor K having the intersection point is obtained. Generally, when an amplitude is higher, a load of a servo motor is greater. Consequently, by using the minimum oscillation amplitude multiplying factor K having the intersection point, it is possible to minimize the load of the servo motor.

(26) The position speed control unit 130 adds the oscillation instruction including the recalculated oscillation frequency and oscillation amplitude to the position instruction to generate the synthesized instruction. The current control unit 140 controls the servo motor according to the synthesized instruction.

(27) In addition, when the frequency recalculating unit 124 adjusts the spindle rotational speed S instead of the frequency multiplying factor I, the position speed control unit 130 adds the oscillation instruction including the recalculated oscillation amplitude to the position instruction to generate the synthesized instruction. The current control unit 140 controls the servo motor according to the synthesized instruction. In addition, the current control unit 140 controls the spindle motor according to the recalculated spindle rotational speed S.

(28) According to the present embodiment, the tracking error calculating unit 123 of the oscillation instruction generating unit 120 calculates the actual angle and the ideal angle of the spindle, and the frequency recalculating unit 124 and the amplitude recalculating unit 125 recalculate the frequency and the amplitude. Consequently, even when the spindle rotational speed fluctuates and the tracking error occurs, the tool path of the first rotation and the tool path of the second rotation are automatically adjusted to overlap again, and chip shredding capability is maintained without requiring tuning performed by a user.

First Embodiment

(29) The first embodiment will describe a characteristic operation of a numerical controller 100 in a case where a spindle override is changed.

(30) A case where the spindle override is changed from 150% to 100% at a point of time as illustrated in, for example, FIG. 6 will be described. When the spindle override is changed to decrease, an oscillating operation becomes faster than rotation of a spindle immediately after the change, and therefore chips cannot be cut well in some cases. In this case, when a tracking error calculating unit 123 of a frequency calculating unit 121 detects a tracking error, a frequency recalculating unit 124 performs processing of recalculating an oscillation frequency multiplying factor I, and correcting the oscillation frequency multiplying factor I to decrease. In addition, according to the present embodiment, a spindle rotational speed is defined by an override, and therefore processing of adjusting a spindle rotational speed S is inappropriate. Subsequently, an amplitude recalculating unit 125 recalculates an oscillation amplitude multiplying factor K as need arises.

(31) As described above, according to the present embodiment, the oscillation frequency also lowers following a decrease in the spindle rotational speed, so that chip shredding capability is maintained.

Second Embodiment

(32) The second embodiment will describe a characteristic operation of a numerical controller 100 in a case where circumferential speed constant control and oscillation cutting are simultaneously performed.

(33) As illustrated in, for example, FIG. 7, the circumferential speed constant control is carried out to perform tapering. The circumferential speed constant control is control for adjusting a spindle rotational speed to keep a constant cutting amount per unit time. By, for example, turning the spindle faster when the diameter of a workpiece is smaller, it is possible to keep a constant machining distance of a tool per unit time. When the spindle rotational speed is changed by the circumferential speed constant control to gradually increase, an oscillating operation cannot track rotation of the spindle, and chips cannot be cut well in some cases. In this case, when a tracking error calculating unit 123 of a frequency calculating unit 121 detects a tracking error, a frequency recalculating unit 124 performs processing of recalculating an oscillation frequency multiplying factor I, and correcting the oscillation frequency multiplying factor I to increase. In addition, according to the present embodiment, a spindle rotational speed is defined by the circumferential speed constant control, and therefore processing of a spindle rotational speed S is inappropriate. Subsequently, an amplitude recalculating unit 125 recalculates an oscillation amplitude multiplying factor K as need arises.

(34) As described above, according to the present embodiment, the oscillation frequency also rises following an increase in the spindle rotational speed, so that chip shredding capability is maintained.

(35) The embodiments according to the present invention have been described above. However, the present invention is not limited only to examples of the above embodiments and can be carried out in various modes by adding optional changes.

(36) For example, the above embodiments have described the examples where, when a tracking error occurs, the frequency recalculating unit 124 first recalculates the oscillation frequency, and then the amplitude recalculating unit 125 recalculates the oscillation amplitude.

(37) However, the present invention is not limited to this, and an adjustment order of the oscillation frequency and the oscillation amplitude is any order. For example, the amplitude recalculating unit 125 may first recalculate the oscillation amplitude, and then the frequency recalculating unit 124 may recalculate the oscillation frequency. In this case, if a tool path of first rotation and a tool path of second rotation can be overlapped only by adjusting the oscillation amplitude, the oscillation frequency does not necessarily need to be adjusted.

(38) The embodiments of the present invention have been described above. However, the present invention is not limited to the examples of the above embodiments and can be carried out in various modes by adding optional changes.