Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7692748B2 - Redundant Systems and Controllers - Google Patents
[go: Go Back, main page]

JP7692748B2 - Redundant Systems and Controllers - Google Patents

Redundant Systems and Controllers Download PDF

Info

Publication number
JP7692748B2
JP7692748B2 JP2021107159A JP2021107159A JP7692748B2 JP 7692748 B2 JP7692748 B2 JP 7692748B2 JP 2021107159 A JP2021107159 A JP 2021107159A JP 2021107159 A JP2021107159 A JP 2021107159A JP 7692748 B2 JP7692748 B2 JP 7692748B2
Authority
JP
Japan
Prior art keywords
port
serial communication
status information
controller
communication line
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.)
Active
Application number
JP2021107159A
Other languages
Japanese (ja)
Other versions
JP2023005329A (en
Inventor
功一 東出
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.)
Azbil Corp
Original Assignee
Azbil Corp
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 Azbil Corp filed Critical Azbil Corp
Priority to JP2021107159A priority Critical patent/JP7692748B2/en
Publication of JP2023005329A publication Critical patent/JP2023005329A/en
Application granted granted Critical
Publication of JP7692748B2 publication Critical patent/JP7692748B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

この発明は、ネットワークの経路を冗長化した冗長システム、及び当該冗長システムを構成するコントローラに関する。 This invention relates to a redundant system that provides redundancy to network paths, and to a controller that constitutes the redundant system.

近年、ビルオートメーションシステムでは、オープンプロトコルであるBACnet(Building Automation and Control Network)通信が広く普及している。BACnet通信で使用される通信プロトコルとしては、イーサネット上でBACnetサービスを通信するための「BACnet IP」プロトコルと、データ伝送の物理層にRS485を使用する「BACnet MS/TP(Master Slave Token Passing)」プロトコルとが知られている。このうち、「BACnet MS/TP」プロトコルは、マスタスレーブ通信方式とトークンパッシング通信方式との2つの通信方式を組み合わせて通信を行うプロトコルである。このBACnet MS/TPプロトコルが適用された従来のシステム構成例を図17に示す。 In recent years, the open protocol BACnet (Building Automation and Control Network) communication has become widespread in building automation systems. Known communication protocols used in BACnet communication are the "BACnet IP" protocol for communicating BACnet services over Ethernet, and the "BACnet MS/TP (Master Slave Token Passing)" protocol, which uses RS485 for the physical layer of data transmission. Of these, the "BACnet MS/TP" protocol is a protocol that performs communication by combining two communication methods, the master-slave communication method and the token passing communication method. An example of a conventional system configuration to which this BACnet MS/TP protocol is applied is shown in FIG. 17.

図17に示すシステムでは、物理層であるRS485通信の規約によって、マスタノードである汎用コントローラ(ジェネラルコントローラ)1000と、スレーブノードであるセカンダリデバイス(フィールド機器)50とが、シリアル通信線(MSTPライン)30を介してデイジーチェーン方式(いわゆる数珠つなぎ)で接続される。汎用コントローラ1000は、シリアル通信線30が接続可能な2つのポート(第1のポート1011及び第2のポート1012)を備えており、それぞれのポートにシリアル通信線30が接続されている。そして、汎用コントローラ1000は、それぞれのシリアル通信線30を介して、各シリアル通信線30に接続されたセカンダリデバイス50の状態を監視している。 In the system shown in FIG. 17, a general-purpose controller 1000, which is a master node, and a secondary device (field device) 50, which is a slave node, are connected in a daisy chain manner (so-called daisy chain) via a serial communication line (MSTP line) 30 according to the RS485 communication protocol, which is a physical layer. The general-purpose controller 1000 has two ports (a first port 1011 and a second port 1012) to which the serial communication line 30 can be connected, and the serial communication line 30 is connected to each port. The general-purpose controller 1000 monitors the status of the secondary device 50 connected to each serial communication line 30 via each serial communication line 30.

具体的には、このシステムでは、ネットワーク上をトークン(通信権)がシリアルアドレス順に巡回し、このトークンを獲得したノードが他のノードとの通信を行うことができる。汎用コントローラ1000は、トークンを獲得したタイミングで、各シリアル通信線30上に接続されたセカンダリデバイス50の状態情報を取得する(スキャン)ことにより、セカンダリデバイス50の状態を監視する。なお、図17において、符号80は汎用コントローラ1000の上位コントローラである統合コントローラ80、符号70は汎用コントローラ1000と統合コントローラ80とを接続する通信線である。 Specifically, in this system, a token (communication right) circulates on the network in the order of serial addresses, and a node that acquires this token can communicate with other nodes. When the general-purpose controller 1000 acquires a token, it acquires (scans) status information of the secondary devices 50 connected to each serial communication line 30, thereby monitoring the status of the secondary devices 50. In FIG. 17, reference numeral 80 denotes an integrated controller 80, which is a higher-level controller of the general-purpose controller 1000, and reference numeral 70 denotes a communication line that connects the general-purpose controller 1000 and the integrated controller 80.

ここで、シリアル通信線30の途中に断線が生じた場合、汎用コントローラ1000は、当該シリアル通信線30の断線が生じた箇所より先に接続されているセカンダリデバイス50にアクセスすることができず、当該セカンダリデバイス50の状態情報を取得することができないおそれがある。 If a break occurs along the serial communication line 30, the general-purpose controller 1000 may not be able to access the secondary device 50 connected beyond the point where the break occurred in the serial communication line 30, and may not be able to obtain status information for the secondary device 50.

一方、このような回線障害により生じる問題を解決するための技術が種々提案されている。例えば特許文献1には、回線障害が発生した際に経路の切り替えを迅速に行うリングネットワークシステムが開示されている。 Meanwhile, various technologies have been proposed to solve problems caused by such line failures. For example, Patent Document 1 discloses a ring network system that quickly switches paths when a line failure occurs.

特開2006-245780号公報JP 2006-245780 A

しかしながら、特許文献1に記載された技術は、標準の技術であるRTP(Resilient Packet Ring)リングネットワークが用いられたシステムにおいて経路の冗長化を行うための技術である。そして、この技術が適用されるネットワーク構成は、セカンダリデバイス50がデイジーチェーン方式でシリアル通信線30に接続されたネットワーク構成とは、基本的なネットワーク構成が異なっている。したがって、特許文献1に記載された技術を、図17で示したようなシリアル通信線30により構成されたネットワークに適用することは困難であった。 However, the technology described in Patent Document 1 is a technology for providing path redundancy in a system that uses a standard RTP (Resilient Packet Ring) ring network. The network configuration to which this technology is applied is fundamentally different from a network configuration in which secondary devices 50 are connected to serial communication lines 30 in a daisy chain manner. Therefore, it has been difficult to apply the technology described in Patent Document 1 to a network configured with a serial communication line 30 as shown in FIG. 17.

この発明は、上記のような課題を解決するためになされたもので、デバイスがシリアル通信線によりデイジーチェーン接続されて構成されたネットワークの経路を冗長化することが可能な冗長システムを提供することを目的とする。 This invention has been made to solve the above problems, and aims to provide a redundant system that can provide redundancy to the paths of a network in which devices are daisy-chained via serial communication lines.

この発明に係る冗長システムは、第1のコントローラと、シリアル通信線により第1のコントローラにリング状にデイジーチェーン接続された1台以上のデバイスと、を含んで構成され、第1のコントローラは、シリアル通信線の一方の端部が接続される第1のポートと、シリアル通信線の他方の端部が接続される第2のポートと、第1のポートから第2のポートに向かう第1の方向周り、又は第2のポートから第1のポートに向かう第2の方向周りにデバイスにアクセスしてシリアル通信可能な通信部と、を備える。
通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、状態情報取得部は、第1の方向周り又は第2の方向周りのうちいずれか一方の方向周りにデバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、アクセスの方向を第1の方向周り又は第2の方向周りのうち他の方向周りに切り替えてデバイスに順次アクセスし、状態情報を取得するものであり、第1のコントローラは、状態情報取得部による状態情報の取得結果に基づいて、シリアル通信線に断線が生じたか否かを判定する断線判定部を備え、断線判定部は、状態情報取得部が第1の方向周り又は第2の方向周りのうちいずれか一方の方向周りでアクセスした場合の状態情報の取得結果と、他方の方向周りでアクセスした場合の状態情報の取得結果とが互いに反転しており、かつ当該反転した取得結果が所定回数継続して得られた場合に、シリアル通信線に断線が生じたと判定する。
The redundant system of the present invention is composed of a first controller and one or more devices daisy-chained in a ring shape to the first controller by serial communication lines, and the first controller has a first port to which one end of the serial communication line is connected, a second port to which the other end of the serial communication line is connected, and a communication unit capable of serial communication by accessing the devices in a first direction from the first port to the second port, or in a second direction from the second port to the first port.
The communication unit includes a status information acquisition unit that acquires status information of the device through serial communication, and if the status information of each device cannot be acquired from any of the devices as a result of sequentially accessing the devices in either the first direction or the second direction, the status information acquisition unit switches the direction of access to the other of the first direction or the second direction to sequentially access the devices and acquire the status information, and the first controller includes a break determination unit that determines whether or not a break has occurred in the serial communication line based on the result of the status information acquired by the status information acquisition unit, and the break determination unit determines that a break has occurred in the serial communication line when the result of the status information acquired by the status information acquisition unit when the state information acquisition unit accesses the device in either the first direction or the second direction and the result of the status information acquired when the state information acquisition unit accesses the device in the other direction are mutually inverted, and the inverted acquisition result has been acquired continuously a predetermined number of times.

この発明によれば、上記のように構成したので、デバイスがシリアル通信線によりデイジーチェーン接続されて構成されたネットワークの経路を冗長化することができる。 With the above-mentioned configuration, this invention makes it possible to provide redundancy to the network paths in which devices are daisy-chained via serial communication lines.

実施の形態1に係る冗長システムの構成例を示す図である。FIG. 1 is a diagram illustrating a configuration example of a redundant system according to a first embodiment; 実施の形態1に係る汎用コントローラの構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a general-purpose controller according to the first embodiment. 実施の形態1におけるシリアル通信線に断線が生じていない場合の例を示す図である。11 is a diagram showing an example of a case where no break occurs in the serial communication line in the first embodiment; 図3における状態情報の取得結果の例を示す図である。4 is a diagram showing an example of an acquisition result of state information in FIG. 3. 実施の形態1におけるシリアル通信線に断線が生じている場合の例を示す図である。11 is a diagram showing an example in which a break occurs in a serial communication line in the first embodiment; 図5における状態情報の取得結果(第1の方向周り)の例を示す図である。6 is a diagram showing an example of an acquisition result (around a first direction) of state information in FIG. 5 . 図5における状態情報の取得結果(第2の方向周り)の例を示す図である。6 is a diagram showing an example of an acquisition result (around a second direction) of state information in FIG. 5 . 図5における断線が復旧した後の状態情報の取得結果の例を示す図である。6 is a diagram showing an example of the result of acquiring state information after the disconnection in FIG. 5 is restored; 実施の形態1に係る汎用コントローラの動作例を説明する図である。4 is a diagram illustrating an example of the operation of the general-purpose controller according to the first embodiment; FIG. 実施の形態2に係る汎用コントローラの構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a general-purpose controller according to a second embodiment. 実施の形態2におけるシリアル通信線に複数の断線が生じている場合の例を示す図である。13 is a diagram illustrating an example in which multiple breaks occur in a serial communication line in the second embodiment. FIG. 図11における状態情報の取得結果の例を示す図であり、図12Aは第1の方向周りでの状態情報の取得結果の例、図12Bは第2の方向周りでの状態情報の取得結果の例を示す図である。12A is a diagram showing an example of the state information acquisition result in FIG. 11, where FIG. 12A is a diagram showing an example of the state information acquisition result around a first direction, and FIG. 12B is a diagram showing an example of the state information acquisition result around a second direction. 実施の形態3に係る汎用コントローラの構成例を示す図である。FIG. 13 is a diagram illustrating a configuration example of a general-purpose controller according to a third embodiment. 実施の形態3における操作器の構成例を示す図である。FIG. 13 is a diagram illustrating a configuration example of an operating device according to a third embodiment. 実施の形態4に係る冗長システムの構成例を示す図である。FIG. 13 is a diagram illustrating a configuration example of a redundant system according to a fourth embodiment. 従来の熱源コントローラの二重化技術を説明する図である。FIG. 1 is a diagram illustrating a conventional duplexing technique for a heat source controller. BACnet MS/TPプロトコルが適用された従来のシステム構成例を示す図である。FIG. 1 is a diagram showing an example of a conventional system configuration to which the BACnet MS/TP protocol is applied.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1は実施の形態1に係る冗長システム100の構成例を示す図である。
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
Embodiment 1.
FIG. 1 is a diagram showing an example of the configuration of a redundant system 100 according to the first embodiment.

冗長システム100は、汎用コントローラ(第1のコントローラ)1と、シリアル通信線30により汎用コントローラ1にリング状に接続された1台以上のセカンダリデバイス50とを含んで構成されている。セカンダリデバイス50は、汎用コントローラ1に対し、シリアル通信線30を介してデイジーチェーン方式で接続されている。 The redundant system 100 includes a general-purpose controller (first controller) 1 and one or more secondary devices 50 connected in a ring shape to the general-purpose controller 1 via a serial communication line 30. The secondary devices 50 are connected to the general-purpose controller 1 in a daisy chain manner via the serial communication line 30.

汎用コントローラ1は、シリアル通信線30を介してセカンダリデバイス50の状態を監視する。なお、冗長システム100では、上記で述べたように、ネットワーク上をトークン(通信権)がシリアルアドレス順に巡回し、このトークンを獲得したノードが他のノードとの通信を行う。汎用コントローラ1は、トークンを獲得したタイミングで、シリアル通信線30上に接続された各セカンダリデバイス50の状態情報(生死情報)を取得する(スキャン)ことにより、各セカンダリデバイス50の状態を監視する。また、汎用コントローラ1は、トークンを獲得したタイミングでセカンダリデバイス50にアクセスし、当該デバイス50が保持している状態情報以外の各種情報(以下、保持情報という)を取得する。なお、シリアルアドレスは、予めエンジニアにより汎用コントローラ1及び各セカンダリデバイス50に割り当てられている。 The general-purpose controller 1 monitors the status of the secondary devices 50 via the serial communication line 30. As described above, in the redundant system 100, a token (communication right) circulates on the network in the order of serial addresses, and the node that acquires this token communicates with other nodes. When the general-purpose controller 1 acquires a token, it acquires (scans) status information (life/death information) of each secondary device 50 connected to the serial communication line 30, thereby monitoring the status of each secondary device 50. When the general-purpose controller 1 acquires a token, it accesses the secondary device 50 and acquires various information other than the status information held by the device 50 (hereinafter referred to as held information). The serial addresses are assigned to the general-purpose controller 1 and each secondary device 50 in advance by an engineer.

セカンダリデバイス50は、汎用コントローラ1により状態情報又は保持情報が取得される対象となるフィールド機器である。セカンダリデバイス50は、例えば空調制御における可変風量制御装置(Variable Air Volume;VAV)を制御するコントローラ、空調制御におけるファンコイルユニット(Fan Coil Unit;FCU)を制御するコントローラ等で構成される。 The secondary device 50 is a field device from which status information or retained information is acquired by the general-purpose controller 1. The secondary device 50 is composed of, for example, a controller that controls a variable air volume control device (VAV) in air conditioning control, a controller that controls a fan coil unit (FCU) in air conditioning control, etc.

なお、統合コントローラ80は、汎用コントローラ1をはじめとする下位のコントローラを統合的に管理する上位コントローラであり、シリアル通信線30とは異なる通信線70を介して汎用コントローラ1に接続されている。統合コントローラ80は、汎用コントローラ1が監視の対象とするセカンダリデバイス50(例えば空調機など)のスケジュール情報を保持している。統合コントローラ80は、このスケジュール情報に従い、汎用コントローラ1に対してセカンダリデバイス50のON/OFF(発停)等を指示する。なお、通信線70は、「BACnet IP」プロトコルによるイーサネット通信が可能な通信線であり、統合コントローラ80と汎用コントローラ1とは、通信線70を介してイーサネット通信が可能である。 The integrated controller 80 is a higher-level controller that comprehensively manages lower-level controllers including the general-purpose controller 1, and is connected to the general-purpose controller 1 via a communication line 70 that is different from the serial communication line 30. The integrated controller 80 holds schedule information for the secondary devices 50 (such as air conditioners) that the general-purpose controller 1 monitors. The integrated controller 80 instructs the general-purpose controller 1 to turn the secondary devices 50 ON/OFF (start/stop) according to this schedule information. The communication line 70 is a communication line that allows Ethernet communication using the "BACnet IP" protocol, and the integrated controller 80 and the general-purpose controller 1 can communicate via Ethernet via the communication line 70.

次に、汎用コントローラ1の構成例について説明する。汎用コントローラ1は、図2に示すように、第1のポート11と、第2のポート12と、通信部13(状態情報取得部131、及び保持情報取得部132)と、記憶部14とを備えている。 Next, an example of the configuration of the general-purpose controller 1 will be described. As shown in FIG. 2, the general-purpose controller 1 includes a first port 11, a second port 12, a communication unit 13 (a state information acquisition unit 131 and a retained information acquisition unit 132), and a memory unit 14.

第1のポート11は、シリアル通信線30の一方の端部が接続される物理ポート(端子)である。第2のポート12は、シリアル通信線30の他方の端部が接続される物理ポート(端子)である。 The first port 11 is a physical port (terminal) to which one end of the serial communication line 30 is connected. The second port 12 is a physical port (terminal) to which the other end of the serial communication line 30 is connected.

通信部13は、第1のポート11から第2のポート12に向かう第1の方向周り、又は第2のポート12から第1のポート11に向かう第2の方向周りにセカンダリデバイス50にアクセスし、当該デバイス50とシリアル通信を行う。 The communication unit 13 accesses the secondary device 50 in a first direction from the first port 11 to the second port 12, or in a second direction from the second port 12 to the first port 11, and performs serial communication with the device 50.

なお、エンジニアは、第1のポート11及び第2のポート12のうち、どちらのポートを優先的に使用するかを予め設定してもよい。例えば、エンジニアが第1のポート11を優先的に使用するポートに設定した場合、通信部13は、第1のポート11から第2のポート12に向かう第1の方向周りを優先してセカンダリデバイス50にアクセスする。 The engineer may set in advance which of the first port 11 and the second port 12 is to be used preferentially. For example, if the engineer sets the first port 11 as the port to be used preferentially, the communication unit 13 will access the secondary device 50 preferentially in the first direction from the first port 11 to the second port 12.

通信部13は、状態情報取得部131と、保持情報取得部132とを含んで構成される。このうち、状態情報取得部131は、第1の方向周り又は第2の方向周りのうち一方の方向周りでセカンダリデバイス50に順次アクセスし、各デバイス50の状態情報を取得する。その結果、いずれかのセカンダリデバイス50から状態情報が取得できなかった場合、状態情報取得部131は、アクセスの方向を第1の方向周り又は第2の方向周りのうちの他方に切り替えてセカンダリデバイス50に順次アクセスし、状態情報が取得できなかったデバイス50を含む残りのデバイス50の状態情報を取得する。 The communication unit 13 includes a state information acquisition unit 131 and a retained information acquisition unit 132. Of these, the state information acquisition unit 131 sequentially accesses the secondary devices 50 in one of the first direction or the second direction, and acquires state information of each device 50. As a result, if state information cannot be acquired from any of the secondary devices 50, the state information acquisition unit 131 switches the access direction to the other of the first direction or the second direction, sequentially accesses the secondary devices 50, and acquires state information of the remaining devices 50, including the device 50 from which state information could not be acquired.

保持情報取得部132は、状態情報取得部131による状態情報の取得結果に基づき、第1の方向周り又は第2の方向周りにセカンダリデバイス50にアクセスし、当該デバイス50が状態情報以外に保持している情報(保持情報)を取得する。 The retained information acquisition unit 132 accesses the secondary device 50 in the first direction or the second direction based on the state information acquired by the state information acquisition unit 131, and acquires information (retained information) that the secondary device 50 retains other than the state information.

通信部13(状態情報取得部131、及び保持情報取得部132)の機能は、例えば汎用コントローラ1が備える不図示のCPU(Central Processing Unit)が、メモリに展開された所定のプログラムを実行することにより実現される。 The functions of the communication unit 13 (the state information acquisition unit 131 and the retained information acquisition unit 132) are realized, for example, by a central processing unit (CPU) (not shown) provided in the general-purpose controller 1 executing a predetermined program deployed in memory.

記憶部14は、汎用コントローラ1が使用する各種情報を記憶する。例えば、記憶部14は、状態情報取得部131による状態情報の取得結果、保持情報取得部132による保持情報の取得結果、及び各デバイスに割り当てられたシリアルアドレスの情報等を記憶する。記憶部14は、例えばHDD(Hard Disc Drive)、SSD(Solid State Drive)、又はメモリ等で構成される。なお、図2では、記憶部14が汎用コントローラ1の内部に設けられた場合を示しているが、記憶部14は汎用コントローラ1の外部に設けられていてもよい。 The storage unit 14 stores various information used by the general-purpose controller 1. For example, the storage unit 14 stores the results of state information acquisition by the state information acquisition unit 131, the results of retained information acquisition by the retained information acquisition unit 132, and serial address information assigned to each device. The storage unit 14 is composed of, for example, a HDD (Hard Disc Drive), an SSD (Solid State Drive), or a memory. Note that while FIG. 2 shows a case in which the storage unit 14 is provided inside the general-purpose controller 1, the storage unit 14 may also be provided outside the general-purpose controller 1.

次に、汎用コントローラ1の動作例の概要について説明する。汎用コントローラ1は上記のように、シリアル通信線30が接続される物理ポートとして、第1のポート11及び第2のポート12を備えている。そして、汎用コントローラ1では、これら第1のポート11及び第2のポート12が、セカンダリデバイス50とシリアル通信を行うためのチャネル(1CH及び2CH)に相当する。 Next, an overview of an example of the operation of the general-purpose controller 1 will be described. As described above, the general-purpose controller 1 has a first port 11 and a second port 12 as physical ports to which the serial communication line 30 is connected. In the general-purpose controller 1, the first port 11 and the second port 12 correspond to channels (1CH and 2CH) for performing serial communication with the secondary device 50.

また、汎用コントローラ1では、エンジニアにより、予めチャネル毎にシリアルアドレスが割り当てられる。例えば、第1のポート11(1CH)に対してはシリアルアドレス「0」が、第2のポート12(2CH)に対してはシリアルアドレス「127」が、それぞれエンジニアにより割り当てられる。同様に、セカンダリデバイス50に対しても、デイジーチェーンの並びに準じて、エンジニアによりシリアルアドレス「1」~「126」が割り当てられる。 In addition, in the general-purpose controller 1, an engineer assigns a serial address to each channel in advance. For example, the engineer assigns serial address "0" to the first port 11 (1CH) and serial address "127" to the second port 12 (2CH). Similarly, the engineer assigns serial addresses "1" to "126" to the secondary device 50 in accordance with the daisy chain arrangement.

そして、冗長システム100では、BACnet MSTPプロトコルの仕様に従い、トークンがシリアル通信線30をシリアルアドレス順に巡回している。すなわち、トークンは、シリアルアドレスが0のデバイス(ここでは第1のポート11)から、シリアルアドレスが1,2、・・・126のデバイスの順に巡回し、最後はシリアルアドレスが127のデバイス(ここでは第2のポート12)に到達する。 In the redundant system 100, the token circulates along the serial communication line 30 in the order of serial addresses according to the BACnet MSTP protocol specifications. That is, the token circulates from the device with serial address 0 (here, the first port 11) to the devices with serial addresses 1, 2, ..., 126, and finally reaches the device with serial address 127 (here, the second port 12).

汎用コントローラ1は、トークンを獲得すると、セカンダリデバイス50の状態情報の取得(スキャン)を行う。なお、例えばエンジニアにより、第1のポート11(1CH)が優先的に使用するポートとして設定されている場合、汎用コントローラ1の状態情報取得部131は、記憶部14に記憶されているシリアルアドレスの情報を元に、まず第1のポート11(1CH)から第2のポート12(2CH)に向かう第1の方向周りにセカンダリデバイス50に順次アクセスし、当該デバイス50の状態情報を取得する。 When the general-purpose controller 1 acquires the token, it acquires (scans) the status information of the secondary device 50. For example, if the first port 11 (1CH) is set by an engineer as the port to be used preferentially, the status information acquisition unit 131 of the general-purpose controller 1 first sequentially accesses the secondary devices 50 around the first direction from the first port 11 (1CH) to the second port 12 (2CH) based on the serial address information stored in the memory unit 14, and acquires the status information of the secondary devices 50.

この状態情報の取得は、シリアルアドレスが「1」のデバイスから「126」のデバイスまでの範囲で行われる。なお、状態情報取得部131は、状態情報の取得結果を記憶部14に記憶してもよい。例えば、状態情報取得部131は、デバイス50から状態情報が取得できた(スキャンに対する応答があった)場合には、当該デバイス50について状態情報が取得できたことを示す取得結果を記憶部14に記憶する。一方、状態情報取得部131は、デバイス50から状態情報が取得できなかった(スキャンに対する応答がなかった)場合には、当該デバイス50について状態情報が取得できなかったことを示す取得結果を記憶部14に記憶する。 This status information is acquired from devices with serial addresses ranging from "1" to "126". The status information acquisition unit 131 may store the status information acquisition result in the storage unit 14. For example, when the status information acquisition unit 131 is able to acquire status information from the device 50 (when there is a response to the scan), the status information acquisition unit 131 stores in the storage unit 14 an acquisition result indicating that status information was acquired for the device 50. On the other hand, when the status information acquisition unit 131 is unable to acquire status information from the device 50 (when there is no response to the scan), the status information acquisition unit 131 stores in the storage unit 14 an acquisition result indicating that status information was unable to be acquired for the device 50.

例えば一例として、図3に示すように、シリアル通信線30に断線が生じていない場合を考える。状態情報取得部131は、第1のポート11(1CH)から第2のポート12(2CH)に向かう第1の方向周り(図3の符号P)にセカンダリデバイス50にアクセスし、当該デバイス50の状態情報を取得する。このとき、図3では、シリアル通信線30に断線が生じていないため、状態情報取得部131は、すべてのセカンダリデバイス50の状態情報を取得できると想定される。 As an example, consider the case where there is no break in the serial communication line 30, as shown in FIG. 3. The status information acquisition unit 131 accesses the secondary device 50 in the first direction (symbol P in FIG. 3) from the first port 11 (1CH) to the second port 12 (2CH), and acquires status information of that device 50. At this time, since there is no break in the serial communication line 30 in FIG. 3, it is assumed that the status information acquisition unit 131 can acquire status information of all secondary devices 50.

この場合の取得結果の例を図4に示す。図4では、状態情報の取得結果がテーブル形式で記憶部14に記憶されている。図4のテーブルでは、「今回のチェック結果」の欄に「OK(1)」が記載されている。これは、状態情報取得部131が状態情報の取得に成功したことを表している。なお、「優先スキャン利用CH」の欄には「1」が記載されているが、これは各デバイスの保持情報を取得する際に使用するチャネルを1CH(第1のポート11)とすることを表している。 An example of the acquisition result in this case is shown in Figure 4. In Figure 4, the status information acquisition result is stored in the memory unit 14 in table format. In the table in Figure 4, "OK (1)" is entered in the "Current check result" column. This indicates that the status information acquisition unit 131 succeeded in acquiring the status information. Note that "1" is entered in the "Priority scan use CH" column, which indicates that the channel to be used when acquiring the held information of each device is 1CH (first port 11).

次に、図5に示すように、シリアル通信線30に断線が生じている場合を考える。図5では、符号Aの箇所でシリアル通信線30に断線が生じている。この場合、状態情報取得部131は、第1のポート11(1CH)から第2のポート12(2CH)に向かう第1の方向周り(図5の符号P)にセカンダリデバイス50にアクセスし、当該デバイス50の状態情報を取得するが、第1の方向周りにおいて断線箇所より手前にあるデバイス50の状態情報は取得できるものの、断線箇所より先にあるデバイス50の状態情報は取得できないことが想定される。 Next, consider the case where a break occurs in the serial communication line 30, as shown in FIG. 5. In FIG. 5, a break occurs in the serial communication line 30 at the location indicated by the symbol A. In this case, the status information acquisition unit 131 accesses the secondary device 50 in the first direction (symbol P in FIG. 5) from the first port 11 (1CH) to the second port 12 (2CH) and acquires status information of the device 50. However, it is assumed that while it is possible to acquire status information of the device 50 located before the break in the first direction, it is not possible to acquire status information of the device 50 located beyond the break.

この場合の取得結果の例を図6に示す。図6のテーブルでは、断線箇所より手前にあるデバイス50については、「今回のチェック結果」の欄に「OK(1)」が記載されているが、断線箇所より先にあるデバイス50については、「チェック結果」の欄に「NG(0)」が記載されている。この「NG(0)」は、状態情報取得部131が状態情報の取得に失敗したことを表している。なお、図6のテーブルの「NG継続時間」の欄には、状態情報取得部131が状態情報の取得に失敗する状態が継続している時間が記載される。 An example of the results obtained in this case is shown in Figure 6. In the table in Figure 6, for the device 50 before the break, "OK (1)" is entered in the "Current check result" column, but for the device 50 beyond the break, "NG (0)" is entered in the "Check result" column. This "NG (0)" indicates that the status information acquisition unit 131 failed to acquire status information. Note that the "NG duration" column in the table in Figure 6 records the time during which the status information acquisition unit 131 has failed to acquire status information.

このように、第1の方向周りで状態情報を取得した結果、状態情報の取得に失敗したデバイスが1台でも存在した場合、状態情報取得部131は、セカンダリデバイス50へのアクセスの方向を切り替える。すなわち、状態情報取得部131は、第1の方向回りとは反対の、第2のポート12(2CH)から第1のポート11(1CH)に向かう第2の方向回り(図5の符号Q)でセカンダリデバイス50にアクセスし、当該デバイス50の状態情報を取得する。 In this way, if there is even one device for which the acquisition of status information in the first direction has failed, the status information acquisition unit 131 switches the direction of access to the secondary device 50. That is, the status information acquisition unit 131 accesses the secondary device 50 in the second direction (symbol Q in FIG. 5 ) from the second port 12 (2CH) to the first port 11 (1CH), which is opposite to the first direction, and acquires the status information of that device 50.

この場合の取得結果の例を図7に示す。図7のテーブルでは、「チェック結果」の欄の記載が、図6のテーブルからみて反転していることが分かる。また、第1の方向回りでの状態情報の取得に失敗したデバイス50が、第2の方向回りで状態情報の取得に成功した場合、そのデバイス50については、「優先スキャン利用CH」の欄に「2」を記載する。これは、当該デバイス50の保持情報を取得する際に使用するチャネルを2CH(第2のポート12)とすることを表している。 An example of the results obtained in this case is shown in Figure 7. In the table in Figure 7, it can be seen that the entries in the "Check Results" column are reversed compared to the table in Figure 6. Furthermore, if a device 50 fails to obtain status information in the first direction but succeeds in obtaining status information in the second direction, then "2" is entered in the "Priority Scan CH Used" column for that device 50. This indicates that the channel to be used when obtaining the retained information of that device 50 is CH2 (second port 12).

なお、図5の符号Aの箇所で生じていた断線が復旧し、復旧前に第1の方向周りでの状態情報の取得に失敗していたデバイス50について、復旧後のタイミングで、第1の方向周りでの状態情報の取得に成功した場合、状態情報取得部131は、取得結果を図8のように書き換える。すなわち、状態情報取得部131は、第1の方向周りでの状態情報の取得に成功したデバイス50について、「NG継続時間」をクリアするとともに、「優先スキャン利用CH」を「2」から「1」に戻す。 When the disconnection that occurred at the location A in FIG. 5 is restored, and a device 50 that failed to acquire status information in the first direction before the restoration succeeds in acquiring status information in the first direction after the restoration, the status information acquisition unit 131 rewrites the acquisition result as shown in FIG. 8. That is, the status information acquisition unit 131 clears the "NG duration" for the device 50 that succeeded in acquiring status information in the first direction, and changes the "priority scan available CH" from "2" to "1".

次に、図9を参照しながら、実施の形態1に係る汎用コントローラ1の動作例の詳細を説明する。なお、汎用コントローラ1は、トークンを獲得する度に、以下の処理を実行するものとする。また、以下では、エンジニアにより予め第1のポート11が優先的に使用するポートに設定されているものとする。また、以下では、状態情報取得部131が状態情報の取得結果を記憶部14に記憶する例を説明するが、状態情報取得部131は状態情報の取得結果を必ずしも記憶部14に記憶せずともよい。 Next, with reference to FIG. 9, an example of the operation of the general-purpose controller 1 according to the first embodiment will be described in detail. It is assumed that the general-purpose controller 1 executes the following process each time it acquires a token. It is assumed below that the first port 11 has been set in advance by an engineer as the port to be preferentially used. It is assumed below that an example is described in which the status information acquisition unit 131 stores the results of acquiring the status information in the storage unit 14, but the status information acquisition unit 131 does not necessarily have to store the results of acquiring the status information in the storage unit 14.

まず、状態情報取得部131は、第1のポート11(1CH)から第2のポート12(2CH)に向かう第1の方向周りにセカンダリデバイス50にアクセスし、当該デバイス50の状態情報を取得する(ステップST901)。 First, the status information acquisition unit 131 accesses the secondary device 50 in the first direction from the first port 11 (1CH) to the second port 12 (2CH) and acquires status information of the device 50 (step ST901).

次に、状態情報取得部131は、第1の方向周りでアクセスした場合の状態情報の取得結果を記憶部14に記憶する(ステップST902)。 Next, the state information acquisition unit 131 stores the state information acquisition result when accessing around the first direction in the memory unit 14 (step ST902).

次に、状態情報取得部131は、ステップST902で記憶した状態情報の取得結果を参照し、状態情報の取得に失敗したデバイスがあるか否かを確認する(ステップST903)。その結果、状態情報の取得に失敗したデバイスがなければ(ステップST903;NO)、汎用コントローラ1は処理を終了する。 Next, the state information acquisition unit 131 refers to the state information acquisition result stored in step ST902, and checks whether there is any device for which acquisition of state information has failed (step ST903). As a result, if there is no device for which acquisition of state information has failed (step ST903; NO), the general-purpose controller 1 ends the process.

一方、状態情報の取得に失敗したデバイスがあれば(ステップST903;YES)、状態情報取得部131は、第2のポート12(2CH)から第1のポート11(1CH)に向かう第2の方向周りにセカンダリデバイス50にアクセスし、当該デバイス50の状態情報を取得する(ステップST904)。 On the other hand, if there is a device for which acquisition of status information has failed (step ST903; YES), the status information acquisition unit 131 accesses the secondary device 50 in the second direction from the second port 12 (2CH) to the first port 11 (1CH) and acquires the status information of that device 50 (step ST904).

次に、状態情報取得部131は、第2の方向周りでアクセスした場合の状態情報の取得結果を記憶部14に記憶し(ステップST905)、処理を終了する。 Next, the state information acquisition unit 131 stores the state information acquisition result when accessing around the second direction in the storage unit 14 (step ST905), and ends the process.

以上のように、実施の形態1によれば、冗長システム100は、汎用コントローラ1と、シリアル通信線30により汎用コントローラ1にリング状にデイジーチェーン接続された1台以上のデバイス50と、を含んで構成され、汎用コントローラ1は、シリアル通信線30の一方の端部が接続される第1のポート11と、シリアル通信線30の他方の端部が接続される第2のポート12と、第1のポート11から第2のポート12に向かう第1の方向周り、又は第2のポート12から第1のポート11に向かう第2の方向周りにデバイス50にアクセスしてシリアル通信可能な通信部13と、を備えた。これにより、冗長システム100は、デバイス50がシリアル通信線30によりデイジーチェーン接続されて構成されたネットワークの経路を冗長化することができる。また、冗長システム100は、コストの面でも有効である。例えば上記特許文献1では、経路を冗長化するために2台のリングノード装置を用いているが、実施の形態1では1台の汎用コントローラ1で冗長システムを実現することができ、上記特許文献1に比べて低コストで冗長システムを構築できる。 As described above, according to the first embodiment, the redundant system 100 includes a general-purpose controller 1 and one or more devices 50 daisy-chained in a ring shape to the general-purpose controller 1 by the serial communication line 30. The general-purpose controller 1 includes a first port 11 to which one end of the serial communication line 30 is connected, a second port 12 to which the other end of the serial communication line 30 is connected, and a communication unit 13 capable of accessing the device 50 and performing serial communication around a first direction from the first port 11 to the second port 12, or around a second direction from the second port 12 to the first port 11. This allows the redundant system 100 to make the path of a network in which the devices 50 are daisy-chained by the serial communication line 30 redundant. The redundant system 100 is also effective in terms of cost. For example, in the above-mentioned Patent Document 1, two ring node devices are used to make the path redundant, but in the first embodiment, a redundant system can be realized with one general-purpose controller 1, and a redundant system can be constructed at a lower cost than in the above-mentioned Patent Document 1.

また、通信部13は、シリアル通信によりデバイス50の状態情報を取得する状態情報取得部131を備え、状態情報取得部131は、第1の方向周り又は第2の方向周りのうちいずれか一方の方向周りにデバイス50に順次アクセスして各デバイス50の状態情報を取得した結果、いずれかのデバイス50から状態情報が取得できなかった場合、アクセスの方向を第1の方向周り又は第2の方向周りのうち他の方向周りに切り替えてデバイス50に順次アクセスし、状態情報を取得する。これにより、汎用コントローラ1は、いずれか一方の方向周りでの状態情報の取得に失敗したデバイス50があっても、他方の方向周りに当該デバイス50にアクセスすることができ、状態情報の取得及び取得した状態情報に基づくデバイス50の監視を継続的に行うことができる。 The communication unit 13 also includes a status information acquisition unit 131 that acquires status information of the devices 50 through serial communication. When the status information acquisition unit 131 acquires status information of each device 50 by sequentially accessing the devices 50 in either the first direction or the second direction and fails to acquire status information from any of the devices 50, the access direction is switched to the other direction of the first direction or the second direction to sequentially access the devices 50 and acquire status information. As a result, even if the general-purpose controller 1 fails to acquire status information of a device 50 in either one direction, it can access the device 50 in the other direction, and can continuously acquire status information and monitor the device 50 based on the acquired status information.

また、汎用コントローラ1は、1台以上のデバイス50がリング状にデイジーチェーン接続されたシリアル通信線30の一方の端部が接続される第1のポート11と、シリアル通信線30の他方の端部が接続される第2のポート12と、第1のポート11から第2のポート12に向かう第1の方向周り、又は第2のポート12から第1のポート11に向かう第2の方向周りにデバイス50にアクセスしてシリアル通信可能な通信部13と、を備えた。これにより、汎用コントローラ1は、デバイス50とのシリアル通信を継続的に行うことができる。 The general-purpose controller 1 also includes a first port 11 to which one end of a serial communication line 30 in which one or more devices 50 are daisy-chained in a ring shape is connected, a second port 12 to which the other end of the serial communication line 30 is connected, and a communication unit 13 capable of accessing and communicating serially with the device 50 in a first direction from the first port 11 to the second port 12 or in a second direction from the second port 12 to the first port 11. This allows the general-purpose controller 1 to continuously communicate serially with the device 50.

実施の形態2.
実施の形態1では、汎用コントローラ1が第1の方向周り又は第2の方向周りでセカンダリデバイス50にアクセスし、デバイス50と通信する例を説明した。実施の形態2ではこれに加え、汎用コントローラ1が、セカンダリデバイス50の状態情報の取得結果に基づいて、シリアル通信線30に断線が生じているか否かを判定する例を説明する。
Embodiment 2.
In the first embodiment, an example has been described in which the general-purpose controller 1 accesses the secondary device 50 in the first direction or the second direction and communicates with the device 50. In addition, in the second embodiment, an example will be described in which the general-purpose controller 1 determines whether or not a break has occurred in the serial communication line 30 based on the result of acquisition of status information of the secondary device 50.

図10は、実施の形態2に係る汎用コントローラ1bの構成例を示す図である。実施の形態2に係る汎用コントローラ1bは、実施の形態1に係る汎用コントローラ1に対し、断線判定部15が追加されている。汎用コントローラ1bのその他の構成については、実施の形態1に係る汎用コントローラ1と同様であるため、同一の符号を付してその説明を省略する。 Figure 10 is a diagram showing an example of the configuration of a general-purpose controller 1b according to the second embodiment. The general-purpose controller 1b according to the second embodiment is obtained by adding a disconnection determination unit 15 to the general-purpose controller 1 according to the first embodiment. The other configuration of the general-purpose controller 1b is similar to that of the general-purpose controller 1 according to the first embodiment, so the same reference numerals are used and the description thereof is omitted.

断線判定部15は、状態情報取得部131による状態情報の取得結果に基づいて、シリアル通信線30に断線が生じているか否かを判定する。 The disconnection determination unit 15 determines whether or not a disconnection has occurred in the serial communication line 30 based on the state information acquired by the state information acquisition unit 131.

例えば、状態情報取得部131による状態情報の取得結果が図4のような場合、つまり、状態情報取得部131が第1の方向周りにセカンダリデバイス50にアクセスした場合に状態情報の取得に失敗したデバイスがなかった場合、断線判定部15はシリアル通信線30に断線が生じていないと判定する。 For example, when the state information acquisition result by the state information acquisition unit 131 is as shown in FIG. 4, that is, when the state information acquisition unit 131 accesses the secondary device 50 around the first direction and there is no device from which acquisition of state information has failed, the disconnection determination unit 15 determines that no disconnection has occurred in the serial communication line 30.

一方、状態情報取得部131による状態情報の取得結果が図6及び図7のように反転する関係にあり、かつこれらの取得結果が所定回数継続して得られた場合、断線判定部15は、シリアル通信線30に断線が生じていると判定する。つまり、断線判定部15は、第1の方向周りでアクセスした場合の状態情報の取得結果と、第2の方向周りでアクセスした場合の状態情報の取得結果とが反転する関係にあり、かつ当該反転した取得結果が所定回数継続して得られた場合に、シリアル通信線30に断線が生じていると判定する。これにより、断線判定部15は、一時的なデバイス50の再起動もしくはノイズの影響により、シリアル通信線30に断線が生じていると誤判定してしまうことを防止する。 On the other hand, when the state information acquisition results by the state information acquisition unit 131 are in an inverted relationship as shown in Figures 6 and 7, and these acquisition results are obtained a predetermined number of times in a row, the disconnection determination unit 15 determines that a disconnection has occurred in the serial communication line 30. In other words, the disconnection determination unit 15 determines that a disconnection has occurred in the serial communication line 30 when the acquisition result of the state information when accessed around the first direction and the acquisition result of the state information when accessed around the second direction are in an inverted relationship, and the inverted acquisition result is obtained a predetermined number of times in a row. This prevents the disconnection determination unit 15 from erroneously determining that a disconnection has occurred in the serial communication line 30 due to a temporary restart of the device 50 or the influence of noise.

なお、断線判定部15は、状態情報取得部131により図4のような状態情報が取得された後、又は、状態情報取得部131により図6及び図7のような状態情報が取得された後のタイミングで、上記の手法でシリアル通信線30に断線が生じているか否かを判定すればよい。 The disconnection determination unit 15 may determine whether or not a disconnection has occurred in the serial communication line 30 using the above method after the state information acquisition unit 131 acquires state information such as that shown in FIG. 4, or after the state information acquisition unit 131 acquires state information such as that shown in FIGS. 6 and 7.

なお、断線判定部15は、シリアル通信線30の複数個所に断線が生じているか否かを次のように判定してもよい。 The disconnection determination unit 15 may determine whether or not a disconnection has occurred at multiple locations on the serial communication line 30 as follows.

例えば図11に示すように、シリアル通信線30の複数個所(ここでは符号A及び符号Bの2か所)に断線が生じている場合、状態情報取得部131は、当該断線箇所の間に位置するデバイス50については、第1の方向周り又は第2の方向周りのいずれの方向周りにアクセスしても、状態情報を取得できないことが想定される。 For example, as shown in FIG. 11, if breaks occur in multiple locations (here, two locations, marked A and B) in the serial communication line 30, it is expected that the status information acquisition unit 131 will not be able to acquire status information for the device 50 located between the breaks, regardless of whether the device 50 is accessed in the first direction or the second direction.

この場合の情報の取得結果の例を図12に示す。図12Aは第1の方向周りでの状態情報の取得結果を示し、図12Bは第2の方向周りでの状態情報の取得結果を示している。
図12A及び図12Bに示すように、ここではシリアルアドレスが「31」と「32」の2台のデバイス50(デバイスE)については、いずれの方向周りにアクセスしても状態情報の取得に失敗している。また、それぞれのデバイス50の状態情報の取得に失敗する状態が継続する時間を示す「NG継続時間」は60秒となっている。このように、「NG継続時間」が所定時間以上(例えば60秒以上)であり、かつ「NG継続時間」が同じデバイス50が所定台数以上(例えば2台以上)ある場合、断線判定部15は、シリアル通信線30の複数個所に断線が生じていると判定する。この場合の所定時間及び所定台数は、エンジニアにより適宜の値に設定可能である。
An example of the information acquisition result in this case is shown in Fig. 12. Fig. 12A shows the state information acquisition result around the first direction, and Fig. 12B shows the state information acquisition result around the second direction.
As shown in Figures 12A and 12B, for two devices 50 (device E) with serial addresses "31" and "32", acquisition of status information fails in both directions when accessed. The "NG duration" indicating the time during which the state of failure to acquire status information of each device 50 continues is 60 seconds. In this way, when the "NG duration" is a predetermined time or more (e.g., 60 seconds or more) and there are a predetermined number or more (e.g., two or more) of devices 50 with the same "NG duration", the disconnection determination unit 15 determines that disconnections have occurred at multiple points in the serial communication line 30. In this case, the predetermined time and the predetermined number can be set to appropriate values by an engineer.

以上のように、実施の形態2によれば、汎用コントローラ1は、状態情報取得部131による状態情報の取得結果に基づいて、シリアル通信線30に断線が生じたか否かを判定する断線判定部15を備えた。これにより、汎用コントローラ1は、シリアル通信線30に断線が生じたか否かを判定することができる。 As described above, according to the second embodiment, the general-purpose controller 1 includes a disconnection determination unit 15 that determines whether or not a disconnection has occurred in the serial communication line 30 based on the result of acquisition of status information by the status information acquisition unit 131. This allows the general-purpose controller 1 to determine whether or not a disconnection has occurred in the serial communication line 30.

また、断線判定部15は、状態情報取得部131が第1の方向周り又は第2の方向周りのうちいずれか一方の方向周りでアクセスした場合の状態情報の取得結果と、他方の方向周りでアクセスした場合の状態情報の取得結果とが互いに反転しており、かつ当該反転した取得結果が所定回数継続して得られた場合に、シリアル通信線30に断線が生じたと判定する。これにより、断線判定部15は、一時的なデバイス50の再起動もしくはノイズの影響により、シリアル通信線30に断線が生じていると誤判定することを防止できる。 The disconnection determination unit 15 determines that a disconnection has occurred in the serial communication line 30 when the state information acquisition result obtained when the state information acquisition unit 131 accesses the serial communication line 30 in either the first direction or the second direction is inverted from the state information acquisition result obtained when the state information acquisition unit 131 accesses the serial communication line 30 in the other direction, and the inverted acquisition result is obtained a predetermined number of times in succession. This prevents the disconnection determination unit 15 from erroneously determining that a disconnection has occurred in the serial communication line 30 due to a temporary restart of the device 50 or the influence of noise.

また、断線判定部15は、状態情報取得部131が第1の方向周り又は第2の方向周りのいずれの方向周りでアクセスしても状態情報の取得に失敗する状態の継続時間が所定時間以上であり、かつ当該継続時間が同じデバイスが所定台数以上ある場合に、シリアル通信線30に複数の断線が生じたと判定する。これにより、断線判定部15は、シリアル通信線30に複数の断線が生じた場合でも当該複数の断線の発生の有無を適切に判定することができる。 The disconnection determination unit 15 also determines that multiple disconnections have occurred in the serial communication line 30 when the duration of the state in which the state information acquisition unit 131 fails to acquire state information regardless of whether the state information acquisition unit 131 accesses the serial communication line 30 in the first direction or the second direction is equal to or longer than a predetermined time, and there are a predetermined number or more devices with the same duration. This allows the disconnection determination unit 15 to appropriately determine whether multiple disconnections have occurred in the serial communication line 30, even if multiple disconnections have occurred.

実施の形態3.
実施の形態3では、セカンダリデバイス50の一部が操作器で構成されている場合における、操作器と汎用コントローラとの通信例について説明する。
Embodiment 3.
In the third embodiment, an example of communication between an operating device and a general-purpose controller in a case where a part of the secondary device 50 is configured with the operating device will be described.

操作器は、セカンダリデバイス50のうち少なくとも1台により構成される機器であり、エンジニア(ユーザ)からの操作を受け付け、当該操作に応じて自ら汎用コントローラ1及び統合コントローラ80にアクセス可能な機器である。 The controller is a device that is composed of at least one of the secondary devices 50, and is capable of accepting operations from an engineer (user) and accessing the general-purpose controller 1 and the integrated controller 80 by itself in response to the operations.

例えば、操作器は、汎用コントローラ1にアクセスする(アクセス要求を送信する)ことで、汎用コントローラ1が保持している情報を取得して表示部に表示したり、汎用コントローラ1が保持している情報を更新することで、セカンダリデバイス50を間接的に操作する。また、操作器は、汎用コントローラ1を経由して統合コントローラ80にアクセスすることで、統合コントローラ80に記憶されている空調機などの各種機器のスケジュール情報の設定変更を行う。例えば、操作器は、ユーザから空調機の動作時間の延長指示を受け付けた場合に、統合コントローラ80に記憶されている空調機のスケジュール情報を変更するためのアクセス要求を統合コントローラ80に送信する。 For example, the controller accesses the general-purpose controller 1 (sends an access request) to obtain information held by the general-purpose controller 1 and displays it on the display unit, or updates the information held by the general-purpose controller 1, thereby indirectly operating the secondary device 50. The controller also accesses the integrated controller 80 via the general-purpose controller 1 to change the settings of schedule information for various devices such as air conditioners that is stored in the integrated controller 80. For example, when the controller receives an instruction from a user to extend the operating time of the air conditioner, it sends an access request to the integrated controller 80 to change the schedule information for the air conditioner that is stored in the integrated controller 80.

一方で、操作器は、シリアル通信線30に断線が生じているか否かを自ら判定することはできない。そこで、実施の形態3に係る汎用コントローラ1cは、断線判定部15による判定結果に基づいて、自機の第1のポート11と第2のポート12のうちいずれのポートがゲートウェイデバイスであるかを示す情報(ゲートウェイデバイス情報)を生成し、操作器を含むセカンダリデバイス50に送信する。操作器は、ゲートウェイデバイス情報を受信することにより、第1のポート11と第2のポート12のうちのどちらが使用可能なゲートウェイデバイスであるかを認識する。そして、操作器は、当該ゲートウェイデバイス情報が示すゲートウェイデバイスに対し、汎用コントローラ1c及び統合コントローラ80に対するアクセス要求を送信する。 On the other hand, the controller cannot determine by itself whether or not a break has occurred in the serial communication line 30. Therefore, the general-purpose controller 1c according to the third embodiment generates information (gateway device information) indicating which of its own first port 11 and second port 12 is the gateway device based on the determination result by the break determination unit 15, and transmits the information to the secondary device 50 including the controller. By receiving the gateway device information, the controller recognizes which of the first port 11 and second port 12 is the usable gateway device. Then, the controller transmits an access request to the general-purpose controller 1c and the integrated controller 80 to the gateway device indicated by the gateway device information.

図13は、実施の形態3に係る汎用コントローラ1cの構成例を示す図である。実施の形態3に係る汎用コントローラ1cは、実施の形態2に係る汎用コントローラ1bに対し、送信部16、受信部17、応答部18、及び転送部19が追加されている。汎用コントローラ1cのその他の構成については、実施の形態2に係る汎用コントローラ1bと同様であるため、同一の符号を付してその説明を省略する。 Figure 13 is a diagram showing an example of the configuration of a general-purpose controller 1c according to the third embodiment. The general-purpose controller 1c according to the third embodiment is obtained by adding a transmitting unit 16, a receiving unit 17, a responding unit 18, and a transferring unit 19 to the general-purpose controller 1b according to the second embodiment. The other configuration of the general-purpose controller 1c is similar to that of the general-purpose controller 1b according to the second embodiment, so the same reference numerals are used and the description thereof is omitted.

送信部16は、断線判定部15による判定結果に基づいて、上述のゲートウェイデバイス情報を生成し、当該情報を操作器を含むセカンダリデバイス50に送信する。 The transmission unit 16 generates the above-mentioned gateway device information based on the determination result by the disconnection determination unit 15, and transmits the information to the secondary device 50 including the controller.

具体的には、送信部16は、断線判定部15により、シリアル通信線30に断線が生じていないと判定された場合、BACnetに規定されている「I-AM-ROUTER」サービスにより、第1のポート11又は第2のポート12のいずれかがゲートウェイデバイスである旨のゲートウェイデバイス情報を生成し、当該生成した情報をブロードキャスト配信することで、セカンダリデバイス50に一斉送信する。もし優先的に使用するポートが設定されていれば、送信部16は、当該優先的に使用するポートがゲートウェイデバイスである旨の情報を生成してもよい。 Specifically, when the disconnection determination unit 15 determines that there is no disconnection in the serial communication line 30, the transmission unit 16 generates gateway device information indicating that either the first port 11 or the second port 12 is a gateway device by the "I-AM-ROUTER" service defined in BACnet, and transmits the generated information simultaneously to the secondary devices 50 by broadcasting it. If a preferential port is set, the transmission unit 16 may generate information indicating that the preferential port is a gateway device.

また、送信部16は、断線判定部15により、シリアル通信線30に断線が生じていると判定された場合、BACnetに規定されている「I-AM-ROUTER」サービスにより、第1のポート11がゲートウェイデバイスである旨の情報(第1のゲートウェイデバイス情報)と、第2のポート12がゲートウェイデバイスである旨の情報(第2のゲートウェイデバイス情報)とをそれぞれ生成する。そして、送信部16は、状態情報取得部131が第1の方向周りにアクセスした場合に状態情報を取得できたセカンダリデバイス50に対しては、第1のゲートウェイデバイス情報を第1のポート11からブロードキャスト配信で一斉送信し、状態情報取得部131が第2の方向周りにアクセスした場合に状態情報を取得できたセカンダリデバイス50に対しては、第2のゲートウェイデバイス情報を第2のポート12からブロードキャスト配信で一斉送信する。 When the disconnection determination unit 15 determines that a disconnection has occurred in the serial communication line 30, the transmission unit 16 generates information indicating that the first port 11 is a gateway device (first gateway device information) and information indicating that the second port 12 is a gateway device (second gateway device information) by the "I-AM-ROUTER" service defined in BACnet. The transmission unit 16 then broadcasts the first gateway device information from the first port 11 to the secondary devices 50 from which the status information acquisition unit 131 was able to acquire status information when it accessed in the first direction, and broadcasts the second gateway device information from the second port 12 to the secondary devices 50 from which the status information acquisition unit 131 was able to acquire status information when it accessed in the second direction.

なお、送信部16によるゲートウェイデバイス情報の生成及び送信は、断線判定部15によりシリアル通信線30に断線が生じているか否かの判定が行われた後のタイミングで行われればよい。 The generation and transmission of the gateway device information by the transmission unit 16 may be performed after the disconnection determination unit 15 has determined whether or not a disconnection has occurred in the serial communication line 30.

受信部17は、操作器の後述するアクセス部62から送信された、自機又は統合コントローラ80に対するアクセス要求を受信する。 The receiving unit 17 receives an access request to the controller itself or to the integrated controller 80, which is sent from the access unit 62 of the controller, which will be described later.

応答部18は、受信部17により受信されたアクセス要求が、自機に対する要求であった場合に、当該アクセス要求に応答する。例えば、応答部18は、受信部17により受信されたアクセス要求が、自機に対する温度及び湿度、並びにCO2濃度等の取得要求であった場合、その応答として、要求された温度及び湿度、並びにCO2濃度等の情報を操作器60に送信する。 When the access request received by the receiving unit 17 is a request for the device itself, the responding unit 18 responds to the access request. For example, when the access request received by the receiving unit 17 is a request to acquire temperature, humidity, CO2 concentration, etc. for the device itself, the responding unit 18 transmits the requested information such as temperature, humidity, and CO2 concentration to the controller 60 in response.

転送部19は、受信部17により受信されたアクセス要求が統合コントローラ80に対するものであった場合に、当該アクセス要求を通信線70を介して統合コントローラ80に転送する。 When the access request received by the receiving unit 17 is directed to the integrated controller 80, the transfer unit 19 transfers the access request to the integrated controller 80 via the communication line 70.

次に、操作器の構成例を図14に示す。図14において、符号60は操作器を示している。操作器60は、図14に示すように、受信部61と、アクセス部62と、記憶部63と、表示部64とを備えている。 Next, an example of the configuration of the controller is shown in FIG. 14. In FIG. 14, reference numeral 60 indicates the controller. As shown in FIG. 14, the controller 60 includes a receiving unit 61, an access unit 62, a storage unit 63, and a display unit 64.

受信部61は、汎用コントローラ1cの送信部16から送信されたゲートウェイデバイス情報を受信する。また、受信部61は、汎用コントローラ1cの応答部18から送信された情報、すなわち、アクセス部62からのアクセス要求に対する応答として送信された情報(例えば温度及び湿度、並びにCO2濃度等の情報)を受信する。受信部61は、受信したゲートウェイデバイス情報、及びアクセス部62からのアクセス要求に対する応答として受信した情報を記憶部63に記憶してもよい。 The receiving unit 61 receives gateway device information transmitted from the transmitting unit 16 of the general-purpose controller 1c. The receiving unit 61 also receives information transmitted from the responding unit 18 of the general-purpose controller 1c, i.e., information transmitted in response to an access request from the accessing unit 62 (e.g., information on temperature, humidity, and CO2 concentration). The receiving unit 61 may store the received gateway device information and information received in response to an access request from the accessing unit 62 in the memory unit 63.

アクセス部62は、例えば表示部64を介してユーザから受け付けた指示に応じてアクセス要求を生成し、生成したアクセス要求を汎用コントローラ1cに対して送信する。その際、アクセス部62は、受信部61により受信されたゲートウェイデバイス情報が示す、汎用コントローラ1cのゲートウェイデバイスに対して、アクセス要求を送信する。送信されたアクセス要求は、汎用コントローラ1cのゲートウェイデバイスを介して、汎用コントローラ1cの受信部17により受信される。 The access unit 62 generates an access request in response to an instruction received from a user via, for example, the display unit 64, and transmits the generated access request to the general-purpose controller 1c. At that time, the access unit 62 transmits the access request to the gateway device of the general-purpose controller 1c indicated by the gateway device information received by the receiving unit 61. The transmitted access request is received by the receiving unit 17 of the general-purpose controller 1c via the gateway device of the general-purpose controller 1c.

記憶部63は、操作器60が使用する各種情報を記憶する。例えば、記憶部63は、受信部61により受信されたゲートウェイデバイス情報が示す、汎用コントローラ1cのゲートウェイデバイス、及び、受信部61が汎用コントローラ1cの応答部18から受信した情報を記憶する。記憶部63は、例えばHDD(Hard Disc Drive)、SSD(Solid State Drive)、又はメモリ等で構成される。なお、図14では、記憶部63が操作器60の内部に設けられた場合を示しているが、記憶部63は操作器60の外部に設けられていてもよい。 The storage unit 63 stores various information used by the controller 60. For example, the storage unit 63 stores the gateway device of the general-purpose controller 1c indicated by the gateway device information received by the receiver 61, and information received by the receiver 61 from the response unit 18 of the general-purpose controller 1c. The storage unit 63 is composed of, for example, a hard disc drive (HDD), a solid state drive (SSD), or a memory. Note that while FIG. 14 shows a case where the storage unit 63 is provided inside the controller 60, the storage unit 63 may be provided outside the controller 60.

表示部64は、受信部61が汎用コントローラ1cの応答部18から受信した情報(例えば温度及び湿度、並びにCO2濃度等)を表示する。また、表示部64は、空調機のON/OFFを操作するための画面、あるいは空調機のスケジュール情報を変更するための画面等の各種画面を表示する。 The display unit 64 displays information (e.g., temperature, humidity, and CO2 concentration) received by the receiver 61 from the response unit 18 of the general-purpose controller 1c. The display unit 64 also displays various screens, such as a screen for turning the air conditioner on and off, or a screen for changing the schedule information for the air conditioner.

このように、アクセス部62は、アクセス要求を送信する際、受信部61により受信されたゲートウェイデバイス情報が示すゲートウェイデバイスに対してアクセス要求を送信する。言い換えれば、アクセス部62は、ゲートウェイデバイス情報が示すゲートウェイデバイスが変化した場合でも、その変化に応じて、汎用コントローラ1cに対するアクセス経路を適切に切り替えることができる。これにより、操作器60は、シリアル通信線30に断線が生じている場合でも、アクセス経路を適切に切り替えて動作を継続することができる。 In this way, when the access unit 62 sends an access request, it sends the access request to the gateway device indicated by the gateway device information received by the receiving unit 61. In other words, even if the gateway device indicated by the gateway device information changes, the access unit 62 can appropriately switch the access path to the general-purpose controller 1c in response to the change. This allows the controller 60 to continue operation by appropriately switching the access path even if a break occurs in the serial communication line 30.

以上のように、実施の形態3によれば、汎用コントローラ1cは、断線判定部15による判定結果に基づいて、第1のポート11又は第2のポート12のうちいずれのポートがゲートウェイデバイスであるかを示す情報を生成し、デバイス50に送信する送信部16を備える。
また、デバイス50のうち少なくとも1台は、送信部16から送信された情報を受信する受信部61と、汎用コントローラ1cに対するアクセス要求を、受信部61により受信された情報が示すゲートウェイデバイスに対して送信するアクセス部62と、を備えた操作器60で構成される。汎用コントローラ1cは、ゲートウェイデバイスを介して、アクセス部62から送信されたアクセス要求を受信する。
これにより、汎用コントローラ1cは、第1のポート11又は第2のポート12のうちいずれのポートがゲートウェイデバイスであるかをデバイス50に通知することができる。また、操作器60は、ゲートウェイデバイス情報が示すゲートウェイデバイスが変化した場合でも、その変化に応じて汎用コントローラ1cに対するアクセス経路を適切に切り替えることができ、シリアル通信線30に断線が生じている場合でも動作を継続することができる。
As described above, according to the third embodiment, the general-purpose controller 1 c is provided with a transmitting unit 16 that generates information indicating which of the first port 11 or the second port 12 is a gateway device based on the determination result by the disconnection determination unit 15, and transmits the information to the device 50.
At least one of the devices 50 is configured with an operator 60 including a receiving unit 61 that receives information transmitted from the transmitting unit 16, and an access unit 62 that transmits an access request for the general-purpose controller 1c to a gateway device indicated by the information received by the receiving unit 61. The general-purpose controller 1c receives the access request transmitted from the access unit 62 via the gateway device.
This allows the general-purpose controller 1c to notify the device 50 of which of the first port 11 or the second port 12 is the gateway device. Even if the gateway device indicated by the gateway device information changes, the operation unit 60 can appropriately switch the access path to the general-purpose controller 1c in response to the change, and can continue operation even if a break occurs in the serial communication line 30.

また、アクセス部62は、シリアル通信線30とは異なる通信線70を介して汎用コントローラ1cに接続された統合コントローラ80に対するアクセス要求を、受信部61により受信された情報が示すゲートウェイデバイスに対して送信し、汎用コントローラ1cは、ゲートウェイデバイスに対して送信されたアクセス要求が統合コントローラ80に対するアクセス要求であった場合に、当該アクセス要求を異なる通信線70を介して統合コントローラ80に転送する転送部19を備える。これにより、汎用コントローラ1cは、操作器60から統合コントローラ80に対するアクセス要求を適切に統合コントローラ80に転送することができる。 The access unit 62 also transmits an access request for the integrated controller 80 connected to the general-purpose controller 1c to the gateway device indicated by the information received by the receiving unit 61 via a communication line 70 different from the serial communication line 30, and the general-purpose controller 1c includes a transfer unit 19 that transfers the access request to the integrated controller 80 via the different communication line 70 when the access request transmitted to the gateway device is an access request for the integrated controller 80. This allows the general-purpose controller 1c to appropriately transfer the access request for the integrated controller 80 from the operation device 60 to the integrated controller 80.

実施の形態4.
実施の形態1~3では、シリアル通信線30により構成されたネットワークの経路を冗長化する例を説明した。実施の形態4では、このような経路の冗長化に加え、汎用コントローラ自体を冗長化(二重化)する例を説明する。
Embodiment 4.
In the first to third embodiments, an example has been described in which the paths of a network configured by the serial communication line 30 are made redundant. In the fourth embodiment, in addition to making the paths redundant, an example in which the general-purpose controller itself is made redundant (dualized) will be described.

図15は、実施の形態4に係る冗長システム100の構成例を示す図である。実施の形態4に係る冗長システム100は、2台の汎用コントローラ1d、1eを備えている。また、これらのコントローラは、シリアル通信線40及び45により接続されている。また、汎用コントローラ1d及び1eは、通信線70を介して互いに接続されるとともに、統合コントローラ80とも接続されている。 Figure 15 is a diagram showing an example of the configuration of a redundant system 100 according to embodiment 4. The redundant system 100 according to embodiment 4 includes two general-purpose controllers 1d and 1e. These controllers are connected by serial communication lines 40 and 45. The general-purpose controllers 1d and 1e are also connected to each other and to an integrated controller 80 via a communication line 70.

汎用コントローラ1d及び1eは、いずれか一方が現用系として動作し、他方が待機系として動作する。ここでは、説明を分かりやすくするため、汎用コントローラ1dが現用系として動作し、汎用コントローラ1eが待機系として動作するものとする。また、現用系として動作する汎用コントローラ1dを「現用系のコントローラ1d」といい、待機系として動作する汎用コントローラ1eを「待機系のコントローラ1e」という。なお、現用系のコントローラ1dと待機系のコントローラ1eとは、例えば通信線70を介して互いの保持情報が同期されている。 One of the general-purpose controllers 1d and 1e operates as the active system, and the other operates as the standby system. For ease of understanding, it is assumed here that the general-purpose controller 1d operates as the active system, and the general-purpose controller 1e operates as the standby system. The general-purpose controller 1d operating as the active system is referred to as the "active system controller 1d," and the general-purpose controller 1e operating as the standby system is referred to as the "standby system controller 1e." The information held by the active system controller 1d and the standby system controller 1e is synchronized with each other, for example, via a communication line 70.

また、現用系のコントローラ1d及び待機系のコントローラ1eの構成例は、図2に示す実施の形態1に係る汎用コントローラ1の構成例と同様であるが、ここでは図2に示す各部の名称にd又はeを付して、各コントローラ1d及び1eの構成例を説明する。 The configuration examples of the active controller 1d and the standby controller 1e are the same as the configuration example of the general-purpose controller 1 according to the first embodiment shown in FIG. 2, but here, the configuration examples of the controllers 1d and 1e are explained by adding d or e to the names of the parts shown in FIG. 2.

現用系のコントローラ1dは、第1のポート11dと、第2のポート12dと、通信部13d(状態情報取得部131d、及び保持情報取得部132d)と、記憶部14dとを備えている。 The active system controller 1d has a first port 11d, a second port 12d, a communication unit 13d (a status information acquisition unit 131d and a retained information acquisition unit 132d), and a memory unit 14d.

待機系のコントローラ1eは、第1のポート11eと、第2のポート12eと、通信部13e(状態情報取得部131e、及び保持情報取得部132e)と、記憶部14eとを備えている。 The standby controller 1e includes a first port 11e, a second port 12e, a communication unit 13e (a status information acquisition unit 131e and a retained information acquisition unit 132e), and a memory unit 14e.

図15に示すように、冗長システム100では、シリアル通信線30(第1のシリアル通信線)の一方の端部が、現用系のコントローラ1dの第1のポート11dに接続され、シリアル通信線30の他方の端部が、待機系のコントローラ1eの第1のポート11eに接続されている。つまり、冗長システム100では、互いの汎用コントローラの第1のポート同士が、シリアル通信線30で接続されている。 As shown in FIG. 15, in the redundant system 100, one end of the serial communication line 30 (first serial communication line) is connected to the first port 11d of the active controller 1d, and the other end of the serial communication line 30 is connected to the first port 11e of the standby controller 1e. In other words, in the redundant system 100, the first ports of the general-purpose controllers are connected to each other by the serial communication line 30.

また、現用系のコントローラ1dの第2のポート12dと、待機系のコントローラ1eの第2のポート12eとは、シリアル通信線40(第2のシリアル通信線)で接続されている。これにより、冗長システム100では、2台のコントローラ1d、1eと、セカンダリデバイス50と、シリアル通信線30及びシリアル通信線40とによるひとつの大きなリング状のネットワークが構成されている。 The second port 12d of the active controller 1d and the second port 12e of the standby controller 1e are connected by a serial communication line 40 (second serial communication line). As a result, in the redundant system 100, one large ring-shaped network is formed by the two controllers 1d and 1e, the secondary device 50, and the serial communication lines 30 and 40.

なお、シリアル通信線45は、2台のコントローラ1d、1eが正常に動作しているかを互いに確認するために使用される通信線である。シリアル通信線45は、現用系のコントローラ1dの連絡ポートと、待機系のコントローラ1eの連絡ポートとを接続しており、各コントローラ1d、1eは、このシリアル通信線45を介して、互いが正常に動作しているか(異常が発生していないか)を確認している。 The serial communication line 45 is used to check whether the two controllers 1d, 1e are operating normally. The serial communication line 45 connects the communication port of the active controller 1d to the communication port of the standby controller 1e, and each of the controllers 1d, 1e checks whether the other is operating normally (whether any abnormalities have occurred) via this serial communication line 45.

冗長システム100では、現用系のコントローラ1d及び待機系のコントローラ1eに対するシリアルアドレスが以下のように割り当てられる。すなわち、現用系のコントローラ1dの第1のポート11d(1CH)に対して、シリアルアドレス「1」、待機系のコントローラ1eの第2のポート12e(2CH)に対して、シリアルアドレス「0」が割り当てられる。また、現用系のコントローラ1dの第2のポート12d(2CH)に対して、シリアルアドレス「127」、待機系のコントローラ1eの第1のポート11e(1CH)に対して、シリアルアドレス「126」が割り当てられる。このように、シリアルアドレスは、2台のコントローラで、それぞれのチャネルに対して別のアドレスが割り当てられる。なお、現用系のコントローラ1dは、上記のように2つのチャネル(1CH及び2CH)を有しているが、それぞれのチャネルは渡りの接続口を2個有しており、これら2個の接続口は装置内部で物理的にブリッジ接続されている。また、待機系のコントローラ1eも同様に、それぞれのチャネルが渡りの接続口を2個有しており、これら2個の接続口は装置内部で物理的にブリッジ接続されている。また、セカンダリデバイス50に対しては、実施の形態1と同様に、デイジーチェーンの並びに準じてエンジニアにより予めシリアルアドレス「2」「125」が割り当てられる。 In the redundant system 100, serial addresses are assigned to the active controller 1d and the standby controller 1e as follows. That is, a serial address "1" is assigned to the first port 11d (1CH) of the active controller 1d, and a serial address "0" is assigned to the second port 12e (2CH) of the standby controller 1e . A serial address "127" is assigned to the second port 12d (2CH) of the active controller 1d, and a serial address "126" is assigned to the first port 11e (1CH) of the standby controller 1e. In this way, different serial addresses are assigned to the channels of the two controllers. The active controller 1d has two channels (1CH and 2CH) as described above, and each channel has two connection ports, and these two connection ports are physically bridge-connected inside the device. Similarly, the standby controller 1e also has two connection ports for each channel, and these two connection ports are physically bridge-connected inside the device. As in the first embodiment, the secondary devices 50 are assigned serial addresses "2" to "125" in advance by an engineer in accordance with the arrangement of the daisy chain.

そして、冗長システム100では、現用系のコントローラ1dからみた場合の第1の方向周り及び第2の方向周りは以下のようになる。すなわち、現用系のコントローラ1dの第1のポート11dから、待機系のコントローラ1eの第1のポート11e、待機系のコントローラ1eの第2のポート12e、及びシリアル通信線40を経由して、現用系のコントローラ1dの第2のポート12dに向かう方向が第1の方向周り(図15の符号P)となる。 In the redundant system 100, the first and second directions as viewed from the active controller 1d are as follows. That is, the direction from the first port 11d of the active controller 1d to the second port 12d of the active controller 1d via the first port 11e of the standby controller 1e, the second port 12e of the standby controller 1e, and the serial communication line 40 is the first direction (symbol P in FIG. 15).

また、これとは逆に、現用系のコントローラ1dの第2のポート12dから、シリアル通信線40、待機系のコントローラ1eの第2のポート12e、及び待機系のコントローラ1eの第1のポート11eを経由して、現用系のコントローラ1dの第1のポート11dに向かう方向が第2の方向周り(図15の符号Q)となる。なお、待機系のコントローラ1eは待機系として動作しているが、現用系のコントローラ1dとの間での情報の送受信は可能である。 Conversely, the direction from the second port 12d of the active controller 1d via the serial communication line 40, the second port 12e of the standby controller 1e, and the first port 11e of the standby controller 1e toward the first port 11d of the active controller 1d is the second rotation direction (symbol Q in FIG. 15). Note that although the standby controller 1e operates as the standby system, it is possible to send and receive information to and from the active controller 1d.

冗長システム100では、通常時は上記のように、現用系のコントローラ1dが現用系として動作する。この場合、現用系のコントローラ1dの通信部(現用系側通信部)13dは、上記第1の方向周り又は第2の方向周りにデバイス50にアクセスし、当該デバイス50とシリアル通信を行う。ここで、現用系のコントローラ1dに何らかの異常が発生した場合、現用系のコントローラ1dは自機に異常が発生した旨を、シリアル通信線45を介して待機系のコントローラ1eに通知する。 In the redundant system 100, the active controller 1d normally operates as the active system as described above. In this case, the communication unit (active system communication unit) 13d of the active controller 1d accesses the device 50 in the first direction or the second direction and performs serial communication with the device 50. If an abnormality occurs in the active controller 1d, the active controller 1d notifies the standby controller 1e of the occurrence of an abnormality in itself via the serial communication line 45.

この通知を受信した待機系のコントローラ1eは、速やかに待機系から現用系に切り替わり、以降は現用系として動作する。すなわち、待機系のコントローラ1eの通信部(待機系側通信部)13eは、自機の第1のポート11eから、現用系のコントローラ1dの第1のポート11d、現用系のコントローラ1dの第2のポート12d、及びシリアル通信線40を経由して、自機の第2のポート12eに向かう第2の方向周り(図15の符号Q)、又は、自機の第2のポート12eから、シリアル通信線40、現用系のコントローラ1dの第2のポート12d、及び現用系のコントローラ1dの第1のポート11dを経由して、自機の第1のポート11eに向かう第1の方向周り(図15の符号P)にデバイス50にアクセスし、当該デバイス50とシリアル通信を行う。これにより、冗長システム100dでは、現用系のコントローラ1dに異常が発生した場合でも、システム全体としての動作を継続することができ、システムの信頼性が向上する。 The standby controller 1e that receives this notification quickly switches from the standby controller to the active controller, and thereafter operates as the active controller. That is, the communication unit (standby controller communication unit) 13e of the standby controller 1e accesses the device 50 in the second direction (symbol Q in FIG. 15) from its own first port 11e via the first port 11d of the active controller 1d, the second port 12d of the active controller 1d, and the serial communication line 40 toward its own second port 12e, or in the first direction (symbol P in FIG. 15) from its own second port 12e via the serial communication line 40, the second port 12d of the active controller 1d, and the first port 11d of the active controller 1d to its own first port 11e, and performs serial communication with the device 50. As a result, in the redundant system 100d, even if an abnormality occurs in the active controller 1d, the system as a whole can continue to operate, improving system reliability.

なお、実施の形態4に係る冗長システム100は、従来の熱源コントローラに採用されている二重化技術を汎用コントローラに応用したものである。熱源コントローラは、特に熱源設備を制御するためのコントローラであり、例えば図16のように、現用系の熱源コントローラ200aと待機系の熱源コントローラ200bとを、イーサネットによる高速通信用のI/Oモジュール250で接続することにより、二重化することが可能なコントローラである。 The redundant system 100 according to the fourth embodiment is an application of the duplication technology used in conventional heat source controllers to a general-purpose controller. The heat source controller is a controller for controlling heat source equipment in particular, and can be duplicated by connecting an active heat source controller 200a and a standby heat source controller 200b with an I/O module 250 for high-speed communication via Ethernet, as shown in FIG. 16, for example.

実施の形態4に係る冗長システム100は、この熱源コントローラの二重化技術の考え方を汎用コントローラに応用したものであるが、実施の形態4に係る冗長システム100では、二重化した汎用コントローラ1d、1eをシリアル通信線40で接続することで、高速通信用のI/Oモジュール250のようなデバイスを付加することなく、より安価な構成で二重化機能を実現することができる。 The redundant system 100 according to the fourth embodiment applies the concept of the heat source controller duplication technology to a general-purpose controller. In the redundant system 100 according to the fourth embodiment, the duplicated general-purpose controllers 1d and 1e are connected by a serial communication line 40, so that the duplication function can be realized with a less expensive configuration without adding a device such as an I/O module 250 for high-speed communication.

以上のように、実施の形態4によれば、冗長システム100は、現用系のコントローラ1dと、待機系のコントローラ1eと、シリアル通信線30に接続された1台以上のデバイス50と、を含んで構成される。現用系のコントローラ1dは、シリアル通信線30の一方の端部が接続される第1のポート11dと、シリアル通信線30とは異なるシリアル通信線40の一方の端部が接続される第2のポート12dと、を備える。待機系のコントローラ1eは、シリアル通信線30の他方の端部が接続される第1のポート11eと、シリアル通信線40の他方の端部が接続される第2のポート12eと、を備える。現用系のコントローラ1dは、自機の第1のポート11dから、待機系のコントローラ1eの第1のポート11e、待機系のコントローラ1eの第2のポート12e、及びシリアル通信線40を経由して、自機の第2のポート12dに向かう第1の方向周り、又は、自機の第2のポート12dから、シリアル通信線40、待機系のコントローラ1eの第2のポート12e、及び待機系のコントローラ1eの第1のポート11eを経由して、自機の第1のポート11dに向かう第2の方向周りにデバイス50にアクセスし、当該デバイス50とシリアル通信可能な現用系側通信部13dを備える。待機系のコントローラ1eは、自機の第1のポート11eから、現用系のコントローラ1dの第1のポート11d、現用系のコントローラ1dの第2のポート12d、及びシリアル通信線40を経由して、自機の第2のポート12eに向かう第2の方向周り、又は、自機の第2のポート12eから、シリアル通信線40、現用系のコントローラ1dの第2のポート12d、及び現用系のコントローラ1dの第1のポート11dを経由して、自機の第1のポート11eに向かう第1の方向周りにデバイス50にアクセスし、当該デバイス50とシリアル通信可能な待機系側通信部13eを備える。これにより、冗長システム100は、シリアル通信線30,40により構成されたネットワークの経路を冗長化することができるとともに、現用系のコントローラ1dに異常が発生した場合でも、システム全体としての動作を継続することができ、システムの信頼性が向上する。 As described above, according to the fourth embodiment, the redundant system 100 includes an active controller 1d, a standby controller 1e, and one or more devices 50 connected to the serial communication line 30. The active controller 1d includes a first port 11d to which one end of the serial communication line 30 is connected, and a second port 12d to which one end of a serial communication line 40 different from the serial communication line 30 is connected. The standby controller 1e includes a first port 11e to which the other end of the serial communication line 30 is connected, and a second port 12e to which the other end of the serial communication line 40 is connected. The active system controller 1d is equipped with an active system side communication unit 13d that can access a device 50 in a first direction from its own first port 11d, via the first port 11e of the standby system controller 1e, the second port 12e of the standby system controller 1e, and the serial communication line 40, toward its own second port 12d, or in a second direction from its own second port 12d, via the serial communication line 40, the second port 12e of the standby system controller 1e, and the first port 11e of the standby system controller 1e, toward its own first port 11d, and can communicate serially with the device 50. The standby controller 1e has a standby communication unit 13e that can access the device 50 in a second direction from its first port 11e to its second port 12e via the first port 11d of the active controller 1d, the second port 12d of the active controller 1d, and the serial communication line 40, or in a first direction from its second port 12e to its first port 11e via the serial communication line 40, the second port 12d of the active controller 1d, and the first port 11d of the active controller 1d, and can communicate serially with the device 50. As a result, the redundant system 100 can make the network path formed by the serial communication lines 30 and 40 redundant, and can continue to operate as a whole system even if an abnormality occurs in the active controller 1d, improving the reliability of the system.

なお、本願発明はその発明の範囲内において、各実施の形態の自由な組合わせ、或いは各実施の形態の任意の構成要素の変形、若しくは各実施の形態において任意の構成要素の省略が可能である。例えば、実施の形態4に係る冗長システムに対し、実施の形態2及び実施の形態3で説明した構成を組み合わせてもよい。 Note that, within the scope of the present invention, the embodiments may be freely combined, any of the components of each embodiment may be modified, or any of the components of each embodiment may be omitted. For example, the redundant system according to embodiment 4 may be combined with the configurations described in embodiments 2 and 3.

1、1b、1c 汎用コントローラ(第1のコントローラ)
1d 汎用コントローラ(現用系のコントローラ)
1e 汎用コントローラ(待機系のコントローラ)
11、11d、11e 第1のポート
12、12d、12e 第2のポート
13 通信部
13d 現用系側通信部
13e 待機系側通信部
14 記憶部
15 断線判定部
16 送信部
17 受信部
18 応答部
19 転送部
30、40、45 シリアル通信線
50 セカンダリデバイス
60 操作器
61 受信部
62 アクセス部
63 記憶部
64 表示部
70 通信線
80 統合コントローラ(第2のコントローラ)
100 冗長システム
131 状態情報取得部
132 保持情報取得部
P 第1の方向周り
Q 第2の方向周り
1, 1b, 1c General-purpose controller (first controller)
1d General-purpose controller (current system controller)
1e General-purpose controller (standby controller)
11, 11d, 11e First port 12, 12d, 12e Second port 13 Communication unit 13d Active system communication unit 13e Standby system communication unit 14 Memory unit 15 Disconnection determination unit 16 Transmission unit 17 Reception unit 18 Response unit 19 Transfer unit 30, 40, 45 Serial communication line 50 Secondary device 60 Operation unit 61 Reception unit 62 Access unit 63 Memory unit 64 Display unit 70 Communication line 80 Integrated controller (second controller)
100 Redundancy system 131 Status information acquisition unit 132 Retention information acquisition unit P First direction Q Second direction

Claims (8)

第1のコントローラと、
シリアル通信線により前記第1のコントローラにリング状にデイジーチェーン接続された1台以上のデバイスと、を含んで構成され、
前記第1のコントローラは、
前記シリアル通信線の一方の端部が接続される第1のポートと、
前記シリアル通信線の他方の端部が接続される第2のポートと、
前記第1のポートから前記第2のポートに向かう第1の方向周り、又は前記第2のポートから前記第1のポートに向かう第2の方向周りに前記デバイスにアクセスしてシリアル通信可能な通信部と、
を備え
前記通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、
前記状態情報取得部は、
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、
前記第1のコントローラは、
前記状態情報取得部による状態情報の取得結果に基づいて、前記シリアル通信線に断線が生じたか否かを判定する断線判定部を備え、
前記断線判定部は、
前記状態情報取得部が前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りでアクセスした場合の状態情報の取得結果と、他方の方向周りでアクセスした場合の状態情報の取得結果とが互いに反転しており、かつ当該反転した取得結果が所定回数継続して得られた場合に、前記シリアル通信線に断線が生じたと判定することを特徴とする冗長システム。
A first controller;
one or more devices daisy-chained in a ring shape to the first controller by a serial communication line;
The first controller includes:
a first port to which one end of the serial communication line is connected;
a second port to which the other end of the serial communication line is connected;
a communication unit capable of accessing the device and performing serial communication in a first direction from the first port to the second port or in a second direction from the second port to the first port;
Equipped with
the communication unit includes a status information acquisition unit that acquires status information of the device through serial communication;
The state information acquisition unit
When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
The first controller includes:
a disconnection determination unit that determines whether or not a disconnection has occurred in the serial communication line based on a result of acquisition of the status information by the status information acquisition unit;
The disconnection determination unit is
A redundancy system characterized in that the status information acquisition result when the status information acquisition unit accesses around either the first direction or the second direction is inverted to the status information acquisition result when the status information acquisition unit accesses around the other direction, and when the inverted acquisition result is obtained continuously a predetermined number of times, it is determined that a break has occurred in the serial communication line .
第1のコントローラと、A first controller;
シリアル通信線により前記第1のコントローラにリング状にデイジーチェーン接続された1台以上のデバイスと、を含んで構成され、one or more devices daisy-chained in a ring shape to the first controller by a serial communication line;
前記第1のコントローラは、The first controller includes:
前記シリアル通信線の一方の端部が接続される第1のポートと、a first port to which one end of the serial communication line is connected;
前記シリアル通信線の他方の端部が接続される第2のポートと、a second port to which the other end of the serial communication line is connected;
前記第1のポートから前記第2のポートに向かう第1の方向周り、又は前記第2のポートから前記第1のポートに向かう第2の方向周りに前記デバイスにアクセスしてシリアル通信可能な通信部と、a communication unit capable of accessing the device and performing serial communication in a first direction from the first port to the second port or in a second direction from the second port to the first port;
を備え、Equipped with
前記通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、the communication unit includes a status information acquisition unit that acquires status information of the device through serial communication;
前記状態情報取得部は、The state information acquisition unit
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
前記第1のコントローラは、The first controller includes:
前記状態情報取得部による状態情報の取得結果に基づいて、前記シリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the serial communication line based on a result of acquisition of the status information by the status information acquisition unit;
前記断線判定部は、The disconnection determination unit is
前記状態情報取得部が前記第1の方向周り又は前記第2の方向周りのいずれの方向周りでアクセスしても状態情報の取得に失敗する状態の継続時間が所定時間以上であり、かつ当該継続時間が同じデバイスが所定台数以上ある場合に、前記シリアル通信線に複数の断線が生じたと判定することを特徴とする冗長システム。A redundancy system characterized by determining that multiple breaks have occurred in the serial communication line when the duration of a state in which the status information acquisition unit fails to acquire status information regardless of whether it accesses the status information acquisition unit in the first direction or the second direction is greater than or equal to a predetermined time, and when there are a predetermined number or more devices with the same duration.
第1のコントローラと、A first controller;
シリアル通信線により前記第1のコントローラにリング状にデイジーチェーン接続された1台以上のデバイスと、を含んで構成され、one or more devices daisy-chained in a ring shape to the first controller by a serial communication line;
前記第1のコントローラは、The first controller includes:
前記シリアル通信線の一方の端部が接続される第1のポートと、a first port to which one end of the serial communication line is connected;
前記シリアル通信線の他方の端部が接続される第2のポートと、a second port to which the other end of the serial communication line is connected;
前記第1のポートから前記第2のポートに向かう第1の方向周り、又は前記第2のポートから前記第1のポートに向かう第2の方向周りに前記デバイスにアクセスしてシリアル通信可能な通信部と、a communication unit capable of accessing the device and performing serial communication in a first direction from the first port to the second port or in a second direction from the second port to the first port;
を備え、Equipped with
前記通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、the communication unit includes a status information acquisition unit that acquires status information of the device through serial communication;
前記状態情報取得部は、The state information acquisition unit
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
前記第1のコントローラは、The first controller includes:
前記状態情報取得部による状態情報の取得結果に基づいて、前記シリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the serial communication line based on a result of acquisition of the status information by the status information acquisition unit;
前記第1のコントローラは、The first controller includes:
前記断線判定部による判定結果に基づいて、前記第1のポート又は前記第2のポートのうちいずれのポートがゲートウェイデバイスであるかを示す情報を生成し、当該生成した情報を前記デバイスに送信する送信部を備え、a transmission unit that generates information indicating which of the first port and the second port is a gateway device based on a determination result by the disconnection determination unit, and transmits the generated information to the device;
前記デバイスのうち少なくとも1台は、At least one of the devices
前記送信部から送信された情報を受信する受信部と、a receiving unit for receiving the information transmitted from the transmitting unit;
前記第1のコントローラに対するアクセス要求を、前記受信部により受信された情報が示すゲートウェイデバイスに対して送信するアクセス部と、を備えた操作器で構成され、an access unit that transmits an access request for the first controller to a gateway device indicated by the information received by the receiving unit,
前記第1のコントローラは、The first controller includes:
前記ゲートウェイデバイスを介して、前記アクセス部から送信されたアクセス要求を受信することを特徴とする冗長システム。A redundant system, comprising: a gateway device that receives an access request transmitted from the access unit;
前記操作器のアクセス部は、
前記シリアル通信線とは異なる通信線を介して前記第1のコントローラに接続された第2のコントローラに対するアクセス要求を、前記受信部により受信された情報が示すゲートウェイデバイスに対して送信し、
前記第1のコントローラは、
前記ゲートウェイデバイスに対して送信されたアクセス要求が前記第2のコントローラに対するアクセス要求であった場合に、当該アクセス要求を前記異なる通信線を介して前記第2のコントローラに転送する転送部を備えることを特徴とする請求項記載の冗長システム。
The access portion of the controller includes:
Transmitting an access request for a second controller connected to the first controller via a communication line different from the serial communication line to a gateway device indicated by the information received by the receiving unit;
The first controller includes:
4. The redundant system according to claim 3, further comprising a transfer unit that, when an access request transmitted to the gateway device is an access request for the second controller, transfers the access request to the second controller via the different communication line.
現用系のコントローラと、待機系のコントローラと、第1のシリアル通信線に接続された1台以上のデバイスと、を含んで構成され、The system includes a current system controller, a standby system controller, and one or more devices connected to a first serial communication line,
前記現用系のコントローラは、The current system controller includes:
前記第1のシリアル通信線の一方の端部が接続される第1のポートと、a first port to which one end of the first serial communication line is connected;
前記第1のシリアル通信線とは異なる第2のシリアル通信線の一方の端部が接続される第2のポートと、を備え、a second port to which one end of a second serial communication line different from the first serial communication line is connected;
前記待機系のコントローラは、The standby controller includes:
前記第1のシリアル通信線の他方の端部が接続される第1のポートと、a first port to which the other end of the first serial communication line is connected;
前記第2のシリアル通信線の他方の端部が接続される第2のポートと、を備え、a second port to which the other end of the second serial communication line is connected;
前記現用系のコントローラは、The active system controller includes:
自機の第1のポートから、前記待機系のコントローラの第1のポート、前記待機系のコントローラの第2のポート、及び前記第2のシリアル通信線を経由して、自機の第2のポートに向かう第1の方向周り、又は、自機の第2のポートから、前記第2のシリアル通信線、前記待機系のコントローラの第2のポート、及び前記待機系のコントローラの第1のポートを経由して、自機の第1のポートに向かう第2の方向周りに前記デバイスにアクセスし、当該デバイスとシリアル通信可能な現用系側通信部を備え、an active system side communication unit that accesses the device in a first direction from a first port of the own device, via a first port of the standby controller, a second port of the standby controller, and the second serial communication line, toward a second port of the own device, or in a second direction from the second port of the own device, via the second serial communication line, the second port of the standby controller, and the first port of the standby controller, toward the first port of the own device, and is capable of serial communication with the device;
前記待機系のコントローラは、The standby controller includes:
自機の第1のポートから、前記現用系のコントローラの第1のポート、前記現用系のコントローラの第2のポート、及び前記第2のシリアル通信線を経由して、自機の第2のポートに向かう第2の方向周り、又は、自機の第2のポートから、前記第2のシリアル通信線、前記現用系のコントローラの第2のポート、及び前記現用系のコントローラの第1のポートを経由して、自機の第1のポートに向かう第1の方向周りに前記デバイスにアクセスし、当該デバイスとシリアル通信可能な待機系側通信部を備え、a standby system side communication unit that accesses the device in a second direction from a first port of the device via a first port of the active controller, a second port of the active controller, and the second serial communication line toward the second port of the device, or in a first direction from the second port of the device via the second serial communication line, the second port of the active controller, and the first port of the active controller toward the first port of the device, and is capable of serial communication with the device;
前記現用系側通信部及び前記待機系側通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、the active system communication unit and the standby system communication unit each include a status information acquisition unit that acquires status information of the device through serial communication;
前記現用系側通信部が備える状態情報取得部及び前記待機系側通信部が備える状態情報取得部は、A state information acquisition unit included in the active system communication unit and a state information acquisition unit included in the standby system communication unit,
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
前記現用系のコントローラは、The current system controller includes:
前記現用系側通信部が備える状態情報取得部による状態情報の取得結果に基づいて、前記第1のシリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the first serial communication line based on a result of acquisition of state information by a state information acquisition unit included in the active system side communication unit;
前記待機系のコントローラは、The standby controller includes:
前記待機系側通信部が備える状態情報取得部による状態情報の取得結果に基づいて、前記第1のシリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the first serial communication line based on a result of acquisition of state information by a state information acquisition unit included in the standby system side communication unit,
前記現用系のコントローラが備える断線判定部は、The disconnection determination unit included in the active system controller includes:
前記現用系側通信部が備える状態情報取得部が前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りでアクセスした場合の状態情報の取得結果と、他方の方向周りでアクセスした場合の状態情報の取得結果とが互いに反転しており、かつ当該反転した取得結果が所定回数継続して得られた場合に、前記第1のシリアル通信線に断線が生じたと判定し、determining that a break has occurred in the first serial communication line when a state information acquisition unit included in the active system side communication unit accesses the active system side communication unit in either the first direction or the second direction and when the state information acquisition unit accesses the active system side communication unit in the other direction are inverted to each other and the inverted acquisition results are continuously obtained a predetermined number of times;
前記待機系のコントローラが備える断線判定部は、The disconnection determination unit included in the standby controller includes:
前記待機系側通信部が備える状態情報取得部が前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りでアクセスした場合の状態情報の取得結果と、他方の方向周りでアクセスした場合の状態情報の取得結果とが互いに反転しており、かつ当該反転した取得結果が所定回数継続して得られた場合に、前記第1のシリアル通信線に断線が生じたと判定することを特徴とする冗長システム。A redundant system characterized in that the status information acquisition unit provided in the standby system side communication unit determines that a break has occurred in the first serial communication line when the status information acquisition result when the standby system side communication unit accesses the standby system side communication unit in either the first direction or the second direction is inverted from the status information acquisition result when the standby system side communication unit accesses the standby system side communication unit in the other direction, and when the inverted acquisition result is obtained continuously a predetermined number of times.
現用系のコントローラと、待機系のコントローラと、第1のシリアル通信線に接続された1台以上のデバイスと、を含んで構成され、The system includes a current system controller, a standby system controller, and one or more devices connected to a first serial communication line,
前記現用系のコントローラは、The current system controller includes:
前記第1のシリアル通信線の一方の端部が接続される第1のポートと、a first port to which one end of the first serial communication line is connected;
前記第1のシリアル通信線とは異なる第2のシリアル通信線の一方の端部が接続される第2のポートと、を備え、a second port to which one end of a second serial communication line different from the first serial communication line is connected;
前記待機系のコントローラは、The standby controller includes:
前記第1のシリアル通信線の他方の端部が接続される第1のポートと、a first port to which the other end of the first serial communication line is connected;
前記第2のシリアル通信線の他方の端部が接続される第2のポートと、を備え、a second port to which the other end of the second serial communication line is connected;
前記現用系のコントローラは、The current system controller includes:
自機の第1のポートから、前記待機系のコントローラの第1のポート、前記待機系のコントローラの第2のポート、及び前記第2のシリアル通信線を経由して、自機の第2のポートに向かう第1の方向周り、又は、自機の第2のポートから、前記第2のシリアル通信線、前記待機系のコントローラの第2のポート、及び前記待機系のコントローラの第1のポートを経由して、自機の第1のポートに向かう第2の方向周りに前記デバイスにアクセスし、当該デバイスとシリアル通信可能な現用系側通信部を備え、an active system side communication unit that accesses the device in a first direction from a first port of the own device, via a first port of the standby controller, a second port of the standby controller, and the second serial communication line, toward a second port of the own device, or in a second direction from the second port of the own device, via the second serial communication line, the second port of the standby controller, and the first port of the standby controller, toward the first port of the own device, and is capable of serial communication with the device;
前記待機系のコントローラは、The standby controller includes:
自機の第1のポートから、前記現用系のコントローラの第1のポート、前記現用系のコントローラの第2のポート、及び前記第2のシリアル通信線を経由して、自機の第2のポートに向かう第2の方向周り、又は、自機の第2のポートから、前記第2のシリアル通信線、前記現用系のコントローラの第2のポート、及び前記現用系のコントローラの第1のポートを経由して、自機の第1のポートに向かう第1の方向周りに前記デバイスにアクセスし、当該デバイスとシリアル通信可能な待機系側通信部を備え、a standby system side communication unit that accesses the device in a second direction from a first port of the device via a first port of the active controller, a second port of the active controller, and the second serial communication line toward the second port of the device, or in a first direction from the second port of the device via the second serial communication line, the second port of the active controller, and the first port of the active controller toward the first port of the device, and is capable of serial communication with the device;
前記現用系側通信部及び前記待機系側通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、the active system communication unit and the standby system communication unit each include a status information acquisition unit that acquires status information of the device through serial communication;
前記現用系側通信部が備える状態情報取得部及び前記待機系側通信部が備える状態情報取得部は、A state information acquisition unit included in the active system communication unit and a state information acquisition unit included in the standby system communication unit,
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
前記現用系のコントローラは、The active system controller includes:
前記現用系側通信部が備える状態情報取得部による状態情報の取得結果に基づいて、前記第1のシリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the first serial communication line based on a result of acquisition of state information by a state information acquisition unit included in the active system side communication unit;
前記待機系のコントローラは、The standby controller includes:
前記待機系側通信部が備える状態情報取得部による状態情報の取得結果に基づいて、前記第1のシリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the first serial communication line based on a result of acquisition of state information by a state information acquisition unit included in the standby system side communication unit,
前記現用系のコントローラが備える断線判定部は、The disconnection determination unit included in the active system controller includes:
前記現用系側通信部が備える状態情報取得部が前記第1の方向周り又は前記第2の方向周りのいずれの方向周りでアクセスしても状態情報の取得に失敗する状態の継続時間が所定時間以上であり、かつ当該継続時間が同じデバイスが所定台数以上ある場合に、前記第1のシリアル通信線に複数の断線が生じたと判定し、determining that a plurality of breaks have occurred in the first serial communication line when a duration of a state in which a status information acquisition unit included in the active system side communication unit fails to acquire status information even when accessed in either the first direction or the second direction is equal to or longer than a predetermined time and there are a predetermined number or more devices with the same duration;
前記待機系のコントローラが備える断線判定部は、The disconnection determination unit included in the standby controller includes:
前記待機系側通信部が備える状態情報取得部が前記第1の方向周り又は前記第2の方向周りのいずれの方向周りでアクセスしても状態情報の取得に失敗する状態の継続時間が所定時間以上であり、かつ当該継続時間が同じデバイスが所定台数以上ある場合に、前記第1のシリアル通信線に複数の断線が生じたと判定することを特徴とする冗長システム。A redundant system characterized in that it determines that multiple breaks have occurred in the first serial communication line when the duration of a state in which a status information acquisition unit provided in the standby system side communication unit fails to acquire status information when accessed in either the first direction or the second direction is greater than a predetermined time, and when there are a predetermined number or more devices with the same duration.
1台以上のデバイスがリング状にデイジーチェーン接続されたシリアル通信線の一方の端部が接続される第1のポートと、a first port to which one end of a serial communication line in which one or more devices are daisy-chained in a ring shape is connected;
前記シリアル通信線の他方の端部が接続される第2のポートと、a second port to which the other end of the serial communication line is connected;
前記第1のポートから前記第2のポートに向かう第1の方向周り、又は前記第2のポートから前記第1のポートに向かう第2の方向周りに前記デバイスにアクセスしてシリアル通信可能な通信部と、a communication unit capable of accessing the device and performing serial communication in a first direction from the first port to the second port or in a second direction from the second port to the first port;
を備え、Equipped with
前記通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、the communication unit includes a status information acquisition unit that acquires status information of the device through serial communication;
前記状態情報取得部は、The state information acquisition unit
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
前記状態情報取得部による状態情報の取得結果に基づいて、前記シリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the serial communication line based on a result of acquisition of the status information by the status information acquisition unit;
前記断線判定部は、The disconnection determination unit is
前記状態情報取得部が前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りでアクセスした場合の状態情報の取得結果と、他方の方向周りでアクセスした場合の状態情報の取得結果とが互いに反転しており、かつ当該反転した取得結果が所定回数継続して得られた場合に、前記シリアル通信線に断線が生じたと判定することを特徴とするコントローラ。A controller characterized in that when the status information acquisition unit accesses the serial communication line in either the first direction or the second direction and the status information acquisition result when the status information acquisition unit accesses the serial communication line in the other direction are inverted, and when the inverted acquisition result is obtained continuously a predetermined number of times.
1台以上のデバイスがリング状にデイジーチェーン接続されたシリアル通信線の一方の端部が接続される第1のポートと、a first port to which one end of a serial communication line in which one or more devices are daisy-chained in a ring shape is connected;
前記シリアル通信線の他方の端部が接続される第2のポートと、a second port to which the other end of the serial communication line is connected;
前記第1のポートから前記第2のポートに向かう第1の方向周り、又は前記第2のポートから前記第1のポートに向かう第2の方向周りに前記デバイスにアクセスしてシリアル通信可能な通信部と、a communication unit capable of accessing the device and performing serial communication in a first direction from the first port to the second port or in a second direction from the second port to the first port;
を備え、Equipped with
前記通信部は、シリアル通信により前記デバイスの状態情報を取得する状態情報取得部を備え、the communication unit includes a status information acquisition unit that acquires status information of the device through serial communication;
前記状態情報取得部は、The state information acquisition unit
前記第1の方向周り又は前記第2の方向周りのうちいずれか一方の方向周りに前記デバイスに順次アクセスして各デバイスの状態情報を取得した結果、いずれかのデバイスから状態情報が取得できなかった場合、When status information of each device is acquired by sequentially accessing the devices in either the first direction or the second direction, status information cannot be acquired from any of the devices,
アクセスの方向を前記第1の方向周り又は前記第2の方向周りのうち他の方向周りに切り替えて前記デバイスに順次アクセスし、状態情報を取得するものであり、a direction of access is switched to another direction around the first direction or the second direction to sequentially access the devices and acquire state information;
前記状態情報取得部による状態情報の取得結果に基づいて、前記シリアル通信線に断線が生じたか否かを判定する断線判定部を備え、a disconnection determination unit that determines whether or not a disconnection has occurred in the serial communication line based on a result of acquisition of the status information by the status information acquisition unit;
前記断線判定部は、The disconnection determination unit is
前記状態情報取得部が前記第1の方向周り又は前記第2の方向周りのいずれの方向周りでアクセスしても状態情報の取得に失敗する状態の継続時間が所定時間以上であり、かつ当該継続時間が同じデバイスが所定台数以上ある場合に、前記シリアル通信線に複数の断線が生じたと判定することを特徴とするコントローラ。A controller characterized by determining that multiple breaks have occurred in the serial communication line when the duration of a state in which the status information acquisition unit fails to acquire status information regardless of whether it accesses the status information acquisition unit in the first direction or the second direction is greater than or equal to a predetermined time, and when there are a predetermined number or more devices with the same duration.
JP2021107159A 2021-06-29 2021-06-29 Redundant Systems and Controllers Active JP7692748B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021107159A JP7692748B2 (en) 2021-06-29 2021-06-29 Redundant Systems and Controllers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021107159A JP7692748B2 (en) 2021-06-29 2021-06-29 Redundant Systems and Controllers

Publications (2)

Publication Number Publication Date
JP2023005329A JP2023005329A (en) 2023-01-18
JP7692748B2 true JP7692748B2 (en) 2025-06-16

Family

ID=85107995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021107159A Active JP7692748B2 (en) 2021-06-29 2021-06-29 Redundant Systems and Controllers

Country Status (1)

Country Link
JP (1) JP7692748B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187107A (en) 2008-02-04 2009-08-20 Nec Corp Access control system, method thereof and access control program
WO2010143305A1 (en) 2009-06-12 2010-12-16 三菱電機株式会社 Communication managing apparatus, communication nodes, and data communication method
JP2015233244A (en) 2014-06-10 2015-12-24 三菱電機株式会社 Communication system and communication method
JP2019525658A (en) 2016-08-22 2019-09-05 ルーテック インコーポレイテッド Motor control panel system with integrated module and dual communication structure
JP2020061714A (en) 2018-10-12 2020-04-16 株式会社Pfu Communication system, control method, and communication module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187107A (en) 2008-02-04 2009-08-20 Nec Corp Access control system, method thereof and access control program
WO2010143305A1 (en) 2009-06-12 2010-12-16 三菱電機株式会社 Communication managing apparatus, communication nodes, and data communication method
JP2015233244A (en) 2014-06-10 2015-12-24 三菱電機株式会社 Communication system and communication method
JP2019525658A (en) 2016-08-22 2019-09-05 ルーテック インコーポレイテッド Motor control panel system with integrated module and dual communication structure
JP2020061714A (en) 2018-10-12 2020-04-16 株式会社Pfu Communication system, control method, and communication module

Also Published As

Publication number Publication date
JP2023005329A (en) 2023-01-18

Similar Documents

Publication Publication Date Title
JP7009560B2 (en) Methods and equipment for providing redundancy for process control systems
JP4164704B2 (en) Network connection device switching method and network system using redundancy protocol and pseudo-redundant configuration means
JP4776374B2 (en) Redundant supervisory control system and redundant switching method for the same system
CN101146014B (en) Fault Tolerant Ethernet
CN109104348B (en) Method, system and device for train network data transmission based on CANopen protocol
US20050083953A1 (en) System and method for providing redundant routing capabilities for a network node
WO2009129058A2 (en) A global broadcast communication system
US20070067462A1 (en) Information processing apparatus, communication load decentralizing method, and communication system
CN107872361A (en) Processing unit, network equipment, the control method of processing unit, the control method of network equipment and recording medium
CN111130964B (en) Control cluster and method for operating a control cluster
JP2007516652A (en) Backup cell controller
CN107342911B (en) Processing device, substitute processing device, relay device, processing system, and processing method
CN1745534B (en) Method and device for medium-redundant operation of a terminal in a network
JP7692748B2 (en) Redundant Systems and Controllers
JP2008283608A (en) Computer, program and method for switching redundant communication paths
JP4340731B2 (en) Network fault monitoring processing system and method
JP2011054033A (en) Monitoring controller
JP2007306296A (en) Network communication system
JP3914072B2 (en) Network failure monitoring method, communication system, and line switching apparatus
JP2005136690A (en) High-speed network address takeover method, network device, and program
JP4465300B2 (en) Redundant configuration apparatus and redundant configuration method
JP2006129094A (en) Redundant server system and server apparatus
CN101626328B (en) Signal conversion system with backup mechanism and backup method
JP7431034B2 (en) Controller and facility monitoring system
JP2005012599A (en) Network configuration control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250319

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250604

R150 Certificate of patent or registration of utility model

Ref document number: 7692748

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150