AREA MACHINING METHOD

Abstract: A method of machining the inside of an area (AR) surrounded by a closed curve (OFC′). The method includes: (1) the step of calculating the centroid (W) of the area (AR) surrounded by the closed curve (OFC′); (2) the step of decid­ ing whether or not each of the line segments (L1 to L10) re­ spectively connecting the centroid and the vertexes (P1 to P10) of the area crosses the closed curve; the step (3) of, if each of the line segments does not cross the closed curve, dividing each of the line segments into a predetermined number of partitions; (4) the step of moving a tool along a plurality of closed paths (CPT1), CPT2 ...) each formed by connecting the corresponding points of partition of the re­ spective line segments, thereby effecting an area machining operation; and (5) the step of, if at least one of the line segments crosses the closed curve, dividing the area (AR) into a plurality of regions calculating the centroid of each of the divided regions, dividing each of the line segments into a predetermined number of partitions, the line seg­ ments being respectively formed by connecting each of the centroids and the vertexes of the divided region corre­ sponding to that centroid, calculating a plurality of closed paths, each formed by connecting the corresponding points of partition of the respective line segments for each of the divided regions, and successively moving the tool along each of the closed paths, thereby effecting an area machin­ ing operation.

Description: This invention relates to an area cutting method in a numerically controlled machine tool and, more particularly, to an area cutting method for cutting the interior of an area bounded by the curve of an external shape. Forms of numerically controlled machining include cutting in which the interior of an area bounded by the curve of an external shape, for example the curve of an external shape comprising straight lines and circular arcs, is hollowed out down to a predetermined depth, and die milling in which the interior of an area is die milled. In such machining, as shown in Fig. 1(A), an area cutting method is conventionally carried out by performing cutting along an (i-l)th cutting path PTi-l in one direction (the direction of the solid line arrow), raising the tool a predetermined amount at the completion of cutting, then positioning the tool directly above a cutting starting point Ps on the next, or i-th, cutting path PTi, thereafter lowering the tool to the cutting starting point Ps, moving the tool along the i-th cutting path PTi in the direction of the solid line arrow, and subsequently repeating the above unidirectional cutting. Another area cutting method shown in Fig. 1(B) includes, following completion of cutting along the cutting path PTi-l of the (i-l)th cutting path, moving the tool from a cutting end point Pe to the cutting starting point Ps on the next, or i-th, cutting path, and thereafter performing cutting along the i-th cutting path PTi. Thus, cutting is performed back and forth in the direction of the arrows. Still another area cutting method shown in Fig. 1(C) includes obtaining offset paths OFC1, OFC2,... OFCn offset by predetermined amounts with respect to a curve OLC of an external shape, and moving the tool successively along the offset paths. However, with the first area cutting method based on unidirectional cutting, the tool must be positioned at the cutting starting point Ps on the i-th cutting path PTi after the completion of cutting along the (i-l)th cutting path PTi-l. This method is disadvantageous in that it results in a long tool travelling distance. With the second cutting method based on reciprocative cutting, portions are left uncut. In order to cut the uncut portions, the tool must be moved along the external shape curve OLC at completion of the back-and-forth cutting, thereby necessitating both back-and-forth cutting control and cutting control along the shape of the external curve. Accordingly, this method is disadvantageous in that control is complicated. Further, if an area AR has concavities and convexities, as shown in Fig. 1(D), the second method requires movement for achieving positioning indicated by the dashed lines. This is disadvantageous in that tool travelling distance and cutting time are prolonged. In addition, since the cutting process for the outward trip is different from the cutting process for the return trip, cutting cannot be performed efficiently overall. It should be noted that the cutting processes referred to here indicate up cutting and down cutting processes. Figs. 2(A), (B) show examples of the down cutting process, and Figs. 2(C), (D) depict exampes of the up cutting process. If the workpiece material has been decided, then a cutting method capable of cutting the workpiece efficiently is selected from the up cutting and down cutting processes. However, with the second method, the up cutting process [e.g., Fig. 2(A)] and the down cutting process [e.g., Fig. 2(C)] are always mixed, so that cutting cannot be performed efficiently. With the third method of cutting along the offset paths, portions are left uncut at, e.g., the central portion of the area, depending upon the contour of the external shape curve. This method is disadvantageous in that dealing with these uncut portions is a complicated task. Accordingly, an object of the present invention is to provide an area cutting method whereby the interior of an area can be cut continuously and efficiently preferably without requiring control for raising a tool, positioning the tool at the next cutting starting point and then lowering the tool. Another object of the present invention is to provide an area cutting method wherein portions need not be left uncut. According to the present invention, a numerically controlled area cutting method for cutting the interior of a workpiece area bounded by a closed curve having vertices has a step of calculating the centroid of the workpiece area bounded by said closed curve, a step of determining whether any of the line segments connecting the centroid with the vertices of the area intersects the closed curve, a step of partitioning all said line segments into one and the same predetermined number of partitions if no line segment intersects the closed curve, and a step of performing the numerically controlled area cutting by moving a tool along plural closed paths each of which is obtained by connecting corresponding ones of the partitioning points of respective ones of said line segments. Some of the techniques employed in methods according to the present invention, such as providing machining paths by partitioning line segments as aforesaid, are disclosed in EP-A-0160097 relevant under Article 54(3)EPC. According to a development of the present invention there is provided a step, which is executed if at least one line segment intersects the closed curve, of partitioning said workpiece area into a plurality of regions which are bounded by respective parts of the closed curve such that the closed curve is not intersected by any of the line segments connecting the centroids of said regions with the vertices of the respective regions, calculating the said centroid of each partitioned region, partitioning all said line segments connecting the centroid of each region with the vertices of that region into one and the same predetermined number of partitions, finding plural closed paths, for each partitioned region, obtained by connecting corresponding ones of the partitioning points of the line segments, and performing area cutting by successively moving the tool along each closed path. Brief Description of the Drawings Fig. 1 is a view for describing a conventional area cutting method, Fig. 2 is a view for describing up cutting and down cutting processes, Fig. 3 is a view for describing the general features of a method according to the present invention, Fig. 4 is a block diagram of an embodiment of the present invention, Fig. 5 is a flowchart of processing indicative of an area cutting method according to the present invention, Fig. 6 is a view for describing a method of calculating an offset curve, Fig. 7 is a view for describing a method of linear approximation of a circular arc portion, Fig. 8 is a view for describing a method of calculating a centroid, and Fig. 9 is a view for describing an area cutting method according to the present invention for a case where the area has a complicated shape. Fig. 4 is a block diagram of an embodiment of the present invention, and Fig. 5 is a flowchart of processing. An area cutting method according to the present invention will now be described with reference to Figs. 3 through 5. Area cutting data necessary for area cutting are recorded at appropriate locations on an NC tape or memory (assumed to be an NC tape hereafter) 101. Specifically, in addition to ordinary numerical control data, area cutting instructions, coordinate values (x j ,y j ) of the vertices Q1, Q2, Q3,... Qn of the area, the radius r j of each circular arc, finishing margin t, cut-in pitch P, cutting velocity fc, and data for identifying the end of the area cutting data, are recorded on the NC tape 101. Note that the positions of the apices and the radii of the circular arcs are commanded in sets in the form, e.g., (x j ,y j ,r j ), with r j =0 being commanded in the case of straight lines. Accordingly, in the area cutting of the area AR shown in Fig. 3, the area is specified by Xx₁ Yy₁ R0; Xx₂ Yy₂ R0; Xx₃ Yy₃ R0; Xx₄ Yy₄ R0; Xx₅ Yy₅ R0; Xx₆ Yy₆ R0; Xx₇ Yy₇ Rr; (1) When a cycle start button on an operator's panel 102 is pressed to start the system, a processor 103 causes an NC data reader 104 to read one block of NC data from an NC tape 101. (2) Next, under the control of a control program stored in a ROM 105, the processor 103 decodes the read NC data and determines whether the NC data are indicative of program end "M02" or tape end "M30". (3) If program end or tape end is indicated, processing is stopped. If the NC data are path data, then these data are delivered to a pulse distributor 106. If an item of NC data is an M-, S- or T- function instruction to be delivered to the machine side, then the instruction is applied to a machine tool 108 through a magnetics circuit 107. If an item of data is an area cutting instruction, then the NC data reader 104 is caused to read the area cutting data. When an item of NC data is path data, the processor 103 finds incremental values Xi, Yi, Zi along the respective axes. The processor 103 then uses a three-dimensional command velocity F and the incremental values Xi, Yi, Zi along the respective axes to obtain velocity components F x , F y , F z along the respective axes from equations and thereafter obtains travelling quantities Δ X, Δ Y, Δ Z, which are to be traversed along the respective axes in a predetermined period of time Δ T seconds (= 16 msec), from equations Δ X = F x · Δ T (2a) Δ Y = F y · Δ T (2b) Δ Z = F z · Δ T (2c) The processor delivers Δ X, Δ Y, Δ Z to the pulse distributor 106 every Δ T sec. Note that Δ T is stored beforehand in a parameter memory 109. On the basis of the input data, the pulse distributor 106 performs a simultaneous three-axis pulse distribution calculation to generate distributed pulses Xp, Yp, Zp. These are delivered to servo circuits 110X, 110Y, 110Z for the respective axes to transport the tool along the cutting path. The processor 103, in accordance with the following formulae, updates the present position X a , Y a Z a every Δ T sec, X a , Y a , Z a having been stored in a RAM 111: X a ± Δ X → X a (3a) Y a ± Δ Y → Y a (3b) Z a ± Δ Z → Z a (3c) The sign depends upon the direction of movement. Similarly, in accordance with the following formulae, the processor 103 updates remaining traveling distances X r , Y r , Zr (the initial values of which are the incremental values X i , Y i , Z i , respectively) every Δ T sec, X r , Y r , Z r having been stored in the RAM 111: X r - Δ X → X r (4a) Y r - Δ Y → Y r (4b) Z r - Δ Z → Z r (4c) When the following condition is established: X r = Y r = Z r = 0 (5) the processor 103 treats this as indicating that the movable element has arrived at a target position and causes the NC data reader 104 to read the next item of NC data. (4) If an item of NC data read from the NC tape 101 is found to be an area cutting command, the processor 103 causes the NC data reader 104 to read the area cutting data and store the data in the RAM 111 until the code indicating the end of the area cutting data is read out. (5) When the reading of the area cutting data ends, the processor 103 calculates the curve OFC, which is offset from the curve OLC (Fig. 3) of the external shape by a distance D (= ra+t), the latter being obtained by adding the tool radius ra and the finishing margin t. It should be noted that the tool radius ra is obtained by reading a radius value corresponding to a commanded tool number from an offset memory 112, which stores the correspondence between tool numbers and tool radii. The offset curve OFC is found through the following processing. Specifically, as shown in Fig. 6, let two straight lines specifying the curve OLC of the external shape be S1 and S2. Straight lines S1', S2' offset from the straight lines S1, S2, respectively, by the distance D are found. The intersection P2 of the straight lines S1', S2' is then found. The intersection P2 is one point specifying the offset curve OFC. Accordingly, if points of intersection are found in a similar manner and stored in the RAM 111, the offset curve OFC will be obtained. (6) The processor 103 now linearly approximates the circular arc portion of the offset curve OFC. In performing the linear approximation processing, it is so arranged that the maximum distance between the circular arc portion and the straight line takes on a value smaller than the cut-in pitch P. Fig. 7 is a view for describing the linear approximation processing. For a case where the inner side of a circular arc Al is the area to be cut, as shown in Fig. 7(A), the maximum distance d between the circular arc Al and the straight line (chord) LN is given by d = r - r·cos (ϑ/2) (6) where the radius of the arc is r and the central angle of the chord LN is ϑ. Accordingly, the central angle ϑ for which d≦P holds, namely the central angled ϑ that satisfies the relation cos (ϑ/2) ≧ 1 - (P/r) (7) is found, the central angle  of the circular arc Al is partitioned at the angle ϑ and the coordinate values of each partitioning point R i are stored in the RAM 111. This ends the processing for linear approximation. If we let the coordinate values of the starting point P7 of circular arc Al be (x₇,y₇), then the coordinate values (x i ,y i ) of an i-th partitioning point R i , for a case where the arc center CN is taken as the origin, may be calculated from the equations x i = x₇·cos(i·ϑ) - y₇·sin(i·ϑ) (8a) y i = x₇·sin(i·ϑ) + y₇·cos(i·ϑ) (8b) For a case where the outer side of a circular arc Al is the area to be cut, as shown in Fig. 7(B), the maximum distance d between the circular arc Al and the straight line LN is given by d = (r/cos ϑ) - r (9) Accordingly, the angle ϑ for which d≦P holds, namely the angle ϑ that satisfies the relation cos ϑ ≧ r/(r + P) (10) is found, the point R i linearly approximating the circular arc portion on the basis of ϑ is found, and this is stored in the RAM 111. This ends the processing for linear approximation. (7) When the linear approximation processing ends, the processor 103 calculates the centroid W of an area (a polygon) bounded by an offset curve OFC' (see Fig. 3) obtained by the linear approximation. The coordinate values of the centroid of the area (polygon) are calculated through the following processing. Specifically, as shown in Fig. 8, a polygon PG is broken down into a plurality of triangles TR1 through TR3 and the centroids W11 through W13 and areas SQ1 through SQ3 of the respective triangles are calculated. Next, a point W21 that divides a line segment W12W11 connecting the centroids W11, W12 into the ratio SQ1:SQ2 (area ratio) is found. Note that the point W21 is the centroid of a quadrilateral P1P2P3P4. After the point W21 is calculated, a point W is found that divides a line segment W13W21 into the area ratio (SQ1+SQ2):SQ3. The point W is the centroid of the polygon PG. (8) When the centroid W (Fig. 3) of the area is found, the processor 103 checks whether line segments L1 - L10 connecting the centroid W with each of the vertices P1 - P10 of the area intersect the linearly approximated offset curve OFC'. The term "intersect" as used here refers to a state in which, as shown in Fig. 9(A), the line segment L6 connecting the centroid W with the vertex P6 of the polygon P1P2...P7 crosses the offset curve OFC'. (9) If none of the line segments L1 - L10 inersects the offset curve OFC', then the processor obtains, and stores in the RAM 111, the coordinate values of partitioning points P a1 , P b1 , . . . . . . . . . . .P n1 ; P a2 , P b2 , . . . . . . . . . . .P n2 ; P a3 , P b3 , . . . . . . . . . . .P n3 ; . . . . . . . . . . . . . . . . . P a10 , P b10 , . . . . . . . . . . .P n10 ; that partition, into a predetermined number of partitions n, each of the line segments L1 - L10. As for the number n of partitions, the length ℓ of the longest of all the abovementioned line segments L1 - L10 is found, after which n is so decided as to satisfy the relation P ≧ ℓ/n (10) When the coordinate values of the partitioning points of each of the line segments are found, there are generated plural closed paths CPT1, CPT2,... CPTn obtained by connecting the partitioning points P a1 , P a2 , P a3 . . . . . . . . . P a10 ; P b1 , P b2 , P b3 . . . . . . . . . P b10 ; . . . . . . . . . . . . . . . . . . P n1 , P n2 , P n3 . . . . . . . . . P n10 ; that correspond to each of the foregoing line segments, the tool is moved along each closed path and finally along the offset curve OFC or OFC'. The area AR can thus be cut. Accordingly, by using the coordinate values of the starting point P a1 of the first closed path CPT1 stored in the RAM 111 through the above-described processing, the processor 103 obtains numerical data (incremental values between an initial position and the starting point P a1 ) for making the tool approach the starting point P a1 from the initial position, and thereafter executes path control based on the aforementioned Eqs. (1a) through (5) by using the incremental values. When the approach is completed, the processor moves the tool to the point P a2 along the first closed path CPT1 in a cutting feed mode and thereafter successively moves the tool along the first closed path in the manner P a2 → P a3 → P a4 ... → P a10 to perform cutting. When the cutting along the first closed path ends, the tool is shifted to the point P b1 (P a1 → P b1 ) in the cutting feed mode and cutting is subsequently performed along the second closed path CPT2, third closed path, ... n-th closed path CPTn. Finally, the tool is moved along the offset curve OFC or OFC' in accordance with the data specifying the offset curve OFC or OFC' stored in the RAM 111. This ends the area cutting processing. Thereafter, the next item of NC data is read from the NC tape and the foregoing processing is repeated. Though a case has been described where the tool movement sequence is CPT1 → CPT2 → ... → CPTn → OFC when performing cutting, the present invention is not limited to this sequence, for movement along the offset curve OFC (OFC') can be exercised first. Further, it is possible to adopt an arrangement wherein an NC tape is prepared by the above-described method using area cutting data and the NC tape is loaded into an NC unit to cut the area. (11) In a case where at least one of the line segments from among the line segments L1 - L10 connecting the centroid with the vertices intersects the linearly approximated offset curve OFC', the area (polygon) bounded by this linearly approximated offset curve OFC' is partitioned into a plurality of regions. This area partitioning operation is carried out through the following sequence, which serves as an example [see Fig. 9(A)]: (a) It is checked whether line segment Li connecting the centroid W with the i-th (the initial value of i is 1) vertex Pi intersects the offset curve OFC'. (b) If no intersection occurs, the operation i+1 → i is performed and the decision process of step (a) is performed. (c) If an intersection occurs, the polygon P1P2P3...Pi-l is treated as a first partitioned region AR₁. (d) Thereafter, the centroid of the polygon PiPi+l...Pl is found and the processing of steps (a) - (c) is repeated for the polygon PiPi+l...Pl. The foregoing processing partitions the area into a plurality of regions. (In the example of Fig. 9, the area is partitioned into two regions AR1, AR2.) (12) When the area partitioning processing ends, the centroids W1, W2 of the respective partitioned regions AR1, AR2 are obtained, processing similar to that described above is performed to obtain plural closed paths CPT11 - CPT1n, CPT21 - CPT2m in the respective partitioned regions AR1, AR2, and area cutting is performed by moving the tool along these closed paths. Thus, area cutting can be performed while moving a tool in a continuous manner. This eliminates wasted tool motion, raises the efficiency of cutter pass and shortens machining time. Further, the distance between i-th and (i+l)th closed paths is changed in dependence upon the shape to be cut, with the result that portions are not left uncut at the central and other parts of the area. Still further, area cutting is performed in a simple manner merely by finding a centroid, partitioning straight lines connecting the centroid with the vertices of the area into a predetermined number of segments, and successively moving the tool along the closed paths connecting corresponding ones of the partitioning points. In addition, tool paths can be generated automatically merely by entering area cutting data. The present invention is well-suited for application to area cutting performed by machine tools, or to the creation of NC data for area cutting.

Claims: A numerically controlled area cutting method for cutting the interior of a workpiece area bounded by a closed curve (OFC') having vertices (Pi), characterised by a step of calculating the centroid (W) of the workpiece area bounded by said closed curve (OFC'), a step of determining whether any of the line segments (W,Pi) connecting said centroid (W) with the vertices (Pi) of the area intersects the closed curve (OFC'), a step of partitioning all said line segments (W,Pi) into one and the same predetermined number of partitions (Pai-Pni) if no line segment (W,Pi) intersects the closed curve (OFC'), and a step of performing the numerically controlled cutting by moving a tool along plural closed paths each of which is obtained by connecting corresponding ones of the partitioning points (Pa1-Pa10;Pn1-Pn10) of respective ones of said line segments (W,Pi). The area cutting method of claim 1, characterised by a step, which is executed if at least one line segment (W,Pi) intersects the closed curve (OFC'), of partitioning said workpiece area into a plurality of regions (AR1,AR2) which are bounded by respective parts of the closed curve (OFC') such that the closed curve is not intersected by any of the line segments (W1,Pi;W2,Pi) connecting the centroids (W1,W2) of said regions (AR1,AR2) with the vertices (Pi) of the respective regions, calculating the said centroid (W1,W2) of each partitioned region (AR1,AR2), partitioning all said line segments (W1,Pi;W2,Pi) connecting the centroid (W1,W2) of each region (AR1,AR2) with the vertices (Pi) of that region into one and the same predetermined number of partitions, finding plural closed paths, for each partitioned region (AR1,AR2), obtained by connecting corresponding ones of the partitioning points of respective ones of the line segments, and performing cutting by successively moving the tool along each closed path. An area cutting method according to claim 2, wherein the vertices on the closed curve are designated P1,P2 ... Pi, consecutively, characterised in that if a line segment connecting an i-th vertex Pi with the centroid (W ) intersects the closed curve (OFC'), a region composed of vertices P1,P2, ... Pi-l is treated as one partitioned region (AR2). An area cutting method according to claim 3, characterised by checking whether any line segment connecting the centroid (W2) of a region composed of vertices Pi, Pi+l, ... Pl with a respective vertex of the region intersects a curve of an external shape specifying the region, and treating said region as a partitioned region (AR1) if intersection does not occur. An area cutting method according to any preceding claim, characterised in that the or each said centroid is the centroid of an area bounded by an offset curve offset a predetermined amount from a curve of an external shape specifying said workpiece area. An area cutting method according to claim 5, characterised in that said predetermined amount is the sum of a finishing tolerance and a cutter diameter. An area cutting method according to claim 5 or 6, wherein said offset curve includes a circular arc portion, characterised in that said centroid is the centroid of an area bounded by a linearly approximated offset curve obtained by linearly approximating said circular arc portion. An area cutting method according to claim 7, characterised in that when said circular arc portion is approximated by straight lines, the maximum distance between the circular arc portion and an approximating straight line is less than a predetermined cut-in pitch. An area cutting method according to any preceding claim, characterised in that said predetermined number of partitions is decided in such a manner that the length of partitioned line segments, obtained by partitioning a line segment of maximum length among the line segments connecting said centroid with said vertices, is less than a predetermined cut-in pitch. An area cutting method according to claim 7 or 8, or claim 9 when appended thereto, characterised by dividing the area bounded by said linearly approximated offset curve into plural triangles (TR1,TR2,TR3), calculating the centroids (W11,W12,W13) and areas of the respective triangles, partitioning a line segment, which connects the centroids (W11,W12) of first and second neighbouring triangles (TR1,TR2), by a partitioning point (W21) at the ratio of the area of said first triangle (TR1) to the area of said second triangle (TR2), adopting said partitioning point (W21) as the centroid of a quadrilateral obtained by combining said first and second triangles (TR1,TR2), partitioning a line segment, which connects the centroid (W21) of said quadrilateral and the centroid (W13) of a third triangle (TR3), by a partitioning point (W) at the ratio of the area of said quadrilateral to the area of said third triangle (TR3), adopting said partitioning point as the centroid of a pentagon obtained by combining said first, second and third triangles, and thereafter calculating the centroid of the area in a like manner.

Inventors: KISHI, HAJIMU, ONISHI, YASUSHI, SEKI, MASAKI, TAKEGAHARA, TAKASHI
Applicants: FANUC LTD.
Application year: 1985
Main classification: B23Q15
IPC codes: B23Q15, G05B19, B23H7, B23C3