This application claims priority to Japanese Patent Application No. 2013-085041, filed on Apr. 15, 2013, which is incorporated herein by reference in its entirety.
1. Technical Field
The present invention relates to a numerical controller which controls a relative position between a tool and a workpiece fixed to a machine tool according to numerical control information, by referring to three-dimensional models of the tool, and the workpiece and the jig fixed to the machine tool.
2. Related Art
In conventional numerical controllers, with three-dimensional models of a workpiece, jig, tool, machine, or the like available as machine data, a relative position between the workpiece and the tool is controlled to control processing of the workpiece by the tool while performing interference checking.
In interference checking, interference between a three-dimensional model of a workpiece and a three-dimensional model of a tool can be recognized as a cut region and ignorable. Further, a three-dimensional model of a workpiece can be deformed by calculating a cut region according to travel of the three-dimensional model of the tool.
Further, in the numerical control machine tools disclosed in JP 2012-53508 A and JP 2012-53509 A, a three-dimensional shape, position, and orientation of a workpiece fixed to a machine tool can be measured in a non-contact manner.
In order to perform interference checking, three-dimensional models of a tool and a workpiece with a jig are necessary. For a workpiece repeatedly processed, in consideration of possible variation of the shape of the workpiece, it is reliable to measure the actual shape of the workpiece fixed to the machine tool to obtain a three-dimensional model of the workpiece. Further, even with no variety in the shape of the workpiece expected, the position of the jig holding the workpiece may be varied each time the workpiece is processed. Thus, it is reliable to measure the actual shape of the jig fixed to the machine tool to obtain a three-dimensional model of the jig.
Therefore, it is conceivable to create three-dimensional models by measuring the shape of a workpiece and a jig by using a three-dimensional measuring device. However, when creating the three-dimensional models by measuring a workpiece and a jig fixed to a machine tool by using a three-dimensional measuring device, the three-dimensional measuring device cannot determine whether the obtained three-dimensional coordinates represent the measured result of the workpiece or the jig. Therefore, it is impossible to distinguishably provide a three-dimensional model of a workpiece and a three-dimensional model of a jig.
When processing a workpiece while performing interference checking, it is necessary, during a cutting process, to sense interference between a jig and a tool, but it is necessary to ignore interference between the workpiece and the tool. Thus, the three-dimensional model of the workpiece and the three-dimensional model of the jig should be distinguishable.
A numeric controller according to the present invention controls relative movement between a tool and a workpiece with a jig fixed to a machine tool in accordance with numeric control information. The numeric controller includes a three-dimensional model storage which stores a three-dimensional model of at least one of the workpiece and the jig; a three-dimensional measuring unit which integrally measures shapes of the workpiece and the jig fixed to the machine tool; a measured data storage which stores the measured data, in which the workpiece and the jig are integrally recognized, measured by the three-dimensional measuring unit; and a shape processor generating, based on the measured data of the workpiece and the jig stored in the measured data storage, an integrally measured model in which the workpiece and the jig are integrally recognized, and further generating, regarding at least one of the workpiece and the jig, an individually measured model in which the workpiece or the jig is individually distinguished based on the generated integrally measured model and the three-dimensional model of the workpiece or the jig; wherein the relative movement between the tool and the workpiece with the jig is controlled by referring to the individually measured model generated by the shape processor.
In a preferred aspect, the shape processor compares the integrally measured model and the three-dimensional model of one of the workpiece and the jig, and generates a region, in the integrally measured model, not included in the three-dimensional model of one of the workpiece and the jig as an individually measured model of the other. In another preferred aspect, the shape processor compares the integrally measured model and the three-dimensional model of one of the workpiece and the jig, and generates a region, in the integrally measured model, included in the three-dimensional model of one of the workpiece and the jig as an individually measured model of the one.
By providing the three-dimensional model of the workpiece or the jig in advance, it becomes possible to distinguish the workpiece region and the jig region in the result of the three-dimensional measurement of the workpiece and the jig fixed to the machine tool. As a result, an interference sensing function becomes achievable such that in response to a fast feed command, the interference among the three-dimensional models of all of the workpiece, the jig, and the tool are sensed, while in response to a cutting feed command, the interference between the three-dimensional models of the workpiece and the tool is ignored. Further, the distinguishable three-dimensional models of the workpiece and the jig enable shaping simulation for a cutting feed command by calculating passed region of the tool model and deleting the three-dimensional model of the workpiece for the region overlapping the passed region of the tool model.
A three-dimensional model storage 8 stores a workpiece model 14.
A shape processor 9 generates a measured model 16 in which point cloud data forming the measured data 12 is represented by a set of triangles.
In order to generate the integrally measured model 16 from the measured data 12, firstly, points in the measured data 12 are connected to create triangles (S1).
Next, regarding the generated triangles, if a triangle can be recognized to belong to the same plane as a neighboring triangle (S2), the triangles are combined.
Next, triangles are created by using the outermost points in the measured data 12 and the generated points (S4).
Once the integrally measured model 16 is generated, the shape processor 9 performs a logical operation between the integrally measured model 16 and the workpiece model 14 such that in the integrally measured model 16, the region included inside the workpiece model 14 is set as an individually measured workpiece model 18 which represents the workpiece 5 region individually extracted from the integrally measured model 16. Further, in the integrally measured model 16, the region which is not included in the workpiece model 14 or the individually measured model 18 is set as an individually measured jig model 19 which represents the jig 6 region individually extracted from the integrally measured model 16.
A tool model 21 is also stored in the three-dimensional model storage 8.
In the above description, the workpiece model 14 is assumed to be stored in the three-dimensional model storage. However, when the variation of the installation position of the jig is minimum or the installation position of the jig is known, the jig model may be stored instead such that the region included in the jig model is set as the individually measured jig model, while the region not included in the jig model is set as the individually measured workpiece model.
In order to generate the individually measured workpiece model 18 and the individually measured jig model 19 from the measured data, firstly, the workpiece 5 and the jig 6 are fixed to the machine tool 1 (S6). The three-dimensional measuring device 3 measures height information of the surfaces of the workpiece 5 and the jig 6 fixed to the table 4 of the machine tool 1 to output the measured data 12 in which the height information is represented with point cloud data of the three-dimensional coordinates (X, Y, Z) with respect to the reference point 13 representing a certain point on the table 4 (S7).
Next, the workpiece model 14 of the workpiece 5 is created (S8). Then, the position of the workpiece 5 with respect to a certain point on the table 4 is measured (S9). It should be noted that, in order to process the workpiece 5 by the machine tool 1 using numeric control commands of an NC program or the like, the position of the tool should be commanded by measuring the position of the workpiece 5 with respect to a certain point on the table 4 of the machine tool 1 and correcting the position of the workpiece 5. The position of the workpiece 5 may be measured by a method using a contact-type measuring instrument. The position of the workpiece 5 may also be estimated by extracting interest points from the measured data by analyzing the measured data 12.
Next, the workpiece model 14 of the workpiece 5 is moved to a position corresponding to the position of the workpiece 5 fixed to the machine tool 1 by using the position of the workpiece 5 measured in S4 (S10). Then, the measured data 12 is converted to the integrally measured model 16 to compare the shape with the workpiece model 14 of the workpiece 5 (S11). Although the measured data 12 is represented with a set of coordinates of points, the measured data 12 can be converted into the integrally measured model 16 by connecting the points by lines to generate triangles.
Next, in the integrally measured model 16, the region included inside the workpiece model 14 is set as the individually measured workpiece model 18 (S12). Further, in the integrally measured model 16, the region which is not included in the workpiece model 14 is set as the individually measured jig model 19 (S13). The workpiece model 14 and the integrally measured model 16 are represented by the coordinates of the vertexes of the triangles. In comparing models represented by coordinates of the vertexes of the triangles, inclusion relationships of the models can be determined by calculating overlapping regions of the triangles.
Number | Date | Country | Kind |
---|---|---|---|
2013-085041 | Apr 2013 | JP | national |