JPH0340108A - Nc data editing system - Google Patents
Nc data editing systemInfo
- Publication number
- JPH0340108A JPH0340108A JP17408989A JP17408989A JPH0340108A JP H0340108 A JPH0340108 A JP H0340108A JP 17408989 A JP17408989 A JP 17408989A JP 17408989 A JP17408989 A JP 17408989A JP H0340108 A JPH0340108 A JP H0340108A
- Authority
- JP
- Japan
- Prior art keywords
- data
- conversion
- command
- original data
- block
- 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
- 239000011159 matrix material Substances 0.000 claims abstract description 179
- 238000006243 chemical reaction Methods 0.000 claims abstract description 169
- 238000000034 method Methods 0.000 claims abstract description 85
- 230000008569 process Effects 0.000 claims abstract description 73
- 230000009466 transformation Effects 0.000 claims description 222
- 230000001131 transforming effect Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 8
- 230000009471 action Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 238000013500 data storage Methods 0.000 description 4
- 238000000844 transformation Methods 0.000 description 4
- 238000013501 data transformation Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000003754 machining Methods 0.000 description 2
- 101150065817 ROM2 gene Proteins 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、NCデータ編集方式、特に、元デタとなるN
Cデータに対し各種の変換処理を施してNCデータを自
動編集すると共に、必要に応じ、編集されたNCデータ
から、再度、元データを作成するNCデータ編集方式に
関する。[Detailed Description of the Invention] Industrial Application Field The present invention relates to an NC data editing method, particularly to an NC data editing method, which is the original data.
The present invention relates to an NC data editing method that automatically edits NC data by performing various conversion processes on C data and, if necessary, creates original data again from the edited NC data.
従来の技術
一般に、予め作成されたNCデータ、即ち、元データに
対して各種の編集を行う場合、例えば、デジタイザを使
用して作成された元データの位置ずれや加工形状の配列
を修正するために位置変換補正して加工用のNCデータ
を編集したり、元データにミラー変換を施して新たなN
Cデータを編集するような場合には、これらの元データ
および元データの位置ずれ量やミラーの設定位置等に応
じ、元データ中に定義された点の移動先を手計算で算出
し、算出された移動先の値をNCデータとして再設定す
ることによって編集作業を行っている。2. Description of the Related Art In general, when various types of editing are performed on previously created NC data, that is, original data, for example, to correct the positional deviation of the original data created using a digitizer or the arrangement of processed shapes. Edit the NC data for processing by correcting the position conversion, or perform mirror conversion on the original data to create a new N.
When editing C data, manually calculate the destination of the points defined in the original data according to the original data, the amount of positional deviation of the original data, the set position of the mirror, etc. The editing work is performed by resetting the destination value as NC data.
このような方式ではNCデータを編集する際に複雑な手
計算が必要とされるため、NCデータの編集作業に多大
な時間を要し、また、手計算の段階で誤りが生じやすく
、編集されたNCデータの信頼性が低いといった欠点が
ある。This type of method requires complicated manual calculations when editing NC data, which takes a lot of time, and also makes it easy for errors to occur during the manual calculation stage. The disadvantage is that the reliability of the NC data is low.
そこで本出願人は、これら従来技術の欠点を解消するた
め、NCデータ編集時に実行すべき変換処理を規定する
位置変換指令を元データ中に予めプログラムしておき、
自動プログラミング装置により位置変換行列を求め、位
置変換行列が定義された後は、元データで定義された点
を変換解除指令が読まれるまで上記位置変換行列で位置
変換して自動的にNCデータを編集するNCデータ編集
方式を特許出願で既に提案している。Therefore, in order to eliminate these drawbacks of the conventional technology, the present applicant has programmed in advance a position conversion command in the original data that defines the conversion process to be executed when editing NC data.
After the position transformation matrix is determined by an automatic programming device and the position transformation matrix is defined, the positions of the points defined in the original data are transformed using the above position transformation matrix until the transformation cancellation command is read, and the NC data is automatically converted. The NC data editing method has already been proposed in a patent application.
発明が解決しようとする課題
このNCデータ編集方式によれば迅速かつ正確にNCデ
ータを編集することができるが、自動プログラミング装
置の記憶容量には限界があるため、編集前の元データと
位置変換された編集データとをすべて保存しておくこと
は従来と同様実質的に不可能であり、また、元データと
編集データのプログラム番号が重複する等といった問題
もあり、編集作業終了後には位置変換された編集データ
のみを保存し、元データの記憶は消去せざるを得ない場
合がある。Problems to be Solved by the Invention This NC data editing method allows NC data to be edited quickly and accurately, but since the storage capacity of the automatic programming device is limited, it is difficult to convert the original data before editing and the position. As in the past, it is virtually impossible to save all edited data, and there are also problems such as the program numbers of the original data and edited data duplicating, so it is necessary to change the position after editing is completed. There are cases where it is necessary to save only the edited data and erase the memory of the original data.
一方、実際の設計作業では元データによって定義される
図形、例えば、元データ中に定義された点によって示さ
れる加工経路等を、該元データを基準として更に別の位
置に位置変換したい場合があるが、元データの記憶を削
除して編集データのみを保存した場合、元データを基準
とする位置変換を実施するために、まず、基準となる元
データを再生してやらなければならない。このためには
、前回の編集作業に関する位置変換を記録として残して
おき、前回の位置変換と逆の作用を有する位置変換を新
たに創成して現在の編集データに逆変換を施さなければ
ならず、複雑な演算作業が必要とされる。当然、この逆
変換は前回の編集作業で位置変換の対象となった編集デ
ータに対してのみ実施されなければならず、逆変換の対
象となる編集データの範囲を誤って設定すると正常な元
データを再生することはできない。On the other hand, in actual design work, there are cases where it is desired to position a figure defined by the original data, such as a machining path indicated by points defined in the original data, to another position based on the original data. However, if the memory of the original data is deleted and only the edited data is saved, in order to perform position conversion using the original data as a reference, the original data that serves as the reference must first be reproduced. To do this, it is necessary to keep a record of the position transformation related to the previous editing work, create a new position transformation that has the opposite effect to the previous position transformation, and apply the inverse transformation to the current edited data. , complex calculation work is required. Naturally, this inverse transformation must be performed only on the edited data that was subject to position transformation in the previous editing operation, and if the range of edited data that is subject to inverse transformation is set incorrectly, the normal original data cannot be played.
そこで、本発明の目的は、迅速かつ正確にNCデータを
編集することができ、しかも、自動プログラミング装置
の記憶容量を浪費せず、元データを確実に再生すること
のできるNCデータ編集方式を提供することにある。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an NC data editing method that can quickly and accurately edit NC data, and that can reliably reproduce the original data without wasting the storage capacity of an automatic programming device. It's about doing.
課題を解決するための手段
本発明のNCデータ編集方式は、元データとなるNCデ
ータを順次読込み、元データにプログラムされた位置変
換指令に基づいて位置変換行列を定義し、位置変換指令
が読込まれてから変換解除指令が読込まれるまでの間、
元データ中に定義された点を上記位置変換行列で順次位
置変換し、非実行データとして位置変換指令および変換
解除指令を保存して編集データを作成するNCデータ編
集工程と、逆変換指令が入力された場合には、編集デー
タを順次読込み、編集データ中に非実行データとして保
存された位置変換指令から上記位置変換行列の逆変換行
列を求め、非実行データとされた位置変換指令と変換解
除指令との間で編集データ中に定義された点を上記逆変
換行列で順次逆変換し、編集データを元データに変換す
る元データ作成工程とを備えることにより上記課題を解
決した。Means for Solving the Problems The NC data editing method of the present invention sequentially reads NC data as original data, defines a position transformation matrix based on a position transformation command programmed in the original data, and defines a position transformation matrix based on a position transformation command programmed in the original data. The period from when the command is read until the conversion cancellation command is read.
An NC data editing process that sequentially transforms the positions of points defined in the original data using the above-mentioned position transformation matrix, stores position transformation commands and conversion cancellation commands as non-execution data, and creates edited data, and an inverse transformation command is input. If so, read the edited data sequentially, calculate the inverse transformation matrix of the above position transformation matrix from the position transformation commands saved as non-execution data in the editing data, and cancel the conversion with the position transformation commands that were set as non-execution data. The above-mentioned problem has been solved by providing an original data creation step of sequentially inversely transforming points defined in the edited data with the command using the above-mentioned inverse transformation matrix, and converting the edited data into original data.
作用
NCデータ編集工程で実行すべき変換処理を規定する位
置変換指令を元データ中に予めプログラムしておく。A position conversion command that defines the conversion process to be executed in the action NC data editing step is programmed in advance into the original data.
NCデータ編集工程において、自動プログラミング装置
は、元データとなるNCデータを順次読込み、元データ
にプログラムされた位置変換指令に基いて位置変換行列
を定義し、位置変換指令が読込まれてから変換解除指令
が読込まれるまでの間、元データ中に定義された点を上
記位置変換行列で順次位置変換し、非実行データとして
位置変換指令および変換解除指令を保存して編集データ
を作成する。In the NC data editing process, the automatic programming device sequentially reads the original NC data, defines a position transformation matrix based on the position transformation command programmed in the original data, and cancels the transformation after the position transformation command is read. Until the commands are read, the positions of the points defined in the original data are sequentially transformed using the position transformation matrix, and the position transformation commands and transformation cancellation commands are saved as non-execution data to create edited data.
逆変換指令が入力されて元データ作成工程が開始される
と、自動プログラミング装置は、編集データを順次読込
み、編集データ中に非実行データとして保存された位置
変換指令から上記位置変換行列の逆変換行列を求め、非
実行データとされた位置変換指令と変換解除指令との間
で編集データ中に定義された点を上記逆変換行列で順次
逆変換し、元データを再生する。When an inverse transformation command is input and the original data creation process is started, the automatic programming device sequentially reads the edited data and performs the inverse transformation of the position transformation matrix from the position transformation command stored as non-executable data in the edited data. A matrix is obtained, and the points defined in the edited data between the position conversion command and the conversion cancellation command, which are set as non-executable data, are sequentially inversely transformed using the above-mentioned inverse transformation matrix, and the original data is reproduced.
実施例 以下、図面を参照して本発明の詳細な説明する。Example Hereinafter, the present invention will be described in detail with reference to the drawings.
第3図は本発明の方式を実施する一実施例の自動プログ
ラミング装置の要部を示すブロック図であり、図中1は
プロセッサ(以下、CPUという)、2は該自動プログ
ラミング装置を制御する制御プログラムが格納されたR
OM、3はロードされたシステムプログラムを格納する
格納領域とCPU1による演算処理の結果等を記憶する
記憶領域を備えたRAM、4はロードされた元データや
編集データを記憶するNCデータ記憶メモリ、5はキー
ボード、6はディスクコントローラ、7はグラフィック
デイスプレィ(以下、CRTという)であり、これら各
要素1゜〜7はバス8で接続されている。FIG. 3 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 processor (hereinafter referred to as CPU), and 2 is a control for controlling the automatic programming device. R where the program is stored
OM, 3 is a RAM having a storage area for storing the loaded system program and a storage area for storing the results of arithmetic processing by the CPU 1, 4 is an NC data storage memory for storing the loaded original data and edited data, 5 is a keyboard, 6 is a disk controller, and 7 is a graphic display (hereinafter referred to as CRT), and these elements 1 to 7 are connected by a bus 8.
FLI、FL2は外部記憶装置としてのフロッピーディ
スクであり、フロッピーディスクFLIには各種のシス
テムプログラムが格納され、フロッピーディスクFL2
には既に作成された元データや編集データ等が保存され
ている。上記フロッピーディスクFLIには、NCデー
タの作成・修正を実行する従来通りの各種プログラムの
他、NCデータ編集工程を実施するデータ変換処理のた
めのプログラム(第1図参照)や元データ作成工程を実
施する逆変換処理のためのプログラム(第2図参照)か
システムプログラムとして格納されている。FLI and FL2 are floppy disks that serve as external storage devices.The floppy disk FLI stores various system programs, and the floppy disk FL2
The original data, edited data, etc. that have already been created are saved. The above-mentioned floppy disk FLI contains various conventional programs for creating and modifying NC data, as well as programs for data conversion processing (see Figure 1) for implementing NC data editing processes, and original data creation processes. It is stored as a program (see FIG. 2) or a system program for the inverse conversion process to be performed.
以下、データ変換処理および逆変換処理の概要を示すフ
ローチャート第T図および第2図に基いて本方式の一実
施例を説明する。An embodiment of this method will be described below with reference to flowcharts shown in FIG. T and FIG. 2 showing an overview of data conversion processing and inverse conversion processing.
自動プログラミング装置に電源を投入し、フロッピーデ
ィスクFLIをディスクコントローラ6にセットすると
、ROM2の制御プログラムに従って駆動されるCPU
Iが、CRT7の表示画面にシステムプログラムを選択
するための初期画面を表示する。When the automatic programming device is powered on and the floppy disk FLI is set in the disk controller 6, the CPU is driven according to the control program in the ROM2.
I displays an initial screen for selecting a system program on the display screen of the CRT 7.
そこで、予め作成された元データに位置変換補正やミラ
ー変換を施して新たなNCデータを編集する場合であれ
ば、オペレータは、まず、初期画面を参照して、NCデ
ータ編集工程を実施するデータ変換処理を選択するため
のキーを操作し、フロッピーディスクFLIに格納され
たデータ変換処理プログラムをRAM3に格納し、また
、編集の対象となる元データのプログラム番号をキーボ
ード5を介してCPUIに設定する。なお、編集の対象
となる元データがNCデータ記憶メモリ4内に記憶され
ていない場合は、当該光データを保存したフロッピーデ
ィスクFL2をディスクコントローラ6にセットする。Therefore, when editing new NC data by applying position conversion correction or mirror conversion to the original data created in advance, the operator first refers to the initial screen and selects the data to be used for the NC data editing process. Operate the key to select the conversion process, store the data conversion process program stored on the floppy disk FLI in the RAM 3, and set the program number of the original data to be edited on the CPUI via the keyboard 5. do. Note that if the original data to be edited is not stored in the NC data storage memory 4, the floppy disk FL2 storing the optical data is set in the disk controller 6.
RAM3に格納されたデータ変換処理プログラムに従っ
て処理を開始したCPUIは、設定されたプログラム番
号に基き、編集の対象となるプロダラム番号を有する元
データをNCデータ記憶メモリ4もしくはフロッピーデ
ィスクFL2から読込んでRAM3に格納する。The CPU, which has started processing according to the data conversion processing program stored in the RAM 3, reads the original data having the program number to be edited from the NC data storage memory 4 or the floppy disk FL2 based on the set program number, and stores it in the RAM 3. Store in.
以下、表1に示されるような元データが編集の対象とし
てRAM3に格納されているものとして、NCデータ編
集工程におけるデータ変換処理について説明する。The data conversion process in the NC data editing step will be described below, assuming that the original data as shown in Table 1 is stored in the RAM 3 as an editing target.
表11元データ
表2゜
編集データ
元データの一例を示す表↑において、012345はプ
ログラム番号、Golは従来通りの直線補間コードであ
りX−Y−23次元座標系上の2点間の直線補間を定義
し、XY2で設定された移動指令ブロックに対してモー
ダルに適用される。G98・・・は本実施例のために設
けられた位置変換指令のコードであり、この内G98P
1〜G98P3は、変換処理を具体化するためにXYl
で元データ中にプログラムされた任意の基準点をIJK
で設定された対応点に移動させることを定義し、また、
G981’0は、変換処理を具体化するためにXY2お
よびIJKで元データ中にプログラムされた任意の2点
の中間点に配置され該2点を結ぶ直線と直交するミラー
によるミラー変換を定義する。G99は本実施例のため
に設けられた変換解除指令のコードであり、位置変換指
令のコードによって定義された1一つの位置変換行列を
解除する機能を有する。また、表2は、表1に示される
元データに対しデータ変換処理を施して得た編集データ
を示す表である。Table 11 Original data Table 2 Edit data In the table ↑ showing an example of original data, 012345 is the program number, and Gol is the conventional linear interpolation code, which is linear interpolation between two points on the X-Y-23 dimensional coordinate system. is defined and applied modally to the movement command block set in XY2. G98... is a position conversion command code provided for this embodiment, among which G98P
1 to G98P3 are
IJK any reference point programmed in the original data with
Define to move to the corresponding point set by, and
G981'0 defines mirror conversion using a mirror placed at the midpoint of any two points programmed in the original data in XY2 and IJK and perpendicular to the straight line connecting the two points in order to embody the conversion process. . G99 is a conversion cancellation command code provided for this embodiment, and has a function of canceling each position conversion matrix defined by the position conversion command code. Further, Table 2 is a table showing edited data obtained by performing data conversion processing on the original data shown in Table 1.
データ変換処理を開始したCPUIは、まず、メモリM
に単位行列Eをセットし、指標iにOをセットして初期
化しくステップ5101)、R,AM3に格納された元
データを1ブロック読み込んで(ステップ5102)、
今回読込んだ1−ブロックのデータが元データの終了を
示すブロックであるか否かを判別する(ステップS 1
03)。表1に示される例では、まず、プログラム番号
を示す012345が読込まれ、元データの終了を示す
プロッ工1
りではないから、次いでステップ8104に移行して変
換指令ブロックであるか否か、即ち、G9Bの位置変換
指令コードを有するブロックであるか否かが判別される
が、変換指令ブロックではないから、次いでステップ5
105に移行して移動指令ブロックであるか否かが判別
される。移動指令ブロックではないから、更に、ステッ
プ8106に移行して変換指令キャンセルブロックであ
るか否か、即ち、G99の変換解除指令コードを有する
ブロックであるか否かが判別されるが、変換指令キャン
セルブロックではないから、今回読込んだ1ブロツクの
データ、即ち、プログラム番号である012345がデ
ータ変換処理実行後の編集データとしてRAM3に直接
書込まれる(ステップ5107、表2参照)。The CPUI that started the data conversion process first
Set the unit matrix E to , set O to index i and initialize (step 5101), read one block of original data stored in R, AM3 (step 5102),
Determine whether or not the 1-block data read this time is a block indicating the end of the original data (step S1
03). In the example shown in Table 1, first, 012345 indicating the program number is read, and since it is not a program number indicating the end of the original data, the process then moves to step 8104 to check whether it is a conversion command block or not. , G9B, but since it is not a conversion command block, step 5 is then performed.
The process moves to step 105, where it is determined whether or not it is a movement command block. Since it is not a movement command block, the process proceeds to step 8106 to determine whether it is a conversion command cancellation block, that is, whether or not it is a block with a conversion cancellation command code of G99. Since it is not a block, the one block of data read this time, that is, the program number 012345, is directly written into the RAM 3 as the edited data after data conversion processing is executed (step 5107, see Table 2).
次イで、CPU1は、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ81.02)、
今回読込んだ1ブロツクのデータが元データの終了を示
すブロックであるか否かを判別する(ステップS 10
3)。表1に示される例 z
では、G98PIXxaYyaZZaliaJjaKk
aが読込まれ、元データの終了を示すブロックではない
から、次いでステップ5104に移行して変換指令ブロ
ックであるか否か、即ち、G98の位置変換指令コード
を有するブロックであるか否かが判別される。当該ブロ
ックはG98の位置変換指令コードを有する変換指令ブ
ロックであるから、ステップ5108に移行して、当該
ブロックにおけるG98の指令コードにPOの修飾が付
されているか否か、即ち、ミラー変換のための位置変換
指令コードであるか否かを判別する。当該ブロックの位
置変換指令コードにはPOの修飾は付されていないから
、ステップ5101に移行し、当該ブロックの位置変換
指令コードにP3の修飾が付されているか否かを判別す
るが、当該ブロックの位置変換指令コードにはP3の修
飾は付されていないので、ステップS 」−10に移行
しで、当該変換指令ブロック、即ち、位置変換指令コー
ドG98Pl と該位置変換指令コードによる変換処理
を具体化するためのデータである第1基準点の座標1a
、 R,28,および、該第1基準点を移動させる対応
点である第I対応点の座標ia。In the next step, the CPU 1 reads the next block of original data stored in the RAM 3 (step 81.02),
It is determined whether one block of data read this time is a block indicating the end of the original data (step S10).
3). In the example z shown in Table 1, G98PIXxaYyaZZaliaJjaKk
Since a has been read and is not a block indicating the end of the original data, the process moves to step 5104, where it is determined whether it is a conversion command block, that is, whether it is a block with a position conversion command code of G98. be done. Since the block in question is a conversion command block having a position conversion command code of G98, the process moves to step 5108 to determine whether or not the command code of G98 in the block is modified with PO, that is, for mirror conversion. It is determined whether or not it is a position conversion command code. Since the position conversion command code of the block concerned is not modified with PO, the process moves to step 5101 and it is determined whether or not the position conversion command code of the block concerned is modified with P3. Since the position conversion command code is not modified with P3, the process moves to step S''-10 to specifically describe the conversion command block, that is, the position conversion command code G98Pl and the conversion process using the position conversion command code. The coordinates 1a of the first reference point, which is the data for
, R, 28, and the coordinates ia of the I-th corresponding point, which is the corresponding point to which the first reference point is to be moved.
ia、 kaをレジスタに一時記憶し、かつ、当該ブロ
ックのデータに非実行記号となる括弧を付して位置変換
指令を非実行データとした後(ステップ811.1)、
非実行データとされた当該ブロックのデータ (G98
PIXxaYya2zalialiaKka )を編集
データとしてRAM3に書込む(ステップS 107゜
表2参照)。After temporarily storing ia and ka in the register, and adding parentheses as a non-execution symbol to the data of the block to make the position conversion command non-execution data (step 811.1),
Data in the block that is considered non-executable data (G98
PIXxaYya2zaliaKka) is written into the RAM 3 as edit data (step S107; see Table 2).
次いで、CPUIは、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5102)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップ5103)
。表1に示される例では、G98t’2XzbYybZ
zbliblibKkbが読込まれ、元データの終了を
示すブロックではないから、次いでステップ5104に
移行して変換指令ブロックであるか否か、即ち、G98
の位置変換指令コードを有するブロックであるか否かが
判別される。当該ブロックはG98の位置変換指令コー
ドを有する変換指令ブロックであるから、ステップ51
085
に移行して、当該ブロックにおけるG98の位置変換指
令コードにPOの修飾が付されているか否かを判別する
。当該ブロックの指令コードにはPOの修飾が付されて
おらずミラー変換のための位置変換指令コードではない
から、ステップ5109に移行し、当該ブロックの位置
変換指令コードにP3の修飾が付されているか否かを判
別するが、当該ブロックの指令コードにはP3の修飾が
付されていないので、ステップ5110に移行して、当
該変換指令ブロック、即ち、位置変換指令コードG98
P2と該位置変換指令コードコードによる位置変換処理
を具体化するためのデータである第2基準点の座標xb
、 yb、 zb、および、該第2基準点を移動させる
対応点である第2対応点の座標ib、 ib、 kbを
レジスタに一時記憶し、かつ、当該ブロックのデータに
非実行記号となる括弧を付して位置変換指令を非実行デ
ータとした後(ステップS 1 ]、 1. )、非実
行データとされた当該ブロックのデータ(G98P2X
xbYyb2zblibljbKkb)を編集データと
してRAM3に書込む(ステップS 107.表2参照
)。Next, the CPU reads the next block of the original data stored in the RAM 3 (step 5102), and determines whether the block of data read this time is a block indicating the end of the original data (step 5102). Step 5103)
. In the example shown in Table 1, G98t'2XzbYybZ
zbliblibKkb is read, and since it is not a block indicating the end of the original data, the process moves to step 5104 to determine whether it is a conversion command block, that is, G98.
It is determined whether the block has the position conversion command code. Since the block is a conversion command block having a position conversion command code of G98, step 51
085, it is determined whether or not the position conversion command code of G98 in the block is modified with PO. Since the command code of the block is not modified with PO and is not a position conversion command code for mirror conversion, the process moves to step 5109, where the position conversion command code of the block is modified with P3. However, since the command code of the block concerned is not modified with P3, the process moves to step 5110, and the command code of the relevant block, that is, the position transformation command code G98, is transferred to step 5110.
P2 and the coordinate xb of the second reference point, which is data for embodying the position conversion process using the position conversion command code code.
, yb, zb, and the coordinates ib, ib, kb of the second corresponding point, which is the corresponding point to which the second reference point is to be moved, are temporarily stored in a register, and parentheses are added to the data of the block as non-execution symbols. After making the position conversion command into non-executable data by attaching the
xbYyb2zblibljbKkb) is written into the RAM 3 as edit data (step S107. See Table 2).
次いで、CPUIは、RAM3に格納された元データの
次のニブロックを読込んで(ステップ5102)、今回
読込んだ1ブロツクのデータが元データの終了を示すブ
ロックであるか否かを判別する(ステップ5102)。Next, the CPU reads the next two blocks of the original data stored in the RAM 3 (step 5102), and determines whether the one block of data read this time is a block indicating the end of the original data (step 5102). Step 5102).
表1に示される例では、G98P3XxcYyc2zc
licJjcKkcが読込まれ、ステップ5103,5
i04,5108から、ステップ5109に移行し、当
該ブロックの位置変換指令コードにP3の修飾が付され
ているか否かを判別する。当該ブロックの位置変換指令
指令コードにはP3の修飾が付されており、これは、1
つの位置変換行列を定義するための各種データがすべて
読込まれ記憶されていることを意味する。そこで、CP
UIはステップ5112に移行して、これまでの処理で
各レジスタに記憶されたデータ、即ち、G98PIXx
aYya2zalialjaKka とG98P2Xx
bYybzxbliblibKkb 、および、今回読
込んだ1ブロツクの変換指令ブロックG98P3Xxc
YyczzclicljcKkcに基づいて、lっの位
置変換行列Maを算出する。In the example shown in Table 1, G98P3XxcYyc2zc
licJjcKkc is read and step 5103,5
From i04, 5108, the process moves to step 5109, and it is determined whether or not the position conversion command code of the block is modified with P3. The position conversion command command code of the block is modified with P3, which is 1
This means that all the various data for defining the two position transformation matrices have been read and stored. Therefore, C.P.
The UI moves to step 5112 and stores the data stored in each register in the previous processing, that is, G98PIXx.
aYya2zalialjaKka and G98P2Xx
bYybzxbliblibKkb, and one block of conversion command block G98P3Xxc read this time
A position transformation matrix Ma is calculated based on YyczzclicljcKkc.
即ち、ステップ5112の処理では、元データにプログ
ラムされた第1基準点xa、 ya、 zaを第1対応
点ia、 ja、 kaに移動させ、第2基準点xb、
yb。That is, in the process of step 5112, the first reference points xa, ya, and za programmed in the original data are moved to the first corresponding points ia, ja, and ka, and the second reference points xb,
yb.
xbを第2対応点ib、 ib、 kbに移動させ、
かつ、第3基準点xc、 yc、 2Cを第3対応点i
c、 jc、 kcに移動させるための位置変換行列M
aが定義される。Move xb to the second corresponding points ib, ib, kb,
And the third reference points xc, yc, 2C are the third corresponding point i
Position transformation matrix M for moving to c, jc, kc
a is defined.
第4図は位置変換行列Maの作用を簡単に説明する概念
図であり、該位置変換行列MaはX−Yz3次元座標系
上の前記3つの基準点をこれに対応する3つの対応点に
1対1対応させて移動する位置変換行列であって、基準
点と対応点との位置関係を示す平行移動および回転移動
によって一義的に定義される。従って、上記X−Y−2
3次元座標系上の任意点を示すNCデータ”+ V+
zと該任意点に上記位置変換行列Maを乗じて得た移動
点xI、 YI、 zlとの関係は上記基準点と対応点
との関係に等しい。FIG. 4 is a conceptual diagram briefly explaining the action of the position transformation matrix Ma, which transforms the three reference points on the X-Yz three-dimensional coordinate system into three corresponding points. A position transformation matrix that moves in a pair-to-one correspondence, and is uniquely defined by parallel and rotational movements that indicate the positional relationship between a reference point and a corresponding point. Therefore, the above X-Y-2
NC data indicating an arbitrary point on a three-dimensional coordinate system"+ V+
The relationship between z and the moving points xI, YI, zl obtained by multiplying the arbitrary point by the position transformation matrix Ma is the same as the relationship between the reference point and the corresponding point.
このようにして位置変換行列Maを定義したCPUIは
、位置変換行列Maを指標jによって示されるメモリM
i、即ち、メモリMOに記憶しくステップ5113)、
メモリMの行列にメモリMOの位置変換行列を乗じた行
列をメモリMに再記憶しくステップ5114)、指標l
の値をインクリメントして、次ぎに定義される位置変換
行列を記憶するメモリMiを確保する(ステップS1↓
)。メモリMの初期値は単位行列Eであるから、現在、
メモリMには位置変換行列Maが記憶されていることに
なる。次に、今回読込んだ1ブロツクの変換指令ブロッ
クに非実行記号となる括弧を付して位置変換指令を非実
行データとした後(ステップ5ill)、非実行データ
とされた当該ブロックのデータ(G98P3XxcYy
c4xc!1cJjcKkc)を編集データとしてRA
M3に書込む(ステップS 107.表2参照)。The CPU that has defined the position transformation matrix Ma in this way stores the position transformation matrix Ma in the memory M indicated by the index j.
i, i.e., stored in the memory MO (step 5113),
The matrix obtained by multiplying the matrix of the memory M by the position transformation matrix of the memory MO is stored again in the memory M (step 5114), and the index l
The value of is incremented to secure a memory Mi for storing the position transformation matrix defined next (step S1↓
). Since the initial value of memory M is the unit matrix E, currently,
The memory M stores the position transformation matrix Ma. Next, after adding parentheses as a non-execution symbol to the conversion command block of one block read this time to make the position conversion command non-execution data (step 5ill), the data of the block that was set as non-execution data ( G98P3XxcYy
c4xc! 1cJjcKkc) as editing data
Write to M3 (step S107. See Table 2).
次いで、CPUIは、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5102)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップ8103)
。表1に示される例では、G98POXxdYydzx
dlidljdKkdが読込まれ、元データの終了を示
すブロックではないから、次い9
でステップ5104に移行して変換指令ブロックである
か否か、即ち、G98の位置変換指令コードを有するブ
ロックであるか否かが判別される。当該ブロックはG9
8の位置変換指令コードを有する変換指令ブロックであ
るから、ステップS 108に移行して、当該ブロック
におけるG98の位置変換指令コードにPOの修飾が付
されているか否か、即ち、ミラー変換のための位置変換
指令コードであるか否かを判別する。当該ブロックの位
置変換指令コードはPOの修飾が付されたミラー変換の
ためのコードであるから、CPU1はステップS1王6
に移行して、今回読込んだ変換指令ブロック、G98P
OXxdYydZzdlidjjdKkdに基づいて、
ミラー変換のための1つの位置変換行列Mbを算出する
。Next, the CPU reads the next block of the original data stored in the RAM 3 (step 5102), and determines whether the block of data read this time is a block indicating the end of the original data (step 5102). Step 8103)
. In the example shown in Table 1, G98POXxdYydzx
Since dlidljdKkd is read and is not a block indicating the end of the original data, the process moves to step 5104 at step 9 to determine whether it is a conversion command block, that is, whether it is a block with a position conversion command code of G98. It is determined whether The block is G9
Since this is a conversion command block having a position conversion command code of G98 in the block, the process moves to step S108 to determine whether or not the position conversion command code of G98 in the block is modified with PO, that is, for mirror conversion. It is determined whether or not it is a position conversion command code. Since the position conversion command code of the block is a code for mirror conversion with the PO modification, the CPU 1 executes step S1
, and the conversion command block read this time, G98P.
Based on OXxdYydZzdlidjjdKkd,
One position transformation matrix Mb for mirror transformation is calculated.
即ち、ステップ311・6の処理では、元データにプロ
グラムされた任意の2点xd、 yd、 +dとid。That is, in the process of step 311.6, arbitrary two points xd, yd, +d and id programmed in the original data.
jtl、 kdの中間点に配置され該2点を結ぶ直線と
直交するミラーによる位置変換行列Mbが定義される。A position transformation matrix Mb is defined by a mirror placed at the midpoint between jtl and kd and perpendicular to the straight line connecting the two points.
第5図はミラー変換のための位置変換行列Mbの作用を
簡単に説明する概念図であり、該位置 n
変換行列MbはX−Y−23次元座標系上の任意の2点
xd、 yd、 zdとid、 jd、 kdの中間点
に配置され該2点を結ぶ直線と直交する平面πを基準と
するミラー変換を示し、第5図に示される例では点xl
# 、 Yl/ 、 zl/が点xl“、 Yl’ 、
zl“に変換され、点x2’ +Y2’ 、 z2’
が点X2’ 、 Y2“、 d’に変換され、かつ、点
x3’ + Y3’ 、 z3’ が点、3#。FIG. 5 is a conceptual diagram that briefly explains the action of the position transformation matrix Mb for mirror transformation. The mirror transformation is based on the plane π, which is placed at the midpoint between zd, id, jd, and kd and is perpendicular to the straight line connecting these two points. In the example shown in FIG.
#, Yl/, zl/ are points xl", Yl',
zl", and the point x2' + Y2', z2'
are converted to points X2', Y2'', d', and points x3' + Y3', z3' are points 3#.
Y3“、 z3“に変換されることとなる。位置変換行
列Mbは平面πによって一義的に定義される位置変換行
列である。It will be converted to Y3", z3". The position transformation matrix Mb is a position transformation matrix uniquely defined by the plane π.
このようにしてミラー変換のための位置変換行列Mbを
定義したCPUIは、位置変換行列Mbをインクリメン
トされた指標iによって示されるメモリMj1即ち、メ
モリMlに記憶しくステップ5117)、メモリMの行
列にメモリM1の位置変換行列を乗じた行列をメモリM
に再記憶しくステップ811.4)、指標lの値をイン
クリメントして、次に定義される位置変換行列を記憶す
るメモリを確保する(ステップS1↓5)。従って、現
在、メモリMには位置変換行列Maと位置変換行列Mb
とを乗じた行列が記憶され、2つの位置変換行列が同時
に定義されたことになり、また、指標jの値は2に更新
されたことになる。次に、今回読込んだ↑ブロックの変
換指令ブロックに非実行記号となる括弧を付して位置変
換指令を非実行データとした後(ステップ5114)、
非実行データとされた当該ブロックのデータ (G98
1’0Xx4Yyd2zdlidJjdKkd)を編集
データとしてRAM3に書き込む(ステップ107、表
2参照)。The CPU that has defined the position transformation matrix Mb for mirror transformation in this way stores the position transformation matrix Mb in the memory Mj1, that is, the memory Ml indicated by the incremented index i (step 5117), and stores it in the matrix of the memory M. The matrix multiplied by the position transformation matrix of memory M1 is
In step 811.4), the value of the index l is incremented to secure memory for storing the position transformation matrix to be defined next (step S1↓5). Therefore, the memory M currently stores a position transformation matrix Ma and a position transformation matrix Mb.
The matrix multiplied by is stored, two position transformation matrices are defined simultaneously, and the value of index j is updated to 2. Next, after adding parentheses as a non-execution symbol to the conversion command block of the ↑ block read this time to make the position conversion command non-execution data (step 5114),
Data in the block that is considered non-executable data (G98
1'0Xx4Yyd2zdlidJjdKkd) is written into the RAM 3 as edit data (step 107, see Table 2).
次いで、CPUIは、RAM3に格納された元データの
次の↑ブロックを読み込んで(ステップ5102)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップS 103
)。表1に示される例では、G、0IXxlYylZZ
lが読込まれ、元データの終了を示すブロックではない
から、次いでステップ5104に移行して変換指令ブロ
ックであるか否か、即ち、G98の位置変換指令コード
を有するブロックであるか否かが判別されるが、変換指
令ブロックではないから、次いてステップ107に移行
して移動指令ブロックであるか否かが判別される。Next, the CPU reads the next ↑ block of the original data stored in the RAM 3 (step 5102), and determines whether the one block of data read this time is a block indicating the end of the original data ( Step S103
). In the example shown in Table 1, G, 0IXxlYylZZ
l is read, and since it is not a block indicating the end of the original data, the process then moves to step 5104, where it is determined whether it is a conversion command block, that is, whether it is a block with a position conversion command code of G98. However, since it is not a conversion command block, the process then proceeds to step 107, where it is determined whether or not it is a movement command block.
当該ブロックは移動指令ブロックであるから、ステップ
5118に移行して、今回読込んだ1−ブロックによっ
て元データ中に定義された点χI、 yl。Since the block in question is a movement command block, the process moves to step 5118, and points χI, yl defined in the original data by the 1-block read this time.
zlに対して変換行列Mに基づく位置変換を実行する。A positional transformation based on the transformation matrix M is performed on zl.
即ち、CPUIは、元データによって定義された点Xi
、 71.21にメモリMに記憶されている変換行列を
乗じて変換後の位置xl“、 yl“、zl“を求める
。メモリMに記憶されている変換行列は位置変換行列M
aと位置変換行列Mbとを乗じた行列であるから、点X
I、 yl、 zlに対して2種の位置変換が同時に実
行されることとなる。第6図はメモリMに記憶されてい
る現在の変換行列によって実行される位置変換を概念的
に示す図であり、点XI、 yl、 2+は位置変換行
列Maによって点x1′yl’ +Z17の位置に位置
変換されると共に、点XI’ 、 yl’ 、 2+’
の位置から、更に、平面πを基準とするミラー変換のた
めの位置変換行列Mbによって点xl“ 、IN 、
zINの位置に変換されることとなる。但し、CPU1
の作業においては、メ3
モリMに予め位置変換行列Maとミラー変換のための位
置変換行列Mbとを乗した行列が記憶されているため、
元データ中に定義された点XI、 yl。That is, CPUI is the point Xi defined by the original data.
, 71.21 is multiplied by the transformation matrix stored in the memory M to obtain the transformed positions xl", yl", zl". The transformation matrix stored in the memory M is the position transformation matrix M
Since it is a matrix obtained by multiplying a by the position transformation matrix Mb, the point
Two types of positional transformations will be executed simultaneously for I, yl, and zl. FIG. 6 is a diagram conceptually showing the position transformation performed by the current transformation matrix stored in the memory M, where the points XI, yl, 2+ are at the position of the point x1'yl' + Z17 by the position transformation matrix Ma. The position is transformed to , and the points XI', yl', 2+'
From the position of , the point xl", IN,
It will be converted to the position of zIN. However, CPU1
In this work, since the memory M stores in advance a matrix obtained by multiplying the position transformation matrix Ma by the position transformation matrix Mb for mirror transformation,
Points XI, yl defined in the original data.
zlとメモリMに記憶された変換行列とに基づき変換後
の位置Xi“、 yl“、 Zl“が直ちに算出される
。Based on zl and the transformation matrix stored in the memory M, the transformed positions Xi", yl", Zl" are immediately calculated.
今回読込んだ■ブロックの元データによって定義された
点Xi、 yl、 21に位置変換を施して変換後の位
置χ1“、 yl“、 21“を算出したCPUIは、
変換後の位置x1″、y1“、 21“を編集データと
して、RAM3に書込む(ステップ31.07.表2参
照)。The CPU that performed position transformation on the points Xi, yl, and 21 defined by the original data of the block ■ that was read this time and calculated the transformed positions χ1", yl", and 21" is as follows:
The converted positions x1'', y1'', 21'' are written to the RAM 3 as editing data (step 31.07. See Table 2).
次いで、CPUIは、元データの次の1ブロツクを読込
み(ステップ5102)、上記と同様、ステップ510
2−ステップ5L03−ステップ5104−ステップ5
105−ステップ5118ステツプ5107の処理を実
行し、元データ中に定義された点X2. y2. z
2およびX3. y3. Z3の変換後の位置x2“
、 Y2“、 22“およびx3“、 Y3″23″、
を算出しくステップ5118)、編集データとしてRA
M3に書込む(ステップS 107.表4
2参照)。Next, the CPUI reads the next block of original data (step 5102), and similarly to the above, the process proceeds to step 510.
2-Step 5L03-Step 5104-Step 5
105-Step 5118 Executes the process of step 5107, and points X2. y2. z
2 and X3. y3. Post-conversion position x2 of Z3
, Y2", 22" and x3", Y3"23",
(Step 5118), calculate the RA as the edited data.
Write to M3 (step S107. See Table 4 2).
次いで、CPU1は、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5IO2)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップ3103)
。表土に示される例で1は、G99が読込まれ、元デー
タの終了を示すブロックではないから、次いでステップ
5104に移行して変換指令ブロックであるか否か、即
ち、G98の位置変換指令コードを有するブロックであ
るか否かが判別されるが、変換指令ブロックではないか
ら、次いでステップS」05に移行して移動指令ブロッ
クであるか否かが判別される。移動指令ブロックではな
いから、更に、ステップ5106に移行して変換指令キ
ャンセルブロックであるか否か、即ち、G99の変換解
除指令コードを有するブロックであるか否かが判別され
る。当該ブロックはG99の変換解除指令コードを有す
る変換指令キャンセルブロックであるから、ステップ5
11−9に移行して、メモリMに記憶された変換行列に
指標Iで示されるメモリM(i−1,)、即ち、現在は
メモリM1であって、1つの位置変換行列を記憶した最
新のメモリに記憶された位置変換行列の逆行列、即ち、
ミラー変換のための位置変換行列Mbの逆行列を乗じ、
得られた行列をメモリMに再記憶する。従って、現在メ
モリMに記憶されている変換行列は、M a * M
b * M b −’ = M aとなり、ミラー変換
のための位置変換行列Mbが解除されたことを意味し、
位置変換行列Maによる位置変換のための定義のみが有
効となる。従って、メモリM1にミラー変換のための位
置変換行列Mbを記憶させておく必要はなく、CPU1
は、指標iの値をディクリメントしてi=1とし、メモ
リM1を、次に定義される位置変換行列のためのメモリ
として確保する(ステップ8.120 )。Next, the CPU 1 reads the next one block of the original data stored in the RAM 3 (step 5IO2), and determines whether the one block of data read this time is a block indicating the end of the original data ( Step 3103)
. In the example shown in the topsoil, 1 is a block in which G99 is read and does not indicate the end of the original data, so the process moves to step 5104 and checks whether it is a conversion command block, that is, the position conversion command code of G98. However, since it is not a conversion command block, the process then proceeds to step S'05, where it is determined whether it is a movement command block. Since it is not a movement command block, the process proceeds to step 5106, where it is determined whether it is a conversion command cancellation block, that is, whether it is a block having a conversion cancellation command code of G99. Since this block is a conversion command cancellation block with a conversion cancellation command code of G99, step 5
11-9, the transformation matrix stored in the memory M is the memory M (i-1,) indicated by the index I, that is, the current memory M1, which stores one position transformation matrix. The inverse matrix of the position transformation matrix stored in the memory of
Multiply by the inverse matrix of the position transformation matrix Mb for mirror transformation,
The resulting matrix is stored again in memory M. Therefore, the transformation matrix currently stored in memory M is M a * M
b * M b -' = Ma, which means that the position transformation matrix Mb for mirror transformation has been canceled,
Only the definition for position transformation by the position transformation matrix Ma is valid. Therefore, there is no need to store the position transformation matrix Mb for mirror transformation in the memory M1, and the CPU 1
decrements the value of index i to i=1 and reserves memory M1 as a memory for the position transformation matrix defined next (step 8.120).
次に、今回読込んた1ブロツクの変換指令キャンセルブ
ロックに非実行記号、となる括弧を付して変換解除指令
コードG99を非実行データとした後(ステップS 1
. ]1. ) 、非実行データとされた当該ブロック
のデータ(G99)を編集データとしてRAM3に書き
込む(ステップ107、表2参照)。Next, after adding parentheses as a non-execution symbol to the conversion command cancel block of one block read this time to make the conversion cancellation command code G99 non-execution data (step S1
.. ]1. ), the data (G99) of the block that has been set as non-executable data is written into the RAM 3 as edited data (step 107, see Table 2).
次いで、CPUIは、RAM3に格納された次の1ブロ
ツクの元データ、即ち、G99を読込み(ステップ51
03)、上記と同様にして、ステップ5103−ステッ
プ5104−ステップ5105−ステップ5106の判
別処理を実行した後、再度、ステップ5119の処理を
実行する。即ち、CPUIは、メモリMに記憶された変
換行列に指標iで示されるメモリM(i−1)、即ち、
現在はメモリMOであって、1つの位置変換行列を記憶
した最新のメモリに記憶された位置変換行列の逆行列、
即ち、位置変換行列Maの逆行列を乗じ、得られた行列
をメモリMに再記憶する。従って、現在メモリMに記憶
されている変換行列は、Ma*Ma−”=Eとなり、ミ
ラー変換のための位置変換行列Mbに引続いて位置変換
行列Maが解除されたことを意味し、メモリMの値は単
位行列Eとなって初期状態に復帰する。従って、メモリ
MOに位置変換行列Maを記憶させておく必要はなく、
CPUIは、指標iの値をディクリメントして7
i=0とし、メモリMOを、次に定義される位置変換行
列のためのメモリとして確保する(ステップS 120
)。Next, the CPU reads the next block of original data stored in the RAM 3, that is, G99 (step 51).
03), in the same manner as above, after executing the determination processing of steps 5103-5104-step 5105-step 5106, the processing of step 5119 is executed again. That is, the CPUI selects the memory M(i-1) indicated by the index i in the transformation matrix stored in the memory M, that is,
The inverse matrix of the position transformation matrix stored in the latest memory which is currently the memory MO and stores one position transformation matrix;
That is, the position transformation matrix Ma is multiplied by an inverse matrix, and the obtained matrix is stored in the memory M again. Therefore, the transformation matrix currently stored in the memory M is Ma*Ma-''=E, which means that the position transformation matrix Ma is released following the position transformation matrix Mb for mirror transformation, and the The value of M becomes the unit matrix E and returns to the initial state.Therefore, there is no need to store the position transformation matrix Ma in the memory MO.
The CPU decrements the value of the index i to 7 i = 0, and reserves the memory MO as a memory for the position transformation matrix to be defined next (step S120
).
以下、CPUIは、上記と同様にして、RAM3に格納
された元データの次の1ブロツクを順次読込み(ステッ
プ107)、当該ブロックが元データの終了を示すもの
であるか否かを判別しくステップ5103)、読込まれ
たブロックが変換指令ブロックG98・・・であり(ス
テップS 104)、かつ、位置変換指令コードG98
P] 、 G98P2 。Thereafter, in the same manner as described above, the CPU sequentially reads the next block of the original data stored in the RAM 3 (step 107), and determines whether or not the block indicates the end of the original data. 5103), the read block is conversion command block G98... (step S104), and position conversion command code G98
P], G98P2.
G98P3を有するブロックであれば、第1基準点と第
1対応点、および、第2基準点と第2対応点、並びに、
第3基準点と第3対応点を順次読込んで記憶し、これら
の点のデータから位置変換行列Maを算出して位置変換
を定義しくステップ3112)、また、ミラー変換のた
めの位置変換指令コードG98POを有するブロックで
あれば、元データに設定された任意の2点に基づいてミ
ラー変換のための位置変換行列Mbを算出してミラー変
換を定義しくステップ8116)、定義された位置変
R
換行列を順次新規のメモリMiに記憶すると共に(ステ
ップS 113.ステップ511−7)、初期値が単位
行列EであるメモリMに上記定義された位置変換行列を
乗じて再記憶することにより、定義された位置変換行列
の数や種類に関わりなく、これらの位置変換行列を合成
したものと同値な変換行列Mを作成して定義しくステッ
プS 114)、指標iの値をインクリメントしくステ
ップ5115)、位置変換指令コードを有するこれら各
ブロックの元データに非実行記号となる括弧を付して(
ステップ5111)、編集データとしてRAM3に書込
み(ステップ5107)、移動指令ブロックを示すGO
Iの指令コードが読込まれた段階で(ステップ5105
)、該指令コードGOIに続く元データの定義点データ
に上記変換行列Mを乗じて位置変換を施しくステップ5
118)、編集データとしてRAM3に順次書込む一方
(ステップ5107)、変換指令キャンセルブロックが
読込まれたときには上記変換行列Mに最新の変換行列を
記憶するメモリM(i−1)の逆行列を乗じて該メモリ
Mに再記憶することにより、定義された最新の変換行列
のみを解除しくステップS 119)、変換解除指令コ
ードG99を有する変換指令キャンセルブロックに非実
行記号となる括弧を付して(ステップ5111)、編集
データとしてRAM3に書込み(ステップ5107)、
また、読込まれた1ブロツクの元データが変換指令ブロ
ックでも移動指令ブロックでも変換指令キャンセルブロ
ックでもない場合には、読込まれた1ブロツクの元デー
タを編集データとして直接RAM3に書込むこととなる
(ステップS 106.ステップ5107)。If the block has G98P3, the first reference point and the first corresponding point, the second reference point and the second corresponding point, and
The third reference point and the third corresponding point are sequentially read and stored, the position transformation matrix Ma is calculated from the data of these points, and the position transformation is defined (Step 3112), and the position transformation command code for mirror transformation is If the block has G98PO, the position transformation matrix Mb for mirror transformation is calculated based on any two points set in the original data, and the mirror transformation is defined (step 8116).
By sequentially storing the R transformation matrix in a new memory Mi (step S113.Step 511-7), and re-storing the memory M whose initial value is the unit matrix E by multiplying it by the position transformation matrix defined above. , Regardless of the number and type of defined position transformation matrices, create and define a transformation matrix M equivalent to the composite of these position transformation matrices (step S 114), and increment the value of index i in step 5115. ), the original data of each block with the position conversion command code is added with parentheses as a non-execution symbol (
Step 5111), write to RAM3 as edit data (step 5107), and write GO indicating the movement command block.
At the stage when the command code of I is read (step 5105
), the definition point data of the original data following the command code GOI is multiplied by the transformation matrix M to perform position transformation.Step 5
118), and sequentially writes it to RAM3 as editing data (step 5107), while when the conversion command cancellation block is read, the conversion matrix M is multiplied by the inverse matrix of the memory M(i-1) that stores the latest conversion matrix. In order to cancel only the latest defined conversion matrix by re-storing it in the memory M, step S119) adds parentheses as a non-execution symbol to the conversion command cancel block having the conversion cancellation command code G99 ( Step 5111), write to RAM3 as edit data (Step 5107),
Furthermore, if the read one block of original data is not a conversion command block, a movement command block, or a conversion command cancellation block, the read one block of original data is directly written to the RAM 3 as editing data ( Step S106. Step 5107).
そして、最終的に、元データの終了を示すブロック、例
えば、「Mo2」等のプログラムエンドコードが読込ま
れ、設定されたプログラム番号に対応する元データの全
てのブロックに対して上記データ変換処理が実行される
と、CPUIは、選択された元データに対する編集作業
が完了したものと見なし、NCデータ編集工程であるデ
ータ変換処理を終了する。Finally, a block indicating the end of the original data, for example, a program end code such as "Mo2" is read, and the above data conversion process is performed on all blocks of the original data corresponding to the set program number. When executed, the CPUI considers that the editing work on the selected original data has been completed, and ends the data conversion process, which is the NC data editing process.
従って、本実施例のデータ変換処理によれば、元データ
に位置変換指令コードG98PI〜G98P3、および
、これらの位置変換指令コードを具体化するための基準
点と対応点をプログラムすることにより、簡単に位置変
換を定義することができ、予め作成された元データに位
置ずれがあるような場合であっても個々のデータを手計
算によって修正する必要は無く、また、ミラー変換を行
う場合にはミラー変換のための位置変換指令コードG9
8PQ、および、該位置変換指令コードを具体化するた
めの任意の2点をプログラムするだけで良く、複雑な演
算処理を必要としない。Therefore, according to the data conversion process of this embodiment, by programming the position conversion command codes G98PI to G98P3 and the reference points and corresponding points for embodying these position conversion command codes in the original data, it is possible to easily It is possible to define positional transformations in Position conversion command code G9 for mirror conversion
It is only necessary to program 8PQ and any two points to embody the position conversion command code, and no complicated arithmetic processing is required.
また、位置変換指令コードによって位置変換指令行列が
定義される毎に、これらの位置変換行列を順次積算して
変換行列を定義するようにしているので、位置変換の種
類や個数に関わりなく、自動プログラミング装置によっ
て容易に所望の位置変換を実施してMCデータを編集す
ることができる。In addition, each time a position transformation command matrix is defined by a position transformation command code, the transformation matrix is defined by sequentially integrating these position transformation matrices, so regardless of the type or number of position transformations, automatic A programming device can easily perform desired positional transformations and edit MC data.
表3は位置変換指令コードおよび変換解除指令コードと
変換行列Mとの関係を概念的に示す一例であり、位置変
換指令コードによって位置変換行列が定義されていない
段階では、初期値がE(単位行列)である変換行列Mに
より、元データAが直接編集データとされ、位置変換指
令によって位置変換行列MOが定義されると変換行列M
に変換行列MOが積算され(ステップ5114)、変換
行列MはMOとなる。位置変換指令によって位置変換行
列MOが定義された後の元データBおよびCは変換行列
M (M=MO)によって位置変換され、編集データは
B−MOおよびC−MOとされる。そして、位置変換行
列MOが定義された後、別の位置変換指令によって位置
変換行列Mlが定義されると、変換行列M (M=MO
)に位置変換行列Mlが積算され(ステップS↑↑4)
、変換行列MはMO−Mlとなり、位置変換指令によっ
て位置変換指令旧が定義された後の元データDおよびF
は変換行列M (M=MO・Ml)によって位置変換さ
れ、編集データはD・MO・MlおよびF−MO・Ml
とされる。そして、変換解除指令が入力されると、定義
された最新の位置1
変換行列旧の逆行列Ml−’が変換行列M (M=MO
・Ml)に積算され(ステップ5119)、変換行列M
はMOとなり、最新の位置変換行列Mlが解除された後
の元データGは変換行列M (M=MO)によって位置
変換され、編集データはG−MOとされる。Table 3 is an example conceptually showing the relationship between the position conversion command code, conversion cancellation command code, and conversion matrix M. At the stage where the position conversion matrix is not defined by the position conversion command code, the initial value is E (unit: The original data A is directly edited data by the transformation matrix M, which is a matrix), and when the position transformation matrix MO is defined by the position transformation command, the transformation matrix M
The transformation matrix MO is multiplied by the transformation matrix MO (step 5114), and the transformation matrix M becomes MO. After the position transformation matrix MO is defined by the position transformation command, the original data B and C are position transformed by the transformation matrix M (M=MO), and the edited data are set as B-MO and C-MO. Then, after the position transformation matrix MO is defined, when the position transformation matrix Ml is defined by another position transformation command, the transformation matrix M (M=MO
) is multiplied by the position transformation matrix Ml (step S↑↑4)
, the transformation matrix M becomes MO-Ml, and the original data D and F after the position transformation command old is defined by the position transformation command.
is position-transformed by the transformation matrix M (M=MO・Ml), and the edited data is D・MO・Ml and F-MO・Ml
It is said that Then, when a conversion cancellation command is input, the latest defined position 1 transformation matrix old inverse matrix Ml-' is changed to the transformation matrix M (M=MO
・Ml) (step 5119), and the transformation matrix M
becomes MO, the original data G after the latest position transformation matrix Ml is released is position transformed by the transformation matrix M (M=MO), and the edited data becomes G-MO.
さらに、変換解除指令が入力されると、定義された最新
の位置変換行列MOの逆行列MO−lが変換行列M (
M=MO)に積算され(ステップ5119)、変換行列
MはEとなり、すべての位置変換行列が解除された後の
元データHは変換行列M (M=E)によって直接編集
データとされる。Furthermore, when a conversion cancellation command is input, the inverse matrix MO-l of the latest defined position transformation matrix MO is changed to the transformation matrix M (
M=MO) (step 5119), the transformation matrix M becomes E, and the original data H after all position transformation matrices are canceled is made into direct editing data by the transformation matrix M (M=E).
、3 z
表3゜
変換および解除と変換行列との関係
以上、元データが3次元NCデータである場合について
説明したが、元データが2次元NCデータである場合に
も上記とほぼ同様である。, 3 z Table 3゜Relationship between transformation and cancellation and transformation matrix The case where the original data is 3-dimensional NC data has been explained above, but it is almost the same as above when the original data is 2-dimensional NC data. .
この様にして作成された編集データ(表2参照)におい
ては、位置変換指令および変換解除指令が非実行データ
とされているため、実際の加工に際しては、表4に示さ
れるNCデータと同様の加ニブログラムが実行されるこ
ととなる。In the edited data created in this way (see Table 2), position conversion commands and conversion cancellation commands are treated as non-execution data, so during actual machining, the same NC data as shown in Table 4 must be used. The Canadian program will be executed.
表41編集データに基く加ニブログラム次に、編集デー
タに基いて元データを作成する元データ作成工程の逆変
換処理について説明する。Table 41 Canadian program based on edited data Next, the inverse conversion process of the original data creation step of creating original data based on the edited data will be explained.
なお、表2に示されるような編集データが逆変換処理の
対象としてRAM3に格納されているものとする。Note that it is assumed that the edited data shown in Table 2 is stored in the RAM 3 as a target of the inverse conversion process.
第2図は逆変換処理の概略を示すフローチャートであり
、逆変換処理のステップ8201〜ステツプS 206
.ステップ8208〜ステップS25
10、ステップ8212〜ステツプ5220は、それぞ
れ、データ変換処理(第1図参照)のステップ5101
〜ステツプ5106.S]、08〜ステツプS 110
.ステ・ソプS 112〜ステ・ツブ5120の処理に
対応する。但し、逆変換処理のステップ5212では各
レジスタに記憶された非実行の変換指令ブロック(G9
8PI・・・) 、(G98P2・・・)、(G 98
P 3・・・)から、位置変換行列Maの逆行列Ma
、即ち、非実行の変換指令ブロックに記憶された第1対
応点ia、 ia、 kaを第1基準点Xa、 VL
Hに移動させ、第2対応点ib、 jb、 kbを第
2基準点ib。FIG. 2 is a flowchart showing an outline of the inverse transformation process, and includes steps 8201 to S206 of the inverse transformation process.
.. Steps 8208 to S2510 and steps 8212 to 5220 are steps 5101 and 5220 of the data conversion process (see FIG. 1), respectively.
~Step 5106. S], 08 to step S110
.. This corresponds to the processing of STEP S 112 to STEP 5120. However, in step 5212 of the inverse conversion process, the unexecuted conversion command block (G9
8PI...), (G98P2...), (G98
P3...), the inverse matrix Ma of the position transformation matrix Ma
That is, the first corresponding points ia, ia, ka stored in the unexecuted conversion command block are converted into the first reference points Xa, VL.
H, and set the second corresponding points ib, jb, kb to the second reference point ib.
yb、 zbに移動させ、かつ、第3対応点ic、 i
c、 kcを第3基準点XC,VC,Hに移動させる逆
変換行列列Maが定義され、ステップ8216では非実
行の変換指令ブロック(G 98 P O・・・)から
ミラー変換のための位置変換行列Mbの逆行列Mb、即
ち、非実行の変換指令ブロックに記憶された任意の2点
id、 jd、 kdとxd、 yd、 xdとの
中間点に配置され該2点を結ぶ直線と直交するミラーに
よる逆変換行列Mb (実質的にMbと同一)が定義さ
れ、かつ、これら非実行の変換指令ブロック、および、
非実行のキャンセルブロック自体のデータはRAM3に
書込まれることがなく、データ変換処理のステップ51
07に対応する書込み処理であるステップ5207では
、逆変換された移動指令ブロックの点データおよびその
他のデータが元データとしてRAM3に書込まれること
となる。yb, zb, and the third corresponding points ic, i
An inverse transformation matrix Ma for moving c, kc to the third reference points XC, VC, H is defined, and in step 8216, the position for mirror transformation is determined from the unexecuted transformation command block (G 98 P O...). Inverse matrix Mb of transformation matrix Mb, that is, located at the midpoint between arbitrary two points id, jd, kd and xd, yd, xd stored in the unexecuted transformation command block, and orthogonal to the straight line connecting the two points. A mirror inverse transformation matrix Mb (substantially the same as Mb) is defined, and these unexecuted transformation command blocks, and
The data of the unexecuted cancel block itself is not written to the RAM 3, and step 51 of the data conversion process
In step 5207, which is a write process corresponding to step 07, the inversely transformed point data of the movement command block and other data are written into the RAM 3 as original data.
従って、表2に示されるような編集データに対して逆変
換処理を実行すると表5に示されるような元データが得
られる。Therefore, when inverse conversion processing is performed on the edited data as shown in Table 2, original data as shown in Table 5 is obtained.
表5.逆変換で得た元データ
表6は非実行とされた位置変換指令および変換解除指令
と逆変換行列Mとの関係を表3に対応さ6
せて概念的に示す一例であり、非実行の位置変換指令に
よって逆行列が定義されていない段階では、初期値がE
(単位行列)である逆変換行列Mにより、編集データ八
が直接元データとされ、非実行の位置変換指令によって
位置変換行列MOの逆行列MOが定義されると逆変換行
列「に逆行列MOが積算され(ステップ5214)、逆
変換行列MはMOとなる。非実行の位置変換指令によっ
て逆行列MOが定義された後の編集データB−MOおよ
びC−MOは逆変換行列M (M=MO)によって逆変
換され、元データはBおよびCとされる。そして、逆行
列MOが定義された後、別の非実行位置変換指令によっ
て逆行列目が定義されると、逆変換行列M (MMO)
に逆行列Mlが積算され(ステップS 214)、逆変
換行列ぶはMO−Mlとなり、非実行の位置変換指令に
よって逆行列Mlが定義された後の編集データD−MO
・MlおよびF−MO・Mlは逆変換行列M(M=MO
・Ml)によって逆変換され、元データはDおよびFと
される。そして、非実行の変換解除指令が人力されると
、定義された最新の逆行列M1の逆行列Mlが逆変換行
列M (M=M(1・Ml)に積算され(ステップ52
19)、逆変換行列MはMOとなり、最新の逆行列11
が解除された後の編集データG−MOは逆変換行列M
(M=MO)によって逆変換され、元データはGとされ
る。さらに、非実行の変換解除指令が入力されると、定
義された最新の逆行列VOの逆行列MOが逆変換行列M
(M=MO)に積算され(ステップ5219)、逆変
換行列MはEとなり、すべての逆行列が解除された後の
編集データHは逆変換行列M(M=E)によって直接元
データとされる。Table 5. Original data obtained from inverse transformation Table 6 is an example that conceptually shows the relationship between position transformation commands and transformation cancellation commands that were determined to be non-executable and the inverse transformation matrix M in correspondence with Table 3. At the stage where the inverse matrix is not defined by the position transformation command, the initial value is E.
Edit data 8 is directly used as original data by the inverse transformation matrix M which is a unit matrix, and when the inverse matrix MO of the position transformation matrix MO is defined by an unexecuted position transformation command, the inverse transformation matrix is integrated (step 5214), and the inverse transformation matrix M becomes MO.Edited data B-MO and C-MO after the inverse matrix MO is defined by the unexecuted position transformation command are the inverse transformation matrix M (M= MO), and the original data are set to B and C. Then, after the inverse matrix MO is defined, when the inverse matrix th is defined by another non-executable position transformation command, the inverse transformation matrix M ( MMO)
(step S214), the inverse transformation matrix becomes MO-Ml, and the edited data D-MO after the inverse matrix Ml is defined by the non-executed position transformation command.
・Ml and F-MO ・Ml is the inverse transformation matrix M (M=MO
・Ml), and the original data are converted to D and F. Then, when an unexecuted conversion cancellation command is manually input, the inverse matrix Ml of the latest defined inverse matrix M1 is integrated into the inverse transformation matrix M (M=M(1・Ml) (step 52
19), the inverse transformation matrix M becomes MO, and the latest inverse matrix 11
The edited data G-MO after is released is the inverse transformation matrix M
(M=MO), and the original data is set to G. Furthermore, when an unexecuted conversion cancellation command is input, the inverse matrix MO of the latest defined inverse matrix VO is changed to the inverse transformation matrix M
(M=MO) (step 5219), the inverse transformation matrix M becomes E, and the edited data H after all inverse matrices are canceled is directly converted into original data by the inverse transformation matrix M (M=E). Ru.
表6゜
逆変換および解除と逆変換行列との関係即ち、
本実施例の逆変換処理によれば、
非実行
データとして記憶された位置変換指令が読み込まれる毎
に、
データ変換処理において上記位置変換
9
指令で定義された位置変換行列に対応する逆行列が順次
算出され(ステップS2]−2,ステップ821.6)
、データ変換処理において位置変換行列が重複して定義
されている場合には、これらの位置変換行列に対応する
逆行列を順次積算して逆変換行列Mを求め(ステップ5
214)、非実行データとして記憶された位置変換指令
と変換解除指令との間で編集データに定義された点、即
ち、データ変換処理で位置変換された点に対し、上記逆
変換行列百を乗じて順次逆変換するようにしているので
(ステップ5218)、NCデータ編集工程で位置変換
されたデータに対してのみ逆変換が実行され、適正な元
データを確実に再生することができる。また、逆変換処
理においては、非実行データとされた位置変換指令や変
換解除指令がRAM3に元データとして書込まれること
はなく(ステップ5207)、本逆変換処理によって得
られた元データは、NCデータを編集するために付加し
た位置変換指令や変換解除指令を含まない最初のNCデ
ータとなる(表5参照)。Table 6: Relationship between inverse transformation and cancellation and inverse transformation matrix In other words, according to the inverse transformation process of this embodiment, each time a position transformation command stored as non-executable data is read, the above position transformation is performed in the data transformation process. 9 Inverse matrices corresponding to the position transformation matrix defined by the command are sequentially calculated (step S2]-2, step 821.6)
, when position transformation matrices are defined redundantly in the data transformation process, the inverse transformation matrix M is obtained by sequentially integrating the inverse matrices corresponding to these position transformation matrices (step 5).
214), the point defined in the edit data between the position conversion command and the conversion cancellation command stored as non-execution data, that is, the point whose position was transformed in the data conversion process, is multiplied by the above inverse transformation matrix 100. Since the reverse conversion is performed sequentially (step 5218), the reverse conversion is performed only on the data whose position has been converted in the NC data editing process, and proper original data can be reliably reproduced. Furthermore, in the inverse conversion process, position conversion commands and conversion cancellation commands that are considered non-executable data are not written to the RAM 3 as original data (step 5207), and the original data obtained by this inverse conversion process is This is the first NC data that does not include the position conversion command or conversion cancellation command added to edit the NC data (see Table 5).
U
本実施例によれば、NCデータ編集工程におけるデータ
変換処理で位置変換行列を定義するために付加された位
置変換指令や変換解除指令が非実行データとして編集デ
ータ中に記憶されるので、編集データから元データを算
出するための逆変換行列を自動プログラミング装置によ
って自動的に算出することができ、しかも、データ変換
処理の段階で位置変換の対象となったデータは、非実行
とされた位置変換指令コードと変換解除指令との間に定
義された点として容易に検出されるので、編集データに
基いて確実に元データを再生することができる。U According to this embodiment, the position conversion command and conversion cancellation command added to define the position conversion matrix in the data conversion process in the NC data editing process are stored in the edited data as non-executable data. An automatic programming device can automatically calculate the inverse transformation matrix for calculating the original data from the data, and in addition, the data that is subject to position transformation at the stage of data transformation processing is Since it is easily detected as a point defined between the conversion command code and the conversion cancellation command, the original data can be reliably reproduced based on the edited data.
従って、元データを基準として複数回の編集作業を行う
場合であっても、基準となる元データを一々保存してお
く必要はなく、自動プログラミング装置の実質的な記憶
容量を増大させることができる。Therefore, even if multiple editing operations are performed using the original data as a reference, there is no need to save each original data as a reference, and the actual storage capacity of the automatic programming device can be increased. .
発明の効果
本発明のNCデータ編集方式によれば、元データにプロ
グラムされた位置変換指令に基づいて位直変換行列が定
義され、変換解除指令が読込まれるまでの間、元データ
中に定義された点が上記位置変換行列に基いて自動的に
位置変換されるので、NCデータの編集工程において複
雑な手計算が必要とされず、迅速かつ確実に編集作業を
行うことができ、しかも、編集後のNCデータには編集
工程で位置変換行列を定義した位置変換指令と変換解除
指令とが非実行データとして保存されるので、編集デー
タから元データを算出するための逆変換行列を自動的に
算出することができ、かつ、編集工程で位置変換の対象
となったデータは、非実行とされた位置変換指令と変換
解除指令との間に定義された点として編集データから容
易に検出されるので、元データ作成工程において、位置
変換の対象となったデータを判別して適切な逆変換を施
すことができ、編集データに基いて確実に元データを再
生することができるので、基準となる元データを一々保
存しておく必要はな(、自動プログラミング装置の実質
的な記憶容量を増大させることができる。Effects of the Invention According to the NC data editing method of the present invention, a position conversion matrix is defined based on a position conversion command programmed in the original data, and until a conversion cancellation command is read, the position conversion matrix is defined in the original data. Since the positions of the calculated points are automatically transformed based on the above-mentioned position transformation matrix, complicated manual calculations are not required in the NC data editing process, and the editing work can be performed quickly and reliably. In the edited NC data, the position transformation command and transformation cancellation command that defined the position transformation matrix in the editing process are saved as non-execution data, so the inverse transformation matrix for calculating the original data from the edited data can be automatically created. The data that can be calculated and that is subject to positional transformation in the editing process can be easily detected from the edited data as a point defined between the positional transformation command that is not executed and the transformation cancellation command. Therefore, in the original data creation process, it is possible to determine the data that has been subject to positional transformation and perform appropriate inverse transformation, and the original data can be reliably reproduced based on the edited data. There is no need to store all original data (this can increase the effective storage capacity of the automatic programming device).
33
第1図は、本発明の一実施例のNCデータ編集工程を構
成するデータ変換処理の概略を示すフローチャート、第
2図は同実施例の元データ作成工程を構成する逆変換処
理の概略を示すフローチャート、第3図は本方式を実施
する一実施例の自動プログラミング装置の要部を示すブ
ロック図、第4図は同実施例における位置変換行列の作
用を概念的に説明する図、第5図は同実施例におけるミ
ラー変換のための位置変換行列の作用を概念的に説明す
る図、第6図は2つの位置変換行列が同時に定義された
ときの変換行列の作用を概念的に説明する図である。
1・・・プロセッサ(CPU)、2・・・ROM。
3・・・RAM、4・・・NCデータ記憶メモリ、5・
・・キーボード、6・・・ディスクコントローラ、7・
グラフィックデイスプレィ(CRT)、8・・・バス、
FLI、FL2・・・フロッピーディスク。
4FIG. 1 is a flowchart showing an outline of the data conversion process that constitutes the NC data editing process of one embodiment of the present invention, and FIG. 2 shows an outline of the inverse conversion process that constitutes the original data creation process of the same embodiment. Flowchart, FIG. 3 is a block diagram showing the main parts of an automatic programming device of an embodiment implementing this method, FIG. 4 is a diagram conceptually explaining the action of the position transformation matrix in the same embodiment, and FIG. 5 6 is a diagram conceptually explaining the action of the position transformation matrix for mirror transformation in the same embodiment, and FIG. 6 is a diagram conceptually explaining the action of the transformation matrix when two position transformation matrices are defined simultaneously. It is. 1... Processor (CPU), 2... ROM. 3...RAM, 4...NC data storage memory, 5.
...Keyboard, 6...Disk controller, 7.
Graphic display (CRT), 8... bus,
FLI, FL2...floppy disk. 4
Claims (1)
いて、元データとなるNCデータを順次読込み、元デー
タにプログラムされた位置変換指令に基づいて位置変換
行列を定義し、位置変換指令が読込まれてから変換解除
指令が読込まれるまでの間、元データ中に定義された点
を上記位置変換行列で順次位置変換し、非実行データと
して位置変換指令および変換解除指令を保存して編集デ
ータを作成するNCデータ編集工程と、逆変換指令が入
力された場合には、編集データを順次読込み、編集デー
タ中に非実行データとして保存された位置変換指令から
上記位置変換行列の逆変換行列を求め、非実行データと
された位置変換指令と変換解除指令との間で編集データ
中に定義された点を上記逆変換行列で順次逆変換し、編
集データを元データに変換する元データ作成工程とを備
えたことを特徴とするNCデータ編集方式。In the NC data editing method using an automatic programming device, the original NC data is read in sequence, a position conversion matrix is defined based on the position conversion command programmed in the original data, and a conversion cancellation command is issued after the position conversion command is read. NC data editing that sequentially transforms the positions of the points defined in the original data using the above position transformation matrix, and saves the position transformation command and transformation cancellation command as non-execution data to create edited data until the data is read. When a process and an inverse transformation command are input, the edited data is read sequentially, the inverse transformation matrix of the above position transformation matrix is calculated from the position transformation command saved as non-execution data in the edited data, and the inverse transformation matrix is converted into non-execution data. and an original data creation step of sequentially inversely transforming the points defined in the edited data between the position conversion command and the conversion cancellation command using the above-mentioned inverse transformation matrix, and converting the edited data into original data. Characteristic NC data editing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17408989A JPH0340108A (en) | 1989-07-07 | 1989-07-07 | Nc data editing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17408989A JPH0340108A (en) | 1989-07-07 | 1989-07-07 | Nc data editing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0340108A true JPH0340108A (en) | 1991-02-20 |
Family
ID=15972459
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17408989A Pending JPH0340108A (en) | 1989-07-07 | 1989-07-07 | Nc data editing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0340108A (en) |
-
1989
- 1989-07-07 JP JP17408989A patent/JPH0340108A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6442441B1 (en) | Method of automatically generating and verifying programmable logic controller code | |
| CZ200021A3 (en) | System for creating, changing and / or visualizing machine control programs | |
| JP3407490B2 (en) | Numerical control method and device | |
| JP4023978B2 (en) | Machine tool simulation device | |
| WO2022034848A1 (en) | Numerical control system and robot control method | |
| JPH0340108A (en) | Nc data editing system | |
| JPS61170807A (en) | Numerical controller | |
| JP2022132726A (en) | Program editing device and program | |
| WO1990015373A1 (en) | Nc data edition | |
| JP2021070065A (en) | Robot system | |
| JP4036151B2 (en) | Numerical control apparatus and numerical control method | |
| JPH0193805A (en) | Method for generating teaching data of robot | |
| JPH04217009A (en) | Method for teaching work program | |
| JPS63219009A (en) | Backlash correction system in full closed loop control | |
| JPH0563749U (en) | Numerical control device with processing time calculation function | |
| JPS63148307A (en) | NC information creation device | |
| JPH0340109A (en) | Nc data editing system | |
| JPS5827242A (en) | Controlling system between programs | |
| JPH04245503A (en) | Editing device for machining program | |
| JPH04157505A (en) | Method for commanding oblique surface working | |
| JPH039404A (en) | Nc data edition system | |
| JPH0659720A (en) | Deburring robot program generating method | |
| JPH03280103A (en) | Numerical controller | |
| JP2601835B2 (en) | How to check software potential lines | |
| JP3172846B2 (en) | Shape processing equipment |