Numerical Control Device

The numerical control device addresses inefficiencies in creating machining programs by using a linking information storage unit to narrow down G-codes and machining shapes based on the selected tool, resulting in reduced creation time and minimized errors.

JP7674382B2Active Publication Date: 2025-05-09FANUC LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2022559052
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-26
Filing Date
2021-10-20
Publication Date
2025-05-09
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

Existing numerical control devices for machining programs creation from CAD data face inefficiencies and errors due to the need to sift through all G-codes and machining shapes, leading to increased time and likelihood of incorrect selections.

Method used

A numerical control device that automatically generates machining programs by using a linking information storage unit to narrow down G-codes and machining shapes based on the selected tool, allowing for efficient extraction and display of relevant machining information.

Benefits of technology

This solution reduces the time required to create machining programs and minimizes errors by presenting only the relevant G-codes and machining shapes, enhancing the overall efficiency and accuracy of the machining process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007674382000001
    Figure 0007674382000001
  • Figure 0007674382000002
    Figure 0007674382000002
  • Figure 0007674382000003
    Figure 0007674382000003
Patent Text Reader

Abstract

The present invention aims to reduce and display a G code and / or a machining shape, by using a selected tool. This numerical control device automatically generates a machining program and comprises: a linked information storage unit that stores linked information, which is tool information pertaining to a plurality of tools, a shape identifier that shows the shape that each tool can machine, and at least one G code which can be used for machining the shaped indicated by the shape identifier; a tool information acquisition unit that acquires tool information pertaining to the tool selected for machining; a shape ID information extraction unit that, using the acquired tool information, makes an enquiry to the linked information storage unit and extracts a shape identifier indicating a shape that can be machined by the tool having the acquired tool information; a machinable-shape extraction unit that extracts machinable shapes from CAD data on the basis of the extracted shape identifier; and a machinable-shape display unit that shows the extracted machinable shape.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a numerical control device. [Background technology]

[0002] Conventionally, there has been known a technique for automatically creating a machining program using CAD data (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 4-315550 Summary of the Invention [Problem to be solved by the invention]

[0004] When creating a machining program using CAD data, there are two cases: (a) the user selects the machining shape and then selects the G-code, and (b) the user selects the G-code and then selects the machining shape.

[0005] (a) When the user selects the machining shape and then the G code 26A to 26D are diagrams showing an example of how the display screen changes when the user selects a machining shape and then a G-code. As shown in FIG. 26A, when a user selects a tool to create the workpiece shown in FIG. 27, a machining program including the selected tool (e.g., tool code "T10") is displayed in the left area of ​​the display screen. After selecting the tool, when the user selects CAD data shown in FIG. 28A and FIG. 28B of the workpiece in FIG. 27, all shapes included in the CAD data are displayed in the right area of ​​the screen without narrowing down the shapes that can be machined with the selected tool (tool code "T10") As shown in FIG. 26A, for example, when a user selects the circular part in the upper right corner to machine a deep hole, all G-codes are displayed in the right area of ​​the screen without narrowing down the G-codes with the selected tool (tool code "T10") and the selected shape, as shown in FIG. 26B. When the user selects "G83 deep hole drilling cycle" on the display screen shown in Fig. 26B, a screen for setting the parameters of the cutting conditions of the G-code "G83" is displayed in the right area as shown in Fig. 26C. When the parameters of the cutting conditions are set by the user on the display screen shown in Fig. 26C, a block of the G-code "G83" is added to the machining program and displayed in the left area of ​​the display screen shown in Fig. 26D. Then, the machining program is generated by performing the steps shown in Fig. 26A to Fig. 26D for all shapes included in the CAD data.

[0006] (b) When the user selects the G code and then the machining shape 29A and 29B are diagrams showing an example of a change in the display screen when the user selects a G-code and then selects a machining shape. As shown in Fig. 29A, when a user selects a tool, a machining program including the selected tool (e.g., tool code "T10") is displayed in the left area of ​​the display screen, and all G-codes that can be used with the selected tool (tool code "T10") are displayed in the right area of ​​the display screen without narrowing down the G-codes. For example, when a user selects "G83 deep hole drilling cycle" for deep hole machining on the screen shown in Fig. 29A and selects the CAD data shown in Fig. 28A and Fig. 28B of the workpiece shown in Fig. 27, all shapes included in the CAD data are displayed in the right area of ​​the display screen as shown in Fig. 29B, without narrowing down the shapes that can be machined with the selected G-code "G83". For example, when the user selects the circular part in the upper right corner of the display screen shown in Fig. 29B as the shape to be machined for deep holes, a screen similar to Fig. 26C for setting the parameters of the cutting conditions of the G-code "G83" is displayed in the right area. When the parameters of the cutting conditions are set by the user on the display screen shown in Fig. 26C, a block of the G-code "G83" is added to the machining program and displayed as in Fig. 26D. Then, the machining program is generated by performing the procedures shown in Figs. 29A, 29B, 26C, and 26D for all shapes included in the CAD data.

[0007] However, in either of the above cases, since all G codes and / or machining shapes of CAD data are displayed, it takes time to select the desired G code or machining shape, and selection errors are likely to occur.

[0008] Therefore, it is desirable to display a narrowed down G-code and / or machining shape according to the selected tool. [Means for solving the problem]

[0009] (1) One aspect of the numerical control device disclosed herein is a numerical control device that automatically generates a machining program, and includes: a linking information storage unit that stores linking information in advance linking tool information related to a plurality of tools, a shape identifier indicating a shape that can be machined by each of the plurality of tools, and at least one G-code that can be used to machine the shape indicated by the shape identifier; a tool information acquisition unit that acquires tool information related to a tool selected for machining; a shape ID information extraction unit that queries the linking information storage unit with the acquired tool information and extracts a shape identifier indicating a shape that can be machined by the tool of the acquired tool information; a machineable shape extraction unit that extracts a machineable shape from CAD data based on the extracted shape identifier; and a machineable shape display unit that displays the extracted machineable shape.

[0010] (2) One aspect of the numerical control device disclosed herein is a numerical control device that automatically generates a machining program, and includes: a linking information storage unit that stores linking information that pre-links tool information on a plurality of tools, a shape identifier indicating a shape that each of the plurality of tools can machine, and at least one G-code that can be used to machine the shape indicated by the shape identifier; a tool information acquisition unit that acquires tool information on a tool selected for machining; a usable G-code extraction unit that queries the linking information storage unit with the acquired tool information and extracts G-codes that can be used with the tool of the acquired tool information; and an usable G-code display unit that displays the extracted usable G-code. Effect of the Invention

[0011] According to one embodiment, the G-code and / or machining shape can be displayed in a filtered manner depending on the selected tool. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a functional block diagram showing an example of the functional configuration of the control system according to the first embodiment. [Diagram 2] FIG. 13 is a diagram illustrating an example of a linking table. [Figure 3A]FIG. 13 is a diagram showing an example of a display screen of extracted processable shapes. [Figure 3B] FIG. 13 is a diagram showing an example of a display screen of extracted processable shapes. [Figure 4] FIG. 13 is a diagram showing an example of a display screen displaying a narrowed down range of available G-codes. [Figure 5A] FIG. 13 is a diagram showing an example of a setting screen for a selected G-code. [Figure 5B] FIG. 13 is a diagram showing an example of a display screen on which a selected G-code block has been added. [Figure 6] 4 is a flowchart illustrating a machining program generation process of the numerical control device 10. [Figure 7] 7 is a flowchart illustrating a tool information acquisition process shown in step S1 in FIG. 6. [Figure 8A] 7 is a flowchart illustrating the process of extracting a manufacturable shape shown in step S3 in FIG. 6. [Figure 8B] 7 is a flowchart illustrating the process of extracting a manufacturable shape shown in step S3 in FIG. 6. [Figure 9] 7 is a flowchart illustrating a selected shape acquisition process shown in step S5 in FIG. 6. [Figure 10] 8B is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes a hole shape with a shape ID "1" in step S32 of FIG. 8A. [Figure 11] FIG. 11 is a diagram showing an example of CAD data of a hole shape. [Figure 12] 8B is a flowchart illustrating the process of determining whether or not a thread shape with a shape ID "2" exists in the CAD data of the workpiece in step S35 of FIG. 8A. [Figure 13] FIG. 13 is a diagram showing an example of CAD data of a screw shape. [Figure 14] 8B is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes a pocket shape with a shape ID "3" in step S38 of FIG. 8A. [Figure 15]FIG. 13 is a diagram showing an example of CAD data of a pocket shape. [Figure 16] 8C is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes a contour shape with a shape ID "4" in step S3B of FIG. 8B. [Figure 17] FIG. 13 is a diagram showing an example of CAD data of a contour shape. [Figure 18] 8C is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes an inclined shape with a shape ID "5" in step S3E of FIG. 8B. [Figure 19] FIG. 13 is a diagram showing an example of CAD data of an inclined shape. [Figure 20] FIG. 11 is a functional block diagram showing an example of the functional configuration of a control system according to a second embodiment. [Figure 21] FIG. 13 is a diagram showing an example of a display screen of a usable G-code. [Figure 22] FIG. 13 is a diagram showing an example of a display screen of extracted processable shapes. [Figure 23] 4 is a flowchart illustrating a machining program generation process of a numerical control device. [Figure 24] FIG. 13 is a diagram showing an example of a setting screen for the G-code "G1060" for rough machining of exterior walls for contour machining. [Diagram 25] FIG. 13 is a diagram showing an example of a screen on which a selected G-code block has been added. [Figure 26A] 13A to 13C are diagrams showing an example of a change in the display screen when a user selects a machining shape and then selects a G-code. [Figure 26B] 13A to 13C are diagrams showing an example of a change in the display screen when a user selects a machining shape and then selects a G-code. [Figure 26C] 13A to 13C are diagrams showing an example of a change in the display screen when a user selects a machining shape and then selects a G-code. [Figure 26D] 13A to 13C are diagrams showing an example of a change in the display screen when a user selects a machining shape and then selects a G-code. [Figure 27] FIG. 1 is a diagram showing an example of a workpiece. [Figure 28A] FIG. 28 is a diagram showing an example of CAD data of the workpiece of FIG. 27. [Figure 28B] FIG. 28 is a diagram showing an example of CAD data of the workpiece of FIG. 27. [Figure 29A] 13A to 13C are diagrams showing an example of a change in the display screen when a user selects a G-code and then selects a machining shape. [Figure 29B] 13A to 13C are diagrams showing an example of a change in the display screen when a user selects a G-code and then selects a machining shape. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] First Embodiment First, an outline of this embodiment will be described. In this embodiment, the numerical control device stores linking information in which tool information on a plurality of tools, shape identifiers indicating shapes that each of the plurality of tools can machine, and at least one G-code that can be used to machine the shape indicated by the shape identifier are linked in advance. The numerical control device acquires tool information on the tool selected for machining, queries the linking information with the acquired tool information, extracts a shape identifier indicating a shape that can be machined by the tool of the acquired tool information, and displays the extracted machineable shape.

[0014] As a result, according to this embodiment, it is possible to solve the problem of "narrowing down and displaying G-codes and / or machining shapes depending on the selected tool." The above is an outline of the first embodiment.

[0015] Next, the configuration of this embodiment will be described in detail with reference to the drawings. 1 is a functional block diagram showing an example of the functional configuration of a control system according to the first embodiment. As shown in FIG.

[0016] The numerical control device 10 and the machine tool 20 may be directly connected to each other via a connection interface (not shown). The numerical control device 10 and the machine tool 20 may also be connected to each other via a network (not shown) such as a LAN (Local Area Network) or the Internet. In this case, the numerical control device 10 and the machine tool 20 are provided with a communication unit (not shown) for communicating with each other via such a connection. As will be described later, the machine tool 20 may include the numerical control device 10.

[0017] The machine tool 20 is a machine tool known to those skilled in the art, and operates based on operation commands from the numerical control device 10. Machine tool 20 may store a tool management table (not shown) for managing all tools attached to a spindle (not shown) of machine tool 20 in a storage unit (not shown) such as a hard disk drive (HDD) included in machine tool 20. Numerical control device 10, which will be described later, may acquire the tool name, tool diameter, tool length, etc. from the tool management table (not shown) of machine tool 20 based on a tool number such as "T10" set in the machining program.

[0018] The numerical control device 10 is a numerical control device known to those skilled in the art, generates operation commands based on the execution of a machining program, and transmits the generated operation commands to the machine tool 20. In this way, the numerical control device 10 controls the operation of the machine tool 20.

[0019] 1, the numerical control device 10 includes a control unit 11, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11 has a tool information acquisition unit 110, a shape ID information extraction unit 111, a machineable shape extraction unit 112, a selected shape acquisition unit 113, a usable G-code extraction unit 114, and a program generation unit 115. In addition, the storage unit 14 includes a linking table 141.

[0020] The input unit 12 is composed of, for example, a keyboard, an MDI (Manual Data Input), and / or a touch panel arranged on the front side of the display unit 13 described later, and receives input from a user who is an operator. The input unit 12 functions as a shape selection receiving unit that selects a machineable shape extracted by a machineable shape extraction unit 112 described later based on the user's input operation. The input unit 12 also functions as a G-code selection receiving unit that selects a usable G-code further narrowed down by a usable G-code extraction unit 114 described later based on the user's input operation.

[0021] The display unit 13 is a display device such as an LCD (Liquid Crystal Display) and has a touch panel (not shown) arranged on the front of the display device. The display unit 13 functions as a machineable shape display unit that displays machineable shapes extracted by a machineable shape extraction unit 112 (described later). The display unit 13 also functions as an available G-code display unit that displays available G-codes that are further narrowed down by an available G-code extraction unit 114 (described later) for machining into a machineable shape.

[0022] <Storage section 14> The storage unit 14 is, for example, a random access memory (RAM) or a hard disk drive (HDD), etc. The storage unit 14 stores various programs including known control software for the numerical control device 10 to function as a numerical control device, and also includes a linking table 141. The linking table 141 includes linking information that pre-links tool information regarding multiple tools, shape identifiers (hereinafter also referred to as "shape IDs") indicating the shapes that each of the multiple tools can process, and at least one G code that can be used to process the shape indicated by the shape ID. FIG. 2 is a diagram showing an example of the association table 141. As shown in FIG. As shown in FIG. 2, the linking table 141 includes, for example, id ”, “Tools”, “S id ”, “Geometry (CAD)”, “G id" and "G code" storage area. "T" in the link table 141 id In the storage area of ​​"T", a tool identifier (hereinafter also referred to as "tool ID") such as "1" or "2" that is assigned to each tool in advance is stored. id Regarding the tool ID stored in the storage area, even if the tool number and type are the same, if the shapes to be machined are different, a different tool ID is assigned.

[0023] In the storage area of ​​the “tool” in the pegging table 141, id The tool number (e.g., "T10") and the tool type (e.g., "Drill") corresponding to "Tool" are stored. Note that the tool number and the tool type stored in the storage area for "Tool" are preferably obtained in advance from the tool management table (not shown) of the machine tool 20, as described above.

[0024] "S" in the link table 141 id The "Tool" storage area stores shape IDs such as "1" and "2" that indicate shapes that can be machined with the tool stored in the "Tool" storage area.

[0025] The storage area of ​​"shape (CAD)" in the linking table 141 stores CAD data indicating the shape to be machined by the tool stored in the storage area of ​​"tool." id The storage area for "Shape (CAD)" with "1" stores CAD data that shows the shape of the hole to be drilled with the tool number "T10". id The storage area for "Shape (CAD)" with "2" stores CAD data showing the shape of the thread portion shown by the thick line to be machined with a tap of tool number "T20" in a hole shown by the thin line drilled with tool number "T10". id In the storage area of ​​"Shape (CAD)" where "3" is specified, for example, CAD data showing the shape to be machined with an end mill with tool number "T30" is stored. idIn the storage area of ​​"Shape (CAD)" where "4" is specified, CAD data showing the shape to be machined by an end mill with tool number "T30" is stored. id In the storage area for "shape (CAD)" with "5" as the tool code, for example, CAD data is stored that indicates the shape of a hole that can be drilled at an angle using a drill with tool code "T10". The storage area for "shape (CAD)" in the linking table 141 is not limited to CAD data of the shape to be processed. For example, id In the storage area of ​​"shape (CAD)" where "1" is specified, character data in the format of "k-φ*" may be stored, such as "3-φ10" which indicates the shape of three holes to be drilled with a 10 mm diameter drill with tool number "T10". Note that k indicates the number of holes, and * indicates the diameter of the holes. id In the storage area for "Shape (CAD)" with "2", character data in the format of "M*×h×D" may be stored, such as "M10×1.5×15" which indicates the shape of a thread portion with a depth of 15 mm and a height of 1.5 mm in a hole with a diameter of 10 mm for a tap with tool number "T20". Note that h indicates the height of the thread, and D indicates the depth of the thread portion.

[0026] "G" in the link table 141 id The "Tool" storage area stores G-code identifiers (hereinafter also referred to as "G-code IDs") such as "1" or "2" that indicate G-codes that can be used to machine the shapes stored in the "Shape (CAD)" storage area with the tools stored in the "Tool" storage area.

[0027] In the "G-code" storage area in the linking table 141, at least one G-code that can be used to machine the shape stored in the "shape (CAD)" storage area with the tool stored in the "tool" storage area is stored. idIn the storage area for "G code" with "1", the G codes for the drill cycle "G81", drill cycle "G82", deep hole drilling cycle "G83", cancel "G80", drill cycle "G1110", and drill cycle "G1111" that can be used to drill holes with the drill with tool number "T10" are stored. id In the storage area of ​​the "G code" with "2", for example, the G codes for the tapping ring "G84" and the tapping ring "G1112" that can be used to process the shape of a screw thread with a tap with tool number "T20" in a hole drilled with a drill number "T10" are stored. id In the storage area of ​​the "G code" with "3", for example, the G codes for rough machining of pockets "G1040", bottom finishing of pockets "G1041", and side finishing of pockets "G1042" that can be used for machining pockets with an end mill with tool number "T30" are stored. id In the storage area of ​​the "G code" with "3", for example, the G codes for "G1060" for rough machining of the outer wall of the contour machining, "G1061" for finishing the bottom surface of the outer wall of the contour machining, and "G1062" for finishing the side surface of the outer wall of the contour machining, which can be used for contour machining with an end mill with the tool number "T30", are stored. id The storage area for "G code" with "5" stores the G codes for the inclined surface indexing command "G68.2," the inclined surface indexing command based on the tool axis direction "G68.3," and the inclined surface indexing command (incremental multiple command) "G68.4," which can be used to drill an inclined hole with a drill with tool number "T10," for example.

[0028] <Control unit 11> The control unit 11 includes a central processing unit (CPU), a ROM, a RAM, a complementary metal-oxide-semiconductor (CMOS) memory, and the like, which are configured to be able to communicate with each other via a bus and are well known to those skilled in the art. The CPU is a processor that controls the entire numerical control device 10. The CPU reads out the system program and application program stored in the ROM via the bus, and controls the entire numerical control device 10 according to the system program and application program. As a result, as shown in FIG. 1, the control unit 11 is configured to realize the functions of a tool information acquisition unit 110, a shape ID information extraction unit 111, a machineable shape extraction unit 112, a selected shape acquisition unit 113, a usable G-code extraction unit 114, and a program generation unit 115. Various data such as temporary calculation data and display data are stored in the RAM. In addition, the CMOS memory is backed up by a battery (not shown) and is configured as a non-volatile memory that retains its memory state even when the power supply of the numerical control device 10 is turned off.

[0029] The tool information acquisition unit 110 acquires tool information related to a tool selected for machining. Specifically, the tool information acquiring unit 110 acquires tool information (e.g., tool number, tool type, etc.) based on, for example, an input operation by a user via the input unit 12. Note that, when no tool information is input by a user via the input unit 12, the tool information acquiring unit 110 may acquire the tool information (e.g., tool number, tool type, etc.) from tooling data acquired in advance from tool management data (not shown) of the machine tool 20, for example.

[0030] The shape ID information extraction unit 111 queries the linking table 141, which is a linking information storage unit, with the tool information acquired by the tool information acquisition unit 110, and extracts a shape ID (S id ) to extract the Specifically, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number “T10”, the shape ID information extraction unit 111 extracts “S id In addition, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number "T20", the shape ID information extraction unit 111 extracts the shape IDs "S idIn addition, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number "T30", the shape ID information extraction unit 111 extracts the shape ID "S id " extracts the shape IDs "3" and "4".

[0031] The manufacturable shape extraction unit 112 extracts a manufacturable shape from the CAD data of the target workpiece, based on the shape ID extracted by the shape ID information extraction unit 111. Specifically, when the shape ID extracted by the shape ID information extraction unit 111 is "1" or "5", the machineable shape extraction unit 112 extracts holes machined parallel to the X-axis, Y-axis, or Z-axis, and holes machined at an angle from the CAD data as machineable shapes. When the shape ID extracted by the shape ID information extraction unit 111 is "2", the machineable shape extraction unit 112 extracts a portion to be machined with a screw thread from the CAD data as a machineable shape. When the shape ID extracted by the shape ID information extraction unit 111 is "3" or "4", the machineable shape extraction unit 112 extracts a portion to be machined with a pocket and a portion to be machined with a contour from the CAD data as machineable shapes. A detailed description of the machineable shape extraction unit 112 will be given later. Then, the display unit 13 as a manufacturable shape display unit displays the manufacturable shape extracted by the manufacturable shape extraction unit 112. 3A and 3B are diagrams showing an example of a display screen of the extracted manufacturable shapes. As shown in Fig. 3A, when the machineable shape extraction unit 112 extracts the hole shape of shape ID "1" as a machineable shape from the CAD data shown in Fig. 28A and Fig. 28B, the display unit 13 as a machineable shape display unit may display, for example, the extracted hole shape by highlighting it with a thick line. Also, as shown in Fig. 3B, when the machineable shape extraction unit 112 extracts the machining shape of the pocket machining part of shape ID "3" and / or the contour machining part of shape ID "4" as a machineable shape from the CAD data shown in Fig. 28A and Fig. 28B, the display unit 13 as a machineable shape display unit may display, for example, the extracted machineable shape by highlighting it with a thick line. Although the display unit 13 as the manufacturable shape display unit highlights the extracted manufacturable shapes with thick lines, it may also be highlighted with lines other than thick lines, or may be highlighted with lines of a color such as red.

[0032] 3A or 3B displayed on the display unit 13 as a machineable shape display unit, the selected shape acquisition unit 113 acquires a shape ID of the selected machineable shape. The selected shape acquisition unit 113 outputs the acquired shape ID of the machineable shape together with the tool information acquired by the tool information acquisition unit 110 to the usable G-code extraction unit 114 described later.

[0033] The usable G-code extraction unit 114 queries the linking table 141, which serves as a linking information storage unit, with the tool information received from the selected shape acquisition unit 113 and the shape ID of a machineable shape, to further narrow down the G-codes that can be used to machine the tool of the received tool information into the shape of the received shape ID. Specifically, when the usable G-code extraction unit 114 receives, for example, the tool number "T10" acquired by the tool information acquisition unit 110 and the shape ID "1" indicating the hole shape selected by the user via the input unit 12 as the shape selection receiving unit from the selected shape acquisition unit 113, the usable G-code extraction unit 114 extracts the G-code ID "G idThe available G-code extraction unit 114 extracts and narrows down the G-codes of the drill cycle "G81", drill cycle "G82", deep hole drilling cycle "G83", cancel "G80", drill cycle "G1110", and drill cycle "G1111" that have a G-code ID of "1". When the available G-code extraction unit 114 receives from the selected shape acquisition unit 113 the tool number "T20" acquired by the tool information acquisition unit 110 and the shape ID "2" indicating the part of the thread selected by the user via the input unit 12 as the shape selection reception unit, the available G-code extraction unit 114 extracts and narrows down the G-codes of the drill cycle "G81", drill cycle "G82", deep hole drilling cycle "G83", cancel "G80", drill cycle "G1110", and drill cycle "G1111" that have a G-code ID of "1". id Extract and narrow down the G codes for the tapping ring "G84" and the tapping ring "G1112" that can be used with "2".

[0034] In addition, when the available G-code extraction unit 114 receives from the selected shape acquisition unit 113 the tool number “T30” acquired by the tool information acquisition unit 110 and the shape ID “3” indicating the part of the pocket machining selected by the user via the input unit 12 as the shape selection reception unit, the available G-code extraction unit 114 extracts the G-code ID “G id In addition, when the usable G-code extraction unit 114 receives from the selected shape acquisition unit 113 the tool number "T30" acquired by the tool information acquisition unit 110 and the shape ID "4" indicating the part of the contour machining selected by the user via the input unit 12 as the shape selection reception unit, the usable G-code extraction unit 114 extracts and narrows down the G-codes of the rough machining of pocket "G1040", the bottom surface finishing of pocket "G1041", and the side surface finishing of pocket "G1042", which are usable with the tool number "T30" acquired by the tool information acquisition unit 110 and the shape ID "4" indicating the part of the contour machining selected by the user via the input unit 12 as the shape selection reception unit, based on the linking table 141. id In addition, when the usable G-code extraction unit 114 receives from the selected shape acquisition unit 113 the tool number "T10" acquired by the tool information acquisition unit 110 and the shape ID "5" indicating the shape of an obliquely inclined hole selected by the user via the input unit 12 as a shape selection receiving unit, the usable G-code extraction unit 114 extracts and narrows down the G-codes of the usable G-codes "G1060" for rough processing of the outer wall for contour processing, "G1061" for finishing the bottom surface of the outer wall for contour processing, and "G1062" for finishing the side surface of the outer wall for contour processing, which are all usable and have a tool number of "4", based on the linking table 141. idExtract and narrow down the G codes for the inclined surface indexing command "G68.2", the inclined surface indexing command based on the tool axis direction "G68.3", and the inclined surface indexing command (incremental multiple command) "G68.4", which can be used with "5".

[0035] Then, the display unit 13 as an available G-code display unit displays the available G-codes narrowed down by the available G-code extraction unit 114. FIG. 4 is a diagram showing an example of a display screen showing a narrowed down list of available G-codes. For example, when the user selects the pocket machining section on the display screen shown in FIG. 3B, as shown in FIG. 4, the display unit 13 as an available G-code display unit displays only the G-codes for rough pocket machining "G1040", bottom surface finishing of pocket machining "G1041", and side surface finishing of pocket machining "G1042". In this way, the numerical control device 10 can easily select the G-code and the machining shape, and can shorten the time required to create the machining program. In addition, the numerical control device 10 can prevent the user from inputting an incorrect machining program by presenting possible G-codes and machining shapes and allowing the user to select one.

[0036] The program generation unit 115 receives a G-code selected by the user via the input unit 12 as a G-code selection receiving unit, for example, on the screen of Fig. 4 displayed on the display unit 13 as a usable G-code display unit. The program generation unit 115 displays a parameter setting screen on the display unit 13 to set parameters for the selected G-code. Fig. 5A shows an example of a setting screen for a selected G-code, and Fig. 5B shows an example of a display screen to which a block of the selected G-code has been added. The program generation unit 115 uses the parameters input by the user via the setting screen of FIG. 5A to add a block including the selected G-code and generate a machining program, as shown in FIG. 5B. "G1200" is the G code for setting the start point of pocket machining, and "G1201" is the G code for setting the straight line for pocket machining. "G1990" is the G code for the group range selection start command, and "G1991" is the G code for the group range selection end command.

[0037] <Processing program generation process of the numerical control device 10> Next, the flow of processing for generating a machining program by the numerical control device 10 will be described with reference to FIG. 6 is a flowchart illustrating the machining program generation process of the numerical control device 10. The flow shown here is executed every time a machining program is generated. Hereinafter, the machineable shapes will be described as hole shapes (hereinafter also referred to as "hole shapes"), thread portions (hereinafter also referred to as "screw shapes"), pocket machining portions (hereinafter also referred to as "pocket shapes"), contour machining portions (hereinafter also referred to as "contour shapes"), and obliquely inclined hole shapes (hereinafter also referred to as "inclined shapes"), but are not limited thereto. Machineable shapes other than hole shapes, thread shapes, pocket shapes, contour shapes, and inclined shapes can also be processed in the same manner.

[0038] In step S1, the tool information acquisition unit 110 performs a tool information acquisition process and acquires tool information (e.g., a tool number, a tool type, etc.) based on an input operation by a user via the input unit 12. The detailed flow of the tool information acquisition process will be described later.

[0039] In step S2, the shape ID information extraction unit 111 queries the linking table 141, which is the linking information storage unit, using the tool information acquired in step S1, and extracts the shape ID of a shape that can be machined by the tool of the acquired tool information.

[0040] In step S3, the machineable shape extraction unit 112 performs a machineable shape extraction process based on the shape ID extracted in step S2, and extracts a machineable shape from the CAD data of the target workpiece. The detailed flow of the machineable shape extraction process will be described later.

[0041] In step S4, the display unit 13 as a manipulable shape display unit displays the shape extracted in step S3 (for example, FIG. 3A or FIG. 3B).

[0042] In step S5, the selected shape acquisition unit 113 performs a selected shape acquisition process based on the selection of a manufacturable shape by the user via the input unit 12 as a shape selection receiving unit on the screen displayed on the display unit 13 as a manufacturable shape display unit, and acquires the shape ID of the manufacturable shape selected by the user. Note that the detailed flow of the selected shape acquisition process will be described later.

[0043] In step S6, the usable G-code extraction unit 114 queries the linking table 141 using the tool information acquired in step S1 and the shape ID of the machineable shape selected in step S5 to further narrow down the usable G-codes.

[0044] In step S7, the display unit 13 as an available G-code display unit displays the available G-codes narrowed down in step S6 (eg, FIG. 4).

[0045] In step S8, the program generation unit 115 receives the G-code selected by the user via the input unit 12 functioning as a G-code selection receiving unit on the display screen displayed on the display unit 13 functioning as a usable G-code display unit.

[0046] In step S9, the program generation unit 115 displays a setting screen (eg, FIG. 5A) for the G-code received in step S8 on the display unit 13, and receives parameters input by the user via the input unit 12.

[0047] In step S10, the program generator 115 adds a block containing the selected G-code using the parameters entered by the user in step S9 (eg, FIG. 5B).

[0048] In step S11, the program generating unit 115 determines whether the generation of the machining program has been completed. When the program generating unit 115 receives an input such as "save" or "end" of the machining program from the user via the input unit 12, it determines that the generation of the machining program has been completed, and the process ends. On the other hand, when the program generating unit 115 does not receive an input such as "save" or "end" of the machining program from the user via the input unit 12, it determines that the generation of the machining program has not been completed, and the process returns to step S1.

[0049] <Step S1: Tool information acquisition process> FIG. 7 is a flowchart illustrating the tool information acquisition process shown in step S1 in FIG.

[0050] In step S1A, the tool information acquisition unit 110 determines whether or not tool information has been input based on an input operation by a user via the input unit 12. If tool information has been input, the process proceeds to step S1B. On the other hand, if tool information has not been input, the process proceeds to step S1C.

[0051] In step S1B, the tool information acquisition unit 110 acquires tool information (eg, tool number, tool type, etc.) input by the user via the input unit 12.

[0052] In step S1C, the tool information acquisition unit 110 acquires tool information (eg, tool number, tool type, etc.) from tooling data acquired in advance from tool management data (not shown) of the machine tool 20. With the above, the flow of the tool information acquisition process ends, and the process returns to the flow of FIG.

[0053] <Step S3: Machinable Shape Extraction Processing> 8A and 8B are a flowchart illustrating the manufacturable shape extraction process shown in step S3 in FIG.

[0054] In step S31, the manufacturable shape extraction unit 112 determines whether the shape ID extracted in step S2 is "1" for a hole shape. If the shape ID is "1" for a hole shape, the process proceeds to step S32. On the other hand, if the shape ID is not "1" for a hole shape, the process proceeds to step S34.

[0055] In step S32, the machineable shape extraction unit 112 performs a process of determining whether or not the CAD data of the workpiece includes a hole shape with a shape ID of "1." The detailed flow of the determination process in step S32 will be described later.

[0056] In step S33, if the result of the determination process in step S32 indicates that a hole shape is present, the process proceeds to step S3G. On the other hand, if the result of the determination process in step S32 indicates that a hole shape is not present, the process proceeds to step S3H.

[0057] In step S34, the manufacturable shape extraction unit 112 determines whether the shape ID extracted in step S2 is "2" for a screw shape. If the shape ID is "2" for a screw shape, the process proceeds to step S35. On the other hand, if the shape ID is not "2" for a screw shape, the process proceeds to step S37 in FIG. 8B.

[0058] In step S35, the machineable shape extraction unit 112 performs a process of determining whether or not the CAD data of the workpiece includes a screw shape with a shape ID of "2." The detailed flow of the determination process in step S35 will be described later.

[0059] In step S36, if the result of the determination process in step S35 indicates that a thread shape is present, the process proceeds to step S3G. On the other hand, if the result of the determination process in step S35 indicates that a thread shape is not present, the process proceeds to step S3H.

[0060] In step S37 of Fig. 8B, the manufacturable shape extraction unit 112 determines whether the shape ID extracted in step S2 is "3" for a pocket shape. If the shape ID is "3" for a pocket shape, the process proceeds to step S38. On the other hand, if the shape ID is not "3" for a pocket shape, the process proceeds to step S3A.

[0061] In step S38, the machineable shape extraction unit 112 performs a process of determining whether or not the CAD data of the workpiece includes a pocket shape with a shape ID of "3." The detailed flow of the determination process in step S38 will be described later.

[0062] In step S39, if the result of the determination process in step S38 indicates that a pocket shape exists, the process proceeds to step S3G. On the other hand, if the result of the determination process in step S38 indicates that a pocket shape does not exist, the process proceeds to step S3H in FIG. 8A.

[0063] In step S3A, the manufacturable shape extraction unit 112 determines whether the shape ID extracted in step S2 is the contour shape "4". If the shape ID is the contour shape "4", the process proceeds to step S3B. On the other hand, if the shape ID is not the contour shape "4", the process proceeds to step S3D.

[0064] In step S3B, the machineable shape extraction unit 112 performs a process of determining whether or not the CAD data of the workpiece includes a contour shape with a shape ID of "4." The detailed flow of the determination process in step S3B will be described later.

[0065] In step S3C, if the result of the determination process in step S3B indicates that a contour shape is present, the process proceeds to step S3G in Fig. 8A. On the other hand, if the result of the determination process in step S3G indicates that a contour shape is not present, the process proceeds to step S3H in Fig. 8A.

[0066] In step S3D, the manufacturable shape extraction unit 112 determines whether the shape ID extracted in step S2 is "5" for a sloped shape. If the shape ID is "5" for a sloped shape, the process proceeds to step S3E. On the other hand, if the shape ID is not "5" for a contour shape, the process proceeds to step S3H in FIG. 8A.

[0067] In step S3E, the machineable shape extraction unit 112 performs a process of determining whether or not the CAD data of the workpiece includes an inclined shape with a shape ID of "5." The detailed flow of the determination process in step S3E will be described later.

[0068] In step S3F, if the result of the determination process in step S3E indicates that there is an inclined shape, the process proceeds to step S3G in Fig. 8A. On the other hand, if the result of the determination process in step S3E indicates that there is no inclined shape, the process proceeds to step S3H in Fig. 8A.

[0069] In step S3G, the manufacturable shape extraction unit 112 extracts a manufacturable shape corresponding to the shape ID from the CAD data. The process proceeds to step S3H.

[0070] In step S3H, the manufacturable shape extraction unit 112 judges whether or not all the extracted shape IDs have been checked. If all the extracted shape IDs have not been checked, the process returns to step S31. On the other hand, if all the extracted shape IDs have been checked, the flow of the manufacturable shape extraction process in step S3 ends, and the process returns to the flow of FIG. 6.

[0071] <Selected Shape Acquisition Processing in Step S5> FIG. 9 is a flowchart illustrating the selected shape acquisition process shown in step S5 in FIG.

[0072] In step S51, the selected shape acquisition unit 113 determines whether the machining shape selected by the user is a hole shape. If the machining shape selected by the user is a hole shape, the process proceeds to step S52. On the other hand, if the machining shape selected by the user is not a hole shape, the process proceeds to step S53.

[0073] In step S52, the selected shape acquisition unit 113 acquires the shape ID "1" of the hole shape selected by the user.

[0074] In step S53, the selected shape acquisition unit 113 determines whether the machining shape selected by the user is a screw shape. If the machining shape selected by the user is a screw shape, the process proceeds to step S54. On the other hand, if the machining shape selected by the user is not a screw shape, the process proceeds to step S55.

[0075] In step S54, the selected shape acquisition unit 113 acquires the shape ID "2" of the screw shape selected by the user.

[0076] In step S55, the selected shape acquisition unit 113 judges whether the machining shape selected by the user is a pocket shape. If the machining shape selected by the user is a pocket shape, the process proceeds to step S56. On the other hand, if the machining shape selected by the user is not a pocket shape, the process proceeds to step S57.

[0077] In step S56, the selected shape obtaining unit 113 obtains the shape ID "3" of the pocket shape selected by the user.

[0078] In step S57, the selected shape acquisition unit 113 determines whether the machining shape selected by the user is a contour shape. If the machining shape selected by the user is a contour shape, the process proceeds to step S58. On the other hand, if the machining shape selected by the user is not a contour shape, the process proceeds to step S59.

[0079] In step S58, selected shape obtaining unit 113 obtains the shape ID "4" of the contour shape selected by the user.

[0080] In step S59, the selected shape acquisition unit 113 determines whether the processing shape selected by the user is an inclined shape. If the processing shape selected by the user is an inclined shape, the process proceeds to step S5A. On the other hand, if the processing shape selected by the user is not an inclined shape, the flow of the selected shape acquisition process ends, and the process returns to the flow of FIG. 6.

[0081] In step S5A, the selected shape acquisition unit 113 determines that the processing shape selected by the user is an inclined shape, and acquires the shape ID of the inclined shape, "5." This ends the flow of the selected shape acquisition process, and the process returns to the flow of FIG.

[0082] <Determination process of step S32> FIG. 10 is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes a hole shape with a shape ID "1" in step S32 of FIG. 8A. FIG. 11 is a diagram showing an example of CAD data of a hole shape. As shown in FIG. 11, an end point P S and endpoint P E The distance between the hole and the hole diameter is L i , end point P S The distance from the tip of the hole is L i+1 , end point P E The distance from the tip of the hole is L i+2 , end point P S The distance from the end of the hole shape to the end of the hole shape is L i+3 , and the end point P E The distance from the end of the hole shape to the end of the hole shape is L i+4 In addition, the line L i and the line L i+3 The angle with the line L i and the line L i+4 The angle between the line and the point is 90 degrees. i , L i+1 , L i+2 The triangle consisting of isosceles and the line L i and the line Li+1 The angle between the line L and i and the line L i+2 The angle between and is the same.

[0083] In step S321, the manufacturable shape extraction unit 112 initializes i to "0".

[0084] In step S322, the manufacturable shape extraction unit 112 increments i by one.

[0085] In step S323, the machineable shape extraction unit 112 extracts an end point P S A straight line L with i+1 , L i+3 Determine whether or not there is a line L i+1 , L i+3 If there is a line L, the process proceeds to step S324. i+1 , L i+3 If not, the process proceeds to step S329.

[0086] In step S324, the machineable shape extraction unit 112 extracts an end point P E A straight line L with i+2 , L i+4 Determine whether or not there is a line L i+2 , L i+4 If there is a line L, the process proceeds to step S325. i+2 , L i+4 If not, the process proceeds to step S329.

[0087] In step S325, the manufacturable shape extraction unit 112 extracts a straight line L i and the line L i+3 The angle with the line L i and the line L i+4 Determine whether the angle between the line L and the point L is 90 degrees. i and the line L i+3 The angle with the line L i and the line L i+4 If the angle between the line L and the line L is 90 degrees, the process proceeds to step S326. iand the line L i+3 Angle with and / or line L i and the line L i+4 If the angle is not 90 degrees, the process proceeds to step S329.

[0088] In step S326, the manufacturable shape extraction unit 112 extracts a straight line L i and the line L i+1 The angle between the line L and i and the line L i+2 Determine whether the angle between and is equal. i and the line L i+1 The angle between the line L and i and the line L i+2 If the angle between the line L and the line θ is equal to the line θ, the process proceeds to step S327. i and the line L i+1 The angle between the line L and i and the line L i+2 If the angle and are not equal, the process proceeds to step S329.

[0089] In step S327, the manufacturable shape extraction unit 112 extracts a straight line L i Determine whether the line L is parallel to the X-axis or the Y-axis. i If the line L is parallel to the X-axis or the Y-axis, the process proceeds to step S328. i If is not parallel to the X-axis and Y-axis, the process proceeds to step S329.

[0090] In step S328, the machineable shape extraction unit 112 determines that the CAD data of the workpiece has a hole shape. The flow of the determination process in step S32 ends, and the process returns to the flow in FIG. 8A.

[0091] In step S329, the manufacturable shape extraction unit 112 judges whether or not all the straight lines have been checked. If all the straight lines have been checked, the judgment process flow in step S32 ends, and the process returns to the flow in Fig. 8A. On the other hand, if all the straight lines have not been checked, the process returns to step S322.

[0092] <Determination process of step S35> FIG. 12 is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes a screw shape with shape ID "2" in step S35 of FIG. 8A. The processes in steps S351, S352, and S359 are similar to those in steps S321, S322, and S329 in FIG. 10, and therefore will not be described. FIG. 13 is a diagram showing an example of CAD data of a screw shape. The screw shape in FIG. 13 includes the same hole shape as in FIG. 11. Therefore, the description of the hole shape is omitted. As shown in FIG. 13, an end point P NS and endpoint P NE The distance between i+5 , end point P NS The distance from the end of the thread is L i+6 , end point P NE The distance from the end of the thread is L i+7 The screw shape is formed in the hole shape of FIG.

[0093] In step S353, the machineable shape extraction unit 112 determines whether or not the CAD data of the workpiece has a hole shape by performing the same determination process as in Fig. 10. If the CAD data of the workpiece has a hole shape, the process proceeds to step S354. On the other hand, if the CAD data of the workpiece does not have a hole shape, the process proceeds to step S359.

[0094] In step S354, the machineable shape extraction unit 112 adds an end point P NS and endpoint P NE A straight line L connecting i+5 Determine whether or not there is a line L i+5 If there is a line L, the process proceeds to step S355. i+5 If not, the process proceeds to step S359.

[0095] In step S355, the machineable shape extraction unit 112 extracts an end point P NS A straight line L with i+6 Determine whether or not there is a line Li+6 If there is a line L, the process proceeds to step S356. i+6 If not, the process proceeds to step S359.

[0096] In step S356, the machineable shape extraction unit 112 extracts an end point P NE A straight line L with i+7 Determine whether or not there is a line L i+7 If there is a line L, the process proceeds to step S357. i+7 If not, the process proceeds to step S359.

[0097] In step S357, the manufacturable shape extraction unit 112 extracts a straight line L i+5 and the line L i+6 The angle with the line L i+5 and the line L i+7 Determine whether the angle between the line L and the point L is 90 degrees. i+5 and the line L i+6 The angle with the line L i+5 and the line L i+7 If the angle between the line L and the line L is 90 degrees, the process proceeds to step S358. i+5 and the line L i+6 Angle with and / or line L i+5 and the line L i+7 If the angle is not 90 degrees, the process proceeds to step S359.

[0098] In step S358, the machineable shape extraction unit 112 determines that the CAD data of the workpiece includes a screw shape. The determination process flow in step S35 ends, and the process returns to the flow in FIG. 8A.

[0099] <Determination process of step S38> FIG. 14 is a flowchart for explaining the process of determining whether or not the CAD data of the workpiece includes a pocket shape with a shape ID "3" in step S38 of FIG. 8A. The processes in steps S381, S382, and S38A are similar to those in steps S321, S322, and S329 in FIG. 10, and therefore will not be described. Fig. 15 is a diagram showing an example of CAD data of a pocket shape. The upper part of Fig. 15 shows the pocket shape as viewed from above, and the lower part of Fig. 15 shows the pocket shape as viewed from the front. As shown in Fig. 15, SL and endpoint P SR The line connecting LR Let us assume that.

[0100] In step S383, the machineable shape extraction unit 112 extracts an element E adjacent to any one element in the CAD data of the workpiece. j (j is an integer from 1 to n, and n is an integer greater than or equal to 1).

[0101] In step S384, the manufacturable shape extraction unit 112 extracts the element E j From the leftmost point P of the shape in the X-axis direction L , and the rightmost point P R Get the.

[0102] In step S385, the manufacturable shape extraction unit 112 extracts from all straight line elements a point P L Or point P R The line L is the same as the Y coordinate value (Y value) of L , L R Explore.

[0103] In step S386, the manufacturable shape extraction unit 112 extracts a straight line L L , L R Determine whether or not there is a line L L , L R If there is a line L, the process proceeds to step S387. L , L R If not, the process proceeds to step S38A.

[0104] In step S387, the manufacturable shape extraction unit 112 extracts a straight line L L The smallest Y value of P SL and the line L R The smallest Y value of P SR A straight line L connecting LR Determine whether or not there is a line L LR If there is a line L, the process proceeds to step S388. LR If not, the process proceeds to step S38A.

[0105] In step S388, the manipulable shape extraction unit 112 extracts another end point P SL , P SR Determine whether there are any elements that pass through the other endpoints P SL , P SR If there is no element passing through, the process proceeds to step S389. SL , P SR If there is an element that passes through, the process proceeds to step S38A.

[0106] In step S389, the machineable shape extraction unit 112 determines that the CAD data of the workpiece has a pocket shape. The determination process flow in step S38 ends, and the process returns to the flow in FIG. 8A.

[0107] <Determination process of step S3B> FIG. 16 is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes a contour shape with shape ID "4" in step S3B of FIG. 8B. The processes from step S3B1 to step S3B6 and step S3BA are similar to the processes from step S381 to step S386 and step S38A in FIG. 14, and therefore the description thereof will be omitted. Fig. 17 is a diagram showing an example of CAD data of a contour shape. The upper part of Fig. 17 shows the contour shape as viewed from above, and the lower part of Fig. 17 shows the contour shape as viewed from the front. As shown in Fig. 17, LL and endpoint P LR The line connecting LR Let us assume that.

[0108] In step S3B7, the manufacturable shape extraction unit 112 extracts a straight line L L The larger Y value of the end point P LL and the line L R The larger Y value of the end point P LR A straight line L connecting LR Determine whether or not there is a line L LR If there is a line L, the process proceeds to step S3B8. LR If not, the process proceeds to step S3BA.

[0109] In step S3B8, the manipulable shape extraction unit 112 extracts other end points P LL , P LR Determine whether there are any elements that pass through the other endpoints P LL , P LR If there is no element passing through, the process proceeds to step S3B9. LL , P LR If there is an element that passes through, the process proceeds to step S3BA.

[0110] In step S3B9, the machineable shape extraction unit 112 determines that the CAD data of the workpiece includes a contour shape. The determination process flow in step S3B ends, and the process returns to the flow in FIG. 8B.

[0111] <Determination process of step S3E> FIG. 18 is a flowchart illustrating the process of determining whether or not the CAD data of the workpiece includes an inclined shape with shape ID "5" in step S3E of FIG. 8B. The processes from step S3E1 to step S3E6 and step S3E9 are similar to the processes from step S321 to step S326 and step S329 in FIG. 10, and therefore will not be described. Fig. 19 is a diagram showing an example of CAD data of an inclined shape. As shown in Fig. 19, the inclined shape is a shape obtained by inclining the hole shape of Fig. 11, and the same elements as those of Fig. 11 are given the same reference numerals and description thereof will be omitted.

[0112] In step S3E7, the manufacturable shape extraction unit 112 extracts a straight line L i Determine whether the line L is parallel to the X-axis and Y-axis. i If the line L is not parallel to the X-axis and the Y-axis, the process proceeds to step S3E8. i If is parallel to the X-axis or the Y-axis, the process proceeds to step S3E9.

[0113] In step S3E8, the machineable shape extraction unit 112 determines that the CAD data of the workpiece includes an inclined shape. The determination process flow in step S3E ends, and the process returns to the flow in FIG. 8B.

[0114] As described above, the numerical control device 10 according to the first embodiment extracts a shape ID indicating a shape that can be machined with the tool selected by the user based on the tool information of the tool selected by the user and the linking table 141, and displays the shape that can be machined with the extracted shape ID. The numerical control device 10 further narrows down the available G-codes based on the shape ID of the shape selected by the user from the displayed machineable shapes, the selected tool information, and the linking table 141. This allows the numerical control device 10 to display a narrowed down G-code and / or machining shape based on the selected tool. The numerical control device 10 can easily select machineable shapes and available G-codes, thereby shortening the time required to create a machining program. Furthermore, the numerical control device 10 presents machineable shapes and usable G-codes and allows the user to select one of them, thereby making it possible to prevent the user from inputting an incorrect machining program. The first embodiment has been described above.

[0115] <Second embodiment> Next, a second embodiment will be described. As described above, the numerical control device 10 according to the first embodiment stores a linking table 141 in which tool information on a plurality of tools, a shape ID indicating a shape that each of the plurality of tools can process, and at least one G-code that can be used to process the shape indicated by the shape ID are linked in advance, and extracts a shape ID indicating a shape that can be processed by the selected tool based on the tool information of the tool selected by the user and the linking table 141, and displays the shape that can be processed by the extracted shape ID. The numerical control device 10 further narrows down the usable G-codes based on the shape ID of the shape selected by the user from the displayed machineable shapes and the linking table 141. In contrast, the numerical control device 10A according to the second embodiment stores a linking table 141 in which tool information on a plurality of tools, shape IDs indicating shapes that each of the plurality of tools can machine, and at least one G-code that can be used to machine the shape indicated by the shape ID are linked in advance, and the numerical control device 10A extracts a G-code that can be used with the selected tool based on the tool information of the tool selected by the user and the linking table 141, and displays the extracted G-code. The numerical control device 10A differs from the first embodiment in that it further narrows down the machineable shapes based on the G-code selected by the user from the displayed G-codes and the linking table 141. This allows the numerical control device 10A to display a narrowed down G-code and / or machining shape depending on the selected tool. The second embodiment will be described below.

[0116] Fig. 20 is a functional block diagram showing an example of the functional configuration of a control system according to the second embodiment. Elements having the same functions as those of the control system 1 in Fig. 1 are given the same reference numerals, and detailed description thereof will be omitted. As shown in FIG. 20, the control system 1 includes a numerical control device 10A and a machine tool 20. The machine tool 20 has the same functions as the machine tool 20 according to the first embodiment.

[0117] 20, the numerical control device 10A includes a control unit 11a, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11a includes a tool information acquisition unit 110, a shape ID information extraction unit 111a, a machineable shape extraction unit 112, a usable G-code extraction unit 114a, a program generation unit 115, and a selected G-code acquisition unit 116. In addition, the storage unit 14 includes a linking table 141.

[0118] The input unit 12, the display unit 13, and the storage unit 14 have the same functions as the input unit 12, the display unit 13, and the storage unit 14 according to the first embodiment. In addition, the tool information acquisition unit 110, the machineable shape extraction unit 112, and the program generation unit 115 have functions equivalent to those of the tool information acquisition unit 110, the machineable shape extraction unit 112, and the program generation unit 115 according to the first embodiment.

[0119] The usable G-code extraction unit 114a queries the linking table 141, which is the linking information storage unit, using the tool information acquired by the tool information acquisition unit 110, and extracts G-codes that can be used with the tool of the acquired tool information. Specifically, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number "T10", the available G-code extraction unit 114a extracts the available G-code ID "G id " " is "1" and the available drill cycle "G81", drill cycle "G82", deep hole drilling cycle "G83", cancel "G80", drill cycle "G1110", and drill cycle "G1111", and the G code ID "G id The usable G-code extraction unit 114a extracts the G-codes of the inclined surface indexing command "G68.2", the inclined surface indexing command based on the tool axis direction "G68.3", and the inclined surface indexing command (incremental multiple command) "G68.4", which are usable G-codes with a G-code ID of "5". In addition, when the tool information acquired by the tool information acquisition unit 110 includes the tool number "T20", for example, the usable G-code extraction unit 114a extracts the G-codes of the inclined surface indexing command "G68.4", which are usable G-codes with a G-code ID of "5", based on the association table 141. idIn addition, when the tool information acquired by the tool information acquisition unit 110 includes the tool number "T30", the available G-code extraction unit 114a extracts the G-codes of the tapping ring "G84" and the tapping ring "G1112" that have a G-code ID of "2" based on the association table 141. id "3" can be used for rough pocket machining "G1040", bottom finishing of pocket machining "G1041", and side finishing of pocket machining "G1042", and the G code ID "G id " is "4" and the G codes for "G1060" (rough exterior wall processing for contour processing), "G1061" (exterior wall bottom surface finishing for contour processing), and "G1062" (exterior wall side surface finishing for contour processing) are extracted.

[0120] Then, the display unit 13, which functions as an available G-code display unit, displays the available G-code extracted by the available G-code extraction unit 114a. FIG. 21 is a diagram showing an example of a display screen of available G-codes. For example, when an end mill with tool number "T30" is selected by the user as a tool, as shown in FIG. 21, the display unit 13 as an available G-code display unit displays the G-codes for rough pocket machining "G1040", bottom surface finishing of pocket machining "G1041", side surface finishing of pocket machining "G1042", outer wall rough machining of contour machining "G1060", bottom surface finishing of outer wall machining "G1061", and side surface finishing of outer wall machining "G1062".

[0121] For example, when a G-code is selected by the user via the input unit 12 as a G-code selection receiving unit on the display screen of Fig. 21 displayed on the display unit 13 as a usable G-code display unit, the selected G-code acquisition unit 116 acquires the selected G-code. The selected G-code acquisition unit 116 outputs the acquired G-code together with the tool information acquired by the tool information acquisition unit 110 to the shape ID information extraction unit 111a described later.

[0122] The shape ID information extraction unit 111a queries the linking table 141, which serves as a linking information storage unit, using the tool information and G code received from the selected G code acquisition unit 116, and further narrows down the shape IDs of shapes that can be machined using the received G code with the tool of the received tool information. Specifically, when the shape ID information extraction unit 111a receives, for example, the tool number “T10” acquired by the tool information acquisition unit 110 and the G-code of the deep hole drilling cycle “G83” selected by the user via the input unit 12 as the G-code selection receiving unit from the selected G-code acquisition unit 116, the shape ID information extraction unit 111a extracts the shape ID (S id In addition, when the shape ID information extraction unit 111a receives, for example, the tool number "T20" acquired by the tool information acquisition unit 110 and the G-code of the tapping ring "G84" selected by the user via the input unit 12 as the G-code selection reception unit from the selected G-code acquisition unit 116, the shape ID (S id In addition, when the shape ID information extraction unit 111a receives, for example, the tool number "T30" acquired by the tool information acquisition unit 110 and the G-code of the rough machining of pocket machining "G1040" selected by the user via the input unit 12 as the G-code selection reception unit from the selected G-code acquisition unit 116, the shape ID (S id In addition, when the shape ID information extraction unit 111a receives, for example, the tool number "T30" acquired by the tool information acquisition unit 110 and the G-code of the outer wall rough machining "G1060" for contour machining selected by the user via the input unit 12 as a G-code selection reception unit from the selected G-code acquisition unit 116, the shape ID (S id In addition, when the shape ID information extraction unit 111a receives, for example, the tool number "T10" acquired by the tool information acquisition unit 110 and the G-code of the inclined surface indexing command "G68.2" selected by the user via the input unit 12 as a G-code selection receiving unit from the selected G-code acquisition unit 116, the shape ID (S id) Extract and narrow down "5".

[0123] Then, the display unit 13 as a manipulable shape display unit displays the manipulable shapes extracted from the CAD data of the workpiece by the manipulable shape extraction unit 112, based on the shape IDs narrowed down by the above-mentioned shape ID information extraction unit 111a. FIG. 22 is a diagram showing an example of a display screen of the extracted manufacturable shapes. For example, in Fig. 21, when the user selects the G-code for the outer wall rough machining "G1060" for contour machining, the shape ID information extraction unit 111a extracts the shape ID "4". Then, the machineable shape extraction unit 112 extracts only the contour shape of the shape ID "4" in the CAD data shown in Fig. 28A and Fig. 28B. As shown in Fig. 22, the display unit 13 as the machineable shape display unit may display the extracted contour shape by highlighting it with a thick line. In this way, the numerical control device 10A can easily select the G-code and the machining shape, and can shorten the time required to create the machining program. In addition, the numerical control device 10A can prevent the user from inputting the wrong machining program by presenting the available G-code and the machineable shape and allowing the user to select it. Although the display unit 13 as the manipulable shape display unit highlights the extracted machining shape with a thick line, it may also be highlighted with a line other than a thick line, or may be highlighted with a line of a color such as red.

[0124] <Machining program generation process of the numerical control device 10A> Next, the flow of processing for generating a machining program by the numerical control device 10A will be described with reference to FIG. 23 is a flowchart for explaining the machining program generation process of the numerical control device 10A. The flow shown here is executed every time a machining program is generated.

[0125] In step S'1, the tool information acquisition unit 110 performs a tool information acquisition process similar to step S1 in the first embodiment based on a user's input operation via the input unit 12, and acquires tool information (e.g., tool number, tool type, etc.).

[0126] In step S'2, the usable G-code extraction unit 114a queries the linking table 141, which is the linking information storage unit, using the tool information acquired in step S'1, and extracts G-codes that can be used with the tool of the acquired tool information.

[0127] In step S'3, the display unit 13 as an available G-code display unit displays the available G-code extracted in step S'2 (eg, FIG. 21).

[0128] In step S'4, the selected G-code acquisition unit 116 acquires the G-code selected by the user via the input unit 12 as a G-code selection receiving unit on a display screen (e.g., Figure 21) displayed on the display unit 13 as a usable G-code display unit.

[0129] In step S'5, the shape ID information extraction unit 111a queries the linking table 141 with the tool information acquired in step S'1 and the G code selected in step S'4, and further narrows down the shape IDs of shapes that can be machined using the G code selected for the tool in the acquired tool information.

[0130] In step S'6, the machineable shape extraction unit 112 performs a machineable shape extraction process similar to step S3 in the first embodiment based on the shape ID extracted in step S'5, and extracts a machineable shape from the CAD data of the target workpiece.

[0131] In step S'7, the display unit 13 as a manipulable shape display unit displays the manipulable shape extracted in step S'6 (eg, FIG. 22).

[0132] In step S'8, the program generating section 115 receives a shape selected by the user via the input section 12 functioning as a shape selection receiving section on the display screen displayed on the display section 13 functioning as a manipulable shape display section.

[0133] In step S'9, the program generation unit 115 displays a setting screen for the G code selected in step S'4 on the display unit 13 (e.g., Figure 24) in order to process the shape accepted in step S'8, and accepts parameters input by the user via the input unit 12. FIG. 24 is a diagram showing an example of a setting screen in the case of the G-code "G1060" for rough machining of the outer wall for contour machining.

[0134] In step S'10, the program generator 115 adds a block containing the selected G-code using the parameters entered by the user in step S'9. 25 is a diagram showing an example of a screen on which a block of the selected G-code has been added. Note that "G1200" is a G-code that sets the start point of the contouring, and "G1201" is a G-code that sets a straight line for the contouring.

[0135] In step S'11, the program generating unit 115 determines whether the generation of the machining program has been completed, similarly to step S11 in the first embodiment. When the program generating unit 115 receives an input such as "save" or "end" of the machining program from the user via the input unit 12, it determines that the generation of the machining program has been completed, and the process ends. On the other hand, when the program generating unit 115 does not receive an input such as "save" or "end" of the machining program from the user via the input unit 12, it determines that the generation of the machining program has not been completed, and the process returns to step S'1.

[0136] As described above, the numerical control device 10A according to the second embodiment extracts G-codes that can be used with the tool selected by the user based on the tool information of the tool selected by the user and the correlating table 141, and displays the extracted usable G-codes. The numerical control device 10 further narrows down the machineable shapes based on the G-code selected by the user from the displayed usable G-codes, the selected tool information, and the correlating table 141. This allows the numerical control device 10A to display a narrowed down G-codes and / or machining shapes based on the selected tool. The numerical control device 10A can easily select machineable machining shapes and usable G-codes, thereby shortening the time required to create a machining program. Furthermore, the numerical control device 10A presents possible machining shapes and available G codes to the user for selection, thereby making it possible to prevent the user from inputting an incorrect machining program. The second embodiment has been described above.

[0137] Although the first and second embodiments have been described above, the numerical control devices 10, 10A are not limited to the above-described embodiments, and include modifications and improvements within the scope of achieving the object.

[0138] <Modification> In the above-described first and second embodiments, the numerical control devices 10, 10A are devices separate from the machine tool 20, but are not limited to this. For example, the numerical control devices 10, 10A may be included in the machine tool 20.

[0139] When all or part of the numerical control device 10, 10A is configured from software, this can be realized by storing the information necessary for the calculation in the DRAM and running the program on the CPU in a computer configured with a memory unit such as a hard disk or ROM that stores a program describing all or part of the operation of the numerical control device 10, 10A, a DRAM that stores data necessary for the calculation, a CPU, and a bus connecting each unit.

[0140] These programs can be stored and provided to a computer using various types of non-transitory computer readable media. Non-transitory computer readable media include various types of tangible storage media. Examples of non-transitory computer readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs). The programs may also be provided to a computer by various types of transitory computer readable media. Examples of transitory computer readable media include electrical signals, optical signals, and electromagnetic waves. The transitory computer readable media can provide the programs to a computer via wired communication paths such as electric wires and optical fibers, or wireless communication paths. These programs may also be distributed by being downloaded to users' computers via a network.

[0141] In addition, the steps of writing a program to be recorded on a recording medium include not only processes that are performed chronologically according to the order, but also processes that are not necessarily performed chronologically but are executed in parallel or individually.

[0142] In other words, the numerical control device of the present disclosure can take various forms having the following configurations.

[0143] (1) The numerical control device 10 disclosed herein is a numerical control device that automatically generates a machining program, and includes a memory unit 14 that stores a linking table 141 in which tool information on a plurality of tools, a shape ID indicating a shape that each of the plurality of tools can machine, and at least one G code that can be used to machine the shape indicated by the shape ID are pre-linked, a tool information acquisition unit 110 that acquires tool information on a tool selected for machining, a shape ID information extraction unit 111 that queries the linking table 141 with the acquired tool information and extracts a shape ID indicating a shape that can be machined with the tool of the acquired tool information, a machineable shape extraction unit 112 that extracts a machineable shape from CAD data based on the extracted shape ID, and a display unit 13 as a machineable shape display unit that displays the extracted machineable shape. According to this numerical control device 10, it is possible to display a narrowed down G-code and / or machining shape depending on the selected tool.

[0144] (2) The numerical control device 10 described in (1) may further include an input unit 12 as a shape selection receiving unit that selects the extracted machineable shape, a selected shape acquisition unit 113 that acquires a shape ID of the selected machineable shape, and a usable G-code extraction unit 114 that queries the linking table 141 using the shape ID of the machineable shape acquired by the selected shape acquisition unit 113 and the acquired tool information, to further narrow down the G-codes that can be used to machine the shape of the acquired shape ID with the tool in the acquired tool information. In this way, the numerical control device 10 can easily select a machining shape that can be machined and a usable G code, and the time required to create a machining program can be reduced.

[0145] (3) The numerical control device 10 described in (2) may further include a display unit 13 as an available G-code display unit that displays the available G-codes narrowed down by the available G-code extraction unit 114, and an input unit 12 as a G-code selection receiving unit that selects a G-code from the displayed available G-codes. In this way, the numerical control device 10 can prevent the user from inputting an incorrect machining program by presenting possible machining shapes and usable G-codes and allowing the user to select one of them.

[0146] (4) The numerical control device 10A disclosed herein is a numerical control device that automatically generates a machining program, and includes a memory unit 14 that stores a linking table 141 in which tool information on a plurality of tools, a shape ID indicating a shape that each of the plurality of tools can machine, and at least one G-code that can be used to machine the shape indicated by the shape ID are linked in advance, a tool information acquisition unit 110 that acquires tool information on a tool selected for machining, a usable G-code extraction unit 114a that queries the linking table 141 with the acquired tool information and extracts a G-code that can be used with the tool of the acquired tool information, and a display unit 13 as an usable G-code display unit that displays the extracted usable G-code. According to this numerical control device 10A, it is possible to achieve the same effect as (1).

[0147] (5) The numerical control device 10A described in (4) may further include an input unit 12 as a G-code selection receiving unit that selects the extracted usable G-code, a selected G-code acquisition unit 116 that acquires the selected usable G-code, and a shape ID information extraction unit 111a that queries the linking table 141 using the usable G-code acquired by the selected G-code acquisition unit 116 and the acquired tool information, and further narrows down the shape ID indicating the shape that can be machined with the usable G-code selected for the tool in the acquired tool information. In this way, the numerical control device 10A can achieve the same effect as (2).

[0148] (6) The numerical control device 10A described in (5) may further include a machineable shape extraction unit 112 that extracts machineable shapes from CAD data based on the shape ID narrowed down by the shape ID information extraction unit 111a, and a display unit 13 as a machineable shape display unit that displays the extracted machineable shapes. In this way, the numerical control device 10A can achieve the same effect as (3). [Explanation of symbols]

[0149] 1. Control System 10, 10A Numerical Control Device 11, 11a Control section 110 Tool information acquisition section 111, 111a Shape ID information extraction part 112 Processable shape extraction section 113 Selection shape acquisition unit 114, 114a Usable G-code extraction section 115 Program Generation Unit 116 Selected G code acquisition section 12 Input section 13 Display section 14 Storage section 141 Linking Table 20 Machine tools

Claims

1. A numerical control device that automatically generates a machining program, a linking information storage unit that stores linking information in which tool information on a plurality of tools, a shape identifier indicating a shape that each of the plurality of tools can process, and at least one G-code that can be used to process the shape indicated by the shape identifier are linked in advance; a tool information acquisition unit that acquires tool information related to a tool selected for machining; a shape ID information extraction unit that queries the associated information storage unit with the acquired tool information and extracts a shape identifier that indicates a shape that can be machined by the tool of the acquired tool information and is associated with the G-code; a machineable shape extraction unit that extracts a machineable shape from CAD data of a workpiece to be machined based on the extracted shape identifier; a machineable shape display unit that displays the extracted machineable shape, the displayed machineable shape being selectable by a user to display the usable G-code; A numerical control device comprising:

2. A numerical control device that automatically generates a machining program, a linking information storage unit that stores linking information in which tool information on a plurality of tools, a shape identifier indicating a shape that each of the plurality of tools can process, and at least one G-code that can be used to process the shape indicated by the shape identifier are linked in advance; a tool information acquisition unit that acquires tool information related to a tool selected for machining; a shape ID information extraction unit that queries the association information storage unit with the acquired tool information and extracts a shape identifier that indicates a shape that can be machined by the tool of the acquired tool information; a machineable shape extraction unit that extracts a machineable shape from the CAD data based on the extracted shape identifier; a machineable shape display unit that displays the extracted machineable shape; Equipped with a shape selection receiving unit for selecting the extracted processable shape; A selected shape acquisition unit that acquires a shape identifier of the selected processable shape; and a usable G-code extraction unit that queries the linking information storage unit using the shape identifier of the machineable shape acquired by the selected shape acquisition unit and the acquired tool information, and further narrows down G-codes that can be used to machine the shape of the shape identifier acquired with the tool of the acquired tool information.

3. an available G-code display unit that displays the available G-codes narrowed down by the available G-code extraction unit; The numerical control device according to claim 2 , further comprising a G-code selection receiving unit that selects a G-code from the displayed usable G-codes.

4. A numerical control device that automatically generates a machining program, a linking information storage unit that stores linking information in which tool information on a plurality of tools, a shape identifier indicating a shape that each of the plurality of tools can process, and at least one G-code that can be used to process the shape indicated by the shape identifier are linked in advance; a tool information acquisition unit that acquires tool information related to a tool selected for machining; a usable G-code extraction unit that queries the associated information storage unit with the acquired tool information and extracts a G-code that is usable with the tool of the acquired tool information and is associated with the shape identifier; an available G-code display unit that displays all of the extracted G-codes, the displayed G-codes being selectable by a user to display the machineable shape; A numerical control device comprising:

5. A numerical control device that automatically generates a machining program, a linking information storage unit that stores linking information in which tool information on a plurality of tools, a shape identifier indicating a shape that each of the plurality of tools can process, and at least one G-code that can be used to process the shape indicated by the shape identifier are linked in advance; a tool information acquisition unit that acquires tool information related to a tool selected for machining; a usable G-code extraction unit that queries the association information storage unit with the acquired tool information and extracts a G-code that can be used with the tool of the acquired tool information; a usable G-code display unit that displays the extracted usable G-code; Equipped with a G-code selection receiving unit for selecting the extracted usable G-code; A selected G-code acquisition unit that acquires the selected available G-code; and a shape ID information extraction unit that queries the linking information storage unit using the usable G-code acquired by the selected G-code acquisition unit and the acquired tool information, and further narrows down shape identifiers indicating shapes that can be machined with the usable G-code selected for the tool in the acquired tool information.

6. a machineable shape extraction unit that extracts machineable shapes from the CAD data based on the shape identifiers narrowed down by the shape ID information extraction unit; The numerical control device according to claim 5 , further comprising a machineable shape display unit that displays the extracted machineable shape.

Citation Information

Patent Citations

  • Automatic programming device

    JP1992315550A

  • Nc data producing system for drilling work

    JP1994170692A

  • Boring program generating device

    JP1995168612A

  • Nc data prodcuding device for drilling

    JP1999212615A

  • Working relevant information preparation device and numerical controller equipped with the same device

    JP2002189510A