JPH08286717A - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH08286717A
JPH08286717A JP8584095A JP8584095A JPH08286717A JP H08286717 A JPH08286717 A JP H08286717A JP 8584095 A JP8584095 A JP 8584095A JP 8584095 A JP8584095 A JP 8584095A JP H08286717 A JPH08286717 A JP H08286717A
Authority
JP
Japan
Prior art keywords
sequence
program
sub
control
language
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.)
Granted
Application number
JP8584095A
Other languages
Japanese (ja)
Other versions
JP3460747B2 (en
Inventor
Takeshi Hioki
武 日置
Takeo Tejima
健夫 手嶋
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 JP08584095A priority Critical patent/JP3460747B2/en
Publication of JPH08286717A publication Critical patent/JPH08286717A/en
Application granted granted Critical
Publication of JP3460747B2 publication Critical patent/JP3460747B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To provide an NC(numerical control) device which can directly start a subsequence program on an NC program. CONSTITUTION: An NC device 101 has a PLC 102 including an NC language control part 3 which performs the automatic control of a machine tool on an NC control program stored in a storage part 4, a main sequence control part 5 which performs the sequence control of the machine tool based on the main sequence program stored in a storage part 6, and a subsequence control part 7 which performs the specific sequence control of the machine tool based on the subsequence program that is stored in a storage part 8 for the specific sequence control. Furthermore, a subsequence start management part 11 is added between the parts 3 and 7 to control the execution of the subsequence program. In such a constitution, the subsequence program is directly started based on an NC program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は数値制御(以下、NCと
いう)装置に関し、特に、NCプログラムからシーケン
スプログラムを効率的に処理できるNC装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control (hereinafter referred to as NC) device, and more particularly to an NC device capable of efficiently processing a sequence program from an NC program.

【0002】[0002]

【従来の技術】NC装置では、制御対象システムの複雑
化、機能の増大とともに加工プログラム、シーケンスプ
ログラムの複雑化と大規模の傾向がある一方、処理時間
の短縮(特にシーケンスプログラムの実行時間)とNC
プログラム、シーケンスプログラム作成の容易化が要請
されている。これを解決する方法として、シーケンスプ
ログラム全体をいくつかの動作要素に分割し、並列に動
作させる方法、シーケンスプログラムを所定ステップご
とに分割し、並列実行させる方法、シーケンスプログラ
ムを機能処理単位に分割し、予め設定された実行パター
ンで起動するもの(特開平2−150923号公報)、
シーケンスプログラムを機能処理単位に分割し、外部起
動信号により起動するもの(特開平1−28l503号
公報)、シーケンスプログラムを機能処理単位に分割
し、他のシーケンスプログラムより起動するもの(特開
昭62−90707号公報)がある。ここでは機能処理
単位に分割されたシーケンスプログラムをサブシーケン
スプログラムと呼ぶ。
2. Description of the Related Art NC devices tend to be large-scale with the complexity of control target systems and the increase of functions as well as the complexity of machining programs and sequence programs, while shortening the processing time (especially the execution time of sequence programs). NC
There is a demand for facilitating the creation of programs and sequence programs. As a method of solving this, the whole sequence program is divided into several operation elements and operated in parallel, the sequence program is divided into predetermined steps and executed in parallel, and the sequence program is divided into functional processing units. , Which starts with a preset execution pattern (JP-A-2-150923),
One in which a sequence program is divided into functional processing units and activated by an external activation signal (Japanese Patent Laid-Open No. 1-281503), one in which a sequence program is divided into functional processing units and activated by another sequence program (Japanese Patent Laid-Open No. 62-62150). -90707). Here, a sequence program divided into functional processing units is called a sub-sequence program.

【0003】図5はNC装置の全体ブロック図である。
PLC(プログラマブル・ロジック・コントローラ)2
はNC装置1に内蔵されている。NC言語制御部3は、
記憶部4に格納されたNC言語で記述されたNCプログ
ラムを解読し、NCプログラムに従い自動制御を行う。
メインシーケンス制御部5は、記憶部6に格納されたシ
ーケンス言語で記述されたメインシーケンスプログラム
に従い、入出力信号を書き換えていく。メインシーケン
スプログラムは、常に実行するプログラムで、例えば機
械のスイッチ入力やアラームの監視、インターロック処
理等を行う。サブシーケンス制御部7は、記憶部8に格
納されたシーケンス言語で記述されたサブシーケンスプ
ログラムに従い入出力信号を書き換えていく。サブシー
ケンスプログラムは特定の機能、例えばパレット交換や
工具交換、ギア切り替え等の動作をそれぞれ行うための
プログラムである。インターフェイス(以下、I/Fと
いう)9はNC言語制御部3とメインシーケンス制御部
5とのインターフェイス、I/F10は、メインシーケ
ンス制御部5とサブシーケンス制御部7とのインターフ
ェイス、機械入出力I/F12はメインシーケンス制御
部5及びサブシーケンス制御部7と機械側とのインター
フェイスである。図5においては、サーボモータ等を制
御する駆動制御部は省略してある。
FIG. 5 is an overall block diagram of the NC device.
PLC (Programmable Logic Controller) 2
Are built into the NC device 1. The NC language control unit 3
The NC program written in the NC language stored in the storage unit 4 is decoded, and automatic control is performed according to the NC program.
The main sequence control unit 5 rewrites the input / output signals according to the main sequence program stored in the storage unit 6 and written in the sequence language. The main sequence program is a program that is always executed, and performs, for example, switch input of a machine, monitoring of alarms, interlock processing, and the like. The sub-sequence control unit 7 rewrites the input / output signals according to the sub-sequence program stored in the storage unit 8 and described in the sequence language. The sub-sequence program is a program for performing a specific function such as pallet exchange, tool exchange, and gear change. An interface (hereinafter referred to as I / F) 9 is an interface between the NC language control unit 3 and the main sequence control unit 5, an I / F 10 is an interface between the main sequence control unit 5 and the sub sequence control unit 7, and a machine input / output I / F12 is an interface between the main sequence controller 5 and the sub-sequence controller 7 and the machine side. In FIG. 5, the drive control unit that controls the servo motor and the like is omitted.

【0004】従来のNC装置の動作について説明する。
自動運転時、NC言語制御部3は記憶部4に格納された
NC言語で記述されたNCプログラムを逐次実行する。
NCプログラム実行時にNC言語制御部3がI/F9を
介してM、S、T等の補助指令を出力すると、メインシ
ーケンス制御部5は記憶部6に格納されたシーケンス言
語で記述されたメインシーケンスプログラムによって補
助指令を判別し、I/F10を介して対応したサブシー
ケンスプログラムを起動する。I/F10を介してサブ
シーケンスプログラムが起動されるとサブシーケンス制
御部7は記憶部8に格納されているシーケンス言語で記
述されたサブシーケンスプログラムを実行する。サブシ
ーケンスプログラムの実行結果がI/FI0を介してメ
インシーケンス制御部5に返されると、メインシーケン
ス制御部5はその結果に基づいて次の処理へ移り、メイ
ンシーケンスプログラムの実行結果がI/F9を介して
NC言語制御部3に返されるとNC言語制御部3はその
結果に基づいて次の処理へ移る。
The operation of the conventional NC device will be described.
During automatic operation, the NC language control unit 3 sequentially executes the NC programs stored in the storage unit 4 and written in the NC language.
When the NC language control unit 3 outputs auxiliary commands such as M, S, and T via the I / F 9 during execution of the NC program, the main sequence control unit 5 causes the main sequence described in the sequence language stored in the storage unit 6 to be described. The auxiliary command is discriminated by the program, and the corresponding sub sequence program is started via the I / F 10. When the sub-sequence program is activated via the I / F 10, the sub-sequence control unit 7 executes the sub-sequence program stored in the storage unit 8 and described in the sequence language. When the execution result of the sub sequence program is returned to the main sequence control unit 5 via I / FI0, the main sequence control unit 5 moves to the next process based on the result, and the execution result of the main sequence program is I / F9. When it is returned to the NC language control unit 3 via, the NC language control unit 3 moves to the next process based on the result.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、シーケ
ンス言語で記述されたサブシーケンスプログラムは、N
Cプログラムからの指示により動作するものが多いのに
もかかわらず、従来のNC装置は、以上の構成を有して
いるため、NCプログラムからサブシーケンスプログラ
ムを直接起動させることはできない。すなわち、NCプ
ログラムからM、S、T等の補助指令を出力し、この指
令をメインシーケンスプログラムが検知し、サブシーケ
ンスプログラムを起動させている。このため、NCプロ
グラムからサブシーケンスプログラムを起動した場合の
レスポンスタイムはメインシーケンスプログラムの構造
に依存し、また、メインシーケンスプログラムが複雑、
増大し、スキャンタイムが増大するという問題があっ
た。
However, the sub-sequence program written in the sequence language is N
Although many conventional NC devices operate according to instructions from the C program, the NC program cannot directly activate the sub-sequence program because of the above configuration. That is, auxiliary commands such as M, S, and T are output from the NC program, and the main sequence program detects these commands and activates the sub sequence program. Therefore, the response time when the sub sequence program is started from the NC program depends on the structure of the main sequence program, and the main sequence program is complicated.
However, there is a problem in that the scan time increases as well as the scan time.

【0006】なお、シーケンス言語で記述されたサブシ
ーケンスプログラムは機械信号の入出力や複雑な信号制
御を高速に行うことができるが、同様のことをNCプロ
グラムで実行しようとすると、プログラムが複雑にな
り、また、実行に時間がかかってしまうので現実的では
ない。
The sub-sequence program described in the sequence language can perform input / output of machine signals and complicated signal control at high speed, but if the same is attempted by the NC program, the program becomes complicated. It is also unrealistic because it takes time to execute.

【0007】本発明は上記問題点を解消するためになさ
れたもので、NCプログラムからサブシーケンスプログ
ラムを直接起動することができるNC装置を提供するこ
とを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide an NC device capable of directly activating a sub-sequence program from an NC program.

【0008】[0008]

【課題を解決するための手段】以上の目的を達成するた
めに、本発明に係る数値制御装置は、数値制御言語で記
述された数値制御プログラムを記憶する第1の記憶手段
と、前記第1の記憶手段に記憶された数値制御プログラ
ムを読み出し、解析、演算を行うことにより工作機械の
自動制御を行う数値制御言語制御手段と、シーケンス言
語で記述されたシーケンスプログラムを記憶する第2の
記憶手段と、前記第2の記憶手段に記憶されたシーケン
スプログラムにより前記工作機械のシーケンス制御を行
うシーケンス制御手段と、シーケンス言語で記述された
特定のシーケンス制御を行うためのサブシーケンスプロ
グラムを記憶する第3の記憶手段と、前記シーケンス言
語で記述されたサブシーケンスプログラムにより前記工
作機械の特定のシーケンス制御を行うサブシーケンス制
御手段を備えた数値制御装置において、前記数値制御言
語制御手段と前記サブシーケンス制御手段との間にシー
ケンス言語で記述されたサブシーケンスプログラムの実
行を制御するサブシーケンス起動管理手段を有すること
を特徴とする。
In order to achieve the above object, a numerical control device according to the present invention comprises a first storage means for storing a numerical control program written in a numerical control language, and the first storage means. Numerical control language control means for automatically controlling the machine tool by reading out the numerical control program stored in the storage means for analysis, calculation, and second storage means for storing the sequence program described in the sequence language. And a sequence control means for controlling the sequence of the machine tool by the sequence program stored in the second storage means, and a third sequence storing a sub-sequence program for performing a specific sequence control described in a sequence language. Memory means and a sub-sequence program written in the sequence language to specify a specific system of the machine tool. In a numerical controller provided with a sub-sequence control means for controlling a sequence, a sub-sequence activation management for controlling execution of a sub-sequence program written in a sequence language between the numerical control language control means and the sub-sequence control means. It is characterized by having means.

【0009】[0009]

【作用】上記構成を有する本発明に係るNC装置は、N
C言語制御手段が第1の記憶手段に記憶されているNC
プログラムを実行し、シーケンス制御手段が第2の記憶
手段に記憶されているシーケンスプログラムを実行し、
さらにまたサブシーケンス制御手段が第3の記憶手段に
記憶されているサブシーケンスプログラムを実行する。
このとき、前記NC言語制御手段と前記サブシーケンス
制御手段との間のサブシーケンス起動管理手段は、前記
NC言語制御手段に前記サブシーケンス制御手段を制御
し、サブシーケンスプログラムの実行を制御できるよう
にしたので、NCプログラムからサブシーケンスプログ
ラムを直接起動することができる。
The NC device according to the present invention having the above structure is
NC in which C language control means is stored in the first storage means
Executing the program, the sequence control means executes the sequence program stored in the second storage means,
Furthermore, the sub-sequence control means executes the sub-sequence program stored in the third storage means.
At this time, the sub-sequence activation management means between the NC language control means and the sub-sequence control means controls the sub-sequence control means by the NC language control means so that the execution of the sub-sequence program can be controlled. Therefore, the sub-sequence program can be directly activated from the NC program.

【0010】[0010]

【実施例】実施例1. 以下、本発明に係るNC装置の第1実施例を
図面に基づいて説明する。
EXAMPLES Example 1. Hereinafter, a first embodiment of an NC device according to the present invention will be described with reference to the drawings.

【0011】図1は本実施例におけるNC装置のブロッ
ク図である。なお、図1において従来例を示した図5と
同様の機能を果たす部分については同一の符号を付け
る。本実施例におけるNC装置101は、PLC102
と、数値制御言語で記述された数値制御プログラムを記
憶する第1の記憶手段としての記憶部4と、記憶部4に
記憶された数値制御プログラムを読み出し、解析、演算
を行うことにより工作機械の自動制御を行う数値制御言
語制御手段としてのNC言語制御部3とを有している。
PLC102は、シーケンス言語で記述されたメインシ
ーケンスプログラムを記憶する第2の記憶手段としての
記憶部6と、記憶部6に記憶されたメインシーケンスプ
ログラムにより前記工作機械のシーケンス制御を行うシ
ーケンス制御手段としてのメインシーケンス制御部5
と、シーケンス言語で記述された特定のシーケンス制御
を行うためのサブシーケンスプログラムを記憶する第3
の記憶手段としての記憶部8と、シーケンス言語で記述
されたサブシーケンスプログラムにより前記工作機械の
特定のシーケンス制御を行うサブシーケンス制御手段と
してのサブシーケンス制御部7とを有している。なお、
記憶部6及びメインシーケンス制御部5で取り扱うシー
ケンスプログラムは、必ずしもメインシーケンスプログ
ラムでなくてもよいが、サブシーケンスプログラムとの
差異を明確にするために、ここではメインシーケンスプ
ログラムとする。
FIG. 1 is a block diagram of an NC device according to this embodiment. It should be noted that in FIG. 1, the same reference numerals are given to portions that perform the same functions as in FIG. 5 showing the conventional example. The NC device 101 in the present embodiment is the PLC 102.
And a storage unit 4 as a first storage unit for storing a numerical control program written in a numerical control language, and a numerical control program stored in the storage unit 4 is read out, analyzed, and calculated to realize a machine tool It has an NC language control unit 3 as a numerical control language control means for performing automatic control.
The PLC 102 is a storage unit 6 as a second storage unit that stores a main sequence program described in a sequence language, and a sequence control unit that controls the sequence of the machine tool by the main sequence program stored in the storage unit 6. Main sequence controller 5
And a sub-sequence program for performing a specific sequence control described in a sequence language.
And a sub-sequence control section 7 as sub-sequence control means for performing a specific sequence control of the machine tool by a sub-sequence program described in a sequence language. In addition,
The sequence program handled by the storage unit 6 and the main sequence control unit 5 does not necessarily have to be the main sequence program, but in order to clarify the difference from the sub sequence program, the main sequence program is used here.

【0012】本実施例において特徴的なことは、上記構
成に加えて更に、NC言語制御部3とPLC102に内
蔵されたサブシーケンス制御部7との間にシーケンス言
語で記述されたサブシーケンスプログラムの実行を制御
するサブシーケンス起動管理手段としてのサブシーケン
ス起動管理部11を設けたことであり、これにより、N
Cプログラムからサブシーケンスプログラムを直接起動
させることをできるようにしたことである。つまり、N
C言語制御部3は、サブシーケンス起動管理部11を介
してサブシーケンス制御部7を制御することになる。
A characteristic of this embodiment is that, in addition to the above configuration, a sub-sequence program written in a sequence language is provided between the NC language control unit 3 and the sub-sequence control unit 7 built in the PLC 102. The sub-sequence activation management unit 11 is provided as a sub-sequence activation management means for controlling execution.
That is, the sub-sequence program can be directly activated from the C program. That is, N
The C language control unit 3 controls the sub sequence control unit 7 via the sub sequence activation management unit 11.

【0013】以下、本実施例によるNC装置の動作につ
いて説明する。自動運転時、NC言語制御部3は記憶部
4に格納されたNCプログラムを逐次実行する。NCプ
ログラム中にサブシーケンスプログラムの制御命令があ
るとNC言語制御部3はサブシーケンス起動管理部11
に対し指令を出し、サブシーケンス起動管理部11がサ
ブシーケンス制御部7を制御し、サブシーケンスプログ
ラムの実行を制御する。
The operation of the NC device according to this embodiment will be described below. During automatic operation, the NC language control unit 3 sequentially executes the NC programs stored in the storage unit 4. When there is a control command for the sub sequence program in the NC program, the NC language control unit 3 causes the sub sequence activation management unit 11 to operate.
The sub-sequence activation management unit 11 controls the sub-sequence control unit 7 to control the execution of the sub-sequence program.

【0014】次に、サブシーケンスプログラムの制御命
令について図2を用いて説明する。NCプログラム21
を実行中、機能処理呼び出し命令22があると、指定さ
れたサブシーケンスプログラム(SQ001)23が起
動される。サブシーケンスプログラム(SQ001)2
3を逐次実行し、サブシーケンスプログラム終了命令
(SQFN)24が実行されると、サブシーケンスプロ
グラム(SQ001)23の実行を終了し、サブシーケ
ンスプログラム(SQ001)23が終了するとともに
NCプログラム21の機能処理呼び出し命令22が完了
し、次ブロック以降を実行する。
Next, the control command of the sub-sequence program will be described with reference to FIG. NC program 21
When the function processing call instruction 22 is issued during execution of the above, the designated sub sequence program (SQ001) 23 is activated. Sub-sequence program (SQ001) 2
3 are sequentially executed and the sub sequence program end instruction (SQFN) 24 is executed, the execution of the sub sequence program (SQ001) 23 is ended, the sub sequence program (SQ001) 23 is ended, and the function of the NC program 21 is executed. The processing call instruction 22 is completed, and the subsequent blocks are executed.

【0015】このようにして、NC言語制御部3は、メ
イシーケンスプログラムを起動することなくサブシーケ
ンス起動管理部11を介して該当するサブシーケンスプ
ログラムを直接起動できるようにしたので、NCプログ
ラムからサブシーケンスプログラムを起動した場合のレ
スポンスが向上する。また、メインシーケンスプログラ
ムにNC言語制御部3からの指令を判別しサブシーケン
スプログラムを起動するためのプログラムが不要とな
り、メインシーケンスプログラムを単純化することがで
きる。
In this way, the NC language control unit 3 can directly activate the corresponding sub sequence program via the sub sequence activation management unit 11 without activating the May sequence program. The response when the sequence program is started is improved. In addition, a program for determining a command from the NC language control unit 3 in the main sequence program and activating the sub sequence program is unnecessary, and the main sequence program can be simplified.

【0016】実施例2.上記第1実施例においては、サ
ブシーケンスプログラム(SQ001)23は、NCプ
ログラム21からサブルーチン的に呼び出され、サブシ
ーケンスプログラム(SQ001)23の実行中はNC
プログラム21の実行は中断されているが、本実施例に
おいては、NCプログラムに機能処理起動命令、機能処
理停止命令を別途設けて制御することを特徴としてい
る。
Example 2. In the first embodiment described above, the sub-sequence program (SQ001) 23 is called from the NC program 21 in a subroutine manner, and the NC is executed while the sub-sequence program (SQ001) 23 is being executed.
Although the execution of the program 21 is suspended, the present embodiment is characterized in that the NC program is separately provided with a function process start command and a function process stop command for control.

【0017】この場合の例について図3を用いて説明す
る。NCプログラム31を実行中、機能処理起動命令
(図3における「SQS」)32があると、サブシーケ
ンス起動管理部11が管理するサブシーケンスプログラ
ム実行制御テーブル34上の指定されたサブシーケンス
プログラム(SQ002)35用のフラグがオンされ
る。機能処理起動命令32が完了すると、NCプログラ
ム31は中断されずに次ブロック以降を順次実行する。
サブシーケンスプログラム(SQ002)35は、サブ
シーケンスプログラム実行制御テーブル34上のサブシ
ーケンスプログラム(SQ002)35用のフラグがオ
ンされている間繰り返し実行される。
An example of this case will be described with reference to FIG. When there is a functional process activation command (“SQS” in FIG. 3) 32 during execution of the NC program 31, a designated sub-sequence program (SQ002) on the sub-sequence program execution control table 34 managed by the sub-sequence activation management unit 11 is detected. ) The flag for 35 is turned on. When the function processing start instruction 32 is completed, the NC program 31 is not interrupted and sequentially executes subsequent blocks.
The sub sequence program (SQ002) 35 is repeatedly executed while the flag for the sub sequence program (SQ002) 35 on the sub sequence program execution control table 34 is turned on.

【0018】NCプログラム31を実行中、機能処理停
止命令(図3における「SQE」)33があると、サブ
シーケンスプログラム実行制御テーブル34上の指定さ
れたサブシーケンスプログラム(SQ002)35用の
フラグがオフされる。機能処理停止命令33は、サブシ
ーケンスプログラム実行制御テーブル34のフラグ操作
とともに完了し、NCプログラム31は、機能処理停止
命令33で中断することなく次ブロック以降を順次実行
する。当該フラグがオフされることにより、サブシーケ
ンスプログラム(SQ002)35の実行は停止する。
If there is a functional process stop command ("SQE" in FIG. 3) 33 during execution of the NC program 31, the flag for the designated sub sequence program (SQ002) 35 on the sub sequence program execution control table 34 is changed. Turned off. The functional processing stop instruction 33 is completed together with the flag operation of the sub-sequence program execution control table 34, and the NC program 31 sequentially executes the subsequent blocks and thereafter without interruption by the functional processing stop instruction 33. The execution of the sub-sequence program (SQ002) 35 is stopped by turning off the flag.

【0019】本実施例によれば、NCプログラムとサブ
シーケンスプログラムとが並列に実行することができ
る。また、NCプログラムから複数のサブシーケンスプ
ログラムを同時に起動することができる。
According to this embodiment, the NC program and the sub-sequence program can be executed in parallel. Also, a plurality of sub-sequence programs can be started simultaneously from the NC program.

【0020】実施例3.上記第1実施例においては、N
Cプログラムに機能処理呼び出し命令を設け、また、サ
ブシーケンスプログラムを直接指定してサブシーケンス
プログラムを起動したが、本実施例においては、機能処
理呼び出し命令を設ける代わりにM、S、T等の補助指
令とサブシーケンスプログラムとを対応づけるテーブル
を設け、補助指令実行時に対応するサブシーケンスプロ
グラムを起動することを特徴としている。
Example 3. In the first embodiment, N
Although the C program is provided with the function processing call instruction, and the sub sequence program is directly specified to activate the sub sequence program, in the present embodiment, instead of providing the function processing call instruction, auxiliary functions such as M, S, and T are provided. It is characterized in that a table for associating a command with a sub-sequence program is provided, and the corresponding sub-sequence program is activated when the auxiliary command is executed.

【0021】この場合の例について図4を用いて説明す
る。NCプログラム41を実行中、補助指令(図4にお
ける「M10」)42があると、サブシーケンス起動管
理部11が管理する予め作成されたサブシーケンスプロ
グラム登録テーブル43により対応づけられたサブシー
ケンスプログラム(SQ003)44が起動される。な
お、起動された後の動作は第1実施例と同様なので説明
は省略する。
An example of this case will be described with reference to FIG. When an auxiliary command (“M10” in FIG. 4) 42 is present during execution of the NC program 41, a sub-sequence program (a “M10” in FIG. 4) associated with a sub-sequence program registration table 43 managed in advance by the sub-sequence activation management unit 11 ( SQ003) 44 is activated. The operation after being activated is the same as that of the first embodiment, and thus the description thereof is omitted.

【0022】本実施例によれば、NCプログラムではサ
ブシーケンスプログラムを起動するということを特に意
識する必要がなく、従来のNC装置と同様のNCプログ
ラムを使用することができる。
According to the present embodiment, it is not necessary to pay attention to the fact that the sub-sequence program is activated in the NC program, and the NC program similar to the conventional NC device can be used.

【0023】[0023]

【発明の効果】以上のように、本発明によれば、NC言
語制御手段とサブシーケンス制御手段との間にサブシー
ケンス起動管理手段を設け、NC言語制御手段からサブ
シーケンス制御手段を制御することでNCプログラムか
らサブシーケンスプログラムを直接起動させるようにし
たので、NCプログラムからサブシーケンスプログラム
を起動した場合のレスポンスを向上させることが可能と
なる。
As described above, according to the present invention, the sub-sequence activation management means is provided between the NC language control means and the sub-sequence control means, and the sub-sequence control means is controlled by the NC language control means. Since the sub-sequence program is activated directly from the NC program, the response when the sub-sequence program is activated from the NC program can be improved.

【0024】また、NC言語制御手段からの指令を判別
しサブシーケンスプログラムを起動するためのシーケン
スプログラムあるいはシーケンスプログラム内の当該処
理が不要となるので、第2の記憶手段に記憶されたシー
ケンスプログラムを単純化することが可能となる。
Further, since the sequence program for discriminating the command from the NC language control means and activating the sub-sequence program or the processing in the sequence program is not required, the sequence program stored in the second storage means is not required. It is possible to simplify.

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

【図1】 本発明に係るNC装置の第1実施例を示した
全体ブロック図である。
FIG. 1 is an overall block diagram showing a first embodiment of an NC device according to the present invention.

【図2】 第1実施例において実行されるNCプログラ
ムとそのNCプログラムから呼び出されるサブシーケン
スプログラムとの関係を示した図である。
FIG. 2 is a diagram showing a relationship between an NC program executed in the first embodiment and a sub-sequence program called from the NC program.

【図3】 本発明に係るNC装置の第2実施例におい
て、実行されるNCプログラムとそのNCプログラムか
ら呼び出されるサブシーケンスプログラムとの関係を示
した図である。
FIG. 3 is a diagram showing a relationship between an NC program executed and a sub-sequence program called from the NC program in the second embodiment of the NC device according to the present invention.

【図4】 本発明に係るNC装置の第3実施例におい
て、実行されるNCプログラムとそのNCプログラムか
ら呼び出されるサブシーケンスプログラムとの関係を示
した図である。
FIG. 4 is a diagram showing a relationship between an NC program executed and a sub-sequence program called from the NC program in the NC device according to the third embodiment of the present invention.

【図5】 従来のNC装置の全体ブロック図である。FIG. 5 is an overall block diagram of a conventional NC device.

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

1、101 NC装置、2、102 PLC(プログラ
マブル・ロジック・コントローラ)、3 NC言語制御
部、4、6、8、 記憶部、5 メインシーケンス制御
部、7 サブシーケンス制御部、9、10 I/F、1
1 サブシーケンス起動管理部、12 機械入出力I/
F、21、31、41 NCプログラム、22 機能処
理呼び出し命令、23 サブシーケンスプログラム(S
Q001)、24 サブシーケンスプログラム終了命
令、32 機能処理起動命令、33機能処理停止命令、
34 サブシーケンスプログラム実行制御テーブル、3
5サブシーケンスプログラム(SQ002)、42 補
助指令、43 サブシーケンスプログラム登録テーブ
ル、44 サブシーケンスプログラム(SQ003)。
1, 101 NC device, 2, 102 PLC (programmable logic controller), 3 NC language control unit, 4, 6, 8, storage unit, 5 main sequence control unit, 7 sub-sequence control unit, 9, 10 I / F, 1
1 Sub-sequence activation management unit, 12 Machine input / output I /
F, 21, 31, 41 NC program, 22 function processing call instruction, 23 sub-sequence program (S
Q001), 24 sub-sequence program end instruction, 32 functional processing start instruction, 33 functional processing stop instruction,
34 Sub-sequence program execution control table, 3
5 sub-sequence programs (SQ002), 42 auxiliary commands, 43 sub-sequence program registration tables, 44 sub-sequence programs (SQ003).

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 数値制御言語で記述された数値制御プロ
グラムを記憶する第1の記憶手段と、 前記第1の記憶手段に記憶された数値制御プログラムを
読み出し、解析、演算を行うことにより工作機械の自動
制御を行う数値制御言語制御手段と、 シーケンス言語で記述されたシーケンスプログラムを記
憶する第2の記憶手段と、 前記第2の記憶手段に記憶されたシーケンスプログラム
により前記工作機械のシーケンス制御を行うシーケンス
制御手段と、 シーケンス言語で記述された特定のシーケンス制御を行
うためのサブシーケンスプログラムを記憶する第3の記
憶手段と、 前記シーケンス言語で記述されたサブシーケンスプログ
ラムにより前記工作機械の特定のシーケンス制御を行う
サブシーケンス制御手段を備えた数値制御装置におい
て、 前記数値制御言語制御手段と前記サブシーケンス制御手
段との間にシーケンス言語で記述されたサブシーケンス
プログラムの実行を制御するサブシーケンス起動管理手
段を有することを特徴とする数値制御装置。
1. A first storage means for storing a numerical control program written in a numerical control language, and a machine tool by reading the numerical control program stored in the first storage means, performing analysis and calculation. A numerical control language control means for automatically controlling the machine tool, a second storage means for storing a sequence program written in a sequence language, and a sequence control for the machine tool by a sequence program stored in the second storage means. Sequence control means for performing, a third storage means for storing a sub-sequence program for performing a specific sequence control described in a sequence language, and a specific sequence of the machine tool by the sub-sequence program described in the sequence language In a numerical controller provided with a sub-sequence control means for performing sequence control Numerical control apparatus characterized by having a sub-sequence start management means for controlling the execution of the sub sequence program written in a sequence language between the sub-sequence control unit and the numerical control language control means.
JP08584095A 1995-04-12 1995-04-12 Numerical control unit Expired - Fee Related JP3460747B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08584095A JP3460747B2 (en) 1995-04-12 1995-04-12 Numerical control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08584095A JP3460747B2 (en) 1995-04-12 1995-04-12 Numerical control unit

Publications (2)

Publication Number Publication Date
JPH08286717A true JPH08286717A (en) 1996-11-01
JP3460747B2 JP3460747B2 (en) 2003-10-27

Family

ID=13870067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08584095A Expired - Fee Related JP3460747B2 (en) 1995-04-12 1995-04-12 Numerical control unit

Country Status (1)

Country Link
JP (1) JP3460747B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997049012A1 (en) * 1996-06-17 1997-12-24 Fanuc Ltd Numerical controller
US7010368B2 (en) 2002-01-10 2006-03-07 Omron Corporation Programmable controller unit and method of processing user program
JP2019200644A (en) * 2018-05-17 2019-11-21 ファナック株式会社 Control device, control method, and control program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997049012A1 (en) * 1996-06-17 1997-12-24 Fanuc Ltd Numerical controller
US5986425A (en) * 1996-06-17 1999-11-16 Fanuc Ltd. Numerical controller
US7010368B2 (en) 2002-01-10 2006-03-07 Omron Corporation Programmable controller unit and method of processing user program
CN100403193C (en) * 2002-01-10 2008-07-16 欧姆龙株式会社 Unit and programmbale controller and processing method of subscriber program
JP2019200644A (en) * 2018-05-17 2019-11-21 ファナック株式会社 Control device, control method, and control program
US11650571B2 (en) 2018-05-17 2023-05-16 Fanuc Corporation Control device, control method, and control program for executing a machining program using flag indications

Also Published As

Publication number Publication date
JP3460747B2 (en) 2003-10-27

Similar Documents

Publication Publication Date Title
US6290403B1 (en) Sequence program execution control system
US5298843A (en) Method for restarting punch press machine and numerical controller
JP2007226383A (en) Numerical controller
JP2735209B2 (en) Numerical control unit
US5581759A (en) Apparatus and method for controlling a system process
JPH08286717A (en) Numerical control device
JP6748146B2 (en) Control device, control method, and control program
JP3099393B2 (en) Numerical control unit of laser beam machine
JPH01194003A (en) Control system for pc device
Carter Computer numerical control software
JPH0969007A (en) Multi-robot reproduction control system
JPH08286712A (en) Editing system for sequence program
JP2005182581A (en) Servo control device and servo control switching method
JPS63250705A (en) Numerical controller
JPH1133878A (en) Processing schedule control method of numerically controlled machine tool, nc device, and recording medium for processing schedule controlling program of numerically controlled machine tool
JP2002132316A (en) Numerical controller and its software incorporated system
JPH0314105A (en) Re-forward motion method for numerical controller
JP3013619B2 (en) Programmable controller
JPH11134010A (en) Program executing method of programmable controller
JPH1195825A (en) Method for executing numerical control program
KR100521857B1 (en) Unmanned machining control method of machine tool
JP3018790B2 (en) Programmable controller
JPH07121226A (en) Robot controller
JPH11202913A (en) Controller for pmc
JPH0553615A (en) Programmable controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070815

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20080815

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20080815

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090815

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20090815

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100815

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20110815

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20120815

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20120815

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130815

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees