JP6716446B2 - Machining program analysis device, machining program analysis program and machining program analysis method - Google Patents

Machining program analysis device, machining program analysis program and machining program analysis method Download PDF

Info

Publication number
JP6716446B2
JP6716446B2 JP2016248154A JP2016248154A JP6716446B2 JP 6716446 B2 JP6716446 B2 JP 6716446B2 JP 2016248154 A JP2016248154 A JP 2016248154A JP 2016248154 A JP2016248154 A JP 2016248154A JP 6716446 B2 JP6716446 B2 JP 6716446B2
Authority
JP
Japan
Prior art keywords
physical quantity
machining program
command point
command
analysis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016248154A
Other languages
Japanese (ja)
Other versions
JP2018101347A (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.)
DMG Mori Co Ltd
Original Assignee
DMG Mori Co Ltd
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 DMG Mori Co Ltd filed Critical DMG Mori Co Ltd
Priority to JP2016248154A priority Critical patent/JP6716446B2/en
Priority to DE102017221766.9A priority patent/DE102017221766A1/en
Priority to CN201711393174.9A priority patent/CN108227628B/en
Publication of JP2018101347A publication Critical patent/JP2018101347A/en
Application granted granted Critical
Publication of JP6716446B2 publication Critical patent/JP6716446B2/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/406Numerical 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 monitoring or safety
    • G05B19/4069Simulating machining process on screen
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4097Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using design data to control NC machines, e.g. CAD/CAM
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32153Exchange data between user, cad, caq, nc, capp
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35012Cad cam
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35292By making, plotting a drawing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35311Remote simulation of machining program

Description

本発明は、工作機械を数値制御するための加工プログラムを解析する加工プログラム解析装置、加工プログラム解析プログラムおよび加工プログラム解析方法に関するものである。 The present invention relates to a machining program analysis device, a machining program analysis program, and a machining program analysis method for analyzing a machining program for numerically controlling a machine tool.

従来、工作機械を数値制御して自由曲面等を加工する場合、図38に示すように、工具経路を微小線分に区分する指令点の点列データ(指令点列)を含む加工プログラムが使用されている。この加工プログラムは、近年の加工内容の複雑化に伴い、CAD(Computer-Aided Design:コンピュータ支援設計)機能およびCAM(Computer Aided Manufacturing:コンピュータ支援製造)機能を兼ね備えたCAD/CAM装置によって生成されることが多い。 Conventionally, when a machine tool is numerically controlled to machine a free-form surface, as shown in FIG. 38, a machining program including point sequence data (command point sequence) of command points dividing a tool path into minute line segments is used. Has been done. This machining program is generated by a CAD/CAM device that has both a CAD (Computer-Aided Design: Computer Aided Design) function and a CAM (Computer Aided Manufacturing: Computer Aided Manufacturing) function as the machining contents have become complicated in recent years. Often.

しかしながら、当該CAD/CAM装置の性能によっては、図39に示すように、生成された加工プログラムの指令点列が不揃いになってしまうことが知られている。そして、このような不揃いの指令点列を含む加工プログラムによってワークを加工した場合、工具経路に誤差が生じるため、加工面に傷や筋目等の痕跡が残ってしまうという問題がある。 However, it is known that, depending on the performance of the CAD/CAM device, the command point sequences of the generated machining program are not uniform as shown in FIG. When a work is machined by a machining program including such a non-uniform instruction point sequence, an error occurs in the tool path, and there is a problem that marks such as scratches and lines remain on the machined surface.

なお、加工プログラムの良否や問題点等を解析するものとして、例えば、特開2004−21954号公報には、加工プログラムの工具軌跡の各微小線分について、特定軸に対する傾きの正、負、または0を判定し、各傾きに対して異なる表示属性により微小線分あるいは微小線分の端点を表示する工具軌跡表示方法が開示されている(特許文献1)。 As an analysis of the quality of the machining program, problems, etc., for example, in Japanese Patent Laid-Open No. 2004-21954, for each minute line segment of the tool locus of the machining program, positive, negative, or A tool locus display method is disclosed in which 0 is determined and a minute line segment or an end point of the minute line segment is displayed with different display attributes for each tilt (Patent Document 1).

特開2004−21954号公報JP 2004-21954 A

しかしながら、加工プログラムに含まれる指令点列は、各指令点についての単なる位置座標にしか過ぎない。このため、上記特許文献1では、いずれか一つの特定軸に対する工具経路上の凹凸程度は識別できるものの、それ以外の有用な情報を加工プログラムから直接取得することができないという問題がある。 However, the command point sequence included in the machining program is merely the position coordinates for each command point. Therefore, in Patent Document 1, although the degree of unevenness on the tool path with respect to any one specific axis can be identified, there is a problem that other useful information cannot be directly obtained from the machining program.

例えば、加工プログラムによって加工されるワークがどのような加工面を有するかの情報や、各指令点が隣接する工具経路を含む周囲の指令点との位置関係において不揃いか否かの情報を解析できれば、加工面の品位の向上に資するものと考えられる。しかしながら、従来、位置座標以外の情報を含まない加工プログラムからは、上述したような情報を直接取得することができず、限られた解析しか行うことができないという問題がある。 For example, if it is possible to analyze information about what kind of machining surface the workpiece machined by the machining program has, and whether or not each command point is not aligned in the positional relationship with the surrounding command points including the adjacent tool path. It is considered that it will contribute to the improvement of the quality of the processed surface. However, conventionally, there is a problem that the above-described information cannot be directly acquired from a machining program that does not include information other than the position coordinates, and only limited analysis can be performed.

本発明は、このような問題点を解決するためになされたものであって、加工プログラムから有用な情報を直接取得し、様々な解析を行うことができる加工プログラム解析装置、加工プログラム解析プログラムおよび加工プログラム解析方法を提供することを目的としている。 The present invention has been made to solve such a problem, and is a machining program analysis device, a machining program analysis program and a machining program analysis program that can directly obtain useful information from a machining program and perform various analyzes. It is intended to provide a machining program analysis method.

上記目的を達成するため、本発明に係る装置は、
工作機械を数値制御しワークを加工するための加工プログラム自体を解析し、前記加工プログラムを編集するための加工プログラム解析装置であって、
前記加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を有する。
In order to achieve the above object, the device according to the present invention comprises
A machining program analyzing apparatus for analyzing a machining program itself for machining a workpiece by numerically controlling a machine tool, and editing the machining program,
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program ;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Have.

上記目的を達成するため、本発明に係る他の装置は、
加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を備え、
前記所定の物理量は、下記式(1)で定義される移動量、下記式(2)で定義される角度、下記式(3)で定義される曲率半径、下記式(4)で定義される移動量変化量、下記式(5)で定義される移動量変化量の変化量、または下記式(6)で定義される移動量の比率のいずれかであ加工プログラム解析装置;
=Pi+1−Pi−1 ・・・式(1)

Figure 0006716446
=Pi+1−2P+Pi−1 ・・・式(4)
=Pi+1−3P+3Pi−1−Pi−2 ・・・式(5)
Figure 0006716446
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
:第i番目の指令点の移動量
θ:第i番目の指令点の角度
ρ:第i番目の指令点の曲率半径
:P、Pi+1間の移動を示す曲線を近似したn次多項式の1次の項の係数
:P、Pi+1間の移動を示す曲線を近似したn次多項式の2次の項の係数
;第i番目の指令点の移動量変化量
;第i番目の指令点の移動量変化量の変化量
;第i番目の指令点の移動量の比率 In order to achieve the above object, another device according to the present invention is
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Equipped with
The predetermined physical quantity is defined by the movement amount defined by the following formula (1), the angle defined by the following formula (2), the radius of curvature defined by the following formula (3), and the following formula (4). movement amount change amount, the following formula (5) defined in the movement amount change amount of variation, or the following formula (6) Ru der any proportion of the movement amount that is defined by the machining program analyzing device;
V i = P i + 1 -P i-1 ··· formula (1)
Figure 0006716446
A i =P i+1 −2P i +P i−1 ...Equation (4)
J i =P i+1 −3P i +3P i−1 −P i−2 Equation (5)
Figure 0006716446
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point V i : movement amount of i-th command point θ i : angle of i-th command point ρ i : i-th command point the radius of curvature c 1: P i, P i + 1 of the n-th order polynomial approximating the curve representing the movement between the first-order coefficient of the term c 2: P i, n-th order polynomial approximating the curve representing the movement between P i + 1 Coefficient of quadratic term A i ; change amount of movement amount of i-th command point J i ; change amount of change amount of movement amount of i-th command point k i ; of movement amount of i-th command point ratio

上記目的を達成するため、本発明に係るさらに他の装置は、
加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を備え、
前記物理量算出部は、前記物理量分類部によって同一のグループに分類された前記物理量を有する各指令点について、前記物理量とは異なる前記物理量を算出し、前記物理量分類部は、前記異なる物理量に対してクラスター分析を行うことにより、さらに複数のグループに再分類す
In order to achieve the above object, still another apparatus according to the present invention is
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Equipped with
The physical quantity calculation unit, for each command point having the physical quantity classified into the same group by the physical quantity classification unit, calculates the physical quantity different from the physical quantity, the physical quantity classification unit, for the different physical quantity by performing cluster analysis, we reclassification further into a plurality of groups.

上記目的を達成するため、本発明に係るさらに他の装置は、
加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を備え、
前記物理量算出部は、各指令点について異なる複数の前記物理量を算出し、前記物理量分類部は、前記複数の物理量からなる物理量群に対してクラスター分析を行うことにより、前記物理量群を複数のグループに分類す
In order to achieve the above object, still another apparatus according to the present invention is
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Equipped with
The physical quantity calculation unit calculates a plurality of different physical quantities for each command point, and the physical quantity classification unit performs a cluster analysis on a physical quantity group consisting of the plurality of physical quantities, thereby creating a plurality of physical quantity groups. It falls into.

上記目的を達成するため、本発明に係るプログラムは、
工作機械を数値制御しワークを加工するための加工プログラム自体を解析し、前記加工プログラムを編集するための加工プログラム解析プログラムであって、
前記加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
してコンピュータを機能させる。
In order to achieve the above object, the program according to the present invention is
A machining program analysis program for analyzing a machining program itself for numerically controlling a machine tool to machine a work, and editing the machining program,
For each command points constituting a command point sequence of the machining program, and the physical quantity calculation unit for calculating a predetermined physical quantity by using the position coordinates of one or more command point,
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
And make the computer work.

上記目的を達成するため、本発明に係る方法は、
工作機械を数値制御しワークを加工するための加工プログラム自体を解析し、前記加工プログラムを編集するための加工プログラム解析方法であって、
前記加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出ステップと、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類ステップと、
を有する。
In order to achieve the above object, the method according to the present invention comprises
A machining program analysis method for analyzing a machining program itself for numerically controlling a machine tool to machine a work, and editing the machining program,
For each command points constituting a command point sequence of the machining program, a physical quantity calculating step of calculating a predetermined physical quantity by using the position coordinates of one or more command point,
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification step of classifying the physical quantity into a plurality of groups,
Have.

本発明によれば、加工プログラムから有用な情報を直接取得し、様々な解析を行うことができる。 According to the present invention, useful information can be directly obtained from a machining program and various analyzes can be performed.

本発明に係る加工プログラム解析装置の一実施形態を示すブロック図である。It is a block diagram showing one embodiment of a machining program analysis device concerning the present invention. 本実施形態において、解析結果記憶部に記憶される解析結果の一例を示す図である。In this embodiment, it is a figure which shows an example of the analysis result memorize|stored in the analysis result memory|storage part. 本実施形態の加工プログラム解析方法を示すフローチャートである。It is a flow chart which shows the processing program analysis method of this embodiment. 実施例1〜5で解析対象としたブレード加工プログラムの工具経路を示す図である。It is a figure which shows the tool path|route of the blade processing program made into the analysis object in Examples 1-5. 実施例1における、移動量の定義式を示す図である。FIG. 6 is a diagram showing a definition formula of a movement amount in the first embodiment. 実施例1において、移動量を算出した結果を示す図である。FIG. 7 is a diagram showing a result of calculating a movement amount in the first embodiment. 実施例1において、移動量を3つのグループに分類した結果を示す図である。FIG. 7 is a diagram showing a result of classifying the movement amount into three groups in the first embodiment. 実施例1において、移動量の分類結果に基づいて、ブレード加工プログラムの加工面を識別した解析結果を示す図である。FIG. 7 is a diagram showing an analysis result of identifying a machining surface of a blade machining program based on a movement amount classification result in the first embodiment. 実施例1における、角度の定義式を示す図である。FIG. 6 is a diagram showing a definition formula of an angle in the first embodiment. 実施例1において、角度を算出した結果を示す図である。FIG. 6 is a diagram showing a result of calculating an angle in the first embodiment. 実施例1において、角度を2つのグループに分類した結果を示す図である。6 is a diagram showing a result of classifying angles into two groups in Example 1. FIG. 実施例1において、角度の分類結果に基づいて、ブレード加工プログラムの加工面を識別した結果を示す図である。FIG. 8 is a diagram showing a result of identifying a machining surface of a blade machining program based on a result of classification of angles in the first embodiment. 実施例1における、曲率半径の定義式を示す図である。FIG. 6 is a diagram showing a definition formula of a radius of curvature in the first embodiment. 実施例1において、曲率半径を算出した結果を示す図である。6 is a diagram showing a result of calculating a radius of curvature in Example 1. FIG. 実施例1において、曲率半径を2つのグループに分類した結果を示す図である。FIG. 7 is a diagram showing a result of classifying the radii of curvature into two groups in Example 1. 実施例1において、曲率半径の分類結果に基づいて、ブレード加工プログラムの加工面を識別した結果を示す図である。FIG. 9 is a diagram showing a result of identifying a machining surface of a blade machining program based on a result of classification of curvature radii in the first embodiment. 実施例2における、移動量変化量の定義式を示す図である。FIG. 9 is a diagram showing a definition formula of a movement amount change amount in the second embodiment. 実施例2において、移動量変化量を算出した結果を示す図である。FIG. 8 is a diagram showing a result of calculating a movement amount change amount in the second embodiment. 実施例2において、移動量変化量を3つのグループに分類した結果を示す図である。FIG. 11 is a diagram showing a result of classifying the movement amount change amount into three groups in the second embodiment. 実施例2において、移動量変化量の分類結果に基づいて、ブレード加工プログラムにおける不揃いの指令点を抽出した結果を示す図である。FIG. 13 is a diagram showing a result of extracting non-uniform command points in the blade processing program based on the classification result of the movement amount change amount in the second embodiment. 実施例2における、移動量変化量の変化量の定義式を示す図である。FIG. 9 is a diagram showing a definition formula of a variation amount of a movement amount variation amount in the second embodiment. 実施例2において、移動量変化量の変化量を算出した結果を示す図である。FIG. 10 is a diagram showing a result of calculating a change amount of a movement amount change amount in the second embodiment. 実施例2において、移動量変化量の変化量を3つのグループに分類した結果を示す図である。FIG. 9 is a diagram showing a result of classifying the change amounts of the movement amount change amount into three groups in the second embodiment. 実施例2において、移動量変化量の変化量の分類結果に基づいて、ブレード加工プログラムにおける不揃いの指令点を抽出した結果を示す図である。FIG. 12 is a diagram showing a result of extracting non-uniform command points in the blade processing program based on the classification result of the variation amount of the movement amount variation in the second embodiment. 実施例2における、移動量の比率の定義式を示す図である。FIG. 8 is a diagram showing a definitional expression of a ratio of a movement amount in the second embodiment. 実施例2において、移動量の比率を算出した結果を示す図である。FIG. 9 is a diagram showing a result of calculating a ratio of a movement amount in the second embodiment. 実施例2において、移動量の比率を2つのグループに分類した結果を示す図である。FIG. 11 is a diagram showing a result of classifying the ratio of the movement amount into two groups in the second embodiment. 実施例2において、移動量の比率の分類結果に基づいて、ブレード加工プログラムにおける不揃いの指令点を抽出した結果を示す図である。FIG. 10 is a diagram showing a result of extracting non-uniform command points in the blade processing program based on the classification result of the movement amount ratio in the second embodiment. 実施例3において、移動量によって加工面を識別した後、移動量変化量によって不揃い点を抽出した結果を示す図である。FIG. 16 is a diagram showing a result of extracting irregular points based on a movement amount change amount after identifying a processed surface according to the movement amount in the third embodiment. 実施例3の比較例として、移動量変化量のみによって、ブレード加工プログラムにおける不揃いの指令点を抽出した結果を示す図である。FIG. 16 is a diagram showing a result of extracting non-uniform command points in a blade processing program only by a movement amount change amount as a comparative example of the third embodiment. 実施例4において、位置および移動量を算出した結果を示す図である。FIG. 16 is a diagram showing the result of calculating the position and the movement amount in the fourth embodiment. 実施例4において、位置および移動量を組み合わせて、ブレード加工プログラムにおける加工面を識別した結果を示す図である。FIG. 16 is a diagram showing a result of identifying a machined surface in a blade machining program by combining the position and the movement amount in the fourth embodiment. 実施例5における、指令点の位置座標を示す図である。FIG. 16 is a diagram showing the position coordinates of command points in the fifth embodiment. 実施例5における、機械の位置座標を示す図である。FIG. 16 is a diagram showing the position coordinates of the machine in the fifth embodiment. 実施例5において、指令点の移動量および機械の移動量を4つのグループに分類した際の、指令点の移動量に関する分類結果を示す図である。FIG. 16 is a diagram showing a classification result regarding the movement amount of the command point when the movement amount of the command point and the movement amount of the machine are classified into four groups in the fifth embodiment. 実施例5において、指令点の移動量および機械の移動量を4つのグループに分類した際の、機械の移動量に関する分類結果を示す図である。FIG. 16 is a diagram showing a classification result regarding the movement amount of the machine when the movement amount of the command point and the movement amount of the machine are classified into four groups in the fifth embodiment. 実施例5において、指令点の移動量および機械の移動量を用いて、ブレード加工プログラムの加工面を識別した結果を示す図である。FIG. 13 is a diagram showing a result of identifying a machining surface of a blade machining program using a movement amount of a command point and a movement amount of a machine in a fifth embodiment. 加工プログラムの指令点列を構成する指令点およびその刃先経路を示す図である。It is a figure which shows the command point which comprises the command point sequence of a machining program, and its edge path. 不揃いの指令点が生じた加工プログラムの工具経路を示す図である。It is a figure which shows the tool path|route of the machining program in which the non-uniform command point arose.

以下、本発明に係る加工プログラム解析装置、加工プログラム解析プログラムおよび加工プログラム解析方法の一実施形態について図面を用いて説明する。 An embodiment of a machining program analysis device, a machining program analysis program, and a machining program analysis method according to the present invention will be described below with reference to the drawings.

本実施形態の加工プログラム解析装置1は、加工プログラムについて様々な解析を行うものであり、パーソナルコンピュータ、タブレット端末またはスマートフォン等の一般的なコンピュータによって構成されている。具体的には、加工プログラム解析装置1は、図1に示すように、主として、データの入力や解析結果の表示を行うための表示入力手段2と、本実施形態の加工プログラム解析プログラム1aや各種データを記憶するとともに、演算処理手段4が各種処理を行う際のワーキングエリアとして機能する記憶手段3と、記憶手段3にインストールされた加工プログラム解析プログラム1aを実行することにより、各種の演算処理を実行する演算処理手段4とから構成されている。以下、各構成手段について詳細に説明する。 The machining program analysis device 1 of the present embodiment performs various analyzes on a machining program, and is configured by a general computer such as a personal computer, a tablet terminal or a smartphone. Specifically, as shown in FIG. 1, the machining program analysis device 1 mainly includes a display input unit 2 for inputting data and displaying an analysis result, a machining program analysis program 1a of the present embodiment, and various types. By executing the storage unit 3 that stores data and functions as a working area when the arithmetic processing unit 4 performs various processes, and the machining program analysis program 1a installed in the storage unit 3, various arithmetic processes can be performed. It is composed of the arithmetic processing means 4 for executing. Hereinafter, each component will be described in detail.

なお、本実施形態において、加工プログラム解析装置1は、一般的なコンピュータによって構成されているが、この構成に限定されるものではない。例えば、コンピュータ数値制御(CNC:Computer Numerical Control)可能な数値制御装置や、上述したCAD/CAM装置等の特殊なコンピュータに本発明に係る加工プログラム解析機能を実装し、加工プログラム解析装置1として構成してもよい。 In addition, in the present embodiment, the machining program analysis device 1 is configured by a general computer, but is not limited to this configuration. For example, a machining program analysis function according to the present invention is mounted on a special computer such as a numerical control device capable of computer numerical control (CNC) or a CAD/CAM device described above, and configured as the machining program analysis device 1. You may.

表示入力手段2は、タッチパネル等で構成されており、入力機能と表示機能とを兼ね備えたものである。本実施形態において、表示入力手段2は、後述する物理量の選択や、グループ数の設定等を受け付ける入力機能と、加工プログラムの解析結果等を表示する表示機能とを有している。なお、本実施形態では、表示機能および入力機能を兼ね備えた表示入力手段2を使用しているが、この構成に限定されるものではなく、表示機能のみを備えた液晶ディスプレイ等の表示手段、および入力機能のみを備えたキーボードやマウス等の入力手段をそれぞれ別個に有していてもよい。 The display input means 2 is composed of a touch panel or the like and has both an input function and a display function. In the present embodiment, the display input means 2 has an input function of receiving a physical quantity selection, setting of the number of groups, and the like, which will be described later, and a display function of displaying an analysis result of a machining program and the like. In the present embodiment, the display input means 2 having both a display function and an input function is used, but the present invention is not limited to this configuration, and a display means such as a liquid crystal display having only a display function, and The input means such as the keyboard and the mouse having only the input function may be separately provided.

記憶手段3は、ハードディスク、ROM(Read Only Memory)、RAM(Random Access Memory)、フラッシュメモリ等で構成されており、各種データを記憶するとともに、演算処理手段4が各種処理を行う際のワーキングエリアとして機能するものである。本実施形態において、記憶手段3は、図1に示すように、プログラム記憶部31と、加工プログラム記憶部32と、解析結果記憶部33と、物理量定義式記憶部34とを有している。 The storage unit 3 includes a hard disk, a ROM (Read Only Memory), a RAM (Random Access Memory), a flash memory, and the like, stores various data, and is a working area when the arithmetic processing unit 4 performs various processes. It functions as. In the present embodiment, as shown in FIG. 1, the storage unit 3 has a program storage unit 31, a machining program storage unit 32, an analysis result storage unit 33, and a physical quantity definition formula storage unit 34.

プログラム記憶部31には、本実施形態の加工プログラム解析装置1を制御するための加工プログラム解析プログラム1aがインストールされている。そして、演算処理手段4が、当該加工プログラム解析プログラム1aを実行することにより、加工プログラム解析装置1としてのコンピュータを後述する各構成部として機能させるようになっている。 A machining program analysis program 1a for controlling the machining program analysis device 1 of the present embodiment is installed in the program storage unit 31. Then, the arithmetic processing means 4 executes the machining program analysis program 1a to cause the computer as the machining program analysis device 1 to function as each component described later.

なお、加工プログラム解析プログラム1aの利用形態は、上記構成に限られるものではない。例えば、CD−ROMやUSBメモリ等のように、コンピュータで読み取り可能な非一時的な記録媒体に加工プログラム解析プログラム1aを記憶させておき、当該記録媒体から直接読み出して実行してもよい。また、外部サーバ等からクラウドコンピューティング方式やASP(Application Service Provider)方式等で利用してもよい。 The usage form of the machining program analysis program 1a is not limited to the above configuration. For example, the processing program analysis program 1a may be stored in a computer-readable non-transitory recording medium such as a CD-ROM or a USB memory, and may be directly read from the recording medium and executed. In addition, an external server or the like may be used in a cloud computing method, an ASP (Application Service Provider) method, or the like.

加工プログラム記憶部32は、解析対象となる加工プログラムを記憶するものである。本実施形態において、加工プログラムは、各種の工作機械を数値制御するためのものであり、CAD/CAM装置によって生成されている。また、加工プログラムには、行番号に対応付けて、工具経路を微小線分に区分する各指令点の位置座標が、指令点列として含まれている。 The machining program storage unit 32 stores a machining program to be analyzed. In the present embodiment, the machining program is for numerically controlling various machine tools and is generated by a CAD/CAM device. The machining program also includes, as a command point sequence, the position coordinates of each command point that divides the tool path into minute line segments in association with the line numbers.

解析結果記憶部33は、加工プログラムの解析結果を記憶するものである。本実施形態において、解析結果記憶部33は、図2に示すように、データテーブル形式で構成されており、加工プログラムの指令点列を構成する各指令点について、工具経路に沿ってシーケンシャルに振られた指令点番号と、X軸、Y軸およびZ軸の各座標値で表された位置座標と、後述する物理量算出部43によって算出された物理量と、後述する物理量分類部45によって分類されたグループのグループ番号とを記憶するようになっている。 The analysis result storage unit 33 stores the analysis result of the machining program. In the present embodiment, the analysis result storage unit 33 is configured in a data table format, as shown in FIG. 2, and the command points constituting the command point sequence of the machining program are sequentially shaken along the tool path. The designated command point number, the position coordinate represented by each coordinate value of the X axis, the Y axis, and the Z axis, the physical quantity calculated by the physical quantity calculation unit 43 described later, and the physical quantity classification unit 45 described later. The group number and the group number are stored.

なお、図2に示す例では、実施例1で後述する移動量V(=Pi+1−Pi−1)が物理量の一つとして記憶されている。また、物理量の算出に用いる位置座標は、直線軸(X,Y,Z)に限定されるものではなく、回転軸(A,B,C)でもよいし、直線軸(X,Y,Z)と回転軸(A,B,C)の組み合わせでもよい。さらに、図2の移動量Vは、前後の指令点の位置座標を用いて算出する物理量であるため、指令点列の先頭および後尾の指令点については物理量は算出されず、グループに分類されることもない。 In the example shown in FIG. 2, a movement amount V i (=P i+1 −P i−1 ) described later in the first embodiment is stored as one of the physical amounts. The position coordinates used for calculating the physical quantity are not limited to the linear axes (X, Y, Z), but may be the rotational axes (A, B, C) or the linear axes (X, Y, Z). And a rotation axis (A, B, C) may be combined. Further, since the movement amount V i in FIG. 2 is a physical amount calculated using the position coordinates of the command points before and after, the physical amounts are not calculated for the command points at the beginning and the end of the command point sequence, and are classified into groups. It never happens.

物理量定義式記憶部34は、加工プログラムの解析に用いる所定の物理量を算出するための定義式を記憶するものである。本発明において、物理量とは、物理系の性質を表現し、その測定方法や、大きさの単位が規定された全ての量を含む概念である。また、本発明に係る定義式としては、加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて算出される物理量が定義されている。 The physical quantity definition formula storage unit 34 stores a definition formula for calculating a predetermined physical quantity used for analysis of a machining program. In the present invention, the physical quantity is a concept that expresses the properties of a physical system and includes all quantities whose measurement method and size unit are defined. Further, as the definitional expression according to the present invention, a physical quantity calculated using the position coordinates of one or a plurality of command points is defined for each command point forming the command point sequence of the machining program.

具体的には、所定の物理量としては、実施例1〜5で後述するとおり、移動量、角度、曲率半径、移動量変化量、移動量変化量の変化量または移動量の比率等の物理量が使用可能である。そして、当該物理量を算出するための定義式として、下記式(1)〜(6)等の定義式が、当該物理量に対応付けて物理量定義式記憶部34に記憶されている。なお、物理量定義式記憶部34には、表示入力手段2を介して任意の物理量およびその定義式を設定できるようになっている。 Specifically, as the predetermined physical quantity, a physical quantity such as a movement amount, an angle, a radius of curvature, a movement amount change amount, a movement amount change amount change amount, or a movement amount ratio is used as described later in Examples 1 to 5. It can be used. Then, as a definitional expression for calculating the physical quantity, definitional expressions such as the following expressions (1) to (6) are stored in the physical quantity definitional expression storage unit 34 in association with the physical quantity. In the physical quantity definition formula storage unit 34, an arbitrary physical quantity and its definition formula can be set via the display input means 2.

つぎに、演算処理手段4は、CPU(Central Processing Unit)等によって構成されており、記憶手段3にインストールされた加工プログラム解析プログラム1aを実行することにより、図1に示すように、指令点取得部41と、物理量選択部42と、物理量算出部43と、グループ数設定部44と、物理量分類部45と、解析結果出力部46として機能するようになっている。以下、演算処理手段4の各構成部についてより詳細に説明する。 Next, the arithmetic processing means 4 is composed of a CPU (Central Processing Unit) and the like, and by executing the machining program analysis program 1a installed in the storage means 3, as shown in FIG. It functions as a unit 41, a physical quantity selection unit 42, a physical quantity calculation unit 43, a group number setting unit 44, a physical quantity classification unit 45, and an analysis result output unit 46. Hereinafter, each component of the arithmetic processing means 4 will be described in more detail.

指令点取得部41は、加工プログラムから指令点を取得するものである。本実施形態において、指令点取得部41は、加工プログラム記憶部32から加工プログラムを読み出し、当該加工プログラムの指令点列を構成する各指令点の位置座標を取得して、解析結果記憶部33に順次記憶させるようになっている。 The command point acquisition unit 41 acquires command points from the machining program. In the present embodiment, the command point acquisition unit 41 reads the machining program from the machining program storage unit 32, acquires the position coordinates of each command point forming the command point sequence of the machining program, and stores it in the analysis result storage unit 33. It is designed to be stored sequentially.

物理量選択部42は、加工プログラムの解析に使用する1または2以上の物理量を選択するものである。本実施形態において、物理量選択部42は、物理量定義式記憶部34に予め用意されている各種の物理量の中から、表示入力手段2を介して所望の物理量の選択を受け付けると、当該選択された物理量の種別を物理量算出部43に提供するようになっている。また、本実施形態において、物理量選択部42は、後述するとおり、異なる複数の物理量を並列的に用いて解析する場合、2以上の物理量を選択するようになっている。 The physical quantity selection unit 42 selects one or two or more physical quantities used for analysis of the machining program. In the present embodiment, when the physical quantity selection unit 42 receives a selection of a desired physical quantity from the various physical quantities prepared in advance in the physical quantity definition formula storage unit 34 via the display input unit 2, the physical quantity selection unit 42 selects the desired physical quantity. The physical quantity type is provided to the physical quantity calculation unit 43. Further, in the present embodiment, the physical quantity selection unit 42 is configured to select two or more physical quantities when analyzing a plurality of different physical quantities in parallel, as described later.

なお、物理量選択部42は、上記構成に限定されるものではなく、予め所定の物理量をデフォルトで選択するように構成されていてもよい。また、使用する物理量が常に固定であれば、物理量選択部42を設ける必要はない。 Note that the physical quantity selection unit 42 is not limited to the above configuration, and may be configured to select a predetermined physical quantity in advance by default. Further, if the physical quantity to be used is always fixed, there is no need to provide the physical quantity selection unit 42.

物理量算出部43は、各指令点について物理量を算出するものである。本実施形態において、物理量算出部43は、指令点取得部41によって取得された各指令点の位置座標を解析結果記憶部33から読み出すとともに、物理量選択部42によって選択された物理量に対応する定義式を物理量定義式記憶部34から読み出す。そして、物理量算出部43は、読み出した定義式に基づき、1または複数の指令点の位置座標を用いて、各指令点についての物理量を算出し、解析結果記憶部33に記憶するようになっている。 The physical quantity calculation unit 43 calculates a physical quantity for each command point. In the present embodiment, the physical quantity calculation unit 43 reads out the position coordinates of each command point acquired by the command point acquisition unit 41 from the analysis result storage unit 33, and also defines the physical quantity selected by the physical quantity selection unit 42. From the physical quantity definition formula storage unit 34. Then, the physical quantity calculation unit 43 calculates the physical quantity for each command point using the position coordinates of one or more command points based on the read definitional expression, and stores it in the analysis result storage unit 33. There is.

また、本実施形態において、加工プログラム記憶部32に記憶された加工プログラムが、少なくとも2つの直線軸および少なくとも1つの回転軸を有する多軸加工機の動作を制御する多軸加工機用加工プログラムである場合、物理量算出部43は、各指令点に対応する機械位置の位置座標を用いて物理量を算出する機能を有している。詳細については、実施例5で後述する。 Further, in the present embodiment, the machining program stored in the machining program storage unit 32 is a machining program for a multi-axis machine that controls the operation of a multi-axis machine having at least two linear axes and at least one rotary axis. In some cases, the physical quantity calculation unit 43 has a function of calculating the physical quantity using the position coordinates of the machine position corresponding to each command point. Details will be described later in Example 5.

グループ数設定部44は、各指令点の物理量をクラスター分析する際のグループ数(クラスタ数)を設定するものである。本実施形態において、グループ数設定部44は、表示入力手段2を介して所望のグループ数の入力を受け付けると、当該入力されたグループ数を物理量分類部45に設定するようになっている。なお、最適なグループ数は、解析に使用する物理量や、ワークの形状等によって異なる。よって、本実施形態では、所望の解析結果が得られるまで、グループ数を適宜変更しうるようになっている。 The group number setting unit 44 sets the number of groups (the number of clusters) when performing the cluster analysis of the physical quantity of each command point. In the present embodiment, when the number of groups setting section 44 receives an input of a desired number of groups via the display inputting means 2, the number of input groups is set in the physical quantity classifying section 45. The optimum number of groups differs depending on the physical quantity used for analysis, the shape of the work, and the like. Therefore, in this embodiment, the number of groups can be appropriately changed until a desired analysis result is obtained.

物理量分類部45は、各指令点の物理量に対してクラスター分析を行うことにより、物理量を複数のグループに分類するものである。本発明において、クラスター分析とは、いわゆる非階層的クラスター分析に相当するものである。具体的には、分類するグループ数を予め定めておき、互いに性質が類似するものを同一のグループに分類し、そうでないものを異なるグループに分類することで、予め定めたグループ数にグルーピングする手法である。 The physical quantity classification unit 45 classifies the physical quantity into a plurality of groups by performing cluster analysis on the physical quantity of each command point. In the present invention, the cluster analysis corresponds to so-called non-hierarchical cluster analysis. Specifically, a method of grouping into a predetermined number of groups by previously defining the number of groups to be classified, classifying those having similar characteristics into the same group, and classifying different groups into different groups Is.

よって、本実施形態において、物理量分類部45は、物理量算出部43によって算出された各指令点の物理量を解析結果記憶部33から読み出し、グループ数設定部44によって設定されたグループ数となるように、各指令点の物理量をクラスター分析し分類する。そして、物理量分類部45は、分類結果として得られたグループ番号を各指令点の物理量に対応付けて解析結果記憶部33に記憶するようになっている。 Therefore, in the present embodiment, the physical quantity classification unit 45 reads the physical quantity of each command point calculated by the physical quantity calculation unit 43 from the analysis result storage unit 33 so that the number of groups is set by the group number setting unit 44. , The physical quantity of each command point is analyzed by cluster and classified. Then, the physical quantity classification unit 45 stores the group number obtained as the classification result in the analysis result storage unit 33 in association with the physical quantity of each command point.

なお、クラスター分析に使用するアルゴリズムとしては、計算時間と分析精度の観点から、K−means法(K平均法)が好ましいが、物理量をグルーピング可能な手法であれば、特に限定されるものではなく、他のクラスタリングアルゴリズムを使用してもよい。 The algorithm used for the cluster analysis is preferably the K-means method (K-means method) from the viewpoint of calculation time and analysis accuracy, but is not particularly limited as long as it is a method capable of grouping physical quantities. , Other clustering algorithms may be used.

また、本実施形態において、物理量分類部45は、同一のグループに分類された物理量を有する各指令点について、先の分類に用いた物理量とは異なる物理量に対してクラスター分析を行うことにより、さらに複数のグループに再分類する機能を有している。これにより、異なる複数の物理量によって指令点列が直列的に評価されるため、解析能力が向上することとなる。詳細については、実施例3で後述する。 Further, in the present embodiment, the physical quantity classification unit 45 further performs cluster analysis on each command point having a physical quantity classified into the same group, with respect to a physical quantity different from the physical quantity used in the previous classification. It has the function of reclassifying into multiple groups. As a result, the command point sequence is evaluated in series by a plurality of different physical quantities, so that the analysis capability is improved. Details will be described later in Example 3.

さらに、本実施形態において、物理量分類部45は、各指令点について算出された異なる複数の物理量からなる物理量群に対してクラスター分析を行うことにより、当該物理量群を複数のグループに分類する機能を有している。これにより、異なる複数の物理量によって指令点列が並列的に評価されるため、解析能力が向上することとなる。詳細については、実施例4で後述する。 Further, in the present embodiment, the physical quantity classification unit 45 has a function of classifying the physical quantity group into a plurality of groups by performing cluster analysis on the physical quantity group composed of a plurality of different physical quantities calculated for each command point. Have As a result, the command point sequence is evaluated in parallel by a plurality of different physical quantities, so that the analysis capability is improved. Details will be described later in Example 4.

解析結果出力部46は、物理量分類部45による分類結果を加工プログラムの解析結果として出力するものである。本実施形態において、解析結果出力部46は、物理量分類部45によって分類されたグループを識別可能な態様で、各指令点のプロットを表示するようになっている。具体的には、解析結果出力部46は、解析結果記憶部33から各指令点の位置座標およびグループ番号を読み出し、グループ番号が異なる各グループごとに、互いに識別しうる色や形状またはその組み合わせ等の表示態様を設定する。そして、解析結果出力部46は、各指令点の位置座標に対応する位置に、設定した表示態様のプロット点を表示入力手段2に表示させるようになっている。 The analysis result output unit 46 outputs the classification result by the physical quantity classification unit 45 as the analysis result of the machining program. In the present embodiment, the analysis result output unit 46 is configured to display the plot of each command point in a manner in which the group classified by the physical quantity classification unit 45 can be identified. Specifically, the analysis result output unit 46 reads out the position coordinates and group number of each command point from the analysis result storage unit 33, and for each group having a different group number, mutually distinguishable colors and shapes, or combinations thereof, and the like. The display mode of is set. Then, the analysis result output unit 46 causes the display input means 2 to display the plot point in the set display mode at the position corresponding to the position coordinate of each command point.

なお、解析結果の表示方法としては、XYZ空間内に各指令点に対応するプロット点を3次元表示してもよく、XY平面等において2次元表示してもよい。また、本実施形態では、解析結果出力部46が、解析結果を表示入力手段2に表示しているが、この構成に限定されるものではなく、ユーザが理解しうる出力形式であれば、解析結果を紙に印刷して出力してもよい。さらに、本実施形態では、解析結果をユーザに提供するために出力しているが、解析結果を解析結果記憶部33に蓄積するように構成してもよく、この場合、解析結果出力部46を設ける必要はない。 As a method of displaying the analysis result, plot points corresponding to each command point may be displayed three-dimensionally in the XYZ space, or may be displayed two-dimensionally on the XY plane or the like. Further, in the present embodiment, the analysis result output unit 46 displays the analysis result on the display input means 2, but the present invention is not limited to this configuration, and if the output format can be understood by the user, the analysis result can be analyzed. The results may be printed on paper and output. Furthermore, in the present embodiment, the analysis result is output to be provided to the user, but the analysis result may be configured to be stored in the analysis result storage unit 33. In this case, the analysis result output unit 46 is used. There is no need to provide it.

つぎに、本実施形態の加工プログラム解析装置1、加工プログラム解析プログラム1aおよび加工プログラム解析方法の作用について、図3を参照しつつ説明する。 Next, the operation of the machining program analysis device 1, the machining program analysis program 1a, and the machining program analysis method of this embodiment will be described with reference to FIG.

まず、本実施形態の加工プログラム解析装置1によって加工プログラムを解析する前段階として、加工プログラム記憶部32に解析対象となる加工プログラムを記憶させておくとともに、物理量定義式記憶部34に各種の定義式を記憶させておく。これにより、加工プログラムを解析する準備が整うこととなる。 First, as a pre-stage of analyzing a machining program by the machining program analysis apparatus 1 of the present embodiment, the machining program to be analyzed is stored in the machining program storage unit 32, and various definitions are stored in the physical quantity definition formula storage unit 34. Remember the formula. As a result, the preparation for analyzing the machining program is completed.

上記準備が整えられると、図3に示すように、まず、指令点取得部41が、加工プログラム記憶部32内の加工プログラムから指令点列を構成する指令点を取得する(ステップS1)。これにより、図2に示すように、各指令点の位置座標が解析結果記憶部33に記憶される。 When the above preparation is completed, first, as shown in FIG. 3, the command point acquisition unit 41 acquires command points that form a command point sequence from the machining program in the machining program storage unit 32 (step S1). Thus, as shown in FIG. 2, the position coordinates of each command point are stored in the analysis result storage unit 33.

つぎに、表示入力手段2を介したオペレータの選択操作に応じて、物理量選択部42が、1または2以上の物理量を選択すると(ステップS2)、物理量算出部43が、各指令点について、ステップS2で選択された物理量を算出する(ステップS3)。これにより、図2に示すように、各指令点について1つの物理量または2以上の物理量群が、解析結果記憶部33に記憶される。 Next, when the physical quantity selection unit 42 selects one or two or more physical quantities in accordance with the operator's selection operation via the display input unit 2 (step S2), the physical quantity calculation unit 43 makes a step for each command point. The physical quantity selected in S2 is calculated (step S3). As a result, as shown in FIG. 2, one physical quantity or two or more physical quantity groups for each command point is stored in the analysis result storage unit 33.

つづいて、グループ数設定部44が、ステップS3で算出された物理量(群)を複数のグループに分類するためのグループ数を設定すると(ステップS4)、物理量分類部45が、当該物理量(群)に対してクラスター分析を行うことにより、物理量(群)を複数のグループに分類する(ステップS5)。これにより、図2に示すように、物理量(群)が類似する指令点には同一のグループ番号が付与され、物理量が類似しない指令点には異なるグループ番号が付与される。この分類結果によって、加工プログラムから有用な情報が直接取得され、様々な解析が可能となる。 Subsequently, when the number-of-groups setting unit 44 sets the number of groups for classifying the physical quantity (group) calculated in step S3 into a plurality of groups (step S4), the physical quantity classifying unit 45 causes the physical quantity (group) concerned. A physical quantity (group) is classified into a plurality of groups by performing cluster analysis on (step S5). As a result, as shown in FIG. 2, command points having similar physical quantities (groups) are given the same group number, and command points having dissimilar physical quantities are given different group numbers. Based on this classification result, useful information is directly obtained from the machining program and various analyzes can be performed.

そして、解析結果出力部46が、分類されたグループを識別可能な態様で各指令点のプロットを表示する(ステップS6)。これにより、物理量の種類に応じて、性質が類似する指令点がまとまって表示されるとともに、性質が非類似の指令点が異なる態様で表示される。よって、例えば、実施例1で後述する移動量、角度または曲率半径等を物理量とした場合、図8、図12、図16に示すように、同一のグループに分類された指令点群によって、加工プログラムによって加工されるワークの加工面が識別される。 Then, the analysis result output unit 46 displays the plot of each command point in a manner in which the classified groups can be identified (step S6). As a result, command points having similar properties are collectively displayed according to the type of physical quantity, and command points having dissimilar properties are displayed in a different manner. Therefore, for example, when a movement amount, an angle, a radius of curvature, or the like, which will be described later in the first embodiment, is used as a physical quantity, processing is performed by a command point group classified into the same group as illustrated in FIGS. 8, 12, and 16. The machining surface of the workpiece to be machined is identified by the program.

また、実施例2で後述する移動量変化量、移動量変化量の変化量または移動量の比率等を物理量とした場合、図20、図24、図28に示すように、同一のグループに分類された指令点群の中に異なるグループの指令点が不規則・不連続に出現するため、当該指令点が周囲の指令点との位置関係において不揃いの指令点として抽出される。さらに、ステップS2で2以上の物理量を選択した場合、実施例4で後述するように、物理量の次元が増大されるため、解析精度が向上する。 Further, when the movement amount change amount, the change amount of the movement amount change amount, the ratio of the movement amount, and the like, which will be described later in the second embodiment, are used as physical quantities, they are classified into the same group as shown in FIGS. 20, 24, and 28. Since the command points of different groups appear irregularly and discontinuously in the generated command point group, the command points are extracted as non-uniform command points in the positional relationship with the surrounding command points. Furthermore, when two or more physical quantities are selected in step S2, the dimension of the physical quantity is increased, as described later in the fourth embodiment, so that the analysis accuracy is improved.

なお、ステップS6で出力された解析結果に基づいて、グループ数の変更が必要であれば(ステップS7:YES)、ステップS4に戻り、グループ数設定部44によって新たなグループ数を設定する。これにより、解析結果に応じて適宜グループ数を変更して再分析でき、多種多様な物理量や複雑なワーク形状であっても最適な分析が可能となる。 If it is necessary to change the number of groups based on the analysis result output in step S6 (step S7: YES), the process returns to step S4 and the group number setting unit 44 sets a new group number. As a result, the number of groups can be appropriately changed and re-analyzed according to the analysis result, and optimal analysis can be performed even with various physical quantities and complicated work shapes.

一方、グループ数の変更が不要であれば(ステップS7:NO)、分類された各グループに対して再分類が必要か否かを判断し(ステップS8)、不要であれば(ステップS8:NO)、本処理を終了する。 On the other hand, if it is unnecessary to change the number of groups (step S7: NO), it is determined whether or not the classified groups need to be reclassified (step S8), and if not necessary (step S8: NO). ), and this processing ends.

一方、再分類する場合には(ステップS8:YES)、ステップS2へ戻り、表示入力手段2を介したオペレータの選択操作に応じて、物理量選択部42が、先の分類に用いた物理量とは異なる物理量を選択する(ステップS2)。これにより、実施例3で後述するように、同一のグループに分類された各指令点について、上述したステップS3からステップS6の処理が再度実行されるため、解析精度が向上する。 On the other hand, in the case of reclassifying (step S8: YES), the process returns to step S2, and the physical quantity selection unit 42 determines the physical quantity used for the previous classification according to the operator's selection operation via the display input means 2. Different physical quantities are selected (step S2). As a result, as will be described later in the third embodiment, the processing of steps S3 to S6 described above is executed again for each command point classified into the same group, so that the analysis accuracy is improved.

以上のような本実施形態によれば、以下のような効果を奏する。
1.加工プログラムから有用な情報を直接取得し、様々な解析を行うことができる。
2.加工プログラムによって加工されるワークがどのような加工面を有するかを識別することができる。
3.加工プログラムの指令点列を構成する各指令点のうち、周囲の指令点との位置関係において不揃いの指令点を抽出することができる。
4.識別された加工面に対して不自然な指令点や、不揃いの指令点を補正することで加工面の品位を向上することができる。
5.異なる物理量を直列的または並列的にクラスター分析することにより、解析精度を向上することができる。
6.解析結果を一目で確認し理解することができる。
According to this embodiment as described above, the following effects can be obtained.
1. It is possible to obtain useful information directly from the processing program and perform various analyzes.
2. It is possible to identify what kind of processing surface the workpiece processed by the processing program has.
3. Among the command points forming the command point sequence of the machining program, it is possible to extract command points that are not aligned in the positional relationship with the surrounding command points.
4. It is possible to improve the quality of the machined surface by correcting the unnatural command points and the non-uniform command points for the identified machined surface.
5. Analysis accuracy can be improved by performing cluster analysis of different physical quantities in series or in parallel.
6. You can check and understand the analysis results at a glance.

つぎに、本発明に係る加工プログラム解析装置1、加工プログラム解析プログラム1aおよび加工プログラム解析方法の具体的な実施例について説明する。 Next, specific examples of the machining program analysis device 1, the machining program analysis program 1a and the machining program analysis method according to the present invention will be described.

以下の実施例1〜実施例5では、解析対象の加工プログラムとして、工具刃先を螺旋状に移動させることにより、図4に示すようなブレード状のワークを削り出すブレード加工プログラムを使用した。また、クラスター分析には、K−meansアルゴリズムを使用した。さらに、以下の説明では、各種の処理を実行する主体としての加工プログラム解析装置1が文言上省略されている場合がある。 In Examples 1 to 5 below, as a machining program to be analyzed, a blade machining program for cutting out a blade-shaped workpiece as shown in FIG. 4 was used by moving a tool blade in a spiral shape. Moreover, the K-means algorithm was used for cluster analysis. Further, in the following description, the machining program analysis device 1 as a main body that executes various processes may be omitted in terms of wording.

本実施例1では、加工プログラムによって加工されるワークがどのような加工面を有するかを識別しうる物理量の検討を行った。具体的には、少なくとも前後の指令点の位置座標を用いる物理量として、下記式(1)で定義される移動量、下記式(2)で定義される角度、および下記式(3)で定義される曲率半径を案出し、各物理量を用いて前記ブレード加工プログラムの解析を行った。以下、各物理量について具体的に説明する。 In the first embodiment, a physical quantity capable of identifying what kind of machined surface a workpiece machined by the machining program has was examined. Specifically, as a physical quantity using at least the position coordinates of the command points before and after, it is defined by the movement amount defined by the following formula (1), the angle defined by the following formula (2), and the following formula (3). The radius of curvature to be devised was devised, and the blade machining program was analyzed using each physical quantity. Hereinafter, each physical quantity will be specifically described.

(1)移動量
本実施例1では、1つ目の物理量として、図5に示すように、第i番目の指令点の移動量Vを下記式(1)によって定義した。
=Pi+1−Pi−1 ・・・式(1)
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
:第i番目の指令点の移動量
(1) Movement amount In the first embodiment, as the first physical amount, as shown in FIG. 5, the movement amount V i of the i-th command point is defined by the following equation (1).
V i = P i + 1 -P i-1 ··· formula (1)
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point V i : movement amount of i-th command point

なお、上記移動量を言葉で定義すると、指令点における工具の移動方向といえる(時間は入っていないので速度ではない)。本実施例1では、単に隣の指令点との差分によって移動量を定義しているが、何ブロックかにまたがって平均化してもよく、前後の指令点を含む3点について近似曲線を求め、当該近似曲線の接線方向を移動量(移動方向)としてもよい。 If the above movement amount is defined in words, it can be said that it is the movement direction of the tool at the command point (it is not the speed because it does not include time). In the first embodiment, the movement amount is simply defined by the difference between the adjacent command points, but the movement amount may be averaged over several blocks, and approximate curves are obtained for three points including the preceding and following command points. The tangential direction of the approximate curve may be the movement amount (movement direction).

つぎに、ブレード加工プログラムの各指令点について、上記式(1)を用いてXYZの各軸に対応する3つの移動量(Vx,Vy,Vz)を算出した。その結果を図6に示す。なお、第i番目の指令点における各軸ごとの移動量(Vx,Vy,Vz)は、第i+1番目の指令点の位置座標(Pxi+1,Pyi+1,Pzi+1)および第i−1番目の指令点の位置座標(Pxi−1,Pyi−1,Pzi−1)を用いて下記式(1−1)〜(1−3)によって表される。
Vx=Pxi+1−Pxi−1 ・・・式(1−1)
Vy=Pyi+1−Pyi−1 ・・・式(1−2)
Vz=Pzi+1−Pzi−1 ・・・式(1−3)
Next, with respect to each command point of the blade machining program, three movement amounts (Vx, Vy, Vz) corresponding to each of the XYZ axes were calculated using the above equation (1). The result is shown in FIG. The movement amount (Vx, Vy, Vz) for each axis at the i-th command point is the position coordinates (Px i+1 , Py i+1 , Pz i+1 ) of the i+1-th command point and the i-1th command point. It is represented by the following equations (1-1) to (1-3) using the position coordinates (Px i-1 , Py i-1 , Pz i-1 ) of the command point.
Vx i =Px i+1 −Px i−1 ...Equation (1-1)
Vy i =Py i+1 −Py i−1 ... Formula (1-2)
Vz i =Pz i+1 −Pz i−1 ... Formula (1-3)

そして、算出した移動量に対してクラスター分析を行うことにより、当該移動量を3つのグループに分類した。その分類結果を図7に示す。また、当該分類結果に基づいて出力した解析結果を図8に示す。なお、本実施例1および後述の実施例2〜5における分類結果や解析結果は、ブレード加工プログラムの指令点列を構成する各指令点のうち、所定のXY平面内における指令点を抜粋して表示したものである。 Then, by performing cluster analysis on the calculated movement amount, the movement amount was classified into three groups. The classification result is shown in FIG. Moreover, the analysis result output based on the said classification result is shown in FIG. The classification results and analysis results in the first embodiment and later-described second to fifth embodiments are extracted from the command points in a predetermined XY plane among the command points forming the command point sequence of the blade machining program. It is displayed.

図7に示すように、移動量の分布を3つのグループに分類した結果、原点付近に分布する第1グループ(○印)と、第1象限内に分布する第2グループ(△印)と、第3象限内に分布する第3グループ(×印)とに分類された。そして、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図8に示すように、ブレード加工プログラムの加工面として、エッジ面(○印)と、ブレード表面(×印)と、ブレード裏面(△印)とが明確に識別された。 As shown in FIG. 7, as a result of classifying the distribution of the movement amount into three groups, a first group (circle mark) distributed near the origin and a second group (triangle mark) distributed in the first quadrant, It was classified into the third group (marked with X) distributed in the third quadrant. Then, as a result of displaying the plot points in a manner in which the classified groups can be identified at the positions corresponding to the position coordinates of the respective command points, as shown in FIG. 8, as the processing surface of the blade processing program, the edge surface (○ The mark), the blade front surface (x mark), and the blade back surface (triangle mark) were clearly distinguished.

(2)角度
本実施例1では、2つ目の物理量として、図9に示すように、第i番目の指令点の角度θを下記式(2)によって定義した。

Figure 0006716446
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
θ:第i番目の指令点の角度 (2) Angle In the first embodiment, as the second physical quantity, as shown in FIG. 9, the angle θ i of the i-th command point is defined by the following equation (2).
Figure 0006716446
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point θ i : angle of i-th command point

つぎに、ブレード加工プログラムの各指令点について、上記式(2)を用いて角度θを算出した。その結果を図10に示す。そして、算出した角度に対してクラスター分析を行うことにより、当該角度を2つのグループに分類した。その分類結果を図11に示す。また、当該分類結果に基づいて出力した解析結果を図12に示す。なお、図11におけるグラフの横軸は角度θ(theta)を示し、縦軸は指令点の頻度(frequency)を示している。 Next, for each command point of the blade machining program, the angle θ was calculated using the above equation (2). The result is shown in FIG. Then, by performing cluster analysis on the calculated angles, the angles were classified into two groups. The classification result is shown in FIG. Moreover, the analysis result output based on the said classification result is shown in FIG. The horizontal axis of the graph in FIG. 11 represents the angle θ (theta), and the vertical axis represents the frequency of the command point.

図11に示すように、角度の分布を2つのグループに分類した結果、右上がりの斜線を付した第1グループと、右下がりの斜線を付した第2グループとに分類された。そして、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図12に示すように、ブレード加工プログラムの加工面として、エッジ面(○印)と、ブレード表面・裏面(△印)とが明確に識別された。 As shown in FIG. 11, as a result of classifying the angle distribution into two groups, it was classified into a first group having a diagonal line rising to the right and a second group having a diagonal line descending to the right. Then, as a result of displaying the plot points in a manner in which the classified groups can be identified at the positions corresponding to the position coordinates of the respective command points, as shown in FIG. 12, as the processing surface of the blade processing program, the edge surface (○ The mark) and the front and back surfaces of the blade (marked with Δ) were clearly identified.

(3)曲率半径
3つ目の物理量である曲率半径を定義するに際しては、まず、図13に示すように、加工プログラムの指令点列を構成する4つの指令点Pi−1、P、Pi+1、Pi+2に基づいて、P、Pi+1間の移動を示す曲線を下記式に示すn次多項式(n:任意の自然数)によって近似した。

Figure 0006716446
ただし、各符号は以下を表す。
i :指令点番号
:係数
u :媒介変数
C(u):P、Pi+1間の移動を示す曲線を近似したn次多項式 (3) Radius of Curvature When defining the radius of curvature that is the third physical quantity, first, as shown in FIG. 13, four command points P i−1 , P i , which constitute the command point sequence of the machining program, Based on P i+1 and P i+2 , a curve showing the movement between P i and P i+1 was approximated by an nth-order polynomial (n: any natural number) shown in the following equation.
Figure 0006716446
However, each code represents the following.
i: command point number c i : coefficient u: parameter C(u): n-th order polynomial approximating a curve indicating movement between P i and P i+1

そして、第i番目の指令点における曲率半径ρiを下記式(3)によって定義した。

Figure 0006716446
なお、上記式(3)は、図13に示すように、C(0)の一階微分の2乗をC(0)の二階微分で除算した値として定義されるものである。また、上記係数cは、最小二乗法等の回帰分析によって算出される。さらに、上記近似式は任意の次数でよいが、本実施例3では、3次近似式(n=3)であるC(u)=c+c+cu+cを使用した。 Then, the radius of curvature ρi at the i-th command point is defined by the following equation (3).
Figure 0006716446
Note that the above equation (3) is defined as a value obtained by dividing the square of the first derivative of C(0) by the second derivative of C(0), as shown in FIG. The coefficient c i is calculated by regression analysis such as the least square method. Further, the approximate expression may be any order, but in the third embodiment, using C (u) = c 3 u 3 + c 2 u 2 + c 1 u + c 0 is a third-order approximate expression (n = 3) ..

つぎに、ブレード加工プログラムの各指令点について、上記式(3)を用いて曲率半径ρを算出した。その結果を図14に示す。そして、算出した曲率半径に対してクラスター分析を行うことにより、当該曲率半径を2つのグループに分類した。その分類結果を図15に示す。また、当該分類結果に基づいて出力した解析結果を図16に示す。なお、図15におけるグラフの横軸は曲率半径(radius)を示し、縦軸は指令点の頻度(frequency)を示している。 Next, for each command point of the blade processing program, the radius of curvature ρ was calculated using the above equation (3). The result is shown in FIG. Then, the radius of curvature was classified into two groups by performing cluster analysis on the calculated radius of curvature. The classification result is shown in FIG. Moreover, the analysis result output based on the said classification result is shown in FIG. The horizontal axis of the graph in FIG. 15 represents the radius of curvature (radius), and the vertical axis represents the frequency of the command point (frequency).

図15に示すように、曲率半径の分布を2つのグループに分類した結果、右上がりの斜線を付した第1グループと、右下がりの斜線を付した第2グループとに分類された。そして、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図16に示すように、ブレード加工プログラムの加工面として、エッジ面(○印)と、ブレード表面・裏面(△印)とが明確に識別された。 As shown in FIG. 15, as a result of classifying the distributions of the curvature radii into two groups, the groups were classified into a first group with diagonal lines rising to the right and a second group with diagonal lines descending to the right. Then, as a result of displaying the plot points in a manner in which the classified groups can be identified at the positions corresponding to the position coordinates of the respective command points, as shown in FIG. 16, as the processing surface of the blade processing program, the edge surface (○ The mark) and the front and back surfaces of the blade (marked with Δ) were clearly identified.

以上より、本実施例1によれば、上記式(1)〜(3)で定義される移動量、角度または曲率半径を物理量として使用することにより、加工プログラムの指令点列を構成する各指令点が、当該加工プログラムによって加工されるワークのどの加工面に属するかを識別できることが示された。 As described above, according to the first embodiment, by using the movement amount, the angle, or the radius of curvature defined by the above formulas (1) to (3) as the physical amount, each command forming the command point sequence of the machining program. It has been shown that it is possible to identify which machining surface of the workpiece machined by the machining program the point belongs to.

本実施例2では、加工プログラムの指令点列を構成する各指令点のうち、周囲の指令点との位置関係において不揃いの指令点を抽出しうる物理量の検討を行った。具体的には、少なくとも前後の指令点の位置座標を用いる物理量として、下記式(4)で定義される移動量変化量、下記式(5)で定義される移動量変化量の変化量、および下記式(6)で定義される移動量の比率を案出し、各物理量を用いて前記ブレード加工プログラムの解析を行った。以下、各物理量について具体的に説明する。 In the second embodiment, among the command points that form the command point sequence of the machining program, the physical quantity that can extract the command points that are not aligned in the positional relationship with the surrounding command points was examined. Specifically, as the physical quantity using at least the position coordinates of the front and rear command points, the movement amount change amount defined by the following formula (4), the movement amount change amount defined by the following formula (5), and The ratio of the movement amount defined by the following formula (6) was devised, and the above-mentioned blade machining program was analyzed using each physical amount. Hereinafter, each physical quantity will be specifically described.

(4)移動量変化量
本実施例2では、4つ目の物理量として、図17に示すように、第i番目の指令点の移動量変化量Aを下記式(4)によって定義した。
=Pi+1−2P+Pi−1 ・・・式(4)
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
;第i番目の指令点の移動量変化量
(4) Movement amount change amount In the second embodiment, as the fourth physical amount, as shown in FIG. 17, the movement amount change amount A i of the i-th command point is defined by the following equation (4).
A i =P i+1 −2P i +P i−1 ...Equation (4)
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point A i ; movement amount change amount of i-th command point

つぎに、ブレード加工プログラムの各指令点について、上記式(4)を用いてXYZの各軸に対応する3つの移動量変化量(Ax,Ay,Az)を算出した。その結果を図18に示す。なお、第i番目の指令点における各軸ごとの移動量変化量(Ax,Ay,Az)は、第i+1番目の指令点の位置座標(Pxi+1,Pyi+1,Pzi+1)、第i番目の指令点の位置座標(Px,Py,Pz)、および第i−1番目の指令点の位置座標(Pxi−1,Pyi−1,Pzi−1)を用いて下記式(4−1)〜(4−3)によって表される。
Ax=Pxi+1−2Px+Pxi−1 ・・・式(4−1)
Ay=Pyi+1−2Py+Pyi−1 ・・・式(4−2)
Az=Pzi+1−2Pz+Pzi−1 ・・・式(4−3)
Next, with respect to each command point of the blade machining program, three movement amount change amounts (Ax, Ay, Az) corresponding to the XYZ axes were calculated using the above equation (4). The result is shown in FIG. The movement amount change amount (Ax, Ay, Az) for each axis at the i-th command point is calculated by using the position coordinates (Px i+1 , Py i+1 , Pz i+1 ) of the i+1-th command point and the i-th command point. Using the position coordinates (Px i , Py i , Pz i ) of the command point and the position coordinates (Px i-1 , Py i-1 , Pz i-1 ) of the i-1th command point, the following formula ( It is represented by 4-1) to (4-3).
Ax i =Px i+1 −2Px i +Px i−1 ...Equation (4-1)
Ay i =Py i+1 −2Py i +Py i−1 ... Formula (4-2)
Az i = Pz i + 1 -2Pz i + Pz i-1 ··· formula (4-3)

そして、算出した移動量変化量に対してクラスター分析を行うことにより、当該移動量変化量を3つのグループに分類した。その分類結果を図19に示す。また、当該分類結果に基づいて出力した解析結果を図20に示す。 Then, by performing cluster analysis on the calculated movement amount change amount, the movement amount change amount was classified into three groups. The classification result is shown in FIG. Moreover, the analysis result output based on the said classification result is shown in FIG.

図19に示すように、移動量変化量の分布を3つのグループに分類した結果、原点付近に分布する第1グループ(○印)と、第1象限内に分布する第2グループ(△印)と、第3象限内に分布する第3グループ(×印)とに分類された。そして、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図20に示すように、第1グループ(○印)の指令点群の中に第2グループ(△印)および第3のグループ(×印)の指令点が不規則かつ不連続に点在しており、不揃いの指令点として明確に抽出された。 As shown in FIG. 19, as a result of classifying the distribution of the movement amount change amount into three groups, the first group (circle mark) distributed near the origin and the second group (marked Δ) distributed in the first quadrant. And the third group (marked with X) distributed in the third quadrant. Then, as a result of displaying the plot points in a manner in which the classified groups can be identified at the positions corresponding to the position coordinates of the respective command points, as shown in FIG. 20, as shown in FIG. The command points of the second group (marked with Δ) and the third group (marked with ×) were scattered irregularly and discontinuously, and were clearly extracted as non-uniform command points.

(5)移動量変化量の変化量
本実施例2では、5つ目の物理量として、図21に示すように、第i番目の指令点の移動量変化量の変化量Jを下記式(5)によって定義した。
=Pi+1−3P+3Pi−1−Pi−2 ・・・式(5)
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
;第i番目の指令点の移動量変化量の変化量
(5) Change amount of change amount of movement amount In the second embodiment, as the fifth physical amount, as shown in FIG. 21, the change amount J i of the change amount of movement amount of the i-th command point is expressed by the following formula ( 5).
J i =P i+1 −3P i +3P i−1 −P i−2 Equation (5)
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point J i ; amount of change in movement amount of i-th command point

つぎに、ブレード加工プログラムの各指令点について、上記式(5)を用いてXYZの各軸に対応する3つの移動量変化量の変化量(Jx,Jy,Jz)を算出した。その結果を図22に示す。なお、第i番目の指令点における各軸ごとの移動量変化量の変化量(Jx,Jy,Jz)は、第i+1番目の指令点の位置座標(Pxi+1,Pyi+1,Pzi+1)、第i番目の指令点の位置座標(Px,Py,Pz)、第i−1番目の指令点の位置座標(Pxi−1,Pyi−1,Pzi−1)、および第i−2番目の指令点の位置座標(Pxi−2,Pyi−2,Pzi−2)を用いて下記式(5−1)〜(5−3)によって表される。
Jx=Pxi+1−3Px+3Pxi−1−Pxi−2 ・・・式(5−1)
Jy=Pyi+1−3Py+3Pyi−1−Pyi−2 ・・・式(5−2)
Jz=Pzi+1−3Pz+3Pzi−1−Pzi−2 ・・・式(5−3)
Next, with respect to each command point of the blade machining program, the change amounts (Jx, Jy, Jz) of the three movement amount change amounts corresponding to the XYZ axes were calculated using the above equation (5). The result is shown in FIG. The change amount (Jx, Jy, Jz) of the movement amount change amount for each axis at the i-th command point is determined by the position coordinates (Px i+1 , Py i+1 , Pz i+1 ) of the i+1-th command point, Position coordinates (Px i , Py i , Pz i ) of the i-th command point, position coordinates (Px i-1 , Py i-1 , Pz i-1 ) of the i-1 th command point, and the i-th It is represented by the following equations (5-1) to (5-3) using the position coordinates (Px i-2 , Py i-2 , Pz i-2 ) of the −2nd command point.
Jx i =Px i+1 −3Px i +3Px i−1 −Px i−2 Equation (5-1)
Jy i =Py i+1 -3Py i +3Py i-1 -Py i-2 ... Formula (5-2)
Jz i =Pz i+1 -3Pz i +3Pz i-1 -Pz i-2 ... Formula (5-3)

そして、算出した移動量変化量の変化量に対してクラスター分析を行うことにより、当該移動量変化量の変化量を3つのグループに分類した。その分類結果を図23に示す。また、当該分類結果に基づいて出力した解析結果を図24に示す。 Then, by performing cluster analysis on the calculated change amount of the change amount of the movement amount, the change amount of the change amount of the movement amount was classified into three groups. The classification result is shown in FIG. Moreover, the analysis result output based on the said classification result is shown in FIG.

図23に示すように、移動量変化量の変化量の分布を3つのグループに分類した結果、原点付近に分布する第1グループ(○印)と、第1象限内に分布する第2グループ(△印)と、第3象限内に分布する第3グループ(×印)とに分類された。そして、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図24に示すように、第1グループ(○印)の指令点群の中に第2グループ(△印)および第3のグループ(×印)の指令点が不規則かつ不連続に点在しており、不揃いの指令点として明確に抽出された。 As shown in FIG. 23, as a result of classifying the distribution of the change amount of the movement amount change into three groups, a first group (circle mark) distributed near the origin and a second group (distributed in the first quadrant) (Marked with Δ) and a third group (marked with ×) distributed in the third quadrant. Then, as a result of displaying the plot points in a manner in which the classified groups can be identified at the positions corresponding to the position coordinates of the respective command points, as shown in FIG. 24, as shown in FIG. The command points of the second group (marked with Δ) and the third group (marked with ×) were scattered irregularly and discontinuously, and were clearly extracted as non-uniform command points.

(6)移動量の比率
本実施例2では、6つ目の物理量として、図25に示すように、第i番目の指令点の移動量の比率kを下記式(6)によって定義した。

Figure 0006716446
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
;第i番目の指令点の移動量の比率 (6) Movement amount ratio In the second embodiment, as the sixth physical amount, as shown in FIG. 25, the movement amount ratio k i of the i-th command point is defined by the following equation (6).
Figure 0006716446
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point k i ; ratio of movement amount of i-th command point

つぎに、ブレード加工プログラムの各指令点について、上記式(6)を用いて移動量の比率kを算出した。その結果を図26に示す。そして、算出した移動量の比率に対してクラスター分析を行うことにより、当該移動量の比率を2つのグループに分類した。その分類結果を図27に示す。また、当該分類結果に基づいて出力した解析結果を図28に示す。なお、図27におけるグラフの横軸は移動量の比率(ratio)を示し、縦軸は指令点の頻度(frequency)を示している。 Next, for each command point of the blade machining program, the moving amount ratio k was calculated using the above equation (6). The result is shown in FIG. Then, by performing cluster analysis on the calculated transfer amount ratio, the transfer amount ratio was classified into two groups. The classification result is shown in FIG. 28 shows the analysis result output based on the classification result. Note that the horizontal axis of the graph in FIG. 27 represents the movement amount ratio (ratio), and the vertical axis represents the frequency of the command point (frequency).

図27に示すように、移動量の比率の分布を2つのグループに分類した結果、右上がりの斜線を付した第1グループと、右下がりの斜線を付した第2グループとに分類された。そして、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図28に示すように、第2グループ(○印)の指令点群の中に第1グループ(△印)の指令点が不規則かつ不連続に点在しており、不揃いの指令点として明確に抽出された。 As shown in FIG. 27, as a result of classifying the distribution of the movement amount ratio into two groups, the distribution was classified into a first group having a diagonal line rising to the right and a second group having a diagonal line descending to the right. Then, as a result of displaying the plot points in a manner in which the classified groups can be identified at the positions corresponding to the position coordinates of the respective command points, as shown in FIG. 28, as shown in FIG. The command points of the first group (marked with Δ) were scattered irregularly and discontinuously, and were clearly extracted as non-uniform command points.

以上より、本実施例2によれば、上記式(4)〜(6)で定義される移動量変化量、移動量変化量の変化量または移動量の比率を物理量として使用することにより、加工プログラムの指令点列を構成する各指令点のうち、周囲の指令点との位置関係において不揃いの指令点を抽出できることが示された。また、実施例1および実施例2によれば、物理量を適宜選択することにより、様々な解析結果を得られることが示された。 As described above, according to the second embodiment, by using the movement amount change amount, the change amount of the movement amount change amount, or the movement amount ratio defined by the above formulas (4) to (6) as the physical quantity, It was shown that out of the command points that make up the command point sequence of the program, the command points that are not aligned in the positional relationship with the surrounding command points can be extracted. In addition, according to Examples 1 and 2, it was shown that various analysis results can be obtained by appropriately selecting the physical quantity.

なお、指令点は工具経路上を一定の時間間隔で移動するものであるから、上述した移動量を時間で除算すれば速度に相当する。この場合、移動量の差分である移動量変化量は加速度に相当し、移動量変化量の差分である移動量変化量の変化量は加加速度(躍度)に相当するといえる。よって、移動量変化量を用いて解析すれば、加工プログラムにおける加速度の異常箇所が不揃いの指令点として抽出され、移動量変化量の変化量を用いて解析すれば、加工プログラムにおける加加速度の異常箇所が不揃いの指令点として抽出されることとなる。 Since the command point moves on the tool path at regular time intervals, if the above-mentioned movement amount is divided by time, it corresponds to the speed. In this case, it can be said that the movement amount change amount, which is the difference in the movement amount, corresponds to acceleration, and the change amount of the movement amount change amount, which is the difference in the movement amount change amount, corresponds to jerk (jerk). Therefore, if analysis is performed using the movement amount change amount, an abnormal point of acceleration in the machining program is extracted as a non-uniform command point, and if analysis is performed using the movement amount change amount change amount, the jerk abnormality in the machining program is detected. The points are extracted as non-uniform command points.

本実施例3では、異なる物理量を直列的に組み合わせてクラスター分析した場合における、解析結果に及ぼす影響を検討した。なお、直列的とは、所定の物理量によって同一のグループに分類された各グループのそれぞれに対して、当該物理量とは異なる物理量を用いてさらにグルーピングすることをいうものとする。 In Example 3, the influence on the analysis result when cluster analysis was performed by combining different physical quantities in series was examined. It should be noted that the term “serially” means that each of the groups classified into the same group by a predetermined physical quantity is further grouped by using a physical quantity different from the physical quantity.

具体的には、まず、実施例1と同様、ブレード加工プログラムの各指令点について移動量を算出し、クラスター分析を行って3つのグループ(エッジ面、ブレード表面、ブレード裏面)に分類した。つづいて、当該3つのグループのうち、いずれかのグループ(面)に分類された各指令点について、移動量変化量を算出し、クラスター分析を行ってさらに3つのグループ(○印、△印、×印)に分類した。そして、当該分類結果に基づいて、不揃いの指令点を抽出した結果を図29に示す。 Specifically, first, similarly to Example 1, the movement amount was calculated for each command point of the blade machining program, and cluster analysis was performed to classify the groups into three groups (edge surface, blade surface, blade back surface). Then, for each command point classified into one of the three groups (plane), the movement amount change amount is calculated, and the cluster analysis is performed to further add three groups (○, △, It was classified into (X mark). FIG. 29 shows the result of extracting the non-uniform command points based on the classification result.

一方、比較例として、図29で解析した同一の指令点列について、実施例2と同様、移動量変化量のみを用いて不揃いの指令点を抽出した。その結果を図30に示す。図29に示すように、いずれかの加工面に限って不揃いの指令点を抽出した本実施例3では、図30に示す比較例では抽出されなかった不揃いの指令点(△印、×印)が数多く抽出されており、抽出精度が向上されているのがわかる。なお、物理量の性質に鑑みて、他の物理量の組み合わせによっても同様の効果が得られるものと推認される。 On the other hand, as a comparative example, for the same command point sequence analyzed in FIG. 29, as in the second embodiment, non-uniform command points are extracted using only the movement amount change amount. The result is shown in FIG. As shown in FIG. 29, in the third embodiment in which the non-uniform command points are extracted only in one of the machined surfaces, the non-uniform command points (Δ mark, × mark) not extracted in the comparative example shown in FIG. 30. It can be seen that a large number of are extracted and the extraction accuracy is improved. In consideration of the properties of physical quantities, it is presumed that similar effects can be obtained by combining other physical quantities.

以上より、本実施例3によれば、異なる物理量を直列的に組み合わせてクラスター分析することにより、解析精度が向上することが示された。 As described above, according to the third embodiment, it is shown that the analysis accuracy is improved by combining different physical quantities in series and performing cluster analysis.

本実施例4では、異なる物理量を並列的に組み合わせてクラスター分析した場合における、解析結果に及ぼす影響を検討した。なお、並列的とは、異なる複数の物理量によって高次元化された物理量群を用いてグルーピングすることをいうものとする。 In the present Example 4, the influence on the analysis result when cluster analysis was performed by combining different physical quantities in parallel was examined. It should be noted that parallel means to perform grouping using a physical quantity group that is made higher-dimensional by a plurality of different physical quantities.

具体的には、まず、ブレード加工プログラムの各指令点について、位置座標および移動量からなる6次元の物理量群(Px,Py,Pz,Vx,Vy,Vz)を算出した。その結果を図31に示す。そして、当該6次元の物理量群(Px,Py,Pz,Vx,Vy,Vz)に対してクラスター分析を行い、4つのグループ(○印、△印、×印、◇印)に分類した。そして、当該分類結果に基づいて、加工面を識別した結果を図32に示す。 Specifically, first, for each command point of the blade machining program, a six-dimensional physical quantity group (Px, Py, Pz, Vx, Vy, Vz) including position coordinates and movement amounts was calculated. The result is shown in FIG. Then, cluster analysis was performed on the six-dimensional physical quantity group (Px, Py, Pz, Vx, Vy, Vz), and classification was made into four groups (○ mark, Δ mark, × mark, ◇ mark). The result of identifying the processed surface based on the classification result is shown in FIG.

図32に示すように、高次元化された物理量によって加工面を識別した本実施例4では、移動量のみで加工面を識別した図8では区別できなかった左エッジ面(○印)と右エッジ面(×印)とが区別されており、識別精度が向上されていた。なお、物理量の性質に鑑みて、他の物理量の組み合わせによっても同様の効果が得られるものと推認される。 As shown in FIG. 32, in the fourth embodiment in which the machined surface is identified by the physical quantity that has been increased in dimension, the left edge surface (circle) and the right edge surface that cannot be distinguished in FIG. It was distinguished from the edge surface (marked with X), and the identification accuracy was improved. In consideration of the properties of physical quantities, it is presumed that similar effects can be obtained by combining other physical quantities.

以上より、本実施例4によれば、異なる物理量を並列的に組み合わせてクラスター分析することにより、解析精度が向上することが示された。また、物理量を算出しようとする指令点の位置座標(Px,Py,Pz)自体も物理量として使用できることが示された。 As described above, according to the fourth embodiment, it is shown that the analysis accuracy is improved by performing the cluster analysis by combining different physical quantities in parallel. It was also shown that the position coordinates (Px, Py, Pz) of the command point for which the physical quantity is to be calculated can also be used as the physical quantity.

本実施例5では、多軸加工機用加工プログラムを解析対象として適用できるかの検証を行った。なお、多軸加工機用加工プログラムは、少なくとも2つの直線軸および少なくとも1つの回転軸を有する多軸加工機の動作を制御するものである。また、本実施例5では、多軸加工機用加工プログラムとして、5軸加工機用加工プログラムを使用した。 In the fifth embodiment, it was verified whether the machining program for a multi-axis machining machine can be applied as an analysis target. The machining program for a multi-axis machine controls the operation of a multi-axis machine having at least two linear axes and at least one rotary axis. In addition, in the fifth embodiment, a machining program for a 5-axis machining machine is used as a machining program for a multi-axis machining machine.

なお、多軸加工機で加工を行う場合、工具先端点制御と呼ばれる数値制御機能を用いて加工を行うことが一般的である。当該工具先端点制御とは、工具の姿勢変化に応じて、常に刃先が指令された経路に沿って移動するように制御する機能である。このため、多軸加工機を構成する各軸の実際の位置(以下、機械位置という)の位置座標は、加工プログラムの指令点列を構成する各指令点の位置座標とは異なる。 When performing processing with a multi-axis machine, it is common to perform processing using a numerical control function called tool tip point control. The tool tip point control is a function of controlling the blade tip to always move along the commanded path according to the change in the attitude of the tool. For this reason, the position coordinates of the actual position of each axis (hereinafter referred to as the machine position) forming the multi-axis machine differs from the position coordinates of the command points forming the command point sequence of the machining program.

そこで本実施例5では、まず、ブレード加工プログラムの指令点列を構成する各指令点の位置座標と、当該各指令点に対応する実際の機械位置の位置座標とを用意した。これら指令点の位置座標および機械位置の位置座標をそれぞれ図33および図34に示す。 In view of this, in the fifth embodiment, first, the position coordinates of each command point forming the command point sequence of the blade machining program and the position coordinates of the actual machine position corresponding to each command point are prepared. The position coordinates of these command points and the machine position are shown in FIGS. 33 and 34, respectively.

つぎに、第i番目の指令点の移動量Vp、および当該指令点に対応する実際の機械の移動量Vmをそれぞれ下記式(7),(8)によって定義し、各移動量を算出した。
Vp=Ppi+1−Ppi−1 ・・・式(7)
Vm=Pmi+1−Pmi−1 ・・・式(8)
ただし、各符号は以下を表す。
i:指令点番号
Pp:第i番目の指令点の位置座標
Vp:第i番目の指令点の移動量
Pm:第i番目の機械位置の位置座標
Vm:第i番目の機械の移動量
Next, the movement amount Vp i of the i-th command point and the actual movement amount Vm i of the machine corresponding to the command point are defined by the following equations (7) and (8), respectively, and each movement amount is calculated. did.
Vp i = Pp i + 1 -Pp i-1 ··· formula (7)
Vm i =Pm i+1 −Pm i−1 ...Equation (8)
However, each code represents the following.
i: command point number Pp i : position coordinate of i-th command point Vp i : movement amount of i-th command point Pm i : position coordinate of i-th machine position Vm i : i-th machine position Amount of movement

つづいて、算出した6次元の物理量群(Vpx,Vpy,Vpz,Vmx,Vmy,Vmz)に対してクラスター分析を行うことにより、当該物理量群を4つのグループ(○印、△印、×印、◇印)に分類した。当該分類結果のうち、指令点の移動量に関する結果を図35に示し、機械の移動量に関する結果を図36に示す。 Subsequently, by performing cluster analysis on the calculated 6-dimensional physical quantity group (Vpx, Vpy, Vpz, Vmx, Vmy, Vmz), the physical quantity group is divided into four groups (○ mark, Δ mark, × mark, ◇). Among the classification results, the result regarding the movement amount of the command point is shown in FIG. 35, and the result regarding the movement amount of the machine is shown in FIG.

そして、上記分類結果に基づいて、各指令点の位置座標に対応する位置に、分類されたグループを識別可能な態様でプロット点を表示した結果、図37に示すように、ブレード加工プログラムの加工面として、ブレード表面(◇印)と、ブレード裏面(△印)と、各エッジ面の右サイド(○印)と、各エッジ面の左サイド(×印)とが明確に識別された。なお、物理量の性質に鑑みて、他の物理量の組み合わせによっても同様の効果が得られるものと推認される。 Then, based on the above classification result, as a result of displaying the plot points in the position corresponding to the position coordinates of each command point in a manner in which the classified group can be identified, as shown in FIG. 37, the machining of the blade machining program is performed. As the surfaces, the blade front surface (∘ mark), the blade back surface (Δ mark), the right side of each edge surface (∘ mark), and the left side of each edge surface (x mark) were clearly identified. In consideration of the properties of physical quantities, it is presumed that similar effects can be obtained by combining other physical quantities.

以上より、本実施例5によれば、本発明に係る加工プログラム解析装置1、加工プログラム解析プログラム1aおよび加工プログラム解析方法は、多軸加工機用加工プログラムについても解析対象として適用できることが示された。また、指令点の位置座標から変換された機械位置の位置座標を用いて算出された物理量を使用できることが示された。 As described above, according to the fifth embodiment, it is shown that the machining program analysis device 1, the machining program analysis program 1a, and the machining program analysis method according to the present invention can be applied to a machining program for a multi-axis machine as an analysis target. It was It was also shown that the physical quantity calculated using the position coordinates of the machine position converted from the position coordinates of the command point can be used.

なお、本発明に係る加工プログラム解析装置1、加工プログラム解析プログラム1aおよび加工プログラム解析方法は、上述した実施形態や実施例に限定されるものではなく、適宜変更することができる。 The machining program analysis device 1, the machining program analysis program 1a, and the machining program analysis method according to the present invention are not limited to the above-described embodiments and examples, and can be modified as appropriate.

例えば、上述した本実施形態では、少なくとも前後の指令点の位置座標を用いて算出する物理量として、上記式(1)〜式(6)によって定義される物理量を例示したが、これらに限定されるものではなく、各指令点の物理量は、1または複数の指令点の位置座標を用いて算出されるものであればよい。具体的には、実施例4で上述したとおり、ある指令点の位置座標自体や、当該指令点について算出された加工反力等のように、1つの指令点の位置座標を用いて算出された物理量を使用してもよい。また、実施例5で上述したように、指令点の位置座標から変換された機械位置の位置座標を用いて物理量を算出してもよい。さらに、物理量の算出に使用する指令点としては、当該指令点や、当該指令点の前後の指令点のみならず、当該指令点に隣接しない指令点を分散的に使用してもよい。 For example, in the above-described embodiment, the physical quantity defined by the above equations (1) to (6) is exemplified as the physical quantity calculated using at least the position coordinates of the command points before and after, but the present invention is not limited thereto. However, the physical quantity of each command point may be calculated using the position coordinates of one or more command points. Specifically, as described above in the fourth embodiment, the position coordinates of a command point itself, the processing reaction force calculated for the command point, and the like are calculated using the position coordinates of one command point. Physical quantities may be used. Further, as described in the fifth embodiment, the physical quantity may be calculated using the position coordinates of the machine position converted from the position coordinates of the command point. Further, as the command points used for calculating the physical quantity, not only the command points and command points before and after the command points, but also command points which are not adjacent to the command points may be dispersedly used.

また、上述した各実施例では、ブレード加工プログラムや5軸加工機用加工プログラムを解析対象としているが、他の形状のワークを加工するための加工プログラムや、他の多軸加工機用加工プログラムについても同様に解析可能である。 Further, in each of the above-described embodiments, the blade machining program and the machining program for the 5-axis machining machine are analyzed, but the machining programs for machining the work of other shapes and the machining programs for other multi-axis machining machines. Can be similarly analyzed.

また、上述した実施例3〜5においては、異なる2種類の物理量を直列的または並列的に組み合わせて解析しているが、物理量の組み合わせは各実施例での組み合わせに限定されるものではなく、異なる3種類以上の物理量を直列的または並列的に組み合わせて解析してもよい。 In addition, in the above-described Examples 3 to 5, two different types of physical quantities are combined and analyzed in series or in parallel, but the combination of physical quantities is not limited to the combination in each Example. Three or more different physical quantities may be combined in series or in parallel for analysis.

1 加工プログラム解析装置
1a 加工プログラム解析プログラム
2 表示入力手段
3 記憶手段
4 演算処理手段
31 プログラム記憶部
32 加工プログラム記憶部
33 解析結果記憶部
34 物理量定義式記憶部
41 指令点取得部
42 物理量選択部
43 物理量算出部
44 グループ数設定部
45 物理量分類部
46 解析結果出力部
1 Machining Program Analyzing Device 1a Machining Program Analyzing Program 2 Display Input Means 3 Storage Means 4 Arithmetic Processing Means 31 Program Storage Section 32 Machining Program Storage Section 33 Analysis Result Storage Section 34 Physical Quantity Definition Formula Storage Section 41 Command Point Acquisition Section 42 Physical Quantity Selection Section 43 physical quantity calculation unit 44 group number setting unit 45 physical quantity classification unit 46 analysis result output unit

Claims (8)

工作機械を数値制御しワークを加工するための加工プログラム自体を解析し、前記加工プログラムを編集するための加工プログラム解析装置であって、
前記加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を有する、加工プログラム解析装置。
A machining program analyzing apparatus for analyzing a machining program itself for machining a workpiece by numerically controlling a machine tool, and editing the machining program,
For each command points constituting a command point sequence of the machining program, and the physical quantity calculation unit for calculating a predetermined physical quantity by using the position coordinates of one or more command point,
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
A machining program analysis device having.
加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を備え、
前記所定の物理量は、下記式(1)で定義される移動量、下記式(2)で定義される角度、下記式(3)で定義される曲率半径、下記式(4)で定義される移動量変化量、下記式(5)で定義される移動量変化量の変化量、または下記式(6)で定義される移動量の比率のいずれかであ加工プログラム解析装置;
=Pi+1−Pi−1 ・・・式(1)
Figure 0006716446
=Pi+1−2P+Pi−1 ・・・式(4)
=Pi+1−3P+3Pi−1−Pi−2 ・・・式(5)
Figure 0006716446
ただし、各符号は以下を表す。
i:指令点番号
:第i番目の指令点の位置座標
:第i番目の指令点の移動量
θ:第i番目の指令点の角度
ρ:第i番目の指令点の曲率半径
:P、Pi+1間の移動を示す曲線を近似したn次多項式の1次の項の係数
:P、Pi+1間の移動を示す曲線を近似したn次多項式の2次の項の係数
;第i番目の指令点の移動量変化量
;第i番目の指令点の移動量変化量の変化量
;第i番目の指令点の移動量の比率
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Equipped with
The predetermined physical quantity is defined by the movement amount defined by the following formula (1), the angle defined by the following formula (2), the radius of curvature defined by the following formula (3), and the following formula (4). movement amount change amount, the following formula (5) defined in the movement amount change amount of variation, or the following formula (6) Ru der any proportion of the movement amount that is defined by the machining program analyzing device;
V i = P i + 1 -P i-1 ··· formula (1)
Figure 0006716446
A i = P i + 1 -2P i + P i-1 ··· formula (4)
J i =P i+1 −3P i +3P i−1 −P i-2 ... Expression (5)
Figure 0006716446
However, each code represents the following.
i: command point number P i : position coordinate of i-th command point V i : movement amount of i-th command point θ i : angle of i-th command point ρ i : i-th command point Curvature radius c 1 : The coefficient of the first-order term of the polynomial of degree n that approximates the curve showing the movement between P i and P i+1 c 2 : The coefficient of the polynomial of degree n that approximates the curve showing the movement between P i and P i+1 Coefficient of quadratic term A i ; change amount of movement amount of i-th command point J i ; change amount of change amount of movement amount of i-th command point k i ; of movement amount of i-th command point ratio
加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を備え、
前記物理量算出部は、前記物理量分類部によって同一のグループに分類された前記物理量を有する各指令点について、前記物理量とは異なる前記物理量を算出し、前記物理量分類部は、前記異なる物理量に対してクラスター分析を行うことにより、さらに複数のグループに再分類す加工プログラム解析装置。
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Equipped with
The physical quantity calculation unit, for each command point having the physical quantity classified into the same group by the physical quantity classification unit, calculates the physical quantity different from the physical quantity, the physical quantity classification unit, for the different physical quantity by performing cluster analysis, further reclassification into a plurality of groups machining program analyzing device.
加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
を備え、
前記物理量算出部は、各指令点について異なる複数の前記物理量を算出し、前記物理量分類部は、前記複数の物理量からなる物理量群に対してクラスター分析を行うことにより、前記物理量群を複数のグループに分類す加工プログラム解析装置。
A physical quantity calculation unit that calculates a predetermined physical quantity using the position coordinates of one or a plurality of command points for each command point that constitutes the command point sequence of the machining program;
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Equipped with
The physical quantity calculation unit calculates a plurality of different physical quantities for each command point, and the physical quantity classification unit performs a cluster analysis on a physical quantity group consisting of the plurality of physical quantities, thereby creating a plurality of physical quantity groups. It falls into the machining program analyzer.
前記加工プログラムが、少なくとも2つの直線軸および少なくとも1つの回転軸を有する多軸加工機の動作を制御する多軸加工機用加工プログラムである場合、前記物理量算出部は、前記各指令点に対応する機械位置の位置座標を用いて前記物理量を算出する機能を有する、請求項1から請求項4のいずれかに記載の加工プログラム解析装置。 When the machining program is a machining program for a multi-axis machining machine that controls the operation of a multi-axis machining machine having at least two linear axes and at least one rotation axis, the physical quantity calculation unit corresponds to each of the command points. The machining program analysis device according to any one of claims 1 to 4, which has a function of calculating the physical quantity by using the position coordinates of the machine position. 前記物理量分類部によって分類されたグループを識別可能な態様で、前記各指令点のプロットを出力する解析結果出力部を有する、請求項1から請求項5のいずれかに記載の加工プログラム解析装置。 The machining program analysis device according to claim 1, further comprising an analysis result output unit that outputs a plot of each of the command points in a manner in which the group classified by the physical quantity classification unit can be identified. 工作機械を数値制御しワークを加工するための加工プログラム自体を解析し、前記加工プログラムを編集するための加工プログラム解析プログラムであって、
前記加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出部と、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類部と、
してコンピュータを機能させる、加工プログラム解析プログラム。
A machining program analysis program for analyzing a machining program itself for numerically controlling a machine tool to machine a work, and editing the machining program,
For each command points constituting a command point sequence of the machining program, and the physical quantity calculation unit for calculating a predetermined physical quantity by using the position coordinates of one or more command point,
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification unit that classifies the physical quantity into a plurality of groups,
Machining program analysis program that causes the computer to function.
工作機械を数値制御しワークを加工するための加工プログラム自体を解析し、前記加工プログラムを編集するための加工プログラム解析方法であって、
前記加工プログラムの指令点列を構成する各指令点について、1または複数の指令点の位置座標を用いて所定の物理量を算出する物理量算出ステップと、
各指令点の前記物理量に対してクラスター分析を行うことにより、前記物理量を複数のグループに分類する物理量分類ステップと、
を有する、加工プログラム解析方法。
A machining program analysis method for analyzing a machining program itself for numerically controlling a machine tool to machine a work, and editing the machining program,
For each command points constituting a command point sequence of the machining program, a physical quantity calculating step of calculating a predetermined physical quantity by using the position coordinates of one or more command point,
By performing a cluster analysis on the physical quantity of each command point, a physical quantity classification step of classifying the physical quantity into a plurality of groups,
And a machining program analysis method.
JP2016248154A 2016-12-21 2016-12-21 Machining program analysis device, machining program analysis program and machining program analysis method Active JP6716446B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2016248154A JP6716446B2 (en) 2016-12-21 2016-12-21 Machining program analysis device, machining program analysis program and machining program analysis method
DE102017221766.9A DE102017221766A1 (en) 2016-12-21 2017-12-04 PROCESSING PROGRAM ANALYSIS DEVICE, PROCESSING PROGRAM ANALYSIS PROGRAM, AND PROCESSING PROGRAM ANALYSIS PROCESS
CN201711393174.9A CN108227628B (en) 2016-12-21 2017-12-21 Machining program analysis device, computer-readable recording medium, and machining program analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016248154A JP6716446B2 (en) 2016-12-21 2016-12-21 Machining program analysis device, machining program analysis program and machining program analysis method

Publications (2)

Publication Number Publication Date
JP2018101347A JP2018101347A (en) 2018-06-28
JP6716446B2 true JP6716446B2 (en) 2020-07-01

Family

ID=62251205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016248154A Active JP6716446B2 (en) 2016-12-21 2016-12-21 Machining program analysis device, machining program analysis program and machining program analysis method

Country Status (3)

Country Link
JP (1) JP6716446B2 (en)
CN (1) CN108227628B (en)
DE (1) DE102017221766A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6687584B2 (en) * 2017-12-04 2020-04-22 Dmg森精機株式会社 Machining program analysis device, machine tool including the same, machining program analysis program, and machining program analysis method
KR102236802B1 (en) * 2019-11-25 2021-04-06 건국대학교 산학협력단 Device and method for feature extraction of data for diagnostic models

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02228763A (en) * 1989-03-01 1990-09-11 Matsushita Electric Ind Co Ltd Device and method for forecasting
JPH0647687A (en) * 1991-08-20 1994-02-22 Matsushita Electric Ind Co Ltd Position control device in force control robot
JP4300322B2 (en) * 2003-03-04 2009-07-22 学校法人日本大学 Machining system by machining information generation and machining information generation program
JP4221011B2 (en) * 2006-05-31 2009-02-12 株式会社日立製作所 Work motion analysis method, work motion analysis apparatus, and work motion analysis program
JP4734439B2 (en) * 2009-05-21 2011-07-27 ファナック株式会社 Numerical control device for 4-axis machine
CN102804187B (en) * 2009-06-25 2016-06-29 旭硝子株式会社 Physical Quantity Calculation method, Numerical method, Physical Quantity Calculation device and numeric value analysis device
JP5444412B2 (en) * 2012-05-30 2014-03-19 ファナック株式会社 Numerical control device having a display unit for displaying information for evaluating processing
CN102693147B (en) * 2012-06-13 2015-10-28 上海第二工业大学 The assistant analysis device of computer assembly language and analytical approach
JP5850963B2 (en) * 2014-02-13 2016-02-03 ファナック株式会社 Numerical control device with command path compression function
WO2016021076A1 (en) * 2014-08-08 2016-02-11 三菱電機株式会社 Numerical control device
JP6299527B2 (en) * 2014-08-29 2018-03-28 ブラザー工業株式会社 Numerical control device and control method
US10139311B2 (en) * 2014-09-26 2018-11-27 Palo Alto Research Center Incorporated Computer-implemented method and system for machine tool damage assessment, prediction, and planning in manufacturing shop floor
JP6203780B2 (en) * 2015-04-21 2017-09-27 ファナック株式会社 Numerical control device that operates with tabular data

Also Published As

Publication number Publication date
JP2018101347A (en) 2018-06-28
CN108227628B (en) 2022-08-02
CN108227628A (en) 2018-06-29
DE102017221766A1 (en) 2018-06-21

Similar Documents

Publication Publication Date Title
US9342065B2 (en) Path interference and generation device and method
CN104793560A (en) Method and system for generating a trajectory
JP2013054431A5 (en)
US8255077B2 (en) Apparatus, method and program for creating tool reference plane
JP2013054431A (en) Real cutting distance calculation method for rotary tool, computer program for real cutting distance calculation, cutting force prediction method, and tool path correction device
JP6716446B2 (en) Machining program analysis device, machining program analysis program and machining program analysis method
JP2011141673A (en) Working simulation apparatus and numerical control device
JP5610883B2 (en) Processing simulation apparatus and method
Kim et al. A study on the precision machinability of ball end milling by cutting speed optimization
KR101405039B1 (en) Manufacturing process automation method and system
JP2017220213A (en) Machining load analysis device, machining load analysis program, and machining load analysis system
JPWO2013128625A1 (en) Machining program generation device, machining program generation method, and machining program generation program
CN109725595A (en) Compensation method, processing method and the workpiece of the machining path of workpiece
JP6687584B2 (en) Machining program analysis device, machine tool including the same, machining program analysis program, and machining program analysis method
JP2007193552A (en) Apparatus and method for creating plane model
CN111837080B (en) Tool path generation method
JP4622987B2 (en) Tool reference plane data creation device and creation method
JP4912756B2 (en) Polygon data dividing method and polygon data dividing device
WO2014050246A1 (en) Processing system, numerical control data generation device and numerical control data generation method
JP7406053B1 (en) Shape restoration device and computer readable storage medium
JPS6364109A (en) Processing information generating system for free curved surface removing tool interference
Gupta et al. A Numerical Investigation to Compare Point Cloud and STL-Based Toolpath Strategies for 5-Axis Incremental Sheet Forming
JP2005202792A (en) Tool height calculation device, calculation method therefor, and program
JP2007286858A (en) Preparation device and preparing method for surface model
Fountas et al. Intelligent CNC tool path optimization for sculptured surface machining through a virus-evolutionary genetic algorithm

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190313

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20191220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200123

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200123

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200319

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200610

R150 Certificate of patent or registration of utility model

Ref document number: 6716446

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250