JPH07168612A - Boring program generating device - Google Patents

Boring program generating device

Info

Publication number
JPH07168612A
JPH07168612A JP34256993A JP34256993A JPH07168612A JP H07168612 A JPH07168612 A JP H07168612A JP 34256993 A JP34256993 A JP 34256993A JP 34256993 A JP34256993 A JP 34256993A JP H07168612 A JPH07168612 A JP H07168612A
Authority
JP
Japan
Prior art keywords
hole
file
machining
program
drawing 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.)
Pending
Application number
JP34256993A
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 JP34256993A priority Critical patent/JPH07168612A/en
Publication of JPH07168612A publication Critical patent/JPH07168612A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To generate a boring program which matches an optional NC machine tool extremely easily by generating the boring program of the NC machine tool by putting information on sorted hole figures, a template, and a boring microfile together. CONSTITUTION:Drawing data which are generated and edited by a file generating and editing process part 11 are stored in a drawing data file storage part 3. A sorting process part 13 specifies 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 the 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 hole figures in this layer. A program conversion part 14 generates the NC machining program on the basis of the information on the sorted hole flgures, the template file, and 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. The present invention relates to a hole machining program generator.

【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】[0003]

【発明が解決しようとする課題】しかし、CADシステ
ム上でNC加工プログラムを作成する場合、座標系の設
定値や原点復帰位置などNC加工機に固有のパラメータ
がNC加工機毎に異なるため、画一的な変換処理が難し
いという問題がある。
However, when an NC machining program is created on a CAD system, the parameters unique to the NC machining machine, such as the coordinate system setting values and the home position, are different for each NC machining machine. There is a problem that it is difficult to perform a single conversion process.

【0004】本発明は、このような問題点を解決するた
めになされたもので、CADシステム上で任意のNC加
工機に適合した穴加工プログラムを極めて容易に生成す
ることが可能な穴加工プログラム生成装置を提供するこ
とを目的とする。
The present invention has been made to solve such a problem, and is a hole drilling program capable of extremely easily generating a hole drilling program suitable for an arbitrary NC machining machine on a CAD system. An object is to provide a generator.

【0005】[0005]

【課題を解決するための手段】本発明に係る穴加工プロ
グラム生成装置は、穴図形を含む図面データファイルを
作成・編集する図面データ作成編集手段と、この図面デ
ータ作成編集手段で作成された図面データファイルを記
憶する図面データファイル記憶手段と、この図面データ
ファイル記憶手段に記憶された図面データファイルの中
から指定された穴図形を抽出して指定された方向にソー
ト処理するソート処理手段と、このソート処理手段でソ
ート処理された穴図形の情報を記憶する穴ソート情報記
憶手段と、NC加工機を制御するプログラムに記述され
るそのNC加工機に特有の固定的なパラメータを記述し
たテンプレートファイルを記憶するテンプレートファイ
ル記憶手段と、1又は複数の工具を指定した穴加工手順
を記述した穴加工マクロファイルを記憶する穴加工マク
ロファイル記憶手段と、前記穴ソート情報記憶手段に記
憶されたソート処理された穴図形の情報、前記テンプレ
ートファイル記憶手段に記憶されたテンプレートファイ
ル及び前記穴加工マクロファイル記憶手段に記憶された
穴加工マクロファイルを合成して前記NC加工機の加工
プログラムを生成する加工プログラム変換手段とを具備
したことを特徴とする。
A hole drilling program generating apparatus according to the present invention is a drawing data creating / editing means for creating / editing a drawing data file including a hole figure, and a drawing created by the drawing data creating / editing means. A drawing data file storage means for storing the data file, a sort processing means for extracting a specified hole figure from the drawing data file stored in the drawing data file storage means, and performing a sorting process in a specified direction, A hole sort information storage means for storing information on hole figures sorted by this sort processing means, and a template file describing fixed parameters specific to the NC processing machine described in a program for controlling the NC processing machine. For storing a template file storing means and a hole drilling procedure describing a hole drilling procedure specifying one or more tools Hole machining macro file storage means for storing a black file, information on the sorted hole figures stored in the hole sort information storage means, a template file stored in the template file storage means, and the hole machining macro file storage Machining program converting means for synthesizing the hole machining macro files stored in the means to generate a machining program for the NC machining machine.

【0006】[0006]

【作用】本発明によれば、CAD上で穴図形を含む図面
データファイルが作成・編集されたのち、作成された図
面データファイルの中から指定した穴図形が抽出され、
指定された方向にソートされる。そして、このソート処
理された穴図形の情報と、使用すべきNC加工機に特有
の固定的なパラメータを記述したテンプレートファイル
と、各穴についての穴加工手順を記述した穴加工マクロ
ファイルとが、加工プログラム変換手段によって合成処
理されてNC加工機の加工プログラムが生成される。そ
して、この発明においては、処理された穴図形の情報及
び穴加工マクロファイルは、使用するNC加工機が異な
っても共通に使用することができ、テンプレートファイ
ルはNC加工機毎に1つ作成しておけば良いという利点
を有している。
According to the present invention, after the drawing data file including the hole figure is created and edited on the CAD, the specified hole figure is extracted from the created drawing data file,
Sorted in the specified direction. Then, the information of the sorted hole figures, the template file in which the fixed parameters peculiar to the NC processing machine to be used are described, and the hole processing macro file in which the hole processing procedure for each hole is described, The machining program conversion means performs synthesis processing to generate a machining program for the NC processing machine. Further, in the present invention, the processed hole figure information and the hole machining macro file can be commonly used even if different NC machining machines are used, and one template file is created for each NC machining machine. It has the advantage that it can be stored.

【0007】本発明によれば、加工プログラムが全てC
AD上の操作によって生成されるので、設計担当者及び
加工担当者が共に同一のシステム上で操作を行うことが
でき、両者のリンクが良好に図れることになる。また、
設計担当者が簡単な操作で自分の意図した通りの加工プ
ログラムを生成することもできる。更に、特別のNCプ
ログラミング装置を必要としないので、システムの全体
的なコストを低減することもできる。
According to the present invention, all machining programs are C
Since it is generated by the operation on AD, both the person in charge of designing and the person in charge of processing can perform the operation on the same system, and the link between the two can be satisfactorily achieved. Also,
The designer can also generate a machining program as intended by a simple operation. Moreover, the overall cost of the system can be reduced since no special NC programming device is required.

【0008】[0008]

【実施例】以下、添付の図面を参照して本発明の実施例
について説明する。図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.

【0009】入力部1は、マウス、キーボード等の入力
デバイスで、表示部8に表示されたメニュー、アイコ
ン、図面情報等の特定箇所、特定範囲等を指示したり、
必要な画像データや文字データ等を入力する際に使用さ
れる。CAD処理部2は、ファイル作成・編集処理部1
1及びNC処理部12を備えて構成されている。
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.

【0010】ファイル作成・編集処理部11は、穴図形
を含む図面データファイルを作成・編集する図面データ
の作成・編集手段であると同時に、後述する穴ソート情
報ファイル、テンプレートファイル、穴加工マクロファ
イル及び加工プログラムファイルを作成・編集する手段
でもある。このファイル作成・編集処理部11で作成・
編集された図面データファイルは、図面データファイル
記憶部3に格納される。
The file creating / editing processing section 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, and a hole machining macro file which will be described later. It is also a means for creating and editing a machining program file. Created by this file creation / edit processing unit 11.
The edited drawing data file 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]

【発明の効果】以上述べたように、本発明によれば、加
工プログラムが全てCAD上の操作によって生成される
ので、設計担当者及び加工担当者が共に同一のシステム
上で操作を行うことができ、両者のリンクが良好に図れ
る他、設計担当者が簡単な操作で自分の意図した通りの
加工プログラムを生成することもできる。更に、特別の
NCプログラミング装置を必要としないので、システム
の全体的なコストを低減することもできる。
As described above, according to the present invention, since the machining programs are all generated by the operation on the CAD, both the designer and the operator can operate on the same system. In addition to the good link between the two, the designer can also generate a machining program as intended by a simple operation. Moreover, the overall cost of the system can be reduced since no special NC programming device is required.

【図面の簡単な説明】[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 (1)

【特許請求の範囲】[Claims] 【請求項1】 穴図形を含む図面データファイルを作成
・編集する図面データ作成編集手段と、 この図面データ作成編集手段で作成された図面データフ
ァイルを記憶する図面データファイル記憶手段と、 この図面データファイル記憶手段に記憶された図面デー
タファイルの中から指定された穴図形を抽出して指定さ
れた方向にソート処理するソート処理手段と、 このソート処理手段でソート処理された穴図形の情報を
記憶する穴ソート情報記憶手段と、 NC加工機を制御するプログラムに記述されるそのNC
加工機に特有の固定的なパラメータを記述したテンプレ
ートファイルを記憶するテンプレートファイル記憶手段
と、 1又は複数の工具を指定した穴加工手順を記述した穴加
工マクロファイルを記憶する穴加工マクロファイル記憶
手段と、 前記穴ソート情報記憶手段に記憶されたソート処理され
た穴図形の情報、前記テンプレートファイル記憶手段に
記憶されたテンプレートファイル及び前記穴加工マクロ
ファイル記憶手段に記憶された穴加工マクロファイルを
合成して前記NC加工機の加工プログラムを生成する加
工プログラム変換手段とを具備したことを特徴とする穴
加工プログラム生成装置。
1. A drawing data creation / editing means for creating / editing a drawing data file including a hole figure, a drawing data file storage means for storing the drawing data file created by this drawing data creation / editing means, and this drawing data Sort processing means for extracting a specified hole figure from the drawing data file stored in the file storage means and performing a sorting process in the specified direction, and information of the hole figure sorted by this sort processing means is stored. Hole sorting information storage means, and the NC described in the program for controlling the NC processing machine
Template file storage means for storing a template file in which fixed parameters unique to a processing machine are stored, and hole drilling macro file storage means for storing a drilling macro file in which a drilling procedure specifying one or more tools is described And the hole processing information stored in the hole sorting information storage means, the template file stored in the template file storage means, and the hole processing macro file stored in the hole processing macro file storage means are combined. And a machining program conversion means for generating a machining program for the NC machining machine.
JP34256993A 1993-12-14 1993-12-14 Boring program generating device Pending JPH07168612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34256993A JPH07168612A (en) 1993-12-14 1993-12-14 Boring program generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34256993A JPH07168612A (en) 1993-12-14 1993-12-14 Boring program generating device

Publications (1)

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

Family

ID=18354784

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34256993A Pending JPH07168612A (en) 1993-12-14 1993-12-14 Boring program generating device

Country Status (1)

Country Link
JP (1) JPH07168612A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6909937B2 (en) 2002-02-28 2005-06-21 Star Micronics Co., Ltd. Numerically controlled machine tool and a program transforming method therefor
WO2022091896A1 (en) * 2020-10-26 2022-05-05 ファナック株式会社 Numerical control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6909937B2 (en) 2002-02-28 2005-06-21 Star Micronics Co., Ltd. Numerically controlled machine tool and a program transforming method therefor
WO2022091896A1 (en) * 2020-10-26 2022-05-05 ファナック株式会社 Numerical control 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
US7487006B2 (en) Automatic programming method and automatic programming apparatus
EP0223857B1 (en) Method of compiling nc programs for a four-axes lathe
JP2666642B2 (en) Tool designation method in NC automatic programming system
JPS5882648A (en) Tool arrangement control method in numerically controlled machine tool
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
US5289382A (en) Method of and system for producing data for numerically controlled machining
JPH03177903A (en) Method and device for production of nc working data
JP2002529843A5 (en)
WO2000028393A1 (en) Visual cnc program for generating machining parts
JPH07168612A (en) Boring program generating device
JPH07168611A (en) List display method for boring microfile
JP2654253B2 (en) Numerical control information creation device
JPS61105610A (en) Automatic programming device of numerically controlled machine tool
JP2000039909A (en) Numerical control information creating device
JPS61105609A (en) Automatic programming device of numerical control machine tool
JPS59196145A (en) Numerical controller having automatic tool decision function
JP7301486B1 (en) Information processing device and program
JPS61105611A (en) Automatic programming device of numerically controlled machine tool
JPS62140739A (en) Setting device for machining order in automatic machine
WO2023120391A1 (en) Information processing device and program that generates a first nc program and converts a second nc program
JPS58143941A (en) Numerically controlled processing system
JPS62140744A (en) Conversion processing device for machining data in automatic machine