METHOD OF PREPARING NC PART PROGRAM FOR LASER MACHINING

Abstract: The NC PERT program preparing method uses NC tables to convert pattern-defining and motion-defining statements to NC PERT programs. Escape paths (EP) are set for insertion at corners (CN) and motion-defining statements are input that ignore these escape paths. The work location is determined on the inner side of beam path (bi) corners on the basis of the directions of beam turning at corners and offset directions which are included in the motion-defining statements. The beam is indicated if offset to the right or left of its direction of advance and the preset escape path is inserted when the work is on the inside of a corner.

Description: This invention relates to a method of creating an NC part program for laser machining and, more particularly, to an NC part program creation method capable of improving machining precision at corners. In automatic programming for creating NC data using an automatic programming language such as APT or FAPT, (a) a part program based on the automatic programming language is created by defining points, straight lines and circular arcs using simple symbols (this is referred to as "figure definition"), and then defining a tool path using the defined points, straight lines and circular arcs (referred to as "motion statement definition"), and (b) the part program based on the automatic programming language is subsequently converted, by using an NC data output table, into NC data comprising NC data (EIA codes or ISO codes) in a format capable of being executed by an NC unit. It should be noted that the tools used include, in addition to ordinary tools, the wire in a wire-cut electrical discharge machine, the laser beam in a laser processing machine, etc. EP-A-0 130 219 discloses a method of preparing part programs and EP-A-0 068 029 discloses a method of controlling a wire cut electric discharge machining apparatus. For example, in the creation of a part program for moving a tool (laser beam) along a profile comprising straight lines and circular arcs shown in Fig. 10, figure definition is performed by defining a tool starting point P₁, cutting starting point P₂, straight lines S₁, S₂ and circular arc C₁... as follows: PART, @ REIDAI (1) MCHN, MILL, ABS (2) P₁ = x₁, y₁ P₂ = x₂, y₂ P₃ = x₃, y₃ S₁ = P₂, P₃ (3) C₁ = x₄, y₄, r₁ (4) P₅ = x₅, y₅ S₂ = P₅, C₁, B (5) Thereafter, by using these defined points, straight lines and circular arc, a motion statement is defined in automatic programming language, the motion statement being in line with the following and the tool path: CUTTER, 0.3 (6) S0800 (7) TLLFT (8) FROM, P₁ (9) RPD, TO, S₁, P₂ (10) FCOD, 500 (11) S₁ C₁ S₂ ..... FINI PEND When this is inputted to an automatic programming unit, the latter subsequently creates and outputs NC data having an EIA code or ISO code execution format automatically while referring to an NC data output table. In the foregoing, (1) instructs the start of the part program, with "REIDAI" being the header. (2) indicates the type of NC machine. "MILL". is used in case of milling, "TURN" in case of turning, "CUT" in case of a wire-cut electrical discharge machine, and "LASER" in case of laser machining. "ABS" indicates an absolute command. ("INCR" would be used for an incremental command.) (3) signifies a straight line passing through points P₂, P₃. (4) signifies a circular arc of center (x₄,y₄) and radius r₁. (5) signifies a lower tangent line (straight line) of two tangent lines passing through point P₅ and contacting the circular arc c₁. In the case of the upper tangent line, the alphabetic character A would be used instead of B. (6) represents a beam command which commands a beam diameter of 0.3 mm. (7) represents a command indicating that the laser power is 800 W. (8) is a command for offsetting the tool to the left of the direction of movement. ("TLRGT" would be used to offset the tool to the right of the direction of movement.) (9) is a coordinate system setting command which indicates that the starting point is P₁. (10) is a command for positioning the cutter in such a manner that the cutter will contact the straight line S₁ at point P₂ without passing this straight line. (11) is a velocity command indicating that the feed velocity is 500 mm/min. When a tool path includes a corner, the tool feed velocity in the vicinity of the corner generally cannot be held constant because of the characteristics of the machine, etc. For example, if an i-th block b i and an (i+1)th block b i+1 of the tool path intersect perpendicularly, as shown in Fig. 11, the tool feed velocity is as shown in Fig. 12. Thus, deceleration and acceleration are required when passing the corner portion. In other words, in the vicinity of the corner, the feed velocity along the X axis is reduced from the commanded velocity V c and attains a value of zero, after which the feed velocity V y along the Y axis is increased to reattain the commanded velocity V c . This deceleration and acceleration of feed at the corner portion has a deleterious effect upon the machining precision of the part. In particular, altering the feed velocity has considerable influence upon machining precision in cases where a high machining velocity is required, as in laser machining. Though it is necessary that an NC part program be created in such a manner that the machining precision at the corner portion does not suffer, the fact is that NC part programs are created in the prior art without taking machining precision at corner portions into consideration. Accordingly, an object of the present invention is to provide a method of creating an NC part program for laser machining in which a decline in machining precision at corner portions can be suppressed. Another object of the present invention is to provide a method of creating an NC part program for laser machining in which machining precision at corner portions can be maintained through a simple technique. Still another object of the present invention is to provide a method of creating an NC part program in which, when a part has a corner portion on an inner side, machining precision at the corner portion can be improved by inserting a preset escape path at the corner portion. A further object of the present invention is to provide a method of creating an NC part program in which, when a part has a corner portion on an outer side, machining precision at the corner portion can be improved by changing the machining conditions at the corner portion from the machining conditions which prevailed up to the corner portion, such as by lowering feed velocity and laser power a predetermined distance short of the corner, and restoring the former machining conditions, after the corner is passed, at a point a predetermined distance beyond the corners. Based on an offset direction which indicates whether a laser beam is offset in a direction to the right side or left side of a travelling direction contained in a motion definition statement, and the direction of a curve at a corner portion of a laser beam path, it is determined whether an inner side or outer side of the beam path at the corner is a part of the object being made. If the inner side of the corner is a part, an NC part program for laser machining is created upon inserting a preset escape path in the corner portion of the beam path. If the outer side of the corner is a part, an NC part program for laser machining is created in such a manner that similarly set machining conditions prevail in preset machining condition modification intervals. Thus, in accordance with a first aspect of the invention there is provided a method of creating an NC part program for laser machining in which a figure definition statement for defining a figure and a motion definition statement for defining a laser beam are inputted, and these definition statements are converted, by using an NC data output table, into a laser machining NC part program executable by an NC unit, which NC part program is then outputted, said method characterised by: presetting an escape path to be inserted at a corner position, and inputting a motion definition statement created without taking said escape path into consideration; determining, based on an offset direction which indicates whether the beam is offset in a direction to the right side or left side of a travelling direction contained in the motion definition statement, and the direction of a curve at the corner portion of the beam path, whether an inner side of the beam path at said corner is a part; and creating an NC part program upon inserting said preset escape path at said corner portion if the inner side of the corner is the part. In accordance with a second aspect of the invention there is provided a method of creating an NC part program for laser machining in which a figure definition statement for defining a figure and a motion definition statement for defining a laser beam are inputted, and these definition statements are converted, by using an NC data output table, into a laser machining NC part program executable by an NC unit, which NC part program is then outputted, said method characterised by: presetting machining condition modification intervals at a corner portion and machining conditions in said intervals; creating a motion definition statement without taking said machining condition modification intervals and said machining conditions into consideration; determining, based on an offset direction which indicates whether the beam is offset in a direction to the right side or left side of a travelling direction contained in the motion definition statement, and the direction of a curve at the corner portion of the beam path, whether an inner side of the beam path at said corner is a part; and creating an NC part program in such a manner that said set machining conditions will prevail in said machining condition modification intervals if the outer side of the corner is the part. For a better understanding of the invention and to show how the same may be carried into effect, reference will now be made, purely by way of example to the accompanying drawings, in which:- Fig. 1 is a view for describing the general features of the present invention in a case where the inner side of a corner is part; Fig. 2 is a view for describing the general features of the present invention in a case where the outer side of a corner is part; Fig. 3 is a block diagram of an automatic programming apparatus for practicing the present invention; Fig. 4 is a view for describing an NC data output table; Fig. 5 is a view showing the correlation between function codes and NC data output formats; Fig. 6 is a flowchart of processing according to an embodiment of the present invention; Fig. 7 is a view for describing a corner radius which requires that machining conditions be modified; Fig. 8 is a view for describing an angle of intersection which requires that machining conditions be modified; Fig. 9 is a view for describing a case where a plurality of machining condition modification intervals are inserted at a corner; Fig. 10 is a view for describing automatic programming according to the prior art; and Figs. 11 and 12 are views for describing a disadvantage of the prior-art method. Fig. 1 is a view for describing the general features of an embodiment of the present invention in a case where the inner side of a corner is part. RB represents a laser beam, b i an offset path of an i-th block, b i+1 an offset path of an (i+1)th block, EP a escape path, CN a corner portion, and PT a part. On the assumption that the point of intersection of the offset paths b i , b i+1 of the i-th and (i+1)th blocks is P E , and that points located a distance ℓ from the point of intersection P E in the direction of extensions of the offset paths are Q, R, the escape path EP will be composed of a line segment P E Q, a circular arc tangent to line segments P E Q, RP E at points Q, R, respectively, and the line segment RP E . Figs. 1(A) through (D) all relate to cases where the inner side of a corner is the part PT. Figs. 1(A), (B) are for cases where the offset direction is on the left side of the travelling direction and the curve at the corner portion is in the clockwise direction. Figs. 1(C), (D) are for cases where the offset direction is on the right side of the travelling direction and the curve at the corner portion is in the counter-clockwise direction. The escape path EP inserted at the corner portion CN is preset, and a motion definition statement prepared without taking the escape path into consideration is inputted. It is determined whether the inner side of the beam path at the corner is the part PT based on the offset direction, which indicates whether a laser beam RB is offset in a direction to the right side or left side of the travelling direction contained in the motion definition statement, and the direction of the curve at the corner portion CN of the beam paths b i , b i+1 . If the inner side of the corner is the part PT, an NC part program is created upon inserting the preset escape path EP in the corner portion. Inserting the escape path EP renders the degree of change in velocity at the corner portion CN negligible in terms of machining precision, thus making highly precise laser machining possible. Fig. 2 is a view for describing the general features of the present invention in a case where the outer side of a corner is the part. RB represents the laser beam, b i the offset path of the i-th block, b i+1 the offset path of the (i+1)th block, EP the escape path, CN the corner portion, PT the part, P the end point of the i-th block, and QP, PR machining condition modification intervals, the lengths where are ℓ₁, ℓ₂, respectively, from the end point P. Figs. 2(A) through (D) all relate to cases where the outer side of a corner is the part PT. Figs. 2(A), (B) are for cases where the offset direction is on the right side of the travelling direction and the curve at the corner portion is in the clockwise direction. Figs. 2(C), (D) are for cases where the offset direction is on the left side of the travelling direction and the curve at the corner portion is in the counter-clockwise direction. The machining condition modification intervals QP, PR (lengths ℓ₁, ℓ₂) at the corner portion CN and the machining conditions (laser beam feed velocity and laser power value) in these intervals are preset, and a motion definition statement is prepared without taking these machining condition modification intervals and machining conditions into consideration. In the creation of an NC part program, it is determined whether the outer side of the beam path at the corner is the part PT based on the offset direction, which indicates whether the laser beam RB is offset in a direction to the right side or left side of the travelling direction contained in the motion definition statement, and the direction of the curve at the corner portion CN of the beam paths b i , b i+1 . If the outer side of the corner is the part PT, an NC part program is created in such a manner that the preset machining conditions prevail in the aforementioned machining condition modification intervals QP, PR. More specifically, NC data are created for movement at predetermined machining conditions (machining conditions specified by the motion definition statement) up to the point Q, NC data are created for movement at the set machining conditions from point Q to point P, and NC data are created for movement at similar set machining conditions from point P to point R. Fig. 3 is a block diagram of an automatic programming apparatus according to an embodiment of the present invention. Numeral 101 denotes a ROM storing a loading program and the like, 102 a processor for executing automatic programming processing, and 103 a RAM. The RAM 103 has a storage area 103a for storing a system program STPR read in from a floppy disc, a storage area 103b for storing an NC data output table, a storage area 103c for storing a correlation FNT between function codes and ND data output formats, a storage area 103d for storing various parameters PRM, and a working area 103e. The NC data output table NCDT stored in the storage area 103b has a plurality of function codes Fl - F9 specifying NC data output formats for each command, as shown in Fig. 4. Each function code is expressed by four hexadecimal digits. NC data having one execution format are specified by a set of several of these function codes. Some correlations between function codes stored in storage area 103c and NC output formats are shown in Fig. 5. A coordinate system setting NC data output format in the NC data output table NCDT of Fig. 3 is 8502, 0001, 0101, 0201, 0004 Therefore, the NC data having the execution format for setting the coordinate system is G50X x Y y Z z EOB (a) This is obtained by referring to the correlations between function codes and output formats in Fig. 5. The NC data output format for positioning/linear cutting is 8202, 8002, 0001, 0101, 0201, 0141, 0004 The NC data having the execution format for positioning/linear cutting is G90(G91)G00(G01)X x Y y Z z F f EOB (b) This is obtained by referring to the correlations between function codes and output formats in Fig. 5. The NC data output format for circular arc cutting is 8202, 8012, 0001, 0101, 0301, 0401, 0004 The NC data having the execution format for circular arc cutting is G90(G91)G02(G02)X x Y y I i J j EOB (c) This is obtained by referring to the correlations between function codes and output formats in Fig. 5. Returning to Fig. 3, numeral 104 denotes an NC data memory for storing the NC data created, 105 a keyboard, 106 a display unit (CRT), 107 a disc controller, and FL a floppy disc. Fig. 6 is a flowchart of processing according to the present invention, Fig. 7 is a view for describing a corner radius which requires that machining conditions be modified, and Fig. 8 is a view for describing an angle of intersection which requires that machining conditions be modified. Processing according to the invention will now be described with reference to Figs. 1 through 8. It is assumed that the system program for creating an NC part program for laser machining, the NC data output table NCDT, the correlations FNT between the function codes and NC data output formats, and the parameters from the floppy disc have been stored in the storage areas 103a - 103d of the RAM 103. Also it is assumed that the parameters PRM include the escape path EP to be inserted at a corner, an angle B S serving as a criterion for deciding whether the escape path is to be inserted or not, the machining condition modification intervals QP, PR (see Fig. 2) at the corner portion, data specifying the machining conditions in these intervals, and an angle A S and radius R S serving as criteria for deciding whether the machining conditions are to be modified or not. On the assumption (see Fig. 1) that the point of intersection of the offset paths b i , b i+1 of the i-th and (i+1)th blocks is P E , and that points located a distance ℓ from the point of intersection P E in the direction of extensions of the offset paths are Q, R, the escape path EP will be composed of the line segment P E Q, the circular arc tangent to line segments P E Q, RP E at points Q, R, respectively, and the line segment RP E . In other words, the escape path is a path along which there is no change in cutting velocity at the corner portion. Accordingly, the escape path is not limited to that shown in Fig. 1. The machining condition modification intervals QP, PR for a case where the i-th block and (i+1)th block are straight lines (see Fig. 2) are specified by the distances ℓ₁, ℓ₂ from the end point P of the i-th block, and the machining conditions are specified by feed velocities V₁, V₂ and laser power values E₁, E₂ of the laser beam. In a case where the (i+1)th block is a circular arc (see Fig. 7), machining condition modification intervals QP₁, P₂R are specified by the distance ℓ₁ from the end point (circular arc starting point) P1 of the i-th block and the distance ℓ₂ from the end point (circular arc end point) of the (i+1)th block. (1) First, when the figure definition statement and motion definition statement are created and inputted, the processor 102 performs the operation 1 → i. It should be noted that the escape path, machining condition modification intervals and machining conditions in these intervals are not taken into consideration in the motion definition statement. (2) Next, the end point of the i-th block is computed from the figure definition statement and motion definition statement. (3) When the end point of the i-th block is obtained, a check is performed to determine whether this end point is the end point of the laser beam path. (4) If the end point is the end point of the path, then the i-th block of NC data is created using the coordinates of this end point and processing for creating the NC part program is ended. (5) If the end point is found not to be the end point of the path in step (3), then it is checked whether the inner side or outer side of the corner portion at the end point of the i-th block is the part. It should be noted that the inner side of the corner is the part in a case where the offset direction of the laser beam is on the left side of the travelling direction and curves clockwise at the end point corner portion [see Figs. 1(A), (B)], and in a case where the offset direction of the laser beam is on the right side of the travelling direction and curves counterclockwise at the end point corner portion [see Figs. 1(C), (D)]. Conversely, the outer side of the corner is the part in a case where the offset direction of the laser beam is on the right side of the travelling direction and curves clockwise at the end point corner portion [see Figs. 2(A), (B)], and in a case where the offset direction of the laser beam is on the left side of the travelling direction and curves counterclockwise at the end point corner portion [see Figs. 2(C), (D)]. Processing is executed from step (6) onward if the inner side of the corner is the part, and from step (12) onward if the outer side of the corner is the part. (6) If the inner side of the corner is the part, it is determined whether the (i+1)th block is a straight line. (7) If this block is a circular arc, the i-th block of NC data is created without inserting an escape path at the corner. (8) If the (i+1)th block is a straight line, the angle of intersection B between the i-th block and (i+1)th block is calculated. (9) Next, the angle B and a preset angle B S are compared in terms of magnitude. If the corner angle B is acute and relatively large, the change in velocity at the corner portion will not be great enough to influence machining precision. Therefore, in accordance with the present invention, if the corner angle B is larger than the preset angle (the minimum allowable angle that will have no influence upon machining precision) B S , an escape path is not inserted even though the inner side of the corner is the part. Accordingly, if B>B S holds, the i-th block of NC data is created at step (7) without inserting an escape path. (10) If B≦B S holds, however, NC data are created in such a manner that the escape path EP that has been set in the parameter storage area is inserted after the i-th block. (11) Thereafter, i is incremented by the operation i + 1 → i and the processing from step (2) onward is repeated. It should be noted that the reason why machining velocity does not change at the corner portion CN owing to insertion of the escape path EP is that pulses generated by a pulse distributing operation are not interrupted at the corner portion thanks to the insertion of the escape path. Further, when the (i+1)th block is a circular arc at step (6), the escape path is not inserted. The reason for this is that it is assumed that the straight line of the i-th block and the circular arc of the (i+1)th block are tangent to each other. Accordingly, if the straight line of the i-th block and the circular arc of the (i+1)th block are not tangent to each other, the point of intersection between the straight line and circular arc is obtained, a line tangent to the circular arc at the point of intersection is obtained, the angle of intersection B between this tangent line and the straight line is determined, and the escape path EP is inserted when the angle B is less than the predetermined angle B S . The foregoing relates to a case where the inner side of a corner is the part. In an instance where the outer side of a corner is the part, processing is executed from step (12) onward. (12) If the outer side of the corner is the part, it is determined whether the (i+1)th block is a circular arc. If the radius of the corner arc is greater than a predetermined value, the change in the cutting velocity of the laser beam at the corner portion will not be great enough to influence machining precision. Therefore, in accordance with the present invention, if the corner arc radius R (see Fig. 7) is greater than a preset radius R S , the machining conditions are not modified even though the outer side of the corner is the part. (13) Accordingly, if the (i+1)th block is found to be a circular at step (12), the corner radius R is calculated; if not, the program jumps to step (18). (14) If the (i+1)th block is a circular arc and the corner arc radius R has been obtained, it is determined whether R<R S holds. (15) If R≧R S holds, the i-th block (straight line block) and (i+1)th block (circular arc block) of NC data are created without modifying the machining conditions. (16) If R<R S holds, however, NC data are created in such a manner that the aforementioned set machining conditions prevail in machining condition modification intervals QP₁, P₁P₂, P₂R (see Fig. 7) specified by ℓ₁, ℓ₂ set in the parameter storage area 103d. More specifically, NC data for movement up to point Q at the predetermined machining conditions (machining conditions specified by the motion definition statement) are created, NC data for movement from point Q to point P₁ at machining conditions set together with ℓ₁ are created, NC data for movement from point P₁ to point P₂ at machining conditions identical with those between Q and P₁ are created, and NC data for movement from point P₂ to point R at machining conditions set together with ℓ₂ are created. The laser power value is set by an S code. (17) At the end of processing for steps (15) and (16), i is incremented by the operation i + 2 → i and processing from step (2) onward is subsequently repeated. (18) If the decision rendered at step (12) is that the (i+1)th block is a straight line, an angle of intersection A (see Fig.8) between the i-th block and (i+1)th block is calculated. (19) Next, the angle A and a preset angle A S are compared in terms of magnitude. If the corner angle A is acute and relatively large, the change in velocity at the corner portion will not be great enough to influence machining precision. Therefore, in accordance with the present invention, if the corner angle A is larger than a preset angle A S , machining conditions are not modified even though the outer side of the corner is the part. (20) Accordingly, if A>A S holds, the i-th block of NC data is created without modifying machining conditions. (21) If A≦A S holds, however, NC data are created in such a manner that the aforementioned set machining conditions will prevail in machining condition modification intervals QP, PR (see Fig. 2) specified by ℓ₁, ℓ₂ set in the parameter storage area 103d. More specifically, NC data for movement up to point Q at the predetermined machining conditions (machining conditions specified by the motion definition statement) are created, NC data for movement from point Q to point P at machining conditions set together with ℓ₁ are created, and NC data for movement from point P to point R at machining conditions set together with ℓ₂ are created. (22) At the end of the processor for steps (20), (21), i is incremented by the operation i + 1 → i, after which processing is repeated from step (2) onward. It should be noted that the machining velocity (laser beam feed velocity) and laser power value at the corner portion are set so that they will be smaller the machining velocity and laser power value which prevailed up to the corner portion. In the foregoing, the case is one in which one machining condition modification interval is provided in each block. However, as shown in Fig. 9, it is possible to adopt an arrangement in which a plurality of machining condition modification intervals indicated by ℓ₁, ℓ₂, ℓ₃ are provided in one block, with the settings being such that the machining velocity and laser power value in each interval gradually decrease and gradually increase. Thus, in accordance with an embodiment of the present invention, an escape path to be inserted at a corner portion is preset, and the arrangement is such that if the inner side of the corner is a part, an NC part program is created upon inserting the preset escape path at the corner portion. As a result, the feed velocity does not undergo a large change at the corner portion and, hence, any decline in machining precision at the corner portion can be suppressed. Moreover, a laser machining NC part program in which machining precision at the corner portion can be maintained is capable of being created through a simple technique. Further, in accordance with an embodiment of the invention, a minimum allowable angle B S which does not influence machining precision at a corner portion is preset, and the arrangement is such that the escape path is inserted at the corner portion only if the actual corner angle B is less than B S and the inner side of the corner is the part. As a result, the number of corner portions requiring insertion of an escape path can be reduced to lessen the effect upon machining time. Further, in accordance with an embodiment of the invention, machining condition modification intervals at a corner portion and machining conditions are preset. The arrangement is such that if the outer side of the corner is the part, the set machining conditions are adopted as the machining conditions at the corner portion. For example, it can be so arranged that the feed velocity and laser power are changed a predetermined distance short of the corner, and the original machining conditions are restored at a point a predetermined distance beyond the corner. This makes it possible to create, through a simple technique, an NC part program in which a decline in machining precision at the corner portion can be suppressed.

Claims: A method of creating an NC part program for laser machining in which a figure definition statement for defining a figure and a motion definition statement for defining a laser beam path are inputted, and these definition statements are converted, by using an NC data output table, into a laser machining NC part program executable by an NC unit in order to produce a machined part, which NC part program is then outputted, said method characterized by: presetting an escape path to be inserted at a corner portion, and inputting the motion definition statement without taking said escape path into consideration; determining, based on an offset direction which indicates whether the beam is offset in a direction to the right side or left side of a travelling direction contained in the motion definition statement, and the direction of a curve at the corner portion of the beam path, whether an inner side of the beam path at said corner is the part which is to be produced; and creating an NC part program upon inserting said preset escape path at said corner portion if the inner side of the corner is the part which is to be produced. A method of creating an NC part program for laser machining according to claim 1, characterized by: presetting an angle B S of the corner portion and obtaining an angle B at the corner portion of the beam path; comparing the size of angle B and the side of the set angle B S ; and inserting said escape path at the corner portion if B<B S holds and the inner side of the corner is the part which is to be produced. A method of creating an NC part program for laser machining according to claim 1, characterized in that the escape path is composed of a line segment P E Q, a circular arc tangential to line segments P E Q, RP E at points Q, R, respectively, and the line segment RP E , where a point of intersection of beam paths b i , b i+1 of respective i-th and (i+1)th blocks forming the corner portion is P E , and points located a distance 1 from the point of intersection P E along extensions of the offset paths are Q, R. A method of creating an NC part program for laser machining in which a figure definition statement for defining a figure and a motion definition statement for defining a laser beam path are inputted, and these definition statements are converted, by using an NC data output table, into a laser machining NC part program executable by an NC unit in order to produce a machined part, which NC part program is then outputted, said method characterized by: presetting machining condition modification intervals at a corner portion and machining conditions in said intervals; inputting the motion definition statement without taking said machining condition modification intervals and said machining conditions into consideration; determining, based on an offset direction which indicates whether the beam is offset in a direction to the right side or left side of a travelling direction contained in the motion definition statement, and the direction of a curve at the corner portion of the beam path, whether an outer side of the beam path at said corner is the part which is to be produced; and creating an NC part program in such a manner that said set machining conditions will prevail in said machining condition modification intervals if the outer side of the corner is the part which is to be produced. A method of creating an NC part program for laser machining according to claim 4, characterized in that said machining conditions are such that feed velocity and laser power value in said machining condition modification intervals are made less than feed velocity and laser power value up to said machining condition modification intervals. A method of creating an NC part program for laser machining according to claim 5, characterized in that a plurality of machining condition modification intervals and machining conditions are set for the corner portion. A method of creating an NC part program for laser machining according to claim 4, characterized by: presetting an angle A S of the corner portion and obtaining an angle A at the corner portion of the beam path; comparing the size of angle A and the size of the set angle A S ; and creating an NC part program in such a manner that the set machining conditions will prevail in said machining condition modification intervals if A<A S holds and the outer side of the corner is the part which is to be produced. A method of creating an NC part program for laser machining according to claim 4, characterized by: presetting a radius R S of a corner circular arc; if a circular arc resides at the corner of the beam path, comparing the size of a radius R of said circular arc and the size of said set circular arc radius R S ; and creating an NC part program in such a manner that said set machining conditions will prevail in said machining condition modification intervals if R<R S holds and the outer side of the corner is the part which is to be produced.

Inventors: SEKI MASAKI, TAKEGAHARA TAKASHI JANBOHRU HA, SEKI, MASAKI, TAKEGAHARA, TAKASHI JANBOHRU HACHIOJI 604
Applicants: FANUC LTD, FANUC LTD.
Application year: 1987
Main classification: G05B19
IPC codes: G05B19