The present invention relates to a programming device that programs a numerical control (NC) program and a method of programming.
Recently there has been promoted development of a technique for machining a product (a machining-target object) into a complex shape by using an NC program on a machining device. The NC program, however, needs to be programmed beforehand so that a user (e.g., an operator) of the machinery can easily machine the product.
In a conventional system for programming NC programs based on CAD (Computer Aided Design) data, when an NC program for surface machining such as slicing or pocket milling is to be programmed, a machining-target-area defining unit included in a computer aided manufacturing (CAM) system defines a machining-target area by selecting/extracting a shape that prescribes the machining-target area from shape data that is created by a CAD system, and an NC-program programming unit programs an NC program by adding machining conditions to data on the defined machining-target area (for example, see Patent Document 1).
Patent Document 1: Japanese Patent Laid-open No. H05-20402 (pages 2 to 4, FIG. 1)
As the shape of the machining-target area to be extracted becomes more complex, it becomes necessary to give more instructions for selecting the shape that prescribes the machining-target area, which leads to a problem of an increase in the workload for the process of selecting/extracting the shape that prescribes the machining-target area. Moreover, when defining a plurality of machining-target areas that require changing an axial direction of a tool, the operator needs to add shape data and select an appropriate shape from the shape data so that shapes of the machining-target areas can be defined without causing interference with a shape of a product and also with reducing waste of the workload. This method leads to a problem of an increase in the workload of the operator, and requires the operator to have high-level technical skills.
In consideration of the above problems, an object of the present invention is to provide a programming device that can easily program an NC program for machining a plurality of surfaces by changing the axial direction of the tool with simplified instructions and a method of programming the NC program.
To solve the problem and achieve the object as described above, the present invention provides a programming device that programs a machining control program that is used when a numerical control device performs machining control of a machining-target object by changing an axial direction of a tool. The programming device includes a machining-target-area data storage unit that stores therein data on a machining-target area of the machining-target object, a tool-axial-direction setting unit that sets an axial direction of the tool with respect to the data on the machining-target area stored in the machining-target-area data storage unit based on data input from outside when the machining-target object is to be surface-machined, a tool-deepest-position setting unit that sets a deepest position of a tip of the tool with respect to the data on the machining-target area stored in the machining-target-area data storage unit based on data input from outside when the machining-target object is to be surface-machined, a surface-machining-target-area extracting unit that extracts a surface-machining-target area of the machining-target object as data on the surface-machining-target area from the data on the machining-target area based on the axial direction of the tool set by the tool-axial-direction setting unit, the deepest position of the tip of the tool set by the tool-deepest-position setting unit, and the data on the machining-target area stored in the machining-target-area data storage unit, a machining-process-data determining unit that determines data on machining processes for surface-machining the machining-target object based on the data on the surface-machining-target area extracted by the surface-machining-target-area extracting unit, and a programming unit that programs a machining control program that complies with the data on the surface-machining-target area extracted by the surface-machining-target-area extracting unit and the data on the machining processes determined by the machining-process-data determining unit. The surface-machining-target-area extracting unit extracts a maximal area that can be machined without causing interference with the machining-target object as the data on the surface-machining-target area when the machining-target object is surface-machined to the deepest position of the tip of the tool set by the tool-deepest-position setting unit in the axial direction of the tool set by the tool-axial-direction setting unit.
According to the invention, it is possible to extract a maximal area that can be machined without causing interference with the machining-target object based on simplified external input data. Thus, a program can be easily programmed with simplified instructions.
Exemplary embodiments of a programming device and a programming method according to the present invention are explained in detail below with reference to the accompanying drawings. The present invention is not limited to the embodiments explained below.
The NC-program programming device 1 is connected to a CAD system 30. The NC-program programming device 1 includes a shape-data input unit 2, a product-shape storage unit 3, a material-shape storage unit 4, a machining-target-area-shape creating unit (a computing unit) 5, a machining-target-area-shape storage unit (a machining-target-area-data storage unit) 6, a tool-axial-direction setting unit 7, a tool-axial-direction storage unit 8, a tool-tip-deepest-position setting unit 9, a tool-tip-deepest-position storage unit 10, a surface-machining-target-area-shape extracting unit (a surface-machining-target-area extracting unit) 11, a surface-machining-target-area-shape storage unit 12, a machining-process-data determining unit 13, a machining-process-data storage unit 14, an NC-program programming unit (a programming unit) 15, an NC-program storage unit 16, a machining-target-area-shape updating unit (a machining-target-area updating unit) 17, a shape selecting unit 18, a tool-axial-direction selecting unit 19, and an instruction input unit 20.
The shape-data input unit 2 receives from the CAD system 30 three-dimensional shape data of a product (i.e., a final product of a machining-target object) (hereinafter, “product shape data”) and three-dimensional shape data of a material (a material that is machined to obtain the product) (hereinafter, “material shape data”). The shape-data input unit 2 stores the product shape data transmitted from the CAD system 30 in the product-shape storage unit 3, and stores the material shape data transmitted from the CAD system 30 in the material-shape storage unit 4.
The product-shape storage unit 3 is a data storage (memorizing) unit that stores therein the product shape data input from the shape-data input unit 2. The material-shape storage unit 4 is a data storage unit that stores therein the material shape data input from the shape-data input unit 2.
The machining-target-area-shape creating unit 5 receives the product shape data and the material shape data from the product-shape storage unit 3 and the material-shape storage unit 4 respectively, and by using those data creates data on a machining-target area (shape) (hereinafter, “machining-target-area shape data”). Then, the machining-target-area-shape creating unit 5 stores the created machining-target-area shape data in the machining-target-area-shape storage unit 6. The machining-target-area-shape storage unit 6 is a data storage unit that stores therein the machining-target-area shape data created by the machining-target-area-shape creating unit 5.
The instruction input unit 20 is a data input unit, and includes a mouse or a keyboard. The instruction input unit 20 receives instructions from an operator (for example, data on an instruction for specifying a surface or a line of the product to determine an axial direction of the tool, or data on an instruction for specifying a point on the product) and the like. The instruction input unit 20 transmits the data on instructions received from the operator to the tool-axial-direction setting unit 7.
The tool-axial-direction setting unit 7 determines an axial direction of the tool (hereinafter, “a tool-axial direction”) based on the data (the product shape data) stored in the product-shape storage unit 3 and the data on instructions from the instruction input unit 20 (the operator), and then stores the data on the determined tool-axial direction in the tool-axial-direction storage unit 8.
The tool-axial-direction setting unit 7 includes the shape selecting unit 18 and the tool-axial-direction selecting unit 19. The shape selecting unit 18 extracts data on a part such as a surface or a line (hereinafter, “product-shape part data”) from the product shape data that is used to determine a tool-axial direction, and inputs the extracted product-shape part data to the tool-axial-direction selecting unit 19.
The tool-axial-direction selecting unit 19 determines a few prospective axial directions of the tool based on the product-shape part data input from the shape selecting unit 18, and displays those prospective axial directions of the tool on a display unit (not shown) or the like. The tool-axial-direction selecting unit 19 determines a certain tool direction from the prospective directions of the tool based on the data on the instruction from the instruction input unit 20 (i.e., an instruction for the tool direction). Incidentally, the operator can input to the instruction input unit 20 an instruction that reverses the axial direction of the tool (an instruction for determining a reverse direction against the selected prospective axial direction of the tool as the tool axis) input as the data on an instruction. The tool-axial-direction selecting unit 19 stores the data on the determined tool-axial direction as tool-axial direction data in the tool-axial-direction storage unit 8. The tool-axial-direction storage unit 8 is a data storage unit that stores therein the tool-axial direction data determined by the tool-axial-direction selecting unit 19.
The tool-tip-deepest-position setting unit 9 determines the deepest position to which the tip of the tool can reach (hereinafter, “a tool-tip deepest position”) based on the product shape data stored in the product-shape storage unit 3 and the data on instructions (i.e., instructions from the operator) from the instruction input unit 20. Then, the tool-tip-deepest-position setting unit 9 stores the data on the determined tool-tip deepest position as tool-tip deepest position data in the tool-tip-deepest-position storage unit 10. The tool-tip-deepest-position storage unit 10 is a data storage unit that stores therein the tool-tip deepest position data determined by the tool-tip-deepest-position setting unit 9.
The surface-machining-target-area-shape extracting unit 11 receives the product shape data from the product-shape storage unit 3 and the machining-target-area shape data from the machining-target-area-shape storage unit 6. Furthermore, the surface-machining-target-area-shape extracting unit 11 receives the tool-axial direction data from the tool-axial-direction storage unit 8 and the tool-tip deepest position data from the tool-tip-deepest-position storage unit 10.
The surface-machining-target-area-shape extracting unit 11 extracts shape data on a machining-target area for actual surface machining (hereinafter, “a surface-machining target-area shape”) by using the data received from the product-shape storage unit 3, the machining-target-area-shape storage unit 6, the tool-axial-direction storage unit 8, and the tool-tip-deepest-position storage unit 10. Then, the surface-machining-target-area-shape extracting unit 11 stores in the surface-machining-target-area-shape storage unit 12 the extracted data on the surface-machining target-area shape. The surface-machining-target-area-shape storage unit 12 is a data storage unit that stores therein the data on the surface-machining target-area shape extracted by the surface-machining-target-area-shape extracting unit 11.
The machining-process-data determining unit 13 receives the data on the surface-machining target-area shape from the surface-machining-target-area-shape storage unit 12, and determines data on machining processes such as a tool to be used and cutting conditions (hereinafter, “machining-process data”). The machining-process-data determining unit 13 stores the determined machining-process data in the machining-process-data storage unit 14. The machining-process-data storage unit 14 is a data storage unit that stores therein the machining-process data determined by the machining-process-data determining unit 13.
The NC-program programming unit 15 receives the data on the surface-machining target-area shape from the surface-machining-target-area-shape storage unit 12 and the machining-process data from the machining-process-data storage unit 14. The NC-program programming unit 15 programs an NC program based on the received data on the surface-machining target-area shape and the machining-process data. The NC-program programming unit 15 programs the NC program complies with the data on the surface-machining target-area shape and the machining-process data, and then stores the programmed NC program in the NC-program storage unit 16. The NC-program storage unit 16 is a data storage unit that stores therein the NC program programmed by the NC-program programming unit 15.
The machining-target-area-shape updating unit 17 receives the data on the surface-machining target-area shape from the surface-machining-target-area-shape storage unit 12 and the machining-target-area shape data from the machining-target-area-shape storage unit 6. The machining-target-area-shape updating unit 17 newly creates the machining-target-area shape data based on the received data on the surface-machining target-area shape and the machining-target area shape, and stores the created machining-target-area shape data in the machining-target-area-shape storage unit 6.
The CAD system 30 includes a device, such as a personal computer, that creates product shape data and material shape data. The CAD system 30 transmits the product shape data and the material shape data to the shape-data input unit 2 of the NC-program programming device 1.
Next, processing procedures performed by the NC-program programming device 1 are described.
The machining-target-area-shape creating unit 5 receives the product shape data and the material shape data from the product-shape storage unit 3 and the material-shape storage unit 4 respectively, and creates machining-target-area shape data (step S2). The machining-target-area-shape creating unit 5 stores the created machining-target-area shape data in the machining-target-area-shape storage unit 6.
The material shape data, the product shape data, and the machining-target-area shape data are described in detail below.
The material shape data includes numerical data and the like that represents a material shape M1 while the product shape data includes numerical data and the like that represents a product shape M2. The material shape M1 has, for example, the shape (area) of a quadrangular prism as shown in
The product shape M2 has, for example, an upper portion and a lower portion as shown in
The machining-target-area-shape creating unit 5 creates the machining-target-area shape data from the material shape M1 and the product shape M2.
The machining-target-area shape data includes numerical data and the like that represents a machining-target area shape M3. As shown in
Once the machining-target-area-shape creating unit 5 creates the machining-target-area shape data and stores the machining-target-area shape data in the machining-target-area-shape storage unit 6, the tool-axial-direction setting unit 7 checks whether the setting of the current tool-axial direction is to be changed (step S3).
If data on an instruction for changing the setting of the current tool-axial direction is included in the data on instructions received via the instruction input unit 20 (the operator), the tool-axial-direction setting unit 7 determines that the setting of the current tool-axial direction is to be changed.
If the tool-axial-direction setting unit 7 determines that the setting of the current tool-axial direction is to be changed (YES at step S3), the shape selecting unit 18 in the tool-axial-direction setting unit 7 extracts data on a part such as a surface or a line from the product shape data to determine a tool-axial direction based on the product shape data stored in the product-shape storage unit 3 and data on an instruction from the instruction input unit 20 (a specification of a surface or a line for determining the tool-axial direction) (a first specifying data). The shape selecting unit 18 inputs the extracted data to the tool-axial-direction selecting unit 19 as the product-shape part data.
The tool-axial-direction selecting unit 19 determines a tentative tool-axial direction (a prospective tool direction) from the product-shape part data received from the shape selecting unit 18. The tool-axial-direction selecting unit 19 determines a tool direction upon receiving an instruction for changing the tool direction from the operator (an instruction whether the tool direction is to be reversed). In other words, the tool-axial-direction setting unit 7 selects a surface or a line from the product shape data depending on an instruction from the operator, and sets a direction corresponding to the selected surface or line as the current tool-axial direction (step S4). Then, the tool-axial-direction setting unit 7 stores data on the determined tool-axial direction in the tool-axial-direction storage unit 8.
The selected surface and line, and the tool-axial direction that is determined based on the selected surface and line are described below.
After setting the tool-axial directions, the tool-axial-direction setting unit 7 further checks whether the setting of the tool-axial direction is to be changed (step S3). If the tool-axial-direction setting unit 7 determines not to change the setting of the current tool-axial direction (no instruction for changing the setting from the operator) (NO at step S3), the tool-tip-deepest-position setting unit 9 checks whether the setting of the current tool-tip deepest position is to be changed (step S5).
If data on an instruction for changing the setting of the current tool-tip deepest position is included in the data on instructions received from the instruction input unit 20 (the operator), the tool-tip-deepest-position setting unit 9 determines that the setting of the current tool-tip deepest position is to be changed.
If the tool-tip-deepest-position setting unit 9 determines that the setting of the current tool-tip deepest position is to be changed (YES at step S5), the tool-tip-deepest-position setting unit 9 determines a new tool-tip deepest position based on the product shape data stored in the product-shape storage unit 3 and the data on instructions received from the instruction input unit 20 (a specification of a point on the product shape) (a second specifying data). Specifically, the tool-tip-deepest-position setting unit 9 selects a point on a surface of the product from the product shape data based on an instruction from the operator, and sets the selected point as a point that defines a surface corresponding to the deepest position of the tool tip in the surface-machining-target area (step S6). The tool-tip-deepest-position setting unit 9 stores data on the determined tool-tip deepest position in the tool-tip-deepest-position storage unit 10.
The tool-tip deepest position is explained below.
The tool-tip-deepest-position setting unit 9 further checks whether the setting of the current tool-tip deepest position is to be changed (step S5). If the tool-tip-deepest-position setting unit 9 determines not to change the setting of the current tool-tip deepest position (completion of changing all the settings) (NO at step S5), the surface-machining-target-area-shape extracting unit 11 checks whether an extraction of a surface-machining target-area shape is to be executed (step S7). If data on the tool-tip deepest position is stored in the tool-tip-deepest-position storage unit 10, the surface-machining-target-area-shape extracting unit 11 determines that the extraction of the surface-machining target-area shape is to be executed.
If the surface-machining-target-area-shape extracting unit 11 determines that the extraction of the surface-machining target-area shape is to be executed (YES at step S7), the surface-machining-target-area-shape extracting unit 11 receives the product shape data from the product-shape storage unit 3 and the machining-target-area shape data from the machining-target-area-shape storage unit 6. Furthermore, the surface-machining-target-area-shape extracting unit 11 receives the tool-axial direction data from the tool-axial-direction storage unit 8 and the tool-tip deepest position data from the tool-tip-deepest-position storage unit 10.
The surface-machining-target-area-shape extracting unit 11 extracts the surface-machining target-area shape by using the data received from the product-shape storage unit 3, the machining-target-area-shape storage unit 6, the tool-axial-direction storage unit 8, and the tool-tip-deepest-position storage unit 10 (i.e., the currently set up tool-axial direction data, tool-tip deepest position data, product shape data, machining-target area shape data).
Processes for extracting the surface-machining target-area shape are described below.
As shown in this figure, a partial shape (a partial product shape M4) of the product shape M2 can be extracted by extracting a partial shape of the product that is located on the opposite side, with respect to the tool-axial direction, of the plane surface W1 used for dividing. The partial product shape M4 corresponds to the product shape M2 shown in
Next, in the second step of the processes for extracting the surface-machining target-area shape, in the same manner as in the first step, the surface-machining-target-area-shape extracting unit 11 extracts a partial shape from the machining-target area shape by using a plane surface defined by the tool-axial direction and the tool-tip deepest position. Specifically, the surface-machining-target-area-shape extracting unit 11 extracts the partial shape from the machining-target area shape based on the tool-axial direction data, the data on tool-tip deepest position, and the machining-target area shape data.
Next, in the third step of the processes for extracting the surface-machining target-area shape, the surface-machining-target-area-shape extracting unit 11 computes a projected area of the partial product shape M4 on the plane surface W1 that is defined by the tool-axial direction V1 and the reference point P1 that defines the tool-tip deepest position.
The surface-machining-target-area-shape extracting unit 11 creates an area (a tool-interfered area) that comes in the way of the tool, for example, by sweeping the partial-product-shape projected area A1 shown in
Next, in the fourth step of the processes for extracting the surface-machining target-area shape, the surface-machining-target-area-shape extracting unit 11 creates a surface-machining target-area shape by removing the tool-interfered area shape M6 created in the third step from the partial machining-target area shape M5 extracted in the second step.
The surface-machining-target-area-shape extracting unit 11 performs the above processes for extracting the surface-machining target-area shape (in the first to fourth steps) to obtain a maximal degree of the surface-machining target-area shape M7 without causing interference with the product shape M2 with remaining the current tool-axial direction and the latest position of the tool tip (step S8). The surface-machining-target-area-shape extracting unit 11 stores data on the extracted surface-machining target-area shape as the first surface-machining target-area shape M7 in the surface-machining-target-area-shape storage unit 12.
Next, the machining-process-data determining unit 13 sets machining conditions (machining-process data) such as the tool to be used and cutting conditions when machining the surface-machining target-area shape M7 by using the shape data on the surface-machining target-area shape M7 extracted by the process at the step S8 (step S9). Incidentally, if the product-shape storage unit 3 stores therein data on, for example, roughness of a finish surface of the machining-target object (surface data) as the product shape data, the machining-process-data determining unit 13 can set up machining conditions such as a machining rate based on the surface data. The machining-process-data determining unit 13 stores the set machining-process data in the machining-process-data storage unit 14.
Next, the NC-program programming unit 15 programs an NC program based on the data on the surface-machining target-area shape stored in the surface-machining-target-area-shape storage unit 12 and the machining-process data stored in the machining-process-data storage unit 14. Namely, the NC-program programming unit 15 programs the NC program by using the data on the surface-machining target-area shape extracted by the process at the step S8 and the machining-process data determined by the process at the step S9 (step S10). The NC-program programming unit 15 stores the programmed NC program in the NC-program storage unit 16.
Next, the machining-target-area-shape updating unit 17 newly creates a machining-target area shape by removing the surface-machining target-area shape extracted by the process at the step S8 from the machining-target area shape currently-stored in the machining-target-area-shape storage unit 6. The machining-target-area-shape updating unit 17 updates the machining-target area shape stored in the machining-target-area-shape storage unit 6 by setting the newly-created machining-target area shape as the current machining-target area shape (step S11).
A newly-created machining-target area shape is described below.
Next, returning to the process at the step S3, the NC-program programming device 1 repeatedly performs the processes in the steps S3 to S11 until the surface-machining-target-area-shape extracting unit 11 determines not to execute the extraction of the surface-machining target-area shape.
In the NC-program programming device 1, after the machining-target-area-shape storage unit 6 stores therein the new machining-target area shape M8, the tool-axial-direction setting unit 7 checks whether the setting of the current tool-axial direction is to be changed (step S3).
Subsequently, the NC-program programming device 1 performs the processes in the steps S3 to S11. Namely, if the tool-axial-direction setting unit 7 determines that the setting of the current tool-axial direction is to be changed (YES at step S3), the shape selecting unit 18 in the tool-axial-direction setting unit 7 extracts data on a part such as a surface or a line to determine the tool direction from the product shape data based on the product shape data stored in the product-shape storage unit 3 and data on an instruction from the instruction input unit 20 (a specification of a surface or a line for determining the tool direction). Then, the shape selecting unit 18 inputs the extracted data to the tool-axial-direction selecting unit 19 as the product-shape part data.
For example, if the operator gives an instruction for changing the setting of the current tool-axial direction from the tool-axial direction V1 to a different direction (the second tool-axial direction), the shape selecting unit 18 extracts data on a part such as a surface or a line to determine the tool direction with respect to the product shape. The shape selecting unit 18 inputs the extracted data as second product-shape part data to the tool-axial-direction selecting unit 19.
Subsequently, the tool-axial-direction selecting unit 19 determines a tentative tool-axial direction from the product-shape part data input from the shape selecting unit 18 (step S4), and stores the data on the determined tool-axial direction in the tool-axial-direction storage unit 8.
A surface and a line that selected is a second operation, and a tool-axial direction that is determined based on the selected surface and line are described in detail below.
After completion of the setting of the second tool-axial direction V3, if the tool-axial-direction setting unit 7 determines that the (current) tool-axial direction is not to be changed (NO at step S3), the tool-tip-deepest-position setting unit 9 checks whether the setting of the current tool-tip deepest position is to be changed (step S5).
If the tool-tip-deepest-position setting unit 9 determines that the setting of the current tool-tip deepest position is to be changed (YES at step S5), the tool-tip-deepest-position setting unit 9 determines the second tool-tip deepest position based on the product shape data stored in the product-shape storage unit 3 and the data on an instruction from the instruction input unit 20 (a specification of a point on the product shape) (step S6). The tool-tip-deepest-position setting unit 9 stores data on the determined tool-tip deepest position in the tool-tip-deepest-position storage unit 10.
As shown in
In the situation that the second tool-tip deepest position has been fixed, if the tool-tip-deepest-position setting unit 9 determines that the setting of the second tool-tip deepest position is not to be changed (NO at step S5), the surface-machining-target-area-shape extracting unit 11 checks whether an extraction of a second (new) surface-machining-target area is to be executed (step S7).
If the surface-machining-target-area-shape extracting unit 11 determines that the extraction of the surface-machining-target area is to be executed (YES at step S7), the surface-machining-target-area-shape extracting unit 11 receives the product shape data from the product-shape storage unit 3 and the machining-target-area shape data from the machining-target-area-shape storage unit 6. Furthermore, the surface-machining-target-area-shape extracting unit 11 receives the data on the second tool-axial direction from the tool-axial-direction storage unit 8 and the data on the second tool-tip deepest position from the tool-tip-deepest-position storage unit 10.
The surface-machining-target-area-shape extracting unit 11 extracts the second surface-machining target-area shape by using the data received from the product-shape storage unit 3, the machining-target-area-shape storage unit 6, the tool-axial-direction storage unit 8, and the tool-tip-deepest-position storage unit 10 (the currently set up tool-axial direction V3, and the second tool-tip deepest position, the product shape M2, and the new machining-target area shape M8).
The surface-machining-target-area-shape extracting unit 11 performs processes (i.e., the first to fourth steps) that are identical to the processes shown in
Next, in the second step of the processes for extracting the surface-machining target-area shape, the surface-machining-target-area-shape extracting unit 11 extracts a partial shape of the machining-target area shape (a partial machining-target area shape).
In this case, a partial shape of the new machining-target area shape M8 (the same shape as the new machining-target area shape M8) is extracted by using the plane surface defined by the tool-axial direction V3 and the reference point P2 defined by the tool-tip deepest position.
Next, in the third step of the processes for extracting the surface-machining target-area shape, the surface-machining-target-area-shape extracting unit 11 computes a projected area of the partial product shape on the plane surface W1 that is defined by the tool-axial direction V3 and the reference point P2 that defines the tool-tip deepest position. In the current example, there is no projected area of the partial product shape, because there is no partial product shape. Accordingly, there is no tool-interfered area. Then, in the fourth step of the processes for extracting the surface-machining target-area shape, the surface-machining-target-area-shape extracting unit 11 creates a new surface-machining target-area shape. In this case, the partial machining-target area shape is regarded as the new surface-machining target-area shape, because there is no tool-interfered area shape.
Next, the machining-process-data determining unit 13 sets machining-process data such as the tool to be used and cutting conditions when machining the surface-machining target-area shape M7 based on the shape data on the second surface-machining target-area shape M7 that is extracted by the process at the step S8 (step S9). The machining-process-data determining unit 13 stores the determined machining-process data in the machining-process-data storage unit 14.
Next, the NC-program programming unit 15 programs an NC program by using the data on the second surface-machining target-area shape stored in the surface-machining-target-area-shape storage unit 12 and the machining-process data stored in the machining-process-data storage unit 14 (step S10). The NC-program programming unit 15 stores the programmed NC program in the NC-program storage unit 16.
Next, the machining-target-area-shape updating unit 17 creates a new machining-target area shape by removing the new surface-machining target-area shape extracted by the process at the step S8 from the current machining-target area shape. In the current example, after extraction of the new surface-machining target-area shape M9, there exists no machining-target shape. Therefore, the NC-program programming device 1 performs the processes returning back to the step S3 without updating the machining-target area shape.
Then, if the surface-machining-target-area-shape extracting unit 11 determines that the extraction of the surface-machining target-area shape is not to be executed, the NC-program programming device 1 checks whether the programming for surface machining is to be finished (step S12). If the programming for surface machining is not to be finished (NO at step S12), the NC-program programming device 1 performs the processes returning back to the step S3. In this case, there is no new machining-target area shape. Therefore, the NC-program programming device 1 finishes programming for surface machining (YES at step S12).
Incidentally, a configuration has been explained above where the NC-program programming device 1 is connected to the CAD system 30. Alternatively, the shape data (the product shape data and the material shape data) included in the CAD system 30 can be input to the NC-program programming device 1 by employing a recording medium such as an FD (flexible disk) or a CD (compact disk).
As described above, according to the embodiment, the operator gives instructions for the tool-axial direction for surface machining of the product shape and the tool-tip deepest position, so that a maximal degree of the machinable surface-machining-target area can be automatically extracted without causing interference with machining of the product. Namely, a machining-target area can be easily set up with fewer instructions from the operator, and also the product can be machined without futile surface-machining. Therefore, it is possible not only to reduce the workload of the programming but also to avoid processing such as adding shapes defining the surface-machining-target area. Thus, the operator can perform programming without using high-level technical skills.
As described above, the programming device and the programming method according to the present invention are suitable for programming an NC program.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2006/315210 | 8/1/2006 | WO | 00 | 6/5/2007 |