AREA MACHINING METHOD

Abstract: Method of machining an area (AR) surrounded by an outline curve (OLC) and at least two closed curves (INC1 and INC2) which are present inside the outline curve. The method includes: a step of calculating first and second offset curves (INF1 and INF2) which are outwardly offset from the respective closed curves (INC1 and INC2) by an amount which corresponds to the tool diameter: a step of checking as to whether the offset curves cross each other; a step of recognizing that when the offset curves cross each other there is a region (CSA) which is impossible to machine; and, when there is a region (CSA) which if is impossible to machine, a step of machining only the area other than said region (CSA).

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 an area delimited by a curve of an external shape and at least two closed curves which lie within the curve of the external shape. Forms of numerically controlled machining include cutting in which the interior of an area bounded by 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-1th cutting path PTi-1 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 by moving the tool in the direction of the dashed-line arrow, 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-1 of the (i-1)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 solid-line arrows. There are cases where it is required to cut an area AR (shaded portion) delimited by a curve OLC of an external shape and a closed curve INC inside the curve of the external shape, as shown in Fig. 2. The reason for example is that it maybe necessary to form bolt holes, which are needed for effecting a connection to another part, in the area (hereafter referred to as an "island") IRD bounded by the closed curve INC, or to hollow out the island IRD to a depth less than that of the area AR by using a different tool. Thus, if the island IRD is present inside the curve of the external shape, the area AR (the shaded portion in Fig. 2) delimited by the shape OLC of the external curve and the closed curve INC is cut, in accordance with the conventional method shown in Fig. 1(A) or (B), by (a) obtaining intersection points P i , Q i between a straight line SL i and the curve OLC (actually an offset curve) of the external shape, and obtaining intersection points R i , S i between the straight line SL i and the closed curve INC (actually an offset curve), (b) then moving the tool in a cutting-feed mode from the point P i to the point R i after positioning the tool at the point P i , which is a cutting starting point, (c) raising the tool along the +Z axis up to an approach plane APP (Fig. 3) after the tool arrives at the point R i , (d) moving the tool in a rapid-traverse mode on the approach plane, after the tool has arrived at the approach plane, to a point S i ' directly above the point S i , (e) then lowering the tool in the cutting-feed mode to the point S i , (f) thereafter moving the tool in the cutting-feed mode from the point S i to the point Q i , and (g) subsequently repeating steps (a) through (f) for the next cutting path. Area cutting can thus be carried out with the conventional methods even if the island IRD is present. However, the conventional methods cannot be applied as they are if two or more islands are present and the spacing between the islands is small. By way of example, the conventional methods cannot be applied if, as shown in Fig. 4, two islands IRD₁, IRD₂ reside so close together inside the curve OLC of the external shape that offset curves INF₁, INF₂ intersect, the latter curves being obtained by offsetting closed curves INC₁, INC₂, which specify the respective islands, by a predetermined amount D (e.g., a value obtained by adding tool radius r a and finishing tolerance t). If the conventional methods are forced into use in this case, the tool TL will unfortunately cut into either island IRD₁ or island IRD₂ in the vicinity of the intersection CSA. Accordingly, an object of the present invention is to provide an area cutting method whereby area cutting can be performed even if two or more islands reside so close together inside the curve OLC of the external shape that the offset curves INF₁, INF₂ of the closed curves INC₁, INC₂ specifying the islands intersect each other. Another object of a first aspect of the present invention is to provide an area cutting method wherein, when two offset curves INF₁, INF₂ intersect each other, these are combined to obtain a combined offset curve consisting of a single closed curve and area cutting is performed upon so arranging it that the center of the tool does not penetrate the interior of the offset curve. Still another object of the present invention is to provide an area cutting method wherein, when two offset curves intersect each other to give rise to a portion which is impossible to area-cut, cutting of this portion is omitted and only the remaining area-cuttable portions are area-cut. Preferably, the curve of an external shape, each closed curve inside the curve of the external shape and offset curves may be displayed on a display unit. According to a first aspect of the present invention, there is provided a numerically controlled cutting method for cutting an area delimited by a curve of an external shape and at least two closed curves which lie within said curve of the external shape, these three curves being predefined by an NC machining program, the method comprising a step of calculating offset curves offset outwardly from respective ones of said closed curves by an amount dependent upon tool diameter, a step of checking whether the offset curves intersect one another, a step of ascertaining that a portion incapable of being area-cut exists when the offset curves intersect one another, and a step of cutting the area from which said portion incapable of being area-cut is omitted, this portion lying within an area bounded between the intersecting offset curves; wherein a combined offset curve is calculated which is made up of the intersecting offset curves except for the portions thereof which contain said area bounded between the intersecting offset curves, the area cutting being performed in such manner that the center of the cutting tool does not penetrate the interior of the calculated combined offset curve. According to a second aspect of the present invention, there is provided a numerically controlled cutting method for cutting an area delimited by a curve of an external shape and at least two closed curves which lie within said curve of the external shape, these three curves being predefined by an NC machining program, the method comprising a step of calculating offset curves offset outwardly from respective ones of said closed curves by an amount dependent upon tool diameter, a step of checking whether the offset curves intersect one another, a step of ascertaining that a portion incapable of being area-cut exists when the offset curves intersect one another, and a step of cutting the area from which said portion incapable of being area-cut is omitted, this portion lying within an area bounded between the intersecting offset curves; wherein area cutting data is entered necessary for performing area cutting based on undirectional cutting or back-and-forth cutting and a cutting straight line is calculated, which specifies an i-th cutting path PT i , from cutting path shift direction and shift amount contained in said area cutting data, points P i , Q i are calculated at which said straight line intersects an offset curve obtained by inwardly offsetting the curve of the external shape, as well as points R i , S i ; T i , U i at which said straight line intersects each of said intersecting offset curves respectively, the tool is moved in a cutting-feed mode along the i-th cutting path from the machining starting point P i to the initial intersection point R i , the tool is then moved in the cutting-feed mode along the offset curve containing said intersection point then, in a case where the tool arrives back at the i-th cutting path before arriving at a different offset curve, the tool is moved in the cutting-feed mode along the i-th cutting path after arrival thereat whereas, in a case where the tool arrives at said different offset curve before arriving back at the i-th cutting path, the tool is then moved along the other offset curve after arrival thereat and then along the i-th cutting path to the machining end point Q i . Brief Description of the Drawings Figs. 1(A), (B) are views for describing conventional area cutting methods by unidirectional and back-and-forth cutting, Figs. 2 and 3 are views for describing a conventional cutting method for a case where an island is present, Fig. 4 is a view for describing the drawback of the conventional area cutting methods where two islands are present, Fig. 5 is a view for describing one method according to the present invention in general terms, Fig. 6 is a block diagram of an apparatus for practicing an area cutting method of the present invention, Fig. 7 is a flowchart of processing for implementing an area cutting method of the present invention, Fig. 8 is a view for describing offset processing, Fig. 9 is a view for describing processing for creating a combined offset curve, Fig. 10 is a view for describing a cutting method for a case where a portion incapable of being area-cut does not exist, and Fig. 11 is a view for describing another area cutting method according to the present invention. Fig. 5 is a view for describing one method according to the present invention in general terms. The present invention provides an area cutting method for cutting an area AR delimited by a curve OFC of an external shape and at least two closed curves INC₁, INC₂ which lie within the curve of the external shape. The area cutting method has a step of calculating first and second offset curves INF₁, INF₂ offset outwardly from the respective closed curves by an amount dependent upon tool diameter, a step of checking whether the offset curves intersect each other, and a step of cutting an area from which there has been omitted an area CSA common to an area bounded by the first offset curve INF₁ and an area bounded by the second offset curve INF₂ when the offset curves intersect each other. Fig. 6 is a block diagram of an apparatus for practicing the method of the present invention, and Fig. 7 is a flowchart of processing according to the present invention. The area cutting method of the present invention will now be described in accordance with Figs. 5, 6 and 7. (1) When a cycle start button on an operator's panel 101 is pressed, a processor 102 causes an NC data reader 103 to read one block of NC data from an NC tape 104. The NC tape 104 stores area cutting data in addition to ordinary path data, G-function instruction data and M-, S- and T-function instruction data. Stored at the end of the NC program is an M code (M02) indicating program end. Placed at the beginning of the area cutting data is an area cutting command indicating that the data which follow are the area cutting data. Placed at the end of the area cutting data is a code indicative of the end of the area cutting data. (2) The processor 102, placed under the control of a control program stored in a ROM 105, checks whether an item of the read NC data is "M02", which is indicative of program end. If the item of data is "M02", numerical control processing is ended. (3) If the item of read NC data is not "M02" indicative of program end, then the processor 102 checks whether the item of NC data is the area machining command. (4) If the item of NC data is not the area machining command, the processor 102 executes ordinary numerical control processing. By way of example, if an item of NC data is an M-, S- or T-function instruction, the processor delivers the data to a machine tool 107 via an interface circuit 106 between an NC unit and the machine. When the machine tool 107 generates a completion signal indicating completion of processing for the M-, S- or T-function instruction, the processor causes the NC data reader 103 to read the next item of NC data. If the item of NC data is path data, then the following path control processing is executed. Specifically, the processor obtains incremental values X i , Y i , Z i along the respective axes, obtains velocity components F x , F y , F z along the respective axes from equations based on the incremental values and a commanded feed velocity F, thereafter obtains traveling quantities Δ X, Δ Y, Δ Z, which are to be traversed along the respective axes in a predetermined period of time Δ T seconds (= 8 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 a pulse distributor 108 every Δ T sec. On the basis of the input data ( Δ X, Δ Y, Δ Z), the pulse distributor 108 performs a simultaneous three-axis pulse distribution calculation to generate distributed pulses X p , Y p , Z p . The distributed pulses are applied as inputs to servo circuits 109X, 109Y, 109Z for the respective axes to rotate servomotors 110X, 110Y, 110Z: The tool is thus moved relative to the workpiece toward a target position. The processor 102, in accordance with the following formulae, updates the present position X a , Y a Z a along the respective axes every Δ T sec, X a , Y a , Z a having been stored in a working memory 112: 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 102 updates remaining traveling distances X r , Y r , Z r (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 working memory 112: 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 102 then causes the NC data reader 103 to read the next item of NC data. (5) If the item of NC data is found to be the area cutting command at the decision step (3), the processor 102 causes the NC data reader 103 to read the area cutting data and store the data in a RAM 111 until the code indicating the end of the area cutting data is read out. It should be noted that the area cutting data are (1) data specifying the curve OLC of the external shape of the area, (2) data specifying the two closed curves INC₁, INC₂ inside the curve of the external shape, (3) cutting direction data (data indicating that the tool is to be moved in the direction of the arrow A or in the direction of an arrow D in Fig. 5), (4) cut-in direction data (data indicating that the cutting path is to be shifted in the direction of the arrow B or in the direction of an arrow C in Fig. 5), (5) pitch P in the cut-in direction (the amount of cutting path shift), (6) cutting velocity, (7) coordinate values of a starting point P s in the cut-in direction, (8) coordinate values of an end point P e in the cut-in direction, (9) the position of an approach plane, and the like. Hereafter we will assume that the cutting direction is the +X direction, that the cut-in direction is the +Y direction, that the approach plane is parallel to the XY plane at a height Z A , that the coordinate values of the cut-in direction starting point P s are (X s ,Y s ), and that the coordinate values of the cut-in direction end point P e are (X e ,Y e ). (6) When the reading of the area cutting data ends, the processor 102 calculates, and stores in the RAM 111, an offset curve OFC of the external shape offset from the curve OLC of the external shape by a distance D (= r a +t), the latter being obtained by adding the tool radius r a and the finishing tolerance t, as well as the first and second offset curves INF₁, INF₂ offset outwardly from the closed curves INC₁, INC₂, respectively, by the distance D. It should be noted that D = r a is permissible. Also, the tool radius r a is obtained by reading a radius value corresponding to a commanded tool number from an offset memory 113, which stores the correspondence between tool numbers and tool radii. The offset curve OFC of the external shape and the first and second offset curves INf₁, INF₂ area found through the following processing. Specifically, as shown in Fig. 8, let two straight lines specifying the curve OLC of the external shape be S1 and S2. Straight lines S1', S2' offsets 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 of the external shape. Accordingly, if points of intersection are found in a similar manner and stored in the RAM 111, the offset curve OFC of the external shape will be obtained. The first and second offset curves INF₁, INF₂ are found in a similar manner. (7) When the offset curve OFC of the external shape band the first and second offset curves INF₁, INF₂ have been found, the processor 102 causes the offset curve data to be displayed on a display unit 114 together with data specifying the curve OLC of the external shape and data specifying the closed curves INC₁, INC₂. As a result, the curve OLC of the external shape and the closed curves INC₁, INC₂ are displayed in the form of solid lines, as well as the offset curves in the form of dashed lines, on a CRT screen by a well-known method. By observing the display, an operator is capable of perceiving that a portion which cannot be area-cut exists, this being the case if the offset curves indicated by the dashed lines intersect each other. The operator also perceives that a shape actually cut by subsequent processing may differ slightly from the desired shape. (8) Next, the processor 102 performs an internal check to determine whether the offset curve INF₁ and offset curve INF₂ intersect. The offset curves INF₁, INF₂ are both composed of a number of straight lines and circular arcs (straight lines and circular arcs will hereafter be referred to as elements). More specifically, as shown in Fig. 9, the offset curve INF₁ consists of elements E₁₁, E₁₂,... E 1n , and the offset curve INF₂ consists of elements E₂₁, E₂₂, E₂₃ , ... E 2m . Accordingly, the processor 102 first performs the operations 1 → i, 1 → j. (9) Next, the processor determines whether the i-th element E 1i of the offset curve INF₁ intersects the j-th element E 2j of the offset curve INF₂. (10) If the elements do not intersect, the operation j + 1 → j is performed. (11) Next, j and the number m of elements constituting the offset curve INF₂ are compared in terms of magnitude and processing from step (9) onward is repeated if j ≦ m holds. (12) If j > m holds in the comparison of step (10), the operations 1 → j, i +1 → i are performed and i is compared in terms of magnitude with the number n of elements constituting the offset curve INF. (13) If i ≦ n holds, processing from step (9) onward is repeated. If i > n is attained without an intersection occurring, the processor 102 renders a decision, to the effect that the offset curves INF₁, INF₂ do not intersect. ` (14) On the other hand, if an element E 1i intersects an element E 2j at step (9), the processor 102 decides that the offset curves INF₁, INF₂ intersect and then executes processing for creating a combined offset curve. Specifically, the processor 102 treats elements E₁₁, E₁₂,... E 1(i-1) as elements of a combined offset curve and stores them in the RAM 111. The processor also treats a portion E 1i ' from the starting point P i of the element E 1i to the aforementioned intersection point C i (see Fig. 9) as an element of the combined offset curve, stores this portion in the RAM 111, and performs the operation i → I. (15) Next, the processor 102 determines whether the directions traveled in traversing elements E₁₁, E₁₂,... E 1n and elements E₁₂, E₂₂,... E 2m are clockwise or counter-clockwise. It should be noted that these position data are applied as area cutting data. (16) If both directions are clockwise or counterclockwise, the portion E 2j ' from intersection point C i to the end point Q j of element E 2j is treated as an element on the combined offset curve and is stored in the RAM 111. If the directions differ, a combined offset curve can be created through processing almost the same as that from this point onward. The description therefore is omitted. (17) The processor then performs the operations I + 1 → i and j + 1 → j. (18) Thereafter, the processor 102 determines whether the element E 2j of the offset curve INF₂ intersects the element E 1i of the offset curve INF₁. (19) The operation i + 1 → i is performed if the elements do not intersect. (20) Next, i and n are compared in terms of magnitude. If i ≦ n holds, processing from step (18) onward is repeated. (21) If i > n holds in the comparison of step (20), then the processor 102 treats the element E 2j as being an element on the combined offset curve and stores it in the RAM 111. The operations I + 1 → i and j + 1 → J are performed and processing from step (16) onward is repeated. Note that when j > m holds, the operation 1 → j is performed. (22) If the element E 2j is found to intersect the element E 1i in the decision step (18), then the processor 102 treats a portion E 2j '' from the starting point P i ' of the element E 2j to an intersection point C i ', a portion E 1i " from the intersection point C i ' to the end point Q i ' of the element E 1i , and all elements from the element E 1(i+1) to the element E1n as elements of the combined offset curve. The processor stores these portions in the RAM 111, thus ending processing for creating a combined offset curve COFC. It should be noted that if the directions traveled in traversing the constituent elements of the offset curves INF₁, INF₂ differ, the direction discrimination process of step (15) can be dispensed with if the constituent elements of one offset curve are arranged in reverse order beforehand to give them the same direction as the other offset curve. Thus, by way of the foregoing processing, there is created a combined offset curve COFC from which there are excluded first and second offset curve portions INF₁', INF₂' forming the area CSA common to both the area bounded by the first offset curve INF₁ and the area bounded by the second offset curve INF₂. Thereafter, area cutting from a step (23) onward is carried out. It should be noted that if the offset curves INF₁, INF₂ do not intersect [i.e., if i > n is found to hold at step (13)], a portion incapable of being area-cut does not exist. Instead of obtaining a combined offset curve, therefore, the processor 102 performs area cutting based on unidirectional cutting or back-and-forth cutting through the processing from step (23) onward. Let us assume that area cutting is performed by unidirectional processing hereinafter. (23) The processor 102 performs the operation 1 → k first. (24) Next, the processor 102 executes processing for specifying a k-th cutting path PT k (see Fig. 10). Specifically, the processor 102 first generates a straight line SL k . Note that the straight line SL k is expressed by the equation y = Y s + P·k (25) Thereafter, the processor 102 calculates intersection points P k , Q k where the straight line SL k intersects the offset curve OFC, and obtains intersection points R k , S k ; T k , U k between the straight line SL k and offset curves INF₁, INF₂, respectively. Of the intersection points P k , Q k , that which has the larger X coordinate value is treated as the machining starting point, and that which has the smaller X coordinate value is treated as the machining end point. (26-1) If the intersection points R k , T k do not exist (in which case the intersection points S k , U k also will be non-existent as a matter of course), the processor 102 executes processing similar to that of step (4) to move the tool in the cutting-feed mode from the machining starting point P k to the machining end point Q k , thereby performing cutting along the k-th cutting path PT k . (26-2) If only one of the intersection points R k , T k exists (we shall assume that only the point R k exists), the processor moves the tool in the cutting-feed mode from the machining starting point P k to the point R k , raises the tool along the +Z axis in the rapid-traverse mode up to an approach plane after the tool arrives at the point R k , moves the tool on the approach plane in the rapid-traverse mode to a point directly above the point S k after the tool arrives at the approach plane, then moves the tool in the cutting-feed mode to the point S k , and thereafter moves the tool in the cutting-feed mode from the point S k to the machining end point Q k to perform cutting along the k-th cutting path PT k . (26-3) If both of the intersection Points R k , T k exist, the tool is not moved from point S k to the machining end point Q k in step (26-1) but is moved from S k to intersection point T k in the cutting-feed mode. After the tool arrives at the point T k , the tool is raised along the +Z axis in the rapid-traverse mode up to the approach plane, moved on the approach plane in the rapid-traverse mode to a point directly above the point U k after it arrives at the approach plane, moved in the cutting-feed mode to the-point U k , and thereafter moved in the cutting-feeds mode from the point U k to the machining end point Q k to perform cutting along the k-th cutting path PT k . (27) When machining along the cutting path PTk ends, the processor 102 obtains the difference Δ Y (= Y e '-Y a ) between the present position coordinate (stored in the working memory 112) Y a along the Y axis and the Y-axis coordinate Y e ' of the cut-in direction end point P e and determines whether or not the difference is greater than the pitch P. (28) If ΔY ≧ P holds, the processor 102 performs the operation k + 1 → k and repeats the processing from step (24) onward. (29) If Δ Y < P holds, then the processor 102 moves the tool along the offset curves OFC, INF₁, INF₂ in the cutting-feed mode to machine the uncut portions, thereby ending area cutting. The processor subsequently reads the next item of NC data and repeats the foregoing processing. In a case where the offset curves INF₁, INF₂ intersect, area cutting is performed through processing similar to that of steps (23) through (29) by obtaining the intersection points between the straight line SL k and the offset curve OFC and between the straight line SL k and the combined offset curve COFC, and carrying out cutting along the cutting path PT k by using the coordinate values of the points of intersection. In the foregoing, area cutting is performed by checking in advance whether offset curves, which are offset outwardly from two respective closed curves inside a curve of an external shape, intersect each other, obtaining a combined offset curve in case of intersection, and using the combined offset curve. However, area cutting can be carried out without obtaining a combined offset curve. Fig. 11 is a view for describing another area cutting method for a case where a portion incapable of being machined exists. (A) in the Figure is for a case where the i-th cutting path PT i intersects solely the offset curve INF₁ of the first closed curve, and (B) and (C) are for cases where the i-th cutting path PT i intersects the offset curves INF₁, INF₂ of the first and second closed curves, in which (B) shows an instance where the points of intersection between the i-th cutting path PT i and one of the offset curves lie outside the other offset curve, and (C) shows an instance where, of the two points of intersection between the i-th cutting path PT i and one of the offset curves, one of the intersection points lies inside the other offset curve. In Fig. 11, note that the tool moves in the -X direction along the the dashed line. Processing executed by the processor will now be described in general terms. (1) Among the points of intersection between the i-th cutting path PT i and each of the offset curves, the processor obtains the point of intersection first reached by the tool, which is R i , and moves the tool to the intersection point R i in the cutting-feed mode. It should be noted that if a point of intersection does not exist, machining is performed by moving the tool in the cutting-feed mode from the machining starting point to the machining end point of the i-th cutting path. (2) After the tool arrives at the point of intersection R i , the processor moves the tool in the counter-clockwise direction from point R i along each element constituting the offset curve (offset curve INF₁ in the embodiment of Fig. 11) that contains the intersection point R i . Path processing takes place as described hereinbelow, in which we will assume that the element containing the point R i is the first element, and that the successive elements in the counter-clockwise direction are the second element, third element... and so on in the order mentioned. (a) It is determined whether the j-th element of the first offset curve INF₁ intersects the i-th cutting path PT i or the second offset curve INF₂. (b) If the offset curve intersects neither, the tool is moved along the element, the operation j + 1 → j is performed and similar processing is executed with respect to the next j-th element. (c) If the j-th element intersects only the i-th cutting path PT i [see Figs. 11(A), (B)], then the tool is moved along j-th element to the intersection point S i . (d) If the j-th element intersects only the second offset curve [see Fig. 11(c)], then the tool is moved along j-th element to the intersection point C i . (e) If the j-th element intersects both the i-th cutting path PT i and the second offset curve INF₂ then the tool is moved rapidly along the j-th element to the earlier occurring intersection point. (3) If the tool arrives at the i-th cutting path PT i before it reaches the second offset curve INF₂ [Fig. 11(B)], this is followed by obtaining an intersection point T i reached first by the tool among the intersection points between the i-th cutting path PT i and the second offset curve INF₂, moving the tool along the i-th cutting path to the point T i , thereafter moving the tool in the counter-clockwise direction along the second offset curve to an intersection point U i in the above manner, and then moving the tool along the i-th cutting path to the machining end point after the tool arrives at the intersection point Ui. Note that if the i-th cutting path PT i does not intersect the second offset curve INF₂ [Fig. 11(A)], the tool is moved along the i-th cutting path from the point S i to the machining end point. (4) If the tool arrives at the second offset curve INF₂ before it reaches the i-th cutting path PT i in being moved along the first offset curve INF₁ , the tool is subsequently moved in the counter-clockwise direction along the element of the second offset curve that contains the intersection point C i . In other words, it is checked whether the j-th element of the second offset curve INF₂ intersects the i-th cutting path. If it does not, the tool is moved along the j-th element, the operation j + 1 → j is performed and it is checked whether the next j-th element intersects the i-th cutting path. If it does, the tool is moved along the j-th element to the intersection-point U i . Lastly, the tool is moved along the i-th cutting path to the machining end point. Note that the first element is the one that contains the intersection point C i , and that the successive elements are the second element, third element... and so on, traversed by traveling counter-clockwise. In Fig. 11, the tool is moved along the first and second offset curves in the cutting-feed mode. However, it is possible to adopt an arrangement in which the foregoing processing is executed while keeping the tool at rest and then move the tool in the rapid-traverse mode between R i and S i [Figs. 11(A), (B)], between T i and U i [Fig. 11(B)], or between R i and U i [Fig. 11(C)]. Further, in the case described above, an area cutting command is inserted into the NC tape, cutting paths are successively created by using the area cutting data that follow the area cutting command, and area cutting is performed by moving the tool along the cutting paths. However, the invention is not limited to such case, for an arrangement can be adopted in which an NC tape containing cutting path data is created by the aforementioned method and area cutting is performed by using the NC tape containing this cutting path data. According to the present invention as described above, if two or more islands lie so close together inside the curve of an external shape that the offset curves, which are obtained by offsetting closed curves specifying the respective islands by an amount dependent upon the tool diameter, intersect one another and therefore give rise to a portion incapable of being area machined, an area which omits this portion can be machined. Further, according to the present invention, it may be arranged to combine two offset curves to obtain a combined offset curve constituted by a single closed curve, and to carry out area cutting without allowing the tool center to penetrate the interior of the combined offset curve. In other words, it is arranged so that if a portion incapable of being area-cut exists, this portion is not cut but the remaining portion that is capable of being area-cut is so cut. Therefore, a machine tool no longer ceases operating when area cutting becomes impossible, and erroneous cutting no longer takes place, as with the prior-art method. Moreover, the offset paths may be displayed on the display unit together with the islands and the curve of an external shape of an area. This allows the operator to readily perceive whether the offset curves intersect one another by observing the display and, hence, to readily ascertain whether a portion incapable of being area-cut exists.

Claims: A numerically controlled cutting method for cutting an area (AR) delimited by a curve (OLC) of an external shape and at least two closed curves (INC1,INC2) which lie within said curve (OLC) of the external shape, these three curves (OLC,INC1,INC2) being predefined by an NC machining program, the method comprising a step of calculating offset curves (INF1,INF2) offset outwardly from respective ones of said closed curves (INC1,INC2) by an amount dependent upon tool diameter, a step of checking whether the offset curves (INF1,INF2) intersect one another, a step of ascertaining that a portion incapable of being area-cut exists when the offset curves (INF1,INF2) intersect one another, and a step of cutting the area (AR) from which said portion incapable of being area-cut is omitted, this portion lying within an area (CSA) bounded between the intersecting offset curves (INF1,INF2); wherein a combined offset curve (COFC) is calculated which is made up of the intersecting offset curves (INF1,INF2) except for the portions (INF1',INF2') thereof which contain said area (CSA) bounded between the intersecting offset curves (INF1,INF2), the area cutting being performed in such manner that the center of the cutting tool does not penetrate the interior of the calculated combined offset curve (COFC). A numerically controlled cutting method for cutting an area (AR) delimited by a curve (OLC) of an external shape and at least two closed curves (INC1,INC2) which lie within said curve (OLC) of the external shape, these three curves (OLC,INC1,INC2) being predefined by an NC machining program, the method comprising a step of calculating offset curves (INF1,INF2) offset outwardly from respective ones of said closed curves (INC1,INC2) by an amount dependent upon tool diameter, a step of checking whether the offset curves (INF1,INF2) intersect one another, a step of ascertaining that a portion incapable of being area-cut exists when the offset curves (INF1,INF2) intersect one another, and a step of cutting the area (AR) from which said portion incapable of being area-cut is omitted, this portion lying within an area (CSA) bounded between the intersecting offset curves (INF1,INF2); wherein area cutting data is entered necessary for performing area cutting based on undirectional cutting or back-and-forth cutting and a cutting straight line is calculated, which specifies an i-th cutting path PT i , from cutting path shift direction and shift amount contained in said area cutting data, points P i , Q i are calculated at which said straight line intersects an offset curve obtained by inwardly offsetting the curve (OLC) of the external shape, as well as points R i , S i ; T i , U i at which said straight line intersects each of said intersecting offset curves (INF1,INF2) respectively, the tool is moved in a cutting-feed mode along the i-th cutting path from the machining starting point P i to the initial intersection point R i , the tool is then moved in the cutting-feed mode along the offset curve (INF1) containing said intersection point (R i ) then, in a case where the tool arrives back at the i-th cutting path before arriving at a different offset curve (INF2), the tool is moved in the cutting-feed mode along the i-th cutting path after arrival thereat whereas, in a case where the tool arrives at said different offset curve (INF2) before arriving back at the i-th cutting path, the tool is then moved along the other offset curve (INF2) after arrival thereat and then along the i-th cutting path to the machining end point Q i . A numerically controlled cutting method according to claim 2, wherein the tool is moved along said other offset curve (INF2) as aforesaid in the cutting-feed mode also. A numerically controlled cutting method according to claim 1, 2 or 3, and comprising a step of displaying said intersecting offset curves (INF1,INF2) on a display unit together with said curve (OLC) of the external shape and each of said closed curves (INC1,INC2).

Inventors: KISHI, HAJIMU, SEKI, MASAKI, TAKEGAHARA, TAKASHI
Applicants: FANUC LTD.
Application year: 1984
Main classification: B23Q15
IPC codes: B23Q15, G05B19