JPS6289113A - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPS6289113A
JPS6289113A JP22876385A JP22876385A JPS6289113A JP S6289113 A JPS6289113 A JP S6289113A JP 22876385 A JP22876385 A JP 22876385A JP 22876385 A JP22876385 A JP 22876385A JP S6289113 A JPS6289113 A JP S6289113A
Authority
JP
Japan
Prior art keywords
coordinate
register
data
coordinate transformation
correcting
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
JP22876385A
Other languages
Japanese (ja)
Inventor
Masayuki Takada
高田 正幸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP22876385A priority Critical patent/JPS6289113A/en
Publication of JPS6289113A publication Critical patent/JPS6289113A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To make unnecessary both preparations of a processing program and to obtain a soft processing program by designating a correcting number with a processing program, removing a correcting quantity from a correcting register and changing only the value of the correcting quantity even when respective coordinate transformation data are changed. CONSTITUTION:A coordinate transformation register 16 can plurally store the transformation type, the transformation data and the correcting number, can set them to a data accommodating device 12 and impressed the data to a coordinate transformer 32. A key input 18 is operated by the operator at the time of the processing arrangement, the correcting quantity is set corresponding to the correcting number of the coordinate transformation and stored into a correcting register 20. The correcting register 20 can store plural correcting quantities corresponding to the correcting number and impresses the correcting quantity to the coordinate transformer 32. The coordinate transformer 32 executes the coordinate transformation processing for the shifting data in accordance with the contents of the coordinate transformation register 16 and the contents of the correcting register 20.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はプログラミングの柔軟性を狙いとし念数値制
御(以下、NCと略称)装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control (hereinafter abbreviated as NC) device aiming at flexibility in programming.

〔従来の技術〕[Conventional technology]

従来のこの種装置として第3図に示すものがちった。図
において、5oは入力媒体、例えば、紙テープで加工情
報は入力部52に読み込まれ、この加工情報と操作部6
2の内容に基づいて、加工軌跡が演算部54で演算され
る。演算部54の出力信号は制御部56に印加され、こ
の制御部56では操作部62の内容に基づいて駆動部5
8へ制御信号を出力し、この駆動部58で工作機械6゜
の加工制御が行なわれる。操作部62はオペレータから
の加工指示指令(たとえばオーバライド)を演算部54
と制御部56に印加するものである。
As a conventional device of this kind, the one shown in FIG. 3 is different. In the figure, 5o is an input medium, for example, a paper tape, and the processing information is read into the input section 52, and the processing information and the operation section 6
Based on the contents of 2, the machining trajectory is calculated by the calculation unit 54. The output signal of the calculation section 54 is applied to the control section 56, and the control section 56 operates the drive section 5 based on the contents of the operation section 62.
A control signal is output to the drive unit 58, and the machining of the machine tool 6° is controlled by this drive unit 58. The operation unit 62 receives processing instructions (for example, override) from the operator and converts them to the calculation unit 54.
and is applied to the control unit 56.

従来装置では紙テープ等の入力媒体50から与えられた
加ニブログラムの加工情報に基づいて、工作機械60が
数値制御されるが、加工情報は通常の場合演算部54に
与えられた加工情報を指定された優先度で座標変換を行
ない直線補間等を行なっている。
In the conventional device, the machine tool 60 is numerically controlled based on the processing information of the machine program given from the input medium 50 such as a paper tape, but the processing information is normally specified by the processing information given to the calculation section 54. Coordinate transformation is performed with priority given to linear interpolation, etc.

第4図は、座標変換処理を行う演算部50のブロック図
で、図において10は加ニブログラムの加工情報から移
動データと座標変換データを取υ出すプログラム解析器
、12は座標変換データを座標変換レジスタ14に指定
された優先度で記憶させるデータ格納器、14は座標変
換データを複数記憶する座標変換レジスタ、30は移動
データを座標変換レジスタ14の内容に応じて座標変換
処理する座標変換器である。
FIG. 4 is a block diagram of the calculation unit 50 that performs coordinate transformation processing. In the figure, 10 is a program analyzer that extracts movement data and coordinate transformation data from the processing information of the Canadian program, and 12 is a program analyzer that extracts movement data and coordinate transformation data from the processing information of the Canadian program. 14 is a coordinate conversion register that stores a plurality of coordinate conversion data; 30 is a coordinate converter that performs coordinate conversion processing on movement data according to the contents of the coordinate conversion register 14; be.

座標変換器30は34.36.40.44から構成され
る。
The coordinate converter 30 consists of 34.36.40.44.

ここで34は、移動データと座標変換レジスタ14から
の指令を受は各座標変換器36.40.44を制御する
変換制御器、3Gは移動データを平行移動させる平行移
動変換器、40は移動データを回転移動させる回転移動
変換器、44は移動データをスケーリングするスケーリ
ング変換器である5、つぎに各動作説明の前に座標変換
の加ニブログラムについて説明する。
Here, 34 is a conversion controller that receives movement data and commands from the coordinate conversion register 14 and controls each coordinate converter 36, 40, and 44, 3G is a parallel movement converter that moves movement data in parallel, and 40 is a movement converter. A rotary movement converter 44 is a scaling converter 5 that scales the movement data.Next, before explaining each operation, the addition program for coordinate conversion will be explained.

まず、平行移動変換はEIA 7オーマツトでG52X
xi yyi ppt ; とし、G52で平行移動タイプ、(xi 、yi)で平
行移動情報、piで変換優先度を示すものとする。
First, parallel translation conversion is performed using EIA 7-ohmat G52X.
xi yyi ppt; where G52 indicates the translation type, (xi, yi) indicates the translation information, and pi indicates the conversion priority.

また、回転移動変換はEIA 7オーマツトでG22A
θ1Ppi; とし、G22で回転移動タイプ、θiで回転移動情報、
piで変換優先度を示すものとする。
In addition, rotational movement conversion is EIA 7-ohm G22A
θ1Ppi;, G22 is the rotational movement type, θi is the rotational movement information,
Let pi indicate the conversion priority.

スケーリング変換はEIAフォーマットで051 Xn
s YVs Kk ppt ;とし、G51でスケーリ
ング変換タイプ、(+¥S ey8 )とkでスフ−リ
ング情報、piで変換優先度を示すものとする。
Scaling conversion is 051 Xn in EIA format.
s YVs Kk ppt ;, G51 indicates the scaling conversion type, (+¥S ey8 ) and k indicate the scaling information, and pi indicates the conversion priority.

そして移動指令はEIAフォーマットでG90 GOI
 XxaoYyao :XxnlYyal ; とし、GOIで直線補間(移動指令)、G90と(xa
O。
And the movement command is G90 GOI in EIA format.
XxaoYyao:XxnlYyal;, linear interpolation (movement command) with GOI, G90 and
O.

yao )と(xat、yat)で、絶対値の入力座標
とする。
yao ) and (xat, yat) are input coordinates of absolute value.

座標変換指令の優先度piは数値が大きいほど優先度が
高いものとする。
It is assumed that the priority level pi of the coordinate transformation command is such that the larger the numerical value, the higher the priority level.

たとえば G52xXiYyiP5;・・・・・・優先度5G22
AθiP4;    ・曲・優先度4G90 G92 
XxaoYyao :GOI XxatY7a1; とプログラムすれば、第7図に示すように1移動情報(
GOI Xxat Yyat : )が入力座標系(X
a 、Ya )であったものが、G22のθiによシ回
転移動が行なわれその座標系は(Xc 、Yc )座標
系になる。その後G52の(xt、yDKよる平行移動
が行なわれ、その座標系は(Xe 、Ye )座標系に
なる。逆にG52 Xxi Yyi P5 ;  ・・
・・・・優先度5G22 AθiP6;    ・曲・
優先度6G90 G92 XxaoY7ao ”。
For example, G52xXiYyiP5; ...Priority 5G22
AθiP4; ・Song・Priority 4G90 G92
If you program XxaoYyao :GOI XxatY7a1;, one movement information (
GOI Xxat Yyat: ) is the input coordinate system (X
a, Ya) is rotated by θi of G22, and its coordinate system becomes the (Xc, Yc) coordinate system. After that, G52 is translated by (xt, yDK), and its coordinate system becomes the (Xe, Ye) coordinate system. Conversely, G52 Xxi Yyi P5;
...Priority 5G22 AθiP6; ・Song・
Priority 6G90 G92 XxaoY7ao”.

GOI Xxa+ Yyat ; とプログラムすれば啓開情報(GOI Xxax Yy
at ; )はまずG52の(X1#y1)Kよる平行
移動が行なわれ、その後G22のθi(cよる回転移動
が行なわれる。
If you program GOI Xxa+ Yyat;
at ; ) is first translated in parallel by (X1#y1)K of G52, and then rotated by θi(c in G22).

なおスケーリング変換は G51 Xxs Y)’a Kk ppt ;G90 
G92 XxaoYyao ;GOI Xxat Yy
as ; とプログラムすれば第8図に示すように、移動情報(G
OI Xxat Yyal; )が、スケーリング中心
を(xs+ys)とし、倍率をkとする座標値(Xgl
 +7g+ )に変換される。
The scaling conversion is G51 Xxs Y)'a Kk ppt ;G90
G92 XxaoYyao ; GOI Xxat Yy
If you program as ; as shown in Figure 8, the movement information (G
) is the coordinate value (Xgl
+7g+).

なおG92は座標系設定指令でGOIと同様に座標変換
されるものである。
Note that G92 is a coordinate system setting command, and the coordinates are transformed in the same way as the GOI.

つぎに動作について説明する。まず第4図のプログラム
解析器10は入力部52からの加ニブログラムを解析し
、移動データ(たとえばQOIXxatYya t ;
 )の場合には座標変換器30に印加し、座標変換デー
タ(たとえばG52・・・、G22・・・、G51・・
・)であるならばデータ格納器12に印加するものであ
る。
Next, the operation will be explained. First, the program analyzer 10 shown in FIG. 4 analyzes the program from the input section 52, and moves data (for example, QOIXxatYyat;
), the voltage is applied to the coordinate converter 30, and the coordinate conversion data (for example, G52..., G22..., G51...
), it is applied to the data storage unit 12.

つぎにデータ格納器12を第6図の流れ図を用いて説明
する。プログラム解析器10から印加された座標変換デ
ータ(平行移動情報1回転移動情報、スケーリング情報
)はまずそれぞれの変換タイプtに変換され、各変換情
報(たとえば、平行移動変換時の(xi tyi )な
ど)が取シ出され、変換データdとなる。また優先度p
も取シ出される。
Next, the data storage 12 will be explained using the flowchart of FIG. Coordinate transformation data (parallel movement information, one rotation movement information, scaling information) applied from the program analyzer 10 is first converted to each transformation type t, and each transformation information (for example, (xi tyi ) at the time of parallel movement transformation, etc.) ) is extracted and becomes converted data d. Also, priority p
Also taken out.

つぎのステップでは、座標変換レジスタ14に優先度p
をインデックスとして、タイプt、変換データdを格納
する。ぞして、座標変換レジスタ14をCとすれば、つ
ぎのような処理となる。
In the next step, the priority p is stored in the coordinate transformation register 14.
The type t and conversion data d are stored using as an index. Therefore, if the coordinate conversion register 14 is set to C, the following processing will be performed.

(t、d)→C(P) 座標変換レジスタ14はテーブルであシ、変換タイプt
と変換データdを複数記憶できるもので、データ格納器
12にセットさせ、座標変換器30にそのデータを印加
するものである。
(t, d)→C(P) Coordinate conversion register 14 is a table, conversion type t
It is capable of storing a plurality of transformation data d, and is set in the data storage 12, and the data is applied to the coordinate transformer 30.

つぎに第4図の座標変換器30の変換制御器34の動作
について、第5図の流れ図を用いて説明する。まず、プ
ログラム解析器10から印加された移動データ(たとえ
ば、GOI Xxat YyILx ”、 )を解析し
、移動データ(Xa+ 、yat)の取シ出しを行ない
、初期値としてレジスタ(x=y)に格納する。
Next, the operation of the conversion controller 34 of the coordinate converter 30 shown in FIG. 4 will be explained using the flowchart shown in FIG. First, the movement data applied from the program analyzer 10 (for example, GOI do.

(GOI Xxat Yyat : ) −(x 、V
 )また座標変換レジスタ14からデータを取り出すた
めのインデックスカウンタiの初期化を行なう。
(GOI Xxat Yyat: ) −(x, V
) Also, the index counter i for taking out data from the coordinate conversion register 14 is initialized.

0→i つぎのステップの判断は、座標変換レジスタエ4の最大
記憶数Cmaxとインデックスカウンタiとを比較し、
インデックスカウンタiが最大記憶数Cmaxより大き
い場合、終了とみなし、インデックスカウンタiも最大
記憶数Cmax以下の場合、各座標変換を行なりもので
ある。
0→i The next step is determined by comparing the maximum storage number Cmax of the coordinate conversion register 4 and the index counter i.
If the index counter i is greater than the maximum storage number Cmax, it is considered that the process has ended, and if the index counter i is also less than the maximum storage number Cmax, each coordinate transformation is performed.

つぎのステップでは座標変換レジスタ14からインデッ
クスカウンタiにより変換タイプt、変換データdを取
シ出す。
In the next step, the conversion type t and conversion data d are extracted from the coordinate conversion register 14 using the index counter i.

C(i)→(t 、a) つぎの判断は変換タイプtを解析し、もし無処理である
ならば、座標変換をスキップさせ、平行移動変換タイプ
ならば、平行移動変換器36を起動させ、回転移動変換
タイプならば、回転移動変換器40を起動させ、スフ−
リング変換タイプならば、スケーリング変換器44を起
動させる。
C(i) → (t , a) The next judgment is to analyze the transformation type t, and if it is no processing, skip the coordinate transformation, and if it is a translation transformation type, start the translation transformer 36. , if it is a rotational movement conversion type, start the rotational movement converter 40 and
If it is a ring conversion type, the scaling converter 44 is activated.

なお、平行移動変換器36はつぎの演算を行なう。Note that the translation converter 36 performs the following calculation.

(xi=yiは変換データd) また、回転移動変換器40はつぎの演算を行なう。(xi=yi is conversion data d) Further, the rotational movement converter 40 performs the following calculation.

(・θlは変換データd) スケーリング変換器44はつぎの演算を行なうものであ
る。
(·θl is conversion data d) The scaling converter 44 performs the following calculation.

(XB、y8mkは変換デiりd) つづいて、つぎのステップではインデックスカウンタi
を更新するものである。
(XB, y8mk is the conversion di.) Next, in the next step, the index counter i
This is to update.

i+1→i 以下、座標変換レジスタ14の終了判別処理を行ない、
各座標変換処理をくシ返すものである。
i+1→i Below, the completion determination process of the coordinate conversion register 14 is performed,
It returns each coordinate transformation process.

座標変換が終了のとき(インデックスカウンタiが最大
記憶数Cmaxよシ大になったとき)座標変換された(
x=y)座標は、つぎの補間処理に印加する。
When the coordinate transformation is completed (when the index counter i becomes larger than the maximum memory number Cmax), the coordinate transformation is completed (
x=y) coordinates are applied to the next interpolation process.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のNC装置の座標変換処理は以上のように実行され
ているので、加ニブログラム作成時、座標変換すべき値
が不明な場合や変更する場合にプログラミングすること
ができないなどの問題点があった。
Since the coordinate conversion process of conventional NC devices is executed as described above, there were problems such as the inability to program when the values to be converted are unknown or changed when creating a Kani program. .

この発明は上記のような問題点を解消するためになされ
たもので、加ニブログラム作成時に座標変換すべき値が
不明な場合や変更する場合に、IOI 。
This invention was made in order to solve the above-mentioned problems, and when the values to be converted in coordinates are unknown or changed when creating a Kaniprogram, the IOI.

IO2・・・のように補正記号に置き換えてプログラム
させ加工段取りのときに補正量をNC装置に設定し座標
変換すべき値が変わっても、加ニブログラムを変えずに
補正量の値を変更するのみで、加工をできるNC装置を
得ることを目的とする。
Program it by replacing it with a correction symbol like IO2... and set the correction amount in the NC device during machining setup.Even if the value to be converted into coordinates changes, the value of the correction amount can be changed without changing the addition program. The purpose is to obtain an NC device that can perform machining using only a single machine.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るNC装置は従来の座標変換レジスタに補
正番号も記憶できるようにし、補正量を記憶する補正レ
ジスタを備え、各座標変換装置に補正を行なう機能を備
えるようにしたものである。
The NC device according to the present invention is configured such that a correction number can also be stored in a conventional coordinate conversion register, a correction register is provided for storing a correction amount, and each coordinate conversion device is provided with a function to perform correction.

〔作 用〕[For production]

この発明において、移動データの各座標変換量は加ニブ
ログラムで指定された値に、外部指示による補正量を加
算した座標変換値になるようにする。
In this invention, each coordinate transformation amount of the movement data is made to be a coordinate transformation value obtained by adding a correction amount based on an external instruction to a value specified in the Canadian program.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。図中
、第4図と同一の部分は同一符号をもって図示した第1
図において、16は座標変換データと補正番号を複数記
憶する座標変換レジスタ、18は補正量を設定するキー
人力、20は補正番号対応に補正量を記憶する補正レジ
スタ、32け移動データを座標変換レジスタ16の内容
と、補正レジスタ20の内容に応じて、座標変換処理を
行なう座標変換器である。
An embodiment of the present invention will be described below with reference to the drawings. In the figure, parts that are the same as those in Figure 4 are designated by the same reference numerals.
In the figure, 16 is a coordinate transformation register that stores a plurality of coordinate transformation data and correction numbers, 18 is a key manual for setting the correction amount, 20 is a correction register that stores the correction amount corresponding to the correction number, and 32 coordinate conversion of movement data This is a coordinate converter that performs coordinate conversion processing according to the contents of the register 16 and the contents of the correction register 20.

また、座標変換器32はつぎのものから構成される。す
なわち、34は移動データと座標変換レジスタ16から
、各座標変換器38.42.46を制御する変換制御器
、38は移動データを補正量込みで平行移動させる平行
移動変換器、42は移動データを補正量込みで回転移動
させる回転移動変換器、46は移動データを補正量込み
でスケーリングするスケーリング変換器である。
Further, the coordinate converter 32 is composed of the following. That is, 34 is a conversion controller that controls each coordinate converter 38, 42, and 46 from the movement data and coordinate conversion register 16, 38 is a parallel movement converter that moves the movement data in parallel including the correction amount, and 42 is movement data. 46 is a scaling converter that scales the movement data including the correction amount.

つぎに各動作説明の前に、本発明の座標変換の加ニブロ
グラムについて説明する。
Next, before explaining each operation, a coordinate transformation program of the present invention will be explained.

平行移動変換はEIAフォーマットで G52 Xxi Yyi Ixh Jyh Ppi ;
とし、G52で平行移動タイプ、(xil)’1)で平
行移動情報、(xh、yh)で補正番号情報、piで変
換優先度を示す。
Translation transformation is in EIA format: G52 Xxi Yyi Ixh Jyh Ppi;
, G52 indicates the translation type, (xil)'1) indicates the translation information, (xh, yh) indicates the correction number information, and pi indicates the conversion priority.

回転移動変換はEJA 7オーマツトでG22 Aθi
BθhPpi; とし、G22で回転移動タイプ、piで回転移動情報、
θhで補正番号情報、piで変換優先度を示す。
Rotational movement conversion is EJA 7 ohmat G22 Aθi
BθhPpi;, G22 is the rotational movement type, pi is the rotational movement information,
θh indicates correction number information, and pi indicates conversion priority.

スケーリング変換はEIA 、yオーマットでG51 
Xxs Yys Ixt Jyt Kk Lkh pp
t ;とし、G51でスケーリング変換タイプ、(xs
 、ys)とkでスケーリング情報、(xt 、yt)
と油で補正番号情報、piで変換優先度を示す。
Scaling conversion is EIA, G51 in y format
Xxs Yys Ixt Jyt Kk Lkh pp
t; and G51 is the scaling conversion type, (xs
, ys) and the scaling information by k, (xt , yt)
and oil indicate correction number information, and pi indicates conversion priority.

移動指令ばEIAフォーマットで G90 GOI Xxao Y3’ao ;Xxal 
Yyal ; とし、GOIで直線補間(移動指令)、G90と(xa
o。
If the movement command is in EIA format, G90 GOI Xxao Y3'ao ;Xxal
Yyal ;, linear interpolation (movement command) with GOI, G90 and (xa
o.

yao )と(xil r ya+ )で絶対値の入力
座標とする。
yao ) and (xil rya+ ) are input coordinates of absolute values.

補正番号(xh tyb) +θh 、(xt 、yt
 、kh)は、座標変換すべき値が不明な場合や変更す
る場合のため記号に置き換えたもので、加工段取りのと
き、補正量をNC装置に設定するものである。
Correction number (xh tyb) +θh, (xt, yt
, kh) are replaced with symbols in case the values to be subjected to coordinate transformation are unknown or to be changed, and are used to set the correction amount in the NC device at the time of machining setup.

座標変換指令の優先度piは数値が大きいほど優先度が
高いものとする。
It is assumed that the priority level pi of the coordinate transformation command is such that the larger the numerical value, the higher the priority level.

たとえば G52 Xxi Yyi Ixh Jyh P5 ; 
−補正番号(xh 、yh) 、優先度5G22 Aθ
1B0hP4;     ・・・補正番号θh、優先度
4G90 G92 XxaoYyao +。
For example, G52 Xxi Yyi Ixh Jyh P5;
- Correction number (xh, yh), priority 5G22 Aθ
1B0hP4; ... Correction number θh, priority 4G90 G92 XxaoYyao +.

GOI Xxax Yya+ : とプログラムすれば第2図に示すように移動情報(GO
I Xxat Yyal ; )が入力座標系(Xa 
、Ya )であったものがG22のpiにより回転移動
が行なわれ、その座標系は(Xb、Yb)座標系になり
、さらに補正番号外の内容(補正量)によシさらに回転
移動が行なわれ、その座標系は(Xc 、Yc )座標
系になる。その後G52の(xt、yi)による平行移
動が行なわれ、その座標系は(Xd 、Yd )座標系
になりさらに、補正番号(xh、、yh)の内容(補正
量)によりさらに平行移動が行なわれ、その座標系は(
Xe 、Ye )座標系になる0 逆に、 G52 Xxi Yyi Ixh J)’h P5 ;
 −=補正番号(xh、yh)、&先度5G22Aθ1
BI9hP6;    ・・・・・・・・・補正番号θ
h、優先度6G90 G92XxaaYyaa ; GOI XxaIYyat ; とプログラムすれば移動情報(GOI Xxat Yy
a+ : )はまずG52の(xi 、yi ) Kよ
る平行移動が行なわれ、さらに補正番号(xh、yh)
の内容(補正量)による平行移動が行なわれる。その後
G22のpiによる回転移動が行なわれ、さらに補正番
号θhによる回転移動が行なわれるものである。
GOI Xxax Yya+: If you program
) is the input coordinate system (Xa
, Ya) is rotated by pi of G22, its coordinate system becomes the (Xb, Yb) coordinate system, and further rotational movement is performed depending on the content (correction amount) other than the correction number. The coordinate system becomes the (Xc, Yc) coordinate system. After that, parallel movement is performed by (xt, yi) of G52, and the coordinate system becomes (Xd, Yd) coordinate system.Furthermore, parallel movement is performed according to the contents (correction amount) of correction number (xh,, yh). , and its coordinate system is (
Xe, Ye) becomes the coordinate system 0 Conversely, G52 Xxi Yyi Ixh J)'h P5;
-=Correction number (xh, yh), & Priority 5G22Aθ1
BI9hP6; ...... Correction number θ
h, priority 6G90 G92XxaaYyaa; GOI XxaIYyat;
a+: ) is first translated by (xi, yi) K of G52, and then the correction number (xh, yh)
Parallel movement is performed according to the contents (correction amount). Thereafter, rotational movement is performed according to G22 pi, and further rotational movement is performed according to correction number θh.

なおスケーリング変換は G51 Xxs Yys Ixt J3’t Kk L
kh Ppi ;G90G92XxaoYyao : GOI Xxat Yyat ; とプログラムすれば、移動情報(Go I Xxat 
Yyat ; )がスケーリング中心は(xs、ys)
に補正番号(xt。
The scaling conversion is G51 Xxs Yys Ixt J3't Kk L
If you program kh Ppi;G90G92XxaoYyao: GOI Xxat Yyat;, the movement information (Go I
) is the scaling center (xs, ys)
Correction number (xt.

yt)の内容(補正量)を加算した値となり、倍率はk
に補正番号khの内容(補正量)を加算し走値でスフ−
リング変換を行なう。
The value is the sum of the contents (correction amount) of yt), and the magnification is k
Add the contents of correction number kh (correction amount) to
Perform ring transformation.

なおG92は座標系設定指令でGOIと同様に座標変換
されるものである。
Note that G92 is a coordinate system setting command, and the coordinates are transformed in the same way as the GOI.

つぎに動作について説明する。第1図のプログラム解析
器10は入力部52からの加ニブログラムを解析し、移
動データ(たとえばGo I Xxat Yyat ;
 )であるならば、座標変換器32に印加し、座標変換
データ(fcとえばG52・・・、G22・・・、G5
1・・・)であるならばデータ格納器12に印加する。
Next, the operation will be explained. The program analyzer 10 of FIG. 1 analyzes the Canadian program from the input section 52 and extracts movement data (eg, Go I Xxat Yyat;
), it is applied to the coordinate converter 32 and the coordinate conversion data (fc, for example, G52..., G22..., G5
1...), it is applied to the data storage 12.

つぎにデータ格納器12について従来装置の第6図の流
れ図を用いて説明する。プログラム解析器10から印加
された座標変換データ(平行移動情報1回転移動情報、
スケーリング情報)はまずそれぞれの変換タイプtに変
換され、各変換情報(たとえば平行移動変換時の(xi
 、yi )など)が取シ出され変換データdとなり、
また補正番号も取り出され補正番号りとなシ、また優先
度pも取シ出される。つぎのステップでは、座標変換レ
ジスタ16に優先度pをインデックスとして変換タイプ
t、変換データd、補正番号りを格納するものであ)、
座標変換レジスタ16をCとすればつぎのような処理と
なる。
Next, the data storage 12 will be explained using the flowchart of FIG. 6 of the conventional device. Coordinate transformation data applied from the program analyzer 10 (parallel movement information, one rotation movement information,
The scaling information) is first converted to each transformation type t, and each transformation information (for example, (xi
, yi ), etc.) are extracted and become converted data d,
The correction number is also extracted, and the priority p is also extracted. In the next step, the conversion type t, conversion data d, and correction number are stored in the coordinate conversion register 16 using the priority p as an index).
If the coordinate conversion register 16 is C, the following processing will be performed.

(x 、d s h )→C(p) 座標変換レジスタ16はテーブルであり、変換タイプt
と変換データdと補正番号りを複数記憶できるもので、
データ格納器12にセットさせ、座標変換器32にその
データを印加するものである。
(x, ds h )→C(p) The coordinate transformation register 16 is a table, and the transformation type t
It can store multiple numbers of conversion data d and correction numbers.
The data is set in the data storage 12 and applied to the coordinate converter 32.

キー人力18は加工段取シ時にオペレータが操作するも
ので、座標変換の補正番号に対応して補正量をセットし
、補正レジスタ20に記憶させるものである。補正レジ
スタ20はテーブルであり、補正番号に対応して補正量
を複数記憶できるもので、座標変換器32にその補正量
を印加するものである。
The manual key 18 is operated by the operator during machining setup, and is used to set a correction amount corresponding to the correction number of coordinate transformation and store it in the correction register 20. The correction register 20 is a table that can store a plurality of correction amounts corresponding to correction numbers, and applies the correction amounts to the coordinate converter 32.

つぎに第1図の座標変換器32の変換制御器34の動作
について、従来装置の第5図の流れ図を用すて説明する
。tず、プログラム解析器10から印加された移動デー
タ(たとえばGo I XxaIYyal ; )を解
析し、移動データ(xax #7J11 )の取)出し
を行ない初期値としてレジスタ(X 、y)に格納する
Next, the operation of the conversion controller 34 of the coordinate converter 32 shown in FIG. 1 will be explained using the flowchart shown in FIG. 5 of the conventional device. First, the movement data applied from the program analyzer 10 (for example, Go I

(GOlXmtYyat ; ) −+ (x 、y)
また座標変換レジスタ16からデータを取シ出すための
インデックスカウンタlの初期化を行なう。
(GOlXmtYyat; ) −+ (x, y)
Also, an index counter l for extracting data from the coordinate conversion register 16 is initialized.

0 → i つぎのステップの判断は座標変換レジスタ16の最大記
憶数Crmxと、インデックスカウンタiとを比較し、
インデックスカウンタiが最大記憶数CmaXよシ大き
い場合には終了とみなしインデックスカウンタiが最大
記憶数Cmax以下の場合には各座標変換を行なうもの
である。
0 → i The next step is determined by comparing the maximum storage number Crmx of the coordinate conversion register 16 and the index counter i.
If the index counter i is larger than the maximum storage number Cmax, the process is considered to have ended, and if the index counter i is less than or equal to the maximum storage number Cmax, each coordinate transformation is performed.

つぎのステップでは、座標変換レジスタ16からインデ
ックスカウンタiによう変換タイプt。
In the next step, the transformation type t is converted from the coordinate transformation register 16 to the index counter i.

変換データd、補正番号りを取シ出すものである。The conversion data d and the correction number are extracted.

C(i)→(t 、d 、h) つぎの判断は変換タイプtを解析し、もし無処理である
ならば、座標変換をスキップさせ、平行移動変換タイプ
ならば平行移動変換器38を起動させ、回転移動変換タ
イプならば、回転移動変換器42を起動させスケーリン
グ変換タイプならばスフ−リング変換器46を起動させ
るものである。
C(i) → (t , d , h) The next judgment is to analyze the transformation type t, and if there is no processing, skip the coordinate transformation, and if it is a translation transformation type, start the translation transformer 38. If it is a rotational movement conversion type, the rotational movement converter 42 is started, and if it is a scaling conversion type, the Sfurling converter 46 is started.

各座標変換器38.42.46には従来装置の機能の他
に補正信号りから補正レジスタR20の内容(補正量)
感を取り出す機能がある。
In addition to the functions of the conventional device, each coordinate converter 38, 42, and 46 receives a correction signal from the contents of the correction register R20 (correction amount).
It has the ability to bring out feelings.

R(h)→1 さらにこの補正量8を変換データにそれぞれ加算し、所
定の座標変換を行なう。
R(h)→1 Furthermore, this correction amount 8 is added to each of the transformed data to perform a predetermined coordinate transformation.

すなわち、平行移動変換器38はつぎの演算を行ない (xi、yiは変換データd * xh v’lhは補
正番号h)回転移動変換器42はつぎの演算を行ない(
θiは変換データd、θhは補正番号11)スケーリン
グ変換器46はつぎの演算を行なう。
That is, the parallel movement converter 38 performs the following calculation (xi, yi are conversion data d*xh, v'lh is the correction number h), and the rotational movement converter 42 performs the following calculation (
θi is conversion data d, and θh is correction number 11) The scaling converter 46 performs the following calculation.

(xspys、には変換データd * xt +yt 
+khは補正番号h)つづいてつぎのステップではイン
デックスカウンタiを更新するものである。
(xspys has conversion data d * xt + yt
+kh is the correction number h) The next step is to update the index counter i.

i+1−+i 以下座標変換レジスタ16の終了判別処理を行ない、各
座標変換処理をくり返す。
After i+1-+i, the completion determination process of the coordinate transformation register 16 is performed, and each coordinate transformation process is repeated.

座標変換が終了のとき(インデックスカウンタiが最大
記憶数Cmaxよシ犬になったとき)座標変換された(
x =y)座標はつぎの補間処理に印加する。
When the coordinate transformation is completed (when the index counter i reaches the maximum memory number Cmax), the coordinate transformation is completed (
x = y) coordinates are applied to the next interpolation process.

以上のように、この発明では加ニブログラムで指定され
た補正番号から補正レジスタ20よシ取り出し、座標変
換データに加算され、所定の座標変換を行なうものであ
る。
As described above, in the present invention, the correction register 20 extracts the correction number specified in the Kanji program, adds it to the coordinate transformation data, and performs a predetermined coordinate transformation.

また、上記実施例では座標変換は平行移動1回転移動、
スケーリング変換について示したが、ミラーイメージ、
インチ/ミリ単位切換え等であってもよく上記実施例と
同様の効果を奏する。
In the above embodiment, the coordinate transformation is parallel movement, one rotation movement,
Although we have shown scaling conversion, mirror image,
Switching in units of inches/mm may also be used to achieve the same effect as in the above embodiment.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、加ニブログラムで補
正番号を指定することによυ、補正レジスタから補正量
を取力出せるようにし念ので、各座標変換データが変わ
っても、補正量の値のみを変更するだけで、加ニブpグ
ラムを作シなおす必要がなく、柔軟性のある加ニブログ
ラムが得られる効果がある。
As described above, according to the present invention, by specifying the correction number in the Kani program, it is possible to output the correction amount from the correction register, so even if each coordinate transformation data changes, the correction amount can be By only changing the values, there is no need to recreate the Kanib p-gram, and a flexible Kanib p-gram can be obtained.

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

第1図は本発明の一実施例を示す演算部のブロック図、
第2図は同実施例の座標変換説明図、第3図および第4
図は従来のNC装置の構成を示すブロック図、第5図お
よび第6図は従来装置の動作を説明するための流れ図、
第7図および第8図は従来装置の座標変換説明図である
。 図において、10はプログラム解析器、12はデータ格
納器、16は座標変換レジスタ、18はキー人力、20
は補正レジスタ、32は座標変換器≠昼千÷1.34は
変換制御器、38は平行移動変換器、42は回転移動変
換器、46はスケーリング変換器。
FIG. 1 is a block diagram of a calculation unit showing an embodiment of the present invention;
Figure 2 is an explanatory diagram of coordinate transformation of the same embodiment, Figures 3 and 4.
The figure is a block diagram showing the configuration of a conventional NC device, and FIGS. 5 and 6 are flowcharts for explaining the operation of the conventional device.
FIGS. 7 and 8 are explanatory diagrams of coordinate transformation of the conventional device. In the figure, 10 is a program analyzer, 12 is a data storage device, 16 is a coordinate conversion register, 18 is a key manual, 20
32 is a correction register, 32 is a coordinate converter≠1000/1.34 is a conversion controller, 38 is a translation converter, 42 is a rotational movement converter, and 46 is a scaling converter.

Claims (1)

【特許請求の範囲】[Claims] 工作機械の加工情報を読み込む入力部と、前記加工情報
と外部指示指令とに基づいて加工軌跡を演算する演算部
と、前記演算部の出力と外部からの加工指示指令に基づ
いて、工作機械へ制御信号を出力する制御部と、前記外
部指示指令を行なう操作部とを有する数値制御装置にお
いて、前記演算部は加工情報の座標変換指令である平行
移動、回転移動またはスケーリング指令と、前記座標変
換の補正番号とを複数個記憶できる座標変換レジスタと
、座標変換データから座標変換指令を取出し、座標変換
レジスタに変換データ、補正番号を格納するデータ格納
器と、前記外部指示指令に基づいて補正番号対応に補正
量を記憶する補正レジスタと、前記座標変換レジスタの
内容と補正レジスタの内容とに基づいて、移動データの
座標変換を行なう座標変換器とを備え、数値制御装置の
移動データを平行移動、回転移動、スケーリング指令に
外部指示による補正量を加算して座標変換を行なうよう
にしたことを特徴とする数値制御装置。
an input unit that reads machining information of the machine tool; a calculation unit that calculates a machining trajectory based on the machining information and external instructions; In a numerical control device having a control section that outputs a control signal and an operation section that issues the external instruction, the calculation section generates a parallel movement, rotational movement, or scaling instruction that is a coordinate transformation command of machining information, and a coordinate transformation command that is a coordinate transformation command of machining information. a coordinate transformation register that can store a plurality of correction numbers; a data storage that extracts a coordinate transformation command from the coordinate transformation data and stores the transformation data and correction numbers in the coordinate transformation register; A correction register that stores a correction amount in a corresponding manner, and a coordinate converter that performs coordinate conversion of movement data based on the contents of the coordinate conversion register and the contents of the correction register, and the movement data of the numerical control device is translated in parallel. A numerical control device characterized in that coordinate transformation is performed by adding a correction amount based on an external instruction to rotational movement and scaling instructions.
JP22876385A 1985-10-16 1985-10-16 Numerical control device Pending JPS6289113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22876385A JPS6289113A (en) 1985-10-16 1985-10-16 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22876385A JPS6289113A (en) 1985-10-16 1985-10-16 Numerical control device

Publications (1)

Publication Number Publication Date
JPS6289113A true JPS6289113A (en) 1987-04-23

Family

ID=16881447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22876385A Pending JPS6289113A (en) 1985-10-16 1985-10-16 Numerical control device

Country Status (1)

Country Link
JP (1) JPS6289113A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01277909A (en) * 1988-04-29 1989-11-08 Fanuc Ltd Scaling method
US20170352476A1 (en) * 2014-12-25 2017-12-07 Autonetworks Technologies, Ltd. Reactor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01277909A (en) * 1988-04-29 1989-11-08 Fanuc Ltd Scaling method
US20170352476A1 (en) * 2014-12-25 2017-12-07 Autonetworks Technologies, Ltd. Reactor

Similar Documents

Publication Publication Date Title
US5926389A (en) Computer control system for generating geometric designs
JP2003303005A (en) Numerical control device
JPH0467201B2 (en)
CN100585525C (en) Digital control system
JPS5833711A (en) Numerical controller
JPS62267804A (en) Nc data changing method
EP0060039B1 (en) Numerically controlled machine tool system
JPS6289113A (en) Numerical control device
JPH06348327A (en) Area specifying method
EP0275325A1 (en) Numerical controller
JPS6289114A (en) Numerical control device
JP2865220B2 (en) Numerical control information creation device
JPH0336606A (en) Numerical controller
JPS62106506A (en) Method for correcting variable of robot control program
JPH0563749U (en) Numerical control device with processing time calculation function
JPH09305213A (en) Robot controller
JPH04237307A (en) Automatic transformation device for coordinate axis
JPH04217009A (en) Method for teaching work program
JPS6359604A (en) Method for changing working route in numerical controller
JP2642451B2 (en) Numerical control unit
JPH05210409A (en) Numeric controller
JPH1177485A (en) Numerical control device provided with logical expression interpreting function and control method thereof
JPH03156507A (en) Programming system for interactive numerical controller or automatic programming device
JPS61260304A (en) Numerical controller
JPH0290302A (en) Production system for numerical control information