JP2004192432A - Control system - Google Patents

Control system Download PDF

Info

Publication number
JP2004192432A
JP2004192432A JP2002360947A JP2002360947A JP2004192432A JP 2004192432 A JP2004192432 A JP 2004192432A JP 2002360947 A JP2002360947 A JP 2002360947A JP 2002360947 A JP2002360947 A JP 2002360947A JP 2004192432 A JP2004192432 A JP 2004192432A
Authority
JP
Japan
Prior art keywords
instruction
slave station
execution
invalid
control system
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
JP2002360947A
Other languages
Japanese (ja)
Other versions
JP4089415B2 (en
Inventor
Kazuyuki Yoshida
收志 吉田
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.)
Fuji Electric FA Components and Systems Co Ltd
Original Assignee
Fuji Electric FA Components and Systems Co Ltd
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 Fuji Electric FA Components and Systems Co Ltd filed Critical Fuji Electric FA Components and Systems Co Ltd
Priority to JP2002360947A priority Critical patent/JP4089415B2/en
Publication of JP2004192432A publication Critical patent/JP2004192432A/en
Application granted granted Critical
Publication of JP4089415B2 publication Critical patent/JP4089415B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a control system capable of dealing speedily with system environment changes. <P>SOLUTION: A master station M successively reads instructions in accordance with a control program (step S2) and, when an instruction to be executed next is not addressed to a slave station (step S4), executes the instruction (step S6), while when it is addressed to the slave station, judges whether the slave station is available by referring to an axis information table T1 (steps S8 and S10). When it is available, the master station M executes the instruction (step S6) and reads the next instruction, while when it is invalid, the master station M does not executes the instruction and reads the next instruction (step S2). <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
この発明は、インバータドライブシステムや、サーボシステム等といった数値制御システム等の、マスタ局と複数のスレーブ局とから構成される制御システムに関する。
【0002】
【従来の技術】
従来、インバータドライブシステムや、サーボシステム等といった数値制御システムにおいては、例えば図9に示すように、複数の制御装置が通信回線を介して接続され、そのうち一つの制御装置がマスタ局Mとなり、このマスタ局Mが、他の制御装置をスレーブ局S1〜S4として管理するようになっている。そして、マスタ局Mが制御プログラムにしたがって、スレーブ局S1〜S4宛に命令を通知し、これに応じて各スレーブ局S1〜S4が、その被制御対象を駆動制御することによって、システム全体として所定の駆動制御が行われるようになっている。
【0003】
このような数値制御システムにおいては、使用目的に応じた各種システムパラメータの設定や、環境設定を予め行って、システムパラメータファイルや環境設定ファイルFを作成しておくことにより、システムに何軸まで接続可能であるか、また、何軸には何が接続されているか等といった、各軸の情報を定義しておき、マスタ局Mでは、前記システムパラメータファイルや環境設定ファイルFを参照し、各スレーブ局を制御するようにしている。
【0004】
このようなシステムパラメータの設定や、環境設定を行う方法として、例えば、特開平9−62323号公報に記載されているように、自動設定を行うことにより、ユーザの負担を軽減し、また、設定ミスを防止する方法等が提案されている。
【0005】
【特許文献1】
特開平9−62323号公報
【0006】
【発明が解決しようとする課題】
しかしながら、上記従来の数値制御システムにおいては、上述のようにシステムパラメータの設定や環境設定を行い、これら軸情報をもとにマスタ局ではシステム全体の制御を行うようにしている。
このため、環境設定ファイルには、接続されているとして登録されている軸を、例えば、調整、或いはメンテナンス等を目的として取り外した場合等には、環境設定ファイルに設定された環境と、実際の環境とが異なるため、その都度システムパラメータや、環境設定ファイルを入れ換えたり、或いは設定しなおすといった操作を行う必要があり、さらには、プログラムを個別に作成するか或いは入れ換える必要がある。
【0007】
つまり、例えば、図9に示すようにスレーブ局として4軸設定してあった場合に、どれか1軸だけ接続して動かす場合、或いは1軸だけ取り外す場合等には、環境設定ファイルと制御プログラムとを何種類も設定する必要がある。また、導入立ち上げ時等に、各軸毎に試運転する際には、軸に応じた数の環境設定ファイルと制御プログラムを必要とすることになる。
【0008】
また、例えば運用中において、ある1軸が故障した場合等には、全軸を停止させるか、或いは残った軸だけで運転させるには、環境設定ファイルや制御プログラムを変更する必要がある。
その結果、運用上、生産能力や稼働率の低下につながることになり、また、調整や復旧に手間や時間がかかる等といった問題がある。
そこで、この発明は、上記従来の未解決の課題に着目してなされたものであり、システム環境の変化に対し速やかに対処することの可能な制御システムを提供することを目的としている。
【0009】
【課題を解決するための手段】
上記目的を達成するために、本発明の請求項1に係る制御システムは、制御命令にしたがって被制御対象を制御する複数のスレーブ局と、制御プログラムで指定される命令を順次読み出して実行すると共に、当該命令が前記スレーブ局に対する命令であるときにはこれを前記制御命令として該当するスレーブ局に対して命令するマスタ局と、を備えた制御システムにおいて、前記各スレーブ局が有効であるか無効であるかを表すスレーブ局情報を備え、前記マスタ局は、前記制御プログラムにおいて次に実行すべき次実行命令が、前記スレーブ局に対する命令であるかどうかを判断する命令内容判断手段と、当該命令内容判断手段で、前記スレーブ局に対する命令であると判断されるとき、前記スレーブ局情報において、前記次実行命令の命令先のスレーブ局が無効に設定されているかどうかを判定する無効判定手段と、当該無効判定手段で、前記命令先のスレーブ局が無効に設定されていることを検出したときには、前記次実行命令の実行を禁止し、その次の命令を読み出すよう指示する命令非実行制御手段と、を備えることを特徴としている。
【0010】
この請求項1に係る発明では、予め各スレーブ局が有効であるか無効であるかを表すスレーブ局情報が設定されている。そして、マスタ局は、制御プログラムにしたがって命令を順次実行するが、このとき、次に実行すべき次実行命令が、スレーブ局に対する命令であるかどうかを判断し、スレーブ局に対する命令であると判断されるときには、スレーブ局情報を参照し、この指定されたスレーブ局が無効に設定されているかどうかを判定する。そして、指定されたスレーブ局が、スレーブ局情報において無効に設定されていることを検出したときには、次実行命令の実行を禁止し、その次の命令を読み出すよう指示する。
【0011】
したがって、例えば、マスタ局が、スレーブ局宛に命令を行なったときには、この命令に対してスレーブ局或いは被制御対象が所定の動作を行ったときに、次の命令を実行するようになっている場合には、システムに接続されていないスレーブ局宛に命令を行った場合、スレーブ局側が所定の動作を行わないため、ここで制御プログラムが停止してしまう。
【0012】
しかしながら、接続されていないスレーブ局については、スレーブ局情報において無効と設定しておけば、このスレーブ局宛の命令は実行されないから、スレーブ局が接続されていないことに起因して制御プログラムが停止することを回避することが可能となる。
また、請求項2に係る制御システムは、前記命令非実行制御手段は、前記無効判断手段で無効設定が行われていると判断したときには、予め設定した時間調整用の無効命令を実行した後、次の命令の読み出し指示を行うようになっていることを特徴としている。
【0013】
この請求項2に係る発明では、次に実行すべき、スレーブ局宛の命令の命令先のスレーブ局がスレーブ局情報において無効と設定されているときには、時間調整用の無効命令を実行した後、次の命令の読み出し指示が行われる。
ここで、例えば各スレーブ局において制御される軸どうしの動作タイミングが互いに影響を及ぼすような場合、スレーブ局宛の命令を実行しない場合には、これに伴う影響が生じることになる。しかしながら、スレーブ局宛の命令を実行しない場合には時間調整用の無効命令を実行した後に、次の命令の読み出し指示が行われるから、無効命令を実行することにより、スレーブ局宛の命令を実行しないことに起因する時間調整を行うことが可能となる。
【0014】
また、請求項3に係る制御システムは、スレーブ局に対する命令を実行してからその次の命令を実行するまでの所要時間に応じて設定した規定命令間隔を、スレーブ局に対する命令の種類毎に設定した命令間隔情報を有し、前記命令非実行制御手段は、前記無効命令として、前記命令間隔情報に基づき特定される前記次実行命令に対応する規定命令間隔に相当する所要時間を有する処理を行うことを特徴としている。
【0015】
この請求項3に係る発明では、スレーブ局に対する命令を実行してからその次の命令を実行するまでの所要時間に応じて規定命令間隔が設定され、これがスレーブ局に対する命令毎に設定され、命令間隔情報として記憶されている。
そして、スレーブ局宛の命令であるときには、この命令に対応する規定命令間隔が、命令間隔情報に基づき特定され、特定された規定命令間隔に相当する所要時間を有する処理が、無効命令として実行される。
【0016】
したがって、スレーブ局に対する命令に応じてその所要時間が異なるような場合であっても、実行しないスレーブ局に対する命令に対応する規定命令間隔に相当する所要時間を有する無効命令を実行することにより、的確に時間調整を行うことが可能となる。
また、請求項4に係る制御システムは、前記規定命令間隔は、前記無効命令の実行回数であって、前記命令非実行制御手段は、指定された実行回数だけ前記無効命令を実行することを特徴としている。
【0017】
この請求項4に係る発明では、規定命令間隔として、無効命令の実行回数が設定され、この指定された実行回数だけ無効命令が実行される。つまり、無効命令一回の所要時間が短い場合でも、この無効命令を繰り返し行うことにより規定命令間隔に相当する所要時間を確保することが可能となる。
また、請求項5に係る制御システムは、前記無効命令は、何もしない命令であることを特徴としている。
【0018】
さらに、請求項6に係る制御システムは、前記命令非実行制御手段は、前記無効命令として、前記命令間隔情報に基づき特定される前記次実行命令に対応する規定命令間隔に相当する時間を待ち時間とするウェイト処理を行うことを特徴としている。
【0019】
【発明の実施の形態】
以下に、本発明の実施の形態を説明する。
まず、第1の実施の形態を説明する。
図1は、本発明を適用した数値制御システムの一例を示す概略構成図である。この数値制御システムは、図1に示すように、4台のスレーブ局S1〜S4とマスタ局Mとが通信回線を介して接続されている。そして、マスタ局Mでは、後述の軸情報テーブルT1に基づいて軸情報を認識すると共に、公知の数値制御装置におけるマスタユニットと同様に、予め設定されたシステム制御用の制御プログラムを実行し、これに基づいて各スレーブ局S1〜S4の制御指令を出力し、各スレーブ局S1〜S4では、マスタ局Mからの指令に基づいて図示しない被制御対象を駆動制御することによって、被制御対象がそれぞれ所定の動作を行い、システム全体として所定の動作が行われるようになっている。
【0020】
前記軸情報テーブルT1は、図2に示すように、図1の数値制御システムにおいて接続可能な軸数分の情報を設定可能に形成され、各スレーブ局に対応する軸番号と、この軸を有効とするか又は無効とするかといった情報と、この軸に対応する被制御対象の機種情報とが設定されている。また、各軸に関する、システムパラメータ或いは環境設定情報等といった前述のシステムパラメータファイルや環境設定ファイルに相当するデータが軸対応で設定されている。
【0021】
なお、ここでは、軸情報テーブルT1にシステムパラメータファイルや環境設定ファイルに相当するデータを登録するようにした場合について説明したが、これに限るものではなく、システムパラメータファイルや環境設定ファイルは従来と同様に別に設けておき、軸番号と、有効/無効の情報とからなる軸情報テーブルT1を新たに設けるようにしてもよいことはいうまでもない。
【0022】
そして、マスタ局Mでは、制御プログラムにしたがって、その命令を順次読み出してこれを実行するが、その命令が、スレーブ局に対する命令である場合には、その命令先のスレーブ局が有効か無効かを前記軸情報テーブルT1を参照して判断し、有効であるときには指定された命令を実行するが、無効である場合にはこの命令は実行せず、次の命令の読み込みを行う。
【0023】
なお、図1においては、4台のスレーブ局S1〜S4からなる数値制御システムを構成した場合について説明したが、これに限るものではなく、任意数のスレーブ局を接続することができる。
次に、第1の実施の形態の動作を説明する。
今、図1に示すようにスレーブ局S1〜S4及びマスタ局Mからなる数値制御システムにおいて、4軸に対する制御を行う4軸制御プログラムを実行するものとする。
【0024】
ユーザは、図示しないキーボード等の入力装置を操作し、軸情報テーブルT1において、スレーブ局S1〜S4に対応する軸例えばNO1〜4を全て有効に設定する。
この状態でシステムを起動させると、マスタ局Mでは、軸情報テーブルT1を参照し各種システムパラメータ、各種環境設定情報に基づいて、システム構成を認識する。
【0025】
そして、マスタ局Mでは、図3に示す、プログラム実行処理の処理手順の一例を示すフローチャートにしたがって、指定された4軸制御プログラムを実行する。すなわち、まず、ステップS2で、4軸制御プログラムの先頭からその命令を読み出し、これが、軸に対する命令であるかどうか、すなわち、スレーブ局宛の命令であるかどうかを判断する(ステップS4)。
【0026】
例えば読み出した命令が、単なる演算等であり、スレーブ局に対する命令でない場合には、ステップS6に移行し、指定された命令を実行する。そして、ステップS8に移行し、4軸制御プログラムが終了していなければステップS2に戻る。
そして、次の命令を読み出し、これが軸に対する命令であるかどうかを判断する。そして、軸に対する命令、つまり、スレーブ局宛の命令である場合には、ステップS8に移行し、この命令の命令先のスレーブ局つまり軸は有効であるかどうかを、軸情報テーブルT1をもとに判断する。
【0027】
この場合、全てのスレーブ局S1〜S4が接続されており、軸情報テーブルT1には、軸No1〜No4は有効として設定されているから、ステップS10からステップS6に移行し、指定されたスレーブ局宛の命令を実行する。そして、ステップS8に移行する。
次に、例えば、メンテナンスを行う場合等、何らかによって、スレーブ局S2を取り外す場合には、図2に示すように、軸情報テーブルT1を操作しスレーブ局S2に対応する軸No2を無効に切り替える。
【0028】
そして、この状態で4軸制御プログラムを実行する。すなわち、図3のフロチャートにしたがって、命令を読み出し(ステップS2)、スレーブ局宛の命令であるかを判断し(ステップS4)、スレーブ局宛の命令でない場合にはそのままこの処理を実行する(ステップS6)。このとき、読み出した命令が、スレーブ局宛の命令である場合には、ステップS8に移行し、このスレーブ局が軸情報T1において、無効に設定されているかどうかを判定する。
【0029】
ここで、このスレーブ局宛の命令が、スレーブ局S2宛の命令、つまり取り外された軸No2宛の命令である場合には、軸情報テーブルT1において、軸Noは無効と設定されている。したがって、ステップS10からステップS8を経てステップS2に移行し、次の命令の読み出しを行う。つまり、取り外されている軸No2宛の命令は実行されず、スレーブ局S2宛に命令が送信されない。
【0030】
ここで、マスタ局Mでは、スレーブ局S2に命令を送信した後、スレーブ局S2から、その応答を受けて次の命令の読み出しを行うようになっている場合、或いは、スレーブ局S2による被制御対象の動作結果がある状態となったときに、次の命令の読み出しを行うようになっている場合等、命令に対するスレーブ局S2側の動作が、マスタ局Mが制御プログラムを実行する際に影響を及ぼすような場合には、マスタ局Mが取り外されているスレーブ局S2に対して命令を送信すると、マスタ局Mでは、スレーブ局S2側の動作待ち状態となって、マスタ局Mにおける処理が停止してしまい、結果的にシステム全体が停止してしまう等といった影響を受ける場合がある。
【0031】
しかしながら、上述のように、軸情報テーブルT1において、スレーブ局S2が無効と設定されている場合には、このスレーブ局S2宛の命令は実行せず、その次の命令の読み出しを行うから、マスタ局Mがスレーブ局S2側の動作待ち状態となりシステム全体が停止するなどといった影響を受けることを回避することができる。
【0032】
したがって、このように、スレーブ局S2が取り外された状態であっても、4軸制御プログラムを実行することができるから、本来4軸を制御するための4軸制御プログラムを実行した場合でも、3軸に対する制御を行うことができる。
また、従来のように4軸制御プログラムを3軸制御プログラムに変更したりする必要はなく、軸情報テーブルT1において、有効/無効設定を変更するだけで容易に対応することができる。
【0033】
また、このように、4軸制御プログラムを用いて、3軸の構成、或いは2軸の構成であってもこれら制御システムに接続されている軸に対しては制御を行うことができるから、例えば、メンテナンス時に、1軸毎に駆動させる場合、或いは系統的に駆動させる場合等、全ての軸を駆動せずに、一部の軸を駆動させるような場合であっても、軸情報テーブルT1においてその有効/無効設定を変更するだけで容易に試験を行うことができ、メンテナンス時のシステムの一部だけを駆動させる状態に環境を整えるまでに要する所要時間を大幅に短縮することができる。
【0034】
また、このように、本来の数値制御システムの一部のみを駆動するような場合であっても、軸情報テーブルT1を変更するだけで4軸制御プログラムを実行させることができるから、例えば、運用中にある軸に異常が発生した場合には、この異常が発生した軸をシステムから取り外し、軸情報テーブルT1において該当する軸番号を無効に設定するだけで、4軸制御プログラムを実行させることができる。
【0035】
したがって、故障時の数値制御システムの停止時間を、従来に比較してより削減することができ、速やかに復旧させ、正常な軸のみによる動作を開始することができる。
また、このように、メンテナンスや故障時の対処に要する所要時間を大幅に短縮することができるから、メンテナンスや故障時に数値制御システムを停止させることに伴う生産能力や稼働率の低下を回避することができる。
【0036】
次に、本発明の第2の実施の形態を説明する。
この第2の実施の形態は、上記第1の実施の形態において、制御プログラムにおいて読み出した命令が、軸情報テーブルT1において、無効設定されているスレーブ局に対する命令である場合には、「何もしない命令NOP」を実行するようにしたものである。
【0037】
図4は、この第2の実施の形態における制御プログラム実行処理の処理手順の一例を示すフローチャートである。なお、上記第1の実施の形態と同一の処理を実行する処理には、同一符号を付与している。
図4に示すように、まず、制御プログラムの先頭から命令を読み出し(ステップS2)、これが軸に対する処理か、つまりスレーブ局宛の命令であるかどうかを判定し、単なる演算等、軸に対する命令ではない場合には、ステップS6に移行してこの命令を実行する。そして、その次の命令を読み出し、これが軸宛の命令である場合には、ステップS4からステップS8に移行し、軸情報テーブルT1を参照する。
【0038】
そして、指定されたスレーブ局が有効と設定されていれば、ステップS10からステップS6に移行して、このスレーブ局宛の命令を実行し、逆に指定されたスレーブ局が無効と設定されていれば、ステップS10からステップS11に移行し、何もしない命令NOPを実行する。つまり、何も行わないが、この何もしない命令NOPを実行する時間分だけ時間調整が行われることになる。
【0039】
したがって、前記スレーブ局宛の命令を実行し、次の命令を実行するまでの所要時間が、何もしない命令NOPの実行時間と同等である場合には、何もしない命令NOPを実行した後、その次の命令を実行するタイミングと、実際にスレーブ局宛の命令を実行した後、その次の命令を実行するタイミングとは同等のタイミングとなる。よって、実際には、スレーブ局宛の命令を実行してはいないが、この命令を実行した場合と同等のタイミングで、この次の命令を実行することができる。
【0040】
よって、各軸の動作タイミングの変化が、数値制御システム全体の運転に影響を与えるような場合であっても、動作タイミングの変化を回避することができるから、無効のスレーブ局宛の命令を実行しないことに起因して数値制御システム全体の運転に影響を与えることを回避することができる。
次に、本発明の第3の実施の形態を説明する。
【0041】
この第3の実施の形態におけるマスタ局Mは、上記第1の実施の形態におけるマスタ局Mにおいて、さらに、図5に示す命令テーブルT2を有している。この命令テーブルT2は、図5に示すように、スレーブ局宛の命令種別と、何もしない命令NOPの実行回数とが対応付けられている。この何もしない命令の回数は、前記スレーブ局宛の命令種別毎に、マスタ局Mがその命令を実行してからその次の命令を実行するまでの所要時間に応じて設定され、この所要時間と、何もしない命令の実行回数だけ何もしない命令を実行したときの所要時間とが同等となる回数を、実行回数として設定する。
【0042】
つまり、上記第2の実施の形態に記載されているように、スレーブ局宛の命令を実行せずにその次の命令を行うようにした場合、スレーブ局宛の命令を実行してからその次の命令を実行するまでの所要時間が、何もしない命令NOPを一回実行するのに要する所要時間と同等である場合には、このスレーブ局宛の命令の次の命令を実行するタイミングは、スレーブ局宛の命令を実行した場合としない場合とでは同等となる。
【0043】
しかしながら、スレーブ局宛の命令を実行した後その次の命令を実行するまでの所要時間が、何もしない命令NOPを一回実行するのに要する所要時間を超える場合には、次に実行すべき命令の実行タイミングがずれることになる。
したがって、何もしない命令NOPを指定された実行回数だけ実行したときの所要時間と、実際にスレーブ局宛の命令を実行したときの所要時間とが一致するように、前記何もしない命令NOPの実行回数を設定する。
【0044】
図6は、第3の実施の形態における制御プログラム実行処理の処理手順を示すフローチャートである。なお、上記第1の実施の形態と同一処理部には同一符号を付与している。
この第3の実施の形態においては、制御プログラムにおいて、その命令を読み出し(ステップS2)、これがスレーブ局宛の命令である場合にはステップS4からステップS8に移行して、軸情報テーブルT1を参照し、送信命令の送信先のスレーブ局が有効であるか無効であるかを判定し、有効である場合には、ステップS10からステップS6に移行してこの命令を実行し、無効である場合には、ステップS10からステップS12に移行し、図5の命令テーブルT2を参照し、次に実行すべき命令の種別に対応する、何もしない命令NOPの実行回数を検索する。そして、ステップS13に移行し、ステップS12の処理で検索した実行回数だけ、何もしない命令NOPを実行する。そして、次に読み出す命令がある場合にはステップS2に戻りこれを読み出す。
【0045】
ここで、何もしない命令NOPを指定された実行回数だけ実行したときの所要時間は、スレーブ局宛の命令を実行したときの、その次の命令を実行するまでの所要時間に相当するように設定されている。したがって、何もしない命令NOPを指定された実行回数だけ実行した後、その次の命令を実行するタイミングは、スレーブ局宛の命令を実行した後、その次の命令を実行するタイミングと同等となる。
【0046】
したがって、この場合も上記第2の実施の形態と同様に、実行しなかった命令の次の命令を実行するタイミングを、命令を実行した場合と同等のタイミングにすることができる。よって、この場合も上記第2の実施の形態と同等の作用効果を得ることができると共に、この第3の実施の形態においては、何もしない命令NOPの実行回数を、命令内容に応じて任意に設定することができるから、スレーブ局宛の命令の種類によって、その所要時間が異なる場合でも、的確に動作タイミングを一致させることができる。
【0047】
なお、上記第2及び第3の実施の形態においては、何もしない命令NOPを実行するようにした場合について説明したが、これに限らず、例えば、ある変数に零を加算する命令等、影響を及ぼすことがなく意味のない演算を行うようにしてもよい。
また、上記第3の実施の形態においては、何もしない命令NOPを所定回数繰り返すようにしているが、何もしない命令NOPを所定回数繰り返したときの所要時間と同等の所要時間を有する、前述の影響を及ぼさない演算等を行うようにしてもよい。
【0048】
次に、本発明の第4の実施の形態を説明する。
この第4の実施の形態は、上記第3の実施の形態において、命令テーブルT2に替えて、図7に示す待ち時間テーブルT3を備えている。この待ち時間テーブルT3は、図7に示すように、スレーブ局宛の命令種別と、待ち時間とが対応付けられている。この待ち時間は、前記スレーブ局宛の命令種別毎に、マスタ局Mがその命令を実行してからその次の命令を実行するまでの所要時間に応じて設定されている。
【0049】
つまり、上記第3の実施の形態においては、何もしない命令NOPを所定回数実行することによってタイミング調整を行うようにしているのに対し、この第4の実施の形態は、所定の待ち時間だけ待つようにしている。
図8は、第4の実施の形態における制御プログラム実行処理の処理手順を示すフローチャートである。なお、上記第1の実施の形態と同一処理部には同一符号を付与している。
【0050】
この第4の実施の形態においては、制御プログラムにおいて、その命令を読み出し(ステップS2)、これがスレーブ局宛の命令である場合にはステップS4からステップS8に移行して、軸情報テーブルT1を参照し、送信命令の送信先のスレーブ局が有効であるか無効であるかを判定し、有効である場合には、ステップS10からステップS6に移行してこの命令を実行し、無効である場合には、ステップS10からステップS14に移行し、図7の待ち時間テーブルT3を参照し、指定された命令の種別に対応する、待ち時間を検索する。そして、ステップS15に移行し、ステップS14の処理で検索した待ち時間だけウェイト処理を行う。つまり何もしないで待機する。
【0051】
ここで、待ち時間テーブルT3に設定された待ち時間は、スレーブ局宛の命令を実行したときの、その次の命令を実行するまでの所要時間に相当するように設定されている。したがって、指定された待ち時間経過後に次の命令を実行するタイミングは、スレーブ局宛の命令を実行した後、その次の命令を実行するタイミングと同等となる。
【0052】
したがって、この場合も上記第3の実施の形態と同等の作用効果を得ることができる。
なお、前記ウェイト処理は、具体的にはカウンタにより所定回数カウント処理を行うようにすればよい。したがって、待ち時間テーブルT3には、カウンタ値を設定するようにしてもよい。
【0053】
また、上記各実施の形態においては、軸情報テーブルT1をマスタ局に設けた場合について説明したが、これに限るものではなく、例えば、記憶装置等に設けるようにしてもよく、要は、マスタ局Mから参照可能であれば、どこに設けてもよい。また、上記第3の実施の形態における命令テーブルT2及び第4の実施の形態における待ち時間テーブルT3も同様に、マスタ局Mから参照可能であれば、どこに設けてもよい。
【0054】
ここで、上記各実施の形態において、軸情報テーブルT1がスレーブ局情報に対応し、図3、図4、図6及び図8のステップS4の処理が命令内容判断手段に対応し、ステップS8及びS10の処理が無効判定手段に対応し、ステップS10から8を経てステップS2に移行する処理が命令非実行制御手段に対応している。また、第3の実施の形態における命令テーブルT2及び第4の実施の形態における待ち時間テーブルT3が命令間隔情報に対応している。
【0055】
【発明の効果】
以上説明したように、本発明の請求項1に係る発明によれば、次に実行すべき命令が、スレーブ局に対する命令であり、且つスレーブ局情報に無効として設定されている場合には、この命令の実行は行わず、その次の命令を読み出すようにしたから、接続されていないスレーブ局宛に命令を行った場合に制御プログラムが停止してしまうような制御システムであっても、スレーブ局情報において有効無効の設定を行うことによって、同一の制御プログラムを用いて、一部のスレーブ局のみを容易に駆動させることができる。
【0056】
また、請求項2に係る制御システムによれば、次に実行すべき命令の命令先のスレーブ局が、スレーブ局情報において無効と設定されているときには、時間調整用の無効命令を実行した後、次の命令の読み出し指示を行うようにしたから、スレーブ局宛の命令を実行しないことに起因して、この次の命令の実行タイミングがずれることを回避することができる。
【0057】
また、請求項3に係る制御システムによれば、スレーブ局に対する命令を実行してからその次の命令を実行するまでの所要時間に応じて設定した規定命令間隔とスレーブ局に対する命令の種類毎との対応を命令間隔情報として設定しておき、スレーブ局宛の命令であるときには、この命令に対応する規定命令間隔に相当する所要時間を有する処理を、無効命令として実行するようにしたから、スレーブ局に対する命令種に応じてその所要時間が異なるような場合であっても、的確に時間調整を行うことができる。
【0058】
また、請求項4に係る制御システムによれば、規定命令間隔として無効命令の実行回数を設定し、指定された実行回数だけ無効命令を実行するようにしたから、無効命令一回の所要時間が短い場合でも、この無効命令を繰り返し行うことによって規定命令間隔に相当する所要時間分の時間調整を行うことができる。
また、請求項5に係る制御システムによれば、無効命令として何もしない命令を行うようにしたから、悪影響を与えることなく、容易に時間調整を行うことができる。
【0059】
さらに、請求項6に係る制御システムによれば、無効命令として実行しない命令に対応する規定命令間隔に相当する時間だけウェイト処理を行うようにしたから、悪影響を与えることなく、容易且つより的確に時間調整を行うことができる。
【図面の簡単な説明】
【図1】本発明を適用した数値制御システムの一例を示す構成図である。
【図2】軸情報テーブルT1の一例である。
【図3】第1の実施の形態における制御プログラム実行処理の処理手順の一例を示すフローチャートである。
【図4】第2の実施の形態における制御プログラム実行処理の処理手順の一例を示すフローチャートである。
【図5】命令テーブルT2の一例である。
【図6】第3の実施の形態における制御プログラム実行処理の処理手順の一例を示すフローチャートである。
【図7】待ち時間テーブルT3の一例である。
【図8】第4の実施の形態における制御プログラム実行処理の処理手順の一例を示すフローチャートである。
【図9】従来の数値制御システムの一例である。
【符号の説明】
M マスタ局
S1〜S4 スレーブ局
T1 軸情報テーブル
T2 命令テーブル
T3 待ち時間テーブル
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a control system including a master station and a plurality of slave stations, such as a numerical control system such as an inverter drive system and a servo system.
[0002]
[Prior art]
Conventionally, in a numerical control system such as an inverter drive system or a servo system, for example, as shown in FIG. 9, a plurality of control devices are connected via a communication line, and one of the control devices serves as a master station M. The master station M manages other control devices as slave stations S1 to S4. Then, the master station M sends a command to the slave stations S1 to S4 in accordance with the control program, and the slave stations S1 to S4 drive and control the controlled objects in response to the command, so that a predetermined Drive control is performed.
[0003]
In such a numerical control system, by setting various system parameters according to the purpose of use and setting the environment in advance and creating a system parameter file and an environment setting file F, the number of axes connected to the system can be increased. Information on each axis, such as what is possible and what is connected to which axis, is defined, and the master station M refers to the system parameter file and the environment setting file F, and I try to control the station.
[0004]
As a method for setting such system parameters and setting the environment, for example, as described in Japanese Patent Application Laid-Open No. 9-62323, automatic setting is performed to reduce the burden on the user. Methods for preventing mistakes and the like have been proposed.
[0005]
[Patent Document 1]
JP-A-9-62323
[0006]
[Problems to be solved by the invention]
However, in the above-described conventional numerical control system, the system parameters are set and the environment is set as described above, and the master station controls the entire system based on the axis information.
For this reason, when the axis registered as connected in the environment setting file is removed for the purpose of, for example, adjustment or maintenance, for example, the environment set in the environment setting file differs from the actual environment. Since the environment is different, it is necessary to perform an operation of replacing or resetting the system parameters and the environment setting file each time, and further, it is necessary to individually create or replace the programs.
[0007]
That is, for example, when four axes are set as slave stations as shown in FIG. 9, when only one axis is connected or operated, or when only one axis is removed, the environment setting file and the control program You need to set several types. In addition, when a trial run is performed for each axis, such as when starting up the installation, a number of environment setting files and control programs corresponding to the axes are required.
[0008]
Further, for example, when one axis breaks down during operation, it is necessary to change the environment setting file or the control program in order to stop all the axes or to operate only the remaining axes.
As a result, there is a problem in that, in terms of operation, the production capacity and the operation rate are reduced, and adjustment and restoration take time and effort.
Therefore, the present invention has been made in view of the above-mentioned conventional unsolved problems, and has as its object to provide a control system capable of promptly coping with a change in the system environment.
[0009]
[Means for Solving the Problems]
To achieve the above object, a control system according to claim 1 of the present invention sequentially reads and executes instructions specified by a control program with a plurality of slave stations that control a controlled object according to a control instruction. When the command is a command for the slave station, the master station instructs the slave station as the control command, and the slave station is valid or invalid. Instruction information determining means for determining whether a next execution instruction to be executed next in the control program is an instruction for the slave station, and determining the instruction content. Means, when it is determined that the instruction is for the slave station, the instruction of the next execution instruction is included in the slave station information. Invalidity determining means for determining whether the previous slave station is set to invalid, and when the invalidity determining means detects that the instruction destination slave station is set to invalid, the invalidation of the next execution instruction Instruction non-execution control means for prohibiting execution and instructing to read the next instruction.
[0010]
In the invention according to claim 1, slave station information indicating whether each slave station is valid or invalid is set in advance. The master station sequentially executes the instructions according to the control program. At this time, the master station determines whether the next execution instruction to be executed next is an instruction for the slave station, and determines that the next execution instruction is an instruction for the slave station. Then, the slave station information is referred to, and it is determined whether or not the designated slave station is set to be invalid. When detecting that the designated slave station is set invalid in the slave station information, execution of the next execution instruction is prohibited, and an instruction to read the next instruction is issued.
[0011]
Therefore, for example, when the master station issues a command to the slave station, the next command is executed when the slave station or the controlled object performs a predetermined operation in response to the command. In this case, if a command is issued to a slave station not connected to the system, the slave station does not perform a predetermined operation, and the control program stops here.
[0012]
However, if the slave station that is not connected is set to invalid in the slave station information, the instruction addressed to this slave station will not be executed, and the control program will stop because the slave station is not connected. Can be avoided.
Further, in the control system according to claim 2, the command non-execution control unit executes a preset invalid instruction for time adjustment when the invalid determination unit determines that the invalid setting has been performed, It is characterized in that an instruction to read the next instruction is issued.
[0013]
In the invention according to claim 2, when the slave station to be executed next, which is the instruction destination of the instruction addressed to the slave station, is set invalid in the slave station information, after executing the invalidation instruction for time adjustment, The instruction to read the next instruction is issued.
Here, for example, when the operation timings of the axes controlled by the slave stations affect each other, and when the instruction directed to the slave station is not executed, there is an accompanying effect. However, when the instruction directed to the slave station is not executed, the instruction for reading the next instruction is issued after executing the invalid instruction for time adjustment, so that the instruction directed to the slave station is executed by executing the invalid instruction. It is possible to perform time adjustment caused by not doing so.
[0014]
Further, the control system according to claim 3 sets a specified command interval set according to a required time from execution of an instruction to the slave station to execution of the next instruction for each type of instruction to the slave station. The instruction non-execution control means performs processing having a required time corresponding to a prescribed instruction interval corresponding to the next execution instruction specified based on the instruction interval information as the invalid instruction. It is characterized by:
[0015]
In the invention according to the third aspect, a prescribed command interval is set according to a required time from execution of a command to the slave station to execution of the next command, and this is set for each command to the slave station. It is stored as interval information.
When the command is directed to the slave station, a specified command interval corresponding to the command is specified based on the command interval information, and a process having a required time corresponding to the specified specified command interval is executed as an invalid command. You.
[0016]
Therefore, even when the required time varies depending on the instruction to the slave station, the invalid instruction having the required time corresponding to the prescribed instruction interval corresponding to the instruction to the slave station not to be executed is properly executed. Time can be adjusted.
The control system according to claim 4, wherein the prescribed instruction interval is the number of times the invalid instruction is executed, and the instruction non-execution control means executes the invalid instruction a specified number of times. And
[0017]
In the invention according to the fourth aspect, the number of executions of the invalid instruction is set as the prescribed instruction interval, and the invalid instruction is executed by the specified execution number. That is, even if the time required for one invalid instruction is short, it is possible to secure the required time corresponding to the specified instruction interval by repeatedly performing the invalid instruction.
The control system according to claim 5 is characterized in that the invalid instruction is an instruction that does nothing.
[0018]
7. The control system according to claim 6, wherein the instruction non-execution control means waits for a time corresponding to a prescribed instruction interval corresponding to the next execution instruction specified based on the instruction interval information as the invalid instruction. Is performed.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of the present invention will be described.
First, a first embodiment will be described.
FIG. 1 is a schematic configuration diagram illustrating an example of a numerical control system to which the present invention has been applied. In this numerical control system, as shown in FIG. 1, four slave stations S1 to S4 and a master station M are connected via a communication line. The master station M recognizes the axis information based on an axis information table T1 described later, and executes a preset control program for system control similarly to the master unit in the known numerical controller. The slave stations S1 to S4 output control commands based on the command, and in each of the slave stations S1 to S4, drive control is performed on a control target (not shown) based on a command from the master station M. A predetermined operation is performed, and a predetermined operation is performed for the entire system.
[0020]
As shown in FIG. 2, the axis information table T1 is formed so that information for the number of connectable axes in the numerical control system of FIG. 1 can be set, and the axis number corresponding to each slave station and the validity of this axis are set. Or invalid, and model information of the controlled object corresponding to this axis are set. In addition, data corresponding to the above-described system parameter file or environment setting file, such as system parameters or environment setting information, for each axis is set for each axis.
[0021]
Here, a case has been described in which data corresponding to a system parameter file and an environment setting file is registered in the axis information table T1, but the present invention is not limited to this. Similarly, it is needless to say that an axis information table T1 including an axis number and valid / invalid information may be newly provided separately.
[0022]
The master station M sequentially reads and executes the instructions according to the control program. If the instruction is an instruction for a slave station, the master station M determines whether the slave station of the instruction is valid or invalid. Judgment is made by referring to the axis information table T1. If the instruction is valid, the designated instruction is executed. If the instruction is invalid, the instruction is not executed and the next instruction is read.
[0023]
Although FIG. 1 illustrates a case where a numerical control system including four slave stations S1 to S4 is configured, the present invention is not limited to this, and an arbitrary number of slave stations can be connected.
Next, the operation of the first embodiment will be described.
Now, as shown in FIG. 1, in a numerical control system including the slave stations S1 to S4 and the master station M, a four-axis control program for controlling four axes is executed.
[0024]
The user operates an input device such as a keyboard (not shown) to set all axes, for example, NO1 to NO4, corresponding to the slave stations S1 to S4 to valid in the axis information table T1.
When the system is started in this state, the master station M refers to the axis information table T1 and recognizes the system configuration based on various system parameters and various environment setting information.
[0025]
Then, the master station M executes the specified four-axis control program according to the flowchart shown in FIG. 3 which shows an example of the procedure of the program execution process. That is, first, in step S2, the command is read from the top of the 4-axis control program, and it is determined whether this is a command for the axis, that is, whether it is a command addressed to the slave station (step S4).
[0026]
For example, if the read command is a simple operation or the like and is not a command for the slave station, the process shifts to step S6 to execute the specified command. Then, the process proceeds to step S8, and returns to step S2 if the four-axis control program is not completed.
Then, the next command is read, and it is determined whether or not this is a command for the axis. If the command is for the axis, that is, the command is directed to the slave station, the process proceeds to step S8, and whether the slave station, that is, the command destination of this command is valid is determined based on the axis information table T1. To judge.
[0027]
In this case, since all the slave stations S1 to S4 are connected, and the axes No. 1 to No4 are set as valid in the axis information table T1, the process shifts from step S10 to step S6, and the designated slave station Execute the instruction addressed to. Then, control goes to a step S8.
Next, for example, when the slave station S2 is to be detached for some reason such as maintenance or the like, the axis information table T1 is operated to switch the axis No. 2 corresponding to the slave station S2 to invalid as shown in FIG. .
[0028]
Then, in this state, the four-axis control program is executed. That is, according to the flowchart of FIG. 3, the command is read (step S2), and it is determined whether the command is directed to the slave station (step S4). If the command is not directed to the slave station, this process is executed as it is (step S4). Step S6). At this time, if the read command is a command addressed to the slave station, the process proceeds to step S8, and it is determined whether or not this slave station is set invalid in the axis information T1.
[0029]
Here, if the instruction addressed to the slave station is an instruction addressed to the slave station S2, that is, an instruction addressed to the removed axis No. 2, the axis number is set to invalid in the axis information table T1. Therefore, the process proceeds from step S10 to step S2 via step S8, and the next instruction is read. That is, the command for the removed axis No. 2 is not executed, and the command is not transmitted to the slave station S2.
[0030]
Here, the master station M transmits a command to the slave station S2 and then reads the next command in response to the response from the slave station S2, or is controlled by the slave station S2. The operation of the slave station S2 side in response to the instruction may affect the operation of the master station M when the master station M executes the control program, such as when the next instruction is read when the target operation result is in a certain state. When the master station M sends a command to the detached slave station S2, the master station M enters an operation waiting state on the slave station S2 side, and the processing in the master station M is stopped. In some cases, the system may be stopped, and as a result, the entire system may be stopped.
[0031]
However, as described above, when the slave station S2 is set to be invalid in the axis information table T1, the instruction addressed to the slave station S2 is not executed, and the next instruction is read. It is possible to avoid that the station M is in an operation waiting state on the slave station S2 side and is affected by stopping the entire system.
[0032]
Therefore, even if the slave station S2 is detached, the four-axis control program can be executed. Therefore, even if the four-axis control program for originally controlling four axes is executed, the three-axis control program can be executed. Control over the axis can be performed.
Further, it is not necessary to change the four-axis control program to the three-axis control program as in the related art, and it is possible to easily cope with this simply by changing the valid / invalid setting in the axis information table T1.
[0033]
Further, as described above, even if a three-axis configuration or a two-axis configuration is used, control can be performed on the axes connected to these control systems using the four-axis control program. In the case where some axes are driven without driving all axes, such as when driving one axis at a time or when driving systematically during maintenance, the axis information table T1 may be used. The test can be easily performed only by changing the valid / invalid setting, and the time required for preparing the environment for driving only a part of the system at the time of maintenance can be greatly reduced.
[0034]
Further, even when only a part of the original numerical control system is driven, the four-axis control program can be executed only by changing the axis information table T1. If an error occurs in any of the axes, the axis in which the error occurred is removed from the system, and the corresponding axis number is invalidated in the axis information table T1 to execute the 4-axis control program. it can.
[0035]
Therefore, the stop time of the numerical control system in the event of a failure can be further reduced as compared with the related art, and the numerical control system can be quickly restored, and operation using only normal axes can be started.
In addition, since the time required for maintenance and troubleshooting can be greatly reduced in this way, it is possible to avoid a reduction in production capacity and availability due to stopping the numerical control system during maintenance and troubleshooting. Can be.
[0036]
Next, a second embodiment of the present invention will be described.
In the second embodiment, when the command read in the control program in the first embodiment is a command for a slave station set invalid in the axis information table T1, "Nothing" An instruction NOP to be executed is executed.
[0037]
FIG. 4 is a flowchart illustrating an example of a procedure of a control program execution process according to the second embodiment. Note that the same reference numerals are given to processes that execute the same processes as in the first embodiment.
As shown in FIG. 4, first, an instruction is read from the top of the control program (step S2), and it is determined whether this is processing for the axis, that is, whether the instruction is directed to a slave station. If not, the process moves to step S6 to execute this command. Then, the next instruction is read out. If this instruction is directed to the axis, the process proceeds from step S4 to step S8, and the axis information table T1 is referred to.
[0038]
Then, if the designated slave station is set to be valid, the process proceeds from step S10 to step S6 to execute the instruction addressed to this slave station, and conversely, the designated slave station is set to be invalid. For example, the process shifts from step S10 to step S11 to execute an instruction NOP that does nothing. That is, although nothing is performed, the time is adjusted by the time for executing the no-operation instruction NOP.
[0039]
Therefore, if the time required to execute the instruction destined for the slave station and execute the next instruction is equal to the execution time of the instruction NOP which does nothing, after executing the instruction NOP which does nothing, The timing for executing the next instruction is the same as the timing for executing the next instruction after the instruction for the slave station is actually executed. Therefore, although the instruction addressed to the slave station is not actually executed, the next instruction can be executed at the same timing as when this instruction is executed.
[0040]
Therefore, even if a change in the operation timing of each axis affects the operation of the entire numerical control system, a change in the operation timing can be avoided, and an instruction to an invalid slave station is executed. It is possible to avoid affecting the operation of the entire numerical control system due to the non-operation.
Next, a third embodiment of the present invention will be described.
[0041]
The master station M according to the third embodiment differs from the master station M according to the first embodiment in further having an instruction table T2 shown in FIG. As shown in FIG. 5, the instruction table T2 associates the instruction type addressed to the slave station with the number of executions of the no-operation instruction NOP. The number of times this instruction does nothing is set for each instruction type addressed to the slave station in accordance with the time required from when the master station M executes that instruction to when it executes the next instruction. Is set as the number of executions, the number of times that the required time for executing an instruction that does nothing is the same as the number of executions of the instruction that does nothing.
[0042]
That is, as described in the second embodiment, when the next instruction is executed without executing the instruction directed to the slave station, the instruction destined for the slave station is executed and then executed. If the time required to execute this instruction is equivalent to the time required to execute the no-operation instruction NOP once, the timing of executing the instruction following the instruction directed to the slave station is: The case where the instruction to the slave station is executed and the case where the instruction is not executed are the same.
[0043]
However, if the time required to execute the next instruction after executing the instruction addressed to the slave station exceeds the time required to execute the no-operation instruction NOP once, the next execution should be performed. The execution timing of the instruction will be shifted.
Therefore, the time required for executing the no-operation instruction NOP by the designated number of times of execution and the time required for actually executing the instruction destined for the slave station coincide with each other. Set the number of executions.
[0044]
FIG. 6 is a flowchart illustrating a procedure of a control program execution process according to the third embodiment. The same reference numerals are given to the same processing units as those in the first embodiment.
In the third embodiment, the command is read out in the control program (step S2). If the command is directed to a slave station, the process proceeds from step S4 to step S8 to refer to the axis information table T1. Then, it is determined whether the slave station to which the transmission command is transmitted is valid or invalid. If it is valid, the process proceeds from step S10 to step S6 to execute this command. Moves from step S10 to step S12, and refers to the instruction table T2 in FIG. 5 to search for the number of executions of the no-operation instruction NOP corresponding to the type of instruction to be executed next. Then, the process proceeds to step S13 to execute the instruction NOP for nothing by the number of times of execution searched in the process of step S12. If there is an instruction to be read next, the process returns to step S2 to read this.
[0045]
Here, the time required to execute the no-operation instruction NOP by the specified number of executions is set so as to correspond to the time required to execute the next instruction when the instruction directed to the slave station is executed. Is set. Therefore, after executing the no-operation instruction NOP by the designated number of executions, the timing of executing the next instruction is equal to the timing of executing the instruction directed to the slave station and then executing the next instruction. .
[0046]
Therefore, also in this case, similarly to the second embodiment, the timing of executing the instruction following the instruction that has not been executed can be set to the same timing as when the instruction is executed. Therefore, in this case as well, the same operation and effect as those of the second embodiment can be obtained, and in the third embodiment, the number of executions of the no-operation instruction NOP can be arbitrarily set according to the contents of the instruction. Therefore, even when the required time varies depending on the type of the instruction addressed to the slave station, the operation timing can be accurately matched.
[0047]
In the above-described second and third embodiments, the description has been given of the case where the instruction NOP which does nothing is executed. However, the present invention is not limited to this. For example, the instruction NOP is added to a certain variable. May be performed without effect.
Further, in the third embodiment, the instruction NOP which does nothing is repeated a predetermined number of times. However, the instruction NOP which does nothing has a required time equivalent to the required time when the instruction NOP is repeated a predetermined number of times. May be performed so as not to have an effect.
[0048]
Next, a fourth embodiment of the present invention will be described.
In the fourth embodiment, a waiting time table T3 shown in FIG. 7 is provided in place of the instruction table T2 in the third embodiment. In the waiting time table T3, as shown in FIG. 7, the instruction type addressed to the slave station is associated with the waiting time. The waiting time is set for each instruction type addressed to the slave station according to the time required from when the master station M executes the instruction to when the next instruction is executed.
[0049]
That is, in the third embodiment, the timing adjustment is performed by executing the instruction NOP which performs no operation a predetermined number of times. On the other hand, in the fourth embodiment, the timing adjustment is performed only for a predetermined waiting time. I'm waiting.
FIG. 8 is a flowchart illustrating a procedure of a control program execution process according to the fourth embodiment. The same reference numerals are given to the same processing units as those in the first embodiment.
[0050]
In the fourth embodiment, in the control program, the command is read (step S2). If the command is directed to a slave station, the process proceeds from step S4 to step S8 to refer to the axis information table T1. Then, it is determined whether the transmission destination slave station of the transmission command is valid or invalid. Moves from step S10 to step S14, and refers to the waiting time table T3 in FIG. 7 to search for a waiting time corresponding to the type of the specified instruction. Then, the process proceeds to step S15, and wait processing is performed for the waiting time searched in the processing of step S14. In other words, it waits without doing anything.
[0051]
Here, the waiting time set in the waiting time table T3 is set so as to correspond to the time required to execute the next instruction after executing the instruction addressed to the slave station. Therefore, the timing of executing the next instruction after the elapse of the designated waiting time is equivalent to the timing of executing the next instruction after executing the instruction addressed to the slave station.
[0052]
Therefore, in this case, the same operation and effect as those of the third embodiment can be obtained.
The wait process may be performed by a counter for a predetermined number of times. Therefore, a counter value may be set in the waiting time table T3.
[0053]
In each of the above embodiments, the case where the axis information table T1 is provided in the master station is described. However, the present invention is not limited to this. For example, the axis information table T1 may be provided in a storage device or the like. Any location may be provided as long as it can be referenced from the station M. Similarly, the instruction table T2 in the third embodiment and the waiting time table T3 in the fourth embodiment may be provided anywhere as long as the master station M can refer to them.
[0054]
Here, in each of the above embodiments, the axis information table T1 corresponds to the slave station information, and the processing of step S4 in FIGS. 3, 4, 6, and 8 corresponds to the instruction content determining means. The process of S10 corresponds to the invalidity judging unit, and the process of shifting from step S10 to step S2 through step S8 corresponds to the command non-execution control unit. The instruction table T2 in the third embodiment and the waiting time table T3 in the fourth embodiment correspond to instruction interval information.
[0055]
【The invention's effect】
As described above, according to the first aspect of the present invention, when the next instruction to be executed is an instruction for the slave station and is set as invalid in the slave station information, Since the next instruction is read without executing the instruction, even if the control system stops the control program when the instruction is issued to the slave station that is not connected, the slave station By setting the validity / invalidity in the information, it is possible to easily drive only some of the slave stations using the same control program.
[0056]
According to the control system of the second aspect, when the instruction destination slave station of the next instruction to be executed is set to be invalid in the slave station information, after executing the invalidation instruction for time adjustment, Since the instruction to read the next instruction is issued, it is possible to prevent the execution timing of the next instruction from being shifted due to not executing the instruction addressed to the slave station.
[0057]
According to the control system of the third aspect, a specified command interval set according to a required time from execution of an instruction to a slave station to execution of the next instruction, and a type of instruction to the slave station. Is set as instruction interval information, and when the instruction is directed to a slave station, a process having a required time corresponding to a prescribed instruction interval corresponding to this instruction is executed as an invalid instruction. Even when the required time varies depending on the type of instruction to the station, the time can be accurately adjusted.
[0058]
According to the control system of the fourth aspect, the number of times of execution of the invalid instruction is set as the specified instruction interval, and the invalid instruction is executed by the specified number of executions. Even in the case of a short time, the time adjustment for the required time corresponding to the specified instruction interval can be performed by repeatedly performing the invalid instruction.
According to the control system of the fifth aspect, since an instruction that does nothing is performed as the invalid instruction, the time can be easily adjusted without giving any adverse effect.
[0059]
Further, according to the control system of the sixth aspect, the wait processing is performed only for the time corresponding to the prescribed instruction interval corresponding to the instruction not executed as the invalid instruction, so that it is easier and more accurate without any adverse effect. Time adjustments can be made.
[Brief description of the drawings]
FIG. 1 is a configuration diagram illustrating an example of a numerical control system to which the present invention has been applied.
FIG. 2 is an example of an axis information table T1.
FIG. 3 is a flowchart illustrating an example of a processing procedure of a control program execution process according to the first embodiment.
FIG. 4 is a flowchart illustrating an example of a processing procedure of a control program execution process according to the second embodiment.
FIG. 5 is an example of an instruction table T2.
FIG. 6 is a flowchart illustrating an example of a processing procedure of a control program execution process according to a third embodiment.
FIG. 7 is an example of a waiting time table T3.
FIG. 8 is a flowchart illustrating an example of a processing procedure of a control program execution process according to a fourth embodiment.
FIG. 9 is an example of a conventional numerical control system.
[Explanation of symbols]
M master station
S1 to S4 slave station
T1 axis information table
T2 instruction table
T3 wait time table

Claims (6)

制御命令にしたがって被制御対象を制御する複数のスレーブ局と、
制御プログラムで指定される命令を順次読み出して実行すると共に、当該命令が前記スレーブ局に対する命令であるときにはこれを前記制御命令として該当するスレーブ局に対して命令するマスタ局と、を備えた制御システムにおいて、
前記各スレーブ局が有効であるか無効であるかを表すスレーブ局情報を有し、
前記マスタ局は、前記制御プログラムにおいて次に実行すべき次実行命令が、前記スレーブ局に対する命令であるかどうかを判断する命令内容判断手段と、
当該命令内容判断手段で、前記スレーブ局に対する命令であると判断されるとき、前記スレーブ局情報において、前記次実行命令の命令先のスレーブ局が無効に設定されているかどうかを判定する無効判定手段と、
当該無効判定手段で、前記命令先のスレーブ局が無効に設定されていることを検出したときには、前記次実行命令の実行を禁止し、その次の命令を読み出すよう指示する命令非実行制御手段と、を備えることを特徴とする制御システム。
A plurality of slave stations for controlling a controlled object according to a control command;
A master station for sequentially reading and executing instructions specified by the control program, and when the instruction is an instruction for the slave station, instructing the slave station as the control instruction. At
Having slave station information indicating whether each of the slave stations is valid or invalid,
The master station, instruction content determining means for determining whether the next execution instruction to be executed next in the control program is an instruction for the slave station,
When the instruction content determining means determines that the instruction is for the slave station, invalidity determining means for determining whether or not the slave station to which the next execution instruction is instructed is set to invalid in the slave station information. When,
When the invalidity determining means detects that the instruction destination slave station is set to invalid, execution of the next execution instruction is prohibited, and instruction non-execution control means for instructing to read out the next instruction is provided. , A control system comprising:
前記命令非実行制御手段は、前記無効判断手段で無効設定が行われていると判断したときには、予め設定した時間調整用の無効命令を実行した後、次の命令の読み出し指示を行うようになっていることを特徴とする請求項1記載の制御システム。When the instruction non-execution control means determines that the invalidity setting is performed by the invalidation determination means, the instruction non-execution control means executes a preset invalid instruction for time adjustment and then issues a read instruction of the next instruction. The control system according to claim 1, wherein スレーブ局に対する命令を実行してからその次の命令を実行するまでの所要時間に応じて設定した規定命令間隔を、スレーブ局に対する命令の種類毎に設定した命令間隔情報を有し、
前記命令非実行制御手段は、前記無効命令として、前記命令間隔情報に基づき特定される前記次実行命令に対応する規定命令間隔に相当する所要時間を有する処理を行うことを特徴とする請求項2記載の制御システム。
A specified instruction interval set according to a required time from execution of an instruction to the slave station to execution of the next instruction has instruction interval information set for each type of instruction to the slave station,
3. The method according to claim 2, wherein the instruction non-execution control unit performs, as the invalid instruction, a process having a required time corresponding to a specified instruction interval corresponding to the next execution instruction specified based on the instruction interval information. The control system as described.
前記規定命令間隔は、前記無効命令の実行回数であって、前記命令非実行制御手段は、指定された実行回数だけ前記無効命令を実行することを特徴とする請求項3記載の制御システム。4. The control system according to claim 3, wherein the prescribed instruction interval is the number of times the invalid instruction is executed, and the instruction non-execution control means executes the invalid instruction a specified number of times. 前記無効命令は、何もしない命令であることを特徴とする請求項2又は4記載の制御システム。The control system according to claim 2, wherein the invalid instruction is an instruction that does nothing. 前記命令非実行制御手段は、前記無効命令として、前記命令間隔情報に基づき特定される前記次実行命令に対応する規定命令間隔に相当する時間を待ち時間とするウェイト処理を行うことを特徴とする請求項3記載の制御システム。The instruction non-execution control means performs a wait process with a time corresponding to a specified instruction interval corresponding to the next execution instruction specified based on the instruction interval information as the invalid instruction, as a waiting time. The control system according to claim 3.
JP2002360947A 2002-12-12 2002-12-12 Control system Expired - Lifetime JP4089415B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002360947A JP4089415B2 (en) 2002-12-12 2002-12-12 Control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002360947A JP4089415B2 (en) 2002-12-12 2002-12-12 Control system

Publications (2)

Publication Number Publication Date
JP2004192432A true JP2004192432A (en) 2004-07-08
JP4089415B2 JP4089415B2 (en) 2008-05-28

Family

ID=32759867

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002360947A Expired - Lifetime JP4089415B2 (en) 2002-12-12 2002-12-12 Control system

Country Status (1)

Country Link
JP (1) JP4089415B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014146070A (en) * 2013-01-25 2014-08-14 Omron Corp Control device, control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014146070A (en) * 2013-01-25 2014-08-14 Omron Corp Control device, control method, and program

Also Published As

Publication number Publication date
JP4089415B2 (en) 2008-05-28

Similar Documents

Publication Publication Date Title
CN100382033C (en) Computer system
US20140364989A1 (en) Controller for controlling machine tool and robot
JP2005302024A5 (en)
CN101395577A (en) Method for evaluating, an automation system, and a controller
WO2014118918A1 (en) Numerical control device
JPH09128255A (en) Programable logic controller
JP4697314B2 (en) Duplex field controller
JP2004192432A (en) Control system
US20190033834A1 (en) Slave device, industrial network system, and method of controlling slave device
US10295978B2 (en) Engineering device, engineering system, and download processing method
JP2003153442A (en) Monitor and control system and program for electric power distribution equipment
EP4272037A1 (en) Plc-based support for zero-downtime upgrades of control functions
US20100180279A1 (en) Field control device and field control method
JP2000181525A (en) Positioning device
JP4499233B2 (en) Distributed control system
JPH0969007A (en) Multi-robot reproduction control system
CN115328065A (en) Method for automatically migrating control unit functions applied to industrial control system
JPH08286717A (en) Numerical control device
JP2007316986A (en) System lsi
JP2830742B2 (en) Line-adaptive control function batch conversion method
JP2005182581A (en) Servo control device and servo control switching method
JPH07287660A (en) Interruption processing method for programmable controller
CN116610351A (en) Service side hot upgrading method, terminal equipment and computer readable storage medium
JPH11224126A (en) Motion controller
JPH11134008A (en) Programmable controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20051017

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070921

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071002

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080205

A61 First payment of annual fees (during grant procedure)

Effective date: 20080218

Free format text: JAPANESE INTERMEDIATE CODE: A61

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110307

Year of fee payment: 3

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

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20110307

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20110307

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110307

Year of fee payment: 3

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

Year of fee payment: 4

Free format text: PAYMENT UNTIL: 20120307

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

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130307

Year of fee payment: 5