CAD/CAM SYSTEM FOR AUTOMATICALLY RECREATING CUTTER PATH

Abstract: When a curved surface is modified by a CAD system, the cutter paths are automatically recreated by a CAM system. The functions for recreating the cutter paths are prepared utilizing the customizing function of the CAD system. In calculating the cutter paths and creating the NC data, a reference is set to the curved surface in order to specify the functions (B3). Then, if the contour of the curved surface for which the NC data are created is modified, the CAM system is called to fetch the functions (A1). The CAM system senses this call (B1). Based on the functions thus called, the CAM system recreates the cutter paths by use of the data on the machining conditions set for the curved surface before the modification. In such a way, when a curved surface is modified by the CAD system, the cutter paths of the modified curved surface are recreated by the CAM system immediately.

Description: The present invention relates to a method for defining a shape by a CAD system, defining machining by a CAM system, and making computation for a cutter path for the shape machining, thereby originating NC data, more particularly, to a CAD/CAM system by which a cutter path for a modified shape can automatically be re-created on the CAM side immediately when the shape is modified by means of the CAD. Examples of CAD/CAM systems are disclosed in JP-A-63-293607, US-A-5 115 400, and Manufacturing Technology International (1987) Europe, No 1, pages 66-69. The CAD (Computer-Aided Design) system and CAM (Computer-Aided Manufacturing) system have been developed and advanced separately. In order to integrate these two systems, therefore, graphic data of which shapes were defined by a CAD system 1 is delivered to a CAM system after being first transformed into intermediate data 3 represented in a format such as IGES (Initial Graphics Exchange Specification) or DXF (Drawing Interchange File), as shown in Fig. 1. Based on this intermediate data 3, the CAM system makes computation for a cutter path and the like, thereby originating NC data and other data. In Fig. 1, M1 designates a memory in the CAD system 1, which is stored with the graphic data and the like originated by the CAD. Further, M2 designates a memory in the CAM system 2, which is stored with the graphic data, NC data, etc. originated by the CAM system 2. As described above, the CAD side and the CAM side are coupled by means of the intermediate data, so that the CAM system 2 can learn the graphic data defined by the CAD system 1, but, it cannot be informed of any contents of the operation such as modification that the CAD system has executed afterward for the graphic form. On the other hand, a computer system is generally provided with a customizing function (that is, a function which enables a user to add functions and the like). Accordingly, the CAD system is also provided with the customizing function. The use of this customizing function obviates the necessity of the intermediate data 3 for the transfer of the graphic data between the CAD system and the CAM system, and enables the CAM system 2 to access the data base of the CAD system 1. Fig. 2 is a block diagram showing a CAD/CAM system in which the CAD system 1 has the aforesaid customizing function and then requires no use of the intermediate data 3. In this case, the CAD system 1 is additionally provided with a customizing function 4, and the CAM system 2 can directly access the data base of the CAD system 1 and makes computation for a cutter path, thereby originating the NC data, by utilizing the customizing function 4. As shown in Fig. 2, the memory M1 of the CAD system 1 is loaded with the graphic data defined by the CAD system 1 and the NC data originated on the side of the CAM system 2, while the memory section M2 of the CAM system is loaded with data for machining definition defined in order to originate the NC data and the originated NC data. In originating the NC data by a conventional CAD/CAM system such as the one shown in Fig. 2, when the graphic form is modified by the CAD system 1 after the NC data has been created, disagreement naturally occurs between the modified graphic form and the cutter path unless an operator gives a command for recomputation of the cutter path in accordance with the modified graphic form. Thus, there is a possibility that machining is erroneously effected by the unmodified NC data, despite the modification of the graphic form. Referring now to Fig. 4 showing states displayed on a CRT display screen, the conventional procedure of operation covering from the definition of the graphic form by the CAD system to the NC data origination by the CAM system will be described. First, the shape of an object of machining is defined by the CAD system 1. In the example shown in Fig. 4, four spline curves with ID codes entID1 to entID4 are first defined; a curved surface srfID1 composed of these four curves is defined; and the shape (curved surface srfID1) is defined by also assigning an ID code to the curved surface. Thereupon, the curved surface srfID1 composed of the four spline curves entID1 to entID4 is displayed on the CRT screen, as shown in Fig. 4(a). Then, the graphic data are delivered to the CAM system 2. When the CAM system 2 assigns the received graphic data by ID codes, on the other hand, the shape of the curved surface srfID1 is drawn on the CRT screen of the CAM system 2, as shown in Fig. 4(b). If the definition of the machining is selected on the CRT screen, an input command picture for machining conditions appears in a window form, and an accessible state for input is established. When data for machining definition, including the tool feed speed, starting point of machining, pitch, tool shape, cutting path pattern, etc., and a cutter path computation command are inputted, the CAM system 2 computes a cutter path pas1 in accordance with the inputted conditions and displays it on the CRT screen, as show in Fig. 4(c). As the cutter path pasl is computed, the NC data are originated. When the graphic form is modified by the CAD system 1 after the cutter path is computed to originate the NC data in the manner described above, this naturally causes a phenomenon that the modified graphic form disagrees with the cutter path data and NC data unless commands are given again for cutter path computation and NC data origination. Figs. 5(a) and 5(b) are diagrams for illustrating this situation. As shown in Fig. 5(a), when the cutter path computation is completed for the curved surface srfID1 and, that cutter path is being displayed on the CRT screen, the graphic form is modified into srfID1' from srfID1 by the CAD system as shown in Fig. 5(b), there will be disagreement between the graphic data (curved surface data) and cutter path pas 1, thereby causing an inconsistency between these data. In order to eliminate this inconsistency the cutter path computation must be executed again in accordance with the modified graphic data after applying the cutter path computation command again to the CAM system and inputting the data for machining definition by using the CRT input command picture. The object of the present invention is to provide a CAD/CAM system for automatic cutter path re-creation such that when a predetermined reference is set, cutter path computation and NC data origination are automatically executed when a graphic form having already undergone cutter path computation and NC data origination is modified by means of a CAD system. In order to achieve the above object, according to an aspect of the present invention, there is provided a CAD/CAM system operable for re-creation of a cutter path, wherein the CAD/CAM system is adapted to operate such that set machining condition data are previously stored when the cutter path is originally computed and NC data originated, by a CAM system for a corresponding shape created by a CAD system, the cutter path being able to be re-created by the CAM system based on said shape in a form as subsequently modified by the CAD system, characterised in that: the CAD/CAM system is further adapted to operate such that if, when said cutter path computation is commanded for said shape, a reference is set as an item of discriminating information so as to assign functions to be invoked for a cutter path re-creation processing when a modifying operation is performed for that shape, commands for cutter path computation and NC data origination will be automatically and previously set in the CAM system when modification of said shape is executed by the CAD system so that, when the shape is modified by the CAD system, and on condition that said set reference is detected, cutter path computation and NC data origination will be automatically executed by the CAM system for the modified shape on the basis of said stored machining condition data in response to said set commands for the cutter path computation and the NC data origination. According to a development of that aspect of the present invention, moreover, the CAD system is adapted for defining a curved surface relating to the creation of a cutter path, and the CAM system is adapted for defining the shape of the defined curved surface and machining for cutter path computation, thereby originating NC data; in this CAD/CAM system, the CAD system includes a function including functions for assigning ID codes to the curved surface and curved surface elements, individually, ability for originally providing functions to be invoked for the execution of a cutter path re-creation processing on the basis of a key-input for curved surface modification processing completion, memory means for storing data on the curved surface and the curved surface elements, the ID codes assigned thereto, and references set for the curved surface in order to assign the functions provided in the aforesaid manner, means for determining whether or not the references for the curved surface are set in the memory means in response to the curved surface modification completion input, and means for invoking the functions assigned by the references, thereby invoking the CAM system, if it is concluded that the references are set; while the CAM system includes memory means for storing a cutter path computation result list, the originated NC data, and machining condition data, and means for reading out the machining condition data from the aforesaid memory means in response to the invocation from the CAD, re-originating the NC data by executing the cutter path re-creation processing invoked by the assigned functions, and storing the memory means with the re-originated NC data updated for renewal. According to still another aspect of the present invention, functions to be invoked for cutter path re-creation are previously provided by means of a customizing function attached to a CAD system; memory means of a CAM system is previously stored with machining condition data when executing a cutter path creation processing by means of the CAM system for a curved surface set by the CAD system; references for assigning the functions are set for the curved surface; and memory means of the CAD system is stored with the set references; whether or not the references for the curved surface are set in the memory means of the CAD system is determined when the curved surface is modified in the CAD system, and an input for modification completion is made; the functions thus provided and assigned by the reference are invoked, thereby causing the CAD system to invoke the CAM system, when the references are set for the curved surface as an object of the modification; the CAM system, upon perceiving the invocation from the CAD system, execute a processing for cutter path re-creation, specified by the invoked functions, for the modified curved surface; and the memory means of the CAM system is stored with NC data originated by the cutter path re-creation processing, which is updated for renewal, in accordance with an ID code for the unmodified curved surface. According to the present invention, as described above, the shape is defined by the CAD system; the machining conditions are set for the shape defined by the CAM system; and the cutter path computation is made to originate the NC data. In so doing, the set machining conditions are stored beforehand. If this shape is modified by the CAD system, the commands for the cutter path computation and the NC data origination are automatically set in advance. If the shape, with which the NC data has already been originated, is modified by the CAD system, the cutter path computation and the NC data origination are automatically executed for the modified shape by using the stored machining conditions; provided that the aforementioned reference has been set and detected. Thus, there will be no disagreement between the modified shape and the cutter path when such reference has been set. It is to be appreciated that in the conventional examples of CAD/CAM systems specifically listed in the introduction, when the working form is modified by the CAD system, the NC data origination is automatically executed for the modified shape. In the present invention on the other hand, it is necessary for the aforementioned reference to be set and detected before such NC data origination is executed when the working form is modified by the CAD system. Brief Description of the Drawings Fig. 1 is a diagram for illustrating a conventional CAD/CAM system; Fig. 2 is a diagram for illustrating a CAD/CAM system in which a CAD system has a customizing function; Fig. 3 is a diagram for illustrating a CAD system according to one embodiment of the present invention; Fig. 4 is a diagram for illustrating the relationships between a shape created by the CAD/CAM system and a cutter path; Fig. 5 is a diagram for illustrating the relationships between a shape modified by means of the CAD system and the cutter path; Fig. 6 is a flow chart showing processings executed by a processor of the CAD system according to the one embodiment of the present invention; and Fig. 7 is a flow chart showing processings for cutter path creation and NC data origination by a CAM system 2 and processings for cutter path creation and NC data origination, following curved surface modification, by the CAD system 1. A CAD/CAM system itself according to the present invention is a conventional one in which a CAD system is furnished with a customizing function such as the one shown in Fig. 2. The present invention is characterized by that this customizing function is utilized for automatically executing cutter path computation and origination of NC data when a graphic form is modified by the CAD system. Fig. 3 is a diagram for illustrating the customizing function of a CAD system, utilized according to one embodiment of the present invention, and CAD data base. This customizing function is composed of a CAD original customizing function 10, which is originally provided with functions (e.g., "reference-set") for setting references for graphic elements, such as curved surfaces (srfID) and curved lines (entID) forming the curved surfaces, and a CAD user customizing function 11, which is designed so that the user (CAM constructor) can originally provide functions (e.g., as "rf-modify") to be invoked for a cutter path re-creation processing (cutter path computation and re-origination of NC data) when an operation for "CURVED SURFACE MODIFICATION" is performed for specific graphic elements (e.g., reference-defined curved surface srfID1). For example, as shown in Fig. 4(a), when the curved surface srfID1 formed by the spline curves entID1 to entID4 is defined, the data base of the CAD system 1 is stored with data for spline curves entID1 to entID4, their ID codes and data (batch data and batch display data) for the curved surface srfIb1 and its ID code, together with the references which are set so as to assign functions to be invoked for the cutter path re-creation processing when the modifying operation is performed for that curved surface. Fig. 6 is a flow chart showing processings to be executed by a processor of the CAD system according to the present embodiment. When the system is first actuated, the processor of the CAD system displays an operation menu, and stands by until a choice from the menu is made by means of soft keys (Steps S1 and S2). When "CREATION OF LINEAR GRAPHIC FORM" is selected from the menu, a linear graphic creation processing is executed (Step S3). In this processing, as in the conventional case, linear graphic forms, such as a straight line, circular arc, spline curve, hyperbolic curve, poly-line, etc., are defined. If the curved surface srfID1 shown in Fig. 4 is to be inputted, for example, the four spline curves entID1 to entID4 are inputted and defined. Subsequently, when "CREATION OF CURVED SURFACE" is selected from the menu, and elements constituting the curved surface are selected, a curved surface creation processing is executed in the same manner as in the conventional case (Steps S4 and S5). In creating the curved surface srfID1, as shown in Fig. 4(a), aforementioned four spline curves entID1 to entID4 are selected, and the curved surface srfID1 is defined by these four spline curves. When "MODIFICATION OF CURVED SURFACE" is selected from the menu, the curved surface to be modified is assigned by an ID code, and modification of elements which constitute the curved surface is then executed. When a modification completion input is made (Steps S6 and S7), it is determined whether or not the aforesaid references are set for this curved surface, that is, whether or not the references are set for assigning the functions to be invoked for the automatic cutter path re-creation processing when the curved surface is subjected to the modifying operation. If this curved surface is one for which none of the references is set, the "CURVED SURFACE MODIFICATION" processing is terminated at this point. If the aforesaid references are set for this curved surface, on the other hand, the functions (reference-assigned functions) assigned by the set references, that is, the functions originally provided by the user using the CAD user customizing function 11, as mentioned before, are invoked (Steps S8 and S9). If any other menu items than "CREATION OF LINEAR GRAPHIC FORM," "CREATION OF CURVED SURFACE," and "MODIFICATION OF CURVED SURFACE" are selected, processings for these selected items are executed (Step S10). When "END" is selected from the menu (Step S11), the processing by the CAD system 1 terminates. Among the processings described above, ones other than those of Steps S8 and S9 are the same processings as in the conventional case. The same processings as those of Steps S8 and S9 are also executed in Steps S3, S4, S5 and S10 with every input. In Fig. 6, only the modification of the curved surface relating to the present invention is illustrated, and others are omitted. Usually, it is the CAM system 2 that makes the cutter path computation for machining the curved surface defined (Steps S3, S4 and S5) by the processor of the CAD system 1 and originates the NC data. Fig. 7 is a flow chart showing processings for cutter path creation and NC data origination by the CAM system 2, and processings for invoking the functions assigned by the references set through the screen of the CAD system 1 and for the cutter path re-creation on the CAM side responsive to the invocation. First, in executing the cutter path computation and NC data origination for a curved surface newly created by the CAD system 1, the CAM system 2 assigns data for the curved surface by its ID code, and invokes them from the CAD system. Subsequently, the CAM system 2 sets machining conditions, such as the tool feed speed, starting point for cutting, pitch, tool shape, cutting path pattern, etc., through a CRT screen of the CAM system 2 shown in Fig. 4(b), for example. Then, a processor of the CAM system 2 determines whether the curved surface is invoked by the CAM system 2 itself or from the CAD system 1 (Step B1). In the aforesaid case of the cutter path computation and NC data origination for the newly created curved surface, the curved surface data are invoked from the CAD by the CAM system 2 itself, so that the program first proceeds from Step B1 to Step B2, whereupon the data for the machining conditions set by the CAM system are analyzed. Then, a reference is set for this curved surface in order to assign a function to be invoked when that curved surface is subject to modification later so that cutter path re-origination processing can be executed based on the data of that modified curved surface. Further, the set references are delivered to the CAD system 1 to be stored in the memory M1 of the CAD system 1 (Step B3). As in the conventional case, the cutter path is computed, and the NC data are originated by applying the set machining conditions to the curved surface data (Steps B4 and B5). Then, a cutter path computation result list is created and stored in the memory M2 of the CAM system 2 (Step B6). This cutter path computation result list is stored with machining condition data names for the curved surfaces ID to be machined. Every time the processings for the cutter path computation and the NC data origination for the curved surface are finished in this manner, the memory M2 of the CAM system 2 is stored with the NC data and the cutter path computation result list, as well as with the then machining condition data. Moreover, the memory M1 of the CAD system 1 is stored with the references which are set to assign the functions to be invoked for the cutter path computation and the NC data re-origination on the basis of data of the modified curved surface when the curved surface with the NC data thus originated is subjected to modification, thereafter. The references constitute the data base of the CAD system 1. On the other hand, when a specific curved surface is modified by the CAD system 1, that is, when the modification completion is inputted after the aforesaid processings of Steps S6 and S7 of Fig. 6 are executed, the processor of the CAD system 1 determines whether or not the aforesaid references for the curved surface concerned are set in the memory M1 of the CAD system (i.e., whether or not the references are set in Step B3 in newly creating the curved surface) (Step S8). If it is concluded that the references are set for the curved surface as the object of this modification processing, functions assigned by these references are invoked (Step S9). Since the functions invoked by the above references are intended to cause the CAM system 2 to re-create the cutter path in accordance with the modified curved surface data, the CAD system 1 invokes the CAM system 2 (Step A1 of Fig. 7) to cause the processor of the CAM system 2 to start the processing of Step B1 of Fig. 7 and the subsequent processings for the cutter path re-creation. Accordingly, the processor of the CAM system 2 concludes that the invocation is from the CAD system 1 (Step B1), and then proceeds to Step B7. Thereupon, referring to the cutter path computation result list stored in the memory M2 of the CAM system, the processor determines whether or not all the processings based on the cutter path machining condition data stored in the list are finished (Step B8). If it is concluded that all the processings are not finished, the machining condition data read out from the memory M2 of the CAM system 2 are analyzed, and the cutter path computation is executed for the modified curved surface, whereby the NC data are originated (Steps B9 to B11). The memory M2 of the CAM system is stored with the NC data for the re-origination according to the unmodified ID code. Thus, in the memory M2 of the CAM system, the initially stored NC data for the unmodified curved surface are updated to be NC data for latest modified curved surface. Subsequently, the processor of the CAM system 2 repeatedly executes the aforesaid processings of Steps B7 to B11 until the cutter path computation and the NC data origination based on the machining condition data stored in the cutter path computation result list are finished. When all the processings based on the machining condition data are finished, the cutter path computation for curved surface modification and the NC data origination are finished. Referring to Fig. 5, the above processings will be described. When the curved surface srfID1 shown in Fig. 5(a) is modified into a curved surface srfID1' as indicated by full line in Fig. 5(b), cutter path computation for the modified curved surface srfID1' is executed, under the same machining conditions as those used before the modification, following the aforementioned procedure, whereby cutter path data (NC data) are re-originated. If a cutter path pas1' obtained by this re-origination is then displayed by being superposed on the screen with the modified curved surface srfID1' displayed thereon, the shapes of the two curved surfaces correspond with each other, as shown in Fig. 5(c). According to the present invention, as described above, when the screen data are modified on the CAD system side, the functions created by utilizing the customizing function of the CAD system are invoked by the references previously set on the screen, whereupon the CAM side can be informed of that the screen modification has been executed on the CAD side. Thus, the cutter path re-creation processing is executed by the CAM system immediately when the screen data are modified by the CAD system, so that a high operating efficiency can be enjoyed.

Claims: A CAD/CAM system (1,2) operable for recreation of a cutter path (pas1), wherein the CAD/CAM system is adapted to operate such that set machining condition data are previously stored when the cutter path (pas1) is originally computed and NC data originated, by a CAM system (2), for a corresponding shape created by a CAD system (1), the cutter path (pas1) being able to be re-created by the CAM system (2) based on said shape in a form as subsequently modified by the CAD system (1), characterised in that: the CAD/CAM system is further adapted to operate such that if, when said cutter path computation is commanded for said shape, a reference is set as an item of discriminating information so as to assign functions to be invoked for a cutter path re-creation processing when a modifying operation is performed for that shape, commands for cutter path computation and NC data origination will be automatically and previously set in the CAM system (2) when modification of said shape is executed by the CAD system (1) so that, when the shape is modified by the CAD system (1), and on condition that said set reference is detected, cutter path computation and NC data origination will be automatically executed by the CAM system (2) for the modified shape on the basis of said stored machining condition data in response to said set commands for the cutter path computation and the NC data origination. A CAD/CAM system according to claim 1, wherein the CAD system (1) is adapted for defining a curved surface (sfrID1) relating to the creation of said cutter path (pas1), and the CAM system (2) is adapted for defining the shape of said defined curved surface and machining for the computation of the cutter path (pas1), thereby originating NC data, said CAD system (1) includes (1) a function (10) including functions for assigning ID codes to the curved surface (sfrID1) and curved surface elements individually, and capable of originally providing said functions to be invoked for the execution of cutter path re-creation processing on the basis of a key-input for curved surface modification processing completion, (2) memory means (M1) for storing data on the curved surface and the curved surface elements, the ID codes individually assigned therefor, and references set for the curved surface in order to assign the functions described in said paragraph (1), (3) means for determining, in response to the curved surface modification completion input, whether or not the references of said paragraph (2) are set for the curved surface (sfrID1) in the memory means (M1) of said paragraph (2) and (4) means for invoking the functions assigned by the references, thereby invoking the CAM system (2), if it is concluded by the means of said paragraph (3) that said references are set, and said CAM system includes (5) memory means for storing a cutter path computation result list, the originated NC data, and machining condition data, and (6) means for reading out the machining condition data from the memory means of said paragraph (5) in response to the invocation from the CAD described in said paragraph (4), re-originating the NC data by executing the cutter path re-creation processing invoked by the functions assigned as described in said paragraph (4), and updating the re-originated NC data for storage in the memory means of said paragraph (5). A CAD/CAM method for executing an automatic re-creation processing for a cutter path (pas1) by: (a) previously providing functions to be invoked for cutter path re-creation by means of a customizing function attached to a CAD system (1); (b) previously storing memory means of a CAM system (2) with machining condition data in order to execute a cutter path creation processing by means of the CAM system (2) for a curved surface (sfrID1) defined by the CAD system (1), setting references for assigning the functions of said paragraph (a) for said curved surface (sfrID1), and storing memory means of the CAD system (1) with the said set references; (c) determining whether or not the references for the curved surface (sfrID1) are set in the memory means of the CAD system (1) of said paragraph (b) when the curved surface (sfrID1) is modified in the CAD system (1) and an input for modification completion is made; (d) invoking the functions provided as described in said paragraph (a) and specified by the references, and further causing the CAD system (1) to invoke the CAM system (2), when said references have been set for the curved surface (sfrID1) as an object of the modification; (e) causing the CAM system (2), upon perceiving the invocation from the CAD system (1) as described in said paragraph (d), to execute a processing for cutter path re-creation, specified by the functions invoked in said paragraph (d), for the curved surface (sfrID1) modified in said paragraph (c); and (f) updating and storing the memory means of the CAM system (2) with NC data originated by the cutter path re-creation processing described in said paragraph (e) in accordance with an ID code for the unmodified curved surface.

Inventors: MEGURO HIDENORI, SEKI MASAKI, MEGURO, HIDENORI, SEKI, MASAKI
Applicants: FANUC LTD, FANUC LTD.
Application year: 1993
Main classification: G05B19
IPC codes: G06F17, G05B19, B23Q15