[go: up one dir, main page]

JP7548690B2 - Machining program creation device - Google Patents

Machining program creation device Download PDF

Info

Publication number
JP7548690B2
JP7548690B2 JP2019184662A JP2019184662A JP7548690B2 JP 7548690 B2 JP7548690 B2 JP 7548690B2 JP 2019184662 A JP2019184662 A JP 2019184662A JP 2019184662 A JP2019184662 A JP 2019184662A JP 7548690 B2 JP7548690 B2 JP 7548690B2
Authority
JP
Japan
Prior art keywords
command
machining
machining program
commands
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.)
Active
Application number
JP2019184662A
Other languages
Japanese (ja)
Other versions
JP2021060806A (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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP2019184662A priority Critical patent/JP7548690B2/en
Publication of JP2021060806A publication Critical patent/JP2021060806A/en
Application granted granted Critical
Publication of JP7548690B2 publication Critical patent/JP7548690B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]

Landscapes

  • Numerical Control (AREA)

Description

本発明は、加工プログラム作成装置に関し、特に数値制御装置が実行する加工プログラムの作成装置に関する。 The present invention relates to a machining program creation device, and in particular to a creation device for a machining program executed by a numerical control device.

数値制御装置は加工プログラムを読み込み、読み込んだ加工プログラムを実行することで自動運転を行っている。加工プログラムは、例えばオペレータが手動で作成する。オペレータは、加工プログラムを作成する際には、ワークの加工形状を実現するための加工に係る指令を加工プログラムに指定する一方で、指定した加工に係る指令の前後に、該加工に係る指令を実行するために必要な準備指令(工具交換指令、主軸回転指令、アプローチ指令等)や後処理指令(エスケープ指令、主軸停止指令等)を指定する。加工プログラムに指定した加工に係る指令としては、複数の指令を組み合わせて所定の形状をワークに加工するものや、1つの指令で一連の動作シーケンスを機械に行わせるサイクル指令(例えば、特許文献1)等がある。 The numerical control device loads a machining program and executes the loaded machining program to perform automatic operation. The machining program is created manually, for example, by an operator. When creating a machining program, the operator specifies in the machining program the machining commands for realizing the machining shape of the workpiece, while specifying preparatory commands (tool change command, spindle rotation command, approach command, etc.) and post-processing commands (escape command, spindle stop command, etc.) required to execute the machining commands before and after the specified machining commands. Machining commands specified in the machining program include commands that combine multiple commands to machine a workpiece into a specified shape, and cycle commands that cause the machine to perform a series of operation sequences with a single command (for example, Patent Document 1).

特開2015-011669号公報JP 2015-011669 A

このように、オペレータは、加工プログラムに加工に係る指令を指定するたびに、該加工に係る指令の実行に必要な複数の補助的な指令を前後に指定する必要がある。それらの補助的な指令は機械構成、ワーク形状等により多数の指令が存在する。そのため、それらの情報を把握する必要があり、オペレータの負担になっていた。
そこで、サイクル指令等の加工に係る指令の前後に必要な準備指令や後処理指令を指定する作業を学習乃至支援する機能が望まれている。
In this way, every time an operator specifies a machining command in a machining program, the operator must specify multiple auxiliary commands before and after the command, which are necessary for executing the machining command. There are many such auxiliary commands depending on the machine configuration, workpiece shape, etc. Therefore, it is necessary to understand such information, which is a burden on the operator.
Therefore, there is a need for a function that can learn or assist in the task of specifying preparation commands and post-processing commands that are required before and after machining commands such as cycle commands.

本発明の一態様による数値制御装置は、過去にオペレータが作成した加工プログラムから、加工に係る指令(サイクル指令など)の近傍に指定されている指令を抽出し、抽出した指令を所定のルールに従って機械学習する。そして、オペレータが新たに加工プログラムを作成する際に、加工に係る指令を入力した時点で、前記機械学習の結果を用いた推論処理を実行し、加工に係る指令の前後に指定するべき補助的な指令を推論結果として出力する。 A numerical control device according to one aspect of the present invention extracts commands that are specified near commands related to machining (such as cycle commands) from machining programs previously created by an operator, and performs machine learning on the extracted commands according to predetermined rules. Then, when an operator creates a new machining program, at the point in time when the operator inputs a command related to machining, an inference process is executed using the results of the machine learning, and auxiliary commands that should be specified before and after the command related to machining are output as inference results.

そして、本発明の一態様は、工作機械の制御プログラムの作成を支援する加工プログラム作成装置であって、加工プログラムを取得するデータ取得部と、前記加工プログラムから少なくとも1つの加工に係る指令と、少なくとも1つの準備指令及び少なくとも1つの後処理指令とを抽出し、それぞれの前記加工に係る指令から見たそれぞれの準備指令及び後処理指令の前記加工に係る指令からの距離を含んだ相対位置を解析する加工プログラム解析部と、前記加工プログラム解析部による解析結果に基づいて、前記加工に係る指令から見たそれぞれの準備指令及び後処理指令の位置を学習した第1学習モデルを作成する学習部と、を備えた加工プログラム作成装置である。 One aspect of the present invention is a machining program creation device that assists in the creation of a control program for a machine tool, comprising: a data acquisition unit that acquires a machining program; a machining program analysis unit that extracts at least one machining-related command, at least one preparatory command, and at least one post-processing command from the machining program, and analyzes the relative positions of each of the preparatory commands and post-processing commands as viewed from each of the machining-related commands, including the distance from the machining commands; and a learning unit that creates a first learning model that learns the positions of each of the preparatory commands and post-processing commands as viewed from the machining commands, based on the analysis results by the machining program analysis unit.

本発明の他の態様は、工作機械の制御プログラムの作成を支援する加工プログラム作成装置であって、加工に係る指令を取得するデータ取得部と、前記加工に係る指令を解析する加工プログラム解析部と、それぞれの加工に係る指令から見たそれぞれの準備指令及び後処理指令の前記加工に係る指令からの距離を含んだ相対位置を学習した第1学習モデルを記憶する学習モデル記憶部に記憶される第1学習モデルと、前記加工プログラム解析部による解析結果とに基づいて、前記加工に係る指令から見た所定の距離を含んだ相対位置に指定するべき準備指令及び後処理指令を推定する指令推定部と、前記加工に係る指令と、前記指令推定部が推定した準備指令及び後処理指令を含む加工プログラムの雛形を表示する推定結果表示部と、を備えた加工プログラム作成装置である。 Another aspect of the present invention is a machining program creation device that assists in the creation of a control program for a machine tool, comprising: a data acquisition unit that acquires machining-related commands; a machining program analysis unit that analyzes the machining- related commands; a first learning model stored in a learning model memory unit that stores a first learning model that has learned the relative positions of each preparatory command and post-processing command from each machining-related command, including the distance from the machining-related command; a command estimation unit that estimates preparatory commands and post-processing commands to be specified at relative positions including a predetermined distance from the machining-related command based on the analysis results by the machining program analysis unit; and an estimation result display unit that displays a template of a machining program including the machining-related commands and the preparatory commands and post-processing commands estimated by the command estimation unit.

本発明の一態様により、サイクル指令等の加工に係る指令の前後に必要な準備指令や後処理指令を指定する作業を学習乃至支援することが可能となる。 One aspect of the present invention makes it possible to learn or assist in the task of specifying preparation commands and post-processing commands required before and after machining commands such as cycle commands.

一実施形態による加工プログラム作成装置の概略的なハードウェア構成図である。1 is a schematic hardware configuration diagram of a machining program creating device according to an embodiment; 第1実施形態による加工プログラム作成装置の概略的な機能ブロック図である。1 is a schematic functional block diagram of a machining program creating device according to a first embodiment; 加工プログラムの例を示す図である。FIG. 4 is a diagram showing an example of a machining program. 典型的な加工パターンの例を示す図である。FIG. 1 is a diagram showing an example of a typical processing pattern. 第1学習モデルの例を示す図である。FIG. 2 is a diagram illustrating an example of a first learning model. 第2学習モデルの例を示す図である。FIG. 13 is a diagram illustrating an example of a second learning model. 第2実施形態による加工プログラム作成装置の概略的な機能ブロック図である。FIG. 11 is a schematic functional block diagram of a machining program creating device according to a second embodiment. 第1学習モデルを用いたそれぞれの相対位置における準備指令及び後処理指令の推定方法を説明する図である。13A to 13C are diagrams illustrating a method of estimating preparation commands and post-processing commands at each relative position using the first learning model. 第2学習モデルを用いたそれぞれの準備指令及び後処理指令の引数の推定方法を説明する図である。A diagram explaining a method of estimating arguments of each preparation command and post-processing command using the second learning model. 加工プログラムの雛形の例を示す図である。FIG. 11 is a diagram showing an example of a template for a machining program. 学習モデル記憶部を外部のコンピュータ上に設けた変形例を示す図である。FIG. 13 is a diagram showing a modified example in which a learning model storage unit is provided on an external computer.

以下、本発明の実施形態を図面と共に説明する。
図1は本発明の一実施形態による加工プログラム作成装置の要部を示す概略的なハードウェア構成図である。本発明の加工プログラム作成装置1は、例えば加工プログラムに基づいて産業機械を制御する数値制御装置として実装することができる。また、本発明の加工プログラム作成装置1は、加工プログラムに基づいて産業機械を制御する数値制御装置に併設されたパソコンや、有線/無線のネットワークを介して数値制御装置と接続されたパソコン、セルコンピュータ、フォグコンピュータ、クラウドサーバの上に実装することができる。本実施形態では、加工プログラム作成装置1を、ネットワーク介して数値制御装置と接続されたパソコンの上に実装した例を示す。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
1 is a schematic hardware configuration diagram showing a main part of a machining program creation device according to an embodiment of the present invention. The machining program creation device 1 of the present invention can be implemented as, for example, a numerical control device that controls an industrial machine based on a machining program. The machining program creation device 1 of the present invention can also be implemented on a personal computer attached to a numerical control device that controls an industrial machine based on a machining program, or on a personal computer, cell computer, fog computer, or cloud server connected to a numerical control device via a wired/wireless network. In this embodiment, an example is shown in which the machining program creation device 1 is implemented on a personal computer connected to a numerical control device via a network.

本実施形態による加工プログラム作成装置1が備えるCPU11は、加工プログラム作成装置1を全体的に制御するプロセッサである。CPU11は、バス22を介してROM12に格納されたシステム・プログラムを読み出し、該システム・プログラムに従って加工プログラム作成装置1全体を制御する。RAM13には一時的な計算データや表示データ、及び外部から入力された各種データ等が一時的に格納される。 The CPU 11 provided in the machining program creation device 1 according to this embodiment is a processor that controls the entire machining program creation device 1. The CPU 11 reads the system program stored in the ROM 12 via the bus 22, and controls the entire machining program creation device 1 according to the system program. The RAM 13 temporarily stores temporary calculation data, display data, various data input from outside, etc.

不揮発性メモリ14は、例えば図示しないバッテリでバックアップされたメモリやSSD(Solid State Drive)等で構成され、加工プログラム作成装置1の電源がオフされても記憶状態が保持される。不揮発性メモリ14には、インタフェース15を介して外部機器72から読み込まれたデータや加工プログラム、入力装置71を介して入力されたデータや加工プログラム等が記憶される。不揮発性メモリ14に記憶されたデータや加工プログラムは、実行時/利用時にはRAM13に展開されても良い。また、ROM12には、公知の解析プログラムなどの各種システム・プログラムがあらかじめ書き込まれている。 The non-volatile memory 14 is composed of, for example, a memory backed up by a battery (not shown) or an SSD (Solid State Drive), and the memory state is maintained even when the power supply of the machining program creation device 1 is turned off. The non-volatile memory 14 stores data and machining programs read from an external device 72 via the interface 15, and data and machining programs input via the input device 71. The data and machining programs stored in the non-volatile memory 14 may be expanded in the RAM 13 when executed/used. In addition, various system programs such as known analysis programs are written in advance in the ROM 12.

インタフェース15は、加工プログラム作成装置1のCPU11とUSB装置等の外部機器72と接続するためのインタフェースである。外部機器72側からは、例えば産業機械の制御に用いられる加工プログラムや各種パラメータ等を読み込むことができる。また、加工プログラム作成装置1内で編集した加工プログラムや各種パラメータ等は、外部機器72を介して外部記憶手段に記憶させることができる。 The interface 15 is an interface for connecting the CPU 11 of the machining program creation device 1 to an external device 72 such as a USB device. For example, machining programs and various parameters used to control industrial machinery can be read from the external device 72. In addition, machining programs and various parameters edited within the machining program creation device 1 can be stored in an external storage means via the external device 72.

インタフェース20は、加工プログラム作成装置1のCPUと有線乃至無線のネットワーク5とを接続するためのインタフェースである。ネットワーク5には、数値制御装置3やフォグコンピュータ、クラウドサーバ等が接続され、加工プログラム作成装置1との間で相互にデータのやり取りを行っている。 The interface 20 is an interface for connecting the CPU of the machining program creation device 1 to a wired or wireless network 5. The network 5 is connected to the numerical control device 3, fog computer, cloud server, etc., and exchanges data with the machining program creation device 1.

表示装置70には、メモリ上に読み込まれた各データ、プログラム等が実行された結果として得られたデータ等がインタフェース17を介して出力されて表示される。また、キーボードやポインティングデバイス等から構成される入力装置71は、作業者による操作に基づく指令,データ等をインタフェース18を介してCPU11に渡す。 On the display device 70, various data loaded into the memory, data obtained as a result of executing programs, etc. are output via the interface 17 and displayed. In addition, the input device 71, which is composed of a keyboard, pointing device, etc., passes instructions, data, etc. based on operations by the operator to the CPU 11 via the interface 18.

図2は、本発明の第1実施形態による加工プログラム作成装置1が備える機能を概略的なブロック図として示したものである。本実施形態による加工プログラム作成装置1が備える各機能は、図1に示した加工プログラム作成装置1が備えるCPU11がシステム・プログラムを実行し、加工プログラム作成装置1の各部の動作を制御することにより実現される。本実施形態による加工プログラム作成装置1は、数値制御装置3が制御対象とする産業機械に係る制御指令を含む加工プログラムをオペレータが作成する際の支援に用いる学習モデルを作成する。 Figure 2 is a schematic block diagram showing the functions of the machining program creation device 1 according to the first embodiment of the present invention. Each function of the machining program creation device 1 according to this embodiment is realized by the CPU 11 of the machining program creation device 1 shown in Figure 1 executing a system program and controlling the operation of each part of the machining program creation device 1. The machining program creation device 1 according to this embodiment creates a learning model used to assist an operator in creating a machining program that includes control commands related to the industrial machine to be controlled by the numerical control device 3.

本実施形態の加工プログラム作成装置1は、データ取得部100、加工プログラム解析部110、機械学習部150を備える。また、加工プログラム作成装置1のRAM13乃至不揮発性メモリ14には、入力装置71、外部機器72、数値制御装置3等から取得した加工プログラムや該加工プログラムの動作環境に係る情報を記憶するための領域として加工プログラム記憶部210が予め用意されている。 The machining program creation device 1 of this embodiment includes a data acquisition unit 100, a machining program analysis unit 110, and a machine learning unit 150. In addition, the RAM 13 to the non-volatile memory 14 of the machining program creation device 1 are provided with a machining program storage unit 210 in advance as an area for storing the machining program acquired from the input device 71, the external device 72, the numerical control device 3, etc., and information related to the operating environment of the machining program.

データ取得部100は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理と、インタフェース15、18又は20による入力制御処理とが行われることで実現される。データ取得部100は、加工プログラムと、該加工プログラムの動作環境に係る情報とを取得して、加工プログラム記憶部210に記憶する。データ取得部100は、入力装置71、外部機器72、数値制御装置3等から加工プログラム及び該加工プログラムの動作環境に係る情報を取得して良い。データ取得部100が取得する加工プログラムは、例えばサイクル指令や一連の切削指令等で示される加工に係る指令を含むものであって良い。データ取得部100が加工プログラムと共に取得する加工プログラムの動作環境に係る情報は、該加工プログラムを実行する産業機械の機械構成情報(産業機械の種類、軸構成、工具種類等)、ワーク素材情報(ワークの形状、ワークの材料等)等を含む。 The data acquisition unit 100 is realized by the CPU 11 included in the machining program creation device 1 shown in FIG. 1 executing the system program read from the ROM 12, and mainly performing arithmetic processing by the CPU 11 using the RAM 13 and non-volatile memory 14, and input control processing by the interface 15, 18 or 20. The data acquisition unit 100 acquires the machining program and information related to the operating environment of the machining program and stores them in the machining program storage unit 210. The data acquisition unit 100 may acquire the machining program and information related to the operating environment of the machining program from the input device 71, the external device 72, the numerical control device 3, etc. The machining program acquired by the data acquisition unit 100 may include commands related to machining, such as cycle commands and a series of cutting commands. The information related to the operating environment of the machining program acquired by the data acquisition unit 100 together with the machining program includes machine configuration information (type of industrial machine, axis configuration, tool type, etc.) of the industrial machine executing the machining program, work material information (shape of the work, material of the work, etc.), etc.

加工プログラム解析部110は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理が行われることで実現される。加工プログラム解析部110は、加工プログラム記憶部210に記憶されている加工プログラムと該加工プログラムの動作環境に係る情報を読み出して解析し、機械学習部150による学習に用いられる学習データを作成する。加工プログラム解析部110は、加工プログラムに含まれる加工に係る指令を特定する。そして、特定した加工に係る指令の前後に指定されている準備指令及び後処理指令に該加工に係る指令からの相対位置を関連付ける。そして、加工プログラム解析部110は、解析した加工プログラム及び該加工プログラムの動作環境に係る情報を機械学習部150に出力する。 The machining program analysis unit 110 is realized by the CPU 11 included in the machining program creation device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and the non-volatile memory 14. The machining program analysis unit 110 reads and analyzes the machining program stored in the machining program storage unit 210 and information related to the operating environment of the machining program, and creates learning data used for learning by the machine learning unit 150. The machining program analysis unit 110 identifies commands related to machining included in the machining program. Then, it associates the relative position from the command related to machining with the preparation command and post-processing command specified before and after the identified command related to machining. Then, the machining program analysis unit 110 outputs the analyzed machining program and information related to the operating environment of the machining program to the machine learning unit 150.

図3は、加工プログラムの例を示している。ワークの加工に用いられる加工プログラムには、少なくとも1つの加工に係る指令を含む。例えば、工作機械においては、加工に係る指令は、サイクル指令や一連の切削指令(切削指令で始まり切削指令で終わる、切削指令乃至早送り指令の集合)で示される。図3の例では、加工プログラム解析部110は、加工プログラムの中からドリルサイクル指令G81を加工に係る指令として特定する。なお、加工に係る指令が一連の切削指令で示されている場合には、該一連の切削指令が描く工具軌跡をシミュレーション処理等で算出し、図4に例示されるような典型的な加工パターンとの間で公知の形状マッチングを行い、当該一連の切削指令がどのような加工を行うものであるのかを特定しておく。 Figure 3 shows an example of a machining program. A machining program used to machine a workpiece includes at least one machining command. For example, in a machine tool, the machining command is indicated by a cycle command or a series of cutting commands (a set of cutting commands or fast-forward commands that start and end with a cutting command). In the example of Figure 3, the machining program analysis unit 110 identifies a drill cycle command G81 from the machining program as a machining command. When the machining command is indicated by a series of cutting commands, the tool path drawn by the series of cutting commands is calculated by a simulation process or the like, and known shape matching is performed between the series of cutting commands and a typical machining pattern as exemplified in Figure 4, to identify the type of machining that the series of cutting commands will perform.

次に、加工プログラム解析部110は、特定した加工に係る指令(ドリルサイクル指令G81)を基準として、前後に指定された準備指令及び後処理指令に対して該加工に係る指令からの相対位置を算出して関連付ける。典型的な準備指令としては、原点復帰指令、工具交換指令、主軸回転指令、ワーク座標系選択指令、工具径補正指令、アプローチ指令等が例示される。また、典型的な後処理指令としては、エスケープ指令、主軸回転停止指令、終了指令等が例示される。そして、加工プログラム解析部110は、各々の準備指令、後処理指令に対して、加工に係る指令からのブロック距離を相対位置として関連付ける。図3の例では、原点復帰指令G28は加工に係る指令であるドリルサイクル指令G81の5ブロック前に位置しているので、相対位置として-5が関連付けられる。 Next, the machining program analysis unit 110 calculates and associates the relative positions of the specified machining-related command (drill cycle command G81) with the preparation command and post-processing command specified before and after the specified machining-related command. Typical preparation commands include a return to origin command, a tool change command, a spindle rotation command, a workpiece coordinate system selection command, a tool diameter correction command, and an approach command. Typical post-processing commands include an escape command, a spindle rotation stop command, and an end command. The machining program analysis unit 110 then associates the block distance from the machining-related command with each preparation command and post-processing command as a relative position. In the example of FIG. 3, the return to origin command G28 is located five blocks before the drill cycle command G81, which is a machining-related command, so -5 is associated as the relative position.

加工プログラム解析部110は、典型的な加工に係る指令、準備指令、後処理指令を例えばテーブル等の形式で予め設定しておき、これらテーブルを参照することで、加工プログラムに含まれる加工に係る指令、準備指令、後処理指令を特定するようにしても良い。また、加工に係る指令が一連の切削指令で示されている場合には、加工プログラム内で準備指令と後処理指令に挟まれている、切削指令で始まり切削指令で終わる、切削指令乃至早送り指令の集合を加工に係る指令として特定するようにすれば良い。 The machining program analysis unit 110 may preset typical machining commands, preparation commands, and post-processing commands in the form of, for example, tables, and may identify the machining commands, preparation commands, and post-processing commands included in the machining program by referring to these tables. Also, when the machining commands are represented by a series of cutting commands, it may be possible to identify the set of cutting commands and fast-forward commands that are sandwiched between preparation commands and post-processing commands in the machining program and that start and end with cutting commands as the machining commands.

また、加工プログラム解析部110は、加工プログラムに複数の加工に係る指令が含まれていると判断できる場合には、それぞれの加工に係る指令ごとに上記した処理を実行する。一般に、加工プログラムが複数の加工に係る指令を含んでいる場合、準備指令->加工に係る指令->後処理指令の流れが繰り返されるため、加工プログラムに含まれるそれぞれの指令が、加工に係る指令、準備指令、後処理指令、その他の指令のいずれに属するのかを特定した上で、準備指令->加工に係る指令->後処理指令という流れを1つのセットとした指令群に分割することで、加工プログラムを、それぞれの加工に係る指令と該加工に係る指令に関連する準備指令及び後処理指令のセットへと分割することができる。 In addition, when the machining program analysis unit 110 determines that the machining program contains multiple machining commands, it executes the above-mentioned process for each machining command. Generally, when a machining program contains multiple machining commands, the flow of preparation command -> machining command -> post-processing command is repeated, so that each command included in the machining program is identified as a machining command, preparation command, post-processing command, or other command, and then the machining program can be divided into a set of commands with the flow of preparation command -> machining command -> post-processing command as one set.

機械学習部150は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理が行われることで実現される。機械学習部150は、加工プログラム解析部110による解析結果に基づいた機械学習に係る処理を実行する。本実施形態による機械学習部150は、少なくとも学習部152と、学習部152が作成する学習モデルを記憶するためにRAM13乃至不揮発性メモリ14に設けられた領域である学習モデル記憶部220を備える。 The machine learning unit 150 is realized by the CPU 11 included in the machining program creation device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and non-volatile memory 14. The machine learning unit 150 executes processing related to machine learning based on the analysis results by the machining program analysis unit 110. The machine learning unit 150 according to this embodiment includes at least a learning unit 152 and a learning model storage unit 220, which is an area provided in the RAM 13 to the non-volatile memory 14 for storing the learning model created by the learning unit 152.

学習部152は、加工プログラム解析部110による解析結果として入力された学習データを用いた機械学習により学習モデルを作成し、学習モデル記憶部220に記憶する。学習部152が作成する学習モデルは、加工プログラムにおける加工に係る指令の前後に指定するべき準備指令及び後処理指令を学習する第1学習モデルと、それぞれの準備指令及び後処理指令における引数を学習する第2学習モデルを含む。 The learning unit 152 creates a learning model by machine learning using the learning data input as the analysis result by the machining program analysis unit 110, and stores the model in the learning model storage unit 220. The learning model created by the learning unit 152 includes a first learning model that learns the preparatory commands and post-processing commands that should be specified before and after the commands related to machining in the machining program, and a second learning model that learns the arguments in each of the preparatory commands and post-processing commands.

学習部152が作成する第1学習モデルは、例えば図5に例示されるように、加工に係る指令からの相対位置に対するそれぞれの準備指令及び後処理指令の出現頻度を示すものであって良い。学習部152は、加工に係る指令毎に第1学習モデルを作成する。学習部152は、同一又は類似の加工に係る指令を含む複数の加工プログラムを加工プログラム解析部110が解析して得られた複数の学習データを用いて、図5に例示されるような頻度グラフを作成し、これを該加工に係る指令の第1学習モデルとすれば良い。ここで言うところの同一又は類似の加工に係る指令とは、加工に係る指令がサイクル指令で示される場合には同じ種類のサイクル指令を同一又は類似の加工に係る指令と判定し、加工に係る指令が一連の切削指令で示される場合には加工プログラム解析部110が特定した加工パターンが同じ加工パターンであるものを同一又は類似の加工に係る指令と判定すれば良い。学習部152は、加工プログラムの動作環境に係る情報に含まれる機械構成情報及びワーク素材情報毎に、第1学習モデルを作成する。例えば、学習部152は、サイクル指令G82の直線3軸工作機械のための第1学習モデルと、平面加工パターン指令群の直線3軸回転2軸工作機械のための第1学習モデルとをそれぞれ個別に作成する。 The first learning model created by the learning unit 152 may indicate the occurrence frequency of each preparatory command and post-processing command with respect to the relative position from the command related to machining, as exemplified in FIG. 5, for example. The learning unit 152 creates a first learning model for each command related to machining. The learning unit 152 creates a frequency graph as exemplified in FIG. 5 using multiple learning data obtained by the machining program analysis unit 110 analyzing multiple machining programs including commands related to the same or similar machining, and may use this as the first learning model for the command related to the machining. The command related to the same or similar machining may be determined as follows: when the command related to machining is indicated by a cycle command, the same type of cycle command is determined to be the command related to the same or similar machining, and when the command related to machining is indicated by a series of cutting commands, the machining pattern identified by the machining program analysis unit 110 is determined to be the same machining pattern. The learning unit 152 creates a first learning model for each machine configuration information and workpiece material information included in the information related to the operating environment of the machining program. For example, the learning unit 152 creates a first learning model for a linear three-axis machine tool of the cycle command G82 and a first learning model for a linear three-axis rotary two-axis machine tool of the plane machining pattern command group separately.

学習部152が作成する第2学習モデルは、例えば図6に例示されるように、それぞれの準備指令及び後処理指令の引数の利用頻度を示すものであって良い。学習部152は、加工に係る指令毎に第2学習モデルを作成する。学習部152は、同一又は類似の加工に係る指令を含む複数の加工プログラムを加工プログラム解析部110が解析して得られた複数の学習データを用いて、それぞれの準備指令及び後処理指令毎の引数の組の頻度を示す頻度グラフを作成し、これを第2学習モデルとすれば良い。学習部152は、加工プログラムの動作環境に係る情報に含まれる機械構成情報及びワーク素材情報毎に、第2学習モデルを作成する。例えば、学習部152は、直線3軸工作機械のため原点復帰指令G28の第2学習モデルと、直線3軸回転2軸工作機械のための原点復帰指令G28の第2学習モデルとをそれぞれ個別に作成する。 The second learning model created by the learning unit 152 may indicate the frequency of use of arguments of each preparatory command and post-processing command, as illustrated in FIG. 6, for example. The learning unit 152 creates a second learning model for each command related to machining. The learning unit 152 creates a frequency graph showing the frequency of the argument set for each preparatory command and post-processing command using multiple learning data obtained by the machining program analysis unit 110 analyzing multiple machining programs including commands related to the same or similar machining, and uses this as the second learning model. The learning unit 152 creates a second learning model for each machine configuration information and workpiece material information included in the information related to the operating environment of the machining program. For example, the learning unit 152 creates a second learning model for the origin return command G28 for a linear three-axis machine tool and a second learning model for the origin return command G28 for a linear three-axis rotating two-axis machine tool separately.

上記構成を備えた本実施形態による加工プログラム作成装置1は、加工プログラムの加工に係る指令の前後に指定するべき準備指令及び後処理指令を学習する。また、本実施形態による加工プログラム作成装置1は、準備指令及び後処理指令の引数を学習する。学習結果は学習モデルとして記憶される。加工プログラム作成装置1が作成する学習モデルは、オペレータが加工プログラムを作成する際に入力した加工に係る指令に用いるべき準備指令及び後処理指令を推定するために用いることができる。 The machining program creation device 1 according to this embodiment, which is configured as described above, learns the preparatory commands and post-processing commands that should be specified before and after the machining commands in the machining program. The machining program creation device 1 according to this embodiment also learns the arguments of the preparatory commands and post-processing commands. The learning results are stored as a learning model. The learning model created by the machining program creation device 1 can be used to estimate the preparatory commands and post-processing commands that should be used for the machining commands input by the operator when creating the machining program.

本実施形態による加工プログラム作成装置1の一変形例として、加工プログラムの解析を行う際に、加工プログラム解析部110は、予め準備指令の順序を、所定のルールに従って並び替えするようにしても良い。例えば、一般的な準備処理の順番として、原点復帰処理->工具交換処理->主軸回転―>…といったような典型的な順序を決めるルールを定めておき、このルールに従って準備指令の並び替えを行っておいても良い。また、加工プログラム解析部110は、後処理指令についても同様に所定のルールに従って並び替えするようにしても良い。準備指令や後処理指令には実行する順序が特に決まっていないものがある。そのため、オペレータによっては、異なる順序で準備指令を指定する場合があり、そのような加工プログラムが頻発すると、学習部152による学習の精度が低下する場合がある。本変形例の構成を備えることで、この学習の制度の低下をある程度緩和することができる。 As a modified example of the machining program creation device 1 according to this embodiment, when analyzing a machining program, the machining program analysis unit 110 may rearrange the order of preparatory commands in advance according to a predetermined rule. For example, a rule may be established that determines a typical order such as origin return processing -> tool exchange processing -> spindle rotation -> ... as the order of general preparatory processing, and the preparatory commands may be rearranged according to this rule. The machining program analysis unit 110 may also rearrange post-processing commands in a similar manner according to a predetermined rule. Some preparatory commands and post-processing commands do not have a specific order for execution. Therefore, depending on the operator, there may be cases where preparatory commands are specified in a different order, and if such machining programs occur frequently, the accuracy of learning by the learning unit 152 may decrease. By providing the configuration of this modified example, it is possible to alleviate the deterioration of the accuracy of this learning to some extent.

図7は、本発明の第2実施形態による加工プログラム作成装置1が備える機能を概略的なブロック図として示したものである。本実施形態による加工プログラム作成装置1が備える各機能は、図1に示した加工プログラム作成装置1が備えるCPU11がシステム・プログラムを実行し、加工プログラム作成装置1の各部の動作を制御することにより実現される。本実施形態による加工プログラム作成装置1は、数値制御装置3が制御対象とする産業機械に係る制御指令を含む加工プログラムをオペレータが作成する際に、既に作成されている学習モデルを用いた支援を行う。 Figure 7 is a schematic block diagram showing the functions of the machining program creation device 1 according to the second embodiment of the present invention. Each function of the machining program creation device 1 according to this embodiment is realized by the CPU 11 of the machining program creation device 1 shown in Figure 1 executing a system program and controlling the operation of each part of the machining program creation device 1. The machining program creation device 1 according to this embodiment uses a learning model that has already been created to provide support when an operator creates a machining program that includes control commands related to industrial machinery to be controlled by the numerical control device 3.

本実施形態の加工プログラム作成装置1は、データ取得部100、加工プログラム解析部110、推定結果表示部120、機械学習部150を備える。 The machining program creation device 1 of this embodiment includes a data acquisition unit 100, a machining program analysis unit 110, an estimation result display unit 120, and a machine learning unit 150.

本実施形態によるデータ取得部100は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理と、インタフェース18,20による入力制御処理とが行われることで実現される。データ取得部100は、加工に係る指令及び該指令の動作環境に係る情報を取得して、機械学習部150に出力する。データ取得部100は、例えば入力装置71を介してオペレータから加工に係る指令を取得するようにしても良い。また、データ取得部100は、入力装置71や数値制御装置3から、指令の動作環境にかかる情報を取得して良い。データ取得部100が取得する加工に係る指令は、例えばサイクル指令や切削指令で始まり切削指令で終わる切削指令乃至早送り指令の集合等であって良い。データ取得部100が加工に係る指令と共に取得する該指令の動作環境に係る情報は、該指令を実行する産業機械の機械構成情報(産業機械の種類、軸構成、工具種類等)、ワーク素材情報(ワークの加工形状、ワークの材料等)等を含む。 The data acquisition unit 100 according to this embodiment is realized by the CPU 11 included in the machining program creation device 1 shown in FIG. 1 executing the system program read from the ROM 12, and mainly performing arithmetic processing using the RAM 13 and non-volatile memory 14 by the CPU 11, and input control processing by the interfaces 18 and 20. The data acquisition unit 100 acquires machining-related commands and information related to the operating environment of the commands, and outputs them to the machine learning unit 150. The data acquisition unit 100 may acquire machining-related commands from an operator via the input device 71, for example. The data acquisition unit 100 may also acquire information related to the operating environment of the commands from the input device 71 or the numerical control device 3. The machining-related commands acquired by the data acquisition unit 100 may be, for example, a set of cutting commands or fast-forward commands that start with a cycle command or a cutting command and end with a cutting command. The information related to the operating environment of the command acquired by the data acquisition unit 100 together with the command related to machining includes machine configuration information of the industrial machine that executes the command (type of industrial machine, shaft configuration, tool type, etc.), workpiece material information (machined shape of the workpiece, material of the workpiece, etc.), etc.

本実施形態による加工プログラム解析部110は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理が行われることで実現される。加工プログラム解析部110は、データ取得部100が取得した加工に係る指令及び該指令の動作環境に係る情報を解析して、機械学習部150による推定処理に用いられる学習データを作成する。加工プログラム解析部110は、例えば加工に係る指令が一連の切削指令で示されている場合に、該一連の切削指令が描く工具軌跡をシミュレーション処理等で算出し、典型的な加工パターンとの間で公知の形状マッチングを行い、当該一連の切削指令がどのような加工を行うものであるのかを特定する処理等を行う。 The machining program analysis unit 110 according to this embodiment is realized by the CPU 11 included in the machining program creation device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and non-volatile memory 14. The machining program analysis unit 110 analyzes the machining instructions acquired by the data acquisition unit 100 and information related to the operating environment of the instructions, and creates learning data used in the estimation process by the machine learning unit 150. For example, when the machining instructions are indicated by a series of cutting instructions, the machining program analysis unit 110 calculates the tool path drawn by the series of cutting instructions by simulation processing, etc., performs known shape matching with a typical machining pattern, and performs processing to identify what type of machining the series of cutting instructions will perform.

機械学習部150は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理が行われることで実現される。機械学習部150は、データ取得部100から入力された加工に係る指令及び該指令の動作環境に係る情報と、学習モデル記憶部220に記憶されている学習モデルに基づく機械学習に係る処理を実行する。本実施形態による機械学習部150は、少なくとも指令推定部154と、第1実施形態による学習部152により作成された学習モデルが記憶されるRAM13乃至不揮発性メモリ14に設けられた領域である学習モデル記憶部220を備える。 The machine learning unit 150 is realized by the CPU 11 included in the machining program creation device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and non-volatile memory 14. The machine learning unit 150 executes processing related to machine learning based on machining commands input from the data acquisition unit 100 and information related to the operating environment of the commands, and a learning model stored in the learning model storage unit 220. The machine learning unit 150 according to this embodiment includes at least a command estimation unit 154, and a learning model storage unit 220 which is an area provided in the RAM 13 to non-volatile memory 14 in which the learning model created by the learning unit 152 according to the first embodiment is stored.

指令推定部154は、データ取得部100から入力された加工に係る指令及び該指令の動作環境に係る情報と、学習モデル記憶部220に記憶された学習モデルを用いて、該加工に係る指令の前後にあるべき準備指令及び後処理指令の推定処理を実行する。指令推定部154は、推定した結果を推定結果表示部120へと出力する。 The command estimation unit 154 uses the processing command input from the data acquisition unit 100 and information related to the operating environment of the command, and the learning model stored in the learning model storage unit 220, to perform estimation processing of the preparation command and the post-processing command that should occur before and after the processing command. The command estimation unit 154 outputs the estimation result to the estimation result display unit 120.

指令推定部154は、学習モデル記憶部220に記憶される第1学習モデルの内で、データ取得部100から入力された加工に係る指令及び該指令の動作環境に係る情報に対応する第1学習モデルを用いて、加工に係る指令の前後にあるべき準備指令及び後処理指令を推定する。図8は、頻度グラフとして作成された第1学習モデルを例示する図である。指令推定部154は、第1学習モデルを参照して、頻度グラフ上で加工に係る指令からのそれぞれの相対位置において頻度が高い指令を、加工に係る指令の前後にあるべき準備指令及び後処理指令として推定するようにしても良い。図8の例では、加工に係る指令の5つ前のブロックに原点復帰指令G28、4つ前のブロックに工具交換指令M6、3つ前に主軸回転指令M3、2つ前にワーク座標系設定指令G54、1つ前にアプローチ指令G00及びG43が、それぞれ準備指令として推定される。このように、指令推定部154は、それぞれの相対位置において最も頻度が高い1つの指令をその相対位置にあるべき準備指令及び後処理指令と推定しても良いし、予め定めた所定の第1閾値以上の頻度の2以上の指令をその相対位置にあるべき準備指令及び後処理指令と推定しても良い。一方で、指令推定部154は、それぞれの相対位置における指令コードの頻度がすべて予め定めた所定の第2閾値以下である場合には、その相対位置にあるべき準備指令及び後処理指令が存在しないと推定しても良い。 The command estimation unit 154 estimates the preparatory command and the post-processing command that should be before and after the command related to machining, using the first learning model corresponding to the command related to machining input from the data acquisition unit 100 and the information related to the operating environment of the command, among the first learning models stored in the learning model storage unit 220. FIG. 8 is a diagram illustrating a first learning model created as a frequency graph. The command estimation unit 154 may refer to the first learning model and estimate commands that are frequent in their respective relative positions from the command related to machining on the frequency graph as the preparatory command and the post-processing command that should be before and after the command related to machining. In the example of FIG. 8, the origin return command G28 is estimated as the block five blocks before the command related to machining, the tool change command M6 is estimated as the block four blocks before, the spindle rotation command M3 is estimated as the block three blocks before, the workpiece coordinate system setting command G54 is estimated as the block two blocks before, and the approach commands G00 and G43 are estimated as the block two blocks before. In this way, the command estimation unit 154 may estimate that the single command that occurs most frequently at each relative position is the preparation command and post-processing command that should be at that relative position, or may estimate that two or more commands that occur at a frequency equal to or greater than a predetermined first threshold are the preparation command and post-processing command that should be at that relative position. On the other hand, if the frequencies of the command codes at each relative position are all equal to or less than a predetermined second threshold, the command estimation unit 154 may estimate that there are no preparation commands and post-processing commands that should be at that relative position.

指令推定部154は、加工に係る指令とのそれぞれの相対位置にあるべき準備指令及び後処理指令を推定した場合、更に推定したそれぞれの準備指令及び後処理指令について、引数の推定を行っても良い。指令推定部154は、指令の引数を推定する際に、学習モデル記憶部220に記憶される第2学習モデルの内で、データ取得部100から入力された加工に係る指令及び該指令の動作環境に係る情報に対応する準備指令及び後処理指令毎に作成された第2学習モデルを用いて、それぞれの準備指令及び後処理指令の引数を推定する。図9は、頻度グラフとして作成された第2学習モデルを例示する図である。指令推定部154は、第2学習モデルを参照して、それぞれの準備指令及び後処理指令について、頻度グラフ上で頻度が高い引数の組を、加工に係る指令の前後にあるべき準備指令及び後処理指令として推定するようにしても良い。図9の例では、準備指令である原点復帰指令G28にはX,Y,Zの2つの引数の組を、準備指令であるワーク座標系選択肢例G54にはX,Yの2つの引数の組を、それぞれの指令に適した引数の組として推定される。指令推定部154は、最も頻度が高い引数の組をその指令に適した引数の組として推定しても良い。また、複数の引数の組が予め定めた所定の第3閾値以上の頻度を示す場合には、これら複数の引数の組に含まれるすべての引数をその指令に適した引数として推定しても良い。 When the command estimation unit 154 estimates the preparation command and the post-processing command that should be in the respective relative positions with respect to the command related to processing, the command estimation unit 154 may further estimate arguments for each of the estimated preparation commands and post-processing commands. When estimating the arguments of the command, the command estimation unit 154 estimates the arguments of each preparation command and post-processing command using the second learning model created for each preparation command and post-processing command corresponding to the command related to processing input from the data acquisition unit 100 and the information related to the operating environment of the command, among the second learning models stored in the learning model storage unit 220. FIG. 9 is a diagram illustrating an example of the second learning model created as a frequency graph. The command estimation unit 154 may refer to the second learning model and estimate a set of arguments that are frequent on the frequency graph for each preparation command and post-processing command as the preparation command and post-processing command that should be before and after the command related to processing. In the example of FIG. 9, a set of two arguments, X, Y, and Z, is estimated as the appropriate argument set for the home position return command G28, which is a preparation command, and a set of two arguments, X and Y, is estimated as the appropriate argument set for each command for the work coordinate system option example G54, which is a preparation command. The command estimation unit 154 may estimate the most frequent argument set as the appropriate argument set for that command. Furthermore, when multiple argument sets show a frequency equal to or greater than a predetermined third threshold value, all arguments included in the multiple argument sets may be estimated as the appropriate arguments for that command.

推定結果表示部120は、図1に示した加工プログラム作成装置1が備えるCPU11がROM12から読み出したシステム・プログラムを実行し、主としてCPU11によるRAM13、不揮発性メモリ14を用いた演算処理と、インタフェース17による出力制御処理とが行われることで実現される。推定結果表示部120は、指令推定部154が推定した加工に係る指令の前後にあるべき準備指令及び後処理指令と、それぞれの準備指令及び後処理指令に適した引数の組とに基づいて、表示装置70に対して加工に係る指令を含む加工プログラムの雛形を表示する。 The estimation result display unit 120 is realized by the CPU 11 of the machining program creation device 1 shown in FIG. 1 executing a system program read from the ROM 12, and mainly performing calculation processing by the CPU 11 using the RAM 13 and non-volatile memory 14, and output control processing by the interface 17. The estimation result display unit 120 displays a template of a machining program including machining-related commands on the display device 70, based on the preparatory commands and post-processing commands that should precede and follow the machining-related commands estimated by the command estimation unit 154, and on sets of arguments suitable for each of the preparatory commands and post-processing commands.

図10は、推定結果表示部120が表示する加工プログラムの雛形の例を示す図である。推定結果表示部120は、加工に係る指令からの相対位置に、推定結果表示部120が推定した準備指令及び後処理指令を指定した加工プログラムを作成する。また、推定結果表示部120は、それぞれの準備指令及び後処理指令の後ろに、推定結果表示部120が推定した引数の組を挿入する。推定結果表示部120は、指令推定部154が1つの相対位置に対して複数の準備指令又は後処理指令があるべきと推定した場合には、当該相対位置に推定した複数の準備指令又は後処理指令を並べて指定するようにして良い。 Figure 10 is a diagram showing an example of a template for a machining program displayed by the estimation result display unit 120. The estimation result display unit 120 creates a machining program in which the preparation command and post-processing command estimated by the estimation result display unit 120 are specified at a relative position from the command related to machining. The estimation result display unit 120 also inserts a set of arguments estimated by the estimation result display unit 120 after each preparation command and post-processing command. When the command estimation unit 154 estimates that there should be multiple preparation commands or post-processing commands for one relative position, the estimation result display unit 120 may specify the multiple estimated preparation commands or post-processing commands in a row at the relative position.

上記構成を備えた本実施形態による加工プログラム作成装置1は、学習モデル記憶部220に記憶される学習モデルを用いて、加工プログラムの加工に係る指令の前後に指定するべき準備指令及び後処理指令を推定し、推定結果に基づく加工プログラムの雛形をオペレータに対して提示することができる。また、加工プログラムの雛形には、それぞれの準備指令及び後処理指令に適した引数の組も示すことができる。オペレータは、このようにして示された加工プログラムの雛形を見ながら必要となる情報を更に入力することで、比較的容易に加工プログラムを完成させることができるようになる。 The machining program creation device 1 according to this embodiment, which is configured as described above, can use the learning model stored in the learning model storage unit 220 to estimate the preparatory commands and post-processing commands that should be specified before and after the commands related to machining in the machining program, and can present to the operator a template of the machining program based on the estimation results. In addition, the template of the machining program can also show a set of arguments suitable for each preparatory command and post-processing command. The operator can relatively easily complete the machining program by further inputting the necessary information while looking at the template of the machining program shown in this way.

以上、本発明の一実施形態について説明したが、本発明は上述した実施の形態の例のみに限定されることなく、適宜の変更を加えることにより様々な態様で実施することができる。
例えば、加工プログラム作成装置1が備える第1学習モデル及び第2学習モデルを、他の加工プログラム作成装置1との間で共有する構成を取ることができる。この時、ネットワーク5を介して複数の加工プログラム作成装置1が接続し、ネットワーク5を介して第1学習モデル及び第2学習モデルを互いに通信することで共有するように構成しても良い。このように構成することで、複数の加工プログラム作成装置1でそれぞれ作成した加工プログラムを収集して第1学習モデル及び第2学習モデルの作成及び利用が可能となる。学習モデルを作成するために用いる加工プログラムが増加することで、学習の精度の向上が見込まれ、そのようにして作成された学習モデルを用いることで推定の精度の向上も同様に見込まれる。
また、例えば図11に例示されるように、フォグコンピュータやクラウドサーバ等の外部のコンピュータ6に第1学習モデル及び第2学習モデルを記憶する学習モデル記憶部220’を設け、これを複数の加工プログラム作成装置1で共有するように構成しても良い。このように構成すると、それぞれの加工プログラム作成装置1は学習モデル記憶部220を備える必要がなくなるため、大規模なメモリを備える必要がなくなり、コスト面で大きなメリットがある。
Although one embodiment of the present invention has been described above, the present invention is not limited to the above-described embodiment, and can be embodied in various forms by making appropriate modifications.
For example, the first learning model and the second learning model provided in the machining program creation device 1 can be configured to be shared with other machining program creation devices 1. At this time, a plurality of machining program creation devices 1 may be connected via a network 5, and the first learning model and the second learning model may be shared by communicating with each other via the network 5. By configuring in this way, it is possible to collect machining programs created by a plurality of machining program creation devices 1, and create and use the first learning model and the second learning model. By increasing the number of machining programs used to create the learning model, the accuracy of learning is expected to improve, and by using the learning model created in this way, the accuracy of estimation is also expected to improve.
11, a learning model storage unit 220' for storing the first learning model and the second learning model may be provided in an external computer 6 such as a fog computer or a cloud server, and the learning model storage unit 220' may be configured to be shared by a plurality of machining program creation devices 1. With this configuration, each machining program creation device 1 does not need to be provided with the learning model storage unit 220, and therefore does not need to be provided with a large-scale memory, which has a significant cost advantage.

1 加工プログラム作成装置
3 数値制御装置
5 ネットワーク
6 コンピュータ
11 CPU
12 ROM
13 RAM
14 不揮発性メモリ
15,17,18,20 インタフェース
22 バス
70 表示装置
71 入力装置
72 外部機器
100 データ取得部
110 加工プログラム解析部
120 推定結果表示部
150 機械学習部
152 学習部
154 指令推定部
210 加工プログラム記憶部
220,220’ 学習モデル記憶部
1 Machining program creating device 3 Numerical control device 5 Network 6 Computer 11 CPU
12 ROM
13 RAM
14 Non-volatile memory 15, 17, 18, 20 Interface 22 Bus 70 Display device 71 Input device 72 External device 100 Data acquisition unit 110 Machining program analysis unit 120 Estimation result display unit 150 Machine learning unit 152 Learning unit 154 Command estimation unit 210 Machining program storage unit 220, 220' Learning model storage unit

Claims (8)

工作機械の制御プログラムの作成を支援する加工プログラム作成装置であって、
加工プログラムを取得するデータ取得部と、
前記加工プログラムから少なくとも1つの加工に係る指令と、少なくとも1つの準備指令及び少なくとも1つの後処理指令とを抽出し、それぞれの前記加工に係る指令から見たそれぞれの準備指令及び後処理指令の前記加工に係る指令からの距離を含んだ相対位置を解析する加工プログラム解析部と、
前記加工プログラム解析部による解析結果に基づいて、それぞれの前記加工に係る指令から見たそれぞれの準備指令及び後処理指令の前記加工に係る指令からの距離を含んだ相対位置を学習した第1学習モデルを作成する学習部と、
を備えた加工プログラム作成装置。
A machining program creation device that supports creation of a control program for a machine tool, comprising:
A data acquisition unit that acquires a machining program;
a machining program analysis unit that extracts at least one machining command, at least one preparatory command, and at least one post-processing command from the machining program, and analyzes relative positions of the preparatory command and the post-processing command from the machining command, the relative positions including the distances from the machining commands ;
A learning unit that creates a first learning model that learns relative positions of each preparatory command and post-processing command from each command related to the machining, the relative positions including distances from the command related to the machining , based on an analysis result by the machining program analysis unit;
A machining program creating device comprising:
前記学習部は、前記準備指令及び後処理指令の引数を学習した第2学習モデルを作成する、
請求項1に記載の加工プログラム作成装置。
The learning unit creates a second learning model that learns arguments of the preparation command and the post-processing command.
The machining program creating device according to claim 1.
前記学習部は、同一又は類似の加工に係る指令ごとに、前記第1学習モデルを作成する、
請求項1に記載の加工プログラム作成装置。
The learning unit creates the first learning model for each command related to the same or similar processing.
The machining program creating device according to claim 1.
前記データ取得部は、前記加工プログラムの動作環境に係る情報を更に取得し、
前記学習部は、前記加工プログラムの動作環境に係る情報に基づいて、加工プログラム動作環境ごとに、前記第1学習モデルを作成する、
請求項1に記載の加工プログラム作成装置。
The data acquisition unit further acquires information related to an operating environment of the machining program,
The learning unit creates the first learning model for each machining program operating environment based on information related to the operating environment of the machining program.
The machining program creating device according to claim 1.
工作機械の制御プログラムの作成を支援する加工プログラム作成装置であって、
加工に係る指令を取得するデータ取得部と、
前記加工に係る指令を解析する加工プログラム解析部と、
それぞれの加工に係る指令から見たそれぞれの準備指令及び後処理指令の前記加工に係る指令からの距離を含んだ相対位置を学習した第1学習モデルを記憶する学習モデル記憶部に記憶される第1学習モデルと、前記加工プログラム解析部による解析結果とに基づいて、前記加工に係る指令から見た所定の距離を含んだ相対位置に配置するべき準備指令及び後処理指令を推定する指令推定部と、
前記加工に係る指令と、前記指令推定部が推定した準備指令及び後処理指令を含む加工プログラムの雛形を表示する推定結果表示部と、
を備えた加工プログラム作成装置。
A machining program creation device that supports creation of a control program for a machine tool, comprising:
A data acquisition unit that acquires instructions related to processing;
A machining program analysis unit that analyzes commands related to the machining;
a command estimation unit that estimates the preparatory commands and the post-processing commands to be placed at relative positions including a predetermined distance from the command related to the machining based on a first learning model stored in a learning model storage unit that stores a first learning model that has learned a relative position including a distance from the command related to the machining of each preparatory command and post-processing command from the command related to the machining, and an analysis result by the machining program analysis unit;
an estimation result display unit that displays a template of a machining program including the instructions related to the machining and the preparation instructions and post-processing instructions estimated by the instruction estimation unit;
A machining program creating device comprising:
前記学習モデル記憶部は、前記準備指令及び後処理指令の引数を学習した第2学習モデルを更に記憶しており、
前記指令推定部は、推定した前記準備指令及び後処理指令の引数を更に推定する、
請求項5に記載の加工プログラム作成装置。
The learning model storage unit further stores a second learning model that has learned arguments of the preparation command and the post-processing command,
The command estimation unit further estimates arguments of the estimated preparation command and post-processing command.
The machining program creating device according to claim 5.
前記学習部が作成する学習モデルは、ネットワークを経由して複数の前記加工プログラム作成装置の間で共有される、
請求項1に記載の加工プログラム作成装置。
The learning model created by the learning unit is shared among the plurality of machining program creation devices via a network.
The machining program creating device according to claim 1.
前記指令推定部が推定に用いる学習モデルは、ネットワークを経由して複数の前記加工プログラム作成装置の間で共有されている、
請求項5に記載の加工プログラム作成装置。
A learning model used for estimation by the command estimation unit is shared among the plurality of machining program creation devices via a network.
The machining program creating device according to claim 5.
JP2019184662A 2019-10-07 2019-10-07 Machining program creation device Active JP7548690B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019184662A JP7548690B2 (en) 2019-10-07 2019-10-07 Machining program creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019184662A JP7548690B2 (en) 2019-10-07 2019-10-07 Machining program creation device

Publications (2)

Publication Number Publication Date
JP2021060806A JP2021060806A (en) 2021-04-15
JP7548690B2 true JP7548690B2 (en) 2024-09-10

Family

ID=75380238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019184662A Active JP7548690B2 (en) 2019-10-07 2019-10-07 Machining program creation device

Country Status (1)

Country Link
JP (1) JP7548690B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013012051A (en) 2011-06-29 2013-01-17 Jtekt Corp Machine control program formulating device
WO2014155723A1 (en) 2013-03-29 2014-10-02 三菱電機株式会社 Numerical control device
JP2018069378A (en) 2016-10-28 2018-05-10 ファナック株式会社 Information processing device
JP6584697B1 (en) 2018-07-11 2019-10-02 三菱電機株式会社 Machine learning device, numerically controlled machining program generation device, and machine learning method
JP6599069B1 (en) 2018-12-13 2019-10-30 三菱電機株式会社 Machine learning device, machining program generation device, and machine learning method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013012051A (en) 2011-06-29 2013-01-17 Jtekt Corp Machine control program formulating device
WO2014155723A1 (en) 2013-03-29 2014-10-02 三菱電機株式会社 Numerical control device
JP2018069378A (en) 2016-10-28 2018-05-10 ファナック株式会社 Information processing device
JP6584697B1 (en) 2018-07-11 2019-10-02 三菱電機株式会社 Machine learning device, numerically controlled machining program generation device, and machine learning method
JP6599069B1 (en) 2018-12-13 2019-10-30 三菱電機株式会社 Machine learning device, machining program generation device, and machine learning method

Also Published As

Publication number Publication date
JP2021060806A (en) 2021-04-15

Similar Documents

Publication Publication Date Title
US9846424B2 (en) Numerical control apparatus
JP5543534B2 (en) Numerical control device with program restart function
CN110405532B (en) Tool selection device and machine learning device
US20130338809A1 (en) Simulation apparatus of numerical controller
KR20120085420A (en) Cutting shape input apparatus and method using interactive program in computer numarical control machine tools
US20160224014A1 (en) Numerical controller capable of partial correction of machining cycle
CN103984288A (en) Automatic graphics parameterized programming system of numerical control honing machine
JPH09507439A (en) Interactive machine control device and method
JP2019159478A (en) Controller, data creation device, and control method and control program
JP2017094402A (en) Numerical control system linked with tool catalogue database
JP6865055B2 (en) Machining load analysis device, machining load analysis program, and machining load analysis system
JP2008059518A (en) Post-processor development support system and cam system using the same
KR101405039B1 (en) Manufacturing process automation method and system
JP5088826B2 (en) Processing condition generator
JP7548690B2 (en) Machining program creation device
CN116057486B (en) Post-processor development assistance device, post-processor development assistance system, and computer-executable method
US20150066203A1 (en) Control unit for centralizing control by grouping a plurality of paths
JP2009211369A (en) Operation simulator for numerically controlled machine
JP6316919B2 (en) Numerical control device for machine tools
JP2005189215A (en) Waveform display device
US11231699B2 (en) Program analysis device
JP5763352B2 (en) NC program creation device
JP2018197989A (en) Numerical control apparatus
KR101610386B1 (en) Cutting shape input apparatus and method using cutting program in computer numarical control machine tools
KR100205337B1 (en) N.c program simulation device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220819

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220829

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240227

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240424

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: 20240730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240829

R150 Certificate of patent or registration of utility model

Ref document number: 7548690

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150