INVOLUTE INTERPOLATION SPEED CONTROL SYSTEM

Abstract: This invention relates to an involute interpolation speed control system for making involute interpolation by applying tool correction for machining in a numerical controller or the like. The system instructs a rotating direction of a first involute curve (In1) as an actual machining shape, the coordinates (Pee) of an end point, the center position of a basic circle (C) as viewed from a start point (Pss), the radius (R) of the basic circle (C), a feed speed, a tool diameter offset direction and the radius of the tool (Rofs). An offset vector of the tool is generated from this instruction and an equation of a second involute curve (In2) connecting its start point (Ps) and its end point (Pe) is calculated. The radius of curvature of the second involute curve (In2) is determined and a feed speed override value is determined from the tool offset direction and the radius of curvature. The second involute curve (In2) is interpolated by the speed as the product of the feed speed and the feed speed override value. This interpolation is made so that the cutting speed (Fp) in the tangential direction of the outer periphery of the tool generating the actual machining shape becomes constant.

Description: The present invention relates to an involute interpolation speed control method to be used in machining by numerical control apparatuses. There is a great need for the interpolation of involute curves in numerical control apparatuses or the like, when machining gears, pump impellers, or the like, and it is general practice to interpolate an involute curve with a computer or an NC programming device separate from a numerical control apparatus, convert the interpolated data to linear data on a tape, and machine a workpiece under a numerical control using the tape. The applicant filed an application for an involute interpolation speed control system by which an involute curve is simply interpolated in a numerical control apparatus, and the speed in tangential direction thereof is made constant regardless of an angular speed, as WO-A-88/10455 with the corresponding EP-A-0 319586, from which the method according to the preamble of claim 1 is known. In the involute interpolation speed control system, the coordinate of a point on an involute curve is defined by the following equations. X = R {cos(ϑ + ϑ1) + ϑsin(ϑ + ϑ1)} + X₀ Y = R {sin(ϑ + ϑ1) - ϑcos(ϑ + ϑ1)} + Y₀ ϑ is incremented by an amount determined by the following equation in the range of from ϑ = (ϑ2 - ϑ1) to ϑ = (ϑ3 - ϑ1). ϑ n+1 = ϑ n + K/(R·ϑ) Then, a point X n+1 , Y n+1 corresponding thereto is determined from the above equations, and a difference between the previous point and the present point is determined, whereby the involute curve is interpolated. The interpolation is carried out in such a manner that the increment of ϑ is set to a value, K/(R·ϑ) which is inversely proportional to the increase in the angle so that the speed in the tangential direction is kept at a constant value. The conventional involute interpolation speed control system is such that, when a cutter is compensated, an involute curve is interpolated to enable a speed in a tangential direction of the cutter on the path through which the center thereof moves (cutter path) to coincide at all times with a commanded feed speed. Therefore, as shown in Figure 4, a cutter W is offset to the concave side of an involute curve (path commanded by a program) In1, and a ratio of a speed in a tangential direction of the cutter W at the center thereof to a cutting speed at an actual cutting point Pss is made equal to a ratio of a value obtained by subtracting a cutter radius from the radius of curvature of an involute curve (cutter path) In2 at the cutting point Pss to the above radius of curvature. This ratio is made larger as the cutter W approaches a basic circle C and as a result, an actual cutting speed is made larger than a commanded feed speed. Whereas, when the cutter W is offset to the convex side of the involute curve In1, as the cutter W approaches the basic circle C, the actual cutting speed is made smaller than the commanded feed speed. Therefore, a problem arises in that a speed of the outer circumference (cutting point Pss) of the cutter on the path In2 commanded by the program, which is the actual cutting speed, is constantly changed in accordance with the change of curvature of the involute curve, and thus a workpiece cannot be smoothly machined. DISCLOSURE OF THE INVENTION Taking the above into consideration, an object of the present invention is to provide an involute interpolation speed control system by which the cutting speed of the outer circumference of a cutter for creating an actual cut configuration always coincides with a commanded speed in an involute interpolation to which a cutter compensation is applied. JP-A-63-120304 discloses a method of keeping the speed of a cutting tool fixed in a direction tangential to a workpiece. According to the present invention, there is provided an involute interpolation speed control method of effecting an involute interpolation to which a cutter radius compensation is applied when machining by a numerical control apparatus, the method comprising the steps of: outputting commands for a rotational direction in which a first involute curve as an actual machining configuration is rotated from a starting point, coordinates of the end point of the first involute curve, the position of the centre of a basic circle as viewed from the start point of the first involute curve, the radius of the basic circle and a feed speed; characterised by the steps of: further outputting commands for the side on which the cutter is offset relative to the first involute curve, and the amount of offset of the cutter relative to the first involute curve; creating an offset vector of the cutter based on the commands, said offset vector being directed along the radius of curvature of the first involute curve; calculating, by means of the offset vector and the basic circle of the first involute curve, an equation of a second involute curve connecting a starting point, an interpolation start point and an interpolation end point; determining the radius of curvature of the first involute curve; determining the radius of curvature of the second involute curve at the centre of the cutter by adding the amount of offset of the cutter to the radius of curvature of the first involute curve if the cutter is on the convex side of the first involute curve or subtracting the amount of offset of the cutter from the radius of curvature of the first involute curve if the cutter is on the concave side of the first involute curve; determining a feed speed override value based on the ratio between the radius of curvature of the first involute curve and the radius of curvature of the second involute curve; and, interpolating the second involute curve based on a corrected speed value obtained by multiplying the feed speed override value by the feed speed. The offset vector of the cutter is created based on commands relating to the first involute curve as an actual machining configuration, and thus the equations of the second involute curve as a cutter path are calculated. The feed speed override value is determined based on the radius of curvature of the thus calculated second involute curve. The second involute curve is interpolated based on the value obtained by multiplying a commanded feed speed by the feed speed override value. With this arrangement, the interpolation is executed in such a manner that the cutting speed in a tangential direction of the outer circumference of the cutter by which an actual machining configuration is created is kept at a constant value. At that time, the involute curve is shown as the function of the central angle ϑ of the basic circle and the involute curve is interpolated by increasing the angle ϑ. The increment of the angle ϑ is set to V.K/(R.ϑ), which is inversely proportional to the increase of the angle ϑ. In the drawings: Figure 1 is a diagram showing the interpolation of an involute curve, when a cutter is positioned on the concave side of a commanded involute curve; Figure 2 is a diagram showing the interpolation of an involute curve, when a cutter is positioned on the convex side of a commanded involute curve; Figure 3 is a schematic diagram showing a numerical control apparatus according to the present invention; and Figure 4 is a diagram showing the conventional interpolation of an involute curve to which a cutter compensation is applied. BEST MODE OF CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. Figure 1 shows the interpolation of an involute curve when a cutter is positioned on the concave side of a commanded involute curve in which the cutter is rotated counterclockwise and moves away from a basic circle. In this case, the command G03.1 is used. Figure 2 shows the interpolation when the cutter is positioned on the convex side of the commanded involute curve. Although there are cases in which the cutter moves toward the basic circle, rotates clockwise, and the like, in addition to the above cases, they are basically the same, and thus the present invention will be described based on Figures 1 and 2. In these figures, the involute curve is created based on the basic circle C. The center O of the basic circle C has coordinates (X 0, Y₀) and a radius R, and a point Poo is a start point of the involute curve In1. A point Pss (X ss , Y ss ) is the point from which the cutter starts the actual cutting, a tangential line ℓs is drawn from the point Pss to the basic circle C, and the coordinates of the contact point P1 thereof are (X₁, Y₁). An angle between a line OP1 connecting the point P1 with the center O of the basic circle C and the X-axis is an angle ϑ2. A point Pee (X ee , Y ee ) is the point at which the cutter ends the actual cutting, and a tangential line ℓe is drawn from the point Pee to the basic circle C and the coordinate of the contact point P2 thereof is (X₂, Y₂). An angle between a line OP2 connecting the point P2 with the center O of the basic circle C and the X axis is an angle ϑ 3. Here, commands for involute interpolation are given by: G17G03.1G41X -- Y -- I -- J -- R -- F -- D -- ; G17 is a command for specifying a plane: i.e., and G17 specifies the X-Y plane, G18 specifies the Z-X plane, and G19 specifies the Y-Z plane. G03.1 is a counterclockwise involute interpolation command. If the involute curve were clockwise, it would be commanded by G02.1. Whether the involute curve moves toward or away from the basic circle C depends on the coordinates of the start point Poo and the end point Pee of the involute curve In1. G41 is a command for offsetting a cutter to the left side with respect to the direction of movement thereof and thus the cutter is positioned on the concave side of the involute curve In1. When the cutter is to be positioned on the right side of the involute curve In1, a G42 command is output. X -- Y -- designates coordinates of the end point of the involute curve In1 having a value Pee (X ee , Y ee ) in the figure. These coordinates are commanded by absolute values. I --J -- indicates the values of the center O of the basic circle C as viewed from the start point Pss (X ss , Y ss ), and is commanded by incremental values. R -- represents the radius R of the basic circle C, F -- represents a feed speed, D -- is a code for specifying an offset amount and an offset number is commanded by a number following to D, and the mark; indicates the end of a block. An offset vector is created from the command, and accordingly thus the equation of an involute curve In2 connecting a curve start point Po after the offset vector has been created, and an interpolation start point Ps (X s , Y s ) and an interpolation end point Pe (X e , Y e ) are determined. (1) Determination of the coordinates (X₀, Y₀) of the center O of the basic circle C: Although the coordinates of the start point Ps (X s , Y s ) of the involute curve are included in the commanded values, they are stored in a numerical control apparatus as a present position. The coordinates (X₀, Y₀) of the center O of the basic circle C are determined from the following equations based on the start point Ps (X s , Y s ) and the distances (I1, J1) from the start point Ps to the center O of the basic circle C, as viewed from the start point Ps. X₀ = Xs + I1 Y₀ = Ys + J1 (2) Determination of the angle ϑ2 of the start point Ps of the involute curve: A tangential linen ℓs is drawn from the start point Ps (X s , Y s ) to the basic circle C, and the contact point thereof is defined as P₁ (X₁, Y₁). The point P₁ is connected with the center O of the basic circle C, and an angle between the thus obtained line and the X-axis is determined, as the angle ϑ2 of the start point Ps of the involute curve In2. This angle also can be determined from the cutting start point Pss. (3) Determination of the angle ϑ3 of the end point of the involute curve: A tangential line ℓe is drawn from the end point Pe (X e , Y e ) of the involute curve to the basic circle C and the contact point thereof is defined as P₂ (X₂, Y₂), the point P₂ is connected with the center O of the basic circle C, and an angle between the thus obtained line and the X-axis is determined as the angle ϑ3 of the end point of the involute curve. This angle also can be determined from the cutting end point Pee. (4) Determination of the angle ϑ1 of the curve start point P₀ of the involute curve: The length of the arc between the points P₁ and P₀ is equal to the length of the straight line ℓs from the definition of the involute curve. Therefore, if the length of the straight line ℓs is L, then the angle ϑ1 for the start point of the involute curve can be determined by: ϑ1 = ϑ2 - L/R (radian) (5) From the above values, the coordinates of a point on the involute curve In2 after the interpolation has been effected are given as follows: X = R {cos(ϑ + ϑ1) + ϑsin(ϑ + ϑ1)} + X₀ Y = R {sin(ϑ + ϑ1) - ϑcos(ϑ + ϑ1)} + Y₀ where, X and Y represent the present position, X₀ and Y₀ represent the coordinates of the center O of the basic circle C, ϑ represents an angle, and ϑ1 represents the angle of the curve start point of the involute curve. The radius of curvature (Rtan) of the involute curve is determined when the center of the cutter is at the present position (at the start point when the involute interpolation is begun). The radius of curvature (Rtan) of the involute curve is determined by the following equation when the angle is ϑ. Rtan = R·ϑ A feed speed override value V is set based on the radius of curvature Rtan, the direction of commanded cutter compensation, and the radius of the cutter. Note that Rofs represents the radius of the cutter. Assuming that the radius of the cutter (offset amount) is Rofs, a radius of curvature of the involute curve at the cutting point is Rtan, a commanded feed speed is F, a speed in the tangential direction of the center of the cutter is Fc, and an actual cutting speed is Fp, then the relationship between Fc and Fp is determined as follows. More specifically, when the cutter is on the convex side of the involute curve, the following equation is established: Fc = Fp · (Rtan - Rofs)/Rtan and when the cutter is on the concave side of the involute curve, the following equation is established: Fc = Fp · (Rtan + Rofs)/Rtan Therefore, when the cutter is on the concave side of the commanded involute curve as shown in Figure 1, the feed speed override value V is determined by the following equation. V = (Rtan + Rofs)/Rtan When the cutter is on the convex side of the involute curve commanded as shown in Figure 2, the feed speed override value V is determined by the following equation. V = (Rtan - Rofs)/Rtan The involute interpolation is executed using a value determined by the thus obtained feed speed override value multiplied by the commanded feed speed F. When the ϑ is incremented by certain angles in the range of from ϑ = (ϑ2 - ϑ1) to ϑ = (ϑ3 - ϑ1), the radius of the involute curve is increased with an increase of the angle ϑ , and thus the speed of the outer circumference of the cutter (cutting point) on the path commanded by a program, which is the actual cutting speed, is changed as the curvature of the involute curve is constantly changed. Therefore, the increment of the angle ϑ must be controlled so that the speed of the outer circumference of the cutter (cutting point) on the involute curve is kept constant. Here, from the above equations (1) and (2), (dX/dϑ) = R · ϑ · cos(ϑ + ϑ1) (dY/dϑ) = -R · ϑ · sin(ϑ + ϑ1) (dℓ/dϑ) = (dX/dϑ)² + (dY/dϑ)² = R · ϑ Therefore, dϑ = (dℓ/R · ϑ) To determine a difference here, ▵ϑn = (▵ℓ/R · ϑ) Since ▵ℓ is a distance to be moved in a given time, ▵ℓ = K = τ · (F/60) where, τ represents a pulse distribution cycle (involute interpolation cycle) having a unit of second and F represents a feed speed having a unit of mm/min. Therefore, an increment ▵ϑ of ϑ is determined by multiplying the feed speed override value V by a feed speed F as shown by the following equation. ▵ϑ = V · K/(R · ϑ) Then ϑ is sequentially changed as shown by the following equation. ϑ n+1 = ϑ n + ▵ϑ n Then X n+1 , Y n+1 corresponding to the ϑ n+1 is determined and a difference between the previous X n , Y n and them is output as a distribution pulse, whereby a speed in tangential direction at a cutting point can be controlled to a constant value. When the cutter moves to the vicinity of the basic circle C of the involute curve, the following parameters are prepared to cope with the possibility that the feed speed override value V is made zero or infinite. When the cutter is positioned on the concave side of the involute curve, a maximum acceleration ratio Vmax is set. In the involute interpolation speed control system, the feed speed override value is clamped, using this maximum acceleration ratio as an upper limit value. When the cutter is positioned on the convex side of the involute curve, a minimum acceleration ratio Vmin is set. In the involute interpolation speed control system, the feed speed override value is clamped, using this minimum acceleration ratio as a lower limit value. As described above, the interpolation is carried out so that the speed at a cutting point is kept at a constant value. Figure 3 shows a schematic diagram of the numerical control apparatus according to the present invention. The numerical control apparatus includes tape commands 1 in the form of a tape in which the above commands are punched, a tape reader 2 for reading the tape 1, a preprocessing means 3 for determining from G codes whether an involute interpolation command exists, an involute interpolation data generating means 4 for generating from commands data necessary for effecting the involute interpolation as described above, and a pulse distributing means 5 for incrementing ϑ so that the speed at the tangential angle of the involute curve is kept at a constant value based on the above equations, to determine the respective points on the involute curve, to effect an interpolation, and to distribute pulses. The numerical control apparatus also includes a servo control circuit for driving servomotors 7 by the commands, to cause ball screws or the like to move a machine 8. As described above, according to the present invention, since data for interpolating an involute curve to which a cutter compensation is applied is calculated in a numerical control apparatus, and a cutting speed of the outer circumference of a cutter for creating an actual cutting configuration coincides at all times with a commanded speed, the machining speed of the involute curve is always kept at a constant value.

Claims: An involute interpolation speed control method of effecting an involute interpolation to which a cutter radius compensation is applied when machining by a numerical control apparatus, the method comprising the steps of: outputting commands for a rotational direction in which a first involute curve (In1) as an actual machining configuration is rotated from a starting point (Poo), coordinates of the end point (Pee) of the first involute curve, the position of the centre (O) of a basic circle (C) as viewed from the start point of the first involute curve, the radius (R) of the basic circle and a feed speed (f); characterised by the steps of: further outputting commands for the side on which the cutter is offset relative to the first involute curve, and the amount of offset (Rofs) of the cutter relative to the first involute curve; creating an offset vector of the cutter based on the commands, said offset vector being directed along the radius of curvature of the first involute curve; calculating, by means of the offset vector and the basic circle of the first involute curve, an equation of a second involute curve (In2) connecting a starting point (Po), an interpolation start point (Ps) and an interpolation end point (Pe); determining the radius of curvature of the first involute curve; determining the radius of curvature (Rtan) of the second involute curve at the centre of the cutter by adding the amount of offset of the cutter (Rofs) to the radius of curvature of the first involute curve if the cutter is on the convex side of the first involute curve or subtracting the amount of offset of the cutter (Rofs) from the radius of curvature of the first involute curve if the cutter is on the concave side of the first involute curve; determining a feed speed override value (V) based on the ratio between the radius of curvature of the first involute curve and the radius of curvature of the second involute curve; and, interpolating the second involute curve based on a corrected speed value obtained by multiplying the feed speed override value by the feed speed. A method according to claim 1, wherein the second involute curve is calculated by the steps of: determining the coordinates X₀, Y₀ of the centre of the basic circle of the second involute curve, the angle ϑ2 of the start point thereof, the angle ϑ3 of the end point thereof, and the curve start angle ϑ1 thereof based on the commands and the coordinates of the start point of the second involute curve; and, obtaining the coordinates of a point on the second involute curve from the following equations based on the thus determined values: X = R{cos(ϑ + ϑ1) + ϑsin(ϑ + ϑ1)} + X₀ Y = R{sin(ϑ + ϑ1) - ϑcos(ϑ + ϑ1)} + Y₀ A method according to claim 2 wherein, when the cutter is positioned on the concave side of the first commanded involute curve, the feed speed override value V is determined by; V = (Rtan + Rofs)/Rtan (Rtan: the radius of curvature of the second involute curve, Rofs: the offset amount), and when the cutter is positioned on the convex side of the first commanded involute curve, the feed speed override value V is determined by: V = (Rtan - Rofs)/Rtan and wherein ϑ is incremented based on the following equation in the range of from ϑ = (ϑ2-ϑ1) to ϑ = (ϑ3-ϑ1): ϑ n+1 = ϑ n + V.K/(R.ϑ) and, a point X n+1 , Y n+1 , corresponding thereto is determined from the above equations to obtain a difference between the previous point and this point, whereby the second involute curve is interpolated. A method according to claim 3, wherein when the cutter is positioned on the concave side of the first commanded involute curve, a maximum acceleration ratio (Vmax) is set, when the cutter is positioned on the convex side thereof, a minimum acceleration ratio (Vmin) is set, and the feed speed override value is clamped using the maximum acceleration ratio (Vmax) as an upper limit value or the minimum acceleration ratio (Vmin) as a lower limit value respectively.

Inventors: MURAKAMI KUNIHIKO, SANO MASAFUMI FANUC DAI- VIRA-, SASAKI TAKAO, MURAKAMI, KUNIHIKO, SANO, MASAFUMI FANUC DAI-3 VIRA-KARAMATSU, SASAKI, TAKAO
Applicants: FANUC LTD, FANUC LTD.
Application year: 1990
Main classification: G05B19
IPC codes: G05B19