JPWO2020179798A1 - Machining program conversion device, numerical control device, machining program conversion method and machine learning device - Google Patents

Machining program conversion device, numerical control device, machining program conversion method and machine learning device Download PDF

Info

Publication number
JPWO2020179798A1
JPWO2020179798A1 JP2020540366A JP2020540366A JPWO2020179798A1 JP WO2020179798 A1 JPWO2020179798 A1 JP WO2020179798A1 JP 2020540366 A JP2020540366 A JP 2020540366A JP 2020540366 A JP2020540366 A JP 2020540366A JP WO2020179798 A1 JPWO2020179798 A1 JP WO2020179798A1
Authority
JP
Japan
Prior art keywords
tool
machining
path
point
distance
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
JP2020540366A
Other languages
Japanese (ja)
Other versions
JP6808106B1 (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 JP6808106B1 publication Critical patent/JP6808106B1/en
Publication of JPWO2020179798A1 publication Critical patent/JPWO2020179798A1/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/41Numerical 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 interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that path
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Automation & Control Theory (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Numerical Control (AREA)

Abstract

加工プログラム変換装置(100)は、工具経路上に設けられた複数の指令点(P)の間に曲線経路(TP)を生成する曲線経路生成部(104)と、曲線経路(TP)上に設けた点を評価点(Q)とし、工具と加工曲面が接触する点を基準点(C)とした場合に、評価点(Q)と基準点(C)との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部(107)と、距離Lが、許容範囲以内か否かを判断する曲線経路評価部(108)と、距離Lが許容範囲から外れている場合に、許容範囲から外れている評価点のみを、距離Lが許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点(R)とし、工具経路を修正する工具経路修正部(109)と、修正された工具経路を外部装置に出力するためのプログラムに変換する変換後加工プログラム出力部(110)とを備える。 The machining program conversion device (100) has a curve path generation unit (104) that generates a curve path (TP) between a plurality of command points (P) provided on the tool path, and a curve path (TP) on the curve path (TP). When the provided point is set as the evaluation point (Q) and the point where the tool and the machining curve come into contact is set as the reference point (C), the tolerance for the distance L, which is the distance between the evaluation point (Q) and the reference point (C). Allowable dimension tolerance input unit (107) for inputting range values, curve path evaluation unit (108) for determining whether the distance L is within the allowable range, and when the distance L is out of the allowable range , Only the evaluation points that are out of the permissible range are moved to a position where the distance L is within the permissible range, and the evaluation points after the movement are set as new command points (R), and the tool path correction unit that corrects the tool path ( It includes a 109) and a post-conversion machining program output unit (110) that converts the modified tool path into a program for outputting to an external device.

Description

本開示は、数値制御加工プログラムを変換する加工プログラム変換装置、数値制御装置、加工プログラム変換方法および機械学習装置に関する。 The present disclosure relates to a machining program conversion device for converting a numerically controlled machining program, a numerical control device, a machining program conversion method, and a machine learning device.

数値制御装置により加工対象物を加工するためには、加工対象物または数値制御装置により制御される工作機械(以下、単に「数値制御工作機械」と称する)に装着された工具を、予め設定された経路に移動させるための移動指令が記述された数値制御加工プログラム(以下、単に「加工プログラム」と称する)が用いられる。加工プログラムは、例えば、市販のCAD(Computer−Aided Design)/CAM(Computer−Aided Manufacturing)システムによって作成され、Gコード及びマクロ文など文字列の所定のフォーマットで記述される。 In order to machine an object to be machined by a numerical control device, a tool mounted on the object to be machined or a machine tool controlled by the numerical control device (hereinafter, simply referred to as "numerical control machine tool") is set in advance. A numerically controlled machining program (hereinafter, simply referred to as a "machining program") in which a movement command for moving to the same path is described is used. The processing program is created by, for example, a commercially available CAD (Computer-Aided Design) / CAM (Computer-Aided Manufacturing) system, and is described in a predetermined format of a character string such as a G code and a macro sentence.

従来、自由曲面を有する形状の加工を行う際には、CAD/CAMシステムを利用して加工対象の曲面(以下、単に「加工曲面」と称する)に接するようにして仮想的に工具を移動させた理想的な経路を、加工プログラムで点列化して指令点を生成し、各指令点を結んだ微小線分によって近似した経路を作成した後、数値制御工作機械によってその工具経路に沿って工具を移動させて加工対象物を切削加工することが行われている。 Conventionally, when machining a shape having a free curved surface, a CAD / CAM system is used to virtually move the tool so as to be in contact with the curved surface to be machined (hereinafter, simply referred to as "machined curved surface"). The ideal path is sequenced by a machining program to generate command points, a path approximated by a minute line segment connecting each command point is created, and then a numerically controlled machine tool is used to create a tool along the tool path. Is being moved to cut the object to be machined.

CAD/CAMシステムから出力される工具経路は、数値制御装置が解釈できるGコードの移動指令として加工プログラムに記述され、加工プログラムは数値制御工作機械が有する数値制御装置に入力される。数値制御装置は、加工プログラムを読み取り解釈することによって、移動指令から補間周期ごとに工具経路を補間した補間データを作成する。数値制御装置は、作成した補間データによって数値制御工作機械の各軸を制御し、工具を所望の位置に移動させることにより、加工対象物を加工する。 The tool path output from the CAD / CAM system is described in the machining program as a G-code movement command that can be interpreted by the numerical control device, and the machining program is input to the numerical control device of the numerical control machine tool. The numerical control device reads and interprets the machining program to create interpolation data in which the tool path is interpolated for each interpolation cycle from the movement command. The numerical control device controls each axis of the numerically controlled machine tool by the created interpolation data, and moves the tool to a desired position to machine the object to be machined.

上述の手順により生成された工具経路を用いて加工を行う場合、微小線分によって表現された直線上を補間することにより加工されるため、加工品質が低下してしまう。このような場合に、工具経路から近似的に曲線経路を生成し、生成した曲線経路を補間して加工することが行われている。これにより、滑らかな加工結果を得ることが期待できる。 When machining is performed using the tool path generated by the above procedure, the machining quality is deteriorated because the machining is performed by interpolating on the straight line represented by the minute line segment. In such a case, a curved path is approximately generated from the tool path, and the generated curved path is interpolated and processed. As a result, smooth processing results can be expected.

例えば、特許文献1には、工具経路上に等間隔で複数の目標点を設定し、複数の目標点に基づいて近似曲線を演算し、近似曲線に沿った工具経路を生成することを特徴とした工具経路の生成方法が開示されている。 For example, Patent Document 1 is characterized in that a plurality of target points are set at equal intervals on a tool path, an approximate curve is calculated based on the plurality of target points, and a tool path along the approximate curve is generated. The method of generating the tool path is disclosed.

特開2011−96077号公報Japanese Unexamined Patent Publication No. 2011-96077

しかしながら、特許文献1に記載の工具経路の生成方法および工具経路の生成装置では、微小線分がつくる工具経路から近似的に曲線経路を生成するため、生成した曲線経路が所望の加工曲面と一致する保証がなく、加工結果が所望の加工曲面の形状とかけ離れてしまうという課題があった。また、所望の加工精度を得られなかったために追加加工が必要となり、CAD/CAMシステムに戻って工具経路を作成し直し、再度加工プログラムを出力する工程等が発生し、作業者の作業効率が低下するという課題があった。 However, in the tool path generation method and the tool path generation device described in Patent Document 1, since the curved path is approximately generated from the tool path created by the minute line segment, the generated curved path matches the desired machined curved surface. There is no guarantee that the machining result will be performed, and there is a problem that the machining result is far from the desired shape of the machining curved surface. In addition, since the desired machining accuracy could not be obtained, additional machining is required, and a process of returning to the CAD / CAM system to recreate the tool path and outputting the machining program again occurs, which improves the work efficiency of the operator. There was a problem of lowering.

本開示は、上述のような問題を解決するためになされたもので、加工対象物の加工結果の加工精度を向上させることができる加工プログラム変換装置および数値制御装置を提供することを目的とする。 The present disclosure has been made to solve the above-mentioned problems, and an object of the present disclosure is to provide a machining program conversion device and a numerical control device capable of improving the machining accuracy of the machining result of a machining object. ..

上述した課題を解決し、目的を達成するために、本開示にかかる加工プログラム変換装置は、工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、移動指令に従い工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するか否かを判断するために曲線経路上に設けた点を評価点とし、工具と加工曲面が接触する点を基準点とした場合に、評価点と基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部と、距離Lが、許容寸法公差入力部に入力された、許容範囲の値以内か否かを判断する曲線経路評価部と、距離Lが許容範囲から外れている場合に、許容範囲から外れている評価点のみを、距離Lが許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、工具経路を修正する工具経路修正部とを備える。 In order to solve the above-mentioned problems and achieve the object, the machining program conversion device according to the present disclosure is provided on the tool path according to the movement command based on the tool path obtained from the machining program in which the movement command for the tool is described. To determine whether or not the curve path generator that generates a curve path between a plurality of command points and the tool that operates according to the curve path operates along the machined curved surface that is the finished shape of the object to be machined. When the point provided on the curved path is set as the evaluation point and the point where the tool and the machined curved surface come into contact with each other is set as the reference point, the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input. When the allowable dimension tolerance input unit, the curve path evaluation unit for determining whether the distance L is within the allowable range value input to the allowable dimension tolerance input unit, and the distance L are out of the allowable range, Only the evaluation points that are out of the permissible range are moved to a position where the distance L is within the permissible range, the evaluation points after the movement are set as new command points, and a tool path correction unit that corrects the tool path is provided.

また、本開示に係る数値制御装置は、工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、移動指令に従い工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するかを判断するために曲線経路上に設けた点を評価点とし、工具と前記加工曲面が接触する点を基準点とした場合に、評価点と基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部と、距離Lが、許容寸法公差入力部に入力された、許容範囲の値以内か否かを判断する曲線経路評価部と、距離Lが前記許容範囲から外れている場合に、許容範囲から外れている評価点のみを、距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、工具経路を修正する工具経路修正部とを備える。 Further, the numerical control device according to the present disclosure generates a curved path between a plurality of command points provided on the tool path according to the movement command based on the tool path obtained from the machining program in which the movement command for the tool is described. The evaluation point is a point provided on the curved path to determine whether the curved path generator and the tool operating according to the curved path operate along the machined curved surface which is the finished shape of the object to be machined. When the point where the machined curved surface contacts is used as the reference point, the allowable dimension tolerance input unit in which the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input, and the distance L is the allowable dimension tolerance. Only the curve path evaluation unit that determines whether or not the value is within the permissible range and the evaluation points that are out of the permissible range when the distance L is out of the permissible range, which are input to the input unit, are the distance L. Is moved to a position within the permissible range, the evaluation point after the movement is set as a new command point, and a tool path correction unit for correcting the tool path is provided.

本開示に係る加工プログラム変換装置によれば、曲線経路上の評価点と、加工曲面上に設けた基準点との距離が許容範囲以下となるように工具経路を修正することで、加工対象物の加工結果の加工精度を向上させることができる。
また、本開示に係る数値制御装置によれば、修正された工具経路に従って数値制御することが可能となるため、作業効率を向上できる。
According to the machining program conversion device according to the present disclosure, the machining object is processed by modifying the tool path so that the distance between the evaluation point on the curved path and the reference point provided on the machining curved surface is less than the permissible range. It is possible to improve the processing accuracy of the processing result of.
Further, according to the numerical control device according to the present disclosure, it is possible to perform numerical control according to the modified tool path, so that the work efficiency can be improved.

実施の形態1及び実施の形態2に係る加工プログラム変換装置の構成を示した図である。It is a figure which showed the structure of the processing program conversion apparatus which concerns on Embodiment 1 and Embodiment 2. 実施の形態1に係る加工プログラム変換装置の動作のフローチャートである。It is a flowchart of the operation of the machining program conversion apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る加工プログラム変換装置が加工プログラムから読み取った工具経路の一例を示した図である。It is a figure which showed an example of the tool path read from the machining program by the machining program conversion apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る加工プログラム変換装置が加工プログラムから読み取った工具経路に従って生成された曲線経路の一例を示した図である。It is a figure which showed an example of the curved path generated by the machining program conversion apparatus which concerns on Embodiment 1 according to the tool path read from the machining program. 実施の形態1から3において、工具経路上を通過する工具の一例を示した図である。It is a figure which showed an example of the tool which passes on the tool path in Embodiments 1 to 3. 実施の形態1に係る加工プログラム変換装置において、工具経路で加工される仕上がり形状の一例を示した図である。It is a figure which showed an example of the finished shape machined by the tool path in the machining program conversion apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る加工プログラム変換装置において、曲線経路と仕上り形状とが対応するように配置した状態を断面方向から示した図である。FIG. 5 is a diagram showing a state in which a curved path and a finished shape are arranged so as to correspond to each other in the machining program conversion apparatus according to the first embodiment from the cross-sectional direction. 実施の形態1に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other, taking the case of a ball end mill tool as an example in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface are in contact with each other, taking as an example a case where a ball end mill tool is used in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface interfere with each other, taking as an example a case where a ball end mill tool is used in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、フラットエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other by taking the case of a flat end mill tool as an example in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、フラットエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface are in contact with each other, taking as an example a case where a flat end mill tool is used in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、フラットエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface interfere with each other, taking as an example a case where a flat end mill tool is used in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、ラジアスエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other by taking the case of a radius end mill tool as an example in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、ラジアスエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are in contact with each other, taking as an example the case where the machining program conversion device according to the first embodiment is a radius end mill tool. 実施の形態1に係る加工プログラム変換装置において、ラジアスエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface interfere with each other, taking as an example a case where a radius end mill tool is used in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、工具と加工曲面とが接するように評価点を移動させ、新たな指令点を追加する様子の一例を示した図である。FIG. 5 is a diagram showing an example of a state in which an evaluation point is moved so that a tool and a machining curved surface are in contact with each other and a new command point is added in the machining program conversion apparatus according to the first embodiment. 実施の形態1に係る加工プログラム変換装置において、新たな指令点を追加することにより修正した工具経路を示した図である。It is a figure which showed the tool path corrected by adding a new command point in the machining program conversion apparatus which concerns on Embodiment 1. FIG. 実施の形態2に係る加工プログラム変換装置の動作のフローチャートである。It is a flowchart of the operation of the machining program conversion apparatus which concerns on Embodiment 2. FIG. 実施の形態2に係る加工プログラム変換装置が加工プログラムから読み取った工具経路の一例を示した図である。It is a figure which showed an example of the tool path read from the machining program by the machining program conversion apparatus which concerns on Embodiment 2. FIG. 実施の形態2に係る加工プログラム変換装置において、隣接した3点の指令点から真ん中の点を除外した後の2点を通過する曲線経路の一例を示した図である。FIG. 5 is a diagram showing an example of a curved path passing through two points after excluding the middle point from three adjacent command points in the machining program conversion apparatus according to the second embodiment. 実施の形態2に係る加工プログラム変換装置において、工具経路で加工される仕上がり形状の一例を示した図である。It is a figure which showed an example of the finished shape machined by the tool path in the machining program conversion apparatus which concerns on Embodiment 2. FIG. 実施の形態2に係る加工プログラム変換装置において、曲線経路と仕上り形状とが対応するように配置した状態を断面方向から示した図である。FIG. 5 is a diagram showing a state in which a curved path and a finished shape are arranged so as to correspond to each other in the machining program conversion apparatus according to the second embodiment from the cross-sectional direction. 実施の形態2に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other, taking the case of a ball end mill tool as an example in the machining program conversion apparatus according to the second embodiment. 実施の形態2に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface are in contact with each other, taking as an example a case where a ball end mill tool is used in the machining program conversion apparatus according to the second embodiment. 実施の形態2に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 5 is a diagram showing a state in which a tool and a machining curved surface interfere with each other, taking as an example a case where a ball end mill tool is used in the machining program conversion apparatus according to the second embodiment. 実施の形態2に係る加工プログラム変換装置において、工具経路から指令点を削除して工具経路を修正した一例を示した図である。It is a figure which showed an example which corrected the tool path by deleting a command point from a tool path in the machining program conversion apparatus which concerns on Embodiment 2. FIG. 実施の形態3に係る数値制御装置の構成を示した図である。It is a figure which showed the structure of the numerical control apparatus which concerns on Embodiment 3. 実施の形態3に係る数値制御装置の動作のフローチャートである。It is a flowchart of the operation of the numerical control device which concerns on Embodiment 3. 実施の形態4に係る機械学習装置の構成例を示す図である。It is a figure which shows the structural example of the machine learning apparatus which concerns on Embodiment 4.

以下に、本開示の実施の形態に係る加工プログラム変換装置、数値制御装置、加工プログラム変換方法および機械学習装置を図面に基づいて説明する。なお、この実施の形態に限定されるものではない。 Hereinafter, the machining program conversion device, the numerical control device, the machining program conversion method, and the machine learning device according to the embodiment of the present disclosure will be described with reference to the drawings. It should be noted that the present invention is not limited to this embodiment.

実施の形態1.
図1は、実施の形態1に係る加工プログラム変換装置の構成例を示す図である。加工プログラム変換装置100は、外部から入力される加工プログラムを受け取る加工プログラム入力部101と、入力された加工プログラムを解析し、工具経路を求める加工プログラム解析部102と、加工プログラム解析部102で求めた工具経路が記憶される工具経路記憶部103と、工具経路記憶部103に記憶された工具経路に従って曲線経路を生成する曲線経路生成部104と、工具のデータを入力する工具データ入力部105と、加工対象物の加工後の形状データを入力する形状データ入力部106と、工具が加工対象物の加工曲面に沿って動作するかを判断するため曲線経路上に設けた点と加工曲面との距離の許容範囲を入力する許容寸法公差入力部107と、曲線経路上に設けた点と加工曲面との距離が許容範囲内か否かを判断する曲線経路評価部108と、工具経路を修正する工具経路修正部109と、変換後加工プログラム出力部110と、を備える。変換後加工プログラム出力部110は、所定の変換方法に従って、工具経路を修正した後の加工プログラムを変換し、外部装置である数値制御装置111に出力される。なお、本実施の形態においては外部装置が数値制御装置である場合について説明するが、外部装置は数値制御装置に限定されず、例えばプログラム確認装置や、工具経路表示装置等であってもよい。
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a machining program conversion apparatus according to the first embodiment. The machining program conversion device 100 is obtained by a machining program input unit 101 that receives a machining program input from the outside, a machining program analysis unit 102 that analyzes the input machining program and obtains a tool path, and a machining program analysis unit 102. A tool path storage unit 103 that stores the tool path, a curve path generation unit 104 that generates a curve path according to the tool path stored in the tool path storage unit 103, and a tool data input unit 105 that inputs tool data. , The shape data input unit 106 for inputting the shape data of the machined object after machining, and the points provided on the curved path and the machined curved surface for determining whether the tool operates along the machined curved surface of the machined object. Allowable dimension tolerance input unit 107 for inputting the allowable range of distance, curved path evaluation unit 108 for determining whether the distance between a point provided on the curved path and the machined curved surface is within the allowable range, and modifying the tool path. A tool path correction unit 109 and a post-conversion machining program output unit 110 are provided. The post-conversion machining program output unit 110 converts the machining program after correcting the tool path according to a predetermined conversion method, and outputs the machining program to the numerical control device 111 which is an external device. In the present embodiment, the case where the external device is a numerical control device will be described, but the external device is not limited to the numerical control device, and may be, for example, a program confirmation device, a tool path display device, or the like.

図2は、実施の形態1に係る加工プログラム変換装置100の動作例を示すフローチャートである。図2に基づき、加工プログラム変換装置100が工具経路を生成または修正する動作の手順について説明する。 FIG. 2 is a flowchart showing an operation example of the machining program conversion apparatus 100 according to the first embodiment. Based on FIG. 2, the procedure of the operation in which the machining program converter 100 generates or corrects the tool path will be described.

加工プログラム変換装置100が工具経路を生成する動作においては、まず、加工プログラムが加工プログラム変換装置100に入力される(ステップS101)。すなわち、加工プログラム変換装置100において、加工プログラム入力部101が工作機械を制御するための加工プログラムを外部から読み込む。加工プログラムには、加工対象物である被加工物または工具を、予め設定された経路に移動させるための移動指令が記述されている。 In the operation of the machining program conversion device 100 to generate the tool path, the machining program is first input to the machining program conversion device 100 (step S101). That is, in the machining program conversion device 100, the machining program input unit 101 reads a machining program for controlling the machine tool from the outside. The machining program describes a movement command for moving the workpiece or tool, which is the object to be machined, to a preset path.

ステップS101で実行する加工プログラムの入力は、CAD/CAMシステムにより出力された、例えばGコードのフォーマット記述されたファイルを読込むことにより実現される。または、作業者がキーボードなどの入力機器を操作することにより必要な情報を入力して加工プログラムを作成することにより実現される。 The input of the machining program executed in step S101 is realized by reading the file in which the format of the G code is described, which is output by the CAD / CAM system. Alternatively, it is realized by the operator creating a machining program by inputting necessary information by operating an input device such as a keyboard.

加工プログラム変換装置100は、次に、ステップS101を実行して取得した加工プログラムを加工プログラム解析部102で解析し、加工プログラムに記述された工具経路を求める(ステップS102)。具体的には、Gコード等で記述された加工プログラムの読み取り、つまり工具経路情報の読み取りを行う。読み取った工具経路は、工具経路記憶部103に記憶される(ステップS103)。図3は、加工プログラムから変換する工具経路の一例である。図3において、工具経路は、指令点P1〜P6を有し、各指令点間を直線で結んだものである。ここで、指令点とは、加工プログラムで指令される点をいう。各指令点間の間隔は、加工プログラムで予め決められている。 Next, the machining program conversion device 100 analyzes the machining program acquired by executing step S101 by the machining program analysis unit 102, and obtains the tool path described in the machining program (step S102). Specifically, the machining program described in G code or the like is read, that is, the tool path information is read. The read tool path is stored in the tool path storage unit 103 (step S103). FIG. 3 is an example of a tool path converted from a machining program. In FIG. 3, the tool path has command points P1 to P6, and each command point is connected by a straight line. Here, the command point means a point commanded by the machining program. The interval between each command point is predetermined by the machining program.

次に、曲線経路生成部104において、工具経路記憶部103に記憶された工具経路に従って、各々の隣接した指令点の間に曲線経路を生成する(ステップS104)。図4は、指令点P1〜P6を有する工具経路に従って生成された曲線経路の一例を示す。図4に示した曲線経路は、各指令点の間を曲線経路TP1〜TP6に沿って工具が通過するように生成したものである。 Next, the curve path generation unit 104 generates a curve path between the adjacent command points according to the tool path stored in the tool path storage unit 103 (step S104). FIG. 4 shows an example of a curved path generated according to a tool path having command points P1 to P6. The curved path shown in FIG. 4 is generated so that the tool passes between the command points along the curved paths TP1 to TP6.

また、加工プログラム変換装置100が生成する曲線経路は、数値制御装置111が動く曲線、つまり、数値制御装置111が加工する加工対象物の形状を作れるような曲線と同じ曲線である必要がある。よって、曲線経路の生成方法は、加工プログラム変換装置100に入力された加工プログラムが最終的に入力される数値制御装置111における曲線経路の生成方法と同一であることが望ましい。曲線経路を生成する方法の他の例としては、例えば各々の指令点を通過するようにスプライン曲線を補間する方法などがある。 Further, the curve path generated by the machining program conversion device 100 needs to be the same curve as the curve on which the numerical control device 111 moves, that is, the curve on which the shape of the machining object to be machined by the numerical control device 111 can be formed. Therefore, it is desirable that the method of generating the curve path is the same as the method of generating the curve path in the numerical control device 111 in which the machining program input to the machining program conversion device 100 is finally input. Another example of a method of generating a curved path is, for example, a method of interpolating a spline curve so as to pass through each command point.

工具データ入力部105には、工具データが外部入力される(ステップS105)。工具データは、加工対象物を加工するための工具の形状を定義する情報であり、工具の種別を表現する情報、工具径、工具刃先半径および工具長といった工具の形状を表現する情報を含む。また、テーパ等を有する工具形状の場合、工具データ入力部105には、工具の中心軸に対する工具外径母線の傾きの情報などが与えられても良いし、旋削工具等の非対称な形状である工具の情報が与えられてもよい。外部入力は、作業者によるキーボードなどの入力操作、CADデータからのデータ変換などの方法による。加工プログラム変換装置100は、工具データに基づいて工具モデルを生成することが可能である。図5は、工具経路上を通過する工具の一例を示す。工具T10は、工具データに基づき生成されたボールエンドミルの形状である。 Tool data is externally input to the tool data input unit 105 (step S105). The tool data is information that defines the shape of the tool for machining the object to be machined, and includes information that expresses the type of the tool and information that expresses the shape of the tool such as the tool diameter, the tool cutting edge radius, and the tool length. Further, in the case of a tool shape having a taper or the like, the tool data input unit 105 may be given information on the inclination of the tool outer diameter bus with respect to the central axis of the tool, or has an asymmetric shape such as a turning tool. Tool information may be given. External input is performed by an input operation such as a keyboard by an operator, data conversion from CAD data, or the like. The machining program conversion device 100 can generate a tool model based on the tool data. FIG. 5 shows an example of a tool passing on the tool path. The tool T10 is the shape of a ball end mill generated based on the tool data.

形状データ入力部106には、形状データが外部入力される(ステップS105)。形状データは、加工対象物の加工後の形状を定義する情報であり、加工対象物の目標の形状である仕上り形状を生成できる情報である。仕上り形状は、加工すべき曲面である加工曲面S1を有する。また、仕上り形状は、加工プログラムに従って工作機械が加工対象物を加工することにより、結果として加工される加工物の理想的な形状である。工作機械は、仕上り形状と加工物との誤差が少なくなるように加工対象物を加工する。外部入力は、作業者によるキーボードなどの入力操作、CADデータからのデータ変換などの方法による。 Shape data is externally input to the shape data input unit 106 (step S105). The shape data is information that defines the shape of the object to be processed after processing, and is information that can generate a finished shape that is the target shape of the object to be processed. The finished shape has a processed curved surface S1 which is a curved surface to be processed. Further, the finished shape is an ideal shape of the workpiece to be machined as a result of the machine tool machining the object to be machined according to the machining program. The machine tool processes the object to be processed so that the error between the finished shape and the workpiece is reduced. External input is performed by an input operation such as a keyboard by an operator, data conversion from CAD data, or the like.

図6は、工具経路で加工される仕上がり形状の一例である。図6に示した仕上り形状M1は、形状データ入力部106に入力された形状データに基づいて生成されるもので、加工曲面S1を有する。 FIG. 6 is an example of a finished shape machined by a tool path. The finished shape M1 shown in FIG. 6 is generated based on the shape data input to the shape data input unit 106, and has a processed curved surface S1.

図7は、曲線経路と仕上り形状M1とが対応するように配置した状態を断面方向から示し、さらに一例として、曲線経路TP3上に評価点Q1〜Q5を設定した図である。ここで、評価点は、曲線経路に従って動作する工具が、加工対象物の加工曲面に沿って動作するか否かを判断するために曲線経路上に設けた点をいう。評価点の求め方は、例えば曲線経路上を曲線パラメータが等間隔となるようにサンプリングした点として求める方法や、隣接する評価点を結んだ線分と曲線経路の間の最大誤差が所定の値以下となるまで繰り返し処理によって求める方法がある。 FIG. 7 shows a state in which the curved path and the finished shape M1 are arranged so as to correspond to each other from the cross-sectional direction, and as an example, the evaluation points Q1 to Q5 are set on the curved path TP3. Here, the evaluation point refers to a point provided on the curved path in order to determine whether or not the tool operating according to the curved path operates along the machining curved surface of the object to be machined. The evaluation points can be obtained, for example, as points sampled on the curve path so that the curve parameters are evenly spaced, or the maximum error between the line segment connecting adjacent evaluation points and the curve path is a predetermined value. There is a method of obtaining by iterative processing until the following is obtained.

図8、図9、図10は、工具がボールエンドミル工具(以下、工具T10とする。)である場合における、工具T10と加工曲面S1の関係を示す図である。図8は、加工曲面S1と工具T10が離れている状態にある様子を示している。図8において、工具T10と加工曲面S1の距離が最短となる加工曲面S1上の点を、基準点C1とする。基準点C1は、後述するステップS106において工具上に配置した評価点Qと加工曲面S1の距離が最短となる、加工曲面S1上の点でもある。ここで、評価点Qと基準点C1の距離を距離L1とする。 8, 9, and 10 are diagrams showing the relationship between the tool T10 and the machining curved surface S1 when the tool is a ball end mill tool (hereinafter referred to as a tool T10). FIG. 8 shows a state in which the machining curved surface S1 and the tool T10 are separated from each other. In FIG. 8, the point on the machining curved surface S1 where the distance between the tool T10 and the machining curved surface S1 is the shortest is defined as the reference point C1. The reference point C1 is also a point on the machining curved surface S1 in which the distance between the evaluation point Q arranged on the tool and the machining curved surface S1 in step S106, which will be described later, is the shortest. Here, the distance between the evaluation point Q and the reference point C1 is defined as the distance L1.

図9は、加工曲面S1と工具T10が接している状態にある様子を示している。図9において、工具T10と加工曲面S1が接触する点を基準点C2とする。基準点C2は工具T10が加工曲面S1を切削するときの切削点でもある。評価点Qと基準点C2の距離を距離L2とすると、距離L2は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 9 shows a state in which the machining curved surface S1 and the tool T10 are in contact with each other. In FIG. 9, the point where the tool T10 and the machining curved surface S1 come into contact is defined as the reference point C2. The reference point C2 is also a cutting point when the tool T10 cuts the machining curved surface S1. Assuming that the distance between the evaluation point Q and the reference point C2 is the distance L2, the distance L2 is the most ideal value for machining an object to be machined with a machine tool.

図10は、工具T10が加工曲面S1に干渉する状態にある様子を示している。図10において、工具T10の評価点Qと加工曲面S1との距離が最短となる、加工曲面S1上の点を基準点C3とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具をオフセットし、オフセット工具と加工曲面が接触した点を基準点C3として求めることもできる。基準点C3は、図10において点線で示した工具T10オフセットと加工曲面S1とが接触している点であるともいえる。ここで、評価点Qと基準点C3の距離を距離L3とする。 FIG. 10 shows how the tool T10 is in a state of interfering with the machining curved surface S1. In FIG. 10, the point on the machining curved surface S1 where the distance between the evaluation point Q of the tool T10 and the machining curved surface S1 is the shortest is set as the reference point C3. Further, in the case where the tool and the machined curved surface interfere with each other, the tool may be offset until the tool and the machined surface come into contact with each other, and the point where the offset tool and the machined surface contact with each other may be obtained as the reference point C3. it can. It can be said that the reference point C3 is a point where the tool T10 offset shown by the dotted line in FIG. 10 and the machining curved surface S1 are in contact with each other. Here, the distance between the evaluation point Q and the reference point C3 is defined as the distance L3.

ここで、距離Lに対する許容範囲について、距離L2を2.00mmと仮定した場合について説明する。ある加工対象物の加工曲面の寸法公差が、標準公差に対して±0.05mmであったとすれば、距離L1については2.00mm<距離L1≦2.05mm、距離L3については1.95mm≦距離L3<2.00mmとなる。よって、距離Lの許容範囲は、1.95mm≦距離L≦2.05mmとなる。 Here, the case where the distance L2 is assumed to be 2.00 mm will be described with respect to the allowable range with respect to the distance L. Assuming that the dimensional tolerance of the processing curved surface of a certain processing object is ± 0.05 mm with respect to the standard tolerance, the distance L1 is 2.00 mm <distance L1 ≤ 2.05 mm, and the distance L3 is 1.95 mm ≤. The distance L3 <2.00 mm. Therefore, the permissible range of the distance L is 1.95 mm ≦ the distance L ≦ 2.05 mm.

なお、図8、図9、図10において、工具T10の評価点Qを、工具T10の中心軸かつ先端付近に設けているが、評価点Qは、例えば工具の先端に設けられても良いし、工具T10上の加工対象物を切削する部分または点に設けられてもよいし、工具T10と加工曲面S1の距離が最短となるような工具T10上の点に設けられても良い。ただし、工具上の特定の位置を評価点Qとして設定した後、設定した評価点Qで距離Lを評価する。 In FIGS. 8, 9, and 10, the evaluation point Q of the tool T10 is provided on the central axis and near the tip of the tool T10, but the evaluation point Q may be provided on the tip of the tool, for example. , It may be provided at a portion or a point on the tool T10 where the object to be machined is cut, or it may be provided at a point on the tool T10 such that the distance between the tool T10 and the machining curved surface S1 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.

許容寸法公差入力部107では、距離Lに対する許容範囲が入力される(ステップS105)。許容範囲の値は、加工対象物のそれぞれが目標とする加工精度によって決まる。また、形状データ入力部106において入力される形状データが、加工対象物の加工曲面に対する加工公差の情報を有する場合は、加工公差に従って許容範囲の値を求めても良い。この場合、加工部位に応じて許容範囲を自動で設定することができ、作業効率が向上する。なお、距離Lに対する許容範囲は許容寸法公差ともいうことができる。 The permissible dimension tolerance input unit 107 inputs the permissible range with respect to the distance L (step S105). The value of the allowable range is determined by the machining accuracy targeted by each of the objects to be machined. Further, when the shape data input by the shape data input unit 106 has information on the machining tolerance with respect to the machining curved surface of the machining object, the value of the allowable range may be obtained according to the machining tolerance. In this case, the allowable range can be automatically set according to the machined portion, and the work efficiency is improved. The allowable range with respect to the distance L can also be referred to as an allowable dimensional tolerance.

さらに、許容寸法公差入力部107に入力される許容範囲の値は、工具と仕上り形状の間の最短距離の許容範囲であってもよい。例えば、ある加工対象物の加工曲面の寸法公差が標準公差に対して±0.05mmであったとすれば、工具と仕上り形状の加工曲面との最短距離の差が0.05mm以内となればよいため、許容範囲の値は、0.05mmとして与える。 Further, the value of the allowable range input to the allowable dimension tolerance input unit 107 may be the allowable range of the shortest distance between the tool and the finished shape. For example, if the dimensional tolerance of the machined curved surface of a certain object to be machined is ± 0.05 mm with respect to the standard tolerance, the difference in the shortest distance between the tool and the machined surface of the finished shape should be within 0.05 mm. Therefore, the value of the allowable range is given as 0.05 mm.

なお、本実施の形態において、距離Lに対する許容範囲は許容寸法公差入力部107に入力されるが、距離Lに対する許容範囲の値は、あらかじめ図示しない加工プログラム変換装置100の許容寸法公差記憶部に記憶されてもよい。 In the present embodiment, the permissible range for the distance L is input to the permissible dimension tolerance input unit 107, but the value of the permissible range for the distance L is input to the permissible dimension tolerance storage unit of the machining program conversion device 100 (not shown in advance). It may be remembered.

図11、図12、図13は、工具がフラットエンドミル工具(以下、工具T11とする。)である場合における、工具T11と加工曲面S2の関係を示す図である。図11は、加工曲面S2と工具T11が離れている状態にある様子を示している。図11において、工具T11と加工曲面S2の距離が最短となる加工曲面S2上の点を、基準点C2とする。評価点Qと基準点C11の距離を距離L11とする。 11, 12, and 13 are diagrams showing the relationship between the tool T11 and the machining curved surface S2 when the tool is a flat end mill tool (hereinafter referred to as a tool T11). FIG. 11 shows a state in which the machining curved surface S2 and the tool T11 are separated from each other. In FIG. 11, the point on the machining curved surface S2 where the distance between the tool T11 and the machining curved surface S2 is the shortest is defined as the reference point C2. The distance between the evaluation point Q and the reference point C11 is defined as the distance L11.

図12は、加工曲面S2と工具T11が接している状態にある様子を示している。図12において、工具T11と加工曲面S2が接する点を基準点C12とする。評価点Qと基準点C12の距離を距離L12とすると、距離L12は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 12 shows a state in which the machining curved surface S2 and the tool T11 are in contact with each other. In FIG. 12, the point where the tool T11 and the machining curved surface S2 meet is defined as the reference point C12. Assuming that the distance between the evaluation point Q and the reference point C12 is the distance L12, the distance L12 is the most ideal value for machining an object to be machined with a machine tool.

図13は、工具T11が加工曲面S2に干渉する状態にある様子を示している。図13において、工具T11の評価点Qと加工曲面S2との距離が最短となる、加工曲面S2上の点を基準点C13とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具を内側へオフセットすることがある。基準点C13は、図13において点線で示した工具T11オフセットと加工曲面S2とが接触している点であるともいえる。評価点Qと基準点C13の距離を距離L13とする。 FIG. 13 shows how the tool T11 is in a state of interfering with the machining curved surface S2. In FIG. 13, the point on the machining curved surface S2 where the distance between the evaluation point Q of the tool T11 and the machining curved surface S2 is the shortest is set as the reference point C13. Further, in the case where the tool and the machined curved surface interfere with each other, the tool may be offset inward until the tool and the machined curved surface come into contact with each other. It can be said that the reference point C13 is a point where the tool T11 offset shown by the dotted line in FIG. 13 and the machining curved surface S2 are in contact with each other. The distance between the evaluation point Q and the reference point C13 is defined as the distance L13.

なお、図11、図12、図13において、工具T11の評価点Qを、工具T11の先端の中心に設けているが、評価点Qは、例えば工具T11上の加工対象物を切削する部分または点に設けられてもよいし、工具T11と加工曲面S2の距離が最短となるような工具T11上の点に設けられても良い。ただし、工具上の特定の位置を評価点Qとして設定した後は、設定した評価点Qで距離Lを評価する。 In addition, in FIG. 11, FIG. 12, and FIG. 13, the evaluation point Q of the tool T11 is provided at the center of the tip of the tool T11. It may be provided at a point, or may be provided at a point on the tool T11 such that the distance between the tool T11 and the machining curved surface S2 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.

図14、図15、図16は、工具がラジアスエンドミル工具(以下、工具T12とする。)である場合における、工具T12と加工曲面S3の関係を示す図である。図14は、加工曲面S3と工具T12が離れている状態にある様子を示している。図14において、工具T12と加工曲面S3の距離が最短となる加工曲面S3上の点を、基準点C21とする。評価点Qと基準点C21の距離を距離L21とする。 14, 15, and 16 are diagrams showing the relationship between the tool T12 and the machining curved surface S3 when the tool is a radius end mill tool (hereinafter referred to as a tool T12). FIG. 14 shows a state in which the machining curved surface S3 and the tool T12 are separated from each other. In FIG. 14, the point on the machining curved surface S3 where the distance between the tool T12 and the machining curved surface S3 is the shortest is defined as the reference point C21. The distance between the evaluation point Q and the reference point C21 is defined as the distance L21.

図15は、加工曲面S3と工具T12が接している状態にある様子を示している。図15において、工具T12と加工曲面S3が接する点を基準点C22とする。評価点Qと基準点C22の距離を距離L22とすると、距離L22は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 15 shows a state in which the machining curved surface S3 and the tool T12 are in contact with each other. In FIG. 15, the point where the tool T12 and the machining curved surface S3 meet is defined as the reference point C22. Assuming that the distance between the evaluation point Q and the reference point C22 is the distance L22, the distance L22 is the most ideal value for machining an object to be machined with a machine tool.

図16は、工具T12が加工曲面S3に干渉する状態にある様子を示している。図16において、工具T12の評価点Qと加工曲面S3との距離が最短となる、加工曲面S3上の点を基準点C23とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具を内側へオフセットすることがある。基準点C23は、図16において点線で示した工具T12オフセットと加工曲面S3とが接触している点であるともいえる。評価点Qと基準点C23の距離を距離L23とする。 FIG. 16 shows how the tool T12 is in a state of interfering with the machining curved surface S3. In FIG. 16, the point on the machining curved surface S3 where the distance between the evaluation point Q of the tool T12 and the machining curved surface S3 is the shortest is set as the reference point C23. Further, in the case where the tool and the machined curved surface interfere with each other, the tool may be offset inward until the tool and the machined curved surface come into contact with each other. It can be said that the reference point C23 is a point where the tool T12 offset shown by the dotted line in FIG. 16 and the machining curved surface S3 are in contact with each other. The distance between the evaluation point Q and the reference point C23 is defined as the distance L23.

なお、図14、図15、図16において、工具T12の評価点Qを、工具T12の中心軸かつ先端付近に設けているが、評価点Qは、例えば、工具T12上の加工対象物を切削する部分または点に設けられてもよいし、工具T12と加工曲面S3の距離が最短となるような工具T10上の点に設けられても良い。ただし、工具上の特定の位置を評価点Qとして設定した後は、設定した評価点Qで距離Lを評価する。 In FIGS. 14, 15, and 16, the evaluation point Q of the tool T12 is provided near the central axis and the tip of the tool T12. The evaluation point Q is, for example, cutting an object to be machined on the tool T12. It may be provided at a portion or a point to be formed, or may be provided at a point on the tool T10 such that the distance between the tool T12 and the machining curved surface S3 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.

次に、曲線経路評価部108において、曲線経路生成部104において生成された曲線経路TPを、工具データ、形状データ、許容寸法公差入力部に入力される許容範囲の値に従って評価する(ステップS106)。まず、曲線経路TP1〜TP6上に複数の評価点を求める。続いて、図8〜図16に示すように、求めた評価点Qに対応するように、ステップ5で入力した工具データに基づいて生成された工具を配置する。このとき、評価点Qに工具を配置すると、理想的には工具と仕上り形状の加工曲面が接する。 Next, the curve path evaluation unit 108 evaluates the curve path TP generated by the curve path generation unit 104 according to the values of the allowable range input to the tool data, the shape data, and the allowable dimension tolerance input unit (step S106). .. First, a plurality of evaluation points are obtained on the curved paths TP1 to TP6. Subsequently, as shown in FIGS. 8 to 16, the tools generated based on the tool data input in step 5 are arranged so as to correspond to the obtained evaluation points Q. At this time, if the tool is arranged at the evaluation point Q, ideally, the tool and the machined curved surface of the finished shape are in contact with each other.

曲線経路評価部108は、曲線経路TPについて、距離Lの値が許容範囲内か否かを評価する。ある曲線経路TPにおいて求めた距離Lが、距離Lに対する許容範囲より大きい場合、当該曲線経路TPを修正対象の曲線経路として後述するステップS107へ進む。すべての曲線経路TPにおいて求めた距離Lが距離Lに対する許容範囲以内であった場合には後述するステップS108へ進む。 The curve path evaluation unit 108 evaluates whether or not the value of the distance L is within the permissible range for the curve path TP. When the distance L obtained in a certain curved path TP is larger than the allowable range with respect to the distance L, the process proceeds to step S107 described later with the curved path TP as the curved path to be corrected. If the distance L obtained in all the curved path TPs is within the allowable range with respect to the distance L, the process proceeds to step S108 described later.

曲線経路評価部108において、距離Lの値が距離Lに対する許容範囲を超えた場合、すなわち、ステップS106において「NO」の場合、工具経路を修正する(ステップS107)。ここで、工具経路を修正するための動作について、ボールエンドミルである工具T10が、図10に示すような工具T10と加工曲面S1とが干渉する状態の場合を例に、図17を用いて説明する。 In the curve path evaluation unit 108, when the value of the distance L exceeds the allowable range with respect to the distance L, that is, when “NO” in step S106, the tool path is corrected (step S107). Here, the operation for correcting the tool path will be described with reference to FIG. 17 by taking as an example a case where the tool T10, which is a ball end mill, interferes with the tool T10 and the machining curved surface S1 as shown in FIG. To do.

図17は、工具T10と加工曲面S1とが接するように評価点を移動させ、新たな指令点を追加する様子の一例を示した図である。まず、工具経路修正部109において、ステップS106で得られた修正対象の曲線経路TP上の評価点Qのうち、距離Lに対する許容範囲から最も大きく外れている評価点Qを抽出する。図17においては、曲線経路TP3が修正対象の曲線経路であり、曲線経路TP3上の評価点Q3が、距離L3に対する許容範囲から最も大きく外れている評価点であるとする。 FIG. 17 is a diagram showing an example of how the evaluation points are moved so that the tool T10 and the machining curved surface S1 are in contact with each other and new command points are added. First, the tool path correction unit 109 extracts the evaluation point Q that is most out of the permissible range for the distance L from the evaluation points Q on the curve path TP to be corrected obtained in step S106. In FIG. 17, it is assumed that the curved path TP3 is the curved path to be corrected, and the evaluation point Q3 on the curved path TP3 is the evaluation point most deviating from the allowable range for the distance L3.

次に、工具T10と加工曲面S1とが接する状態になるように、評価点Q3を移動させる。このとき、移動後の評価点を新たな指令点R1とする。このとき、評価点Q3を移動させる方向としては、工具軸方向や、評価点Q3に工具を配置したときの加工曲面上における基準点における加工曲面の法線方向、または、任意の方向に移動してもよい。 Next, the evaluation point Q3 is moved so that the tool T10 and the machining curved surface S1 are in contact with each other. At this time, the evaluation point after the movement is set as a new command point R1. At this time, the direction of moving the evaluation point Q3 is the tool axis direction, the normal direction of the machining surface at the reference point on the machining surface when the tool is placed at the evaluation point Q3, or any direction. You may.

また、工具T10と加工曲面S1が接する状態になるように評価点Q3を移動させる方法は、与えられた移動方向に微小距離だけ動かして移動後の移動評価点Qにおける距離L3を計算することを、距離L3に対する許容範囲以下となるまで繰り返すことにより求めることができる。 Further, in the method of moving the evaluation point Q3 so that the tool T10 and the machining curved surface S1 are in contact with each other, the distance L3 at the movement evaluation point Q after the movement is calculated by moving the evaluation point Q3 by a small distance in the given movement direction. , It can be obtained by repeating until the distance becomes equal to or less than the allowable range for the distance L3.

さらに、工具経路修正部109では、ステップS103で工具経路記憶部103に記憶した工具経路に対して、距離L3が、距離L3に対する許容範囲以下となった、移動後の評価点Q3を新たな指令点R1として工具経路に追加し、工具経路を修正する。これにより、加工対象物の加工結果の精度が向上する。 Further, the tool path correction unit 109 issues a new command to the evaluation point Q3 after movement, in which the distance L3 is equal to or less than the allowable range for the distance L3 with respect to the tool path stored in the tool path storage unit 103 in step S103. Add it to the tool path as point R1 and modify the tool path. As a result, the accuracy of the processing result of the object to be processed is improved.

修正後の工具経路は、工具経路記憶部103に記憶する。図18は、指令点P1〜P6について、ステップS107において新たな指令点R1を追加することにより修正した工具経路を示す図である。ステップS107の実行後は、ステップS104に戻り、処理を繰り返す。この場合、ステップS105の処理は省略しても良い。 The modified tool path is stored in the tool path storage unit 103. FIG. 18 is a diagram showing tool paths corrected by adding a new command point R1 in step S107 for command points P1 to P6. After the execution of step S107, the process returns to step S104 and the process is repeated. In this case, the process of step S105 may be omitted.

ステップS106の処理において、すべての評価点Qにおける距離L3が距離L3に対する許容範囲以下となり、工具経路の修正が完了した場合、修正後の工具経路が工具経路記憶部103に記憶される。次に、変換後加工プログラム出力部110において、工具経路記憶部103に記憶された工具経路に従って、所定の変換方法に従って工具経路から修正後の加工プログラムを生成し、修正後の加工プログラムを変換後に加工プログラム変換装置100の外部へ出力する(ステップS108)。 In the process of step S106, when the distance L3 at all the evaluation points Q becomes equal to or less than the allowable range with respect to the distance L3 and the correction of the tool path is completed, the corrected tool path is stored in the tool path storage unit 103. Next, the post-conversion machining program output unit 110 generates a modified machining program from the tool path according to a predetermined conversion method according to the tool path stored in the tool path storage unit 103, and after converting the modified machining program. Output to the outside of the machining program conversion device 100 (step S108).

ステップS108の実行後は処理を終了し、出力された変換後の加工プログラムは数値制御装置111に入力され、加工対象物の加工が行われる。なお、ステップS106からステップS108においては、ボールエンドミルである工具T10と加工曲面S1が干渉する場合について説明したが、その他の場合についても同様である。 After the execution of step S108, the processing is completed, the output processing program after conversion is input to the numerical control device 111, and the processing target is processed. In steps S106 to S108, the case where the tool T10 which is a ball end mill and the machining curved surface S1 interfere with each other has been described, but the same applies to other cases.

以上より、実施の形態1に係る加工プログラム変換装置によれば、評価点と基準点の距離Lが、距離Lに対する許容範囲以下となるように工具経路を修正するため、加工対象物の加工結果の加工精度を向上させることができる。 From the above, according to the machining program conversion device according to the first embodiment, the machining result of the machining object is corrected in order to correct the tool path so that the distance L between the evaluation point and the reference point is equal to or less than the allowable range with respect to the distance L. Processing accuracy can be improved.

さらに、距離Lが、距離Lに対する許容範囲を超えた評価点のみ移動させ、新たな指令点を追加するため、追加される指令点は必要な数に抑えることができ、プログラムのデータ量が必要以上に増えて処理が遅くなることを回避することができる。 Furthermore, since the distance L moves only the evaluation points that exceed the permissible range for the distance L and new command points are added, the number of command points to be added can be suppressed to the required number, and the amount of program data is required. It is possible to avoid the increase and the processing slowdown.

実施の形態2.
実施の形態2に係る加工プログラム変換装置100の構成は、本実施の形態1に係る加工プログラム変換装置100の構成と同様であるため、説明を省略する。実施の形態2に係る加工プログラム変換装置100は、図19に示すフローチャートに従って動作する。
Embodiment 2.
Since the configuration of the machining program conversion device 100 according to the second embodiment is the same as the configuration of the machining program conversion device 100 according to the first embodiment, the description thereof will be omitted. The machining program conversion device 100 according to the second embodiment operates according to the flowchart shown in FIG.

ステップS201からステップS203における動作は、実施の形態1におけるステップS101からステップS103までの動作と同様である。実施の形態2においては、曲線経路の生成方法が、本実施の形態1と相違する。 The operation from step S201 to step S203 is the same as the operation from step S101 to step S103 in the first embodiment. In the second embodiment, the method of generating the curved path is different from that of the first embodiment.

図20は、加工プログラム変換装置が加工プログラムから読み取った工具経路の一例を示した図である。図20に示した工具経路は、指令点P11〜P17を有し、各指令点間を直線で結んだものである。本実施の形態2のステップS204においては、隣接した3点の指令点である第1、第2、第3の指令点から、両端の第1および第3の指令点の間を通過する曲線経路を生成する。図21は、一例として、第1の指令点である指令点P13、第2に指令点であるP14、第3の指令点であるP15のうち、P13とP15の間に曲線経路TP11を生成した様子を示している。次に、工具データ入力部105に工具データが外部入力され、形状データ入力部106に形状データが外部入力される(ステップS205)。 FIG. 20 is a diagram showing an example of a tool path read from the machining program by the machining program converter. The tool path shown in FIG. 20 has command points P11 to P17, and connects the command points with a straight line. In step S204 of the second embodiment, a curved path passing between the first, second, and third command points, which are three adjacent command points, between the first and third command points at both ends. To generate. In FIG. 21, as an example, a curved path TP11 is generated between P13 and P15 among the command point P13 which is the first command point, the second command point P14, and the third command point P15. It shows the situation. Next, the tool data is externally input to the tool data input unit 105, and the shape data is externally input to the shape data input unit 106 (step S205).

曲線経路評価部108において、曲線経路TP11に複数点設定した評価点における、それぞれの距離Lを、工具データ、形状データ、許容寸法公差入力部に入力される許容範囲の値に従って評価する(ステップS206)。つまり、距離Lが、距離Lに対する許容範囲以下か許容範囲より大きいかを評価する。ここで、全ての距離Lが、距離Lに対する許容範囲以下であった場合、工具経路記憶部103に記憶されている工具経路から、指令点P14を削除する(ステップS207)。さらに、この場合は修正対象の曲線経路がないため、曲線経路TP11は最終的に変換されて出力される工具経路となる(ステップS208)。 The curve path evaluation unit 108 evaluates each distance L at the evaluation points set at a plurality of points on the curve path TP11 according to the values of the allowable range input to the tool data, the shape data, and the allowable dimension tolerance input unit (step S206). ). That is, it is evaluated whether the distance L is equal to or less than the permissible range or larger than the permissible range with respect to the distance L. Here, when all the distances L are equal to or less than the allowable range with respect to the distance L, the command point P14 is deleted from the tool path stored in the tool path storage unit 103 (step S207). Further, in this case, since there is no curved path to be corrected, the curved path TP11 is finally converted and output as a tool path (step S208).

図22は、工具経路で加工される仕上がり形状の一例である。図22に示した仕上り形状M2は、形状データ入力部106に入力された形状データに基づいて生成されるもので、加工曲面S4を有する。 FIG. 22 is an example of the finished shape processed by the tool path. The finished shape M2 shown in FIG. 22 is generated based on the shape data input to the shape data input unit 106, and has a processed curved surface S4.

ステップS206を図23、図24、図25を用いて具体的に説明する。図23は、曲線経路と仕上り形状M2とが対応するように配置した状態を断面方向から示し、さらに一例として、曲線経路TP11上に評価点Q11〜Q14を設定した図である。図24は、工具がボールエンドミル工具である場合に、加工曲面S4と工具T10が接している状態にある様子を示している。図24において、工具T10と加工曲面S4が接する点を基準点C31とする。図24においては、曲線経路TP11上の評価点Q12に工具を配置し、評価点Q12と基準点C31の距離L32とする。 Step S206 will be specifically described with reference to FIGS. 23, 24, and 25. FIG. 23 shows a state in which the curved path and the finished shape M2 are arranged so as to correspond to each other from the cross-sectional direction, and as an example, the evaluation points Q11 to Q14 are set on the curved path TP11. FIG. 24 shows a state in which the machining curved surface S4 and the tool T10 are in contact with each other when the tool is a ball end mill tool. In FIG. 24, the point where the tool T10 and the machining curved surface S4 meet is set as the reference point C31. In FIG. 24, the tool is arranged at the evaluation point Q12 on the curved path TP11, and the distance L32 between the evaluation point Q12 and the reference point C31 is set.

図24、図25、図26は、工具がボールエンドミル工具(以下、工具T10とする。)である場合における、工具T10と加工曲面S4の関係を示す図である。工具TP10は、曲線経路TP11上の評価点Q12に配置する。図24は、加工曲面S4と工具T10が離れている状態にある様子を示している。図24において、工具T10と加工曲面S4の距離が最短となる加工曲面S4上の点を、基準点C31とする。ここで、評価点Q12と基準点C31の距離を距離L31とする。 24, 25, and 26 are diagrams showing the relationship between the tool T10 and the machining curved surface S4 when the tool is a ball end mill tool (hereinafter referred to as a tool T10). The tool TP10 is arranged at the evaluation point Q12 on the curved path TP11. FIG. 24 shows a state in which the machining curved surface S4 and the tool T10 are separated from each other. In FIG. 24, the point on the machining curved surface S4 where the distance between the tool T10 and the machining curved surface S4 is the shortest is defined as the reference point C31. Here, the distance between the evaluation point Q12 and the reference point C31 is defined as the distance L31.

図25は、加工曲面S4と工具T10が接している状態にある様子を示している。図25において、工具T10と加工曲面S4が接する点を基準点C32とする。評価点Q12と基準点C32の距離を距離L32とすると、距離L32は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 25 shows a state in which the machining curved surface S4 and the tool T10 are in contact with each other. In FIG. 25, the point where the tool T10 and the machining curved surface S4 meet is defined as the reference point C32. Assuming that the distance between the evaluation point Q12 and the reference point C32 is the distance L32, the distance L32 is the most ideal value for machining an object to be machined with a machine tool.

図26は、工具T10が加工曲面S4に干渉する状態にある様子を示している。図26において、工具T10の評価点Q12と加工曲面S4との距離が最短となる、加工曲面S4上の点を基準点C31とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具をオフセットすることがある。基準点C31は、図26において点線で示した工具T10オフセットと加工曲面S4とが接触している点であるともいえる。ここで、評価点Q12と基準点C33の距離を距離L33とする。 FIG. 26 shows how the tool T10 is in a state of interfering with the machining curved surface S4. In FIG. 26, the point on the machining curved surface S4 where the distance between the evaluation point Q12 of the tool T10 and the machining curved surface S4 is the shortest is set as the reference point C31. Further, in the case where the tool and the machined curved surface interfere with each other, the tool may be offset until the tool and the machined curved surface come into contact with each other. It can be said that the reference point C31 is a point where the tool T10 offset shown by the dotted line in FIG. 26 and the machining curved surface S4 are in contact with each other. Here, the distance between the evaluation point Q12 and the reference point C33 is defined as the distance L33.

曲線経路評価部108において、全ての距離L(距離L31〜距離L33)が、距離Lに対する許容範囲以下であった場合、工具経路記憶部103に記憶されている工具経路から、第2の指令点である指令点P14を削除する(ステップS207)。さらに、この場合は修正対象の曲線経路がないため、曲線経路TP11は最終的に変換されて出力される工具経路となる(ステップS208)。図27は、本実施の形態2において工具経路を修正した最終形態の一例である。 In the curve path evaluation unit 108, when all the distances L (distance L31 to distance L33) are equal to or less than the allowable range with respect to the distance L, the second command point is obtained from the tool path stored in the tool path storage unit 103. The command point P14 is deleted (step S207). Further, in this case, since there is no curved path to be corrected, the curved path TP11 is finally converted and output as a tool path (step S208). FIG. 27 is an example of the final form in which the tool path is modified in the second embodiment.

曲線経路評価部108において、曲線経路TP11に複数点設定した評価点Qにおける、それぞれの距離Lのうち、1点でも距離Lに対する許容範囲より大きい距離になる評価点がある場合、指令点P14は削除せず、指令点P13とP14の間の曲線経路、P14とP15の間の曲線経路を生成する(ステップS209)。 In the curve path evaluation unit 108, when there is an evaluation point in the evaluation points Q in which a plurality of points are set in the curve path TP11, even one of the distances L is larger than the permissible range with respect to the distance L, the command point P14 is set. Without deleting, a curved path between command points P13 and P14 and a curved path between P14 and P15 are generated (step S209).

次に、実施の形態1のステップS106から108までの流れと同様に、曲線経路評価部108において、曲線経路生成部104において生成された各曲線経路を、工具データ、形状データ、許容寸法公差入力部に入力される許容範囲の値に従って距離Lの値が許容範囲内か否かを評価する(ステップS210)。曲線経路評価部108において、距離Lの値が距離Lに対する許容範囲を超えた場合、すなわち、ステップS210において「NO」の場合、工具経路を修正する(ステップS211)。ここで、工具経路を修正するための動作は、実施の形態1と同様である。 Next, in the same manner as in the flow from steps S106 to 108 of the first embodiment, the curve path evaluation unit 108 inputs the tool data, the shape data, and the allowable dimension tolerance input to each curve path generated by the curve path generation unit 104. It is evaluated whether or not the value of the distance L is within the permissible range according to the value of the permissible range input to the unit (step S210). In the curve path evaluation unit 108, when the value of the distance L exceeds the allowable range with respect to the distance L, that is, when “NO” in step S210, the tool path is corrected (step S211). Here, the operation for correcting the tool path is the same as that in the first embodiment.

ステップS210の処理において、すべての評価点Qにおける距離Lが距離Lに対する許容範囲以下となり、工具経路の修正が完了した場合、修正後の工具経路が工具経路記憶部103に記憶される。次に、変換後加工プログラム出力部110において、工具経路記憶部103に記憶された工具経路に従って、所定の変換方法に従って工具経路から修正後の加工プログラムを生成し、修正後の加工プログラムを変換後に加工プログラム変換装置100の外部へ出力する(ステップS208)。 In the process of step S210, when the distance L at all the evaluation points Q becomes equal to or less than the allowable range with respect to the distance L and the correction of the tool path is completed, the corrected tool path is stored in the tool path storage unit 103. Next, the post-conversion machining program output unit 110 generates a modified machining program from the tool path according to a predetermined conversion method according to the tool path stored in the tool path storage unit 103, and after converting the modified machining program. Output to the outside of the machining program conversion device 100 (step S208).

以上より、実施の形態2に係る加工プログラム変換装置によれば、隣接した3点の指令点のうち、両端の2点を通過する曲線経路上に設けた評価点と基準点の距離Lが、距離Lに対する許容範囲以下となることを満たした場合は、工具経路から既存の真ん中の指令点を削除するため、加工プログラムのデータ量を削減することができ、作業効率が向上する。さらに、加工対象物の加工結果の加工精度が所望の精度を満たすこともできる。 From the above, according to the machining program conversion device according to the second embodiment, the distance L between the evaluation point and the reference point provided on the curved path passing through the two points at both ends among the three adjacent command points is set. When it is satisfied that the distance is equal to or less than the permissible range for the distance L, the existing middle command point is deleted from the tool path, so that the amount of data in the machining program can be reduced and the work efficiency is improved. Further, the processing accuracy of the processing result of the processing object can satisfy the desired accuracy.

実施の形態3.
以下に、実施の形態3に係る数値制御装置を図面に基づいて説明する。なお、この実施の形態により、限定されるわけではない。
Embodiment 3.
Hereinafter, the numerical control device according to the third embodiment will be described with reference to the drawings. The embodiment is not limited to this embodiment.

数値制御装置200は、外部から入力される加工プログラムを受け取る加工プログラム入力部201と、入力された加工プログラムを解析し、工具経路を求める加工プログラム解析部202と、加工プログラム解析部202で求めた工具経路が記憶される工具経路記憶部203と、工具経路記憶部203に記憶された工具経路に従って曲線経路を生成する曲線経路生成部204と、工具のデータを入力する工具データ入力部205と、加工対象物の加工後の形状データを入力する形状データ入力部206と、工具が加工対象物の加工曲面に沿って動作するかを判断するため曲線経路上に設けた点と加工曲面との距離の許容範囲を入力する許容寸法公差入力部207と、曲線経路上に設けた点と加工曲面との距離が許容範囲内か否かを判断する曲線経路評価部208と、工具経路を修正する工具経路修正部209と、曲線経路補間部210とを備える。本実施の形態に係る数値制御装置200は、外部から囲うプログラムが入力されると、加工プログラムを解析して工具経路を生成し、モータ駆動部211へ出力する動作を実行する。 The numerical control device 200 is obtained by a machining program input unit 201 that receives a machining program input from the outside, a machining program analysis unit 202 that analyzes the input machining program and obtains a tool path, and a machining program analysis unit 202. A tool path storage unit 203 that stores a tool path, a curve path generation unit 204 that generates a curve path according to a tool path stored in the tool path storage unit 203, and a tool data input unit 205 that inputs tool data. The distance between the shape data input unit 206 for inputting the shape data of the machined object after machining and the point provided on the curved path to determine whether the tool operates along the machined curved surface of the machined object. Allowable dimension tolerance input unit 207 for inputting the allowable range of, curved path evaluation unit 208 for determining whether the distance between a point provided on the curved path and the machined curved surface is within the allowable range, and a tool for correcting the tool path. A route correction unit 209 and a curve route interpolation unit 210 are provided. When a program to be enclosed from the outside is input, the numerical control device 200 according to the present embodiment analyzes the machining program, generates a tool path, and executes an operation of outputting the tool path to the motor drive unit 211.

図28に示した実施の形態3に係る数値制御装置200が工具経路を生成する手順について説明する。図29は、実施の形態3に係る数値制御装置200の動作例を示すフローチャートである。図29のフローチャートは、数値制御装置200が工具経路を生成する動作の手順を示している。図29において、ステップS301からステップS307までの手順は、実施の形態1におけるステップS101からステップS107までの動作の手順と同様である。 A procedure for the numerical control device 200 according to the third embodiment shown in FIG. 28 to generate a tool path will be described. FIG. 29 is a flowchart showing an operation example of the numerical control device 200 according to the third embodiment. The flowchart of FIG. 29 shows the procedure of the operation of the numerical control device 200 to generate the tool path. In FIG. 29, the procedure from step S301 to step S307 is the same as the procedure of the operation from step S101 to step S107 in the first embodiment.

ステップS306において、曲線経路生成部204は、評価点Qにおける距離Lが、距離Lに対する許容範囲以下となった場合、生成した曲線経路を曲線経路補間部210に渡す。 In step S306, when the distance L at the evaluation point Q is equal to or less than the allowable range with respect to the distance L, the curve path generation unit 204 passes the generated curve path to the curve path interpolation unit 210.

数値制御装置200は、次に、曲線経路補間部210において、曲線経路を補間する(ステップS308)。具体的には、曲線経路補間部210が曲線経路生成部204から受け取った曲線経路上に、単位時間である補間周期あたりの工具の移動量を求めて補間した補間点を生成する。ステップS308で補間処理を行った後の曲線経路が、最終的な工具経路となる。曲線経路補間部210は、補間点の生成が終了すると、補間点を外部のモータ駆動部211に渡す。 Next, the numerical control device 200 interpolates the curve path in the curve path interpolation unit 210 (step S308). Specifically, the curve path interpolation unit 210 generates an interpolation point on the curve path received from the curve path generation unit 204 by obtaining the amount of movement of the tool per interpolation cycle, which is a unit time. The curved path after the interpolation process is performed in step S308 becomes the final tool path. When the curve path interpolation unit 210 finishes generating the interpolation points, the curve path interpolation unit 210 passes the interpolation points to the external motor drive unit 211.

以上のような手順で動作することにより、実施の形態3に係る数値制御装置200は、工具経路を生成する。 By operating in the above procedure, the numerical control device 200 according to the third embodiment generates a tool path.

実施の形態3に係る数値制御装置によれば、修正された工具経路に従って数値制御することが可能となるため、加工プログラムを一度変換した後、変換後の加工プログラムを出力する必要がなく、また、加工対象物の所望の加工精度を満たすことが可能となることから、手戻りが発生せず、作業効率が向上する。 According to the numerical control device according to the third embodiment, since it is possible to perform numerical control according to the modified tool path, it is not necessary to output the converted machining program after converting the machining program once. Since it is possible to satisfy the desired machining accuracy of the object to be machined, rework does not occur and the work efficiency is improved.

実施の形態4.
以下に実施の形態4に係る機械学習装置を図面に基づいて詳細に説明する。なお、この実施の形態に限定されるものではない。
Embodiment 4.
The machine learning apparatus according to the fourth embodiment will be described in detail below with reference to the drawings. It should be noted that the present invention is not limited to this embodiment.

図30は、実施の形態4に係る機械学習装置の構成例を示す図である。図30に示した工作機械401は、実施の形態1の数値制御装置111によって制御されることにより、加工対象物を加工する。数値制御装置111と工作機械401は、数値制御工作機械を構成する。数値制御装置111には、実施の形態1と同様に、加工プログラム変換装置100から出力された変換後の加工プログラムである変換後加工プログラムが入力される。 FIG. 30 is a diagram showing a configuration example of the machine learning device according to the fourth embodiment. The machine tool 401 shown in FIG. 30 processes an object to be machined by being controlled by the numerical control device 111 of the first embodiment. The numerical control device 111 and the machine tool 401 constitute a numerical control machine tool. Similar to the first embodiment, the numerical control device 111 is input with the post-conversion machining program which is the post-conversion machining program output from the machining program conversion device 100.

本実施の形態の機械学習装置410は、工作機械401による加工結果の加工精度を示す情報と、加工プログラム変換装置100から取得した情報とを用いて、工作機械401による加工結果が所望の加工精度を満たす許容寸法公差を学習する。許容寸法公差は、距離Lに対する許容範囲である。距離Lは、実施の形態1で述べたように、工具経路上に設けられた複数の指令点の間に生成された曲線経路に従って動作する工具が加工対象物の仕上がり形状である加工曲面に沿って動作するか否かを判断するために曲線経路上に設けられた点を評価点とし、工具と加工曲面とが接触する点を基準点とした場合の、評価点と基準点との距離である。工作機械401による加工結果は、距離Lが許容寸法公差以内となるように工具経路を修正した後の加工プログラムに基づいて行われた加工結果である。 The machine learning device 410 of the present embodiment uses the information indicating the machining accuracy of the machining result by the machine tool 401 and the information acquired from the machining program conversion device 100, and the machining result by the machine tool 401 is the desired machining accuracy. Learn the allowable dimension tolerance that satisfies. The permissible dimensional tolerance is the permissible range for the distance L. As described in the first embodiment, the distance L is along a machining curved surface in which the tool operating according to the curved path generated between the plurality of command points provided on the tool path is the finished shape of the machining object. The distance between the evaluation point and the reference point when the point provided on the curved path is used as the evaluation point and the point where the tool and the machined curved surface come into contact is used as the reference point. is there. The machining result by the machine tool 401 is a machining result performed based on the machining program after the tool path is corrected so that the distance L is within the allowable dimension tolerance.

本実施の形態の加工プログラム変換装置100は、加工対象物の仕上がり形状である加工曲面、工具に対する移動指令が記述された加工プログラムから求めた工具経路、工具データを機械学習装置410へ出力する。また、加工プログラム変換装置100は、後述する機械学習により生成された学習済モデルを用いた推論により求められた許容寸法公差を、機械学習装置410から受け取り、受け取った許容寸法公差を入力として用いて曲線経路評価部108における判断が行われる。このように、本実施の形態では、加工プログラム変換装置100は、機械学習装置410との間で入出力の動作を行うが、これらの動作以外は、実施の形態1の加工プログラム変換装置100の動作と同様である。実施の形態1と同様の機能を有する構成要素は、実施の形態1と同一の符号を付して重複する説明を省略する。以下実施の形態1と異なる点を主に説明する。 The machining program conversion device 100 of the present embodiment outputs the machining curved surface which is the finished shape of the machining object, the tool path obtained from the machining program in which the movement command for the tool is described, and the tool data to the machine learning device 410. Further, the machining program conversion device 100 receives the permissible dimension tolerance obtained by inference using the learned model generated by the machine learning described later from the machine learning device 410, and uses the received permissible dimension tolerance as an input. The curve path evaluation unit 108 makes a determination. As described above, in the present embodiment, the machining program conversion device 100 performs input / output operations with the machine learning device 410, but other than these operations, the machining program conversion device 100 of the first embodiment It is the same as the operation. The components having the same functions as those in the first embodiment are designated by the same reference numerals as those in the first embodiment, and the duplicate description will be omitted. Hereinafter, the points different from those of the first embodiment will be mainly described.

機械学習装置410は、所望の加工精度を満たす許容寸法公差を機械学習する。ここで、所望の加工精度を満たす許容寸法公差を機械学習するとは、所望の加工精度を満たす許容寸法公差を推論するための学習済みモデルを作成することを意味する。機械学習装置410が用いる学習アルゴリズムはどのようなものを用いてもよい。一例として、強化学習(Reinforcement Learning)を適用した場合について説明する。強化学習は、ある環境内におけるエージェント(行動主体)が、現在の状態を観測し、取るべき行動を決定する、というものである。強化学習では、エージェントは行動を選択することで環境から報酬を得て、一連の行動を通じて報酬が最も多く得られるような方策を学習する。例えば、Q学習の場合、行動価値関数Q(s,a)の一般的な更新式(行動価値テーブル)は、下記式(1)で表される。 The machine learning device 410 machine-learns an allowable dimensional tolerance that satisfies a desired machining accuracy. Here, machine learning of a permissible dimensional tolerance that satisfies a desired machining accuracy means creating a trained model for inferring a permissible dimensional tolerance that satisfies a desired machining accuracy. Any learning algorithm may be used as the learning algorithm used by the machine learning device 410. As an example, a case where reinforcement learning is applied will be described. Reinforcement learning is that an agent (behavior) in a certain environment observes the current state and decides the action to be taken. In reinforcement learning, agents are rewarded from the environment by choosing an action and learn how to get the most reward through a series of actions. For example, in the case of Q-learning, the general update formula (behavior value table) of the action value function Q (s, a) is expressed by the following formula (1).

Figure 2020179798
Figure 2020179798

式(1)において、tは時刻tにおける環境を表し、aは時刻tにおける行動を表す。行動aにより、環境はst+1に変わる。rt+1はその環境の変化によってもらえる報酬を表し、γは割引率を表し、αは学習係数を表す。なお、γは0<γ≦1、αは0<α≦1の範囲とする。本実施の形態にQ学習を適用した場合、入力される許容寸法公差が行動aとなる。In the formula (1), t represents the environment at time t, a t represents the behavior in time t. By the action a t, the environment is changed to s t + 1. rt + 1 represents the reward received by the change of the environment, γ represents the discount rate, and α represents the learning coefficient. Note that γ is in the range of 0 <γ ≦ 1 and α is in the range of 0 <α ≦ 1. If the present embodiment is applied to Q-learning, allowable tolerances to be input is an action a t.

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

図30に示すように、本実施の形態の機械学習装置410は、状態観測部411、学習部412および推論部413を備える。状態観測部411は、数値制御工作機械による加工の状態を示す状態変数を含むデータセットを取得するデータ取得部である。学習フェーズでは、状態観測部411は、データセットを学習部412へ出力する。状態観測部411は、推論フェーズでは、データセットを推論部413へ渡す。学習部412は、データセットを用いて、所望の加工精度を満たす許容寸法公差を学習することにより学習済モデルを生成し、推論部413へ渡す。推論部413は、状態変数を学習済モデルへ入力することにより、加工精度を満たす許容寸法公差を推論し、推論した許容寸法公差を加工プログラム変換装置100へ入力する。 As shown in FIG. 30, the machine learning device 410 of the present embodiment includes a state observation unit 411, a learning unit 412, and an inference unit 413. The state observation unit 411 is a data acquisition unit that acquires a data set including a state variable indicating a state of machining by a numerically controlled machine tool. In the learning phase, the state observation unit 411 outputs the data set to the learning unit 412. The state observation unit 411 passes the data set to the inference unit 413 in the inference phase. The learning unit 412 generates a trained model by learning an allowable dimensional tolerance that satisfies a desired processing accuracy using a data set, and passes it to the inference unit 413. The inference unit 413 infers the permissible dimension tolerance that satisfies the machining accuracy by inputting the state variable into the trained model, and inputs the inferred permissible dimension tolerance to the machining program conversion device 100.

詳細には、状態観測部411は、状態変数として、加工対象物の仕上がり形状を示す情報を、加工プログラム変換装置100の形状データ入力部106から取得する。実施の形態1で述べたように、形状データ入力部106には、加工対象物の目標の形状である仕上り形状を生成できる情報が入力され、仕上り形状は、加工すべき曲面である加工曲面を有する。すなわち、仕上がり形状を示す情報には加工曲面を示す情報が含まれる。 Specifically, the state observation unit 411 acquires information indicating the finished shape of the machining object as a state variable from the shape data input unit 106 of the machining program conversion device 100. As described in the first embodiment, information capable of generating a finished shape, which is the target shape of the object to be machined, is input to the shape data input unit 106, and the finished shape is a machined curved surface which is a curved surface to be machined. Have. That is, the information indicating the finished shape includes the information indicating the processed curved surface.

状態観測部411は、状態変数として工具経路を加工プログラム変換装置100の工具経路記憶部103から取得する。工具経路は、実施の形態1で述べたように、工具に対する移動指令が記述された加工プログラムから求められる。また、状態観測部411は、加工プログラム変換装置100の工具データを工具データ入力部105から取得する。 The state observation unit 411 acquires the tool path as a state variable from the tool path storage unit 103 of the machining program conversion device 100. As described in the first embodiment, the tool path is obtained from the machining program in which the movement command for the tool is described. Further, the state observation unit 411 acquires the tool data of the machining program conversion device 100 from the tool data input unit 105.

さらに、状態観測部411は、状態変数として、変換後加工プログラムに基づく数値制御装置111の制御のもとで工作機械401によって加工された加工対象物の加工精度、すなわち変換後加工プログラムに基づく加工結果の加工精度を取得する。加工精度は、例えば三次元測定機、表面粗さ測定器、画像寸法測定器などの機器を用いて測定された値を用いることができる。図30では、これらの測定を行う機器が工作機械401に備えられている例を示しているが、機器が工作機械401とは別に設けられていてもよい。 Further, the state observation unit 411 uses the state variable as a state variable to process the machining object machined by the machine tool 401 under the control of the numerical control device 111 based on the post-conversion machining program, that is, the machining based on the post-conversion machining program. Obtain the resulting machining accuracy. As the processing accuracy, for example, a value measured using a device such as a three-dimensional measuring machine, a surface roughness measuring device, or an image dimension measuring device can be used. Although FIG. 30 shows an example in which the machine tool 401 is provided with the equipment for performing these measurements, the equipment may be provided separately from the machine tool 401.

また、状態観測部411は、学習フェーズでは、強化学習における行動である許容寸法公差を、加工プログラム変換装置100の許容寸法公差入力部107から取得して、学習部412へ渡す。 Further, in the learning phase, the state observation unit 411 acquires the permissible dimension tolerance, which is an action in reinforcement learning, from the permissible dimension tolerance input unit 107 of the machining program conversion device 100, and passes it to the learning unit 412.

学習部412は、状態観測部411によって観測された状態変数、すなわち、加工対象物の仕上がり形状である加工曲面、加工プログラムから求めた工具経路、工具データ、および変換後加工プログラムに基づく加工結果の加工精度を、状態観測部411から受け取る。学習部412は、状態変数に基づいて作成されるデータセットに従って、加工精度を満たす最大の許容寸法公差を学習する。なお、本実施の形態4では、一例として、加工精度を満たす最大の許容寸法公差を学習することとしているが、これに限定されず、学習する許容寸法公差は、ユーザの所望する許容寸法公差を満たしていればよい。 The learning unit 412 is a state variable observed by the state observation unit 411, that is, a machining curved surface which is the finished shape of the machining object, a tool path obtained from the machining program, tool data, and a machining result based on the post-conversion machining program. The processing accuracy is received from the state observation unit 411. The learning unit 412 learns the maximum permissible dimensional tolerance that satisfies the machining accuracy according to the data set created based on the state variables. In the fourth embodiment, as an example, the maximum permissible dimension tolerance that satisfies the machining accuracy is learned, but the learning permissible dimension tolerance is not limited to this, and the permissible dimension tolerance to be learned is the permissible dimension tolerance desired by the user. It suffices if it meets.

図30に示すように、学習部412は、報酬計算部421および関数更新部422を備える。報酬計算部421は、状態変数に基づいて報酬を計算する。報酬計算部421は、変換後加工プログラムに基づく加工結果の加工精度に基づいて、報酬rを計算する。例えば、報酬計算部421は、変換後加工プログラムに基づく加工結果の加工精度が所望の加工精度より良い場合には報酬rを増大させる。例えば、報酬計算部421は、変換後加工プログラムに基づく加工結果の加工精度が所望の加工精度より良い場合には「1」の報酬を与える。他方、変換後加工プログラムに基づく加工結果の加工精度が所望の加工精度より悪い場合には報酬rを低減させる。例えば、報酬計算部421は、変換後加工プログラムに基づく加工結果の加工精度が所望の加工精度より悪い場合には「−1」の報酬を与える。変換後加工プログラムに基づく加工結果の加工精度は、公知の方法に従って抽出される。例えば、加工が完了した加工対象物に対して、三次元測定機、表面粗さ測定器、画像寸法測定器などの機器を用いて測定された値を求め、加工対象物の設計値に基づいて加工結果の加工精度を算出することができる。 As shown in FIG. 30, the learning unit 412 includes a reward calculation unit 421 and a function update unit 422. The reward calculation unit 421 calculates the reward based on the state variable. The reward calculation unit 421 calculates the reward r based on the machining accuracy of the machining result based on the post-conversion machining program. For example, the reward calculation unit 421 increases the reward r when the machining accuracy of the machining result based on the post-conversion machining program is better than the desired machining accuracy. For example, the reward calculation unit 421 gives a reward of "1" when the machining accuracy of the machining result based on the post-conversion machining program is better than the desired machining accuracy. On the other hand, when the machining accuracy of the machining result based on the post-conversion machining program is worse than the desired machining accuracy, the reward r is reduced. For example, the reward calculation unit 421 gives a reward of "-1" when the machining accuracy of the machining result based on the post-conversion machining program is worse than the desired machining accuracy. The machining accuracy of the machining result based on the post-conversion machining program is extracted according to a known method. For example, for a machined object that has been machined, the values measured using equipment such as a coordinate measuring machine, surface roughness measuring device, and image dimension measuring device are obtained, and based on the design value of the machined object. The machining accuracy of the machining result can be calculated.

関数更新部422は、報酬計算部421によって計算される報酬に従って、変換後加工プログラムに基づく加工結果の加工精度を満たす許容寸法公差を決定するための関数を更新する。例えばQ学習の場合、式(1)で表される行動価値関数Q(s,a)を変換後加工プログラムに基づく加工結果の加工精度を満たす許容寸法公差を算出するための関数として用いる。学習フェーズにおいて、報酬計算部421による報酬の計算と関数更新部422による関数の更新が繰り返されることにより学習済モデルすなわち、s,aに応じたQの値を示す関数が生成される。The function update unit 422 updates the function for determining the allowable dimension tolerance that satisfies the processing accuracy of the processing result based on the post-conversion processing program according to the reward calculated by the reward calculation unit 421. For example, in the case of Q-learning, it is used as a function for calculating the allowable dimensional tolerances that satisfy the processing accuracy of the formula (1) Action value function represented by Q (s t, a t) processing result based on the converted machining program .. In the learning phase, compensation calculation unit 421 trained model that is, by updating the function is repeated by calculating a function update unit 422 based compensation, s t, is a function indicating the value of Q in accordance with a t is generated.

推論部413は、関数更新部422が生成した学習済みモデルと、状態観測部411から取得した状態変数とを用いて、行動価値関数Q(s,a)が大きくなる行動aすなわち許容寸法公差を、推論結果として求める。なお、学習部412は、推論部413による推論と同時に学習を行ってもよい。なお、学習済みモデルは類似の形状の加工対象物を加工する際にも用いることが可能となる。これにより、学習時間を短縮しつつ類似の形状についても加工結果の加工精度を満たす許容寸法公差を決定することが可能となる。Inference unit 413, a learned model function update unit 422 has generated, by using the state variables obtained from the state observer 411, action value function Q (s t, a t) increases action a t ie acceptable The dimensional tolerance is obtained as the inference result. The learning unit 412 may perform learning at the same time as the inference by the inference unit 413. The trained model can also be used when processing an object to be processed having a similar shape. This makes it possible to determine the permissible dimensional tolerance that satisfies the machining accuracy of the machining result even for similar shapes while shortening the learning time.

なお、本実施の形態では、学習部412が用いる学習アルゴリズムに強化学習を適用した場合について説明したが、これに限られるものではない。学習アルゴリズムについては、強化学習以外にも、教師あり学習、教師なし学習、又は半教師あり学習等を適用することも可能である。例えば、教師あり学習を用いる場合、上述した加工対象物の仕上がり形状を示す情報、工具経路、工具データおよび加工結果の加工精度が所望の加工精度を満たしたか否かを示す情報を入力データとし、入力した許容寸法公差を正解データとしたデータセットを教師データとして用いて、学習済モデルを生成する。そして、学習済モデルに、加工対象物の仕上がり形状を示す情報、工具経路、工具データおよび加工結果の加工精度が所望の加工精度を満たすという判定結果を入力することで、所望の加工精度を満たす許容寸法公差を求めることができる。 In the present embodiment, the case where reinforcement learning is applied to the learning algorithm used by the learning unit 412 has been described, but the present invention is not limited to this. As for the learning algorithm, in addition to reinforcement learning, supervised learning, unsupervised learning, semi-supervised learning, and the like can also be applied. For example, when supervised learning is used, the above-mentioned information indicating the finished shape of the object to be machined, the tool path, the tool data, and the information indicating whether or not the machining accuracy of the machining result satisfies the desired machining accuracy are used as input data. A trained model is generated by using the data set with the input allowable dimension tolerance as the correct answer data as the supervised data. Then, the desired machining accuracy is satisfied by inputting the information indicating the finished shape of the machining object, the tool path, the tool data, and the determination result that the machining accuracy of the machining result satisfies the desired machining accuracy into the trained model. Allowable dimensional tolerances can be determined.

また、上述した学習アルゴリズムとしては、特徴量そのものの抽出を学習する、深層学習(Deep Learning)を用いることもでき、他の公知の方法、例えばニューラルネットワーク、遺伝的プログラミング、機能論理プログラミング、サポートベクターマシンなどに従って機械学習を実行してもよい。 Further, as the learning algorithm described above, deep learning, which learns the extraction of the feature amount itself, can also be used, and other known methods such as neural networks, genetic programming, functional logic programming, and support vectors can be used. Machine learning may be executed according to the machine or the like.

なお、機械学習装置410は、図30に示すように、加工プログラム変換装置100とは別の装置であってもよいし、加工プログラム変換装置100の内部に機械学習装置410が設けられていてもよい。また、機械学習装置410は、数値制御装置111の内部に設けられていてもよい。さらに、機械学習装置410は、1台または複数台のコンピュータにより実現されてもよいし、クラウドサーバ上に存在していてもよい。 As shown in FIG. 30, the machine learning device 410 may be a device different from the machining program conversion device 100, or the machine learning device 410 may be provided inside the machining program conversion device 100. Good. Further, the machine learning device 410 may be provided inside the numerical control device 111. Further, the machine learning device 410 may be realized by one or a plurality of computers, or may exist on a cloud server.

また、機械学習装置410は、複数の加工プログラム変換装置100から取得した状態変数および行動であるデータセットに基づいて、所望の加工精度を満たす許容寸法公差を学習するようにしてもよい。なお、機械学習装置410は、同一の現場で使用される複数の加工プログラム変換装置100からデータセットを取得してもよいし、異なる現場で独立して稼働する複数の加工プログラム変換装置100および工作機械401からデータセットを収集して、所望の加工精度を満たす許容寸法公差を学習してもよい。さらに、データセットの収集対象となる加工プログラム変換装置100を途中で追加してもよいし、逆に対象から除去することも可能である。さらに、ある加工プログラム変換装置100に関して所望の加工精度を満たす許容寸法公差を学習した機械学習装置410により生成された学習済モデルを、別の加工プログラム変換装置100に対応する別の機械学習装置410に設定し、別の機械学習装置410が、新たに取得するデータセットを用いた再学習により学習済モデルを更新するようにしてもよい。 Further, the machine learning device 410 may learn the permissible dimensional tolerances satisfying the desired machining accuracy based on the state variables and the data sets of actions acquired from the plurality of machining program conversion devices 100. The machine learning device 410 may acquire a data set from a plurality of machining program conversion devices 100 used at the same site, or a plurality of machining program conversion devices 100 and machine tools that operate independently at different sites. Data sets may be collected from machine 401 to learn allowable dimensional tolerances that meet the desired machining accuracy. Further, the machining program conversion device 100 for collecting the data set may be added in the middle, or conversely, it can be removed from the target. Further, the trained model generated by the machine learning device 410 that has learned the permissible dimensional tolerance that satisfies the desired machining accuracy for one machining program conversion device 100 is converted into another machine learning device 410 corresponding to another machining program conversion device 100. May be set to, and another machine learning device 410 may update the trained model by retraining using the newly acquired data set.

なお、以上述べた例では、機械学習装置410が、実施の形態1の加工プログラム変換装置100からデータセットを取得したが、このかわりに、実施の形態2の加工プログラム変換装置100からデータセットを取得してもよいし、実施の形態3の数値制御装置200からデータセットを取得してもよい。また、実施の形態3の数値制御装置200に機械学習装置410が内蔵されていてもよい。 In the above-described example, the machine learning device 410 acquires the data set from the machining program conversion device 100 of the first embodiment, but instead, the data set is obtained from the machining program conversion device 100 of the second embodiment. It may be acquired, or the data set may be acquired from the numerical control device 200 of the third embodiment. Further, the machine learning device 410 may be built in the numerical control device 200 of the third embodiment.

上述した実施の形態4では、機械学習装置410の状態観測部411が、状態変数として、変換後加工プログラムに基づく加工結果の加工精度を取得していたが、加工精度は、変換加工プログラムに基づく加工結果の加工精度でなくともよい。例えば、変換前の加工プログラムに基づく加工結果の加工精度を用いてもよい。つまり、工作機械401を用いて、加工対象物を加工した加工結果の加工精度であれば、上述の、加工曲面、工具経路、工具データとともにデータセットを構成することが可能であり、所望の加工精度を満たす許容寸法公差を推論するための学習モデルを生成することが可能となる。 In the above-described fourth embodiment, the state observation unit 411 of the machine learning device 410 has acquired the machining accuracy of the machining result based on the post-conversion machining program as a state variable, but the machining accuracy is based on the conversion machining program. It does not have to be the processing accuracy of the processing result. For example, the machining accuracy of the machining result based on the machining program before conversion may be used. That is, if the machining accuracy of the machining result of machining the object to be machined by using the machine tool 401, it is possible to construct a data set together with the above-mentioned machining curved surface, tool path, and tool data, and the desired machining is possible. It is possible to generate a learning model for inferring the allowable dimensional tolerance that satisfies the accuracy.

以上のように、本実施の形態では、変換後加工プログラムに基づく加工結果が所望の加工精度を満たすように、自動的に許容寸法公差を求めることができる。これにより、作業者が適切な許容寸法公差を算出する場合などに比べて、許容寸法公差を決定するための時間が短縮されるため作業能率が向上する。 As described above, in the present embodiment, the allowable dimensional tolerance can be automatically obtained so that the machining result based on the post-conversion machining program satisfies the desired machining accuracy. As a result, the work efficiency is improved because the time for determining the allowable dimension tolerance is shortened as compared with the case where the operator calculates an appropriate allowable dimension tolerance.

100 加工プログラム変換装置、101,201 加工プログラム入力部、102,202 加工プログラム解析部、103,203 工具経路記憶部、104,204 曲線経路生成部、105,205 工具データ入力部、106,206 形状データ入力部、107,207 許容寸法公差入力部、108,208 曲線経路評価部、109,209 工具経路修正部、110 変換後加工プログラム出力部、111,200 数値制御装置、210 曲線経路補間部、401 工作機械、410 機械学習装置、411 状態観測部、412 学習部、413 推論部、421 報酬計算部、422 関数更新部、P1〜P6,P11〜P17,R1 指令点、Q1〜Q 評価点、C1〜C3,C11〜C13,C21〜C23 基準点、L1〜L3,L11〜L13,L21〜L23 距離、S1〜S3 加工曲面、T10〜T12 工具、TP1〜TP 曲線経路。 100 Machine tool converter, 101,201 Machine tool input unit, 102,202 Machine tool analysis unit, 103,203 Tool path storage unit, 104,204 Curve path generation unit, 105,205 Tool data input unit, 106,206 Shape Data input unit, 107, 207 allowable dimension tolerance input unit, 108, 208 curve path evaluation unit, 109, 209 tool path correction unit, 110 post-conversion machining program output unit, 111, 200 numerical controller, 210 curve path interpolation unit, 401 Machine tool, 410 Machine learning device, 411 State observation unit, 412 Learning unit, 413 Inference unit, 421 Reward calculation unit, 422 Function update unit, P1 to P6, P11 to P17, R1 Command points, Q1 to Q evaluation points, C1-C3, C11-C13, C21-C23 reference point, L1-L3, L11-L13, L21-L23 distance, S1-S3 machine tool, T10-T12 tool, TP1-TP curved path.

Claims (15)

工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、前記移動指令に従い前記工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、
前記曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するか否かを判断するために前記曲線経路上に設けた点を評価点とし、前記工具と前記加工曲面が接触する点を基準点とした場合に、前記評価点と前記基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部と、
前記距離Lが、前記許容寸法公差入力部に入力された、前記許容範囲の値以内か否かを判断する曲線経路評価部と、
前記距離Lが前記許容範囲から外れている場合に、前記許容範囲から外れている評価点を、前記距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、前記工具経路を修正する工具経路修正部と、
を備える加工プログラム変換装置。
A curve path generator that generates a curve path between a plurality of command points provided on the tool path according to the movement command based on a tool path obtained from a machining program in which a movement command for the tool is described.
An evaluation point is a point provided on the curved path in order to determine whether or not the tool operating according to the curved path operates along the machining curved surface which is the finished shape of the object to be machined, and the tool and the machining are performed. When the point where the curved surface contacts is used as the reference point, the allowable dimension tolerance input unit in which the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input, and
A curve path evaluation unit for determining whether or not the distance L is within the value of the allowable range input to the allowable dimension tolerance input unit, and
When the distance L is out of the permissible range, the evaluation point out of the permissible range is moved to a position where the distance L is within the permissible range, and the evaluated evaluation point after the movement is a new command point. And the tool path correction unit that corrects the tool path,
A machining program converter equipped with.
前記曲線経路生成部は、連続した第1、第2、および第3の指令点のうち、前記第1の指令点と前記第3の指令点を結ぶ曲線経路を生成し、
前記工具経路修正部は、工具が、前記第1と第3の指令点を結ぶ曲線経路を通過する場合の前記距離Lが前記許容範囲以下であった場合に、前記第2の指令点を削除すること
を特徴とする請求項1に記載の加工プログラム変換装置。
The curve path generation unit generates a curve path connecting the first command point and the third command point among the continuous first, second, and third command points.
The tool path correction unit deletes the second command point when the distance L when the tool passes through the curved path connecting the first and third command points is equal to or less than the allowable range. The machining program conversion apparatus according to claim 1, wherein the machining program is converted.
前記工具を定義する工具データが入力される工具データ入力部と、
前記加工対象物の前記加工曲面を定義する形状データが入力される形状データ入力部と、
をさらに備えることを特徴とする請求項1又は2に記載の加工プログラム変換装置。
A tool data input unit for inputting tool data that defines the tool, and a tool data input unit.
A shape data input unit for inputting shape data defining the processing curved surface of the processing object, and a shape data input unit.
The machining program conversion apparatus according to claim 1 or 2, further comprising.
前記形状データは、前記加工曲面における加工公差を含み、前記許容範囲は、前記加工曲面における前記加工公差に従って決定されること、
を特徴とする請求項3に記載の加工プログラム変換装置。
The shape data includes a machining tolerance on the machining surface, and the permissible range is determined according to the machining tolerance on the machining surface.
The machining program conversion apparatus according to claim 3.
工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、前記移動指令に従い前記工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、
前記曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するかを判断するために前記曲線経路上に設けた点を評価点とし、前記工具と前記加工曲面が接触する点を基準点とした場合に、前記評価点と前記基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部と、
前記距離Lが、前記許容寸法公差入力部に入力された、前記許容範囲の値以内か否かを判断する曲線経路評価部と、
前記距離Lが前記許容範囲から外れている場合に、前記許容範囲から外れている評価点のみを、前記距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、前記工具経路を修正する工具経路修正部と、
を備える数値制御装置。
A curve path generator that generates a curve path between a plurality of command points provided on the tool path according to the movement command based on a tool path obtained from a machining program in which a movement command for the tool is described.
A point provided on the curved path is set as an evaluation point in order to determine whether the tool operating according to the curved path operates along the machining curved surface which is the finished shape of the object to be machined, and the tool and the machining curved surface are set as evaluation points. When the point of contact is used as the reference point, the allowable dimension tolerance input unit in which the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input, and
A curve path evaluation unit for determining whether or not the distance L is within the value of the allowable range input to the allowable dimension tolerance input unit, and
When the distance L is out of the permissible range, only the evaluation points out of the permissible range are moved to a position where the distance L is within the permissible range, and the evaluated evaluation points after the movement are given a new command. A tool path correction unit that corrects the tool path as a point,
Numerical control device.
前記曲線経路生成部で生成した曲線経路上に、一定時間周期である補間周期あたりの工具の移動量を求めて補間した補間点を生成する曲線経路補間部を備える、
ことを特徴とする請求項5に記載の数値制御装置。
On the curve path generated by the curve path generation unit, a curve path interpolation unit that generates an interpolation point that is interpolated by obtaining the amount of movement of the tool per interpolation cycle that is a fixed time period is provided.
The numerical control device according to claim 5.
前記工具経路修正部は、前記距離Lに対する許容範囲から外れている前記評価点を、前記距離Lが前記許容範囲以下となる位置に移動させ、移動後の新たな指令点として追加すること、
を特徴とする請求項5又は6に記載の数値制御装置。
The tool path correction unit moves the evaluation point that is out of the permissible range for the distance L to a position where the distance L is equal to or less than the permissible range, and adds it as a new command point after the movement.
The numerical control device according to claim 5 or 6.
前記曲線経路生成部は、連続した第1、第2、および第3の指令点のうち、前記第1の指令点と前記第3の指令点を結ぶ曲線経路を生成し、
前記工具経路修正部は、工具が、前記第1と第3の指令点を結ぶ曲線経路を通過するときの前記距離Lが前記許容範囲以下であった場合に、前記第2の指令点を削除すること
を特徴とする請求項5に記載の数値制御装置。
The curve path generation unit generates a curve path connecting the first command point and the third command point among the continuous first, second, and third command points.
The tool path correction unit deletes the second command point when the distance L when the tool passes through the curved path connecting the first and third command points is equal to or less than the allowable range. The numerical control device according to claim 5, wherein the numerical control device.
前記工具を定義する工具データが入力される工具データ入力部と、
前記加工対象物の仕上がり形状を定義する形状データが入力される形状データ入力部と、
をさらに備えることを特徴とする請求項5から8のいずれか1項に記載の数値制御装置。
A tool data input unit for inputting tool data that defines the tool, and a tool data input unit.
A shape data input unit for inputting shape data that defines the finished shape of the object to be processed, and a shape data input unit.
The numerical control device according to any one of claims 5 to 8, further comprising.
前記形状データは、前記加工曲面における加工公差を含み、前記許容範囲は、前記加工曲面における前記加工公差に従って決定されること、
を特徴とする請求項9に記載の数値制御装置。
The shape data includes a machining tolerance on the machining surface, and the permissible range is determined according to the machining tolerance on the machining surface.
The numerical control device according to claim 9.
加工プログラム変換装置又は数値制御装置が実行する加工プログラム変換方法であって、
工具および加工対象物に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、前記移動指令に従い前記工具経路上に設けられた複数の指令点の間に曲線経路を生成するステップと、
前記曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するかを判断するために前記曲線経路上に設けた点を評価点とし、前記工具と前記加工曲面が接触する点を基準点とした場合に、前記評価点と前記基準点との距離である距離Lに対する許容範囲の値を入力するステップと、
前記距離Lが、入力された、前記許容範囲の値以内か否かを判断するステップと、
前記距離Lが前記許容範囲から外れている場合に、前記許容範囲から外れている評価点のみを、前記距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、前記工具経路を修正するステップと、
前記工具経路を修正する前記ステップで修正された工具経路を外部に出力するためのプログラムに変換するステップと、
を含む加工プログラム変換方法。
A machining program conversion method executed by a machining program conversion device or a numerical control device.
Based on the tool path obtained from the machining program in which the movement command for the tool and the machining object is described, a step of generating a curved path between a plurality of command points provided on the tool path according to the movement command, and a step of generating a curved path.
A point provided on the curved path is set as an evaluation point in order to determine whether the tool operating according to the curved path operates along the machining curved surface which is the finished shape of the object to be machined, and the tool and the machining curved surface are set as evaluation points. When the point of contact is used as the reference point, the step of inputting the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, and
A step of determining whether or not the distance L is within the input value of the allowable range, and
When the distance L is out of the permissible range, only the evaluation points out of the permissible range are moved to a position where the distance L is within the permissible range, and the evaluated evaluation points after the movement are given a new command. As a point, the step of correcting the tool path and
Modifying the tool path The step of converting the tool path modified in the step into a program for outputting to the outside, and
Machining program conversion method including.
前記加工曲面、前記工具経路、前記工具を定義する工具データ、および前記工具経路修正部により前記工具経路を修正した後の加工プログラムに基づいて行われた加工結果の加工精度を含むデータセットを取得するデータ取得部と、
前記データセットを用いて、前記加工結果が所望の加工精度を満たす、前記距離Lに対する許容範囲を推論するための学習モデルを生成する学習部と、
を備えることを特徴とする請求項1から4のいずれか1項に記載の加工プログラム変換装置。
Acquires a data set including the machining surface, the tool path, the tool data defining the tool, and the machining accuracy of the machining result performed based on the machining program after the tool path is corrected by the tool path correction unit. Data acquisition department and
Using the data set, a learning unit that generates a learning model for inferring an allowable range for the distance L, wherein the machining result satisfies a desired machining accuracy.
The machining program conversion apparatus according to any one of claims 1 to 4, further comprising.
前記加工曲面、前記工具経路、前記工具を定義する工具データ、および前記工具経路修正部により前記工具経路を修正した後の加工プログラムに基づいて行われた加工結果の加工精度を含むデータセットを取得するデータ取得部と、
前記データセットを用いて、前記加工結果が所望の加工結果を満たす、前記距離Lに対する許容範囲を推論するための学習モデルを生成する学習部と、
を備えることを特徴とする請求項5から10のいずれか1項に記載の数値制御装置。
Acquires a data set including the machining surface, the tool path, the tool data defining the tool, and the machining accuracy of the machining result performed based on the machining program after the tool path is corrected by the tool path correction unit. Data acquisition department and
Using the data set, a learning unit that generates a learning model for inferring an allowable range for the distance L, wherein the machining result satisfies a desired machining result.
The numerical control device according to any one of claims 5 to 10, wherein the numerical control device is provided.
加工対象物の仕上がり形状である加工曲面、工具に対する移動指令が記述された加工プログラムから求めた工具経路、前記工具を定義する工具データ、および、前記加工対象物の加工結果の加工精度、を含むデータセットを取得するデータ取得部と、
前記データセットを用いて、前記加工結果が所望の加工精度を満たす、許容寸法公差を推論するための学習済モデルを生成する学習部と、
を備えることを特徴とする機械学習装置。
Includes a machining curved surface that is the finished shape of the machining object, a tool path obtained from a machining program that describes a movement command for the tool, tool data that defines the tool, and machining accuracy of the machining result of the machining object. The data acquisition unit that acquires the data set and
Using the data set, a learning unit that generates a trained model for inferring a permissible dimensional tolerance in which the machining result satisfies a desired machining accuracy.
A machine learning device characterized by being equipped with.
前記加工精度は、前記工具経路上に設けられた複数の指令点の間に生成された曲線経路に従って動作する前記工具が前記加工曲面に沿って動作するか否かを、前記曲線経路上に設けられた点を評価点とし前記工具と前記加工曲面とが接触する点を基準点として、前記評価点と前記基準点との間の距離である距離Lが前記距離Lに対する許容範囲を示す前記許容寸法公差以内であるか否かを判断し、前記距離Lが前記許容寸法公差から外れている場合に、前記距離Lが前記許容寸法公差以内となるように前記工具経路を修正した後の加工プログラムに基づいて行われた加工結果の加工精度である
ことを特徴とする請求項14に記載の機械学習装置。
The machining accuracy is determined on the curved path whether or not the tool that operates according to the curved path generated between a plurality of command points provided on the tool path operates along the machining curved surface. The tolerance L, which is the distance between the evaluation point and the reference point, indicates the tolerance with respect to the distance L, with the determined point as the evaluation point and the point where the tool and the machining curved surface come into contact with each other as the reference point. A machining program after determining whether or not the tool path is within the dimensional tolerance and modifying the tool path so that the distance L is within the allowable dimensional tolerance when the distance L is out of the allowable dimensional tolerance. The machine learning apparatus according to claim 14, wherein the machining accuracy of the machining result is based on the above.
JP2020540366A 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method and machine learning device Active JP6808106B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
PCT/JP2019/008587 WO2020178978A1 (en) 2019-03-05 2019-03-05 Machining program conversion device, numerical control device, and machining program conversion method
JPPCT/JP2019/008587 2019-03-05
PCT/JP2020/008990 WO2020179798A1 (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method, and machine-learning device

Publications (2)

Publication Number Publication Date
JP6808106B1 JP6808106B1 (en) 2021-01-06
JPWO2020179798A1 true JPWO2020179798A1 (en) 2021-03-11

Family

ID=72337450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020540366A Active JP6808106B1 (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method and machine learning device

Country Status (4)

Country Link
JP (1) JP6808106B1 (en)
CN (1) CN113490894A (en)
DE (1) DE112020000656T5 (en)
WO (2) WO2020178978A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116635800A (en) * 2020-12-25 2023-08-22 发那科株式会社 Numerical controller
JPWO2023007581A1 (en) * 2021-07-27 2023-02-02
JP7274649B1 (en) * 2022-06-15 2023-05-16 Dmg森精機株式会社 Information processing device and information processing program

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3019398B2 (en) * 1990-01-21 2000-03-13 ソニー株式会社 Free-form surface machining data creation method
JP3366213B2 (en) * 1997-02-26 2003-01-14 三菱電機株式会社 Curve minute line differentiation method and numerical controller having spline interpolation function
JP3662799B2 (en) * 2000-03-09 2005-06-22 三菱電機株式会社 Numerical control apparatus and numerical control method
US8478438B2 (en) * 2008-09-16 2013-07-02 Shin Nippon Koki Co., Ltd. Numerical control device
JP2011096077A (en) 2009-10-30 2011-05-12 Makino Milling Mach Co Ltd Method and device for generating tool path
CN103246237B (en) * 2013-05-23 2015-06-03 南京工业大学 Local ending point-based numerical control system speed controlling method
WO2017110236A1 (en) * 2015-12-24 2017-06-29 三菱電機株式会社 Tool path modification device and tool path modification method
JP6470251B2 (en) * 2016-12-26 2019-02-13 ファナック株式会社 Numerical control device and machine learning device
DE112016007478B4 (en) * 2016-12-27 2021-11-25 Mitsubishi Electric Corporation Numerical control device, program conversion device, numerical control method, and program conversion method

Also Published As

Publication number Publication date
WO2020179798A1 (en) 2020-09-10
DE112020000656T5 (en) 2021-12-09
WO2020178978A1 (en) 2020-09-10
CN113490894A (en) 2021-10-08
JP6808106B1 (en) 2021-01-06

Similar Documents

Publication Publication Date Title
JP6808106B1 (en) Machining program conversion device, numerical control device, machining program conversion method and machine learning device
US11072070B2 (en) Trajectory planning apparatus, trajectory planning method, and production system
JP4223894B2 (en) PID parameter adjustment device
JP5750657B2 (en) Reinforcement learning device, control device, and reinforcement learning method
JP5218993B2 (en) Interpolation processing method and interpolation processing apparatus
JP7010877B2 (en) Machine learning equipment, numerical control system and machine learning method
CN111055286B (en) Industrial robot track generation method, system, device and storage medium
WO2006121091A1 (en) Path planning device
JP2018069428A (en) Operation path planning method
JP2009053926A (en) Route-planning device and route-planning method
JP4667764B2 (en) Route setting method
CN109117986B (en) Motion planning method, device, equipment and computer readable storage medium
JP4760732B2 (en) Route creation device
CN115202293B (en) Two-section type speed planning method for industrial robot
JP2019200661A (en) Simulation device
CN111283683B (en) Servo tracking accelerated convergence method for robot visual feature planning track
JP7175403B2 (en) MACHINING PROGRAM CONVERTER, NUMERIC CONTROLLER AND MACHINING PROGRAM CONVERSION METHOD
JP2016103206A (en) Curving method and curving device of tool path guaranteeing shape error
JP2020095539A (en) Obstacle avoidance model generation method, obstacle avoidance model generation device, and obstacle avoidance model generation program
JP2001034319A (en) Locus controller
JP6903255B1 (en) Machining program correction device, numerical control device, machining program correction method and machine learning device
JP7159883B2 (en) Reinforcement learning method, reinforcement learning program, and reinforcement learning device
CN113932799A (en) Laser map updating method, system, electronic device, medium, and program product
JP2018147103A (en) Model learning device, controlled variable calculation device, and program
JP2023089862A (en) Machine learning device, machine learning method, and machine learning program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200720

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200720

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20200720

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20201104

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201208

R150 Certificate of patent or registration of utility model

Ref document number: 6808106

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250