JPWO2016174716A1 - Numerical controller - Google Patents

Numerical controller Download PDF

Info

Publication number
JPWO2016174716A1
JPWO2016174716A1 JP2015560897A JP2015560897A JPWO2016174716A1 JP WO2016174716 A1 JPWO2016174716 A1 JP WO2016174716A1 JP 2015560897 A JP2015560897 A JP 2015560897A JP 2015560897 A JP2015560897 A JP 2015560897A JP WO2016174716 A1 JPWO2016174716 A1 JP WO2016174716A1
Authority
JP
Japan
Prior art keywords
command data
numerical control
data
unit
machining program
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
JP2015560897A
Other languages
Japanese (ja)
Other versions
JP5985087B1 (en
Inventor
晋 松原
晋 松原
弘樹 金子
弘樹 金子
入口 健二
健二 入口
宣行 高橋
宣行 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Application granted granted Critical
Publication of JP5985087B1 publication Critical patent/JP5985087B1/en
Publication of JPWO2016174716A1 publication Critical patent/JPWO2016174716A1/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/409Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using manual data input [MDI] or by using control panel, e.g. controlling functions with the panel; characterised by control panel details or by setting parameters
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Geometry (AREA)
  • Numerical Control (AREA)

Abstract

ワークの加工面に生じ得る加工痕の発生を低減するため、NC加工プログラム(10)を読み込むNC加工プログラム読み込み部(101)と、読み込んだNC加工プログラムから駆動軸に対する制御周期ごとの数値制御指令位置であるNC指令データを生成するNC指令データ生成部(104)と、NC指令データ生成部(104)により生成された駆動軸に対するNC指令データを補正するNC指令データ補正部(108)とを備える数値制御装置(100)を提供する。In order to reduce the occurrence of machining traces that may occur on the machined surface of the workpiece, an NC machining program reading unit (101) that reads the NC machining program (10), and a numerical control command for each control cycle for the drive axis from the read NC machining program An NC command data generation unit (104) that generates NC command data that is a position, and an NC command data correction unit (108) that corrects NC command data for the drive shaft generated by the NC command data generation unit (104). Provided is a numerical control device (100).

Description

本発明は工作機械を数値制御する数値制御装置に関する。   The present invention relates to a numerical control device that numerically controls a machine tool.

数値制御装置で加工を行うためには、加工物または加工工具を、予め設定された経路に移動させるための移動指令を記述した数値制御(Numerical Control:NC)加工プログラムが用いられる。NC加工プログラムはGコードおよびマクロ文の文字列で記述され、Gコードおよびマクロ文の文字列は、CAM(Computer Aided Manufacturing)ソフトウェアにより作成され、EIA(Electronic Industries Alliance)で定められたEIAフォーマット形式、またはISO(International Standard Organization)で定められたISOフォーマット形式に従って定義される。Gコードとは、位置決め、直線補間、円弧補間、および平面指定を行う際に、NC加工プログラムにおいて記述される指令コードである。作成されたNC加工プログラムは、実機を動作させる前に確認を行う必要があるが、NC加工プログラムのみを見て、NC加工プログラムの確認作業を行うことは困難である。このため、NC加工プログラムの確認を行う場合、NC加工プログラムに記述されている移動指令を工具経路に変換し、変換された工具経路の軌跡を、CRT(Cathode Ray Tube)装置または液晶モニタといった表示装置に表示させることが行われている。また、NC加工プログラムを動作させた場合、NC加工プログラムに記述されている移動指令、加工条件および機械構成に基づいて補間処理が実行され、補間処理後の指令軌跡が算出される。さらに算出されたNC指令データに沿って実機を動作させ、工具先端点の軌跡である実軌跡が検出装置によって検出される。これらNC指令データと工具先端点の実軌跡は、記憶装置に保存され、必要なときに記憶装置から呼び出され、加工処理評価のために工具軌跡表示装置で表示され、視覚的分析に利用されている。上記した「変換された工具経路」、「補間処理後の指令軌跡」および「工具先端点の実軌跡」は、当業者において、それぞれ「プログラム経路」、「NC指令データ」および「フィードバック(Feed Back:FB)位置データ」と称されることがあり、以下必要に応じてこれらの用語を使用した説明とする。   In order to perform machining with the numerical control device, a numerical control (NC) machining program describing a movement command for moving a workpiece or a machining tool to a preset path is used. NC machining program is described by character string of G code and macro sentence, and character string of G code and macro sentence is created by CAM (Computer Aided Manufacturing) software and is defined by EIA (Electronic Industries Alliance). Or in accordance with the ISO format defined by ISO (International Standard Organization). The G code is a command code described in the NC machining program when positioning, linear interpolation, circular interpolation, and plane designation are performed. The created NC machining program needs to be confirmed before operating the actual machine, but it is difficult to confirm the NC machining program by looking at only the NC machining program. Therefore, when confirming the NC machining program, the movement command described in the NC machining program is converted into a tool path, and the converted path of the tool path is displayed on a CRT (Cathode Ray Tube) device or a liquid crystal monitor. Displaying on the device is performed. Further, when the NC machining program is operated, interpolation processing is executed based on the movement command, machining conditions and machine configuration described in the NC machining program, and a command locus after the interpolation processing is calculated. Further, the actual machine is operated along the calculated NC command data, and the actual locus that is the locus of the tool tip point is detected by the detection device. These NC command data and the actual locus of the tool tip are stored in the storage device, recalled from the storage device when necessary, displayed on the tool locus display device for processing evaluation, and used for visual analysis. Yes. The above-mentioned “converted tool path”, “command trajectory after interpolation processing”, and “actual trajectory of tool tip point” are “program path”, “NC command data”, and “feedback”, respectively, by those skilled in the art. : FB) position data ", which will be described below using these terms as necessary.

特許文献1はNC加工プログラム評価方法に関するものであり、特許文献1では、NC加工プログラムから個々の移動命令を抽出して、工具により切削された後の加工イメージデータを演算導出し、この加工イメージデータと目標とするモデルイメージデータとの差が一定範囲内に収まるか否かを判別して、その結果をグラフィック表示し、一定範囲を逸脱した移動命令を特定して修正処理することが開示されている。   Patent Document 1 relates to an NC machining program evaluation method. In Patent Document 1, each movement command is extracted from the NC machining program, and machining image data after being cut by a tool is calculated and derived. Discriminating whether or not the difference between the data and the target model image data falls within a certain range, displaying the result in a graphic, and specifying and correcting the movement command that deviates from the certain range is disclosed. ing.

特開平7−64616号公報JP-A-7-64616

特許文献1に代表される従来技術では、工作機械にNC加工プログラムを入力し、NC加工プログラムに記述されている移動指令、加工条件および機械構成に基づいて補間処理が実行され、補間処理後の指令軌跡が算出され、指令軌跡に従い切削工具を移動させることによりワークの加工が行われる。ところが隣り合う指令軌跡の工具の速度または加速度が異なる場合、加工時の工具たわみがそろわず、ワークの加工面に加工痕が発生する。このようなワークの加工面における加工痕を抑制するためには、NC加工プログラムを検証分析する必要があり、非常に手間がかかるものであった。しかしながら特許文献1に代表される従来技術には、加工痕の発生を効率的に防ぐためにNC指令データを補正することについては開示されていない。   In the prior art represented by Patent Document 1, an NC machining program is input to a machine tool, and interpolation processing is executed based on the movement command, machining conditions, and machine configuration described in the NC machining program. The command trajectory is calculated, and the workpiece is machined by moving the cutting tool according to the command trajectory. However, when the speeds or accelerations of the adjacent command path tools are different, the tool deflection at the time of machining is not uniform, and machining traces are generated on the machining surface of the workpiece. In order to suppress such machining traces on the workpiece surface, it is necessary to verify and analyze the NC machining program, which is very time-consuming. However, the prior art represented by Patent Document 1 does not disclose correcting NC command data in order to efficiently prevent the generation of machining marks.

本発明は、上記に鑑みてなされたものであって、ワークの加工面に生じ得る加工痕の発生を低減することができる数値制御装置を得ることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to obtain a numerical control device that can reduce the occurrence of machining traces that may occur on the machining surface of a workpiece.

上述した課題を解決し、目的を達成するために、本発明の数値制御装置は、数値制御加工プログラムと前記工作機械の構成情報とに基づいて、複数の前記駆動軸の各々の制御周期毎に複数の前記駆動軸の各々の機械座標値を計算して、複数の前記駆動軸の各々の移動軌跡を示す数値制御指令データを生成する数値制御指令データ生成部と、前記数値制御指令データ生成部で時系列的に異なるタイミングで生成された複数の前記数値制御指令データを格納する数値制御指令データ格納部と、前記数値制御指令データ格納部に格納された3つ以上の前記数値制御指令データの各々の前記機械座標値を比較して、値の異なる前記機械座標値を含む第1の数値制御指令データを補正対象として、前記第1の数値制御指令データの機械座標値を、比較対象とした第1の数値制御指令データ以外の第2の数値制御指令データの機械座標値に近づける補正を行う数値指令データ補正部と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the numerical control device of the present invention is based on the numerical control machining program and the configuration information of the machine tool for each control cycle of the plurality of drive shafts. A numerical control command data generation unit that calculates a machine coordinate value of each of the plurality of drive shafts and generates numerical control command data indicating a movement locus of each of the plurality of drive shafts, and the numerical control command data generation unit A numerical control command data storage unit for storing a plurality of the numerical control command data generated at different timings in time series, and three or more numerical control command data stored in the numerical control command data storage unit The machine coordinate values of the first numerical control command data are compared with each other by comparing the machine coordinate values and using the first numerical control command data including the machine coordinate values having different values as a correction target. Characterized in that and a numerical command data correction unit that performs a the first numerical control command approach the machine coordinate values of the second numerical control command data other than the data correction.

本発明にかかる数値制御装置は、ワークの加工面に生じ得る加工痕の発生を低減することができるという効果を奏する。   The numerical control device according to the present invention has an effect that it is possible to reduce the occurrence of machining traces that may occur on the machining surface of a workpiece.

実施の形態1に係る数値制御装置と数値制御装置により制御される工作機械の構成を示す図The figure which shows the structure of the machine tool controlled by the numerical control apparatus which concerns on Embodiment 1, and a numerical control apparatus 実施の形態1に係る数値制御装置の全体動作を説明するためのフローチャートFlowchart for explaining the overall operation of the numerical control apparatus according to the first embodiment. 図2のST1003に示すNC指令データを補正する処理のフローチャートFlowchart of processing for correcting NC command data shown in ST1003 of FIG. 図3のST1102に示すNC指令データの位置を補正する処理のフローチャートFlowchart of processing for correcting the position of NC command data shown in ST1102 of FIG. 位置を補正する前の複数のNC指令データを示す第1の図1st figure which shows several NC command data before correcting a position 位置を補正した後の複数のNC指令データを示す第1の図1st figure which shows several NC command data after correcting a position 位置を補正する前の複数のNC指令データを示す第2の図The 2nd figure showing a plurality of NC command data before position correction 位置を補正した後の複数のNC指令データを示す第2の図2nd figure which shows several NC command data after correcting a position 図3のST1103に示すNC指令データの速度を補正する処理のフローチャートFlowchart of processing for correcting the speed of NC command data shown in ST1103 in FIG. 速度を補正する前の複数のNC指令データを示す図Diagram showing multiple NC command data before speed correction 速度を補正した後の複数のNC指令データを示す図Diagram showing multiple NC command data after speed correction 実施の形態2に係る数値制御装置と数値制御装置により制御される工作機械の構成を示す図The figure which shows the structure of the machine tool controlled by the numerical control apparatus which concerns on Embodiment 2, and a numerical control apparatus 実施の形態2に係る数値制御装置の全体動作を説明するためのフローチャートFlowchart for explaining the overall operation of the numerical control apparatus according to the second embodiment. 図13のST2005に示すNC指令データを補正する処理のフローチャートFlowchart of processing for correcting NC command data shown in ST2005 of FIG. CADデータにより表示されるワークの外観と、位置を補正する前のNC指令データにより駆動する駆動軸の移動軌跡を示す図The figure which shows the external appearance of the workpiece | work displayed by CAD data, and the movement locus | trajectory of the drive shaft driven by NC command data before correcting a position. CADデータにより表示されるワークの外観と、位置を補正した後のNC指令データにより駆動する駆動軸の移動軌跡を示す図The figure which shows the external appearance of the workpiece | work displayed by CAD data, and the movement locus | trajectory of the drive shaft driven by NC command data after correcting the position. 図16に示す移動軌跡の一部区間を直線補間した後の移動軌跡を示す図The figure which shows the movement locus | trajectory after carrying out the linear interpolation of the one part area of the movement locus | trajectory shown in FIG. 図17に示す移動軌跡の一部区間の速度を補間した後の移動軌跡を示す図The figure which shows the movement locus | trajectory after interpolating the speed of the one part area of the movement locus | trajectory shown in FIG. 図13のST2009に示す色属性を付加したNC指令データを表示する処理のフローチャートFIG. 13 is a flowchart of processing for displaying NC command data added with color attributes shown in ST2009. CADデータにより表示されるワークの外観と、色属性を付加したNC指令データにより駆動する駆動軸の移動軌跡を示す図The figure which shows the external appearance of the workpiece | work displayed with CAD data, and the movement locus | trajectory of the drive shaft driven by NC command data which added the color attribute 図13のST2010に示すFB位置データを表示する処理のフローチャートFlowchart of processing for displaying FB position data shown in ST2010 of FIG. 実施の形態2の数値制御装置においてNC加工プログラムを工作機械の表示部の編集画面に表示させる処理のフローチャートFlowchart of processing for displaying NC machining program on edit screen of display unit of machine tool in numerical control device of embodiment 2

以下に、本発明の実施の形態にかかる数値制御装置を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Hereinafter, a numerical control device according to an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態1.
図1は実施の形態1に係る数値制御装置と数値制御装置により制御される工作機械の構成を示す図である。数値制御装置100は、NC加工プログラム10を読み込むNC加工プログラム読み込み部101と、読み込まれたNC加工プログラム10を格納するNC加工プログラム格納部102と、NC加工プログラム格納部102に格納されたNC加工プログラムから表示データを生成するNC加工プログラム表示処理部103と、数値制御加工プログラムと工作機械200の構成情報とに基づいて複数の駆動軸の各々の制御周期毎に複数の駆動軸の各々の機械座標値を計算して、複数の駆動軸の各々の移動軌跡を示すNC指令データを生成するNC指令データ生成部104と、NC指令データ生成部104で時系列的に異なるタイミングで生成された複数のNC指令データを格納するNC指令データ格納部105と、NC指令データ格納部105に格納されたNC指令データから複数の駆動軸の各々の機械座標を算出し、複数の駆動軸の各々の移動軌跡を工作機械200の表示部202に表示するNC指令データ表示処理部106と、NC指令データ格納部105に格納されたNC指令データを分析し、分析結果を付加したNC指令データをNC指令データ格納部105に格納させるNC指令データ分析部107と、NC指令データ格納部105に格納された3つ以上のNC指令データの各々の機械座標値を比較して、値の異なる機械座標値を含む第1のNC指令データを補正対象として、第1のNC指令データの機械座標値を、比較対象とした第1のNC指令データ以外の第2のNC指令データの機械座標値に近づける補正を行い、補正したNC指令データをNC指令データ格納部105に格納するNC指令データ補正部108と、工作機械200のFB位置データ検出器209で検出された駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208の各々の実位置データを取得し、実位置データに基づいてFB位置データを算出するFB位置データ算出部110と、算出されたFb位置データを格納するFB位置データ格納部111と、FB位置データ格納部111に格納されたFB位置データを分析し、分析結果を付加したFB位置データをFB位置データ格納部111に格納させるFB位置データ分析部113と、分析結果を付加したFB位置データをFB位置データ格納部111から読み出して表示データを生成するFB位置データ表示処理部112と、コンピュータ支援設計(Computer Aided Design:CAD)データ20を読み込むCADデータ読み込み部114と、読み込まれたCADデータ20を格納するCADデータ格納部115と、CADデータ格納部115に格納されたCADデータ20を工作機械200の表示部202に表示するCADデータ表示処理部116とを備える。
Embodiment 1 FIG.
FIG. 1 is a diagram illustrating a configuration of a numerical control device according to Embodiment 1 and a machine tool controlled by the numerical control device. The numerical control apparatus 100 includes an NC machining program reading unit 101 that reads an NC machining program 10, an NC machining program storage unit 102 that stores the read NC machining program 10, and an NC machining stored in the NC machining program storage unit 102. NC machining program display processing unit 103 that generates display data from the program, each machine of the plurality of drive shafts for each control cycle of the plurality of drive axes based on the numerically controlled machining program and the configuration information of the machine tool 200 An NC command data generation unit 104 that calculates coordinate values and generates NC command data indicating the movement trajectory of each of a plurality of drive axes, and a plurality of times generated at different timings in time series by the NC command data generation unit 104 NC command data storage unit 105 for storing the NC command data and NC command data storage unit 105 NC command data display processing unit 106 that calculates the machine coordinates of each of the plurality of drive axes from the stored NC command data, and displays the movement locus of each of the plurality of drive axes on the display unit 202 of the machine tool 200; The NC command data stored in the command data storage unit 105 is analyzed, and the NC command data added with the analysis result is stored in the NC command data storage unit 105, and stored in the NC command data storage unit 105. The machine coordinate values of each of the three or more NC command data are compared, and the first NC command data including the machine coordinate values having different values is used as the correction target, and the machine coordinate value of the first NC command data is set as the correction target. Then, correction is performed so as to approach the machine coordinate value of the second NC command data other than the first NC command data to be compared, and the corrected NC command data is stored in the NC command data storage unit 1. 5, the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 detected by the FB position data detector 209 of the machine tool 200. FB position data calculation unit 110 that acquires actual position data of each of the above, calculates FB position data based on the actual position data, FB position data storage unit 111 that stores the calculated Fb position data, and FB position data The FB position data stored in the storage unit 111 is analyzed, the FB position data analysis unit 113 that stores the FB position data to which the analysis result is added in the FB position data storage unit 111, and the FB position data to which the analysis result is added is FB. An FB position data display processing unit 112 that reads display data from the position data storage unit 111 and generates display data; and computer-aided design (Co a CAD data reading unit 114 for reading the computer aided design (CAD) data 20, a CAD data storage unit 115 for storing the read CAD data 20, and the CAD data 20 stored in the CAD data storage unit 115 of the machine tool 200. A CAD data display processing unit 116 to be displayed on the display unit 202;

NC加工プログラム10はGコードおよびマクロ文の文字列で記述されたプログラムであり、CAMソフトウェアにより作成され、EIAフォーマット形式またはISOフォーマット形式に従って定義される。NC加工プログラム10には、加工物または加工工具を予め設定された経路に移動させるための移動指令と、工作機械200に対する補助動作指令と、加工条件の設定値とが記述されている。NC指令データは、予め設定された制御周期毎のNC指令位置またはNC指令位置の集合体を意味する。   The NC machining program 10 is a program described by a character string of a G code and a macro sentence, is created by CAM software, and is defined according to an EIA format format or an ISO format format. The NC machining program 10 describes a movement command for moving a workpiece or a machining tool to a preset route, an auxiliary operation command for the machine tool 200, and a set value of machining conditions. The NC command data means an NC command position or a set of NC command positions for each preset control cycle.

数値制御装置100に接続される工作機械200は、作業者と工作機械200との間のインタフェース部であると共に、数値制御装置100と工作機械200との間のインタフェース部である対話操作処理部201と、CRT装置または液晶モニタといった表示部202と、作業者が入力した指示情報を数値制御装置100に送信するための指示入力部203と、ワークを加工する複数の駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207、駆動C軸208の各々の実位置データを検出するFB位置データ検出器209とを備える。工作機械200における駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208は、各駆動軸における変位量を検出するセンサと、センサで検出された変位量を実位置データとして出力するデータ処理部とを有するものとする。対話操作処理部201は、数値制御装置100からの操作処理を受け付けて、操作処理内容を表示部202に表示する。また対話操作処理部201は、作業者が指示入力部203を介して入力した指示情報を数値制御装置100に送信する。   The machine tool 200 connected to the numerical control device 100 is an interface unit between the operator and the machine tool 200, and an interactive operation processing unit 201 which is an interface unit between the numerical control device 100 and the machine tool 200. A display unit 202 such as a CRT device or a liquid crystal monitor, an instruction input unit 203 for transmitting instruction information input by an operator to the numerical control device 100, a plurality of drive X axes 204 and a drive Y axis for machining a workpiece 205, an FB position data detector 209 that detects actual position data of each of the drive Z axis 206, the drive B axis 207, and the drive C axis 208. The drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 in the machine tool 200 are sensors that detect the displacement amount of each drive axis, and the displacement amount detected by the sensor. A data processing unit that outputs the actual position data. The dialogue operation processing unit 201 receives an operation process from the numerical control apparatus 100 and displays the operation process content on the display unit 202. In addition, the dialogue operation processing unit 201 transmits instruction information input by the operator via the instruction input unit 203 to the numerical control device 100.

次に数値制御装置100における動作を図1に示した各構成部に関連づけて説明する。   Next, the operation of the numerical control apparatus 100 will be described in association with each component shown in FIG.

NC加工プログラム読み込み部101で読み込まれたNC加工プログラム10はNC加工プログラム格納部102に格納され、NC指令データ生成部104では、NC加工プログラム格納部102に格納されたNC加工プログラムからNC指令データが生成され、生成されたNC指令データがNC指令データ格納部105に格納される。なおNC指令データ生成部104では複数の駆動軸の各々に対応するNC指令データが生成される。NC指令データ格納部105に格納されたNC指令データは工作機械200に送信され、NC指令データを受信した工作機械200では、NC指令データに応じて駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208が駆動される。工作機械200が複数の駆動軸の各々を駆動することにより、工具および被加工物の少なくとも一方の位置と姿勢が制御される。工作機械200の動作中にFB位置データ検出器209では、駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208の実位置データが検出され、検出された実位置データが数値制御装置100に送信される。FB位置データ算出部110は、FB位置データ検出器209で検出された実位置データを取得してFB位置データを算出し、算出したFB位置データをFB位置データ格納部111に格納する。   The NC machining program 10 read by the NC machining program reading unit 101 is stored in the NC machining program storage unit 102, and the NC command data generation unit 104 receives NC command data from the NC machining program stored in the NC machining program storage unit 102. Is generated, and the generated NC command data is stored in the NC command data storage unit 105. The NC command data generation unit 104 generates NC command data corresponding to each of the plurality of drive shafts. The NC command data stored in the NC command data storage unit 105 is transmitted to the machine tool 200. In the machine tool 200 that has received the NC command data, the drive X axis 204, the drive Y axis 205, and the drive Z are in accordance with the NC command data. The shaft 206, the drive B shaft 207, and the drive C shaft 208 are driven. When the machine tool 200 drives each of the plurality of drive shafts, the position and posture of at least one of the tool and the workpiece are controlled. During operation of the machine tool 200, the FB position data detector 209 detects and detects the actual position data of the drive X axis 204, drive Y axis 205, drive Z axis 206, drive B axis 207, and drive C axis 208. Actual position data is transmitted to the numerical controller 100. The FB position data calculation unit 110 acquires the actual position data detected by the FB position data detector 209, calculates the FB position data, and stores the calculated FB position data in the FB position data storage unit 111.

NC加工プログラム表示処理部103では、NC加工プログラム格納部102に格納されたNC加工プログラムにより表示データが生成され、生成された表示データは工作機械200に送られ、工作機械200の表示部202に表示される。NC指令データ表示処理部106では、NC指令データ格納部105に格納されているNC指令データにより表示データが生成され、生成された表示データは工作機械200に送られ、工作機械200の表示部202に表示される。FB位置データ表示処理部112では、分析結果を付加したFB位置データをFB位置データ格納部111から読み出して表示データが生成され、生成されたFB位置データは工作機械200に送られ、工作機械200の表示部202に表示される。CADデータ表示処理部116では、CADデータ格納部115に格納されたCADデータを移動、回転、拡大および縮小した表示データを生成する。生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される。   In the NC machining program display processing unit 103, display data is generated by the NC machining program stored in the NC machining program storage unit 102, and the generated display data is sent to the machine tool 200 and is displayed on the display unit 202 of the machine tool 200. Is displayed. In the NC command data display processing unit 106, display data is generated based on the NC command data stored in the NC command data storage unit 105, and the generated display data is sent to the machine tool 200, and the display unit 202 of the machine tool 200 is displayed. Is displayed. In the FB position data display processing unit 112, the FB position data to which the analysis result is added is read from the FB position data storage unit 111 to generate display data. The generated FB position data is sent to the machine tool 200, and the machine tool 200 Are displayed on the display unit 202. The CAD data display processing unit 116 generates display data obtained by moving, rotating, enlarging and reducing the CAD data stored in the CAD data storage unit 115. The generated display data is sent to the machine tool 200 and displayed on the display unit 202 of the machine tool 200.

図2は実施の形態1に係る数値制御装置の全体動作を説明するためのフローチャートである。図2に示すST1001からST1008までの処理は以下に示す3つのサブフローに区分される。
(1)NC指令データの生成および補正フロー(ST1001,ST1002,ST1003)。
(2)FB位置データの生成および分析フロー(ST1004,ST1005)。
(3)NCプログラム、NC指令データおよびFB位置データの表示フロー(ST1006,ST1007,ST1008)。
FIG. 2 is a flowchart for explaining the overall operation of the numerical control apparatus according to the first embodiment. The processing from ST1001 to ST1008 shown in FIG. 2 is divided into the following three subflows.
(1) NC command data generation and correction flow (ST1001, ST1002, ST1003).
(2) FB position data generation and analysis flow (ST1004, ST1005).
(3) NC program, NC command data, and FB position data display flow (ST1006, ST1007, ST1008).

以下では上記の(1)から(3)までの処理フローを図1に示した機能ブロックに対応づけて説明する。   Hereinafter, the processing flow from (1) to (3) will be described in association with the functional blocks shown in FIG.


(NC指令データの生成および補正フロー)
NC加工プログラム読み込み部101は、NC加工プログラム10を読み込み、NC加工プログラム格納部102に格納する(ST1001)。NC指令データ生成部104は、NC加工プログラム格納部102に格納したNC加工プログラムを解釈し、プログラム指令位置を算出する。またNC指令データ生成部104は、算出したプログラム指令位置と工作機械200の構成情報である機械構成とに基づいてNC指令座標を生成し、各駆動軸の位置座標を指令するNC指令データを生成する。NC指令データは工作機械200の補間時間毎に生成され、生成されたNC指令データはNC指令データ格納部105に格納される(ST1002)。NC指令データ補正部108はNC指令データ格納部105に格納したNC指令データを補正する(ST1003)。補正されたNC指令データはNC指令データ格納部105に格納される。

(NC command data generation and correction flow)
NC machining program reading unit 101 reads NC machining program 10 and stores it in NC machining program storage unit 102 (ST1001). The NC command data generation unit 104 interprets the NC machining program stored in the NC machining program storage unit 102 and calculates a program command position. The NC command data generation unit 104 generates NC command coordinates based on the calculated program command position and the machine configuration that is the configuration information of the machine tool 200, and generates NC command data that commands the position coordinates of each drive axis. To do. The NC command data is generated every interpolation time of the machine tool 200, and the generated NC command data is stored in the NC command data storage unit 105 (ST1002). NC command data correction unit 108 corrects the NC command data stored in NC command data storage unit 105 (ST1003). The corrected NC command data is stored in the NC command data storage unit 105.

(FB位置データの生成および分析フロー)
NC指令データ生成部104が生成したNC指令データは工作機械200に送られ、工作機械200は、駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208を駆動する(ST1004)。このときFB位置データ算出部110は、FB位置データ検出器209が検出した駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208における実位置データに基づいてFB位置データを算出し、算出したFB位置データをFB位置データ格納部111に格納する(ST1005)。
(FB position data generation and analysis flow)
The NC command data generated by the NC command data generation unit 104 is sent to the machine tool 200. The machine tool 200 includes a drive X axis 204, a drive Y axis 205, a drive Z axis 206, a drive B axis 207, and a drive C axis 208. Drive (ST1004). At this time, the FB position data calculation unit 110 is based on the actual position data on the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 detected by the FB position data detector 209. FB position data is calculated, and the calculated FB position data is stored in the FB position data storage unit 111 (ST1005).

(NCプログラム、NC指令データおよびFB位置データの表示フロー)
NC加工プログラム表示処理部103は、NC加工プログラム格納部102に格納したNC加工プログラムを解釈し、プログラム経路を工作機械200の表示部202に表示する(ST1006)。NC指令データ表示処理部106は、NC指令データ格納部105に格納したNC指令データを解釈し、NC指令データの位置座標を算出し、NC指令データによる経路であるNC指令データ経路を工作機械200の表示部202に表示する(ST1007)。FB位置データ表示処理部112は、FB位置データ格納部111に格納したFB位置データを解釈し、FB位置データの位置座標を算出し、FB位置データによる経路であるFB位置データ経路を工作機械200の表示部202に表示する(ST1008)。
(Display flow of NC program, NC command data and FB position data)
NC machining program display processing unit 103 interprets the NC machining program stored in NC machining program storage unit 102, and displays the program path on display unit 202 of machine tool 200 (ST1006). The NC command data display processing unit 106 interprets the NC command data stored in the NC command data storage unit 105, calculates the position coordinates of the NC command data, and sets the NC command data path, which is a path based on the NC command data, to the machine tool 200. Is displayed on the display unit 202 (ST1007). The FB position data display processing unit 112 interprets the FB position data stored in the FB position data storage unit 111, calculates the position coordinates of the FB position data, and sets the FB position data path, which is a path based on the FB position data, to the machine tool 200. Is displayed on the display unit 202 (ST1008).

図3は図2のST1003に示すNC指令データを補正する処理のフローチャートである。NC指令データ補正部108は、NC指令データ格納部105に格納されているNC指令データから、補正対象となるNC指令データに隣接するNC指令データを探索する(ST1101)。NC指令データの探索方法を具体例で説明する。NC指令データ格納部105には、NC指令データ生成部104で時系列的に異なるタイミングで生成された複数のNC指令データが格納されている。NC指令データ補正部108は、これらのNC指令データ格納部105に格納された複数のNC指令データの中から、例えば時系列的に連続した3つNC指令データを選択し、選択した各々のNC指令データの機械座標値を比較し、値の異なる機械座標値を含む第1のNC指令データを補正対象とする。また比較対象とした第1のNC指令データ以外の第2のNC指令データを、第1のNC指令データに隣接するNC指令データとする。第1のNC指令データと第2のNC指令データの具体例は後述する。なお上記の例ではNC指令データ格納部105から選択されるNC指令データの数を3つと仮定したが、選択されるNC指令データの数は3つに限定されるものではなく、3つ以上でもよい。NC指令データ補正部108は、ST1101により取得した隣接するNC指令データと補正対象のNC指令データとを比較し、補正対象のNC指令データの位置を補正する(ST1102)。またNC指令データ補正部108は、ST1102で位置を補正したNC指令データと隣接するNC指令データとを比較し、補正対象のNC指令データの速度を補正する(ST1103)。さらにNC指令データ補正部108は、ST1103で位置を補正した隣接するNC指令データをNC指令データ格納部105に格納する(ST1104)。   FIG. 3 is a flowchart of processing for correcting the NC command data shown in ST1003 of FIG. NC command data correction unit 108 searches for NC command data adjacent to the NC command data to be corrected from the NC command data stored in NC command data storage unit 105 (ST1101). A specific example of the NC command data search method will be described. The NC command data storage unit 105 stores a plurality of NC command data generated by the NC command data generation unit 104 at different timings in time series. The NC command data correction unit 108 selects, for example, three NC command data continuous in time series from the plurality of NC command data stored in the NC command data storage unit 105, and selects each selected NC command data. The machine coordinate values of the command data are compared, and the first NC command data including machine coordinate values having different values is set as a correction target. Further, the second NC command data other than the first NC command data to be compared is set as NC command data adjacent to the first NC command data. Specific examples of the first NC command data and the second NC command data will be described later. In the above example, it is assumed that the number of NC command data selected from the NC command data storage unit 105 is three. However, the number of selected NC command data is not limited to three, and may be three or more. Good. The NC command data correcting unit 108 compares the adjacent NC command data acquired in ST1101 with the NC command data to be corrected, and corrects the position of the NC command data to be corrected (ST1102). Further, NC command data correcting section 108 compares the NC command data whose position has been corrected in ST1102 with the adjacent NC command data, and corrects the speed of the NC command data to be corrected (ST1103). Further, NC command data correcting section 108 stores adjacent NC command data whose position has been corrected in ST1103 in NC command data storage section 105 (ST1104).

図4は図3のST1102に示すNC指令データの位置を補正する処理のフローチャートである。NC指令データ補正部108は、補正対象のNC指令データの接線ベクトルを算出する(ST1201)。その際、補正対象となるNC指令データのみではなく、補正対象のNC指令データの前後数点の接線ベクトルも算出する。次にNC指令データ補正部108は、ST1101で取得した隣接するNC指令データの接線ベクトルを算出する(ST1202)。次にNC指令データ補正部108は、ST1201で算出した補正対象のNC指令データの接線ベクトルの連続性とST1202で算出した隣接するNC指令データの接線ベクトルの連続性を比較し、補正対象のNC指令データの接線ベクトルの連続性が異なるか否かが判定され、連続性が異なると判定したNC指令データの位置を補正する(ST1203)。   FIG. 4 is a flowchart of processing for correcting the position of the NC command data shown in ST1102 of FIG. NC command data correction section 108 calculates a tangent vector of NC command data to be corrected (ST1201). At this time, not only NC command data to be corrected but also tangent vectors at several points before and after the NC command data to be corrected are calculated. Next, NC command data correction section 108 calculates a tangent vector of adjacent NC command data acquired in ST1101 (ST1202). Next, NC command data correction section 108 compares the continuity of the tangent vector of the NC command data to be corrected calculated in ST1201 with the continuity of the tangent vector of the adjacent NC command data calculated in ST1202, and corrects the NC to be corrected. It is determined whether or not the continuity of the tangent vectors of the command data is different, and the position of the NC command data determined to have different continuity is corrected (ST1203).

図5は位置を補正する前の複数のNC指令データを示す第1の図である。図5には、駆動軸の移動軌跡を示すNC指令データが7つ示され、7つのNC指令データの内、最も上側のNC指令データは時系列的に最も古いタイミングで生成されたデータであり、最も下側のNC指令データは時系列的に最も新しいタイミングで生成されたデータである。矢印はNC指令データ補正部108で算出された接線ベクトルを表す。図5では各々のNC指令データは、制御周期毎のNC指令位置の集合体を意味する。図5では上から6つ目のNC指令データaが補正対象とされ、前述した第1のNC指令データに相当する。補正対象のNC指令データaの前後4点の接線ベクトルの座標は(1,0,0)、(1,0,−1)、(1,0,1)となっている。これに対して補正対象のNC指令データaに隣接するNC指令データの接線ベクトルは(1,0,0)、(1,0,0)、(1,0,0)となっている。図5では、上から5つ目のNC指令データと上から7つ目のNC指令データが隣接するNC指令データであり、これらのNC指令データは前述した第2のNC指令データに相当する。   FIG. 5 is a first diagram showing a plurality of NC command data before the position is corrected. FIG. 5 shows seven NC command data indicating the movement trajectory of the drive shaft, and the uppermost NC command data among the seven NC command data is data generated at the oldest timing in time series. The lowermost NC command data is data generated at the newest timing in time series. An arrow represents a tangent vector calculated by the NC command data correction unit 108. In FIG. 5, each NC command data means a collection of NC command positions for each control cycle. In FIG. 5, the sixth NC command data a from the top is the correction target, and corresponds to the first NC command data described above. The coordinates of the tangent vectors at the four points before and after the NC command data a to be corrected are (1, 0, 0), (1, 0, −1), and (1, 0, 1). On the other hand, the tangent vectors of the NC command data adjacent to the NC command data a to be corrected are (1, 0, 0), (1, 0, 0), (1, 0, 0). In FIG. 5, the fifth NC command data from the top and the seventh NC command data from the top are adjacent NC command data, and these NC command data correspond to the second NC command data described above.

NC指令データ補正部108は、例えば補正対象のNC指令データaの接線ベクトルと隣接する2つのNC指令データの接線ベクトルとの差分ベクトル量から、補正対象のNC指令データaの接線ベクトルの連続性が、隣接する複数のNC指令データの接線ベクトルの連続性と異なると判定される。またNC指令データ補正部108は、補正対象のNC指令データaの加加速度ベクトルの変化量が規定値より小さい場合、補正対象のNC指令データaの接線ベクトルの連続性が、隣接するNC指令データの接線ベクトルの連続性と同じであると判定し、補正対象のNC指令データaの加加速度ベクトルの変化量が規定値より大きい場合、補正対象のNC指令データaの接線ベクトルの連続性が、隣接するNC指令データの接線ベクトルの連続性と異なると判定する。   For example, the NC command data correction unit 108 determines the continuity of the tangent vector of the NC command data a to be corrected from the difference vector amount between the tangent vector of the NC command data a to be corrected and the tangent vectors of two adjacent NC command data. Is determined to be different from the continuity of tangent vectors of a plurality of adjacent NC command data. Further, the NC command data correction unit 108 determines that the continuity of the tangent vector of the NC command data a to be corrected is adjacent NC command data when the change amount of the jerk vector of the NC command data a to be corrected is smaller than the specified value. If the amount of change in the jerk vector of the NC command data a to be corrected is larger than the specified value, the continuity of the tangent vector of the NC command data a to be corrected is It is determined that the continuity of tangent vectors of adjacent NC command data is different.

図6は位置を補正した後の複数のNC指令データを示す第1の図である。図6には図5と同様に7つのNC指令データが示される。NC指令データ補正部108は、補正対象のNC指令データaの位置を移動することにより、隣接するNC指令データの接線ベクトルと同じになるように位置を補正し、補正対象のNC指令データaの前後4点の接線ベクトルが(1,0,0)、(1,0,0)、(1,0,0)となるようにする。すなわちNC指令データ補正部108は、補正対象のNC指令データaの前の接線ベクトル(1,0,0)の方向にNC指令データ軌跡を生成し、NC指令データが軌跡上に位置するように補正対象のNC指令データaを移動する。さらにNC指令データ補正部108は、NC補間距離が隣接するNC指令データと同じになるように、NC指令データ軌跡に沿って、NC指令データを移動させる。   FIG. 6 is a first diagram showing a plurality of NC command data after the position is corrected. FIG. 6 shows seven NC command data as in FIG. The NC command data correction unit 108 corrects the position so as to be the same as the tangent vector of the adjacent NC command data by moving the position of the NC command data a to be corrected. The tangent vectors at the front and rear four points are set to (1, 0, 0), (1, 0, 0), (1, 0, 0). That is, the NC command data correction unit 108 generates an NC command data trajectory in the direction of the tangent vector (1, 0, 0) before the NC command data a to be corrected so that the NC command data is positioned on the trajectory. The NC command data a to be corrected is moved. Further, the NC command data correction unit 108 moves the NC command data along the NC command data trajectory so that the NC interpolation distance is the same as the adjacent NC command data.

図7は位置を補正する前の複数のNC指令データを示す第2の図である。図7には、駆動軸の移動軌跡を示すNC指令データが6つ示され、6つのNC指令データの内、最も上側のNC指令データは時系列的に最も古いタイミングで生成されたデータであり、最も下側のNC指令データは時系列的に最も新しいタイミングで生成されたデータである。矢印はNC指令データ補正部108で算出された接線ベクトルを表す。図7では上から5つ目のNC指令データaが補正対象とされ、前述した第1のNC指令データに相当する。補正対象のNC指令データaの前後4点の接線ベクトルの座標は(1,0,0)、(1,0,−1)、(1,0,−1)となっている。これに対して補正対象のNC指令データaに隣接するNC指令データの接線ベクトルは(1,0,0)、(1,0,−1)、(1,0,0)となっている。図7では、上から4つ目のNC指令データと上から6つ目のNC指令データが隣接するNC指令データであり、これらのNC指令データは前述した第2のNC指令データに相当する。NC指令データ補正部108では、図5で説明した連続性の判定と同様に、補正対象のNC指令データaの接線ベクトルの連続性が、隣接するNC指令データの接線ベクトルの連続性と同じであるか否かを判定する。   FIG. 7 is a second diagram showing a plurality of NC command data before the position is corrected. FIG. 7 shows six NC command data indicating the movement trajectory of the drive axis. Among the six NC command data, the uppermost NC command data is data generated at the oldest timing in time series. The lowermost NC command data is data generated at the newest timing in time series. An arrow represents a tangent vector calculated by the NC command data correction unit 108. In FIG. 7, the fifth NC command data a from the top is a correction target and corresponds to the first NC command data described above. The coordinates of the tangent vectors at the four points before and after the NC command data a to be corrected are (1, 0, 0), (1, 0, −1), and (1, 0, −1). On the other hand, the tangent vectors of the NC command data adjacent to the NC command data a to be corrected are (1, 0, 0), (1, 0, −1), and (1, 0, 0). In FIG. 7, the fourth NC command data from the top and the sixth NC command data from the top are adjacent NC command data, and these NC command data correspond to the second NC command data described above. In the NC command data correction unit 108, as in the continuity determination described with reference to FIG. 5, the continuity of the tangent vector of the NC command data a to be corrected is the same as the continuity of the tangent vector of the adjacent NC command data. Determine whether there is.

図8は位置を補正した後の複数のNC指令データを示す第2の図である。図8には図7と同様に6つのNC指令データが示される。NC指令データ補正部108は、図6で説明した補正処理と同様に、補正対象のNC指令データaの位置を移動することにより、隣接するNC指令データの接線ベクトルと同じになるように位置を補正する。これにより補正対象のNC指令データaの前の接線ベクトルが(1,0,0)の方向に移動する、またNC指令データ補正部108は、NC指令データが軌跡上に位置するように補正対象のNC指令データaを移動する。   FIG. 8 is a second diagram showing a plurality of NC command data after the position is corrected. FIG. 8 shows six NC command data as in FIG. The NC command data correction unit 108 moves the position of the NC command data a to be corrected by the same manner as the correction processing described with reference to FIG. to correct. As a result, the tangent vector before the NC command data a to be corrected moves in the direction of (1, 0, 0), and the NC command data correction unit 108 corrects the NC command data so that the NC command data is positioned on the locus. NC command data a is moved.

図9は図3のST1103に示すNC指令データの速度を補正する処理のフローチャートである。NC指令データ補正部108は、補正対象のNC指令データaの速度を算出し(ST1301)、補正対象のNC指令データaに隣接するNC指令データの速度を算出し(ST1302)、補正対象のNC指令データaの速度が隣接するNC指令データの速度と異なるか否かを判定し、補正対象のNC指令データaの速度が隣接するNC指令データの速度と異なる場合にはNC指令データの速度を補正する(ST1303)。   FIG. 9 is a flowchart of processing for correcting the speed of the NC command data shown in ST1103 of FIG. The NC command data correction unit 108 calculates the speed of the NC command data a to be corrected (ST1301), calculates the speed of the NC command data adjacent to the NC command data a to be corrected (ST1302), and corrects the NC to be corrected. It is determined whether the speed of the command data a is different from the speed of the adjacent NC command data. If the speed of the NC command data a to be corrected is different from the speed of the adjacent NC command data, the speed of the NC command data is set. Correction is made (ST1303).

図10は速度を補正する前の複数のNC指令データを示す図である。図10には、駆動軸の移動軌跡を示すNC指令データが6つ示され、6つのNC指令データの内、最も上側のNC指令データは時系列的に最も古いタイミングで生成されたデータであり、最も下側のNC指令データは時系列的に最も新しいタイミングで生成されたデータである。矢印はNC指令データ補正部108で算出された接線ベクトルを表す。図10では上から5つ目のNC指令データaが補正対象とされ、前述した第1のNC指令データに相当する。また上から4つ目のNC指令データと上から6つ目のNC指令データが隣接するNC指令データであり、これらのNC指令データは前述した第2のNC指令データに相当する。補正対象のNC指令データaの前後3点の速度は、前後の点との距離との相関性があるため、前後の点との距離から求めることができる。補正対象のNC指令データaにおいて、符号Aで示す接線ベクトルの距離は0.5であり、符号Bで示す接線ベクトル距離は0.5である。隣接するNC指令データの接線ベクトルは、符号A1で示す接線ベクトルの距離は0.2であり、符号B1で示す接線ベクトル距離は0.2である。NC指令データ補正部108は、補正対象のNC指令データaの接線ベクトルの距離が隣接するNC指令データaの接線ベクトルの距離と異なるか否かを判定する。   FIG. 10 is a diagram showing a plurality of NC command data before the speed is corrected. FIG. 10 shows six NC command data indicating the movement trajectory of the drive axis. Among the six NC command data, the uppermost NC command data is data generated at the oldest timing in time series. The lowermost NC command data is data generated at the newest timing in time series. An arrow represents a tangent vector calculated by the NC command data correction unit 108. In FIG. 10, the fifth NC command data a from the top is a correction target and corresponds to the first NC command data described above. The fourth NC command data from the top and the sixth NC command data from the top are adjacent NC command data, and these NC command data correspond to the second NC command data described above. The speeds at the three points before and after the NC command data a to be corrected are correlated with the distances with the preceding and following points, and therefore can be obtained from the distances with the preceding and following points. In the NC command data a to be corrected, the distance of the tangent vector indicated by symbol A is 0.5, and the distance of the tangent vector indicated by symbol B is 0.5. The tangent vector of the adjacent NC command data has a tangent vector distance of 0.2 and a tangent vector distance of 0.2. The NC command data correction unit 108 determines whether the distance of the tangent vector of the NC command data a to be corrected is different from the distance of the tangent vector of the adjacent NC command data a.

図11は速度を補正した後の複数のNC指令データを示す図である。図11には図10と同様に6つのNC指令データが示される。NC指令データ補正部108は、補正対象のNC指令データに対して、符号Aで示す接線ベクトルの距離が0.2になるようにNC指令データを追加する。同様に、NC指令データ補正部108は、符号Bで示す接線ベクトルの距離が0.2になるようにNC指令データを追加する。NC指令データを追加方法としては、例えば補正対象のNC指令データの前後のNC指令データを直線で補間したNC指令データ軌跡を生成し、軌跡上に沿ってNC指令データを追加する方法が考えられる。   FIG. 11 is a diagram showing a plurality of NC command data after the speed is corrected. FIG. 11 shows six NC command data as in FIG. The NC command data correction unit 108 adds NC command data to the NC command data to be corrected so that the distance of the tangent vector indicated by the symbol A becomes 0.2. Similarly, the NC command data correction unit 108 adds NC command data so that the distance of the tangent vector indicated by the symbol B becomes 0.2. As a method of adding NC command data, for example, a method of generating an NC command data locus obtained by linearly interpolating NC command data before and after the NC command data to be corrected, and adding the NC command data along the locus can be considered. .

以上説明したように実施の形態1に係る数値制御装置100は、作業者が選択した任意範囲のNC加工プログラムを読み込んだ後、NC加工プログラムからNC指令位置であるNC指令データを生成し、生成されたNC指令データを用いて、隣接するNC指令データからNC指令データの位置と速度を補正する。これによりリアルタイムでNC指令データを補正することができ、ワークの加工残し、削り過ぎ、またはコーナ削り過ぎが抑制され、ワークの加工面に発生する加工痕の発生を低減することができる。   As described above, the numerical controller 100 according to the first embodiment reads the NC machining program in an arbitrary range selected by the operator, generates NC command data that is the NC command position from the NC machining program, and generates the NC command data. The position and speed of the NC command data are corrected from the adjacent NC command data using the NC command data. As a result, the NC command data can be corrected in real time, the remaining machining of the workpiece, excessive machining, or excessive corner machining can be suppressed, and the occurrence of machining traces generated on the machining surface of the workpiece can be reduced.

実施の形態2.
図12は実施の形態2に係る数値制御装置と数値制御装置により制御される工作機械の構成を示す図である。実施の形態2の数値制御装置300ではNC加工プログラム10に応じてCADデータの位置を調整するCADデータ位置調整部117を備え、またNC指令データ補正部108の代わりにNC指令データ補正部108aを備える。
Embodiment 2. FIG.
FIG. 12 is a diagram showing the configuration of the numerical control device according to the second embodiment and the machine tool controlled by the numerical control device. The numerical control apparatus 300 according to the second embodiment includes a CAD data position adjustment unit 117 that adjusts the position of CAD data according to the NC machining program 10, and an NC command data correction unit 108 a instead of the NC command data correction unit 108. Prepare.

図13は実施の形態1に係る数値制御装置の全体動作を説明するためのフローチャートである。図12に示すST2001からST2011までの処理は以下に示す4つのサブフローに区分される。
(1)CADデータの読み込みと形状配置フロー(ST2001,ST2002,ST2003)。
(2)NC指令データの生成および補正フロー(ST2004,ST2005)。
(3)FB位置データの生成および分析フロー(ST2006,ST2007)。
(4)CADデータ、NCプログラム、NC指令データおよびFB位置データの表示フロー(ST2008,ST2009,ST2010,ST2011)。
FIG. 13 is a flowchart for explaining the overall operation of the numerical control apparatus according to the first embodiment. The processes from ST2001 to ST2011 shown in FIG. 12 are divided into the following four subflows.
(1) CAD data reading and shape arrangement flow (ST2001, ST2002, ST2003).
(2) NC command data generation and correction flow (ST2004, ST2005).
(3) FB position data generation and analysis flow (ST2006, ST2007).
(4) CAD data, NC program, NC command data, and FB position data display flow (ST2008, ST2009, ST2010, ST2011).

以下では上記の(1)から(4)までの処理フローを図12に示した機能ブロックに対応づけて説明する。   Hereinafter, the processing flow from the above (1) to (4) will be described in association with the functional blocks shown in FIG.

(CADデータの読み込みと形状配置フロー)
NC加工プログラム読み込み部101はNC加工プログラム10を読み込み、NC加工プログラム格納部102に格納する(ST2001)。CADデータ読み込み部114はCADデータ20を読み込み、CADデータ格納部115に格納する(ST2002)。CADデータ位置調整部117は、CADデータ格納部115に格納したCADデータ20を、NC加工プログラム格納部102に格納したNC加工プログラムと合わせた位置に配置する(ST2003)。CADデータ20をNC加工プログラムと合わせた位置に配置する方法の一例としては、例えばNC加工プログラムのプログラム座標系とCADデータに定義している座標系とを一致させる方法が考えられる。また他の例としては、NC加工プログラムの旋削軸と、CADデータの円柱または円錐といった回転面形状の軸とを一致させ、NC加工プログラムの座標原点に合わせてCADデータをNC加工プログラムの旋削軸に沿って平行移動させる方法が考えられる。
(CAD data reading and shape placement flow)
The NC machining program reading unit 101 reads the NC machining program 10 and stores it in the NC machining program storage unit 102 (ST2001). CAD data reading section 114 reads CAD data 20 and stores it in CAD data storage section 115 (ST2002). The CAD data position adjustment unit 117 arranges the CAD data 20 stored in the CAD data storage unit 115 at a position combined with the NC machining program stored in the NC machining program storage unit 102 (ST2003). As an example of a method of arranging the CAD data 20 at a position combined with the NC machining program, for example, a method of matching the program coordinate system of the NC machining program with the coordinate system defined in the CAD data is conceivable. As another example, the turning axis of the NC machining program and the axis of the rotating surface such as a cylinder or cone of the CAD data are matched, and the CAD data is turned according to the coordinate origin of the NC machining program. A method of translating along the line can be considered.

(NC指令データの生成および補正フロー)
NC指令データ生成部104は、NC加工プログラム格納部102に格納したNC加工プログラムを解釈し、プログラム指令位置を算出する。また、NC指令データ生成部104は、算出したプログラム指令位置および工作機械200の構成情報である機械構成に基づいてNC指令座標を生成し、機械構成に基づいて各駆動軸の位置座標を指令するNC指令データを生成する。NC指令データは工作機械200の補間時間毎に生成され、生成されたNC指令データはNC指令データ格納部105に格納される(ST2004)。NC指令データ補正部108aはNC指令データ格納部105に格納したNC指令データを補正する(ST2005)。補正されたNC指令データはNC指令データ格納部105に格納される。
(NC command data generation and correction flow)
The NC command data generation unit 104 interprets the NC machining program stored in the NC machining program storage unit 102 and calculates a program command position. Further, the NC command data generation unit 104 generates NC command coordinates based on the calculated program command position and the machine configuration which is the configuration information of the machine tool 200, and commands the position coordinates of each drive axis based on the machine configuration. NC command data is generated. The NC command data is generated every interpolation time of the machine tool 200, and the generated NC command data is stored in the NC command data storage unit 105 (ST2004). NC command data correction unit 108a corrects the NC command data stored in NC command data storage unit 105 (ST2005). The corrected NC command data is stored in the NC command data storage unit 105.

(FB位置データの生成および分析フロー)
NC指令データ生成部104が生成したNC指令データは工作機械200に送られ、工作機械200は、駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208を駆動する(ST2006)。このときFB位置データ算出部110は、FB位置データ検出器209が検出した駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208における実位置データに基づいてFB位置データを算出し、算出したFB位置データをFB位置データ格納部111に格納する(ST2007)。
(FB position data generation and analysis flow)
The NC command data generated by the NC command data generation unit 104 is sent to the machine tool 200. The machine tool 200 includes a drive X axis 204, a drive Y axis 205, a drive Z axis 206, a drive B axis 207, and a drive C axis 208. Drive (ST2006). At this time, the FB position data calculation unit 110 is based on the actual position data on the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 detected by the FB position data detector 209. FB position data is calculated, and the calculated FB position data is stored in the FB position data storage unit 111 (ST2007).

(CADデータ、NCプログラム、NC指令データおよびFB位置データの表示フロー)
NC加工プログラム表示処理部103は、NC加工プログラム格納部102に格納したNC加工プログラムを解釈し、プログラム経路を工作機械200の表示部202に表示する(ST2008)。NC指令データ表示処理部106は、NC指令データ格納部105に格納されたNC指令データを解釈し、NC指令データの位置座標を算出し、NC指令データによる経路であるNC指令データ経路を工作機械200の表示部202に表示する(ST2009)。FB位置データ表示処理部112は、FB位置データ格納部111に格納したFB位置データを解釈し、FB位置データの位置座標を算出し、FB位置データによる経路であるFB位置データ経路を工作機械200の表示部202に表示する(ST2010)。CADデータ表示処理部116は、CADデータ格納部115に格納したCADデータを工作機械200の表示部202に表示する(ST2011)。
(CAD data, NC program, NC command data and FB position data display flow)
The NC machining program display processing unit 103 interprets the NC machining program stored in the NC machining program storage unit 102 and displays the program path on the display unit 202 of the machine tool 200 (ST2008). The NC command data display processing unit 106 interprets the NC command data stored in the NC command data storage unit 105, calculates the position coordinates of the NC command data, and sets the NC command data path, which is a path based on the NC command data, to the machine tool. 200 is displayed on the display unit 202 (ST2009). The FB position data display processing unit 112 interprets the FB position data stored in the FB position data storage unit 111, calculates the position coordinates of the FB position data, and sets the FB position data path, which is a path based on the FB position data, to the machine tool 200. Is displayed on the display unit 202 (ST2010). The CAD data display processing unit 116 displays the CAD data stored in the CAD data storage unit 115 on the display unit 202 of the machine tool 200 (ST2011).

図14は図13のST2005に示すNC指令データを補正する処理のフローチャートである。NC指令データ補正部108aは、補正対象のNC指令データとST2001〜ST2003により読み込み配置したCADデータとが最も接近する距離を算出する(ST2101)。ワークを削り込む際、補正対象のNC指令データの座標値がCADデータの形状内部に存在するとき、最も接近する距離が負値となるようにする。補正対象のNC指令データの座標値から、CADデータを構成する頂点、辺、面との距離を算出し、最少となる値が最も接近する距離の算出方法の一例である。NC指令データ補正部108aは、ST2101で算出した最も接近する距離を基に、NC指令データの位置を補正する(ST2102)。NC指令データとCADデータとの最も接近する距離が規定値になるように、CADデータとNC指令データとが最も接近する点の法線ベクトルに沿って、NC指令データの位置を移動させるのが、NC指令データの位置を補正する一例である。NC指令データ補正部108aは、ST2101で算出したCADデータのエッジを基に、NC指令データを直線で補間したNC指令軌跡を補正する。(ST2103)。NC指令データを直線で補間したNC指令軌跡とCADデータとが最も接近する距離を算出する。算出した距離が規定値値未満の場合、NC指令軌跡が規定値値となるようにNC指令軌跡を生成し直す。CADデータを基に規定値のオフセット曲線を求めることにより、NC指令軌跡を生成し直せばよい。NC指令データ補正部108aは、ST2103で補正した工具軌跡上に沿って、NC指令データを再生成する(ST2104)。再生成する際、工具軌跡の接線ベクトルの変化量に応じて、加工速度が適正となるように補間距離を調整し、NC指令データを工具軌跡上にサンプリングすればよい。   FIG. 14 is a flowchart of processing for correcting the NC command data shown in ST2005 of FIG. The NC command data correction unit 108a calculates the closest distance between the NC command data to be corrected and the CAD data read and arranged in ST2001 to ST2003 (ST2101). When cutting the workpiece, when the coordinate value of the NC command data to be corrected exists within the shape of the CAD data, the closest approach distance is set to a negative value. This is an example of a method for calculating the distance at which the smallest value is closest, by calculating the distance from the vertex, side, and surface constituting the CAD data from the coordinate value of the NC command data to be corrected. The NC command data correction unit 108a corrects the position of the NC command data based on the closest distance calculated in ST2101 (ST2102). The position of the NC command data is moved along the normal vector of the point at which the CAD data and the NC command data are closest to each other so that the closest distance between the NC command data and the CAD data becomes a specified value. This is an example of correcting the position of NC command data. The NC command data correction unit 108a corrects the NC command locus obtained by interpolating the NC command data with a straight line based on the edge of the CAD data calculated in ST2101. (ST2103). The distance at which the NC command trajectory obtained by interpolating the NC command data with a straight line and the CAD data are closest is calculated. If the calculated distance is less than the specified value, the NC command track is regenerated so that the NC command track becomes the specified value. The NC command trajectory may be regenerated by obtaining an offset curve of a prescribed value based on CAD data. The NC command data correction unit 108a regenerates NC command data along the tool path corrected in ST2103 (ST2104). When regenerating, the interpolation distance is adjusted so that the machining speed is appropriate in accordance with the amount of change in the tangent vector of the tool locus, and the NC command data may be sampled on the tool locus.

図15はCADデータにより表示されるワークの外観と、位置を補正する前のNC指令データにより駆動する駆動軸の移動軌跡を示す図である。図16はCADデータにより表示されるワークの外観と、位置を補正した後のNC指令データにより駆動する駆動軸の移動軌跡を示す図である。図16には図15に示すNC指令データa,b,cの各々をST2012の処理で補正した軌跡が示される。図17は図16に示す移動軌跡の一部区間を直線補間した後の移動軌跡を示す図であり、図17にはワークの角部に位置するNC指令データdをST2013の処理で補正する前の軌跡が示される。図18は図17に示す移動軌跡の一部区間の速度を補間した後の軌跡を示す図であり、図18にはNC指令データdをST2013の処理で補正した後の軌跡が示される。   FIG. 15 is a diagram showing the appearance of the workpiece displayed by CAD data and the movement locus of the drive shaft driven by NC command data before correcting the position. FIG. 16 is a diagram showing the appearance of the workpiece displayed by CAD data and the movement locus of the drive shaft driven by the NC command data after correcting the position. FIG. 16 shows a locus obtained by correcting each of NC command data a, b, and c shown in FIG. 15 by the processing of ST2012. FIG. 17 is a diagram showing a movement locus after linear interpolation of a part of the movement locus shown in FIG. 16. FIG. 17 shows a state before the NC command data d located at the corner of the workpiece is corrected by the processing of ST2013. Is shown. FIG. 18 is a diagram showing the trajectory after interpolating the speed of a part of the movement trajectory shown in FIG. 17, and FIG. 18 shows the trajectory after the NC command data d is corrected by the processing of ST2013.

図19は図13のST2009に示す色属性を付加したNC指令データを表示する処理のフローチャートである。図20はCADデータにより表示されるワークの外観と、色属性を付加したNC指令データにより駆動する駆動軸の移動軌跡を示す図である。NC指令データ分析部107は、NC指令データ格納部105に格納されたNC指令データとCADデータ格納部115に格納されたCADデータとが最も近づく距離をそれぞれ求める。NC指令データとCADデータとが最も近づく距離は、NC指令データの座標値とCAD形状との幾何計算により算出することができる。また、NC指令データがCAD形状内にある場合は、最も近づく距離を負値とし、NC指令データがCAD形状外にある場合は、最も近づく距離を正値とする(ST2201)。NC指令データ分析部107は、ST2201で算出した距離に応じてNC指令データ格納部105に格納されたNC指令データに色属性を付加する(ST2202)。例えば規定値より大きいNC指令データには黄色属性であるRGB(1,1,0)を付加する。規定値より小さいNC指令データには赤色属性であるRGB(1,0,0)を付加する。NC指令データ分析部107は、ST2202で色属性を付加されたNC指令データを、付加された色属性に応じて表示データを生成し、生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される(ST2203)。   FIG. 19 is a flowchart of processing for displaying NC command data to which color attributes are added as shown in ST2009 of FIG. FIG. 20 is a diagram showing the appearance of the work displayed by CAD data and the movement locus of the drive shaft driven by NC command data with color attributes added. The NC command data analysis unit 107 obtains the closest distance between the NC command data stored in the NC command data storage unit 105 and the CAD data stored in the CAD data storage unit 115. The distance at which the NC command data and CAD data are closest to each other can be calculated by geometric calculation of the coordinate value of the NC command data and the CAD shape. If the NC command data is within the CAD shape, the closest distance is a negative value, and if the NC command data is outside the CAD shape, the closest distance is a positive value (ST2201). NC command data analysis section 107 adds a color attribute to the NC command data stored in NC command data storage section 105 according to the distance calculated in ST2201 (ST2202). For example, RGB (1, 1, 0) that is a yellow attribute is added to NC command data that is larger than a specified value. RGB (1, 0, 0), which is a red attribute, is added to NC command data smaller than the specified value. The NC command data analysis unit 107 generates display data in accordance with the added color attribute from the NC command data to which the color attribute is added in ST2202, and the generated display data is sent to the machine tool 200. 200 is displayed on the display unit 202 (ST2203).

図20には色属性を付加したNC指令データをCADデータともに表示した一例が示される。図20に示すように工作機械200の表示部202には各々色が異なるNC指令データa,b,cが表示される。   FIG. 20 shows an example in which NC command data to which a color attribute is added is displayed together with CAD data. As shown in FIG. 20, NC command data a, b, and c having different colors are displayed on the display unit 202 of the machine tool 200.

図21は図13のST2010に示すFB位置データを表示する処理のフローチャートである。FB位置データ分析部113は、FB位置データデータ格納部111に格納されたFB位置データと、CADデータ格納部115に格納されたCADデータとが最も近づく距離をそれぞれ求める。FB位置データとCADデータとの最も近づく距離は、FB位置データの座標値とCAD形状との幾何計算により算出することができる。また、FB位置データがCAD形状内にある場合は、最も近づく距離を負値とし、FB位置データがCAD形状外にある場合は、最も近づく距離を正値とする(ST2301)。FB位置データ分析部113は、ST2301で算出した距離に応じてFB位置データ格納部111に格納されたFB位置データに色属性を付加する(ST2302)。例えば、規定値より大きい場合は黄色属性であるRGB(1,1,0)を付加し、規定値より小さい場合は赤色属性であるRGB(1,0,0)を付加する。FB位置データ分析部113は、ST2302で色属性が付加されたFB位置データに基づいて、付加された色属性に応じて表示データを生成し、生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される(ST2303)。   FIG. 21 is a flowchart of processing for displaying FB position data shown in ST2010 of FIG. The FB position data analysis unit 113 obtains the closest distance between the FB position data stored in the FB position data data storage unit 111 and the CAD data stored in the CAD data storage unit 115. The closest distance between the FB position data and the CAD data can be calculated by geometric calculation of the coordinate value of the FB position data and the CAD shape. If the FB position data is within the CAD shape, the closest distance is a negative value, and if the FB position data is outside the CAD shape, the closest distance is a positive value (ST2301). The FB position data analysis unit 113 adds a color attribute to the FB position data stored in the FB position data storage unit 111 according to the distance calculated in ST2301 (ST2302). For example, RGB (1, 1, 0), which is a yellow attribute, is added when it is larger than the specified value, and RGB (1, 0, 0), which is a red attribute, is added when it is smaller than the specified value. The FB position data analysis unit 113 generates display data according to the added color attribute based on the FB position data to which the color attribute is added in ST2302, and the generated display data is sent to the machine tool 200. It is displayed on the display unit 202 of the machine tool 200 (ST2303).

図22は実施の形態2の数値制御装置においてNC加工プログラムを工作機械の表示部の編集画面に表示させる処理のフローチャートである。NC加工プログラム表示処理部103は、NC加工プログラムの関連属性を付加した表示データを生成し、生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される(ST3001)。NC加工プログラムの関連属性の一例としては、プログラム番号、シーケンス番号、またはブロック番号である。NC加工プログラム表示処理部103は、作業者が指示入力部203により、表示部202に表示されるNC加工プログラムを選択した箇所の表示データに選択中属性を付加する(ST3002)。NC加工プログラム表示処理部103は、選択中属性を付加されたNC加工プログラム表示データに対応するNC加工プログラムの各ブロックを、ST3001で付加したNC加工プログラムの関連属性を基に探索する(ST3003)。NC加工プログラム表示処理部103は、選択中属性を付加されたNC加工プログラム表示データに対応するNC加工プログラムの各ブロックに選択中属性を付加する。このNC加工プログラムは工作機械200の表示部202において編集画面に表示される(ST3004)。選択中のNC加工プログラムの各ブロックを色分け表示するのが一例である。また、選択中のNC加工プログラムの各ブロックのみを表示するのが一例である。NC加工データまたはFB位置データに対しても、同様に対応するNC加工プログラムとの関連属性を付加し、選択中のNC加工データまたはFB位置データに対応するNC加工プログラムブロックを表示する構成でもよい。   FIG. 22 is a flowchart of processing for displaying the NC machining program on the editing screen of the display unit of the machine tool in the numerical control apparatus according to the second embodiment. NC machining program display processing unit 103 generates display data to which the related attribute of the NC machining program is added, and the generated display data is sent to machine tool 200 and displayed on display unit 202 of machine tool 200 (ST3001). ). An example of a related attribute of the NC machining program is a program number, a sequence number, or a block number. NC machining program display processing section 103 adds a selected attribute to display data at a location where an operator has selected an NC machining program displayed on display section 202 by instruction input section 203 (ST3002). NC machining program display processing section 103 searches each block of the NC machining program corresponding to the NC machining program display data to which the selected attribute is added based on the related attributes of the NC machining program added in ST3001 (ST3003). . The NC machining program display processing unit 103 adds the selected attribute to each block of the NC machining program corresponding to the NC machining program display data to which the selected attribute is added. This NC machining program is displayed on the editing screen on display unit 202 of machine tool 200 (ST3004). An example is displaying each block of the NC machining program being selected by color. In addition, displaying only each block of the NC machining program being selected is an example. Similarly, the NC machining data or the FB position data may be similarly added with a related attribute with the corresponding NC machining program, and the NC machining program block corresponding to the selected NC machining data or FB position data may be displayed. .

以上に説明したように実施の形態2の数値制御装置300は、NC指令データ補正部108aがCADデータを基にNC指令データの位置と速度を補正する。実施の形態1と同様に、これによりリアルタイムでNC指令データを補正することができ、ワークの加工残し、削り過ぎ、またはコーナ削り過ぎが抑制され、ワークの加工面に発生する加工痕の発生を低減することができる。   As described above, in the numerical controller 300 according to the second embodiment, the NC command data correction unit 108a corrects the position and speed of the NC command data based on the CAD data. As in the first embodiment, this allows the NC command data to be corrected in real time, which prevents the workpiece from being left behind, overcutting, or overcutting the corners, thereby reducing the occurrence of machining traces on the workpiece surface. Can be reduced.

また実施の形態2に係る数値制御装置300によれば、第1の色属性付与部として機能するNC指令データ分析部107が、NC指令データとCADデータが最も近づく距離を算出し、算出した距離に応じた色属性をNC指令データに付加して工作機械200の表示部202に表示させるようにしたので、作業者は、加工残しまたは削り過ぎが発生する虞があるNC指令データの箇所を容易に把握することができる。   Further, according to the numerical control device 300 according to the second embodiment, the NC command data analysis unit 107 functioning as the first color attribute assigning unit calculates the distance at which the NC command data and CAD data are closest to each other, and calculates the calculated distance. Since the color attribute corresponding to the value is added to the NC command data and displayed on the display unit 202 of the machine tool 200, the operator can easily locate the NC command data where there is a possibility that unfinished machining or overcutting may occur. Can grasp.

また実施の形態2に係る数値制御装置300によれば、第2の色属性付与部として機能するFB位置データ分析部113が、FB位置データとCADデータが最も近づく距離を算出し、算出した距離に応じた色属性をFB位置データに付加するようにしたので、作業者は、加工残しまたは削り過ぎが発生する虞があるFB位置データの箇所を容易に把握することができる。   Further, according to the numerical control device 300 according to the second embodiment, the FB position data analysis unit 113 functioning as the second color attribute assigning unit calculates the distance at which the FB position data and the CAD data are closest to each other, and calculates the calculated distance. Since the color attribute corresponding to the FB position data is added to the FB position data, the operator can easily grasp the position of the FB position data where there is a possibility that unprocessed or excessive cutting may occur.

また実施の形態2に係る数値制御装置300によれば、NC加工プログラムの表示データの選択状態に応じてNC加工プログラムのEIAブロックに選択中属性を付加するようにしたので、作業者は、選択中のNC加工プログラムの選択箇所を容易にすることができる。   Further, according to the numerical control device 300 according to the second embodiment, since the selected attribute is added to the EIA block of the NC machining program according to the selection state of the display data of the NC machining program, the operator can select The selected part of the NC machining program can be facilitated.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。   The configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.

10 NC加工プログラム、20 CADデータ、100 数値制御装置、101 NC加工プログラム読み込み部、102 NC加工プログラム格納部、103 NC加工プログラム表示処理部、104 NC指令データ生成部、105 NC指令データ格納部、106 NC指令データ表示処理部、107 NC指令データ分析部、108,108a NC指令データ補正部、110 FB位置データ算出部、111 FB位置データ格納部、112 FB位置データ表示処理部、113 FB位置データ分析部、114 CADデータ読み込み部、115 CADデータ格納部、116 CADデータ表示処理部、200 工作機械、201 対話操作処理部、202 表示部、203 指示入力部、204 駆動X軸、205 駆動Y軸、206 駆動Z軸、207 駆動B軸、208 駆動C軸、209 FB位置データ検出器、300 数値制御装置。   10 NC machining program, 20 CAD data, 100 Numerical control device, 101 NC machining program reading unit, 102 NC machining program storage unit, 103 NC machining program display processing unit, 104 NC command data generation unit, 105 NC command data storage unit, 106 NC command data display processing unit, 107 NC command data analysis unit, 108, 108a NC command data correction unit, 110 FB position data calculation unit, 111 FB position data storage unit, 112 FB position data display processing unit, 113 FB position data Analysis unit, 114 CAD data reading unit, 115 CAD data storage unit, 116 CAD data display processing unit, 200 machine tool, 201 dialog operation processing unit, 202 display unit, 203 instruction input unit, 204 drive X axis, 205 drive Y axis 206 Z-axis, 207 drive the B-axis, 208 drive the C-axis, 209 FB position data detector, 300 numerical control device.

上述した課題を解決し、目的を達成するために、本発明の数値制御装置は、数値制御加工プログラムと工作機械の構成情報とに基づいて、複数の前記駆動軸の各々の制御周期毎に複数の前記駆動軸の各々の機械座標値を計算して、複数の前記駆動軸の各々の移動軌跡を示す数値制御指令データを生成する数値制御指令データ生成部と、前記数値制御指令データ生成部で時系列的に異なるタイミングで生成された複数の前記数値制御指令データを格納する数値制御指令データ格納部と、前記数値制御指令データ格納部に格納された時系列的に隣接するつの前記数値制御指令データの各々の前記機械座標値を比較して、時系列的に隣接する3つの前記数値制御指令データの内、値の異なる前記機械座標値を含む1つの第1の数値制御指令データを補正対象として、前記第1の数値制御指令データの機械座標値を、比較対象とした第1の数値制御指令データ以外の2つの第2の数値制御指令データの機械座標値に近づける補正を行う数値制御指令データ補正部と、を備え、2つの前記第2の数値制御指令データの機械座標値は同じ値であることを特徴とする。 To solve the above problems and achieve the object, the numerical control apparatus of the present invention, based on the numerical control machining program and machine tool configuration information, for each control cycle of each of the plurality of the drive shaft A numerical control command data generation unit that calculates a machine coordinate value of each of the plurality of drive shafts and generates numerical control command data indicating a movement locus of each of the plurality of drive shafts, and the numerical control command data generation unit and numerical control command data storage unit for storing a plurality of said numerical control command data generated by the time series in the different timings in three of the numbers that sequence contiguous when stored in the numerical control command data storage unit by comparing the machine coordinate values of each of the control command data, time series of the three said numerical control command data adjacent, one first numerical control command data including the machine coordinate values of different values As the correction target, the mechanical coordinates of the first numerical control command data, numerical corrected to approach the machine coordinate values of the first numerical two second numerical control command data other than the control command data to be compared A control command data correction unit, and the machine coordinate values of the two second numerical control command data are the same value .

上述した課題を解決し、目的を達成するために、本発明の数値制御装置は、数値制御加工プログラムと工作機械の構成情報とに基づいて、複数の前記駆動軸の各々の制御周期毎に複数の前記駆動軸の各々の機械座標値を計算して、複数の前記駆動軸の各々の移動軌跡を示す数値制御指令データを生成する数値制御指令データ生成部と、前記数値制御指令データ生成部で補間時間毎に生成された複数の前記数値制御指令データを格納する数値制御指令データ格納部と、前記数値制御指令データ格納部に格納された時系列的に隣接する3つの前記数値制御指令データの各々に含まれる複数の全ての前記機械座標値を比較して、時系列的に隣接する3つの前記数値制御指令データの内、値の異なる前記機械座標値を含む1つの第1の数値制御指令データの速度または加速度を補正対象として、前記第1の数値制御指令データの機械座標値を、比較対象とした第1の数値制御指令データ以外の2つの第2の数値制御指令データの機械座標値に近づける補正を行う数値制御指令データ補正部と、を備え、2つの前記第2の数値制御指令データに含まれる複数の全ての機械座標値は同じ値であることを特徴とする。 In order to solve the above-described problems and achieve the object, the numerical control device of the present invention has a plurality of control cycles for each of the plurality of drive shafts based on a numerical control machining program and machine tool configuration information. A numerical control command data generation unit that calculates a machine coordinate value of each of the drive shafts and generates numerical control command data indicating a movement locus of each of the plurality of drive shafts, and the numerical control command data generation unit A numerical control command data storage unit that stores a plurality of the numerical control command data generated every interpolation time , and three time-sequentially adjacent numerical control command data stored in the numerical control command data storage unit One first numerical control command including the machine coordinate values having different values among the three numerical control command data adjacent to each other in time series by comparing a plurality of the machine coordinate values included in each De The velocity or acceleration of the motor as the correction target, the first numerical control machine coordinate value of the command data, compared with the first numerical control command data other than the two second numerical control command data in the machine coordinate values And a numerical control command data correction unit that performs a correction approaching to a plurality of machine coordinate values included in the two second numerical control command data.

Claims (4)

数値制御加工プログラムに従って工作機械の複数の駆動軸を数値制御する数値制御装置であって、
前記数値制御加工プログラムと前記工作機械の構成情報とに基づいて、複数の前記駆動軸の各々の制御周期毎に複数の前記駆動軸の各々の機械座標値を計算して、複数の前記駆動軸の各々の移動軌跡を示す数値制御指令データを生成する数値制御指令データ生成部と、
前記数値制御指令データ生成部で時系列的に異なるタイミングで生成された複数の前記数値制御指令データを格納する数値制御指令データ格納部と、
前記数値制御指令データ格納部に格納された3つ以上の前記数値制御指令データの各々の前記機械座標値を比較して、値の異なる前記機械座標値を含む第1の数値制御指令データを補正対象として、前記第1の数値制御指令データの機械座標値を、比較対象とした第1の数値制御指令データ以外の第2の数値制御指令データの機械座標値に近づける補正を行う数値指令データ補正部と、
を備えたことを特徴とする数値制御装置。
A numerical control device that numerically controls a plurality of drive axes of a machine tool according to a numerical control machining program,
Based on the numerically controlled machining program and the configuration information of the machine tool, a machine coordinate value of each of the plurality of drive shafts is calculated for each control period of the plurality of drive shafts, and a plurality of the drive shafts are calculated. A numerical control command data generating unit for generating numerical control command data indicating each movement trajectory,
A numerical control command data storage unit for storing a plurality of the numerical control command data generated at different timings in time series in the numerical control command data generation unit;
Comparing the machine coordinate values of each of the three or more numerical control command data stored in the numerical control command data storage unit to correct the first numerical control command data including the machine coordinate values having different values Numerical command data correction for correcting the machine coordinate value of the first numerical control command data as the target to be close to the mechanical coordinate value of the second numerical control command data other than the first numerical control command data as the comparison target And
A numerical control device comprising:
前記数値制御加工プログラムに応じてコンピュータ支援設計データの位置を調整するコンピュータ支援設計データ位置調整部と、
前記数値指令データ補正部で補正された後の数値制御指令データ格納部に格納された数値制御指令データと、前記コンピュータ支援設計データ位置調整部で位置の調整が行われたコンピュータ支援設計データとが最も接近する距離を算出し、算出した距離に応じた色属性を前記数値指令データに付加して前記工作機械の表示部に表示させる第1の色属性付与部と、
を備えたことを特徴とする請求項1に記載の数値制御装置。
A computer-aided design data position adjustment unit for adjusting the position of the computer-aided design data in accordance with the numerically controlled machining program;
The numerical control command data stored in the numerical control command data storage unit after being corrected by the numerical command data correction unit and the computer-aided design data whose position is adjusted by the computer-aided design data position adjustment unit A first color attribute providing unit that calculates the closest distance, adds a color attribute corresponding to the calculated distance to the numerical command data, and displays the color attribute on the display unit of the machine tool;
The numerical control apparatus according to claim 1, further comprising:
前記工作機械に設けられる複数の前記駆動軸から出力されたフィードバック位置データと、前記コンピュータ支援設計データ位置調整部で位置の調整が行われたコンピュータ支援設計データとが最も接近する距離を算出し、算出した距離に応じた色属性を前記フィードバック位置データに付加して前記工作機械の表示部に表示させる第2の色属性付与部と、
を備えたことを特徴とする請求項2に記載の数値制御装置。
Calculating the distance at which the feedback position data output from the plurality of drive shafts provided in the machine tool and the computer-aided design data whose position is adjusted by the computer-aided design data position adjustment unit are closest to each other; A second color attribute assigning unit that adds a color attribute corresponding to the calculated distance to the feedback position data and displays it on the display unit of the machine tool;
The numerical control apparatus according to claim 2, further comprising:
前記数値制御加工プログラム格納部に格納された前記数値制御加工プログラムを前記工作機械の表示部に表示させる数値制御加工プログラム表示処理部を備え、
前記数値制御加工プログラム表示処理部は、前記工作機械で選択された前記数値制御加工プログラムと関連する数値制御加工プログラムのEIAブロックに対して色属性を付加することを特徴とする請求項1に記載の数値制御装置。
A numerical control machining program display processing unit for displaying the numerical control machining program stored in the numerical control machining program storage unit on a display unit of the machine tool;
The numerical control machining program display processing unit adds a color attribute to an EIA block of a numerical control machining program associated with the numerical control machining program selected by the machine tool. Numerical control unit.
JP2015560897A 2015-04-27 2015-04-27 Numerical controller Active JP5985087B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/062723 WO2016174716A1 (en) 2015-04-27 2015-04-27 Numerical control device

Publications (2)

Publication Number Publication Date
JP5985087B1 JP5985087B1 (en) 2016-09-06
JPWO2016174716A1 true JPWO2016174716A1 (en) 2017-05-18

Family

ID=56843296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015560897A Active JP5985087B1 (en) 2015-04-27 2015-04-27 Numerical controller

Country Status (2)

Country Link
JP (1) JP5985087B1 (en)
WO (1) WO2016174716A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6450732B2 (en) 2016-11-11 2019-01-09 ファナック株式会社 Numerical controller
CN108732991B (en) * 2017-04-25 2020-09-18 深圳市腾盛精密装备股份有限公司 Method and device for correcting motion axis
JP7348013B2 (en) 2019-09-30 2023-09-20 ファナック株式会社 simulation device
JP7395954B2 (en) 2019-10-24 2023-12-12 株式会社ジェイテクト NC data quality judgment device and processing device
JP7470536B2 (en) 2020-03-10 2024-04-18 オークマ株式会社 Processing result evaluation device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277905A (en) * 1988-09-14 1990-03-19 Fanuc Ltd Correcting method for robot moving program
JP3399419B2 (en) * 1999-10-28 2003-04-21 三菱電機株式会社 Numerical control simulation device
JP3834268B2 (en) * 2002-06-20 2006-10-18 オークマ株式会社 NC data tool path display method
JP4689745B2 (en) * 2009-08-19 2011-05-25 ファナック株式会社 Tool vector display device for machine tools
JP5458769B2 (en) * 2009-09-18 2014-04-02 株式会社デンソーウェーブ Robot control device
JP5434649B2 (en) * 2010-02-12 2014-03-05 株式会社ジェイテクト Error display device for machine tools
JP5428965B2 (en) * 2010-03-15 2014-02-26 オムロン株式会社 Display device, display control method, program, and computer-readable recording medium
JP5670501B2 (en) * 2013-03-21 2015-02-18 ファナック株式会社 Cutting condition display device
JP6037910B2 (en) * 2013-03-25 2016-12-07 三菱電機株式会社 Tool path generation apparatus and method

Also Published As

Publication number Publication date
WO2016174716A1 (en) 2016-11-03
JP5985087B1 (en) 2016-09-06

Similar Documents

Publication Publication Date Title
JP5985087B1 (en) Numerical controller
JP4347386B2 (en) Processing robot program creation device
JP3732494B2 (en) Simulation device
US9477216B2 (en) Numerical control device including display part for displaying information for evaluation of machining process
JP5374616B1 (en) Tool path display device for displaying tool vectors of machine tools
JP5266373B2 (en) Numerical control device with tool trajectory display function
JP6878378B2 (en) Numerical control device
JP6719790B1 (en) Automatic operation device for machining center based on CAD data
US10406688B2 (en) Offline programming apparatus and method having workpiece position detection program generation function using contact sensor
JP6316513B1 (en) Machining program analyzer
JP2012022404A (en) Tool locus display apparatus with deceleration factor identification means for machine tool
US20140100688A1 (en) Tool trajectory display device having function for displaying inversion position of servo axis
JP6043234B2 (en) Numerical controller
US11656600B2 (en) Simulation apparatus
US10191468B2 (en) Tool track display device for displaying track of tool
JP2019117477A (en) Link information generation device, link information generation method, and link information generation program
JP2001125613A (en) Numerical control simulation device
CN109129413B (en) Robot system capable of displaying speed
CN109874403B (en) Numerical control device
JPWO2018151212A1 (en) Mold correction method
WO2016027355A1 (en) Numerical control device
JP5610883B2 (en) Processing simulation apparatus and method
US20200201283A1 (en) Numerical control device, numerical control machine system, machining simulation device, and machining simulation method
JP2021071951A (en) Simulator, numerical controller, and method of simulation
US6845350B1 (en) Simulation method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160615

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160705

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160802

R150 Certificate of patent or registration of utility model

Ref document number: 5985087

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250