JP3539743B2 - Figure processing equipment - Google Patents

Figure processing equipment Download PDF

Info

Publication number
JP3539743B2
JP3539743B2 JP05296193A JP5296193A JP3539743B2 JP 3539743 B2 JP3539743 B2 JP 3539743B2 JP 05296193 A JP05296193 A JP 05296193A JP 5296193 A JP5296193 A JP 5296193A JP 3539743 B2 JP3539743 B2 JP 3539743B2
Authority
JP
Japan
Prior art keywords
data
processing
line segment
graphic
graphic data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP05296193A
Other languages
Japanese (ja)
Other versions
JPH06242814A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP05296193A priority Critical patent/JP3539743B2/en
Publication of JPH06242814A publication Critical patent/JPH06242814A/en
Application granted granted Critical
Publication of JP3539743B2 publication Critical patent/JP3539743B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

【0001】
【産業上の利用分野】
本発明は図形加工装置に関し、特に、CAD等で設計した製品(例えば、紙容器等)の図形データに基づいて製品を加工する図形加工装置に関する。
今日、CADの普及により誰でも製品の設計を容易に行える。しかし、実際に製品を加工出力してみないと設計の良否を判断できない場合も少なくない。そこで、CADで設計した製品又はその試作品を手軽に加工出力できる図形加工装置の提供が望まれる。
【0002】
【従来の技術】
従来は、CAD等で設計した図形データをそのままの順序で加工機の制御用データに翻訳して加工機に加えていた。しかし、CADの図形データは実際の加工順序を考慮したものではないので、そのままの順序で加工機に加えると加工ツールの無駄な位置決め動作が頻繁に発生してしまう。しかも、多くの製品は複数種の加工(例えばカット、ボールペン、押し等)を必要としており、かかる点を考慮していない図形データに従って加工を行うと加工ツールの交換がランダムに発生し、加工効率は著しく低下してしまう。
また従来はCADの設計データに基づいて作業者が加工機の制御用データを再設計していた。しかし、この作業には加工についての知識が要求される上、多大の時間と労力を要し、設計誤りが発生する可能性もあった。
【0003】
【発明が解決しようとする課題】
上記のように従来はCADで設計した図形データをそのままの順序で加工機に加え、又は作業者が別途に加工用制御データを再設計していたので、加工効率が著しく低く、また誤りを発生する可能性もあった。
本発明の目的は、CAD等で設計した図形データに基づいてその製品や試作品を手軽に効率良く加工出力できる図形加工装置を提供することにある。
【0004】
【課題を解決するための手段】
上記目的を達成するために本発明の図形加工装置は、図形処理装置で設計した製品の設計図データを入力する入力手段と、前記入力した前記設計図データから、製品の加工に必要な図形データを抽出する抽出手段と、前記抽出された図形データの配列を変更する演算により加工ツールの位置決め動作を最小とするような加工用図形データを作成する作成手段と、前記作成した加工用図形データを加工装置の制御用データに変換する変換手段とを備え、前記作成手段は、前記図形データに含まれる複数の線分データについて 前記設計図データに基づいて 加工の種類毎にまとめて配列する処理と、前記図形データに含まれる前記加工の種類が同一の複数の線分データに関し、削除と合成による前処理を行う処理と、前記前処理を行った前記図形データに含まれる線分データに関し、前記加工の種類毎に、加工の開始位置に基づいて、加工ツールの位置決め動作を最小とするように前記個々の線分データを選択することにより、前記線分データの並べ換えを行う処理とによって 前記加工用図形データを作成し 前記並べ替えを行なう処理では 前記加工ツールの位置に最も近い位置に端点を持つ前記線分データを選択して加工の開始点を決定し さらに当該決定した線分データの終点に接続できる始点又は終点を有する線分データがあるかを判別し 存在しない場合には 前記加工ツールの位置に最も近い位置に端点を持つ前記線分データを選択し 単数の線分データが存在する場合には 当該線分データを選択して前記接続できる始点又は終点を有する線分データがあるかの判別を行い 複数の線分データが存在する場合には 最も短い線分データを選択する処理を、未処理の線分データが無くなるまで繰り返すことを特徴とする。
【0005】
【作用】
本発明の図形加工装置においては、入力手段はCAD等により設計した製品の図形データを入力する。作成手段は該入力した図形データの配列を変更する演算により加工ツールの位置決め動作を最小とするような加工用図形データを作成する。好ましくは、作成手段は入力した図形データをカット、ボールペン、押し等の加工ツールの種類毎にまとめて配列を変更する演算を行う。そして、変換手段は該作成した加工用図形データを加工装置の制御用データに変換する。従って、例えば設計上の都合により任意順序で組み立てられた製品の図形データでも加工ツールや加工順序を考慮した効率的な加工用図形データに変更され、もって加工効率の向上が図れる。
【0006】
【実施例】
以下、添付図面に従って本発明による実施例を詳細に説明する。
図1は実施例の図形加工システムのブロック図であり、図において1は外部に接続した図形作成編集装置(例えばCAD)、2は実施例の図形加工装置、3はCAD1と図形加工装置2間を接続するインタフェース、4はCAD1で設計した製品の図形データ等を記憶するデータ記憶装置である。
【0007】
更に、5は不図示のメモリ及びCPUにより構成された演算装置であり、以下の各種機能ブロックを実現する。即ち、6は入力手段であり、データ記憶装置4から処理対象の図形データを読み出す。7は抽出手段であり、前記読み出した図形データから製品の加工に必要な図形データを抽出する。8は作成手段であり、前記抽出した図形データの配列を変更する処理により加工ツールの位置決め動作を最小とするような加工用図形データを作成する。9は変換手段であり、前記作成した加工用図形データを加工装置10の制御用データに変換する。そして、10はレーザ、抜き型等による製品の加工装置である。以下、CAD1の設計図データに基づく製品の加工出力処理を詳細に説明する。
【0008】
図2は実施例の図形加工処理のフローチャートである。
ステップS1では、入力手段6はデータ記憶装置4から該当する設計図データを読み出し、これを演算装置5内の不図示のワークエリアに格納する。ステップS2では、抽出手段7はワークエリアに格納した設計図データから製品の加工に必要な図形データを抽出する。
この抽出処理を図4の簡単な例で説明する。図4の(A)において、ワークエリアに格納された設計図データのうち製品の加工に必要な図形データは線分データ(a)〜(g)より成っており、これに寸法引出線及び寸法データ(文字列「100」)が付随している。また図4の(B)は図4の(A)の設計図データの格納例を示しており、左から、カラム1の「L」は線分、「C」は文字、カラム2の「1」は図形線、「2」は寸法線、カラム3の「1」は実線、「2」は破線を夫々表している。更に、カラム4は後続のデータ数を表しており、例えばカラム1が線分Lの場合は、後続する4つのデータは該線分の始点及び終点のXY座標を夫々表している。またカラム1が文字Cの場合は、後続する8つのデータは文字の開始点のXY座標、高さ、幅、文字間スペース、回転角、文字数及び文字コードを夫々表している。そこで、抽出手段7はワークエリアに格納された設計図データのうちカラム2=1(図形線)の図形データ(a)〜(g)を抽出することにより製品の加工に必要な図形データを抽出する。
【0009】
次にステップS3では、作成手段8は、まず加工の種類が有るか否かを判別する。加工の種類とは、例えばボールペン、押し、カット等の加工方法(加工ツール)の種類を言っており、本実施例では図形データのカラム3=1(実線)はカット加工に、カラム3=2(破線)は押し加工に、そして、カラム3=3はボールペン加工に夫々対応している。
作成手段8は、基本的には抽出手段7が抽出した全図形データのカラム3の内容を調べることにより加工の種類が有るか否かを自動的に判別する。従って、図4の(B)の図形データ(a)〜(g)にはカラム3=1(カット)及びカラム3=2(押し)の2種類の図形データが含まれているので、作成手段8は加工の種類が有ると判別し、フローはステップS4に進む。ステップS4では例えば最初にカラム3=3(ボールペン)の図形データを配列順に集め、これらをワークエリアにセットする。なお、この例ではボールペンの図形データが無いので、次のカラム3=2(押し)の図形データ(g)を集め、これをワークエリアにセットすることになる。
なお、上記に代えて作業者がCAD1より加工の種類が有るか否かを強制的に指定するようにしても良い。この場合に、もし作業者が加工の種類無しと指定した場合は作成手段8は図形データ中のカラム3の内容に係わらず加工の種類が無いと判定する。これによりフローはステップS5に進み、抽出手段7が抽出した全図形データ(a)〜(g)をそのままの配列順で後述の処理の処理対象データとしてセットする。
【0010】
図5は加工種類の有無に応じた図形データのセット例を示している。図5の(A)はCAD1から強制的に加工種類が無いとした場合であり、全図形データ(a)〜(g)はそのままの配列順でセットされている。図5の(B)は作成手段8が加工の種類が有ると判定した場合であり、この場合はまず押しの図形データ(g)がセットされてステップS6以降の処理が行われる。しかる後、カットの図形データ(a)〜(f)がセットされてステップS6以降の処理が行われることになる。
図2に戻り、ステップS6では、作成手段8は後述の並べ換え処理を容易ならしめるために予め前記セットされた図形データに対して必要な前処理を行う。
この前処理の幾つかの例を図6に示す。図6の(A)において、同一加工種類の複数の線分データが互いに重複部分を有する場合は、その重複部分を分離し、該重複部分の一方の線分データを削除する。同一加工種類の複数の曲線データが互いに重複部分を有する場合も同様である。但し、異なる加工種類(例えばカットと押し)の線分データ同志又は曲線データ同志が互いに重複部分を有するような場合は上記の処理を行わない。しかる後、図6の(B)において、同一加工種類の複数の線分データが一つの線分データに合成できる場合にはこれらを一つの線分データに合成する。同一加工種類の複数の曲線データについても同様である。但し、異なる加工種類の線分データ同志又は曲線データ同志については合成しない。以上の前処理を行うことにより各加工ツールが無駄な重複加工動作を行わないように図形データを予め一本化している。
【0011】
図2に戻り、ステップS7では、更に作成手段8は上記前処理を行った図形データの配列を変更する演算により加工ツールの位置決め動作を最小とするような加工用図形データを作成する。
図3は実施例の並べ換え処理の詳細を示すフローチャートである。
ステップS21では加工の開始点を決定する。開始点の決定は例えば加工ツールの現在位置に最も近い位置に端点を持つ図形データのうち一つを選択することで行う。ステップS22では開始点からの向きで最初の図形データを格納する。ステップS23では未処理の図形データが有るか否かを判別する。未処理の図形データが無い場合は本処理を終了して図2のメインルーチンにリターンする。また未処理の図形データが有る場合はステップS24で現時点で処理した図形データの終点にその始点又は終点を接続できる図形データが有るか否かを判別する。接続できる図形データが無い場合は、加工ツールの交換又は位置決め動作が必要な場合であり、ステップS21に戻り、新たに加工の開始点を決定する。また接続できる図形データが有る場合はステップS25で接続できる図形データが複数有るか否かを判別する。単数の場合はステップS22に戻り現在の位置を始点とすると共に該始点からの向きで図形データを格納する。また複数有る場合はステップS26で分岐処理を行う。即ち、この分岐処理では、例えば接続できる複数の図形データの先に更に分岐が無い時はその複数の図形データのうち最も短い図形データを選択して現在の点を始点にセットする。また複数の図形データの先に更に分岐が有る時はその複数の図形データのうち最も短い図形データを選択して現在の点を始点にセットする。このように、最も短い図形データを先に選択することにより後に発生する加工ツールの戻り分(位置決め分)を最短にできる。
【0012】
図2に戻り、ステップS8では上記並べ換えの演算により作成した加工用図形データをワークエリアに格納する。ステップS9では加工種類有りか否かを判別する。加工種類有りの場合はステップS10で全加工種類について上記の処理が終了したか否かを判別する。終了していなければステップS4に戻り次の加工種類の図形データをセットしてその加工用図形データを作成する。このように、加工種類が有る場合は、加工種類毎にまとめて加工ツールの位置決め動作を最小とするような加工用図形データを夫々作成するので、加工効率の向上が図れる。
【0013】
図7は上記の並べ換え処理の具体例を示す図で、図7の(A)はCAD1より加工種類を無しとした場合を示している。例えば加工ツールの初期座標を(0,0)とすると、これに最も近い端点を持つ線分データは(c)と(f)である。そこで、例えば線分データ(c)を選択すると、その始点座標は(100,130)かつ終点座標は(100,180)になる。次にこの終点座標(100,180)に接続できる線分データは(e)しかないから、前記線分データ(c)の次に線分データ(e)を並べ、その始点座標は(100,180)かつ終点座標は(120,200)になる。以下、同様にして線分データ(a),(d),(b)の順に並べ換えられる。線分データ(f)については元のままでは加工ツールを移動させる方向が逆になるので、線分データ−(f)、即ち、その始点座標は(200,150)かつ終点座標は(100,130)に並び換えられる。そして、この例では加工種類を無しとしているので、新たな開始点の決定を伴って押しの線分データ(g)がこれに続いている。
図7の(B)は加工種類が有りと判定した場合を示している。この場合は図2の最初のステップS4〜S8のルートで処理される図形データは押しの線分データ(g)のみである。そして、次のステップS4〜S8のルートで処理される図形データはカットの線分データ(a)〜(f)である。押しの線分データ(g)の加工を行った時点での加工ツールの終点座標は(200,170)であるから、これに最も近い端点を持つ線分データとして線分データ(b),(d),(f)が存在する。そこで、例えば両端点が共に座標(200,170)に近い条件を満足する線分データとして(b)を選択する。加工ツールを移動させる方向は何れでも良いが、この例では−(b)の方向を選んでいる。その結果、最初の線分データ(b)は−(b)に、即ち、その始点座標は(200,150)かつ終点座標は(200,190)に並べ換えられる。次いでこの終点座標(200,190)に接続できる線分データは(d)であり、かつ加工ツールを移動させる方向は逆になるから、線分データ−(b)の次に線分データ(d)を並べ、その始点座標は(200,190)かつ終点座標は(190,200)に並べ換えられる。以下、同様にして線分データ−(a),−(e),−(c)の順に並べ換えられる。線分データ(f)については加工ツールを移動させる方向と同一になるので線分データ−(c)の次にそのままで並べられる。
【0014】
図2に戻り、ステップS11では上記並べ換えた加工用図形データに基づいて加工装置10を制御するための制御用データを作成する。
この処理例を図8に従って具体的に説明する。図8の(A)はCAD1により加工種類を無しとした場合を示している。変換手段9は、図7の(A)の最初の図形データ(c)を読み出すと、まずそのカラム3=1(カット)を検出することにより対応するツール(TOOL)1をセットする命令に変換する。更に該ツール1を図形データ(c)の始点座標(100,130)に位置決め(MOVE)させる命令に変換し、次いで該ツール1を終点座標(100,180)までカット移動(DRAW)させる命令に変換する。次に2番目の図形データ(e)を読み出すと、ツール1をそのままで終点座標(120,200)までカット移動させる命令に変換する。以下同様にして変換を行い、やがて6番目の図形データ−(f)を読み出すと、ツール1を終点座標(100,130)までカット移動させる命令に変換する。そして、最後に7番目の図形データ(g)を読み出すと、カラム3=2(押し)に変わったことにより対応するツール(TOOL)2ををセットする命令に変換する。更に該ツール2を始点座標(100,170)に位置決めさせる命令に変換し、次いで該ツール2を終点座標(200,170)まで押し移動させる命令に変換する。また図8の(B)は加工種類有りと判定した場合を示しており、その変換アルゴリズムは上記と同様である。
【0015】
図2に戻り、ステップS12では上記により得られた加工機制御データを加工装置10に加え、加工用図形データに対応する製品を加工出力する。
このように、本実施例によれば加工ツールを無駄に位置決めさせることは無く効率良い加工が行える。しかも、CAD1の図形データは加工用に特別に作成する必要はなく、設計時の製品の図形データをそのまま利用できる。また、CAD1の元の設計データには何ら手を加えないので、元の設計データには全く影響を与えない。こうして、CAD1で設計した製品又はその試作品を手軽に加工出力できる。
【0016】
【発明の効果】
以上述べたように本発明の図形加工装置によれば、CAD等で設計した図形データから直接に加工用データを作成するので、作業者は加工用データの再設計、入力を行わなくて良い。従って誤りも発生しない。また、得られた加工用データに基づきカティングプロッタ等を利用して製品を自動的に加工出力するので、無駄な動作が削減され、加工時間の短縮、効率向上できる。
【図面の簡単な説明】
【図1】図1は実施例の図形加工システムのブロック図である。
【図2】図2は実施例の図形加工処理のフローチャートである。
【図3】図3は実施例の並べ換え処理の詳細を示すフローチャートである。
【図4】図4は製品の設計図データから加工に必要な図形データを抽出する具体例を示す図である。
【図5】図5は加工種類の有無に応じた図形データのセット例を示す図である。
【図6】図6は前処理の幾つかの例を説明する図である。
【図7】図7は並べ換え処理の具体例を示す図である。
【図8】図8は加工機制御用データの具体例を示す図である。
【符号の説明】
1 図形作成編集装置
2 図形加工装置
3 インタフェース
4 データ記憶装置
5 演算装置
6 入力手段
7 抽出手段
8 作成手段
9 変換手段
10 加工装置
[0001]
[Industrial applications]
The present invention relates to a graphic processing apparatus, and more particularly, to a graphic processing apparatus for processing a product based on graphic data of a product (for example, a paper container) designed by CAD or the like.
Today, with the spread of CAD, anyone can easily design products. However, there are many cases where the quality of a design cannot be determined without actually processing and outputting a product. Therefore, it is desired to provide a graphic processing apparatus capable of easily processing and outputting a product designed by CAD or a prototype thereof.
[0002]
[Prior art]
Conventionally, graphic data designed by CAD or the like has been translated into control data of a processing machine in the same order and added to the processing machine. However, since the CAD graphic data does not take the actual processing order into consideration, if the data is added to the processing machine in the same order, useless positioning operations of the processing tool frequently occur. In addition, many products require multiple types of processing (for example, cutting, ballpoint pen, pressing, etc.). If processing is performed according to graphic data that does not take such points into consideration, processing tools will be changed at random and processing efficiency will increase. Is significantly reduced.
Conventionally, an operator has redesigned control data of a processing machine based on CAD design data. However, this work requires knowledge of machining, requires a great deal of time and effort, and may cause a design error.
[0003]
[Problems to be solved by the invention]
As described above, conventionally, the graphic data designed by CAD was added to the processing machine in the same order, or the operator redesigned the processing control data separately, resulting in extremely low processing efficiency and error. There was also a possibility.
An object of the present invention is to provide a graphic processing apparatus capable of easily and efficiently processing and outputting a product or a prototype based on graphic data designed by CAD or the like.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, a graphic processing apparatus according to the present invention comprises: input means for inputting design drawing data of a product designed by the graphic processing apparatus; and graphic data necessary for processing the product from the input design drawing data. Extracting means for extracting the figure data, creating means for creating the figure data for processing so as to minimize the positioning operation of the working tool by an operation for changing the arrangement of the extracted figure data, and a converting means for converting the control data of the processing apparatus, the creation means, for a plurality of line segment data contained in the graphic data, on the basis of the design drawing data, arranged together in each type of processing a processing relates plurality of line data type of the processing the same included in the graphic data, a process of performing a pre-treatment with remove synthesis, the view of performing the pre-treatment Relates segment data included in the data, the for each type of processing, based on the start position of the processing, by the positioning operation of the machining tool to select the individual line segment data so as to minimize, the line segment by a process of performing a reordering of data, the creating processing graphic data, the process for performing the sorting, the start of processing to select the line segment data having the terminal point closest to the position of the processing tool determining a point, and further determines whether there is a line segment data having a start point or the end point may be connected to the end point of the line segment data that the determined, if not, the end point closest to the position of the processing tool the selected line segment data with, in the case where the line segment data of the singular is present, determination of whether there is a line segment data having a start point or end point can be the connection by selecting the line segment data It performed, when a plurality of line segment data is present, and repeating the process of selecting the shortest line segment data, to unprocessed line segment data is lost.
[0005]
[Action]
In the graphic processing apparatus according to the present invention, the input means inputs graphic data of a product designed by CAD or the like. The creating means creates the graphic data for processing so as to minimize the positioning operation of the processing tool by an operation for changing the arrangement of the input graphic data. Preferably, the creating means performs an operation of changing the arrangement of input graphic data collectively for each type of processing tool such as cutting, ballpoint pen, and pressing. Then, the conversion means converts the created processing graphic data into control data of the processing apparatus. Therefore, for example, graphic data of a product assembled in an arbitrary order for the sake of design is changed to efficient graphic data for processing in consideration of a processing tool and a processing order, thereby improving processing efficiency.
[0006]
【Example】
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a block diagram of a graphic processing system according to an embodiment. In the figure, reference numeral 1 denotes a graphic creation / editing apparatus (for example, CAD) connected to the outside; 2 denotes a graphic processing apparatus of the embodiment; Is a data storage device for storing graphic data and the like of a product designed by CAD1.
[0007]
Reference numeral 5 denotes an arithmetic unit constituted by a memory and a CPU (not shown), and realizes the following various functional blocks. That is, reference numeral 6 denotes input means for reading graphic data to be processed from the data storage device 4. Reference numeral 7 denotes an extracting means for extracting graphic data necessary for processing a product from the read graphic data. Numeral 8 denotes a creating means for creating the graphic data for processing so as to minimize the positioning operation of the processing tool by changing the arrangement of the extracted graphic data. Reference numeral 9 denotes a conversion unit that converts the created graphic data for processing into control data for the processing apparatus 10. Reference numeral 10 denotes a product processing apparatus using a laser, a cutting die, or the like. Hereinafter, the processing output processing of the product based on the design drawing data of the CAD 1 will be described in detail.
[0008]
FIG. 2 is a flowchart of the graphic processing according to the embodiment.
In step S1, the input means 6 reads out the corresponding design drawing data from the data storage device 4 and stores it in a work area (not shown) in the arithmetic unit 5. In step S2, the extracting means 7 extracts graphic data necessary for processing the product from the design drawing data stored in the work area.
This extraction process will be described with a simple example of FIG. In FIG. 4A, graphic data necessary for processing a product out of the design drawing data stored in the work area is composed of line segment data (a) to (g). Data (character string “100”) is attached. 4B shows an example of storing the design drawing data of FIG. 4A. From left, “L” in column 1 is a line segment, “C” is a character, and “1” in column 2 is “1”. Indicates a graphic line, "2" indicates a dimension line, "1" in column 3 indicates a solid line, and "2" indicates a broken line. Further, column 4 represents the number of subsequent data. For example, when column 1 is a line segment L, the subsequent four data represent the XY coordinates of the start point and end point of the line segment, respectively. When the column 1 is a character C, the following eight data represent the XY coordinates of the start point of the character, the height, the width, the space between characters, the rotation angle, the number of characters, and the character code. Then, the extracting means 7 extracts the graphic data (a) to (g) of the column 2 = 1 (graphic line) from the design drawing data stored in the work area, thereby extracting the graphic data necessary for processing the product. I do.
[0009]
Next, in step S3, the creating means 8 first determines whether or not there is a type of processing. The type of processing refers to the type of processing method (processing tool) such as, for example, ballpoint pen, pressing, and cutting. In this embodiment, column 3 = 1 (solid line) of the graphic data is used for cutting, and column 3 = 2. (Dashed line) corresponds to the press working, and column 3 = 3 corresponds to the ball-point pen working.
The creation unit 8 automatically determines whether or not there is a type of processing by basically checking the contents of the column 3 of all the graphic data extracted by the extraction unit 7. Therefore, the graphic data (a) to (g) of FIG. 4B includes two types of graphic data, column 3 = 1 (cut) and column 3 = 2 (push). No. 8 determines that there is a type of processing, and the flow proceeds to step S4. In step S4, for example, first, graphic data of column 3 = 3 (ballpoint pen) is collected in the arrangement order, and these are set in the work area. In this example, since there is no graphic data of the ballpoint pen, graphic data (g) of the next column 3 = 2 (push) is collected and set in the work area.
Instead of the above, the operator may forcibly specify whether or not there is a type of machining from CAD1. In this case, if the operator specifies that there is no type of processing, the creating unit 8 determines that there is no type of processing regardless of the contents of the column 3 in the graphic data. Accordingly, the flow proceeds to step S5, and all the graphic data (a) to (g) extracted by the extraction means 7 are set as processing target data in the processing described later in the same arrangement order.
[0010]
FIG. 5 shows an example of setting graphic data according to the presence or absence of a processing type. FIG. 5A shows a case where there is no machining type from CAD1, and all the graphic data (a) to (g) are set in the same arrangement order. FIG. 5B shows a case in which the creation means 8 determines that there is a type of processing. In this case, first, the figure data (g) of the pressing is set, and the processing after step S6 is performed. Thereafter, the graphic data (a) to (f) of the cut are set, and the processing after step S6 is performed.
Returning to FIG. 2, in step S6, the creating means 8 performs necessary pre-processing on the previously set graphic data in order to facilitate the rearrangement processing described later.
Some examples of this preprocessing are shown in FIG. In FIG. 6A, when a plurality of line segment data of the same processing type has an overlapping portion with each other, the overlapping portion is separated, and one line segment data of the overlapping portion is deleted. The same applies to a case where a plurality of pieces of curve data of the same processing type have overlapping portions. However, if the line segment data or the curve data of different processing types (for example, cutting and pressing) have overlapping portions, the above processing is not performed. Thereafter, in FIG. 6B, when a plurality of line segment data of the same processing type can be combined into one line segment data, these are combined into one line segment data. The same applies to a plurality of curve data of the same processing type. However, line segment data or curve data of different processing types are not combined. By performing the preprocessing described above, graphic data is unified in advance so that each processing tool does not perform useless overlapping processing.
[0011]
Returning to FIG. 2, in step S7, the creating means 8 creates processing graphic data such that the positioning operation of the processing tool is minimized by an operation of changing the arrangement of the graphic data subjected to the preprocessing.
FIG. 3 is a flowchart illustrating details of the rearrangement process according to the embodiment.
In step S21, the starting point of the processing is determined. The start point is determined, for example, by selecting one of graphic data having an end point at a position closest to the current position of the processing tool. In step S22, the first graphic data is stored in the direction from the start point. In step S23, it is determined whether there is unprocessed graphic data. If there is no unprocessed graphic data, the process ends and the process returns to the main routine of FIG. If there is unprocessed graphic data, it is determined in step S24 whether the end point of the currently processed graphic data has graphic data to which the start point or the end point can be connected. When there is no connectable graphic data, it is necessary to exchange a processing tool or perform a positioning operation, and the process returns to step S21 to determine a new processing start point. If there is graphic data that can be connected, it is determined in step S25 whether there is a plurality of graphic data that can be connected. If it is singular, the process returns to step S22 to set the current position as the starting point and store the graphic data in the direction from the starting point. If there is more than one, branch processing is performed in step S26. That is, in this branching process, for example, when there is no further branch ahead of a plurality of connectable graphic data, the shortest graphic data among the plurality of graphic data is selected and the current point is set as the starting point. If there is a further branch ahead of the plurality of graphic data, the shortest graphic data is selected from the plurality of graphic data and the current point is set as the starting point. In this way, by selecting the shortest graphic data first, the return (positioning) of the processing tool that occurs later can be minimized.
[0012]
Returning to FIG. 2, in step S8, the processing graphic data created by the rearrangement operation is stored in the work area. In step S9, it is determined whether there is a machining type. If there is a processing type, it is determined in step S10 whether or not the above processing has been completed for all processing types. If not completed, the process returns to step S4 to set graphic data of the next processing type and create graphic data for the processing. As described above, when there are machining types, machining graphic data that minimizes the positioning operation of the machining tool is collectively created for each machining type, thereby improving machining efficiency.
[0013]
FIG. 7 is a diagram showing a specific example of the above-described rearrangement processing. FIG. 7A shows a case where no machining type is used from CAD1. For example, assuming that the initial coordinates of the processing tool are (0, 0), the line segment data having the closest end point to them is (c) and (f). Therefore, for example, when the line segment data (c) is selected, the start point coordinates are (100, 130) and the end point coordinates are (100, 180). Next, since there is only (e) the line segment data which can be connected to the end point coordinates (100, 180), the line segment data (e) is arranged next to the line segment data (c), and the start point coordinates are (100, 180). 180) and the end point coordinates are (120, 200). Hereinafter, line segment data (a), (d), and (b) are similarly rearranged. With respect to the line segment data (f), the direction in which the processing tool is moved is reversed if the line segment data (f) remains as it is. 130). In this example, since there is no machining type, the line segment data (g) of the push follows the determination with a new start point.
FIG. 7B shows a case where it is determined that there is a machining type. In this case, the graphic data processed in the route of the first steps S4 to S8 in FIG. 2 is only the pressed line segment data (g). The graphic data processed in the route of the next steps S4 to S8 are line segment data (a) to (f) of the cut. Since the coordinates of the end point of the processing tool at the time of processing the line segment data (g) are (200, 170), the line segment data (b), ( d) and (f) exist. Therefore, for example, (b) is selected as line segment data that satisfies the condition that both end points are close to the coordinates (200, 170). The direction in which the processing tool is moved may be any direction, but in this example, the direction-(b) is selected. As a result, the first line segment data (b) is rearranged to-(b), that is, the start point coordinates are rearranged to (200, 150) and the end point coordinates are rearranged to (200, 190). Next, the line segment data that can be connected to the end point coordinates (200, 190) is (d), and the direction in which the machining tool is moved is reversed, so that the line segment data (d) follows the line segment data- (b). ) Are arranged, and the start point coordinates are rearranged to (200, 190) and the end point coordinates are rearranged to (190, 200). Hereinafter, the line data is similarly rearranged in the order of-(a),-(e),-(c). Since the line segment data (f) is the same as the direction in which the machining tool is moved, it is arranged as it is after the line segment data- (c).
[0014]
Returning to FIG. 2, in step S11, control data for controlling the processing apparatus 10 is created based on the rearranged processing graphic data.
This processing example will be specifically described with reference to FIG. FIG. 8A shows a case where the machining type is eliminated by CAD1. When the conversion means 9 reads the first graphic data (c) in FIG. 7A, the conversion means 9 first detects the column 3 = 1 (cut) and converts it into an instruction to set the corresponding tool (TOOL) 1. I do. Further, the command is converted into a command for positioning (MOVE) the tool 1 at the start point coordinates (100, 130) of the graphic data (c), and then a command for cutting (DRAW) the tool 1 to the end point coordinates (100, 180) is provided. Convert. Next, when the second graphic data (e) is read out, it is converted into an instruction to cut and move the tool 1 to the end point coordinates (120, 200) as it is. Thereafter, the conversion is performed in the same manner, and when the sixth graphic data (f) is read out, the command is converted into an instruction to cut and move the tool 1 to the end point coordinates (100, 130). Finally, when the seventh graphic data (g) is read, it is converted into an instruction to set the corresponding tool (TOOL) 2 because the column 3 has changed to 2 (push). Further, it is converted into a command for positioning the tool 2 at the start point coordinates (100, 170), and then converted to a command for pushing and moving the tool 2 to the end point coordinates (200, 170). FIG. 8B shows a case where it is determined that there is a machining type, and the conversion algorithm is the same as described above.
[0015]
Returning to FIG. 2, in step S12, the processing machine control data obtained as described above is added to the processing device 10, and a product corresponding to the graphic data for processing is processed and output.
As described above, according to the present embodiment, efficient processing can be performed without unnecessary positioning of the processing tool. Moreover, the graphic data of CAD1 does not need to be specially created for processing, and the graphic data of the product at the time of design can be used as it is. Further, since no modification is made to the original design data of CAD1, the original design data is not affected at all. Thus, a product designed by CAD1 or its prototype can be easily processed and output.
[0016]
【The invention's effect】
As described above, according to the graphic processing apparatus of the present invention, since the processing data is created directly from the graphic data designed by CAD or the like, the operator does not need to redesign and input the processing data. Therefore, no error occurs. In addition, since a product is automatically processed and output using a cutting plotter or the like based on the obtained processing data, useless operation is reduced, and processing time can be reduced and efficiency can be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram of a graphic processing system according to an embodiment;
FIG. 2 is a flowchart of a graphic processing process according to the embodiment;
FIG. 3 is a flowchart illustrating details of a rearrangement process according to the embodiment;
FIG. 4 is a diagram showing a specific example of extracting graphic data necessary for processing from design drawing data of a product;
FIG. 5 is a diagram showing a set example of graphic data according to the presence or absence of a processing type;
FIG. 6 is a diagram illustrating some examples of preprocessing.
FIG. 7 is a diagram illustrating a specific example of a rearrangement process;
FIG. 8 is a diagram illustrating a specific example of processing machine control data;
[Explanation of symbols]
REFERENCE SIGNS LIST 1 figure creation / editing apparatus 2 figure processing apparatus 3 interface 4 data storage apparatus 5 arithmetic unit 6 input means 7 extraction means 8 creation means 9 conversion means 10 processing apparatus

Claims (1)

図形処理装置で設計した製品の設計図データを入力する入力手段と、
前記入力した前記設計図データから、製品の加工に必要な図形データを抽出する抽出手段と、
前記抽出された図形データの配列を変更する演算により加工ツールの位置決め動作を最小とするような加工用図形データを作成する作成手段と、
前記作成した加工用図形データを加工装置の制御用データに変換する変換手段とを備え、
前記作成手段は、
前記図形データに含まれる複数の線分データについて 前記設計図データに基づいて 加工の種類毎にまとめて配列する処理と、
前記図形データに含まれる前記加工の種類が同一の複数の線分データに関し、削除と合成による前処理を行う処理と、
前記前処理を行った前記図形データに含まれる線分データに関し、前記加工の種類毎に、加工の開始位置に基づいて、加工ツールの位置決め動作を最小とするように前記個々の線分データを選択することにより、前記線分データの並べ換えを行う処理とによって 前記加工用図形データを作成し
前記並べ替えを行なう処理では
前記加工ツールの位置に最も近い位置に端点を持つ前記線分データを選択して加工の開始点を決定し さらに当該決定した線分データの終点に接続できる始点又は終点を有する線分データがあるかを判別し 存在しない場合には 前記加工ツールの位置に最も近い位置に端点を持つ前記線分データを選択し 単数の線分データが存在する場合には 当該線分データを選択して前記接続できる始点又は終点を有する線分データがあるかの判別を行い 複数の線分データが存在する場合には 最も短い線分データを選択する処理を、未処理の線分データが無くなるまで繰り返すことを特徴とする図形加工装置。
Input means for inputting design drawing data of a product designed by the graphic processing device,
Extracting means for extracting, from the input design drawing data, graphic data necessary for processing a product,
Creating means for creating processing graphic data such that the positioning operation of the processing tool is minimized by an operation of changing the arrangement of the extracted graphic data;
A conversion unit for converting the created processing graphic data into control data of a processing apparatus,
The creating means,
A plurality of line segment data contained in the graphic data, the processing on the basis of the design drawing data, arranged together in each type of processing,
A process of performing pre-processing by deleting and synthesizing a plurality of line segment data having the same processing type included in the graphic data ,
With respect to the line segment data included in the pre-processed graphic data, for each type of machining, based on the machining start position, the individual line segment data is set so as to minimize the positioning operation of the machining tool. By selecting, the process of rearranging the line segment data , the processing graphic data is created ,
In the process of performing the rearrangement ,
The line data having the end point at the position closest to the position of the processing tool is selected to determine the processing start point, and further the line data having the start point or the end point that can be connected to the end point of the determined line data is determine whether, if not, select the line data having the terminal point closest to the position of the working tool, when the line segment data of the singular is present, the line segment data performed is the line segment data of determination with start point or end point can be the selected connection, when a plurality of line segment data is present, the process of selecting the shortest line segment data, unprocessed line segment A graphic processing apparatus characterized by repeating until data is lost .
JP05296193A 1993-02-18 1993-02-18 Figure processing equipment Expired - Fee Related JP3539743B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05296193A JP3539743B2 (en) 1993-02-18 1993-02-18 Figure processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05296193A JP3539743B2 (en) 1993-02-18 1993-02-18 Figure processing equipment

Publications (2)

Publication Number Publication Date
JPH06242814A JPH06242814A (en) 1994-09-02
JP3539743B2 true JP3539743B2 (en) 2004-07-07

Family

ID=12929493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05296193A Expired - Fee Related JP3539743B2 (en) 1993-02-18 1993-02-18 Figure processing equipment

Country Status (1)

Country Link
JP (1) JP3539743B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9740189B2 (en) 2012-03-02 2017-08-22 Mitsubishi Electric Corporation Machining program creating apparatus, machining program creating method, and machining program creating program

Also Published As

Publication number Publication date
JPH06242814A (en) 1994-09-02

Similar Documents

Publication Publication Date Title
US4831580A (en) Program generator
JP3539743B2 (en) Figure processing equipment
CN101458726A (en) Wire cutting program generating system and method
JPH09330351A (en) Device and method for generating layout of integrated circuit
US5129046A (en) Method for automatically converting a data flow description of a source program directly into a function design chart
JP2000056810A (en) Control unit for production facility and its data managing method
US20090007082A1 (en) Method for the Translation of a Subprogram by an Interpreter in a Control Device
JP2985569B2 (en) NC data creation method for wire electric discharge machining
JPH06110884A (en) Editing device
JPH03224056A (en) Document processor
JPH01155432A (en) Data conversion system
JPH10536A (en) Nc data forming method and work machine control device
JPS5840785B2 (en) Shape recognition preprocessing method
JP2000155609A (en) Graphic working method/device
JPH06289920A (en) Nc data generation device
KR19980068226A (en) How to convert DXF data format to KXF data format
JPS62251929A (en) Adding system for machine word instruction
JPH0421911B2 (en)
JPS6255708A (en) Numerical controller
JPH0546216A (en) Computer control type numeric value controller
JP2001084016A (en) Device and method for preparing nc data and storage medium
JPH05339A (en) Method and device for arranging die
JPH04128794A (en) Graphic editing device
JPH03266068A (en) Automatic reduction processing system for table block
JPH0325666A (en) Document preparation device

Legal Events

Date Code Title Description
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: 20040225

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040323

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

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100402

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees