WO2022091896A1 - 数値制御装置 - Google Patents

数値制御装置 Download PDF

Info

Publication number
WO2022091896A1
WO2022091896A1 PCT/JP2021/038714 JP2021038714W WO2022091896A1 WO 2022091896 A1 WO2022091896 A1 WO 2022091896A1 JP 2021038714 W JP2021038714 W JP 2021038714W WO 2022091896 A1 WO2022091896 A1 WO 2022091896A1
Authority
WO
WIPO (PCT)
Prior art keywords
shape
code
tool
unit
processable
Prior art date
Application number
PCT/JP2021/038714
Other languages
English (en)
French (fr)
Inventor
兆甲 劉
Original Assignee
ファナック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ファナック株式会社 filed Critical ファナック株式会社
Priority to DE112021004840.6T priority Critical patent/DE112021004840T5/de
Priority to JP2022559052A priority patent/JPWO2022091896A1/ja
Priority to US18/028,092 priority patent/US20230333534A1/en
Priority to CN202180071422.6A priority patent/CN116324645A/zh
Publication of WO2022091896A1 publication Critical patent/WO2022091896A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4097Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using design data to control NC machines, e.g. CAD/CAM
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40937Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of machining or material parameters, pocket machining
    • G05B19/40938Tool management
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40931Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of geometry
    • G05B19/40932Shape input
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35216Program, generate nc program, code from cad data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a numerical control device.
  • Patent Document 1 a technique for automatically creating a machining program using CAD data is known. See, for example, Patent Document 1.
  • FIGS. 26A to 26D show an example of a change in the display screen when the user selects the machined shape and then selects the G code. It is a figure.
  • a machining program containing the selected tool eg, tool code “T10”
  • the CAD data is obtained without narrowing down the shapes that can be machined by the selected tool (tool code "T10").
  • All included shapes are displayed in the area on the right side of the screen. Then, for example, as shown in FIG. 26A, when the user selects the circular portion in order to make a deep hole in the circular portion on the upper right, the selected tool (tool code “T10”) is selected as shown in FIG. 26B. And all G-codes are displayed in the area on the right side of the screen without narrowing down the G-codes with the selected shape.
  • “G83 deep drilling cycle” is selected by the user 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. To. When the parameter of the cutting condition is set by the user on the display screen shown in FIG.
  • the block of the G code “G83” is added to the machining program and displayed in the area on the left side of the display screen shown in FIG. 26D. Then, the machining program is generated by performing the procedure shown in FIGS. 26A to 26D for all the shapes included in the CAD data.
  • FIGS. 29A and 29B show an example of a change in the display screen when the user selects the G code and then selects the machined shape. It is a figure.
  • a machining program containing the selected tool eg, tool code “T10”
  • tool code “T10” is displayed in the area on the left side of the display screen
  • tool code “T10” is displayed. All G-codes are displayed in the area on the right side of the display screen without narrowing down the G-codes that can be used by T10 ").
  • All G-codes are displayed in the area on the right side of the display screen without narrowing down the G-codes that can be used by T10 ").
  • FIG. 29A for example, when the user selects "G83 deep hole drilling cycle" for deep hole drilling and selects the CAD data shown in FIGS. 28A and 28B of the workpiece shown in FIG. 27, FIG. 29B As shown in, all the shapes included in the CAD data are displayed in the area on the right side of the display screen without narrowing down the shapes that can be processed by the selected G code "G83".
  • FIG. 29B On the display screen shown in FIG. 29B, for example, when the user selects the circular portion on the upper right as the shape for deep hole drilling, a screen similar to that in FIG. 26C for setting the parameters of the cutting conditions of the G code “G83” is displayed in the right area. Is displayed.
  • the parameter of the cutting condition is set by the user on the display screen shown in FIG.
  • the block of the G code “G83” is added to the machining program and displayed as in the case of FIG. 26D. Then, the machining program is generated by performing the procedure shown in FIGS. 29A, 29B, 26C, and 26D for all the shapes included in the CAD data.
  • One aspect of the numerical control device of the present disclosure is a numerical control device that automatically generates a machining program, and includes tool information related to a plurality of tools and a shape identifier indicating a shape that can be machined by each of the plurality of tools. , At least one G code that can be used to machine the shape indicated by the shape identifier, a linking information storage unit that stores the linking information that is linked in advance, and tool information about the tool selected for machining. Shape ID information extraction that queries the acquired tool information acquisition unit and the association information storage unit with the acquired tool information, and extracts a shape identifier indicating a shape that can be machined by the tool in the acquired tool information.
  • the unit includes a processable shape extraction unit that extracts a processable shape from CAD data based on the extracted shape identifier, and a processable shape display unit that displays the extracted shape that can be processed.
  • One aspect of the numerical control device of the present disclosure is a numerical control device that automatically generates a machining program, and includes tool information related to a plurality of tools and a shape identifier indicating a shape that can be machined by each of the plurality of tools. , At least one G code that can be used to machine the shape indicated by the shape identifier, a linking information storage unit that stores the linking information that is linked in advance, and tool information about the tool selected for machining.
  • a tool information acquisition unit to be acquired and 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 acquired tool information.
  • a usable G-code display unit for displaying the extracted usable G-code.
  • the G code and / or the machined shape can be narrowed down and displayed by the selected tool.
  • FIG. 6 is a flowchart illustrating the tool information acquisition process shown in step S1 in FIG. 6 is a flowchart illustrating the processable shape extraction process shown in step S3 in FIG. 6 is a flowchart illustrating the processable shape extraction process shown in step S3 in FIG.
  • FIG. 6 is a flowchart illustrating the selection shape acquisition process shown in step S5 in FIG. It is a flowchart explaining the determination process whether or not there is a hole shape of a shape ID "1" in the CAD data of a work piece in step S32 of FIG. 8A. It is a figure which shows an example of the CAD data of a hole shape.
  • FIG. 5 is a flowchart illustrating a process of determining whether or not the CAD data of the workpiece in step S3B of FIG. 8B has the contour shape of the shape ID “4”.
  • the numerical control device has tool information about 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 that can be used to machine the shape indicated by the shape identifier.
  • the code and the association information associated with the code are stored in advance.
  • the numerical control device acquires tool information about the tool selected for machining, inquires about the association information with the acquired tool information, and extracts a shape identifier indicating a shape that can be machined by the tool in the acquired tool information. And display the extracted processable shape.
  • the present embodiment it is possible to solve the problem that "the G code and / or the machined shape is narrowed down and displayed by the selected tool".
  • the above is the outline of the first embodiment.
  • FIG. 1 is a functional block diagram showing a functional configuration example of the control system according to the first embodiment.
  • the control system 1 includes a numerical control device 10 and a machine tool 20.
  • the numerical control device 10 and the machine tool 20 may be directly connected to each other via a connection interface (not shown). Further, the numerical control device 10 and the machine tool 20 may 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 include a communication unit (not shown) for communicating with each other by such a connection. As will be described later, the machine tool 20 may include a numerical control device 10.
  • the machine tool 20 is a machine tool known to those skilled in the art, and operates based on an operation command of the numerical control device 10.
  • the machine tool 20 is a tool management table that manages all tools attached to the spindle (not shown) of the machine tool 20 in a storage unit (not shown) such as an HDD (Hard Disk Drive) included in the machine tool 20. (Not shown) may be stored.
  • the numerical control device 10 described later sets the tool name, tool diameter, tool length, etc. from the tool management table (not shown) of the machine tool 20 based on the tool number such as "T10" set in the machining program. You may get it.
  • the numerical control device 10 is a numerical control device known to those skilled in the art, generates an operation command based on the execution of a machining program, and transmits the generated operation command to the machine tool 20. As a result, the numerical control device 10 controls the operation of the machine tool 20.
  • 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 includes a tool information acquisition unit 110, a shape ID information extraction unit 111, a processable shape extraction unit 112, a selection shape acquisition unit 113, a usable G code extraction unit 114, and a program generation unit 115.
  • the storage unit 14 includes the associating table 141.
  • 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 surface 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 processable shape extracted by the processable shape extraction unit 112, which will be described later, based on a user's input operation.
  • the input unit 12 functions as a G code selection receiving unit that selects a usable G code further narrowed down by the usable G code extracting unit 114, which will be described later, based on the input operation of the user.
  • 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 surface of the display device.
  • the display unit 13 functions as a processable shape display unit that displays the processable shape extracted by the processable shape extraction unit 112, which will be described later.
  • the display unit 13 functions as a usable G code display unit that displays a usable G code further narrowed down by the usable G code extraction unit 114, which will be described later, for processing into a processable shape.
  • the storage unit 14 is, for example, a RAM (Random Access Memory), an HDD (Hard Disk Drive), or the like.
  • the storage unit 14 stores various programs including known control software for the numerical control device 10 to function as the numerical control device, and also includes a linking table 141.
  • the associating table 141 is used for processing 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 (hereinafter, also referred to as "shape ID"), and a shape indicated by the shape ID. Includes at least one G-code that can be used and the association information that is associated with in advance.
  • FIG. 2 is a diagram showing an example of the associating table 141.
  • the associating table 141 contains, for example, storage areas for “T id ”, “tool”, “S id ”, “shape (CAD)”, “G id ”, and “G code”. include.
  • tool identifiers such as "1" and "2" (hereinafter, also referred to as "tool ID") assigned to each tool in advance are stored.
  • the tool IDs stored in the storage area of "T id " are assigned different tool IDs even if the tool numbers and types are the same but the shapes to be machined are different.
  • the tool number corresponding to the "T id " for example, "T10” etc.
  • the type of the tool for example, "drill” etc.
  • the tool number and the type of the tool stored in the storage area of the "tool” are obtained in advance from the tool management table (not shown) of the machine tool 20.
  • shape IDs such as "1" and “2” indicating shapes that can be machined by the tool stored in the storage area of "tool" are stored.
  • CAD data indicating the shape to be machined by the tool stored in the storage area of "tool” is stored.
  • CAD data indicating the shape of the hole drilled by the tool number "T10” is stored.
  • CAD data indicating the shape of the thread portion indicated by the thick line to be processed is stored.
  • CAD data indicating the shape to be pocketed by the end mill of the tool number "T30” is stored, for example.
  • CAD data indicating the shape to be contoured by the end mill of the tool number "T30” is stored.
  • CAD data indicating the shape of a hole drilled by, for example, a drill with a tool number "T10” is stored.
  • the storage area of the "shape (CAD)" in the associating table 141 is not limited to the CAD data of the shape to be processed.
  • CAD CAD data of the shape to be processed.
  • Character data in the format of "k- ⁇ *" may be stored. Note that k indicates the number of holes, and * indicates the diameter of the holes.
  • a tap of the tool number "T20” is used, for example, a screw thread having a depth of 15 mm and a height of 1.5 mm in a hole having a diameter of 10 mm.
  • Character data in the format of "M * x h x D" such as "M10 x 1.5 x 15" indicating the shape of the portion of may be stored. Note that h indicates the height of the screw thread, and D indicates the depth of the thread portion.
  • the storage area of "G id " in the binding table 141 can be used to process the shape stored in the storage area of "shape (CAD)" with the tool stored in the storage area of "tool”.
  • a G code identifier (hereinafter, also referred to as “G code ID”) such as “1” or “2” indicating a G code is stored.
  • the tool stored in the storage area of "tool” can be used to process the shape stored in the storage area of "shape (CAD)".
  • At least one G code is stored.
  • a drill cycle "G81” that can be used to drill a hole with a tool number "T10” in the storage area of the "G code” having the G code ID "G id " of "1”.
  • the G code of the drill cycle "G82", the deep drilling cycle “G83", the cancel “G80", the drill cycle "G1110", and the drill cycle "G1111” is stored.
  • the screw thread can be tapped with the tool number "T20".
  • the tapping ring "G84” and the G code of the tapping ring "G1112” that can be used to process the shape are stored.
  • a rough pocket processing "G1040” that can be used for pocket processing with an end mill having a tool number "T30”, for example. The G code of the bottom finish "G1041” for pocket processing and the side finish "G1042" for pocket processing is stored.
  • the outer wall roughing "G1060” that can be used for contouring with an end mill having the tool number "T30", for example.
  • the outer wall bottom surface finish "G1061” for contour processing, and the G code for the outer wall side surface finish "G1062" for contour processing are stored.
  • an inclined surface indexing that can be used for drilling an obliquely inclined hole with a drill of the tool number "T10”, for example.
  • the G code of the command "G68.2", the inclined surface indexing command "G68.3” by the tool axis direction, and the inclined surface indexing command (incremental multiplex command) "G68.4" is stored.
  • the control unit 11 has a CPU (Central Processing Unit), a ROM, a RAM, a CMOS (Complementary Metal-Oxide-Semiconductor) memory, and the like, and these are known to those skilled in the art, which are configured to be communicable with each other via a bus. belongs to.
  • the CPU is a processor that controls the numerical control device 10 as a whole.
  • the CPU reads out the system program and the application program stored in the ROM via the bus, and controls the entire numerical control device 10 according to the system program and the application program. As a result, as shown in FIG.
  • the control unit 11 has the tool information acquisition unit 110, the shape ID information extraction unit 111, the processable shape extraction unit 112, the selected shape acquisition unit 113, the usable G code extraction unit 114, and It is configured to realize the function of the program generation unit 115.
  • Various data such as temporary calculation data and display data are stored in the RAM.
  • the CMOS memory is backed up by a battery (not shown), and is configured as a non-volatile memory in which the storage state is maintained even when the power of the numerical control device 10 is turned off.
  • the tool information acquisition unit 110 acquires tool information related to the tool selected for machining. Specifically, the tool information acquisition unit 110 acquires tool information (for example, a tool number, a tool type, etc.) based on a user's input operation via, for example, the input unit 12. When the tool information is not input by the user via the input unit 12, the tool information acquisition unit 110 may use the tool information (for example, for example) from the touring data acquired in advance from the tool management data (not shown) of the machine tool 20. The tool number, tool type, etc.) may be acquired.
  • tool information for example, a tool number, a tool type, etc.
  • the shape ID information extraction unit 111 inquires of the association table 141, which is the association information storage unit, with the tool information acquired by the tool information acquisition unit 110, and indicates the shape of the acquired tool information that can be machined by the tool.
  • the shape ID (Sid) is extracted. Specifically, in the shape ID information extraction unit 111, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number " T10 ", the "Sid” is "Sid” based on the association table 141. The shape IDs of "1" and "5" are extracted.
  • the shape ID information extraction unit 111 for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number “T20”, the “ Sid ” is “2” based on the association table 141. Extract the shape ID. Further, in the shape ID information extraction unit 111, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number “T30”, the “Sid” is “3” and “ Sid ” based on the association table 141. The shape ID of "4" is extracted.
  • the processable shape extraction unit 112 extracts a processable shape from the CAD data of the target workpiece based on the shape ID extracted by the shape ID information extraction unit 111.
  • the processable shape extraction unit 112 is parallel to the X-axis, Y-axis, or Z-axis when the shape IDs extracted by the shape ID information extraction unit 111 are "1" and "5", for example.
  • the holes to be machined and the holes to be machined at an angle are extracted from the CAD data as a machineable shape.
  • the processable shape extraction unit 112 extracts the portion where the screw thread is machined from the CAD data as a processable shape.
  • the processable shape extraction unit 112 has a shape capable of processing a pocket-processed portion and a contour-processed portion. Is extracted from CAD data. A detailed description of the processable shape extraction unit 112 will be described later. Then, the display unit 13 as the processable shape display unit displays the processable shape extracted by the processable shape extraction unit 112.
  • 3A and 3B are views showing an example of an extracted display screen having a processable shape. As shown in FIG. 3A, when the shape of the hole having the shape ID “1” is extracted from the CAD data shown in FIGS.
  • the processable shape display unit serves as a processable shape display unit.
  • the display unit 13 may, for example, display the shape of the extracted hole by emphasizing it with a thick line. Further, as shown in FIG. 3B, the processed shape of the pocket-processed portion of the shape ID “3” and / or the contour-processed portion of the shape ID “4” as a processable shape by the processable shape extraction unit 112 is shown.
  • the display unit 13 as the processable shape display unit may, for example, display the extracted processable shape with emphasis on a thick line.
  • the display unit 13 as the processable shape display unit highlights the extracted processable shape with a thick line, it may be highlighted with a line other than the thick line, and is highlighted with a line of a color such as red. You may.
  • the selected shape acquisition unit 113 can be processed by the user via the input unit 12 as the shape selection receiving unit on the display screen of FIG. 3A or FIG. 3B displayed on the display unit 13 as the processable shape display unit, for example.
  • the shape ID of the selected machineable shape is acquired.
  • the selected shape acquisition unit 113 outputs the acquired shape ID of the processable shape to the usable G code extraction unit 114, which will be described later, together with the tool information acquired by the tool information acquisition unit 110.
  • the usable G code extraction unit 114 inquires of the association table 141 as the association information storage unit with the tool information received from the selection shape acquisition unit 113 and the shape ID of the shape that can be processed, and receives the tool information. Further narrow down the G code that can be used to process the shape of the shape ID received by the tool.
  • the usable G code extraction unit 114 is, for example, a hole selected by the user via the tool number “T10” acquired by the tool information acquisition unit 110 and the input unit 12 as the shape selection reception unit.
  • the drill cycle "G81" in which the G code ID "G id " is "1" can be used based on the linking table 141.
  • the usable G code extraction unit 114 indicates the tool number “T20” acquired by the tool information acquisition unit 110 and the portion of the screw thread selected by the user via the input unit 12 as the shape selection reception unit.
  • the tapping ring “G84” and the tapping can be used with the G code ID "G id " of "2" based on the linking table 141. Extract and squeeze the G code of the ring "G1112".
  • the usable G code extraction unit 114 indicates the tool number “T30” acquired by the tool information acquisition unit 110 and the pocket processing portion selected by the user via the input unit 12 as the shape selection reception unit.
  • the pocket processing rough processing "G1040” can be used with the G code ID "G id " of "3” based on the linking table 141.
  • the G code of the bottom finish "G1041” for pocket processing and the side finish "G1042" for pocket processing is extracted and squeezed.
  • the usable G code extraction unit 114 indicates the tool number “T30” acquired by the tool information acquisition unit 110 and the contour processing portion selected by the user via the input unit 12 as the shape selection reception unit.
  • the outer wall roughing "G1060” for contour processing can be used with the G code ID "G id ""4" based on the linking table 141.
  • the outer wall bottom surface finish "G1061” for contour processing, and the G code for the outer wall side surface finish "G1062" for contour processing are extracted and squeezed.
  • the usable G-code extraction unit 114 is a diagonally inclined hole selected by the user via the tool number “T10” acquired by the tool information acquisition unit 110 and the input unit 12 as the shape selection reception unit.
  • the inclined surface indexing command “5" can be used with the G code ID "G id " being "5" based on the linking table 141. G68.2 ”, the inclined surface indexing command“ G68.3 ”by the tool axis direction, and the inclined surface indexing command (incremental multiplex command)“ G68.4 ”are extracted and narrowed down.
  • FIG. 4 is a diagram showing an example of a display screen for displaying a narrowed down usable G code.
  • the display unit 13 as the usable G code display unit is the pocket processing rough processing “G1040”.
  • the numerical control device 10 can easily select the G code and the machining shape, and can shorten the time for creating the machining program. Further, the numerical control device 10 can prevent the user from erroneously inputting the machining program by presenting a possible G code and a machining shape and allowing the user to select them.
  • the program generation unit 115 displays the G code selected by the user via the input unit 12 as the G code selection reception unit on the screen of FIG. 4 displayed on the display unit 13 as the usable G code display unit. accept.
  • the program generation unit 115 displays a parameter setting screen on the display unit 13 in order to set the parameters of the selected G code.
  • FIG. 5A is a diagram showing an example of the selected G code setting screen.
  • FIG. 5B is a diagram showing an example of a display screen to which a block of the selected G code is added.
  • the program generation unit 115 generates a machining program by adding a block including the selected G code as shown in FIG. 5B using the parameters input by the user via the setting screen of FIG. 5A.
  • G1200 is a G code for setting a start point of pocket processing
  • G1201 is a G code for setting a straight line for pocket processing
  • G1990 is a G code of the group range selection start command
  • G1991 is a G code of the group range selection end command.
  • FIG. 6 is a flowchart illustrating a machining program generation process of the numerical control device 10. The flow shown here is executed every time a machining program is generated.
  • the shapes that can be machined include a hole shape (hereinafter, also referred to as “hole shape”), a thread portion (hereinafter, also referred to as “screw shape”), and a pocket machined portion (hereinafter, also referred to as “pocket shape”).
  • contour processing portion hereinafter, also referred to as “contour shape”
  • shape of a diagonally inclined hole hereinafter, also referred to as “inclined shape”
  • the present invention is not limited thereto. The same can be applied to the case of a shape that can be processed other than the hole shape, the screw shape, the pocket shape, the contour shape, and the inclined shape.
  • step S1 the tool information acquisition unit 110 performs a tool information acquisition process based on a user's input operation via the input unit 12, and acquires tool information (for example, a tool number, a tool type, etc.).
  • tool information for example, a tool number, a tool type, etc.
  • step S2 the shape ID information extraction unit 111 inquires of the association table 141, which is the association information storage unit, with the tool information acquired in step S1, and has a shape that can be machined with the tool of the acquired tool information. Extract the shape ID.
  • step S3 the processable shape extraction unit 112 performs a processable shape extraction process based on the shape ID extracted in step S2, and extracts a processable shape from the CAD data of the target workpiece.
  • the detailed flow of the processable shape extraction process will be described later.
  • step S4 the display unit 13 as the processable shape display unit displays the shape extracted in step S3 (for example, FIG. 3A or FIG. 3B).
  • step S5 the selected shape acquisition unit 113 is based on the user's selection of a processable shape via the input unit 12 as the shape selection receiving unit on the screen displayed on the display unit 13 as the processable shape display unit. Then, the selected shape acquisition process is performed, and the shape ID of the processable shape selected by the user is acquired. The detailed flow of the selected shape acquisition process will be described later.
  • step S6 the usable G code extraction unit 114 can be used by inquiring to the associating table 141 with the tool information acquired in step S1 and the shape ID of the processable shape selected in step S5. Further narrow down the G code.
  • step S7 the display unit 13 as the usable G code display unit displays the usable G code narrowed down in step S6 (for example, FIG. 4).
  • step S8 the program generation unit 115 inputs the G code selected by the user via the input unit 12 as the G code selection reception unit on the display screen displayed on the display unit 13 as the usable G code display unit. accept.
  • step S9 the program generation unit 115 displays the G code G code setting screen (for example, FIG. 5A) received in step S8 on the display unit 13, and receives the parameters input by the user via the input unit 12. ..
  • step S10 the program generation unit 115 adds a block containing the selected G code using the parameters input by the user in step S9 (for example, FIG. 5B).
  • step S11 the program generation unit 115 determines whether or not the generation of the machining program is completed.
  • the program generation unit 115 receives an input such as "save” or "end” of the machining program by the user via the input unit 12, the program generation unit 115 determines that the generation of the machining program has been completed, and the processing ends.
  • the program generation unit 115 determines that the generation of the machining program has not been completed, and the processing is performed. Return to step S1.
  • FIG. 7 is a flowchart illustrating the tool information acquisition process shown in step S1 in FIG.
  • step S1A the tool information acquisition unit 110 determines whether or not the tool information has been input based on the user's input operation via the input unit 12. If the tool information is input, the process proceeds to step S1B. On the other hand, if the tool information is not input, the process proceeds to step S1C.
  • step S1B the tool information acquisition unit 110 acquires tool information (for example, a tool number, a tool type, etc.) input by the user via the input unit 12.
  • tool information for example, a tool number, a tool type, etc.
  • step S1C the tool information acquisition unit 110 acquires tool information (for example, a tool number, a tool type, etc.) from touring data acquired in advance from tool management data (not shown) of the machine tool 20.
  • tool information for example, a tool number, a tool type, etc.
  • ⁇ Processable shape extraction process in step S3> 8A and 8B are flowcharts illustrating the processable shape extraction process shown in step S3 in FIG.
  • step S31 the processable shape extraction unit 112 determines whether or not the shape ID extracted in step S2 is the hole shape "1". When the shape ID is "1" of the hole shape, the process proceeds to step S32. On the other hand, if the shape ID is not the hole shape "1", the process proceeds to step S34.
  • step S32 the processable shape extraction unit 112 performs a determination process for determining whether or not the CAD data of the workpiece has a hole shape with the shape ID “1”. The detailed flow of the determination process in step S32 will be described later.
  • step S33 if there is a hole shape from the result of the determination process in step S32, the process proceeds to step S3G. On the other hand, if there is no hole shape from the result of the determination process in step S32, the process proceeds to step S3H.
  • step S34 the processable shape extraction unit 112 determines whether or not the shape ID extracted in step S2 is the screw shape “2”. When the shape ID is the screw shape "2”, the process proceeds to step S35. On the other hand, if the shape ID is not the screw shape "2", the process proceeds to step S37 in FIG. 8B.
  • step S35 the processable shape extraction unit 112 performs a process of determining whether or not there is a screw shape with shape ID "2" in the CAD data of the work piece. The detailed flow of the determination process in step S35 will be described later.
  • step S36 if there is a screw shape from the result of the determination process in step S35, the process proceeds to step S3G. On the other hand, if there is no screw shape from the result of the determination process in step S35, the process proceeds to step S3H.
  • step S37 of FIG. 8B the processable shape extraction unit 112 determines whether or not the shape ID extracted in step S2 is the pocket shape “3”. If the shape ID is the pocket shape "3”, the process proceeds to step S38. On the other hand, if the shape ID is not the pocket shape "3", the process proceeds to step S3A.
  • step S38 the processable shape extraction unit 112 performs a determination process of whether or not the CAD data of the workpiece has a pocket shape with the shape ID “3”. The detailed flow of the determination process in step S38 will be described later.
  • step S39 if there is a pocket shape from the result of the determination process in step S38, the process proceeds to step S3G. On the other hand, if there is no pocket shape from the result of the determination process in step S38, the process proceeds to step S3H in FIG. 8A.
  • step S3A the processable shape extraction unit 112 determines whether or not the shape ID extracted in step S2 is the contour shape "4". When 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.
  • step S3B the processable shape extraction unit 112 performs a determination process of whether or not the CAD data of the workpiece has the contour shape of the shape ID "4". The detailed flow of the determination process in step S3B will be described later.
  • step S3C if the processable shape extraction unit 112 has a contour shape from the result of the determination process in step S3B, the process proceeds to step S3G in FIG. 8A. On the other hand, if the processable shape extraction unit 112 does not have a contour shape from the result of the determination process in step S3G, the process proceeds to step S3H in FIG. 8A.
  • step S3D the processable shape extraction unit 112 determines whether or not the shape ID extracted in step S2 is the inclined shape "5". When the shape ID is the inclined shape "5", the process proceeds to step S3E. On the other hand, if the shape ID is not the contour shape "5", the process proceeds to step S3H of FIG. 8A.
  • step S3E the processable shape extraction unit 112 performs a determination process of whether or not the CAD data of the workpiece has an inclined shape with the shape ID “5”. The detailed flow of the determination process in step S3E will be described later.
  • step S3F if there is an inclined shape from the result of the determination process in step S3E, the process proceeds to step S3G in FIG. 8A. On the other hand, if there is no inclined shape from the result of the determination process in step S3E, the process proceeds to step S3H in FIG. 8A.
  • step S3G the processable shape extraction unit 112 extracts the processable shape corresponding to the shape ID from the CAD data. The process proceeds to step S3H.
  • step S3H the processable shape extraction unit 112 determines 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, when all the extracted shape IDs are checked, the flow of the processable shape extraction process in step S3 ends, and the process returns to the flow of FIG.
  • FIG. 9 is a flowchart illustrating the selection shape acquisition process shown in step S5 in FIG.
  • step S51 the selected shape acquisition unit 113 determines whether or not the machined 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.
  • step S52 the selected shape acquisition unit 113 acquires the shape ID “1” of the hole shape selected by the user.
  • step S53 the selected shape acquisition unit 113 determines whether or not the machined shape selected by the user is a screw shape. If the machined shape selected by the user is a screw shape, the process proceeds to step S54. On the other hand, if the machined shape selected by the user is not a screw shape, the process proceeds to step S55.
  • step S54 the selection shape acquisition unit 113 acquires the shape ID “2” of the screw shape selected by the user.
  • step S55 the selected shape acquisition unit 113 determines whether or not the processed shape selected by the user is a pocket shape. If the machined shape selected by the user is a pocket shape, the process proceeds to step S56. On the other hand, if the processing shape selected by the user is not a pocket shape, the process proceeds to step S57.
  • step S56 the selected shape acquisition unit 113 acquires the pocket shape shape ID “3” selected by the user.
  • step S57 the selected shape acquisition unit 113 determines whether or not the machined shape selected by the user is a contour shape. If the machined shape selected by the user is a contour shape, the process proceeds to step S58. On the other hand, if the machined shape selected by the user is not a contour shape, the process proceeds to step S59.
  • step S58 the selected shape acquisition unit 113 acquires the shape ID “4” of the contour shape selected by the user.
  • step S59 the selected shape acquisition unit 113 determines whether or not the machined shape selected by the user is an inclined shape. If the machining shape selected by the user is an inclined shape, the process proceeds to step S5A. On the other hand, if the processed 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.
  • step S5A the selected shape acquisition unit 113 acquires the shape ID "5" of the inclined shape, assuming that the processed shape selected by the user has an inclined shape. As a result, the flow of the selected shape acquisition process is completed, and the process returns to the flow of FIG.
  • FIG. 10 is a flowchart illustrating a process of determining whether or not the CAD data of the workpiece in step S32 of FIG. 8A has a hole shape having the shape ID “1”.
  • FIG. 11 is a diagram showing an example of CAD data of a hole shape. As shown in FIG . 11, the distance (hole diameter) between the end points PS and the end point PE is Li , the distance from the end point PS to the tip of the hole shape is Li + 1 , and the distance from the end point PE to the hole shape. Let Li + 2 be the distance to the tip, Li + 3 be the distance from the end point PS to the end of the hole shape, and Li + 4 be the distance from the end point PE to the end of the hole shape.
  • the angle formed by the straight line Li and the straight line Li + 3 and the angle formed by the straight line Li and the straight line Li + 4 are 90 degrees.
  • the triangle consisting of the straight lines Li i , Li + 1 , and Li + 2 is an isosceles triangle, and the angle formed by the straight line Li and the straight line Li + 1 and the angle formed by the straight line Li and the straight line Li + 2 are the same. be.
  • step S321 the processable shape extraction unit 112 initializes i to "0".
  • step S322 the processable shape extraction unit 112 increases i by one.
  • step S323 the processable shape extraction unit 112 determines whether or not there are straight lines Li + 1 and Li + 3 having the end point PS as the end point in the CAD data of the work piece. If there are straight lines Li + 1 and Li + 3 , the process proceeds to step S324. On the other hand, if there are no straight lines Li + 1 and Li + 3 , the process proceeds to step S329.
  • step S324 the processable shape extraction unit 112 determines whether or not there are straight lines Li + 2 and Li + 4 having the end point PE as the end point in the CAD data of the work piece. If there are straight lines Li + 2 and Li + 4 , the process proceeds to step S325. On the other hand, if there are no straight lines Li + 2 and Li + 4 , the process proceeds to step S329.
  • step S325 the processable shape extraction unit 112 determines whether or not the angle formed by the straight line Li and the straight line Li + 3 and the angle formed by the straight line Li and the straight line Li + 4 are 90 degrees. When the angle formed by the straight line Li and the straight line Li + 3 and the angle formed by the straight line Li and the straight line Li + 4 are 90 degrees, the process proceeds to step S326 . If the angle formed by the straight line Li and Li + 3 and / or the angle formed by the straight line Li and the straight line Li + 4 is not 90 degrees, the process proceeds to step S329 .
  • step S326 the processable shape extraction unit 112 determines whether or not the angle formed by the straight line Li and the straight line Li + 1 and the angle formed by the straight line Li and the straight line Li + 2 are equal to each other. If the angle formed by the straight line Li and Li + 1 and the angle formed by the straight line Li and the straight line Li + 2 are equal, the process proceeds to step S327 . On the other hand, if the angle formed by the straight line Li and Li + 1 and the angle formed by the straight line Li and the straight line Li + 2 are not equal, the process proceeds to step S329 .
  • step S327 the processable shape extraction unit 112 determines whether or not the straight line Li is parallel to the X-axis or the Y-axis. If the straight line Li is parallel to the X-axis or the Y-axis, the process proceeds to step S328 . On the other hand, if the straight line Li is not parallel to the X-axis and the Y-axis, the process proceeds to step S329 .
  • step S328 the processable 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 of FIG. 8A.
  • step S329 the processable shape extraction unit 112 determines whether or not all the straight lines have been checked. When all the straight lines are checked, the flow of the determination process in step S32 ends, and the process returns to the flow of FIG. 8A. On the other hand, if all the straight lines are not checked, the process returns to step S322.
  • FIG. 12 is a flowchart illustrating a process of determining whether or not the CAD data of the workpiece in step S35 of FIG. 8A has a screw shape having the shape ID “2”.
  • the processing of step S351, step S352, and step S359 is the same as the processing of step S321, step S322, and step S329 of FIG. 10, and the description thereof will be omitted.
  • FIG. 13 is a diagram showing an example of CAD data of the screw shape.
  • the screw shape of FIG. 13 includes a hole shape similar to that of FIG. Therefore, the description of the hole shape will be omitted. As shown in FIG.
  • the distance between the end point P NS and the end point P NE is Li + 5
  • the distance from the end point P NS to the end of the screw shape is Li + 6
  • the distance from the end point P NE to the end of the screw shape is Li + 7
  • the screw shape of Li + 7 is formed in the hole shape of FIG.
  • step S353 the processable shape extraction unit 112 determines whether or not there is a hole shape in the CAD data of the workpiece by performing the same determination process as in FIG. If there is a hole shape, the process proceeds to step S354. On the other hand, if there is no hole shape, the process proceeds to step S359.
  • step S354 the processable shape extraction unit 112 determines whether or not the CAD data of the hole shape determined in step S353 has a straight line Li + 5 connecting the end point P NS and the end point P NE . If there is a straight line Li + 5 , the process proceeds to step S355. On the other hand, if there is no straight line Li + 5 , the process proceeds to step S359.
  • step S355 the processable shape extraction unit 112 determines whether or not there is a straight line Li + 6 having the end point PNS as the end point in the CAD data of the work piece. If there is a straight line Li + 6 , the process proceeds to step S356. On the other hand, if there is no straight line Li + 6 , the process proceeds to step S359.
  • step S356 the processable shape extraction unit 112 determines whether or not there is a straight line Li + 7 having the end point PNE as the end point in the CAD data of the work piece. If there is a straight line Li + 7 , the process proceeds to step S357. On the other hand, if there is no straight line Li + 7 , the process proceeds to step S359.
  • step S357 the processable shape extraction unit 112 determines whether or not the angle formed by the straight line Li + 5 and the straight line Li + 6 and the angle formed by the straight line Li + 5 and the straight line Li + 7 are 90 degrees.
  • the process proceeds to step S358. If the angle formed by the straight line Li + 5 and the straight line Li + 6 and / or the angle formed by the straight line Li + 5 and the straight line Li + 7 is not 90 degrees, the process proceeds to step S359.
  • step S358 the processable shape extraction unit 112 determines that the CAD data of the workpiece has a screw shape.
  • the flow of the determination process in step S35 ends, and the process returns to the flow of FIG. 8A.
  • FIG. 14 is a flowchart illustrating a process of determining whether or not the CAD data of the workpiece in step S38 of FIG. 8A has a pocket shape having the shape ID “3”.
  • the processing of step S381, step S382, and step S38A is the same as the processing of step S321, step S322, and step S329 of FIG. 10, and the description thereof will be omitted.
  • FIG. 15 is a diagram showing an example of pocket-shaped CAD data.
  • the upper part of FIG. 15 shows the pocket shape seen from above, and the lower part of FIG. 15 shows the pocket shape seen from the front.
  • the straight line connecting the end point P SL and the end point P SR in the X-axis direction is L LR .
  • step S383 the processable shape extraction unit 112 acquires an element E j adjacent to any one element in the CAD data of the workpiece (j is an integer from 1 to n, and n is an integer of 1 or more). Is).
  • step S384 the processable shape extraction unit 112 acquires the leftmost point PL and the rightmost point PR of the shape in the X-axis direction from the element Ej .
  • step S385 the processable shape extraction unit 112 is parallel to the Y axis and the value (Y value) of the Y coordinate of the start point or the end point is acquired from all the linear elements in step S384 . Search for the same straight lines L L and LR as the Y coordinate value (Y value) of.
  • step S386 the processable shape extraction unit 112 determines whether or not there are straight lines LL and LR. If there are straight lines L L , LR, the process proceeds to step S387. On the other hand, if there are no straight lines L L and LR, the process proceeds to step S38A.
  • step S387 the processable shape extraction unit 112 determines whether or not there is a straight line L LR connecting the end point P SL having a small Y value of the straight line LL and the end point P SR having a small Y value of the straight line LR . If there is a straight line L LR , the process proceeds to step S388. On the other hand, if there is no straight line L LR , the process proceeds to step S38A.
  • step S388 the processable shape extraction unit 112 determines whether or not there is an element that passes through the other end points P SL and P SR . If there is no element passing through the other endpoints P SL and P SR , the process proceeds to step S389. On the other hand, if there is an element that passes through the other endpoints P SL and P SR , the process proceeds to step S38A.
  • step S389 the processable shape extraction unit 112 determines that the CAD data of the work piece has a pocket shape.
  • the flow of the determination process in step S38 ends, and the process returns to the flow of FIG. 8A.
  • FIG. 16 is a flowchart illustrating a process of determining whether or not the CAD data of the workpiece in step S3B of FIG. 8B has the contour shape of the shape ID “4”.
  • the processing of steps S3B1 to S3B6 and step S3BA is the same as the processing of steps S381 to S386 and step S38A in FIG. 14, and the description thereof will be omitted.
  • FIG. 17 is a diagram showing an example of CAD data of the contour shape.
  • the upper part of FIG. 17 shows the contour shape seen from above, and the lower part of FIG. 17 shows the contour shape seen from the front.
  • the straight line connecting the end point PLL and the end point PLR in the X-axis direction is L LR .
  • step S3B7 the processable shape extraction unit 112 determines whether or not there is a straight line L LR connecting the end point P LL having a large Y value of the straight line LL and the end point P LR having a large Y value of the straight line LR. If there is a straight line L LR , the process proceeds to step S3B8. On the other hand, if there is no straight line L LR , the process proceeds to step S3BA.
  • step S3B8 the processable shape extraction unit 112 determines whether or not there is an element passing through the other end points PLL and PLR . If there is no element passing through the other endpoints PLL and PLR, the process proceeds to step S3B9 . On the other hand, if there is an element passing through the other end points PLL and PLR, the process proceeds to step S3BA .
  • step S3B9 the processable shape extraction unit 112 determines that the CAD data of the workpiece has a contour shape.
  • the flow of the determination process in step S3B ends, and the process returns to the flow of FIG. 8B.
  • FIG. 18 is a flowchart illustrating a process of determining whether or not the CAD data of the workpiece in step S3E of FIG. 8B has an inclined shape with the shape ID “5”.
  • the processes of steps S3E1 to S3E6 and steps S3E9 are the same as the processes of steps S321 to S326 and S329 of FIG. 10, and the description thereof will be omitted.
  • FIG. 19 is a diagram showing an example of CAD data having an inclined shape. As shown in FIG. 19, the inclined shape is a shape in which the hole shape of FIG. 11 is inclined at an angle, and the same elements as those of FIG. 11 are designated by the same reference numerals, and the description thereof will be omitted.
  • step S3E7 the processable shape extraction unit 112 determines whether or not the straight line Li is not parallel to the X-axis and the Y-axis. If the straight line Li is not parallel to the X-axis and the Y-axis, the process proceeds to step S3E8 . On the other hand, when the straight line Li is parallel to the X-axis or the Y-axis, the process proceeds to step S3E9 .
  • step S3E8 the processable shape extraction unit 112 determines that the CAD data of the work piece has an inclined shape.
  • the flow of the determination process in step S3E ends, and the process returns to the flow of FIG. 8B.
  • the numerical control device 10 has a shape ID indicating a shape that can be machined by the tool selected based on the tool information of the tool selected by the user and the associating table 141. Is extracted, and the processable shape of the extracted shape ID is displayed. The numerical control device 10 further narrows down the G codes that can be used based on the shape ID of the shape selected by the user among the displayed machineable shapes, the selected tool information, and the associating table 141. .. As a result, the numerical control device 10 can narrow down and display the G code and / or the machined shape by the selected tool.
  • the numerical control device 10 can easily select a shape that can be machined and a G code that can be used, and can shorten the time for creating a machining program. Further, the numerical control device 10 can prevent the user from inputting the machining program by mistake by presenting the shape that can be machined and the G code that can be used and letting the user select the shape.
  • the first embodiment has been described above.
  • the numerical control device 10 processes tool information regarding a plurality of tools, a shape ID indicating a shape that can be machined by each of the plurality of tools, and a shape indicated by the shape ID.
  • the tying table 141 to which at least one G code that can be used in the sword is stored in advance is stored, and the tool information of the tool selected by the user and the tying table 141 are used for machining with the selected tool.
  • a shape ID indicating a possible shape is extracted, and a processable shape of the extracted shape ID is displayed.
  • the numerical control device 10 further narrows down the G codes that can be used based on the shape ID of the shape selected by the user from the displayed machineable shapes and the associating table 141.
  • the numerical control device 10A processes tool information related to a plurality of tools, a shape ID indicating a shape that can be machined by each of the plurality of tools, and a shape indicated by the shape ID.
  • a linking table 141 to which at least one G code that can be used is linked in advance is stored, and the tool can be used with the selected tool based on the tool information of the tool selected by the user and the linking table 141.
  • G code is extracted and the extracted G code is displayed.
  • the numerical control device 10A is different from the first embodiment in that the shape that can be processed is further narrowed down based on the G code selected by the user among the displayed G codes and the associating table 141. As a result, the numerical control device 10A can narrow down and display the G code and / or the machined shape by the selected tool.
  • the second embodiment will be described.
  • FIG. 20 is a functional block diagram showing a functional configuration example of the control system according to the second embodiment.
  • the elements having the same functions as the elements of the control system 1 of FIG. 1 are designated by the same reference numerals, and detailed description thereof will be omitted.
  • the control system 1 includes a numerical control device 10A and a machine tool 20.
  • the machine tool 20 has the same function as the machine tool 20 according to the first embodiment.
  • 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 processable shape extraction unit 112, a usable G code extraction unit 114a, a program generation unit 115, and a selection G code acquisition unit 116.
  • the storage unit 14 includes the associating table 141.
  • 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. Further, the tool information acquisition unit 110, the processable shape extraction unit 112, and the program generation unit 115 have the same functions as the tool information acquisition unit 110, the processable shape extraction unit 112, and the program generation unit 115 according to the first embodiment. Has.
  • the usable G code extraction unit 114a queries the association table 141, which is the association information storage unit, with the tool information acquired by the tool information acquisition unit 110, and the G code that can be used with the acquired tool information tool. To extract. Specifically, the usable G code extraction unit 114a is, for example, when the tool information acquired by the tool information acquisition unit 110 includes the tool number “T10”, the G code ID “G” is based on the association table 141. Drill cycle "G81”, drill cycle “G82", deep drilling cycle “G83”, cancel “G80”, drill cycle "G1110", and drill cycle "G1111", where " id " is "1" can be used.
  • the G code ID “G id ” is generated based on the linking table 141.
  • Use of "3”, rough pocket processing "G1040”, pocket processing bottom finish “G1041”, pocket processing side finish "G1042”, and G code ID "G id ""4" G-codes of possible contouring outer wall roughing "G1060", contouring outer wall bottom surface finishing "G1061”, and contouring outer wall side surface finishing "G1062" are extracted.
  • FIG. 21 is a diagram showing an example of a usable G code display screen.
  • the display unit 13 as a usable G code display unit is a pocket processing rough processing "G1040" and pocket processing.
  • Bottom finish "G1041”, pocket processing side finish "G1042”, contour processing outer wall rough processing "G1060”, contour processing outer wall bottom finish "G1061”, and contour processing outer wall side finish "G1062" G code indicate.
  • the G code acquisition unit 116 for example, on the display screen of FIG. 21 displayed on the display unit 13 as the usable G code display unit, the G code is input by the user via the input unit 12 as the G code selection reception unit. If selected, get the selected G code.
  • the selected G code acquisition unit 116 outputs the acquired G code to the shape ID information extraction unit 111a described later together with the tool information acquired by the tool information acquisition unit 110.
  • the shape ID information extraction unit 111a inquires of the association table 141 as the association information storage unit with the tool information received from the selection G code acquisition unit 116 and the G code, and the G received by the tool of the received tool information.
  • the shape ID of the shape that can be processed by the code is further narrowed down.
  • the shape ID information extraction unit 111a is a depth selected by the user via, for example, the tool number “T10” acquired by the tool information acquisition unit 110 and the input unit 12 as the G code selection reception unit.
  • the shape ID (Sid) “1” is extracted and narrowed down based on the linking table 141.
  • the shape ID information extraction unit 111a is, for example, a tapping ring "G84" selected by the user via the tool number "T20" acquired by the tool information acquisition unit 110 and the input unit 12 as the G code selection reception unit.
  • the shape ID (Sid) "2" is extracted and narrowed down based on the association table 141.
  • the shape ID information extraction unit 111a is, for example, a rough pocket processing selected by the user via the tool number “T30” acquired by the tool information acquisition unit 110 and the input unit 12 as the G code selection reception unit.
  • the shape ID (Sid) "3" is extracted and narrowed down based on the associating table 141.
  • the shape ID information extraction unit 111a is, for example, an outer wall for contour processing selected by the user via the tool number “T30” acquired by the tool information acquisition unit 110 and the input unit 12 as the G code selection reception unit.
  • the shape ID (Sid) “4” is extracted and narrowed down based on the associating table 141.
  • the shape ID information extraction unit 111a is, for example, an inclined surface indexing command selected by the user via the tool number “T10” acquired by the tool information acquisition unit 110 and the input unit 12 as the G code selection reception unit.
  • the shape ID (Sid) "5" is extracted and narrowed down based on the associating table 141.
  • FIG. 22 is a diagram showing an example of an extracted display screen having a processable shape.
  • the shape ID information extraction unit 111a extracts the shape ID “4”.
  • the processable shape extraction unit 112 extracts only the contour shape of the shape ID “4” in the CAD data shown in FIGS. 28A and 28B. As shown in FIG.
  • the display unit 13 as the processable shape display unit may display the extracted contour shape by emphasizing it with a thick line.
  • the numerical control device 10A can easily select the G code and the machining shape, and can shorten the time for creating the machining program. Further, the numerical control device 10A can prevent the user from inputting the machining program by mistake by presenting the usable G code and the shape that can be machined and letting the user select the code.
  • the display unit 13 as the processable shape display unit highlights the extracted processed shape with a thick line, it may be highlighted with a line other than the thick line, and the extracted processed shape is highlighted with a line of a color such as red. May be good.
  • FIG. 23 is a flowchart illustrating a machining program generation process of the numerical control device 10A. The flow shown here is executed every time a machining program is generated.
  • step S'1 the tool information acquisition unit 110 performs the same tool information acquisition process as in step S1 in the first embodiment based on the user's input operation via the input unit 12, and performs tool information (for example, a tool). Get the number, tool type, etc.).
  • step S'2 the usable G-code extraction unit 114a makes an inquiry to the association table 141, which is the association information storage unit, with the tool information acquired in step S'1, and uses the acquired tool information tool. Extract the available G code.
  • step S'3 the display unit 13 as the usable G code display unit displays the usable G code extracted in step S'2 (for example, FIG. 21).
  • step S'4 the selection G code acquisition unit 116 sets the input unit 12 as the G code selection reception unit on the display screen (for example, FIG. 21) displayed on the display unit 13 as the usable G code display unit. Get the G code selected by the user through.
  • step S'5 the shape ID information extraction unit 111a inquires of the associating table 141 with the tool information acquired in step S'1 and the G code selected in step S'4, and is acquired.
  • the shape ID of the shape that can be machined is further narrowed down by the G code selected by the tool in the tool information.
  • step S'6 the processable shape extraction unit 112 performs the same processable shape extraction process as in step S3 of the first embodiment based on the shape ID extracted in step S'5, and performs the target processing.
  • the shape that can be processed is extracted from the CAD data of the object.
  • step S'7 the display unit 13 as the processable shape display unit displays the processable shape extracted in step S'6 (for example, FIG. 22).
  • step S'8 the program generation unit 115 receives the shape selected by the user via the input unit 12 as the shape selection reception unit on the display screen displayed on the display unit 13 as the processable shape display unit. ..
  • step S'9 the program generation unit 115 displays the G code setting screen selected in step S'4 on the display unit 13 in order to process the shape received in step S'8 (for example, FIG. 24), the parameter input by the user via the input unit 12 is accepted.
  • FIG. 24 is a diagram showing an example of a setting screen in the case of the G code of the outer wall roughing “G1060” for contour processing.
  • step S'10 the program generation unit 115 adds a block containing the selected G code using the parameters input by the user in step S'9.
  • FIG. 25 is a diagram showing an example of a screen to which a block of the selected G code is added.
  • G1200 is a G code for setting a start point of contour processing
  • G1201 is a G code for setting a straight line for contour processing.
  • step S'11 the program generation unit 115 determines whether or not the generation of the machining program is completed, as in step S11 of the first embodiment.
  • the program generation unit 115 receives an input such as "save” or "end” of the machining program by the user via the input unit 12, the program generation unit 115 determines that the generation of the machining program has been completed, and the processing ends.
  • the program generation unit 115 determines that the generation of the machining program has not been completed, and the processing is performed. Return to step S'1.
  • the numerical control device 10A extracts the tool information of the tool selected by the user and the G code that can be used by the tool selected based on the associating table 141. , Display the extracted usable G code.
  • the numerical control device 10 further narrows down the shapes that can be machined based on the G code selected by the user among the displayed usable G codes, the selected tool information, and the associating table 141.
  • the numerical control device 10A can narrow down and display the G code and / or the machined shape by the selected tool.
  • the numerical control device 10A can easily select a machined shape that can be machined and a G code that can be used, and can shorten the time for creating a machined program.
  • the numerical control device 10A can prevent the user from erroneously inputting the machining program by presenting the machined shape that can be machined and the G code that can be used and allowing the user to select the machined shape.
  • the second embodiment has been described above.
  • the numerical control devices 10 and 10A are not limited to the above-described embodiments, and include deformations, improvements, and the like within a range in which the object can be achieved.
  • the numerical control devices 10 and 10A are different from the machine tool 20, but are not limited thereto.
  • the numerical control devices 10 and 10A may be included in the machine tool 20.
  • the storage unit such as a hard disk, ROM, etc., which stores the program describing all or part of the operation of the numerical control devices 10 and 10A, and the calculation.
  • the storage unit such as a hard disk, ROM, etc.
  • the information required for calculation can be stored in the DRAM, and the program can be operated by the CPU.
  • Non-temporary computer-readable media include various types of physical recording media (Tangible storage media). Examples of non-temporary computer-readable media include magnetic recording media (eg, flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (eg, magneto-optical disks), CD-ROMs (Read Only Memory), CD-. R, CD-R / W, semiconductor memory (for example, mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM) are included.
  • the program may also be supplied to the computer by various types of temporary computer readable media. Examples of temporary computer readable media include electrical, optical, and electromagnetic waves.
  • the temporary computer-readable medium can supply the program to the computer via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path.
  • these programs may be distributed by being downloaded to a user's computer via a network.
  • the step of describing the program to be recorded on the recording medium is not only the processing performed in chronological order but also the processing executed in parallel or individually even if it is not necessarily processed in chronological order. Also includes.
  • the numerical control device of the present disclosure can take various embodiments having the following configurations.
  • the numerical control device 10 of the present disclosure is a numerical control device that automatically generates a machining program, and has tool information about a plurality of tools, a shape ID indicating a shape that can be machined by each of the plurality of tools, and a shape ID. At least one G code that can be used to machine the shape indicated by, a storage unit 14 that stores a linking table 141 that is linked in advance, and tool information acquisition that acquires tool information about the tool selected for machining.
  • the shape ID information extraction unit 111 which queries the associating table 141 with the acquired tool information and extracts the shape ID indicating the shape that can be machined by the tool in the acquired tool information, and the extracted shape.
  • It includes a processable shape extraction unit 112 that extracts a processable shape from CAD data based on an ID, and a display unit 13 as a processable shape display unit that displays the extracted processable shape.
  • the G code and / or the machined shape can be narrowed down and displayed by the selected tool.
  • an input unit 12 as a shape selection receiving unit for selecting an extracted processable shape and a selection for acquiring a shape ID of the selected processable shape.
  • the shape ID of the shape that can be machined acquired by the shape acquisition unit 113, the selection shape acquisition unit 113, and the acquired tool information are inquired to the linking table 141, and the tool of the acquired tool information is used.
  • a usable G-code extraction unit 114 which further narrows down the G-codes that can be used for processing into the shape of the acquired shape ID, may be further provided. By doing so, the numerical control device 10 can easily select the machined shape that can be machined and the G code that can be used, and can shorten the time for creating the machined program.
  • the display unit 13 as a usable G code display unit that displays the usable G code narrowed down by the usable G code extraction unit 114 is displayed.
  • An input unit 12 as a G-code selection receiving unit for selecting a G-code from available G-codes may be further provided. By doing so, the numerical control device 10 can prevent the user from inputting the machining program by mistake by presenting the machined shape and the usable G code to be selected by the user.
  • the numerical control device 10A of the present disclosure is a numerical control device that automatically generates a machining program, and has tool information regarding a plurality of tools, a shape ID indicating a shape that can be machined by each of the plurality of tools, and a shape ID.
  • Storage unit 14 that stores at least one G code that can be used to machine the shape indicated by, and a linking table 141 that is linked in advance, and tool information acquisition that acquires tool information about the tool selected for machining.
  • a usable G-code extraction unit 114a for inquiring to the associating table 141 with the acquired tool information and extracting a G-code that can be used with the tool of the acquired tool information, and an extracted usable G-code.
  • a display unit 13 as a usable G code display unit for displaying a G code is provided. According to this numerical control device 10A, the same effect as in (1) can be obtained.
  • an input unit 12 as a G code selection receiving unit for selecting an extracted usable G code and a selection for acquiring a selected usable G code.
  • the G-code acquisition unit 116, the usable G-code acquired by the selection G-code acquisition unit 116, and the acquired tool information are inquired to the linking table 141, and the tool of the acquired tool information is selected.
  • the shape ID indicating the shape that can be processed by the usable G code may be further provided with the shape ID information extraction unit 111a that is further narrowed down. By doing so, the numerical control device 10A can exert the same effect as in (2).
  • a processable shape extraction unit 112 that extracts a processable shape from CAD data based on the shape ID narrowed down by the shape ID information extraction unit 111a, and a processable shape extraction unit 112 are extracted.
  • a display unit 13 as a processable shape display unit that displays the shape that can be processed may be further provided. By doing so, the numerical control device 10A can exert the same effect as in (3).
  • Control system 10 10A Numerical control device 11, 11a Control unit 110 Tool information acquisition unit 111, 111a Shape ID information extraction unit 112 Machinable shape extraction unit 113 Selectable shape acquisition unit 114, 114a Usable G code extraction unit 115 Program generation Part 116 Select G code acquisition part 12 Input part 13 Display part 14 Storage part 141 Linking table 20 Machine tool

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Geometry (AREA)
  • Numerical Control (AREA)

Abstract

選択した工具によってGコード及び/又は加工形状を絞って表示すること。 数値制御装置は、加工プログラムを自動生成する数値制御装置であって、複数の工具に関する工具情報と、前記複数の工具それぞれが加工可能な形状を示す形状識別子と、前記形状識別子が示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を記憶する紐付け情報記憶部と、加工に選択された工具に関する工具情報を取得する工具情報取得部と、取得された前記工具情報で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で加工可能な形状を示す形状識別子を抽出する形状ID情報抽出部と、抽出された前記形状識別子に基づいてCADデータから加工可能な形状を抽出する加工可能形状抽出部と、抽出された前記加工可能な形状を表示する加工可能形状表示部と、を備える。

Description

数値制御装置
 本発明は、数値制御装置に関する。
 従来、CADデータを用いて加工プログラムを自動的に作成する技術が知られている。例えば、特許文献1参照。
特開平4-315550号公報
 CADデータを用いて加工プログラムを作成するにあたり、(a)ユーザが加工形状を選択してからGコードを選択する場合と、(b)ユーザがGコードを選択してから加工形状を選択する場合と、がある。
(a)ユーザが加工形状を選択してからGコードを選択する場合について
 図26Aから図26Dは、ユーザが加工形状を選択してからGコードを選択する場合の表示画面の変化の一例を示す図である。
 図26Aに示すように、図27に示す加工物を作成するために、ユーザが工具を選択すると、表示画面の左側の領域に選択された工具(例えば、工具コード「T10」)を含む加工プログラムが表示される。工具を選択した後、ユーザが図27の加工物の図28A及び図28Bに示すCADデータを選択すると、選択された工具(工具コード「T10」)で加工できる形状を絞らずに、CADデータに含まれる全ての形状が画面の右側の領域に表示される。そして、例えば、図26Aに示すように、ユーザが右上の円形部分を深穴加工するために、当該円形部分を選択すると、図26Bに示すように、選択された工具(工具コード「T10」)及び選択された形状でGコードを絞ることなく、全てのGコードが画面の右側の領域に表示される。
 図26Bに示す表示画面において、ユーザにより「G83 深穴あけサイクル」が選択されると、図26Cに示すように、Gコード「G83」の切削条件のパラメータを設定する画面が右側の領域に表示される。図26Cに示す表示画面においてユーザにより切削条件のパラメータが設定されると、図26Dに示す表示画面の左側の領域において、加工プログラムにGコード「G83」のブロックが追加され表示される。そして、図26Aから図26Dに示す手順を、CADデータに含まれる全ての形状について行うことにより、加工プログラムが生成される。
(b)ユーザがGコードを選択してから加工形状を選択する場合について
 図29A及び図29Bは、ユーザがGコードを選択してから加工形状を選択する場合の表示画面の変化の一例を示す図である。
 図29Aに示すように、ユーザが工具を選択すると、表示画面の左側の領域に選択された工具(例えば、工具コード「T10」)を含む加工プログラムが表示され、選択された工具(工具コード「T10」)が利用できるGコードを絞らずに、全てのGコードが表示画面の右側の領域に表示される。図29Aに示す画面において、例えば、ユーザが、深穴加工するために「G83 深穴あけサイクル」を選択し、図27に示す加工物の図28A及び図28Bに示すCADデータを選択すると、図29Bに示すように、選択されたGコード「G83」で加工できる形状を絞らずに、CADデータに含まれる全ての形状が表示画面の右側の領域に表示される。
 図29Bに示す表示画面において、例えば、ユーザが深穴加工する形状として右上の円形部分を選択すると、Gコード「G83」の切削条件のパラメータを設定する図26Cと同様の画面が右側の領域に表示される。図26Cに示す表示画面においてユーザにより切削条件のパラメータが設定されると、図26Dの場合と同様に、加工プログラムにGコード「G83」のブロックが追加され表示される。そして、図29A、図29B、図26C、図26Dに示す手順を、CADデータに含まれる全ての形状について行うことにより、加工プログラムが生成される。
 しかしながら、上述したいずれの場合でも、全てのGコード及び/又はCADデータの加工形状が表示されてしまうため、所望のGコード又は加工形状の選択に時間がかかるとともに、選択のミスが起こり易い。
 そこで、選択した工具によってGコード及び/又は加工形状を絞って表示することが望まれている。
 (1)本開示の数値制御装置の一態様は、加工プログラムを自動生成する数値制御装置であって、複数の工具に関する工具情報と、前記複数の工具それぞれが加工可能な形状を示す形状識別子と、前記形状識別子が示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を記憶する紐付け情報記憶部と、加工に選択された工具に関する工具情報を取得する工具情報取得部と、取得された前記工具情報で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で加工可能な形状を示す形状識別子を抽出する形状ID情報抽出部と、抽出された前記形状識別子に基づいてCADデータから加工可能な形状を抽出する加工可能形状抽出部と、抽出された前記加工可能な形状を表示する加工可能形状表示部と、を備える。
 (2)本開示の数値制御装置の一態様は、加工プログラムを自動生成する数値制御装置であって、複数の工具に関する工具情報と、前記複数の工具それぞれが加工可能な形状を示す形状識別子と、前記形状識別子が示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を記憶する紐付け情報記憶部と、加工に選択された工具に関する工具情報を取得する工具情報取得部と、取得された前記工具情報で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で使用可能なGコードを抽出する使用可能Gコード抽出部と、抽出された前記使用可能なGコードを表示する使用可能Gコード表示部と、を備える。
 一態様によれば、選択した工具によってGコード及び/又は加工形状を絞って表示することができる。
第1実施形態に係る制御システムの機能的構成例を示す機能ブロック図である。 紐付けテーブルの一例を示す図である。 抽出された加工可能な形状の表示画面の一例を示す図である。 抽出された加工可能な形状の表示画面の一例を示す図である。 絞られた使用可能なGコードの表示の表示画面の一例を示す図である。 選択されたGコードの設定画面の一例を示す図である。 選択されたGコードのブロックが追加された表示画面の一例を示す図である。 数値制御装置10の加工プログラム生成処理について説明するフローチャートである。 図6においてステップS1で示した工具情報取得処理を説明するフローチャートである。 図6においてステップS3で示した加工可能形状抽出処理を説明するフローチャートである。 図6においてステップS3で示した加工可能形状抽出処理を説明するフローチャートである。 図6においてステップS5で示した選択形状取得処理を説明するフローチャートである。 図8AのステップS32における加工物のCADデータに形状ID「1」の穴形状があるか否かの判定処理を説明するフローチャートである。 穴形状のCADデータの一例を示す図である。 図8AのステップS35における加工物のCADデータに形状ID「2」のネジ形状があるか否かの判定処理を説明するフローチャートである。 ネジ形状のCADデータの一例を示す図である。 図8AのステップS38における加工物のCADデータに形状ID「3」のポケット形状があるか否かの判定処理を説明するフローチャートである。 ポケット形状のCADデータの一例を示す図である。 図8BのステップS3Bにおける加工物のCADデータに形状ID「4」の輪郭形状があるか否かの判定処理を説明するフローチャートである。 輪郭形状のCADデータの一例を示す図である。 図8BのステップS3Eにおける加工物のCADデータに形状ID「5」の傾斜形状があるか否かの判定処理を説明するフローチャートである。 傾斜形状のCADデータの一例を示す図である。 第2実施形態に係る制御システムの機能的構成例を示す機能ブロック図である。 使用可能なGコードの表示画面の一例を示す図である。 抽出された加工可能な形状の表示画面の一例を示す図である。 数値制御装置の加工プログラム生成処理について説明するフローチャートである。 輪郭加工の外壁荒加工「G1060」のGコードの場合の設定画面の一例を示す図である。 選択されたGコードのブロックが追加された画面の一例を示す図である。 ユーザが加工形状を選択してからGコードを選択する場合の表示画面の変化の一例を示す図である。 ユーザが加工形状を選択してからGコードを選択する場合の表示画面の変化の一例を示す図である。 ユーザが加工形状を選択してからGコードを選択する場合の表示画面の変化の一例を示す図である。 ユーザが加工形状を選択してからGコードを選択する場合の表示画面の変化の一例を示す図である。 加工物の一例を示す図である。 図27の加工物のCADデータの一例を示す図である。 図27の加工物のCADデータの一例を示す図である。 ユーザがGコードを選択してから加工形状を選択する場合の表示画面の変化の一例を示す図である。 ユーザがGコードを選択してから加工形状を選択する場合の表示画面の変化の一例を示す図である。
<第1実施形態>
 まず、本実施形態の概略を説明する。本実施形態では、数値制御装置は、複数の工具に関する工具情報と、複数の工具それぞれが加工可能な形状を示す形状識別子と、形状識別子が示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を記憶する。数値制御装置は、加工に選択された工具に関する工具情報を取得し、取得した工具情報とで紐付け情報に問合せして、取得された工具情報の工具で加工可能な形状を示す形状識別子を抽出し、抽出した加工可能な形状を表示する。
 これにより、本実施形態によれば、「選択した工具によってGコード及び/又は加工形状を絞って表示する」という課題を解決することができる。
 以上が第1実施形態の概略である。
 次に、本実施形態の構成について図面を用いて詳細に説明する。
 図1は、第1実施形態に係る制御システムの機能的構成例を示す機能ブロック図である。図1に示すように、制御システム1は、数値制御装置10、及び工作機械20を有する。
 数値制御装置10、及び工作機械20は、図示しない接続インタフェースを介して互いに直接接続されてもよい。また、数値制御装置10、及び工作機械20は、LAN(Local Area Network)やインターネット等の図示しないネットワークを介して相互に接続されていてもよい。この場合、数値制御装置10、及び工作機械20は、かかる接続によって相互に通信を行うための図示しない通信部を備えている。なお、後述するように、工作機械20は、数値制御装置10を含んでもよい。
 工作機械20は、当業者にとって公知の工作機械であり、数値制御装置10の動作指令に基づいて動作する。
 なお、工作機械20は、例えば、工作機械20に含まれるHDD(Hard Disk Drive)等の図示しない記憶部に、工作機械20の主軸(図示しない)に取付けられる全ての工具を管理する工具管理テーブル(図示しない)を記憶してもよい。そして、後述する数値制御装置10は、加工プログラムに設定された「T10」等の工具番号等に基づいて、工具名、工具径、工具長等を工作機械20の工具管理テーブル(図示しない)から取得してもよい。
 数値制御装置10は、当業者にとって公知の数値制御装置であり、加工プログラムの実行に基づいて動作指令を生成し、生成した動作指令を工作機械20に送信する。これにより、数値制御装置10は、工作機械20の動作を制御する。
 図1に示すように、数値制御装置10は、制御部11、入力部12、表示部13、及び記憶部14を含む。制御部11は、工具情報取得部110、形状ID情報抽出部111、加工可能形状抽出部112、選択形状取得部113、使用可能Gコード抽出部114、及びプログラム生成部115を有する。また、記憶部14は、紐付けテーブル141を含む。
 入力部12は、例えば、キーボード、MDI(Manual Data Input)、及び/又は後述する表示部13の前面に配置されたタッチパネル等で構成され、オペレータであるユーザからの入力を受け付ける。入力部12は、ユーザの入力操作に基づいて、後述する加工可能形状抽出部112により抽出された加工可能な形状を選択する形状選択受付部として機能する。また、入力部12は、ユーザの入力操作に基づいて、後述する使用可能Gコード抽出部114によりさらに絞られた使用可能なGコードを選択するGコード選択受付部として機能する。
 表示部13は、LCD(Liquid Crystal Display)等の表示装置であり、表示装置の前面に配置されたタッチパネル(図示しない)を有する。表示部13は、後述する加工可能形状抽出部112により抽出された加工可能な形状を表示する加工可能形状表示部として機能する。また、表示部13は、加工可能な形状に加工するのに後述する使用可能Gコード抽出部114によりさらに絞られた使用可能なGコードを表示する使用可能Gコード表示部として機能する。
<記憶部14>
 記憶部14は、例えばRAM(Random Access Memory)やHDD(Hard Disk Drive)等である。記憶部14は、数値制御装置10が、数値制御装置として機能するための公知の制御ソフトウェアを含む各種プログラムを記憶するほか、紐付けテーブル141を備える。
 紐付けテーブル141は、複数の工具に関する工具情報と、複数の工具それぞれが加工可能な形状を示す形状識別子(以下、「形状ID」ともいう)と、当該形状IDが示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を含む。
 図2は、紐付けテーブル141の一例を示す図である。
 図2に示すように、紐付けテーブル141は、例えば、「Tid」、「工具」、「Sid」、「形状(CAD)」、「Gid」、及び「Gコード」の格納領域を含む。
 紐付けテーブル141内の「Tid」の格納領域には、予め工具毎に割り当てられた「1」や「2」等の工具識別子(以下、「工具ID」ともいう)が格納される。なお、「Tid」の格納領域に格納される工具IDは、工具番号及び種類が同じ工具であっても加工する形状が異なる場合、異なる工具IDが割り当てられる。
 紐付けテーブル141内の「工具」の格納領域には、「Tid」に対応する工具番号(例えば、「T10」等)及び工具の種類(例えば、「ドリル」等)が格納される。なお、「工具」の格納領域に格納される工具番号及び工具の種類は、上述したように、工作機械20の工具管理テーブル(図示しない)から予め取得されることが好ましい。
 紐付けテーブル141内の「Sid」の格納領域には、「工具」の格納領域に格納された工具で加工可能な形状を示す「1」や「2」等の形状IDが格納される。
 紐付けテーブル141内の「形状(CAD)」の格納領域には、「工具」の格納領域に格納された工具で加工される形状を示すCADデータが格納される。具体的には、「Sid」が「1」の「形状(CAD)」の格納領域には、工具番号「T10」のドリルで空けられる穴の形状を示すCADデータが格納される。また、「Sid」が「2」の「形状(CAD)」の格納領域には、例えば工具番号「T10」等のドリルで空けられた細線で示す穴に、工具番号「T20」のタップで加工される太線で示すネジ山の部分の形状を示すCADデータが格納される。また、「Sid」が「3」の「形状(CAD)」の格納領域には、例えば工具番号「T30」のエンドミルでポケット加工される形状を示すCADデータが格納される。また、「Sid」が「4」の「形状(CAD)」の格納領域には、例えば工具番号「T30」のエンドミルで輪郭加工される形状を示すCADデータが格納される。また、「Sid」が「5」の「形状(CAD)」の格納領域には、例えば工具番号「T10」のドリルで斜めに傾けて空けられる穴の形状を示すCADデータが格納される。
 なお、紐付けテーブル141内の「形状(CAD)」の格納領域には、加工される形状のCADデータに限定されない。例えば、「Sid」が「1」の「形状(CAD)」の格納領域には、例えば工具番号「T10」の直径10mmのドリルで空けられる3つの穴の形状を示す「3-φ10」等の「k-φ*」の書式の文字データが格納されてもよい。なお、kは穴の個数を示し、*は穴の直径を示す。また、「Sid」が「2」の「形状(CAD)」の格納領域には、工具番号「T20」のタップで、例えば直径10mmの穴に深さ15mmで高さ1.5mmのネジ山の部分の形状を示す「M10×1.5×15」等の「M*×h×D」の書式の文字データが格納されてもよい。なお、hはネジ山の高さを示し、Dはネジ山の部分の深さを示す。
 紐付けテーブル141内の「Gid」の格納領域には、「工具」の格納領域に格納された工具で「形状(CAD)」の格納領域に格納された形状を加工するのに使用可能なGコードを示す「1」や「2」等のGコード識別子(以下、「GコードID」ともいう)が格納される。
 紐付けテーブル141内の「Gコード」の格納領域には、「工具」の格納領域に格納された工具で「形状(CAD)」の格納領域に格納された形状を加工するのに使用可能な少なくとも1つのGコードが格納される。具体的には、GコードID「Gid」が「1」の「Gコード」の格納領域には、工具番号「T10」のドリルで穴を加工するのに使用可能な、ドリルサイクル「G81」、ドリルサイクル「G82」、深穴あけサイクル「G83」、キャンセル「G80」、ドリルサイクル「G1110」、及びドリルサイクル「G1111」のGコードが格納される。また、GコードID「Gid」が「2」の「Gコード」の格納領域には、例えば工具番号「T10」のドリルで空けられた穴に、工具番号「T20」のタップでネジ山の形状を加工するのに使用可能な、タッピングリング「G84」、及びタッピングリング「G1112」のGコードが格納される。また、GコードID「Gid」が「3」の「Gコード」の格納領域には、例えば工具番号「T30」のエンドミルでポケット加工するのに使用可能な、ポケット加工の荒加工「G1040」、ポケット加工の底面仕上げ「G1041」、及びポケット加工の側面仕上げ「G1042」のGコードが格納される。また、GコードID「Gid」が「3」の「Gコード」の格納領域には、例えば工具番号「T30」のエンドミルで輪郭加工するのに使用可能な、輪郭加工の外壁荒加工「G1060」、輪郭加工の外壁底面仕上げ「G1061」、及び輪郭加工の外壁側面仕上げ「G1062」のGコードが格納される。また、GコードID「Gid」が「5」の「Gコード」の格納領域には、例えば工具番号「T10」のドリルで斜めに傾いた穴を加工するのに使用可能な、傾斜面割り出し指令「G68.2」、工具軸方向による傾斜面割り出し指令「G68.3」、及び傾斜面割り出し指令(インクリメンタル多重指令)「G68.4」のGコードが格納される。
<制御部11>
 制御部11は、CPU(Central Processing Unit)、ROM、RAM、CMOS(Complementary Metal-Oxide-Semiconductor)メモリ等を有し、これらはバスを介して相互に通信可能に構成される、当業者にとって公知のものである。
 CPUは数値制御装置10を全体的に制御するプロセッサである。CPUは、ROMに格納されたシステムプログラム及びアプリケーションプログラムを、バスを介して読み出し、システムプログラム及びアプリケーションプログラムに従って数値制御装置10全体を制御する。これにより、図1に示すように、制御部11が、工具情報取得部110、形状ID情報抽出部111、加工可能形状抽出部112、選択形状取得部113、使用可能Gコード抽出部114、及びプログラム生成部115の機能を実現するように構成される。RAMには一時的な計算データや表示データ等の各種データが格納される。また、CMOSメモリは図示しないバッテリでバックアップされ、数値制御装置10の電源がオフされても記憶状態が保持される不揮発性メモリとして構成される。
 工具情報取得部110は、加工に選択された工具に関する工具情報を取得する。
 具体的には、工具情報取得部110は、例えば、入力部12を介してユーザの入力操作に基づいて、工具情報(例えば、工具番号や工具の種類等)を取得する。なお、工具情報取得部110は、入力部12を介してユーザにより工具情報が入力されない場合、例えば、工作機械20の工具管理データ(図示しない)から予め取得されたツーリングデータから工具情報(例えば、工具番号や工具の種類等)を取得するようにしてもよい。
 形状ID情報抽出部111は、工具情報取得部110により取得された工具情報で紐付け情報記憶部である紐付けテーブル141に問い合せして、取得された工具情報の工具で加工可能な形状を示す形状ID(Sid)を抽出する。
 具体的には、形状ID情報抽出部111は、例えば、工具情報取得部110により取得された工具情報が工具番号「T10」を含む場合、紐付けテーブル141に基づいて、「Sid」が「1」及び「5」の形状IDを抽出する。また、形状ID情報抽出部111は、例えば、工具情報取得部110により取得された工具情報が工具番号「T20」を含む場合、紐付けテーブル141に基づいて、「Sid」が「2」の形状IDを抽出する。また、形状ID情報抽出部111は、例えば、工具情報取得部110により取得された工具情報が工具番号「T30」を含む場合、紐付けテーブル141に基づいて、「Sid」が「3」及び「4」の形状IDを抽出する。
 加工可能形状抽出部112は、形状ID情報抽出部111により抽出された形状IDに基づいて、対象となる加工物のCADデータから加工可能な形状を抽出する。
 具体的には、加工可能形状抽出部112は、例えば、形状ID情報抽出部111により抽出された形状IDが「1」及び「5」の場合、X軸、Y軸、又はZ軸に平行に加工される穴、及び斜めに傾いて加工される穴を加工可能な形状としてCADデータから抽出する。また、加工可能形状抽出部112は、形状ID情報抽出部111により抽出された形状IDが「2」の場合、ネジ山が加工される部分を加工可能な形状としてCADデータから抽出する。また、加工可能形状抽出部112は、形状ID情報抽出部111により抽出された形状IDが「3」及び「4」の場合、ポケット加工される部分、及び輪郭加工される部分を加工可能な形状としてCADデータから抽出する。なお、加工可能形状抽出部112の詳細な説明は、後述する。
 そして、加工可能形状表示部としての表示部13は、加工可能形状抽出部112により抽出された加工可能な形状を表示する。
 図3A及び図3Bは、抽出された加工可能な形状の表示画面の一例を示す図である。
 図3Aに示すように、加工可能形状抽出部112が加工可能な形状として形状ID「1」の穴の形状を図28A及び図28Bに示すCADデータから抽出した場合、加工可能形状表示部としての表示部13は、例えば、抽出された穴の形状を太線で強調して表示するようにしてもよい。また、図3Bに示すように、加工可能形状抽出部112が加工可能な形状として形状ID「3」のポケット加工する部分、及び/又は形状ID「4」の輪郭加工する部分の加工形状を図28A及び図28Bに示すCADデータから抽出した場合、加工可能形状表示部としての表示部13は、例えば、抽出された加工可能な形状を太線で強調して表示するようにしてもよい。
 なお、加工可能形状表示部としての表示部13は、抽出された加工可能な形状を太線で強調表示したが、太線以外の線で強調表示してもよく、赤色等の色の線で強調表示してもよい。
 選択形状取得部113は、例えば、加工可能形状表示部としての表示部13に表示された図3A又は図3Bの表示画面において、形状選択受付部としての入力部12を介してユーザにより加工可能な形状が選択された場合、選択された加工可能な形状の形状IDを取得する。選択形状取得部113は、取得した加工可能な形状の形状IDを、工具情報取得部110により取得された工具情報とともに後述する使用可能Gコード抽出部114に出力する。
 使用可能Gコード抽出部114は、選択形状取得部113から受信した工具情報と加工可能な形状の形状IDとで紐付け情報記憶部としての紐付けテーブル141に問い合せして、受信した工具情報の工具で受信した形状IDの形状に加工するのに使用可能なGコードをさらに絞る。
 具体的には、使用可能Gコード抽出部114は、例えば、工具情報取得部110により取得された工具番号「T10」と、形状選択受付部としての入力部12を介してユーザにより選択された穴の形状を示す形状ID「1」と、を選択形状取得部113から受信した場合、紐付けテーブル141に基づいて、GコードID「Gid」が「1」の使用可能な、ドリルサイクル「G81」、ドリルサイクル「G82」、深穴あけサイクル「G83」、キャンセル「G80」、ドリルサイクル「G1110」、及びドリルサイクル「G1111」のGコードを抽出し絞る。また、使用可能Gコード抽出部114は、工具情報取得部110により取得された工具番号「T20」と、形状選択受付部としての入力部12を介してユーザにより選択されたネジ山の部分を示す形状ID「2」と、を選択形状取得部113から受信した場合、紐付けテーブル141に基づいて、GコードID「Gid」が「2」の使用可能な、タッピングリング「G84」、及びタッピングリング「G1112」のGコードを抽出し絞る。
 また、使用可能Gコード抽出部114は、工具情報取得部110により取得された工具番号「T30」と、形状選択受付部としての入力部12を介してユーザにより選択されたポケット加工の部分を示す形状ID「3」と、を選択形状取得部113から受信した場合、紐付けテーブル141に基づいて、GコードID「Gid」が「3」の使用可能な、ポケット加工の荒加工「G1040」、ポケット加工の底面仕上げ「G1041」、及びポケット加工の側面仕上げ「G1042」のGコードを抽出し絞る。また、使用可能Gコード抽出部114は、工具情報取得部110により取得された工具番号「T30」と、形状選択受付部としての入力部12を介してユーザにより選択された輪郭加工の部分を示す形状ID「4」と、を選択形状取得部113から受信した場合、紐付けテーブル141に基づいて、GコードID「Gid」が「4」の使用可能な、輪郭加工の外壁荒加工「G1060」、輪郭加工の外壁底面仕上げ「G1061」、及び輪郭加工の外壁側面仕上げ「G1062」のGコードを抽出し絞る。また、使用可能Gコード抽出部114は、工具情報取得部110により取得された工具番号「T10」と、形状選択受付部としての入力部12を介してユーザにより選択された斜めに傾いた穴の形状を示す形状ID「5」と、を選択形状取得部113から受信した場合、紐付けテーブル141に基づいて、GコードID「Gid」が「5」の使用可能な、傾斜面割り出し指令「G68.2」、工具軸方向による傾斜面割り出し指令「G68.3」、及び傾斜面割り出し指令(インクリメンタル多重指令)「G68.4」のGコードを抽出し絞る。
 そして、使用可能Gコード表示部としての表示部13は、使用可能Gコード抽出部114により絞られた使用可能なGコードを表示する。
 図4は、絞られた使用可能なGコードの表示の表示画面の一例を示す図である。
 例えば、図3Bに示す表示画面において、ポケット加工の部分がユーザにより選択された場合、図4に示すように、使用可能Gコード表示部としての表示部13は、ポケット加工の荒加工「G1040」、ポケット加工の底面仕上げ「G1041」、及びポケット加工の側面仕上げ「G1042」のGコードのみを表示する。
 そうすることで、数値制御装置10は、Gコードと加工形状との選択を容易に行うことができ、加工プログラムの作成時間を短縮することができる。また、数値制御装置10は、可能なGコードと加工形状とを提示しユーザに選択させることで、加工プログラムを間違って入力することを防ぐことができる。
 プログラム生成部115は、例えば、使用可能Gコード表示部としての表示部13に表示された図4の画面において、Gコード選択受付部としての入力部12を介してユーザにより選択されたGコードを受け付ける。プログラム生成部115は、選択されたGコードのパラメータを設定するために、表示部13にパラメータ設定画面を表示する。
 図5Aは、選択されたGコードの設定画面の一例を示す図である。図5Bは、選択されたGコードのブロックが追加された表示画面の一例を示す図である。
 プログラム生成部115は、図5Aの設定画面を介してユーザにより入力されたパラメータを用いて、図5Bに示すように、選択されたGコードを含むブロックを追加し加工プログラムを生成する。
 なお、「G1200」はポケット加工の開始点を設定するGコードであり、「G1201」はポケット加工の直線を設定するGコードである。また、「G1990」はグループ範囲選択開始指令のGコードであり、「G1991」はグループ範囲選択終了指令のGコードである。
<数値制御装置10の加工プログラム生成処理>
 次に、図6を参照しながら、数値制御装置10の加工プログラム生成処理の流れを説明する。
 図6は、数値制御装置10の加工プログラム生成処理について説明するフローチャートである。ここで示すフローは、加工プログラムが生成される度に実行される。
 以下、加工可能な形状として、穴の形状(以下、「穴形状」ともいう)、ネジ山の部分(以下、「ネジ形状」ともいう)、ポケット加工の部分(以下、「ポケット形状」ともいう)、輪郭加工の部分(以下、「輪郭形状」ともいう)、斜めに傾いた穴の形状(以下、「傾斜形状」ともいう)の場合について説明するが、これに限定されない。穴形状、ネジ形状、ポケット形状、輪郭形状、傾斜形状以外の加工可能な形状の場合についても同様に処理することができる。
 ステップS1において、工具情報取得部110は、入力部12を介してユーザの入力操作に基づいて、工具情報取得処理を行い、工具情報(例えば、工具番号や工具の種類等)を取得する。なお、工具情報取得処理の詳細なフローについては、後述する。
 ステップS2において、形状ID情報抽出部111は、ステップS1で取得された工具情報で紐付け情報記憶部である紐付けテーブル141に問い合せして、取得された工具情報の工具で加工可能な形状の形状IDを抽出する。
 ステップS3において、加工可能形状抽出部112は、ステップS2で抽出された形状IDに基づいて、加工可能形状抽出処理を行い、対象となる加工物のCADデータから加工可能な形状を抽出する。なお、加工可能形状抽出処理の詳細なフローについては、後述する。
 ステップS4において、加工可能形状表示部としての表示部13は、ステップS3で抽出された形状を表示する(例えば、図3A又は図3B)。
 ステップS5において、選択形状取得部113は、加工可能形状表示部としての表示部13に表示された画面において、形状選択受付部としての入力部12を介してユーザによる加工可能な形状の選択に基づいて、選択形状取得処理を行い、ユーザにより選択された加工可能な形状の形状IDを取得する。なお、選択形状取得処理の詳細なフローについては、後述する。
 ステップS6において、使用可能Gコード抽出部114は、ステップS1で取得された工具情報と、ステップS5で選択された加工可能な形状の形状IDと、で紐付けテーブル141に問い合せして、使用可能なGコードをさらに絞る。
 ステップS7において、使用可能Gコード表示部としての表示部13は、ステップS6で絞られた使用可能なGコードを表示する(例えば、図4)。
 ステップS8において、プログラム生成部115は、使用可能Gコード表示部としての表示部13に表示された表示画面において、Gコード選択受付部としての入力部12を介してユーザにより選択されたGコードを受け付ける。
 ステップS9において、プログラム生成部115は、ステップS8で受け付けたGコードGコードの設定画面(例えば、図5A)を表示部13に表示し、入力部12を介してユーザにより入力されたパラメータを受け付ける。
 ステップS10において、プログラム生成部115は、ステップS9でユーザにより入力されたパラメータを用いて、選択されたGコードを含むブロックを追加する(例えば、図5B)。
 ステップS11において、プログラム生成部115は、加工プログラムの生成が終了したか否かを判定する。プログラム生成部115は、入力部12を介してユーザにより加工プログラムの「保存」や「終了」等の入力を受け付けた場合、加工プログラムの生成が終了したと判定し、処理は終了する。一方、プログラム生成部115は、入力部12を介してユーザにより加工プログラムの「保存」や「終了」等の入力を受け付けていない場合、加工プログラムの生成は終了していないと判定し、処理はステップS1に戻る。
<ステップS1の工具情報取得処理>
 図7は、図6においてステップS1で示した工具情報取得処理を説明するフローチャートである。
 ステップS1Aにおいて、工具情報取得部110は、入力部12を介してユーザの入力操作に基づいて、工具情報が入力されたか否かを判定する。工具情報が入力された場合、処理はステップS1Bに進む。一方、工具情報が入力されていない場合、処理はステップS1Cに進む。
 ステップS1Bにおいて、工具情報取得部110は、入力部12を介してユーザにより入力された工具情報(例えば、工具番号や工具の種類等)を取得する。
 ステップS1Cにおいて、工具情報取得部110は、工作機械20の工具管理データ(図示しない)から予め取得されたツーリングデータから工具情報(例えば、工具番号や工具の種類等)を取得する。
 以上により、工具情報取得処理のフローは終了し、処理は図6のフローに戻る。
<ステップS3の加工可能形状抽出処理>
 図8A及び図8Bは、図6においてステップS3で示した加工可能形状抽出処理を説明するフローチャートである。
 ステップS31において、加工可能形状抽出部112は、ステップS2で抽出された形状IDが、穴形状の「1」であるか否かを判定する。形状IDが、穴形状の「1」である場合、処理はステップS32に進む。一方、形状IDが、穴形状の「1」でない場合、処理はステップS34に進む。
 ステップS32において、加工可能形状抽出部112は、加工物のCADデータに形状ID「1」の穴形状があるか否かの判定処理を行う。なお、ステップS32の判定処理の詳細なフローについては、後述する。
 ステップS33において、ステップS32の判定処理の結果から穴形状がある場合、処理はステップS3Gに進む。一方、ステップS32の判定処理の結果から穴形状がない場合、処理はステップS3Hに進む。
 ステップS34において、加工可能形状抽出部112は、ステップS2で抽出された形状IDが、ネジ形状の「2」であるか否かを判定する。形状IDが、ネジ形状の「2」である場合、処理はステップS35に進む。一方、形状IDが、ネジ形状の「2」でない場合、処理は図8BのステップS37に進む。
 ステップS35において、加工可能形状抽出部112は、加工物のCADデータに形状ID「2」のネジ形状があるか否かの判定処理を行う。なお、ステップS35の判定処理の詳細なフローについては、後述する。
 ステップS36において、ステップS35の判定処理の結果からネジ形状がある場合、処理はステップS3Gに進む。一方、ステップS35の判定処理の結果からネジ形状がない場合、処理はステップS3Hに進む。
 図8BのステップS37において、加工可能形状抽出部112は、ステップS2で抽出された形状IDが、ポケット形状の「3」であるか否かを判定する。形状IDが、ポケット形状の「3」である場合、処理はステップS38に進む。一方、形状IDが、ポケット形状の「3」でない場合、処理はステップS3Aに進む。
 ステップS38において、加工可能形状抽出部112は、加工物のCADデータに形状ID「3」のポケット形状があるか否かの判定処理を行う。なお、ステップS38の判定処理の詳細なフローについては、後述する。
 ステップS39において、ステップS38の判定処理の結果からポケット形状がある場合、処理はステップS3Gに進む。一方、ステップS38の判定処理の結果からポケット形状がない場合、処理は図8AのステップS3Hに進む。
 ステップS3Aにおいて、加工可能形状抽出部112は、ステップS2で抽出された形状IDが、輪郭形状の「4」であるか否かを判定する。形状IDが、輪郭形状の「4」である場合、処理はステップS3Bに進む。一方、形状IDが、輪郭形状の「4」でない場合、処理はステップS3Dに進む。
 ステップS3Bにおいて、加工可能形状抽出部112は、加工物のCADデータに形状ID「4」の輪郭形状があるか否かの判定処理を行う。なお、ステップS3Bの判定処理の詳細なフローについては、後述する。
 ステップS3Cにおいて、加工可能形状抽出部112は、ステップS3Bの判定処理の結果から輪郭形状がある場合、処理は図8AのステップS3Gに進む。一方、加工可能形状抽出部112は、ステップS3Gの判定処理の結果から輪郭形状がない場合、処理は図8AのステップS3Hに進む。
 ステップS3Dにおいて、加工可能形状抽出部112は、ステップS2で抽出された形状IDが、傾斜形状の「5」であるか否かを判定する。形状IDが、傾斜形状の「5」である場合、処理はステップS3Eに進む。一方、形状IDが、輪郭形状の「5」でない場合、処理は図8AのステップS3Hに進む。
 ステップS3Eにおいて、加工可能形状抽出部112は、加工物のCADデータに形状ID「5」の傾斜形状があるか否かの判定処理を行う。なお、ステップS3Eの判定処理の詳細なフローについては、後述する。
 ステップS3Fにおいて、ステップS3Eの判定処理の結果から傾斜形状がある場合、図8AのステップS3Gに進む。一方、ステップS3Eの判定処理の結果から傾斜形状がない場合、処理は図8AのステップS3Hに進む。
 ステップS3Gにおいて、加工可能形状抽出部112は、CADデータから形状IDに対応する加工可能な形状を抽出する。処理はステップS3Hに進む。
 ステップS3Hにおいて、加工可能形状抽出部112は、全ての抽出された形状IDをチェックしたか否かを判定する。全ての抽出された形状IDをチェックしていない場合、処理はステップS31に戻る。一方、全ての抽出された形状IDをチェックした場合、ステップS3の加工可能形状抽出処理のフローは終了し、処理は図6のフローに戻る。
<ステップS5の選択形状取得処理>
 図9は、図6においてステップS5で示した選択形状取得処理を説明するフローチャートである。
 ステップS51において、選択形状取得部113は、ユーザにより選択された加工形状が穴形状か否かを判定する。ユーザにより選択された加工形状が穴形状である場合、処理はステップS52に進む。一方、ユーザにより選択された加工形状が穴形状でない場合、処理はステップS53に進む。
 ステップS52において、選択形状取得部113は、ユーザにより選択された穴形状の形状ID「1」を取得する。
 ステップS53において、選択形状取得部113は、ユーザにより選択された加工形状がネジ形状か否かを判定する。ユーザにより選択された加工形状がネジ形状である場合、処理はステップS54に進む。一方、ユーザにより選択された加工形状がネジ形状でない場合、処理はステップS55に進む。
 ステップS54において、選択形状取得部113は、ユーザにより選択されたネジ形状の形状ID「2」を取得する。
 ステップS55において、選択形状取得部113は、ユーザにより選択された加工形状がポケット形状か否かを判定する。ユーザにより選択された加工形状がポケット形状である場合、処理はステップS56に進む。一方、ユーザにより選択された加工形状がポケット形状でない場合、処理はステップS57に進む。
 ステップS56において、選択形状取得部113は、ユーザにより選択されたポケット形状の形状ID「3」を取得する。
 ステップS57において、選択形状取得部113は、ユーザにより選択された加工形状が輪郭形状か否かを判定する。ユーザにより選択された加工形状が輪郭形状である場合、処理はステップS58に進む。一方、ユーザにより選択された加工形状が輪郭形状でない場合、処理はステップS59に進む。
 ステップS58において、選択形状取得部113は、ユーザにより選択された輪郭形状の形状ID「4」を取得する。
 ステップS59において、選択形状取得部113は、ユーザにより選択された加工形状が傾斜形状か否かを判定する。ユーザにより選択された加工形状が傾斜形状である場合、処理はステップS5Aに進む。一方、ユーザにより選択された加工形状が傾斜形状でない場合、選択形状取得処理のフローは終了し、処理は図6のフローに戻る。
 ステップS5Aにおいて、選択形状取得部113は、ユーザにより選択された加工形状が傾斜形状あるとして、傾斜形状の形状ID「5」を取得する。以上により、選択形状取得処理のフローは終了し、処理は図6のフローに戻る。
<ステップS32の判定処理>
 図10は、図8AのステップS32における加工物のCADデータに形状ID「1」の穴形状があるか否かの判定処理を説明するフローチャートである。
 図11は、穴形状のCADデータの一例を示す図である。図11に示すように、端点Pと端点Pとの間の距離(穴の直径)をL、端点Pから穴形状の先端までの距離をLi+1、端点Pから穴形状の先端までの距離をLi+2、端点Pから穴形状の終端までの距離をLi+3、及び端点Pから穴形状の終端までの距離をLi+4とする。また、直線Lと直線Li+3とのなす角、及び直線Lと直線Li+4とのなす角は90度である。また、直線L、Li+1、Li+2からなる三角形は2等辺三角形であり、直線Lと直線Li+1とのなす角と、直線Lと直線Li+2とのなす角と、は同じである。
 ステップS321において、加工可能形状抽出部112は、iを「0」に初期化する。
 ステップS322において、加工可能形状抽出部112は、iを1つ増加させる。
 ステップS323において、加工可能形状抽出部112は、加工物のCADデータにおいて、端点Pを端点とする直線Li+1、Li+3があるか否かを判定する。直線Li+1、Li+3がある場合、処理はステップS324に進む。一方、直線Li+1、Li+3がない場合、処理はステップS329に進む。
 ステップS324において、加工可能形状抽出部112は、加工物のCADデータにおいて、端点Pを端点とする直線Li+2、Li+4があるか否かを判定する。直線Li+2、Li+4がある場合、処理はステップS325に進む。一方、直線Li+2、Li+4がない場合、処理はステップS329に進む。
 ステップS325において、加工可能形状抽出部112は、直線Lと直線Li+3とのなす角、及び直線Lと直線Li+4とのなす角が90度か否かを判定する。直線Lと直線Li+3とのなす角、及び直線Lと直線Li+4とのなす角が90度の場合、処理はステップS326に進む。直線Lと直線Li+3とのなす角及び/又は直線Lと直線Li+4とのなす角が90度でない場合、処理はステップS329に進む。
 ステップS326において、加工可能形状抽出部112は、直線Lと直線Li+1とのなす角と、直線Lと直線Li+2とのなす角と、が等しいか否かを判定する。直線Lと直線Li+1とのなす角と、直線Lと直線Li+2とのなす角と、が等しい場合、処理はステップS327に進む。一方、直線Lと直線Li+1とのなす角と、直線Lと直線Li+2とのなす角と、が等しくない場合、処理はステップS329に進む。
 ステップS327において、加工可能形状抽出部112は、直線LがX軸又はY軸に平行か否かを判定する。直線LがX軸又はY軸に平行の場合、処理はステップS328に進む。一方、直線LがX軸及びY軸に平行でない場合、処理はステップS329に進む。
 ステップS328において、加工可能形状抽出部112は、加工物のCADデータに穴形状があると判定する。ステップS32の判定処理のフローは終了し、処理は図8Aのフローに戻る。
 ステップS329において、加工可能形状抽出部112は、全ての直線をチェックしたか否かを判定する。全ての直線をチェックした場合、ステップS32の判定処理のフローは終了し、処理は図8Aのフローに戻る。一方、全ての直線をチェックしていない場合、処理はステップS322に戻る。
<ステップS35の判定処理>
 図12は、図8AのステップS35における加工物のCADデータに形状ID「2」のネジ形状があるか否かの判定処理を説明するフローチャートである。
 なお、ステップS351、ステップS352、及びステップS359の処理は、図10のステップS321、ステップS322、及びステップS329の処理と同様であり、説明は省略する。
 また、図13は、ネジ形状のCADデータの一例を示す図である。図13のネジ形状では、図11と同様の穴形状を含む。このため、穴形状の説明は省略する。図13に示すように、端点PNSと端点PNEとの間の距離をLi+5、端点PNSからネジ形状の終端までの距離をLi+6、端点PNEからネジ形状の終端までの距離をLi+7とするネジ形状が、図11の穴形状に形成されている。
 ステップS353において、加工可能形状抽出部112は、図10と同様の判定処理を行うことにより、加工物のCADデータに穴形状があるか否かを判定する。穴形状がある場合、処理はステップS354に進む。一方、穴形状がない場合、処理はステップS359に進む。
 ステップS354において、加工可能形状抽出部112は、ステップS353で判定処理された穴形状のCADデータに、端点PNSと端点PNEとを結ぶ直線Li+5があるか否かを判定する。直線Li+5がある場合、処理はステップS355に進む。一方、直線Li+5がない場合、処理はステップS359に進む。
 ステップS355において、加工可能形状抽出部112は、加工物のCADデータにおいて、端点PNSを端点とする直線Li+6があるか否かを判定する。直線Li+6がある場合、処理はステップS356に進む。一方、直線Li+6がない場合、処理はステップS359に進む。
 ステップS356において、加工可能形状抽出部112は、加工物のCADデータにおいて、端点PNEを端点とする直線Li+7があるか否かを判定する。直線Li+7がある場合、処理はステップS357に進む。一方、直線Li+7がない場合、処理はステップS359に進む。
 ステップS357において、加工可能形状抽出部112は、直線Li+5と直線Li+6とのなす角、及び直線Li+5と直線Li+7とのなす角が90度か否かを判定する。直線Li+5と直線Li+6とのなす角、及び直線Li+5と直線Li+7とのなす角が90度の場合、処理はステップS358に進む。直線Li+5と直線Li+6とのなす角及び/又は直線Li+5と直線Li+7とのなす角が90度でない場合、処理はステップS359に進む。
 ステップS358において、加工可能形状抽出部112は、加工物のCADデータにネジ形状があると判定する。ステップS35の判定処理のフローは終了し、処理は図8Aのフローに戻る。
<ステップS38の判定処理>
 図14は、図8AのステップS38における加工物のCADデータに形状ID「3」のポケット形状があるか否かの判定処理を説明するフローチャートである。
 なお、ステップS381、ステップS382、及びステップS38Aの処理は、図10のステップS321、ステップS322、及びステップS329の処理と同様であり、説明は省略する。
 また、図15は、ポケット形状のCADデータの一例を示す図である。図15の上段は、上から見たポケット形状を示し、図15の下段は、正面から見たポケット形状を示す。図15に示すように、X軸方向において、端点PSLと端点PSRとを結ぶ直線はLLRとする。
 ステップS383において、加工可能形状抽出部112は、加工物のCADデータにおいて、任意の1つの要素に隣接する要素Eを取得する(jは1からnの整数であり、nは1以上の整数である)。
 ステップS384において、加工可能形状抽出部112は、要素EからX軸方向において形状の最も左端の点P、及び最も右端の点Pを取得する。
 ステップS385において、加工可能形状抽出部112は、全ての直線要素から、Y軸に平行、かつ始点又は終点のY座標の値(Y値)がステップS384で取得された点P又は点PのY座標の値(Y値)と同じ直線L、Lを探索する。
 ステップS386において、加工可能形状抽出部112は、直線L、Lがあるか否かを判定する。直線L、Lがある場合、処理はステップS387に進む。一方、直線L、Lがない場合、処理はステップS38Aに進む。
 ステップS387において、加工可能形状抽出部112は、直線LのY値の小さい端点PSLと直線LのY値の小さい端点PSRとを結ぶ直線LLRがあるか否かを判定する。直線LLRがある場合、処理はステップS388に進む。一方、直線LLRがない場合、処理はステップS38Aに進む。
 ステップS388において、加工可能形状抽出部112は、ほかの端点PSL、PSRを通る要素がないか否かを判定する。ほかの端点PSL、PSRを通る要素がない場合、処理はステップS389に進む。一方、ほかの端点PSL、PSRを通る要素がある場合、処理はステップS38Aに進む。
 ステップS389において、加工可能形状抽出部112は、加工物のCADデータにポケット形状があると判定する。ステップS38の判定処理のフローは終了し、処理は図8Aのフローに戻る。
<ステップS3Bの判定処理>
 図16は、図8BのステップS3Bにおける加工物のCADデータに形状ID「4」の輪郭形状があるか否かの判定処理を説明するフローチャートである。
 なお、ステップS3B1からステップS3B6、及びステップS3BAの処理は、図14のステップS381からステップS386、及びステップS38Aの処理と同様であり、説明は省略する。
 図17は、輪郭形状のCADデータの一例を示す図である。図17の上段は、上から見た輪郭形状を示し、図17の下段は、正面から見た輪郭形状を示す。図17に示すように、X軸方向において、端点PLLと端点PLRとを結ぶ直線はLLRとする。
 ステップS3B7において、加工可能形状抽出部112は、直線LのY値の大きい端点PLLと直線LのY値の大きい端点PLRとを結ぶ直線LLRがあるか否かを判定する。直線LLRがある場合、処理はステップS3B8に進む。一方、直線LLRがない場合、処理はステップS3BAに進む。
 ステップS3B8において、加工可能形状抽出部112は、ほかの端点PLL、PLRを通る要素がないか否かを判定する。ほかの端点PLL、PLRを通る要素がない場合、処理はステップS3B9に進む。一方、ほかの端点PLL、PLRを通る要素がある場合、処理はステップS3BAに進む。
 ステップS3B9において、加工可能形状抽出部112は、加工物のCADデータに輪郭形状があると判定する。ステップS3Bの判定処理のフローは終了し、処理は図8Bのフローに戻る。
<ステップS3Eの判定処理>
 図18は、図8BのステップS3Eにおける加工物のCADデータに形状ID「5」の傾斜形状があるか否かの判定処理を説明するフローチャートである。
 なお、ステップS3E1からステップS3E6、及びステップS3E9の処理は、図10のステップS321からステップS326、及びステップS329の処理と同様であり、説明は省略する。
 図19は、傾斜形状のCADデータの一例を示す図である。図19に示すように、傾斜形状は、図11の穴形状を斜めに傾けた形状であり、図11の要素と同じ要素については同じ符号を付し、説明は省略する。
 ステップS3E7において、加工可能形状抽出部112は、直線LがX軸及びY軸に平行でないか否かを判定する。直線LがX軸及びY軸に平行でない場合、処理はステップS3E8に進む。一方、直線LがX軸又はY軸に平行の場合、処理はステップS3E9に進む。
 ステップS3E8において、加工可能形状抽出部112は、加工物のCADデータに傾斜形状があると判定する。ステップS3Eの判定処理のフローは終了し、処理は図8Bのフローに戻る。
 以上のように、第1実施形態に係る数値制御装置10は、ユーザにより選択された工具の工具情報と、紐付けテーブル141と、に基づいて選択された工具で加工可能な形状を示す形状IDを抽出し、抽出された形状IDの加工可能な形状を表示する。数値制御装置10は、表示された加工可能な形状のうちユーザにより選択された形状の形状IDと、選択された工具情報と、紐付けテーブル141と、に基づいて使用可能なGコードをさらに絞る。これにより、数値制御装置10は、選択した工具によってGコード及び/又は加工形状を絞って表示することができる。そして、数値制御装置10は、加工可能な形状と使用可能なGコードとの選択を容易に行うことができ、加工プログラムの作成時間を短縮することができる。
 また、数値制御装置10は、加工可能な形状と使用可能なGコードとを提示しユーザに選択させることで、加工プログラムを間違って入力することを防ぐことができる。
 以上、第1実施形態について説明した。
<第2実施形態>
 次に、第2実施形態について説明する。上述したように、第1実施形態に係る数値制御装置10は、複数の工具に関する工具情報と、複数の工具それぞれが加工可能な形状を示す形状IDと、当該形状IDが示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付けテーブル141を記憶し、ユーザにより選択された工具の工具情報と、紐付けテーブル141と、に基づいて選択された工具で加工可能な形状を示す形状IDを抽出し、抽出された形状IDの加工可能な形状を表示する。数値制御装置10は、表示された加工可能な形状のうちユーザにより選択された形状の形状IDと、紐付けテーブル141と、に基づいて使用可能なGコードをさらに絞る。
 これに対し、第2実施形態に係る数値制御装置10Aは、複数の工具に関する工具情報と、複数の工具それぞれが加工可能な形状を示す形状IDと、当該形状IDが示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付けテーブル141を記憶し、ユーザにより選択された工具の工具情報と、紐付けテーブル141とに基づいて、選択された工具で使用可能なGコードを抽出し、抽出されたGコードを表示する。数値制御装置10Aは、表示されたGコードのうちユーザにより選択されたGコードと、紐付けテーブル141と、に基づいて加工可能な形状をさらに絞る点で、第1実施形態と相違する。
 これにより、数値制御装置10Aは、選択した工具によってGコード及び/又は加工形状を絞って表示することができる。
 以下、第2実施形態について説明する。
 図20は、第2実施形態に係る制御システムの機能的構成例を示す機能ブロック図である。なお、図1の制御システム1の要素と同様の機能を有する要素については、同じ符号を付し、詳細な説明は省略する。
 図20に示すように、制御システム1は、数値制御装置10A、及び工作機械20を有する。
 工作機械20は、第1実施形態に係る工作機械20と同等の機能を有する。
 図20に示すように、数値制御装置10Aは、制御部11a、入力部12、表示部13、及び記憶部14を含む。制御部11aは、工具情報取得部110、形状ID情報抽出部111a、加工可能形状抽出部112、使用可能Gコード抽出部114a、プログラム生成部115、及び選択Gコード取得部116を含む。また、記憶部14は、紐付けテーブル141を含む。
 入力部12、表示部13、及び記憶部14は、第1実施形態に係る入力部12、表示部13、及び記憶部14と同等の機能を有する。
 また、工具情報取得部110、加工可能形状抽出部112、及びプログラム生成部115は、第1実施形態に係る工具情報取得部110、加工可能形状抽出部112、及びプログラム生成部115と同等の機能を有する。
 使用可能Gコード抽出部114aは、工具情報取得部110により取得された工具情報で紐付け情報記憶部である紐付けテーブル141に問い合せして、取得された工具情報の工具で使用可能なGコードを抽出する。
 具体的には、使用可能Gコード抽出部114aは、例えば、工具情報取得部110により取得された工具情報が工具番号「T10」を含む場合、紐付けテーブル141に基づいて、GコードID「Gid」が「1」の使用可能な、ドリルサイクル「G81」、ドリルサイクル「G82」、深穴あけサイクル「G83」、キャンセル「G80」、ドリルサイクル「G1110」、及びドリルサイクル「G1111」と、GコードID「Gid」が「5」の使用可能な、傾斜面割り出し指令「G68.2」、工具軸方向による傾斜面割り出し指令「G68.3」、及び傾斜面割り出し指令(インクリメンタル多重指令)「G68.4」と、のGコードを抽出する。また、使用可能Gコード抽出部114aは、例えば、工具情報取得部110により取得された工具情報が工具番号「T20」を含む場合、紐付けテーブル141に基づいて、GコードID「Gid」が「2」の使用可能な、タッピングリング「G84」、及びタッピングリング「G1112」のGコードを抽出する。また、使用可能Gコード抽出部114aは、例えば、工具情報取得部110により取得された工具情報が工具番号「T30」を含む場合、紐付けテーブル141に基づいて、GコードID「Gid」が「3」の使用可能な、ポケット加工の荒加工「G1040」、ポケット加工の底面仕上げ「G1041」、及びポケット加工の側面仕上げ「G1042」と、GコードID「Gid」が「4」の使用可能な、輪郭加工の外壁荒加工「G1060」、輪郭加工の外壁底面仕上げ「G1061」、及び輪郭加工の外壁側面仕上げ「G1062」と、のGコードを抽出する。
 そして、使用可能Gコード表示部としての表示部13は、使用可能Gコード抽出部114aにより抽出された使用可能なGコードを表示する。
 図21は、使用可能なGコードの表示画面の一例を示す図である。
 例えば、工具として工具番号「T30」のエンドミルがユーザにより選択された場合、図21に示すように、使用可能Gコード表示部としての表示部13は、ポケット加工の荒加工「G1040」、ポケット加工の底面仕上げ「G1041」、ポケット加工の側面仕上げ「G1042」、輪郭加工の外壁荒加工「G1060」、輪郭加工の外壁底面仕上げ「G1061」、及び輪郭加工の外壁側面仕上げ「G1062」のGコードを表示する。
 選択Gコード取得部116は、例えば、使用可能Gコード表示部としての表示部13に表示された図21の表示画面において、Gコード選択受付部としての入力部12を介してユーザによりGコードが選択された場合、選択されたGコードを取得する。選択Gコード取得部116は、取得したGコードを、工具情報取得部110により取得された工具情報とともに後述する形状ID情報抽出部111aに出力する。
 形状ID情報抽出部111aは、選択Gコード取得部116から受信した工具情報とGコードとで紐付け情報記憶部としての紐付けテーブル141に問い合せして、受信した工具情報の工具で受信したGコードにより加工可能な形状の形状IDをさらに絞る。
 具体的には、形状ID情報抽出部111aは、例えば、工具情報取得部110により取得された工具番号「T10」と、Gコード選択受付部としての入力部12を介してユーザにより選択された深穴あけサイクル「G83」のGコードと、を選択Gコード取得部116から受信した場合、紐付けテーブル141に基づいて、形状ID(Sid)「1」を抽出し絞る。また、形状ID情報抽出部111aは、例えば、工具情報取得部110により取得された工具番号「T20」と、Gコード選択受付部としての入力部12を介してユーザにより選択されたタッピングリング「G84」のGコードと、を選択Gコード取得部116から受信した場合、紐付けテーブル141に基づいて、形状ID(Sid)「2」を抽出し絞る。また、形状ID情報抽出部111aは、例えば、工具情報取得部110により取得された工具番号「T30」と、Gコード選択受付部としての入力部12を介してユーザにより選択されたポケット加工の荒加工「G1040」のGコードと、を選択Gコード取得部116から受信した場合、紐付けテーブル141に基づいて、形状ID(Sid)「3」を抽出し絞る。また、形状ID情報抽出部111aは、例えば、工具情報取得部110により取得された工具番号「T30」と、Gコード選択受付部としての入力部12を介してユーザにより選択された輪郭加工の外壁荒加工「G1060」のGコードと、を選択Gコード取得部116から受信した場合、紐付けテーブル141に基づいて、形状ID(Sid)「4」を抽出し絞る。また、形状ID情報抽出部111aは、例えば、工具情報取得部110により取得された工具番号「T10」と、Gコード選択受付部としての入力部12を介してユーザにより選択された傾斜面割り出し指令「G68.2」のGコードと、を選択Gコード取得部116から受信した場合、紐付けテーブル141に基づいて、形状ID(Sid)「5」を抽出し絞る。
 そして、加工可能形状表示部としての表示部13は、上述の形状ID情報抽出部111aにより絞られた形状IDに基づいて、加工可能形状抽出部112により加工物のCADデータから抽出された加工可能な形状を表示する。
 図22は、抽出された加工可能な形状の表示画面の一例を示す図である。
 例えば、図21において、ユーザにより輪郭加工の外壁荒加工「G1060」のGコードが選択された場合、形状ID情報抽出部111aは、形状ID「4」を抽出する。そして、加工可能形状抽出部112は、図28A及び図28Bに示すCADデータにおいて、形状ID「4」の輪郭形状のみを抽出する。図22に示すように、加工可能形状表示部としての表示部13は、抽出された輪郭形状を太線で強調して表示するようにしてもよい。
 そうすることで、数値制御装置10Aは、Gコードと加工形状との選択を容易に行うことができ、加工プログラムの作成時間を短縮することができる。また、数値制御装置10Aは、使用可能なGコードと加工可能な形状とを提示しユーザに選択させることで、加工プログラムを間違って入力することを防ぐことができる。
 なお、加工可能形状表示部としての表示部13は、抽出された加工形状を太線で強調表示したが、太線以外の線で強調表示してもよく、赤色等の色の線で強調表示してもよい。
<数値制御装置10Aの加工プログラム生成処理>
 次に、図23を参照しながら、数値制御装置10Aの加工プログラム生成処理の流れを説明する。
 図23は、数値制御装置10Aの加工プログラム生成処理について説明するフローチャートである。ここで示すフローは、加工プログラムが生成される度に実行される。
 ステップS´1において、工具情報取得部110は、入力部12を介してユーザの入力操作に基づいて、第1実施形態におけるステップS1と同様の工具情報取得処理を行い、工具情報(例えば、工具番号や工具の種類等)を取得する。
 ステップS´2において、使用可能Gコード抽出部114aは、ステップS´1で取得された工具情報で紐付け情報記憶部である紐付けテーブル141に問い合せして、取得された工具情報の工具で使用可能なGコードを抽出する。
 ステップS´3において、使用可能Gコード表示部としての表示部13は、ステップS´2で抽出された使用可能なGコードを表示する(例えば、図21)。
 ステップS´4において、選択Gコード取得部116は、使用可能Gコード表示部としての表示部13に表示された表示画面(例えば、図21)において、Gコード選択受付部としての入力部12を介してユーザにより選択されたGコードを取得する。
 ステップS´5において、形状ID情報抽出部111aは、ステップS´1で取得された工具情報と、ステップS´4で選択されたGコードと、で紐付けテーブル141に問い合せして、取得された工具情報の工具で選択されたGコードにより加工可能な形状の形状IDをさらに絞る。
 ステップS´6において、加工可能形状抽出部112は、ステップS´5で抽出された形状IDに基づいて、第1実施形態のステップS3と同様の加工可能形状抽出処理を行い、対象となる加工物のCADデータから加工可能な形状を抽出する。
 ステップS´7において、加工可能形状表示部としての表示部13は、ステップS´6で抽出された加工可能な形状を表示する(例えば、図22)。
 ステップS´8において、プログラム生成部115は、加工可能形状表示部としての表示部13に表示された表示画面において、形状選択受付部としての入力部12を介してユーザにより選択された形状を受け付ける。
 ステップS´9において、プログラム生成部115は、ステップS´8で受け付けた形状を加工するために、ステップS´4で選択されたGコードの設定画面を表示部13に表示し(例えば、図24)、入力部12を介してユーザにより入力されたパラメータを受け付ける。
 図24は、輪郭加工の外壁荒加工「G1060」のGコードの場合の設定画面の一例を示す図である。
 ステップS´10において、プログラム生成部115は、ステップS´9でユーザにより入力されたパラメータを用いて、選択されたGコードを含むブロックを追加する。
 図25は、選択されたGコードのブロックが追加された画面の一例を示す図である。なお、「G1200」は輪郭加工の開始点を設定するGコードであり、「G1201」は輪郭加工の直線を設定するGコードである。
 ステップS´11において、プログラム生成部115は、第1実施形態のステップS11と同様に、加工プログラムの生成が終了したか否かを判定する。プログラム生成部115は、入力部12を介してユーザにより加工プログラムの「保存」や「終了」等の入力を受け付けた場合、加工プログラムの生成が終了したと判定し、処理は終了する。一方、プログラム生成部115は、入力部12を介してユーザにより加工プログラムの「保存」や「終了」等の入力を受け付けていない場合、加工プログラムの生成は終了していないと判定し、処理はステップS´1に戻る。
 以上のように、第2実施形態に係る数値制御装置10Aは、ユーザにより選択された工具の工具情報と、紐付けテーブル141と、に基づいて選択された工具で使用可能なGコードを抽出し、抽出された使用可能なGコードを表示する。数値制御装置10は、表示された使用可能なGコードのうちユーザにより選択されたGコードと、選択された工具情報と、紐付けテーブル141と、に基づいて加工可能な形状をさらに絞る。これにより、数値制御装置10Aは、選択した工具によってGコード及び/又は加工形状を絞って表示することができる。そして、数値制御装置10Aは、加工可能な加工形状と使用可能なGコードとの選択を容易に行うことができ、加工プログラムの作成時間を短縮することができる。
 また、数値制御装置10Aは、加工可能な加工形状と使用可能なGコードとを提示しユーザに選択させることで、加工プログラムを間違って入力することを防ぐことができる。
 以上、第2実施形態について説明した。
 以上、第1実施形態及び第2実施形態について説明したが、数値制御装置10、10Aは、上述の実施形態に限定されるものではなく、目的を達成できる範囲での変形、改良等を含む。
<変形例>
 上述の第1実施形態及び第2実施形態では、数値制御装置10、10Aは、工作機械20と異なる装置としたが、これに限定されない。例えば、数値制御装置10、10Aは、工作機械20に含まれてもよい。
 数値制御装置10、10Aの全部又は一部をソフトウェアで構成する場合、数値制御装置10、10Aの動作の全部又は一部を記述したプログラムを記憶した、ハードディスク、ROM等の記憶部、演算に必要なデータを記憶するDRAM、CPU、及び各部を接続するバスで構成されたコンピュータにおいて、演算に必要な情報をDRAMに記憶し、CPUで当該プログラムを動作させることで実現することができる。
 これらのプログラムは、様々なタイプの非一時的なコンピュータ可読媒体(Non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実体のある記録媒体(Tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えば、フレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば、光磁気ディスク)、CD-ROM(Read Only Memory)、CD-R、CD-R/W、半導体メモリ(例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAM)を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(Transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は、無線通信路を介して、プログラムをコンピュータに供給できる。
 また、これらのプログラムは、ネットワークを介してユーザのコンピュータにダウンロードされることにより配布されてもよい。
 なお、記録媒体に記録されるプログラムを記述するステップは、その順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
 以上を換言すると、本開示の数値制御装置は、次のような構成を有する各種各様の実施形態を取ることができる。
 (1)本開示の数値制御装置10は、加工プログラムを自動生成する数値制御装置であって、複数の工具に関する工具情報と、複数の工具それぞれが加工可能な形状を示す形状IDと、形状IDが示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付けテーブル141を記憶する記憶部14と、加工に選択された工具に関する工具情報を取得する工具情報取得部110と、取得された工具情報で紐付けテーブル141に問い合せして、取得された工具情報の工具で加工可能な形状を示す形状IDを抽出する形状ID情報抽出部111と、抽出された形状IDに基づいてCADデータから加工可能な形状を抽出する加工可能形状抽出部112と、抽出された加工可能な形状を表示する加工可能形状表示部としての表示部13と、を備える。
 この数値制御装置10によれば、選択した工具によってGコード及び/又は加工形状を絞って表示することができる。
 (2) (1)に記載の数値制御装置10において、抽出された加工可能な形状を選択する形状選択受付部としての入力部12と、選択された加工可能な形状の形状IDを取得する選択形状取得部113と、選択形状取得部113により取得された加工可能な形状の形状IDと、取得された工具情報と、で前記紐付けテーブル141に問い合せして、取得された工具情報の工具で取得された形状IDの形状に加工するのに使用可能なGコードをさらに絞る使用可能Gコード抽出部114と、をさらに備えてもよい。
 そうすることで、数値制御装置10は、加工可能な加工形状と使用可能なGコードとの選択を容易に行うことができ、加工プログラムの作成時間を短縮することができる。
 (3) (2)に記載の数値制御装置10において、使用可能Gコード抽出部114により絞られた使用可能なGコードを表示する使用可能Gコード表示部としての表示部13と、表示された使用可能なGコードからGコードを選択するGコード選択受付部としての入力部12と、をさらに備えてもよい。
 そうすることで、数値制御装置10は、加工可能な加工形状と使用可能なGコードとを提示しユーザに選択させることで、加工プログラムを間違って入力することを防ぐことができる。
 (4)本開示の数値制御装置10Aは、加工プログラムを自動生成する数値制御装置であって、複数の工具に関する工具情報と、複数の工具それぞれが加工可能な形状を示す形状IDと、形状IDが示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付けテーブル141を記憶する記憶部14と、加工に選択された工具に関する工具情報を取得する工具情報取得部110と、取得された工具情報で紐付けテーブル141に問い合せして、取得された工具情報の工具で使用可能なGコードを抽出する使用可能Gコード抽出部114aと、抽出された使用可能なGコードを表示する使用可能Gコード表示部としての表示部13と、を備える。
 この数値制御装置10Aによれば、(1)と同等の効果を奏することができる。
 (5) (4)に記載の数値制御装置10Aにおいて、抽出された使用可能なGコードを選択するGコード選択受付部としての入力部12と、選択された使用可能なGコードを取得する選択Gコード取得部116と、選択Gコード取得部116により取得された使用可能なGコードと、取得された工具情報と、で紐付けテーブル141に問い合せして、取得された工具情報の工具で選択された使用可能なGコードで加工可能な形状を示す形状IDさらに絞る形状ID情報抽出部111aと、をさらに備えてもよい。
 そうすることで、数値制御装置10Aは、(2)と同等の効果を奏することができる。
 (6) (5)に記載の数値制御装置10Aにおいて、形状ID情報抽出部111aにより絞られた形状IDに基づいてCADデータから加工可能な形状を抽出する加工可能形状抽出部112と、抽出された加工可能な形状を表示する加工可能形状表示部としての表示部13と、をさらに備えてもよい。
 そうすることで、数値制御装置10Aは、(3)と同等の効果を奏することができる。
 1 制御システム
 10、10A 数値制御装置
 11、11a 制御部
 110 工具情報取得部
 111、111a 形状ID情報抽出部
 112 加工可能形状抽出部
 113 選択形状取得部
 114、114a 使用可能Gコード抽出部
 115 プログラム生成部
 116 選択Gコード取得部
 12 入力部
 13 表示部
 14 記憶部
 141 紐付けテーブル
 20 工作機械

Claims (6)

  1.  加工プログラムを自動生成する数値制御装置であって、
     複数の工具に関する工具情報と、前記複数の工具それぞれが加工可能な形状を示す形状識別子と、前記形状識別子が示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を記憶する紐付け情報記憶部と、
     加工に選択された工具に関する工具情報を取得する工具情報取得部と、
     取得された前記工具情報で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で加工可能な形状を示す形状識別子を抽出する形状ID情報抽出部と、
     抽出された前記形状識別子に基づいてCADデータから加工可能な形状を抽出する加工可能形状抽出部と、
     抽出された前記加工可能な形状を表示する加工可能形状表示部と、
     を備える数値制御装置。
  2.  抽出された前記加工可能な形状を選択する形状選択受付部と、
     選択された前記加工可能な形状の形状識別子を取得する選択形状取得部と、
     前記選択形状取得部により取得された前記加工可能な形状の形状識別子と、取得された前記工具情報と、で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で取得された前記形状識別子の形状に加工するのに使用可能なGコードをさらに絞る使用可能Gコード抽出部と、をさらに備える請求項1に記載の数値制御装置。
  3.  前記使用可能Gコード抽出部により絞られた前記使用可能なGコードを表示する使用可能Gコード表示部と、
     表示された前記使用可能なGコードからGコードを選択するGコード選択受付部と、をさらに備える請求項2に記載の数値制御装置。
  4.  加工プログラムを自動生成する数値制御装置であって、
     複数の工具に関する工具情報と、前記複数の工具それぞれが加工可能な形状を示す形状識別子と、前記形状識別子が示す形状を加工するのに使用可能な少なくとも1つのGコードと、を予め紐付けた紐付け情報を記憶する紐付け情報記憶部と、
     加工に選択された工具に関する工具情報を取得する工具情報取得部と、
     取得された前記工具情報で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で使用可能なGコードを抽出する使用可能Gコード抽出部と、
     抽出された前記使用可能なGコードを表示する使用可能Gコード表示部と、
     を備える数値制御装置。
  5.  抽出された前記使用可能なGコードを選択するGコード選択受付部と、
     選択された前記使用可能なGコードを取得する選択Gコード取得部と、
     前記選択Gコード取得部により取得された前記使用可能なGコードと、取得された前記工具情報と、で前記紐付け情報記憶部に問い合せして、取得された前記工具情報の工具で選択された前記使用可能なGコードで加工可能な形状を示す形状識別子さらに絞る形状ID情報抽出部と、をさらに備える請求項4に記載の数値制御装置。
  6.  形状ID情報抽出部により絞られた前記形状識別子に基づいてCADデータから加工可能な形状を抽出する加工可能形状抽出部と、
     抽出された前記加工可能な形状を表示する加工可能形状表示部と、をさらに備える請求項5に記載の数値制御装置。
PCT/JP2021/038714 2020-10-26 2021-10-20 数値制御装置 WO2022091896A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
DE112021004840.6T DE112021004840T5 (de) 2020-10-26 2021-10-20 Numerische Steuervorrichtung
JP2022559052A JPWO2022091896A1 (ja) 2020-10-26 2021-10-20
US18/028,092 US20230333534A1 (en) 2020-10-26 2021-10-20 Numerical control device
CN202180071422.6A CN116324645A (zh) 2020-10-26 2021-10-20 数值控制装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020178689 2020-10-26
JP2020-178689 2020-10-26

Publications (1)

Publication Number Publication Date
WO2022091896A1 true WO2022091896A1 (ja) 2022-05-05

Family

ID=81382350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/038714 WO2022091896A1 (ja) 2020-10-26 2021-10-20 数値制御装置

Country Status (5)

Country Link
US (1) US20230333534A1 (ja)
JP (1) JPWO2022091896A1 (ja)
CN (1) CN116324645A (ja)
DE (1) DE112021004840T5 (ja)
WO (1) WO2022091896A1 (ja)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06170692A (ja) * 1992-11-30 1994-06-21 Sanyo Electric Co Ltd 穴加工のためのncデータ生成システム
JPH07168612A (ja) * 1993-12-14 1995-07-04 Mutoh Ind Ltd 穴加工プログラム作成装置
US5933353A (en) * 1997-09-16 1999-08-03 New Focus, Inc. Method and apparatus for computer aided machining
JPH11212615A (ja) * 1998-01-22 1999-08-06 Honda Motor Co Ltd 穴加工用ncデータ作成装置
JP2002189510A (ja) * 2000-12-22 2002-07-05 Mori Seiki Co Ltd 加工関連情報生成装置、及びこれを備えた数値制御装置
WO2004038523A1 (ja) * 2002-10-25 2004-05-06 Sigma Inc. Cadシステム並びにこれを実行するためのプログラム及びこのプログラムを記録した記録媒体
JP2009110273A (ja) * 2007-10-30 2009-05-21 Brother Ind Ltd Ncプログラム編集装置、ncプログラム編集プログラム及びncプログラム編集プログラムを記録したコンピュータ読取可能な記録媒体

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04315550A (ja) 1991-04-12 1992-11-06 Toshiba Corp 自動プログラミング装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06170692A (ja) * 1992-11-30 1994-06-21 Sanyo Electric Co Ltd 穴加工のためのncデータ生成システム
JPH07168612A (ja) * 1993-12-14 1995-07-04 Mutoh Ind Ltd 穴加工プログラム作成装置
US5933353A (en) * 1997-09-16 1999-08-03 New Focus, Inc. Method and apparatus for computer aided machining
JPH11212615A (ja) * 1998-01-22 1999-08-06 Honda Motor Co Ltd 穴加工用ncデータ作成装置
JP2002189510A (ja) * 2000-12-22 2002-07-05 Mori Seiki Co Ltd 加工関連情報生成装置、及びこれを備えた数値制御装置
WO2004038523A1 (ja) * 2002-10-25 2004-05-06 Sigma Inc. Cadシステム並びにこれを実行するためのプログラム及びこのプログラムを記録した記録媒体
JP2009110273A (ja) * 2007-10-30 2009-05-21 Brother Ind Ltd Ncプログラム編集装置、ncプログラム編集プログラム及びncプログラム編集プログラムを記録したコンピュータ読取可能な記録媒体

Also Published As

Publication number Publication date
JPWO2022091896A1 (ja) 2022-05-05
DE112021004840T5 (de) 2023-07-06
CN116324645A (zh) 2023-06-23
US20230333534A1 (en) 2023-10-19

Similar Documents

Publication Publication Date Title
JP5925976B1 (ja) 加工プログラム編集支援装置
US7487006B2 (en) Automatic programming method and automatic programming apparatus
US6112133A (en) Visual system and method for generating a CNC program for machining parts with planar and curvilinear surfaces
JP6150903B2 (ja) 加工情報管理装置および工具経路生成装置
JP6719790B1 (ja) Cadデータによるマシニングセンタの自動運転装置
JP6640813B2 (ja) サーバ及びシステム
US9195366B2 (en) Operational programs and tools selection method of numerical control composite machine
JPWO2009028056A1 (ja) Ncプログラム生成装置およびncプログラム生成方法
US10386814B2 (en) Machining status display apparatus, and NC program generating apparatus and NC program editing apparatus provided with the same
US20220155750A1 (en) Machine tool, tool load displaying method for machine tool, and non-transitory computer-readable storage medium
WO2013051432A1 (ja) 生産計画装置および生産計画方法
JP5936781B1 (ja) 数値制御装置、nc加工装置、nc加工方法およびシミュレーション装置
KR20120085420A (ko) 컴퓨터 수치 제어 공작기계에서 대화형 프로그램을 이용한 가공 형상 입력 장치 및 방법
JPWO2016035868A1 (ja) 加工プログラム編集支援装置
WO2022091896A1 (ja) 数値制御装置
JP4276656B2 (ja) Cadシステム並びにこれを実行するためのプログラム及びこのプログラムを記録した記録媒体
KR20100135513A (ko) 그래픽 기반의 사용자 인터페이스를 갖는 수치제어시스템
CN113196187B (zh) 机床、用于机床的输入辅助方法和存储介质
WO2000028393A1 (en) Visual cnc program for generating machining parts
JP2002529843A5 (ja)
EP2267564B1 (en) Process integration determining system and method
KR20160091069A (ko) 컴퓨터 수치제어 공작기계의 대화형 프로그램에서 복합 공정 등록 장치 및 방법
KR101610386B1 (ko) 컴퓨터 수치 제어 공작기계에서 가공 대화형 프로그램을 이용한 가공 형상 입력 장치 및 방법
WO2023007581A1 (ja) 数値制御装置
JPH11212615A (ja) 穴加工用ncデータ作成装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21886015

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022559052

Country of ref document: JP

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 21886015

Country of ref document: EP

Kind code of ref document: A1