JP7034681B2 - Communication control device - Google Patents

Communication control device Download PDF

Info

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
Application number
JP2017226524A
Other languages
Japanese (ja)
Other versions
JP2019097085A (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.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP2017226524A priority Critical patent/JP7034681B2/en
Priority to KR1020180144325A priority patent/KR102136184B1/en
Priority to CN201811415141.4A priority patent/CN109839891B/en
Priority to TW107141982A priority patent/TWI688248B/en
Publication of JP2019097085A publication Critical patent/JP2019097085A/en
Application granted granted Critical
Publication of JP7034681B2 publication Critical patent/JP7034681B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/052Linking several PLC's
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical 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/408Numerical 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus

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 Patent Document 1, There is a communication protocol that reads and writes the value of a parameter in command response communication by specifying the data address associated with the parameter (or register) in the device. Examples of such a communication protocol include MODBUS (registered trademark), MC protocol, and CPL (Controller Peripheral Link) disclosed in Patent Document 2.

図15は特許文献1に開示された通信制御装置の動作を説明する図である。図15の例では、通信制御装置1は、CPLを用いて調節計3からデータを読み出し、読み出したデータをMODBUSを用いてPLC2に書き込むようにしている。 FIG. 15 is a diagram illustrating the operation of the communication control device disclosed in Patent Document 1. In the example of FIG. 15, the communication control device 1 reads data from the controller 3 using CPL and writes the read data to PLC 2 using MODBUS.

PLC2がマスター機器として存在し、その指示によって各調節計3が制御を行うシステムにおいて、各調節計3のデータ(操作量MVや制御量PVのデータ)は
上記のように通信で読み出され、PLC2内に集約される。
通信制御装置1を介したPLC2と調節計3との通信において、従来はシリアル通信が利用されていた。シリアル通信の場合は、図16に示すように、1つの物理ポート(COMポート)につきコマンドレスポンスでデータを読み出せる調節計3の台数は1台であった。
In a system in which PLC 2 exists as a master device and each controller 3 controls according to the instruction, the data of each controller 3 (data of operation amount MV and control amount PV) is read out by communication as described above. It is aggregated in PLC2.
Conventionally, serial communication has been used in the communication between the PLC 2 and the controller 3 via the communication control device 1. In the case of serial communication, as shown in FIG. 16, the number of regulators 3 capable of reading data by command response for one physical port (COM port) was one.

近年増えてきた、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 regulators 3 on the same LAN 4. It has become possible to read a large amount of data at high speed with a command response. The amount of data per unit time for the communication control device 1 to transfer data to the PLC 2 is proportional to the number of connected controllers 3. There is a limit to the number of data that can be sent and received by the command response between the communication control device 1 and PLC2, and if the number of data that can be exchanged at one time is exceeded, it is divided into multiple communication frames 5-1, 5-2, ... It is necessary to send and receive data, and if parallel processing is not possible, it is necessary to process in order while waiting for a command response for each communication frame.

通信制御装置1とPLC2との単位時間当たりの通信量に関して、シリアル通信の場合は調節計3の接続台数が増えても、物理的な通信ポートの数の制約により大きな変化はなかったが、IP通信の場合は調節計3の接続台数に比例して通信制御装置1とPLC2との通信量が増える。その結果、多くの調節計3が利用されているシステムにおいて、通信制御装置1とPLC2との通信がボトルネックになるという課題があった。 Regarding the amount of communication between the communication control device 1 and PLC2 per unit time, in the case of serial communication, even if the number of connected controllers 3 increased, there was no significant change due to the limitation of the number of physical communication ports, but IP In the case of communication, the amount of communication between the communication control device 1 and the PLC 2 increases in proportion to the number of connected controllers 3. As a result, in a system in which many regulators 3 are used, there is a problem that communication between the communication control device 1 and the PLC 2 becomes a bottleneck.

このような課題の1つの解決方法として、通信制御装置1とPLC2との通信において、コマンドレスポンス処理においてレスポンスを待つことなく並列してコマンドを送信する方法がある。例えば、MODBUS/TCP(Transmission Control Protocol)などの、フレーム番号(フレーム識別ID)の機能を備えた通信プロトコルであれば、一度に複数のコマンドを送信することができる。 As one solution to such a problem, in the communication between the communication control device 1 and the PLC 2, there is a method of transmitting commands in parallel without waiting for a response in the command response processing. For example, if it is a communication protocol having a frame number (frame identification ID) function such as MODBUS / TCP (Transmission Control Protocol), a plurality of commands can be transmitted at one time.

しかしながら、通信プロトコルや機器固有の仕様により並列に実行できる数は制約される。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.

特開2017-34433号公報Japanese Unexamined Patent Publication No. 2017-344333 特開2011-234171号公報Japanese Unexamined Patent Publication No. 2011-234171

本発明は、上記課題を解決するためになされたもので、調節計などの下位装置の接続数が増えた場合でも、通信プロトコルの制約を受けることなく上位装置と下位装置との間の効率の良いデータ転送を実現することができる通信制御装置を提供することを目的とする。 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 communication processing unit 2 receives the second response frame from the transfer destination, the second communication request processing configured to notify the data transfer processing unit of the result indicated by the second response frame. It is characterized by having a part.

また、本発明の通信制御装置の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は、本発明の原理を説明する図である。FIG. 1 is a diagram illustrating the principle of the present invention. 図2は、本発明の第1の実施例に係る通信制御装置の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of a communication control device according to the first embodiment of the present invention. 図3は、本発明の第1の実施例においてPLCの1つのTCP通信ポートに複数のコネクションを設定する例を説明する図である。FIG. 3 is a diagram illustrating an example in which a plurality of connections are set in one TCP communication port of a PLC in the first embodiment of the present invention. 図4は、本発明の第1の実施例に係る通信制御装置のデータ転送定義部に記憶されているデータ転送定義情報を示す図である。FIG. 4 is a diagram showing data transfer definition information stored in the data transfer definition unit of the communication control device according to the first embodiment of the present invention. 図5は、本発明の第1の実施例に係る通信制御装置のデータ転送処理部の動作を説明するフローチャートである。FIG. 5 is a flowchart illustrating the operation of the data transfer processing unit of the communication control device according to the first embodiment of the present invention. 図6は、本発明の第1の実施例に係る通信制御装置の調節計用の通信リクエスト処理部および通信処理部の動作を説明するフローチャートである。FIG. 6 is a flowchart illustrating the operation of the communication request processing unit and the communication processing unit for the controller of the communication control device according to the first embodiment of the present invention. 図7は、本発明の第1の実施例に係る通信制御装置のPLC用の通信リクエスト処理部および通信処理部の動作を説明するフローチャートである。FIG. 7 is a flowchart illustrating the operation of the communication request processing unit and the communication processing unit for PLC of the communication control device according to the first embodiment of the present invention. 図8は、本発明の第1の実施例に係る通信制御装置の動作を説明するシーケンス図である。FIG. 8 is a sequence diagram illustrating the operation of the communication control device according to the first embodiment of the present invention. 図9は、従来の通信制御装置の動作を説明するシーケンス図である。FIG. 9 is a sequence diagram illustrating the operation of the conventional communication control device. 図10は、本発明の第2の実施例においてPLCの複数のTCP通信ポートにコネクションを1つずつ設定する例を説明する図である。FIG. 10 is a diagram illustrating an example in which a connection is set for each of a plurality of TCP communication ports of a PLC in a second embodiment of the present invention. 図11は、本発明の第3の実施例に係る通信制御装置のデータ転送定義部に記憶されているデータ転送定義情報を示す図である。FIG. 11 is a diagram showing data transfer definition information stored in the data transfer definition unit of the communication control device according to the third embodiment of the present invention. 図12は、本発明の第3の実施例に係る通信制御装置のPLC用の通信リクエスト処理部および通信処理部の動作を説明するフローチャートである。FIG. 12 is a flowchart illustrating the operation of the communication request processing unit and the communication processing unit for PLC of the communication control device according to the third embodiment of the present invention. 図13は、本発明の第3の実施例に係る通信制御装置の調節計用の通信リクエスト処理部および通信処理部の動作を説明するフローチャートである。FIG. 13 is a flowchart illustrating the operation of the communication request processing unit and the communication processing unit for the controller of the communication control device according to the third embodiment of the present invention. 図14は、本発明の第1~第3の実施例に係る通信制御装置を実現するコンピュータの構成例を示すブロック図である。FIG. 14 is a block diagram showing a configuration example of a computer that realizes the communication control device according to the first to third embodiments of the present invention. 図15は、従来の通信制御装置の動作を説明する図である。FIG. 15 is a diagram illustrating the operation of the conventional communication control device. 図16は、シリアル通信を利用したPLCと調節計との通信を説明する図である。FIG. 16 is a diagram illustrating communication between the PLC and the controller using serial communication. 図17は、LANを利用したPLCと調節計との通信を説明する図である。FIG. 17 is a diagram illustrating communication between the PLC and the controller using a LAN.

[発明の原理]
図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 communication control device 1a executes command response processing in parallel for a plurality of connections by utilizing the fact that a plurality of connections can be established with the PLC at the same time. Reduce wasted time due to waiting for a response from PLC.

[第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 communication control device 1a according to the first embodiment of the present invention. The communication control device 1a is connected to the PLC2 via a network such as Ethernet, is provided for each of a plurality of connections set between the PLC2 and the PLC2, and communicates with the PLC2 via the corresponding connection. Communication processing units 10-1 to 10-n (n is an integer of 2 or more) and a command frame that writes data to the transfer destination according to the write request information from the data transfer processing unit described later can be created and used. The result shown by this response frame when the command frame is passed to the communication processing units 10-1 to 10-n for PLC corresponding to the connection and the communication processing units 10-1 to 10-n for PLC receive the response frame. Is provided to the communication request processing unit 11 for notifying the data transfer processing unit, and the regulators 3-1 to 3-m, which are connected to the regulators 3-1 to 3-m via a network such as Ethernet. Create a command frame to read data from the transfer source according to the communication processing unit 12-1 to 12-m (m is an integer of 2 or more) for each controller and the read request information from the data transfer processing unit. It is passed to the communication processing units 12-1 to 12-m for the controller corresponding to the transfer source, and when the communication processing units 12-1 to 12-m for the controller receive the response frame, it is requested by the read request information. The communication request processing unit 13 that extracts data from the response frame and passes it to the data transfer processing unit and the read request information for the transfer source defined in the data transfer definition information are created, and the data requested by this read request information is transmitted from the transfer source. The data transfer processing unit 14 that creates write request information that writes the received data to the transfer destination defined in the data transfer definition information when it is received, the transfer source information, the transfer destination information, and the data transfer start condition. It is composed of a data transfer definition unit 15 that stores data transfer definition information including and in advance.

本実施例では、図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 TCP communication port 200 will be described as a specification of PLC2. In FIG. 3, 100-1 to 100-n are TCP communication ports set in the PLC communication processing units 10-1 to 10-n of the communication control device 1a, respectively, and 101-1 to 101-m are communication control devices 1a, respectively. TCP communication ports set in the controller communication processing unit 12-1 to 12-m, 300-1 to 300-m are TCP communication ports of the controller 3-1 to 3-m, respectively, Concon-1 to Ccon. -M is a connection set between the TCP communication ports 101-1 to 101-m and the TCP communication ports 300-1 to 300-m.

データ転送定義部15には、図4に示すようなデータ転送定義情報が予め記憶されている。データ転送定義情報は、データ転送の起動条件と、データ転送元のアドレス情報(本実施例では調節計3-1~3-mの監視ポイントやデータを指定するアドレス)と、データ転送先のアドレス情報(本実施例ではPLC2のレジスタのアドレス)とからなる。 The data transfer definition unit 15 stores data transfer definition information as shown in FIG. 4 in advance. The data transfer definition information includes the data transfer start condition, the data transfer source address information (in this embodiment, the monitoring point of the regulators 3-1 to 3-m and the address that specifies the data), and the data transfer destination address. It consists of information (in this embodiment, the address of the register of PLC2).

図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 communication control device 1a.

図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 transfer processing unit 14 of the communication control device 1a of the present embodiment, and FIG. 6 is an operation of the communication request processing unit 13 and the communication processing units 12-1 to 12-m for the controller. FIG. 7 is a flowchart illustrating the operation of the communication request processing unit 11 and the PLC communication processing units 10-1 to 10-n.

データ転送処理部14は、データ転送定義部15のデータ転送定義情報で定義された起動条件が成立するまで待機する。
データ転送処理部14は、データ転送を実施すべきタイミングになり、起動条件が成立すると(図5ステップS100においてYES)、データ転送定義情報で定義された転送元アドレス情報に基づいて、データ転送元からデータを読み出すための読出しリクエスト情報を作成する(図5ステップS101)。読出しリクエスト情報には、転送元アドレス情報が含まれる。
The data transfer processing unit 14 waits until the start condition defined in the data transfer definition information of the data transfer definition unit 15 is satisfied.
When the data transfer processing unit 14 reaches the timing to execute the data transfer and the activation condition is satisfied (YES in step S100 in FIG. 5), the data transfer source 14 is based on the transfer source address information defined in the data transfer definition information. Create read request information for reading data from (FIG. 5, step S101). The read request information includes transfer source address information.

そして、データ転送処理部14は、作成した読出しリクエスト情報を、データ転送定義情報で定義されたデータ転送元に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部13)に送信する(図5ステップS102)。
データ転送処理部14は、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組について読出しリクエスト情報の送信が完了するまで(図5ステップS103においてYES)、ステップS101,S102の処理を繰り返し行う。
Then, the data transfer processing unit 14 transmits the created read request information to the communication request processing unit (communication request processing unit 13 in this embodiment) corresponding to the data transfer source defined in the data transfer definition information (FIG. FIG. 5 steps S102).
The data transfer processing unit 14 of steps S101 and S102 until the transmission of read request information for all the sets of the data transfer source and the data transfer destination defined in the data transfer definition information is completed (YES in step S103 of FIG. 5). Repeat the process.

次に、通信リクエスト処理部13は、データ転送処理部14からの読出しリクエスト情報を受信すると(図6ステップS200においてYES)、受信した読出しリクエスト情報を内部の通信リクエストキュー(不図示)に格納する通信リクエストキュー処理を行う(図6ステップS201)。 Next, when the communication request processing unit 13 receives the read request information from the data transfer processing unit 14 (YES in step S200 of FIG. 6), the communication request processing unit 13 stores the received read request information in the internal communication request queue (not shown). Communication request queue processing is performed (step S201 in FIG. 6).

続いて、通信リクエスト処理部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 request processing unit 13 sets the unprocessed read request information as a processing target, and sets the unprocessed read request information as the processing target. It is determined whether or not communication processing is in progress with the data transfer source regulators 3 (3-1 to 3-m) specified by the transfer source address information included in (FIG. 6, step S203).

通信リクエスト処理部13は、データ転送元との間で通信処理中でない場合(ステップS203においてNO)、処理対象の読出しリクエスト情報に基づいて、データ転送元からデータを読み出すためのコマンドフレームを作成する(図6ステップS204)。コマンドフレームには、転送元アドレス情報が含まれる。 When the communication request processing unit 13 is not in the process of communicating with the data transfer source (NO in step S203), the communication request processing unit 13 creates a command frame for reading data from the data transfer source based on the read request information to be processed. (FIG. 6 step S204). The command frame contains the forwarding address information.

そして、通信リクエスト処理部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 request processing unit 13 passes the created command frame to the communication processing unit 12 (12-1 to 12-m) for the controller corresponding to the data transfer source (regulator in this embodiment). The communication processing unit 12 (12-1 to 12-m) for the controller transfers the received command frame to the data transfer source via the connection Con (Conon-1 to Con-m) set. It is transmitted to the original controller 3 (3-1 to 3-m) (FIG. 6, step S205).

調節計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 communication control device 1a that is the source of the command frame, and the connection Concon (Conon-1 to Conon-m) is set. Is transmitted to the communication control device 1a via.

コマンドフレームを送信した通信制御装置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 communication control device 1a that has transmitted the command frame receives the response frame for this command frame from the controller 3 (3-1 to 3-m). (YES in step S206 of FIG. 6), the received response frame is passed to the communication request processing unit 13.

通信リクエスト処理部13は、レスポンスフレームを解析して、データ転送元の調節計3(3-1~3-m)から送信されたデータをレスポンスフレームから取り出す(図6ステップS207)。通信リクエスト処理部13は、レスポンスフレームから取り出したデータを、処理対象の読出しリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図6ステップS208)。 The communication request processing unit 13 analyzes the response frame and extracts the data transmitted from the data transfer source controller 3 (3-1 to 3-m) from the response frame (step S207 in FIG. 6). The communication request processing unit 13 transmits the data extracted from the response frame to the data transfer processing unit 14 as a result requested by the read request information to be processed (step S208 in FIG. 6).

そして、通信リクエスト処理部13は、処理対象の読出しリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該読出しリクエスト情報を、内部の通信リクエストキューから削除し(図6ステップS209)、ステップS200に戻る。 Then, the communication request processing unit 13 sends the result requested by the read request information to be processed to the data transfer processing unit 14, and then deletes the read request information from the internal communication request queue (step S209 of FIG. 6). ), Return to step S200.

次に、データ転送処理部14は、読出しリクエスト情報で要求した結果を通信リクエスト処理部13から受信すると(図5ステップS104においてYES)、この読出しリクエスト情報を作成する元となったデータ転送定義情報で定義された転送先アドレス情報に基づいて、データ転送先にデータを書き込むための書込みリクエスト情報を作成する(図5ステップS105)。書込みリクエスト情報には、転送先アドレス情報と、データ転送元の調節計3(3-1~3-m)から送信されたデータとが含まれる。 Next, when the data transfer processing unit 14 receives the result requested by the read request information from the communication request processing unit 13 (YES in step S104 of FIG. 5), the data transfer definition information from which the read request information is created is created. Create write request information for writing data to the data transfer destination based on the transfer destination address information defined in (FIG. 5, step S105). The write request information includes the transfer destination address information and the data transmitted from the data transfer source controller 3 (3-1 to 3-m).

そして、データ転送処理部14は、作成した書込みリクエスト情報を、データ転送定義情報で定義されたデータ転送先に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部11)に送信する(図5ステップS106)。 Then, the data transfer processing unit 14 transmits the created write request information to the communication request processing unit (communication request processing unit 11 in this embodiment) corresponding to the data transfer destination defined in the data transfer definition information (FIG. 5 steps S106).

次に、通信リクエスト処理部11は、データ転送処理部14からの書込みリクエスト情報を受信すると(図7ステップS300においてYES)、受信した書込みリクエスト情報を内部の通信リクエストキュー(不図示)に格納する通信リクエストキュー処理を行う(図7ステップS301)。 Next, when the communication request processing unit 11 receives the write request information from the data transfer processing unit 14 (YES in step S300 of FIG. 7), the communication request processing unit 11 stores the received write request information in the internal communication request queue (not shown). Communication request queue processing is performed (step S301 in FIG. 7).

続いて、通信リクエスト処理部11は、通信リクエストキューに未処理の書込みリクエスト情報が格納されている場合(図7ステップS302においてYES)、未処理の書込みリクエスト情報を処理対象として、この書込みリクエスト情報に含まれる転送先アドレス情報で特定されるデータ転送先(本実施例ではPLC2)との間で通信処理中かどうかを判定する(図7ステップS303)。 Subsequently, when the communication request processing unit 11 stores the unprocessed write request information in the communication request queue (YES in step S302 of FIG. 7), the communication request processing unit 11 sets the unprocessed write request information as a processing target, and sets the unprocessed write request information as the processing target. It is determined whether or not communication processing is in progress with the data transfer destination (PLC2 in this embodiment) specified by the transfer destination address information included in (FIG. 7 step S303).

本実施例では、通信制御装置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 communication control device 1a and the PLC2, when all the connections Pcon-1 to Pcon-n are used. The determination result is that communication processing is in progress, and if at least one of the connections Pcon-1 to Pcon-n is unused, the determination result is that communication processing is not in progress.

通信リクエスト処理部11は、データ転送先との間で通信処理中でない場合、すなわち複数のコネクションPcon-1~Pcon-nの中に使用可能なコネクションが存在する場合(ステップS303においてNO)、処理対象の書込みリクエスト情報に基づいて、データ転送先にデータを書き込むためのコマンドフレームを作成する(図7ステップS304)。コマンドフレームには、転送先アドレス情報と、データ転送元の調節計3(3-1~3-m)から送信されたデータとが含まれる。 The communication request processing unit 11 processes when communication processing is not in progress with the data transfer destination, that is, when there is a usable connection among a plurality of connections Pcon-1 to Pcon-n (NO in step S303). A command frame for writing data to the data transfer destination is created based on the target write request information (step S304 in FIG. 7). The command frame includes transfer destination address information and data transmitted from the data transfer source controller 3 (3-1 to 3-m).

そして、通信リクエスト処理部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 request processing unit 11 transfers the created command frame to a usable connection among a plurality of connections Pcon-1 to Pcon-n set between the created command frame and the data transfer destination (PLC2 in this embodiment). It is passed to the corresponding PLC communication processing unit 10 (10-1 to 10-n). The PLC communication processing unit 10 (10-1 to 10-n) transmits a command frame to the data transfer destination PLC2 via the corresponding connection Pcon (Pcon-1 to Pcon-n) (step S305 in FIG. 7). ..

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 communication control device 1a by using the connection Pcon (Pcon-1 to Pcon-n) that has received the command frame. Further, PLC2 writes the data included in this command frame to the register specified by the forwarding address information included in the received command frame.
In this way, the data of the controller 3 (3-1 to 3-m) can be transferred to the PLC 2.

コマンドフレームを送信した通信制御装置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 communication control device 1a that has transmitted the command frame receives the response frame for this command frame from the PLC 2 (YES in step S306 of FIG. 7), the received response. The frame is passed to the communication request processing unit 11.

通信リクエスト処理部11は、レスポンスフレームを解析して(図7ステップS307)、データ転送先のPLC2がコマンドフレームを受信したことを確認すると、処理対象の書込みリクエスト情報で要求された処理が完了したことを示す情報を、処理対象の書込みリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図7ステップS308)。 When the communication request processing unit 11 analyzes the response frame (step S307 in FIG. 7) and confirms that the PLC2 of the data transfer destination has received the command frame, the processing requested by the write request information to be processed is completed. Information indicating that is transmitted to the data transfer processing unit 14 as a result requested by the write request information to be processed (step S308 in FIG. 7).

そして、通信リクエスト処理部11は、処理対象の書込みリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該書込みリクエスト情報を、内部の通信リクエストキューから削除し(図7ステップS309)、ステップS300に戻る。 Then, the communication request processing unit 11 sends the result requested by the write request information to be processed to the data transfer processing unit 14, and then deletes the write request information from the internal communication request queue (step S309 of FIG. 7). ), Return to step S300.

データ転送処理部14は、書込みリクエスト情報で要求した結果を通信リクエスト処理部11から受信すると(図5ステップS107においてYES)、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了したかどうかを判定する(図5ステップS108)。 When the data transfer processing unit 14 receives the result requested by the write request information from the communication request processing unit 11 (YES in step S107 of FIG. 5), all the data transfer sources and data transfer destinations defined in the data transfer definition information. It is determined whether or not the data transfer is completed for the set (step S108 in FIG. 5).

データ転送処理部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 transfer processing unit 14 returns to step S104. Further, when the data transfer is completed for all the sets of the data transfer source and the data transfer destination defined in the data transfer definition information (YES in step S108), the data transfer processing unit 14 returns to step S100 and next. Wait until the start condition of is satisfied.

図8は本実施例の通信制御装置1aの動作を説明するシーケンス図である。図8の例では、通信制御装置1aとPLC2との間に3つのコネクションPcon-1~Pcon-3が設定されている場合について説明する。 FIG. 8 is a sequence diagram illustrating the operation of the communication control device 1a of this embodiment. In the example of FIG. 8, a case where three connections Pcon-1 to Pcon-3 are set between the communication control device 1a and the PLC2 will be described.

図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 communication control device 1a transmits command frames Cc-1 to Cc-3 for reading data to the controllers 3-1 to 3-3. With respect to the command frames Cc-1 to Cc-3, the regulators 3-1 to 3-3 return the response frames Cr-1 to Cr-3 including the requested data to the communication control device 1a.

そして、通信制御装置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 communication control device 1a uses the command frames Pc-1 to Pc-3 for writing the data contained in the received response frames Cr-1 to Cr-3 to the PLC2, and the three connections Pcon-1 to Pcon-3. It is transmitted to PLC2 in parallel via. The PLC2 returns the response frames Pr-1 to Pr-3 indicating that the command frames Pc-1 to Pc-3 have been received to the communication control device 1a via the connections Pcon-1 to Pcon-3, respectively.

図9は従来の通信制御装置1の動作を説明するシーケンス図である。従来においても、通信制御装置1と調節計3-1~3-3との間のコマンドレスポンス処理は本実施例と同様である。 FIG. 9 is a sequence diagram illustrating the operation of the conventional communication control device 1. Conventionally, the command response processing between the communication control device 1 and the controllers 3-1 to 3-3 is the same as in this embodiment.

一方、通信制御装置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 communication control device 1 and the PLC2, the communication control device 1 continues until the response frame Pr-1 for the command frame Pc-1 is received. Command frame Pc-2 cannot be transmitted to PLC2. Similarly, the communication control device 1 cannot transmit the next command frame Pc-3 to the PLC 2 until the response frame Pr-2 for the command frame Pc-2 is received. As described above, it can be seen that the conventional communication control device 1 cannot execute a plurality of command response processes in parallel.

以上のように、本実施例では、通信制御装置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 communication control device 1a and the PLC2 and performing communication, the PLC2 and the controller 3 (3-1 to 3) via the communication control device 1a are communicated. Efficient data transfer with 3-m) can be realized. The communication protocol of the PLC 2 and the communication protocol of the controller 3 (3-1 to 3-m) may be any communication protocol that can use TCP / IP communication, and the present invention may be applied regardless of the type of communication protocol. can. Therefore, efficient data transfer can be realized without being restricted by the communication protocol.

[第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 TCP communication port 200 has been described as a specification of PLC2. On the other hand, as shown in FIG. 10, as the specification of PLC2, only one connection is allowed to be established for one TCP communication port, but a plurality of TCP communication ports 200-1 to 200-n are set. The present invention is also applicable when it is possible to establish connections Pcon-1 to Pcon-n for each TCP communication port 200-1 to 200-n.
Also in the example shown in FIG. 10, the configuration and operation of the communication control device 1a are as described in the first embodiment.

また、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 communication control device 1a is the same as that of the first and second embodiments, the communication control when the data transfer definition information as shown in FIG. 11 is stored in the data transfer definition unit 15. The operation of the device 1a will be described with reference to the reference numerals in FIG.
Since the processing flow of the data transfer processing unit 14 is the same as that of the first embodiment, the reference numerals in FIG. 5 will be used for description. FIG. 12 is a flowchart illustrating the operation of the communication request processing unit 11 and the communication processing units 10-1 to 10-n for PLC, and FIG. 13 shows the communication request processing unit 13 and the communication processing units 12-1 to 12-m for the controller. It is a flowchart explaining the operation of.

データ転送処理部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 transfer processing unit 14 is based on the transfer source address information defined in the data transfer definition information. To create read request information (step S101 in FIG. 5). The state of the register of the PLC 2 can be periodically monitored via the communication request processing unit 11 and the PLC communication processing unit 10 (10-1 to 10-n).

そして、データ転送処理部14は、作成した読出しリクエスト情報を、データ転送定義情報で定義されたデータ転送元に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部11)に送信する(図5ステップS102)。 Then, the data transfer processing unit 14 transmits the created read request information to the communication request processing unit (communication request processing unit 11 in this embodiment) corresponding to the data transfer source defined in the data transfer definition information (FIG. FIG. 5 steps S102).

次に、通信リクエスト処理部11は、データ転送処理部14からの読出しリクエスト情報を受信すると(図12ステップS400においてYES)、受信した読出しリクエスト情報を内部の通信リクエストキューに格納する通信リクエストキュー処理を行う(図12ステップS401)。 Next, when the communication request processing unit 11 receives the read request information from the data transfer processing unit 14 (YES in step S400 in FIG. 12), the communication request queue process stores the received read request information in the internal communication request queue. (FIG. 12, step S401).

続いて、通信リクエスト処理部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 request processing unit 11 sets the unprocessed read request information as a processing target, and sets the unprocessed read request information as the processing target. It is determined whether or not communication processing is being performed with the data transfer source specified by the transfer source address information included in (FIG. 12, step S403).

通信リクエスト処理部11は、データ転送元のPLC2との間で通信処理中でない場合、すなわち複数のコネクションPcon-1~Pcon-nの中に使用可能なコネクションが存在する場合(ステップS403においてNO)、処理対象の読出しリクエスト情報に基づいて、データ転送元からデータを読み出すためのコマンドフレームを作成する(図12ステップS404)。 The communication request processing unit 11 is not in the process of communicating with the data transfer source PLC2, that is, when there is a usable connection among a plurality of connections Pcon-1 to Pcon-n (NO in step S403). , Create a command frame for reading data from the data transfer source based on the read request information to be processed (step S404 in FIG. 12).

そして、通信リクエスト処理部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 request processing unit 11 transfers the created command frame to a usable connection among a plurality of connections Pcon-1 to Pcon-n set between the created command frame and the data transfer source (PLC2 in this embodiment). It is passed to the corresponding PLC communication processing unit 10 (10-1 to 10-n). The PLC communication processing unit 10 (10-1 to 10-n) transmits a command frame to the data transfer source PLC2 via the corresponding connection Pcon (Pcon-1 to Pcon-n) (step S405 of FIG. 12). ..

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 PLC 2 returns the response frame to the communication control device 1a by using the connection Pcon (Pcon-1 to Pcon-n) that has received the command frame.

コマンドフレームを送信した通信制御装置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 communication control device 1a that has transmitted the command frame receives the response frame for this command frame from the PLC 2 (YES in step S406 of FIG. 12), the received response. The frame is passed to the communication request processing unit 11.

通信リクエスト処理部11は、レスポンスフレームを解析して、データ転送元のPLC2から送信されたデータをレスポンスフレームから取り出す(図12ステップS407)。通信リクエスト処理部11は、レスポンスフレームから取り出したデータを、処理対象の読出しリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図12ステップS408)。 The communication request processing unit 11 analyzes the response frame and extracts the data transmitted from the data transfer source PLC2 from the response frame (step S407 in FIG. 12). The communication request processing unit 11 transmits the data extracted from the response frame to the data transfer processing unit 14 as a result requested by the read request information to be processed (step S408 in FIG. 12).

そして、通信リクエスト処理部11は、処理対象の読出しリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該読出しリクエスト情報を、内部の通信リクエストキューから削除し(図12ステップS409)、ステップS400に戻る。 Then, the communication request processing unit 11 sends the result requested by the read request information to be processed to the data transfer processing unit 14, and then deletes the read request information from the internal communication request queue (step S409 of FIG. 12). ), Return to step S400.

次に、データ転送処理部14は、読出しリクエスト情報で要求した結果を通信リクエスト処理部11から受信すると(図5ステップS104においてYES)、この読出しリクエスト情報を作成する元となったデータ転送定義情報で定義された転送先アドレス情報に基づいて、データ転送先にデータを書き込むための書込みリクエスト情報を作成する(図5ステップS105)。書込みリクエスト情報には、転送先アドレス情報と、データ転送元のPLC2から送信されたデータとが含まれる。 Next, when the data transfer processing unit 14 receives the result requested by the read request information from the communication request processing unit 11 (YES in step S104 of FIG. 5), the data transfer definition information from which the read request information is created is created. Create write request information for writing data to the data transfer destination based on the transfer destination address information defined in (FIG. 5, step S105). The write request information includes transfer destination address information and data transmitted from the data transfer source PLC2.

そして、データ転送処理部14は、作成した書込みリクエスト情報を、データ転送定義情報で定義されたデータ転送先に対応する通信リクエスト処理部(本実施例では通信リクエスト処理部13)に送信する(図5ステップS106)。 Then, the data transfer processing unit 14 transmits the created write request information to the communication request processing unit (communication request processing unit 13 in this embodiment) corresponding to the data transfer destination defined in the data transfer definition information (FIG. FIG. 5 steps S106).

次に、通信リクエスト処理部13は、データ転送処理部14からの書込みリクエスト情報を受信すると(図13ステップS500においてYES)、受信した書込みリクエスト情報を内部の通信リクエストキューに格納する通信リクエストキュー処理を行う(図13ステップS501)。 Next, when the communication request processing unit 13 receives the write request information from the data transfer processing unit 14 (YES in step S500 in FIG. 13), the communication request queue process stores the received write request information in the internal communication request queue. (Step S501 in FIG. 13).

続いて、通信リクエスト処理部13は、通信リクエストキューに未処理の書込みリクエスト情報が格納されている場合(図13ステップS502においてYES)、未処理の書込みリクエスト情報を処理対象として、この書込みリクエスト情報に含まれる転送先アドレス情報で特定されるデータ転送先(本実施例では調節計3-1~3-m)との間で通信処理中かどうかを判定する(図13ステップS503)。 Subsequently, when the communication request processing unit 13 stores the unprocessed write request information in the communication request queue (YES in step S502 of FIG. 13), the communication request processing unit 13 sets the unprocessed write request information as a processing target, and sets the unprocessed write request information as the processing target. It is determined whether or not communication processing is being performed with the data transfer destination (regulators 3-1 to 3-m in this embodiment) specified by the transfer destination address information included in (FIG. 13, step S503).

通信リクエスト処理部13は、データ転送先との間で通信処理中でない場合(ステップS503においてNO)、処理対象の書込みリクエスト情報に基づいて、データ転送先にデータを書き込むためのコマンドフレームを作成する(図13ステップS504)。コマンドフレームには、転送先アドレス情報と、データ転送元のPLC2から送信されたデータとが含まれる。 When the communication request processing unit 13 is not in the process of communicating with the data transfer destination (NO in step S503), the communication request processing unit 13 creates a command frame for writing data to the data transfer destination based on the write request information to be processed. (FIG. 13 step S504). The command frame includes the transfer destination address information and the data transmitted from the data transfer source PLC2.

そして、通信リクエスト処理部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 request processing unit 13 passes the created command frame to the communication processing unit 12 (12-1 to 12-m) for the controller corresponding to the data transfer destination (regulator in this embodiment). The communication processing unit 12 (12-1 to 12-m) for the controller transfers the received command frame to the data transfer source via the connection Con (Conon-1 to Con-m) set. It is transmitted to the original controller 3 (3-1 to 3-m) (FIG. 13, step S505).

調節計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 communication control device 1a. Further, the regulator 3 (3-1 to 3-m) writes the data included in the command frame to the register specified by the transfer destination address information included in the received command frame.

コマンドフレームを送信した通信制御装置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 communication control device 1a that has transmitted the command frame receives the response frame for this command frame from the controller 3 (3-1 to 3-m). (YES in step S506 of FIG. 13), the received response frame is passed to the communication request processing unit 13.

通信リクエスト処理部13は、レスポンスフレームを解析して(図13ステップS507)、データ転送先の調節計3(3-1~3-m)がコマンドフレームを受信したことを確認すると、処理対象の書込みリクエスト情報で要求された処理が完了したことを示す情報を、処理対象の書込みリクエスト情報で要求された結果としてデータ転送処理部14に送信する(図13ステップS508)。 When the communication request processing unit 13 analyzes the response frame (step S507 in FIG. 13) and confirms that the data transfer destination controller 3 (3-1 to 3-m) has received the command frame, the processing target is processed. Information indicating that the processing requested by the write request information has been completed is transmitted to the data transfer processing unit 14 as a result requested by the write request information to be processed (step S508 in FIG. 13).

そして、通信リクエスト処理部13は、処理対象の書込みリクエスト情報で要求された結果をデータ転送処理部14に送信した後、当該書込みリクエスト情報を、内部の通信リクエストキューから削除し(図13ステップS509)、ステップS500に戻る。 Then, the communication request processing unit 13 sends the result requested by the write request information to be processed to the data transfer processing unit 14, and then deletes the write request information from the internal communication request queue (step S509 of FIG. 13). ), Return to step S500.

データ転送処理部14は、書込みリクエスト情報で要求した結果を通信リクエスト処理部13から受信すると(図5ステップS107においてYES)、データ転送定義情報で定義されたデータ転送元とデータ転送先の全ての組についてデータ転送が完了したかどうかを判定する(図5ステップS108)。 When the data transfer processing unit 14 receives the result requested by the write request information from the communication request processing unit 13 (YES in step S107 of FIG. 5), all the data transfer sources and data transfer destinations defined in the data transfer definition information. It is determined whether or not the data transfer is completed for the set (step S108 in FIG. 5).

データ転送処理部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 transfer processing unit 14 returns to step S104. Further, when the data transfer is completed for all the sets of the data transfer source and the data transfer destination defined in the data transfer definition information (YES in step S108), the data transfer processing unit 14 returns to step S100 and next. Wait until the start condition of is satisfied.

こうして、本実施例では、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 transfer definition unit 15 as the trigger information. Alternatively, the information specifying the occurrence of the event may be registered in the data transfer definition unit 15 as the trigger information. The status of the controller 3 (3-1 to 3-m) can be periodically monitored via the communication request processing unit 13 and the controller communication processing unit 12 (12-1 to 12-m). be.

第1~第3の実施例では、PLC2を上位装置、複数の調節計3(3-1~3-m)を下位装置としたが、これに限るものではない。例えば上位装置と複数の下位装置の各々がPLCであってもよい。 In the first to third embodiments, the PLC 2 is used as a higher-level device, and the plurality of regulators 3 (3-1 to 3-m) are used as lower-level devices, but the present invention is not limited to this. For example, each of the higher-level device and the plurality of lower-level devices may be a PLC.

また、第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 communication control device 1a described in the first to third embodiments can be realized by a computer including a CPU (Central Processing Unit), a storage device, and an interface, and a program for controlling these hardware resources. An example of the configuration of this computer is shown in FIG. The computer includes a CPU 400, a storage device 401, and an interface device (hereinafter, abbreviated as I / F) 402. The PLC2 and the regulators 3-1 to 3-3 are connected to the I / F 402. In such a computer, the program for realizing the present invention is stored in the storage device 401. The CPU 400 executes the processes described in the first to third embodiments according to the program stored in the storage device 401.

本発明は、上位装置と下位装置との間でデータ転送を行う技術に適用することができる。 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)

複数の下位装置の各々について設けられ、対応する下位装置と通信を行うように構成された複数の第1の通信処理部と、
上位装置との間に設定される複数のコネクションの各々について設けられ、対応するコネクションを介して前記上位装置と通信を行うように構成された複数の第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.
上位装置との間に設定される複数のコネクションの各々について設けられ、対応するコネクションを介して前記上位装置と通信を行うように構成された複数の第1の通信処理部と、
複数の下位装置の各々について設けられ、対応する下位装置と通信を行うように構成された複数の第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.
請求項1または2記載の通信制御装置において、
前記データ転送定義情報は、前記転送元の情報と前記転送先の情報と共に、データ転送の起動条件を含み、
前記起動条件として、データ転送の周期が設定されていることを特徴とする通信制御装置。
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.
請求項1または2記載の通信制御装置において、
前記データ転送定義情報は、前記転送元の情報と前記転送先の情報と共に、データ転送の起動条件を含み、
前記起動条件として、トリガ情報が設定されていることを特徴とする通信制御装置。
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乃至4のいずれか1項に記載の通信制御装置において、
前記上位装置の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乃至4のいずれか1項に記載の通信制御装置において、
前記上位装置の複数の通信ポートに前記コネクションが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.
JP2017226524A 2017-11-27 2017-11-27 Communication control device Active JP7034681B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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