JPH05150816A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH05150816A
JPH05150816A JP31237491A JP31237491A JPH05150816A JP H05150816 A JPH05150816 A JP H05150816A JP 31237491 A JP31237491 A JP 31237491A JP 31237491 A JP31237491 A JP 31237491A JP H05150816 A JPH05150816 A JP H05150816A
Authority
JP
Japan
Prior art keywords
name
tool
program
coordinate system
machining program
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
JP31237491A
Other languages
Japanese (ja)
Inventor
Taketoshi Fukutani
武都志 福谷
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 JP31237491A priority Critical patent/JPH05150816A/en
Publication of JPH05150816A publication Critical patent/JPH05150816A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To obtain the NC device capable of designating a call of a subprogram in a working program, a call of a tool, a call of a tool correction amount, and a call of a work coordinate system by the name instead of by the number. CONSTITUTION:The numerical controller is constituted so that in the case of executing a call of a subprogram in a working program, a call command of the subprogram is executed by the name of the working program set by a program name setting means 106, its working program name is converted into the working program number by a program name converting means 104, and the subprogram is called. Since the respective calls are executed by the name instead of the number, for what working each of them is used can be discriminated easily, a generation miss of the working program decreases, and also, a fact that a work is spoiled by executing an erroneous working program decreases.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、例えば工作機械に対
する自動制御において、指令信号として数値化された情
報を用いて制御する数値制御装置(NC装置)に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control device (NC device) for controlling, for example, automatic control of a machine tool by using numerical information as a command signal.

【0002】[0002]

【従来の技術】図12は、例えば特開昭63−1005
12号公報に開示された従来のNC装置の構成を示すブ
ロック図である。図において、1は処理する情報、例え
ば加工プログラムを入力する入力装置、2は入力装置1
で入力された情報を記憶する記憶装置、3は記憶装置2
の情報を読み取り、その指令により制御信号を出力する
演算・制御装置、4は演算・制御装置3から出力する制
御信号を、例えば工作機械に出力する出力装置、5は記
憶装置2に記憶された加工プログラム等の情報を表示
し、加工プログラムのチェック又は加工中の監視を行う
CRT表示装置である。
2. Description of the Related Art FIG. 12 shows, for example, Japanese Patent Laid-Open No. 63-1005.
FIG. 12 is a block diagram showing a configuration of a conventional NC device disclosed in Japanese Patent No. 12 publication. In the figure, 1 is an input device for inputting information to be processed, for example, a machining program, and 2 is an input device 1.
A storage device for storing the information input in 3 and a storage device 2
Of the above information and outputs a control signal in response to the command, 4 is an output device for outputting the control signal output from the arithmetic / control device 3 to, for example, a machine tool, and 5 is stored in the storage device 2. The CRT display device displays information such as a machining program and checks the machining program or monitors during machining.

【0003】図13は図12のNC装置におけるハード
ウェア構成を示すブロック図である。図において、10
は系全体の論理的処理を行うCPU(中央処理装置)、
11はCPU10を動作させるプログラムが記憶されて
いるROM、12はNC装置の加工データ等が記憶され
ているRAM、13は加工データ等が穿孔されているテ
ープ、14はテープ13の情報を読み取り、RAM12
に記憶させるテープリーダ、15はキーボード、16は
オペレータのキー入力を受け付けるキーボードインタフ
ェース(キーボードI/F)、18はCRT、17はC
RT18への表示を制御するCRTコントローラ、19
はサーボコントローラ、21は工作機械、20はサーボ
コントローラ19の出力に基づいて工作機械21を駆動
する駆動回路である。
FIG. 13 is a block diagram showing the hardware configuration of the NC device shown in FIG. In the figure, 10
Is a CPU (Central Processing Unit) that performs logical processing of the entire system,
Reference numeral 11 is a ROM in which a program for operating the CPU 10 is stored, 12 is a RAM in which processing data of the NC device is stored, 13 is a tape in which processing data and the like are punched, 14 is information read from the tape 13, RAM12
A tape reader to be stored in the keyboard, 15 a keyboard, 16 a keyboard interface (keyboard I / F) that accepts operator's key input, 18 CRT, 17 C
CRT controller for controlling display on RT18, 19
Is a servo controller, 21 is a machine tool, and 20 is a drive circuit for driving the machine tool 21 based on the output of the servo controller 19.

【0004】次に、図12に示すNC装置と図13に示
すNC装置におけるハードウェア構成との関係について
説明する。入力装置1はテープリーダ14、キーボード
15及びキーボードインタフェース16によって構成さ
れ、記憶装置2はRAM12によって構成されている。
演算・制御装置3はROM11のプログラムに従って動
作するCPU10によって構成され、出力装置4はサー
ボコントローラ19及び駆動回路20によって構成さ
れ、CRT表示装置5はCRTコントローラ17及びC
RT18によって構成されている。
Next, the relationship between the NC device shown in FIG. 12 and the hardware configuration of the NC device shown in FIG. 13 will be described. The input device 1 is composed of a tape reader 14, a keyboard 15 and a keyboard interface 16, and the storage device 2 is composed of a RAM 12.
The arithmetic / control device 3 is composed of a CPU 10 that operates according to a program in the ROM 11, the output device 4 is composed of a servo controller 19 and a drive circuit 20, and the CRT display device 5 is a CRT controller 17 and CRT.
It is composed of RT18.

【0005】図14は図12のNC装置における記憶装
置に記憶された加工プログラムの内容を示す説明図であ
る。図14に示される加工プログラムは、図13に示す
テープリーダ14又はキーボード15を介してRAM1
2に記憶される。図14において、6a,6bは加工プ
ログラムであり、この各加工プログラム6a,6bは各
々プログラム番号7a,7bと加工データの情報8a,
8bとプログラム名9a,9bとからなる。各プログラ
ム名9a,9bは、各加工プログラム6a,6bのアド
レス部に各プログラム番号7a,7bと共に記憶されて
いる。各プログラム名9a,9bには、例えば同期送
り、切削、穴あけ、タッピング等の加工名称に応じた記
号が表示される。
FIG. 14 is an explanatory diagram showing the contents of a machining program stored in the storage device of the NC device shown in FIG. The processing program shown in FIG. 14 is stored in the RAM 1 via the tape reader 14 or the keyboard 15 shown in FIG.
Stored in 2. In FIG. 14, 6a and 6b are machining programs, and these machining programs 6a and 6b are program numbers 7a and 7b and machining data information 8a, respectively.
8b and program names 9a and 9b. Each program name 9a, 9b is stored in the address portion of each machining program 6a, 6b together with each program number 7a, 7b. In each program name 9a, 9b, a symbol corresponding to a machining name such as synchronous feed, cutting, drilling, tapping, etc. is displayed.

【0006】図15は図12のNC装置における動作を
示すフローチャートである。図において、S1〜S11
は動作過程を示すステップである。そこで、RAM12
に記憶されている加工プログラム6a,6bをサーチす
るために、加工プログラム6a,6bを呼び出してCR
T18に表示させる時のCPU10の動作について、図
15のフローチャートに基づいて説明する。
FIG. 15 is a flow chart showing the operation of the NC device of FIG. In the figure, S1 to S11
Is a step showing an operation process. Therefore, RAM12
In order to search for the machining programs 6a and 6b stored in, the machining programs 6a and 6b are called and CR is executed.
The operation of the CPU 10 when displaying at T18 will be described based on the flowchart of FIG.

【0007】まず、加工プログラムをサーチする場合
に、加工プログラム名に基づいて各加工プログラムを呼
び出すのか、あるいは加工プログラム番号に基づいて各
加工プログラムを呼び出すのかをオペレータが決定し、
いずれかのモード信号を入力する。このモード信号は、
例えばキーボード15及びキーボードインタフェース1
6を介してRAM12に取り込まれる(ステップS
1)。次に、モード信号を判断し(ステップS2)、そ
のモード信号がプログラム名であると判断された場合に
は、オペレータによる次の入力をプログラム名として取
り込む(ステップS3)。
First, when searching a machining program, the operator determines whether to call each machining program based on the machining program name or each machining program based on the machining program number.
Input either mode signal. This mode signal is
For example, keyboard 15 and keyboard interface 1
It is taken into RAM12 via 6 (step S
1). Next, the mode signal is judged (step S2), and when it is judged that the mode signal is the program name, the next input by the operator is taken in as the program name (step S3).

【0008】次に、CPU10は加工プログラムが記憶
されている領域の最初のアドレス番号を設定し(ステッ
プS4)、該当するアドレスのプログラム名をRAM1
2から呼び出す(ステップS5)。そして、呼び出され
たプログラム名がオペレータにより設定されたプログラ
ム名と一致するか否かについて判断される(ステップS
6)。一致しないと判断された場合には、次に、加工プ
ログラムが記憶されている全エリアでのサーチが終了し
たか否かについて判断され(ステップS7)、いまだに
全エリアでのサーチが終了していない場合にはアドレス
番号を進めて(ステップS8)、そのアドレスのプログ
ラム名を呼び出し(ステップS5)、そのプログラム名
がオペレータにより設定されたプログラム名と一致する
か否かが判断される(ステップS6)。
Next, the CPU 10 sets the first address number of the area in which the machining program is stored (step S4), and the program name of the corresponding address is stored in the RAM 1
Call from 2 (step S5). Then, it is judged whether or not the called program name matches the program name set by the operator (step S
6). If it is determined that they do not match, it is then determined whether or not the search in all areas in which the machining program is stored is completed (step S7), and the search in all areas is not yet completed. In this case, the address number is advanced (step S8), the program name of the address is called (step S5), and it is determined whether the program name matches the program name set by the operator (step S6). ..

【0009】上記のようなステップS5〜ステップS8
はプログラム名が一致するまで繰り返し行われる。一致
すると判断されると、該当する加工プログラムをRAM
12のワーキングエリアに格納し(ステップS9)、次
に、その加工プログラムを解析し、CRTコントローラ
17を介してCRT18に該当する加工プログラムを表
示させる(ステップS10)。又、加工プログラムが記
憶されている全エリアでのサーチが終了しても該当する
プログラム名が存在しない場合には、CRTコントロー
ラ17を介してCRT18にその旨を表示させる(ステ
ップS11)。
Steps S5 to S8 as described above
Is repeated until the program names match. If it is determined that they match, the corresponding machining program is stored in RAM.
The data is stored in the working area 12 (step S9), the machining program is analyzed, and the machining program corresponding to the CRT 18 is displayed via the CRT controller 17 (step S10). Further, if the corresponding program name does not exist even after the search in all the areas in which the machining programs are stored is completed, the fact is displayed on the CRT 18 via the CRT controller 17 (step S11).

【0010】一方、モード入力としてプログラム番号モ
ードが入力された場合には、従来のプログラム番号によ
るサーチがなされる。この場合に、ステップS3〜ステ
ップS11においてプログラム名をプログラム番号と置
き換えれば良く、ほぼ上記と同様の動作が繰り返し行わ
れる。
On the other hand, when the program number mode is input as the mode input, the conventional search by the program number is performed. In this case, the program name may be replaced with the program number in steps S3 to S11, and the same operation as described above is repeated.

【0011】又、プログラム名をサーチする場合には、
RAM12にプログラム名とその加工プログラムが記憶
されているアドレスからなるテーブルをあらかじめ記憶
しておき、プログラム名のみを順次にサーチして、一致
した場合には該当するアドレスのプログラム情報をCR
T18に表示させるようにしても良い。
When searching for a program name,
A table consisting of a program name and an address in which the machining program is stored is stored in advance in the RAM 12, and only the program name is sequentially searched. If they match, the program information of the corresponding address is CR.
It may be displayed at T18.

【0012】図16は図12のNC装置において、加工
プログラムの運転中にサブプログラムを呼び出す場合の
構成を示すブロック図である。図において、101はプ
ログラム解析手段、102はプログラムサーチ手段、1
03はプログラム読出し手段、105は加工プログラム
ファイルである。
FIG. 16 is a block diagram showing a configuration in which the NC program of FIG. 12 calls a subprogram while the machining program is operating. In the figure, 101 is a program analysis means, 102 is a program search means, 1
Reference numeral 03 is a program reading means, and 105 is a machining program file.

【0013】図16に示されるブロック図において、プ
ログラム解析手段101は現在運転中のGコード、Mコ
ード、Tコード等からなる加工プログラムを解析する。
加工プログラム中に、例えばM98***;で表わされ
るサブプログラムの呼び出しがあれば、***にあたる
情報(プログラム番号等)をプログラムサーチ手段10
2に渡す。プログラムサーチ手段102は渡された情報
に基づき加工プログラムファイル105の中から目的の
加工プログラムをサーチし、プログラム読出し手段10
3がその加工プログラムを読み出す。
In the block diagram shown in FIG. 16, the program analysis means 101 analyzes a machining program which is currently in operation and consists of G code, M code, T code and the like.
If a subprogram represented by, for example, M98 ***; is called in the machining program, the information corresponding to *** (program number or the like) is searched for by the program search means 10.
Pass to 2. The program search means 102 searches for the target machining program from the machining program file 105 based on the passed information, and the program reading means 10
3 reads the machining program.

【0014】図17は図12のNC装置において加工プ
ログラムの運転中に工具を呼び出す場合の構成を示すブ
ロック図である。図において、101はプログラム解析
手段、302は工具サーチ手段、303は工具取出し手
段である。
FIG. 17 is a block diagram showing the arrangement in which the NC device of FIG. 12 calls a tool during the operation of the machining program. In the figure, 101 is a program analysis means, 302 is a tool search means, and 303 is a tool take-out means.

【0015】図17に示されるブロック図において、プ
ログラム解析手段101は図16の場合と同様に加工プ
ログラムを解析する。加工プログラム中に、例えばT*
**;で表わされる工具の呼び出しがあれば、***に
あたる情報(工具番号等)を工具サーチ手段302に渡
す。工具サーチ手段302は渡された情報に基づき工具
をサーチし、工具取出し手段303がその工具をマガジ
ンから取り出す。
In the block diagram shown in FIG. 17, the program analysis means 101 analyzes the machining program as in the case of FIG. In the machining program, for example, T *
If a tool represented by **; is called, information corresponding to *** (tool number etc.) is passed to the tool search means 302. The tool search means 302 searches for a tool based on the passed information, and the tool take-out means 303 takes out the tool from the magazine.

【0016】図18は図12のNC装置において加工プ
ログラムの運転中に工具補正量を呼び出す場合の構成を
示すブロック図である。図において、101はプログラ
ム解析手段、502は工具補正量サーチ手段、503は
工具補正量読出し手段、505は工具補正量ファイルで
ある。
FIG. 18 is a block diagram showing a configuration in which the tool correction amount is called during the operation of the machining program in the NC system shown in FIG. In the figure, 101 is a program analysis means, 502 is a tool correction amount search means, 503 is a tool correction amount reading means, and 505 is a tool correction amount file.

【0017】図18に示されるブロック図において、プ
ログラム解析手段101は図16の場合と同様に加工プ
ログラムを解析する。加工プログラム中に、例えばG4
1D***;で表わされる工具補正の指令があれば、*
**にあたる情報(工具補正番号等)を工具補正量サー
チ手段502に渡す。工具補正量サーチ手段502は渡
された情報に基づき工具補正量をサーチし、工具補正量
読出し手段503がその工具補正量を工具補正量ファイ
ル505から読み出す。
In the block diagram shown in FIG. 18, the program analysis means 101 analyzes the machining program as in the case of FIG. In the machining program, for example G4
If there is a tool compensation command represented by 1D *** ;, *
Information corresponding to ** (tool correction number etc.) is passed to the tool correction amount search means 502. The tool correction amount search means 502 searches for the tool correction amount based on the passed information, and the tool correction amount reading means 503 reads the tool correction amount from the tool correction amount file 505.

【0018】図19は図12のNC装置において加工プ
ログラムの運転中にワーク座標系を設定する場合の構成
を示すブロック図である。図において、101はプログ
ラム解析手段、702はワーク座標系サーチ手段、70
3はワーク座標系読出し手段である。
FIG. 19 is a block diagram showing a configuration for setting the work coordinate system during the operation of the machining program in the NC system shown in FIG. In the figure, 101 is a program analysis means, 702 is a work coordinate system search means, 70
Reference numeral 3 is a work coordinate system reading means.

【0019】図19に示されるブロック図において、プ
ログラム解析手段101は図16の場合と同様に加工プ
ログラムを解析する。加工プログラム中から、例えばG
54、G55等のワーク座標系の選択指令があれば、プ
ログラム解析手段101はワーク座標系の選択指令があ
った旨をワーク座標系サーチ手段702に知らせる。ワ
ーク座標系サーチ手段702はプログラム解析手段10
1から渡された情報に基づき、あらかじめオペレータに
よってNC装置内に設定されているワーク座標系オフセ
ット設定量をサーチし、ワーク座標系読出し手段703
がワーク座標系オフセット設定量に基づきワーク座標系
を設定する。このように従来のNC装置では1つのGコ
ードに1つのワーク座標系を対応させておき、そのGコ
ードを指令することにより設定する。
In the block diagram shown in FIG. 19, the program analysis means 101 analyzes the machining program as in the case of FIG. From the machining program, for example, G
If there is a work coordinate system selection command such as 54 or G55, the program analysis means 101 informs the work coordinate system search means 702 that there is a work coordinate system selection command. The work coordinate system search means 702 is the program analysis means 10.
Based on the information passed from 1, the operator searches the work coordinate system offset setting amount set in the NC device in advance, and the work coordinate system reading means 703.
Sets the work coordinate system based on the work coordinate system offset setting amount. As described above, in the conventional NC device, one work coordinate system is associated with one G code, and the G code is instructed to set.

【0020】[0020]

【発明が解決しようとする課題】上記した従来のNC装
置は以上のように構成されているので、加工プログラム
にコメントを付加することによって、このコメントによ
り加工プログラムをサーチし、CRTに表示することが
できる。しかるに、加工プログラムの中からサブプログ
ラムとして呼び出す際に、加工プログラムに付加したコ
メントによって呼び出すことができなかったために、メ
インプログラムに書かれているプログラム番号だけで
は、何のための加工をするサブプログラムであるのかが
分かりにくいという問題点があった。
Since the above-mentioned conventional NC device is constructed as described above, by adding a comment to the machining program, the machining program is searched by this comment and displayed on the CRT. You can However, when calling from a machining program as a sub-program, it could not be called due to the comment added to the machining program. Therefore, the program number written in the main program is the only sub-program for machining. There was a problem that it was difficult to understand if it was.

【0021】この発明は上記のような問題点を解消する
ためになされたもので、加工プログラム中のサブプログ
ラムの呼び出しを加工プログラムに付加した名称によっ
て行うことができ、又、番号により加工プログラムから
指定していた工具、工具補正量、ワーク座標系を名称で
指定することができるNC装置を得ることを目的とす
る。
The present invention has been made to solve the above problems, and a subprogram in a machining program can be called by a name added to the machining program, or the machining program can be called by a number. The purpose is to obtain an NC device that can specify a designated tool, a tool correction amount, and a work coordinate system by name.

【0022】[0022]

【課題を解決するための手段】第1の発明に係わるNC
装置は、複数の加工プログラムを記憶し、その加工プロ
グラムにより工作機械を制御して加工を行うことができ
るNC装置において、加工プログラムに対する加工プロ
グラム番号に加えて加工プログラム名称を設定する加工
プログラムの名称設定手段と、加工プログラム名称から
加工プログラム番号に変換する加工プログラム名称変換
手段とを備え、加工プログラム中のサブプログラムの呼
び出しを加工プログラム名称によって行うようにしたも
のである。
Means for Solving the Problems NC according to the first invention
The device stores a plurality of machining programs, and in a NC device capable of controlling a machine tool by the machining programs to perform machining, the name of the machining program that sets the machining program name in addition to the machining program number for the machining program. A setting means and a machining program name conversion means for converting a machining program name into a machining program number are provided, and a subprogram in the machining program is called by the machining program name.

【0023】第2の発明に係わるNC装置は、加工プロ
グラムから工具を指定して加工を行うことができるNC
装置において、工具に対する工具番号に加えて工具名称
を設定する工具名称設定手段と、工具名称から工具番号
に変換する工具名称変換手段とを備え、加工プログラム
から工具を指定するのに、工具名称によって指定を行う
ようにしたものである。
The NC device according to the second aspect of the present invention is an NC device that can perform machining by designating a tool from a machining program.
In the device, a tool name setting means for setting a tool name in addition to the tool number for the tool and a tool name conversion means for converting the tool name to the tool number are provided. It is designed to be specified.

【0024】第3の発明に係わるNC装置は、加工プロ
グラムから工具補正量を指定して加工を行うことができ
るNC装置において、工具補正量に対する工具補正番号
に加えて工具補正名称を設定する工具補正名称設定手段
と、工具補正名称から工具補正番号に変換する工具補正
名称変換手段とを備え、加工プログラムから工具補正量
を指定するのに、工具補正名称によって指定を行うよう
にしたものである。
The NC device according to the third aspect of the present invention is an NC device which can perform machining by designating a tool compensation amount from a machining program. In the NC device, a tool compensation name is set in addition to the tool compensation number for the tool compensation amount. Compensation name setting means and tool compensation name conversion means for converting the tool compensation name to a tool compensation number are provided, and the tool compensation name is used to specify the tool compensation amount from the machining program. ..

【0025】第4の発明に係わるNC装置は、加工プロ
グラムからワーク座標系を指定して加工を行うことがで
きるNC装置において、ワーク座標系に対するワーク座
標系番号に加えてワーク座標系名称を設定するワーク座
標系名称設定手段と、ワーク座標系名称からワーク座標
系番号に変換するワーク座標系名称変換手段とを備え、
加工プログラムからワーク座標系を指定するのに、ワー
ク座標系名称によって指定を行うようにしたものであ
る。
The NC device according to the fourth aspect of the present invention is an NC device that can perform machining by designating a work coordinate system from a machining program, and sets the work coordinate system name in addition to the work coordinate system number for the work coordinate system. And a work coordinate system name conversion means for converting a work coordinate system name into a work coordinate system number.
In order to specify the work coordinate system from the machining program, the work coordinate system is specified by the work coordinate system name.

【0026】第5の発明に係わるNC装置は、加工プロ
グラムから加工プログラム名称、工具名称、工具補正名
称、又はワーク座標系名称を指定することができるNC
装置において、名称と番号との対応を加工プログラムか
ら指定する名称/番号設定手段を備え、番号により指定
していた工具、工具補正量、ワーク座標系を名称によっ
て指定を行うようにしたものである。
The NC device according to the fifth aspect of the invention is capable of designating a machining program name, a tool name, a tool compensation name, or a work coordinate system name from a machining program.
The apparatus is provided with name / number setting means for designating the correspondence between the name and the number from the machining program, and the tool, the tool correction amount, and the work coordinate system designated by the number are designated by the name. ..

【0027】[0027]

【作用】第1の発明におけるNC装置は、加工プログラ
ム中のサブプログラムの呼び出しを行う場合に、加工プ
ログラム名称設定手段により設定された加工プログラム
名称によってサブプログラムの呼び出し指令を行い、そ
の加工プログラム名称から加工プログラム名称変換手段
により加工プログラム番号に変換し、サブプログラムを
呼び出す。
In the NC device according to the first aspect of the present invention, when the subprogram in the machining program is called, the NC program issues a subprogram calling command according to the machining program name set by the machining program name setting means, and the machining program name. Is converted into a machining program number by the machining program name conversion means, and the subprogram is called.

【0028】第2の発明におけるNC装置は、加工プロ
グラムから工具を指定する場合に、工具名称設定手段に
より設定された工具名称によって工具の指定を行い、そ
の工具名称から工具名称変換手段により工具番号に変換
し、工具を呼び出す。
In the NC device according to the second aspect of the invention, when a tool is designated from the machining program, the tool is designated by the tool name set by the tool name setting means, and the tool number is converted from the tool name by the tool name conversion means. Convert to and call the tool.

【0029】第3の発明におけるNC装置は、加工プロ
グラムから工具補正量を指定する場合に、工具補正名称
設定手段により設定された工具補正名称によって工具補
正量の指定を行い、その工具補正名称から工具補正名称
変換手段により工具補正番号に変換し、工具補正量を呼
び出す。
In the NC device according to the third aspect of the invention, when the tool correction amount is designated from the machining program, the tool compensation amount is designated by the tool compensation name set by the tool compensation name setting means, and the tool compensation name is designated. It is converted into a tool correction number by the tool correction name conversion means, and the tool correction amount is called.

【0030】第4の発明におけるNC装置は、加工プロ
グラムからワーク座標系を指定する場合に、ワーク座標
系名称設定手段により設定されたワーク座標系名称によ
ってワーク座標系の指定を行い、そのワーク座標系名称
からワーク座標系名称変換手段によりワーク座標系番号
に変換し、ワーク座標系オフセット設定量を呼び出す。
In the NC device according to the fourth aspect of the present invention, when the work coordinate system is designated from the machining program, the work coordinate system is designated by the work coordinate system name set by the work coordinate system name setting means, and the work coordinate system is designated. The system name is converted to the work coordinate system number by the work coordinate system name conversion means, and the work coordinate system offset setting amount is called.

【0031】第5の発明におけるNC装置は、加工プロ
グラム、工具、工具補正量、又はワーク座標系の指定を
名称で行う場合に、名称/番号設定手段は加工プログラ
ムで名称と番号との対応を指定する。
In the NC device according to the fifth aspect of the present invention, when a machining program, a tool, a tool correction amount, or a work coordinate system is designated by a name, the name / number setting means associates the name with the number in the machining program. specify.

【0032】[0032]

【実施例】【Example】

実施例1.以下、この発明の実施例を図について説明す
る。この発明の実施例であるNC装置におけるハードウ
ェア構成は、図13に示される従来のNC装置における
ハードウェア構成と同様の構成によって実現できる。
Example 1. Embodiments of the present invention will be described below with reference to the drawings. The hardware configuration of the NC device according to the embodiment of the present invention can be realized by the same configuration as the hardware configuration of the conventional NC device shown in FIG.

【0033】まず、この発明の第1の実施例を図1につ
いて説明する。図1はこの発明の第1の実施例であるN
C装置の構成を示すブロック図である。図において、プ
ログラム解析手段101、プログラムサーチ手段10
2、プログラム読出し手段103、加工プログラムファ
イル105は、図16に示された従来のものと同一であ
る。104はプログラム名称変換手段、106はプログ
ラム名称設定手段である。
First, a first embodiment of the present invention will be described with reference to FIG. FIG. 1 shows a first embodiment N of the present invention.
It is a block diagram which shows the structure of C apparatus. In the figure, program analysis means 101 and program search means 10
2. The program reading means 103 and the machining program file 105 are the same as the conventional one shown in FIG. Reference numeral 104 is a program name conversion means, and 106 is a program name setting means.

【0034】図1に示されるブロック図において、プロ
グラム名称変換手段104はプログラム解析101から
渡された情報に基づいて、それがプログラム番号である
かプログラム名称であるかを判断し、プログラム番号で
あれば、従来通りにプログラムサーチ手段102、プロ
グラム読出し手段103の処理を行う。プログラム名称
であれば、表1に示されるようなプログラム名称/番号
対応表からその名称に該当するプログラム番号を捜し出
し、その後は従来通りプログラムサーチ手段102がそ
のプログラム番号をもとに加工プログラムファイル10
5からサーチし、プログラム読出し手段103が加工プ
ログラムを読み出す。
In the block diagram shown in FIG. 1, the program name conversion means 104 judges whether it is a program number or a program name based on the information passed from the program analysis 101, and if it is the program number. For example, the processes of the program search means 102 and the program read means 103 are performed as usual. If it is a program name, the program name / number correspondence table as shown in Table 1 is searched for the program number corresponding to the name, and thereafter, the program search means 102 is based on the program number as usual, and the machining program file 10 is searched.
5, the program reading means 103 reads the machining program.

【0035】[0035]

【表1】 [Table 1]

【0036】上記表1において、プログラムごとに通し
番号を付加し、その1つの番号につきプログラム名称と
プログラム番号を1つずつ記憶している。表1に示され
るプログラム名称/番号対応表への登録、変更、削除等
は図13に示されるNC装置のキーボード15をオペレ
ータが操作することによって行い、プログラム名称設定
手段106によりRAM12上に記憶する。
In Table 1 above, a serial number is added to each program, and one program name and one program number are stored for each number. Registration, modification, deletion, etc. in the program name / number correspondence table shown in Table 1 are performed by the operator operating the keyboard 15 of the NC device shown in FIG. 13, and stored in the RAM 12 by the program name setting means 106. ..

【0037】図2は図1のNC装置における動作を示す
フローチャートである。図において、S21〜S29は
動作過程を示すステップである。
FIG. 2 is a flow chart showing the operation of the NC device of FIG. In the figure, S21 to S29 are steps showing an operation process.

【0038】まず、図1に示されるプログラム解析手段
101より渡されたサブプログラム情報が名称であるか
否かを判断する(ステップS21)。判断基準として
は、例えばM98P***;という指令であれば、Pに
続くプログラム番号で示されるサブプログラムの呼び出
し、M98[***];という指令であれば、[]で囲
まれたプログラム名称で示されるサブプログラムの呼び
出し、というように定めておく。プログラム名称とは、
例えば、表1に示されるような[同期送り]というもの
である。プログラム名称であれば、その名称をRAM1
2に取り込み(ステップS22)、プログラム番号であ
れば終了する。
First, it is determined whether or not the subprogram information passed from the program analysis means 101 shown in FIG. 1 is a name (step S21). As a judgment criterion, for example, if the command is M98P *** ;, the subprogram indicated by the program number following P is called, and if the command is M98 [***] ;, the program enclosed in [] It is defined that the subprogram indicated by the name is called. What is the program name?
For example, it is called “synchronous sending” as shown in Table 1. If it is a program name, enter that name in RAM1
2 (step S22), and if it is a program number, the process ends.

【0039】次に、CPU10は表1に示されるプログ
ラム名称/番号対応表の最初のインデックス番号を設定
し(ステップS23)、該当するインデックスのプログ
ラム名称を読み出す(ステップS24)。そして、読み
出されたプログラム名称がプログラム解析手段101か
ら渡された名称と一致するか否かについて判断する(ス
テップS25)。一致すると判断されると、その名称に
対応する番号を読み出し、プログラムサーチ手段102
に渡すためにRAM12のワーキングエリアに記憶して
おく(ステップS26)。一致しない場合には、次に、
表1に示されるプログラム名称/番号対応表のすべての
インデックスについて終了したか否かを判断し(ステッ
プS27)、終了していない場合には、インデックスを
1つ進めて(ステップS29)、ステップS24からの
処理を繰り返して行う。ステップS27で終了したと判
断された場合には、CRTコントローラ17を介してC
RT18にその旨を表示させる(ステップS28)。
Next, the CPU 10 sets the first index number of the program name / number correspondence table shown in Table 1 (step S23), and reads the program name of the corresponding index (step S24). Then, it is determined whether the read program name matches the name passed from the program analysis means 101 (step S25). If it is determined that they match, the number corresponding to the name is read out, and the program search means 102 is read.
It is stored in the working area of the RAM 12 for delivery to the computer (step S26). If they do not match, then
It is determined whether or not all the indexes in the program name / number correspondence table shown in Table 1 have been completed (step S27). If not completed, the index is advanced by 1 (step S29), and step S24. The process from is repeated. If it is determined in step S27 that the process is completed, the CRT controller 17
This is displayed on the RT 18 (step S28).

【0040】実施例2.次に、この発明の第2の実施例
を図3について説明する。図3はこの発明の第2の実施
例であるNC装置の構成を示すブロック図である。図に
おいて、プログラム解析手段101、工具サーチ手段3
02、工具取出し手段303は、図17に示された従来
のものと同一である。304は工具名称変換手段、30
5は工具名称設定手段である。
Example 2. Next, a second embodiment of the present invention will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the NC device according to the second embodiment of the present invention. In the figure, program analysis means 101 and tool search means 3
02, the tool take-out means 303 is the same as the conventional one shown in FIG. 304 is a tool name conversion means, 30
Reference numeral 5 is a tool name setting means.

【0041】図3に示されるブロック図において、工具
名称変換手段304はプログラム解析手段102から渡
された情報に基づいて、それが工具番号であるか工具名
称であるかを判断し、工具番号であれば、従来通りに工
具サーチ手段302、工具取出し手段303の処理を行
う。工具名称であれば、表2に示されるような工具名称
/番号対応表からその名称に該当する工具番号を捜し出
し、その後は従来通り工具サーチ手段302がその工具
番号をもとに工具をサーチし、工具取出し手段303が
工具を取り出す。
In the block diagram shown in FIG. 3, the tool name conversion means 304 judges whether it is a tool number or a tool name based on the information passed from the program analysis means 102, and uses the tool number. If there is, the processing of the tool search means 302 and the tool take-out means 303 is performed as usual. If it is a tool name, the tool name / number correspondence table as shown in Table 2 is searched for the tool number corresponding to the name, and thereafter the tool search means 302 searches the tool based on the tool number as in the conventional case. The tool take-out means 303 takes out the tool.

【0042】[0042]

【表2】 [Table 2]

【0043】上記表2において、工具ごとに通し番号を
付加し、その1つの番号につき工具名称と工具番号を1
つずつ記憶している。表2に示される工具名称/番号対
応表への登録、変更、削除等は図13に示されるNC装
置のキーボード15をオペレータが操作することによっ
て行い、工具名称設定手段305によりRAM12上に
記憶する。
In Table 2, a serial number is added to each tool, and the tool name and tool number are 1 for each number.
I remember each one. Registration, change, deletion, etc. in the tool name / number correspondence table shown in Table 2 are performed by the operator operating the keyboard 15 of the NC device shown in FIG. 13, and stored in the RAM 12 by the tool name setting means 305. ..

【0044】図4は図3のNC装置における動作を示す
フローチャートである。図において、S41〜S49は
動作過程を示すステップである。
FIG. 4 is a flow chart showing the operation of the NC device of FIG. In the figure, S41 to S49 are steps showing an operation process.

【0045】まず、図3に示されるプログラム解析手段
101より渡された工具情報が名称であるか否かを判断
する(ステップS41)。判断基準としては、例えばT
***;という指令であれば、Tに続く工具番号で示さ
れる工具の呼び出し、T[***];という指令であれ
ば、[]で囲まれた工具名称で示される工具の呼び出
し、というように定めておく。工具名称とは、例えば表
2に示されるような[ドリル]というものである。工具
名称であれば、その名称をRAM12に取り込み(ステ
ップS42)、工具番号であれば終了する。
First, it is judged whether or not the tool information passed from the program analysis means 101 shown in FIG. 3 is a name (step S41). As a criterion, for example, T
The command "***;" calls the tool indicated by the tool number following T, and the command "T [***]; calls the tool indicated by the tool name enclosed in []." It is decided as follows. The tool name is, for example, [drill] as shown in Table 2. If it is a tool name, the name is loaded into the RAM 12 (step S42), and if it is a tool number, the process ends.

【0046】次に、CPU10は表2に示される工具名
称/番号対応表の最初のインデックス番号を設定し(ス
テップS43)、該当するインデックスの工具名称を読
み出す(ステップS44)。そして、読み出された工具
名称がプログラム解析手段101から渡された名称と一
致するか否かについて判断する(ステップS45)。一
致すると判断されると、その名称に対応する番号を読み
出し、工具サーチ手段302に渡すためにRAM12の
ワーキングエリアに記憶しておく(ステップS46)。
一致しない場合には、次に、表2に示される工具名称/
番号対応表のすべてのインデックスについて終了したか
否かを判断し(ステップS47)、終了していない場合
には、インデックスを1つ進めて(ステップS49)、
ステップS44からの処理を繰り返して行う。ステップ
S47で終了したと判断された場合には、CRTコント
ローラ17を介してCRT18にその旨の表示をさせる
(ステップS48)。
Next, the CPU 10 sets the first index number of the tool name / number correspondence table shown in Table 2 (step S43), and reads the tool name of the corresponding index (step S44). Then, it is determined whether the read tool name matches the name passed from the program analysis means 101 (step S45). If it is determined that they match, the number corresponding to the name is read out and stored in the working area of the RAM 12 for passing to the tool search means 302 (step S46).
If they do not match, then the tool name /
It is determined whether or not all the indexes in the number correspondence table have been completed (step S47), and if not completed, the index is advanced by 1 (step S49).
The processing from step S44 is repeated. If it is determined in step S47 that the processing is completed, the CRT 18 is displayed via the CRT controller 17 (step S48).

【0047】実施例3.次に、この発明の第3の実施例
を図5について説明する。図5はこの発明の第3の実施
例であるNC装置の構成を示すブロック図である。図に
おいて、プログラム解析手段101、工具補正量サーチ
手段502、工具補正量読出し手段503、工具補正量
ファイル505は、図18に示された従来のものと同一
である。504は工具補正名称変換手段、506は工具
補正名称設定手段である。
Example 3. Next, a third embodiment of the present invention will be described with reference to FIG. FIG. 5 is a block diagram showing the configuration of the NC device according to the third embodiment of the present invention. In the figure, the program analysis means 101, the tool correction amount search means 502, the tool correction amount reading means 503, and the tool correction amount file 505 are the same as those of the conventional one shown in FIG. Reference numeral 504 is tool correction name conversion means, and 506 is tool correction name setting means.

【0048】図5に示されるブロック図において、工具
補正名称変換手段504はプログラム解析手段101か
ら渡された情報に基づいて、それが工具補正番号である
か工具補正名称であるかを判断し、工具補正番号であれ
ば、従来通りに工具補正量サーチ手段502、工具補正
量読出し手段503の処理を行う。工具補正名称であれ
ば、表3に示されるような工具補正名称/番号対応表か
らその名称に該当する工具補正番号を捜し出し、その後
は従来通り工具補正量サーチ手段502がその工具補正
番号をもとに工具補正量をサーチし、工具補正量読出し
手段503が工具補正量を工具補正量ファイル505か
ら取り出す。
In the block diagram shown in FIG. 5, the tool correction name conversion means 504 judges whether it is a tool correction number or a tool correction name based on the information passed from the program analysis means 101, If it is the tool correction number, the processing of the tool correction amount searching means 502 and the tool correction amount reading means 503 is performed as usual. If it is a tool correction name, the tool correction number / number correspondence table as shown in Table 3 is searched for the tool correction number corresponding to the name, and thereafter, the tool correction amount search means 502 also obtains the tool correction number as in the conventional case. Then, the tool correction amount is searched for, and the tool correction amount reading means 503 retrieves the tool correction amount from the tool correction amount file 505.

【0049】[0049]

【表3】 [Table 3]

【0050】上記表3において、工具補正量ごとに通し
番号を付加し、その1つの番号につき工具補正名称と工
具補正番号を1つずつ記憶している。表3に示される工
具補正名称/番号対応表への登録、変更、削除等は図1
3に示されるNC装置のキーボード15をオペレータが
操作することによって行い、工具補正名称設定手段50
6によりRAM上に記憶する。
In Table 3 above, a serial number is added for each tool correction amount, and one tool correction name and one tool correction number are stored for each number. Registration, change, deletion, etc. in the tool compensation name / number correspondence table shown in Table 3 are shown in FIG.
This is performed by the operator operating the keyboard 15 of the NC device shown in FIG.
6 to store in RAM.

【0051】図6は図5のNC装置における動作を示す
フローチャートである。図において、S61〜S69は
動作過程を示すステップである。
FIG. 6 is a flow chart showing the operation of the NC device of FIG. In the figure, S61 to S69 are steps showing an operation process.

【0052】まず、図5に示されるプログラム解析手段
101より渡された情報が名称であるか否かを判断する
(ステップS61)。判断基準としては、例えばG41
D***;という指令であれば、Dに続く工具補正番
号で示される工具補正量の読み出し、G41 D[**
*];という指令であれば、[]で囲まれた工具補正名
称で示される工具補正量の読み出し、というように定め
ておく。工具補正名称とは、例えば表3に示されるよう
な[ドリル]というものである。工具補正名称であれ
ば、その名称をRAM12に取り込み(ステップS6
2)、工具補正番号であれば終了する。
First, it is determined whether the information passed from the program analysis means 101 shown in FIG. 5 is a name (step S61). As a criterion, for example, G41
If the command is D *** ;, the tool correction amount indicated by the tool correction number following D is read out, G41 D [**
If the command is *] ;, the tool correction amount indicated by the tool correction name enclosed in [] is read out. The tool correction name is, for example, [drill] as shown in Table 3. If it is a tool correction name, that name is loaded into the RAM 12 (step S6).
2) If it is a tool correction number, the process ends.

【0053】次に、CPU10は表3に示される工具補
正名称/番号対応表の最初のインデックス番号を設定し
(ステップS63)、該当するインデックスの工具補正
名称を読み出す(ステップS64)。そして、読み出さ
れた工具補正名称がプログラムの解析手段101から渡
された名称と一致するか否かについて判断する(ステッ
プS65)。一致すると判断されると、その名称に対応
する番号を読み出し、工具補正量サーチ手段502に渡
すためにRAM12のワーキングエリアに記憶しておく
(ステップS66)。一致しない場合には、次に、表3
に示される工具補正名称/番号対応表のすべてのインデ
ックスについて終了したか否かを判断し(ステップS6
7)、終了していない場合には、インデックスを1つ進
めて(ステップS69)、ステップS64からの処理を
繰り返して行う。ステップS67で終了したと判断され
た場合には、CRTコントローラ17を介してCRT1
8にその旨を表示させる(ステップS68)。
Next, the CPU 10 sets the first index number of the tool correction name / number correspondence table shown in Table 3 (step S63), and reads the tool correction name of the corresponding index (step S64). Then, it is determined whether or not the read tool correction name matches the name passed from the analysis means 101 of the program (step S65). When it is determined that they match, the number corresponding to the name is read out and stored in the working area of the RAM 12 so as to be passed to the tool correction amount search means 502 (step S66). If they do not match, then Table 3
It is judged whether or not all the indexes of the tool correction name / number correspondence table shown in are completed (step S6).
7) If not completed, the index is advanced by 1 (step S69) and the processing from step S64 is repeated. If it is determined in step S67 that the CRT 1 has been completed through the CRT controller 17.
This is displayed on 8 (step S68).

【0054】実施例4.次に、この発明の第4の実施例
を図7について説明する。図7はこの発明の第4の実施
例であるNC装置の構成を示すブロック図である。図に
おいて、プログラム解析手段101、ワーク座標系サー
チ手段702、ワーク座標系読出し手段703は、図1
9に示された従来のものと同一である。704はワーク
座標系名称変換手段、705はワーク座標系名称設定手
段である。
Example 4. Next, a fourth embodiment of the present invention will be described with reference to FIG. FIG. 7 is a block diagram showing the configuration of the NC device according to the fourth embodiment of the present invention. In the figure, the program analysis means 101, the work coordinate system search means 702, and the work coordinate system reading means 703 are shown in FIG.
It is the same as the conventional one shown in FIG. Reference numeral 704 is a work coordinate system name conversion means, and 705 is a work coordinate system name setting means.

【0055】図7に示されるブロック図において、ワー
ク座標系名称変換手段704はプログラム解析手段10
1から渡された情報に基づいて、それがワーク座標系番
号であるかワーク座標系名称であるかを判断し、ワーク
座標系番号であれば、従来通りにワーク座標系サーチ手
段702、ワーク座標系読出し手段703の処理を行
う。ワーク座標系名称であれば、表4に示されるような
ワーク座標系名称/番号対応表からその名称に該当する
ワーク座標系番号を捜し出し、その後は従来通りワーク
座標系サーチ手段702がそのワーク座標系番号をもと
にワーク座標系オフセット設定量をサーチし、ワーク座
標系読出し手段703がワーク座標系オフセット設定量
を取り出す。
In the block diagram shown in FIG. 7, the work coordinate system name conversion means 704 is the program analysis means 10.
Based on the information passed from 1, it is judged whether it is the work coordinate system number or the work coordinate system name. If it is the work coordinate system number, the work coordinate system search means 702 and the work coordinate are used as usual. The processing of the system reading means 703 is performed. If it is the work coordinate system name, the work coordinate system name / number correspondence table as shown in Table 4 is searched for the work coordinate system number corresponding to the name, and thereafter, the work coordinate system search means 702 is used as the work coordinate system search means. The work coordinate system offset setting amount is searched based on the system number, and the work coordinate system reading means 703 retrieves the work coordinate system offset setting amount.

【0056】[0056]

【表4】 [Table 4]

【0057】上記表4において、ワーク座標系ごとに通
し番号を付加し、その1つの番号につきワーク座標系名
称とワーク座標系番号を1つずつ記憶している。表4に
示されるワーク座標系名称/番号対応表への登録、変
換、削除等は図13に示されるNC装置のキーボード1
5をオペレータが操作することによって行い、ワーク座
標系名称設定手段705によりRAM12上に記憶す
る。
In Table 4 above, a serial number is added to each work coordinate system, and one work coordinate system name and one work coordinate system number are stored for each number. Registration, conversion, deletion, etc. in the work coordinate system name / number correspondence table shown in Table 4 are performed by the keyboard 1 of the NC device shown in FIG.
5 is performed by the operator's operation, and is stored in the RAM 12 by the work coordinate system name setting means 705.

【0058】図8は図7のNC装置における動作を示す
フローチャートである。図において、S81〜S89は
動作過程を示すステップである。
FIG. 8 is a flow chart showing the operation of the NC device of FIG. In the figure, S81 to S89 are steps showing an operation process.

【0059】まず、図7に示されるプログラム解析手段
101より渡された情報が名称であるか否かを判断する
(ステップS81)。判断基準としては、例えばG5
4;という指令であれば、G54に対応するワーク座標
系オフセット設定量の読み出し、G54[***];と
いう指令であれば、[]で囲まれた名称で示されるワー
ク座標系オフセット設定量の読み出し、というように定
めておく。ワーク座標系名称とは、例えば表4に示され
るような[穴あけ1]というものである。ワーク座標系
名称であれば、その名称をRAM12に取り込み(ステ
ップS82)、ワーク座標系番号であれば終了する。
First, it is determined whether the information passed from the program analysis means 101 shown in FIG. 7 is a name (step S81). As a criterion, for example, G5
If the command is 4; the work coordinate system offset setting amount corresponding to G54 is read, and if the command is G54 [***] ;, the work coordinate system offset setting amount indicated by the name enclosed in []. Read out, and so on. The work coordinate system name is, for example, [drilling 1] as shown in Table 4. If it is the work coordinate system name, the name is loaded into the RAM 12 (step S82), and if it is the work coordinate system number, the process ends.

【0060】次に、CPUは表4に示されるワーク座標
系名称/番号対応表の最初のインデックス番号を設定し
(ステップS83)、該当するインデックスのワーク座
標系名称を読み出す(ステップS84)。そして、読み
出されたワーク座標系名称がプログラム解析手段101
から渡された名称と一致するか否かについて判断する
(ステップS85)。一致すると判断されると、その名
称に対応する番号を読み出し、ワーク座標系サーチ手段
702に渡すためにRAM12のワーキングエリアに記
憶しておく(ステップS86)。一致しない場合には、
次に、表4に示されるワーク座標系名称/番号対応表の
すべてのインデックスについて終了したか否かを判断し
(ステップS87)、終了していない場合には、インデ
ックスを1つ進めて(ステップS89)、ステップS8
4からの処理を繰り返して行う。ステップS87で終了
したと判断された場合には、CRTコントローラ17を
介してCRT18にその旨を表示させる(ステップS8
8)。
Next, the CPU sets the first index number in the work coordinate system name / number correspondence table shown in Table 4 (step S83), and reads the work coordinate system name of the corresponding index (step S84). Then, the read work coordinate system name is the program analysis means 101.
It is determined whether or not it matches the name passed from (step S85). When it is determined that they match, the number corresponding to the name is read out and stored in the working area of the RAM 12 so as to be passed to the work coordinate system search means 702 (step S86). If they do not match,
Next, it is judged whether or not all the indexes of the work coordinate system name / number correspondence table shown in Table 4 have been completed (step S87). If not completed, the index is advanced by one (step S87). S89), step S8
The process from 4 is repeated. If it is determined in step S87 that the process is completed, the CRT 18 is displayed via the CRT controller 17 (step S8).
8).

【0061】実施例5.次に、この発明の第5の実施例
を図9について説明する。図9はこの発明の第5の実施
例であるNC装置の構成を示すブロック図である。図に
おいて、プログラム解析手段101、プログラムサーチ
手段102、工具サーチ手段302、工具補正量サーチ
手段502、ワーク座標系サーチ手段702は、第1〜
第4の実施例に示されたものと同一である。901は名
称/番号設定手段である。
Example 5. Next, a fifth embodiment of the present invention will be described with reference to FIG. FIG. 9 is a block diagram showing the configuration of the NC device according to the fifth embodiment of the present invention. In the figure, the program analysis means 101, the program search means 102, the tool search means 302, the tool correction amount search means 502, and the work coordinate system search means 702 are the first to the first.
It is the same as that shown in the fourth embodiment. Reference numeral 901 is a name / number setting means.

【0062】図9に示されるブロック図において、プロ
グラム解析手段101は加工プログラム中に名称と番号
との対応を示すプログラム指令があると、名称/番号設
定手段901を起動する。名称/番号設定手段901は
そのプログラムを解析し、例えば加工プログラムの名称
と番号についての対応を示したものであると判断したな
らば、図13に示されるRAM12上にあるプログラム
名称/番号対応表(表1)の変更、追加を行う。その結
果、サブプログラムの呼び出し時に、プログラムサーチ
手段102が起動された場合には、名称/番号設定手段
901により新たに設定されたプログラム名称/番号対
応表に基づいて処理を行う。
In the block diagram shown in FIG. 9, the program analysis means 101 activates the name / number setting means 901 when there is a program command indicating the correspondence between the name and the number in the machining program. If the name / number setting means 901 analyzes the program and determines that it indicates the correspondence between the name and the number of the machining program, for example, the program name / number correspondence table on the RAM 12 shown in FIG. Change (Table 1) and add. As a result, when the program search means 102 is activated when the subprogram is called, processing is performed based on the program name / number correspondence table newly set by the name / number setting means 901.

【0063】以下、加工プログラムの名称から番号への
変換について説明するが、これ以外に工具、工具補正
量、ワーク座標系についても全く同様の処理によって実
現できる。
The conversion from the name of the machining program to the number will be described below, but other than this, the tools, the tool correction amount, and the work coordinate system can be realized by exactly the same processing.

【0064】図10はNC装置における加工プログラム
の一例を示す説明図である。図10は加工プログラム中
のプログラム名称と番号との対応を示すプログラム部分
の一例を示している。図10において、#START
(プログラム名称)の指令があると、プログラム解析手
段101は加工プログラムがここからプログラム名称と
番号との対応を示す指令が始まることを認識し、#EN
Dで指令が終わることを認識する。#define同期
送り1000;は、プログラム名称“同期送り”がプロ
グラム番号“1000”のプログラムに対応することを
示しており、又、#define穴あけ3000;は、
プログラム名称“穴あけ”がプログラム番号“300
0”のプログラムに対応することを示している。
FIG. 10 is an explanatory diagram showing an example of a machining program in the NC device. FIG. 10 shows an example of a program part showing the correspondence between the program name and the number in the machining program. In FIG. 10, #START
When the (program name) command is issued, the program analysis means 101 recognizes that the machining program starts a command indicating the correspondence between the program name and the number, and then #EN.
Recognize that the command ends with D. #Define synchronous feed 1000; indicates that the program name “synchronous feed” corresponds to the program with the program number “1000”, and #define punching 3000;
Program name "drilling" is program number "300"
It indicates that it corresponds to the program of 0 ".

【0065】図11は図9のNC装置における動作を示
すフローチャートである。図において、S1102〜S
1115は動作過程を示すステップである。
FIG. 11 is a flow chart showing the operation of the NC device of FIG. In the figure, S1102-S
Reference numeral 1115 is a step indicating an operation process.

【0066】まず、加工プログラム中の名称/番号指令
が表1から表4に示されるいずれの名称/番号対応表に
ついてであるかをチェックし(ステップS1102)、
それぞれの場合の初期のインデックスをセットする(ス
テップS1103〜ステップS1106)。いずれの名
称/番号対応表についてであるかは、図10に示される
#STARTに続く()で囲まれた文字列で識別する。
ここでは、表1のプログラム名称/番号対応表の初期の
インデックスがセットされたとして(ステップS110
3)説明する。
First, it is checked which name / number correspondence table shown in Table 1 to Table 4 the name / number command in the machining program corresponds to (step S1102).
The initial index in each case is set (step S1103 to step S1106). The name / number correspondence table is identified by the character string enclosed by () following #START shown in FIG.
Here, it is assumed that the initial index of the program name / number correspondence table in Table 1 is set (step S110).
3) Explain.

【0067】次に、表1から対応するインデックスの名
称を読み出し(ステップS1107)、それがプログラ
ム指令の#defineのプログラム名称に一致するか
否かをチェックする(ステップS1108)。一致しな
かった場合には、すべてのインデックスについてのチェ
ックが終了したかをチェックし(ステップS110
9)、終了していない場合には、次のインデックスをセ
ットし(ステップS1110)、ステップS1107以
降の処理を行う。ステップS1109で終了したと判断
された時は、プログラム名称/番号対応表に新規に#d
efineで指令された名称と番号を追加し(ステップ
S1115)、その処理を終了する。一致した場合に
は、そのインデックスに対応する番号を読み出し(ステ
ップS1111)、番号が#defineで指令された
番号と一致するか否かをチェックする(ステップS11
12)。一致した場合には、プログラム名称/番号対応
表の名称部分を書き換え(ステップS1113)、その
処理を終了する。一致しなかった場合には、#defi
neで指令された名称と番号が対応表の異なるインデッ
クスに格納され、対応表の名称を書き換えると、同一名
称で2つのプログラム番号を持つことになるので、エラ
ー表示をして(ステップS1114)、その処理を終了
する。
Next, the name of the corresponding index is read from Table 1 (step S1107), and it is checked whether or not it matches the program name of the program command #define (step S1108). If they do not match, it is checked whether the check has been completed for all indexes (step S110).
9) If not completed, the next index is set (step S1110), and the processes of step S1107 and thereafter are performed. If it is determined in step S1109 that the process has been completed, a new #d is added to the program name / number correspondence table.
The name and number instructed by efine are added (step S1115), and the process ends. If they match, the number corresponding to the index is read (step S1111), and it is checked whether or not the number matches the number designated by #define (step S11).
12). If they match, the name portion of the program name / number correspondence table is rewritten (step S1113), and the process ends. If no match is found, #defi
The name and number instructed by ne are stored in different indexes of the correspondence table, and if the name of the correspondence table is rewritten, two program numbers with the same name will be stored, so an error display will be displayed (step S1114), The process ends.

【0068】[0068]

【発明の効果】以上のように、この第1、第2、第3、
第4の発明のNC装置によれば、加工プログラム、工
具、工具補正量、ワーク座標系のそれぞれの名称を設定
する名称設定手段と、その各名称から番号に変換する名
称変換手段とを備え、加工プログラム、工具、工具補正
量、ワーク座標系の呼び出しをそれぞれの名称によって
行うようにしたので、それぞれが何のための加工に用い
るものであるのかが判別しやすく、加工プログラムの作
成ミスが少なくなり、又、間違った加工プログラムを実
行してワークを駄目にするということが少なくなる優れ
た効果を奏する。
As described above, the first, second, third,
According to the NC device of the fourth aspect of the present invention, it is provided with a name setting means for setting each name of the machining program, the tool, the tool correction amount, and the work coordinate system, and a name converting means for converting each name into a number. Since the machining program, tool, tool compensation amount, and workpiece coordinate system are called by their respective names, it is easy to determine what each machine is used for machining, and there are few machining program creation errors. In addition, there is an excellent effect that the wrong work program is not executed and the work is ruined.

【0069】又、この第5の発明のNC装置によれば、
加工プログラム、工具、工具補正量、ワーク座標系のそ
れぞれの名称と番号との対応を設定する名称/番号設定
手段を備え、加工プログラム、工具、工具補正量、ワー
ク座標系のそれぞれの名称/番号対応表の設定を加工プ
ログラムから設定することができるようにしたので、オ
ペレータによるNC装置の操作作業を軽減することがで
き、操作ミスもなくすことができる優れた効果を奏す
る。
According to the NC device of the fifth invention,
A name / number setting means for setting the correspondence between each name and number of the machining program, tool, tool compensation amount, and work coordinate system is provided, and each name / number of the machining program, tool, tool compensation amount, work coordinate system is provided. Since the setting of the correspondence table can be set from the machining program, it is possible to reduce the operation work of the NC device by the operator, and there is an excellent effect that operation mistakes can be eliminated.

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

【図1】この発明の第1の実施例であるNC装置の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an NC device according to a first embodiment of the present invention.

【図2】図1のNC装置における動作を示すフローチャ
ートである。
FIG. 2 is a flowchart showing an operation in the NC device of FIG.

【図3】この発明の第2の実施例であるNC装置の構成
を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of an NC device according to a second embodiment of the present invention.

【図4】図3のNC装置における動作を示すフローチャ
ートである。
FIG. 4 is a flowchart showing an operation in the NC device of FIG.

【図5】この発明の第3の実施例であるNC装置の構成
を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of an NC device according to a third embodiment of the present invention.

【図6】図5のNC装置における動作を示すフローチャ
ートである。
FIG. 6 is a flowchart showing an operation in the NC device of FIG.

【図7】この発明の第4の実施例であるNC装置の構成
を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of an NC device according to a fourth embodiment of the present invention.

【図8】図7のNC装置における動作を示すフローチャ
ートである。
FIG. 8 is a flowchart showing an operation in the NC device of FIG.

【図9】この発明の第5の実施例であるNC装置の構成
を示すブロック図である。
FIG. 9 is a block diagram showing a configuration of an NC device according to a fifth embodiment of the present invention.

【図10】NC装置における加工プログラムの一例を示
す説明図である。
FIG. 10 is an explanatory diagram showing an example of a machining program in the NC device.

【図11】図9のNC装置における動作を示すフローチ
ャートである。
FIG. 11 is a flowchart showing an operation in the NC device of FIG.

【図12】従来のNC装置の構成を示すブロック図であ
る。
FIG. 12 is a block diagram showing a configuration of a conventional NC device.

【図13】図12のNC装置におけるハードウェア構成
を示すブロック図である。
13 is a block diagram showing a hardware configuration of the NC device of FIG.

【図14】図12のNC装置における記憶装置に記憶さ
れた加工プログラムの内容を示す説明図である。
14 is an explanatory diagram showing the contents of a machining program stored in a storage device in the NC device of FIG.

【図15】図12のNC装置における動作を示すフロー
チャートである。
FIG. 15 is a flowchart showing an operation in the NC device of FIG.

【図16】図12のNC装置において加工プログラムの
運転中にサブプログラムを呼び出す場合の構成を示すブ
ロック図である。
16 is a block diagram showing a configuration in which a subprogram is called during operation of a machining program in the NC device shown in FIG.

【図17】図12のNC装置において加工プログラムの
運転中に工具を呼び出す場合の構成を示すブロック図で
ある。
FIG. 17 is a block diagram showing a configuration when a tool is called during operation of a machining program in the NC device shown in FIG.

【図18】図12のNC装置において加工プログラムの
運転中に工具補正量を呼び出す場合の構成を示すブロッ
ク図である。
FIG. 18 is a block diagram showing a configuration in a case where a tool correction amount is called during operation of a machining program in the NC device shown in FIG. 12.

【図19】図12のNC装置において加工プログラムの
運転中にワーク座標系を設定する場合の構成を示すブロ
ック図である。
FIG. 19 is a block diagram showing a configuration when a work coordinate system is set during operation of a machining program in the NC device of FIG.

【符号の説明】[Explanation of symbols]

1 入力装置 2 記憶装置 3 演算・制御装置 4 出力装置 5 CRT表示装置 6a 加工プログラム 6b 加工プログラム 7a プログラム番号 7b プログラム番号 8a 情報 8b 情報 9a プログラム名 9b プログラム名 10 CPU(中央処理装置) 11 ROM 12 RAM 13 テープ 14 テープリーダ 15 キーボード 16 キーボードインタフェース(キーボードI/F) 17 CRTコントローラ 18 CRT 19 サーボコントローラ 20 駆動回路 21 工作機械 101 プログラム解析手段 102 プログラムサーチ手段 103 プログラム読出し手段 104 プログラム名称変換手段 105 加工プログラムファイル 106 プログラム名称設定手段 302 工具サーチ手段 303 工具取出し手段 304 工具名称変換手段 305 工具名称設定手段 502 工具補正量サーチ手段 503 工具補正量読出し手段 504 工具補正名称変換手段 505 工具補正量ファイル 506 工具補正名称設定手段 702 ワーク座標系サーチ手段 703 ワーク座標系読出し手段 704 ワーク座標系名称変換手段 705 ワーク座標系名称設定手段 901 名称/番号設定手段 S1〜S11 ステップ S21〜S29 ステップ S41〜S49 ステップ S61〜S69 ステップ S81〜S89 ステップ S1102〜S1115 ステップ 1 Input Device 2 Storage Device 3 Computing / Control Device 4 Output Device 5 CRT Display Device 6a Processing Program 6b Processing Program 7a Program Number 7b Program Number 8a Information 8b Information 9a Program Name 9b Program Name 10 CPU (Central Processing Unit) 11 ROM 12 RAM 13 tape 14 tape reader 15 keyboard 16 keyboard interface (keyboard I / F) 17 CRT controller 18 CRT 19 servo controller 20 drive circuit 21 machine tool 101 program analysis means 102 program search means 103 program read means 104 program name conversion means 105 processing Program file 106 Program name setting means 302 Tool search means 303 Tool extraction means 304 Tool name conversion means 30 Tool name setting means 502 Tool correction amount searching means 503 Tool correction amount reading means 504 Tool correction name converting means 505 Tool correction amount file 506 Tool correction name setting means 702 Work coordinate system searching means 703 Work coordinate system reading means 704 Work coordinate system name Conversion means 705 Work coordinate system name setting means 901 Name / number setting means S1 to S11 steps S21 to S29 steps S41 to S49 steps S61 to S69 steps S81 to S89 steps S1102 to S1115 steps

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年3月12日[Submission date] March 12, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0034[Correction target item name] 0034

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0034】図1に示されるブロック図において、プロ
グラム名称変換手段104はプログラム解析手段101
から渡された情報に基づいて、それがプログラム番号で
あるかプログラム名称であるかを判断し、プログラム番
号であれば、従来通りにプログラムサーチ手段102、
プログラム読出し手段103の処理を行う。プログラム
名称であれば、表1に示されるようなプログラム名称/
番号対応表からその名称に該当するプログラム番号を捜
し出し、その後は従来通りプログラムサーチ手段102
がそのプログラム番号をもとに加工プログラムファイル
105からサーチし、プログラム読出し手段103が加
工プログラムを読み出す。
In the block diagram shown in FIG. 1, the program name conversion means 104 is a program analysis means 101.
Based on the information passed from the computer, it is determined whether it is a program number or a program name, and if it is the program number, the program search means 102,
The processing of the program reading means 103 is performed. If it is a program name, the program name /
The program number corresponding to the name is searched from the number correspondence table, and thereafter the program search means 102 is used as usual.
Searches from the machining program file 105 based on the program number, and the program reading means 103 reads the machining program.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の加工プログラムを記憶し、記憶し
た加工プログラムにより工作機械などの機械を制御して
加工を行うことができる数値制御装置において、上記加
工プログラムに対する加工プログラム番号に加えて加工
プログラム名称を設定する加工プログラム名称設定手段
と、上記加工プログラム名称から上記加工プログラム番
号に変換する加工プログラム名称変換手段とを備えたこ
とを特徴とする数値制御装置。
1. A numerical controller capable of storing a plurality of machining programs and controlling a machine such as a machine tool to perform machining by the stored machining programs, in addition to the machining program number for the machining program. A numerical control device comprising: a machining program name setting means for setting a name; and a machining program name conversion means for converting the machining program name into the machining program number.
【請求項2】 加工プログラムから工具を指定して加工
を行うことができる数値制御装置において、上記工具に
対する工具番号に加えて工具名称を設定する工具名称設
定手段と、上記工具名称から上記工具番号に変換する工
具名称変換手段とを備えたことを特徴とする数値制御装
置。
2. In a numerical controller capable of designating a tool from a machining program to perform machining, tool name setting means for setting a tool name in addition to the tool number for the tool, and the tool number to the tool number. And a tool name conversion means for converting into a numerical value.
【請求項3】 加工プログラムから工具補正量を指定し
て加工を行うことができる数値制御装置において、上記
工具補正量に対する工具補正番号に加えて工具補正名称
を設定する工具補正名称設定手段と、上記工具補正名称
から上記工具補正番号に変換する工具補正名称変換手段
とを備えたことを特徴とする数値制御装置。
3. A numerical control device capable of designating a tool compensation amount from a machining program to perform machining, and tool compensation name setting means for setting a tool compensation name in addition to the tool compensation number for the tool compensation amount, A numerical control device comprising: a tool correction name conversion means for converting the tool correction name into the tool correction number.
【請求項4】 加工プログラムからワーク座標系を指定
して加工を行うことができる数値制御装置において、上
記ワーク座標系に対するワーク座標系番号に加えてワー
ク座標系名称を設定するワーク座標系名称設定手段と、
上記ワーク座標系名称から上記ワーク座標系番号に変換
するワーク座標系名称変換手段とを備えたことを特徴と
する数値制御装置。
4. A work coordinate system name setting for setting a work coordinate system name in addition to a work coordinate system number for the work coordinate system in a numerical control device capable of performing work by designating a work coordinate system from a machining program. Means and
A numerical control device comprising: a work coordinate system name conversion means for converting the work coordinate system name into the work coordinate system number.
【請求項5】 加工プログラムから加工プログラム名
称、工具名称、工具補正名称、又はワーク座標系名称を
指定することができる数値制御装置において、名称と番
号との対応を上記加工プログラムから指定する名称/番
号設定手段を備えたことを特徴とする数値制御装置。
5. A numerical control device capable of designating a machining program name, a tool name, a tool compensation name, or a workpiece coordinate system name from a machining program, in which a name / number is designated from the machining program. A numerical control device comprising number setting means.
JP31237491A 1991-11-27 1991-11-27 Numerical controller Pending JPH05150816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31237491A JPH05150816A (en) 1991-11-27 1991-11-27 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31237491A JPH05150816A (en) 1991-11-27 1991-11-27 Numerical controller

Publications (1)

Publication Number Publication Date
JPH05150816A true JPH05150816A (en) 1993-06-18

Family

ID=18028487

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31237491A Pending JPH05150816A (en) 1991-11-27 1991-11-27 Numerical controller

Country Status (1)

Country Link
JP (1) JPH05150816A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010109536A1 (en) * 2009-03-27 2010-09-30 三菱電機株式会社 Numerical control device and method of controlling the numerical control device
WO2018096676A1 (en) * 2016-11-28 2018-05-31 三菱電機株式会社 Numerical control apparatus and tool management generation program
WO2018096675A1 (en) * 2016-11-28 2018-05-31 三菱電機株式会社 Processing program conversion device and numeric value control device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010109536A1 (en) * 2009-03-27 2010-09-30 三菱電機株式会社 Numerical control device and method of controlling the numerical control device
JP5220183B2 (en) * 2009-03-27 2013-06-26 三菱電機株式会社 Numerical control device and control method of the numerical control device
US9063533B2 (en) 2009-03-27 2015-06-23 Mitsubishi Electric Corporation Multi-spindle translation control for multiple coordinate systems
WO2018096676A1 (en) * 2016-11-28 2018-05-31 三菱電機株式会社 Numerical control apparatus and tool management generation program
WO2018096675A1 (en) * 2016-11-28 2018-05-31 三菱電機株式会社 Processing program conversion device and numeric value control device
JPWO2018096676A1 (en) * 2016-11-28 2018-11-22 三菱電機株式会社 Numerical control device and tool management generation program
JPWO2018096675A1 (en) * 2016-11-28 2018-11-29 三菱電機株式会社 Machining program conversion device and numerical control device

Similar Documents

Publication Publication Date Title
JP2666642B2 (en) Tool designation method in NC automatic programming system
WO2000038881A1 (en) Method and apparatus for providing numerical control information
EP0179919B1 (en) Numerical control system
JPH05150816A (en) Numerical controller
US5261103A (en) Method of and system for compiling source program
JPH11306203A (en) Index production method and document retrieval method
EP0284355A2 (en) Document processing apparatus
US5299114A (en) Sequence program search method
JPH08137648A (en) Operation device for image input output device
JP3166995B2 (en) Comment giving method and document processing device
JPS61175705A (en) Control method of nc program
JP2000181700A (en) Program analyzing device and recording medium
JPH077839U (en) Numerical control device
JPH0225967A (en) Misinput correction system for homophone
JP2518157B2 (en) Method and device for generating revision history of program
JP3466761B2 (en) Document processing apparatus and control method thereof
JP5007801B2 (en) NC program editing device
JP3001597B2 (en) Software production support equipment
JPH0358226A (en) File editing system
JPH08292862A (en) Direct display system for corresponding item
JPS62219005A (en) Sequence program processor
JPH09230992A (en) Information processor
JPH06304360A (en) Process name input apparatus
JPH11212966A (en) Information processor, information processing method and record medium recording method
JPH06162108A (en) Document retrieving device