JPH0454504A - Graphic definition system for automatic programming device - Google Patents
Graphic definition system for automatic programming deviceInfo
- Publication number
- JPH0454504A JPH0454504A JP16289690A JP16289690A JPH0454504A JP H0454504 A JPH0454504 A JP H0454504A JP 16289690 A JP16289690 A JP 16289690A JP 16289690 A JP16289690 A JP 16289690A JP H0454504 A JPH0454504 A JP H0454504A
- Authority
- JP
- Japan
- Prior art keywords
- data
- unit system
- programming device
- part program
- automatic programming
- 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
- 238000006243 chemical reaction Methods 0.000 claims abstract description 88
- 238000000034 method Methods 0.000 claims description 30
- 238000004364 calculation method Methods 0.000 abstract description 9
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000003754 machining Methods 0.000 description 17
- 238000013500 data storage Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 101100302210 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) RNR1 gene Proteins 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001771 impaired effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、自動プログラミング装置の図形定義方式に関
する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a graphic definition method for an automatic programming device.
従来の技術
パートプログラムを分析してNCデータを作成する自動
プログラミング装置に設定されたソフトウェアは自動プ
ログラミング装置に固有の処理単位系、例えば、長さの
単位(mm)等に基いて入力データを処理するようにな
っており、長さや角度等のように次元が異なるデータや
国際単位系S■やインチ等のように度量衡の異なるデー
タ、および、オーダーの異なるデータ、即ち、単位系の
異なるデータを自ら識別して処理することはできない。Conventional technology The software installed in the automatic programming device that analyzes the part program and creates NC data processes the input data based on the processing unit system specific to the automatic programming device, such as the unit of length (mm). It is now possible to handle data with different dimensions such as lengths and angles, data with different weights and measures such as the International System of Units S■ and inches, and data with different orders, that is, data with different unit systems. It cannot be identified and processed by itself.
しかし、実際上の問題として、製品設計等の段階におい
ては、長さや角度等のように次元が異なる単位系やオー
ダーの異なる単位系を混合して用いたほうが便利な場合
が多く、また、加工図面に記載される寸法も、必すしも
国際単位系Slに準じて記入されるわけではなく、いま
たに、インチ等の単位系が用いられる場合がある。However, as a practical matter, at the product design stage, it is often more convenient to use a mixture of unit systems with different dimensions, such as length and angle, or unit systems with different orders. Dimensions shown in the drawings are not necessarily written in accordance with the International System of Units Sl, and in some cases, a unit system such as inches is used.
従って、単位系を混合して作成された加工図面のデータ
を用い、そのまま加工用のパートプログラムを作成して
自動プログラミング装置でNCデータを作成すると、様
々なデータの単位系が混同して処理され、出力データに
整合性がなくなり、工作機械によって所望の形状および
寸法を加工することは不能となる。Therefore, if you create a part program for machining using machining drawing data created by mixing unit systems and create NC data with an automatic programming device, the unit systems of various data will be mixed up and processed. , the output data will be inconsistent and the machine tool will not be able to machine the desired shape and dimensions.
発明が解決すべき課題
この種の問題は、加工図面中の単位系の異なるデータを
自動プログラミング装置固有の処理単位系に変換してか
ら入力することで解決され得るが、これを手計算で行お
うとすると、単位系の変換に必要とされる演算処理が繁
雑かつ多数となるために計算ミスが生じ易く、また、単
位系変換のためのプログラムを作成してコンピュータで
変換処理を行わせるとしても、加工図面のデータを一つ
づつコンピュータに入力し、コンピュータの演算結果に
基いてオペレータがパートプログラムを作成してから、
再度、このパートプログラムを自動プログラミング装置
に手動入力しなければならないので、入力操作が二度手
間となり、生産性が損なわれるという欠点がある。Problems to be Solved by the Invention This type of problem can be solved by converting data in processing drawings with different unit systems into a processing unit system specific to an automatic programming device before inputting it, but this cannot be done manually. If you try to do this, calculation errors are likely to occur because the calculations required to convert the unit system are complex and numerous, and even if you create a program to convert the unit system and have the computer perform the conversion process. , the processing drawing data is input into the computer one by one, the operator creates the part program based on the computer calculation results, and then
Since this part program must be manually input into the automatic programming device again, the input operation becomes redundant and productivity is impaired.
そこで、本発明の目的は、これら従来技術の欠点を解消
し、単位系の異なるデータを用いた場合であっても、繁
雑な計算を多数行ったり面倒な入力操作を行うことなく
、簡単かつ適確にNCデータを作成することのできる自
動プログラミング装置の図形定義方式を提供することに
ある。Therefore, an object of the present invention is to solve these drawbacks of the prior art, and even when data with different unit systems are used, it is easy and convenient to use without having to perform many complicated calculations or troublesome input operations. An object of the present invention is to provide a graphic definition method for an automatic programming device that can accurately create NC data.
課題を解決するための手段
本発明の図形定義方式は、直交する複数軸に対して夫々
任意の単位系で定義されているデータによって構成され
たパートプログラムと、該パートプログラムで使用され
ている単位系を共通の単位系に変換する変換式とを自動
プログラミング装置に入力することにより、該自動プロ
グラミング装置により、パートプログラムの図形定義文
のデータの各軸成分を上記変換式によって自動的に上記
共通の単位系に変換し、該共通の単位系に変換されたデ
ータによって図形定義を行わせた後、運動定義文を実行
して該共通の単位系におけるNCデータを作成し、該N
Cデータの各軸成分を上記変換式に基いてパートプログ
ラム入力時の単位系に変換し、NCデータとして出力さ
せることにより、上記目的を達成した。Means for Solving the Problems The figure definition method of the present invention includes a part program composed of data defined in an arbitrary unit system for a plurality of orthogonal axes, and units used in the part program. By inputting a conversion formula for converting a system into a common unit system into an automatic programming device, the automatic programming device automatically converts each axis component of the data of the figure definition statement of the part program into the common unit system using the above conversion formula. After converting to the unit system of N
The above objective was achieved by converting each axis component of the C data into the unit system used when inputting the part program based on the above conversion formula and outputting it as NC data.
また、次元の異なる単位系の変換のように複雑な処理が
必要とされる単位系を取り扱う場合には、これら任意の
単位系を自動プログラミング装置の処理単位系に変換す
る変換式を該自動プログラミング装置の記憶手段に予め
設定記憶しておくと共に、各軸成分が任意の単位系によ
って構成されたパートプログラムと該パートプログラム
の各軸の単位系と単位系変換のためのパラメータとを自
動プログラミング装置に入力し、該自動プログラミング
装置により、入力された各軸の単位系とパラメータから
上記変換式によって各軸の変換係数を求めさせ、該変換
係数に基いてパートプログラムの図形定義文のデータを
処理単位系に変換し、図形定義を行った後、運動定義文
を実行して該処理単位系におけるNCデータを作成し、
該データの各軸成分に、対応する変換係数の逆変換係数
を乗じてパートプログラム入力時の単位系に変換し、N
Cデータとして出力するようにする。In addition, when dealing with unit systems that require complex processing, such as conversion of unit systems with different dimensions, it is also possible to use conversion formulas to convert these arbitrary unit systems into the processing unit system of the automatic programming device. An automatic programming device that stores settings in advance in a storage means of the device, and also stores a part program in which each axis component is composed of an arbitrary unit system, a unit system of each axis of the part program, and parameters for converting the unit system. The automatic programming device calculates the conversion coefficient for each axis using the above conversion formula from the input unit system and parameters of each axis, and processes the data of the figure definition statement of the part program based on the conversion coefficient. After converting to the unit system and defining the figure, execute the motion definition statement to create NC data in the processing unit system,
Each axis component of the data is multiplied by the inverse conversion coefficient of the corresponding conversion coefficient to convert it to the unit system used when inputting the part program, and N
Output it as C data.
作用
直交する複数軸に対して夫々任意の単位系で定義されて
いるデータによって構成されたパートプログラムと、該
パートプログラムで使用されている単位系を共通の単位
系に変換する変換式を自動プログラミング装置に入力す
ると、該自動プログラミング装置は、パートプログラム
の図形定義文のデータの各軸成分を上記変換式によって
上記共通の単位系に変換し、該共通の単位系に変換され
たデータによって図形定義を行った後、運動定義文を実
行して該共通の単位系におけるNCデータを作成し、該
NCデータの各軸成分を上記変換式に基いてパートプロ
グラム入力時の単位系に変換し、NCデータとして出力
する。Automatic programming of a part program composed of data defined in an arbitrary unit system for multiple orthogonal axes, and a conversion formula to convert the unit system used in the part program to a common unit system. When input to the device, the automatic programming device converts each axis component of the data of the figure definition statement of the part program into the above common unit system using the above conversion formula, and creates a figure definition using the data converted to the common unit system. After that, execute the motion definition statement to create NC data in the common unit system, convert each axis component of the NC data to the unit system at the time of inputting the part program based on the above conversion formula, and create NC data in the common unit system. Output as data.
また、任意の単位系を自動プログラミング装置の処理単
位系に変換する変換式を該自動プログラミング装置の記
憶手段に予め設定記憶しておくと共に、各軸成分が任意
の単位系によって構成されたパートプログラムと該パー
トプログラムの各軸の単位系と単位系変換のためのパラ
メータとを自動プログラミング装置に入力して稼働させ
ると、該自動プログラミング装置は、入力された各軸の
単位系とパラメータから上記変換式によって各軸の変換
係数を求め、該変換係数に基いてパートプログラムの図
形定義文のデータを処理単位系に変換し、図形定義を行
った後、運動定義文を実行して該処理単位系におけるN
Cデータを作成し、該データの各軸成分に、対応する変
換係数の逆変換係数を乗じてパートプログラム入力時の
単位系に変換し、NCデータとして出力する。In addition, a conversion formula for converting an arbitrary unit system to a processing unit system of the automatic programming device is set and stored in advance in the storage means of the automatic programming device, and a part program in which each axis component is composed of an arbitrary unit system. When the unit system of each axis of the part program and parameters for unit system conversion are input into the automatic programming device and operated, the automatic programming device performs the above conversion from the input unit system and parameters of each axis. Find the conversion coefficient for each axis using the formula, convert the data of the figure definition statement of the part program to the processing unit system based on the conversion coefficient, perform the figure definition, and then execute the motion definition statement to convert the data to the processing unit system. N in
C data is created, each axis component of the data is multiplied by the inverse conversion coefficient of the corresponding conversion coefficient, converted to the unit system used when inputting the part program, and output as NC data.
実施例 以下、図面を参照して本発明の詳細な説明する。Example Hereinafter, the present invention will be described in detail with reference to the drawings.
第1図は、本発明の方式を実施する一実施例の自動プロ
グラミング装置の要部を示すブロック図で、1はマイク
ロプロセッサ(以下、CPUという)、2は該自動プロ
グラミング装置を制御する制御プログラムが格納された
ROM、3は種々のフロッピーディスク9からロードさ
れたシステムプログラムやパートプログラムおよび各種
データを記憶するRAM、4は該自動プログラミング装
置によって作成されたNCデータを記憶するNCデータ
記憶メモリ、5はキーボード、6はディスクコントロー
ラ、7はグラフィックデイスプレィとしてのCRTで、
各要素1〜7はバス8でCPU1に接続されており、シ
ステムディスクとなるフロッピーディスク9には、該自
動プログラミング装置に任意の単位系で入力されたパー
トプログラムを翻訳してNCデータを作成するNCデー
タ作成処理のためのプログラムが保存されている。FIG. 1 is a block diagram showing the main parts of an automatic programming device according to an embodiment of the present invention, in which 1 is a microprocessor (hereinafter referred to as CPU), and 2 is a control program for controlling the automatic programming device. 3 is a RAM that stores system programs, part programs, and various data loaded from various floppy disks 9; 4 is an NC data storage memory that stores NC data created by the automatic programming device; 5 is a keyboard, 6 is a disk controller, 7 is a CRT as a graphic display,
Each element 1 to 7 is connected to the CPU 1 via a bus 8, and a floppy disk 9 serving as a system disk is used to create NC data by translating a part program input in an arbitrary unit system to the automatic programming device. A program for NC data creation processing is stored.
第2図は、オペレータによる手動処理を含めて本実施例
のNCデータ作成処理の概略を示すフローチャートであ
り、第3図は、直交2軸によって円筒の溝加工を示す加
工図面である。FIG. 2 is a flowchart showing an outline of the NC data creation process of this embodiment, including manual processing by an operator, and FIG. 3 is a processing drawing showing cylindrical groove machining using two orthogonal axes.
第3図では、直交2軸によって形成されるX−Y座標系
のX軸に円筒の回転角度を対応させ、Y軸に、チャック
を起点とする溝加工形状の軸方向距離軸を対応させてい
る。X軸の単位系(deg、)とY軸の単位系[mm)
とでは次元が異なるが、実施例ではパートプログラムの
作成に際して単位系の相違を考慮する必要はなく、パー
トプログラム中の溝加工形状を示す図形定義文は、単純
に、元の単位系のままの各軸成分x [deg、) 、
y [mm)の組によって構成される。例えば、点
P、から点P2に至る部分の溝加工形状は、角度と長さ
の組み(x、y)−(0,100)および(x、 y
)(80,100)で示される。In Fig. 3, the rotation angle of the cylinder corresponds to the X axis of the X-Y coordinate system formed by two orthogonal axes, and the axial distance axis of the groove machining shape starting from the chuck corresponds to the Y axis. There is. X-axis unit system (deg,) and Y-axis unit system [mm]
Although the dimensions are different, in the example, there is no need to consider the difference in unit system when creating a part program, and the figure definition statement indicating the groove machining shape in the part program is simply written using the original unit system. Each axis component x [deg,),
y [mm). For example, the groove machining shape of the part from point P to point P2 is the combination of angle and length (x, y) - (0, 100) and (x, y
)(80,100).
以下、NCデータ作成処理の概略を示すフローチャート
を参照して本実施例の図形定義方式を説明する。但し、
NCデータ作成処理のためのプログラム、および、第3
図に示されるような溝加工形状のためのパートプログラ
ム等は既にRAM3にダウンロードされており、このパ
ートプログラムに対してNCデータを作成するものとす
る。また、本実施例における自動プログラミング装置の
各軸の処理単位系は(mm)であり、溝加工を実施する
円筒の切込み半径はR,(mm)であるとする。The figure definition method of this embodiment will be described below with reference to a flowchart outlining the NC data creation process. however,
A program for NC data creation processing, and a third
It is assumed that a part program for the grooved shape as shown in the figure has already been downloaded to the RAM 3, and NC data will be created for this part program. Further, it is assumed that the processing unit system of each axis of the automatic programming device in this embodiment is (mm), and the cutting radius of the cylinder on which groove processing is performed is R, (mm).
オペレータは、まず、パートプログラム中の図形定義文
を構成する各軸成分x、 yの単位系を共通の単位系
に整合する変換式を求める。即ち、この場合には、各軸
の変換係数CxおよびCyを求める。第3図に示される
例では、共通の単位系ヲ[mm]とし、パートプログラ
ムにおける軸成分Xの単位系が(deg、)で、円筒の
切込み半径がR,(mm)であるから、R,(mm)の
半径を有し軸成分Xの回転角度x (dB、)に対応す
る扇形の円弧の道程り、 (mm)を示す式は、D、
(mm) =(2πRx (mm) /360
(deg、) ) ・x (deg、)となり、x (
deg、)を共通の単位系である[mm]に変換する変
換係数Cxの値は2πR,/360となる。また、パー
トプログラムにおける軸成分yの単位系は共通の単位系
と同じ(mm)であるから、変換係数Cyの値は1とな
る。そこで、オペレータはキーボード5を介してこれら
の変換係数cx、CYの値をRAM3に設定記憶する(
以上、ステップSL)。The operator first finds a conversion formula that matches the unit system of each axis component x, y that constitutes the figure definition statement in the part program to a common unit system. That is, in this case, the conversion coefficients Cx and Cy of each axis are determined. In the example shown in Fig. 3, the common unit system is [mm], the unit system of the axis component X in the part program is (deg,), and the cutting radius of the cylinder is R, (mm), so R , (mm) and corresponds to the rotation angle x (dB,) of the axis component X.
(mm) = (2πRx (mm) /360
(deg,) ) ・x (deg,), and x (
The value of the conversion coefficient Cx for converting deg, ) to [mm], which is a common unit system, is 2πR,/360. Furthermore, since the unit system of the axis component y in the part program is the same as the common unit system (mm), the value of the conversion coefficient Cy is 1. Therefore, the operator sets and stores the values of these conversion coefficients cx and CY in the RAM 3 via the keyboard 5 (
Above, step SL).
次いで、自動プログラミング装置を稼働してパートプロ
グラムの入力を開始すると(ステップS2) 、CPU
IはRAM3からパートプログラムのデータを1ブロッ
ク読込み、該1ブロツクのデータがプログラムエンドを
示すものであるか否かを判別しくステップS3)、プロ
グラムエンドでなければ、更に、図形定義文であるか否
かを判別する(ステップS4)。図形定義文であれば、
このブロックの図形定義文の各軸成分x、 yの値に
各軸の変換係数CxおよびCyを乗じて共通の単位系の
データx’ + y’ (mm:lに変換する図形
の再定義を実行して各軸成分X′、y′の値をRAM3
に記憶しくステップS5)、、このブロックに対する処
理を終了して次の1ブロツクを読込む。Next, when the automatic programming device is activated to start inputting the part program (step S2), the CPU
I reads one block of data of the part program from RAM 3, and determines whether the data in the one block indicates a program end (step S3); if it is not a program end, further determines whether it is a figure definition statement. It is determined whether or not (step S4). If it is a figure definition statement,
The values of each axis component x and y of the figure definition statement of this block are multiplied by the conversion coefficients Cx and Cy of each axis to redefine the figure to be converted to common unit system data x' + y' (mm:l). Execute and store the values of each axis component X', y' in RAM3.
At step S5), the processing for this block is completed and the next block is read.
また、ステップS4の判別結果が偽であれば、更に、運
動定義文であるか否かを判別する(ステップS6)。運
動定義文でなければ、このブロックがNCデータの作成
に直接関係しないその他の処理であることを意味するの
で、CPU1はこのブロックに対応する適宜の処理を実
行した後(ステップ510)、次の1ブロツクを読込む
。Furthermore, if the determination result in step S4 is false, it is further determined whether or not it is a motion definition sentence (step S6). If it is not a motion definition statement, it means that this block is another process that is not directly related to the creation of NC data, so the CPU 1 executes the appropriate process corresponding to this block (step 510), and then executes the next process. Read one block.
実施例の自動プログラミング装置においてはパートプロ
グラム作成の書式上、予め定義した図形に対して運動定
義文を設定するようになっているので、加工形状を定義
する図形定義文の前に、該加工形状の運動を定義する運
動定義文が存在するということはない。例えば、第3図
において、加工形状部分P7.2を図形定義文で定義し
たのち該加工形状部分P7.2の運動定義文を設定し、
次いで、加工形状部分PT23を図形定義文で定義して
該加工形状部分P72mの運動定義文を設定するといっ
た操作を繰り返してパートプログラムを作成したり、ま
”た、加工形状部分PT、□から加工形状部分PT67
を連続的に図形定義したのちこれらの加工形状部分に対
応する運動定義文を設定してパートプログラムを作成す
るといったことは可能であるが、加工形状部分PT、2
の運動定義文を設定してから該加工形状部分PT、2の
図形定義文を設定するということはない。In the automatic programming device of this embodiment, a motion definition statement is set for a predefined figure due to the format for creating a part program, so the machining shape is There is no motion definition statement that defines the motion of . For example, in FIG. 3, after defining the machining shape portion P7.2 with a figure definition statement, setting the motion definition statement of the machining shape portion P7.2,
Next, a part program is created by repeating operations such as defining the machining shape portion PT23 with a figure definition statement and setting a motion definition statement for the machining shape portion P72m, or machining from the machining shape portion PT, □. Shape part PT67
It is possible to create a part program by continuously defining the figures and then setting motion definition statements corresponding to these machining shape parts.
There is no need to set the motion definition statement for , and then set the figure definition statement for the machining shape portion PT,2.
従って、パートプログラムを1ブロツクづつ読込んで実
行される本NCデータ作成処理において、特定の加工形
状部分の図形定義文が検出される前に該特定部分の運動
定義文が検出されることはなく、ステップS6の処理で
運動定義文が検出された段階では、この運動定義文に対
応する図形定義文であってパートプログラム中X、yで
示される各軸成分X、yの値は上記ステップS5の処理
により、全て、共通の単位系である[mm)単位系のデ
ータX′、y′に変換され、RAM3に記憶されている
。Therefore, in this NC data creation process, which is executed by reading the part program one block at a time, the motion definition statement for a specific part is not detected before the figure definition statement for the specific machining shape part is detected. At the stage where a motion definition statement is detected in the process of step S6, the values of each axis component X, y, which is a figure definition statement corresponding to this motion definition statement and is indicated by Through processing, all of the data is converted into data X', y' in a common unit system (mm) and stored in the RAM 3.
そして、ステップS6の判別処理で運動定義文が検出さ
れると、CPU1は、この運動定義文に対応する図形定
義文の各軸成分X′、y′をRAM3から引用して運動
定義を実行し、共通の単位系(mm)を基準とするNC
データX′y′を作成したのち(ステップS7)、この
NCデータの各軸成分X、 y #に各軸の逆変換係
数Cx−1(=360/ 2 yrRx )およびCy
−’(=1)を乗じて、パートプログラム入力時におけ
る各軸の単位系に対応するNCデータX (deg、]
およびY (mm)に再変換しくステップS8)、これ
らの値を最終的なNCデータとしてNCデータ記憶メモ
リ4に記憶しくステップS9)、このブロックに対する
処理を終了して次の1ブロツクを読込む。Then, when a motion definition statement is detected in the determination process of step S6, the CPU 1 quotes each axis component X', y' of the figure definition statement corresponding to this motion definition statement from the RAM 3 and executes the motion definition. , NC based on a common unit system (mm)
After creating the data X'y' (step S7), the inverse transformation coefficient Cx-1 (=360/2 yrRx) and Cy
-' (=1) is multiplied by the NC data X (deg,] corresponding to the unit system of each axis when inputting the part program.
and Y (mm) (step S8), these values are stored in the NC data storage memory 4 as final NC data (step S9), the processing for this block is completed, and the next one block is read. .
CPUIは、以下同様にして、RAM3からパートプロ
グラムのデータを1ブロック毎読込み、このブロックが
図形定義文であればパートプログラムによって与えられ
たブロックの各軸成分X(deg−) * y [:
mm]の値に各軸の変換係数CxおよびCyを乗じて共
通の単位系のデータX′[mm) 、 y [mm
)に変換する図形の再定義を実行してRAM3に記憶し
くステップS5)、これらの図形定義文に対応する運動
定義文を検出すると、上記ステップS5の処理により共
通の単位系のデータに変換された各軸データx [m
m]。The CPU reads the data of the part program block by block from RAM3 in the same manner, and if this block is a figure definition statement, each axis component X (deg-) * y [:
Multiply the value of [mm] by the conversion coefficients Cx and Cy of each axis to obtain the data of the common unit system X' [mm), y [mm
) and store it in the RAM 3. When motion definition statements corresponding to these figure definition statements are detected (step S5), they are converted into data of a common unit system by the process of step S5 above. Each axis data x [m
m].
y [mm]に基いて運動定義を実行して該共通の単
位系におけるNCデータx [mm〕、 y’
(mm)を作成しくステップS7)、これらのNCデー
タXIY’に各軸の変換係数C,,CYの逆変換係数C
I ’+ CY ’を乗じてパートプログラム入
力時における各軸の処理単位系を基準とするNCデータ
X (deg、) 、 Y [mm)を算出して(ス
テップS8)、最終的なNCデータとして出力する。Execute motion definition based on y [mm] to obtain NC data x [mm], y' in the common unit system.
(mm) is created (step S7), and the conversion coefficients C for each axis, the inverse conversion coefficients C for CY are added to these NC data XIY'.
Multiply I '+ CY' to calculate NC data X (deg,), Y [mm) based on the processing unit system of each axis at the time of inputting the part program (step S8), and use it as the final NC data. Output.
そして、ステップS3の判別処理でプロゲララムエンド
が検出されると、CPU1は、当該パートプログラムに
関するNCデータの作成処理を全て完了して、コマンド
待ちの待機状態に入る。Then, when the progerarum end is detected in the determination process of step S3, the CPU 1 completes all the NC data creation process regarding the part program, and enters a standby state in which it waits for a command.
本実施例では、パートプログラムの図形定義文によって
与えられた各軸データx、 yに図形定義文の各軸の
単位系を共通の単位系に変換する変換係数Cx、Cyを
乗じ、パートプログラムの単位系で与えられた図形を共
通の単位系で再定義して共通の単位系の各軸データx′
、y′に整合してから(ステップS5)、処理単位系の
各軸データx、y′に基いて運動定義を実行して共通の
単位系のNCデータx 、 y #を算出しくステ
ップS7)、このNCデータに逆変換係数CxCY−1
を乗じてパートプログラム入力時の単位系に再変換して
から(ステップS8)、最終的なNCデータとして出力
するようにしているので(ステップS9) 、CPUI
はステップS7の運動定義処理で、共通の単位系を用い
て運動定義を実行することができ、しかも、最終的なN
CデータX。In this example, each axis data x, y given by the figure definition statement of the part program is multiplied by conversion coefficients Cx, Cy that convert the unit system of each axis of the figure definition statement to a common unit system, and Redefine the figure given in the unit system in a common unit system to obtain each axis data x' in the common unit system.
, y' (step S5), execute motion definition based on each axis data x, y' of the processing unit system to calculate NC data x, y # of the common unit system (step S7). , this NC data is given an inverse transformation coefficient CxCY-1
After multiplying by
In the motion definition processing in step S7, the motion definition can be executed using a common unit system, and the final N
C data X.
Yの単位系をパートプログラムの図形定義文によって与
えられた各軸データx、 yの単位系と同じ単位系で
出力することができる。The unit system for Y can be output in the same unit system as the unit system for each axis data x and y given by the figure definition statement of the part program.
本実施例によれば、パートプログラムの図形定義文で使
用されている各軸の単位系を共通の単位系に変換する各
軸の変換係数Cx、CYを算出してパートプログラムと
共に自動プログラミング装置に入力するだけで、異なる
単位系で定義されたパートプログラムに対して自動プロ
グラミング装置が自動的にNCデータを作成するので、
−パートプログラムの各データ毎にオペレータが面倒な
演算処理を行う必要がなく、計算ミスが軽減されて簡単
かつ適確にNCデータを作成することができ、また、パ
ートプログラムの図形定義文で使用されている各軸の単
位系を共通の単位系に変換するために別体のコンピュー
タを使用するときのように、コンユータおよび自動プロ
グラミング装置に図形定義文のデータを重複して入力す
る等といった煩わしさも解消される。According to this embodiment, the conversion coefficients Cx and CY of each axis used in the figure definition statement of the part program to convert the unit system of each axis to a common unit system are calculated and sent to the automatic programming device together with the part program. Just by inputting the information, the automatic programming device automatically creates NC data for part programs defined in different unit systems.
- There is no need for the operator to perform troublesome arithmetic processing for each piece of data in the part program, reducing calculation errors and creating NC data easily and accurately. Avoid the trouble of entering figure definition statement data twice into a computer or automatic programming device, such as when using a separate computer to convert the unit system of each axis to a common unit system. It will also be resolved.
パートプログラムの図形定義文で使用されている各軸の
単位系を共通の単位系に変換する各軸の変換係数Cx、
CYの値は、必ずしも、その都度オペレータによって算
出する必要はなく、様々な単位系に対応する変換式Cx
、、 CY、を自動プログラミング装置の記憶手段、
例えば、不揮発性の記憶手段であるフロッピーディスク
9等にNCデータ作成処理のためのプログラムと共に予
め設定記憶しておき、プログラムや変換式をRAM3に
ダウンロードしてパートプログラムの入力を開始する段
階で、このパートプログラムの図形定義文で使用されて
いる各軸の単位系をオペレータが自動プログラミング装
置に指定することにより、自動プログラミング装置によ
って自動的に変換式Cx。Conversion coefficient Cx for each axis that converts the unit system of each axis used in the figure definition statement of the part program to a common unit system,
The value of CY does not necessarily need to be calculated by an operator each time, but can be calculated using a conversion formula Cx corresponding to various unit systems.
,, CY, is the storage means of the automatic programming device;
For example, settings may be stored in advance on a floppy disk 9 or the like, which is a non-volatile storage means, along with a program for NC data creation processing, and at the stage of downloading the program and conversion formula to the RAM 3 and starting inputting the part program, When the operator specifies the unit system of each axis used in the figure definition statement of this part program to the automatic programming device, the automatic programming device automatically converts the conversion formula Cx.
Cyの値を選択させてステップS2以降の処理を実行さ
せることもできる。It is also possible to select the value of Cy and execute the processes from step S2 onwards.
変換式を変換係数CX、CYの値で自動プログラミング
装置の記憶手段に直接記憶させる場合には、変換係数C
χ、CYの値が固定値となるので、度量衡の異なるデー
タやオーダーの異なるデータ等を取り扱う場合、即ち、
共通の単位系がパートプログラムの単位系の実数倍で表
される場合に限定される。例えば、〔インチ〕から(m
m)への変換係数は25.4となる。When the conversion formula is directly stored in the storage means of the automatic programming device as the values of the conversion coefficients CX and CY, the conversion coefficient C
Since the values of χ and CY are fixed values, when handling data of different metrology or data of different order, etc., i.e.
This is limited to the case where the common unit system is expressed as a real number multiple of the unit system of the part program. For example, from [inch] to (m
The conversion coefficient to m) is 25.4.
また、次元の異なる単位系を共通の単位系に変換するよ
うな場合には単位系変換のためのパラメータが必要とさ
れるので、変換係数Cx、Cyを求めるための変換式を
自動プログラミング装置の記憶手段に設定記憶しておき
、単位系変換のためのパラメータは、パートプログを入
力する段階で、このパートプログラムの図形定義文で使
用されている各軸の単位系と共にオペレータが自動プロ
グラミング装置に入力する必要がある。パートプログラ
ムの図形定義文で使用されている各軸の単位系(以下、
入力単位系という)Xu 、Yuの内いずれか一方が回
転角度の単位系IJeg、)で定義されている場合を例
にとって、入力単位系XU、Y0とこれに対応する各軸
の変換式Cx’、Cv との関係を表1に示す。但し、
共通の単位系、即ち、自動ブロクラミング装置の処理単
位系は(mm)とし、他の一方の入力単位系は(mm〕
で入力されるものとする。In addition, when converting unit systems with different dimensions to a common unit system, parameters for unit system conversion are required, so the conversion formula for determining the conversion coefficients Cx and Cy can be created using an automatic programming device. The parameters for unit system conversion are set and memorized in the storage means, and the operator inputs them to the automatic programming device along with the unit system of each axis used in the figure definition statement of this part program at the stage of inputting the part program. Must be entered. The unit system of each axis (hereinafter referred to as
Taking as an example the case where either one of Xu or Yu (referred to as the input unit system) is defined in the rotation angle unit system IJeg, ), the input unit system XU, Y0 and the corresponding conversion formula for each axis Cx' , Cv is shown in Table 1. however,
The common unit system, that is, the processing unit system of the automatic block ramming device is (mm), and the other input unit system is (mm).
shall be entered as .
表1.入力単位系と変換式との関係
オペレータは、NCデータ作成処理のステップ81に対
応する処理で、各軸の入力単位系XU。Table 1. The relation operator between the input unit system and the conversion formula is the input unit system XU of each axis in the process corresponding to step 81 of the NC data creation process.
YUlおよび、変換係数Cx、CYを求めるためのパラ
メータをパートプログラムと共に自動プログラミング装
置に入力する。この例では、直交2軸によって形成され
るX−Y座標系のX軸またはY軸に円筒の回転角度(d
eg、)を対応させた溝加工形状のためのパートプログ
ラムについて示しており、X軸に回転角度[deg、]
を対応させた場合には溝加工を実施する円筒の切込み半
径R,(mm)を変換係数Cxを求めるためのパラメー
タとして入力し、また、Y軸に回転角度(deg、)を
対応させた場合には、溝加工を実施する円筒の切込み半
径RV〔ff1m〕を変換係数C9を求めるためのパラ
メータとして入力することとなる。入力単位系XU、Y
ゎ、および、変換係数を求めるためのパラメータをキー
人力されたCPUIは、ステップS1に対応する処理で
、これらのデータに基いて各軸の変換係数CxおよびC
Yを算出する。即ち、オペレータによって指定されたパ
ートプログラムの入力単位系XUおよびY、がともに(
mm)であれば各軸の変換係数CX、CYに表1に示さ
れるような変換式Cx’、、Cy’の値をそのまま引用
して、変換係数Cx、Cyの値を1に設定し、また、指
定された入力単位系XuもしくはYUが(deg、)で
あれば、これに対応する切込み半径Rx[mm]もしく
はRv Crnm〕の値を入力するメツセージをCR
T7の表示画面上に表示し、RXもしくはRyの値をオ
ペレータに入力させ、このパラメータ値と表1に示され
るような変換式Cxもしくは変換式CYに基いて変換係
数式CxやC7の値を算出し、以下、上記の実施例と同
様、ステップS2移行の処理を実行する。例えば、入力
単位系Xuが[deg、)単位で、かつ、入力単位系Y
uが(n+m)単位でキー指定された場合であれば、C
PUIは、CRT7の表示画面上に切込み半径Rx
(n+m)をパラメータとして入力するメツセージを表
示し、該パラメータRxの値と表1に示されるような2
πR,/360の変換式Cxに基いて変換係数Cx(定
数)を算出し、変換式CY、の値1を変換係数07とし
てそのまま設定するので、上述した実施例と同一の結果
を得ることになる。YUl and parameters for determining the conversion coefficients Cx and CY are input into the automatic programming device together with the part program. In this example, the rotation angle (d
This shows a part program for a groove machining shape that corresponds to the rotation angle [deg,] on the X axis.
In the case where the cutting radius R, (mm) of the cylinder to be grooved is made to correspond, input as a parameter to find the conversion coefficient Cx, and in the case where the rotation angle (deg,) is made to correspond to the Y axis. In this step, the cutting radius RV [ff1m] of the cylinder to be grooved is input as a parameter for determining the conversion coefficient C9. Input unit system XU, Y
ゎ, and the parameters for calculating the conversion coefficients are entered manually on the CPU, which calculates the conversion coefficients Cx and C of each axis based on these data in the process corresponding to step S1.
Calculate Y. That is, both the input unit systems XU and Y of the part program specified by the operator are (
mm), the values of the conversion formulas Cx', Cy' as shown in Table 1 are quoted as they are for the conversion coefficients CX and CY of each axis, and the values of the conversion coefficients Cx and Cy are set to 1. Also, if the specified input unit system Xu or YU is (deg,), CR sends a message to input the value of the corresponding cutting radius Rx [mm] or Rv Crnm].
Display it on the display screen of T7, have the operator input the value of RX or Ry, and based on this parameter value and the conversion formula Cx or conversion formula CY shown in Table 1, calculate the value of the conversion coefficient formula Cx or C7. Then, similarly to the above embodiment, the process of moving to step S2 is executed. For example, if the input unit system Xu is [deg,), and the input unit system Y
If u is specified as a key in units of (n+m), C
The PUI displays the cutting radius Rx on the display screen of the CRT7.
A message to input (n+m) as a parameter is displayed, and the value of the parameter Rx and 2 as shown in Table 1 are displayed.
Since the conversion coefficient Cx (constant) is calculated based on the conversion formula Cx of πR, /360, and the value 1 of the conversion formula CY is set as the conversion coefficient 07, the same result as in the example described above can be obtained. Become.
本実施例によれば、パートプログラムの図形定義文で使
用されている各軸の入力単位系XU。According to this embodiment, the input unit system XU for each axis is used in the figure definition statement of the part program.
YUと各軸の単位変換に必要とされるパラメータRxも
しくはRYを入力するだけで、予め記憶された変換式C
x’、Cvに基いて自動プログラミング装置が自動的に
各軸の変換係数Cx、Cvを算出してNCデータを作成
するので、オペレータ自らが変換係数の値を演算する必
要はなく、計算ミスが確実に排除されるので、上記の実
施例に比べ、より簡単かつ確実にNCデータを作成する
ことができる。Just input YU and the parameters Rx or RY required for unit conversion of each axis, and the pre-stored conversion formula C
Since the automatic programming device automatically calculates the conversion coefficients Cx and Cv of each axis based on x' and Cv and creates NC data, there is no need for the operator to calculate the conversion coefficient values himself, and calculation errors are avoided. Since this is reliably eliminated, NC data can be created more easily and reliably than in the above embodiment.
発明の効果
本発明の図形定義方式によれば、パートプログラムで使
用されている単位系を共通の単位系に変換する変換式を
求めてパートプログラムと共に自動プログラミング装置
に入力するだけで、パートプログラムの図形定義文で定
義されたデータを自動プログラミング装置が自動的に共
通の単位系のデータに変換して図形定義を行い、このデ
ータに基いて運動定義文を実行して共通の単位系のNC
データを作成し、共通の単位系のNCデータの各軸成分
に対し、上記変換式に基きパートプログラム入力時の単
位系に変換してNCデータとして出力するので、パート
プログラムの各データ毎にオペレータが面倒な演算処理
を行って単位系の変換操作を行う必要がなく、計算ミス
が軽減されて簡単かつ適確にNCデータを作成すること
ができる。Effects of the Invention According to the figure definition method of the present invention, a part program can be created by simply finding a conversion formula for converting the unit system used in a part program into a common unit system and inputting it into an automatic programming device along with the part program. The automatic programming device automatically converts the data defined by the figure definition statement into data in a common unit system to define the figure, executes the motion definition statement based on this data, and executes the NC data in the common unit system.
The data is created, and each axis component of the NC data in the common unit system is converted to the unit system used when inputting the part program based on the above conversion formula and output as NC data. There is no need to perform troublesome arithmetic processing to convert unit systems, reducing calculation errors and creating NC data easily and accurately.
更ニ、パートプログラムで使用されている単位系を自動
プログラミング装置の処理単位系に変換する変換係数も
しくは変換式を自動プログラミング装置の記憶手段に予
め設定記憶しておき、パートプログラムの各軸の単位系
や変換処理に必要とされるパラメータを自動プログラミ
ング装置に入゛力することにより、自動的に変換係数を
算出させて変換および逆変換の処理を実行させるように
すれば、オペレータ自らが変換係数の値を演算する必要
はなく、計算ミスが確実に排除されるので、より簡単か
つ確実にNCデータを作成することができる。Further, the conversion coefficient or conversion formula for converting the unit system used in the part program to the processing unit system of the automatic programming device is set and stored in advance in the storage means of the automatic programming device, and the units of each axis of the part program are set and stored in advance. By inputting the parameters required for the system and conversion process into an automatic programming device, the conversion coefficients can be automatically calculated and the conversion and inverse conversion processes can be executed. Since there is no need to calculate the value of , calculation errors are reliably eliminated, NC data can be created more easily and reliably.
第1図は本発明の方式を実施する一実施例の自動プログ
ラミング装置の要部を示すブロック図、第2図はオペレ
ータによる手動処理を含めて同実施例のNCデータ作成
処理の概略を示すフローチャート、第3図は直交2軸に
よって示される円筒の溝加工の一例を示す加工図面であ
る。
1・・・マイクロプロセッサ(CPU) 、2・・・R
OM、3・・・RAM、4・・・NCデータ記憶メモリ
、5・・・キーボード、6・・・ディスクコントローラ
、7・・・CRT表示装置、8・・・バス、9・・・フ
ロッピーディスク。
第1図FIG. 1 is a block diagram showing the main parts of an automatic programming device according to an embodiment that implements the method of the present invention, and FIG. 2 is a flowchart showing an outline of the NC data creation process of the same embodiment, including manual processing by an operator. , FIG. 3 is a processing drawing showing an example of cylindrical groove processing indicated by two orthogonal axes. 1...Microprocessor (CPU), 2...R
OM, 3...RAM, 4...NC data storage memory, 5...keyboard, 6...disk controller, 7...CRT display device, 8...bus, 9...floppy disk . Figure 1
Claims (2)
プログラミング装置において、直交する複数軸に対して
夫々任意の単位系で定義されているデータによって構成
されたパートプログラムと該パートプログラムで使用さ
れている単位系を共通の単位系に変換する変換式とを該
自動プログラミング装置に入力し、該自動プログラミン
グ装置を稼働させると、該自動プログラミング装置は、
上記入力変換式よりパートプログラムの図形定義文のデ
ータの各軸成分を上記共通の単位系に変換し、該共通の
単位系に変換されたデータによって図形定義を行った後
、運動定義文を実行して該共通の単位系におけるNCデ
ータを作成し、該NCデータの各軸成分を上記変換式に
基いてパートプログラム入力時の単位系に変換し、NC
データとして出力することを特徴とした自動プログラミ
ング装置の図形定義方式。(1) In an automatic programming device that creates NC data from a part program, a part program is composed of data defined in an arbitrary unit system for multiple orthogonal axes, and the units used in the part program. When inputting a conversion formula for converting a system into a common unit system into the automatic programming device and operating the automatic programming device, the automatic programming device will:
Each axis component of the data in the figure definition statement of the part program is converted to the above common unit system using the above input conversion formula, the figure is defined using the data converted to the common unit system, and then the motion definition statement is executed. Create NC data in the common unit system, convert each axis component of the NC data to the unit system at the time of inputting the part program based on the above conversion formula, and create NC data in the common unit system.
A figure definition method for an automatic programming device characterized by output as data.
プログラミング装置において、任意の単位系を該自動プ
ログラミング装置の処理単位系に変換する変換式を該自
動プログラミング装置の記憶手段に予め設定記憶してお
くと共に、各軸成分が任意の単位系によって構成された
パートプログラムと該パートプログラムの各軸の単位系
と単位系変換のためのパラメータとを上記自動プログラ
ミング装置に入力し、該自動プログラミング装置を稼働
させると、該自動プログラミング装置は、入力された各
軸の単位系とパラメータにより上記変換式によって各軸
の変換係数を求め、該変換係数に基いてパートプログラ
ムの図形定義文のデータを該自動プログラミング装置の
処理単位系に変換し、図形定義を行った後、運動定義文
を実行して該処理単位系におけるNCデータを作成し、
該データの各軸成分に、対応する変換係数の逆変換係数
を乗じてパートプログラム入力時の単位系に変換し、N
Cデータとして出力することを特徴とした自動プログラ
ミング装置の図形定義方式。(2) In an automatic programming device that creates NC data from a part program, a conversion formula for converting an arbitrary unit system to the processing unit system of the automatic programming device is set and stored in advance in the storage means of the automatic programming device. , input a part program in which each axis component is composed of an arbitrary unit system, the unit system of each axis of the part program, and parameters for unit system conversion into the automatic programming device, and operate the automatic programming device. Then, the automatic programming device calculates the conversion coefficient for each axis using the above conversion formula based on the input unit system and parameters of each axis, and converts the data of the figure definition statement of the part program to the automatic programming device based on the conversion coefficient. After converting to the processing unit system and defining the figure, execute the motion definition statement to create NC data in the processing unit system,
Each axis component of the data is multiplied by the inverse conversion coefficient of the corresponding conversion coefficient to convert it to the unit system used when inputting the part program, and N
A figure definition method for an automatic programming device characterized by outputting as C data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16289690A JPH0454504A (en) | 1990-06-22 | 1990-06-22 | Graphic definition system for automatic programming device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16289690A JPH0454504A (en) | 1990-06-22 | 1990-06-22 | Graphic definition system for automatic programming device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0454504A true JPH0454504A (en) | 1992-02-21 |
Family
ID=15763301
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16289690A Pending JPH0454504A (en) | 1990-06-22 | 1990-06-22 | Graphic definition system for automatic programming device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0454504A (en) |
-
1990
- 1990-06-22 JP JP16289690A patent/JPH0454504A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2857540B2 (en) | CAD / CAM method and apparatus for automatically re-creating a cutter path | |
| JP2584104B2 (en) | Wheel shape definition device | |
| JPH0454504A (en) | Graphic definition system for automatic programming device | |
| JPH06202721A (en) | Numerical control information generating device | |
| EP0419672A1 (en) | Method of plotting tool shape | |
| JP2875135B2 (en) | Program device for programmable controller | |
| JP3925506B2 (en) | CAD / CAM equipment | |
| US5093796A (en) | Automatic programming definition of a machining configuration for a numerical control device | |
| JPH039808B2 (en) | ||
| JPH0659720A (en) | Deburring robot program generating method | |
| JP3201822B2 (en) | Numerical control unit | |
| JP3000986B2 (en) | Machining program creating device and machining program creating method | |
| JP3172846B2 (en) | Shape processing equipment | |
| US5739656A (en) | Numerical controlling method with mirror image function | |
| JPH05233050A (en) | Parameter input system for cnc | |
| JPH03156506A (en) | Nc program generating method for interactive numerical controller or automatic programming device | |
| JPH03175504A (en) | Cad/cam device | |
| JPH0212309A (en) | Cad/cam device | |
| JPS6083106A (en) | Producer of processing program | |
| JP2636014B2 (en) | Figure connection control method | |
| JPH03189708A (en) | Working shape copying method in cad/cam system for metalling mold | |
| JPH04148306A (en) | C axis working program preparing system | |
| JPH0721223A (en) | Data creation device | |
| JPS61194504A (en) | Automatic programming device | |
| JPH10138133A (en) | Multiple groove grinding method by nc grinding machine, and nc grinding machine |