JPH039404A - Nc data edition system - Google Patents

Nc data edition system

Info

Publication number
JPH039404A
JPH039404A JP14310589A JP14310589A JPH039404A JP H039404 A JPH039404 A JP H039404A JP 14310589 A JP14310589 A JP 14310589A JP 14310589 A JP14310589 A JP 14310589A JP H039404 A JPH039404 A JP H039404A
Authority
JP
Japan
Prior art keywords
data
conversion
points
mirror
transformation matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14310589A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ヶ原 隆史
Takeshi Aragaki
新垣 剛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP14310589A priority Critical patent/JPH039404A/en
Priority to US07/646,736 priority patent/US5297023A/en
Priority to PCT/JP1990/000745 priority patent/WO1990015373A1/en
Priority to EP19900908650 priority patent/EP0433460A1/en
Publication of JPH039404A publication Critical patent/JPH039404A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To rapidly and accurately edit NC data by successively applying conversion processing regulated by a conversion matrix to NC data and resetting converted NC data as edited NC data. CONSTITUTION:While referring to the initial screen, an operator stores a system program stored in a floppy disk(FL) 1 in a RAM 3 and sets up the program number of NC data to be edited in a CPU 1. The CPU 1 automatically defines a position converting matrix or a mirror converting matrix only by programming a command code for regulating conversion processing and data for concreting the conversion processing in the previously formed NC data and multiplies a point defined by the previously formed NC data by each of these conversion matrixes to allow an automatic programming device to automatically edit NC data. Consequently, the time required for the edition work of the NC data can be shortened and the reliability of the edited NC data itself can be improved.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、NCデータ編集方式、特に、3次元および2
次元で与えられたNCデータに対し各種の変換処理を施
してNCデータを自動編集するNCデータ編集方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to NC data editing methods, particularly three-dimensional and two-dimensional
The present invention relates to an NC data editing method that automatically edits NC data by performing various conversion processes on NC data given in dimensions.

従来の技術 従来、予め作成されたNCデータに対して各種の編集を
行う場合、例えば、デジタイザを使用して作成されたN
Cデータの位置ずれを位置変換補正して加工用のNCデ
ータを編集したり、既に作成されたNCデータにミラー
変換を施して新たなNCデータを編集するような場合に
は、予め作成されたNCデータおよび該NCデータの位
置ずれ量やミラーの設定位置等に応じ、NCデータ中に
定義された点の移動先を手計算で算出し、算出された移
動先の値をNCデータとして再設定することによって編
集作業を行っている。
BACKGROUND OF THE INVENTION Conventionally, when performing various edits on NC data created in advance, for example, N
When editing NC data for machining by correcting the positional deviation of C data, or when editing new NC data by performing mirror conversion on already created NC data, use the previously created NC data. Manually calculates the destination of the point defined in the NC data according to the NC data, the amount of positional deviation of the NC data, the set position of the mirror, etc., and resets the calculated destination value as the NC data. Editing is done by doing this.

発明が解決しようとした課題 上記従来技術ではNCデータを編集する際に複雑な手計
算が必要とされるのでNCデータの編集作業に多大な時
間を要し、また、手計算の段階で誤りが生じやすいため
、編集されたNCデータの信頼性が低いといった欠点が
ある。
Problems to be Solved by the Invention In the above-mentioned prior art, complicated manual calculations are required when editing NC data, so it takes a lot of time to edit the NC data, and errors occur during the manual calculation stage. Since this is likely to occur, there is a drawback that the reliability of the edited NC data is low.

本発明の課題は、これら従来技術の欠点を解消し、予め
作成されたNCデータに基いて迅速がっ正確にNCデー
タを編集することのできるNCデータ編集方式を提供す
ることにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an NC data editing method that eliminates these drawbacks of the prior art and allows NC data to be edited quickly and accurately based on previously created NC data.

課題を解決するための手段 本発明は、NCデータ編集時に実行すべき変換処理を規
定するコードと該変換処理を具体化するためのデータを
予め作成されたNCデータ中にプログラムし、予め作成
されたNCデータを自動プログラミング装置によって編
集する段階で、変換処理を規定するコードおよび該変換
処理を具体化するためのデータに基いて変換行列を求め
、変換行列が定義された以降のNCデータに対し、該変
換行列によって規定される変換処理を順次実行し、変換
されたNCデータを編集後のNCデータとして再設定す
ることにより、上記課題が解決される。
Means for Solving the Problems The present invention programs a code that defines a conversion process to be executed when editing NC data and data for embodying the conversion process into NC data created in advance. At the stage of editing the NC data that has been created using an automatic programming device, a transformation matrix is calculated based on the code that defines the transformation process and the data that embodies the transformation process. , the above problem is solved by sequentially executing the conversion process defined by the conversion matrix and resetting the converted NC data as edited NC data.

即ち、予め作成されたNCデータを位置変換補正して加
工用のNCデータを編集する場合には、任意の基準点と
該基準点を移動させる対応点を定義する位置変換指令コ
ードを設け、上記位置変換指令コードと共に、任意の基
準点とその基準点に対応する対応点をNCデータ中にプ
ログラムし、自動プログラミング装置によって、プログ
ラムされた基準点とその対応点より位置変換行列を求め
、上記位置変換指令コードで位置変換行列が定義された
後は、NCデータで定義された点を変換解除指令が読ま
れるまで上記位置変換行列で位置変換しNCデータを編
集するようにする。
That is, when editing NC data for machining by position conversion correction of NC data created in advance, a position conversion command code that defines an arbitrary reference point and a corresponding point to which the reference point is moved is provided, and the above An arbitrary reference point and a corresponding point corresponding to the reference point are programmed into the NC data along with a position conversion command code, and an automatic programming device calculates a position conversion matrix from the programmed reference point and its corresponding point. After the position conversion matrix is defined by the conversion command code, the positions of the points defined by the NC data are converted using the position conversion matrix until the conversion cancellation command is read, and the NC data is edited.

この場合、予め作成されたNCデータが3次元データで
あれば、位置変換を具体化するデータとして、3つの基
準点とその基準点に対応する対応点をNCデータ中にプ
ログラムし、プログラムされた3つの基準点とその対応
点より位置変換行列を求め、一方、予め作成されたNC
データが2次元データであれば、位置変換を具体化する
データとして、2つの基準点とその基準点に対応する対
応点をNCデータ中にプログラムし、プログラムされた
2つの基準点とその対応点より位置変換行列を求める。
In this case, if the NC data created in advance is three-dimensional data, three reference points and corresponding points corresponding to the reference points are programmed into the NC data as data that embodies the position conversion. A position transformation matrix is obtained from the three reference points and their corresponding points, while the previously created NC
If the data is two-dimensional data, two reference points and corresponding points corresponding to the reference points are programmed into the NC data as data that embodies the position transformation, and the two programmed reference points and their corresponding points are programmed into the NC data. Find the position transformation matrix.

また、既に作成されたNCデータにミラー変換を施して
新たなNCデータを編集する場合には、2点の中間点に
配置され該2点を結ぶ直線と直交するミラーによるミラ
ー変換行列を定義するためのミラー変換コードを設け、
上記ミラー変換コードと共に、任意の2点をNC’C−
データ中ログラムすることによりミラー変換行列を定義
し、ミラー定義後のNCデータを変換解除指令が読まれ
るまで全てミラー変換してNCデータを編集するように
する。
In addition, when editing new NC data by performing mirror transformation on already created NC data, define a mirror transformation matrix using a mirror placed at the midpoint between two points and perpendicular to the straight line connecting the two points. A mirror conversion code is provided for
With the mirror conversion code above, convert any two points to NC'C-
A mirror conversion matrix is defined by programming the data, and the NC data after the mirror definition is all mirror converted until a conversion cancellation command is read, and the NC data is edited.

更に、変換処理を規定するコードがNCデータ中に複数
同時にプログラムされた場合には、各コードおよび各コ
ードによって規定される変換処理を具体化するためのN
Cデータに基いて各コードに対応する変換処理の変換行
列を求め、各変換行列を乗じた変換行列を定義し、以降
のNCデータに対し、該変換行列によって規定される変
換処理を順次実行し、変換されたNCデータを編集後の
NCデータとして再設定することにより、上記課題が解
決される。
Furthermore, if multiple codes specifying conversion processing are simultaneously programmed into the NC data, N for embodying each code and the conversion processing specified by each code.
Find a transformation matrix for the transformation process corresponding to each code based on the C data, define a transformation matrix multiplied by each transformation matrix, and sequentially execute the transformation process specified by the transformation matrix on the subsequent NC data. The above problem is solved by resetting the converted NC data as edited NC data.

即ち、既に作成されたNCデータにミラー変換と位置変
換補正を同時にプログラムして新たなNCデータを編集
する場合には、上記ミラー変換コードおよび上記位置変
換指令コードによってミラー変換行列と位置変換行列を
定義し、上記ミラー変換行列と位置変換行列を乗じた変
換行列を求め、該変換行列が定義された後は、NCデー
タで定義された点を変換解除指令が読まれるまで上記変
換行列で変換しNCデータを編集するようにする。
That is, when editing new NC data by simultaneously programming mirror transformation and position transformation correction into already created NC data, the mirror transformation matrix and the position transformation matrix are created using the mirror transformation code and the position transformation command code. After the transformation matrix is defined, the points defined by the NC data are transformed with the transformation matrix until the transformation cancellation command is read. Edit the NC data.

作用 NCデータ編集時に実行すべき変換処理を規定するコー
ドと該変換処理を具体化するためのデータを予め作成さ
れたNCデータ中にプログラムする。
A code that defines the conversion process to be executed when editing the action NC data and data for embodying the conversion process are programmed into previously created NC data.

自動プログラミング装置は、NCデータにプログラムさ
れたコードと変換処理を具体化するためのデータに基い
て変換行列を求め、該変換行列が定義された後は、NC
データで定義された点を変換解除指令が読まれるまで上
記変換行列で変換しNCデータを編集する。また、変換
処理を規定するコードがNCデータ中に複数同時にプロ
グラムされた場合には、各コードおよび各コードによっ
て規定される変換処理を具体化するためのNCデータに
基いて各コードに対応する変換処理の変換行列を求め、
各変換行列を乗じた変換行列を定義し、NCデータで定
義された点を変換解除指令が読まれるまで上記変換行列
で変換してNCデータを編集する。
The automatic programming device obtains a transformation matrix based on the code programmed in the NC data and data for embodying the transformation process, and after the transformation matrix is defined, the
The points defined by the data are converted using the conversion matrix until the conversion cancellation command is read, and the NC data is edited. In addition, when multiple codes that specify conversion processing are programmed simultaneously in NC data, conversion corresponding to each code is performed based on the NC data to embody each code and the conversion processing specified by each code. Find the transformation matrix of the process,
A transformation matrix is defined by multiplying each transformation matrix, and the NC data is edited by transforming the points defined by the NC data using the transformation matrix until a transformation cancellation command is read.

実施例 以下、図面を参照して本発明の詳細な説明する。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データ
や編集されたNCデータを記憶する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 equipped with a storage area for storing the loaded system program and a storage area for storing the results of arithmetic processing by the CPU 1, and 4 is NC data for storing loaded NC data and edited NC data. A storage memory, 5 a keyboard, 6 a disk controller, and 7 a graphic display (hereinafter referred to as CRT), each of these elements 1 to 7 being connected by a bus 8.

FLI、FL2は外部記憶装置としてのフロッピーディ
スクであり、フロッピーディスクFLIには各種のシス
テムプログラムが格納され、フロッピーディスクFL2
には既に作成されたNCデータ等が保存されている。上
記フロッピーディスクFLIには、NCデータの作成・
修正を実行する従来通りの各種プログラムの他、本発明
の方式を実施するためのプログラム、即ち、rNCデー
タ編集処理プログラム」 (第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
Already created NC data etc. are stored in the . The above floppy disk FLI contains information for creating and
In addition to various conventional programs for executing corrections, a program for implementing the method of the present invention, that is, an "rNC data editing processing program" (see FIGS. 1 and 2) is stored as a system program.

以下、「NCデータ編集処理プログラム」の概要を示す
フローチャート第1図および第2図に基いて本方式の一
実施例を説明する。
Hereinafter, an embodiment of this method will be described based on flowcharts shown in FIGS. 1 and 2 showing an outline of the "NC data editing processing program".

自動プログラミング装置に電源を投入し、フロッピーデ
ィスク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.

オペレータは初期画面を参照し、「システムプログラム
」を選択するためのキーを操作して、フロッピーディス
クFLIに格納された「システムプログラム」をRAM
3に格納し、また、編集の対象となるNCデータのプロ
グラム番号をキーボード5を介してCPUIに設定する
。なお、編集の対象となるNCデータがNCデータ記憶
メモリ4内に記憶されていない場合は、当該NCデータ
を保存したフロッピーディスクFL2をディスクコント
ローラ6にセットする。
The operator refers to the initial screen and operates the key to select the "system program" to transfer the "system program" stored in the floppy disk FLI to the RAM.
3, and also sets the program number of the NC data to be edited on the CPUI via the keyboard 5. Note that if the NC data to be edited is not stored in the NC data storage memory 4, the floppy disk FL2 storing the NC data is set in the disk controller 6.

RAM3に格納された「システムプログラム」に従って
処理を開始したCPUIは、設定されたプログラム番号
に基き、編集の対象となるプログラム番号を有するNC
データをNCデータ記憶メモリ4もしくはフロッピーデ
ィスクFL2から読込んで元データとしてRAM3に格
納しくステップ5101)、元データの修正が必要であ
るか否かを問う旨のメツセージをCRT7の表示画面に
表示し、オペレータの判断および該判断に基くキー人力
を待つ待機状態に入る(ステップ8102)。元データ
の修正が必要であると判断され修正実行キーが操作され
た場合には、データ変換処理が実行された時にセットさ
れるフラグFをリセットしくステップ5103)、該自
動プログラミング装置のエディタ機能により、従来と同
様、通常のデータ修正処理を実行して元データを修正し
、修正された元データをRAM3に再格納しくステップ
5104)、再度、ステップ5102に復帰して、オペ
レータの判断およびキー人力を待機する。
The CPU that starts processing according to the "system program" stored in RAM 3 selects the NC that has the program number to be edited based on the set program number.
reads the data from the NC data storage memory 4 or the floppy disk FL2 and stores it in the RAM 3 as original data (step 5101), displays a message on the display screen of the CRT 7 asking whether or not the original data needs to be corrected; A standby state is entered in which it waits for the operator's judgment and key human power based on the judgment (step 8102). If it is determined that the original data needs to be corrected and the correction execution key is operated, the flag F that is set when the data conversion process is executed is reset (step 5103), and the editor function of the automatic programming device , as in the past, the original data is corrected by executing normal data correction processing, and the corrected original data is stored again in the RAM 3 (step 5104). wait.

元データの修正が更に必要であれば、再度、修正実行キ
ーを操作し、元データの修正が完了するまでステップ5
104のデータ修正処理を繰り返し実行する。
If further correction of the original data is necessary, operate the correction execution key again until the correction of the original data is completed in step 5.
The data correction process of 104 is repeatedly executed.

元データの修正が完了した場合、および、ステップ51
01でRAM3に格納された元データに修正の必要がな
い場合、元データを修正するかの問いに対し、「N」キ
ーが操作された場合には、ステップ5105に移行して
、データ変換処理が実行された時にセットされるフラグ
Fが既にセットされているか否かを判別するが、現段階
ではフラグFがセットされていないので、次いでスップ
5106に移行し、元データを編集するためのデータ変
換処理を開始する。
If the modification of the original data is completed, and step 51
If there is no need to modify the original data stored in the RAM 3 in step 01, if the "N" key is pressed in response to the question of whether to modify the original data, the process moves to step 5105 and data conversion processing is performed. It is determined whether flag F, which is set when is executed, has already been set. However, since flag F is not set at this stage, the process then moves to step 5106, and the data for editing the original data is determined. Start the conversion process.

以下、元データの修正が完了した段階で、最終的に、第
4図に示されるようなNCデータが元データとしてRA
M3に格納されているものとして説明を続ける。
After completing the modification of the original data, the NC data as shown in Fig. 4 is finally converted into RA as the original data.
The explanation will continue assuming that it is stored in M3.

第4図はRAM3に格納された元データとしてのNCデ
ータの一例を示す概念図であり、該NCデータのプログ
ラム番号は、r012345Jで示される。rGOIJ
は従来通りの直線補間コードでありX−Y−23次元座
標系上の2点間の直線補間を定義し、X Y Z で設
定された移動指令ブロックに対してモーダルに適用され
る。
FIG. 4 is a conceptual diagram showing an example of NC data as original data stored in the RAM 3, and the program number of the NC data is indicated by r012345J. rGOIJ
is a conventional linear interpolation code that defines linear interpolation between two points on the XY-23 dimensional coordinate system, and is modally applied to the movement command block set by XYZ.

「GD3・・・」は本実施例のために設けられた変換処
理を規定するためのコードであり、この内rG98PI
J〜rG98P3Jは位置変換指令コードであって、変
換処理を具体化するためにXYZ  でNCデータ中に
プログラムされた任意の基準点をIJK  で設定され
た対応点に移動させることを定義し、また、rG98P
OJはミラー変換コードであって、変換処理を具体化す
るためにX  Y Z およびI  J  K  でN
Cデータ中にプログラムされた任意の2点の中間点に配
置され該2点を結ぶ直線と直交するミラーによるミラー
変換を定義する。rG99Jは本実施例のために設けら
れた変換解除指令コードであり、変換処理を規定するた
めのコードによって定義された1つの変換処理を解除す
る機能を有する。
"GD3..." is a code for specifying the conversion process provided for this embodiment, and among these codes, rG98PI
J~rG98P3J is a position conversion command code, which defines moving an arbitrary reference point programmed in the NC data in XYZ to a corresponding point set in IJK in order to embody the conversion process, and , rG98P
OJ is a mirror conversion code, and in order to embody the conversion process, N
A mirror transformation by a mirror placed at the midpoint between two arbitrary points programmed in the C data and perpendicular to the straight line connecting the two points is defined. rG99J is a conversion cancellation command code provided for this embodiment, and has a function of canceling one conversion process defined by a code for specifying a conversion process.

rNCデータ編集処理プログラム」の一部であるデータ
変換処理を開始したCPUIは、まず、メモリMに単位
行列Eをセットし、指標iに0をセットして初期化しく
ステップ5201)、RAM3に格納された元データを
1ブロック読み込んで(ステップ5202)、今回読込
んだ1ブロツクのデータが元データの終了を示すブロッ
クであるか否かを判別する(ステップS 203)。第
4図に示される例では、まず、プログラム番号を示すr
o 12345Jが読込まれ、元データの終了を示すブ
ロックではないから、次いでステップ5204に移行し
て変換指令ブロックであるか否か、即ち、rG98Jの
指令コードを有するブロックであるか否かが判別される
が、変換指令ブロックではないから、次いでステップ5
205に移行して移動指令ブロックであるか否かが判別
される。
The CPU which started the data conversion process, which is part of the rNC data editing process program, first sets the unit matrix E in the memory M, initializes it by setting the index i to 0 (step 5201), and stores it in the RAM3. One block of the original data is read (step 5202), and it is determined whether the one block of data read this time is a block indicating the end of the original data (step S203). In the example shown in FIG. 4, first, r indicates the program number.
o 12345J is read, and since it is not a block indicating the end of the original data, the process moves to step 5204, where it is determined whether it is a conversion command block, that is, whether it is a block with a command code of rG98J. However, since it is not a conversion command block, step 5
The process moves to step 205, where it is determined whether or not it is a movement command block.

移動指令ブロックではないから、更に、ステップ820
6に移行して変換指令キャンセルブロックであるか否か
、即ち、「G99」の指令コードを有するブロックであ
るか否かが判別されるが、変換指令キャンセルブロック
ではないから、今回読込んだ1ブロツクのデータ、即ち
、プログラム番号であるro 12345Jがデータ変
換処理実行後のデータとして、RAM3の変換後データ
記憶領域に直接書込まれる(ステップS 207)。
Since it is not a movement command block, step 820
6, it is determined whether or not it is a conversion command cancellation block, that is, whether it is a block with a command code of "G99", but since it is not a conversion command cancellation block, the block 1 read this time The data of the block, that is, the program number ro 12345J is directly written into the post-conversion data storage area of the RAM 3 as data after the data conversion process has been executed (step S207).

次いで、CPUIは、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5202)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップS 203
)。第4図に示される例では、rG98PIXzaYy
aZraliaJjaKkaJが読込まれ、元データの
終了を示すブロックではないから、次いでステップ52
04に移行して変換指令ブロックであるか否か、即ち、
rG98Jの指令コードを有するブロックであるか否か
が判別される。当該ブロックはrG98Jの指令コード
を有する変換指令ブロックであるから、ステップ820
8に移行して、当該ブロックにおけるrG98Jの指令
コードに「PO」の修飾が付されているか否か、即ち、
ミラー変換コードであるか否かを判別する。当該ブロッ
クの指令コードには「PO」の修飾が付されておらずミ
ラー変換コードではないから、ステップ3209に移行
し、当該ブロックの指令コードに「P3」の修飾が付さ
れているか否かを判別するが、当該ブロックの指令コー
ドには「P3」の修飾が付されていないので、ステップ
5210に移行して、当該変換指令ブロック、即ち、位
置変換指令コード「098PIJと該コードによる位置
変換処理を具体化するためのデータである第1基準点の
座標rxa、 7a。
Next, the CPU reads the next block of the original data stored in the RAM 3 (step 5202), and determines whether the block of data read this time is a block indicating the end of the original data (step 5202). Step S 203
). In the example shown in FIG. 4, rG98PIXzaYy
aZraliaJjaKkaJ is read, and since it is not a block indicating the end of the original data, step 52 is then executed.
04 and determines whether it is a conversion command block, that is,
It is determined whether the block has an instruction code of rG98J. Since the block is a conversion command block having the command code rG98J, step 820
8, whether or not the rG98J command code in the block is modified with "PO", that is,
Determine whether it is a mirror conversion code. Since the command code of the relevant block is not modified with "PO" and is not a mirror conversion code, the process moves to step 3209, and it is determined whether the command code of the relevant block is modified with "P3". However, since the command code of the block is not modified with "P3", the process moves to step 5210 and executes the conversion command block, that is, the position conversion command code "098PIJ" and the position conversion process using the code. The coordinates rxa, 7a of the first reference point are data for embodying.

zaJ 、および、該第1基準点を移動させる対応点で
ある第1対応点の座標「ia、 ja、 kaJをレジ
スタに一時記憶する。
zaJ and the coordinates "ia, ja, kaJ" of the first corresponding point to which the first reference point is to be moved are temporarily stored in a register.

次いで、CPU1は、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5202)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップ5203)
。第4図に示される例テハ、rG98 P2XxbY7
bZxbI ibJ 1bKkbJが読込まれ、元デー
タの終了を示すブロックではないから、次いでステップ
5204に移行して変換指令ブロックであるか否か、即
ち、rG98Jの指令コードを有するブロックであるか
否かが判別される。当該ブロックはrG98jの指令コ
ードを有する変換指令ブロックであるから、ステップ8
208に移行して、当該ブロックにおけるrG98Jの
指令コードにrPOJの修飾が付されているか否か、即
ち、ミラー変換コードであるか否かを判別する。当該ブ
ロックの指令コードにはrPOJの修飾が付されておら
ずミラー変換コードではないから、ステップ5209に
移行し、当該ブロックの指令コードに「P3」の修飾が
付されているか否かを判別するが、当該ブロックの指令
コードには「P3」の修飾が付されていないので、ステ
ップ5210に移行して、当該変換指令ブロック、即ち
、位置変換指令コード「698P2Jと該コードによる
位置変換処理を具体化するためのデータである第2基準
点の座標rxb、 7b。
Next, the CPU 1 reads the next block of the original data stored in the RAM 3 (step 5202), and determines whether the block of data read this time is a block indicating the end of the original data (step 5202). Step 5203)
. The example shown in FIG. 4, rG98 P2XxbY7
bZxbI ibJ 1bKkbJ is read, and since it is not a block indicating the end of the original data, the process moves to step 5204, where it is determined whether it is a conversion command block, that is, whether it is a block with a command code of rG98J. be done. Since the block is a conversion command block having the rG98j command code, step 8
In step 208, it is determined whether the rG98J command code in the block is modified with rPOJ, that is, whether it is a mirror conversion code. Since the command code of the block is not modified with rPOJ and is not a mirror conversion code, the process moves to step 5209, and it is determined whether the command code of the block is modified with "P3". However, since the command code of the block is not modified with "P3", the process moves to step 5210 and specifically executes the conversion command block, that is, the position conversion command code "698P2J" and the position conversion process using this code. The coordinates of the second reference point, rxb, 7b, which are the data for converting.

zb」、および、該第2基準点を移動させる対応点であ
る第2対応点の座標rib、 ib、 kbJをレジス
タに一時記憶する。
zb'' and the coordinates rib, ib, kbJ 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.

次いで、CPU1は、RAM3に格納された元データの
次の1ブロツクを読込んで(ステップ5202)、今回
読込んだ1ブロツクのデータが元データの終了を示すブ
ロックであるか否かを判別する(ステップ5203)。
Next, the CPU 1 reads the next block of the original data stored in the RAM 3 (step 5202), and determines whether the block of data read this time is a block indicating the end of the original data (step 5202). Step 5203).

第4図に示される例では、rG98P3X其Y長Z廿I
圓J圓に秤」が読込まれ、ステップ5203,5204
,5208から、ステップ5209に移行し、当該ブロ
ックの指令コードに「P3」の修飾が付されているか否
かを判別する。当該ブロックの指令コードには「P3」
の修飾が付されており、これは、1つの位置変換行列を
定義するための各種データがすべて読込まれ記憶されて
いることを意味する。
In the example shown in FIG.
"Weigher" is read and steps 5203 and 5204
, 5208, the process moves to step 5209, and it is determined whether or not the command code of the block is modified with "P3". The command code for the block is "P3"
This means that all the various data for defining one position transformation matrix have been read and stored.

そこで、CPU1はステップ5211に移行して、これ
までの処理で各レジスタに記憶されたデータ、よび、今
回読込んだ1ブロツクの位置変換指令ブロック、rG9
8P3XxcY7cZxcIicJjcKkcJに基づ
いて、1つの位置変換行列Maを算出する。
Therefore, the CPU 1 moves to step 5211, and stores the data stored in each register in the previous processing, the position conversion command block of one block read this time, and rG9.
One position conversion matrix Ma is calculated based on 8P3XxcY7cZxcIicJjcKkcJ.

即ち、ステップ5211の処理では、元データにプログ
ラムされた第1基準点[xa、 ya、 xaJを第1
対応点ria、 ia、 kaJに移動させ、第2基準
点rxb、 7b、 zbJを第2対応点rib、 j
b、 kbJに移動させ、かつ、第3基準点rxc、 
7c、 rcJを第3対応点ric、 jc、 kcj
に移動させるための位置変換行列Maが定義される。第
5図は位置変換行列Maの作用を簡単に説明する概念図
であり、該位置変換行列MaはX−Y−23次元座標系
上の前記3つの基準点をこれに対応する3つの対応点に
1対1対応させて移動する変換行列であって、基準点と
対応点との位置関係を示す平行移動および回転移動によ
って一義的に定義される。従って、上記X−Y−23次
元座標系上の任意点を示すNCデータ「x、y、tJと
該任意点に上記位置変換行列Maを乗じて得た移動点r
x’、 y’、 xJとの関係は上記基準点と対応点と
の関係に等しい。
That is, in the process of step 5211, the first reference points [xa, ya, xaJ programmed in the original data are
Move the corresponding points ria, ia, kaJ and move the second reference points rxb, 7b, zbJ to the second corresponding points rib, j
b, move to kbJ, and move to the third reference point rxc,
7c, rcJ to the third corresponding points ric, jc, kcj
A position transformation matrix Ma is defined for moving to . FIG. 5 is a conceptual diagram that briefly explains the action of the position transformation matrix Ma. The position transformation matrix Ma converts the three reference points on the X-Y-23-dimensional coordinate system into three corresponding points. It is a transformation matrix that moves in a one-to-one correspondence with the reference point, and is uniquely defined by translational movement and rotational movement that indicate the positional relationship between the reference point and the corresponding point. Therefore, the moving point r obtained by multiplying the NC data x, y, tJ indicating an arbitrary point on the X-Y-23-dimensional coordinate system and the arbitrary point by the position transformation matrix Ma
The relationship between x', y', and xJ is the same as the relationship between the reference point and the corresponding point.

このようにして位置変換行列Maを定義したCPUIは
、位置変換行列Maを指標iによって示されるメモリM
i1即ち、メモリMOに記憶しくステップ5212)、
メモリMの行列にメモリ〜10の行列を乗じた行列をメ
モリMに再記憶しくステップ5213)、指標iの値を
インクリメントして、次ぎに定義される変換行列を記憶
するメモリMiを確保する(ステップS 214)。メ
モリMの初期値は単位行列Eであるから、現在、メモリ
Mには位置変換行列Maが記憶されていることになる。
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 i.
i1, i.e., stored in the memory MO (step 5212),
The matrix obtained by multiplying the matrix of memory M by the matrix of memory ~10 is stored again in memory M (step 5213), the value of index i is incremented, and the memory Mi is secured to store the transformation matrix defined next (step 5213). Step S214). Since the initial value of the memory M is the unit matrix E, the position conversion matrix Ma is currently stored in the memory M.

次いで、CPU1は、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5202)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップS 203
)。第4図に示される例テハ、rG98POXxdYy
dZxdIidJidKkdJが読込まれ、元データの
終了を示すブロックではないから、次いでステップ52
04に移行して変換指令ブロックであるか否か、即ち、
「GD3」の指令コードを有するブロックであるか否か
が判別される。当該ブロックはrG98Jの指令コード
を有する変換指令ブロックであるから、ステップ520
8に移行して、当該ブロックにおけるrG98Jの指令
コードに「PO」の修飾が付されているか否か、即ち、
ミラー変換コードであるか否かを判別する。当該ブロッ
クの指令コードはrPOJの修飾が付されたミラー変換
コードを有するから、CPU1はステップ5214に移
行して、今回読込んだ変換指令ブロック、rG98PO
XXdY7dZzdlidJ jdKkdJ l:基ツ
イテ、1つのミラー変換行列Mbを算出する。
Next, the CPU 1 reads the next block of the original data stored in the RAM 3 (step 5202), and determines whether the block of data read this time is a block indicating the end of the original data (step 5202). Step S 203
). The example shown in FIG. 4 is rG98POXxdYy
dZxdIidJidKkdJ is read, and since it is not a block indicating the end of the original data, next step 52
04 and determines whether it is a conversion command block, that is,
It is determined whether the block has a command code of "GD3" or not. Since the block is a conversion command block having the command code rG98J, step 520
8, whether or not the rG98J command code in the block is modified with "PO", that is,
Determine whether it is a mirror conversion code. Since the command code of the block has a mirror conversion code modified with rPOJ, the CPU 1 moves to step 5214 and converts the currently read conversion command block, rG98PO
XXdY7dZzdlidJ jdKkdJ l: Base tweet, calculate one mirror transformation matrix Mb.

即ち、ステップ5215の処理では、元データにプログ
ラムされた任意の2点「xd、 yd、 zdJとri
d、  jd、 kdJの中間点に配置され該2点を結
ぶ直線と直交するミラーによるミラー変換行列Mbが定
義される。第6図はミラー変換行列Mbの作用を簡単に
説明する概念図であり、該ミラー変換行列MbはX−Y
−23次元座標系上の任意の2点rxd、 7d、 x
dJとrid、 id、 kdJの中間点に配置され該
2点を結ぶ直線と直交する平面πを基準としたミラー変
換を示し、第6図に示される例では点(11’ 、 Y
l’ 、 !+’ )が点(x+I1. yel+!+
l+)に変換され、点(!2’ 、 Y2’ 、 !2
’ )が点(x2”、 Y2”、 !2”)に変換され
、かつ、点(!3’ 、 Y3’ 、  x3’ )が
点(X3”、 Y3”、  23”)に変換されること
となる。ミラー変換行列Mbは平面πによって一義的に
定義される変換行列である。
That is, in the process of step 5215, arbitrary two points "xd, yd, zdJ and ri" programmed in the original data are
A mirror transformation matrix Mb is defined by a mirror placed at the midpoint of d, jd, and kdJ and perpendicular to the straight line connecting the two points. FIG. 6 is a conceptual diagram briefly explaining the action of the mirror transformation matrix Mb, and the mirror transformation matrix Mb is
-2 Any two points on the 3-dimensional coordinate system rxd, 7d, x
The mirror transformation is shown based on the plane π, which is placed at the midpoint between dJ, rid, id, and kdJ and is orthogonal to the straight line connecting these two points. In the example shown in FIG.
l',! +') is the point (x+I1. yel+!+
l+), and the point (!2', Y2', !2
) is converted to a point (x2”, Y2”, !2”), and the point (!3’, Y3’, x3’) is converted to a point (X3”, Y3”, 23”) becomes. The mirror transformation matrix Mb is a transformation matrix uniquely defined by the plane π.

このようにしてミラー変換行列Mbを定義したCPUI
は、ミラー変換行列Mbをインクリメントされた指標i
によって示されるメモリMi1即ち、メモリM1に記憶
しくステップ5216)、メモリMの行列にメモリM1
の行列を乗じた行列をメモリMに再記憶しくステップ5
213)、指標iの値をインクリメントして、次に定義
される変換行列を記憶するメモリを確保する(ステップ
5214)。従って、現在、メモリMには位置変換行列
Maとミラー変換行列Mbとを乗じた行列が記憶され、
位置変換とミラー変換が同時に定義されたことになり、
また、指標iの値は2に更新されたことになる。
CPU that defined the mirror transformation matrix Mb in this way
is the incremented index i of the mirror transformation matrix Mb
(step 5216), the memory M1 is stored in the memory M1 indicated by
Step 5: Restore the matrix multiplied by the matrix in memory M.
213), the value of index i is incremented to reserve memory for storing the transformation matrix defined next (step 5214). Therefore, the memory M currently stores a matrix obtained by multiplying the position transformation matrix Ma and the mirror transformation matrix Mb,
This means that position transformation and mirror transformation are defined at the same time,
Also, the value of the index i has been updated to 2.

次いで、C−P U 1は、RAM3に格納された元デ
ータの次の1ブロツクを読み込んで(ステップ5202
)、今回読込んだ1ブロツクのデータが元データの終了
を示すブロックであるか否かを判別する(ステップ52
03)。第4図に示される例では、r G OI Xx
lYylZ xlJが読込まれ、元データの終了を示す
ブロックではないから、次いでステップ5204に移行
して変換指令ブロックであるか否か、即ち、rG98J
の指令コードを有するブロックであるか否かが判別され
るが、変換指令ブロックではないから、次いでステップ
5205に移行して移動指令ブロックであるか否かが判
別される。当該ブロックは移動指令ブロックであるから
、ステップ5217に移行して、今回読込んだ1ブロツ
クによって定義された移動指令点、即ち、点rxl、 
yl、 IIIに対して変換処理を実行する。即ち、C
PUIは、元データに設定された移動指令点データrx
l、 yl、 IIIにメモリMに記憶されている変換
行列を乗じて変換後の位a l”Xl”、 71”、 
!l″Jを求める。メモリMに記憶されている変換行列
は位置変換行列Maとミラー変換行列Mbとを乗じた行
列であるから、点rx1. yl、 IIIに対し位置
変換とミラー変換が同時に実行されることとなる。第7
図はメモリMに記憶されている変換行列によって実行さ
れる変換処理を概念的に示す図であり、点rrl、 Y
l、 IIIは位置変換行列Maによって点rxl’ 
、 yl’21′」の位置に位置変換されると共に、点
rxl、II 、 zll Jの位置から、更に、平面
πを基準としたミラー変換行列Mbによって点rxi”
、 71”xi”jの位置に変換されることとなる。但
し、CPUIの作業においては、メモリMに予め位置変
換行列Maとミラー変換行列Mbとを乗じた行列が記憶
されているため、移動指令点データ「!1゜yl、xl
JとメモリMに記憶された変換行列とに基づき変換後の
位置rxt”+ yl”、xl” Jが直ちに算出され
る。
Next, CPU 1 reads the next block of original data stored in RAM 3 (step 5202).
), it is determined whether one block of data read this time is a block indicating the end of the original data (step 52).
03). In the example shown in FIG. 4, r G OI Xx
Since lYylZ xlJ is read and is not a block indicating the end of the original data, the process moves to step 5204 and checks whether it is a conversion command block, that is, rG98J
However, since it is not a conversion command block, the process proceeds to step 5205, where it is determined whether it is a movement command block. Since the block in question is a movement command block, the process moves to step 5217, and the movement command point defined by the block read this time, that is, the point rxl,
Conversion processing is performed on yl and III. That is, C
PUI is the movement command point data rx set in the original data.
Multiply l, yl, III by the transformation matrix stored in memory M to obtain the transformed position a l"Xl", 71",
! Find l''J. Since the transformation matrix stored in the memory M is a matrix obtained by multiplying the position transformation matrix Ma and the mirror transformation matrix Mb, the position transformation and mirror transformation are performed simultaneously for the points rx1.yl, III. 7th
The figure conceptually shows the transformation process performed by the transformation matrix stored in the memory M, where the points rrl, Y
l, III are points rxl' by the position transformation matrix Ma
, yl'21', and from the positions of the points rxl, II, zll J, the point rxi' is further transformed by the mirror transformation matrix Mb with the plane π as a reference.
, 71"xi"j. However, in the CPUI operation, since a matrix obtained by multiplying the position transformation matrix Ma and the mirror transformation matrix Mb is stored in advance in the memory M, the movement command point data "!1゜yl, xl
Based on J and the transformation matrix stored in memory M, the transformed position rxt"+yl",xl"J is immediately calculated.

今回読込んだ1ブロツクによって定義された移動指令点
rxl、 yl、 IIIに変換処理を施して変換後の
位置rxl”、 、III、 zIIIJを算出したC
PU1は、変換後の位置rxl”、 71”、 Yl”
Jを変換処理実行後のデータとして、RAM3の変換後
データ記憶領域に書込む(ステップS 207)。
The movement command points rxl, yl, III defined by the 1 block read this time are converted and the converted positions rxl'', , III, zIIIJ are calculated.
PU1 is the position after conversion rxl”, 71”, Yl”
J is written into the converted data storage area of the RAM 3 as data after execution of the conversion process (step S207).

次いで、CPUIは、元データの次の1ブロツクを読込
み(ステップ5202)、上記と同様、ステップ520
2−ステップ5203−ステップ5204−ステップ5
205−ステップ5217−ステップ5207の処理を
実行し、元データに設定された移動指令点データrx2
. T2. !2Jおよびrx3. y3. z3Jの
変換後の位置「、2+ + 、 、211x2’lおよ
びrx3″I、 y3+1..311Jを算出しくステ
ップ5217)、変換処理実行後のデータとして、RA
M3の変換後データ記憶領域に書込む(ステップ520
7)。第8図はRAM3の変換後データ記憶領域に書込
まれたデータを示す概念図であり、現段階において、上
記変換後データ記憶領域には、変換されずに元データの
まま書込まれたプログラム番号r012345J、直線
補間コードであるrGOIJ、および、ステップ521
7の処理によって元データから変換された点の位B r
xl”、 71”、 !1”J 、  rx2″、 7
2”、 !2”Jrx3”、 73”、 !3” Jが
書込まレテイル。
Next, the CPUI reads the next block of the original data (step 5202), and then proceeds to step 520 in the same manner as above.
2-Step 5203-Step 5204-Step 5
205-Step 5217-Execute the processing of step 5207 and move command point data rx2 set in the original data
.. T2. ! 2J and rx3. y3. The converted position of z3J is ``, 2+ + , , 211x2'l and rx3''I, y3+1. .. 311J is calculated (Step 5217), RA
Write to the converted data storage area of M3 (step 520
7). FIG. 8 is a conceptual diagram showing the data written to the converted data storage area of RAM 3. At this stage, the program written as original data without being converted is stored in the converted data storage area. number r012345J, linear interpolation code rGOIJ, and step 521
The position of the point B r converted from the original data by the process in step 7
xl”, 71”, ! 1”J, rx2”, 7
2”, !2”Jrx3”, 73”, ! 3” J is written on the letter.

次いで、CPUIは、RAM3に格納された元データの
次の1ブロツクを読み込んで(ステップ5202)、今
回読込んだ1ブロツクのデータが元データの終了を示す
ブロックであるか否かを判別する(ステップS 203
)。第4図に示される例では、rG99Jが読込まれ、
元データの終了を示すブロックではないから、次いでス
テップ5204に移行して変換指令ブロックであるか否
か、即ち、l’−G98Jの指令コードを有するブロッ
クであるか否かが判別されるが、変換指令ブロックでは
ないから、次いでステップ5205に移行して移動指令
ブロックであるか否かが判別される。
Next, the CPU reads the next block of the original data stored in the RAM 3 (step 5202), and determines whether the block of data read this time is a block indicating the end of the original data (step 5202). Step S 203
). In the example shown in FIG. 4, rG99J is loaded,
Since the block does not indicate the end of the original data, the process then proceeds to step 5204, where it is determined whether it is a conversion command block, that is, whether it is a block with a command code of l'-G98J. Since it is not a conversion command block, the process then proceeds to step 5205, where it is determined whether it is a movement command block.

移動指令ブロックではないから、更に、ステップ820
6に移行して変換指令キャンセルブロックであるか否か
、即ち、「G99」の指令コードを有するブロックであ
るか否かが判別される。当該ブロックはrG99Jの指
令コードを有する変換指令キャンセルブロックであるか
ら、ステップ5218に移行して、メモリMに記憶され
た変換行列に指標iで示されるメモリM(i−1)、即
ち、現在はメモリM1であって、1つの変換行列を記憶
した最新のメモリに記憶された変換行列の逆行列、即ち
、ミラー変換行列 Mbの逆行列を乗じ、得られた行列
をメモリMに再記憶する。従って、現在メモリMに記憶
されている変換行列は、Ma*Mb*Mb−’=Maと
なり、ミラー変換のための定義が解除されたことを意味
し、位置変換行列Maによる位置変換のための定義のみ
が有効となる。従って、メモリM1にミラー変換行列M
bを記憶させておく必要はなく、CPU1は、指標iの
値をディクリメントしてi=1とし、メモリMlを、次
に定義される変換行列のためのメモリとして確保する(
ステップS 219)。
Since it is not a movement command block, step 820
6, it is determined whether the block is a conversion command cancel block, that is, whether the block has a command code of "G99". Since the block in question is a conversion command cancellation block having the command code rG99J, the process moves to step 5218, and the memory M(i-1) indicated by the index i in the conversion matrix stored in the memory M, that is, the current The memory M1 is multiplied by the inverse matrix of the transformation matrix stored in the latest memory that stores one transformation matrix, that is, the inverse matrix of the mirror transformation matrix Mb, and the obtained matrix is stored again in the memory M. Therefore, the transformation matrix currently stored in the memory M is Ma*Mb*Mb-'=Ma, which means that the definition for mirror transformation has been canceled, and the transformation matrix for position transformation by the position transformation matrix Ma is Only the definition is valid. Therefore, the mirror transformation matrix M is stored in the memory M1.
There is no need to store b, and the CPU 1 decrements the value of the index i so that i=1, and reserves the memory Ml as a memory for the transformation matrix defined next (
Step S219).

次いで、CPU1は、RAM3に格納された元データ、
即ち、rG99Jを読込み(ステップ5202)、上記
と同様にして、ステップ5203−ステップ8204−
ステップ5205−ステップ8206の判別処理を実行
した後、再度、ステップ5218の処理を実行する。即
ち、CPUIは、メモリMに記憶された変換行列に指標
iで示されるメモリM(i−1)、即ち、現在はメモリ
MOであって、1つの変換行列を記憶した最新のメモリ
に記憶された変換行列の逆行列、即ち、位置変換行列M
aの逆行列を乗じ、得られた行列をメモリMに再記憶す
る。従って、現在メモリMに記憶されている変換行列は
、Ma*Ma−’=Eとなり、ミラー変換のための定義
に引続いて位置変換のための定義が解除されたことを意
味し、メモIJ Mの値は単位行列Eとなって初期状態
に復帰する。従って、メモリMOに位置変換行列Maを
記憶させておく必要はなく、CPUIは、指標iの値を
ディクリメントしてi=0とし、メモリMOを、次に定
義される変換行列のためのメモリとして確保する(ステ
ップ5219)。
Next, the CPU 1 reads the original data stored in the RAM 3,
That is, rG99J is read (step 5202), and in the same manner as above, steps 5203-step 8204-
After performing the determination processing in steps 5205 to 8206, the processing in step 5218 is performed again. That is, the CPUI stores the transformation matrix stored in the memory M(i-1) indicated by the index i, that is, the current memory MO, which is the latest memory that stores one transformation matrix. The inverse matrix of the transformation matrix, that is, the position transformation matrix M
Multiply the inverse matrix of a and store the resulting matrix back into memory M. Therefore, the transformation matrix currently stored in the memory M is Ma*Ma-'=E, which means that the definition for the position transformation has been canceled following the definition for the mirror transformation. 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, and the CPU decrements the value of the index i so that i=0, and sets the memory MO as a memory for the transformation matrix to be defined next. (Step 5219).

以下、CPUIは、上記と同様にして、RAM3に格納
された元データの次の1ブロツクを順次読込み(ステッ
プ5202)、当該ブロックが元データの終了を示すも
のであるか否かを判別しくステップ5203)、読込ま
れたブロックが変換指令ブロック「G98・・・」であ
り(ステップ5204)、かつ、位置変換指令コードr
G98PIJ、rG98P2J、rG98P3Jを有す
るブロックであれば、第1基準点と第1対応点、および
、第2基準点と第2対応点、並びに、第3基準点と第3
対応点を順次読込んで記憶し、これらの点のデータから
位置変換行列Maを算出して位置変換を定義しくステッ
プ5211)、また、ミラー変換コードrG 98 P
 OJを有するブロックであれば、元データに設定され
た任意の2点に基づいてミラー変換行列Mbを算出して
ミラー変換を定義しくステップ5215)、定義された
変換行列を順次新規のメモリMiに記憶すると共に(ス
テップS 212.ステップ5216)、初期値が単位
行列EであるメモIJ Mに上記定義された変換行列を
乗じて再記憶することにより、定義された変換行列の数
や種類に関わりなく、これらの変換行列を合成したもの
と同値な変換行列Mを作成して定義しくステップ521
3)、指標iの値をインクリメントしくステップ521
4)、移動指令ブロックを示すrGOIJの指令コード
が読込まれた段階で(ステップ5205)、該指令コー
ドrGOIJに続く元データの定義点データに上記変換
行列Mを乗じて変換処理を施しくステップ5217) 
、RAM3の変換後データ記憶領域に順次書込む一方(
ステップ5207)、変換指令キャンセルブロックが読
込まれたときには上記変換行列Mに最新の変換行列を記
憶するメモリM(i−1)の逆行列を乗じて該メモリM
に再記憶することにより、定義された最新の変換行列の
みを解除しくステップ5218)、また、読込まれた1
ブロツクの元データが変換指令ブロックでも移動指令ブ
ロックでも変換指令キャンセルブロックでもない場合に
は、読込まれた1ブロツクの元データを変換処理実行後
のデータとして直接RAM3の変換後データ記憶領域に
書込むこととなる(ステップS 206.ステップ52
07)。
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 5202), and determines whether or not the block indicates the end of the original data. 5203), the read block is the conversion command block "G98..." (step 5204), and the position conversion command code r
If the block has G98PIJ, rG98P2J, rG98P3J, 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
The corresponding points are sequentially read and stored, and the position transformation matrix Ma is calculated from the data of these points to define the position transformation (step 5211), and the mirror transformation code rG 98 P
If the block has OJ, the mirror transformation matrix Mb is calculated based on two arbitrary points set in the original data and the mirror transformation is defined (Step 5215), and the defined transformation matrix is sequentially stored in the new memory Mi. At the same time as storing (Step S212. Step 5216), the memo IJM whose initial value is the unit matrix E is multiplied by the transformation matrix defined above and stored again, so that the number and type of transformation matrices defined are not affected. Instead, create and define a transformation matrix M that is equivalent to the composite of these transformation matrices.
3) Increment the value of index i step 521
4) At the stage where the command code of rGOIJ indicating the movement command block is read (step 5205), the definition point data of the original data following the command code rGOIJ is multiplied by the conversion matrix M to perform a conversion process, and step 5217 )
, while sequentially writing to the converted data storage area of RAM3 (
Step 5207), 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, and the memory M
5218), and also the read one
If the original data of the block is neither a conversion command block, a movement command block, nor a conversion command cancel block, the read original data of one block is written directly to the post-conversion data storage area of RAM 3 as the data after execution of the conversion process. (Step S 206. Step 52
07).

また、第9図は元データの別の例を示す概念図であり、
ミラー変換コードrG98POJが設定されていない点
が第4図の例とは異なる。
Moreover, FIG. 9 is a conceptual diagram showing another example of the original data,
This example differs from the example shown in FIG. 4 in that the mirror conversion code rG98POJ is not set.

この場合、データ変換処理においては、元データにプロ
グラムされた第1基準点「xa、 7a、 zaJを第
1対応点ria、 ja、 kaJに移動させ、第2基
準点「xb、 7b、 rbJを第2対応点rib、 
 ib、 kbJに移動させ、かつ、第3基準点rIe
、 7c、 rcJを第3対応点ric、 ic、 k
cJに移動させるための位置変換行列Maのみが定義さ
れ、第7図に示されるような位置変換Maにより、RA
M3の変換後データ記憶領域にはプログラム番号「Q 
12345」、直線補間コードである「Gol」、およ
び、元データに位置変換行列Maを乗じて変換した点の
位置rxl’ 、 yl’ 、 xl’ J 、  r
x2’ 、 y2’!2’ J 、  rx3’ 、 
y3’ 、 x3’ Jが書込まれることとなる(第1
0図参照)。
In this case, in the data conversion process, the first reference points ``xa, 7a, zaJ'' programmed in the original data are moved to the first corresponding points ria, ja, kaJ, and the second reference points ``xb, 7b, rbJ'' are moved. second corresponding point rib,
ib, kbJ, and the third reference point rIe
, 7c, rcJ as the third corresponding point ric, ic, k
Only the position transformation matrix Ma for moving to cJ is defined, and by position transformation Ma as shown in FIG.
The program number “Q” is stored in the data storage area of M3 after conversion.
12345'', the linear interpolation code ``Gol'', and the position of the point converted by multiplying the original data by the position transformation matrix Ma rxl', yl', xl' J, r
x2', y2'! 2' J, rx3',
y3', x3' J will be written (first
(See figure 0).

また、第11図に示されるように、位置変換指令コード
rG98PIJ〜rG98P3Jがプログラムされてい
ない元データにおいては、任意の2点rxd、 7d、
 xdJとrid、 id、 kdJの中間点に配置さ
れ該2点を結ぶ直線と直交する平面πを基準としたミラ
ー変換のみが定義され、第6図に示されるようなミラー
変換Mbにより、RAM3の変換後データ記憶領域には
プログラム番号r012345J、直線補間コードであ
るrGOIJ、および、元データにミラー変換行列Mb
を乗じて変換した点の位置rxl”、 71″、 xi
”j 、  rx2”y2”、 !2”J 、  rx
3”、 73”、 !3’Jが書込まれることとなる(
第12図参照)。
Furthermore, as shown in FIG. 11, in the original data in which position conversion command codes rG98PIJ to rG98P3J are not programmed, any two points rxd, 7d,
Only the mirror transformation based on the plane π, which is placed at the midpoint between xdJ, rid, id, and kdJ and perpendicular to the straight line connecting these two points, is defined, and by the mirror transformation Mb as shown in FIG. The post-conversion data storage area contains the program number r012345J, the linear interpolation code rGOIJ, and the mirror transformation matrix Mb for the original data.
The position of the point converted by multiplying by rxl", 71", xi
"j, rx2"y2", !2"J, rx
3”, 73”, ! 3'J will be written (
(See Figure 12).

そして、最終的に、元データの終了を示すブロック、例
えば、rMO2J等のプログラムエンドコードが読込ま
れ、設定されたプログラム番号に対応する元データの全
てのブロックに対して上記データ変換処理が実行される
と、CPUIは、−連のデータ変換処理が完了したこと
を示すフラグFをセットして(ステップ5220) 、
NCデータ編集処理のステップ5107に移行する。
Finally, a block indicating the end of the original data, such as a program end code such as rMO2J, is read, and the above data conversion process is executed for all blocks of the original data corresponding to the set program number. Then, the CPUI sets a flag F indicating that the - series data conversion process has been completed (step 5220).
The process moves to step 5107 of NC data editing processing.

NCデータ編集処理のステップ5107に移行したCP
UIは、RAM3の変換後データ記憶領域に書込まれた
変換処理実行後のデータに基づいてCRT7の表示画面
上に工具軌跡を描画し、キーボード5の編集終了キーも
しくはりトライキーが操作されるのを待つ待機状態に入
る(ステップS 108)。
CP that has moved to step 5107 of NC data editing processing
The UI draws a tool trajectory on the display screen of the CRT 7 based on the data after execution of the conversion process written in the post-conversion data storage area of the RAM 3, and when the edit end key or try key on the keyboard 5 is operated. The CPU enters a standby state in which it waits for (step S108).

オペレータは描画された工具軌跡を見て、NCデータ編
集処理のステップ5104で実行したデータ修正処理お
よび上記データ変換処理によって実行された位置変換や
ミラー変換によって所望のNCデータ、即ち、工具軌跡
が得られたか否がを判断し、所望のNCデータではない
と判断したならば、キーボード5のリトライキーを操作
する。
The operator looks at the drawn tool trajectory and obtains the desired NC data, that is, the tool trajectory, by the data correction process executed in step 5104 of the NC data editing process and the position conversion and mirror conversion executed by the data conversion process. If it is determined that the NC data is not the desired NC data, the retry key on the keyboard 5 is operated.

CPUIはステップ5102に移行して元データの修正
が必要であるか否かを問う旨のメツセージをCRT7の
表示画面上に表示し、オペレータの判断および該判断に
基づくキー人力を待つ待機状態に入る(ステップ31.
02)。
The CPU moves to step 5102, displays a message on the display screen of the CRT 7 asking whether or not correction of the original data is necessary, and enters a standby state waiting for the operator's judgment and key human power based on the judgment. (Step 31.
02).

元データの修正が必要であると判断され修正実行キーが
操作された場合には、データ変換処理の実行に際してセ
ットされたフラグFをリセットしくステップ5103)
、該自動プログラミング装置のエディタ機能により、従
来と同様、通常のデータ修正処理を実行して元データを
修正し、修正された元データをRAM3に再格納しくス
テップ5104)、再度、ステップ5102に復帰して
、オペレータの判断およびキー人力を待機する。元デー
タの修正が更に必要であれば、再度、修正実行キーを操
作し、元データの修正が完了するまでステップ5104
のデータ修正処理を繰り返し実行する。
If it is determined that the original data needs to be corrected and the correction execution key is operated, the flag F set when executing the data conversion process is reset (step 5103).
, the editor function of the automatic programming device executes normal data modification processing to modify the original data as in the past, and stores the modified original data in the RAM 3 again (step 5104), returning to step 5102 again. and wait for operator judgment and key human power. If further correction of the original data is necessary, operate the correction execution key again until the correction of the original data is completed in step 5104.
Repeat the data correction process.

元データの修正が完了した場合にはキーボード5のエス
ケープキーを操作し、ステップ5105に移行してフラ
グFがセットされているか否かを判別する。データ修正
処理を実行した場合にはフラグFがリセットされている
ので、CPUIはステップ8106に移行し上記と同様
にして該修正された元データに対し一連のデータ変換処
理を実行した後、該データ変換処理の実行によってRA
M3の変換後データ記憶領域に書込まれたデータに基づ
き、再度、CRT7の表示画面上に工具軌跡を描画し、
キーボード5の編集終了キーもしくはりトライキーが操
作されるのを待つ待機状態に入る(ステップ5108)
When the modification of the original data is completed, the escape key on the keyboard 5 is operated, and the process proceeds to step 5105, where it is determined whether flag F is set. Since the flag F is reset when the data correction process is executed, the CPU moves to step 8106 and executes a series of data conversion processes on the corrected original data in the same manner as above, and then RA by executing the conversion process
Based on the data written to the post-conversion data storage area of M3, draw the tool trajectory again on the display screen of CRT7,
Enters a standby state waiting for the edit end key or try key on the keyboard 5 to be operated (step 5108)
.

一方、データ変換処理終了直後のステップ5102にお
いて、元データの修正が不要であると判断されエスケー
プキーが操作された場合には、ステップ5105に移行
してフラグFがセットされているか否かを判別するが、
この場合フラグFがセットされたままであるので、次い
でステップ5109に移行し、RAM3の変換後データ
記憶領域に書込まれたデータ、即ち、変換処理実行後の
データに対してデータ修正が必要であるか否かを問う旨
のメツセージをCRT7の表示画面上に表示し、オペレ
ータの判断および該判断に基づくキー人力を待つ待機状
態に入る。
On the other hand, if it is determined in step 5102 immediately after the end of the data conversion process that correction of the original data is not necessary and the escape key is operated, the process moves to step 5105 and it is determined whether flag F is set. But,
In this case, since flag F remains set, the process then moves to step 5109, and data correction is required for the data written to the post-conversion data storage area of RAM3, that is, the data after execution of the conversion process. A message inquiring as to whether or not this is the case is displayed on the display screen of the CRT 7, and the system enters a standby state in which it waits for the operator's judgment and key human power based on the judgment.

変換処理実行後のデータに対して修正が必要であると判
断され修正実行キーが操作された場合には、ステップ5
104に移行して、該自動プログラミング装置のエディ
タ機能により変換処理実行後のデータに対して通常のデ
ータ修正処理を実行しRAM3の変換後データ記憶領域
に書込まれたデータを修正した後、元データの修正が必
要であるか否かを問う旨のメツセージをCRT7の表示
画面上に表示し、オペレータの判断および該判断に基づ
くキー人力を待つ待機状態に入る(ステップ5102)
。通常、データ変換処理終了直後のステップ5102に
おいて、元データの修正が不要であると判断された場合
には、CRT7の表示画面上に描画された工具軌跡が所
望のNCデータに近似していることを意味し、この段階
で元データに修正を加える必要は無く、オペレータはエ
スケープキーを操作する。CPUIはステップ5105
に移行してフラグFがセットされているか否かを判別す
るが、この場合光データの修正は実行されておらずフラ
グFがセットされたままであるので、次いでステップ1
09に移行し、変換処理実行後のデータに対してデータ
修正が必要であるか否かを問う旨のメツセージをCRT
7の表示画面上に表示し、再度、オペレータの判断およ
び該判断に基づくキー人力を待つ待機状態に入る。変換
処理実行後のデータに対して更に修正が必要であれば、
再度、修正実行キーを操作し、変換処理実行後のデータ
の修正が完了するまでステップ5104のデータ修正処
理を繰り返し実行する。そして、変換処理実行後のデー
タの修正が完了したならば、オペレータはエスケープキ
ーを操作する。
If it is determined that the data after conversion processing needs to be corrected and the correction execution key is operated, step 5 is executed.
104, the editor function of the automatic programming device executes normal data modification processing on the data after the conversion processing, and after modifying the data written in the post-conversion data storage area of RAM3, the original A message asking whether data correction is necessary is displayed on the display screen of the CRT 7, and the system enters a standby state waiting for the operator's judgment and key human power based on the judgment (step 5102).
. Normally, if it is determined in step 5102 immediately after the end of the data conversion process that correction of the original data is not necessary, it is determined that the tool trajectory drawn on the display screen of the CRT 7 approximates the desired NC data. This means that there is no need to modify the original data at this stage, and the operator operates the escape key. CPUI step 5105
Step 1 is then executed to determine whether flag F is set. However, in this case, the optical data has not been corrected and flag F remains set, so step 1 is then executed.
09 and displays a message on the CRT asking whether or not data correction is necessary for the data after the conversion process has been executed.
7 on the display screen, and enters a standby state again to wait for the operator's judgment and key human power based on the judgment. If further corrections are required to the data after the conversion process has been executed,
The correction execution key is operated again, and the data correction processing in step 5104 is repeatedly executed until the correction of the data after execution of the conversion processing is completed. Then, when the modification of the data after execution of the conversion process is completed, the operator operates the escape key.

CPUIはステップ5107に移行し、該修正された変
換処理実行後のデータ(RAM3の変換後データ記憶領
域に書込まれている)に基づいてCRT7の表示画面上
に工具軌跡を描画し、キーボード5の編集終了キーもし
くはりトライキーが操作されるのを待つ待機状態に入る
(ステップ5108)。
The CPU moves to step 5107, draws a tool trajectory on the display screen of the CRT 7 based on the corrected data after execution of the conversion process (written in the post-conversion data storage area of the RAM 3), and draws the tool path on the display screen of the CRT 7. The process enters a standby state in which it waits for the edit end key or try key to be operated (step 5108).

このようにして、元データに修正を加えたり(ステップ
S 102.ステップ5104)、変換処理実行後のデ
ータに修正を加えたり(ステップS 109.  ステ
ップ5104)LながらCRT7の表示画面上に工具軌
跡を描画させる間に(ステップ5107)、所望のNC
データが得られたと判断したならば(ステップ$108
)、キーボード5の編集終了キーを操作し、RAM3の
変換後データ記憶領域に書込まれたNCデータをNCデ
ータ記憶メモリ4もしくはディスクコントローラ6を介
してフロッピーディスクFL2に出力し、編集後のNC
データとして格納した後(ステップ5110)、フラグ
Fを初期化して(ステップ5111)、NCデータ編集
処理を終了する。
In this way, you can make corrections to the original data (step S102, step 5104), or make corrections to the data after execution of the conversion process (step S109, step 5104). While drawing the desired NC (step 5107), the desired NC
Once it is determined that the data has been obtained (step $108
), operate the editing end key on the keyboard 5 to output the NC data written in the post-conversion data storage area of the RAM 3 to the floppy disk FL2 via the NC data storage memory 4 or the disk controller 6, and output the edited NC data to the floppy disk FL2 via the NC data storage memory 4 or the disk controller 6.
After storing it as data (step 5110), flag F is initialized (step 5111), and the NC data editing process ends.

以上に述べたように、本実施例のNCデータ編集処理に
よれば、元データに定義された定義点に所望のデータ変
換処理を施してNCデータを編集した後、編集されたN
Cデータに基づいてCRT7の表示画面上に工具軌跡を
描画させ、編集されたNCデータが適当なものであるか
否かをオペレータの目で判断し、工具軌跡が不適なもの
であれば、元データおよび編集されたNCデータのいず
れに対しても適宜修正を加え、再度NCデータを編集す
ることができ、NCデータの編集作業を非常に円滑に行
うことができる。
As described above, according to the NC data editing process of this embodiment, after editing the NC data by performing the desired data conversion process on the definition points defined in the original data, the edited N
A tool trajectory is drawn on the display screen of the CRT7 based on the C data, and the operator visually determines whether the edited NC data is appropriate. If the tool trajectory is inappropriate, the original It is possible to make appropriate corrections to both the data and the edited NC data and edit the NC data again, making it possible to perform the editing work of the NC data very smoothly.

そして、元データの変換を実行するデータ変換処理にお
いては、予め作成されたNCデータ、即ち、元データに
、位置変換指令コードrG98P1」〜「G98P3」
、および、これらの位置変換指令コードを具体化するた
めの基準点と対応点をプログラムすることにより、簡単
に位置変換を定義することができ、予め作成されたNC
データに位置ずれがあるような場合であっても個々のデ
ータを手計算によって修正する必要は無く、また、ミラ
ー変換を行う場合にはミラー変換コード「G98PO」
、および、該ミラー変換コードを具体化するための任意
の2点をプログラムするだけで良く、複雑な演算処理を
必要としない。
In the data conversion process that converts the original data, position conversion command codes rG98P1" to "G98P3" are added to the previously created NC data, that is, the original data.
, and by programming the reference points and corresponding points to embody these position conversion command codes, position conversion can be easily defined, and pre-created NC
Even if there is a positional shift in the data, there is no need to correct each individual data by manual calculation, and when performing mirror conversion, use the mirror conversion code "G98PO"
, and any two points to embody the mirror conversion code, and no complicated arithmetic processing is required.

更に、定義された位置変換やミラー変換の種類や個数に
関わりなく、自動プログラミング装置によって容易に所
望の変換処理を実施してMCデータを編集することがで
きる。
Further, regardless of the type and number of defined positional transformations and mirror transformations, the automatic programming device can easily perform desired transformation processing and edit MC data.

また、変換解除指令となる指令コードrG99Jは定義
された最新の変換指令のみを解除するものであるから、
変換行列が複数定義された場合には、一部の変換指令の
みを解除することもできる。
In addition, since the command code rG99J, which is a conversion cancellation command, cancels only the latest defined conversion command,
If multiple transformation matrices are defined, only some of the transformation commands can be canceled.

以上、一実施例として、予め作成されたNCデータ、即
ち、元データが3次元NCデータである場合について説
明したが、元データが2次元NCデータである場合にも
上記とほぼ同様であり、位置変換指令コードが2つとな
ること、および、位置変換指令コードを具体化するため
の基準点と対応点の組が2つとなること、上記基準点と
対応点およびミラー変換コードを具体化するための任意
の2点が2次元配列でプログラムされることのみが本実
施例と異なる。
Above, as an example, the case where the NC data created in advance, that is, the original data is three-dimensional NC data has been described, but the case where the original data is two-dimensional NC data is almost the same as above. There are two position conversion command codes, two sets of reference points and corresponding points to embody the position transformation command codes, and two sets of reference points and corresponding points to embody the above reference points and mirror transformation codes. The only difference from the present embodiment is that arbitrary two points of are programmed in a two-dimensional array.

なお、rG98PIJ、  rG98P2J、  rG
98 P 3j等の位置変換指令コードは、必ずしも、
基準点と対応点の数に応じて複数個設定する必要はなく
、直線補間を示す従来の指令コードrG01」等のよう
にモーダルで作用するようにしてもよい。
In addition, rG98PIJ, rG98P2J, rG
Position conversion command codes such as 98P3j are not necessarily
It is not necessary to set a plurality of points depending on the number of reference points and corresponding points, and it is also possible to operate modally, such as in the conventional command code "rG01" indicating linear interpolation.

発明の効果 本発明のNCデータ編集方式によれば、予め作成された
r4Cデータに、変換処理を規定する指令コードと該指
令コードによる変換処理を具体化するためのデータ、即
ち、位置変換においては基準点と対応点、また、ミラー
変換においては任意の2点をプログラムするだけで、位
置変換行列やミラー変換行列が自動的に定義され、予め
作成されたNCデータによって定義された点にこれらの
変換行列を乗じることによって、自動プログラミング装
置が自動的にNCデータを編集するので、NCデータの
編集に際して従来のような複雑な手計算が必要とされる
ことはなく、編集作業のための時間が短縮され、また、
編集されたNCデータ自体の信頼性も高いものとなる。
Effects of the Invention According to the NC data editing method of the present invention, a command code that defines a conversion process and data for embodying the conversion process using the command code are added to r4C data created in advance, that is, in position conversion, Just by programming the reference point and corresponding points, or any two points in mirror transformation, the position transformation matrix and mirror transformation matrix are automatically defined, and these points are applied to the points defined by the previously created NC data. Since the automatic programming device automatically edits the NC data by multiplying it by a conversion matrix, the complicated manual calculations required in the past are not required when editing the NC data, and the time required for editing work is reduced. shortened and also
The reliability of the edited NC data itself is also high.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の方式の一実施例におけるNCデータ編
集処理を示すフローチャート、第2図は同実施例のNC
データ編集処理の一部であるデータ変換処理を示すフロ
ーチャート、第3図は本発明の方式を実施する一実施例
の自動プログラミング装置の要部を示すブロック図、第
4図は元データとしてのNCデータの一例を示す概念図
、第5図は同実施例における位置変換行列の作用を概念
的に説明する図、第6図は同実施例におけるミラー変換
行列の作用を概念的に説明する図、第7図は同実施例に
おける位置変換行列とミラー変換行列が同時に定義され
たときの作用を概念的に説明する図、第8図は第4図の
元データに対応して編集されたデータを示す概念図、第
9図は元データとしてのNCデータの他の一例を示す概
念図、第10図は第9図の元データに対応して編集され
たデータを示す概念図、第11図は元データとしてのN
Cデータの更に別の一例を示す概念図、第12図は第1
1図の元データに対応して編集されたデータを示す概念
図である。 1・・・プロセッサ(CPU)、2・・・ROM。 3・・・RAM、4・・・NCデータ記憶メモリ、5・
・・キーボード、6・・・ディスクコントローラ、7・
・・グラフィックデイスプレィ(CRT) 、8・・・
バス、FLI、FL2・・・フロッピーディスク。 FL2 fxl、yl、zl l 第 第
FIG. 1 is a flowchart showing NC data editing processing in an embodiment of the method of the present invention, and FIG.
A flowchart showing data conversion processing which is a part of data editing processing, FIG. 3 is a block diagram showing main parts of an automatic programming device of an embodiment implementing the method of the present invention, and FIG. 4 shows NC processing as original data. A conceptual diagram showing an example of data; FIG. 5 is a diagram conceptually explaining the action of the position transformation matrix in the same embodiment; FIG. 6 is a diagram conceptually explaining the action of the mirror transformation matrix in the embodiment; FIG. 7 is a diagram conceptually explaining the effect when a position transformation matrix and a mirror transformation matrix are defined simultaneously in the same embodiment, and FIG. 8 shows data edited corresponding to the original data of FIG. 4. 9 is a conceptual diagram showing another example of NC data as original data, FIG. 10 is a conceptual diagram showing data edited corresponding to the original data in FIG. 9, and FIG. 11 is a conceptual diagram showing another example of NC data as original data. N as original data
A conceptual diagram showing yet another example of C data, Fig. 12 is the first
FIG. 1 is a conceptual diagram showing data edited corresponding to the original data of FIG. 1; 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. FL2 fxl, yl, zl l th

Claims (5)

【特許請求の範囲】[Claims] (1)自動プログラミング装置によるNCデータ編集方
式において、任意の基準点と該基準点を移動させる対応
点を定義する位置変換指令コードを設け、上記位置変換
指令コードと共に、基準点とその基準点に対応する対応
点をNCデータ中にプログラムし、自動プログラミング
装置によって、プログラムされた基準点とその対応点よ
り位置変換行列を求め、上記位置変換指令コードで位置
変換行列が定義された後は、変換解除指令が読まれるま
でNCデータで定義された点を上記位置変換行列で位置
変換しNCデータを編集することを特徴としたNCデー
タ編集方式。
(1) In the NC data editing method using an automatic programming device, a position conversion command code that defines an arbitrary reference point and a corresponding point to which the reference point is moved is provided, and together with the position conversion command code, the reference point and its reference point are The corresponding corresponding points are programmed into the NC data, and the automatic programming device calculates a position transformation matrix from the programmed reference points and their corresponding points. After the position transformation matrix is defined with the above position transformation command code, the transformation An NC data editing method characterized in that points defined by NC data are position-transformed using the above-mentioned position transformation matrix until a release command is read, and the NC data is edited.
(2)上記NCデータが3次元データの場合には、位置
変換指令コードと共に、3つの任意の基準点とその基準
点に対応する各対応点をNCデータ中にプログラムし、
自動プログラミング装置によって、プログラムされた3
つの基準点とその対応点より位置変換行列を求めること
を特徴とした請求項1記載のNCデータ編集方式。
(2) If the above NC data is three-dimensional data, program three arbitrary reference points and each corresponding point corresponding to the reference point in the NC data together with the position conversion command code,
3 programmed by automatic programming device
2. The NC data editing method according to claim 1, wherein a position transformation matrix is obtained from two reference points and their corresponding points.
(3)上記NCデータが2次元データの場合には、位置
変換指令コードと共に、2つの任意の基準点とその基準
点に対応する対応点をNCデータ中にプログラムし、自
動プログラミング装置によって、プログラムされた2つ
の基準点とその対応点より位置変換行列を求めることを
特徴とした請求項1記載のNCデータ編集方式。
(3) If the above NC data is two-dimensional data, program two arbitrary reference points and the corresponding points corresponding to the reference points together with the position conversion command code in the NC data, and then program using an automatic programming device. 2. The NC data editing method according to claim 1, wherein a position transformation matrix is obtained from the two reference points and their corresponding points.
(4)2点の中間点に配置され該2点を結ぶ直線と直交
するミラーによるミラー変換行列を定義するためのミラ
ー変換コードを設け、上記ミラー変換コードと共に、任
意の2点をNCデータ中にプログラムすることによりミ
ラー変換行列を定義し、ミラー定義後のNCデータを変
換解除指令が読まれるまで全てミラー変換してNCデー
タを編集することを特徴としたNCデータ編集方式。
(4) Provide a mirror conversion code to define a mirror conversion matrix using a mirror placed at the midpoint of two points and perpendicular to the straight line connecting the two points, and use the above mirror conversion code to convert any two points into NC data. The NC data editing method is characterized in that a mirror conversion matrix is defined by programming, and the NC data after the mirror definition is mirror converted until a conversion cancellation command is read and the NC data is edited.
(5)2点の中間点に配置され該2点を結ぶ直線と直交
するミラーによるミラー変換行列を定義するためのミラ
ー変換コードを設け、上記ミラー変換コードと共に、任
意の2点をNCデータ中にプログラムすることによりミ
ラー変換行列を定義する一方、任意の基準点と該基準点
を移動させる対応点を定義する位置変換指令コードを設
け、上記位置変換指令コードと共に、基準点とその基準
点に対応する対応点をNCデータ中にプログラムするこ
とにより、基準点とその対応点より位置変換行列を求め
、上記ミラー変換コードおよび上記位置変換指令コード
によってミラー変換行列と位置変換行列が共に定義され
た場合は、上記ミラー変換行列と位置変換行列を乗じた
変換行列を求め、該変換行列が定義された後は、NCデ
ータで定義された点を変換解除指令が読まれるまで上記
変換行列で変換しNCデータを編集することを特徴とし
たNCデータ編集方式。
(5) A mirror conversion code is provided to define a mirror conversion matrix using a mirror placed at the midpoint of two points and perpendicular to the straight line connecting the two points, and along with the above mirror conversion code, any two points can be converted into NC data. While defining a mirror transformation matrix by programming, a position transformation command code that defines an arbitrary reference point and a corresponding point to which the reference point is moved is provided, and along with the above position transformation command code, the mirror transformation matrix is By programming the corresponding corresponding points into the NC data, a position transformation matrix is obtained from the reference point and its corresponding point, and both the mirror transformation matrix and the position transformation matrix are defined by the above mirror transformation code and the above position transformation command code. In this case, a transformation matrix is obtained by multiplying the mirror transformation matrix and the position transformation matrix, and after the transformation matrix is defined, the points defined by the NC data are transformed with the transformation matrix until the transformation cancellation command is read. An NC data editing method characterized by editing NC data.
JP14310589A 1989-06-07 1989-06-07 Nc data edition system Pending JPH039404A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP14310589A JPH039404A (en) 1989-06-07 1989-06-07 Nc data edition system
US07/646,736 US5297023A (en) 1989-06-07 1990-06-07 NC data editing method using transformation matrix and conversion command
PCT/JP1990/000745 WO1990015373A1 (en) 1989-06-07 1990-06-07 Nc data edition
EP19900908650 EP0433460A1 (en) 1989-06-07 1990-06-07 Nc data edition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14310589A JPH039404A (en) 1989-06-07 1989-06-07 Nc data edition system

Publications (1)

Publication Number Publication Date
JPH039404A true JPH039404A (en) 1991-01-17

Family

ID=15331023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14310589A Pending JPH039404A (en) 1989-06-07 1989-06-07 Nc data edition system

Country Status (1)

Country Link
JP (1) JPH039404A (en)

Similar Documents

Publication Publication Date Title
US6330493B1 (en) Control system for synchronously cooperative operation of plurality of robots
JP2011048621A (en) Robot off-line teaching method
WO2022259967A1 (en) Information processing device, and machine tool
JPH04181403A (en) Interactive numerical controller
JP2006085486A (en) Nc working simulation method and nc working simulation device
JP2769162B2 (en) Operation restoration processing method in CAD system
JPH039404A (en) Nc data edition system
JP7218459B1 (en) Information processing equipment, machine tools and information processing programs
JP6781201B2 (en) Virtual object display system
JPH1083208A (en) Arithmetic mechanism for inter-robot relative position
JPH0340109A (en) Nc data editing system
JP2006313559A (en) Operation method of numerical control machine tool equipment
WO1990015373A1 (en) Nc data edition
JPH0677208B2 (en) NC device machining program creation method
JPS6333168B2 (en)
JP3660038B2 (en) Numerical controller
JP3248081B2 (en) Automatic program creation device with automatic cutting axis change function
JP2708445B2 (en) Processing simulation device
JPH04165405A (en) Automatic programming device
JPH05216524A (en) Robot
JP7250202B1 (en) Information processing device and information processing program
CN111650887B (en) Control system
JP2964778B2 (en) Graphic data processing device
JPH0340108A (en) Nc data editing system
JPH11339070A (en) Solid model generating method