Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0542685B2 - - Google Patents
[go: Go Back, main page]

JPH0542685B2 - - Google Patents

Info

Publication number
JPH0542685B2
JPH0542685B2 JP59119695A JP11969584A JPH0542685B2 JP H0542685 B2 JPH0542685 B2 JP H0542685B2 JP 59119695 A JP59119695 A JP 59119695A JP 11969584 A JP11969584 A JP 11969584A JP H0542685 B2 JPH0542685 B2 JP H0542685B2
Authority
JP
Japan
Prior art keywords
machining
program
subprogram
memory
start step
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.)
Expired - Lifetime
Application number
JP59119695A
Other languages
Japanese (ja)
Other versions
JPS60263209A (en
Inventor
Kyohisa Mizoguchi
Hirotsugu Sano
Kunio Hatsuta
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.)
Yamazaki Mazak Corp
Original Assignee
Yamazaki Mazak 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 Yamazaki Mazak Corp filed Critical Yamazaki Mazak Corp
Priority to JP11969584A priority Critical patent/JPS60263209A/en
Publication of JPS60263209A publication Critical patent/JPS60263209A/en
Publication of JPH0542685B2 publication Critical patent/JPH0542685B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form
    • G05B19/406Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form characterised by monitoring or safety
    • G05B19/4067Restoring data or position after power failure or other interruption
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50103Restart, reverse, return along machined path, stop

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Description

【発明の詳細な説明】 (a) 発明の技術分野 本発明は、マシニングセンタ等の数値制御工作
機械において、メインプログラムからサブプログ
ラムを複数回呼び出して実行する際に、当該サブ
プログラム内の任意のステツプからの加工の開始
を、容易に指示実行させ得る、数値制御工作機械
における加工再開制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a numerically controlled machine tool such as a machining center, in which when a subprogram is called and executed multiple times from a main program, any step within the subprogram is executed. The present invention relates to a machining restart control method in a numerically controlled machine tool, which can easily instruct and execute machining start from .

(b) 技術の背景 数値制御工作機械を用いて、ワークを加工プロ
グラムに基づいて加工する場合、種々の理由か
ら、当該ワークの加工動作を加工プログラムの途
中で中断することがある。その場合、加工の再開
時には、ワークの加工を加工プログラムの中断し
たステツプから再開する必要が有る。
(b) Background of the Technology When a numerically controlled machine tool is used to machine a workpiece based on a machining program, the machining operation of the workpiece may be interrupted in the middle of the machining program for various reasons. In this case, when machining is restarted, it is necessary to restart machining of the workpiece from the interrupted step of the machining program.

こうした作業は加工プログラムがメインプログ
ラムだけから構成される場合は容易に行えるが、
メインプログラムがサブプログラムを呼び出し、
更に当該呼び出されたサブプログラム(以下、メ
インプログラムが呼び出すサブプログラムを「第
1サブプログラム」と称する。)がまた更に別の
サブプログラム(以下、第1サブプログラムが呼
び出すサブプログラムを「第2サブプログラム」
と称する。)を呼び出してゆく場合等は、その作
業も複雑なものとなる。
This kind of work can be done easily if the machining program consists only of the main program, but
The main program calls the subprogram,
Furthermore, the called subprogram (hereinafter, the subprogram called by the main program will be referred to as the "first subprogram") is further called another subprogram (hereinafter, the subprogram called by the first subprogram will be referred to as the "second subprogram"). program"
It is called. ), the task becomes complicated.

(c) 従来技術と問題点 従来、こうした加工プログラム途中での加工を
再開する場合、単に加工プログラム中の当該中断
したステツプに付されたシーケンス番号や特定の
加工(穴あけ、パンチ加工)等を検索して求め、
当該ステツプから加工を再開する方法が、提案さ
れている(特開昭58−186805号公報)。
(c) Prior art and problems Conventionally, when resuming machining in the middle of a machining program, the user simply searches for the sequence number attached to the interrupted step in the machining program or the specific machining (drilling, punching), etc. and find out,
A method has been proposed for restarting machining from that step (Japanese Patent Laid-Open No. 186805/1983).

しかし、通常サブプログラムは複数回繰り返し
実行することが多いために、第1サブプログラム
や第2サブプログラムの途中のステツプから加工
を再開する場合、単にシーケンス番号のみによる
検索では、当該サブプログラムの何回目から実行
するのかを指定出来なかつた。即ち、例えば、第
2図において、メインプログラムMPRが第1サ
ブプログラムSUB1を呼び出し、更に第1サブ
プログラムSUB1が第2サブプログラムSUB2
を呼び出す場合、第2サブプログラムSUB2の
N0240のシーケンス番号SEQが付されたステツプ
の、10回目の実行から加工を再開する場合は、加
工再開の際のサブプログラムSUB2の実行回数
を指示出来なかつたので、オペレータは当該シー
ケンス番号の付されたステツプを検索しても直ち
に加工を再開することは出来ず(なぜなら、この
検索動作は、加工プログラムPROの実行順に、
メインプログラムMPRの第2図上方から順次行
われ、まずメインプログラムMPRのシーケンス
番号SEQがN0500で、第1サブプログラムSUB
1に入り、更にシーケンス番号SEQがN0125で第
2サブプログラムSUB2に入り、当該サブプロ
グラムSUB2のシーケンス番号SEQのN0240を
最初に発見した時点で検索動作は終了する。従つ
て、この時点で加工を再開すると、再開後の加工
は第2サブプログラムSUB2の1回目の実行か
ら行われることになり、不都合が生じる。)、更に
9回の検索動作をオペレータが加工プログラム
PRO全体に対して繰り返し行つて、初めて目的
のステツプに到達することが出来た。従つて、オ
ペレータは目的のステツプが検索される間、機械
に対する検索の指示等の必要から、機械から離れ
ることが出来ず、加工再開までに多くの時間を要
し、またオペレータの手間も大きいものが有つ
た。
However, since subprograms are usually repeatedly executed multiple times, when resuming machining from a step in the middle of the first or second subprogram, it is not possible to search simply by sequence number. It was not possible to specify whether to execute from the first time. That is, for example, in FIG. 2, the main program MPR calls the first subprogram SUB1, and the first subprogram SUB1 calls the second subprogram SUB2.
When calling the second subprogram SUB2,
When restarting machining from the 10th execution of the step with the sequence number SEQ of N0240, the operator cannot specify the number of executions of subprogram SUB2 when restarting machining. Machining cannot be restarted immediately even if the step is searched for (this is because the search operation is performed in the order of execution of the machining program PRO.
The main program MPR is executed sequentially from the top of Figure 2. First, the sequence number SEQ of the main program MPR is N0500, and the first subprogram SUB
1, and further enters the second subprogram SUB2 with sequence number SEQ of N0125, and the search operation ends when the sequence number SEQ of N0240 of the subprogram SUB2 is first found. Therefore, if the machining is restarted at this point, the machining after restarting will be performed from the first execution of the second subprogram SUB2, which will cause an inconvenience. ), and an additional 9 search operations are performed by the operator in the machining program.
It wasn't until I repeated the entire PRO that I was able to reach my desired step. Therefore, while the target step is being searched, the operator is unable to leave the machine because he or she has to instruct the machine to search, and it takes a lot of time and a lot of effort on the part of the operator to restart machining. There was.

また、一方で、一度目的のシーケンス番号
SEQが検索されたところで、重ねて検索動作を
行うことなく、加工プログラムPRO自体を手動
で変更する方法がある。例えば、第2図における
呼び出した各プログラムの繰り返し回数を指示す
る指令(各ステツプの末尾に付された記号L03,
L05,L02等は、当該呼び出されたプログラムの
繰り返し回数を指示している。即ち第1サブプロ
グラムSUB1のシーケンス番号SEQがN0125の
ステツプにおける指示「M98P1000L05」は、プ
ログラム番号P1000の第2サブプログラムSUBを
5回繰り返して実行することを指示している。)
を変更することにより、残りの実行回数を調整
し、あたかも複数回のサブプログラムの実行が行
われたかのように加工プログラムPROを変更す
る。第2図の例で、第2サブプログラムSUB2
の10回目の実行において、シーケンス番号SEQ
がN0240から加工を再開する場合、メインプログ
ラムMPRのシーケンス番号SEQがN0500の繰り
返し回数をL03からL02へ、第1サブプログラム
SUB1の、シーケンス番号SEQがN0125の繰り
返し回数をL05からL03へ変更することにより、
第2サブプログラムSUB2のシーケンス番号
SEQがN0240のステツプはあたかも既に9回の実
行が行われたのと同じ状態となる。ここで、シー
ケンス番号N0240から加工を再開する方法も有る
が、この方法は、プログラムの変更作業を伴うこ
とから間違いが生じやすく、危険が大きい。
Also, on the other hand, once the desired sequence number
Once SEQ has been searched, there is a way to manually change the machining program PRO itself without repeating the search operation. For example, the command (symbol L03 at the end of each step,
L05, L02, etc. indicate the number of times the called program is repeated. That is, the instruction "M98P1000L05" in the step with the sequence number SEQ of N0125 of the first subprogram SUB1 instructs to repeatedly execute the second subprogram SUB with the program number P1000 five times. )
By changing , the remaining number of executions is adjusted and the machining program PRO is changed as if the subprogram had been executed multiple times. In the example in Figure 2, the second subprogram SUB2
In the 10th execution of the sequence number SEQ
restarts machining from N0240, the sequence number SEQ of the main program MPR changes the number of repetitions of N0500 from L03 to L02, and the first subprogram
By changing the number of repetitions of SUB1 with sequence number SEQ of N0125 from L05 to L03,
Sequence number of second subprogram SUB2
The step with SEQ N0240 is in the same state as if it had already been executed nine times. Here, there is also a method of restarting the machining from sequence number N0240, but this method involves changing the program, so it is easy to make mistakes and is very dangerous.

さらに、サブプログラム中のステツプにはシー
ケンス番号SEQ等のステツプ識別記号が付与さ
れていない場合等、特定のプログラムブロツク以
外から加工を再開する方法も有るが、この方法
は、プログラムの変更作業を伴うことから、あら
ゆるステツプの特定化が不可能であり、間違えが
生じやすく、危険が大きい。
Furthermore, there is a method of restarting machining from a point other than a specific program block, such as when steps in a subprogram are not assigned step identification symbols such as sequence numbers SEQ, but this method involves changing the program. Therefore, it is impossible to specify every step, making it easy to make mistakes and pose great risks.

(d) 発明の目的 本発明は、前述の欠点を解消すべく、加工を再
開すべきステツプについて、加工を再開すべき繰
り返し数に達するまでオペレータが繰り返し検索
動作を指令するといつた繁雑な手間が不要で、ミ
スの生じやすいプログラムの変更作業も必要とし
ない、簡易で信頼性の高い数値制御工作機械にお
ける加工再開制御方法を提供することを目的とす
るものである。
(d) Purpose of the Invention In order to eliminate the above-mentioned drawbacks, the present invention eliminates the troublesome task of having an operator repeatedly command a search operation for the step at which machining should be restarted until the number of repetitions at which machining should be restarted is reached. The object of the present invention is to provide a simple and highly reliable machining restart control method in a numerically controlled machine tool that does not require unnecessary and error-prone program changes.

(e) 発明の構成 即ち、本発明は、加工を再開すべきサブプログ
ラムのプログラム識別記号と、開始ステツプの最
寄りのステツプ識別記号及び前記ステツプ識別記
号から当該開始ステツプまでのオフセツトステツ
プ数と、前記開始ステツプの加工再開時までの前
記サブプログラムの繰り返し実行回数を格納する
メモリを設け、加工の再開に際して、開始ステツ
プのステツプ識別記号が付されていない場合に、
前記メモリに格納された前記サブプログラムのプ
ログラム識別記号、最寄りのステツプ識別記号及
び前記オフセツトステツプ数から開始ステツプを
指定し、該指定された開始ステツプを、前記メモ
リに格納された実行回数に達するまで、加工プロ
グラムをその最初から連続的かつ仮想的に実行
し、当該開始ステツプが所定回数仮想的に実行さ
れたところで、中断している加工を当該開始ステ
ツプから実際に再開するようにして構成される。
(e) Structure of the Invention In other words, the present invention provides a program identification code of a subprogram for which processing is to be restarted, a step identification code closest to the start step, and the number of offset steps from the step identification code to the start step; A memory is provided to store the number of times the subprogram is repeatedly executed until the machining of the start step is restarted, and when the step identification symbol of the start step is not attached when the machining is restarted,
A start step is specified from the program identification symbol of the subprogram stored in the memory, the nearest step identification symbol, and the offset step number, and the specified start step reaches the number of executions stored in the memory. The machining program is continuously and virtually executed from the beginning until the start step, and when the start step has been virtually executed a predetermined number of times, the interrupted machining is actually resumed from the start step. Ru.

(f) 発明の実施例 以下、図面に基づき、本発明の実施例を、具体
的に説明する。
(f) Embodiments of the invention Hereinafter, embodiments of the invention will be specifically described based on the drawings.

第1図は本発明による数値制御工作機械におけ
る加工再開制御方法が適用されたマシニングセン
タの制御ブロツク図、第2図は加工プログラムに
おけるメインプログラムと第1サブプログラム及
び第2サブプログラムの関係の一例を示す図、第
3図は第1図のマシニングセンタの表示制御盤を
示す正面図、第4図は加工再開制御プログラムの
一例を示すフローチヤートである。
Fig. 1 is a control block diagram of a machining center to which the machining restart control method for a numerically controlled machine tool according to the present invention is applied, and Fig. 2 shows an example of the relationship between the main program, the first subprogram, and the second subprogram in the machining program. 3 is a front view showing the display control panel of the machining center shown in FIG. 1, and FIG. 4 is a flowchart showing an example of a machining restart control program.

数値制御工作機械であるマシニングセンタ1
は、第1図に示すように、主制御部2を有してお
り、主制御部2にはバス線3を介してキーボード
5、デイスプレイ6、加工再開制御部7、加工プ
ログラムメモリ9、工具経路演算部10、機構動
作制御部11等が接続している。加工再開制御部
7には再開位置メモリ12、カウンタ13、加工
再開制御プログラムメモリ15が接続しており、
機構動作制御部11には、機構部16を構成する
主軸17、テーブル19、図示しないATC装置
等が機構動作制御部11により駆動制御自在に設
けられている。
Machining center 1, which is a numerically controlled machine tool
As shown in FIG. 1, it has a main control section 2, and the main control section 2 is connected via a bus line 3 to a keyboard 5, a display 6, a machining restart control section 7, a machining program memory 9, and a tool. A route calculation section 10, a mechanism operation control section 11, etc. are connected. A restart position memory 12, a counter 13, and a processing restart control program memory 15 are connected to the processing restart control section 7.
The mechanism operation control section 11 is provided with a main shaft 17, a table 19, an ATC device (not shown), etc., which constitute the mechanism section 16, and can be freely controlled by the mechanism operation control section 11.

マシニングセンタ1は、以上のような構成を有
するので、マシニングセンタ1による加工は、加
工プログラムメモリ9に格納された加工プログラ
ムPROに基づいて行われる。即ち、主制御部2
により加工プログラムメモリ9から読み出された
加工プログラムPROは工具経路演算部10に出
力され、工具経路演算部10で具体的な工具経路
PASSが演算されて機構動作制御部11に出力さ
れる。機構動作制御部11では工具経路演算部1
0で演算された工具経路PASSに基づいて主軸1
7、テーブル19等を駆動制御して加工プログラ
ムPROに対応した加工を実行してゆく。
Since the machining center 1 has the above configuration, machining by the machining center 1 is performed based on the machining program PRO stored in the machining program memory 9. That is, the main control section 2
The machining program PRO read out from the machining program memory 9 by
PASS is calculated and output to the mechanism operation control section 11. In the mechanism operation control section 11, the tool path calculation section 1
Spindle 1 based on the tool path PASS calculated at 0.
7. Driving and controlling the table 19 etc. to execute machining corresponding to the machining program PRO.

ところで、加工プログラムメモリ9中の加工プ
ログラムPROは、第2図に示すように、加工の
概要とも言うべきメインプログラムMPRと、当
該メインプログラムMPRによつて呼び出されて
実行されるサブルーチンとしての第1のサブプロ
グラムSUM1、更に第1のサブプログラムSUB
1によつて呼び出されて実行されるサブルーチン
としての第2のサブプログラムSUM2を有して
いる。メインプログラムMPR、サブプログラム
SUB1,SUB2の冒頭のステツプには、各プロ
グラム識別するためのプログラム番号PNOが付
されており、更に各プログラムの主要なステツプ
にはシーケンス番号SEQが付されている。従つ
て、プログラム番号PNOと当該プログラム番号
PNOに対応したプログラムにおけるシーケンス
番号SEQが分かれば、加工プログラムPRO中の
ステツプは1つに特定される。なお、加工プログ
ラムPRO中のステツプにはシーケンス番号SEQ
が付されていない場合もあるが、その場合は最寄
りのシーケンス番号SEQが付されたステツプか
ら何番目のステツプかをオフセツトステツプ数と
して指示することにより、加工プログラムPRO
中のあらゆるステツプの特定化が可能である。
By the way, the machining program PRO in the machining program memory 9, as shown in FIG. subprogram SUM1, and further the first subprogram SUB
It has a second subprogram SUM2 as a subroutine called and executed by SUM1. Main program MPR, subprogram
A program number PNO for identifying each program is attached to the first step of SUB1 and SUB2, and a sequence number SEQ is attached to the main step of each program. Therefore, the program number PNO and the program number
If the sequence number SEQ in the program corresponding to PNO is known, one step in the machining program PRO can be specified. Note that the steps in the machining program PRO have sequence numbers SEQ.
may not be attached, but in that case, by specifying the number of steps from the step with the nearest sequence number SEQ as the offset step number, the machining program PRO
It is possible to specify every step in the process.

第2図に示す加工プログラムPROの場合、そ
の実行は、まずメインプログラムMPRが読み出
されて、当該メインプログラムMPRの図中上方
のステツプから順次下方に向けて加工プログラム
PROが実行されてゆくが、その途中のステツプ、
即ちシーケンス番号SEQがN0500のステツプにお
いては、「M98P0100L03」なる指令が格納されて
いる。この指令はP0100なるプログラムを呼び出
して(呼び出し指令はM98)3回実行せよ(実行
指令はL03で、末尾の数字は当該呼び出したプロ
グラムの実行回数を表示する。)というものであ
り、これにより、主制御部2は加工プログラムメ
モリ9中のプログラム番号PNOがP0100なるプロ
グラムを第1のサブプログラムSUB1として呼
び出し、それを3回実行する。当該サブプログラ
ムSUB1のステツプにもシーケンス番号SEQが
N0125とN0175において別のプログラムを呼び出
す指令が有り、N0125においてはプログラム番号
PNOがP1000なるプログラムを第2サブプログラ
ムSUB2として呼び出し5回繰り返し実行し、
N0175においてはプログラム番号PNOがP1000な
る同じプログラムを第2サブプログラムSUB2
として呼び出し2回繰り返し実行せよとの指令で
ある。即ち、この加工プログラムPROを実行す
る際には、第1のサブプログラムSUB1は3回、
第2のサブプログラムSUB2は21回実行される
ことになる。
In the case of the machining program PRO shown in Fig. 2, its execution begins with reading out the main program MPR, and sequentially moving the machining program downward from the steps in the upper part of the main program MPR.
PRO is being executed, but the steps in the middle,
That is, in the step with sequence number SEQ N0500, the command "M98P0100L03" is stored. This command calls the program P0100 (the calling command is M98) and executes it three times (the execution command is L03, and the number at the end indicates the number of times the called program has been executed). The main control unit 2 calls the program whose program number PNO is P0100 in the machining program memory 9 as the first subprogram SUB1, and executes it three times. The sequence number SEQ is also included in the step of the subprogram SUB1.
There is a command to call another program in N0125 and N0175, and in N0125, the program number
Call the program whose PNO is P1000 as the second subprogram SUB2 and execute it repeatedly five times,
In N0175, the same program whose program number PNO is P1000 is used as the second subprogram SUB2.
This is a command to call and execute twice as follows. That is, when executing this machining program PRO, the first subprogram SUB1 is executed three times,
The second subprogram SUB2 will be executed 21 times.

この加工プログラムPROに基づく加工中に、
第2のサブプログラムSUB2を9回実行し、10
回目のシーケンス番号SEQがN0240のステツプの
ところで加工作業を中断し、次に当該10回目のサ
ブプログラムSUB2のN0240のステツプから加
工を再開しようとする場合、オペレータは、第3
図に示す、表示制御盤20に組み込まれたキーボ
ード5上の加工再開指示釦5aを押下して、加工
再開指令RSを主制御部2に出力すると共に、加
工を再開すべきプログラムのプログラム番号
PNO(この場合、P1000)と当該プログラム番号
PNOに対応したプログラムにおいて、加工を再
開すべきステツプに付されたシーケンス番号
SEQ(この場合、N0240)及び加工再開時の繰り
返し実行回数N(この場合、10)をテンキー等を
操作して入力する。なお、シーケンス番号SEQ
が付されていないステツプから加工を再開する場
合には、最寄りのシーケンス番号SEQが付され
たステツプからの何番目のステツプかをオフセツ
トステツプ数OSとして入力する。このように、
キーボード5から入力された各種の情報は、第3
図に示すように、表示制御盤20に組み込まれた
デイスプレイ6上に表示されると共に、加工再開
制御部7を介して再開位置メモリ12中に格納さ
れる。
During machining based on this machining program PRO,
Execute the second subprogram SUB2 9 times, 10
If the operator interrupts the machining operation at the step with the sequence number SEQ N0240 for the 10th time and then attempts to restart the machining from the step N0240 of the 10th subprogram SUB2, the operator
Press the machining restart instruction button 5a on the keyboard 5 built into the display control panel 20 shown in the figure to output the machining restart command RS to the main control unit 2 and the program number of the program for which machining should be restarted.
PNO (in this case, P1000) and the program number
Sequence number assigned to the step at which machining should be restarted in a program compatible with PNO
Enter SEQ (N0240 in this case) and the number of repetitions N (10 in this case) when restarting machining using the numeric keypad or the like. In addition, the sequence number SEQ
When restarting machining from a step that is not marked with a sequence number, enter the number of steps from the step with the nearest sequence number SEQ as the offset step number OS. in this way,
Various information entered from the keyboard 5 is stored in the third
As shown in the figure, it is displayed on a display 6 built into a display control panel 20, and is also stored in a restart position memory 12 via a machining restart control section 7.

一方、主制御部2は加工再開指令RSにより、
加工再開制御部7に加工再開制御プログラム
RMPに基づいて加工を所定のステツプから再開
するように指令する。加工再開制御部7は加工再
開制御プログラムメモリ15から加工再開制御プ
ログラムRMPを読み出しそれを実行するが、加
工再開制御プログラムRMPは、第4図に示すよ
うに、まずステツプS1でカウンタ13の値を0
にイニシヤライズし、次いで加工プログラム
PRO中のメインプログラムMPRをその最初のス
テツプから、通常の加工プログラムPROに基づ
く加工の場合と同様に、順次検索してゆき、ステ
ツプS2で現在読み出しているプログラムのプロ
グラム番号PNOと再開位置メモリ12中に格納
されたオペレータの指示による加工を再開すべき
プログラムのプログラム番号PNOが一致してい
るか否かを判定する。この場合、現在読み出して
いるプログラムのプログラム番号PNOはP0001で
オペレータの指示によるプログラム番号PNOは
P1000なので、両者は一致せず、ステツプS3に入
り当該ステツプを数値制御工作機械の内部でのみ
仮想的に処理する(即ち、実際に、主軸17やテ
ーブル19等の機構部16を駆動することなく、
機械内部で仮想的に実行する。)内部処理動作を
実行し、ステツプS4で次のステツプに入る。こ
うして、次々にメインプログラムMPRのステツ
プを実行してゆくうちにシーケンス番号N0500で
第1のサブプログラムSUB1を呼び出し、当該
サブプログラムSUB2を仮想的に実行する。サ
ブプログラムのシーケンス番号がN0125で更に第
2のサブプログラムSUB2を呼び出し、その仮
想的実行に入るが、サブプログラムSUB2では
そのプログラム番号PNOが再開位置メモリ12
内に格納されたプログラム番号PNOと一致する
ことから、ステツプS5に入り、今度は当該サブ
プログラムSUB2中においてシーケンス番号
SEQが再開位置メモリ12内のオペレータが指
示した加工を再開すべきシーケンス番号SEQと
一致しているか否かを判定する。両者が一致しな
い場合は、ステツプS3に入り、当該ステツプを
機械内部で仮想処理し、ステツプS4で次のステ
ツプにはいる。
On the other hand, the main control unit 2 receives the machining restart command RS.
A machining restart control program is sent to the machining restart control section 7.
A command is given to restart machining from a predetermined step based on the RMP. The machining resumption control section 7 reads the machining resumption control program RMP from the machining resumption control program memory 15 and executes it. As shown in FIG. 0
Initialize and then start the machining program.
The main program MPR in PRO is sequentially searched from its first step in the same way as machining based on the normal machining program PRO, and in step S2 the program number PNO of the program currently being read and the restart position memory 12 are searched. It is determined whether the program numbers PNO of the programs stored in the program for restarting machining according to the operator's instructions match. In this case, the program number PNO of the program currently being read is P0001, and the program number PNO specified by the operator is
P1000, so the two do not match, and the step goes to step S3, where the step is virtually processed only inside the numerically controlled machine tool (that is, without actually driving the mechanical parts 16 such as the spindle 17 and table 19). ,
Execute virtually inside the machine. ) Executes internal processing operations and enters the next step in step S4. In this way, while the steps of the main program MPR are executed one after another, the first subprogram SUB1 is called at sequence number N0500, and the subprogram SUB2 is virtually executed. The sequence number of the subprogram is N0125, and the second subprogram SUB2 is called and its virtual execution begins, but in the subprogram SUB2, its program number PNO is the restart position memory 12.
Since it matches the program number PNO stored in the subprogram SUB2, step S5 is entered and the sequence number PNO in the subprogram SUB2 is entered.
It is determined whether SEQ matches the sequence number SEQ in the restart position memory 12, which is specified by the operator and should restart machining. If the two do not match, the process goes to step S3, where the relevant step is virtually processed within the machine, and the process goes to the next step at step S4.

こうするうちに、加工プログラムPROの実行
はオペレータが加工の再開を指示したステツプで
あるシーケンス番号がN0240に達する。すると、
ステツプS5からステツプS6に入り、加工再開制
御部7はカウンタ13を1だけカウントアツプさ
せる。次に、ステツプS7でカウンタ13のカウ
ント値Tが再開位置メモリ12内の繰り返し実行
回数Nと一致したか否か、従つて、カウンタ13
によるカウント作業が完了したか否かを判定し、
一致していない場合には、再度ステツプS3に入
り当該ステツプの内部処理を行う。こうして、カ
ウンタ13のカウント値Tが再開位置メモリ12
内の繰り返し回数Nと一致するまでステツプS3
による内部処理が行わるが、カウント値Tが再開
位置メモリ12内の繰り返し実行回数Nと一致す
ると、当該ステツプが、オペレータが指示した加
工を再開すべきステツプとなる。より、具体的に
述べるなら、本実施例の場合は、メインプログラ
ムMPRのシーケンス番号N0500に指示されたプ
ログラム番号P0100のプログラムを1回完全に内
部処理し、更に2回目の実行に入り、サブプログ
ラムSUB1のシーケンス番号がN0125のステツ
プでの第2のサブプログラムSUB2を5回繰り
返す指示が出され、そこでサブプログラムSUB
2を2回完全に実行し、更に3回目の実行に入り
シーケンス番号がN0240に達したところで、カウ
ンタ13のカウント値Tが10となり、再開位置メ
モリ12の繰り返し実行回数Nと一致する。
In the meantime, the execution of the machining program PRO reaches sequence number N0240, which is the step at which the operator has instructed to restart machining. Then,
Step S6 is entered from step S5, and the machining restart control section 7 increments the counter 13 by one. Next, in step S7, it is determined whether or not the count value T of the counter 13 matches the number of repeated executions N in the restart position memory 12.
Determine whether the counting work by
If they do not match, the process returns to step S3 and performs the internal processing of that step. In this way, the count value T of the counter 13 is set to the restart position memory 12.
Step S3 until it matches the number of repetitions N in
When the count value T matches the number of repeated executions N in the restart position memory 12, this step becomes the step at which the machining instructed by the operator should be restarted. To be more specific, in the case of this embodiment, the program with program number P0100 instructed by sequence number N0500 of the main program MPR is completely internally processed once, and then the second execution is started, and the subprogram is An instruction is issued to repeat the second subprogram SUB2 at the step with the sequence number N0125 of SUB1 five times, and then the subprogram SUB
2 is completely executed twice, and when the third execution starts and the sequence number reaches N0240, the count value T of the counter 13 becomes 10, which matches the number of repeated executions N in the restart position memory 12.

そこで、ステツプS7において、カウンタ13
によるカウント作業の完了が判定され、加工再開
制御部7は直ちに、当該第2のサブプログラム
SUB2のオペレータが指定した所定のステツプ
から加工を再開する。なお、加工を再開すべきス
テツプに何らのシーケンス番号SEQも付されて
いない場合には、オペレータが入力したオフセツ
トステツプ数OSに基づいて最寄りのシーケンス
番号の付されたステツプから目的のステツプを検
索して求める。この場合も、カウンタ13がカウ
ントするのは当該オフセツトステツプ数OSの入
力の基準となつた最寄りのシーケンス番号の付さ
れたステツプでよい。
Therefore, in step S7, the counter 13
It is determined that the counting work has been completed, and the processing restart control unit 7 immediately starts the second subprogram.
Processing resumes from the predetermined step specified by the SUB2 operator. If no sequence number SEQ is attached to the step where machining should be resumed, the target step is searched from the steps with the nearest sequence number based on the offset step number OS input by the operator. and ask. In this case as well, what the counter 13 counts is the step with the nearest sequence number that served as the reference for inputting the offset step number OS.

加工の再開に際して、加工プログラムPROは
オペレータが指示した繰り返し実行回数Nに相当
する回数だけ加工を再開すべきプログラムを繰り
返し仮想的に実行しているので、数値制御工作機
械は加工の再開時には、加工の中断時と同じ加工
プログラムPROの実行状態になつており、直ち
に加工プログラムPROを実行して、加工が中断
された後の部分の加工プログラムPROを適正に
実行することが出来る。
When restarting machining, the machining program PRO repeatedly and virtually executes the program to restart machining a number of times equivalent to the number of repetitions N specified by the operator, so the numerically controlled machine tool The machining program PRO is in the same execution state as when the machining was interrupted, and it is possible to immediately execute the machining program PRO and properly execute the machining program PRO for the part after the machining was interrupted.

なお、上述の実施例は、加工プログラムPRO
がメインプログラムMPRと当該メインプログラ
ムMPRに呼び出される第1のサブプログラム
SUB1と更に第1のサブプログラムSUB1に呼
び出される第2のサブプログラムSUB2から構
成される場合について述べたが、本発明は加工プ
ログラムPROがどのようなサブルーチンの呼び
出し構成を取つていても適用が可能なことは勿論
である。
Note that the above embodiment is based on the machining program PRO.
is the main program MPR and the first subprogram called by the main program MPR
Although we have described the case where the machining program PRO is composed of SUB1 and the second subprogram SUB2 called by the first subprogram SUB1, the present invention is applicable no matter what kind of subroutine calling structure the machining program PRO has. Of course it is possible.

(g) 発明の効果 以上、説明したように、本発明によれば、加工
を再開すべきサブプログラムSUB1,SUB2の
プログラム番号PNO等のプログラム識別記号
(符号及び文字含む)と、開始ステツプの最寄り
のシーケンス番号SEQ等のステツプ識別記号
(符号及び文字含む)及び前記ステツプ識別記号
から当該開始ステツプまでのオフセツトステツプ
数OSと、前記開始ステツプの加工再開時までの
前記サブプログラムの繰り返し実行回数Nを格納
する再開位置メモリ12等のメモリを設け、加工
の再開に際して、開始ステツプのステツプ識別記
号が付されていない場合に、前記メモリに格納さ
れた前記サブプログラムのプログラム識別記号、
最寄りのステツプ識別記号及び前記オフセツトス
テツプ数から開始ステツプを指定し、該指定され
た開始ステツプを、前記メモリに格納された実行
回数に達するまで、加工プログラムをその最初か
ら連続的かつ仮想的に実行し、当該開始ステツプ
が所定回数仮想的に実行されたところで、中断し
ている加工を当該開始ステツプから実際に再開す
るようにしたので、加工の再開に際して、数値制
御工作機械にプログラムの識別記号、ステツプの
識別記号、更に繰り返し実行回数Nを指示するだ
けで、適正な繰り返し数の時点から加工プログラ
ムPROを直ちに実行することが可能となり、従
来のように、当該ステツプを加工再開すべき繰り
返し数に達するまで、オペレータが繰り返し検索
動作を指令するといつた繁雑な手間が不要となる
ばかりか、ミスの生じやすいプログラムの変更作
業もする必要が無いので、簡易で信頼性の高い数
値制御工作機械における加工再開制御方法の提供
が可能となり、さらに、加工プログラムPRO中
には、加工を再開すべきステツプに何らの開始ス
テツプのシーケンス番号SEQ等のステツプ識別
記号が付されていない場合もあるが、その場合
は、オペレータが最寄りのステツプ識別番号が付
されたステツプから何番目のステツプかをオフセ
ツトステツプ数OSとして指示することにより、
あらゆるステツプの特定化が可能となる。
(g) Effect of the Invention As explained above, according to the present invention, the program identification symbols (including codes and characters) such as the program number PNO of the subprograms SUB1 and SUB2 for which machining should be restarted, and the nearest start step. A step identification symbol (including codes and characters) such as the sequence number SEQ of the step, the number of offset steps OS from the step identification symbol to the start step, and the number of times N of repeated execution of the subprogram until processing is resumed at the start step. A memory such as a restart position memory 12 is provided to store a program identification symbol of the subprogram stored in the memory when the step identification symbol of the start step is not attached when machining is restarted.
A start step is specified from the nearest step identification symbol and the offset step number, and the specified start step is executed continuously and virtually from the beginning of the machining program until the number of executions stored in the memory is reached. When the start step has been virtually executed a predetermined number of times, the interrupted machining is actually restarted from the start step. , the identification symbol of the step, and the number of repetitions N, it is now possible to immediately execute the machining program PRO from the point at which the appropriate number of repetitions has been reached. Not only does the operator not have to go through the trouble of repeatedly instructing search operations until the desired value is reached, it also eliminates the need to change programs that are prone to errors, making it a simple and reliable method for numerically controlled machine tools. It is now possible to provide a machining restart control method, and in addition, in the machining program PRO, the step at which machining should be restarted may not have any step identification symbol such as the sequence number SEQ of the start step. In this case, the operator can specify the number of steps from the step with the nearest step identification number as the offset step number OS.
It becomes possible to specify every step.

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

第1図は本発明による数値制御工作機械におけ
る加工再開制御方法が適用されたマシニングセン
タの制御ブロツク図、第2図は加工プログラムに
おけるメインプログラムと第1サブプログラム及
び第2サブプログラムの関係の一例を示す図、第
3図は第1図のマシニングセンタの表示制御盤を
示す正面図、第4図は加工再開制御プログラムの
一例を示すフローチヤートである。 1…数値制御工作機械(マシニングセンタ)、
9…加工プログラムメモリ、12…メモリ(再開
位置メモリ)、N…実行回数、PNO…プログラム
の識別記号(プログラム番号)、SEQ…ステツプ
の識別記号(シーケンス番号)、MPR…プログラ
ム(メインプログラム)、SUB1,SUB2…プロ
グラム(サブプログラム)、PRO…加工プログラ
ム、OS…オフセツトステツプ数。
Fig. 1 is a control block diagram of a machining center to which the machining restart control method for a numerically controlled machine tool according to the present invention is applied, and Fig. 2 shows an example of the relationship between the main program, the first subprogram, and the second subprogram in the machining program. 3 is a front view showing the display control panel of the machining center shown in FIG. 1, and FIG. 4 is a flowchart showing an example of a machining restart control program. 1... Numerical control machine tool (machining center),
9...Machining program memory, 12...Memory (resume position memory), N...Number of executions, PNO...Program identification symbol (program number), SEQ...Step identification symbol (sequence number), MPR...Program (main program), SUB1, SUB2...Program (subprogram), PRO...Machining program, OS...Number of offset steps.

Claims (1)

【特許請求の範囲】 1 識別記号の付されたメインプログラム及びサ
ブプログラムから構成される加工プログラムを格
納する加工プログラムメモリを有し、当該サブプ
ログラム内の任意の開始ステツプからの加工を再
開させ実行する数値制御工作機械において、 加工を再開すべきサブプログラムのプログラム
識別記号と、開始ステツプの最寄りのステツプ識
別記号及び前記ステツプ識別記号から当該開始ス
テツプまでのオフセツトステツプ数と、前記開始
ステツプの加工再開時までの前記サブプログラム
の繰り返し実行回数を格納するメモリを設け、 加工の再開に際して、開始ステツプのステツプ
識別記号が付されていない場合に、前記メモリに
格納された前記サブプログラムのプログラム識別
記号、最寄りのステツプ識別記号及び前記オフセ
ツトステツプ数から開始ステツプを指定し、該指
定された開始ステツプを、前記メモリに格納され
た実行回数に達するまで、加工プログラムをその
最初から連続的かつ仮想的に実行し、当該開始ス
テツプが所定回数仮想的に実行されたところで、
中断している加工を当該開始ステツプから実際に
再開するようにして構成したこと数値制御工作機
械における加工再開制御方法。
[Scope of Claims] 1. It has a machining program memory that stores a machining program consisting of a main program and subprograms with identification symbols, and is capable of restarting and executing machining from any starting step in the subprogram. In a numerically controlled machine tool that performs machining, the program identification code of the subprogram for which machining is to be restarted, the step identification code closest to the start step, the number of offset steps from the step identification code to the start step, and the machining at the start step. A memory is provided to store the number of times the subprogram is repeatedly executed until restarting, and when the step identification symbol of the start step is not attached when machining is restarted, the program identification symbol of the subprogram stored in the memory is provided. , specify a start step from the nearest step identification symbol and the offset step number, and execute the machining program continuously and virtually from the beginning until the specified start step reaches the number of executions stored in the memory. and when the start step has been virtually executed a predetermined number of times,
A method for controlling restart of machining in a numerically controlled machine tool, wherein the interrupted machining is actually restarted from the start step.
JP11969584A 1984-06-11 1984-06-11 Working restart controlling method of numerically controlled machine tool Granted JPS60263209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11969584A JPS60263209A (en) 1984-06-11 1984-06-11 Working restart controlling method of numerically controlled machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11969584A JPS60263209A (en) 1984-06-11 1984-06-11 Working restart controlling method of numerically controlled machine tool

Publications (2)

Publication Number Publication Date
JPS60263209A JPS60263209A (en) 1985-12-26
JPH0542685B2 true JPH0542685B2 (en) 1993-06-29

Family

ID=14767774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11969584A Granted JPS60263209A (en) 1984-06-11 1984-06-11 Working restart controlling method of numerically controlled machine tool

Country Status (1)

Country Link
JP (1) JPS60263209A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6316303A (en) * 1986-07-09 1988-01-23 Mitsubishi Electric Corp Numerical controller
JPH02114302A (en) * 1988-10-24 1990-04-26 Fanuc Ltd Numerical control device
JPH02282805A (en) * 1989-04-25 1990-11-20 Okuma Mach Works Ltd Numerical controller for numerically controlled machine tool
EP0766154B1 (en) 1992-12-28 2000-03-29 Mitsubishi Denki Kabushiki Kaisha Numerically controlled machine tool and method
JP5673892B1 (en) * 2014-03-20 2015-02-18 株式会社安川電機 Iron making device, iron making method, control system, control method, weighing device and automatic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5870314A (en) * 1981-10-21 1983-04-26 Okuma Mach Works Ltd Sequence resetting system
JPS58186805A (en) * 1982-04-27 1983-10-31 Fanuc Ltd Restarting system for work of machine tool with numerical controller

Also Published As

Publication number Publication date
JPS60263209A (en) 1985-12-26

Similar Documents

Publication Publication Date Title
JPH0551419B2 (en)
US4714999A (en) Numerical control method
US4751652A (en) Numerical control drilling restart control system
JPH0542685B2 (en)
JP2743622B2 (en) Numerical control unit
JPS58171241A (en) Display control method for numerical controller
US4839817A (en) Numerically controlled apparatus including shunting controller
JP2676512B2 (en) Program restart method
JPS63143607A (en) Numerical controller
JPH0331909A (en) System for executing nc data
JPH02300801A (en) Numerical controller
JPH02151909A (en) Control device for industrial machine
EP0408761A1 (en) Method of safely operating a robot
JP3201822B2 (en) Numerical control unit
JP2677889B2 (en) Numerical control unit
JPS59192440A (en) Control device for resumption of nc processing
JPH05158517A (en) Numerical controller
JPS6089202A (en) Numerical control system
WO1991001519A1 (en) System for resuming program for automatic operation
JPH05162047A (en) Numerical controller
JPS6125748A (en) Determination of machining sequence in machining center
JPH01140304A (en) Interactive nc input device
JPS6373401A (en) Resetting system for auxiliary function of numerical controller
JPS6230082Y2 (en)
JPH0277904A (en) Nc data origination method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term