Machining program generation device, numerical control device, and machining system

JP7912709B1Active Publication Date: 2026-08-28MITSUBISHI ELECTRIC CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2026531972
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2026-01-23
Publication Date
2026-08-28
Estimated Expiration
2046-01-23

AI Technical Summary

Benefits of technology

【0007】 本開示の加工プログラム生成装置によれば、加工対象物の形状データが3次元で規定される場合であっても、プログラム作成者の負担を軽減でき、生産効率および品質を向上させる、という効果を奏する。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007912709000001
    Figure 0007912709000001
  • Figure 0007912709000002
    Figure 0007912709000002
  • Figure 0007912709000003
    Figure 0007912709000003
Patent Text Reader

Abstract

The machining program generation device (10) generates a numerically controlled machining program (3) based on three-dimensional shape data, including three-dimensional material shape data and three-dimensional product shape data of the workpiece, and tolerance data of the shape data. The machining program generation device (10) includes a shape data acquisition unit that acquires three-dimensional shape data and tolerance data of the workpiece, a correction value calculation unit (15) that calculates correction values ​​for each shape element in three-dimensional space using tolerance data linked to each shape element in three-dimensional space of the three-dimensional product shape data, and a shape correction unit (16) that corrects the shape elements linked to the tolerance data based on the correction values. This reduces the burden on the program creator and improves production efficiency and quality, even when the shape data of the workpiece is defined in three dimensions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a machining program generation device, a numerical control device, a machining system, and a machining program generation method.

Background Art

[0002] Patent Document 1 discloses that in a program creation device that creates an NC (Numerical Control) machining program in which dimensional tolerance data is reflected in shape data of a workpiece, the program creation device includes: a machining target dimension calculation unit that calculates a machining target dimension of the workpiece based on the shape data and the dimensional tolerance data; a shape data deformation processing unit that sets a movement position of a graphic element based on the machining target dimension and the shape data such that a dimension between graphic elements included in the shape data becomes a dimension corresponding to the machining target dimension; and a machining program creation unit that creates an NC machining program using the shape data and the movement position of each graphic element, wherein the shape data deformation processing unit sets the movement position of the graphic element based on position movement information relating to a method of moving the graphic element.

Prior Art Literature

Patent Literature

[0003]

Patent Document 1

Summary of the Invention

Problem to be Solved by the Invention

[0004] However, in Patent Document 1, dimensional tolerance is processed after the shape data of a workpiece is once converted into a two-dimensional shape, and a three-dimensional shape is not directly corrected. For this reason, there is a problem that the work burden on a program creator is heavy, and production efficiency does not improve.

[0005] This disclosure is made in view of the above, and aims to provide a processing program generation device that can reduce the burden on the program creator and improve production efficiency and quality, even when the shape data of the workpiece is defined in three dimensions. [Means for solving the problem]

[0006] To solve the above-mentioned problems and achieve the objective, the machining program generation device in this disclosure generates a numerically controlled machining program based on three-dimensional shape data, including three-dimensional material shape data and three-dimensional product shape data of the workpiece, and tolerance data of the shape data. The machining program generation device includes: a shape data acquisition unit that acquires three-dimensional shape data and tolerance data of the workpiece; a correction value calculation unit that calculates a correction value for each shape element in three-dimensional space using tolerance data linked to each shape element in three-dimensional space of the three-dimensional product shape data; a shape correction unit that corrects the shape elements linked to the tolerance data based on the correction values; and a machining program generation unit that generates a machining program based on the corrected shape elements. The shape correction unit modifies geometric information, including the diameter of the turned surface, which is a shape element to which tolerance data is linked, based on the correction value. It modifies geometric information, including the diameter of the first adjacent surface, based on the first connectivity, which is the connectivity of the first edge, which is the edge between the turned surface and the first adjacent surface adjacent to the turned surface; the second connectivity, which is the connectivity of the second edge, which is the edge between the first adjacent surface and the second adjacent surface adjacent to the first adjacent surface; and the correction value. [Effects of the Invention]

[0007] According to the processing program generation device of this disclosure, even when the shape data of the workpiece is defined in three dimensions, the burden on the program creator can be reduced, resulting in improved production efficiency and quality. [Brief explanation of the drawing]

[0008] [Figure 1] Block diagram showing the configuration of the numerical control device according to the embodiment. [Figure 2] A flowchart showing the procedure for the machining program generation process performed by the machining program generation apparatus according to the embodiment. [Figure 3] This figure shows an example of a product shape corresponding to the product shape data stored in the shape data storage unit of the processing program generation apparatus according to the embodiment. [Figure 4]This figure shows an example of a material shape corresponding to the material shape data stored in the shape data storage unit of the processing program generation device according to the embodiment. [Figure 5] This figure shows another example of a product shape corresponding to the product shape data stored in the shape data storage unit of the processing program generation apparatus according to the embodiment. [Figure 6] This figure shows another example of a material shape corresponding to the material shape data stored in the shape data storage unit of the processing program generation apparatus according to the embodiment. [Figure 7] This figure shows an example of product shape data and material shape data arranged by the shape data arrangement unit of the processing program generation apparatus according to the embodiment. [Figure 8] This figure shows other examples of product shape data and material shape data arranged by the shape data arrangement unit of the processing program generation apparatus according to the embodiment. [Figure 9] This figure shows an example of product shape data, dimensions, and tolerance data arranged by the shape data arrangement unit of the processing program generation apparatus according to the embodiment. [Figure 10] This figure shows another example of product shape data and dimensional and tolerance data arranged by the shape data arrangement unit of the processing program generation apparatus according to the embodiment. [Figure 11] A schematic diagram showing an example of shape data generated by the machining program generation unit of the machining program generation apparatus according to the embodiment. [Figure 12] A schematic diagram showing another example of shape data generated by the machining program generation unit of the machining program generation apparatus according to the embodiment. [Figure 13] This figure shows an example of a list of machining processes in a machining program generated by the machining program generation unit of the machining program generation apparatus according to the embodiment. [Figure 14] A schematic diagram showing an example of shape data generated by the machining program generation unit of the machining program generation apparatus according to the embodiment. [Figure 15] This figure shows an example of a list of machining processes in a machining program generated by the machining program generation unit of the machining program generation apparatus according to the embodiment. [Figure 16]Block diagram showing the configuration of a shape correction unit of a machining program generation device according to an embodiment [Figure 17] Flowchart showing detailed procedures of shape correction performed by a shape correction unit of a machining program generation device according to an embodiment [Figure 18] Flowchart showing detailed procedures of turning surface shape correction performed by a turning surface correction unit of a shape correction unit according to an embodiment [Figure 19] A diagram for explaining processing executed by a turning surface correction unit of a shape correction unit according to an embodiment, which explains acquisition of edge connectivity between a turning surface that is a shape element associated with tolerance data and a surface adjacent to the turning surface [Figure 20] Diagram showing an example of shape correction of a turning surface and an adjacent surface performed by a turning surface correction unit of a shape correction unit according to an embodiment [Figure 21] Diagram showing another example of shape correction of a turning surface and an adjacent surface performed by a turning surface correction unit of a shape correction unit according to an embodiment [Figure 22] Flowchart showing detailed procedures of hole surface shape correction performed by a hole surface correction unit of a shape correction unit according to an embodiment [Figure 23] Diagram for explaining hole surface shape correction processing performed by a hole surface correction unit of a shape correction unit according to an embodiment [Figure 24] Flowchart showing detailed procedures of plane position correction performed by a plane position correction unit of a shape correction unit according to an embodiment [Figure 25] Perspective view for explaining plane position correction processing performed by a plane position correction unit of a shape correction unit according to an embodiment [Figure 26] Plan view for explaining plane position correction processing performed by a plane position correction unit of a shape correction unit according to an embodiment [Figure 27] Plan view for explaining plane position correction processing performed by a plane position correction unit of a shape correction unit according to an embodiment [Figure 28] Plan view for explaining plane position correction processing performed by a plane position correction unit of a shape correction unit according to an embodiment [Figure 29]A flowchart showing the detailed procedure for hole surface position correction performed by the hole surface position correction unit of the shape correction unit according to the embodiment. [Figure 30] A perspective view illustrating the hole surface position correction process performed by the hole surface position correction unit of the shape correction unit according to the embodiment. [Figure 31] Plan view illustrating the hole surface position correction process performed by the hole surface position correction unit of the shape correction unit according to the embodiment. [Figure 32] Plan view illustrating the hole surface position correction process performed by the hole surface position correction unit of the shape correction unit according to the embodiment. [Figure 33] Plan view illustrating the hole surface position correction process performed by the hole surface position correction unit of the shape correction unit according to the embodiment. [Figure 34] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has not been performed. [Figure 35] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has been performed. [Figure 36] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has not been performed. [Figure 37] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has been performed. [Figure 38] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has not been performed. [Figure 39] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has been performed. [Figure 40] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has not been performed. [Figure 41]This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has been performed. [Figure 42] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has not been performed. [Figure 43] This figure shows an example of a machining program generated by the machining program generation unit according to the embodiment, and illustrates the case where tolerance data correction has been performed. [Figure 44] Block diagram showing the hardware configuration of the processing program generation device according to the embodiment. [Modes for carrying out the invention]

[0009] The machining program generation apparatus, numerical control device, machining system, and machining program generation method according to the embodiment will be described in detail below with reference to the drawings.

[0010] Embodiment. Figure 1 is a block diagram showing the configuration of a numerical control device 100 according to an embodiment. The numerical control device 100 is a device that automatically generates a machining program 3 for numerically controlling a machine tool (not shown) and controls the machine tool using the machining program 3.

[0011] The numerical control device 100 includes a machining program generation device 10, an interactive operation processing unit 20, an instruction input unit 30, a display unit 40, and a control unit 50. The numerical control device 100 is mounted on or connected to a machine tool and numerically controls the operation of the machine tool according to the machining program 3. Here, the machining program 3 is used to cut a workpiece from its raw material state and cut out the shape of the machined product. Examples of machine tools include machining centers, lathes, and multi-tasking lathes.

[0012] The machining program generation device 10 is a device that generates a machining program 3 that includes multiple cutting processes for machining a workpiece from a workpiece using numerical control. The machining program generation device 10 generates the machining program 3 based on shape data input to the machining program generation device 10 from outside the numerical control device 100. The shape data is, for example, shape data that the machining program generation device 10 refers to when machining a workpiece, and includes material shape data and product shape data. Tolerance data 2 of the shape data may be included as attribute information of the product shape data.

[0013] The machining program generation device 10 of this embodiment generates a machining program 3 based on product shape data, material shape data, and tolerance data 2. Material shape data is data that defines the material shape, which is the shape of the workpiece before machining. Product shape data is data that defines the product shape, which is the shape of the workpiece after machining. In this embodiment, the material shape data and product shape data are included in the CAD (Computer Aided Design) data 1.

[0014] Tolerance data 2 indicates the tolerance range for the dimensions and position of the shape elements of the product shape data. For example, if the outer diameter is set to "50mm ± 0.2mm", the part is expected to perform as designed as long as its outer diameter is within the range of 49.8mm to 50.2mm. Tolerance data 2 also includes position tolerances, which define the deviation of the part's shape and position from its true position, based on a datum (reference). Tolerance data 2 also includes shape tolerances, directional tolerances, and runout tolerances. In the manufacturing process, control is carried out based on tolerance data 2 to maintain the machining accuracy of the part. Tolerance data 2 may also be expressed as absolute tolerances, relative tolerances, grades, etc.

[0015] The machining program generation device 10 generates a machining program 3 that includes machining unit information (hereinafter referred to as machining unit information) based on material shape data, product shape data placement position, tolerance data 2, work origin, and work coordinate system.

[0016] A machining unit is a machining unit in which continuous machining is performed using the same spindle and the same tool. Machining unit information includes machining data containing information about the machining method, tool data containing information about the tool used for machining and cutting conditions, and shape sequence data containing shape information that defines the machined shape consisting of a single shape. Machining unit information is also data related to the machining process. Examples of machining units include turning units, stepped hole machining units, surface machining units, R-chamfering units, and C-chamfering units. A turning unit is a machining unit in which turning is performed. A stepped hole machining unit is a machining unit in which stepped hole machining (machining of holes with steps) is performed. A surface machining unit is a machining unit in which surface machining is performed. An R-chamfering unit is a machining unit in which R-chamfering is performed. A C-chamfering unit is a machining unit in which C-chamfering is performed. Note that the shape information that defines the machined shape may include information such as the surface roughness of the workpiece.

[0017] Tool information includes the type of tool and its shape. Furthermore, tool information may also include information about the tool holder. Tool holder information includes the type of tool holder and its shape. Cutting conditions refer to the cutting speed, rotational speed, and feed rate used by the machine tool during machining.

[0018] The interactive operation processing unit 20 is an interface between the numerical control device 100 and the operator, and also an interface between the machining program generation device 10 and the operator. The interactive operation processing unit 20 transmits the instruction information entered by the operator via the instruction input unit 30 to the machining program generation device 10. The interactive operation processing unit 20 also displays the instruction information entered by the operator via the instruction input unit 30 on the display unit 40.

[0019] The instruction input unit 30 consists of input devices such as a mouse and keyboard, and receives instruction information from the operator and transmits the instruction information to the interactive operation processing unit 20.

[0020] The display unit 40 is a display device such as an LCD monitor, and displays CAD data 1, tolerance data 2, machining program 3, and instruction information entered by the operator via the instruction input unit 30. The display unit 40 can also display various information related to the processing performed by the numerical control device 100 and the machining program generation device 10.

[0021] The control unit 50 controls the machine tool using the machining program 3 generated by the machining program generation device 10.

[0022] The machining program generation device 10 includes a CAD data input unit 11 as a shape data acquisition unit, a shape data storage unit 12, a shape data arrangement unit 13, a tolerance editing unit 14, a correction value calculation unit 15, a shape correction unit 16, and a machining program generation unit 17.

[0023] The assembly data, product shape data, and material shape data included in the CAD data are input from an external device of the numerical control device 100 to the machining program generation device 10. The assembly data consists of either the product shape data or the material shape data.

[0024] The CAD data input unit 11 receives CAD data 1 and tolerance data 2 input from an external device. The product shape data and material shape data are not limited to CAD data 1, but can be any data that the machining program generation device 10 can interpret. Tolerance data 2 consists of tolerance data corresponding to the shape elements of the product shape data. Tolerance data 2 may also be included in CAD data 1 as attribute information of the product shape data.

[0025] The shape data storage unit 12 stores the product shape data and material shape data entered into the CAD data input unit 11. The product shape data includes data on the product shape, which is the finished shape of the machined part, and material information indicating the material of the product (material). As mentioned above, the material shape data is data indicating the shape of the workpiece before processing, and specifically, examples include cylindrical shapes or rectangular parallelepiped shapes that enclose the product shape. However, the material shape does not necessarily have to enclose the product shape, and may be a shape in which any face of the product shape has been thickened, or a shape in which the holes of the product shape have been removed. The material shape data may also include material information indicating the material of the product (material).

[0026] The shape data placement unit 13 has the function of placing the product shape data and material shape data stored in the shape data storage unit 12, as well as the work origin and work coordinate system. The material shape can be placed so as to enclose the product shape, or so as to overlap a part of the product shape with the material shape. The product shape data and material shape data are stored in the shape data storage unit 12 together with the placement data. The placement data indicates the placement position of the product shape and the placement position of the material shape.

[0027] The workpiece origin is a point that serves as the reference for generating the machining program, arbitrarily set by the person creating the machining program 3. For example, it may be located at the center or endpoint of the product shape data or material shape data. The workpiece coordinate system is a coordinate system set with the workpiece origin as its origin. In turning operations, the workpiece coordinate system is positioned so that its Z-axis coincides with the main spindle. In machining center operations, the workpiece origin and workpiece coordinate system are stored in the shape data storage unit 12 along with the positioning data.

[0028] The tolerance editing unit 14 displays the tolerance data 2 entered by the worker on the display unit 40. The worker modifies the tolerance data 2 as needed.

[0029] The correction value calculation unit 15 calculates the correction value by referring to the tolerance data 2 linked to the shape elements of the product shape data.

[0030] The shape correction unit 16 corrects the associated shape elements based on the correction values ​​calculated by the correction value calculation unit 15.

[0031] The machining program generation unit 17 generates a machining program 3 based on the product shape data and material shape data stored in the shape data storage unit 12, the product shape data and material shape data corrected by the shape correction unit 16, the workpiece origin, and the workpiece coordinate system.

[0032] Next, the operation of the numerical control device 100 will be described. The operation of the numerical control device 100 includes the machining program generation process performed by the machining program generation device 10. Figure 2 is a flowchart showing the procedure of the machining program generation process performed by the machining program generation device 10 according to this embodiment.

[0033] In step S1, the CAD data input unit 11 reads the CAD data 1 of the product shape and the tolerance data 2 from a storage area (not shown), and stores the CAD data 1 of the product shape and the tolerance data 2 as product shape data and tolerance data in the shape data storage unit 12.

[0034] In step S2, the CAD data input unit 11 generates a material shape based on the product shape data stored in the shape data storage unit 12, sets it as material shape data, and stores it. If the CAD data input unit 11 reads the CAD data 1 of the material shape from a storage area not shown, the shape data storage unit 12 stores the CAD data 1 of the material shape read by the CAD data input unit 11 as material shape data.

[0035] Figure 3 is a diagram showing an example of a product shape corresponding to the product shape data stored in the shape data storage unit 12 of the processing program generation device 10 according to the embodiment. Figure 4 is a diagram showing an example of a material shape corresponding to the material shape data stored in the shape data storage unit 12 of the processing program generation device 10 according to the embodiment. In Figure 3, product shape SA1 is shown as an example of a product shape, and in Figure 4, material shape SB2 is shown as an example of a material shape.

[0036] Figure 5 shows another example of a product shape corresponding to the product shape data stored in the shape data storage unit 12 of the processing program generation device 10 according to the embodiment. Figure 6 shows another example of a material shape corresponding to the material shape data stored in the shape data storage unit 12 of the processing program generation device 10 according to the embodiment. Figure 5 shows product shape SA3, which is an example of a product shape, and Figure 6 shows material shape SB4, which is an example of a material shape.

[0037] In step S3, the shape data placement unit 13 places the product shape and material shape. That is, in step S3, the shape data placement unit 13 generates placement data for the product shape and material shape. In other words, as described above, the shape data placement unit 13 generates placement data indicating the placement positions of the product shape and the material shape.

[0038] Next, the shape data placement unit 13 places the product shape data and material shape data based on the generated placement data. At least one of the product shape data and material shape data may be placed at any position by the operator using the interactive operation processing unit 20, the instruction input unit 30, and the display unit 40.

[0039] In step S4, the shape data placement unit 13 places the work origin and work coordinate system at an arbitrary position based on either the placed product shape or material shape, and stores the coordinate values ​​of the work origin and the direction vectors of each axis of the work coordinate system. The work origin and work coordinate system can be placed at any position and in any direction by the operator using the interactive operation processing unit 20, the instruction input unit 30, and the display unit 40. If a work coordinate system is used, it is possible to omit this step in order to store the coordinate values ​​of the work origin and the direction vectors of each axis of the work coordinate system.

[0040] Figure 7 shows an example of product shape data and material shape data arranged by the shape data arrangement unit 13 of the processing program generation device 10 according to the embodiment. In Figure 7, product shape SA1, which is an example of a shape shown in the product shape data, material shape SB2, which is an example of a shape shown in the material shape data, and work coordinate system AX1 are shown. The product is formed by turning the material. Therefore, in Figure 7, the product shape SA1 is shown as being arranged inside the material shape SB2.

[0041] Figure 8 shows another example of product shape data and material shape data arranged by the shape data arrangement unit 13 of the processing program generation device 10 according to the embodiment. In Figure 8, product shape SA3, which is an example of a shape shown in the product shape data, material shape SB4, which is an example of a shape shown in the material shape data, and work coordinate system AX2 are shown. Products are formed by performing surface machining, chamfering, drilling, etc. on the material. Therefore, Figure 8 shows a situation in which product shape SA3 is arranged inside material shape SB4, and further arranged so that their bottom surfaces coincide.

[0042] In step S5, the tolerance editing unit 14 edits the dimension and tolerance data 2. Specifically, it links the dimension and tolerance data to shape elements related to the product shape and displays them on the display unit 40, allowing the operator to edit them as needed using the interactive operation processing unit 20, the instruction input unit 30, and the display unit 40. If editing is not necessary, editing is not required. In addition, if the same dimension and related dimensions are attached in multiple locations, and the tolerances for each are calculated to be outside the acceptable range, errors may occur in the tolerance data, such as inconsistencies in the tolerance data. In such cases, the tolerance editing unit 14 prompts the operator to correct the tolerance data, allowing the operator to edit the tolerance data.

[0043] Figure 9 shows an example of product shape data and dimensional and tolerance data arranged by the shape data arrangement unit 13 of the machining program generation device 10 according to the embodiment. Figure 10 shows another example of product shape data and dimensional and tolerance data arranged by the shape data arrangement unit 13 of the machining program generation device 10 according to the embodiment. In Figure 9, dimensional and tolerance data has been added to product shape SA1. In Figure 10, dimensional and tolerance data has been added to product shape SA4.

[0044] In step S6, the correction value calculation unit 15 calculates correction values ​​for the dimensions of each shape element based on the tolerance data. Specifically, it calculates the correction value as an intermediate value between the maximum tolerance and the minimum tolerance. In the case of progressive dimensions and tolerance data, the correction value is calculated by accumulating the correction values. Furthermore, if the tolerance is indicated by grade, the correction value is calculated by using the intermediate value of the tolerance width corresponding to the dimension. The correction value does not have to be an intermediate value, as long as it is within the tolerance width, and the operator may specify any correction value.

[0045] In step S7, the shape correction unit 16 corrects the shape elements of the product shape and surrounding shape elements linked to the tolerance data based on the correction values ​​calculated by the correction value calculation unit 15.

[0046] In step S8, the machining program generation unit 17 unfolds the machining shape that indicates the area (shape) to be machined. Specifically, the machining program generation unit 17 generates shape data based on the product shape data, material shape data, work origin, and work coordinate system stored in the shape data storage unit 12. Furthermore, the machining program generation unit 17 generates turning data, surface machining data, line machining data, and hole machining data from the shape data. The machining shape corresponds to the shape of the difference between the product shape data and the material shape data. The shape data is data of the shape (area) to be machined on the material. Turning data is data indicating the area to be turned, surface machining data is data indicating the area to be surface machined, line machining data is data indicating the area to be line machined, and hole machining data is data indicating the area to be hole machined.

[0047] Next, the machining program generation unit 17 assigns machining units to the generated machining shapes. That is, the machining program generation unit 17 determines the machining method, tool, and cutting conditions for the generated machining shapes. The machining program generation unit 17 generates machining unit information by assigning the information on the machining method, tool, and cutting conditions to the machining shapes. In this way, the machining program generation unit 17 generates a machining program.

[0048] Based on the above, the machining program generation device 10 completes the machining program generation process according to the procedure shown in Figure 2.

[0049] Figure 11 is a schematic diagram showing an example of shape data generated by the machining program generation unit 17 of the machining program generation device 10 according to the embodiment. Figure 12 is a schematic diagram showing another example of shape data generated by the machining program generation unit 17 of the machining program generation device 10 according to the embodiment. In Figure 11, turning hole machining shape SH1 and turning machining shapes SH2, SH3, SH4 are shown as examples of shapes indicated by the turning machining shape data for the front side process. In Figure 12, turning machining shapes SH5, SH6, SH7 are shown as examples of shapes indicated by the turning machining shape data for the back side process. The process by which the machining program generation unit 17 generates the machining program 3 corresponds to the process in step S8 of Figure 2.

[0050] Figure 13 is a diagram showing an example of a list of machining steps in a machining program 3 generated by the machining program generation unit 17 of the machining program generation device 10 according to the embodiment. The front-side machining step HD1 of the machining program 3 shown in Figure 13 includes machining unit Uno1, machining unit Uno2, machining unit Uno3, and machining unit Uno4.

[0051] "Uno1. Turning Drill - Front View...SH1" indicates that the turning hole machining shape SH1 is machined from the front side as a turning drill unit. "Uno2. Turning End Face - Front View...SH2" indicates that the turning machining shape SH2 is machined from the front side as a turning end face unit. "Uno3. Turning Bar Stock - Outer Diameter...SH3" indicates that the turning machining shape SH3 is machined from the outer diameter side as a turning bar stock unit. "Uno4. Turning Bar Stock - Inner Diameter...SH4" indicates that the turning machining shape SH4 is machined from the inner diameter side as a turning bar stock unit.

[0052] The rear-side machining process HD2 shown in Figure 13 includes machining units Uno5, Uno6, and Uno7, each of which performs machining from the rear side. The first and second spindles are turning spindles and are positioned opposite each other.

[0053] "Uno5. Turned end face - back side...SH5" indicates that the turned shape SH5 is machined from the back side as a turned end face unit. "Uno6. Turned bar stock - outer diameter...SH6" indicates that the turned shape SH6 is machined from the outer diameter side as a turned bar stock unit. "Uno7. Turned bar stock - inner diameter...SH7" indicates that the turned shape SH7 is machined from the inner diameter side as a turned bar stock unit. Note that in Uno5 to Uno6, the material that was held and machined on the first spindle is then held again on the second spindle and machined from the back side.

[0054] The first and second spindles are both turning spindles; one is called the main spindle and the other the sub-spindle. The first and second spindles are positioned opposite each other. In the case of a machine tool without a second spindle, after machining the front side, the workpiece is removed from the first spindle, its orientation is reversed, and then it is gripped again by the first spindle for machining the back side.

[0055] A turning drill unit is a machining unit that uses a turning drill to create a hole in the center of the material. A turning end face unit is a machining unit that removes protruding parts from the front or back end face of the material. A turning bar unit is a machining unit that uses a turning tool to turn the outer circumference, inner circumference, front, or back of a round bar material.

[0056] Figure 14 is a schematic diagram showing an example of shape data generated by the machining program generation unit 17 of the machining program generation apparatus 10 according to the embodiment. The upper left, upper left middle, and upper right middle figures of Figure 14 schematically show the surface machining shapes SH11, SH12, and SH13. The upper right and lower left figures of Figure 14 schematically show the hole machining shapes SH14, SH15, SH16, SH17, SH18, and SH19. The lower left middle, lower right middle, and lower right figures of Figure 14 schematically show the chamfer machining shapes SH20, SH21, and SH22. The process by which the machining program generation unit 17 generates the machining program 3 corresponds to the process in step S8 of Figure 2.

[0057] Figure 15 shows an example of a list of machining processes in a machining program 3 generated by the machining program generation unit 17 of the machining program generation device 10 according to the embodiment. Machining process HD1 of machining program 3 includes machining units Uno1 to Uno8.

[0058] "Uno1. Face mill...SH11" indicates that the face mill unit will perform surface machining on shape SH11. "Uno2. End mill crest...SH12" indicates that the end mill crest unit will perform surface machining on shape SH12. "Uno3. Pocket mill...SH13" indicates that the pocket mill unit will perform surface machining on shape SH13. "Uno4. Sealed hole...SH14, SH15, SH16, SH17" indicates that the seated hole unit will perform seated hole machining on shapes SH14, SH15, SH16, SH17. "Uno5. Drilled hole...SH18, SH19" indicates that the drilled hole unit will perform drilled hole machining on shapes SH18, SH19. "Uno6. Chamfering...SH20" indicates that the chamfering unit will perform chamfering on shape SH20. "Uno7. Inside chamfer...SH21" indicates that the inside chamfer unit will chamfer the chamfer shape SH21. "Uno8. Outside chamfer...SH22" indicates that the outside chamfer unit will chamfer the chamfer shape SH22.

[0059] The face mill unit has a configuration that processes the entire contour of a predefined shape using a face mill tool. During processing, the tool is moved so that it protrudes from the outer circumference of the defined shape by a distance equivalent to or greater than the diameter of the tool being used, thereby processing the area including the outer circumference of the contour.

[0060] The end mill crest unit has a configuration that uses an end mill tool to machine a predefined shape while preserving the inner shape contour. Here, the outer shape region is defined as the pond shape, and the inner shape region is defined as the crest shape. For machining the pond shape, the tool is extended outward by a distance equivalent to the diameter of the tool used, but the tool is not extended outward for machining the crest shape contour.

[0061] The pocket mill unit has a configuration that uses an end mill tool to machine a predetermined shape into a pocket shape.

[0062] The seated hole unit uses an end mill or drill to machine a stepped hole at a defined location.

[0063] The drilling unit uses a drill to create holes at defined locations.

[0064] The chamfering unit uses a chamfering cutter to process the outside of a defined shape so that it becomes chamfered.

[0065] The chamfering unit uses a chamfering cutter to process the inside of a defined shape so that it becomes chamfered.

[0066] Figure 16 is a block diagram showing the configuration of the shape correction unit 16 of the machining program generation device 10 according to the embodiment. The shape correction unit 16 corrects the shape based on correction values ​​calculated using tolerance data.

[0067] The shape correction unit 16 includes a correction value acquisition unit 21, a turned surface correction unit 22, a hole surface correction unit 23, a plane position correction unit 24, a hole surface position correction unit 25, and a shape check unit 26.

[0068] The correction value acquisition unit 21 acquires the correction value calculated by the correction value calculation unit 15. As described above, the correction value calculation unit 15 refers to the tolerance data 2 linked to the shape elements of the product shape data and calculates the correction value of the shape elements.

[0069] The turning surface correction unit 22 corrects the shape elements that constitute the turning surface. The turning surface correction unit 22 corrects the turning surface shape data of the turning surface based on the turning surface shape data of the product shape data and the correction value acquired by the correction value acquisition unit 21. Specifically, it corrects the diameter value of the turning surface.

[0070] The hole surface correction unit 23 corrects the shape element that is the hole surface. The hole surface correction unit 23 corrects the hole surface machining shape data of the hole surface based on the hole surface machining shape data of the product shape data and the correction value acquired by the correction value acquisition unit 21. Specifically, it corrects the diameter value of the hole surface.

[0071] The plane position correction unit 24 corrects the position and orientation of the shape elements, which are planes. The plane position correction unit 24 corrects the plane based on the position and orientation of the hole surface of the plane in the product shape data and the correction value acquired by the correction value acquisition unit 21. Specifically, it corrects the position and orientation of the plane.

[0072] The hole surface position correction unit 25 corrects the position and orientation of the shape element which is the hole surface. The hole surface position correction unit 25 corrects the hole surface based on the position and orientation of the hole surface in the product shape data and the correction value acquired by the correction value acquisition unit 21. Specifically, it corrects the position and orientation of the hole surface.

[0073] The shape checking unit 26 checks whether or not there are any disappearances of surfaces or inconsistencies in the corrected shape.

[0074] Figure 17 is a flowchart showing the detailed procedure for shape correction performed by the shape correction unit 16 of the machining program generation device 10 according to the embodiment. The process in Figure 17 corresponds to the process in step S7 of Figure 2.

[0075] In step S11, the correction value acquisition unit 21 acquires the correction value calculated by the correction value calculation unit 15 and the shape element to which the tolerance data that forms the basis of the correction value is linked.

[0076] In step S12, if the shape element is a turned surface and the associated tolerance data is the diameter dimension of the turned surface, the shape correction unit 16 changes the diameter of the turned surface according to the correction value and recalculates and corrects the intersection lines and intersection points with adjacent surfaces.

[0077] In step S13, if the shape element is a hole surface and the associated tolerance data is the diameter dimension of the hole surface, the shape correction unit 16 changes the diameter of the hole surface according to the correction value and recalculates and corrects the intersection lines and intersection points with adjacent surfaces.

[0078] In step S14, if the shape element is a plane and the associated tolerance data is a plane dimension, the shape correction unit 16 changes the position of the plane according to the correction value and recalculates and corrects the intersection lines and intersection points with adjacent surfaces.

[0079] In step S15, if the shape element is a hole surface and the associated tolerance data is the positional dimension of the hole surface, the shape correction unit 16 changes the position of the hole surface according to the correction value and recalculates and corrects the intersection lines and intersection points with adjacent surfaces.

[0080] Figure 18 is a flowchart showing the detailed procedure for correcting the shape of the turned surface performed by the turned surface correction unit 22 of the shape correction unit 16 according to the embodiment. The process in Figure 18 corresponds to the process in step S12 of Figure 17.

[0081] In step S21, the turning surface correction unit 22 acquires the surface adjacent to the turning surface, which is a shape element to which tolerance data is linked. In addition, in the case of shapes in which the turning surface is adjacent to a tapered surface via a chamfered or rounded chamfered surface, the unit may acquire the chamfered or rounded chamfered surface adjacent to the turning surface, and the surface two adjacent to that surface (chamfered or rounded chamfered surface).

[0082] Figure 19 is a diagram illustrating the process performed by the turning surface correction unit 22 of the shape correction unit 16 according to the embodiment, and illustrates the acquisition of edge connectivity between a turning surface, which is a shape element to which tolerance data is linked, and an adjacent surface. In step S22, the turning surface correction unit 22 acquires the connectivity of edge e between the turning surface, which is a shape element to which tolerance data is linked, and an adjacent surface. In some cases, the connectivity of edge e between an adjacent surface and a surface two steps away may be acquired. The connectivity of edge e is acquired by the following procedure. First, the tangent vector V1 of edge e, the normal vector V2 of the turning surface at edge e, and the normal vector V3 of the adjacent surface at edge e are determined. Next, the binormal vector V4 is obtained from the cross product of the tangent vector V1 and the normal vector V2. If the normal vector V2 and the normal vector V3 are parallel, the turning surface and the adjacent surface are smoothly connected by a tangential connection. If the normal vector V2 and normal vector V3 are non-parallel, and the dot product of normal vector V2 and binormal vector V4 is negative, they are connected in a convex manner; if the dot product is positive, they are connected in a concave manner.

[0083] In step S23, the turning surface correction unit 22 acquires geometric information of the surface adjacent to the turning surface, which is a shape element to which tolerance data is linked. Specifically, it acquires geometric information indicating whether the adjacent surface is a cylindrical surface, a conical surface, an annular surface, or a plane, as well as chamfer information. The chamfer information is that if the adjacent surface is a conical surface, composed of two parallel edges perpendicular to the central axis of the conical surface, the distance between the two edges is less than or equal to a preset maximum chamfer amount, and the vertex angle of the conical surface is 90 degrees, then it becomes a C-chamfered surface. It may also become a C-chamfered surface even if the vertex angle of the conical surface is not 90 degrees. Furthermore, if the adjacent surface is an annular surface, composed of two parallel edges perpendicular to the central axis of the annular surface, the distance between the two edges is less than or equal to a preset maximum chamfer amount, and the small diameter angle of the adjacent surface is 90 degrees, then it becomes an R-chamfered surface. It may also become an R-chamfered surface even if the small diameter angle of the adjacent surface is not 90 degrees.

[0084] In step S24, the turning surface correction unit 22 modifies the geometric information of the turning surface, which is a shape element to which tolerance data is linked, according to the correction value, and adjusts the diameter of the turning surface. In addition, the geometric information of adjacent surfaces is also modified according to the correction value based on the connectivity of the edges between adjacent surfaces and the connectivity of the edges between adjacent surfaces and the two adjacent surfaces, and the diameter is adjusted. Specifically, the geometric information of adjacent surfaces is also modified if the turning surface and adjacent surfaces are smoothly connected by tangential connections based on the edge connectivity obtained in step S22, if a step is created by changing the diameter of the turning surface, or if the axial length of the turning surface cannot be changed. After modifying the geometric information of the turning surface and adjacent surfaces, the intersection lines and intersection points with further adjacent surfaces are recalculated and corrected based on the modified geometric information.

[0085] Figure 20 shows an example of shape correction of a turned surface and an adjacent surface performed by the turned surface correction unit 22 of the shape correction unit 16 according to the embodiment. The left side of Figure 20 shows a cross-sectional view including the turned surface α1, the adjacent R-chamfered surface β1, and the end surface β2, where the turned surface and the adjacent surface are smoothly connected by tangential connections. The middle side of Figure 20 shows the case where the geometric information (diameter) of the turned surface α1 is changed, and this change in geometric information causes a step d1. Therefore, as shown in the right side of Figure 20, the geometric information of the R-chamfered surface β1 is changed to eliminate the step d1.

[0086] Figure 21 shows another example of shape correction of the turned surface and adjacent surface performed by the turned surface correction unit 22 of the shape correction unit 16 according to the embodiment. The upper part of Figure 21 shows a cross-sectional view including the turned surface α2, the adjacent surface, the chamfered surface β3, and the end face β4. The middle part of Figure 21 shows the case where the geometric information (diameter) of the turned surface α2 is changed as shown by the dashed line K1, and this change in geometric information increases the width of the chamfered surface β3 by Δ1. Therefore, as shown in the lower part of Figure 21, the geometric information (diameter) of the turned surface α2 is changed as shown by the dashed line K2, and the geometric information of the chamfered surface β3 is changed as shown by the dashed line K3, so that the width of the chamfered surface β3 does not change. However, if the operator determines that it is not a problem even if the width of the chamfered surface β3 increases, only the turned surface α2 is corrected as shown in the middle part of Figure 21.

[0087] Figure 22 is a flowchart showing the detailed procedure for correcting the shape of the hole surface performed by the hole surface correction unit 23 of the shape correction unit 16 according to the embodiment. The process in Figure 22 corresponds to the process in step S13 of Figure 17.

[0088] In step S31, the hole surface correction unit 23 acquires the hole surfaces (all hole surfaces constituting the hole), which are shape elements to which tolerance data is linked. Specifically, the hole surfaces include cylindrical and conical surfaces, and as hole surfaces constituting the hole, hole surfaces adjacent to the hole surface to which tolerance data is linked, or adjacent via a plane, are also to be acquired.

[0089] In step S32, the hole surface correction unit 23 acquires geometric information for all hole surfaces that make up the hole.

[0090] In step S33, the hole surface correction unit 23 modifies the geometric information of the hole surface, which is a shape element linked to tolerance data, according to the correction value, and adjusts the diameter and depth. If necessary, it also modifies the geometric information of other hole surfaces constituting the hole according to the correction value, and adjusts their diameter and depth.

[0091] Figure 23 illustrates the hole surface shape correction process performed by the hole surface correction unit 23 of the shape correction unit 16 according to the embodiment. The hole has a chamfered surface Q1, a hole surface Q2, and a hole bottom surface Q3. The chamfered surface Q1 and the hole bottom surface Q3 are composed of conical surfaces, and the hole surface Q2 is composed of a cylindrical surface. The leftmost figure in Figure 23 shows the state before correction of the hole. The second figure from the left in Figure 23 shows an example of correcting the hole diameter by a positive value. The third figure from the left in Figure 23 shows an example of correcting the hole diameter by a negative value. The second figure from the right in Figure 23 shows an example of correcting the hole diameter and hole depth by positive values. The rightmost figure in Figure 23 shows an example of correcting the hole diameter and hole depth by negative values. If only the hole surface Q2 is adjusted, a step may occur, or the chamfer amount and hole bottom angle may change. Therefore, it is necessary to adjust not only the hole surface but also the chamfered surface and hole bottom surface so that the chamfer amount and hole bottom angle of the hole remain unchanged.

[0092] Figure 24 is a flowchart showing the detailed procedure for plane position correction performed by the plane position correction unit 24 of the shape correction unit 16 according to the embodiment. The process in Figure 24 corresponds to the process in step S14 of Figure 17.

[0093] In step S41, the plane position correction unit 24 acquires a reference plane when correcting two planes, which are shape elements to which tolerance data is linked. Specifically, the tolerance data related to plane position correction is correction data for the dimension between the two planes, and the tolerance data for plane position correction is linked to the two planes.

[0094] Determination of the reference plane based on whether or not a datum is specified: If either of the two planes is designated as a datum, the plane designated as a datum becomes the reference plane, its position is fixed, and the position of the plane not designated as a datum is corrected. If both planes are designated as datums, the reference plane and the plane to be corrected are determined based on the alphabetical order of the datum symbols.

[0095] Determining the reference plane when no datum is specified: If neither plane is designated as a datum, the plane on which a datum-designated face exists becomes the reference plane by following the progressive tolerance data. If both planes are designated as datums by following the progressive tolerance data, the reference plane and the plane to be corrected are determined based on the alphabetical order of the datum symbols. In the case of a turned end face that is not designated as a datum, the front or back turned end face becomes the reference and is treated the same as a face that is designated as a datum. Furthermore, the front turned end face takes precedence as the datum plane over the back turned end face as the reference plane.

[0096] In step S42, the plane position correction unit 24 acquires the plane adjacent to the plane to be corrected from among two planes that are shape elements to which tolerance data is linked. Furthermore, in the case of shapes such as one in which the plane to be corrected is adjacent to a tapered surface via a chamfered or rounded surface, the unit may acquire two more adjacent planes that are adjacent to the adjacent plane.

[0097] In step S43, the plane position correction unit 24 acquires the connectivity of the edges between the plane to be corrected and the adjacent plane, which is one of two planes that are shape elements to which tolerance data is linked. The specific method is the same as in step S22 in Figure 18. In addition, in the case of shapes in which the plane to be corrected is adjacent to a tapered surface via a chamfered or rounded chamfered surface, the connectivity of the edges between the adjacent surface and the two adjacent surfaces may also be acquired.

[0098] In step S44, the plane position correction unit 24 acquires geometric information of the plane adjacent to the plane to be corrected, from among the two planes which are shape elements to which tolerance data is linked. Specifically, as explained in step S23 of Figure 18, it acquires geometric information indicating whether the adjacent plane is a cylindrical plane, a conical plane, an annular plane, etc., and chamfer information. In this case, the chamfer information is that if the plane is composed of two parallel edges, the distance between the two edges is less than or equal to a preset maximum chamfer amount, and the angle between the normal vector of the plane and the normal vector of the adjacent plane is 45 degrees, then it is a C-chamfered plane. It may also be a C-chamfered plane even if the angle is not 45 degrees. Furthermore, if the adjacent plane is a conical or annular plane, and the plane is composed of two parallel edges, the distance between the two edges is less than or equal to a preset maximum chamfer amount, and the diameter angle is 90 degrees if the adjacent plane is a conical plane, or the small diameter angle is 90 degrees if it is an annular plane, then it is an R-chamfered plane. Even if the diameter angle or small diameter angle of adjacent surfaces is not 90 degrees, a chamfered surface with an R-shape may still be formed.

[0099] In step S45, the plane position correction unit 24 adjusts the position of the plane by changing the geometric information of the plane to be corrected, one of the two planes which are shape elements linked to tolerance data, according to the correction value. In addition, the geometric information of the adjacent plane is also changed according to the correction value based on the connectivity of the edge between it and the adjacent plane, and the connectivity of the edge between the adjacent plane and the plane two steps away, and the position of the adjacent plane is adjusted. Specifically, the geometric information of the adjacent plane is also changed if, based on the connectivity of the edge obtained in step S43, the plane and the adjacent plane are smoothly connected by a tangential connection, if changing the position of the plane would cause a step, or if the axial length of the plane cannot be changed. After changing the geometric information of the plane and the adjacent plane, the intersection lines and intersection points with further adjacent planes are recalculated and corrected based on the changed geometric information.

[0100] Figure 25 is a perspective view illustrating the planar position correction process performed by the planar position correction unit 24 of the shape correction unit 16 according to the embodiment. Figure 26 is a plan view illustrating the planar position correction process performed by the planar position correction unit 24 of the shape correction unit 16 according to the embodiment. Figure 27 is a plan view illustrating the planar position correction process performed by the planar position correction unit 24 of the shape correction unit 16 according to the embodiment. Figure 28 is a plan view illustrating the planar position correction process performed by the planar position correction unit 24 of the shape correction unit 16 according to the embodiment.

[0101] Figures 25 to 28 show a rectangular parallelepiped product shape SA4 having rounded rectangular pocket holes SH13. Datums A and B are specified for product shape SA4. Figure 25 is a perspective view of product shape SA4, and Figure 26 is a plan view of product shape SA4. Figure 27 shows the case where the position of the pocket holes SH13 is corrected. In Figures 25 and 26, for the pocket holes SH13, which are shape elements to which tolerance data is linked, the planes designated as datums A and B become the reference planes, and the positions of the planes G1, G2, G3, and G4, which are not designated as datums, are corrected as shown in planes G1', G2', G3', and G4' in Figure 27. Due to this correction, steps are created at the corners of each plane G1', G2', G3', and G4', as shown in Figure 27. Therefore, as shown in Figure 28, the positions of the R-chamfered surfaces, which are adjacent to each of the planes G1', G2', G3', and G4', are corrected to prevent any steps from occurring.

[0102] Figure 29 is a flowchart showing the detailed procedure for hole surface position correction performed by the hole surface position correction unit 25 of the shape correction unit 16 according to the embodiment. The process in Figure 29 corresponds to the process in step S15 of Figure 17.

[0103] In step S51, the hole surface position correction unit 25 acquires a reference plane from among the plane and hole surface, which are shape elements to which tolerance data is linked. Specifically, the tolerance data related to hole surface position correction is correction data for the dimension between the plane and the hole surface, and the plane and the hole surface are linked to this tolerance data.

[0104] In step S52, the hole surface position correction unit 25 acquires the hole surface from among the plane and hole surface, which are shape elements to which tolerance data is associated.

[0105] In step S53, the hole surface position correction unit 25 acquires all hole surfaces adjacent to the hole surface, which is a shape element to which tolerance data is linked. In the case of a simple hole, it consists of three surfaces: the conical surface which is the chamfered edge of the hole, the cylindrical surface which is the hole surface, and the conical surface which is the bottom surface of the hole. In the case of a complex hole, such as a seated hole or a stepped hole, it consists of even more surfaces. In this step, all hole surfaces that make up a single hole are acquired.

[0106] In step S54, the hole surface position correction unit 25 adjusts the position of all hole surfaces by modifying the geometric information of the hole surface to be corrected and all hole surfaces constituting the hole, using the plane as the reference, based on the correction value, among the plane and hole surface which are shape elements to which tolerance data is linked.

[0107] Figure 30 is a perspective view illustrating the hole surface position correction process performed by the hole surface position correction unit 25 of the shape correction unit 16 according to the embodiment. Figure 31 is a plan view illustrating the hole surface position correction process performed by the hole surface position correction unit 25 of the shape correction unit 16 according to the embodiment. Figure 32 is a plan view illustrating the hole surface position correction process performed by the hole surface position correction unit 25 of the shape correction unit 16 according to the embodiment. Figure 33 is a plan view illustrating the hole surface position correction process performed by the hole surface position correction unit 25 of the shape correction unit 16 according to the embodiment.

[0108] Figures 30 to 33 show a rectangular parallelepiped product shape SA4 having a machined hole shape SH14, which is a through hole with a seat. Datum A and datum B are specified for product shape SA4. Figure 30 is a perspective view of product shape SA4, and Figure 31 is a plan view of product shape SA4. Figure 32 shows the case where the position of the machined hole shape SH14 is corrected. In Figures 30 and 31, the dimensions from datum A and datum B are specified for the machined hole shape SH14, which is a shape element to which tolerance data is linked. In Figure 32, the center position of the hole in the machined hole shape SH14 is corrected based on the tolerance data, and this correction causes a discrepancy between the center position of the hole and the center position of the outer seat hole. Therefore, as shown in Figure 33, the geometric information of all hole surfaces of the machined hole shape SH14 is changed according to the correction value, and the position of all hole surfaces is adjusted. This eliminates the discrepancy between the center position of the hole and the center position of the outer seat hole, as shown in Figure 33.

[0109] Figure 34 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has not been performed. Figure 35 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has been performed. Figures 34 and 35 show a machining program 3 that generates shape data for the outer diameter unit of a turned bar material consisting of a turned shape SH3 (see Figure 11) in the product shape SA1 shown in Figure 9. Comparing Figure 34 and Figure 35, in Figure 35, the values ​​of the endpoint-X and endpoint-Z, which indicate the coordinates of the machined shape, have been corrected by the tolerance data.

[0110] Figure 36 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has not been performed. Figure 37 shows another example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has been performed. Figures 36 and 37 show a machining program 3 that generates shape data for the outer diameter unit of a turned bar stock consisting of a turned shape SH6 (see Figure 12) in the product shape SA1 shown in Figure 9. Comparing Figure 36 and Figure 37, in Figure 37, the values ​​of the start point-X, start point-Z, end point-X, and end point-Z, which indicate the coordinates of the machined shape, have been corrected by the tolerance data.

[0111] Figure 38 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has not been performed. Figure 39 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has been performed. Figures 38 and 39 show a machining program 3 that generates shape data for an end mill thread unit consisting of a surface machining shape SH12 (see Figure 14) in the product shape SA4 shown in Figure 10. Comparing Figure 38 and Figure 39, in Figure 39, the values ​​of X and Y, which indicate the position coordinates of the surface machining shape SH12, and I and J, which indicate the center coordinates of the arc, are corrected by tolerance data, respectively.

[0112] Figure 40 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has not been performed. Figure 41 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has been performed. Figures 40 and 41 show a machining program 3 that generates shape data for a seated hole unit consisting of hole machining shapes SH14, SH15, SH16, SH17 (see Figure 14) in the product shape SA4 shown in Figure 10. Comparing Figure 40 and Figure 41, in Figure 41, the X and Y values ​​indicating the position coordinates for hole machining are corrected according to the tolerance data, respectively.

[0113] Figure 42 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has not been performed. Figure 43 shows an example of a machining program 3 generated by the machining program generation unit 17 according to the embodiment, and is a diagram showing the case where tolerance data correction has been performed. Figures 42 and 43 show a machining program 3 that generates shape data for a desurface unit consisting of a chamfered shape SH20 (see Figure 14) in the product shape SA4 shown in Figure 10. Comparing Figure 42 and Figure 43, in Figure 43, the values ​​of X and Y, which indicate the position coordinates of the surface machining shape, and I and J, which indicate the center coordinates of the arc, are corrected by tolerance data, respectively.

[0114] As described above, the machining program generation device 10 of the embodiment generates a numerically controlled machining program 3 based on three-dimensional shape data, including three-dimensional material shape data and three-dimensional product shape data of a workpiece, and tolerance data 2 of the shape data. The device comprises a shape data acquisition unit that acquires three-dimensional shape data and tolerance data 2 of a workpiece, a correction value calculation unit 15 that calculates correction values ​​for each shape element in three-dimensional space using tolerance data linked to each shape element in three-dimensional space of the three-dimensional product shape data, a shape correction unit 16 that corrects the shape elements linked to the tolerance data based on the correction values, and a machining program generation unit 17 that generates a machining program 3 based on the corrected shape elements. Therefore, it is possible to directly correct the corresponding three-dimensional shape parts according to the three-dimensional shape data and tolerance data, and efficiently generate a machining program 3 that reflects the tolerance data. Even when the shape data of a workpiece is defined in three dimensions, the burden on the program creator can be reduced. This improves production efficiency and quality.

[0115] Furthermore, according to the machining program generation device 10 of this embodiment, by correcting the corresponding three-dimensional shape part according to the tolerance data, the accumulated tolerance data can be efficiently corrected not only for that part but also for all machining programs 3 related to that part, thereby reducing the burden on the program creator. This improves production efficiency and quality.

[0116] Furthermore, according to the machining program generation device 10 of this embodiment, by correcting the corresponding three-dimensional shape portion according to tolerance data, appropriate dimensions and positions are ensured for all machining program types 3, including turning, drilling, planar machining, line machining, and curved surface machining, not just for a single machining type, thereby improving dimensional accuracy and positional accuracy. This leads to smoother machining and product assembly, and improved production efficiency. It also enables cost reduction and shorter delivery times.

[0117] Furthermore, according to the machining program generation device 10 of the embodiment, when performing a correction to a three-dimensional machining shape according to tolerance data, the shape correction can be uniquely performed even if the tolerance data is a cumulative tolerance, by performing the shape correction based on a datum-specified surface or line.

[0118] Furthermore, according to the machining program generation device 10 of this embodiment, the shape correction unit 16 includes a turning surface correction unit 22 that corrects the diameter or position of the turning surface and adjacent surfaces adjacent to the turning surface, to which tolerance data 2 is linked, based on tolerance data 2. This makes it possible to correct the shape without creating steps or other differences with the surrounding surfaces.

[0119] Furthermore, according to the machining program generation device 10 of this embodiment, the shape correction unit 16 includes a plane position correction unit 24 that corrects the position of the plane to which the tolerance data 2 is linked and the adjacent surface adjacent to the plane based on the tolerance data 2, thus enabling shape correction without creating steps or other differences with the surrounding surface.

[0120] According to the machining program generation device 10 of this embodiment, the shape correction unit 16 includes a hole surface correction unit 23 that corrects the diameter of the hole surface to which the tolerance data 2 is linked based on the tolerance data 2, thereby enabling shape correction of the hole surface without creating steps or other differences with the surrounding surface.

[0121] According to the machining program generation device 10 of this embodiment, the shape correction unit 16 includes a hole surface position correction unit 25 that corrects the position and orientation of the hole surface to which the tolerance data 2 is linked based on the tolerance data 2, thereby enabling shape correction of the hole surface without creating steps or other differences with the surrounding surface.

[0122] Next, the hardware configuration of the machining program generation device 10 will be described. Figure 44 is a block diagram showing the hardware configuration of the machining program generation device 10 according to an embodiment. Each functional unit shown in Figure 44 comprises a processor 81, a memory 82 used by the processor 81 for the work area, a storage device 83 that stores computer programs describing the functions of the numerical control device 100, an input device 84 which is an input interface with the operator, a display device 85 which is an output device that displays information to the operator, and a communication device 86 which has a communication function with controlled equipment or other numerical control devices. The processor 81, memory 82, storage device 83, input device 84, display device 85, and communication device 86 are connected to each other by a data bus 87.

[0123] The processor 81 is a processing unit, arithmetic unit, microprocessor, microcomputer, CPU (Central Processing Unit), or DSP (Digital Signal Processor), etc. The memory 82 is a non-volatile or volatile semiconductor memory such as RAM (Random Access Memory), ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable ROM), or EEPROM (Electrically Erasable Programmable ROM), magnetic disks, flexible disks, optical disks, compact disks, minidiscs, or DVDs (Digital Versatile Discs).

[0124] The CAD data input unit 11, shape data storage unit 12, shape data placement unit 13, tolerance editing unit 14, correction value calculation unit 15, shape correction unit 16, and machining program generation unit 17 of the numerical control device 100 can be realized by the processor 81 reading and executing a computer program stored in memory 82.

[0125] Furthermore, multiple processors 81 and multiple memories 82 may work together to realize each function of the numerical control device 100. Alternatively, some of the functions of the CAD data input unit 11, shape data storage unit 12, shape data placement unit 13, tolerance editing unit 14, correction value calculation unit 15, shape correction unit 16, and machining program generation unit 17 may be implemented as electronic circuits, while the other parts are realized using processors 81 and memories 82.

[0126] The configurations shown in the embodiments described above are merely examples of the content of this disclosure and can be combined with other known technologies, and parts of the configuration can be omitted or modified without departing from the gist of this disclosure. [Explanation of Symbols]

[0127] 1 CAD data, 2 tolerance data, 3 machining program, 10 machining program generation device, 11 CAD data input unit, 12 shape data storage unit, 13 shape data placement unit, 14 tolerance editing unit, 15 correction value calculation unit, 16 shape correction unit, 17 machining program generation unit, 20 interactive operation processing unit, 21 correction value acquisition unit, 22 turned surface correction unit, 23 hole surface correction unit, 24 plane position correction unit, 25 hole surface position correction unit, 26 shape check unit, 30 instruction input unit, 40 display unit, 50 control unit, 81 processor, 82 memory, 83 storage device, 84 input device, 85 display device, 86 communication device, 87 data bus, 100 numerical control device, SA1, SA3, SA4 product shape, SB2, SB4 material shape.

Claims

1. A machining program generation device that generates a numerically controlled machining program based on three-dimensional shape data including three-dimensional material shape data and three-dimensional product shape data of an object to be machined, and tolerance data of the shape data, A shape data acquisition unit that acquires the three-dimensional shape data and tolerance data of the workpiece, A correction value calculation unit calculates a correction value for each shape element in the three-dimensional space using the tolerance data linked to each shape element in the three-dimensional space of the three-dimensional product shape data, A shape correction unit that corrects the shape elements linked to the tolerance data based on the correction value, A machining program generation unit that generates the machining program based on the corrected shape elements, Equipped with, The shape correction unit modifies geometric information including the diameter of the turning surface, which is a shape element to which the tolerance data is linked, based on the correction value, and modifies geometric information including the diameter of the first adjacent surface based on the correction value, the first connectivity which is the connectivity of the first edge, which is the edge between the turning surface and the first adjacent surface adjacent to the turning surface, the second connectivity which is the connectivity of the second edge, which is the edge between the first adjacent surface and the second adjacent surface adjacent to the first adjacent surface, and the correction value.

2. The machining program generation apparatus according to Claim 1, characterized in that the shape correction unit determines the tangent vector of the first edge, the first normal vector which is the normal vector of the turning surface, and the second normal vector which is the normal vector of the first adjacent surface, determines the binormal vector based on the cross product of the tangent vector of the first edge and the first normal vector, and determines the first connectivity based on the first normal vector, the second normal vector, and the binormal vector.

3. The machining program generation apparatus according to Claim 1, characterized in that the shape correction unit modifies geometric information including the diameter and chamfer information of the first adjacent surface when it is determined by the determination of the first connectivity that the turned surface and the first adjacent surface are smoothly connected, when a step is created by changing the diameter of the turned surface, or when the axial length of the turned surface cannot be changed.

4. A machining program generation device that generates a numerically controlled machining program based on three-dimensional shape data including three-dimensional material shape data and three-dimensional product shape data of an object to be machined, and tolerance data of the shape data, A shape data acquisition unit that acquires the three-dimensional shape data and tolerance data of the workpiece, A correction value calculation unit calculates a correction value for each shape element in the three-dimensional space using the tolerance data linked to each shape element in the three-dimensional space of the three-dimensional product shape data, A shape correction unit that corrects the shape elements linked to the tolerance data based on the correction value, A machining program generation unit that generates the machining program based on the corrected shape elements, Equipped with, The shape correction unit is characterized by modifying, based on the correction value, geometric information including the diameter and depth of the chamfered surface in a hole, geometric information including the diameter and depth of the hole surface in the hole, and geometric information including the diameter and depth of the hole bottom surface in the hole, so that the amount of chamfering and the hole bottom angle of the hole remain unchanged.

5. A machining program generation device that generates a numerically controlled machining program based on three-dimensional shape data including three-dimensional material shape data and three-dimensional product shape data of an object to be machined, and tolerance data of the shape data, A shape data acquisition unit that acquires the three-dimensional shape data and tolerance data of the workpiece, A correction value calculation unit calculates a correction value for each shape element in the three-dimensional space using the tolerance data linked to each shape element in the three-dimensional space of the three-dimensional product shape data, A shape correction unit that corrects the shape elements linked to the tolerance data based on the correction value, A machining program generation unit that generates the machining program based on the corrected shape elements, Equipped with, The shape correction unit modifies the geometric information of a first plane as a reference surface, which is a shape element to which the tolerance data is linked, based on the correction value, and modifies the geometric information of the second plane based on a first connectivity, which is the connectivity of a first edge, which is the edge between the first plane and a second plane adjacent to the first plane, a second connectivity, which is the connectivity of a second edge, which is the edge between the second plane and a third plane adjacent to the second plane, and the correction value.

6. The machining program generation apparatus according to claim 5, wherein the shape correction unit determines the tangent vector of the first edge, the first normal vector which is the normal vector of the first plane, and the second normal vector which is the normal vector of the second plane, determines the binormal vector based on the cross product of the tangent vector of the first edge and the first normal vector, and determines the first connectivity based on the first normal vector, the second normal vector, and the binormal vector.

7. The machining program generation apparatus according to claim 5, characterized in that the shape correction unit modifies geometric information including chamfer information of the second plane and corrects the intersection line and intersection point of the first plane and the second plane when it is determined by the determination of the first connectivity that the first plane and the second plane are smoothly connected, when a step is created by changing the position of the first plane, or when the axial length of the first plane cannot be changed.

8. A machining program generation device that generates a numerically controlled machining program based on three-dimensional shape data including three-dimensional material shape data and three-dimensional product shape data of a workpiece, and tolerance data of the shape data, A shape data acquisition unit that acquires the three-dimensional shape data and tolerance data of the workpiece, A correction value calculation unit calculates a correction value for each shape element in the three-dimensional space using the tolerance data linked to each shape element in the three-dimensional space of the three-dimensional product shape data, A shape correction unit that corrects the shape elements linked to the tolerance data based on the correction value, A machining program generation unit that generates the machining program based on the corrected shape elements, Equipped with, The shape correction unit identifies a hole and a plane, which are shape elements linked to the tolerance data, including a composite hole, and corrects the position of the chamfered surface in the hole, the position of the hole surface in the hole, the position of the hole bottom surface in the hole, and the position of the composite hole based on the correction value, with the plane as the reference.

9. A processing program generation apparatus according to any one of claims 1 to 8, A control unit that controls a machine tool using the machining program generated by the machining program generation device, A numerical control device characterized by comprising the above.

10. The numerical control device according to claim 9, The aforementioned machine tool, A processing system characterized by comprising the following features.

Citation Information

Patent Citations

  • Working information creating device

    JP1994274217A

  • Automatic programming device and method therefor

    JP1998207523A

  • Method for providing consulting service for cad data, method for detecting inappropriate shape change caused by tolerance conversion, and computer-readable recording medium with program for detecting inappropriate shape change caused by tolerance conversion stored therein

    JP2002056035A

  • Automatic programming method and device

    JP2005044348A

  • Information processing system, NC program generation method, and processing shape recognition program

    JP2008140358A