Numerical control apparatus for machining non-circular workpieces

Abstract: A numerical control apparatus for machining non-circular workpieces such as a cam and the like has been disclosed. The cam and the like are used in changing the operation from rotational to linear motion. In designing the shape of the cam and the like, lift data prescribing the relationship between the rotational and linear motions is used. The lift data is given by the position sequence on the linear motion corresponding to a number of discrete rotational angles. Also, the tolerance of the positions is given from a functional aspect. The lift data is converted into profile data prescribing the shape of the cam and the like after being smoothed within the tolerance by a regression analysis, and machining of the non-circular workpieces is effected according to the profile data.

Description: BACKGROUND OF THE INVENTION The present invention relates to a numerical control apparatus for controlling machining of non-circular workpieces (hereinafter merely referred to as a workpiece) such a cam or the like. From document US 3,619,581 a numerical control apparatus is known, in which the shape of a non-circular workpiece is converted into profile data indicating the relationship between the rotational angle Θ of a main spindle and the position X of a tool-feed shaft responsive to the specified lift data and the grinder diameter, and machining of said non-circular workpiece is controlled responsive to said profile data comprising: lift data memory means for storing said lift data, profile data conversion means for converting said lift data into the profile data, and position control means for numerically controlling said main spindle rotational angle and said tool-feed shaft in response to said profile data. That is, a process for grinding the workpiece such as the cam by controlling a feed of grinding, wheel the direction of which is perpendicular to a main spindle, with the numerical control apparatus in synchronism with the rotation of the main spindle is known. It is necessary to provide profile data to the numerical control apparatus for synchronizing control of the grinding wheel feed. The profile data provides the feed amount of the grinding wheel per an unit rotational angle of the main spindle so as to reciprocate the grinding wheel, that is to give it the profile creating motion along the finished shape of the workpiece. The profile data is obtained from lift data of the non-circular workpiece and the grinding wheel diameter. While, though the non-circular workpiece such as the cam is used to change the circular motion into the linear motion, displacement characteristics of a tappet in contact with the surface of the cam relative to the rotational angle of the cam is required from the performance of machines using the cam. For example, in the case of the cam-shaft of an internal combustion engine, in order to improve acceleration and high speed performances of a motor vehicle, the relationship between a crank angle and the tappet displacement is determined from the functional aspect. As such, when designing the cam shape, since the relationship between the rotational angle and the linear motion displacement for realizing the desired motion is given in sequence of points from the functional aspect of the cam, the cam shape for realizing the motion accurately does not necessarily vary smoothly. Though the non-circular workpiece is machined by controlling the rotating position of the main spindle and the feeding position of the grinding wheel in synchronism, since follow-up delay and errors are occurred in a servo-control mechanism due to the inertia of movable bodies such as a wheel head and the clearance of a feed screw, it is impossible to machine the workpiece exactly as the finished shape required from the operating characteristics of the cam. The follow-up errors also become larger as the rotating speed of the main spindle increases. According, in order to machine the workpiece as close as possible to the required finished shape, machining must be performed extremely slowly, which results in difficulty of a high speed machining. The more are the higher order frequency components included in the required finished shape of the cam, the more are the high frequency vibration components included in the servo-control mechanism, deteriorating the machining accuracy. SUMMARY OF THE INVENTION The present invention has been devised to solve the aforementioned problems, therefore, it is an object thereof to machine non-circular workpieces in a high surface accuracy at a high speed within a tolerance with respect to a required finished shape. According to the invention, this object is achieved by a numerical control apparatus, in which the shape of a non-circular workpiece is converted into profile data indicating the relationship between the rotational angle Θ of a main spindle and the position X of a tool-feed shaft responsive to the specified lift data and the grinder diameter, and machining of said non-circular workpiece is controlled responsive to said profile data comprising: lift data memory means for storing said lift data, profile data conversion means for converting said lift data into the profile data, and position control means for numerically controlling said main spindle rotational angle and said tool-feed shaft in response to said profile data, characterized in that said numerical control apparatus further comprises: tolerance memory means for storing the tolerance of the finished shape of said non-circular workpiece, and calculation means for determining a regression polynomial such that errors between said polynomial and a series of points given by said lift data become smaller than the tolerance stored in said tolerance memory means, and for generating compensated lift data using said polynomial; and said profile data conversion means converts said compensated lift data into the profile data. Moreover, the shape of the non-circular workpiece is given by lift data showing the relationship between the rotational angle and lift amount. The lift data specifies the shape of the non-circular workpiece in sequence of points. Using the lift data comprising the sequence points, smooth curves approximating the point sequence are obtained such that deviations between positions of points on the smooth curves and the finished shape become less than a predetermined tolerance. By generating numerical values from the smooth curves at every predetermined rotational angle, compensated lift data which is given in sequence of points and varies smoothly with respect to the rotational angle is obtained. Thereafter, the compensated lift data is converted into profile data representing feeding positions of the grinding wheel with respect to the rotational angle, and on the basis of the profile data, the main spindle and the tool-feed shaft positions are controlled in synchronism to machine the non-circular workpiece. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the whole configuration of a numerical control grinding machine using a numerical control apparatus according to one specific embodiment of the present invention. Fig. 2 is a block diagram showing an electrical configuration of a numerical control apparatus according to the same embodiment. Fig. 3 is a flow chart showing processing procedures of a front CPU 71 used in a numerical control apparatus according to the same embodiment. Fig. 4(a) is an explanatory view for explaining a lift amount of a flat tappet with respect to the rotational angle of a cam. Fig. 4(b) is an explanatory view for explaining polar coordinate lift data. Fig. 4(c) is an explanatory view for explaining a method for obtaining profile data. Fig. 5 is an explanatory view for explaining smoothing of the polar coordinate lift data. Fig. 6 is an explanatory view for explaining a method for generating the compensated lift data. DESCRIPTION OF THE INVENTION The present invention will be described in response to a specific embodiment as follows. In Fig. 1, the numeral 10 indicates a bed of a numerical control grinding machine, whereon a table 11 which is driven by a servo motor 16 via a feed screw mechanism is disposed slidably in the direction of Z-axis which is in parallel to a main spindle axis. On the table 11, a head-stock 12 supporting a main spindle 13 driven by a servo motor 14 is provided. On the right end of the table 11, a tail stock 15 is mounted, and a workpiece W consisting of a cam-shaft is clamped by a center 19 of the tail stock 15 and a center 17 of the main spindle 13. The workpiece W is engaged to a positioning pin 18 projected from the main spindle 13, to be locked in a phase of rotation to the main spindle 13. Behind the bed 10, a wheel head 20 which is movable back and forth toward the workpiece W is guided and provided with a grinding wheel G driven by a motor 21. The wheel head 20 is coupled to a servo motor 23 via a feed screw 22, and moved back and forth by the normal and reverse rotations of the servo motor 23. Drive units 50, 51 and 52 are circuits for receiving command pulses from a numerical controller 30 to drive the servo motors 23, 14 and 16 respectively. The numerical controller 30 mainly controls the rotation of the control axes numerically to grind the workpiece W and dress the surface of the grinding wheel G. As shown in Fig. 2, the numerical controller 30 mainly comprises a main CPU 31 for controlling the grinding machine, a ROM 33 storing the control program and a RAM 32 storing input data. On the RAM 32, an NC profile data area 321 for storing the NC profile data is formed. As driving systems of the servo motors 23, 14 and 16, a drive CPU 36, a RAM 35 and a pulse distribution circuit 37 are provided in the numerical controller 30. The RAM 35 is a memory to which positioning data of the grinding wheel G, table 11 and main spindle 13 are inputted from the main CPU 31. The drive CPU 36 calculates the the process of the slow-up, slow-down and interpolation to the target point with respect to the control axes related to machining, and outputs positioning data of the interpolation points periodically, and the pulse distribution circuit 37 outputs operation command pulses to respective drive units 50, 51 and 52 after the pulse distribution. An automatic programming apparatus 70 connected to the numerical controller 30 generates profile data automatically from the lift data and grinding wheel diameter, and comprises a front CPU 71, a RAM 72 and an input-output interface 73. In the RAM 72, a lift data area 721 for storing the lift data of a plurality of workpieces, a polar coordinates lift data area 722 for storing the lift data after conversion to polar coodinates, a compensated lift data area 723 for storing the correct lift data resulted from smoothing the polar coordinates lift data within a tolerance, a profile data area 724 for storing the profile data converted from the compensated lift data, a tolerance data area 725 for storing the tolerance of finished shapes of a workpiece, and a grinder diameter data area 726 for storing the grinder diameter at generating the profile data are formed. To the front CPU 71, a tape reader 42 which inputs lift data etc., a CRT display 43 for displaying the data and a key-board 44 for inputting the data are connected via the input-output interface 73. Operations will be described in the following. When the present apparatus is set in the data input mode, all lift data necessary for machining are read from the tape reader 42 by the front CPU 71 via the input-output interface 73 and stored in the lift data area 721. As shown in Fig. 4(a), the lift data is represented by a moving amount or a lift amount of the flat tappet 3 which is, when the cam 1 is rotated, contacted to the cam 1 and movable in the direction of X-axis. Thus, if the rotational angle ϑ of the cam 1 is defined by the rotational angle of the reference point Q on a base circle 2, the lift amount ΔX(ϑ) is obtained as a function of ϑ. The lift data to be inputted is given, for example, in point sequence of the lift amount ΔX(ϑ) at every rotational angle of 0.5°. Since the contact position on the flat tappet 3 to the cam 1 varies responsive to the rotation of cam 1, the lift data by the flat tappet are not given by the point sequence at every equicentral angle on the profile line of the cam 1. Next, when the apparatus is set in the profile data generating mode, the front CPU 71 executes the program of Fig. 3. In Step 100, the lift data stored in the lift data area 721 is converted into the polar coordinate lift data, which is stored in the polar coordinate lift data area 722. The polar coordinate lift data is, as shown in Fig. 4(b), obtained by specifying the point sequence on the profile line of the cam 1 by the central angleϑ and the length r(ϑ) of the radius vector. The polar coordinate lift data is converted from the lift data by the flat tappet in consideration of the relationship of contact between the flat tappet 3 and cam 1 shown in Fig. 4(a). When the lift data given from the operational characteristic requirement is converted into the polar coordinate lift data to plot the length r(ϑ) of the radius vector, it is not so smooth as shown in Fig. 5. Therefore it is necessary to find a curve approximated smoothly to the point sequence. Then, execution continues in Step 102, in which the data set r(ϑ₁), r(ϑ₂),....r(ϑ n ) is selected from the polar coordinate lift data between the angle ϑ i - Δ and ϑ i + Δ(Δ=10°) , where ϑ i is the angle at which to get the compensated lift data which is smoothed. Then, in Step 104, regression analysis by a least square approximation is executed with respect to the selected data set. The regression polynomial f(ϑ) is given by f(ϑ)=a₀+a₁ϑ+a₂ϑ²+.... +a m ϑ m (1) where a 0 , a₁, ...., a m are regression coefficients and m is the order of the polynomial. Here the next matrix equations are formed between the data r(ϑ₁), , r(ϑ n ) and the polynomial f(ϑ); R=X·A+E (2) where The element e k of the matrix E means an error between the function value f(ϑ k ) and the data r(ϑ k ). From Eq. (2), we get E=R-X·A (7) and E t =R t -A t ·X t (8) where E t , R t , A t and X t are the transposed matrixes of the matrixes E, R, A, and X, respectively. Therefore, from Eqs.(7) and (8), square sum g of the errors is given by The conditions for minimizing the square sum g are When we differentiate Eq.(9) by A, we get From δg/δA=0 , we get 2X t XA=2X t R then A=(X t X)⁻¹·X t ·R (12) where (X t X)⁻¹ is the inverse matrix of X t X. From Eq.(12), we get the regression coefficients of the regression polynomial F(ϑ). By the procedure described above, the regression polynomial f(ϑ) can be found with respect to the data set r(ϑ₁), r(ϑ₂), ....,r(ϑ n ). Then, the CPU 71 moved its procedure to Step 106, wherein the deviation |r(ϑ i )-f(ϑ i )| at the angle ϑ i is calculated, and it is determined whether the deviation is within a tolerance ε stored in the tolerance data area 725 or not. If the deviation is not within the tolerance, the procedure of the CPU 71 continues in Step 108, wherein the regression polynomial is changed to a higher order from a low order or the number n of selecting points is decreased, and returns to Steps 102 and 104 wherein the new data set is selected, or the regression curve is calculated by a higher order regression polynomial. Thus, in Step 106, the order of regression polynomial is changed until the deviation |r(ϑ i )-f(ϑ i )| becomes less than the tolerance c , and finally a smoothly approximated regression polynomial within the tolerance is obtained. Execution continues in Step 110, wherein the compensated lift data f(ϑ i ) at the angle ϑ i is calculated by the function value of the regression polymonial, and the compensated lift data is stored in the compensated lift data area 723. Then, execution continues in Step 112 in which it is determined whether all the compensated lift data are generated or not. If the judgement in Step 112 is negative, execution continues in Step 114 in which the angle ϑ i is increased by Then, the procedure of the CPU 71 returns to Step 102 in which a new data set is selected. After in Step 104 is determined a new regression polynomial with respect to the new data set, in Step 110 is generated a new compensated lift data f(ϑ i ) at the next angle ϑ i . By repeating the procedure of Step 102 to 112, all the compensated lift data are generated along all the profile line of claim 1. And the compensated lift data are stored into the compensated lift data area 723. The above described procedure is shown conceptually in Fig. 6. Then, the CPU 71 moves its procedure to Step 116 and calculates the profile data from the existing grinder diameter R stored in the grinder diameter data area 728 and the compensated lift data. The profile data is obtained as shown in Fig. 4(c). First, a locus of the center M of a circle C of radius R (grinder diameter) contacting the profile line A at discrete points P₁, P₂, .... P n at every equicentral angle on the profile line of the cam 1 is obtained, and then the profile data indicating the grinding wheel position at every equicentral angle is obtained from the distance between the center M and the center O of the cam 1. The profile data is stored in the profile data area 724 and transferred to the NC profile data area 321 via the front CPU 71 and main CPU 31 at actual machining of a cam. When the machining command signal is given from a control panel 45, the main CPU 31 outputs the machining command to execute the cam grinding according to the NC profile data stored in the NC profile data area 321. In the aforesaid embodiment, by the way, though data by the flat tappet is shown as the lift data given first, the lift data by the roller tappet and knife-edge tappet may also be given. Also, though the curve smoothed in the polar coordinate lift data was obtained, the curve smoothed in the other lift data and profile data may be obtained. It is also possible that after grinding a cam using the profile data converted from the lift data once smoothed, the shape of the cam is measured to obtain errors to the required cam shape at many points, and after obtaining the curve for smoothing the errors, the initially smoothed lift data is compensated by the curve additionally. Furthermore, the compensated lift data may be smoothed again. Also, though the smoothing curve was found which approximated the point sequence selected within a narrow domain (about 20°) of the rotational angle given by the lift data, and one of the compensated lift data was generated from the central point of the domain on the regression curve, and by executing successively such a process with shifting the domain by a certain angle were generated all the compensated lift data, it is also possible that after finding a regression polynomial defining a regression curve approximating all the point sequence given by all the lift data, all the compensated lift data are generated by calculating the function value of the regression polynomial on many points. In the present invention, since calculating means for smoothing the lift data within the tolerance, and profile data conversion means which converts the smoothed compensated lift data into the profile data are involved, the lift data is smoothed within the tolerance and higher order fluctuating components are removed in the compensated lift data, so that the follow-up of the main spindle and tool-feed shaft in the servo-control mechanism with respect to the command value is improved. Since the higher order fluctuating components are removed, high frequency vibrations in the servo-control mechanism are suppressed, which results in improvement of the accuracy of the machined surface. Furthermore, since the profile line is commanded in a smooth curve, the higher frequency follow-up is not necessary for the servo-control mechanism, enabling a fast machining speed. A numerical control apparatus for machining non-circular workpieces such as a cam and the like has been disclosed. The cam and the like are used in changing the operation from rotational to linear motion. In designing the shape of the cam and the like, lift data prescribing the relationship between the rotational and linear motions is used. The lift data is given by the position sequence on the linear motion corresponding to a number of discrete rotational angles. Also, the tolerance of the positions is given from a functional aspect. The lift data is converted into profile data prescribing the shape of the cam and the like after being smoothed within the tolerance by a regression analysis, and machining of the non-circular workpieces is effected according to the profile data.

Claims: A numerical control apparatus, in which the shape of a non-circular workpiece ( W ) is converted into profile data ( 321 ) indicating the relationship between the rotational angle Θ of a main spindle ( 13 ) and the position X of a tool-feed shaft ( 22 ) responsive to the specified lift data and the grinder diameter ( R ), and machining of said non-circular workpiece is controlled responsive to said profile data comprising: lift data memory means ( 721 ) for storing said lift data, profile data conversion means ( 116 ) for converting said lift data into the profile data, and position control means ( 50-52 ) for numerically controlling said main spindle rotational angle and said tool-feed shaft in response to said profile data, characterized in that said numerical control apparatus further comprises: tolerance memory means ( 725 ) for storing the tolerance of the finished shape of said non-circular workpiece, and calculation means ( 102-110 ) for determining a regression polynomial such that errors between said polynomial and a series of points given by said lift data become smaller than the tolerance stored in said tolerance memory means, and for generatinq compensated lift data using said polynomial; and said profile data conversion means ( 116 ) converts said compensated lift data into the profile data. A numerical control apparatus according to claim 1, characterized in that the order of said regression polynomial is increased until the difference between the point on said regression polynomial and the corresponding point given by said lift data becomes less than said tolerance. A numerical control apparatus according to claim 1, characterized in that the number of points to be approximated by said regression polynomial is decreased until the difference between the point on said regression polynomial and the corresponding point given by said lift data becomes less than said tolerance. A numerical control apparatus according to claim 1, characterized in that said regression polynomial approximates the point sequence selected within a narrow domain of the rotational angle given by said lift data, and one of said compensated lift data is generated from the central point of said domain on said regression polynomial, and by executing successively such a process with shifting said domain by a certain angle all of said compensated lift data are generated.

Inventors: ARIMOTO NAOKI, SUZUKI IKUO, TSUJIUCHI TOSHIO, YONEDA TAKAO, ARIMOTO, NAOKI, SUZUKI, IKUO, TSUJIUCHI, TOSHIO, YONEDA, TAKAO
Applicants: TOYODA MACHINE WORKS LTD, TOYODA KOKI KABUSHIKI KAISHA
Application year: 1989
Main classification: G05B19
IPC codes: G05B19, B24B5, B24B19