NC DATA PREPARATION METHOD

Abstract: The NC data preparation method comprises the steps of determining a point (Ai) on a curve forming the locus (Mk) of the tip of a tool in a three-dimensional curve surface (SS) and determining a normal vector and a tangential vector of the tool tip locus at this point (Ai). The outer product vector of the normal vector and the tangential vector is then determined. The tool centre axis vector is evaluated using the direction inclined at and designated angle toward the direction of the product vector formed by the normal vector (N) and the product vector (S) as the direction of the tool centre axis. The NC data is prepared for the simultaneous 5-axis control by use of the coordinates values of the point and the tool centre axis vector.

Description: This invention relates to an NC data creation method and, more particularly, to a method of creating NC data for simultaneous five-axis control using tool nose position data and data indicating the orientation of the central axis of the tool. In cutting a curved surface by simultaneous five-axis control, movement is possible simultaneously along five axes, namely an X axis, Y axis, Z axis, a horizontal rotation axis (B axis) and a vertical rotational axis (C axis), and NC data for such simultaneous five-axis control is created in such a manner that the vector of the central axis of the tool will point in the normal direction at each point on the curved surface. More specifically, the NC data for simultaneous five-axis control are created by finding a sequence of points on a sculptured surface for specifying tool nose position, obtaining normal vectors at the sequence of points on the curved surface, calculating the position (x,y,z) of the center of rotation of the tool, as well as the positions (b,c) of horizonal and vertical rotation, by a well-known computation based on the normal vector and tool nose position (X,Y,Z), and using x, y, z, b, and c to create the data. For example, see USP 4,559,601 (entitled "Numerically Controlled Cutting Method"). There are cases where edge removal or the carving of a character or pattern on a curved surface is performed by a five-axis processing machine. In such cases, since cutting is performed with the central axis of the tool inclined in the direction of the normal line at all times in accordance with the prior-art method, the cut section (cross section) CD is monotonous, as shown in Fig. 10(a), and cutting which will give the impression of hand-carving cannot be performed by freely designating the angle of the central axis of the tool, as shown in Fig. 10(b). In Fig. 10, SS denotes a sculptured surface, TL a tool and CS the cut section. There are examples known in the art wherein a tool can be held with its central axis at an angle to the normal to a workpiece surface. Thus see for example: Patents Abstracts of Japan, vol. 10, no. 143 (P-459) 27 May 1986 and JP-A-60 262 214 (Nitsupei Toyama); Technische Rundschau, vol. 78, no. 20, March 1992, Bern CH pages 150-153, A. Ruegg 'Ozelot-CNC für komplexe 3D-Formen'; Werkstattstechnik, Zeitschrift für Industrielle Fertigung, vol. 62, 1972, Berlin DE, pages 544-548; G. Stute et al 'Die Fräserbahnabweichung bei einer numerisch gesteuerten 5-Achsen-Fräsmaschine'; and Patents Abstracts of Japan, vol. 8, no. 33 (P-254) 14 February 1984 and JP-A-58 189 707 (Kobe). The first and last of these four documents relate to path correction and robot wrist angle interpolation for a welding torch, and are not concerned with the visual impression which will be given by a cutting tool. The second and third documents disclose inclining a cutting tool at an angle to the normal to a working surface, but here again there is no concern with the visual impression which the cutting tool will produce, other than to produce an improved surface quality, meaning improved surface smoothness. In fact the third listed document specifically relates to the simultaneous five-axis cutting control of a cutting tool, and corresponds to the method set out in the precharacterising part of the attached claim 1. As already stated, one of the aims of this document is to select the orientation of the tool relative to the surface of the workpiece to provide improved (i.e. smoother) surface quality. An object of the present invention is to provide an NC data creation method of this general type, but which is adapted whereby tool-cut sections can be diversified and a hand-carved effect can be obtained even when carving of furniture or the like is performed by an NC five-axis processing machine. According to the present invention there is provided an NC data creation method for creating NC data for simultaneous five-axis cutting control using cutting tool nose position and cutting tool central axis orientation, comprising: obtaining a point on a curve constituting a cutting tool nose path on a surface to be machined; obtaining a normal vector at said point; obtaining a cutting tool central-axis vector such that a direction inclined from the normal vector serves as the direction of the tool central axis; and creating NC data for simultaneous five-axis control using coordinates of said point and said tool central-axis vector; characterised in that: said surface is to be sculptured and said NC data is for edge removal or for the carving of a character or pattern on the sculptured surface; a tangent vector tangential to said cutting tool nose path is obtained at said point in addition to said normal vector; an outer product vector is then obtained between said normal vector and said tangent vector; and said cutting tool central-axis vector is obtained in a plane formed by said normal vector and said outer product vector, with a direction inclined toward the outer product vector from the normal vector by a designated angle giving a hand-carved effect to the cutting tool nose path on the sculptured surface. Brief Description of the Drawings Fig. 1 is a view for describing the general features of the method of the present invention; Fig. 2 is a view for describing a method of specifying the path of a tool nose; Fig. 3 is a block diagram of an apparatus for practicing the method of the invention; Fig. 4 is a flowchart of processing according to the method of the invention; Figs. 5 through 7 are views for describing a method of calculating a normal vector; Fig. 8 is a view for describing a method of calculating a tangent vector; Fig. 9 is a view for describing the calculation of data for simultaneous five-axis control; and Fig. 10 is a view for describing the method of the prior art. Fig. 1 is a view for describing the general features of a method of creating NC data for simultaneous five-axis control according to the present invention. SS represents a sculptured surface, TL a tool, Mk the path of a tool nose, Ai a point on the tool nose path Mk occupied by the tool nose, a normal vector at the point Ai, a tangent vector at the point Ai, an outer product vector between the normal vector and the tangent vector, a tool-center vector, PL a plane formed by the normal vector and the outer product vector and ϑ a designated angle in the plane PL. Fig. 2 is a view for describing a method of specifying the path Mk of the tool nose. The sculptured surface SS is specified by the coordinates of a sequence of lattice points (Intersections of meshes Ms). When a given planar curve CV is projected onto the sculptured surface SS, the sequence of points where the curve intersects the meshes Ms forms the point sequence Mk of the tool nose path. It should be noted that Ai is a point on the point sequence Mk of the tool nose path, and that P(i,j) is a lattice point. The present invention, which creates NC data for performing machining by moving the tool TL along the point sequence Mk of the tool nose path while it is inclined at the designated angle ϑ, entails obtaining the point Ai on the tool nose path Mk on the sculptured surface SS from the given planar curve CV, obtaining the normal vector and tangent vector at the point Ai, next obtaining the outer product vector between the normal vector and tangent vector obtaining the tool central-axis vector in the plane PL formed by the normal vector and the outer product vector , in which a direction inclined from the normal vector by the designated angle ϑ serves as the direction of the tool central axis, and finally creating NC data for simultaneous five-axis control using coordinates of the point Ai and the tool central-axis vector Fig. 3 is a block diagram of an automatic programming apparatus for practicing the method of the present invention. In Fig. 3, numeral 101 denotes a keyboard for data input, 102 a processor, and 103 a ROM for storing a control program. Numeral 104 denotes a RAM in which it is assumed that position data indicative of the point sequence MK of the tool nose path in Fig. 2 have already been stored. It is also assumed that the designated angle ϑ at which the tool central axis is inclined from the normal to the sculptured surface has also been entered from the keyboard 101 and stored in the RAM 104. Numeral 105 denotes a working memory, and 106 a sculptured-surface memory for storing the lattice points Pi of the meshes specifying the sculptured surface SS, unit normal vectors corresponding to the lattice points Pi, and created NC program data for machining a sculptured surface. Numeral 107 denotes an output unit for outputting the NC program data for machining the sculptured surface to an external storage medium 108, such as a paper tape or magnetic tape. Numeral 109 designates an address bus, and 110 a data bus. Fig. 4 is a flowchart of NC data creation processing in accordance with the method of the invention. The processor 102 reads the point Ai out of the RAM 104 (step 200) and obtains the normal vector at the point Ai (step 201). More specifically, if it is assumed that , represent normal vectors at mesh lattice points Pk₁, Pk₂, as shown in Fig. 5, then the normal vector at the point Ai will be calculated in accordance with the equation The normal vector at a cutting end point Ae and at a cutting starting point As (see Fig. 2) is obtained by the following procedure, which will be described with reference to Figs. 6 and 7: (1) Mesh lattice points P(i,j), P(i+j,j), P(i,j+1), P(i+1,j+1), inclusive of the cutting end point Ae, are obtained from the sculptured-surface memory 106. (2) The points P(i,j), P(i+j,j), P(i+1,j+1) forming a triangle which includes the cutting end point Ae are selected from among the abovementioned four points (see Fig. 6). (3) Let U represent the area of the triangle which includes the cutting end point Ae, and ist U o , U1, U2 represent the areas of the triangles each having the cutting end point Ae as an apex, as shown in Fig. 7. The unit normal vector at the cutting end point Ae is obtained from the following equation: using the unit normal vectors ((i,j), (i+j,j), (i+1,j+1) corresponding to the points P((i,j), P(i+j,j), P(i+1,j+1) called from the sculptured-surface memory 106. Next, points Ai-1, Ai+1 (see Fig. 8) one before and one after the point Ai on the point sequence Mk of the tool nose path are obtained, a circular arc CIR which passes through the three points Ai-1, Ai, Ai+1 is obtained, then a tangent vector tangent to the circular arc CIR at the point Ai is obtained as a tangent vector of the tool nose path Mk (step 202). Next, the processor 102 obtains the outer product vector S (step 203) in accordance with the equation using the normal vector and the tangent vector , obtains the plane PL which contains the normal vector and the outer product vector , and obtains the tool central-axis vector (step 204; Fig. 1) inclined in the direction of the outer product vector from the normal vector by the designated angle ϑ. Thereafter, on the basis of the tool central-axis vector (I,J,K), tool nose end position Ai(X,Y,Z) and the tool length ℓ (see Fig. 9), and in accordance with the following computation formulae: x = X + I·ℓ/ I² + J² + K² y = Y + J·ℓ/ I² + J² + K² z = Z + J·ℓ/ I² + J² + K² b = tan⁻¹( I² + J² /K) c = tan⁻¹(J/I) the processor 102 calculates rectangular coordinates (x,y,z) of the rotational center Q of the tool, as well as spherical coordinates (b,c) indicative of the rotational angular position of the tool TL in the direction (along the B axis) of vertical rotation and in the direction (along the C axis) of horizontal rotation, and creates NC data for simultaneous five-axis control using x, y, z, b and c (step 205). Next, the processor 101 determines whether the point Ai is the last point of the point sequence Mk of the tool nose path (step 206). The processor repeats processing from step 201 onward if the point Ai is not the last point, and terminates processing if Ai is the last point. Thus, in accordance with the present invention, it is arranged to obtain a point on a curve constituting the path of a tool nose of a sculptured surface, obtain a normal vector at the point and a tangent vector tangent to the tool nose path at the point, obtain an outer product vector between the normal vector and tangent vector, obtain a tool central-axis vector, in the plane formed by the normal vector and the outer product vector, in which a direction inclined toward the outer product vector from the normal vector by the designated angle serves as the direction of the tool central axis, and then create NC data for simultaneous five-axis control using coordinates of the point and the tool central-axis vector. This makes it possible to diversify the tool-cut section and obtain the effect of hand-carving even when carving of furniture or the like is performed by an NC five-axis processing machine.

Claims: An NC data creation method for creating NC data for simultaneous five-axis (X, Y, Z, B, C) cutting control using cutting tool (TL) nose position (X, Y, Z) and cutting tool (TL) central axis orientation, comprising: obtaining a point (Ai) on a curve (Mk) constituting a cutting tool (TL) nose path on a surface (SS) to be machined; obtaining a normal vector (N) at said point (Ai); obtaining a cutting tool (TL) central-axis vector (V) such that a direction inclined from the normal vector (N) serves as the direction of the tool central axis; and creating NC data for simultaneous five-axis (X, Y, Z, B, C) control using coordinates (X, Y, Z) of said point (Ai) and said tool central-axis vector (V); characterised in that: said surface (SS) is to be sculptured and said NC data is for edge removal or for the carving of a character or pattern on the sculptured surface (SS); a tangent vector (T) tangential to said cutting tool (TL) nose path is obtained at said point (Ai) in addition to said normal vector (N); an outer product vector (S) is then obtained between said normal vector (N) and said tangent vector (T); and said cutting tool (TL) central-axis vector (V) is obtained in a plane (PL) formed by said normal vector (N) and said outer product vector (S), with a direction inclined toward the outer product vector (S) from the normal vector (N) by a designated angle (Θ) giving a hand-carved effect to the cutting tool (TL) nose path on the sculptured surface (SS). An NC data creation method according to claim 1, characterized in that when the sculptured surface (SS) is specified by a lattice point sequence (Pi,j) of a number of longitudinal and horizontal meshes and a predetermined planar curve (CV) is projected onto said sculptured surface (SS), a point sequence of intersections between the projected curve and the meshes serves as the tool nose path. An NC data creation method according to claim 2, characterized by computing a normal vector at a point Ai on the tool nose path in accordance with the equation where , represent normal vectors at two lattice points bracketing the point Ai, and L₁, L₂ represent distances from the point Ai to each of the lattice points. An NC data creation method according to claim 3, characterized by obtaining rectangular coordinates of a rotational center of the tool as well as polar coordinates, which indicate angles of rotation in directions of horizontal and vertical rotation, from rectangular coordinates of the point Ai and the tool central-axis vector, and creating NC data for simultaneous five-axis control using these coordinates.

Inventors: HANAOKA OSAMU FANUC DAI- VIRA-, SAMUKAWA KOJI FANUC DAI- VIRA-, SEKI MASAKI, HANAOKA, OSAMU FANUC DAI-3 VIRA-KARAMATSU, SAMUKAWA, KOJI FANUC DAI-3 VIRA-KARAMATSU, SEKI, MASAKI
Applicants: FANUC LTD, FANUC LTD.
Application year: 1988
Main classification: G05B19
IPC codes: G05B19