JPH0760605A - Nc sentence preparation method - Google Patents

Nc sentence preparation method

Info

Publication number
JPH0760605A
JPH0760605A JP21377293A JP21377293A JPH0760605A JP H0760605 A JPH0760605 A JP H0760605A JP 21377293 A JP21377293 A JP 21377293A JP 21377293 A JP21377293 A JP 21377293A JP H0760605 A JPH0760605 A JP H0760605A
Authority
JP
Japan
Prior art keywords
machining
work
processing
order
start position
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
JP21377293A
Other languages
Japanese (ja)
Other versions
JP3264054B2 (en
Inventor
Hiroki Sasagawa
裕樹 笹川
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP21377293A priority Critical patent/JP3264054B2/en
Publication of JPH0760605A publication Critical patent/JPH0760605A/en
Application granted granted Critical
Publication of JP3264054B2 publication Critical patent/JP3264054B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate NC sentence editing work, and improve accuracy by recognizing a completed shape of a work, setting work order after a multistage work shape is divided into respective work parts, calculating a work start position and a work finish position with every work order, and preparing an NC sentence based on them. CONSTITUTION:In the case of a three-stage work hole, this is divided into three work parts, and work part numbers to identify the respective work parts are set in the respective divided work parts so that a work having the smallest diameter has the smallest work part number. An offset quantity, an air cut quantity and a work depth when only a part of the respective work parts is going to be worked independently are set for respective work parts, and that in which order what work part is worked is determined from a kind of tool or work accuracy, work processing speed or the like. A distance from the work surface of the work part and distances from the work surfaces of the whole work parts are compared with each other, and a work start position is determined according to an offset quantity, an air cut quantity and a work depth in the work part nearest to the work surface.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、NC工作機械のNC文
を自動作成するNC文作成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an NC statement creating method for automatically creating an NC statement of an NC machine tool.

【0002】[0002]

【従来の技術】NC工作機械は、作業者が手動で行って
いた工作機械の諸操作が自動化されるばかりでなく、手
動操作では困難な加工をも行えるようになることから、
最近ではあらゆる種類の工作機械にNC制御が用いられ
ている。
2. Description of the Related Art In an NC machine tool, not only the operations of a machine tool that are manually performed by an operator are automated, but also it becomes possible to perform difficult machining by manual operation.
Recently, NC control is used in all kinds of machine tools.

【0003】このNC工作機械に用いられるNC文の作
成は、近年、設計データによるワークの完成形状から、
プログラマーがワークの形状や材質、工具の種類などの
基本データを入力することで、コンピュータ処理によ
り、工具経路、切削条件などのNC文を自動作成するこ
とが行われるようになってきた。また、プログラマーの
手を介さずに、設計時のCADやCAMシステム上のデ
ータから直接NC文を自動作成するような方法も試行さ
れている。
In recent years, the NC sentence used in this NC machine tool is created from the completed shape of the work based on the design data.
When a programmer inputs basic data such as the shape and material of a work, the type of tool, etc., NC statements such as tool paths and cutting conditions are automatically created by computer processing. In addition, a method of automatically creating an NC statement directly from data on a CAD or CAM system at the time of design has also been tried without the intervention of a programmer.

【0004】従来のNC文作成方法として、例えば特開
平2−252003号公報には、2段ドリル加工用のN
C文の作成方法が開示されている。この方法は、図8に
示すような2段ドリル穴の加工において、入力された加
工形状データおよび加工条件データから、径の大きい一
段目のドリル穴50を開口した後に、径の小さい2段目
のドリル穴51を開口するとき、一段目ドリル加工で開
けた穴の底部付近P2まで2段目ドリルを早送りするN
C文の作成方法である。
As a conventional NC sentence creating method, for example, Japanese Unexamined Patent Publication No. 252003/1990 discloses N for two-stage drilling.
A method of creating a C sentence is disclosed. According to this method, in machining a two-stage drill hole as shown in FIG. 8, after the first-stage drill hole 50 having a large diameter is opened from the input machining shape data and machining condition data, the second stage having a small diameter is processed. When opening the second drill hole 51, fast-forward the second-stage drill to P2 near the bottom of the hole drilled by the first-stage drill N
This is a method of creating a C sentence.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のNC文作成方法では、多段穴を開ける場合
に、一度に2段もしくはそれ以上の加工ができるステッ
プツールを用いた場合に対する考慮がなされていない。
また、加工順の変更を意識した作成方法となっておら
ず、例えば上述の方法において、先に径の小さい方のド
リル穴を開けて、後から大きい方の穴あけを行う場合に
は用いることができないという問題点があった。
However, in such a conventional NC sentence creating method, consideration is given to the case of using a step tool capable of machining two or more steps at a time when making a multi-step hole. Not not.
In addition, it is not a creation method that is conscious of changing the processing order, and for example, in the above method, it can be used when drilling the smaller diameter drill hole first and then the larger one. There was a problem that it could not be done.

【0006】そこで、本発明は、多段穴加工などを行う
ツールとしてステップツールを用いた場合でも適切なN
C文を作成することができ、また、任意に設定した加工
順や加工順の変更に対応することが可能なNC文作成方
法を提供することである。
Therefore, in the present invention, even when a step tool is used as a tool for performing multi-step hole machining, etc.
It is an object of the present invention to provide an NC statement creation method capable of creating a C statement and capable of handling an arbitrarily set processing order or a modification of the processing order.

【0007】[0007]

【課題を解決するための手段】上記諸目的を解決するた
めの本発明は、NC工作機械によりワークに加工を行う
ためのNC文の作成方法において、前記ワークの完成形
状を入力する段階と、該認識したワークの完成形状から
加工部位を認識する段階と、該加工部位のそれぞれのオ
フセット量、エアカット量および加工深さを算出する段
階と、前記加工部位を加工する加工順を決定する段階
と、該加工順ごとの切削送りでの加工開始位置を、該加
工順に設定されている加工部位のワーク表面からの距離
と全加工部位のワーク表面からの距離とを比較して、該
比較結果が、該加工順より前に行う加工順に該加工部位
よりワーク表面により近い加工部位がない場合には、全
加工部位の中、最もワーク表面に近い加工部位を該加工
順での加工開始位置として、また、前記比較結果が、該
加工順より前に行う加工順に該加工部位よりワーク表面
により近い加工部位がある場合には、該加工順より前の
加工順の中でワーク表面から最も遠い距離の加工部位よ
り一つ遠い距離にある加工部位をもとに該加工順での加
工開始位置として決定する段階と、該加工順に複数の加
工部位が設定された場合に、前記加工開始位置を設定さ
れている加工部位ごとに決定し、複数の加工開始位置の
どれかが未加工の加工部位に接することのない加工開始
位置を選択する段階と、前記加工順ごとに設定された加
工部位のオフセット量、エアカット量および加工深さを
もとに加工終了位置を決定する段階と、よりなることを
特徴とするNC文作成方法である。
SUMMARY OF THE INVENTION The present invention for solving the above-mentioned objects includes a step of inputting a completed shape of a work in a method of creating an NC statement for machining a work by an NC machine tool. A step of recognizing a processed part from the recognized completed shape of the workpiece, a step of calculating an offset amount, an air cut amount and a processing depth of each of the processed parts, and a step of determining a processing order for processing the processed part. And the machining start position in the cutting feed for each machining sequence, comparing the distance from the work surface of the machining site set in the machining sequence and the distance from the work surface of all machining sites, and the comparison result However, if there is no machining site closer to the work surface than the machining site in the machining sequence performed before the machining sequence, the machining site closest to the workpiece surface among all machining sites is the machining start position in the machining sequence. Further, when the comparison result shows that there is a processed portion closer to the work surface than the processed portion in the processing order performed before the processing order, the comparison is performed from the work surface most in the processing order before the processing order. A step of determining a machining start position in the machining order based on a machining site located one distance away from a machining site having a long distance, and the machining start position when a plurality of machining sites are set in the machining order. Is determined for each machining site that is set, and a machining start position where any of the plurality of machining start positions does not contact an unmachined machining site, and the machining site set for each machining sequence And a step of determining a processing end position based on the offset amount, the air cut amount, and the processing depth of the NC statement creating method.

【0008】[0008]

【作用】上述のように構成された本発明は、ワークの完
成形状から一加工単位ごとの加工部位を認識し、各加工
部位ごとにオフセット量、エアカット量および加工深さ
を算出する。
According to the present invention configured as described above, the machining portion for each machining unit is recognized from the completed shape of the workpiece, and the offset amount, the air cut amount, and the machining depth are calculated for each machining portion.

【0009】次いで、加工部位を加工する加工順を決定
して、加工順ごとの切削送りでの加工開始位置および加
工終了位置を求める。
Next, the processing order for processing the processing portion is determined, and the processing start position and processing end position in the cutting feed for each processing order are obtained.

【0010】加工順ごとの切削送りでの加工開始位置を
求めるには、該加工順に設定されている加工部位のワー
ク表面からの距離と全加工部位のワーク表面からの距離
とを比較して、該比較結果が、該加工順より前に行う加
工順に、該加工部位よりワーク表面により近い加工部位
がない場合には、全加工部位の中、最もワーク表面に近
い加工部位のオフセット量、エアカット量および加工深
さをもとに該加工順での加工開始位置を決定し、また、
前記比較結果が、該加工順より前に行う加工順に、該加
工部位よりワーク表面により近い加工部位がある場合に
は、該加工順より前の加工順の中で最も遠い距離の加工
部位より一つ遠い距離にある加工部位のオフセット量、
エアカット量および加工深さをもとに該加工順での加工
開始位置を決定する。
In order to obtain the machining start position in the cutting feed for each machining sequence, the distance from the work surface of the machining site set in the machining sequence and the distance from the work surface of all machining sites are compared, When the comparison result shows that there is no processing site closer to the work surface than the processing site in the processing order performed before the processing sequence, the offset amount and the air cut of the processing site closest to the work surface among all the processing sites. The machining start position in the machining sequence is determined based on the amount and the machining depth, and
When the comparison result shows that there is a processed portion closer to the work surface than the processed portion in the processing order performed before the processing order, the comparison is performed with respect to the processing portion at the farthest distance in the processing order before the processing order. Offset amount of the processing part at a long distance,
The processing start position in the processing sequence is determined based on the air cut amount and the processing depth.

【0011】さらに、一つの加工順に複数の加工部位が
設定されている場合には、前記加工開始位置を設定され
ている加工部位ごとに決定し、複数の加工開始位置のど
れかが未加工の加工部位に接することのない加工開始位
置を選択する。そして、前記加工順ごとに加工部位の加
工量をもとに加工終了位置を決定する。
Further, when a plurality of processing parts are set in one processing order, the processing start position is determined for each set processing part, and one of the plurality of processing start positions is unprocessed. Select a machining start position that does not touch the machining site. Then, the machining end position is determined based on the machining amount of the machining site for each machining sequence.

【0012】[0012]

【実施例】以下、本発明を適用した一実施例を添付した
図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment to which the present invention is applied will be described below with reference to the accompanying drawings.

【0013】本実施例においては、図1に示すように、
3段の穴加工を行う際のNC文を作成する場合を例に説
明する。
In this embodiment, as shown in FIG.
An example will be described in which an NC sentence is created when performing three-step hole machining.

【0014】本発明によるNC文の作成は、まず、CA
Dデータを利用して、ワークの完成形状データを入力す
る。入力されたデータからワークへの加工形状が認識さ
れて、加工条件が設定される。加工条件としては、加工
位置の座標認識、加工部位の分割、分割された各加工部
位の加工穴情報の認識、加工順の設定および加工順ごと
の加工開始位置および加工終了位置の算出が行われ、こ
れらをまとめてNC文として完成させる。
To create an NC sentence according to the present invention, first, CA
The completed shape data of the work is input using the D data. The machining shape of the workpiece is recognized from the input data and the machining conditions are set. Machining conditions include recognition of machining position coordinates, division of machining areas, recognition of machining hole information for each divided machining area, setting of machining order, and calculation of machining start position and machining end position for each machining order. , These are put together and completed as an NC sentence.

【0015】ワーク上の加工位置の座標認識は、ワーク
上のどの部分に加工を行うかの位置決めで、認識された
完成形状から穴基準位置を求める。穴基準位置は、NC
工作機械座標系での穴開け座標、またはNC工作機械の
ツールをワーク上の加工位置まで移動させる際の移動終
了位置であり、図1に示すように、多段加工穴の中心位
置である。
In the coordinate recognition of the machining position on the work, the hole reference position is obtained from the recognized completed shape by locating which part on the work is to be machined. The hole reference position is NC
It is the drilling coordinate in the machine tool coordinate system, or the movement end position when the tool of the NC machine tool is moved to the machining position on the work, and is the center position of the multistage machining hole as shown in FIG.

【0016】加工部位への分割は、図1に示すように、
3段加工穴の場合、径の異なる3つの穴によって形成さ
れているので、3つの加工部位に分割することになる。
そして、分割した各加工部位には、各加工部位を識別す
るための加工部位番号を付与する。加工部位番号は、前
記穴基準位置から最も離れた加工部位から昇順に設定す
る。これにより最も径の小さなものが必然的に最小の加
工部位番号となる。なお、本実施例では図示するよう
に、穴基準位置から最も離れていて、径の最も小さなも
のが加工部位番号、次いで順番に、加工部位番号お
よび加工部位番号となる。
As shown in FIG. 1, the division into processed parts is as follows.
In the case of a three-step processed hole, since it is formed by three holes having different diameters, it is divided into three processed parts.
Then, a processing portion number for identifying each processing portion is given to each of the divided processing portions. The machined part numbers are set in ascending order from the machined part farthest from the hole reference position. As a result, the one having the smallest diameter inevitably becomes the smallest processing site number. In the present embodiment, as shown in the drawing, the processing site number is the one that is farthest from the hole reference position and has the smallest diameter, followed by the processing site number and the processing site number in that order.

【0017】さらに、加工穴情報として、各加工部位ご
とに、各加工部位部分のみを単独で加工しようとした場
合のオフセット量、エアカット量および加工深さを設定
する。ここで、オフセット量は穴基準位置から実切削開
始位置までの距離および方向であり、エアカット量は切
削送り開始位置からワークが実際に切削され始める(実
切削開始位置)までの距離および方向であり、加工深さ
は実切削開始位置からの穴の深さである。
Further, as machining hole information, an offset amount, an air cut amount and a machining depth are set for each machining region when it is attempted to machine only each machining region part. Here, the offset amount is the distance and direction from the hole reference position to the actual cutting start position, and the air cut amount is the distance and direction from the cutting feed start position to the actual cutting start of the workpiece (actual cutting start position). Yes, the machining depth is the depth of the hole from the actual cutting start position.

【0018】加工穴情報設定後、加工順を設定する。加
工順としては、例えば、図2に示すように、どの加工部
位から加工して行くかによって複数の加工順が考えられ
得るので、用いられるツールの種類や加工精度、加工処
理の速度など必要により適宜どの順番でどの加工部位を
加工するかを決定する。
After setting the processing hole information, the processing order is set. As the machining order, for example, as shown in FIG. 2, a plurality of machining orders can be considered depending on which machining site is machined. Therefore, depending on the kind of tool used, machining accuracy, machining speed, etc. It determines which processing part is processed in which order.

【0019】加工順ごとの加工開始位置および加工終了
位置を、以上のように設定された加工穴情報および加工
順をもとに算出する。すなわち、ひとつの加工工程にお
けるツールの切削送り開始位置と終了位置を求める。
The machining start position and machining end position for each machining sequence are calculated based on the machining hole information and machining sequence set as described above. That is, the cutting feed start position and the end position of the tool in one machining process are obtained.

【0020】具体的な各加工順ごとの切削送り開始位置
の算出方法は、対象となる加工順に設定された加工部位
番号(Aと称する)とすべての加工部位番号を比較し、
対象加工順より前の加工順に、加工部位番号Aより大き
な加工部位番号がない場合には、全ての加工部位番号の
中の最大値を選択し、その加工部位番号の加工部位のオ
フセット量およびエアカット量を求める。また、対象加
工順以前の加工順に設定された加工部位番号に、加工部
位番号Aより大きい加工部位番号がある場合には、その
中から最小値の加工部位番号(以下Cと称する)を選択
し、加工部位番号C−1の加工部位番号の加工部位のオ
フセット量、エアカット量を求める。
A specific method for calculating the cutting feed start position for each machining order is to compare the machining site number (referred to as A) set in the target machining sequence with all machining site numbers,
If there is no processing part number larger than the processing part number A in the processing order before the target processing order, the maximum value of all the processing part numbers is selected, and the offset amount and the air of the processing part of the processing part number are selected. Find the cut amount. In addition, when the machining site number set in the machining sequence before the target machining sequence has a machining site number larger than the machining site number A, the smallest machining site number (hereinafter referred to as C) is selected. Then, the offset amount and the air cut amount of the processed portion having the processed portion number C-1 are obtained.

【0021】そして、求めたオフセット量およびエアカ
ット量の組み合わせが1つしかない場合、すなわち、ス
テップツールを用いない場合には、求めたオフセット量
およびエアカット量から加工開始位置を算出する。な
お、加工開始位置は、穴基準位置からオフセット量分進
み、エアカット量分戻った距離である(図1参照)。
When there is only one combination of the calculated offset amount and air cut amount, that is, when the step tool is not used, the machining start position is calculated from the calculated offset amount and air cut amount. The machining start position is a distance that has advanced from the hole reference position by the offset amount and has returned by the air cut amount (see FIG. 1).

【0022】加工を行うためのツールとしてステップツ
ールを用いた場合には、対象となる加工順に複数の加工
部位番号が設定されるが、この場合の加工開始位置の算
出には、まず対象加工順に設定されている複数の加工部
位番号ごとのオフセット量およびエアカット量を、上記
のようにそれぞれ求める。この時点で、複数のオフセッ
ト量とエアカット量の組み合わせが求まる。そして、設
定されている加工部位の加工深さから用いるステップツ
ールのツール基準点を求める。ステップツールの場合複
数のツール基準点がある。求めたツール基準点をそれぞ
れのオフセット量およびエアカット量から算出される加
工開始位置に配置し、一方のツール基準点をその部分の
加工開始位置にあわせたとき、もう一方のツール基準点
の配置される位置が、穴基準位置を0点として負方向に
とった場合の穴基準位置からの距離として、下記(1)
式、 ツール基準点≧加工開始位置 …(1) となる組み合わせを選択する。
When a step tool is used as a tool for machining, a plurality of machining site numbers are set in the target machining order. In this case, the machining start position is calculated in the target machining order first. The offset amount and the air cut amount for each of the plurality of set machining site numbers are obtained as described above. At this point, a combination of a plurality of offset amounts and air cut amounts is obtained. Then, the tool reference point of the step tool to be used is obtained from the set processing depth of the processing portion. For step tools, there are multiple tool reference points. Place the obtained tool reference point at the machining start position calculated from each offset amount and air cut amount, and when aligning one tool reference point with the machining start position of that part, place the other tool reference point The distance from the hole reference position when the position is taken in the negative direction with the hole reference position as 0 point, as shown in (1) below.
Expression, tool reference point ≧ machining start position (1) Select a combination.

【0023】これを図面を用いて説明すると、図3aの
ように、加工部位の加工開始位置aにその加工部位を
加工する部分のツール基準点イをあわせる。そうすると
図示する場合には、加工部位を加工するツール基準点
ロは、ツール基準点ロ<加工開始位置bとなるので、上
記(1)式を満たすことができない。次に図3bのよう
に、加工部位の加工開始位置bにその加工部位を加工
する部分のツール基準点ロをあわせる。そうすると図示
する場合には、加工部位を加工するツール基準点イ
は、ツール基準点イ>加工開始位置aとなるので、上記
(1)式を満たすので、この組み合わせとなる加工開始
位置、すなわち、図示する場合には、加工開始位置bを
このステップツールを用いた加工順での加工開始位置と
する。
This will be described with reference to the drawings. As shown in FIG. 3a, the tool reference point a of the portion to be machined on the machining site is aligned with the machining start position a of the machining site. Then, in the case shown in the figure, the tool reference point b for processing the processing portion is such that the tool reference point b <the processing start position b, and therefore the above formula (1) cannot be satisfied. Next, as shown in FIG. 3b, the tool reference point (b) of the portion where the processing portion is processed is aligned with the processing start position b of the processing portion. Then, in the case shown in the drawing, the tool reference point a for processing the processing portion is tool reference point a> processing start position a, and therefore the above equation (1) is satisfied, so that the processing start position for this combination, that is, In the illustrated case, the processing start position b is the processing start position in the processing sequence using this step tool.

【0024】なお、ツール基準点は、図3cに示すよう
に、加工形状から算出することができ、その加工順に設
定されている複数の加工部位の穴基準位置からそれぞれ
のオフセット量たす加工深さ分の距離がツール基準点と
なる。
The tool reference point can be calculated from the machining shape, as shown in FIG. 3C, and the offset reference amount of each of the plurality of machined parts set in the machining order is added to the machining depth. The distance is the tool reference point.

【0025】次に、加工終了位置の算出は、その加工順
に設定されている加工部位番号中最小の加工部位番号の
加工穴情報から、穴基準位置からオフセット量分進み、
さらに加工深さ分進んだ部分が加工終了位置となる。
Next, the machining end position is calculated by advancing an offset amount from the hole reference position from the machining hole information of the smallest machining site number among the machining site numbers set in the machining order.
The portion further advanced by the machining depth is the machining end position.

【0026】以上のようにして求めた加工順ごとの切削
開始位置、終了位置および穴基準位置から、工作機械座
標系でのツール原点から穴基準位置までツールを移動さ
せるツール移動量、穴基準位置から切削開始位置までツ
ールを進める早送り量、切削開始位置から終了位置まで
切削を行うための切削送り量などを数値データとして得
て、NC文を作成する。
From the cutting start position, the end position and the hole reference position for each machining order obtained as described above, the tool movement amount and the hole reference position for moving the tool from the tool origin to the hole reference position in the machine tool coordinate system. To the cutting start position, the amount of rapid feed for advancing the tool from the cutting start position to the cutting start position, the cutting feed amount for cutting from the cutting start position to the end position, etc. are obtained as numerical data, and an NC sentence is created.

【0027】次に本発明のNC文作成方法を実施するた
めの装置構成について図4に示すブロック図を参照しな
がら説明する。
Next, an apparatus configuration for carrying out the NC sentence creating method of the present invention will be described with reference to the block diagram shown in FIG.

【0028】この装置は、完成形状・コマンド解釈部1
によって、CADデータ20およびキーボード21から
入力された完成形状データおよびコマンドを解釈して、
完成形状データから、工作機械座標系での穴基準位置を
求め、座標系情報記憶部5に記憶させ、工作機械座標系
基準位置(ツール原点)から穴基準位置までの工具経路
を工具経路情報記憶部4に記憶させる。また、完成形状
を各加工部位へ分割し、加工部位番号を付与して、分割
した加工部位のオフセット量、エアカット量および加工
深さなどの数値データを加工穴数値情報記憶部3に記憶
させる。
This device has a completed shape / command interpreting unit 1
Interprets the completed shape data and commands input from the CAD data 20 and the keyboard 21,
The hole reference position in the machine tool coordinate system is obtained from the completed shape data and stored in the coordinate system information storage unit 5, and the tool path information from the machine tool coordinate system reference position (tool origin) to the hole reference position is stored in the tool path information. It is stored in the section 4. In addition, the completed shape is divided into each machining portion, a machining portion number is given, and numerical data such as an offset amount, an air cut amount, and a machining depth of the divided machining portion is stored in the machining hole numerical information storage unit 3. .

【0029】入力されたコマンドからは、各加工部位の
加工順を解釈して、加工順番号とその加工順番号に設定
された加工部位番号を加工順情報記憶部2に記憶させ
る。また、切削条件などの入力は、これを切削条件情報
記憶部6に記憶させる。
The machining order of each machining region is interpreted from the input command, and the machining sequence number and the machining region number set in the machining sequence number are stored in the machining sequence information storage unit 2. Further, the input of the cutting condition or the like is stored in the cutting condition information storage unit 6.

【0030】キーボード21からNC文作成指示が入力
されると、オフセット量エアカット量候補選択部7が加
工順情報記憶部2から加工順番号とその加工順番号に設
定されている加工部位番号を取り出し、また、加工穴数
値情報記憶部3から各加工部位のオフセット量とエアカ
ット量および加工深さのデータを取り出して、各加工順
での加工開始位置をきめるためのオフセット量とエアカ
ット量の候補を選択する。この時、ステップツールを用
いる場合には、複数のオフセット量とエアカット量の組
み合わせが選択される。
When an NC sentence creation instruction is input from the keyboard 21, the offset amount air cut amount candidate selection unit 7 displays the machining sequence number from the machining sequence information storage unit 2 and the machining region number set in the machining sequence number. Also, the offset amount and the air cut amount of each machining portion and the data of the machining depth are retrieved from the machining hole numerical information storage unit 3, and the offset amount and the air cut amount for determining the machining start position in each machining order. Select a candidate for. At this time, when the step tool is used, a combination of a plurality of offset amounts and air cut amounts is selected.

【0031】選択された複数のオフセット量とエアカッ
ト量の組み合わせの中から、最適な組み合わせが、オフ
セット量エアカット量決定部8により決定されて、これ
に基づいて、加工開始位置算出部9が加工開始位置を算
出し、また、加工終了位置算出部10が加工終了位置を
算出する。
An optimum combination is determined by the offset amount air cut amount determination unit 8 from the selected plurality of combinations of the offset amount and the air cut amount, and the processing start position calculation unit 9 is based on this. The processing start position is calculated, and the processing end position calculation unit 10 calculates the processing end position.

【0032】算出された各加工順ごとの加工開始位置お
よび加工終了位置と、工具経路情報、座標系情報および
切削条件情報からNCプログラムがNCプログラム作成
部11によって作成され、NCプログラム記憶部12に
記憶される。なお、これらNCプログラム作成中の状況
は、表示制御部23を介してCRT画面上に表示され
る。
An NC program is created by the NC program creating unit 11 from the calculated machining start position and machining end position for each machining sequence, tool path information, coordinate system information, and cutting condition information, and is stored in the NC program storage unit 12. Remembered. The status of the NC program being created is displayed on the CRT screen via the display control unit 23.

【0033】なお、図4中、各信号線に表示した付号は
その信号線の経路を通るデータまたは信号を示し、a:
情報の入力、b:NCプログラム作成指示、c:オフセ
ット量、エアカット量、穴基準位置(座標値)、d:加
工順番号、加工部位番号、e:加工深さ、f:オフセッ
ト量とエアカット量の組み合わせの候補、g:決定した
オフセット量とエアカット量の組み合わせ、h:オフセ
ット量、i:加工終了位置(座標値)、j:加工開始位
置(座標値)、k:工具経路情報、l:座標系情報、
m:切削条件情報、n:NCプログラム情報である。
In FIG. 4, the symbols attached to the respective signal lines indicate data or signals passing through the route of the signal line, and a:
Input of information, b: NC program creation instruction, c: offset amount, air cut amount, hole reference position (coordinate value), d: machining sequence number, machining site number, e: machining depth, f: offset amount and air Candidates for combination of cut amount, g: combination of determined offset amount and air cut amount, h: offset amount, i: machining end position (coordinate value), j: machining start position (coordinate value), k: tool path information , L: coordinate system information,
m: cutting condition information, n: NC program information.

【0034】次にNCプログラム作成の流れを図5、図
6および図7に示すフローチャートを参照して説明す
る。
Next, the flow of NC program creation will be described with reference to the flow charts shown in FIGS. 5, 6 and 7.

【0035】まず、NCプログラム作成指示が入力され
たなら、加工順番号Dを0クリアして(S1)、Dに1
加え(S2)、この加工順番号の加工順に設定されてい
る加工部位の分の繰り返し動作(S3からS7まで)に
より加工開始位置を算出するためのオフセット量とエア
カット量の組み合わせの候補を選択する。
First, when an NC program creation instruction is input, the machining sequence number D is cleared to 0 (S1) and 1 is added to D.
In addition (S2), a candidate for a combination of the offset amount and the air cut amount for calculating the machining start position is selected by the repeated operation (S3 to S7) for the machining portion set in the machining sequence of this machining sequence number. To do.

【0036】これには、対象加工順番号Dに設定された
加工部位番号Aより大きい加工部位番号を加工順番号未
満の中より全て検索する(S3)。大きい加工部位番号
がある場合には(S4)、加工部位番号Aより大きい加
工部位番号群の中から最小値Cを選択し(S6)、最小
値Cから1引いた加工部位番号に対応するオフセット量
およびエアカット量を選択する(S7)。
For this, all the processing site numbers larger than the processing site number A set in the target processing sequence number D are searched from among the processing site numbers less than the processing sequence number (S3). When there is a large processing part number (S4), the minimum value C is selected from the processing part number group larger than the processing part number A (S6), and the offset corresponding to the processing part number obtained by subtracting 1 from the minimum value C is selected. Amount and air cut amount are selected (S7).

【0037】加工部位番号Aより大きい加工部位番号が
ない場合には(S4)、全加工部位番号の最大値の加工
部位に対応するオフセット量およびエアカット量を選択
する(S5)。
If there is no processing site number larger than the processing site number A (S4), the offset amount and the air cut amount corresponding to the processing site having the maximum value of all the processing site numbers are selected (S5).

【0038】繰り返し動作が終了した後、オフセット量
とエアカット量の組み合わせが複数ある場合には(S
8)、後述するサブモジュールを起動し(S20)、一
つの場合には選択されたオフセット量、エアカット量お
よび穴基準位置から加工開始位置を算出する。
After the repeated operation is completed, if there are a plurality of combinations of the offset amount and the air cut amount (S
8) The sub-module described later is activated (S20), and in one case, the machining start position is calculated from the selected offset amount, air cut amount and hole reference position.

【0039】サブモジュールの動作は(図7参照)、上
記までで複数のオフセット量とエアカット量の組み合わ
せが出た場合に動作し、まず、対象加工順番号Dで指定
された加工部位全てのオフセット量、エアカット量、加
工深さおよび穴基準位置よりツール基準点を算出する
(S21)。
The operation of the sub-module (see FIG. 7) operates when a plurality of combinations of the offset amount and the air cut amount have been produced up to the above. First, all the processing parts designated by the target processing sequence number D are processed. A tool reference point is calculated from the offset amount, the air cut amount, the processing depth and the hole reference position (S21).

【0040】次いで、オフセット量とエアカット量の組
み合わせにより判明する加工開始位置ごとに対応するツ
ール基準点を配置して見る。そして、穴基準位置に対
し、ツール基準点が対応する加工開始位置より離れる側
に配置されるようなオフセット量エアカット量の組み合
わせは排除する(S22)。
Next, the tool reference points corresponding to each machining start position, which is determined by the combination of the offset amount and the air cut amount, are arranged and viewed. Then, the combination of the offset amount and the air cut amount such that the tool reference point is located farther from the corresponding machining start position with respect to the hole reference position is excluded (S22).

【0041】次いで、残った組み合わせの中から、穴基
準位置に対し、最小加工部位番号に対応するツール基準
点がもっと離れる配置関係を選択する(S23)。そし
て、選択されたツール基準点の位置を加工開始点とする
(24)。
Next, from the remaining combinations, the arrangement relationship is selected in which the tool reference point corresponding to the minimum machining site number is farther away from the hole reference position (S23). Then, the position of the selected tool reference point is set as the processing start point (24).

【0042】次に、加工終了位置の決定動作に進み(図
6参照)、対象加工順番号に設定された加工部位番号の
最小値を抽出し(S10)、抽出した加工部位番号に対
応するオフセット量、加工穴深さおよび穴基準位置より
加工終了位置を求める(S11)。
Next, the process proceeds to the operation of determining the machining end position (see FIG. 6), the minimum value of the machining site number set as the target machining sequence number is extracted (S10), and the offset corresponding to the extracted machining site number is extracted. A machining end position is obtained from the amount, the machining hole depth and the hole reference position (S11).

【0043】次いで、加工開始位置、加工終了位置およ
び設定された工具経路から対象加工順のNCプログラム
を作成する(S12)。
Next, an NC program in the target machining order is created from the machining start position, the machining end position and the set tool path (S12).

【0044】最後に全加工順のNCプログラムの作成が
終了したかどうかを判断し(S13)、終了していない
場合には接続子2でステップ2(S2)へ戻り上記動作
を繰り返し、また全加工順ごとのNCプログラム作成が
終了したならばNCプログラム作成動作を終了する。
Finally, it is judged whether or not the creation of the NC program for all machining orders has been completed (S13). If not completed, the connector 2 returns to step 2 (S2) to repeat the above operation, and again. When the NC program creation for each machining order is completed, the NC program creation operation is ended.

【0045】これにより加工順ごとのNCプログラムが
作成され、あとは、これをリンクすることによって、ワ
ークに加工する工作機械のNC文が完成する。
As a result, an NC program for each machining order is created, and thereafter, by linking this, an NC statement of a machine tool for machining a workpiece is completed.

【0046】[0046]

【発明の効果】以上説明したように、本発明のNC文作
成方法によれば、ワークの完成形状を認識し、多段加工
形状を各加工部位に分割し、加工順を設定して、加工順
ごとに適切な加工開始位置および加工終了位置を算出
し、これをもとにNC文を作成することとしたので、一
旦設定した加工順を変更しても、その都度最適な加工開
始位置および終了位置が判明するため、NC文編集作業
の容易化および精度向上が図れる。また、加工条件の変
更や加工形状の変更などにより、多段加工の完成加工の
数値データを修正すると、その都度NC文を自動修正で
きる。
As described above, according to the NC statement creating method of the present invention, the completed shape of the work is recognized, the multi-step machined shape is divided into each machined portion, the machining order is set, and the machining order is set. Since it was decided to calculate the appropriate machining start position and machining end position for each, and to create the NC statement based on this, even if the machining order that was once set was changed, the optimum machining start position and end time would be obtained each time. Since the position is known, the NC sentence editing work can be facilitated and the accuracy can be improved. Further, when the numerical data of the completed machining of the multi-stage machining is corrected by changing the machining conditions or the machining shape, the NC sentence can be automatically corrected each time.

【0047】さらに、設計用ツール(例えばツーリング
設計やCAD、CAMなど)で使用する数値データやデ
ータ定義の設定を利用することにより、設計情報とNC
文との関連が取れるので、NC文作成のための工数を低
減することも可能である。
Further, by using the setting of numerical data and data definition used in a design tool (for example, tooling design, CAD, CAM, etc.), design information and NC can be obtained.
Since the relation with the sentence can be obtained, it is possible to reduce the man-hour for creating the NC sentence.

【図面の簡単な説明】[Brief description of drawings]

【図1】 3段加工穴の形状を説明するための断面図で
ある。
FIG. 1 is a cross-sectional view for explaining the shape of a three-step processed hole.

【図2】 本発明による実施例での加工順の設定例を説
明するための図面である。
FIG. 2 is a diagram for explaining an example of setting a processing order in an embodiment according to the present invention.

【図3】 本発明による実施例でステップツールを用い
た加工順での加工開始位置を説明する断面図である。
FIG. 3 is a cross-sectional view illustrating a machining start position in a machining order using a step tool in an example according to the present invention.

【図4】 本発明による実施例を実行するためのNC文
作成装置の構成を説明するためのブロック図である
FIG. 4 is a block diagram for explaining a configuration of an NC sentence creation device for executing an embodiment according to the present invention.

【図5】 本発明による実施例のNC文作成動作を説明
するためのフローチャートである。
FIG. 5 is a flowchart illustrating an NC sentence creating operation according to an embodiment of the present invention.

【図6】 本発明による実施例のNC文作成動作を説明
するための図5に続くフローチャートである。
FIG. 6 is a flowchart for explaining the NC sentence creating operation of the embodiment according to the present invention, which is a flowchart following FIG. 5;

【図7】 本発明による実施例のNC文作成動作のサブ
モジュールを説明するためのフローチャートである。
FIG. 7 is a flow chart for explaining a sub-module of the NC sentence creating operation of the embodiment according to the present invention.

【図8】 従来のNC文作成方法を説明するための図面
である。
FIG. 8 is a diagram for explaining a conventional NC sentence creating method.

【符号の説明】[Explanation of symbols]

1…完成形状・コマンド解釈部、 2…加工順
情報記憶部、3…加工穴情報記憶部、
4…工具経路情報記憶部、5…座標系情報記憶部、
6…切削条件情報記憶部、7…オフセ
ット量エアカット量候補選択部、8…オフセット量エア
カット量決定部、9…加工開始位置算出部、
10…加工終了位置算出部、11…NCプログラ
ム作成部、 12…NCプログラム記憶部、
20…CADデータ。
1 ... Completed shape / command interpretation unit, 2 ... Machining order information storage unit, 3 ... Machining hole information storage unit,
4 ... Tool path information storage unit, 5 ... Coordinate system information storage unit,
6 ... Cutting condition information storage unit, 7 ... Offset amount air cut amount candidate selection unit, 8 ... Offset amount air cut amount determination unit, 9 ... Machining start position calculation unit,
10 ... Machining end position calculation unit, 11 ... NC program creation unit, 12 ... NC program storage unit,
20 ... CAD data.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 NC工作機械によりワークに加工を行う
ためのNC文の作成方法において、 前記ワークの完成形状を入力する段階と、 該認識したワークの完成形状から加工部位を認識する段
階と、 該加工部位のそれぞれのオフセット量、エアカット量お
よび加工深さを算出する段階と、 前記加工部位を加工する加工順を決定する段階と、 該加工順ごとの切削送りでの加工開始位置を、該加工順
に設定されている加工部位のワーク表面からの距離と全
加工部位のワーク表面からの距離とを比較して、該比較
結果が、該加工順より前に行う加工順に該加工部位より
ワーク表面により近い加工部位がない場合には、全加工
部位の中、最もワーク表面に近い加工部位を該加工順で
の加工開始位置として、また、前記比較結果が、該加工
順より前に行う加工順に該加工部位よりワーク表面によ
り近い加工部位がある場合には、該加工順より前の加工
順の中でワーク表面から最も遠い距離の加工部位より一
つ遠い距離にある加工部位をもとに該加工順での加工開
始位置として決定する段階と、 該加工順に複数の加工部位が設定された場合に、前記加
工開始位置を設定されている加工部位ごとに決定し、複
数の加工開始位置のどれかが未加工の加工部位に接する
ことのない加工開始位置を選択する段階と、 前記加工順ごとに設定された加工部位のオフセット量、
エアカット量および加工深さをもとに加工終了位置を決
定する段階と、よりなることを特徴とするNC文作成方
法。
1. A method for creating an NC sentence for machining a work by an NC machine tool, the step of inputting a completed shape of the work, and the step of recognizing a machined part from the recognized completed shape of the work. A step of calculating an offset amount, an air cut amount, and a processing depth of each of the processing parts; a step of determining a processing order for processing the processing parts; and a processing start position in cutting feed for each processing order, The distances from the work surface of the machining parts set in the machining order are compared with the distances from the work surface of all the machining parts, and the comparison result indicates that the workpieces are processed from the machining part in the machining order performed before the machining order. If there is no machining site closer to the surface, the machining site closest to the workpiece surface among all machining sites is set as the machining start position in the machining sequence, and the comparison result is performed before the machining sequence. When there is a processed portion closer to the workpiece surface than the processed portion in the processing order, the processed portion located one distance away from the processed portion farthest from the workpiece surface in the processing order prior to the processing order is used. And a step of determining a machining start position in the machining order, and when a plurality of machining parts are set in the machining order, the machining start position is determined for each of the set machining parts, and a plurality of machining start positions are set. A step of selecting a machining start position in which any one of them does not come into contact with an unmachined machining site, and an offset amount of the machining site set for each machining sequence,
An NC statement creating method comprising: a step of deciding a processing end position based on an air cut amount and a processing depth.
JP21377293A 1993-08-30 1993-08-30 NC statement creation method Expired - Fee Related JP3264054B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21377293A JP3264054B2 (en) 1993-08-30 1993-08-30 NC statement creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21377293A JP3264054B2 (en) 1993-08-30 1993-08-30 NC statement creation method

Publications (2)

Publication Number Publication Date
JPH0760605A true JPH0760605A (en) 1995-03-07
JP3264054B2 JP3264054B2 (en) 2002-03-11

Family

ID=16644785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21377293A Expired - Fee Related JP3264054B2 (en) 1993-08-30 1993-08-30 NC statement creation method

Country Status (1)

Country Link
JP (1) JP3264054B2 (en)

Also Published As

Publication number Publication date
JP3264054B2 (en) 2002-03-11

Similar Documents

Publication Publication Date Title
US20080109097A1 (en) Machining step generating apparatus
EP1048400A1 (en) Method and apparatus for optimizing nc programs in nc machining
US20030033048A1 (en) Similar machining data searching apparatus and automatic programming apparatus
US5369870A (en) Method for deciding procedure of machining
US5297022A (en) CAD/CAM unit data generating apparatus and process
US5099432A (en) Method for determining machining process in numerical control information generating function
EP0145934B1 (en) Tool display method and device for machining apparatus equipped with numerical control unit
JP3264054B2 (en) NC statement creation method
JP4165404B2 (en) Optimization device, control program generation device, program
EP0148947A1 (en) Data input method
JPS6222107A (en) Nc data preparing method
JPH0611456B2 (en) Calculation method of machining route
JP3857487B2 (en) NC data creation method for side machining
JP3123340B2 (en) NC data automatic creation device
JPS6142005A (en) Method for determining positioning path
JPH0457459B2 (en)
JPS62295116A (en) Machined area division processor in automatic machining device
JPS62166407A (en) Data constitution for graphic information of machine tool
JPH01228755A (en) Plural groove machining method
JPS63263502A (en) Working information generating method for numerically controlled machine tool
JPH05228786A (en) Automatic generating device for nc data in nc machine tool
JPS62218050A (en) Device for setting tool used in automatic processing machine
JP3412850B2 (en) Tool path data creation device and method
JPS63271609A (en) Operation design aiding device
JPS62140747A (en) Setting device for machining condition in automatic machine

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees