The present invention relates to a processing simulation method for generating a shape model of a processed material from a shape model of a material and a shape model of a tool processing area which is defined from a shape model of the tool and a movement path of the tool, a device for carrying out the processing simulation method and a program for causing a computer to execute the processing simulation method. More particularly, the present invention relates to a processing simulation method in a case where a shape model of a material is separated by processing, a device for carrying out the processing simulation method and a program for causing a computer to execute the processing simulation method.
Conventionally, as a processing simulation device for generating/displaying a shape model of a processed material based on information of a material shape model, a tool shape model and a tool movement path, a device is known which generates and displays the shape model of the processed material by generating a shape model of a tool processing area which is an area that can be processed when the tool moves along the tool movement path and removing the shape model of the generated tool processing area from the material shape model in accordance with a removal operation. Further, a device is also known which detects interference between the shape model of the generated tool processing area and the material shape model, in a case where the tool movement path is provided not for processing but for rapidly moving (see, Patent Document 1).
Patent Document 1: JP-A-2001-356804
In the conventional processing simulation device as mentioned above, a shape model of a material is separated into a plurality of shapes and all of the separated plurality of shapes is considered as a subject of interference detection when a tool movement path shears through a material illustrated in
The present invention has been made to solve the above-described problems and an object of the present invention is to provide a processing simulation method which is capable of correctly detecting interference between a tool processing area and the shape model of a material by recognizing a shape model of a material to be cut-off. Further, the present invention provides a device for carrying out the processing simulation method and a program for causing a computer to execute the processing simulation method.
In order to accomplish the above-described object, the present invention provides a processing simulation method for generating a shape model of a processed material from a shape model of a material and a shape model of a tool processing area which is defined from a shape model of the tool and a movement path of the tool, the processing simulation method including: detecting that the shape model of the material is separated into a plurality of shapes by processing; extracting a material shape to be cut-off from the separated material shapes; and excluding the extracted material shape to be cut-off from subject of simulation.
Further, the present invention provides a processing simulation device for generating a shape model of a processed material from a shape model of a material and a shape model of a tool processing area which is defined from a shape model of the tool and a movement path of the tool, the processing simulation device including: a means for detecting that the shape model of the material is separated into a plurality of shapes by processing; a means for extracting a material shape to be cut-off from the separated material shapes; and a means for excluding the extracted material shape to be cut-off from subject of simulation.
According to the present invention, there is an advantage that the shape model of processed material is formed in a correct shape and it is possible to properly detect interference between the tool processing area and the shape model of the material by excluding a shape model of a material to be cut-off from simulation subject when the shape model of a material is separated into a plurality of shapes.
Hereinafter, the embodiment 1 of the present invention will be described by referring to
In
A simulation execution unit 2 analyzes an NC program stored in an NC program storage unit 10 and stores tool movement path data obtained from the NC program in a tool movement path storage unit 11. Further, the simulation execution unit 2 stores material holding information (mounting of a workpiece on a first main spindle side and mounting of a workpiece on a second main spindle side) obtained from the NC program in a material holding information storage unit 12 and commands execution of processes of respective units, such as a tool model generation unit 3, a processed material generation unit 4, a tool interference detection unit 5, a cut-off shape extraction/removal unit 6 and a processed material/alarm display unit 7.
The tool shape model generation unit 3 generates a tool shape model from tool shape information stored in a tool shape information storage unit 13 in accordance with an execution command from the simulation execution unit 2 and stores the generated tool shape model in a tool shape model storage unit 14.
The processed material generation unit 4 generates a tool processing area shape model from the tool movement path data stored in the tool movement path storage unit 11 and the tool shape model stored in the tool shape model storage unit 14 in accordance with an execution command from the simulation execution unit 2, as illustrated in
A shape separation detection unit 16 (corresponding to a means for detecting that a material shape model is separated into a plurality of shapes by processing) stores separation information (separation detection flag, etc) in a shape separation information storage unit 17 when a condition for determining that the material shape model is separated is met during the removal operation.
Hereinafter, a separation determining condition will be described by referring to
First, surfaces constituting the tool processing area shape that is transferred to the material shape model, which are grouped together in a geometrically or topologically continuous unit, are referred to as an FA group (a material transferred tool processing area group). Further, surfaces constituting the material shape that is removed from the material shape model by processing, which are grouped together in a geometrically or topologically continuous unit, are referred to as an FR group (a processed material area group).
The separation determining condition refers to a condition in which ‘two or more FA groups are present and an FR group that is connected to the two or more FA groups is present’.
In
Meanwhile, in
The shape separation detection unit 16 included in the processed material generation unit 4 is only configured to determine separation of the material shape model. The material shape model itself is stored in the material shape model storage unit 9, together with a part of material shape separated by the processed material generation unit 4 as mentioned above.
The tool interference detection unit 5 generates a tool processing area shape model from the tool movement path data stored in the tool movement path storage unit 11 and the tool shape model stored in the tool shape model storage unit 14 in accordance with an execution command from the simulation execution unit 2 and detects interference between the generated tool processing area shape model and the material shape model stored in the material shape model storage unit 9. The tool interference detection unit 5 stores interference information (block information in the NC program with respect to the tool movement path at the time of interference) in an interference information storage unit 15 when the interference is detected.
The cut-off shape extraction/removal unit 6 (corresponding to a means which extracts a material to be cut-off from the separated material, means which excludes the extracted material to be cut-off from the subject of simulation and means which does not exclude the extracted the material to be cut-off from the subject of simulation at the time of improper processing) does not execute a cut-off shape extraction/removal processing when interference information is present in the interference information storage unit 15 and does not execute cut-off processing at the time of improper processing to prevent mistake in program. Further, the cut-off shape extraction/removal unit 6 extracts the separated material shape model as a cut-off shape, which is located at a opposite side to a mounting side of a material set in material holding information of the material holding information storage unit 12, among the material shape model stored in the material shape model storage unit 9, when interference information is not present in the interference information storage unit 15 and separation information is present in the shape separation information storage unit 17. The material shape model from which a shape extracted as the cut-off shape is removed is stored in the material shape model storage unit 9.
The processed material/interference information display unit 7 generates a shaded image of the material shape model stored in the material shape model storage unit 9 in accordance with an execution command from the simulation execution unit 2 and updates a shaded image on a display by the generated shaded image. Further, the content of the interference information is displayed on the display when the interference information is present in the interference information storage unit 15.
Components (simulation execution unit, tool shape model generation unit, etc.) of the simulation device other than the storage units (memories) is essentially constituted with a software and a hardware configuration thereof is generally constituted by CPU, memory, or the like.
Further, the simulation device may be installed and used in PC, digital control device, or the like.
The processing simulation device thus configured is operated in accordance with the flowchart illustrated in
In step S1, a material shape model before being processed is set from material shape definition information. Specifically, the material shape model setting unit 1 generates the material shape model before being processed from the material shape definition information stored in the material shape definition information storage unit 8 and stores the generated material shape model in the material shape model storage unit 9.
In step S2, block information configuring the NC program is read out from the NC program. As the block information, there is information which commands the tool exchange, the tool movement, etc.
In step S3, it is checked whether the block information read out from the NC program is present or not. When the block information is not present, the whole process is ended. Otherwise, the process proceeds to step S4.
In step S4, it is checked whether the block information read out is directed to command the tool exchange or not. When the block information is directed to command the tool exchange, the process proceeds to step S5. Otherwise, the process proceeds to step S7.
In step S5, a tool shape model is generated in accordance with a number specified in the block information for the tool exchange. Specifically, the tool model generation unit 3 generates a tool shape model from tool shape information stored in a tool shape information storage unit 13 in accordance with an execution command from the simulation execution unit 2 and stores the generated tool shape model in the tool shape model storage unit 14.
In step S6, it is checked whether the block information read out is directed to command the movement or not. When the block information is directed to command the movement, the process proceeds to step S7. Otherwise, the process proceeds to step S13. Steps 2 to 4 and step 6 are carried out essentially through the operation of the simulation execution unit 2.
In step S7, a tool processing area shape model is generated from the tool movement command and the tool shape model generated in step S5 and the material shape model is updated into a material shape model after being processed by removing the generated tool processing area shape model from the material shape model in accordance with a removal operation. Specifically, the processed material generation unit 4 generates a tool processing area shape model from the tool movement path data stored in the tool movement path storage unit 11 and the tool shape model stored in the tool shape model storage unit 14 in accordance with an execution command from the simulation execution unit 2, as illustrated in
In step S8, the shape separation detection unit 16 determines whether the material shape model is separated or not based on a control flow illustrated in
First, in step 81, surfaces constituting the tool processing area shape that is transferred to the material shape model are extracted. Next, in step 82, surfaces constituting the tool processing area shape that is transferred to the extracted material shape model are grouped together in a geometrically or topologically continuous unit to form a group (FA group). Next, in step 83, it is determined whether two or more FA groups are present or not. When two or more FA groups are not present, it is determined that the material shape is not separated and thus step S8 is ended.
When two or more FA groups are present, in step 84, surfaces constituting the material shape that is removed from the material shape model by processing are extracted. Next, in step 85, the extracted constituting surfaces are grouped together in a geometrically or topologically continuous unit to form a group (FR group). Next, in step 86, it is determined whether an FR group that is connected to the two or more FA groups is present or not. When an FR group that is connected to two or more FA groups is not present, it is determined that the material shape is not separated and thus step S8 is ended. When an FR group that is connected to the two or more FA groups is present, it is determined that the material shape is separated and separation information is stored in the shape separation information storage unit 17, and step S8 is ended.
In step S9, the tool processing area shape model is generated from the tool movement command and the tool shape model generated in step S5 and an operation for detecting interference between the generated tool processing area shape model and the material shape model is executed. When the interference is detected, a position of the block information in the NC program where interference occurs is stored as interference information. Specifically, the tool interference detection unit 5 generates a tool processing area shape model from the tool movement path data stored in the tool movement path storage unit 11 and the tool shape model stored in the tool shape model storage unit 14 in accordance with an execution command from the simulation execution unit 2 and detects interference between the generated tool processing area shape model and the material shape model stored in the material shape model storage unit 9. The tool interference detection unit 5 stores the interference information (block information in the NC program with respect to the tool movement path at the time of interference) in the interference information storage unit 15 when the interference is detected.
In step S10, when the separation information is present, the process proceeds to step S11. Otherwise, the process proceeds to step S13.
In step S11, when the interference information is not present, the process proceeds to step S12. Otherwise, the process proceeds to step S13.
In step S12, the separated material shape is classified into a remaining material shape model and a cut-off material shape model.
Steps 10 to 12 are carried out essentially through the operation of the cut-off shape extraction/removal unit 6. Specifically, the cut-off shape extraction/removal unit 6 extracts the separated material shape model as a cut-off shape, which is located at an opposite side to a mounting side of a material set in material holding information of the material holding information storage unit 12, among the material shape model stored in the material shape model storage unit 9 when separation information is present in the shape separation information storage unit 17 and interference information is not present in the interference information storage unit 15. And, the material shape model from which a shape extracted as the cut-off shape is deleted is stored in the material shape model storage unit 9.
Further, when the interference information is present in the interference information storage unit 15, the processing (cut-off shape extraction/removal) of step 12 is not executed. This is intended to prevent a mistake in the program by not executing the cut-off processing in improper processing.
In step S13, a shaded image of the material shape model is generated and a shaded image on a display is updated by the generated shaded image. Further, the content of the interference information is displayed on the display when the stored interference information is present.
After step S13, the process returns to step S2 to read out next block information in the NC program. And then, the above steps are repeated until all of the blocks in the NC program are processed.
Hereinabove, the operation flow in the processing simulation device according to the embodiment 1 of the present invention has been described.
According to the embodiment 1, when the material shape model is separated by shear-through processing, etc., a shape model of a material in a state of being suspended in mid-air does not remain. Accordingly, there is an advantage that detection of unnecessary interference is prevented.
Further, when interference occurs at the time of processing to separate the shape, the cut-off processing is regarded as an improper processing and is not executed. Accordingly, there is an advantage of preventing a mistake in the program due to the cut-off processing.
Next, the embodiment 2 of the present invention will be described by referring to
The embodiment 2 represents an example in which a cut-off shape model storage unit 18 is added to the embodiment 1, as illustrated in
According to the embodiment 2, it is possible to confirm a final shape (processed shape) of a cut-off material on the display during a processing (
In the embodiment 1, the shape separation detection unit 16 determines separation when the group of adjacent surfaces of the material shape removed from the material shape, which is adjacent to two or more groups of adjacent surfaces of the tool processing area shape transferred to the material shape, is present. However, a condition may be used which determines separation when the processing is a cut-off processing that is actually carried out when the material shape is separated in the same direction as a turning axis in a turning processing, as illustrated in
According to the embodiment 3, since the cut-off processing is performed only in proper processing and the cut-off processing is not performed in improper processing where it id determined that processing is not actually possible, there is an advantage of preventing a mistake in the program due to the cut-off processing. Further, since the determination is performed based on only the direction of the turning axis (one dimension), there is also an advantage of significantly reducing the amount of calculation.
In the embodiment 1, the shape separation detection unit 16 determines separation when the group of adjacent surfaces of the material shape removed from the material shape, which is adjacent to two or more groups of adjacent surfaces of the tool processing area shape transferred to the material shape, is present. However, a condition may be used which determines separation in a case where a number of groups having a closed shape increases as a result of tracing connection relationship of surfaces constituting the material shape, as illustrated in
In the embodiment 1, a method may be used in which the cut-off shape extraction/removal unit 6 extracts the material shape model to be cut-off from the separated material shape model based on predetermined information.
For example, in the processing where the material shape is separated as illustrated in
In the embodiment 1, regarding the extraction of the material shape model to be cut-off from the separated material shape model by the cut-off shape extraction/removal unit 6, the separated material shape model may be displayed on a display, a user may be caused to select a material model to be remained using a cursor and a keyboard, and based on a signal of the selection, materials other than the material to be remained may be extracted as the material to be cut-off. Of course, the material to be cut-off may be extracted by causing a user to select the material to be cut-off.
The processing simulation method, the device for carrying out the processing simulation method and the program for causing a computer to execute the processing simulation method according to the present invention may be used in a processing simulation device for performing verification of the NC program that is provided in a numerical control device and further may be suitable to be used as a processing simulation method for predicting and preventing interference between the processed material and the tool during the operation of a machine tool, a device for carrying out the processing simulation method and a program for causing a computer to execute the processing simulation method.
1 MATERIAL SHAPE MODEL SETTING UNIT,
2 SIMULATION EXECUTION UNIT,
3 TOOL SHAPE MODEL GENERATION UNIT,
4 PROCESSED MATERIAL GENERATION UNIT,
5 TOOL INTERFERENCE DETECTION UNIT,
6 CUT-OFF SHAPE EXTRACTION/REMOVAL UNIT,
7 PROCESSED MATERIAL/INTERFERENCE INFORMATION DISPLAY UNIT,
8 MATERIAL SHAPE DEFINITION INFORMATION STORAGE UNIT,
9 MATERIAL SHAPE MODEL STORAGE UNIT,
10 NC PROGRAM STORAGE UNIT,
11 TOOL MOVEMENT PATH STORAGE UNIT,
12 MATERIAL HOLDING INFORMATION STORAGE UNIT,
13 TOOL SHAPE INFORMATION STORAGE UNIT,
14 TOOL SHAPE MODEL STORAGE UNIT,
15 INTERFERENCE INFORMATION STORAGE UNIT,
16 SHAPE SEPARATION DETECTION UNIT,
17 SHAPE SEPARATION INFORMATION STORAGE UNIT,
18 CUT-OFF SHAPE MODEL STORAGE UNIT
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2010/002550 | 4/7/2010 | WO | 00 | 10/5/2012 |