JPS6244805A - Automatic programming system for numerical controller - Google Patents
Automatic programming system for numerical controllerInfo
- Publication number
- JPS6244805A JPS6244805A JP60182938A JP18293885A JPS6244805A JP S6244805 A JPS6244805 A JP S6244805A JP 60182938 A JP60182938 A JP 60182938A JP 18293885 A JP18293885 A JP 18293885A JP S6244805 A JPS6244805 A JP S6244805A
- Authority
- JP
- Japan
- Prior art keywords
- information
- input
- program
- numerical control
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Numerical Control (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明はオペレータのプログラミング操作方法を改良
した数値制御装置用自動プログラミング(以下、Aut
omatically Prograrrmed :
APと略す)方式に関するものである。[Detailed Description of the Invention] [Industrial Application Field] This invention is an automatic programming method (hereinafter referred to as "auto programming") for a numerical control device that improves the operator's programming operation method.
automatically programmed:
(abbreviated as AP) method.
従来のこの種のAP方式として第10図に示すものがあ
った。図において、10は入力情報等を読み込む入力部
でキーボード30から情報を入力する。12は前記入力
情報に基づいて演算処理を行なう演算部、14はこの演
算部12の演算処理結果を外部に出力する出力部で、演
算部12の処理手順を示すソフトウェアおよび処理結果
等を記憶する記憶部16とを備えている。A conventional AP system of this type is shown in FIG. In the figure, reference numeral 10 denotes an input unit for reading input information, etc., and information is input from a keyboard 30. 12 is an arithmetic unit that performs arithmetic processing based on the input information, and 14 is an output unit that outputs the arithmetic processing results of this arithmetic unit 12 to the outside, and stores software indicating the processing procedure of the arithmetic unit 12, processing results, etc. The storage unit 16 is also provided with a storage unit 16.
ここで記憶部16は、ROM素子、ま九はRAM素子に
記憶され、かつメモリガードされたソフトウェア20、
およびこのソフトウェア20に基づいてアクセスされる
RAM素子テーブル24を備えている。32は紙テープ
出力、34はプリンタである。Here, the storage unit 16 is a ROM element, and the software 20 is stored in a RAM element and is memory guarded.
and a RAM element table 24 that is accessed based on this software 20. 32 is a paper tape output, and 34 is a printer.
次に動作について説明する。まず、オペレータはキーボ
ード30からソフトウェア20のAP文法で定められた
プログラムを入力する、入力部10はその情報を読み取
り、演算部12を介して記憶部16のテーブル24に記
憶する。Next, the operation will be explained. First, the operator inputs a program defined by the AP grammar of the software 20 from the keyboard 30. The input section 10 reads the information and stores it in the table 24 of the storage section 16 via the calculation section 12.
一般に、このプログラムは多数のブロックから構成され
、オペレータはブロック単体に区切り、1ブロック毎に
入力するものである。オペレータにより多数ブロックの
プログラムの入力が終了すると、つぎにプログラムのコ
ンパイル起動を行すい、数値制御装置用プログラムに変
換する。Generally, this program is composed of a large number of blocks, and the operator divides the blocks into individual blocks and inputs each block. When the operator has finished inputting a large number of blocks of programs, the program is then compiled and started to be converted into a program for a numerical control device.
このとき、演算部12は、ソフトウェア20の処理手順
に従い、テーブル20に記憶されたプログラムの一活コ
ンパイルを行ない数値制御装置用プログラムを作り出し
、その結果をテーブル20に記憶させる。ここで、もし
コンパイル途中にプログラムの文法エラー等の異常を発
見すると、その情報を出力部14を介して、逐次プリン
タ34に出力する。At this time, the calculation unit 12 performs one-time compilation of the programs stored in the table 20 according to the processing procedure of the software 20 to create a program for the numerical control device, and stores the result in the table 20. Here, if an abnormality such as a grammar error in the program is found during compilation, the information is sequentially output to the printer 34 via the output unit 14.
一活コンパイルが終了し、異常等の発見がなければ、オ
ペレータは数値制御装置用プログラム出力の起動を行な
い、テーブル24に記憶し次数値制御装置用プログラム
を出力部14を介して紙テープ32に出力する。When the one-time compilation is completed and no abnormalities are found, the operator starts outputting the program for the numerical control device, stores it in the table 24, and outputs the program for the numerical control device to the paper tape 32 via the output unit 14. do.
従来のAP方式は以上のように構成されているので、A
P文法エラー等の発見はプログラムの入力した直後には
わからず、プログラムをすべて入力して一活コンパイル
起動を行なったときに始めて発見されていた。また−活
コンパイル後、発見された文法エラー等を修正入力して
再度コンノ(イルする場合、−活コンパイルを最初から
余儀なくされるためコンパイル時間に無駄があった。ま
たプログラムを1ブロック毎に入力しても、何のメツセ
ージもないため、オペレータの心理的な不安も無視し得
ぬ等の問題点があった。Since the conventional AP method is configured as described above,
P syntax errors and the like were not discovered immediately after inputting the program, but were discovered only after inputting the entire program and running a one-shot compilation. In addition, after live compilation, if you correct and input the found grammar errors and then re-compile, you are forced to perform live compilation from the beginning, which wastes compilation time.Also, input the program block by block. However, there were problems such as the psychological anxiety of the operator, which could not be ignored because there was no message.
この発明は上記のような問題点を解決するためになされ
たもので、プログラムを1ブロック毎に入力すると、そ
の都度コンパイルを行ないそのコンパイル結果を正規情
報または仮情報として逐時、出力し文法エラー等の早期
発見を行ない、併せて、オペレータのプログラム入力時
の不安を解消した数値制御装置用AP方式を提供するこ
とを目的とする。This invention was made to solve the above-mentioned problems. When a program is input block by block, it is compiled each time, and the compilation results are output as regular information or temporary information, and grammar errors occur. It is an object of the present invention to provide an AP method for a numerical control device that enables early detection of problems such as the above, and also eliminates the operator's anxiety when inputting a program.
この発明に係る数値制御装置用AP方式は、出力部11
Cグラフイツクデイスプレイ装置を接続し、記憶部16
のソフトウェアを工夫するととKよってプログラムを1
ブロック毎に入力したらその都度コンパイルし、その演
算結果をグラフィックディスプレイ装置k、直線0円弧
等で描画させるよ5Kしたものである。The AP method for a numerical control device according to the present invention includes an output section 11
Connect the C graphic display device and store it in the storage section 16.
By devising the software, the program becomes 1.
After inputting each block, it is compiled each time, and the calculation results are drawn on a graphic display device k, such as a straight line, 0 circular arcs, etc.
この発明における数値制御用AP方式は、プログラムを
1ブロック毎に入力すると、その演算結果がその都度、
グラフィックディスプレイ装置に描画されるためオペレ
ータはそのプログラムの正誤が容易に判断でき、また、
プログラムの入力情報がすべてそろわなくても仮情報と
してグラフィックディスプレイ装置に描画するため、オ
ペレータは安心してプログラムを入力できる。In the AP method for numerical control in this invention, when a program is input block by block, the calculation results are
Since the images are drawn on a graphic display device, the operator can easily determine whether the program is correct or not.
Even if all the input information for the program is not available, it is drawn on the graphic display device as temporary information, so the operator can input the program with confidence.
以下この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.
図中、第10図と同一の部分は同一の符号をもって図示
した第1図において、記憶部16は、ROM素子または
RAM素子に記憶され、かつメモリガードされたソフト
ウェア22、およびこのソフトウェア22に基づいてア
クセスされるRAM素子からなるテーブル24を備え、
入力部10にはオペレータからの入力情報を入力するた
めのキーボード30が接続されている。出力部14には
演算結果を出力するための紙テープ出力32と軌跡等を
描画するグラフィックディスプレイ36が接続されてい
る〇
次に、この数値制御装置用AP方式の仕様について簡単
に述べる。まず、オペレータがAP文法に従い1ブロッ
クの基本形状をキーボード30から入力すると、その演
算結果はその都度グラフィックディスプレイ36に描画
される。In FIG. 1, the same parts as in FIG. 10 are indicated by the same reference numerals. In FIG. a table 24 made up of RAM elements accessed by
A keyboard 30 is connected to the input unit 10 for inputting information from an operator. A paper tape output 32 for outputting calculation results and a graphic display 36 for drawing a trajectory etc. are connected to the output unit 14.Next, the specifications of this AP method for numerical control equipment will be briefly described. First, when the operator inputs the basic shape of one block from the keyboard 30 according to the AP grammar, the calculation results are drawn on the graphic display 36 each time.
この描画において、白色描画は正しく定義され数値制御
装置用プログラムに変換できるデータであることを示し
ている。また黄色描画は正しい情報ではあるが、次の指
令が誤設定、または未定義のため、数値制御装置用プロ
グラムに完全に変換できない状態、で内部的に次の仮情
報を作りグラフィックディスプレイ36に描画させ、オ
ペレータに対して次指令を入力するように要求するもの
で、正しい次指令を入力すると、白色描画に切り換わる
ものである。また、赤色描画は入力情報が誤設定、また
は未設定の状態で内部的に誤設定または未設定要素を仮
情報として作り、オペレータに修正要求するもので、修
正すると、黄色描画、または白色描画に切り換わるもの
である0
次に、具体的な描画変遷例を第2図〜第4図を用いて説
明する。第2図fal において、前回まで直線指令A
を入力済みとし、新たに直線指令B(たとえば終点座標
値)を入力すると、直線指令Aの終点座標値から直線B
の終点座標値まで、黄色直線で描画される。つぎに直線
指令Cを入力すると第2図(b)のように直線Bの黄色
直線が一度消去さく8)
れ、白色直線で再描画され、さらに、直線指令Bの終点
座標値から直線Cの終点座標値まで黄色直線で描画され
る。つぎK、コーナ挿入D(たとえば、半径のみ)を入
力すると、第2図(clのように、直線Cの黄色直線が
一度消去され、コーナ挿入指令り後の直線指令、または
円弧指令がまだ設定されていないが、その後の直線仮情
報を内部で作り、直線Cとコーナ挿入円弧りを黄色で再
描画させる。In this drawing, the white drawing indicates data that is correctly defined and can be converted into a program for a numerical control device. Also, although the yellow drawing is correct information, the next command is incorrectly set or undefined, so it cannot be completely converted to a numerical control device program, so the next provisional information is created internally and drawn on the graphic display 36. This command requests the operator to input the next command, and if the correct next command is input, the drawing will switch to white. In addition, when drawing red, the input information is incorrectly set or not set, the incorrectly set or unset elements are internally created as temporary information, and the operator is requested to correct them. When corrected, the drawing becomes yellow or white. Next, a specific example of the drawing transition will be explained with reference to FIGS. 2 to 4. In Fig. 2 fal, the previous straight line command A
has been input, and input a new straight line command B (for example, the end point coordinate value), the straight line B from the end point coordinate value of the straight line command A
A yellow straight line is drawn up to the end point coordinate value. Next, when straight line command C is input, as shown in Figure 2 (b), the yellow straight line of straight line B is once erased (8) and redrawn as a white straight line, and then straight line C is drawn from the end point coordinate value of straight line command B. A yellow straight line is drawn up to the end point coordinate value. Next, when K and corner insertion D (for example, radius only) are input, the yellow straight line of straight line C is once erased as shown in Figure 2 (cl), and the straight line command or circular arc command after the corner insertion command is still set. However, the subsequent straight line temporary information is created internally, and the straight line C and the corner insertion arc are redrawn in yellow.
つぎに直線指令Eを入力すると、第2図(d)のように
直線Cとコーナ挿入円弧りが一度消去され、直線指令C
とコーナ挿入指令りと直線Eで再計算される直線Cとコ
ーナ挿入円弧りを白色で描画し、さらに直線Eの終点座
標値まで黄色直線で描画する。第2図のように通常、プ
ログラムの入力情報がすべてそろわなくとも仮情報を内
部で作り、黄色描画させ、序々に正規の軌跡描画に近づ
け、すべての入力情報がそろったら、正規情報として白
色描画させるものである。Next, when the straight line command E is input, the straight line C and the corner insertion arc are once erased as shown in Fig. 2(d), and the straight line command C
In response to the corner insertion command, the straight line C and the corner insertion arc recalculated using the straight line E are drawn in white, and furthermore, the end point coordinate value of the straight line E is drawn as a yellow straight line. As shown in Figure 2, normally, even if all the input information of the program is not available, temporary information is created internally and drawn in yellow, gradually approaching the normal trajectory drawing, and when all input information is collected, white is drawn as normal information. It is something that makes you
また、第3図(alにおいて、直線指令Cが誤った場合
、誤った直線の仮情報を内部で作り、赤色直線で描画さ
せ誤設定であることを示す。つぎに、この直線指令Cを
正しく修正すると第3図(blのように直線Aの赤色直
線は消去され、黄色直線Cとして描画される。第4図(
atにおいて、すでに定義された円弧指令Bを修正した
場合、第4図(blのようにまず円弧指令B以降の軌跡
描画を消去し、再度修正した円弧指令B以降の軌跡描画
を行う。In addition, in Figure 3 (al), if the straight line command C is incorrect, provisional information of the wrong straight line is created internally, and a red straight line is drawn to indicate the incorrect setting. When corrected, the red straight line of straight line A is deleted as shown in Figure 3 (bl) and drawn as yellow straight line C. Figure 4 (
In at, when the already defined arc command B is modified, as shown in FIG.
以上のようにグラフィックディスプレイに各軌跡を描画
させ異常等がなければオペレータは、数値制御装置用プ
ログラム出力の起動を行ない、入 力されたデー
タより数値制御装置用のデータに変換し、出力部14を
介して、紙テープ出力32に出力する。As described above, if each trajectory is drawn on the graphic display and there are no abnormalities, the operator starts the program output for the numerical control device, converts the input data into data for the numerical control device, and outputs it to the output section 14. is outputted to the paper tape output 32 via.
次に第1図の動作について説明する。まず、オペレータ
はキーボード30からソフトウェア22のAP文法で定
められたプログラムの形状入力を1ブロック入力する。Next, the operation shown in FIG. 1 will be explained. First, the operator inputs one block of program shape input defined by the AP grammar of the software 22 from the keyboard 30.
これによって入力部10はその情報を読み取り、演算部
12を介して記憶部16のテーブル24に基本形状とし
て記憶する。The input unit 10 thereby reads the information and stores it as a basic shape in the table 24 of the storage unit 16 via the calculation unit 12.
その基本形状のデータ解析については後述するソフトウ
エア22の処理手順で行ない、グラフィックディスプレ
イデータな作成し、その結果を出力部14を介してグラ
フィックディスプレイ36に描画させる。このようにA
Pの形状入力を1ブロック毎に入力するとソフトウェア
22の処理手順に従って、グラフィックディスプレイ3
6に逐次描画され、オペレータは多数形状プログラムの
人 。The data analysis of the basic shape is performed by the processing procedure of the software 22, which will be described later, to create graphic display data, and the result is drawn on the graphic display 36 via the output unit 14. Like this A
When the shape of P is input block by block, the graphic display 3 is displayed according to the processing procedure of the software 22.
6, and the operator is a person with a multi-shape program.
力が終了すると、数値制御装置用プログラム出力の起動
を行ない、入力された基本形状より数値制御装置用のプ
ログラムに変換し、出力部14を介して紙テープ出力3
2に出力する。When the force is finished, the program output for the numerical control device is activated, the input basic shape is converted into a program for the numerical control device, and the paper tape output 3 is output via the output unit 14.
Output to 2.
次に第1図のテーブル24の基本形状に関するテーブル
について説明する。第5図においてエリアには、描画状
態を管理するディレクトリ−エリアAと、入力装置から
のデータを読み込む入カニリアIと、多数の基本形状を
記憶する基本形状エリアBと、データ解析演算に使用す
るテンポラリエリアTがある。ディレクトリ−エリアA
にはつぎのものがある。登録形状数Anは基本形状エリ
アBの登録形状の数を記憶するもの。軌跡完了形状数A
mは、数値制御装置用プログラムに変換できる基本形状
数(白色描画数)を記憶し、グラフィック消去や再計算
開始番号に使用される。解析開始番号A8は軌跡完了形
状数AmのコピーであるO
入カニリアIにはつぎのものがある。入力ステータスエ
、は入力されたデータが新規データか、修正データか、
の区別等に使用される。入力設定番号Imは新規データ
の場合、最新の形状番号、修正データの場合修正する形
状番号である。入力タイプIiは入力データが、直線1
円弧、コーナ等の区別に使われるものである。入力設定
要素Idol〜(k)は各タイプにより、それぞれの異
なったデータであり、たとえば直線タイプの場合、終点
座標値等である。基本形状エリアBには設定され次数だ
けの基本形状があり、主に入力設定要素Ie(klを入
力時毎にコピーしたもので、形状番号Iqzlnは入力
設定番号Inを、タイプB(zltは入力タイプIiを
、設定要素B(tle(ol〜(klは入力設定要素”
e(01’″1klをそれぞれコピーしたもので、さら
にグラフイック描画のためつぎのものがある。描画フラ
グB(t)fは基本形状の解析結果がどのような状態(
白色描画か、黄色描画か赤色描画)で描画させるかのフ
ラグ、グラフィック要素11)g(0)〜(klはグラ
フィックディスプレイに描画させるだめの情報(たとえ
ば直線の場合、始点、終点座標値)。テンポラリエリア
Tは基本形状解析時のエリアで基本形状エリアBからの
形状番号Bft)nからグラフィック要素桓t)〆k)
の単位で3セツトを形状番号T(ohからグラフィック
要素T(Q1g+klの単位で3セツトコピーしたもの
である。解析番号Tnは、解析開始番号Asをコピーし
たもの、軌跡完了更新フラグTnは軌跡完了形状数Am
の更新を決めるフラグである。第6図は各フラグの詳細
で、ビット対応はつぎのようになっている。例えば入力
ステータスI、には、入力完了、新規データ、修正デー
タが割り当てられ、タイプIt−n(zlt、 ’r
(zliには直線1円弧cw 、 円弧CCW、コー
ナR,コーナCが割り当てられ、描画フラグB(21f
、 T(o)fには描画完了(白色描画)、設定完了
(黄色描画)、形状エラー(赤色描画)が割り当てられ
ている。Next, a table regarding the basic shape of the table 24 in FIG. 1 will be explained. In FIG. 5, the areas include a directory area A for managing the drawing state, an input area I for reading data from an input device, a basic shape area B for storing a large number of basic shapes, and a area used for data analysis calculations. There is a temporary area T. Directory-Area A
has the following: The number of registered shapes An stores the number of registered shapes in the basic shape area B. Number of trajectory completed shapes A
m stores the number of basic shapes (number of white drawings) that can be converted into a program for a numerical control device, and is used for graphic deletion and recalculation start number. The analysis start number A8 is a copy of the trajectory completed shape number Am. Input status indicates whether the input data is new data or modified data.
It is used to distinguish between In the case of new data, the input setting number Im is the latest shape number, and in the case of modified data, it is the shape number to be corrected. For input type Ii, the input data is straight line 1
It is used to distinguish between arcs, corners, etc. The input setting elements Idol to (k) are different data depending on each type; for example, in the case of a straight line type, they are end point coordinate values, etc. Basic shape area B has a basic shape with only the set order, mainly the input setting element Ie (kl is copied every time it is input, the shape number Iqzln is the input setting number In, type B (zlt is the input Type Ii is set to setting element B (tle(ol~(kl is input setting element)
e(01'''1kl), and there are the following for graphic drawing.The drawing flag B(t)f indicates what state the basic shape analysis result is (
A flag indicating whether to draw in white, yellow, or red; graphic elements 11) g(0) to (kl are information to be drawn on the graphic display (for example, in the case of a straight line, start point and end point coordinate values); Temporary area T is the area during basic shape analysis, and is the shape number from basic shape area B (Bft)n to graphic element t)〆k)
3 sets are copied in units of shape number T (oh to graphic element T (Q1g + kl). Analysis number Tn is the copy of analysis start number As, trajectory completion update flag Tn is trajectory completion Shape number Am
This is a flag that determines the update of . FIG. 6 shows details of each flag, and the bit correspondence is as follows. For example, input status I is assigned input completion, new data, and modified data, and type It-n(zlt, 'r
(A straight line 1 circular arc cw, circular arc CCW, corner R, and corner C are assigned to zli, and the drawing flag B (21f
, T(o)f are assigned drawing completion (white drawing), setting completion (yellow drawing), and shape error (red drawing).
次に第1図のソフトウェア22の基本形状入力に関する
処理手順について説明する。Next, a processing procedure regarding basic shape input by the software 22 shown in FIG. 1 will be explained.
第7図は基本形状入力に関する流れ図である。FIG. 7 is a flowchart regarding basic shape input.
まず、5T−1はイニシャライズ処理でディレクトリエ
リアA、入カニリアl、基本形状エリアB。First, 5T-1 initializes directory area A, input area L, and basic shape area B.
テンポラリエリアTをオールクリアするものである。5
T−2はキーの読み込み処理で入力ステータスI、%入
力設定番号In、入力タイプIt、入力設定要素I e
(01〜(kiの入力を行う。5T−3は分岐命令で入
力ステータス!、により、新規データの場合5T−5へ
、修正データの場合5T−7、入力完了の場合5T−1
0に夫々分岐する。5T−5は新規データの場合のエン
トリーで、登録形状数Amを+1して更新する。これに
より、データ解析される基本形状の数が1つ多くなる。This is to completely clear the temporary area T. 5
T-2 is the key reading process, input status I, % input setting number In, input type It, input setting element I e
(01 ~ (Input ki. 5T-3 is a branch instruction and input status!), so if it is new data, go to 5T-5, if it is modified data, go to 5T-7, if input is completed, go to 5T-1
Branch to 0 respectively. 5T-5 is an entry for new data, and is updated by adding 1 to the number of registered shapes Am. This increases the number of basic shapes whose data is analyzed by one.
5T−6は入力された基本形状の入力設定番号In、入
力タイプIi、入力設定要素I e(o1〜(kl を
基本形状エリアBの形状番号11Ktln、タイプ11
1(1)t、設定要素B(tle(ol〜(k)にコピ
ーする。この処理後5T−11へ分岐する。5T-6 is the input setting number In of the input basic shape, the input type Ii, the input setting element Ie(o1~(kl), the shape number 11Ktln of the basic shape area B, the type 11
1(1)t, copy to setting element B(tle(ol~(k)). After this process, branch to 5T-11.
5T−7は修正データの場合のエントリーで、入力設定
番号Inが軌跡完了形状数Am(白色描画数)を越える
場合5T−9に分岐させる。5T−8は第4図のように
、正規データ修正対策のため軌跡完了形状数AmK″′
入力設定番号In−1”を入力する。これにより修正さ
れた基本形状以降の再計算が実施される。5T−9は修
正された基本形状の入力設定番号工。、入カタイプIi
、入力設定要素r e(01〜(klを該当する基本形
状エリアBの形状番号n(t)n、 タイプnfz)
1 、設定要素B(t)e(Of〜(k)にコピーする
。この処理後5T−11へ分岐する。5T−10は入力
完了の場合のエン) IJ−で、ここで設定された基本
形状より数値制御装置用プログラム(NCデータフォー
マット)に−活コンパイル(データ変換)して外部(紙
テープ出力)出力する。5T−11は解析開始番号A、
K”軌跡完了形状数Am+1”(一般に前回の黄色描画
番号)を入力し、基本形状のデータ解析を最初から行な
わず、途中の基本形状から行なうようにしている。この
ためデータ解析時間が最初から実施するより、かなりの
時間短縮になる。5T−12はグラフィックの消去ルー
チンで、解析開始番号Asによる基本形状(zlのグラ
フィック要素B(t)g(Of〜(k) よりグラフ
ィック描画を消去する。8T−i 3は後述する6基本
形状のデータ解析ルーチン”で解析開始番号Asによる
基本形状(t)のデータ解析とグラフィック要素B(1
)g(0)〜(k)の作成を行う。このルーチンのため
、1ブロック毎に入力された基本形状がデータ解析され
5T−14のルーチンによりグラフィック描画される。5T-7 is an entry for corrected data, and if the input setting number In exceeds the number of trajectory completed shapes Am (the number of white drawings), the process branches to 5T-9. 5T-8, as shown in Figure 4, the number of trajectory completed shapes AmK''' is corrected for normal data.
Input the input setting number "In-1". This will cause recalculation after the corrected basic shape. 5T-9 is the input setting number of the corrected basic shape. Input type Ii
, input setting element r e (01 ~ (kl is the shape number n(t)n of the corresponding basic shape area B, type nfz)
1. Copy setting element B(t)e (Of~(k). After this processing, branch to 5T-11. 5T-10 is En when input is completed) IJ-, the basic set here Based on the shape, it is compiled into a numerical control device program (NC data format) (data conversion) and output to the outside (paper tape output). 5T-11 is analysis start number A,
K"Number of trajectory completed shapes Am+1" (generally the previous yellow drawing number) is input, and the data analysis of the basic shape is not performed from the beginning, but is performed from the intermediate basic shape. Therefore, the time required for data analysis is considerably reduced compared to performing it from the beginning. 5T-12 is a graphic erasing routine that erases the graphic drawing from the basic shape (zl graphic element B(t)g(Of~(k)) according to the analysis start number As. 8T-i 3 erases the 6 basic shapes described later ' data analysis routine' performs data analysis of basic shape (t) using analysis start number As and graphic element B (1
) g(0) to (k) are created. For this routine, the basic shape input for each block is data analyzed and graphically drawn by the 5T-14 routine.
5T−14は、後述する1基本形状のグラフィック描画
ルーチン”で解析開始番号Asによる基本形状(71の
グラフィック要素B(zJg(OHklによりグラフィ
ックが描かれる。この処理が終了すると5T−2へ分岐
し、基本形状の入力処理に戻る。5T-14 is a basic shape drawing routine for 1 basic shape (to be described later), which draws a basic shape (71 graphic element B (zJg (graphic is drawn using OHkl) using the analysis start number As. When this process is completed, it branches to 5T-2. , return to the basic shape input process.
第8図は前記第7図5T−13の6基本形状データ解析
ルーチン”の詳細なフローチャートである。FIG. 8 is a detailed flowchart of the "6 basic shape data analysis routine" shown in FIG. 7, 5T-13.
まず、5T−1Aはイニシャライズで解析番号Tnに解
析開始番号A、を転送し、軌跡完了更新フラグをオンに
する。5T−2Aは基本形状データの終了判別処理で解
析番号Tnと登録形状数Anとを比較し、解析番号Tn
が登録形状数Anを越えると、終了し本ルーチンをリタ
ーンする。First, the 5T-1A transfers the analysis start number A to the analysis number Tn during initialization, and turns on the trajectory completion update flag. 5T-2A compares the analysis number Tn and the number of registered shapes An in the end determination process of basic shape data, and determines the analysis number Tn.
When the number of registered shapes exceeds the number of registered shapes An, the process ends and returns to this routine.
5T−3Aは解析番号Tnより指定された基本形状Bf
t)の形状番号n(zlnsタイプn(z)t、設定要
素B(t)e(01〜Fk)をテンポラリT(0)の形
状番号T (01r4 sタイプT(Oli、設定要素
T(ole(ol〜(kl K転送スル。Iii[K、
次基本形状B(t+1)、次々基本形状BC1+2>を
テンポラリT (11、T (2Hc転送する。5T−
4AはテンポラリエリアT(0)の基本形状データ解析
を次基本形状T(1)、次々基本形状T(2)を参照し
ながら実施する。5T−5Aは分岐命令で前記5T−4
Aの基本形状データ解析結果により、分岐するもので基
本形状に誤り、または未設定のときはS T−6Aに分
岐し、次基本形状、または次々基本形状に誤りまたは未
設定のときは5T−8Aに分岐し、正常のときは5T−
19Aに分岐する。5T−6Aは基本形状に誤り、また
は未設定のときのエントリーで、その要素に仮の数値を
入力する。この処理により第3図のように本ソフトウェ
ア22の大きな特徴である仮情報でグラフィック描画で
きるようになる。5T−7Aは基本形状に誤り、または
未設定があったので、描画フラグの6形状エラー”をオ
ンさせ、赤色描画させるようにする。この後は5T−1
1A へ分岐する。5T−8A は次基本形状または
次々基本形状に誤り、または未設定のときのエントリー
でありその要素に仮の数値を入力する。この処理により
第2図のように本ソフトウェア22の大きな特徴である
次情報を仮に作成し、グラフィック描画できるようにす
る。5T-3A is the basic shape Bf specified by the analysis number Tn
t)'s shape number n(zlns type n(z)t, setting element B(t)e(01~Fk) is temporarily set to T(0)'s shape number T(01r4 s type T(Oli, setting element T(ole (ol ~ (kl K transfer sul. Iiii[K,
Next basic shape B(t+1), one after another, basic shape BC1+2> is transferred temporarily T (11, T (2Hc).5T-
4A performs basic shape data analysis of the temporary area T(0) while referring to the next basic shape T(1) and then to the basic shape T(2). 5T-5A is a branch instruction and the above 5T-4
If the basic shape data analysis result of A is branched and the basic shape is incorrect or not set, branch to ST-6A, and if the next basic shape or one after another is incorrect or not set, branch to 5T- Branches to 8A, and when normal, it branches to 5T-
Branches to 19A. 5T-6A is an entry when the basic shape is incorrect or has not been set, and a temporary value is input into that element. Through this processing, graphics can be drawn using temporary information, which is a major feature of the software 22, as shown in FIG. 5T-7A had an error in the basic shape or was not set, so turn on the drawing flag "6 shape error" and draw in red.After this, 5T-1
Branch to 1A. 5T-8A is an entry when the next basic shape or the successive basic shapes is incorrect or not set, and a temporary numerical value is input into that element. Through this process, as shown in FIG. 2, the following information, which is a major feature of this software 22, is temporarily created and graphics can be drawn.
5T−9Aは次基本形状、または次々基本形状に誤り、
または未設定があったので描画フラグの7設定完了”を
オンさせ黄色描画させるようにする。5T-9A is incorrect in the next basic shape or one after another,
Or, since some settings have not been set, turn on the drawing flag 7 "Setting Complete" to draw yellow.
この後は5T−11Aへ分岐する。After this, it branches to 5T-11A.
5T−1OAは正規な基本形状データで誤りや未設定が
ないので描画フラグの”描画完了”をオンさせ、白色描
画させるようにする。この後は5T−12人へ分岐する
。Since 5T-1OA has regular basic shape data and has no errors or unset settings, the drawing flag "drawing complete" is turned on to draw white. After this, it branches to 5T-12 people.
BT−11Aは仮情報で描画させたときに通過する。BT-11A passes when drawn using temporary information.
ここで軌跡完了更新フラグをオフにする。これにより次
回の基本形状入力時にデータ解析を最初から行なうので
はなく、仮情報で描画させた基本形状より行ない解析時
間の短縮を図る。Here, turn off the trajectory completion update flag. As a result, data analysis is not performed from the beginning when inputting the basic shape next time, but is performed from the basic shape drawn using temporary information, thereby reducing the analysis time.
8T−12AはテンポラリT(Q) 、 T (1)
、 T(21よりグラフィックの情報を計算し、その結
果をテンポラリT (0)のグラフィック要素T(Ol
g(01〜(k)に作成する。8T-12A is temporary T (Q), T (1)
, T(21), calculate the graphic information from T(21), and use the result as the graphic element T(Ol
g(01 to (k)).
5T−13AはテンポラリT(0)の描画フラグ’r(
Olf、グラフィック要素T(0)g(0)〜(k)を
基本形状エリアn(4の描画フラグn(4f、グラフィ
ック要素n (t)g (0)〜(k)K転送する。5T-13A sets the temporary T(0) drawing flag 'r(
Olf, graphic elements T(0)g(0) to (k) are transferred to basic shape area n(4, drawing flag n(4f, graphic element n(t)g(0) to (k)K).
5T−14Aは分岐命令で軌跡完了更新フラグがオフの
とき5T−15Aに分岐し、軌跡完了更新フラグがオン
のとき5T−15AK分岐する。5T−15Aでは軌跡
完了形状数Amに、解析番号Tnを入力する。5T-14A is a branch instruction, which branches to 5T-15A when the trajectory completion update flag is off, and branches to 5T-15AK when the trajectory completion update flag is on. In 5T-15A, the analysis number Tn is input into the number Am of completed trajectory shapes.
5T−16Aは解析番号’rnを1つ更新後、5T−2
Aへ分岐し、次基本形状のデータ解析を行う。5T-16A is 5T-2 after updating the analysis number 'rn by one.
Branch to A and perform data analysis of the next basic shape.
第9図は第7図8T−14の6基本形状グラフィック描
画ルーチン”の詳細なフローチャートである。FIG. 9 is a detailed flowchart of the 6 basic shape graphic drawing routine of FIG. 7 8T-14.
まず、5T−IBはイニシャライズで解析番号Tnに解
析開始番号A、を転送する。First, the 5T-IB transfers the analysis start number A to the analysis number Tn during initialization.
BT−2nは基本形状データの終了判別処理で解析番号
Tnと登録形状数Anとを比較し、解析番号Tnが登録
形状数Anを越えると終了し、本ルーチンをリターンす
る0
8T−3Bは解析番号Tnより指定された基本形状n
(z)の描画フラグn(4f、グラフィック要素n (
zl〆0)〜(k)をテンポラリT(0)の描画フラグ
T (0) f、グラフィック要素T(01g(0)〜
(k)に転送する。BT-2n compares the analysis number Tn and the number of registered shapes An in the basic shape data completion determination process, and when the analysis number Tn exceeds the number of registered shapes An, the process ends and returns to this routine. Basic shape n specified by number Tn
(z) drawing flag n(4f, graphic element n (
zl〆0)~(k) as temporary drawing flag T(0) f, graphic element T(01g(0)~
Transfer to (k).
5T−4Bは分岐命令で描画フラグT (0) fを参
照して1形状エラー”のとき5T−5Bに分岐させて赤
色描画させ、6設定完了”のとき5T−6Bに分岐させ
て黄色描画させ、”描画完了”のとき5T−7Bに分岐
させて白色描画させる。この処理は本ソフトウェア22
の特徴である基本形状がそろわなくとも仮情報を作りグ
ラフィックディスプレイに描画させ、色でオペレータに
注意を与えることができるものである。5T-4B is a branch command that refers to the drawing flag T (0) f, and when there is 1 shape error, it branches to 5T-5B and draws red, and when 6 settings are complete, it branches to 5T-6B and draws yellow. When it is "drawing complete", it branches to 5T-7B and draws white. This process is performed by this software 22.
Even if the basic shapes are not aligned, temporary information can be created and drawn on the graphic display, and the operator can be alerted using colors.
5T−5B 、 6B 、 7Bはそれぞれ赤色描画、
黄色描画、白色描画でグラフィック要素T(olg(o
)〜(k)の内容を描画する。5T-5B, 6B, 7B are respectively painted in red,
Graphic element T(olg(o
) to (k) are drawn.
5T−8Bは解析番号Tnを1つ更新後、5T−28へ
分岐し次基本形状のグラフィック描画を行なう。After updating the analysis number Tn by one, 5T-8B branches to 5T-28 and performs graphic drawing of the next basic shape.
また、上記実施例では、数値制御装置用自動プログラミ
ング方式について説明したが、数値制御装置の加ニブロ
グラム編集機能やMDI(手動データ入力)機能であっ
てもよく上記実施例と同様の効果を奏する。Further, in the above embodiment, an automatic programming method for a numerical control device has been described, but the program editing function or MDI (manual data input) function of the numerical control device may also be used, and the same effects as in the above embodiment can be obtained.
以上のように、この発明によれば入力情報がすべて、そ
ろわなくても仮の情報で演算してグラフィックディスプ
レイに出力できるようにしたので、オペレータに注意を
与え、すべての入力情報をそろうと、仮情報が消えて正
情報を描画するため、オペレータは安心して入力情報を
入力できる効果がある。As described above, according to the present invention, even if all input information is not available, calculations can be made using temporary information and output to the graphic display. Since the temporary information disappears and the correct information is drawn, the operator can input information with peace of mind.
第1図はこの発明の一実施例による数値制御装置用自動
プログラミング装置を示すブロック図、第2図、第3図
、第4図は一例として示したこの発明の描画図、第5図
、第6図は一例として示したこの発明のRAMテーブル
図、第7図、第8図、第9図はこの発明のソフトウェア
のフローチャート、第10図は従来の数値制御装置用自
動プログラミング装置のブロック図である。
図において、10は入力部、12は演算部、14は出力
部、16は記憶部、36はグラフィックディスプレイで
ある。
特許出願人 三菱電機株式会社
第2図
第5図
第4図
第6図
第7図
手続補正書(自発)
昭和 6’4.6.清3 ヨFIG. 1 is a block diagram showing an automatic programming device for a numerical control device according to an embodiment of the present invention, FIGS. 2, 3, and 4 are drawings of the invention shown as an example, and FIGS. FIG. 6 is a RAM table diagram of the present invention shown as an example, FIGS. 7, 8, and 9 are flowcharts of the software of the present invention, and FIG. 10 is a block diagram of a conventional automatic programming device for a numerical control device. be. In the figure, 10 is an input section, 12 is an arithmetic section, 14 is an output section, 16 is a storage section, and 36 is a graphic display. Patent applicant: Mitsubishi Electric Corporation Figure 2 Figure 5 Figure 4 Figure 6 Figure 7 Procedural amendment (voluntary) Showa 6'4.6. Sei 3 Yo
Claims (3)
算部によつて数値制御装置用プログラムに変換して記憶
装置に記憶し、前記記憶された演算部の情報を出力部を
介してオペレータに伝達する数値制御装置用自動プログ
ラミング方式において、前記出力部にグラフィックディ
スプレイ装置を接続し、前記入力部から取込んだ1ブロ
ック毎の入力プログラムを前記演算装置によつてプログ
ラム変換した後、前記記憶装置に記憶すると共に、前記
グラフィック・ディスプレイ装置にその都度描画するよ
うにし、かつ前記入力プログラム情報が不備の段階では
仮情報として前記グラフィック・ディスプレイ装置に描
画し、前記情報が正情報として確立時に該仮情報を消去
し正情報に変換した後、前記グラフィック・ディスプレ
イ装置に出力できるようにしたことを特徴とする数値制
御装置用自動プログラミング方式。(1) When automatic programming information is taken in from the input section, it is converted into a numerical control device program by the calculation section and stored in the storage device, and the stored information of the calculation section is transmitted to the operator via the output section. In an automatic programming method for a numerical control device, a graphic display device is connected to the output section, and the input program for each block taken in from the input section is converted into a program by the arithmetic device, and then stored in the storage device. The input program information is stored and drawn on the graphic display device each time, and when the input program information is incomplete, it is drawn on the graphic display device as temporary information, and when the information is established as correct information, the temporary information is An automatic programming method for a numerical control device, characterized in that after erasing and converting the information into positive information, the information can be output to the graphic display device.
ックディスプレイ装置に描画されるときに、前記数値制
御装置用プログラムに変換可能な正情報である場合、ま
た、正情報ではあるが次指令が誤設定か未定義のために
前記数値制御装置用プログラムに変換できず内部的に仮
情報として正しい次指令を待機中の場合、及び前記入力
情報が誤設定か未設定の状態で内部的に誤設定または未
設定要素を仮情報として作り修正要求を待機中の場合等
に夫々別の描画色を施すようにしたことを特徴とする特
許請求の範囲第1項記載の数値制御装置用自動プログラ
ミング方式。(2) When the input program information is drawn on the graphic display device as temporary information, if it is correct information that can be converted into the program for the numerical control device, or if the next command is set incorrectly even though it is correct information. If the correct next command is being waited for internally as temporary information because it cannot be converted to the numerical control device program because it is undefined, or if the input information is incorrectly set or not set internally and it is not converted to the program for the numerical control device. 2. The automatic programming method for a numerical control device according to claim 1, wherein the setting elements are created as temporary information and a different drawing color is applied to each setting element when it is waiting for a modification request.
もつて描画するとき、正しい次指令の入力情報を受ける
と正しい情報色に切替わつて描画されるようにしたこと
を特徴とする特許請求の範囲第1項記載の数値制御装置
用自動プログラミング方式。(3) When drawing in the temporary information color on the graphic display device, when input information of the correct next command is received, the drawing is switched to the correct information color and drawn. An automatic programming method for a numerical control device according to item 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60182938A JPS6244805A (en) | 1985-08-22 | 1985-08-22 | Automatic programming system for numerical controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60182938A JPS6244805A (en) | 1985-08-22 | 1985-08-22 | Automatic programming system for numerical controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6244805A true JPS6244805A (en) | 1987-02-26 |
Family
ID=16126996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60182938A Pending JPS6244805A (en) | 1985-08-22 | 1985-08-22 | Automatic programming system for numerical controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6244805A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02288902A (en) * | 1989-01-31 | 1990-11-28 | Sony Corp | Free curved surface working method |
-
1985
- 1985-08-22 JP JP60182938A patent/JPS6244805A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02288902A (en) * | 1989-01-31 | 1990-11-28 | Sony Corp | Free curved surface working method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6424883B1 (en) | Virtual numeric control device adaptable to any real numeric control device | |
JP3994090B2 (en) | Numerical controller | |
JPS6244805A (en) | Automatic programming system for numerical controller | |
JPH02140809A (en) | Method for loading control program in numerical controller | |
US6009268A (en) | Device for programming a stored program controller | |
JPS63131229A (en) | Processing procedure creation processing method | |
JPS61272890A (en) | Device for recognizing handwritten character | |
JP2584229B2 (en) | CAD / CAM automatic programming device | |
JPS6149206A (en) | Process operation method | |
JP4613003B2 (en) | Source program conversion method | |
JPH0371209A (en) | Abnormality detector for numerical control program | |
JPH02206805A (en) | System for executing part program | |
JPH0348333A (en) | Processors and drawing processors | |
JPH077839U (en) | Numerical control device | |
JP2900073B2 (en) | Programmable controller system | |
JPH01156806A (en) | Debugging device | |
JPH0420481B2 (en) | ||
JPS63317807A (en) | Program dividing device | |
JPH06124113A (en) | Interactive numerical control device | |
JPH01134501A (en) | Pc program editing system | |
JPS6299051A (en) | Automatic programming apparatus | |
JPH01152507A (en) | Nc program registration system | |
JPH01230101A (en) | Numerical control method | |
JPS62154102A (en) | Program writer | |
JPH0720809B2 (en) | Elevator control device |