JP5763352B2 - NC program creation device - Google Patents

NC program creation device Download PDF

Info

Publication number
JP5763352B2
JP5763352B2 JP2011010186A JP2011010186A JP5763352B2 JP 5763352 B2 JP5763352 B2 JP 5763352B2 JP 2011010186 A JP2011010186 A JP 2011010186A JP 2011010186 A JP2011010186 A JP 2011010186A JP 5763352 B2 JP5763352 B2 JP 5763352B2
Authority
JP
Japan
Prior art keywords
machining
format file
tool
program
data
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.)
Expired - Fee Related
Application number
JP2011010186A
Other languages
Japanese (ja)
Other versions
JP2012150728A (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.)
Bridgestone Corp
Original Assignee
Bridgestone 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 Bridgestone Corp filed Critical Bridgestone Corp
Priority to JP2011010186A priority Critical patent/JP5763352B2/en
Publication of JP2012150728A publication Critical patent/JP2012150728A/en
Application granted granted Critical
Publication of JP5763352B2 publication Critical patent/JP5763352B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、NCプログラム作成装置に関し、特に、NC工作機械に出力されるNCプログラムを容易に作成可能な装置に関する。   The present invention relates to an NC program creation device, and more particularly, to an device capable of easily creating an NC program output to an NC machine tool.

従来、NC工作機械は、機種毎に最適化されたNCプログラムにより制御される。一般にNCプログラムは、CAD装置のソフトウェアを利用して作図された加工部品等の形状モデルを形状データに変換してCAM装置に出力し、CAM装置により形状データが加工データに変換され、加工データがポスト処理装置により機種毎に最適化される。
CAD装置により作成される形状データは、機械設計における部品としてCAD装置内に登録され、新たな加工設計を行うときの基準として再び読み出され、形状モデルに変更を加えることで、新たな部品の形状データが作成される。また、CAD装置に部品として登録された形状データは、当該形状データに対応する加工データがCAM装置に登録されることにより、形状モデルに変更が加えられた形状データに対応した加工データを作成することを容易にしている。そして、加工データは、ポスト処理装置により部品の加工に使用するNC工作機械に最適化されたNCプログラムに変換される。
上記のような一連のCAM−ポスト処理は、CAM装置により例えばAPT形式と呼ばれる言語によって一般座標で工具経路が記述された加工データをポスト処理装置により機械座標に座標変換し、ポスト処理装置により加工条件に応じた工具の移動動作や回転動作等をNCコードと呼ばれるGコードやMコード、あるいは、工具を制御するSやTやFなどに変換し、NCコードの出力順序を制御することにより加工データをNCプログラムに変換している。
しかしながら、NCコードは、一般にはJISにより規格化がなされているが、NC工作機械毎に持ち合わせる機能が異なるために機種毎に依存してしまう。このため、加工データを機種毎に最適化するポスト処理においては、NC工作機械の機種に応じた言語やコードを習得する必要があり、高度なスキルが要求される。また、多軸のNC工作機械、例えば、5軸のマシニングセンタやターニングセンタ等の普及により、複雑な加工形状の部品であっても1つの工作機械により加工が可能となるため、一連の加工工程の中に被加工物に対する工具の加工姿勢が複雑化している。このため、ポスト処理において、工具の交換動作や被加工物に対する工具のアプローチ動作を最適化する場合に、処理工程が複雑化してしまい、簡単なポスト処理を変更しただけでも変更箇所以外の部分に影響を及ぼす虞がある。また、そのポスト処理の変更がNCプログラムのどこに影響を及ぼすかの予測も難しく、ポスト処理後のNCプログラムの検証作業やNCプログラムに不具合が生じたときのポスト処理のデバッグ作業に多くの時間と費用を要しているのが現状である。
Conventionally, NC machine tools are controlled by an NC program optimized for each model. In general, an NC program converts a shape model of a machined part or the like drawn using software of a CAD device into shape data and outputs it to the CAM device. The CAM device converts the shape data into machining data, and the machining data Optimized for each model by post processing equipment.
The shape data created by the CAD device is registered in the CAD device as a part in the machine design, is read again as a reference when performing a new machining design, and changes to the shape model make it possible to Shape data is created. Further, the shape data registered as a part in the CAD device creates processing data corresponding to the shape data in which the shape model is changed by registering the processing data corresponding to the shape data in the CAM device. Making it easy. Then, the machining data is converted into an NC program optimized for an NC machine tool used for machining a part by a post processing device.
In the series of CAM-post processing as described above, machining data in which a tool path is described in general coordinates in a language called APT format, for example, is converted into machine coordinates by the post processing device, and processed by the post processing device. Machining by converting the movement and rotation of the tool according to conditions into G code or M code called NC code, or S, T, F, etc. that control the tool, and controlling the NC code output order Data is converted to NC program.
However, the NC code is generally standardized by JIS, but depends on the model because the functions to be provided are different for each NC machine tool. For this reason, in post processing for optimizing machining data for each model, it is necessary to learn a language and code corresponding to the model of the NC machine tool, and a high level of skill is required. In addition, with the spread of multi-axis NC machine tools, for example, 5-axis machining centers and turning centers, even parts with complex machining shapes can be machined with a single machine tool. The machining posture of the tool with respect to the workpiece is complicated. For this reason, in post processing, when optimizing the tool replacement operation and the tool approach operation to the workpiece, the processing process becomes complicated, and even if simple post processing is changed, it is not changed to the part other than the changed part. May have an effect. In addition, it is difficult to predict where the change in the post processing will affect the NC program, and it takes a lot of time to verify the NC program after the post processing and to debug the post processing when a failure occurs in the NC program. The current situation is costing.

特開平11−3111号公報Japanese Patent Laid-Open No. 11-3111

本発明は上記課題を解決するため、NCプログラムの作成において高いスキルの習得を必要とすることなくNC工作機械に最適化されたNCプログラムを容易に作成することが可能なNCプログラム作成装置を提供することを目的とする。   In order to solve the above-mentioned problems, the present invention provides an NC program creation device capable of easily creating an NC program optimized for an NC machine tool without requiring acquisition of high skills in creating an NC program. The purpose is to do.

前記課題を解決する構成として、CAD装置により作成される形状データからNC工作機械に出力するNCプログラムを作成するNCプログラム作成装置であって、形状データに対応する加工手順、加工方法、使用工具、工具形状、加工条件を含む加工情報を記憶する加工情報記憶手段と、形状データと加工情報とに基づいて加工経路を作成する加工経路作成手段と、加工経路の前、又は後の所定の位置に出力され、一部を変数としてNCプログラムの書式を形式化した形式ファイルを記憶する形式ファイル記憶手段と、形式ファイルを形式ファイル記憶手段から読み出して加工データを作成する形式ファイル読込手段と、加工データに含まれる形式ファイルの変数を加工情報に基づく数値に置き換える変数変換手段とを備える構成とした。
本構成によれば、NCプログラムの書式を形式化した形式ファイルを形式ファイル記憶手段に記憶させておき、形式ファイル読込手段が加工経路作成手段により作成された加工経路とともに形式ファイルを読み込み、加工経路の前後に形式ファイルを配置するだけでNCプログラムを作成することができるので、複雑な工程を経ることなくNCプログラムを作成することができる。
An NC program creation device for creating an NC program to be output to an NC machine tool from shape data created by a CAD device as a configuration for solving the above-mentioned problem, a machining procedure corresponding to the shape data, a machining method, a tool used, tool shape, a machining information memory means for storing processing information including the processing conditions, and machining route creating means for creating a machining path based on the shape data and machining information, the predetermined position before or after the machining path A format file storage means for storing a format file in which the NC program format is formatted with a part as a variable, a format file reading means for reading the format file from the format file storage means and creating machining data , Variable conversion means for replacing variables in the format file included in the data with numerical values based on the machining information is adopted .
According to this configuration, a format file in which the NC program format is formatted is stored in the format file storage means, and the format file reading means reads the format file together with the machining path created by the machining path creation means, Since the NC program can be created simply by arranging the format files before and after, the NC program can be created without going through complicated steps.

NCプログラム作成装置の構成を示すブロック図。The block diagram which shows the structure of NC program creation apparatus. CAM処理手段により作成される加工データの例示図。The illustration figure of the process data created by the CAM processing means. 形式ファイル記憶手段に記憶される形式ファイル群の例示図。FIG. 4 is an exemplary diagram of a format file group stored in a format file storage unit. 加工工程に対して読み出される工具交換形式ファイルの例示図。The example figure of the tool exchange format file read with respect to a process. 加工データの作成からNCプログラムの作成までの工程図。Process diagram from creation of machining data to creation of NC program. ポスト処理手段の処理工程図。The process figure of a post-processing means.

以下、発明の実施形態を通じて本発明を詳説するが、以下の実施形態は特許請求の範囲に係る発明を限定するものではなく、また実施形態の中で説明される特徴の組合せのすべてが発明の解決手段に必須であるとは限らず、選択的に採用される構成を含むものである。   Hereinafter, the present invention will be described in detail through embodiments of the invention. However, the following embodiments do not limit the invention according to the claims, and all combinations of features described in the embodiments are included in the invention. It is not necessarily essential to the solution, but includes a configuration that is selectively adopted.

図1は、NCプログラム作成装置1の構成を示すブロック図である。
NCプログラム作成装置1は、CAD装置2から出力される形状データに基づいて加工経路及び加工情報を含む加工データを作成するCAM処理手段3と、CAM処理手段3によって作成された加工データを加工に使用されるNC工作機械10毎に最適なNCプログラムに変換するポスト処理手段4と、NCプログラムを形式化した後述の複数種類の形式ファイルを記憶する形式ファイル記憶手段5とにより構成される。
NCプログラム作成装置1は、CAM処理及びポスト処理を実行するコンピュータであり、演算処理手段としてのCPU、記憶手段としてのROM,RAM及びHDD、通信手段としてのインターフェイスを含み、記憶手段に格納されたプログラムに基づいて動作する。
FIG. 1 is a block diagram showing the configuration of the NC program creation device 1.
The NC program creation device 1 creates machining data including machining paths and machining information based on the shape data output from the CAD device 2, and machining data created by the CAM processing device 3. The post processing unit 4 converts the NC program into an optimum NC program for each NC machine tool 10 to be used, and the format file storage unit 5 stores a plurality of types of format files to be described later in which the NC program is formalized.
The NC program creation device 1 is a computer that executes CAM processing and post processing, and includes a CPU as arithmetic processing means, ROM, RAM and HDD as storage means, and an interface as communication means, and is stored in the storage means. Operates based on the program.

CAD装置2は、例えば、CADソフトウェアを実行するコンピュータであり、演算処理手段としてのCPU、記憶手段としてのROM,RAM及びHDD、通信手段としてのインターフェイスを含み、記憶手段に格納されたプログラムに基づいて動作する。
CAD装置2は、当該CAD装置2を用いて作図された加工部品の例えば、3次元の形状モデルを数値的な形状データに変換し、NCプログラム作成装置1に出力する。形状データは、形状モデルの外郭形状や、外郭形状によって囲まれる面形状を数値的に表したものである。形状データは、形状モデルとともにCAD装置2に基本データとして記憶される。なお、形状データは、パラメトリックデータであっても、非パラメトリックデータであっても良い。パラメトリックデータとは、距離や長さ、角度などが数値ではなく変数で定義された図形データであって、変数を入れ替えることで図形を容易に変更することができる図形データ様式である。
The CAD device 2 is, for example, a computer that executes CAD software, and includes a CPU as arithmetic processing means, ROM, RAM, and HDD as storage means, and an interface as communication means, and is based on a program stored in the storage means. Works.
The CAD device 2 converts, for example, a three-dimensional shape model of a processed part drawn using the CAD device 2 into numerical shape data and outputs the numerical shape data to the NC program creation device 1. The shape data numerically represents the outer shape of the shape model and the surface shape surrounded by the outer shape. The shape data is stored as basic data in the CAD device 2 together with the shape model. The shape data may be parametric data or non-parametric data. Parametric data is graphic data in which distance, length, angle, and the like are defined by variables rather than numerical values, and is a graphic data format in which a graphic can be easily changed by exchanging variables.

CAM処理手段3は、CAD装置2によって作成された形状データに基づき加工データを作成する。CAM処理手段3は、形状データに対応する加工手順、加工方法、使用工具、工具形状、加工条件を含む加工情報を記憶する加工情報記憶手段31と、形状データと加工情報とに基づいて加工データを作成する加工経路作成手段32と、後述の形式ファイル記憶手段5が記憶する形式ファイルを読み込む形式ファイル読込手段33を備える。   The CAM processing unit 3 creates machining data based on the shape data created by the CAD device 2. The CAM processing unit 3 includes a machining information storage unit 31 that stores machining information including a machining procedure, a machining method, a tool used, a tool shape, and machining conditions corresponding to the shape data, and machining data based on the shape data and the machining information. The processing path creation means 32 for creating the file and the format file reading means 33 for reading the format file stored in the format file storage means 5 described later.

図2は、CAM処理手段3により作成される加工データの一例を示す。
加工データは、加工情報記憶手段31に記憶される加工情報の加工手順に基づいて、加工経路作成手段32により例えば、複数の加工工程(1)乃至(4)を含むように作成される。加工経路作成手段32は、加工における加工素材に対する工具のアプローチ動作等の加工動作を自動的に設定し、例えば、金型を切削加工するときの素材である被加工物に対して工具が通過する加工経路を算出する。加工経路は、加工工程毎に設定され、加工方法に適した工具形状の工具が使用工具として選択される。なお、加工における加工素材に対する工具のアプローチ動作等とは、工具が被加工物に対して接触しないようにアプローチする動作や、被加工物に対する工具の姿勢を制御する動作等を示す。
また、加工経路には、使用工具による加工が加工条件を満たすように最適な工具回転速度や送り速度が自動で設定される。例えば、加工工程には、荒削り、仕上げ、外形削り等の工程が挙げられる。
FIG. 2 shows an example of processing data created by the CAM processing means 3.
The machining data is created by the machining path creation means 32 so as to include, for example, a plurality of machining steps (1) to (4) based on a machining procedure of machining information stored in the machining information storage means 31. The machining path creation means 32 automatically sets a machining operation such as a tool approach operation for a machining material in machining, for example, the tool passes through a workpiece that is a material when cutting a die. Calculate the machining path. The machining path is set for each machining process, and a tool having a tool shape suitable for the machining method is selected as a tool to be used. In addition, the approach operation | movement of the tool with respect to the process raw material in a process shows the operation | movement which approaches so that a tool may not contact with a workpiece, the operation | movement which controls the attitude | position of the tool with respect to a workpiece.
In addition, the optimum tool rotation speed and feed speed are automatically set in the machining path so that the machining with the tool used satisfies the machining conditions. For example, the machining process includes processes such as roughing, finishing, and external cutting.

形式ファイル読込手段33は、加工経路作成手段32により作成された加工経路に対応する後述の形式ファイル群を読み出して加工データを作成する。具体的には、形式ファイル読込手段33は、加工経路を構成する各加工工程に適した形式ファイルを読み込み、各加工工程の前後の所定の位置に形式ファイルを出力することにより加工データが作成される。   The format file reading means 33 reads a later-described format file group corresponding to the machining path created by the machining path creation means 32 and creates machining data. Specifically, the format file reading means 33 reads the format file suitable for each machining process constituting the machining path, and outputs the format file at a predetermined position before and after each machining process, thereby creating machining data. The

ポスト処理手段4は、変数変換手段41と、NCコード変換手段42とを備え、CAM処理手段3から出力される加工データと加工情報とに基づいてNCプログラムを作成する。変数変換手段41は、加工データの形式ファイルにおいて変数で表記された部分の数値変換を行う。例えば、図4に示すように、工具交換形式ファイルの場合、CAM処理手段3により読み出された工具交換形式ファイルの変数[A1]、[A2]が、加工情報に含まれる工具変数[A1]、[A2]、・・・に対応する工具番号に置き換えられる。即ち、変数変換手段41は、CAM処理手段3から出力される加工データの変数部分に加工情報に基づいた数値、換言すれば、工具番号を代入する。よって、ポスト処理手段4では、NCプログラムの形式ファイルに相当する部分を作成する必要がないので、ポスト処理にかかる負担を減少させることができる。
NCコード変換手段42は、各加工工程において一般座標や被加工物を基準とした座標を基準として記述される工具経路をNCコードに変換するとともにNC工作機械の機械座標に変換する。つまり、CAM処理手段3で生成された工具経路をNCプログラムにおける加工プログラム文に変換する。
The post processing means 4 includes a variable conversion means 41 and an NC code conversion means 42, and creates an NC program based on the machining data and machining information output from the CAM processing means 3. The variable conversion means 41 performs numerical conversion of a portion represented by a variable in the machining data format file. For example, as shown in FIG. 4, in the case of a tool change format file, the variables [A1] and [A2] of the tool change format file read by the CAM processing means 3 are tool variables [A1] included in the machining information. , [A2],... That is, the variable conversion means 41 substitutes a numerical value based on the machining information, in other words, a tool number, into the variable portion of the machining data output from the CAM processing means 3. Therefore, since the post processing means 4 does not need to create a portion corresponding to the NC program format file, the burden on post processing can be reduced.
The NC code conversion means 42 converts a tool path described with reference to general coordinates and coordinates based on the workpiece in each machining step to NC codes and also to machine coordinates of the NC machine tool. That is, the tool path generated by the CAM processing unit 3 is converted into a machining program sentence in the NC program.

図3は、形式ファイル記憶手段5に記憶される形式ファイル群の一例を示す。
形式ファイル記憶手段5は、NCプログラムの作成対象たるNC工作機械の加工機軸数に対応して前記形状データから工具の加工経路を作成する動作、被加工物に対する工具のアプローチ動作等以外のNCプログラムの書式を部分的に分割してプログラム文を形式化した複数の形式ファイルを記憶する。
形式ファイルには、例えば、NCプログラム全体に対するヘッダー形式を記述した総合ヘッダー形式ファイル、工具の交換を指示する工具交換指令形式を記述した工具交換形式ファイル、加工工程の前に記述される工程ヘッダー形式を記述した工程ヘッダー形式ファイル、工程ヘッダー形式に対応し、加工工程の後に記述される工程フッター形式を記述した工程フッター形式ファイル、総合ヘッダー形式ファイルに対応する総合フッター形式ファイルが含まれる。上記形式ファイルは、形状データ毎に形式ファイル群としてNCプログラム作成装置1に記憶される。なお、形式ファイルの種類は上記に限らず、適宜形式化することができる。
FIG. 3 shows an example of a format file group stored in the format file storage means 5.
The format file storage means 5 is an NC program other than an operation for creating a machining path of a tool from the shape data corresponding to the number of machine tool axes of an NC machine tool for which an NC program is to be created, a tool approach operation for a workpiece, etc. A plurality of format files in which the program sentence is formalized by partially dividing the format is stored.
The format file includes, for example, a comprehensive header format file describing the header format for the entire NC program, a tool change format file describing a tool change command format for instructing tool replacement, and a process header format described before the machining process The process header format file corresponding to the process header format, the process footer format file describing the process footer format described after the machining process, and the comprehensive footer format file corresponding to the comprehensive header format file are included. The format file is stored in the NC program creation device 1 as a format file group for each shape data. The type of format file is not limited to the above, and can be appropriately formatted.

総合ヘッダー形式ファイルは、加工データの全般に対するヘッダーを所定の書式で形式化したものであって、テキストデータとして記述される。例えば、加工プログラムのファイル名や、機械座標における加工原点の設定、加工原点に対する工具の移動の指示等の設定が記述される。
工具交換形式ファイルは、加工に使用する工具の交換を指示するための形式を所定の書式で形式化したものであって、テキストデータとして記述される。具体的には、JISに規定されるGコードにより表わされるワークの使用座標系、例えば、G54、G55、G56、G57等に対応して工具交換形式ファイルが選択されて読み出される。本例では、使用座標系がG54及びG55のときには、工具交換形式ファイルα1が選択され、G56のときには工具交換形式ファイルα2が選択され、G57のときには工具交換形式ファイルα3が選択される。なお、特殊な工具を使用する場合には、工具交換形式ファイルα4が選択される。各工具交換形式ファイルα1乃至α4において、工具交換形式ファイルによって交換指令が出力される工具は、工具番号が変数[A1],[A2]、・・・、[Ak]等として例えば、通し符号となるように表記される。
図4は、加工工程(1)に対して読み出される工具交換形式ファイルα1の一例を示す。例えば、工具交換形式ファイルα1では、2回の工具の交換の記述がある。そこで、CAM処理手段3では、工具交換形式ファイルα1の工具番号記述欄に、工具変数[A1],[A2]のように記述する。
The general header format file is obtained by formatting the header for the entire processing data in a predetermined format, and is described as text data. For example, the file name of the machining program, the setting of the machining origin in the machine coordinates, and the setting of the tool movement instruction with respect to the machining origin are described.
The tool exchange format file is a format for instructing the exchange of the tool used for machining in a predetermined format, and is described as text data. Specifically, a tool change format file is selected and read corresponding to the work coordinate system represented by the G code defined in JIS, for example, G54, G55, G56, G57 and the like. In this example, when the use coordinate system is G54 and G55, the tool change format file α1 is selected, when G56 is selected, the tool change format file α2 is selected, and when G57, the tool change format file α3 is selected. When a special tool is used, the tool exchange format file α4 is selected. In each of the tool exchange format files α1 to α4, a tool for which an exchange command is output by the tool exchange format file has a tool number as a variable [A1], [A2],. It is expressed as follows.
FIG. 4 shows an example of the tool change format file α1 read for the machining step (1). For example, in the tool change format file α1, there is a description of tool change twice. Therefore, the CAM processing means 3 describes the tool variables [A1] and [A2] in the tool number description column of the tool exchange format file α1.

工程ヘッダー形式ファイルは、各工程の工具経路の前に記述されるヘッダーを所定の書式で形式化したものであって、テキストデータとして記述される。工程ヘッダー形式ファイルは、加工工程の工程名や、加工工程における工具の移動指示や座標系の設定などが記述される。工程ヘッダー形式ファイルの書式内容は、加工方法と使用座標系によって異なる。本例の加工方法では、ミーリングと旋削とのいずれかから選択される。そして、選択された加工方法の使用座標系によってそれぞれ異なる工程ヘッダー形式ファイルが選択され、読み出される。具体的には、加工方法がミーリングで使用座標系がG54のときには工程ヘッダー形式ファイルβ1が選択され、G55のときには工程ヘッダー形式ファイルβ2、G56のときには工程ヘッダー形式ファイルβ3、G57のときには工程ヘッダー形式ファイルβ4が選択される。また、加工方法が旋削で使用座標系がG54のときには工程ヘッダー形式ファイルβ5、G55のときには工程ヘッダー形式ファイルβ6、G56のときには工程ヘッダー形式ファイルβ7、G57のときには工程ヘッダー形式ファイルβ8が選択される。
工程フッター形式ファイルは、各工程の工具経路の後に記述されるフッターを所定の書式で形式化し、テキストデータとして記述したものである。工程フッター形式の書式内容は、加工方法によって異なり、例えば、加工方法がミーリングのときには工程フッター形式ファイルγ1が選択され、加工方法が旋削のときには工程フッター形式ファイルγ2が選択され、読み出される。
総合フッター形式ファイルは、NCプログラムの全般に対するフッター形式を所定の書式で形式化し、テキストデータとして記述したものである。総合フッター形式ファイルは、総合ヘッダー形式ファイルに記述される内容を解除したり、NCプログラムの終了を指示する内容が記述される。
なお、テキストデータとは、NCプログラムの作成者が直接的に理解しうる言語、または、NCコードにより記述されることを示す。NCプログラムを作成するNC工作機械のコンピュータに理解可能なコンピュータ言語によりプログラムを作成し、形式化したものであっても良い。
The process header format file is formed by formatting the header described before the tool path of each process in a predetermined format, and is described as text data. The process header format file describes a process name of a machining process, a tool movement instruction in the machining process, a coordinate system setting, and the like. The format contents of the process header format file differ depending on the processing method and the coordinate system used. In the machining method of the present example, either milling or turning is selected. Then, different process header format files are selected and read depending on the coordinate system used for the selected processing method. Specifically, the process header format file β1 is selected when the machining method is milling and the coordinate system used is G54, the process header format file β2 when G55, the process header format file β3 when G56, and the process header format when G57. File β4 is selected. When the machining method is turning and the coordinate system used is G54, the process header format file β5 is selected. When G55 is used, the process header format file β6 is selected. When G56 is used, the process header format file β7 is selected. .
The process footer format file is formed by formatting the footer described after the tool path of each process in a predetermined format and describing it as text data. The format of the process footer format differs depending on the machining method. For example, the process footer format file γ1 is selected when the machining method is milling, and the process footer format file γ2 is selected and read when the machining method is turning.
The general footer format file is a text data format in which the footer format for the entire NC program is formatted in a predetermined format. In the general footer format file, the contents described in the general header format file are released, or the contents for instructing the end of the NC program are described.
Note that the text data indicates that the NC program creator is described in a language or NC code that can be directly understood. The program may be created and computerized in a computer language that can be understood by the computer of the NC machine tool that creates the NC program.

即ち、NCプログラムは、所定の書式が規定されているため、1つのNCプログラムに対して複数回同様の書式が要求される。そこで、複数回使用される書式を形式ファイルとして予め作成しておき、CAM処理手段3において、加工データ作成手段32が作成する加工経路に対応する形式ファイルを順次読み込ませることにより加工データを作成し、ポスト処理に係る負担を軽減させることが可能となる。また、各形式ファイルにおいて、異なる部分のみを変数で記述することにより、同一形式の形式ファイルを繰り返し使用することを可能とする。また、各形式ファイルは、異なる形状データのNCプログラム作成時にも使用できるため、新たな加工モデルに対するNCプログラムを作成する工程を高速化することができる。   That is, since the NC program has a predetermined format, the same format is required for one NC program a plurality of times. Therefore, a format used multiple times is created in advance as a format file, and the CAM processing means 3 creates machining data by sequentially reading the format file corresponding to the machining path created by the machining data creation means 32. It is possible to reduce the burden on post processing. Moreover, in each format file, only a different part is described with a variable, so that the same format file can be used repeatedly. Further, since each format file can be used when creating NC programs with different shape data, the process of creating an NC program for a new machining model can be speeded up.

図5は、CAM処理手段3による加工データの作成工程からポスト処理手段4を経てNCプログラムが作成されるまでの工程図である。図6は、ポスト処理手段4の処理工程を示す。
以下、NCプログラム作成装置1によるNCプログラムの作成手順について説明する。
まず、CAM処理手段3が、CAD装置2から出力された加工部品の形状データに対応する加工情報を読み出し、形状データと加工情報とに基づいて加工工程(1)〜(4)毎の工具経路(1)〜(4)を作成する。工具経路(1)〜(4)には、加工方法、使用座標系、使用工具、加工条件がNCコードにより記述される。
次に、形式ファイル読込手段33は、加工工程(1)〜(4)毎の工具経路(1)〜(4)の前後に形式ファイルの読み込みを行う。具体的には、工具経路(1)に記述される加工方法、使用座標系、使用工具に基づいて、工具経路(1)よりも前に、総合ヘッダー形式ファイル、工具交換形式ファイルα1、工程ヘッダー形式ファイルβ1の順に読み込みを行い、工具経路(1)の後に工程フッター形式ファイルγ1を読み込む。
また、工具経路(2)に記述される加工方法、使用座標系、使用工具に基づいて、工具経路(2)の前に、工程ヘッダー形式ファイルβ2の読み込みを行い、工具経路(2)の後に工程フッター形式ファイルγ1を読み込む。なお、工具経路(1)及び工具経路(2)では、使用工具が共に同一の工具“A”が指定されているため、工具経路(2)の加工に関しては、工具交換形式ファイルの読み出しを行わない。
また、工具経路(3)に記述される加工方法、使用座標系、使用工具に基づいて、工具経路(3)の前に、工具交換形式ファイルα2、工程ヘッダー形式ファイルβ2の読み込みを行い、工具経路(3)の後に工程フッター形式ファイルγ1を読み込む。
また、工具経路(4)に記述される加工方法、使用座標系、使用工具に基づいて、工具経路(4)の前に、工具交換形式ファイルα3、工程ヘッダー形式ファイルβ8の読み込みを行い、工具経路(4)の後に工程フッター形式ファイルγ2を読み込む。
そして、工程フッター形式ファイルγ2の後に、総合フッター形式ファイルを読み込むことで加工データが作成される。
FIG. 5 is a process diagram from the machining data creation step by the CAM processing means 3 to the NC program creation via the post processing means 4. FIG. 6 shows the processing steps of the post processing means 4.
The NC program creation procedure by the NC program creation device 1 will be described below.
First, the CAM processing means 3 reads machining information corresponding to the shape data of the machined part output from the CAD device 2, and the tool path for each of the machining steps (1) to (4) based on the shape data and the machining information. (1) to (4) are created. In the tool paths (1) to (4), the machining method, the used coordinate system, the used tool, and the machining conditions are described by NC codes.
Next, the format file reading means 33 reads the format file before and after the tool paths (1) to (4) for each of the machining steps (1) to (4). Specifically, based on the machining method described in the tool path (1), the coordinate system used, and the tool used, the comprehensive header format file, tool exchange format file α1, process header before the tool path (1) The format file β1 is read in the order, and the process footer format file γ1 is read after the tool path (1).
Also, based on the machining method, use coordinate system, and tool used described in the tool path (2), the process header format file β2 is read before the tool path (2), and after the tool path (2). Read the process footer format file γ1. Note that, in the tool path (1) and the tool path (2), the same tool “A” is specified for the tool to be used. Therefore, the tool exchange format file is read for machining the tool path (2). Absent.
Also, based on the machining method described in the tool path (3), the coordinate system used, and the tool used, the tool exchange format file α2 and the process header format file β2 are read before the tool path (3), and the tool The process footer format file γ1 is read after the path (3).
Also, based on the machining method described in the tool path (4), the coordinate system used, and the tool used, the tool exchange format file α3 and the process header format file β8 are read before the tool path (4), and the tool After the route (4), the process footer format file γ2 is read.
Then, after the process footer format file γ2, the processing data is created by reading the comprehensive footer format file.

次に、CAM処理手段3によって作成された加工データと加工情報とが、ポスト処理手段4に出力される。
ポスト処理手段4では、加工データの変数で表わされた部分に、番号付けされた使用工具の工具番号を代入する。また、各加工工程(1)〜(4)に記述される使用座標系をNC工作機械の機械座標系に変換し、NCプログラムを作成する。そして、NCプログラムは、ネットワークや記憶媒体を介してポスト処理手段4からNC工作機械10に出力される。
Next, the machining data and machining information created by the CAM processing unit 3 are output to the post processing unit 4.
In the post processing means 4, the tool number of the numbered tool to be used is substituted into the part represented by the machining data variable. Further, the used coordinate system described in each of the machining steps (1) to (4) is converted into the machine coordinate system of the NC machine tool to create an NC program. The NC program is output from the post processing means 4 to the NC machine tool 10 via a network or a storage medium.

以上説明したように、CAM処理手段3とポスト処理手段4とは別に、NCプログラム作成装置1に複数の形式ファイルを記憶させておき、CAM処理手段3による加工データの作成時に形式ファイルをCAM処理手段3に読み込ませて加工データを作成することにより、ポスト処理手段4によりNCプログラムを作成するときの負担を軽減することができる。
即ち、従来のNCプログラム作成装置では、CAM処理手段により加工経路のみが作成された加工データをポスト処理手段が加工データにおける加工経路以外のプログラム部分を作成するとともに、加工経路をNC工作機械に最適なNCプログラムとなるように処理していたため、ポスト処理手段に係る負担が大きかった。そこで、本発明のように、NC工作機械の加工機軸の構成に合わせた加工経路の変換作業及びアプローチ動作以外のNCプログラムの書式を形式化した形式ファイルをCAM処理手段3やポスト処理手段4とは別に構成し、CAM処理手段3による加工データの作成時に形式ファイルを読み込んで、形式的にNCプログラムに必要な構成を整え、ポスト処理手段4によって加工データにおける変数部分を加工情報に基づいて数値を代入することで、NCプログラムを作成することができる。
よって、ポスト処理手段4にかかる負担を軽減させることができる。また、形式ファイルをNCプログラムでも直接利用可能なGコード、Mコード等のNCコードにより記述しておくことで、CAM処理手段3やポスト処理手段4で言語変換を行う必要がないため、形状データに変更が加えられたときでも、形式ファイルに変更を加えることで、容易に対応することができる。つまり、従来は、ポスト処理手段4で実行されるCAMソフトウェアと例えば対話形式によりオペレータが処理することによりNCプログラムを作成していたため、ポスト処理の変更による影響を可視化することができなかったが、本発明の方法によれば、NCプログラムを作成する書式が形式化され、テキストデータにより記述した形式で予め用意されているので、形状データ、加工方法に変更があったときでも、形式データに容易に変更を加えることを可能とするとともにNCプログラムの作成を容易に行うことが可能となる。
As described above, a plurality of format files are stored in the NC program creation device 1 separately from the CAM processing means 3 and the post processing means 4, and the format files are CAM processed when the machining data is created by the CAM processing means 3. By creating the machining data by reading the data into the means 3, it is possible to reduce the burden when the NC program is created by the post processing means 4.
That is, in the conventional NC program creation device, the post processing means creates a program part other than the machining path in the machining data from the machining data in which only the machining path is created by the CAM processing means, and the machining path is optimal for the NC machine tool. Since the processing was performed so as to be a proper NC program, the burden on the post processing means was large. Therefore, as in the present invention, a format file in which the format of the NC program other than the machining path conversion operation and the approach operation in accordance with the configuration of the machine tool axis of the NC machine tool is formalized as the CAM processing means 3 and the post processing means 4. Separately configured, the format file is read when the machining data is created by the CAM processing means 3, and the configuration necessary for the NC program is prepared formally, and the variable portion in the machining data is numerically calculated based on the machining information by the post processing means 4. An NC program can be created by substituting.
Therefore, the burden on the post processing means 4 can be reduced. In addition, since the format file is described by NC codes such as G code and M code that can be directly used in the NC program, it is not necessary to perform language conversion by the CAM processing means 3 or the post processing means 4, so that the shape data Even when a change is made to, it can be easily handled by changing the format file. That is, conventionally, since the NC program is created by the operator processing the CAM software executed by the post processing means 4 in an interactive format, for example, the influence of the change of the post processing could not be visualized. According to the method of the present invention, since the format for creating the NC program is formalized and prepared in advance in the format described by text data, the format data can be easily converted even when there is a change in the shape data and the processing method. It is possible to make changes to the NC program and to easily create the NC program.

なお、上記形態において、CAD装置2は、NCプログラム作成装置1とは、異なるコンピュータにより構成するとして説明したが、CAD装置2とNCプログラム作成装置1とを1つのコンピュータで構成しても良い。また、NCプログラム作成装置1が、CAM処理手段3とポスト処理手段4と形式ファイル記憶手段5とを備えるように構成したが、CAM処理手段3と、ポスト処理手段4と、形式ファイル記憶手段5とを別々のコンピュータで構成し、互いに情報の送受信が可能なネットワークを構成しても良い。   In the above embodiment, the CAD apparatus 2 is described as being configured by a computer different from the NC program creating apparatus 1, but the CAD apparatus 2 and the NC program creating apparatus 1 may be configured by one computer. Further, the NC program creation device 1 is configured to include the CAM processing unit 3, the post processing unit 4, and the format file storage unit 5. However, the CAM processing unit 3, the post processing unit 4, and the format file storage unit 5 are provided. May be configured by separate computers, and a network capable of transmitting and receiving information to each other may be configured.

以上、本発明を実施形態を用いて説明したが、本発明の技術的範囲は上記実施形態に記載の範囲には限定されない。上記実施形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。そのような変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiments. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

1 NCプログラム作成装置、2 CAD装置、3 CAM処理手段、
4 ポスト処理手段、5 形式ファイル記憶手段、31 加工情報記憶手段、
32 加工経路作成手段、33 形式ファイル読込手段、41 変数変換手段、
42 NCコード変換手段。
1 NC program creation device, 2 CAD device, 3 CAM processing means,
4 post processing means, 5 format file storage means, 31 processing information storage means,
32 machining path creation means, 33 format file reading means, 41 variable conversion means,
42 NC code conversion means.

Claims (1)

CAD装置により作成される形状データからNC工作機械に出力するNCプログラムを作成するNCプログラム作成装置であって、
形状データに対応する加工手順、加工方法、使用工具、工具形状、加工条件を含む加工情報を記憶する加工情報記憶手段と
記形状データと加工情報とに基づいて加工経路を作成する加工経路作成手段と、
前記加工経路の前、又は後の所定の位置に出力され、一部を変数としてNCプログラムの書式を形式化した形式ファイルを記憶する形式ファイル記憶手段と、
前記形式ファイルを前記形式ファイル記憶手段から読み出して加工データを作成する形式ファイル読込手段と
前記加工データに含まれる前記形式ファイルの前記変数を前記加工情報に基づく数値に置き換える変数変換手段と、
を備えることを特徴とするNCプログラム作成装置。
An NC program creation device for creating an NC program to be output to an NC machine tool from shape data created by a CAD device,
Processing information storage means for storing processing information including processing procedures, processing methods, tools used, tool shapes, processing conditions corresponding to the shape data ;
And machining route creating means for creating a machining path based on the previous SL shape data and processing information,
Format file storage means for storing a format file that is output to a predetermined position before or after the machining path and that formats the NC program format with a part as a variable;
A format file reading means for reading the format file from the format file storage means and creating machining data ;
Variable conversion means for replacing the variables of the format file included in the processing data with numerical values based on the processing information;
An NC program creation device comprising:
JP2011010186A 2011-01-20 2011-01-20 NC program creation device Expired - Fee Related JP5763352B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011010186A JP5763352B2 (en) 2011-01-20 2011-01-20 NC program creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011010186A JP5763352B2 (en) 2011-01-20 2011-01-20 NC program creation device

Publications (2)

Publication Number Publication Date
JP2012150728A JP2012150728A (en) 2012-08-09
JP5763352B2 true JP5763352B2 (en) 2015-08-12

Family

ID=46792900

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011010186A Expired - Fee Related JP5763352B2 (en) 2011-01-20 2011-01-20 NC program creation device

Country Status (1)

Country Link
JP (1) JP5763352B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7301486B1 (en) 2021-12-22 2023-07-03 Dmg森精機株式会社 Information processing device and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1083213A (en) * 1996-09-10 1998-03-31 Mitsubishi Heavy Ind Ltd Method for generating machining data
JP3692981B2 (en) * 2000-07-31 2005-09-07 株式会社豊田中央研究所 Integrated CAM system, NC data consistent generation method, machining design system and program, machining data generation apparatus and program
JP2003117773A (en) * 2001-10-10 2003-04-23 Canon Inc Nc data forming device
JP4063180B2 (en) * 2003-09-01 2008-03-19 株式会社ジェイテクト Mold processing step determination device, mold processing step determination method, mold processing step determination program, computer-readable recording medium recording the program, NC data creation device, and machine tool control device

Also Published As

Publication number Publication date
JP2012150728A (en) 2012-08-09

Similar Documents

Publication Publication Date Title
US9836039B2 (en) Method and system for simulating a work process on a machine tool
JP5414948B1 (en) Numerical controller
CN104932421B (en) A kind of work of numerical control machine process CPS modeling methods based on instruction domain analysis
US20090164038A1 (en) Method for optimizing the machining process in a machine
JP5436731B1 (en) Numerical control machining program creation device
CN102591261B (en) Multilayer numerical control programming method for flexible hole formation on large-scale wing part
JP2015519658A (en) An automated method for milling complex channel cavities.
JP2017191541A (en) Parameter setting device, parameter setting program, and parameter setting method
WO2001002914A1 (en) Method for writing nc program and nc machining system
US10423152B2 (en) Information processing apparatus for processing machining information between plurality of manufacturing cells
JP5436733B1 (en) Numerical control machining program creation device
JP2005309713A (en) Process design supporting system and method
JP5763352B2 (en) NC program creation device
TW201721317A (en) Cutting path generation method for conversational controller of CNC machine tool which comprises selecting a two-dimensional drawing sheet file of which data are converted into first and second enclosed curves, and based on which an intermediate enclosed fitting curve is generated to form a band-like curved surface
Zhang et al. Process comprehension for interoperable CNC manufacturing
JP6316919B2 (en) Numerical control device for machine tools
Vardhan et al. Multiaxis CNC programming and machining
Solvang et al. STEP-NC based industrial robot CAM system
JP2022101268A (en) Information processing device
Zhang et al. A STEP-compliant method for manufacturing knowledge capture
KR20200065933A (en) Measurement and Management System for Mold Manufacture Machine
US20230315051A1 (en) Post-processor development support device, post-processor development support system, and computer-executable method
Kabir Development of computer aided process planning (CAPP) for rotational parts
Ameddah et al. Impeller tool paths programming for rough machining in an intelligent NURBS STEPNC format
Mwinuka et al. 2D AutoCAD Geometric Data Extraction and Post-Processing for Numerical Control

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141224

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150611

R150 Certificate of patent or registration of utility model

Ref document number: 5763352

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

LAPS Cancellation because of no payment of annual fees