JP2007066103A - Method for controlling event processing time - Google Patents
Method for controlling event processing time Download PDFInfo
- Publication number
- JP2007066103A JP2007066103A JP2005252682A JP2005252682A JP2007066103A JP 2007066103 A JP2007066103 A JP 2007066103A JP 2005252682 A JP2005252682 A JP 2005252682A JP 2005252682 A JP2005252682 A JP 2005252682A JP 2007066103 A JP2007066103 A JP 2007066103A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- event
- frame
- station
- slave station
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
Description
この発明は、通信マスタ局(通信機能を有する1のプログラマブル・コントローラ装置)と通信スレーブ局(通信機能を有する1若しくは2以上のI/Oターミナル装置)とをバス型ネットワークで結んだプログラマブル・コントローラシステムに適用される通信マスタ局のイベント処理用時間制御方法に関する。 The present invention relates to a programmable controller in which a communication master station (one programmable controller device having a communication function) and a communication slave station (one or more I / O terminal devices having a communication function) are connected by a bus network. The present invention relates to a time control method for event processing of a communication master station applied to a system.
通信機能を有する1のプログラマブル・コントローラ(以下、PLCという)装置と通信機能を有する1若しくは2以上のI/Oターミナル装置とをバス型ネットワークで結ぶと共に、通信機能を有するPLC装置を通信マスタ局とし、かつ通信機能を有するI/Oターミナル装置のそれぞれを通信スレーブ局とし、周期的に通信マスタ局と通信スレーブ局との間で通信(I/O)が行われている。 A programmable controller (hereinafter referred to as "PLC") having a communication function and one or more I / O terminal devices having a communication function are connected by a bus network, and the PLC device having the communication function is connected to a communication master station. Each of the I / O terminal devices having a communication function is a communication slave station, and communication (I / O) is periodically performed between the communication master station and the communication slave station.
従来の通信サイクルタイムが図10に示されている。同図に示されるように、通信サイクルの1通信サイクルはI/Oリフレッシュ時間aと、イベント処理時間bとから構成されて、横軸には時間tが示されている。I/Oリフレッシュ時間aと、イベント処理時間bとには、それぞれ処理時間が設定される。I/Oリフレッシュ処理またはイベント処理が開始された場合には、設定された時間がタイマ制限時間となり、制限時間内で各処理が行われている。このような通信マスタ局と各通信スレーブ局との間で様々なデータのやり取りを行うようにしたPLCシステムは、従来より知られている。また、ここで言う「I/Oターミナル装置」とは、入力ターミナル装置、出力ターミナル装置、及び入出力ターミナル装置を総称するものである。なお、制御装置のイベント制御方法は、従来より開発されている(例えば、特許文献1参照)。
しかしながら、通信スレーブ局の加入処理は、イベントにより行われるため、通信スレーブ局がネットワーク上に多数存在する場合、電源投入後の加入処理時にイベント処理が多発する。そのため、通信スレーブ局の加入処理を実行するための時間を早めるには、1サイクルにおけるイベントの処理時間を長く取る必要がある。すなわち、図10に示されるように、イベントの処理時間を長く取るように設定すると、図中のイベント処理時間bが長くなり、それに合わせて時間tが大きくなってしまう。イベントの時間を長く設定した場合、加入処理は多く割り当てられるため、加入処理自体は早くなるが、通信サイクルの時間はその分長くなってしまう。 However, since the communication slave station joining process is performed according to an event, when there are a large number of communication slave stations on the network, the event process frequently occurs during the joining process after the power is turned on. Therefore, in order to speed up the time for executing the communication slave station join processing, it is necessary to increase the event processing time in one cycle. That is, as shown in FIG. 10, if the event processing time is set to be long, the event processing time b in the figure becomes long, and the time t increases accordingly. When the event time is set to be long, many subscription processes are allocated, so the subscription process itself is accelerated, but the communication cycle time is increased accordingly.
また、PLCの使用用途や規模によっては、加入処理後の通常サイクル時において、イベント処理を必要としない場合がある。イベントの時間を短く設定した場合、通信サイクルの時間は短くすることができるが、加入処理はその分遅くなる問題が生じている。 In addition, depending on the usage and scale of the PLC, event processing may not be required in the normal cycle after the subscription processing. When the event time is set to be short, the communication cycle time can be shortened, but there is a problem that the joining process is delayed accordingly.
この発明は、上述の問題点に着目してなされたものであり、その目的とするところは、1サイクルにおける通信サイクルタイムを長くしないで、電源投入時はイベント処理を多く実行可能とし、通信フェーズに適したイベント処理用時間を設定することができる通信マスタ局のイベント処理用時間制御方法を提供することにある。 The present invention has been made by paying attention to the above-mentioned problems, and the object of the present invention is to make it possible to execute a lot of event processing at the time of power-on without increasing the communication cycle time in one cycle. It is an object of the present invention to provide an event processing time control method for a communication master station that can set an appropriate event processing time.
この発明のさらに他の目的並びに作用効果については、明細書の以下の記述を参照することにより、当業者であれば容易に理解されるであろう。 Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description of the specification.
この発明の通信マスタ局のイベント処理用時間制御方法は、通信機能を有する1のプログラマブル・コントローラ装置と通信機能を有する1若しくは2以上のI/Oターミナル装置とをバス型ネットワークで結ぶと共に、通信機能を有するプログラマブル・コントローラ装置を通信マスタ局としかつ通信機能を有するI/Oターミナル装置のそれぞれを通信スレーブ局とし、I/Oリフレッシュ処理とイベント処理とから成り立つ通信サイクルにおいて、それぞれの通信フェーズに対して、イベント処理用時間を設定することにより、通信マスタ局と各通信スレーブ局との間で通信サイクルパターンに基づいた通信を行うようにしたプログラマブル・コントローラシステムに適用される。 According to the communication master station event processing time control method of the present invention, one programmable controller device having a communication function and one or more I / O terminal devices having a communication function are connected to each other by a bus-type network. A programmable controller device having a function is a communication master station and each I / O terminal device having a communication function is a communication slave station. In a communication cycle consisting of I / O refresh processing and event processing, each communication phase is On the other hand, the present invention is applied to a programmable controller system in which communication based on a communication cycle pattern is performed between a communication master station and each communication slave station by setting an event processing time.
より具体的には、本発明方法は、通信サイクル実行時に、通信スレーブ局の加入離脱の確認後、イベントの発行時間決定処理と、イベントの発行とが行われるイベント処理を実行し、さらに、イベントの発行時間決定処理は、現在の通信フェーズにより、通信フェーズ毎に設定されたイベント処理用時間と、使用目的に適した通信サイクルパターンとを判定することを特徴とするものである。 More specifically, the method of the present invention executes event processing in which event issuance time determination processing and event issuance are performed after confirming the joining / leaving of the communication slave station at the time of execution of the communication cycle. Issuance time determination processing is characterized in that event processing time set for each communication phase and a communication cycle pattern suitable for the purpose of use are determined according to the current communication phase.
ここで言う『プログラマブル・コントローラシステム』とは、通信機能を有する1のプログラマブル・コントローラ装置と通信機能を有する1若しくは2以上のI/Oターミナル装置とをバス型ネットワークで接続してなるものであり、『通信スレーブ局の加入』とは、通信スレーブ局がネットワークに接続され、通信マスタ局と通信可能な状態にすることである。 The “programmable controller system” mentioned here is formed by connecting one programmable controller device having a communication function and one or more I / O terminal devices having a communication function via a bus network. “Communication slave station subscription” means that the communication slave station is connected to the network and is communicable with the communication master station.
このような構成によれば、各フェーズのイベント時間を設定することができ、ユーザの使用目的に適したPLCシステムを実現することができる。 According to such a configuration, the event time of each phase can be set, and a PLC system suitable for the user's purpose of use can be realized.
本発明の好ましい実施の形態においては、イベントの発行時間決定処理は、通信マスタ局へのデータ通信フレーム、通信スレーブ局へのデータ通信フレームを流さずに加入勧誘やイベント送信を優先したI/Oなし通信サイクルと、I/Oの通常動作を行うI/Oあり通信サイクルと、からなる通信サイクルパターンを判定することである。 In a preferred embodiment of the present invention, the event issuance time determination process is an I / O that prioritizes subscription solicitation and event transmission without sending a data communication frame to the communication master station and a data communication frame to the communication slave station. It is to determine a communication cycle pattern including a communication cycle without communication and a communication cycle with I / O that performs a normal operation of I / O.
このような構成によれば、各フェーズによって通信サイクルパターンを切り替えることができるため、効率よく処理を実行することができる。 According to such a configuration, the communication cycle pattern can be switched according to each phase, so that the processing can be executed efficiently.
本発明の好ましい他の実施の形態においては、イベントの発行時間決定処理は、電源投入後の初期通信スレーブ局加入時のフェーズと、初期通信スレーブ局加入後のイベント要求なし時のフェーズと、初期通信スレーブ局加入後の優先度の低いイベント要求あり時のフェーズと、初期通信スレーブ局加入後の優先度の高いイベント要求あり時のフェーズと、からなる通信フェーズから、現在の通信フェーズに該当する通信フェーズを判定し、それぞれの通信フェーズに設定されたイベント処理用時間をイベント時間として割り振るものであってもよい。 In another preferred embodiment of the present invention, the event issuance time determination process includes a phase at the time of initial communication slave station subscription after power-on, a phase at the time of no event request after the initial communication slave station subscription, Corresponds to the current communication phase from the communication phase consisting of the phase when there is a low priority event request after joining the communication slave station and the phase when there is a high priority event request after joining the initial communication slave station The communication phase may be determined, and the event processing time set for each communication phase may be allocated as the event time.
このような構成によれば、通信スレーブ局加入用のイベントを優先させることができるため、他のイベントが常時発生しているプログラマブル・コントローラシステムにおいても、通信スレーブ局の加入処理が短時間で行うことができる。 According to such a configuration, since the event for joining the communication slave station can be prioritized, the joining process of the communication slave station is performed in a short time even in a programmable controller system in which other events are constantly occurring. be able to.
本発明の好ましい他の実施の形態においては、I/Oなし通信サイクルは、通信スレーブ局に対して、現在のネットワーク情報を通知するビーコンフレームと、通信スレーブ局の存在確認、およびスレーブ局からのデータ送信許可を同時に行うトリガフレームと、通信マスタ局からの通信スレーブ局に対する存在確認に対する応答を行うコネクトフレームと、上記イベントの発行時間決定処理で割り振られたイベント時間内で行われるイベント処理群と、から構成されるものであってもよい。 In another preferred embodiment of the present invention, the communication cycle without I / O includes a beacon frame for notifying the communication slave station of the current network information, confirmation of the existence of the communication slave station, and from the slave station. A trigger frame that simultaneously permits data transmission, a connect frame that responds to the presence confirmation from the communication master station to the communication slave station, and an event processing group that is performed within the event time allocated in the event issue time determination process , May be configured.
このような構成によれば、出力フレームと入力フレームを実行させずに、加入処理やイベント送信を優先させているため、電源投入後の加入処理時にイベント時間を長く設定することができる。 According to such a configuration, priority is given to the joining process and event transmission without executing the output frame and the input frame, so that the event time can be set longer during the joining process after the power is turned on.
本発明の好ましい他の実施の形態においては、I/Oあり通信サイクルは、通信スレーブ局に対して、現在のネットワーク情報を通知するビーコンフレームと、通信スレーブ局へのデータ送信を行う出力フレームと、通信マスタ局からの通信スレーブ局に対する存在確認に対する応答を行うコネクトフレームと、通信マスタ局へのデータ送信を行う入力フレームと、上記イベントの発行時間決定処理で割り振られたイベント時間内で行われるイベント処理群と、から構成されるこものであってもよい。 In another preferred embodiment of the present invention, the communication cycle with I / O includes a beacon frame for notifying a communication slave station of current network information, and an output frame for transmitting data to the communication slave station. This is performed within the event time allocated by the connection frame for responding to the communication slave station from the communication master station, the input frame for transmitting data to the communication master station, and the event issue time determination process. An event processing group may be included.
このような構成によれば、通常通信サイクル時にイベント時間を短く設定することができることから、通常の通信サイクル時の通信サイクルタイムを短くすることができる。 According to such a configuration, since the event time can be set short during the normal communication cycle, the communication cycle time during the normal communication cycle can be shortened.
この発明によれば、1サイクルにおける通信サイクルタイムを長くしないで、電源投入時はイベント処理を多く実行可能とし、通信フェーズに適したイベント処理用時間を設定することができる。さらに、電源投入時のイベント処理を優先させることにより、他のイベント処理が常時発生しているPLCシステムにおいても通信スレーブ局の加入処理を最短で行うことができる。 According to the present invention, a large number of event processes can be executed when the power is turned on without increasing the communication cycle time in one cycle, and an event processing time suitable for the communication phase can be set. Furthermore, priority is given to event processing at the time of power-on, so that even in a PLC system in which other event processing is always occurring, communication slave station subscription processing can be performed in the shortest time.
以下に、この発明に係る通信マスタ局のイベント処理用時間制御方法の好適な実施の一形態を添付図面を参照しながら詳細に説明する。 Hereinafter, a preferred embodiment of a time control method for event processing of a communication master station according to the present invention will be described in detail with reference to the accompanying drawings.
通信マスタ局及び通信スレーブ局を含むPLCシステム全体の構成図が図1に示されている。同図に示されるように、このPLCシステムは、通信マスタ局となる通信機能を有するPLC装置1と、通信スレーブ局となる複数台の通信機能を有するI/Oターミナル装置2,2・・・とを、バス型ネットワークであるフィールドバス6により繋いで構成されている。なお、図において、4は中継装置として機能するリピータ、5はフィールドバスの終端における反射を低減する終端装置である。
A block diagram of the entire PLC system including a communication master station and a communication slave station is shown in FIG. As shown in the figure, this PLC system includes a
図示のPLC装置1としては、パラレルバスの敷設された図示しないバックプレーン上に多数のコネクタを配置し、それらのコネクタに対して、CPUユニット、I/Oユニット、その他各種の特殊機能ユニット等々を任意に装着可能とした所謂ビルディングブロック型のPLC装置が採用されている。そして、特に、この例では、バックプレーン上の1のコネクタに対して通信マスタユニットを装着することにより、「通信機能を有するPLC装置」が構成されている。図では、それらのユニットのうちで、CPUユニット20及び通信マスタユニット10のみに参照符号が付されている。
The illustrated
通信マスタユニット10の内部構成を示すハードウェア構成図が図2に示されている。同図に示されるように、通信マスタユニット10は、通信物理層として機能する通信インタフェース(通信I/F)101と、所望の通信機能を実現するための回路をLSI化してなるマスタ用ASIC102と、CPUユニット20との間で受け渡される送受信データのバッファエリアや、後述するMPU104の演算用ワークエリア等として機能するRAM103と、マイクロプロセッサを主体として構成されて装置全体を統括制御するためのMPU104と、各種の設定データが格納される不揮発性メモリ(EEPROM)105と、各種の動作表示等を行うためのLED表示部106と、各種の設定操作等に使用される設定スイッチ(設定SW)107と、CPUユニット20へ通ずる内部バスへのインタフェースとして機能する内部バスインタフェース(内部バスI/F)108とを含んでいる。
A hardware configuration diagram showing an internal configuration of the
当業者にはよく知られているように、この種のPLCシステムにおいては、CPUユニット20は、共通処理、I/Oリフレッシュ処理、ユーザプログラム実行処理、周辺サービス処理等を繰り返し一巡実行しており、I/Oリフレッシュ処理の実行の際には、バックプレーン上に装着されたローカルI/Oユニットとの間のみならず、通信マスタユニット10内のRAM103との間においても、I/Oリフレッシュ処理を実行する。
As is well known to those skilled in the art, in this type of PLC system, the
具体的には、CPUユニット20のI/Oメモリ内のOUTデータは、通信マスタユニット10のRAM103内のOUTエリアに書き込まれ、同RAM103のINデータは、CPUユニット20のI/Oメモリ内のINエリアに書き込まれる。
Specifically, the OUT data in the I / O memory of the
一方、後に詳細に説明するように、通信マスタユニット10と各I/Oターミナル装置2との間では、CPUユニット20のI/Oリフレッシュ動作とは非同期にフィールドバス6を介する通信が行われており、これにより各I/Oターミナル装置2と通信マスタユニット10内のRAM103との間においても、一種のI/Oリフレッシュ処理が実行される。
On the other hand, as will be described in detail later, communication via the
具体的には、I/Oターミナル装置(図1参照)2から受信されたINデータは、通信マスタユニット(図1参照)10内のRAM103のINエリアに書き込まれ、同RAM103のOUTエリアのOUTデータは、該当するI/Oターミナル装置2へと送信される。
Specifically, the IN data received from the I / O terminal device (see FIG. 1) 2 is written in the IN area of the
このようにして、CPUユニット20内のI/Oメモリと各I/Oターミナル装置2,2・・との間において、通信マスタユニット10を経由してI/Oリフレッシュ処理が実行され、その結果として、リモート設置された各I/Oターミナル装置2,2・・・に接続されたI/O機器をCPUユニット20で取り扱うことが可能となるのである。
In this way, the I / O refresh process is executed between the I / O memory in the
さらに、本発明のイベント時間制御の動作は、通信完了割り込みが行われたときに実行される。通信完了割り込みは、マスタ用ASIC102が通信サイクル開始時に設定された一定時間後に、マスタ用ASIC102からMPU104に対して行われる。
Further, the event time control operation of the present invention is executed when a communication completion interrupt is made. The communication completion interrupt is sent from the
次に、I/Oターミナル装置内部のハードウェア構成図が図3に示されている。同図に示されるように、I/Oターミナル装置2は、通信物理層として機能する通信インタフェース(通信I/F)201と、所望の通信機能を実現するための回路をLSI化してなるマスタ用ASIC202と、マイクロプロセッサを主体として構成されて装置全体を統括制御するためのMPU203と、各種の設定データが格納される不揮発性メモリ(EEPROM)204と、各種の動作表示等を行うためのLED表示部205と、各種の設定操作等に使用される設定スイッチ(設定SW)206と、I/O機器7との間でデータをやり取りするための外部インタフェース部(I/F部)207と、装置全体に安定化直流電源を供給するための変圧機能を有する直流電源部208とを含んでいる。
Next, FIG. 3 shows a hardware configuration diagram inside the I / O terminal device. As shown in the figure, the I /
そして、後に詳細に説明するように、通信マスタユニット10と各I/Oターミナル装置2との間では、通信マスタユニット10を通信マスタ局、各I/Oターミナル装置2を通信スレーブ局とする1対Nのマスタ・スレーブ通信を通じて、I/Oデータや各種メッセージのやり取りが行われる。
As described in detail later, between the
具体的には、通信マスタユニット10から受信されるOUTデータは、I/Oターミナル装置2のI/F部207を介してI/O機器7へと送り出され、I/O機器7からI/F部207を介してI/Oターミナル装置2に取り込まれたINデータは、通信マスタユニット10へ宛てて送信される。
Specifically, the OUT data received from the
次に、本発明の要部であるイベント時間制御の動作を示すゼネラルフローチャートが図4に示されている。同図に示されるように、上述の通信完了割り込みが行われると、通信スレーブ局の加入離脱の確認が行われ(ステップ401)、フィールドバス6を介してI/Oターミナル装置2が接続(加入)または切断(離脱)されたかどうか、通信マスタ局と通信スレーブ局との間で送受信が行われるフレームによって、通信スレーブ局の加入離脱の確認が行われる。
Next, FIG. 4 shows a general flowchart showing the operation of event time control which is the main part of the present invention. As shown in the figure, when the above-mentioned communication completion interrupt is performed, confirmation of the joining / leaving of the communication slave station is performed (step 401), and the I /
接続確認フェーズのフレームの送受信の模式図が図5に示されている。同図に示されるように、通信マスタ局から生存確認フレーム(Alive_Frame)AFが送信される。通信スレーブ局並びにリピータで生存確認フレームが受信されると、通信マスタ局から通信スレーブ局に対する存在確認に対する応答を行うためのコネクトフレーム(CN_Frame)CFが通信スレーブ局から通信マスタ局に対して送信される。通信マスタ局は、コネクトフレームCFを受信することにより、通信スレーブ局やリピータが接続されているか否かを確認することができる。 A schematic diagram of frame transmission / reception in the connection confirmation phase is shown in FIG. As shown in the figure, an alive confirmation frame (Alive_Frame) AF is transmitted from the communication master station. When a survival confirmation frame is received by the communication slave station and the repeater, a connect frame (CN_Frame) CF is sent from the communication slave station to the communication master station for responding to the presence confirmation from the communication master station to the communication slave station. The The communication master station can confirm whether or not a communication slave station or a repeater is connected by receiving the connect frame CF.
コネクトフレーム(CN_Frame)の構造の一例が図11に示されている。同図に示されるように、コネクトフレーム(CN_Frame)は、フレームの開始を示すスタート1101と、コネクトフレーム(CN_Frame)を示すコマンド1102と、当該コネクトフレーム(CN_Frame)を送信したスレーブを示すアドレス1103と、メッセージの種類またはメッセージ送信要求を示すアラーム1104と、フレームの異常を検出するためのCRC1105とから構成される。
An example of the structure of the connect frame (CN_Frame) is shown in FIG. As shown in the figure, the connect frame (CN_Frame) includes a
図4のフローチャートに戻り、通信スレーブ局の加入離脱の確認が行われると(ステップ401)、イベント処理が行われる(ステップ402)。イベント処理については、後に詳細に説明する。 Returning to the flowchart of FIG. 4, when confirmation of the joining / leaving of the communication slave station is performed (step 401), event processing is performed (step 402). The event processing will be described in detail later.
イベント処理が完了すると(ステップ402)、通信マスタ局側のI/Oリフレッシュ処理が行われる(ステップ403)。具体的には、CPUユニット20のI/Oメモリ内のOUTデータは、通信マスタユニット10のRAM103内のOUTエリアに書き込まれ、同RAM103のINデータは、CPUユニット20のI/Oメモリ内のINエリアに書き込まれる。
When event processing is completed (step 402), I / O refresh processing on the communication master station side is performed (step 403). Specifically, the OUT data in the I / O memory of the
通信マスタ局側のI/Oリフレッシュ処理が完了すると(ステップ403)、通信サイクルパターンが決定される(ステップ404)。これは現在の通信フェーズによって、I/Oを必要とするかどうかにより、通信サイクルの種類が使い分けられる。具体的には、『電源投入後の初期スレーブ加入時』の場合には、I/O無しの通信サイクルパターンが適用され、『初期スレーブ加入後のイベント要求無し時』、『初期スレーブ加入後の優先度の低いイベント要求あり』、または『初期スレーブ加入後の優先度の高いイベント要求あり(スレーブ途中加入時など)』の場合には、I/O有りの通信サイクルパターンが適用される。 When the I / O refresh process on the communication master station side is completed (step 403), a communication cycle pattern is determined (step 404). Depending on whether or not I / O is required depending on the current communication phase, the type of communication cycle is properly used. Specifically, in the case of “when the initial slave joins after power-on”, the communication cycle pattern without I / O is applied, “when there is no event request after joining the initial slave”, “after the initial slave join” In the case of “low-priority event request” or “high-priority event request after initial slave joining (such as during slave joining)”, the communication cycle pattern with I / O is applied.
通信サイクルパターンの決定処理(ステップ404)で適用される通信サイクルパターンを示す説明図が図6に示されている。同図(a)に示されるように、I/Oなしサイクルは、通信スレーブ局に対して、現在の伝送速度を通知するためのビーコンフレーム(BEACON_Frame)601と、通信スレーブ局の存在確認、及び通信スレーブ局からのデータ送信許可を同時に行うためのネットワーク同期フレーム(トリガフレーム、TRG_Frame)602と、通信マスタ局から通信スレーブ局に対する存在確認に対する応答を行うためのコネクトフレーム(CN_Frame)603と、イベント群604とが含まれている。このI/Oなしサイクルは、出力フレーム(OUT_Frame)と、入力フレーム(IN_Frame)とを流さずに、イベントの加入勧誘やイベント発行処理を優先させた通信サイクルであり、電源投入時のフェーズで使用される。
An explanatory diagram showing the communication cycle pattern applied in the communication cycle pattern determination process (step 404) is shown in FIG. As shown in FIG. 5A, the I / O-less cycle includes a beacon frame (BEACON_Frame) 601 for notifying the communication slave station of the current transmission rate, the presence confirmation of the communication slave station, and A network synchronization frame (trigger frame, TRG_Frame) 602 for simultaneously permitting data transmission from the communication slave station, a connect frame (CN_Frame) 603 for responding to the presence confirmation from the communication master station to the communication slave station, and an
また、同図(b)に示されるように、I/O有りサイクルは、ビーコンフレーム(BEACON_Frame)601と、通信スレーブ局の存在確認、通信スレーブ局へのデータ送信、及び通信スレーブ局からのデータ送信許可を同時に行うための出力フレーム(OUT_Frame)605と、コネクトフレーム(CN_Frame)603と、マスタ局へのデータ送信を行うための入力フレーム(IN_Frame)606と、イベント群604とが含まれている。このI/O有りサイクルは、I/Oの通常動作を行う通信サイクルである。
Also, as shown in FIG. 5B, the I / O presence cycle includes a beacon frame (BEACON_Frame) 601, confirmation of the existence of a communication slave station, data transmission to the communication slave station, and data from the communication slave station. An output frame (OUT_Frame) 605 for performing transmission permission at the same time, a connect frame (CN_Frame) 603, an input frame (IN_Frame) 606 for performing data transmission to the master station, and an
また、この例にあっては、通信マスタ局のみが送信できるフレームとしては、(1)出力フレーム(OUT_Frame)、(2)トリガフレーム(TRG_Frame)、(3)ビーコンフレーム(BEACON_Frame)の3種類のフレームが存在する。 In this example, the frames that can be transmitted only by the communication master station include (1) output frame (OUT_Frame), (2) trigger frame (TRG_Frame), and (3) beacon frame (BEACON_Frame). There is a frame.
また、通信スレーブ局のみが送信できるフレームとしては、(1)コネクトフレーム(CN_Frame)、(2)入力フレーム(IN_Frame)の2種類のフレームが存在する。 As frames that can be transmitted only by the communication slave station, there are two types of frames: (1) connect frame (CN_Frame) and (2) input frame (IN_Frame).
図6(b)に示されるように通信サイクルは、マスタから送信する出力フレーム(OUT_Frame)、出力フレーム(OUT_Frame)により指定されたスレーブからマスタに対して送信されるコネクトフレーム(CN_Frame)、INスレーブから送信される入力フレーム(IN_Frame)と続く。マスタユニットと各スレーブとの間の通信サイクルの開始タイミングは出力フレーム(OUT_Frame)の正常受信完了をもってあわせられる。そして、それにつづくコネクトフレーム(CN_Frame)、入力フレーム(IN_Frame)のフレーム長、送信されるフレーム数は固定であるため、各フレームの送信タイミングは、出力フレーム(OUT_Frame)の正常送信完了を開始タイミングとして定められた時間監視により行うことができる。 As shown in FIG. 6B, the communication cycle includes an output frame (OUT_Frame) transmitted from the master, a connect frame (CN_Frame) transmitted from the slave specified by the output frame (OUT_Frame) to the master, and an IN slave. Followed by the input frame (IN_Frame) sent from. The start timing of the communication cycle between the master unit and each slave is adjusted upon completion of normal reception of the output frame (OUT_Frame). Since the connect frame (CN_Frame), the input frame (IN_Frame), and the number of frames to be transmitted are fixed, the transmission timing of each frame is the start timing of the normal transmission completion of the output frame (OUT_Frame). It can be performed by a predetermined time monitoring.
出力フレーム(OUT_Frame)の構造の一例が図12に示されている。同図に示されるように、出力フレーム(OUT_Frame)は、フレームの開始を示すスタート1201と、出力フレーム(OUT_Frame)を示すコマンド1202と、コネクトフレーム(CN_Frame)送信要求するスレーブを示すCN_frame送信要求アドレス1203と、OUTデータのデータ長を示すレングス1204と、OUTスレーブへの出力データを格納しているOUTデータ1205と、フレームの異常を検出するためのCRC1206とから構成される。
An example of the structure of the output frame (OUT_Frame) is shown in FIG. As shown in the figure, the output frame (OUT_Frame) includes a
マスタは、各OUTスレーブ宛の出力データを出力フレーム(OUT_Frame)のどこに割り当てるかの管理を行っており、そして各OUTスレーブのそれぞれは自局が受け取る出力データが、出力フレーム(OUT_Frame)のどこに割り当てられているのかを通信サイクルが始まる前に、マスタから通知されている。 The master manages where the output data addressed to each OUT slave is assigned to the output frame (OUT_Frame), and each OUT slave assigns the output data received by its own station to the output frame (OUT_Frame). Is notified from the master before the communication cycle starts.
入力フレーム(IN_Frame)の構造の一例が図13に示されている。同図に示されるように、入力フレーム(IN_Frame)は、フレームの開始を示すスタート1301と、入力フレーム(IN_Frame)種をコマンド1302と、当該入力フレーム(IN_Frame)を送信したスレーブを示すアドレス1303と、INデータのデータ長を示すレングス1304と、INスレーブからの入力データを格納しているINデータ1305と、フレームの異常を検出するためのCRC1305とから構成される。
An example of the structure of the input frame (IN_Frame) is shown in FIG. As shown in the figure, an input frame (IN_Frame) has a
マスタは、各INスレーブが、出力フレーム(OUT_Frame)正常受信後どの時間に送信するかの管理を行っており、通信サイクルが始まる前に、マスタから各INスレーブまたはMIXスレーブに対して入力フレーム(IN_Frame)を送信するタイミングがそれぞれ通知される。各INスレーブは、マスタから通知された入力フレーム(IN_Frame)を送信するタイミングの値が保持されており、それぞれのINスレーブはその値に従って入力フレーム(IN_Frame)を送信する。 The master manages the time at which each IN slave transmits after the output frame (OUT_Frame) is normally received, and before the communication cycle starts, the master inputs the input frame (to the IN slave or MIX slave). (IN_Frame) transmission timing is notified. Each IN slave holds a timing value for transmitting an input frame (IN_Frame) notified from the master, and each IN slave transmits an input frame (IN_Frame) according to the value.
入力フレーム(IN_Frame)は、INスレーブがマスタに送信することができるが、OUTスレーブは入力フレーム(IN_Frame)を発行することができないため、入力フレーム(IN_Frame)内にメッセージ通信要求を行う手段を持たせることはできない。このため、すべての種類のスレーブが発行可能なコネクトフレーム(CN_Frame)にメッセージ通信要求を行う手段を持たせる。 The input frame (IN_Frame) can be transmitted to the master by the IN slave, but since the OUT slave cannot issue the input frame (IN_Frame), it has means for making a message communication request in the input frame (IN_Frame). I can't let you. For this reason, a means for making a message communication request is provided in a connect frame (CN_Frame) that can be issued by all types of slaves.
通常の通信サイクルフェーズのフレーム送受信の模式図が図7に示されている。同図に示されるように、通信マスタ局は、通信スレーブ局に対して出力フレーム(OUT_Frame)OF、またはネットワーク同期フレーム(トリガフレーム、TRG_Frame)TFを送信する。通信スレーブ局で出力フレームOFが受信された場合には、自ノードで利用するデータのみを抜き出し受信される。また、トリガフレームTFが受信された場合には、内部タイマを起動し、送信時間到来時に通信マスタ局に対して入力フレーム(IN_Frame)が送信される。 A schematic diagram of frame transmission / reception in the normal communication cycle phase is shown in FIG. As shown in the figure, the communication master station transmits an output frame (OUT_Frame) OF or a network synchronization frame (trigger frame, TRG_Frame) TF to the communication slave station. When the output frame OF is received by the communication slave station, only the data used by the own node is extracted and received. When the trigger frame TF is received, an internal timer is started, and an input frame (IN_Frame) is transmitted to the communication master station when the transmission time arrives.
アラームビットとメッセージ種の対応例が図14に示されている。アラームは単数または複数ビットからなり、アラームビットとメッセージ種の対応はマスタと各スレーブ間とで事前に取れている。 An example of correspondence between alarm bits and message types is shown in FIG. The alarm is composed of a single bit or a plurality of bits, and the correspondence between the alarm bit and the message type is established in advance between the master and each slave.
次にメッセージ通信について説明する。メッセージ通信に使用するフレームの構造が図15に示されている。同図に示されるように、メッセージフレームは、フレームの開始を示すスタート1501と、メッセージフレームを示すコマンド1502と、当該メッセージフレームの宛先ノードを示す宛先アドレス1503と、当該メッセージフレームの発信元ノードを示す発信元アドレス1504と、メッセージデータのデータ長を示すレングス1505と、メッセージ種に対応したメッセージデータ1506と、フレームの異常を検出するためのCRC1507とから構成される。メッセージフレームには用途がいくつかあり、メッセージフレームの送信許可を行うフレーム、データを転送するためのイベントフレーム、メッセージデータを正常受信したことを示すACKフレーム、メッセージデータが受信できないことをしめすBUSYフレームなどがあり、これらの区別には、上記のコマンドフィールドが使用される。
Next, message communication will be described. The structure of the frame used for message communication is shown in FIG. As shown in the figure, the message frame includes a
メッセージフレームは、図6(b)に示されるI/O通信サイクルとは異なり、メッセージ通信サイクルと呼ばれる通信サイクルにて送受信される。メッセージ通信サイクルは、マスタがメッセージを送信する場合またはスレーブがマスタに対してメッセージ通信を要求しマスタが許可する場合にのみ挿入される。 Unlike the I / O communication cycle shown in FIG. 6B, the message frame is transmitted and received in a communication cycle called a message communication cycle. The message communication cycle is inserted only when the master sends a message or when the slave requests message communication from the master and the master permits it.
通信サイクルとメッセージサイクルとの関係が図16に示されている。同図(a)に示されるように、メッセージ通信サイクルが挿入されない場合には、I/O通信サイクル01600,I/O通信サイクル11601,I/O通信サイクル21602,I/O通信サイクル31603と実行され、同図(b)に示されるように、メッセージ通信サイクルが送受信される場合には、I/O通信サイクル1610,1612中にメッセージ通信サイクル1611が挿入される。
The relationship between the communication cycle and the message cycle is shown in FIG. As shown in FIG. 5A, when a message communication cycle is not inserted, an I / O communication cycle 01600, an I / O communication cycle 11601, an I / O communication cycle 21602, and an I / O communication cycle 31603 are executed. Then, as shown in FIG. 5B, when the message communication cycle is transmitted and received, the
まず、マスタからスレーブに対して最初にメッセージを送信する場合について説明する。先のほどのコネクトフレーム(CN_Frame)の中にマスタからスレーブへのメッセージ通信を要求するメッセージ種が指定された場合、マスタはその重要度に応じて当該スレーブに対してメッセージ送信を行う。この場合のメッセージ通信の流れを以下に示す。
1.マスタは、スタート1501、イベントフレームを示すコマンド1502、メッセージ送信を要求してきたスレーブのアドレスを宛先アドレス1503、自局のアドレスを送信元アドレス1504、送信するメッセージデータ量に応じたデータ長をレングス1505、メッセージの内容をメッセージデータ1506、CRC1507を生成し、メッセージフレームを送信する。
2.スレーブは、受信したメッセージフレームの宛先アドレス1503により自局宛かどうか判断する。自局宛ではない場合、フレームを破棄する。
3.宛先アドレス1503により自局宛と判断したスレーブは、フレームが正常受信した場合は、スタート1501、ACKフレームを示すコマンド1502、マスタのアドレスを宛先アドレス1503、自局のアドレスを送信元アドレス1504、CRC1507をセットし、メッセージを送信する。フレームを正常受信できない場合は、スタート1501、BUSYフレームを示すコマンド1502、マスタのアドレスを宛先アドレス1503、自局のアドレスを発信元アドレス1504、データ長“0”をレングス1505、適切な値をCRC1506にセットし、メッセージを送信する。
First, a case where a message is first transmitted from the master to the slave will be described. When a message type for requesting message communication from the master to the slave is specified in the previous connect frame (CN_Frame), the master transmits a message to the slave according to its importance. The flow of message communication in this case is shown below.
1. The master starts 1501, a
2. The slave determines whether it is destined for its own station based on the
3. When the slave determines that it is addressed to its own station by the
上記のマスタからスレーブに対してメッセージを送信する場合のメッセージサイクルが図17に示されている。同図に示されるように、1つのメッセージ通信サイクル内にて、複数のイベントフレーム1701,1702を送受信してもよい。
FIG. 17 shows a message cycle when a message is transmitted from the master to the slave. As shown in the figure, a plurality of
次に、スレーブからマスタに対してメッセージ送信する場合について説明する。この場合、メッセージ通信は以下のような流れになる。
1.マスタは、スタート1501、メッセージ送信許可フレームを示すコマンド1502、メッセージ送信許可を要求してきたスレーブのアドレスを宛先アドレス1503、自局のアドレスを発信元アドレス1504、データ長“0”をレングス1505、適切な値をCRC1506にセットし、メッセージフレームを送信する。
2.スレーブは、受信したメッセージフレーム宛先アドレス1503により自局宛かどうか判断する。自局宛ではない場合、フレームを破棄する。
3.宛先アドレス1503により自局宛と判断したスレーブは、スタート1501、イベントフレームを示すコマンド1502、マスタのアドレスを宛先アドレス1503、送信元のマスタのアドレスを発信元アドレス1504、送信するメッセージデータ量に応じたデータ長をレングス1505、メッセージの内容をメッセージデータ1506、CRC1507をセットし、メッセージを送信する。
4.マスタおよびスレーブは、受信したメッセージフレームの宛先アドレス1503により自局宛かどうか判断する。自局宛ではない場合、フレームを破棄する。
5.宛先アドレス1503により自局宛と判断したマスタは、フレームが正常受信した場合は、スタート1501、ACKフレームを示すコマンド1502、メッセージの送信元アドレスを宛先アドレス1503、自局のアドレスを発信元アドレス1504、CRC1507をセットし、メッセージを送信する。フレームを正常受信できない場合は、スタート1501、BUSYフレームを示すコマンド1502、メッセージの送信元アドレスを宛先アドレス1503、自局のアドレスを発信元アドレス1504、CRC1507をセットし、メッセージを送信する。
Next, a case where a message is transmitted from the slave to the master will be described. In this case, message communication is as follows.
1. The master starts 1501, a
2. The slave determines whether it is addressed to its own station based on the received message
3. The slave that is determined to be addressed to the own station by the
4). The master and the slave determine whether or not they are addressed to the local station based on the
5. When the master determines that it is addressed to the own station by the
上記のスレーブからマスタに対してメッセージを送信する場合のメッセージサイクルが図18に示されている。同図に示されるように、1つのメッセージ通信サイクル内にて、マスタは複数のメッセージ送信許可フレーム1801,1803を送信し、スレーブに対して複数のイベントフレーム1811の送信を許可してもよい。
FIG. 18 shows a message cycle when a message is transmitted from the slave to the master. As shown in the figure, the master may transmit a plurality of message transmission permission frames 1801 and 1803 and allow the slave to transmit a plurality of
スレーブとマスタ間で、メッセージ通信が行われる具体的な例としては、図19に示されるメッセージフレームのコマンドフィールドが挙げられる。また、メッセージデータは必ずしもメッセージフレームに含まれるとは限らない。 A specific example in which message communication is performed between the slave and the master is the command field of the message frame shown in FIG. Message data is not always included in a message frame.
図4のフローチャートに戻り、通信サイクルパターンが決定されると(ステップ404)、該当する通信サイクルパターンに基づいて通信サイクルが開始され(ステップ405)、通信マスタ局とI/Oターミナル装置との間でI/Oリフレッシュ処理が行われる(ステップ406)。具体的には、通信マスタユニット10から受信されるOUTデータは、I/Oターミナル装置2のI/O部207を介してI/O機器7へと送り出され、I/O機器7からI/O部207を介してI/Oターミナル装置2に取り込まれたINデータは、通信マスタユニット10へ宛てて送信される。
Returning to the flowchart of FIG. 4, when a communication cycle pattern is determined (step 404), a communication cycle is started based on the corresponding communication cycle pattern (step 405), and between the communication master station and the I / O terminal device. Then, an I / O refresh process is performed (step 406). Specifically, the OUT data received from the
イベント処理(ステップ402)の詳細を示すフローチャートが図8に示されている。同図に示されるように、イベント処理が行われると、後に詳細に説明するイベントの発行時間決定処理が行われる(ステップ801)。 A flowchart showing details of the event processing (step 402) is shown in FIG. As shown in the figure, when event processing is performed, event issue time determination processing described in detail later is performed (step 801).
イベントの発行時間決定処理が行われると(ステップ801)、イベントが存在するときのみイベントの発行が行われる(ステップ802)。イベントの発行はイベントの発行時間決定処理(ステップ801)で指定された時間に達するまで発行処理は継続される(ステップ803NO)。指定された時間に達すると(ステップ803YES)、イベントの発行処理は終了する。 When the event issuance time determination process is performed (step 801), the event is issued only when the event exists (step 802). The event issuance is continued until the time specified in the event issuance time determination process (step 801) is reached (NO in step 803). When the designated time is reached (YES in step 803), the event issuing process ends.
イベントの発行時間決定処理(ステップ801)の詳細を示すフローチャートが図9に示されている。同図に示されるように、イベントの発行時間決定処理が行われると、現在の通信フェーズが『初期スレーブ加入中』であるか否かの判定が行われる(ステップ901)。現在のフェーズが初期スレーブ加入中である(マスタ動作開始から、通信スレーブ局が1台加入後に、全通信スレーブ局に対し存在確認をするまでの間)場合には(ステップ901YES)、イベントの発行時間は、初期スレーブ加入時時間が割り振られる(ステップ902)。現在のフェーズが初期スレーブ加入中でない場合には(ステップ901NO)、現在のフェーズが『優先度の高いイベント待ち』であるか否かの判定が行われる(ステップ903)。現在のフェーズが優先度の高いイベント待ちである場合には(ステップ903YES)、イベントの発行時間は、優先度の高いイベント要求あり時時間が割り振られる(ステップ904)。現在のフェーズが優先度の高いイベント待ちでない場合には(ステップ903NO)、現在のフェーズが『優先度の低いイベント待ち』であるか否かの判定が行われる(ステップ905)。現在のフェーズが優先度の低いイベント待ちである場合には(ステップ905YES)、イベントの発行時間は、優先度の低いイベント要求あり時時間が割り振られる(ステップ906)。現在のフェーズが優先度の低いイベント待ちでない場合には(ステップ905NO)、イベント発行時間は、イベントの要求無し時時間が割り振られる(ステップ907)。 FIG. 9 shows a flowchart showing details of the event issuance time determination process (step 801). As shown in the figure, when the event issuance time determination process is performed, it is determined whether or not the current communication phase is “adding initial slave” (step 901). If the current phase is joining the initial slave (from the start of master operation until the communication slave station confirms the existence of all the communication slave stations after adding one communication slave station) (step 901 YES), issue an event The time is allocated at the time of initial slave joining (step 902). If the current phase is not joining the initial slave (step 901 NO), it is determined whether or not the current phase is “waiting for high priority event” (step 903). If the current phase is waiting for an event with a high priority (YES in step 903), an event request time with a high priority is assigned as the event issue time (step 904). If the current phase is not waiting for an event with a high priority (NO in step 903), it is determined whether or not the current phase is “waiting for an event with a low priority” (step 905). If the current phase is waiting for an event with a low priority (YES in step 905), an event issue time with a low priority is assigned as an event issue time (step 906). If the current phase is not waiting for an event with a low priority (NO in step 905), the event issue time is assigned a time when there is no event request (step 907).
このように、本実施形態による通信マスタ局のイベント処理用時間制御方法を適用することにより、1サイクルにおける通信サイクルタイムを長くしないで、電源投入時はイベント処理を多く実行可能とし、通信フェーズに適したイベント処理用時間を設定することができる。さらに、電源投入時のイベント処理を優先させることにより、他のイベント処理が常時発生しているPLCシステムにおいても通信スレーブ局の加入処理を最短で行うことができる。 Thus, by applying the event processing time control method of the communication master station according to this embodiment, it is possible to execute a lot of event processing at power-on without increasing the communication cycle time in one cycle, and in the communication phase. A suitable event processing time can be set. Furthermore, priority is given to event processing at the time of power-on, so that even in a PLC system in which other event processing is always occurring, communication slave station subscription processing can be performed in the shortest time.
この発明によれば、1サイクルにおける通信サイクルタイムを長くしないで、電源投入時はイベント処理を多く実行可能とし、通信フェーズに適したイベント処理用時間を設定することができる。さらに、電源投入時のイベント処理を優先させることにより、他のイベント処理が常時発生しているPLCシステムにおいても通信スレーブ局の加入処理を最短で行うことができる。 According to the present invention, a large number of event processes can be executed when the power is turned on without increasing the communication cycle time in one cycle, and an event processing time suitable for the communication phase can be set. Furthermore, priority is given to event processing at the time of power-on, so that even in a PLC system in which other event processing is always occurring, communication slave station subscription processing can be performed in the shortest time.
1 通信機能を有するPLC装置
2 通信機能を有するI/Oターミナル装置
3 パソコン
4 リピータ
5 終端装置
6 フィールドバス
7 I/O機器
10 通信マスタユニット
20 CPUユニット
101 通信インタフェース
102 マスタ用ASIC
103 RAM
104 MPU
105 EEPROM
106 LED表示器
107 設定スイッチ(設定SW)
108 内部バズインタフェース
201 通信インタフェース
202 スレーブ用ASIC
203 MPU
204 EEPROM
205 LED表示部
206 設定スイッチ(設定SW)
207 外部インタフェース部(I/F部)
208 電源
601 ビーコンフレーム
602 ネットワーク同期フレーム(トリガフレーム)
603 コネクトフレーム
604 イベント群
605 出力フレーム
606 入力フレーム
1101 スタート
1102 コマンド
1103 アドレス
1104 アラーム
1105 CRC
1201 スタート
1202 コマンド
1203 CN_frame送信要求アドレス
1204 レングス
1205 OUTデータ
1206 CRC
1301 スタート
1302 コマンド
1303 アドレス
1304 レングス
1305 INデータ
1306 CRC
1501 スタート
1502 コマンド
1503 宛先アドレス
1504 発信元アドレス
1505 レングス
1506 メッセージデータ
1507 CRC
1600 I/O通信サイクル0
1601 I/O通信サイクル1
1602 I/O通信サイクル2
1603 I/O通信サイクル3
1610 I/O通信サイクル0
1611 メッセージ通信サイクル
1612 I/O通信サイクル1
1701 イベントフレーム
1702 イベントフレーム
1711 ACK or BUSYフレーム
1712 ACK or BUSYフレーム
1801 メッセージ送信許可フレーム
1802 ACK or BUSYフレーム
1803 メッセージ送信許可フレーム
1811 イベントフレーム
AF 生存確認フレーム
CN コネクトフレーム
OF 出力フレーム
TF ネットワーク同期フレーム(トリガフレーム)
IF 入力フレーム
a I/Oリフレッシュ時間
b イベント処理時間
t 時間
DESCRIPTION OF
103 RAM
104 MPU
105 EEPROM
106
108
203 MPU
204 EEPROM
205
207 External interface section (I / F section)
208
1201
1301
1501
1600 I /
1601 I /
1602 I /
1603 I / O communication cycle 3
1610 I /
1611 Message communication cycle 1612 I /
1701
IF input frame a I / O refresh time b Event processing time t time
Claims (5)
通信サイクル実行時に、通信スレーブ局の加入離脱の確認後、イベントの発行時間決定処理と、イベントの発行とが行われるイベント処理を実行し、
さらに、イベントの発行時間決定処理は、現在の通信フェーズにより、通信フェーズ毎に設定されたイベント処理用時間と、使用目的に適した通信サイクルパターンとを判定する、ことを特徴とする通信マスタ局のイベント処理用時間制御方法。 A programmable controller device having a communication function and one or more I / O terminal devices having a communication function are connected by a bus network, and the programmable controller device having the communication function is used as a communication master station and has a communication function. Each I / O terminal device having a communication slave station is set as a communication slave station, and in a communication cycle composed of I / O refresh processing and event processing, by setting event processing time for each communication phase, a communication master A communication master station event processing time control method applied to a programmable controller system adapted to perform communication based on a communication cycle pattern between a station and each communication slave station,
At the time of communication cycle execution, after confirming that the communication slave station has joined or disconnected, execute event processing that performs event issue time determination processing and event issuance,
Further, the event issuance time determination process determines an event processing time set for each communication phase and a communication cycle pattern suitable for the purpose of use according to the current communication phase. Time control method for event processing.
通信マスタ局へのデータ通信フレーム、通信スレーブ局へのデータ通信フレームを流さずに加入勧誘やイベント送信を優先したI/Oなし通信サイクルと、
I/Oの通常動作を行うI/Oあり通信サイクルと、
からなる通信サイクルパターンを判定して、使用目的に適した通信サイクルパターンを判定する、ことを特徴とする請求項1に記載の通信マスタ局のイベント処理用時間制御方法。 The event issue time determination process is as follows:
A communication cycle without I / O prioritizing subscription solicitation and event transmission without flowing a data communication frame to the communication master station and a data communication frame to the communication slave station,
A communication cycle with I / O for normal I / O operation;
2. The event processing time control method for a communication master station according to claim 1, wherein a communication cycle pattern suitable for a purpose of use is determined by determining a communication cycle pattern comprising:
電源投入後の初期通信スレーブ局加入時のフェーズと、
初期通信スレーブ局加入後のイベント要求なし時のフェーズと、
初期通信スレーブ局加入後の優先度の低いイベント要求あり時のフェーズと、
初期通信スレーブ局加入後の優先度の高いイベント要求あり時のフェーズと、
からなる通信フェーズから、現在の通信フェーズに該当する通信フェーズを判定し、それぞれの通信フェーズに設定されたイベント処理用時間をイベント時間として割り振る、ことを特徴とする請求項2に記載の通信マスタ局のイベント処理用時間制御方法。 The event issue time determination process is as follows:
Phase when initial communication slave station joined after power-on,
Phase when there is no event request after joining the initial communication slave station,
Phase when there is a low priority event request after initial communication slave station subscription,
Phase when there is a high priority event request after joining the initial communication slave station,
The communication master according to claim 2, wherein a communication phase corresponding to the current communication phase is determined from the communication phase consisting of: and an event processing time set in each communication phase is allocated as an event time. Station event processing time control method.
通信スレーブ局に対して、現在のネットワーク情報を通知するビーコンフレームと、
通信スレーブ局の存在確認、およびスレーブ局からのデータ送信許可を同時に行うトリガフレームと、
通信マスタ局からの通信スレーブ局に対する存在確認に対する応答を行うコネクトフレームと、
上記イベントの発行時間決定処理で割り振られたイベント時間内で行われるイベント処理群と、
から構成される、ことを特徴とする請求項3に記載の通信マスタ局のイベント処理用時間制御方法。 Communication cycle without I / O is
A beacon frame that notifies the communication slave station of the current network information;
A trigger frame that simultaneously checks the existence of a communication slave station and permits data transmission from the slave station,
A connect frame that responds to the presence confirmation from the communication master station to the communication slave station,
Event processing group that is performed within the event time allocated in the event issue time determination process, and
4. The event processing time control method for a communication master station according to claim 3, comprising:
通信スレーブ局に対して、現在のネットワーク情報を通知するビーコンフレームと、
通信スレーブ局へのデータ送信を行う出力フレームと、
通信マスタ局からの通信スレーブ局に対する存在確認に対する応答を行うコネクトフレームと、
通信マスタ局へのデータ送信を行う入力フレームと、
上記イベントの発行時間決定処理で割り振られたイベント時間内で行われるイベント処理群と、
から構成される、ことを特徴とする請求項3に記載の通信マスタ局のイベント処理用時間制御方法。 Communication cycle with I / O is
A beacon frame that notifies the communication slave station of the current network information;
An output frame for transmitting data to the communication slave station;
A connect frame that responds to the presence confirmation from the communication master station to the communication slave station,
An input frame for transmitting data to the communication master station;
Event processing group that is performed within the event time allocated in the event issue time determination process, and
4. The event processing time control method for a communication master station according to claim 3, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005252682A JP4458278B2 (en) | 2005-08-31 | 2005-08-31 | Communication cycle control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005252682A JP4458278B2 (en) | 2005-08-31 | 2005-08-31 | Communication cycle control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007066103A true JP2007066103A (en) | 2007-03-15 |
JP4458278B2 JP4458278B2 (en) | 2010-04-28 |
Family
ID=37928204
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005252682A Active JP4458278B2 (en) | 2005-08-31 | 2005-08-31 | Communication cycle control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4458278B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011114449A (en) * | 2009-11-25 | 2011-06-09 | Anywire:Kk | Remote wiring check system, and connection connector used in the system |
JP2012080455A (en) * | 2010-10-05 | 2012-04-19 | Panasonic Corp | Radio communication system |
WO2024009633A1 (en) * | 2022-07-05 | 2024-01-11 | パナソニックIpマネジメント株式会社 | Controller, control method, and program |
-
2005
- 2005-08-31 JP JP2005252682A patent/JP4458278B2/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011114449A (en) * | 2009-11-25 | 2011-06-09 | Anywire:Kk | Remote wiring check system, and connection connector used in the system |
JP2012080455A (en) * | 2010-10-05 | 2012-04-19 | Panasonic Corp | Radio communication system |
WO2024009633A1 (en) * | 2022-07-05 | 2024-01-11 | パナソニックIpマネジメント株式会社 | Controller, control method, and program |
Also Published As
Publication number | Publication date |
---|---|
JP4458278B2 (en) | 2010-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3925660B2 (en) | Communication master station startup control method | |
JP2016032274A (en) | Gateway unit | |
JP2016500503A (en) | Data transmission protocol using protocol exception state | |
JP6629361B2 (en) | Programmable logic controller | |
KR101179431B1 (en) | Network Management System based on a EhterCAT And Managing Method thereof | |
JP4458278B2 (en) | Communication cycle control method | |
JP2006217494A (en) | Communication system and method | |
JP4458279B2 (en) | Programmable controller system communication method | |
JPH1041964A (en) | Network system for programmable controller | |
US6732262B1 (en) | Method and system for controlling reset of IEEE 1394 network | |
JP2012104941A (en) | Radio communication device, program therefor, and communication system | |
JP2004280304A (en) | Field bus system, communication method and master/ slave | |
JP2006277733A (en) | Programmable controller system | |
JP4407838B2 (en) | Communication master station startup control method | |
US20220137604A1 (en) | Coordination Device and Method for Providing Control Applications via a Communication Network for Transmitting Time-Critical Data | |
JP2006197417A (en) | Communication control method and system | |
JP2006254290A (en) | Master/slave communication system and communication method | |
JP4458281B2 (en) | Programmable controller system | |
JP3959845B2 (en) | Input / output control method for programmable controllers | |
JP2004274395A (en) | Duplicate address detecting method, slave and master in field bus system, and field bus | |
JP4843306B2 (en) | Data transmission system and data transmission apparatus | |
JP2016178475A (en) | Communication system and relay control method | |
JP5223582B2 (en) | Message transmission apparatus and message transmission method | |
JP2007097157A (en) | Reduction of effect of repeater delay | |
JP2006005646A (en) | Network communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080222 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091001 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091021 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091217 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100120 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4458278 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100202 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130219 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140219 Year of fee payment: 4 |