JPH07168611A - List display method for boring microfile - Google Patents

List display method for boring microfile

Info

Publication number
JPH07168611A
JPH07168611A JP34256893A JP34256893A JPH07168611A JP H07168611 A JPH07168611 A JP H07168611A JP 34256893 A JP34256893 A JP 34256893A JP 34256893 A JP34256893 A JP 34256893A JP H07168611 A JPH07168611 A JP H07168611A
Authority
JP
Japan
Prior art keywords
hole
file
machining
macro
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP34256893A
Other languages
Japanese (ja)
Inventor
Masaru Masuuchi
賢 升内
Toshiyuki Tanaka
寿幸 田中
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.)
Mutoh Industries Ltd
Original Assignee
Mutoh Industries 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 Mutoh Industries Ltd filed Critical Mutoh Industries Ltd
Priority to JP34256893A priority Critical patent/JPH07168611A/en
Publication of JPH07168611A publication Critical patent/JPH07168611A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate operator's selecting operation by listing and displaying only boring microfiles for machining hole figures which are smaller than a minimum hole diameter selected with high possibility among hole figures stored in a storage area. CONSTITUTION:A drawing data file which is generated and edited by a file generating and editing process part 11 is stored in a drawing data file storage part 3. A sorting process part 13 determines hole figures to be machined in the stored drawing data file individually, or according to a position range or hole diameter range and determines the order of machining in the specified direction. Further, the sorting process part 13 sets a layer in a hole sorted information file storage part 4 and stores the sorted figures in this layer. A program conversion part 14 generates an NC machining program on the basis of information on the sorted hole figures, and a template file and a boring microfile, and stores it in a machining program file storage part 7.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、CADシステムで作成
された穴図形を含む図面データから加工すべき穴図形を
抽出し、NC(Numerical Control )加工機用の加工プ
ログラムをCAD上で生成する穴加工プログラム生成装
置に関し、特に穴加工プログラム作成の際に選択される
穴加工マクロファイルのリスト表示方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention extracts a hole figure to be machined from drawing data including a hole figure created by a CAD system and creates a machining program for an NC (Numerical Control) machine on the CAD. More particularly, the present invention relates to a method for displaying a list of hole machining macro files selected when creating a hole machining program.

【0002】[0002]

【従来の技術】従来、CADシステムで作成された図面
データからNC加工機用の加工プログラムを生成する場
合、NC加工機と対に設けられた専用の自動NCプログ
ラミング装置等を利用して加工プログラムを作成するの
が一般的である。しかし、自動NCプログラミング装置
を使用した従来の穴加工プログラム生成方式では、NC
加工機毎に自動プログラミング装置を備える必要があ
り、システムのトータルコストがアップすると共に、プ
ログラムの作成作業も面倒であるという問題がある。こ
のため、最近では加工対象の図面を作成するCADシス
テム上にNC加工プログラムの作成機能が要求されてい
る。
2. Description of the Related Art Conventionally, when a machining program for an NC machining machine is generated from drawing data created by a CAD system, the machining program is created by using a dedicated automatic NC programming device or the like provided in a pair with the NC machining machine. It is common to create However, in the conventional hole drilling program generation method using the automatic NC programming device, the NC
Since it is necessary to equip each processing machine with an automatic programming device, there are problems that the total cost of the system is increased and that the work of creating a program is troublesome. For this reason, recently, a function of creating an NC machining program is required on a CAD system for creating a drawing to be machined.

【0003】CADシステム上でNC加工プログラムを
作成する場合、座標系の設定値や原点復帰位置などNC
加工機に固有のパラメータがNC加工機毎に異なるた
め、画一的な変換処理が難しいという問題がある。そこ
で、本出願人により、CADシステム上で任意のNC加
工機に適合した穴加工プログラムを極めて容易に生成す
ることが可能な穴加工プログラム生成装置が提案されて
いる。この装置では、CAD上で穴図形を含む図面デー
タファイルが作成・編集されたのち、作成された図面デ
ータファイルの中から指定した穴図形が抽出され、指定
された方向にソートされる。そして、このソート処理さ
れた穴図形の情報と、使用すべきNC加工機に特有の固
定的なパラメータを記述したテンプレートファイルと、
各穴についての穴加工手順を記述した穴加工マクロファ
イルとが、加工プログラム変換手段によって合成処理さ
れてNC加工機の加工プログラムが生成される。
When creating an NC machining program on a CAD system, NC values such as coordinate system setting values and origin return positions are used.
Since the parameters unique to each processing machine are different for each NC processing machine, there is a problem that uniform conversion processing is difficult. Therefore, the applicant of the present invention has proposed a hole drilling program generation device capable of extremely easily generating a hole drilling program suitable for an NC machining machine on a CAD system. In this device, a drawing data file including a hole figure is created and edited on CAD, and then a specified hole figure is extracted from the created drawing data file and sorted in a specified direction. Then, the information of the sorted hole figures and the template file describing the fixed parameters specific to the NC processing machine to be used,
A hole machining macro file that describes a hole machining procedure for each hole is combined by the machining program conversion means to generate a machining program for the NC machining machine.

【0004】[0004]

【発明が解決しようとする課題】ところで、穴加工マク
ロファイルは、穴の加工に必要な工具の種類、工具径、
加工順序等を記述したファイルで、通常、穴の種類だけ
必要になる。従って、穴加工プログラムの作成時に選択
すべき穴加工マクロファイルをリスト表示させる場合、
全ての穴加工マクロファイル名が表示されると、必要な
穴加工マクロファイルを選択する作業が大変であるとい
う問題点がある。
By the way, the hole drilling macro file contains the types of tools necessary for drilling holes, tool diameters,
It is a file that describes the processing order, etc. Normally, only the hole type is required. Therefore, when displaying a list of hole machining macro files that should be selected when creating a hole machining program,
When all the hole drilling macro file names are displayed, there is a problem that the work of selecting a necessary hole drilling macro file is difficult.

【0005】本発明は、このような問題点を解決するた
めになされたもので、穴加工プログラムの作成に必要な
穴加工マクロファイルを容易に選択することができる穴
加工マクロファイルのリスト表示方法を提供することを
目的とする。
The present invention has been made in order to solve such a problem, and is a method of displaying a list of hole machining macro files which enables easy selection of a hole machining macro file required for creating a hole machining program. The purpose is to provide.

【0006】[0006]

【課題を解決するための手段】本発明に係る穴加工マク
ロファイルのリスト表示方法は、CAD上で作成された
穴図形を含む図面データファイルの中から指定した穴図
形を抽出し所定の記憶領域に記憶すると共に、この記憶
領域に記憶された穴図形の情報と、使用すべきNC加工
機に特有の固定的なパラメータを記述したテンプレート
ファイルと、各穴についての穴加工手順を記述した穴加
工マクロファイルとを合成処理してNC加工機の加工プ
ログラムを生成する際に、前記穴加工マクロファイルの
ファイル名又はコメントとして当該穴加工マクロファイ
ルの加工対象の穴径情報を含ませておき、前記合成処理
に供される穴加工マクロファイルの選択時に前記記憶領
域に記憶された穴図形のうち最小穴径以下の穴径情報を
含むファイル名又はコメントを持つ穴加工マクロファイ
ルのみを一覧表示させるようにしたことを特徴とする。
According to a method of displaying a list of hole machining macro files according to the present invention, a specified hole figure is extracted from a drawing data file including a hole figure created on a CAD and a predetermined storage area is extracted. In addition to storing the information on the hole figure stored in this storage area, the template file describing the fixed parameters specific to the NC processing machine to be used, and the hole processing describing the hole processing procedure for each hole. When generating a machining program for the NC machining machine by synthesizing with a macro file, the hole diameter information of the machining target of the hole machining macro file is included as a file name or comment of the hole machining macro file. A file name or a file name including hole diameter information of a hole diameter smaller than or equal to the minimum hole diameter of the hole figures stored in the storage area at the time of selecting the hole processing macro file to be used for the synthesis processing. And wherein only the hole machining macro file with the comment that so as to display the list.

【0007】前記記憶領域に記憶された穴図形のうちの
最小穴径を求める方法としては、前記穴図形を記憶する
記憶領域にその穴図形のうち最小穴径域の穴径情報を含
むコメントを予め付加しておき、このコメントを参照し
て穴図形の最小穴径を求める方法や、前記記憶領域に記
憶された穴図形から最小穴径を検索して穴図形の最小穴
径を求める方法等が考えられる。
As a method of determining the minimum hole diameter of the hole figures stored in the storage area, a comment including hole diameter information of the minimum hole diameter area of the hole figure is stored in the storage area for storing the hole figure. A method that is added in advance to obtain the minimum hole diameter of the hole figure by referring to this comment, a method of searching for the minimum hole diameter from the hole figures stored in the storage area, and obtaining the minimum hole diameter of the hole figure, etc. Can be considered.

【0008】[0008]

【作用】本発明によれば、記憶領域に記憶された穴図形
のうちの、選択される可能性が高い最小穴径以下の穴図
形を加工する穴加工マクロファイルのみがリスト表示さ
れる。これにより、リスト表示される穴加工マクロファ
イル名の数が膨大になることがなく、オペレータの選択
操作が極めて簡単になる。
According to the present invention, among the hole figures stored in the storage area, only the hole machining macro file for machining the hole figures having the minimum hole diameter which is likely to be selected and has the diameter smaller than the minimum hole diameter is displayed in a list. As a result, the number of drilling macro file names displayed in the list does not become huge, and the operator's selection operation becomes extremely simple.

【0009】[0009]

【実施例】以下、添付の図面を参照して本発明の実施例
について説明する。図1は、本発明の実施例に係るNC
加工プログラム生成機能を備えたCADシステムの構成
を示す機能ブロック図である。このシステムは、入力部
1、CAD処理部2、図面データファイル記憶部3、穴
ソート情報ファイル記憶部4、テンプレートファイル記
憶部5、穴加工マクロファイル記憶部6、加工プログラ
ムファイル記憶部7及び表示部8を備えている。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 shows an NC according to an embodiment of the present invention.
It is a functional block diagram which shows the structure of the CAD system provided with the processing program generation function. This system includes an input unit 1, a CAD processing unit 2, a drawing data file storage unit 3, a hole sort information file storage unit 4, a template file storage unit 5, a hole machining macro file storage unit 6, a machining program file storage unit 7, and a display. A section 8 is provided.

【0010】入力部1は、マウス、キーボード等の入力
デバイスで、表示部8に表示されたメニュー、アイコ
ン、図面情報等の特定箇所、特定範囲等を指示したり、
必要な画像データや文字データ等を入力する際に使用さ
れる。CAD処理部2は、ファイル作成・編集処理部1
1及びNC処理部12を備えて構成されている。ファイ
ル作成・編集処理部11は、穴図形を含む図面データフ
ァイルを作成・編集する図面データの作成・編集手段で
あると同時に、後述する穴ソート情報ファイル、テンプ
レートファイル、穴加工マクロファイル及び加工プログ
ラムファイルを作成・編集する手段でもある。このファ
イル作成・編集処理部11で作成・編集された図面デー
タファイルは、図面データファイル記憶部3に格納され
る。
The input unit 1 is an input device such as a mouse and a keyboard, and designates a specific location such as a menu, an icon, drawing information and the like displayed on the display unit 8 or a specific range.
Used when inputting necessary image data and character data. The CAD processing unit 2 is a file creation / editing processing unit 1.
1 and NC processing unit 12. The file creating / editing processing unit 11 is a drawing data creating / editing means for creating / editing a drawing data file including a hole figure, and at the same time, a hole sort information file, a template file, a hole drilling macro file and a drilling program which will be described later. It is also a means of creating and editing files. The drawing data file created / edited by the file creating / editing processing unit 11 is stored in the drawing data file storage unit 3.

【0011】ソート処理部13は、図面データファイル
記憶部3に格納された図面データファイルの中から、加
工対象の穴図形を個々に、又は位置範囲若しくは穴径範
囲によって指定し、指定した方向に加工の順番を決定し
ていく。また、ソート処理部13は、穴ソート情報ファ
イル記憶部4にレイヤを設定し、このレイヤにソート処
理した穴図形を格納する。プログラム変換部14は、ソ
ート処理された穴図形の情報と、後述するテンプレート
ファイル及び穴加工マクロファイルとに基づいて、NC
加工プログラムを生成する。生成された加工プログラム
は、加工プログラムファイル記憶部7に格納される。
The sort processing unit 13 designates the hole figure to be machined individually or by the position range or the hole diameter range from the drawing data file stored in the drawing data file storage unit 3, and in the specified direction. Determine the processing order. Further, the sort processing unit 13 sets a layer in the hole sort information file storage unit 4 and stores the hole graphic subjected to the sort processing in this layer. The program conversion unit 14 determines the NC based on the sorted hole figure information and the template file and hole machining macro file described later.
Generate a machining program. The generated machining program is stored in the machining program file storage unit 7.

【0012】次に、このように構成された本システムの
動作について説明する。図2はこのシステムの加工プロ
グラム生成のためのフローチャートである。先ず、加工
対象の穴図形を含む図面データファイルを読み出す(S
1)。図3は、読み出された図面データの一例を示す図
である。各穴図形は、その位置座標、穴径、深さ、加工
方法(キリ、タップ、リーマ等)の情報等から構成され
る。
Next, the operation of the present system thus constructed will be described. FIG. 2 is a flowchart for generating a machining program of this system. First, a drawing data file including a hole figure to be processed is read (S
1). FIG. 3 is a diagram showing an example of the read drawing data. Each hole figure is composed of information such as position coordinates, hole diameter, depth, processing method (cutting, tapping, reamer, etc.).

【0013】次に、ソート処理部13を起動して、1つ
の加工単位に含ませる穴図形を特定し、ソート処理を実
行するためのパラメータを設定する(S2)。この設定
処理は、例えば、図4に示すようなダイアログメニュー
に対する各種項目の設定操作によって行う。例えば、直
径が10〜14mmの穴図形を加工対象とする場合には、
“直径範囲”に“10”,“14”を設定する。この
他、マウスのカーソルによって個々の穴図形を指定した
り、エキステンドボックスで範囲を指定したり、これら
を組み合わせたりすることにより、加工対象とする穴図
形を選択するようにしてもよい。“ソート方法”には、
図5に示すように、X軸昇降順、X軸昇順、X軸降順、
Y軸昇降順、Y軸昇順及びY軸降順のうちから、効率的
な加工をするためのソートの方向を一つ指定する。“検
索帯”は、図6に示すように、1回のX軸方向又はY軸
方向への移動の際に穴図形を検索する幅である。
Next, the sort processing unit 13 is activated to specify a hole figure to be included in one machining unit, and set parameters for executing the sort processing (S2). This setting process is performed, for example, by setting various items in the dialog menu as shown in FIG. For example, when processing a hole figure with a diameter of 10 to 14 mm,
Set "10" and "14" in the "diameter range". In addition, the hole figure to be processed may be selected by designating individual hole figures with the cursor of the mouse, designating the range with the extend box, or combining these. "Sort method"
As shown in FIG. 5, X-axis ascending order, X-axis ascending order, X-axis descending order,
One of the sorting directions for efficient machining is designated from the Y-axis ascending order, the Y-axis ascending order, and the Y-axis descending order. As shown in FIG. 6, the “search band” is a width for searching a hole figure in one movement in the X-axis direction or the Y-axis direction.

【0014】以上の設定が終了したら、ソート処理を実
行する(S3)。例えば図4に示すように、直径範囲と
して12〜12mm、ソート方法としてX軸昇降順、検索
帯として40mmが設定されて、ソート処理された場合、
図6に示すように、Y座標値が小さい方から40mmの幅
ずつ12mmの穴図形が抽出され、奇数番目の検索帯では
X座標値の小さい順、偶数番目の検索帯ではX座標値の
大きい順に穴図形が抽出される。この結果、図6に示す
ように6つの“M12”の穴図形が所定の順番で抽出さ
れ、この順番で加工が行われることになる。ソートの結
果は、図7に示すような座標値リストを出力することに
よって確認する。
When the above settings are completed, sort processing is executed (S3). For example, as shown in FIG. 4, when the diameter range is set to 12 to 12 mm, the sorting method is set to the ascending / descending order of the X-axis, and the search band is set to 40 mm, and sorting is performed,
As shown in FIG. 6, 12 mm hole figures each having a width of 40 mm are extracted from the Y coordinate with the smallest Y coordinate value, the X coordinate value is in ascending order in the odd-numbered search bands, and the X coordinate value is large in the even-numbered search bands. Hole figures are sequentially extracted. As a result, six "M12" hole figures are extracted in a predetermined order as shown in FIG. 6, and machining is performed in this order. The result of sorting is confirmed by outputting a coordinate value list as shown in FIG.

【0015】このように選択された1つの加工単位が1
つのNCレイヤに保管される(S4)。このとき、NC
レイヤ名若しくはそのコメント名として“M12D2
0”のように、その穴の直径を示す数値を含ませてお
く。また、ソート要素選択時にソート対象の直径範囲が
NCレイヤのコメントとして自動的に格納されるように
してもよい。同様に、他の穴図形“10キリ”、“14
H7”等についてもそれぞれ異なるレイヤにソート結果
を保管する(S5)。このように、一般には同一径及び
同一種類の穴図形を1つの加工単位とすることが望まし
いが、全ての穴図形に対して事前に同一径のセンタード
リルでもみつけ加工しておくような場合には、このみも
つけ加工のみを1つの加工単位とし、全穴図形をソート
処理するようにすればよい。
One machining unit selected in this way is 1
It is stored in one NC layer (S4). At this time, NC
As the layer name or its comment name, "M12D2
A numerical value indicating the diameter of the hole is included, such as "0". Further, the diameter range of the sort target may be automatically stored as a comment of the NC layer when selecting the sort element. , Other hole figures "10 drill", "14"
The sorting results are also stored in different layers for H7 "and the like (S5). In this way, it is generally desirable to use hole figures of the same diameter and the same type as one machining unit, but for all hole figures In the case where a center drill having the same diameter is to be used for machining in advance, only this machining is used as one machining unit and all hole figures are sorted.

【0016】次にプログラム変換部14を起動すると、
図8に示すようなプログラム変換のためのパラメータ設
定用のダイアログメニューが表示されるので、変換パラ
メータを設定していく。先ず、NCレイヤを選択する
(S6)。NCレイヤとしては、加工対象とすべき穴図
形が保管されているレイヤ名を指定する。
Next, when the program conversion unit 14 is activated,
A dialog menu for setting parameters for program conversion as shown in FIG. 8 is displayed, and conversion parameters are set. First, the NC layer is selected (S6). As the NC layer, the layer name in which the hole figure to be processed is stored is specified.

【0017】次に、テンプレートファイルを指定する
(S7)。このテンプレートファイルは、図9に示すよ
うなGコードをベースとして作成されたファイルで、N
C工作機毎の固有のパラメータを記述した部分と後述す
るプログラム変換操作で各種コマンドや加工位置データ
等が挿入される部分とを有する。#start〜#:は
加工プログラムの先頭に記述される部分で、スタート時
のキャンセルコードやワークの座標系設定コマンドが記
述される。#tool〜#:は工具交換に関するプログ
ラムを記述する部分である。また、#end〜#:は加
工プログラムの最後に記述される部分で、原点復帰プロ
グラムや終了コードが記述される。なお、こテンプレー
トファイルは、ファイル作成・編集処理部11を使用し
て予め作成しておく。
Next, a template file is designated (S7). This template file is a file created based on the G code as shown in FIG.
C It has a part in which a unique parameter for each machine tool is described and a part in which various commands and machining position data are inserted by a program conversion operation described later. #Start to #: are the portions described at the beginning of the machining program, in which the cancel code at the start and the coordinate system setting command of the work are described. #Tool to #: is a part in which a program related to tool change is described. Further, #end to #: are the portions described at the end of the machining program, and the origin return program and the end code are described. The template file is created in advance by using the file creation / edit processing unit 11.

【0018】次に、穴加工マクロファイルを指定する
(S8)。即ち、例えばM12のネジ穴の加工手順を例
に取ると、次のようになる。 (1)2mmのセンタードリルによるもみつけ (2)5mmのドリルによる下穴加工 (3)10.3mmドリルによる下穴加工 (4)16mm面取りカッターによる面取り加工 (5)M12タップによるネジ加工
Next, a hole machining macro file is designated (S8). That is, for example, the procedure for processing the M12 screw hole is as follows. (1) Grinding with a 2 mm center drill (2) Pilot hole machining with a 5 mm drill (3) Pilot hole machining with a 10.3 mm drill (4) Chamfering machining with a 16 mm chamfering cutter (5) Screw machining with an M12 tap

【0019】このような加工を実現する穴加工マクロフ
ァイルが予め作成されていない場合には、図10に示す
ような穴加工マクロ編集用のダイアログメニューによっ
て穴加工マクロファイルを作成する。穴加工マクロファ
イルは、加工方法を使用工具毎に指定する固定サイクル
コマンドと、工具の移動命令やサブルーチンの読出しな
ど固定サイクルコマンド以外の自由コマンドとを任意に
組合わせて構成される。各固定サイクルコマンドは、工
具番号、工具名、工具長補正値、固定サイクルのGコー
ド、穴底点Z、リファレンス点R、ピッチP、切り込み
量Q、送り速度F、回転数S、復帰点位置、工具交換の
ON/OFF等によって設定される。固定サイクルパラ
メータZ,R,P,Q,F,Sの設定用入力枠は、選択
されたGコードに応じて必要なものだけを選択的に表示
させる。出力パラメータは、入力された固定サイクルパ
ラメータを接続することにより生成される。マクロ名に
は、“M12”のように、加工対象の穴の直径を示す数
値を含ませておく。
If the hole drilling macro file for realizing such drilling is not created in advance, the hole drilling macro file is created by the dialog menu for editing the hole drilling macro as shown in FIG. The hole machining macro file is configured by arbitrarily combining a fixed cycle command that specifies a machining method for each tool to be used and a free command other than the fixed cycle command such as a tool movement command or a subroutine read. Each fixed cycle command includes a tool number, a tool name, a tool length correction value, a fixed cycle G code, a hole bottom point Z, a reference point R, a pitch P, a cut amount Q, a feed rate F, a rotation speed S, and a return point position. It is set by ON / OFF of tool exchange. The input frames for setting the fixed cycle parameters Z, R, P, Q, F, S selectively display only the necessary items according to the selected G code. The output parameter is generated by connecting the input fixed cycle parameters. The macro name includes a numerical value indicating the diameter of the hole to be processed, such as "M12".

【0020】作成済みの穴加工マクロファイルを選択す
る際には、図11に示すように、穴加工マクロリストを
表示して、このリストの中から必要なマクロファイルを
選択する。このとき、表示するマクロファイルが膨大な
量にならないように、指定レイヤに登録されている穴径
のうち、最小の穴径以下の穴を加工するための穴図形マ
クロファイルのみを表示するようにして、表示対象を削
減すると、選択操作が容易になる。最小の穴径を超える
穴加工マクロファイルを除外するのは、複数の穴を1つ
の加工単位とした場合、通常、最小の穴径までが、加工
可能な範囲であることを考慮したものである。
When selecting the prepared hole drilling macro file, as shown in FIG. 11, the hole drilling macro list is displayed and the required macro file is selected from this list. At this time, in order to prevent an enormous amount of macro files from being displayed, display only the hole figure macro file for processing holes with the smallest hole diameter or less among the hole diameters registered in the specified layer. By reducing the display target, the selection operation becomes easy. The reason for excluding the hole machining macro file that exceeds the minimum hole diameter is that, when multiple holes are used as one machining unit, usually the minimum hole diameter is within the machinable range. .

【0021】表示する穴加工マクロファイルの選択方法
としては、指定レイヤのレイヤコメントを参照する方
法、指定レイヤに登録された穴図形の穴径を全て抽出
してそのうちの最小径を参照する方法の2つの方法が考
えられる。前者の場合、レイヤコメントが例えば“M1
2D10”のように記述されていることがあるので、コ
メントの先頭から最初に記述された数値“12”を穴径
であると認識する。前者は、全ての穴図形を参照する必
要がないため、高速処理が可能という利点があり、後者
はレイヤコメントを記述する必要がないという利点があ
る。また、図12に示すように、穴加工マクロ選択の処
理において、リスト表示が選択されたら(S11)、レ
イヤコメントをまず参照し(S12)、コメントが記述
されていない場合にのみ最小穴径を検索する(S13,
S14)という操作を行うようにしてもよい。
As a method of selecting the hole machining macro file to be displayed, there are a method of referring to the layer comment of the designated layer and a method of extracting all the hole diameters of the hole figures registered in the designated layer and referring to the minimum diameter of them. Two methods are possible. In the former case, the layer comment is, for example, "M1.
Since it is sometimes described as 2D10 ", the numerical value" 12 "described first from the beginning of the comment is recognized as the hole diameter. The former need not refer to all hole figures. , There is an advantage that high-speed processing is possible, and the latter has an advantage that it is not necessary to describe a layer comment.In addition, as shown in FIG. ), The layer comment is first referred to (S12), and the minimum hole diameter is searched only when the comment is not described (S13,
The operation of S14) may be performed.

【0022】図8に示すメニューのうち、NCレイヤ、
テンプレートファイル、穴加工マクロファイルが指定さ
れたら、出力ファイル名を例えば、“M12”のように
設定する。コメント欄には、加工プログラムの名称に適
した例えば“0002(M12)”のようなコメントを
入力しておく。
Among the menus shown in FIG. 8, the NC layer,
When the template file and the hole machining macro file are designated, the output file name is set, for example, "M12". In the comment field, a comment such as "0002 (M12)" suitable for the name of the machining program is entered.

【0023】このような各種パラメータの設定が終了し
たら、プログラム作成処理が実行され加工プログラムが
生成される(S9)。この変換動作の概要を図13に示
す。この変換処理は、基本的にはテンプレートファイル
と穴加工マクロファイルと穴ソート情報とを合成してG
コードのプログラムを生成することにより実現される。
図14にこの変換処理のフローチャートを、また図1
5、図16に変換結果を示す。
When the setting of various parameters is completed, a program creating process is executed and a machining program is created (S9). The outline of this conversion operation is shown in FIG. This conversion process is basically performed by combining the template file, the hole machining macro file, and the hole sort information.
It is realized by generating a code program.
FIG. 14 is a flowchart of this conversion process, and FIG.
5 and FIG. 16 show the conversion result.

【0024】先ず、加工プログラム作成用のワークエリ
アを確保する(S21)。次に穴加工マクロファイルの
コメント文をプログラム番号及びプログラム名としてワ
ークエリアに出力する(S22)。コメント文が設定さ
れていない場合には、プログラム番号を“0000”と
し、その後に穴加工マクロ名を続けて、例えば“000
0(M12)”のように出力する。次にテンプレートフ
ァィルの#startと#:との間の前処理プログラム
を出力する(S23)。
First, a work area for creating a machining program is secured (S21). Next, the comment text of the hole machining macro file is output to the work area as the program number and program name (S22). If no comment text is set, the program number is set to "0000", followed by the hole machining macro name, for example, "000".
0 (M12) ". Next, the preprocessing program between the template files #start and #: is output (S23).

【0025】続いて、穴加工マクロファイルの1行目か
ら最終行まで1行ずつ順番に固定サイクルであるかどう
かを判定し(S24,S25,S26)、固定サイクル
である場合には、穴加工マクロファイルの出力行が工具
交換ONに設定されているかどうかを判定する(S2
7)。ONに設定されている場合には、テンプレートフ
ァイルの#toolと#:との間の工具交換のプログラ
ムを出力し、工具交換プログラム中の変数$TOOL,
$TNAME,$SPEED,$LOFFに、対応する
出力行の工具番号、工具名、回転数、工具長補正値をそ
れぞれ挿入する(S28)。続いて復帰点、Gコード、
出力パラメータの順で固定サイクル行が出力され(S2
9)、指定NCレイヤの座標値が順次出力される(S3
0)。
Next, it is judged whether or not the cycle is a fixed cycle, one line at a time, from the first line to the last line of the hole machining macro file (S24, S25, S26). It is determined whether the output line of the macro file is set to tool change ON (S2
7). If it is set to ON, the tool change program between #tool and #: in the template file is output, and the variable $ TOOL in the tool change program is output.
The tool number, tool name, rotation speed, and tool length correction value of the corresponding output line are inserted into $ TNAME, $ SPEED, and $ LOFF, respectively (S28). Then return point, G code,
Fixed cycle rows are output in the order of output parameters (S2
9), the coordinate values of the designated NC layer are sequentially output (S3).
0).

【0026】一方、穴加工マクロファイルの出力行が、
工具の移動指定、サブルーチンの読出し等固定サイクル
以外の場合には、その行を出力して次の行の判定に移る
(S26,S33)。全ての行について変換が終了した
ら、テンプレートファイルの#endと#:との間の後
処理プログラムを出力する(S31,S32,S3
4)。これにより、図15,16に示すような変換プロ
グラムが生成されることになる。この加工プログラム
は、加工プログラムファイル記憶部7に格納され、NC
加工機15に適宜供給される。
On the other hand, the output line of the hole machining macro file is
In cases other than the fixed cycle such as tool movement designation and subroutine reading, that line is output and the process proceeds to the determination of the next line (S26, S33). When the conversion is completed for all the lines, the post-processing program between #end and #: of the template file is output (S31, S32, S3).
4). As a result, the conversion program as shown in FIGS. 15 and 16 is generated. This machining program is stored in the machining program file storage unit 7, and NC
It is appropriately supplied to the processing machine 15.

【0027】[0027]

【発明の効果】以上述べたように、本発明によれば、記
憶領域に記憶された穴図形のうちの最小穴径以下の穴図
形を加工する穴加工マクロファイルのみがリスト表示さ
れるので、リスト表示される穴加工マクロファイル名の
数が膨大になることがなく、オペレータの選択操作が極
めて簡単になるという効果を奏する。
As described above, according to the present invention, only the hole machining macro file for machining the hole figures having the minimum hole diameter or less among the hole figures stored in the storage area is displayed in a list. The number of hole machining macro file names displayed in the list does not become huge, and the operator's selection operation is extremely simple.

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

【図1】 本発明の実施例に係るNC加工プログラム生
成機能を備えたCADシステムの機能ブロック図であ
る。
FIG. 1 is a functional block diagram of a CAD system having an NC machining program generation function according to an embodiment of the present invention.

【図2】 同システムにおける加工プログラム生成のフ
ローチャートとである。
FIG. 2 is a flowchart of a machining program generation in the system.

【図3】 同加工対象の図面の一例を示す図である。FIG. 3 is a diagram showing an example of a drawing of the processing target.

【図4】 同ソートパラメータ設定用メニューを示す図
である。
FIG. 4 is a diagram showing the sort parameter setting menu.

【図5】 同ソート方法の例を示す図である。FIG. 5 is a diagram showing an example of the same sorting method.

【図6】 同ソート結果を示す図である。FIG. 6 is a diagram showing the sorting result.

【図7】 同ソート結果の座標値リストを示す図であ
る。
FIG. 7 is a diagram showing a coordinate value list of the same sorting result.

【図8】 同プログラム変換用のパラメータ設定メニュ
ーを示す図である。
FIG. 8 is a diagram showing a parameter setting menu for program conversion.

【図9】 同テンプレートファイルの一例を示す図であ
る。
FIG. 9 is a diagram showing an example of the template file.

【図10】 同穴加工マクロファイル編集用メニューを
示す図である。
FIG. 10 is a view showing a menu for editing the same hole machining macro file.

【図11】 同穴加工マクロ選択メニューを示す図であ
る。
FIG. 11 is a view showing a hole machining macro selection menu.

【図12】 同穴加工マクロ選択メニュー表示のフロー
チャートである。
FIG. 12 is a flowchart of displaying a hole machining macro selection menu.

【図13】 同プログラム変換処理の概要を説明するた
めの図である。
FIG. 13 is a diagram for explaining the outline of the program conversion processing.

【図14】 同プログラム変換処理のフローチャートで
ある。
FIG. 14 is a flowchart of the same program conversion process.

【図15】 同変換処理で作成された穴加工プログラム
の一例を示す図である。
FIG. 15 is a diagram showing an example of a hole drilling program created by the conversion process.

【図16】 図15のプログラムの続きを示す図であ
る。
16 is a diagram showing a continuation of the program of FIG.

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

1…入力部、2…CAD処理部、3…図面データファイ
ル記憶部、4…穴ソート情報ファイル記憶部、5…テン
プレートファイル記憶部、6…穴加工マクロファイル記
憶部、7…加工プログラムファイル記憶部、8…表示
部、11…ファイル作成・編集処理部、12…NC処理
部、13…ソート処理部、14…プログラム変換部、1
5…NC加工機。
1 ... Input unit, 2 ... CAD processing unit, 3 ... Drawing data file storage unit, 4 ... Hole sort information file storage unit, 5 ... Template file storage unit, 6 ... Hole machining macro file storage unit, 7 ... Machining program file storage Parts, 8 ... display part, 11 ... file creation / edit processing part, 12 ... NC processing part, 13 ... sort processing part, 14 ... program conversion part, 1
5 ... NC processing machine.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CAD上で作成された穴図形を含む図面
データファイルの中から指定した穴図形を抽出し所定の
記憶領域に記憶すると共に、この記憶領域に記憶された
穴図形の情報と、使用すべきNC加工機に特有の固定的
なパラメータを記述したテンプレートファイルと、各穴
についての穴加工手順を記述した穴加工マクロファイル
とを合成処理してNC加工機の加工プログラムを生成す
る際に、 前記穴加工マクロファイルのファイル名又はコメントと
して当該穴加工マクロファイルの加工対象の穴径情報を
含ませておき、前記合成処理に供される穴加工マクロフ
ァイルの選択時に前記記憶領域に記憶された穴図形のう
ち最小穴径以下の穴径情報を含むファイル名又はコメン
トを持つ穴加工マクロファイルのみを一覧表示させるよ
うにしたことを特徴とする穴加工マクロファイルのリス
ト表示方法。
1. A specified hole figure is extracted from a drawing data file containing a hole figure created on CAD and stored in a predetermined storage area, and information on the hole figure stored in this storage area, When generating a machining program for an NC processing machine by combining a template file in which fixed parameters specific to the NC processing machine to be used are described and a hole processing macro file in which a hole processing procedure for each hole is described. In addition, the hole diameter information of the processing target of the hole drilling macro file is included as a file name or comment of the hole drilling macro file, and is stored in the storage area when the hole drilling macro file to be used for the combining process is selected. Only the hole machining macro file with the file name or the comment containing the hole diameter information of the minimum hole diameter or less is displayed in the list. How to list drilling macro files, wherein the door.
【請求項2】 前記穴図形を記憶する記憶領域にその穴
図形のうち最小穴径域の穴径情報を含むコメントを付加
しておき、前記一覧表示させる穴加工マクロファイルを
抽出する際に、前記記憶領域に付加されたコメントを参
照して穴図形の最小穴径を求めることを特徴とする請求
項1記載の穴加工マクロファイルのリスト表示方法。
2. When a hole machining macro file to be displayed as a list is extracted by adding a comment including hole diameter information of a minimum hole diameter region of the hole figure to a storage area for storing the hole figure, 2. The hole machining macro file list display method according to claim 1, wherein the minimum hole diameter of the hole figure is obtained by referring to the comment added to the storage area.
【請求項3】 前記一覧表示させる穴加工マクロファイ
ルを抽出する際に、前記記憶領域に記憶された穴図形か
ら最小穴径を検索して穴図形の最小穴径を求めることを
特徴とする請求項1記載の穴加工マクロファイルのリス
ト表示方法。
3. The minimum hole diameter of the hole figure is obtained by searching the hole figure stored in the storage area for the minimum hole diameter when extracting the hole machining macro file to be displayed in the list. A method for displaying a list of hole machining macro files according to item 1.
JP34256893A 1993-12-14 1993-12-14 List display method for boring microfile Pending JPH07168611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34256893A JPH07168611A (en) 1993-12-14 1993-12-14 List display method for boring microfile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34256893A JPH07168611A (en) 1993-12-14 1993-12-14 List display method for boring microfile

Publications (1)

Publication Number Publication Date
JPH07168611A true JPH07168611A (en) 1995-07-04

Family

ID=18354775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34256893A Pending JPH07168611A (en) 1993-12-14 1993-12-14 List display method for boring microfile

Country Status (1)

Country Link
JP (1) JPH07168611A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004012022A1 (en) * 2002-07-30 2004-02-05 Citizen Watch Co., Ltd. Machine tool program unauthorized use preventing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004012022A1 (en) * 2002-07-30 2004-02-05 Citizen Watch Co., Ltd. Machine tool program unauthorized use preventing device
CN100388141C (en) * 2002-07-30 2008-05-14 西铁城控股株式会社 Machine tool program unauthorized use preventing device

Similar Documents

Publication Publication Date Title
US6112133A (en) Visual system and method for generating a CNC program for machining parts with planar and curvilinear surfaces
US4549270A (en) Method of controlling selection of tools in a quadriaxial numerical control lathe
US4794514A (en) NC program editing method for four-axis lathes
JP2666642B2 (en) Tool designation method in NC automatic programming system
GB2168172A (en) Machine tools
US6591156B1 (en) Method and apparatus for providing numerical control information
WO2000012258A1 (en) Method and apparatus for optimizing nc programs in nc machining
CN106471430B (en) Procedure editor's servicing unit
US5289382A (en) Method of and system for producing data for numerically controlled machining
US4972322A (en) Method for preparing numerical control data for a machine tool
JP2002529843A5 (en)
JPH0313023B2 (en)
WO2000028393A1 (en) Visual cnc program for generating machining parts
JPH07168611A (en) List display method for boring microfile
JPH07168612A (en) Boring program generating device
JPS61105610A (en) Automatic programming device of numerically controlled machine tool
JPS59196145A (en) Numerical controller having automatic tool decision function
JPS61105609A (en) Automatic programming device of numerical control machine tool
JPS62140739A (en) Setting device for machining order in automatic machine
JPS61105611A (en) Automatic programming device of numerically controlled machine tool
Ahola Creo Parametric Milling
JPH04269149A (en) Nc data preparation for hole machining
JPS62140744A (en) Conversion processing device for machining data in automatic machine
JPS62222303A (en) Registering and editing system for automatic programming for nc
JPS61274842A (en) Automatic determining method of bore machining tool