JP7335124B2 - data converter - Google Patents

data converter Download PDF

Info

Publication number
JP7335124B2
JP7335124B2 JP2019185489A JP2019185489A JP7335124B2 JP 7335124 B2 JP7335124 B2 JP 7335124B2 JP 2019185489 A JP2019185489 A JP 2019185489A JP 2019185489 A JP2019185489 A JP 2019185489A JP 7335124 B2 JP7335124 B2 JP 7335124B2
Authority
JP
Japan
Prior art keywords
data
port number
packet
common
protocol
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
JP2019185489A
Other languages
Japanese (ja)
Other versions
JP2021061554A (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.)
Chino Corp
Original Assignee
Chino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chino Corp filed Critical Chino Corp
Priority to JP2019185489A priority Critical patent/JP7335124B2/en
Publication of JP2021061554A publication Critical patent/JP2021061554A/en
Application granted granted Critical
Publication of JP7335124B2 publication Critical patent/JP7335124B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Description

共通の通信プロトコル(例えばイーサネット(登録商標)・TCP/IP)であるが、ペイロードに積載されているデータの形式が異なる異種の通信パケットをデータの形式ごとに適切に取り扱って同じく共通のシリアル通信などの形式のデータに変換し、あるいはその逆変換を行う技術に関する。 Although it is a common communication protocol (eg Ethernet (registered trademark), TCP/IP), different types of communication packets with different data formats loaded in the payload can be appropriately handled for each data format to achieve the same common serial communication. The present invention relates to a technique for converting data into a format such as , or inversely converting it.

例えば、溶錬炉などの温度制御では、一のマスター制御モジュールと複数のスレーブ制御モジュールとを連結し多数の対象の熱源制御を行っている。マスター制御モジュールと複数のスレーブ制御モジュール間での信号の伝送は、RS-485などの種々の共通するシリアル通信によって行われる。マスター制御モジュールに対してイーサネットやインターネットを介して制御や操作などを行う場合には、TCP/IPプロトコルなどの通信形式のデータをシリアル通信形式のデータに変換するように構成すると便利である。LANを利用できるからである。逆にスレーブ制御モジュールが収集したデータをマスター制御モジュールからイーサネットやインターネットにて接続される記録計や表示器に伝送するためには、シリアル通信形式のデータをTCP/IPプロトコルなど通信形式のデータに変換する。このようなデータの変換を行う装置として、データ変換装置やプロトコル変換装置と呼ばれるものがある(特許文献1)。 For example, in temperature control of a smelting furnace, one master control module and a plurality of slave control modules are connected to perform heat source control for many targets. Transmission of signals between the master control module and multiple slave control modules is accomplished through various common serial communications such as RS-485. When controlling or operating the master control module via Ethernet or the Internet, it is convenient to convert data in a communication format such as TCP/IP protocol into data in a serial communication format. This is because the LAN can be used. Conversely, in order to transmit the data collected by the slave control module from the master control module to the recorder or display connected via Ethernet or the Internet, serial communication format data must be converted to communication format data such as TCP/IP protocol. Convert. As a device that converts such data, there is a device called a data conversion device or a protocol conversion device (Patent Document 1).

特開2008-134774号公報JP 2008-134774 A

ところで、近年ではTCP/IPプロトコルに準拠しつつ特定の用途に応じて策定された通信プロトコルが種々存在する。例えば、PLC(プログラマブルロジックコントローラ)向けに策定されたシリアル通信プロトコルであるModbusプロトコルをTCP/IPに従って通信可能に拡張したModbus/TCPがある。このようなプロトコルは、他にも、EtherNet/IP(登録商標)、FL-netなどがある。 By the way, in recent years, there have been various communication protocols formulated according to specific uses while complying with the TCP/IP protocol. For example, there is Modbus/TCP, which is a serial communication protocol designed for PLCs (Programmable Logic Controllers) and extended to enable communication according to TCP/IP. Other such protocols include EtherNet/IP (registered trademark) and FL-net.

このような状況下、上述したデータ変換装置やプロトコル変換装置は、種々のTCP/IPプロトコルに準拠するプロトコルに対してもデータの変換が行えることが要請されることとなった。この要請に対する手段としては、例えば、データ変換装置に備えたディップスイッチによる設定やソフトウェアによる設定を行うことでプロトコルに応じたデータ変換を行えるように構成している(例えば、理化工業株式会社 SRZ Z-COM)。 Under such circumstances, the above-described data converters and protocol converters are required to be capable of converting data to protocols complying with various TCP/IP protocols. As a means for responding to this request, for example, data conversion can be performed according to the protocol by setting with a DIP switch provided in the data conversion device or setting with software (for example, Rika Kogyo Co., Ltd. SRZ Z -COM).

しかしながら、変換するプロトコルに応じた設定をディップスイッチやソフトウェアにより手動で行うとすると、変換するプロトコルが変わる度に設定しなおさなければならず煩雑である。また、複数種のプロトコルにて通信する装置が混在してデータ変換装置に接続されている場合には、上記のようにプロトコル毎の設定では対応できず、データ変換を行うことができないという問題が生じる However, if the setting corresponding to the protocol to be converted is manually performed using DIP switches or software, the setting must be made again every time the protocol to be converted is changed, which is troublesome. In addition, when devices that communicate using multiple protocols are connected to the data conversion device, the settings for each protocol cannot be used as described above, and data conversion cannot be performed. occur

上記課題を解決するために本発明において、通信線の共通プロトコルで構成され、自身のシステムで利用する共通に使用される制御情報である共通制御情報を含みかつ共通制御情報のペイロード内でのデータ保持形式が異なる共通パケットを取得する共通パケット取得部と、取得した共通パケットのヘッダに記載されているポート番号を取得する往路用ポート番号取得部と、後記特定ポート番号判断部での判断に利用する特定のポート番号である特定ポート番号を保持する特定ポート番号保持部と、取得したポート番号が保持されている特定ポート番号か特定のポート番号以外のポート番号であるその他ポート番号であるか判断する特定ポート番号判断部と、特定ポート番号判断部での判断結果が特定ポート番号であるとの判断結果である場合には、共通プロトコルに従って構成されるパケットのペイロードから他のプロトコルで構成されるヘッダを含むローカルパケットを取得し、そのローカルパケットのヘッダを除去する処理をした結果、残った前記共通制御情報を自身の下流側のシステムで利用するプロトコルである下流プロトコルのデータ形式である往路整形済データに整形する往路特定ポート番号対応処理手段と、取得したポート番号がその他ポート番号である場合には、共通プロトコルに従って構成されるパケットのペイロードから前記共通制御情報を直接的に自身の下流側のシステムで利用する下流プロトコルのデータ形式である往路整形済データに整形する往路その他ポート番号対応処理手段と、を有する往路データ整形部と、往路データ整形部にて整形された往路整形済データを出力する往路データ出力部と、を有するデータ変換装置を提供する。 In order to solve the above problems, in the present invention, data in the payload of the common control information, which is composed of a common protocol for communication lines, includes common control information that is commonly used control information used in its own system, Used for determination by the common packet acquisition unit that acquires common packets with different retention formats, the outbound port number acquisition unit that acquires the port number described in the header of the acquired common packet, and the specific port number determination unit described later. A specific port number holding part that holds a specific port number that is a specific port number to be executed, and a specific port number that holds the acquired port number or a port number that is other than the specific port number. and if the result of determination by the specific port number determination unit is that the specific port number is the specified port number, the payload of the packet configured according to the common protocol is configured with another protocol. Obtaining a local packet that includes a header, removing the header of the local packet, and processing the remaining common control information to be used in the downstream system. forward path specific port number corresponding processing means for shaping the data into the processed data, and when the acquired port number is another port number, the common control information is directly transferred to the downstream side from the payload of the packet configured according to the common protocol. an outbound data shaping unit that has outbound and other port number corresponding processing means for shaping into outbound route formatted data that is the data format of the downstream protocol used in the system of , and the outbound route formatted data that has been shaped in the outbound data shaping unit and a forward data output unit for outputting data.

また、上記構成を備えるデータ変換装置であって、前記共通パケット又は/及び共通パケットに含まれていた情報をバッファする共通パケットバッファ部と、直近で往路データ出力部から出力された往路整形済データである直近往路整形済データが構成する共通制御情報を含んでいた共通パケットのポート番号を保持するポート番号保持部と、前記往路データ出力部からの往路成形済データの出力に対する応答情報を含む下流プロトコルのデータ形式で構成される下流プロトコルパケットを取得する下流プロトコルパケット取得部と、取得した下流プロトコルパケットに含まれる応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号を取得する復路用ポート番号取得部と、取得したポート番号が前記特定のポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータに他のプロトコルに従ったヘッダを付加しローカルパケットを構成してからそのローカルパケットをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路特定ポート番号対応処理手段と、取得したポート番号がその他ポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路その他ポート番号対応処理手段と、を有する復路データ整形部と、復路データ整形部で整形された復路整形済データを出力する復路データ出力部と、下流プロトコルパケット取得部が、下流プロトコルパケットが出力された直近往路整形済データに対する下流プロトコルパケットを取得したか判断する判断部と、判断部での判断結果が直近往路整形済データに対する下流プロトコルパケットを取得したと判断されるまでは、所定時間内バッファされている共通パケット又は/及び共通パケットに含まれていた情報に基づいて往路データ出力部から往路データを出力しないように制御する往路データ出力制御部と、をさらに有するデータ変換装置を提供する。 Further, in the data conversion device having the above configuration, a common packet buffer section for buffering the common packet and/or information contained in the common packet, and outbound route shaped data output from the outbound route data output section most recently A port number holding unit that holds the port number of the common packet that contained the common control information configured by the most recent outbound route shaped data, and a downstream that contains response information to the output of the outbound route formed data from the outbound route data output unit A downstream protocol packet acquisition unit that acquires a downstream protocol packet configured in the protocol data format, and acquires the port number of the common packet that contained the common control information that caused the response information included in the acquired downstream protocol packet. and a local packet by adding a header according to another protocol to the response information data contained in the acquired downstream protocol packet when the acquired port number is the above-mentioned specific port number. and then format the return path specific port number correspondence processing means for shaping into return path formatted data which is the data format of the common packet configured according to the common protocol including the local packet in the payload; In some cases, return path and other port number correspondence processing means for shaping response information data included in the acquired downstream protocol packet into return path formatted data, which is the data format of the common packet configured according to the common protocol including the payload; a return route data shaping unit that outputs the return route shaped data that has been shaped by the return route data shaping unit; and a downstream protocol packet acquisition unit that performs downstream a determination unit that determines whether a protocol packet has been acquired; and common packets buffered within a predetermined time and/or A data conversion device further comprising an outward data output control section for controlling not to output outward data from the outward data output section based on information contained in a common packet.

また、通信線の共通プロトコルで構成され、自身のシステムで利用する共通に使用される制御情報である共通制御情報を含みかつ共通制御情報のペイロード内でのデータ保持形式が異なる共通パケットを取得する共通パケット取得ステップと、取得した共通パケットのヘッダに記載されているポート番号を取得する往路用ポート番号取得ステップと、後記特定ポート番号判断ステップでの判断に利用する特定のポート番号である特定ポート番号を保持する特定ポート番号保持ステップと、取得したポート番号が保持されている特定ポート番号か特定のポート番号以外のポート番号であるその他ポート番号であるか判断する特定ポート番号判断ステップと、特定ポート番号判断ステップでの判断結果が特定ポート番号であるとの判断結果である場合には、共通プロトコルに従って構成されるパケットのペイロードから他のプロトコルで構成されるヘッダを含むローカルパケットを取得し、そのローカルパケットのヘッダを除去する処理をした結果、残った前記共通制御情報を自身の下流側のシステムで利用するプロトコルである下流プロトコルのデータ形式である往路整形済データに整形する往路特定ポート番号対応処理サブステップと、取得したポート番号がその他ポート番号である場合には、共通プロトコルに従って構成されるパケットのペイロードから前記共通制御情報を直接的に自身の下流側のシステムで利用する下流プロトコルのデータ形式である往路整形済データに整形する往路その他ポート番号対応処理サブステップと、を有する往路データ整形ステップと、往路データ整形ステップにて整形された往路整形済データを出力する往路データ出力ステップと、を計算機に実行させるデータ変換装置の動作方法を提供する。 In addition, it acquires a common packet that is composed of a common protocol for communication lines, includes common control information that is commonly used control information used in its own system, and has a different data retention format in the payload of the common control information. A common packet acquisition step, an outbound port number acquisition step of acquiring the port number described in the header of the acquired common packet, and a specific port that is a specific port number used for determination in the specific port number determination step described later. a specific port number holding step for holding a port number; a specific port number judging step for judging whether the obtained port number is the held specific port number or another port number other than the specific port number; obtaining a local packet including a header configured with another protocol from the payload of the packet configured according to the common protocol, if the determination result in the port number determining step indicates that the port number is the specific port number; Outbound route specific port number for shaping the remaining common control information as a result of processing to remove the header of the local packet into outbound route formatted data, which is the data format of the downstream protocol, which is the protocol used in the system on the downstream side of itself a corresponding processing substep, and when the obtained port number is another port number, a downstream protocol directly using the common control information from the payload of a packet configured according to the common protocol in its own downstream system. an outbound data shaping step including a outbound and other port number corresponding processing substep for shaping outbound route shaped data in a data format; and an outbound route data output step for outputting the outbound route shaped data shaped in the outbound route data shaping step. To provide a method of operating a data conversion device for causing a computer to execute .

また、上記構成を備えるデータ変換装置の動作方法であって、前記共通パケット又は/及び共通パケットに含まれていた情報をバッファする共通パケットバッファステップと、直近で往路データ出力ステップにて出力された往路整形済データである直近往路整形済データが構成する共通制御情報を含んでいた共通パケットのポート番号を保持するポート番号保持ステップと、前記往路データ出力ステップによる往路成形済データの出力に対する応答情報を含む下流プロトコルのデータ形式で構成される下流プロトコルパケットを取得する下流プロトコルパケット取得ステップと、取得した下流プロトコルパケットに含まれる応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号を取得する復路用ポート番号取得ステップと、取得したポート番号が前記特定のポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータに他のプロトコルに従ったヘッダを付加しローカルパケットを構成してからそのローカルパケットをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路特定ポート番号対応処理サブステップと、取得したポート番号がその他ポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路その他ポート番号対応処理サブステップと、を有する復路データ整形ステップと、復路データ整形ステップにて整形された復路整形済データを出力する復路データ出力ステップと、下流プロトコルパケット取得ステップにて下流プロトコルパケットが出力された直近往路整形済データに対する下流プロトコルパケットを取得したか判断する判断ステップと、判断ステップでの判断結果が直近往路整形済データに対する下流プロトコルパケットを取得したと判断されるまでは、所定時間内バッファされている共通パケット又は/及び共通パケットに含まれていた情報に基づいて往路データ出力ステップにより往路データを出力しないように制御する往路データ出力制御ステップと、をさらに有するデータ変換装置の動作方法を提供する。 Further, in the operation method of the data conversion device having the above configuration, there is provided a common packet buffering step of buffering the common packet and/or information contained in the common packet, and a port number holding step of holding a port number of a common packet containing common control information formed by the most recent outbound route shaped data, which is outbound route formed data; and response information to output of the outbound route formed data in the outbound route data output step. a downstream protocol packet acquisition step of acquiring a downstream protocol packet configured in the data format of the downstream protocol containing a return port number acquisition step of acquiring a number; and, if the acquired port number is the above-mentioned specific port number, add a header according to another protocol to data of response information contained in the acquired downstream protocol packet. a return route specific port number corresponding processing substep for forming a local packet and then forming the return route specific port number corresponding processing substep for forming the return route formatted data, which is the data format of the common packet configured according to the common protocol including the local packet in the payload; In the case of other port numbers, the data of the response information contained in the acquired downstream protocol packet is included in the payload, and is formatted into return route formatted data, which is the data format of the common packet configured according to the common protocol. Return route and other port number correspondence a return route data shaping step having processing substeps; a return route data output step of outputting the return route shaped data that has been shaped in the return route data formation step; A determination step of determining whether or not the downstream protocol packet for the outbound route shaped data has been acquired, and until it is determined in the determination step that the downstream protocol packet for the most recent outbound route shaped data has been acquired, are buffered for a predetermined period of time. a forward data output control step of controlling not to output forward data by the forward data output step based on a common packet or/and information contained in the common packet. .

本発明により、共通パケットのペイロード内でのデータの保持形式が異なるデータを混在して受信するような場合にも、それらの形式に応じて適切にデータ変換を行うことができる。 According to the present invention, data conversion can be appropriately performed according to the format even when data having different storage formats in the payload of a common packet are mixed and received.

実施形態1のデータ変換装置の機能的構成一例を示すブロック図1 is a block diagram showing an example of a functional configuration of a data conversion device according to a first embodiment; FIG. 本データ変換装置を含む制御システムの一例を示す概念図Conceptual diagram showing an example of a control system including this data converter 共通パケットの一例を示す概念図Conceptual diagram showing an example of a common packet 往路特定ポート番号対応処理手段におけるデータ整形の一例を示す図A diagram showing an example of data shaping in the outgoing path specific port number corresponding processing means 実施形態1のデータ変換装置のハードウェア構成の一例を示す概念図1 is a conceptual diagram showing an example of a hardware configuration of a data conversion device according to a first embodiment; FIG. 実施形態1のデータ変換装置の処理の流れの一例を示すフロー図4 is a flowchart showing an example of the flow of processing by the data conversion device of the first embodiment; FIG. 実施形態2のデータ変換装置の機能的構成一例を示すブロック図FIG. 11 is a block diagram showing an example of the functional configuration of the data conversion device of the second embodiment; 実施形態2のデータ変換装置の処理の流れの一例を示すフロー図FIG. 11 is a flowchart showing an example of the flow of processing by the data conversion device of the second embodiment;

以下、本発明の実施の形態について、添付図面を用いて説明する。なお、本発明は、これら実施形態に何ら限定されるべきものではなく、その要旨を逸脱しない範囲において、種々なる態様で実施し得る。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. It should be noted that the present invention should not be limited to these embodiments in any way, and can be implemented in various forms without departing from the gist of the present invention.

なお、実施形態1では、主に請求項1、3、5、6について説明する。実施形態2では、主に請求項2、4-6について説明する。
<実施形態1>
<実施形態1 概要>
In the first embodiment, claims 1, 3, 5 and 6 will be mainly described. In the second embodiment, mainly claims 2 and 4-6 will be explained.
<Embodiment 1>
<Overview of Embodiment 1>

TCPヘッダにはポート番号が書き込まれており、そのポート番号によってTCPパケットのペイロードに積載されている情報の解読方法が対応付けられている。つまりペイロードの情報の記述形式が特定可能である。そこで、パケットのポート番号を取得し、取得したポート番号と対応付けられているペイロードの情報の記述軽視を特定することで、その特定された記述形式に応じて保持されたデータを適宜シリアル通信規格のデータに変換する。
<実施形態1 機能的構成>
A port number is written in the TCP header, and the decoding method of the information carried in the payload of the TCP packet is associated with the port number. That is, it is possible to specify the description format of the payload information. Therefore, by acquiring the port number of the packet and specifying the description disregard of the payload information associated with the acquired port number, the data held according to the specified description format can be appropriately processed according to the serial communication standard. data.
<Embodiment 1 Functional Configuration>

図1は、本実施形態のデータ変換装置の機能的構成一例を示すブロック図である。図示するように、「データ変換装置」0100は、「共通パケット取得部」0101と、「往路用ポート番号取得部」0102と、「特定ポート番号保持部」0103と、「特定ポート番号判断部」0104と、「往路特定ポート番号対応処理手段」0106及び「往路その他ポート番号対応処理手段」0107を有する「往路データ整形部」0105と、「往路データ出力部」0108と、を有する。 FIG. 1 is a block diagram showing an example of the functional configuration of the data conversion device of this embodiment. As shown in the figure, the ``data converter'' 0100 includes a ``common packet acquisition unit'' 0101, a ``forward port number acquisition unit'' 0102, a ``specific port number holding unit'' 0103, and a ``specific port number determination unit''. 0104, an ʻoutward route data shaping unit` 0105 having ʻoutbound route specific port number corresponding processing means` 0106 and ``outward route other port number corresponding processing means` 0107, and an ʻoutward route data output unit` 0108.

なお、以下に記載する各ステップは、ハードウェア及びソフトウェアの組み合わせによる動作として実現され得る。具体的には、コンピュータを利用するものであれば、CPUや主メモリ、バス、あるいは二次記憶装置(フラッシュメモリやSSDなどの不揮発性メモリ、CDやDVDなどの記憶メディアとそれらメディアの読取ドライブなど)、情報入力に利用される入力デバイス、PLC、記録計、印刷機器や表示装置、その他の外部周辺装置などのハードウェア構成部、またその外部周辺装置用のインターフェース、通信用インターフェース、それらのハードウェアを制御するためのドライバプログラムやその他アプリケーションプログラム、ユーザーインターフェイス用アプリケーションなどが挙げられる。そして主メモリ上に展開したプログラムに従ったCPUの演算処理によって、入力デバイスやその他インターフェースなどから入力され、メモリやハードディスク上に保持されているデータなどが加工、蓄積されたり、上記各ハードウェアやソフトウェアを制御するための命令が生成されたりする。あるいは本装置の機能ブロックは専用ハードウェアによって実現されてもよい。 Note that each step described below can be realized as an operation by a combination of hardware and software. Specifically, if a computer is used, the CPU, main memory, bus, or secondary storage device (nonvolatile memory such as flash memory and SSD, storage media such as CD and DVD, and read drives for these media) etc.), input devices used for information input, PLCs, recorders, printers and display devices, hardware components such as other external peripherals, interfaces for the external peripherals, communication interfaces, their Examples include driver programs for controlling hardware, other application programs, user interface applications, and the like. Then, by the arithmetic processing of the CPU according to the program expanded on the main memory, the data is input from the input device and other interfaces, etc., and the data held on the memory or hard disk is processed and accumulated, or Instructions for controlling software are generated. Alternatively, the functional blocks of the device may be realized by dedicated hardware.

また、本明細書に記載の各実施形態は動作方法として実現できるのみでなく、その一部または全部を装置としても実現可能である。また、このような装置の一部をソフトウェアとして構成することができる。さらに、そのようなソフトウェアをコンピュータに実行させるために用いるソフトウェア製品、及び同製品を固定した記録媒体も、当然に本明細書に記載の各実施形態の技術的な範囲に含まれる(本明細書の全体を通じて同様である)。
<実施形態1 データ変換装置>
Further, each embodiment described herein can be implemented not only as an operation method, but also a part or all of it can be implemented as an apparatus. Also, part of such a device can be configured as software. Furthermore, a software product used for causing a computer to execute such software and a recording medium on which the product is fixed are naturally included in the technical scope of each embodiment described in this specification (this specification the same throughout).
<Embodiment 1 Data Conversion Apparatus>

図2は、本データ変換装置を含む制御システムの一例を示す概念図である。図示するように、「データ変換装置」0201は、「ハブ」0202を介して「記録計」0203、「制御用PC」0204、「PLC」0205とイーサネット(図中、太実線で示す)により接続されている。データ変換装置は、制御用PCやPLCから制御命令などを受信し、記録計に対して温度情報などの制御対象に関する情報等を送信する。なお、イーサネットで接続される制御用PCなどの各装置を上流側の装置といい、各装置間を接続する通信プロトコル(本例ではイーサネットあるいはそれを含むTCP/IP)を共通プロトコルという。 FIG. 2 is a conceptual diagram showing an example of a control system including this data converter. As shown, a 'data converter' 0201 is connected to a 'recorder' 0203, a 'control PC' 0204, and a 'PLC' 0205 via a 'hub' 0202 via Ethernet (indicated by a thick solid line in the figure). It is The data conversion device receives control commands and the like from the control PC and PLC, and transmits information and the like regarding controlled objects such as temperature information to the recorder. Each device such as a control PC connected via Ethernet is called an upstream device, and a communication protocol (in this example, Ethernet or TCP/IP including Ethernet) connecting each device is called a common protocol.

また、データ変換装置は、溶錬炉に備わるヒータなどの「制御対象」0208を制御するための「マスター制御モジュール」0206とシリアル通信回線(図中、太点線で示す)により接続され、上流の制御用PCなどから受信した制御命令をシリアル通信形式のデータに変換してマスター制御モジュールに出力する。マスター制御モジュールには、さらに複数の「スレーブ制御モジュール」0207がシリアル通信回線により接続されデータ変換装置から受信した信号に基づき所定のスレーブ制御モジュールに対して所定の信号を送出する。また、データ変換装置は、マスター制御モジュール(場合によってはスレーブ制御モジュール)から取得した信号(温度情報や制御に関する情報など)を取得し、取得したデータをイーサネットで送信可能な形式にデータ変換して記録計や制御用PCに送信する。また、マスター制御モジュールに対して複数のスレーブ制御モジュールが接続される態様には限られず、マスター制御モジュール(マスターと呼ばなくてもよい)のみがデータ変換装置と接続される態様もある。なお、シリアル通信で接続される制御モジュールなどを下流側装置といい、各装置間を接続するシリアル通信プロトコルを下流プロトコルという。
<実施形態1 共通パケット取得部>
In addition, the data conversion device is connected to a "master control module" 0206 for controlling a "controlled object" 0208 such as a heater provided in the smelting furnace via a serial communication line (indicated by a thick dotted line in the figure). It converts a control command received from a control PC or the like into serial communication format data and outputs it to the master control module. A plurality of "slave control modules" 0207 are further connected to the master control module via serial communication lines, and based on the signals received from the data conversion device, a predetermined signal is sent to a predetermined slave control module. In addition, the data conversion device acquires signals (temperature information, control information, etc.) from the master control module (or slave control module in some cases), and converts the acquired data into a format that can be transmitted via Ethernet. Send to the recorder or control PC. Further, the embodiment is not limited to a mode in which a plurality of slave control modules are connected to the master control module, and there is also a mode in which only the master control module (which may not be called a master) is connected to the data converter. A control module or the like connected by serial communication is called a downstream device, and a serial communication protocol for connecting each device is called a downstream protocol.
<Embodiment 1 Common Packet Acquisition Unit>

「共通パケット取得部」0101と、通信線の共通プロトコルで構成され、自身のシステムで利用する共通に使用される制御情報である共通制御情報を含みかつ共通制御情報のペイロード内でのデータ保持形式が異なる共通パケットを取得する。 "Common Packet Acquisition Unit" 0101 and common control information that is composed of a common protocol for communication lines and is commonly used control information used in its own system, and a data holding format in the payload of the common control information get common packets with different

「共通プロトコル」は、TCP/IPプロトコルが代表的であるが、工場や研究所などのLANに用いられているプロトコルであると効果的である。また、TCP/IPプロトコルに準拠しつつ特定の用途に応じて策定された通信プロトコルのパケットは、いずれもペイロード内でのデータ保持形式においてそれぞれの形式を有するものの、データフレームはTCP/IPプロトコルのデータフレームと同じであり、それらのパケットを共通パケットという。 The "common protocol" is typically the TCP/IP protocol, but it is effective if it is a protocol used in LANs in factories, laboratories, and the like. In addition, although each packet of a communication protocol formulated according to a specific use while conforming to the TCP/IP protocol has its own format in terms of the data retention format within the payload, the data frame is a TCP/IP protocol. It is the same as a data frame, and those packets are called common packets.

また、自身のシステムとは、図2で例示したように、自身が構成として含まれるシステムをいう。そして、自身のシステムで共通に使用される制御情報とは、例えば、制御対象の現在の温度や湿度などの制御対象の現状を示す情報や、制御対象に対して設定される目標値や、接続されている各制御モジュールの状態(正常、異常など)を示す情報などの種々の情報である。そして、共通制御情報とは、前述した制御情報であって、自身のシステムで共通に使用される、すなわち、例えばTCP/IPプロトコル通信回線で接続される装置においても、シリアル通信回線で接続される装置においても読取などに供される情報をいう。 Also, the own system means a system that includes itself as a configuration, as illustrated in FIG. 2 . The control information commonly used in the own system includes, for example, information indicating the current state of the controlled object such as the current temperature and humidity of the controlled object, target values set for the controlled object, connection It is various information such as information indicating the status (normal, abnormal, etc.) of each control module connected. The common control information is the above-mentioned control information, and is commonly used in its own system. Refers to information that is provided for reading in a device as well.

図3は、共通パケットの一例を示す概念図である。本例では、図3(a)に「TCP/IPパケット」を示し、図3(b)に共通パケットの一例として「Modbus/TCPパケット」を示す。 FIG. 3 is a conceptual diagram showing an example of a common packet. In this example, FIG. 3(a) shows a "TCP/IP packet", and FIG. 3(b) shows a "Modbus/TCP packet" as an example of a common packet.

図3(a)に示すようにTCP/IPパケットは、TCPヘッダとペイロードからなり、TCPヘッダには、送信元ポート番号、宛先ポート番号、シーケンス番号、確認応答番号などの伝送に関する「管理情報」が格納されている。ペイロードには「データ本体」が格納されている。 As shown in FIG. 3(a), a TCP/IP packet consists of a TCP header and a payload. The TCP header contains "management information" related to transmission, such as a source port number, a destination port number, a sequence number, and an acknowledgment number. is stored. The payload contains the "data body".

図3(b)に示すようにModbus/TCPパケットも、TCP/IPパケットのデータフレームのペイロード内に、Modbusプロトコルのヘッダである「Modbusアプリケーションヘッダ」が付加された「データ本体」が保持されている。そして、データ本体が共通制御情報である。
<実施形態1 往路用ポート番号取得部>
As shown in FIG. 3B, a Modbus/TCP packet also holds a "data body" to which a "Modbus application header", which is a header of the Modbus protocol, is added in the payload of the data frame of the TCP/IP packet. there is The data body is the common control information.
<Embodiment 1 Outbound Port Number Acquisition Unit>

「往路用ポート番号取得部」0102と、取得した共通パケットのヘッダに記載されているポート番号を取得する。上述したように共通パケットのヘッダには、管理情報として宛先ポート番号が記載されている。この宛先ポート番号を取得する。
<実施形態1 特定ポート番号保持部>
Acquire the port number described in the header of the acquired common packet with the ʻoutgoing route port number acquisition unit` 0102 . As described above, the header of the common packet describes the destination port number as management information. Get this destination port number.
<Embodiment 1 Specific Port Number Holding Unit>

「特定ポート番号保持部」0103と、後記特定ポート番号判断部での判断に利用する特定のポート番号である特定ポート番号を保持する。上述のように、特定のポート番号にはそのパケットのペイロードに格納されている情報が特定の記述形式で記述されていることを示す。そこで、特定ポート番号判断部で判断する特定の記述形式と対応付けられているポート番号を特定ポート番号として保持することで、当該記述形式で記述されている情報がそのパケットのペイロードに格納されているか否かの判断を行うことができる。 A 'specific port number holding unit' 0103 holds a specific port number, which is a specific port number used for determination by a specific port number determination unit described later. As described above, a specific port number indicates that the information stored in the payload of that packet is described in a specific description format. Therefore, by holding the port number associated with the specific description format determined by the specific port number determination unit as the specific port number, the information described in the description format can be stored in the payload of the packet. It is possible to determine whether or not there is

例えば、ポート番号「502」はそのパケットのペイロードにModbusプロトコルに則って記述されたパケットが格納されていることがわかる。つまり格納されている情報がModbusプロトコルによる通信を目的に生成された情報であるか否かを判断しようとする場合には、ポート番号「502」を特定ポート番号として保持し合致するか判断する。他の例として、ペイロードに格納されている情報がEtherNet/IP(登録商標)の場合にはポート番号「2222」を特定ポート番号とし、FL-netの場合にはポート番号「55000~55002」を特定ポート番号として保持するといった具合である。
<実施形態1 特定ポート番号判断部>
For example, port number "502" indicates that a packet described according to the Modbus protocol is stored in the packet payload. That is, when trying to determine whether or not the stored information is information generated for the purpose of communication according to the Modbus protocol, the port number "502" is held as a specific port number and it is determined whether or not it matches. As another example, if the information stored in the payload is EtherNet/IP (registered trademark), the port number "2222" is the specific port number, and if it is FL-net, the port numbers "55000 to 55002" are used. For example, it is held as a specific port number.
<Embodiment 1 Specific Port Number Judgment Unit>

「特定ポート番号判断部」0104は、取得したポート番号が保持されている特定ポート番号か特定のポート番号以外のポート番号であるその他ポート番号であるか判断する。例えば、特定ポート番号が「502」である場合には、共通パケットのヘッダから取得したポート番号が「502」であるか否かの判断を行う。なお、その他ポート番号は任意に定めればよいが、何らかのプロトコルと対応付けられていないポート番号を選択することが好ましい。
<実施形態1 往路データ整形部>
A 'specific port number determination unit' 0104 determines whether the obtained port number is a retained specific port number or a port number other than the specific port number. For example, when the specific port number is "502", it is determined whether or not the port number acquired from the header of the common packet is "502". Other port numbers may be determined arbitrarily, but it is preferable to select a port number that is not associated with any protocol.
<Embodiment 1 Forward route data shaping unit>

「往路データ整形部」0105は、「往路特定ポート番号対応処理手段」0106と「往路その他ポート番号対応処理手段」0107とを有し、特定ポート番号判断部の判断結果に応じて前述のいずれかの手段によりデータを整形する処理を行う。
<実施形態1 往路特定ポート番号対応処理手段>
The ``outbound route data shaping unit'' 0105 has a ``outbound route specific port number correspondence processing means'' 0106 and a ``outbound route other port number correspondence processing means'' 0107. The data is formatted by means of
<Embodiment 1 Outbound specific port number corresponding processing means>

「往路特定ポート番号対応処理手段」0106は、特定ポート番号判断部での判断結果が特定ポート番号であるとの判断結果である場合には、共通プロトコルに従って構成されるパケットのペイロードから他のプロトコルで構成されるヘッダを含むローカルパケットを取得し、そのローカルパケットのヘッダを除去する処理をした結果、残った前記共通制御情報を自身の下流側のシステムで利用するプロトコルである下流プロトコルのデータ形式である往路整形済データに整形する。 If the judgment result of the specific port number judging unit is that the specific port number is the specific port number, the 'outbound route specific port number corresponding processing means' 0106 converts the payload of the packet configured according to the common protocol to another protocol. A data format of a downstream protocol, which is a protocol that uses the common control information that remains as a result of acquiring a local packet including a header composed of and removing the header of the local packet in its own downstream system. is shaped into outbound route shaped data.

図4は、往路特定ポート番号対応処理手段におけるデータ整形の一例を示す図である。図4(a)は、共通パケットを示しており、図4(b)に示すように共通パケットから「Modbusアプリケーションヘッダ」と「データ本体」とで構成されるローカルパケットを取得する。そして、図4(c)に示すように、ローカルパケットのヘッダである「Modbusアプリケーションヘッダ」を除去する。下流プロトコルがModbusRTU(Remote Terminal Unit)モードの場合はCRCを付加し、ModbusASCII(American Standard Code Information Interchange)モードの場合はASCIIコードに変換し、LRCを付加する。 FIG. 4 is a diagram showing an example of data shaping in the outgoing path specific port number correspondence processing means. FIG. 4(a) shows a common packet, and as shown in FIG. 4(b), a local packet composed of a "Modbus application header" and a "data body" is obtained from the common packet. Then, as shown in FIG. 4C, the "Modbus application header", which is the header of the local packet, is removed. If the downstream protocol is Modbus RTU (Remote Terminal Unit) mode, CRC is added, and if it is Modbus ASCII (American Standard Code Information Interchange) mode, it is converted to ASCII code and LRC is added.

さらに、図4(d)に示すように、下流プロトコルパケットである例えば、Modbusプロトコルのメッセージ・フレームに整形する。なお、「アドレス」は、Modbusアプリケーションヘッダに含まれる「ユニットID」に応じたものでなる。また、ファンクションコードはマスター制御モジュールがスレーブ制御モジュールに対して実行させる機能を設定する。「データ」にはファンクションコードに関連するデータを格納する。このように整形されたデータが往路整形済データとなる。なお、本例ではModbusプロトコルの場合を示したが、他のプロトコルの場合でも、そのプロトコルに応じてヘッダの除去を行い、下流プロトコルのデータ形式に整形すればよい。
<実施形態1 往路その他ポート番号対応処理手段>
Further, as shown in FIG. 4(d), it is shaped into a downstream protocol packet, for example, a Modbus protocol message frame. The "address" corresponds to the "unit ID" included in the Modbus application header. The function code also sets the function that the master control module causes the slave control module to perform. "Data" stores data related to the function code. The data shaped in this manner is forward shaped data. Although this example shows the case of the Modbus protocol, even in the case of other protocols, the header may be removed according to the protocol and the data may be formatted into the data format of the downstream protocol.
<Embodiment 1 outward route and other port number corresponding processing means>

「往路その他ポート番号対応処理手段」0107は、取得したポート番号がその他ポート番号である場合には、共通プロトコルに従って構成されるパケットのペイロードから前記共通制御情報を直接的に自身の下流側のシステムで利用する下流プロトコルのデータ形式である往路整形済データに整形する。 If the acquired port number is the other port number, the 'outbound path other port number corresponding processing means' 0107 directly transfers the common control information from the payload of the packet configured according to the common protocol to the downstream system of itself. Formats to outbound route formatted data, which is the data format of the downstream protocol used in .

「直接的に整形する」とは、他のプロトコルのヘッダを除去するといった加工を行わず、基本的には共通パケットのペイロードに格納されている共通制御情報をそのまま往路整形済データとすることをいう。 "Direct formatting" basically means that the common control information stored in the payload of the common packet is used as it is as it is, without processing such as removing the header of other protocols. say.

例えば、ModbusプロトコルのメッセージをTCP/IPプロトコルにて通信する場合、図4(d)で示したModbusプロトコルのメッセージ・フレームを分割や加工をせずにTCP/IPプロトコルの1データフレームとしたものを上流側の装置から取得する。したがって、その他ポート番号であると判断された共通パケットが、Modbusプロトコルのメッセージ・フレームを1データフレームとするTCP/IPプロトコル形式のパケットである場合には、その共通パケットのペイロードからModbusメッセージ・フレームを取得して往路整形済データとする。 For example, when a Modbus protocol message is communicated using the TCP/IP protocol, the Modbus protocol message frame shown in FIG. is obtained from the upstream device. Therefore, if the common packet determined to be the other port number is a TCP/IP protocol format packet in which one data frame is a Modbus protocol message frame, the Modbus message frame is transferred from the payload of the common packet. is acquired and used as outbound route shaped data.

「往路データ出力部」0108は、往路データ整形部にて整形された往路整形済データを出力する。往路整形済データは、基本的には自身の下流側のシステムに出力されるが、これに限定されず他のシステムや他の装置に出力されてもよい。
<実施形態1 ハードウェア>
The 'outbound data output unit' 0108 outputs outbound route shaped data that has been shaped in the outbound route data shaping unit. The outbound shaped data is basically output to its own downstream system, but is not limited to this and may be output to other systems or other devices.
<Embodiment 1 Hardware>

図5は、本実施形態のデータ変換装置のハードウェア構成の一例を示す概念図である。図示するように、データ変換装置は、CPU0501と、不揮発性メモリ(例えば、ROM、SSDなど)0502と、主メモリ0503と、制御用PCや記録計などとの接続のための上流側通信インターフェース0504と、制御モジュールなどとの接続のための下流側通信インターフェースI/F0505と、ユーザーインターフェイスI/F0506とを備え、それらの間で信号の授受等を行うためのシステムバス0507を備える。 FIG. 5 is a conceptual diagram showing an example of the hardware configuration of the data conversion device of this embodiment. As shown, the data converter includes a CPU 0501, a non-volatile memory (for example, ROM, SSD, etc.) 0502, a main memory 0503, and an upstream communication interface 0504 for connection with a control PC, recorder, or the like. , a downstream side communication interface I/F 0505 for connection with a control module or the like, a user interface I/F 0506, and a system bus 0507 for exchanging signals between them.

不揮発性メモリには、通信線の共通プロトコルで構成され、自身のシステムで利用する共通に使用される制御情報である共通制御情報を含みかつ共通制御情報のペイロード内でのデータ保持形式が異なる共通パケットを取得する共通パケット取得プログラムと、取得した共通パケットのヘッダに記載されているポート番号を取得する往路用ポート番号取得プログラムと、後記特定ポート番号判断プログラムによる判断に利用する特定のポート番号である特定ポート番号を保持する特定ポート番号保持プログラムと、取得したポート番号が保持されている特定ポート番号か特定のポート番号以外のポート番号であるその他ポート番号であるか判断する特定ポート番号判断プログラムと、特定ポート番号判断プログラムによる判断結果が特定ポート番号であるとの判断結果である場合には、共通プロトコルに従って構成されるパケットのペイロードから他のプロトコルで構成されるヘッダを含むローカルパケットを取得し、そのローカルパケットのヘッダを除去する処理をした結果、残った前記共通制御情報を自身の下流側のシステムで利用するプロトコルである下流プロトコルのデータ形式である往路整形済データに整形する往路特定ポート番号対応処理サブプログラムと取得したポート番号がその他ポート番号である場合には、共通プロトコルに従って構成されるパケットのペイロードから前記共通制御情報を直接的に自身の下流側のシステムで利用する下流プロトコルのデータ形式である往路整形済データに整形する往路その他ポート番号対応処理サブプログラムとを有する往路データ整形プログラムと、往路データ整形プログラムにより整形された往路整形済データを出力する往路データ出力プログラムなどの各種プログラムや特定ポート番号が記録されている。そして、各プログラムを展開及び実行しインターフェースを介して取得した情報やデータを不揮発性メモリに格納し、格納された情報やデータを主メモリのワーク領域にてプログラムの実行による加工などを行い、往路整形済データの生成し、不揮発性メモリに保持し、又は下流側インターフェースを介してプログラムの実行により出力する。
<実施形態1 処理の流れ>
The non-volatile memory contains common control information, which is composed of a common protocol for communication lines, is commonly used control information used in its own system, and has a different data retention format within the payload of the common control information. A common packet acquisition program that acquires packets, an outbound port number acquisition program that acquires the port number described in the header of the acquired common packet, and a specific port number used for determination by the specific port number determination program described later. A specific port number holding program that holds a specific port number, and a specific port number judgment program that judges whether the acquired port number is a specific port number held or a port number other than the specific port number and if the judgment result by the specific port number judgment program is the judgment result that it is the specific port number, the local packet including the header constituted by the other protocol is obtained from the payload of the packet constituted according to the common protocol. Then, as a result of processing to remove the header of the local packet, the remaining common control information is shaped into outgoing route formatted data, which is the data format of the downstream protocol that is used by the system on the downstream side of itself. When the port number corresponding processing subprogram and the acquired port number are other port numbers, the downstream protocol directly uses the common control information from the payload of the packet configured according to the common protocol in its own downstream system. An outbound data shaping program that has a outbound and other port number correspondence processing subprogram that shapes into outbound shaped data in the data format of , and an outbound data output program that outputs the outbound shaped data shaped by the outbound data shaping program, etc. Various programs and specific port numbers are recorded. Then, each program is expanded and executed, and the information and data obtained through the interface are stored in the non-volatile memory, and the stored information and data are processed by executing the program in the work area of the main memory. Formatted data is generated, held in non-volatile memory, or output by program execution through a downstream interface.
<Embodiment 1: Flow of processing>

図6は、本実施形態のデータ変換装置の処理の流れの一例を示すフロー図である。図示するように、まず、共通パケットを取得する(S0601)。そして、取得したパケットのポート番号を取得する(S0602)。そして、取得したポート番号が保持されている特定ポート番号であるかその他ポート番号であるかを判断する(S0603)。そして、判断結果が特定ポート番号であるとの場合には、往路特定ポート番号対応処理を行い往路整形済データに整形する(S0604)。また、判断結果がその他ポート番号であるとの場合には、往路その他ポート番号対応処理を行い往路整形済データに整形する(S0605)。そして、いずれかの対応処理により整形された往路整形済データを出力する(S0606)。
<実施形態1 制御システム>
FIG. 6 is a flowchart showing an example of the processing flow of the data conversion device of this embodiment. As illustrated, first, a common packet is acquired (S0601). Then, the port number of the acquired packet is acquired (S0602). Then, it is determined whether the acquired port number is the retained specific port number or another port number (S0603). Then, if the result of determination is the specific port number, processing for dealing with the specific port number on the outbound route is performed to shape the outbound route formatted data (S0604). If the result of determination is other port numbers, forward route and other port number correspondence processing is performed to shape the data into forward route shaped data (S0605). Then, outbound route shaped data that has been shaped by any of the corresponding processes is output (S0606).
<Embodiment 1 control system>

上述したデータ変換装置と、マスター制御モジュールと、スレーブ制御モジュールと、からなる制御システムを提供することもできる。 It is also possible to provide a control system comprising the data conversion device described above, a master control module and a slave control module.

この制御システムを構成するマスター制御モジュールは、前記往路データ出力部から出力された往路データを取得する往路データ取得部と、取得した往路データに基づいて制御情報を出力する制御情報出力部と、制御情報に応じた応答情報を取得する応答情報取得部と、取得した応答情報に基づいて復路データを取得する復路データ取得部と、取得した復路データを出力する復路データ出力部と、を有する。 A master control module constituting this control system includes a forward route data acquisition unit that acquires forward route data output from the forward route data output unit, a control information output unit that outputs control information based on the acquired forward route data, and a control It has a response information acquisition unit that acquires response information corresponding to information, a return route data acquisition unit that acquires return route data based on the acquired response information, and a return route data output unit that outputs the acquired return route data.

また、この制御システムを構成するスレーブ制御モジュールは、マスター制御モジュールから制御情報を取得する制御情報取得部と、取得した制御情報に基づいて制御信号を取得する制御信号取得部と、取得した制御信号に基づいて自身の管理する機械装置に制御信号を送信する制御信号送信部と、自身の管理する機械装置の制御ステータス情報を保持する制御ステータス情報保持部と、取得した制御信号に基づいて自身の制御ステータス情報を更新する制御ステータス情報更新部と、制御結果、更新結果、制御ステータス情報のいずれか一以上である制御結果を取得する制御結果取得部と、取得した制御結果を送信する制御結果送信部と、を有する。 Further, the slave control modules constituting this control system include a control information acquisition unit that acquires control information from the master control module, a control signal acquisition unit that acquires a control signal based on the acquired control information, and the acquired control signal a control signal transmission unit that transmits a control signal to the machine under its own control based on the control status information holding unit that holds control status information of the machine under its own control; A control status information update unit that updates control status information, a control result acquisition unit that acquires control results that are one or more of control results, update results, and control status information, and a control result transmission that transmits the acquired control results and

また、上記の制御システムにおいて、スレーブ制御モジュールはマスター制御モジュール配下に複数あり、マスター制御モジュールと、複数のスレーブ制御モジュールとは、内部バスにて通信路が形成されている制御システムとしてもよい。
<実施形態1 効果>
Further, in the above control system, a plurality of slave control modules may be subordinate to the master control module, and the master control module and the plurality of slave control modules may be a control system in which a communication path is formed by an internal bus.
<Embodiment 1 effect>

本実施形態のデータ変換装置によれば、共通パケットのペイロード内でのデータの保持形式が異なるデータを混在して受信するような場合にも、それらの形式に応じて適切にデータ変換を行うことができる。
<実施形態2>
<実施形態2 概要>
According to the data conversion apparatus of the present embodiment, even when receiving mixed data having different data retention formats in the payload of a common packet, data conversion can be performed appropriately according to the formats. can be done.
<Embodiment 2>
<Overview of Embodiment 2>

本実施形態のデータ変換装置は、取得した共通パケットをバッファする構成を有するとともに、直近で出力した往路整形済データに応答する下流側からのデータを取得するまでは、バッファした共通パケットに基づく往路データを出力しないように制御する。
<実施形態2 機能的構成>
The data conversion device of this embodiment has a configuration for buffering the acquired common packet, and until data from the downstream side in response to the recently output outbound route shaped data is acquired, forward route data based on the buffered common packet is processed. Control not to output data.
<Embodiment 2 Functional Configuration>

図7は、本実施形態のデータ変換装置の機能的構成一例を示すブロック図である。図示するように、「データ変換装置」0700は、「共通パケット取得部」0701と、「往路用ポート番号取得部」0702と、「特定ポート番号保持部」0703と、「特定ポート番号判断部」0704と、「往路特定ポート番号対応処理手段」0706及び「往路その他ポート番号対応処理手段」0707を有する「往路データ整形部」0705と、「往路データ出力部」0708と、を有する実施形態1の構成に加え、さらに、「共通パケットバッファ部」0709と、「ポート番号保持部」0710と、「下流プロトコルパケット取得部」0711と、「復路用ポート番号取得部」0712と、「復路特定ポート番号対応処理手段」0714と、「復路その他ポート番号対応処理手段」0715と、「復路データ整形部」0713と、「復路データ出力部」0716と、「判断部」0717と、「往路データ出力制御部」0718と、を有する。実施形態1の構成は説明済みであるので、本実施形態においてさらに加えられた構成について説明する。
<実施形態2 共通パケットバッファ部>
FIG. 7 is a block diagram showing an example of the functional configuration of the data conversion device of this embodiment. As illustrated, the ``data conversion device'' 0700 includes a ``common packet acquisition unit'' 0701, a ``outgoing route port number acquisition unit'' 0702, a ``specific port number holding unit'' 0703, and a ``specific port number determination unit'' 0703. 0704, an "outbound route data shaping unit" 0705 having "outbound route specific port number correspondence processing means" 0706 and "outbound route other port number correspondence processing means" 0707, and an "outbound route data output unit" 0708. In addition to the configuration, a ``common packet buffer unit'' 0709, a ``port number holding unit'' 0710, a ``downstream protocol packet acquisition unit'' 0711, a ``return route port number acquisition unit'' 0712, and a ``return route specific port number Correspondence processing means" 0714, "return route and other port number correspondence processing means" 0715, "return route data shaping unit" 0713, "return route data output unit" 0716, "judgment unit" 0717, and "outward route data output control unit '0718. Since the configuration of the first embodiment has already been explained, the configuration added in this embodiment will be explained.
<Embodiment 2 common packet buffer unit>

「共通パケットバッファ部」0709と、前記共通パケット又は/及び共通パケットに含まれていた情報をバッファする。バッファは、共通パケットを取得したときに行ってもよいし、共通パケットのポート番号を取得したときに行ってもよいし、取得したポート番号が特定番号かその他ポート番号であるかの判断をしたときに行ってもよいし、ポート番号に応じてデータを整形したときに行ってもよい。図7においては、取得したポート番号の判断を行った後に、共通パケットから取得したローカルパケットをバッファする態様にて共通パケットバッファ部を示した(往路特定ポート番号対応処理手段の機能と一部重複する)。
<実施形態2 ポート番号保持部>
A 'common packet buffer unit' 0709 buffers the common packet and/or information contained in the common packet. Buffering may be done when a common packet is acquired, or when a port number of a common packet is acquired, or whether the acquired port number is a specific number or another port number is determined. It may be performed at any time, or may be performed when the data is formatted according to the port number. In FIG. 7, the common packet buffer unit is shown in a mode of buffering the local packet acquired from the common packet after judging the acquired port number (partially overlaps with the function of the outbound path specific port number corresponding processing means). do).
<Embodiment 2 Port number holding unit>

「ポート番号保持部」0710と、直近で往路データ出力部から出力された往路整形済データである直近往路整形済データが構成する共通制御情報を含んでいた共通パケットのポート番号を保持する。保持するポート番号は、前述の往路用ポート番号取得部により取得されたポート番号を保持するポート番号とすることができる。
<実施形態2 下流プロトコルパケット取得部>
A 'port number holding unit' 0710 holds the port number of a common packet containing common control information configured by the most recent outbound route shaped data output from the outbound route data output unit 0710 . The port number to be held can be a port number that holds the port number acquired by the forward route port number acquisition unit described above.
<Second Embodiment Downstream Protocol Packet Acquisition Unit>

「下流プロトコルパケット取得部」0711と、前記往路データ出力部からの往路整形済データの出力に対する応答情報を含む下流プロトコルのデータ形式で構成される下流プロトコルパケットを取得する。例えば、出力された往路整形済データの内容が、制御対象であるヒータの現在温度を返せという命令だった場合、下流の制御モジュールが取得したヒータの現在温度を示す情報などが応答情報となる。そして、その応答情報を含む下流プロトコルパケットを取得する。
<実施形態2 復路用ポート番号取得部>
A 'downstream protocol packet acquisition unit' 0711 acquires a downstream protocol packet configured in the data format of the downstream protocol including response information to the output of outgoing route formatted data from the outgoing route data output unit. For example, if the contents of the outbound route pre-shaped data is a command to return the current temperature of the heater to be controlled, the information indicating the current temperature of the heater acquired by the downstream control module becomes the response information. Then, it acquires a downstream protocol packet containing the response information.
<Embodiment 2 Return Port Number Acquisition Unit>

「復路用ポート番号取得部」0712と、取得した下流プロトコルパケットに含まれる応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号を取得する。例えば、上述したポート番号保持部が保持しているポート番号を復路用ポート番号として取得する。
<実施形態2 復路データ整形部>
Acquire the port number of the common packet containing the common control information that caused the response information included in the acquired downstream protocol packet with the 'return port number acquisition unit' 0712 . For example, the port number held by the port number holding unit described above is acquired as the return port number.
<Embodiment 2 Return route data shaping unit>

「復路データ整形部」0713は、「復路特定ポート番号対応処理手段」0714と、「復路その他ポート番号対応処理手段」0715と、を有する。
<実施形態2 復路特定ポート番号対応処理手段>
The 'return route data shaping section' 0713 has a 'return route specific port number handling means' 0714 and a 'return route other port number handling means' 0715 .
<Embodiment 2 Return route specific port number corresponding processing means>

「復路特定ポート番号対応処理手段」0714と、取得したポート番号が前記特定のポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータに他のプロトコルに従うヘッダを付加しローカルパケットを構成してからそのローカルパケットをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する。 If the obtained port number is the above-mentioned specific port number, a ``return route specific port number corresponding processing means'' 0714 adds a header conforming to another protocol to the data of the response information included in the obtained downstream protocol packet, and local After constructing the packet, the local packet is formed into return-formatted data, which is the data format of a common packet constructed according to a common protocol that includes the local packet in the payload.

この手段での整形は、実施形態1の往路特定ポート番号対応処理手段における整形を逆向きに行うものである。例えば、図4(d)で示したようなメッセージ・フレームからファンクションコードとデータとで構成されるデータ本体(応答情報などが含まれている)を抜き出し、Modbusアプリケーションヘッダなどのような取得したポート番号と対応するプロトコルに応じたヘッダを付加してローカルパケットを構成し、そのローカルパケットをペイロードに格納し、TCPヘッダなどを付加して共通パケットのデータ形式に整形する。
<実施形態2 復路その他ポート番号対応処理手段>
The shaping by this means is performed in the opposite direction to the shaping by the outbound route specific port number correspondence processing means of the first embodiment. For example, a data body (including response information and the like) composed of a function code and data is extracted from a message frame as shown in FIG. A local packet is constructed by adding a header corresponding to the protocol corresponding to the number, the local packet is stored in the payload, and a TCP header or the like is added to format it into a common packet data format.
<Embodiment 2 Return route and other port number corresponding processing means>

「復路その他ポート番号対応処理手段」0715と、取得したポート番号がその他ポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する。 A common packet configured according to a common protocol whose payload includes a 'return path and other port number corresponding processing means' 0715 and, when the acquired port number is the other port number, the response information data included in the acquired downstream protocol packet. format into return-path shaped data, which is the data format of .

この手段での整形は、実施形態1の往路その他ポート番号対応処理手段における整形を逆向きに行うものである。例えば、上述した下流プロトコルパケットのデータ本体とアドレスに書き込まれていた情報に基づくユニットIDとをTCP/IPプロトコルのペイロードに1データフレームとして格納するなどの処理を行い復路整形済データに整形する。
<実施形態2 復路データ出力部>
The shaping by this means is performed in the opposite direction to the shaping by the forward path and other port number corresponding processing means in the first embodiment. For example, processing such as storing the data body of the downstream protocol packet described above and the unit ID based on the information written in the address as one data frame in the TCP/IP protocol payload is performed to shape the backward path shaped data.
<Embodiment 2 Return route data output unit>

「復路データ出力部」0716は、復路データ整形部で整形された復路整形済データを出力する。基本的には自身の上流側のシステムに出力されるが、これに限定されず他のシステムや他の装置に出力されてもよい。
<実施形態2 応答情報判断部>
A 'return data output unit' 0716 outputs return data that has been shaped by the return data shaping unit. Basically, it is output to its own upstream system, but it is not limited to this and may be output to another system or another device.
<Embodiment 2 Response Information Determination Unit>

「判断部」0717は、下流プロトコルパケット取得部が下流プロトコルパケットが出力された直近往路整形済データに対する下流プロトコルパケットを取得したか判断する。直近往路整形済データに対する応答情報を含む下流プロトコルパケットを取得したかの判断は、例えば、直近往路整形済データが出力されたときから所定時間内に下流プロトコルパケットを取得したか否かによって行う。所定時間内に取得した場合には取得した下流プロトコルパケットが直近往路整形済データに対する下流プロトコルパケットであると判断する。所定時間内に取得しなかった場合には、タイムアウトとして直近往路整形済データに対する下流プロトコルパケットを取得しなかったと判断する。なお、判断部による判断は、取得した下流プロトコルパケットの内容(形式、格納されている情報など)に基づきなされるものではない。
<実施形態2 往路データ出力制御部>
The 'determining unit' 0717 determines whether the downstream protocol packet acquisition unit has acquired the downstream protocol packet for the most recent outbound route formatted data from which the downstream protocol packet was output. Whether or not the downstream protocol packet containing the response information to the most recent outbound route shaped data has been acquired is determined, for example, by whether or not the downstream protocol packet has been acquired within a predetermined time after the most recent outbound route shaped data was output. If it is acquired within the predetermined time, it is determined that the acquired downstream protocol packet is the downstream protocol packet for the most recent outbound route shaped data. If it is not acquired within the predetermined time, it is determined that the downstream protocol packet for the most recent outgoing route formatted data has not been acquired as a timeout. Note that the determination by the determining unit is not based on the content (format, stored information, etc.) of the acquired downstream protocol packet.
<Embodiment 2 forward route data output control unit>

「往路データ出力制御部」0718と、判断部での判断結果が直近往路整形済データに対する下流プロトコルパケットを取得したと判断されるまでは、所定時間内バッファされている共通パケット又は/及び共通パケットに含まれていた情報に基づいて往路データ出力部から往路データを出力しないように制御する。なお、この制御の態様は、整形済みの往路データを往路データ出力部が出力しないように往路データ出力部を制御する態様であってもよいし、共通パケットバッファ部での共通パケット又は共通パケットに基づくローカルパケットのバッファを維持することによって制御する態様であってもよい。また、往路データ出力部における「所定時間」とは、少なくとも判断部による判断がなされるまでの時間(例えば上述したタイムアウトと判断するまでの時間)をいう。 Common packets and/or common packets buffered for a predetermined time until the determination result of the "outbound data output control unit" 0718 and the judgment unit determines that the downstream protocol packet for the most recent outbound route formatted data has been obtained. based on the information contained in the forward route data output unit so as not to output the forward route data. This control mode may be a mode in which the outward path data output section is controlled so that the outward path data output section does not output the shaped outward path data, or a common packet in the common packet buffer section or a common packet. It may be controlled by maintaining a buffer of local packets based on. In addition, the "predetermined time" in the forward route data output section means at least the time until the determination is made by the determination section (for example, the time until the timeout is determined as described above).

このような制御を行うのは、直近往路整形済データに対する下流プロトコルパケットを取得する前に次の共通パケットを整形して下流側に出力してしまうと、応答先の異なる下流プロトコルパケットを混同して取得して、応答すべき先に出力することができなくなるという事態が生じるおそれがあるからである。
<実施形態2 ハードウェア>
The reason for performing such control is that if the next common packet is formatted and output to the downstream side before the downstream protocol packet for the most recent outbound route formatted data is acquired, downstream protocol packets with different response destinations will be confused. This is because there is a possibility that a situation may arise in which the response cannot be obtained and output to the destination to which a response should be made.
<Embodiment 2 Hardware>

本実施形態のハードウェア構成は、実施形態1のハードウェア構成に準じて構成することができ、不揮発性メモリに、さらに前記共通パケット又は/及び共通パケットに含まれていた情報をバッファする共通パケットバッファプログラムと、直近で往路データ出力プログラムにより出力された往路整形済データである直近往路整形済データが構成する共通制御情報を含んでいた共通パケットのポート番号を保持するポート番号保持プログラムと、前記往路データ出力プログラムによる往路成形済データの出力に対する応答情報を含む下流プロトコルのデータ形式で構成される下流プロトコルパケットを取得する下流プロトコルパケット取得プログラムと、取得した下流プロトコルパケットに含まれる応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号を取得する復路用ポート番号取得プログラムと、取得したポート番号が前記特定のポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータにヘッダを付加しローカルパケットを構成してからそのローカルパケットをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路特定ポート番号対応処理サブプログラムと、取得したポート番号がその他ポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路その他ポート番号対応処理サブプログラムとを有する復路データ整形プログラムと、復路データ整形プログラムにより整形された復路整形済データを出力する復路データ出力プログラムと、下流プロトコルパケット取得プログラムにより下流プロトコルパケットが出力された直近往路整形済データに対する下流プロトコルパケットを取得したか判断する判断プログラムと、判断プログラムによる判断結果が直近往路整形済データに対する下流プロトコルパケットを取得したと判断されるまでは、所定時間内バッファされている共通パケット又は/及び共通パケットに含まれていた情報に基づいて往路データ出力プログラムにより往路データを出力しないように制御する往路データ出力制御プログラムを保持し、適宜実行することで実現することができる。
<実施形態2 処理の流れ>
The hardware configuration of the present embodiment can be configured according to the hardware configuration of the first embodiment. a buffer program; a port number holding program for holding a port number of a common packet containing common control information configured by most recent outbound shaped data output by the outbound data output program; A downstream protocol packet acquisition program that acquires a downstream protocol packet configured in the data format of the downstream protocol including response information for the output of outgoing route formed data by the outgoing route data output program, and the cause of the response information contained in the acquired downstream protocol packet A backward route port number acquisition program for acquiring the port number of the common packet containing the common control information, and when the acquired port number is the above-mentioned specific port number, it is included in the acquired downstream protocol packet A return route specific port number correspondence processing sub that adds a header to the data of the response information to form a local packet, and then forms the return route specified port number correspondence processing sub that is the data format of the common packet configured according to the common protocol that includes the local packet in the payload. Program and, when the obtained port number is other port number, return route formatted data which is the data format of common packet configured according to the common protocol whose payload contains response information data included in the obtained downstream protocol packet a return route data shaping program having a return route and other port number correspondence processing subprograms for shaping into , a return route data output program for outputting the return route shaped data that has been shaped by the return route data shaping program, and a downstream protocol packet obtained by a downstream protocol packet acquisition program A judgment program for judging whether or not the downstream protocol packet for the most recent outgoing route formatted data has been acquired, and a predetermined time until it is judged by the judgment program that the downstream protocol packet for the most recent outbound route formatted data has been acquired. Realized by holding and appropriately executing a forward data output control program that controls the outward data output program not to output forward data based on the common packet buffered inside and/or the information contained in the common packet. can do.
<Embodiment 2: Flow of processing>

図8は、実施形態2の処理の流れを示すフロー図である。ここでは、主に実施形態2に特有の処理の流れについて説明する。図示するように、まず、下流プロトコルパケットを取得したか判断する(S0801)。下流プロトコルパケットを取得した場合には、応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号が特定ポート番号であるかその他ポート番号であるかを判断する(S0802)。そして、判断結果が特定ポート番号であるとの場合には、復路特定ポート番号対応処理を行い復路整形済データに整形する(S0803)。また、判断結果がその他ポート番号であるとの場合には、復路その他ポート番号対応処理を行い復路整形済データに整形する(S0804)。そして、いずれかの対応処理により整形された復路整形済データを出力する(S0805)。 FIG. 8 is a flowchart showing the flow of processing according to the second embodiment. Here, mainly the flow of processing unique to the second embodiment will be described. As shown, first, it is determined whether or not a downstream protocol packet has been acquired (S0801). When the downstream protocol packet is acquired, it is determined whether the port number of the common packet containing the common control information that is the cause of the response information is a specific port number or another port number (S0802). Then, if the result of determination is the specific port number, processing for dealing with the specific port number on the return path is performed to shape the data into return path shaped data (S0803). If the result of determination is other port numbers, return path and other port number handling processing is performed to shape the data into return path shaped data (S0804). Then, the inbound route shaped data that has been shaped by one of the corresponding processes is output (S0805).

一方、S0801での判断結果が下流プロトコルパケットを取得していないとの場合には、直近往路整形済データが出力されたときから所定時間が経過したかを判断する(S0806)。そして、所定時間を経過していないとの判断結果の場合は、バッファされている共通パケットなどに基づく往路データを出力しないように制御し(S0807)、所定時間を経過したとの判断結果の場合は、バッファされている共通パケットなどに基づく往路データを出力する(S0808)。なお、本図では便宜上各処理を一連の流れとして示したが、下流プロトコルパケットの取得から復路用整形済データの出力へ至る処理と、直近往路整形済データを取得したかの判断に基づく往路データ出力の制御とはそれぞれでの処理の流れとなり、図示と異なり往路データの出力が行われた後に復路整形済データの出力が行われる場合もある。
<実施形態2 制御システム>
On the other hand, if the determination result in S0801 indicates that the downstream protocol packet has not been acquired, it is determined whether a predetermined time has passed since the most recent outbound route shaped data was output (S0806). If it is determined that the predetermined time has not elapsed, control is performed so as not to output forward route data based on the buffered common packet (S0807), and if it is determined that the predetermined time has elapsed. outputs forward route data based on the buffered common packet (S0808). In this figure, each process is shown as a series of flows for convenience, but the process from acquisition of the downstream protocol packet to the output of the shaped data for the return trip and the outbound data based on the determination whether the most recent outbound trip data has been acquired The control of the output is the flow of processing in each, and unlike the illustration, there are cases where the output of the inbound route data is performed after the output of the outbound route data is performed.
<Embodiment 2 Control System>

実施形態1又は実施形態2のデータ変換装置と、マスター制御モジュールと、スレーブ制御モジュールと、からなる制御システムを提供することもできる。 It is also possible to provide a control system comprising the data conversion device of Embodiment 1 or Embodiment 2, a master control module, and a slave control module.

この制御システムを構成するマスター制御モジュールは、前記往路データ出力部から出力された往路データを取得する往路データ取得部と、取得した往路データに基づいて制御情報を出力する制御情報出力部と、制御情報に応じた応答情報を取得する応答情報取得部と、取得した応答情報に基づいて復路データを取得する復路データ取得部と、取得した復路データを出力する復路データ出力部と、を有する。 A master control module constituting this control system includes a forward route data acquisition unit that acquires forward route data output from the forward route data output unit, a control information output unit that outputs control information based on the acquired forward route data, and a control It has a response information acquisition unit that acquires response information corresponding to information, a return route data acquisition unit that acquires return route data based on the acquired response information, and a return route data output unit that outputs the acquired return route data.

また、この制御システムを構成するスレーブ制御モジュールは、マスター制御モジュールから制御情報を取得する制御情報取得部と、取得した制御情報に基づいて制御信号を取得する制御信号取得部と、取得した制御信号に基づいて自身の管理する機械装置に制御信号を送信する制御信号送信部と、自身の管理する機械装置の制御ステータス情報を保持する制御ステータス情報保持部と、取得した制御信号に基づいて自身の制御ステータス情報を更新する制御ステータス情報更新部と、制御結果、更新結果、制御ステータス情報のいずれか一以上である制御結果を取得する制御結果取得部と、取得した制御結果を送信する制御結果送信部と、を有する。 Further, the slave control modules constituting this control system include a control information acquisition unit that acquires control information from the master control module, a control signal acquisition unit that acquires a control signal based on the acquired control information, and the acquired control signal a control signal transmission unit that transmits a control signal to the machine under its own control based on the control status information holding unit that holds control status information of the machine under its own control; A control status information update unit that updates control status information, a control result acquisition unit that acquires control results that are one or more of control results, update results, and control status information, and a control result transmission that transmits the acquired control results and

また、上記の制御システムにおいて、スレーブ制御モジュールはマスター制御モジュール配下に複数あり、マスター制御モジュールと、複数のスレーブ制御モジュールとは、内部バスにて通信路が形成されている制御システムとしてもよい。 Further, in the above control system, a plurality of slave control modules may be subordinate to the master control module, and the master control module and the plurality of slave control modules may be a control system in which a communication path is formed by an internal bus.

内部バスにてマスター制御モジュールと複数の制御モジュールとの通信路が形成され、またその通信にシリアル通信規格を用いているという技術的条件があることから、直近往路整形済データに対する下流プロトコルパケットを取得するまではバッファされている共通パケットなどに基づいて往路データを出力しないように制御するという構成をデータ変換装置が有することが適切なデータ伝送においてとくに有益である。
<実施形態2 効果>
A communication path is formed between the master control module and multiple control modules on the internal bus, and there is a technical condition that the serial communication standard is used for that communication. It is particularly useful for proper data transmission that the data conversion device has a configuration that controls so as not to output outbound data based on the buffered common packet or the like until it is acquired.
<Embodiment 2 effect>

本実施形態によれば、応答先の異なる下流プロトコルパケットを混同して取得して、応答すべき先に出力することができなくなるとった不都合が生じるおそれがなくなる。 According to the present embodiment, there is no possibility that downstream protocol packets with different response destinations are mixed up and obtained, and the packets cannot be output to the destination to which the response should be sent.

0100 データ変換装置
0101 共通パケット取得部
0102 往路用ポート番号取得部
0103 特定ポート番号保持部
0104 特定ポート番号判断部
0105 往路データ整形部
0106 往路特定番号対応処理手段
0107 往路その他ポート番号対応処理手段
0108 往路データ出力部
0100 Data conversion device 0101 Common packet acquisition unit 0102 Outbound route port number acquisition unit 0103 Specific port number holding unit 0104 Specific port number determination unit 0105 Outbound route data shaping unit 0106 Outbound route specific number processing means 0107 Outbound other port number processing unit 0108 Outbound route Data output section

Claims (6)

通信線の共通プロトコルで構成され、自身のシステムで利用する共通に使用される制御情報である共通制御情報を含みかつ共通制御情報のペイロード内でのデータ保持形式が異なる共通パケットを取得する共通パケット取得部と、
取得した共通パケットのヘッダに記載されているポート番号を取得する往路用ポート番号取得部と、
後記特定ポート番号判断部での判断に利用する特定のポート番号である特定ポート番号を保持する特定ポート番号保持部と、
取得したポート番号が保持されている特定ポート番号か特定のポート番号以外のポート番号であるその他ポート番号であるか判断する特定ポート番号判断部と、
特定ポート番号判断部での判断結果が特定ポート番号であるとの判断結果である場合には、共通プロトコルに従って構成されるパケットのペイロードから他のプロトコルで構成されるヘッダを含むローカルパケットを取得し、そのローカルパケットのヘッダを除去する処理をした結果、残った前記共通制御情報を自身の下流側のシステムで利用するプロトコルである下流プロトコルのデータ形式である往路整形済データに整形する往路特定ポート番号対応処理手段と、
取得したポート番号がその他ポート番号である場合には、共通プロトコルに従って構成されるパケットのペイロードから前記共通制御情報を、自身の下流側のシステムで利用する下流プロトコルのデータ形式である往路整形済データに直接的に整形する往路その他ポート番号対応処理手段と、
を有する往路データ整形部と、
往路データ整形部にて整形された往路整形済データを出力する往路データ出力部と、
を有するデータ変換装置。
A common packet for obtaining a common packet that is composed of a common protocol for communication lines, contains common control information that is commonly used control information used in its own system, and has a different data retention format in the payload of the common control information. an acquisition unit;
an outbound port number acquisition unit that acquires the port number described in the header of the acquired common packet;
a specific port number holding unit that holds a specific port number, which is a specific port number used for determination by the specific port number determination unit described later;
a specific port number determination unit for determining whether the acquired port number is a specific port number held or a port number other than the specific port number;
If the determination result of the specific port number determination unit is the specific port number, the local packet including the header configured by another protocol is acquired from the payload of the packet configured according to the common protocol. , Outbound route specific port that formats the remaining common control information as a result of processing to remove the header of the local packet into outbound route formatted data, which is the data format of the downstream protocol that is the protocol used in the downstream system of its own. number correspondence processing means;
When the obtained port number is other port number, the common control information from the payload of the packet configured according to the common protocol is converted to outbound route formatted data, which is the data format of the downstream protocol used by its own downstream system. Outbound and other port number corresponding processing means for directly formatting to
a forward data shaping unit having
an outbound data output unit for outputting outbound route shaped data that has been shaped in the outbound route data shaping unit;
A data conversion device having
前記共通パケット又は/及び共通パケットに含まれていた情報をバッファする共通パケットバッファ部と、
直近で往路データ出力部から出力された往路整形済データである直近往路整形済データが構成する共通制御情報を含んでいた共通パケットのポート番号を保持するポート番号保持部と、
前記往路データ出力部からの往路成形済データの出力に対する応答情報を含む下流プロトコルのデータ形式で構成される下流プロトコルパケットを取得する下流プロトコルパケット取得部と、
取得した下流プロトコルパケットに含まれる応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号を取得する復路用ポート番号取得部と、
取得したポート番号が前記特定のポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータに他のプロトコルに従ったヘッダを付加しローカルパケットを構成してからそのローカルパケットをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路特定ポート番号対応処理手段と、
取得したポート番号がその他ポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路その他ポート番号対応処理手段と、
を有する復路データ整形部と、
復路データ整形部で整形された復路整形済データを出力する復路データ出力部と、
下流プロトコルパケット取得部が、下流プロトコルパケットが出力された直近往路整形済データに対する下流プロトコルパケットを取得したか判断する判断部と、
判断部での判断結果が直近往路整形済データに対する下流プロトコルパケットを取得したと判断されるまでは、所定時間内バッファされている共通パケット又は/及び共通パケットに含まれていた情報に基づいて往路データ出力部から往路データを出力しないように制御する往路データ出力制御部と、
をさらに有する請求項1に記載のデータ変換装置。
a common packet buffer unit that buffers the common packet or/and information contained in the common packet;
a port number holding unit that holds the port number of a common packet containing common control information configured by the most recent outgoing route shaped data that is the outgoing route shaped data most recently output from the outgoing route data output unit;
a downstream protocol packet acquisition unit configured to acquire a downstream protocol packet configured in a data format of a downstream protocol and including response information for output of outbound route formed data from the outbound route data output unit;
a return port number acquisition unit that acquires the port number of the common packet containing the common control information that caused the response information contained in the acquired downstream protocol packet;
If the acquired port number is the above-mentioned specific port number, add a header according to another protocol to the data of the response information contained in the acquired downstream protocol packet to form a local packet, and then transmit the local packet. return path specific port number correspondence processing means for shaping return path formatted data, which is the data format of a common packet configured according to a common protocol included in the payload;
If the acquired port number is another port number, the data of the response information contained in the acquired downstream protocol packet is shaped into return route formatted data, which is the data format of the common packet configured according to the common protocol including the payload. return path and other port number corresponding processing means;
a return data shaping unit having
a return data output unit for outputting the return pass shaped data that has been shaped by the return pass data shaping unit;
a determination unit that determines whether the downstream protocol packet acquisition unit has acquired a downstream protocol packet for the most recent outbound route formatted data to which the downstream protocol packet has been output;
Until it is determined by the determination unit that the downstream protocol packet for the most recent outbound route formatted data has been obtained, forward route processing is performed based on the common packet buffered for a predetermined time and/or information contained in the common packet. an outbound data output control unit that controls so as not to output outbound data from the data output unit;
2. The data conversion device of claim 1, further comprising:
通信線の共通プロトコルで構成され、自身のシステムで利用する共通に使用される制御情報である共通制御情報を含みかつ共通制御情報のペイロード内でのデータ保持形式が異なる共通パケットを取得する共通パケット取得ステップと、
取得した共通パケットのヘッダに記載されているポート番号を取得する往路用ポート番号取得ステップと、
後記特定ポート番号判断ステップでの判断に利用する特定のポート番号である特定ポート番号を保持する特定ポート番号保持ステップと、
取得したポート番号が保持されている特定ポート番号か特定のポート番号以外のポート番号であるその他ポート番号であるか判断する特定ポート番号判断ステップと、
特定ポート番号判断ステップでの判断結果が特定ポート番号であるとの判断結果である場合には、共通プロトコルに従って構成されるパケットのペイロードから他のプロトコルで構成されるヘッダを含むローカルパケットを取得し、そのローカルパケットのヘッダを除去する処理をした結果、残った前記共通制御情報を自身の下流側のシステムで利用するプロトコルである下流プロトコルのデータ形式である往路整形済データに整形する往路特定ポート番号対応処理サブステップと、
取得したポート番号がその他ポート番号である場合には、共通プロトコルに従って構成されるパケットのペイロードから前記共通制御情報を、自身の下流側のシステムで利用する下流プロトコルのデータ形式である往路整形済データに直接的に整形する往路その他ポート番号対応処理サブステップと、
を有する往路データ整形ステップと、
往路データ整形ステップにて整形された往路整形済データを出力する往路データ出力ステップと、を計算機に実行させるデータ変換装置の動作方法。
A common packet for obtaining a common packet that is composed of a common protocol for communication lines, contains common control information that is commonly used control information used in its own system, and has a different data retention format in the payload of the common control information. an acquisition step;
an outbound port number acquisition step of acquiring the port number described in the header of the acquired common packet;
a specific port number holding step of holding a specific port number which is a specific port number used for judgment in the specific port number judgment step described later;
a specific port number determining step of determining whether the obtained port number is a specific port number held or a port number other than the specific port number;
If the judgment result in the specific port number judging step is the specific port number, the local packet including the header composed of the other protocol is acquired from the payload of the packet constructed according to the common protocol. , Outbound route specific port that formats the remaining common control information as a result of processing to remove the header of the local packet into outbound route formatted data, which is the data format of the downstream protocol that is the protocol used in the downstream system of its own. a number correspondence processing substep;
When the obtained port number is other port number, the common control information from the payload of the packet configured according to the common protocol is converted to outbound route formatted data, which is the data format of the downstream protocol used by its own downstream system. an outbound other port number correspondence processing substep that formats directly into
a forward data shaping step having
and an outward data output step of outputting outward shaped data shaped in the outward data shaping step.
前記共通パケット又は/及び共通パケットに含まれていた情報をバッファする共通パケットバッファステップと、
直近で往路データ出力部から出力された往路整形済データである直近往路整形済データが構成する共通制御情報を含んでいた共通パケットのポート番号を保持するポート番号保持ステップと、
前記往路データ出力ステップによる往路成形済データの出力に対する応答情報を含む下流プロトコルのデータ形式で構成される下流プロトコルパケットを取得する下流プロトコルパケット取得ステップと、
取得した下流プロトコルパケットに含まれる応答情報の起因となった共通制御情報を含んでいた共通パケットのポート番号を取得する復路用ポート番号取得ステップと、
取得したポート番号が前記特定のポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータに他のプロトコルに従ったヘッダを付加しローカルパケットを構成してからそのローカルパケットをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路特定ポート番号対応処理サブステップと、
取得したポート番号がその他ポート番号である場合には、取得した下流プロトコルパケットに含まれる応答情報のデータをペイロードに含む共通プロトコルに従って構成される共通パケットのデータ形式である復路整形済データに整形する復路その他ポート番号対応処理サブステップと、
を有する復路データ整形ステップと、
復路データ整形ステップにて整形された復路整形済データを出力する復路データ出力ステップと、
下流プロトコルパケット取得ステップにて下流プロトコルパケットが出力された直近往路整形済データに対する下流プロトコルパケットを取得したか判断する判断ステップと、
判断ステップでの判断結果が直近往路整形済データに対する下流プロトコルパケットを取得したと判断されるまでは、所定時間内バッファされている共通パケット又は/及び共通パケットに含まれていた情報に基づいて往路データ出力ステップにより往路データを出力しないように制御する往路データ出力制御ステップと、
をさらに有する請求項3に記載のデータ変換装置の動作方法。
a common packet buffer step of buffering the common packet or/and information contained in the common packet;
a port number holding step of holding a port number of a common packet containing common control information configured by the most recent outgoing route shaped data, which is the outgoing route shaped data output from the outgoing route data output unit most recently;
a downstream protocol packet obtaining step of obtaining a downstream protocol packet configured in a data format of a downstream protocol and including response information for output of forward route formed data in the forward route data output step;
a return port number acquisition step of acquiring the port number of the common packet containing the common control information that caused the response information contained in the acquired downstream protocol packet;
If the acquired port number is the above-mentioned specific port number, add a header according to another protocol to the data of the response information contained in the acquired downstream protocol packet to form a local packet, and then transmit the local packet. a return path specific port number corresponding processing substep for shaping into return path formatted data, which is the data format of a common packet configured according to a common protocol included in the payload;
If the acquired port number is another port number, the data of the response information contained in the acquired downstream protocol packet is shaped into return route formatted data, which is the data format of the common packet configured according to the common protocol including the payload. a return route other port number corresponding processing substep;
a return data shaping step having
a return trip data output step of outputting the return trip shaped data that has been shaped in the return trip data shaping step;
a judgment step of judging whether or not a downstream protocol packet has been acquired for the most recent outbound route formatted data for which the downstream protocol packet was output in the downstream protocol packet acquisition step;
Until it is determined in the determination step that the downstream protocol packet for the most recent forward route formatted data has been obtained, the forward route is determined based on the common packet or/and information contained in the common packet buffered for a predetermined time. an outward data output control step for controlling so as not to output outward data in the data output step;
4. The method of operating a data conversion device according to claim 3, further comprising:
請求項1又は請求項2に記載のデータ変換装置と、
前記往路データ出力部から出力された往路データを取得する往路データ取得部と、
取得した往路データに基づいて制御情報を出力する制御情報出力部と、
制御情報に応じた応答情報を取得する応答情報取得部と、
取得した応答情報に基づいて復路データを取得する復路データ取得部と、
取得した復路データを出力する復路データ出力部と、
を有するマスター制御モジュールと、
マスター制御モジュールから制御情報を取得する制御情報取得部と、
取得した制御情報に基づいて制御信号を取得する制御信号取得部と、
取得した制御信号に基づいて自身の管理する機械装置に制御信号を送信する制御信号送信部と、
自身の管理する機械装置の制御ステータス情報を保持する制御ステータス情報保持部と、
取得した制御信号に基づいて自身の制御ステータス情報を更新する制御ステータス情報更新部と、
制御結果、更新結果、制御ステータス情報のいずれか一以上である制御結果を取得する制御結果取得部と、
取得した制御結果を送信する制御結果送信部と、
を有するスレーブ制御モジュールと、
からなる制御システム。
a data conversion device according to claim 1 or claim 2;
an outward trip data acquisition unit that acquires the outward trip data output from the outbound trip data output unit;
a control information output unit that outputs control information based on the obtained outbound route data;
a response information acquisition unit that acquires response information according to control information;
a return route data acquisition unit that acquires return route data based on the acquired response information;
a return trip data output unit that outputs the acquired return trip data;
a master control module having
a control information acquisition unit that acquires control information from the master control module;
a control signal acquisition unit that acquires a control signal based on the acquired control information;
a control signal transmission unit that transmits a control signal to a mechanical device managed by itself based on the acquired control signal;
a control status information holding unit that holds control status information of the machine managed by itself;
a control status information updating unit that updates its own control status information based on the acquired control signal;
a control result acquisition unit that acquires a control result that is one or more of a control result, an update result, and control status information;
a control result transmission unit that transmits the obtained control result;
a slave control module having
A control system consisting of
前記スレーブ制御モジュールはマスター制御モジュール配下に複数あり、
前記マスター制御モジュールと、複数のスレーブ制御モジュールとは、内部バスにて通信路が形成されている請求項5に記載の制御システム。
A plurality of the slave control modules are under the master control module,
6. The control system according to claim 5, wherein a communication path is formed between the master control module and the plurality of slave control modules via an internal bus.
JP2019185489A 2019-10-08 2019-10-08 data converter Active JP7335124B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019185489A JP7335124B2 (en) 2019-10-08 2019-10-08 data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019185489A JP7335124B2 (en) 2019-10-08 2019-10-08 data converter

Publications (2)

Publication Number Publication Date
JP2021061554A JP2021061554A (en) 2021-04-15
JP7335124B2 true JP7335124B2 (en) 2023-08-29

Family

ID=75380546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019185489A Active JP7335124B2 (en) 2019-10-08 2019-10-08 data converter

Country Status (1)

Country Link
JP (1) JP7335124B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002537706A (en) 1999-02-16 2002-11-05 テラス マウンテン システムズ インコーポレイテッド General-purpose communication protocol converter
US20120102240A1 (en) 2010-10-25 2012-04-26 Moxa Inc. Fieldbus gateway using virtual serial filedbus port and data transmission method thereof
WO2017030186A1 (en) 2015-08-20 2017-02-23 三菱日立パワーシステムズ株式会社 Security system and communication control method
JP2018019283A (en) 2016-07-28 2018-02-01 サイレックス・テクノロジー株式会社 Communication equipment, serial communication equipment, communication method, and control program
JP2018074301A (en) 2016-10-26 2018-05-10 サイレックス・テクノロジー株式会社 Conversion device and control method of the same
JP2019169945A (en) 2018-03-21 2019-10-03 エルエス産電株式会社Lsis Co., Ltd. Gateway system for heterogeneous fieldbus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002537706A (en) 1999-02-16 2002-11-05 テラス マウンテン システムズ インコーポレイテッド General-purpose communication protocol converter
US20120102240A1 (en) 2010-10-25 2012-04-26 Moxa Inc. Fieldbus gateway using virtual serial filedbus port and data transmission method thereof
WO2017030186A1 (en) 2015-08-20 2017-02-23 三菱日立パワーシステムズ株式会社 Security system and communication control method
JP2018019283A (en) 2016-07-28 2018-02-01 サイレックス・テクノロジー株式会社 Communication equipment, serial communication equipment, communication method, and control program
JP2018074301A (en) 2016-10-26 2018-05-10 サイレックス・テクノロジー株式会社 Conversion device and control method of the same
JP2019169945A (en) 2018-03-21 2019-10-03 エルエス産電株式会社Lsis Co., Ltd. Gateway system for heterogeneous fieldbus

Also Published As

Publication number Publication date
JP2021061554A (en) 2021-04-15

Similar Documents

Publication Publication Date Title
EP3468108B1 (en) Network hub, transfer method, and on-vehicle network system
EP3907936B1 (en) Electronic control unit, frame generating method, and program
EP3468109B1 (en) Network hub, transfer method, and in-vehicle network system
US11310070B2 (en) Network hub, transfer method, and onboard network system
EP3621248B1 (en) Electronic control unit, communication method, and in-vehicle network system
JP2016032274A (en) Gateway unit
CN111279656B (en) Data transmission method and communication network
CN110235418B (en) Communication system, communication device, and communication method
JP5363192B2 (en) Gateway device and data transmission method
WO2017203902A1 (en) Gateway device, in-vehicle network system, transfer method, and program
KR102657333B1 (en) Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same
JP7335124B2 (en) data converter
EP2859417B1 (en) Optimized communications with hart instruments
EP3761572B1 (en) Network hub, transfer method, and onboard network system
JP4634026B2 (en) Remote I / O system, data communication method, data communication control program, and recording medium
JP7389637B2 (en) module system
JP2009104283A (en) System for transmitting/receiving data by modbus and control equipment such as programmable controller
JP7462956B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
JP6409520B2 (en) Control system and relay device
JP6903843B2 (en) node
JP6126259B1 (en) Monitoring device, monitoring method, and program
JP5165336B2 (en) Connected communication equipment
JP2009118357A (en) Ethernet switch

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220906

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230704

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230711

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230721

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230817

R150 Certificate of patent or registration of utility model

Ref document number: 7335124

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150