JP2015229462A - Synchronization system - Google Patents
Synchronization system Download PDFInfo
- Publication number
- JP2015229462A JP2015229462A JP2014117612A JP2014117612A JP2015229462A JP 2015229462 A JP2015229462 A JP 2015229462A JP 2014117612 A JP2014117612 A JP 2014117612A JP 2014117612 A JP2014117612 A JP 2014117612A JP 2015229462 A JP2015229462 A JP 2015229462A
- Authority
- JP
- Japan
- Prior art keywords
- cycle
- safety
- synchronization
- value
- timer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
この発明は、複数の装置が共通の同期信号に同期して周期的な処理を行う同期システムに係り、特に複数の安全装置が同期してサーボやインバータなどのドライブ装置の安全制御を行う同期システムに関する。 The present invention relates to a synchronization system in which a plurality of devices perform periodic processing in synchronization with a common synchronization signal, and in particular, a synchronization system in which a plurality of safety devices synchronize to perform safety control of a drive device such as a servo or an inverter. About.
各々安全装置を備えた複数の安全ドライブ装置を用い、各安全ドライブ装置の安全装置にコントローラからの安全指令を与えて安全制御を行わせる安全ドライブシステムがある。また、この種の安全ドライブシステムには、更に安全性能を高めるために、複数の安全装置が互いの状態を相互にチェックして、状態が一致しない場合に安全制御を行うようにしたものがある。そして、従来技術としては、複数の安全装置間で同期を取らずに安全制御する方法が一般的である(特許文献1)。複数の安全装置間の同期を取る技術としては、上位のコントローラから同期基準信号を出力し、下位サーボ装置ではその同期基準信号を同期補正割込みとして使用し、サーボ装置内部の定周期カウンタ値を修正して同期補正する方法が提案されている(特許文献2)。 There is a safety drive system that uses a plurality of safety drive devices each having a safety device, and performs safety control by giving a safety command from a controller to the safety device of each safety drive device. In addition, in this type of safety drive system, there is a system in which a plurality of safety devices check each other's status to perform safety control when the status does not match in order to further improve safety performance. . And as a prior art, the method of performing safety control without synchronizing between several safety devices is common (patent document 1). As a technology to synchronize multiple safety devices, a synchronization reference signal is output from the host controller, and the lower-level servo device uses the synchronization reference signal as a synchronization correction interrupt to correct the fixed-cycle counter value inside the servo device. Thus, a method of synchronous correction has been proposed (Patent Document 2).
ところで、特許文献1に開示されているように冗長化した複数の安全装置間で同期を取らない場合、安全装置の電源投入の時間差や、安全装置間の動作クロックのばらつきにより、各安全装置間で周期的な安全処理が非同期に実行される。しかし、安全制御レベルを高めるために、各安全装置間で互いの状態の一致確認をする必要がある。この場合、安全装置間で同期していないと、ウエイト時間をおいてからでないと状態一致の確認を正しくすることができないため、非常時の安全制御が遅れる。このため、安全制御が実行されるまでの遅れ分の非安全時間が生じることになり、安全性を確保することが困難である。
By the way, when synchronization is not achieved between a plurality of redundant safety devices as disclosed in
そこで、特許文献2に開示されているように、各安全装置の安全制御のための周期処理を上位のコントローラからの同期基準信号に同期させる構成を採ることが考えられる。しかし、通常、コントローラが出力する同期信号の周期は、安全ドライブ装置内のドライブ装置がモータ駆動制御などを行う周期に合わせて短くする必要がある。これに対し、安全装置の安全処理では、安全状態の複数回一致チェックやさまざまな安全状態の診断を行う。従って、安全装置による安全処理の処理周期は、同期信号の周期に比べて長くなる。このように安全処理の処理周期が同期信号の周期よりも長くなると、複数の安全装置間で処理周期の開始タイミングが不揃いとなる場合がある。
Therefore, as disclosed in
図9は安全ドライブシステムにおける複数の安全装置の動作例を示すタイムチャートである。この例では、コントローラが出力する同期信号φに対して、2台の安全装置が各々の処理周期の開始タイミングP1およびP2を同期させている。安全装置の処理周期が同期信号φの周期よりも長い場合、各安全装置の処理周期の開始タイミングは、図示の例のように同期信号φの周期単位でずれる可能性がある。そして、各安全装置の処理周期の開始タイミングが不揃いである場合には、ウエイト時間が経過してからでないと各安全装置間で互いの状態の一致確認をすることができないため、非常時の安全制御が遅れる問題が生じる。 FIG. 9 is a time chart showing an operation example of a plurality of safety devices in the safety drive system. In this example, two safety devices synchronize the start timings P1 and P2 of each processing cycle with respect to the synchronization signal φ output from the controller. When the processing cycle of the safety device is longer than the cycle of the synchronization signal φ, the start timing of the processing cycle of each safety device may be shifted in units of the cycle of the synchronization signal φ as illustrated in the example. If the start timings of the processing cycles of each safety device are not uniform, the safety devices cannot confirm the status of each other until the wait time has elapsed. There is a problem that control is delayed.
以上、複数の安全装置を有する安全ドライブシステムを例に説明したが、この問題は、この種のシステムに限らず、複数の装置が共通の同期信号に同期して周期処理を繰り返す他のシステムにおいても起こり得る問題である。 In the above, a safety drive system having a plurality of safety devices has been described as an example. However, this problem is not limited to this type of system, but in other systems in which a plurality of devices repeat periodic processing in synchronization with a common synchronization signal. Is also a possible problem.
この発明は以上のような事情に鑑みてなされたものであり、共通の同期信号に同期し、同期信号の周期よりも長い処理周期で周期処理を実行する複数の装置を同期化させる技術的手段を提供することを目的としている。 The present invention has been made in view of the circumstances as described above, and is a technical means for synchronizing a plurality of devices that synchronize with a common synchronization signal and perform periodic processing with a processing cycle longer than the cycle of the synchronization signal. The purpose is to provide.
この発明は、各々、周期的な同期信号に同期し、該同期信号の周期のk倍(kは2以上の整数)の処理周期で周期的に動作するマスタ装置とスレーブ装置とを有し、前記マスタ装置は、当該マスタ装置の処理周期の開始タイミングを示す同期指示信号を送信する送信手段を具備し、前記スレーブ装置は、前記同期指示信号の発生タイミングの所定範囲内において発生する同期信号に当該スレーブ装置の処理周期を同期させる周期タイミング補正手段を具備することを特徴とする同期システムを提供する。 The present invention includes a master device and a slave device that are each synchronized with a periodic synchronization signal and periodically operate at a processing cycle k times (k is an integer of 2 or more) the period of the synchronization signal. The master device includes transmission means for transmitting a synchronization instruction signal indicating a start timing of the processing cycle of the master device, and the slave device generates a synchronization signal generated within a predetermined range of the generation timing of the synchronization instruction signal. Provided is a synchronization system comprising period timing correction means for synchronizing the processing period of the slave device.
この発明によれば、マスタ装置およびスレーブ装置の処理周期が同期信号の周期よりも長い場合においても、マスタ装置およびスレーブ装置の処理周期を同期信号に同期させ、かつ、マスタ装置およびスレーブ装置の処理周期を互いに同期させることができる。 According to the present invention, even when the processing cycle of the master device and the slave device is longer than the cycle of the synchronization signal, the processing cycle of the master device and the slave device is synchronized with the synchronization signal, and the processing of the master device and the slave device is performed. The periods can be synchronized with each other.
以下、図面を参照し、この発明の実施形態について説明する。
図1はこの発明による同期システムの一実施形態である安全ドライブシステムの構成を示すブロック図である。図1に示すように、この安全ドライブシステムは、コントローラ1と、サーボ、インバータなどの安全ドライブ装置3A〜3Cと、安全ドライブ装置3A〜3Cに各々接続された制御対象機器であるモータ4A〜4Cを有する。図示の例では、3台の安全ドライブ装置が安全ドライブシステムに設けられているが、3台以外の安全ドライブ装置を設けてもよい。コントローラ1と安全ドライブ装置3A〜3Cとの間にはネットワーク2が介在している。コントローラ1は、ネットワーク2を介して一定周期Tの同期信号φを安全ドライブ装置3A〜3Cに供給する。また、コントローラ1と安全ドライブ装置3A〜3Cの各々は、ネットワーク2を介してデータの授受を行う。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a safe drive system which is an embodiment of a synchronization system according to the present invention. As shown in FIG. 1, this safety drive system includes a
図1に示すように、安全ドライブ装置3Aは、通信装置3A−1と、ドライブ装置3A−2と、安全装置3A−3を有する。
As shown in FIG. 1, the
通信装置3A−1は、コントローラ1と、ネットワーク2を介して通信するための装置である。この通信装置3A−1は、コントローラ1から受信した同期信号φや通信データをドライブ装置3A−2または安全装置3A−3に振り分ける。また、通信装置3A−1は、ドライブ装置3A−2または安全装置3A−3から与えられた通信データをコントローラ1に送信する。
The
ドライブ装置3A−2は、例えばコントローラ1からネットワーク2、通信装置3A−1を経由して受信したドライブ指令に基づいてモータ4Aを制御する。ドライブ装置3A−2は、モータ4Aの制御を、コントローラ1からネットワーク2、通信装置3A−1を経由して受信される同期信号φに同期して実行する。
The
安全装置3A−3は、例えばコントローラ1からネットワーク2、通信装置3A−1を経由して受信した安全指令に基づいてモータ4Aを安全停止させる等の安全処理を実行する。さらに詳述すると、安全装置3A−3は、この安全処理をコントローラ1からネットワーク2、通信装置3A−1を経由して受信される同期信号φに同期し、かつ、同期信号φの周期Tのk倍(kは2以上の整数)の処理周期kTで繰り返す。
The
以上が安全ドライブ装置3Aの構成である。安全ドライブ装置3Bおよび3Cも、安全ドライブ装置3Aと基本的に同様な構成を有しているが、安全ドライブ装置3Aと安全ドライブ装置3Bおよび3Cとでは安全装置の機能が異なっている。すなわち、安全ドライブ装置3Aの安全装置3A−3はマスタ安全装置として機能するのに対し、安全ドライブ装置3Bおよび3Cの安全装置3B−3および3C−3(図示略)はスレーブ安全装置として機能する。
The above is the configuration of the
図2はマスタ安全装置3A−3の構成を示すブロック図である。図2に示すように、マスタ安全装置3A−3は、周期タイマ3A−3−1と、同期信号取得手段3A−3−2と、周期タイミング補正手段3A−3−3と、マルチキャスト送信手段3A−3−4とを有する。
FIG. 2 is a block diagram showing the configuration of the
周期タイマ3A−3−1は、予め与えられた開始値からタイムアップ値までのカウントを繰り返すことによりマスタ安全装置3A−3の安全処理の処理周期kTの計時を繰り返すアップカウンタである。また、同期信号取得手段3A−3−2は、コントローラ1からの同期信号φの受信時の周期タイマ3A−3−1のタイマ値をキャプチャする。
The
周期タイミング補正手段3A−3−3およびマルチキャスト送信手段3A−3−4は、周期タイマ3A−3−1のタイマ値がタイムアップ値に到達する都度起動される手段である。
Periodic timing correction means 3A-3-3 and multicast transmission means 3A-3-4 are activated whenever the timer value of
周期タイミング補正手段3A−3−3は、起動される都度、その時点において同期信号取得手段3A−3−2にキャプチャされたタイマ値を確認し、タイマ値に応じて周期タイマ3A−3−1のタイムアップ値を変化させ、周期処理を変える。具体的には、タイムアップ値をTUとした場合、タイマ値が例えばTU/2〜TU−α(αは十分に小さな所定値)の間の値であればタイムアップ値TUを規定値から所定値ΔTUだけ小さくし、タイマ値が例えばα〜TU/2の間の値であればタイムアップ値TUを規定値から所定値ΔTUだけ大きくする。
Each time the cycle
周期タイミング補正手段3A−3−3は、このような処理をタイムアップの都度繰り返すことにより、周期タイマ3A−3−1のタイマ値が開始値となるタイミングを同期信号φの受信タイミングに接近させ、マスタ安全装置3A−3の処理周期を同期信号φに同期させる。
The cycle timing correction means 3A-3-3 repeats such processing every time up, thereby bringing the timing at which the timer value of the
マルチキャスト送信手段3A−3−4は、起動される都度、マルチキャスト信号MCを通信装置3A−1を介して2のネットワークに送出する。上述したようにマルチキャスト送信手段3A−3−4は、周期タイマ3A−3−1のタイマ値がタイムアップ値に到達する都度起動される。従って、マルチキャスト送信手段3A−3−4が送信するマルチキャスト信号MCは、マスタ安全装置3A−3の処理周期の開始タイミングを示す同期指示信号としての役割を果たす。
Each time the
図3はスレーブ安全装置3B−3の構成を示すブロック図である。なお、ここではスレーブ安全装置3B−3の構成を例示するが、スレーブ安全装置3C−3の構成も、このスレーブ安全装置3B−3と同様である。
FIG. 3 is a block diagram showing the configuration of the
図3に示すように、スレーブ安全装置3B−3は、周期タイマ3B−3−1と、同期信号取得手段3B−3−2と、マルチキャスト取得手段3B−3−4と、周期タイミング補正手段3B−3−3とを有する。
As shown in FIG. 3, the
周期タイマ3B−3−1は、マスタ安全装置3A−3の周期タイマ3A−3−1と同様、予め与えられた開始値からタイムアップ値までのカウントを繰り返すことによりスレーブ安全装置3B−3の安全処理の処理周期kTの計時を繰り返すアップカウンタである。
The
同期信号取得手段3B−3−2は、コントローラ1からの同期信号φの受信時の周期タイマ3B−3−1のタイマ値T1をキャプチャする。マルチキャスト取得手段3B−3−4は、ネットワーク2から通信装置3B−1を介してマルチキャスト信号MCを取得し、その時点における周期タイマ3B−3−1のタイマ値T2をキャプチャする。
The synchronization
周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1がタイムアップする都度起動される手段である。この周期タイミング補正手段3B−3−3は、起動される都度、その時点におけるタイマ値T1およびT2を確認し、その結果に基づいて、周期タイマ3B−3−1のタイムアップ値を制御する。そして、周期タイミング補正手段3B−3−3は、このタイマ値T1およびT2に基づくタイムアップ値の制御を繰り返すことにより、周期タイマ3B−3−1のタイマ値が開始値となるタイミングをマルチキャスト信号MCの発生タイミングの所定範囲内において発生する同期信号φのタイミングに同期させる。
The cycle
図4はスレーブ安全装置3B−3の動作の概略を示すタイムチャートである。この例において、同期信号φの周期はT、マスタ安全装置3A−3およびスレーブ安全装置3B−3の処理周期の長さは4Tとなっている。そして、マスタ安全装置3A−3のマルチキャスト送信手段3A−3−4は、マスタ安全装置3A−3の処理周期の開始タイミングPmにおいて、マルチキャスト信号MCをネットワーク2に送出する。
FIG. 4 is a time chart showing an outline of the operation of the
スレーブ安全装置3B−3の周期タイミング補正手段3B−3−3は、マルチキャスト信号MCとともに発生する同期信号φにスレーブ安全装置3B−3の処理周期の開始タイミングPsを同期させるための同期化処理を実行する。周期タイミング補正手段3B−3−3は、この同期化処理を2段階に分けて行う。
The cycle timing correction means 3B-3-3 of the
まず、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1が計時する処理周期の開始タイミングPsをマルチキャスト信号MCの発生タイミングの前後所定範囲内に接近させる第1の処理を行う。この第1の処理の内容は次の通りである。
First, the cycle timing correction means 3B-3-3 performs a first process for bringing the start timing Ps of the processing cycle timed by the
まず、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1がタイムアップとなって起動された時点において、タイマ値T1およびT2の差分の絶対値を確認する。
First, the cycle timing correction means 3B-3-3 confirms the absolute value of the difference between the timer values T1 and T2 at the time when the
ここで、周期タイマ3B−3−1が計時する処理周期の開始タイミングPsがマルチキャスト信号MCの発生タイミングに接近しており、マルチキャスト信号MCの発生タイミングから処理周期の開始タイミング(すなわち、周期タイミング補正手段3B−3−3の起動タイミング)までの間に同期信号φが発生しないような場合、周期タイミング補正手段3B−3−3の起動タイミングにおいてタイマ値T1およびT2は極めて接近した値になる。
Here, the processing cycle start timing Ps timed by the
一方、周期タイマ3B−3−1が計時する処理周期の開始タイミングPsがマルチキャスト信号MCの発生タイミングから離れており、マルチキャスト信号MCの発生タイミングから処理周期の開始タイミングPsまでの間に例えば1〜3回に亙って同期信号φが発生しているような場合、周期タイミング補正手段3B−3−3の起動タイミングにおいてタイマ値T1およびT2間の差分は大きな値(例えばTより大きな値)となる。
On the other hand, the start timing Ps of the processing cycle timed by the
そこで、周期タイミング補正手段3B−3−3は、第1の処理において、タイマ値T1およびT2の差分の絶対値を確認し、この絶対値が所定の閾値より大きい場合に、周期タイマ3B−3−1のタイムアップ値を規定値から所定方向に所定量だけ変化させ、周期タイマ3B−3−1が計時する処理周期の開始タイミングPsをマルチキャスト信号MCの発生タイミングに接近させるのである。
Therefore, the cycle timing correction means 3B-3-3 confirms the absolute value of the difference between the timer values T1 and T2 in the first process, and if this absolute value is larger than a predetermined threshold value, the
図4に示す例では、周期タイミング補正手段3B−3−3が起動された時刻t1において、タイマ値T1およびT2の差分が閾値よりも大きかったため、周期タイマ3B−3−1のタイムアップ値を規定値から所定値ΔTaだけ減少させている。このため、スレーブ安全装置の処理周期は4TよりもΔTaだけ短くなり、時刻t2において周期タイミング補正手段3B−3−3が起動される。
In the example shown in FIG. 4, since the difference between the timer values T1 and T2 is larger than the threshold at the time t1 when the cycle
この時刻t2では、タイマ値T1およびT2の差分の絶対値が閾値以下となっている。従って、時刻t2では、周期タイマ3B−3−1の処理周期の開始タイミングPsがマルチキャスト信号の発生タイミングの前後所定範囲内に接近した状態になっているといえる。そこで、周期タイミング補正手段3B−3−3は、時刻t2では第1の処理を実行せず、第2の処理を実行する。
At the time t2, the absolute value of the difference between the timer values T1 and T2 is equal to or less than the threshold value. Therefore, at time t2, it can be said that the start timing Ps of the processing cycle of the
次に第2の処理について説明する。周期タイミング補正手段3B−3−3は、この第2の処理において、タイマ値T1に基づいて、周期タイマ3B−3−1のタイムアップ値を規定値から所定値ΔTbだけ増減させ、周期タイマ3B−3−1が計時する処理周期の開始タイミングPsを発生する同期信号φの発生タイミングに接近させる。
Next, the second process will be described. In this second process, the cycle timing correction means 3B-3-3 increases or decreases the time-up value of the
ここで、ΔTbはΔTaよりも小さな値である。また、タイムアップ値を規定値から増加させるか減少させるかは、タイマ値T1に基づいて決定する。具体的には、タイムアップ値をTUとした場合、例えばタイマ値T1がTU/2〜TU−α(αは十分に小さな所定値)の間の値であればタイムアップ値TUを規定値から所定値ΔTUだけ小さくし、タイマ値T1が例えばα〜TU/2の間の値であればタイムアップ値TUを規定値から所定値ΔTUだけ大きくする。 Here, ΔTb is a value smaller than ΔTa. Whether to increase or decrease the time-up value from the specified value is determined based on the timer value T1. Specifically, when the time-up value is TU, for example, if the timer value T1 is a value between TU / 2 and TU-α (α is a sufficiently small predetermined value), the time-up value TU is set from a specified value. If the timer value T1 is a value between α and TU / 2, for example, the time-up value TU is increased from the specified value by the predetermined value ΔTU.
図4に示す例では、周期タイミング補正手段3B−3−3が起動された時刻t2において、タイマ値T1およびT2の差分が閾値以下であり、タイマ値T1がTU/2〜TU−αの間の値となっている。このため、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値から所定値ΔTbだけ減少させている。この結果、スレーブ安全装置の処理周期は4TよりもΔTbだけ短くなり、時刻t3において周期タイミング補正手段3B−3−3が起動される。このようにして周期タイマ3B−3−1が計時する処理周期の開始タイミングPsがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングにさらに接近する。
In the example shown in FIG. 4, at the time t2 when the cycle
しかし、周期タイミング補正手段3B−3−3が起動される時刻t3において、タイマ値T1は、依然としてTU/2〜TU−αの間の値である。そこで、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値から所定値ΔTbだけ減少させている。
However, at the time t3 when the cycle
この結果、周期タイミング補正手段3B−3−3は、時刻t4において起動される。この時刻t4において、タイマ値T1は、例えばTU−α〜TUの間の値である。そこで、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値とする。
As a result, the cycle
このように第2の処理が繰り返されることにより周期タイマ3B−3−1が計時する処理周期の開始タイミングPsがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングに同期する。
以上がスレーブ安全装置3B−3の動作の概略である。
By repeating the second process in this manner, the start timing Ps of the processing cycle timed by the
The above is the outline of the operation of the
次に図5〜図8を参照し、本実施形態の詳細な動作を説明する。
図5はスレーブ安全装置3B−3の同期信号取得手段3B−3−2が実行するルーチンの処理内容を示すフローチャートである。図5に示すように、同期信号取得手段3B−3−2は、常時、コントローラ1からの同期信号φが受信されるか否かの判定を行っている(ステップS11)。そして、同期信号φの受信を検知した場合、同期信号取得手段3B−3−2は、その時点における周期タイマ3B−3−1のタイマ値をキャプチャし、タイマ値T1として保持する(ステップS12)。
Next, the detailed operation of the present embodiment will be described with reference to FIGS.
FIG. 5 is a flowchart showing the processing contents of a routine executed by the synchronization signal acquisition means 3B-3-2 of the
図6はスレーブ安全装置3B−3のマルチキャスト取得手段3B−3−4が実行するルーチンの処理内容を示すフローチャートである。図6に示すように、マルチキャスト取得手段3B−3−4は、常時、マスタ安全装置3A−3からのマルチキャスト信号MCが受信されるか否かの判定を行っている(ステップS21)。そして、マルチキャスト信号MCの受信を検知した場合、マルチキャスト取得手段3B−3−4は、その時点における周期タイマ3B−3−1のタイマ値をキャプチャし、タイマ値T2として保持する(ステップS22)。
FIG. 6 is a flowchart showing the processing contents of a routine executed by the multicast acquisition means 3B-3-4 of the
図7はスレーブ安全装置3B−3の周期タイミング補正手段3B−3−3が実行するルーチンの処理内容を示すフローチャートである。周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップにより起動されると、まず、タイマ値T1およびT2の差分の絶対値ΔTを算出する(ステップS31)。次に周期タイミング補正手段3B−3−3は、この絶対値ΔTが閾値T/3以下か否かを判断する(ステップS32)。この判断結果が「NO」である場合、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値から所定量だけ減少させる第1の処理を実行し(ステップS33)、このルーチンを終了する。
FIG. 7 is a flowchart showing the processing contents of a routine executed by the cycle timing correction means 3B-3-3 of the
一方、ステップS32の判断結果が「YES」である場合、周期タイミング補正手段3B−3−3は、以下説明するように第2の処理を実行する。まず、周期タイミング補正手段3B−3−3は、タイマ値T1が同期範囲内の値か否かを判断する(ステップS34)。具体的には、周期タイマ3B−3−1のタイムアップ値をTUとした場合、タイマ値T1がTU−α〜TUの間の値または0〜αの間の値であるか否かを判断する。
On the other hand, when the determination result of step S32 is “YES”, the cycle
この判断結果が「NO」である場合、周期タイミング補正手段3B−3−3は、上述したようにタイマ値T1に基づいて周期タイマ3B−3−1のタイムアップ値を規定値から増加させ、または減少させる(ステップS35)。そして、図7に示すルーチンを終了する。
When the determination result is “NO”, the cycle
これに対し、ステップS34の判断結果が「YES」である場合、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値とし(ステップS36)、図7に示すルーチンを終了する。
On the other hand, if the determination result in step S34 is “YES”, the cycle timing correction means 3B-3-3 sets the time-up value of the
図8(a)および(b)は本実施形態の動作例を示すタイムチャートである。図8(a)および(b)にはコントローラ1が出力する同期信号φと、マスタ安全装置3A−3が出力するマルチキャスト信号MCと、スレーブ安全装置3B−3の周期タイマ3B−3−1のタイマ値TCの波形が示されている。また、図8(a)および(b)において、タイムアップ値の規定値は4Tである。
8A and 8B are time charts showing an operation example of the present embodiment. 8A and 8B show the synchronization signal φ output from the
図8(a)に示す例では、時刻t11において周期タイミング補正手段3B−3−3が起動されたとき、タイマ値T1およびT2間の差分の絶対値はTであり、閾値T/3より大きい。このため、時刻t11において周期タイミング補正手段3B−3−3は、第1の処理を実行し、周期タイマ3B−3−1のタイムアップ値を規定値からΔTa=T/2だけ減少させ、タイムアップ値を4T−T/2としている。この第1の処理が実行されると、周期タイマ3B−3−1のタイムアップのタイミングがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングに近づく。この例では、マルチキャスト信号MCとともに発生する同期信号φの発生タイミングの後、後続の同期信号φが発生する前の時刻t12において、周期タイマ3B−3−1がタイムアップし、周期タイミング補正手段3B−3−3が起動される。
In the example shown in FIG. 8A, when the cycle
この時刻t12では、タイマ値T1およびT2間の差分の絶対値は閾値T/3以下(図示の例ではほぼ0)となっている。そこで、周期タイミング補正手段3B−3−3は、第1の処理を実行せず、第2の処理を実行する。この第2の処理において、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値からΔTbだけ減少させ、タイムアップ値を4T−ΔTbとしている。
At this time t12, the absolute value of the difference between the timer values T1 and T2 is equal to or less than the threshold T / 3 (in the illustrated example, substantially 0). Therefore, the cycle
その後、時刻t13、時刻t14においても、タイマ値T1が同期範囲内の値でないことから、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値からΔTbだけ減少させ、タイムアップ値を4T−ΔTbとしている。この処理が繰り返されることにより、周期タイマ3B−3−1のタイムアップのタイミングがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングに近づいてゆく。そして、タイマ値T1が同期範囲内の値になった場合、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値4Tとする。
Thereafter, at time t13 and time t14, since the timer value T1 is not within the synchronization range, the cycle
図8(b)に示す例では、時刻t21において周期タイミング補正手段3B−3−3が起動されたとき、タイマ値T1およびT2間の差分の絶対値は2Tであり、閾値T/3より大きい。このため、時刻t21において周期タイミング補正手段3B−3−3は、第1の処理を実行し、周期タイマ3B−3−1のタイムアップ値を規定値からΔTa=T/2だけ減少させている。この第1の処理が実行されると、周期タイマ3B−3−1のタイムアップのタイミングがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングに近づく。
In the example shown in FIG. 8B, when the cycle
次に時刻t22において周期タイマ3B−3−1のタイムアップにより周期タイミング補正手段3B−3−3が起動されたとき、タイマ値T1およびT2間の差分の絶対値はTとなっており、依然として閾値T/3より大きい。このため、時刻t22において周期タイミング補正手段3B−3−3は、第1の処理を実行し、周期タイマ3B−3−1のタイムアップ値を規定値からΔTa=T/2だけ減少させている。
Next, when the cycle timing correction means 3B-3-3 is activated by the time-up of the
次に時刻t23において周期タイマ3B−3−1のタイムアップにより周期タイミング補正手段3B−3−3が起動されたとき、タイマ値T1およびT2間の差分は依然としてTとなっており、閾値T/3より大きい。このため、時刻t23において周期タイミング補正手段3B−3−3は、第1の処理を実行し、周期タイマ3B−3−1のタイムアップ値を規定値からΔTa=T/2だけ減少させている。
Next, when the cycle timing correction means 3B-3-3 is activated due to time-up of the
次に時刻t24において周期タイマ3B−3−1のタイムアップにより周期タイミング補正手段3B−3−3が起動されたとき、タイマ値T1およびT2間の差分の絶対値は閾値以下(図示の例ではほぼ0)となっている。このため、時刻t23において周期タイミング補正手段3B−3−3は、第1の処理を実行せず、第2の処理を実行し、周期タイマ3B−3−1のタイムアップ値を規定値からΔTbだけ減少させている。
Next, when the cycle
その後、時刻t25において周期タイマ3B−3−1のタイムアップにより周期タイミング補正手段3B−3−3が起動されたときも、第2の処理が実行される。
Thereafter, the second process is also executed when the cycle
このようにして周期タイマ3B−3−1のタイムアップのタイミングがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングに近づいてゆく。
In this way, the timing of the time-up of the
以上のように、本実施形態によれば、コントローラ1からの同期信号φの周期Tよりもマスタ安全装置およびスレーブ安全装置の処理周期が長い場合であっても、マスタ安全装置の処理周期を同期信号φに同期させ、かつ、スレーブ安全装置の処理周期をマスタ安全装置の処理周期に同期させることができる。従って、例えば故障発生時に複数の安全ドライブ装置を、ほとんど時間ロス無く、同時に安全停止させることや、順番に停止させることが可能になり、安全性を高めることができる。
As described above, according to the present embodiment, even when the processing cycle of the master safety device and the slave safety device is longer than the cycle T of the synchronization signal φ from the
また、本実施形態においてスレーブ安全装置の周期タイミング補正手段3B−3−3は、第1の処理により、処理周期の開始タイミングをマルチキャスト信号MCの発生タイミングの前後所定範囲内に移動させた状態において、第2の処理により処理周期の開始タイミングを同期信号に同期させる制御を行う。このように本実施形態では、最終的に処理周期の開始タイミングを同期信号に同期させるため、処理周期の開始タイミングのジッタを少なくし、処理周期の同期化制御を安定化させることができる。さらに詳述すると、マスタ安全装置は、当該マスタ安全装置の処理周期を可変制御することにより処理周期を同期信号に同期させているため、この処理周期の開始タイミングにジッタが生じる。このため、マスタ安全装置の処理周期の開始タイミングを示すマルチキャスト信号の発生タイミングにもジッタが生じる。従って、仮にスレーブ安全装置の処理周期をマルチキャスト信号MCに同期させたとすると、スレーブ装置の処理周期の開始タイミングに大きなジッタが生じ、処理周期の同期化制御が不安定になる可能性がある。しかしながら、本実施形態では、上述のように最終的には第2の処理によりスレーブ安全装置の処理周期の開始タイミングを同期信号に同期させる。従って、スレーブ安全装置の処理周期の開始タイミングのジッタを少なくし、同期化制御を安定化させることができる。 In the present embodiment, the cycle timing correction means 3B-3-3 of the slave safety device moves the start timing of the processing cycle within a predetermined range before and after the generation timing of the multicast signal MC by the first processing. The second process performs control to synchronize the start timing of the processing cycle with the synchronization signal. Thus, in this embodiment, since the start timing of the processing cycle is finally synchronized with the synchronization signal, the jitter of the start timing of the processing cycle can be reduced, and the synchronization control of the processing cycle can be stabilized. More specifically, since the master safety device synchronizes the processing cycle with the synchronization signal by variably controlling the processing cycle of the master safety device, jitter occurs at the start timing of the processing cycle. For this reason, jitter also occurs in the generation timing of the multicast signal indicating the start timing of the processing cycle of the master safety device. Therefore, if the processing cycle of the slave safety device is synchronized with the multicast signal MC, a large jitter occurs in the start timing of the processing cycle of the slave device, and the synchronization control of the processing cycle may become unstable. However, in the present embodiment, the start timing of the processing cycle of the slave safety device is finally synchronized with the synchronization signal by the second process as described above. Accordingly, it is possible to reduce the jitter at the start timing of the processing cycle of the slave safety device and stabilize the synchronization control.
また、本実施形態においてスレーブ安全装置の周期タイミング補正手段3B−3−3は、起動される都度、常にタイマ値T1およびT2の差分の絶対値を確認し、絶対値が閾値よりも大きい場合に、処理周期の開始タイミングをマルチキャスト信号MCの発生タイミングの前後所定範囲内に移動させる第1の処理を行う。従って、例えば同期信号が一時的にスレーブ安全装置に届かなくなって同期外れが発生し、スレーブ安全装置の処理周期の開始タイミングがマルチキャスト信号の発生タイミングから大きく離れたとしても、同期信号の供給再開後、直ちに第1の処理により処理周期の開始タイミングをマルチキャスト信号MCの発生タイミングの前後所定範囲内に移動させることができる。従って、本実施形態によれば、スレーブ安全装置を同期外れから迅速に復帰させることができる。 Further, in this embodiment, the cycle timing correction means 3B-3-3 of the slave safety device always checks the absolute value of the difference between the timer values T1 and T2 every time it is activated, and when the absolute value is larger than the threshold value. Then, the first process of moving the start timing of the processing cycle to a predetermined range before and after the generation timing of the multicast signal MC is performed. Therefore, for example, even if the synchronization signal temporarily fails to reach the slave safety device and a loss of synchronization occurs, and the start timing of the processing cycle of the slave safety device is far from the generation timing of the multicast signal, The start timing of the processing cycle can be immediately moved within a predetermined range before and after the generation timing of the multicast signal MC by the first processing. Therefore, according to the present embodiment, the slave safety device can be quickly returned from being out of synchronization.
<他の実施形態>
以上、この発明の一実施形態を説明したが、この発明には他にも実施形態が考えられる。例えば次の通りである。
<Other embodiments>
Although one embodiment of the present invention has been described above, other embodiments are conceivable for the present invention. For example:
(1)上記実施形態における周期タイミング補正手段3B−3−3は、タイマ値T1およびT2の差分の絶対値が閾値より大きい場合に、周期タイマ3B−3−1のタイムアップ値を規定値からΔTaだけ減少させた。しかし、このようにする代わりに、タイマ値T1およびT2の差分の絶対値が閾値より大きい場合に、周期タイマ3B−3−1のタイムアップ値を規定値からΔTaだけ増加させてもよい。すなわち、タイマ値T1およびT2の差分の絶対値が閾値より大きい期間は、規定値からの変化の方向を固定し、常に一定方向に変化させれば、マルチキャスト信号MCとともに発生する同期信号φの発生タイミングから所定範囲内に周期タイマ3B−3−1のタイムアップのタイミングを接近させることが可能である。
(1) The cycle
(2)上記実施形態における周期タイミング補正手段3B−3−3は、タイマ値T1およびT2の差分の絶対値が閾値より大きい場合に、周期タイマ3B−3−1のタイムアップ値を規定値からΔTaだけ減少させた。しかし、このようにする代わりに、タイマ値T2とタイムアップ値TUとの差分の絶対値が閾値より大きい場合(すなわち、マルチキャスト信号の発生タイミングから処理周期の開始タイミングまでの時間差が所定値より大きい場合)に、周期タイマ3B−3−1のタイムアップ値TUを規定値から所定方向に所定量だけ変化させてもよい。
(2) The cycle timing correction means 3B-3-3 in the above embodiment sets the time-up value of the
(3)上記実施形態における周期タイミング補正手段3B−3−3は、タイマ値T1およびT2の差分の絶対値が閾値以下であり、かつ、タイマ値T1が同期範囲内でない場合に、常に周期タイマ3B−3−1のタイムアップ値を規定値から所定量だけ増減した。しかし、そのようにする代わりに、周期タイマ3B−3−1のタイムアップ値を規定値から所定量だけ増減した後は、一旦、タイムアップ値を規定値に戻し、その後、依然としてタイマ値T1が同期範囲内でない場合には、タイムアップ値を規定値から所定量だけ増減するようにしてもよい。この態様によれば、タイマ値T1およびT2の差分の絶対値が閾値以下になった後の処理周期の変動を少なくし、スレーブ安全装置の動作をより安定化することができる。
(3) The cycle timing correction means 3B-3-3 in the above embodiment always uses a cycle timer when the absolute value of the difference between the timer values T1 and T2 is less than or equal to the threshold value and the timer value T1 is not within the synchronization range. The time-up value of 3B-3-1 was increased or decreased by a predetermined amount from the specified value. However, instead of doing so, after the time-up value of the
1……コントローラ、2……ネットワーク、3A,3B,3C,……安全ドライブ装置、4A,4B,4C……モータ、3A−1……通信装置、3A−2……ドライブ装置、3A−3……マスタ安全装置、3B−3……スレーブ安全装置、3A−3−1,3B−3−1……周期タイマ、3A−3−2,3B−3−2……同期信号取得手段、3A−3−3,3B−3−3……周期タイミング補正手段、3A−3−4……マルチキャスト送信手段、3B−3−4……マルチキャスト取得手段。
DESCRIPTION OF
Claims (6)
前記マスタ装置は、当該マスタ装置の処理周期の開始タイミングを示す同期指示信号を送信する送信手段を具備し、
前記スレーブ装置は、前記同期指示信号の発生タイミングの所定範囲内において発生する同期信号に当該スレーブ装置の処理周期を同期させる周期タイミング補正手段を具備することを特徴とする同期システム。 Each having a master device and a slave device that operate in synchronization with a periodic synchronization signal and periodically operate at a processing cycle of k times (k is an integer of 2 or more) the period of the synchronization signal;
The master device comprises a transmission means for transmitting a synchronization instruction signal indicating the start timing of the processing cycle of the master device,
The slave system includes a cycle timing correction unit that synchronizes a processing cycle of the slave device with a synchronization signal generated within a predetermined range of the generation timing of the synchronization instruction signal.
前記周期タイミング補正手段は、前記周期タイマに計時させる処理周期を制御することにより、前記スレーブ装置の処理周期を前記同期指示信号の発生タイミングの所定範囲内において発生する同期信号に同期させることを特徴とする請求項1に記載の同期システム。 The slave device includes a cycle timer that repeats timing of the processing cycle,
The cycle timing correction means synchronizes a processing cycle of the slave device with a synchronization signal generated within a predetermined range of the generation timing of the synchronization instruction signal by controlling a processing cycle to be timed by the cycle timer. The synchronization system according to claim 1.
前記複数の安全ドライブ装置における1の安全ドライブ装置はマスタ安全装置を有し、他の安全ドライブ装置はスレーブ安全装置を有し、
前記コントローラは、周期的な同期信号を出力し、
前記マスタ安全装置および前記スレーブ安全装置の各々は、前記同期信号に同期し、かつ、前記同期信号の周期のk倍(kは2以上の整数)の処理周期で周期的に前記安全制御を行うものであり、
前記マスタ安全装置は、当該マスタ安全装置の処理周期の開始タイミングを示す同期指示信号を送信する送信手段を具備し、
前記スレーブ安全装置は、前記同期指示信号の発生タイミングの所定範囲内において発生する同期信号に当該スレーブ安全装置の処理周期を同期させる周期タイミング補正手段を具備することを特徴とする安全ドライブシステム。 In a safety drive system having a plurality of safety drive devices that perform drive control and safety control of each drive target under the control of a controller,
One safety drive device in the plurality of safety drive devices has a master safety device, and the other safety drive device has a slave safety device,
The controller outputs a periodic synchronization signal;
Each of the master safety device and the slave safety device performs the safety control periodically in synchronization with the synchronization signal and at a processing cycle of k times (k is an integer of 2 or more) the cycle of the synchronization signal. Is,
The master safety device comprises a transmission means for transmitting a synchronization instruction signal indicating the start timing of the processing cycle of the master safety device,
The slave safety device comprises a cycle timing correction means for synchronizing a processing cycle of the slave safety device with a synchronization signal generated within a predetermined range of the generation timing of the synchronization instruction signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014117612A JP2015229462A (en) | 2014-06-06 | 2014-06-06 | Synchronization system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014117612A JP2015229462A (en) | 2014-06-06 | 2014-06-06 | Synchronization system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015229462A true JP2015229462A (en) | 2015-12-21 |
Family
ID=54886476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014117612A Pending JP2015229462A (en) | 2014-06-06 | 2014-06-06 | Synchronization system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015229462A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005094933A (en) * | 2003-09-18 | 2005-04-07 | Fuji Electric Fa Components & Systems Co Ltd | Motor driving device |
JP2007213474A (en) * | 2006-02-13 | 2007-08-23 | Yaskawa Electric Corp | Motion control system |
JP2007219642A (en) * | 2006-02-14 | 2007-08-30 | Fanuc Ltd | Control system |
JP2009157913A (en) * | 2007-12-07 | 2009-07-16 | Omron Corp | Industrial controller |
JP2010287959A (en) * | 2009-06-09 | 2010-12-24 | Yaskawa Electric Corp | Synchronous communication system, communication device, and synchronous communication method |
JP2013038653A (en) * | 2011-08-09 | 2013-02-21 | Denso Corp | Communication system, and master node and slave node used for the communication system |
JP2013062928A (en) * | 2011-09-13 | 2013-04-04 | Fuji Electric Co Ltd | Synchronous control system |
WO2013164887A1 (en) * | 2012-05-01 | 2013-11-07 | 富士電機株式会社 | Signal synchronization system, multiprocessor and node synchronization system |
-
2014
- 2014-06-06 JP JP2014117612A patent/JP2015229462A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005094933A (en) * | 2003-09-18 | 2005-04-07 | Fuji Electric Fa Components & Systems Co Ltd | Motor driving device |
JP2007213474A (en) * | 2006-02-13 | 2007-08-23 | Yaskawa Electric Corp | Motion control system |
JP2007219642A (en) * | 2006-02-14 | 2007-08-30 | Fanuc Ltd | Control system |
JP2009157913A (en) * | 2007-12-07 | 2009-07-16 | Omron Corp | Industrial controller |
JP2010287959A (en) * | 2009-06-09 | 2010-12-24 | Yaskawa Electric Corp | Synchronous communication system, communication device, and synchronous communication method |
JP2013038653A (en) * | 2011-08-09 | 2013-02-21 | Denso Corp | Communication system, and master node and slave node used for the communication system |
JP2013062928A (en) * | 2011-09-13 | 2013-04-04 | Fuji Electric Co Ltd | Synchronous control system |
WO2013164887A1 (en) * | 2012-05-01 | 2013-11-07 | 富士電機株式会社 | Signal synchronization system, multiprocessor and node synchronization system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7525263B2 (en) | Control system | |
KR102225329B1 (en) | EtherCAT CONTROL DEVICE AND FACTORY AUTOMATION SYSTEM HAVING THE SAME | |
US10061345B2 (en) | Apparatus and method for controlling an automated installation | |
US10284692B2 (en) | Control device and communication device | |
JP2002164872A (en) | Cycle control synchronizing system | |
WO2019107022A1 (en) | Control device and control method | |
KR102291573B1 (en) | Synchronization method and system among multiple MCUs in EtherCAT-based slave system | |
JP2018157456A (en) | Slave, serial communication system, and communication method of serial communication system | |
WO2015180150A1 (en) | Method for multi-machine frequency converter generating synchronization signal, and multi-machine frequency converter | |
JP2011010117A (en) | Pwm semiconductor power converter system and pwm semiconductor power converter | |
JP4888741B2 (en) | Distributed control system | |
JP6000503B1 (en) | Network system, time master station, and time slave station | |
JP5748126B2 (en) | Synchronous control system | |
JP2015229462A (en) | Synchronization system | |
TWI587644B (en) | Wireless communication devices, wireless communication systems, and wireless communication methods | |
JP2011083841A (en) | Robot control device, robot control system, and robot control method | |
JP4487522B2 (en) | Motor drive device | |
JP6115478B2 (en) | Communications system | |
JP2010287959A (en) | Synchronous communication system, communication device, and synchronous communication method | |
JP4645476B2 (en) | Slave device | |
JP5877310B2 (en) | Master / slave synchronous communication system | |
WO2015180151A1 (en) | Multi-machine frequency converter operation control method, and multi-machine frequency converter | |
JP2015014862A (en) | Safe drive device and safety device | |
JP2013033374A (en) | Distributed monitoring control system | |
JPWO2020095413A1 (en) | Communication systems, communication devices, and programs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170515 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180501 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20181113 |