Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3567441B2 - Method and apparatus for creating processing data of long material - Google Patents
[go: Go Back, main page]

JP3567441B2 - Method and apparatus for creating processing data of long material - Google Patents

Method and apparatus for creating processing data of long material Download PDF

Info

Publication number
JP3567441B2
JP3567441B2 JP18473595A JP18473595A JP3567441B2 JP 3567441 B2 JP3567441 B2 JP 3567441B2 JP 18473595 A JP18473595 A JP 18473595A JP 18473595 A JP18473595 A JP 18473595A JP 3567441 B2 JP3567441 B2 JP 3567441B2
Authority
JP
Japan
Prior art keywords
machining
group
processing
data
origin
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 - Lifetime
Application number
JP18473595A
Other languages
Japanese (ja)
Other versions
JPH0916237A (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.)
Howa Machinery Ltd
Original Assignee
Howa Machinery 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 Howa Machinery Ltd filed Critical Howa Machinery Ltd
Priority to JP18473595A priority Critical patent/JP3567441B2/en
Publication of JPH0916237A publication Critical patent/JPH0916237A/en
Application granted granted Critical
Publication of JP3567441B2 publication Critical patent/JP3567441B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

【0001】
【産業上の利用分野】
この発明は、窓枠や戸枠、そうした枠に嵌めこまれる障子、戸、網戸といった建具を構成するアルミ、あるいは他の材質の枠材、框材のような長尺材を加工する場合に用いて好適な加工データ作成方法、装置に関し、詳しくは、加工寸法を同じくする加工形状を有し、その全長が異なる長尺材の加工を行うときの加工データ変更を容易に行いうる加工データ作成方法、装置に関する。
【0002】
【従来の技術】
前述のような枠材は、例えばアルミサッシの窓枠の場合、図10に示すように、左右の竪枠201,202の上下端部、及び中間部に切欠部201a,201b,201cを設け、上下端部の切欠部201a,201bには、上下枠203,204端部を嵌めこみ、中間部の切欠部201cには横枠205端部を嵌めこみ、この上下枠203,204端部と横枠205端部に、竪枠201,202の壁部201dに設けたネジ孔206を介して取付ねじ207を螺合して、窓枠200を枠組みしている。こうした窓枠200では、建物の窓開口部に合わせてその縦横のサイズが決定されるので、竪枠201,202、横枠205、上下枠203,204が、夫々同じ断面形状、断面寸法を持つ型材であって、枠組した窓枠の全体の大きさのみが異なるという場合が多い。このような場合、大きい窓枠と小さい窓枠とでは、夫々の窓枠を構成する前記各枠は、その全長と、端部、中間部の切欠部の長手方向位置は異なるが、切欠部やその切欠部に形成されるねじ孔の加工寸法、切欠部に対するねじ孔の位置などは、組み合わされる枠の断面形状、断面寸法が変わらないために全く同じになる。従来、長尺材に切欠部やねじ孔などの加工を行う場合には、工作機械の1つの加工原点を基準として、各切欠部やねじ孔の座標を入力し、工作機械の工具と長尺材の相対位置関係を制御し、加工していた。
一方、長尺材ではないが、同一形状の加工を同一ワークに対して、異なる位置、異なる方向に多数加工するような場合に好適なNCデータ作成方法として、基本形状に対して、その加工寸法を独立した座標系で定義し、このローカル座標系と、機械座標系との間の、X、Y(及びZ)方向と、図形の回転方向角度のシフト量を与えることにより、実際の加工においては、ローカル座標系を機械座標系に変換して加工を行うようにしたものがある(特開昭60−55411号)。
【0003】
【発明が解決しようとする課題】
前者の従来技術では、工作機械の1つの加工原点を基準として、長尺材の多数の切欠部や、これに関連するねじ孔位置の座標を別々に入力して、これに基づいて加工していたので、前記のように切欠部や、ねじ孔の寸法、切欠部に対するねじ孔位置が同じで、長尺材の長手寸法や、切欠部の長手位置が異なるのみ、というような場合には、長尺材の全長の長短にあわせて、その都度、多くの加工部分の多数の座標を入力変更せねばならず、そうした加工データの入力に手間取る問題があった。後者の技術では、独立したローカル座標系と機械座標系のシフト量を変更するだけで、ワークの異なる位置に同一加工を行い得るNCデータが得られるので、データ入力が容易であるが、それでも、前記技術では、少なくとも、X、Y及び、回転方向の3つのシフト量を与えねばならず、長尺材のように長手方向の位置のみが異なるワークに対しては、この技術においても、未だデータ入力の煩雑さが残る問題がある。この発明の課題は、同一加工形状を有する、長さの異なる長尺材に対する加工データの変更を容易にする加工データの作成方法、及びその作成方法を実施する加工データ作成装置を提供することにある。
また、サッシ材においては、前述のように、竪枠に上下枠が枠組みされるので、上下枠の長手端部の切欠部寸法は、端部からの寸法が正確でないと、枠組したときに端部がうまく枠組みされない問題がある。本願の他の課題は、このような問題を生じないように、加工データを容易に変更できる作成方法を提供することにある。
【0004】
【課題を解決するための手段】
前記課題解決の為に、請求項1では、サッシ窓を構成する長尺材を加工するに際し、長尺材に対して行われる加工部分を、互いに位置関係が不変な加工部分ごとに、左、右端加工グループ、中間加工グループに区分し、各加工グループにおける加工形状を、長尺材の長手方向座標のみを違えた別々の原点を基準とするローカル座標系で定義し、機械の加工原点を左右端加工グループのいずれか一方の座標系の原点であって、その端加工グループの端面を含む面内に位置しているその端加工グループの座標系の原点と一致させ、他方の端加工グループの端面を含む面内にその他方の端加工グループの座標系の原点を位置させ、中間加工グループが加工基準とする端加工グループの原点と中間加工グループの長手方向の原点シフト量を与え、前記他方の端加工グループの座標系と加工原点の座標系との間の原点シフト量には、長尺材の長手方向の実寸法を与えて各加工グループの加工位置を決定することを特徴とする。請求項2のように、中間加工グループはさらに2グループに区分されてもよい。
請求項3では、サッシ窓を構成する長尺材に対して行われる多種の加工の基本形状パターンを記憶する形状パターン記憶部と、長尺材の加工グループを左右端加工グループ、中間加工グループに区分して、各加工グループにおける加工形状を前記基本形状パターンから選択するパターン選択手段と、各加工グループで選択された基本形状パターンに夫々長尺材の長手方向にのみ位置を違えて設定される別々の原点を基準としたローカル座標系で実加工用の寸法を定義する寸法入力手段と、前記各加工グループで選択された基本形状パターンとそれに対する実加工用の加工寸法を、各加工グループごとに記憶したグループデータ記憶部が複数集合して構成される長尺材の図番単位の加工データ記憶部と、左、または右端加工グループの原点と一致した機械の加工原点と他のローカル座標系間の長手方向の原点シフト量を与える原点シフト量入力手段とを備えたことを特徴とする。
【0005】
【作用】
本願請求項1の方法では、長尺材の、互いに位置関係が一定の加工部分をグループとし、そのグループでの加工形状を、長尺材の長手方向座標のみが異なる原点を夫々基準としたローカル座標系で定義したので、異なる長手寸法のワークに対して、同一形状の加工を行うときの加工データの変更が、長尺材の長手方向のみの座標系間の原点シフト量を与えるだけでよく、データ入力の手間がない。また、長尺材の左右端加工グループは、夫々各端面を基準で加工を行うことになり、長尺材に長手方向の切断誤差があっても、左右端加工グループの加工を行うときには、夫々端面からの寸法が正確となる。請求項3では、長尺材に対する加工データを、図番単位で記憶しているので、一旦、加工グループの基本形状パターンに対する加工データを入力した後は、図番指定をするだけで、直ちにその加工に必要なデータをNC装置に提供でき、段取変えが極めて容易である。
【0006】
【実施例】
図1に示すように、NC制御装置1は、工作機械2を直接制御する、EIAコード(Gコード)で動作する汎用NC装置3と、汎用NC装置3に設けられたプログラマブルコントローラ4(以下、NC側PC4:主に通信を制御する)を介して汎用NC装置3との間で、データ、指令等をやり取りするようにI/O通信または、それに準じた通信ケーブル5で接続された汎用プログラマブルコントローラ6(以下、汎用PC6)と、汎用PC6とデータ授受可能に通信ケーブル7を介して接続された入力表示手段8とを備えている。この入力表示手段8は、一般のキーボードとディスプレイの組合わせと異なり、本願では、汎用PC6からの情報を画面に表示し、また、汎用PC6への入力を、画面から行うことのできるタッチパネル式のものである。加工の為の工作機械2は、平面図により図7に示される。この工作機械2は、主軸2aが垂直下方を向いた竪型のマシニングセンタで、X軸方向(ワーク長手方向)とY軸方向(ワーク幅方向)とZ軸方向(上下方向、図7で紙面に垂直な方向)の直交3軸方向に、主軸2a、すなわち、工具Tが移動するようになっている。データ作成装置は、入力表示手段8と汎用PC6とで構成される。
【0007】
このNC制御装置で扱われるワークは、図10に示すような、枠組みされてサッシ窓枠200を構成する左右の竪枠201,202、上下枠203,204、横枠205あるいは、この窓枠200にはめこまれる障子の上下框、左右竪框となどいった長尺材であり、その加工形状は、例えば竪枠201について説明すると、図9のように、長手方向両端、中間に設けられ、上下枠203,204端部、横枠205端部が嵌まり込むように断面の折曲片部201e,201e(図8)を削除した切欠部201a,201b,201cや、竪枠201を介して上下枠203,204や横枠205のねじ溝に止めねじ207をねじ込むために、竪枠201の壁部201dに設けた多数のねじ孔206などから成っている。
【0008】
このようなワークを加工するために、ワークの加工形状を分類し、一つの工具で行いうる加工の基本的な形状毎に一まとめにして、いくつかの基本形状パターンとして、汎用PC6のRAM内の形状パターン記憶部25に記憶してある。基本形状パターンは、図2に示すような形状、孔あけ、あるいは、パターン1,3,4,6,11,12の加工後において、そのR部分にスロッタ加工を施すためのスロッタ加工などに分類されている。
【0009】
このようなワークの加工部分は、枠組される相手の枠材が同じであれば、切欠きと、ねじ孔の相対位置関係は同じである。そのため、互いに相対位置関係を変えない関係にある加工部分をまとめて、図7に示すように、左、右端加工グループ20,30と、中間加工グループ40とに区分している。そして各加工グループに含まれるいくつかの基本形状パターンに対する実寸法は、各加工グループで共通の原点を基準とした独立した座標系で定義されるようにしてある。すなわち、図7のワークでは、左端加工グループ20に属する基本形状パターンは、パターン1(上側切欠き),パターン3(下側切欠き),パターン51(スロッタ加工)、パターン63(孔あけ)であり、これらは、機械の加工原点と一致した原点21基準の座標系で定義され、その機械の加工原点21は、枠材の左端面200Lを含む平面内に位置している。また、右端加工グループ30には、パターン4,6,51,64が属し、これらは、機械の加工原点21とワーク長手方向(X軸方向)の座標のみをずらした原点31を基準とするローカル座標系で定義され、原点31は枠材の右端面200Rを含む平面内に位置している。また、中間加工グループ40は、パターン11,12、51、63が含まれ、これらも、機械の加工原点21とワーク長手方向座標のみをずらした原点41を基準とするローカル座標系で定義されるようになっている。尚、中間加工グループ40は、本実施例では、左端加工グループ20の原点21からのシフト量SMが与えられる左端基準加工グループのみを示したが、この他に、右端加工グループ30の原点31からのシフト量Aが与えられる中間加工グループ(図7の部分45のような角孔部と、ねじ孔)があるときには、これも、別の原点46を基準としたローカル座標系で記述される。
【0010】
汎用PC6内のRAMには、図3に示すデータの入出力に関する制御プログラムが記憶してあり、この制御プログラムにより、上述のワークに対する加工データを作成するようになっている。制御プログラムの各制御ステップは、機能実現手段を示し、ステップS3は、その型材に共通のデータ(型材の厚み、幅、全長など)を入力する手段、ステップS4は、前記加工グループを選択する加工グループ選択手段で、中間加工グループ40を選択すると、機械の加工原点21からのX軸方向の原点シフト量SMを入力するようになっていて、座標系間の原点シフト量入力手段も兼ねている。もちろん、中間加工グループにワークの右端を基準とした右端加工基準グループがあれば、右端の座標系の原点41からの原点シフト量Aが入力されることはいうまでもない。また、ステップS5は、加工パターン選択手段で、前述の基本形状パターンから、選択した加工グループに含まれる基本形状パターンを選択する手段である。また、ステップS7は、選択した基本形状パターンに対して、切削条件、工具選択を含んで、実際の加工寸法を設定する寸法入力手段である。これらの入力は、すべて前記タッチパネル8の画面上から行われる。また、ステップS8、S9は、画面から入力されたデータを変数データ記憶部のどこに格納するのかを、後述のデータ変換テーブルを参照し、所定の格納位置に格納する、データ格納指令手段である。また、ステップS14は、加工に先立って、後述の変数データを複数加工パターン分(ここでは、3パターン)をNC側PC4へ送る送信手段、ステップS15は、NC側で加工を開始した後、NC側からの要求で、加工パターン変数データを、1パターンずつ図番データが終わるまで送り出す送信手段である。
【0011】
汎用PC6のRAM内には、製品図番単位の加工データ記憶部10が複数設けてある。各加工データ記憶部10は、図5に示すように、その先頭から図番データ記憶部11、その図番のワークの共通データ記憶部12、どの加工グループにどの基本形状パターンが含まれるかを管理し、加工グループの区切りを行うグループ管理データ記憶部13、左端加工グループデータ記憶部14、中間加工グループデータ記憶部15、右端部加工データ記憶部16が、順に並んでいる。各加工グループデータ記憶部14,15,16は、基本形状パターンに対する変数データを各基本形状パターンと対応して記憶した複数の変数データ記憶部17から構成される。
【0012】
汎用PC6は、タッチパネル8との間でのデータのやり取りを行うための表示入力バッファ50を備えている。このバッフア50の多数のデータ格納位置a,b,c,d,e…は、タッチパネル8に表示される各種の基本形状パターンに対する寸法、各種データの入力、表示位置と1対1で対応しており、データ格納位置が表示位置を示すデータとなっている。また、汎用PC6のRAM内には、このバッファ50の格納位置と、前述の変数データ記憶部17におけるデータ格納位置との対応関係を示すデータ変換テーブル51が設けてある。データ変換テーブル51には、バッファ50の格納位置に先頭から格納されたデータが、変数データ記憶部17の先頭番地(変数データの先頭は、必ずパターン種別に設定してある)から順に、どのようなデータサイズで記憶されるのか(即ち、格納位置)などがデータ種別コードで記述して前記バッファの格納位置と対応づけてある。従って、データ入力の際に、前記フローチャートのステップS8において、画面上のある位置に入力されたデータは、これと対応したバッファ50の格納位置に格納され、ここでデータ変換テーブル51を参照することにより、データサイズの小さいものは、変数データ記憶部17のメモリ単位(16bit)を複数に区切るように順に格納され、記憶エリアを節約して、すなわち、RAMに記憶するのに適した形で格納されるようになっている。また、このように格納されたデータを読みだすときにも、読出指定された加工パターンがどのパターンかにより、そのパターンに対応したデータ変換テーブル51を参照することで、その変数データ記憶部17の先頭番地の最初の8bitの加工パターン種別データの次の4bitが工具番号、その次が基準、グループの判別データであるというように、変数データ記憶部にメモリをできるだけ節約して記憶してある情報を切り出して、この切り出したデータをバッファ50の対応する格納位置へ、表示に適した形式として格納するようになっている。従って、基準形状パターンの形状の差によるデータの並び順、データの占める記憶エリアの大きさ等、変数データの構造が異なっても、各基本形状パターンごとに準備したデータ変換テーブル51を参照することにより、変数記憶エリアでの記憶形式と、バッファ50での記憶形式との間でデータの変更が行われるので、各基本形状パターンに対応して、そのようなデータ変更の為のプログラムを多数準備する必要はない。なお、このデータ変更テーブル51は、図1に示すメンテナンス用パソコン52により書き替えでき、これによって、新たな基本形状パターンの追加があっても、その追加した基本形状パターン用のテーブルを準備すれば、データ変換の為のプログラムを手直しすることなく、新たなパターンによるデータ記憶と参照ができる。
【0013】
そして、制御プログラムに含まれる表示プログラムを、表示命令に表示位置と表示内容(バッファ50のデータ格納位置に格納されたデータ)をパラメータとして記述しておくことにより、バッファ50を先頭から順に読み出しながら、バッファ50のデータ格納位置の示す表示位置データとその格納内容とを、表示プログラムの前記パラメータに適用すれば、対応する画面上の位置に対応する格納データが表示されるので、各基本形状パターンの形状の差による変数データの並び順(データ構造)が異なっていても、表示プログラムを全く共通のものとすることができることになる。
【0014】
次に、汎用NC装置3には、前記各基本形状パターンと対応して、切削条件、工具条件、その加工パターンを加工するのに必要な寸法、原点のシフト量など、前記タッチパルから変数データとして入力され、実際の加工を行うのに必要なデータを変数として記述した加工プログラムが、基本形状パターンと同じ数だけ、EIMコード(Gコード)を用いたマクロプログラムとして記述され、これらは、加工プログラム記憶部55に記憶されている。また、汎用NC装置3内には、やはりマクロプログラムで記述され、送られてきた変数データが、ワークを加工するのに妥当な値かどうか、すなわち、共通データとして与えられるワーク幅寸法よりY軸方向の切り込み寸法がおおきくはないか、あるいは、ワークの高さ寸法に対してZ方向の切削深さが大きくないか、ねじ孔のピッチがワーク幅を越えていないかなどの判別を行うようになっている、データのチェックプログラム56が設けてある。この判別は、加工に先立って行われ、万一、加工に不都合なデータがあると、そのデータによる加工を中止し、不良品がでないようにすると共に、作業者に注意を促すようになっている。
【0015】
主に通信を司るNC側PC4には、変数データ格納バッファ60が設けてある。この格納バッファ60には、前記汎用PC6から送信されてきた複数の加工パターン単位の変数データが記憶される。汎用NC装置3の制御プログラムは、図4(a)に示される。ステップS21は起動指令の有無判別ステップ、ステップ22はデータ読出ステップ、ステップ23は前記チェックプログラムによるデータチェックステップ、ステップS24は、変数を対応するパターン加工プログラムに適用し、必要であれば、ローカル座標系を機械座標系に変換する変数データの適用ステップ、ステップ25は機械への制御指令出力ステップ、ステップ26は加工終了判別ステップである。
【0016】
NC側PC4の制御プログラムを図4(b)に示す。ステップS27は、汎用NC装置3で読み出された結果、バッファ60内変数データが加工パターン1つ分減ったかどうかを判別するデータ格納状態検知ステップ、ステップS28は加工パターン1つ分減ったときに、汎用PC6に次の加工パターン1つ分の加工データの要求を出すデータ要求ステップ、ステップS29は汎用PC6からのデータを受信する受信ステップである。本願では、このように、汎用NC装置3が変数データ格納バッファ60に格納されたデータを参照して、マクロプログラムにより機械を制御する一方で、NC側PC4により、変数データの減り具合を見ながら、汎用PC6に次のデータを要求しているので、機械制御とデータ転送が同時に行われ、その結果、データ転送の時に、機械制御を止めるようにしている従来装置に比べ、円滑なデータ転送が行われ、また、変数データのみを汎用PC6からNC装置3側へ送る構成としたので、従来のように、マクロプログラムを伝達する方式に比べ、データ量を少なくでき、伝達時間が短縮される。
【0017】
次に図3,図4により作用を説明する。データ入力では、ステップS1,S2を経て、ステップS3で加工ワークに対する図番と、型材データ(厚さ、幅、全長など)を入力する。次に、加工グループを選択する。図7のワークでは、左端加工グループ20、右端加工グループ30、中間加工グループ40の3つであるので、各加工グループにおいて、ステップS5でその加工グループに属する基本形状パターンを選択する。例えば左端加工グループ20では、まず、パターン1が選択され、そのパターンがタッチパネル8上に表示され、その画面上のデータ入力、表示位置をタッチして、そこへ、データを直接入力する。データ入力時には、タッチパネル8の表示画面がキーボード画面に切り替わり、そのキーボード画面から入力が行われる。パターン1では、切欠きの寸法A、B、C、工具No,機械の加工原点21に対する基準か、そうでないか、工具径、工具種別などといった工具データや、図示しないが、各軸方向の切削速度などの切削条件も入力される。寸法は、原点(ここでは機械の加工原点と一致)21を基準に入力される。このように入力された各データは、入力表示バッファ50の対応する格納位置に格納され、パターン1のデータ変換テーブル51を参照して、左端加工グループデータ記憶部14のパターン1用変数データ記憶部17に、データ形式をデータ格納に適した形式にして、前述のように順に格納していく。左端加工グループ20に属する他の加工パターン(パターン3,63、51)に対しても、ステップ10を経て同様にデータ入力され、図5に示すように左端加工グループデータ記憶部14に順に記憶される。そして、ステップS11を経て、残る加工グループ30,40について、同様の作業を繰り返す。中間加工グループ40を選択するとき、前記機械の加工原点21からの原点シフト量SMの入力が促され、その上で、ローカル原点41を基準とした寸法入力が行われる。この原点シフト量SMも、変数データとして中間加工グループデータ記憶部15に記憶される。こうして1つの図番についての複数の加工グループ20,30,40に対する複数の基本形状パターンの変数データを入力し終えた後、ステップS12で他の図番入力があれば、ステップS1へ戻って入力を繰り返す。
【0018】
次に、型材の長手方向のデータのみが異なるワークについて、変数データを作成する場合について説明する。ステップS2でデータ変更を選択して、ステップS16で、作成しようとするワークと長手方向のみの関係が異なり、加工グループの基本形状パターンの変数データが同じワークの図番をタッチパネル8から入力する。そして、ローカル座標系で記述されている加工グループと、加工原点21と一致している座標系で記述されている加工グループ(ここでは左端加工グループ20)の間の長手方向の原点シフト量を変更し、その上で、新たな図番を付して、加工データ記憶部に追加、記憶する。このように、前に記憶したワークと加工グループの基本形状パターンが同じで、その変数データも同じワークであって、各加工グループ間の長手方向関係が異なるだけのワークについて、変数データを作成するときには、前のデータを読みだして、加工原点21との間の長手方向の原点シフト量のみを変更するだけで良く、データ変更がきわめて容易となる。
【0019】
次に、ステップS1でデータ送信を選択して、ステップS13で加工対象となるワークの図番を入力する。これにより、該当する図番データを加工データ記憶部から選択し、図5に示す共通データ、グループ管理データ、これに続く、加工グループデータが読みだされる。図番データ1を例に取ると、加工グループデータの読出しは、ここでは図5に示す左端加工グループデータ20の先頭から、順に、パターン1用変数データ、パターン3用変数データ、パターン63用変数データの、3つのパターン変数データのセットが、NC側PC4へ送信される。NC側PC4は、図4(b)のステップS29で前記データを受信し、バッファ60へ後納する。
【0020】
そして、汎用NC装置3が起動されると、図4(a)のステップS22でバッファ60内のデータを順に読出す。バッファ60内には、ワークの全長、幅等の共通データがあるので、これらの共通データを用いて、変数データが妥当な値であるかどうかなどのデータチェックがステップS23で行われる。そして、変数データをパターンに対応した加工パターンプログラムの変数記述部に適用する。そして、パターンごとにステップS25で機械制御指令が出される。NC装置3がこうして機械制御を行っている間に、NC側PC4は、そのバッファ60内の変数データがパターン1つ分だけ減ったかどうかを判別し、1つ分減っていれば、次のパターン1つ分の変数データを汎用PC6に要求する。この要求を受けて、汎用PC6からは、次のパターン51用変数データが送り出される。このように、NC装置3が加工制御を行っていると同時に、変数パターンを次々とNC側PC4へ送りこむので、従来のようにデータを待つ間、加工を停止する必要がなく円滑な加工が行い得る。
【0021】
次に、中間加工グループ40の変数データが送られてくると、加工原点21と一致した座標系でないローカル座標系で記述されているので、その変数データには、原点からのシフト量SMも加味され、ステップS24でローカル座標系から、加工原点を基準とした機械座標系への座標変換が行われる。また、右端部加工グループ30も、原点31を基準としたローカル座標系で記述してあるが、右端加工グループの加工をする前に、与えられた全長Lを基に、工具をワークの右端部よりさらに右側位置に移動させ、その後左へ移動させて工具を右端面に当接させ、この時に工具、ワーク、ワークテーブル、機械本体、主軸ヘッドを介して電気的に閉じる回路により、その工具のX軸方向位置からワーク全長を検出し、このワーク全長の実寸法を、原点シフト量として右端加工グループ30の加工の時に適用する。これにより、ワーク全長に多少のバラツキがあっても、右端加工グループ30の加工基準は、実際のワークの右端面200Rを基準に行われるので、そのX軸方向の切り込み深さが確実に保証される。そして、これらのパターンについてもステップS25で機械制御指令が出され、1つの図番についてのすべての加工が終了するとステップS26を経て加工が終了する。尚、右端加工グループ30も、実寸法を測ることなく、加工原点21からのX軸方向の原点シフト量として全長Lを適用して、ローカル座標系から機械座標系への変換を行ってもよい。
【0022】
【発明の効果】
以上のように本願発明によれば、サッシ材の如き長尺材において、互いに位置関係が不変な加工形状をまとめて、長尺材の左、右端加工グループと中間加工グループに区分し、端加工グループの一方の座標系を機械座標系と一致させ、各加工グループを夫々長尺材の長手方向座標のみを違えた別々の原点を基準とするローカル座標系で定義し、機械座標系と一致した座標系と、他の座標系との間の長手方向の原点シフト量を与えて、各加工グループの加工位置を決定するようにしたので、長尺材の端部から中間加工グループまでの距離が異なるワークに対してのデータ設定の際には、原点シフト量のみを変更入力すればよく、従来のように、X、Y,回転方向と3つのシフトデータを必要とするものに比べ、データ変更作業が極めて容易となる。また、機械原点を含まない端部加工グループの座標系と、機械原点を含む端部加工グループとの距離に、長尺材の長手実寸法を適用するものでは、その加工データによって加工したときには、左右端部加工グループの加工形状が、それぞれ端面基準で行われ、長尺材の長さに切断誤差があっても、端面からの切り込み量に誤差を生じることがなく、枠として組んだときに、正確に組上がる利点がある。また、一旦、1つの図番が付与される長尺材について、左右、中間加工グループの寸法データ、各座標系間の原点シフト量を入力すると、それらのデータは、図番単位でまとめて記憶されるようにしたので、ある図番の長尺材を加工しようとするとき、その図番を入力するのみで、加工に必要な加工データをNC装置に提供でき、段取り変えが極めて容易となり、加工能率を上げることができる利点がある。
【図面の簡単な説明】
【図1】NC制御装置の全体ブロック図である。
【図2】基本形状パターンの説明図である。
【図3】汎用PC装置の制御フローチャートである。
【図4】汎用NC装置と、NC側PCの制御フローチャートである。
【図5】加工データ記憶部における、図番毎の変数データの格納構造を示す図である。
【図6】データ変換テーブルの作用説明図である。
【図7】加工ワークと、加工機械及び、座標関係、加工グループの別を示す図である。
【図8】図7のVIII視図である。
【図9】図XのIX視図である。
【図10】サッシ窓枠の正面図である。
【符号の説明】
1 NC制御装置
2 工作機械
3 汎用NC装置
4 NC側プログラマブルコントローラ
6 汎用プログラマブルコントローラ
8 入力表示手段
10 加工データ記憶部
14,15,16 グループデータ記憶部
17 変数データ記憶部
20 左端加工グループ
21 機械加工原点
25 形状パターン記憶部
30 右端加工グループ
31 原点(右端加工グループの)
40 中間加工グループ
41 原点(中間加工グループの)
55 加工プログラム記憶部
60 変数データ格納バッファ
SM 原点シフト量
[0001]
[Industrial applications]
INDUSTRIAL APPLICABILITY The present invention is used when processing a window frame, a door frame, aluminum which forms a fitting such as a shoji, a door, a screen door fitted into such a frame, or a frame material of another material, or a long material such as a frame material. More specifically, the present invention relates to a method and apparatus for creating processing data, which is suitable for processing long materials having the same processing dimensions and having different overall lengths. , Equipment.
[0002]
[Prior art]
For example, in the case of a window frame made of an aluminum sash, the above-described frame members are provided with notches 201a, 201b, and 201c at the upper and lower ends and the middle of the left and right vertical frames 201 and 202, as shown in FIG. The upper and lower cutouts 201a and 201b are fitted with the ends of the upper and lower frames 203 and 204, and the middle cutout 201c is fitted with the ends of the horizontal frame 205. Attachment screws 207 are screwed into the ends of the frame 205 via screw holes 206 provided in the wall portions 201d of the vertical frames 201 and 202, thereby forming the window frame 200. In such a window frame 200, the vertical and horizontal sizes are determined according to the window opening of the building, so that the vertical frames 201 and 202, the horizontal frame 205, and the upper and lower frames 203 and 204 have the same cross-sectional shape and cross-sectional dimension, respectively. In many cases, only the entire size of the framed window frame is different. In such a case, in the large window frame and the small window frame, each of the frames constituting each window frame has a different overall length, an end portion, and a longitudinal position of a notch portion at an intermediate portion. The processing dimensions of the screw holes formed in the cutouts, the positions of the screw holes with respect to the cutouts, and the like are exactly the same because the cross-sectional shape and cross-sectional dimensions of the frame to be combined do not change. Conventionally, when machining notches or screw holes in long materials, the coordinates of each notch or screw hole are input based on one machining origin of the machine tool, and the tool of the machine tool is The relative positional relationship between the materials was controlled and processed.
On the other hand, when it is not a long material, but the machining of the same shape is performed on the same workpiece in a number of different positions and in different directions, the NC data creation method is suitable for the basic shape. Is defined in an independent coordinate system, and a shift amount between the local coordinate system and the machine coordinate system in the X, Y (and Z) directions and the rotational direction angle of the figure is given. In Japanese Patent Application Laid-Open No. 60-55411, there is a method in which a local coordinate system is converted into a machine coordinate system for processing.
[0003]
[Problems to be solved by the invention]
In the former prior art, a plurality of cutouts of a long material and coordinates of screw hole positions related to the cutouts are separately input based on one processing origin of a machine tool, and processing is performed based on the coordinates. Therefore, as described above, the notch portion, the size of the screw hole, the screw hole position with respect to the notch portion is the same, the longitudinal dimension of the long material, the only difference in the longitudinal position of the notch portion, such as, In accordance with the length of the entire length of the long material, it is necessary to change the input of a large number of coordinates of many processing portions each time, and there is a problem that it takes time to input such processing data. In the latter technique, NC data capable of performing the same machining at different positions on the workpiece can be obtained only by changing the shift amounts of the independent local coordinate system and the machine coordinate system, so that data input is easy. In the above technique, at least three shift amounts in the X, Y, and rotation directions must be given. For a workpiece such as a long material having only a different position in the longitudinal direction, even in this technique, data is still required. There is a problem that input complexity remains. An object of the present invention is to provide a method for creating machining data that facilitates changing machining data for long materials having the same machining shape and different lengths, and to provide a machining data creating device that implements the creating method. is there.
Further, in the sash material, as described above, since the upper and lower frames are framed by the vertical frame, the notch dimensions of the longitudinal ends of the upper and lower frames are not correct when the dimensions from the ends are not accurate. There is a problem that the department is not well framed. Another object of the present application is to provide a creation method capable of easily changing processed data so as not to cause such a problem.
[0004]
[Means for Solving the Problems]
In order to solve the problem, in claim 1, a sash window is provided. Long material that composes When machining the long material, the machining part performed on the long material is divided into left, right end machining groups and intermediate machining groups for each machining part whose positional relationship is invariable with each other, and the machining shape in each machining group is Define in the local coordinate system based on different origins that differ only in the longitudinal coordinates of the length material, and set the machining origin of the machine in the coordinate system of one of the left and right end machining groups. The origin and the origin of the coordinate system of the end machining group located in the plane including the end face of the end machining group. Match, The origin of the coordinate system of the other end machining group is located within the plane including the end face of the other end machining group, and the origin of the end machining group as the machining reference for the intermediate machining group and the origin shift in the longitudinal direction of the intermediate machining group Give the amount, the origin shift amount between the coordinate system of the other end machining group and the coordinate system of the machining origin, by giving the actual size in the longitudinal direction of the long material The processing position of each processing group is determined. Intermediate machining group as in claim 2 May be further divided into two groups.
In claim 3 The sash window Long material that composes And a shape pattern storage unit for storing basic shape patterns of various types of processing performed on the workpiece, and dividing the processing group of the long material into a left and right end processing group and an intermediate processing group, and setting the processing shape in each processing group to the basic shape. Pattern selection means to select from the shape patterns, and actual processing in the local coordinate system based on different origins set in the basic shape pattern selected in each processing group with different positions only in the longitudinal direction of the long material Dimension input means for defining dimensions for each group, and a plurality of group data storage units each storing the basic shape pattern selected in each of the processing groups and the processing dimensions for actual processing for each of the processing groups. The machining data storage unit of the drawing number of the long material to be processed, the machining origin of the machine that matches the origin of the left or right end machining group, and other local coordinates Characterized by comprising the origin shift amount input means for providing an origin shift amount in the longitudinal direction between.
[0005]
[Action]
In the method according to the first aspect of the present invention, the processing portions of the long material having a fixed positional relationship with each other are grouped, and the processing shape in the group is determined based on the local origin with respect to the origin different only in the longitudinal coordinates of the long material. Since it is defined in the coordinate system, changing the processing data when machining the same shape for workpieces with different longitudinal dimensions only requires giving the origin shift amount between the coordinate systems in the longitudinal direction of the long material only. No need for data entry. Also, The left and right end processing groups of the long material will be processed based on each end face, and even if there is a cutting error in the longitudinal direction in the long material, when processing the left and right end processing group, from each end face Will be accurate. Claim 3 Since the machining data for the long material is stored in the drawing number unit, once the machining data for the basic shape pattern of the machining group is input, it is necessary to specify the drawing number and immediately perform the processing. Data can be provided to the NC device, and setup change is extremely easy.
[0006]
【Example】
As shown in FIG. 1, the NC control device 1 includes a general-purpose NC device 3 that directly controls a machine tool 2 and operates with an EIA code (G code), and a programmable controller 4 (hereinafter, referred to as a general-purpose NC device 3) provided in the general-purpose NC device 3. I / O communication or a general-purpose programmable device connected by a communication cable 5 corresponding to the general-purpose NC device 3 via the NC-side PC 4 for mainly controlling communication). The system includes a controller 6 (hereinafter, general-purpose PC 6) and input display means 8 connected to the general-purpose PC 6 via a communication cable 7 so as to be able to exchange data. The input display means 8 is different from a general combination of a keyboard and a display. In the present application, the input display means 8 displays information from the general-purpose PC 6 on a screen, and inputs information to the general-purpose PC 6 from the screen. Things. A machine tool 2 for machining is shown in FIG. 7 by a plan view. The machine tool 2 is a vertical machining center having a main shaft 2a directed vertically downward, and is arranged in an X-axis direction (work longitudinal direction), a Y-axis direction (work width direction) and a Z-axis direction (vertical direction, as shown in FIG. The main shaft 2a, that is, the tool T, moves in three orthogonal directions (vertical directions). The data creation device includes an input display unit 8 and a general-purpose PC 6.
[0007]
The work handled by the NC control device is, as shown in FIG. 10, left and right vertical frames 201 and 202, upper and lower frames 203 and 204, a horizontal frame 205 or a frame 205 constituting a sash window frame 200. It is a long material such as an upper and lower frame, a left and right vertical frame of a shoji to be fitted in, and the processing shape thereof is provided, for example, in the case of the vertical frame 201, as shown in FIG. The cutouts 201a, 201b, 201c in which the bent pieces 201e, 201e (FIG. 8) of the cross section are removed so that the ends of the upper and lower frames 203, 204 and the end of the horizontal frame 205 fit into each other, and the vertical frame 201. In order to screw the set screw 207 into the screw groove of the upper and lower frames 203 and 204 and the horizontal frame 205, the vertical frame 201 includes a large number of screw holes 206 provided on the wall 201d of the vertical frame 201.
[0008]
In order to machine such a workpiece, the machining shape of the workpiece is classified, and each machining basic shape that can be performed by one tool is grouped together, and some basic shape patterns are stored in the RAM of the general-purpose PC 6. Is stored in the shape pattern storage unit 25. The basic shape pattern is classified into a shape as shown in FIG. 2, drilling, or a slotter process for performing a slotter process on an R portion after processing the patterns 1, 3, 4, 6, 11, and 12. Have been.
[0009]
In the processed portion of such a work, the relative positional relationship between the notch and the screw hole is the same as long as the mating frame material is the same. For this reason, the processing parts that do not change the relative positional relationship are grouped into left and right end processing groups 20 and 30 and an intermediate processing group 40 as shown in FIG. The actual dimensions of some basic shape patterns included in each processing group are defined in an independent coordinate system based on a common origin in each processing group. That is, in the work of FIG. 7, the basic shape patterns belonging to the left end processing group 20 are pattern 1 (upper cutout), pattern 3 (lower cutout), pattern 51 (slotter processing), and pattern 63 (drilling). These are defined by a coordinate system based on the origin 21 which coincides with the machining origin of the machine, and the machining origin 21 of the machine is located in a plane including the left end face 200L of the frame material. Patterns 4, 6, 51, and 64 belong to the right end processing group 30. These patterns are local based on a machining origin 21 of the machine and an origin 31 shifted only by coordinates in the longitudinal direction of the workpiece (X-axis direction). The origin 31 is defined in a coordinate system, and is located in a plane including the right end face 200R of the frame material. The intermediate machining group 40 includes patterns 11, 12, 51, and 63, which are also defined in a local coordinate system based on the machining origin 21 of the machine and the origin 41 shifted only in the work longitudinal direction coordinates. It has become. In the present embodiment, the intermediate processing group 40 shows only the left-end reference processing group to which the shift amount SM from the origin 21 of the left-end processing group 20 is given. When there is an intermediate machining group (a square hole and a screw hole like the portion 45 in FIG. 7) to which the shift amount A is given, this is also described in a local coordinate system with another origin 46 as a reference.
[0010]
A control program relating to data input / output shown in FIG. 3 is stored in a RAM in the general-purpose PC 6, and the control program creates processing data for the above-described work. Each control step of the control program indicates a function realizing means. Step S3 is means for inputting data (thickness, width, overall length, etc. of the shape material) common to the shape material, and step S4 is a process for selecting the processing group. When the intermediate processing group 40 is selected by the group selecting means, the origin shift amount SM in the X-axis direction from the machining origin 21 of the machine is input, and also serves as the origin shift amount input means between coordinate systems. . Of course, if there is a right end machining reference group based on the right end of the work in the intermediate machining group, it goes without saying that the origin shift amount A from the origin 41 of the right end coordinate system is input. Step S5 is a processing pattern selecting means for selecting a basic shape pattern included in the selected processing group from the basic shape patterns described above. Step S7 is a dimension input unit for setting an actual machining dimension for the selected basic shape pattern, including cutting conditions and tool selection. These inputs are all performed on the screen of the touch panel 8. Steps S8 and S9 are data storage instructing means for storing where data input from the screen is to be stored in the variable data storage unit in a predetermined storage position with reference to a data conversion table described later. Further, step S14 is a transmitting means for transmitting variable data to be described later for a plurality of processing patterns (here, three patterns) to the NC-side PC 4 prior to processing, and step S15 is to start the processing on the NC side, This is a transmitting means for sending out the machining pattern variable data one by one until the drawing number data is completed in response to a request from the side.
[0011]
In the RAM of the general-purpose PC 6, a plurality of processed data storage units 10 are provided for each product drawing number. As shown in FIG. 5, each machining data storage section 10 stores a figure number data storage section 11 from the top, a common data storage section 12 for the work of the figure number, and which basic shape pattern is included in which machining group. A group management data storage unit 13 that manages and separates processing groups, a left end processing group data storage unit 14, an intermediate processing group data storage unit 15, and a right end processing data storage unit 16 are arranged in this order. Each of the machining group data storage units 14, 15, 16 is composed of a plurality of variable data storage units 17 in which variable data for the basic shape pattern is stored in correspondence with each basic shape pattern.
[0012]
The general-purpose PC 6 includes a display input buffer 50 for exchanging data with the touch panel 8. The data storage positions a, b, c, d, e,... Of the buffer 50 correspond one-to-one with dimensions for various basic shape patterns displayed on the touch panel 8, input of various data, and display positions. The data storage position is data indicating the display position. In the RAM of the general-purpose PC 6, there is provided a data conversion table 51 indicating the correspondence between the storage position of the buffer 50 and the data storage position in the variable data storage unit 17 described above. In the data conversion table 51, the data stored in the storage position of the buffer 50 from the beginning are stored in order from the head address of the variable data storage unit 17 (the head of the variable data is always set to the pattern type). Whether the data is stored with an appropriate data size (that is, the storage position) is described by a data type code, and is associated with the storage position of the buffer. Therefore, at the time of data input, in step S8 of the flowchart, the data input to a certain position on the screen is stored in the storage position of the buffer 50 corresponding thereto, and the data conversion table 51 is referred to here. Thus, data having a small data size are sequentially stored so as to divide the memory unit (16 bits) of the variable data storage unit 17 into a plurality of units, and the storage area is saved, that is, stored in a form suitable for storing in the RAM. It is supposed to be. Also, when the data stored in this manner is read out, by referring to the data conversion table 51 corresponding to the processing pattern designated as the read-out processing pattern, the variable data storage unit 17 stores Information stored in the variable data storage unit while saving the memory as much as possible, such that the next 4 bits of the first 8-bit machining pattern type data at the start address are the tool number, and the next is the reference data and the group determination data. Is cut out, and the cut out data is stored in a corresponding storage position of the buffer 50 in a format suitable for display. Therefore, even if the structure of the variable data is different, such as the order of the data due to the difference in the shape of the reference shape pattern, the size of the storage area occupied by the data, etc., refer to the data conversion table 51 prepared for each basic shape pattern. As a result, the data is changed between the storage format in the variable storage area and the storage format in the buffer 50, and a large number of programs for such data change are prepared corresponding to each basic shape pattern. do not have to. The data change table 51 can be rewritten by the maintenance personal computer 52 shown in FIG. 1, so that even if a new basic shape pattern is added, it is possible to prepare a table for the added basic shape pattern. In addition, data can be stored and referred to in a new pattern without modifying a data conversion program.
[0013]
Then, the display program included in the control program is described in the display command by using the display position and the display content (data stored in the data storage position of the buffer 50) as parameters. When the display position data indicating the data storage position of the buffer 50 and the storage content are applied to the parameters of the display program, the storage data corresponding to the corresponding position on the screen is displayed. Even if the order of arrangement (data structure) of the variable data is different due to the difference in the shape, the display program can be made completely common.
[0014]
Next, the general-purpose NC device 3 stores, as variable data from the touch pal, the cutting conditions, tool conditions, dimensions required for processing the processing pattern, shift amounts of the origin, etc., corresponding to the respective basic shape patterns. A machining program which is inputted and describes data necessary for performing actual machining as a variable is described as a macro program using an EIM code (G code) by the same number as the basic shape pattern. It is stored in the storage unit 55. Also, in the general-purpose NC unit 3, whether the variable data described and transmitted by the macro program is a value appropriate for processing the work, that is, the Y-axis is determined based on the work width dimension given as the common data. Make sure that the cutting dimension in the direction is not large, the cutting depth in the Z direction is not large relative to the height of the work, and the pitch of the screw holes does not exceed the work width. A data check program 56 is provided. This determination is performed prior to the processing, and if there is data that is inconvenient for the processing, the processing based on the data is stopped to prevent defective products and to alert the worker. I have.
[0015]
A variable data storage buffer 60 is provided in the NC-side PC 4 that mainly performs communication. The storage buffer 60 stores variable data in units of a plurality of machining patterns transmitted from the general-purpose PC 6. The control program for the general-purpose NC device 3 is shown in FIG. Step S21 is a step of determining the presence or absence of a start command, Step 22 is a data read step, Step 23 is a data check step by the check program, and Step S24 is to apply a variable to a corresponding pattern processing program, and if necessary, to use local coordinates. A step of applying variable data for converting the system into a machine coordinate system, step 25 is a step of outputting a control command to the machine, and step 26 is a step of determining the end of machining.
[0016]
FIG. 4B shows a control program of the NC PC 4. A step S27 is a data storage state detecting step for determining whether or not the variable data in the buffer 60 has been reduced by one processing pattern as a result of reading by the general-purpose NC device 3, and a step S28 is performed when the variable pattern data has been reduced by one processing pattern. A data requesting step of requesting the general-purpose PC 6 for processing data for the next processing pattern, and step S29 is a receiving step of receiving data from the general-purpose PC 6. In this application, as described above, the general-purpose NC device 3 refers to the data stored in the variable data storage buffer 60 and controls the machine by the macro program, while the NC-side PC 4 monitors the degree of reduction of the variable data. Since the next data is requested from the general-purpose PC 6, the machine control and the data transfer are performed at the same time, and as a result, the data transfer is smoother than the conventional device in which the machine control is stopped at the time of the data transfer. In addition, since only variable data is sent from the general-purpose PC 6 to the NC device 3, the data amount can be reduced and the transmission time can be reduced as compared with the conventional method of transmitting a macro program.
[0017]
Next, the operation will be described with reference to FIGS. In data input, after step S1 and S2, in step S3, the figure number for the work to be processed and the mold material data (thickness, width, total length, etc.) are input. Next, a processing group is selected. In the work of FIG. 7, there are three of the left end machining group 20, the right end machining group 30, and the intermediate machining group 40, so that in each machining group, a basic shape pattern belonging to the machining group is selected in step S5. For example, in the left end processing group 20, first, pattern 1 is selected, the pattern is displayed on the touch panel 8, data input and display position on the screen are touched, and data is directly input there. At the time of data input, the display screen of the touch panel 8 switches to the keyboard screen, and input is performed from the keyboard screen. In pattern 1, notch dimensions A, B, C, tool No., reference to machining origin 21 of the machine, whether it is not, tool data such as tool diameter and tool type, and cutting (not shown) in each axial direction Cutting conditions such as speed are also input. The dimensions are input with reference to the origin (here, coincides with the machining origin of the machine) 21. Each data input in this way is stored in the corresponding storage position of the input display buffer 50, and referring to the data conversion table 51 of pattern 1, the variable data storage unit for pattern 1 of the left end machining group data storage unit 14 17, the data format is changed to a format suitable for data storage, and the data is sequentially stored as described above. Data is similarly input to other processing patterns (patterns 3, 63, and 51) belonging to the left end processing group 20 through step 10 and sequentially stored in the left end processing group data storage unit 14 as shown in FIG. You. Then, after step S11, the same operation is repeated for the remaining processing groups 30 and 40. When the intermediate machining group 40 is selected, the input of the origin shift amount SM from the machining origin 21 of the machine is prompted, and then the dimension input based on the local origin 41 is performed. The origin shift amount SM is also stored in the intermediate machining group data storage unit 15 as variable data. After inputting the variable data of the plurality of basic shape patterns for the plurality of machining groups 20, 30, and 40 for one drawing number, if there is another drawing number input in step S12, the process returns to step S1 to input. repeat.
[0018]
Next, a description will be given of a case where variable data is created for a workpiece that differs only in the longitudinal data of the mold. In step S2, data change is selected, and in step S16, the drawing number of the work which is different from the work to be created only in the longitudinal direction and has the same variable data of the basic shape pattern of the machining group is input from the touch panel 8. Then, the origin shift amount in the longitudinal direction between the machining group described in the local coordinate system and the machining group described in the coordinate system coinciding with the machining origin 21 (here, the left end machining group 20) is changed. Then, a new drawing number is added thereto and added to and stored in the processed data storage unit. As described above, variable data is created for a work that has the same basic shape pattern as the previously stored work and the machining group and also has the same variable data as the work, and only differs in the longitudinal relationship between the machining groups. Sometimes, it is only necessary to read the previous data and change only the origin shift amount in the longitudinal direction with respect to the processing origin 21, and the data change becomes extremely easy.
[0019]
next, Step S1 To select the data transmission, and input the drawing number of the work to be processed in step S13. Thereby, the corresponding figure number data is selected from the processed data storage unit, and the common data, group management data, and subsequent processed group data shown in FIG. 5 are read. Taking the figure number data 1 as an example, the processing group data is read out from the beginning of the left end processing group data 20 shown in FIG. 5 in this order from the pattern 1 variable data, the pattern 3 variable data, and the pattern 63 variable data. A set of three pattern variable data of the data is transmitted to the NC-side PC 4. The NC PC 4 receives the data in step S29 of FIG.
[0020]
Then, when the general-purpose NC device 3 is started, the general-purpose NC device 3 shown in FIG. Step S22 To sequentially read the data in the buffer 60. Since there is common data such as the total length and width of the work in the buffer 60, a data check as to whether the variable data is an appropriate value is performed in step S23 using these common data. Then, the variable data is applied to the variable description section of the machining pattern program corresponding to the pattern. Then, a machine control command is issued in step S25 for each pattern. While the NC device 3 performs the mechanical control in this way, the NC-side PC 4 determines whether or not the variable data in the buffer 60 has been reduced by one pattern. One variable data is requested from the general-purpose PC 6. In response to this request, the general-purpose PC 6 sends out the next pattern 51 variable data. As described above, the variable patterns are successively sent to the NC-side PC 4 at the same time as the NC device 3 is performing the processing control, so that it is not necessary to stop the processing while waiting for the data as in the related art, and the smooth processing is performed. obtain.
[0021]
Next, when the variable data of the intermediate machining group 40 is sent, the variable data is described in a local coordinate system other than the coordinate system coincident with the machining origin 21, so that the variable data includes the shift amount SM from the origin. Then, in step S24, coordinate conversion from the local coordinate system to the machine coordinate system based on the processing origin is performed. The right end machining group 30 is also described in the local coordinate system with respect to the origin 31. Before machining the right end machining group, the tool is moved to the right end of the workpiece based on the given overall length L. The tool is further moved to the right position, and then moved to the left to bring the tool into contact with the right end face. At this time, the circuit of the tool is electrically closed via the tool, the work, the work table, the machine body, and the spindle head, and the The entire length of the work is detected from the position in the X-axis direction, and the actual dimension of the entire length of the work is applied as the origin shift amount when processing the right end processing group 30. Thus, even if there is some variation in the overall length of the work, the processing reference of the right end processing group 30 is performed based on the right end face 200R of the actual work, so that the cutting depth in the X-axis direction is reliably guaranteed. You. Then, a machine control command is issued in step S25 for these patterns as well, and when all the machining for one drawing number is completed, the machining is completed via step S26. Note that the right end machining group 30 may also convert the local coordinate system to the machine coordinate system by applying the full length L as the origin shift amount in the X-axis direction from the machining origin 21 without measuring the actual dimensions. .
[0022]
【The invention's effect】
As described above, according to the present invention, in a long material such as a sash material, processing shapes whose positional relationship is invariable to each other are grouped, and the long material is divided into a left and right end processing group and an intermediate processing group. One of the coordinate systems of the group was matched with the machine coordinate system, and each machining group was defined in the local coordinate system based on a different origin, which differed only in the longitudinal coordinate of the long material, and matched with the machine coordinate system Given the shift amount of the origin in the longitudinal direction between the coordinate system and another coordinate system, the processing position of each processing group is determined, so that the distance from the end of the long material to the intermediate processing group is reduced. When setting data for different workpieces, only the origin shift amount needs to be changed and input, and the data is changed compared to the conventional case that requires three shift data in X, Y, and rotation directions. Work is extremely easy . In the case where the actual length of the long material is applied to the distance between the coordinate system of the end processing group not including the mechanical origin and the end processing group including the mechanical origin, when processing is performed based on the processing data, The processing shapes of the left and right end processing groups are each performed on the basis of the end face, and even if there is a cutting error in the length of the long material, there is no error in the cutting amount from the end face, and when assembled as a frame There is an advantage of assembling accurately. Further, once the dimension data of the left and right, the intermediate machining group, and the origin shift amount between the coordinate systems are input for the long material to which one drawing number is given, the data is collectively stored in the drawing number unit. Therefore, when trying to process a long material with a certain figure number, the machining data necessary for the processing can be provided to the NC device only by inputting the figure number, and the setup change becomes extremely easy. There is an advantage that the processing efficiency can be increased.
[Brief description of the drawings]
FIG. 1 is an overall block diagram of an NC control device.
FIG. 2 is an explanatory diagram of a basic shape pattern.
FIG. 3 is a control flowchart of the general-purpose PC device.
FIG. 4 is a control flowchart of a general-purpose NC device and an NC-side PC.
FIG. 5 is a diagram showing a storage structure of variable data for each drawing number in a processed data storage unit.
FIG. 6 is an explanatory diagram of an operation of a data conversion table.
FIG. 7 is a diagram illustrating another of a work to be processed, a processing machine, a coordinate relationship, and a processing group.
FIG. 8 is a VIII view of FIG. 7;
FIG. 9 is a IX view of FIG. X;
FIG. 10 is a front view of a sash window frame.
[Explanation of symbols]
1 NC controller
2 Machine tools
3 General-purpose NC device
4 NC side programmable controller
6 General-purpose programmable controller
8 Input display means
10 Processing data storage unit
14, 15, 16 group data storage unit
17 Variable data storage
20 Left end processing group
21 Machining origin
25 Shape pattern storage unit
30 Right end processing group
31 Origin (of right end processing group)
40 Intermediate Processing Group
41 Origin (of intermediate processing group)
55 Machining program storage
60 Variable data storage buffer
SM origin shift amount

Claims (3)

サッシ窓を構成する長尺材を加工するに際し、長尺材に対して行われる加工部分を、互いに位置関係が不変な加工部分ごとに、左、右端加工グループ、中間加工グループに区分し、各加工グループにおける加工形状を、長尺材の長手方向座標のみを違えた別々の原点を基準とするローカル座標系で定義し、機械の加工原点を左右端加工グループのいずれか一方の座標系の原点であって、その端加工グループの端面を含む面内に位置しているその端加工グループの座標系の原点と一致させ、他方の端加工グループの端面を含む面内にその他方の端加工グループの座標系の原点を位置させ、中間加工グループが加工基準とする端加工グループの原点と中間加工グループの長手方向の原点シフト量を与え、前記他方の端加工グループの座標系と加工原点の座標系との間の原点シフト量には、長尺材の長手方向の実寸法を与えて各加工グループの加工位置を決定することを特徴とする長尺材の加工データ作成方法。When processing the long material constituting the sash window, the processing part performed on the long material is divided into left, right end processing groups, and intermediate processing groups for each processing part whose positional relationship is invariable with each other. machining shape in the working group, different origin which Chigae only longitudinal coordinates of the long material is defined in the local coordinate system based on either the origin of one of the coordinate system of the left and right ends processing group working origin of the machine Wherein the other end machining group is located in the plane including the end face of the end machining group so as to coincide with the origin of the coordinate system of the end machining group located in the plane including the end face of the end machining group. The origin of the end machining group, which is the machining reference for the intermediate machining group, and the amount of origin shift in the longitudinal direction of the intermediate machining group. The origin shift amount between the coordinate system of the point, the processing data generating process of long material, characterized by determining the machining position of the machining group giving longitudinal actual size of the long material. 中間加工グループは更に、左端加工グループの原点を基準とする左端基準加工グループと、右端加工グループの原点を基準とする右端基準加工グループとに区分してあることを特徴とする請求項1記載の長尺材の加工データ作成方法。2. The intermediate machining group is further divided into a left end reference machining group based on the origin of the left end machining group and a right end reference machining group based on the origin of the right end machining group. A method for creating processing data for long materials. サッシ窓を構成する長尺材に対して行われる多種の加工の基本形状パターンを記憶する形状パターン記憶部と、長尺材の加工グループを左右端加工グループ、中間加工グループに区分して、各加工グループにおける加工形状を前記基本形状パターンから選択するパターン選択手段と、各加工グループで選択された基本形状パターンに夫々長尺材の長手方向にのみ位置を違えて設定される別々の原点を基準としたローカル座標系で実加工用の寸法を定義する寸法入力手段と、前記各加工グループで選択された基本形状パターンとそれに対する実加工用の加工寸法を、各加工グループごとに記憶したグループデータ記憶部が複数集合して構成される長尺材の図番単位の加工データ記憶部と、左、または右端加工グループの原点と一致した機械の加工原点と他のローカル座標系間の長手方向の原点シフト量を与える原点シフト量入力手段とを備えたことを特徴とする長尺材の加工データ作成装置。A shape pattern storage unit that stores the basic shape patterns of various types of processing performed on the long material forming the sash window, and the processing group of the long material is divided into a left and right end processing group and an intermediate processing group. A pattern selecting means for selecting a processing shape in the processing group from the basic shape pattern, and a different origin set in the basic shape pattern selected in each processing group at a position different only in the longitudinal direction of the long material. Dimension input means for defining dimensions for actual machining in a local coordinate system, and group data storing the basic shape pattern selected in each machining group and actual machining dimensions corresponding thereto for each machining group A machining data storage unit for drawing numbers of long materials composed of multiple storage units, and a machine Origin and other processing data creation device elongated member, characterized in that it comprises the origin shift amount input means for providing an origin shift amount in the longitudinal direction between the local coordinate system.
JP18473595A 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material Expired - Lifetime JP3567441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18473595A JP3567441B2 (en) 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18473595A JP3567441B2 (en) 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material

Publications (2)

Publication Number Publication Date
JPH0916237A JPH0916237A (en) 1997-01-17
JP3567441B2 true JP3567441B2 (en) 2004-09-22

Family

ID=16158453

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18473595A Expired - Lifetime JP3567441B2 (en) 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material

Country Status (1)

Country Link
JP (1) JP3567441B2 (en)

Also Published As

Publication number Publication date
JPH0916237A (en) 1997-01-17

Similar Documents

Publication Publication Date Title
US10870203B2 (en) Machine tool control device and production system
JP4593142B2 (en) System for manufacturing a workpiece under computer control and method for measuring a manufactured workpiece
JP3580447B2 (en) NC control method
JP3567441B2 (en) Method and apparatus for creating processing data of long material
EP0548372B1 (en) Animation drawing method for multiple-lathe numeric controller
US5029068A (en) NC data creation method
JP3248081B2 (en) Automatic program creation device with automatic cutting axis change function
WO2006032632A1 (en) Method for operating an automation device and/or device for carrying out said method
JPH0242510A (en) Display system for working information
JPH0818226B2 (en) Parts processing estimation device
CN1983094A (en) Metal plank blanking system and method
JPS6324307A (en) Nc data checking method
CN1319201A (en) Process and system for working workpiece through numerically controlled machine tools
JPH04237307A (en) Automatic transformation device for coordinate axis
JP2670148B2 (en) Numerical control unit
JPH0392907A (en) Numerical controller
JP2779796B2 (en) Numerical control unit
JP3498783B2 (en) Processing equipment
JPH02306308A (en) Automatic programming device
JPH03156506A (en) Nc program generating method for interactive numerical controller or automatic programming device
JPS6165314A (en) Graphic display method and apparatus for computer numerical controller
JPH0391808A (en) Data transfer method for ic card
JPH08211914A (en) Processing data management system
US5739656A (en) Numerical controlling method with mirror image function
JPH11296216A (en) Nc device for laser machining machine

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040412

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040420

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040606

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120625

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130625

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140625

Year of fee payment: 10

EXPY Cancellation because of completion of term