JP2010062861A - Ring type network system and method for restoring same - Google Patents

Ring type network system and method for restoring same Download PDF

Info

Publication number
JP2010062861A
JP2010062861A JP2008226302A JP2008226302A JP2010062861A JP 2010062861 A JP2010062861 A JP 2010062861A JP 2008226302 A JP2008226302 A JP 2008226302A JP 2008226302 A JP2008226302 A JP 2008226302A JP 2010062861 A JP2010062861 A JP 2010062861A
Authority
JP
Japan
Prior art keywords
station
command frame
loopback
disconnection
master 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
Application number
JP2008226302A
Other languages
Japanese (ja)
Other versions
JP5077153B2 (en
Inventor
Yugo Sunaga
祐悟 須長
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 Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Systems Co Ltd filed Critical Fuji Electric Systems Co Ltd
Priority to JP2008226302A priority Critical patent/JP5077153B2/en
Publication of JP2010062861A publication Critical patent/JP2010062861A/en
Application granted granted Critical
Publication of JP5077153B2 publication Critical patent/JP5077153B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce a processing load of a master station when the line is restored from a disconnection state at a state that a connection state of a line is maintained by performing loop back by generation of disconnection. <P>SOLUTION: When restoration of the disconnection state is notified from a loop back station which performs the loop back, a transmission command frame for instructing execution of preprocessing for transiting a separated station which is separated by the loop back to a state such as an initial state before restoration which should be in restoration to a line is transmitted from a master station to a loop back station, in the loop back station, the transmission command frame is transmitted to the separated station, and the specified preprocessing is executed in the separated station. In the master station, after receiving a response from the separated station to the transmission command frame, a loop back release instruction is performed to the loop back station to release the loop back, and processing in line restoration in accordance with reconnection of the separated station to the line is performed. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、マスタ局及び複数のスレーブ局によりリング型ネットワークを構築し、このリング型ネットワークにおいて、各局が接続された回線上で伝送フレームを周回させることによりデータ交換処理を行うようにした、リング型ネットワークシステム及びリング型ネットワークシステムの復旧方法に関する。   In the present invention, a ring network is constructed by a master station and a plurality of slave stations, and in this ring network, a data exchange process is performed by circulating a transmission frame on a line to which each station is connected. The present invention relates to a recovery method for a ring network system and a ring network system.

従来、リング型ネットワークシステムにおいては、例えば、断線や、コネクタの脱落等といった、回線の故障や局の故障等により断線状態が生じた場合には、この断線箇所近傍の局が断線状態にあることを検出してループバックを行い、このループバックにより回線を接続状態に維持することにより、ループバックにより切り離された局を除いた局間で、データ交換を継続するようにしている(例えば、特許文献1、2参照)。   Conventionally, in a ring network system, for example, if a disconnection state occurs due to a line failure or station failure such as disconnection or connector disconnection, the station near this disconnection location must be disconnected. Is detected and looped back, and the line is maintained in the connected state by this loopback, so that data exchange is continued between the stations excluding the stations disconnected by the loopback (for example, patents) References 1 and 2).

また、断線を検出した局や回線構成要素である機器が、その断線箇所の断線状態からの復旧を検出したときには、自動的にループバックを解除し、ループバックにより切り離された局を含めて、一つの回線に接続された局間でのデータ交換を再開するようにしている(例えば、特許文献3参照)。
特開平2−294136号公報 特開平3−206752号公報 特開平5−276182号公報
In addition, when a station that has detected a disconnection or a device that is a line component detects a recovery from the disconnection state of the disconnection point, the loopback is automatically canceled, including the station disconnected by the loopback, Data exchange between stations connected to one line is resumed (see, for example, Patent Document 3).
JP-A-2-294136 JP-A-3-206752 JP-A-5-276182

例えば、図8に示すように、マスタ局及び複数のスレーブ局がバス接続され、且つ両端に位置する局において回線を折り返すことにより、リング型ネットワークを構築し、スレーブ局SL1、マスタ局M0、スレーブ局SL2、スレーブ局SL3、スレーブ局SL4の順にバス接続してなるリング型ネットワークシステムにおいて、図8に示すように、スレーブ局SL2とスレーブ局SL3との間で断線状態となったものとすると、スレーブ局SL2ではループバックを行う。   For example, as shown in FIG. 8, a master station and a plurality of slave stations are connected by a bus, and a ring network is constructed by looping back a line at stations located at both ends, and a slave station SL1, a master station M0, and a slave In the ring network system in which the bus connection is made in the order of the station SL2, the slave station SL3, and the slave station SL4, as shown in FIG. 8, it is assumed that there is a disconnection state between the slave station SL2 and the slave station SL3. The slave station SL2 performs loop back.

このため、同一回線に接続されたスレーブ局SL1、マスタ局M0、スレーブ局SL2からなるグループAと、グループAの回線から切り離されたスレーブ局SL3及びスレーブ局SL4からなるグループBとに分かれることになり、マスタ局M0と同一回線に接続されるグループAでは各スレーブ局はマスタ局M0との通信が継続されるが、マスタ局M0から切り離されたグループBでは各スレーブ局はマスタ局M0との通信を行うことができない。   For this reason, it is divided into group A consisting of slave station SL1, master station M0, and slave station SL2 connected to the same line, and group B consisting of slave station SL3 and slave station SL4 separated from the line of group A. Thus, in group A connected to the same line as master station M0, each slave station continues to communicate with master station M0. However, in group B disconnected from master station M0, each slave station is connected to master station M0. Communication is not possible.

したがって、グループBの各スレーブ局ではデータリフレッシュが行われない状態となる。そして、マスタ局M0からのデータリフレッシュ用データを受信できないことから、グループBの各スレーブ局ではマスタ局M0に何らかの異常が生じたと判断し、自局の動作を停止しそのままの状態を維持する、或いは自局の動作を停止して初期状態に復帰させる等といった、動作を行うことになる。つまり、リング型ネットワークシステム全体としてみた場合、マスタ局M0を含むグループAは正常状態であるのに対し、グループBの各スレーブ局は故障状態にあることと同等の状態となる。   Accordingly, data refresh is not performed in each slave station of group B. Since the data refresh data from the master station M0 cannot be received, each slave station in the group B determines that some abnormality has occurred in the master station M0, stops its own operation, and maintains the state as it is. Alternatively, an operation such as stopping the operation of the own station and returning to the initial state is performed. That is, when viewed as the entire ring network system, the group A including the master station M0 is in a normal state, while each slave station in the group B is in a state equivalent to being in a failure state.

このように、グループBの各局が故障状態にある状態で、断線状態が復旧して接続状態に回復し、この断線の復旧をスレーブ局SL2で検出してループバックを解除すると、マスタ局M0からみれば、以前は存在し、何らかの理由により脱落したスレーブ局(スレーブ局SL3、スレーブ局SL4)群が、故障状態のまま回線に復帰し、すなわち、マスタ局M0の管理下に復帰したことになる。   As described above, when each station of group B is in a failure state, the disconnection state is recovered and the connection state is recovered. When the recovery of the disconnection is detected by the slave station SL2 and the loopback is canceled, the master station M0 If it sees, the slave station (slave station SL3, slave station SL4) group which existed previously and dropped out for some reason has returned to the line in the fault state, that is, returned to the management of the master station M0. .

このため、マスタ局M0では、グループBの各スレーブ局の復帰に伴い、これらスレーブ局が回線に復帰したことに伴う、データ処理の追加や遅延時間の追加等といった回線復旧処理と、故障状態にあるグループBの各スレーブ局を、回線に復帰させマスタ局M0の管理下に復帰させるにあたり、各スレーブ局の状態を、所定の状態(復帰前状態)に移行させるための前処理とを行う必要がある。   Therefore, in the master station M0, as each slave station in group B recovers, line recovery processing such as addition of data processing or addition of delay time associated with the return of these slave stations to the line, When returning each slave station of a certain group B to the line and returning to the management of the master station M0, it is necessary to perform preprocessing for shifting the state of each slave station to a predetermined state (pre-return state). There is.

例えば、ネットワークシステム全体で、ロボット制御を行い、各スレーブ局が、ロボットの各部位を制御するようになっているネットワークシステムの場合には、各スレーブ局間で連係して動作を行う必要がある。このため、グループBのスレーブ局により制御される部位、例えばアーム等を予め設定した初期位置に復帰させる、或いは、グループBのスレーブ局で用いる他のスレーブ局により制御される部位の位置情報等のパラメータの更新を行う等といった、実際にグループBのスレーブ局を含めたシステム全体での制御を開始する前に、各スレーブ局の状態を、スレーブ局毎に設定された所定の復帰前状態に移行させるための前処理を行う必要がある。
このような前処理と回線復旧処理とを行う必要があるため、断線復旧時のマスタ局での処理が煩雑になる。また、復帰するスレーブ局の数が増加するほど、マスタ局で行うべき前処理の処理量も増加することになる。
For example, in the case of a network system in which robot control is performed in the entire network system and each slave station controls each part of the robot, it is necessary to perform operations in cooperation between the slave stations. . For this reason, the part controlled by the slave station of group B, for example, the arm or the like is returned to the preset initial position, or the position information of the part controlled by the other slave station used by the slave station of group B Before starting control of the entire system including group B slave stations, such as updating parameters, the status of each slave station is shifted to the specified pre-return state set for each slave station. It is necessary to perform pre-processing for making it happen.
Since it is necessary to perform such preprocessing and line restoration processing, processing at the master station at the time of disconnection restoration becomes complicated. Further, as the number of slave stations to be restored increases, the amount of preprocessing to be performed by the master station also increases.

また、一般に故障からの復旧処理や再初期化の処理は時間的な待ち合わせ処理(例えば、初期化完了待ち)などを含むことが多く、機械(システム)を部分的に運用しながら並行して待ち合わせなど時間的要素を含む(或いは、処理時間の掛かる)処理を実行するのは困難なことが多い。これは結果的に機械の制御周期の乱れにつながる。
運用中のマスタ・スレーブの制御はシンプルで即時応答されるよう最適化されているが、初期化などは非運用時処理で複雑なやりとりを含むことが多い。
さらに、スレーブ局毎に、それぞれ個別の制御を行っているため、各スレーブ局の機能や設定等によって、前処理の処理内容も異なってくる。
In general, recovery processing from failure and re-initialization processing often include time waiting processing (for example, initialization completion waiting), etc., and waiting in parallel while partially operating the machine (system) It is often difficult to execute a process including a temporal element such as (or takes a long processing time). This results in disturbance of the machine control cycle.
The master / slave control during operation is optimized to be simple and immediately responded, but initialization and the like often involve complicated exchanges during non-operational processing.
Furthermore, since individual control is performed for each slave station, the processing content of the preprocessing differs depending on the function and setting of each slave station.

例えば、スレーブ局が、制御機器の出力モジュールの場合には、一旦マスタ局からのデータ更新が途絶えた場合に、出力値を全てリセットする場合と、前回出力値を継続して出力する場合とがある。これらはこの出力モジュールを使用して実現する機器の仕様により異なる。このような場合には、復帰してきたスレーブ局群を全て一括してリセットする、或いは、出力データのリセットは行わずそのままの状態で復帰させるといった対応は困難である。このため、スレーブ局毎の復帰時にあるべき状態に応じて、リセットするか、そのままの状態で復帰させる必要があり、これもまた、マスタ局での断線復旧時の処理の増加につながっている。   For example, if the slave station is an output module of a control device, once the data update from the master station is interrupted, there are cases where all the output values are reset and when the previous output values are continuously output. is there. These differ depending on the specifications of the equipment realized using this output module. In such a case, it is difficult to reset all the slave stations that have been recovered collectively, or to return the data as it is without resetting the output data. For this reason, it is necessary to reset or restore the state as it is in accordance with the state to be restored for each slave station, which also leads to an increase in processing at the time of restoration of disconnection in the master station.

このように、マスタ局での断線復旧時の処理が多いと、その分、全ての処理が終了するまでに時間を要することになり、すなわち、回線に復帰したスレーブ局からみれば、回線に接続されマスタ局との通信が可能な状態となったにも関わらず、マスタ局からの指示に応じてスレーブ局が駆動制御を開始するまでに時間を要することになり、この間、スレーブ局は正常に動作が可能な状態であるにも関わらず、スレーブ局としての機能を実行することができない。
そこで、この発明は、上記従来の未解決の問題点に着目してなされたものであり、断線状態からの復旧時におけるマスタ局の処理の簡略化を図り、処理負荷を軽減することの可能なリング型ネットワークシステム及びリング型ネットワークシステムの復旧方法に関する。
In this way, if there is a lot of processing at the time of restoration of disconnection at the master station, it will take time to complete all the processing, that is, from the slave station that has returned to the line, it will be connected to the line Although it is possible to communicate with the master station, it takes time for the slave station to start drive control in response to an instruction from the master station. Even though the operation is possible, the function as a slave station cannot be executed.
Therefore, the present invention has been made paying attention to the above-mentioned conventional unsolved problems, and it is possible to simplify the processing of the master station at the time of recovery from the disconnection state and reduce the processing load. The present invention relates to a ring network system and a recovery method of the ring network system.

上記目的を達成するために、本発明の請求項1に係る発明は、一のマスタ局と、当該マスタ局と回線を介して接続され且つ前記マスタ局に管理される複数のスレーブ局とでリング型ネットワークを構築し、いずれかの前記局が、隣接する局との間での通信が不可となる断線状態を検出したときループバックを行なうことにより前記回線を介して前記マスタ局と接続状態にある局間で通信を継続し、前記断線状態の復旧が検出されたとき前記ループバックを解除することにより、前記ループバックにより前記マスタ局から切り離されたスレーブ局を、前記回線を介して前記マスタ局に再接続するようにしたリング型ネットワークシステムにおいて、前記マスタ局は、前記断線状態の復旧が検出されたとき、前記ループバックにより前記マスタ局から切り離された切り離し局に対して、当該切り離し局を前記マスタ局に再接続する時の状態として予め設定した復帰前状態に移行させるための前処理用のコマンドを生成し、当該コマンドを、前処理用コマンドフレームとして前記ループバックを行っているループバック局宛に送信する前処理用コマンドフレーム送信手段と、前記前処理用コマンドフレームに対する応答として応答コマンドフレームが通知された後に、前記ループバック局に対して前記ループバック解除の指示を行うと共に、所定の回線復旧時の処理を実行する回線復旧処理手段と、を備え、前記ループバック局は、前記前処理用コマンドフレームを受信したとき、前記前処理用コマンドフレームを前記切り離し局宛に送信する前処理用コマンドフレーム中継手段と、前記前処理用コマンドフレームに対する応答として前記切り離し局から受信した応答コマンドフレームを、前記マスタ局に送信する応答中継手段と、を備え、前記切り離し局は、前記前処理用コマンドフレームを受信したとき、前記前処理用コマンドフレームに応じて所定の前処理を実行すると共に前記応答コマンドフレームを送信することを特徴としている。   In order to achieve the above object, an invention according to claim 1 of the present invention provides a ring between one master station and a plurality of slave stations connected to the master station via a line and managed by the master station. Type network is established, and when any of the stations detects a disconnection state in which communication with an adjacent station is disabled, a loopback is performed to establish a connection state with the master station via the line. By continuing communication between certain stations and releasing the loopback when the restoration of the disconnection state is detected, the slave station disconnected from the master station by the loopback is transferred to the master via the line. In a ring network system that is reconnected to a station, the master station detects the recovery of the disconnection state by the loopback when the recovery of the disconnection state is detected. A command for preprocessing is generated for the disconnected station that has been disconnected from the former, and a command for transition to the pre-return state set in advance as a state when the disconnected station is reconnected to the master station is generated. A preprocessing command frame transmitting means for transmitting to the loopback station performing the loopback as a processing command frame; and after the response command frame is notified as a response to the preprocessing command frame, the loopback station And a circuit recovery processing means for executing processing at the time of a predetermined circuit recovery, and when the loopback station receives the preprocessing command frame, Preprocessing command frame relay means for transmitting a preprocessing command frame to the disconnection station; and Response relay means for transmitting a response command frame received from the disconnecting station as a response to the processing command frame to the master station, and the disconnecting station receives the preprocessing command frame when the preprocessing command frame is received. A predetermined pre-process is executed according to the processing command frame and the response command frame is transmitted.

また、請求項2に係る発明は、前記復帰前状態は前記スレーブ局の機能に応じて前記スレーブ局毎に設定され、前記マスタ局は、前記断線状態の復旧が検出されたとき、前記ループバックの解除により前記マスタ局に再接続される前記切り離し局を特定する切り離し局特定手段を備え、前記前処理用コマンド送信手段は、前記切り離し局特定手段で特定された前記切り離し局毎に、各切り離し局に設定された前記復帰前状態に応じた前処理用のコマンドを生成し、当該コマンドを前記切り離し局特定手段で特定された切り離し局と対応付けて前記前処理用コマンドフレームとして送信することを特徴としている。
また、請求項3に係る発明は、前記マスタ局と前記スレーブ局とをバス接続し、且つ両端に位置する局で回線を折り返すことにより前記リング型のネットワークを構成することを特徴としている。
The invention according to claim 2 is that the pre-return state is set for each slave station in accordance with the function of the slave station, and the master station detects the loopback when the disconnection state is detected. A disconnection station specifying means for specifying the disconnection station to be reconnected to the master station by releasing the command, and the preprocessing command transmitting means for each disconnection station specified by the disconnection station specifying means Generating a command for preprocessing according to the pre-return state set in a station, and transmitting the command as the preprocessing command frame in association with the disconnected station specified by the disconnected station specifying means. It is a feature.
The invention according to claim 3 is characterized in that the ring-type network is configured by connecting the master station and the slave station by a bus and turning back a line at stations located at both ends.

また、請求項4に係る発明は、一のマスタ局と、当該マスタ局と回線を介して接続され且つ前記マスタ局に管理される複数のスレーブ局とでリング型ネットワークを構築し、いずれかの前記局が、隣接する局との間での通信が不可となる断線状態を検出したときループバックを行うことにより、前記回線を介して前記マスタ局と接続状態にある局間で通信を継続し、前記断線状態の復旧が検出されたとき前記ループバックを解除することにより、前記ループバックにより前記マスタ局から切り離されたスレーブ局を、前記回線を介して前記マスタ局に再接続するようにしたリング型ネットワークシステムの復旧方法において、前記断線状態の復旧が検出されたとき、前記マスタ局において、前記ループバックにより前記マスタ局から切り離された切り離し局に対して、当該切り離し局を前記マスタ局に再接続する時の状態として予め設定した復帰前状態に移行させるための前処理用のコマンドを生成し、当該コマンドを前処理用コマンドフレームとして、前記ループバックを行なっているループバック局を介して前記切り離し局宛に送信するステップと、前記前処理用コマンドフレームを受信した前記切り離し局が、前記前処理用コマンドフレームに応じて所定の前処理を実行すると共に前記前処理用コマンドフレームに対する応答コマンドフレームを送信するステップと、前記マスタ局が、前記ループバック局を介して前記応答コマンドフレームを受信した後、前記ループバック局に対して前記ループバック解除の指示を行うと共に、所定の回線復旧時の処理を実行するステップと、を備えることを特徴としている。   According to a fourth aspect of the present invention, a ring network is constructed by one master station and a plurality of slave stations connected to the master station via a line and managed by the master station. By performing a loopback when the station detects a disconnection state in which communication with an adjacent station is disabled, communication is continued between the stations connected to the master station via the line. When the recovery of the disconnection state is detected, the loopback is canceled, so that the slave station disconnected from the master station by the loopback is reconnected to the master station via the line. In the recovery method of the ring network system, when recovery from the disconnection state is detected, the master station is disconnected from the master station by the loopback. For the disconnected station, a preprocessing command is generated for shifting to the pre-return state set in advance as a state when the disconnected station is reconnected to the master station, and the command is transmitted to the preprocessing command frame. A step of transmitting to the disconnecting station via the loopback station performing the loopback, and the disconnecting station that has received the preprocessing command frame has a predetermined value in accordance with the preprocessing command frame. Executing pre-processing and transmitting a response command frame to the pre-processing command frame; and after the master station receives the response command frame via the loop-back station, A step of instructing cancellation of the loopback and executing processing at the time of a predetermined line restoration It is characterized in that it comprises.

本発明のリング型ネットワークシステムによれば、断線状態が生じたことに伴い何れかの局がループバックをすることにより接続状態を維持している状態で、断線状態が復旧したときには、マスタ局から、ループバックをしているループバック局宛に、ループバックにより切り離された切り離し局に対してこの切り離し局を前記マスタ局に接続する時の状態として予め設定した復帰前状態に移行させるための前処理用コマンドフレームを送信し、ループバック局は前処理用コマンドフレームを切り離し局に送信して、切り離し局が前処理用コマンドフレームにしたがって所定の前処理を行うと共に応答コマンドフレームを送信する。   According to the ring network system of the present invention, when a disconnection state is restored in a state in which any station maintains a connection state by looping back when a disconnection state occurs, the master station Before a transition to a pre-return state set in advance as a state when the disconnected station is connected to the master station with respect to the disconnected station disconnected by the loopback to the loopback station performing the loopback The processing command frame is transmitted, the loopback station transmits the preprocessing command frame to the disconnecting station, and the disconnecting station performs predetermined preprocessing according to the preprocessing command frame and transmits a response command frame.

そして、マスタ局では、切り離し局からの応答コマンドフレームを、ループバック局を介して受信した後にループバック局に対してループバック解除の指示を行い、その後、回線復旧時の処理を実行する。
このため、ループバックの解除に伴い切り離し局がマスタ局との通信が可能な状態となった時点では、切り離し局に対する前処理は終了しているため、回線復旧時の処理のみを行えばよい。したがって、マスタ局では、切り離し局に対する前処理と回線復旧時の処理とを同時に行う必要がないため、その分マスタ局の処理負荷の軽減を図ることができる。
また、時間の掛かかる処理である、制御周期にあわない待ち合わせ処理などを含む前処理は切り離し局が再接続された時点で終わっているので、再接続により制御周期の乱れを生じさせる影響を小さくできる。
Then, after receiving the response command frame from the disconnecting station via the loopback station, the master station instructs the loopback station to cancel the loopback, and then executes the process for line restoration.
For this reason, when the disconnection station becomes ready for communication with the master station as the loopback is released, the pre-processing for the disconnection station has been completed, and therefore only the process at the time of line restoration may be performed. Therefore, the master station does not need to perform pre-processing for the disconnected station and processing for line restoration at the same time, so that the processing load on the master station can be reduced accordingly.
In addition, preprocessing including time-consuming processing, such as waiting processing that does not fit in the control cycle, is completed when the disconnected station is reconnected, so that the effect of disturbing the control cycle due to reconnection is reduced. it can.

以下、本発明の実施の形態を説明する。
図1は、本発明を適用したリング型ネットワークシステムの一例であって、マスタ局M0及び複数のスレーブ局SL1〜SL4がバス接続されている。これら局は、スレーブ局SL1、マスタ局M0、スレーブ局SL3、スレーブ局SL4の順にバス接続され、両端に位置するスレーブ局SL1及びスレーブ局SL4において回線を折り返すことにより、リング型ネットワークを構成している。そして、回線上で伝送フレームを周回させることにより、各局間でのデータ交換を行う。
Embodiments of the present invention will be described below.
FIG. 1 shows an example of a ring network system to which the present invention is applied. A master station M0 and a plurality of slave stations SL1 to SL4 are connected by a bus. These stations are bus-connected in order of slave station SL1, master station M0, slave station SL3, and slave station SL4, and form a ring network by looping back the lines at slave stations SL1 and SL4 located at both ends. Yes. Then, data is exchanged between the stations by circulating the transmission frame on the line.

マスタ局M0は、各スレーブ局SL1〜SL4を管理し、例えば、マスタ局M0が各スレーブ局SL1〜SL4を駆動制御し、各スレーブ局がその被制御対象を駆動制御することによって、システム全体として所定の駆動制御が行われ、システム全体としてロボットの制御など、所定の駆動制御を行うようになっている。
また、マスタ局M0は、各スレーブ局との間の通信状況に基づき、各スレーブ局が、マスタ局M0が接続される回線に接続している状態か、脱落している状態かを判断し、その状態を管理すると共に、各局の配置位置状況等を管理する。
The master station M0 manages the slave stations SL1 to SL4. For example, the master station M0 controls driving of the slave stations SL1 to SL4, and each slave station controls driving of the controlled object. Predetermined drive control is performed, and the entire system performs predetermined drive control such as robot control.
Further, the master station M0 determines whether each slave station is connected to the line to which the master station M0 is connected or is disconnected based on the communication status with each slave station. In addition to managing the state, it manages the arrangement position status of each station.

また、マスタ局M0は、スレーブ局から断線状態の検出及びループバック通知を受けたときには、ループバック通知を行った局の局番と局の配置状況とから、ループバックにより回線から切り離された局を認識する。逆に、ループバック通知を行ったスレーブ局から断線復旧が通知されたときには、ループバック時に回線から切り離された局として認識している局に対し、回線への復帰に伴う前処理の実行を指示する透過コマンドフレームを生成し、これを、断線復旧を通知した局宛に送信する。なお、回線への復帰とは、ここでは、回線から脱落したスレーブ局が回線を介してマスタ局M0に再接続され、マスタ局M0との間での通信が可能な状態となることをいう。   Further, when the master station M0 receives a disconnection state detection and a loopback notification from the slave station, the master station M0 determines the station disconnected from the line by the loopback from the station number of the station that made the loopback notification and the station arrangement status. recognize. On the other hand, when disconnection recovery is notified from the slave station that issued the loopback notification, the station recognized as a station disconnected from the line at the time of loopback is instructed to execute pre-processing upon returning to the line. A transparent command frame is generated and transmitted to the station that has notified the disconnection recovery. Here, the return to the line means that the slave station dropped from the line is reconnected to the master station M0 via the line and communication with the master station M0 becomes possible.

図2は、局間で授受されるフレームのフォーマットの一例である。
フレームは、例えば、フレームが通常コマンドフレームであるか透過コマンドフレームであるかを表すフレーム識別子、フレームの宛先局番、フレームの送信元局番、コマンド種別、データサイズ、コマンドデータ、フレームチェックコードで構成される。
一方、各スレーブ局SL1〜SL4は、マスタ局M0から送信されるフレームを受信し、宛先局番として自局が指定されていれば自局宛のコマンドデータを読み込んで次局に送信し、宛先局番として自局が指定されていなければそのまま次局に送信する。そして受信したフレームの識別子が通常コマンドフレームの場合には、自局宛のコマンドデータで指定される処理を行う。
FIG. 2 is an example of a format of a frame exchanged between stations.
The frame is composed of, for example, a frame identifier indicating whether the frame is a normal command frame or a transparent command frame, a frame destination station number, a frame transmission source station number, a command type, a data size, command data, and a frame check code. The
On the other hand, each of the slave stations SL1 to SL4 receives the frame transmitted from the master station M0, reads the command data addressed to itself when it is designated as the destination station number, and transmits it to the next station. If the local station is not specified as, it transmits to the next station as it is. If the received frame identifier is a normal command frame, a process specified by command data addressed to the own station is performed.

また、自局がループバック状態であり、かつ自局宛フレームのフレーム識別子が透過コマンドフレームであり、かつ送信元がマスタ局M0である場合には、受信した透過コマンドフレーム中のコマンドデータヘッダに記述されている切り離し局の局番を新たな宛先局番として切り離し局宛の透過コマンドフレームを生成する。
そして、この透過コマンドフレームを指定されたスレーブ局すなわち切り離し局宛に送信する。そして、切り離し局を周回した透過コマンドフレームを受信したとき、マスタ局から受信した自局宛の透過コマンドフレームをマスタ局M0に戻す。
Further, when the local station is in a loopback state, the frame identifier of the frame addressed to the local station is a transparent command frame, and the transmission source is the master station M0, the command data header in the received transparent command frame is displayed. A transparent command frame addressed to the disconnecting station is generated with the station number of the described disconnecting station as a new destination station number.
Then, this transparent command frame is transmitted to a designated slave station, that is, a disconnection station. When a transparent command frame that circulates around the disconnection station is received, the transparent command frame addressed to the own station received from the master station is returned to the master station M0.

また、スレーブ局SL1〜SL4は、隣接するスレーブ局との間での通信状況を監視し、断線或いは故障などにより、隣接するスレーブ局との間での通信が行うことができなくなったときループバックを行いループバック局に移行すると共に、マスタ局M0に、断線状態を検出したことを通知する。また、断線状態にある状態で、隣接するスレーブ局との間での通信が再開されたときには断線状態が復旧したと判断し、マスタ局M0に断線状態の復旧を通知する。   The slave stations SL1 to SL4 monitor the communication status with the adjacent slave stations, and loop back when communication with the adjacent slave stations cannot be performed due to disconnection or failure. To move to the loopback station and notify the master station M0 that a disconnection state has been detected. Further, when communication with an adjacent slave station is resumed in a disconnected state, it is determined that the disconnected state has been recovered, and the master station M0 is notified of the recovery of the disconnected state.

なお、断線状態の検出はどのような方法であっても良いが、例えば予め設定したフレーム送受信のタイムアウト時間やリトライ回数を設定し、この時間や回数を超過して送受信が無い場合を断線とする。或いは、定期的に局間応答を確認する信号を送受信する。
また、スレーブ局SL1〜SL4は、マスタ局M0からのフレームを所定時間受信しない状態となったとき、マスタ局M0に何らかにより異常が生じたと判断し、マスタ局M0異常時の処理を実行する。例えば、現在の状態をそのまま維持するか、或いは予め設定した状態に移行する等、マスタ局M0異常時にとるべき規定状態に移行する。
また、スレーブ局SL1〜SL4は、回線から脱落している状態で、他のスレーブ局から自局宛の透過コマンドフレームを受信したときには、このフレームのコマンドデータで指定された前処理を実行すると共に、受信した透過コマンドフレームを次局に送信する。
Any method may be used to detect the disconnection state. For example, a preset frame transmission / reception time-out time and the number of retries are set, and a disconnection occurs when there is no transmission / reception exceeding this time / number of times. . Alternatively, a signal for confirming the inter-station response is periodically transmitted and received.
In addition, when the slave stations SL1 to SL4 have not received a frame from the master station M0 for a predetermined time, the slave stations SL1 to SL4 determine that an abnormality has occurred in the master station M0 and execute processing when the master station M0 is abnormal. . For example, the current state is maintained as it is, or the state shifts to a predetermined state that should be taken when the master station M0 is abnormal.
When the slave stations SL1 to SL4 are disconnected from the line and receive a transparent command frame addressed to themselves from other slave stations, the slave stations SL1 to SL4 execute preprocessing specified by the command data of the frame. The received transparent command frame is transmitted to the next station.

次に、本発明の動作を、図3から図5のフローチャートを伴って説明する。
なお、図3は、断線状態が検出されたときに実行されるマスタ局M0の処理手順の一例を示すフローチャートである。図4は、断線状態から復旧したときの、ループバックをしているスレーブ局における処理手順の一例を示すフローチャートである。図5は、断線状態から復旧したときの、ループバックにより回線から切り離されたスレーブ局における処理手順の一例を示すフローチャートである。
Next, the operation of the present invention will be described with reference to the flowcharts of FIGS.
FIG. 3 is a flowchart illustrating an example of a processing procedure of the master station M0 that is executed when a disconnection state is detected. FIG. 4 is a flowchart illustrating an example of a processing procedure in the slave station performing loopback when the disconnection state is recovered. FIG. 5 is a flowchart illustrating an example of a processing procedure in the slave station disconnected from the line by loopback when the disconnected state is recovered.

例えば図8に示すようにスレーブ局SL2とスレーブ局SL3との間で回線の断線が生じた場合、スレーブ局SL2では、例えば所定周期で隣接するスレーブ局SL3から送信されるべきフレームを受信することができないなどによりスレーブ局SL2とスレーブ局SL3との間で断線が生じたと判断すると、ループバックをしてスレーブ局SL3及びスレーブ局SL4を回線から切り離し、スレーブ局SL1、マスタ局M0、スレーブ局SL2間での通信の継続を図る。   For example, when a line disconnection occurs between the slave station SL2 and the slave station SL3 as shown in FIG. 8, the slave station SL2 receives, for example, a frame to be transmitted from the adjacent slave station SL3 at a predetermined period. If it is determined that a disconnection has occurred between the slave station SL2 and the slave station SL3, for example, the slave station SL3 and the slave station SL4 are disconnected from the line by looping back, and the slave station SL1, the master station M0, and the slave station SL2 To continue communication between the two.

また、スレーブ局SL2は、マスタ局M0に、断線状態が生じたこと及び自局がループバック状態であることを通知する。これによりスレーブ局SL2がループバック局となる。
マスタ局M0では、断線状態が通知されると、図3の断線状態検出時の処理を開始し、まず、断線状態を検出したスレーブ局でのループバックにより切り離された局を認識する。具体的には、断線状態を検出したスレーブ局の局番と、予め保持している各局の配置位置状況とから切り離された局を認識し、これを切り離し局として所定の記憶領域に記憶しておく(ステップS1)。
In addition, the slave station SL2 notifies the master station M0 that a disconnection state has occurred and that the local station is in a loopback state. As a result, the slave station SL2 becomes a loopback station.
When the disconnection state is notified, the master station M0 starts processing at the time of disconnection state detection in FIG. 3, and first recognizes the station disconnected by loopback at the slave station that detected the disconnection state. Specifically, a station that has been disconnected is recognized from the station number of the slave station that has detected the disconnection state and the arrangement position of each station that is held in advance, and this is stored as a disconnected station in a predetermined storage area. (Step S1).

ループバック局であるスレーブ局SL2では、スレーブ局SL3との間の断線状態が復旧したかどうかを監視し、例えば、所定周期でスレーブ局SL3から送信されることになっているフレームを受信するようになったとき、スレーブ局SL2とスレーブ局SL3との間での断線状態が復旧したことを認識する。このようにして、断線状態の復旧を検出すると、スレーブ局SL2では、図4のフローチャートに示すように、まず、ステップS21で断線状態の復旧をマスタ局M0に通知する。   The slave station SL2, which is a loopback station, monitors whether or not the disconnection state with the slave station SL3 has been recovered, and for example, receives a frame that is to be transmitted from the slave station SL3 at a predetermined period. When it becomes, it recognizes that the disconnection state between slave station SL2 and slave station SL3 was recovered. When the recovery of the disconnection state is detected in this way, the slave station SL2 first notifies the master station M0 of the recovery of the disconnection state in step S21 as shown in the flowchart of FIG.

マスタ局M0では、復旧通知を受信すると、図3のステップS2からステップS3に移行し、透過コマンドフレームを作成しこれを送信する。
具体的には、断線状態が通知されたときにステップS1の処理で所定の記憶領域に記憶した切り離し局に対して前処理の実行を指示する透過コマンドフレームを作成する。各切り離し局に対応する前処理の処理内容は、予め設定して所定の記憶領域に格納しておく。この前処理としては、前述のように、各スレーブ局の被制御機器を初期状態に移行させる、或いは、各スレーブ局で用いる各種パラメータを現在値に更新する等の、各スレーブ局を所定の復帰前状態に移行させるための処理等がある。
When the master station M0 receives the recovery notification, the master station M0 shifts from step S2 to step S3 in FIG. 3 to create and transmit a transparent command frame.
Specifically, when a disconnection state is notified, a transparent command frame for instructing execution of pre-processing to the disconnected station stored in a predetermined storage area in step S1 is created. The processing contents of the preprocessing corresponding to each disconnection station are set in advance and stored in a predetermined storage area. As the preprocessing, as described above, each slave station is restored to a predetermined state, such as the controlled device of each slave station is shifted to the initial state, or various parameters used in each slave station are updated to the current values. There are processes for shifting to the previous state.

ここでは、例えば回線への復帰に伴う前処理として、システム立ち上げ時の状態である初期状態への移行が指示されているものとすると、初期状態へのリセットを指示する透過コマンドフレームを作成する。すなわち、図2に示すフレームフォーマットにおいて、フレーム識別子として透過コマンドフレームを設定し、宛先局番として断線復旧を通知したループバックを行っているスレーブ局の局番、送信元局番はマスタ局M0、コマンド種別は前処理の実行を指示する前処理コマンド、データサイズとしてコマンドデータのサイズを設定し、コマンドデータとして、切り離し局であるスレーブ局SL3、スレーブ局SL4宛の、初期状態への移行の指示などを設定する。
そして、この透過コマンドフレームをループバックしているスレーブ局SL2宛に送信する。
Here, for example, as a pre-process associated with the return to the line, if a transition to the initial state, which is the state at the time of system startup, is instructed, a transparent command frame for instructing a reset to the initial state is created. . That is, in the frame format shown in FIG. 2, a transparent command frame is set as a frame identifier, the station number of the slave station performing the loopback that notifies disconnection restoration as the destination station number, the source station number is the master station M0, and the command type is Pre-processing command to instruct execution of pre-processing, command data size is set as data size, and instruction to shift to the initial state for slave station SL3 and slave station SL4 which are disconnected stations is set as command data To do.
Then, the transparent command frame is transmitted to the slave station SL2 that is looping back.

ループバック局であるスレーブ局SL2では、自局宛の透過コマンドフレームを受信すると、図4のステップS22からステップS23に移行し、フレームデータを読み込み、フレームデータで指定されているスレーブ局SL3及びスレーブ局SL4宛の初期状態への移行を指示する透過コマンドフレームを生成する。そして、スレーブ局SL2は、ループバックしているため、通常は伝送フレームをスレーブ局SL3、SL4には送信しないが、コマンド識別子が透過コマンドフレームであるときには、この透過コマンドフレームを、スレーブ局SL3及びスレーブ局SL4宛に送信する。すなわち、宛先局番としてスレーブ局SL3及びスレーブ局SL4を指定し、初期状態へのリセットを指示するコマンドを設定する。   When the slave station SL2 which is a loopback station receives a transparent command frame addressed to itself, the slave station SL2 shifts from step S22 to step S23 in FIG. 4 to read the frame data, and to read the slave station SL3 and the slave designated by the frame data. A transparent command frame for instructing the transition to the initial state addressed to the station SL4 is generated. Since the slave station SL2 is looped back, the transmission frame is not normally transmitted to the slave stations SL3 and SL4. However, when the command identifier is a transparent command frame, the transparent command frame is transmitted to the slave station SL3 and the slave station SL3. Transmit to the slave station SL4. That is, the slave station SL3 and the slave station SL4 are designated as the destination station numbers, and a command for instructing reset to the initial state is set.

切り離し局であるスレーブ局SL3及びスレーブ局SL4では、自局宛の透過コマンドフレームを受信すると、図5のステップS41からステップS42に移行し、透過コマンドフレームで指定された処理を実行する。この場合、初期状態へのリセット指示がなされているため、初期状態に自局の状態をリセットする。そして、断線状態から復旧したときの処理を終了する。   When receiving the transparent command frame addressed to the local station, the slave station SL3 and the slave station SL4, which are the disconnecting stations, move from step S41 to step S42 in FIG. 5 and execute the process specified by the transparent command frame. In this case, since the reset instruction to the initial state is given, the state of the own station is reset to the initial state. And the process when it recovers from a disconnection state is complete | finished.

一方、断線復旧を検出したスレーブ局SL2では、図4のステップS23からステップS24に移行し、切り離し局から透過コマンドフレームを受信したかどうかを判断する。切り離し局から透過コマンドフレームを所定時間経過しても受信しなければ、ステップS24からステップS30に移行し、切り離し局は異常と判断し、例えば、マスタ局M0に切り離し局が異常であることを通知するための透過コマンドフレームを送信する。そして、断線復旧時の処理を終了する。   On the other hand, in the slave station SL2 that has detected the disconnection recovery, the process proceeds from step S23 in FIG. 4 to step S24 to determine whether or not a transparent command frame has been received from the disconnecting station. If a transparent command frame has not been received from the disconnecting station for a predetermined time, the process proceeds from step S24 to step S30, and the disconnecting station is determined to be abnormal. For example, the master station M0 is notified that the disconnecting station is abnormal. To transmit a transparent command frame. And the process at the time of disconnection restoration is complete | finished.

一方、スレーブ局SL2では、切り離し局から透過コマンドフレームを受信したならば、図4のステップS24からステップS25に移行し、自局宛に受信した透過コマンドフレームをマスタ局M0に戻す。また、切り離し局であるスレーブ局SL3及びスレーブ局SL4は正常であることを認識する。
マスタ局M0では、透過コマンドフレームを受信すると(ステップS4)、ステップS3で送信した透過コマンドフレームが切り離し局であるスレーブ局SL3、スレーブ局SL4を周回して戻ってきたことから、これらスレーブ局が正常であると判断する。そして、この時点からの経過時間の計測を開始する。
On the other hand, if the slave station SL2 receives a transparent command frame from the disconnecting station, the process proceeds from step S24 in FIG. 4 to step S25, and returns the transparent command frame received to the own station to the master station M0. Further, it recognizes that the slave stations SL3 and SL4 which are the disconnecting stations are normal.
When the master station M0 receives the transparent command frame (step S4), the transparent command frame transmitted in step S3 circulates around the slave station SL3 and the slave station SL4 that are the cut-off stations and returns to the slave station. Judge that it is normal. And the measurement of the elapsed time from this time is started.

そして、透過コマンドフレームを受信した時点からの経過時間が所定時間に達したとき、すなわち、スレーブ局SL3及びスレーブ局SL4でのリセット処理が終了するに十分な時間が経過したとき、ループバック解除指示を、断線復旧を検出したスレーブ局SL2宛に送信する(ステップS5)。
これにより断線復旧を検出したスレーブ局SL2では、図4のステップS26からステップS27に移行し、ループバック解除を行う。そして、ループバックを解除した旨をマスタ局M0に通知し、断線復旧時の処理を終了する。
When the elapsed time from the reception of the transparent command frame reaches a predetermined time, that is, when a sufficient time has elapsed for the reset processing in the slave station SL3 and the slave station SL4 to end, a loopback release instruction Is transmitted to the slave station SL2 that detects the disconnection recovery (step S5).
As a result, in the slave station SL2 that detects the disconnection restoration, the process proceeds from step S26 in FIG. 4 to step S27 to cancel the loopback. Then, the master station M0 is notified that the loopback has been released, and the process at the time of disconnection recovery is terminated.

マスタ局M0では、断線復旧を検出したスレーブ局SL2からループバックの解除通知が行われると、図3のステップS6からステップS7に移行し、回線復旧処理を実行する。すなわち、例えば、回線に復帰したスレーブ局SL3、スレーブ局SL4がマスタ局M0宛にフレームを送信することにより、これらスレーブ局SL3、スレーブ局SL4からフレームを受信すると、一度回線から切り離されたスレーブ局SL3及びスレーブ局SL4が再度接続状態に復帰したことを認識し、スレーブ局SL3及びスレーブ局SL4に対するデータ処理を開始すると共に、これら局がマスタ局M0に再接続されたことに伴う送信タイミングの調整等といった予め設定した回線復旧処理を実行する。そして、所定の回線復旧処理が終了したならば、断線状態検出時の処理を終了し、以後、定常状態に移行し、スレーブ局SL1〜スレーブ局SL4を駆動制御する。   In the master station M0, when the loopback cancellation notification is made from the slave station SL2 that detects the disconnection recovery, the process proceeds from step S6 to step S7 in FIG. That is, for example, when the slave station SL3 and the slave station SL4 that have returned to the line transmit frames to the master station M0 and receive frames from the slave station SL3 and slave station SL4, the slave station once disconnected from the line Recognizing that SL3 and slave station SL4 have returned to the connected state again, starting data processing for slave station SL3 and slave station SL4, and adjusting the transmission timing associated with the reconnection of these stations to master station M0 A preset line restoration process such as. Then, when the predetermined line restoration process is completed, the process at the time of detecting the disconnection state is terminated, and thereafter, the process shifts to the steady state, and the slave stations SL1 to SL4 are driven and controlled.

図6は、図1のリング型ネットワークシステムにおいて、断線状態が検出されてから復旧するまでの間の、マスタ局M0及びスレーブ局SL2〜SL4間で送受信されるフレームの流れを表したものである。なお、図6では、通常コマンドフレームを通常フレーム、透過コマンドフレームを透過コマンドとして記載している。また、図7は、ネットワークシステムにおけるデータの流れを表したものである。なお図6においては、フレームの流れの説明の為、マスタ局M0の上流側に位置するスレーブ局SL1の図示は省略している。   FIG. 6 shows the flow of frames transmitted and received between the master station M0 and the slave stations SL2 to SL4 from when the disconnection state is detected to when the ring network system of FIG. 1 recovers. . In FIG. 6, a normal command frame is described as a normal frame, and a transparent command frame is described as a transparent command. FIG. 7 shows the data flow in the network system. In FIG. 6, illustration of the slave station SL1 located upstream of the master station M0 is omitted for the explanation of the frame flow.

図1に示すように、断線異常が生じていない場合には、時点t1でマスタ局M0から送信された通常コマンドフレームは、マスタ局M0、スレーブ局SL2、スレーブ局SL3、スレーブ局SL4に送信され、スレーブ局SL3、スレーブ局SL2を経てマスタ局M0に戻される。マスタ局M0ではこれをスレーブ局SL1に送信し、スレーブ局SL1ではこれをマスタ局M0に戻す。これにより、伝送フレームが回線を介して各局を周回することになる。
各局では、受信したフレームが自局宛のフレームであるときには、これを読み込み所定の処理を実行する。これにより、ネットワークシステムを構成する各局間でのデータの授受が可能となる。
As shown in FIG. 1, when no disconnection abnormality has occurred, the normal command frame transmitted from the master station M0 at the time t1 is transmitted to the master station M0, the slave station SL2, the slave station SL3, and the slave station SL4. The slave station SL3 and the slave station SL2 are returned to the master station M0. The master station M0 transmits this to the slave station SL1, and the slave station SL1 returns it to the master station M0. As a result, the transmission frame goes around each station via the line.
In each station, when the received frame is a frame addressed to itself, this is read and a predetermined process is executed. As a result, data can be exchanged between the stations constituting the network system.

この状態から、図8に示すようにスレーブ局SL2とスレーブ局SL3との間で断線が生じると、スレーブ局SL2では断線状態を検出しループバック状態に移行する。
このため、スレーブ局SL2では時点t2で通常コマンドフレームを受信すると、スレーブ局SL2とスレーブ局SL3との間で断線が生じているため、スレーブ局SL3、スレーブ局SL4には送信せず、スレーブ局SL2でループバックしてマスタ局M0に戻す。したがって、スレーブ局SL3及びスレーブ局SL4は、マスタ局M0との間でのデータ授受を行うことはできないが、スレーブ局SL1、スレーブ局SL2は、リング状の回線でマスタ局M0と接続されているため、引き続きマスタ局M0とのデータ授受を行うことができる。
If disconnection occurs between the slave station SL2 and the slave station SL3 from this state as shown in FIG. 8, the slave station SL2 detects the disconnection state and shifts to a loopback state.
For this reason, when the slave station SL2 receives the normal command frame at the time t2, a disconnection occurs between the slave station SL2 and the slave station SL3, so that the slave station SL3 does not transmit to the slave station SL3. Loop back at SL2 and return to master station M0. Therefore, although the slave station SL3 and the slave station SL4 cannot exchange data with the master station M0, the slave station SL1 and the slave station SL2 are connected to the master station M0 via a ring-shaped line. Therefore, data exchange with the master station M0 can be continued.

また、スレーブ局SL2では自局宛の通常コマンドフレームをマスタ局M0に戻す際に、自局のステータスとして、断線異常を検出したこと、自局がループバック状態に移行したことを付加してマスタ局M0に送信する。
マスタ局M0は、スレーブ局SL2からの断線異常の通知により、断線異常が生じた箇所及びスレーブ局SL2のループバックにより切り離された局を認識する(図3ステップS1)。
In addition, when returning the normal command frame addressed to the own station to the master station M0, the slave station SL2 adds, as the status of the own station, that a disconnection abnormality has been detected and that the own station has entered a loopback state. Transmit to station M0.
The master station M0 recognizes the disconnection abnormality notice from the slave station SL2 and the station disconnected by the loopback of the slave station SL2 (step S1 in FIG. 3).

この状態から、断線状態が復旧し、これをスレーブ局SL2が検出すると、スレーブ局SL2では、この断線状態の復旧をマスタ局M0に通知する。例えば、時点t3で送信されたマスタ局M0からの自局宛の通常コマンドフレームを戻す際に、自局のステータスとして断線状態が復旧したこと、ループバック中であることを付加して送信する(図4ステップS21)。なお、この断線状態の復旧を検出した時点では、ループバック局であるスレーブ局SL2は、ループバックを解除しない。   When the disconnection state is recovered from this state and the slave station SL2 detects this, the slave station SL2 notifies the master station M0 of the recovery of the disconnection state. For example, when returning the normal command frame addressed to the own station from the master station M0 transmitted at the time t3, it is transmitted with the fact that the disconnection state has been restored and the loopback is being performed as the status of the own station ( FIG. 4 step S21). Note that when the recovery from the disconnection state is detected, the slave station SL2, which is a loopback station, does not cancel the loopback.

マスタ局M0では、スレーブ局SL2から断線異常の復旧が通知されると、切り離し局はスレーブ局SL3、スレーブ局SL4であるため、スレーブ局SL3、スレーブ局SL4に対して、回線への復帰に伴う前処理として、例えば初期状態へのリセットを指示する透過コマンドフレームを生成し、これをスレーブ局SL2宛に送信する(時点t4、図3ステップS2、S3)。   In the master station M0, when recovery from the disconnection abnormality is notified from the slave station SL2, the disconnected stations are the slave station SL3 and the slave station SL4, so that the slave station SL3 and the slave station SL4 are brought back to the line. As pre-processing, for example, a transparent command frame instructing reset to the initial state is generated and transmitted to the slave station SL2 (time t4, steps S2 and S3 in FIG. 3).

スレーブ局SL2では、自局宛の透過コマンドフレームを受信すると、スレーブ局SL3、スレーブ局SL4へのリセット指示がなされているため、スレーブ局SL3、スレーブ局SL4宛の初期状態へのリセットを指示する透過コマンドフレームを生成しこれをスレーブ局SL3及びスレーブ局SL4宛に送信する(図4ステップS22、23)。
スレーブ局SL3及びスレーブ局SL4は自局宛の透過コマンドフレームを受信すると、その内容を取り込むと共に透過コマンドフレームを次局に送信する。そして、リセット指示がなされているため、初期状態への移行処理を開始する(図5ステップS41、S42)。
When the slave station SL2 receives the transparent command frame addressed to itself, the slave station SL3 and the slave station SL4 are instructed to reset the slave station SL3 and slave station SL4. A transparent command frame is generated and transmitted to the slave stations SL3 and SL4 (steps S22 and S23 in FIG. 4).
When the slave station SL3 and the slave station SL4 receive the transparent command frame addressed to the own station, the slave station SL3 captures the contents and transmits the transparent command frame to the next station. And since the reset instruction | indication is made, the transfer process to an initial state is started (FIG. 5 step S41, S42).

一方、スレーブ局SL2は、スレーブ局SL3、スレーブ局SL4を周回した透過コマンドフレームを受信すると、自局宛の透過コマンドフレームをマスタ局M0に戻す(図4ステップS24、S25)。
マスタ局M0は、時点t5で透過コマンドフレームを受信すると、時点t4で送信した透過コマンドフレームがループバックにより切り離されているスレーブ局SL3及びスレーブ局SL4に到達したと判断し、この透過コマンドフレームを受信した時点からの経過時間の計測を開始する。
On the other hand, when the slave station SL2 receives the transparent command frame that circulates the slave stations SL3 and SL4, it returns the transparent command frame addressed to itself to the master station M0 (steps S24 and S25 in FIG. 4).
When the master station M0 receives the transparent command frame at the time t5, the master station M0 determines that the transparent command frame transmitted at the time t4 has reached the slave station SL3 and the slave station SL4 that are separated by the loopback. The measurement of the elapsed time from the time of reception is started.

そして、所定時間が経過するまでの間は、ループバックの解除を指示せず、ループバックを維持したまま、マスタ局M0、スレーブ局SL1、スレーブ局SL2との間でフレームの周回によりデータ授受を行う(時点t6)。また、スレーブ局SL2では、自局宛の通常コマンドフレームをマスタ局M0から受信したときには、この通常コマンドフレームに、自局のステータスとして断線状態が復旧したこと、ループバック状態にあることを付加してマスタ局M0に戻す。   Until the predetermined time elapses, no instruction is issued to cancel the loopback, and data is exchanged between the master station M0, the slave station SL1, and the slave station SL2 by frame wrapping while maintaining the loopback. Perform (time t6). In addition, when the slave station SL2 receives a normal command frame addressed to itself from the master station M0, the slave station SL2 adds to the normal command frame that the disconnection state has been restored as the status of the own station and that it is in a loopback state. To return to the master station M0.

そして、マスタ局M0では、透過コマンドフレームの到達を確認した時点からの経過時間が予め設定した所定時間に達したとき、すなわち、スレーブ局SL3、スレーブ局SL4でのリセット処理が終了したと予測されるとき、時点t7でスレーブ局SL2宛に、ループバック解除コマンドの通常コマンドフレームを送信する(図3ステップS4、S5)。   Then, in the master station M0, it is predicted that the reset process in the slave station SL3 and the slave station SL4 is completed when the elapsed time from the time when the arrival of the transparent command frame is confirmed reaches a predetermined time set in advance. At time t7, the normal command frame of the loopback release command is transmitted to the slave station SL2 (steps S4 and S5 in FIG. 3).

スレーブ局SL2は、ループバック解除コマンドのフレームデータを読み込み、マスタ局M0に戻す。そして、ループバック解除が指示されていることから、ループバック解除を行う(図4ステップS26、S27)。
このため、次に、時点t8で通常コマンドデータが送信されたときには、通常コマンドフレームは、スレーブ局SL2、スレーブ局SL3、スレーブ局SL4に送信され、スレーブ局SL3、スレーブ局SL2を経てマスタ局M0に戻される。このため、スレーブ局SL1〜SL4とマスタ局M0との間でのデータ授受が再開される。
The slave station SL2 reads the frame data of the loopback release command and returns it to the master station M0. Since the loopback cancellation is instructed, the loopback cancellation is performed (steps S26 and S27 in FIG. 4).
Therefore, when the normal command data is transmitted next at time t8, the normal command frame is transmitted to the slave station SL2, the slave station SL3, and the slave station SL4, and passes through the slave station SL3 and the slave station SL2 to become the master station M0. Returned to For this reason, data exchange between the slave stations SL1 to SL4 and the master station M0 is resumed.

ここで、スレーブ局SL2でループバックを解除した時点では、スレーブ局SL3及びスレーブ局SL4でのリセット処理は既に完了している。つまりスレーブ局SL3及び4は初期状態となっており、これらは復帰前のスレーブ局のあるべき状態として設定された状態である。
このため、マスタ局M0では、ループバックが解除された時点で、スレーブ局SL3及びスレーブ局SL4を初期状態に制御する必要はなく、スレーブ局SL3、スレーブ局SL4が、再度回線に接続状態となったことに伴う回線復旧処理のみを行えばよい。
Here, when the slave station SL2 cancels the loopback, the reset processing in the slave station SL3 and the slave station SL4 has already been completed. That is, the slave stations SL3 and SL4 are in an initial state, and these are the states set as the state of the slave station before returning.
Therefore, the master station M0 does not need to control the slave station SL3 and the slave station SL4 to the initial state when the loopback is canceled, and the slave station SL3 and the slave station SL4 are again connected to the line. It is only necessary to perform the line restoration process associated with this.

したがって、ループバック解除時に、マスタ局M0では、前処理と回線復旧処理とを同時に行う必要がないため、ループバック解除時におけるマスタ局M0での負荷軽減を図ることができる。このため、ループバック解除がなされた時点から、実際に、スレーブ局SL3及びスレーブ局SL4を含めたシステム制御の開始までの所要時間を短縮することができる。このため、断線復旧時のリカバリ時間の短縮を図ることができ、プログラマブルコントローラを用いたネットワークシステムや機械制御システムを構成するネットワークシステムの場合には、信頼性や生産性の向上を図ることができる。   Therefore, since it is not necessary for the master station M0 to perform the pre-processing and the line restoration process at the same time when the loopback is released, it is possible to reduce the load on the master station M0 when the loopback is released. For this reason, it is possible to shorten the time required from the time when the loopback is released to the start of system control including the slave station SL3 and the slave station SL4. For this reason, it is possible to shorten the recovery time at the time of disconnection recovery, and in the case of a network system using a programmable controller or a network system constituting a machine control system, it is possible to improve reliability and productivity. .

また、マスタ局M0での処理として前処理と回線復旧処理とを明確に切り分けることができるため、マスタ局M0における処理構造の簡略化を図ることができる。
また、回線に復帰したスレーブ局の故障情報は、クリアされた状態で回線に復帰する。このため、例えば、ネットワークシステムの保守等のために、マスタ局M0側でスレーブ局の故障情報を保守情報として収集し記憶するように構成されている場合であっても、マスタ局M0では、スレーブ局は正常状態として認識するため、スレーブ局の故障情報が収集されることはない。したがって、何らかにより一時的に通信を行うことができなくなった場合など、一時的な断線状態が生じた場合に、この一時的な断線状態に伴う故障情報が保守情報として収集されることを回避することができる。このため、一時的な断線状態といった比較的軽微な故障情報が保守情報として収集されることを回避することができる。
In addition, since the preprocessing and the line restoration processing can be clearly separated as the processing at the master station M0, the processing structure at the master station M0 can be simplified.
Also, the failure information of the slave station that has returned to the line returns to the line in a cleared state. Therefore, for example, even if the master station M0 is configured to collect and store the failure information of the slave station as maintenance information for maintenance of the network system, the master station M0 Since the station recognizes it as a normal state, slave station failure information is not collected. Therefore, in the event of a temporary disconnection, such as when communication cannot be temporarily performed due to something, avoiding the collection of failure information associated with this temporary disconnection as maintenance information can do. For this reason, it is possible to avoid collecting relatively minor failure information such as a temporary disconnection state as maintenance information.

なお、上記実施の形態においては、スレーブ局SL3及びスレーブ局SL4において、回線への復帰前の状態として共に初期状態にリセットする場合について説明しているがこれに限るものではない。
前述のように、各スレーブ局の被制御対象機器によって、各スレーブ局が回線に復帰するときのあるべき状態、つまり復帰前状態は異なるため、回線復帰時の前処理の処理内容もスレーブ局毎に異なる。
In the above embodiment, the case where both the slave station SL3 and the slave station SL4 are reset to the initial state as the state before returning to the line has been described, but the present invention is not limited to this.
As described above, the state that each slave station should return to the line depends on the controlled device of each slave station, that is, the state before return differs. Different.

例えば、スレーブ局SL3では、前処理として予め設定した回線復帰時にあるべき状態として予め設定した復帰前状態(例えば初期状態)に移行させ、スレーブ局SL4では、前処理として、他のスレーブ局との整合をとるための各種パラメータとして他のスレーブ局の現在値を設定する場合には、マスタ局M0ではスレーブ局SL3に対しては復帰前状態への移行を指示するリセットコマンドを設定し、スレーブ局SL4に対しては各種パラメータの更新を指示する更新コマンドと更新用データとを設定する。そして、これらを透過コマンドフレームとしてスレーブ局SL2宛に送信する。   For example, the slave station SL3 shifts to a pre-return state (for example, an initial state) set in advance as a state that should be present when the line is restored as pre-processing, and the slave station SL4 performs pre-processing with other slave stations. When setting the current values of other slave stations as various parameters for matching, the master station M0 sets a reset command that instructs the slave station SL3 to shift to the state before return, For SL4, an update command for instructing update of various parameters and update data are set. Then, these are transmitted as a transparent command frame to the slave station SL2.

スレーブ局SL2では、スレーブ局SL3及びスレーブ局SL4宛に、スレーブ局SL3宛のリセットコマンドと、スレーブ局SL4宛の更新コマンド及び更新用データとからなる透過コマンドフレームを送信する。
この透過コマンドフレームを受信したスレーブ局SL3では自局宛のリセットコマンドを読み込み、所定の復帰前状態へのリセット処理を行い、スレーブ局SL4では自局宛の更新コマンド及び更新データを読み込み、指定された各種パラメータのパラメータ値を更新データに更新する。
このように、スレーブ局SL3及びスレーブ局SL4に対する、前処理の処理内容が異なる場合であっても適用することができる。
また、上記実施の形態においては、スレーブ局SL3及びスレーブ局SL4では、透過コマンドフレームでのリセット指示に応じてリセット処理のみを行う場合について説明したが、これに限るものではない。
In the slave station SL2, a transparent command frame including a reset command addressed to the slave station SL3, an update command addressed to the slave station SL4, and update data is transmitted to the slave station SL3 and the slave station SL4.
The slave station SL3 that has received this transparent command frame reads the reset command addressed to itself and performs a reset process to a predetermined state before return, and the slave station SL4 reads the update command and update data addressed to itself and is designated. The parameter values of various parameters are updated to update data.
In this way, the present invention can be applied even when the processing contents of the preprocessing for the slave station SL3 and the slave station SL4 are different.
In the above-described embodiment, the slave station SL3 and the slave station SL4 have described the case where only the reset process is performed according to the reset instruction in the transparent command frame. However, the present invention is not limited to this.

例えば、透過コマンドフレームにおいて、スレーブ局SL3、スレーブ局SL4宛に、応答要求や所定情報の送信要求を付加して送信し、スレーブ局SL3、スレーブ局SL4では、応答要求や送信要求が付加されているときには指定された情報を透過コマンドフレームに付加して次局に送信するか、或いは応答用のフレームを新たに作成してループバック局であるスレーブ局SL2に送信するように構成する。そして、スレーブ局SL3、スレーブ局SL4からの所定の情報が付加された透過コマンドフレームや応答用フレームを、スレーブ局SL2から、所定のタイミングで、マスタ局M0に送信するように構成してもよい。   For example, in a transparent command frame, a response request and a transmission request for predetermined information are added to the slave stations SL3 and SL4, and the response request and the transmission request are added to the slave stations SL3 and SL4. If so, the designated information is added to the transparent command frame and transmitted to the next station, or a response frame is newly created and transmitted to the slave station SL2 which is the loopback station. The transparent command frame and the response frame to which the predetermined information from the slave station SL3 and the slave station SL4 is added may be transmitted from the slave station SL2 to the master station M0 at a predetermined timing. .

このように、マスタ局M0で必要とする情報を、スレーブ局SL3やスレーブ局SL4から送信する構成とすることにより、マスタ局M0側ではスレーブ局SL3やスレーブ局SL4での状態など、必要な情報を収集した上で、各種処理を実行することができる。このため、例えば、スレーブ局SL3やスレーブ局SL4側から前処理が終了したときに終了通知を行う構成とすることによって、マスタ局M0では、スレーブ局SL3やスレーブ局SL4での前処理の終了を待って、ループバックの解除を行うことができる。   As described above, by transmitting the information required by the master station M0 from the slave station SL3 or the slave station SL4, the master station M0 side needs necessary information such as the status at the slave station SL3 or the slave station SL4. Various processes can be executed after collecting the information. For this reason, for example, when the preprocessing is completed from the slave station SL3 or the slave station SL4 side, the master station M0 notifies the end of the preprocessing in the slave station SL3 or the slave station SL4. You can wait and release the loopback.

また、上記実施の形態においては、マスタ局M0から切り離し局に対してリセット指示を行う透過コマンドフレームのみを送信する場合について説明したが、これに限るものではない。
例えば、マスタ局と切り離し局との間で、指示データと応答データとを授受しつつ、複数回の手順を踏んで、切り離し局を復帰前状態に移行させる場合には、切り離し局からの応答コマンドを待って、マスタ局から再度透過コマンドフレームを送信するように構成してもよい。
In the above embodiment, a case has been described in which only a transparent command frame for instructing a resetting station is transmitted from the master station M0. However, the present invention is not limited to this.
For example, when the instruction station and the response data are exchanged between the master station and the disconnection station, the response command from the disconnection station is used when the disconnection station is shifted to the pre-return state by following multiple steps. Then, the transparent command frame may be transmitted again from the master station.

このようにすることによって、例えば、故障状態にある切り離し局を、一旦初期状態にリセットした後、初期値を再度設定し、その初期値が正しく読み込まれ、反映されたことを確認した上で、回線に復帰させる場合等であっても、的確に復帰前状態に移行させることができる。
また、スレーブ局毎に所定の復帰前状態に移行するまでにシーケンスが必要な場合には、マスタ局では、各スレーブ局個別宛の透過コマンドフレームを生成し且つ、スレーブ局毎に先に送信した透過コマンドフレームに対する応答コマンドを待って次の透過コマンドフレームを送信するようにすればよい。
By doing in this way, for example, after resetting the disconnected station in the fault state once to the initial state, the initial value is set again, and after confirming that the initial value is correctly read and reflected, Even when returning to the line, it is possible to accurately shift to the state before return.
In addition, when a sequence is required for each slave station to shift to a predetermined pre-return state, the master station generates a transparent command frame addressed to each slave station and transmits it to each slave station first. It is only necessary to wait for a response command to the transparent command frame and transmit the next transparent command frame.

また、複数のスレーブ局で構成される機械システム等において、あるスレーブ局を初期化して原点復帰させてから、他の局を初期化する等、復帰前状態に移行させる際に、スレーブ局間にわたってシーケンスが必要となる場合には、マスタ局側で、まず、第1のスレーブ局に対する所定の前処理を指示する透過コマンドフレームを送信し、その応答を待って第2のスレーブ局に対する所定の前処理を指示する透過コマンドフレームを送信し、その応答を待って、第1のスレーブ局に対する所定の前処理を指示する透過コマンドフレームを送信し、というように、シーケンスにしたがって、他のスレーブ局での処理状況を考慮して、透過コマンドフレームを所定のスレーブ局宛に送信するようにすればよい。   Also, in a mechanical system composed of a plurality of slave stations, when a slave station is initialized and returned to the original position, then other stations are initialized, etc. When a sequence is required, the master station first transmits a transparent command frame instructing predetermined preprocessing for the first slave station, waits for a response, and transmits a predetermined previous value for the second slave station. Transmits a transparent command frame instructing processing, waits for a response, transmits a transparent command frame instructing predetermined preprocessing for the first slave station, etc. The transparent command frame may be transmitted to a predetermined slave station in consideration of the processing status.

また、上記実施の形態においては、マスタ局及びスレーブ局をバス接続し、その両端に位置する局で回線を折り返すことによりリング型のネットワークを構成する場合について説明したが、マスタ局及びスレーブ局を二重の回線によってループ状に接続し、断線状態が生じた箇所でループバックを行うことにより、マスタ局と回線を介して接続されるスレーブ局との間で通信を継続し、断線状態が復旧したときにループバックを解除するようにしたリング型のネットワークであっても適用することができる。   Further, in the above embodiment, the case where the master station and the slave station are connected by bus and the ring network is configured by turning the line back at the stations located at both ends of the master station and the slave station is described. By connecting in a loop with a double line and looping back where the disconnection occurred, communication between the master station and the slave station connected via the line is continued, and the disconnection is restored. Even if it is a ring-type network in which the loopback is canceled when it is done, it can be applied.

ここで、上記実施の形態において、図3のステップS2及びS3の処理が前処理用コマンドフレーム送信手段に対応し、透過コマンドフレームが前処理用コマンドフレームに対応し、図3のステップS4〜ステップS7の処理が回線復旧処理手段に対応し、ステップS4の処理で、ステップS3の処理で送信した透過コマンドフレームに対する応答としてループバック局から受信する透過コマンドフレームが応答コマンドフレームに対応している。
また、図4のステップS23の処理が前処理用コマンド中継手段に対応し、ステップS24及びステップS25の処理が応答中継手段に対応している。
また、図3のステップS3の処理で、断線状態が通知されたときにステップS1の処理で所定の記憶領域に記憶した記憶情報から切り離し局を特定する処理が切り離し局特定手段に対応している。
In the above embodiment, the processes in steps S2 and S3 in FIG. 3 correspond to the preprocessing command frame transmitting means, the transparent command frame corresponds to the preprocessing command frame, and steps S4 to S in FIG. The processing in S7 corresponds to the line restoration processing means, and in the processing in step S4, the transparent command frame received from the loopback station as a response to the transparent command frame transmitted in the processing in step S3 corresponds to the response command frame.
Further, the process in step S23 in FIG. 4 corresponds to the preprocessing command relay means, and the processes in steps S24 and S25 correspond to the response relay means.
Further, in the process of step S3 in FIG. 3, the process of specifying the disconnection station from the storage information stored in the predetermined storage area in the process of step S1 when the disconnection state is notified corresponds to the disconnection station specifying means. .

本発明を適用したリング型ネットワークシステムの一例を示す構成図である。It is a block diagram which shows an example of the ring type network system to which this invention is applied. フレームフォーマットの一例である。It is an example of a frame format. 断線状態検出時のマスタ局の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the master station at the time of a disconnection state detection. 断線復旧時のループバック局における処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence in the loopback station at the time of disconnection recovery. 切り離し局における処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence in a isolation | separation station. 断線状態検出から断線復旧までのフレームの流れを説明する説明図である。It is explanatory drawing explaining the flow of the frame from a disconnection state detection to disconnection recovery. 断線状態検出から断線復旧までの各時点における、リング型ネットワークシステムにおけるデータの流れを説明する説明図である。It is explanatory drawing explaining the flow of the data in a ring type network system at each time from a disconnection state detection to disconnection recovery. 断線状態が生じたときの、リング型ネットワークシステムの状態を説明するための説明図である。It is explanatory drawing for demonstrating the state of a ring type network system when a disconnection state arises.

符号の説明Explanation of symbols

M0 マスタ局
SL1〜SL4 スレーブ局
M0 Master station SL1 to SL4 Slave station

Claims (4)

一のマスタ局と、当該マスタ局と回線を介して接続され且つ前記マスタ局に管理される複数のスレーブ局とでリング型ネットワークを構築し、
いずれかの前記局が、隣接する局との間での通信が不可となる断線状態を検出したときループバックを行なうことにより前記回線を介して前記マスタ局と接続状態にある局間で通信を継続し、
前記断線状態の復旧が検出されたとき前記ループバックを解除することにより、前記ループバックにより前記マスタ局から切り離されたスレーブ局を、前記回線を介して前記マスタ局に再接続するようにしたリング型ネットワークシステムにおいて、
前記マスタ局は、前記断線状態の復旧が検出されたとき、前記ループバックにより前記マスタ局から切り離された切り離し局に対して、当該切り離し局を前記マスタ局に再接続する時の状態として予め設定した復帰前状態に移行させるための前処理用のコマンドを生成し、当該コマンドを、前処理用コマンドフレームとして前記ループバックを行っているループバック局宛に送信する前処理用コマンドフレーム送信手段と、
前記前処理用コマンドフレームに対する応答として応答コマンドフレームが通知された後に、前記ループバック局に対して前記ループバック解除の指示を行うと共に、所定の回線復旧時の処理を実行する回線復旧処理手段と、を備え、
前記ループバック局は、前記前処理用コマンドフレームを受信したとき、前記前処理用コマンドフレームを前記切り離し局宛に送信する前処理用コマンドフレーム中継手段と、
前記前処理用コマンドフレームに対する応答として前記切り離し局から受信した応答コマンドフレームを、前記マスタ局に送信する応答中継手段と、を備え、
前記切り離し局は、前記前処理用コマンドフレームを受信したとき、前記前処理用コマンドフレームに応じて所定の前処理を実行すると共に前記応答コマンドフレームを送信することを特徴とするリング型ネットワークシステム。
A ring network is constructed by one master station and a plurality of slave stations connected to the master station via a line and managed by the master station,
When any one of the stations detects a disconnection state in which communication with an adjacent station is disabled, communication is performed between the stations connected to the master station via the line by performing a loopback. Continue,
A ring in which the slave station disconnected from the master station by the loop back is reconnected to the master station via the line by releasing the loop back when recovery of the disconnected state is detected. Type network system,
When the recovery of the disconnection state is detected, the master station is set in advance as a state when the disconnected station is reconnected to the master station with respect to the disconnected station disconnected from the master station by the loopback. A preprocessing command frame transmitting means for generating a preprocessing command for shifting to the pre-return state and transmitting the command as a preprocessing command frame to the loopback station performing the loopback. ,
A line restoration processing means for instructing the loopback station to release the loopback and executing a predetermined line restoration process after a response command frame is notified as a response to the preprocessing command frame; With
The loopback station, when receiving the preprocessing command frame, preprocessing command frame relay means for transmitting the preprocessing command frame to the disconnecting station;
A response relay means for transmitting a response command frame received from the disconnecting station as a response to the preprocessing command frame to the master station, and
The ring network system according to claim 1, wherein, when receiving the preprocessing command frame, the disconnection station executes predetermined preprocessing according to the preprocessing command frame and transmits the response command frame.
前記復帰前状態は前記スレーブ局の機能に応じて前記スレーブ局毎に設定され、
前記マスタ局は、前記断線状態の復旧が検出されたとき、前記ループバックの解除により前記マスタ局に再接続される前記切り離し局を特定する切り離し局特定手段を備え、
前記前処理用コマンド送信手段は、前記切り離し局特定手段で特定された前記切り離し局毎に、各切り離し局に設定された前記復帰前状態に応じた前処理用のコマンドを生成し、当該コマンドを前記切り離し局特定手段で特定された切り離し局と対応付けて前記前処理用コマンドフレームとして送信することを特徴とする請求項1記載のリング型ネットワークシステム。
The state before return is set for each slave station according to the function of the slave station,
The master station comprises disconnection station specifying means for specifying the disconnection station to be reconnected to the master station by releasing the loopback when recovery of the disconnection state is detected,
The preprocessing command transmission means generates a preprocessing command corresponding to the pre-return state set for each disconnection station for each disconnection station specified by the disconnection station specifying means, 2. The ring network system according to claim 1, wherein the pre-processing command frame is transmitted in association with the disconnection station specified by the disconnection station specifying means.
前記マスタ局と前記スレーブ局とをバス接続し、且つ両端に位置する局で回線を折り返すことにより前記リング型のネットワークを構成することを特徴とする請求項1又は請求項2記載のリング型ネットワークシステム。   3. The ring network according to claim 1, wherein the ring network is configured by connecting the master station and the slave station by a bus and turning back a line at stations located at both ends. system. 一のマスタ局と、当該マスタ局と回線を介して接続され且つ前記マスタ局に管理される複数のスレーブ局とでリング型ネットワークを構築し、
いずれかの前記局が、隣接する局との間での通信が不可となる断線状態を検出したときループバックを行うことにより、前記回線を介して前記マスタ局と接続状態にある局間で通信を継続し、
前記断線状態の復旧が検出されたとき前記ループバックを解除することにより、前記ループバックにより前記マスタ局から切り離されたスレーブ局を、前記回線を介して前記マスタ局に再接続するようにしたリング型ネットワークシステムの復旧方法において、
前記断線状態の復旧が検出されたとき、前記マスタ局において、前記ループバックにより前記マスタ局から切り離された切り離し局に対して、当該切り離し局を前記マスタ局に再接続する時の状態として予め設定した復帰前状態に移行させるための前処理用のコマンドを生成し、当該コマンドを前処理用コマンドフレームとして、前記ループバックを行なっているループバック局を介して前記切り離し局宛に送信するステップと、
前記前処理用コマンドフレームを受信した前記切り離し局が、前記前処理用コマンドフレームに応じて所定の前処理を実行すると共に前記前処理用コマンドフレームに対する応答コマンドフレームを送信するステップと、
前記マスタ局が、前記ループバック局を介して前記応答コマンドフレームを受信した後、前記ループバック局に対して前記ループバック解除の指示を行うと共に、所定の回線復旧時の処理を実行するステップと、を備えることを特徴とするリング型ネットワークシステムの復旧方法。
A ring network is constructed by one master station and a plurality of slave stations connected to the master station via a line and managed by the master station,
Communicate between stations connected to the master station via the line by performing a loopback when any of the stations detects a disconnection state in which communication with an adjacent station is disabled. Continue
A ring in which the slave station disconnected from the master station by the loop back is reconnected to the master station via the line by releasing the loop back when recovery of the disconnected state is detected. Type network system recovery method,
When recovery from the disconnection state is detected, the master station sets in advance as a state when the disconnected station is reconnected to the master station with respect to the disconnected station disconnected from the master station by the loopback. Generating a preprocessing command for shifting to the pre-return state, and transmitting the command as a preprocessing command frame to the disconnecting station via the loopback station performing the loopback; ,
The disconnecting station that has received the preprocessing command frame performs a predetermined preprocessing according to the preprocessing command frame and transmits a response command frame to the preprocessing command frame;
The master station, after receiving the response command frame via the loopback station, instructing the loopback station to release the loopback and executing a process at the time of a predetermined line restoration; A method for restoring a ring network system, comprising:
JP2008226302A 2008-09-03 2008-09-03 Ring network system and ring network system recovery method Active JP5077153B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008226302A JP5077153B2 (en) 2008-09-03 2008-09-03 Ring network system and ring network system recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008226302A JP5077153B2 (en) 2008-09-03 2008-09-03 Ring network system and ring network system recovery method

Publications (2)

Publication Number Publication Date
JP2010062861A true JP2010062861A (en) 2010-03-18
JP5077153B2 JP5077153B2 (en) 2012-11-21

Family

ID=42189173

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008226302A Active JP5077153B2 (en) 2008-09-03 2008-09-03 Ring network system and ring network system recovery method

Country Status (1)

Country Link
JP (1) JP5077153B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010206471A (en) * 2009-03-03 2010-09-16 Fuji Electric Systems Co Ltd Ring network system and recovery method of the same
JP2012182512A (en) * 2011-02-28 2012-09-20 Fuji Electric Co Ltd Ring type network system
JP2021040288A (en) * 2019-09-05 2021-03-11 オムロン株式会社 Master device, arithmetic processing unit, programmable logic controller, network, and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63252044A (en) * 1987-04-08 1988-10-19 Nissin Electric Co Ltd Line restoration method in data transmission system
JP2007259406A (en) * 2006-02-24 2007-10-04 Alaxala Networks Corp Ring network and master node
JP2008099265A (en) * 2006-09-13 2008-04-24 Yamaha Corp Network system
JP2009094588A (en) * 2007-10-03 2009-04-30 Yamaha Corp Network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63252044A (en) * 1987-04-08 1988-10-19 Nissin Electric Co Ltd Line restoration method in data transmission system
JP2007259406A (en) * 2006-02-24 2007-10-04 Alaxala Networks Corp Ring network and master node
JP2008099265A (en) * 2006-09-13 2008-04-24 Yamaha Corp Network system
JP2009094588A (en) * 2007-10-03 2009-04-30 Yamaha Corp Network system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010206471A (en) * 2009-03-03 2010-09-16 Fuji Electric Systems Co Ltd Ring network system and recovery method of the same
JP2012182512A (en) * 2011-02-28 2012-09-20 Fuji Electric Co Ltd Ring type network system
JP2021040288A (en) * 2019-09-05 2021-03-11 オムロン株式会社 Master device, arithmetic processing unit, programmable logic controller, network, and method
WO2021044652A1 (en) * 2019-09-05 2021-03-11 オムロン株式会社 Master device, arithmetic processing device, programmable logic controller, network, and method
CN114245978A (en) * 2019-09-05 2022-03-25 欧姆龙株式会社 Host device, arithmetic processing device, programmable logic controller, network, and method
CN114245978B (en) * 2019-09-05 2023-08-01 欧姆龙株式会社 Host device, operation processing device, controller, network system, and method
JP7327017B2 (en) 2019-09-05 2023-08-16 オムロン株式会社 Master Device, Processing Unit, Programmable Logic Controller, Network, and Method

Also Published As

Publication number Publication date
JP5077153B2 (en) 2012-11-21

Similar Documents

Publication Publication Date Title
CN101630298B (en) Serial bus slave address setting system
JP6076373B2 (en) Technology to cope with changes in the state of interconnection nodes
CN102006188B (en) Path back switching method and device in transport network
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN102025562A (en) Path detection method and device
JP5077153B2 (en) Ring network system and ring network system recovery method
EP2515477A1 (en) Method and system for service protection
JP2010206471A (en) Ring network system and recovery method of the same
US11996975B2 (en) Method for network restoration when communication failure occurs in RAPIEnet system
JP4541241B2 (en) Plant control system
CN103220201A (en) Method and device of detection and protection of ring network faults
JPWO2006075403A1 (en) Transmission apparatus and failure notification method
JP5647197B2 (en) Network connection device, network control method, network control program, and network system
JP2012230446A (en) Programmable controller station
CN112698991B (en) Dual-computer hot standby system and method based on 1 to 1 heartbeat
WO2013061496A1 (en) Communication relay device, method for operational switching, and communication relay control circuit board
JPS58170247A (en) Automatic loop back controlling system
JP5606652B2 (en) Control and monitoring signal transmission system
JP4038648B2 (en) Network system and control method
JP2004007930A (en) System and program for controlling power system monitoring
JP6935819B2 (en) Node device, recovery operation control method, and recovery operation control program
CN109491236A (en) Method for running the automated system of high availability
JP5964682B2 (en) Transmission device, transmission device control method, and transmission system
JPS634733A (en) Fault detecting and eliminating method for optical communication system
JP5602071B2 (en) CPU duplex control system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110422

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110516

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120719

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: 20120731

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120813

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

Free format text: PAYMENT UNTIL: 20150907

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5077153

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250