Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0719171B2 - Method for creating NC part program for laser machining - Google Patents
[go: Go Back, main page]

JPH0719171B2 - Method for creating NC part program for laser machining - Google Patents

Method for creating NC part program for laser machining

Info

Publication number
JPH0719171B2
JPH0719171B2 JP62019729A JP1972987A JPH0719171B2 JP H0719171 B2 JPH0719171 B2 JP H0719171B2 JP 62019729 A JP62019729 A JP 62019729A JP 1972987 A JP1972987 A JP 1972987A JP H0719171 B2 JPH0719171 B2 JP H0719171B2
Authority
JP
Japan
Prior art keywords
block
fine portion
fine
machining
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62019729A
Other languages
Japanese (ja)
Other versions
JPS63187307A (en
Inventor
真樹 関
隆史 竹ケ原
透 松中
Original Assignee
フアナツク株式会社
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 フアナツク株式会社 filed Critical フアナツク株式会社
Priority to JP62019729A priority Critical patent/JPH0719171B2/en
Publication of JPS63187307A publication Critical patent/JPS63187307A/en
Publication of JPH0719171B2 publication Critical patent/JPH0719171B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Laser Beam Processing (AREA)
  • Numerical Control (AREA)

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明はレーザ加工用のNCパートプログラム作成方法に
係り、特に微細部における加工精度を向上できるNCパー
トプログラムの作成方法に関する。
The present invention relates to an NC part program creating method for laser machining, and more particularly to an NC part program creating method capable of improving machining accuracy in a fine portion.

〈従来技術〉 APTやFAPTなどの自動プログラミング言語を用いてNCデ
ータを作成する自動プログラミングにおいては、 (a)簡単な記号を用いて点、直線、円弧を定義すると
共に(図形定義)、これら定義された点、直線、円弧を
用いて工具通路を定義して(運動文定義)、自動プログ
ラミング言語によるパートプログラムを作成し、 (B)しかる後、NCデータ出力テーブルを用いて自動プ
ログラミング言語によるパートプログラムをNC装置が実
行できる形式のNCデータ(EIAコードあるいはISOコー
ド)よりなるNCパートプログラムデータに変換する。
<Prior art> In automatic programming that creates NC data using an automatic programming language such as APT or FAPT, (a) define points, straight lines, and circular arcs using simple symbols (figure definition). Define the tool path using the specified points, straight lines, and arcs (movement statement definition), and create a part program in the automatic programming language. (B) After that, use the NC data output table to create the part in the automatic programming language. Convert the program into NC part program data consisting of NC data (EIA code or ISO code) in a format that can be executed by the NC unit.

ところで、工具通路にブロックの長さが短い微細部が存
在する場合、機械の特性等から該微細部付近で工具送り
速度を一定に保つことができず、微細部を通過する時に
加減速が必要になる。この微細部周辺における送り速度
の加減速が部品加工精度に悪影響を及ぼし、特にレーザ
加工のように高い加工速度が要求される場合送り速度の
加減速は加工ダレを生じ加工精度に相当の影響を与え
る。
By the way, if there is a minute portion with a short block in the tool path, the tool feed rate cannot be kept constant near the minute portion due to the characteristics of the machine, etc., and acceleration / deceleration is required when passing through the minute portion. become. Acceleration / deceleration of the feed speed in the vicinity of this minute portion adversely affects the machining accuracy of parts, and especially when a high machining speed is required such as laser machining, the acceleration / deceleration of the feed speed causes machining sag and considerably affects the machining accuracy. give.

このため、微細部周辺での加工精度が低下しないように
NCパートプログラムを作成する必要があるが、従来は微
細部付近でその都度加工条件を変更する必要があるかど
うかをチェックし、変更の要/不要に応じて図形定義
文、運動定義文(両定義文をまとめて通路定義文とい
う)を作成するようにしている。
For this reason, do not reduce the processing accuracy around the fine part.
It is necessary to create an NC part program, but conventionally, it was checked whether or not the machining conditions had to be changed each time near the fine part, and depending on the necessity / unnecessity of the change, a graphic definition statement and a motion definition statement (both The definition sentences are collectively referred to as a passage definition sentence).

〈発明が解決しようとしている問題点〉 しかし、かかる従来方法では微細部付近での加工条件を
考慮しながら自動プログラミング言語によるNCパートプ
ログラムを作成する必要があり、作業が大変となる問題
がある。
<Problems to be Solved by the Invention> However, in such a conventional method, it is necessary to create an NC part program in an automatic programming language in consideration of the processing conditions in the vicinity of a fine portion, and there is a problem that the work becomes difficult.

以上から本発明の目的は微細部及びその周辺における加
工条件を考慮することなく自動プログラミング言語によ
るNCパートプログラムを作成することができ、しかも微
細部及びその周辺における加工精度を維持できるレーザ
加工用のNCパートプログラム作成方法を提供することで
ある。
From the above, the object of the present invention is to make it possible to create an NC part program by an automatic programming language without considering the processing conditions in the fine portion and its periphery, and for laser processing capable of maintaining the processing accuracy in the fine portion and its periphery. It is to provide an NC part program creation method.

本発明の別の目的は、レーザビーム通路が直線と円弧で
形成されている場合、微細部を正しく識別して該微細部
の加工条件を変更して高精度の加工ができるようにした
レーザ加工用のNCパートプログラム作成方法を提供する
ことである。
Another object of the present invention is to perform laser processing in which, when the laser beam path is formed by a straight line and an arc, the fine portion is correctly identified and the processing conditions of the fine portion are changed to enable high-precision processing. It is to provide a method for creating an NC part program for the.

〈問題点を解決するための手段〉 上記目的は、本発明によれば、微細部を特定する直線ブ
ロックの長さLS及び円弧ブロックの長さDS、該微細部の
周辺を特定するデータ、該周辺及び微細部における加工
条件(レーザビームの送り速度、レーザビームの出力値
等)を特定するデータを含む加工条件変更定義文、並び
に微細部及びその周辺の加工条件を考慮することなく作
成された通路定義文を入力する手段、レーザビーム通路
が直線と円弧で形成されている時、通路定義文を用いて
直線ブロックの長さを求め、該長さが設定値LS以下の場
合、該直線ブロックは微細部であると判定すると共に、
レーザビーム通路が直線と円弧で形成されている時、通
路定義文を用いて円弧ブロックの長さを求め、該長さが
設定値DS以下の場合、該円弧ブロックは微細部であると
判定する手段、微細部が識別された時、加工条件変更定
義文を用いて微細部周辺を2以上の加工条件変更区間に
区分する手段、各加工条件変更区間及び微細部でそれぞ
れ前記加工条件変更定義文により設定されている加工条
件となるようにNCパートプログラムを作成する手段によ
り達成される。
<Means for Solving the Problems> According to the present invention, the above object is to provide a linear block length L S and a circular arc block length D S for identifying a fine portion, and data for identifying the periphery of the fine portion. Created without considering the processing condition change definition statement including the data for specifying the processing conditions (laser beam feed rate, laser beam output value, etc.) in the peripheral area and the minute area, and the processing conditions of the minute area and its periphery. Means for inputting the defined passage definition sentence, when the laser beam passage is formed by a straight line and an arc, obtain the length of the straight line block using the passage definition sentence, if the length is less than the set value L S , While determining that the linear block is a fine portion,
When the laser beam passage is formed by a straight line and a circular arc, the length of the circular arc block is obtained by using a passage definition statement, and if the length is a set value D S or less, it is determined that the circular arc block is a fine portion. Means for dividing the fine part periphery into two or more machining condition change sections by using the machining condition change definition statement when the fine part is identified, and the machining condition change definition for each machining condition change section and the fine part, respectively. This is achieved by means of creating an NC part program so that the machining conditions set by the statement will be achieved.

〈作用〉 微細部であるとみなす直線ブロックの長さLS及び円弧ブ
ロックの長さDS、該微細部の周辺を特定するデータ、該
周辺及び微細部における加工条件(レーザビームの送り
速度、レーザビームの出力値等)を特定するデータを含
む加工条件変更定義文、並びに微細部及びその周辺の加
工条件を考慮することなく作成された通路定義文を入力
し、レーザビーム通路が直線と円弧で形成されている
時、通路定義文を用いて直線ブロックの長さを求め、該
長さが設定値LS以下の場合、該直線ブロックは微細部で
あると判定すると共に、通路定義文を用いて円弧ブロッ
クの長さを求め、該長さが設定値DS以下の場合、該円弧
ブロックは微細部であると判定し、微細部が識別された
時、加工条件変更定義文を用いて微細部周辺を2以上の
加工条件変更区間に区分し、各加工条件変更区間及び微
細部でそれぞれ前記加工条件変更定義文により設定され
ている加工条件となるようにNCパートプログラムを作成
する。
<Operation> The length L S of the linear block and the length D S of the arc block which are considered to be the fine portion, the data for specifying the periphery of the fine portion, the processing conditions in the periphery and the fine portion (laser beam feed speed, Input the processing condition change definition text that includes data that specifies the laser beam output value, etc., and the path definition text that was created without considering the processing conditions of the fine part and its surroundings, and make the laser beam path straight and circular. , The length of the straight line block is obtained using the passage definition sentence, and when the length is equal to or less than the set value L S , the straight line block is determined to be a fine portion, and the passage definition sentence is Obtain the length of the arc block using, when the length is less than or equal to the set value D S , it is determined that the arc block is a fine portion, when the fine portion is identified, using the processing condition change definition statement 2 or more processing conditions around the fine part Divided into further sections, creating an NC part program so that the machining conditions set by each in machining condition modification interval and fine portions the machining condition modification definition statement.

以上のようにすれば、加工条件を考慮することなく自動
プログラミング言語によるNCパートプログラムを作成す
ることができ、しかも、実際のNC加工において微細部及
びその周辺における加工精度を維持できる。又、レーザ
ビーム通路が直線ブロックと円弧ブロックで形成されて
いる時、直線ブロック長あるいは円弧ブロック長が設定
値以下の時微細部と判定して加工条件を変更するように
したから、高精度の加工ができる。
By doing so, it is possible to create an NC part program in an automatic programming language without considering the processing conditions, and moreover, it is possible to maintain the processing accuracy in the fine part and its periphery in the actual NC processing. Further, when the laser beam path is formed by a straight block and a circular arc block, when the linear block length or the circular arc block length is less than or equal to the set value, it is judged as a fine portion and the processing conditions are changed, so that high precision is achieved. Can be processed.

〈実施例〉 第1図は本発明の概略説明図であり、同図(a)は自動
プログラミング言語によるパートプログラム説明図、同
図(b)は微細部を有する加工形状の一部拡大図であ
る。
<Embodiment> FIG. 1 is a schematic explanatory view of the present invention. FIG. 1A is an explanatory view of a part program in an automatic programming language, and FIG. 1B is a partially enlarged view of a machining shape having a fine portion. is there.

11はパートプログラム、11aは図形定義文、11bは加工条
件変更定義文、11cは運動定義文、12はマクロ、SMPは微
細部及びその周辺部、bi〜bi+2は通路ブロック、RBはレ
ーザビーム、Pは第iブロックbiの終点、PR間は第(i
+1)ブロックbi+1のオフセット通路区間、QP間及びRS
間は微細部周辺の加工条件変更区間であり、それぞれポ
イントP,Rから距離l1、l2の区間である。
11 is a part program, 11a is a graphic definition statement, 11b is a machining condition change definition statement, 11c is a motion definition statement, 12 is a macro, SMP is a fine part and its peripheral part, b i to b i + 2 are passage blocks, RB Is the laser beam, P is the end point of the i-th block b i , and is between the (i
+1) Block b i +1 offset path section, between QP and RS
The area is the processing condition change section around the fine portion, and is the section of distances l 1 and l 2 from the points P and R, respectively.

予めマクロ12において微細部及びその周辺部SMP(第1
図(b))における加工条件(レーザビームの送り速度
とレーザ出力値とレーザ出力方法等)をM、S,Fコード
等で特定しておく。
In advance, in the macro 12, the fine part and its peripheral part SMP (first
The processing conditions (laser beam feed rate, laser output value, laser output method, etc.) in FIG. 2B) are specified by M, S, F codes and the like.

そして、微細部周辺における加工条件変更区間であるQP
間,RS間を特定するデータ(距離l1,l2)と該区間及び
微細部PR間における加工条件を特定するマクロ12の名称
を含む加工条件変更定義文11bを作成し、図形定義文11a
と運動定義文11cと共に自動プログラミング装置に入力
する。
Then, QP, which is the processing condition change section around the fine part
Processing condition change definition statement 11b including data (distances l 1 and l 2 ) for specifying the space and RS and the name of the macro 12 for specifying the processing condition between the section and the fine portion PR, and the graphic definition statement 11a is created.
And the motion definition sentence 11c are input to the automatic programming device.

自動プログラミング装置はNC実行形式のパートプログラ
ム作成に際して、加工条件変更定義文11bを用いて微細
部周辺を2以上の加工条件変更区間QP,RSに区分し、該
区間及び微細部PRでそれぞれマクロ12により設定されて
いる加工条件となるようにNCパートプログラムを作成す
る。
When creating an NC execution type part program, the automatic programming device divides the fine part periphery into two or more machining condition change sections QP and RS using the machining condition change definition statement 11b, and macros 12 are used in each of the section and the fine section PR. Create an NC part program to meet the machining conditions set by.

すなわち、ポイントQ迄は所定の加工条件(運動定義文
で特定した加工条件)で加工するNCデータを作成し、ポ
イントQからポイントP迄、ポイントPからポイントR
迄、ポイントRからポイントS迄はそれぞれマクロ12で
設定されている加工条件で加工するNCデータを作成す
る。
That is, up to the point Q, create NC data for processing under the predetermined processing conditions (processing conditions specified in the motion definition statement), and from the point Q to the point P, from the point P to the point R.
Up to the point R to the point S, NC data for machining under the machining conditions set by the macro 12 are created.

第2図は本発明の1実施例である自動プログラミング装
置のブロック図である。
FIG. 2 is a block diagram of an automatic programming device which is an embodiment of the present invention.

101はローデイングプログラム等が記憶されたROM、102
は自動プログラミング処理を行うプロセッサ、103はRAM
である。
101 is a ROM storing loading programs, 102
Is a processor for automatic programming, 103 is RAM
Is.

RAM103はフロッピーより読み込まれたシステムプログラ
ムSTPRを記憶する記憶域103aと、NCデータ出力テーブル
NCDTを記憶する記憶域103bと、機能コードとNCデータ出
力形式との対応関係FNTを記憶する記憶域103cと、各種
マクロMCMを記憶するマクロ記憶域103dを有している。
RAM 103 is a storage area 103a for storing the system program STPR read from the floppy disk and an NC data output table.
It has a storage area 103b for storing the NCDT, a storage area 103c for storing the correspondence FNT between the function code and the NC data output format, and a macro storage area 103d for storing various macros MCM.

記憶域103bに記憶されるNCデータ出力テーブルNCDTは、
各指令毎に第3図に示すようにNCデータ出力形式を特定
するための複数の機能コードF1〜F9を有している。尚、
各機能コードは4桁の16進数字により表現され、いくつ
かの機能コードの集まりにより1つの実行形式のNCデー
タが特定される。
The NC data output table NCDT stored in the storage area 103b is
Each command has a plurality of function codes F1 to F9 for specifying the NC data output format as shown in FIG. still,
Each function code is represented by four hexadecimal digits, and a group of several function codes specifies one execution form of NC data.

又、記憶域103cに記憶される各機能コードとNCデータ出
力形式との対応関係の一部が第4図に示されている。さ
て、第3図のNCデータ出力テーブルNCDTにおける座標系
設定のNCデータ出力形式は 8502,0001,0101,0201,0004 であるから、第4図の機能コードと出力形式の対応関係
を参照すると、座標系設定の実行形式のNCデータは G50XEOB ……(a) となる。また、位置決め/直線切削のNCデータ出力形式
は 8202,8002,0001,0101, 0201,0141,0004 であるから第4図の機能コードと出力形式の対応関係を
参照すると、位置決め/直線切削の実行形式のNCデータ
は G90(G91)G00(G01)XEOB ……(b) となる。更に、円弧切削のNCデータ出力形式は 8202,8012,0001,0101, 0301,0401,0004 であるから第4図の機能コードと出力形式の対応関係を
参照すると、円弧切削の実行形式のNCデータは G90(G91)G02(G03)XEOB ……(c) となる。
FIG. 4 shows a part of the correspondence relationship between each function code stored in the storage area 103c and the NC data output format. Now, since the NC data output format of the coordinate system setting in the NC data output table NCDT of FIG. 3 is 8502,0001,0101,0201,0004, refer to the correspondence between the function code and output format of FIG. NC data executable coordinate system setting becomes G50X x Y y Z z EOB ...... (a). Since the NC data output format for positioning / linear cutting is 8202,8002,0001,0101, 0201,0141,0004, refer to the correspondence between the function code and output format in Fig. 4 to perform positioning / linear cutting. The NC data in the format is G90 (G91) G00 (G01) X x Y y Z z F f EOB (b). Furthermore, since the NC data output format for arc cutting is 8202,8012,0001,0101, 0301,0401,0004, referring to the correspondence between the function code and output format in Fig. 4, the NC cutting execution format NC data Is G90 (G91) G02 (G03) X x Y y I i J j EOB (c).

第2図に戻って、104は作成されたNCデータを記憶するN
Cデータ記憶メモリ、105はキーボード、106はデイスプ
レイ装置(CRT)、107はデイスクコントローラ、FLはフ
ロッピーデイスクである。
Returning to FIG. 2, 104 is the N for storing the created NC data.
C data storage memory, 105 is a keyboard, 106 is a display device (CRT), 107 is a disk controller, and FL is a floppy disk.

第5図は本発明の処理の流れ図、第6図及び第7図は微
細部における加工条件変更定義分の説明図であり、第6
図は微細部が直線ブロックの場合、第7図は微細部が円
弧の場合、、第8図はコーナ部における加工条件変更定
義文説明図、第9図は微細部が連続する場合の説明図、
第10図は加工条件変更区間の別の指定方法説明図であ
る。
FIG. 5 is a flow chart of the process of the present invention, and FIGS. 6 and 7 are explanatory views of the definition of modification of the processing conditions in the fine portion.
The figure shows the case where the fine part is a linear block, Fig. 7 shows the case where the fine part is a circular arc, Fig. 8 shows the processing condition change definition statement at the corner part, and Fig. 9 shows the case where the fine part is continuous. ,
FIG. 10 is an explanatory view of another method of specifying the processing condition change section.

以下、第5図の流れ図に従って本発明の処理を説明す
る。尚、予めフロッピーデイスクFLからレーザ加工用NC
パートプログラムを作成するためのシステムプログラム
STPR、NCデータ出力テーブルNCDT、機能コード/NCデー
タ出力形式の対応関係FNT、加工条件を特定するめの種
々のマクロがRAM103の各記憶域103a〜103dに記憶されて
いるものとする。ただし、マクロは第1図(a)に示す
ようにマクロ名MACと加工条件MCDとマクロエンド(MEN
D)とで構成され、加工条件MCDはレーザビームの送り速
度を示すFコードとレーザビームの出力値を示すSコー
ドとレーザ出力形式(連続発振、間欠発振)を示すMコ
ード等で特定される。そして、微細部及びその周辺部が
n個の加工条件変更区間で区分され、各区間の加工条件
が異なる場合には各区間に対応して総計n組の加工条件
が特定され、又各区間の加工条件が同一の場合には1組
の加工条件が特定される。
The process of the present invention will be described below with reference to the flowchart of FIG. In addition, from floppy disk FL to NC for laser processing in advance
System program for creating a part program
It is assumed that STPR, NC data output table NCDT, function code / NC data output format correspondence FNT, and various macros for specifying machining conditions are stored in the respective storage areas 103a to 103d of the RAM 103. However, as shown in Fig. 1 (a), the macro name MAC, machining condition MCD, and macro end (MEN
D) and the processing condition MCD is specified by an F code indicating the laser beam feed rate, an S code indicating the laser beam output value, and an M code indicating the laser output type (continuous oscillation, intermittent oscillation). . Then, the fine portion and its peripheral portion are divided into n processing condition change sections, and when the processing conditions of each section are different, a total of n sets of processing conditions are specified corresponding to each section, and When the processing conditions are the same, one set of processing conditions is specified.

まず、加工条件変更定義文11b(第1図(a)参照)を
作成すると共に、加工条件変更区間と加工条件を考慮す
ることなく作成された図形定義文11aと運動定義文11cを
自動プログラミング装置に入力する。これにより、プロ
セッサ102は1→iとする(ステップ001参照)。尚、加
工条件変更定義文11bは第1図(a)に示すように CONR,COND,マクロ名,l1,l2,a1,a2, RS,DS,ONまたはOFF により構成され、「CORN,COND,ONまたはOFF」以外はパ
ラメータであり、l1,l2により微細部周辺における加工
条件変更区間QP,RS(第1図(b)参照)が特定され、R
S,DS,LSにより微細部か否かの条件が特定され、a1,a
2により加工条件を変更するコーナ形状の条件が特定さ
れる。
First, a processing condition change definition statement 11b (see FIG. 1 (a)) is created, and a graphic definition statement 11a and a motion definition statement 11c created without considering the processing condition change section and the processing condition are automatically programmed by the automatic programming device. To enter. As a result, the processor 102 sets 1 → i (see step 001). The machining condition change definition statement 11b is composed of CONR, COND, macro name, l 1 , l 2 , a 1 , a 2 , R S , D S , ON or OFF as shown in FIG. 1 (a). , Except "CORN, COND, ON or OFF" are parameters, and l 1 , l 2 identify the machining condition change sections QP, RS (see Fig. 1 (b)) around the microscopic area, and R
The condition of whether or not it is a fine part is specified by S , D S , and L S , and a 1 , a
The condition of the corner shape that changes the machining condition is specified by 2.

すなわち、第(i+1)ブロックが微細部であれば(第
6図、第7図参照)、オフセット通路交点P,Rからの距
離l1,l2により微細部周辺部の加工条件変更区間が特定
され、微細部でなくコーナ部であれば(第8図参照)、
オフセット通路交点Pからの距離l1,l2によりコーナ部
の加工条件変更区間が特定される。又、直線ブロックの
長さlが設定値LS以下の場合該直線ブロックは微細部と
認識され、円弧ブロックの長さdが設定値DS以下の場
合、あるいは円弧半径rが設定値RS以下の場合該円弧ブ
ロックは微細部と認識される。更に、a1,a2により加工
条件を変更するコーナ部の最大開き角度AMAXと最小開き
角度AMINが特定され、コーナ角度AがAMIN≦A≦AMAX
場合に加工条件変更区間で加工条件を変更する。
That is, if the (i + 1) th block is a fine portion (see FIGS. 6 and 7), the processing condition change section around the fine portion is specified by the distances l 1 and l 2 from the offset path intersection points P and R. If it is a corner portion instead of a fine portion (see FIG. 8),
The distances l 1 and l 2 from the offset path intersection point P specify the machining condition changing section of the corner portion. If the length l of the straight line block is less than or equal to the set value L S , the straight line block is recognized as a fine portion, and if the length d of the circular arc block is less than or equal to the set value D S , or the arc radius r is the set value R S. In the following cases, the circular arc block is recognized as a fine portion. Furthermore, the maximum opening angle A MAX and the minimum opening angle A MIN of the corner part that change the processing conditions are specified by a 1 and a 2 , and when the corner angle A is A MIN ≤ A ≤ A MAX , Change the processing conditions.

尚、「ON」によりコーナ部での加工条件変更処理が行わ
れ、「OFF」の場合には加工条件変更処理は行われな
い。
It should be noted that when "ON", the processing condition changing process at the corner portion is performed, and when "OFF", the processing condition changing process is not performed.

ついで、第iブロックが最終ブロックか否かをチェック
する(ステップ002)。
Then, it is checked whether the i-th block is the final block (step 002).

第iブロックが最終ブロックであれば第iブロックのNC
データを作成してNCパートプログラムの作成処理を終了
し(ステップ003)最終ブロックでなければ第(i+
1)ブロックが微細部かどうかをチェックする(ステッ
プ004)。
NC of i-th block if i-th block is the last block
Data is created and the NC part program creation process is completed (step 003).
1) It is checked whether the block is a fine portion (step 004).

この微細部かどうかのチェックにおいてはまず第(i+
1)ブロックが円弧かどうかをチェックし(ステップ00
4A)、円弧であれば半径r及び円弧の長さdを計算し
(ステップ004B)、しかる後r≦RSかd≦DSかどうかを
チェックし(ステップ004C,004D)、いずれかが成立す
れば第(i+1)ブロックは微細部と判定し、いずれも
成立しなければ微細部でないと判定する。
When checking whether or not this is a minute portion, first check (i +
1) Check if the block is an arc (step 00
4A), if it is a circular arc, calculate the radius r and the length d of the circular arc (step 004B), and then check whether r ≦ R S or d ≦ D S (steps 004C, 004D), and either is established. If so, it is determined that the (i + 1) th block is a fine portion, and if none of them holds, it is determined that it is not a fine portion.

一方、第(i+1)ブロックが直線であれば、該第(i
+1)ブロックの長さlを計算し(ステップ004E)、し
かる後l≦LSかどうかをチェックし(ステップ004F)、
成立すれば第(i+1)ブロックは微細部と判定し、成
立しなければ微細部でないと判定する。
On the other hand, if the (i + 1) th block is a straight line,
+1) Calculate the block length l (step 004E), and then check if l ≦ L S (step 004F),
If the condition is satisfied, the (i + 1) th block is determined to be a minute part, and if not satisfied, it is determined to be not a minute part.

第(i+1)ブロックが微細部であれば、次の第(i+
2)ブロックが微細部であるかをチェックし(ステップ
005)、第(i+2)ブロックが微細部でなければ加工
条件変更定義文11bに含まれるl1,l2を用いて微細部周
辺における2つの加工条件変更区間QP,RS(第6図参
照)を求め、各区間及び微細部(PR間)でマクロが特定
する加工条件となるようにNCデータを作成する(ステッ
プ006)。
If the (i + 1) th block is a fine portion, the next (i + th) block
2) Check if the block is a minute part (step
005), if the (i + 2) th block is not a fine portion, two processing condition change sections QP and RS around the fine portion are used by using l 1 and l 2 included in the processing condition change definition statement 11b (see FIG. 6). Then, NC data is created so that the processing conditions specified by the macro are obtained in each section and the fine portion (between the PRs) (step 006).

すなわち、ポイントQ迄は所定の加工条件(運動定義文
で特定した加工条件)で加工するNCデータを作成し、ポ
イントQからポイントP迄はマクロが指示する第1の加
工条件で加工するNCデータを作成し、ポイントPからポ
イントR迄は同様にマクロが指示する第2の加工条件で
加工するNCデーを作成し、ポイントRからポイントS迄
はマクロが指示する第3の加工条件で加工するNCデータ
を作成する。尚、各区間の加工条件が同一の場合にはマ
クロにより1組の加工条件が特定されるだけであるから
第1乃至第3加工条件は同一となる。
That is, NC data for machining up to point Q under the predetermined machining condition (machining condition specified in the motion definition statement) is created, and from point Q to point P NC data for machining under the first machining condition designated by the macro. Create NC data for machining from point P to point R under the second machining conditions designated by the macro in the same way, and machine from point R to point S under the third machining condition designated by the macro. Create NC data. If the machining conditions in each section are the same, only one set of machining conditions is specified by the macro, so the first to third machining conditions are the same.

ステップ006の処理終了後i+2→iによりiを歩進し
(ステップ007)、以後ステップ002以降の処理を繰り返
す。
After the processing of step 006 is finished, i is incremented by i + 2 → i (step 007), and thereafter the processing of step 002 and thereafter is repeated.

一方、第(i+1)ブロックが微細部であれば、換言す
れば微細部が連続すれば(第9図参照)、連続する最後
の微細部のブロックを求め(第(i+n)ブロックとす
る)、しかる後加工条件変更定義文11bに含まれるl1,l
2を用いて最初の微細部の通路始点PSからl1だけ手前の
区間QPSと最後の微細部の通路終点PEからl2だけ行過ぎ
た区間PERを求め、各区間QPS,PER及び微細部(PS→P1
→P2→・・PE間)でマクロが特定する加工条件となるよ
うにNCデータを作成する。
On the other hand, if the (i + 1) th block is a fine portion, in other words, if the fine portions are continuous (see FIG. 9), the block of the last continuous fine portion is obtained (the (i + n) th block), Then, l 1 , l included in the post-processing condition change definition statement 11b
Seeking the first passage starting point P S of only l 1 before the interval QP S and the last segment P E R from passage endpoint P E was overshoot by l 2 of the fine portions of the fine portion using 2, each section QP S , P E R and fine part (P S → P 1
Create NC data so that the machining conditions specified by the macro will be between → P 2 → ・ ・ P E ).

すなわち、ポイントQ迄は所定の加工条件(運動定義文
で特定した加工条件)で加工するNCデータを作成し、ポ
イントQからポイントPS迄はマクロが指示する第1の加
工条件で加工するNCデータを作成し、ポイントPSからポ
イントPE迄は同様にマクロが指示する第2の加工条件で
加工するNCデータを作成し、ポイントPEからポイントS
迄はマクロが指示する第3の加工条件で加工するNCデー
タを作成する(ステップ008)。
That is, NC data for machining up to the point Q under the predetermined machining conditions (machining conditions specified in the motion definition statement) is created, and from the point Q to the point P S NC under the first machining condition designated by the macro. Create data, create NC data for processing from point P S to point P E under the second processing conditions similarly specified by the macro, and from point P E to point S
Until then, NC data to be processed under the third processing condition designated by the macro is created (step 008).

ステップ008の処理終了後i+n+1→iによりiを歩
進し(ステップ009)、以後ステップ002以降の処理を繰
り返す。
After the processing of step 008 is finished, i is incremented by i + n + 1 → i (step 009), and thereafter the processing of step 002 and subsequent steps is repeated.

一方ステップ004のチェックにおいて第(i+1)ブロ
ックが微細部でなければ、第iブロックと第(i+1)
ブロックの交差角度A(第8図参照)を計算する(ステ
ップ010)。
On the other hand, if the (i + 1) th block is not a fine portion in the check in step 004, the i-th block and the (i + 1) th block
The intersection angle A of the blocks (see FIG. 8) is calculated (step 010).

ついで加工条件変更定義文11bに含まれるマクロ名称を
有するマクロが特定する最大開き角度AMAXと最小開き角
度AMINをマクロ記憶域103dから読み取り、AMIN≦A≦A
MAXが成立するかどうかをチェックし(ステップ011)、
成立しなければ加工条件を変更することなく第iブロッ
クのNCデータを作成する(ステップ012)。尚、加工条
件を変更しない理由は、コーナ角度Aが大きいとコーナ
部での速度の変化は少なく、加工精度にそれ程影響しな
いからである。
Then, the maximum opening angle A MAX and the minimum opening angle A MIN specified by the macro having the macro name included in the processing condition change definition statement 11b are read from the macro storage area 103d, and A MIN ≤A≤A
Check if MAX holds (step 011),
If not satisfied, the NC data of the i-th block is created without changing the processing conditions (step 012). The reason why the machining conditions are not changed is that when the corner angle A is large, the change in speed at the corner portion is small and the machining accuracy is not so affected.

しかし、AMIN≦A≦AMAXであれば加工条件変更定義文11
bに含まれるl1,l2を用いて加工条件変更区間QP,PS(第
8図参照)を求め、各区間でマクロが特定する加工条件
となるようにNCデータを作成する(ステップ013)。
However, if A MIN ≤ A ≤ A MAX , processing condition change definition statement 11
Machining condition change sections QP and PS (see Fig. 8) are calculated using l 1 and l 2 included in b, and NC data is created so that the machining conditions are specified by the macro in each section (step 013). .

すなわち、ポイントQ迄は所定の加工条件(運動定義文
で特定した加工条件)で加工するNCデータを作成し、ポ
イントQからポイントP迄はマクロが指示する第1の加
工条件で加工するNCデータを作成し、ポイントPからポ
イントS迄はマクロが指示する第3の加工条件で加工す
るNCデータを作成する。
That is, NC data for machining up to point Q under the predetermined machining condition (machining condition specified in the motion definition statement) is created, and from point Q to point P NC data for machining under the first machining condition designated by the macro. Then, NC data for machining from point P to point S under the third machining condition designated by the macro is created.

そして、ステップ012またはステップ013の処理終了後i
+1→iによりiを歩進し(ステップ014)、以後ステ
ップ002以降の処理を繰り返す。
Then, after the processing of step 012 or step 013 is completed i
I is incremented by + 1 → i (step 014), and the processing from step 002 onward is repeated thereafter.

ところで、第6図〜第9図の場合距離l1,l2をオフセッ
ト通路交点PまたはRからの距離で与えたが、第10図
(a),(b)に示すように実際の形状頂点からの距離
l1′,l2′で与えてもよい。尚、第10図はコーナの場合
であるが微細部においても同様である。
By the way, in the case of FIGS. 6 to 9, the distances l 1 and l 2 are given by the distance from the offset passage intersection point P or R, but as shown in FIGS. Distance from
It may be given by l 1 ′ and l 2 ′. Although FIG. 10 shows the case of a corner, the same applies to the fine portion.

〈発明の効果〉 以上本発明によれば、自動的に微細部を識別して該微細
部及びその周辺部の加工条件が設定値となるようにNCデ
ータを作成するようにしたから、加工条件を考慮するこ
となく自動プログラミング言語によるNCパートプログラ
ムを作成することができ、しかも実際のNC加工において
微細部及びその周辺における加工精度を維持できる。
<Effects of the Invention> As described above, according to the present invention, since the fine portion is automatically identified and the NC data is created so that the processing conditions of the fine portion and the peripheral portion thereof are set values, It is possible to create an NC part program in an automatic programming language without considering the above, and it is possible to maintain the machining accuracy in the fine part and its periphery in actual NC machining.

又、本発明によれば、レーザビーム通路が直線ブロック
と円弧ブロックで形成されている時、直線ブロック長あ
るいは円弧ブロック長が設定値以下の時微細部と判定し
て加工条件を変更するようにしたから、該微細部を高精
度で加工することができる。
Further, according to the present invention, when the laser beam passage is formed by a linear block and an arc block, when the linear block length or the arc block length is equal to or less than a set value, it is judged as a fine portion and the processing condition is changed. Therefore, the fine portion can be processed with high accuracy.

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

第1図は本発明の概略説明図であり、同図(a)は自動
プログラミング言語を用いたパートプログラム説明図、
同図(b)は微細部を有する加工形状の一部拡大図、 第2図は本発明を実施する自動プログラミング装置のブ
ロック図、 第3図はNCデータ出力テーブル説明図、 第4図は機能コードとNCデータ出力形式の対応関係図、 第5図は本発明の処理の流れ図、 第6図及び第7図は微細部における加工条件変更定義分
の説明図であり、第6図は微細部が直線ブロックの場
合、第7図は微細部が円弧の場合、 第8図はコーナ部における加工条件変更定義文説明図、 第9図は微細部が連続する場合の説明図、 第10図は加工条件変更区間の別の指定方法説明図であ
る。 11……パートプログラム、11a……図形定義文、11b……
加工条件変更定義文、11c……運動定義文、12……マク
ロ、SMP……微細部及びその周辺部、bi〜bi+2……通路
ブロック、RB……レーザビーム
FIG. 1 is a schematic explanatory view of the present invention, and FIG. 1A is an explanatory view of a part program using an automatic programming language,
FIG. 2B is a partially enlarged view of a processed shape having a fine portion, FIG. 2 is a block diagram of an automatic programming device for implementing the present invention, FIG. 3 is an NC data output table explanatory diagram, and FIG. 4 is a function. Correspondence diagram of code and NC data output format, FIG. 5 is a flow chart of the process of the present invention, FIGS. 6 and 7 are explanatory diagrams of the machining condition change definition in the fine portion, and FIG. 6 is the fine portion. 7 is a straight line block, FIG. 7 is a case where the fine portion is a circular arc, FIG. 8 is a view for explaining the machining condition change definition statement at the corner portion, FIG. 9 is an explanation diagram for the case where the fine portion is continuous, and FIG. It is explanatory drawing of another designation | designated method of the process condition change area. 11 …… Part program, 11a …… Figure definition statement, 11b ……
Machining condition change definition statement, 11c …… Movement definition statement, 12 …… Macro, SMP …… Fine part and its peripheral part, b i to b i + 2 … Passage block, RB… Laser beam

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】レーザビームの通路を定義する通路定義文
を入力し、該通路定義文をNCデータ出力テーブルを用い
てNC装置が実行可能なレーザ加工用のNCパートプログラ
ムに変換して出力する方法において、 微細部とみなす直線ブロックの長さLS及び円弧ブロック
の長さDS、該微細部の周辺を特定するデータ、該周辺及
び微細部における加工条件(レーザビームの送り速度、
レーザビームの出力値等)を特定するデータを含む加工
条件変更定義文、並びに微細部及びその周辺の加工条件
を考慮することなく作成された通路定義文を入力するス
テップ、 レーザビーム通路が直線ブロックと円弧ブロックで形成
されている時、通路定義文を用いて直線ブロックの長さ
を求め、該長さが設定値LS以下の場合、該直線ブロック
は微細部であると判定すると共に、通路定義文を用いて
円弧ブロックの長さを求め、該長さが設定値DS以下の場
合、該円弧ブロックは微細部であると判定するステッ
プ、 微細部が識別された時、加工条件変更定義文を用いて微
細部周辺を2以上の加工条件変更区間に区分するステッ
プ、 各加工条件変更区間及び微細部でそれぞれ前記加工条件
変更定義文により設定されている加工条件となるように
NCパートプログラムを作成するステップ、 を有することを特徴とするレーザ加工用のNCパートプロ
グラム作成方法。
1. A path definition statement for defining a path of a laser beam is input, and the path definition statement is converted into an NC part program for laser processing that can be executed by an NC device using an NC data output table and output. In the method, the length L S of the linear block and the length D S of the arc block to be regarded as the fine portion, data for identifying the periphery of the fine portion, the processing conditions in the periphery and the fine portion (laser beam feed rate,
Inputting a processing condition change definition statement including data specifying the laser beam output value, etc., and a path definition statement created without considering the processing conditions of the fine part and its periphery, laser beam path is a straight block And the arc block, the length of the straight line block is obtained using the passage definition statement, and if the length is equal to or less than the set value L S , the straight line block is determined to be a fine portion and A step of determining the length of the circular arc block using the definition statement and determining that the circular arc block is a fine portion when the length is equal to or less than the set value D S. When the fine portion is identified, the processing condition change definition Using a statement to divide the periphery of the fine portion into two or more machining condition change sections, so that each machining condition change section and the fine portion have the machining conditions set by the machining condition change definition statement.
An NC part program creating method for laser processing, comprising: a step of creating an NC part program.
JP62019729A 1987-01-30 1987-01-30 Method for creating NC part program for laser machining Expired - Lifetime JPH0719171B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62019729A JPH0719171B2 (en) 1987-01-30 1987-01-30 Method for creating NC part program for laser machining

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62019729A JPH0719171B2 (en) 1987-01-30 1987-01-30 Method for creating NC part program for laser machining

Publications (2)

Publication Number Publication Date
JPS63187307A JPS63187307A (en) 1988-08-02
JPH0719171B2 true JPH0719171B2 (en) 1995-03-06

Family

ID=12007403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62019729A Expired - Lifetime JPH0719171B2 (en) 1987-01-30 1987-01-30 Method for creating NC part program for laser machining

Country Status (1)

Country Link
JP (1) JPH0719171B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2825247B2 (en) * 1988-12-29 1998-11-18 松下電器産業株式会社 Numerical controller for laser beam machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5846407A (en) * 1981-09-14 1983-03-17 Ando Electric Co Ltd Working device with tool diameter correcting function
JP2514191B2 (en) * 1986-10-15 1996-07-10 フアナツク株式会社 Method for creating NC part program for laser machining

Also Published As

Publication number Publication date
JPS63187307A (en) 1988-08-02

Similar Documents

Publication Publication Date Title
JP2514191B2 (en) Method for creating NC part program for laser machining
US4587608A (en) Method of automatically creating numerical control data in one of a plurality of data formats
US4556833A (en) Numerical control device
US4660148A (en) Part program creation method
US10994381B2 (en) Controller, data generation device, control method, and control program
JPWO2014155723A1 (en) Numerical controller
US4905158A (en) Normal vector computation method
US5595463A (en) Area machining method
JPH0719171B2 (en) Method for creating NC part program for laser machining
US4855921A (en) Complex curved surface creation method
US5029068A (en) NC data creation method
JP2020038529A (en) Program editor, processor, processing method, and computer program
JPS6318405A (en) Method for preparing cutting path of composite curved surface
JP2584229B2 (en) CAD / CAM automatic programming device
Martinova et al. Extending functionality of control system by adding contour building capabilities
JPH077293B2 (en) Method for creating NC part program for laser machining
EP0419672A1 (en) Method of plotting tool shape
JP2696206B2 (en) Automatic part program creation method
EP0139762A1 (en) Method of specifying shape of blank
JP3660038B2 (en) Numerical controller
JPS59211105A (en) Producing method of part program
US5151864A (en) Method of generating cutting passes of complex curved surface
JPH0677206B2 (en) Method for creating NC part program for laser machining
JP2002236509A (en) NC data creation apparatus and method
JPH069007B2 (en) NC data creation method for compound curved surface