JP5229343B2 - Connection abnormality detection method, network system, and master device - Google Patents

Connection abnormality detection method, network system, and master device Download PDF

Info

Publication number
JP5229343B2
JP5229343B2 JP2011056390A JP2011056390A JP5229343B2 JP 5229343 B2 JP5229343 B2 JP 5229343B2 JP 2011056390 A JP2011056390 A JP 2011056390A JP 2011056390 A JP2011056390 A JP 2011056390A JP 5229343 B2 JP5229343 B2 JP 5229343B2
Authority
JP
Japan
Prior art keywords
master device
slave device
port
topology
slave
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
JP2011056390A
Other languages
Japanese (ja)
Other versions
JP2012195653A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP2011056390A priority Critical patent/JP5229343B2/en
Priority to PCT/JP2011/057006 priority patent/WO2012124160A1/en
Priority to US14/003,345 priority patent/US9680691B2/en
Priority to CN201180068887.2A priority patent/CN103404082B/en
Priority to EP11860869.4A priority patent/EP2672662A4/en
Publication of JP2012195653A publication Critical patent/JP2012195653A/en
Application granted granted Critical
Publication of JP5229343B2 publication Critical patent/JP5229343B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40019Details regarding a bus master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

There is provided a technique for detecting a connection abnormality of a slave device, in a network system including a master device and slave devices. A connection abnormality detection method of the present invention is a connection abnormality detection method in a network system including a master device and a plurality of slave devices. In the network system, data is transmitted from the master device and then is returned to the master device through the respective slave devices. Each slave device has an upstream-side port and a downstream-side port. The connection abnormality detection method includes a step of acquiring topology information of the network system, a step of closing or opening the port of each slave device such that a serial topology is formed to include a target slave device located on the downmost stream side, a step of transmitting inspection data after the control of the port, and a step of detecting a connection abnormality of the device on the basis of a status of return of the inspection data.

Description

本発明は、マスター装置とスレーブ装置を有するネットワークシステムにおける接続異常検出方法、ネットワークシステムおよびマスター装置に関する。   The present invention relates to a connection abnormality detection method, a network system, and a master device in a network system having a master device and a slave device.

FA(Factory Automation)の分野においては、様々な種類の装置が作業の工程を分担して制御が行われる。工場施設等一定の領域において作業に用いられる各種のコントローラやリモートI/O、製造装置を連携して動作させるために、これらの装置を接続する、フィールドネットワークとも呼ばれる産業用ネットワークシステムが構築されている。   In the field of FA (Factory Automation), various types of devices share the work process and control. In order to operate various controllers, remote I / Os, and manufacturing equipment used in work in certain areas such as factory facilities in cooperation, an industrial network system called a field network that connects these devices has been constructed. Yes.

多くの産業用ネットワークシステムでは、工場内に設置される生産設備のデータ収集及び制御を行う各種のスレーブ装置と、複数のスレーブ装置を集中管理するマスター装置が接続され通信を行うことにより生産工程が制御される。
マスター装置とスレーブ装置を有するネットワークは、装置間の連携や配線の都合に応じて、直列状、リング状、ツリー状またはスター状など、様々なトポロジを取り得る。
In many industrial network systems, various slave devices that collect and control data in production facilities installed in factories and a master device that centrally manages multiple slave devices are connected and communicated to perform production processes. Be controlled.
A network having a master device and a slave device can take various topologies such as a serial shape, a ring shape, a tree shape, or a star shape depending on the cooperation between devices and the convenience of wiring.

直列状トポロジにおいては、全てのスレーブ装置はマスター装置を起点とした1本の伝送路の中に含まれる。マスター装置を上流とすると、上流側から伝送路に流れてきた情報信号は、直列に接続されたスレーブ装置を次々と通過して最下流のスレーブ装置に到達する。その後情報信号は最下流から折り返し送信され、マスター装置に戻ってくる。また、リング状トポロジにおいては、マスター装置は情報信号を送出する側と受信する側の2つのポートを持っており、送出された情報信号はスレーブ装置を次々と通過したのち、受信側のポートから戻ってくる。このように、直列状トポロジやリング状トポロジでは、情報信号が分岐のない1本の伝送路を通過する。   In the serial topology, all slave devices are included in one transmission line starting from the master device. Assuming that the master device is upstream, the information signal flowing from the upstream side to the transmission line passes through the slave devices connected in series one after another and reaches the slave device at the most downstream side. Thereafter, the information signal is sent back from the most downstream side and returns to the master device. In the ring topology, the master device has two ports, that is, the information signal transmission side and the reception side, and the transmitted information signals pass through the slave devices one after another and then from the reception side port. Come back. As described above, in the serial topology and the ring topology, the information signal passes through one transmission path without branching.

一方、ツリー状またはスター状トポロジにおいては、マスター装置からの経路が分岐している。分岐箇所にはネットワーク機器として、上流側に接続する1つのポートと、下流側にスレーブ装置を接続する複数のポートを有するハブ装置が配置される。あるいはスレーブ装置自身が複数の他のスレーブ装置を直接接続させる場合もある。   On the other hand, in the tree-like or star-like topology, the route from the master device is branched. As a network device, a hub device having one port connected to the upstream side and a plurality of ports connecting slave devices to the downstream side is arranged as a network device. Alternatively, the slave device itself may directly connect a plurality of other slave devices.

FAの分野を対象とした産業用ネットワークシステムの一例として、イーサネット(登録商標)の技術を適用した産業用イーサネットと呼ばれる技術の開発が進んでいる。産業用イーサネットは、工業用イーサネットまたはリアルタイムイーサネットとも呼ばれ、イーサネットの技術や機器を様々なレイヤーでFA分野に導入したネットワークである。産業用イーサネットとして様々な団体がオープンな規格を制定し公開しており、ETG(EtherCAT Technology Group)が推進するEtherCAT(Ethernet for Control Automation Technology:登録商標)もその一つである。   As an example of an industrial network system for the field of FA, development of a technology called industrial Ethernet to which the Ethernet (registered trademark) technology is applied is progressing. Industrial Ethernet is also called industrial Ethernet or real-time Ethernet, and is a network in which Ethernet technology and equipment are introduced into the FA field at various layers. Various organizations have established and published open standards as industrial Ethernet, and EtherCAT (Ethernet for Control Technology: registered trademark) promoted by ETG (EtherCAT Technology Group) is one of them.

EtherCATの規格においても上述した各種のトポロジをサポートしており、数珠つなぎによる直列状の接続や、ハブ装置を用いた分岐を組み合わせることが可能である。またEtherCATにおいては、マスター装置から送出された情報信号は特定の宛先にのみ届くのではなく、同じ信号が全てのスレーブ装置によって利用される。情報信号にはスレーブ装置ごとの制御データが含まれているので、スレーブ装置は信号の中から自身を対象とした部分を読み出し、必要に応じて書き換えを行った上で下流のスレーブ装置に受け渡す。したがって情報信号はネットワーク内の一箇所に留まることなく最下流まで到達
するので、高速かつデータの衝突が起きない通信を実現できる。
The EtherCAT standard also supports the various topologies described above, and it is possible to combine a series connection using a daisy chain and a branch using a hub device. In EtherCAT, an information signal transmitted from a master device does not reach only a specific destination, but the same signal is used by all slave devices. Since the control signal for each slave device is included in the information signal, the slave device reads the part targeted for itself from the signal, rewrites it as necessary, and passes it to the downstream slave device . Therefore, since the information signal reaches the most downstream without staying at one place in the network, high-speed communication without data collision can be realized.

上記のようにEtherCATにおける情報信号は、いわば一筆書きのような経路をたどってネットワーク内を移動する。このような特性は分岐箇所を含むトポロジであっても変わらない。すなわち、マスター装置から送出された情報信号が分岐箇所であるハブ装置に到達すると、複数のポートの中から所定のポートが選ばれ、そこに接続されたスレーブ装置に送信される。そして、そのスレーブ装置の下流に他のスレーブ装置がある場合、情報信号は順次受け渡され、最下流まで到達した後ハブ装置に戻される。続いて、ハブ装置に含まれる別のポートに接続されたスレーブ装置に送信される。   As described above, the information signal in EtherCAT travels in the network along a path like a one-stroke stroke. Such characteristics do not change even in a topology including a branch point. That is, when the information signal transmitted from the master device reaches the hub device which is a branching point, a predetermined port is selected from a plurality of ports and transmitted to the slave device connected thereto. When there are other slave devices downstream of the slave device, the information signals are sequentially transferred, and after reaching the most downstream, are returned to the hub device. Subsequently, the data is transmitted to a slave device connected to another port included in the hub device.

特開2008−124791号公報(特許文献1)には、イーサネットにおいてケーブル接続ミスや設定ミスを検出するためのネットワーク障害の監視方法が記載されている。特開2010−034876号公報(特許文献2)には、ネットワークの中継装置や通信回線における障害発生の検出と、障害発生箇所を特定する方法が記載されている。しかし、いずれの文献においても、マスター装置とスレーブ装置が通信する産業用ネットワークシステムにおいて接続異常を検出する方法は記載されていない。   Japanese Unexamined Patent Application Publication No. 2008-124791 (Patent Document 1) describes a network failure monitoring method for detecting a cable connection error or a setting error in Ethernet. Japanese Unexamined Patent Application Publication No. 2010-034876 (Patent Document 2) describes a method of detecting a failure occurrence in a network relay device or a communication line and specifying a failure occurrence location. However, none of the documents describes a method for detecting a connection abnormality in an industrial network system in which a master device and a slave device communicate with each other.

特開2008−124791号公報JP 2008-124791 A 特開2010−034876号公報JP 2010-034876 A

上述したEtherCATの規格に従って構築された産業用ネットワークシステムにおいては、マスター装置とスレーブ装置の間にケーブル障害などの接続異常が起こった場合に、その発生箇所を検出することが難しいという課題があった。このため障害検出用の様々な手段が用意されている標準のイーサネット規格に比べ障害からの復旧に時間を要するおそれがあった。この課題について以下説明する。   In the industrial network system constructed in accordance with the above-mentioned EtherCAT standard, there is a problem that it is difficult to detect a location where a connection abnormality such as a cable failure occurs between a master device and a slave device. . For this reason, there is a possibility that it takes time to recover from the failure as compared with the standard Ethernet standard in which various means for detecting the failure are prepared. This problem will be described below.

図2(a)は、一般的なイーサネットの標準に従って5台のノードN1〜N5がハブ接続された様子を示している。ここで、ノードN4をハブに接続するケーブルに異常が発生したとする。利用者のノードであるN1から他のノードとの通信に障害が発生しているかどうかを検出するために、ネットワーク内のノードを指定して個別に通信が成立するかどうかを確認する方法がある。この際には相手ノードにパケットを送信し返信を要求するpingコマンドのような機能を用いれば良い。ノードN4から返信がない場合、障害が発生したことを検出できる。他にもノード間で相互監視する仕組みを設けることによっても早期の障害検出を実現できる。   FIG. 2A shows a state where five nodes N1 to N5 are hub-connected in accordance with a general Ethernet standard. Here, it is assumed that an abnormality has occurred in the cable connecting node N4 to the hub. There is a method of checking whether communication is established individually by specifying a node in the network in order to detect whether or not a failure has occurred in communication with other nodes from the user node N1. . In this case, a function such as a ping command that transmits a packet to the partner node and requests a reply may be used. When there is no reply from the node N4, it can be detected that a failure has occurred. In addition, early failure detection can be realized by providing a mechanism for mutual monitoring between nodes.

図2(b)は、EtherCATの規格に従ったネットワーク構成を示しており、マスター装置Mと4台のスレーブ装置S1〜S4が直列状のトポロジで接続されている。ここでマスター装置から送出された情報信号は、丸数字1〜4のように全てのスレーブを通過して下流側に順次受け渡される。そしてスレーブS4まで到達した後、逆の経路をたどってマスター装置に戻ってくる。したがって、例えばスレーブS3とS4の間のケーブル障害により情報信号がマスター装置に戻らなかった場合でも、経路中のどの場所で障害が起きたのかマスター装置が知ることはできない。   FIG. 2B shows a network configuration according to the EtherCAT standard, in which a master device M and four slave devices S1 to S4 are connected in a series topology. Here, the information signal sent from the master device passes through all the slaves as circled numbers 1 to 4 and is sequentially delivered downstream. Then, after reaching the slave S4, it follows the reverse path and returns to the master device. Therefore, for example, even if the information signal does not return to the master device due to a cable failure between the slaves S3 and S4, the master device cannot know where in the path the failure has occurred.

障害が発生した場所をマスター装置から検出できない場合、問題の切り分けのために接続箇所を一つずつ確認する必要があり、多大な時間を要する。また問題が利用者の手に余る場合にはカスタマーエンジニアによる検査が必要となり、復旧に要する時間と費用がさ
らに増大するおそれがある。
When the location where a failure has occurred cannot be detected from the master device, it is necessary to check the connection locations one by one in order to isolate the problem, which takes a lot of time. If the problem is too much for the user, inspection by a customer engineer is required, which may further increase the time and cost required for recovery.

EtherCATには上述したように情報信号が一筆書きの経路を取るという特徴があるので、ネットワーク内のスレーブ装置が正しく接続されていないと、情報信号がネットワーク内で正しく受け渡されず、期待された制御が行えないようになる。正しくない接続とは例えば、ケーブルの品質が悪く通信の一部または全部が欠落するような状態や、スレーブ装置のポートにケーブルを挿すときに誤った種類のポートを選んでしまうことなどである。従って、障害発生箇所を早期に検出できないことは、生産工程における誤った制御を招き、ネットワーク全体の安定的な運用を阻害する結果になるとともに、ユーザビリティの低下につながる。   Since EtherCAT has a feature that the information signal takes a one-stroke path as described above, if the slave device in the network is not correctly connected, the information signal is not correctly passed in the network, which is expected. Control will not be possible. An incorrect connection is, for example, a state in which the quality of the cable is poor and a part or all of the communication is lost, or an incorrect type of port is selected when the cable is inserted into the port of the slave device. Therefore, the failure to detect the failure occurrence point at an early stage leads to erroneous control in the production process, resulting in obstructing the stable operation of the entire network and reducing usability.

EtherCATのベンダによっては接続異常に対応する仕組みを用意している場合がある。例えば一定時間に情報信号が戻ってこなかった場合、その情報信号を再度送出することにより、システム全体の通信品質を向上させようとする仕組みである。ただしこの方法は障害を本質的に解決したとは言えない上に、ネットワーク内のどの個所で障害が発生しているのかまでは検出できない。さらに情報信号を再送することにより一定の通信リソースが消費されてしまうので、ネットワークの帯域を圧迫するおそれがある。   Some EtherCAT vendors may provide a mechanism for handling connection errors. For example, when the information signal does not return within a certain time, the information signal is sent again to improve the communication quality of the entire system. However, this method cannot be said to have essentially solved the failure, and it cannot detect where in the network the failure has occurred. Furthermore, since a certain communication resource is consumed by retransmitting the information signal, there is a risk of compressing the network bandwidth.

本発明は上記の課題に鑑みてなされたものであり、その目的とするところは、マスター装置とスレーブ装置を有するネットワークシステムにおいて、スレーブ装置の接続異常を検出するための技術を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a technique for detecting a connection abnormality of a slave device in a network system having a master device and a slave device. .

上記目的を達成するために、本発明は以下の第1の構成を採用する。すなわち、マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻される、ネットワークシステムにおける接続異常検出方法であって、各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しており、前記接続異常検出方法は、前記マスター装置が、前記ネットワークシステムのトポロジであるトポロジ情報を取得するステップと、前記マスター装置が、前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御ステップと、前記マスター装置が、前記ポート制御ステップの後で検査用データを送信するステップと、前記マスター装置が、前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出するステップと、を有することを特徴とする接続異常検出方法である。   In order to achieve the above object, the present invention adopts the following first configuration. That is, a network system that includes a master device and a plurality of slave devices, and data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. In this connection abnormality detection method, each slave device has a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device. The connection abnormality detection method includes a step in which the master device acquires topology information that is a topology of the network system, and the master device determines that the target slave device to be inspected is the most downstream based on the topology information. And the serial topology from the master device to the target slave device A port control step for switching between blocking and opening of the port of each slave device; a step in which the master device transmits inspection data after the port control step; and a step in which the master device transmits the inspection data. And detecting a connection abnormality of the target slave device based on the return status of the connection slave.

このような接続異常検出方法によれば、マスター装置から送信されるデータがトポロジに含まれる全てのスレーブ装置を経由するネットワークシステムにおいても、対象スレーブ装置を特定してから検査用データを送受信して接続異常の有無を調べることができる。その結果異常の発生した箇所を容易に特定し、利用者に通知することが可能になるため、障害に対して迅速に対応を取ることができるようになる。   According to such a connection abnormality detection method, even in a network system in which data transmitted from a master device passes through all slave devices included in the topology, data for inspection is transmitted / received after the target slave device is identified. You can check whether there is a connection error. As a result, it is possible to easily identify the location where the abnormality has occurred and notify the user, so that it is possible to quickly respond to the failure.

また、本発明は以下の第2の構成を採用することもできる。すなわち、前記検出するステップにおいて前記対象スレーブ装置の接続異常が検出されなかった場合、前記マスター装置は、前記対象スレーブ装置の下流側ポートに接続されているスレーブ装置を新たな対象スレーブ装置として、前記ポート制御ステップを実行するような構成を取ることができる。   The present invention can also employ the following second configuration. That is, if no connection abnormality of the target slave device is detected in the detecting step, the master device sets the slave device connected to the downstream port of the target slave device as a new target slave device, and It can be configured to execute the port control step.

このような接続異常検出方法によれば、ネットワークシステムに含まれるスレーブ装置を、上流側の装置から下流側に向けて1つずつ検査することができる。したがって検査済みの部分を少しずつ広げることが可能になる。そのため、再度検出するステップを試行したときに接続異常が検出された場合、新たに広げられた検査対象の部分が異常の原因であることが明確にできるので、障害発生箇所の迅速な特定に寄与できる。   According to such a connection abnormality detection method, it is possible to inspect the slave devices included in the network system one by one from the upstream device toward the downstream side. Therefore, the inspected portion can be expanded little by little. Therefore, if a connection abnormality is detected when trying to detect again, it is possible to clarify that the newly expanded part to be inspected is the cause of the abnormality, contributing to the rapid identification of the location of the failure. it can.

また、本発明は以下の第3の構成を採用することもできる。すなわち、前記ネットワークシステムのトポロジが分岐箇所を含む場合、前記ポート制御ステップにおいて、前記マスター装置は、分岐先のうち1つを選択して直列のトポロジを形成するような構成を取ることができる。   The present invention can also employ the following third configuration. That is, when the topology of the network system includes a branch point, in the port control step, the master device can be configured to select one of the branch destinations to form a serial topology.

このような接続異常検出方法によれば、分岐箇所がある場合でも、1つの分岐先を選択してマスター装置とスレーブ装置間の通信を可能にし、他の分岐先を遮断することにより、直列トポロジを形成することが可能である。選択した分岐先に接続異常がなければ順々に分岐先を変えることにより、ネットワークシステムに含まれる全てのスレーブ装置を検査することができる。   According to such a connection abnormality detection method, even when there is a branch location, a serial topology is selected by selecting one branch destination to enable communication between the master device and the slave device and blocking the other branch destination. Can be formed. If there is no connection abnormality at the selected branch destination, all the slave devices included in the network system can be inspected by changing the branch destination in order.

また、本発明は以下の第4の構成を採用することもできる。すなわち、前記複数のスレーブ装置はケーブルにより接続されており、前記送信するステップにおいて、前記マスター装置は、前記対象スレーブ装置に複数回の検査用データ送信を行い、前記検出するステップにおいて、前記マスター装置は、前記送信するステップにおいて検査用データを送信した回数よりも、戻ってきた検査用データを受信できた回数が少ない場合に、前記対象スレーブ装置を接続するケーブルに異常があるものとするような構成を取ることができる。   The present invention can also employ the following fourth configuration. That is, the plurality of slave devices are connected by a cable, and in the transmitting step, the master device performs a plurality of inspection data transmissions to the target slave device, and in the detecting step, the master device If the number of times the returned inspection data can be received is smaller than the number of times the inspection data is transmitted in the transmitting step, the cable connecting the target slave device is abnormal. Can take the configuration.

このような接続異常検出方法によれば、スレーブ装置に送信した検査用データのうち戻ってこないものの数を検査することにより、当該スレーブ装置を接続するケーブルに障害があるかどうかを確認することが可能になる。   According to such a connection abnormality detection method, it is possible to check whether there is a failure in the cable connecting the slave device by inspecting the number of inspection data transmitted to the slave device that does not return. It becomes possible.

また、本発明は以下の第5の構成を採用することもできる。すなわち、前記取得するステップにおいて前記マスター装置が取得するトポロジ情報には、各スレーブ装置が接続される順序およびスレーブ装置間の接続に用いられるポートの種類に基づいて定められるポジションアドレスが含まれており、前記送信するステップにおいて前記マスター装置が送信する検査用データは、前記ポート制御ステップにおいて形成された直列のトポロジに含まれるスレーブ装置の台数を確認するためのデータであり、前記検出するステップにおいて、前記マスター装置は、前記トポロジ情報および前記ポジションアドレスから求められる前記対象スレーブ装置までの装置台数の期待値と、戻ってきた前記検査用データにより確認される装置台数が一致しない場合に、前記対象スレーブ装置の上流側ポートと下流側ポートを取り違える接続異常があるものとするような構成を取ることができる。   The present invention can also employ the following fifth configuration. That is, the topology information acquired by the master device in the acquiring step includes a position address determined based on the order in which each slave device is connected and the type of port used for connection between the slave devices. The inspection data transmitted by the master device in the transmitting step is data for confirming the number of slave devices included in the serial topology formed in the port control step, and in the detecting step, The master device, when the expected value of the number of devices to the target slave device obtained from the topology information and the position address does not match the number of devices confirmed by the returned inspection data, The upstream and downstream ports of the device It can be configured as assumed that there is connection error be mistaken bets.

このような接続異常検出方法によれば、スレーブ装置の上流側ポートと下流側ポートの取り違えに起因してポジションアドレスが誤って割り振られたことを検出できるので、マスター装置から接続異常のあった箇所を特定することが可能になる。   According to such a connection abnormality detection method, it is possible to detect that a position address has been erroneously assigned due to the mistake of the upstream port and the downstream port of the slave device, so the location where there was a connection abnormality from the master device Can be specified.

また、本発明は以下の第6の構成を採用することもできる。すなわち、上記第5の構成において、前記対象スレーブ装置がネットワークシステムの最下流に位置するスレーブ装置である場合、前記取得するステップにおいて前記マスター装置が取得するトポロジ情報は、前記スレーブ装置のポートごとの他の装置との接続状況を含んでおり、前記検出するステップにおいて、前記マスター装置は、前記対象スレーブ装置が有するポートのうち上流側ポートにのみ他の装置が接続されている場合に、前記対象スレーブ装置の上流側ポートと下流側ポートを取り違える接続異常があるものとするような構成をとることができる
The present invention can also employ the following sixth configuration. That is, in the fifth configuration, when the target slave device is a slave device located at the most downstream side of the network system, the topology information acquired by the master device in the acquiring step is obtained for each port of the slave device. In the detecting step, the master device includes the target device when the other device is connected only to the upstream port among the ports of the target slave device. A configuration can be adopted in which there is a connection abnormality in which the upstream port and the downstream port of the slave device are mistaken.

このような接続異常検出方法によれば、第5の構成によっては対象スレーブ装置までの装置台数の期待値と検査用データにより確認された台数の比較により接続異常を求められない場合であっても、上流側ポートと下流側ポートの取り違えを検出することが可能になる。   According to such a connection abnormality detection method, depending on the fifth configuration, even when a connection abnormality cannot be obtained by comparing the expected number of devices up to the target slave device with the number confirmed by the inspection data. Thus, it becomes possible to detect a mistake between the upstream port and the downstream port.

また、本発明は以下の第7の構成を採用することも出来る。すなわち、マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻されるネットワークシステムであって、各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しており、前記マスター装置は、前記ネットワークシステムのトポロジであるトポロジ情報を取得する手段と、前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御手段と、前記ポート制御手段による制御が行われた後で検査用データを送信するとともに、戻ってきた前記検査用データを受信する送受信手段と、前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出する判定手段と、を有することを特徴とするネットワークシステムである。   The present invention can also employ the following seventh configuration. That is, the network system is composed of a master device and a plurality of slave devices, and the data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. Each slave device has a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device, the master device comprising: Means for acquiring topology information that is a topology of the network system, and based on the topology information, the target slave device to be inspected is the most downstream, and the topology from the master device to the target slave device is a serial topology Port control means to switch the blocking and opening of each slave device port A transmission / reception means for transmitting inspection data after the control by the port control means and receiving the inspection data returned, and the target slave device based on a return status of the inspection data And a determination means for detecting an abnormal connection.

このようなネットワークシステムによっても、異常の発生した箇所を容易に特定し、利用者に通知することが可能になるため、障害に対して迅速に対応を取ることができるようになる。   Even with such a network system, it is possible to easily identify a location where an abnormality has occurred and notify the user, so that it is possible to quickly respond to a failure.

また、本発明は以下の第8の構成を採用することも出来る。すなわち、マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻され、各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しているようなネットワークシステムにおけるマスター装置であって、前記ネットワークシステムのトポロジであるトポロジ情報を取得する段と、前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御手段と、前記ポート制御手段による制御が行われた後で検査用データを送信するとともに、戻ってきた前記検査用データを受信する送受信手段と、前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出する判定手段と、を有することを特徴とするマスター装置である。   The present invention can also employ the following eighth configuration. That is, it is composed of a master device and a plurality of slave devices, and the data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. The device is a master device in a network system having a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device, Obtaining topology information that is the topology of the network system, and based on the topology information, the target slave device to be inspected is the most downstream, and the topology from the master device to the target slave device is a serial topology. The port control function that switches between blocking and opening the port of each slave device And transmitting and receiving inspection data after being controlled by the port control means, and receiving and receiving the inspection data, and the target slave based on the return status of the inspection data And a determination unit that detects a connection abnormality of the device.

このようなマスター装置によっても、異常の発生した箇所を容易に特定し、利用者に通知することが可能になるため、障害に対して迅速に対応を取ることができるようになる。   Even with such a master device, it is possible to easily identify a location where an abnormality has occurred and notify the user, so that it is possible to quickly respond to a failure.

本発明によれば、マスター装置とスレーブ装置を有するネットワークシステムにおいて、スレーブ装置の接続異常を検出する技術を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the technique which detects the connection abnormality of a slave apparatus can be provided in the network system which has a master apparatus and a slave apparatus.

本発明のマスター装置とスレーブ装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the master apparatus of this invention, and a slave apparatus. イーサネットとEtherCATにおける情報信号の伝達の違いを説明する図である。It is a figure explaining the difference in transmission of the information signal in Ethernet and EtherCAT. 本発明の全体的な処理を説明するフロー図である。It is a flowchart explaining the whole process of this invention. 本発明の実施例1におけるポート制御を説明する図である。It is a figure explaining the port control in Example 1 of this invention. 本発明の実施例1におけるテストモードの処理を説明するフロー図である。It is a flowchart explaining the process of the test mode in Example 1 of this invention. 本発明の実施例2におけるポート制御を説明する図である。It is a figure explaining the port control in Example 2 of this invention. 本発明の実施例3における処理を説明する図である。It is a figure explaining the process in Example 3 of this invention. 本発明の実施例3におけるテストモードの処理を説明するフロー図である。It is a flowchart explaining the process of the test mode in Example 3 of this invention. 本発明の実施例4における処理を説明する図である。It is a figure explaining the process in Example 4 of this invention. 産業用ネットワークシステムの構成例を説明するブロック図である。It is a block diagram explaining the structural example of an industrial network system. 本発明の実施例5における処理を説明する図である。It is a figure explaining the process in Example 5 of this invention. 本発明の実施例5におけるテストモードの処理を説明するフロー図である。It is a flowchart explaining the process of the test mode in Example 5 of this invention.

以下、図面を参照しつつ、本発明の好適な実施の形態を説明する。以下の実施例ではEtherCATの規格に即したシステム構築方法を取り上げるが、本発明の対象はこれに限られない。マスター装置とスレーブ装置を有し、マスター装置から送出された情報信号が各スレーブ装置を経由して戻るような経路を取る産業用ネットワークシステムであれば、本発明を適用する対象とすることができる。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. In the following embodiment, a system construction method conforming to the EtherCAT standard is taken up, but the subject of the present invention is not limited to this. The present invention can be applied to any industrial network system that has a master device and a slave device and takes a path in which an information signal transmitted from the master device returns via each slave device. .

(産業用ネットワークシステムの構成)
まず、図10を用いて本発明が対象とする産業用ネットワークシステムの構成例を示す。本図において、産業用ネットワークシステム100は、マスター装置200(PLC:Programmable Logic Controller)と複数のスレーブ装置300とが、ケーブル400や装置に備わるI/Oユニット500、ハブ装置700を介して直接的又は間接的に接続されることにより形成される。スレーブ装置300には、電源ユニット,モータユニット,カウンタユニット,画像ユニット,通信ユニット,I/Oユニット等がある。マスター装置200には、ユーザがマスター装置200の動作設定、産業用ネットワークシステム100の動作状態の表示、ネットワークの設計など行うための管理装置600が接続されることもある。管理装置600は設定ツールがインストールされたパーソナルコンピュータなどにより構成される。
(Configuration of industrial network system)
First, a configuration example of an industrial network system targeted by the present invention will be described with reference to FIG. In this figure, an industrial network system 100 includes a master device 200 (PLC: Programmable Logic Controller) and a plurality of slave devices 300 directly via a cable 400, an I / O unit 500 provided in the device, and a hub device 700. Alternatively, it is formed by being indirectly connected. The slave device 300 includes a power supply unit, a motor unit, a counter unit, an image unit, a communication unit, an I / O unit, and the like. The master device 200 may be connected to a management device 600 for the user to perform operation settings of the master device 200, display of the operation status of the industrial network system 100, network design, and the like. The management apparatus 600 is configured by a personal computer installed with a setting tool.

ハブ装置700は、マスター装置側を上流としたときに、上流側に接続する1つのポート701と、下流側に接続する複数のポート702a〜702cを有している。利用者は各装置をケーブルやハブ装置を用いて順序や分岐を設定しながら接続することにより、所望のトポロジを作ることができる。分岐構造は、ハブ装置だけではなく、スレーブ装置が下流側に複数のスレーブ装置を接続することによっても作ることができる。
EtherCATにおいてはケーブル400に関して、一般のイーサネットの規格で使用されるものの転用や、イーサネット用機器の製造設備での製造が可能である。これにより費用削減を実現している。
The hub device 700 has one port 701 connected to the upstream side and a plurality of ports 702a to 702c connected to the downstream side when the master device side is the upstream side. A user can create a desired topology by connecting each device using a cable or a hub device while setting the order or branching. The branch structure can be created not only by the hub device but also by connecting a plurality of slave devices downstream from the slave device.
In EtherCAT, it is possible to divert the cable 400 that is used in the general Ethernet standard, or to manufacture it in an Ethernet equipment manufacturing facility. This realizes cost reduction.

産業用ネットワークシステム100はEtherCATの規格に準拠したネットワークであり、例えば工場等に敷設されFAシステムとして利用される。マスター装置200は、プログラムやオペレーションに従い、ネットワークを通じて制御データを含む情報信号を送信する。スレーブ装置300は、情報信号に含まれるマスター装置からのリクエストへの応答として、受信した情報信号に基づく装置動作や、受信した情報信号の書き換えおよび返送処理を行う。産業用ネットワークシステム100を含む工場における生産は、マスター装置が動作の内容やタイミングを制御することによりスレーブ装置全体が連動して作業を分担することにより達成される。   The industrial network system 100 is a network conforming to the EtherCAT standard, and is installed in a factory or the like and used as an FA system. The master device 200 transmits an information signal including control data through a network according to programs and operations. As a response to the request from the master device included in the information signal, the slave device 300 performs device operation based on the received information signal, and rewrite and return processing of the received information signal. Production in a factory including the industrial network system 100 is achieved by the master device controlling the contents and timing of the operation so that the slave device as a whole works together to share the work.

イーサネットのような規格では、ネットワーク内での装置の並び順は特に限定されない
。これは各装置が、ネットワーク内の位置と関係なく割り当てられる、macアドレスのような一意の物理アドレスを持つことによる。
In standards such as Ethernet, the arrangement order of devices in a network is not particularly limited. This is because each device has a unique physical address, such as a mac address, that is assigned regardless of its location in the network.

一方、EtherCATの規格においては、接続順序に基づくネットワーク上の装置の位置が、マスター装置とスレーブ装置との間の情報伝達に意味を持つ。これは、スレーブ装置がmacアドレスのような絶対的なアドレスを持たず、マスター装置はネットワーク内の位置(ポジションアドレス)を基にして各スレーブ装置のアドレス(ノードアドレス)を割り当てるためである。マスター装置が送出する情報信号は全てのスレーブ装置を対象としており、各スレーブ装置は情報信号のうち自身のアドレスに対応する位置に対して読み書きを行う。従って直列状に並ぶスレーブ装置の配線の順序が設計支援システムにより設計された情報と違っている場合、マスター装置が想定している相手とは異なるスレーブが情報信号の読み書きを行ってしまう。その結果、スレーブ装置に対する制御データが正しくないためにモータ等の動作が異常をきたすような事態や、情報信号が誤ったスレーブにより上書きされて整合性を取れなくなる事態が生じる可能性がある。   On the other hand, in the EtherCAT standard, the position of the device on the network based on the connection order is meaningful for information transmission between the master device and the slave device. This is because the slave device does not have an absolute address such as a mac address, and the master device assigns the address (node address) of each slave device based on the position (position address) in the network. The information signal sent out by the master device is intended for all slave devices, and each slave device reads / writes information at a position corresponding to its own address. Therefore, when the wiring order of the slave devices arranged in series is different from the information designed by the design support system, a slave different from the one assumed by the master device reads and writes information signals. As a result, there may be a situation in which the operation of the motor or the like becomes abnormal because the control data for the slave device is incorrect, or a situation where the information signal is overwritten by an erroneous slave and the consistency cannot be obtained.

<実施例1>
本実施例では、かかるEtherCATの規格に沿って構築されたネットワークにおいて、スレーブ装置の接続異常としてケーブル障害が発生した場合に、マスター装置からの制御によって障害発生個所を検出する方法について説明する。
<Example 1>
In the present embodiment, a description will be given of a method of detecting a failure location by control from a master device when a cable failure occurs as a connection error of a slave device in a network constructed in accordance with the EtherCAT standard.

(装置構成)
図1は、本実施例にかかるマスター装置およびスレーブ装置の構成を示すブロック図である。マスター装置200は、トポロジ取得手段201、ポート制御手段202、送受信手段203、判定手段204、制御手段205、ポート206を有している。
(Device configuration)
FIG. 1 is a block diagram illustrating a configuration of a master device and a slave device according to the present embodiment. The master device 200 includes a topology acquisition unit 201, a port control unit 202, a transmission / reception unit 203, a determination unit 204, a control unit 205, and a port 206.

トポロジ取得手段201は、マスター装置の下流側に接続されている全てのスレーブ装置と通信を行って情報を収集する。収集する情報の内容については後述する。そして、収集した情報を元に現在のトポロジを解釈する。ポート制御手段202は、ネットワーク内の各スレーブ装置に対して、ポートごとに開放するか遮断するかを指示する。あるスレーブ装置のポートが遮断された場合、そのポートより下流側のスレーブ装置には情報信号は受け渡されないので、ネットワークのトポロジが変化する。本実施例の接続異常検出においては、ネットワークのトポロジを直列状に変化させて、その直列状トポロジの最下流に位置するスレーブ装置を対象スレーブ装置とする。そして、対象スレーブ装置を上流側につなぐケーブルの品質が検査される。   The topology acquisition unit 201 collects information by communicating with all slave devices connected to the downstream side of the master device. Details of the information to be collected will be described later. Then, the current topology is interpreted based on the collected information. The port control unit 202 instructs each slave device in the network whether to open or block each port. When a port of a certain slave device is cut off, an information signal is not passed to a slave device downstream from that port, so that the network topology changes. In the connection abnormality detection of the present embodiment, the network topology is changed in series, and the slave device located at the most downstream side of the series topology is set as the target slave device. Then, the quality of the cable connecting the target slave device to the upstream side is inspected.

マスター装置の送受信手段203は、スレーブ装置への情報信号の送受信を管理する。テストモードにおいては特に、情報信号を複数回送出し、当該送出した情報信号のうち戻ってきたものの割合を求める。判定手段204は、ポート制御手段のポート開放および遮断制御により構築された現時点でのトポロジと、送受信手段が情報信号の受信に成功した割合とに基づいて、対象スレーブ装置に接続異常があるかどうか判定する。   The transmission / reception means 203 of the master device manages transmission / reception of information signals to / from the slave device. Particularly in the test mode, the information signal is transmitted a plurality of times, and the ratio of the returned information signal is obtained. The determination unit 204 determines whether or not there is a connection abnormality in the target slave device based on the current topology constructed by the port open / close control of the port control unit and the rate at which the transmission / reception unit has successfully received the information signal. judge.

制御手段205はプログラムを実行するCPU等であり、不図示の制御線を経由してマスター装置の各ブロックを制御する。ポート206はマスター装置からの情報信号を下流のスレーブ装置に送出するとともに、スレーブ装置から戻ってきた情報信号を受信する。情報信号送出時と受信時で異なるポートを用いても良い。   The control unit 205 is a CPU or the like that executes a program, and controls each block of the master device via a control line (not shown). The port 206 sends the information signal from the master device to the downstream slave device and receives the information signal returned from the slave device. Different ports may be used for sending and receiving information signals.

スレーブ装置300は、送受信手段301、制御手段302、上流側のポート303a(INポート)、下流側のポート303b(OUTポート)を有している。スレーブ装置の送受信手段301は、上流側からの情報信号を受信して自スレーブ装置を対象とする位置から情報を読み取り、必要に応じて書き換えも行う。制御手段302はマスター装置同
様CPU等からなり、不図示の制御線を経由した制御を行う。上流側のポート303aはスレーブ装置内に1つだけ存在する。一方下流側のポート303bは、スレーブ装置内に複数個存在しても良い。
本図ではスレーブ装置を1つだけ記載したが、実際には下流側のポート303bに続いて、本図と同様の構成を持つスレーブ装置が利用者の所望のトポロジで接続されている。
The slave device 300 includes a transmission / reception unit 301, a control unit 302, an upstream port 303a (IN port), and a downstream port 303b (OUT port). The transmission / reception means 301 of the slave device receives the information signal from the upstream side, reads the information from the position targeted for the slave device, and rewrites it as necessary. The control unit 302 includes a CPU and the like as in the master device, and performs control via a control line (not shown). There is only one upstream port 303a in the slave device. On the other hand, a plurality of downstream ports 303b may exist in the slave device.
Although only one slave device is described in this figure, actually, a slave device having the same configuration as that shown in this figure is connected to the downstream side of the port 303b in a topology desired by the user.

なお、EtherCATの規格に従ってネットワークを設計する際にはスレーブ装置間の接続順序やハブ装置におけるポート番号といったようなトポロジを意識した設計を行うことが必要になる。しかし通常の利用者がSEやカスタマーエンジニアのような専門知識や経験を有しているとは限らない。そこで、グラフィカルな表示によりトポロジを理解しやすくして設計作業を助けるための設計支援システムを提供することが好ましい。設計支援システムは、マスター装置に接続された管理装置として提供される。管理装置は、設定情報を作成するアプリケーションである設定ツールをインストールしたパーソナルコンピュータなどである。利用者が管理装置のディスプレイ上に表示されたGUIから、キーボードやマウスなどの入力装置による操作を行うことで容易な設計が可能になる。   When designing a network in accordance with the EtherCAT standard, it is necessary to perform a design that takes into account the topology such as the connection order between slave devices and the port number of the hub device. However, normal users do not always have expertise and experience like SE and customer engineers. Therefore, it is preferable to provide a design support system for helping the design work by making the topology easy to understand by graphical display. The design support system is provided as a management device connected to the master device. The management device is a personal computer installed with a setting tool that is an application for creating setting information. A user can perform an easy design by performing an operation using an input device such as a keyboard or a mouse from a GUI displayed on the display of the management device.

(全体の処理フロー)
まず、本実施例全体の処理フローについて図3を参照しつつ説明する。ステップS301にてマスター装置の電源がONにされ、ステップS302にてネットワークにオンライン接続される。するとマスター装置の送受信手段201はポート206を経由して、立ち上げ時の初期処理として、あるいは利用者の明示的な操作に従い、ネットワーク内の各スレーブ装置と通信を行い、スレーブ装置に関する情報を収集し保存する(ステップS303)。このとき配線上のスレーブ装置の位置に応じて定まるアドレスによるアクセスが行われる。この時得られる情報としては、装置の名称、OUTポートが複数ある場合はその数と遮断と開放の状況、ポートごとの接続先装置名などがある。
(Overall processing flow)
First, the processing flow of the entire embodiment will be described with reference to FIG. In step S301, the power of the master device is turned on, and in step S302, online connection to the network is made. Then, the transmission / reception means 201 of the master device communicates with each slave device in the network via the port 206 as an initial process at start-up or according to an explicit operation of the user, and collects information on the slave device. And save (step S303). At this time, access is performed with an address determined according to the position of the slave device on the wiring. The information obtained at this time includes the name of the device, the number of OUT ports, the status of blocking and opening, the name of the connection destination device for each port, and the like.

ステップS304にて、マスター装置のトポロジ取得手段201は、ネットワークのトポロジの解釈を行う。すなわち、上記ステップS303で取得した情報は、スレーブ装置がポートを介して結びついている構造を示す情報であるため、全スレーブ装置から得た情報を突き合わせて所定のアルゴリズムで解析することによりトポロジを解釈できる。なお、既にトポロジ情報がマスター装置に記憶されている場合、ステップS303およびS304を行わず、すぐにテストモードに移行することができる。
そしてステップS305が、本実施例を特徴付けるテストモードである。この処理の詳細については別のフロー図を用いて後述する。テストモードにおいてはネットワーク内にケーブル障害等の接続異常があるかどうか、および、もし異常があれば発生箇所が検出される。
In step S304, the master device topology acquisition unit 201 interprets the network topology. That is, since the information acquired in step S303 is information indicating a structure in which slave devices are connected via ports, the topology is interpreted by matching the information obtained from all slave devices and analyzing the information with a predetermined algorithm. it can. If the topology information is already stored in the master device, steps S303 and S304 are not performed, and the test mode can be entered immediately.
Step S305 is a test mode that characterizes this embodiment. Details of this processing will be described later with reference to another flowchart. In the test mode, whether there is a connection abnormality such as a cable failure in the network, and if there is an abnormality, the occurrence location is detected.

接続異常があった場合(ステップS306=YES)、管理装置の画面への表示、音声、LEDの点灯など何らかの手段で利用者に通知する(ステップS307)。例えば管理装置のディスプレイにグラフィカルに表示されたネットワークのトポロジ図上に障害発生箇所を表示することは、利用者の理解を助ける点で好ましい。異常を通知された利用者は発生した障害の発生した場所を知ることができるので、問題の切り分けに時間を要することなく迅速な対応が可能になる。   When there is a connection abnormality (step S306 = YES), the user is notified by some means such as display on the screen of the management apparatus, sound, LED lighting (step S307). For example, it is preferable to display the location of the failure on the topology diagram of the network graphically displayed on the display of the management device in order to help the user understand. Since the user who is notified of the abnormality can know the location where the failure has occurred, it is possible to respond quickly without requiring time to isolate the problem.

(テストモードの処理フロー)
続いて、接続異常検出を行うテストモードの開始から終了までの処理フローを、図5を参照しつつより詳細に説明する。必要に応じて、図4に示した産業用ネットワークシステムのトポロジの模式図も参照する。フロー処理開始の時点では、マスター装置とスレーブ装置は電源が入った状態で接続されている。テストモードとは、産業用ネットワークシステムによる生産工程とは異なり、接続異常を検出するための専用のモードである。テスト
モードへの移行は利用者が明示的な行為、例えばマスター装置に接続された管理装置上のGUIからの入力や、物理的なスイッチやボタン等の操作などにより行われる。あるいは情報信号が途絶した場合にテストモードに移行するようにしても良い。テストモードに入った後の一連の処理は制御手段が自動的に行って結果を表示するようにしても良いし、利用者が状況を確認しながら段階を追って行っても良い。
(Test mode processing flow)
Next, the processing flow from the start to the end of the test mode for detecting connection abnormality will be described in more detail with reference to FIG. As needed, the schematic diagram of the topology of the industrial network system shown in FIG. 4 is also referred to. At the start of the flow process, the master device and the slave device are connected with the power turned on. The test mode is a dedicated mode for detecting a connection abnormality, unlike a production process using an industrial network system. The transition to the test mode is performed by an explicit action by the user, for example, an input from a GUI on the management apparatus connected to the master apparatus, or an operation of a physical switch or button. Alternatively, the test mode may be shifted when the information signal is interrupted. A series of processing after entering the test mode may be automatically performed by the control means to display the result, or the user may perform step by step while checking the situation.

ステップS501において、産業用ネットワークシステムがテストモードに移行する。これにより通常の情報信号による制御からケーブル接続確認に移行する。
ステップS502において、接続状況を確認するべき対象スレーブ装置が決定される。対象スレーブ装置はネットワークから1つ選択される。本実施例では特に、EtherCATの性質に鑑みて、ネットワークの上流側から順々に対象スレーブ装置を選択する。図4(a)〜(d)は処理の様子を時系列に沿って示しており、スレーブ装置S1〜S4の順に選択対象となる。
In step S501, the industrial network system shifts to the test mode. As a result, the control by the normal information signal shifts to the cable connection confirmation.
In step S502, a target slave device whose connection status is to be confirmed is determined. One target slave device is selected from the network. In this embodiment, in particular, in consideration of the nature of EtherCAT, target slave devices are selected in order from the upstream side of the network. FIGS. 4A to 4D show the state of processing in time series, and are selected in the order of slave devices S1 to S4.

ステップS503において、マスター装置のポート制御手段202が各スレーブ装置のポート遮断と開放を指示することにより、対象スレーブ装置までの直列のトポロジが形成される。例えば図4(a)では、対象スレーブ装置として選択されているスレーブ装置S1の下流側のポートが遮断される。これにより、マスター装置とスレーブ装置S1からなる直列のトポロジができる。
ステップS504において、マスター装置の送受信手段203によって対象スレーブ装置まで複数回の情報信号送信と、戻ってきた情報信号の受信の試行が行われる。情報送受信回数は任意であり、本実施例では例えば100回とする。そしてマスター装置の送受信手段203は、送信した回数に対して受信に成功した回数を求める(ステップS505)。
In step S503, when the port control unit 202 of the master device instructs to shut off and open the port of each slave device, a serial topology up to the target slave device is formed. For example, in FIG. 4A, the downstream port of the slave device S1 selected as the target slave device is blocked. Thereby, a serial topology composed of the master device and the slave device S1 is formed.
In step S504, the transmission / reception means 203 of the master device makes multiple attempts to transmit the information signal to the target slave device and receive the returned information signal. The number of times of information transmission / reception is arbitrary. In this embodiment, for example, it is 100. Then, the transmission / reception means 203 of the master device obtains the number of times of successful reception with respect to the number of times of transmission (step S505).

受信に成功した回数が100回であれば、対象スレーブ装置(ここではS1)までの接続に異常なしと判断できる(ステップS507)。一方成功回数が100回に満たなければ、対象スレーブ装置までの接続に異常ありと判断される(ステップS506)。異常ありと判断された場合は、全体の処理フローで述べたように、利用者に障害発生箇所を通知して対応を促す。複数回送信する情報信号が、本実施例での検査用データとなる。   If the number of successful receptions is 100, it can be determined that there is no abnormality in the connection to the target slave device (here, S1) (step S507). On the other hand, if the number of successes is less than 100, it is determined that there is an abnormality in the connection to the target slave device (step S506). If it is determined that there is an abnormality, as described in the overall processing flow, the user is notified of the location of the failure and encouraged to respond. An information signal transmitted a plurality of times becomes inspection data in this embodiment.

ネットワークに含まれる全てのスレーブ装置のチェックが済んでいなければ(ステップS508=NO)、対象スレーブ装置決定(S503)に戻って処理を続行する。その際のスレーブ装置選択について図4(b)に示す。この場合、図4(a)で形成したトポロジを延長するために、現時点の対象スレーブ装置S1より一つ下流側にあるスレーブ装置S2を選択する。そして前回処理における対象スレーブ装置S1の下流側ポートを開放するとともに、新たな対象スレーブ装置S2の下流側のポートを遮断し、複数回の情報信号送受信を行う。送信回数と受信回数が一致していれば、スレーブ装置S2に関する接続異常はないものと判断される。   If all the slave devices included in the network have not been checked (step S508 = NO), the process returns to the target slave device determination (S503) and the processing is continued. The slave device selection at that time is shown in FIG. In this case, in order to extend the topology formed in FIG. 4A, the slave device S2 that is one downstream from the current target slave device S1 is selected. Then, the downstream port of the target slave device S1 in the previous process is opened, the downstream port of the new target slave device S2 is blocked, and information signal transmission / reception is performed a plurality of times. If the number of transmissions and the number of receptions match, it is determined that there is no connection abnormality related to the slave device S2.

この時点で、既に異常はなしと判断されていたマスター装置とスレーブ装置S1との間に加えて、スレーブ装置S1とS2の間も異常なしと判断される。このように上流側から順次異常を検出していくことにより、検査済みの区間を延長することができる。
続いて、図4(c)において同様にスレーブ装置S3が新たな対象スレーブ装置となり、下流側のポートが遮断され、複数回の情報信号送受信に問題がないかチェックされる。
At this time, it is determined that there is no abnormality between the slave devices S1 and S2 as well as between the master device and the slave device S1 that have already been determined to be normal. In this way, by detecting the abnormality sequentially from the upstream side, the inspected section can be extended.
Subsequently, in FIG. 4C, similarly, the slave device S3 becomes a new target slave device, the downstream port is blocked, and it is checked whether there is a problem in information signal transmission / reception multiple times.

そして対象スレーブ装置がS4に移ったとき、ステップS505の判断において送信回数と受信回数が一致しなかったとする。送受信回数が一致しないケースの中には一部の情報信号だけが戻ってこないケースと、受信が全く途絶するケースがあり得る。いずれのケースであっても何らかの接続異常が発生したと判断できるし、戻ってこない情報信号の割
合によって異常の深刻度を判断できる可能性もある。
この場合、マスター装置とスレーブ装置S1の間、スレーブ装置S1およびS2の間、スレーブ装置S2とS3の間は異常なしと分かっているので、新たに直列状トポロジに追加された、スレーブ装置S3とS4の間のケーブルで異常が発生したと分かる。
When the target slave device moves to S4, it is assumed that the number of transmissions and the number of receptions do not match in the determination in step S505. There may be a case where only a part of the information signal does not return and a case where reception is completely interrupted. In either case, it can be determined that some kind of connection abnormality has occurred, and there is a possibility that the severity of the abnormality can be determined by the proportion of information signals that do not return.
In this case, since it is known that there is no abnormality between the master device and the slave device S1, between the slave devices S1 and S2, and between the slave devices S2 and S3, the slave device S3 newly added to the serial topology It can be seen that an abnormality has occurred in the cable during S4.

このように、個別のスレーブ装置を指定した通信ができず、情報信号が全てのスレーブ装置を通過する産業用ネットワークシステムであっても、障害が発生した場所をマスター装置の側から特定できる。この情報を利用者に伝えることにより障害からの迅速な復旧に寄与することができる。したがって専門的な知識を有しない利用者であっても障害への対応が可能となり、高い安定性とユーザビリティの向上に配慮したネットワークを提供することができる。   In this way, even in an industrial network system in which communication specifying individual slave devices cannot be performed and an information signal passes through all slave devices, the location where a failure has occurred can be specified from the master device side. By conveying this information to the user, it is possible to contribute to quick recovery from a failure. Therefore, even a user who does not have specialized knowledge can cope with a failure, and a network in consideration of high stability and improvement of usability can be provided.

<実施例2>
本実施例では、ネットワークにハブ装置や、複数の下流側ポートを持つスレーブ装置などの分岐箇所が含まれる場合に直列状トポロジを形成する方法について述べる。この方法により、様々なトポロジのネットワークに上記実施例1のような接続異常の検出方法を適用できる。
<Example 2>
In the present embodiment, a method of forming a serial topology when a network includes a branch location such as a hub device or a slave device having a plurality of downstream ports will be described. By this method, the connection abnormality detection method as in the first embodiment can be applied to networks of various topologies.

図6は、本実施例のトポロジ形成について説明するための図である。
図6(a)は、検出処理が始まって最初の処理である。図5のフロー中のステップS502においてスレーブ装置S1が対象スレーブ装置として決定される。S503においてスレーブ装置S1の下流側ポートが遮断、上流側のポートが開放されてトポロジが直列状になる。
FIG. 6 is a diagram for explaining the topology formation of this embodiment.
FIG. 6A shows the first process after the detection process starts. In step S502 in the flow of FIG. 5, the slave device S1 is determined as the target slave device. In S503, the downstream port of the slave device S1 is shut off, the upstream port is opened, and the topology becomes serial.

形成された直列状トポロジ内にケーブル障害がなければ、処理はフロー内のループを経て2回目のステップS502に移行する。この様子を図6(b)に示す。ここではスレーブ装置S2が対象スレーブ装置である。スレーブ装置S2の2つの下流側ポートには他のスレーブ装置が接続されており、分岐箇所となる。そのポートを2つとも遮断することで、マスター装置からスレーブ装置S2までの直列状トポロジができる。   If there is no cable fault in the formed serial topology, the process proceeds to the second step S502 through a loop in the flow. This state is shown in FIG. Here, the slave device S2 is the target slave device. Another slave device is connected to the two downstream ports of the slave device S2, which becomes a branch point. By blocking both ports, a serial topology from the master device to the slave device S2 can be formed.

ここまで接続異常が確認されなければ、図6(c)に示すように、片方の分岐先にあるスレーブ装置S3が対象スレーブ装置として選択される。そして、スレーブ装置S2のうちS3に接続する側のポートだけが開放され、スレーブ装置S5に接続する側のポートは遮断される。ここでスレーブ装置S2とS3の間のケーブルに障害があった場合、マスター装置から送出された情報信号の送信回数と受信回数が一致しないので、マスター装置の判定手段により何らかの異常が起きたことを検出できる。   If no connection abnormality has been confirmed so far, as shown in FIG. 6C, the slave device S3 at one branch destination is selected as the target slave device. Only the port on the side connected to S3 in the slave device S2 is opened, and the port on the side connected to the slave device S5 is blocked. Here, when there is a failure in the cable between the slave devices S2 and S3, the number of times of transmission and reception of the information signal sent from the master device does not match. It can be detected.

一方、もしスレーブ装置S3に続いてS4まで検査しても異常が発見されなければ、別の分岐先の検査に移る。そのために、スレーブ装置S2の2つのポートのうち、スレーブ装置S3側のポートを遮断し、スレーブ装置S5側のポートを開放する。   On the other hand, if no abnormality is found even after the inspection from the slave device S3 up to S4, the operation proceeds to another branch destination inspection. For this purpose, of the two ports of the slave device S2, the port on the slave device S3 side is blocked and the port on the slave device S5 side is opened.

EtherCATの規格に従ったネットワークにおいては分岐箇所を含む様々なトポロジが想定される。しかし分岐のあるネットワークであっても、本実施例の方法によれば、分岐の枝ごとに上流側から順々にスレーブ装置を特定してポート制御手段による指示を行い、障害発生箇所を知ることができる。   In a network according to the EtherCAT standard, various topologies including branch points are assumed. However, even in a network with branches, according to the method of this embodiment, the slave devices are identified in order from the upstream side for each branch, and instructions are given by the port control means to know the location of the failure. Can do.

<実施例3>
本実施例では、検出対象となる接続異常は、スレーブ装置同士を接続する際のポートの種類を取り違えたポート誤接続である。特に、対象スレーブ装置に上流側からケーブルを接続するときに、本来は対象スレーブ装置のINポートにケーブルを挿すべきところ、誤
ってOUTポートにケーブルを挿してしまった場合を取り上げる。上流側のスレーブ装置のOUTポートと対象スレーブ装置のOUTポートとがケーブルで結ばれていることから、このような誤接続をOUT−OUT接続とも呼ぶ。
<Example 3>
In the present embodiment, the connection abnormality to be detected is a port misconnection in which the types of ports when connecting slave devices are mistaken. In particular, when a cable is connected to the target slave device from the upstream side, a case where the cable is originally inserted into the IN port of the target slave device but is accidentally inserted into the OUT port will be taken up. Since the OUT port of the upstream slave device and the OUT port of the target slave device are connected by a cable, such an erroneous connection is also referred to as an OUT-OUT connection.

図7を参照しつつ、OUT−OUT接続があった場合の問題を述べる。ここでは単純化のために1台のマスター装置Mと、4台のスレーブ装置S1〜S4を含む直列状トポロジについて検討する。まず図7(a)に各装置のINポートとOUTポートが正常接続された様子を示す。
このとき、ネットワーク内のスレーブ装置にはその位置に基づくアドレス(ポジションアドレス)が割り当てられている。例えばアドレスの番号を上流側から増加させていく場合、ポジションアドレスはスレーブ装置S1=1、スレーブ装置S2=2、といったように割り当てられる。なおここに示したポジションアドレスの設定ルールは一例に過ぎず、本発明を適用する産業用イーサネットの規格ごとに適宜変更できる。
With reference to FIG. 7, a problem when there is an OUT-OUT connection will be described. Here, for simplification, a serial topology including one master device M and four slave devices S1 to S4 is examined. First, FIG. 7A shows a state in which the IN port and OUT port of each device are normally connected.
At this time, an address (position address) based on the position is assigned to the slave device in the network. For example, when the address number is increased from the upstream side, the position address is assigned as slave device S1 = 1, slave device S2 = 2, and so on. The position address setting rule shown here is merely an example, and can be changed as appropriate for each industrial Ethernet standard to which the present invention is applied.

一方、図7(b)に示したのはOUT−OUT接続がある場合の模式図である。すなわち、スレーブ装置S1のOUTポートから伸びたケーブルは、スレーブ装置S2のINポートではなく、OUTポートに誤って接続されている。そのためスレーブ装置S2のINポートは、下流側のスレーブ装置S3に接続されている。このときのポジションアドレスは、スレーブ装置S1=1については図7(a)と同じだが、誤接続があったスレーブ装置S2より下流においては図7(a)とは異なった番号になる。   On the other hand, FIG. 7B is a schematic diagram when there is an OUT-OUT connection. That is, the cable extending from the OUT port of the slave device S1 is erroneously connected to the OUT port, not the IN port of the slave device S2. Therefore, the IN port of the slave device S2 is connected to the downstream slave device S3. The position address at this time is the same as that in FIG. 7A for the slave device S1 = 1, but the number is different from that in FIG. 7A downstream from the slave device S2 in which there is an erroneous connection.

このようにポジションアドレスが振られるのは、EtherCATの規格に起因する。この様子を、図7(c)を用いて説明する。各スレーブ装置のポジションアドレスは、マスター装置から送出された情報信号が処理される順番に基づいて決定される。そしてスレーブ装置はINポートから受け渡された情報信号を対象として各種の処理を行うので、ポジションアドレスは丸数字1〜4の順に割り当てられることになる。   The position address is assigned in this way because of the EtherCAT standard. This will be described with reference to FIG. The position address of each slave device is determined based on the order in which the information signals sent from the master device are processed. Since the slave device performs various processes for the information signal delivered from the IN port, the position addresses are assigned in the order of the circled numbers 1 to 4.

このように、ポートの誤接続はポジションアドレスが誤って振られる原因となる。その結果、マスター装置が情報信号の中に各スレーブ装置への制御データを設定する際の想定と実際のポジションアドレスが異なってしまう。そのために発生し得る意味を成さないデータの受け渡しや意図しない上書きを防止するために、OUT−OUT接続を容易に検出する方法が必要となる。   As described above, the erroneous connection of the ports causes the position address to be erroneously assigned. As a result, the actual position address differs from the assumption when the master device sets control data for each slave device in the information signal. For this reason, a method for easily detecting the OUT-OUT connection is required in order to prevent unintended data transfer and unintentional overwriting that may occur.

(処理フロー)
図8を参照しつつ本実施例の処理フローを説明する。必要に応じて、図7に示したトポロジも参照する。フロー処理開始の時点の条件は実施例1と同様であり、誤接続のテストモードに入った時点から処理を開始する。比較のために、図7(a)の正常接続と図7(b)の誤接続それぞれのネットワークに本実施例の検査方法を適用した場合の挙動を検討する。
(Processing flow)
The processing flow of the present embodiment will be described with reference to FIG. The topology shown in FIG. 7 is also referred to as necessary. The conditions at the time of starting the flow process are the same as those in the first embodiment, and the process is started from the point of entering the erroneous connection test mode. For comparison, the behavior when the inspection method of this embodiment is applied to each of the normal connection in FIG. 7A and the erroneous connection in FIG. 7B will be examined.

ステップS801〜S803では、図5のステップS501〜S503と同様の処理を行う。すなわち、ステップS801においてテストモードに移行し、ステップS802において対象スレーブ装置が決定される。対象スレーブ装置がネットワーク上流側から順に選択されることも実施例1と同様である。
ステップS803において、マスター装置のポート制御手段からの指示により各スレーブ装置のポートごとの遮断または開放が決定され、対象スレーブ装置までの直列状トポロジを構築する。マスター装置はこのとき、全体の処理フローにおいてトポロジ解釈を行って入手した情報を用いる。ここで、マスター装置はポートを遮断したいスレーブ装置のポジションアドレスを指定して指示を出す点に注意を要する。
In steps S801 to S803, processing similar to that in steps S501 to S503 in FIG. 5 is performed. That is, the process shifts to the test mode in step S801, and the target slave device is determined in step S802. The target slave devices are selected in order from the upstream side of the network as in the first embodiment.
In step S803, blocking or opening for each port of each slave device is determined by an instruction from the port control means of the master device, and a serial topology up to the target slave device is constructed. At this time, the master device uses information obtained by performing topology interpretation in the entire processing flow. Here, it should be noted that the master device issues an instruction by designating the position address of the slave device whose port is to be blocked.

ステップS804において、マスター装置の送受信手段203によって、現在のネットワークのトポロジに参加している全てのスレーブ装置を対象としてスレーブ装置台数を確認するためのコマンドが投げられる。なお上述したように、EtherCATにおける情報信号は全てのスレーブ装置を経由してマスター装置に戻る。したがって例えば情報信号を受け取ったスレーブ装置が所定の変数を1つずつ増加していく方法により装置台数を確認できる。この情報信号が本実施例での検査用データである。   In step S804, a command for confirming the number of slave devices is thrown by the transmission / reception means 203 of the master device for all slave devices participating in the current network topology. As described above, the information signal in EtherCAT returns to the master device via all slave devices. Therefore, for example, the number of devices can be confirmed by a method in which the slave device receiving the information signal increases a predetermined variable one by one. This information signal is inspection data in this embodiment.

まず、図7(a)のようにマスター装置からスレーブ装置S2までが正常接続された直列状トポロジについて検討する。マスター装置は、ポジションアドレス=2のスレーブ装置を指定してOUTポートを遮断し、直列状トポロジを形成している。このときマスター装置によるスレーブ装置台数の期待値は2台となる。かかるネットワークに対してステップS804のコマンドが実行されると、スレーブ装置S1およびS2により変数が増加されるので、装置台数は2台と判断される。従ってステップS805=YESとなり、接続異常なしと判断される。   First, a serial topology in which the master device to the slave device S2 are normally connected as shown in FIG. The master device designates the slave device with the position address = 2 and blocks the OUT port to form a serial topology. At this time, the expected number of slave devices by the master device is two. When the command in step S804 is executed for such a network, the number of devices is determined to be two since the variables are increased by the slave devices S1 and S2. Therefore, step S805 = YES, and it is determined that there is no connection abnormality.

続いて、図7(b)のようにスレーブ装置S1とS2の間がOUT−OUT接続された直列状トポロジについて検討する。マスター装置は、上の場合と同じくポジションアドレス=2のスレーブ装置を指定してOUTポートを遮断し、直列状トポロジを形成している。このときマスター装置によるスレーブ装置台数の期待値も、上と同じく2台である。一方、かかるネットワークに対してステップS804のコマンドが実行されると、スレーブ装置S1、S2およびS3により変数が増加されるので、装置台数は3台と判断される。従ってステップS805=NOとなり、接続異常ありと判断される。   Next, a serial topology in which the slave devices S1 and S2 are OUT-OUT connected as shown in FIG. As in the above case, the master device designates the slave device with the position address = 2 and blocks the OUT port to form a serial topology. At this time, the expected value of the number of slave devices by the master device is also two as above. On the other hand, when the command in step S804 is executed for such a network, the number of devices is determined to be three because the variables are increased by the slave devices S1, S2, and S3. Therefore, step S805 = NO, and it is determined that there is a connection abnormality.

本実施例の接続異常検出方法によれば、テストモードに移行してマスター装置からのポート遮断および開放指示とコマンドの送信を行うことにより、スレーブ装置間でOUT−OUT接続が行われている状態を検出できるようになる。そのため誤接続があった場合でも管理装置等の操作から障害発生箇所を迅速に特定することが可能になるので、システムの安定的な運用とユーザビリティの向上を実現することができる。
また、産業用ネットワークシステムが分岐を含むトポロジを取る場合であっても、スレーブ装置のポートの遮断と開放を適切に行うことにより、本実施例の接続異常検出方法を適用することができる。
According to the connection abnormality detection method of the present embodiment, a state in which OUT-OUT connection is established between slave devices by shifting to the test mode and sending a port cutoff and release instruction and command from the master device. Can be detected. For this reason, even if there is an erroneous connection, it is possible to quickly identify the location of the failure from the operation of the management device or the like, so that stable operation of the system and improvement of usability can be realized.
Even if the industrial network system has a topology including a branch, the connection abnormality detection method of this embodiment can be applied by appropriately blocking and opening the port of the slave device.

<実施例4>
本実施例では、産業用ネットワークシステムの末端、すなわち最も下流側に位置するスレーブ装置がOUT−OUT接続されている状態を検出する方法を説明する。本実施例の対象スレーブ装置の様子を図9に示す。単純化のために、マスター装置とスレーブ装置S1〜S4が直列状に接続されているネットワークを想定する。このとき、マスター装置からスレーブ装置S3までは正常に接続されているが、スレーブ装置S3のOUTポートから伸びたケーブルはスレーブ装置S4のOUTポートに挿されており、誤接続となっている。
<Example 4>
In this embodiment, a method for detecting a state in which the end of the industrial network system, that is, the slave device located at the most downstream side is connected OUT-OUT is described. The state of the target slave device of this embodiment is shown in FIG. For simplicity, assume a network in which a master device and slave devices S1 to S4 are connected in series. At this time, the master device to the slave device S3 are normally connected, but the cable extending from the OUT port of the slave device S3 is inserted into the OUT port of the slave device S4, resulting in an erroneous connection.

実施例3で述べたように、各スレーブ装置のポジションアドレスは情報信号を処理する順番に基づいて決定されるので、スレーブ装置S1〜S4にはそれぞれポジションアドレス1〜4が割り当てられることになる。上記実施例3では、マスター装置のポート制御手段により構築された直列状トポロジ内の装置台数の期待値と、マスター装置の送受信手段から送出されたコマンドにより確認された装置台数を比較してOUT−OUT接続を検出しようとしていた。しかし本実施例の場合、誤接続されたスレーブ装置S4を対象スレーブ装置として上記実施例3の方法を実行しても、装置台数が期待値と一致するため接続異常の検出が行えない。   As described in the third embodiment, since the position address of each slave device is determined based on the order in which the information signals are processed, the position addresses 1 to 4 are assigned to the slave devices S1 to S4, respectively. In the third embodiment, the expected value of the number of devices in the serial topology constructed by the port control means of the master device is compared with the number of devices confirmed by the command sent from the transmission / reception means of the master device, and OUT− I was trying to detect an OUT connection. However, in the case of the present embodiment, even if the method of the third embodiment is executed with the slave device S4 that is erroneously connected as the target slave device, the connection abnormality cannot be detected because the number of devices matches the expected value.

かかる誤接続状態を放置すると制御データの問題を引き起こす可能性がある。さらに、利用者がスレーブ装置S4の後ろに他のスレーブ装置を接続するときに、ふさがっているOUTポートではなく開いているINポートにケーブルを挿してしまう可能性がある。よって本実施例のような場合でもOUT−OUT接続を検出する方法が求められる。   If such an erroneous connection state is left unattended, there is a possibility of causing a problem of control data. Furthermore, when the user connects another slave device behind the slave device S4, there is a possibility that the cable is inserted into the open IN port instead of the occupied OUT port. Therefore, a method for detecting the OUT-OUT connection is required even in the case of this embodiment.

本実施例のように、システムの最も下流側にあるスレーブ装置に関しては、マスター装置がスレーブ装置から収集した情報を元に判断を行うことにより、OUT−OUT接続を検出できる。すなわち、マスター装置がスレーブ装置の情報を収集する際に、スレーブ装置のポートごとの接続状況を取得している。そこで、収集した情報においてスレーブ装置S4のOUTポートにのみ接続先装置が存在していれば、スレーブ装置S3とS4はOUT−OUT接続されていると判断できる。あるいはマスター装置は、システムの最下流のスレーブ装置の接続異常検出のために改めて情報収集を行っても良い。   As in this embodiment, regarding the slave device located on the most downstream side of the system, the OUT-OUT connection can be detected by making a determination based on information collected from the slave device by the master device. That is, when the master device collects information on the slave device, the connection status for each port of the slave device is acquired. Thus, if the connection destination device exists only at the OUT port of the slave device S4 in the collected information, it can be determined that the slave devices S3 and S4 are OUT-OUT connected. Alternatively, the master device may collect information again in order to detect connection abnormality of the slave device at the most downstream side of the system.

本実施例の接続異常検出方法によれば、システムの末端に位置しているスレーブ装置についてもOUT−OUT接続を検出して利用者に対応を促すことが出来るようになる。   According to the connection abnormality detection method of the present embodiment, it is possible to detect the OUT-OUT connection even for the slave device located at the end of the system and prompt the user to respond.

<実施例5>
本実施例では、検出対象となる接続異常は、ネットワーク内に存在するループ接続である。ループ接続が行われた様子を図11(a)に示す。図中のネットワークでは、1台のマスター装置と4台のスレーブ装置S1〜S4が直列に接続されている。スレーブ装置S2は1つのINポートと2つのOUTポートを有している。スレーブ装置が有する2つのOUTポートを第1のOUTポート(OUT1ポート)と第2のOUTポート(OUT2ポート)と呼ぶ。
<Example 5>
In this embodiment, the connection abnormality to be detected is a loop connection existing in the network. FIG. 11A shows how the loop connection is performed. In the network shown in the figure, one master device and four slave devices S1 to S4 are connected in series. The slave device S2 has one IN port and two OUT ports. The two OUT ports included in the slave device are referred to as a first OUT port (OUT1 port) and a second OUT port (OUT2 port).

図示したように、スレーブ装置S2のOUT2ポートにはスレーブ装置S3のINポートが接続されている。そして、スレーブ装置S2のOUT1ポートは、ネットワーク末端にあるスレーブ装置S4のOUTポートと接続されている。このようにスレーブ装置S2〜S4の間の経路が、通常の一筆書きではなく循環する構造になっている状態を、ループ接続と呼ぶ。   As illustrated, the IN port of the slave device S3 is connected to the OUT2 port of the slave device S2. The OUT1 port of the slave device S2 is connected to the OUT port of the slave device S4 at the end of the network. A state in which the path between the slave devices S2 to S4 is circulated instead of a normal stroke is called loop connection.

なおEtherCATの規格においては、スレーブ装置が2つのOUTポートを有する場合、情報を送出する際の前後関係は決まっている。通常の(ループ接続を含まない)ネットワークでは、INポートからスレーブ装置に入ってきた情報信号が下流側に送出される際には、まずOUT1ポートから出力され、一筆書きの経路をたどって戻ってきた後、OUT2ポートから出力される。   In the EtherCAT standard, when a slave device has two OUT ports, the context of sending information is determined. In a normal network (not including a loop connection), when an information signal that has entered the slave device from the IN port is sent downstream, it is first output from the OUT1 port and then returns along a one-stroke path. And then output from the OUT2 port.

ネットワーク内にループ接続が存在する場合に起こり得る問題を、図11(b)を参照しつつ検討する。マスター装置から送出された情報信号は、点線の矢印で示した経路を移動する。すなわち、スレーブ装置S1を通過してスレーブ装置S2に到達した後、優先度の高いOUT1ポートから送出され、スレーブ装置S4に入る。その後、スレーブ装置S3、S2、S1の順に移動する。   A problem that may occur when a loop connection exists in the network will be examined with reference to FIG. The information signal sent from the master device moves along a route indicated by a dotted arrow. That is, after passing through the slave device S1 and reaching the slave device S2, it is transmitted from the OUT1 port having a high priority and enters the slave device S4. Thereafter, the slave devices move in the order of S3, S2, and S1.

しかしこのとき、情報信号に対する受信処理を行うのはスレーブ装置S1、S2のみである(丸数字1、2に対応)。一方スレーブ装置S3、S4においては情報信号の受信処理は行われない。これは、スレーブ装置はINポートから入力される情報信号にのみ処理を行うためである。その結果、マスター装置からスレーブ装置S3、S4に対する指示を届けることができず、生産工程等のネットワークの動作が正常に行われなくなってしまう。従って、ネットワーク内のループ接続を検出することが必要になっていた。   However, at this time, only the slave devices S1 and S2 perform the reception process for the information signal (corresponding to the circled numbers 1 and 2). On the other hand, in the slave devices S3 and S4, the information signal reception process is not performed. This is because the slave device processes only the information signal input from the IN port. As a result, instructions from the master device to the slave devices S3 and S4 cannot be delivered, and network operations such as production processes cannot be performed normally. Therefore, it has been necessary to detect a loop connection in the network.

(処理フロー)
かかるループ接続を接続異常として検出する際の処理を、図12のフロー図を用いて説明する。ここでは図3のステップS305におけるテストモードの一つとして記載しているが、実際には所望のタイミングでループ接続検出を行うことができる。
(Processing flow)
A process for detecting such a loop connection as a connection abnormality will be described with reference to the flowchart of FIG. Here, it is described as one of the test modes in step S305 in FIG. 3, but in practice, loop connection detection can be performed at a desired timing.

ステップS1201においてネットワークはテストモードに移行する。続いてステップS1202において、ネットワーク内のスレーブ装置のリンク数の期待値が求められる。リンク数とはケーブルにより他の装置に接続されているポートの数を言い、接続対象となる他の装置にはマスター装置も含まれる。ただし、マスター装置のポートは、リンク数には含めない。リンク数の期待値Lexpは、以下の式(1)により求められる。なお、Snumはスレーブ装置の台数である。
exp = ((Snum−1)×2)+1 ・・・(1)
In step S1201, the network shifts to the test mode. Subsequently, in step S1202, an expected value of the number of links of the slave devices in the network is obtained. The number of links means the number of ports connected to other devices by cables, and other devices to be connected include the master device. However, the port of the master device is not included in the number of links. The expected value L exp of the number of links is obtained by the following equation (1). Note that S num is the number of slave devices.
L exp = ((S num −1) × 2) +1 (1)

ステップS1203において、スレーブ装置の実際の全リンク数が求められる。これは図3のステップS303で収集した情報に基づいて求めることが可能である。すなわち、スレーブ装置のポートごとに接続先の状況が分かっているので、これらを合計することにより全リンク数が求められる。   In step S1203, the actual total number of links of the slave device is obtained. This can be obtained based on the information collected in step S303 in FIG. That is, since the status of the connection destination is known for each port of the slave device, the total number of links can be obtained by summing them.

ステップS1204において、リンク数の期待値と実際の数値が比較される。そして数値が異なっていたら(S1204=NO)、接続異常、この場合はループ接続ありと判断される。一方数値が同じであれば(S1204=YES)、正常に接続されていると判断される。そして図3のステップS306に戻り、任意の方法により利用者にループ接続の存在が通知され、対応を促す。   In step S1204, the expected number of links is compared with the actual numerical value. If the values are different (S1204 = NO), it is determined that there is a connection abnormality, in this case, there is a loop connection. On the other hand, if the numerical values are the same (S1204 = YES), it is determined that the connection is normal. Returning to step S306 in FIG. 3, the user is notified of the presence of the loop connection by an arbitrary method, and prompts for a response.

(リンク数の求め方)
上記ステップS1202〜S1204の処理ついて具体的に説明する。
まず、本実施例のようなネットワーク構成でリンク数の期待値を求める。スレーブ装置の数は4台であるから、これを式(1)に適用すると、
exp = ((4−1)×2)+1 = 7
となるので、期待値は7となる。
(How to find the number of links)
The processing in steps S1202 to S1204 will be specifically described.
First, an expected value of the number of links is obtained with the network configuration as in this embodiment. Since there are four slave devices, applying this to equation (1)
L exp = ((4-1) × 2) + 1 = 7
Therefore, the expected value is 7.

まず、ループ接続箇所を持たないネットワークにおける実際の全リンク数を、図11(c)を参照しつつ検討する。本図では正常にケーブルが接続されており、ループ接続は存在しない。このときのリンク数は、スレーブ装置S1、S2、S3のそれぞれについて2つ、スレーブ装置S4について1つの、合計7つである。
従って期待値と実際の全リンク数は等しく、接続異常なしと判断される。
First, the actual total number of links in a network that does not have loop connection locations will be examined with reference to FIG. In this figure, the cable is connected normally and there is no loop connection. The total number of links at this time is seven, two for each of the slave devices S1, S2, and S3 and one for the slave device S4.
Therefore, the expected value and the actual number of all links are equal, and it is determined that there is no connection abnormality.

続いて、ループ接続のある図11(a)の場合を検討する。この場合、スレーブ装置の数は4台であるが、リング接続されたスレーブ装置S3とS4においては情報信号の受信処理は行われないため、マスター装置は2台のスレーブ装置が接続されていると認識する。スレーブ装置が2台のときのリンク数の期待値はS1で2つ、S2で1つの合計3つである。一方、このときの実際のリンク数は、スレーブ装置S1に2つ、スレーブ装置S2に3つの、合計5つである。
従って期待値と実際の全リンク数は一致せず、接続異常ありと判断される。
Next, consider the case of FIG. 11A with a loop connection. In this case, the number of slave devices is four, but the slave device S3 and S4 connected in a ring does not receive information signals, so the master device is connected to two slave devices. recognize. When there are two slave devices, the expected number of links is three in S1, two in S1 and one in S2. On the other hand, the actual number of links at this time is two for the slave device S1 and three for the slave device S2, for a total of five.
Therefore, the expected value and the actual number of all links do not match, and it is determined that there is a connection abnormality.

このように本実施例の接続異常検出方法によれば、テストモードにおいてスレーブ装置のリンク数を検証することにより、ネットワークに含まれるループ接続をマスター装置から検出できる。ループ接続が検出された場合は利用者に通知することにより、障害への早期の対応を促すことが可能になる。その結果、生産工程の正しい制御と、安定的な運用に寄与することができる。
なお本実施例ではマスター装置とスレーブ装置が直列に接続された構造を取り上げたが
、分岐箇所を有するトポロジであっても、リンク数の期待値と実際の全リンク数を比較することにより、接続異常を検出することができる。
As described above, according to the connection abnormality detection method of the present embodiment, the loop connection included in the network can be detected from the master device by verifying the number of links of the slave device in the test mode. When a loop connection is detected, it is possible to prompt an early response to a failure by notifying the user. As a result, it is possible to contribute to correct control of the production process and stable operation.
In this embodiment, the structure in which the master device and the slave device are connected in series is taken up. However, even in a topology having a branch point, the connection number can be determined by comparing the expected number of links with the actual number of all links. Abnormalities can be detected.

200:マスター装置,201:トポロジ取得手段,202:ポート制御手段,203:送受信手段,204:判定手段,300:スレーブ装置,301:送受信手段,303a:上流側ポート,303b:下流側ポート   200: Master device 201: Topology acquisition unit 202: Port control unit 203: Transmission / reception unit 204: Determination unit 300: Slave unit 301: Transmission / reception unit 303a: Upstream port 303b: Downstream port

Claims (9)

マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻される、ネットワークシステムにおける接続異常検出方法であって、
各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しており、
前記接続異常検出方法は、
前記マスター装置が、前記ネットワークシステムのトポロジであるトポロジ情報を取得するステップと、
前記マスター装置が、前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御ステップと、
前記マスター装置が、前記ポート制御ステップの後で検査用データを送信するステップと、
前記マスター装置が、前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出するステップと、
有し、
前記ネットワークシステムのトポロジが分岐箇所を含む場合、前記ポート制御ステップにおいて、前記マスター装置は、分岐先のうち1つを選択して直列のトポロジを形成する
ことを特徴とする接続異常検出方法。
A connection in a network system, which is composed of a master device and a plurality of slave devices, and data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. An anomaly detection method,
Each slave device has a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device;
The connection abnormality detection method is:
The master device acquiring topology information that is a topology of the network system;
Based on the topology information, the master device is configured so that the target slave device to be inspected is the most downstream and the master device to the target slave device has a serial topology. A port control step for switching between blocking and opening; and
The master device transmitting inspection data after the port control step;
The master device detecting a connection abnormality of the target slave device based on a return status of the inspection data; and
Have
When the topology of the network system includes a branch point, in the port control step, the master device selects one of the branch destinations to form a serial topology. Detection method.
前記検出するステップにおいて前記対象スレーブ装置の接続異常が検出されなかった場合、前記マスター装置は、前記対象スレーブ装置の下流側ポートに接続されているスレーブ装置を新たな対象スレーブ装置として、前記ポート制御ステップを実行する
ことを特徴とする請求項1に記載の接続異常検出方法。
If no connection abnormality of the target slave device is detected in the detecting step, the master device sets the slave device connected to the downstream port of the target slave device as a new target slave device, and performs the port control. The connection abnormality detection method according to claim 1, wherein the step is executed.
前記複数のスレーブ装置はケーブルにより接続されており、
前記送信するステップにおいて、前記マスター装置は、前記対象スレーブ装置に複数回の
検査用データ送信を行い、
前記検出するステップにおいて、前記マスター装置は、前記送信するステップにおいて検査用データを送信した回数よりも、戻ってきた検査用データを受信できた回数が少ない場合に、前記対象スレーブ装置を接続するケーブルに異常があるものとする
ことを特徴とする請求項1または2に記載の接続異常検出方法。
The plurality of slave devices are connected by a cable,
In the transmitting step, the master device performs a plurality of inspection data transmissions to the target slave device,
In the detecting step, the master device connects the target slave device when the number of times the returned inspection data can be received is smaller than the number of times the inspection data is transmitted in the transmitting step. connection abnormality detection method according to claim 1 or 2, characterized in that it is assumed that there is an abnormality in.
前記取得するステップにおいて前記マスター装置が取得するトポロジ情報には、各スレーブ装置が接続される順序およびスレーブ装置間の接続に用いられるポートの種類に基づいて定められるポジションアドレスが含まれており、
前記送信するステップにおいて前記マスター装置が送信する検査用データは、前記ポート制御ステップにおいて形成された直列のトポロジに含まれるスレーブ装置の台数を確認するためのデータであり、
前記検出するステップにおいて、前記マスター装置は、前記トポロジ情報および前記ポジションアドレスから求められる前記対象スレーブ装置までの装置台数の期待値と、戻ってきた前記検査用データにより確認される装置台数が一致しない場合に、前記対象スレーブ装置の上流側ポートと下流側ポートを取り違える接続異常があるものとする
ことを特徴とする請求項1または2に記載の接続異常検出方法。
The topology information acquired by the master device in the acquiring step includes a position address determined based on the order in which each slave device is connected and the type of port used for connection between the slave devices,
The inspection data transmitted by the master device in the transmitting step is data for confirming the number of slave devices included in the serial topology formed in the port control step,
In the detecting step, the master device does not match an expected value of the number of devices to the target slave device obtained from the topology information and the position address and the number of devices confirmed by the returned inspection data. 3. The connection abnormality detection method according to claim 1, wherein there is a connection abnormality in which the upstream port and the downstream port of the target slave device are mistaken.
マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻される、ネットワークシステムにおける接続異常検出方法であって、A connection in a network system, which is composed of a master device and a plurality of slave devices, and data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. An anomaly detection method,
各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しており、Each slave device has a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device;
前記接続異常検出方法は、The connection abnormality detection method is:
前記マスター装置が、前記ネットワークシステムのトポロジであるトポロジ情報を取得するステップと、The master device acquiring topology information that is a topology of the network system;
前記マスター装置が、前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御ステップと、Based on the topology information, the master device is configured so that the target slave device to be inspected is the most downstream and the master device to the target slave device has a serial topology. A port control step for switching between blocking and opening; and
前記マスター装置が、前記ポート制御ステップの後で検査用データを送信するステップと、The master device transmitting inspection data after the port control step;
前記マスター装置が、前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出するステップと、The master device detecting a connection abnormality of the target slave device based on a return status of the inspection data; and
を有し、Have
前記取得するステップにおいて前記マスター装置が取得するトポロジ情報には、各スレーブ装置が接続される順序およびスレーブ装置間の接続に用いられるポートの種類に基づいて定められるポジションアドレスが含まれており、The topology information acquired by the master device in the acquiring step includes a position address determined based on the order in which each slave device is connected and the type of port used for connection between the slave devices,
前記送信するステップにおいて前記マスター装置が送信する検査用データは、前記ポート制御ステップにおいて形成された直列のトポロジに含まれるスレーブ装置の台数を確認するためのデータであり、The inspection data transmitted by the master device in the transmitting step is data for confirming the number of slave devices included in the serial topology formed in the port control step,
前記検出するステップにおいて、前記マスター装置は、前記トポロジ情報および前記ポジションアドレスから求められる前記対象スレーブ装置までの装置台数の期待値と、戻ってきた前記検査用データにより確認される装置台数が一致しない場合に、前記対象スレーブ装置の上流側ポートと下流側ポートを取り違える接続異常があるものとするIn the detecting step, the master device does not match an expected value of the number of devices to the target slave device obtained from the topology information and the position address and the number of devices confirmed by the returned inspection data. In this case, it is assumed that there is a connection abnormality that mistakes the upstream port and the downstream port of the target slave device.
ことを特徴とする接続異常検出方法。A method for detecting connection abnormality.
マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻されるネットワークシステムであって、
各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しており、
前記マスター装置は、
前記ネットワークシステムのトポロジであるトポロジ情報を取得する手段と、
前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御手段と、
前記ポート制御手段による制御が行われた後で検査用データを送信するとともに、戻ってきた前記検査用データを受信する送受信手段と、
前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出する判定手段と、
有し、
前記ネットワークシステムのトポロジが分岐箇所を含む場合、前記ポート制御手段によって、前記マスター装置は、分岐先のうち1つを選択して直列のトポロジを形成する
ことを特徴とするネットワークシステム。
The network system is composed of a master device and a plurality of slave devices, and data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. ,
Each slave device has a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device;
The master device is
Means for obtaining topology information which is a topology of the network system;
Based on the topology information, the port of each slave device is switched off and open so that the target slave device to be inspected is the most downstream and the topology from the master device to the target slave device is a serial topology. Port control means;
A transmission / reception means for transmitting the inspection data after the control by the port control means is performed, and receiving the inspection data returned;
Based on the return status of the inspection data, a determination unit that detects a connection abnormality of the target slave device;
Have
When the topology of the network system includes a branching location, the port control unit causes the master device to select one of the branch destinations to form a serial topology. .
マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻され、各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しているようなネットワークシステムにおけるマスター装置であって、
前記ネットワークシステムのトポロジであるトポロジ情報を取得する手段と、
前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御手段と、
前記ポート制御手段による制御が行われた後で検査用データを送信するとともに、戻ってきた前記検査用データを受信する送受信手段と、
前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出する判定手段と、
有し、
前記ネットワークシステムのトポロジが分岐箇所を含む場合、前記ポート制御手段は、分岐先のうち1つを選択して直列のトポロジを形成する
ことを特徴とするマスター装置。
It consists of a master device and a plurality of slave devices, and the data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device, each slave device A master device in a network system having a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device,
Means for obtaining topology information which is a topology of the network system;
Based on the topology information, the port of each slave device is switched off and open so that the target slave device to be inspected is the most downstream and the topology from the master device to the target slave device is a serial topology. Port control means;
A transmission / reception means for transmitting the inspection data after the control by the port control means is performed, and receiving the inspection data returned;
Based on the return status of the inspection data, a determination unit that detects a connection abnormality of the target slave device;
Have
The master device , wherein when the topology of the network system includes a branch point, the port control unit selects one of branch destinations to form a serial topology .
マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻されるネットワークシステムであって、The network system is composed of a master device and a plurality of slave devices, and data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device. ,
各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しており、Each slave device has a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device;
前記マスター装置は、The master device is
前記ネットワークシステムのトポロジであるトポロジ情報を取得する手段と、Means for obtaining topology information which is a topology of the network system;
前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御手段と、Based on the topology information, the port of each slave device is switched off and open so that the target slave device to be inspected is the most downstream and the topology from the master device to the target slave device is a serial topology. Port control means;
前記ポート制御手段による制御が行われた後で検査用データを送信するとともに、戻ってきた前記検査用データを受信する送受信手段と、A transmission / reception means for transmitting the inspection data after the control by the port control means is performed, and receiving the inspection data returned;
前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出する判定手段と、Based on the return status of the inspection data, a determination unit that detects a connection abnormality of the target slave device;
を有し、Have
前記取得する手段によって前記マスター装置が取得するトポロジ情報には、各スレーブ装The topology information acquired by the master device by the acquiring means includes each slave device.
置が接続される順序およびスレーブ装置間の接続に用いられるポートの種類に基づいて定められるポジションアドレスが含まれており、Position address determined based on the order in which devices are connected and the type of port used for connection between slave devices,
前記送受信手段によって前記マスター装置が送信する検査用データは、前記ポート制御手段によって形成された直列のトポロジに含まれるスレーブ装置の台数を確認するためのデータであり、The inspection data transmitted by the master device by the transmission / reception means is data for confirming the number of slave devices included in the serial topology formed by the port control means,
前記判定手段によって、前記マスター装置は、前記トポロジ情報および前記ポジションアドレスから求められる前記対象スレーブ装置までの装置台数の期待値と、戻ってきた前記検査用データにより確認される装置台数が一致しない場合に、前記対象スレーブ装置の上流側ポートと下流側ポートを取り違える接続異常があるものとするWhen the determination unit determines that the master device does not match the expected number of devices up to the target slave device obtained from the topology information and the position address with the number of devices confirmed by the returned inspection data And there is a connection abnormality that mistakes the upstream port and the downstream port of the target slave device.
ことを特徴とするネットワークシステム。A network system characterized by this.
マスター装置と複数のスレーブ装置とから構成され、前記マスター装置から送信されたデータは最上流のスレーブ装置から最下流のスレーブ装置まで順番に経由した後で前記マスター装置に戻され、各スレーブ装置は、上流の装置に接続するための上流側ポートと下流の装置に接続するための少なくとも1つの下流側ポートを含む複数のポートを有しているようなネットワークシステムにおけるマスター装置であって、It consists of a master device and a plurality of slave devices, and the data transmitted from the master device is returned to the master device after sequentially passing from the most upstream slave device to the most downstream slave device, each slave device A master device in a network system having a plurality of ports including an upstream port for connecting to an upstream device and at least one downstream port for connecting to a downstream device,
前記ネットワークシステムのトポロジであるトポロジ情報を取得する手段と、Means for obtaining topology information which is a topology of the network system;
前記トポロジ情報に基づいて、検査対象となる対象スレーブ装置が最下流となり、かつ、前記マスター装置から前記対象スレーブ装置までが直列のトポロジとなるように、各スレーブ装置のポートの遮断と開放を切り換えるポート制御手段と、Based on the topology information, the port of each slave device is switched off and open so that the target slave device to be inspected is the most downstream and the topology from the master device to the target slave device is a serial topology. Port control means;
前記ポート制御手段による制御が行われた後で検査用データを送信するとともに、戻ってきた前記検査用データを受信する送受信手段と、A transmission / reception means for transmitting the inspection data after the control by the port control means is performed, and receiving the inspection data returned;
前記検査用データの戻り状況に基づいて、前記対象スレーブ装置の接続異常を検出する判定手段と、Based on the return status of the inspection data, a determination unit that detects a connection abnormality of the target slave device;
を有し、Have
前記取得する手段によって前記マスター装置が取得するトポロジ情報には、各スレーブ装置が接続される順序およびスレーブ装置間の接続に用いられるポートの種類に基づいて定められるポジションアドレスが含まれており、The topology information acquired by the master device by the acquiring means includes a position address determined based on the order in which each slave device is connected and the type of port used for connection between the slave devices,
前記送受信手段によって前記マスター装置が送信する検査用データは、前記ポート制御手段によって形成された直列のトポロジに含まれるスレーブ装置の台数を確認するためのデータであり、The inspection data transmitted by the master device by the transmission / reception means is data for confirming the number of slave devices included in the serial topology formed by the port control means,
前記判定手段によって、前記マスター装置は、前記トポロジ情報および前記ポジションアドレスから求められる前記対象スレーブ装置までの装置台数の期待値と、戻ってきた前記検査用データにより確認される装置台数が一致しない場合に、前記対象スレーブ装置の上流側ポートと下流側ポートを取り違える接続異常があるものとするWhen the determination unit determines that the master device does not match the expected number of devices up to the target slave device obtained from the topology information and the position address with the number of devices confirmed by the returned inspection data And there is a connection abnormality that mistakes the upstream port and the downstream port of the target slave device.
ことを特徴とするマスター装置。A master device characterized by that.
JP2011056390A 2011-03-15 2011-03-15 Connection abnormality detection method, network system, and master device Active JP5229343B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2011056390A JP5229343B2 (en) 2011-03-15 2011-03-15 Connection abnormality detection method, network system, and master device
PCT/JP2011/057006 WO2012124160A1 (en) 2011-03-15 2011-03-23 Connection abnormality detection method, network system, and master device
US14/003,345 US9680691B2 (en) 2011-03-15 2011-03-23 Connection abnormality detection method, network system, and master device
CN201180068887.2A CN103404082B (en) 2011-03-15 2011-03-23 Connect method for detecting abnormality, network system and main device
EP11860869.4A EP2672662A4 (en) 2011-03-15 2011-03-23 Connection abnormality detection method, network system, and master device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011056390A JP5229343B2 (en) 2011-03-15 2011-03-15 Connection abnormality detection method, network system, and master device

Publications (2)

Publication Number Publication Date
JP2012195653A JP2012195653A (en) 2012-10-11
JP5229343B2 true JP5229343B2 (en) 2013-07-03

Family

ID=46830268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011056390A Active JP5229343B2 (en) 2011-03-15 2011-03-15 Connection abnormality detection method, network system, and master device

Country Status (5)

Country Link
US (1) US9680691B2 (en)
EP (1) EP2672662A4 (en)
JP (1) JP5229343B2 (en)
CN (1) CN103404082B (en)
WO (1) WO2012124160A1 (en)

Families Citing this family (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9647877B2 (en) * 2011-03-15 2017-05-09 Omron Corporation Network system, master device, and method for controlling network system
US9952995B2 (en) 2012-11-27 2018-04-24 Nxp Usa, Inc. Redundant packet forwarding system
JP6166530B2 (en) 2012-12-14 2017-07-19 オムロン株式会社 Information processing apparatus and program
DE102014006231A1 (en) * 2014-04-30 2015-11-05 Omron Corporation Connecting multiple slave units to a master controller in a distributed controller system
US20160105320A1 (en) * 2014-10-14 2016-04-14 Cisco Technology, Inc. Automated network configuration in a closed network topology
KR102023534B1 (en) * 2015-04-17 2019-09-23 엘에스산전 주식회사 Slave device and mehtod controlling thereof
CN105072056B (en) * 2015-07-29 2018-01-30 国家电网公司 A kind of method for inspecting of interchanger automatic tour inspection system
DE112015007035T5 (en) * 2015-11-26 2018-07-19 Mitsubishi Electric Corporation FORWARDING DEVICE AND COMMUNICATION NETWORK
JP6551259B2 (en) 2016-02-26 2019-07-31 オムロン株式会社 Master device, slave device, error monitoring system, master device control method, and control program
EP3229388B1 (en) * 2016-04-06 2019-03-27 Aros Electronics AB Optical bus
JP6772531B2 (en) * 2016-04-28 2020-10-21 オムロン株式会社 Control systems, control methods, control programs, and recording media
JP2018011147A (en) * 2016-07-12 2018-01-18 オムロン株式会社 Information processing device, information processing program and information processing method
TWI619403B (en) * 2016-07-18 2018-03-21 智易科技股份有限公司 Mobile management system, method for managing a local area network, and computer-readable storage device
US10212658B2 (en) * 2016-09-30 2019-02-19 Kinetic Technologies Systems and methods for managing communication between devices
CN106502234B (en) * 2016-10-17 2018-11-23 重庆邮电大学 Industrial control system method for detecting abnormality based on double skeleton patterns
US10097419B2 (en) * 2016-11-14 2018-10-09 Alcatel-Lucent Canada, Inc. Linear method for detection of multiple service topologies
JP6977265B2 (en) * 2017-01-27 2021-12-08 オムロン株式会社 Master-slave control system and master-slave control system control method
JP6852884B2 (en) * 2017-03-21 2021-03-31 Necプラットフォームズ株式会社 Monitoring systems, monitoring equipment, monitoring methods, and programs
EP3410646B1 (en) * 2017-05-31 2019-12-11 Omron Corporation A switch device for an automation network
CN108052085A (en) * 2017-12-28 2018-05-18 成都数成科技有限公司 A kind of method of industry control instruction Transfer path analysis
JP6863305B2 (en) 2018-01-29 2021-04-21 オムロン株式会社 Network system, control method and control device
US10225005B1 (en) * 2018-03-09 2019-03-05 Elbex Video Ltd. Communication infrastructure devices and support tools for intelligent residences or businesses and communicating method with and operating intelligent electrical devices
US10862912B2 (en) * 2018-03-23 2020-12-08 Juniper Networks, Inc. Tracking host threats in a network and enforcing threat policy actions for the host threats
US10887327B2 (en) 2018-03-23 2021-01-05 Juniper Networks, Inc. Enforcing threat policy actions based on network addresses of host threats
US11362917B2 (en) * 2018-03-26 2022-06-14 Fuji Corporation Slave, work machine, and log information storage method
JP2019169089A (en) * 2018-03-26 2019-10-03 オムロン株式会社 Network management apparatus, management method, management program and recording medium
JP6856048B2 (en) * 2018-04-03 2021-04-07 オムロン株式会社 Control system and control method
CN108919762B (en) 2018-07-06 2021-05-25 东莞市李群自动化技术有限公司 Control method and device based on industrial Ethernet
JP6731602B1 (en) * 2019-02-28 2020-07-29 株式会社安川電機 Slave device and communication system
JP7107262B2 (en) 2019-03-14 2022-07-27 オムロン株式会社 Control system and controller
JP7070479B2 (en) * 2019-03-14 2022-05-18 オムロン株式会社 Control system and control unit
JP7238534B2 (en) * 2019-03-27 2023-03-14 オムロン株式会社 Network management device, management method, management program and recording medium
JP7238535B2 (en) * 2019-03-27 2023-03-14 オムロン株式会社 Network management device, management method, management program and recording medium
JP6969585B2 (en) * 2019-03-29 2021-11-24 オムロン株式会社 Master unit, arithmetic processing unit, programmable logic controller, network, and information processing method
JP7230677B2 (en) * 2019-05-13 2023-03-01 オムロン株式会社 Control device
JP7172853B2 (en) 2019-05-22 2022-11-16 オムロン株式会社 CONTROL DEVICE, NETWORK SYSTEM, NETWORK SYSTEM CONTROL METHOD AND CONTROL PROGRAM
DE102019114303B3 (en) * 2019-05-28 2020-09-17 Beckhoff Automation Gmbh Method for detecting network participants in an automation network and automation network
DE102020004769A1 (en) 2019-09-06 2021-03-11 Sew-Eurodrive Gmbh & Co Kg ETHERCAT bus system, having an ETHERCAT bus master and ETHERCAT bus participant
CN112751697B (en) * 2019-10-31 2023-11-21 华为技术有限公司 Network topology discovery method and node equipment
CN111984496B (en) * 2020-07-16 2024-04-16 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for monitoring stack memory leakage
JP2022110963A (en) * 2021-01-19 2022-07-29 オムロン株式会社 Master device, slave device, network system, communication control method, and computer program
JP2023006295A (en) * 2021-06-30 2023-01-18 オムロン株式会社 Communication device, communication control method, and communication control program
CN114280505A (en) * 2021-12-20 2022-04-05 广东电网有限责任公司 Power grid connection mode diagnosis method and system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09284316A (en) * 1996-04-18 1997-10-31 Yokogawa Electric Corp Communication controller
JP3452117B2 (en) * 1997-10-27 2003-09-29 オムロン株式会社 I / O device control method
JP2002158668A (en) * 2000-11-17 2002-05-31 Denso Corp Abnormality detector of network system for vehicle
US7200118B2 (en) * 2001-07-17 2007-04-03 International Business Machines Corporation Identifying faulty network components during a network exploration
JP2003307538A (en) * 2002-04-17 2003-10-31 Yazaki Corp Method for diagnosing vehicle electrical system
JP2006129235A (en) 2004-10-29 2006-05-18 Tokyo Electron Device Ltd Network system, master device, slave device, and network system startup controlling method
WO2007140165A2 (en) * 2006-05-26 2007-12-06 Whaleback Systems Corporation Selecting routes through a network
JP4888067B2 (en) 2006-11-13 2012-02-29 日本電気株式会社 Layer 2 switch and network monitoring method
CN101018115B (en) * 2007-02-13 2010-05-19 山东大学 Real time synchronization network based on the standard Ethernet and its operating method
JP2010034876A (en) 2008-07-29 2010-02-12 Oki Electric Ind Co Ltd Fault monitoring server and network failure monitoring system
JP2010206252A (en) * 2009-02-27 2010-09-16 Mitsubishi Electric Corp Protocol conversion system, instruction device, protocol conversion device, and protocol conversion method
JP2010278897A (en) * 2009-05-29 2010-12-09 Renesas Electronics Corp Communication data processing circuit and communication data processing method

Also Published As

Publication number Publication date
EP2672662A4 (en) 2014-09-03
CN103404082A (en) 2013-11-20
EP2672662A1 (en) 2013-12-11
JP2012195653A (en) 2012-10-11
WO2012124160A1 (en) 2012-09-20
CN103404082B (en) 2016-03-30
US20140047056A1 (en) 2014-02-13
US9680691B2 (en) 2017-06-13

Similar Documents

Publication Publication Date Title
JP5229343B2 (en) Connection abnormality detection method, network system, and master device
US7613108B2 (en) Redundant supervisory control system, and redundancy switching method of the same
JP5858037B2 (en) Network system, master device and network system control method
US9218230B2 (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
JP2007312043A (en) Remote i/o system
US20130211552A1 (en) Method for electing an active master device from two redundant master devices
Keroglou et al. Distributed fault diagnosis in discrete event systems via set intersection refinements
EP3384355B1 (en) Root cause analysis of failure to meet communication requirements in a process control system
JP6606293B2 (en) Method and device for monitoring data processing and data transmission within the safety chain of a safety system
CN102918809B (en) The method of network and expanding element and operational network
CN103312765B (en) The accessibility of the node of the network of checking industrial automation and control system
JP4697484B2 (en) PLC system
JP2008152543A (en) Diagnostic method and system for external signal input and output unit
JP5212509B2 (en) Address setting method in network system
JP6194835B2 (en) Steel plant control system
TWI779124B (en) Communication system, controlled machine, and control method of communication system
JP5687972B2 (en) Fault link identification system and monitoring route setting method thereof
US20230006939A1 (en) Establishing Time-Sensitive Communications Between Industrial End Devices and an Ethernet Network
JP2021139820A (en) Cable abnormality determination system, sleeve device, and method for determining cable abnormality
US11356358B2 (en) Network node, computer program, computer-readable medium and method for fail-safe data transmission
JP6272264B2 (en) Information processing apparatus and network system
CN104993968B (en) The control method and system of the network equipment in a kind of software defined network
JP5349229B2 (en) Method for identifying fault location in packet ring network and system for executing the method
JP5817658B2 (en) Connection monitoring method
JP2023161769A (en) Switching method for duplex communication interface module

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121228

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130304

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

Free format text: PAYMENT UNTIL: 20160329

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5229343

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150