JP7521253B2 - Terminal device, communication system, and terminal device communication method - Google Patents

Terminal device, communication system, and terminal device communication method Download PDF

Info

Publication number
JP7521253B2
JP7521253B2 JP2020084390A JP2020084390A JP7521253B2 JP 7521253 B2 JP7521253 B2 JP 7521253B2 JP 2020084390 A JP2020084390 A JP 2020084390A JP 2020084390 A JP2020084390 A JP 2020084390A JP 7521253 B2 JP7521253 B2 JP 7521253B2
Authority
JP
Japan
Prior art keywords
data
transmission
status
communication
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020084390A
Other languages
Japanese (ja)
Other versions
JP2021180391A (en
Inventor
文彦 安西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2020084390A priority Critical patent/JP7521253B2/en
Publication of JP2021180391A publication Critical patent/JP2021180391A/en
Application granted granted Critical
Publication of JP7521253B2 publication Critical patent/JP7521253B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、端末装置、通信システム及び端末装置の通信方法に関する。 The present invention relates to a terminal device, a communication system, and a communication method for a terminal device.

特許文献1には、情報伝達時間の遅れをできるだけ少なくすることにより、リアルタイムな制御を達成し、車両性能向上のための車両間にわたる制御機能の遂行を可能とする通信システム(車両情報装置)が開示されている。この種の通信システムは、ネットワークがイーサネット(登録商標)の場合、端末装置とイーサネットスイッチのポートとの間は1対1に接続する必要があるため、端末装置の数以上にイーサネットスイッチのポート数が必要になる。 Patent Document 1 discloses a communication system (vehicle information device) that achieves real-time control by minimizing delays in information transmission time, and enables control functions between vehicles to be performed to improve vehicle performance. In this type of communication system, when the network is Ethernet (registered trademark), a one-to-one connection is required between the terminal devices and the ports of the Ethernet switch, so the number of Ethernet switch ports must exceed the number of terminal devices.

特開2001-275211号公報JP 2001-275211 A

しかしながら、特許文献1に開示される通信システムを例えば列車の通信システムに用いた場合、イーサネットスイッチの1つのポートに対して1つの端末装置が接続されるため、端末装置の数がイーサネットスイッチのポート数を超えると、イーサネットスイッチを追加する必要があるという課題があった。 However, when the communication system disclosed in Patent Document 1 is used, for example, in a train communication system, one terminal device is connected to one port of the Ethernet switch, so if the number of terminal devices exceeds the number of ports of the Ethernet switch, an additional Ethernet switch is required, which is an issue.

本発明は、上記に鑑みてなされたものであって、イーサネットスイッチ、又はイーサネットスイッチのポートの数の増加を抑制できる端末装置を得ることを目的とする。 The present invention has been made in consideration of the above, and aims to obtain a terminal device that can suppress an increase in the number of Ethernet switches or ports of an Ethernet switch.

上述した課題を解決し、目的を達成するため、本発明に係る端末装置は、ケーブルを介してスイッチ装置のポートに接続され、前記スイッチ装置を介してマスタ装置との間でデータ伝送を行う端末装置であって、前記マスタ装置から送信される制御指令に従い複数の制御対象機器を制御する複数の制御部と、複数の前記制御部のそれぞれから送信される、前記制御部の状態を表す第1の状態データを含む第1の送信データを、所定の送信フォーマットに統合した第2の送信データを前記マスタ装置に送信するデータ送信部と、を備え、前記第2の送信データは、複数の前記制御部のそれぞれの状態を表す前記第1の状態データの論理和の結果を含む。 In order to solve the above-mentioned problems and achieve the object, the terminal device according to the present invention is a terminal device that is connected to a port of a switch device via a cable and transmits data to a master device via the switch device, and includes a plurality of control units that control a plurality of control target devices according to a control command transmitted from the master device, and a data transmission unit that transmits to the master device second transmission data that is obtained by integrating first transmission data, which includes first status data that represents the status of the control units and is transmitted from each of the plurality of control units, into a predetermined transmission format, and the second transmission data includes the result of the logical sum of the first status data that represents the status of each of the plurality of control units.

本発明によれば、イーサネットスイッチ、又はイーサネットスイッチのポートの数の増加を抑制できるという効果を奏する。 The present invention has the effect of suppressing an increase in the number of Ethernet switches or ports on an Ethernet switch.

一実施形態に係る通信システムの構成例を示す図FIG. 1 illustrates an example of the configuration of a communication system according to an embodiment. 一実施形態に係る端末装置の内部構成例を示す図FIG. 2 is a diagram showing an example of the internal configuration of a terminal device according to an embodiment; 第1の実施形態に係る通信I/Fが送信する送信データの送信フォーマットの例を示す図FIG. 1 is a diagram showing an example of a transmission format of transmission data transmitted by a communication I/F according to the first embodiment; 第1の実施形態に係るCPUが送信するデータの送信フォーマットの例を示す図(1)FIG. 1 shows an example of a transmission format of data transmitted by a CPU according to the first embodiment; 第1の実施形態に係るCPUが送信するデータの送信フォーマットの例を示す図(2)FIG. 2 is a diagram showing an example of a transmission format of data transmitted by a CPU according to the first embodiment; 第1の実施形態に係る端末装置の状態について説明するための図FIG. 1 is a diagram for explaining a state of a terminal device according to a first embodiment; 第1の実施形態に係るCPUから通信I/Fへのデータ送信処理の例を示すフローチャート1 is a flowchart showing an example of a data transmission process from a CPU to a communication I/F according to the first embodiment; 第1の実施形態に係る通信I/Fのデータ送信処理の例を示すフローチャートA flowchart showing an example of a data transmission process of a communication I/F according to the first embodiment. 第1の実施形態に係る論理積パターンのイメージを示す図FIG. 1 is a diagram showing an image of a logical product pattern according to the first embodiment; 第1の実施形態に係る通信マスタのデータ受信処理の例を示すフローチャートA flowchart showing an example of a data reception process of a communication master according to the first embodiment. 比較例に係る通信システムの構成例を示す図FIG. 1 is a diagram showing an example of the configuration of a communication system according to a comparative example; 図9に示す端末装置の内部構成例を示す図FIG. 10 is a diagram showing an example of the internal configuration of the terminal device shown in FIG. 図9に示す端末装置が備えるCPUから通信I/Fへのデータの送信フォーマットの例を示す図FIG. 10 is a diagram showing an example of a data transmission format from a CPU to a communication I/F included in the terminal device shown in FIG. 通信I/Fから通信マスタへのデータの送信フォーマットの例を示す図FIG. 13 is a diagram showing an example of a data transmission format from a communication I/F to a communication master; 第2の実施形態に係る通信I/Fが送信する送信データの送信フォーマット例を示す図FIG. 13 is a diagram showing an example of a transmission format of transmission data transmitted by a communication I/F according to the second embodiment; 第2の実施形態に係るCPUが送信する送信データの送信フォーマットの例を示す図FIG. 13 is a diagram showing an example of a transmission format of transmission data transmitted by a CPU according to a second embodiment; 第2の実施形態に係る通信I/Fの送信処理の例を示すフローチャートA flowchart showing an example of a transmission process of a communication I/F according to a second embodiment. 第2の実施形態に係る論理積パターン、及びマスクパターンのイメージを示す図FIG. 13 is a diagram showing an image of a logical product pattern and a mask pattern according to the second embodiment; 第3の実施形態に係る論理積パターンのイメージを示す図FIG. 13 is a diagram showing an image of a logical product pattern according to the third embodiment; 第3の実施形態に係る通信I/Fのデータ送信処理の一例を示すフローチャートである。13 is a flowchart illustrating an example of a data transmission process of a communication I/F according to the third embodiment. 第3の実施形態に係る通信I/Fのデータ送信処理の別の一例を示すフローチャートである。13 is a flowchart illustrating another example of the data transmission process of the communication I/F according to the third embodiment. 第3の実施形態に係る論理積パターンの切替処理の別の一例を示すフローチャートである。13 is a flowchart showing another example of the process of switching a logical product pattern according to the third embodiment.

以下に、本発明の実施の形態に係る端末装置、通信システム及び端末装置の通信方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 The following describes in detail a terminal device, a communication system, and a communication method for a terminal device according to an embodiment of the present invention with reference to the drawings. Note that the present invention is not limited to this embodiment.

[実施の形態]
<システム構成>
図1は、一実施形態に係る通信システムの構成例を示す図である。本発明の実施の形態に係る通信システム100は、通信マスタ1(マスタ装置)と、イーサネットケーブル5を介して通信マスタ1に接続されるイーサネットスイッチ(スイッチ装置)である複数のスイッチ2-1、2-2とを備える。
[Embodiment]
<System Configuration>
1 is a diagram showing an example of the configuration of a communication system according to an embodiment of the present invention. The communication system 100 according to the embodiment of the present invention includes a communication master 1 (master device) and a plurality of switches 2-1 and 2-2 which are Ethernet switches (switch devices) connected to the communication master 1 via an Ethernet cable 5.

また通信システム100は、イーサネットケーブル6-1~6-3を介してスイッチ2-1に接続される複数の端末装置3-1~3-3と、イーサネットケーブル6-4~6-6を介してスイッチ2-2に接続される複数の端末装置3-4~3-6とを備える。 The communication system 100 also includes a number of terminal devices 3-1 to 3-3 connected to the switch 2-1 via Ethernet cables 6-1 to 6-3, and a number of terminal devices 3-4 to 3-6 connected to the switch 2-2 via Ethernet cables 6-4 to 6-6.

通信マスタ1とスイッチ2-1は、イーサネットケーブル5を介して互いに通信可能に接続される。スイッチ2-1とスイッチ2-2は、イーサネットケーブル7を介して互いに通信可能に接続される。スイッチ2-1と端末装置3-1~3-3は、イーサネットケーブル6-1~6-3を介して互いに通信可能に接続される。スイッチ2-2と端末装置3-4~3-6は、イーサネットケーブル6-4~6-6を介して互いに通信可能に接続される。 The communication master 1 and the switch 2-1 are connected to each other so that they can communicate with each other via an Ethernet cable 5. The switches 2-1 and 2-2 are connected to each other so that they can communicate with each other via an Ethernet cable 7. The switch 2-1 and the terminal devices 3-1 to 3-3 are connected to each other so that they can communicate with each other via Ethernet cables 6-1 to 6-3. The switch 2-2 and the terminal devices 3-4 to 3-6 are connected to each other so that they can communicate with each other via Ethernet cables 6-4 to 6-6.

端末装置3-1には、複数の制御対象4-1、4-2が接続される。端末装置3-2には、複数の制御対象4-3、4-4が接続される。端末装置3-3には、複数の制御対象4-5、4-6が接続される。端末装置3-4には、複数の制御対象4-7、4-8が接続される。端末装置3-5には、複数の制御対象4-9、4-10が接続される。端末装置3-6には、複数の制御対象4-11、4-12が接続される。 Multiple control objects 4-1 and 4-2 are connected to terminal device 3-1. Multiple control objects 4-3 and 4-4 are connected to terminal device 3-2. Multiple control objects 4-5 and 4-6 are connected to terminal device 3-3. Multiple control objects 4-7 and 4-8 are connected to terminal device 3-4. Multiple control objects 4-9 and 4-10 are connected to terminal device 3-5. Multiple control objects 4-11 and 4-12 are connected to terminal device 3-6.

以下では、複数のスイッチ2-1、2-2のそれぞれを区別しない場合、「スイッチ2」と称する場合がある。また、複数の端末装置3-1~3-6のそれぞれを区別しない場合、「端末装置3」と称する場合がある。また、複数の制御対象4-1~4-12のそれぞれを区別しない場合、「制御対象4」(制御対象機器)と称する場合がある。またイーサネットケーブル6-1~6-6のそれぞれを区別しない場合、「イーサネットケーブル6」と称する場合がある。 In the following, when the multiple switches 2-1, 2-2 are not distinguished from one another, they may be referred to as "switch 2." When the multiple terminal devices 3-1 to 3-6 are not distinguished from one another, they may be referred to as "terminal device 3." When the multiple control targets 4-1 to 4-12 are not distinguished from one another, they may be referred to as "control target 4" (control target device). When the Ethernet cables 6-1 to 6-6 are not distinguished from one another, they may be referred to as "Ethernet cable 6."

なお、スイッチ2に接続される端末装置3の数は、2つ以上であればよく、3つに限定されるものではない。また、スイッチ2-2に接続される端末装置3の数は、2つ以上であればよく、3つに限定されるものではない。 The number of terminal devices 3 connected to switch 2 may be two or more, and is not limited to three. The number of terminal devices 3 connected to switch 2-2 may be two or more, and is not limited to three.

制御対象4は、例えば鉄道車両に設けられるドア制御装置である。ドア制御装置は、例えば、1つの鉄道車両に設けられる複数のドアの内、1つのドアの開口部に設けられる左右開きの扉を個別に制御する制御装置である。1つのドア制御装置によって、1つのドアの開口部に設けられる左右の扉の一方の開閉制御が可能である。例えば、1つの鉄道車両に設けられる乗降口の数が6つであって左右の扉を有している場合、ドア制御装置の数は12となる。 The control object 4 is, for example, a door control device installed in a railway vehicle. The door control device is, for example, a control device that individually controls a left-right door installed in one of the multiple doors installed in one railway vehicle. One door control device can control the opening and closing of one of the left and right doors installed in one door opening. For example, if one railway vehicle has six boarding and alighting doors and left and right doors, the number of door control devices will be 12.

通信システム100は、例えば複数の車両を連結した列車内のデータ伝送システムである。この種のデータ伝送システムでは、マスタ・スレーブ型の伝送を行うものが多く、通信マスタ1がスレーブである複数の端末装置3との間でデータの交換を行うとともに、状態情報の収集を行う。状態情報は、端末装置3の状態(イベント発生状況、内部信号状態、統計など)を示す情報である。状態情報は、例えば後述するCPU11-1及びCPU11-2のそれぞれの状態を表す状態データとして送信される。また、通信マスタ1から複数の端末装置3へのデータ(制御指令)は、伝送効率や同期性を考慮して、複数の端末装置3宛のデータを1纏めにした上で、1対多のマルチキャストで一括送信される。なお、端末装置3から通信マスタ1へのデータ(制御応答、状態情報など)は、個別に送信される。 The communication system 100 is, for example, a data transmission system within a train in which multiple cars are connected. Many of these types of data transmission systems use a master-slave type of transmission, in which the communication master 1 exchanges data with multiple terminal devices 3, which are slaves, and collects status information. The status information is information that indicates the status of the terminal devices 3 (event occurrence status, internal signal status, statistics, etc.). The status information is transmitted, for example, as status data that indicates the respective states of CPU 11-1 and CPU 11-2, which will be described later. In addition, data (control commands) from the communication master 1 to the multiple terminal devices 3 is bundled together and transmitted in one-to-many multicast in consideration of transmission efficiency and synchronicity, with data addressed to the multiple terminal devices 3 being bundled together. Note that data (control responses, status information, etc.) from the terminal devices 3 to the communication master 1 is transmitted individually.

<端末装置の構成>
図2は、一実施形態に係る端末装置の内部構成例を示す図である。図2には、2つのドア制御装置を1本のイーサネットケーブル6-1を介してスイッチ2-1に接続した構成例が示される。
<Configuration of Terminal Device>
2 is a diagram showing an example of the internal configuration of a terminal device according to an embodiment of the present invention, in which two door control devices are connected to a switch 2-1 via a single Ethernet cable 6-1.

端末装置3-1は、通信I/F10(データ送信部)、CPU11-1(制御部)、メモリ12-1、CPU11-2(制御部)及びメモリ12-2を備える。 The terminal device 3-1 includes a communication I/F 10 (data transmission unit), a CPU 11-1 (control unit), a memory 12-1, a CPU 11-2 (control unit), and a memory 12-2.

CPU11-1には、1つの制御対象4-1が接続される。CPU11-2には、1つの制御対象4-2が接続される。なお、図1に示される端末装置3-2~3-6のそれぞれは、端末装置3-1と同様に構成されているため、以下では端末装置3-2~3-6の説明を割愛する。また、端末装置3-1には、2つの制御対象4が接続されているが、端末装置3-1への制御対象4の接続数は2つに限定されず、1つでもよいし、3つ以上でもよい。 One control target 4-1 is connected to CPU 11-1. One control target 4-2 is connected to CPU 11-2. Each of terminal devices 3-2 to 3-6 shown in FIG. 1 is configured similarly to terminal device 3-1, so the explanation of terminal devices 3-2 to 3-6 will be omitted below. Also, two control targets 4 are connected to terminal device 3-1, but the number of control targets 4 connected to terminal device 3-1 is not limited to two, and may be one, or three or more.

図1に示す通信マスタ1から出力された「制御指令」は、スイッチ2-1、イーサネットケーブル6-1、通信I/F10を介して、CPU11-1、CPU11-2に受信される。CPU11-1から通信I/F10へ送信されるデータは、例えば、「制御応答1+状態情報1+端末ステータス1」である。CPU11-2から通信I/F10へ送信されるデータは、例えば、「制御応答2+状態情報2+端末ステータス2」である。これらのデータは、通信I/F10で統合され、統合後のデータは、スイッチ2-1を介して通信マスタ1へ送信される。通信I/F10であるデータ送信部は、制御部であるCPU11-1及びCPU11-2のそれぞれから送信されるデータを、送信フォーマットに互いに重ならない位置に配置する。送信フォーマットの詳細は後述する。この通信I/F10から、スイッチ2-1を介して、図1に示す通信マスタ1へ送信されるデータは、例えば、「制御応答1+制御応答2+状態情報1+状態情報2+端末ステータス1+端末ステータス2」である。 The "control command" output from communication master 1 shown in FIG. 1 is received by CPU 11-1 and CPU 11-2 via switch 2-1, Ethernet cable 6-1, and communication I/F 10. The data transmitted from CPU 11-1 to communication I/F 10 is, for example, "control response 1 + status information 1 + terminal status 1." The data transmitted from CPU 11-2 to communication I/F 10 is, for example, "control response 2 + status information 2 + terminal status 2." These pieces of data are integrated by communication I/F 10, and the integrated data is transmitted to communication master 1 via switch 2-1. The data transmission unit, which is communication I/F 10, places the data transmitted from each of the control units, CPU 11-1 and CPU 11-2, in a position in the transmission format where they do not overlap. Details of the transmission format will be described later. The data transmitted from this communication I/F 10 to the communication master 1 shown in FIG. 1 via switch 2-1 is, for example, "control response 1 + control response 2 + status information 1 + status information 2 + terminal status 1 + terminal status 2."

続いて、通信マスタ1へ送信されるデータの送信フォーマットの例について説明する。 Next, we will explain an example of the transmission format of the data sent to communication master 1.

[第1の実施形態]
図3は、第1の実施形態に係る通信I/Fが送信する送信データの送信フォーマットの例を示す図である。図4A、図4Bは、CPUから通信I/Fへのデータの送信フォーマットの例を示す図である。
[First embodiment]
Fig. 3 is a diagram showing an example of a transmission format of transmission data transmitted by the communication I/F according to the first embodiment. Fig. 4A and Fig. 4B are diagrams showing an example of a transmission format of data from a CPU to the communication I/F.

図3(a)は、通信I/F10が、図3(a)に示すように、制御応答1、制御応答2、状態情報1、状態情報2の順に送信データを送信する場合の送信フォーマット(連結型)301の例を示している。また、通信I/F10が、図3(a)に示すような送信フォーマット301で制御応答1、制御応答2、状態情報1、状態情報2を送信する場合に、CPU11-1、CPU11-2が、通信I/F10に送信するデータの送信フォーマットの例を図4Aに示している。 Figure 3(a) shows an example of a transmission format (linked type) 301 when the communication I/F 10 transmits transmission data in the order of control response 1, control response 2, status information 1, and status information 2, as shown in Figure 3(a). Also, Figure 4A shows an example of the transmission format of the data transmitted by CPU 11-1 and CPU 11-2 to communication I/F 10 when communication I/F 10 transmits control response 1, control response 2, status information 1, and status information 2 in the transmission format 301 shown in Figure 3(a).

図4A(a)は、CPU11-1から通信I/F10へ送信するデータの送信フォーマット11aの例を示している。図4A(a)の例では、送信フォーマット11aには、制御応答のデータ領域の「0001番地」に制御応答1が埋め込まれており、状態情報のデータ領域の「0003番地」に状態情報1が埋め込まれている。 Figure 4A (a) shows an example of a transmission format 11a for data transmitted from the CPU 11-1 to the communication I/F 10. In the example of Figure 4A (a), in the transmission format 11a, control response 1 is embedded at "address 0001" in the data area for the control response, and status information 1 is embedded at "address 0003" in the data area for the status information.

また、送信フォーマット11aの「ONL」には、CPU11-1がオンラインであるか否かを示す値(例えば、オンライン:1、オフライン0)が格納され、「ERR」には、エラーの有無を示す値(例えば、エラーあり:1、エラーなし:0)が格納される。また、「ONL2」には、例えば、ONLと同じ値が格納される。 In addition, "ONL" in the transmission format 11a stores a value indicating whether or not the CPU 11-1 is online (e.g., online: 1, offline: 0), and "ERR" stores a value indicating whether or not an error has occurred (e.g., error: 1, no error: 0). In addition, "ONL2" stores, for example, the same value as ONL.

なお、送信フォーマット11aに含まれる「ONL」、及び「ERR」は、制御部(CPU11-1)の状態を表す第1の状態データの一例である。また、送信フォーマット11aに含まれる「ONL2」は、制御部(CPU11-1)の状態を表す第2の状態データの一例である。なお、第1の状態データの値と、第2の状態データの値とは同じ値であってもよいし、異なる値であってもよいが、ここでは同じ値であるものとして以下の説明を行う。 Note that "ONL" and "ERR" included in transmission format 11a are examples of first status data that indicate the status of the control unit (CPU 11-1). Also, "ONL2" included in transmission format 11a is an example of second status data that indicates the status of the control unit (CPU 11-1). Note that the value of the first status data and the value of the second status data may be the same value or different values, but the following explanation will be given assuming that they are the same value.

図4A(b)は、CPU11-2から通信I/F10へ送信するデータの送信フォーマット11bの例を示している。図4A(b)の例では、送信フォーマット11bには、制御応答のデータ領域の「0002番地」に、制御応答2が埋め込まれており、状態情報のデータ領域の「0004番地」に状態情報2が埋め込まれている。 Figure 4A (b) shows an example of a transmission format 11b for data transmitted from the CPU 11-2 to the communication I/F 10. In the example of Figure 4A (b), in the transmission format 11b, control response 2 is embedded at "address 0002" in the data area for the control response, and status information 2 is embedded at "address 0004" in the data area for the status information.

また、送信フォーマット11bの「ONL」には、CPU11-2がオンラインであるか否かを示す値が格納され、「ERR」には、エラーの有無を示す値が格納される。また、「ONL2」には、例えば、ONLと同じ値が格納される。なお、送信フォーマット11bに含まれる「ONL」、及び「ERR」は、制御部(CPU11-2)の状態を表す第1の状態データの一例である。また、送信フォーマット11bに含まれる「ONL2」は、制御部(CPU11-2)の状態を表す第2の状態データの一例である。 In addition, "ONL" in transmission format 11b stores a value indicating whether CPU 11-2 is online or not, and "ERR" stores a value indicating whether an error has occurred. In addition, for example, the same value as ONL is stored in "ONL2." Note that "ONL" and "ERR" included in transmission format 11b are examples of first status data representing the status of the control unit (CPU 11-2). In addition, "ONL2" included in transmission format 11b is an example of second status data representing the status of the control unit (CPU 11-2).

また、制御応答1、状態情報1は、CPU11-1が、通信マスタ1からの制御指令に応答する応答情報の一例であり、制御応答2、状態情報2は、CPU11-2が、通信マスタ1からの制御指令に応答する応答情報の一例である。CPU-11、及びCPU11-2は、それぞれ、図4Aに示すように、応答情報を送信フォーマットの互いに重ならない位置(例えば、異なる番地、異なるビット等)に配置して、通信I/F10に送信する。 In addition, control response 1 and status information 1 are examples of response information with which CPU 11-1 responds to a control command from communication master 1, and control response 2 and status information 2 are examples of response information with which CPU 11-2 responds to a control command from communication master 1. As shown in FIG. 4A, CPU-11 and CPU 11-2 each place the response information in positions in the transmission format that do not overlap (for example, different addresses, different bits, etc.) and transmit it to communication I/F 10.

通信I/F10は、CPU11-1とCPU11-2から受信したこれらのデータ(以下、受信データと呼ぶ)を、例えば、図3(a)に示すような所定の送信フォーマットに統合した送信データを作成して、作成した送信データを通信マスタ1へ送信する。 The communication I/F 10 creates transmission data by integrating the data received from CPU 11-1 and CPU 11-2 (hereinafter referred to as received data) into a specified transmission format, for example as shown in FIG. 3(a), and transmits the created transmission data to the communication master 1.

例えば、通信I/F10は、CPU11-1から受信した受信データに含まれる制御応答1、状態情報1と、CPU11-2から受信したデータに含まれる制御応答2、状態情報2とを、図3(a)に示すように送信フォーマット301に格納する。 For example, communication I/F 10 stores control response 1 and status information 1 contained in the received data received from CPU 11-1, and control response 2 and status information 2 contained in the data received from CPU 11-2, in transmission format 301 as shown in FIG. 3(a).

また、通信I/F10は、CPU11-1から受信した受信データに含まれる「ONL」の値と、CPU11-2から受信した受信データに含まれる「ONL」の値との論理和の結果を、図3(a)に示すような送信フォーマット301の「ONL」に格納する。同様に、通信I/F10は、CPU11-1から受信した受信データに含まれる「ERR」の値と、CPU11-2から受信した受信データに含まれる「ERR」の値との論理和の結果を、送信フォーマット301の「ERR」に格納する。 Furthermore, communication I/F 10 stores the result of a logical OR between the value of "ONL" contained in the received data received from CPU 11-1 and the value of "ONL" contained in the received data received from CPU 11-2 in "ONL" of transmission format 301 as shown in FIG. 3(a). Similarly, communication I/F 10 stores the result of a logical OR between the value of "ERR" contained in the received data received from CPU 11-1 and the value of "ERR" contained in the received data received from CPU 11-2 in "ERR" of transmission format 301.

好ましくは、通信I/F10は、CPU11-1から受信した受信データに含まれる「ONL2」の値と、CPU11-2から受信した受信データに含まれる「ONL2」の値との論理積の結果を、送信フォーマット301の「ONL2」に格納する。 Preferably, the communication I/F 10 stores the result of a logical AND between the value of "ONL2" contained in the received data received from CPU 11-1 and the value of "ONL2" contained in the received data received from CPU 11-2 in "ONL2" of the transmission format 301.

本実施形態では、上述した受信データの統合をハードウェア(ロジック回路等)で実現している。例えば、図3(a)に示すような送信フォーマット301のうち、論理積の対象となるビット(例えば、「ONL2」)を「1」とし、他のビットをオール「0」とした論理積パターンを用意する。 In this embodiment, the integration of the received data described above is realized by hardware (logic circuits, etc.). For example, in the transmission format 301 shown in FIG. 3(a), a logical product pattern is prepared in which the bit to be subjected to the logical product (e.g., "ONL2") is set to "1" and the other bits are all set to "0".

また、通信I/F10は、CPU11-1とCPU11-2から受信した受信データを論理和で統合する前に、これらの受信データと論理積パターンとの排他的論理和(XOR)をとり、その値で論理和を実施する。これにより、通信I/F10は、論理積パターンで「1」を設定したビットに対して論理積演算を行い、論理積パターンで「0」を設定したビットに対して論理和演算を行うことができる。 Before integrating the received data from CPU 11-1 and CPU 11-2 with a logical sum, communication I/F 10 takes the exclusive logical sum (XOR) of the received data and the logical product pattern, and performs a logical sum on the resultant value. This enables communication I/F 10 to perform a logical product operation on bits set to "1" in the logical product pattern, and a logical sum operation on bits set to "0" in the logical product pattern.

図3(b)は、通信I/F10が、図3(b)に示すように、制御応答1、制御応答2、状態情報1及び状態情報2を、図3(a)に示す方法とは異なる方法で混在して送信する場合の送信フォーマット(混在型)302の例を示している。また、通信I/F10が、図3(b)に示すような送信フォーマット302で制御応答1、制御応答2、状態情報1、状態情報2を送信する場合に、CPU11-1、CPU11-2が、通信I/F10に送信するデータの送信フォーマットの例を図4Bに示す。 Figure 3(b) shows an example of a transmission format (mixed type) 302 when the communication I/F 10 transmits control response 1, control response 2, status information 1, and status information 2 in a mixed manner different from the manner shown in Figure 3(a) as shown in Figure 3(b). Also, Figure 4B shows an example of the transmission format of the data transmitted by CPU 11-1 and CPU 11-2 to communication I/F 10 when communication I/F 10 transmits control response 1, control response 2, status information 1, and status information 2 in the transmission format 302 as shown in Figure 3(b).

図4B(a)の例では、CPU11-1から通信I/F10へデータを送信する送信フォーマット11aに、図4B(a)に示すように制御応答1及び状態情報1が埋め込まれている。図4B(b)の例では、CPU11-2から通信I/F10へデータを送信する送信フォーマット11bに、図4B(b)に示すように制御応答2及び状態情報2が埋め込まれている。通信I/F10は、CPU11-1とCPU11-2からのこれらのデータを統合することにより、図3(b)に示すような送信フォーマット302の送信データを作成して、通信マスタ1へ送信する。 In the example of FIG. 4B(a), control response 1 and status information 1 are embedded in transmission format 11a, which transmits data from CPU 11-1 to communication I/F 10, as shown in FIG. 4B(a). In the example of FIG. 4B(b), control response 2 and status information 2 are embedded in transmission format 11b, which transmits data from CPU 11-2 to communication I/F 10, as shown in FIG. 4B(b). Communication I/F 10 combines these data from CPU 11-1 and CPU 11-2 to create transmission data in transmission format 302, as shown in FIG. 3(b), and transmits it to communication master 1.

なお、図2で前述した、通信マスタ1へ送信される端末ステータス(端末ステータス1、端末ステータス2)は、図4A又は図4Bに示した送信フォーマットの「ONL」、「ERR」、「ONL2」に対応している。 Note that the terminal status (terminal status 1, terminal status 2) sent to communication master 1 as described above in Figure 2 corresponds to "ONL", "ERR", and "ONL2" in the transmission format shown in Figure 4A or Figure 4B.

<端末ステータス>
続いて、図5を用いて端末ステータスの具体例について説明する。図5は、第1の実施形態に係る端末装置の状態について説明するための図である。なお、図5の追加情報に示される「※1」は「軽故障」であって「重故障」や「その他」は無いことを表す。「※2」は「軽故障」だが「重故障」もしくは「その他」が有ることを表す。「※3」は「正常」だが「その他」が有り、「軽故障」や「重故障」は無いことを表す。「※4」は「重故障」であって「正常」や「軽故障」は無いことを表す。
<Device status>
Next, a specific example of the terminal status will be described with reference to Fig. 5. Fig. 5 is a diagram for explaining the state of the terminal device according to the first embodiment. Note that "*1" shown in the additional information in Fig. 5 indicates "minor failure" and there is no "major failure" or "other". "*2" indicates "minor failure" but there is "major failure" or "other". "*3" indicates "normal" but there is "other" and there is no "minor failure" or "major failure". "*4" indicates "major failure" but there is no "normal" or "minor failure".

端末ステータス1は、例えばCPU11-1及びメモリ12-1の状態を表す。端末ステータス2は、例えばCPU11-2及びメモリ12-2の状態を表す。端末ステータス3は、例えば端末装置3の状態を表す。前述した制御応答や状態情報に関しては、CPU11-1、CPU11-2のそれぞれが相手側の「0」の領域(情報が格納されていない領域)の箇所に論理和することで元の値のまま格納されるのに対して、端末ステータス(ONLとERR)に関しては、CPU11-1、CPU11-2のそれぞれが互いの端末ステータスに重ねて論理和している。また、端末ステータス(ONL2)に関しては、CPU11-1、CPU11-2のそれぞれが互いの端末ステータスに重ねて論理積している。 Terminal status 1 represents, for example, the state of CPU 11-1 and memory 12-1. Terminal status 2 represents, for example, the state of CPU 11-2 and memory 12-2. Terminal status 3 represents, for example, the state of terminal device 3. With regard to the control response and status information mentioned above, CPU 11-1 and CPU 11-2 each perform a logical OR on the other's "0" area (area where no information is stored) and store the original value, whereas with regard to terminal status (ONL and ERR), CPU 11-1 and CPU 11-2 each perform a logical OR on the other's terminal status. Also, with regard to terminal status (ONL2), CPU 11-1 and CPU 11-2 each perform a logical AND on the other's terminal status.

端末ステータス1、端末ステータス2の何れか一方が「正常」又は「軽故障」を示す場合、端末装置3として有効な機能があるため、通信I/F10は、端末ステータス3(通信マスタ1に送信する端末ステータス情報)を「正常」又は「軽故障」とする。「正常」は、ONLが「1」すなわちオンライン中であり、かつ、ERRが「0」の場合である。ONLが「1」とは、例えば端末装置3の電源が投入されており通信可能な状態などである。「軽故障」は、ONLが「1」であり、かつ、ERRが「1」の場合である。ERRが「1」の状態とは、端末装置3の動作は可能であるが、例えば端末装置3を駆動する非常用電源の電圧が一定の値よりも低下している場合などである。 If either terminal status 1 or terminal status 2 indicates "normal" or "minor fault", the terminal device 3 has valid functions, so the communication I/F 10 sets terminal status 3 (terminal status information sent to communication master 1) to "normal" or "minor fault". "Normal" is when ONL is "1", i.e. online, and ERR is "0". ONL is "1" when, for example, the terminal device 3 is powered on and capable of communication. "Minor fault" is when ONL is "1" and ERR is "1". ERR is "1" when the terminal device 3 is capable of operating, but for example, the voltage of the emergency power supply that drives the terminal device 3 has dropped below a certain value.

また、端末ステータス1、端末ステータス2の双方が、「重故障」又は「その他」の場合、端末装置3として有効な機能がなくなるため、通信I/F10は、端末ステータス3(通信マスタ1に送信する端末ステータス情報)を「重故障」又は「その他」とする。「重故障」の場合、通信マスタ1側でそれに応じた処理(システム縮退等)を行う。「重故障」は、例えば制御対象4のモータが故障している状態などである。「その他」は「初期化中」など、「正常」、「軽故障」、「重故障」以外の状態であり、この時の「制御応答」と「状態情報」の値は途中状態であり、通信マスタ1で使用できない。「その他」の場合、CPU11-1、CPU11-2の双方が「初期化中」などの過渡的な状態なので、通信マスタ1側では「制御応答」、「状態情報」の双方を破棄する。 In addition, if both terminal status 1 and terminal status 2 are "serious failure" or "other", the terminal device 3 will no longer have any valid functions, so the communication I/F 10 sets terminal status 3 (terminal status information sent to communication master 1) to "serious failure" or "other". In the case of a "serious failure", the communication master 1 will perform the appropriate processing (system degeneration, etc.). A "serious failure" is, for example, a state in which the motor of the control target 4 has failed. "Other" is a state other than "normal", "minor failure", and "serious failure", such as "initializing", and the values of the "control response" and "status information" at this time are intermediate states and cannot be used by the communication master 1. In the case of "other", both CPU 11-1 and CPU 11-2 are in a transitional state such as "initializing", so the communication master 1 will discard both the "control response" and "status information".

ここで、端末ステータス3が「正常」の場合、端末ステータス1、端末ステータス2の何れも「軽故障」や「重故障」でない事は判断できるが、端末ステータス1、端末ステータス2の何れか一方が「その他」であるか否かは、ONLとERRだけでは判断できない。このため、通信I/F10は、ONL2が0ならば、端末ステータス1、端末ステータス2の何れか一方が「その他」であったと判断する。 Here, if terminal status 3 is "normal", it can be determined that neither terminal status 1 nor terminal status 2 is a "minor fault" or a "major fault", but it cannot be determined from ONL and ERR alone whether either terminal status 1 or terminal status 2 is "other". For this reason, if ONL2 is 0, communication I/F 10 determines that either terminal status 1 or terminal status 2 is "other".

また、端末ステータス3が「軽故障」の場合、端末ステータス1、端末ステータス2の何れか一方が「重故障」や「その他」であるか否かは、ONLとERRだけでは判断できない。このため、通信I/F10は、ONL2が0ならば、端末ステータス1、端末ステータス2の何れか一方が「重故障」もしくは「その他」であったと判断する。 In addition, if terminal status 3 is "minor failure", it is not possible to determine from ONL and ERR alone whether either terminal status 1 or terminal status 2 is "serious failure" or "other". For this reason, if ONL2 is 0, communication I/F 10 determines that either terminal status 1 or terminal status 2 is "serious failure" or "other".

<処理の流れ>
続いて、本実施形態に係る端末装置の通信方法の処理の流れについて説明する。
<Processing flow>
Next, a process flow of a communication method of the terminal device according to this embodiment will be described.

(CPUのデータ送信処理)
図6は、第1の実施形態に係るCPUのデータ送信処理を示すフローチャートである。
(CPU data transmission process)
FIG. 6 is a flowchart showing a data transmission process of the CPU according to the first embodiment.

ステップS11において、CPU11-1は、制御対象4-1からの制御応答1のデータを、送信バッファの制御応答のデータ領域の内、CPU11-1の格納領域に格納する。同様に、CPU11-2は、制御対象4-2からの制御応答2のデータを、送信バッファの制御応答のデータ領域の内、CPU11-2の格納領域に格納する。 In step S11, CPU 11-1 stores the data of control response 1 from control target 4-1 in the storage area of CPU 11-1 within the control response data area of the transmission buffer. Similarly, CPU 11-2 stores the data of control response 2 from control target 4-2 in the storage area of CPU 11-2 within the control response data area of the transmission buffer.

ステップS12において、CPU11-1は、制御対象4-1からの状態情報1のデータを、送信バッファの状態情報のデータ領域の内、CPU11-1の格納領域に格納する。同様に、CPU11-2は、制御対象4-2からの状態情報2のデータを、送信バッファの状態情報のデータ領域の内、CPU11-2の格納領域に格納する。 In step S12, CPU 11-1 stores the data of status information 1 from control target 4-1 in the storage area of CPU 11-1 within the data area of status information in the transmission buffer. Similarly, CPU 11-2 stores the data of status information 2 from control target 4-2 in the storage area of CPU 11-2 within the data area of status information in the transmission buffer.

ステップS13において、CPU11-1、及びCPU11-2は、端末ステータス1、2を、送信バッファの端末ステータスの領域(例えば図4に示されるONL、ERR、ONL2の領域)に格納する。 In step S13, CPU 11-1 and CPU 11-2 store terminal status 1 and 2 in the terminal status area of the transmission buffer (for example, the ONL, ERR, and ONL2 areas shown in Figure 4).

ステップS14において、CPU11-1、及びCPU11-2は、送信バッファから通信I/F10へ送信する。 In step S14, CPU 11-1 and CPU 11-2 transmit from the transmission buffer to communication I/F 10.

(通信I/Fのデータ送信処理)
図7は、第1の実施形態に係る通信I/Fのデータ送信処理を示すフローチャートである。
(Data transmission process of communication I/F)
FIG. 7 is a flowchart showing a data transmission process of the communication I/F according to the first embodiment.

ステップS21において、通信I/F10は、受信したデータを通信マスタに向けて送信する際、予め設定されたアイドル時間を使って送信タイミングを調整する。例えば、CPU11-1又はCPU11-2からデータを一定周期で送信する場合、通信I/F10は、CPU11-1又はCPU11-2からデータを受信したとき、タイマのカウントアップを開始して、タイマの値が、予め設定されたアイドル時間を超過したか否かを判断する。タイマの値がアイドル時間を超過していない場合(ステップS21,No)、通信I/F10は、タイマのカウントアップを継続する。タイマの値がアイドル時間を超過した場合(ステップS21,Yes)、通信I/F10は、ステップS22の処理を行う。 In step S21, when the communication I/F 10 transmits the received data to the communication master, it adjusts the transmission timing using a preset idle time. For example, when transmitting data from CPU 11-1 or CPU 11-2 at a constant interval, when the communication I/F 10 receives data from CPU 11-1 or CPU 11-2, it starts counting up the timer and determines whether the timer value has exceeded the preset idle time. If the timer value has not exceeded the idle time (step S21, No), the communication I/F 10 continues counting up the timer. If the timer value has exceeded the idle time (step S21, Yes), the communication I/F 10 performs the process of step S22.

ステップS22において、通信I/F10は、送信バッファをクリアし、ステップS23において、通信I/F10は、変数Xの値を更新する。ステップS24において、通信I/F10は、送信バッファがクリアされた直後は、変数Xの値を1に設定する。ステップS25において、通信I/F10は、受信したデータを統合する。 In step S22, the communication I/F 10 clears the transmission buffer, and in step S23, the communication I/F 10 updates the value of variable X. In step S24, immediately after the transmission buffer is cleared, the communication I/F 10 sets the value of variable X to 1. In step S25, the communication I/F 10 consolidates the received data.

統合にあたっては、通信I/F10は、CPU11-1とCPU11-2から受信した受信データを、予め設定しておいた論理積パターンと排他的論理和した一時データを、最初にクリアした送信バッファに順次に論理和して更新していく。 When integrating, the communication I/F 10 performs an exclusive OR operation on the received data from CPU 11-1 and CPU 11-2 with a preset logical AND pattern to generate temporary data, and then updates the data in the transmission buffer that was initially cleared by sequentially performing a logical OR on the data.

論理積パターンは、通信I/F10が通信マスタ1に送信する送信フォーマットと同様の形式を有し、論理積の対象となるビットを「1」、論理積の対象とならないビットを「0」に予め設定したデータである。 The logical product pattern has the same format as the transmission format that the communication I/F 10 sends to the communication master 1, and is data in which the bits that are the subject of the logical product are pre-set to "1" and the bits that are not the subject of the logical product are pre-set to "0."

図7Bは、第1の実施形態に係る論理積パターンのイメージを示す図である。図7Bの例では、論理積パターン700は、図3(a)に示す送信フォーマット301と同様の形式を有しており、「ONL2」に対応するビットのみが「1」に設定され、他のビットが全て「0」に設定されている。 Figure 7B is a diagram showing an image of a logical product pattern according to the first embodiment. In the example of Figure 7B, the logical product pattern 700 has a format similar to the transmission format 301 shown in Figure 3(a), in which only the bit corresponding to "ONL2" is set to "1", and all other bits are set to "0".

従って、論理積パターン700において「0」が設定されたビットは、送信バッファに格納されている値と、送信バッファに書き込まれる受信データの値とが論理和演算され、送信バッファが更新されていく。 Therefore, for bits in the logical product pattern 700 that are set to "0", a logical sum is calculated between the value stored in the transmission buffer and the value of the received data written to the transmission buffer, and the transmission buffer is updated.

一方、論理積パターン700において「1」が設定されたビットでは、送信バッファに記憶されている値と、送信バッファに書き込まれる受信データの値を反転した値とが論理和演算され、送信バッファが更新されていく。 On the other hand, for bits in the logical product pattern 700 that are set to "1", a logical sum is calculated between the value stored in the transmission buffer and the inverted value of the received data written to the transmission buffer, and the transmission buffer is updated.

例えば、送信バッファをクリアした後に、CPU11-1から受信した受信データで送信バッファを更新すると、送信バッファの「ONL2」には、CPU11-1の「ONL2」の値を反転した値が格納される。さらに、CPU11-2から受信した受信データで送信バッファを更新すると、送信バッファの「ONL2」には、CPU11-1の「ONL2」の値を反転した値と、CPU11-2の「ONL2」の値を反転した値とを論理和演算した値が格納される。この値は、CPU11-1の「ONL2」の値と、CPU11-2の「ONL2」の値とを論理積した値を反転した値と等しい。従って、送信バッファの「ONL2」の値を反転することにより、CPU11-1の「ONL2」の値と、CPU11-2の「ONL2」の値とを論理積した値を得ることができる。 For example, after the transmission buffer is cleared and updated with received data received from CPU 11-1, the inverted value of the "ONL2" of CPU 11-1 is stored in "ONL2" of the transmission buffer. Furthermore, when the transmission buffer is updated with received data received from CPU 11-2, the inverted value of the "ONL2" of CPU 11-1 and the inverted value of the "ONL2" of CPU 11-2 are stored in "ONL2" of the transmission buffer. This value is equal to the inverted value of the logical product of the "ONL2" value of CPU 11-1 and the "ONL2" value of CPU 11-2. Therefore, by inverting the value of "ONL2" of the transmission buffer, the logical product of the "ONL2" value of CPU 11-1 and the "ONL2" value of CPU 11-2 can be obtained.

ステップS26において、通信I/F10には、統合する対応の数として、CPU11-1、11-2の数が予め設定されている。通信I/F10は、統合用データが入っている受信バッファを切り替えながら、変数Xの値がCPUの数以上となるまでCPU11-1、CPU11-2からの受信データにステップS25の処理を実行して、送信バッファに組み込んでいく。変数Xの値がCPUの数未満の場合(ステップS26,No)、通信I/F10は、変数Xに1を加算することで変数Xを更新する(ステップS24)。 In step S26, the number of CPUs 11-1 and 11-2 is preset in the communications I/F 10 as the number of correspondences to be integrated. The communications I/F 10 executes the process of step S25 on the received data from CPUs 11-1 and 11-2 while switching the receive buffer containing the data to be integrated, until the value of variable X becomes equal to or greater than the number of CPUs, and incorporates the data into the transmit buffer. If the value of variable X is less than the number of CPUs (step S26, No), the communications I/F 10 updates variable X by adding 1 to it (step S24).

変数Xの値がCPUの数以上となったとき(ステップS26,Yes)、CPU11-1、CPU11-2からのデータを送信バッファに組み込み終わるので、通信I/F10は、送信バッファのデータを、論理積パターンと排他的論理和する(ステップS27)。これにより、例えば、送信バッファの「ONL2」に格納されたデータのみが反転され、「ONL2」に、CPU11-1の「ONL2」の値と、CPU11-2の「ONL2」の値とを論理積した値が格納される。 When the value of variable X becomes equal to or greater than the number of CPUs (step S26, Yes), data from CPU 11-1 and CPU 11-2 has been loaded into the transmission buffer, and communication I/F 10 performs an exclusive OR operation on the data in the transmission buffer with the logical product pattern (step S27). As a result, for example, only the data stored in "ONL2" in the transmission buffer is inverted, and the logical product of the value of "ONL2" of CPU 11-1 and the value of "ONL2" of CPU 11-2 is stored in "ONL2".

ステップS28において、送信バッファに格納された送信データが通信マスタへ送信される。 In step S28, the transmission data stored in the transmission buffer is sent to the communication master.

(通信マスタのデータ受信処理)
図8は、第1の実施形態に係る通信マスタのデータ受信処理の例を示すフローチャートである。通信マスタのデータ受信処理を示すフローチャートである。ステップS31において、通信マスタ1は、端末ステータスが「その他」である場合(ステップS31,Yes)、「制御応答」と「状態情報」を利用することができないため、ステップS32~S34を処理は行わず、ステップS35の処理(受信カウント等の統計情報処理)を行う。
(Data reception process of communication master)
8 is a flowchart showing an example of data reception processing of the communication master according to the first embodiment. This is a flowchart showing data reception processing of the communication master. In step S31, if the terminal status is "other" (Yes in step S31), the communication master 1 cannot use the "control response" and the "state information", so does not perform the processing in steps S32 to S34, and performs processing in step S35 (processing statistical information such as reception count).

通信マスタ1は、端末ステータスが「その他」ではない場合(ステップS31,No)、「正常」「軽故障」「重故障」のいずれかの状態であるため、端末ステータスに応じた処理、例えばシステムの縮退等を行う(ステップS32)。その際、通信マスタ1は、ONLとERRの他に、必要に応じてONL2も用いる。 If the terminal status is not "Other" (step S31, No), the terminal status is either "Normal", "Minor fault" or "Major fault", so the communication master 1 performs processing according to the terminal status, such as degrading the system (step S32). In this case, in addition to ONL and ERR, the communication master 1 also uses ONL2 as necessary.

次に通信マスタ1は、制御応答を処理するため、制御応答処理用アプリケーションにメッセージでデータ(端末種別含む)を送り(ステップS33)、次に、状態情報を処理すべく状態情報処理用アプリケーションにメッセージでデータ(端末種別含む)を送る(ステップS34)。これにより、各処理アプリケーションでは、端末種別に応じて各データを処理することになる。 Next, the communication master 1 sends data (including the terminal type) in a message to the control response processing application to process the control response (step S33), and then sends data (including the terminal type) in a message to the status information processing application to process the status information (step S34). As a result, each processing application processes each data according to the terminal type.

このように受信処理と各処理アプリケーションを分離する事で、端末の種別に関わらず受信処理を共用している。また、制御応答の処理と状態情報の処理を別アプリケーションとする事で、各々独立して開発又は保守することを可能としている。 By separating the reception process from each processing application in this way, the reception process can be shared regardless of the type of terminal. Also, by making the control response processing and the status information processing separate applications, it is possible to develop and maintain each independently.

<比較例>
図9は、比較例に係る通信システムの構成例を示す図である。図10は図9に示す端末装置の内部構成例を示す図である。図11は図9に示す端末装置が備えるCPUから通信I/Fへのデータの送信フォーマットの例を示す図である。図12は通信I/Fから通信マスタへのデータの送信フォーマットの例を示す図である。
Comparative Example
Fig. 9 is a diagram showing an example of the configuration of a communication system according to a comparative example. Fig. 10 is a diagram showing an example of the internal configuration of a terminal device shown in Fig. 9. Fig. 11 is a diagram showing an example of a transmission format of data from a CPU to a communication I/F provided in the terminal device shown in Fig. 9. Fig. 12 is a diagram showing an example of a transmission format of data from the communication I/F to a communication master.

図9に示される比較例に係る通信システム100Aは、図1に示す端末装置3-1~3-6の代わりに、端末装置3-1A~3-6Aを備える。 The communication system 100A according to the comparative example shown in FIG. 9 includes terminal devices 3-1A to 3-6A instead of the terminal devices 3-1 to 3-6 shown in FIG. 1.

端末装置3-1Aには、制御対象4-1が接続される。端末装置3-2Aには、制御対象4-2が接続される。端末装置3-3Aには、制御対象4-3が接続される。端末装置3-4Aには、制御対象4-4が接続される。端末装置3-5Aには、制御対象4-5が接続される。端末装置3-6Aには、制御対象4-6が接続される。 Control object 4-1 is connected to terminal device 3-1A. Control object 4-2 is connected to terminal device 3-2A. Control object 4-3 is connected to terminal device 3-3A. Control object 4-4 is connected to terminal device 3-4A. Control object 4-5 is connected to terminal device 3-5A. Control object 4-6 is connected to terminal device 3-6A.

図10に示すように、端末装置3-1Aは、通信I/F10-1、CPU11-1及びメモリ12-1を備える。端末装置3-2Aは、通信I/F10-2、CPU11-2及びメモリ12-2を備える。 As shown in FIG. 10, the terminal device 3-1A includes a communication I/F 10-1, a CPU 11-1, and a memory 12-1. The terminal device 3-2A includes a communication I/F 10-2, a CPU 11-2, and a memory 12-2.

図11(a)には、CPU11-1から通信I/F10-1へデータを送信する際の送信フォーマットの例が示される。図11(a)に示すように、送信フォーマットには、ONLとERRで端末の状態を表す「端末ステータス」と、制御指令への応答である「制御応答」と、端末装置3-2の状態(イベント発生状況、内部信号状態、統計情報など)を示す「状態情報」とを含む。 Figure 11(a) shows an example of a transmission format when sending data from CPU 11-1 to communication I/F 10-1. As shown in Figure 11(a), the transmission format includes a "terminal status" that indicates the terminal status with ONL and ERR, a "control response" that is a response to a control command, and "status information" that indicates the status of terminal device 3-2 (event occurrence status, internal signal status, statistical information, etc.).

図11(b)には、CPU11-2から通信I/F10-2へデータを送信する際の送信フォーマットの例が示される。図11(b)に示すように、送信フォーマットには、ONLとERRで端末の状態を表す「端末ステータス」と、制御指令への応答である「制御応答」と、端末装置3-2の状態(イベント発生状況、内部信号状態、統計情報など)を示す「状態情報」とを含む。 Figure 11(b) shows an example of a transmission format when sending data from the CPU 11-2 to the communication I/F 10-2. As shown in Figure 11(b), the transmission format includes a "terminal status" that indicates the terminal status with ONL or ERR, a "control response" that is a response to a control command, and "status information" that indicates the status of the terminal device 3-2 (event occurrence status, internal signal status, statistical information, etc.).

比較例に係る通信システム100Aは、2つの通信I/F10-1、10-2のそれぞれが、図11に示される送信フォーマットで通信マスタ1に対してデータを送信するため、通信I/F10-1とスイッチ2-1との間にイーサネットケーブル6-1が配線され、さらに通信I/F10-2とスイッチ2-2との間にイーサネットケーブル6-2が配線される。従って、スイッチ2-1には、端末装置の数以上にポート数が必要になる。一方、通信システム100Aのコスト低減へのニーズや、通信システム100Aを設けられる空間が制約されるなどの理由により、スイッチ2-1のポートの数を増やすことなく、1つのスイッチ2-1に接続可能な端末装置の数は多い程望ましい。 In the communication system 100A according to the comparative example, each of the two communication I/Fs 10-1 and 10-2 transmits data to the communication master 1 in the transmission format shown in FIG. 11, so an Ethernet cable 6-1 is wired between the communication I/F 10-1 and the switch 2-1, and an Ethernet cable 6-2 is wired between the communication I/F 10-2 and the switch 2-2. Therefore, the switch 2-1 needs more ports than the number of terminal devices. On the other hand, due to the need to reduce the cost of the communication system 100A and the limited space in which the communication system 100A can be installed, it is desirable to have as many terminal devices as possible that can be connected to one switch 2-1 without increasing the number of ports on the switch 2-1.

例えば図10に示される2つのCPU以外に、3つ目のCPUを追加してデータの統合処理を行うことや、通信I/F処理に改良を加えてデータ統合を行うことで、このようなニーズに対応することも可能である。このようなCPUの追加や、通信I/F処理の改良は、CPU11-1及びCPU11-2から受信したデータの中から必要なデータを抽出して、抽出したデータを1つの送信フォーマットに統合して、「制御応答+状態情報+端末ステータス」のデータを作成して通信マスタ1に送信することである。 For example, in addition to the two CPUs shown in FIG. 10, it is possible to meet such needs by adding a third CPU to perform data integration processing, or by improving the communication I/F processing to perform data integration. Adding such a CPU or improving the communication I/F processing involves extracting necessary data from the data received from CPU 11-1 and CPU 11-2, integrating the extracted data into a single transmission format, and creating data of "control response + status information + terminal status" to send to communication master 1.

しかしながら、CPUの追加は、コスト的に不利である。一方、通信I/F処理の改良は、データ抽出元のCPUのデータのフォーマットが変わればその度に改良が必要になる。通信I/Fは他の端末も使用する共通部品であるため、特定の端末に合わせた改造をするのは、管理する通信I/Fの種類が増えて運用面で不利になる。 However, adding a CPU is disadvantageous in terms of cost. On the other hand, improvements to communication I/F processing are necessary whenever the data format of the CPU from which the data is extracted changes. Because communication I/Fs are common components used by other terminals, modifying them to suit a specific terminal increases the number of types of communication I/Fs to be managed, which is disadvantageous in terms of operation.

これに対して本実施の形態に係る端末装置3は、CPU11-1及びCPU11-2が、統合後の制御情報や状態情報のフォーマットを意識したデータを生成することで、通信I/F10は、追加のCPUの処理等によらずに、ハードウェア(例えばロジック回路等)の処理により、受信データ統合した送信データを、通信マスタ1に送信することができる。なお、本実施形態では、CPU11-1、CPU11-2等が、統合後のフォーマットに合わせてありさえすれば、統合する端末装置の数に原理的な制約はない。例えば、通信I/F10は、通信I/F10に接続されたCPUの数だけ、図7AのステップS24~S26の処理を繰り返し実行すれば良い。 In contrast, in the terminal device 3 according to this embodiment, CPU 11-1 and CPU 11-2 generate data that takes into account the format of the control information and status information after integration, and the communication I/F 10 can transmit the transmission data that is the integrated received data to the communication master 1 by processing of the hardware (e.g., logic circuit, etc.) without relying on processing of an additional CPU. Note that in this embodiment, as long as CPU 11-1, CPU 11-2, etc. are compatible with the integrated format, there is no theoretical limit to the number of terminal devices to be integrated. For example, the communication I/F 10 can repeatedly execute the processing of steps S24 to S26 in FIG. 7A for the number of CPUs connected to the communication I/F 10.

また、本実施の形態に係る通信システム100によれば、比較例に係る通信システム100Aに比べて、スイッチ2と端末装置3との間のイーサネットケーブル6の数が低減され、イーサネットケーブル6が低減される分、スイッチ2の複数のポート数の内、空きポートを増やすことができる。また、スイッチ2の、空きポートを増やすことができる分、スイッチ2の空きポートに端末装置3を追加で接続できるため、スイッチ2の増加を抑制できる。 In addition, according to the communication system 100 of this embodiment, the number of Ethernet cables 6 between the switch 2 and the terminal device 3 is reduced compared to the communication system 100A of the comparative example, and the number of free ports among the multiple ports of the switch 2 can be increased by the amount of the reduced number of Ethernet cables 6. In addition, since the number of free ports of the switch 2 can be increased, additional terminal devices 3 can be connected to the free ports of the switch 2, and an increase in the number of switches 2 can be suppressed.

従って、スイッチ2の設置に伴うコストを大幅に低減することができる。特に鉄道車両においは、旅客スペース以外の機器設置スペースが限られている。そのため、スイッチ2が低減され、イーサネットケーブル6の数が減る分、鉄道車両の機器設置スペースを有効に活用できるという効果も得ることができる。 This allows for a significant reduction in the cost of installing the switches 2. In particular, in railroad cars, the space available for installing equipment other than in passenger spaces is limited. Therefore, by reducing the number of switches 2 and the number of Ethernet cables 6, it is possible to achieve the effect of making effective use of the space available for installing equipment in the railroad car.

特許文献1に開示される従来技術は、送信データの生成(個々の端末ステータス等の統合)に論理和を使っているため、例えば統合された端末ステータスが「正常」であっても、統合前の全ての端末ステータスが「正常」であるか否かは判断できない。すなわち、全ての端末ステータスの内、1つの端末ステータスが「その他」であっても、残りの端末ステータスが「正常」であれば、統合後の端末ステータスは「正常」となる。また、特許文献1に開示される通信システムは、送統合された端末ステータスが「軽故障」であっても、統合前の端末ステータスに「重故障」が含まれているか否かも判断できない。すなわち、全ての端末ステータスの内、1つの端末ステータスが「重故障」であっても、残りの端末ステータスが「軽故障」であれば、統合後の端末ステータスは「軽故障」となる。例えば、2つの制御対象を持つ1つのシステムの場合、二重化のように片方が機能すれば良いものや、左右扉のように片側だけでも機能すれば限定的にサービス(乗降)が可能なものや、両制御対象が結びついており両方機能しないとシステムとして機能しないものなどがある。特許文献1に開示される通信システムでは、上述のように統合された端末ステータスが「正常」や「軽故障」であっても、個々の端末ステータスの中に「重故障」や「その他」(制御対象が機能しない)が含まれているか否かを判断できないという課題があった。 The conventional technology disclosed in Patent Document 1 uses logical sum to generate transmission data (integration of individual terminal statuses, etc.), so even if the integrated terminal status is "normal", it cannot determine whether all terminal statuses before integration were "normal". In other words, even if one of all terminal statuses is "other" and the remaining terminal statuses are "normal", the terminal status after integration will be "normal". In addition, the communication system disclosed in Patent Document 1 cannot determine whether the terminal status before integration includes a "major failure" even if the integrated terminal status is "minor failure". In other words, even if one of all terminal statuses is "major failure", if the remaining terminal statuses are "minor failure", the terminal status after integration will be "minor failure". For example, in the case of a single system with two control objects, there are some that only require one to function, such as duplexing, some that only require one side to function (boarding and disembarking) to function, and some that do not function as a system unless both control objects are linked and both function. The communication system disclosed in Patent Document 1 had the problem that, even if the integrated terminal status was "normal" or "minor fault" as described above, it was not possible to determine whether the individual terminal statuses included "major fault" or "other" (the controlled object was not functioning).

本実施の形態に係る通信システム100は、このような個々の端末ステータスの中に「重故障」や「その他」が含まれていないかを判断するために、従来のONLビットと同じものを端末ステータス内の別のビット(全端末で共通の位置)に割り当て、当該ビットを論理積の対象とする。そして、端末ステータスの統合後に、従来の論理和の結果であるONLとERRと、新規の論理積の結果である当該ビットとで、端末の状態を判断する。本実施の形態に係る通信システム100によれば、イーサネットスイッチの増加を抑制できるという効果に加え、論理和のみであった端末ステータスの統合に論理積を追加でき、従来の「正常」「軽故障」「重故障」「その他」に加え、「正常」であっても「その他」の端末ステータスが含まれているか否か、「軽故障」であっても「重故障」や「その他」の端末ステータスが含まれているか否か、を判断することができるという効果を奏する。 In order to determine whether such individual terminal statuses include "serious failure" or "other," the communication system 100 according to the present embodiment assigns the same bit as the conventional ONL bit to another bit (in a position common to all terminals) in the terminal status and subjects that bit to logical AND. Then, after integrating the terminal statuses, the state of the terminal is determined by ONL and ERR, which are the results of the conventional logical OR, and the bit, which is the result of the new logical AND. In addition to the effect of being able to suppress an increase in Ethernet switches, the communication system 100 according to the present embodiment can add logical AND to the integration of terminal statuses, which previously only involved logical OR, and can determine whether a terminal status of "normal" but "other" is included, and whether a terminal status of "minor failure" but "other" is included, in addition to the conventional "normal," "minor failure," "major failure," and "other."

[第2の実施形態]
第1の実施形態に係る通信システム100によれば、複数の制御対象機器の状態を論理和、及び論理積を使って統合した状態(例えば、図5に示した正常、軽故障、重故障、その他など)を管理することができるようになる。
Second Embodiment
According to the communication system 100 of the first embodiment, it becomes possible to manage the states of multiple controlled devices integrated using logical sum and logical product (for example, normal, minor failure, major failure, and others as shown in FIG. 5 ).

しかし、この方法だけでは、例えば、各制御対象機器に複数の機能が搭載されている場合、複数の制御対象機器で構成された「システム」の機能が有効に機能しているか否かを判断することは困難である。 However, with this method alone, for example, when each controlled device has multiple functions, it is difficult to determine whether the functions of a "system" made up of multiple controlled devices are functioning effectively.

例えば、制御対象機器が、左右に開くドアの各々のドアパネルを制御する2つの制御装置であり、制御対象機器の機能として、「ドアパネルの開閉」、「警告チャイム音」、「警告灯点滅」の3つの機能があるものとする。 For example, the controlled devices are two control devices that control the door panels of two doors that open to the left and right, and the controlled devices have three functions: "opening and closing the door panel," "warning chime sound," and "flashing the warning light."

このうち、「ドアパネルの開閉」は制御対象機器の主機能なので、この機能の故障を、例えば「重故障」とする。一方、「警告チャイム音」は、2つの制御装置のうち、いずれかの制御装置が正常であれば補えるので、この機能の故障を、例えば「軽故障」とする。また、「警告灯点滅」は、左右に開くドアのいずれかに問題があれば、問題があるドアパネルで点滅する必要があるので、主機能ではないが、この機能の故障を、例えば「重故障」とする。 Of these, "opening and closing door panel" is the main function of the controlled device, so a malfunction of this function would be, for example, a "major malfunction." On the other hand, the "warning chime sound" can be compensated for if either of the two control devices is normal, so a malfunction of this function would be, for example, a "minor malfunction." Also, the "flashing warning light" needs to flash on the door panel with the problem if there is a problem with either of the doors that open to the left or right, so although it is not a main function, a malfunction of this function would be, for example, a "major malfunction."

ここで、例えば、端末装置3から通信マスタ1に送信した送信データにおいて、統合されたステータス(例えば、図5の端末ステータス3の「状態」)が「軽故障」であったとする。この場合、左右のドアのうち、一方のドアが「正常」であり、かつ他方のドアが「軽故障」、「重故障」、又は「その他」であるか、一方のドアが「軽故障」であり、かつ他方のドアが「正常」、「軽故障」、「重故障」、又は「その他」であるかのいずれかである。 Here, for example, suppose that the integrated status (for example, the "status" of terminal status 3 in FIG. 5) in the transmission data sent from terminal device 3 to communication master 1 is "minor malfunction." In this case, of the left and right doors, one door is "normal" and the other door is "minor malfunction," "major malfunction," or "other," or one door is "minor malfunction" and the other door is "normal," "minor malfunction," "major malfunction," or "other."

この場合、例えば、一方のドアの状態が「正常」であれば、他方のドアの状態が、重故障である「ドアパネルの開閉」や、軽故障である「警告チャイム音」等になっても、「正常」な一方のドアで補えるので、システムとしては重篤な状態ではない。しかし、一方のドアの状態が「正常」であっても、他方のドアの状態が、重故障である「警告灯の点滅」である場合には、「正常」な一方のドアではこの機能を補うことができないので、システムとしては重篤な状態となる。 In this case, for example, if one door is in a "normal" state, even if the other door experiences a major malfunction such as "door panel opening and closing" or a minor malfunction such as "warning chime sound," the "normal" door can compensate, and the system is not in a critical state. However, even if one door is in a "normal" state, if the other door experiences a major malfunction such as "flashing warning light," the "normal" door cannot compensate for this function, and the system is in a critical state.

また、例えば、一方のドアの状態が軽故障である「警告チャイム音」の故障であれば、他方のドアの状態が重故障である「ドアパネルの開閉」になっても、互いのドアで補うことができるので、システムとしては重篤な状態ではない。しかし、一方のドアの状態が軽故障である「警告チャイム音」の故障であっても、他方のドアの状態が、軽故障である「警告チャイム音」、又は重故障である「警告灯の点滅」等であれば、互いのドアで補うことはできないので、システムとしては重篤な状態となる。 For example, if one door has a minor malfunction of "warning chime sound," even if the other door has a major malfunction of "door panel opening and closing," the two doors can compensate for each other, so the system is not in a critical state. However, even if one door has a minor malfunction of "warning chime sound," if the other door has a minor malfunction of "warning chime sound" or a major malfunction of "flashing warning light," the two doors cannot compensate for each other, so the system is in a critical state.

(課題)
このように、第1の実施形態に係る端末装置3では、制御対象機器が、必須の機能を含む複数の機能を有する場合、必須の機能が有効であるか否か(重篤な状態であるか否か)を特定することには困難を伴っていた。
(assignment)
In this way, in the terminal device 3 according to the first embodiment, when the controlled device has multiple functions including a required function, it is difficult to determine whether the required function is enabled (whether the state is serious).

第2の実施形態は、上記の問題点に鑑みてなされたものであって、必須の機能を含む複数の機能を有する制御対象機器が接続される端末装置3において、必須の機能が有効であるか否かを特定することを容易にする。 The second embodiment has been made in consideration of the above problems, and makes it easy to determine whether a required function is enabled in a terminal device 3 to which a controlled device having multiple functions, including a required function, is connected.

(解決手段)
上記の課題を解決するため、第2の実施形態に係る端末装置3では、複数の制御部(CPU11-1、11-2)は、前記制御部が備える複数の機能の状態を表す第3の状態データを含む第1の送信データを、データ送信部(通信I/F10)に送信する。また、データ送信部は、複数の前記制御部において、前記複数の機能のうち、予め設定された1つ以上の機能(例えば、必須の機能)が有効に機能しているか否かを表す第4の状態データを含む第2の送信データを、マスタ装置(通信マスタ1)に送信する。
(Solution)
In order to solve the above problem, in the terminal device 3 according to the second embodiment, a plurality of control units (CPUs 11-1, 11-2) transmit first transmission data including third status data representing the status of a plurality of functions provided in the control units to a data transmission unit (communication I/F 10). In addition, the data transmission unit transmits second transmission data including fourth status data representing whether or not one or more pre-set functions (e.g., essential functions) among the plurality of functions are functioning effectively in the plurality of control units to a master device (communication master 1).

(効果)
第2の実施形態に係る端末装置3によれば、必須の機能を含む複数の機能を有する制御対象機器が接続される端末装置3において、必須の機能が有効であるか否かを特定することが容易になる。
(effect)
According to the terminal device 3 of the second embodiment, in a terminal device 3 to which a controlled device having multiple functions including a required function is connected, it becomes easy to determine whether the required function is enabled.

(実施の形態)
第2の実施形態に係る通信システム100の構成は、図1で説明した一実施形態に係る通信システム100の構成と同様でよい。また、第2の実施形態に係る端末装置3の内部構成は、図2で説明した一実施形態に係る端末装置3-1の構成と同様でよい。
(Embodiment)
The configuration of the communication system 100 according to the second embodiment may be similar to the configuration of the communication system 100 according to the embodiment described in Fig. 1. Moreover, the internal configuration of the terminal device 3 according to the second embodiment may be similar to the configuration of the terminal device 3-1 according to the embodiment described in Fig. 2.

図13は、第2の実施形態に係る通信I/Fが送信する送信データの送信フォーマットの例を示す図である。図14は、第2の実施形態に係るCPUが送信する送信データの送信フォーマットの例を示す図である。 Fig. 13 is a diagram showing an example of a transmission format of transmission data transmitted by a communication I/F according to the second embodiment. Fig. 14 is a diagram showing an example of a transmission format of transmission data transmitted by a CPU according to the second embodiment.

図13(a)は、通信I/F10が、図13(a)に示すように、制御応答1、制御応答2、状態情報1、状態情報2の順に送信データを送信する場合の送信フォーマット(連結型)1301の例を示している。また、通信I/F10が、図13(a)に示すような送信フォーマット1301で送信データ(第2の送信データ)を送信する場合に、CPU11-1、CPU11-2が、通信I/F10に送信するデータ(第1の送信データ)の送信フォーマットの例を図14(a)、(b)に示す。 Figure 13(a) shows an example of a transmission format (linked type) 1301 when the communication I/F 10 transmits transmission data in the order of control response 1, control response 2, status information 1, and status information 2, as shown in Figure 13(a). Also, Figures 14(a) and (b) show examples of the transmission format of data (first transmission data) that CPU 11-1 and CPU 11-2 transmit to communication I/F 10 when communication I/F 10 transmits transmission data (second transmission data) in the transmission format 1301 shown in Figure 13(a).

図14(a)は、第2の実施形態に係るCPU11-1が、通信I/F10に送信するデータの送信フォーマット1401aの例を示している。また、図14(b)は、第2の実施形態に係るCPU11-2が、通信I/F10に送信するデータの送信フォーマット1401bの例を示している。 Fig. 14(a) shows an example of a transmission format 1401a of data that the CPU 11-1 according to the second embodiment transmits to the communication I/F 10. Also, Fig. 14(b) shows an example of a transmission format 1401b of data that the CPU 11-2 according to the second embodiment transmits to the communication I/F 10.

図14(a)に示すように、第2の実施形態に係るCPU11-1が送信するデータの送信フォーマット1401aには、図4A(a)に示す第1の実施形態に係る送信フォーマット11aに対して、「F1」、「F2」、「F3」、「SFX」が追加されている。同様に、図14(b)に示すように、CPU11-2が送信するデータの送信フォーマット1401bには、図4A(b)に示す第1の実施形態に係る送信フォーマット11bに対して、「F1」、「F2」、「F3」、「SFX」が追加されている。 As shown in FIG. 14(a), in a transmission format 1401a of data transmitted by a CPU 11-1 according to the second embodiment, "F1", "F2", "F3", and "SFX" have been added to the transmission format 11a according to the first embodiment shown in FIG. 4A(a). Similarly, as shown in FIG. 14(b), in a transmission format 1401b of data transmitted by a CPU 11-2, "F1", "F2", "F3", and "SFX" have been added to the transmission format 11b according to the first embodiment shown in FIG. 4A(b).

このうち、「F1」、「F2」、「F3」は、制御部(CPU11-1、CPU11-2)が備える複数の機能の状態を表す第3の状態データの一例である。また、「SFX」は、予め設定された1つ以上の機能が全て正常に機能しているか否かを表す第4の状態情報の一例である。 Of these, "F1", "F2", and "F3" are examples of third status data that indicate the status of multiple functions provided in the control unit (CPU11-1, CPU11-2). Also, "SFX" is an example of fourth status information that indicates whether one or more pre-set functions are all functioning normally.

ここでは、説明用の一例として、「F1」に、上述した「ドアパネルの開閉」機能の状態を表す値(例えば、正常:1、異常:0)が格納されるものとする。同様に、「F2」には、「警告チャイム音」機能の状態を表す値(例えば、正常:1、異常:0)が格納され、「F3」には、「警告灯点滅」機能を表す値(例えば、正常:1、異常:0)が格納されるものとする。また、「SFX」には、「0」が格納される。 Here, as an example for the purposes of explanation, it is assumed that "F1" stores a value representing the state of the above-mentioned "door panel opening/closing" function (e.g., normal: 1, abnormal: 0). Similarly, "F2" stores a value representing the state of the "warning chime sound" function (e.g., normal: 1, abnormal: 0), and "F3" stores a value representing the "warning light flashing" function (e.g., normal: 1, abnormal: 0). Also, "0" is stored in "SFX."

なお、「ONL」、「ERR」、「ONL2」、及び制御応答1、状態情報1、制御応答2、状態情報2については、第1の実施形態と同様なので、ここでは説明を省略する。 Note that "ONL", "ERR", "ONL2", control response 1, status information 1, control response 2, and status information 2 are the same as in the first embodiment, so their explanations are omitted here.

通信I/F10は、CPU11-1とCPU11-2から受信したこれらのデータ(以下、受信データと呼ぶ)を、例えば、図13(a)に示すような所定の送信フォーマット1301に統合した送信データを作成して、通信マスタ1へ送信する。 The communication I/F 10 creates transmission data by integrating the data received from CPU 11-1 and CPU 11-2 (hereinafter referred to as received data) into a specified transmission format 1301, for example, as shown in FIG. 13(a), and transmits the data to the communication master 1.

例えば、通信I/F10は、CPU11-1、及びCPU11-2から受信した受信データに含まれる「ONL」、「ERR」、「ONL2」、「制御応答1」、「状態情報1」、「制御応答2」、「状態情報2」を、第1の実施形態と同様にして統合する。 For example, the communication I/F 10 integrates "ONL", "ERR", "ONL2", "control response 1", "status information 1", "control response 2", and "status information 2" contained in the received data received from CPU 11-1 and CPU 11-2 in the same manner as in the first embodiment.

さらに、第2の実施形態では、通信I/F10は、CPU11-1、及びCPU11-2から受信した受信データに含まれる「F1」、「F2」、「F3」の値を論理和、又は論理積した値を、送信フォーマット1301の「F1」、「F2」、「F3」に格納する。また、通信I/F10は、「F1」、「F2」、「F3」のうち、予め設定された1つ以上の機能が全て有効に機能しているか否かを表す値(第4の状態データ)を「SFX」に格納する。 Furthermore, in the second embodiment, the communication I/F 10 stores the logical sum or logical product of the values of "F1", "F2", and "F3" contained in the received data received from CPU 11-1 and CPU 11-2 in "F1", "F2", and "F3" of the transmission format 1301. The communication I/F 10 also stores in "SFX" a value (fourth status data) indicating whether one or more pre-set functions among "F1", "F2", and "F3" are all functioning effectively.

第2の実施形態では、上述した受信データの統合を、第1の実施形態と同様にハードウェア(ロジック回路等)で実現している。例えば、図13(a)に示すような送信フォーマット1301のうち、論理積の対象となるビットを「1」とし、他のビットをオール「0」とした論理積パターンを用意する。なお、第1の実施形態では、「ONL2」のみを論理積の対象としたが、第2の実施形態では、さらに、「F1」、「F2」、「F3」のうち、予め選択された機能も論理積の対象とする。 In the second embodiment, the integration of the received data described above is realized by hardware (logic circuits, etc.) as in the first embodiment. For example, in the transmission format 1301 shown in FIG. 13(a), a logical product pattern is prepared in which the bit to be the subject of logical product is set to "1" and the other bits are all "0". Note that in the first embodiment, only "ONL2" is the subject of logical product, but in the second embodiment, pre-selected functions from among "F1", "F2", and "F3" are also subject to logical product.

例えば、課題で上述した例では、互いのドアで補い合えない「警告灯点滅」(F3)の機能を論理積の対象とする。また、「ドアパネルの開閉」(F1)の機能、及び「警告チャイム音」(F2)の機能については、論理和の対象とする。 For example, in the example given above in the assignment, the function of "flashing warning light" (F3), which cannot be complemented by the other doors, is the subject of a logical AND. In addition, the function of "opening and closing door panel" (F1) and the function of "warning chime sound" (F2) are the subjects of a logical OR.

また、通信I/F10は、CPU11-1とCPU11-2から受信した受信データを論理和で統合する前に、これらの受信データと論理積パターンとの排他的論理和(XOR)をとり、その値で論理和を実施する。これにより、通信I/F10は、論理積パターンで「1」を設定したビットに対して論理積演算を行い、論理積パターンで「0」を設定したビットに対して論理和演算を行うことができる。 Before integrating the received data from CPU 11-1 and CPU 11-2 with a logical sum, communication I/F 10 takes the exclusive logical sum (XOR) of the received data and the logical product pattern, and performs a logical sum on the resultant value. This enables communication I/F 10 to perform a logical product operation on bits set to "1" in the logical product pattern, and a logical sum operation on bits set to "0" in the logical product pattern.

図13(b)は、通信I/F10が、図13(b)に示すように、制御応答1、制御応答2、状態情報1及び状態情報2を、図13(a)に示す方法とは異なる方法で混在して送信する場合の送信フォーマット(混在型)302の例を示している。この場合でも、第1の実施形態との相違点である「F1」、「F2」、「F3」、及び「SFX」に関する処理は、図13(a)と同様でよいので、ここでは説明を省略する。 Figure 13(b) shows an example of a transmission format (mixed type) 302 when the communication I/F 10 transmits a mixture of control response 1, control response 2, status information 1, and status information 2 in a manner different from that shown in Figure 13(a), as shown in Figure 13(b). Even in this case, the processing related to "F1", "F2", "F3", and "SFX", which are differences from the first embodiment, may be the same as in Figure 13(a), and therefore will not be described here.

なお、図2で前述した、通信マスタ1へ送信される端末ステータス(端末ステータス1、端末ステータス2)は、図14に示した送信フォーマット1401a、1401bの「ONL」、「ERR」、「ONL2」、及び「F1」、「F2」、「F3」に対応している。「ONL」はオンライン、「ERR」はエラー、「ONL2」は「ONL」のコピーを表す。「F1」、「F2」、「F3」は、制御対象機器が備える機能1~3の状態を表す。また、図13(a)に示した送信フォーマット1301の「SFX」は、通信I/F10によって設定され、システムとして必須の機能が全て有効であるか否かを表す。 The terminal status (terminal status 1, terminal status 2) sent to communication master 1 as described above in FIG. 2 corresponds to "ONL", "ERR", "ONL2", and "F1", "F2", and "F3" in transmission formats 1401a and 1401b shown in FIG. 14. "ONL" indicates online, "ERR" indicates an error, and "ONL2" is a copy of "ONL". "F1", "F2", and "F3" indicate the states of functions 1 to 3 that the controlled device has. Also, "SFX" in transmission format 1301 shown in FIG. 13(a) is set by communication I/F 10, and indicates whether all functions required for the system are enabled.

<処理の流れ>
続いて、第2の実施形態に係る端末装置の通信方法の処理の流れについて説明する。なお、基本的な処理の流れは、図6、図7A、図8で説明した第1の実施形態と同様なので、ここでは第1の実施形態との相違点を中心に説明を行う。
<Processing flow>
Next, a process flow of the communication method of the terminal device according to the second embodiment will be described. Note that the basic process flow is similar to that of the first embodiment described in Figures 6, 7A, and 8, so the following description will focus on the differences from the first embodiment.

(CPUのデータ送信処理)
第2の実施形態に係るCPUでデータ送信処理は、図6で説明した第1の実施形態に係るCPUのデータ送信処理と同様でよい。
(CPU data transmission process)
The data transmission process by the CPU according to the second embodiment may be similar to the data transmission process by the CPU according to the first embodiment described with reference to FIG.

ただし、第2の実施形態では、たとえば、図6のステップS13において、送信バッファの端末ステータスに、「ONL」、「ERR」、「OLN2」に加えて、「F1」、F2」、「F3」、「SFX」の値が格納される。 However, in the second embodiment, for example, in step S13 of FIG. 6, the terminal status of the transmission buffer is stored with the values of "F1", "F2", "F3", and "SFX" in addition to "ONL", "ERR", and "OLN2".

例えば、CPU11-1、及びCPU11-2は、「ドアパネルの開閉」(F1)が、正常に機能している場合「F1」に1を設定し、正常に機能していない場合「F1」に0を設定する。同様に、CPU11-1、及びCPU11-2は、「警告チャイム音」(F2)が、正常に機能している場合「F2」に1を設定し、正常に機能していない場合「F2」に0を設定する。また、CPU11-1、及びCPU11-2は、「警告灯点滅」(F3)が、正常に機能している場合「F3」に1を設定し、正常に機能していない場合「F3」に0を設定する。さらに、CPU11-1、及びCPU11-2は、「SFX」に0を設定する。 For example, CPU11-1 and CPU11-2 set "F1" to 1 if "door panel opening/closing" (F1) is functioning properly, and set "F1" to 0 if it is not functioning properly. Similarly, CPU11-1 and CPU11-2 set "F2" to 1 if "warning chime sound" (F2) is functioning properly, and set "F2" to 0 if it is not functioning properly. Furthermore, CPU11-1 and CPU11-2 set "F3" to 1 if "warning light flashing" (F3) is functioning properly, and set "F3" to 0 if it is not functioning properly. Furthermore, CPU11-1 and CPU11-2 set "SFX" to 0.

(通信I/Fのデータ送信処理)
図15は、第2の実施形態に係る通信I/Fのデータ送信処理を示すフローチャートである。
(Data transmission process of communication I/F)
FIG. 15 is a flowchart showing a data transmission process of the communication I/F according to the second embodiment.

ステップS1501において、通信I/F10は、受信したデータを通信マスタ1に向けて送信する際、予め設定されたアイドル時間を使って送信タイミングを調整する。例えば、CPU11-1又はCPU11-2からデータを一定周期で送信する場合、通信I/F10は、CPU11-1又はCPU11-2からデータを受信したとき、タイマのカウントアップを開始して、タイマの値が、予め設定されたアイドル時間を超過したか否かを判断する。タイマの値がアイドル時間を超過していない場合(ステップS1501、No)、通信I/F10は、タイマのカウントアップを継続する。タイマの値がアイドル時間を超過した場合(ステップS1501、Yes)、通信I/F10は、ステップS1502の処理を行う。 In step S1501, when the communication I/F 10 transmits the received data to the communication master 1, it adjusts the transmission timing using a preset idle time. For example, when data is transmitted from CPU 11-1 or CPU 11-2 at a fixed interval, the communication I/F 10 starts counting up the timer when it receives data from CPU 11-1 or CPU 11-2, and determines whether the timer value has exceeded the preset idle time. If the timer value has not exceeded the idle time (step S1501, No), the communication I/F 10 continues counting up the timer. If the timer value has exceeded the idle time (step S1501, Yes), the communication I/F 10 performs the process of step S1502.

ステップS1502において、通信I/F10は、送信バッファをクリアし、ステップS1503において、通信I/F10は、変数Xの値を初期化する。ステップS1504において、通信I/F10は、変数Xに1を加算する。これにより、送信バッファがクリアされた直後は、変数Xの値が1に設定される。ステップS1505において、通信I/F10は、受信したデータを統合する。 In step S1502, the communication I/F 10 clears the transmission buffer, and in step S1503, the communication I/F 10 initializes the value of variable X. In step S1504, the communication I/F 10 adds 1 to variable X. As a result, the value of variable X is set to 1 immediately after the transmission buffer is cleared. In step S1505, the communication I/F 10 consolidates the received data.

統合にあたっては、通信I/F10は、CPU11-1とCPU11-2から受信した受信データを、予め設定しておいた論理積パターンと排他的論理和した一時データを、最初にクリアした送信バッファに順次に論理和して更新していく。 When integrating, the communication I/F 10 performs an exclusive OR operation on the received data from CPU 11-1 and CPU 11-2 with a preset logical AND pattern to generate temporary data, and then updates the data in the transmission buffer that was initially cleared by sequentially performing a logical OR on the data.

論理積パターンは、通信I/F10が通信マスタ1に送信する送信フォーマットと同様の形式を有しており、論理積の対象となるビットを「1」に、論理積の対象とならないビットを「0」に予め設定しておく。 The logical product pattern has a format similar to the transmission format that the communication I/F 10 sends to the communication master 1, and the bits that are the subject of the logical product are pre-set to "1" and the bits that are not the subject of the logical product are pre-set to "0."

図16(a)は、第2の実施形態に係る論理積パターン1601の一例のイメージを示している。図16(a)の例では、論理積パターン1601は、図13(a)に示す送信フォーマット1301と同様の形式を有しており、「ONL2」と「F3」に対応するビットのみが「1」に設定され、他のビットが全て「0」に設定されている。 Fig. 16(a) shows an example of a logical product pattern 1601 according to the second embodiment. In the example of Fig. 16(a), the logical product pattern 1601 has a format similar to that of the transmission format 1301 shown in Fig. 13(a), in which only the bits corresponding to "ONL2" and "F3" are set to "1", and all other bits are set to "0".

従って、論理積パターン1601において「0」が設定されたビットは、送信バッファに格納されている値と、送信バッファに書き込まれる受信データの値とが論理和演算され、送信バッファが更新されていく。 Therefore, for bits in the logical product pattern 1601 that are set to "0", a logical sum is calculated between the value stored in the transmission buffer and the value of the received data written to the transmission buffer, and the transmission buffer is updated.

一方、論理積パターン1601において「1」が設定されたビットでは、送信バッファに記憶されている値と、送信バッファに書き込まれる受信データの値を反転した値とが論理和演算され、送信バッファが更新されていく。 On the other hand, for bits in the logical product pattern 1601 that are set to "1", a logical sum is calculated between the value stored in the transmission buffer and the inverted value of the received data written to the transmission buffer, and the transmission buffer is updated.

例えば、送信バッファをクリアした後に、CPU11-1から受信した受信データで送信バッファを更新すると、送信バッファの「ONL2」には、CPU11-1の「ONL2」の値を反転した値が格納され、送信バッファの「F3」には、CPU11-1の「F3」の値を反転した値が格納される。 For example, after clearing the transmission buffer, if the transmission buffer is updated with the received data from CPU 11-1, the inverted value of "ONL2" of CPU 11-1 will be stored in "ONL2" of the transmission buffer, and the inverted value of "F3" of CPU 11-1 will be stored in "F3" of the transmission buffer.

さらに、CPU11-2から受信した受信データで送信バッファを更新すると、送信バッファの「ONL2」には、CPU11-1の「ONL2」の値を反転した値と、CPU11-2の「ONL2」の値を反転した値とを論理和演算した値が格納される。この値は、CPU11-1の「ONL2」の値と、CPU11-2の「ONL2」の値とを論理積した値を反転した値と等しい。従って、送信バッファの「ONL2」の値を反転することにより、CPU11-1の「ONL2」の値と、CPU11-2の「ONL2」の値とを論理積した値を得ることができる。 Furthermore, when the transmission buffer is updated with the received data from CPU 11-2, the "ONL2" in the transmission buffer stores the logical sum of the inverted value of "ONL2" in CPU 11-1 and the inverted value of "ONL2" in CPU 11-2. This value is equal to the inverted value of the logical product of the "ONL2" value in CPU 11-1 and the "ONL2" value in CPU 11-2. Therefore, by inverting the value of "ONL2" in the transmission buffer, it is possible to obtain the logical product of the "ONL2" value in CPU 11-1 and the "ONL2" value in CPU 11-2.

また、送信バッファの「F3」には、CPU11-1の「F3」の値を反転した値と、CPU11-2の「F3」の値を反転した値とを論理和演算した値が格納される。この値は、CPU11-1の「F3」の値と、CPU11-2の「F3」の値とを論理積した値を反転した値と等しい。従って、送信バッファの「F3」の値を反転することにより、CPU11-1の「F3」の値と、CPU11-2の「F3」の値とを論理積した値を得ることができる。 F3 in the transmission buffer stores the logical sum of the inverted value of "F3" in CPU 11-1 and the inverted value of "F3" in CPU 11-2. This value is equal to the inverted value of the logical product of the "F3" in CPU 11-1 and the "F3" in CPU 11-2. Therefore, by inverting the value of "F3" in the transmission buffer, it is possible to obtain the logical product of the "F3" in CPU 11-1 and the "F3" in CPU 11-2.

ステップS1506において、通信I/F10には、統合する対応の数として、CPU11-1、11-2の数が予め設定されている。通信I/F10は、統合用データが入っている受信バッファを切り替えながら、変数Xの値がCPUの数以上となるまでCPU11-1、CPU11-2からの受信データにステップS1505の処理を実行して、送信バッファに組み込んでいく。変数Xの値がCPUの数未満の場合(ステップS1506、No)、通信I/F10は、変数Xに1を加算することで変数Xを更新する(ステップS1504)。 In step S1506, the number of CPUs 11-1 and 11-2 is preset in the communications I/F 10 as the number of correspondences to be integrated. The communications I/F 10 executes the process of step S1505 on the received data from CPUs 11-1 and 11-2 while switching the receive buffer containing the data to be integrated, until the value of variable X becomes equal to or greater than the number of CPUs, and incorporates the data into the transmit buffer. If the value of variable X is less than the number of CPUs (step S1506, No), the communications I/F 10 updates variable X by adding 1 to it (step S1504).

変数Xの値がCPUの数以上となったとき(ステップS1506、Yes)、CPU11-1、CPU11-2からのデータを送信バッファに組み込み終わるので、通信I/F10は、送信バッファのデータを、論理積パターンと排他的論理和する(ステップS1507)。これにより、例えば、送信バッファの「ONL2」と「F3」に格納されたデータのみが反転され、送信バッファの「ONL2」に、CPU11-1の「ONL2」の値と、CPU11-2の「ONL2」の値とを論理積した値が格納される。同様に、送信バッファの「F3」に、CPU11-1の「F3」の値と、CPU11-2の「F3」の値とを論理積した値が格納される。 When the value of variable X becomes equal to or greater than the number of CPUs (step S1506, Yes), the data from CPUs 11-1 and 11-2 has been loaded into the transmission buffer, and communication I/F 10 performs an exclusive OR on the data in the transmission buffer with the logical product pattern (step S1507). As a result, for example, only the data stored in "ONL2" and "F3" of the transmission buffer is inverted, and the logical product of the value of "ONL2" of CPU 11-1 and the value of "ONL2" of CPU 11-2 is stored in "ONL2" of the transmission buffer. Similarly, the logical product of the value of "F3" of CPU 11-1 and the value of "F3" of CPU 11-2 is stored in "F3" of the transmission buffer.

さらに、第2の実施形態では、「SFX」の値を決定するために、ステップS1508、S1509の処理を実行する。 Furthermore, in the second embodiment, steps S1508 and S1509 are executed to determine the value of "SFX".

ステップS1508において、通信I/F10は、システムの必須機能を0、その他のビット1とする予め用意したマスクパターンと、送信バッファに格納されたデータとを論理和した値を一時データTMPとする。 In step S1508, the communication I/F 10 sets the temporary data TMP to a value obtained by ORing a pre-prepared mask pattern in which essential system functions are set to 0 and other bits are set to 1 with the data stored in the transmission buffer.

図16(b)は、第2の実施形態に係るマスクパターン1602の一例のイメージを示している。マスクパターン1602は、例えば、図13(a)に示す送信フォーマット1301と同様の形式を有しており、また、図16(b)の例では、「F1」、「F2」、「F3」の機能をシステムの必須機能として「0」が設定されており、他のビットには「1」が設定されている。 Figure 16(b) shows an image of an example of a mask pattern 1602 according to the second embodiment. Mask pattern 1602 has, for example, the same format as transmission format 1301 shown in Figure 13(a), and in the example of Figure 16(b), functions "F1", "F2", and "F3" are set to "0" as essential functions of the system, and other bits are set to "1".

ステップS1509において、通信I/F10は、一時データTMPの全てのビットが1であれば、「SFX」に1を設定する。これは、システムの機能として有効であることを示している。一方、通信I/F10は、一時データTMPに1つでも0があれば、「SFX」に0を設定する。これは、システムの機能として無効であることを示している。なお、全てのビットが1であるか否かを判断する処理は、端末ステータス領域のみに限定してもよい。 In step S1509, if all bits in the temporary data TMP are 1, the communication I/F 10 sets "SFX" to 1. This indicates that the system function is valid. On the other hand, if there is even one 0 in the temporary data TMP, the communication I/F 10 sets "SFX" to 0. This indicates that the system function is invalid. Note that the process of determining whether all bits are 1 may be limited to only the terminal status area.

ステップS1510において、送信バッファに格納された送信データが通信マスタ1へ送信される。 In step S1510, the transmission data stored in the transmission buffer is sent to communication master 1.

(通信マスタのデータ受信処理)
第2の実施形態に係る通信マスタの受信処理は、図8で説明した第1の実施形態に係る通信マスタのデータ受信処理と同様でよい。
(Data reception process of communication master)
The reception process of the communication master according to the second embodiment may be similar to the data reception process of the communication master according to the first embodiment described with reference to FIG.

ただし、第1の実施形態では、ステップS32において、通信マスタ1は、端末ステータスに応じた処理(例えば、システムの縮退等)を行う際に、「ONL」、「ERR」、及び必要に応じて「ONL2」を用いていた。 However, in the first embodiment, in step S32, the communication master 1 used "ONL", "ERR", and, if necessary, "ONL2" when performing processing according to the terminal status (e.g., system degeneration, etc.).

一方、第2の実施形態では、ステップS32において、通信マスタ1は、端末ステータスに応じた処理を行う際に、「ONL」、「ERR」、及び「SFX」を用いて、端末ステータスに応じた処理を行うことができる。さらに、通信マスタ1は、必要に応じて、「ONL2」、「F1」、「F2」、「F3」等を用いて、端末ステータスに応じた処理を行うこともできる。 On the other hand, in the second embodiment, in step S32, when the communication master 1 performs processing according to the terminal status, it can use "ONL", "ERR", and "SFX" to perform processing according to the terminal status. Furthermore, the communication master 1 can also perform processing according to the terminal status using "ONL2", "F1", "F2", "F3", etc., as necessary.

以上、第2の実施形態によれば、制御対象機器に複数の機能が搭載されている場合に、複数の制御対象機器で構成された「システム」の個々の機能の状態、及び複数の機能のうち、必須の機能が有効に機能しているか否かを判断することが容易になる。 As described above, according to the second embodiment, when a controlled device is equipped with multiple functions, it becomes easy to determine the status of each function of a "system" composed of multiple controlled devices, and whether or not essential functions among the multiple functions are functioning effectively.

[第3の実施形態]
例えば、制御対象機器が、左右に開くドアの各々のドアパネルを制御する2つの制御装置であり、制御対象機器の機能として、「ドアパネルの開閉」、「警告チャイム音」、「警告灯点滅」の3つの機能があるものとする。
[Third embodiment]
For example, the controlled devices are two control devices that control each door panel of a door that opens to the left and right, and the controlled devices have three functions: "opening and closing the door panel,""warning chime sound," and "flashing warning light."

このうち、「警告チャイム音」は、一方のドアで警告チャイムが鳴らなくても、他方のドアで警告チャイムが鳴れば、警告機能としては補えるので、左右のドアの「警告チャイム音」の状態の論理和により、当該機能が有効であるか否かを判断する。 Of these, the "warning chime sound" function can be compensated for by the fact that even if a warning chime does not sound at one door, a warning chime sounds at the other door, so whether or not the function is active is determined by the logical OR of the "warning chime sound" status of the left and right doors.

一方、「警告灯点滅」は、問題が発生したドアで点滅できなければならず、他方のドアの機能では補えないので、左右のドアの「警告灯点滅」の状態の論理積により、当該機能が有効であるか否かを判断する。 On the other hand, the "flashing warning light" must be able to flash on the door where the problem has occurred, and cannot be compensated for by the function on the other door, so whether or not the function is active is determined by taking the logical AND of the "flashing warning light" states of the left and right doors.

そして、論理和、又は論理積した結果のうち、必須機能の全てが有効であれば、システムとして有効であると判断することができる。 Then, if all of the required functions are valid from the results of the logical sum or logical product, the system can be determined to be valid.

しかし、論理和により、機能が有効に機能しているか否かを判断する場合、例えば、片側のドアだけでもその機能が有効になった時点で、システムとしてその機能が有効になってしまうという問題がある。例えば、左右のドアの立ち上げ処理の処理時間に差がある場合や、片側のドアが故障している場合等に、論理和により判断してしまうと、片側のドアの結果だけで、機能が有効であると判断されてしまうことになる。 However, when using logical OR to determine whether a function is working effectively, there is a problem that as soon as the function is activated for just one of the doors, the function will be activated for the system. For example, if there is a difference in the processing time required for the start-up processes of the left and right doors, or if one of the doors is broken, if logical OR is used to determine whether the function is working effectively, the function will be determined to be active based on the result for only one of the doors.

また、運用時に発生した故障が冗長化によって補われることは望ましいが、例えば、立ち上げ時(運用開始前)には、全ての必須機能が正常であることを確認してから運用を開始したいという要求がある。 In addition, while it is desirable for failures that occur during operation to be compensated for by redundancy, for example, at startup (before operations begin), there is a demand to confirm that all essential functions are working normally before operations begin.

(課題)
このように、第2の実施形態に係る端末装置3では、機能が有効に機能しているか否かを論理和で判断している項目について、立ち上げ時等に、全ての機能が正常に動作しているか否かを判断することには困難を伴っていた。
(assignment)
In this way, in the terminal device 3 according to the second embodiment, it was difficult to determine whether all functions were operating normally at the time of start-up, etc., for items in which whether a function is functioning effectively is determined by logical sum.

第3の実施形態は、上記の問題点に鑑みてなされたものであって、所定の機能が有効に機能しているか否かを論理和で判断する端末装置3において、立ち上げ時等に、所定の機能に関する全ての機能が正常に機能しているか否かを判断することを容易にする。 The third embodiment has been made in consideration of the above problems, and makes it easy to determine whether all functions related to a specific function are functioning normally at start-up, etc., in a terminal device 3 that determines whether a specific function is functioning effectively using a logical sum.

(解決手段)
上記の課題を解決するため、第3の実施形態に係る端末装置3では、複数の制御部(CPU11-1、11-2)は、前記制御部が備える複数の機能の状態を表す第3の状態データを含む第1の送信データを、データ送信部(通信I/F10)に送信する。また、データ送信部は、複数の前記制御部において、前記複数の機能のうち、予め設定された1つ以上の機能(例えば、必須の機能)が正常に機能しているか否かを表す第4の状態データを含む第2の送信データを、マスタ装置(通信マスタ1)に送信する。さらに、データ送信部は、前記1つ以上の機能が正常に機能しているか否かを表す第4の状態データを決定するための論理を、切替できるようにする。
(Solution)
In order to solve the above problem, in the terminal device 3 according to the third embodiment, a plurality of control units (CPUs 11-1, 11-2) transmit first transmission data including third status data representing the status of a plurality of functions provided in the control units to a data transmission unit (communication I/F 10). In addition, the data transmission unit transmits second transmission data including fourth status data representing whether or not one or more pre-set functions (e.g., essential functions) among the plurality of functions are functioning normally in the plurality of control units to a master device (communication master 1). Furthermore, the data transmission unit is capable of switching logic for determining the fourth status data representing whether or not the one or more functions are functioning normally.

(効果)
第2の実施形態によれば、所定の機能が有効に機能しているか否かを論理和で判断する端末装置3において、立ち上げ時等に、所定の機能に関する全ての機能が正常に機能しているか否かを判断することが容易になる。
(effect)
According to the second embodiment, in a terminal device 3 that determines whether or not a specified function is functioning effectively by logical sum, it becomes easy to determine whether or not all functions related to the specified function are functioning normally, such as at the time of start-up.

(実施の形態)
第3の実施形態に係る通信システム100の構成は、図1で説明した一実施形態に係る通信システム100の構成と同様でよい。また、第3の実施形態に係る端末装置3の内部構成は、図2で説明した一実施形態に係る端末装置3-1の構成と同様でよい。
(Embodiment)
The configuration of the communication system 100 according to the third embodiment may be the same as the configuration of the communication system 100 according to the embodiment described in Fig. 1. Moreover, the internal configuration of the terminal device 3 according to the third embodiment may be the same as the configuration of the terminal device 3-1 according to the embodiment described in Fig. 2.

また、第3の実施形態に係る通信システム100における送信データ(第1の送信データ、及び第2の送信データ)の送信フォーマットは、図13、14で説明した第2の実施形態に係る送信データの送信フォーマットと同様でよい。 In addition, the transmission format of the transmission data (first transmission data and second transmission data) in the communication system 100 according to the third embodiment may be the same as the transmission format of the transmission data according to the second embodiment described in Figures 13 and 14.

さらに、通信システム100の各装置の処理内容は、第2の実施形態に係る通信システム100における各装置の処理内容と基本的に同様でよい。ただし、端末装置3の通信I/F10は、CPU11-1、及びCPU11-2から受信した受信データを統合して送信データを作成する際に用いる論理積パターンを切り替える機能を有している。 Furthermore, the processing contents of each device in the communication system 100 may be basically the same as the processing contents of each device in the communication system 100 according to the second embodiment. However, the communication I/F 10 of the terminal device 3 has a function of switching the logical product pattern used when integrating the received data received from the CPU 11-1 and the CPU 11-2 to create the transmitted data.

ここでは、説明用の一例として、CPU11-1は、図14(a)に示すような送信フォーマット1401aで、送信データを通信I/F10に送信するものとする。また、CPU11-2は、図14(b)に示すような送信フォーマット1401bで、送信データを通信I/F10に送信するものとする。 As an example for the purpose of explanation, it is assumed here that CPU 11-1 transmits transmission data to communication I/F 10 in transmission format 1401a as shown in FIG. 14(a). Also, it is assumed here that CPU 11-2 transmits transmission data to communication I/F 10 in transmission format 1401b as shown in FIG. 14(b).

また、第2の実施形態と同様に、「F1」に、「ドアパネルの開閉」機能の状態を表す値(例えば、正常:1、異常:0)が格納されるものとする。また、「F2」に、「警告チャイム音」機能の状態を表す値(例えば、正常:1、異常:0)が格納され、「F3」には、「警告灯点滅」機能を表す値(例えば、正常:1、異常:0)が格納されるものとする。さらに、「SFX」には0格納されるものとする。 As in the second embodiment, a value representing the state of the "door panel opening/closing" function (e.g., normal: 1, abnormal: 0) is stored in "F1." A value representing the state of the "warning chime sound" function (e.g., normal: 1, abnormal: 0) is stored in "F2," and a value representing the "warning light flashing" function (e.g., normal: 1, abnormal: 0) is stored in "F3." Furthermore, 0 is stored in "SFX."

なお、「ONL」、「ERR」、「ONL2」、及び制御応答1、状態情報1、制御応答2、状態情報2については、第1、2の実施形態と同様なので、ここでは説明を省略する。 Note that "ONL", "ERR", "ONL2", control response 1, status information 1, control response 2, and status information 2 are the same as in the first and second embodiments, so their explanations are omitted here.

通信I/F10は、CPU11-1、及びCPU11-2から受信した受信データを、例えば、図13(a)に示すような所定の送信フォーマット1301に統合した送信データを作成して、通信マスタ1へ送信する。 The communication I/F 10 creates transmission data by integrating the received data from the CPUs 11-1 and 11-2 into a predetermined transmission format 1301, for example, as shown in FIG. 13(a), and transmits the data to the communication master 1.

例えば、通信I/F10は、CPU11-1、及びCPU11-2から受信した受信データに含まれる「ONL」、「ERR」、「ONL2」、「制御応答1」、「状態情報1」、「制御応答2」、「状態情報2」を、第1、2の実施形態と同様にして統合する。 For example, the communication I/F 10 integrates "ONL", "ERR", "ONL2", "control response 1", "status information 1", "control response 2", and "status information 2" contained in the received data received from CPU 11-1 and CPU 11-2 in the same manner as in the first and second embodiments.

また、通信I/F10は、CPU11-1、及びCPU11-2から受信した受信データに含まれる「F1」、「F2」、「F3」の値を論理和、又は論理積した値を、送信フォーマット1301の「F1」、「F2」、「F3」に格納する。さらに、通信I/F10は、「F1」、「F2」、「F3」のうち、予め設定された1つ以上の機能が全て有効に機能しているか否かを表す値(第4の状態データ)を「SFX」に格納する。 The communication I/F 10 also stores the logical sum or logical product of the values of "F1", "F2", and "F3" contained in the received data received from CPU 11-1 and CPU 11-2 in "F1", "F2", and "F3" of the transmission format 1301. Furthermore, the communication I/F 10 stores in "SFX" a value (fourth status data) indicating whether one or more pre-set functions among "F1", "F2", and "F3" are all functioning effectively.

第3の実施形態では、上述した受信データの統合を、第2の実施形態と同様にハードウェア(ロジック回路等)で実現している。例えば、図13(a)に示すような送信フォーマット1301のうち、論理積の対象となるビットを「1」とし、他のビットをオール「0」とした論理積パターンを用意する。 In the third embodiment, the integration of the received data described above is realized by hardware (logic circuits, etc.) as in the second embodiment. For example, in the transmission format 1301 shown in FIG. 13(a), a logical product pattern is prepared in which the bit to be subjected to the logical product is set to "1" and the other bits are all "0".

また、第3の実施形態では、通信I/F10は、複数の論理積パターンを有しており、所定の事象に応じて論理積パターンを切り替える機能を有している。 In addition, in the third embodiment, the communication I/F 10 has multiple logical product patterns and has the function of switching the logical product pattern depending on a specified event.

図17は、第3の実施形態に係る論理積パターンのイメージを示す図である。図17(a)は、システムが実際に稼働している状態である運用時に、通信I/F10が用いる論理積パターン(運用時)1701の一例のイメージを示している。 Figure 17 is a diagram showing an image of a logical product pattern according to the third embodiment. Figure 17 (a) shows an example of an image of a logical product pattern (in operation) 1701 used by the communication I/F 10 during operation, which is the state in which the system is actually running.

図17(a)に示すように、論理積パターン(運用時)1701は、図16(a)で説明した第2の実施形態に係る論理積パターンと同じでよい。なお、第1の実施形態では、「ONL2」のみを論理積の対象としたが、第3の実施形態に係る論理積パターン(運用時)1701では、さらに、「F1」、「F2」、「F3」のうち、予め選択された機能も論理積の対象とする。 As shown in FIG. 17(a), the logical product pattern (in operation) 1701 may be the same as the logical product pattern according to the second embodiment described in FIG. 16(a). Note that in the first embodiment, only "ONL2" is the target of the logical product, but in the logical product pattern (in operation) 1701 according to the third embodiment, pre-selected functions from among "F1", "F2", and "F3" are also the target of the logical product.

例えば、ここでは、第2の実施形態と同様に、互いのドアで補い合えない「警告灯点滅」(F3)の機能を論理積の対象としている。また、「ドアパネルの開閉」(F1)の機能、及び「警告チャイム音」(F2)の機能については、論理和の対象としている。 For example, here, as in the second embodiment, the function of "flashing warning lights" (F3), which cannot be complemented by each other, is the subject of a logical AND. In addition, the function of "opening and closing door panels" (F1) and the function of "sounding warning chime" (F2) are the subjects of a logical OR.

図17(b)は、システムが稼働する前、或いは稼働した直後の状態である立ち上げ時に、通信I/F10が用いる論理積パターン(立ち上げ時)1702の一例のイメージを示している。図17(b)の例では、「ONL2」、「F3」に加えて、「F1」、「F2」も論理積の対象としている。 Figure 17(b) shows an example of a logical product pattern (at startup) 1702 used by the communication I/F 10 at startup, which is the state before the system is operational or immediately after it is operational. In the example of Figure 17(b), in addition to "ONL2" and "F3", "F1" and "F2" are also targets of logical product.

このように、第3の実施形態では、運用時に、論理和で有効に機能しているか否かを判断している項目について、立ち上げ時には、論理積で全ての機能が正常である否かを判断する。これにより、第3の実施形態によれば、所定の機能が有効に機能しているか否かを論理和で判断する端末装置3において、立ち上げ時等に、所定の機能に関する全ての機能が正常に機能しているか否かを判断することが容易になる。 In this way, in the third embodiment, for items that are determined to be functioning effectively using logical OR during operation, whether all functions are normal is determined at startup using logical AND. As a result, according to the third embodiment, in the terminal device 3 that determines whether a specific function is functioning effectively using logical OR, it becomes easy to determine whether all functions related to the specific function are functioning normally at startup, etc.

<処理の流れ>
続いて、第3の実施形態に係る端末装置の通信方法の処理の流れについて説明する。なお、基本的な処理の流れは、第1、2の実施形態と同様なので、ここでは第1、2の実施形態との相違点を中心に説明を行う。
<Processing flow>
Next, a process flow of a communication method of a terminal device according to the third embodiment will be described. Note that since the basic process flow is similar to that of the first and second embodiments, the following description will focus on the differences from the first and second embodiments.

(CPUのデータ送信処理)
第3の実施形態に係るCPUでデータ送信処理は、図6で説明した第1の実施形態に係るCPUのデータ送信処理と同様でよい。
(CPU data transmission process)
The data transmission process by the CPU according to the third embodiment may be similar to the data transmission process by the CPU according to the first embodiment described with reference to FIG.

ただし、第3の実施形態では、第2の実施形態と同様に、図6のステップS13において、送信バッファの端末ステータスに、「ONL」、「ERR」、「OLN2」に加えて、「F1」、F2」、「F3」、「SFX」の値も格納する。 However, in the third embodiment, as in the second embodiment, in step S13 of FIG. 6, in addition to "ONL", "ERR", and "OLN2", the values of "F1", "F2", "F3", and "SFX" are also stored in the terminal status of the transmission buffer.

(通信I/Fのデータ送信処理1)
図18は、第3の実施形態に係る通信I/Fのデータ送信処理の一例を示すフローチャートである。第3の実施形態では、通信I/F10は、例えば、図18(a)に示すデータ送信処理と、図18(b)に示す論理積パターンの切替処理とを並行して実行する。
(Data transmission process 1 of communication I/F)
Fig. 18 is a flowchart showing an example of a data transmission process of the communication I/F according to the third embodiment. In the third embodiment, the communication I/F 10 executes, for example, the data transmission process shown in Fig. 18(a) and the logical product pattern switching process shown in Fig. 18(b) in parallel.

図18(a)に示すように、第3の実施形態に係るデータ送信処理は、図15で説明した第2の実施形態に係る通信I/Fのデータ送信処理と同じでよい。ただし、第3の実施形態では、図18(b)に示す論理積パターンの切替処理により、ステップS1505、S1507で用いられる論理積パターンが切り替わる。 As shown in FIG. 18(a), the data transmission process according to the third embodiment may be the same as the data transmission process of the communication I/F according to the second embodiment described in FIG. 15. However, in the third embodiment, the logical product pattern switching process shown in FIG. 18(b) switches the logical product pattern used in steps S1505 and S1507.

図18(b)は、第3の実施形態に係る通信I/F10が実行する論理積パターンの切替処理の例を示すフローチャートである。 Figure 18 (b) is a flowchart showing an example of a logical product pattern switching process executed by the communication I/F 10 according to the third embodiment.

ステップS1801において、端末装置3が起動すると、通信I/F10は、論理積パターン(立ち上げ時)1702を、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 In step S1801, when the terminal device 3 starts up, the communication I/F 10 applies the logical product pattern (at startup) 1702 as the logical product pattern to be used in steps S1505, S1507, etc. in FIG. 18(b).

この論理積パターン(立ち上げ時)1702は、例えば、図17(b)に示すように、「F1」、「F2」、「F3」の全てが1に設定されており、論理積の対象となっている。従って、この場合、CPU11-1、CPU11-2の両方ともに、「F1」、「F2」、「F3」の全てが1でなければ、図18(a)のステップS1510で、「SFX」が1(有効)にならない。 In this logical product pattern (at startup) 1702, for example, as shown in FIG. 17(b), "F1", "F2", and "F3" are all set to 1, and are the subject of logical product. Therefore, in this case, unless "F1", "F2", and "F3" are all 1 in both CPU 11-1 and CPU 11-2, "SFX" will not become 1 (enabled) in step S1510 in FIG. 18(a).

ステップS1802において、通信I/F10は、「SFX」が1であるか否かを判断し、「SFX」が1になったときに、論理積パターン(運用時)1701を、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 In step S1802, the communication I/F 10 determines whether "SFX" is 1, and when "SFX" is 1, applies the logical product pattern (in operation) 1701 as the logical product pattern to be used in steps S1505, S1507, etc. in FIG. 18(b).

(通信I/Fのデータ送信処理2)
図19は、第3の実施形態に係る通信I/Fのデータ送信処理の別の一例を示すフローチャートである。図18では、通信I/F10が、データ送信処理と、論理積パターンの切替処理とを並行して実行していたが、並行して実行することは必須ではない。例えば、通信I/F10は、図19に示すような通信I/Fのデータ送信処理を実行してもよい。
(Data transmission process 2 of communication I/F)
Fig. 19 is a flowchart showing another example of the data transmission process of the communication I/F according to the third embodiment. In Fig. 18, the communication I/F 10 executes the data transmission process and the logical product pattern switching process in parallel, but it is not essential to execute them in parallel. For example, the communication I/F 10 may execute the data transmission process of the communication I/F as shown in Fig. 19.

ステップS1901において、端末装置3が起動すると、通信I/F10は、論理積パターン(立ち上げ時)1702を、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 In step S1901, when the terminal device 3 starts up, the communication I/F 10 applies the logical product pattern (at startup) 1702 as the logical product pattern to be used in steps S1505, S1507, etc. in FIG. 18(b).

ステップS1902において、通信I/F10は、例えば、図18(a)に示すデータ送信処理を実行する。 In step S1902, the communication I/F 10 executes, for example, the data transmission process shown in FIG. 18(a).

ステップS1903において、通信I/F10は、ステップS1904において、「SFX」が1であるか否かを判断する。「SFX」が0であれば、通信I/F10は、処理をステップS1902に戻す。一方、「SFX」が1であれば、通信I/Fは、処理をステップS1904に移行させる。 In step S1903, the communication I/F 10 determines whether "SFX" is 1. In step S1904, if "SFX" is 0, the communication I/F 10 returns the process to step S1902. On the other hand, if "SFX" is 1, the communication I/F transitions the process to step S1904.

ステップS1904に移行すると、通信I/F10は、論理積パターン(運用時)1701を、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 When the process proceeds to step S1904, the communication I/F 10 applies the logical product pattern (in operation) 1701 as the logical product pattern to be used in steps S1505, S1507, etc. of FIG. 18(b).

ステップS1905において、通信I/F10は、論理積パターン(運用時)1701を用いて、例えば、図18(a)に示すデータ送信処理を繰り返し実行する。 In step S1905, the communication I/F 10 repeatedly executes the data transmission process shown in FIG. 18(a), for example, using the logical product pattern (in operation) 1701.

なお、図18、19に示す処理では、「SFX」の値の変化に応じて、論理積パターンを切り替えているが、「SFX」の値の変化は所定の事象の一例である。例えば、通信I/F10は、ユーザ操作、又は外部からの制御信号等に応じて論理積パターンを切り替えてもよい。 In the process shown in FIGS. 18 and 19, the logical product pattern is switched in response to a change in the value of "SFX", but the change in the value of "SFX" is an example of a predetermined event. For example, the communication I/F 10 may switch the logical product pattern in response to a user operation or a control signal from the outside.

(論理積パターンの切替処理)
図20は、第3の実施形態に係る論理積パターンの切替処理の別の一例を示すフローチャートである。
(Logical AND pattern switching process)
FIG. 20 is a flowchart showing another example of the logical product pattern switching process according to the third embodiment.

ステップS2001において、端末装置3が起動すると、通信I/F10は、論理積パターン(立ち上げ時)1702を、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 In step S2001, when the terminal device 3 starts up, the communication I/F 10 applies the logical product pattern (at startup) 1702 as the logical product pattern to be used in steps S1505, S1507, etc. in FIG. 18(b).

ステップS1902において、通信I/F10は、ユーザ、管理者等による操作、又は通信マスタ1等からの制御信号等を受け付けると、ステップS2003以降の処理を実行する。 In step S1902, when the communication I/F 10 receives an operation by a user, administrator, etc., or a control signal from the communication master 1, etc., it executes the processing from step S2003 onwards.

ステップS2003において、通信I/F10は、受け付けた操作、又は制御信号が、運用モードへの切替要求であるか否かに応じて処理を分岐させる。受け付けた操作、又は制御信号が、運用モードへの切替要求である場合、通信I/F10は、処理をステップS2004に移行させる。一方、受け付けた操作、又は制御信号が運用モードへの切替要求でない場合、通信I/F10は、処理をステップS2005に移行させる。 In step S2003, the communication I/F 10 branches the process depending on whether the received operation or control signal is a request to switch to the operational mode. If the received operation or control signal is a request to switch to the operational mode, the communication I/F 10 transitions the process to step S2004. On the other hand, if the received operation or control signal is not a request to switch to the operational mode, the communication I/F 10 transitions the process to step S2005.

ステップS2004に移行すると、通信I/F10は、論理積パターン(運用時)1701を、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 When the process proceeds to step S2004, the communication I/F 10 applies the logical product pattern (in operation) 1701 as the logical product pattern to be used in steps S1505, S1507, etc. of FIG. 18(b).

一方、ステップS2003からS2005に移行すると、通信I/F10は、受け付けた操作、又は制御信号が、テストモードへの切替要求であるか否かに応じて処理を分岐させる。受け付けた操作、又は制御信号が、テストモードへの切替要求である場合、通信I/F10は、処理をステップS2006に移行させる。一方、受け付けた操作、又は制御信号がテストモードへの切替要求でない場合、通信I/F10は、処理をステップS2002に戻す。 On the other hand, when the process moves from step S2003 to S2005, the communication I/F 10 branches the process depending on whether the received operation or control signal is a request to switch to test mode. If the received operation or control signal is a request to switch to test mode, the communication I/F 10 moves the process to step S2006. On the other hand, if the received operation or control signal is not a request to switch to test mode, the communication I/F 10 returns the process to step S2002.

ステップS2006に移行すると、通信I/F10は、テストモード用の論理積パターンを、図18(b)のステップS1505、S1507等で用いる論理積パターンとして適用する。 When the process proceeds to step S2006, the communication I/F 10 applies the logical product pattern for the test mode as the logical product pattern to be used in steps S1505, S1507, etc. of FIG. 18(b).

ここで、テストモードは、一例として、「ドアパネルの開閉」(F1)、「警告チャイム音」(F2)、「警告灯点滅」(F3)等の個々の機能をテストするためのモードであってよい。例えば、「ドアパネルの開閉」(F1)の機能をテストするテストモードでは、図16(a)、(b)に示すような論理積パターンにおいて、テストの対象となる「F1」のみを1とし、他のビットを全て0として論理積パターンを適用することができる。 Here, the test mode may be, for example, a mode for testing individual functions such as "door panel opening/closing" (F1), "warning chime sound" (F2), and "warning light flashing" (F3). For example, in a test mode for testing the function of "door panel opening/closing" (F1), a logical product pattern as shown in Figures 16(a) and (b) can be applied in which only the "F1" to be tested is set to 1 and all other bits are set to 0.

このように、論理積パターンの数は、3つ以上であってもよい。また、論理積パターンを切り替える契機となる所定の事象は、「SFX」の値の変化に限られず、ユーザによる操作や、外部装置からの制御信号等であってもよい。 In this way, the number of logical product patterns may be three or more. Furthermore, the specified event that triggers switching of the logical product pattern is not limited to a change in the value of "SFX" and may be an operation by the user, a control signal from an external device, etc.

(通信マスタのデータ受信処理)
第3の実施形態に係る通信マスタの受信処理は、第2の実施形態と同様なので、ここでは説明を省略する。
(Data reception process of communication master)
The reception process of the communication master according to the third embodiment is similar to that of the second embodiment, and therefore a description thereof will be omitted here.

以上、第3の実施形態によれば、所定の機能が有効に機能しているか否かを論理和で判断する端末装置3において、立ち上げ時等に、所定の機能に関する全ての機能が正常に機能しているか否かを判断することが容易になる。 As described above, according to the third embodiment, in a terminal device 3 that determines whether a specific function is functioning effectively by logical sum, it becomes easy to determine whether all functions related to the specific function are functioning normally at the time of start-up, etc.

なお、以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configurations shown in the above embodiments are merely examples of the contents of the present invention, and may be combined with other known technologies. Parts of the configurations may be omitted or modified without departing from the spirit of the present invention.

例えば、上記の各実施形態では、通信I/F10がハードウェア(ロジック回路等)であるものとして説明したが、通信I/F10は、CPUを有していてもよい。また、通信I/F10が備える機能のうち、少なくとも一部は、CPUによって実行されるプログラムによって実現されるものであってもよい。 For example, in each of the above embodiments, the communication I/F 10 has been described as being hardware (such as a logic circuit), but the communication I/F 10 may have a CPU. Furthermore, at least some of the functions of the communication I/F 10 may be realized by a program executed by the CPU.

1 通信マスタ、2-1 スイッチ、2-2 スイッチ、3-1 端末装置、3-1A 端末装置、3-2 端末装置、3-2A 端末装置、3-3 端末装置、3-3A 端末装置、3-4 端末装置、3-4A 端末装置、3-5 端末装置、3-5A 端末装置、3-6 端末装置、3-6A 端末装置、5 イーサネットケーブル、6 イーサネットケーブル、6-1 イーサネットケーブル、6-2 イーサネットケーブル、6-4 イーサネットケーブル、7 イーサネットケーブル、10 通信I/F、10-1 通信I/F、10-2 通信I/F、11-1 CPU、11-2 CPU、100 通信システム、100A 通信システム。 1 communication master, 2-1 switch, 2-2 switch, 3-1 terminal device, 3-1A terminal device, 3-2 terminal device, 3-2A terminal device, 3-3 terminal device, 3-3A terminal device, 3-4 terminal device, 3-4A terminal device, 3-5 terminal device, 3-5A terminal device, 3-6 terminal device, 3-6A terminal device, 5 Ethernet cable, 6 Ethernet cable, 6-1 Ethernet cable, 6-2 Ethernet cable, 6-4 Ethernet cable, 7 Ethernet cable, 10 communication I/F, 10-1 communication I/F, 10-2 communication I/F, 11-1 CPU, 11-2 CPU, 100 communication system, 100A communication system.

Claims (10)

ケーブルを介してスイッチ装置のポートに接続され、前記スイッチ装置を介してマスタ装置との間でデータ伝送を行う端末装置であって、
前記マスタ装置から送信される制御指令に従い複数の制御対象機器を制御する複数の制御部と、
複数の前記制御部のそれぞれから送信される、前記制御部の状態を表す第1の状態データを含む第1の送信データを、所定の送信フォーマットに統合した第2の送信データを前記マスタ装置に送信するデータ送信部と、
を備え、
前記第2の送信データは、複数の前記制御部のそれぞれの状態を表す前記第1の状態データの論理和の結果を含む、端末装置。
A terminal device connected to a port of a switch device via a cable and performing data transmission between the terminal device and a master device via the switch device,
a plurality of control units for controlling a plurality of control target devices in accordance with a control command transmitted from the master device;
a data transmission unit that transmits to the master device second transmission data obtained by integrating first transmission data, the first transmission data including first status data representing a status of the control units, into a predetermined transmission format; and
Equipped with
A terminal device, wherein the second transmission data includes a result of a logical sum of the first status data representing each status of the plurality of control units.
前記第1の送信データは、前記制御指令に応答する応答情報を含み、
複数の前記制御部のそれぞれは、前記応答情報を前記送信フォーマットの互いに重ならない位置に配置し、
前記第2の送信データは、複数の前記制御部のそれぞれから受信した前記第1の送信データに含まれる前記応答情報の論理和の結果を含む、請求項1に記載の端末装置。
the first transmission data includes response information responding to the control command,
each of the plurality of control units arranges the response information at a position in the transmission format that does not overlap with each other;
The terminal device according to claim 1 , wherein the second transmission data includes a result of a logical sum of the response information included in the first transmission data received from each of the plurality of control units.
前記第1の送信データは、前記制御部の状態を表す前記第1の状態データと同じ値が格納される第2の状態データを含み、
前記第2の送信データは、複数の前記制御部のそれぞれの状態を表す前記第2の状態データの論理積の結果を含む、請求項1又は2に記載の端末装置。
the first transmission data includes second status data in which the same value as the first status data representing a status of the control unit is stored ;
The terminal device according to claim 1 , wherein the second transmission data includes a result of a logical AND of the second status data representing respective states of the plurality of control units.
前記第1の送信データは、前記制御部が備える複数の機能に対応する複数の第3の状態データを含み、
前記データ送信部は、前記複数の第3の状態データに基づいて、複数の前記制御部において、前記複数の機能のうち、予め設定された1つ以上の機能が全て正常に機能しているか否かを表す第4の状態情報を含む前記第2の送信データを前記マスタ装置に送信する、請求項1乃至3のいずれか一項に記載の端末装置。
the first transmission data includes a plurality of third status data corresponding to a plurality of functions of the control unit,
4. The terminal device according to claim 1, wherein the data transmission unit transmits the second transmission data to the master device, the second transmission data including fourth status information indicating whether or not one or more pre-set functions among the plurality of functions are all functioning normally in the plurality of control units based on the plurality of third status data.
前記第2の送信データは、複数の前記制御部から受信した前記第3の状態データの論理和、又は論理積の結果を含む、請求項4に記載の端末装置。 The terminal device according to claim 4, wherein the second transmission data includes a result of a logical sum or a logical product of the third status data received from a plurality of the control units. 前記データ送信部は、所定の事象に応じて、前記第3の状態データの論理和を含む前記第2の送信データを送信するか、前記第3の状態データの論理積を含む前記第2の送信データを送信するかを切り替える、請求項5に記載の端末装置。 The terminal device according to claim 5, wherein the data transmission unit switches between transmitting the second transmission data including the logical sum of the third status data and transmitting the second transmission data including the logical product of the third status data in response to a predetermined event. 前記データ送信部は、前記第4の状態情報の値に応じて、前記第3の状態データの論理和を含む前記第2の送信データを送信するか、前記第3の状態データの論理積を含む前記第2の送信データを送信するかを切り替える、請求項5に記載の端末装置。 The terminal device according to claim 5, wherein the data transmission unit switches between transmitting the second transmission data including the logical sum of the third status data and transmitting the second transmission data including the logical product of the third status data, depending on the value of the fourth status information. 前記データ送信部は、立ち上げ時に、前記第3の状態データの論理積を含む前記第2の送信データを送信し、所定の事象に応じて、前記第3の状態データの論理和を含む前記第2の送信データを送信する、請求項5に記載の端末装置。 The terminal device according to claim 5, wherein the data transmission unit transmits the second transmission data including a logical product of the third status data at startup, and transmits the second transmission data including a logical sum of the third status data in response to a predetermined event. 請求項1乃至8のいずれか一項に記載の端末装置を備える通信システム。 A communication system comprising a terminal device according to any one of claims 1 to 8. ケーブルを介してスイッチ装置のポートに接続され、前記スイッチ装置を介してマスタ装置との間でデータ伝送を行う端末装置の通信方法であって、
前記端末装置が備える複数の制御部が、前記マスタ装置から送信される制御指令に従い複数の制御対象機器を制御するステップと、
前記端末装置が備えるデータ送信部が、複数の前記制御部のそれぞれから送信される、前記制御部の状態を表す第1の状態データを含む第1の送信データを、所定の送信フォーマットに統合した第2の送信データを前記マスタ装置に送信するステップと、
を含み、
前記第2の送信データは、複数の前記制御部のそれぞれの状態を表す前記第1の状態データの論理和の結果を含む、端末装置の通信方法。
A communication method for a terminal device that is connected to a port of a switch device via a cable and transmits data to a master device via the switch device, comprising the steps of:
a step of controlling a plurality of control target devices according to a control command transmitted from the master device by a plurality of control units included in the terminal device;
a data transmission unit of the terminal device transmits, to the master device, second transmission data obtained by integrating first transmission data, which includes first status data representing statuses of the control units and is transmitted from each of the plurality of control units, into a predetermined transmission format;
Including,
A communication method for a terminal device, wherein the second transmission data includes a result of a logical sum of the first status data representing each status of the plurality of control units.
JP2020084390A 2020-05-13 2020-05-13 Terminal device, communication system, and terminal device communication method Active JP7521253B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020084390A JP7521253B2 (en) 2020-05-13 2020-05-13 Terminal device, communication system, and terminal device communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020084390A JP7521253B2 (en) 2020-05-13 2020-05-13 Terminal device, communication system, and terminal device communication method

Publications (2)

Publication Number Publication Date
JP2021180391A JP2021180391A (en) 2021-11-18
JP7521253B2 true JP7521253B2 (en) 2024-07-24

Family

ID=78510495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020084390A Active JP7521253B2 (en) 2020-05-13 2020-05-13 Terminal device, communication system, and terminal device communication method

Country Status (1)

Country Link
JP (1) JP7521253B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004086522A (en) 2002-08-27 2004-03-18 Fujitsu Access Ltd Communication network monitoring system
JP2013535730A (en) 2010-07-23 2013-09-12 サウジ アラビアン オイル カンパニー Machine, computer program product, and computer-implemented method for providing an integrated node for data collection and control
JP2019161603A (en) 2018-03-16 2019-09-19 株式会社東芝 Load distribution device, load distribution system, program, and load distribution method
JP2020123945A (en) 2019-01-30 2020-08-13 富士電機株式会社 Terminal device, communication system, and communication method of terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004086522A (en) 2002-08-27 2004-03-18 Fujitsu Access Ltd Communication network monitoring system
JP2013535730A (en) 2010-07-23 2013-09-12 サウジ アラビアン オイル カンパニー Machine, computer program product, and computer-implemented method for providing an integrated node for data collection and control
JP2019161603A (en) 2018-03-16 2019-09-19 株式会社東芝 Load distribution device, load distribution system, program, and load distribution method
JP2020123945A (en) 2019-01-30 2020-08-13 富士電機株式会社 Terminal device, communication system, and communication method of terminal device

Also Published As

Publication number Publication date
JP2021180391A (en) 2021-11-18

Similar Documents

Publication Publication Date Title
US7023870B2 (en) Method for operating a distributed computer system
JP4877482B2 (en) PCI Express link, multi-host computer system, and PCI Express link reconfiguration method
US7474015B2 (en) Method and supply line structure for transmitting data between electrical automotive components
JP7157090B2 (en) Communications system
US8297201B2 (en) Method to high availability control for railway doors systems, on board system and application to accessories and surroundings of doors
WO2019207917A1 (en) Gateway device
US11904918B2 (en) Computer interlocking system and switching control method for the same, device, and storage medium
JP7030742B2 (en) Communication system and communication control method
CN110877628B (en) Train redundancy communication system and method
JP7521253B2 (en) Terminal device, communication system, and terminal device communication method
WO2020260050A1 (en) An apparatus and a method for providing a redundant communication within a vehicle architecture and a corresponding control architecture
CN114179860A (en) Fusion unit for train control, train control management system and train
JP7443678B2 (en) Terminal device, communication system, and communication method of terminal device
JP2006197114A (en) Information transmission system, information transmission system for railway vehicle, and information transmission terminal for vehicle
KR102260876B1 (en) Controller cluster and method for operating the controller cluster
US11313165B2 (en) Terminal device, communication system, and communication method of terminal device for integrating and transmitting data
CN116360244A (en) Control method and control system for high redundancy based on intensive vehicle controller
CN111522698A (en) Automatic switching system and method of front-end processor
JP2011055416A (en) In-train transmission control system
JP5251165B2 (en) Information processing system, resource diagnosis method, and diagnosis management program
JP3377457B2 (en) Cluster system and its operation management device and method
JP4679178B2 (en) Communication device and memory device
CN109154928A (en) The multiplex networks of the loss of controlled state frame
JP4348485B2 (en) Process control device
JP3782423B2 (en) Transmission line control device multiplexing system and transmission device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240305

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240412

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240611

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240624

R150 Certificate of patent or registration of utility model

Ref document number: 7521253

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150