Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7639355B2 - Master device, slave device, network system, communication control method, and computer program - Google Patents
[go: Go Back, main page]

JP7639355B2 - Master device, slave device, network system, communication control method, and computer program - Google Patents

Master device, slave device, network system, communication control method, and computer program Download PDF

Info

Publication number
JP7639355B2
JP7639355B2 JP2021006725A JP2021006725A JP7639355B2 JP 7639355 B2 JP7639355 B2 JP 7639355B2 JP 2021006725 A JP2021006725 A JP 2021006725A JP 2021006725 A JP2021006725 A JP 2021006725A JP 7639355 B2 JP7639355 B2 JP 7639355B2
Authority
JP
Japan
Prior art keywords
slave devices
timeout
upper limit
communication
detections
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
JP2021006725A
Other languages
Japanese (ja)
Other versions
JP2022110963A (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 JP2021006725A priority Critical patent/JP7639355B2/en
Priority to PCT/JP2021/008557 priority patent/WO2022157992A1/en
Publication of JP2022110963A publication Critical patent/JP2022110963A/en
Application granted granted Critical
Publication of JP7639355B2 publication Critical patent/JP7639355B2/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L13/00Details of the apparatus or circuits covered by groups H04L15/00 or H04L17/00

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

本発明は、マスタ装置、スレーブ装置、ネットワークシステム、通信制御方法およびコンピュータプログラムに関する。 The present invention relates to a master device, a slave device, a network system, a communication control method, and a computer program.

ファクトリーオートメーション(Factory Automation:FA)の分野においては、作業の工程を分担する様々な種類の装置の制御が行われる。工場施設等一定の領域において作業に用いられる各種のコントローラ、リモートI/O、および製造装置を連携して動作させるために、これらの装置を接続する、フィールドネットワークとも呼ばれる産業用ネットワークシステムが構築されている。 In the field of factory automation (FA), various types of devices that share the work process are controlled. To enable the various controllers, remote I/O, and manufacturing equipment used in work in a certain area such as a factory facility to work in coordination, an industrial network system, also known as a field network, is constructed to connect these devices.

一般的な産業用ネットワークシステムでは、各種のスレーブ装置と、マスタ装置などから構成されるマスタスレーブ方式のネットワークが用いられる。スレーブ装置は、工場内に設置される設備の制御あるいはデータ収集を行う装置である。マスタ装置は、これらのスレーブを集中管理する、例えば(PLC:Programmable Logic Controller)と呼ばれる装置である。EtherCAT(登録商標)あるいはEthernet/IP(登録商標)はそうした産業用ネットワークシステムの方式の例である(ETHERNET:登録商標)。このような産業用ネットワークシステムにおいては、通信用ケーブルが各装置間に張り巡らされ、ネットワークが構築されている。 A typical industrial network system uses a master-slave network consisting of various slave devices and a master device. The slave devices are devices that control the equipment installed in the factory or collect data. The master device is a device called a PLC (Programmable Logic Controller), for example, that centrally manages these slaves. EtherCAT (registered trademark) and Ethernet/IP (registered trademark) are examples of such industrial network system formats (ETHERNET: registered trademark). In such an industrial network system, communication cables are stretched between each device to create a network.

これに関連する技術として、下記の特許文献1に開示された技術がある。特許文献1は、データの再送制御機能を有する移動通信装置に関する。移動通信装置は、受信側装置におけるデータの受信品質レベルに応じて、複数の無線フレームの一部を再送専用フレームに設定する設定部と、失敗応答を受信側装置より受信すると、失敗応答の受信タイミングに対応する無線フレームに正常に受信されなかったデータを再度割り当てて再送するとともに、さらに再送専用フレームに当該データを割り当てて再送する再送制御部とを備え、再送専用フレームを設定することにより、データの再送可能回数を再送専用フレームが設定される前の最大再送回数より増加させる。 A related technique is disclosed in Patent Document 1 below. Patent Document 1 relates to a mobile communication device having a data retransmission control function. The mobile communication device includes a setting unit that sets some of multiple wireless frames to dedicated retransmission frames according to the reception quality level of data at the receiving device, and a retransmission control unit that, upon receiving a failure response from the receiving device, reallocates and retransmits data that was not successfully received in a wireless frame corresponding to the reception timing of the failure response, and further allocates and retransmits the data in the dedicated retransmission frame. By setting the dedicated retransmission frame, the number of times data can be retransmitted is increased beyond the maximum number of retransmissions before the dedicated retransmission frame was set.

国際公開第2008/120275号International Publication No. 2008/120275

産業用ネットワークシステムにおいて、様々な要因によってノイズが発生し、そのノイズによって通信が行えない状態が発生する場合がある。上述の特許文献1は、再送専用フレームを設定し、データの再送可能回数を再送専用フレームが設定される前の最大再送回数より増加させることにより、失敗応答に対処するものである。 In industrial network systems, noise can occur due to various factors, and this noise can cause communication to be impossible. The above-mentioned Patent Document 1 deals with failure responses by setting a dedicated retransmission frame and increasing the number of times data can be retransmitted beyond the maximum number of retransmissions before the dedicated retransmission frame was set.

しかしながら、特許文献1は、移動通信装置に関するものであり、この技術を産業用ネットワークシステムに適用することはできない。 However, Patent Document 1 relates to mobile communication devices, and this technology cannot be applied to industrial network systems.

本発明は上記の問題点を鑑みてなされたものであり、産業用ネットワークシステムにおいて、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能なマスタ装置等を実現することを目的とする。 The present invention was made in consideration of the above problems, and aims to realize a master device or the like that can avoid communication failures in an industrial network system even when the communication status of the communication network temporarily deteriorates.

本発明は、上述の課題を解決するために、以下の構成を採用する。 To solve the above problems, the present invention adopts the following configuration.

本発明の一側面に係るマスタ装置は、通信ネットワークを介して複数のスレーブ装置との間で通信を行う通信部と、通信部を介して複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、複数のスレーブ装置のタイムアウト検出回数の上限値を変更し、通信部を介して変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信する制御部とを備える。 A master device according to one aspect of the present invention includes a communication unit that communicates with multiple slave devices via a communication network, and a control unit that, upon receiving from one of the multiple slave devices via the communication unit that information regarding the signal quality of a communication cable is an abnormal value, changes the upper limit of the number of timeout detections of the multiple slave devices and transmits the changed upper limit of the number of timeout detections to the multiple slave devices via the communication unit.

上記構成によれば、制御部が、通信部を介して変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 According to the above configuration, the control unit transmits the changed upper limit value of the number of timeout detections to the multiple slave devices via the communication unit, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.

上記一側面に係るマスタ装置において、マスタ装置はさらに、複数のスレーブ装置のそれぞれのタイムアウト検出回数の上限値を記憶する記憶部を備え、制御部は、通信部を介して複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、記憶部に記憶される複数のスレーブ装置のそれぞれのタイムアウト検出回数の上限値を増加し、通信部を介して複数のスレーブ装置に対応するタイムアウト検出回数の上限値を送信する。 In the master device according to the above aspect, the master device further includes a memory unit that stores an upper limit value of the number of timeout detections for each of the plurality of slave devices, and when the control unit receives from one of the plurality of slave devices via the communication unit that information relating to the signal quality of the communication cable is an abnormal value, the control unit increases the upper limit value of the number of timeout detections for each of the plurality of slave devices stored in the memory unit and transmits the upper limit value of the number of timeout detections corresponding to the plurality of slave devices via the communication unit.

上記構成によれば、記憶部に記憶される複数のスレーブ装置のそれぞれのタイムアウト検出回数の上限値を増加するので、スレーブ装置においてパケットを送受信できないといった状況を回避することが可能となる。 With the above configuration, the upper limit of the number of timeout detections for each of the multiple slave devices stored in the memory unit is increased, making it possible to avoid situations in which the slave device is unable to send or receive packets.

上記一側面に係るマスタ装置において、制御部は、通信部を介して複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、通信部を介して複数のスレーブ装置の全てに対して同じタイムアウト検出回数の上限値を送信する。 In the master device according to the above aspect, when the control unit receives information from one of the multiple slave devices via the communication unit indicating that the information on the signal quality of the communication cable is an abnormal value, the control unit transmits the same upper limit value of the number of timeout detections to all of the multiple slave devices via the communication unit.

上記構成によれば、制御部が、通信部を介して複数のスレーブ装置の全てに対して同じタイムアウト検出回数の上限値を送信するので、通信ケーブルの信号品質に関する情報が正常値であるスレーブ装置でパケットを送受信できないといった状況を回避することが可能となる。 With the above configuration, the control unit transmits the same upper limit value for the number of timeout detections to all of the multiple slave devices via the communication unit, making it possible to avoid a situation in which a slave device whose information on the signal quality of the communication cable is normal is unable to send or receive packets.

上記一側面に係るマスタ装置において、制御部は、通信部を介して通信ケーブルの信号品質に関する情報が異常値となっていたスレーブ装置から、通信ケーブルの信号品質に関する情報が正常値になっていることを受信すると、複数のスレーブ装置に対して元のタイムアウト検出回数の上限値に戻すように指示する。 In the master device according to the above aspect, when the control unit receives, via the communication unit, from a slave device whose information on the signal quality of the communication cable was an abnormal value, that the information on the signal quality of the communication cable is now a normal value, the control unit instructs the multiple slave devices to restore the upper limit of the number of timeout detections to the original value.

上記構成によれば、複数のスレーブ装置に対して元のタイムアウト検出回数の上限値に戻すように指示するので、通信ネットワークの通信状態が正常に戻っている場合に、それに対応することが可能となる。 With the above configuration, multiple slave devices are instructed to return to the original upper limit value for the number of timeout detections, making it possible to respond when the communication state of the communication network returns to normal.

本発明の一側面に係るスレーブ装置は、マスタ装置との間で通信を行う通信部と、接続される通信ケーブルの信号品質に関する情報を取得し、当該通信ケーブルの信号品質に関する情報が異常値となっている場合、通信部を介してマスタ装置に通信ケーブルの信号品質に関する情報が異常値となっていることを通知し、通信部を介してマスタ装置から変更後のタイムアウト検出回数の上限値を受信すると、当該タイムアウト検出回数の上限値を設定する制御部とを備える。 A slave device according to one aspect of the present invention includes a communication unit that communicates with a master device, and a control unit that acquires information about the signal quality of a connected communication cable, and if the information about the signal quality of the communication cable is an abnormal value, notifies the master device via the communication unit that the information about the signal quality of the communication cable is an abnormal value, and when a changed upper limit value for the number of timeout detections is received from the master device via the communication unit, sets the upper limit value for the number of timeout detections.

上記構成によれば、制御部が、通信部を介してマスタ装置から変更後のタイムアウト検出回数の上限値を受信すると、当該タイムアウト検出回数の上限値を設定するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 According to the above configuration, when the control unit receives the changed upper limit of the number of timeout detections from the master device via the communication unit, the control unit sets the upper limit of the number of timeout detections, so that it is possible to avoid communication failure even if the communication state of the communication network temporarily deteriorates.

本発明の一側面に係るネットワークシステムは、マスタ装置と、複数のスレーブ装置とを備えるネットワークシステムであって、マスタ装置は、通信ネットワークを介して複数のスレーブ装置との間で通信を行う第1の通信部と、第1の通信部を介して複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、複数のスレーブ装置のタイムアウト検出回数の上限値を変更し、第1の通信部を介して変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信する第1の制御部とを含み、複数のスレーブ装置のそれぞれは、マスタ装置との間で通信を行う第2の通信部と、通信ケーブルの信号品質に関する情報を取得し、当該通信ケーブルの信号品質に関する情報が異常値となっている場合、第2の通信部を介してマスタ装置に通信ケーブルの信号品質に関する情報が異常値となっていることを通知し、第2の通信部を介してマスタ装置から変更後のタイムアウト検出回数の上限値を受信すると、当該タイムアウト検出回数の上限値を設定する第2の制御部とを含む。 A network system according to one aspect of the present invention is a network system including a master device and a plurality of slave devices, the master device including a first communication unit that communicates with the plurality of slave devices via a communication network, and a first control unit that, when receiving from any of the plurality of slave devices via the first communication unit that information on the signal quality of the communication cable is an abnormal value, changes the upper limit of the number of timeout detections of the plurality of slave devices and transmits the changed upper limit of the number of timeout detections to the plurality of slave devices via the first communication unit, and each of the plurality of slave devices includes a second communication unit that communicates with the master device, and a second control unit that acquires information on the signal quality of the communication cable, notifies the master device via the second communication unit that the information on the signal quality of the communication cable is an abnormal value when the information on the signal quality of the communication cable is an abnormal value, and sets the upper limit of the number of timeout detections when the changed upper limit of the number of timeout detections is received from the master device via the second communication unit.

上記構成によれば、第1の制御部が、第1の通信部を介して変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 According to the above configuration, the first control unit transmits the changed upper limit of the number of timeout detections to the multiple slave devices via the first communication unit, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.

本発明の一側面に係る通信制御方法は、マスタ装置が、複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、複数のスレーブ装置のタイムアウト検出回数の上限値を変更するステップと、変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信するステップとを含む。 A communication control method according to one aspect of the present invention includes a step of changing the upper limit of the number of timeout detections of the multiple slave devices when a master device receives from one of the multiple slave devices that information on the signal quality of a communication cable is an abnormal value, and a step of transmitting the changed upper limit of the number of timeout detections to the multiple slave devices.

上記構成によれば、マスタ装置が、変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 With the above configuration, the master device transmits the changed upper limit of the number of timeout detections to multiple slave devices, making it possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.

本発明の一側面に係るコンピュータプログラムは、コンピュータに通信制御方法を実行させるためのコンピュータプログラムであって、通信制御方法は、複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、複数のスレーブ装置のタイムアウト検出回数の上限値を変更するステップと、変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信するステップとを含む。 A computer program according to one aspect of the present invention is a computer program for causing a computer to execute a communication control method, the communication control method including the steps of: when receiving from one of a plurality of slave devices information indicating that the signal quality of a communication cable is an abnormal value, changing the upper limit of the number of timeout detections of the plurality of slave devices; and transmitting the changed upper limit of the number of timeout detections to the plurality of slave devices.

上記構成によれば、マスタ装置が、変更後のタイムアウト検出回数の上限値を複数のスレーブ装置に送信するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 With the above configuration, the master device transmits the changed upper limit of the number of timeout detections to multiple slave devices, making it possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.

本発明の一側面に係るマスタ装置、本発明の一側面に係るスレーブ装置、本発明の一側面に係るネットワークシステム、本発明の一側面に係る通信制御方法、本発明の一側面に係るコンピュータプログラムのいずれかによれば、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 According to any one of the master device according to an aspect of the present invention, the slave device according to an aspect of the present invention, the network system according to an aspect of the present invention, the communication control method according to an aspect of the present invention, and the computer program according to an aspect of the present invention, it is possible to avoid communication failure even when the communication state of the communication network temporarily deteriorates.

本発明の実施形態に係るネットワークシステムに含まれるマスタ装置の機能的構成を示すブロック図である。2 is a block diagram showing a functional configuration of a master device included in the network system according to the embodiment of the present invention. FIG. マスタ装置によるタイムアウト検出回数の上限値の変更を模式的に示す図である。11A and 11B are diagrams illustrating changes made by the master device to the upper limit of the number of timeout detections. 本発明の実施形態に係るマスタ装置を備えたネットワークシステムの概略構成を示す図である。1 is a diagram showing a schematic configuration of a network system including a master device according to an embodiment of the present invention; マスタ装置の処理手順を説明するためのフローチャートである。10 is a flowchart illustrating a processing procedure of the master device. PCまたはHMIの処理手順を説明するためのフローチャートである。10 is a flowchart for explaining a processing procedure of a PC or an HMI. 本発明の実施形態に係るネットワークシステムに含まれるスレーブ装置の機能的構成を示すブロック図である。FIG. 2 is a block diagram showing a functional configuration of a slave device included in a network system according to an embodiment of the present invention. 本発明の実施形態に係るスレーブ装置の処理手順を説明するためのフローチャートである。5 is a flowchart illustrating a processing procedure of a slave device according to an embodiment of the present invention.

以下、本発明の一側面に係る実施の形態(以下、「本実施形態」とも表記する)が、図面に基づいて説明される。 Below, an embodiment of one aspect of the present invention (hereinafter also referred to as "this embodiment") will be described with reference to the drawings.

§1 適用例
(マスタ装置10の構成例)
図1は、本発明の実施形態に係るネットワークシステム1に含まれるマスタ装置10の機能的構成を示すブロック図である。ネットワークシステム1は、マスタ装置10と、ハブ装置17と、スレーブ装置21a~21eと、PC(Personal Computer)30とを含む。
§1 Application example (Example of configuration of master device 10)
1 is a block diagram showing the functional configuration of a master device 10 included in a network system 1 according to an embodiment of the present invention. The network system 1 includes the master device 10, a hub device 17, slave devices 21a to 21e, and a PC (Personal Computer) 30.

マスタ装置10と、スレーブ装置21aおよびPC30とは、EtherCAT(登録商標)、Ethernet/IP(登録商標)等の通信ネットワークによって接続されている。本実施形態においては、これらの装置がEthernet/IP(登録商標)の通信ネットワークに接続されている場合について説明するが、これに限定されない。通信ネットワークは、例えば、メカトロリンク(登録商標)、CC-Link(登録商標)等のネットワークシステムであってもよい。 The master device 10, the slave device 21a, and the PC 30 are connected by a communication network such as EtherCAT (registered trademark) or Ethernet/IP (registered trademark). In this embodiment, a case where these devices are connected to an Ethernet/IP (registered trademark) communication network is described, but this is not limited to this. The communication network may be, for example, a network system such as Mechatrolink (registered trademark) or CC-Link (registered trademark).

図1に示すように、マスタ装置10とスレーブ装置21aとが通信ケーブル61によって接続される。同様に、スレーブ装置21aとスレーブ装置21bとが通信ケーブル62によって接続され、スレーブ装置21bとハブ装置17とが通信ケーブル63によって接続される。ハブ装置17とスレーブ装置21cとが通信ケーブル64によって接続され、ハブ装置17とスレーブ装置21dとが通信ケーブル65によって接続され、ハブ装置17とスレーブ装置21eとが通信ケーブル66によって接続される。スレーブ装置21a~21bは、デイジーチェーン接続によって接続され、スレーブ装置21c~21eは、スター接続によって接続される。 As shown in FIG. 1, master device 10 and slave device 21a are connected by communication cable 61. Similarly, slave device 21a and slave device 21b are connected by communication cable 62, and slave device 21b and hub device 17 are connected by communication cable 63. Hub device 17 and slave device 21c are connected by communication cable 64, hub device 17 and slave device 21d are connected by communication cable 65, and hub device 17 and slave device 21e are connected by communication cable 66. Slave devices 21a to 21b are connected by a daisy chain connection, and slave devices 21c to 21e are connected by a star connection.

スレーブ装置21a~21eは、物理層を制御するための回路(PHY回路と呼ぶことにする。)を有しており、PHY回路によって接続される通信ケーブルのSQI(Signal Quality Indicator)(通信ケーブルの信号品質に関する情報)値を取得することが可能である。 Slave devices 21a to 21e have a circuit for controlling the physical layer (hereinafter referred to as a PHY circuit), and are capable of acquiring the SQI (Signal Quality Indicator) (information related to the signal quality of the communication cable) value of the communication cable connected by the PHY circuit.

マスタ装置10は、制御部(第1の制御部)101と、記憶部102と、通信部(第1の通信部)103とを含む。通信部103は、Ethernet/IP(登録商標)等の通信ネットワークを介してスレーブ装置21aおよびPC30と接続される。なお、通信部103およびスレーブ装置21a~21eの通信は、サイクリック通信によって行われる。 The master device 10 includes a control unit (first control unit) 101, a memory unit 102, and a communication unit (first communication unit) 103. The communication unit 103 is connected to the slave device 21a and the PC 30 via a communication network such as Ethernet/IP (registered trademark). Note that communication between the communication unit 103 and the slave devices 21a to 21e is performed by cyclic communication.

記憶部102は、RAM(Random Access Memory)、フラッシュメモリ、ハードディスク等によって構成され、制御部101が参照するデータを記憶すると共に、一次記憶領域として使用される。 The memory unit 102 is composed of RAM (Random Access Memory), flash memory, a hard disk, etc., and stores data referenced by the control unit 101 and is used as a primary memory area.

記憶部102は、スレーブ装置21a~21eのそれぞれのタイアウト検出回数の上限値を記憶している。このタイムアウト検出回数の上限値は、ユーザによって予めスレーブ装置21a~21e毎に設定されている。また、全てのスレーブ装置21a~21eに同じタイムアウト検出回数の上限値が設定されていてもよい。 The memory unit 102 stores the upper limit of the number of timeout detections for each of the slave devices 21a to 21e. This upper limit of the number of timeout detections is set in advance by the user for each of the slave devices 21a to 21e. In addition, the same upper limit of the number of timeout detections may be set for all of the slave devices 21a to 21e.

制御部101は、複数のスレーブ装置21a~21eのいずれかから、SQI値が異常値であることを受信すると、記憶部102に記憶される各スレーブ装置21a~21eのタイムアウト検出回数の上限値を読み出す。そして、制御部101は、それぞれのタイムアウト検出回数の上限値を変更し、通信部103を介して対応するスレーブ装置21a~21eに送信する。例えば、制御部101は、それぞれのタイムアウト検出回数の上限値に“1”を加算して、通信部103を介して対応するスレーブ装置21a~21eに送信する。 When the control unit 101 receives a message from one of the slave devices 21a to 21e that the SQI value is abnormal, it reads out the upper limit of the number of timeout detections for each slave device 21a to 21e stored in the memory unit 102. The control unit 101 then changes the upper limit of each timeout detection count and transmits it to the corresponding slave device 21a to 21e via the communication unit 103. For example, the control unit 101 adds "1" to the upper limit of each timeout detection count and transmits it to the corresponding slave device 21a to 21e via the communication unit 103.

また、制御部101は、記憶部102に記憶される各スレーブ装置21a~21eのタイムアウト検出回数の上限値の中で最も大きい値に“1”を加算し、全てのスレーブ装置21a~21eに同じタイムアウト検出回数の上限値を送信するようにしてもよい。 The control unit 101 may also add "1" to the largest upper limit value of the number of timeout detections for each slave device 21a to 21e stored in the memory unit 102, and transmit the same upper limit value of the number of timeout detections to all slave devices 21a to 21e.

その後、制御部101は、通信部103を介して、SQI値が異常値であったスレーブ装置から、SQI値が正常値であるとの通知を受信すると、記憶部102に記憶される各スレーブ装置21a~21eのタイムアウト検出回数の上限値を読み出し、スレーブ装置21a~21eに対応するタイムアウト検出回数の上限値を送信することにより、タイムアウト検出回数を元に戻すように指示する。 Then, when the control unit 101 receives a notification via the communication unit 103 from a slave device whose SQI value was abnormal that the SQI value is now normal, it reads the upper limit value of the timeout detection count for each slave device 21a to 21e stored in the memory unit 102, and instructs the slave devices 21a to 21e to reset the number of timeout detections to the original value by transmitting the upper limit value of the timeout detection count corresponding to each slave device 21a to 21e.

スレーブ装置21a~21eのそれぞれには、入力ポートと出力ポートとが設けられており、それぞれのポートに通信ケーブルが接続される。スレーブ装置21a~21eは、入力ポートおよび出力ポートのいずれのSQI値も取得することが可能である。 Each of the slave devices 21a to 21e has an input port and an output port, and a communication cable is connected to each port. The slave devices 21a to 21e can obtain the SQI value of both the input port and the output port.

スレーブ装置21a~21eのそれぞれは、定期的に自身のスレーブ装置に接続される通信ケーブルのSQI値を計測し、SQI値が異常値になっているか否かを判定する。例えば、スレーブ装置21a~21eのそれぞれは、100ms周期(所定周期)で通信ケーブルのSQI値を取得し、10回(所定回数)のSQI値の平均値を、それぞれのスレーブ装置のSQI値とする。 Each of the slave devices 21a to 21e periodically measures the SQI value of the communication cable connected to the slave device and determines whether the SQI value is abnormal. For example, each of the slave devices 21a to 21e acquires the SQI value of the communication cable at a 100 ms cycle (predetermined cycle), and sets the average of the SQI values acquired 10 times (predetermined number of times) as the SQI value of each slave device.

そして、スレーブ装置21a~21eのそれぞれは、そのSQI値と予め定められた所定値とを比較することよって、SQI値が異常値になっているか否かを判定する。例えば、予め定められた所定値は、「40」であり、SQI値がこの所定値以下の場合に、SQI値が異常値であると判定される。 Then, each of the slave devices 21a to 21e compares the SQI value with a predetermined value to determine whether the SQI value is abnormal. For example, the predetermined value is "40," and if the SQI value is equal to or less than this value, the SQI value is determined to be abnormal.

上述のように、マスタ装置10およびスレーブ装置21a~21eの通信は、サイクリック通信によって行っており、マスタ装置10がパケットをスレーブ装置21aに送信する。スレーブ装置21aは、パケットを受信すると、そのパケットにデータを書き込み、スレーブ装置21bにそのパケットを送信する。同様にして、パケットが順次スレーブ装置に送信され、最後のスレーブ装置21eがパケットにデータを書き込んだ後、マスタ装置10に対してパケットが送信される。このようにして、各スレーブ装置21a~21eが、1つのパケットに順次データを書き込んで送信するので、マスタ装置10は、高速で各スレーブ装置21a~21eのデータを取得することができる。 As described above, communication between the master device 10 and the slave devices 21a to 21e is carried out by cyclic communication, with the master device 10 sending a packet to the slave device 21a. When the slave device 21a receives the packet, it writes data into the packet and sends it to the slave device 21b. In the same manner, packets are sent to the slave devices in sequence, and after the last slave device 21e writes data into the packet, it sends the packet to the master device 10. In this way, each of the slave devices 21a to 21e writes data into one packet in sequence and sends it, so that the master device 10 can obtain the data from each of the slave devices 21a to 21e at high speed.

マスタ装置10とスレーブ装置21aとの間、またはスレーブ装置21a~21e間でパケットの送信が行えない状態になっていると、マスタ装置10は、所定時間内にパケットを受信できないため、タイムアウトを検出したことをスレーブ装置21a~21eに通知する。そして、マスタ装置10は、パケットの再送を行う。 If packets cannot be transmitted between master device 10 and slave device 21a, or between slave devices 21a to 21e, master device 10 will notify slave devices 21a to 21e that it has detected a timeout because it was unable to receive the packet within a specified time. Then, master device 10 will resend the packet.

スレーブ装置21a~21eのそれぞれは、タイムアウト検出回数の上限値となるまで、パケットが受信できないことを許容する。したがって、通信不能状態が発生しているスレーブ装置以外のスレーブ装置において、小さい値のタイムアウト検出回数の上限値が設定されていれば、そのスレーブ装置が先にタイムアウトを検出するという状況が起こり得る。このような事態を回避するために、通信ケーブル61~66のいずれかのSQI値が異常値となった場合に、マスタ装置10は、各スレーブ装置21a~21eのタイムアウト検出回数の上限値を変更する処理を行う。 Each of the slave devices 21a to 21e tolerates not being able to receive packets until the upper limit of the timeout detection count is reached. Therefore, if a small upper limit of the timeout detection count is set in a slave device other than the slave device in which communication is not possible, that slave device may detect the timeout first. To avoid this situation, if the SQI value of any of the communication cables 61 to 66 becomes abnormal, the master device 10 performs a process to change the upper limit of the timeout detection count for each of the slave devices 21a to 21e.

図2は、マスタ装置10による各スレーブ装置21a~21eのタイムアウト検出回数の上限値の変更を模式的に示す図である。スレーブ装置21aは、マスタ装置10と自身のスレーブ装置21aとを接続する通信ケーブル61のSQI値を計測し、SQI値が異常値となっていれば、SQI値が異常値となっていることをマスタ装置10に通知する。また、スレーブ装置21aは、自身のスレーブ装置21aとスレーブ装置21bとを接続する通信ケーブル62のSQI値を計測し、SQI値が異常値となっていれば、SQI値が異常値となっていることをマスタ装置10に通知する。 Figure 2 is a diagram showing a schematic diagram of the master device 10 changing the upper limit of the number of timeout detections for each of the slave devices 21a to 21e. The slave device 21a measures the SQI value of the communication cable 61 connecting the master device 10 and its own slave device 21a, and if the SQI value is abnormal, notifies the master device 10 that the SQI value is abnormal. The slave device 21a also measures the SQI value of the communication cable 62 connecting its own slave device 21a and slave device 21b, and if the SQI value is abnormal, notifies the master device 10 that the SQI value is abnormal.

スレーブ装置21bは、自身のスレーブ装置21bとハブ装置17とを接続する通信ケーブル63のSQI値を計測し、SQI値が異常値となっていれば、SQI値が異常値となっていることをマスタ装置10に通知する。なお、スレーブ装置21aとスレーブ装置21bとを接続する通信ケーブル62のSQI値の計測は、スレーブ装置21aおよび21bのいずれが行っても構わない。 The slave device 21b measures the SQI value of the communication cable 63 connecting the slave device 21b itself to the hub device 17, and if the SQI value is abnormal, notifies the master device 10 that the SQI value is abnormal. Note that the measurement of the SQI value of the communication cable 62 connecting the slave device 21a to the slave device 21b may be performed by either the slave device 21a or 21b.

スレーブ装置21cは、自身のスレーブ装置21cとハブ装置17とを接続する通信ケーブル64のSQI値を計測し、SQI値が異常値となっていれば、SQI値が異常値となっていることをマスタ装置10に通知する。スレーブ装置21dは、自身のスレーブ装置21dとハブ装置17とを接続する通信ケーブル65のSQI値を計測し、SQI値が異常値となっていれば、SQI値が異常値となっていることをマスタ装置10に通知する。同様に、スレーブ装置21eは、自身のスレーブ装置21eとハブ装置17とを接続する通信ケーブル66のSQI値を計測し、SQI値が異常値となっていれば、SQI値が異常値となっていることをマスタ装置10に通知する。 Slave device 21c measures the SQI value of the communication cable 64 connecting its own slave device 21c to the hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal. Slave device 21d measures the SQI value of the communication cable 65 connecting its own slave device 21d to the hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal. Similarly, slave device 21e measures the SQI value of the communication cable 66 connecting its own slave device 21e to the hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal.

例えば、スレーブ装置21aとスレーブ装置21bとを接続する通信ケーブル62のSQI値が、異常値である「40」以下となっていれば、スレーブ装置21aは、SQI値が異常値となっていることをマスタ装置10に通知する。マスタ装置10は、スレーブ装置21aからSQI値が異常値となっている通知を受信すると、各スレーブ装置21a~21eのタイムアウト検出回数の上限値を変更し、スレーブ装置21a~21eのそれぞれにタイムアウト検出回数の上限値を送信する。 For example, if the SQI value of the communication cable 62 connecting the slave devices 21a and 21b is below the abnormal value of "40", the slave device 21a notifies the master device 10 that the SQI value is abnormal. When the master device 10 receives notification from the slave device 21a that the SQI value is abnormal, it changes the upper limit of the number of timeout detections for each of the slave devices 21a to 21e and transmits the upper limit of the number of timeout detections to each of the slave devices 21a to 21e.

§2 構成例
(ネットワークシステム1の全体概要)
図3は、本発明の実施形態に係るマスタ装置10を備えたネットワークシステム1の概略構成を示す図である。ネットワークシステム1は、マスタ装置10と、ハブ装置15~17と、スレーブ装置21a~21e、22a~22cおよび23a~23cと、PC(端末装置)30と、HMI(Human Machine Interface)(端末装置)40とを含む。
§2 Configuration example (Overall overview of network system 1)
3 is a diagram showing a schematic configuration of a network system 1 including a master device 10 according to an embodiment of the present invention. The network system 1 includes the master device 10, hub devices 15-17, slave devices 21a-21e, 22a-22c, and 23a-23c, a PC (terminal device) 30, and an HMI (Human Machine Interface) (terminal device) 40.

ネットワークシステムは、例えば、工場内の製造装置群が構成するフィールドネットワークシステムであってもよい。また、マスタ装置10は、例えば、PLC等の装置であってもよい。 The network system may be, for example, a field network system made up of a group of manufacturing devices in a factory. The master device 10 may be, for example, a device such as a PLC.

マスタ装置10は、ハブ装置15および16を介して、通信ネットワークによって複数のスレーブ装置21a~21c、22a~22cおよび23a~23と接続されている。また、スレーブ装置21bは、ハブ装置17を介して、スレーブ装置21c~21eと接続される。例えば、複数のスレーブ装置21a~21b、22a~22cおよび23a~23cは、デイジーチェーン接続によって接続され、スレーブ装置21c~21eは、スター接続によって接続される。 Master device 10 is connected to multiple slave devices 21a-21c, 22a-22c, and 23a-23 via a communication network through hub devices 15 and 16. Slave device 21b is also connected to slave devices 21c-21e via hub device 17. For example, multiple slave devices 21a-21b, 22a-22c, and 23a-23c are connected by a daisy chain connection, and slave devices 21c-21e are connected by a star connection.

PC30およびHMI40は、ハブ装置15を介してマスタ装置10に接続されており、マスタ装置10への指示を送信したり、各スレーブ装置21a~21eのタイムアウト検出回数の上限値をマスタ装置10に送信したりする。また、マスタ装置10が、各スレーブ装置21a~21eのタイムアウト検出回数の上限値を変更する場合、PC30およびHMI40は、マスタ装置10から変更された後のタイムアウト検出回数の上限値を受信する。そして、PC30およびHMI40は、表示部に変更された後のタイムアウト検出回数の上限値を表示するようにしてもよい。なお、PC30およびHMI40を、端末装置とも呼ぶ。 The PC 30 and the HMI 40 are connected to the master device 10 via the hub device 15, and transmit instructions to the master device 10 and transmit the upper limit of the timeout detection count of each of the slave devices 21a to 21e to the master device 10. When the master device 10 changes the upper limit of the timeout detection count of each of the slave devices 21a to 21e, the PC 30 and the HMI 40 receive the changed upper limit of the timeout detection count from the master device 10. The PC 30 and the HMI 40 may then display the changed upper limit of the timeout detection count on the display unit. The PC 30 and the HMI 40 are also referred to as terminal devices.

§3 動作例
図4は、マスタ装置10の処理手順を説明するためのフローチャートである。まず、制御部101は、通信部103を介してスレーブ装置21a~21eのいずれかからSQI値が異常値であるとの通知を受信したか否かを判定する(S1)。どのスレーブ装置からも通知を受信していなければ(S1,No),ステップS1の処理を繰り返す。
§3 Operation Example Fig. 4 is a flow chart for explaining the processing procedure of the master device 10. First, the control unit 101 judges whether or not a notification that the SQI value is an abnormal value has been received from any of the slave devices 21a to 21e via the communication unit 103 (S1). If no notification has been received from any of the slave devices (S1, No), the processing of step S1 is repeated.

また、スレーブ装置21a~21eのいずれかからSQI値が異常値であるとの通知を受信した場合、制御部101は、記憶部102に記憶される各スレーブ装置21a~21eのタイムアウト検出回数の上限値を読み出し、タイムアウト検出回数の上限値に1を加算する。そして、制御部101は、通信部103を介して各スレーブ装置21a~21eに対して対応するタイムアウト検出回数の上限値を送信し、タイムアウト検出回数の上限値の変更を指示する(S2)。 In addition, when the control unit 101 receives a notification from any of the slave devices 21a to 21e that the SQI value is abnormal, the control unit 101 reads the upper limit value of the timeout detection count for each of the slave devices 21a to 21e stored in the memory unit 102, and adds 1 to the upper limit value of the timeout detection count. The control unit 101 then transmits the corresponding upper limit value of the timeout detection count to each of the slave devices 21a to 21e via the communication unit 103, and instructs them to change the upper limit value of the timeout detection count (S2).

次に、制御部101は、保持時間が経過したか否かを判定する(S3)。この保持時間は、タイムアウト検出回数の上限値を変更した後、その状態を保持するための時間である。この保持時間は、ユーザによって予め設定されているものとする。保持時間が経過していなければ(S3,No)、ステップS3の処理を繰り返す。 Next, the control unit 101 determines whether the hold time has elapsed (S3). This hold time is the time for which the state is to be maintained after the upper limit value of the timeout detection count is changed. This hold time is assumed to be set in advance by the user. If the hold time has not elapsed (S3, No), the process of step S3 is repeated.

また、保持時間が経過していれば(S3,Yes)、制御部101は、通信部103を介してSQI値が異常値であったスレーブ装置からSQI値が正常値であるとの通知を受信したか否かを判定する(S4)。SQI値が正常値であるとの通知を受信していなければ(S4,No)、ステップS2に戻って以降の処理を繰り返す。この場合、SQI値が異常値であったスレーブ装置の通信不良が解消されていないため、再度タイムアウト検出回数の変更を行う。 If the retention time has elapsed (S3, Yes), the control unit 101 determines whether or not a notification that the SQI value is normal has been received from the slave device whose SQI value was abnormal via the communication unit 103 (S4). If a notification that the SQI value is normal has not been received (S4, No), the process returns to step S2 and repeats the subsequent steps. In this case, the communication failure of the slave device whose SQI value was abnormal has not been resolved, so the number of timeout detections is changed again.

また、通信部103を介してSQI値が正常値であるとの通知を受信していれば(S4,Yes)、制御部101は、記憶部102に記憶される各スレーブ装置21a~21eのタイムアウト検出回数の上限値を読み出し、スレーブ装置21a~21eに対応するタイムアウト検出回数の上限値を送信することにより、タイムアウト検出回数を元に戻すように指示する(S5)。 Also, if a notification is received via the communication unit 103 that the SQI value is normal (S4, Yes), the control unit 101 reads the upper limit value of the timeout detection count for each slave device 21a to 21e stored in the memory unit 102, and instructs the slave devices 21a to 21e to reset the number of timeout detections to the original value by transmitting the upper limit value of the timeout detection count corresponding to each slave device 21a to 21e (S5).

最後に、制御部101は、処理を終了するか否かを判定する(S6)。例えば、システムの停止指示を受けた場合、処理を終了すると判定する。処理を終了しない場合(S6,No)、ステップS1に戻って以降の処理を繰り返す。また、処理を終了する場合(S6,Yes)、そのまま処理を終了する。 Finally, the control unit 101 determines whether or not to end the process (S6). For example, if an instruction to stop the system is received, it determines that the process is to be ended. If the process is not to be ended (S6, No), the process returns to step S1 and the subsequent processes are repeated. If the process is to be ended (S6, Yes), the process is ended as is.

図5は、PC30またはHMI40の処理手順を説明するためのフローチャートである。まず、PC30またはHMI40は、ユーザによって、タイムアウト検出回数変更機能が有効にされたか否かを判定する(S11)。タイムアウト検出回数変更機能が有効にされていなければ(S11,No)、そのまま処理を終了する。 Figure 5 is a flowchart for explaining the processing procedure of the PC 30 or the HMI 40. First, the PC 30 or the HMI 40 determines whether or not the timeout detection count change function has been enabled by the user (S11). If the timeout detection count change function has not been enabled (S11, No), the process ends.

また、タイムアウト検出回数変更機能が有効にされていれば(S11,Yes)、PC30またはHMI40は、ユーザによって設定された各スレーブ装置21a~21eのタイムアウト検出回数の上限値を、マスタ装置10に通知する(S12)。 Also, if the timeout detection count change function is enabled (S11, Yes), the PC 30 or HMI 40 notifies the master device 10 of the upper limit of the timeout detection count for each slave device 21a to 21e set by the user (S12).

次に、PC30またはHMI40は、ユーザによって設定されたタイムアウト検出回数の上限値の変更を保持する時間を、マスタ装置10に通知する(S13)。 Next, the PC 30 or HMI 40 notifies the master device 10 of the time for which the change to the upper limit of the number of timeout detections set by the user will be retained (S13).

最後に、処理を終了するか否かが判定される(S14)。処理を終了しない場合(S14,No)、ステップS12に戻って以降の処理を繰り返す。また、処理を終了する場合(S14,Yes)、そのまま処理を終了する。 Finally, it is determined whether or not to end the process (S14). If the process is not to be ended (S14, No), the process returns to step S12 and the subsequent processes are repeated. If the process is to be ended (S14, Yes), the process is ended as is.

(スレーブ装置21aの構成例)
図6は、本発明の実施形態に係るネットワークシステム1に含まれるスレーブ装置21aの機能的構成を示すブロック図である。スレーブ装置21aは、制御部(第2の制御部)211と、記憶部212と、通信部(第2の通信部)213とを含む。なお、スレーブ装置21a~21eは、同様の構成および機能を有しているため、代表してスレーブ装置21aの説明のみを行うことにする。
(Example of the configuration of the slave device 21a)
6 is a block diagram showing the functional configuration of slave device 21a included in network system 1 according to an embodiment of the present invention. Slave device 21a includes a control unit (second control unit) 211, a storage unit 212, and a communication unit (second communication unit) 213. Note that since slave devices 21a to 21e have similar configurations and functions, only slave device 21a will be described as a representative.

通信部213は、EtherCAT(登録商標)等の通信ネットワークを介してマスタ装置10およびスレーブ装置21bと接続される。なお、通信部213およびスレーブ装置21b~21eの通信は、サイクリック通信によって行われる。 The communication unit 213 is connected to the master device 10 and the slave device 21b via a communication network such as EtherCAT (registered trademark). Note that communication between the communication unit 213 and the slave devices 21b to 21e is performed by cyclic communication.

記憶部212は、RAM、フラッシュメモリ、ハードディスク等によって構成され、制御部211が参照するデータを記憶すると共に、一次記憶領域として使用される。 The memory unit 212 is composed of RAM, flash memory, a hard disk, etc., and stores data referenced by the control unit 211 and is used as a primary memory area.

制御部211は、定期的に通信ケーブル61のSQI値を取得して、記憶部212に記憶する。例えば、制御部211は、100ms周期(所定周期)で通信ケーブル61のSQI値を取得し、10回(所定回数)分のSQI値の平均値を、通信ケーブル61のSQI値とする。そして、制御部211は、SQI値(平均値)が予め定められた異常値以下となっているか否かを判定する。 The control unit 211 periodically acquires the SQI value of the communication cable 61 and stores it in the memory unit 212. For example, the control unit 211 acquires the SQI value of the communication cable 61 at a 100 ms cycle (predetermined cycle) and sets the average of the SQI values for 10 times (predetermined number of times) as the SQI value of the communication cable 61. The control unit 211 then determines whether the SQI value (average value) is equal to or lower than a predetermined abnormal value.

SQI値が異常値となっていれば、制御部211は、通信部213を介してマスタ装置10にSQI値が異常値となっていることを通知する。その後、制御部211は、通信部213を介してマスタ装置10からタイムアウト検出回数の上限値の変更指示を受信すると、記憶部212にこのタイムアウト検出回数の上限値を記憶する。制御部211は、このタイムアウト検出回数の上限値に基づいて、パケットが受信できないことを許容する。 If the SQI value is abnormal, the control unit 211 notifies the master device 10 that the SQI value is abnormal via the communication unit 213. After that, when the control unit 211 receives an instruction to change the upper limit of the number of timeout detections from the master device 10 via the communication unit 213, it stores this upper limit of the number of timeout detections in the storage unit 212. The control unit 211 allows packets to be received in a non-received state based on this upper limit of the number of timeout detections.

また、制御部211は、タイムアウト検出回数の上限値を変更した後、定期的に通信ケーブル61のSQI値を取得し、SQI値が異常値から正常値に回復したか否かを判定する。SQI値が異常値から正常値に回復していれば、制御部211は、通信部213を介してマスタ装置10にSQI値が異常値から正常値に回復したことを通知する。 After changing the upper limit of the number of timeout detections, the control unit 211 periodically acquires the SQI value of the communication cable 61 and determines whether the SQI value has recovered from an abnormal value to a normal value. If the SQI value has recovered from an abnormal value to a normal value, the control unit 211 notifies the master device 10 via the communication unit 213 that the SQI value has recovered from an abnormal value to a normal value.

図7は、本発明の実施形態に係るスレーブ装置21aの処理手順を説明するためのフローチャートである。まず、制御部211は、通信ケーブル61のSQI値を取得し、SQI値が異常値であるか否かを判定する(S21)。SQI値が異常値でなければ(S21,No)、ステップS21の処理を繰り返す。 Figure 7 is a flowchart for explaining the processing procedure of the slave device 21a according to an embodiment of the present invention. First, the control unit 211 acquires the SQI value of the communication cable 61 and determines whether the SQI value is an abnormal value (S21). If the SQI value is not an abnormal value (S21, No), the processing of step S21 is repeated.

また、SQI値が異常値であれば(S21,Yes)、制御部211は、通信部213を介してSQI値が異常値であることをマスタ装置10に通知する(S22)。その後、制御部211は、通信部213を介してマスタ装置10からタイムアウト検出回数の上限値の変更指示を受信したか否かを判定する(S23)。 If the SQI value is abnormal (S21, Yes), the control unit 211 notifies the master device 10 that the SQI value is abnormal via the communication unit 213 (S22). After that, the control unit 211 determines whether or not an instruction to change the upper limit of the number of timeout detections has been received from the master device 10 via the communication unit 213 (S23).

タイムアウト検出回数の上限値の変更指示を受信していなければ(S23,No)、ステップS23の処理を繰り返す。また、タイムアウト検出回数の変更指示を受信していれば(S23,Yes)、記憶部212に変更後のタイムアウト検出回数の上限値を記憶し、タイムアウト検出回数の上限値を変更する(S24)。 If an instruction to change the upper limit of the number of timeout detections has not been received (S23, No), the process of step S23 is repeated. If an instruction to change the number of timeout detections has been received (S23, Yes), the changed upper limit of the number of timeout detections is stored in the memory unit 212, and the upper limit of the number of timeout detections is changed (S24).

次に、制御部211は、通信ケーブル61のSQI値を取得し、SQI値が正常値となっているか否かを判定する(S25)。SQI値が正常値となっていなければ(S25,No)、ステップS25の処理を繰り返す。また、SQI値が正常値となっていれば(S25,Yes)、制御部211は、通信部213を介してマスタ装置10にSQI値が正常値であることを通知する(S26)。 Next, the control unit 211 acquires the SQI value of the communication cable 61 and determines whether the SQI value is normal (S25). If the SQI value is not normal (S25, No), the process of step S25 is repeated. If the SQI value is normal (S25, Yes), the control unit 211 notifies the master device 10 via the communication unit 213 that the SQI value is normal (S26).

次に、制御部211は、通信部213を介してマスタ装置10からタイムアウト検出回数の上限値を元に戻す指示を受信したか否かを判定する(S27)。タイムアウト検出回数の上限値を元に戻す指示を受信していなければ(S27,No)、ステップS27の処理を繰り返す。また、タイムアウト検出回数の上限値を元に戻す指示を受信していれば(S27,Yes)、制御部211は、タイムアウト検出回数の上限値を元に戻す(S28)。 Next, the control unit 211 determines whether or not an instruction to reset the upper limit of the timeout detection count to its original value has been received from the master device 10 via the communication unit 213 (S27). If an instruction to reset the upper limit of the timeout detection count to its original value has not been received (S27, No), the process of step S27 is repeated. If an instruction to reset the upper limit of the timeout detection count to its original value has been received (S27, Yes), the control unit 211 resets the upper limit of the timeout detection count to its original value (S28).

最後に、制御部211は、処理を終了するか否かを判定する(S29)。例えば、システムの停止指示を受けた場合、処理を終了すると判定する。処理を終了しない場合(S29,No)、ステップS21に戻って以降の処理を繰り返す。また、処理を終了する場合(S29,Yes)、そのまま処理を終了する。 Finally, the control unit 211 judges whether or not to end the process (S29). For example, if an instruction to stop the system is received, it judges that the process is to be ended. If the process is not to be ended (S29, No), the process returns to step S21 and the subsequent processes are repeated. If the process is to be ended (S29, Yes), the process is ended as is.

§4 作用、効果
本発明の実施形態によれば、マスタ装置10の制御部101が、通信部103を介して変更後のタイムアウト検出回数の上限値を複数のスレーブ装置21a~21eに送信するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。
§4 Operation and Effects According to an embodiment of the present invention, the control unit 101 of the master device 10 transmits the changed upper limit value of the timeout detection count to the multiple slave devices 21a to 21e via the communication unit 103, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.

また、制御部101は、記憶部102に記憶される複数のスレーブ装置21a~21eのそれぞれのタイムアウト検出回数の上限値を増加して送信するので、スレーブ装置21a~21eにおいてパケットを送信できないといった状況を回避することが可能となる。 In addition, the control unit 101 increases the upper limit of the number of timeout detections for each of the multiple slave devices 21a to 21e stored in the memory unit 102 and transmits the increased number, making it possible to avoid a situation in which the slave devices 21a to 21e are unable to transmit packets.

また、制御部101は、通信部103を介して複数のスレーブ装置21a~21eの全てに対して同じタイムアウト検出回数の上限値を送信するので、SQI値が正常値であるスレーブ装置でタイムアウトを検出するといった状況を回避することが可能となる。 In addition, the control unit 101 transmits the same upper limit value for the number of timeout detections to all of the multiple slave devices 21a to 21e via the communication unit 103, making it possible to avoid a situation in which a timeout is detected in a slave device whose SQI value is normal.

また、制御部101は、SQI値が正常値になっていることを受信すると、複数のスレーブ装置21a~21eに対して元のタイムアウト検出回数の上限値に戻すように指示するので、通信ネットワークの通信状態が正常に戻っている場合に、それに対応することが可能となる。 In addition, when the control unit 101 receives information that the SQI value has returned to a normal value, it instructs the multiple slave devices 21a to 21e to restore the upper limit of the number of timeout detections to the original value, making it possible to respond when the communication state of the communication network has returned to normal.

また、スレーブ装置21aの制御部211が、通信部213を介してマスタ装置10から変更後のタイムアウト検出回数の上限値を受信すると、当該タイムアウト検出回数の上限値を設定するので、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。 In addition, when the control unit 211 of the slave device 21a receives the changed upper limit value of the timeout detection count from the master device 10 via the communication unit 213, the control unit 211 sets the upper limit value of the timeout detection count, so that it is possible to avoid communication failure even if the communication state of the communication network temporarily deteriorates.

〔ソフトウェアによる実現例〕
マスタ装置10およびスレーブ装置21aの機能ブロック(特に、制御部101および211)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Software implementation example]
The functional blocks of the master device 10 and the slave device 21a (particularly, the control units 101 and 211) may be realized by a logic circuit (hardware) formed on an integrated circuit (IC chip) or the like, or may be realized by software.

後者の場合、マスタ装置10およびスレーブ装置21aは、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。 In the latter case, the master device 10 and the slave device 21a are equipped with a computer that executes instructions of a program, which is software that realizes each function. This computer is equipped with, for example, one or more processors, and a computer-readable recording medium that stores the program. The object of the present invention is achieved by having the processor in the computer read and execute the program from the recording medium.

上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAMなどを更に備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 The processor may be, for example, a CPU (Central Processing Unit). The recording medium may be a "non-transient tangible medium" such as a ROM (Read Only Memory), tape, disk, card, semiconductor memory, programmable logic circuit, or the like. The computer may further include a RAM for expanding the program. The program may be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or broadcast waves). One aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.

本発明は上述した各実施形態、実施例に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態、実施例にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments and examples, and various modifications are possible within the scope of the claims. The technical scope of the present invention also includes embodiments obtained by appropriately combining the technical means disclosed in the different embodiments and examples.

1 ネットワークシステム
10 マスタ装置
15~17 ハブ装置
21a~21e,22a~22c,23a~23c スレーブ装置
30 PC
40 HMI
61~66 通信ケーブル
101,211 制御部
102,212 記憶部
103,213 通信部
1 Network system 10 Master device 15 to 17 Hub devices 21a to 21e, 22a to 22c, 23a to 23c Slave device 30 PC
40 HMI
61 to 66 Communication cable 101, 211 Control unit 102, 212 Memory unit 103, 213 Communication unit

Claims (8)

通信ネットワークを介して複数のスレーブ装置との間で通信を行う通信部と、
前記通信部を介して前記複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、前記複数のスレーブ装置のタイムアウト検出回数の上限値を変更し、前記通信部を介して変更後の前記タイムアウト検出回数の上限値を前記複数のスレーブ装置に送信する制御部とを備える、マスタ装置。
a communication unit for communicating with a plurality of slave devices via a communication network;
a control unit that, when receiving from any of the plurality of slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, changes an upper limit of the number of timeout detections of the plurality of slave devices and transmits the changed upper limit of the number of timeout detections to the plurality of slave devices via the communication unit.
前記マスタ装置はさらに、前記複数のスレーブ装置のそれぞれのタイムアウト検出回数の上限値を記憶する記憶部を備え、
前記制御部は、前記通信部を介して前記複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、前記記憶部に記憶される前記複数のスレーブ装置のそれぞれのタイムアウト検出回数の上限値を増加し、前記通信部を介して前記複数のスレーブ装置に対応するタイムアウト検出回数の上限値を送信する、請求項1に記載のマスタ装置。
the master device further includes a storage unit configured to store an upper limit value of the number of timeout detections for each of the plurality of slave devices;
2. The master device according to claim 1, wherein when the control unit receives from any one of the plurality of slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, the control unit increases an upper limit value of the number of timeout detections stored in the memory unit for each of the plurality of slave devices, and transmits the upper limit values of the number of timeout detections corresponding to the plurality of slave devices via the communication unit.
前記制御部は、前記通信部を介して前記複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、前記通信部を介して前記複数のスレーブ装置の全てに対して同じタイムアウト検出回数の上限値を送信する、請求項1に記載のマスタ装置。 The master device according to claim 1, wherein the control unit, upon receiving from any one of the plurality of slave devices via the communication unit that information relating to the signal quality of the communication cable is an abnormal value, transmits the same upper limit value of the number of timeout detections to all of the plurality of slave devices via the communication unit. 前記制御部は、前記通信部を介して前記通信ケーブルの信号品質に関する情報が異常値となっていたスレーブ装置から、前記通信ケーブルの信号品質に関する情報が正常値になっていることを受信すると、前記複数のスレーブ装置に対して元のタイムアウト検出回数の上限値に戻すように指示する、請求項1~3のいずれか1項に記載のマスタ装置。 The master device according to any one of claims 1 to 3, wherein when the control unit receives, via the communication unit, from a slave device whose information on the signal quality of the communication cable was an abnormal value, that the information on the signal quality of the communication cable has returned to a normal value, the control unit instructs the multiple slave devices to restore the upper limit value of the number of timeout detections to the original value. マスタ装置との間で通信を行う通信部と、
接続される通信ケーブルの信号品質に関する情報を取得し、当該通信ケーブルの信号品質に関する情報が異常値となっている場合、前記通信部を介して前記マスタ装置に前記通信ケーブルの信号品質に関する情報が異常値となっていることを通知し、
前記通信部を介して前記マスタ装置から、前記異常値となっていることの通知に応じて変更されたタイムアウト検出回数の上限値を受信すると、当該タイムアウト検出回数の上限値を設定する制御部とを備える、スレーブ装置。
A communication unit for communicating with a master device;
acquiring information regarding a signal quality of a communication cable to be connected, and if the information regarding the signal quality of the communication cable is an abnormal value, notifying the master device via the communication unit that the information regarding the signal quality of the communication cable is an abnormal value;
and a control unit that, when receiving from the master device via the communication unit an upper limit value for the number of timeout detections that has been changed in response to notification that the value has become abnormal , sets the upper limit value for the number of timeout detections.
マスタ装置と、複数のスレーブ装置とを備えるネットワークシステムであって、
前記マスタ装置は、通信ネットワークを介して前記複数のスレーブ装置との間で通信を行う第1の通信部と、
前記第1の通信部を介して前記複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、前記複数のスレーブ装置のタイムアウト検出回数の上限値を変更し、前記第1の通信部を介して変更後の前記タイムアウト検出回数の上限値を前記複数のスレーブ装置に送信する第1の制御部とを含み、
前記複数のスレーブ装置のそれぞれは、前記マスタ装置との間で通信を行う第2の通信部と、
前記通信ケーブルの信号品質に関する情報を取得し、当該通信ケーブルの信号品質に関する情報が異常値となっている場合、前記第2の通信部を介して前記マスタ装置に前記通信ケーブルの信号品質に関する情報が異常値となっていることを通知し、
前記第2の通信部を介して前記マスタ装置から変更後のタイムアウト検出回数の上限値を受信すると、当該タイムアウト検出回数の上限値を設定する第2の制御部とを含む、ネットワークシステム。
A network system including a master device and a plurality of slave devices,
the master device has a first communication unit that communicates with the plurality of slave devices via a communication network;
a first control unit that, when receiving information indicating that information regarding signal quality of a communication cable is an abnormal value from any one of the plurality of slave devices via the first communication unit, changes an upper limit of a number of timeout detections of the plurality of slave devices and transmits the changed upper limit of the number of timeout detections to the plurality of slave devices via the first communication unit;
Each of the plurality of slave devices includes a second communication unit that communicates with the master device;
acquiring information regarding a signal quality of the communication cable, and if the information regarding the signal quality of the communication cable is an abnormal value, notifying the master device via the second communication unit that the information regarding the signal quality of the communication cable is an abnormal value;
a second control unit that, when receiving a changed upper limit value for the number of timeout detections from the master device via the second communication unit, sets the changed upper limit value for the number of timeout detections.
マスタ装置が、複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、前記複数のスレーブ装置のタイムアウト検出回数の上限値を変更するステップと、
前記変更後のタイムアウト検出回数の上限値を前記複数のスレーブ装置に送信するステップとを含む、通信制御方法。
a step of changing an upper limit of the number of timeout detections of the plurality of slave devices when the master device receives information indicating that the signal quality of the communication cable is an abnormal value from any of the plurality of slave devices;
transmitting the changed upper limit value of the number of timeout detections to the plurality of slave devices.
コンピュータに通信制御方法を実行させるためのコンピュータプログラムであって、
前記通信制御方法は、複数のスレーブ装置のいずれかから通信ケーブルの信号品質に関する情報が異常値であることを受信すると、前記複数のスレーブ装置のタイムアウト検出回数の上限値を変更するステップと、
前記変更後のタイムアウト検出回数の上限値を前記複数のスレーブ装置に送信するステップとを含む、コンピュータプログラム。
A computer program for causing a computer to execute a communication control method,
The communication control method includes a step of changing an upper limit of a number of timeout detection counts of the plurality of slave devices when receiving, from any one of the plurality of slave devices, information indicating that the signal quality of the communication cable is an abnormal value;
and transmitting the changed upper limit value of the number of timeout detections to the plurality of slave devices.
JP2021006725A 2021-01-19 2021-01-19 Master device, slave device, network system, communication control method, and computer program Active JP7639355B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021006725A JP7639355B2 (en) 2021-01-19 2021-01-19 Master device, slave device, network system, communication control method, and computer program
PCT/JP2021/008557 WO2022157992A1 (en) 2021-01-19 2021-03-04 Master device, slave device, network system, communication control method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021006725A JP7639355B2 (en) 2021-01-19 2021-01-19 Master device, slave device, network system, communication control method, and computer program

Publications (2)

Publication Number Publication Date
JP2022110963A JP2022110963A (en) 2022-07-29
JP7639355B2 true JP7639355B2 (en) 2025-03-05

Family

ID=82548622

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021006725A Active JP7639355B2 (en) 2021-01-19 2021-01-19 Master device, slave device, network system, communication control method, and computer program

Country Status (2)

Country Link
JP (1) JP7639355B2 (en)
WO (1) WO2022157992A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008120275A1 (en) 2007-03-29 2008-10-09 Fujitsu Limited Mobile communication apparatus
JP2010273297A (en) 2009-05-25 2010-12-02 Ntt Docomo Inc Intermediate server device, transmission server device, communication system, and communication method
JP2012195653A (en) 2011-03-15 2012-10-11 Omron Corp Connection abnormality detection method, network system, and master unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008120275A1 (en) 2007-03-29 2008-10-09 Fujitsu Limited Mobile communication apparatus
JP2010273297A (en) 2009-05-25 2010-12-02 Ntt Docomo Inc Intermediate server device, transmission server device, communication system, and communication method
JP2012195653A (en) 2011-03-15 2012-10-11 Omron Corp Connection abnormality detection method, network system, and master unit

Also Published As

Publication number Publication date
WO2022157992A1 (en) 2022-07-28
JP2022110963A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN101355482B (en) Equipment, method and system for implementing identification of embedded device address sequence
CN101300534B (en) Method and system for the transmission of cyclic and acyclic data
US12276948B2 (en) Method and system for providing time-critical control applications
JP7639355B2 (en) Master device, slave device, network system, communication control method, and computer program
US10153961B2 (en) Communication device, communication method, and communication system
JP7528477B2 (en) Information processing device, information processing system, notification method, and information processing program
CN112929329B (en) Cluster control system based on Ethernet/IP protocol and communication method thereof
Shah et al. A new error handling algorithm for controller area network in networked control system
CN107809765B (en) Equipment networking system and communication method based on same
JP5123968B2 (en) Communication control method, communication control program, and master communication device
JP3939400B2 (en) Data download system
JP7636661B2 (en) Slave device, communication cable evaluation system, and communication cable evaluation method
JP2005110096A (en) Communication apparatus and method
JP5396812B2 (en) Transmission control apparatus and transmission control method
CN110768739B (en) A synchronous serial control system and method
JP7063473B2 (en) Wireless communication equipment, wireless communication system and wireless communication method
JP7593153B2 (en) Network Systems
JPS6058741A (en) Monitoring command transmission method in remote monitoring and control equipment
US7457308B2 (en) Method and data processing system for transmitting data via a data transmission unit
JP5886510B2 (en) Transmission control apparatus and transmission control method
JPH09186689A (en) Device state management method and data communication system
JPS62171349A (en) Communication control equipment
JPH05236555A (en) Remote monitor system
CN117336006A (en) Safety communication method, communication device, safety communication system and control system
CN121603316A (en) CAN-FD redundancy for high availability industrial I/O subsystem

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241105

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250203

R150 Certificate of patent or registration of utility model

Ref document number: 7639355

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150