JPWO2020012581A1 - Machine learning device, numerical control machining program generating device, and machine learning method - Google Patents

Machine learning device, numerical control machining program generating device, and machine learning method Download PDF

Info

Publication number
JPWO2020012581A1
JPWO2020012581A1 JP2018558361A JP2018558361A JPWO2020012581A1 JP WO2020012581 A1 JPWO2020012581 A1 JP WO2020012581A1 JP 2018558361 A JP2018558361 A JP 2018558361A JP 2018558361 A JP2018558361 A JP 2018558361A JP WO2020012581 A1 JPWO2020012581 A1 JP WO2020012581A1
Authority
JP
Japan
Prior art keywords
machining
machining program
knowledge
numerical control
unit
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2018558361A
Other languages
Japanese (ja)
Other versions
JP6584697B1 (en
Inventor
晋 松原
晋 松原
守昭 内田
守昭 内田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Application granted granted Critical
Publication of JP6584697B1 publication Critical patent/JP6584697B1/en
Publication of JPWO2020012581A1 publication Critical patent/JPWO2020012581A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/0265Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric the criterion being a learning criterion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition
    • 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]

Abstract

機械学習装置(50)は、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む加工形状データと、被加工物から切削加工品を削り出すための複数の切削加工を含む数値制御加工プログラムを自動生成するための数値制御加工プログラムの生成方法と、数値制御加工プログラムの生成方法を参照して生成された第1数値制御加工プログラムに対する編集内容と、を状態変数として観測する状態観測部(51)と、状態変数に基づいて作成されるデータセットに従って、数値制御加工プログラムの生成方法を学習する学習部(52)と、を備える。A machine learning device (50) is a numerical control including machining shape data including information on a machining finish shape of a machining product and information on a material of a material, and a plurality of machining processes for cutting a machining product from a workpiece. State observation for observing, as state variables, a numerical control machining program generation method for automatically generating a machining program, and edit contents for the first numerical control machining program generated by referring to the numerical control machining program generation method A section (51) and a learning section (52) for learning a method of generating a numerically controlled machining program according to a data set created based on state variables.

Description

本発明は、工作機械を数値制御するための数値制御加工プログラムの自動生成に用いられる数値制御加工プログラムの生成方法を学習する機械学習装置、数値制御加工プログラム生成装置および機械学習方法に関する。 The present invention relates to a machine learning device, a numerical control machining program generation device, and a machine learning method for learning a generation method of a numerical control machining program used for automatically generating a numerical control machining program for numerically controlling a machine tool.

近年、数値制御(Numerical Control:NC)工作機械の分野では、複雑且つ多彩な形状の工作物を自動加工できるようにするため、多種類の工具を刃物台に交換可能に装備して、旋削加工、穴あけ加工、フライス加工等の多様な加工工程を実施可能にする複合機械化が進められている。 In recent years, in the field of Numerical Control (NC) machine tools, in order to enable automatic machining of workpieces of complicated and various shapes, various types of tools are exchangeably equipped on the tool post, and turning is possible. A complex mechanization that enables various processing steps such as drilling, milling, etc. is under way.

特許文献1には、自動生成した加工プログラムに対してオペレータが修正した切削条件の修正内容を記憶部に記憶させて、他のオペレータが次に同様の加工プログラムを作成する際に、修正後の切削条件を再利用可能な数値制御加工プログラム作成装置が開示されている。 In Patent Document 1, the details of cutting conditions corrected by an operator with respect to an automatically generated machining program are stored in a storage unit, and when another operator next creates a similar machining program, A numerical control machining program creation device capable of reusing cutting conditions is disclosed.

特開2002−132313号公報JP, 2002-132313, A

しかしながら、上記特許文献1の数値制御加工プログラム作成装置では、再利用可能とされているのは、加工対象素材を回転させる主軸の回転数、回転工具と加工対象素材との間の相対的切削送り量および切り上げといった切削条件だけであり、加工順序および加工方法に関しては加工プログラムを自動生成することができなかった。 However, in the numerical control machining program creation device of Patent Document 1 described above, the reusable items are the number of rotations of the spindle that rotates the material to be machined, the relative cutting feed between the rotary tool and the material to be machined. Only the cutting conditions such as quantity and rounding up, it was not possible to automatically generate a processing program regarding the processing sequence and processing method.

本発明は、上記に鑑みてなされたものであって、加工順序および加工方法のうち少なくとも一方に関して加工プログラムを自動生成可能とする、数値制御加工プログラムの生成方法を自動的に学習することができる機械学習装置を得ることを目的とする。 The present invention has been made in view of the above, and can automatically learn a generation method of a numerically controlled machining program that enables a machining program to be automatically generated with respect to at least one of a machining order and a machining method. The purpose is to obtain a machine learning device.

上述した課題を解決し、目的を達成するために、本発明にかかる機械学習装置は、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む加工形状データと、被加工物から切削加工品を削り出すための複数の切削加工を含む数値制御加工プログラムを自動生成するための数値制御加工プログラムの生成方法と、数値制御加工プログラムの生成方法を参照して生成された第1数値制御加工プログラムに対する編集内容と、を状態変数として観測する状態観測部と、状態変数に基づいて作成されるデータセットに従って、数値制御加工プログラムの生成方法を学習する学習部と、を備える。 In order to solve the above-mentioned problems and achieve the object, a machine learning apparatus according to the present invention is provided with machining shape data including information on a machining finish shape of a machined product and information on a material of a material, and cutting from a workpiece. A numerical control machining program generation method for automatically generating a numerical control machining program including a plurality of cutting processes for carving a workpiece, and a first numerical control generated by referring to the numerical control machining program generation method A state observing unit that observes the edited contents of the machining program as a state variable, and a learning unit that learns a generation method of the numerically controlled machining program according to a data set created based on the state variable.

本発明によれば、加工順序および加工方法のうち少なくとも一方に関して加工プログラムを自動生成可能とする、数値制御加工プログラムの生成方法を自動的に学習することができる機械学習装置が得られる、という効果を奏する。 According to the present invention, it is possible to obtain a machine learning device capable of automatically generating a machining program with respect to at least one of a machining sequence and a machining method and capable of automatically learning a method of generating a numerically controlled machining program. Play.

本発明の実施の形態1にかかる数値制御装置の構成例を示すブロック図Block diagram showing a configuration example of a numerical control device according to a first embodiment of the present invention 行動価値テーブルの概念を示す図Diagram showing the concept of action value table 本発明の実施の形態1にかかる機械学習装置の関数更新部に加工ナレッジおよび反映加工ナレッジが記憶された状態の一例を示す図The figure which shows an example of the state in which the processing knowledge and the reflection processing knowledge were memorize|stored in the function update part of the machine learning apparatus concerning Embodiment 1 of this invention. 本発明の実施の形態1における行動価値関数Q(s,a)の更新処理の手順を示すフローチャートThe flowchart which shows the procedure of the update process of the action value function Q(s, a) in Embodiment 1 of this invention. 本発明の実施の形態1にかかるNC加工プログラム生成装置のNC加工プログラム生成部におけるNC加工プログラム生成処理の手順の詳細を示すフローチャートThe flowchart which shows the detail of the procedure of NC processing program generation processing in the NC processing program generation part of the NC processing program generation apparatus concerning Embodiment 1 of this invention. 本発明の実施の形態1におけるCAD(Computer−Aided Design)データで表される加工仕上がり形状の立体モデルの一例を示す斜視図1 is a perspective view showing an example of a three-dimensional model of a processed finish shape represented by CAD (Computer-Aided Design) data according to Embodiment 1 of the present invention. 本発明の実施の形態1におけるCADデータで表される加工仕上がり形状を包含する素材形状の一例を示す斜視図1 is a perspective view showing an example of a material shape including a processed finish shape represented by CAD data according to Embodiment 1 of the present invention. 本発明の実施の形態1におけるCADデータで表される加工仕上がり形状と素材形状とから生成された加工除去形状の一例を示す斜視図A perspective view showing an example of a machining removal shape generated from a machining finish shape and material shape represented by CAD data in the first embodiment of the present invention. 本発明の実施の形態1における素材形状、加工形状から生成された旋削断面形状および座標値を示す図The figure which shows the turning cross-sectional shape produced|generated from the raw material shape and processed shape in Embodiment 1 of this invention, and a coordinate value. 本発明の実施の形態1にかかる旋削端面工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning end surface process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削ドリル工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning drill process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning bar material process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning bar material process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削端面工程の加工開始点と加工終了点との一例を示す図The figure which shows an example of the processing start point and processing end point of the turning end surface process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削ドリル工程の加工開始点と加工終了点との一例を示す図The figure which shows an example of the processing start point and processing end point of the turning drill process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材工程の切り込み点と加工開始点と加工終了点との一例を示す図The figure which shows an example of the cutting point, the processing start point, and the processing end point of the turning bar material process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材工程の切り込み点と加工開始点と加工終了点との一例を示す図The figure which shows an example of the cutting point, the processing start point, and the processing end point of the turning bar material process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削ドリル工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning drill process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削端面工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning end face process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning bar material process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状を示す図The figure which shows the turning cross-sectional shape of the turning bar material process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削ドリル工程の加工開始点と加工終了点との一例を示す図The figure which shows an example of the processing start point and processing end point of the turning drill process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削端面工程の加工開始点と加工終了点との一例を示す図The figure which shows an example of the processing start point and processing end point of the turning end surface process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材正面工程の切り込み点と加工開始点と加工終了点との一例を示す図The figure which shows an example of the cutting point, the processing start point, and the processing end point of the turning bar front face process concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる旋削棒材溝入れ工程の切り込み点と加工開始点と加工終了点との一例を示す図The figure which shows an example of the cutting point of a turning rod grooving process, a processing start point, and a processing end point concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる機械学習装置が従うニューラルネットワークモデルの一例を示す模式図A schematic diagram showing an example of a neural network model that the machine learning device according to the first exemplary embodiment of the present invention follows. 本発明の実施の形態1にかかるNC加工プログラム生成装置のハードウェア構成を示す図The figure which shows the hardware constitutions of the NC processing program generation apparatus concerning Embodiment 1 of this invention.

以下に、本発明の実施の形態にかかる機械学習装置、数値制御加工プログラム生成装置および機械学習方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, a machine learning device, a numerical control machining program generating device, and a machine learning method according to an embodiment of the present invention will be described in detail with reference to the drawings. The present invention is not limited to this embodiment.

実施の形態1.
図1は、本発明の実施の形態1にかかる数値制御装置1の構成例を示すブロック図である。図1に示すように、数値制御装置1は、対話操作処理部10と、表示部20と、指示入力部30と、NC加工プログラム生成装置40とを備える。NC加工プログラム生成装置40は、機械学習装置50を備える。機械学習装置50は、状態観測部51と、学習部52と、を備える。数値制御装置1は、不図示の数値制御工作機械に搭載され、または接続されて、NC加工プログラムにより数値制御工作機械の動作を数値制御する。
Embodiment 1.
FIG. 1 is a block diagram showing a configuration example of a numerical control device 1 according to the first exemplary embodiment of the present invention. As shown in FIG. 1, the numerical control device 1 includes an interactive operation processing unit 10, a display unit 20, an instruction input unit 30, and an NC machining program generation device 40. The NC machining program generation device 40 includes a machine learning device 50. The machine learning device 50 includes a state observing section 51 and a learning section 52. The numerical control device 1 is mounted on or connected to a numerically controlled machine tool (not shown), and numerically controls the operation of the numerically controlled machine tool by an NC machining program.

対話操作処理部10は、数値制御装置1と作業者との間のインタフェース部であるとともに、NC加工プログラム生成装置40と作業者との間のインタフェース部である。対話操作処理部10は、作業者が指示入力部30を介して入力した指示情報をNC加工プログラム生成装置40に送信する。また、対話操作処理部10は、作業者が指示入力部30を介して入力した指示情報を表示部20に表示する。 The interactive operation processing unit 10 is an interface unit between the numerical control device 1 and the worker, and also an interface unit between the NC machining program generating device 40 and the worker. The interactive operation processing unit 10 transmits the instruction information input by the operator via the instruction input unit 30 to the NC machining program generation device 40. Further, the interactive operation processing unit 10 displays on the display unit 20 the instruction information input by the operator via the instruction input unit 30.

表示部20は、液晶モニタなどの表示端末であり、CADデータ100、NC加工プログラム、作業者が指示入力部30を介して入力した指示情報を表示する。また、表示部20は、数値制御装置1およびNC加工プログラム生成装置40で行われる処理に関する各種の情報を表示する。 The display unit 20 is a display terminal such as a liquid crystal monitor, and displays the CAD data 100, the NC machining program, and the instruction information input by the operator via the instruction input unit 30. The display unit 20 also displays various kinds of information regarding the processing performed by the numerical control device 1 and the NC machining program generation device 40.

指示入力部30は、マウスおよびキーボード等の入力機器を備えて構成され、作業者からの指示情報を受け付けて、対話操作処理部10に送信する。 The instruction input unit 30 is configured to include input devices such as a mouse and a keyboard, receives instruction information from a worker, and transmits the instruction information to the interactive operation processing unit 10.

NC加工プログラム生成装置40は、数値制御装置1の外部からNC加工プログラム生成装置40に入力されるCADデータ100で表される切削加工品の形状を切削加工により被加工物から削り出すために用いられるNC加工プログラムを生成する。NC加工プログラムは、不図示のNC工作機械を動作させるための数値加工プログラムである。また、数値制御装置1は、NC加工プログラムに従ってNC工作機械を制御し、被加工物を切削加工して切削加工品を作製する。 The NC machining program generation device 40 is used to cut out the shape of the machining product represented by the CAD data 100 input to the NC machining program generation device 40 from the outside of the numerical controller 1 from the workpiece by cutting. An NC machining program that is generated. The NC machining program is a numerical machining program for operating an NC machine tool (not shown). Further, the numerical control device 1 controls the NC machine tool according to the NC machining program, and cuts the workpiece to produce a cut product.

NC加工プログラム生成装置40は、加工形状データ入力部41と、加工形状データ記憶部42と、NC加工プログラム生成部43と、NC加工プログラム記憶部44と、NC加工プログラム編集部45と、意思決定部46と、を備える。NC加工プログラム生成装置40の各構成部は、互いに情報の送受信が可能とされている。 The NC machining program generation device 40 includes a machining shape data input unit 41, a machining shape data storage unit 42, an NC machining program generation unit 43, an NC machining program storage unit 44, an NC machining program editing unit 45, and decision making. And a section 46. Each component of the NC machining program generation device 40 can exchange information with each other.

加工形状データ入力部41は、数値制御装置1の外部の外部装置からNC加工プログラム生成装置40に入力される加工形状データであるCADデータ100を受け付けて、加工形状データ記憶部42に送信する。加工形状データは、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む。加工仕上がり形状は、切削加工品を得るために切削加工により仕上げなければならない3次元形状である。素材は、CADデータ100で表される加工仕上がり形状が削り出される被加工物である。ただし、加工形状データはCADデータ100に限定されない。加工形状データは、NC加工プログラム生成装置40において解釈可能なデータであればよい。 The machining shape data input unit 41 receives the CAD data 100, which is the machining shape data input to the NC machining program generating apparatus 40 from an external device outside the numerical control apparatus 1, and transmits it to the machining shape data storage unit 42. The machined shape data includes information on the machined shape of the machined product and information on the material. The finished shape is a three-dimensional shape that must be finished by cutting to obtain a cut product. The material is a work piece whose machining finish shape represented by CAD data 100 is cut out. However, the processed shape data is not limited to the CAD data 100. The machining shape data may be data that can be interpreted by the NC machining program generation device 40.

加工形状データ記憶部42は、加工形状データ入力部41から送信された加工形状データを記憶する。 The processed shape data storage unit 42 stores the processed shape data transmitted from the processed shape data input unit 41.

NC加工プログラム生成部43は、CADデータ100で表される加工仕上がり形状を素材から削り出すためのNC加工プログラムを生成する。詳細には、NC加工プログラム生成部43は、切削加工品の加工形状データに基づいて、意思決定部46を介して関数更新部54から取得した加工ナレッジまたは反映加工ナレッジを参照して複数の切削加工における加工順序と加工方法とを決定する。そして、NC加工プログラム生成部43は、決定した加工順序と加工方法に基づいて、被加工物から切削加工品を削り出すためのNC加工プログラムである第1NC加工プログラム111を生成する。また、NC加工プログラム生成部43は、加工形状データであるCADデータ100と、第1NC加工プログラム111の生成において参照した加工ナレッジと、第1NC加工プログラム111とを関連付けて、CADデータ100と、第1NC加工プログラム111と、加工ナレッジとをNC加工プログラム記憶部44に送信して記憶させる。 The NC machining program generation unit 43 generates an NC machining program for cutting a machining finish shape represented by the CAD data 100 from a material. Specifically, the NC machining program generation unit 43 refers to the machining shape data of the machined product and refers to the machining knowledge or the reflected machining knowledge acquired from the function updating unit 54 via the decision making unit 46 to perform a plurality of cuttings. The processing order and processing method in processing are determined. Then, the NC machining program generation unit 43 generates the first NC machining program 111, which is an NC machining program for cutting out a machined product from the workpiece, based on the determined machining order and machining method. Further, the NC machining program generation unit 43 associates the CAD data 100, which is machining shape data, the machining knowledge referred to in the generation of the first NC machining program 111, and the first NC machining program 111, with the CAD data 100 and the first NC machining program 111. The 1NC machining program 111 and machining knowledge are transmitted to and stored in the NC machining program storage unit 44.

加工ナレッジは、CADデータ100で表される切削加工品の加工仕上がり形状を素材から削り出すためのNC加工プログラムをNC加工プログラム生成部43が自動生成する際に、素材から切削加工品を削り出すための複数の切削加工における素材の加工順序と素材の加工方法とのうち少なくとも一方を決定するために参照される決定条件であり、NC加工プログラムの生成方法を示す情報である。 The machining knowledge carves out a machined product from the material when the NC machining program generator 43 automatically generates an NC machining program for carving out the machining finish shape of the machined product represented by the CAD data 100 from the material. Is a determination condition referred to in order to determine at least one of a material processing order and a material processing method in a plurality of cutting processes, and is information indicating a method for generating an NC processing program.

具体的には、加工ナレッジは、素材から切削加工品を削り出すために除去する形状である加工除去形状の寸法に基づいて素材の加工順序と素材の加工方法とのうち少なくとも一方を指定する条件である。素材の加工順序は、素材から切削加工品を削り出すために複数の異なる切削加工が組み合わされる場合における切削加工の順序である。素材の加工方法は、加工方向を含む、切削加工法である。 Specifically, the processing knowledge is a condition that specifies at least one of the processing order of the material and the processing method of the material based on the dimension of the processing removal shape, which is the shape to be removed in order to cut out the machined product from the material. Is. The processing order of the material is the order of the cutting processing when a plurality of different cutting processings are combined in order to cut out a machined product from the material. The material processing method is a cutting method including a processing direction.

後述するようにNC加工プログラム生成部43において自動生成された第1NC加工プログラム111を作業者が編集した場合に、編集内容が反映された新たな加工ナレッジである反映加工ナレッジが生成される。これにより、新たな加工ナレッジには、作業者の知識および経験が反映された編集内容が反映および蓄積される。このため、NC加工プログラム生成部43が、加工ナレッジを参照してNC加工プログラムを生成することにより、作業者自身がNC加工プログラムを作製した場合と同様の、作業者が所望するNC加工プログラムを迅速に自動生成することが可能となる。 When the operator edits the first NC machining program 111 automatically generated by the NC machining program generation unit 43 as described later, the reflected machining knowledge that is the new machining knowledge in which the edited contents are reflected is generated. As a result, the new machining knowledge reflects and accumulates the edited contents that reflect the knowledge and experience of the operator. Therefore, the NC machining program generation unit 43 generates the NC machining program by referring to the machining knowledge, so that the NC machining program desired by the operator, which is the same as when the operator himself creates the NC machining program, is created. It is possible to quickly and automatically generate.

NC加工プログラム記憶部44は、加工形状データであるCADデータ100と、NC加工プログラム生成部43において生成されたNC加工プログラムである第1NC加工プログラム111と、第1NC加工プログラム111の生成において参照した加工ナレッジとを、関連付けて記憶する。また、NC加工プログラム記憶部44は、NC加工プログラム編集部45において編集されたNC加工プログラムである第2NC加工プログラム112を記憶する。なお、第1NC加工プログラム111は、第2NC加工プログラム112によって更新されてもよい。 The NC machining program storage unit 44 refers to the CAD data 100 that is machining shape data, the first NC machining program 111 that is the NC machining program generated by the NC machining program generation unit 43, and the generation of the first NC machining program 111. The processing knowledge is stored in association with it. Further, the NC machining program storage unit 44 stores the second NC machining program 112 which is the NC machining program edited by the NC machining program editing unit 45. The first NC machining program 111 may be updated by the second NC machining program 112.

NC加工プログラム編集部45は、CADデータ100、第1NC加工プログラム111および第1NC加工プログラム111に関連付けられた加工ナレッジをNC加工プログラム記憶部44から読み込み、第1NC加工プログラム111を対話操作処理部10に送信する。NC加工プログラム編集部45は、第1NC加工プログラム111を作業者が指示入力部30から入力する編集指示情報に基づいて編集して、第2NC加工プログラム112を生成する。NC加工プログラム編集部45は、生成した第2NC加工プログラム112をNC加工プログラム記憶部44に送信して記憶させる。また、NC加工プログラム編集部45は、加工形状データであるCADデータ100と、第1NC加工プログラム111と、第1NC加工プログラム111に関連付けられた加工ナレッジと、第2NC加工プログラム112とを、後述する状態観測部51に送信する。 The NC machining program editing unit 45 reads the CAD data 100, the first NC machining program 111, and the machining knowledge associated with the first NC machining program 111 from the NC machining program storage unit 44, and sets the first NC machining program 111 to the interactive operation processing unit 10. Send to. The NC machining program editing unit 45 edits the first NC machining program 111 based on the editing instruction information input by the operator from the instruction input unit 30, and generates the second NC machining program 112. The NC machining program editing unit 45 transmits the generated second NC machining program 112 to the NC machining program storage unit 44 to store it therein. Further, the NC machining program editing unit 45 will describe the CAD data 100 that is machining shape data, the first NC machining program 111, the machining knowledge associated with the first NC machining program 111, and the second NC machining program 112, which will be described later. It is transmitted to the state observing section 51.

NC加工プログラム編集部45は、第1NC加工プログラム111の編集が行われていない場合には、すなわち、第2NC加工プログラム112が生成されない場合には、CADデータ100と、第1NC加工プログラム111と、第1NC加工プログラム111に関連付けられた加工ナレッジと、を状態観測部51に送信する。 The NC machining program editing unit 45, when the first NC machining program 111 is not edited, that is, when the second NC machining program 112 is not generated, the CAD data 100, the first NC machining program 111, The machining knowledge associated with the first NC machining program 111 is transmitted to the state observation unit 51.

意思決定部46は、NC加工プログラム生成部43からの要求に対応して、関数更新部54に記憶されている複数の異なる加工ナレッジを探索して、CADデータ100に対応する最も適切な加工ナレッジを決定して、取得する。CADデータ100に対応する最も適切な加工ナレッジは、関数更新部54に記憶されている、CADデータ100に対応する加工ナレッジのうち、第1NC加工プログラム111の生成後の第1NC加工プログラム111に対する編集が最も少ない加工ナレッジである。すなわち、CADデータ100に対応する最も適切な加工ナレッジは、CADデータ100に対応する加工ナレッジのうち、作業者の知識および経験がより適切に反映された加工ナレッジである。 The decision making unit 46 searches for a plurality of different machining knowledge stored in the function updating unit 54 in response to the request from the NC machining program generating unit 43, and selects the most appropriate machining knowledge corresponding to the CAD data 100. Determine and get. The most appropriate machining knowledge corresponding to the CAD data 100 is the editing knowledge for the first NC machining program 111 after the generation of the first NC machining program 111 among the machining knowledge corresponding to the CAD data 100 stored in the function updating unit 54. Is the least processing knowledge. That is, the most appropriate machining knowledge corresponding to the CAD data 100 is, among the machining knowledge corresponding to the CAD data 100, the machining knowledge in which the knowledge and experience of the operator are more appropriately reflected.

意思決定部46は、関数更新部54に記憶されているCADデータ100に対応する複数の加工ナレッジの中から、行動価値Qの最も高い加工ナレッジを取得してNC加工プログラム生成部43に送信する。なお、意思決定部46は、CADデータ100に対応する加工ナレッジが1つしか関数更新部54に記憶されていない場合には、関数更新部54に記憶されている加工ナレッジを、CADデータ100に対応する最も適切な加工ナレッジと決定する。 The decision making unit 46 acquires the machining knowledge having the highest action value Q from the plurality of machining knowledge corresponding to the CAD data 100 stored in the function updating unit 54, and transmits it to the NC machining program generating unit 43. .. When only one machining knowledge corresponding to the CAD data 100 is stored in the function updating unit 54, the decision making unit 46 stores the machining knowledge stored in the function updating unit 54 in the CAD data 100. Decide as the most appropriate machining knowledge that corresponds.

加工ナレッジは、たとえば切削加工品と共通の管理番号を付与されることにより切削加工品と対応付けられる。また、加工ナレッジは、たとえばCADデータ100で表される加工仕上がり形状と素材の材質との組み合わせに対して対応付けられる。これにより、意思決定部46は、管理番号、または加工仕上がり形状の情報と素材の材質の情報とを探索条件として、NC加工プログラム生成部43から指定されたCADデータ100に対応する加工ナレッジを探し、さらにその中から行動価値Qの最も高い加工ナレッジを選択することができる。 The processing knowledge is associated with the cutting product by, for example, being assigned a management number common to the cutting product. The machining knowledge is associated with a combination of the machining finish shape and the material of the material represented by the CAD data 100, for example. As a result, the decision making unit 46 searches for the machining knowledge corresponding to the CAD data 100 designated by the NC machining program generating unit 43, using the control number or the information of the machining finish shape and the information of the material of the material as a search condition. Further, the processing knowledge having the highest action value Q can be selected from among them.

状態観測部51および学習部52を備えた機械学習装置50が用いる学習アルゴリズムはどのようなものを用いてもよい。一例として、強化学習(Reinforcement Learning)を適用した場合について説明する。 Any learning algorithm may be used as the learning algorithm used by the machine learning device 50 including the state observation unit 51 and the learning unit 52. As an example, a case where reinforcement learning is applied will be described.

強化学習は、ある環境内における行動主体であるエージェントが、現在の状態を観測し、取るべき行動を決定する、というものである。エージェントは、行動を選択することで環境から報酬を得て、一連の行動を通じて報酬が最も多く得られるような方策を学習する。強化学習の代表的な手法として、Q学習(Q−learning)またはTD学習(TD−learning)が知られている。例えば、Q学習の場合、行動価値関数Q(s,a)の一般的な更新式は、以下の数式(1)で表される。 Reinforcement learning is that an agent who is an action subject in an environment observes the current state and decides the action to be taken. Agents get rewards from the environment by choosing actions, and learn strategies to get the most rewards through a series of actions. Q-learning or TD-learning is known as a typical method of reinforcement learning. For example, in the case of Q learning, a general update formula of the action value function Q(s,a) is represented by the following formula (1).

Figure 2020012581
Figure 2020012581

数式(1)において、sは、時刻tにおける状態を示す。aは、時刻tにおいて実行される行動である。st+1は時刻t+1における状態を示し、換言すれば、行動aを行った結果として変化した後の状態を示す。rt+1は、行動aの結果として変化する環境に応じて与えられる報酬を示す。すなわち、rt+1は、状態の変化によって与えられる報酬を表す。数式(1)において、「max」の項は、状態st+1における行動価値Qの最大値、すなわち、最良の行動at+1に対する行動価値を表している。γは、割引率であり、0<γ≦1の条件を満足するように設定される。γは、たとえば、0.9以上0.99以下とされる。αは、学習係数であり、0<α≦1の条件を満足するように設定される。αは、たとえば、0.05以上0.2以下とされる。In Equation (1), s t shows a state at time t. a t is an action executed at time t. s t+1 indicates the state at time t+1, in other words, the state after the change as a result of the action a t . r t+1 indicates the reward given according to the environment that changes as a result of the action a t . That is, r t+1 represents the reward given by the change in state. In Expression (1), the term “max” represents the maximum value of the action value Q in the state s t+1 , that is, the action value for the best action a t+1 . γ is a discount rate and is set so as to satisfy the condition of 0<γ≦1. γ is, for example, 0.9 or more and 0.99 or less. α is a learning coefficient and is set so as to satisfy the condition of 0<α≦1. α is, for example, 0.05 or more and 0.2 or less.

Q学習における数式(1)で表される更新式は、時刻t+1における最良の行動at+1の行動価値が、時刻tにおいて実行された行動aの行動価値Qよりも大きければ、時刻tの行動価値Qを大きくし、逆の場合は、時刻tの行動価値Qを小さくする。換言すれば、時刻tにおける行動aの行動価値Qを、時刻t+1における最良の行動価値に近づけるように、行動価値関数Q(s,a)を更新する。これにより、或る環境における最良の行動価値が、それ以前の環境における行動価値に順次伝播していくようになる。The update expression represented by the mathematical expression (1) in Q learning is such that if the action value of the best action a t+1 at the time t+1 is larger than the action value Q of the action a t executed at the time t, the action at the time t. The value Q is increased, and in the opposite case, the action value Q at time t is decreased. In other words, the action value function Q(s t , a t ) is updated so that the action value Q of the action a t at time t approaches the best action value at time t+1. As a result, the best action value in a certain environment is sequentially propagated to the action value in the previous environment.

すなわち、本実施の形態1にかかる機械学習装置50は、公知のQ学習の手法に従って強化学習を実行することができる。或る状態変数と行動aとの組み合わせに対して割当てられる行動価値Qは未知である。機械学習装置50は、種々の状態変数に対して行動aをランダムに選択して実行し、行動aの結果として与えられる報酬を積算することによって、行動価値関数Q(s,a)を更新する。なお、本実施の形態1にかかるNC加工プログラム生成装置40において、「行動a」は、加工ナレッジ、すなわちNC加工プログラムの生成方法を示す情報が対応する。また、「状態s」は、第1NC加工プログラム111に対する編集内容が対応する。 That is, the machine learning device 50 according to the first embodiment can execute the reinforcement learning according to the known Q learning method. The action value Q assigned to a combination of a certain state variable and action a is unknown. The machine learning device 50 randomly selects and executes the action a for various state variables, and updates the action value function Q(s, a) by integrating the reward given as the result of the action a. .. In the NC machining program generation device 40 according to the first embodiment, “action a” corresponds to machining knowledge, that is, information indicating a method of generating the NC machining program. Further, the “state s” corresponds to the editing content for the first NC machining program 111.

また、行動価値関数Q(s,a)は、行動価値テーブルとも呼ばれる。図2は、行動価値テーブルの概念を示す図である。行動価値テーブルは、任意の行動sと、その行動価値Qとが関連付けられてテーブルの形式で記憶されたデータセットである。Q学習におけるデータセットは、いわゆるQテーブルである。Qテーブルは、2次元の表で表すと、行方向が様々な状態s、列方向がとりうる行動aになり、各マスに行動aと状態sとの組み合わせの場合の評価値である行動価値Q、が格納される。ただし、Qテーブルで行動価値関数Q(s,a)を管理する場合には、保持できる状態sと行動aの数に限界があるため、状態sと行動aの数が多い場合には、テーブル形式を取らずに上記の数式(1)で行動価値Qが算出される。 The action value function Q(s,a) is also called an action value table. FIG. 2 is a diagram showing the concept of the action value table. The action value table is a data set in which an arbitrary action s and its action value Q are associated and stored in a table format. The data set in Q learning is a so-called Q table. When the Q table is expressed as a two-dimensional table, the row direction is the various states s and the column direction is the possible actions a, and the action value that is the evaluation value in the case of the combination of the actions a and the states s in each square. Q is stored. However, when the action value function Q(s,a) is managed by the Q table, the number of states s and actions a that can be held is limited. The action value Q is calculated by the above equation (1) without taking the form.

本実施の形態1でQテーブルを採用する場合には、行動aに対応するNC加工プログラムの生成方法を示す情報である加工ナレッジと、状態sに対応する第1NC加工プログラム111に対する編集内容とが、加工形状データに関連付けられたQテーブルが、加工形状データ毎に記憶される。すなわち、本実施の形態1におけるデータセットは、加工形状データのデータと、NC加工プログラムの生成方法を示す情報である加工ナレッジのデータと、第1NC加工プログラム111に対する編集内容のデータと、のセットである。 When the Q table is adopted in the first embodiment, the machining knowledge, which is the information indicating the method of generating the NC machining program corresponding to the action a, and the editing content of the first NC machining program 111 corresponding to the state s, are combined. The Q table associated with the processed shape data is stored for each processed shape data. That is, the data set according to the first embodiment is a set of the data of the machining shape data, the data of machining knowledge which is the information indicating the generation method of the NC machining program, and the data of the editing content for the first NC machining program 111. Is.

数値制御装置1は、NC加工プログラムの生成方法を学習する機械学習機能を有している。すなわち、数値制御装置1は、NC加工プログラムの生成方法を学習する機械学習装置50を備えている。機械学習装置50は、状態観測部51と、学習部52と、を備える。学習部52は、状態変数に基づいて作成されるデータセットに従って、NC加工プログラムの生成方法を学習する。すなわち、学習部52は、状態変数に基づいて作成されるデータセットに従って加工形状データとNC加工プログラムの生成方法と第1NC加工プログラム111に対する編集内容との関係性を学習して、NC加工プログラムの生成方法を学習する。学習部52は、NC加工プログラム生成方法である加工ナレッジの学習にかかる報酬を計算する報酬計算部53と、NC加工プログラム生成方法である加工ナレッジの学習にかかる関数を更新して評価値である行動価値Qを定める関数更新部54とを備える。なお、機械学習装置50は、NC加工プログラム生成装置40に内蔵されていてもよく、またNC加工プログラム生成装置40と通信可能なクラウドサーバに存在してもよい。 The numerical controller 1 has a machine learning function for learning how to generate an NC machining program. That is, the numerical control device 1 includes the machine learning device 50 that learns the method of generating the NC machining program. The machine learning device 50 includes a state observing section 51 and a learning section 52. The learning unit 52 learns the method of generating the NC machining program according to the data set created based on the state variables. That is, the learning unit 52 learns the relationship between the machining shape data, the NC machining program generation method, and the edit content for the first NC machining program 111 according to the data set created based on the state variables, and the NC machining program Learn how to generate. The learning unit 52 updates the reward calculation unit 53 that calculates the reward for learning the machining knowledge that is the NC machining program generation method and the function that relates to the learning of the machining knowledge that is the NC machining program generation method, and that is an evaluation value. And a function updating unit 54 that determines the action value Q. The machine learning device 50 may be built in the NC machining program generation device 40, or may exist in a cloud server that can communicate with the NC machining program generation device 40.

状態観測部51は、加工形状データであるCADデータ100と、NC加工プログラム生成部43が第1NC加工プログラム111を生成する際に参照した数値制御加工プログラムの生成方法を示す情報である加工ナレッジと、第1NC加工プログラム111に対する編集内容と、を状態変数として観測する。すなわち、状態観測部51は、意思決定部46で決定される加工ナレッジと、NC加工プログラム編集部45において第2NC加工プログラム112の生成において行われた第1NC加工プログラム111に対する編集内容とを、加工形状データであるCADデータ100毎に観測する。 The state observing unit 51 includes CAD data 100 that is machining shape data, and machining knowledge that is information indicating a method of generating a numerically controlled machining program that the NC machining program generator 43 refers to when generating the first NC machining program 111. , Edit contents for the first NC machining program 111 are observed as state variables. That is, the state observing unit 51 processes the machining knowledge determined by the decision making unit 46 and the editing content for the first NC machining program 111, which is performed by the NC machining program editing unit 45 when the second NC machining program 112 is generated. Observation is made for each CAD data 100 which is shape data.

状態観測部51は、第1NC加工プログラム111に対する編集内容を、第1NC加工プログラム111の生成において参照した加工ナレッジに反映して反映加工ナレッジを作成する。反映加工ナレッジは、第1NC加工プログラム111に対する編集内容が、第1NC加工プログラム111の生成において参照した数値制御加工プログラムの生成方法に反映された反映数値制御加工プログラムの生成方法である。反映加工ナレッジには、第1NC加工プログラム111に関連付けられた加工ナレッジの報酬rが引き継がれる。状態観測部51は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジと、を観測結果として報酬計算部53に送信する。 The state observing unit 51 reflects the edit content of the first NC machining program 111 on the machining knowledge referred to in the generation of the first NC machining program 111 to create a reflected machining knowledge. The reflected machining knowledge is a method of generating a reflected numerically controlled machining program in which the editing content of the first NC machining program 111 is reflected in the method of generating the numerically controlled machining program referred to in the generation of the first NC machining program 111. The reward r of the machining knowledge associated with the first NC machining program 111 is inherited to the reflected machining knowledge. The state observing unit 51 transmits the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge to the reward calculating unit 53 as an observation result.

状態観測部51において反映加工ナレッジが生成される場合には、基の加工ナレッジに付与されている管理番号、または加工仕上がり形状の情報と素材の材質の情報とが、引き継がれて付与される。加工ナレッジに基づいて生成された反映加工ナレッジおよび加工ナレッジは、ともに1つの切削加工品の加工仕上がり形状と対応している。すなわち、反映加工ナレッジは、反映加工ナレッジが生成される基となっている加工ナレッジが対応している切削加工品の加工仕上がり形状に対応している。したがって、反映加工ナレッジは、生成される基となっている加工ナレッジに付与されている管理番号、または加工仕上がり形状の情報と素材の材質の情報とが、引き継がれて付与される。すなわち、反映加工ナレッジは、CADデータ100との関連付けが引き継がれて付与される。 When the reflected machining knowledge is generated in the state observing unit 51, the management number or the machining finish shape information and the material quality information given to the original machining knowledge are inherited and given. The reflected machining knowledge and the machining knowledge generated based on the machining knowledge both correspond to the machining finish shape of one cutting product. That is, the reflected machining knowledge corresponds to the finished shape of the machined product corresponding to the machining knowledge on which the reflected machining knowledge is generated. Therefore, the reflected processing knowledge is given by inheriting the control number, or the information on the processing finish shape and the information on the material of the material, which is given to the processing knowledge that is the basis of generation. That is, the reflection processing knowledge is given while the association with the CAD data 100 is inherited.

状態観測部51は、CADデータ100と、第1NC加工プログラム111と、第1NC加工プログラム111に関連付けられた加工ナレッジと、第2NC加工プログラム112とがNC加工プログラム編集部45から送信された場合には、第1NC加工プログラム111に対する編集内容を抽出することができる。したがって、この場合には、CADデータ100についての第1NC加工プログラム111に対する編集内容が第1NC加工プログラム111の生成において参照した加工ナレッジに反映された、新たな加工ナレッジが、反映加工ナレッジとなる。 The state observing unit 51 receives the CAD data 100, the first NC machining program 111, the machining knowledge associated with the first NC machining program 111, and the second NC machining program 112 from the NC machining program editing unit 45. Can extract the editing content for the first NC machining program 111. Therefore, in this case, the new machining knowledge in which the editing content of the CAD data 100 with respect to the first NC machining program 111 is reflected in the machining knowledge referred to in the generation of the first NC machining program 111 is the reflected machining knowledge.

一方、CADデータ100と、第1NC加工プログラム111と、第1NC加工プログラム111に関連付けられた加工ナレッジとのみがNC加工プログラム編集部45から送信され、第2NC加工プログラム112が送信されていない場合には、第1NC加工プログラム111に対する編集内容が無い。この場合には、第1NC加工プログラム111の生成において参照した加工ナレッジ自体が反映加工ナレッジとなる。 On the other hand, when only the CAD data 100, the first NC machining program 111, and the machining knowledge associated with the first NC machining program 111 are transmitted from the NC machining program editing unit 45 and the second NC machining program 112 is not transmitted. Has no edit content for the first NC machining program 111. In this case, the machining knowledge itself referred to in the generation of the first NC machining program 111 becomes the reflected machining knowledge.

したがって、加工形状データであるCADデータ100と、NC加工プログラム生成部43が第1NC加工プログラム111を生成する際に参照した数値制御加工プログラムの生成方法を示す情報である加工ナレッジと、第1NC加工プログラム111に対する編集内容とを状態変数として観測するとは、CADデータ100についての第1NC加工プログラム111に対する編集内容を抽出し、観測結果として、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジと、をCADデータ100毎に取得することを意味する。 Therefore, the CAD data 100 that is the machining shape data, the machining knowledge that is information indicating the method of generating the numerically controlled machining program that the NC machining program generation unit 43 referred to when generating the first NC machining program 111, and the first NC machining. Observing the edit content for the program 111 as a state variable means extracting the edit content for the first NC machining program 111 with respect to the CAD data 100 and reflecting the machining knowledge referred to in the generation of the first NC machining program 111 and the observation result. It means that the processing knowledge is acquired for each CAD data 100.

学習部52は、加工形状データであるCADデータ100と、NC加工プログラム生成部43が第1NC加工プログラム111を生成する際に参照した数値制御加工プログラムの生成方法を示す情報である加工ナレッジと、第1NC加工プログラム111に対する編集内容とのデータセットに基づいて加工形状データとNC加工プログラムの生成方法と第1NC加工プログラム111に対する編集内容との関係性を学習して、NC加工プログラム生成方法を学習する。すなわち、学習部52は、状態観測部51で観測される状態変数に基づいて、加工ナレッジを学習する。一実施形態において、学習部52は、強化学習の概念に従って加工ナレッジを学習する。 The learning unit 52 includes CAD data 100 that is machining shape data, machining knowledge that is information indicating a method of generating a numerically controlled machining program that the NC machining program generator 43 refers to when generating the first NC machining program 111, and Learning the NC machining program generation method by learning the relationship between the machining shape data, the NC machining program generation method, and the edited content for the first NC machining program 111 based on the data set with the editing content for the first NC machining program 111. To do. That is, the learning unit 52 learns the processing knowledge based on the state variable observed by the state observation unit 51. In one embodiment, the learning unit 52 learns processing knowledge according to the concept of reinforcement learning.

報酬計算部53は、状態観測部51から送信される観測結果である反映加工ナレッジに基づいて、報酬rを計算する。より詳細には、報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとに基づいて、反映加工ナレッジの報酬rを計算する。報酬計算部53は、報酬rを付与する報酬付与基準である、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとの同一性に基づいて、反映加工ナレッジの報酬rを計算する。報酬計算部53は、計算した報酬rを、CADデータ100および反映加工ナレッジと関連付けて、CADデータ100および反映加工ナレッジとともに関数更新部54に送信する。 The reward calculation unit 53 calculates the reward r based on the reflected processing knowledge that is the observation result transmitted from the state observation unit 51. More specifically, the reward calculation unit 53 calculates the reward r of the reflected machining knowledge based on the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge. The reward calculation unit 53 calculates the reward r of the reflected processing knowledge based on the identity of the processing knowledge referred to in the generation of the first NC processing program 111 and the reflected processing knowledge, which is a reward giving criterion for giving the reward r. To do. The reward calculating unit 53 associates the calculated reward r with the CAD data 100 and the reflection processing knowledge, and transmits the calculated reward r to the function updating unit 54 together with the CAD data 100 and the reflection processing knowledge.

報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとが同じである場合には、反映加工ナレッジの報酬rを増大させる。報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとが同じである場合には、たとえば「正」の報酬rである「+1」の報酬rを反映加工ナレッジに与える。そして、反映加工ナレッジの報酬rは、生成された際に第1NC加工プログラム111の生成において参照した加工ナレッジから引き継がれている報酬rに、「+1」が加算される。これにより、反映加工ナレッジの報酬rは、第1NC加工プログラム111の生成において参照した加工ナレッジから引き継いだ報酬rよりも増大する。 The reward calculation unit 53 increases the reward r of the reflected machining knowledge when the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge are the same. When the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge are the same, the reward calculation unit 53 reflects the reward r of “+1”, which is the “correct” reward r, for example. Give to knowledge. Then, the reward r of the reflected machining knowledge is added with “+1” to the reward r that is inherited from the machining knowledge referred to in the generation of the first NC machining program 111 when the compensation r is generated. Thereby, the reward r of the reflected machining knowledge is larger than the reward r inherited from the machining knowledge referred to in the generation of the first NC machining program 111.

報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとが異なる場合には、第1NC加工プログラム111の生成において参照した加工ナレッジの報酬rを減少させる。報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとが異なる場合には、たとえば「負」の報酬rである「−1」の報酬rを、第1NC加工プログラム111の生成において参照した加工ナレッジに与える。たとえば、旋削端面正面加工を旋削ドリル加工より先に行うように生成された第1NC加工プログラム111に対して、旋削ドリル加工を旋削端面正面加工より先に行うように編集が行われている場合には、報酬計算部53は、報酬rを低減し、たとえば「−1」の報酬rを、第1NC加工プログラム111の生成において参照した加工ナレッジに与える。そして、第1NC加工プログラム111の生成において参照した加工ナレッジの報酬rは、現在の報酬rに、「−1」が加算される。これにより、第1NC加工プログラム111の生成において参照した加工ナレッジの報酬rは、第1NC加工プログラム111の生成において参照されたときの報酬rよりも減少する。 When the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge are different, the reward calculation unit 53 reduces the compensation r of the machining knowledge referred to in the generation of the first NC machining program 111. When the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge are different from each other, the reward calculation unit 53 gives a reward r of “−1”, which is a “negative” reward r, to the first NC. It is given to the machining knowledge referred to in the generation of the machining program 111. For example, in the case where the first NC machining program 111 generated so that the turning end face front machining is performed before the turning drill machining is edited so that the turning drill machining is performed before the turning end face front machining. , The reward calculation unit 53 reduces the reward r, and gives the reward r of, for example, “−1” to the processing knowledge referred to in the generation of the first NC processing program 111. Then, for the reward r of the machining knowledge referred to in the generation of the first NC machining program 111, “−1” is added to the current reward r. As a result, the reward r of the machining knowledge referred to in the generation of the first NC machining program 111 is smaller than the reward r when referred to in the generation of the first NC machining program 111.

また、報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとが異なる場合には、上述したように、第1NC加工プログラム111の生成において参照した加工ナレッジの報酬rを減少させた後に、反映加工ナレッジの報酬rを増大させる。報酬計算部53は、第1NC加工プログラム111の生成において参照した加工ナレッジと、反映加工ナレッジとが異なる場合には、たとえば「正」の報酬rである「+1」の報酬rを反映加工ナレッジに与える。そして、反映加工ナレッジの報酬rは、生成された際に第1NC加工プログラム111の生成において参照した加工ナレッジから引き継がれている報酬rに、「+1」が加算される。これにより、反映加工ナレッジの報酬rは、第1NC加工プログラム111の生成において参照した加工ナレッジから引き継いだ報酬rよりも増大する。 Further, when the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge are different from each other, the reward calculation unit 53 calculates the machining knowledge referred to in the generation of the first NC machining program 111 as described above. After reducing the reward r, the reward r of the reflection processing knowledge is increased. When the machining knowledge referred to in the generation of the first NC machining program 111 and the reflected machining knowledge are different from each other, the reward calculation unit 53 sets the reward r of “+1”, which is a “positive” reward r, to the reflected machining knowledge, for example. give. Then, the reward r of the reflected machining knowledge is added with “+1” to the reward r that is inherited from the machining knowledge referred to in the generation of the first NC machining program 111 when the compensation r is generated. Thereby, the reward r of the reflected machining knowledge is larger than the reward r inherited from the machining knowledge referred to in the generation of the first NC machining program 111.

報酬rの数値は、「+1」および「−1」に限定されない。また、第1NC加工プログラム111に対する編集内容によって、すなわち第1NC加工プログラム111の生成において参照した加工ナレッジから反映加工ナレッジへの編集内容によって、報酬rに差をつけてもよい。 The numerical value of the reward r is not limited to “+1” and “−1”. Further, the remuneration r may be differentiated depending on the edit content of the first NC machining program 111, that is, the edit content from the machining knowledge referred to in the generation of the first NC machining program 111 to the reflected machining knowledge.

関数更新部54は、報酬計算部53によって計算される反映加工ナレッジの報酬rに従って、NC加工プログラムの生成方法を決定するための関数を更新する。たとえば、関数更新部54は、行動価値関数Q(s,a)を更新して評価値である行動価値Qを定める。関数更新部54は、定められた行動価値Qを、反映加工ナレッジと関連付けて反映加工ナレッジとともに記憶する。これにより、関数更新部54には、最初に記憶されている加工ナレッジに加えて、反映加工ナレッジと、反映加工ナレッジに関連付けられた行動価値Qとが、第1NC加工プログラム111の生成において参照される加工ナレッジとして記憶されていく。図3は、本発明の実施の形態1にかかる機械学習装置50の関数更新部54に加工ナレッジおよび反映加工ナレッジが記憶された状態の一例を示す図である。図3では、加工ナレッジA121、加工ナレッジB122、加工ナレッジC123、反映加工ナレッジA131、反映加工ナレッジB132および反映加工ナレッジC133が記憶されている例を示している。なお、加工ナレッジと、反映加工ナレッジと、反映加工ナレッジに関連付けられた行動価値Qと、を記憶する加工ナレッジ記憶部を別途設けてもよい。 The function updating unit 54 updates the function for determining the generation method of the NC machining program according to the reward r of the reflected machining knowledge calculated by the reward calculation unit 53. For example, the function updating unit 54 updates the action value function Q(s,a) to determine the action value Q that is an evaluation value. The function updating unit 54 stores the determined action value Q in association with the reflection processing knowledge together with the reflection processing knowledge. As a result, in addition to the machining knowledge stored first, the function updating unit 54 refers to the reflected machining knowledge and the action value Q associated with the reflected machining knowledge in generating the first NC machining program 111. It is memorized as processing knowledge. FIG. 3 is a diagram showing an example of a state in which the processing knowledge and the reflected processing knowledge are stored in the function updating unit 54 of the machine learning device 50 according to the first exemplary embodiment of the present invention. FIG. 3 shows an example in which machining knowledge A121, machining knowledge B122, machining knowledge C123, reflection machining knowledge A131, reflection machining knowledge B132, and reflection machining knowledge C133 are stored. A machining knowledge storage unit that stores the machining knowledge, the reflected machining knowledge, and the action value Q associated with the reflected machining knowledge may be separately provided.

つぎに、行動価値関数Q(s,a)を更新する強化学習方法について説明する。図4は、本発明の実施の形態1における行動価値関数Q(s,a)の更新処理の手順を示すフローチャートである。 Next, a reinforcement learning method for updating the action value function Q(s,a) will be described. FIG. 4 is a flowchart showing the procedure of the updating process of the action value function Q(s,a) according to the first embodiment of the present invention.

ステップST110において、NC加工プログラム生成部43が、加工形状データ記憶部42に記憶されているCADデータ100を読み込み、NC加工プログラム生成部43内の不図示の記憶部の形状記憶領域に格納する。 In step ST110, the NC machining program generation unit 43 reads the CAD data 100 stored in the machining shape data storage unit 42 and stores it in the shape storage area of the storage unit (not shown) in the NC machining program generation unit 43.

次に、ステップST120においてNC加工プログラム生成部43が、NC加工プログラムを生成するために、CADデータ100に対応する加工ナレッジを、意思決定部46を介して関数更新部54から取得する。意思決定部46は、機械学習装置50が学習した結果に基づいて加工ナレッジを決定する。すなわち、意思決定部46は、関数更新部54に記憶されている複数の加工ナレッジを探索して、NC加工プログラム生成部43からの要求に対応する複数の加工ナレッジの中から、行動価値Qの最も高い加工ナレッジを決定して取得し、NC加工プログラム生成部43に送信する。 Next, in step ST120, the NC machining program generation unit 43 acquires the machining knowledge corresponding to the CAD data 100 from the function updating unit 54 via the decision making unit 46 in order to generate the NC machining program. The decision making unit 46 decides machining knowledge based on the result learned by the machine learning device 50. That is, the decision making unit 46 searches for the plurality of machining knowledge stored in the function updating unit 54, and selects the action value Q from among the plurality of machining knowledge corresponding to the request from the NC machining program generating unit 43. The highest machining knowledge is determined, acquired, and transmitted to the NC machining program generation unit 43.

NC加工プログラム生成部43に送信される加工ナレッジの一例を以下に示す。
(加工ナレッジA121)
素材材質:S45C
加工順序:端面取り代が20mm以上である場合は旋削ドリル工程を先に行い、その後に旋削端面工程を行う。端面取り代が前記条件以外の場合は、旋削端面工程を先に行い、その後に旋削ドリル工程を行う。
(加工ナレッジB122)
素材材質:S45C
加工部位:「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1未満」の場合は加工部位を正面とする。「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1以上」の場合は加工部位を外径とする。開放部は、旋削断面形状tにおいて素材の表面に露出している部位である。
(加工ナレッジC123)
素材材質:S45C
加工方法:旋削断面形状の縦方向の長さが10mm以下、且つ旋削断面形状の横方向の長さが10mm以下である場合は、旋削溝入れ工程を行う。旋削断面形状の縦方向の長さおよび横方向の長さが前記条件以外の場合は、旋削棒材工程を行う。
An example of machining knowledge transmitted to the NC machining program generation unit 43 is shown below.
(Processing knowledge A121)
Material Material: S45C
Processing order: When the end chamfering allowance is 20 mm or more, the turning drill step is performed first, and then the turning end surface step is performed. When the edge chamfering margin is other than the above-mentioned conditions, the turning end face step is performed first, and then the turning drill step is performed.
(Processing knowledge B122)
Material Material: S45C
Machining site: When "horizontal length of open part shape/longitudinal length of open part shape" is "less than 1," the processed part is the front side. When "horizontal length of open part shape/longitudinal length of open part shape" is "1 or more", the outer diameter is defined as the processed part. The open portion is a portion exposed on the surface of the raw material in the turning sectional shape t.
(Processing knowledge C123)
Material Material: S45C
Machining method: When the length of the lathe cross section in the vertical direction is 10 mm or less and the length of the lathe cross section in the lateral direction is 10 mm or less, the turning grooving step is performed. When the length in the vertical direction and the length in the horizontal direction of the turning cross-sectional shape are other than the above-mentioned conditions, the turning rod material step is performed.

次に、ステップST130においてNC加工プログラム生成部43は、取得した加工ナレッジを参照してNC加工プログラムである第1NC加工プログラム111を生成する。 Next, in step ST130, the NC machining program generation unit 43 refers to the acquired machining knowledge to generate the first NC machining program 111, which is an NC machining program.

次に、ステップST140においてNC加工プログラム生成部43は、CADデータ100と第1NC加工プログラム111の生成において参照した加工ナレッジと第1NC加工プログラム111とを関連付けて、CADデータ100と第1NC加工プログラム111と加工ナレッジとをNC加工プログラム記憶部44に送信する。NC加工プログラム記憶部44は、CADデータ100と第1NC加工プログラム111と加工ナレッジとを記憶する。 Next, in step ST140, the NC machining program generation unit 43 associates the CAD data 100 with the machining knowledge referred to in the generation of the first NC machining program 111 and the first NC machining program 111 to associate the CAD data 100 with the first NC machining program 111. And the machining knowledge are transmitted to the NC machining program storage unit 44. The NC machining program storage unit 44 stores the CAD data 100, the first NC machining program 111, and machining knowledge.

次に、ステップST150においてNC加工プログラム編集部45が、CADデータ100と、第1NC加工プログラム111および第1NC加工プログラム111に関連付けられた加工ナレッジをNC加工プログラム記憶部44から読み込み、第1NC加工プログラム111を対話操作処理部10に送信する。対話操作処理部10は、NC加工プログラム編集部45から送信された第1NC加工プログラム111を表示部20に表示させて、作業者に第1NC加工プログラム111の確認を促す。 Next, in step ST150, the NC machining program editing unit 45 reads the CAD data 100, the first NC machining program 111, and the machining knowledge associated with the first NC machining program 111 from the NC machining program storage unit 44, and reads the first NC machining program. 111 is transmitted to the interactive operation processing unit 10. The interactive operation processing unit 10 causes the display unit 20 to display the first NC machining program 111 transmitted from the NC machining program editing unit 45, and prompts the operator to confirm the first NC machining program 111.

第1NC加工プログラム111が表示部20に表示されると、作業者が第1NC加工プログラム111を確認し、第1NC加工プログラム111の編集指示情報を指示入力部30に入力する。編集指示情報は、指示入力部30から対話操作処理部10を介してNC加工プログラム生成装置40のNC加工プログラム編集部45に送信される。 When the first NC machining program 111 is displayed on the display unit 20, the operator confirms the first NC machining program 111 and inputs the edit instruction information of the first NC machining program 111 to the instruction input unit 30. The editing instruction information is transmitted from the instruction input unit 30 to the NC machining program editing unit 45 of the NC machining program generating device 40 via the interactive operation processing unit 10.

次に、ステップST160においてNC加工プログラム編集部45が、編集指示情報を受信し、編集指示情報に基づいて第1NC加工プログラム111を編集して、第2NC加工プログラム112を生成する。第2NC加工プログラム112は、第1NC加工プログラム111が編集指示情報に基づいて編集されたNC加工プログラムである。そして、NC加工プログラム編集部45は、CADデータ100と、第1NC加工プログラム111と、第1NC加工プログラム111に関連付けられた加工ナレッジと、第2NC加工プログラム112とを状態観測部51に送信する。 Next, in step ST160, the NC machining program editing unit 45 receives the editing instruction information, edits the first NC machining program 111 based on the editing instruction information, and generates the second NC machining program 112. The second NC machining program 112 is an NC machining program in which the first NC machining program 111 is edited based on the editing instruction information. Then, the NC machining program editing unit 45 transmits the CAD data 100, the first NC machining program 111, the machining knowledge associated with the first NC machining program 111, and the second NC machining program 112 to the state observing unit 51.

次に、ステップST170において状態観測部51は、NC加工プログラム編集部45から送信された第1NC加工プログラム111と第2NC加工プログラム112とを比較して、第1NC加工プログラム111に対する編集内容を取得する。これにより、状態観測部51は、状態変数として、加工形状データであるCADデータ100と、第1NC加工プログラム111に関連付けられた加工ナレッジと、第1NC加工プログラム111に対する編集内容とを取得する。 Next, in step ST170, the state observing unit 51 compares the first NC machining program 111 and the second NC machining program 112 transmitted from the NC machining program editing unit 45, and acquires the editing content for the first NC machining program 111. .. Thereby, the state observing unit 51 acquires, as state variables, the CAD data 100 that is the machining shape data, the machining knowledge associated with the first NC machining program 111, and the edit content for the first NC machining program 111.

次に、ステップST180において状態観測部51は、第1NC加工プログラム111に対する編集内容を、第1NC加工プログラム111の生成において参照した加工ナレッジに反映して反映加工ナレッジを生成する。状態観測部51は、第1NC加工プログラム111に関連付けられた加工ナレッジと、反映加工ナレッジと、を観測結果として報酬計算部53に送信する。 Next, in step ST180, the state observing unit 51 reflects the edit content of the first NC machining program 111 on the machining knowledge referred to in the generation of the first NC machining program 111 to generate reflected machining knowledge. The state observing unit 51 transmits the machining knowledge associated with the first NC machining program 111 and the reflected machining knowledge to the reward calculating unit 53 as an observation result.

次に、ステップST190において報酬計算部53は、第1NC加工プログラム111に関連付けられた加工ナレッジと、反映加工ナレッジとを比較し、両者が同じであるか否かを判定する。両者が同じである場合は、ステップST190においてYesとなり、ステップST200に進む。両者が異なる場合は、ステップST190においてNoとなり、ステップST210に進む。 Next, in step ST190, the reward calculation unit 53 compares the machining knowledge associated with the first NC machining program 111 with the reflected machining knowledge, and determines whether the two are the same. If both are the same, Yes is obtained in step ST190 and the process proceeds to step ST200. If they are different, No is obtained in step ST190 and the process proceeds to step ST210.

ステップST200において報酬計算部53は、反映加工ナレッジの報酬rに対する行動価値Qが増大するように、反映加工ナレッジの報酬rを増大させる報酬rを計算し、第1NC加工プログラム111に関連付けられた加工ナレッジから引き継いだ反映加工ナレッジの報酬rに積算する。これにより、反映加工ナレッジの報酬rは、第1NC加工プログラム111に関連付けられた加工ナレッジから引き継いだ報酬rよりも増大する。これにより、反映加工ナレッジの行動価値Qが増大することになる。 In step ST200, the reward calculation unit 53 calculates the reward r that increases the reward r of the reflected processing knowledge so that the action value Q with respect to the reward r of the reflected processing knowledge increases, and the processing associated with the first NC processing program 111 is performed. The reward r of the reflection processing knowledge inherited from the knowledge is accumulated. Thereby, the reward r of the reflected machining knowledge is larger than the reward r inherited from the machining knowledge associated with the first NC machining program 111. As a result, the action value Q of the reflected processing knowledge increases.

第1NC加工プログラム111に関連付けられた加工ナレッジと、反映加工ナレッジとが同じである場合には、第1NC加工プログラム111に関連付けられた加工ナレッジ自体が反映加工ナレッジである。そして、反映加工ナレッジは、第1NC加工プログラム111に対する編集内容がされていないため、高品質な反映加工ナレッジとなっていると考えられる。すなわち、第1NC加工プログラム111に関連付けられた加工ナレッジが、高品質な加工ナレッジであると考えられる。 When the machining knowledge associated with the first NC machining program 111 and the reflected machining knowledge are the same, the machining knowledge itself associated with the first NC machining program 111 is the reflected machining knowledge. Then, the reflected machining knowledge is considered to be high-quality reflected machining knowledge because the editing content for the first NC machining program 111 has not been made. That is, the machining knowledge associated with the first NC machining program 111 is considered to be high-quality machining knowledge.

たとえば、反映加工ナレッジが以下に示すものである場合には、第1NC加工プログラム111に関連付けられた加工ナレッジと、反映加工ナレッジとは全て同じであるため、ステップST200において反映加工ナレッジの報酬rが増大する。反映加工ナレッジA121aは、加工ナレッジA121に基づいて生成された反映加工ナレッジである。反映加工ナレッジB121bは、加工ナレッジB122に基づいて生成された反映加工ナレッジである。反映加工ナレッジC121cは、加工ナレッジC123に基づいて生成された反映加工ナレッジである。 For example, when the reflected machining knowledge is as shown below, since the machining knowledge associated with the first NC machining program 111 and the reflected machining knowledge are all the same, the reward r of the reflected machining knowledge is calculated in step ST200. Increase. The reflected processing knowledge A121a is the reflected processing knowledge generated based on the processing knowledge A121. The reflected machining knowledge B121b is the reflected machining knowledge generated based on the machining knowledge B122. The reflection processing knowledge C121c is reflection processing knowledge generated based on the processing knowledge C123.

(反映加工ナレッジA121a)
素材材質:S45C
加工順序:端面取り代が20mm以上である場合は旋削ドリル工程を先に行い、その後に旋削端面工程を行う。端面取り代が前記条件以外の場合は、旋削端面工程を先に行い、その後に旋削ドリル工程を行う。
(反映加工ナレッジB121b)
素材材質:S45C
加工部位:「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1未満」の場合は加工部位を正面とする。「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1以上」の場合は加工部位を外径とする。開放部は、旋削断面形状tにおいて素材の表面に露出している部位である。
(反映加工ナレッジC121c)
素材材質:S45C
加工方法:旋削断面形状の縦方向の長さが10mm以下、且つ旋削断面形状の横方向の長さが10mm以下である場合は、旋削溝入れ工程を行う。旋削断面形状の縦方向の長さおよび横方向の長さが前記条件以外の場合は、旋削棒材工程を行う。
(Reflective processing knowledge A121a)
Material Material: S45C
Processing order: When the end chamfering allowance is 20 mm or more, the turning drill step is performed first, and then the turning end surface step is performed. When the edge chamfering margin is other than the above-mentioned conditions, the turning end face step is performed first, and then the turning drill step is performed.
(Reflective processing knowledge B121b)
Material Material: S45C
Machining site: When "horizontal length of open part shape/longitudinal length of open part shape" is "less than 1," the processed part is the front side. When "horizontal length of open part shape/longitudinal length of open part shape" is "1 or more", the outer diameter is defined as the processed part. The open portion is a portion exposed on the surface of the raw material in the turning sectional shape t.
(Reflective processing knowledge C121c)
Material Material: S45C
Machining method: When the length of the lathe cross section in the vertical direction is 10 mm or less and the length of the lathe cross section in the lateral direction is 10 mm or less, the turning grooving step is performed. When the length in the vertical direction and the length in the horizontal direction of the turning cross-sectional shape are other than the above-mentioned conditions, the turning rod material step is performed.

一方、ステップST210において報酬計算部53は、加工ナレッジの報酬rに対する行動価値Qが減少するように、加工ナレッジの報酬rを減少させる報酬rを計算し、加工ナレッジの報酬rに積算する。これにより、加工ナレッジの報酬rは、第1NC加工プログラム111の生成において参照されたときの報酬rよりも減少する。これにより、加工ナレッジの行動価値Qが減少することになる。 On the other hand, in step ST210, the reward calculation unit 53 calculates a reward r for reducing the reward r of the processing knowledge so that the action value Q with respect to the reward r of the processing knowledge is reduced, and integrates the reward r of the processing knowledge. As a result, the reward r of the processing knowledge is smaller than the reward r when the reference is made in the generation of the first NC processing program 111. As a result, the action value Q of the processing knowledge is reduced.

たとえば、反映加工ナレッジが以下に示すものである場合には、第1NC加工プログラム111に関連付けられた加工ナレッジと、反映加工ナレッジとは全て異なるため、ステップST210において加工ナレッジの報酬rが減少する。反映加工ナレッジA131は、加工ナレッジA121に基づいて生成された反映加工ナレッジである。反映加工ナレッジB132は、加工ナレッジB122に基づいて生成された反映加工ナレッジである。反映加工ナレッジC133は、加工ナレッジC123に基づいて生成された反映加工ナレッジである。 For example, if the reflected machining knowledge is as shown below, the machining knowledge associated with the first NC machining program 111 and the reflected machining knowledge are all different, so that the reward r of the machining knowledge is reduced in step ST210. The reflected processing knowledge A131 is reflected processing knowledge generated based on the processing knowledge A121. The reflected processing knowledge B132 is the reflected processing knowledge generated based on the processing knowledge B122. The reflected machining knowledge C133 is the reflected machining knowledge generated based on the machining knowledge C123.

(反映加工ナレッジA131)
素材材質:S45C
加工順序:端面取り代が「10mm以上」である場合は旋削ドリルを先に行い、その後に旋削端面工程を行う。端面取り代が前記条件以外の場合は、旋削端面工程を先に行い、その後に旋削ドリル工程を行う。
(反映加工ナレッジB132)
素材材質:S45C
加工部位:「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0以下」の場合は加工部位を正面とする。「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0より大」の場合は加工部位を外径とする。
(反映加工ナレッジC133)
素材材質:S45C
加工方法:旋削断面形状の縦方向の長さが10mm以下、且つ旋削断面形状の横方向の長さが「20mm以下」である場合は、旋削溝入れ工程を行う。旋削断面形状の縦方向の長さおよび横方向の長さが前記条件以外の場合は、旋削棒材工程を行う。
(Reflective processing knowledge A131)
Material Material: S45C
Processing order: When the end chamfering allowance is "10 mm or more", the turning drill is performed first, and then the turning end face process is performed. When the edge chamfering margin is other than the above-mentioned conditions, the turning end face step is performed first, and then the turning drill step is performed.
(Reflective processing knowledge B132)
Material Material: S45C
Processed part: When "the lateral length of the open part shape/the vertical length of the open part shape" is "1.0 or less", the processed part is the front side. When "the length of the open portion shape in the horizontal direction/the length of the open portion shape in the vertical direction" is "greater than 1.0", the processed portion is defined as the outer diameter.
(Reflective processing knowledge C133)
Material Material: S45C
Processing method: When the length of the lathe cross-section shape in the vertical direction is 10 mm or less and the length of the lathe cross-section shape in the horizontal direction is "20 mm or less", a turning grooving step is performed. When the length in the vertical direction and the length in the horizontal direction of the turning cross-sectional shape are other than the above-mentioned conditions, the turning rod material step is performed.

第1NC加工プログラム111に関連付けられた加工ナレッジと、反映加工ナレッジとが異なる場合には、第1NC加工プログラム111に対する編集内容がされている。このため、第1NC加工プログラム111に関連付けられた加工ナレッジは、反映加工ナレッジよりも品質が低い加工ナレッジとなっていると考えられる。 When the machining knowledge associated with the first NC machining program 111 and the reflected machining knowledge are different, the edit content for the first NC machining program 111 is made. Therefore, it is considered that the machining knowledge associated with the first NC machining program 111 has a lower quality than the reflected machining knowledge.

一方、反映加工ナレッジは、第1NC加工プログラム111に関連付けられた加工ナレッジよりも高品質な加工ナレッジとなっていると考えられる。そこで、報酬計算部53は、ステップST210の後にステップST200において反映加工ナレッジの報酬rに対する行動価値Qが増大するように、反映加工ナレッジの報酬rを増大させる報酬rを計算し、第1NC加工プログラム111に関連付けられた加工ナレッジから引き継いだ反映加工ナレッジの報酬rに積算する。これにより、反映加工ナレッジの報酬rは、第1NC加工プログラム111に関連付けられた加工ナレッジから引き継いだ報酬rよりも増大する。これにより、反映加工ナレッジの行動価値Qが増大することになる。 On the other hand, the reflected machining knowledge is considered to be machining knowledge of higher quality than the machining knowledge associated with the first NC machining program 111. Therefore, the reward calculation unit 53 calculates the reward r that increases the reward r of the reflected processing knowledge so that the action value Q with respect to the reward r of the reflected processing knowledge increases in step ST200 after step ST210, and the first NC processing program The reward r of the reflected processing knowledge inherited from the processing knowledge associated with 111 is added. Thereby, the reward r of the reflected machining knowledge is larger than the reward r inherited from the machining knowledge associated with the first NC machining program 111. As a result, the action value Q of the reflected processing knowledge increases.

次に、ステップST220において関数更新部54は、ステップST200またはステップST210で計算された反映加工ナレッジの報酬rに基づいて、行動価値関数Q(s,a)を更新して、第1NC加工プログラム111に関連付けられた加工ナレッジおよび反映加工ナレッジの評価値である行動価値Qを定める。関数更新部54は、反映加工ナレッジについて定められた行動価値Qを、反映加工ナレッジと関連付けて反映加工ナレッジとともに、加工ナレッジとして記憶する。 Next, in step ST220, the function updating unit 54 updates the action value function Q(s,a) based on the reward r of the reflected processing knowledge calculated in step ST200 or step ST210, and the first NC processing program 111. An action value Q, which is an evaluation value of the machining knowledge and the reflected machining knowledge associated with, is determined. The function updating unit 54 associates the action value Q defined for the reflected machining knowledge with the reflected machining knowledge and stores it together with the reflected machining knowledge as the machining knowledge.

また、関数更新部54は、第1NC加工プログラム111に関連付けられた加工ナレッジについて定められた行動価値Qを、この加工ナレッジと関連付けて加工ナレッジとともに、加工ナレッジとして記憶する。この場合、関数更新部54には、第1NC加工プログラム111に関連付けられた加工ナレッジと、ステップST220で行動価値Qを定めた加工ナレッジと、ステップST220で行動価値Qを定めた反映加工ナレッジとが、各々の行動価値Qが異なる状態で、CADデータ100に対応する加工ナレッジとして記憶されることになる。これにより、意思決定部46は、CADデータ100に対応する加工ナレッジを決定する際に、作業者の知識および経験が適切に反映された最も適切な加工ナレッジとして、相対的に行動価値Qの高い加工ナレッジである反映加工ナレッジを決定することができる。 Further, the function updating unit 54 stores the action value Q defined for the machining knowledge associated with the first NC machining program 111, together with the machining knowledge, as the machining knowledge, in association with the machining knowledge. In this case, the function updating unit 54 has the machining knowledge associated with the first NC machining program 111, the machining knowledge in which the action value Q is determined in step ST220, and the reflected machining knowledge in which the action value Q is determined in step ST220. , With each action value Q being different, it is stored as processing knowledge corresponding to the CAD data 100. Thus, the decision making unit 46 has a relatively high action value Q as the most appropriate machining knowledge in which the knowledge and experience of the worker are appropriately reflected when determining the machining knowledge corresponding to the CAD data 100. Reflective processing knowledge, which is processing knowledge, can be determined.

なお、この場合は、ステップST220で行動価値Qを定めた第1NC加工プログラム111に関連付けられた加工ナレッジで、関数更新部54に記憶されており第1NC加工プログラム111の生成において参照された加工ナレッジを更新してもよい。 In this case, the machining knowledge associated with the first NC machining program 111 having the action value Q determined in step ST220 is stored in the function updating unit 54 and referred to in the generation of the first NC machining program 111. May be updated.

その後、新たに読み込まれたCADデータ100に対応してステップST110からステップST220の処理が繰り返し実行される。そして、新たに反映加工ナレッジが生成される際には、基となる加工ナレッジの管理番号、加工仕上がり形状の情報および素材の材質の情報、報酬rといった付随情報が引き継がれる。 After that, the processing from step ST110 to step ST220 is repeatedly executed corresponding to the newly read CAD data 100. Then, when a new reflection machining knowledge is generated, the management number of the base machining knowledge, information on the machining finish shape and information on the material of the material, and accompanying information such as the reward r are inherited.

なお、ステップST110からステップST220の処理が繰り返される場合に、意思決定部46で決定された反映加工ナレッジは、上述したステップST120における加工ナレッジに対応する。 In addition, when the processes of steps ST110 to ST220 are repeated, the reflected machining knowledge determined by the decision making unit 46 corresponds to the machining knowledge in step ST120 described above.

また、ステップST200およびステップST220の処理において、品質の高い反映加工ナレッジは行動価値Qが増大した状態で関数更新部54に記憶される。このため、ステップST210を省略することも可能である。 Further, in the processing of step ST200 and step ST220, high-quality reflected processing knowledge is stored in the function updating unit 54 in a state in which the action value Q is increased. Therefore, step ST210 can be omitted.

次に、NC加工プログラム生成部43におけるNC加工プログラム生成処理の詳細について図5を参照して詳細に説明する。図5は、本発明の実施の形態1にかかるNC加工プログラム生成装置40のNC加工プログラム生成部43におけるNC加工プログラム生成処理の手順の詳細を示すフローチャートである。図6は、本発明の実施の形態1におけるCADデータ100で表される加工仕上がり形状の立体モデルの一例を示す斜視図である。図7は、本発明の実施の形態1におけるCADデータ100で表される加工仕上がり形状を包含する素材形状の一例を示す斜視図である。図8は、本発明の実施の形態1におけるCADデータ100で表される加工仕上がり形状と素材形状とから生成された加工除去形状の一例を示す斜視図である。図9は、本発明の実施の形態1における素材形状S、加工形状から生成された旋削断面形状および座標値を示す図である。以下では、素材を回転させながら削る旋削加工に関するNC加工プログラムを作成する場合について説明する。 Next, details of the NC machining program generation processing in the NC machining program generation unit 43 will be described in detail with reference to FIG. FIG. 5 is a flowchart showing details of the procedure of the NC machining program generation processing in the NC machining program generation unit 43 of the NC machining program generation device 40 according to the first exemplary embodiment of the present invention. FIG. 6 is a perspective view showing an example of a three-dimensional model of a machined finish shape represented by CAD data 100 according to the first embodiment of the present invention. FIG. 7 is a perspective view showing an example of a material shape including the processed and finished shape represented by CAD data 100 according to the first embodiment of the present invention. FIG. 8 is a perspective view showing an example of a machining removal shape generated from the machining finish shape and the material shape represented by the CAD data 100 according to the first embodiment of the present invention. FIG. 9 is a diagram showing the material shape S, the lathe cross-sectional shape generated from the processed shape, and the coordinate values in the first embodiment of the present invention. In the following, a case will be described in which an NC machining program relating to lathe machining in which a material is rotated is machined.

NC加工プログラム生成処理では、ステップST310においてNC加工プログラム生成部43が、加工形状データ記憶部42に記憶されているCADデータ100を読み込み、図6に示すようにCADデータ100で表される3次元の加工仕上がり形状を生成して、プログラム座標系の加工原点であるプログラム原点に配置する。プログラム座標系においては、XYZ軸のうち、Z軸を、旋削加工を行う際の中心軸である旋削軸SGとする。 In the NC machining program generation process, in step ST310, the NC machining program generation unit 43 reads the CAD data 100 stored in the machining shape data storage unit 42, and three-dimensionally represented by the CAD data 100 as shown in FIG. The machining finish shape of is generated and placed at the program origin which is the machining origin of the program coordinate system. In the program coordinate system, the Z axis of the XYZ axes is the turning axis SG that is the central axis when performing turning.

NC加工プログラム生成部43は、加工仕上がり形状をプログラム原点に配置する際、加工仕上がり形状のうち、直径が最大となる円筒面の回転軸または円錐面の回転軸がZ軸に一致するように、加工仕上がり形状を移動および回転させて配置する。また、加工仕上がり形状のZ軸方向の端面がプログラム原点に一致するように移動する。すなわち、NC加工プログラム生成部43は、CADデータ100から旋削軸SGと回転中心軸を同一とする円柱面または円錐面を旋削端面として抽出する。したがって、NC加工プログラム生成部43は、CADデータ100から、旋削軸を回転中心軸とする3次元の加工仕上がり形状を生成する。 The NC machining program generation unit 43 arranges the machining finished shape at the program origin so that the rotation axis of the cylindrical surface or the conical surface having the maximum diameter in the machining finished shape coincides with the Z axis. Move and rotate the finished shape to place it. Further, the end surface of the finished shape in the Z-axis direction is moved so as to coincide with the program origin. That is, the NC machining program generation unit 43 extracts from the CAD data 100 a cylindrical surface or a conical surface having the turning axis SG and the center axis of rotation as the turning end surface. Therefore, the NC machining program generator 43 generates, from the CAD data 100, a three-dimensional machining finished shape with the turning axis as the rotation center axis.

次に、ステップST320においてNC加工プログラム生成部43は、図7に示すように、プログラム原点に配置された加工仕上がり形状を包含する3次元の円柱形状を生成する。そして、NC加工プログラム生成部43は、生成した円柱形状を素材形状として、加工仕上がり形状と同様にプログラム座標系に配置する。素材形状は、加工仕上がり形状を旋削加工により削り出す素材の形状である。すなわち、NC加工プログラム生成部43は、CADデータ100から生成した加工仕上がり形状を基に、3次元の素材形状を生成する。 Next, in step ST320, the NC machining program generation unit 43 generates a three-dimensional columnar shape including the machining finish shape arranged at the program origin, as shown in FIG. Then, the NC machining program generation unit 43 arranges the generated cylindrical shape as a material shape in the program coordinate system similarly to the machining finish shape. The material shape is the shape of the material that is machined from the finished shape by turning. That is, the NC machining program generator 43 generates a three-dimensional material shape based on the machining finish shape generated from the CAD data 100.

加工仕上がり形状を包含する円柱形状の寸法は、加工仕上がり形状におけるX軸方向、Y軸方向およびZ軸方向における各々の最大値と最小値とから求めることができる。ただし、素材形状は、旋削端面加工を行うため、加工仕上がり形状に合わせて、Z軸方向の寸法が加工仕上がり形状よりも2mmから3mmずつ大きい寸法とされる。また、素材形状のZ軸方向の端面は、プログラム原点から2mmから3mmだけ加工仕上がり形状から離間する方向にはみ出した位置に配置される。ここでは、素材形状は、素材外径を150mm、素材長さを120mm、素材材質をS45Cとする。 The dimension of the cylindrical shape including the machined finished shape can be obtained from the maximum value and the minimum value of each of the machined finished shape in the X-axis direction, the Y-axis direction and the Z-axis direction. However, since the turning end face processing is performed on the material shape, the dimension in the Z-axis direction is set to be 2 mm to 3 mm larger than the finished shape in accordance with the finished shape. Further, the end surface of the material shape in the Z-axis direction is arranged at a position protruding from the program origin by 2 to 3 mm in the direction away from the machined shape. Here, the material shape is such that the material outer diameter is 150 mm, the material length is 120 mm, and the material material is S45C.

次に、ステップST330においてNC加工プログラム生成部43は、図8に示すように、素材形状から旋削加工により除去する形状である加工除去形状を、加工仕上がり形状と素材形状とから生成する。図8においては、加工仕上がり形状を破線で示している。加工除去形状は、素材形状のソリッドモデルから加工仕上がり形状のソリッドモデルを引き去る差演算により求めることができる。 Next, in step ST330, as shown in FIG. 8, the NC machining program generator 43 generates a machining removal shape, which is a shape to be removed from the material shape by turning, from the machining finish shape and the material shape. In FIG. 8, the finished shape is shown by a broken line. The machining removal shape can be obtained by a difference calculation that subtracts the machining finish solid model from the material shape solid model.

次に、ステップST340において、NC加工プログラム生成部43は、図9に示すように、加工除去形状の断面形状である旋削断面形状tを生成する。旋削断面形状tは、図9に示すように、加工除去形状をXZ平面のうち+Xの領域のみに限定した+XZ平面に投影して得られる1/2旋削断面形状である。旋削断面形状tは、XZ平面からなる断面モデルと加工形状からなるソリッドモデルとの積演算により断面形状を求め、X≧0の領域として範囲を限定することにより、求めることができる。これにより、図9に示すように、旋削断面形状tである旋削断面形状t1および旋削断面形状t2が生成される。 Next, in step ST340, as shown in FIG. 9, the NC machining program generation unit 43 generates a lathe cross-sectional shape t that is the cross-sectional shape of the machining removal shape. As shown in FIG. 9, the turning cross-sectional shape t is a 1/2 turning cross-sectional shape obtained by projecting the machining removal shape onto the +XZ plane which is limited to the +X region of the XZ plane. The turning cross-sectional shape t can be obtained by obtaining the cross-sectional shape by the product operation of the cross-sectional model consisting of the XZ plane and the solid model consisting of the processed shape, and limiting the range as the region of X≧0. As a result, as shown in FIG. 9, the lathe turning sectional shape t1 and the lathe turning sectional shape t2 are generated.

次に、ステップST350においてNC加工プログラム生成部43が、CADデータ100に対応する加工ナレッジを、意思決定部46を介して関数更新部54から取得し、参照する。NC加工プログラム生成部43は、たとえば関数更新部54に記憶されている、上述した加工ナレッジA121、加工ナレッジB122および加工ナレッジC123を取得して参照する。 Next, in step ST350, the NC machining program generation unit 43 acquires the machining knowledge corresponding to the CAD data 100 from the function updating unit 54 via the decision making unit 46 and refers to it. The NC machining program generation unit 43 acquires and refers to the above-described machining knowledge A121, machining knowledge B122, and machining knowledge C123 stored in the function updating unit 54, for example.

NC加工プログラム生成部43は、たとえばCADデータ100と加工ナレッジとに共通に付与された管理番号をCADデータ100から取得して意思決定部46に送信する。これにより、意思決定部46は、管理番号を探索条件として、NC加工プログラム生成部43から指定された所望の加工ナレッジを探索することができる。 The NC machining program generation unit 43 acquires, for example, a management number commonly assigned to the CAD data 100 and machining knowledge from the CAD data 100, and transmits it to the decision making unit 46. As a result, the decision making unit 46 can search for a desired machining knowledge designated by the NC machining program generating unit 43, using the management number as a search condition.

ここで、旋削端面工程とは、素材端面の突き出し部を、旋削端面工具で削り落とす旋削端面加工を行う工程である。旋削ドリル工程とは、素材における半径方向の中心領域に旋削ドリルで中心軸に沿った穴をあける旋削ドリル加工を行う工程である。旋削棒材工程とは、旋削工具で丸棒素材の外周、内周、正面または背面を旋削する旋削棒材加工を行う工程である。旋削溝入れ工程とは、丸棒素材の外周、内周、正面または背面に、旋削溝入れ工具で溝加工を行う旋削溝入れ加工を行う工程である。端面取り代は、旋削端面加工での削り代である。 Here, the turning end face process is a process of performing a turning end face machining in which the protruding portion of the material end face is scraped off by a turning end face tool. The turning drilling step is a step of performing turning drilling in which a hole along the central axis is bored by a turning drill in a central region in the radial direction of the material. The turning bar material step is a step of performing a turning bar material process of turning an outer circumference, an inner circumference, a front surface or a back surface of a round bar material with a turning tool. The turning grooving step is a step of performing a turning grooving process in which the outer circumference, the inner circumference, the front surface or the back surface of the round bar material is grooved by a turning grooving tool. The end chamfering allowance is a cutting allowance in turning end face machining.

次に、ステップST360においてNC加工プログラム生成部43は、取得した加工ナレッジA121、加工ナレッジB122および加工ナレッジC123に従って加工除去形状の旋削断面形状tを複数の異なる加工工程毎に分割して、旋削加工形状を生成する。旋削加工形状は、複数の異なる加工工程により素材から加工仕上がり形状を削り出す場合の各加工工程における旋削断面形状tである。 Next, in step ST360, the NC machining program generation unit 43 divides the turning cross-sectional shape t of the machining removal shape into a plurality of different machining steps in accordance with the acquired machining knowledge A121, machining knowledge B122, and machining knowledge C123, and performs the turning machining. Generate a shape. The turning shape is a turning cross-sectional shape t in each processing step when a finished shape is cut out from a material by a plurality of different processing steps.

以下、旋削断面形状tの分割手順について具体的に説明する。図10は、本発明の実施の形態1にかかる旋削端面工程の旋削断面形状SH1を示す図である。図11は、本発明の実施の形態1にかかる旋削ドリル工程の旋削断面形状SH2を示す図である。図12は、本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状SH3を示す図である。図13は、本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状SH4を示す図である。 Hereinafter, the procedure for dividing the turning sectional shape t will be specifically described. FIG. 10: is a figure which shows the turning cross-sectional shape SH1 of the turning end surface process concerning Embodiment 1 of this invention. FIG. 11: is a figure which shows the turning cross-sectional shape SH2 of the turning drill process concerning Embodiment 1 of this invention. FIG. 12 is a diagram showing a lathe cross-sectional shape SH3 in the lathe-bar manufacturing process according to the first embodiment of the present invention. FIG. 13: is a figure which shows the turning cross-sectional shape SH4 of the turning bar material process concerning Embodiment 1 of this invention.

NC加工プログラム生成部43は、旋削断面形状t1から端面取り代:10mmの情報を取得する。そして、NC加工プログラム生成部43は、加工ナレッジA121を参照し、端面取り代が20mm以上でないことから旋削端面工程を先に行うと判定して、図10に示すように旋削断面形状t1から旋削端面工程の旋削断面形状SH1を分割する。 The NC machining program generation unit 43 acquires information on the end chamfering allowance: 10 mm from the turning cross-sectional shape t1. Then, the NC machining program generation unit 43 refers to the machining knowledge A121, determines that the turning end face process is performed first because the end chamfering margin is not 20 mm or more, and as illustrated in FIG. The turning cross-sectional shape SH1 in the end face process is divided.

次に、NC加工プログラム生成部43は、加工ナレッジA121を参照し、旋削端面工程の後に旋削ドリル工程を行うと判定して、図11に示すように旋削断面形状t1から旋削ドリル工程の旋削断面形状SH2を分割する。 Next, the NC machining program generation unit 43 refers to the machining knowledge A121, determines that the turning drill process is performed after the turning end face process, and determines from the turning cross-section shape t1 to the turning cross-section of the turning drill process as illustrated in FIG. 11. The shape SH2 is divided.

次に、NC加工プログラム生成部43は、図12に示すように旋削断面形状t1から旋削棒材工程の旋削断面形状SH3を分割する。次に、NC加工プログラム生成部43は、図13に示すように旋削断面形状t2を旋削棒材工程の旋削断面形状SH4として分割する。 Next, the NC machining program generation unit 43 divides the turning sectional shape SH3 of the turning bar material process from the turning sectional shape t1 as shown in FIG. Next, the NC machining program generation unit 43 divides the turning cross-sectional shape t2 into the turning cross-sectional shape SH4 of the turning bar material process as shown in FIG.

次に、ステップST370においてNC加工プログラム生成部43は、分割した加工形状である旋削断面形状に、加工ナレッジA121、加工ナレッジB122および加工ナレッジC123に従って旋削加工工程を割り当て、旋削加工工程を生成する。図14は、本発明の実施の形態1にかかる旋削端面工程の加工開始点と加工終了点との一例を示す図である。図15は、本発明の実施の形態1にかかる旋削ドリル工程の加工開始点と加工終了点との一例を示す図である。図16は、本発明の実施の形態1にかかる旋削棒材工程の切り込み点と加工開始点と加工終了点との一例を示す図である。図17は、本発明の実施の形態1にかかる旋削棒材工程の切り込み点と加工開始点と加工終了点との一例を示す図である。 Next, in step ST370, the NC machining program generation unit 43 allocates a lathe cross sectional shape, which is the divided machining shape, to a lathe machining step according to the machining knowledge A121, the machining knowledge B122, and the machining knowledge C123, and generates a lathe machining step. FIG. 14 is a diagram showing an example of processing start points and processing end points in the turning end face process according to the first exemplary embodiment of the present invention. FIG. 15 is a diagram showing an example of processing start points and processing end points in the turning drill process according to the first exemplary embodiment of the present invention. FIG. 16 is a diagram showing an example of a cutting point, a machining start point, and a machining end point in the turning bar material process according to the first embodiment of the present invention. FIG. 17 is a diagram showing an example of a cutting point, a machining start point, and a machining end point in the turning bar material process according to the first embodiment of the present invention.

NC加工プログラム生成部43は、旋削端面工程の旋削断面形状SH1から、図14に示すように旋削端面工程の加工開始点P1の座標値と加工終了点P2の座標値とを取得し、旋削端面工程である旋削端面工程LC1を生成する。 The NC machining program generation unit 43 acquires the coordinate value of the machining start point P1 and the coordinate value of the machining end point P2 of the turning end face process from the turning cross-sectional shape SH1 of the turning end face process, as shown in FIG. A turning end face process LC1 that is a process is generated.

次に、NC加工プログラム生成部43は、旋削ドリル工程の旋削断面形状SH2から、図15に示すように旋削ドリル加工で加工する孔の孔径と加工開始点P3の座標値と加工終了点P4の座標値とを取得し、旋削ドリル工程である旋削ドリル工程LC2を生成する。 Next, the NC machining program generation unit 43, from the lathe cross-sectional shape SH2 of the lathe drill process, as shown in FIG. 15, the hole diameter of the hole to be machined by lathe drilling, the coordinate value of the machining start point P3, and the machining end point P4. The coordinate value is acquired, and a turning drill process LC2, which is a turning drill process, is generated.

次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH3から、図16に示すように開放部形状の縦方向の長さ:30mmの情報と、開放部形状の横方向の長さ:30mmの情報とを取得する。そして、NC加工プログラム生成部43は、加工ナレッジB122を参照して、「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0」であることから、旋削棒材工程の加工部位を外径と判定する。次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH3から、旋削断面形状SH3の切り込み点P5の座標値と加工開始点P6の座標値と加工終了点P7の座標値とを取得し、加工部位が外径とされた旋削棒材工程である旋削棒材外径工程LC3を生成する。 Next, the NC machining program generation unit 43, based on the lathe cross-section shape SH3 in the lathe bar process, as shown in FIG. 16, information on the longitudinal length of the open portion shape: 30 mm and the horizontal direction of the open portion shape. Length: Information of 30 mm is acquired. Then, the NC machining program generation unit 43 refers to the machining knowledge B122, and “the length of the open portion shape in the horizontal direction/the length of the open portion shape in the vertical direction” is “1.0”. The machined part in the turning bar process is judged to be the outer diameter. Next, the NC machining program generation unit 43 calculates the coordinate value of the cutting point P5, the coordinate value of the machining start point P6, and the coordinate value of the machining end point P7 of the lathe sectional shape SH3 from the lathe sectional shape SH3 in the lathe bar process. Is obtained, and a turning rod outer diameter step LC3, which is a turning rod step in which the processed portion has an outer diameter, is generated.

次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH4から、図17に示すように旋削断面形状SH4の縦方向の長さ:10mmの情報、旋削断面形状SH4の横方向の長さ:20mmの情報を取得する。そして、NC加工プログラム生成部43は、加工ナレッジC123を参照して、旋削断面形状SH4の縦方向の長さが10mm以下であり、旋削断面形状SH4の横方向の長さが10mm以下ではないことから、旋削棒材工程を行うと判定する。 Next, the NC machining program generation unit 43, based on the turning cross-section shape SH4 in the turning bar material process, as shown in FIG. 17, the length of the turning cross-section shape SH4 in the vertical direction: 10 mm, the lateral direction of the turning cross-section shape SH4. Length: 20 mm of information is acquired. Then, the NC machining program generation unit 43 refers to the machining knowledge C123, and the turning cross-section shape SH4 has a length in the vertical direction of 10 mm or less, and the turning cross-section shape SH4 does not have a length in the lateral direction of 10 mm or less. Therefore, it is determined that the turning bar material process is performed.

次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH4から、開放部形状の縦方向長さ:10mmの情報、開放部形状の横方向長さ:20mmの情報を取得する。そして、NC加工プログラム生成部43は、加工ナレッジB122を参照して、「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「2.0」であり「1.0未満」でないことから、加工部位を外径と判定する。次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH4から、旋削断面形状SH4の切り込み点P8と加工開始点P9と加工終了点P10の座標値を取得して、加工部位が外径とされた旋削棒材工程である旋削棒材外径工程LC4を生成する。 Next, the NC machining program generation unit 43 acquires information on the longitudinal length of the open portion shape: 10 mm and the information on the lateral length of the open portion shape: 20 mm from the lathe cross-section shape SH4 in the lathe bar process. .. Then, the NC machining program generation unit 43 refers to the machining knowledge B122, and "the horizontal length of the open portion shape/the vertical length of the open portion shape" is "2.0" and "1. Since it is not "less than 0", the processed portion is determined to be the outer diameter. Next, the NC machining program generation unit 43 acquires the coordinate values of the cutting point P8, the machining start point P9, and the machining end point P10 of the lathe cross-section shape SH4 from the lathe cross-section shape SH4 in the lathe bar process, and the machining site Produces a turning rod outer diameter step LC4, which is a turning rod step with the outer diameter set to.

以下に、NC加工プログラム生成部43において生成された旋削加工工程の内容を示す。
・旋削端面工程LC1:加工開始点P1(75,−10)、加工終了点P2(0,0)
・旋削ドリル工程LC2:孔径30mm、加工開始点P3(0,0)、加工終了点P4(0,110)
・旋削棒材外径工程LC3:切り込み点P5(75,0)、加工開始点P6(45,0)、加工終了点P7(45,30)
・旋削棒材外径工程LC4:切り込み点P8(75,60)、加工開始点P9(65,60)、加工終了点P10(65,80)
The contents of the turning process generated by the NC machining program generator 43 are shown below.
-Turning end face process LC1: Processing start point P1 (75,-10), processing end point P2 (0,0)
-Turning drill process LC2: Hole diameter 30 mm, processing start point P3 (0,0), processing end point P4 (0,110)
-Lathe turning bar outer diameter process LC3: cutting point P5 (75, 0), processing start point P6 (45, 0), processing end point P7 (45, 30)
・Lathe bar outer diameter process LC4: Cutting point P8 (75, 60), processing start point P9 (65, 60), processing end point P10 (65, 80)

上述した処理が行われることにより、NC加工プログラム生成部43は、加工ナレッジA121、加工ナレッジB122、および加工ナレッジC123を参照して、素材から加工仕上がり形状を削り出すための複数の異なる旋削加工工程を自動で生成することができる。そして、作業者の知識および経験が反映された編集内容が反映および蓄積されている加工ナレッジを参照して旋削加工工程を自動で生成することにより、作業者自身がNC加工プログラムを作製した場合と同様の、作業者が所望する旋削加工工程を自動で生成することができる。 By performing the above-described processing, the NC machining program generation unit 43 refers to the machining knowledge A121, the machining knowledge B122, and the machining knowledge C123, and refers to a plurality of different lathe machining processes for machining a machining finish shape from a material. Can be generated automatically. Then, by automatically generating the turning process step by referring to the machining knowledge in which the edited contents reflecting the knowledge and experience of the worker are reflected and accumulated, the case where the operator himself creates the NC machining program A similar turning process step desired by an operator can be automatically generated.

そして、本実施の形態1にかかる機械学習装置50による上記学習行動は、NC加工プログラムが生成されるたびに継続的に行われる。したがって、本実施の形態1にかかるNC加工プログラム生成装置40では、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含むCADデータ100に対応する、NC加工プログラムの生成方法である加工ナレッジの自律的な学習が継続的に行われる。すなわち、機械学習装置50を備えたNC加工プログラム生成装置40は、NC加工プログラム生成部43で生成されたNC加工プログラムがNC加工プログラム編集部45で編集された編集内容に基づいて、作業者の知識および経験が反映された加工効率が良い加工ナレッジを継続的に、自律的に学習する。 Then, the learning action by the machine learning device 50 according to the first embodiment is continuously performed every time the NC machining program is generated. Therefore, the NC machining program generation device 40 according to the first embodiment is a machining method that is an NC machining program generation method corresponding to the CAD data 100 including the information on the machining finish shape of the machined product and the information on the material quality of the material. Knowledge is continuously learned autonomously. That is, the NC machining program generation device 40 including the machine learning device 50 uses the NC machining program generated by the NC machining program generation unit 43 to edit the NC machining program edited by the NC machining program editing unit 45. Continuously and autonomously learn machining knowledge that reflects knowledge and experience and that has high machining efficiency.

次に、状態観測部51が、第1NC加工プログラム111に対する編集内容を、第1NC加工プログラム111の生成において参照した加工ナレッジに反映して反映加工ナレッジを作成する反映加工ナレッジの生成処理の詳細について説明する。まず、作業者が入力した編集指示情報に従って、旋削端面工程LC1を旋削ドリル工程LC2の後に行うように第1NC加工プログラム111が編集された場合について説明する。状態観測部51は、NC加工プログラム編集部45から送信された第2NC加工プログラム112の旋削端面工程LC1の旋削断面形状SH1から端面取り代:10mmの情報を取得する。 Next, the details of the reflection machining knowledge generation process in which the state observation unit 51 creates the reflection machining knowledge by reflecting the editing content of the first NC machining program 111 on the machining knowledge referred to in the generation of the first NC machining program 111 explain. First, a case will be described in which the first NC machining program 111 is edited such that the turning end face process LC1 is performed after the turning drill process LC2 according to the editing instruction information input by the operator. The state observing unit 51 acquires information on the end chamfering allowance: 10 mm from the turning cross-sectional shape SH1 of the turning end face process LC1 of the second NC machining program 112 transmitted from the NC machining program editing unit 45.

ここで、加工ナレッジA121の条件とは異なり、端面取り代:10mmの条件において、旋削ドリル工程を先に行うように第1NC加工プログラム111が編集されて第2NC加工プログラム112が生成されている。そこで、状態観測部51は、第1NC加工プログラム111に対する編集内容を反映させて加工ナレッジA121を以下の条件に変更した反映加工ナレッジA131を生成する。 Here, unlike the condition of the machining knowledge A121, the first NC machining program 111 is edited to generate the second NC machining program 112 under the condition of the end chamfering allowance: 10 mm so that the turning drill process is performed first. Therefore, the state observing unit 51 generates the reflected machining knowledge A131 in which the machining knowledge A121 is changed to the following conditions by reflecting the editing content for the first NC machining program 111.

(反映加工ナレッジA131)
素材材質:S45C
加工順序:端面取り代が「10mm以上」である場合は旋削ドリルを先に行い、その後に旋削端面工程を行う。端面取り代が前記条件以外の場合は、旋削端面工程を先に行い、その後に旋削ドリル工程を行う。
(Reflective processing knowledge A131)
Material Material: S45C
Processing order: When the end chamfering allowance is "10 mm or more", the turning drill is performed first, and then the turning end face process is performed. When the edge chamfering margin is other than the above-mentioned conditions, the turning end face step is performed first, and then the turning drill step is performed.

次に、作業者が入力した編集指示情報に従って、旋削棒材外径工程LC3の加工部位を外径から正面に変更して旋削棒材外径工程LC3を旋削棒材正面工程LC31に変更するように第1NC加工プログラム111が編集された場合について説明する。状態観測部51は、NC加工プログラム編集部45から送信された第2NC加工プログラム112の旋削棒材外径工程LC3の旋削断面形状SH3から、開放部形状の縦方向の長さ:30mmの情報、開放部形状の横方向の長さ:30mmの情報を取得する。 Next, according to the editing instruction information input by the operator, the machining portion of the turning rod outer diameter process LC3 is changed from the outer diameter to the front face, and the turning rod outer diameter process LC3 is changed to the turning rod front face process LC31. The case where the first NC machining program 111 is edited will be described. The state observing unit 51, from the turning cross-section shape SH3 of the turning bar outer diameter process LC3 of the second NC machining program 112 transmitted from the NC machining program editing unit 45, the information of the length in the vertical direction of the open portion shape: 30 mm, Information of the lateral length of the open part shape: 30 mm is acquired.

ここで、加工ナレッジB122の条件とは異なり、「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0」の条件において、加工部位を正面に変更するように第1NC加工プログラム111が編集されて第2NC加工プログラム112が生成されている。そこで、状態観測部51は、第1NC加工プログラム111に対する編集内容を反映させて加工ナレッジB122を以下の条件に変更した反映加工ナレッジB132を生成する。 Here, unlike the condition of the machining knowledge B122, the machining site is changed to the front face under the condition that "the horizontal length of the open portion shape/the vertical length of the open portion shape" is "1.0". As described above, the first NC machining program 111 is edited to generate the second NC machining program 112. Therefore, the state observing unit 51 reflects the editing content of the first NC machining program 111 to generate the reflected machining knowledge B132 in which the machining knowledge B122 is changed to the following conditions.

(反映加工ナレッジB132)
素材材質:S45C
加工部位:「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0以下」の場合は加工部位を正面とする。「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0より大」の場合は加工部位を外径とする。
(Reflective processing knowledge B132)
Material Material: S45C
Processed part: When "the lateral length of the open part shape/the vertical length of the open part shape" is "1.0 or less", the processed part is the front side. When "the length of the open portion shape in the horizontal direction/the length of the open portion shape in the vertical direction" is "greater than 1.0", the processed portion is defined as the outer diameter.

次に、作業者が入力した編集指示情報に従って、旋削棒材外径工程LC4を旋削溝入れ工程LC41に変更するように第1NC加工プログラム111が編集された場合について説明する。状態観測部51は、NC加工プログラム編集部45から送信された第2NC加工プログラム112の旋削棒材外径工程LC4の旋削断面形状SH4から、旋削断面形状SH4の縦方向の長さ:10mmの情報、旋削断面形状SH4の横方向の長さ:20mmの情報を取得する。 Next, a case will be described in which the first NC machining program 111 is edited so as to change the turning rod outer diameter step LC4 to the turning grooving step LC41 according to the editing instruction information input by the operator. The state observing unit 51 transmits information from the turning cross-section shape SH4 of the turning bar outer diameter process LC4 of the second NC machining program 112 transmitted from the NC machining program editing unit 45 to the longitudinal length of the turning cross-section shape SH4: 10 mm. , Information on the lateral length of the turning cross-section shape SH4: 20 mm is acquired.

ここで、加工ナレッジC123の条件とは異なり、「旋削断面形状SH4の縦方向の長さが10mmであり、旋削断面形状SH4の横方向の長さが20mm」の条件において、旋削溝入れ工程LC41を行うように第1NC加工プログラム111が編集されて第2NC加工プログラム112が生成されている。そこで、状態観測部51は、第1NC加工プログラム111に対する編集内容を反映させて加工ナレッジC123を以下の条件に変更した反映加工ナレッジC133を生成する。 Here, unlike the condition of the machining knowledge C123, the turning grooving process LC41 is performed under the condition that "the longitudinal length of the turning cross sectional shape SH4 is 10 mm and the lateral length of the turning cross sectional shape SH4 is 20 mm". The first NC machining program 111 is edited so that the second NC machining program 112 is generated. Therefore, the state observing unit 51 generates the reflected machining knowledge C133 in which the machining knowledge C123 is changed to the following condition by reflecting the editing content for the first NC machining program 111.

(反映加工ナレッジC133)
素材材質:S45C
加工方法:旋削断面形状の縦方向の長さが「10mm以下」、且つ旋削断面形状の横方向の長さが「20mm以下」である場合は、旋削溝入れ工程を行う。旋削断面形状の縦方向の長さおよび横方向の長さが前記条件以外の場合は、旋削棒材工程を行う。
(Reflective processing knowledge C133)
Material Material: S45C
Machining method: When the length of the lathe cross-section shape in the vertical direction is "10 mm or less" and the length of the lathe cross-section shape in the lateral direction is "20 mm or less", a turning grooving step is performed. When the length in the vertical direction and the length in the horizontal direction of the turning cross-sectional shape are other than the above-mentioned conditions, the turning rod material step is performed.

次に、NC加工プログラム生成部43が反映加工ナレッジA131、反映加工ナレッジB132および反映加工ナレッジC133を参照してNC加工プログラムを生成する場合の旋削断面形状tの分割手順について具体的に説明する。図18は、本発明の実施の形態1にかかる旋削ドリル工程の旋削断面形状SH5を示す図である。図19は、本発明の実施の形態1にかかる旋削端面工程の旋削断面形状SH6を示す図である。図20は、本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状SH7を示す図である。図21は、本発明の実施の形態1にかかる旋削棒材工程の旋削断面形状SH8を示す図である。 Next, the division procedure of the turning cross-sectional shape t when the NC machining program generation unit 43 generates the NC machining program with reference to the reflected machining knowledge A131, the reflected machining knowledge B132, and the reflected machining knowledge C133 will be specifically described. FIG. 18 is a diagram showing a turning cross-sectional shape SH5 in the turning drill process according to the first embodiment of the present invention. FIG. 19 is a diagram showing a lathe cross-sectional shape SH6 in the lathe end face process according to the first embodiment of the present invention. FIG. 20 is a diagram showing a turning cross-sectional shape SH7 in the turning rod material step according to the first embodiment of the present invention. FIG. 21 is a diagram showing a lathe cross-sectional shape SH8 in the lathe-bar manufacturing process according to the first embodiment of the present invention.

NC加工プログラム生成部43は、素材形状から素材長さ:120mmの情報および素材外径:150mmの情報を取得し、旋削断面形状t1から端面取り代:10mmの情報を取得する。そして、NC加工プログラム生成部43は、反映加工ナレッジA131を参照し、端面取り代が10mm以上であることから旋削ドリル工程を先に行うと判定して、図18に示すように旋削断面形状t1から旋削ドリル工程の旋削断面形状SH5を分割する。 The NC machining program generation unit 43 acquires information on the material length: 120 mm and information on the material outer diameter: 150 mm from the material shape, and acquires information on the end chamfering margin: 10 mm from the turning cross-sectional shape t1. Then, the NC machining program generation unit 43 refers to the reflected machining knowledge A131, determines that the turning drill step is to be performed first because the end chamfering margin is 10 mm or more, and as shown in FIG. Then, the turning cross-sectional shape SH5 in the turning drilling process is divided.

次に、NC加工プログラム生成部43は、反映加工ナレッジA131を参照し、旋削ドリル工程の後に旋削端面工程を行うと判定して、図19に示すように旋削断面形状t1から旋削端面工程の旋削断面形状SH6を分割する。 Next, the NC machining program generation unit 43 refers to the reflected machining knowledge A131, determines that the turning end face process is to be performed after the turning drill process, and performs turning from the turning sectional shape t1 to the turning end face process as shown in FIG. The sectional shape SH6 is divided.

次に、NC加工プログラム生成部43は、図20に示すように旋削断面形状t1から旋削棒材工程の旋削断面形状SH7を分割する。次に、NC加工プログラム生成部43は、図21に示すように旋削断面形状t2を旋削棒材工程の旋削断面形状SH8として分割する。 Next, the NC machining program generation unit 43 divides the lathe sectional shape SH7 in the lathe bar process from the lathe sectional shape t1 as shown in FIG. Next, the NC machining program generation unit 43 divides the turning cross-sectional shape t2 into the turning cross-sectional shape SH8 of the turning rod material process as shown in FIG.

次に、NC加工プログラム生成部43が反映加工ナレッジA131、反映加工ナレッジB132および反映加工ナレッジC133を参照してNC加工プログラムを生成する場合の旋削加工工程の割り当て手順について具体的に説明する。図22は、本発明の実施の形態1にかかる旋削ドリル工程の加工開始点と加工終了点との一例を示す図である。図23は、本発明の実施の形態1にかかる旋削端面工程の加工開始点と加工終了点との一例を示す図である。図24は、本発明の実施の形態1にかかる旋削棒材正面工程の切り込み点と加工開始点と加工終了点との一例を示す図である。図25は、本発明の実施の形態1にかかる旋削棒材溝入れ工程の切り込み点と加工開始点と加工終了点との一例を示す図である。 Next, a procedure for assigning a turning machining step when the NC machining program generating unit 43 generates an NC machining program with reference to the reflected machining knowledge A131, the reflected machining knowledge B132, and the reflected machining knowledge C133 will be specifically described. FIG. 22 is a diagram showing an example of processing start points and processing end points in the turning drill process according to the first exemplary embodiment of the present invention. FIG. 23 is a diagram showing an example of a machining start point and a machining end point in the turning end face process according to the first embodiment of the present invention. FIG. 24 is a diagram showing an example of a cutting point, a processing start point, and a processing end point in the turning bar front surface process according to the first embodiment of the present invention. FIG. 25 is a diagram showing an example of a cutting point, a machining start point, and a machining end point in the turning rod material grooving step according to the first exemplary embodiment of the present invention.

NC加工プログラム生成部43は、旋削ドリル工程の旋削断面形状SH5から、図22に示すように旋削ドリル加工で加工する孔の孔径と加工開始点P11の座標値と加工終了点P12の座標値とを取得し、旋削ドリル工程である旋削ドリル工程LC11を生成する。 The NC machining program generation unit 43 calculates, from the turning cross-sectional shape SH5 of the turning drilling process, the hole diameter of the hole to be machined by the turning drilling, the coordinate value of the machining start point P11, and the coordinate value of the machining end point P12 as shown in FIG. And a turning drill process LC11, which is a turning drill process, is generated.

次に、NC加工プログラム生成部43は、旋削端面工程の旋削断面形状SH6から、図23に示すように旋削端面工程の加工開始点P13の座標値と加工終了点P14の座標値とを取得し、旋削端面工程である旋削端面工程LC12を生成する。 Next, the NC machining program generation unit 43 acquires the coordinate values of the machining start point P13 and the machining end point P14 of the turning end face process from the turning cross-sectional shape SH6 of the turning end face process, as shown in FIG. , A turning end face process LC12, which is a turning end face process.

次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH7から、図24に示すように開放部形状の縦方向の長さ:30mmの情報と、開放部形状の横方向の長さ:30mmの情報とを取得する。そして、NC加工プログラム生成部43は、反映加工ナレッジB132を参照して、「開放部形状の横方向の長さ÷開放部形状の縦方向の長さ」が「1.0」であり「1.0以下」であることから、旋削棒材工程の加工部位を正面と判定する。次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH7から、旋削断面形状SH7の切り込み点P15の座標値と加工開始点P16の座標値と加工終了点P17の座標値とを取得し、加工部位が正面とされた旋削棒材工程である旋削棒材正面工程LC3を生成する。 Next, the NC machining program generation unit 43, based on the lathe cross-section shape SH7 in the lathe bar process, as shown in FIG. 24, information on the longitudinal length of the open portion shape: 30 mm and the horizontal direction of the open portion shape. Length: Information of 30 mm is acquired. Then, the NC machining program generation unit 43 refers to the reflected machining knowledge B132, and "the horizontal length of the open portion shape/the vertical length of the open portion shape" is "1.0" and "1". Since it is "0 or less", the processed portion in the turning bar material process is determined to be the front surface. Next, the NC machining program generation unit 43 calculates the coordinate value of the cutting point P15, the coordinate value of the machining start point P16, and the coordinate value of the machining end point P17 of the turning sectional shape SH7 from the turning sectional shape SH7 of the turning bar material process. And a turning bar front face process LC3, which is a turning bar rod process in which the processed portion is the front face, is generated.

次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH8から、図25に示すように旋削断面形状SH8の縦方向の長さ:10mmの情報、旋削断面形状SH8の横方向の長さ:20mmの情報を取得する。そして、NC加工プログラム生成部43は、反映加工ナレッジC133を参照して、旋削断面形状SH4の縦方向の長さが10mm以下であり、かつ旋削断面形状SH4の横方向の長さが20mm以下であることから、旋削溝入れ工程を行うと判定する。 Next, the NC machining program generation unit 43, based on the turning cross-section shape SH8 of the turning bar material process, as shown in FIG. 25, the length of the turning cross-section shape SH8 in the vertical direction: 10 mm, the lateral direction of the turning cross-section shape SH8. Length: 20 mm of information is acquired. Then, the NC machining program generation unit 43 refers to the reflected machining knowledge C133, and the turning cross-sectional shape SH4 has a length of 10 mm or less in the vertical direction and the latitudinal cross-sectional shape SH4 has a length of 20 mm or less in the lateral direction. Therefore, it is determined that the turning grooving process is performed.

次に、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH8から、開放部形状の縦方向長さ:10mmの情報、開放部形状の横方向長さ:20mmの情報を取得する。NC加工プログラム生成部43は、開放部形状の縦方向長さ:10mmの情報から溝深さ:10mmの情報を取得し、開放部形状の横方向長さ:20mmの情報から溝幅:20mmの情報を取得する。そして、NC加工プログラム生成部43は、旋削棒材工程の旋削断面形状SH8から、加工開始点P18の座標値を取得して、旋削溝入れ工程LC14を生成する。 Next, the NC machining program generation unit 43 acquires information on the longitudinal length of the open portion shape: 10 mm and the information on the lateral length of the open portion shape: 20 mm from the lathe cross-section shape SH8 in the lathe bar process. .. The NC machining program generation unit 43 obtains the information of the groove depth: 10 mm from the information of the longitudinal length of the open portion shape: 10 mm, and the information of the lateral length of the open portion shape: 20 mm, the groove width: 20 mm. Get information. Then, the NC machining program generation unit 43 acquires the coordinate value of the machining start point P18 from the lathe cross sectional shape SH8 of the lathe bar process, and generates the lathe grooving process LC14.

以下に、反映加工ナレッジA131、反映加工ナレッジB132および反映加工ナレッジC133を参照してNC加工プログラム生成部43において生成された旋削加工工程の内容を示す。
・旋削ドリル工程LC11:孔径30mm、加工開始点P11(0,−10)、加工終了点P12(0,110)
・旋削端面工程LC12:加工開始点P13(75,−10)、加工終了点P14(15,0)
・旋削棒材正面工程LC13:切り込み点P15(75,0)、加工開始点P16(75,30)、加工終了点P17(45,30)
・旋削溝入れ工程LC14:溝幅20mm、溝深さ10mm、加工開始点P18(75,60)
The contents of the turning process generated by the NC machining program generation unit 43 with reference to the reflected machining knowledge A131, the reflected machining knowledge B132, and the reflected machining knowledge C133 are shown below.
-Turning drill process LC11: Hole diameter 30 mm, processing start point P11 (0,-10), processing end point P12 (0,110)
-Turning end face process LC12: processing start point P13 (75,-10), processing end point P14 (15,0)
-Lathe turning bar front process LC13: cutting point P15 (75,0), processing start point P16 (75,30), processing end point P17 (45,30)
• Turning grooving process LC14: groove width 20 mm, groove depth 10 mm, processing start point P18 (75, 60)

上述した処理が行われることにより、NC加工プログラム生成部43は、反映加工ナレッジA131、反映加工ナレッジB132および反映加工ナレッジC133を参照して、素材から加工仕上がり形状を削り出すための複数の異なる旋削加工工程を自動で生成することができる。そして、作業者の知識および経験が反映された編集内容が反映および蓄積されている反映加工ナレッジを参照して旋削加工工程を自動で生成することにより、作業者自身がNC加工プログラムを作製した場合と同様の、作業者が所望する旋削加工工程を自動で生成することができる。 By performing the above-described processing, the NC machining program generation unit 43 refers to the reflected machining knowledge A131, the reflected machining knowledge B132, and the reflected machining knowledge C133 to refer to a plurality of different turnings for cutting a machining finish shape from a material. Processing steps can be automatically generated. In the case where the worker himself/herself creates the NC machining program by automatically generating the turning machining process by referring to the reflected machining knowledge in which the edited contents reflecting the knowledge and experience of the worker are reflected and accumulated. A turning processing step desired by the operator, which is similar to, can be automatically generated.

意思決定部46は、機械学習装置50が学習した結果を利用して、NC加工プログラム生成部43からの要求に対応する加工ナレッジまたは反映加工ナレッジを決定する。ところで、いったんNC加工プログラムが生成された後に、NC加工プログラム生成部43でNC加工プログラムを編集することがある。本実施の形態にかかる機械学習装置50は、反映加工ナレッジを既に学習しているので、意思決定部46は、NC加工プログラム生成部43からの要求に対応する最も適切な反映加工ナレッジを、関数更新部54に記憶されている加工ナレッジから必要に応じて決定することができる。 The decision making unit 46 uses the result learned by the machine learning device 50 to decide the machining knowledge or the reflected machining knowledge corresponding to the request from the NC machining program generating unit 43. By the way, the NC machining program may be edited by the NC machining program generation unit 43 after the NC machining program is generated once. Since the machine learning device 50 according to the present embodiment has already learned the reflected machining knowledge, the decision making unit 46 determines the most appropriate reflected machining knowledge corresponding to the request from the NC machining program generation unit 43 as a function. It can be determined as necessary from the processing knowledge stored in the updating unit 54.

さらに、機械学習装置50は、素材の材質とCADデータ100と加工ナレッジとの関連性を学習することができる。したがって、素材の材質とCADデータ100とに起因してNC加工プログラムを編集することが推測される場合には、意思決定部46が決定する加工ナレッジまたは反映加工ナレッジを切り替えるように構成されてもよい。 Further, the machine learning device 50 can learn the relationship between the material, the CAD data 100, and the processing knowledge. Therefore, when it is estimated that the NC machining program is edited due to the material of the material and the CAD data 100, the machining knowledge or the reflected machining knowledge determined by the decision making unit 46 may be switched. Good.

なお、反映加工ナレッジは、CADデータ100自体を関連付けて記憶されてもよい。たとえば、CADデータ100が、反映加工ナレッジA131に関連付けられて、加工ナレッジA121とともに関数更新部54に記憶される。 The reflection processing knowledge may be stored in association with the CAD data 100 itself. For example, the CAD data 100 is associated with the reflected processing knowledge A131 and stored in the function updating unit 54 together with the processing knowledge A121.

また、反映加工ナレッジは、CADデータ100に付随する情報を関連付けて記憶させてもよい。たとえば、CADデータ100に付随する情報が、反映加工ナレッジA131に関連付けられて、反映加工ナレッジA131とともに記憶される。CADデータ100に付随する情報の例は、CADデータの画像、CADデータの一部などである。なお、CADデータ100に付随する情報は、切削加工品の加工仕上がり形状の情報と被加工物の材質の情報との組み合わせに付随する情報、と換言できる。 Further, the reflection processing knowledge may be stored by associating information associated with the CAD data 100. For example, the information associated with the CAD data 100 is associated with the reflection processing knowledge A131 and stored together with the reflection processing knowledge A131. Examples of information associated with the CAD data 100 are an image of CAD data, a part of CAD data, and the like. The information associated with the CAD data 100 can be rephrased as the information associated with the combination of the information on the finished shape of the machined product and the information on the material of the workpiece.

これにより、意思決定部46は、関数更新部54に記憶されている複数の加工ナレッジから、CADデータ100またはCADデータ100に付随する情報を探索条件として、所望の反映加工ナレッジを探索して取得することが可能となる。 As a result, the decision making unit 46 searches for and obtains the desired reflected machining knowledge from the plurality of machining knowledge stored in the function updating unit 54, using the CAD data 100 or information associated with the CAD data 100 as a search condition. It becomes possible to do.

また、加工ナレッジおよび反映加工ナレッジは、NC加工プログラムが実行されることにより制御されるNC工作機械毎に分けて記憶されてもよい。複数台のNC工作機械が使用される場合には、たとえば異なる機種のNC工作機械が使用されている、同じ機種のNC工作機械が使用されていてもNC工作機械毎に異なるオプション機能が追加されているなどの理由により、NC工作機械毎に機能が異なることが多い。この場合には、加工ナレッジにもNC工作機械毎に適した条件が存在する。 Further, the machining knowledge and the reflected machining knowledge may be stored separately for each NC machine tool controlled by executing the NC machining program. When a plurality of NC machine tools are used, for example, NC machine tools of different models are used, even if NC machine tools of the same model are used, different optional functions are added for each NC machine tool. The function often differs for each NC machine tool due to reasons such as the fact that the NC machine tool is used. In this case, the machining knowledge also has a condition suitable for each NC machine tool.

このため、NC工作機械毎に分けて加工ナレッジおよび反映加工ナレッジを記憶することで、NC工作機械毎に適した作業者の知識および経験が反映された編集内容が反映加工ナレッジに反映されて蓄積される。そして、NC加工プログラム生成部43が、NC工作機械毎に分けて管理された加工ナレッジまたは反映加工ナレッジを参照してNC加工プログラムを生成することにより、作業者自身がNC加工プログラムを作製した場合と同様の、作業者が所望するNC工作機械毎に適したNC加工プログラムを迅速に自動生成することが可能である。 Therefore, by storing the machining knowledge and the reflected machining knowledge separately for each NC machine tool, the edited contents reflecting the knowledge and experience of the operator suitable for each NC machine tool are reflected and accumulated in the reflected machining knowledge. To be done. When the NC machining program generation unit 43 generates the NC machining program by referring to the machining knowledge or the reflected machining knowledge managed separately for each NC machine tool, and the operator himself creates the NC machining program. Similarly to the above, it is possible to quickly and automatically generate an NC machining program suitable for each NC machine tool desired by the operator.

また、加工ナレッジおよび反映加工ナレッジをネットワークサーバー上に設けた記憶部に記憶させる構成とすることも可能である。 It is also possible to store the processing knowledge and the reflected processing knowledge in a storage unit provided on the network server.

本実施の形態1かかる機械学習装置50の変形例として、機械学習装置50は、ニューラルネットワークモデルに従って機械学習を実行してもよい。図26は、本発明の実施の形態1にかかる機械学習装置50が従うニューラルネットワークモデルの一例を示す模式図である。ニューラルネットワークは、たとえばl個の入力ニューロンを含む入力層と、m個のニューロンを含む中間層と、n個の出力ニューロンを含む出力層と、から構成される。図26では、4個の入力ニューロンを含む入力層と、5個のニューロンを含む中間層と、1個の出力ニューロンを含む出力層と、から構成されるニューラルネットワークモデルの例を示している。なお、図26において、中間層は、1層のみ示されているものの、2層以上の中間層が設けられてもよい。 As a modification of the machine learning device 50 according to the first embodiment, the machine learning device 50 may execute machine learning according to a neural network model. FIG. 26 is a schematic diagram showing an example of a neural network model that the machine learning device 50 according to the first exemplary embodiment of the present invention follows. The neural network is composed of, for example, an input layer including l input neurons, an intermediate layer including m neurons, and an output layer including n output neurons. FIG. 26 shows an example of a neural network model including an input layer including four input neurons, an intermediate layer including five neurons, and an output layer including one output neuron. Although only one intermediate layer is shown in FIG. 26, two or more intermediate layers may be provided.

ニューラルネットワークは人間の成功体験又は失敗体験に基づいて最適な行動を感覚的に学習するように、状態変数と環境変化との関係性を学習する。ニューラルネットワークは、状態観測部51によって観測される状態変数に基づいて作成されるデータセットに従って状態変数と環境変化との関係性を学習する。すなわち、ニューラルネットワークは、いわゆる教師あり学習によって、状態変数と環境変化との関係性を学習する。この場合、機械学習装置50は、ニューラルネットワークの入力層に入力される加工形状データと、NC加工プログラムの生成経緯に応答して、出力層が、加工形状データに対応する加工ナレッジであって、作業者の知識および経験がより適切に反映された加工ナレッジを出力する。そして、意思決定部46は、最適なNC加工プログラム生成方法を決定するように機能する。すなわち、機械学習装置50は、ニューラルネットワークモデルに従った場合でも、加工形状データとNC加工プログラムの生成方法と第1NC加工プログラム111に対する編集内容との関係性を学習して、NC加工プログラムの生成方法を学習することが可能である。 Neural networks learn the relationship between state variables and environmental changes so that optimal behavior is intuitively learned based on human success or failure experiences. The neural network learns the relationship between the state variable and the environmental change according to the data set created based on the state variable observed by the state observation unit 51. That is, the neural network learns the relationship between state variables and environmental changes by so-called supervised learning. In this case, in the machine learning device 50, in response to the machining shape data input to the input layer of the neural network and the generation history of the NC machining program, the output layer is the machining knowledge corresponding to the machining shape data, Outputs processing knowledge that better reflects the knowledge and experience of operators. Then, the decision making unit 46 functions to decide the optimum NC machining program generation method. That is, the machine learning device 50 learns the relationship between the machining shape data, the NC machining program generation method, and the edit content of the first NC machining program 111 even when the neural network model is used, and generates the NC machining program. It is possible to learn how.

なお、上記においては、機械学習装置50が強化学習またはニューラルネットワークを利用して機械学習する実施の形態について説明したが、機械学習装置50は、他の公知の方法、例えば遺伝的プログラミング、機能論理プログラミング、サポートベクターマシンなどに従って機械学習を実行してもよい。 In the above description, the embodiment in which the machine learning device 50 performs machine learning using reinforcement learning or a neural network has been described. However, the machine learning device 50 can be used in another known method such as genetic programming or functional logic. Machine learning may be performed according to programming, support vector machines, etc.

また、学習部52の学習の一実施の形態として、学習部52が、他の数値制御装置で使用されるNC加工プログラムに適用される加工ナレッジを学習することも可能である。すなわち、学習部52は、ある加工形状データについて、他の数値制御装置に対して生成されるNC加工プログラムの生成に用いられる加工ナレッジおよびNC加工プログラムに対する編集内容に基づいて、他の数値制御装置で使用されるNC加工プログラムに適用される加工ナレッジを学習するように構成されてもよい。学習部52は、同一の現場で稼働する他の数値制御装置で使用されるNC加工プログラムに適用される加工ナレッジを学習してもよく、異なる現場で独立して稼働する他の数値制御装置で使用されるNC加工プログラムに適用される加工ナレッジを学習してもよい。 Further, as an embodiment of the learning of the learning unit 52, the learning unit 52 can learn the machining knowledge applied to the NC machining program used in another numerical control device. That is, the learning unit 52, based on the machining knowledge used to generate the NC machining program generated for another numerical control device, and the content of the editing for the NC machining program, with respect to the certain machining shape data, the learning unit 52 determines another numerical control device. May be configured to learn machining knowledge applied to the NC machining program used in. The learning unit 52 may learn the machining knowledge applied to the NC machining program used in another numerical control device that operates at the same site, and may use another numerical control device that operates independently at a different site. You may learn the processing knowledge applied to the NC processing program used.

図27は、本発明の実施の形態1にかかるNC加工プログラム生成装置40のハードウェア構成を示す図である。図27に示したハードウェアは、演算処理を行うプロセッサ201と、プロセッサ201がワークエリアに用いるメモリ202と、数値制御装置またはプログラム変換装置として動作するためのプログラムを記憶する記憶装置203と、作業者との間の入力インタフェースである入力装置204と、作業者に情報を表示する表示装置205と、被制御機器または他の数値制御装置、その他の各種装置との通信機能を有する通信装置206と、を備える。プロセッサ201、メモリ202、記憶装置203、入力装置204、表示装置205および通信装置206はデータバス207で接続されている。ここで、プロセッサ201は、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、CPU(Central Processing Unit)、またはDSP(Digital Signal Processor)などであってもよい。また、メモリ202は、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、EPROM(Erasable Programmable ROM)、またはEEPROM(登録商標)(Electrically EPROM)などの、不揮発性または揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、またはDVD(Digital Versatile Disc)などが該当する。 FIG. 27 is a diagram showing a hardware configuration of the NC machining program generation device 40 according to the first exemplary embodiment of the present invention. The hardware shown in FIG. 27 includes a processor 201 that performs arithmetic processing, a memory 202 used by the processor 201 as a work area, a storage device 203 that stores a program for operating as a numerical control device or a program conversion device, and work. An input device 204 which is an input interface with a worker, a display device 205 for displaying information to an operator, a communication device 206 having a communication function with a controlled device or another numerical control device, and other various devices. , Is provided. The processor 201, memory 202, storage device 203, input device 204, display device 205, and communication device 206 are connected by a data bus 207. Here, the processor 201 may be a processing device, a computing device, a microprocessor, a microcomputer, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or the like. The memory 202 is a nonvolatile or volatile semiconductor such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), or an EEPROM (registered trademark) (Electrically EPROM). It corresponds to a memory, a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD (Digital Versatile Disc), or the like.

NC加工プログラム生成部43は、例えば、図27に示すメモリ202に記憶されたプログラムをプロセッサ201が実行することにより、実現される。また、複数のプロセッサおよび複数のメモリが連携して上記機能を実現してもよい。また、NC加工プログラム生成部43の機能のうちの一部を電子回路として実装し、他の部分をプロセッサ201およびメモリ202を用いて実現するようにしてもよい。 The NC machining program generation unit 43 is realized by the processor 201 executing the program stored in the memory 202 illustrated in FIG. 27, for example. Further, a plurality of processors and a plurality of memories may cooperate to realize the above function. Further, some of the functions of the NC processing program generation unit 43 may be mounted as an electronic circuit, and the other portions may be realized using the processor 201 and the memory 202.

また、加工形状データ入力部41とNC加工プログラム編集部45と意思決定部46と状態観測部51と報酬計算部53と関数更新部54とを、同様にメモリ202に記憶されたプログラムをプロセッサ201が実行することにより、実現されるように構成してもよい。また、複数のプロセッサおよび複数のメモリが連携して上記機能を実現してもよい。また、加工形状データ入力部41とNC加工プログラム編集部45と意思決定部46と状態観測部51と報酬計算部53と関数更新部54との機能のうちの一部を電子回路として実装し、他の部分をプロセッサ201およびメモリ202を用いて実現するようにしてもよい。また、加工形状データ入力部41とNC加工プログラム編集部45と意思決定部46と状態観測部51と報酬計算部53と関数更新部54との機能を実現するためのプロセッサおよびメモリは、NC加工プログラム生成部43を実現するプロセッサおよびメモリと同一であってもよいし、別のプロセッサおよびメモリであってもよい。 In addition, the machining shape data input unit 41, the NC machining program editing unit 45, the decision making unit 46, the state observing unit 51, the reward calculating unit 53, and the function updating unit 54, and the program stored in the memory 202 in the processor 201. May be realized by executing. Further, a plurality of processors and a plurality of memories may cooperate to realize the above function. Further, some of the functions of the machining shape data input unit 41, the NC machining program editing unit 45, the decision making unit 46, the state observing unit 51, the reward calculating unit 53, and the function updating unit 54 are implemented as an electronic circuit, Other parts may be realized using the processor 201 and the memory 202. Further, the processor and the memory for realizing the functions of the machining shape data input unit 41, the NC machining program editing unit 45, the decision making unit 46, the state observing unit 51, the reward calculating unit 53, and the function updating unit 54 are NC machining. It may be the same as the processor and memory that implement the program generation unit 43, or may be a different processor and memory.

上述した本実施の形態1にかかるNC加工プログラム生成装置40は、加工形状データであるCADデータ100を基にして、作業者の知識および経験が反映された編集内容が反映および蓄積されている加工ナレッジを参照して旋削加工工程を自動で生成することにより、作業者自身がNC加工プログラムを作製した場合と同様の、作業者が所望する旋削加工工程を自動で生成することができる。 The NC machining program generation device 40 according to the first embodiment described above is based on the CAD data 100, which is machining shape data, and the machining contents in which the knowledge and experience of the operator are reflected and accumulated. By automatically generating the turning process with reference to the knowledge, it is possible to automatically generate the turning process desired by the operator, which is the same as when the operator himself creates the NC processing program.

また、本実施の形態1にかかる機械学習装置50を備えたNC加工プログラム生成装置40では、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含むCADデータ100に対応する、NC加工プログラムの生成方法である加工ナレッジを自律的に学習する。すなわち、機械学習装置50を備えたNC加工プログラム生成装置40は、NC加工プログラム生成部43で生成されたNC加工プログラムがNC加工プログラム編集部45で編集された編集内容に基づいて、作業者の知識および経験が反映された加工効率が良い加工ナレッジを自律的に学習する。これにより、意思決定部46は、CADデータ100が再度、NC加工プログラム生成装置40に入力された際に、関数更新部54に記憶されている加工ナレッジの中から、CADデータ100に対応する、行動価値Qが最も高く加工効率が最も良い加工ナレッジを学習結果に基づいて決定することが可能である。 Further, in the NC machining program generation device 40 including the machine learning device 50 according to the first embodiment, the NC machining corresponding to the CAD data 100 including the information on the machining finish shape of the machined product and the information on the material quality of the material. Autonomously learn machining knowledge, which is a method of program generation. That is, the NC machining program generation device 40 including the machine learning device 50 uses the NC machining program generated by the NC machining program generation unit 43 to edit the NC machining program edited by the NC machining program editing unit 45. Autonomously learn machining knowledge with high machining efficiency that reflects knowledge and experience. Thereby, the decision making unit 46 corresponds to the CAD data 100 from the machining knowledge stored in the function updating unit 54 when the CAD data 100 is input again to the NC machining program generating device 40. It is possible to determine the processing knowledge having the highest action value Q and the highest processing efficiency based on the learning result.

したがって、本実施の形態1にかかるNC加工プログラム生成装置40では、熟練者の知識またはノウハウの蓄積が無くても、作業者が所望する旋削加工工程に近い、加工効率が良く高品質なNC加工プログラムの自動生成が可能になる。そして、作業者が試行錯誤してNC加工プログラムを生成する必要が無いので、NC加工プログラム作成の作業効率が向上する。これにより、本実施の形態1にかかるNC加工プログラム生成装置40では、NC加工プログラムの自動生成にかかる時間の短縮効果、および被加工物の加工時間の短縮効果が得られる。 Therefore, in the NC machining program generation device 40 according to the first embodiment, even if the knowledge or know-how of the expert is not accumulated, the NC machining is close to the turning process desired by the operator and has high machining efficiency and high quality. Allows automatic generation of programs. Further, since it is not necessary for the worker to generate the NC machining program by trial and error, the work efficiency of creating the NC machining program is improved. As a result, the NC machining program generation device 40 according to the first embodiment can obtain the effect of reducing the time required for automatically generating the NC machining program and the effect of reducing the machining time of the workpiece.

また、本実施の形態1にかかるNC加工プログラム生成装置40は、ユーザのNC加工プログラム編集内容を学習して加工ナレッジに反映するので、次のNCプログロム生成時にユーザのNC加工プログラム編集作業を減らすことができる。 Further, since the NC machining program generation device 40 according to the first embodiment learns the NC machining program editing content of the user and reflects it in the machining knowledge, the NC machining program editing work of the user is reduced when the next NC program is generated. be able to.

以上、本発明の種々の実施の形態について説明したが、当業者であれば、他の実施の形態によっても本発明の意図する作用効果を実現できることを認識するであろう。特に、本発明の範囲を逸脱することなく、前述した実施の形態1の構成要素を削除または置換することができるし、或いは公知の手段をさらに付加することができる。また、本明細書において明示的または暗示的に開示される実施の形態の特徴を任意に組み合せることによっても本発明を実施できることは当業者に自明である。すなわち、以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 Although various embodiments of the present invention have been described above, those skilled in the art will recognize that the intended effects of the present invention can be realized by other embodiments. In particular, the constituent elements of the first embodiment described above can be deleted or replaced without departing from the scope of the present invention, or known means can be further added. Further, it is obvious to those skilled in the art that the present invention can be implemented by arbitrarily combining the features of the embodiments explicitly or implicitly disclosed in this specification. That is, the configurations shown in the above embodiments are examples of the content of the present invention, and can be combined with another known technique, and the configurations are within the scope not departing from the gist of the present invention. It is also possible to omit or change a part of.

1 数値制御装置、10 対話操作処理部、20 表示部、30 指示入力部、40 NC加工プログラム生成装置、41 加工形状データ入力部、42 加工形状データ記憶部、43 NC加工プログラム生成部、44 NC加工プログラム記憶部、45 NC加工プログラム編集部、46 意思決定部、50 機械学習装置、51 状態観測部、52 学習部、53 報酬計算部、54 関数更新部、100 CADデータ、111 第1NC加工プログラム、112 第2NC加工プログラム、121 加工ナレッジA、122 加工ナレッジB、123 加工ナレッジC、131 反映加工ナレッジA、132 反映加工ナレッジB、133 反映加工ナレッジC、201 プロセッサ、202 メモリ、203 記憶装置、204 入力装置、205 表示装置、206 通信装置、207 データバス。 1 Numerical Control Device, 10 Interactive Operation Processing Unit, 20 Display Unit, 30 Instruction Input Unit, 40 NC Machining Program Generation Device, 41 Machining Shape Data Input Unit, 42 Machining Shape Data Storage Unit, 43 NC Machining Program Generation Unit, 44 NC Machining program storage unit, 45 NC machining program editing unit, 46 decision making unit, 50 machine learning device, 51 state observing unit, 52 learning unit, 53 reward calculating unit, 54 function updating unit, 100 CAD data, 111 first NC machining program , 112 2nd NC machining program, 121 machining knowledge A, 122 machining knowledge B, 123 machining knowledge C, 131 reflection machining knowledge A, 132 reflection machining knowledge B, 133 reflection machining knowledge C, 201 processor, 202 memory, 203 storage device, 204 input device, 205 display device, 206 communication device, 207 data bus.

上述した課題を解決し、目的を達成するために、本発明にかかる機械学習装置は、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む加工形状データと、被加工物から切削加工品を削り出すための複数の切削加工を含む数値制御加工プログラムを自動生成するための数値制御加工プログラムの生成方法と、数値制御加工プログラムの生成方法を参照して生成された第1数値制御加工プログラムに対する編集内容と、を状態変数として観測する状態観測部と、状態変数に基づいて作成されるデータセットに従って、数値制御加工プログラムの生成方法を自律的に学習する学習部と、を備える。 In order to solve the above-mentioned problems and achieve the object, a machine learning apparatus according to the present invention is provided with machining shape data including information on a machining finish shape of a machined product and information on a material of a material, and cutting from a workpiece. A numerical control machining program generation method for automatically generating a numerical control machining program including a plurality of cutting processes for carving a workpiece, and a first numerical control generated by referring to the numerical control machining program generation method A state observing unit that observes the edited contents of the machining program as a state variable, and a learning unit that autonomously learns the method of generating the numerically controlled machining program according to a data set created based on the state variable.

上述した課題を解決し、目的を達成するために、本発明にかかる機械学習装置は、切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む加工形状データと、被加工物から切削加工品を削り出すための複数の切削加工を含む数値制御加工プログラムを自動生成するための数値制御加工プログラムの生成方法と、数値制御加工プログラムの生成方法を参照して生成された第1数値制御加工プログラムに対する編集内容と、を状態変数として観測する状態観測部と、状態変数に基づいて作成されるデータセットに従って、数値制御加工プログラムの生成方法を学習する学習部と、を備える。学習部は、数値制御加工プログラムの生成方法に編集内容を反映させた反映数値制御加工プログラムの生成方法に基づいて報酬を計算する報酬計算部と、計算された報酬に基づいて、数値制御加工プログラムの生成方法を決定するための関数を更新する関数更新部と、を備える。 In order to solve the above-mentioned problems and achieve the object, a machine learning apparatus according to the present invention is provided with machining shape data including information on a machining finish shape of a machined product and information on a material of a material, and cutting from a workpiece. A numerical control machining program generation method for automatically generating a numerical control machining program including a plurality of cutting processes for carving a workpiece, and a first numerical control generated by referring to the numerical control machining program generation method comprising the edits for the machining program, and the state observing unit for observing the state variables, according to the data set that is created based on the state variable, and a learning unit that learns a method of generating numerical control machining program, the. The learning unit includes a reward calculation unit that calculates a reward based on the reflected numerical control machining program generation method in which the edited content is reflected in the numerical control machining program generation method, and a numerical control machining program based on the calculated reward. And a function updating unit that updates a function for determining the generation method of.

Claims (5)

切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む加工形状データと、被加工物から前記切削加工品を削り出すための複数の切削加工を含む数値制御加工プログラムを自動生成するための数値制御加工プログラムの生成方法と、前記数値制御加工プログラムの生成方法を参照して生成された第1数値制御加工プログラムに対する編集内容と、を状態変数として観測する状態観測部と、
前記状態変数に基づいて作成されるデータセットに従って、前記数値制御加工プログラムの生成方法を学習する学習部と、
を備えることを特徴とする機械学習装置。
To automatically generate a machining shape data including machining finish shape information and material quality information of a cutting work product, and a numerical control machining program including a plurality of cutting processes for cutting out the cutting work product from a workpiece. And a state observing section for observing, as a state variable, the numerical control machining program generation method described above, and the edit content for the first numerical control machining program generated by referring to the numerical control machining program generation method.
A learning unit for learning a method of generating the numerically controlled machining program according to a data set created based on the state variables;
A machine learning device comprising:
前記学習部が、
前記数値制御加工プログラムの生成方法に前記編集内容を反映させた反映数値制御加工プログラムの生成方法に基づいて報酬を計算する報酬計算部と、
計算された前記報酬に基づいて、前記数値制御加工プログラムの生成方法を決定するための関数を更新する関数更新部と、
を備えることを特徴とする請求項1に記載の機械学習装置。
The learning unit
A reward calculation unit that calculates a reward based on the reflected numerically controlled machining program generation method in which the edited contents are reflected in the numerically controlled machining program generation method,
A function updating unit for updating a function for determining a method of generating the numerical control machining program based on the calculated reward;
The machine learning device according to claim 1, further comprising:
前記報酬計算部は、
前記数値制御加工プログラムの生成方法と前記反映数値制御加工プログラムの生成方法とが同じ場合には前記反映数値制御加工プログラムの生成方法の報酬を増大し、前記数値制御加工プログラムの生成方法と前記反映数値制御加工プログラムの生成方法とが異なる場合には前記数値制御加工プログラムの生成方法の報酬を低減するとともに前記反映数値制御加工プログラムの生成方法の報酬を増大するように構成されること、
を特徴とする請求項2に記載の機械学習装置。
The reward calculator is
When the generation method of the numerical control machining program and the generation method of the reflection numerical control machining program are the same, the reward of the generation method of the reflection numerical control machining program is increased, and the generation method of the numerical control machining program and the reflection When the generation method of the numerical control machining program is different, it is configured to reduce the reward of the generation method of the numerical control machining program and increase the reward of the generation method of the reflected numerical control machining program,
The machine learning device according to claim 2.
請求項1から3のいずれか1つに記載の機械学習装置と、
前記機械学習装置が学習した結果に基づいて決定される前記数値制御加工プログラムの生成方法を参照して前記第1数値制御加工プログラムを生成する数値制御加工プログラム生成部と、
前記第1数値制御加工プログラムを編集して第2数値制御加工プログラムを生成する数値制御加工プログラム編集部と、
前記機械学習装置の前記学習部が学習した結果に基づいて、前記加工形状データに対応する数値制御加工プログラムの生成方法を決定する意思決定部と、
を備えることを特徴とする数値制御加工プログラム生成装置。
A machine learning device according to any one of claims 1 to 3,
A numerical control machining program generation unit for generating the first numerical control machining program by referring to a method of generating the numerical control machining program determined based on a result learned by the machine learning device,
A numerical control machining program editing unit for editing the first numerical control machining program to generate a second numerical control machining program;
A decision making unit that decides a method of generating a numerically controlled machining program corresponding to the machining shape data, based on a result learned by the learning unit of the machine learning device;
A numerically controlled machining program generation device comprising:
被加工物から切削加工品を削り出すための複数の切削加工を含む数値制御加工プログラムを生成する数値制御加工プログラム生成装置における前記数値制御加工プログラムの自動生成に用いられる数値制御加工プログラムの生成方法を学習する機械学習方法であって、
前記切削加工品の加工仕上がり形状の情報および素材の材質の情報を含む加工形状データと、前記数値制御加工プログラムの生成方法と、前記数値制御加工プログラムの生成方法を参照して前記数値制御加工プログラム生成装置が生成した第1数値制御加工プログラムに対する編集内容と、を状態変数として観測するステップと、
前記状態変数に基づいて作成されるデータセットに従って、前記数値制御加工プログラムの生成方法を学習するステップと、
を含むことを特徴とする機械学習方法。
A method of generating a numerically controlled machining program used in automatic generation of the numerically controlled machining program in a numerically controlled machining program generation device for generating a numerically controlled machining program including a plurality of cutting processes for cutting a machined product from a workpiece A machine learning method for learning
The machining shape data including the machining finish shape information and the material material information of the machined product, the numerical control machining program generation method, and the numerical control machining program generation method are referred to to refer to the numerical control machining program. Editing the first numerically controlled machining program generated by the generator and observing the edited contents as state variables;
Learning a method of generating the numerically controlled machining program according to a data set created based on the state variables;
A machine learning method comprising:
JP2018558361A 2018-07-11 2018-07-11 Machine learning device, numerically controlled machining program generation device, and machine learning method Active JP6584697B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/026204 WO2020012581A1 (en) 2018-07-11 2018-07-11 Machine learning device, numerical control machining program generation device, and machine learning method

Publications (2)

Publication Number Publication Date
JP6584697B1 JP6584697B1 (en) 2019-10-02
JPWO2020012581A1 true JPWO2020012581A1 (en) 2020-07-27

Family

ID=68095337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018558361A Active JP6584697B1 (en) 2018-07-11 2018-07-11 Machine learning device, numerically controlled machining program generation device, and machine learning method

Country Status (4)

Country Link
JP (1) JP6584697B1 (en)
CN (1) CN112384867B (en)
DE (1) DE112018007741B4 (en)
WO (1) WO2020012581A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7171538B2 (en) * 2019-11-07 2022-11-15 キヤノン株式会社 Tool Condition Determination Apparatus, Learning Apparatus, and Method
WO2023058077A1 (en) * 2021-10-04 2023-04-13 三菱電機株式会社 Machining program generation device and machining program generation method
CN115981236B (en) * 2023-03-20 2023-05-30 山东山森数控技术有限公司 Method for predicting energy consumption in turning process of numerical control lathe

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61173842A (en) * 1985-01-24 1986-08-05 Yamazaki Mazak Corp Numerical control device
JPS63131205A (en) * 1986-11-21 1988-06-03 Hitachi Seiko Ltd Processing condition setting device for nc electrical discharge machine
JP3462669B2 (en) * 1996-08-16 2003-11-05 株式会社日立製作所 Machining process design system
JP4657436B2 (en) * 2000-10-26 2011-03-23 シチズンホールディングス株式会社 Automatic programming method and automatic programming apparatus
JP4738585B2 (en) * 2000-10-26 2011-08-03 シチズンホールディングス株式会社 Machining program graph display method and apparatus therefor
CN102081376A (en) * 2011-02-25 2011-06-01 武汉华中数控股份有限公司 Machining load control system based on instruction sequence optimization
JP6290835B2 (en) * 2015-08-27 2018-03-07 ファナック株式会社 Numerical control device and machine learning device
JP6063013B1 (en) * 2015-08-27 2017-01-18 ファナック株式会社 Numerical control device with machining condition adjustment function to suppress chatter or tool wear / breakage
JP6055058B1 (en) * 2015-09-30 2016-12-27 ファナック株式会社 Production facilities equipped with machine learners and assembly / testers
JP2017138881A (en) * 2016-02-05 2017-08-10 ファナック株式会社 Machine learning device for learning display of operation menu, numerical control device, machine tool system, manufacturing system, and machine learning method
JP6453805B2 (en) * 2016-04-25 2019-01-16 ファナック株式会社 Production system for setting judgment values for variables related to product abnormalities
TWI588633B (en) * 2016-05-13 2017-06-21 捷準科技股份有限公司 A CNC Machine Tool for Generating? G Code Files to Save and Process
JP6496274B2 (en) * 2016-05-27 2019-04-03 ファナック株式会社 Machine learning device, failure prediction device, machine system and machine learning method for learning life failure condition
JP6557198B2 (en) * 2016-09-06 2019-08-07 ファナック株式会社 Numerical controller
JP6450724B2 (en) * 2016-10-18 2019-01-09 ファナック株式会社 Machine learning device and machining system for learning setting values of machining program of machine tool
CN106527347B (en) * 2016-10-28 2018-11-16 哈尔滨工业大学深圳研究生院 A kind of numerically-controlled machine tool self study amendment error system and method
JP6386520B2 (en) * 2016-12-13 2018-09-05 ファナック株式会社 Numerical control device and machine learning device
JP6457473B2 (en) * 2016-12-16 2019-01-23 ファナック株式会社 Machine learning apparatus, robot system, and machine learning method for learning operation of robot and laser scanner
JP6470251B2 (en) * 2016-12-26 2019-02-13 ファナック株式会社 Numerical control device and machine learning device

Also Published As

Publication number Publication date
DE112018007741B4 (en) 2024-02-01
WO2020012581A1 (en) 2020-01-16
CN112384867B (en) 2021-10-29
CN112384867A (en) 2021-02-19
JP6584697B1 (en) 2019-10-02
DE112018007741T5 (en) 2021-03-18

Similar Documents

Publication Publication Date Title
JP6599069B1 (en) Machine learning device, machining program generation device, and machine learning method
JP2017030067A (en) Control device-added machining apparatus with machining time measuring function and on-machine measuring function
CN109581962B (en) Numerical control system
JP6584697B1 (en) Machine learning device, numerically controlled machining program generation device, and machine learning method
JP2020024676A (en) Machine work based on principles selected from database
JP7101131B2 (en) Numerical control system
CN105843172A (en) Machine tool with function to automatically modify cutting conditions
US11474497B2 (en) Numerical control device, machine learning device, and numerical control method
CN107664985B (en) CAD/CAM-CNC integrated system
JP6185408B2 (en) NC program generation and editing device
CN105051630A (en) Numerical control device
JP5271549B2 (en) Control method of movable tool, input device and machine tool
JP6312648B2 (en) Numerical control system linked with tool catalog database
JP2021043854A (en) Mechanical learning device, control device, generation method and control method
JPH11277371A (en) Processing program producing support device
JP6980151B1 (en) Machining program generator, machining program generation method and machine learning method
JP2016167319A (en) Processing program creation method and device
US20240033873A1 (en) Device and method for machining a workpiece
Osman Zahid et al. End mill tools integration in CNC machining for rapid manufacturing processes: simulation studies
JPS6267607A (en) Automatic programming device
JP6469218B2 (en) Method for estimating machining time of wire electric discharge machine and control device for wire electric discharge machine
US20180246490A1 (en) Method for Providing a Travel Profile, Control Device, Machine, and Computer Program
WO2019220575A1 (en) Numerical-value-control-processing-program-generation device and numerical-control-processing-program-generation method
JP7229621B1 (en) System and program
KR20220157437A (en) Dental machining system for generating process parameters of machining

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181106

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20181106

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20181203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190306

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190319

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190520

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190903

R150 Certificate of patent or registration of utility model

Ref document number: 6584697

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250