JP2006042164A - Gateway device - Google Patents

Gateway device Download PDF

Info

Publication number
JP2006042164A
JP2006042164A JP2004221928A JP2004221928A JP2006042164A JP 2006042164 A JP2006042164 A JP 2006042164A JP 2004221928 A JP2004221928 A JP 2004221928A JP 2004221928 A JP2004221928 A JP 2004221928A JP 2006042164 A JP2006042164 A JP 2006042164A
Authority
JP
Japan
Prior art keywords
data
slave
master device
network
downlink
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004221928A
Other languages
Japanese (ja)
Inventor
Fumihiko Fujita
史彦 藤田
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 Systems 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 Systems Co Ltd filed Critical Fuji Electric Systems Co Ltd
Priority to JP2004221928A priority Critical patent/JP2006042164A/en
Publication of JP2006042164A publication Critical patent/JP2006042164A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To eliminate a limit for a transmission relay by enabling a relay so that an upper master device may communicate with a plurality of lower slave devices according to a standard communication procedure, to prevent a wasteful time and a processing from required for selecting necessary data, and to make preparation man-hours for preparing a specific upper application unnecessary. <P>SOLUTION: A gateway device 22 determines whether or not a destination of a down telegram from an upper master device 14 exists in a lower network 12, converts the down telegram into one which can be received by a party on the other end only when the destination exists and once stores the down telegram in down exclusive data buffers 33-1-33-n, and transmits the telegram to lower slave devices 12-1-12-n. Also, an up telegram from the lower slave devices 12-1-12-n is converted into one which can be received by the upper master device 14, and once stored in up exclusive data buffers 34-1-34-n transmitted to the upper master device 14. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、産業用制御通信において各種センサや駆動機器等の配線を少なくして効率的に制御するためのフィールドネットワークに用いられ、このネットワーク上でプロトコルが異なるデータを相互に変換して通信を可能にするゲートウェイ装置に関する。   INDUSTRIAL APPLICABILITY The present invention is used in a field network for efficient control by reducing wiring of various sensors and drive devices in industrial control communication, and communication is performed by mutually converting data with different protocols on this network. The present invention relates to a gateway device that makes it possible.

フィールドネットワークにおいては、マスタ装置及びスレーブ装置間でのセレクト/ポーリング方式による通信には多くの種類があり、各種通信毎に接続可能なスレーブ装置の数や、1回の伝送で可能な伝送サイズ等の仕様が異なっている。
例えばFA(FactoryAutomation)の設備の更新時においては、現場に既に敷設してある既存ネットワークはそのまま利用したいが、上位の通信には異なったプロトコルに基づくネットワークを使用しなければならないケースがある。この場合には、プロトコルが異なる2つのネットワークを接続してデータを中継する装置が必要となる。
In the field network, there are many types of communication between the master device and the slave device using the select / polling method. The number of slave devices that can be connected for each type of communication, the transmission size that can be transmitted at one time, etc. The specifications are different.
For example, when an FA (Factory Automation) facility is updated, there is a case where it is desired to use an existing network that has already been laid on the site as it is, but a network based on a different protocol must be used for upper communication. In this case, a device that relays data by connecting two networks having different protocols is required.

この伝送中継装置として、図7のフィールドネットワーク10の構成図に示すように、上位ネットワーク11にとってはスレーブ機能を有し、下位ネットワーク12にとってはマスタ機能を有するゲートウェイ装置13が適用される。ここで、上位ネットワーク11には、マスタ装置14の他に複数のスレーブ装置11−1〜11−3が接続されており、下位ネットワーク12には、複数のスレーブ装置12−1〜12−nが接続されている。   As the transmission relay device, as shown in the configuration diagram of the field network 10 in FIG. 7, a gateway device 13 having a slave function for the higher network 11 and a master function for the lower network 12 is applied. Here, a plurality of slave devices 11-1 to 11-3 are connected to the upper network 11 in addition to the master device 14, and a plurality of slave devices 12-1 to 12 -n are connected to the lower network 12. It is connected.

このような従来の上位ネットワークと下位ネットワークとを接続する伝送中継装置としては、その接続距離を伸ばす、接続台数を増やすことを目的とした例えば特許文献1に記載の装置がある。ところが、このような伝送中継装置においては、異種のネットワークを接続する性質上、両ネットワークの仕様でその許容データサイズが異なり、そのままでは中継することができない。   As such a conventional transmission relay apparatus for connecting a higher-level network and a lower-level network, there is an apparatus described in Patent Document 1 for the purpose of extending the connection distance and increasing the number of connections. However, in such a transmission relay device, due to the nature of connecting different types of networks, the allowable data size differs depending on the specifications of both networks, and cannot be relayed as it is.

例えば、ゲートウェイ装置13における下位ネットワーク12の1スレーブ装置とのデータ交換サイズが最大200バイトで、スレーブ装置12−1〜12−nが16スレーブ接続されているとした場合、当該ゲートウェイ装置13のマスタ機能において3200バイトのデータを管理する必要がある。
ここで、ゲートウェイ装置13における上位ネットワーク11の1スレーブ装置とのデータ交換サイズが最大500バイトであるとした場合、当該ゲートウェイ装置13のマスタ機能では下位ネットワーク12の総データ量3200バイトの内、最大500バイトしか上位マスタ装置14との間でデータ交換することが出来ない。
For example, if the maximum data exchange size with one slave device of the lower level network 12 in the gateway device 13 is 200 bytes and the slave devices 12-1 to 12-n are connected to 16 slaves, the master of the gateway device 13 It is necessary to manage 3200 bytes of data in the function.
Here, when the data exchange size with one slave device of the upper network 11 in the gateway device 13 is 500 bytes at the maximum, the master function of the gateway device 13 has a maximum of 3200 bytes of the total data amount of the lower network 12. Only 500 bytes can be exchanged with the upper master device 14.

そこで、従来の伝送中継装置であるゲートウェイ装置13では、次の(1)〜(3)の方法で対応していた。
(1)上位ネットワーク11の許容データ量の範囲内に収まる下位ネットワーク12のスレーブ装置12−1〜12−nの数の制限下で使用する。
(2)ゲートウェイ装置13において、下位ネットワーク12の全スレーブ装置12−1〜12−nのデータから必要なもののみを選択し、これを一纏めとして上位ネットワーク11のマスタ装置14へ送信することによるデータ交換を行う。つまり、上位スレーブ装置11−1〜11−3が許容可能なデータサイズに纏めていた。
(3)上位マスタ装置14との通信を複数回に分けて、下位ネットワーク12の全スレーブ装置12−1〜12−nのデータを上位マスタ装置14へ送信する。
特開平9−237110号公報
Therefore, the gateway apparatus 13 which is a conventional transmission relay apparatus has coped with the following methods (1) to (3).
(1) It is used under the limitation of the number of slave devices 12-1 to 12-n of the lower network 12 that falls within the allowable data amount range of the upper network 11.
(2) Data obtained by selecting only necessary data from the data of all slave devices 12-1 to 12-n in the lower network 12 and transmitting them to the master device 14 in the upper network 11 as a group in the gateway device 13. Exchange. That is, the upper slave devices 11-1 to 11-3 are grouped into an allowable data size.
(3) The communication with the upper master device 14 is divided into a plurality of times, and the data of all the slave devices 12-1 to 12-n of the lower network 12 are transmitted to the upper master device 14.
JP-A-9-237110

しかし、従来のゲートウェイ装置においては、上位のマスタ装置14とデータ交換できるデータ量が、下位ネットワーク12の全スレーブ装置12−1〜12−nのデータ量と比べて極端に小さいため、伝送中継を行う上で制限が大きく、また、必要データの取捨選択に無駄な時間や処理を必要とするという問題がある。
また、上位のマスタ装置14のアプリケーションにて複数回に分けて受信したデータを組立てる必要があるので、上位アプリケーションにとっては本来行うスレーブ装置12−1〜12−nとの通信や、ゲートウェイ装置13との通信と比べ、通信後の処理が異なってしまう。更に、上位と下位とのデータ量の違いから上位のマスタ装置14にて複数回に分けて受信したデータをアプリケーションにて組立てる必要があるので、下位ネットワーク12の各スレーブ装置12−1〜12−nにおける一塊で意味を成すデータの量が比較的大きい故障等の状態情報は、そのままマスタ装置14に通知できない。このため、上位アプリケーションを特別に作成しなければならないので、作成工数が掛かるという問題がある。
However, in the conventional gateway device, the amount of data that can be exchanged with the upper master device 14 is extremely smaller than the data amount of all the slave devices 12-1 to 12-n in the lower network 12, so that transmission relaying is performed. There are problems in that there are large restrictions on the performance, and wasteful time and processing are required to select necessary data.
In addition, since it is necessary to assemble the data received in multiple times by the application of the upper master device 14, communication with the slave devices 12-1 to 12-n originally performed for the upper application, the gateway device 13 and Compared with the communication, the processing after communication is different. Furthermore, since it is necessary to assemble the data received by the upper master device 14 in a plurality of times due to the difference in the data amount between the upper and lower levels, it is necessary to assemble each slave device 12-1 to 12- of the lower network 12. Status information such as a failure with a relatively large amount of data making sense in a lump cannot be notified to the master device 14 as it is. For this reason, since it is necessary to create a high-order application specially, there is a problem that it takes time for creation.

本発明は、このような課題に鑑みてなされたものであり、上位マスタ装置が標準的な通信手順に従って複数の下位スレーブ装置との通信が行えるように中継可能とすることによって、伝送中継を行う上での制限を無くし、必要データの取捨選択に無駄な時間や処理を必要とすることを防止し、また、特別な上位アプリケーション作成による作成工数を不要とすることができるゲートウェイ装置を提供することを目的としている。   The present invention has been made in view of such problems, and performs transmission relay by enabling relaying so that the upper master device can communicate with a plurality of lower slave devices according to a standard communication procedure. To provide a gateway device that eliminates the above limitation, prevents unnecessary time and processing from being required for selection of necessary data, and eliminates the need for creation work by creating a special higher-level application. It is an object.

上記目的を達成するために、本発明の請求項1によるゲートウェイ装置は、フィールドネットワークに代表される上位と下位の通信ネットワークの間に接続され、上位ネットワークに接続された上位マスタ装置と下位ネットワークに接続された複数の下位スレーブ装置との間で、上位マスタ装置から下位スレーブ装置へ向かう下りデータとその逆方向の上りデータとを送受信する際に、通信プロトコルが異なるデータを相互に変換して通信を可能にするゲートウェイ装置において、前記複数の下位スレーブ装置のアドレスに対応する複数のアドレス情報を記憶しておき、前記上位マスタ装置からの下りデータを受信し、この下りデータの宛先アドレス情報と前記記憶されたアドレス情報とが一致する際に当該下りデータを取り込み、不一致の際に当該下りデータを破棄し、また、前記複数の下位スレーブ装置からの上りデータに予め定められたアドレスを送信元アドレスとして前記上位マスタ装置へ送信する論理スレーブ手段と、前記下りデータを格納する下りデータバッファ手段及び前記上りデータを格納する上りデータバッファ手段を有し、前記論理スレーブ手段からの下りデータを当該データの送信先である下位スレーブ装置が受信可能なデータ形式に変換し、この変換された下りデータを前記下りデータバッファ手段に格納し、また、前記上りデータを当該データの送信先である上位マスタ装置が受信可能なデータ形式に変換し、この変換された上りデータを前記上りデータバッファ手段に格納し、この上りデータを前記論理スレーブ手段へ出力する中継手段と、前記中継手段からの下りデータを当該データの宛先の下位スレーブ装置へ送信し、また、下位スレーブ装置からの上りデータを受信して前記上りデータバッファ手段に格納する下位マスタ手段とを備えたことを特徴とする。   In order to achieve the above object, a gateway device according to claim 1 of the present invention is connected between an upper and lower communication network represented by a field network, and is connected to an upper master device and a lower network connected to the upper network. When transmitting and receiving downlink data from the higher-level master device to the lower-level slave device and the uplink data in the opposite direction with a plurality of lower-level slave devices connected, communication is performed by mutually converting data with different communication protocols. A plurality of address information corresponding to the addresses of the plurality of lower slave devices, receiving downlink data from the upper master device, and destination address information of the downlink data and the When the stored address information matches, the downstream data is fetched and the mismatch Logical slave means for discarding the downlink data and transmitting to the higher-order master device using a predetermined address for the uplink data from the plurality of lower-level slave devices as a transmission source address, and for storing the downlink data A data buffer means and an upstream data buffer means for storing the upstream data, and the downstream data from the logical slave means is converted into a data format that can be received by a lower-level slave device that is the transmission destination of the data. The downlink data is stored in the downlink data buffer means, and the uplink data is converted into a data format that can be received by the higher-level master device that is the transmission destination of the data, and the converted uplink data is converted into the uplink data buffer. Means for storing and outputting the upstream data to the logical slave means, and the relay Low-order master means for transmitting downstream data from the stage to the lower-level slave device that is the destination of the data, and receiving upstream data from the lower-order slave device and storing it in the upstream data buffer means, To do.

この構成によれば、ゲートウェイ装置によって、上位マスタ装置からの下りデータの宛先が下位ネットワークに存在するか否かを判断し、存在する場合のみに当該下りデータを相手先が受信可能に変換したのち一旦下り専用のバッファに格納して該当下位スレーブ装置へ送信する。また、下位スレーブ装置からの上りデータは、上位マスタ装置が受信可能に変換したのち一旦上り専用のバッファに格納して上位マスタ装置へ送信するようにした。つまり、ゲートウェイ装置が、下りデータにあっては宛先の有効無効を判定し、有効な下りデータと上りデータとで別々にプロトコル変換しながら格納して通信を行うので、上位マスタ装置は、標準的な通信手順に従って、複数の下位スレーブ装置とデータの送受信を行うことができる。   According to this configuration, the gateway device determines whether or not the destination of the downlink data from the higher-level master device exists in the lower-level network, and only converts the downlink data so that the other party can receive it when it exists. Once stored in the buffer dedicated to downlink, it is transmitted to the corresponding slave device. Further, the upstream data from the lower slave device is converted so that it can be received by the upper master device, and then temporarily stored in an upstream dedicated buffer and transmitted to the upper master device. In other words, the gateway device determines whether the destination is valid or invalid in the case of downlink data, and stores and communicates with valid downlink data and uplink data while separately converting the protocol. In accordance with an appropriate communication procedure, data can be transmitted / received to / from a plurality of lower slave devices.

また、本発明の請求項2によるゲートウェイ装置は、フィールドネットワークに代表される上位と下位の通信ネットワークの間に接続され、上位ネットワークに接続された上位マスタ装置と下位ネットワークに接続された複数の下位スレーブ装置との間で、上位マスタ装置から下位スレーブ装置へ向かう下りデータとその逆方向の上りデータとを送受信する際に、通信プロトコルが異なるデータを相互に変換して通信を可能にするゲートウェイ装置において、前記複数の下位スレーブ装置に対応する上位スレーブ装置のアドレス情報を個別及び2以上の何れかの状態で記憶しておき、前記上位マスタ装置からの下りデータの宛先アドレス情報と前記記憶されたアドレス情報とが一致する場合のみに当該下りデータを受信し、また、前記複数の下位スレーブ装置からの上りデータに予め定められたアドレスを送信元アドレスとして前記上位マスタ装置へ送信する複数の論理スレーブ手段と、前記下りデータを格納する下りデータバッファ手段及び前記上りデータを格納する上りデータバッファ手段を有し、前記複数の論理スレーブ手段からの下りデータを当該データの送信先である下位スレーブ装置が受信可能なデータ形式に変換し、この変換された下りデータを前記下りデータバッファ手段に格納し、また、前記上りデータを当該データの送信先である上位マスタ装置が受信可能なデータ形式に変換し、この変換された上りデータを前記上りデータバッファ手段に格納し、この上りデータを前記複数の論理スレーブ手段へ出力する中継手段と、前記中継手段からの下りデータを当該データの宛先の下位スレーブ装置へ送信し、また、下位スレーブ装置からの上りデータを受信して前記上りデータバッファ手段に格納する下位マスタ手段とを備えたことを特徴とする。   A gateway device according to claim 2 of the present invention is connected between an upper and lower communication network represented by a field network, and is connected to an upper master device connected to the upper network and a plurality of lower devices connected to the lower network. Gateway device that enables communication by mutually converting data having different communication protocols when transmitting and receiving downlink data from the upper master device to the lower slave device and uplink data in the opposite direction to and from the slave device The address information of the higher-level slave device corresponding to the plurality of lower-level slave devices is stored individually and in any of two or more states, and the destination address information of the downlink data from the higher-level master device and the stored The downlink data is received only when the address information matches, and the plurality of A plurality of logical slave means for transmitting the upstream address from the slave device as a source address to the higher-order master device, a downstream data buffer means for storing the downstream data, and an upstream for storing the upstream data Data buffer means, and converts the downlink data from the plurality of logical slave means into a data format that can be received by a lower-level slave device that is the transmission destination of the data, and converts the converted downlink data to the downlink data buffer means The upstream data is converted into a data format that can be received by the higher-level master device that is the transmission destination of the data, the converted upstream data is stored in the upstream data buffer means, and the upstream data is stored in the upstream data buffer means. Relay means for outputting to the plurality of logical slave means, and downlink data from the relay means Send to the lower slave device of the destination over data, further characterized in that a lower master unit that receives and stores the uplink data from the lower slave device to said uplink data buffer means.

この構成によれば、複数の論理スレーブ手段の内、上位マスタ装置からの下りデータ内の宛先アドレスに一致するアドレス情報が割り当てられている論理スレーブ手段のみが、その下りデータを受信し、この受信下りデータを相手先が受信可能に変換したのち一旦下り専用のバッファに格納して該当下位スレーブ装置へ送信する。また、下位スレーブ装置からの上りデータは、上位マスタ装置が受信可能に変換したのち一旦上り専用のバッファに格納して上位マスタ装置へ送信するようにした。つまり、ゲートウェイ装置が、下りデータにあっては宛先の有効無効を判定し、有効な下りデータと上りデータとで別々にプロトコル変換しながら格納して通信を行うので、上位マスタ装置は、標準的な通信手順に従って、複数の下位スレーブ装置とデータの送受信を行うことができる。   According to this configuration, among the plurality of logical slave means, only the logical slave means to which the address information matching the destination address in the downlink data from the higher-level master device is assigned receives the downlink data, and this reception After the downlink data is converted so that it can be received by the other party, it is temporarily stored in a buffer dedicated to downlink and transmitted to the corresponding slave device. Further, the upstream data from the lower slave device is converted so that it can be received by the upper master device, and then temporarily stored in an upstream dedicated buffer and transmitted to the upper master device. In other words, the gateway device determines whether the destination is valid or invalid in the case of downlink data, and stores and communicates with valid downlink data and uplink data while separately converting the protocol. In accordance with an appropriate communication procedure, data can be transmitted / received to / from a plurality of lower slave devices.

以上説明したように本発明によれば、上位マスタ装置が標準的な通信手順に従って複数の下位スレーブ装置との通信が行えるように中継可能とすることによって、伝送中継を行う上での制限を無くし、必要データの取捨選択に無駄な時間や処理を必要とすることを防止し、また、特別な上位アプリケーション作成による作成工数を不要とすることができるという効果がある。   As described above, according to the present invention, the upper master device can be relayed so that it can communicate with a plurality of lower slave devices in accordance with a standard communication procedure, thereby eliminating restrictions on transmission relay. Thus, it is possible to prevent unnecessary time and processing from being required for selection of necessary data, and to eliminate the need for creation man-hours by creating a special higher-level application.

以下、本発明の実施の形態を、図面を参照して説明する。但し、本明細書中の全図において相互に対応する部分には同一符号を付し、重複部分においては後述での説明を適時省略する。
(第1の実施の形態)
図1は、本発明の第1の実施の形態に係るゲートウェイ装置を用いたフィールドネットワークの構成を示すブロック図である。
図1に示すフィールドネットワーク20は、上位ネットワーク11と下位ネットワーク12との間に、本実施の形態の特徴要素であるゲートウェイ装置22が接続されて構成されている。また、上位ネットワーク11には、マスタ装置14の他に複数のスレーブ装置11−1〜11−3が接続されており、下位ネットワーク12には、複数のスレーブ装置12−1〜12−nが接続されている。なお、マスタ装置14は、上位マスタ装置14とも称す。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, parts corresponding to each other in all the drawings in this specification are denoted by the same reference numerals, and description of the overlapping parts will be omitted as appropriate.
(First embodiment)
FIG. 1 is a block diagram showing a configuration of a field network using a gateway device according to the first embodiment of the present invention.
A field network 20 shown in FIG. 1 is configured by connecting a gateway device 22, which is a characteristic element of the present embodiment, between an upper network 11 and a lower network 12. In addition to the master device 14, a plurality of slave devices 11-1 to 11-3 are connected to the upper network 11, and a plurality of slave devices 12-1 to 12-n are connected to the lower network 12. Has been. The master device 14 is also referred to as an upper master device 14.

ゲートウェイ装置22は、データの中継機能である中継機能部24と、上位ネットワーク11にとってスレーブ機能となる複数の論理スレーブ装置11−4〜11−6と、下位ネットワーク12にとってマスタ機能となる下位マスタ機能部26とを備えて構成されている。
本ゲートウェイ装置22では、上位マスタ装置14と当該ゲートウェイ装置22との間の通信を行う際に、上位ネットワーク11の標準的な通信手順に従って、必要なデータ量の通信を行うことを可能とした。
The gateway device 22 includes a relay function unit 24 that is a data relay function, a plurality of logical slave devices 11-4 to 11-6 that are slave functions for the upper network 11, and a lower master function that is a master function for the lower network 12. Part 26.
In the gateway device 22, communication between the upper master device 14 and the gateway device 22 can be performed according to a standard communication procedure of the upper network 11 to perform necessary data communication.

このため、物理的にはゲートウェイ装置22は1台であるが、図2に示すように、ゲートウェイ装置22内に、上位マスタ装置14が通信時にアクセスする論理スレーブ装置11−4〜11−6を論理デバイスによって論理的に複数構成した。
このように論理スレーブ装置11−4〜11−6を構成することによって、上位マスタ装置14からは複数のスレーブ装置と通信をしているように見えるが、実際には同一のゲートウェイ装置22が通信相手となっている状態となる。
For this reason, although there is physically one gateway device 22, as shown in FIG. 2, logical slave devices 11-4 to 11-6 that the upper master device 14 accesses during communication are included in the gateway device 22. Multiple logical devices are configured.
By configuring the logical slave devices 11-4 to 11-6 in this way, it appears that the higher-level master device 14 is communicating with a plurality of slave devices, but the same gateway device 22 actually communicates. Become a partner.

また、一般的に、上位マスタ装置14からの通信情報には、通信相手であるスレーブ装置11−4〜11−6を特定するためのアドレス情報又は局番情報が含まれている。
このことから、ゲートウェイ装置22において、下位のスレーブ装置12−1〜12−nに対応する論理スレーブ装置を特定するための複数のアドレス情報を記憶して管理し、上位マスタ装置14から受信した通信電文内の宛先アドレス情報と、その管理されているアドレス情報とを照合することで、その受信電文を取り込んで処理すべきか否かの判断を可能とし、その照合結果が一致して受信電文が有効であればそれを取り込んで処理するようにした。
In general, the communication information from the upper master device 14 includes address information or station number information for identifying the slave devices 11-4 to 11-6 that are communication partners.
Therefore, the gateway device 22 stores and manages a plurality of address information for specifying logical slave devices corresponding to the lower slave devices 12-1 to 12-n, and receives the communication received from the higher master device 14. By collating the destination address information in the message with the managed address information, it is possible to determine whether the received message should be captured and processed, and the matching result matches and the received message is valid If so, I took it in and processed it.

また、ゲートウェイ装置22の内部に論理デバイスで構成される複数の論理スレーブ装置11−4〜11−6と下位ネットワーク12のスレーブ装置12−1〜12−nとの対応は、1対1や1対nのように任意に定義可能となっている。この対応関係は、ゲートウェイ装置22内でのデータの中継機能部24で参照される。
また、1つの物理装置であるゲートウェイ装置22内に複数の論理スレーブ装置11−4〜11−6を実装する形態として、1つのネットワーク接続ポイントを有する構成と、複数のネットワーク接続ポイントを有する構成とがある。
Further, the correspondence between the plurality of logical slave devices 11-4 to 11-6 configured by logical devices in the gateway device 22 and the slave devices 12-1 to 12-n of the lower network 12 is one-to-one or one. It can be arbitrarily defined as in n. This correspondence is referred to by the data relay function unit 24 in the gateway device 22.
In addition, as a form in which a plurality of logical slave devices 11-4 to 11-6 are mounted in a gateway device 22 that is one physical device, a configuration having one network connection point and a configuration having a plurality of network connection points There is.

第1の実施の形態のゲートウェイ装置22は、1つのネットワーク接続ポイントを有する構成である。この構成のゲートウェイ装置22は、LSI(Large Scale Integrated circuit)等によって構成され、図3に示すように、複数の論理スレーブ装置11−4〜11−6を、ネットワーク接続ユニット28と、アドレス判定機能部29と、論理スレーブアドレス管理部30と、上り送信機能部31とを備えて構成している。   The gateway device 22 according to the first embodiment is configured to have one network connection point. The gateway device 22 having this configuration is configured by an LSI (Large Scale Integrated circuit) or the like, and as shown in FIG. 3, a plurality of logical slave devices 11-4 to 11-6 are connected to the network connection unit 28 and an address determination function. A unit 29, a logical slave address management unit 30, and an upstream transmission function unit 31 are provided.

ネットワーク接続ユニット28は、上位ネットワーク11に回線接続されており、上位マスタ装置14と通信を行うものである。この例では、上位マスタ装置14からの電文を全て受信できる設定としている。
論理スレーブアドレス管理部30は、下位ネットワーク12の各々のスレーブ装置12−1〜12−nのアドレスに対応する論理スレーブアドレスA1〜Anを記憶して管理するものである。
The network connection unit 28 is connected to the upper network 11 and communicates with the upper master device 14. In this example, all the messages from the upper master device 14 are set to be received.
The logical slave address management unit 30 stores and manages the logical slave addresses A1 to An corresponding to the addresses of the slave devices 12-1 to 12-n of the lower network 12.

アドレス判定機能部29は、ネットワーク接続ユニット28で受信された上位マスタ装置14からの受信電文内の宛先アドレスを、論理スレーブアドレス管理部30で管理されている論理スレーブアドレスA1〜Anと比較し、これらの何れかのアドレスと一致していれば受信電文を中継機能部24へ出力し、一致していなければ受信電文を破棄し、次の電文受信状態となる。   The address determination function unit 29 compares the destination address in the received message from the higher-level master device 14 received by the network connection unit 28 with the logical slave addresses A1 to An managed by the logical slave address management unit 30, If it matches with any one of these addresses, the received message is output to the relay function unit 24, and if not, the received message is discarded and the next message reception state is entered.

中継機能部24は、下位ネットワーク12の各々のスレーブ装置12−1〜12−nに対応する数の下りデータバッファ33−1〜33−nと上りデータバッファ34−1〜34−nとを備え、アドレス判定機能部29から入力された受信電文を、当該電文の送信先である下位ネットワーク12のスレーブ装置が受信可能なデータ形式に変換し、この下り電文を対応する下りデータバッファ33−1〜33−nの何れかに格納する。この格納された下り電文は、下位マスタ機能部26によって対応する下位のスレーブ装置12−1〜12−nへ送信される。   The relay function unit 24 includes a number of downlink data buffers 33-1 to 33-n and uplink data buffers 34-1 to 34-n corresponding to the slave devices 12-1 to 12-n of the lower network 12. The received message input from the address determination function unit 29 is converted into a data format that can be received by the slave device of the lower-level network 12 that is the transmission destination of the message, and the downlink message is converted to the corresponding downlink data buffer 33-1 to 33-1. Store in any of 33-n. The stored downlink telegram is transmitted by the lower master function unit 26 to the corresponding lower slave devices 12-1 to 12-n.

また、中継機能部24は、下位マスタ機能部26によって受信される下位のスレーブ装置12−1〜12−nからの上り電文を、上位マスタ装置14が受信可能なデータ形式に変換し、この上り電文を対応する上りデータバッファ34−1〜34−nに格納する。
上り送信機能部31は、上りデータバッファ34−1〜34−nに格納された上り電文に、当該上り電文の送信元アドレスとして論理スレーブ装置に割り当てられているアドレスを設定し、この上り電文をネットワーク接続ユニット28を介して上位マスタ装置14へ送信する。
Further, the relay function unit 24 converts the upstream telegrams from the lower slave devices 12-1 to 12-n received by the lower master function unit 26 into a data format that can be received by the upper master device 14, and this upstream The telegram is stored in the corresponding upstream data buffers 34-1 to 34-n.
The uplink transmission function unit 31 sets the address assigned to the logical slave device as the source address of the uplink message in the uplink message stored in the uplink data buffers 34-1 to 34-n, The data is transmitted to the upper master device 14 via the network connection unit 28.

このような構成のフィールドネットワーク20におけるゲートウェイ装置22の下り電文と上り電文との中継動作を、図4に示すフローチャートを参照して説明する。但し、下位ネットワーク12の各スレーブ装置12−1〜12−nに対応する論理スレーブはアドレスA1〜Anであるとする。
まず、上位マスタ装置14から宛先アドレスA1が付けられた下り電文が送信されたとする。この下り電文は、ステップS1において、ゲートウェイ装置22のネットワーク接続ユニット28で受信され、アドレス判定機能部29へ出力される。
The relay operation between the downlink message and the uplink message of the gateway device 22 in the field network 20 having such a configuration will be described with reference to the flowchart shown in FIG. However, it is assumed that logical slaves corresponding to the slave devices 12-1 to 12-n of the lower network 12 are addresses A1 to An.
First, it is assumed that a downstream message with a destination address A1 is transmitted from the upper master device 14. This downlink message is received by the network connection unit 28 of the gateway device 22 and output to the address determination function unit 29 in step S1.

ステップS2において、アドレス判定機能部29では、その受信下り電文内の宛先アドレスA1が、論理スレーブアドレス管理部30で管理されている論理スレーブアドレスA1〜Anと比較され、ステップS3において、それら論理スレーブアドレスRA1〜RAnの何れかと一致しているか否かが判定される。
不一致であれば、ステップS4において、その受信下り電文は破棄され、次の電文受信状態となる。この場合、上記ステップS1に戻る。
In step S2, the address determination function unit 29 compares the destination address A1 in the received downlink message with the logical slave addresses A1 to An managed by the logical slave address management unit 30, and in step S3, these logical slaves It is determined whether it matches any of the addresses RA1 to RAn.
If they do not match, in step S4, the received downlink message is discarded and the next message reception state is entered. In this case, the process returns to step S1.

一致していれば、ステップS5において、その受信下り電文が中継機能部24へ出力される。そして、中継機能部24において、そのアドレス判定機能部29から入力された受信下り電文が、当該下り電文の送信先である下位のスレーブ装置12−1が受信可能なデータ形式に変換され、この下り電文が対応する下りデータバッファ33−1に格納される。この格納された下り電文は、ステップS6において、下位マスタ機能部26によって下り電文内の宛先アドレスA1に該当する下位のスレーブ装置12−1へ送信される。   If they match, the received downlink message is output to the relay function unit 24 in step S5. Then, in the relay function unit 24, the received downlink message input from the address determination function unit 29 is converted into a data format that can be received by the lower slave device 12-1 that is the transmission destination of the downlink message. The telegram is stored in the corresponding downlink data buffer 33-1. In step S6, the stored downstream message is transmitted to the lower slave device 12-1 corresponding to the destination address A1 in the downstream message by the lower master function unit 26.

スレーブ装置12−1では、下り電文が受信されると、当該電文に従った処理が行われ、この処理に応じた応答電文がゲートウェイ装置22へ送信される。
この送信された上りの応答電文は、ステップS7において、下位マスタ機能部26によって受信され、中継機能部24へ出力される。そして、中継機能部24において、その応答電文が上位マスタ装置14が受信可能なデータ形式に変換され、この応答電文が対応する上りデータバッファ34−1に格納される。
In the slave device 12-1, when a downstream message is received, processing according to the message is performed, and a response message corresponding to this processing is transmitted to the gateway device 22.
The transmitted uplink response message is received by the lower master function unit 26 and output to the relay function unit 24 in step S7. Then, in the relay function unit 24, the response message is converted into a data format that can be received by the upper master device 14, and the response message is stored in the corresponding upstream data buffer 34-1.

ステップS8において、その格納された応答電文は、上り送信機能部31へ入力され、この応答電文の送信元アドレスとして論理スレーブ装置に割り当てられているアドレスが設定される。そして、その応答電文がネットワーク接続ユニット28を介して上位マスタ装置14へ送信される。
このような第1の実施の形態のゲートウェイ装置22をフィールドネットワーク20に用いれば、上位マスタ装置14からの下り電文の宛先が下位ネットワーク12に存在するか否かを判断し、存在する場合のみに当該下り電文を相手先が受信可能に変換したのち一旦下り専用の下りデータバッファ33−1〜33−nに格納して該当下位のスレーブ装置12−1〜12−nへ送信する。また、下位のスレーブ装置12−1〜12−nからの上り電文は、上位マスタ装置14が受信可能に変換したのち一旦上り専用の上りデータバッファ34−1〜34−nに格納して上位マスタ装置14へ送信するようにした。
In step S8, the stored response message is input to the uplink transmission function unit 31, and the address assigned to the logical slave device is set as the transmission source address of this response message. Then, the response message is transmitted to the upper master device 14 via the network connection unit 28.
If such a gateway device 22 of the first embodiment is used for the field network 20, it is determined whether or not the destination of the downlink message from the upper master device 14 exists in the lower network 12, and only when it exists. After the destination telegram is converted to be receivable by the other party, it is temporarily stored in the downlink data buffers 33-1 to 33-n dedicated to the downlink and transmitted to the corresponding slave devices 12-1 to 12-n. Further, the upstream messages from the lower slave devices 12-1 to 12-n are converted into receivable by the upper master device 14, and then temporarily stored in the upstream data buffers 34-1 to 34-n dedicated to the upstream. It was made to transmit to the apparatus 14.

つまり、ゲートウェイ装置22が、下り電文にあっては宛先の有効無効を判定し、有効な下り電文と上り電文とで別々にプロトコル変換しながら格納して通信を行うので、上位マスタ装置14は、標準的な通信手順に従って、複数の下位のスレーブ装置12−1〜12−nとデータの送受信を行うことができる。
つまり、上位マスタ装置14のアプリケーションプログラムにて特別な処理を必要とすることなく下位ネットワーク12の各スレーブ装置12−1〜12−nとの間でデータの入出力が可能となる。また、データ交換のデータ量についても特別な制限がなくなりゲートウェイ装置22内でのスレーブデータの取捨選択の必要がなくなり、その分効率化及び信頼性の向上を図ることができる。
In other words, the gateway device 22 determines whether the destination is valid / invalid in the downlink message, and stores and communicates while converting the protocol separately for the valid downlink message and the uplink message. According to a standard communication procedure, data can be transmitted / received to / from a plurality of slave devices 12-1 to 12-n.
That is, data can be input / output between the slave devices 12-1 to 12-n of the lower network 12 without requiring any special processing by the application program of the upper master device 14. In addition, there is no special restriction on the data amount for data exchange, and there is no need to select slave data in the gateway device 22, thereby improving efficiency and reliability.

更には、既存設備と新システムとの接続の場面では、従来の下位ネットワークのマスタ装置で動作していたアプリケーションプログラムが新システムにおいても同様に動作可能となるので、そのままプログラムを使用することができる。
従って、上位マスタ装置14と複数のスレーブ装置12−1〜12−nとの伝送中継を行う上での制限を無くし、必要データの取捨選択に無駄な時間や処理を必要とすることを防止し、また、特別な上位アプリケーション作成による作成工数を不要とすることができる。
Furthermore, in the situation of connection between the existing equipment and the new system, the application program that has been operating on the conventional master device of the lower level network can be operated in the same way on the new system, so the program can be used as it is. .
Therefore, there is no restriction in performing transmission relay between the higher-level master device 14 and the plurality of slave devices 12-1 to 12-n, and it is possible to prevent useless time and processing for selecting necessary data. Also, it is possible to eliminate the man-hours for creating a special upper application.

(第2の実施の形態)
図5は、本発明の第2の実施の形態に係るゲートウェイ装置の構成を示すブロック図である。
図5に示すゲートウェイ装置42は、上述したように1つの物理装置であるゲートウェイ装置内に複数の論理スレーブ装置11−4〜11−6を実装する形態として、複数のネットワーク接続ポイントを有する構成を適用したものである。
即ち、論理スレーブ装置11−4〜11−6の個々に対応するネットワーク接続ポイントを有する構成であり、各ポイントとして図5に示すように、ネットワーク接続ユニット44−1,44−2,44−3,…を備えた。
(Second Embodiment)
FIG. 5 is a block diagram showing the configuration of the gateway device according to the second embodiment of the present invention.
The gateway device 42 shown in FIG. 5 has a configuration having a plurality of network connection points as a form in which a plurality of logical slave devices 11-4 to 11-6 are mounted in a gateway device which is one physical device as described above. It is applied.
In other words, each of the logical slave devices 11-4 to 11-6 has a network connection point corresponding to each of the logical slave devices 11-4 to 11-6. As shown in FIG. , ... provided.

この例では、各ネットワーク接続ユニット44−1,44−2,44−3,…は、下位ネットワーク12の各スレーブ装置12−1〜12−nに1対1で対応付けられているとする。なお、1対nの場合は、1つのネットワーク接続ユニット44−1に、例えば5つの下位ネットワーク12のスレーブ装置が対応付けられていることになる。
従って本例では、各ネットワーク接続ユニット44−1,44−2,44−3,…には、下位の各スレーブ装置12−1〜12−nのアドレスに対応する論理スレーブアドレスA1〜Anが割り当てられて記憶されている。
In this example, it is assumed that each network connection unit 44-1, 44-2, 44-3,... Is associated with each slave device 12-1 to 12-n of the lower network 12 on a one-to-one basis. In the case of 1: n, for example, five slave devices of the lower network 12 are associated with one network connection unit 44-1.
Accordingly, in this example, each of the network connection units 44-1, 44-2, 44-3,... Is assigned logical slave addresses A1 to An corresponding to the addresses of the slave devices 12-1 to 12-n. Is remembered.

また、ネットワーク接続ユニット44−1,44−2,44−3,…は、上位ネットワーク11に回線接続されており、上位マスタ装置14と通信を行い、この際、上位マスタ装置14からの下り電文内の宛先アドレスに一致する論理スレーブアドレスA1〜Anが割り当てられているネットワーク接続ユニットのみが、その下り電文を受信して中継機能部24へ出力する。一致する論理スレーブアドレスA1〜Anがなければ下り電文は受信されず、各ネットワーク接続ユニット44−1,44−2,44−3,…は、次の下り電文受信状態となる。   The network connection units 44-1, 44-2, 44-3,... Are connected to the upper network 11 and communicate with the upper master device 14. At this time, the downstream message from the upper master device 14 is transmitted. Only the network connection unit to which logical slave addresses A1 to An that match the destination address in the network are assigned receives the downstream message and outputs it to the relay function unit 24. If there is no matching logical slave address A1 to An, the downlink message is not received, and each of the network connection units 44-1, 44-2, 44-3,... Enters the next downlink message reception state.

中継機能部24は、下位ネットワーク12の各々のスレーブ装置12−1〜12−nに対応する数の下りデータバッファ33−1〜33−nと上りデータバッファ34−1〜34−nとを備え、ネットワーク接続ユニット44−1,44−2,44−3,…から入力された受信電文を、当該電文の送信先である下位ネットワーク12のスレーブ装置が受信可能なデータ形式に変換し、この下り電文を下りデータバッファ33−1〜33−nの対応するバッファに格納する。この格納された下り電文は、下位マスタ機能部26によって対応する下位のスレーブ装置12−1〜12−nの何れかへ送信される。   The relay function unit 24 includes a number of downlink data buffers 33-1 to 33-n and uplink data buffers 34-1 to 34-n corresponding to the slave devices 12-1 to 12-n of the lower network 12. , The received telegram input from the network connection units 44-1, 44-2, 44-3,... Is converted into a data format that can be received by the slave device of the lower level network 12 that is the transmission destination of the telegram. The telegram is stored in the corresponding buffer of the downlink data buffers 33-1 to 33-n. The stored downlink message is transmitted to any one of the corresponding slave devices 12-1 to 12-n by the lower master function unit 26.

また、中継機能部24は、下位マスタ機能部26によって受信される下位のスレーブ装置12−1〜12−nからの上り電文を、上位マスタ装置14が受信可能なデータ形式に変換し、この上り電文を上りデータバッファ34−1〜34−nの対応するバッファに格納し、この格納された上り電文に、当該上り電文の送信元アドレスとして何れかのスレーブアドレスA1,A2,A3,…を設定し、この上り電文を対応するネットワーク接続ユニット44−1,44−2,44−3,…を介して上位マスタ装置14へ送信する。   Further, the relay function unit 24 converts the upstream telegrams from the lower slave devices 12-1 to 12-n received by the lower master function unit 26 into a data format that can be received by the upper master device 14, and this upstream The message is stored in the corresponding buffer of the uplink data buffers 34-1 to 34-n, and any one of the slave addresses A1, A2, A3,... Is set as the source address of the uplink message in the stored uplink message. The upstream message is transmitted to the upper master device 14 via the corresponding network connection units 44-1, 44-2, 44-3,.

このような構成のゲートウェイ装置42による下り電文と上り電文との中継動作を、図6に示すフローチャートを参照して説明する。
まず、上位マスタ装置14から宛先アドレスA1が付けられた下り電文が送信されたとする。この際、ステップS11において、ゲートウェイ装置22にて、その下り電文内の宛先アドレスA1に一致する論理スレーブアドレスA1が割り当てられているネットワーク接続ユニット44−1のみが、その下り電文を受信して中継機能部24へ出力する。なお、一致する論理スレーブアドレスA1がなければ下り電文は受信されず、各ネットワーク接続ユニット44−1,44−2,44−3,…は、次の下り電文受信状態となる。
The relay operation between the downlink message and the uplink message by the gateway device 42 having such a configuration will be described with reference to the flowchart shown in FIG.
First, it is assumed that a downstream message with a destination address A1 is transmitted from the upper master device 14. At this time, in step S11, only the network connection unit 44-1 to which the logical slave address A1 that matches the destination address A1 in the downlink message is received and relayed by the gateway device 22 is received. Output to the function unit 24. If there is no matching logical slave address A1, the downlink message is not received, and each network connection unit 44-1, 44-2, 44-3,... Enters the next downlink message reception state.

次に、ステップS12において、中継機能部24にて、その入力された受信下り電文が、当該下り電文の送信先である下位のスレーブ装置12−1が受信可能なデータ形式に変換され、この下り電文が対応する下りデータバッファ33−1に格納される。この格納された下り電文は、ステップS13において、下位マスタ機能部26によって下り電文内の宛先アドレスA1に該当する下位のスレーブ装置12−1へ送信される。   In step S12, the relay function unit 24 converts the received received downlink message into a data format that can be received by the lower slave device 12-1 that is the transmission destination of the downlink message. The telegram is stored in the corresponding downlink data buffer 33-1. In step S13, the stored downstream telegram is transmitted by the lower master function unit 26 to the lower slave device 12-1 corresponding to the destination address A1 in the downstream telegram.

スレーブ装置12−1では、下り電文が受信されると、当該電文に従った処理が行われ、この処理に応じた応答電文がゲートウェイ装置22へ送信される。
この送信された上りの応答電文は、ステップS14において、下位マスタ機能部26によって受信され、中継機能部24へ出力される。そして、中継機能部24において、その応答電文が上位マスタ装置14が受信可能なデータ形式に変換され、この応答電文が対応する上りデータバッファ34−1に格納される。
その格納された応答電文は、ステップS15において、中継機能部24にて、その応答電文の送信元アドレスとして論理スレーブ装置に割り当てられているアドレスが設定され、ネットワーク接続ユニット44−1を介して上位マスタ装置14へ送信される。
In the slave device 12-1, when a downstream message is received, processing according to the message is performed, and a response message corresponding to this processing is transmitted to the gateway device 22.
The transmitted uplink response message is received by the lower master function unit 26 and output to the relay function unit 24 in step S14. Then, in the relay function unit 24, the response message is converted into a data format that can be received by the upper master device 14, and the response message is stored in the corresponding upstream data buffer 34-1.
In step S15, the stored response message is set in the relay function unit 24 by the relay function unit 24 as an address assigned to the logical slave device as the transmission source address of the response message. It is transmitted to the master device 14.

このような第2の実施の形態のゲートウェイ装置42をフィールドネットワークに用いれば、
複数の論理スレーブ手段であるネットワーク接続ユニット44−1,44−2,44−3,…の内、上位マスタ装置14からの下り電文内の宛先アドレスに一致するアドレス情報が割り当てられているネットワーク接続ユニット44−1のみが、その下り電文を受信し、この受信下り電文を相手先が受信可能に変換したのち一旦下り専用の下りデータバッファ33−1〜33−nに格納して該当下位のスレーブ装置12−1〜12−nへ送信する。また、下位のスレーブ装置12−1〜12−nからの上り電文は、上位マスタ装置14が受信可能に変換したのち一旦上り専用の上りデータバッファ34−1〜34−nに格納して上位マスタ装置14へ送信するようにした。
If such a gateway device 42 of the second embodiment is used in a field network,
Network connection to which address information matching the destination address in the downlink message from the higher-level master device 14 is assigned among the plurality of network connection units 44-1, 44-2, 44-3,. Only the unit 44-1 receives the downlink message, converts the received downlink message so that the other party can receive it, temporarily stores it in the downlink data buffers 33-1 to 33-n dedicated to downlink, and stores the corresponding lower slave. Transmit to devices 12-1 to 12-n. Further, the upstream messages from the lower slave devices 12-1 to 12-n are converted into receivable by the upper master device 14, and then temporarily stored in the upstream data buffers 34-1 to 34-n dedicated to the upstream. It was made to transmit to the apparatus 14.

つまり、第2の実施の形態のゲートウェイ装置42においても、上記第1のゲートウェイ装置22と同様に、下り電文にあっては宛先の有効無効を判定し、有効な下り電文と上り電文とで別々にプロトコル変換しながら格納して通信を行うので、上位マスタ装置14は、標準的な通信手順に従って、複数の下位のスレーブ装置12−1〜12−nとデータの送受信を行うことができる。   That is, also in the gateway device 42 of the second embodiment, as in the first gateway device 22 described above, the validity of the destination is determined in the downlink message, and the valid downlink message and the uplink message are separately determined. Therefore, the upper master device 14 can perform data transmission / reception with a plurality of lower slave devices 12-1 to 12-n according to a standard communication procedure.

つまり、上位マスタ装置14のアプリケーションプログラムにて特別な処理を必要とすることなく下位ネットワーク12の各スレーブ装置12−1〜12−nとの間でデータの入出力が可能となる。また、データ交換のデータ量についても特別な制限がなくなりゲートウェイ装置22内でのスレーブデータの取捨選択の必要がなくなり、その分効率化及び信頼性の向上を図ることができる。   That is, data can be input / output between the slave devices 12-1 to 12-n of the lower network 12 without requiring any special processing by the application program of the upper master device 14. In addition, there is no special restriction on the data amount for data exchange, and there is no need to select slave data in the gateway device 22, thereby improving efficiency and reliability.

更には、ゲートウェイ装置42の複数の論理スレーブ装置11−4〜11−6と下位ネットワーク12の各スレーブ装置12−1〜12−nとを1:1に対応付ける場合においては、上位マスタ装置14からは、下位スレーブデータが仮想的な上位スレーブデータに対応することになり、入出力データの他にも下位ネットワーク12の各スレーブ装置12−1〜12−nの状態情報も認識することが可能となる。
従って、上位マスタ装置14と複数のスレーブ装置12−1〜12−nとの伝送中継を行う上での制限を無くし、必要データの取捨選択に無駄な時間や処理を必要とすることを防止し、また、特別な上位アプリケーション作成による作成工数を不要とすることができる。
Further, when the plurality of logical slave devices 11-4 to 11-6 of the gateway device 42 and the slave devices 12-1 to 12-n of the lower network 12 are associated with each other 1: 1, the upper master device 14 The lower slave data corresponds to the virtual upper slave data, and in addition to the input / output data, the status information of each slave device 12-1 to 12-n of the lower network 12 can be recognized. Become.
Therefore, there is no restriction in performing transmission relay between the upper master device 14 and the plurality of slave devices 12-1 to 12-n, and it is possible to prevent useless time and processing for selection of necessary data. Also, it is possible to eliminate the man-hours for creating a special upper application.

本発明の第1の実施の形態に係るゲートウェイ装置を用いたフィールドネットワークの構成を示すブロック図である。It is a block diagram which shows the structure of the field network using the gateway apparatus which concerns on the 1st Embodiment of this invention. 本発明においてゲートウェイ装置内に構成される複数の論理スレーブ装置を説明するためのブロック図である。It is a block diagram for demonstrating the some logical slave apparatus comprised in a gateway apparatus in this invention. 第1の実施の形態に係るゲートウェイ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the gateway apparatus which concerns on 1st Embodiment. 第1の実施の形態に係るゲートウェイ装置による下り電文と上り電文との中継動作を説明するためのフローチャートである。It is a flowchart for demonstrating the relay operation | movement of the down message | telegram and the uplink message | telegram by the gateway apparatus which concerns on 1st Embodiment. 本発明の第2の実施の形態に係るゲートウェイ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the gateway apparatus which concerns on the 2nd Embodiment of this invention. 第2の実施の形態に係るゲートウェイ装置による下り電文と上り電文との中継動作を説明するためのフローチャートである。It is a flowchart for demonstrating the relay operation | movement of the down message | telegram and the up message | telegram by the gateway apparatus which concerns on 2nd Embodiment. 従来のゲートウェイ装置を用いたフィールドネットワークの構成を示すブロック図である。It is a block diagram which shows the structure of the field network using the conventional gateway apparatus.

符号の説明Explanation of symbols

11 上位ネットワーク
11−1〜11−3 上位のスレーブ装置
12 下位ネットワーク
12−1〜12−n 下位のスレーブ装置
14 上位マスタ装置
11−4〜11−6 論理スレーブ装置
20 フィールドネットワーク
22,42 ゲートウェイ装置
24 中継機能部
26 下位マスタ機能部
28 ネットワーク接続ユニット
29 アドレス判定機能部
30 論理スレーブアドレス管理部
31 上り送信機能部
33−1〜33−n 下りデータバッファ
34−1〜34−n 上りデータバッファ
44−1,44−2,44−3 ネットワーク接続ユニット
DESCRIPTION OF SYMBOLS 11 Upper network 11-1 to 11-3 Upper slave apparatus 12 Lower network 12-1 to 12-n Lower slave apparatus 14 Upper master apparatus 11-4 to 11-6 Logical slave apparatus 20 Field network 22, 42 Gateway apparatus 24 relay function unit 26 lower master function unit 28 network connection unit 29 address determination function unit 30 logical slave address management unit 31 uplink transmission function unit 33-1 to 33-n downlink data buffer 34-1 to 34-n uplink data buffer 44 -1,44-2,44-3 Network connection unit

Claims (2)

フィールドネットワークに代表される上位と下位の通信ネットワークの間に接続され、上位ネットワークに接続された上位マスタ装置と下位ネットワークに接続された複数の下位スレーブ装置との間で、上位マスタ装置から下位スレーブ装置へ向かう下りデータとその逆方向の上りデータとを送受信する際に、通信プロトコルが異なるデータを相互に変換して通信を可能にするゲートウェイ装置において、
前記複数の下位スレーブ装置のアドレスに対応する複数のアドレス情報を記憶しておき、前記上位マスタ装置からの下りデータを受信し、この下りデータの宛先アドレス情報と前記記憶されたアドレス情報とが一致する際に当該下りデータを取り込み、不一致の際に当該下りデータを破棄し、また、前記複数の下位スレーブ装置からの上りデータに予め定められたアドレスを送信元アドレスとして前記上位マスタ装置へ送信する論理スレーブ手段と、
前記下りデータを格納する下りデータバッファ手段及び前記上りデータを格納する上りデータバッファ手段を有し、前記論理スレーブ手段からの下りデータを当該データの送信先である下位スレーブ装置が受信可能なデータ形式に変換し、この変換された下りデータを前記下りデータバッファ手段に格納し、また、前記上りデータを当該データの送信先である上位マスタ装置が受信可能なデータ形式に変換し、この変換された上りデータを前記上りデータバッファ手段に格納し、この上りデータを前記論理スレーブ手段へ出力する中継手段と、
前記中継手段からの下りデータを当該データの宛先の下位スレーブ装置へ送信し、また、下位スレーブ装置からの上りデータを受信して前記上りデータバッファ手段に格納する下位マスタ手段と
を備えたことを特徴とするゲートウェイ装置。
Connected between the upper and lower communication networks represented by the field network, and between the upper master device connected to the upper network and a plurality of lower slave devices connected to the lower network, from the upper master device to the lower slave In the gateway device that enables communication by mutually converting data with different communication protocols when transmitting and receiving downlink data directed to the device and uplink data in the opposite direction,
A plurality of address information corresponding to the addresses of the plurality of lower slave devices are stored, downlink data from the higher master device is received, and the destination address information of the downlink data matches the stored address information The downstream data is taken in when the data does not match, and the downstream data is discarded when there is a mismatch. The upstream data from the plurality of lower slave devices is transmitted to the higher master device as a source address. Logical slave means;
A data format having a downlink data buffer means for storing the downlink data and an uplink data buffer means for storing the uplink data, and capable of receiving the downlink data from the logical slave means by the lower-level slave device that is the transmission destination of the data And the converted downlink data is stored in the downlink data buffer means, and the uplink data is converted into a data format that can be received by the higher-level master device that is the transmission destination of the data. Relay means for storing upstream data in the upstream data buffer means and outputting the upstream data to the logical slave means;
Low-order master means for transmitting downstream data from the relay means to a lower-level slave device that is the destination of the data, and receiving upstream data from the lower-order slave device and storing it in the upstream data buffer means. A gateway device characterized.
フィールドネットワークに代表される上位と下位の通信ネットワークの間に接続され、上位ネットワークに接続された上位マスタ装置と下位ネットワークに接続された複数の下位スレーブ装置との間で、上位マスタ装置から下位スレーブ装置へ向かう下りデータとその逆方向の上りデータとを送受信する際に、通信プロトコルが異なるデータを相互に変換して通信を可能にするゲートウェイ装置において、
前記複数の下位スレーブ装置に対応する上位スレーブ装置のアドレス情報を個別及び2以上の何れかの状態で記憶しておき、前記上位マスタ装置からの下りデータの宛先アドレス情報と前記記憶されたアドレス情報とが一致する場合のみに当該下りデータを受信し、また、前記複数の下位スレーブ装置からの上りデータに予め定められたアドレスを送信元アドレスとして前記上位マスタ装置へ送信する複数の論理スレーブ手段と、
前記下りデータを格納する下りデータバッファ手段及び前記上りデータを格納する上りデータバッファ手段を有し、前記複数の論理スレーブ手段からの下りデータを当該データの送信先である下位スレーブ装置が受信可能なデータ形式に変換し、この変換された下りデータを前記下りデータバッファ手段に格納し、また、前記上りデータを当該データの送信先である上位マスタ装置が受信可能なデータ形式に変換し、この変換された上りデータを前記上りデータバッファ手段に格納し、この上りデータを前記複数の論理スレーブ手段へ出力する中継手段と、
前記中継手段からの下りデータを当該データの宛先の下位スレーブ装置へ送信し、また、下位スレーブ装置からの上りデータを受信して前記上りデータバッファ手段に格納する下位マスタ手段と
を備えたことを特徴とするゲートウェイ装置。
Connected between the upper and lower communication networks represented by the field network, and between the upper master device connected to the upper network and a plurality of lower slave devices connected to the lower network, from the upper master device to the lower slave In the gateway device that enables communication by mutually converting data with different communication protocols when transmitting and receiving downlink data directed to the device and uplink data in the opposite direction,
The address information of the upper slave device corresponding to the plurality of lower slave devices is stored individually and in any of two or more states, and the destination address information of the downlink data from the upper master device and the stored address information A plurality of logical slave means for receiving the downlink data only when the two coincide with each other, and transmitting a predetermined address to the upstream data from the plurality of lower slave devices to the upper master device as a source address; ,
It has a downlink data buffer means for storing the downlink data and an uplink data buffer means for storing the uplink data, and the slave data that is the transmission destination of the data can receive the downlink data from the plurality of logical slave means The data is converted into a data format, the converted downlink data is stored in the downlink data buffer means, and the uplink data is converted into a data format that can be received by the higher-level master device that is the transmission destination of the data. Relaying means for storing the uplink data thus stored in the uplink data buffer means and outputting the uplink data to the plurality of logical slave means;
Low-order master means for transmitting downstream data from the relay means to a lower-level slave device that is the destination of the data, and receiving upstream data from the lower-order slave device and storing it in the upstream data buffer means. A gateway device characterized.
JP2004221928A 2004-07-29 2004-07-29 Gateway device Pending JP2006042164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004221928A JP2006042164A (en) 2004-07-29 2004-07-29 Gateway device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004221928A JP2006042164A (en) 2004-07-29 2004-07-29 Gateway device

Publications (1)

Publication Number Publication Date
JP2006042164A true JP2006042164A (en) 2006-02-09

Family

ID=35906634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004221928A Pending JP2006042164A (en) 2004-07-29 2004-07-29 Gateway device

Country Status (1)

Country Link
JP (1) JP2006042164A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010147688A (en) * 2008-12-17 2010-07-01 Tokai Rika Co Ltd Communication system for vehicle
WO2012144537A1 (en) * 2011-04-19 2012-10-26 三菱電機株式会社 Network analysis assistance device, network assessment device, network analysis assistance method, network assessment method, network analysis assistance programme and network assessment programme
JP2014175828A (en) * 2013-03-08 2014-09-22 Mitsubishi Electric Corp Gateway device and information gathering system
KR20160091258A (en) 2015-01-23 2016-08-02 미쓰비시 덴키 빌딩 테크노 서비스 가부시키 가이샤 Relay apparatus and data communication system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08149544A (en) * 1994-11-17 1996-06-07 Hitachi Ltd Radio communication system
JP2000214913A (en) * 1999-01-21 2000-08-04 Olympus Optical Co Ltd Distributed production facilities control system
JP2001268125A (en) * 2000-03-23 2001-09-28 Nippon Telegr & Teleph Corp <Ntt> Selective vpn connection gateway, and communication method using the gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08149544A (en) * 1994-11-17 1996-06-07 Hitachi Ltd Radio communication system
JP2000214913A (en) * 1999-01-21 2000-08-04 Olympus Optical Co Ltd Distributed production facilities control system
JP2001268125A (en) * 2000-03-23 2001-09-28 Nippon Telegr & Teleph Corp <Ntt> Selective vpn connection gateway, and communication method using the gateway

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010147688A (en) * 2008-12-17 2010-07-01 Tokai Rika Co Ltd Communication system for vehicle
WO2012144537A1 (en) * 2011-04-19 2012-10-26 三菱電機株式会社 Network analysis assistance device, network assessment device, network analysis assistance method, network assessment method, network analysis assistance programme and network assessment programme
CN103493437A (en) * 2011-04-19 2014-01-01 三菱电机株式会社 Network analysis assistance device, network assessment device, network analysis assistance method, network assessment method, network analysis assistance programme and network assessment program
JP5420112B2 (en) * 2011-04-19 2014-02-19 三菱電機株式会社 Network analysis support device, network test device, network analysis support method, network test method, network analysis support program, and network test program
US9660894B2 (en) 2011-04-19 2017-05-23 Mitsubishi Electric Corporation Network analysis assistance device, network assessment device, network analysis assistance method, network assessment method, network analysis assistance program and network assessment program
JP2014175828A (en) * 2013-03-08 2014-09-22 Mitsubishi Electric Corp Gateway device and information gathering system
KR20160091258A (en) 2015-01-23 2016-08-02 미쓰비시 덴키 빌딩 테크노 서비스 가부시키 가이샤 Relay apparatus and data communication system

Similar Documents

Publication Publication Date Title
US7719961B2 (en) Industrial ethernet communications adapter
US7668994B2 (en) Method for optimizing bandwidth utilization in bus systems
CN101065741B (en) Method of transporting a PCI express packet over an IP packet network
CN101242284B (en) Communication method and network device based on SPI bus
JP5159852B2 (en) Node, switch and system
CN103929377A (en) Wired network and wireless network combined dispatching method and system and related devices
CN104169817A (en) Control device for controlling safety-critical processes in an automated plant and method for parameterizing the control device
EP1884844B1 (en) Multi protocol field device
CN101036344B (en) Communications system
EP2336896B1 (en) Serial communication module with multiple receiver/transmitters
US20050141555A1 (en) Method for generating commands for network controller modules of peripheral devices
JP2005277978A (en) Method and device for automatically setting identification number
JP2017046250A (en) Master device, slave device, and communication system
JP2006042164A (en) Gateway device
JP4850704B2 (en) Data transmission method and apparatus
JP2004519896A (en) Method and system for generating multiple self-ID packets on a 1394 bus using a standard PHY chip
JP5308418B2 (en) Programmable logic controller
US20110138099A1 (en) Method for communicating between nodes and server apparatus
JP2006129283A (en) Equipment management system and gateway device
JP2001298466A (en) Interface link layer device and network setting method
KR101268677B1 (en) Apparatus and method for reprogramming a plurality of ECUs
JP5271043B2 (en) Communications system
JP2020065110A (en) Communication apparatus
US11489697B2 (en) Transmission of data on a local bus
CN108809832B (en) Device and method for maintaining serial route when sending work request

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090929

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091126

A131 Notification of reasons for refusal

Effective date: 20100105

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100608