JPS63158611A - Nc part program generating method - Google Patents

Nc part program generating method

Info

Publication number
JPS63158611A
JPS63158611A JP30729686A JP30729686A JPS63158611A JP S63158611 A JPS63158611 A JP S63158611A JP 30729686 A JP30729686 A JP 30729686A JP 30729686 A JP30729686 A JP 30729686A JP S63158611 A JPS63158611 A JP S63158611A
Authority
JP
Japan
Prior art keywords
modifier
crt
undefined
pattern
part program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP30729686A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ケ原 隆史
Toru Matsunaka
松中 透
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 JP30729686A priority Critical patent/JPS63158611A/en
Publication of JPS63158611A publication Critical patent/JPS63158611A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To easily and surely determine a qualifier by displaying all patterns which can be defined without undefined qualifiers on a CRT, and displaying question sentence to ask which pattern is to be defined. CONSTITUTION:When a pattern definition statement with a qualifier undefined is inputted from a keyboard or the like (in a step 11), all of patterns C1-C4 defined by this pattern definition statement are displayed on the pattern display part of the CRT (in steps 12, 15, and 18). Questions to ask which pattern is to be defined are displayed on the question display part of the CRT 8 (in steps 13 and 16). The defined pattern is specified (in steps 14 and 17), and this specified data is used to determine the undefined qualifier in the pattern definition statement. Thus, patterns displayed on the CRT are referred to easily and surely determine the qualifier even if the qualifier is difficult to understand.

Description

【発明の詳細な説明】 〈産業上の利用分舒〉 本発明は自動プログラミング言語で作成された図形定義
文と運動定義文より成るNCパートプログラム作成方法
に係り、特に図形定義文の修飾語を決定するに好適なN
Cパートプログラム作成方法に関する。
[Detailed Description of the Invention] <Industrial Application> The present invention relates to a method for creating an NC part program consisting of a figure definition statement and a motion definition statement created using an automatic programming language. N suitable for determining
This article relates to a method for creating a C part program.

〈従来技術〉 APTやFAPTなどの自動プログラミング言語を用い
てNCデータを作成する自動プログラミングにおいては
、 (al簡単な記号を用いて点、直線、円弧を定義すると
共に(図形定義)、これら定義された点、直線、円弧を
用いて工具通路を定義して(運動文定義)、自動プログ
ラミング言語によるパートプログラムを作成し、 (b)シかる後、自動プログラミング言語によるパート
プログラムをNC装置が実行できる形式のNCデータ(
ErAコードあるいはrsoコード)よりなる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 A tool path is defined using points, straight lines, and circular arcs (motion statement definition), and a part program is created using an automatic programming language. NC data in the format (
It is converted into NC data consisting of ErA code or rso code.

たとえば、第4図に示す直線と円弧から成る形状に沿っ
て工具を移動させ木自動プログラミング言語によるパー
トプログラムの作成においては、まず工具始点P1、切
削開始点P2、直線S1、S2及び円弧C8・・・・を PART、■RE I DA I  ・・・(1)MC
HN、 MILL、 ABS  ・・・(2)P、=x
、、y。
For example, when creating a part program using a tree automatic programming language by moving a tool along a shape consisting of straight lines and circular arcs shown in Fig. 4, first, the tool starting point P1, the cutting starting point P2, the straight lines S1, S2, and the circular arc C8. ... as PART, ■RE I DA I ... (1) MC
HN, MILL, ABS...(2) P, =x
,,y.

p2=12.y2 P3=”3jy3 S、=P2. P3     ・・・(3)C1=x4
# y4y r、” ・・(41Ps=xspyも 52=P、、 C,、B   ・・・(5)のごとく図
形定義し、しかる後これら定義された点、直線、円弧を
用いて、 CUTTER,10・・・(6) sosoo        ・・・(7)TLLFT 
       −−・(8)FROM、  P    
  ・・・(9)RPD、 To、  S、、  P2
   ・・・(圃FCOD、 500      ・・
・01)C1 INI END と工具通路に沿った運動文を自動プログラミング言語で
定義して、自動プログラミング装置Zこ入力すれば、あ
とは自動プログラミング装置がNCデータ出力テーブル
を参照しながら自動的にEIAコードあるいは180コ
ードによる実行形式のNCデータを作成して出力する。
p2=12. y2 P3="3jy3 S, = P2. P3...(3) C1=x4
#y4y r,"...(41Ps=xspy also 52=P,, C,, B... Define the figure as in (5), then use these defined points, straight lines, and arcs to create CUTTER, 10...(6) sosoo...(7) TLLFT
---(8) FROM, P
...(9) RPD, To, S,, P2
...(Field FCOD, 500...
・01) If you define C1 INI END and the motion statement along the tool path in an automatic programming language and enter it into the automatic programming device Z, the automatic programming device will automatically perform EIA while referring to the NC data output table. Create and output executable NC data using code or 180 code.

但し、(1)はパートプログラムの開始を指示するもの
で、rRE I DA I Jは見出しである。
However, (1) instructs the start of the part program, and rRE I DA I J is the heading.

(21if N Cmの種類を示すもので、フライス加
工の場合にはMILLを、旋削加工の場合にはTURN
を用いる。rABsJはアブソリュート指令を示す(イ
ンク嗅メンタル指令の場合にはINCRを用いる)。
(Indicates the type of 21if N Cm, MILL for milling and TURN for turning.
Use. rABsJ indicates an absolute command (INCR is used in the case of an incremental olfactory command).

(3)はポイントP2、P3を通る直線を意味し、(4
)は中心(”4p y4)で半径r1の円弧を、(5)
はポイントP5を通9円弧01に接する2つの接線のう
ち下側の接線(直線)を意味する。ただし、アルファベ
ットBは下を意味する修飾語であり上側の接線の場合に
は修飾語已に代えて上を意味する修飾語Aを用いろ。
(3) means a straight line passing through points P2 and P3, and (4
) is a circular arc with center ("4p y4) and radius r1, (5)
means the lower tangent (straight line) of the two tangents that touch the arc 01 through the point P5. However, the alphabet B is a modifier that means below, and in the case of an upper tangent, use the modifier A that means above instead of the modifier 已.

(6)は工具径10Isllの工具を指令する工具指令
、(7)は主軸回転速度指令、 (8)は進行方向左側に工具をオフセットさせろ指令(
ただし、進行方向右側に工具をオフセットさせろ場合に
はTLRGT)、 (9)はスタート点がP、であること示す座標系設定指
令、 (111は直線S1を通過せずにポイントP2でカッタ
が該直線に接するように位置決めする指令、(11)は
送り速度が500mm/minであることを示す速度指
令である。
(6) is a tool command that commands a tool with a tool diameter of 10Isll, (7) is a spindle rotation speed command, and (8) is a command to offset the tool to the left in the direction of travel (
However, if the tool is to be offset to the right side in the direction of movement, TLRGT), (9) is a coordinate system setting command indicating that the start point is P, (111 is a command to set the cutter at point P2 without passing through straight line S1). The command for positioning so as to be in contact with a straight line (11) is a speed command indicating that the feed speed is 500 mm/min.

さて、上記例では修飾語は1つ現われただけであるが、
その他第5図(A)に示すように円C1と直線S1の2
つの交点Pi、P2のうち一方を特定するもの(修飾語
Rは右側のポイントP1を、Lは左側のポイントP2を
、Aは上側のポイントP1を、Bは下側のポイントP2
を特定する)、第5図(B)に示すように直[31,3
2に接する4つの円の1つを特定するもの(A、Lで左
上の円が、A、Rで右上の円が、B、Lで左下の円が、
B、Rで右下の円が特定される)等がある。
Now, in the above example, only one modifier appears, but
In addition, as shown in Figure 5 (A), 2 of the circle C1 and the straight line S1
The one that specifies one of the two intersection points Pi and P2 (the modifier R is the right point P1, L is the left point P2, A is the upper point P1, and B is the lower point P2).
), as shown in Figure 5(B), directly [31,3
Specifies one of the four circles that touch 2 (the upper left circle for A and L, the upper right circle for A and R, and the lower left circle for B and L,
The lower right circle is specified by B and R).

〈発明が解決しようとしている問題点〉ところで、自動
プログラミング言語の初心者や自動プログラミング言語
の文法を心得ている者であっても図形定義文中の修飾語
がわかりにくい場合があり、図形定義が面倒となったす
、誤って図形定義をするという問題があった。
<Problems to be solved by the invention> By the way, even for beginners of automatic programming languages or those who know the grammar of automatic programming languages, modifiers in figure definition statements may be difficult to understand, and figure definitions can be troublesome. There was a problem with incorrectly defining shapes.

以上から本発明の目的は修飾語がわかりにくい場合でも
、CRTに描画された図形を参照しながら簡単に、しか
も確実に修飾語を決定することができるNCパートプロ
グラム作成方法を提供することである。
From the above, an object of the present invention is to provide a method for creating an NC part program that can easily and reliably determine a modifier while referring to a figure drawn on a CRT, even when the modifier is difficult to understand. .

く問題点を解決するための手段〉 第1図は本発明方法の概略説明図である。Means to solve problems〉 FIG. 1 is a schematic explanatory diagram of the method of the present invention.

11.14.17はデータ入力ステップ、12゜15.
18は図形表示ステップ、13.16は設量大表示ステ
ップ、19は修飾語決定ステップである。
11.14.17 are data input steps, 12°15.
18 is a graphic display step, 13.16 is a large amount display step, and 19 is a modifier determination step.

く作用〉 キーボード等から修w語を未定義としな図形定義文が入
力されると(ステップ11)、該図形定義文で定義でき
る図形C1〜C4を全てCRTの図形表示部に表示する
と共に(ステップ12゜15.18)、どの図形を定義
したいかの設量大をCRTの設問大表示部に表示する(
ステップ13.16)。
When a figure definition sentence is input from the keyboard or the like with the word undefined (step 11), all figures C1 to C4 that can be defined by the figure definition sentence are displayed on the figure display section of the CRT ( Step 12゜15.18) Display the size of which figure you want to define on the question size display section of the CRT (
Step 13.16).

そして、どの図形かを特定させ(ステップ14.17)
、該特定されたデータを用いて図形定義文における未定
義の修飾語を決定する(ステップ19)。
Then, identify which shape it is (step 14.17)
, determines undefined modifiers in the graphic definition statement using the identified data (step 19).

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

101はローディングプログラム等が記憶されたROM
、102は自動プログラミング処理を行うプロセッサ、
103はRAMである。このRAM103にはフロッピ
ーFLより読み込まれたシステムプログラムやキーボー
ド等から入力された自動プログラミング8語のNCパー
トプログラムや処理結果等が記憶されるようになってい
る。
101 is a ROM in which loading programs etc. are stored.
, 102 is a processor that performs automatic programming processing;
103 is a RAM. This RAM 103 stores the system program read from the floppy FL, the automatic programming 8-word NC part program input from the keyboard, processing results, etc.

104は最終的に作成された実行形式のNCデータを記
憶するNCデータ記憶メモリ、105はキーボード、1
06はディスプレイ装置(CRT)、107はディスク
コントローラ、FLはフロッピーディスクである。
104 is an NC data storage memory for storing finally created NC data in an executable format; 105 is a keyboard; 1
06 is a display device (CRT), 107 is a disk controller, and FL is a floppy disk.

以下、第1図、第2図に従って本発明にかかる図形定義
の方法を説明する。
The figure definition method according to the present invention will be explained below with reference to FIGS. 1 and 2.

キーボード105等から図形定義文を順次入力すれば、
プロセッサ102は各図形定義文の中に修飾語を未定義
とする「?」が含まれているか判別する(第1図のステ
ップ11を参照)。
If you input figure definition sentences sequentially from the keyboard 105 etc.,
The processor 102 determines whether each graphic definition statement contains a "?" character that makes the modifier undefined (see step 11 in FIG. 1).

そして「?」が含まれていなければ該図形定義文をRA
M103に記憶すると共に、図形定義文で定義される図
形をCRTの106に描画する。
If "?" is not included, RA the shape definition statement.
The figure defined by the figure definition statement is stored in the M103 and drawn on the CRT 106.

しかし、「?」マークが含まれていれば、たとえば図形
定義文 CI=31.S2,10.?、? が入力されると(この図形定義文により2つの直線31
,82に接する4つの半径10の円C1〜C4が定義さ
れる)、該図形定義文が定義する全ての円C1〜C4を
CRT 106の図形表示部に他の図形と識別可能に(
点線あるいは色分けで)表示しくステップ12)、かつ
どの図形を定義したいかの設量大 ”Slに対して上/下?” をCRT 106の設問大表示部に表示する(ステップ
13)。
However, if the "?" mark is included, for example, the figure definition statement CI=31. S2,10. ? ,? is input (this figure definition statement creates two straight lines 31
.
(step 12), and display the setting size "Above/Bottom for Sl?" indicating which figure is desired to be defined on the question large display section of the CRT 106 (step 13).

これにより、オペレータはCRTに描画されている図形
を参照して直線S1より上か下かを入力する(ステップ
14)。すなわち、上であれば上を意味する修飾語rA
Jを、下であれば下を意味する修飾語「B」を入力する
。ただし、キーボード上に設けられている矢印キー↑、
↓を用いて上、下を入力してもよい。ステップ14では
図形が下側にあることが特定されろ。
Thereby, the operator refers to the figure drawn on the CRT and inputs whether it is above or below the straight line S1 (step 14). In other words, if it is above, the modifier rA means above.
Enter J, and if it is below, enter the modifier "B" which means below. However, the arrow keys ↑ on the keyboard,
You may also use ↓ to enter the top and bottom. In step 14, it is determined that the figure is on the lower side.

この結果、プロセッサ102は直線S1に関して特定さ
れた61(下側)の図形C3,C4のみCRTの図形表
示部に表示すると共に(ステップ15)、どの図形を定
義したいかの設量大”32に対して左/右?” をCRTの設問大表示部に表示する(ステップ16)。
As a result, the processor 102 displays only the 61 (lower) figures C3 and C4 specified with respect to the straight line S1 on the figure display section of the CRT (step 15), and also displays the 61 (lower) figures C3 and C4 identified with respect to the straight line S1 on the figure display section of the CRT (step 15). "Left/Right?" is displayed on the large question display section of the CRT (step 16).

これにより、オペレータはCRTに描画されている図形
を参照して直線S2より右か左かを入力する(ステップ
17)。ただし、右であれば右を意味する修飾語rR」
を、左であれば左を意味する修飾語rLJを入力するが
、キーボード上に設けられている矢印キー−1−を用い
て入力してもよい。ステップ17では「右」が入力され
ろ。
Thereby, the operator refers to the figure drawn on the CRT and inputs whether it is to the right or left of the straight line S2 (step 17). However, if it is right, the modifier rR means right.”
If it is left, the modifier rLJ that means left is input, but it may also be input using the arrow key -1- provided on the keyboard. In step 17, "right" is input.

この結果、特定された側(右側)の図形C4のみが図形
表示部に表示される(ステップ18)。
As a result, only the figure C4 on the specified side (right side) is displayed on the figure display section (step 18).

そして、最終的にこれら入力された「下、右」を意味す
るrB、RJあるいは「↓、→」により修飾語を決定し
、該修飾語で図形定義文における”?p ?Jを置き換
える(ステップ19)。尚、rB、RJは修飾語そのも
のであるからステップ19では該修飾語でr?、?Jを
直ちに置き換えろ。又、矢印で入力された場合には矢印
と修飾語の対応を記憶させておき該対応表から修飾語を
求めて置き換えろ。
Finally, modifiers are determined by these input rB, RJ or "↓, →" meaning "bottom, right", and the modifiers replace "?p ?J" in the figure definition sentence (step 19). Note that rB and RJ are modifiers themselves, so in step 19, immediately replace r? and ?J with the modifiers.Also, if they are input using arrows, remember the correspondence between the arrows and the modifiers. Find the modifier from the correspondence table and replace it.

以後、上記処理を繰り返して全図形定義文を入力する。Thereafter, the above process is repeated to input all figure definition statements.

尚、以上では2直線31.32に接する1つの円を定義
する際に2つの修飾語を未定義とした場合であるが、1
つのみ未定義とすると第3図(A)、(B)に示すよう
に図形表示されるから前述のように上、下あるいは右、
左を入力して修飾語を決定する。ただし、第3図(A)
は上、下の修飾語を未定義とした例であり、第3図(B
)は右、左の修飾語を未定義とした例である。
Note that the above is a case where two modifiers are undefined when defining one circle that is tangent to two straight lines 31 and 32, but 1
If only one is left undefined, it will be displayed graphically as shown in Figure 3 (A) and (B).
Enter the left side to determine the modifier. However, Fig. 3 (A)
is an example in which the upper and lower modifiers are undefined, and is shown in Figure 3 (B
) is an example where the right and left modifiers are undefined.

重上本発明を2つの直線に接する円を定義する図形定義
文について説明したが、本発明はかかる場合に限らず修
飾語を有する全図形定義文に適用できるものである。
Although the present invention has been described with respect to a figure definition sentence that defines a circle that is in contact with two straight lines, the present invention is not limited to such a case, but can be applied to all figure definition sentences that have modifiers.

〈発明の効果〉 以上本発明によれば、修飾語が未定義の図形定義文が入
力されると、該未定義の修飾語なしで定義できる図形を
全てディスプレイ画面に表示すると共に、どの図形を定
義したいかの設量大を表示して図形を特定させることで
修飾語を決定するように構成したから、修飾語がわかり
にくい場合でも、CRTに描画された図形を参照しなが
ら簡単に、しかも確実に修飾語を決定することができる
<Effects of the Invention> According to the present invention, when a figure definition sentence with an undefined modifier is input, all the figures that can be defined without the undefined modifier are displayed on the display screen, and which figure is displayed. Since the configuration is configured so that the modifier is determined by displaying the amount of data to be defined and having the user specify the shape, even if the modifier is difficult to understand, it can be easily done while referring to the shape drawn on the CRT. Modifiers can be determined reliably.

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

第1図は本発明方法の概略説明図、 第2図は本発明を適用できる自動プログラミング装置の
ブロック図、 第3図は修飾語未定義の場合の図形表示例、第4図及び
第5図は本発明の背景説明図である。 11.14.17・・データ入力ステップ、12.15
.18・・図形表示ステップ、13.16・・設量大表
示ステップ 特許出願人        ファナック株式会社代理人
          弁理士  vs藤千幹第3図 (A)                      
           (13)第4 図 S。
Fig. 1 is a schematic explanatory diagram of the method of the present invention, Fig. 2 is a block diagram of an automatic programming device to which the present invention can be applied, Fig. 3 is an example of a graphical display when a modifier is undefined, Figs. 4 and 5 is a background explanatory diagram of the present invention. 11.14.17...Data input step, 12.15
.. 18...Graphic display step, 13.16...Large capacity display step Patent applicant Fanuc Co., Ltd. agent Patent attorney vs. Fujichiki Figure 3 (A)
(13) Figure 4 S.

Claims (2)

【特許請求の範囲】[Claims] (1)自動プログラミング言語で作成された図形定義文
と運動定義文とから成るNCパートプログラムの作成方
法において、 修飾語が未定義の図形定義文が入力されると、該未定義
の修飾語なしで定義される図形を全てディスプレイ画面
に表示すると共に、 どの図形を定義したいかの設問文を表示して図形を特定
させることで修飾語を決定することを特徴とするNCパ
ートプログラム作成方法。
(1) In the method for creating an NC part program consisting of a figure definition statement and a motion definition statement created in an automatic programming language, if a figure definition statement with an undefined modifier is input, the undefined modifier will be deleted. This method of creating an NC part program is characterized by displaying all the figures defined on a display screen, and also displaying a question asking which figure is desired to be defined and determining a modifier by asking the user to specify the figure.
(2)前記図形を特定するデータは修飾語そのものであ
ることを特徴とする特許請求の範囲第(1)項記載のN
Cパートプログラム作成方法。
(2) N according to claim (1), characterized in that the data specifying the figure is a modifier itself.
How to create a C part program.
JP30729686A 1986-12-23 1986-12-23 Nc part program generating method Pending JPS63158611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30729686A JPS63158611A (en) 1986-12-23 1986-12-23 Nc part program generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30729686A JPS63158611A (en) 1986-12-23 1986-12-23 Nc part program generating method

Publications (1)

Publication Number Publication Date
JPS63158611A true JPS63158611A (en) 1988-07-01

Family

ID=17967429

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30729686A Pending JPS63158611A (en) 1986-12-23 1986-12-23 Nc part program generating method

Country Status (1)

Country Link
JP (1) JPS63158611A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59123008A (en) * 1982-12-29 1984-07-16 Fanuc Ltd Forming method of part program
JPS61275907A (en) * 1985-05-30 1986-12-06 Fanuc Ltd Hole position specifying method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59123008A (en) * 1982-12-29 1984-07-16 Fanuc Ltd Forming method of part program
JPS61275907A (en) * 1985-05-30 1986-12-06 Fanuc Ltd Hole position specifying method

Similar Documents

Publication Publication Date Title
JPS61255408A (en) Device for inputting list of work form
JPS63223804A (en) Automatic programming system
US4739317A (en) Draw graphics capabilities
JPH0355259B2 (en)
JPH01200413A (en) Production of analogous part program
JPS63158611A (en) Nc part program generating method
JPH01200412A (en) Statement inserting method
JPH01163803A (en) Combinational shape defining system
JPS62190507A (en) Graphic input method
JPH04114208A (en) Animation plotting system for nc program
JPS63133210A (en) Program preparation system for nc device
JPS63298506A (en) Nc part program generating method
JPS58182752A (en) Input guidance display system
JPH02252004A (en) Tool shape plotting system
JPS60127945A (en) Selection of drilling-work tool in automatic programming
JPH0215304A (en) Method for forming numerical control information
WO2023002618A1 (en) Screen creation device and computer-readable storage medium
JPS62224435A (en) Working program inspection device
JPH0241504A (en) Executing method for part program
JPH01320502A (en) Concentric circle defining method
WO1989005485A1 (en) Graphics definition method in automatic programming
JPH01229307A (en) Method for inputting parts form
JPS61230844A (en) Automatic program generator
JP2845529B2 (en) Teaching material creation tool
JP3283055B2 (en) Program editing device