JPH05189022A - Method for searching for restart program of numerical controller - Google Patents

Method for searching for restart program of numerical controller

Info

Publication number
JPH05189022A
JPH05189022A JP403592A JP403592A JPH05189022A JP H05189022 A JPH05189022 A JP H05189022A JP 403592 A JP403592 A JP 403592A JP 403592 A JP403592 A JP 403592A JP H05189022 A JPH05189022 A JP H05189022A
Authority
JP
Japan
Prior art keywords
program
restart
block
fixed cycle
read
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
JP403592A
Other languages
Japanese (ja)
Inventor
Nobuyoshi Etsuno
信義 越野
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 JP403592A priority Critical patent/JPH05189022A/en
Publication of JPH05189022A publication Critical patent/JPH05189022A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the method which can shorten the time of a search for the restart program of the numerical controller. CONSTITUTION:This method searches for the restart program of the numerical controller by reading out and analyzing a machining program including a fixed cycle program, block by block, and integrating the movement quantity of each control axis of the program until the specific restart program is reached. Then a decision 512 on whether or not the read block is the fixed cycle program is made and when so, the machining program in a next block is read out without analyzing the program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は数値制御装置の再開プロ
グラムのサーチ方法、特に固定サイクルプログラムを含
んだ加工プログラムにおけるサーチ方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a search method for a restart program of a numerical controller, and more particularly to a search method for a machining program including a fixed cycle program.

【0002】[0002]

【従来の技術】図2は数値制御装置の構成を示すブロッ
ク図である。図において、11はCPU、12は制御プ
ログラムが格納されているROM、13は加工プログラ
ム等が記憶されるRAMであり、14はワーキングメモ
リである。15はNCテープNTからっNCプログラム
データを読み取るテープリーダであり、読み取られたデ
ータはRAM13に格納される。16はデイスプレイ装
置付きマニュアルデータインプット装置(以下MDI装
置という)、17は操作盤である。18はサーボコント
ローラで、サーボ駆動回路19を介して工作機械のサー
ボモータ20を駆動し、その検出器21により帰還信号
を得て帰還制御を行う。なお、サーボ系は1個しか図示
していないが、X,Y,Zの各制御軸に対応してそれぞ
れ設けられているものとする。
2. Description of the Related Art FIG. 2 is a block diagram showing the configuration of a numerical controller. In the figure, 11 is a CPU, 12 is a ROM that stores a control program, 13 is a RAM that stores a machining program, and 14 is a working memory. Reference numeral 15 is a tape reader for reading NC program data from the NC tape NT, and the read data is stored in the RAM 13. Reference numeral 16 is a manual data input device with a display device (hereinafter referred to as MDI device), and 17 is an operation panel. Reference numeral 18 denotes a servo controller, which drives a servomotor 20 of the machine tool via a servo drive circuit 19, and a detector 21 of the servomotor 20 obtains a feedback signal to perform feedback control. Although only one servo system is shown, it is assumed that each servo system is provided corresponding to each of the X, Y, and Z control axes.

【0003】図3は固定サイクルプログラムを使用した
加工プログラムの例を示す図である。図3の加工プログ
ラムにおいて、例えば011N60の穴明けを実行中に
工具が破損してしまった場合は、工具交換後011N6
0の加工プログラムから実行させるために、再開プログ
ラムとして011N60をMDI装置16の操作により
入力し、再開サーチを開始させると、再開プログラム0
11N60をサーチする。サーチ完了後、各制御軸を再
開位置に移動させて加工プログラムを実行させると01
1N60の穴明け動作から加工が再開する。
FIG. 3 is a diagram showing an example of a machining program using a fixed cycle program. In the machining program shown in FIG. 3, for example, when the tool is damaged during the drilling of 011N60, the tool is replaced by 011N6.
In order to execute from the machining program of 0, when 011N60 is input as the restart program by the operation of the MDI device 16 and the restart search is started, the restart program 0
Search for 11N60. After completing the search, move each control axis to the restart position and execute the machining program.
Processing restarts from the 1N60 drilling operation.

【0004】図4は図2の数値制御装置の再開プログラ
ムのサーチ方法を示したフローチャートである。まず、
CPU11はRAM13から1ブロック分のプログラム
を読み出して(S1)、次のそのプログラムを解析する(S
2)。そして、そのプログラムが予め設定された再開プロ
グラムと一致するかどうかを判断する(S3)。ここで一致
しているかどうかは、プログラム番号、シーケンス番号
及びブロック番号が一致しているかどうかを判定する。
一致していなければそのプログラムについてサーボ系の
各制御軸の移動量を積算する(S4)。次に、読出しのアド
レスをインクリメントして(S5)、再開プログラムと一致
するまで上述の処理を繰り返す。図3の加工プログラム
の例においては、図3の先頭のプログラムから順次読み
込んで解析し、011N60の加工プログラムに到達す
るまで、上述の処理を繰り返す。
FIG. 4 is a flow chart showing a search method for the restart program of the numerical controller of FIG. First,
The CPU 11 reads a program for one block from the RAM 13 (S1) and analyzes the next program (S1).
2). Then, it is determined whether the program matches the preset restart program (S3). Here, it is determined whether the program numbers, sequence numbers, and block numbers match.
If they do not match, the movement amount of each control axis of the servo system for the program is integrated (S4). Next, the read address is incremented (S5), and the above-described processing is repeated until it coincides with the restart program. In the example of the machining program of FIG. 3, the above-described processing is repeated until the machining program of 011N60 is reached by sequentially reading and analyzing the program from the top program of FIG.

【0005】[0005]

【発明が解決しようとする課題】従来の数値制御装置の
再開サーチは以上のように処理されるので、サーチに不
必要な固定サイクルプログラムも解析され、サーチの時
間が長くなってしまうという問題点があった。
Since the restart search of the conventional numerical control device is processed as described above, a fixed cycle program unnecessary for the search is also analyzed and the search time becomes long. was there.

【0006】本発明は、上記のような問題点を解決する
ためになされたものであり、短時間で再開プログラムを
サーチすることかできる数値制御装置の再開プログラム
のサーチ方法を得ることを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to obtain a restart program search method for a numerical controller capable of searching the restart program in a short time. To do.

【0007】[0007]

【課題を解決するための手段】本発明に係る数値制御装
置の再開プログラムのサーチ方法は、固定サイクルプロ
グラムを含む加工プログラムを1ブロックずつ読出して
解析し、特定の再開プログラムに達するまでそのプログ
ラムの各制御軸の移動量を積算していく数値制御装置の
再開プログラムのサーチ方法において、読出したブロッ
クが固定サイクルプログラムであるかどうかを判別し、
固定サイクルプログラムであったときはそのプログラム
を解析せずに次のブロックの加工プログラムを読み出
す。
A method for searching a resuming program of a numerical controller according to the present invention reads a machining program including a fixed cycle program block by block and analyzes the machining program until a particular resuming program is reached. In the search method of the restart program of the numerical control device that accumulates the movement amount of each control axis, it is determined whether the read block is a fixed cycle program,
If it is a fixed cycle program, the machining program of the next block is read without analyzing the program.

【0008】[0008]

【作用】本発明においては、固定サイクルプログラムを
読出したときにはそれを解析せずに次のアドレスの加工
プログラムを処理し、固定サイクルプログラムの解析を
省略する。従って、サーチに要する時間が短縮されてい
る。
In the present invention, when the fixed cycle program is read, the processing program at the next address is processed without analyzing it, and the analysis of the fixed cycle program is omitted. Therefore, the time required for the search is shortened.

【0009】[0009]

【実施例】【Example】

実施例1.図1は本発明の一実施例の数値制御装置の再
開プログラムのサーチ方法を示したフローチャートであ
る。再開プログラムをMDI装置16の操作により入力
し、再開サーチを開始させ、再開プログラムのサーチを
開始する。まず、CPU11はRAM13から1ブロッ
ク分のプログラムを読み出して(S11) 、そのプログラム
が固定サイクルプログラムであるかどうかを判断する(S
12) 。固定サイクルプログラムでなかった場合には、次
のそのプログラムを解析する(S13) 。そして、そのプロ
グラムが予め設定された再開プログラムと一致するかど
うかを判断する(S14) 。ここで一致しているかどうか
は、プログラム番号、シーケンス番号及びブロック番号
が一致しているかどうかを判定する。一致していなけれ
ばそのプログラムについてサーボ系の各制御軸の移動量
を積算する(S15) 。次に、読出しのアドレスをインクリ
メントして(S16) 、再開プログラムと一致するまで上述
の処理を繰り返す。
Example 1. FIG. 1 is a flow chart showing a search method for a restart program of a numerical controller according to an embodiment of the present invention. The restart program is input by operating the MDI device 16, the restart search is started, and the search for the restart program is started. First, the CPU 11 reads a program for one block from the RAM 13 (S11), and determines whether the program is a fixed cycle program (S11).
12). If it is not a fixed cycle program, the next program is analyzed (S13). Then, it is determined whether the program matches the preset restart program (S14). Here, it is determined whether the program numbers, sequence numbers, and block numbers match. If they do not match, the movement amount of each control axis of the servo system for the program is integrated (S15). Next, the read address is incremented (S16), and the above-mentioned processing is repeated until it coincides with the restart program.

【0010】一方、読み出された加工プログラムが固定
サイクルプログラムであるかどうかを判断した際に、固
定サイクルプログラムであると判断された場合には(S1
2) 、そのプログラムを解析しないで、次に読出すプロ
グラムのアドレスをインクリメントする(S16) 。例え
ば、図3の加工プログラムにおいて「G81 Z−5
0.R−15.F50 L0;」を読み出すと、このプ
ログラムは固定サイクルプログラムであるからこれを分
析せずに、次のアドレスのプログラム「M98 H1
1;」を読出して解析していく。例えば再開プログラム
が011N60であるとすると、011N60の加工プ
ログラムに到達するまで、上述の処理が繰り返される(S
14) 。サーチ完了後は、従来の場合と同様に各制御軸の
移動量が上記の演算処理(S15) により積算されているの
で、その移動量をサーボコントローラ18に出力する。
サーボコントローラはサーボ駆動回路19を介して工作
機械のサーボモータ20を駆動し、その検出器21によ
り帰還信号を得て帰還制御を行って、各軸を再開位置に
もってくる。その後は011N60の穴明け動作から加
工が再開する。
On the other hand, when it is determined that the read machining program is the fixed cycle program when it is determined that it is the fixed cycle program (S1
2) The address of the program to be read next is incremented without analyzing the program (S16). For example, in the machining program of FIG. 3, “G81 Z-5
0. R-15. "F50 L0;" is read, this program is a fixed cycle program, so this program is not analyzed and the program "M98 H1" at the next address is read.
1; ”is read and analyzed. For example, if the restart program is 011N60, the above processing is repeated until the machining program of 011N60 is reached (S
14) . After the search is completed, the movement amount of each control axis is accumulated by the above-mentioned calculation process (S15) as in the conventional case, and the movement amount is output to the servo controller 18.
The servo controller drives the servomotor 20 of the machine tool via the servo drive circuit 19, and the detector 21 obtains a feedback signal to perform feedback control to bring each axis to the restart position. After that, the processing is restarted from the drilling operation of 011N60.

【0011】[0011]

【発明の効果】以上のように本発明によれば、固定サイ
クルプログラムを含む加工プログラムの再開プログラム
をサーチするとき、固定サイクルプログラムを解析せず
に、通常の加工プログラムのみを解析するようにしたの
で、サーチ時間を短縮することができる。
As described above, according to the present invention, when searching the resuming program of the machining program including the fixed cycle program, only the normal machining program is analyzed without analyzing the fixed cycle program. Therefore, the search time can be shortened.

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

【図1】本発明の一実施例の数値制御装置の再開プログ
ラムのサーチ方法を示したフローチャートである。
FIG. 1 is a flowchart showing a search method for a restart program of a numerical controller according to an embodiment of the present invention.

【図2】数値制御装置の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of a numerical control device.

【図3】固定サイクルプログラムを使用した加工プログ
ラムの例を示した図である。
FIG. 3 is a diagram showing an example of a machining program using a fixed cycle program.

【図4】従来の数値制御装置の再開プログラムのサーチ
方法を示したフローチャートである。
FIG. 4 is a flowchart showing a conventional method for searching for a restart program of a numerical controller.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 固定サイクルプログラムを含む加工プロ
グラムを1ブロックずつ読出して解析し、特定の再開プ
ログラムに達するまで各制御軸の移動量を積算していく
数値制御装置の再開プログラムのサーチ方法において、 読出したブロックが固定サイクルプログラムであるかど
うかを判別し、固定サイクルプログラムであったときは
そのプログラムを解析せずに次のブロックの加工プログ
ラムを読み出すことを特徴とする数値制御装置の再開プ
ログラムのサーチ方法。
1. A search method for a restart program of a numerical control device, wherein a machining program including a fixed cycle program is read and analyzed block by block, and the movement amount of each control axis is integrated until a specific restart program is reached. It is determined whether or not the read block is a fixed cycle program, and if it is a fixed cycle program, the machining program of the next block is read without analyzing the program. Search method.
JP403592A 1992-01-13 1992-01-13 Method for searching for restart program of numerical controller Pending JPH05189022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP403592A JPH05189022A (en) 1992-01-13 1992-01-13 Method for searching for restart program of numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP403592A JPH05189022A (en) 1992-01-13 1992-01-13 Method for searching for restart program of numerical controller

Publications (1)

Publication Number Publication Date
JPH05189022A true JPH05189022A (en) 1993-07-30

Family

ID=11573712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP403592A Pending JPH05189022A (en) 1992-01-13 1992-01-13 Method for searching for restart program of numerical controller

Country Status (1)

Country Link
JP (1) JPH05189022A (en)

Similar Documents

Publication Publication Date Title
US20080103625A1 (en) Numerical controller with machining resume function
US7110851B2 (en) Numerically controlled device
EP0118988A1 (en) NC machining restart control system
JP5339815B2 (en) Numerical control device with processing resumption function
JPH07136906A (en) Numerical controller
JPH04367906A (en) Numerical controller
JPH05189022A (en) Method for searching for restart program of numerical controller
US7139635B2 (en) Multi-system numerical control device
JP6309927B2 (en) Numerical control device with automatic trace function of related signals linked with NC program operation
JPS6125212A (en) Converter of nc machining information
JPH02151909A (en) Control device for industrial machine
JPS59192440A (en) Control device for resumption of nc processing
JPH0768423A (en) Electric discharge machining device
JPH03209505A (en) Numerical controller and working restarting method
JPH0863216A (en) Machining time measuring system
JP3216629B2 (en) Numerical control unit
JPH0511831A (en) Machining program analyzing method for nc controller
JPS6149206A (en) Process operation method
JPS6063610A (en) Numerical controller with graphic display device capable of drawing clamping device
JP2001159906A (en) Nc working device
JP2980047B2 (en) Numerical control unit
JP2642451B2 (en) Numerical control unit
JP2001014014A (en) Numeral control method and its device
JPH08286712A (en) Editing system for sequence program
JPH0314105A (en) Re-forward motion method for numerical controller