JP2018073053A - Processing route computing device, processing route computing method and computer program - Google Patents

Processing route computing device, processing route computing method and computer program Download PDF

Info

Publication number
JP2018073053A
JP2018073053A JP2016210743A JP2016210743A JP2018073053A JP 2018073053 A JP2018073053 A JP 2018073053A JP 2016210743 A JP2016210743 A JP 2016210743A JP 2016210743 A JP2016210743 A JP 2016210743A JP 2018073053 A JP2018073053 A JP 2018073053A
Authority
JP
Japan
Prior art keywords
region
feature amount
image data
intersection
calculated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016210743A
Other languages
Japanese (ja)
Other versions
JP6943556B2 (en
Inventor
大樹 原田
Daiki Harada
大樹 原田
正博 大石
Masahiro Oishi
正博 大石
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.)
Brother Industries Ltd
ELYSIUM CO Ltd
Original Assignee
Brother Industries Ltd
ELYSIUM 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 Brother Industries Ltd, ELYSIUM CO Ltd filed Critical Brother Industries Ltd
Priority to JP2016210743A priority Critical patent/JP6943556B2/en
Priority to CN201711031419.3A priority patent/CN108008699B/en
Publication of JP2018073053A publication Critical patent/JP2018073053A/en
Application granted granted Critical
Publication of JP6943556B2 publication Critical patent/JP6943556B2/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/4068Verifying part programme on screen, by drawing or other means
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

PROBLEM TO BE SOLVED: To provide a processing route computing device, etc., enabling a visual check of a slight asperity level of a model surface.SOLUTION: A processing route computing device that computes a processing route to process a workpiece on the basis of multiple command points which designate a position of a main shaft includes: a setting unit that sets an evaluation cross-section which intersects the processing route; an intersection point computing unit that computes an intersection point between the evaluation cross-section set by the setting unit and the processing route; a feature quantity computing unit that computes a feature quantity indicating an asperity level in a first region of a surface of the workpiece having undergone the processing with respect to the intersection point computed by the intersection point computing unit; a first creating unit that creates first image data in the first region on the basis of the feature quantity computed by the feature quantity computing unit; and a second creating unit that creates second image data in the first region on the basis of the feature quantity computed by the feature quantity computing unit in accordance with the feature quantity indicating the asperity level in a second region when a designation to the second region located within the first region is received.SELECTED DRAWING: Figure 17

Description

ワークを加工する為の主軸の経路を演算する加工経路演算装置、加工経路演算方法及びコンピュータプログラムに関する。   The present invention relates to a machining path computation device, a machining path computation method, and a computer program for computing a spindle path for machining a workpiece.

工作機械がワークを加工する場合、ワークの加工前に、演算装置は主軸の加工経路を演算し、演算した加工経路に基づいて加工後のワークの形状(モデル)を演算する。演算装置は画像データに基づいて、モデルの表面形状を生成する(レンダリング)。   When the machine tool processes a workpiece, the processing unit calculates the machining path of the spindle before processing the workpiece, and calculates the shape (model) of the workpiece after processing based on the calculated processing path. The arithmetic unit generates a surface shape of the model based on the image data (rendering).

演算装置は、モデルの表面を構成する一のピクセルと、該一のピクセルに隣接する他のピクセルを比較し、法線ベクトルの変化率を求め、表面の向きの変化率を演算する。演算装置は、表面の向きの変化率、換言すれば表面の凹凸度合に対応した色を各ピクセルに付す。作業者は、モデル表面の欠陥を視認することができる(例えば特許文献1参照)。   The calculation device compares one pixel constituting the surface of the model with another pixel adjacent to the one pixel, obtains a change rate of the normal vector, and calculates a change rate of the direction of the surface. The arithmetic unit gives each pixel a color corresponding to the rate of change of the direction of the surface, in other words, the degree of unevenness of the surface. An operator can visually recognize a defect on the model surface (see, for example, Patent Document 1).

特許第5666013号公報Japanese Patent No. 5666013

しかし、変化率の最少単位が大きい場合、換言すれば変化率の分解能が大きい場合、モデル表面の僅かな凹凸度合を作業者が視認できないことがある。   However, when the minimum unit of the change rate is large, in other words, when the resolution of the change rate is large, the operator may not be able to visually recognize the slight unevenness of the model surface.

本発明は斯かる事情に鑑みてなされたものであり、モデル表面の僅かな凹凸度合を視認することができる加工経路演算装置、加工経路演算方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and an object thereof is to provide a machining path calculation device, a machining path calculation method, and a computer program capable of visually recognizing a slight degree of unevenness on a model surface.

本発明に係る加工経路演算装置は、主軸の位置を指示する複数の指令点に基づいて、ワークを加工する為の加工経路を演算する加工経路演算装置において、前記加工経路に交差する評価断面を設定する設定部と、該設定部にて設定した評価断面及び前記加工経路の交点を演算する交点演算部と、該交点演算部にて演算した交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算する特徴量演算部と、該特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第1画像データを生成する第1生成部と、前記第1領域内に位置する第2領域の指定を受け付けた場合、前記第2領域における凹凸度合を示す特徴量に応じて、前記特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第2画像データを生成する第2生成部とを備えることを特徴とする。   A machining path calculation device according to the present invention is a machining path calculation device that calculates a machining path for machining a workpiece based on a plurality of command points that indicate a position of a spindle. A setting unit to be set, an intersection calculation unit for calculating an intersection of the evaluation cross section set by the setting unit and the machining path, and an intersection calculated by the intersection calculation unit in the first region of the workpiece surface after machining A feature quantity computing unit that computes a feature quantity indicating the degree of unevenness; a first generation unit that creates first image data in the first region based on the feature quantity computed by the feature quantity computation unit; When the designation of the second region located in one region is received, the first region is based on the feature amount calculated by the feature amount calculation unit according to the feature amount indicating the degree of unevenness in the second region. The second image in Characterized in that it comprises a second generator for generating a data.

本発明に係る加工経路演算装置は、前記第1生成部は、前記第1領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第1画像データを生成し、前記第2生成部は、前記第2領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第2画像データを生成することを特徴とする。   In the machining path calculation device according to the present invention, the first generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the first region, The first image data is generated based on the set color, and the second generation unit corresponds to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the second region. A color to be set is set, and the second image data is generated based on the set color.

本発明に係る加工経路演算装置は、前記交点演算部が演算した交点の位置を補正する交点位置補正部と、該交点位置補正部による補正後の交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算する補正特徴量演算部と、該補正特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第1補正画像データを生成する第3生成部と、前記第1領域内に位置する第2領域の指定を受け付けた場合、前記第2領域における凹凸度合を示す特徴量に応じて、前記補正特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第2補正画像データを生成する第4生成部とを備えることを特徴とする。   A machining path calculation device according to the present invention relates to an intersection position correction unit that corrects the position of an intersection calculated by the intersection calculation unit, and an intersection after correction by the intersection position correction unit, and a first region on a workpiece surface after machining A correction feature amount calculation unit that calculates a feature amount indicating the degree of unevenness in the image, and a third generation unit that generates first correction image data in the first region based on the feature amount calculated by the correction feature amount calculation unit When the designation of the second region located in the first region is received, based on the feature amount calculated by the correction feature amount calculation unit according to the feature amount indicating the degree of unevenness in the second region And a fourth generator for generating second corrected image data in the first region.

本発明に係る加工経路演算装置は、前記第3生成部は、前記第1領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第1補正画像データを生成し、前記第4生成部は、前記第2領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第2補正画像データを生成することを特徴とする。   In the machining path calculation device according to the present invention, the third generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the first region, The first corrected image data is generated based on the set color, and the fourth generation unit calculates the feature amount in the first region based on the maximum value and the minimum value of the feature amount in the second region. A corresponding color is set, and the second corrected image data is generated based on the set color.

本発明に係る加工経路演算装置は、前記第1画像データに基づく画像と前記第1補正画像データに基づく画像を表示部に並べて表示し、前記第2画像データに基づく画像と前記第2補正画像データに基づく画像を表示部に並べて表示することを特徴とする。   The processing path calculation device according to the present invention displays an image based on the first image data and an image based on the first corrected image data side by side on a display unit, and the image based on the second image data and the second corrected image An image based on data is displayed side by side on a display unit.

本発明に係る加工経路演算方法は、主軸の位置を指示する複数の指令点に基づいて、ワークを加工する為の加工経路を演算する加工経路演算方法において、前記加工経路に交差する評価断面を設定し、設定した評価断面及び前記加工経路の交点を演算し、演算した交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算し、演算した特徴量に基づいて、前記第1領域における第1画像データを生成し、前記第1領域内に位置する第2領域の指定を受け付けた場合に、前記第2領域における凹凸度合を示す特徴量に応じて、演算した特徴量に基づいて、前記第1領域における第2画像データを生成することを特徴とする。   A machining path calculation method according to the present invention is a machining path calculation method for calculating a machining path for machining a workpiece based on a plurality of command points that indicate a position of a spindle. Set, calculate the intersection of the set evaluation cross section and the machining path, calculate a feature amount indicating the degree of unevenness in the first region of the workpiece surface after processing, with respect to the calculated intersection point, based on the calculated feature amount, When the first image data in the first region is generated and the designation of the second region located in the first region is received, the feature is calculated according to the feature amount indicating the degree of unevenness in the second region. The second image data in the first region is generated based on the amount.

本発明に係るコンピュータプログラムは、主軸の位置を指示する複数の指令点に基づいて、ワークを加工する為の加工経路を演算する加工経路演算装置で実行可能なコンピュータプログラムにおいて、前記加工経路演算装置に、前記加工経路に交差する評価断面を設定し、設定した評価断面及び前記加工経路の交点を演算し、演算した交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算し、演算した特徴量に基づいて、前記第1領域における第1画像データを生成し、前記第1領域内に位置する第2領域の指定を受け付けた場合に、前記第2領域における凹凸度合を示す特徴量に応じて、演算した特徴量に基づいて、前記第1領域における第2画像データを生成する処理を実行させることを特徴とする。   The computer program according to the present invention is a computer program that can be executed by a machining path computing device that computes a machining path for machining a workpiece based on a plurality of command points that indicate the position of a spindle. Then, an evaluation cross section that intersects the machining path is set, the intersection of the set evaluation cross section and the machining path is calculated, and the feature amount indicating the degree of unevenness in the first region of the workpiece surface after processing is calculated with respect to the calculated intersection point. When the first image data in the first region is generated based on the calculated feature amount and designation of the second region located in the first region is received, the degree of unevenness in the second region is calculated. In accordance with the feature amount indicating, a process for generating the second image data in the first region is executed based on the calculated feature amount.

本発明においては、評価断面と加工経路との交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算し、演算した特徴量に対応する第1画像データを生成する。作業者が第1領域内の第2領域を指定した場合、第2領域における凹凸度合を示す特徴量に基づいて、第1領域内における第2画像データを生成する。加工経路演算装置は第1領域よりも狭い第2領域の特徴量を基準にして、第2画像データを生成する。   In the present invention, with respect to the intersection between the evaluation cross section and the machining path, a feature value indicating the degree of unevenness in the first region of the workpiece surface after machining is calculated, and first image data corresponding to the calculated feature value is generated. When the operator specifies the second area in the first area, the second image data in the first area is generated based on the feature amount indicating the degree of unevenness in the second area. The processing path calculation device generates the second image data based on the feature amount of the second area narrower than the first area.

本発明においては、第2生成部は、第2領域における特徴量の最大値及び最小値に基づいて、第1領域における各特徴量に対応する色を設定する。第1領域よりも狭い第2領域における特徴量の最大値及び最小値に基づいて、各特徴量に色を設定するので、第1領域の特徴量を基準にした第1画像データでは表示できなかった第2領域内における僅かな凹凸度合を、作業者は視認することができる。   In the present invention, the second generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the second region. Since the color is set for each feature quantity based on the maximum value and the minimum value of the feature quantity in the second area that is narrower than the first area, the first image data based on the feature quantity in the first area cannot be displayed. Further, the operator can visually recognize a slight unevenness degree in the second region.

本発明においては、補正後の交点に関し、第1領域における第1補正画像データを生成する。また第1領域内に位置する第2領域の指定を受け付けた場合、第2領域における凹凸度合を示す特徴量に基づいて、第1領域における第2補正画像データを生成する。交点の補正が画像データに反映しているので、作業者は、補正結果を加味した凹凸度合を視認することができる。   In the present invention, first corrected image data in the first region is generated with respect to the corrected intersection. Further, when the designation of the second area located in the first area is received, the second corrected image data in the first area is generated based on the feature amount indicating the degree of unevenness in the second area. Since the correction of the intersection is reflected in the image data, the operator can visually recognize the degree of unevenness considering the correction result.

本発明においては、補正後の交点に関し、第4生成部は、第2領域における特徴量の最大値及び最小値に基づいて、第1領域における各特徴量に対応する色を設定する。第1領域よりも狭い第2領域における特徴量の最大値及び最小値に基づいて、各特徴量に色を設定するので、補正後の交点に関し、第1領域の特徴量を基準にした第1画像データでは表示できなかった第2領域内における僅かな凹凸度合を、作業者は視認することができる。   In the present invention, with respect to the corrected intersection, the fourth generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the second region. Since the color is set for each feature value based on the maximum value and the minimum value of the feature value in the second region that is narrower than the first region, the first value based on the feature value of the first region is used for the corrected intersection. The operator can visually recognize a slight degree of unevenness in the second area that could not be displayed by the image data.

本発明においては、第1画像データに基づく画像と第1補正画像データに基づく画像を並べて表示しているので、第1領域の特徴量を基準にした補正前後のワーク表面の凹凸度合を作業者は比較することができる。また第2画像データに基づく画像と第2補正画像データに基づく画像を並べて表示しているので、第2領域の特徴量を基準にした補正前後のワーク表面の凹凸度合を作業者は比較することができる。   In the present invention, since the image based on the first image data and the image based on the first corrected image data are displayed side by side, the degree of unevenness of the workpiece surface before and after correction based on the feature amount of the first area is determined by the operator. Can be compared. In addition, since the image based on the second image data and the image based on the second corrected image data are displayed side by side, the operator must compare the degree of unevenness of the workpiece surface before and after correction based on the feature amount of the second area. Can do.

本発明に係る加工経路演算装置、加工経路演算方法及びコンピュータプログラムにあっては、評価断面と加工経路との交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算し、演算した特徴量に対応する第1画像データを生成する。作業者が第1領域内の第2領域を指定した場合、第2領域における凹凸度合を示す特徴量に基づいて、第1領域内における第2画像データを生成する。加工経路演算装置は第1領域よりも狭い第2領域の特徴量を基準にして、第2画像データを生成する。第2画像データは、第1領域の特徴量を基準にした第1画像データでは表示できなかった第2領域内における僅かな凹凸度合を表示することができる。   In the machining path calculation device, the machining path calculation method, and the computer program according to the present invention, the feature amount indicating the degree of unevenness in the first region of the workpiece surface after machining is calculated with respect to the intersection of the evaluation section and the machining path. First image data corresponding to the calculated feature amount is generated. When the operator specifies the second area in the first area, the second image data in the first area is generated based on the feature amount indicating the degree of unevenness in the second area. The processing path calculation device generates the second image data based on the feature amount of the second area narrower than the first area. The second image data can display a slight unevenness degree in the second area that could not be displayed by the first image data based on the feature amount of the first area.

工作機械を略示する斜視図である。1 is a perspective view schematically showing a machine tool. 制御装置の構成を略示するブロック図である。It is a block diagram which briefly shows the structure of a control apparatus. ワークに対する加工経路及び評価断面を略示する平面図である。It is a top view which shows schematically the processing path with respect to a workpiece | work, and an evaluation cross section. ワークに対する評価断面を略示する斜視図である。It is a perspective view which briefly shows the evaluation section to a work. 指令点と、評価断面及び加工経路の交点とを略示する模式図である。It is a schematic diagram which shows a command point and the intersection of an evaluation cross section and a process path | route schematically. 交点テーブルの一例を示す概念図である。It is a conceptual diagram which shows an example of an intersection table. 評価断面D上における交点の特徴量を演算する演算方法を説明する説明図である。It is explanatory drawing explaining the calculation method which calculates the feature-value of the intersection on the evaluation cross section D. FIG. 評価断面D上における交点位置の第1の補正方法を説明する説明図である。It is explanatory drawing explaining the 1st correction method of the intersection position on the evaluation cross section. 評価断面上における交点位置の第2の補正方法を説明する説明図である。It is explanatory drawing explaining the 2nd correction method of the intersection position on an evaluation cross section. 指令点の補正方法を説明する説明図である。It is explanatory drawing explaining the correction method of a command point. 加工後のワーク形状及びワーク表面の凹凸度合を表示する為の表示部の一例を示す正面図である。It is a front view which shows an example of the display part for displaying the workpiece | work shape after a process, and the unevenness | corrugation degree of the workpiece | work surface. 色テーブルの一例を示す図である。It is a figure which shows an example of a color table. プログラム一覧を呼び出した場合の表示部の一例を示す正面図である。It is a front view which shows an example of the display part at the time of calling a program list. 第1画像データ及び第1補正画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を表示した表示部の一例を示す正面図である。It is a front view which shows an example of the display part which displayed the workpiece | work W shape and the unevenness | corrugation degree of the workpiece | work W surface based on 1st image data and 1st correction image data. 領域指定ボタンを操作した状態を表示する表示部の一例を示す正面図である。It is a front view which shows an example of the display part which displays the state which operated the area | region designation | designated button. 第2領域を表示する表示部の一例を示す正面図である。It is a front view which shows an example of the display part which displays a 2nd area | region. 第2画像データ及び第2補正画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を表示した表示部の一例を示す正面図である。It is a front view which shows an example of the display part which displayed the workpiece | work W shape and the unevenness | corrugation degree of the workpiece | work W surface based on 2nd image data and 2nd correction image data. ワークW形状及びワークW表面の凹凸度合を表示する表示処理を説明するフローチャートである。It is a flowchart explaining the display process which displays the workpiece | work W shape and the unevenness | corrugation degree of the workpiece | work W surface. 調整スケールを操作した場合に表示部に表示する画像の一例を示す図である。It is a figure which shows an example of the image displayed on a display part when an adjustment scale is operated.

(実施の形態1)
以下本発明を実施の形態1に係る工作機械を示す図面に基づいて説明する。以下の説明では図において矢印で示す上下、左右及び前後を使用する。図1は工作機械を略示する斜視図である。
(Embodiment 1)
Hereinafter, the present invention will be described with reference to the drawings showing a machine tool according to a first embodiment. In the following description, up and down, left and right, and front and rear indicated by arrows in the figure are used. FIG. 1 is a perspective view schematically showing a machine tool.

工作機械は前後に延びた矩形の基台1を備える。基台1上部の前側にワークW(図3参照)を保持するワーク保持部3が設けてある。ワーク保持部3は左右方向を軸方向としたA軸及び上下方向を軸方向としたC軸回りに回転可能である。   The machine tool includes a rectangular base 1 extending forward and backward. A workpiece holding unit 3 that holds a workpiece W (see FIG. 3) is provided on the front side of the upper portion of the base 1. The work holding unit 3 can rotate around the A axis with the left-right direction as the axial direction and the C axis with the up-down direction as the axial direction.

基台1上部の後側に後述するコラム4を支持する為の支持台2が設けてある。支持台2上部に、前後方向に移動するY軸方向移動機構10が設けてある。Y軸方向移動機構10は、前後に延びた二つのレール11と、Y軸螺子軸12と、Y軸モータ13と、ベアリング14とを備える。   A support base 2 for supporting a column 4 described later is provided on the rear side of the upper part of the base 1. A Y-axis direction moving mechanism 10 that moves in the front-rear direction is provided on the upper portion of the support base 2. The Y-axis direction moving mechanism 10 includes two rails 11 extending in the front-rear direction, a Y-axis screw shaft 12, a Y-axis motor 13, and a bearing 14.

レール11は支持台2上部の左右夫々に設けてある。Y軸螺子軸12は前後に延び、二つのレール11の間に設けてある。Y軸螺子軸12の前端部及び中途部夫々にベアリング14が設けてある。なお中途部に設けたベアリングの図示は省略する。Y軸モータ13はY軸螺子軸12の後端部に連結している。   The rails 11 are provided on the left and right of the upper part of the support base 2, respectively. The Y-axis screw shaft 12 extends in the front-rear direction and is provided between the two rails 11. A bearing 14 is provided at each of the front end portion and the middle portion of the Y-axis screw shaft 12. In addition, illustration of the bearing provided in the middle part is abbreviate | omitted. The Y-axis motor 13 is connected to the rear end portion of the Y-axis screw shaft 12.

Y軸螺子軸12には転動体(図示略)を介してナット(図示略)が螺合している。転動体は例えばボールである。各レール11に複数の摺動子15が摺動可能に設けてある。ナット及び摺動子15の上部に移動板16が連結している。移動板16は水平方向に延びる。Y軸モータ13の回転によってY軸螺子軸12は回転し、ナットは前後方向に移動し、移動板16は前後方向に移動する。   A nut (not shown) is screwed onto the Y-axis screw shaft 12 via a rolling element (not shown). The rolling element is, for example, a ball. A plurality of sliders 15 are slidably provided on each rail 11. A moving plate 16 is connected to the upper part of the nut and the slider 15. The moving plate 16 extends in the horizontal direction. As the Y-axis motor 13 rotates, the Y-axis screw shaft 12 rotates, the nut moves in the front-rear direction, and the moving plate 16 moves in the front-rear direction.

移動板16上面に左右方向に移動するX軸方向移動機構20が設けてある。X軸方向移動機構20は、左右に延びた二つのレール21と、X軸螺子軸22と、X軸モータ(図示略)と、ベアリング24とを備える。   An X-axis direction moving mechanism 20 that moves in the left-right direction is provided on the upper surface of the moving plate 16. The X-axis direction moving mechanism 20 includes two rails 21 extending left and right, an X-axis screw shaft 22, an X-axis motor (not shown), and a bearing 24.

レール21は移動板16上面の前後夫々に設けてある。X軸螺子軸22は左右に延び、二つのレール21の間に設けてある。X軸螺子軸22の左端部及び中途部夫々にベアリング24が設けてある。なおX軸螺子軸22の中途部に設けたベアリングの記載は省略する。X軸モータはX軸螺子軸22の右端部に連結している。   The rails 21 are provided at the front and rear sides of the upper surface of the movable plate 16. The X-axis screw shaft 22 extends left and right and is provided between the two rails 21. A bearing 24 is provided at each of the left end portion and midway portion of the X-axis screw shaft 22. In addition, description of the bearing provided in the middle part of the X-axis screw shaft 22 is abbreviate | omitted. The X-axis motor is connected to the right end portion of the X-axis screw shaft 22.

X軸螺子軸22には転動体(図示略)を介してナット(図示略)が螺合している。X軸螺子軸22にグリスが塗布してある。各レール21に複数の摺動子26が摺動可能に設けてある。ナット及び摺動子26の上部にコラム4が連結している。コラム4は柱状をなす。X軸モータの回転によってX軸螺子軸22は回転し、ナットは左右方向に移動し、コラム4は左右方向に移動する。   A nut (not shown) is screwed onto the X-axis screw shaft 22 via a rolling element (not shown). Grease is applied to the X-axis screw shaft 22. A plurality of sliders 26 are slidably provided on each rail 21. The column 4 is connected to the upper part of the nut and the slider 26. Column 4 is columnar. As the X-axis motor rotates, the X-axis screw shaft 22 rotates, the nut moves in the left-right direction, and the column 4 moves in the left-right direction.

コラム4の前面に上下方向に移動するZ軸方向移動機構30が設けてある。Z軸方向移動機構30は、上下に延びた二つのレール31と、Z軸螺子軸32と、Z軸モータ33と、ベアリング34とを備える。   A Z-axis direction moving mechanism 30 that moves in the vertical direction is provided on the front surface of the column 4. The Z-axis direction moving mechanism 30 includes two rails 31 extending vertically, a Z-axis screw shaft 32, a Z-axis motor 33, and a bearing 34.

レール31はコラム4前面の左右夫々に設けてある。Z軸螺子軸32は上下に延び、二つのレール31の間に設けてある。Z軸螺子軸32の下端部及び中途部夫々にベアリング34が設けてある。なお中途部に設けたベアリングの図示は省略する。Z軸モータ33はZ軸螺子軸32の上端部に連結している。   The rails 31 are provided on the left and right sides of the front surface of the column 4, respectively. The Z-axis screw shaft 32 extends vertically and is provided between the two rails 31. A bearing 34 is provided at each of a lower end portion and a midway portion of the Z-axis screw shaft 32. In addition, illustration of the bearing provided in the middle part is abbreviate | omitted. The Z-axis motor 33 is connected to the upper end portion of the Z-axis screw shaft 32.

Z軸螺子軸32には転動体(図示略)を介してナット(図示略)が螺合している。Z軸螺子軸32にグリスが塗布してある。各レール31に複数の摺動子35が摺動可能に設けてある。ナット及び摺動子35の前部に主軸ヘッド5が連結している。Z軸モータ33の回転によってZ軸螺子軸32は回転し、ナットは上下方向に移動し、主軸ヘッド5は上下方向に移動する。Z軸モータ33、Z軸螺子軸32、ナット及び転動体はボールねじ機構を構成する。   A nut (not shown) is screwed onto the Z-axis screw shaft 32 via a rolling element (not shown). Grease is applied to the Z-axis screw shaft 32. A plurality of sliders 35 are slidably provided on each rail 31. The spindle head 5 is connected to the front part of the nut and the slider 35. The Z-axis screw shaft 32 is rotated by the rotation of the Z-axis motor 33, the nut moves in the vertical direction, and the spindle head 5 moves in the vertical direction. The Z-axis motor 33, the Z-axis screw shaft 32, the nut and the rolling element constitute a ball screw mechanism.

上下に延びた主軸5aが主軸ヘッド5内に設けてある。主軸5aは軸回りに回転する。主軸ヘッド5の上端部に主軸モータ6が設けてある。主軸5aの下端部は工具を装着する。主軸モータ6の回転によって主軸5aが回転し、工具が回転する。回転した工具は、ワーク保持部3に保持したワークWを加工する。   A main shaft 5 a extending vertically is provided in the main shaft head 5. The main shaft 5a rotates around the axis. A spindle motor 6 is provided at the upper end of the spindle head 5. A tool is attached to the lower end of the main shaft 5a. The spindle 5a is rotated by the rotation of the spindle motor 6, and the tool is rotated. The rotated tool processes the workpiece W held in the workpiece holder 3.

工作機械は工具を交換する工具交換装置(図示略)を備える。工具交換装置は工具マガジン(図示略)に収容した工具と主軸5aに装着した工具を交換する。   The machine tool includes a tool changer (not shown) for changing tools. The tool changer exchanges a tool housed in a tool magazine (not shown) and a tool mounted on the spindle 5a.

図2は制御装置50の構成を略示するブロック図である。制御装置50(加工経路演算装置)は、CPU51、記憶部52、RAM53及び入出力インタフェース54を備える。記憶部52は書き換え可能なメモリであり、例えばEPROM、EEPROM等である。制御装置50は記憶部52に記憶した制御プログラムに基づいて、工作機械を制御する。記憶部52は後述する交点テーブル、色テーブル、経路番号i、指令点Pk、交点Si d等を記憶する(d、i、kは自然数)。制御装置50は予め制御プログラムを格納したROMを備えていてもよい。 FIG. 2 is a block diagram schematically showing the configuration of the control device 50. The control device 50 (machining path calculation device) includes a CPU 51, a storage unit 52, a RAM 53, and an input / output interface 54. The storage unit 52 is a rewritable memory, such as an EPROM or an EEPROM. The control device 50 controls the machine tool based on the control program stored in the storage unit 52. The storage unit 52 stores an intersection table, a color table, a path number i, a command point P k , an intersection point S i d, and the like which will be described later (d, i, and k are natural numbers). The control device 50 may include a ROM that stores a control program in advance.

作業者が操作部7を操作した場合、操作部7から入出力インタフェース54に信号が入力する。操作部7は例えばキーボード、ボタン、タッチパネル等である。入出力インタフェース54は表示部8に信号を出力する。表示部8は文字、図形、記号等を表示する。表示部8は例えば液晶表示パネルである。   When the operator operates the operation unit 7, a signal is input from the operation unit 7 to the input / output interface 54. The operation unit 7 is a keyboard, a button, a touch panel, or the like, for example. The input / output interface 54 outputs a signal to the display unit 8. The display unit 8 displays characters, figures, symbols, and the like. The display unit 8 is, for example, a liquid crystal display panel.

制御装置50は、X軸モータ23に対応したX軸制御回路55、サーボアンプ55a及び微分器23bを備える。X軸モータ23はエンコーダ23aを備える。X軸制御回路55はCPU51からの指令に基づいて、電流量を示す命令をサーボアンプ55aに出力する。サーボアンプ55aは前記命令を受け、X軸モータ23に駆動電流を出力する。   The control device 50 includes an X-axis control circuit 55 corresponding to the X-axis motor 23, a servo amplifier 55a, and a differentiator 23b. The X-axis motor 23 includes an encoder 23a. The X-axis control circuit 55 outputs a command indicating the amount of current to the servo amplifier 55a based on a command from the CPU 51. The servo amplifier 55a receives the command and outputs a drive current to the X-axis motor 23.

エンコーダ23aはX軸制御回路55に位置フィードバック信号を出力する。X軸制御回路55は位置フィードバック信号に基づいて、位置のフィードバック制御を実行する。   The encoder 23 a outputs a position feedback signal to the X-axis control circuit 55. The X-axis control circuit 55 performs position feedback control based on the position feedback signal.

エンコーダ23aは微分器23bに位置フィードバック信号を出力し、微分器23bは位置フィードバック信号を速度フィードバック信号に変換して、X軸制御回路55に出力する。X軸制御回路55は、速度フィードバック信号に基づいて、速度のフィードバック制御を実行する。   The encoder 23a outputs a position feedback signal to the differentiator 23b, and the differentiator 23b converts the position feedback signal into a speed feedback signal and outputs it to the X-axis control circuit 55. The X-axis control circuit 55 performs speed feedback control based on the speed feedback signal.

サーボアンプ55aが出力した駆動電流の値を電流検出器55bが検出する。電流検出器55bは駆動電流の値をX軸制御回路55にフィードバックする。X軸制御回路55は駆動電流の値に基づいて、電流制御を実行する。   The current detector 55b detects the value of the drive current output from the servo amplifier 55a. The current detector 55 b feeds back the value of the drive current to the X axis control circuit 55. The X axis control circuit 55 executes current control based on the value of the drive current.

制御装置50は、Y軸モータ13に対応したY軸制御回路56、サーボアンプ56a及び微分器13bを備える。Y軸モータ13はエンコーダ13aを備える。Y軸制御回路56はCPU51からの指令に基づいて、電流量を示す命令をサーボアンプ56aに出力する。サーボアンプ56aは前記命令を受け、Y軸モータ13に駆動電流を出力する。   The control device 50 includes a Y-axis control circuit 56 corresponding to the Y-axis motor 13, a servo amplifier 56a, and a differentiator 13b. The Y-axis motor 13 includes an encoder 13a. Based on the command from the CPU 51, the Y-axis control circuit 56 outputs a command indicating the current amount to the servo amplifier 56a. The servo amplifier 56 a receives the command and outputs a drive current to the Y-axis motor 13.

エンコーダ13aはY軸制御回路56に位置フィードバック信号を出力する。Y軸制御回路56は位置フィードバック信号に基づいて、位置のフィードバック制御を実行する。   The encoder 13 a outputs a position feedback signal to the Y-axis control circuit 56. The Y-axis control circuit 56 performs position feedback control based on the position feedback signal.

エンコーダ13aは微分器13bに位置フィードバック信号を出力し、微分器13bは位置フィードバック信号を速度フィードバック信号に変換して、Y軸制御回路56に出力する。Y軸制御回路56は、速度フィードバック信号に基づいて、速度のフィードバック制御を実行する。   The encoder 13a outputs a position feedback signal to the differentiator 13b, and the differentiator 13b converts the position feedback signal into a speed feedback signal and outputs it to the Y-axis control circuit 56. The Y-axis control circuit 56 executes speed feedback control based on the speed feedback signal.

サーボアンプ56aが出力した駆動電流の値を電流検出器56bが検出する。電流検出器56bは駆動電流の値をY軸制御回路56にフィードバックする。Y軸制御回路56は駆動電流の値に基づいて、電流制御を実行する。   The current detector 56b detects the value of the drive current output from the servo amplifier 56a. The current detector 56 b feeds back the drive current value to the Y-axis control circuit 56. The Y axis control circuit 56 executes current control based on the value of the drive current.

制御装置50は、Z軸モータ33に対応したZ軸制御回路57、サーボアンプ57a及び微分器33bを備える。Z軸モータ33はエンコーダ33aを備える。Z軸制御回路57はCPU51からの指令に基づいて、電流量を示す命令をサーボアンプ57aに出力する。サーボアンプ57aは前記命令を受け、Z軸モータ33に駆動電流を出力する。   The control device 50 includes a Z-axis control circuit 57 corresponding to the Z-axis motor 33, a servo amplifier 57a, and a differentiator 33b. The Z-axis motor 33 includes an encoder 33a. Based on the command from the CPU 51, the Z-axis control circuit 57 outputs a command indicating the amount of current to the servo amplifier 57a. The servo amplifier 57a receives the command and outputs a drive current to the Z-axis motor 33.

エンコーダ33aはZ軸制御回路57に位置フィードバック信号を出力する。Z軸制御回路57は位置フィードバック信号に基づいて、位置のフィードバック制御を実行する。   The encoder 33 a outputs a position feedback signal to the Z-axis control circuit 57. The Z-axis control circuit 57 performs position feedback control based on the position feedback signal.

エンコーダ33aは微分器33bに位置フィードバック信号を出力し、微分器33bは位置フィードバック信号を速度フィードバック信号に変換して、Z軸制御回路57に出力する。Z軸制御回路57は、速度フィードバック信号に基づいて、速度のフィードバック制御を実行する。   The encoder 33a outputs a position feedback signal to the differentiator 33b, and the differentiator 33b converts the position feedback signal into a speed feedback signal and outputs it to the Z-axis control circuit 57. The Z-axis control circuit 57 performs speed feedback control based on the speed feedback signal.

サーボアンプ57aが出力した駆動電流の値を電流検出器57bが検出する。電流検出器57bは駆動電流の値をZ軸制御回路57にフィードバックする。Z軸制御回路57は駆動電流の値に基づいて、電流制御を実行する。   The current detector 57b detects the value of the drive current output from the servo amplifier 57a. The current detector 57 b feeds back the value of the drive current to the Z-axis control circuit 57. The Z-axis control circuit 57 executes current control based on the drive current value.

制御装置50は主軸モータ6に対しても、X〜Z軸モータ23、13、33と同様なフィードバック制御を実行する。   The control device 50 also performs feedback control similar to that of the X to Z axis motors 23, 13, and 33 with respect to the spindle motor 6.

工作機械はマガジンモータ60と、マガジン制御回路58とを備える。マガジンモータ60の回転によって工具マガジンが駆動する。マガジン制御回路58はマガジンモータ60の回転を制御する。   The machine tool includes a magazine motor 60 and a magazine control circuit 58. The tool magazine is driven by the rotation of the magazine motor 60. The magazine control circuit 58 controls the rotation of the magazine motor 60.

記憶部52はワークWを加工する加工プログラムを格納する。加工プログラムは、主軸5aの位置を指示する複数の指令点Pk を有する。kは加工プログラムを構成する命令の順番を示す。主軸5aは複数の指令点Pk を順次移動し、主軸5aに装着した工具はワークWを加工する。 The storage unit 52 stores a machining program for machining the workpiece W. The machining program has a plurality of command points P k that indicate the position of the spindle 5a. k indicates the order of instructions constituting the machining program. The spindle 5a sequentially moves a plurality of command points Pk , and the tool mounted on the spindle 5a processes the workpiece W.

記憶部52は指令点Pk を予め記憶している。制御装置50は複数の指令点Pk に基づいて、主軸5aが移動する経路(加工経路α)を設定する。制御装置50は加工経路αに基づいて、主軸5aの移動を実行する。 The storage unit 52 stores a command point P k in advance. Based on the plurality of command points P k , the control device 50 sets a path (machining path α) along which the main shaft 5a moves. The controller 50 executes the movement of the main shaft 5a based on the machining path α.

加工経路αの設定方法について説明する。図3はワークWに対する加工経路α及び評価断面を略示する平面図、図4はワークWに対する評価断面を略示する斜視図である。なお図中X方向は左右方向を示し、Y方向は前後方向を示し、Z方向は上下方向を示す。また図3及び図4におけるワークWの形状は加工後の形状を示している。   A method for setting the machining path α will be described. 3 is a plan view schematically showing the machining path α and the evaluation section for the workpiece W, and FIG. 4 is a perspective view schematically showing the evaluation section for the workpiece W. In the figure, the X direction indicates the left-right direction, the Y direction indicates the front-rear direction, and the Z direction indicates the up-down direction. Moreover, the shape of the workpiece | work W in FIG.3 and FIG.4 has shown the shape after a process.

制御装置50は、ワークWに対して評価断面Dd (dは断面番号を示し、自然数である)を設定する。図3に示すように、主軸5aはX方向に沿って大部分が往復移動する場合、加工経路αはX方向に沿った経路となる。図3に示す如く、制御装置50は加工経路αに略直交する方向に沿った評価断面Dd を複数設定する。複数の評価断面はX方向に並ぶ。尚、作業者は、加工経路αがX方向であることを予め指示する。 The control device 50 sets an evaluation section D d (d indicates a section number and is a natural number) for the workpiece W. As shown in FIG. 3, when most of the main shaft 5a reciprocates along the X direction, the machining path α is a path along the X direction. As shown in FIG. 3, the control device 50 sets a plurality of evaluation sections D d along a direction substantially orthogonal to the machining path α. A plurality of evaluation sections are arranged in the X direction. The operator instructs in advance that the machining path α is in the X direction.

図5は指令点Pk と、評価断面Dd 及び加工経路αの交点とを略示する模式図、図6は交点テーブルの一例を示す概念図である。図5及び6において、「i」(iは自然数)は主軸5aのX方向移動における経路番号を示す。図5に示すように、例えば経路番号1(i=1)の経路は、左から右に移動する経路を示し、経路番号2(i=2)の経路は経路番号1の経路を右端で折り返して、右から左に移動する経路を示す。経路番号3以下も同様である。主軸5aは経路番号順に移動する。●は指令点を示し、○は評価断面Dd と加工経路αの交点を示す。矢印は加工経路αの進行方向を示す。 FIG. 5 is a schematic diagram schematically showing the command point P k , the intersection of the evaluation section D d and the machining path α, and FIG. 6 is a conceptual diagram showing an example of the intersection table. 5 and 6, “i” (i is a natural number) indicates a path number in the movement of the main shaft 5a in the X direction. As shown in FIG. 5, for example, a route with route number 1 (i = 1) indicates a route that moves from left to right, and a route with route number 2 (i = 2) wraps the route with route number 1 at the right end. The route from right to left is shown. The same applies to route numbers 3 and below. The main shaft 5a moves in the order of route numbers. ● indicates the command point, and ○ indicates the intersection of the evaluation section D d and the machining path α. The arrow indicates the traveling direction of the machining path α.

図6に示すように、制御装置50は、各評価断面Dd において、移動経路Pk −Pk+1 との交点Si dを演算し、経路番号i、交点Si dの座標(X座標、Y座標及びZ座標)及び移動経路Pk −Pk+1 を対応付けて、交点テーブルに記憶する。なおX座標はX方向の座標であり、Y座標はY方向の座標であり、Z座標はZ方向の座標である。 As shown in FIG. 6, the control device 50, each evaluation section D d, the moving path P k -P k + 1 calculates the intersection S i d and the path number i, the intersection S i d coordinates (X Coordinate, Y coordinate and Z coordinate) and the movement path P k -P k + 1 are associated with each other and stored in the intersection table. The X coordinate is a coordinate in the X direction, the Y coordinate is a coordinate in the Y direction, and the Z coordinate is a coordinate in the Z direction.

制御装置50は、評価断面Dd 上における交点の特徴量を、例えば以下に示す演算方法で求める。図7は、評価断面Dd 上における交点の特徴量を演算する演算方法を説明する説明図である。制御装置50は、対象となる交点Si dのZ座標と、交点Si dの両隣にそれぞれ位置する交点Si-1 d及び交点Si+1 dのZ座標を使用して、交点Si dの二階差分を演算する。交点Si-1 dのZ座標は交点Si dのZ座標よりも大きい。交点Si+1 dのZ座標は交点Si dのZ座標よりも小さい。 Controller 50, a feature value of the intersection on evaluation section D d, determined by the calculation method shown below, for example. FIG. 7 is an explanatory diagram for explaining a calculation method for calculating the feature amount of the intersection point on the evaluation section D d . Controller 50 may use the Z-coordinate of the intersection point S i d of interest, the Z coordinate of the intersection point S i intersections respectively positioned on both sides of d S i-1 d and the intersection S i + 1 d, the intersection S Calculate the second-order difference of i d . The Z coordinate of the intersection S i-1 d is larger than the Z coordinate of the intersection S i d . The Z coordinate of the intersection S i + 1 d is smaller than the Z coordinate of the intersection S i d .

制御装置50は、交点Si dのZ座標zi dと交点Si+1 dの座標zi+1 dの差分da (da =zi d−zi+1 d)を演算し、交点Si-1 dの座標zi-1 dと交点Si dの座標zi dの差分db (db =zi-1 d−zi d)を演算する。制御装置50は、差分da と差分db の差分da −差分db (二階差分)を演算する。制御装置50は、特徴量として、各評価断面において、端に位置する交点を除く、全ての交点に対して二階差分を演算する。二階差分の大きさの大/小は、加工後のワーク表面の凹凸度合の大/小に対応する。 Controller 50 calculates the intersection S i d Z coordinate z i d and the intersection point S i + 1 d coordinate z i + 1 d of the difference d a of (d a = z i d -z i + 1 d) , calculates the intersection point S i-1 d coordinate z i-1 d and the intersection point S i d coordinate z i d of the difference d b of the (d b = z i-1 d -z i d). The control device 50 calculates a difference d a -difference d b (second-order difference) between the difference d a and the difference d b . The control device 50 calculates a second-order difference for all intersections excluding the intersection located at the end in each evaluation section as the feature amount. The large / small size of the second-order difference corresponds to the large / small degree of unevenness of the workpiece surface after machining.

制御装置50は、評価断面Dd 上における交点位置を例えば第1の補正方法で補正する。図8は、評価断面Dd 上における交点位置の第1の補正方法を説明する説明図である。制御装置50は、例えばZ方向の座標を漸次変更するように交点位置を補正する。補正の対象となる交点座標Si dに対し、前後各二点の交点座標si-2 d、si-1 d、si+1 d、si+2 dを使用して補正点ti dを決定する。 Controller 50 corrects the intersection position on the evaluation section D d for example, the first correction method. Figure 8 is an explanatory diagram for explaining a first method of correcting the intersection position on the evaluation section D d. The control device 50 corrects the intersection position so as to gradually change the coordinates in the Z direction, for example. Correction point t using the intersection coordinates s i-2 d , s i-1 d , s i + 1 d , s i + 2 d of the two points before and after the intersection coordinates S i d to be corrected i d is determined.

四つの交点座標si-2 d、si-1 d、si+1 d、si+2 dの各Z座標値をzi-2 、zi-1 、zi+1 、zi+2 とし、補正点ti dのZ座標値をzi′とし、Z座標値の差分をd1 =zi-2 −zi-1、d2 =zi-1 −zi、d3 =zi ′−zi+1、d4 =zi+1 −zi+2とする。Z座標値の二回差分d12′、d23′、d34′(Z座標値の差分d1 、d2 、d3 、d4 の差分)が線形に変化するようなzi′を演算する。 Each Z coordinate value of the four intersection coordinates s i-2 d , s i-1 d , s i + 1 d , s i + 2 d is expressed as z i-2 , z i-1 , z i + 1 , z i. +2 , Z coordinate value of correction point t i d is z i ′, Z coordinate value difference is d 1 = z i−2 −z i−1 , d 2 = z i−1 −z i , d 3 = z i ′ −z i + 1 and d 4 = z i + 1 −z i + 2 . Calculates z i ′ such that the two-fold differences d 12 ′, d 23 ′, d 34 ′ (differences in Z coordinate values d 1 , d 2 , d 3 , d 4 ) change linearly. To do.

Z座標値の二回差分d12′、d23′、d34′は次式で求まる。
d12′=d2 −d1 =(zi-1 −zi ′)−(zi-2 −zi-1)=2zi-1 −zi ′−zi-2 ・・・(1)
d23′=d3 −d2 =(zi ′−zi+1)−(zi-1 −zi ′)=2zi ′−zi+1 −zi-1 ・・・(2)
d34′=d4 −d3 =(zi+1 −zi+2 )−(zi ′−zi+1 )=2zi+1 −zi+2 −zi ・・(3)
The two-time differences d 12 ′, d 23 ′, and d 34 ′ of the Z coordinate value are obtained by the following equations.
d 12 ′ = d 2 −d 1 = (z i−1 −z i ′) − (z i−2 −z i−1 ) = 2 z i−1 −z i ′ −z i−2. 1)
d 23 ′ = d 3 −d 2 = (z i ′ −z i + 1 ) − (z i−1 −z i ′) = 2 z i ′ −z i + 1 −z i−1 (2) )
d 34 ′ = d 4 −d 3 = (z i + 1 −z i + 2 ) − (z i ′ −z i + 1 ) = 2 z i + 1 −z i + 2 −z i (3)

これらが線形に変化することから、
d23′=(d12′+d34′)/2 ・・・(4)
を満たす。
Since these change linearly,
d 23 ′ = (d 12 ′ + d 34 ′) / 2 (4)
Meet.

式(1)〜(4)に基づき、zi ′を解くと、
zi ′=(−zi-2 +4zi-1 +4zi+1 −zi+2 )/6
となる。
Solving z i ′ based on the equations (1) to (4),
z i ′ = (− z i−2 + 4z i−1 + 4z i + 1 −z i + 2 ) / 6
It becomes.

評価断面Dd 上における全ての交点Si dに対して上記補正を行う。なおZ座標値が他の交点のZ座標値と比較して、大きく離れた交点のみを補正してもよい。 Performing the correction for all the intersections S i d on evaluation section D d. Note that it is possible to correct only intersections whose Z coordinate values are far apart compared to the Z coordinate values of other intersections.

制御装置50は、評価断面Dd 上における交点位置を例えば第2の補正方法で補正する。図9は評価断面上における交点位置の第2の補正方法を説明する説明図である。図9において、uはXY座標に相当し、vはZ座標に相当する。制御装置50は、例えば補正の対象となる交点Si dの周囲にある他の複数の交点を使用して、滑らかな曲線(スプライン曲線、ベジェ曲線、NURBS曲線等)を作成し、該曲線上に補正の対象となる交点Si dを投影する。 Controller 50 corrects the intersection position on the evaluation section D d for example in the second correction method. FIG. 9 is an explanatory diagram for explaining a second correction method of the intersection position on the evaluation cross section. In FIG. 9, u corresponds to an XY coordinate, and v corresponds to a Z coordinate. The control device 50 creates a smooth curve (spline curve, Bezier curve, NURBS curve, etc.) using a plurality of other intersections around the intersection S i d to be corrected, for example. Project the intersection S i d to be corrected.

滑らかな曲線として四つの交点si-2 d、si-1 d、si+1 d、si+2 dを使用する場合、評価断面Dd (uv平面)上における区間si-2 d〜si-1 d、区間si-1 d〜si+1 d、区間si+1 d〜si+2 dの夫々の曲線式v1(u)、v2(u)、v3(u)は、以下の式となる。
j(u)=aj (u-uj )3 +bj (u-uj )2 +cj (u-uj )+dj
(j=1、2、3)
When the four intersections s i-2 d , s i-1 d , s i + 1 d , s i + 2 d are used as smooth curves, the section s i-2 on the evaluation section D d (uv plane) d to s i-1 d , sections s i-1 d to s i + 1 d , sections s i + 1 d to s i + 2 d , respectively, v 1 (u), v 2 (u), v 3 (u) is represented by the following equation.
v j (u) = a j (u−u j ) 3 + b j (u−u j ) 2 + c j (u−u j ) + d j
(J = 1, 2, 3)

交点si-2 d、si-1 d、si+1 d、si+2 dを通り、且つ境界点における一次導関数及び二次導関数が連続であることに基づいて、制御装置50はaj 〜dj を決定することができる。 Based on the fact that the first and second derivatives at the boundary points are continuous, passing through the intersections s i-2 d , s i-1 d , s i + 1 d , s i + 2 d 50 can determine a j to d j .

四つの交点の選択は、上述したように、交点Si dの両隣に位置する連続した二点を使用する場合に限らない。例えば交点si-3 d、si-1 d、si+1 d、si+3 dのように、二点毎に不連続に交点を選択してもよい。 The selection of the four intersection points is not limited to the case of using two consecutive points located on both sides of the intersection point S i d as described above. For example, intersection points may be selected discontinuously at every two points, such as intersection points s i-3 d , s i-1 d , s i + 1 d , and s i + 3 d .

図9に示すように、補正点ti d位置は、滑らかな曲線上において、補正の対象となる交点Si dからの距離が最小となる位置である。以下補正点ti dを交点ti dとも称する。制御装置50は、例えば補正後の特徴量として、交点ti dの二階差分を演算する。 As shown in FIG. 9, the correction point t i d position is a position on the smooth curve where the distance from the intersection S i d to be corrected is the minimum. Following the correction point t i d is also referred to as a point of intersection t i d. For example, the control device 50 calculates the second-order difference of the intersection t i d as the corrected feature amount.

d番目の評価断面Dd 上に存在する補正後の交点群をTd とする。
d ={ti d|d:断面番号、i:経路番号}
A corrected intersection point group existing on the d-th evaluation section D d is defined as T d .
T d = {t i d | d: section number, i: route number}

制御装置50は、交点群をTd を使用して、指令点の位置を補正する。図10は指令点の補正方法を説明する説明図である。図10において、pa 〜pf は指令点を示す。 The control device 50 corrects the position of the command point using Td as the intersection group. FIG. 10 is an explanatory diagram for explaining a method of correcting a command point. In FIG. 10, p a to p f indicate command points.

例えば指令点pc が補正対象である場合、図10Aに示す如く、指令点pc は断面Dd-1 と断面Dd の間に位置し、経路番号はiである。制御装置50は前述した交点テーブルを参照し、指令点pc に関する断面位置及び経路番号を取得する。 For example, when the command point pc is a correction target, as shown in FIG. 10A, the command point pc is located between the section D d-1 and the section D d and the path number is i. Controller 50 refers to the intersection table described above, to obtain the cross-sectional location and path numbers for command points p c.

図10Bに示す如く、制御装置50は指令点pc の周囲にある交点、例えば加工経路α上に並んだ四つの交点ti d+1、ti d、ti d-1、ti d-2を探索する。制御装置50は四つの交点ti d+1、ti d、ti d-1、ti d-2から滑らかな曲線(スプライン曲線、ベジェ曲線、NURBS曲線等)を作成し、該曲線上に指令点pc を投影し、補正点pc ′を決定する。制御装置50は、滑らかな曲線を前述した第2の補正方法と同様な方法で求める。補正点pc ′の位置は、滑らかな曲線上において、指令点pc からの距離が最小となる位置である。制御装置50は他の指令点の位置を同様に補正する。 As shown in FIG. 10B, the intersection control device 50 surrounding the command point p c, for example, four intersection points aligned on the machining path α t i d + 1, t i d, t i d-1, t i d Search for -2 . The control device 50 creates a smooth curve (spline curve, Bezier curve, NURBS curve, etc.) from the four intersection points t i d + 1 , t i d , t i d-1 , t i d-2 , The command point p c is projected onto, and the correction point p c ′ is determined. The control device 50 obtains a smooth curve by a method similar to the second correction method described above. Position correction point p c 'is on a smooth curve, the distance from the command point p c is the smallest position. The control device 50 corrects the positions of other command points in the same manner.

CPU51は、加工プログラムに基づいて、表示部8に加工後のワークW形状及びワークW表面の凹凸度合を表示する。図11は、加工後のワークW形状及びワークW表面の凹凸度合を表示する為の表示部8の一例を示す正面図である。   CPU51 displays the workpiece | work W shape after a process, and the unevenness | corrugation degree of the workpiece | work W surface on the display part 8 based on a process program. FIG. 11 is a front view illustrating an example of the display unit 8 for displaying the workpiece W shape after machining and the degree of unevenness of the workpiece W surface.

図11に示すように、加工後のワークW形状及びワークW表面の凹凸度合を表示する場合、表示部8は、補正前のワークW形状及びワークW表面の凹凸度合を表示する第一表示画面81、補正後のワークW形状及びワークW表面の凹凸度合を表示する第二表示画面82、加工プログラムを選択する為のプログラム選択ボタン83、領域を指定する領域指定ボタン84、ワークW表面の凹凸度合を示す凹凸スケール85、凹凸スケール85の目盛の範囲を調整する調整スケール86、表示をリセットする表示リセットボタン87等を表示する。   As shown in FIG. 11, when displaying the workpiece W shape after processing and the unevenness degree of the surface of the workpiece W, the display unit 8 displays the first shape of the workpiece W shape before correction and the unevenness degree of the surface of the workpiece W. 81, a second display screen 82 for displaying the corrected work W shape and the degree of unevenness on the surface of the work W, a program selection button 83 for selecting a machining program, an area specifying button 84 for specifying an area, an unevenness on the surface of the work W An uneven scale 85 indicating the degree, an adjustment scale 86 for adjusting the scale range of the uneven scale 85, a display reset button 87 for resetting the display, and the like are displayed.

第一表示場面81及び第二表示画面82は左右に並んでいる。凹凸スケール85は、第一表示画面81及び第2表示画面82の下側に配置してある。凹凸スケール85は、左右に延びた矩形の色表示部85f、最小値表示部85a、第一中間値表示部85b、中央値表示部85c、第二中間値表示部85d、最大値表示部85eを備える。最小値表示部85a、第一中間値表示部85b、中央値表示部85c、第二中間値表示部85d、最大値表示部85eは、色表示部85fの下側に配置してあり、初期状態において空欄である。   The first display scene 81 and the second display screen 82 are arranged side by side. The uneven scale 85 is arranged below the first display screen 81 and the second display screen 82. The concavo-convex scale 85 includes a rectangular color display portion 85f, a minimum value display portion 85a, a first intermediate value display portion 85b, a median value display portion 85c, a second intermediate value display portion 85d, and a maximum value display portion 85e that extend to the left and right. Prepare. The minimum value display portion 85a, the first intermediate value display portion 85b, the median value display portion 85c, the second intermediate value display portion 85d, and the maximum value display portion 85e are arranged below the color display portion 85f, and are in an initial state. Is blank.

最小値表示部85a、第一中間値表示部85b、中央値表示部85c、第二中間値表示部85d、最大値表示部85eは、所定領域における特徴量の最大値、最小値、最大値及び最小値の間の中央値、最小値及び中央値の間の第一中間値、並びに最大値及び中央値の間の第二中間値を表示する。   The minimum value display portion 85a, the first intermediate value display portion 85b, the median value display portion 85c, the second intermediate value display portion 85d, and the maximum value display portion 85e are the maximum value, the minimum value, the maximum value, and the feature value in the predetermined area. The median value between the minimum values, the first intermediate value between the minimum value and the median value, and the second intermediate value between the maximum value and the median value are displayed.

図12は、色テーブルの一例を示す図である。記憶部52は色テーブルを格納する。色テーブルは、特徴量と色割合(赤:緑:青)の対応関係を示す。特徴量の最小値の色割合が0:0:1であり、青に対応する。第一中間値の色割合は0:1:1であり、シアンに対応する。中央値の色割合は0:1:0であり、緑に対応する。第二中間値の色割合は1:1:0であり、黄色に対応する。最大値の色割合は1:0:0であり、赤に対応する。   FIG. 12 is a diagram illustrating an example of a color table. The storage unit 52 stores a color table. The color table shows a correspondence relationship between feature amounts and color ratios (red: green: blue). The color ratio of the minimum value of the feature amount is 0: 0: 1 and corresponds to blue. The color ratio of the first intermediate value is 0: 1: 1 and corresponds to cyan. The median color ratio is 0: 1: 0, corresponding to green. The color ratio of the second intermediate value is 1: 1: 0, corresponding to yellow. The maximum color ratio is 1: 0: 0, corresponding to red.

最小値と第一中間値の間の特徴量は0:0〜1:1であり、青〜シアンに対応する。特徴量の増加に従って、緑の割合は線形に増加する。第一中間値と中央値の間の特徴量は0:1:1〜0であり、シアン〜緑に対応する。特徴量の増加に従って、青の割合は線形に減少する。中央値と第二中間値の間の特徴量は0〜1:1:0であり、緑〜黄色に対応する。特徴量の増加に従って、赤の割合は線形に増加する。第二中間値と最大値の間の特徴量は1:1〜0:0であり、黄〜赤に対応する。特徴量の増加に従って、緑の割合は線形に減少する。   The feature amount between the minimum value and the first intermediate value is 0: 0 to 1: 1, and corresponds to blue to cyan. As the feature amount increases, the green ratio increases linearly. The feature amount between the first intermediate value and the median value is 0: 1: 1 to 0, corresponding to cyan to green. As the feature amount increases, the blue ratio decreases linearly. The feature amount between the median and the second intermediate value is 0 to 1: 1: 0, corresponding to green to yellow. As the feature amount increases, the red ratio increases linearly. The feature amount between the second intermediate value and the maximum value is 1: 1 to 0: 0, which corresponds to yellow to red. As the feature amount increases, the green percentage decreases linearly.

色表示部85fは色テーブルに対応した色を表示する。色表示部85fは、最小値表示部85a、第一中間値表示部85b、中央値表示部85c、第二中間値表示部85d、最大値表示部85eに対応する箇所に、青、シアン、緑、黄色、赤を夫々表示する。最小値表示部85aと第一中間値表示部85bの間に対応する箇所では青からシアンに亘って連続的に変化するように、色を表示する。第一中間値表示部85bと中央値表示部85cの間に対応する箇所ではシアンから緑に亘って連続的に変化するように、色を表示する。中央値表示部85cと第二中間値表示部85dの間に対応する箇所では緑から黄色に亘って連続的に変化するように、色を表示する。第二中間値表示部85dと最大値表示部85eの間に対応する箇所では黄色から赤に亘って連続的に変化するように、色を表示する。   The color display unit 85f displays a color corresponding to the color table. The color display portion 85f has blue, cyan, green at locations corresponding to the minimum value display portion 85a, the first intermediate value display portion 85b, the median value display portion 85c, the second intermediate value display portion 85d, and the maximum value display portion 85e. , Yellow and red are displayed respectively. A color is displayed so that it continuously changes from blue to cyan at a corresponding position between the minimum value display portion 85a and the first intermediate value display portion 85b. Colors are displayed so as to continuously change from cyan to green at a corresponding position between the first intermediate value display portion 85b and the median value display portion 85c. The color is displayed so as to continuously change from green to yellow at a location corresponding to between the median value display portion 85c and the second intermediate value display portion 85d. The color is displayed so as to continuously change from yellow to red at a portion corresponding to between the second intermediate value display portion 85d and the maximum value display portion 85e.

調整スケール86は、凹凸スケール85で使用する最小値及び最大値を調整する為の調整部86aと、調整部86aで調整した最小値及び最大値の間の範囲を示す範囲表示部86bとを備える。   The adjustment scale 86 includes an adjustment unit 86a for adjusting the minimum value and the maximum value used in the concavo-convex scale 85, and a range display unit 86b indicating a range between the minimum value and the maximum value adjusted by the adjustment unit 86a. .

図13は、プログラム一覧90を呼び出した場合の表示部8の一例を示す正面図である。加工後のワークW形状及びワークW表面の凹凸度合を表示する場合、作業者は、操作部7によって、プログラム選択ボタン83を操作し、プログラム一覧90を呼び出す。   FIG. 13 is a front view showing an example of the display unit 8 when the program list 90 is called. When displaying the processed workpiece W shape and the degree of unevenness of the workpiece W surface, the operator operates the program selection button 83 by the operation unit 7 to call the program list 90.

プログラム一覧90は、プログラム表示部91、補正前ボタン92、補正後ボタン93、補正前後ボタン94、取り消しボタン95を備える。プログラム表示部91は、一又は複数の加工プログラムを示す。作業者は操作部7を操作して何れかの加工プログラムを選択する。   The program list 90 includes a program display unit 91, a pre-correction button 92, a post-correction button 93, a pre-correction button 94, and a cancel button 95. The program display unit 91 shows one or a plurality of machining programs. The operator operates the operation unit 7 to select any machining program.

加工プログラムの選択後、作業者が操作部7を操作して補正前ボタン92を選択した場合、CPU51はワークWの全体領域を第1領域R1として認識し、選択した加工プログラムに基づいて、第1領域R1内における補正前の交点の特徴量を演算し、表示部8に補正前のワークW形状及びワークW表面の凹凸度合を表示する。換言すれば、加工後のワークW表面の第1領域R1における凹凸度合を示す特徴量に基づいて、第1領域R1内における第1画像データを生成する。   When the operator selects the pre-correction button 92 by operating the operation unit 7 after selecting the machining program, the CPU 51 recognizes the entire area of the workpiece W as the first area R1, and based on the selected machining program, The feature amount of the intersection before correction in one region R1 is calculated, and the workpiece W shape before correction and the unevenness degree of the surface of the workpiece W are displayed on the display unit 8. In other words, the first image data in the first region R1 is generated based on the feature amount indicating the degree of unevenness in the first region R1 on the surface of the workpiece W after processing.

加工プログラムの選択後、作業者が操作部7を操作して補正後ボタン93を選択した場合、CPU51はワークWの全体領域を第1領域R1として認識し、選択した加工プログラムに基づき、第1領域R1内における補正前の交点に対して補正を行い、補正後の交点の特徴量を演算し、第1領域R1内における第1補正画像データを生成する。CPU51は第1補正画像データに基づいて、表示部8に補正後のワークW形状及びワークW表面の凹凸度合を表示する。   After selecting the machining program, when the operator operates the operation unit 7 and selects the corrected button 93, the CPU 51 recognizes the entire area of the workpiece W as the first area R1, and based on the selected machining program, the first Correction is performed on the intersection before correction in the region R1, the feature amount of the intersection after correction is calculated, and first corrected image data in the first region R1 is generated. Based on the first corrected image data, the CPU 51 displays the corrected workpiece W shape and the degree of unevenness of the workpiece W surface on the display unit 8.

加工プログラムの選択後、作業者が操作部7を操作して補正前後ボタン94を選択した場合、CPU51はワークWの全体領域を第1領域R1として認識し、選択した加工プログラムに基づき、上述したように第1領域R1内における補正前と補正後の交点の特徴量をそれぞれ演算し、第1画像データ及び第1補正画像データを生成し、第一表示画面81及び第二表示画面82に補正前のワークW形状及びワークW表面の凹凸度合と、補正後のワークW形状及びワークW表面の凹凸度合を並べて表示する。   After the selection of the machining program, when the operator operates the operation unit 7 and selects the correction back and forth button 94, the CPU 51 recognizes the entire area of the workpiece W as the first area R1, and based on the selected machining program, the above-described processing is performed. As described above, the feature values of the intersections before and after the correction in the first region R1 are respectively calculated, the first image data and the first corrected image data are generated, and the first display screen 81 and the second display screen 82 are corrected. The previous workpiece W shape and the unevenness degree of the workpiece W surface, and the corrected workpiece W shape and the unevenness degree of the workpiece W surface are displayed side by side.

作業者が取り消しボタン95を選択した場合、CPU51はプログラム一覧90を表示部8から削除する。なおCPU51はワークWの全体領域を第1領域R1として認識しているが、全体領域よりも狭い領域を第1領域R1として認識してもよい。   When the operator selects the cancel button 95, the CPU 51 deletes the program list 90 from the display unit 8. The CPU 51 recognizes the entire area of the work W as the first area R1, but may recognize an area narrower than the entire area as the first area R1.

加工プログラムの選択後、作業者が操作部7を操作して補正前後ボタン94を選択した場合を説明する。図14は、第1画像データ及び第1補正画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を表示した表示部8の一例を示す正面図である。   A case will be described in which after the machining program is selected, the operator operates the operation unit 7 and selects the correction back and forth button 94. FIG. 14 is a front view illustrating an example of the display unit 8 that displays the shape of the workpiece W and the degree of unevenness of the surface of the workpiece W based on the first image data and the first corrected image data.

CPU51は、選択した加工プログラムから特徴量の最小値及び最大値を取得し、第一中間値、第二中間値及び中央値を演算する。例えば、以下のように演算する。
第一中間値=最小値+(最大値−最小値)/4 ・・・(5)
中央値=最小値+(最大値−最小値)/2 ・・・(6)
第二中間値=最小値+3(最大値−最小値)/4 ・・・(7)
なお最小値及び最大値は補正前の最小値及び最大値である。
The CPU 51 acquires the minimum value and the maximum value of the feature amount from the selected processing program, and calculates the first intermediate value, the second intermediate value, and the median value. For example, the calculation is performed as follows.
First intermediate value = minimum value + (maximum value−minimum value) / 4 (5)
Median value = minimum value + (maximum value−minimum value) / 2 (6)
Second intermediate value = minimum value + 3 (maximum value-minimum value) / 4 (7)
The minimum value and the maximum value are the minimum value and the maximum value before correction.

例えば、最小値が−0.30547、最大値が0.34748である場合、第一中間値、中央値、第二中間値は夫々、−0.14223、0.02101、0.18423である。図14に示すように、CPU51は、最小値表示部85a、第一中間値表示部85b、中央値表示部85c、第二中間値表示部85d、最大値表示部85eに−0.30547、−0.14223、0.02101、0.18423、0.34748を夫々表示する。   For example, when the minimum value is −0.30547 and the maximum value is 0.34748, the first intermediate value, the median value, and the second intermediate value are −0.14223, 0.02101, and 0.18423, respectively. As shown in FIG. 14, the CPU 51 sets −0.30547, −0.30547 to the minimum value display portion 85a, the first intermediate value display portion 85b, the median value display portion 85c, the second intermediate value display portion 85d, and the maximum value display portion 85e. 0.14223, 0.02101, 0.18423, and 0.34748 are displayed respectively.

CPU51は、演算した最小値、最大値、第一中間値、中央値、第二中間値に基づいて、色テーブルを作成し(図12参照)、記憶部52に記憶する。図14に示すように、CPU51は第一表示画面81に補正前のワークW形状を表示し、第二表示画面82に補正後のワークW形状を表示する。   The CPU 51 creates a color table based on the calculated minimum value, maximum value, first intermediate value, median value, and second intermediate value (see FIG. 12) and stores them in the storage unit 52. As shown in FIG. 14, the CPU 51 displays the workpiece W shape before correction on the first display screen 81 and displays the workpiece W shape after correction on the second display screen 82.

CPU51は、補正前におけるワークWの各部分の特徴量を演算し、記憶部52に記憶した色テーブルを参照して、演算した特徴量に対応する色を第一表示画面81にて当該部分に表示し、ワークW表面の凹凸度合を表示する。補正前におけるワークWの各部分の特徴量及び記憶部52に記憶した色テーブルは第1画像データを構成する。即ちCPU51は、第1画像データを生成し、生成した第1画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を第一表示画面81に表示する。   The CPU 51 calculates the feature amount of each part of the workpiece W before correction, refers to the color table stored in the storage unit 52, and sets the color corresponding to the calculated feature amount to the part on the first display screen 81. And the degree of unevenness on the surface of the workpiece W is displayed. The feature amount of each part of the workpiece W before correction and the color table stored in the storage unit 52 constitute first image data. That is, the CPU 51 generates first image data, and displays the workpiece W shape and the unevenness degree of the surface of the workpiece W on the first display screen 81 based on the generated first image data.

また補正後のワークWを構成する各部分の特徴量を演算し、記憶部52に記憶した色テーブルを参照して、演算した特徴量に対応する色を第二表示画面82にて当該部分に表示し、ワークW表面の凹凸度合をする。補正後におけるワークWの各部分の特徴量及び記憶部52に記憶した色テーブルは第1補正画像データを構成する。即ちCPU51は第1補正画像データを生成し、生成した第1補正画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を第二表示画面82に表示する。   Further, the feature amount of each part constituting the corrected workpiece W is calculated, and the color corresponding to the calculated feature amount is displayed on the part on the second display screen 82 by referring to the color table stored in the storage unit 52. Display the degree of unevenness on the surface of the workpiece W. The feature amount of each part of the workpiece W after correction and the color table stored in the storage unit 52 constitute first corrected image data. That is, the CPU 51 generates first corrected image data, and displays the workpiece W shape and the unevenness degree of the surface of the workpiece W on the second display screen 82 based on the generated first corrected image data.

例えば、第一表示画面81に表示したワークWは赤領域R、黄領域Y、シアン領域C、青領域Bを有し、その他の領域は緑領域Gである。例えば、第二表示画面82に表示したワークWは、黄領域Y、シアン領域Cを有し、その他の領域は緑領域Gである。即ち、補正によって、赤領域Rの特徴量(最大値付近の特徴量)が黄領域Yの特徴量(第二中間値付近の特徴量)に変更されており、青領域Bの特徴量(最小値付近の特徴量)はシアン領域Cの特徴量(第一中間値付近の特徴量)に変更されている。   For example, the work W displayed on the first display screen 81 has a red region R, a yellow region Y, a cyan region C, and a blue region B, and the other region is a green region G. For example, the work W displayed on the second display screen 82 has a yellow region Y and a cyan region C, and the other regions are green regions G. That is, the feature amount of the red region R (the feature amount near the maximum value) is changed to the feature amount of the yellow region Y (the feature amount near the second intermediate value) by the correction, and the feature amount of the blue region B (minimum value) The feature amount in the vicinity of the value) is changed to the feature amount in the cyan region C (the feature amount in the vicinity of the first intermediate value).

図15は、領域指定ボタン84を操作した状態を表示する表示部8の一例を示す正面図である。作業者は必要に応じて、ワークWの領域を指定する。図15に示すように、作業者は操作部7を操作して領域指定ボタン84を操作する。作業者が領域指定ボタン84を操作した場合、CPU51は、領域指定の受け付けを開始する。   FIG. 15 is a front view illustrating an example of the display unit 8 that displays a state in which the region designation button 84 is operated. The operator designates the area of the work W as necessary. As shown in FIG. 15, the operator operates the operation unit 7 to operate the area designation button 84. When the operator operates the area designation button 84, the CPU 51 starts accepting the area designation.

図16は、第2領域R2を表示する表示部8の一例を示す正面図である。図16に示すように、作業者は操作部7を操作して、開始点S及び終了点Eを指定する。CPU51は、開始点S及び終了点Eを結んだ線を対角線とした四角の領域を第2領域R2として認識し、表示部8に第2領域R2を表示する。第2領域R2は第1領域R1内に位置する。   FIG. 16 is a front view illustrating an example of the display unit 8 that displays the second region R2. As shown in FIG. 16, the operator operates the operation unit 7 to specify the start point S and the end point E. The CPU 51 recognizes a square area having a diagonal line connecting the start point S and the end point E as the second area R2, and displays the second area R2 on the display unit 8. The second region R2 is located in the first region R1.

図17は、第2画像データ及び第2補正画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を表示した表示部8の一例を示す正面図である。CPU51は第2領域R2における全てのサンプリング点について特徴量を演算し、演算した特徴量の中で最小の特徴量を凹凸スケール85で使用する最小値に設定し、最大の特徴量を凹凸スケール85で使用する最大値に設定する。   FIG. 17 is a front view showing an example of the display unit 8 displaying the workpiece W shape and the degree of unevenness of the workpiece W surface based on the second image data and the second corrected image data. The CPU 51 calculates feature amounts for all sampling points in the second region R2, sets the minimum feature amount among the calculated feature amounts to the minimum value used by the uneven scale 85, and sets the maximum feature amount to the uneven scale 85. Set to the maximum value used in.

CPU51は、第2領域R2での特徴量の最小値及び最大値並びに上述した式(5)〜(7)に基づいて、第一中間値、中央値、第二中間値を夫々演算する。例えば第2領域R2での特徴量の最小値及び最大値が夫々−0.10027、0.12430である場合、第一中間値は−0.04413であり、中央値は0.01202であり、第二中間値は0.06816である。CPU51は、演算した最小値、第一中間値、中央値、第二中間値及び最大値と、青、シアン、緑、黄色、赤とを対応させて、色テーブルを作成し、記憶部52に記憶する(図12参照)。   The CPU 51 calculates the first intermediate value, the median value, and the second intermediate value based on the minimum value and the maximum value of the feature amount in the second region R2 and the above-described equations (5) to (7). For example, when the minimum value and the maximum value of the feature amount in the second region R2 are −0.10027 and 0.12430, respectively, the first intermediate value is −0.04413, the median value is 0.01202, The second intermediate value is 0.06816. The CPU 51 creates a color table by associating the calculated minimum value, first intermediate value, median value, second intermediate value, and maximum value with blue, cyan, green, yellow, and red, and stores them in the storage unit 52. Store (see FIG. 12).

補正前におけるワークWの各部分の特徴量及び記憶部52に記憶した色テーブルは第2画像データを構成する。即ち、CPU51は、第2領域R2内における凹凸度合を示す特徴量に基づいて、補正前の第1領域R1内における第2画像データを生成し、生成した第2画像データに基づいて、第一表示画面81にワークWの形状及び凹凸度合を表示する。図17に示すように、CPU51は最小値、第一中間値、中央値、第二中間値、最大値を、最小値表示部85a、第一中間値表示部85b、中央値表示部85c、第二中間値表示部85d、最大値表示部85eに夫々表示する。CPU51は、第1領域R1における各部分の特徴量に対応する色(色表示部85fにおける特徴量に対応する色)を第一表示画面81にて当該部分に表示し、ワークWの凹凸度合を表示する。   The feature amount of each part of the workpiece W before correction and the color table stored in the storage unit 52 constitute second image data. That is, the CPU 51 generates the second image data in the first region R1 before correction based on the feature amount indicating the degree of unevenness in the second region R2, and the first image data based on the generated second image data. The display screen 81 displays the shape of the workpiece W and the degree of unevenness. As shown in FIG. 17, the CPU 51 displays a minimum value, a first intermediate value, a median value, a second intermediate value, and a maximum value as a minimum value display unit 85a, a first intermediate value display unit 85b, a median value display unit 85c, They are displayed on the two intermediate value display portion 85d and the maximum value display portion 85e, respectively. The CPU 51 displays a color corresponding to the feature value of each part in the first region R1 (color corresponding to the feature value in the color display unit 85f) on the first display screen 81, and the degree of unevenness of the workpiece W is displayed. indicate.

また補正後のワークWを構成する各部分の特徴量を演算し、記憶部52に記憶した色テーブルを参照して、演算した特徴量に対応する色を第二表示画面82にて当該部分に表示し、ワークW表面の凹凸度合をする。補正後におけるワークWの各部分の特徴量及び記憶部52に記憶した色テーブルは第2補正画像データを構成する。即ちCPU51は第2補正画像データを生成し、生成した第2補正画像データに基づいて、ワークW形状及びワークW表面の凹凸度合を第二表示画面82に表示する。   Further, the feature amount of each part constituting the corrected workpiece W is calculated, and the color corresponding to the calculated feature amount is displayed on the part on the second display screen 82 by referring to the color table stored in the storage unit 52. Display the degree of unevenness on the surface of the workpiece W. The feature amount of each part of the workpiece W after correction and the color table stored in the storage unit 52 constitute second corrected image data. That is, the CPU 51 generates second corrected image data, and displays the workpiece W shape and the unevenness degree of the workpiece W surface on the second display screen 82 based on the generated second corrected image data.

CPU51は、作業者が第2領域R2を指定した場合、凹凸スケール85にて設定する最大値及び最小値を、第1領域R1における最大値及び最小値から第2領域R2における最大値及び最小値に変更し、第2画像データ及び第2補正画像データを生成する。CPU51は、第2画像データ及び第2補正画像データに基づいて、ワークW全体の各部分に表示する色を再び設定する。   When the operator specifies the second region R2, the CPU 51 changes the maximum value and the minimum value set on the unevenness scale 85 from the maximum value and the minimum value in the first region R1 to the maximum value and the minimum value in the second region R2. The second image data and the second corrected image data are generated. Based on the second image data and the second corrected image data, the CPU 51 sets again the color to be displayed on each part of the entire workpiece W.

最大値及び最小値を変更する前において、第一表示画面81の第2領域R2全体は緑領域Gであったが(図16参照)、最大値及び最小値を変更した後において、第2領域R2内に赤領域R及び青領域Bが出現した(図17参照)。第2領域R2を設定した場合、第1領域R1よりも狭い第2領域R2における特徴量の最大値及び最小値に基づいて、CPU51は各特徴量に色を設定し、第2画像データを生成する。そのため、第1領域R1の特徴量を基準にした第1画像データでは表示できなかった第2領域R2内における僅かな凹凸度合を、第2画像データにおいて、作業者は視認することができる。   Before changing the maximum value and the minimum value, the entire second region R2 of the first display screen 81 was the green region G (see FIG. 16), but after changing the maximum value and the minimum value, the second region R2 A red region R and a blue region B appeared in R2 (see FIG. 17). When the second region R2 is set, the CPU 51 sets a color for each feature amount based on the maximum value and the minimum value of the feature amount in the second region R2 narrower than the first region R1, and generates the second image data. To do. Therefore, in the second image data, the operator can visually recognize a slight degree of unevenness in the second region R2 that could not be displayed by the first image data based on the feature amount of the first region R1.

CPU51は、第2領域R2の特徴量に基づいて、第1領域R1における補正後のワークW形状及び凹凸度合を示す第2補正画像データを生成する。図17に示すように、CPU51は、第2補正画像データに基づいて、第二表示画面82に補正後のワークW形状及びワークW表面の凹凸度合を表示する。   The CPU 51 generates second corrected image data indicating the corrected work W shape and the degree of unevenness in the first region R1 based on the feature amount of the second region R2. As shown in FIG. 17, the CPU 51 displays the corrected workpiece W shape and the degree of unevenness of the workpiece W surface on the second display screen 82 based on the second corrected image data.

図18は、ワークW形状及びワークW表面の凹凸度合を表示する表示処理を説明するフローチャートである。初期状態において、表示部8は図11に示す画像を表示する。CPU51は、プログラム選択ボタン83の操作によって加工プログラムが呼び出されたか否かを判定する(ステップS1)。加工プログラムが呼び出されていない場合(ステップS1:NO)、ステップS1に処理を戻す。加工プログラムが呼び出された場合(ステップS1:YES)、CPU51は表示部8にプログラム一覧90を表示する(ステップS2、図13参照)。   FIG. 18 is a flowchart for explaining display processing for displaying the workpiece W shape and the unevenness degree of the workpiece W surface. In the initial state, the display unit 8 displays the image shown in FIG. The CPU 51 determines whether or not the machining program has been called by operating the program selection button 83 (step S1). If the machining program has not been called (step S1: NO), the process returns to step S1. When the machining program is called (step S1: YES), the CPU 51 displays a program list 90 on the display unit 8 (see step S2, FIG. 13).

CPU51は、プログラム表示部91に表示した何れかの加工プログラムを作業者が選択したかを判定する(ステップS3)。何れかの加工プログラムを選択していない場合(ステップS3:NO)、CPU51は、作業者が取り消しボタン95を操作したか否かを判定する(ステップS5)。取り消しボタン95を操作していない場合(ステップS5:NO)、CPU51はステップS3に処理を戻す。   The CPU 51 determines whether the operator has selected any machining program displayed on the program display unit 91 (step S3). If any machining program is not selected (step S3: NO), the CPU 51 determines whether or not the operator has operated the cancel button 95 (step S5). When the cancel button 95 is not operated (step S5: NO), the CPU 51 returns the process to step S3.

取り消しボタン95を操作している場合(ステップS5:YES)、CPU51はプログラム一覧90を表示部8から削除し(ステップS6)、ステップS1に処理を戻す。   When the cancel button 95 is operated (step S5: YES), the CPU 51 deletes the program list 90 from the display unit 8 (step S6), and returns the process to step S1.

ステップS3において、何れかの加工プログラムを選択した場合(ステップS3:YES)、CPU51は、補正前ボタン92、補正後ボタン93又は補正前後ボタン94を作業者が操作したか否か判定する(ステップS4)。補正前ボタン92、補正後ボタン93又は補正前後ボタン94を作業者が操作していない場合(ステップS4:NO)、CPU51はステップS5に処理を進める。   If any machining program is selected in step S3 (step S3: YES), the CPU 51 determines whether or not the operator has operated the pre-correction button 92, the post-correction button 93 or the pre-correction button 94 (step). S4). When the operator does not operate the pre-correction button 92, the post-correction button 93, or the pre-correction button 94 (step S4: NO), the CPU 51 advances the process to step S5.

補正前ボタン92、補正後ボタン93又は補正前後ボタン94を作業者が操作している場合(ステップS4:YES)、CPU51は、選択した加工プログラムを読み込み(ステップS7)、ワークWの特徴量を演算して、色テーブルを作成し、記憶部52に記憶する(ステップS8、図12参照)。   When the operator operates the pre-correction button 92, the post-correction button 93, or the pre-correction button 94 (step S4: YES), the CPU 51 reads the selected machining program (step S7) and determines the feature amount of the workpiece W. The color table is created by calculation and stored in the storage unit 52 (step S8, see FIG. 12).

CPU51は、ワークW形状を表示部8に表示し、また記憶部52に記憶した色テーブルを参照し、ワークWの特徴量に対応した色をワークW上に表示し、表示部8にワークW表面の凹凸度合を表示する(ステップS9:図14参照)。   The CPU 51 displays the workpiece W shape on the display unit 8, refers to the color table stored in the storage unit 52, displays a color corresponding to the feature amount of the workpiece W on the workpiece W, and displays the workpiece W on the display unit 8. The degree of unevenness on the surface is displayed (step S9: see FIG. 14).

CPU51は、作業者が領域指定ボタン84を操作し、開始点S及び終了点Eを設定し、領域(第2領域R2)指定を実行したか否かを判定する(ステップS10)。領域指定を実行した場合(ステップS10:YES、及び図15、16参照)、CPU51は第2領域R2の特徴量に基づいて色テーブルを再度作成し、記憶部52に記憶して(ステップS11)、ステップS9に処理を戻す。ステップS9において、CPU51は、記憶部52に記憶した第2領域R2の特徴量に基づく色テーブルを参照し、第1領域R1におけるワークW形状及びワークW表面の凹凸度合を表示する(図17参照)。領域指定を実行していない場合(ステップS10:NO)、CPU51は処理を終了する。   The CPU 51 determines whether or not the operator has operated the area designation button 84 to set the start point S and end point E and designated the area (second area R2) (step S10). When the area designation is executed (step S10: YES and see FIGS. 15 and 16), the CPU 51 creates a color table again based on the feature amount of the second area R2 and stores it in the storage unit 52 (step S11). Then, the process returns to step S9. In step S9, the CPU 51 refers to the color table based on the feature amount of the second region R2 stored in the storage unit 52, and displays the workpiece W shape and the unevenness degree of the surface of the workpiece W in the first region R1 (see FIG. 17). ). When the area designation is not executed (step S10: NO), the CPU 51 ends the process.

図19は、調整スケール86を操作した場合に表示部8に表示する画像の一例を示す図である。作業者は操作部7を介して調整スケール86を操作し、色テーブルにおける最大値又は最小値を変更することができる。   FIG. 19 is a diagram illustrating an example of an image displayed on the display unit 8 when the adjustment scale 86 is operated. The operator can operate the adjustment scale 86 via the operation unit 7 to change the maximum value or the minimum value in the color table.

例えば調整部86aの数値又は範囲表示部86bの横長の矩形の長さを変更して、調整スケール86の最小値を25.0%に変更した場合、当初の最小値に当初の最大値と最小値の差分の25%を加算した値(即ち当初の第一中間値)をCPU51は最小値として設定する。   For example, when the numerical value of the adjustment unit 86a or the length of the horizontally long rectangle of the range display unit 86b is changed and the minimum value of the adjustment scale 86 is changed to 25.0%, the initial maximum value and the minimum value are changed to the initial minimum value. The CPU 51 sets a value obtained by adding 25% of the value difference (that is, the initial first intermediate value) as the minimum value.

図14に示すように、当初の最小値が−0.30547であり、当初の最大値が0.34748であり、且つ調整スケール86の最小値を25.0%に変更した場合、図19に示すように、最小値は−0.14223(当初の第一中間値)となり、CPU51は第一中間値、中央値、第二中間値を再計算し、色テーブルを再作成する。なお作業者は調整スケール86の最大値を変更することもできる。   As shown in FIG. 14, when the initial minimum value is −0.30547, the initial maximum value is 0.34748, and the minimum value of the adjustment scale 86 is changed to 25.0%, FIG. As shown, the minimum value is -0.14223 (initial first intermediate value), and the CPU 51 recalculates the first intermediate value, median value, and second intermediate value, and recreates the color table. The operator can change the maximum value of the adjustment scale 86.

実施の形態に係る工作機械の制御装置にあっては、評価断面と加工経路αとの交点に関し、加工後のワークW表面の第1領域R1における凹凸度合を示す特徴量を演算し、演算した特徴量に対応する第1画像データを生成する。作業者が第1領域R1内の第2領域R2を指定した場合、第2領域R2における凹凸度合を示す特徴量に基づいて、第1領域R1内における第2画像データを生成する。加工経路演算装置は第1領域R1よりも狭い第2領域R2の特徴量を基準にして、第2画像データを生成する。第2画像データは、第1領域R1の特徴量を基準にした第1画像データでは表示できなかった第2領域R2内における僅かな凹凸度合を表示することができる。   In the control device for a machine tool according to the embodiment, the feature amount indicating the degree of unevenness in the first region R1 on the surface of the workpiece W after processing is calculated and calculated with respect to the intersection between the evaluation section and the processing path α. First image data corresponding to the feature amount is generated. When the operator designates the second region R2 in the first region R1, the second image data in the first region R1 is generated based on the feature amount indicating the degree of unevenness in the second region R2. The processing path calculation device generates second image data based on the feature amount of the second region R2 that is narrower than the first region R1. The second image data can display a slight degree of unevenness in the second region R2 that could not be displayed by the first image data based on the feature amount of the first region R1.

また制御装置は、第2領域R2における特徴量の最大値及び最小値に基づいて、色テーブルを作成し、該色テーブルに基づいて、第1領域R1における各特徴量に対応する色を設定する。第1領域R1よりも狭い第2領域R2における特徴量の最大値及び最小値に基づいて、各特徴量に色を設定するので、第1領域R1の特徴量を基準にした第1画像データでは表示できなかった第2領域R2内における僅かな凹凸度合を、作業者は視認することができる。   Further, the control device creates a color table based on the maximum value and the minimum value of the feature amount in the second region R2, and sets a color corresponding to each feature amount in the first region R1 based on the color table. . Since the color is set for each feature amount based on the maximum value and the minimum value of the feature amount in the second region R2 narrower than the first region R1, the first image data based on the feature amount in the first region R1 The operator can visually recognize a slight degree of unevenness in the second region R2 that could not be displayed.

補正後の交点に関し、第1領域R1における第1補正画像データを生成する。CPU51は第1補正画像データに基づいて、第二表示画面82にワークW形状及びワークW表面の凹凸度合を表示する。また第1領域R1内に位置する第2領域R2の指定を受け付けた場合、第2領域R2における凹凸度合を示す特徴量に基づいて、第1領域R1における第2補正画像データを生成する。CPU51は第2補正画像データに基づいて、第二表示画面82にワークW形状及びワークW表面の凹凸度合を表示する。交点の補正が第1及び第2補正画像データに反映しているので、作業者は、補正結果を加味した凹凸度合を視認することができる。   With respect to the corrected intersection, first corrected image data in the first region R1 is generated. The CPU 51 displays the workpiece W shape and the degree of unevenness of the workpiece W surface on the second display screen 82 based on the first corrected image data. When the designation of the second region R2 located in the first region R1 is received, the second corrected image data in the first region R1 is generated based on the feature amount indicating the degree of unevenness in the second region R2. The CPU 51 displays the workpiece W shape and the unevenness degree of the workpiece W surface on the second display screen 82 based on the second corrected image data. Since the correction of the intersection is reflected in the first and second corrected image data, the operator can visually recognize the degree of unevenness considering the correction result.

また補正後の交点に関し、制御装置50は、第2領域R2における特徴量の最大値及び最小値に基づいて、第1領域R1における各特徴量に対応する色を設定する。第1領域R1よりも狭い第2領域R2における特徴量の最大値及び最小値に基づいて、各特徴量に色を設定するので、補正後の交点に関し、第1領域R1の特徴量を基準にした第1画像データでは表示できなかった第2領域R2内における僅かな凹凸度合を、作業者は視認することができる。   Further, with respect to the corrected intersection, the control device 50 sets a color corresponding to each feature amount in the first region R1 based on the maximum value and the minimum value of the feature amount in the second region R2. Since the color is set for each feature amount based on the maximum value and the minimum value of the feature amount in the second region R2 that is narrower than the first region R1, with respect to the corrected intersection, the feature amount of the first region R1 is used as a reference. The operator can visually recognize a slight degree of unevenness in the second region R2 that could not be displayed with the first image data.

また第1領域R1の特徴量に基づいて生成された補正前の画像データ(第1画像データ)に基づく画像と、第1領域R1の特徴量に基づいて生成された補正後の画像データ(第1補正画像データ)に基づく画像を、第一表示画面81及び第二表示画面82に並べて表示しているので、補正前後における第1領域R1の特徴量を基準にしたワークW表面の凹凸度合を作業者は比較することができる。また第2領域R2の特徴量に基づいて生成された補正前の画像データ(第2画像データ)に基づく画像と、第2領域R2の特徴量に基づいて生成された補正後の画像データ(第2補正画像データ)に基づく画像を、第一表示画面81及び第二表示画面82に並べて表示しているので、補正前後における第2領域R2の特徴量を基準にしたワークW表面の凹凸度合を作業者は比較することができる。   An image based on the uncorrected image data (first image data) generated based on the feature amount of the first region R1 and the corrected image data (first image) generated based on the feature amount of the first region R1. Since the images based on (1 corrected image data) are displayed side by side on the first display screen 81 and the second display screen 82, the unevenness degree of the surface of the workpiece W on the basis of the feature amount of the first region R1 before and after the correction is displayed. Workers can compare. In addition, an image based on the uncorrected image data (second image data) generated based on the feature amount of the second region R2, and an image data after correction (first image) generated based on the feature amount of the second region R2. Since the images based on (2 corrected image data) are displayed side by side on the first display screen 81 and the second display screen 82, the unevenness degree of the surface of the workpiece W based on the feature amount of the second region R2 before and after the correction is displayed. Workers can compare.

今回開示した実施の形態は、全ての点で例示であって、制限的なものではないと考えられるべきである。各実施例にて記載されている技術的特徴は互いに組み合わせることができ、本発明の範囲は、特許請求の範囲内での全ての変更及び特許請求の範囲と均等の範囲が含まれることが意図される。   It should be thought that embodiment disclosed this time is an illustration and restrictive at no points. The technical features described in each embodiment can be combined with each other, and the scope of the present invention is intended to include all modifications within the scope of claims and the scope equivalent to the scope of claims. Is done.

5a 主軸
7 操作部
8 表示部
50 制御装置(加工経路演算装置)
51 CPU
52 記憶部
53 RAM
5a Spindle 7 Operation unit 8 Display unit 50 Control device (machining path calculation device)
51 CPU
52 storage unit 53 RAM

Claims (7)

主軸の位置を指示する複数の指令点に基づいて、ワークを加工する為の加工経路を演算する加工経路演算装置において、
前記加工経路に交差する評価断面を設定する設定部と、
該設定部にて設定した評価断面及び前記加工経路の交点を演算する交点演算部と、
該交点演算部にて演算した交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算する特徴量演算部と、
該特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第1画像データを生成する第1生成部と、
前記第1領域内に位置する第2領域の指定を受け付けた場合、前記第2領域における凹凸度合を示す特徴量に応じて、前記特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第2画像データを生成する第2生成部と
を備えることを特徴とする加工経路演算装置。
In a machining path calculation device that calculates a machining path for machining a workpiece based on a plurality of command points that indicate the position of the spindle,
A setting unit for setting an evaluation cross section that intersects the machining path;
An intersection calculation unit for calculating an intersection of the evaluation cross section set in the setting unit and the machining path;
A feature amount calculation unit that calculates a feature amount indicating the degree of unevenness in the first region of the workpiece surface after processing with respect to the intersection calculated by the intersection point calculation unit;
A first generation unit configured to generate first image data in the first region based on the feature amount calculated by the feature amount calculation unit;
When the designation of the second region located in the first region is received, the first amount is calculated based on the feature amount calculated by the feature amount calculation unit according to the feature amount indicating the degree of unevenness in the second region. A processing path calculation device comprising: a second generation unit configured to generate second image data in one region.
前記第1生成部は、前記第1領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第1画像データを生成し、
前記第2生成部は、前記第2領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第2画像データを生成すること
を特徴とする請求項2に記載の加工経路演算装置。
The first generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the first region, and based on the set color, the first generation unit Generate image data,
The second generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the second region, and based on the set color, the second generation unit The processing path calculation device according to claim 2, wherein image data is generated.
前記交点演算部が演算した交点の位置を補正する交点位置補正部と、
該交点位置補正部による補正後の交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算する補正特徴量演算部と、
該補正特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第1補正画像データを生成する第3生成部と、
前記第1領域内に位置する第2領域の指定を受け付けた場合、前記第2領域における凹凸度合を示す特徴量に応じて、前記補正特徴量演算部にて演算した特徴量に基づいて、前記第1領域における第2補正画像データを生成する第4生成部と
を備えること
を特徴とする請求項1又は2に記載の加工経路演算装置。
An intersection position correction unit for correcting the position of the intersection calculated by the intersection calculation unit;
A correction feature amount calculation unit that calculates a feature amount indicating the degree of unevenness in the first region of the workpiece surface after processing with respect to the intersection after correction by the intersection position correction unit;
A third generation unit that generates first corrected image data in the first region based on the feature amount calculated by the correction feature amount calculation unit;
When receiving the designation of the second region located in the first region, based on the feature amount calculated by the correction feature amount calculation unit according to the feature amount indicating the degree of unevenness in the second region, The processing path calculation device according to claim 1, further comprising: a fourth generation unit configured to generate second corrected image data in the first region.
前記第3生成部は、前記第1領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第1補正画像データを生成し、
前記第4生成部は、前記第2領域における特徴量の最大値及び最小値に基づいて、前記第1領域における各特徴量に対応する色を設定し、設定した色に基づいて、前記第2補正画像データを生成すること
を特徴とする請求項3に記載の加工経路演算装置。
The third generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the first region, and based on the set color, the first generation unit Generate corrected image data,
The fourth generation unit sets a color corresponding to each feature amount in the first region based on the maximum value and the minimum value of the feature amount in the second region, and based on the set color, the second generation unit The processing path calculation device according to claim 3, wherein corrected image data is generated.
前記第1画像データに基づく画像と前記第1補正画像データに基づく画像を表示部に並べて表示し、
前記第2画像データに基づく画像と前記第2補正画像データに基づく画像を表示部に並べて表示すること
を特徴とする請求項3又は4に記載の加工経路演算装置。
Displaying an image based on the first image data and an image based on the first corrected image data side by side on a display unit;
The processing path calculation device according to claim 3 or 4, wherein an image based on the second image data and an image based on the second corrected image data are displayed side by side on a display unit.
主軸の位置を指示する複数の指令点に基づいて、ワークを加工する為の加工経路を演算する加工経路演算方法において、
前記加工経路に交差する評価断面を設定し、
設定した評価断面及び前記加工経路の交点を演算し、
演算した交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算し、
演算した特徴量に基づいて、前記第1領域における第1画像データを生成し、
前記第1領域内に位置する第2領域の指定を受け付けた場合に、前記第2領域における凹凸度合を示す特徴量に応じて、演算した特徴量に基づいて、前記第1領域における第2画像データを生成すること
を特徴とする加工経路演算方法。
In a machining path calculation method for calculating a machining path for machining a workpiece based on a plurality of command points that indicate the position of the spindle,
Set an evaluation cross section that intersects the machining path,
Calculate the intersection of the set evaluation cross section and the machining path,
With respect to the calculated intersection, a feature amount indicating the degree of unevenness in the first region of the workpiece surface after processing is calculated,
Based on the calculated feature amount, first image data in the first region is generated,
When the designation of the second area located in the first area is received, the second image in the first area is calculated based on the calculated feature quantity according to the feature quantity indicating the degree of unevenness in the second area. A machining path calculation method characterized by generating data.
主軸の位置を指示する複数の指令点に基づいて、ワークを加工する為の加工経路を演算する加工経路演算装置で実行可能なコンピュータプログラムにおいて、
前記加工経路演算装置に、
前記加工経路に交差する評価断面を設定し、
設定した評価断面及び前記加工経路の交点を演算し、
演算した交点に関し、加工後のワーク表面の第1領域における凹凸度合を示す特徴量を演算し、
演算した特徴量に基づいて、前記第1領域における第1画像データを生成し、
前記第1領域内に位置する第2領域の指定を受け付けた場合に、前記第2領域における凹凸度合を示す特徴量に応じて、演算した特徴量に基づいて、前記第1領域における第2画像データを生成する
処理を実行させることを特徴とするコンピュータプログラム。
In a computer program that can be executed by a machining path computing device that computes a machining path for machining a workpiece based on a plurality of command points that indicate the position of the spindle,
In the machining path calculation device,
Set an evaluation cross section that intersects the machining path,
Calculate the intersection of the set evaluation cross section and the machining path,
With respect to the calculated intersection, a feature amount indicating the degree of unevenness in the first region of the workpiece surface after processing is calculated,
Based on the calculated feature amount, first image data in the first region is generated,
When the designation of the second area located in the first area is received, the second image in the first area is calculated based on the calculated feature quantity according to the feature quantity indicating the degree of unevenness in the second area. A computer program for executing a process of generating data.
JP2016210743A 2016-10-27 2016-10-27 Machining path calculation device, machining path calculation method and computer program Active JP6943556B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016210743A JP6943556B2 (en) 2016-10-27 2016-10-27 Machining path calculation device, machining path calculation method and computer program
CN201711031419.3A CN108008699B (en) 2016-10-27 2017-10-27 Machining path calculation device and machining path calculation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016210743A JP6943556B2 (en) 2016-10-27 2016-10-27 Machining path calculation device, machining path calculation method and computer program

Publications (2)

Publication Number Publication Date
JP2018073053A true JP2018073053A (en) 2018-05-10
JP6943556B2 JP6943556B2 (en) 2021-10-06

Family

ID=62051906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016210743A Active JP6943556B2 (en) 2016-10-27 2016-10-27 Machining path calculation device, machining path calculation method and computer program

Country Status (2)

Country Link
JP (1) JP6943556B2 (en)
CN (1) CN108008699B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2080774T3 (en) * 1990-09-25 1996-02-16 Heidenhain Gmbh Dr Johannes PROCEDURE TO DETERMINE THE PATH CONTOUR OF THE UTIL FOR NUMERICAL CONTROL MACHINES.
JP3408403B2 (en) * 1997-06-06 2003-05-19 ローランドディー.ジー.株式会社 Method of removing abnormal tool path in cutting
JP4708299B2 (en) * 2006-10-04 2011-06-22 三菱電機株式会社 Numerical controller
JP5163814B2 (en) * 2009-07-06 2013-03-13 三菱電機株式会社 Automatic programming apparatus and method
CN102906653B (en) * 2010-05-20 2016-01-13 三菱电机株式会社 Numerical control program generation method and device thereof
WO2012056839A1 (en) * 2010-10-26 2012-05-03 村田機械株式会社 Unit configuration type machine tool, transfer device, working equipment
CN103744349B (en) * 2013-10-08 2016-04-20 华中科技大学 A kind of Non intrusive method generation method of square end mill processing fillet surface
CN104128846B (en) * 2014-07-21 2016-04-20 华中科技大学 A kind of high-precision cutter bias On-line Measuring Method
CN104400092B (en) * 2014-11-28 2017-02-01 湖北三江航天险峰电子信息有限公司 Milling finish machining method for three-dimensional profile with composite inclined surface on outline
CN104875104B (en) * 2015-05-14 2018-06-12 常州大思世成机电科技有限公司 Wheel hub Irregular Boundary Surface polishing method based on CAD/CAM technologies
JP6672702B2 (en) * 2015-10-29 2020-03-25 ブラザー工業株式会社 Control device, machine tool, control method, and computer program

Also Published As

Publication number Publication date
CN108008699B (en) 2020-03-03
CN108008699A (en) 2018-05-08
JP6943556B2 (en) 2021-10-06

Similar Documents

Publication Publication Date Title
JP4347386B2 (en) Processing robot program creation device
JP5981143B2 (en) Robot tool control method
EP3863791B1 (en) System and method for weld path generation
JP4508252B2 (en) Robot teaching device
CN101657767B (en) Method and device for controlling robots for welding workpieces
JP6672702B2 (en) Control device, machine tool, control method, and computer program
JP5266373B2 (en) Numerical control device with tool trajectory display function
JP2003150219A (en) Simulation device for work machine
US20130338816A1 (en) Tool path display apparatus for displaying tool vector of machine tool
WO2015195461A2 (en) Beam tool pathing for 3d compound contours using machining path surfaces to maintain a single solid representation of objects
JP2007021634A (en) Automatic machining method for workpiece and automatic machining system for workpiece
JP6435962B2 (en) Control device, machine tool and computer program
JP5877866B2 (en) Tool path display device that displays the tool path
CN110936077A (en) Method for generating surfacing path of membrane type water-cooled wall
JP6735367B2 (en) Mold correction method
JP5221458B2 (en) Spray movement path generation method and spray movement path generation apparatus in spray robot
JP5291482B2 (en) Robot teaching program correction device
JP2017182479A (en) Processing route calculation device, processing route calculation method, and computer program
JP6943556B2 (en) Machining path calculation device, machining path calculation method and computer program
JP6582931B2 (en) Control device, machine tool, control method, and computer program
JP7061013B2 (en) Path correction method and control device for multi-axis machine
JP6029938B2 (en) Calibration method and three-dimensional processing apparatus
JP2017102594A (en) Control device, machining tool, control method and computer program
WO2022181500A1 (en) Simulation device using three-dimensional position information obtained from output from vision sensor
JP7227083B2 (en) Machining path display device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190524

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200526

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200727

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200804

C60 Trial request (containing other claim documents, opposition documents)

Free format text: JAPANESE INTERMEDIATE CODE: C60

Effective date: 20201029

C116 Written invitation by the chief administrative judge to file amendments

Free format text: JAPANESE INTERMEDIATE CODE: C116

Effective date: 20201117

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20201117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201112

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20210413

C13 Notice of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: C13

Effective date: 20210420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210601

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210618

C302 Record of communication

Free format text: JAPANESE INTERMEDIATE CODE: C302

Effective date: 20210624

C23 Notice of termination of proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C23

Effective date: 20210727

C03 Trial/appeal decision taken

Free format text: JAPANESE INTERMEDIATE CODE: C03

Effective date: 20210907

C30A Notification sent

Free format text: JAPANESE INTERMEDIATE CODE: C3012

Effective date: 20210907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210909

R150 Certificate of patent or registration of utility model

Ref document number: 6943556

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150