JPS63159906A - Generating method for nc part program - Google Patents

Generating method for nc part program

Info

Publication number
JPS63159906A
JPS63159906A JP31380986A JP31380986A JPS63159906A JP S63159906 A JPS63159906 A JP S63159906A JP 31380986 A JP31380986 A JP 31380986A JP 31380986 A JP31380986 A JP 31380986A JP S63159906 A JPS63159906 A JP S63159906A
Authority
JP
Japan
Prior art keywords
part program
statement
program
modification
modified
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
JP31380986A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ケ原 隆史
Masatoshi Nakajima
政利 中嶋
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP31380986A priority Critical patent/JPS63159906A/en
Publication of JPS63159906A publication Critical patent/JPS63159906A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To edit and generate an NC part program with high efficiency just in a single time of execution by integrating a correcting operation itself into a part program. CONSTITUTION:The corrected sentences 13-15 are provided and a corrected sentence indicating part 12 indicates the corrected sentences that are carried out before and after those sentences 13-15. An original part program part 11 is converted into a 1st NC part program and a 1st corrected sentence 13 indicated by the part 12 is executed for correction of an original part program part. Then the corrected part program is converted into a 2nd executing NC part program. Hereafter the part 11 is corrected by the corrected sentences 14 and 15. Thus a part program is obtained and then converted into an executing NC part program for output. The correcting operations are integrated into the part program so that plural executing results are obtained just in a single time of execution.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は自動プログラミング言語で作成されているオリ
ジナルなパートプログラムを修正し、該パートプログラ
ムを実行形式のNCパートプログラムに変換出力するN
Oパートプログラムff4方法に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention is an N method for modifying an original part program created in an automatic programming language, converting the part program into an executable NC part program, and outputting it.
Regarding the O part program ff4 method.

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

たとえば、第7図に示す直線と円弧から成る形状に沿っ
て工具を移動させるパートプログラムの作成においては
、まず工具始点P2、切削開始点P2、直!ss、、S
2及ヒ円弧CI・・・・をPART、 @ REIDA
I MCHN、 MI LL、 ABS P1=x、、yl P  =x  、  y P3;x3’F3 s  =p  、  p C,=x4. y4. r。
For example, when creating a part program that moves a tool along a shape made up of straight lines and circular arcs as shown in FIG. ss,,S
2 and arc CI... PART, @ REIDA
I MCHN, MI LL, ABS P1=x,,yl P=x, y P3;x3'F3 s=p, p C,=x4. y4. r.

P5=x%pff6 s2=p%、 C1,B のごとく図形定義し、しかる後これら定義された点、直
線、円弧を用いて、 CUTTER,5 soso。
Define a figure as P5=x%pff6 s2=p%, C1,B, and then use these defined points, straight lines, and circular arcs to obtain CUTTER, 5 soso.

LLFT FROM、  P。LLFT FROM, P.

RPD、 To、  S、、  P2 FOOD、 500 S。RPD, To, S,, P2 FOOD, 500 S.

INE PEND と工具通路に沿った運動文を自動プログラミング言語で
定義して、自動プログラミング装置に入力すれば、あと
は自動プログラミング装置がNCデータ出力テーブルを
参照しながら自動的にEIAコードあるいはISOコー
ドによる実行形式のNCパートプログラムを作成して出
力する。尚、上記において各図形定義文、運動定義文に
はライン番号が付されているが省略している。又、PE
NDはパートプログラムエンドを意味する。
If you define INE PEND and the motion statement along the tool path in an automatic programming language and input it into the automatic programming device, the automatic programming device will automatically convert it into EIA code or ISO code while referring to the NC data output table. Create and output an executable NC part program. Note that in the above, line numbers are attached to each figure definition statement and motion definition statement, but these are omitted. Also, P.E.
ND means part program end.

ところで、自動プログラミング言語で作成したオリジナ
ルな1本のパートプログラムに第1、第2、・・、第n
の修正を施し、それぞれ修正された第1〜第nの実行形
式のNCパートプログラムを得たい場合がある。かかる
場合、従来はキーボードよりオリジナルなパートプログ
ラムに第1の修正を施し、しかる役職修正により得られ
た第1修正パートプログラムを実行形式の第1のNCパ
ートプログラムに変換し、ついで同様にオリジナルなパ
ートプログラムに第2の修正を施し、しかる役職修正に
より得られた第2の修正パートプログラムを実行形式の
第2のNCパートプログラムに変換し、以後同様にして
第nのNCパートプログラムを得るようにしている。
By the way, in one original part program created using an automatic programming language, the first, second,..., nth
There is a case where it is desired to obtain NC part programs of the first to nth executable formats that have been modified. In such a case, conventionally, the first modification is made to the original part program using the keyboard, the first modified part program obtained by the appropriate position modification is converted into the first NC part program in executable format, and then the original part program is similarly modified. Make a second modification to the part program, convert the second modified part program obtained by the appropriate position modification into a second NC part program in an executable format, and thereafter obtain the n-th NC part program in the same manner. I have to.

尚、削除はデリートキーを押圧すると共に削除したいラ
イン番号を入力して行い、追加はインサートキーを押圧
すると共に追加すべき定義文とそのライン番号を入力し
て行い、訂正はオールターキーを押圧すると共に訂正す
べき定義文のライン番号と定義文を入力することにより
行う。
To delete, press the Delete key and enter the line number you want to delete; to add, press the Insert key and enter the definition statement to be added and its line number; to make corrections, press the Alter key. This is done by inputting the line number and definition sentence of the definition sentence to be corrected.

〈発明が解決し、ようとしている問題点〉しかし、この
ようにキーボードからパートプログラムに修正を施し、
しかる役職修正された修正パートプログラムを実行形式
のNCパートプログラムに変換して出力する手順を繰り
返す従来方法ではn回の作業が必要となって面倒となる
と共に、n本の全てのNCパートプログラムが得られろ
迄オペレータが拘束されるため能率が悪いという問題が
あった。
<The problem that the invention is trying to solve> However, by modifying the part program from the keyboard in this way,
The conventional method of repeating the procedure of converting the corrected part program with the appropriate position correction into an executable NC part program and outputting it requires n times of work, which is troublesome, and it is difficult to convert all n NC part programs. There was a problem in that efficiency was low because the operator was restricted until the product was obtained.

以上から、本発明は修正という作業そのものをパートプ
ログラム中に組込むことにより1度の実行で稜数の実行
結果(n本のNCパートプログラム)が得られる効率の
良いNCパートプログラム生成方法を提供することを目
的とする。
From the above, the present invention provides an efficient NC part program generation method that can obtain execution results for the number of edges (n NC part programs) in one execution by incorporating the modification work itself into the part program. The purpose is to

く問題点を解決するための手段〉 第1図は本発明を説明するためのパートプログラムの概
略構成図である。
Means for Solving Problems> FIG. 1 is a schematic configuration diagram of a part program for explaining the present invention.

1は自動プログラミング言語で作成したパートプログラ
ム、11はオリジナルなパートプログラム部、12は修
正文指示部、13は第1修正文、14は第2修正文、1
5は第n修正文、16はパートプログラムの終わり (
PEND)を示すエンド文である。
1 is a part program created with an automatic programming language, 11 is an original part program section, 12 is a modified statement instruction section, 13 is a first modified statement, 14 is a second modified statement, 1
5 is the nth modified sentence, 16 is the end of the part program (
This is an end sentence indicating (PEND).

く作用〉 自動プログラミング言語で作成されたオリジナルなパー
ドブ四グラム部11以降に該パートプログラムをそれぞ
れ別のパートプログラムに修正するための1以上の修正
文13.14、・・、15を設けると共に、修正文13
〜15より前に次に実行すべき修正文を指示する修正文
指示部12を設ける。
Effect> One or more modification statements 13, 14, . . . , 15 for modifying the part program into separate part programs are provided after the original part program 4-gram part 11 created in an automatic programming language, and Revised sentence 13
A corrected sentence instruction section 12 is provided for instructing the corrected sentence to be executed next before ~15.

そして、オリジナルなパートプログラム部11を実行形
式の第1のNCパートプログラムに変換後(変換(0)
参照)、修正文指示部12が指示する第1修正文13を
実行してオリジナルなパートプログラム部を修正しく修
正(1)参照)、ついで該修正されて成るパートプログ
ラムを実行形式の第2のNCパートプログラムに変換す
る(変換(1)参照)以後、順次各修正文14.15に
よりオリジナルなパートプログラム11を修正して成る
パートプログラムを得(修正(2)、修正(n)参照)
、該パートプログラムを実行形式のNCパートプログラ
ムに変換(変換(2)、変換(n)参照)して出力する
After converting the original part program section 11 into the first NC part program in executable format (conversion (0)
), execute the first modification statement 13 instructed by the modification statement instruction section 12 to modify the original part program section (see (1)), and then execute the modified part program in the second executable format. After converting to an NC part program (see conversion (1)), the original part program 11 is successively modified using each modification statement 14.15 to obtain a part program (see modification (2) and modification (n)).
, converts the part program into an executable NC part program (see conversion (2) and conversion (n)) and outputs it.

〈実施例〉 第2図は本発明方法を実施するための自動プログラミン
グ装置のブロック図である。
Embodiment FIG. 2 is a block diagram of an automatic programming device for carrying out the method of the present invention.

101はローディングプログラム等が記憶されたROM
、102は自動プ胃グラミング処理を行うプロセッサ、
103はRAMである。
101 is a ROM in which loading programs etc. are stored.
, 102 is a processor that performs automatic programming processing;
103 is a RAM.

RAM103はフロッピーより読み込まれたシステムプ
ログラム5TPRを記憶する記憶域103aと、NCC
データ出力テーブルNCD化記憶する記憶域103bと
、機能コードとNCデータ出力形式との対応関係FNT
を記憶する記憶域103cと、各種パラメータPRMを
記憶する記憶域103dと、ワーキング領域103eを
有している。
The RAM 103 has a storage area 103a for storing the system program 5TPR read from the floppy disk, and an NCC.
Data output table NCD storage area 103b and correspondence relationship between function code and NC data output format FNT
, a storage area 103c for storing various parameters PRM, a storage area 103d for storing various parameters PRM, and a working area 103e.

記憶域103bに記憶されるNGデータ出力テーブルN
CDTは、各NC指令毎に第3図に示すようにNCデー
タ出力形式を特定するための複数の機能コードF1〜F
9を有している。尚、各機能コードは4桁の16進数字
により表現され、いくつかの機能コードの集まりにより
1つの実行形式のNCデータが特定される。
NG data output table N stored in storage area 103b
The CDT has multiple function codes F1 to F for specifying the NC data output format for each NC command as shown in Figure 3.
It has 9. Note that each function code is expressed by a four-digit hexadecimal number, and one execution format of NC data is specified by a collection of several function codes.

又1.記憶域103Cに記憶される各機能コードとNC
データ出力形式との対応関係の一部が第4図に示されて
いる。さて、第3図のNCCデータ出力テーブルNCD
化おける座標系設定のNCデータ出力形式は 8502、0001.0101.0201.0004で
あるから、第4図の機能コードと出力形式の対応関係を
参照すると、座標系設定の実行形式のNCデータは G50XxYyZzEOB      ・・・(alと
なる。又、位置決め/直線切削のNCデータ出力形式は 8202.8002,0001,0101゜0201.
0141,0004 であるから第4図の機能コードと出力形式の対応関係を
参照すると、位置決め/直線切削の実行形式のNCデー
タは G90 (G91)GOO(Gol)XxYzZzFf
EOB  ・・・(blとなる。更に、円弧切削のNC
データ出力形式は8202、8012.0001.01
01゜0301、0401.0004 であるから第4図の機能コードと出力形式の対応関係を
参照すると、円弧切削の実行形式のNCデータは G90 (G91)GO2(GO3)Xx’+’zl 
1JjEOB  ・・・(c)となる。
Also 1. Each function code and NC stored in the storage area 103C
A part of the correspondence with the data output format is shown in FIG. Now, the NCC data output table NCD in Figure 3
Since the NC data output format for the coordinate system setting in Converter is 8502, 0001.0101.0201.0004, referring to the correspondence between function codes and output formats in Figure 4, the NC data in the executable format for the coordinate system setting is G50XxYyZzEOB...(al) Also, the NC data output format for positioning/linear cutting is 8202.8002,0001,0101°0201.
0141,0004 Therefore, referring to the correspondence between function codes and output formats in Figure 4, the NC data for positioning/linear cutting execution format is G90 (G91) GOO (Gol) XxYzZzFf
EOB...(becomes bl. Furthermore, NC of circular arc cutting
Data output format is 8202, 8012.0001.01
01゜0301, 0401.0004 Therefore, referring to the correspondence between function codes and output formats in Figure 4, the NC data for the execution format of circular cutting is G90 (G91) GO2 (GO3) Xx'+'zl
1JjEOB...(c).

第2図に戻って、104は作成されたNCデータを記憶
するNCデータ記憶メモリ、105はパートプログラム
等を入力するキーボード、106はディスプレイ族@ 
(CRT) 、10?はディスクコント四−ラ、FLは
フロッピーディスクである。
Returning to FIG. 2, 104 is an NC data storage memory for storing created NC data, 105 is a keyboard for inputting part programs, etc., and 106 is a display group@
(CRT), 10? is a disk controller, and FL is a floppy disk.

第5図は本発明にかかるパートプログラムの説明図であ
り、同図(A)はオリジナルなノf −)プログラム例
、同図(B)はオリジナルなパートプログラムに加えて
n個(実際にはn=2)の修正文を備えた本発明にかか
るパートプログラム例である。
FIG. 5 is an explanatory diagram of the part program according to the present invention. FIG. This is an example of a part program according to the present invention, which includes correction sentences of n=2).

自動プログラミング言語で作成されたオリジナルな1本
のパートプログラム11(第5図(A)参照)に第1、
第2、・・、第nの修正を施し、それiれ修正された第
1〜第nの実行形式のNCパートプログラムを得たい場
合には、本発明で(よ第5図(B)に示すようにオリジ
ナルなノ(−ドブログラム11以降に該パートプログラ
ムをそれぞれ別のパートプログラムに修正するためのn
個の修正文(図ではn=2)13.14を設けると共に
、オリジナルなパートプログラム11以降であって修正
文13.14よh前に次に実行すべき修正文を指示する
修正文指示部12を設け、最後ζこパートプログラムエ
ンド文(PEND)16を配置する。尚、オリジナルな
パートプログラム11の前に演算子v1を零に初期化す
るコマンドと、文番号Q(たとえば数値1)を挿入する
The first part program 11 (see Figure 5 (A)) created using an automatic programming language is
If you want to make the second,..., nth modification and obtain the NC part program in the first to nth executable formats modified accordingly, the present invention can be used (as shown in FIG. 5(B)). As shown, the original part program is
A correction statement instruction section that provides correction statements 13.14 (n=2 in the figure) and instructs the correction statement to be executed next after the original part program 11 and before correction statement 13.14. 12, and the last ζ part program end statement (PEND) 16 is placed. Note that a command for initializing the operator v1 to zero and a statement number Q (for example, a numerical value 1) are inserted before the original part program 11.

修正文指示部12はvlをカウントアツプするコマンド V  1 :’: V 1 + 1         
      (11と、2つの判定文 1F [Vl、1.E] Δ、     (2)1F 
[Vl、 2. E1口   (3)と、ジャンプ文 JUMP、          (4)とで構成されて
いる。尚、Δ2ロ、は文番号であり、たとえば数値2,
3,4である。判定文(2)は9@V 1が1に等しい
場合には文番号Δヘジャンプし、等しくない場合には次
のコマンドを実行することを意味し、判定文(3)は変
数v1が2に等しい場合には文番号ロヘジャンプし、等
しくない場合には次のコマンドを実行することを意味し
ている。
The correction sentence instruction unit 12 issues a command V 1 :': V 1 + 1 to count up vl.
(11 and two judgment sentences 1F [Vl, 1.E] Δ, (2) 1F
[Vl, 2. It consists of E1 (3) and a jump statement JUMP (4). Note that Δ2ro is the sentence number, for example, the numerical value 2,
It is 3,4. Judgment statement (2) means that if 9@V 1 is equal to 1, jump to statement number Δ, and if not, execute the next command, and judgment statement (3) means that variable v1 becomes 2. This means that if they are equal, jump to the statement number RO, and if they are not equal, execute the next command.

又、各修正文13,14、PEND文16の先頭には文
番号62口、がそれぞれ設けられ、又修正文13.14
の末尾には文番号Oヘジャンプするジャンプ命令が置か
れている。
In addition, a sentence number 62 is provided at the beginning of each corrected sentence 13, 14 and PEND sentence 16, and corrected sentences 13 and 14
At the end of , there is a jump instruction to jump to statement number O.

第6図は本発明にかかるNGパートプログラム生成処理
の流れ図である。以下第2図〜第6図に従って本発明を
説明する。尚、第5図(A)に示すオリジナルなパート
プログラム11に第1、第2の修正を施して第1、第2
の実行形式のNCパートプログラムを作成するもとする
FIG. 6 is a flowchart of the NG part program generation process according to the present invention. The present invention will be explained below with reference to FIGS. 2 to 6. The original part program 11 shown in FIG. 5(A) has been modified in the first and second parts.
Assume that an NC part program in the executable format is created.

予めフロッピーディスクFL(第2図)からシステムプ
ログラム5TPR,NOデータ出力テーブルNCDT、
機能コード/NCデータ出力形式の対応関係FNT、パ
ラメータPRMをRAM103の各記憶域103a〜1
03dに記憶する。
From the floppy disk FL (Fig. 2) in advance, system program 5TPR, NO data output table NCDT,
Function code/NC data output format correspondence FNT and parameter PRM are stored in each storage area 103a to 1 of the RAM 103.
03d.

又、オリジナルなパートプログラム11(第5図(A)
)もフロッピーFLあるいはキーボード105″4から
入力してRAM103eに記憶する。
In addition, original part program 11 (Figure 5 (A)
) is also input from the floppy FL or keyboard 105''4 and stored in the RAM 103e.

ついで、第5図(B)に示すように、オリジナルなパー
トプログラム11以降に修正指示文12と、第1、第2
の修正文13.14を挿入し、最後にPENDを配置し
て成るパートプログラム1を作成してRAM103に記
憶する。尚、修正文において、 「削除」は編集用のコマンドであることを示すr CO
M M A N D / Jと削除を示すアルファペラ
1−roJと削除すべき定義文の範囲を示すライン番号
rL1.L2Jで指示しくCOMMAND/D Ll。
Next, as shown in FIG. 5(B), after the original part program 11, a modification instruction statement 12 and the first and second parts are added.
A part program 1 is created in which modified sentences 13 and 14 are inserted and PEND is placed at the end, and is stored in the RAM 103. In addition, in the revised text, "delete" indicates that it is an editing command.
MMAND/J, alphapella 1-roJ indicating deletion, and line number rL1 indicating the range of the definition statement to be deleted. COMMAND/D Ll as instructed by L2J.

L2)、 「挿入」はm集用のコマンドであることを示すrcOM
MAND/Jと挿入を示すアルファベット「I」と挿入
すべき位置を示すライン番号「Ll」と挿入する新たな
定義文「S」で指示しく COMMAND/I  Ll
、 S)、「訂正」はllAl1用のコマンドであるこ
とを示すrcOMMAND/」と訂正を示すアルファベ
ット「A」と訂正すべき定義文の位置を示すライン番号
「Ll」と新たな定義文「S」で指示する(COMMA
ND/A Ll、 S)。
L2), rcOM indicating that "insert" is a command for m collections
Indicate with MAND/J, the alphabet "I" indicating insertion, the line number "Ll" indicating the insertion position, and the new definition statement "S" to be inserted. COMMAND/I Ll
, S), "rcOMMAND/" indicating that "correction" is a command for llAl1, the alphabet "A" indicating correction, the line number "Ll" indicating the position of the definition statement to be corrected, and the new definition statement "S". ” (COMMA
ND/A Ll, S).

・・以上第6図のステップ101参照 ついで、従来方法と同様にオリジナルなパートプログラ
ム11を実行形式の第1のNCパートプログラムに変換
する(ステップ103)。
Referring to step 101 in FIG. 6 above, the original part program 11 is converted into an executable first NC part program (step 103), as in the conventional method.

変換完了後、修正文指示文12のコマンドを順次実行す
る。すなわち、(1)のコマンドによりvlをカウント
アツプすると共に、判定文(2)により■1=1かどう
かをチェックする。この場合、v1=1であるから文番
号Δへ飛ぶ(ステップ105.107)。
After the conversion is completed, the commands of the correction statement directive 12 are executed in sequence. That is, the command (1) counts up vl, and the judgment statement (2) checks whether 1=1. In this case, since v1=1, the process jumps to sentence number Δ (steps 105 and 107).

文番号ΔにはPENDがなく、第1修正文13が配置さ
れているから、該第1修正文13による修正をオリジナ
ルなパートプログラム11に施して第1修正パートプロ
グラムを作成してRAMIO3のワーキングメモリ10
3aに記憶する(ステップ109,111)。
Since the statement number Δ does not have PEND and the first modified statement 13 is arranged, the modification by the first modified statement 13 is applied to the original part program 11 to create the first modified part program and the RAMIO3 working memory 10
3a (steps 109, 111).

第1修正文13による修正が完了すれば、ジャンプ命令
「ジャンプ、OJにより文番号0へ飛び、以後ワーキン
グメモリ103eに記憶されている第1修正パードブq
グラムを実行形式のNCパートプログラムに変換する(
ステップ113)。
When the modification by the first modified sentence 13 is completed, the jump command ``Jump, OJ'' jumps to sentence number 0, and from then on, the first modified sentence q stored in the working memory 103e is
Convert the program into an executable NC part program (
Step 113).

第1修正パートプログラムの変換完了後、修正文指示文
12のコマンドを再度実行する。すなわち、(1)のコ
マンドによりvlをカウントアツプすルト共に(V1=
2)、判定文(2)ニよりV1=1かどうかをチェック
する。この場合、v1≠1であるから、次の判定文(3
)を実行し、これにより■1=2かどうかをチェックし
、V1=2であるから文番号口へ飛ぶ(ステップ105
.107)。
After the conversion of the first modified part program is completed, the command of the modified statement instruction statement 12 is executed again. In other words, both the command (1) counts up vl and (V1=
2) Check whether V1=1 from judgment statement (2) d. In this case, since v1≠1, the following judgment sentence (3
), thereby checking whether ■1=2, and since V1=2, it jumps to the statement number (step 105
.. 107).

文番号口にはPENDがなく、第2修正文14が配置さ
れているから、該第2修正文14による修正をオリジナ
ルなパートプログラム11に施して第2修正パートプロ
グラムを作成してRAMIO3のワーキングメモリ10
3eに記憶する(ステップ109,111)。
Since there is no PEND in the statement number opening and the second modified statement 14 is placed, the correction by the second modified statement 14 is applied to the original part program 11 to create the second modified part program and the RAMIO3 working memory 10
3e (steps 109, 111).

第2修正文14による修正が完了すれば、ジャンプ命令
「ジャンプ、OJにより文番号○へ飛び、以後ワーキン
グメモリ103eに記憶されている第2修正パートプロ
グラムを実行形式のNCパートプログラムに変換する(
ステップ113)。
When the modification by the second modification statement 14 is completed, the jump command "Jump, OJ" jumps to statement number ○, and the second modification part program stored in the working memory 103e is then converted into an executable NC part program (
Step 113).

第2修正パートプログラムの変換完了後、修正文指示文
12のコマンドを実行する。すなわち、(1)のコマン
ドによりvlをカウントアツプすると共に(V1=3)
、判定文(2)によりv1=1かどうか、判定文(3)
によりv1=2かどうかをチェックする。この場合、V
1=3であるからジャンプ命令rJUMP、」により文
番号へ飛ぶ(ステップ105.107)。
After the conversion of the second modification part program is completed, the command of the modification statement instruction statement 12 is executed. That is, the command (1) counts up vl and (V1=3)
, Judgment statement (2) determines whether v1=1 or not, Judgment statement (3)
Check whether v1=2. In this case, V
Since 1=3, the jump command rJUMP jumps to the statement number (steps 105 and 107).

文番号にはパートプログラムの終わりを示すrPEND
Jが挿入されており、これにより処理が終了する。
The statement number is rPEND indicating the end of the part program.
J has been inserted, and the process ends.

〈発明の効果〉 以上本発明によれば、修正という作業そのものをパート
プログラム中に組込むことにより1度の実行で、換言す
ればオペレータが1度介在するだけで複数の実行結果(
n本のNCパートプログラム)が得られ効率よ<NCパ
ートプログラムを編集、生成することができる。
<Effects of the Invention> According to the present invention, by incorporating the correction work itself into the part program, multiple execution results (
n NC part programs) can be obtained and NC part programs can be edited and generated efficiently.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明を説明するためのパートプログラムの概
略構成図、 第2図は本発明を実施するための自動プログラミングシ
ステムの構成図、 第3図はNCデータ出力テーブル説明図、第4図は機能
コードとNCデータ出力形式の対応関係図、 第5図は本発明にかかるパートプログラム説明図、 第6図は本発明の処理の流れ図、 第7図は自動プログラミングの背景説明図である。 1・・パートプログラム、 11・・オリジナルなパートプログラム部、12・・修
正文指示部、 13・・第1修正文、 14・・第2修正文、 15・・第n修正文、 16・・PEND文(エンド文) 特許出願人        ファナック株式会社代理人
          弁理士  齋藤千幹第6図 第7図 t
Fig. 1 is a schematic configuration diagram of a part program for explaining the present invention, Fig. 2 is a configuration diagram of an automatic programming system for implementing the present invention, Fig. 3 is an explanatory diagram of an NC data output table, and Fig. 4 5 is an explanatory diagram of the part program according to the present invention; FIG. 6 is a flowchart of the processing of the present invention; and FIG. 7 is an explanatory diagram of the background of automatic programming. 1. Part program, 11. Original part program part, 12. Modified sentence instruction section, 13. 1st modified sentence, 14. 2nd modified sentence, 15. Nth modified sentence, 16. PEND sentence (end sentence) Patent applicant Fanuc Co., Ltd. agent Patent attorney Chiki Saito Figure 6 Figure 7 t

Claims (1)

【特許請求の範囲】 自動プログラミング言語で作成された図形定義文と運動
定義文とから成るパートプログラムをNC装置が実行可
能な実行形式のNCパートプログラムに変換して出力す
るNCパートプログラム作成方法において、 前記自動プログラミング言語で作成されたオリジナルな
パートプログラム以降に該パートプログラムを別のパー
トプログラムにそれぞれ修正するための1以上の修正文
を設けると共に、 修正文より前に次に実行すべき修正文を指示する修正文
指示部を設け、 該オリジナルなパートプログラムを実行形式の第1のN
Cパートプログラムに変換後、修正文指示部が指示する
修正文を実行してオリジナルなパートプログラムを修正
し、ついで該修正されて成るパートプログラムを実行形
式の第2のNCパートプログラムに変換し、 以後順次修正指示文が指示する修正文によりオリジナル
なパートプログラムを修正して成るパートプログラムを
得、該パートプログラムを実行形式のNCパートプログ
ラムに変換して出力することを特徴とするNCパートプ
ログラム作成方法。
[Scope of Claim] An NC part program creation method that converts a part program consisting of a figure definition statement and a motion definition statement created in an automatic programming language into an executable NC part program that can be executed by an NC device and outputs the part program. , after the original part program created in the automatic programming language, one or more modification statements are provided for modifying the part program into another part program, and a modification statement to be executed next before the modification statement; A modified statement instruction part is provided to instruct the original part program to be executed in the first N
After converting to a C part program, execute a modification statement instructed by a modification statement instruction section to modify the original part program, and then convert the modified part program into a second NC part program in an executable format, NC part program creation characterized in that the original part program is then successively modified by modification statements instructed by the modification instruction statement to obtain a part program, and the part program is converted into an executable NC part program and outputted. Method.
JP31380986A 1986-12-24 1986-12-24 Generating method for nc part program Pending JPS63159906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31380986A JPS63159906A (en) 1986-12-24 1986-12-24 Generating method for nc part program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31380986A JPS63159906A (en) 1986-12-24 1986-12-24 Generating method for nc part program

Publications (1)

Publication Number Publication Date
JPS63159906A true JPS63159906A (en) 1988-07-02

Family

ID=18045773

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31380986A Pending JPS63159906A (en) 1986-12-24 1986-12-24 Generating method for nc part program

Country Status (1)

Country Link
JP (1) JPS63159906A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990015373A1 (en) * 1989-06-07 1990-12-13 Fanuc Ltd Nc data edition

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990015373A1 (en) * 1989-06-07 1990-12-13 Fanuc Ltd Nc data edition

Similar Documents

Publication Publication Date Title
US4730315A (en) Diagrammatic method of testing program
US4204253A (en) Device for generating and correcting a user program
US4835700A (en) Numerical control data creation method
EP0177164A2 (en) Method and apparatus for producing numerical control programmes
KR19980085571A (en) How to Create a Process Control Algorithm
EP0289611A1 (en) Method of preparing nc part programs for laser machining
JPS62267804A (en) Nc data changing method
JPH04181403A (en) Interactive numerical controller
JPS59224228A (en) Neumeric controller
JPH03158908A (en) Automatic programming system in compound working machine
JPS63159906A (en) Generating method for nc part program
WO1990014620A1 (en) System for displaying data on a screen
JPH01200412A (en) Statement inserting method
JP2933979B2 (en) Automatic programming device
JPS63133210A (en) Program preparation system for nc device
JPH08339215A (en) Numerical controller
JP2584229B2 (en) CAD / CAM automatic programming device
JPH01282609A (en) Method for setting nc data output form
JP2565509B2 (en) Automatic programming method
JPS62145424A (en) Program managing method
JPH01136208A (en) Automatic programming device
JPH01300303A (en) Automatic program producing device
JP3000987B2 (en) Numerical control unit
JPH06250722A (en) Interactive numerical controller
JPH02206805A (en) System for executing part program