JPH02284209A - Cad/cam device - Google Patents
Cad/cam deviceInfo
- Publication number
- JPH02284209A JPH02284209A JP10662789A JP10662789A JPH02284209A JP H02284209 A JPH02284209 A JP H02284209A JP 10662789 A JP10662789 A JP 10662789A JP 10662789 A JP10662789 A JP 10662789A JP H02284209 A JPH02284209 A JP H02284209A
- Authority
- JP
- Japan
- Prior art keywords
- data
- shape
- maximum value
- minimum value
- crt
- 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
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、NCデータ出力時に、NC装置側で加工形
状の確認を短時間で行なうための(:AO/CAM装置
に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an AO/CAM device (:AO/CAM device) for quickly confirming a machined shape on the NC device side when outputting NC data.
従来、NCデータの加工形状の確認方法としてはNC装
置のCRT上にその形状を表示させて確認する方法を取
っていた。これは、−度NCデータを解析してNCデー
タから最大値、最小値を計算で求め、その大きさによっ
てNC装置のCRT上にすべて表示できる倍率を求め、
その後、形状に倍率を掛けて、NC装置の軌跡をCRT
上に出力して形状の確認を行なうものである。Conventionally, the method of confirming the machined shape of NC data has been to display the shape on the CRT of the NC device. This involves analyzing -degree NC data, calculating the maximum and minimum values from the NC data, and calculating the magnification that can display all of them on the CRT of the NC device based on their size.
After that, multiply the shape by the magnification and trace the trajectory of the NC device on the CRT.
The shape can be confirmed by outputting it to the top.
すなわち、NC装置上で形状を確認する際には、NC装
置内では次の処理がなされる。まず、NCデータ(通常
NGテープ)の1ブロツク目の解析を行ないX軸座標、
Y軸座標をメモリ内に登録する。次に、2ブロツク目を
解析しX軸座標、Y軸座標を取り出しメモリ内の座標と
比較する。その結果、座標の大きい方をメモリに登録す
る。この処理をNCデータの最後まで行なうとメモリ内
のデータはNCデータの最大値が入っていることになる
。同様にして最小値も求める。このようにして求めたN
Cデータの最大値、最小値を基にNC装置のCRT上に
表示可能な倍率を求める。倍率はNC装置のCRTの長
さとNCデータの最大値、最小値から求めた長さの比で
ある。この場合、CAD/CAM装置はNCデータのみ
出力していた。That is, when confirming the shape on the NC device, the following processing is performed within the NC device. First, analyze the first block of NC data (usually NG tape) and determine the X-axis coordinate.
Register the Y-axis coordinate in memory. Next, the second block is analyzed and the X-axis and Y-axis coordinates are taken out and compared with the coordinates in the memory. As a result, the one with larger coordinates is registered in memory. If this process is performed to the end of the NC data, the data in the memory will contain the maximum value of the NC data. Find the minimum value in the same way. N obtained in this way
The magnification that can be displayed on the CRT of the NC device is determined based on the maximum and minimum values of the C data. The magnification is the ratio of the length of the CRT of the NC device to the length determined from the maximum and minimum values of the NC data. In this case, the CAD/CAM device outputs only NC data.
第2図は上記NCデータを出力する(:AD/CAM装
置の構成を示すもので、先ず、キーボード(6)、マウ
ス(7)等を使い図形を定義する。次に、定義した図形
は、(:PU (1)の制御に基づいてCRT (5)
上で形状を確認し、加工経路を指定後、NCデータに変
換する。そして変換されたNCデータは外部記憶装置(
8)のフロッピーディスクに記憶されてこれを経由して
NC装置へ送られる。なお、図中、(2)はメモリ、(
3)はプリンタ、(4)は紙テープ入出力9置、(9)
はプロッタ、(10)はバスを示す。Figure 2 shows the configuration of the AD/CAM device that outputs the above NC data. First, a figure is defined using the keyboard (6), mouse (7), etc. Next, the defined figure is (: CRT (5) based on the control of PU (1)
After confirming the shape above and specifying the machining path, convert it to NC data. The converted NC data is then stored in an external storage device (
8) is stored on the floppy disk and sent to the NC device via this. In the figure, (2) is the memory, (
3) is a printer, (4) is a paper tape input/output with 9 positions, (9)
indicates a plotter, and (10) indicates a bus.
〔発明が解決しようとする課題)
しかるに、前述したように、NC装置で形状を確認する
には一度NGデータを解析するためにNC装置を動作さ
せる必要があった。この為、NCデータの長さによって
は形状の確認に大変多くの解析時間が掛かることがあっ
た。[Problems to be Solved by the Invention] However, as described above, in order to confirm the shape with the NC device, it is necessary to operate the NC device once to analyze the NG data. For this reason, depending on the length of the NC data, it may take a considerable amount of analysis time to confirm the shape.
この発明は、上記のような問題点を解決するためになさ
れたもので、NC装置上で加工形状の確認を短時間に行
ない得るNCデータを出力することができるCAD/C
AM装置を提供することを目的とする。This invention was made in order to solve the above-mentioned problems, and is a CAD/C that can output NC data that allows confirmation of machined shapes in a short time on an NC device.
The purpose is to provide an AM device.
この発明に係るCAD/CAM装置は、NC装置に出力
するNCデータにデータの最大値、最小値を付加して出
力することを特徴とするものである。The CAD/CAM device according to the present invention is characterized in that a maximum value and a minimum value of the data are added to NC data to be outputted to the NC device.
〔作用]
この発明におけるCAD/CAM装置は、NCデータに
データの最大値、最小値を付加して出力するので、NC
データによりNC装置にて形状を確1こする際に短時間
で確認される。[Operation] The CAD/CAM device according to the present invention adds the maximum value and minimum value of the data to the NC data and outputs it.
The data can be confirmed in a short time when the shape is checked using an NC device.
[実施例] 以下、この発明の一実施例について説明する。[Example] An embodiment of the present invention will be described below.
先ず、NC装置で加工する際、CAD/CAM装置にて
NCデータを作成する。このNCデータの作成は従来と
同様にして、キーボード(6)、マウス(7)等を用い
図形を定義し、各図形要素をメモリ(2)に全て格納す
る。図形要素が直線ならば始点及び終点座標、円ならば
中心、始点及び終点の座標を各図形要素毎にメモリ(2
)に格納される。その時、CA D /CAM装置での
操作は全体図をCRT上に出力する。First, when processing with an NC device, NC data is created with a CAD/CAM device. This NC data is created in the same way as in the past, by defining a graphic using the keyboard (6), mouse (7), etc., and storing all graphical elements in the memory (2). If the graphic element is a straight line, the coordinates of the start point and end point are stored in memory for each graphic element (2
). The operation on the CAD/CAM device then outputs the overall diagram onto the CRT.
また、この時、内部では図形要素すべてに対して大小比
較を行ない図形の最大値、最小値を求める。この値は新
しい要素が作成される度に更新される。Also, at this time, internal comparisons are made for all graphical elements to determine the maximum and minimum values of the graphic. This value is updated each time a new element is created.
すなわち、第1図はcpu (1)による図形要素の最
大値及び最小値の更新ループを示すもので、先ず、図形
要素の最大値、最小値を格納するメモリ(2)の所定領
域を初期化した状態で(Sl)、図形要素をメモリ(2
)から取り出しくS2.S3) 、取り出した図形の最
大値と最小値を求めてメモリ(2)の所定領域に格納す
る。このような経過を経て取り出した図形の最大値と現
在の最大値を比較しくS4)、現在の最大値が大きけれ
ばその値をメモリ(2)の所定領域に更新して格納する
(S5)。最小値の更新も同様にして行なわれる。That is, FIG. 1 shows a loop for updating the maximum and minimum values of graphic elements by CPU (1). First, a predetermined area of memory (2) that stores the maximum and minimum values of graphic elements is initialized. In this state (Sl), the graphic element is stored in the memory (2
) to take it out from S2. S3) The maximum value and minimum value of the extracted figure are determined and stored in a predetermined area of the memory (2). The maximum value of the figure extracted through this process is compared with the current maximum value (S4), and if the current maximum value is larger, that value is updated and stored in a predetermined area of the memory (2) (S5). The minimum value is updated in the same way.
そして、このようにして得た最大値及び最小値をGMA
XのコートとGMINのコードにその値を入れて以下に
示すようにNCデータの先頭に付加する。Then, use the maximum and minimum values obtained in this way as GMA
Enter the values in the X code and GMIN code and add them to the beginning of the NC data as shown below.
NoolGMAXX1000Y1500GMINX−1
000Y−150ONO02G92XOYO
NO03GOOX1000YQ
NO04GOIY−150O
NO05GOIX−100O
NO06GOIY150O
NO07GOIX100O
NO08GOIYO
N009MO2
ここで、1ブロツク目の例えばN0OIはコード番号、
GMAXX1000Y1500は最大値がX軸座標テ1
000、Y軸座標で1500、GMINX−1000Y
−1500は最小値がX軸座標で−1000、Y軸座標
で−1500を示す。これによってNC装置で形状を確
認する場合、NC装置はGMAX、 GMINを認識す
ることにより、NCデータを空読みさせるとなく CR
T上の倍率を計算して形状を表示することができる。NoolGMAXX1000Y1500GMINX-1
000Y-150ONO02G92XOYO NO03GOOX1000YQ NO04GOIY-150O NO05GOIX-100O NO06GOIY150O NO07GOIX100O NO08GOIYO N009MO2 Here, for example, N0OI of the 1st block is code number,
For GMAXX1000Y1500, the maximum value is X-axis coordinate Te1
000, 1500 in Y-axis coordinate, GMINX-1000Y
-1500 indicates that the minimum value is -1000 on the X-axis coordinate and -1500 on the Y-axis coordinate. As a result, when confirming the shape with the NC device, the NC device recognizes GMAX and GMIN, so that the NC data is not read blankly and CR
The shape can be displayed by calculating the magnification on T.
従って、上記実施例によれば、1ブロツク目の最大値、
最小値がNCデータに付加したため、NC装置側でNC
データをすべて読んで解析する必要がなくなりその分速
度が早くなる。Therefore, according to the above embodiment, the maximum value of the first block,
Since the minimum value was added to the NC data, the NC device side
There is no need to read and analyze all the data, which speeds up the process.
なお、上記実施例において、加工経路の最大値、最小値
をNCデータの一部として付加してNC装置に認識させ
、NCデータの一部として扱ったが、NCデータでなく
、専用のデータを使用してNC装置内で形状確認する前
にそのデータを読み込んでも良い。また、NC装置との
データの形式として、最大値、最小値の取り決めにGM
AX、 GMINコードを使用したが、このコードはN
O装置側に合わせて形式が決まっていればGMAX%G
MINで無くても良い。In the above embodiment, the maximum and minimum values of the machining path were added as part of the NC data, recognized by the NC device, and treated as part of the NC data. The data may be read before confirming the shape in the NC device. Also, as a data format with the NC device, GM will agree on the maximum and minimum values.
AX, GMIN code was used, but this code is N
O If the format is determined according to the device side, GMAX%G
It doesn't have to be MIN.
〔発明の効果)
この発明によれば、NC装置に出力するNGデータにデ
ータの最大値、最小値を付加して出力するので、CAD
/CAM装置から出力されたNOデータをNC装置のC
RT上で形状を確認する際に、最初から最適の画面の大
きさ(加工経路全体が入る倍率)で確認できる。[Effects of the Invention] According to the present invention, the maximum value and minimum value of the data are added to the NG data to be output to the NC device.
/The NO data output from the CAM device is sent to the C of the NC device.
When checking the shape on RT, you can check from the beginning with the optimal screen size (magnification that allows the entire machining path to be included).
第1図はCAD CAMAM装置PUによりなされる最
大値、最小値を求める処理フローチャート、第2図はC
AD/C:AM装置の構成図である。
尚、各図中同一符号は同−又は相当部分を示す。Figure 1 is a flowchart of the process for determining the maximum and minimum values performed by the CAD CAMAM device PU, and Figure 2 is a flowchart of the process performed by the CAD CAMAM device PU.
FIG. 2 is a configuration diagram of an AD/C:AM device. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
値を付加して出力することを特徴とするCAD/CAM
装置。A CAD/CAM characterized by adding maximum and minimum data values to NC data to be output to an NC device.
Device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10662789A JPH02284209A (en) | 1989-04-26 | 1989-04-26 | Cad/cam device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10662789A JPH02284209A (en) | 1989-04-26 | 1989-04-26 | Cad/cam device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02284209A true JPH02284209A (en) | 1990-11-21 |
Family
ID=14438348
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10662789A Pending JPH02284209A (en) | 1989-04-26 | 1989-04-26 | Cad/cam device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02284209A (en) |
-
1989
- 1989-04-26 JP JP10662789A patent/JPH02284209A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2828271B2 (en) | Shape generation method in CAD system | |
| US6480124B2 (en) | CAD data compressing method and apparatus thereof | |
| JPH02284209A (en) | Cad/cam device | |
| JP2584229B2 (en) | CAD / CAM automatic programming device | |
| JPH08328630A (en) | Working locus display system | |
| JP2670088B2 (en) | Design support device and design support method | |
| JPH0493992A (en) | Character and graphic plotter device | |
| JP2504551B2 (en) | Error detection processing method for input data | |
| JPH04114207A (en) | Work data preparing system for nc work machine | |
| JPH0462410A (en) | Measurement assisting device | |
| JPS60189505A (en) | Graphic display device of numerical controller | |
| JPH0540512A (en) | CAD / CAM device | |
| JPH09160626A (en) | Nc data generation system | |
| JPS6055470A (en) | Graphic information extracting method | |
| JPH07152362A (en) | Dot display processor | |
| JPH04174006A (en) | Graphic drawing method | |
| JPH0766386B2 (en) | Simple language processing system | |
| JPH02226367A (en) | Cad / cam device | |
| JPH04288623A (en) | Editing device | |
| JPH0696142A (en) | Drawing method | |
| JPS6238908A (en) | numerical control device | |
| JPH0298781A (en) | Automatic cad/cam programming device | |
| JPH03201010A (en) | Numerical controller | |
| JPH10161726A (en) | Numerical control unit | |
| JPS6339946B2 (en) |