JP2015229462A - Synchronization system - Google Patents

Synchronization system Download PDF

Info

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
Application number
JP2014117612A
Other languages
Japanese (ja)
Inventor
松本 栄治
Eiji Matsumoto
栄治 松本
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 Co Ltd
Original Assignee
Fuji Electric 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 Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2014117612A priority Critical patent/JP2015229462A/en
Publication of JP2015229462A publication Critical patent/JP2015229462A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To synchronize a plurality of devices which are synchronized with common synchronizing signals, and perform synchronization processing at a processing cycle which is longer than a cycle of the synchronizing signal.SOLUTION: One safety drive unit 3A out of a plurality of safety drive units has a master safety device 3A-3, and the other safety drive units 3B, 3C have slave safety devices. The master safety device and the slave safety devices are synchronized with synchronizing signals φ outputted by a controller 1, respectively, and cyclically perform safety control at a processing cycle of k-times (k is an integer of 2 or more) of a cycle of the synchronizing signal. The master safety device transmits a multi-cast signal MC indicating the generation timing of the synchronizing signal which is synchronized with the processing cycle of the device, and the slave safety device synchronizes the cycle of the device to the synchronization signal φ which is generated together with the multi-cast signal MC.

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).

特開2010−234495号公報JP 2010-234495 A 特開2002−108414号公報JP 2002-108414 A

ところで、特許文献1に開示されているように冗長化した複数の安全装置間で同期を取らない場合、安全装置の電源投入の時間差や、安全装置間の動作クロックのばらつきにより、各安全装置間で周期的な安全処理が非同期に実行される。しかし、安全制御レベルを高めるために、各安全装置間で互いの状態の一致確認をする必要がある。この場合、安全装置間で同期していないと、ウエイト時間をおいてからでないと状態一致の確認を正しくすることができないため、非常時の安全制御が遅れる。このため、安全制御が実行されるまでの遅れ分の非安全時間が生じることになり、安全性を確保することが困難である。   By the way, when synchronization is not achieved between a plurality of redundant safety devices as disclosed in Patent Document 1, there is a difference between the safety devices due to a time difference in power-on of the safety devices and variations in operation clocks between the safety devices. Periodic safety processing is executed asynchronously. However, in order to increase the safety control level, it is necessary to check whether the respective safety devices match each other. In this case, if the safety devices are not synchronized with each other, it is necessary to wait for a wait time, so that the state matching cannot be confirmed correctly, so that emergency safety control is delayed. For this reason, a non-safety time corresponding to the delay until the safety control is executed occurs, and it is difficult to ensure safety.

そこで、特許文献2に開示されているように、各安全装置の安全制御のための周期処理を上位のコントローラからの同期基準信号に同期させる構成を採ることが考えられる。しかし、通常、コントローラが出力する同期信号の周期は、安全ドライブ装置内のドライブ装置がモータ駆動制御などを行う周期に合わせて短くする必要がある。これに対し、安全装置の安全処理では、安全状態の複数回一致チェックやさまざまな安全状態の診断を行う。従って、安全装置による安全処理の処理周期は、同期信号の周期に比べて長くなる。このように安全処理の処理周期が同期信号の周期よりも長くなると、複数の安全装置間で処理周期の開始タイミングが不揃いとなる場合がある。   Therefore, as disclosed in Patent Document 2, it is conceivable to adopt a configuration in which the periodic processing for safety control of each safety device is synchronized with a synchronization reference signal from a host controller. However, normally, the cycle of the synchronization signal output from the controller needs to be shortened in accordance with the cycle in which the drive device in the safe drive device performs motor drive control or the like. On the other hand, in the safety process of the safety device, the safety state is checked multiple times and various safety states are diagnosed. Therefore, the processing cycle of the safety process by the safety device is longer than the cycle of the synchronization signal. As described above, when the processing cycle of the safety process is longer than the cycle of the synchronization signal, the start timing of the processing cycle may be uneven among the plurality of safety devices.

図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.

この発明による同期システムの一実施形態である安全ドライブシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the safe drive system which is one Embodiment of the synchronous system by this invention. 同実施形態におけるマスタ安全装置の構成を示すブロック図である。It is a block diagram which shows the structure of the master safety device in the embodiment. 同実施形態におけるスレーブ安全装置の構成を示すブロック図である。It is a block diagram which shows the structure of the slave safety device in the same embodiment. 同スレーブ安全装置の周期タイミング補正手段の動作の概略を示すタイムチャートである。It is a time chart which shows the outline of operation | movement of the period timing correction | amendment means of the same slave safety device. 同スレーブ安全装置の同期信号取得手段が実行するルーチンの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the routine which the synchronous signal acquisition means of the slave safety device performs. 同スレーブ安全装置のマルチキャスト取得手段が実行するルーチンの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the routine which the multicast acquisition means of the slave safety device performs. 同スレーブ安全装置の周期タイミング補正手段が実行するルーチンの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the routine which the period timing correction | amendment means of the same slave safety device performs. 同実施形態の動作例を示すタイムチャートである。It is a time chart which shows the operation example of the embodiment. 従来の安全ドライブシステムの各安全装置の動作例を示すタイムチャートである。It is a time chart which shows the operation example of each safety device of the conventional safe drive system.

以下、図面を参照し、この発明の実施形態について説明する。
図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 controller 1, safety drive devices 3 </ b> A to 3 </ b> C such as servos and inverters, and motors 4 </ b> A to 4 </ b> C that are controlled devices connected to the safety drive devices 3 </ b> A to 3 </ b> C. Have In the illustrated example, three safety drive devices are provided in the safety drive system, but safety drive devices other than three may be provided. A network 2 is interposed between the controller 1 and the safety drive devices 3A to 3C. The controller 1 supplies a synchronization signal φ having a constant period T to the safety drive devices 3A to 3C via the network 2. Each of the controller 1 and the safety drive devices 3 </ b> A to 3 </ b> C exchanges data via the network 2.

図1に示すように、安全ドライブ装置3Aは、通信装置3A−1と、ドライブ装置3A−2と、安全装置3A−3を有する。   As shown in FIG. 1, the safety drive device 3A includes a communication device 3A-1, a drive device 3A-2, and a safety device 3A-3.

通信装置3A−1は、コントローラ1と、ネットワーク2を介して通信するための装置である。この通信装置3A−1は、コントローラ1から受信した同期信号φや通信データをドライブ装置3A−2または安全装置3A−3に振り分ける。また、通信装置3A−1は、ドライブ装置3A−2または安全装置3A−3から与えられた通信データをコントローラ1に送信する。   The communication device 3A-1 is a device for communicating with the controller 1 via the network 2. The communication device 3A-1 distributes the synchronization signal φ and communication data received from the controller 1 to the drive device 3A-2 or the safety device 3A-3. Further, the communication device 3A-1 transmits the communication data given from the drive device 3A-2 or the safety device 3A-3 to the controller 1.

ドライブ装置3A−2は、例えばコントローラ1からネットワーク2、通信装置3A−1を経由して受信したドライブ指令に基づいてモータ4Aを制御する。ドライブ装置3A−2は、モータ4Aの制御を、コントローラ1からネットワーク2、通信装置3A−1を経由して受信される同期信号φに同期して実行する。   The drive device 3A-2 controls the motor 4A based on a drive command received from the controller 1 via the network 2 and the communication device 3A-1, for example. The drive device 3A-2 executes control of the motor 4A in synchronization with the synchronization signal φ received from the controller 1 via the network 2 and the communication device 3A-1.

安全装置3A−3は、例えばコントローラ1からネットワーク2、通信装置3A−1を経由して受信した安全指令に基づいてモータ4Aを安全停止させる等の安全処理を実行する。さらに詳述すると、安全装置3A−3は、この安全処理をコントローラ1からネットワーク2、通信装置3A−1を経由して受信される同期信号φに同期し、かつ、同期信号φの周期Tのk倍(kは2以上の整数)の処理周期kTで繰り返す。   The safety device 3A-3 executes safety processing such as a safe stop of the motor 4A based on the safety command received from the controller 1 via the network 2 and the communication device 3A-1, for example. More specifically, the safety device 3A-3 synchronizes this safety process with the synchronization signal φ received from the controller 1 via the network 2 and the communication device 3A-1, and has a period T of the synchronization signal φ. It repeats with the processing period kT of k times (k is an integer greater than or equal to 2).

以上が安全ドライブ装置3Aの構成である。安全ドライブ装置3Bおよび3Cも、安全ドライブ装置3Aと基本的に同様な構成を有しているが、安全ドライブ装置3Aと安全ドライブ装置3Bおよび3Cとでは安全装置の機能が異なっている。すなわち、安全ドライブ装置3Aの安全装置3A−3はマスタ安全装置として機能するのに対し、安全ドライブ装置3Bおよび3Cの安全装置3B−3および3C−3(図示略)はスレーブ安全装置として機能する。   The above is the configuration of the safety drive device 3A. The safety drive devices 3B and 3C have basically the same configuration as the safety drive device 3A, but the functions of the safety device are different between the safety drive device 3A and the safety drive devices 3B and 3C. That is, the safety device 3A-3 of the safety drive device 3A functions as a master safety device, whereas the safety devices 3B-3 and 3C-3 (not shown) of the safety drive devices 3B and 3C function as slave safety devices. .

図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 master safety device 3A-3. As shown in FIG. 2, the master safety device 3A-3 includes a cycle timer 3A-3-1, a synchronization signal acquisition unit 3A-3-2, a cycle timing correction unit 3A-3-3, and a multicast transmission unit 3A. -3-4.

周期タイマ3A−3−1は、予め与えられた開始値からタイムアップ値までのカウントを繰り返すことによりマスタ安全装置3A−3の安全処理の処理周期kTの計時を繰り返すアップカウンタである。また、同期信号取得手段3A−3−2は、コントローラ1からの同期信号φの受信時の周期タイマ3A−3−1のタイマ値をキャプチャする。   The cycle timer 3A-3-1 is an up counter that repeats counting of the processing cycle kT of the safety process of the master safety device 3A-3 by repeating counting from a predetermined start value to a time-up value. The synchronization signal acquisition unit 3A-3-2 captures the timer value of the periodic timer 3A-3-1 when the synchronization signal φ is received from the controller 1.

周期タイミング補正手段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 period timer 3A-3-1 reaches the time-up value.

周期タイミング補正手段3A−3−3は、起動される都度、その時点において同期信号取得手段3A−3−2にキャプチャされたタイマ値を確認し、タイマ値に応じて周期タイマ3A−3−1のタイムアップ値を変化させ、周期処理を変える。具体的には、タイムアップ値をTUとした場合、タイマ値が例えばTU/2〜TU−α(αは十分に小さな所定値)の間の値であればタイムアップ値TUを規定値から所定値ΔTUだけ小さくし、タイマ値が例えばα〜TU/2の間の値であればタイムアップ値TUを規定値から所定値ΔTUだけ大きくする。   Each time the cycle timing correction unit 3A-3-3 is activated, it checks the timer value captured by the synchronization signal acquisition unit 3A-3-2 at that time, and the cycle timer 3A-3-1 according to the timer value. Change the time-up value and change the periodic processing. Specifically, when the time-up value is TU, if the timer value is a value between, for example, TU / 2 to TU-α (α is a sufficiently small predetermined value), the time-up value TU is determined from a specified value. If the timer value is a value between α and TU / 2, for example, the time-up value TU is increased from the specified value by a predetermined value ΔTU.

周期タイミング補正手段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 cycle timer 3A-3-1 becomes the start value closer to the reception timing of the synchronization signal φ. The processing cycle of the master safety device 3A-3 is synchronized with the synchronization signal φ.

マルチキャスト送信手段3A−3−4は、起動される都度、マルチキャスト信号MCを通信装置3A−1を介して2のネットワークに送出する。上述したようにマルチキャスト送信手段3A−3−4は、周期タイマ3A−3−1のタイマ値がタイムアップ値に到達する都度起動される。従って、マルチキャスト送信手段3A−3−4が送信するマルチキャスト信号MCは、マスタ安全装置3A−3の処理周期の開始タイミングを示す同期指示信号としての役割を果たす。   Each time the multicast transmission unit 3A-3-4 is activated, it sends a multicast signal MC to the second network via the communication device 3A-1. As described above, the multicast transmission means 3A-3-4 is activated every time the timer value of the periodic timer 3A-3-1 reaches the time-up value. Accordingly, the multicast signal MC transmitted by the multicast transmission means 3A-3-4 serves as a synchronization instruction signal indicating the start timing of the processing cycle of the master safety device 3A-3.

図3はスレーブ安全装置3B−3の構成を示すブロック図である。なお、ここではスレーブ安全装置3B−3の構成を例示するが、スレーブ安全装置3C−3の構成も、このスレーブ安全装置3B−3と同様である。   FIG. 3 is a block diagram showing the configuration of the slave safety device 3B-3. Although the configuration of the slave safety device 3B-3 is illustrated here, the configuration of the slave safety device 3C-3 is the same as that of the slave safety device 3B-3.

図3に示すように、スレーブ安全装置3B−3は、周期タイマ3B−3−1と、同期信号取得手段3B−3−2と、マルチキャスト取得手段3B−3−4と、周期タイミング補正手段3B−3−3とを有する。   As shown in FIG. 3, the slave safety device 3B-3 includes a cycle timer 3B-3-1, a synchronization signal acquisition unit 3B-3-2, a multicast acquisition unit 3B-3-4, and a cycle timing correction unit 3B. 3-3.

周期タイマ3B−3−1は、マスタ安全装置3A−3の周期タイマ3A−3−1と同様、予め与えられた開始値からタイムアップ値までのカウントを繰り返すことによりスレーブ安全装置3B−3の安全処理の処理周期kTの計時を繰り返すアップカウンタである。   The cycle timer 3B-3-1, like the cycle timer 3A-3-1 of the master safety device 3A-3, repeats the count from the start value given in advance to the time-up value, so that the slave safety device 3B-3 This is an up-counter that repeats counting of the safety processing cycle kT.

同期信号取得手段3B−3−2は、コントローラ1からの同期信号φの受信時の周期タイマ3B−3−1のタイマ値T1をキャプチャする。マルチキャスト取得手段3B−3−4は、ネットワーク2から通信装置3B−1を介してマルチキャスト信号MCを取得し、その時点における周期タイマ3B−3−1のタイマ値T2をキャプチャする。   The synchronization signal acquisition unit 3B-3-2 captures the timer value T1 of the periodic timer 3B-3-1 when the synchronization signal φ is received from the controller 1. The multicast acquisition unit 3B-3-4 acquires the multicast signal MC from the network 2 via the communication device 3B-1, and captures the timer value T2 of the periodic timer 3B-3-1 at that time.

周期タイミング補正手段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 timing correction unit 3B-3-3 is a unit that is activated whenever the cycle timer 3B-3-1 times up. Each time the cycle timing correction means 3B-3-3 is activated, it checks the timer values T1 and T2 at that time, and controls the time-up value of the cycle timer 3B-3-1 based on the result. Then, the cycle timing correction means 3B-3-3 repeats the control of the time-up value based on the timer values T1 and T2, thereby determining the timing at which the timer value of the cycle timer 3B-3-1 becomes the start value as a multicast signal. The timing is synchronized with the timing of the synchronization signal φ generated within a predetermined range of the MC generation timing.

図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 slave safety device 3B-3. In this example, the cycle of the synchronization signal φ is T, and the length of the processing cycle of the master safety device 3A-3 and the slave safety device 3B-3 is 4T. Then, the multicast transmission means 3A-3-4 of the master safety device 3A-3 sends the multicast signal MC to the network 2 at the start timing Pm of the processing cycle of the master safety device 3A-3.

スレーブ安全装置3B−3の周期タイミング補正手段3B−3−3は、マルチキャスト信号MCとともに発生する同期信号φにスレーブ安全装置3B−3の処理周期の開始タイミングPsを同期させるための同期化処理を実行する。周期タイミング補正手段3B−3−3は、この同期化処理を2段階に分けて行う。   The cycle timing correction means 3B-3-3 of the slave safety device 3B-3 performs a synchronization process for synchronizing the start timing Ps of the processing cycle of the slave safety device 3B-3 with the synchronization signal φ generated together with the multicast signal MC. Run. The cycle timing correction means 3B-3-3 performs this synchronization processing in two stages.

まず、周期タイミング補正手段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 cycle timer 3B-3-1 within a predetermined range before and after the generation timing of the multicast signal MC. . The contents of the first process are as follows.

まず、周期タイミング補正手段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 cycle timer 3B-3-1 is activated due to time-up.

ここで、周期タイマ3B−3−1が計時する処理周期の開始タイミングPsがマルチキャスト信号MCの発生タイミングに接近しており、マルチキャスト信号MCの発生タイミングから処理周期の開始タイミング(すなわち、周期タイミング補正手段3B−3−3の起動タイミング)までの間に同期信号φが発生しないような場合、周期タイミング補正手段3B−3−3の起動タイミングにおいてタイマ値T1およびT2は極めて接近した値になる。   Here, the processing cycle start timing Ps timed by the cycle timer 3B-3-1 approaches the generation timing of the multicast signal MC, and the processing cycle start timing (that is, cycle timing correction) from the generation timing of the multicast signal MC. When the synchronization signal φ is not generated until the start timing of the means 3B-3-3), the timer values T1 and T2 become very close values at the start timing of the cycle timing correction means 3B-3-3.

一方、周期タイマ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 cycle timer 3B-3-1 is far from the generation timing of the multicast signal MC, and for example, 1 to 1 between the generation timing of the multicast signal MC and the start timing Ps of the processing cycle. When the synchronization signal φ is generated three times, the difference between the timer values T1 and T2 at the start timing of the cycle timing correction unit 3B-3-3 is a large value (for example, a value larger than T). Become.

そこで、周期タイミング補正手段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 cycle timer 3B-3. The time-up value of -1 is changed by a predetermined amount from the specified value in a predetermined direction, and the start timing Ps of the processing cycle timed by the cycle timer 3B-3-1 is brought closer to the generation timing of the multicast signal MC.

図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 timing correction unit 3B-3-3 is activated, the time-up value of the cycle timer 3B-3-1 is calculated. The predetermined value ΔTa is decreased from the specified value. For this reason, the processing cycle of the slave safety device is shorter than 4T by ΔTa, and the cycle timing correction means 3B-3-3 is activated at time t2.

この時刻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 cycle timer 3B-3-1 is close to a predetermined range before and after the generation timing of the multicast signal. Therefore, the cycle timing correction unit 3B-3-3 does not execute the first process at the time t2, but executes the second process.

次に第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 cycle timer 3B-3-1 from the specified value by a predetermined value ΔTb based on the timer value T1. The start timing Ps of the processing cycle counted by 3-1 is brought close to the generation timing of the synchronization signal φ.

ここで、Δ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 timing correction unit 3B-3-3 is activated, the difference between the timer values T1 and T2 is equal to or less than the threshold value, and the timer value T1 is between TU / 2 and TU-α. It is the value of. For this reason, the cycle timing correction unit 3B-3-3 decreases the time-up value of the cycle timer 3B-3-1 from the specified value by a predetermined value ΔTb. As a result, the processing cycle of the slave safety device is shorter by ΔTb than 4T, and the cycle timing correction unit 3B-3-3 is activated at time t3. In this way, the start timing Ps of the processing cycle timed by the cycle timer 3B-3-1 further approaches the generation timing of the synchronization signal φ generated together with the multicast signal MC.

しかし、周期タイミング補正手段3B−3−3が起動される時刻t3において、タイマ値T1は、依然としてTU/2〜TU−αの間の値である。そこで、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値から所定値ΔTbだけ減少させている。   However, at the time t3 when the cycle timing correction unit 3B-3-3 is activated, the timer value T1 is still a value between TU / 2 and TU-α. Therefore, the cycle timing correction unit 3B-3-3 decreases the time-up value of the cycle timer 3B-3-1 from the specified value by a predetermined value ΔTb.

この結果、周期タイミング補正手段3B−3−3は、時刻t4において起動される。この時刻t4において、タイマ値T1は、例えばTU−α〜TUの間の値である。そこで、周期タイミング補正手段3B−3−3は、周期タイマ3B−3−1のタイムアップ値を規定値とする。   As a result, the cycle timing correction unit 3B-3-3 is activated at time t4. At this time t4, the timer value T1 is, for example, a value between TU-α and TU. Therefore, the cycle timing correction unit 3B-3-3 sets the time-up value of the cycle timer 3B-3-1 as a specified value.

このように第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 cycle timer 3B-3-1 is synchronized with the generation timing of the synchronization signal φ generated together with the multicast signal MC.
The above is the outline of the operation of the slave safety device 3B-3.

次に図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 slave safety device 3B-3. As shown in FIG. 5, the synchronization signal acquisition means 3B-3-2 always determines whether or not the synchronization signal φ from the controller 1 is received (step S11). When the reception of the synchronization signal φ is detected, the synchronization signal acquisition unit 3B-3-2 captures the timer value of the periodic timer 3B-3-1 at that time and holds it as the timer value T1 (step S12). .

図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 slave safety device 3B-3. As shown in FIG. 6, the multicast acquisition means 3B-3-4 always determines whether or not the multicast signal MC from the master safety device 3A-3 is received (step S21). When the reception of the multicast signal MC is detected, the multicast acquisition unit 3B-3-4 captures the timer value of the periodic timer 3B-3-1 at that time and holds it as the timer value T2 (step S22).

図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 slave safety device 3B-3. When the cycle timing correction unit 3B-3-3 is activated by the time-up of the cycle timer 3B-3-1, first, the cycle timing correction unit 3B-3-3 calculates the absolute value ΔT of the difference between the timer values T1 and T2 (step S31). Next, the cycle timing correction unit 3B-3-3 determines whether or not the absolute value ΔT is equal to or less than the threshold value T / 3 (step S32). When the determination result is “NO”, the cycle timing correction unit 3B-3-3 executes a first process for reducing the time-up value of the cycle timer 3B-3-1 by a predetermined amount from the specified value ( Step S33), this routine is finished.

一方、ステップ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 timing correction unit 3B-3-3 executes the second process as described below. First, the cycle timing correction means 3B-3-3 determines whether or not the timer value T1 is a value within the synchronization range (step S34). Specifically, when the time-up value of the periodic timer 3B-3-1 is TU, it is determined whether the timer value T1 is a value between TU-α and TU or a value between 0 and α. To do.

この判断結果が「NO」である場合、周期タイミング補正手段3B−3−3は、上述したようにタイマ値T1に基づいて周期タイマ3B−3−1のタイムアップ値を規定値から増加させ、または減少させる(ステップS35)。そして、図7に示すルーチンを終了する。   When the determination result is “NO”, the cycle timing correction unit 3B-3-3 increases the time-up value of the cycle timer 3B-3-1 from the specified value based on the timer value T1 as described above, Alternatively, it is decreased (step S35). Then, the routine shown in FIG. 7 ends.

これに対し、ステップ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 cycle timer 3B-3-1 as a specified value (step S36), and FIG. The routine shown in FIG.

図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 controller 1, the multicast signal MC output from the master safety device 3A-3, and the periodic timer 3B-3-1 of the slave safety device 3B-3. The waveform of the timer value TC is shown. In FIGS. 8A and 8B, the specified value for the time-up value is 4T.

図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 timing correction unit 3B-3-3 is activated at time t11, the absolute value of the difference between the timer values T1 and T2 is T, which is larger than the threshold value T / 3. . For this reason, at time t11, the cycle timing correction unit 3B-3-3 executes the first process, decreases the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTa = T / 2, The up value is 4T-T / 2. When this first process is executed, the timing of time-up of the cycle timer 3B-3-1 approaches the generation timing of the synchronization signal φ generated together with the multicast signal MC. In this example, after the generation timing of the synchronization signal φ generated together with the multicast signal MC, at a time t12 before the subsequent synchronization signal φ is generated, the cycle timer 3B-3-1 times up, and the cycle timing correction means 3B 3-3 is activated.

この時刻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 timing correction unit 3B-3-3 does not execute the first process but executes the second process. In the second process, the cycle timing correction unit 3B-3-3 decreases the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTb, and sets the time-up value to 4T−ΔTb.

その後、時刻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 timing correction unit 3B-3-3 sets the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTb. The time-up value is 4T−ΔTb. By repeating this process, the timing of time-up of the cycle timer 3B-3-1 approaches the generation timing of the synchronization signal φ generated together with the multicast signal MC. When the timer value T1 becomes a value within the synchronization range, the cycle timing correction unit 3B-3-3 sets the time-up value of the cycle timer 3B-3-1 to the specified value 4T.

図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 timing correction unit 3B-3-3 is activated at time t21, the absolute value of the difference between the timer values T1 and T2 is 2T, which is larger than the threshold T / 3. . Therefore, at time t21, the cycle timing correction unit 3B-3-3 executes the first process, and decreases the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTa = T / 2. . When this first process is executed, the timing of time-up of the cycle timer 3B-3-1 approaches the generation timing of the synchronization signal φ generated together with the multicast signal MC.

次に時刻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 cycle timer 3B-3-1 at time t22, the absolute value of the difference between the timer values T1 and T2 is T, and is still Greater than threshold T / 3. Therefore, at time t22, the cycle timing correction unit 3B-3-3 executes the first process, and decreases the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTa = T / 2. .

次に時刻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 cycle timer 3B-3-1 at time t23, the difference between the timer values T1 and T2 is still T, and the threshold T / Greater than 3. Therefore, at time t23, the cycle timing correction unit 3B-3-3 executes the first process, and decreases the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTa = T / 2. .

次に時刻t24において周期タイマ3B−3−1のタイムアップにより周期タイミング補正手段3B−3−3が起動されたとき、タイマ値T1およびT2間の差分の絶対値は閾値以下(図示の例ではほぼ0)となっている。このため、時刻t23において周期タイミング補正手段3B−3−3は、第1の処理を実行せず、第2の処理を実行し、周期タイマ3B−3−1のタイムアップ値を規定値からΔTbだけ減少させている。   Next, when the cycle timing correction unit 3B-3-3 is activated due to the time-up of the cycle timer 3B-3-1 at time t24, the absolute value of the difference between the timer values T1 and T2 is equal to or less than a threshold value (in the illustrated example, It is almost 0). Therefore, at time t23, the cycle timing correction unit 3B-3-3 does not execute the first process, executes the second process, and sets the time-up value of the cycle timer 3B-3-1 from the specified value by ΔTb. Only reduced.

その後、時刻t25において周期タイマ3B−3−1のタイムアップにより周期タイミング補正手段3B−3−3が起動されたときも、第2の処理が実行される。   Thereafter, the second process is also executed when the cycle timing correction unit 3B-3-3 is activated due to the time-up of the cycle timer 3B-3-1 at time t25.

このようにして周期タイマ3B−3−1のタイムアップのタイミングがマルチキャスト信号MCとともに発生する同期信号φの発生タイミングに近づいてゆく。   In this way, the timing of the time-up of the cycle timer 3B-3-1 approaches the generation timing of the synchronization signal φ generated together with the multicast signal MC.

以上のように、本実施形態によれば、コントローラ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 controller 1, the processing cycle of the master safety device is synchronized. It is possible to synchronize with the signal φ and to synchronize the processing cycle of the slave safety device with the processing cycle of the master safety device. Therefore, for example, when a failure occurs, a plurality of safety drive devices can be safely stopped at the same time with little time loss, or can be stopped in order, thereby improving safety.

また、本実施形態においてスレーブ安全装置の周期タイミング補正手段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 timing correction unit 3B-3-3 in the above embodiment sets the time-up value of the cycle timer 3B-3-1 from the specified value when the absolute value of the difference between the timer values T1 and T2 is larger than the threshold value. Decrease by ΔTa. However, instead of doing this, when the absolute value of the difference between the timer values T1 and T2 is larger than the threshold value, the time-up value of the cycle timer 3B-3-1 may be increased from the specified value by ΔTa. That is, when the absolute value of the difference between the timer values T1 and T2 is larger than the threshold value, the direction of change from the specified value is fixed, and if always changed in a constant direction, the synchronization signal φ generated with the multicast signal MC is generated. It is possible to make the timing of the time-up of the cycle timer 3B-3-1 approach within a predetermined range from the timing.

(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 cycle timer 3B-3-1 from the specified value when the absolute value of the difference between the timer values T1 and T2 is larger than the threshold value. Decrease by ΔTa. However, instead of doing this, if the absolute value of the difference between the timer value T2 and the time-up value TU is larger than the threshold (that is, the time difference from the generation timing of the multicast signal to the start timing of the processing cycle is larger than the predetermined value) ), The time-up value TU of the cycle timer 3B-3-1 may be changed by a predetermined amount from a specified value in a predetermined direction.

(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 periodic timer 3B-3-1 has been increased or decreased by a predetermined amount from the specified value, the time-up value is once returned to the specified value, and then the timer value T1 is still If it is not within the synchronization range, the time-up value may be increased or decreased from the specified value by a predetermined amount. According to this aspect, it is possible to reduce the fluctuation of the processing cycle after the absolute value of the difference between the timer values T1 and T2 is equal to or less than the threshold value, and to further stabilize the operation of the slave safety device.

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 SYMBOLS 1 ... Controller, 2 ... Network, 3A, 3B, 3C, ... Safety drive device, 4A, 4B, 4C ... Motor, 3A-1 ... Communication device, 3A-2 ... Drive device, 3A-3 ...... Master safety device, 3B-3 ... Slave safety device, 3A-3-1, 3B-3-1 ... Periodic timer, 3A-3-2, 3B-3-2 ... Synchronous signal acquisition means, 3A -3-3, 3B-3-3 ... periodic timing correction means, 3A-3-4 ... multicast transmission means, 3B-3-4 ... multicast acquisition means.

Claims (6)

各々、周期的な同期信号に同期し、該同期信号の周期のk倍(kは2以上の整数)の処理周期で周期的に動作するマスタ装置とスレーブ装置とを有し、
前記マスタ装置は、当該マスタ装置の処理周期の開始タイミングを示す同期指示信号を送信する送信手段を具備し、
前記スレーブ装置は、前記同期指示信号の発生タイミングの所定範囲内において発生する同期信号に当該スレーブ装置の処理周期を同期させる周期タイミング補正手段を具備することを特徴とする同期システム。
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の処理と、前記処理周期の開始タイミングが前記同期指示信号の発生タイミングの所定範囲内にある状態において、前記処理周期の制御により前記処理周期の開始タイミングを前記同期信号の発生タイミングの所定範囲内に移動させる第2の処理とを実行することを特徴とする請求項1に記載の同期システム。   The cycle timing correction means includes: a first process that moves the start timing of the processing cycle within a predetermined range of the generation timing of the synchronization instruction signal by controlling the processing cycle; and the start timing of the processing cycle is the synchronization instruction In a state where the signal generation timing is within a predetermined range, a second process is executed to move the start timing of the processing cycle to a predetermined range of the generation timing of the synchronization signal by controlling the processing cycle. The synchronization system according to claim 1. 前記第1の処理では、前記スレーブ装置の処理周期の開始タイミングの直前の同期信号の発生タイミングにおける前記周期タイマのタイマ値である第1のタイマ値と前記同期指示信号の発生タイミングにおける前記周期タイマのタイマ値である第2のタイマ値との差分の絶対値が閾値を越えている場合に、前記周期タイマに計時させる処理周期を規定値から所定方向に所定量だけ変化させることにより、前記処理周期の開始タイミングを前記同期指示信号の発生タイミングに接近させることを特徴とする請求項3に記載の同期システム。   In the first processing, the first timer value that is the timer value of the cycle timer at the generation timing of the synchronization signal immediately before the start timing of the processing cycle of the slave device and the cycle timer at the generation timing of the synchronization instruction signal When the absolute value of the difference from the second timer value that is the timer value exceeds a threshold value, the processing cycle to be timed by the cycle timer is changed by a predetermined amount from a specified value in a predetermined direction, whereby the processing 4. The synchronization system according to claim 3, wherein a cycle start timing is made closer to a generation timing of the synchronization instruction signal. 前記第2の処理では、前記第1のタイマ値と前記第2のタイマ値との差分の絶対値が前記閾値以内になった状態において、前記第1のタイマ値に基づいて、前記周期タイマに計時させる処理周期を増減させることにより、前記処理周期の開始タイミングを前記同期信号の発生タイミングに接近させることを特徴とする請求項4に記載の同期システム。   In the second process, in the state where the absolute value of the difference between the first timer value and the second timer value is within the threshold, the period timer is set based on the first timer value. 5. The synchronization system according to claim 4, wherein the start timing of the processing cycle is made closer to the generation timing of the synchronization signal by increasing or decreasing the processing cycle to be timed. コントローラによる制御の下、各々の駆動対象の駆動制御および安全制御を行う複数の安全ドライブ装置を有する安全ドライブシステムにおいて、
前記複数の安全ドライブ装置における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.
JP2014117612A 2014-06-06 2014-06-06 Synchronization system Pending JP2015229462A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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