JP7034681B2 - Communication control device - Google Patents
Communication control device Download PDFInfo
- Publication number
- JP7034681B2 JP7034681B2 JP2017226524A JP2017226524A JP7034681B2 JP 7034681 B2 JP7034681 B2 JP 7034681B2 JP 2017226524 A JP2017226524 A JP 2017226524A JP 2017226524 A JP2017226524 A JP 2017226524A JP 7034681 B2 JP7034681 B2 JP 7034681B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- processing unit
- data transfer
- data
- information
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/052—Linking several PLC's
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
- G05B19/408—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by data handling or data format, e.g. reading, buffering or conversion of data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40228—Modbus
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
- Programmable Controllers (AREA)
- Small-Scale Networks (AREA)
Description
本発明は、上位装置と下位装置との間のデータ転送を実現する通信制御装置に関するものである。 The present invention relates to a communication control device that realizes data transfer between a higher-level device and a lower-level device.
プログラマブルロジックコントローラ(Programmable Logic Controller、以下、PLC)や温度調節計(以下、調節計)などの計器へ通信でデータを読み書きする際に、特許文献1に開示されている通信制御装置を介して、機器内のパラメータ(またはレジスタ)に関連付けられたデータアドレスを指定して、コマンドレスポンス通信で、そのパラメータの値を読み書きする通信プロトコルがある。このような通信プロトコルとしては、特許文献2に開示されたMODBUS(登録商標)、MCプロトコル、CPL(Controller Peripheral Link)などがある。
When reading and writing data by communication to an instrument such as a programmable logic controller (hereinafter, PLC) or a temperature controller (hereinafter, controller), via the communication control device disclosed in
図15は特許文献1に開示された通信制御装置の動作を説明する図である。図15の例では、通信制御装置1は、CPLを用いて調節計3からデータを読み出し、読み出したデータをMODBUSを用いてPLC2に書き込むようにしている。
FIG. 15 is a diagram illustrating the operation of the communication control device disclosed in
PLC2がマスター機器として存在し、その指示によって各調節計3が制御を行うシステムにおいて、各調節計3のデータ(操作量MVや制御量PVのデータ)は
上記のように通信で読み出され、PLC2内に集約される。
通信制御装置1を介したPLC2と調節計3との通信において、従来はシリアル通信が利用されていた。シリアル通信の場合は、図16に示すように、1つの物理ポート(COMポート)につきコマンドレスポンスでデータを読み出せる調節計3の台数は1台であった。
In a system in which
Conventionally, serial communication has been used in the communication between the
近年増えてきた、Ethernet(登録商標)等のLAN(Local Area Network)を利用したIP(Internet protocol)通信の場合は、図17に示すように、同じLAN4上にある複数の調節計3から並列にコマンドレスポンスでデータを大量かつ高速に読み出すことが可能となった。通信制御装置1がPLC2へデータを転送する単位時間当たりのデータ量は、調節計3の接続台数に比例する。通信制御装置1とPLC2とのコマンドレスポンスで送受信できるデータ数には制限があり、一度にやり取りできるデータ数を超えた場合は複数の通信フレーム5-1,5-2,・・・に分けてデータを送受信する必要があり、並列処理ができない場合は通信フレームごとのコマンドレスポンスを待ちながら順番に処理する必要がある。
In the case of IP (Internet protocol) communication using LAN (Local Area Network) such as Ethernet (registered trademark), which has been increasing in recent years, as shown in FIG. 17, parallel from a plurality of
通信制御装置1とPLC2との単位時間当たりの通信量に関して、シリアル通信の場合は調節計3の接続台数が増えても、物理的な通信ポートの数の制約により大きな変化はなかったが、IP通信の場合は調節計3の接続台数に比例して通信制御装置1とPLC2との通信量が増える。その結果、多くの調節計3が利用されているシステムにおいて、通信制御装置1とPLC2との通信がボトルネックになるという課題があった。
Regarding the amount of communication between the
このような課題の1つの解決方法として、通信制御装置1とPLC2との通信において、コマンドレスポンス処理においてレスポンスを待つことなく並列してコマンドを送信する方法がある。例えば、MODBUS/TCP(Transmission Control Protocol)などの、フレーム番号(フレーム識別ID)の機能を備えた通信プロトコルであれば、一度に複数のコマンドを送信することができる。
As one solution to such a problem, in the communication between the
しかしながら、通信プロトコルや機器固有の仕様により並列に実行できる数は制約される。PLC2の処理能力を超えてコマンドを送信すると、TCPの再送処理が多発し全体のパフォーマンス低下につながる場合があった。
また、フレーム番号の機能を備えていない通信プロトコルも存在する。このような通信プロトコルを利用する場合、再送処理などによってフレームの順番が入れ替わってしまう可能性があるので、複数のコマンドレスポンス処理を並列に実行することはできない。
However, the number that can be executed in parallel is limited by the communication protocol and device-specific specifications. If a command is transmitted beyond the processing capacity of PLC2, TCP retransmission processing may occur frequently, leading to a decrease in overall performance.
There are also communication protocols that do not have a frame number function. When such a communication protocol is used, the order of frames may be changed due to retransmission processing or the like, so that it is not possible to execute a plurality of command response processes in parallel.
本発明は、上記課題を解決するためになされたもので、調節計などの下位装置の接続数が増えた場合でも、通信プロトコルの制約を受けることなく上位装置と下位装置との間の効率の良いデータ転送を実現することができる通信制御装置を提供することを目的とする。 The present invention has been made to solve the above problems, and even when the number of connections of lower-level devices such as a controller increases, the efficiency between the higher-level device and the lower-level device is not restricted by the communication protocol. It is an object of the present invention to provide a communication control device capable of realizing good data transfer.
本発明の通信制御装置は、複数の下位装置の各々について設けられ、対応する下位装置と通信を行うように構成された複数の第1の通信処理部と、上位装置との間に設定される複数のコネクションの各々について設けられ、対応するコネクションを介して前記上位装置と通信を行うように構成された複数の第2の通信処理部と、データ転送定義情報を予め記憶するように構成されたデータ転送定義部と、前記データ転送定義情報で定義された転送元の下位装置に対する読出しリクエスト情報を作成し、この読出しリクエスト情報で要求したデータを前記転送元から受信したときに、この受信したデータを前記データ転送定義情報で定義された転送先の上位装置に書き込む書込みリクエスト情報を作成するように構成されたデータ転送処理部と、前記読出しリクエスト情報に応じて前記転送元からデータを読み出す第1のコマンドフレームを作成して、前記転送元に対応する前記第1の通信処理部に渡し、この第1の通信処理部が第1のレスポンスフレームを前記転送元から受信したときに、前記読出しリクエスト情報で要求されたデータを前記第1のレスポンスフレームから取り出して前記データ転送処理部に渡すように構成された第1の通信リクエスト処理部と、前記複数のコネクションの中に使用可能なコネクションが存在する場合に、前記書込みリクエスト情報に応じて前記転送先にデータを書き込む第2のコマンドフレームを作成して、前記使用可能なコネクションに対応する前記第2の通信処理部に前記第2のコマンドフレームを渡し、この第2の通信処理部が第2のレスポンスフレームを前記転送先から受信したときに、この第2のレスポンスフレームが示す結果を前記データ転送処理部に通知するように構成された第2の通信リクエスト処理部とを備えることを特徴とするものである。 The communication control device of the present invention is provided for each of the plurality of lower-level devices, and is set between the plurality of first communication processing units configured to communicate with the corresponding lower-level devices and the higher-level device. A plurality of second communication processing units provided for each of the plurality of connections and configured to communicate with the higher-level device via the corresponding connections, and a plurality of second communication processing units configured to store data transfer definition information in advance. When read request information is created for the data transfer definition unit and the lower-level device of the transfer source defined in the data transfer definition information, and the data requested by this read request information is received from the transfer source, the received data is received. A data transfer processing unit configured to create write request information for writing to a higher-level device of the transfer destination defined in the data transfer definition information, and a first unit that reads data from the transfer source in response to the read request information. Command frame is created and passed to the first communication processing unit corresponding to the transfer source, and when the first communication processing unit receives the first response frame from the transfer source, the read request is made. There is a first communication request processing unit configured to take out the data requested by information from the first response frame and pass it to the data transfer processing unit, and a usable connection among the plurality of connections. In this case, a second command frame for writing data to the transfer destination is created according to the write request information, and the second command frame is sent to the second communication processing unit corresponding to the available connection. Is passed, and when the second communication processing unit receives the second response frame from the transfer destination, the result indicated by the second response frame is notified to the data transfer processing unit. It is characterized by having a communication request processing unit of 2.
また、本発明の通信制御装置は、上位装置との間に設定される複数のコネクションの各々について設けられ、対応するコネクションを介して前記上位装置と通信を行うように構成された複数の第1の通信処理部と、複数の下位装置の各々について設けられ、対応する下位装置と通信を行うように構成された複数の第2の通信処理部と、データ転送定義情報を予め記憶するように構成されたデータ転送定義部と、前記データ転送定義情報で定義された転送元の上位装置に対する読出しリクエスト情報を作成し、この読出しリクエスト情報で要求したデータを前記転送元から受信したときに、この受信したデータを前記データ転送定義情報で定義された転送先の下位装置に書き込む書込みリクエスト情報を作成するように構成されたデータ転送処理部と、前記複数のコネクションの中に使用可能なコネクションが存在する場合に、前記読出しリクエスト情報に応じて前記転送元からデータを読み出す第1のコマンドフレームを作成して、前記使用可能なコネクションに対応する前記第1の通信処理部に渡し、この第1の通信処理部が第1のレスポンスフレームを前記転送元から受信したときに、前記読出しリクエスト情報で要求されたデータを前記第1のレスポンスフレームから取り出して前記データ転送処理部に渡すように構成された第1の通信リクエスト処理部と、前記書込みリクエスト情報に応じて前記転送先にデータを書き込む第2のコマンドフレームを作成して、前記転送先に対応する前記第2の通信処理部に渡し、この第2の通信処理部が第2のレスポンスフレームを前記転送先から受信したときに、この第2のレスポンスフレームが示す結果を前記データ転送処理部に通知するように構成された第2の通信リクエスト処理部とを備えることを特徴とするものである。
Further, the communication control device of the present invention is provided for each of a plurality of connections set between the host device and the host device, and is configured to communicate with the host device via the corresponding connection. Communication processing unit, a plurality of second communication processing units provided for each of the plurality of lower-level devices and configured to communicate with the corresponding lower-level devices, and a configuration for storing data transfer definition information in advance. When the read request information for the data transfer definition unit and the higher-level device of the transfer source defined in the data transfer definition information is created and the data requested by the read request information is received from the transfer source, this reception is performed. There is a data transfer processing unit configured to create write request information for writing the data to the lower-level device of the transfer destination defined in the data transfer definition information, and a connection that can be used among the plurality of connections. In this case, a first command frame for reading data from the transfer source according to the read request information is created and passed to the first communication processing unit corresponding to the available connection , and the first communication is performed. When the processing unit receives the first response frame from the transfer source, the data requested by the read request information is taken out from the first response frame and passed to the data transfer processing unit. A communication request processing unit of 1 and a second command frame for writing data to the transfer destination according to the write request information are created and passed to the second communication processing unit corresponding to the transfer destination, and the second command frame is created. When the
また、本発明の通信制御装置の1構成例において、前記データ転送定義情報は、前記転送元の情報と前記転送先の情報と共に、データ転送の起動条件を含み、前記起動条件として、データ転送の周期が設定されていることを特徴とするものである。
また、本発明の通信制御装置の1構成例において、前記データ転送定義情報は、前記転送元の情報と前記転送先の情報と共に、データ転送の起動条件を含み、前記起動条件として、トリガ情報が設定されていることを特徴とするものである。
また、本発明の通信制御装置の1構成例は、前記上位装置の1つの通信ポートに前記複数のコネクションが設定されていることを特徴とするものである。
また、本発明の通信制御装置の1構成例は、前記上位装置の複数の通信ポートに前記コネクションが1つずつ設定されていることを特徴とするものである。
Further, in one configuration example of the communication control device of the present invention, the data transfer definition information includes the data transfer start condition together with the transfer source information and the transfer destination information, and the data transfer start condition is used as the start condition. It is characterized in that a cycle is set.
Further, in one configuration example of the communication control device of the present invention, the data transfer definition information includes the data transfer start condition together with the transfer source information and the transfer destination information, and the trigger information is used as the start condition. It is characterized by being set.
Further, one configuration example of the communication control device of the present invention is characterized in that the plurality of connections are set in one communication port of the higher-level device.
Further, one configuration example of the communication control device of the present invention is characterized in that one connection is set for each of a plurality of communication ports of the higher-level device.
本発明によれば、通信制御装置と上位装置との間に複数のコネクションを設定して通信を行うことで、複数のコマンドフレームを、複数のコネクションを介して並列に上位装置に送信することが可能となるので、下位装置の接続数が増えた場合でも、通信プロトコルの制約を受けることなく、上位装置と下位装置との間の効率の良いデータ転送を実現することができる。 According to the present invention, by setting a plurality of connections between the communication control device and the host device and performing communication, a plurality of command frames can be transmitted to the host device in parallel via the plurality of connections. Therefore, even if the number of connections of the lower-level device increases, efficient data transfer between the higher-level device and the lower-level device can be realized without being restricted by the communication protocol.
[発明の原理]
図1は本発明の原理を説明する図である。PLCとの通信において、利用可能な通信プロトコルが、コマンドを並列に実行することができないプロトコルの場合でも、PLCの仕様として、1つのTCP通信ポートに複数のコネクションを確立することが可能な場合がある。また、単一のコネクションしか許可されていない場合でも、同時に複数のTCP通信ポートが利用可能な場合がある。これらのPLCの仕様は、複数の機器(タッチパネルやコンピュータなど)がPLCへ接続されることを想定したものである。
[Principle of invention]
FIG. 1 is a diagram illustrating the principle of the present invention. In communication with PLC, even if the available communication protocol is a protocol that cannot execute commands in parallel, it may be possible to establish multiple connections on one TCP communication port as a PLC specification. be. Also, even if only a single connection is allowed, multiple TCP communication ports may be available at the same time. The specifications of these PLCs assume that a plurality of devices (touch panel, computer, etc.) are connected to the PLC.
本発明では、PLCとの間で同時に複数のコネクションを確立することが可能なことを利用して、通信制御装置1aが、複数のコネクションに対して並行してコマンドレスポンス処理を実行することで、PLCからのレスポンス待ちによる無駄時間を削減する。
In the present invention, the
[第1の実施例]
以下、本発明の実施例について図面を参照して説明する。図2は本発明の第1の実施例に係る通信制御装置1aの構成を示すブロック図である。通信制御装置1aは、PLC2とEthernet等のネットワークを介して接続され、PLC2との間に設定される複数のコネクションの各々について設けられ、対応するコネクションを介してPLC2と通信を行うn個のPLC用通信処理部10-1~10-n(nは2以上の整数)と、後述するデータ転送処理部からの書込みリクエスト情報に応じて転送先にデータを書き込むコマンドフレームを作成して、使用可能なコネクションに対応するPLC用通信処理部10-1~10-nにコマンドフレームを渡し、PLC用通信処理部10-1~10-nがレスポンスフレームを受信したときに、このレスポンスフレームが示す結果をデータ転送処理部に通知する通信リクエスト処理部11と、調節計3-1~3-m毎に設けられ、調節計3-1~3-mとEthernet等のネットワークを介して接続されたm個の調節計用通信処理部12-1~12-m(mは2以上の整数)と、データ転送処理部からの読出しリクエスト情報に応じて転送元からデータを読み出すコマンドフレームを作成して、転送元に対応する調節計用通信処理部12-1~12-mに渡し、調節計用通信処理部12-1~12-mがレスポンスフレームを受信したときに、読出しリクエスト情報で要求されたデータをレスポンスフレームから取り出してデータ転送処理部に渡す通信リクエスト処理部13と、データ転送定義情報で定義された転送元に対する読出しリクエスト情報を作成し、この読出しリクエスト情報で要求したデータを転送元から受信したときに、この受信したデータをデータ転送定義情報で定義された転送先に書き込む書込みリクエスト情報を作成するデータ転送処理部14と、転送元の情報と転送先の情報とデータ転送の起動条件とを含むデータ転送定義情報を予め記憶するデータ転送定義部15とから構成される。
[First Example]
Hereinafter, examples of the present invention will be described with reference to the drawings. FIG. 2 is a block diagram showing a configuration of the
本実施例では、図3に示すように、PLC2の仕様として、1つのTCP通信ポート200に複数のコネクションPcon-1~Pcon-nを確立することが許可されている場合について説明する。図3における100-1~100-nはそれぞれ通信制御装置1aのPLC用通信処理部10-1~10-nに設定されるTCP通信ポート、101-1~101-mはそれぞれ通信制御装置1aの調節計用通信処理部12-1~12-mに設定されるTCP通信ポート、300-1~300-mはそれぞれ調節計3-1~3-mのTCP通信ポート、Ccon-1~Ccon-mはTCP通信ポート101-1~101-mとTCP通信ポート300-1~300-mとの間に設定されるコネクションである。
In this embodiment, as shown in FIG. 3, a case where a plurality of connections Pcon-1 to Pcon-n are permitted to be established in one
データ転送定義部15には、図4に示すようなデータ転送定義情報が予め記憶されている。データ転送定義情報は、データ転送の起動条件と、データ転送元のアドレス情報(本実施例では調節計3-1~3-mの監視ポイントやデータを指定するアドレス)と、データ転送先のアドレス情報(本実施例ではPLC2のレジスタのアドレス)とからなる。
The data
図4の例では、データ転送の起動条件として、データ転送の周期が定義されており、200msec毎にデータ転送が行われることが分かる。このようなデータ転送定義情報は、通信制御装置1aのユーザによって予め登録される。
In the example of FIG. 4, it can be seen that the data transfer cycle is defined as the data transfer start condition, and the data transfer is performed every 200 msec. Such data transfer definition information is registered in advance by the user of the
図5は本実施例の通信制御装置1aのデータ転送処理部14の動作を説明するフローチャート、図6は通信リクエスト処理部13および調節計用通信処理部12-1~12-mの動作を説明するフローチャート、図7は通信リクエスト処理部11およびPLC用通信処理部10-1~10-nの動作を説明するフローチャートである。
FIG. 5 is a flowchart illustrating the operation of the data
データ転送処理部14は、データ転送定義部15のデータ転送定義情報で定義された起動条件が成立するまで待機する。
データ転送処理部14は、データ転送を実施すべきタイミングになり、起動条件が成立すると(図5ステップS100においてYES)、データ転送定義情報で定義された転送元アドレス情報に基づいて、データ転送元からデータを読み出すための読出しリクエスト情報を作成する(図5ステップS101)。読出しリクエスト情報には、転送元アドレス情報が含まれる。
The data
When the data
そして、データ転送処理部14は、作成した読出しリクエスト情報を、データ転送定義情報で定義されたデータ転送元に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部13)に送信する(図5ステップS102)。
データ転送処理部14は、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組について読出しリクエスト情報の送信が完了するまで(図5ステップS103においてYES)、ステップS101,S102の処理を繰り返し行う。
Then, the data
The data
次に、通信リクエスト処理部13は、データ転送処理部14からの読出しリクエスト情報を受信すると(図6ステップS200においてYES)、受信した読出しリクエスト情報を内部の通信リクエストキュー(不図示)に格納する通信リクエストキュー処理を行う(図6ステップS201)。
Next, when the communication
続いて、通信リクエスト処理部13は、通信リクエストキューに未処理の読出しリクエスト情報が格納されている場合(図6ステップS202においてYES)、未処理の読出しリクエスト情報を処理対象として、この読出しリクエスト情報に含まれる転送元アドレス情報で特定されるデータ転送元の調節計3(3-1~3-m)との間で通信処理中かどうかを判定する(図6ステップS203)。
Subsequently, when the unprocessed read request information is stored in the communication request queue (YES in step S202 of FIG. 6), the communication
通信リクエスト処理部13は、データ転送元との間で通信処理中でない場合(ステップS203においてNO)、処理対象の読出しリクエスト情報に基づいて、データ転送元からデータを読み出すためのコマンドフレームを作成する(図6ステップS204)。コマンドフレームには、転送元アドレス情報が含まれる。
When the communication
そして、通信リクエスト処理部13は、作成したコマンドフレームをデータ転送元(本実施例では調節計)に対応する調節計用通信処理部12(12-1~12-m)に渡す。調節計用通信処理部12(12-1~12-m)は、受け取ったコマンドフレームを、データ転送元との間に設定されたコネクションCcon(Ccon-1~Ccon-m)を介してデータ転送元の調節計3(3-1~3-m)に送信する(図6ステップS205)。
Then, the communication
調節計3(3-1~3-m)は、コマンドフレームを受信すると、受信したコマンドフレームに含まれる転送元アドレス情報で指定されるデータを内部のメモリから取得して、このデータを含むレスポンスフレームを作成する。そして、調節計3(3-1~3-m)は、作成したレスポンスフレームを、コマンドフレームの送信元の通信制御装置1aとの間に設定されたコネクションCcon(Ccon-1~Ccon-m)を介して通信制御装置1aに送信する。
When the controller 3 (3-1 to 3-m) receives a command frame, it acquires the data specified by the transfer source address information included in the received command frame from the internal memory, and responds including this data. Create a frame. Then, the regulators 3 (3-1 to 3-m) connect the created response frame to the
コマンドフレームを送信した通信制御装置1aの調節計用通信処理部12(12-1~12-m)は、このコマンドフレームに対するレスポンスフレームを調節計3(3-1~3-m)から受信すると(図6ステップS206においてYES)、受信したレスポンスフレームを通信リクエスト処理部13に渡す。
When the communication processing unit 12 (12-1 to 12-m) for the controller of the
通信リクエスト処理部13は、レスポンスフレームを解析して、データ転送元の調節計3(3-1~3-m)から送信されたデータをレスポンスフレームから取り出す(図6ステップS207)。通信リクエスト処理部13は、レスポンスフレームから取り出したデータを、処理対象の読出しリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図6ステップS208)。
The communication
そして、通信リクエスト処理部13は、処理対象の読出しリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該読出しリクエスト情報を、内部の通信リクエストキューから削除し(図6ステップS209)、ステップS200に戻る。
Then, the communication
次に、データ転送処理部14は、読出しリクエスト情報で要求した結果を通信リクエスト処理部13から受信すると(図5ステップS104においてYES)、この読出しリクエスト情報を作成する元となったデータ転送定義情報で定義された転送先アドレス情報に基づいて、データ転送先にデータを書き込むための書込みリクエスト情報を作成する(図5ステップS105)。書込みリクエスト情報には、転送先アドレス情報と、データ転送元の調節計3(3-1~3-m)から送信されたデータとが含まれる。
Next, when the data
そして、データ転送処理部14は、作成した書込みリクエスト情報を、データ転送定義情報で定義されたデータ転送先に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部11)に送信する(図5ステップS106)。
Then, the data
次に、通信リクエスト処理部11は、データ転送処理部14からの書込みリクエスト情報を受信すると(図7ステップS300においてYES)、受信した書込みリクエスト情報を内部の通信リクエストキュー(不図示)に格納する通信リクエストキュー処理を行う(図7ステップS301)。
Next, when the communication
続いて、通信リクエスト処理部11は、通信リクエストキューに未処理の書込みリクエスト情報が格納されている場合(図7ステップS302においてYES)、未処理の書込みリクエスト情報を処理対象として、この書込みリクエスト情報に含まれる転送先アドレス情報で特定されるデータ転送先(本実施例ではPLC2)との間で通信処理中かどうかを判定する(図7ステップS303)。
Subsequently, when the communication
本実施例では、通信制御装置1aとPLC2との間に複数のコネクションPcon-1~Pcon-nが設定されているので、全てのコネクションPcon-1~Pcon-nが使用されている場合には通信処理中という判定結果となり、コネクションPcon-1~Pcon-nのうち少なくとも1つのコネクションが未使用の場合には通信処理中でないという判定結果になる。
In this embodiment, since a plurality of connections Pcon-1 to Pcon-n are set between the
通信リクエスト処理部11は、データ転送先との間で通信処理中でない場合、すなわち複数のコネクションPcon-1~Pcon-nの中に使用可能なコネクションが存在する場合(ステップS303においてNO)、処理対象の書込みリクエスト情報に基づいて、データ転送先にデータを書き込むためのコマンドフレームを作成する(図7ステップS304)。コマンドフレームには、転送先アドレス情報と、データ転送元の調節計3(3-1~3-m)から送信されたデータとが含まれる。
The communication
そして、通信リクエスト処理部11は、作成したコマンドフレームを、データ転送先(本実施例ではPLC2)との間に設定された複数のコネクションPcon-1~Pcon-nのうち、使用可能なコネクションに対応するPLC用通信処理部10(10-1~10-n)に渡す。PLC用通信処理部10(10-1~10-n)は、対応するコネクションPcon(Pcon-1~Pcon-n)を介してコマンドフレームをデータ転送先のPLC2に送信する(図7ステップS305)。
Then, the communication
PLC2は、コマンドフレームを受信すると、コマンドフレームを受信したコネクションPcon(Pcon-1~Pcon-n)を利用して、コマンドフレームを受信したことを示すレスポンスフレームを通信制御装置1aに返す。また、PLC2は、受信したコマンドフレームに含まれる転送先アドレス情報で指定されるレジスタに、このコマンドフレームに含まれるデータを書き込む。
こうして、調節計3(3-1~3-m)のデータをPLC2に転送することができる。
When the PLC2 receives a command frame, it returns a response frame indicating that the command frame has been received to the
In this way, the data of the controller 3 (3-1 to 3-m) can be transferred to the
コマンドフレームを送信した通信制御装置1aのPLC用通信処理部10(10-1~10-n)は、このコマンドフレームに対するレスポンスフレームをPLC2から受信すると(図7ステップS306においてYES)、受信したレスポンスフレームを通信リクエスト処理部11に渡す。
When the PLC communication processing unit 10 (10-1 to 10-n) of the
通信リクエスト処理部11は、レスポンスフレームを解析して(図7ステップS307)、データ転送先のPLC2がコマンドフレームを受信したことを確認すると、処理対象の書込みリクエスト情報で要求された処理が完了したことを示す情報を、処理対象の書込みリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図7ステップS308)。
When the communication
そして、通信リクエスト処理部11は、処理対象の書込みリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該書込みリクエスト情報を、内部の通信リクエストキューから削除し(図7ステップS309)、ステップS300に戻る。
Then, the communication
データ転送処理部14は、書込みリクエスト情報で要求した結果を通信リクエスト処理部11から受信すると(図5ステップS107においてYES)、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了したかどうかを判定する(図5ステップS108)。
When the data
データ転送処理部14は、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了していない場合には(ステップS108においてNO)、ステップS104に戻る。また、データ転送処理部14は、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了した場合には(ステップS108においてYES)、ステップS100に戻り、次の起動条件が成立するまで待機する。
If the data transfer is not completed for all the sets of the data transfer source and the data transfer destination defined in the data transfer definition information (NO in step S108), the data
図8は本実施例の通信制御装置1aの動作を説明するシーケンス図である。図8の例では、通信制御装置1aとPLC2との間に3つのコネクションPcon-1~Pcon-3が設定されている場合について説明する。
FIG. 8 is a sequence diagram illustrating the operation of the
図5、図6で説明した動作により、通信制御装置1aは、調節計3-1~3-3に対して、データを読み出すためのコマンドフレームCc-1~Cc-3を送信する。このコマンドフレームCc-1~Cc-3に対して、調節計3-1~3-3は、要求されたデータを含むレスポンスフレームCr-1~Cr-3を通信制御装置1aに返信する。
By the operation described with reference to FIGS. 5 and 6, the
そして、通信制御装置1aは、受信したレスポンスフレームCr-1~Cr-3に含まれるデータをPLC2に書き込むためのコマンドフレームPc-1~Pc-3を、3つのコネクションPcon-1~Pcon-3を介して並列にPLC2に送信する。PLC2は、コマンドフレームPc-1~Pc-3を受信したことを示すレスポンスフレームPr-1~Pr-3を、それぞれコネクションPcon-1~Pcon-3を介して通信制御装置1aに返信する。
Then, the
図9は従来の通信制御装置1の動作を説明するシーケンス図である。従来においても、通信制御装置1と調節計3-1~3-3との間のコマンドレスポンス処理は本実施例と同様である。
FIG. 9 is a sequence diagram illustrating the operation of the conventional
一方、通信制御装置1とPLC2との間については1つのコネクションPcon-1のみしか設定されていないので、通信制御装置1は、コマンドフレームPc-1に対するレスポンスフレームPr-1を受信するまで、次のコマンドフレームPc-2をPLC2に送信することはできない。同様に、通信制御装置1は、コマンドフレームPc-2に対するレスポンスフレームPr-2を受信するまで、次のコマンドフレームPc-3をPLC2に送信することはできない。このように、従来の通信制御装置1では、複数のコマンドレスポンス処理を並列に実行できないことが分かる。
On the other hand, since only one connection Pcon-1 is set between the
以上のように、本実施例では、通信制御装置1aとPLC2との間に複数のコネクションを設定して通信を行うことで、通信制御装置1aを介したPLC2と調節計3(3-1~3-m)との効率の良いデータ転送を実現することができる。PLC2の通信プロトコルや調節計3(3-1~3-m)の通信プロトコルはTCP/IP通信を利用可能な通信プロトコルであればよく、通信プロトコルの種類を問わず本発明を適用することができる。したがって、通信プロトコルの制約を受けることなく効率の良いデータ転送を実現することができる。
As described above, in the present embodiment, by setting a plurality of connections between the
[第2の実施例]
第1の実施例では、PLC2の仕様として、1つのTCP通信ポート200に複数のコネクションPcon-1~Pcon-nを確立することが許可されている場合について説明した。これに対して、図10に示すように、PLC2の仕様として、1つのTCP通信ポート当たり1つのコネクションの確立しか許可されていないが、複数のTCP通信ポート200-1~200-nを設定することが可能で、TCP通信ポート200-1~200-n毎にコネクションPcon-1~Pcon-nを確立することが可能な場合にも、本発明を適用可能である。
図10に示した例においても、通信制御装置1aの構成および動作は、第1の実施例で説明したとおりである。
[Second Example]
In the first embodiment, a case where a plurality of connections Pcon-1 to Pcon-n are permitted to be established in one
Also in the example shown in FIG. 10, the configuration and operation of the
また、PLC2の仕様として、複数のTCP通信ポートを設定することが可能で、かつ各TCP通信ポートに複数のコネクションを確立することが許可されている場合にも本発明を適用可能である。 Further, as the specification of PLC2, the present invention can be applied even when a plurality of TCP communication ports can be set and a plurality of connections are permitted to be established in each TCP communication port.
[第3の実施例]
第1、第2の実施例では、データ転送の起動条件としてデータ転送の周期が定義されている場合について説明したが、図11に示すように、起動条件として、トリガ情報が定義されていてもよい。図11の例では、PLC2のM001というアドレスで特定されるレジスタがONになったときに起動条件が成立して、データ転送が開始される。また、第1、第2の実施例では、調節計3-1~3-mが転送元で、PLC2が転送先の場合について説明したが、図11に示すように、PLC2が転送元で、調節計3-1~3-mが転送先であってもよい。
[Third Example]
In the first and second embodiments, the case where the data transfer cycle is defined as the start condition of the data transfer has been described, but as shown in FIG. 11, even if the trigger information is defined as the start condition. good. In the example of FIG. 11, when the register specified by the address M001 of PLC2 is turned ON, the start condition is satisfied and the data transfer is started. Further, in the first and second embodiments, the case where the regulators 3-1 to 3-m are the transfer source and the PLC2 is the transfer destination has been described, but as shown in FIG. 11, the PLC2 is the transfer source. The controller 3-1 to 3-m may be the transfer destination.
本実施例においても、通信制御装置1aの構成は第1、第2の実施例と同様なので、データ転送定義部15に図11に示すようなデータ転送定義情報が記憶されている場合の通信制御装置1aの動作を、図2の符号を用いて説明する。
データ転送処理部14の処理の流れは第1の実施例と同様なので、図5の符号を用いて説明する。図12は通信リクエスト処理部11およびPLC用通信処理部10-1~10-nの動作を説明するフローチャート、図13は通信リクエスト処理部13および調節計用通信処理部12-1~12-mの動作を説明するフローチャートである。
Also in this embodiment, since the configuration of the
Since the processing flow of the data
データ転送処理部14は、PLC2のM001というアドレスで特定されるレジスタがONになり、起動条件が成立すると(図5ステップS100においてYES)、データ転送定義情報で定義された転送元アドレス情報に基づいて読出しリクエスト情報を作成する(図5ステップS101)。なお、PLC2のレジスタの状態は、通信リクエスト処理部11およびPLC用通信処理部10(10-1~10-n)を介して定期的に監視することが可能である。
When the register specified by the address M001 of the PLC2 is turned on and the start condition is satisfied (YES in step S100 in FIG. 5), the data
そして、データ転送処理部14は、作成した読出しリクエスト情報を、データ転送定義情報で定義されたデータ転送元に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部11)に送信する(図5ステップS102)。
Then, the data
次に、通信リクエスト処理部11は、データ転送処理部14からの読出しリクエスト情報を受信すると(図12ステップS400においてYES)、受信した読出しリクエスト情報を内部の通信リクエストキューに格納する通信リクエストキュー処理を行う(図12ステップS401)。
Next, when the communication
続いて、通信リクエスト処理部11は、通信リクエストキューに未処理の読出しリクエスト情報が格納されている場合(図12ステップS402においてYES)、未処理の読出しリクエスト情報を処理対象として、この読出しリクエスト情報に含まれる転送元アドレス情報で特定されるデータ転送元との間で通信処理中かどうかを判定する(図12ステップS403)。
Subsequently, when the unprocessed read request information is stored in the communication request queue (YES in step S402 of FIG. 12), the communication
通信リクエスト処理部11は、データ転送元のPLC2との間で通信処理中でない場合、すなわち複数のコネクションPcon-1~Pcon-nの中に使用可能なコネクションが存在する場合(ステップS403においてNO)、処理対象の読出しリクエスト情報に基づいて、データ転送元からデータを読み出すためのコマンドフレームを作成する(図12ステップS404)。
The communication
そして、通信リクエスト処理部11は、作成したコマンドフレームを、データ転送元(本実施例ではPLC2)との間に設定された複数のコネクションPcon-1~Pcon-nのうち、使用可能なコネクションに対応するPLC用通信処理部10(10-1~10-n)に渡す。PLC用通信処理部10(10-1~10-n)は、対応するコネクションPcon(Pcon-1~Pcon-n)を介してコマンドフレームをデータ転送元のPLC2に送信する(図12ステップS405)。
Then, the communication
PLC2は、コマンドフレームを受信すると、受信したコマンドフレームに含まれる転送元アドレス情報で指定されるデータを内部のメモリから取得して、このデータを含むレスポンスフレームを作成する。そして、PLC2は、コマンドフレームを受信したコネクションPcon(Pcon-1~Pcon-n)を利用して、レスポンスフレームを通信制御装置1aに返す。
When the PLC2 receives a command frame, it acquires the data specified by the transfer source address information included in the received command frame from the internal memory and creates a response frame including this data. Then, the
コマンドフレームを送信した通信制御装置1aのPLC用通信処理部10(10-1~10-n)は、このコマンドフレームに対するレスポンスフレームをPLC2から受信すると(図12ステップS406においてYES)、受信したレスポンスフレームを通信リクエスト処理部11に渡す。
When the PLC communication processing unit 10 (10-1 to 10-n) of the
通信リクエスト処理部11は、レスポンスフレームを解析して、データ転送元のPLC2から送信されたデータをレスポンスフレームから取り出す(図12ステップS407)。通信リクエスト処理部11は、レスポンスフレームから取り出したデータを、処理対象の読出しリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図12ステップS408)。
The communication
そして、通信リクエスト処理部11は、処理対象の読出しリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該読出しリクエスト情報を、内部の通信リクエストキューから削除し(図12ステップS409)、ステップS400に戻る。
Then, the communication
次に、データ転送処理部14は、読出しリクエスト情報で要求した結果を通信リクエスト処理部11から受信すると(図5ステップS104においてYES)、この読出しリクエスト情報を作成する元となったデータ転送定義情報で定義された転送先アドレス情報に基づいて、データ転送先にデータを書き込むための書込みリクエスト情報を作成する(図5ステップS105)。書込みリクエスト情報には、転送先アドレス情報と、データ転送元のPLC2から送信されたデータとが含まれる。
Next, when the data
そして、データ転送処理部14は、作成した書込みリクエスト情報を、データ転送定義情報で定義されたデータ転送先に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部13)に送信する(図5ステップS106)。
Then, the data
次に、通信リクエスト処理部13は、データ転送処理部14からの書込みリクエスト情報を受信すると(図13ステップS500においてYES)、受信した書込みリクエスト情報を内部の通信リクエストキューに格納する通信リクエストキュー処理を行う(図13ステップS501)。
Next, when the communication
続いて、通信リクエスト処理部13は、通信リクエストキューに未処理の書込みリクエスト情報が格納されている場合(図13ステップS502においてYES)、未処理の書込みリクエスト情報を処理対象として、この書込みリクエスト情報に含まれる転送先アドレス情報で特定されるデータ転送先(本実施例では調節計3-1~3-m)との間で通信処理中かどうかを判定する(図13ステップS503)。
Subsequently, when the communication
通信リクエスト処理部13は、データ転送先との間で通信処理中でない場合(ステップS503においてNO)、処理対象の書込みリクエスト情報に基づいて、データ転送先にデータを書き込むためのコマンドフレームを作成する(図13ステップS504)。コマンドフレームには、転送先アドレス情報と、データ転送元のPLC2から送信されたデータとが含まれる。
When the communication
そして、通信リクエスト処理部13は、作成したコマンドフレームをデータ転送先(本実施例では調節計)に対応する調節計用通信処理部12(12-1~12-m)に渡す。調節計用通信処理部12(12-1~12-m)は、受け取ったコマンドフレームを、データ転送元との間に設定されたコネクションCcon(Ccon-1~Ccon-m)を介してデータ転送元の調節計3(3-1~3-m)に送信する(図13ステップS505)。
Then, the communication
調節計3(3-1~3-m)は、コマンドフレームを受信すると、コマンドフレームを受信したことを示すレスポンスフレームを通信制御装置1aに返す。また、調節計3(3-1~3-m)は、受信したコマンドフレームに含まれる転送先アドレス情報で指定されるレジスタに、このコマンドフレームに含まれるデータを書き込む。
When the controller 3 (3-1 to 3-m) receives the command frame, it returns a response frame indicating that the command frame has been received to the
コマンドフレームを送信した通信制御装置1aの調節計用通信処理部12(12-1~12-m)は、このコマンドフレームに対するレスポンスフレームを調節計3(3-1~3-m)から受信すると(図13ステップS506においてYES)、受信したレスポンスフレームを通信リクエスト処理部13に渡す。
When the communication processing unit 12 (12-1 to 12-m) for the controller of the
通信リクエスト処理部13は、レスポンスフレームを解析して(図13ステップS507)、データ転送先の調節計3(3-1~3-m)がコマンドフレームを受信したことを確認すると、処理対象の書込みリクエスト情報で要求された処理が完了したことを示す情報を、処理対象の書込みリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図13ステップS508)。
When the communication
そして、通信リクエスト処理部13は、処理対象の書込みリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該書込みリクエスト情報を、内部の通信リクエストキューから削除し(図13ステップS509)、ステップS500に戻る。
Then, the communication
データ転送処理部14は、書込みリクエスト情報で要求した結果を通信リクエスト処理部13から受信すると(図5ステップS107においてYES)、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了したかどうかを判定する(図5ステップS108)。
When the data
データ転送処理部14は、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了していない場合には(ステップS108においてNO)、ステップS104に戻る。また、データ転送処理部14は、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了した場合には(ステップS108においてYES)、ステップS100に戻り、次の起動条件が成立するまで待機する。
If the data transfer is not completed for all the sets of the data transfer source and the data transfer destination defined in the data transfer definition information (NO in step S108), the data
こうして、本実施例では、PLC2のデータを調節計3(3-1~3-m)に転送することができる。
なお、本実施例では、PLC2側のイベント発生を指定する情報がトリガ情報としてデータ転送定義部15に登録されている例で説明したが、例えば調節計3-1~3-3の特定のアラームまたはイベントの発生を指定する情報をトリガ情報としてデータ転送定義部15に登録するようにしてもよい。調節計3(3-1~3-m)の状態は、通信リクエスト処理部13および調節計用通信処理部12(12-1~12-m)を介して定期的に監視することが可能である。
Thus, in this embodiment, the data of PLC2 can be transferred to the regulator 3 (3-1 to 3-m).
In this embodiment, the information specifying the event occurrence on the PLC2 side has been described as the example in which the information specifying the event occurrence on the PLC2 side is registered in the data
第1~第3の実施例では、PLC2を上位装置、複数の調節計3(3-1~3-m)を下位装置としたが、これに限るものではない。例えば上位装置と複数の下位装置の各々がPLCであってもよい。
In the first to third embodiments, the
また、第1~第3の実施例では、既にコネクションが確立された後の動作について説明しているが、TCP/IP通信においてコネクションの確立は周知の技術であることは言うまでもない。
また、コマンドフレームの送信に対してレスポンスフレームが所定の時間内に戻らない場合には、周知のとおりコマンドフレームの再送処理が行われることは言うまでもない。
Further, in the first to third embodiments, the operation after the connection has already been established is described, but it goes without saying that the establishment of the connection is a well-known technique in TCP / IP communication.
Further, it goes without saying that if the response frame does not return within a predetermined time with respect to the transmission of the command frame, the command frame is retransmitted as is well known.
第1~第3の実施例で説明した通信制御装置1aは、CPU(Central Processing Unit)、記憶装置及びインタフェースを備えたコンピュータと、これらのハードウェア資源を制御するプログラムによって実現することができる。このコンピュータの構成例を図14に示す。コンピュータは、CPU400と、記憶装置401と、インターフェース装置(以下、I/Fと略する)402とを備えている。I/F402には、PLC2と調節計3-1~3-3とが接続される。このようなコンピュータにおいて、本発明を実現させるためのプログラムは記憶装置401に格納される。CPU400は、記憶装置401に格納されたプログラムに従って第1~第3の実施例で説明した処理を実行する。
The
本発明は、上位装置と下位装置との間でデータ転送を行う技術に適用することができる。 The present invention can be applied to a technique for transferring data between a higher-level device and a lower-level device.
1a…通信制御装置、2…PLC、3-1~3-m…調節計、10-1~10-n…PLC用通信処理部、11,13…通信リクエスト処理部、12-1~12-m…調節計用通信処理部、14…データ転送処理部、15…データ転送定義部。 1a ... Communication control device, 2 ... PLC, 3-1 to 3-m ... Controller, 10-1 to 10-n ... PLC communication processing unit, 11, 13 ... Communication request processing unit, 12-1 to 12- m ... Communication processing unit for controller, 14 ... Data transfer processing unit, 15 ... Data transfer definition unit.
Claims (6)
上位装置との間に設定される複数のコネクションの各々について設けられ、対応するコネクションを介して前記上位装置と通信を行うように構成された複数の第2の通信処理部と、
データ転送定義情報を予め記憶するように構成されたデータ転送定義部と、
前記データ転送定義情報で定義された転送元の下位装置に対する読出しリクエスト情報を作成し、この読出しリクエスト情報で要求したデータを前記転送元から受信したときに、この受信したデータを前記データ転送定義情報で定義された転送先の上位装置に書き込む書込みリクエスト情報を作成するように構成されたデータ転送処理部と、
前記読出しリクエスト情報に応じて前記転送元からデータを読み出す第1のコマンドフレームを作成して、前記転送元に対応する前記第1の通信処理部に渡し、この第1の通信処理部が第1のレスポンスフレームを前記転送元から受信したときに、前記読出しリクエスト情報で要求されたデータを前記第1のレスポンスフレームから取り出して前記データ転送処理部に渡すように構成された第1の通信リクエスト処理部と、
前記複数のコネクションの中に使用可能なコネクションが存在する場合に、前記書込みリクエスト情報に応じて前記転送先にデータを書き込む第2のコマンドフレームを作成して、前記使用可能なコネクションに対応する前記第2の通信処理部に前記第2のコマンドフレームを渡し、この第2の通信処理部が第2のレスポンスフレームを前記転送先から受信したときに、この第2のレスポンスフレームが示す結果を前記データ転送処理部に通知するように構成された第2の通信リクエスト処理部とを備えることを特徴とする通信制御装置。 A plurality of first communication processing units provided for each of the plurality of subordinate devices and configured to communicate with the corresponding subordinate devices, and a plurality of first communication processing units.
A plurality of second communication processing units provided for each of the plurality of connections set between the host device and the host device and configured to communicate with the host device via the corresponding connection, and a plurality of second communication processing units.
A data transfer definition unit configured to store data transfer definition information in advance,
When the read request information for the lower device of the transfer source defined by the data transfer definition information is created and the data requested by the read request information is received from the transfer source, the received data is used as the data transfer definition information. A data transfer processing unit configured to create write request information to be written to the higher-level device of the transfer destination defined in
A first command frame for reading data from the transfer source is created in response to the read request information and passed to the first communication processing unit corresponding to the transfer source, and the first communication processing unit is the first. When the response frame of is received from the transfer source, the data requested by the read request information is taken out from the first response frame and passed to the data transfer processing unit. Department and
When there is a usable connection among the plurality of connections, a second command frame for writing data to the transfer destination is created according to the write request information, and the usable connection is supported. When the second command frame is passed to the second communication processing unit and the second communication processing unit receives the second response frame from the transfer destination, the result indicated by the second response frame is described. A communication control device including a second communication request processing unit configured to notify the data transfer processing unit.
複数の下位装置の各々について設けられ、対応する下位装置と通信を行うように構成された複数の第2の通信処理部と、
データ転送定義情報を予め記憶するように構成されたデータ転送定義部と、
前記データ転送定義情報で定義された転送元の上位装置に対する読出しリクエスト情報を作成し、この読出しリクエスト情報で要求したデータを前記転送元から受信したときに、この受信したデータを前記データ転送定義情報で定義された転送先の下位装置に書き込む書込みリクエスト情報を作成するように構成されたデータ転送処理部と、
前記複数のコネクションの中に使用可能なコネクションが存在する場合に、前記読出しリクエスト情報に応じて前記転送元からデータを読み出す第1のコマンドフレームを作成して、前記使用可能なコネクションに対応する前記第1の通信処理部に渡し、この第1の通信処理部が第1のレスポンスフレームを前記転送元から受信したときに、前記読出しリクエスト情報で要求されたデータを前記第1のレスポンスフレームから取り出して前記データ転送処理部に渡すように構成された第1の通信リクエスト処理部と、
前記書込みリクエスト情報に応じて前記転送先にデータを書き込む第2のコマンドフレームを作成して、前記転送先に対応する前記第2の通信処理部に渡し、この第2の通信処理部が第2のレスポンスフレームを前記転送先から受信したときに、この第2のレスポンスフレームが示す結果を前記データ転送処理部に通知するように構成された第2の通信リクエスト処理部とを備えることを特徴とする通信制御装置。 A plurality of first communication processing units provided for each of the plurality of connections set between the host device and the host device and configured to communicate with the host device via the corresponding connections.
A plurality of second communication processing units provided for each of the plurality of subordinate devices and configured to communicate with the corresponding subordinate devices, and a plurality of second communication processing units.
A data transfer definition unit configured to store data transfer definition information in advance,
When the read request information for the higher-level device of the transfer source defined by the data transfer definition information is created and the data requested by the read request information is received from the transfer source, the received data is used as the data transfer definition information. A data transfer processing unit configured to create write request information to be written to the lower device of the transfer destination defined in.
When there is a usable connection among the plurality of connections, a first command frame for reading data from the transfer source is created according to the read request information, and the usable connection is supported. When the data is passed to the first communication processing unit and the first communication processing unit receives the first response frame from the transfer source, the data requested by the read request information is taken out from the first response frame. A first communication request processing unit configured to be passed to the data transfer processing unit, and
A second command frame for writing data to the transfer destination is created in response to the write request information and passed to the second communication processing unit corresponding to the transfer destination, and the second communication processing unit is the second. It is characterized by including a second communication request processing unit configured to notify the data transfer processing unit of the result indicated by the second response frame when the response frame of the above is received from the transfer destination. Communication control device.
前記データ転送定義情報は、前記転送元の情報と前記転送先の情報と共に、データ転送の起動条件を含み、
前記起動条件として、データ転送の周期が設定されていることを特徴とする通信制御装置。 In the communication control device according to claim 1 or 2.
The data transfer definition information includes information on the transfer source and information on the transfer destination, as well as data transfer activation conditions.
A communication control device characterized in that a data transfer cycle is set as the activation condition.
前記データ転送定義情報は、前記転送元の情報と前記転送先の情報と共に、データ転送の起動条件を含み、
前記起動条件として、トリガ情報が設定されていることを特徴とする通信制御装置。 In the communication control device according to claim 1 or 2.
The data transfer definition information includes information on the transfer source and information on the transfer destination, as well as data transfer activation conditions.
A communication control device characterized in that trigger information is set as the activation condition.
前記上位装置の1つの通信ポートに前記複数のコネクションが設定されていることを特徴とする通信制御装置。 The communication control device according to any one of claims 1 to 4.
A communication control device, characterized in that the plurality of connections are set in one communication port of the host device.
前記上位装置の複数の通信ポートに前記コネクションが1つずつ設定されていることを特徴とする通信制御装置。 The communication control device according to any one of claims 1 to 4.
A communication control device, characterized in that one connection is set for each of a plurality of communication ports of the host device.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017226524A JP7034681B2 (en) | 2017-11-27 | 2017-11-27 | Communication control device |
KR1020180144325A KR102136184B1 (en) | 2017-11-27 | 2018-11-21 | Communication controlling apparatus |
CN201811415141.4A CN109839891B (en) | 2017-11-27 | 2018-11-26 | Communication control device |
TW107141982A TWI688248B (en) | 2017-11-27 | 2018-11-26 | Communication control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017226524A JP7034681B2 (en) | 2017-11-27 | 2017-11-27 | Communication control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019097085A JP2019097085A (en) | 2019-06-20 |
JP7034681B2 true JP7034681B2 (en) | 2022-03-14 |
Family
ID=66844654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017226524A Active JP7034681B2 (en) | 2017-11-27 | 2017-11-27 | Communication control device |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP7034681B2 (en) |
KR (1) | KR102136184B1 (en) |
CN (1) | CN109839891B (en) |
TW (1) | TWI688248B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114697293B (en) * | 2022-03-30 | 2023-11-10 | 西安北方华创微电子装备有限公司 | Data transmission method, lower computer and controller |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001100810A (en) | 1999-09-29 | 2001-04-13 | Omron Corp | Controller |
JP2017034433A (en) | 2015-07-31 | 2017-02-09 | アズビル株式会社 | Communication control device and method |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2358761B (en) * | 2000-01-25 | 2002-03-13 | 3Com Corp | Multi-port network communication device with selective mac address filtering |
US20020060624A1 (en) * | 2000-11-17 | 2002-05-23 | George Zhang | Plug compatible power line communications network device |
ES2203295B1 (en) * | 2001-10-03 | 2005-06-01 | Airtel Movil, S.A. | SYSTEM AND PROCEDURE FOR ACCESSING THE SUBSCRIBER INFORMATION OF A MOBILE PHONE NETWORK FROM THE TCP / IP NETWORK. |
JP2005275575A (en) * | 2004-03-23 | 2005-10-06 | Toyota Motor Corp | Data collection method and data collection device |
US8078674B2 (en) * | 2007-05-10 | 2011-12-13 | International Business Machines Corporation | Server device operating in response to received request |
US9319492B2 (en) * | 2008-07-18 | 2016-04-19 | Lg Electronics Inc. | Method and an apparatus for controlling messages between host and controller |
JP2010114838A (en) * | 2008-11-10 | 2010-05-20 | Toshiba Corp | Communication protocol converting apparatus, method and program |
JP5477647B2 (en) | 2010-04-28 | 2014-04-23 | 横河電機株式会社 | Modbus control system |
JP5784284B2 (en) * | 2010-06-30 | 2015-09-24 | アズビル株式会社 | I / O device having HART communication function |
EP2617150B1 (en) * | 2010-09-14 | 2020-07-01 | Sony Corporation | Communication device using spatial diversity, communications system and method |
CN102223273B (en) * | 2011-07-14 | 2013-11-27 | 中山爱科数字科技股份有限公司 | Digital sensing network and communication method |
JP6092026B2 (en) * | 2013-07-12 | 2017-03-08 | アズビル株式会社 | Controller and data collection method |
JP6102845B2 (en) * | 2014-07-10 | 2017-03-29 | コニカミノルタ株式会社 | Connection control system, management server, connection support method, and connection support program |
KR101648144B1 (en) * | 2016-03-04 | 2016-08-16 | (주)동국일렉콘스 | Control system for programmable gateway and control method for programmable gateway using the same |
-
2017
- 2017-11-27 JP JP2017226524A patent/JP7034681B2/en active Active
-
2018
- 2018-11-21 KR KR1020180144325A patent/KR102136184B1/en active IP Right Grant
- 2018-11-26 CN CN201811415141.4A patent/CN109839891B/en active Active
- 2018-11-26 TW TW107141982A patent/TWI688248B/en active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001100810A (en) | 1999-09-29 | 2001-04-13 | Omron Corp | Controller |
JP2017034433A (en) | 2015-07-31 | 2017-02-09 | アズビル株式会社 | Communication control device and method |
Also Published As
Publication number | Publication date |
---|---|
JP2019097085A (en) | 2019-06-20 |
TWI688248B (en) | 2020-03-11 |
CN109839891A (en) | 2019-06-04 |
TW201926974A (en) | 2019-07-01 |
KR20190062214A (en) | 2019-06-05 |
KR102136184B1 (en) | 2020-07-22 |
CN109839891B (en) | 2021-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108351859B (en) | Direct memory access for endpoint devices | |
CN108885597A (en) | For using direct target access via the method and system of the nonvolatile memory bridge joint access mainframe memory by structure | |
US20130262714A1 (en) | Fieldbus gateway using virtual serial filedbus port and data transmission method thereof | |
CN106161165B (en) | Method and field device for transmitting data on an industrial process network | |
US20190197016A1 (en) | Control system and control device | |
JP7073624B2 (en) | Communication systems, communication devices and communication methods | |
JP6390113B2 (en) | Control system, development support apparatus, control apparatus, and control method | |
JP4172490B2 (en) | Programmable controller | |
US8792518B2 (en) | Automation system | |
JP7034681B2 (en) | Communication control device | |
JP5852267B2 (en) | Relay interface module for distributed control systems | |
CN110278716B (en) | PLC, network unit, CPU unit, and data transfer method | |
WO2019171845A1 (en) | Control device and control system | |
JP5673606B2 (en) | Communication device | |
US11522762B2 (en) | Coordination device and method for providing control applications via a communication network for transmitting time-critical data | |
JP2002073121A (en) | Network control system and its communication module and remote control method | |
JP2009104283A (en) | System for transmitting/receiving data by modbus and control equipment such as programmable controller | |
WO2020184381A1 (en) | Processing device, information processing system, information processing method, and program | |
WO2008068795A1 (en) | Communication system and communication device | |
JP4671056B2 (en) | Programmable controller and communication unit | |
JP2019180019A (en) | Control device | |
JP7184108B2 (en) | Communication system, communication control method, and program | |
JP7335124B2 (en) | data converter | |
JP5077817B2 (en) | Field network system | |
JP6409520B2 (en) | Control system and relay device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200911 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210806 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210824 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20211008 |
|
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: 20220208 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220302 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7034681 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |