JP2024011461A - Control system, control device, and communication method - Google Patents

Control system, control device, and communication method Download PDF

Info

Publication number
JP2024011461A
JP2024011461A JP2022113437A JP2022113437A JP2024011461A JP 2024011461 A JP2024011461 A JP 2024011461A JP 2022113437 A JP2022113437 A JP 2022113437A JP 2022113437 A JP2022113437 A JP 2022113437A JP 2024011461 A JP2024011461 A JP 2024011461A
Authority
JP
Japan
Prior art keywords
data
setting
indicated
match
network
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.)
Pending
Application number
JP2022113437A
Other languages
Japanese (ja)
Inventor
貴雅 植田
Takamasa Ueda
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 JP2022113437A priority Critical patent/JP2024011461A/en
Priority to PCT/JP2023/008837 priority patent/WO2024014047A1/en
Publication of JP2024011461A publication Critical patent/JP2024011461A/en
Pending legal-status Critical Current

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]
    • H04L12/46Interconnection of networks

Abstract

PROBLEM TO BE SOLVED: To provide a mechanism for easing design and development restrictions in a control system in which a plurality of control devices are network-connected.
SOLUTION: A relay unit determines at least one of whether data sizes match between data indicated by a first setting and data indicated by a second setting, and whether data sizes match between data indicated by a third setting and data indicated by a fourth setting. In a predetermined first state, if the data sizes do not match between the data indicated by the first setting and the data indicated by the second setting, and/or even if the data sizes do not match between the data indicated by the third setting and the data indicated by the fourth setting, the relay unit performs data transfer according to a replacement setting.
SELECTED DRAWING: Figure 1
COPYRIGHT: (C)2024,JPO&INPIT

Description

本発明は、制御システム、制御装置および通信方法に関する。 The present invention relates to a control system, a control device, and a communication method.

近年の情報通信技術の飛躍的な発展に伴って、産業用装置においてもより多くのデータを処理する必要性が高まっている。より具体的には、IoT(Internet of Things)やIndustry 4.0などに代表される、通信技術を用いた技術革新が進みつつある。これによって、システム内でやり取りされるデータは増大傾向にある。 With the rapid development of information and communication technology in recent years, there is an increasing need for industrial equipment to process more data. More specifically, technological innovation using communication technology, typified by IoT (Internet of Things) and Industry 4.0, is progressing. As a result, the amount of data exchanged within the system is increasing.

このようなデータ処理量の増大に対する解決手段の一つとして、国際公開第2013/137023号(特許文献1)は、複数の通信ラインを含む構成において、装置間のデータ更新をより適切に行うことができる構成を開示する。 As one solution to this increase in the amount of data processing, International Publication No. 2013/137023 (Patent Document 1) proposes a method for more appropriately updating data between devices in a configuration including multiple communication lines. Discloses a configuration that allows this.

複数のネットワークを用いて複数のコントローラを接続してネットワーク分散制御システムを構成する場合には、ネットワーク間のデータ転送を担当するゲートウェイである中継ユニットが用いられる。このようなゲートウェイを介して制御装置間のデータ交換を実現する。 When a network distributed control system is configured by connecting a plurality of controllers using a plurality of networks, a relay unit that is a gateway in charge of data transfer between networks is used. Data exchange between control devices is realized through such a gateway.

国際公開第2013/137023号International Publication No. 2013/137023

ネットワーク分散制御システムを設計および開発するにあたって、ある制御装置の設計変更などの影響が他の制御装置へ及ばないようにしたいというニーズがある。本発明は、複数の制御装置がネットワーク接続された制御システムにおいて、設計および開発の制限を緩和する仕組みを提供する。 When designing and developing a network distributed control system, there is a need to prevent changes in the design of one control device from affecting other control devices. The present invention provides a mechanism for easing restrictions on design and development in a control system in which a plurality of control devices are network-connected.

本発明の一例に従えば、ネットワークを介して接続された第1制御装置および第2制御装置を備える制御システムが提供される。制御システムは、第2制御装置は、制御演算を実行する演算ユニットと、ネットワークに接続するためのインターフェイスを有する中継ユニットとを含む。中継ユニットは、交換設定に従って、演算ユニットが管理するデータのネットワークを介した送信、および、ネットワークを介して受信したデータによる演算ユニットが管理するデータの更新、を含むデータ交換を実行するように構成されている。交換設定は、演算ユニットが管理するデータのうち送信対象のデータを示す第1の設定と、ネットワークを介して送信するデータを示す第2の設定と、演算ユニットが管理するデータのうち更新対象となるデータを示す第3の設定と、ネットワークを介して受信するデータを示す第4の設定とを含む。中継ユニットは、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致するか否か、および、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断し、予め定められた第1の状態において、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、交換設定に従うデータ交換を実行する。 According to an example of the present invention, a control system is provided that includes a first control device and a second control device connected via a network. In the control system, the second control device includes a calculation unit that performs control calculations and a relay unit that has an interface for connecting to a network. The relay unit is configured to perform data exchange, including transmitting data managed by the computing unit over the network and updating data managed by the computing unit with data received over the network, according to the exchange settings. has been done. The exchange settings include a first setting that indicates data to be sent among data managed by the processing unit, a second setting indicating data to be sent via the network, and a second setting indicating data to be updated among data managed by the processing unit. and a fourth setting that indicates data received via the network. The relay unit determines whether the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. In a predetermined first state, the data size between the data indicated by the first setting and the data indicated by the second setting is determined. Even if the sizes do not match and/or even if the data sizes do not match between the data indicated by the third setting and the data indicated by the fourth setting, data exchange according to the exchange setting is executed.

この構成によれば、第1制御装置および第1制御装置で実行されるプログラムなどの設計および開発を行っている過程であって、第1制御装置が送受信するデータの構成が不確定であるような場合、および/または、第2制御装置および第2制御装置で実行されるプログラムなどの設計および開発を行っている過程であって、演算ユニットが送受信するデータの構成が不確定であるような場合において、データの構成が変更されたことで、制御システム全体が動作しなくなるといった現象を回避できる。これによって、第1制御装置および第2制御装置に対する設計および開発をそれぞれ独立して行うことができる。 According to this configuration, during the process of designing and developing the first control device and the programs to be executed by the first control device, the structure of data transmitted and received by the first control device is uncertain. and/or in the process of designing and developing the second control device and the program to be executed by the second control device, and the structure of the data sent and received by the processing unit is uncertain. In some cases, it is possible to avoid a phenomenon in which the entire control system stops operating due to a change in the data configuration. Thereby, the design and development of the first control device and the second control device can be performed independently.

中継ユニットは、第1の状態においては、第1の設定が示すデータおよび第3の設定が示すデータの周期的な更新、ならびに、第2の設定が示すデータおよび第4の設定が示すデータの周期的な更新を繰返し実行するようにしてもよい。この構成によれば、交換設定が完全に一致していなくても、第1制御装置と第2制御装置との間のデータ交換、および、第2制御装置の内部におけるデータ交換は継続されるので、第1制御装置および第2制御装置のいずれか一方の変更などが他方に影響を与えるような事態を回避できる。 In the first state, the relay unit periodically updates the data indicated by the first setting and the data indicated by the third setting, and updates the data indicated by the second setting and the data indicated by the fourth setting. Periodic updates may be performed repeatedly. According to this configuration, data exchange between the first control device and the second control device and data exchange within the second control device can be continued even if the exchange settings do not completely match. , it is possible to avoid a situation where a change in either one of the first control device and the second control device affects the other.

中継ユニットは、交換設定が存在しなくても、第1制御装置とのデータ更新および演算ユニットとのデータ更新を継続するようにしてもよい。この構成によれば、交換設定に依存することなく、第1制御装置と中継ユニットとの間のデータ更新、および、演算ユニットと中継ユニットとの間のデータ更新を継続できる。 The relay unit may continue updating data with the first control device and updating data with the arithmetic unit even if there is no exchange setting. According to this configuration, data updates between the first control device and the relay unit and data updates between the arithmetic unit and the relay unit can be continued without depending on the exchange settings.

制御システムは、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致しない場合に、警告を報知する報知部をさらに含んでいてもよい。この構成によれば、ユーザは、データサイズが一致していないことを確実に認識できる。 If the data sizes do not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and the data indicated by the fourth setting It may further include a notification unit that provides a warning when the data sizes do not match. According to this configuration, the user can reliably recognize that the data sizes do not match.

中継ユニットは、第1の設定が示すデータと第2の設定が示すデータとのうち一致しているデータ、および、第3の設定が示すデータと第4の設定が示すデータとのうち一致しているデータ、についてデータ交換を実行するようにしてもよい。この構成によれば、データサイズが完全には一致しない場合であっても、可能な範囲でデータ交換を行うことができる。 The relay unit determines whether the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting match. The data exchange may be performed for the data that is currently being used. According to this configuration, even if the data sizes do not completely match, data can be exchanged to the extent possible.

中継ユニットは、予め定められたデータサイズのデータがデータ交換されるように、交換設定に基づいてダミーデータを生成するようにしてもよい。この構成によれば、データ交換の対象として、予め定められたデータサイズに固定できるので、データ交換に係る処理を簡素化および高速化できる。 The relay unit may generate dummy data based on exchange settings so that data of a predetermined data size is exchanged. According to this configuration, the data size to be exchanged can be fixed to a predetermined size, so that processing related to data exchange can be simplified and speeded up.

制御システムは、ユーザ操作に応じて、交換設定を作成するためのユーザインターフェイスを提供するようにしてもよい。この構成によれば、この構成によれば、ユーザは、ユーザインターフェイスを介して、交換設定を容易に作成できる。 The control system may provide a user interface for creating exchange settings in response to user operations. According to this configuration, the user can easily create exchange settings via the user interface.

中継ユニットは、第1の状態とは異なる第2の状態において、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致しない場合には、交換設定に従うデータ交換を停止または無効化するようにしてもよい。この構成によれば、第1制御装置が送受信するデータの構成が確定している場合、および/または、演算ユニットが送受信するデータの構成が確定している場合において、厳密なデータ交換を実現できる。 In a second state different from the first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the relay unit If the data size does not match between the data indicated by the setting and the data indicated by the fourth setting, data exchange according to the exchange setting may be stopped or invalidated. According to this configuration, exact data exchange can be achieved when the configuration of data transmitted and received by the first control device is determined and/or when the configuration of data transmitted and received by the arithmetic unit is determined. .

ユーザによって設定されるモードに応じて、第1の状態および第2の状態が決定されてもよい。この構成によれば、状況に応じて、第1の状態および第2の状態を適宜変更できる。 The first state and the second state may be determined depending on the mode set by the user. According to this configuration, the first state and the second state can be changed as appropriate depending on the situation.

本発明の別の一例に従えば、ネットワークを介して他の制御装置と接続された制御装置が提供される。制御装置は、制御演算を実行する演算ユニットと、ネットワークに接続するためのインターフェイスを有する中継ユニットとを含む。中継ユニットは、交換設定に従って、演算ユニットが管理するデータのネットワークを介した送信、および、ネットワークを介して受信したデータによる演算ユニットが管理するデータの更新、を含むデータ交換を実行するように構成されている。交換設定は、演算ユニットが管理するデータのうち送信対象のデータを示す第1の設定と、ネットワークを介して送信するデータを示す第2の設定と、演算ユニットが管理するデータのうち更新対象となるデータを示す第3の設定と、ネットワークを介して受信するデータを示す第4の設定とを含む。中継ユニットは、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致するか否か、および、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断し、予め定められた第1の状態において、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、交換設定に従うデータ交換を実行する。 According to another example of the present invention, a control device is provided that is connected to other control devices via a network. The control device includes a calculation unit that performs control calculations and a relay unit that has an interface for connecting to a network. The relay unit is configured to perform data exchange, including transmitting data managed by the computing unit over the network and updating data managed by the computing unit with data received over the network, according to the exchange settings. has been done. The exchange settings include a first setting that indicates data to be sent among data managed by the processing unit, a second setting indicating data to be sent via the network, and a second setting indicating data to be updated among data managed by the processing unit. and a fourth setting that indicates data received via the network. The relay unit determines whether the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. In a predetermined first state, the data size between the data indicated by the first setting and the data indicated by the second setting is determined. Even if the sizes do not match and/or even if the data sizes do not match between the data indicated by the third setting and the data indicated by the fourth setting, data exchange according to the exchange setting is executed.

本発明のさらに別の一例に従えば、ネットワークを介して接続された第1制御装置および第2制御装置を備える制御システムにおける通信方法が提供される。第2制御装置は、制御演算を実行する演算ユニットと、ネットワークに接続するためのインターフェイスを有する中継ユニットとを含む。通信方法は、中継ユニットが、交換設定に従って、演算ユニットが管理するデータのネットワークを介した送信、および、ネットワークを介して受信したデータによる演算ユニットが管理するデータの更新、を含むデータ交換を実行するステップを含む。交換設定は、演算ユニットが管理するデータのうち送信対象のデータを示す第1の設定と、ネットワークを介して送信するデータを示す第2の設定と、演算ユニットが管理するデータのうち更新対象となるデータを示す第3の設定と、ネットワークを介して受信するデータを示す第4の設定とを含む。通信方法は、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致するか否か、および、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断するステップと、予め定められた第1の状態において、第1の設定が示すデータと第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、第3の設定が示すデータと第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、中継ユニットが、交換設定に従うデータ交換を実行するステップとを含む。 According to yet another example of the present invention, a communication method in a control system including a first control device and a second control device connected via a network is provided. The second control device includes a calculation unit that performs control calculations and a relay unit that has an interface for connecting to a network. The communication method is such that the relay unit executes data exchange, including sending data managed by the computing unit via the network and updating data managed by the computing unit with data received via the network, according to the exchange settings. including steps to The exchange settings include a first setting that indicates data to be sent among data managed by the processing unit, a second setting indicating data to be sent via the network, and a second setting indicating data to be updated among data managed by the processing unit. and a fourth setting that indicates data received via the network. The communication method depends on whether or not the data sizes match between the data indicated by the first setting and the data indicated by the second setting, and whether the data indicated by the third setting and the data indicated by the fourth setting match. a step of determining at least one of whether the data sizes match between the two; and determining whether the data sizes match between the data indicated by the first setting and the data indicated by the second setting in a predetermined first state. Even if the data sizes do not match, and/or the data sizes do not match between the data indicated by the third setting and the data indicated by the fourth setting, the relay unit transfers the data according to the exchange setting. and performing the exchange.

本発明によれば、複数の制御装置がネットワーク接続された制御システムにおいて、設計および開発の制限を緩和する仕組みを提供できる。 According to the present invention, it is possible to provide a mechanism for easing restrictions on design and development in a control system in which a plurality of control devices are network-connected.

本実施の形態に従う制御システムの適用例を示す模式図である。FIG. 2 is a schematic diagram showing an example of application of the control system according to the present embodiment. 本実施の形態に従う制御システムの全体構成例を示す模式図である。FIG. 1 is a schematic diagram showing an example of the overall configuration of a control system according to the present embodiment. 本実施の形態に従う主制御装置の演算ユニットのハードウェア構成例を示すブロック図である。FIG. 2 is a block diagram showing an example of a hardware configuration of an arithmetic unit of the main control device according to the present embodiment. 本実施の形態に従う副制御装置の演算ユニットのハードウェア構成例を示すブロック図である。FIG. 2 is a block diagram showing an example of a hardware configuration of an arithmetic unit of a sub-control device according to the present embodiment. 本実施の形態に従う副制御装置の中継ユニットのハードウェア構成例を示すブロック図である。FIG. 3 is a block diagram showing an example of the hardware configuration of a relay unit of the sub-control device according to the present embodiment. 本実施の形態に従う制御システムのフィールドネットワークをサイクリック伝送されるフレームのデータ構造の一例を示す。An example of the data structure of a frame cyclically transmitted through the field network of the control system according to the present embodiment is shown. 本実施の形態に従う制御システムの副制御装置によるデータ転送を説明するための図である。FIG. 3 is a diagram for explaining data transfer by the sub-control device of the control system according to the present embodiment. 本実施の形態に従う制御システムの中継ユニットによるデータ転送を説明するための図である。FIG. 3 is a diagram for explaining data transfer by a relay unit of the control system according to the present embodiment. 本実施の形態に従う制御システムの中継ユニットにおいて設定されたデータサイズが一致しない例を示す図である。FIG. 3 is a diagram illustrating an example in which data sizes set in relay units of the control system according to the present embodiment do not match. 本実施の形態に従う制御システムの中継ユニットにおいて設定されたデータサイズが一致しない場合の処理例を示す図である。FIG. 6 is a diagram illustrating an example of processing when data sizes set in relay units of the control system according to the present embodiment do not match. 本実施の形態に従う制御システムの中継ユニットにおける処理例を説明するための図である。FIG. 3 is a diagram for explaining an example of processing in a relay unit of the control system according to the present embodiment. 本実施の形態に従う制御システムにおいてデータ更新が停止している場合の動作例を説明するための図である。FIG. 6 is a diagram for explaining an example of operation when data updating is stopped in the control system according to the present embodiment. 本実施の形態に従う中継ユニットのサイクリック通信によるI/Oデータ送信の処理手順例を示すフローチャートである。3 is a flowchart illustrating an example of a processing procedure for I/O data transmission by cyclic communication of a relay unit according to the present embodiment. 本実施の形態に従う制御システムにおける中継ユニットの交換設定を作成するためのユーザインターフェイス例を示す模式図である。FIG. 3 is a schematic diagram showing an example of a user interface for creating relay unit replacement settings in the control system according to the present embodiment.

本発明の実施の形態について、図面を参照しながら詳細に説明する。なお、図中の同一または相当部分については、同一符号を付してその説明は繰り返さない。 Embodiments of the present invention will be described in detail with reference to the drawings. Note that the same or corresponding parts in the figures are designated by the same reference numerals, and the description thereof will not be repeated.

<A.適用例>
まず、本発明が適用される場面の一例について説明する。
<A. Application example>
First, an example of a scene to which the present invention is applied will be described.

図1は、本実施の形態に従う制御システム1の適用例を示す模式図である。図1を参照して、制御システム1は、ネットワーク(図2のフィールドネットワーク4など参照)を介して接続された主制御装置10(第1制御装置)および1または複数の副制御装置20(第2制御装置)を含む。 FIG. 1 is a schematic diagram showing an application example of a control system 1 according to the present embodiment. Referring to FIG. 1, a control system 1 includes a main control device 10 (first control device) and one or more sub-control devices 20 (first control device) connected via a network (see field network 4 in FIG. 2, etc.). 2 control devices).

本明細書において、「主制御装置」および「副制御装置」との用語は、説明の便宜上の区別であり、実質的に同一のハードウェア構成であってもよいし、実質的に同一の機能構成であってもよい。主制御装置および副制御装置は、PLC(プログラマブルロジックコントローラ)などの一種のコンピュータであってもよい。 In this specification, the terms "main controller" and "sub controller" are used for convenience of explanation, and they may have substantially the same hardware configuration or have substantially the same functions. It may be a configuration. The main control device and the sub-control device may be a type of computer such as a PLC (programmable logic controller).

副制御装置20は、制御演算を実行する演算ユニット200と、ネットワークに接続するためのインターフェイス(図5のフィールドネットワークインターフェイス270など)を有する中継ユニット250とを含む。 The sub-control device 20 includes a calculation unit 200 that performs control calculations, and a relay unit 250 that has an interface (such as the field network interface 270 in FIG. 5) for connecting to a network.

中継ユニット250は、副制御装置20(演算ユニット200)と主制御装置10との間で互いにデータを転送するためのゲートウェイである。より具体的には、交換設定268に従って、演算ユニット200が管理するプロセスデータ70のネットワークを介した送信、および、ネットワークを介して受信したデータによる演算ユニット200が管理するプロセスデータの更新、を含むデータ転送を実行する。 Relay unit 250 is a gateway for mutually transferring data between sub-control device 20 (computation unit 200) and main control device 10. More specifically, it includes transmitting the process data 70 managed by the computing unit 200 via the network according to the exchange settings 268 and updating the process data managed by the computing unit 200 with data received via the network. Perform data transfer.

中継ユニット250は、ネットワークを介してデータ交換される送信データ50および受信データ60を保持するとともに、演算ユニット200との間でデータ交換される入力データ90および出力データ80を保持する。 Relay unit 250 holds transmission data 50 and reception data 60 that are exchanged via the network, and also holds input data 90 and output data 80 that are exchanged with arithmetic unit 200 .

本明細書においては、データ転送の対象として設定されるデータを「エントリ」と称す。「エントリ」は、送信データ50、受信データ60、出力データ80、および、入力データ90に含まれるべき各データを特定するための情報を含む。 In this specification, data set as a data transfer target is referred to as an "entry." “Entry” includes information for specifying each data to be included in transmission data 50, reception data 60, output data 80, and input data 90.

交換設定268は、図1に示す各データのエントリの設定を含む。より具体的には、交換設定268は、演算ユニット200が管理するプロセスデータ70のうち送信対象のデータ(出力データ80)を示す第1の設定(出力データ80に含まれるエントリ)と、ネットワークを介して送信するデータ(送信データ50)を示す第2の設定(送信データ50に含まれるエントリ)と、演算ユニット200が管理するプロセスデータ70のうち更新対象となるデータ(入力データ90)を示す第3の設定(入力データ90に含まれるエントリ)と、ネットワークを介して受信するデータ(受信データ60)を示す第4の設定(受信データ60に含まれるエントリ)とを含む。 The exchange settings 268 include settings for each data entry shown in FIG. More specifically, the exchange settings 268 include a first setting (an entry included in the output data 80) indicating data to be transmitted (output data 80) among the process data 70 managed by the calculation unit 200, and a network. A second setting (an entry included in the transmission data 50) indicating the data to be transmitted (transmission data 50) via the second setting (an entry included in the transmission data 50) and data to be updated (input data 90) among the process data 70 managed by the calculation unit 200. It includes a third setting (an entry included in the input data 90) and a fourth setting (an entry included in the received data 60) indicating data to be received via the network (received data 60).

データ転送は、主制御装置10と中継ユニット250との間のデータ更新42(送信データ50の送信および受信データ60の更新)と、演算ユニット200と中継ユニット250との間のデータ更新44(出力データ80の更新および入力データ90の送信)と、中継ユニット250におけるデータ交換46(送信データ50を出力データ80で更新、および、入力データ90を受信データ60で更新)とを含む。 Data transfer includes data update 42 (transmission of transmission data 50 and update of reception data 60) between main controller 10 and relay unit 250, and data update 44 (output updating data 80 and transmitting input data 90); and data exchange 46 in relay unit 250 (updating transmitted data 50 with output data 80 and updating input data 90 with received data 60).

中継ユニット250は、出力データ80に含まれるエントリ(第1の設定が示すデータ)と送信データ50に含まれるエントリ(第2の設定が示すデータ)との間でデータサイズが一致するか否か、および、入力データ90に含まれるエントリ(第3の設定が示すデータ)と受信データ60に含まれるエントリ(第4の設定が示すデータ)との間でデータサイズが一致するか否か、のうち少なくとも一方を判断する。 The relay unit 250 determines whether the data sizes match between the entry included in the output data 80 (data indicated by the first setting) and the entry included in the transmission data 50 (data indicated by the second setting). , and whether the data sizes match between the entry included in the input data 90 (data indicated by the third setting) and the entry included in the received data 60 (data indicated by the fourth setting). Judge at least one of them.

図1に示すように、出力データ80に含まれるエントリ(第1の設定が示すデータ)と送信データ50に含まれるエントリ(第2の設定が示すデータ)との間でデータサイズが一致しない場合、および/または、入力データ90に含まれるエントリ(第3の設定が示すデータ)と受信データ60に含まれるエントリ(第4の設定が示すデータ)との間でデータサイズが一致しない場合であっても、交換設定268に従うデータ転送を実行する。 As shown in FIG. 1, when the data size does not match between the entry included in the output data 80 (data indicated by the first setting) and the entry included in the transmission data 50 (data indicated by the second setting) , and/or the data sizes do not match between the entry included in the input data 90 (data indicated by the third setting) and the entry included in the received data 60 (data indicated by the fourth setting). data transfer according to exchange settings 268.

データ転送は、主制御装置10と中継ユニット250との間のデータ更新42、および、演算ユニット200と中継ユニット250との間のデータ更新44を含む。中継ユニット250におけるデータ交換46については、データ交換が可能な範囲で実行される。 Data transfer includes data update 42 between main controller 10 and relay unit 250, and data update 44 between arithmetic unit 200 and relay unit 250. Data exchange 46 in relay unit 250 is performed to the extent that data exchange is possible.

なお、予め定められた第1の状態においては、データサイズが一致しなくても、データ転送を実行するようにしてもよく、別の第2の状態においては、データサイズが一致しなければ、データ転送を停止または無効化するようにしてもよい。すなわち、データサイズが一致しない場合に、データ転送を停止または無効化するか否かを、モードなどに応じて異ならせてもよい。 Note that in a predetermined first state, data transfer may be executed even if the data sizes do not match, and in another second state, if the data sizes do not match, Data transfer may be stopped or disabled. That is, whether or not to stop or invalidate data transfer when the data sizes do not match may be changed depending on the mode or the like.

<B.全体構成例>
次に、本実施の形態に従う制御システム1の全体構成例について説明する。
<B. Overall configuration example>
Next, an example of the overall configuration of the control system 1 according to the present embodiment will be described.

図2は、本実施の形態に従う制御システム1の全体構成例を示す模式図である。図2を参照して、本実施の形態に従う制御システム1は、主制御装置10と、1または複数の副制御装置20とを含む。 FIG. 2 is a schematic diagram showing an example of the overall configuration of the control system 1 according to the present embodiment. Referring to FIG. 2, control system 1 according to the present embodiment includes main control device 10 and one or more sub-control devices 20.

主制御装置10と、1または複数の副制御装置20とは、フィールドネットワーク4を介して接続されている。フィールドネットワーク4は、サイクリック通信およびメッセージ通信をサポートしている。フィールドネットワーク4としては、例えば、EtherCAT(登録商標)、EtherNet/IP(登録商標)、PROFINET(登録商標)、PROFIBUS(登録商標)、DeviceNet(登録商標)、FL-net、CompoNet(登録商標)などを用いてもよい。 The main control device 10 and one or more sub-control devices 20 are connected via a field network 4. Field network 4 supports cyclic communication and message communication. Examples of the field network 4 include EtherCAT (registered trademark), EtherNet/IP (registered trademark), PROFINET (registered trademark), PROFIBUS (registered trademark), DeviceNet (registered trademark), FL-net, CompoNet (registered trademark), etc. may also be used.

主制御装置10は、制御演算を実行する演算ユニット100を含む。演算ユニット100は、フィールドネットワーク4によるデータ通信が可能になっている。主制御装置10は、電源ユニット、I/Oユニット、特殊ユニットなどをさらに有してもよい。 Main controller 10 includes a calculation unit 100 that performs control calculations. The arithmetic unit 100 is capable of data communication via the field network 4. The main controller 10 may further include a power supply unit, an I/O unit, a special unit, and the like.

副制御装置20は、制御演算を実行する演算ユニット200と、フィールドネットワーク4に接続するためのインターフェイスを有する中継ユニット250とを含む。副制御装置20は、電源ユニット、I/Oユニット、特殊ユニットなどをさらに有してもよい。 The sub-control device 20 includes a calculation unit 200 that executes control calculations and a relay unit 250 that has an interface for connecting to the field network 4. The sub-control device 20 may further include a power supply unit, an I/O unit, a special unit, and the like.

演算ユニット200と中継ユニット250とは、内部バス6(図4および図5参照)を介して接続されている。なお、副制御装置20がI/Oユニットおよび/または特殊ユニットを含む場合には、当該ユニットも内部バス6を介して接続される。 Arithmetic unit 200 and relay unit 250 are connected via internal bus 6 (see FIGS. 4 and 5). Note that if the sub-control device 20 includes an I/O unit and/or a special unit, the units are also connected via the internal bus 6.

中継ユニット250は、主制御装置10から送信されるデータを演算ユニット200が参照できるように転送するとともに、演算ユニット200が出力するデータを主制御装置10が参照できるように転送する。 The relay unit 250 transfers the data transmitted from the main control device 10 so that the calculation unit 200 can refer to it, and also transfers the data output by the calculation unit 200 so that the main control device 10 can refer to it.

制御システム1は、主制御装置10および/または副制御装置20で実行されるプログラムや設定などを作成および変更するためのサポート装置300を含んでいてもよい。サポート装置300は、副制御装置20の演算ユニット200に接続されてもよいし、主制御装置10の演算ユニット100に接続されてもよい。 The control system 1 may include a support device 300 for creating and changing programs and settings executed by the main control device 10 and/or the sub-control device 20. The support device 300 may be connected to the calculation unit 200 of the sub-control device 20 or the calculation unit 100 of the main control device 10.

<C.ハードウェア構成例>
次に、本実施の形態に従う制御システム1の主要な装置のハードウェア構成例について説明する。
<C. Hardware configuration example>
Next, an example of the hardware configuration of the main devices of the control system 1 according to the present embodiment will be described.

(c1:演算ユニット100)
図3は、本実施の形態に従う主制御装置10の演算ユニット100のハードウェア構成例を示すブロック図である。図3を参照して、演算ユニット100は、CPU(Central Processing Unit)やMPU(Micro-Processing Unit)などのプロセッサ102と、チップセット104と、メモリ106と、ストレージ108と、上位ネットワークインターフェイス110と、USB(Universal Serial Bus)インターフェイス112と、メモリカードインターフェイス114と、フィールドネットワークインターフェイス120とを含む。
(c1: calculation unit 100)
FIG. 3 is a block diagram showing an example of the hardware configuration of the arithmetic unit 100 of the main control device 10 according to the present embodiment. Referring to FIG. 3, the arithmetic unit 100 includes a processor 102 such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit), a chipset 104, a memory 106, a storage 108, and an upper network interface 110. , a USB (Universal Serial Bus) interface 112, a memory card interface 114, and a field network interface 120.

プロセッサ102は、ストレージ108に格納された各種プログラムを読み出して、メモリ106に展開して実行することで、演算ユニット100で必要な処理を実現する。チップセット104は、プロセッサ102と各コンポーネントとの間のデータ通信などを制御する。 The processor 102 reads various programs stored in the storage 108, expands them to the memory 106, and executes them, thereby realizing necessary processing in the arithmetic unit 100. The chipset 104 controls data communication between the processor 102 and each component.

ストレージ108には、典型的には、システムプログラム131と、制御演算に必要なコンピュータ読み取り可能なコードを含むユーザプログラム132とが格納される。 Storage 108 typically stores a system program 131 and a user program 132 that includes computer-readable codes necessary for control calculations.

ストレージ108に格納されたプログラムが実行されることで、コンピュータである演算ユニット100に本明細書に記載された処理を実行させるとともに、コンピュータである演算ユニット100において本明細書に記載された機能構成を実現させる。 By executing the program stored in the storage 108, the arithmetic unit 100, which is a computer, executes the processing described in this specification, and the functional configuration described in this specification in the arithmetic unit 100, which is a computer, is executed. Make it happen.

上位ネットワークインターフェイス110は、上位ネットワークを介した他の装置との間のデータ通信を制御する。USBインターフェイス112は、USB接続を介してサポート装置との間のデータ通信を制御する。 The upper network interface 110 controls data communication with other devices via the upper network. USB interface 112 controls data communication to and from supporting devices via a USB connection.

メモリカードインターフェイス114は、メモリカード116を着脱可能に構成されており、メモリカード116に対してデータを書き込み、メモリカード116から各種データ(ユーザプログラムやトレースデータなど)を読み出すことが可能になっている。 The memory card interface 114 is configured to allow a memory card 116 to be attached or removed, and is capable of writing data to the memory card 116 and reading various data (user programs, trace data, etc.) from the memory card 116. There is.

フィールドネットワークインターフェイス120は、フィールドネットワーク4を介した副制御装置20との間のデータ通信を制御する。 Field network interface 120 controls data communication with sub-control device 20 via field network 4.

(c2:演算ユニット200)
図4は、本実施の形態に従う副制御装置20の演算ユニット200のハードウェア構成例を示すブロック図である。図4を参照して、演算ユニット200は、CPUやMPUなどのプロセッサ202と、チップセット204と、メモリ206と、ストレージ208と、上位ネットワークインターフェイス210と、USBインターフェイス212と、メモリカードインターフェイス214と、内部バスインターフェイス220とを含む。
(c2: calculation unit 200)
FIG. 4 is a block diagram showing an example of the hardware configuration of the arithmetic unit 200 of the sub-control device 20 according to the present embodiment. Referring to FIG. 4, the arithmetic unit 200 includes a processor 202 such as a CPU or an MPU, a chipset 204, a memory 206, a storage 208, an upper network interface 210, a USB interface 212, and a memory card interface 214. , an internal bus interface 220.

プロセッサ202は、ストレージ208に格納された各種プログラムを読み出して、メモリ206に展開して実行することで、演算ユニット200で必要な処理を実現する。チップセット204は、プロセッサ202と各コンポーネントとの間のデータ通信などを制御する。 The processor 202 reads various programs stored in the storage 208, expands them to the memory 206, and executes them, thereby realizing necessary processing in the arithmetic unit 200. The chipset 204 controls data communication between the processor 202 and each component.

ストレージ208には、典型的には、システムプログラム231と、制御演算に必要なコンピュータ読み取り可能なコードを含むユーザプログラム232とが格納される。 Storage 208 typically stores a system program 231 and a user program 232 that includes computer readable codes necessary for control calculations.

ストレージ208に格納されたプログラムが実行されることで、コンピュータである演算ユニット200に本明細書に記載された処理を実行させるとともに、コンピュータである演算ユニット200において本明細書に記載された機能構成を実現させる。 By executing the program stored in the storage 208, the arithmetic unit 200, which is a computer, executes the processing described in this specification, and the functional configuration described in this specification is performed in the arithmetic unit 200, which is a computer. Make it happen.

上位ネットワークインターフェイス210は、上位ネットワークを介した他の装置との間のデータ通信を制御する。USBインターフェイス212は、USB接続を介してサポート装置との間のデータ通信を制御する。 The upper network interface 210 controls data communication with other devices via the upper network. USB interface 212 controls data communication to and from supporting devices via a USB connection.

メモリカードインターフェイス214は、メモリカード216を着脱可能に構成されており、メモリカード216に対してデータを書き込み、メモリカード216から各種データ(ユーザプログラムやトレースデータなど)を読み出すことが可能になっている。 The memory card interface 214 is configured to allow a memory card 216 to be attached or removed, and is capable of writing data to the memory card 216 and reading various data (user programs, trace data, etc.) from the memory card 216. There is.

内部バスインターフェイス220は、内部バス6を介した1または複数のユニット(中継ユニット250を含む)との間のデータ通信を制御する。 Internal bus interface 220 controls data communication with one or more units (including relay unit 250) via internal bus 6.

内部バス6は、フィールドネットワーク4と同様に、サイクリック通信およびメッセージ通信をサポートしている。内部バス6としては、メーカ専用の通信方式を採用してもよいし、例えば、EtherCAT(登録商標)、EtherNet/IP(登録商標)、PROFINET(登録商標)、PROFIBUS(登録商標)、DeviceNet(登録商標)、FL-net、CompoNet(登録商標)などを用いてもよい。 Internal bus 6, like field network 4, supports cyclic and message communications. As the internal bus 6, a communication method exclusive to the manufacturer may be adopted, for example, EtherCAT (registered trademark), EtherNet/IP (registered trademark), PROFINET (registered trademark), PROFIBUS (registered trademark), DeviceNet (registered trademark). Trademark), FL-net, CompoNet (registered trademark), etc. may also be used.

(c3:中継ユニット250)
図5は、本実施の形態に従う副制御装置20の中継ユニット250のハードウェア構成例を示すブロック図である。図5を参照して、中継ユニット250は、処理回路260と、フィールドネットワークインターフェイス270と、内部バスインターフェイス280とを含む。
(c3: relay unit 250)
FIG. 5 is a block diagram showing an example of the hardware configuration of relay unit 250 of sub-control device 20 according to the present embodiment. Referring to FIG. 5, relay unit 250 includes a processing circuit 260, a field network interface 270, and an internal bus interface 280.

処理回路260は、後述するような中継ユニット250の処理および機能を実現する。より具体的には、処理回路260は、プロセッサ262と、メモリ264と、ストレージ266とを含む。プロセッサ262は、ストレージ266に格納されたシステムプログラム(ファームウェア)を読み出して、メモリ264に展開して実行することで、中継ユニット250で必要な処理を実現する。ストレージ266には、システムプログラムに加えて、データ転送を実現するための交換設定268が格納されている。 The processing circuit 260 realizes the processing and functions of the relay unit 250 as described below. More specifically, processing circuit 260 includes a processor 262, memory 264, and storage 266. The processor 262 reads the system program (firmware) stored in the storage 266, expands it to the memory 264, and executes it, thereby realizing necessary processing in the relay unit 250. In addition to the system program, the storage 266 stores exchange settings 268 for realizing data transfer.

フィールドネットワークインターフェイス270は、フィールドネットワーク4を介した主制御装置10との間のデータ通信を制御する。 Field network interface 270 controls data communication with main controller 10 via field network 4.

内部バスインターフェイス280は、内部バス6を介した1または複数のユニット(演算ユニット200を含む)との間のデータ通信を制御する。 Internal bus interface 280 controls data communication with one or more units (including computing unit 200) via internal bus 6.

(c4:その他の構成)
図3~図5には、プロセッサがプログラムを実行することで必要な機能が提供される構成例を示したが、これらの提供される機能の一部または全部を、専用のハードウェア回路(例えば、ASIC(Application Specific Integrated Circuit)またはFPGA(Field-Programmable Gate Array)など)を用いて実装してもよい。
(c4: Other configurations)
FIGS. 3 to 5 show configuration examples in which necessary functions are provided by a processor executing a program, but some or all of these provided functions can be implemented using dedicated hardware circuits (e.g. , ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), etc.).

本明細書において、「プロセッサ」は、ストアードプログラム方式で処理を実行する狭義のプロセッサに限られず、ASICやFPGAなどのハードワイヤード回路を含み得る。そのため、「プロセッサ」との用語は、コンピュータ読み取り可能なコードおよび/またはハードワイヤード回路によって予め処理が定義されている、処理回路(processing circuitry)と読み替えることもできる。 In this specification, a "processor" is not limited to a processor in a narrow sense that executes processing using a stored program method, but may include hard-wired circuits such as ASIC and FPGA. Therefore, the term "processor" can also be read as processing circuitry whose processing is predefined by computer readable code and/or hardwired circuitry.

演算ユニットの主要部は、汎用的なアーキテクチャに従うハードウェア(例えば、汎用パソコンをベースとした産業用パソコン)を用いて実現してもよい。この場合には、仮想化技術を用いて、用途の異なる複数のOS(Operating System)を並列的に実行させるとともに、各OS上で必要なアプリケーションを実行させるようにしてもよい。 The main part of the arithmetic unit may be realized using hardware that follows a general-purpose architecture (for example, an industrial personal computer based on a general-purpose personal computer). In this case, virtualization technology may be used to run multiple OSs (Operating Systems) for different purposes in parallel, and to run necessary applications on each OS.

(c5:サポート装置300)
本実施の形態に従うサポート装置300は、一例として、汎用的なアーキテクチャに従う汎用コンピュータなどで構成される。汎用コンピュータのハードウェア構成例は公知であるので、詳細な説明は行わない。
(c5: Support device 300)
The support device 300 according to this embodiment is configured, for example, by a general-purpose computer that follows a general-purpose architecture. Since examples of the hardware configuration of general-purpose computers are well known, detailed explanations will not be provided.

<D.データ転送>
次に、本実施の形態に従う制御システム1のデータ転送に係る処理について説明する。
<D. Data transfer>
Next, processing related to data transfer of the control system 1 according to the present embodiment will be explained.

フィールドネットワーク4としてEtherCATが採用される場合には、フィールドネットワーク4におけるフレーム30の送信タイミングなどを管理する通信マスタ(以下、「マスタ」と略称する。)と、通信マスタによる管理に従う1または複数の通信スレーブ(以下、「スレーブ」と略称する。)とが存在する。図2に示す構成例においては、例えば、主制御装置10がマスタとなり、中継ユニット250がスレーブとなる。 When EtherCAT is adopted as the field network 4, there is a communication master (hereinafter abbreviated as "master") that manages the transmission timing of frames 30 in the field network 4, and one or more communication masters that are managed by the communication master. There is a communication slave (hereinafter abbreviated as "slave"). In the configuration example shown in FIG. 2, for example, the main control device 10 serves as a master, and the relay unit 250 serves as a slave.

各デバイスは、隣接するデバイスからフレーム30を受信すると、フレーム30に含まれているデータを読み出すとともに、自デバイスが保持しているデータをフレーム30に書き込む(フレーム30の対応する領域のデータを更新する)。 When each device receives the frame 30 from an adjacent device, it reads the data included in the frame 30 and writes the data held by its own device to the frame 30 (updates the data in the corresponding area of the frame 30). do).

図6は、本実施の形態に従う制御システム1のフィールドネットワーク4をサイクリック伝送されるフレーム30のデータ構造の一例を示す。フレーム30は、予め定められた送信周期(例えば、1msec~数100msec)毎に、フィールドネットワーク4に接続されたすべてのデバイス(主制御装置10および中継ユニット250を含む)を巡回する。 FIG. 6 shows an example of the data structure of a frame 30 that is cyclically transmitted through the field network 4 of the control system 1 according to this embodiment. The frame 30 circulates through all devices (including the main controller 10 and the relay unit 250) connected to the field network 4 at every predetermined transmission cycle (eg, 1 msec to several 100 msec).

図6に示すように、フレーム30は、デバイス毎に送信データを格納する領域が設定されている。一例として、フレーム30は、マスタからの送信データを格納する領域3Mと、スレーブ1~Nからの送信データをそれぞれ格納する領域31~3Nとを含む。 As shown in FIG. 6, the frame 30 has an area set for storing transmission data for each device. As an example, the frame 30 includes an area 3M for storing transmission data from the master, and areas 31 to 3N for storing transmission data from the slaves 1 to N, respectively.

例えば、中継ユニット250がスレーブ1に相当する場合には、中継ユニット250は、フレーム30を受信すると、受信したフレーム30の領域31に自ユニットが保持しているデータ(送信データ50)を書き込むとともに、フレーム30の領域3M,32~3Nに格納されているデータ(受信データ60)を読み出す。 For example, when the relay unit 250 corresponds to the slave 1, upon receiving the frame 30, the relay unit 250 writes the data held by the own unit (transmission data 50) in the area 31 of the received frame 30, and , reads out data (received data 60) stored in areas 3M, 32 to 3N of frame 30.

演算ユニット200は、中継ユニット250を介してデータを送受信する。すなわち、演算ユニット200は、中継ユニット250を介して、フィールドネットワーク4に接続された主制御装置10および他の副制御装置20とデータを交換する。 Arithmetic unit 200 transmits and receives data via relay unit 250. That is, the arithmetic unit 200 exchanges data with the main control device 10 and other sub-control devices 20 connected to the field network 4 via the relay unit 250.

図7は、本実施の形態に従う制御システム1の副制御装置20によるデータ転送を説明するための図である。図7を参照して、副制御装置20の演算ユニット200は、プロセスデータ70を保持している。 FIG. 7 is a diagram for explaining data transfer by the sub-control device 20 of the control system 1 according to the present embodiment. Referring to FIG. 7, arithmetic unit 200 of sub-control device 20 holds process data 70.

プロセスデータ70は、入力データ72と、出力データ74と、システムデータ76とを含む。入力データ72は、例えば、各種センサで計測あるいは検出された信号を含む。出力データ74は、入力データ72などに基づく制御演算40の結果を含む。システムデータ76は、システム管理82による管理情報を含む。管理情報は、副制御装置20の運転状態やエラー発生などを示す。 Process data 70 includes input data 72, output data 74, and system data 76. The input data 72 includes, for example, signals measured or detected by various sensors. Output data 74 includes the results of control calculations 40 based on input data 72 and the like. System data 76 includes management information by system management 82 . The management information indicates the operating state of the sub-control device 20, the occurrence of an error, and the like.

入力データ72、出力データ74およびシステムデータ76のうち、指定されたデータが送信データ50としてコピーされる。また、受信データ60は、基本的には、入力データ72としてコピーされる。副制御装置20においては、交換設定268に従って、プロセスデータ70と、送信データ50および受信データ60との間でデータ交換が行われる。 Among input data 72, output data 74, and system data 76, designated data is copied as transmission data 50. Additionally, the received data 60 is basically copied as input data 72. In the sub-control device 20 , data is exchanged between the process data 70 and the transmitted data 50 and received data 60 according to the exchange settings 268 .

送信データ50および受信データ60は、フィールドネットワーク4のサイクリック通信の送信周期毎に更新されることになる。プロセスデータ70と送信データ50および受信データ60との間のデータ交換は、内部バス6の送信周期毎に行われる。 The transmission data 50 and the reception data 60 are updated every transmission period of cyclic communication of the field network 4. Data exchange between the process data 70 and the transmitted data 50 and received data 60 is performed every transmission cycle of the internal bus 6.

このように、中継ユニット250は、交換設定268に従って、演算ユニット200が管理するプロセスデータ70のフィールドネットワーク4を介した送信、および、フィールドネットワーク4を介して受信した受信データ60による演算ユニット200が管理するプロセスデータ70の更新、を含むデータ転送を実行するように構成されている。 In this way, the relay unit 250 transmits the process data 70 managed by the calculation unit 200 via the field network 4 and the calculation unit 200 receives the received data 60 via the field network 4 according to the exchange setting 268. It is configured to execute data transfer including updating of process data 70 to be managed.

<E.中継ユニット>
次に、本実施の形態に従う制御システム1の中継ユニット250によるデータ転送について説明する。
<E. Relay unit>
Next, data transfer by relay unit 250 of control system 1 according to this embodiment will be explained.

上述したように、副制御装置20の演算ユニット200は、中継ユニット250を介して、フィールドネットワーク4に接続された主制御装置10および他の副制御装置20とデータを交換する。このようなデータ交換を実現するために、中継ユニット250は、フィールドネットワーク4を介して送受信されるデータを保持する記憶領域と、内部バス6を介して送受信されるデータを保持する記憶領域とを有している。 As described above, the arithmetic unit 200 of the sub-control device 20 exchanges data with the main control device 10 and other sub-control devices 20 connected to the field network 4 via the relay unit 250. In order to realize such data exchange, the relay unit 250 has a storage area that holds data sent and received via the field network 4 and a storage area that holds data that is sent and received via the internal bus 6. have.

図8は、本実施の形態に従う制御システム1の中継ユニット250によるデータ転送を説明するための図である。図8を参照して、中継ユニット250は、フィールドネットワーク4を介してデータ交換される送信データ50および受信データ60を保持するとともに、演算ユニット200との間でデータ交換される入力データ90および出力データ80を保持する。 FIG. 8 is a diagram for explaining data transfer by relay unit 250 of control system 1 according to the present embodiment. Referring to FIG. 8, relay unit 250 holds transmission data 50 and reception data 60 exchanged via field network 4, and input data 90 and output data exchanged with calculation unit 200. Data 80 is held.

上述の交換設定268は、演算ユニット200が管理するプロセスデータ70のうち送信対象のデータ(出力データ80)を示す第1の設定(出力データ80に含まれるエントリ)と、ネットワークを介して送信するデータ(送信データ50)を示す第2の設定(送信データ50に含まれるエントリ)と、演算ユニット200が管理するプロセスデータ70のうち更新対象となるデータ(入力データ90)を示す第3の設定(入力データ90に含まれるエントリ)と、ネットワークを介して受信するデータ(受信データ60)を示す第4の設定(受信データ60に含まれるエントリ)とを含む。 The exchange settings 268 described above are the first settings (entries included in the output data 80) indicating the data to be transmitted (output data 80) among the process data 70 managed by the arithmetic unit 200, and the first settings (entries included in the output data 80) to be transmitted via the network. A second setting (an entry included in the transmission data 50) indicating the data (transmission data 50), and a third setting indicating the data to be updated (input data 90) among the process data 70 managed by the calculation unit 200. (an entry included in the input data 90) and a fourth setting (an entry included in the received data 60) indicating data to be received via the network (received data 60).

通常、演算ユニット200からの出力データ80に含まれるデータのデータサイズは、主制御装置10および他の副制御装置20に送信される送信データ50に含まれるデータのデータサイズと一致する。同様に、主制御装置10および他の副制御装置20からの受信データ60に含まれるデータのデータサイズは、演算ユニット200に送信される入力データ90に含まれるデータのデータサイズと一致する。 Usually, the data size of the data included in the output data 80 from the arithmetic unit 200 matches the data size of the data included in the transmission data 50 sent to the main control device 10 and other sub-control devices 20. Similarly, the data size of the data included in the received data 60 from the main control device 10 and other sub-control devices 20 matches the data size of the data included in the input data 90 transmitted to the arithmetic unit 200.

そのため、中継ユニット250(または、演算ユニット200)は、交換設定268に設定されたエントリに基づいて、出力データ80と送信データ50との間で設定されたデータサイズが一致しない、および/または、入力データ90と受信データ60との間で設定されたデータサイズが一致しない場合には、データ転送を停止または無効化するようにしてもよい。 Therefore, the relay unit 250 (or the arithmetic unit 200) determines that the data sizes set between the output data 80 and the transmission data 50 do not match based on the entry set in the exchange setting 268, and/or If the data sizes set between input data 90 and received data 60 do not match, data transfer may be stopped or invalidated.

すなわち、中継ユニット250(または、演算ユニット200)は、出力データ80に含まれるエントリと送信データ50に含まれるエントリとの間でデータサイズが一致するか否か、および、入力データ90に含まれるエントリと受信データ60に含まれるエントリとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断する。そして、出力データ80に含まれるエントリと送信データ50に含まれるエントリとの間でデータサイズが一致しない場合、および/または、入力データ90に含まれるエントリと受信データ60に含まれるエントリとの間でデータサイズが一致しない場合には、交換設定268に従うデータ転送が停止または無効化される。 That is, the relay unit 250 (or the arithmetic unit 200) determines whether or not the data sizes of the entries included in the output data 80 and the entries included in the transmission data 50 match, and the data size of the entries included in the input data 90. It is determined whether or not the data sizes of the entry and the entry included in the received data 60 match. If the data sizes do not match between the entries included in the output data 80 and the entries included in the transmission data 50 and/or the entries included in the input data 90 and the entries included in the reception data 60. If the data sizes do not match, data transfer according to exchange settings 268 is stopped or disabled.

しかしながら、制御システム1の全体または一部を設計および開発している段階においては、主制御装置10および1または複数の副制御装置20が送受信するデータはしばしば変更され得る。そのため、出力データ80と送信データ50との間で設定されたデータサイズが一致しない、および/または、入力データ90と受信データ60との間で設定されたデータサイズが一致しないといった事態もしばしば生じ得る。その結果、制御システム1におけるデータ転送が停止または無効化され得る。 However, during the stage of designing and developing all or part of the control system 1, the data transmitted and received by the main control device 10 and one or more sub-control devices 20 may often change. Therefore, situations often occur in which the data sizes set between the output data 80 and the transmission data 50 do not match, and/or the data sizes set between the input data 90 and the received data 60 do not match. obtain. As a result, data transfer in the control system 1 may be stopped or disabled.

そこで、本実施の形態に従う制御システム1においては、出力データ80に含まれるエントリと送信データ50に含まれるエントリとの間でデータサイズが一致しない場合、および/または、入力データ90に含まれるエントリと受信データ60に含まれるエントリとの間でデータサイズが一致しない場合であっても、交換設定268に従うデータ転送を実行することが可能になっている。 Therefore, in the control system 1 according to the present embodiment, if the data sizes do not match between the entries included in the output data 80 and the entries included in the transmission data 50, and/or the entries included in the input data 90 Even if the data size does not match between the entry included in the received data 60 and the entry included in the received data 60, data transfer according to the exchange setting 268 can be executed.

すなわち、出力データ80と送信データ50との間で設定されたデータサイズが一致しない、および/または、入力データ90と受信データ60との間で設定されたデータサイズが一致しない場合であっても、中継ユニット250でのデータ転送を実行することも可能である。 That is, even if the data sizes set between the output data 80 and the transmission data 50 do not match, and/or the data sizes set between the input data 90 and the received data 60 do not match, , it is also possible to perform data transfer in the relay unit 250.

図9は、本実施の形態に従う制御システム1の中継ユニット250において設定されたデータサイズが一致しない例を示す図である。図9を参照して、出力データ80は2つのエントリのみを含むのに対して、送信データ50は4つのエントリを含む。また、受信データ60は4つのエントリを含むのに対して、入力データ90は2つのエントリのみを含む。 FIG. 9 is a diagram showing an example in which data sizes set in relay unit 250 of control system 1 according to the present embodiment do not match. Referring to FIG. 9, output data 80 includes only two entries, whereas transmission data 50 includes four entries. Further, while the received data 60 includes four entries, the input data 90 includes only two entries.

図9に示す例においては、出力データ80と送信データ50との間で設定されたデータサイズは一致しない。同様に、入力データ90と受信データ60との間で設定されたデータサイズは一致しない。このような場合であっても、中継ユニット250でのデータ転送が実行されてもよい。 In the example shown in FIG. 9, the data sizes set between output data 80 and transmission data 50 do not match. Similarly, the data sizes set between input data 90 and received data 60 do not match. Even in such a case, data transfer by relay unit 250 may be performed.

このようなデータ転送を実現するために、例えば、中継ユニット250が保持する送信データ50および受信データ60を予め定められたデータサイズに設定してもよい。データサイズを固定する方法として、エントリが明示的に設定されていなくても、固定のデータサイズが維持されるように、ダミーデータのエントリが自動的に設定されるようにしてもよい。あるいは、エントリが存在しない領域には、何らかのデータをパディングすることで、エントリが変動しても、データサイズを一定に維持できるようにしてもよい。 In order to realize such data transfer, for example, the transmission data 50 and reception data 60 held by the relay unit 250 may be set to a predetermined data size. As a method of fixing the data size, a dummy data entry may be automatically set so that a fixed data size is maintained even if the entry is not explicitly set. Alternatively, by padding an area where no entry exists with some data, the data size may be maintained constant even if the entry changes.

図10は、本実施の形態に従う制御システム1の中継ユニット250において設定されたデータサイズが一致しない場合の処理例を示す図である。 FIG. 10 is a diagram illustrating an example of processing when the data sizes set in relay unit 250 of control system 1 according to the present embodiment do not match.

図10を参照して、図9に示すようなデータサイズが一致しない場合において、中継ユニット250は、ダミーデータを追加することで、形式的にデータサイズを一致させる。図10に示す例では、出力データ80には、送信データ50の2つのエントリに対応するダミーデータが追加されている。また、入力データ90には、受信データ60の2つのエントリに対応するダミーデータが追加されている。 Referring to FIG. 10, when the data sizes do not match as shown in FIG. 9, relay unit 250 formally matches the data sizes by adding dummy data. In the example shown in FIG. 10, dummy data corresponding to two entries of the transmission data 50 is added to the output data 80. Furthermore, dummy data corresponding to the two entries of the received data 60 is added to the input data 90.

このように、中継ユニット250は、予め定められたデータサイズのデータがデータ転送されるように、交換設定268に基づいてダミーデータを生成するようにしてもよい。すなわち、中継ユニット250は、交換設定268が示すエントリのデータサイズと予め定められたデータサイズとの差分に相当するダミーデータを生成するようにしてもよい。 In this way, the relay unit 250 may generate dummy data based on the exchange settings 268 so that data of a predetermined data size is transferred. That is, the relay unit 250 may generate dummy data corresponding to the difference between the data size of the entry indicated by the exchange setting 268 and a predetermined data size.

また、出力データ80と送信データ50との間で一致したエントリ、および/または、入力データ90と受信データ60との間で一致したエントリについては、データ転送が実行されてもよい。 Furthermore, data transfer may be performed for entries that match between the output data 80 and the transmission data 50 and/or entries that match between the input data 90 and the received data 60.

図9および図10に示す例においては、出力データ80と送信データ50との間では2つのエントリが一致しており、これらの2つのエントリに対応するデータについては、データ転送が行われてもよい。また、入力データ90と受信データ60との間では2つのエントリが一致しており、これらの2つのエントリに対応するデータについては、データ転送が行われてもよい。 In the examples shown in FIGS. 9 and 10, two entries match between the output data 80 and the transmission data 50, and the data corresponding to these two entries will not be transferred even if the data is transferred. good. Furthermore, two entries match between the input data 90 and the received data 60, and data transfer may be performed for data corresponding to these two entries.

このように、出力データ80と送信データ50との間で一致しているエントリの範囲、および/または、入力データ90と受信データ60との間で一致しているエントリの範囲において、データ転送が実行されてもよい。すなわち、中継ユニット250は、出力データ80に含まれるエントリ(第1の設定が示すデータ)と送信データ50に含まれるエントリ(第2の設定が示すデータ)とのうち一致しているデータ、および、入力データ90に含まれるエントリ(第3の設定が示すデータ)と受信データ60に含まれるエントリ(第4の設定が示すデータ)とのうち一致しているデータ、についてデータ転送を実行する。 In this way, data transfer is performed within the range of entries that match between the output data 80 and the transmission data 50 and/or within the range of entries that match between the input data 90 and the received data 60. May be executed. That is, the relay unit 250 selects matching data between the entry included in the output data 80 (data indicated by the first setting) and the entry included in the transmission data 50 (data indicated by the second setting), and , data transfer is performed for matching data among the entry included in the input data 90 (data indicated by the third setting) and the entry included in the received data 60 (data indicated by the fourth setting).

なお、エントリが一致しているか否かは、各エントリに設定されているデータのデータ数およびデータ型に基づいて判断されてもよいし、各エントリに設定されているデータのデータ長さに基づいて判断されてもよい。 Note that whether or not the entries match may be determined based on the number and data type of the data set in each entry, or based on the data length of the data set in each entry. It may be determined that

図11は、本実施の形態に従う制御システム1の中継ユニット250における処理例を説明するための図である。図11には、出力データ80と送信データ50との間で一致しているエントリは存在せず、かつ、入力データ90と受信データ60との間で一致しているエントリは存在しない例を示す。 FIG. 11 is a diagram for explaining an example of processing in relay unit 250 of control system 1 according to the present embodiment. FIG. 11 shows an example in which there is no matching entry between output data 80 and transmission data 50, and there is no matching entry between input data 90 and received data 60. .

図11に示すような交換設定268においては、データ交換46は実質的に実行されない。但し、フィールドネットワーク4を介した主制御装置10と中継ユニット250との間のデータ更新42、および、内部バス6を介した演算ユニット200と中継ユニット250との間のデータ更新44は、周期的に実行される。 In exchange setup 268 as shown in FIG. 11, data exchange 46 is not substantially performed. However, the data update 42 between the main controller 10 and the relay unit 250 via the field network 4, and the data update 44 between the arithmetic unit 200 and the relay unit 250 via the internal bus 6 are performed periodically. is executed.

このように、中継ユニット250は、出力データ80に含まれるエントリ(第1の設定が示すデータ)および入力データ90に含まれるエントリ(第3の設定が示すデータ)の周期的な更新、ならびに、送信データ50に含まれるエントリ(第2の設定が示すデータ)および受信データ60に含まれるエントリ(第4の設定が示すデータ)の周期的な更新を繰返し実行する。 In this way, the relay unit 250 periodically updates the entries included in the output data 80 (data indicated by the first setting) and the entries included in the input data 90 (data indicated by the third setting), and The entries included in the transmission data 50 (data indicated by the second setting) and the entries included in the received data 60 (data indicated by the fourth setting) are repeatedly updated.

また、出力データ80と送信データ50との間で設定されたデータサイズが一致しない、および/または、入力データ90と受信データ60との間で設定されたデータサイズが一致しない場合の挙動を任意に設定できるようにしてもよい。例えば、データサイズが一致しない場合に、(1)ユーザに対して警告を報知した上で中継ユニット250でのデータ転送を実行する、(2)何らかの警告も報知せず中継ユニット250でのデータ転送を実行する、(3)中継ユニット250でのデータ転送を停止または無効化する、といった複数のモードをユーザが任意に選択できるようにしてもよい。 In addition, the behavior when the data size set between the output data 80 and the transmission data 50 do not match, and/or the data size set between the input data 90 and the received data 60 does not match, can be set arbitrarily. It may be possible to set it to . For example, if the data sizes do not match, (1) the relay unit 250 transfers the data after notifying the user, or (2) the relay unit 250 transfers the data without notifying the user of any kind of warning. The user may be able to arbitrarily select from a plurality of modes, such as (3) executing (3) stopping or disabling data transfer at the relay unit 250.

すなわち、予め定められた特定の状態において、(1)または(2)が選択されてもよく、当該特定の状態とは別の状態において、(3)が選択されてもよい。 That is, (1) or (2) may be selected in a predetermined specific state, and (3) may be selected in a state other than the specific state.

(1)または(2)が選択された場合には、主制御装置10と中継ユニット250との間のデータ更新、ならびに、演算ユニット200と中継ユニット250との間のデータ更新については、交換設定268の設定内容に依存せずに実行されてもよい。さらに、報知する警報の種類あるいは重要度を異ならせたモードを追加してもよい。 When (1) or (2) is selected, exchange settings are required for data updates between main controller 10 and relay unit 250, and data updates between arithmetic unit 200 and relay unit 250. It may be executed independently of the settings of H.268. Furthermore, modes may be added in which the types or degrees of importance of the alarms to be notified are different.

(3)が選択された場合には、主制御装置10と中継ユニット250との間のデータ更新、演算ユニット200と中継ユニット250との間のデータ更新、ならびに、中継ユニット250におけるデータ交換のいずれもが停止または無効化されてもよい。 If (3) is selected, any of the data update between the main controller 10 and the relay unit 250, the data update between the arithmetic unit 200 and the relay unit 250, and the data exchange in the relay unit 250 is selected. may also be stopped or disabled.

このように、ユーザによって設定されるモードに応じて、(1)~(3)の各々を実行するための状態を選択するようにしてもよい。ユーザが設定を行う方法として、中継ユニット250または演算ユニット200に設けられたスイッチを用いてもよいし、ユーザがサポート装置300を操作することで内部のモード設定を変更するようにしてもよい。 In this way, the state for executing each of (1) to (3) may be selected depending on the mode set by the user. As a method for the user to make settings, a switch provided in the relay unit 250 or the arithmetic unit 200 may be used, or the user may change the internal mode setting by operating the support device 300.

また、(1)における警告の報知の方法として、中継ユニット250または演算ユニット200に設けられた表示デバイス(例えば、LED)を点滅または点灯する方法を採用してもよい。あるいは、警告の報知の方法として、中継ユニット250または演算ユニット200に設けられた音声デバイス(例えば、スピーカ)から警告を示す音または音声を出力する方法を採用してもよい。あるいは、演算ユニット200のシステムデータに、警告の有無を示すフラグなどを用意しておき、ユーザがサポート装置300を操作することで、警告の発生を認識できるようにしてもよい。 Further, as a method for notifying the warning in (1), a method of blinking or lighting a display device (for example, an LED) provided in the relay unit 250 or the arithmetic unit 200 may be adopted. Alternatively, as a method for notifying the warning, a method may be adopted in which a sound or voice indicating the warning is output from an audio device (for example, a speaker) provided in the relay unit 250 or the arithmetic unit 200. Alternatively, a flag indicating the presence or absence of a warning may be provided in the system data of the arithmetic unit 200 so that the user can recognize the occurrence of a warning by operating the support device 300.

このように、制御システム1は、出力データ80に含まれるエントリと送信データ50に含まれるエントリとの間でデータサイズが一致しない場合、および/または、入力データ90に含まれるエントリと受信データ60に含まれるエントリとの間でデータサイズが一致しない場合に、警告を報知する報知部を含んでいてもよい。 In this way, when the data sizes do not match between an entry included in the output data 80 and an entry included in the transmission data 50, and/or an entry included in the input data 90 and an entry included in the received data 60, the control system 1 The information may include a notification unit that provides a warning when the data size does not match with the entry included in the entry.

図12は、本実施の形態に従う制御システムにおいてデータ更新が停止している場合の動作例を説明するための図である。図12には、演算ユニット200と中継ユニット250との間のデータ更新44(出力データ80の更新および入力データ90の送信)が何らかの理由で停止している状態を示す。 FIG. 12 is a diagram for explaining an example of the operation when data updating is stopped in the control system according to the present embodiment. FIG. 12 shows a state in which data updating 44 (updating of output data 80 and transmission of input data 90) between arithmetic unit 200 and relay unit 250 is stopped for some reason.

停止の理由としては、例えば、(1)いずれかのユニットに何らかの故障が生じた場合、(2)いずれかのユニットの設定に何らかの誤りがある(何らの設定もなされていない場合も含み得る)、(3)いずれかのユニットが関与する通信に何らかの異常が発生している(自ユニットが通信異常の原因になっている場合もあるし、他のユニットが通信異常の原因になっている場合もある)などが挙げられる。 Reasons for stopping include, for example, (1) some kind of failure has occurred in any of the units; (2) there is some kind of error in the settings of any of the units (this may also include cases where no settings have been made). , (3) Some kind of abnormality has occurred in the communication involving one of the units (the own unit may be the cause of the communication error, or another unit may be the cause of the communication error) ), etc.

このような状態であっても、主制御装置10と中継ユニット250との間のデータ更新42(送信データ50の送信および受信データ60の更新)は継続する。すなわち、主制御装置10と中継ユニット250との間のデータ更新42、および、演算ユニット200と中継ユニット250との間のデータ更新44の互いに独立して実行されるので、一方が何らかの理由で停止したとしても、他方に影響を与えることはない。 Even in such a state, data updating 42 (transmission of transmission data 50 and updating of reception data 60) between main control device 10 and relay unit 250 continues. That is, data update 42 between main controller 10 and relay unit 250 and data update 44 between arithmetic unit 200 and relay unit 250 are executed independently of each other, so if one of them stops for some reason. Even if one does, it will not affect the other.

なお、図12には、演算ユニット200と中継ユニット250との間のデータ更新44が停止している状態を示すが、主制御装置10と中継ユニット250との間のデータ更新42が停止している状態であっても同様である。 Note that although FIG. 12 shows a state where the data update 44 between the arithmetic unit 200 and the relay unit 250 is stopped, it is also possible that the data update 42 between the main controller 10 and the relay unit 250 is stopped. The same is true even if you are in a state where you are.

さらに、主制御装置10において、演算ユニット200と中継ユニット250との間のデータ更新44が停止している状態を知ることができる仕組み、および/または、演算ユニット200において、主制御装置10と中継ユニット250との間のデータ更新42が停止している状態を知ることができる仕組みを用意してもよい。 Furthermore, in the main control device 10, a mechanism is provided in which it is possible to know the state in which the data update 44 between the arithmetic unit 200 and the relay unit 250 is stopped, and/or in the arithmetic unit 200, the relay unit 250 and the relay unit 250 A mechanism may be provided that allows the user to know when the data update 42 with the unit 250 is stopped.

例えば、図12に示す状態において、主制御装置10と中継ユニット250との間のデータ更新42は継続されて、主制御装置10は、演算ユニット200と中継ユニット250との間のデータ更新44が停止していることを直接的に知ることができない。そこで、中継ユニット250は、演算ユニット200と中継ユニット250との間のデータ更新44が停止していることを含めた通信の正当性に関する情報を主制御装置10に送信するようにしてもよい。 For example, in the state shown in FIG. 12, the data update 42 between the main controller 10 and the relay unit 250 is continued, and the main controller 10 continues the data update 44 between the arithmetic unit 200 and the relay unit 250. It is not possible to directly know that it is stopped. Therefore, the relay unit 250 may transmit information regarding the validity of the communication including that the data update 44 between the arithmetic unit 200 and the relay unit 250 has been stopped to the main control device 10.

主制御装置10は、中継ユニット250からの情報に基づいて、中継ユニット250から演算ユニット200までのデータ通信に生じている異常を知ることができる。例えば、正当性に関する情報を任意の変数に割り当てることで、主制御装置10において実行されるユーザプログラム132から当該変数を参照可能にしてもよい。 Based on the information from the relay unit 250, the main control device 10 can know an abnormality occurring in the data communication from the relay unit 250 to the arithmetic unit 200. For example, by assigning information regarding validity to an arbitrary variable, the variable may be made referenceable from the user program 132 executed in the main control device 10.

同様に、主制御装置10と中継ユニット250との間のデータ更新42が停止している状態において、中継ユニット250は、主制御装置10と中継ユニット250との間のデータ更新42が停止していることを含めた通信の正当性に関する情報を演算ユニット200に送信するようにしてもよい。 Similarly, in a state where the data update 42 between the main controller 10 and the relay unit 250 is stopped, the relay unit 250 is in a state where the data update 42 between the main controller 10 and the relay unit 250 is stopped. Information regarding the validity of the communication, including the fact that the communication is valid, may be transmitted to the calculation unit 200.

このように、主制御装置10および/または演算ユニット200において、直接的に接続されていないネットワークの状態を知ることができるような仕組みを採用することで、通信の正当性を監視しながら、主制御装置10および/または演算ユニット200において通信処理を実行できる。 In this way, by adopting a mechanism that allows the main control device 10 and/or the processing unit 200 to know the status of networks that are not directly connected, the main controller 10 and/or the processing unit 200 can monitor the validity of communication while Communication processing can be executed in the control device 10 and/or the arithmetic unit 200.

<F.処理手順例>
次に、本実施の形態に従う制御システム1における中継ユニット250の処理手順例について説明する。
<F. Processing procedure example>
Next, an example of a processing procedure of relay unit 250 in control system 1 according to the present embodiment will be described.

図13は、本実施の形態に従う中継ユニット250のサイクリック通信によるI/Oデータ送信の処理手順例を示すフローチャートである。図13に示す各ステップは、中継ユニット250のプロセッサ262がシステムプログラムを実行することで実現されてもよい。 FIG. 13 is a flowchart illustrating an example of a processing procedure for transmitting I/O data through cyclic communication by relay unit 250 according to the present embodiment. Each step shown in FIG. 13 may be realized by the processor 262 of the relay unit 250 executing a system program.

図13を参照して、中継ユニット250は、交換設定268を読み込む条件が成立したか否かを判断する(ステップS100)。交換設定268を読み込む条件は、例えば、中継ユニット250の電源投入直後、中継ユニット250のリセット直後、新たな交換設定268がサポート装置300から転送された直後などを含む。 Referring to FIG. 13, relay unit 250 determines whether the conditions for reading exchange settings 268 are satisfied (step S100). Conditions for reading the exchange settings 268 include, for example, immediately after the relay unit 250 is powered on, immediately after the relay unit 250 is reset, and immediately after the new exchange settings 268 are transferred from the support device 300.

交換設定268を読み込む条件が成立していれば(ステップS100においてYES)、中継ユニット250は、交換設定268を読み込んで、出力データ80および入力データ90のエントリの割り当て、ならびに、送信データ50および受信データ60のエントリの割り当てを取得し(ステップS102)、出力データ80と送信データ50との間で設定されたデータサイズが一致するか否か、および、入力データ90と受信データ60との間で設定されたデータサイズが一致するか否かを判断する(ステップS104)。 If the conditions for reading exchange settings 268 are met (YES in step S100), relay unit 250 reads exchange settings 268, assigns entries for output data 80 and input data 90, and assigns transmission data 50 and reception data. Obtain entry allocation for the data 60 (step S102), and check whether the data sizes set between the output data 80 and the transmission data 50 match, and whether the data sizes set between the input data 90 and the reception data 60 match. It is determined whether the set data sizes match (step S104).

出力データ80と送信データ50との間で設定されたデータサイズが一致しない、および/または、入力データ90と受信データ60との間で設定されたデータサイズが一致しない場合(ステップS104においてNO)、中継ユニット250は、現在設定されているモードを取得し(ステップS106)、設定されているモードに応じて、データサイズの不一致がデータ転送の実行条件であるか否かを判断する(ステップS108)。 If the data sizes set between the output data 80 and the transmission data 50 do not match, and/or the data sizes set between the input data 90 and the received data 60 do not match (NO in step S104) , the relay unit 250 obtains the currently set mode (step S106), and determines whether the data size mismatch is a data transfer execution condition according to the set mode (step S108). ).

データサイズの不一致がデータ転送の実行条件であれば(ステップS108においてYES)、中継ユニット250は、データ転送を停止する(ステップS110)。そして、処理は終了する。 If the data size mismatch is a data transfer execution condition (YES in step S108), relay unit 250 stops data transfer (step S110). Then, the process ends.

データサイズの不一致がデータ転送の実行条件でなければ(ステップS108においてNO)、中継ユニット250は、設定されているモードに応じた態様で、データサイズの不一致を示す警告を報知する(ステップS112)。また、中継ユニット250は、出力データ80と送信データ50との間で一致しているエントリ、および、入力データ90と受信データ60との間で一致しているエントリに基づいて、データ転送の対象データを決定する(ステップS114)。そして、ステップS100以下の処理が繰り返される。 If the data size mismatch is not a data transfer execution condition (NO in step S108), the relay unit 250 issues a warning indicating the data size mismatch in a manner according to the set mode (step S112). . Further, the relay unit 250 determines the data transfer target based on entries that match between the output data 80 and the transmission data 50 and entries that match between the input data 90 and the received data 60. Data is determined (step S114). Then, the processing from step S100 onwards is repeated.

出力データ80と送信データ50との間で設定されたデータサイズが一致し、かつ、入力データ90と受信データ60との間で設定されたデータサイズが一致する場合(ステップS104においてYES)、中継ユニット250は、交換設定268に基づいて、データ転送の対象データを決定する(ステップS116)。そして、ステップS100以下の処理が繰り返される。 If the data sizes set between the output data 80 and the transmission data 50 match, and the data sizes set between the input data 90 and the reception data 60 match (YES in step S104), the relay The unit 250 determines data to be transferred based on the exchange settings 268 (step S116). Then, the processing from step S100 onwards is repeated.

交換設定268を読み込む条件が成立していなければ(ステップS100においてNO)、中継ユニット250は、送信データ50および受信データ60を更新する(ステップS118)とともに、出力データ80および入力データ90を更新する(ステップS120)。すなわち、中継ユニット250は、交換設定268の設定内容にかかわらず、フィールドネットワーク4を介した主制御装置10と中継ユニット250との間の送信データ50および受信データ60のデータ更新、および、内部バス6を介した演算ユニット200と中継ユニット250との間の出力データ80および入力データ90のデータ更新、をそれぞれ周期的に実行する。 If the conditions for reading exchange settings 268 are not satisfied (NO in step S100), relay unit 250 updates transmission data 50 and reception data 60 (step S118), and also updates output data 80 and input data 90. (Step S120). In other words, the relay unit 250 updates the transmitted data 50 and the received data 60 between the main controller 10 and the relay unit 250 via the field network 4, and updates the internal bus regardless of the settings of the exchange settings 268. Data updating of the output data 80 and the input data 90 between the arithmetic unit 200 and the relay unit 250 via 6 is performed periodically.

そして、中継ユニット250は、データ転送の対象データについて、出力データ80と送信データ50との間、および、受信データ60と入力データ90との間でデータ転送を行う(ステップS122)。なお、データ転送の対象データがない場合も存在する。この場合には、実質的にデータ交換は行われない。そして、ステップS100以下の処理が繰り返される。 Then, the relay unit 250 performs data transfer between the output data 80 and the transmission data 50 and between the reception data 60 and the input data 90 regarding the data to be transferred (step S122). Note that there may be cases where there is no data to be transferred. In this case, virtually no data exchange takes place. Then, the processing from step S100 onwards is repeated.

なお、図13には、中継ユニット250が交換設定268の設定内容を評価する処理例を示すが、演算ユニット200が交換設定268の設定内容を評価するようにしてもよい。この場合には、図13に示す処理手順は、演算ユニット200および中継ユニット250が連携して実行されることになる。さらに、図13に示す処理手順の少なくとも一部をサポート装置300が実行するようにしてもよい。 Although FIG. 13 shows a processing example in which the relay unit 250 evaluates the settings of the exchange settings 268, the calculation unit 200 may evaluate the settings of the exchange settings 268. In this case, the processing procedure shown in FIG. 13 will be executed by the arithmetic unit 200 and the relay unit 250 in cooperation. Furthermore, the support device 300 may execute at least a portion of the processing procedure shown in FIG.

なお、交換設定268が存在しない場合、および/または、交換設定268の設定内容が実質的に何もない場合においては、仮に、中継ユニット250が交換設定268を読み込んでも、何らの設定もなされない。このような場合であっても、中継ユニット250におけるデータ交換46(送信データ50を出力データ80で更新、および、入力データ90を受信データ60で更新)が実行されないだけであり、主制御装置10と中継ユニット250との間のデータ更新42(送信データ50の送信および受信データ60の更新)、および、演算ユニット200と中継ユニット250との間のデータ更新44(出力データ80の更新および入力データ90の送信)は、予め定められた設定に従って実行されてもよい。 Note that if the exchange setting 268 does not exist and/or if there is virtually no setting content in the exchange setting 268, no settings will be made even if the relay unit 250 reads the exchange setting 268. . Even in such a case, the data exchange 46 (updating the transmitted data 50 with the output data 80 and updating the input data 90 with the received data 60) in the relay unit 250 is not executed, and the main controller 10 and the relay unit 250 (transmission of the transmission data 50 and update of the reception data 60), and data update 44 (update of the output data 80 and update of the input data) between the arithmetic unit 200 and the relay unit 250. 90) may be performed according to predetermined settings.

このように、中継ユニット250は、交換設定268が存在しなくても、主制御装置10とのデータ更新および演算ユニット200とのデータ更新を継続するようにしてもよい。 In this way, the relay unit 250 may continue updating data with the main controller 10 and updating data with the arithmetic unit 200 even if the exchange setting 268 does not exist.

<G.ユーザインターフェイス>
次に、本実施の形態に従う制御システム1における中継ユニット250の交換設定268を作成するためのユーザインターフェイス例について説明する。
<G. User interface>
Next, an example of a user interface for creating exchange settings 268 for relay unit 250 in control system 1 according to the present embodiment will be described.

図14は、本実施の形態に従う制御システム1における中継ユニット250の交換設定268を作成するためのユーザインターフェイス例を示す模式図である。例えば、サポート装置300が図14に示すユーザインターフェイスを提供する。 FIG. 14 is a schematic diagram showing an example of a user interface for creating exchange settings 268 for relay unit 250 in control system 1 according to the present embodiment. For example, the support device 300 provides the user interface shown in FIG.

図14を参照して、設定画面350は、演算ユニット200から主制御装置10へ転送するデータの設定項目群352と、主制御装置10から演算ユニット200へ転送するデータの設定項目群354とを含む。設定項目群352,354の各々は、データ構造およびデータ種類の別に複数種類の設定を含む。設定画面350は、データ転送の対象となるデータ候補群356を含む。 Referring to FIG. 14, a setting screen 350 displays a setting item group 352 for data to be transferred from the arithmetic unit 200 to the main controller 10, and a setting item group 354 for data to be transferred from the main controller 10 to the arithmetic unit 200. include. Each of the setting item groups 352 and 354 includes multiple types of settings according to data structure and data type. The setting screen 350 includes a data candidate group 356 to be data transferred.

ユーザは、設定項目群352,354のうち対象の項目を選択した上で、データ候補群356から転送対象のデータを選択する。追加ボタン358が押下されることで、選択中のデータが転送対象として追加され、削除ボタン360が押下されることで、選択中のデータが転送対象から削除される。 The user selects the target item from the setting item groups 352 and 354, and then selects the data to be transferred from the data candidate group 356. By pressing the add button 358, the selected data is added as a transfer target, and by pressing the delete button 360, the selected data is deleted from the transfer target.

ユーザが設定画面350を操作して作成した交換設定268は、中継ユニット250に格納されるとともに、主制御装置10および演算ユニット200にも対応する設定が格納される。 The exchange settings 268 created by the user by operating the settings screen 350 are stored in the relay unit 250, and the corresponding settings are also stored in the main controller 10 and the calculation unit 200.

図14に示すユーザインターフェイス例に限られず、任意のインターフェイスが提供されてもよいし、ユーザインターフェイスを用意せずに、任意の方法で交換設定268を作成できるようにしてもよい。 The user interface is not limited to the example shown in FIG. 14, and any interface may be provided, or the exchange settings 268 may be created by any method without providing a user interface.

また、フィールドネットワーク4のフレーム30に含まれるデータのエントリの設定については、別の設定画面が提供される。 Further, a separate setting screen is provided for setting entries of data included in the frame 30 of the field network 4.

さらに、ユーザインターフェイスは、サポート装置300が提供するのではなく、演算ユニット200または中継ユニット250が直接的に提供するようにしてもよい。この場合には、例えば、演算ユニット200または中継ユニット250にウェブサーバ機能を組み込んでもよい。 Furthermore, the user interface may not be provided by the support device 300, but may be directly provided by the computing unit 200 or the relay unit 250. In this case, for example, a web server function may be incorporated into the computing unit 200 or the relay unit 250.

このように、制御システム1は、ユーザ操作に応じて、交換設定268を作成するためのユーザインターフェイスを提供するようにしてもよい。 In this manner, control system 1 may provide a user interface for creating exchange settings 268 in response to user operations.

<H.付記>
上述したような本実施の形態は、以下のような技術思想を含む。
<H. Additional notes>
This embodiment as described above includes the following technical idea.

[構成1]
ネットワーク(4)を介して接続された第1制御装置(10)および第2制御装置(20)を備える制御システム(1)であって、
前記第2制御装置は、制御演算を実行する演算ユニット(200)と、前記ネットワークに接続するためのインターフェイス(270)を有する中継ユニット(250)とを備え、
前記中継ユニットは、交換設定(268)に従って、前記演算ユニットが管理するデータ(70)の前記ネットワークを介した送信、および、前記ネットワークを介して受信したデータによる前記演算ユニットが管理するデータの更新、を含むデータ転送を実行するように構成されており、
前記交換設定は、前記演算ユニットが管理するデータのうち送信対象のデータ(80)を示す第1の設定と、前記ネットワークを介して送信するデータ(50)を示す第2の設定と、前記演算ユニットが管理するデータのうち更新対象となるデータ(90)を示す第3の設定と、前記ネットワークを介して受信するデータ(60)を示す第4の設定とを含み、
前記中継ユニットは、
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致するか否か、および、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断し、
予め定められた第1の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、前記交換設定に従うデータ転送を実行する、制御システム。
[Configuration 1]
A control system (1) comprising a first control device (10) and a second control device (20) connected via a network (4),
The second control device includes a calculation unit (200) that performs control calculations, and a relay unit (250) having an interface (270) for connecting to the network,
The relay unit transmits data (70) managed by the computing unit via the network and updates the data managed by the computing unit with data received via the network, according to exchange settings (268). is configured to perform data transfers including,
The exchange settings include a first setting indicating data to be transmitted (80) among data managed by the calculation unit, a second setting indicating data (50) to be transmitted via the network, and a second setting indicating the data (50) to be transmitted via the network. including a third setting indicating data (90) to be updated among data managed by the unit, and a fourth setting indicating data (60) received via the network,
The relay unit is
Whether or not the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. determine at least one of whether the data sizes match between the
In a predetermined first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and data indicated by the fourth setting, the control system executes data transfer according to the exchange setting even if data sizes do not match.

[構成2]
前記中継ユニットは、前記第1の状態においては、前記第1の設定が示すデータおよび前記第3の設定が示すデータの周期的な更新、ならびに、前記第2の設定が示すデータおよび前記第4の設定が示すデータの周期的な更新を繰返し実行する、構成1に記載の制御システム。
[Configuration 2]
In the first state, the relay unit periodically updates the data indicated by the first setting and the data indicated by the third setting, and periodically updates the data indicated by the second setting and the data indicated by the fourth setting. The control system according to configuration 1, wherein the control system repeatedly updates the data indicated by the settings.

[構成3]
前記中継ユニットは、前記交換設定が存在しなくても、前記第1制御装置とのデータ更新および前記演算ユニットとのデータ更新を継続する、構成2に記載の制御システム。
[Configuration 3]
The control system according to configuration 2, wherein the relay unit continues updating data with the first control device and updating data with the arithmetic unit even if the exchange setting does not exist.

[構成4]
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合に、警告を報知する報知部をさらに備える、構成1~3のいずれか1項に記載の制御システム。
[Configuration 4]
If the data sizes do not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and the data indicated by the fourth setting. 4. The control system according to any one of configurations 1 to 3, further comprising a notification unit that issues a warning when the data sizes do not match.

[構成5]
前記中継ユニットは、前記第1の設定が示すデータと前記第2の設定が示すデータとのうち一致しているデータ、および、前記第3の設定が示すデータと前記第4の設定が示すデータとのうち一致しているデータ、についてデータ転送を実行する、構成1~4のいずれか1項に記載の制御システム。
[Configuration 5]
The relay unit may match the data indicated by the first setting and the data indicated by the second setting, and the data indicated by the third setting and the data indicated by the fourth setting. The control system according to any one of configurations 1 to 4, wherein the control system executes data transfer for matching data.

[構成6]
前記中継ユニットは、予め定められたデータサイズのデータがデータ転送されるように、前記交換設定に基づいてダミーデータを生成する、構成1~5のいずれか1項に記載の制御システム。
[Configuration 6]
6. The control system according to any one of configurations 1 to 5, wherein the relay unit generates dummy data based on the exchange setting so that data of a predetermined data size is transferred.

[構成7]
前記制御システムは、ユーザ操作に応じて、前記交換設定を作成するためのユーザインターフェイス(350)を提供する、構成1~6のいずれか1項に記載の制御システム。
[Configuration 7]
The control system according to any one of configurations 1 to 6, wherein the control system provides a user interface (350) for creating the exchange settings in response to a user operation.

[構成8]
前記中継ユニットは、
前記第1の状態とは異なる第2の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合には、前記交換設定に従うデータ転送を停止または無効化する、構成1~7のいずれか1項に記載の制御システム。
[Configuration 8]
The relay unit is
In a second state different from the first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or According to any one of configurations 1 to 7, if the data size does not match between the data indicated by the setting and the data indicated by the fourth setting, data transfer according to the exchange setting is stopped or invalidated. control system.

[構成9]
ユーザによって設定されるモードに応じて、前記第1の状態および前記第2の状態が決定される、構成8に記載の制御システム。
[Configuration 9]
9. The control system according to configuration 8, wherein the first state and the second state are determined depending on a mode set by a user.

[構成10]
ネットワーク(4)を介して他の制御装置(10)と接続された制御装置(20)であって、
制御演算を実行する演算ユニット(200)と、
前記ネットワーク(4)に接続するためのインターフェイス(270)を有する中継ユニット(250)とを備え、
前記中継ユニットは、交換設定(268)に従って、前記演算ユニットが管理するデータ(70)の前記ネットワークを介した送信、および、前記ネットワークを介して受信したデータによる前記演算ユニットが管理するデータの更新、を含むデータ転送を実行するように構成されており、
前記交換設定は、前記演算ユニットが管理するデータのうち送信対象のデータ(80)を示す第1の設定と、前記ネットワークを介して送信するデータ(50)を示す第2の設定と、前記演算ユニットが管理するデータ(90)のうち更新対象となるデータを示す第3の設定と、前記ネットワークを介して受信するデータ(60)を示す第4の設定とを含み、
前記中継ユニットは、
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致するか否か、および、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断し、
予め定められた第1の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、前記交換設定に従うデータ転送を実行する、制御装置。
[Configuration 10]
A control device (20) connected to another control device (10) via a network (4),
a calculation unit (200) that performs control calculation;
a relay unit (250) having an interface (270) for connecting to the network (4),
The relay unit transmits data (70) managed by the computing unit via the network and updates the data managed by the computing unit with data received via the network, according to exchange settings (268). is configured to perform data transfers including,
The exchange settings include a first setting indicating data to be transmitted (80) among data managed by the calculation unit, a second setting indicating data (50) to be transmitted via the network, and a second setting indicating the data (50) to be transmitted via the network. including a third setting indicating data to be updated among data (90) managed by the unit, and a fourth setting indicating data (60) received via the network,
The relay unit is
Whether or not the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. determine at least one of whether the data sizes match between the
In a predetermined first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and data indicated by the fourth setting, the control device executes data transfer according to the exchange setting even if data sizes do not match.

[構成11]
ネットワーク(4)を介して接続された第1制御装置(10)および第2制御装置(20)を備える制御システム(1)における通信方法であって、前記第2制御装置は、制御演算を実行する演算ユニットと、前記ネットワークに接続するためのインターフェイスを有する中継ユニットとを備え、前記通信方法は、
前記中継ユニットが、交換設定(268)に従って、前記演算ユニットが管理するデータ(70)の前記ネットワークを介した送信、および、前記ネットワークを介して受信したデータによる前記演算ユニットが管理するデータの更新、を含むデータ転送を実行するステップを備え、前記交換設定は、前記演算ユニットが管理するデータのうち送信対象のデータ(80)を示す第1の設定と、前記ネットワークを介して送信するデータ(50)を示す第2の設定と、前記演算ユニットが管理するデータのうち更新対象となるデータ(90)を示す第3の設定と、前記ネットワークを介して受信するデータ(60)を示す第4の設定とを含み、
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致するか否か、および、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断するステップ(S104)と、
予め定められた第1の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、前記中継ユニットが、前記交換設定に従うデータ転送を実行するステップ(S118~S122)とを備える、通信方法。
[Configuration 11]
A communication method in a control system (1) comprising a first control device (10) and a second control device (20) connected via a network (4), wherein the second control device executes a control calculation. and a relay unit having an interface for connecting to the network, the communication method comprising:
The relay unit transmits data (70) managed by the computing unit via the network and updates the data managed by the computing unit with data received via the network, according to exchange settings (268). , the exchange settings include a first setting indicating data (80) to be transmitted among data managed by the arithmetic unit, and data (80) to be transmitted via the network. 50), a third setting indicating data (90) to be updated among data managed by the arithmetic unit, and a fourth setting indicating data (60) to be received via the network. including the settings of
Whether or not the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. a step of determining at least one of whether or not the data sizes match between the two (S104);
In a predetermined first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and the step (S118 to S122) in which the relay unit executes data transfer according to the exchange setting even if the data size does not match between the data indicated by the exchange setting and the data indicated by the fourth setting. .

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した説明ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiments disclosed this time should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is indicated by the claims rather than the above description, and it is intended that all changes within the meaning and range equivalent to the claims are included.

1 制御システム、3M,31,32~3N 領域、4 フィールドネットワーク、6 内部バス、10 主制御装置、20 副制御装置、30 フレーム、40 制御演算、50 送信データ、60 受信データ、70 プロセスデータ、72,90 入力データ、74,80 出力データ、76 システムデータ、82 システム管理、100,200 演算ユニット、102,202,262 プロセッサ、104,204 チップセット、106,206,264 メモリ、108,208,266 ストレージ、110,210 上位ネットワークインターフェイス、112,212 USBインターフェイス、114,214 メモリカードインターフェイス、116,216 メモリカード、120,270 フィールドネットワークインターフェイス、131,231 システムプログラム、132,232 ユーザプログラム、220,280 内部バスインターフェイス、250 中継ユニット、260 処理回路、268 交換設定、300 サポート装置、350 設定画面、352,354 設定項目群、356 データ候補群、358 追加ボタン、360 削除ボタン。 1 Control system, 3M, 31, 32 to 3N area, 4 Field network, 6 Internal bus, 10 Main controller, 20 Sub controller, 30 Frame, 40 Control calculation, 50 Transmission data, 60 Reception data, 70 Process data, 72,90 input data, 74,80 output data, 76 system data, 82 system management, 100,200 arithmetic unit, 102,202,262 processor, 104,204 chipset, 106,206,264 memory, 108,208, 266 storage, 110,210 upper network interface, 112,212 USB interface, 114,214 memory card interface, 116,216 memory card, 120,270 field network interface, 131,231 system program, 132,232 user program, 220, 280 internal bus interface, 250 relay unit, 260 processing circuit, 268 exchange setting, 300 support device, 350 setting screen, 352, 354 setting item group, 356 data candidate group, 358 add button, 360 delete button.

Claims (11)

ネットワークを介して接続された第1制御装置および第2制御装置を備える制御システムであって、
前記第2制御装置は、制御演算を実行する演算ユニットと、前記ネットワークに接続するためのインターフェイスを有する中継ユニットとを備え、
前記中継ユニットは、交換設定に従って、前記演算ユニットが管理するデータの前記ネットワークを介した送信、および、前記ネットワークを介して受信したデータによる前記演算ユニットが管理するデータの更新、を含むデータ転送を実行するように構成されており、
前記交換設定は、前記演算ユニットが管理するデータのうち送信対象のデータを示す第1の設定と、前記ネットワークを介して送信するデータを示す第2の設定と、前記演算ユニットが管理するデータのうち更新対象となるデータを示す第3の設定と、前記ネットワークを介して受信するデータを示す第4の設定とを含み、
前記中継ユニットは、
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致するか否か、および、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断し、
予め定められた第1の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、前記交換設定に従うデータ転送を実行する、制御システム。
A control system comprising a first control device and a second control device connected via a network,
The second control device includes a calculation unit that performs control calculations and a relay unit that has an interface for connecting to the network,
The relay unit performs data transfer, including transmitting data managed by the computing unit via the network and updating data managed by the computing unit with data received via the network, according to exchange settings. is configured to run
The exchange settings include a first setting indicating data to be transmitted among the data managed by the computing unit, a second setting indicating data to be transmitted via the network, and a second setting indicating data to be transmitted among the data managed by the computing unit. including a third setting indicating data to be updated and a fourth setting indicating data received via the network,
The relay unit is
Whether or not the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. determine at least one of whether the data sizes match or not,
In a predetermined first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and data indicated by the fourth setting, the control system executes data transfer according to the exchange setting even if data sizes do not match.
前記中継ユニットは、前記第1の状態においては、前記第1の設定が示すデータおよび前記第3の設定が示すデータの周期的な更新、ならびに、前記第2の設定が示すデータおよび前記第4の設定が示すデータの周期的な更新を繰返し実行する、請求項1に記載の制御システム。 In the first state, the relay unit periodically updates the data indicated by the first setting and the data indicated by the third setting, and periodically updates the data indicated by the second setting and the data indicated by the fourth setting. The control system according to claim 1, wherein the control system repeatedly updates the data indicated by the setting. 前記中継ユニットは、前記交換設定が存在しなくても、前記第1制御装置とのデータ更新および前記演算ユニットとのデータ更新を継続する、請求項2に記載の制御システム。 The control system according to claim 2, wherein the relay unit continues updating data with the first control device and updating data with the arithmetic unit even if the exchange setting does not exist. 前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合に、警告を報知する報知部をさらに備える、請求項1に記載の制御システム。 If the data sizes do not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and the data indicated by the fourth setting. The control system according to claim 1, further comprising a notification unit that issues a warning when the data sizes do not match. 前記中継ユニットは、前記第1の設定が示すデータと前記第2の設定が示すデータとのうち一致しているデータ、および、前記第3の設定が示すデータと前記第4の設定が示すデータとのうち一致しているデータ、についてデータ転送を実行する、請求項1~4のいずれか1項に記載の制御システム。 The relay unit may match the data indicated by the first setting and the data indicated by the second setting, and the data indicated by the third setting and the data indicated by the fourth setting. 5. The control system according to claim 1, wherein the control system executes data transfer for matching data. 前記中継ユニットは、予め定められたデータサイズのデータがデータ転送されるように、前記交換設定に基づいてダミーデータを生成する、請求項1~4のいずれか1項に記載の制御システム。 The control system according to any one of claims 1 to 4, wherein the relay unit generates dummy data based on the exchange settings so that data of a predetermined data size is transferred. 前記制御システムは、ユーザ操作に応じて、前記交換設定を作成するためのユーザインターフェイスを提供する、請求項1~4のいずれか1項に記載の制御システム。 The control system according to any one of claims 1 to 4, wherein the control system provides a user interface for creating the exchange settings in response to a user operation. 前記中継ユニットは、
前記第1の状態とは異なる第2の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合には、前記交換設定に従うデータ転送を停止または無効化する、請求項1~4のいずれか1項に記載の制御システム。
The relay unit is
In a second state different from the first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or According to any one of claims 1 to 4, when data sizes do not match between the data indicated by the setting and the data indicated by the fourth setting, data transfer according to the exchange setting is stopped or invalidated. Control system as described.
ユーザによって設定されるモードに応じて、前記第1の状態および前記第2の状態が決定される、請求項8に記載の制御システム。 The control system according to claim 8, wherein the first state and the second state are determined depending on a mode set by a user. ネットワークを介して他の制御装置と接続された制御装置であって、
制御演算を実行する演算ユニットと、
前記ネットワークに接続するためのインターフェイスを有する中継ユニットとを備え、
前記中継ユニットは、交換設定に従って、前記演算ユニットが管理するデータの前記ネットワークを介した送信、および、前記ネットワークを介して受信したデータによる前記演算ユニットが管理するデータの更新、を含むデータ転送を実行するように構成されており、
前記交換設定は、前記演算ユニットが管理するデータのうち送信対象のデータを示す第1の設定と、前記ネットワークを介して送信するデータを示す第2の設定と、前記演算ユニットが管理するデータのうち更新対象となるデータを示す第3の設定と、前記ネットワークを介して受信するデータを示す第4の設定とを含み、
前記中継ユニットは、
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致するか否か、および、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断し、
予め定められた第1の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、前記交換設定に従うデータ転送を実行する、制御装置。
A control device connected to other control devices via a network,
a calculation unit that performs control calculations;
and a relay unit having an interface for connecting to the network,
The relay unit performs data transfer, including transmitting data managed by the computing unit via the network and updating data managed by the computing unit with data received via the network, according to exchange settings. is configured to run
The exchange settings include a first setting indicating data to be transmitted among the data managed by the computing unit, a second setting indicating data to be transmitted via the network, and a second setting indicating data to be transmitted among the data managed by the computing unit. including a third setting indicating data to be updated and a fourth setting indicating data received via the network,
The relay unit is
Whether or not the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. determine at least one of whether the data sizes match between the
In a predetermined first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and data indicated by the fourth setting, the control device executes data transfer according to the exchange setting even if data sizes do not match.
ネットワークを介して接続された第1制御装置および第2制御装置を備える制御システムにおける通信方法であって、前記第2制御装置は、制御演算を実行する演算ユニットと、前記ネットワークに接続するためのインターフェイスを有する中継ユニットとを備え、前記通信方法は、
前記中継ユニットが、交換設定に従って、前記演算ユニットが管理するデータの前記ネットワークを介した送信、および、前記ネットワークを介して受信したデータによる前記演算ユニットが管理するデータの更新、を含むデータ転送を実行するステップを備え、前記交換設定は、前記演算ユニットが管理するデータのうち送信対象のデータを示す第1の設定と、前記ネットワークを介して送信するデータを示す第2の設定と、前記演算ユニットが管理するデータのうち更新対象となるデータを示す第3の設定と、前記ネットワークを介して受信するデータを示す第4の設定とを含み、
前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致するか否か、および、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致するか否か、のうち少なくとも一方を判断するステップと、
予め定められた第1の状態において、前記第1の設定が示すデータと前記第2の設定が示すデータとの間でデータサイズが一致しない場合、および/または、前記第3の設定が示すデータと前記第4の設定が示すデータとの間でデータサイズが一致しない場合であっても、前記中継ユニットが、前記交換設定に従うデータ転送を実行するステップとを備える、通信方法。
A communication method in a control system including a first control device and a second control device connected via a network, wherein the second control device includes an arithmetic unit that executes control calculations and a control unit for connecting to the network. and a relay unit having an interface, the communication method comprising:
The relay unit performs data transfer, including transmitting data managed by the computing unit via the network and updating data managed by the computing unit with data received via the network, according to exchange settings. The exchange settings include a first setting indicating data to be transmitted among data managed by the arithmetic unit, a second setting indicating data to be transmitted via the network, and a second setting indicating the data to be transmitted via the network; including a third setting indicating data to be updated among data managed by the unit, and a fourth setting indicating data received via the network,
Whether or not the data sizes of the data indicated by the first setting and the data indicated by the second setting match, and the data indicated by the third setting and the data indicated by the fourth setting. a step of determining at least one of whether the data sizes match between the two;
In a predetermined first state, if the data size does not match between the data indicated by the first setting and the data indicated by the second setting, and/or the data indicated by the third setting and the step of causing the relay unit to perform data transfer according to the exchange setting even if data sizes do not match between the data indicated by the exchange setting and the data indicated by the fourth setting.
JP2022113437A 2022-07-14 2022-07-14 Control system, control device, and communication method Pending JP2024011461A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022113437A JP2024011461A (en) 2022-07-14 2022-07-14 Control system, control device, and communication method
PCT/JP2023/008837 WO2024014047A1 (en) 2022-07-14 2023-03-08 Control system, control device, and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022113437A JP2024011461A (en) 2022-07-14 2022-07-14 Control system, control device, and communication method

Publications (1)

Publication Number Publication Date
JP2024011461A true JP2024011461A (en) 2024-01-25

Family

ID=89536421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022113437A Pending JP2024011461A (en) 2022-07-14 2022-07-14 Control system, control device, and communication method

Country Status (2)

Country Link
JP (1) JP2024011461A (en)
WO (1) WO2024014047A1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6933183B2 (en) * 2018-03-30 2021-09-08 オムロン株式会社 Safety control system and safety control unit

Also Published As

Publication number Publication date
WO2024014047A1 (en) 2024-01-18

Similar Documents

Publication Publication Date Title
EP3073381B1 (en) Virtual intelligent platform management interface (ipmi) satellite controller and method
US8978025B2 (en) Server and method for updating firmware of server
CN110324399B (en) Bringing cluster awareness into a facility management portal
CN107608710A (en) Software project structure task collocation method and device based on Jenkins instruments
JP2012174081A (en) Information processing system
CN114296405B (en) Achieving server-less functionality using container orchestration systems and operating technology devices
WO2017032112A1 (en) Method for communicating with board having no central processing unit and communication device
CN109839890B (en) Control device, control method, and computer-readable storage medium
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
WO2024014047A1 (en) Control system, control device, and communication method
JP6357879B2 (en) System and fault handling method
WO2020235174A1 (en) Transfer device, information processing device, and data transfer method
JP5276625B2 (en) Update API detection system, update API detection device, update API detection method, and update API detection program
WO2023248548A1 (en) Control system, relay device, and communication method
TW201826138A (en) Cloud service hosting system and methods for handling abnormal states of cloud services
WO2024014048A1 (en) Control system, control device, and communication method
JP6973063B2 (en) Image processing system and information processing equipment
JP2021043725A (en) Calculation system, calculation method, and program
WO2023248547A1 (en) Control system, relay device, and communication method
JP6394620B2 (en) Server management system, server, server management method, and service processor
CN110221869B (en) Method and device for configuring data center operating environment
WO2023248551A1 (en) Control system, relay device, and communication method
JP5672225B2 (en) HARDWARE MANAGEMENT DEVICE, INFORMATION PROCESSING DEVICE, HARDWARE MANAGEMENT METHOD, AND COMPUTER PROGRAM
JP2015114991A (en) Data processor, data processor monitoring method and data processing system
JP6915583B2 (en) Safety control system and control method in safety control system