JPH0192807A - Cutting graphic plotting system - Google Patents
Cutting graphic plotting systemInfo
- Publication number
- JPH0192807A JPH0192807A JP24921587A JP24921587A JPH0192807A JP H0192807 A JPH0192807 A JP H0192807A JP 24921587 A JP24921587 A JP 24921587A JP 24921587 A JP24921587 A JP 24921587A JP H0192807 A JPH0192807 A JP H0192807A
- Authority
- JP
- Japan
- Prior art keywords
- sentence
- shape
- tool
- statement
- painting
- 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
Links
- 238000000034 method Methods 0.000 claims description 17
- 238000003754 machining Methods 0.000 claims description 8
- 238000007790 scraping Methods 0.000 claims description 6
- 230000003936 working memory Effects 0.000 abstract description 4
- 238000010422 painting Methods 0.000 abstract 4
- 238000010586 diagram Methods 0.000 description 7
- 238000013500 data storage Methods 0.000 description 3
- 210000004712 air sac Anatomy 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 241000251468 Actinopterygii Species 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35317—Display tool shape, to select tool for program, or for interference
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35349—Display part, programmed locus and tool path, traject, dynamic locus
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35489—Discriminate, different colour, highlight between two states
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は削り取り図形描画方式に係り、特に自動プログ
ラミング言語で作成したパートプログラムをNC装置が
実行可能なNCデータに変換する自動プログラミング装
置における削り取り図形描画方式に関する。[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a scraping figure drawing method, and in particular to scraping in an automatic programming device that converts a part program created in an automatic programming language into NC data that can be executed by an NC device. Concerning graphic drawing methods.
〈従来技術〉
APTやFAPTなどの自動プログラミング言語を用い
てNCデータを作成する自動プログラミング装置におい
ては、
(す簡単な記号を用いて点、直線、円弧を定義すると共
に(図形定義)、これら定義された点、直線、円弧を用
いて工具通路を定義して(連動文定義)自動プログラミ
ング言語によるパートプログラムを作成し、
(b)シかる後、NCデータ出力テーブルを用いて自動
プログラミング言語によるパートプログラムをNC@置
が実行できる形式のNCデータ(EIAコードあるいは
130コード)よりなるNCデータに変換する。<Prior art> In automatic programming devices that create NC data using automatic programming languages such as APT and FAPT, points, straight lines, and arcs are defined using simple symbols (shape definition); Define the tool path using the specified points, straight lines, and arcs (linked statement definition) to create a part program using an automatic programming language. (b) After creating the part program using an automatic programming language using the NC data output table The program is converted into NC data consisting of NC data (EIA code or 130 code) in a format that can be executed by NC@.
かかる自動プログラミング装置において、パートプログ
ラムからNCデータに変換する際に、素材が削り取られ
てゆく様子がディスプレイ画面に描画されれば便利であ
る。In such an automatic programming device, it would be convenient if the appearance of the material being scraped away was drawn on the display screen when converting the part program into NC data.
このため、従来は塗りつぶされた領域(素材)を工具の
移動に従って1ドツト(CRT上の1絵素)づつ逐次・
高速に消去するハードウェアをディスプレイ側に持たせ
、該ハードウェアにより素材が削り取られてゆく様子を
描画するようにしている。For this reason, in the past, the filled area (material) was sequentially painted one dot (one pixel on a CRT) as the tool moved.
Hardware for high-speed erasing is provided on the display side, and the hardware is used to depict the material being scraped away.
〈発明が解決しようとしている問題点〉しかし、上記塗
りつぶし消去可能なハードウェアを持たせるとディスプ
レイ装置が高価となる。<Problems to be Solved by the Invention> However, if the display device is provided with the above-described hardware that can be filled in and erased, it becomes expensive.
このため、自動プログラミングM語を用いてNCデータ
を出力する自動プログラミング装置には該ハードウェア
が設けられていないのが普通であり、従って素材が削り
取られてゆく様子を、NCデータへの変換処理と並行し
てディスプレイ画面に描画することができなかった。For this reason, automatic programming devices that output NC data using automatic programming M words are usually not equipped with this hardware, and therefore the process of converting the material being scraped away into NC data is It was not possible to draw on the display screen in parallel.
以上から本発明の目的は塗りつぶし領域を高速に1ドツ
トづつ消去するためのハードウェアがなくても、パート
プログラムからNCデータへの変換処理と並行して素材
が削りとられてゆ(様子を描画できる削り取り図形描画
方式を提供することである。From the above, it is an object of the present invention to scrape off the material in parallel with the conversion process from the part program to NC data (drawing a picture of the situation) without the need for hardware to erase filled areas one dot at a time. The object of the present invention is to provide a scraping figure drawing method that can be used.
〈問題点を解決するための手段〉
第1図は本発明方式を実行する自動プログラミング装置
のブロック図である。<Means for Solving the Problems> FIG. 1 is a block diagram of an automatic programming device that implements the method of the present invention.
1は自動プログラミング本体であり、1aはプロセッサ
、ICはRAM、1c−2はパートプログラム記憶域、
1cm3はNCデータ記憶域、4はグラフィックディス
プレイ装置、FTPは自動プ四グラミングN語によるパ
ートプログラムである。1 is an automatic programming main body, 1a is a processor, IC is RAM, 1c-2 is a part program storage area,
1cm3 is an NC data storage area, 4 is a graphic display device, and FTP is a part program using N words for automatic programming.
く作用〉
パートプログラムFTPに素材を所定色で塗りつぶす素
材形状塗りつぶし定義文MPSと工具形状を定義する工
具形状定義文TFSとを挿入しておき、パートプログラ
ムを先頭より1文づつ読み取り、素材形状塗りつぶし定
義文であれば素材塗りつぶしの描画コマンド(素材形状
と塗りつぶし色)をディスプレイ装置4に出力してディ
スプレイ画面に素材を塗りつぶし描画し、工具形状定義
文であれば工具形状をワーキングメモリ1dに記憶し、
切削移動文(運動定義文MVSに含まれている)であれ
ば該切削移動文による工具通路と工具形状とから加工領
域を求め、該加工領域を背景色で塗りつぶす描画コマン
ド(外形と背景色)をディスプレイ装置4に出力して該
外形部分を背景色で塗り潰して素材が削り取られる様子
を描画する。Function> Insert the material shape filling definition statement MPS that fills the material with a predetermined color into the part program FTP and the tool shape definition statement TFS that defines the tool shape, read the part program one sentence at a time from the beginning, and fill in the material shape. If it is a definition statement, a drawing command for filling in the material (material shape and fill color) is output to the display device 4 to fill and draw the material on the display screen, and if it is a tool shape definition statement, the tool shape is stored in the working memory 1d. ,
If it is a cutting movement statement (included in the motion definition statement MVS), a drawing command (outline and background color) that calculates the machining area from the tool path and tool shape according to the cutting movement statement and fills the machining area with the background color. is output to the display device 4, and the outline portion is filled in with the background color to depict how the material is being scraped off.
〈実施例〉
第1図は本発明方式を実行する自動プログラミング装置
のブロック図である。図中、1は自動プログラミング本
体であり、laはプロセッサ、1bはローディングプロ
グラムが記憶されたROM11cはRAM、ldはワー
キングメモリである。<Embodiment> FIG. 1 is a block diagram of an automatic programming device that implements the method of the present invention. In the figure, 1 is an automatic programming main body, la is a processor, 1b is a ROM 11c in which a loading program is stored, is a RAM, and ld is a working memory.
RAM1cにはフロッピーから読み取られたシステムプ
ログラム等を記憶するシステムプログラム記憶域1 c
−1、パートプログラムFTPを記憶するパートプロ
グラム記憶域1 a −2、作成されたNCデータを記
憶するNCデータ記憶域1c−3等が設けられている。RAM1c is a system program storage area 1c that stores system programs etc. read from a floppy disk.
-1, a part program storage area 1a-2 for storing a part program FTP, an NC data storage area 1c-3 for storing created NC data, and the like are provided.
2はプリンタ、3はキーボード、4はグラフィックディ
スプレイ装置、5はディスクコントローラ、5aはフロ
ッピーである。2 is a printer, 3 is a keyboard, 4 is a graphic display device, 5 is a disk controller, and 5a is a floppy disk.
パートプログラムFTPは、図形定義文FDS。The part program FTP is a figure definition statement FDS.
素材形状を塗りつぶし描画させるtコめの素材形状塗り
つぶし定義文MPS、工具形状を定義するための工具形
状定義文TFS、工具の通路を特定するための運動定義
文MVSを有している。It has a material shape filling definition statement MPS for filling in and drawing the material shape, a tool shape definition statement TFS for defining the tool shape, and a motion definition statement MVS for specifying the path of the tool.
素材形状塗りつぶし定義文MPSはたとえばBLANK
、 j、 d、 z、 x。For example, the material shape filling definition statement MPS is BLANK.
, j, d, z, x.
の形式を有している。尚、第2図を参照するとlは素材
Wの長さ、dは直径、X、Zは座標原点から丸棒素材左
下隅迄の各軸方向の距離であり、塗りつぶし色は所定の
色に予め設定されている。It has the format of In addition, referring to Fig. 2, l is the length of the material W, d is the diameter, X and Z are the distances in each axis direction from the coordinate origin to the lower left corner of the round bar material, and the fill color is set to a predetermined color in advance. It is set.
又、工具定義文TFSは工具が第3図に示すような形状
であるとすると
TOOL、 r、 x、 z、 a、、 ao、 x’
、 z’の形式を有している。ただし、rは刃先ノー
ズ半径、a−よ切刃角、aoは刃先角、x’ z’は
それぞれX、Z方向の刃長である。Also, the tool definition statement TFS is TOOL, r, x, z, a,, ao, x', assuming that the tool has the shape shown in Figure 3.
, has the form z'. Here, r is the nose radius of the cutting edge, a-y the cutting edge angle, ao is the cutting edge angle, and x' and z' are the blade lengths in the X and Z directions, respectively.
以下第4図の流れ図に従って本発明にかかる削り取り図
形描画方式を説明する。尚、既にパートプログラムは作
成されて記憶域IC−2に格納されであるものとする。The scraping figure drawing method according to the present invention will be explained below according to the flowchart shown in FIG. It is assumed that the part program has already been created and stored in the storage area IC-2.
パートプログラムから1つのコマンド文を読み取り、該
コマンド文がプログラムエンドかチエツクし、プログラ
ムエンドであれば処理を終了する(ステップ101.1
02)。One command statement is read from the part program, it is checked whether the command statement is the program end, and if it is the program end, the processing is terminated (step 101.1).
02).
プログラムエンドでなければ、工具形状定義文かチエツ
クしくステップ103)、工具形状定義文であれば工具
形状データをワーキングメモリldに格納しくステップ
104)、以後ステップ101以降の処理を繰り返す。If it is not the end of the program, the tool shape definition statement is checked (step 103), and if it is the tool shape definition statement, the tool shape data is stored in the working memory ld (step 104), and the processes from step 101 onwards are repeated.
しかし、工具形状定義文でなければ切削移動に関する文
(切削移動文)かチエツクしくステップ105)、切削
移動文でなければ通常の処理を実行しくステップ106
)、しかる後ステップ101以降の処理を繰り返す。た
とえば、素材形状塗りつぶし定義文であれば、形状の外
形を特定する形状データと塗りつぶしコマンドをグラフ
ィックディスプレイ族@4に送り、グラフィックディス
プレイ側で指定された形状内部を所定色で塗りつぶす塗
りつぶし処理を行わせて素材を塗りつぶし描画する。又
、M、S、T等の加工条件文であればM気嚢、S気嚢、
TIJ能等のNCデータを作成する。However, if it is not a tool shape definition statement, it is checked whether it is a statement related to cutting movement (cutting movement statement) (step 105), and if it is not a cutting movement statement, normal processing is not executed (step 106).
), then the processing from step 101 onwards is repeated. For example, in the case of a material shape fill definition statement, the shape data that specifies the outer shape of the shape and a fill command are sent to the graphic display family @4, and the graphic display side performs the fill process of filling the inside of the specified shape with a predetermined color. to fill in and draw the material. Also, for processing condition statements such as M, S, and T, M air sac, S air sac,
Create NC data such as TIJ function.
一方、ステップ105において、切削移動文であれば、
該切削移動文による工具通路と工具形状とから加工領域
の外形を求め(ステップ107)、該外形を示す形状デ
ータと形状内を背景色で塗りつぶす描画コマンドをグラ
フィックディスプレイ装置4に出力しくステップ108
)、グラフィックディスプレイ側で該加工領域を背景色
で塗り潰す塗りつぶし処理を行わせて素材が削り取られ
る様子を描画する。On the other hand, in step 105, if it is a cutting movement statement,
The outer shape of the machining area is determined from the tool path and tool shape based on the cutting movement statement (step 107), and shape data indicating the outer shape and a drawing command for filling the inside of the shape with the background color are output to the graphic display device 4 (step 108).
), the graphics display side performs a fill process to fill in the processed area with the background color to depict how the material is being scraped off.
以後、ステップ106で切削移動に関するNCデータを
作成し、作成後ステップ101以降の処理を繰り返す。Thereafter, in step 106, NC data regarding the cutting movement is created, and after creation, the processes from step 101 onwards are repeated.
第5図は、ステップ107における加工領域の算出法説
明図であり、切削移動文により工具TLがポイントP、
からポイントP2へ直線的に切削移動することが指令さ
れているものとする。さて、切削移動により加工される
領域は第5図において魚群で埋めた部分となり、従って
加工領域は切削開始点P2における工具刃先形状E0.
E、と、工具パス部分の外形形状E2. ESと、切
削終了点P2における工具刃先形状E、、 E4部分で
囲まれた領域となり、
円弧E。−線分E、−!s分E2−線分E3−円弧E4
−線分E5
が加工領域の外形となる。尚、切削に関与する刃先形状
E0. E、 (E3. E4)は工具形状データと切
削方向に依存して求まる。FIG. 5 is an explanatory diagram of the calculation method of the machining area in step 107, in which the tool TL is moved to the point P by the cutting movement statement.
Assume that a command is given to cut linearly from point P2 to point P2. Now, the area to be processed by the cutting movement is the part filled with fish schools in FIG. 5, and therefore the area to be processed is the tool edge shape E0 at the cutting start point P2.
E, and the external shape of the tool path portion E2. It is an area surrounded by ES and the tool edge shape E, E4 at the cutting end point P2, and is an arc E. -Line segment E, -! s minute E2 - line segment E3 - arc E4
- Line segment E5 becomes the outline of the processing area. Note that the blade edge shape E0. involved in cutting. E, (E3. E4) are determined depending on the tool shape data and cutting direction.
〈発明の効果〉
以上本発明によれば、パートプログラムに素材形状塗り
つぶし定義文と工具形状を定義する工具形状定義文とを
押入しておき、ディスプレイ画面に素材を塗りつぶし描
画し、切削移動文が読み取られた時該切削移動文と工具
形状とから加工領域を求め、該加工領域を背景色で塗抄
つぶして素材が削り取られる様子を描画するように構成
したから、塗りつぶし領域を高速に消去するためのハー
ドウェアがなくても、パートプログラムからNCデータ
への変換処理と並行して1ブロツク毎に素材が一度に削
りとられてゆく様子を描画でき、NCデータのチエツク
が容易に行えるという利点がある。<Effects of the Invention> According to the present invention, the material shape filling definition statement and the tool shape definition statement defining the tool shape are inserted into the part program, the material is filled in and drawn on the display screen, and the cutting movement statement is executed. When read, the machining area is determined from the cutting movement statement and the tool shape, and the machining area is filled in with a background color to depict how the material is being scraped off, so the filled area can be erased at high speed. The advantage is that it is possible to draw the process of material being scraped off one block at a time in parallel with the conversion process from the part program to NC data, and the NC data can be easily checked, even if there is no hardware required. There is.
第1図は本発明方式を実行する自動プログラミノブ装置
のブロック図、
番
第2図は素材形状塗りつぶ定義文の説明図、第3図は工
具形状定義文の説明図、
第4図は本発明の処理の流れ図、
第5図は加工領域算出法の説明図である。
1・・自動プログラミング本体、
1a・・プロセッサ、
IC−2・・パードブ四グラム記憶域、IC−3・・N
Cデータ記憶域、
4・・グラフィックディスプレイ装置、FTP・・パー
トプログラム
特許出願人 ファナック株式会社代理人
弁理± 11藤千幹第5図
第4図Figure 1 is a block diagram of an automatic programming knob device that executes the method of the present invention. Figure 2 is an explanatory diagram of the material shape filling definition statement. Figure 3 is an explanatory diagram of the tool shape definition statement. FIG. 5 is an explanatory diagram of the processing area calculation method of the invention. 1.Automatic programming main body, 1a..Processor, IC-2..Pardobu 4-gram storage area, IC-3..N
C data storage area, 4...Graphic display device, FTP...Part program Patent applicant Fanuc Co., Ltd. agent Patent attorney ± 11 Fujichiki Figure 5 Figure 4
Claims (1)
NC装置が実行可能なNCデータに変換する自動プログ
ラミング装置における削り取り図形描画方式において、 パートプログラムに素材塗りつぶし定義文と工具形状定
義文とを挿入しておき、 パートプログラムを先頭より1文づつ読み取り、素材塗
りつぶし定義文であれば素材塗りつぶしの描画コマンド
をディスプレイ装置に出力してディスプレイ画面に素材
を塗りつぶし描画し、 工具形状定義文であれば工具形状を記憶し、切削移動文
であれば該切削移動文と工具形状とから加工領域を求め
、 該加工領域を背景色で塗りつぶす描画コマンドをディス
プレイ装置に出力して素材が削り取られる様子を描画す
ることを特徴とする削り取り図形描画方式。[Claims] In a scraping figure drawing method in an automatic programming device that converts a part program created in an automatic programming language into NC data executable by the NC device, the part program includes a material filling definition statement and a tool shape definition statement. Insert it, read the part program one sentence at a time from the beginning, and if it is a material fill definition statement, output the material fill drawing command to the display device to fill and draw the material on the display screen, and if it is a tool shape definition statement, output the material fill drawing command to the display device. The tool shape is memorized, and if it is a cutting movement statement, the machining area is determined from the cutting movement statement and the tool shape, and a drawing command that fills the machining area with the background color is output to the display device to draw the state in which the material is being scraped off. A scraping figure drawing method that is characterized by the following.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24921587A JPH0192807A (en) | 1987-10-02 | 1987-10-02 | Cutting graphic plotting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24921587A JPH0192807A (en) | 1987-10-02 | 1987-10-02 | Cutting graphic plotting system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0192807A true JPH0192807A (en) | 1989-04-12 |
Family
ID=17189629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24921587A Pending JPH0192807A (en) | 1987-10-02 | 1987-10-02 | Cutting graphic plotting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0192807A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE4115526A1 (en) * | 1990-05-14 | 1991-11-28 | Mitsubishi Electric Corp | METHOD FOR SIMULATING MACHINING ON A LATHE |
US5113348A (en) * | 1989-01-26 | 1992-05-12 | Kabushiki Kaisha Okuma Tekkosho | Paint-out shape display method and an apparatus used in a numerical control apparatus |
-
1987
- 1987-10-02 JP JP24921587A patent/JPH0192807A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5113348A (en) * | 1989-01-26 | 1992-05-12 | Kabushiki Kaisha Okuma Tekkosho | Paint-out shape display method and an apparatus used in a numerical control apparatus |
DE4115526A1 (en) * | 1990-05-14 | 1991-11-28 | Mitsubishi Electric Corp | METHOD FOR SIMULATING MACHINING ON A LATHE |
DE4115526C2 (en) * | 1990-05-14 | 1993-07-15 | Mitsubishi Denki K.K., Tokio/Tokyo, Jp | |
US5278917A (en) * | 1990-05-14 | 1994-01-11 | Mitsubishi Denki Kabushiki Kaisha | Lathe cutting simulation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2589999B2 (en) | Graphic input / output device | |
US6249908B1 (en) | System and method for representing graphical font data and for converting the font data to font instructions | |
US4739317A (en) | Draw graphics capabilities | |
US4918435A (en) | Method for processing animated graphics | |
JPH0192807A (en) | Cutting graphic plotting system | |
US5067087A (en) | Composite-figure definition method | |
US5043865A (en) | Profile revising method | |
JPH01200413A (en) | Production of analogous part program | |
US5095439A (en) | Profile revising method | |
JPH0194404A (en) | Nc data generation system | |
JP2565509B2 (en) | Automatic programming method | |
US5384907A (en) | Method for carrying out scissoring -processing of stroke letters in a screen display | |
JPH01133113A (en) | Multi-face graphic plotting system for automatic programming device | |
JP2751211B2 (en) | Document creation device | |
JPS63310079A (en) | Graphic plotting system | |
JPH04177409A (en) | Tool locus display device | |
JPH03263106A (en) | Plotting condition setting means | |
JPH07168951A (en) | Graphic input/output device | |
JPS59194214A (en) | Display device for teaching information | |
JPS62251788A (en) | Cursor control system | |
JPH01318168A (en) | Document forming device | |
JPS63310080A (en) | Graphic plotting system | |
JPH04362706A (en) | Display system for numerical controller | |
JPS6235908A (en) | Automatic programming method | |
JPS63127384A (en) | Graphic display control system |