JPH11338529A - Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded - Google Patents

Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded

Info

Publication number
JPH11338529A
JPH11338529A JP14733698A JP14733698A JPH11338529A JP H11338529 A JPH11338529 A JP H11338529A JP 14733698 A JP14733698 A JP 14733698A JP 14733698 A JP14733698 A JP 14733698A JP H11338529 A JPH11338529 A JP H11338529A
Authority
JP
Japan
Prior art keywords
data
calculation
cad
coordinate position
priority
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
JP14733698A
Other languages
Japanese (ja)
Inventor
Hiroaki Shibata
裕章 柴田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP14733698A priority Critical patent/JPH11338529A/en
Publication of JPH11338529A publication Critical patent/JPH11338529A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make changeable an arithmetic method used to convert NC data into graphic data. SOLUTION: In the CAD/CAM device 10 an arithmetic method storage part 5 stores arithmetic methods such as a center coordinate position priority method, an end-point coordinate position priority method, a horizontal and vertical line coordinate position priority method, a radius priority method, and an angle priority method and an NC data acquisition part 1 acquires NC data, and an operator selects one or plural arithmetic methods out of the methods stored in the arithmetic method storage part 5 by using an arithmetic method selection part 6, a graphic data generation part 2 generates graphic data by the arithmetic method selected by the operator, a display part 3 displays an image of the graphic data, and an NC data generation part 4 generates NC data from the graphic data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、データ変換方法
およびCAD/CAM装置およびそのデータ変換方法を
実行させるためのプログラムを記録したコンピュータ読
み取り可能な記録媒体に関し、さらに詳しくは、設定さ
れた演算方法に基づいてNCデータを図形データに変換
するデータ変換方法と、そのデータ変換方法を好適に実
行できるCAD/CAM装置と、そのデータ変換方法を
実行させるためのプログラムを記録したコンピュータ読
み取り可能な記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion method, a CAD / CAM device, and a computer-readable recording medium on which a program for executing the data conversion method is recorded, and more particularly, to a set operation method. Conversion method for converting NC data into graphic data based on a program, a CAD / CAM device capable of suitably executing the data conversion method, and a computer-readable recording medium storing a program for executing the data conversion method It is about.

【0002】[0002]

【従来の技術】CAD/CAM装置は、与えられたNC
データを図形データに変換してその図形データに基づく
加工形状を画像表示し、編集機能を利用してこの加工形
状を編集し、編集した加工形状から図形データを作成
し、この図形データからNCレーザ加工機や、NCプラ
ズマ切断機などのNC切断装置用のNCデータを作成す
る。
2. Description of the Related Art A CAD / CAM apparatus is provided with a given NC.
The data is converted into graphic data, a processed shape based on the graphic data is displayed as an image, the processed shape is edited using an editing function, graphic data is created from the edited processed shape, and an NC laser is formed from the graphic data. Create NC data for a processing machine or an NC cutting device such as an NC plasma cutting machine.

【0003】図6は、従来のCAD/CAM装置を機能
的に示すブロック図の一例である。このCAD/CAM
装置100では、NCデータ取得部1と、図形データ作
成部2と、表示部3と、NCデータ作成部4とがバス7
によって接続されている。図7に、CAD/CAM装置
100の動作のフローチャートを示す。ステップS1で
は、NCデータ取得部1が、テープリーダパンチャやフ
ロッピーディスクなどの記録媒体からNCデータを読み
取る。なお、NCデータは、キーボードを用いて入力し
てもよい。ステップS2では、図形データ作成部2が、
予め設定された演算方法に基づいてNCデータを図形デ
ータに変換する。ステップS3では、表示部3が、図形
データに基づく加工形状を画像表示する。オペレータは
この加工形状を確認し、必要であれば編集する。ステッ
プS4では、NCデータ作成部4が、確定された加工形
状の図形データをNCデータに変換して出力する。
FIG. 6 is an example of a block diagram functionally showing a conventional CAD / CAM device. This CAD / CAM
In the device 100, the NC data acquisition unit 1, the graphic data creation unit 2, the display unit 3, and the NC data creation unit 4
Connected by FIG. 7 shows a flowchart of the operation of the CAD / CAM device 100. In step S1, the NC data acquisition unit 1 reads NC data from a recording medium such as a tape reader puncher or a floppy disk. Note that the NC data may be input using a keyboard. In step S2, the graphic data creation unit 2
The NC data is converted into graphic data based on a preset calculation method. In step S3, the display unit 3 displays an image of the processed shape based on the graphic data. The operator confirms the processed shape and edits it if necessary. In step S4, the NC data creating unit 4 converts the figure data of the determined processed shape into NC data and outputs the NC data.

【0004】ここで、図8および図9を参照して、図8
に示すように、その内部に真円Cと長穴形状Hとがある
加工形状をレーザ加工する場合の加工経路を図9に示
す。なお、図8中の寸法は、ここではミリメートル単位
である。レーザ光を出力する加工ヘッドは、加工基準位
置51から、レーザを出力しないで、点線52に沿って
位置53まで早送り移動する。つぎに、レーザ光を出力
しながらピアス線54に沿って真円C上の位置55まで
加工を行う。そして、レーザ光を出力しながら線56に
沿って位置55まで加工を行い、レーザ光をオフする。
これにより、真円Cが加工される。その後、位置55か
ら、レーザを出力しないで、点線57に沿って位置58
まで早送り移動する。
Here, referring to FIGS. 8 and 9, FIG.
As shown in FIG. 9, FIG. 9 shows a processing path when laser processing is performed on a processing shape having a perfect circle C and a long hole shape H therein. The dimensions in FIG. 8 are in millimeters here. The processing head that outputs laser light rapidly moves from a processing reference position 51 to a position 53 along a dotted line 52 without outputting laser. Next, processing is performed along the piercing line 54 to a position 55 on the perfect circle C while outputting laser light. Then, processing is performed along the line 56 to the position 55 while outputting the laser light, and the laser light is turned off.
Thereby, the perfect circle C is processed. Thereafter, from the position 55, the laser is not output, and the position 58
Fast forward to.

【0005】つぎに、レーザ光を出力しながらピアス線
59に沿って長穴形状H上の位置5Aまで加工を行う。
そして、レーザ光を出力しながら長穴要素5B,5C,
5D,5E,5Fの順に位置5Aまで加工を行い、レー
ザ光をオフする。これにより、長穴形状Hが加工され
る。その後、位置5Aから、レーザを出力しないで、点
線5Gに沿って位置5Hまで早送り移動する。つぎに、
レーザ光を出力しながらピアス線5Iに沿って位置5J
まで加工を行う。そして、レーザ光を出力しながら外周
要素5K,5L,5M,5N,5O,5P,5Qの順に
位置5Jまで加工を行い、レーザ光をオフする。これに
より、全ての加工が終了する。
Next, processing is performed along the piercing line 59 to a position 5A on the elongated hole shape H while outputting a laser beam.
Then, while outputting laser light, the long hole elements 5B, 5C,
Processing is performed up to position 5A in the order of 5D, 5E, and 5F, and the laser beam is turned off. Thereby, the elongated hole shape H is processed. Thereafter, the laser beam is rapidly moved from the position 5A to the position 5H along the dotted line 5G without outputting the laser. Next,
Position 5J along piercing line 5I while outputting laser light
Work up to. Then, while outputting the laser beam, the outer peripheral elements 5K, 5L, 5M, 5N, 5O, 5P, and 5Q are processed in this order to the position 5J, and the laser beam is turned off. Thereby, all the processes are completed.

【0006】図10および図11は、図9に示した形状
を加工するNCデータの、使用するNC指令コードが異
なる2つ例を示し、このNCデータは多数の指令からな
る。なお、図10では各指令の説明を記述し、図11で
は各指令の説明を省略している。これらの指令を検証す
ると、例えば、加工基準位置51を示す指令がN4で始
まる行、点線52に沿って位置53まで早送り移動する
指令がN5で始まる行、レーザ光をオンにする指令がN
6で始まる行、ピアス線54に沿って位置55まで移動
する指令がN7で始まる行、線56に沿って位置55ま
で移動する指令がN8で始まる行、レーザ光をオフする
指令がN9とN10で始まる行が示されている。
FIGS. 10 and 11 show two examples of NC data used for processing the shape shown in FIG. 9 which use different NC command codes. The NC data consists of a large number of commands. Note that FIG. 10 describes the description of each command, and FIG. 11 omits the description of each command. When these commands are verified, for example, a command indicating the machining reference position 51 starts with N4, a command for fast-forwarding to the position 53 along the dotted line 52 starts with N5, and a command for turning on the laser beam is N.
6, a command to move along the piercing line 54 to the position 55 starts with N7, a command to move to the position 55 along the line 56 starts with N8, and commands to turn off the laser beam N9 and N10. Lines starting with are shown.

【0007】また、点線57に沿って位置58まで早送
り移動する指令がN11で始まる行、レーザ光をオンに
する指令がN12で始まる行、ピアス線59に沿って位
置5Aまで移動する指令がN13で始まる行、長穴要素
5Bに沿って移動する指令がN14で始まる行、長穴要
素5Cに沿って移動する指令がN15で始まる行、長穴
要素5Dに沿って移動する指令がN16で始まる行、長
穴要素5Eに沿って移動する指令がN17で始まる行、
長穴要素5Fに沿って移動する指令がN18で始まる
行、レーザ光をオフする指令がN19とN20で始まる
行が示されている。
[0007] Further, a command to move fast along the dotted line 57 to the position 58 starts at N11, a command to turn on the laser beam starts at N12, and a command to move along the piercing line 59 to the position 5A starts at N13. , A command to move along the long hole element 5B starts with N14, a command to move along the long hole element 5C starts with N15, and a command to move along the long hole element 5D starts with N16. Line, the command to move along the long hole element 5E starts with N17,
The line that moves along the long hole element 5F starts with N18 and the line that turns off the laser beam starts with N19 and N20.

【0008】さらに、点線5Gに沿って位置5Hまで早
送り移動する指令がN21で始まる行、レーザ光をオン
にする指令がN22で始まる行、ピアス線5Iに沿って
位置5Jまで移動する指令がN23で始まる行、外周要
素5Kに沿って移動する指令がN24で始まる行、外周
要素5Lに沿って移動する指令がN25で始まる行、外
周要素5Mに沿って移動する指令がN26で始まる行、
外周要素5Nに沿って移動する指令がN27で始まる
行、外周要素5Oに沿って移動する指令がN28で始ま
る行、外周要素5Pに沿って移動する指令がN29で始
まる行、外周要素5Qに沿って移動する指令がN30で
始まる行、レーザ光をオフする指令がN31とN32で
始まる行、オフセットキャンセル指令がN33で始まる
行、加工終了がN34で始まる行が示されている。
Further, a command to start fast-forwarding to the position 5H along the dotted line 5G starts at N21, a command to turn on the laser beam starts at N22, and a command to move to position 5J along the piercing line 5I at N23. , A command to move along the outer element 5K starts with N24, a command to move along the outer element 5L starts with N25, a command to move along the outer element 5M starts with N26,
A command to move along the peripheral element 5N starts with N27, a command to move along the peripheral element 5O starts with N28, a command to move along the peripheral element 5P starts with N29, and a command to move along the peripheral element 5Q A line that starts with N30, a line that turns off the laser beam starts with N31 and N32, a line that starts with an offset cancel command starts with N33, and a line that ends processing ends with N34.

【0009】ここで、図10のNCデータと図11のN
Cデータの違いについて説明すると、図10のNCデー
タは長穴形状Hの円弧を加工するために円弧終点座標と
円弧中心座標(I,J)を用いているが、図11のNC
データは円弧終点座標と円弧半径(R)を用いている。
例えば、図10のNCデータにおいては、N14で始ま
る行の指令のように、「円弧終点座標が(56.18,
50)で円弧中心座標がX方向に(ピアス線59の終点
位置5Aの座標(60,40)から)−15ミリメート
ルの長穴要素5Bを形成する」ようになっているのに対
して、図11のNCデータにおいては、同じN14で始
まる行の指令のように、「円弧終点座標が(56.1
8,50)で円弧半径が15ミリメートルの長穴要素5
Bを形成する」ようになっている。
Here, NC data in FIG. 10 and N data in FIG.
Explaining the difference between the C data, the NC data in FIG. 10 uses the arc end point coordinates and the arc center coordinates (I, J) to machine the arc of the elongated hole shape H.
The data uses the arc end point coordinates and the arc radius (R).
For example, in the NC data shown in FIG. 10, as shown in the command of the line starting with N14, "the arc end point coordinates are (56.18,
50), the center coordinates of the arc form the -15 mm long slot element 5B in the X direction (from the coordinates (60, 40) of the end point 5A of the piercing line 59). In the NC data of No. 11, as shown in the command of the line starting with the same N 14, “the arc end point coordinate is (56.1
Elongated hole element 5 with an arc radius of 15 mm at 8,50)
B is formed. "

【0010】すなわち、長穴要素5Bを形成するときに
後述のように誤差が生じた場合に、図10のNCデータ
は円弧中心座標を優先するようになっているのに対し
て、図11のNCデータは円弧終点座標を優先するよう
になっている。なお、図10と図11とでは、長穴要素
5Dを示すN16で始まる行、長穴要素5Fを示すN1
8で始まる行、外周要素5Pを示すN29で始まる行に
もこのような指令方法の違いがある。
That is, when an error occurs as described later when forming the elongated hole element 5B, the NC data in FIG. 10 gives priority to the arc center coordinates, whereas the NC data in FIG. The NC data gives priority to the coordinates of the arc end point. In FIGS. 10 and 11, a line starting with N16 indicating the slot element 5D and N1 indicating the slot element 5F are shown.
There is such a difference in the instruction method also in the line starting with 8 and the line starting with N29 indicating the outer peripheral element 5P.

【0011】つぎに、長穴要素5Bを形成するときに誤
差が発生する理由を説明する。図8の長穴要素5B以降
の要素部分をNCデータに変換する際、例えば長穴要素
5Bの終点、つまり長穴要素5Cの始点の座標において
は、円弧形状である長穴要素5Bと水平線である長穴要
素5Cとの交差点となる。この交差点の座標を計算する
と、Y座標は50.000になるが、X座標は56.1
8034(以下省略)という割り切れない数字になる。
通常、加工機本体にて運用可能なNCデータ指令には有
効桁数が限られている。このため、例えば上記長穴要素
5Cの始点座標のX座標指令は、小数点以下4桁目(サ
ブミクロン)指令を四捨五入し、N14で始まる行の中
にも示されている通り、56.180としてNCデータ
が作成される。このように、形状によってはNCデータ
に変換する際に四捨五入による寸法誤差が発生する。
Next, the reason why an error occurs when the elongated hole element 5B is formed will be described. When converting the element portion after the slot element 5B in FIG. 8 into NC data, for example, at the coordinates of the end point of the slot element 5B, that is, the coordinates of the start point of the slot element 5C, the arc element-shaped slot element 5B and the horizontal line are used. It becomes an intersection with a certain long hole element 5C. When the coordinates of this intersection are calculated, the Y coordinate is 50.000, but the X coordinate is 56.1.
It becomes an indivisible number of 8034 (hereinafter abbreviated).
Normally, the number of significant digits is limited to the NC data command operable in the processing machine body. For this reason, for example, the X coordinate command of the starting point coordinates of the slot element 5C is rounded off to the fourth digit (submicron) after the decimal point, and is 56.180 as shown in the line starting with N14. NC data is created. As described above, a dimensional error occurs due to rounding when converting to NC data depending on the shape.

【0012】同様に、長穴要素5Dの始点座標位置、長
穴要素5Eの始点座標位置、長穴要素5Fの始点座標位
置、いずれにおいても、X座標が割り切れない数字とな
り、NCデータに変換する際に四捨五入による寸法誤差
が発生する。例えば図10においては、N14で始まる
行のX座標指令「X56.18」、N15で始まる行の
X座標指令「X33.82」、N16で始まる行のI座
標指令「I11.18」、N17で始まる行のX座標指
令「X56.18」などは、四捨五入による寸法誤差の
発生する部分である。
Similarly, the X coordinate becomes an indivisible number at each of the starting point coordinate position of the elongated hole element 5D, the starting point coordinate position of the elongated hole element 5E, and the starting point coordinate position of the elongated hole element 5F, and is converted into NC data. In this case, dimensional errors occur due to rounding. For example, in FIG. 10, the X coordinate command “X56.18” for the line starting with N14, the X coordinate command “X33.82” for the line starting with N15, the I coordinate command “I11.18” for the line starting with N16, and N17 The X coordinate command “X56.18” or the like in the starting line is a portion where a dimensional error occurs due to rounding.

【0013】NCデータに寸法誤差が生じている部分が
ある場合は、指定通りの寸法では加工形状が作成できな
い。図10のNCデータを例に説明すると、N14で始
まる行に示される長穴要素5Bを作成する指令は、「円
弧終点座標が(56.18,50)で、円弧中心座標が
(45,40)(すなわち、ピアス線59の終点座標
(60,40)からX方向に−15ミリメートル)の長
穴要素5Bを形成する」となっているが、中心座標(4
5,40)を有する半径15ミリメートルの円弧は、正
確には座標(56.18034,50)を付近通過し、
円弧終点座標として指定されている座標(56.18,
50)を通過しないため、指定通りには図形を作成する
ことはできない。一方、図11のNCデータを例に説明
すると、N14で始まる行に示される長穴要素5Bを作
成する指令は、「円弧終点座標が(56.18,50)
で円弧半径が15ミリメートルの長穴要素5Bを形成す
る」となっているが、座標位置5A(60,40)と円
弧終点座標(56.18,50)との2点を通過する半
径15ミリメートルの円弧の中心座標は本来の中心座標
(45,40)からずれてしまい、指定通りには図形を
作成することはできない。
When there is a portion where a dimensional error occurs in the NC data, a processed shape cannot be created with the specified dimensions. Taking the NC data of FIG. 10 as an example, the command to create the long hole element 5B shown in the line starting with N14 is “the arc end point coordinate is (56.18, 50) and the arc center coordinate is (45, 40). ) (That is, -15 mm in the X direction from the end point coordinates (60, 40) of the piercing line 59). "
An arc with a radius of 15 millimeters having (5,40) passes near the coordinates (56.18034,50) exactly,
The coordinates specified as the arc end point coordinates (56.18,
50), the figure cannot be created as specified. On the other hand, taking the NC data of FIG. 11 as an example, the command to create the slot element 5B shown in the line starting with N14 is “the arc end point coordinate is (56.18, 50).
To form a long hole element 5B having an arc radius of 15 mm ", but a radius of 15 mm passing through two points of the coordinate position 5A (60, 40) and the coordinates of the arc end point (56.18, 50). The center coordinates of the arc deviate from the original center coordinates (45, 40), and a figure cannot be created as specified.

【0014】円弧形状におけるNCデータに誤差が発生
する状況を説明したが、直線形状におけるNCデータに
誤差が発生する場合もある。例えば、図12に示すよう
な加工形状の場合、要素121の作図のための指定は角
度のみであるため、その終点座標、つまり要素122の
始点座標は、図12のY軸寸法の寸法値48.8675
1に示すように割り切れない数字となる。この形状を元
にNCデータを作成すれば、サブミクロン部分の指令が
四捨五入されるため、Y軸指令値は48.868とな
る。そして、このNCデータ指令を元に図形データに変
換すれば図13に示す形状となり、要素121の終点座
標、つまり要素122の始点座標と、角度30.000
00度にずれが発生する。
Although the description has been given of the situation where an error occurs in the NC data in the arc shape, an error may occur in the NC data in the linear shape. For example, in the case of the machining shape as shown in FIG. 12, since the designation for drawing the element 121 is only the angle, its end point coordinate, that is, the start point coordinate of the element 122 is the dimension value 48 of the Y-axis dimension in FIG. .8675
The result is an indivisible number as shown in FIG. If the NC data is created based on this shape, the command in the submicron portion is rounded off, so that the Y-axis command value is 48.868. When converted into graphic data based on the NC data command, the shape shown in FIG. 13 is obtained. The coordinates of the end point of element 121, that is, the coordinates of the start point of element 122, and the angle of 30.000 are obtained.
A shift occurs at 00 degrees.

【0015】この問題を解決するために、従来は、図7
のステップS2に示すように、一つの演算方法を決めて
その演算方法に基づいて図形データを作成する。演算方
法としては、例えば、円弧中心座標を優先する円弧中心
座標優先方法や円弧終了座標を優先する円弧終了座標優
先方法などがある。
In order to solve this problem, conventionally, FIG.
As shown in step S2, one calculation method is determined, and graphic data is created based on the calculation method. As the calculation method, for example, there is an arc center coordinate priority method in which the arc center coordinate is prioritized, and an arc end coordinate priority method in which the arc end coordinate is prioritized.

【0016】つぎに、円弧中心座標優先方法について説
明する。図14に、図9中の長穴要素5Bと長穴要素5
Cの交差点付近の拡大図を示す。長穴要素5Bは、中心
座標が84(45,40)で始点座標5A(60,4
0)を通過する円弧である。直線81は、中心座標84
とNCデータに指定された終点座標82(56.18,
50)とを結ぶ線である。長穴要素5Bの終点座標に上
述の理由で誤差が生じるため、長穴要素5Bは指定され
た終点座標82を通過しない。
Next, the arc center coordinate priority method will be described. FIG. 14 shows the long hole element 5B and the long hole element 5 in FIG.
The enlarged view near the intersection of C is shown. The long hole element 5B has a center coordinate of 84 (45, 40) and a starting point coordinate 5A (60, 4).
0). The straight line 81 has a center coordinate 84
And the end point coordinates 82 specified in the NC data (56.18,
50). Since an error occurs in the end point coordinates of the elongated hole element 5B for the above-described reason, the elongated hole element 5B does not pass through the specified end point coordinates 82.

【0017】そこで、中心座標84(45,40)を保
持し、長穴要素5Bと直線81との延長上の交点83
(56.18034,50.00017)を近似点とし
て求め、この点83を長穴要素5Bの終点および長穴要
素5Cの始点とする。なお、長穴要素5Bと長穴要素5
Cの交点83もが厳密には割り切れない座標値となる
が、図14の長穴要素5Bや長穴要素5Cのように、一
般にCADの作図機能を用いて交点を求めた位置に要素
を表示することは可能である。図14中の5B1は設計
上の長穴要素5Bで、5C1は設計上の長穴要素5Cで
ある。
Therefore, the center coordinate 84 (45, 40) is held, and the intersection 83 on the extension of the elongated hole element 5B and the straight line 81 is held.
(56.18034, 50.00017) is obtained as an approximate point, and this point 83 is set as the end point of the slot element 5B and the start point of the slot element 5C. The slot element 5B and the slot element 5
Although the intersection 83 of C also has a coordinate value that is not strictly divisible, elements such as the slot element 5B and the slot element 5C in FIG. 14 are generally displayed at the position where the intersection is obtained using the drawing function of CAD. It is possible to do. In FIG. 14, 5B1 is a designed slot element 5B, and 5C1 is a designed slot element 5C.

【0018】上記のように、長穴要素5Cの始点座標が
(56.18034,50.00017)となるため、
水平線である長穴要素5Cの終点座標は(33.820
00,50.00017)となり、図10のN15で始
まる行に指定されている座標(33.82,50)と異
なる。
As described above, since the starting point coordinates of the long hole element 5C are (56.18034, 50.00017),
The end point coordinates of the horizontal hole element 5C are (33.820
00, 50.00017), which is different from the coordinates (33.82, 50) specified in the line starting with N15 in FIG.

【0019】図15に、図9中の長穴要素5Dと長穴要
素5Eの交差点付近の拡大図を示す。長穴要素5Dは、
長穴要素5Cの終点座標(33.82000,50.0
0017)を始点とし、この座標(33.82000,
50.00017)からX方向に11.18ミリメート
ル,Y方向に−10ミリメートルにある座標(45.0
0000,40.00017)を中心とする円弧であ
る。ところが、指定された長穴要素5D1は、図10の
N16で始まる行の指令のように、長穴要素5C1の終
点座標(33.82,50)を始点とし、この終点座標
(33.82,50)からX方向に11.18ミリメー
トル,Y方向に−10ミリメートルにある座標(45,
40)を中心とする円弧であるため、実際の長穴要素5
Dは指定された終点位置92を通過しない。そこで、中
心座標(45,40)を保持し、その中心座標(45,
40)と長穴要素5D1の終点を結ぶ直線91上の点9
3(33.82000,30.00008)を近似点と
して求め、長穴要素5Dの終点および長穴要素5Eの始
点とする。なお、5E1は設計上の長穴要素5Eであ
る。
FIG. 15 is an enlarged view of the vicinity of the intersection of the long hole element 5D and the long hole element 5E in FIG. The long hole element 5D is
End point coordinates (33.82000, 50.0) of slot element 5C
0017) as a starting point, and the coordinates (33.82000,
50.00017) to 11.18 millimeters in the X direction and -10 millimeters in the Y direction (45.0).
0000, 40.00017). However, the designated slot element 5D1 starts at the end point coordinates (33.82, 50) of the slot element 5C1 and receives the end point coordinates (33.82, 50), coordinates (45,11) at 11.18 mm in the X direction and -10 mm in the Y direction.
40), the actual elongated hole element 5
D does not pass through the specified end point position 92. Therefore, the center coordinates (45, 40) are held, and the center coordinates (45, 40) are held.
Point 9 on the straight line 91 connecting the point 40) and the end point of the slot element 5D1
3 (33.82000, 30.00008) is determined as an approximate point, and is set as the end point of the slot element 5D and the start point of the slot element 5E. 5E1 is a long hole element 5E in design.

【0020】上記のように、長穴要素5Eの始点座標が
(33.82000,30.00008)となるため、
長穴要素5Eの終点座標が(56.18000,30.
00008)となり、この座標(56.18000,3
0.00008)を始点とする円弧形状の長穴要素5F
の終点(40.00000,59.99975)は、図
16に示すように、長穴要素5Bと始点5A(40,6
0)からずれてしまう。このように、円弧中心座標を優
先するという演算方法を用いた結果図17に示すような
加工形状となり、図9に示す元の加工形状とは異なって
しまう。一方、終点座標優先方法の場合は、図18に示
すように、長穴要素5Bの終点座標82(56.18,
50)を保持するが、長穴要素5Bの中心位置84が位
置85にずれてしまう。
As described above, since the starting point coordinates of the long hole element 5E are (33.82000, 30.00008),
The end point coordinates of the long hole element 5E are (56.18000, 30.
00008) and the coordinates (56.180000,3
0.00008) as the starting point of the arc-shaped elongated hole element 5F
As shown in FIG. 16, the end point (40.00000, 59.9999975) of the long hole element 5B and the start point 5A (40, 6
0). As described above, as a result of using the calculation method of giving priority to the arc center coordinates, a processed shape as shown in FIG. 17 is obtained, which is different from the original processed shape shown in FIG. On the other hand, in the case of the end point coordinate priority method, as shown in FIG. 18, the end point coordinates 82 (56.18, 56.18,
50), but the center position 84 of the elongated hole element 5B is shifted to the position 85.

【0021】上記ように、従来のCAD/CAM装置1
00では、予め設定された一つの演算方法に基づいて図
形データを求める。ところが、演算方法として円弧中心
座標優先方法を用いると、図17に示すように、図形が
元の図形と異なってしまう。一方、円弧終了座標優先方
法を用いると、図18に示すように、円弧の中心座標が
指定の中心座標からずれてしまう。
As described above, the conventional CAD / CAM device 1
At 00, figure data is obtained based on one preset calculation method. However, when the arc center coordinate priority method is used as the calculation method, the graphic is different from the original graphic as shown in FIG. On the other hand, if the arc end coordinate priority method is used, the center coordinates of the arc deviate from the designated center coordinates as shown in FIG.

【0022】[0022]

【発明が解決しようとする課題】上記従来のCAD/C
AM装置では、図形データを作成する際に予め設定され
た一つの演算方法に基づいて図形データを求めようにな
っているため、演算方法の変更は不可能であった。
The above conventional CAD / C
In the AM device, since graphic data is obtained based on one preset arithmetic method when creating graphic data, it is impossible to change the arithmetic method.

【0023】この発明は、上記問題に対してなされたも
のであり、演算方法を自由に設定または変更できるよう
にしたデータ変換方法と、そのデータ変換方法を好適に
実施することができるCAD/CAM装置と、そのデー
タ変換方法を実行させるためのプログラムを記録したコ
ンピュータ読み取り可能な記録媒体を得ることを目的と
している。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and a data conversion method in which an arithmetic method can be freely set or changed, and a CAD / CAM capable of suitably implementing the data conversion method. It is an object of the present invention to obtain a computer-readable recording medium on which an apparatus and a program for executing the data conversion method are recorded.

【0024】[0024]

【課題を解決しようとするための手段】上記目的を達成
するために、この発明に係るデータ変換方法は、設定さ
れた演算方法に基づいてNCデータを図形データに変換
するデータ変換方法において、複数の演算方法を用意
し、オペレータがそれらの演算方法の中から一つまたは
複数の演算方法を選択し、オペレータによって選択され
た演算方法をNCデータの変換に用いる演算方法として
設定するものである。
In order to achieve the above object, a data conversion method according to the present invention is a data conversion method for converting NC data into graphic data based on a set operation method. Is prepared, the operator selects one or a plurality of calculation methods from among these calculation methods, and sets the calculation method selected by the operator as a calculation method used for NC data conversion.

【0025】この発明によるデータ変換方法では、オペ
レータが複数の演算方法の中から一つまたは複数の演算
方法を選択するだけで演算方法を設定または変更するこ
とができるようになる。
In the data conversion method according to the present invention, the operator can set or change the operation method only by selecting one or more operation methods from the plurality of operation methods.

【0026】つぎの発明に係るデータ変換方法は、設定
された演算方法に基づいてNCデータを図形データに変
換するデータ変換方法において、複数の演算方法を用意
し、予め決めた判断基準に基づいて一つまたは複数の演
算方法をNCデータの変換に用いる演算方法として設定
するものである。
A data conversion method according to the next invention is a data conversion method for converting NC data into graphic data based on a set calculation method, wherein a plurality of calculation methods are prepared and based on a predetermined criterion. One or a plurality of calculation methods are set as calculation methods used for converting NC data.

【0027】この発明によるデータ変換方法では、予め
決められた判断基準に基づいて複数の演算方法の中から
一つまたは複数の演算方法を自動的に設定または変更す
ることができるようになる。
In the data conversion method according to the present invention, one or more calculation methods can be automatically set or changed from a plurality of calculation methods based on a predetermined criterion.

【0028】つぎの発明に係るデータ変換方法は、上述
のデータ変換方法において、前記演算方法とは、中心座
標位置優先方法、終点座標位置優先方法、水平垂直線座
標位置優先方法、半径寸法優先方法、角度寸法優先方法
である。
[0028] In the data conversion method according to the next invention, in the above data conversion method, the calculation method includes a center coordinate position priority method, an end point coordinate position priority method, a horizontal / vertical line coordinate position priority method, and a radial dimension priority method. This is an angle dimension priority method.

【0029】この発明によるデータ変換方法では、中心
座標位置優先方法、終点座標位置優先方法、水平垂直線
座標位置優先方法、半径寸法優先方法、角度寸法優先方
法の中から一つまたは複数の演算方法をNCデータの変
換に用いる演算方法として設定または変更することがで
きるようになる。
In the data conversion method according to the present invention, one or a plurality of arithmetic methods are selected from a center coordinate position priority method, an end point coordinate position priority method, a horizontal / vertical line coordinate position priority method, a radial dimension priority method, and an angle dimension priority method. Can be set or changed as an arithmetic method used for the conversion of NC data.

【0030】また、上記目的を達成するために、この発
明に係るCAD/CAM装置は、設定された演算方法に
基づいてNCデータを図形データに変換するCAD/C
AM装置において、複数の演算方法を用意し、それらの
演算方法の中から一つまたは複数の演算方法を選択する
演算方法選択手段を具備し、その演算方法選択手段によ
り選択された演算方法をNCデータの変換に用いる演算
方法として設定するものである。
In order to achieve the above object, a CAD / CAM apparatus according to the present invention converts a NC data into a graphic data based on a set operation method.
The AM device is provided with a plurality of operation methods, and is provided with operation method selection means for selecting one or a plurality of operation methods from among the operation methods, and the operation method selected by the operation method selection means is set to NC. This is set as an operation method used for data conversion.

【0031】この発明によるCAD/CAM装置では、
オペレータが複数の演算方法の中から一つまたは複数の
演算方法を選択するだけで演算方法を設定または変更す
ることができるようになる。
In the CAD / CAM device according to the present invention,
The operator can set or change the operation method only by selecting one or more operation methods from the plurality of operation methods.

【0032】つぎの発明に係るCAD/CAM装置は、
設定された演算方法に基づいてNCデータを図形データ
に変換するCAD/CAM装置において、複数の演算方
法を用意し、予め決めた判断基準に基づいて一つまたは
複数の演算方法をNCデータの変換に用いる演算方法と
して設定する演算方法設定手段を具備したものである。
The CAD / CAM device according to the next invention is:
In a CAD / CAM apparatus that converts NC data into graphic data based on a set calculation method, a plurality of calculation methods are prepared, and one or more calculation methods are converted into NC data based on a predetermined criterion. Is provided with an operation method setting means for setting as an operation method used for (1).

【0033】この発明によるCAD/CAM装置では、
予め決められた判断基準に基づいて複数の演算方法の中
から一つまたは複数の演算方法を自動的に設定または変
更することができるようになる。
In the CAD / CAM device according to the present invention,
One or more calculation methods can be automatically set or changed from a plurality of calculation methods based on a predetermined criterion.

【0034】また、上記目的を達成するために、この発
明に係る記録媒体は、上記データ変換方法をコンピュー
タで実行させるためのプログラムを記録する。
[0034] In order to achieve the above object, a recording medium according to the present invention stores a program for causing a computer to execute the data conversion method.

【0035】この発明の記録媒体では、この発明のデー
タ変換方法をコンピュータを用いて容易に実行すること
ができるようになる。
With the recording medium of the present invention, the data conversion method of the present invention can be easily executed using a computer.

【0036】[0036]

【発明の実施の形態】以下に、この発明に係る放電加工
装置の実施の形態を、図面を参照して詳細に説明する。
なお、以下に説明するこの発明の実施の形態において、
上述の従来例と同一構成の部分は、上述の従来例に付け
た符号と同一の符号を付けて、その説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of an electric discharge machine according to the present invention will be described below in detail with reference to the drawings.
In the embodiments of the present invention described below,
The same components as those of the above-described conventional example are denoted by the same reference numerals as those of the above-described conventional example, and description thereof is omitted.

【0037】実施の形態1.図1は、この発明の実施の
形態1のCAD/CAM装置を機能的に示すブロック図
である。このCAD/CAM装置10では、NCデータ
取得部1と、図形データ作成部2と、表示部3と、NC
データ作成部4と、演算方法記憶部5と、演算方法選択
部6とがバス7によって接続されている。
Embodiment 1 FIG. 1 is a block diagram functionally showing a CAD / CAM device according to Embodiment 1 of the present invention. In the CAD / CAM device 10, the NC data acquisition unit 1, the graphic data creation unit 2, the display unit 3,
The data creation unit 4, the operation method storage unit 5, and the operation method selection unit 6 are connected by a bus 7.

【0038】図2は、上記CAD/CAM装置10をハ
ードウェア的に示すブロック図である。このCAD/C
AM装置10は、入力された各種データをもとに製品の
形状を定義した図形データを作成し、切断方向や切断条
件を解析して切断情報などを生成するCPU21と、入
力された各種データや後述する演算方法を記憶するメモ
リ22と、定義済みの図形データや切断経路、切断条
件、入力要求メッセージなどを画面に表示するCRT2
3と、形状データや切断条件などの各種データを入力す
るキーボード24と、CRT23に表示される図形やメ
ニューや演算方法の選択を行うポインティングデバイス
としてのマウス25と、定義済みの図形データをフロッ
ピーディスクなどの記録媒体に記憶するための補助記憶
装置26と、切断情報や画面の表示内容などの印刷を行
うプリンタ27と、作成した図形データによる図形など
を用紙上に出力するプロッタ28とを有し、これらはバ
ス29によって接続されている。
FIG. 2 is a block diagram showing the CAD / CAM device 10 in terms of hardware. This CAD / C
The AM device 10 creates graphic data that defines the shape of the product based on the input various data, analyzes the cutting direction and cutting conditions, generates cutting information, and the like. A memory 22 for storing a calculation method to be described later, and a CRT 2 for displaying defined graphic data, a cutting path, cutting conditions, an input request message, and the like on a screen.
3, a keyboard 24 for inputting various data such as shape data and cutting conditions, a mouse 25 as a pointing device for selecting graphics, menus and calculation methods displayed on the CRT 23, and a floppy disk for defining graphics data. An auxiliary storage device 26 for storing in a recording medium such as a printer, a printer 27 for printing cutting information and display contents of a screen, and a plotter 28 for outputting a figure or the like based on the created figure data on a sheet. , Are connected by a bus 29.

【0039】なお,実施の形態1において、CPU21
が、図1に示すNCデータ取得部1と図形データ作成部
2としての役割を果たし、メモリ22が、図1に示す演
算方法記憶部5としての役割を果たし、CRT23が、
図1に示す表示部3としての役割を果たし、キーボード
24およびマウス25が、演算方法選択部6としての役
割を果している。
In the first embodiment, the CPU 21
Play a role as the NC data acquisition unit 1 and the graphic data creation unit 2 shown in FIG. 1, the memory 22 plays a role as the calculation method storage unit 5 shown in FIG. 1, and the CRT 23
The keyboard 24 and the mouse 25 play the role of the calculation method selection unit 6 as the display unit 3 shown in FIG.

【0040】演算方法記憶部5は、例えば中心座標位置
優先方法、終点座標位置優先方法、水平垂直線座標位置
優先方法、半径寸法優先方法、角度寸法優先方法などの
演算方法を記憶する。ここで、中心座標位置優先方法と
は、上述のように、円弧形状の中心座標位置を保持して
終点座標位置を求める演算方法である。また、終点座標
位置優先方法とは、円弧形状の終点座標位置を保持して
終点座標位置を求める演算方法である。
The calculation method storage unit 5 stores calculation methods such as a center coordinate position priority method, an end point coordinate position priority method, a horizontal and vertical line coordinate position priority method, a radius dimension priority method, and an angle dimension priority method. Here, as described above, the center coordinate position priority method is a calculation method for calculating the end point coordinate position while holding the center coordinate position of the arc shape. In addition, the end point coordinate position priority method is a calculation method for obtaining the end point coordinate position while holding the arc end point coordinate position.

【0041】水平垂直線座標位置優先方法とは、図14
に示すようなNCデータの指示において矛盾の生じてい
る部分で、長穴要素5Cのような水平線や、垂直線にお
いては、その座標位置で10ミクロン以下の桁数の値が
99で始まる場合は100ミクロン単位に切り上げ、0
0で始まる場合はそれ以下の値を切り捨てて、端数の生
じない数字にし、その座標位置で要素を作成するという
処理を自動で行う演算方法である。これは、例えば図1
7に示すように、長穴要素5CのY座標が50.000
17という値であるため、10ミクロン単位以下である
0017を切り捨てて50.0という端数のない値とし
て、図14において垂直座標位置が50.0の長穴要素
5Cと、長穴要素5Bとの延長上の交点を新たに求める
交点83とするというものである。
FIG. 14 shows the horizontal / vertical coordinate position priority method.
In the part where inconsistency occurs in the indication of NC data as shown in the above, if the value of the number of digits of 10 microns or less starts at 99 at the coordinate position of the horizontal line or vertical line like the long hole element 5C, Rounded up to the nearest 100 microns, 0
In the case of starting with 0, this is an arithmetic method for automatically performing a process of rounding down a value lower than that to a number having no fraction and creating an element at the coordinate position. This is, for example, FIG.
As shown in FIG. 7, the Y coordinate of the long hole element 5C is 50.000.
Since the value of 17 is not more than 10 microns, 0017 is rounded down to a fractional value of 50.0. In FIG. 14, the vertical coordinate position is 50.0 between the slot element 5C and the slot element 5B. The extended intersection point is set as an intersection point 83 to be newly obtained.

【0042】また、半径寸法優先方法とは、これはNC
データに示される円弧指令において、計算される円弧半
径の10ミクロン以下の桁数が99で始まる場合は10
0ミクロン単位に切り上げ、00で始まる場合はそれ以
下の値を切り捨てて、端数のない数字にし、その値で要
素を作成するという処理を自動で行う演算方法である。
これは、例えば図10のN14で始まる行の指令により
指示される円弧の半径は、計算上14.999747と
なるため、10ミクロン単位以下である997747を
100ミクロン単位に切り上げて15.0という端数の
ない値にするというものである。
Also, the radius dimension priority method is the NC method.
In the arc command shown in the data, if the number of digits of the calculated arc radius of 10 microns or less starts with 99, 10
This is a calculation method that automatically rounds up to the nearest 0 micron, and if it starts with 00, rounds down the value below it to a fractional number and creates an element with that value.
This is because, for example, the radius of the arc specified by the command in the line beginning with N14 in FIG. 10 is 14.999747 in calculation, so that 999747, which is 10 micron units or less, is rounded up to 100 micron units and a fraction of 15.0 It is a value without.

【0043】また、角度寸法優先方法とは、NCデータ
に示される垂直、もしくは水平以外の直線指令におい
て、直線角度寸法の小数点以下2桁目以下の数字が99
で始まる場合は少数点以下1桁目にて切り上げ、00で
始まる場合はそれ以下の値を切り捨てて、端数のない数
字にし、その値で要素を作成するという処理を自動で行
う演算方法である。これは、例えば図13の形状におけ
る要素121の角度が、NCデータの指令通りでは3
0.00042度になるため、小数点以下2桁目以下の
数字が0042となり切り捨てを行って30.0という
端数のない値にするというものである。
The angle dimension priority method means that, in a straight line command other than the vertical or horizontal direction indicated in the NC data, the number below the second decimal place of the linear angle size is 99.
If it starts with, it is rounded up to the first digit below the decimal point. If it starts with 00, it is a calculation method that automatically rounds down the value below it to a fractional number and creates an element with that value. . This is because, for example, the angle of the element 121 in the shape of FIG.
Since the value is 0.00042 degrees, the number below the second digit after the decimal point becomes 0042, and the value is rounded down to a value without a fraction of 30.0.

【0044】図3に、CAD/CAM装置10の動作の
フローチャートを示す。ステップS1では、NCデータ
取得部1は、テープリーダパンチャやフロッピーディス
クなどの記録媒体からNCデータを読み取る。なお、キ
ーボードなどの入力装置を用いてNCデータを入力する
ようにしてもよい。
FIG. 3 shows a flowchart of the operation of the CAD / CAM device 10. In step S1, the NC data acquisition unit 1 reads NC data from a recording medium such as a tape reader puncher or a floppy disk. The NC data may be input using an input device such as a keyboard.

【0045】ステップS21では、図形データ作成部2
は、予め設定された演算方法を用いる指示があったか否
かを判定する。ここで、例えば、中心座標位置優先方法
が演算方法として予め設定されている場合、オペレータ
は、予め設定された演算方法を用いるか否をキーボード
24やマウス25を用いて指示する。オペレータから、
予め設定された演算方法を用いない旨の指示があったな
らばステップS22に進み、予め設定された演算方法を
用いる旨の指示があったならばステップS23に進む。
In step S21, the graphic data creation unit 2
Determines whether there is an instruction to use a preset calculation method. Here, for example, when the center coordinate position priority method is set in advance as the calculation method, the operator uses the keyboard 24 and the mouse 25 to instruct whether to use the predetermined calculation method. From the operator,
If there is an instruction not to use the preset operation method, the process proceeds to step S22, and if there is an instruction to use the preset operation method, the process proceeds to step S23.

【0046】ステップS22では、オペレータはキーボ
ード24やマウス25を用いて演算方法記憶部5に記憶
されている終点座標位置優先方法、水平垂直線座標位置
優先方法、半径寸法優先方法、角度寸法優先方法の中か
ら一つまたは複数を選択し、演算方法選択部6はオペレ
ータが選択した演算方法をNCデータの変換に用いる演
算方法として設定する。ここで、オペレータは、例えば
図14に示すように長穴要素5Bと長穴要素5Cの交点
を求める場合は中心標位置優先方法、例えば図13の形
状の場合は角度寸法優先方法のように演算方法を選択す
る。これにより、加工形状に基づいて最適な演算方法を
設定することができる。
In step S22, the operator uses the keyboard 24 or the mouse 25 to prioritize the end point coordinate position, the horizontal / vertical coordinate position priority method, the radius dimension priority method, and the angle dimension priority method stored in the operation method storage unit 5. And one or more of them are selected, and the calculation method selection unit 6 sets the calculation method selected by the operator as the calculation method used for converting the NC data. Here, for example, as shown in FIG. 14, the operator calculates the intersection of the long hole element 5B and the long hole element 5C using the center mark position priority method, for example, in the case of the shape of FIG. Choose a method. Thereby, an optimal calculation method can be set based on the processing shape.

【0047】ステップS23では、図形データ作成部2
は、設定された演算方法に基づいて全てのNCデータを
図形データに変換して、ステップS3に進む。ステップ
S3では、表示部3は、図形データに基づく加工形状を
画像表示する。オペレータはこの加工形状を確認し、必
要であれば編集する。ステップS4では、NCデータ作
成部4は、確定された加工形状の図形データをNCデー
タに変換して出力する。
In step S23, the graphic data creation unit 2
Converts all NC data into graphic data based on the set calculation method, and proceeds to step S3. In step S3, the display unit 3 displays an image of the processed shape based on the graphic data. The operator confirms the processed shape and edits it if necessary. In step S4, the NC data creation unit 4 converts the figure data of the determined machining shape into NC data and outputs the NC data.

【0048】上記CAD/CAM装置10によれば、オ
ペレータが、演算方法記憶部5に記憶されている複数の
演算方法の中から一つまたは複数をNCデータの変換に
用いる演算方法として設定することができるため、指定
通りの図形を得ることが可能となり、装置の信頼性が向
上する。
According to the CAD / CAM device 10, the operator sets one or more of the plurality of calculation methods stored in the calculation method storage unit 5 as the calculation method used for converting the NC data. Therefore, it is possible to obtain a figure as specified, and the reliability of the apparatus is improved.

【0049】実施の形態2.図4は、この発明の実施の
形態2のCAD/CAM装置を機能的に示すブロック図
である。このCAD/CAM装置11では、NCデータ
取得部1と、図形データ作成部2と、表示部3と、NC
データ作成部4と、演算方法記憶部5とがバス7によっ
て接続されている。
Embodiment 2 FIG. 4 is a block diagram functionally showing a CAD / CAM device according to Embodiment 2 of the present invention. In the CAD / CAM device 11, the NC data acquisition unit 1, the graphic data creation unit 2, the display unit 3,
The data creation unit 4 and the calculation method storage unit 5 are connected by a bus 7.

【0050】なお、このCAD/CAM装置11のハー
ドウェアは、図2に示す実施の形態1のCAD/CAM
装置のハードウェアと同様であるためその説明は省略す
る。また、実施の形態2においては,CPU21が、図
4に示すNCデータ取得部1と、図形データ作成部2と
しての役割を果たし、メモリ22が、図4に示す演算方
法記憶部5としての役割を果たし、CRT23が、図4
に示す表示部3としての役割を果たし、メモリ22が、
図4に示す演算方法記憶部5としての役割を果たしてい
る。さらに、演算方法記憶部5には、上記実施の形態1
と同様に、中心座標位置優先方法、終点座標位置優方法
方法、水平垂直線座標位置優先方法、半径寸法優先方
法、角度寸法優先方法などの演算方法が記憶されてい
る。
The hardware of the CAD / CAM device 11 is the CAD / CAM of the first embodiment shown in FIG.
The description is omitted because it is the same as the hardware of the device. In the second embodiment, the CPU 21 plays the role of the NC data acquisition unit 1 and the graphic data creation unit 2 shown in FIG. 4, and the memory 22 plays the role of the calculation method storage unit 5 shown in FIG. And the CRT 23
Plays a role as the display unit 3 shown in FIG.
It functions as the operation method storage unit 5 shown in FIG. Further, the operation method storage unit 5 stores the data in the first embodiment.
Similarly to the above, calculation methods such as a center coordinate position priority method, an end point coordinate position priority method, a horizontal and vertical line coordinate position priority method, a radius dimension priority method, and an angle dimension priority method are stored.

【0051】図5に、CAD/CAM装置11の動作の
フローチャートを示す。ステップS1では、NCデータ
取得部1は、テープリーダパンチャやフロッピーディス
クなどの記録媒体からNCデータを読み取る。なお、キ
ーボードなどの入力装置を用いてNCデータを入力する
ようにしてもよい。
FIG. 5 shows a flowchart of the operation of the CAD / CAM device 11. In step S1, the NC data acquisition unit 1 reads NC data from a recording medium such as a tape reader puncher or a floppy disk. The NC data may be input using an input device such as a keyboard.

【0052】ステップS31では、図形データ作成部2
が、NCデータに基づいて最適な演算方法を設定する。
換言すれば、図形データ作成部2によって加工形状に基
づく最適な演算方法が自動設定される。例えば、図9中
の長穴形状Hの場合は、中心座標位置優先方法、長穴形
状H以外の部分の場合は、終点座標位置優先方法を演算
方法として設定する。これにより、加工形状に基づいて
最適な演算方法を設定することができる。
In step S31, the graphic data creation unit 2
Sets the optimal calculation method based on the NC data.
In other words, the graphic data creation unit 2 automatically sets the optimal calculation method based on the processing shape. For example, in the case of the elongated hole shape H in FIG. 9, the central coordinate position priority method is set as the calculation method, and in the case of a portion other than the elongated hole shape H, the end point coordinate position priority method is set as the calculation method. Thereby, an optimal calculation method can be set based on the processing shape.

【0053】ステップS32では、図形データ作成部2
は、設定された演算方法に基づいてNCデータを図形デ
ータに変換する。ステップS33では、図形データ作成
部2は、全てのNCデータの変換を終了したか否かを判
定する。全てのNCデータの変換を終了していないなら
ばステップS31に戻り、全てのNCデータの変換を終
了したならばステップS3に進む。
In step S32, the graphic data creation unit 2
Converts the NC data into graphic data based on the set calculation method. In step S33, the graphic data creation unit 2 determines whether the conversion of all NC data has been completed. If the conversion of all NC data has not been completed, the process returns to step S31. If the conversion of all NC data has been completed, the process proceeds to step S3.

【0054】ステップS3では、表示部3は、図形デー
タに基づく加工形状を画像表示する。オペレータはこの
加工形状を確認し、必要であれば編集する。ステップS
4では、NCデータ作成部4は、確定された加工形状の
図形データをNCデータに変換して出力する。
In step S3, the display unit 3 displays a processed shape based on the graphic data as an image. The operator confirms the processed shape and edits it if necessary. Step S
In step 4, the NC data creation unit 4 converts the figure data of the determined processed shape into NC data and outputs it.

【0055】上記CAD/CAM装置11によれば、加
工形状に基いて、演算方法記憶部5に記憶されている複
数の演算方法の中から一つまたは複数をNCデータの変
換に用いる演算方法として自動的に設定することができ
るため、オペレータの労力が低減されると共に、処理速
度が向上する。
According to the CAD / CAM device 11, one or more of the plurality of calculation methods stored in the calculation method storage unit 5 are used for converting NC data based on the processing shape. Since the setting can be performed automatically, the labor of the operator is reduced, and the processing speed is improved.

【0056】[0056]

【発明の効果】以上の説明から理解される如く、この発
明によるデータ変換方法によれば、オペレータが複数の
演算方法の中から一つまたは複数の演算方法を選択する
だけで演算方法を容易に設定または変更することができ
るため、指定通りの図形を得ることが可能となり、装置
の信頼性が向上する。
As will be understood from the above description, according to the data conversion method according to the present invention, the operator can easily select one or a plurality of operation methods from among the plurality of operation methods. Since it can be set or changed, it is possible to obtain a figure as specified, and the reliability of the device is improved.

【0057】つぎの発明によるデータ変換方法によれ
ば、オペレータの介入なしで、複数の演算方法の中から
一つまたは複数の演算方法を自動的に設定または変更す
ることができるため、処理速度が向上する。
According to the data conversion method of the next invention, one or a plurality of calculation methods can be automatically set or changed from a plurality of calculation methods without the intervention of an operator. improves.

【0058】つぎの発明によるデータ変換方法によれ
ば、中心座標位置優先方法、終点座標位置優先方法、水
平垂直線座標位置優先方法、半径寸法優先方法、角度寸
法優先方法の中から一つまたは複数の演算方法をNCデ
ータの変換に用いる演算方法として設定または変更でき
るため、あらゆる加工形状に対応することが可能とな
る。
According to the data conversion method of the next invention, one or more of the center coordinate position priority method, the end point coordinate position priority method, the horizontal / vertical line coordinate position priority method, the radius dimension priority method, and the angle dimension priority method are selected. Can be set or changed as an arithmetic method used for converting NC data, so that it is possible to cope with any machining shape.

【0059】つぎの発明によるCAD/CAM装置によ
れば、オペレータが複数の演算方法の中から一つまたは
複数の演算方法を選択するだけで演算方法を容易に設定
または変更することができるため、指定通りの図形を得
ることが可能となり、装置の信頼性が向上する。
According to the CAD / CAM device of the next invention, the operator can easily set or change the operation method only by selecting one or more operation methods from the plurality of operation methods. A figure as specified can be obtained, and the reliability of the apparatus is improved.

【0060】つぎの発明によるCAD/CAM装置によ
れば、オペレータの介入なしで、複数の演算方法の中か
ら一つまたは複数の演算方法を自動的に設定または変更
することができるため、処理速度が向上する。
According to the CAD / CAM apparatus according to the next invention, one or a plurality of calculation methods can be automatically set or changed from a plurality of calculation methods without operator intervention. Is improved.

【0061】つぎの発明によるCAD/CAM装置によ
れば、中心座標位置優先方法、終点座標位置優先方法、
水平垂直線座標位置優先方法、半径寸法優先方法、角度
寸法優先方法の中から一つまたは複数の演算方法をNC
データの変換に用いる演算方法として設定または変更で
きるため、あらゆる加工形状に対応することが可能とな
る。
According to the CAD / CAM device according to the next invention, a center coordinate position priority method, an end point coordinate position priority method,
One or more calculation methods are selected from the horizontal / vertical coordinate position priority method, radius dimension priority method, and angle dimension priority method.
Since it can be set or changed as an arithmetic method used for data conversion, it is possible to cope with any machining shape.

【0062】つぎの発明による記録媒体によれば、この
発明のデータ変換方法をコンピュータを用いて容易に実
行することができる。
According to the recording medium of the next invention, the data conversion method of the present invention can be easily executed using a computer.

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

【図1】 実施の形態1のCAD/CAM装置を機能的
に示すブロック図である。
FIG. 1 is a block diagram functionally showing a CAD / CAM device according to a first embodiment.

【図2】 図1のCAD/CAM装置をハードウェア的
に示すブロック図ある。
FIG. 2 is a block diagram showing the CAD / CAM device of FIG. 1 in hardware.

【図3】 図1のCAD/CAM装置の動作のフローチ
ャートである。
FIG. 3 is a flowchart of an operation of the CAD / CAM device of FIG. 1;

【図4】 実施の形態2のCAD/CAM装置を機能的
に示すブロック図である。
FIG. 4 is a block diagram functionally showing a CAD / CAM device according to a second embodiment.

【図5】 図4のCAD/CAM装置の動作のフローチ
ャートである。
FIG. 5 is a flowchart of an operation of the CAD / CAM device of FIG. 4;

【図6】 従来の一例のCAD/CAM装置を機能的に
示すブロック図ある。
FIG. 6 is a block diagram functionally showing a conventional example of a CAD / CAM device.

【図7】 従来におけるCAD/CAM装置の動作のフ
ローチャートである。
FIG. 7 is a flowchart of an operation of a conventional CAD / CAM device.

【図8】 加工形状の例示図である。FIG. 8 is an exemplary view of a processed shape.

【図9】 図8の加工形状の加工経路の例示図である。FIG. 9 is a view showing an example of a machining path of the machining shape of FIG. 8;

【図10】 図8の加工形状のNCデータの一例であ
る。
FIG. 10 is an example of NC data of the processed shape in FIG. 8;

【図11】 図8の加工形状のNCデータの別の例であ
る。
FIG. 11 is another example of the NC data of the machined shape in FIG. 8;

【図12】 別の加工形状の例示図である。FIG. 12 is an illustration of another processing shape.

【図13】 従来におけるCAD/CAM装置により作
成された図形データの例示図である。
FIG. 13 is a view showing an example of graphic data created by a conventional CAD / CAM device.

【図14】 図9の長穴要素5Bと長穴要素5Cの交差
点付近の拡大図である。
FIG. 14 is an enlarged view of the vicinity of the intersection of the long hole element 5B and the long hole element 5C in FIG. 9;

【図15】 図9の長穴要素5Dと長穴要素5Eの交差
点付近の拡大図である。
FIG. 15 is an enlarged view of the vicinity of the intersection of the long hole element 5D and the long hole element 5E in FIG. 9;

【図16】 図9の長穴要素5Fと長穴要素5Bの交差
点付近の拡大図である。
16 is an enlarged view of the vicinity of the intersection between the long hole element 5F and the long hole element 5B in FIG. 9;

【図17】 従来におけるCAD/CAM装置により作
成された図形データの例示図である。
FIG. 17 is an exemplary diagram of graphic data created by a conventional CAD / CAM device.

【図18】 終点座標位置優先方法に基づいて作成され
た図形データの例示図である。
FIG. 18 is a view showing an example of graphic data created based on an end point coordinate position priority method.

【符号の説明】[Explanation of symbols]

10 CAD/CAM装置,1 NCデータ取得部1,
2 図形データ作成部,3 表示部,4 NCデータ作
成部,5 演算方法記憶部,6 演算方法選択部,7
バス。
10 CAD / CAM device, 1 NC data acquisition unit 1,
2 graphic data creation unit, 3 display unit, 4 NC data creation unit, 5 operation method storage unit, 6 operation method selection unit, 7
bus.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 設定された演算方法に基づいてNCデー
タを図形データに変換するデータ変換方法において、 複数の演算方法を用意し、オペレータがそれらの演算方
法の中から一つまたは複数の演算方法を選択し、オペレ
ータによって選択された演算方法をNCデータの変換に
用いる演算方法として設定することを特徴とするデータ
変換方法。
In a data conversion method for converting NC data into graphic data based on a set calculation method, a plurality of calculation methods are prepared, and an operator selects one or a plurality of calculation methods from among these calculation methods. And selecting the calculation method selected by the operator as the calculation method used for converting the NC data.
【請求項2】 設定された演算方法に基づいてNCデー
タを図形データに変換するデータ変換方法において、 複数の演算方法を用意し、予め決めた判断基準に基づい
て一つまたは複数の演算方法をNCデータの変換に用い
る演算方法として設定することを特徴とするデータ変換
方法。
2. A data conversion method for converting NC data into graphic data based on a set calculation method, wherein a plurality of calculation methods are prepared, and one or more calculation methods are determined based on predetermined criteria. A data conversion method, which is set as an operation method used for converting NC data.
【請求項3】 前記演算方法とは、中心座標位置優先方
法、終点座標位置優先方法、水平垂直線座標位置優先方
法、半径寸法優先方法、角度寸法優先方法であることを
特徴とする請求項1または2に記載のデータ変換方法。
3. The method according to claim 1, wherein the calculation method includes a center coordinate position priority method, an end point coordinate position priority method, a horizontal and vertical line coordinate position priority method, a radial dimension priority method, and an angle dimension priority method. Or the data conversion method according to 2.
【請求項4】 設定された演算方法に基づいてNCデー
タを図形データに変換するCAD/CAM装置におい
て、 複数の演算方法を用意し、それらの演算方法の中から一
つまたは複数の演算方法を選択する演算方法選択手段を
具備し、その演算方法選択手段により選択された演算方
法をNCデータの変換に用いる演算方法として設定する
ことを特徴とするCAD/CAM装置。
4. A CAD / CAM device for converting NC data into graphic data based on a set calculation method, wherein a plurality of calculation methods are prepared, and one or more calculation methods are selected from the calculation methods. A CAD / CAM apparatus, comprising: an operation method selection means for selecting, and setting the operation method selected by the operation method selection means as an operation method used for converting NC data.
【請求項5】 設定された演算方法に基づいてNCデー
タを図形データに変換するCAD/CAM装置におい
て、 複数の演算方法を用意し、予め決めた判断基準に基づい
て一つまたは複数の演算方法をNCデータの変換に用い
る演算方法として設定する演算方法設定手段を具備した
ことを特徴とするCAD/CAM装置。
5. A CAD / CAM device for converting NC data into graphic data based on a set calculation method, wherein a plurality of calculation methods are prepared, and one or more calculation methods are determined based on predetermined criteria. And a calculation method setting means for setting a calculation method as a calculation method used for converting NC data.
【請求項6】 前記演算方法とは、中心座標位置優先方
法、終点座標位置優先方法、水平垂直線座標位置優先方
法、半径寸法優先方法、角度寸法優先方法であることを
特徴とする請求項4または5に記載のCAD/CAM装
置。
6. The method according to claim 4, wherein the calculation method is a center coordinate position priority method, an end point coordinate position priority method, a horizontal and vertical line coordinate position priority method, a radius dimension priority method, and an angle dimension priority method. Or a CAD / CAM device according to 5.
【請求項7】 請求項1から3に記載のデータ変換方法
をコンピュータで実行させるためのプログラムを記録し
たコンピュータ読み取り可能な記録媒体。
7. A computer-readable recording medium on which a program for causing a computer to execute the data conversion method according to claim 1 is recorded.
JP14733698A 1998-05-28 1998-05-28 Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded Pending JPH11338529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14733698A JPH11338529A (en) 1998-05-28 1998-05-28 Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14733698A JPH11338529A (en) 1998-05-28 1998-05-28 Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded

Publications (1)

Publication Number Publication Date
JPH11338529A true JPH11338529A (en) 1999-12-10

Family

ID=15427884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14733698A Pending JPH11338529A (en) 1998-05-28 1998-05-28 Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded

Country Status (1)

Country Link
JP (1) JPH11338529A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643560B2 (en) * 2000-03-31 2003-11-04 Incs Inc. Data generating device, data generating method and data generating program
US7392109B2 (en) 2000-07-31 2008-06-24 Kabushiki Kaisha Toyota Chuokenkyusho System for integrally generating NC data
JP7057593B1 (en) * 2020-12-03 2022-04-20 アルム株式会社 CNC device machining program generation program and CNC device machining program generation method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643560B2 (en) * 2000-03-31 2003-11-04 Incs Inc. Data generating device, data generating method and data generating program
US7392109B2 (en) 2000-07-31 2008-06-24 Kabushiki Kaisha Toyota Chuokenkyusho System for integrally generating NC data
JP7057593B1 (en) * 2020-12-03 2022-04-20 アルム株式会社 CNC device machining program generation program and CNC device machining program generation method

Similar Documents

Publication Publication Date Title
JP6479275B1 (en) Machining program correction device and machining program correction method
JPH11338529A (en) Data converting method and cad/cam device, and computer-readable recording medium where program for implementing its data converting method is recorded
JPH06274219A (en) Nc working data generating device in cad device
JP2570908B2 (en) CAD / CAM equipment
JP2661554B2 (en) Correction method of plate material processing figure data
JP2707992B2 (en) Outline processing data generation device and outline processing data generation method
JPH08263112A (en) Method for generating nc data
JPH04254854A (en) Method and device for producing clipping mask
JP2606563B2 (en) Word processing device and display method in word processing device
JP2856604B2 (en) Character processor
JPH0431815B2 (en)
JP3299044B2 (en) Graphic processing method and apparatus
JP3113023B2 (en) Arc length dimension creation method and device
JPS6061866A (en) Chamfering system of graphic processing system
JPH0589191A (en) Graphics processor
JP2002006916A (en) Method and apparatus for making nc data
JPH07296023A (en) Dimension plotting method in cad system
JPH05290130A (en) Method for adding hole machining information attribute of design drawing
JPH0512270A (en) Method and device for processing document
JPH04291397A (en) Character preparing device
JPH03201010A (en) Numerical controller
JPH0561959A (en) Graphic processor
JPH0589215A (en) Graphic generator
JPH07220045A (en) Picture output control method and device therefor
JPH0721223A (en) Data generation device

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20040408

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040413

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040831