JP2015082271A - Cyclic communication system - Google Patents

Cyclic communication system Download PDF

Info

Publication number
JP2015082271A
JP2015082271A JP2013220834A JP2013220834A JP2015082271A JP 2015082271 A JP2015082271 A JP 2015082271A JP 2013220834 A JP2013220834 A JP 2013220834A JP 2013220834 A JP2013220834 A JP 2013220834A JP 2015082271 A JP2015082271 A JP 2015082271A
Authority
JP
Japan
Prior art keywords
data
cyclic
memory
communication
cyclic communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013220834A
Other languages
Japanese (ja)
Inventor
和生 増濱
Kazuo Masuhama
和生 増濱
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2013220834A priority Critical patent/JP2015082271A/en
Publication of JP2015082271A publication Critical patent/JP2015082271A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a cyclic communication system for reducing the processing load of a processor while securing guarantee for the simultaneity of data during cyclic communication.SOLUTION: Between a processor control unit 15a and a memory control unit 12a for performing a write/read to and from a cyclic memory 11a of cyclic communication data is provided a configuration for securing the simultaneity of each data when cyclic communication data is transmitted/received after being divided into in a plurality of data. This configuration is realized by providing a pair of transmission data memories 23a, 24a, a transmission data switching unit 22a for switching the read and write sides of the transmission data memories, a pair of reception data memories 26a, 27a, and a reception data switching unit 25a for switching the read and write sides of the reception data memories, as well as a data monitoring control unit 21a for transferring data between the transmission data memories or reception data memories and the cyclic memory 11a.

Description

この発明は、複数の端末(通信ノード)がネットワーク(伝送路)を介して、サイクリック通信を行うサイクリック通信システムに係わり、特に、例えば産業用のサイクリックデータや画像データのように一定の更新期間を要求される用途で、かつ物理層は汎用のイーサネット(登録商標)などを使用したサイクリック通信システムに関するものである。   The present invention relates to a cyclic communication system in which a plurality of terminals (communication nodes) perform cyclic communication via a network (transmission path). In particular, the present invention relates to, for example, certain cyclic data or image data for industrial use. The present invention relates to a cyclic communication system using a general-purpose Ethernet (registered trademark) or the like for an application requiring an update period.

従来のサイクリック通信システムにおいては、複数の端末がネットワーク上に一定周期で送信し、受信する端末がメモリイメージで最新データを格納し、そのメモリを読出している(例えば、特許文献1、特許文献2を参照)。
特許文献1は、サイクリック用メモリをプロセッサが読出し/書込みをする際、通信フレームの受信/送信を停止させることにより、プロセッサが読出したデータの同時性を保証している。
また、特許文献2では、プロセッサが読出し/書込みした時、通信フレームが受信/送信している場合は、読出し/書込みを停止させることにより、プロセッサが読出したデータの同時性を保証している。
In a conventional cyclic communication system, a plurality of terminals transmit data on a network at a constant cycle, and a receiving terminal stores the latest data as a memory image and reads the memory (for example, Patent Document 1, Patent Document) 2).
In Patent Document 1, when the processor reads / writes the cyclic memory, the reception / transmission of the communication frame is stopped, thereby guaranteeing the simultaneity of the data read by the processor.
Further, in Patent Document 2, when the communication frame is received / transmitted when the processor reads / writes, the read / write is stopped to guarantee the simultaneity of the data read by the processor.

特開2007−328589号公報(第4〜5頁、第1図)JP 2007-328589 A (pages 4-5, FIG. 1) 特開平9−269934号公報(第4〜6頁、第2図)JP-A-9-269934 (pages 4-6, FIG. 2) 特開平10−210085号公報(第4〜6頁、第1図)Japanese Patent Laid-Open No. 10-210085 (pages 4-6, FIG. 1) 特開昭62−295157号公報(第3〜5頁、第1図)JP 62-295157 A (pages 3 to 5, FIG. 1)

従来のサイクリック通信システムは、以上のように構成されているので、送信端末の通信フレーム送信周期と受信端末のプロセッサ読出し周期が同期されていないため、プロセッサが読出したサイクリックデータの範囲の中で、旧データ(読出したデータ内で、通信フレームの送信周期が1回前のデータ)と新データ(読出したデータ内で、通信フレームの送信周期が旧データより1回後のデータ)が混在することが発生し、混在したサイクリックデータをプロセッサが読出して、プロセッサ上のアプリケーションが処理すると、誤った動作を引き起こす問題があった。   Since the conventional cyclic communication system is configured as described above, the communication frame transmission cycle of the transmitting terminal and the processor read cycle of the receiving terminal are not synchronized. The old data (data in which the transmission cycle of the communication frame is one time before in the read data) and the new data (data in which the transmission cycle of the communication frame is one time after the old data in the read data) are mixed When the processor reads the mixed cyclic data and processes the application on the processor, there is a problem that causes an erroneous operation.

特許文献1は、サイクリック用メモリをプロセッサが読出し/書込みをする際、通信フレームの受信/送信を停止させることにより、プロセッサが読出したデータの同時性を保証している。
しかし、通信フレームの受信/送信を停止させるための通信バッファ(通信フレームの一次的な格納メモリ)が必要となり、それに伴う通信制御部が複雑化するとともに、部品コストが増加する問題があった。
また、特許文献2では、プロセッサが読出し/書込みした時、通信フレームが受信/送信している場合は、読出し/書込みを停止させることにより、プロセッサが読出したデータの同時性を保証している。しかし、読出し/書込みを停止させた後、しばらく待ってから、プロセッサが最初から読出し/書込みを行うため、プロセッサ性能が低下する問題があった。
In Patent Document 1, when the processor reads / writes the cyclic memory, the reception / transmission of the communication frame is stopped, thereby guaranteeing the simultaneity of the data read by the processor.
However, a communication buffer (primary storage memory for the communication frame) for stopping the reception / transmission of the communication frame is required, and the communication control unit associated therewith becomes complicated and the component cost increases.
Further, in Patent Document 2, when the communication frame is received / transmitted when the processor reads / writes, the read / write is stopped to guarantee the simultaneity of the data read by the processor. However, there is a problem in that the processor performance deteriorates because the processor performs reading / writing from the beginning after waiting for a while after stopping the reading / writing.

そして、特許文献3では、特許文献2に記載されたプロセッサ性能の低下を解決する手段として、プロセッサが読出し/書込みするサイクリック用メモリ(1面)と、受信/送信時に通信制御部が読出し/書込みするサイクリック用メモリ(2面)を物理的に別けており、通信フレームが受信/送信している場合でも、プロセッサが常に読出し/書込みできるようにして、プロセッサ性能を低下しないようにしている。
しかし、一つの通信フレーム単位で受信/送信する毎に、1面/2面を切り替えてデータの同時性を保証するので、複数の通信フレーム時にはデータの同時性を保証できない。このため、複数の通信フレームに分割された大容量データの同時性を保証する際、プロセッサが複数の通信フレームのデータ内容を解析してから、データを処理することとなり、複数の通信フレーム時にはプロセッサ性能が低下する問題が残っている。
In Patent Document 3, as means for solving the degradation of the processor performance described in Patent Document 2, a cyclic memory (one surface) that is read / written by the processor, and a communication control unit that reads / writes data during reception / transmission. The cyclic memory (2 sides) to be written is physically separated so that even when a communication frame is received / transmitted, the processor can always read / write so that the processor performance is not deteriorated. .
However, since data simultaneity is ensured by switching between 1 and 2 each time data is received / transmitted in one communication frame unit, data simultaneity cannot be guaranteed for a plurality of communication frames. For this reason, when guaranteeing the simultaneity of large-capacity data divided into a plurality of communication frames, the processor analyzes the data contents of the plurality of communication frames and then processes the data. There remains a problem with reduced performance.

なお、特許文献4も、特許文献2に記載されたプロセッサ性能の低下を解決する手段として、サイクリック用メモリを用途に応じて、物理的に3面所持して、通信フレームが受信している場合でも、プロセッサが常に読出しできるようにして、プロセッサ性能を低下しないようにしている。
しかし、特許文献3と同様に、一つの通信フレーム単位で受信する毎に、3面を切り替えてデータの同時性を保証するので、複数の通信フレーム時にはデータの同時性を保証できない。このため、複数の通信フレーム時にはプロセッサ性能が低下する問題が残っている。
In addition, Patent Document 4 also has a cyclic memory as a means for solving the processor performance degradation described in Patent Document 2 and physically receives three communication frames depending on the application, and receives a communication frame. Even in such a case, the processor can always read data so as not to deteriorate the processor performance.
However, as in Patent Document 3, every time data is received in one communication frame unit, data synchronism is guaranteed by switching three planes, so data synchronism cannot be guaranteed for a plurality of communication frames. For this reason, there remains a problem that the processor performance deteriorates in a plurality of communication frames.

この発明は、上述のような課題を解決するためになされたものであり、サイクリック通信時のデータ同時性保証を確保しながら、プロセッサ処理の負担軽減を行うサイクリック通信システムを得ることを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a cyclic communication system that reduces the burden of processor processing while ensuring data simultaneity during cyclic communication. And

この発明に係わるサイクリック通信システムにおいては、複数の端末がネットワークを介してサイクリック通信を行うサイクリック通信システムであって、各端末は、サイクリック通信に使用されるデータを格納するサイクリック用メモリ、このサイクリック用メモリに対するデータの読出し及び書込みを制御するメモリ制御部、サイクリック用メモリのデータを用いてネットワークを介して通信フレームの送信を行うとともに、ネットワークを介して受信した通信フレーム内のデータをサイクリック用メモリに格納する通信制御部、サイクリック用メモリに対し、一つのサイクリック通信周期で送信されるサイクリック通信データの書込み及び一つのサイクリック通信周期で受信したサイクリック通信データの読出しを行うプロセッサ、及び複数に分割されたサイクリック通信データを複数の通信フレームによって送受信する場合の各データの同時性を確保するデータ整列部を備え、サイクリック通信データの分割された各データには、サイクリック通信の周期ごとにカウントされるカウンタ値が付加され、データ整列部は、カウンタ値を用いてサイクリック通信データの分割された各データの同時性を確保するものである。   The cyclic communication system according to the present invention is a cyclic communication system in which a plurality of terminals perform cyclic communication via a network, and each terminal stores data used for cyclic communication. A memory, a memory control unit for controlling reading and writing of data to and from the cyclic memory, and transmitting a communication frame via the network using the data of the cyclic memory, and in the communication frame received via the network Control unit for storing the data in the cyclic memory, writing cyclic communication data transmitted in one cyclic communication cycle to the cyclic memory, and cyclic communication received in one cyclic communication cycle A processor for reading data, and When the cyclic communication data divided into a plurality of parts is transmitted / received by a plurality of communication frames, a data alignment unit is provided to ensure the simultaneity of the respective data. A counter value counted for each period is added, and the data alignment unit secures the simultaneity of each divided data of the cyclic communication data using the counter value.

この発明によれば、複数の端末がネットワークを介してサイクリック通信を行うサイクリック通信システムであって、各端末は、サイクリック通信に使用されるデータを格納するサイクリック用メモリ、このサイクリック用メモリに対するデータの読出し及び書込みを制御するメモリ制御部、サイクリック用メモリのデータを用いてネットワークを介して通信フレームの送信を行うとともに、ネットワークを介して受信した通信フレーム内のデータをサイクリック用メモリに格納する通信制御部、サイクリック用メモリに対し、一つのサイクリック通信周期で送信されるサイクリック通信データの書込み及び一つのサイクリック通信周期で受信したサイクリック通信データの読出しを行うプロセッサ、及び複数に分割されたサイクリック通信データを複数の通信フレームによって送受信する場合の各データの同時性を確保するデータ整列部を備え、サイクリック通信データの分割された各データには、サイクリック通信の周期ごとにカウントされるカウンタ値が付加され、データ整列部は、カウンタ値を用いてサイクリック通信データの分割された各データの同時性を確保するので、複数の通信フレームによって送受信する大容量データでも各データの同時性を確保できるとともにプロセッサ処理の負荷軽減を行うことができる。   According to the present invention, a cyclic communication system in which a plurality of terminals perform cyclic communication via a network, each terminal having a cyclic memory for storing data used for cyclic communication, the cyclic communication A memory control unit that controls the reading and writing of data to and from the memory for memory, transmits data in the communication frame via the network using the data in the cyclic memory, and cyclically transmits data in the communication frame received via the network Writes cyclic communication data transmitted in one cyclic communication cycle and reads cyclic communication data received in one cyclic communication cycle to the communication control unit and cyclic memory stored in the memory. Processor and cyclic communication divided into multiple A data alignment unit that ensures the simultaneity of each data when the data is transmitted and received by a plurality of communication frames, and each divided data of the cyclic communication data includes a counter that is counted for each cyclic communication cycle Since the value is added and the data alignment unit uses the counter value to ensure the simultaneity of each divided data of the cyclic communication data, the data alignment unit can also synchronize each data even in large-capacity data transmitted and received by a plurality of communication frames It can be ensured and the processor processing load can be reduced.

この発明の実施の形態1によるサイクリック通信システムを示す全体構成図である。BRIEF DESCRIPTION OF THE DRAWINGS It is a whole block diagram which shows the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態1によるサイクリック通信システムのサイクリック通信イメージを示す図である。It is a figure which shows the cyclic communication image of the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態1によるサイクリック通信システムのサイクリック通信のタイミングを示す図である。It is a figure which shows the timing of the cyclic communication of the cyclic communication system by Embodiment 1 of this invention. 従来技術のサイクリック用メモリからの読出しの問題点を説明するためのタイミング図である。It is a timing diagram for demonstrating the problem of reading from the cyclic memory of a prior art. この発明の実施の形態1によるサイクリック通信システムの端末内部を示すブロック図である。It is a block diagram which shows the inside of the terminal of the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態1によるサイクリック通信システムの受信フレームフォーマットを示す図である。It is a figure which shows the receiving frame format of the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態1によるサイクリック通信システムの送信マップを示すイメージ図である。It is an image figure which shows the transmission map of the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態1によるサイクリック通信システムの受信マップを示すイメージ図である。It is an image figure which shows the reception map of the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態1によるサイクリック通信システムのサイクリック用メモリの受信データを読出すタイミングを示す図である。It is a figure which shows the timing which reads the received data of the cyclic memory of the cyclic communication system by Embodiment 1 of this invention. この発明の実施の形態2によるサイクリック通信システムの端末内部を示すブロック図である。It is a block diagram which shows the terminal inside of the cyclic communication system by Embodiment 2 of this invention. この発明の実施の形態2によるサイクリック通信システムの送信データの書込み処理を示すフローチャートである。It is a flowchart which shows the write-in process of the transmission data of the cyclic communication system by Embodiment 2 of this invention. この発明の実施の形態3によるサイクリック通信システムの端末内部を示すブロック図である。It is a block diagram which shows the inside of the terminal of the cyclic communication system by Embodiment 3 of this invention. この発明の実施の形態4によるサイクリック通信システムの端末内部を示すブロック図である。It is a block diagram which shows the terminal inside of the cyclic communication system by Embodiment 4 of this invention. この発明の実施の形態4によるサイクリック通信システムの再送要求フレームフォーマットを示す図である。It is a figure which shows the resending request | requirement frame format of the cyclic communication system by Embodiment 4 of this invention. この発明の実施の形態4によるサイクリック通信システムのサイクリック用メモリの受信データを読出した時に再送要求するタイミングを示す図である。It is a figure which shows the timing which requests resending when reading the received data of the cyclic memory of the cyclic communication system by Embodiment 4 of this invention. この発明の実施の形態5によるサイクリック通信システムの端末内部を示すブロック図である。It is a block diagram which shows the inside of the terminal of the cyclic communication system by Embodiment 5 of this invention. この発明の実施の形態5によるサイクリック通信システムの再送要求フレームフォーマットを示す図である。It is a figure which shows the resending request | requirement frame format of the cyclic communication system by Embodiment 5 of this invention. この発明の実施の形態6によるサイクリック通信システムの再送要求付のサイクリック通信フレームフォーマットを示す図である。It is a figure which shows the cyclic communication frame format with the resending request | requirement of the cyclic communication system by Embodiment 6 of this invention.

実施の形態1.
以下、この発明の実施の形態1について図に基づいて説明する。
図1は、この発明の実施の形態1によるサイクリック通信システムを示す全体構成図である。
図1において、端末A1、端末B2、端末C3(通信ノード)は、ネットワーク4(伝送路)を介して、サイクリック通信フレームの送受信を行うとともに、アプリケーションを実行してシステムを稼働させている。端末A1、端末B2、端末C3の内部構成は、後
述するように全て同じである。
端末A1、端末B2、端末C3は、それぞれサイクリック通信のデータを格納するサイクリック用メモリ11a、11b、11cをもっている。
なお、以下では、サイクリック通信フレームを受信フレームまたは送信フレームとも称する。
Embodiment 1 FIG.
Embodiment 1 of the present invention will be described below with reference to the drawings.
1 is an overall configuration diagram showing a cyclic communication system according to Embodiment 1 of the present invention.
In FIG. 1, a terminal A1, a terminal B2, and a terminal C3 (communication node) transmit and receive cyclic communication frames via a network 4 (transmission path) and execute an application to operate the system. The internal configurations of the terminal A1, the terminal B2, and the terminal C3 are all the same as will be described later.
The terminal A1, the terminal B2, and the terminal C3 each have cyclic memories 11a, 11b, and 11c that store cyclic communication data.
Hereinafter, the cyclic communication frame is also referred to as a reception frame or a transmission frame.

図2は、この発明の実施の形態1によるサイクリック通信システムのサイクリック通信イメージを示す図である。
図2において、図1のシステム構成で、端末Aからみた場合、自身(端末A)が送信するデータを111a〜113aで示し、他端末である端末B/Cで受信し、それぞれのサイクリック用メモリに格納されたデータは111b〜113b/111c〜113cで示している。
同様に、端末Bが送信するデータを114b〜116b、端末Aで受信し、サイクリック用メモリ11aに格納されたデータを114a〜116aで示す。
端末Cが送信する場合も同様で、それぞれ117c〜119cと117a〜119aで示す。
なお、一つの端末が、一定周期で送信するデータは、複数個のデータからなり、図2では、アドレスが連続したデータ#1〜#3で示している。
例えば、端末Aから端末Bへの送信データは、データ#1(114a)、データ#2(115a)、データ#3(116a)である。
以上のように、サイクリック通信では、一つの端末上のサイクリック用メモリ11aを参照することで、ネットワーク4に接続されている全ての端末のデータが、メモリイメージで参照できる。
FIG. 2 is a diagram showing a cyclic communication image of the cyclic communication system according to the first embodiment of the present invention.
2, when viewed from the terminal A in the system configuration of FIG. 1, data transmitted by itself (terminal A) is indicated by 111 a to 113 a and received by the terminal B / C, which is another terminal, for each cyclic use. Data stored in the memory is indicated by 111b to 113b / 111c to 113c.
Similarly, data transmitted by the terminal B is indicated by 114b to 116b, and the data received by the terminal A and stored in the cyclic memory 11a is indicated by 114a to 116a.
The same applies to the case where terminal C transmits, which are indicated by 117c to 119c and 117a to 119a, respectively.
Note that data transmitted by a single terminal at a constant cycle is composed of a plurality of data, and in FIG. 2, data are indicated by data # 1 to # 3 having consecutive addresses.
For example, transmission data from terminal A to terminal B is data # 1 (114a), data # 2 (115a), and data # 3 (116a).
As described above, in the cyclic communication, the data of all terminals connected to the network 4 can be referred to by the memory image by referring to the cyclic memory 11a on one terminal.

図3は、この発明の実施の形態1によるサイクリック通信システムのサイクリック通信のタイミングを示す図である。
図3において、サイクリック通信フレームは、送信する端末それぞれで持つ非同期タイミングで送信され、全ての端末は、全てのサイクリック通信フレームを受信し、サイクリック用メモリに格納する。
FIG. 3 is a diagram showing the timing of cyclic communication in the cyclic communication system according to the first embodiment of the present invention.
In FIG. 3, a cyclic communication frame is transmitted at an asynchronous timing possessed by each transmitting terminal, and all terminals receive all the cyclic communication frames and store them in a cyclic memory.

図4は、従来技術のサイクリック用メモリからの読出しの問題点を説明するためのタイミング図である。
図4において、データ♯1、♯2、♯3の受信タイミングがずれることにより、3回目データと4回目データの新旧データが混在する期間が生じる。この混在期間にプロセッサが読出した場合、サイクリック通信データの中で新旧データの混在状態で読出される。
データ#1では新データを読出すが、データ#2では旧データを読出すため、データの同時性が保証できなくなり、プロセッサ内のアプリケーションが誤動作する。
このように、データ同時性確保のための機能を持たない場合には、同時性が保証できないタイミングが生じている。
FIG. 4 is a timing chart for explaining the problem of reading from the cyclic memory according to the prior art.
In FIG. 4, the reception timing of the data # 1, # 2, and # 3 is shifted, and a period in which the new data and the old data of the third data and the fourth data are mixed is generated. When the processor reads during this mixed period, it is read in a mixed state of old and new data in the cyclic communication data.
Data # 1 reads new data, but data # 2 reads old data, so data simultaneity cannot be guaranteed, and an application in the processor malfunctions.
As described above, when there is no function for ensuring data simultaneity, there is a timing when simultaneity cannot be guaranteed.

図5は、この発明の実施の形態1によるサイクリック通信システムの端末内部を示すブロック図である。
図5において、端末A1の構成を示している。なお、端末B2、端末C3も同じ構成である。
基本的には、サイクリック通信による受信データは、サイクリック用メモリ11aに格納され、プロセッサ14aがプロセッサ制御部15aに指示して、データの同時性を保証するための構成(データ整列部)及びメモリ制御部12aを介して読出す。自端末が送信する送信データは、プロセッサ14aが、プロセッサ制御部15aに指示して、データの同時性を保証するための構成(データ整列部)及びメモリ制御部12aを介してサイクリック用メモリ11aに書込むようになっている。
FIG. 5 is a block diagram showing the inside of the terminal of the cyclic communication system according to the first embodiment of the present invention.
FIG. 5 shows the configuration of the terminal A1. Terminals B2 and C3 have the same configuration.
Basically, received data by cyclic communication is stored in the cyclic memory 11a, and the processor 14a instructs the processor control unit 15a to guarantee data concurrency (data alignment unit) and Reading is performed via the memory control unit 12a. The transmission data transmitted by the terminal itself is sent from the processor 14a to the processor control unit 15a so as to guarantee data simultaneity (data alignment unit) and the cyclic memory 11a via the memory control unit 12a. To write on.

ここで、データの同時性を保証するための構成(データ整列部)は、後述するデータ監視制御部21a、送信データ切替部22a、送信データメモリ23a、送信データメモリ24a、送信マップ28a、受信データ切替部25a、受信データメモリ26a、受信データメモリ27a、受信マップ29aを有している。   Here, a configuration (data alignment unit) for guaranteeing data simultaneity includes a data monitoring control unit 21a, a transmission data switching unit 22a, a transmission data memory 23a, a transmission data memory 24a, a transmission map 28a, and reception data, which will be described later. A switching unit 25a, a reception data memory 26a, a reception data memory 27a, and a reception map 29a are provided.

通信制御部13aは、サイクリック通信フレームを送受信させる制御を行う。メモリ制御部12aは、サイクリック用メモリ11aへのデータのリード/ライトを実行する。
通信制御部13aは、ネットワーク4からサイクリック通信により受信した受信フレーム内のデータ及び後述するカウンタ値を、メモリ制御部12a経由でサイクリック用メモリ11aへ書込むとともに、サイクリック用メモリ11aから送信データの読出しを行い、送信フレームを生成して、自端末の周期でネットワーク4へ送信を行う。
プロセッサ14aは、アプリケーションを実行するとともに、プロセッサ制御部15aに対し、サイクリック用メモリ11aに対するデータの読出し/書込みを指示する。
プロセッサ制御部15aは、プロセッサ14aの指示を受けて、サイクリック用メモリ11aに対するデータの読出し/書込みを行い、読出したデータをプロセッサ14aに返す。
The communication control unit 13a performs control for transmitting and receiving cyclic communication frames. The memory control unit 12a reads / writes data to / from the cyclic memory 11a.
The communication control unit 13a writes data in a received frame received from the network 4 by cyclic communication and a counter value to be described later to the cyclic memory 11a via the memory control unit 12a and transmits from the cyclic memory 11a. Data is read out, a transmission frame is generated, and is transmitted to the network 4 in the cycle of the own terminal.
The processor 14a executes the application and instructs the processor control unit 15a to read / write data to / from the cyclic memory 11a.
Upon receiving an instruction from the processor 14a, the processor control unit 15a reads / writes data to / from the cyclic memory 11a and returns the read data to the processor 14a.

ただし、このときのプロセッサ制御部15aの読出し/書込み要求先は、送信データ切替部22aと受信データ切替部25aとする。読出しの場合は、受信データ切替部25a、書込みの場合は、送信データ切替部22aが要求先である。
送信データメモリ23aと、送信データメモリ24aとは一対で、送信データ切替部22aによって一方を読出し側、他方を書込み側とする切替え(面切替え)が行われる。書込み側のときは、プロセッサ制御部15aからサイクリック通信データが書込まれる。読出し側のときは、後述するデータ監視制御部21aによりサイクリック通信データが読出され、サイクリック用メモリ11aに書込まれる。
However, the read / write request destination of the processor control unit 15a at this time is the transmission data switching unit 22a and the reception data switching unit 25a. In the case of reading, the reception data switching unit 25a is the request destination, and in the case of writing, the transmission data switching unit 22a is the request destination.
The transmission data memory 23a and the transmission data memory 24a are a pair, and the transmission data switching unit 22a performs switching (surface switching) such that one is a reading side and the other is a writing side. At the time of writing, cyclic communication data is written from the processor control unit 15a. On the reading side, cyclic communication data is read out and written into the cyclic memory 11a by a data monitoring control unit 21a described later.

受信データメモリ26aと受信データメモリ27aとは一対で、受信データ切替部25aによって読出し側と書込み側が切替えられる。読出し側のときは、プロセッサ制御部15aから受信データが読出される。書込み側のときは、後述するデータ監視制御部21aにより、サイクリック用メモリ11aからの受信データが書込まれる。   The reception data memory 26a and the reception data memory 27a are paired, and the reading side and the writing side are switched by the reception data switching unit 25a. On the reading side, received data is read from the processor control unit 15a. On the writing side, data received from the cyclic memory 11a is written by the data monitoring controller 21a described later.

データ監視制御部21aは、通信制御部13aによるサイクリック通信フレームの受信処理とは無関係な一定周期で、メモリ制御部12a経由で、サイクリック用メモリ11aの受信データを読出し、書込み側の受信データメモリに、コピーする。
受信データ切替部25aは、データ監視制御部21aのコピー処理とは無関係に、後述する受信マップ29aを参照して、受信データメモリ26aと受信データメモリ27aとの面(書込み側と読出し側)の切替えを行う。
The data monitoring control unit 21a reads the received data of the cyclic memory 11a via the memory control unit 12a at a constant cycle unrelated to the cyclic communication frame reception process by the communication control unit 13a, and receives the received data on the writing side. Copy to memory.
The reception data switching unit 25a refers to a reception map 29a to be described later, regardless of the copy process of the data monitoring control unit 21a, on the surfaces (write side and read side) of the reception data memory 26a and the reception data memory 27a. Switch over.

送信データ切替部22aは、プロセッサ制御部15aの書込み要求を監視し、送信マップ28aを参照して、送信データメモリ23a/24aの面(書込み側と読出し側)を切替える。
データ監視制御部21aは、サイクリック通信データの送信データメモリの書込み側への書込み処理とは無関係な一定周期で、読出し側の送信データメモリのデータを読出し、サイクリック用メモリ11aにメモリ制御部12a経由でコピーする。
The transmission data switching unit 22a monitors the write request of the processor control unit 15a, and switches the plane (the writing side and the reading side) of the transmission data memory 23a / 24a with reference to the transmission map 28a.
The data monitoring control unit 21a reads the data in the transmission data memory on the reading side at a constant cycle unrelated to the writing process of the cyclic communication data to the writing side of the transmission data memory, and stores the data in the cyclic memory 11a. Copy via 12a.

なお、図5で、プロセッサ制御部15aを設けない構成、つまりプロセッサ14aが直接、送信データメモリへのデータの書込み、受信データメモリからのデータの読出しを行う構成であっても一向に差し支えない。
これは、以下の実施の形態2〜実施の形態6においても同様である。
In FIG. 5, there is no problem even if the processor control unit 15a is not provided, that is, the processor 14a directly writes data to the transmission data memory and reads data from the reception data memory.
The same applies to the following second to sixth embodiments.

図6は、この発明の実施の形態1によるサイクリック通信システムの受信フレームフォーマットを示す図である。
図6において、受信フレーム5は、ネットワーク4上に流れるサイクリック通信フレームのフォーマットである。
ノードID5aは、受信する端末を示すが、サイクリック通信の場合は、全ての端末を示すALL−Fとする。ブロックNO5bは、各端末ごとかつサイクリック通信データごとにユニークに付与されたサイクリック通信データの番号、オフセット5cは、サイクリック用メモリ11aに格納する先頭アドレス、サイズ5dは、その受信フレーム5のデータサイズ、データ5eは、サイクリック用メモリ11aに格納すべきデータである。
FIG. 6 is a diagram showing a reception frame format of the cyclic communication system according to the first embodiment of the present invention.
In FIG. 6, the reception frame 5 has a cyclic communication frame format that flows on the network 4.
The node ID 5a indicates a receiving terminal, but in the case of cyclic communication, it is assumed to be ALL-F indicating all terminals. The block NO5b is the number of the cyclic communication data uniquely assigned to each terminal and for each cyclic communication data, the offset 5c is the head address stored in the cyclic memory 11a, and the size 5d is the received frame 5 The data size and data 5e are data to be stored in the cyclic memory 11a.

図6では、サイクリック通信フレームを送信する周期毎に加算するカウンタ値5f/5gを、データ5e領域の先頭と最後に配置させることで、読出し時に、同じサイクリック通信データのすべての受信フレーム5の先頭と最後のカウンタ値が一致すれば、新データと旧データが混在していないことを証明できるようにしている。(図9のカウンタ値参照)
さらに、受信フレーム5の最後にFCS値5h(CRCなどのフレームチェックシーケンス)を設けることで、受信時にFCS値5hのチェックをして、受信フレーム5内のデータの正当性を保証できるようにしている。
In FIG. 6, the counter values 5f / 5g to be added for each cycle of transmitting cyclic communication frames are arranged at the beginning and end of the data 5e area, so that all received frames 5 of the same cyclic communication data are read at the time of reading. If the first counter value and the last counter value coincide with each other, it can be proved that the new data and the old data are not mixed. (Refer to the counter value in FIG. 9)
Further, by providing an FCS value 5h (CRC or other frame check sequence) at the end of the received frame 5, the FCS value 5h is checked at the time of reception so that the validity of the data in the received frame 5 can be guaranteed. Yes.

図7は、この発明の実施の形態1によるサイクリック通信システムの送信マップを示すイメージ図である。
図7において、送信マップ28aは、端末A1上のイメージ図であり、予め生成されたものである。自端末が送信する全てのサイクリック通信データについて、サイクリック通信フレーム内に格納するブロックNO5bとオフセット5cとサイズ5dを対応付けて、サイクリック通信フレーム毎に(図7では1行に)登録している。
ただし、サイクリック通信データが大容量になった場合、サイクリック通信データを分割してサイクリック通信フレームが複数になるため、サイクリック通信フレーム内のブロックNO5bは同じであっても、オフセット5cとサイズ5dは、サイクリック通信フレームによって変化する。
例えば、サイクリック通信フレームの最大サイズが4Kbyteで、サイクリック通信データが12Kbyteである場合、サイクリック通信データは、3つのサイクリック通信フレームに分割されるので、3つともサイズが4Kbyteとなるが、オフセットは一つ目のサイクリック通信フレームのオフセットアドレスに4Kbyteずつ加算したものを二つ目以降のサイクリック通信フレームのオフセット5cに配置する。つまり連続したアドレスになっている。
FIG. 7 is an image diagram showing a transmission map of the cyclic communication system according to the first embodiment of the present invention.
In FIG. 7, a transmission map 28a is an image diagram on the terminal A1, and is generated in advance. For all cyclic communication data transmitted by the terminal itself, block NO5b, offset 5c and size 5d stored in the cyclic communication frame are associated with each other and registered for each cyclic communication frame (one line in FIG. 7). ing.
However, when the amount of cyclic communication data becomes large, the cyclic communication data is divided into a plurality of cyclic communication frames. Therefore, even if the block NO5b in the cyclic communication frame is the same, the offset 5c The size 5d varies depending on the cyclic communication frame.
For example, if the maximum size of the cyclic communication frame is 4 Kbytes and the cyclic communication data is 12 Kbytes, the cyclic communication data is divided into three cyclic communication frames, so all three have a size of 4 Kbytes. The offset is obtained by adding 4 Kbytes to the offset address of the first cyclic communication frame at the offset 5c of the second and subsequent cyclic communication frames. In other words, it is a continuous address.

送信データ切替部22aは、送信データメモリ23a/24aに送信データが書込みされる都度、送信マップ28aに登録されたオフセット5cとサイズ5dの連続アドレス領域が全て書込みされたことを判断すれば、送信データメモリ23a/24aの面を瞬時に切り替えて、データ監視制御部21aが、常に同時性を確保したデータを送信データメモリ23a/24aから読出しできるようにする。   Whenever transmission data is written in the transmission data memory 23a / 24a, the transmission data switching unit 22a transmits the data if the offset 5c and size 5d continuous address areas registered in the transmission map 28a are all written. The surface of the data memory 23a / 24a is switched instantaneously so that the data monitoring control unit 21a can always read data from the transmission data memory 23a / 24a while ensuring simultaneity.

図8は、この発明の実施の形態1によるサイクリック通信システムの受信マップを示すイメージ図である。
図8において、受信マップ29aは、端末A1上のイメージ図であり、予め生成されたものである。自端末が受信する全てのサイクリック通信データについて、オフセット5cとサイズ5dを対応付けて、サイクリック通信データ毎に(図8では1行に)登録している。因みに、数フレームに分割される場合には、連続アドレス領域毎に登録している。
FIG. 8 is an image diagram showing a reception map of the cyclic communication system according to the first embodiment of the present invention.
In FIG. 8, a reception map 29a is an image diagram on the terminal A1, and is generated in advance. All cyclic communication data received by the own terminal is registered for each cyclic communication data (in one line in FIG. 8) in association with the offset 5c and the size 5d. Incidentally, when divided into several frames, it is registered for each continuous address area.

受信データ切替部25aは、データ監視制御部21aの動作とは無関係に一定周期で書込み側の受信データメモリ27aを参照して、オフセット5cとサイズ5dからカウンタ値5f/5gのアドレスを計算して読出し、連続アドレス領域内の全てのカウンタ値5f/5gが一致した時に、受信データメモリ26a/27aの面を瞬時に切り替えて、プロセッサ制御部15aが、常に同時性を確保したデータを受信データメモリ26a/27aから読出しできるようにする。
例えば、サイクリック通信データのサイズが、12Kbyteであった場合、通信フレームは3つとなり、カウンタ値5f/5gは、先頭と最後が3つあるので、全6つのカウンタ値5f/5gを全て参照することになる。
The reception data switching unit 25a calculates the address of the counter value 5f / 5g from the offset 5c and the size 5d with reference to the reception-side reception data memory 27a at a constant cycle regardless of the operation of the data monitoring control unit 21a. When all the counter values 5f / 5g in the read and continuous address areas match, the surface of the reception data memory 26a / 27a is instantaneously switched, and the processor control unit 15a receives the data that always ensures simultaneity. 26a / 27a can be read.
For example, when the size of the cyclic communication data is 12 Kbytes, there are three communication frames, and the counter value 5f / 5g has three at the beginning and the last, so all six counter values 5f / 5g are referred to. Will do.

次に、動作について説明する。
実施の形態1は、プロセッサ制御部15aとメモリ制御部12aとの間に、送信データ切替部22a、送信データメモリ23a/24aまたは受信データ切替部25a、受信データメモリ26a/27a、及びデータ監視制御部21aを介在させて動作させるようにし、プロセッサ制御部15aの読出し/書込み要求先を、送信データ切替部22aと受信データ切替部25aとしている。
これにより、プロセッサ14aが連続的なアドレスを読出した際に、受信データメモリ26a/27aの中で新旧データが混在しなくなるので、プロセッサ14aが常にサイクリック通信の送信データを書込みできるとともに、どのタイミングで受信データを読出しても常に同時性を確保できるようになる。
Next, the operation will be described.
In the first embodiment, a transmission data switching unit 22a, a transmission data memory 23a / 24a or a reception data switching unit 25a, a reception data memory 26a / 27a, and a data monitoring control are provided between the processor control unit 15a and the memory control unit 12a. The transmission / reception request destination of the processor control unit 15a is the transmission data switching unit 22a and the reception data switching unit 25a.
As a result, when the processor 14a reads continuous addresses, new and old data are not mixed in the reception data memory 26a / 27a, so that the processor 14a can always write transmission data for cyclic communication and at which timing. Thus, it is possible to always ensure simultaneity even if the received data is read out.

次に、端末A1が、サイクリック通信フレームの受信の際の動作について説明する。
サイクリック通信フレームを受信する毎に、通信制御部13aは、サイクリック通信フレーム内のFCS値5hを使って、正当性を保証できたサイクリック通信フレームについて、メモリ制御部12a経由でサイクリック用メモリ11aに当該サイクリック通信フレーム内のデータ5eとカウンタ値5f/5gを書込む。
データ監視制御部21aは、通信制御部13aのサイクリック通信フレームの受信処理とは無関係な一定周期で、サイクリック用メモリ11aの受信データを読出し、書込み側の受信データメモリ27aに、データ5eとカウンタ値5f/5gをコピーする。
Next, the operation when the terminal A1 receives a cyclic communication frame will be described.
Every time a cyclic communication frame is received, the communication control unit 13a uses the FCS value 5h in the cyclic communication frame to cyclically check the cyclic communication frame whose validity has been guaranteed via the memory control unit 12a. The data 5e and the counter value 5f / 5g in the cyclic communication frame are written into the memory 11a.
The data monitoring control unit 21a reads the received data of the cyclic memory 11a at a constant cycle unrelated to the cyclic communication frame reception process of the communication control unit 13a, and stores the data 5e in the received data memory 27a on the writing side. The counter value 5f / 5g is copied.

受信データ切替部25aは、データ監視制御部21aのコピー処理とは無関係に一定周期で、書込み側の受信データメモリ27aのデータを読出し、受信マップ29aを参照して、連続アドレス領域のサイクリック通信データ内のカウンタ値5f/5gが全て一致した時に、受信データメモリ26a/27aの面を切り替える。
そして、プロセッサ14aは、プロセッサ制御部15a経由で、読出し側の受信データメモリ26aに読出し要求すると、常に受信マップ29aに登録されたサイクリック通信データ単位で同時性を確保したデータを読出せる。
このサイクリック通信フレームの受信処理により、サイクリック通信データ単位で同時性を確保できるようになる。
The reception data switching unit 25a reads the data in the reception-side reception data memory 27a at a constant cycle regardless of the copy process of the data monitoring control unit 21a, and refers to the reception map 29a to perform cyclic communication in the continuous address area. When all the counter values 5f / 5g in the data match, the surface of the reception data memory 26a / 27a is switched.
When the processor 14a makes a read request to the reception data memory 26a on the reading side via the processor control unit 15a, the processor 14a can always read data ensuring simultaneity in units of cyclic communication data registered in the reception map 29a.
By this cyclic communication frame reception process, simultaneity can be ensured in units of cyclic communication data.

次に、端末A1からのサイクリック通信フレームの送信について説明する。
プロセッサ14aは、常にプロセッサ制御部15a経由で、書込み側の送信データメモリ23aにサイクリック通信データの書込み要求をすることができる。プロセッサ制御部15aは、サイクリック通信データを一括して送信データメモリへの書込みを行う。
送信データ切替部22aは、プロセッサ制御部15aの書込み要求を監視して、送信マップ28aのオフセット5cとサイズ5dで示される連続アドレスが全て書込みされたことを検知してから、送信データメモリ23a/24aの面を切り替える。
データ監視制御部21aは、このプロセッサ制御部15aのサイクリック通信データの書込み処理とは無関係な一定周期で、読出し側の送信データメモリ24aを読出し、サイクリック用メモリ11aにメモリ制御部12a経由で、サイクリック通信フレーム内のデ
ータ5eをコピーする。
Next, transmission of a cyclic communication frame from the terminal A1 will be described.
The processor 14a can always make a write request for cyclic communication data to the transmission data memory 23a on the writing side via the processor control unit 15a. The processor control unit 15a writes the cyclic communication data to the transmission data memory at once.
The transmission data switching unit 22a monitors the write request of the processor control unit 15a, detects that all the continuous addresses indicated by the offset 5c and the size 5d of the transmission map 28a have been written, and then transmits the transmission data memory 23a / Switch the surface of 24a.
The data monitoring control unit 21a reads the transmission data memory 24a on the reading side at a fixed period unrelated to the cyclic communication data writing process of the processor control unit 15a, and sends it to the cyclic memory 11a via the memory control unit 12a. The data 5e in the cyclic communication frame is copied.

次に、通信制御部13aが自端末のサイクリック送信周期に従い、メモリ制御部12a経由でサイクリック用メモリ11aのサイクリック通信データを読出して、サイクリック通信フレームを形成して、ネットワーク4へ送出する。
この時に、サイクリック送信周期毎に加算するカウンタ値5f/5gを通信制御部13aがサイクリック通信フレーム内に配置する。このような送信データメモリ23a/24aの面切替えにより、サイクリック通信データ単位で、同時性を確保したデータを自端末から送信できるようになる。
Next, the communication control unit 13a reads the cyclic communication data in the cyclic memory 11a via the memory control unit 12a in accordance with the cyclic transmission cycle of its own terminal, forms a cyclic communication frame, and sends it to the network 4 To do.
At this time, the communication control unit 13a places the counter value 5f / 5g to be added for each cyclic transmission cycle in the cyclic communication frame. By such surface switching of the transmission data memory 23a / 24a, it becomes possible to transmit data ensuring synchronization from the own terminal in units of cyclic communication data.

次に、図9を用いて、サイクリック用メモリ11aの受信データの読出しのタイミングについて、さらに詳しく説明する。
複数のサイクリック通信フレームの受信データ(図9のデータ#1〜データ#3)をサイクリック用メモリ11aに格納するまでには時間がかかるため、データ監視制御部21aが一定周期でサイクリック用メモリ11aのデータを読出すタイミングによっては、旧データ(図9の3回目)と新データ(図9の4回目)が混在したサイクリック通信データを読出しすることがある。
図9では、書込み側の受信データメモリ27aに4回目のデータ#1が書込まれた時から新旧データが混在するサイクリック通信データとなるが、混在時には受信データ切替部25aが受信データメモリ26a/27aの面を切り替えないので、プロセッサ14aが読出し側の受信データメモリ26aから読出すサイクリック通信データは、3回目の旧データのままである。このため、データの同時性を確保できる。
Next, the timing of reading the received data in the cyclic memory 11a will be described in more detail with reference to FIG.
Since it takes time to store the received data of the plurality of cyclic communication frames (data # 1 to data # 3 in FIG. 9) in the cyclic memory 11a, the data monitoring control unit 21a performs cyclic processing at a constant cycle. Depending on the timing of reading data from the memory 11a, cyclic communication data in which old data (third time in FIG. 9) and new data (fourth time in FIG. 9) are mixed may be read.
In FIG. 9, cyclic communication data in which old and new data are mixed from the time when the fourth data # 1 is written to the write side received data memory 27a is displayed. However, when the data is mixed, the received data switching unit 25a receives the received data memory 26a. Since the / 27a plane is not switched, the cyclic communication data that the processor 14a reads from the reception data memory 26a on the reading side remains the third old data. Therefore, data simultaneity can be ensured.

受信データ切替部25aは、一定周期で書込み側の受信データメモリ27aのデータを読出し、受信マップ29aに登録されたオフセット5cとサイズ5dを元にカウンタ値5f/5gが全て同じ値になった時に、受信データメモリ26a/27aの面を切り替えるが(図9では、2回目から3回目のデータに切り替えている)、カウンタ値5f/5gが全て同じ値にならない時には、受信データメモリ26a/27aの面を切り替えないようにする。
なお、プロセッサ14aが読出し側の受信データメモリを読出し中には、受信データ切替部25aは、受信データメモリ26a/27aの面の切り替えを行わない。
このため、プロセッサ14aは、プロセッサ制御部15a経由で読出し側の受信データメモリ26aに読出し要求すると、常に受信マップ29aに登録されたサイクリック通信データ単位で同時性を確保したデータを読出すことができる。
The reception data switching unit 25a reads the data in the reception-side reception data memory 27a at a fixed period, and when the counter values 5f / 5g all become the same value based on the offset 5c and the size 5d registered in the reception map 29a. The reception data memory 26a / 27a is switched (in FIG. 9, the data is switched from the second to the third data), but when the counter values 5f / 5g do not all become the same value, the reception data memory 26a / 27a Avoid switching faces.
Note that the reception data switching unit 25a does not switch the surface of the reception data memory 26a / 27a while the processor 14a is reading out the reception data memory on the reading side.
For this reason, when the processor 14a makes a read request to the reception data memory 26a on the reading side via the processor control unit 15a, the processor 14a can always read data ensuring simultaneity in units of cyclic communication data registered in the reception map 29a. it can.

実施の形態1によれば、以上の構成により、プロセッサ14aが受信データの連続的なアドレスを読出した際に新旧データが混在しなくなるので、どのタイミングで受信データを読出しても常に同時性を確保できるようになる。
また、複数のサイクリック通信フレームによって送受信する大容量データの各データの同時性を確保する構成を別に設けたので、プロセッサ処理の負荷軽減を行うことができる。
また、サイクリック通信データの読出し/書込みで、プロセッサを停止させることがなく、プロセッサ性能を向上することができる。
また、大容量データの同時性確保をプロセッサとは別の構成により行うので、プロセッサ上のアプリケーション開発を簡易化でき、設計品質と性能を向上することができる。
According to the first embodiment, with the above configuration, new and old data are not mixed when the processor 14a reads continuous addresses of received data, so that synchronization is always ensured regardless of the timing at which received data is read. become able to.
In addition, since the configuration for ensuring the simultaneity of the large-volume data transmitted and received by a plurality of cyclic communication frames is provided separately, it is possible to reduce the load on the processor processing.
Further, the processor performance can be improved without stopping the processor by reading / writing cyclic communication data.
In addition, since the simultaneity of large-capacity data is ensured by a configuration different from the processor, application development on the processor can be simplified, and the design quality and performance can be improved.

実施の形態2.
図10は、この発明の実施の形態2によるサイクリック通信システムの端末内部を示すブロック図である。
図10において、端末A1の構成を示し、1、11a〜15a、21a、24a〜27a、29aは図5におけるものと同一のものである。図10では、プロセッサ制御部15aとデータ監視制御部21aとの間に、プロセッサ制御部15aのコピー要求の有無を示すコピー要求フラグ31a(第1のフラグ)と、データ監視制御部21aによるコピーが完了したかどうかを示すコピー完了フラグ32a(第2のフラグ)を設けている。
図10では、データの同時性を保証するための構成(データ整列部)は、データ監視制御部21a、送信データメモリ24a、コピー要求フラグ31a(第1のフラグ)、コピー完了フラグ32a(第2のフラグ)、受信データ切替部25a、受信データメモリ26a、受信データメモリ27a、受信マップ29aを有している。
Embodiment 2. FIG.
FIG. 10 is a block diagram showing the inside of the terminal of the cyclic communication system according to the second embodiment of the present invention.
FIG. 10 shows the configuration of the terminal A1, and 1, 11a to 15a, 21a, 24a to 27a, and 29a are the same as those in FIG. In FIG. 10, between the processor control unit 15a and the data monitoring control unit 21a, a copy request flag 31a (first flag) indicating the presence / absence of a copy request of the processor control unit 15a, and copying by the data monitoring control unit 21a are performed. A copy completion flag 32a (second flag) indicating whether or not the processing has been completed is provided.
In FIG. 10, the configuration (data alignment unit) for guaranteeing data simultaneity includes a data monitoring control unit 21a, a transmission data memory 24a, a copy request flag 31a (first flag), and a copy completion flag 32a (second ), A reception data switching unit 25a, a reception data memory 26a, a reception data memory 27a, and a reception map 29a.

実施の形態2は、プロセッサ制御部15aが直接、送信データメモリ24aにサイクリック通信データを書込みできるようにして、プロセッサ14aがサイクリック通信データを全て書込みした時に、データ監視制御部21aにサイクリック用メモリ11aに、コピー要求することを示すコピー要求フラグ31aを立てる。データ監視制御部21aがコピー完了をすれば、コピー完了フラグ32aを立てて、プロセッサ14aにコピー完了を通知するようにしている。   In the second embodiment, the processor control unit 15a can directly write the cyclic communication data to the transmission data memory 24a, and when the processor 14a writes all the cyclic communication data, the data monitoring control unit 21a is cyclic. A copy request flag 31a indicating that a copy request is made is set in the memory 11a. When the data monitoring control unit 21a completes the copy, a copy completion flag 32a is set to notify the processor 14a of the copy completion.

次に、図11を用いて、コピー要求フラグ31aとコピー完了フラグ32aに着目して、プロセッサ14aによるサイクリック通信データ単位のサイクリック用メモリ11aへの書込みについて説明する。
送信データの書込みフローでは、プロセッサ14aは、送信データを書込む前に、コピー完了フラグ32aを参照して(ステップS1)、前回コピー動作が完了するまで待った後、コピー要求フラグ31aを「要求なし」にする(ステップS2)。そして、サイクリック通信データ単位で送信データを送信データメモリ24aに書込む(ステップS3)。全てのアドレス領域を書込むと、データの同時性が確保できるので、コピー要求フラグ31aを「要求あり」にする(ステップS4)ことで、データ監視制御部21aは、送信データメモリ24aからサイクリック用メモリ11aに送信データをコピーする。コピーが完了した場合に、コピー完了フラグ32aを完了にする。
Next, with reference to FIG. 11, focusing on the copy request flag 31a and the copy completion flag 32a, writing to the cyclic memory 11a in units of cyclic communication data by the processor 14a will be described.
In the transmission data write flow, the processor 14a refers to the copy completion flag 32a before writing the transmission data (step S1), waits until the previous copy operation is completed, and then sets the copy request flag 31a to “no request”. (Step S2). Then, the transmission data is written in the transmission data memory 24a in units of cyclic communication data (step S3). When all address areas are written, data simultaneity can be secured. Therefore, by setting the copy request flag 31a to “Requested” (step S4), the data monitoring control unit 21a cyclically transmits data from the transmission data memory 24a. The transmission data is copied to the memory 11a. When copying is completed, the copy completion flag 32a is completed.

実施の形態2によれば、これにより、データ監視制御部21aが送信データを更新していた一定周期の処理時間を省略して、サイクリック通信を高速化するとともに、送信データメモリを一つにしたためのメモリサイズを削減することができる。   According to the second embodiment, this eliminates the processing time of a certain period during which the data monitoring control unit 21a has updated the transmission data, speeds up the cyclic communication, and combines the transmission data memory into one. Therefore, the memory size can be reduced.

実施の形態3.
図12は、この発明の実施の形態3によるサイクリック通信システムの端末内部を示すブロック図である。
図12において、端末A1の構成を示し、1、11a〜15a、21a、24a、26a、27a、29a、31a、32aは図10におけるものと同一のものである。図12では、送信データメモリ24a、受信データメモリ26a/27a、受信マップ29aを、プロセッサ14aが命令実行時に使用する主メモリ41a内に設けている。
Embodiment 3 FIG.
FIG. 12 is a block diagram showing the inside of the terminal of the cyclic communication system according to the third embodiment of the present invention.
In FIG. 12, the configuration of the terminal A1 is shown, and 1, 11a to 15a, 21a, 24a, 26a, 27a, 29a, 31a, and 32a are the same as those in FIG. In FIG. 12, a transmission data memory 24a, a reception data memory 26a / 27a, and a reception map 29a are provided in the main memory 41a used by the processor 14a when executing an instruction.

実施の形態3は、実施の形態2に比べて、受信データ切替部25aの処理をプロセッサ14aに移し、送信データメモリ24aと受信データメモリ26a/27aと受信マップ29aとを、プロセッサ14aの命令実行時に使用する主メモリ41aに移している。
データ監視制御部21aは、サイクリック用メモリ11aと主メモリ41a間でコピーするようにすることで、送信データメモリ24aと受信データメモリ26a/27aと受信マップ29aを有する専用メモリがなくなる。
なお、実施の形態3の処理フローは、実施の形態2と同じであるが、受信データ切替部25aの処理をプロセッサ14aに行わせる。
In the third embodiment, as compared with the second embodiment, the processing of the reception data switching unit 25a is moved to the processor 14a, and the transmission data memory 24a, the reception data memory 26a / 27a, and the reception map 29a are executed by the processor 14a. The main memory 41a is sometimes used.
The data monitoring controller 21a makes a copy between the cyclic memory 11a and the main memory 41a, thereby eliminating the dedicated memory having the transmission data memory 24a, the reception data memory 26a / 27a, and the reception map 29a.
The processing flow of the third embodiment is the same as that of the second embodiment, but causes the processor 14a to perform the process of the reception data switching unit 25a.

実施の形態3によれば、これにより、メモリサイズ削減によるハードウェアコストを低減することができる。   According to the third embodiment, this makes it possible to reduce hardware costs due to memory size reduction.

実施の形態4.
図13は、この発明の実施の形態4によるサイクリック通信システムの端末内部を示すブロック図である。
図13において、端末A1の構成を示し、1、11a〜15a、21a〜29aは図5におけるものと同一のものである。図13で、再送要求情報51aは、受信データ切替部25aが、通信制御部13aに通知する、廃棄されたサイクリック通信フレームを送信したノードIDを格納した再送要求のための情報である。
Embodiment 4 FIG.
FIG. 13 is a block diagram showing the inside of the terminal of the cyclic communication system according to the fourth embodiment of the present invention.
In FIG. 13, the configuration of the terminal A1 is shown, and 1, 11a to 15a and 21a to 29a are the same as those in FIG. In FIG. 13, retransmission request information 51 a is information for a retransmission request storing the node ID that has transmitted the discarded cyclic communication frame, which is notified to the communication control unit 13 a by the reception data switching unit 25 a.

図14は、この発明の実施の形態4によるサイクリック通信システムの再送要求フレームフォーマットを示す図である。
図14において、再送要求フレーム4005の構造を示す。5aは図6におけるものと同一のものである。図14の再送要求フレーム4005は、ノードID5aと、再送要求情報として廃棄されたサイクリック通信フレームを送信したノードIDを格納した再送要求情報5kのフィールドを有する。
FIG. 14 is a diagram showing a retransmission request frame format of the cyclic communication system according to the fourth embodiment of the present invention.
In FIG. 14, the structure of retransmission request frame 4005 is shown. 5a is the same as that in FIG. The retransmission request frame 4005 in FIG. 14 has fields of a node ID 5a and retransmission request information 5k that stores the node ID that transmitted the discarded cyclic communication frame as the retransmission request information.

実施の形態4は、実施の形態1の図5の構成で、受信データを再送要求できるようにしたものである。
受信データ切替部25aが、カウンタ値5f/5gを参照してサイクリック通信フレームが廃棄された時に、廃棄されたサイクリック通信フレームを送信したノードIDを格納した再送要求情報51aを通信制御部13aに通知して、これを受けた通信制御部13aが廃棄されたサイクリック通信フレームを送信したノードIDを登録した再送要求フレームを生成して、即座に送出する。
この再送要求フレームを受信した端末が、即座にサイクリック通信データの全てのサイクリック通信フレームを再送することにより、フレーム廃棄が多発しているネットワーク異常状態でも通信遅延時間を短縮できるようにしている。
In the fourth embodiment, the configuration shown in FIG. 5 of the first embodiment is configured such that a retransmission request can be made for received data.
When the received data switching unit 25a refers to the counter value 5f / 5g and the cyclic communication frame is discarded, the communication control unit 13a transmits the retransmission request information 51a storing the node ID that has transmitted the discarded cyclic communication frame. The communication control unit 13a that has received the request generates a retransmission request frame in which the node ID that has transmitted the discarded cyclic communication frame is registered and immediately transmits the frame.
The terminal that has received the retransmission request frame immediately retransmits all the cyclic communication frames of the cyclic communication data, so that the communication delay time can be shortened even in a network abnormal state in which frame discard frequently occurs. .

図14に、廃棄されたサイクリック通信フレームを送信したノードIDを登録した再送要求フレームのフォーマット4005を示す。従来の受信フレーム5と比較して、宛先ノードID5a以外は削除して、再送要求情報として廃棄されたサイクリック通信フレームを送信したノードIDを登録しており、これを受信した端末は、自ノードIDと一致した場合、自身の送信周期に関係なく、即座にサイクリック通信データの全ての通信フレームを送信する。   FIG. 14 shows a format 4005 of a retransmission request frame in which the node ID that has transmitted the discarded cyclic communication frame is registered. Compared with the conventional reception frame 5, the node ID other than the destination node ID 5a is deleted, and the node ID that has transmitted the discarded cyclic communication frame as retransmission request information is registered. If the ID matches the ID, all communication frames of the cyclic communication data are immediately transmitted regardless of the transmission cycle of the ID.

次に、図15を用いて、実施の形態4におけるサイクリック用メモリ11aの受信データを読出すタイミングについて説明する。
図9のタイミング図と比較し、通信制御部13aが先頭(データ#1)と最後(データ#3)以外の通信フレーム(データ#2)が廃棄したことを示しており、このためデータ#2は、旧データ(3回目)から新データ(4回目)に更新できないため、受信データ切替部25aは、データ#1とデータ#3は新データ、データ#2のみ旧データとなり、データ#2のサイクリック通信フレームが廃棄されたことを検出する。
検出した場合、再送要求フレーム4005を使って、廃棄されたサイクリック通信フレームの再送を行わせることにより、フレーム廃棄が多発しているネットワーク異常状態でも通信遅延時間を短縮できるようにしている。
Next, with reference to FIG. 15, the timing for reading the received data of the cyclic memory 11a in the fourth embodiment will be described.
Compared to the timing chart of FIG. 9, the communication control unit 13a indicates that the communication frame (data # 2) other than the first (data # 1) and the last (data # 3) has been discarded, and therefore data # 2 Since the old data (third time) cannot be updated to the new data (fourth time), the received data switching unit 25a makes the data # 1 and data # 3 new data, only the data # 2 becomes old data, and the data # 2 It detects that the cyclic communication frame is discarded.
When detected, the retransmission request frame 4005 is used to retransmit the discarded cyclic communication frame, so that the communication delay time can be shortened even in a network abnormal state in which frame discard frequently occurs.

実施の形態4によれば、再送要求フレームを受信した端末が、即座にサイクリック通信データの全てのサイクリック通信フレームを再送することにより、フレーム廃棄が多発しているネットワーク異常状態でも通信遅延時間を短縮することができる。   According to the fourth embodiment, the terminal that has received the retransmission request frame immediately retransmits all the cyclic communication frames of the cyclic communication data, so that the communication delay time can be maintained even in a network abnormal state in which frame discard frequently occurs. Can be shortened.

実施の形態5.
図16は、この発明の実施の形態5によるサイクリック通信システムの端末内部を示すブロック図である。
図16において、端末A1の構成を示し、1、11a〜15a、21a〜29aは図13におけるものと同一のものである。図16では、再送要求情報52aの内容を図13における再送要求情報51aより増やしている。
Embodiment 5 FIG.
FIG. 16 is a block diagram showing the inside of the terminal of the cyclic communication system according to the fifth embodiment of the present invention.
In FIG. 16, the configuration of the terminal A1 is shown, and 1, 11a to 15a and 21a to 29a are the same as those in FIG. In FIG. 16, the contents of retransmission request information 52a are increased from retransmission request information 51a in FIG.

図17は、この発明の実施の形態5によるサイクリック通信システムの再送要求フレームフォーマットを示す図である。
図17において、再送要求フレーム5005は、ノードID5aと再送要求情報5kのフィールドを有し、再送要求情報5kには、廃棄フレームを送信したノードIDと、廃棄フレームのブロックNO、オフセット、サイズをも格納している。
FIG. 17 is a diagram showing a retransmission request frame format of the cyclic communication system according to the fifth embodiment of the present invention.
In FIG. 17, a retransmission request frame 5005 has fields of a node ID 5a and retransmission request information 5k, and the retransmission request information 5k includes the node ID that transmitted the discard frame, the block number, offset, and size of the discard frame. Storing.

実施の形態5は、再送要求フレームの内容を充実させたものである。
受信データ切替部25aが通信制御部13aに通知する再送要求情報52aに格納する情報を、廃棄されたサイクリック通信フレームを送信したノードIDだけでなく、サイクリック通信データやサイクリック通信フレームまで特定できるように、廃棄されたサイクリック通信フレーム内のブロックNOとオフセットとサイズをも格納した。
これにより、再送する端末は、廃棄されたサイクリック通信データやサイクリック通信フレームだけを再送できるようになる。
In the fifth embodiment, the contents of the retransmission request frame are enriched.
The information stored in the retransmission request information 52a notified by the reception data switching unit 25a to the communication control unit 13a is specified not only for the node ID that transmitted the discarded cyclic communication frame but also for the cyclic communication data and the cyclic communication frame. The block NO, offset and size in the discarded cyclic communication frame are also stored so that they can be done.
As a result, the retransmitting terminal can retransmit only the discarded cyclic communication data and cyclic communication frames.

図17は、廃棄されたサイクリック通信フレームを送信したノードID、及びサイクリック通信フレーム内のブロックNOとオフセットとサイズも登録した再送要求フレーム5005のフォーマットである。
実施の形態4の再送要求フレームと比較し、サイクリック通信フレーム内のブロックNOとオフセットとサイズも登録したことで、再送する端末は、廃棄されたサイクリック通信データやサイクリック通信フレームを特定できるので、必要最小限のサイクリック通信フレームのみ再送できるようになる。
FIG. 17 shows the format of the retransmission request frame 5005 in which the node ID that transmitted the discarded cyclic communication frame and the block number, offset, and size in the cyclic communication frame are also registered.
Compared with the retransmission request frame of the fourth embodiment, by registering the block number, offset, and size in the cyclic communication frame, the retransmitting terminal can specify the discarded cyclic communication data and the cyclic communication frame. Therefore, only the necessary minimum cyclic communication frame can be retransmitted.

実施の形態5によれば、再送する端末は、廃棄されたサイクリック通信データやサイクリック通信フレームだけを再送でき、フレーム廃棄が多発しているネットワーク異常状態でも通信遅延時間を短縮するだけでなく、再送に伴う通信フレーム数の増加を軽減することができる。   According to the fifth embodiment, the retransmitting terminal can retransmit only the discarded cyclic communication data and the cyclic communication frame, and not only shortens the communication delay time even in a network abnormal state where frame discard frequently occurs. Thus, the increase in the number of communication frames accompanying retransmission can be reduced.

実施の形態6.
実施の形態6のサイクリック通信システムの端末の構成は、図16におけるものと同じである。実施の形態6では、通信制御部13aから再送要求のために送信するフレームの構造が実施の形態5とは異なっている。
Embodiment 6 FIG.
The configuration of the terminal of the cyclic communication system according to the sixth embodiment is the same as that in FIG. In the sixth embodiment, the structure of a frame transmitted for a retransmission request from the communication control unit 13a is different from that in the fifth embodiment.

図18は、この発明の実施の形態6によるサイクリック通信システムの再送要求付のサイクリック通信フレームフォーマットを示す図である。
図18において、5a〜5hは図6におけるものと、5kは図17におけるものと同一のものである。
FIG. 18 is a diagram showing a cyclic communication frame format with a retransmission request in the cyclic communication system according to the sixth embodiment of the present invention.
18, 5a to 5h are the same as those in FIG. 6, and 5k are the same as those in FIG.

実施の形態6は、再送要求情報52aの通知を受けた通信制御部13aが、図17に示す再送要求フレームではなく、再送要求情報52aを格納したサイクリック通信フレーム6005を、通常の周期で送出するようにしている。
これにより、フレーム廃棄が多発しているネットワーク異常状態でも通信遅延時間を短縮するだけでなく、再送要求に伴う通信フレーム数の増加を軽減できるようにしている。
In the sixth embodiment, the communication control unit 13a that has received the notification of the retransmission request information 52a sends a cyclic communication frame 6005 in which the retransmission request information 52a is stored instead of the retransmission request frame shown in FIG. 17 at a normal cycle. Like to do.
As a result, not only can the communication delay time be shortened even in a network abnormal state in which frame discard frequently occurs, but also the increase in the number of communication frames accompanying a retransmission request can be reduced.

図18は、再送要求情報52aも登録したサイクリック通信フレーム6005のフォーマットである。実施の形態1(図6)の受信フレーム5と比較し、サイクリック通信フレーム内に、再送要求情報52aの情報を格納した再送要求情報5kのフィールドを設けたことで、受信する端末側では、廃棄されたサイクリック通信データやサイクリック通信フレームを特定できるので、さらにフレーム数の増加を軽減できるようになる。   FIG. 18 shows the format of the cyclic communication frame 6005 in which the retransmission request information 52a is also registered. Compared with the reception frame 5 of the first embodiment (FIG. 6), the field of the retransmission request information 5k storing the information of the retransmission request information 52a is provided in the cyclic communication frame. Since discarded cyclic communication data and cyclic communication frames can be specified, an increase in the number of frames can be further reduced.

実施の形態6によれば、サイクリック通信フレームにより、再送要求情報を送出するので、受信する端末側では、廃棄されたサイクリック通信データやサイクリック通信フレームを特定でき、さらにネットワーク上のフレーム数の増加を軽減することができる。   According to the sixth embodiment, since retransmission request information is transmitted by a cyclic communication frame, the receiving terminal can identify discarded cyclic communication data and cyclic communication frames, and the number of frames on the network. Can be reduced.

なお、本発明は、その発明の範囲内において、各実施の形態を自由に組み合わせたり、各実施の形態を適宜、変形、省略することが可能である。   It should be noted that the present invention can be freely combined with each other within the scope of the invention, and each embodiment can be appropriately modified or omitted.

1 端末A、2 端末B、3 端末C、4 ネットワーク、5 受信フレーム、
11a サイクリック用メモリ、11b サイクリック用メモリ、
11c サイクリック用メモリ、12a メモリ制御部、13a 通信制御部、
14a プロセッサ、15a プロセッサ制御部、21a データ監視制御部、
22a 送信データ切替部、23a 送信データメモリ、24a 送信データメモリ、
25a 受信データ切替部、26a 受信データメモリ、27a 受信データメモリ、
28a 送信マップ、29a 受信マップ、31a コピー要求フラグ、
32a コピー完了フラグ、41a 主メモリ、51a 再送要求情報、
52a 再送要求情報、4005 再送要求フレーム、5005 再送要求フレーム、
6005 サイクリック通信フレーム。
1 terminal A, 2 terminal B, 3 terminal C, 4 network, 5 received frame,
11a cyclic memory, 11b cyclic memory,
11c cyclic memory, 12a memory control unit, 13a communication control unit,
14a processor, 15a processor control unit, 21a data monitoring control unit,
22a transmission data switching unit, 23a transmission data memory, 24a transmission data memory,
25a received data switching unit, 26a received data memory, 27a received data memory,
28a transmission map, 29a reception map, 31a copy request flag,
32a copy completion flag, 41a main memory, 51a retransmission request information,
52a retransmission request information, 4005 retransmission request frame, 5005 retransmission request frame,
6005 Cyclic communication frame.

Claims (9)

複数の端末がネットワークを介してサイクリック通信を行うサイクリック通信システムであって、
上記各端末は、
上記サイクリック通信に使用されるデータを格納するサイクリック用メモリ、
このサイクリック用メモリに対するデータの読出し及び書込みを制御するメモリ制御部、
上記サイクリック用メモリのデータを用いて上記ネットワークを介して通信フレームの送信を行うとともに、上記ネットワークを介して受信した通信フレーム内のデータを上記サイクリック用メモリに格納する通信制御部、
上記サイクリック用メモリに対し、一つのサイクリック通信周期で送信されるサイクリック通信データの書込み及び一つのサイクリック通信周期で受信したサイクリック通信データの読出しを行うプロセッサ、
及び複数に分割された上記サイクリック通信データを複数の通信フレームによって送受信する場合の各データの同時性を確保するデータ整列部を備え、
上記サイクリック通信データの分割された各データには、サイクリック通信の周期ごとにカウントされるカウンタ値が付加され、
上記データ整列部は、上記カウンタ値を用いて上記サイクリック通信データの分割された各データの同時性を確保することを特徴とするサイクリック通信システム。
A cyclic communication system in which a plurality of terminals perform cyclic communication via a network,
Each of the above terminals
A cyclic memory for storing data used for the cyclic communication,
A memory control unit for controlling reading and writing of data with respect to the cyclic memory;
A communication control unit for transmitting communication frames via the network using data in the cyclic memory and storing data in the communication frames received via the network in the cyclic memory;
A processor for writing cyclic communication data transmitted in one cyclic communication cycle and reading cyclic communication data received in one cyclic communication cycle to the cyclic memory,
And a data alignment unit for ensuring the simultaneity of each data when transmitting and receiving the cyclic communication data divided into a plurality by communication frames,
A counter value that is counted for each cyclic communication cycle is added to each of the divided data of the cyclic communication data,
The cyclic communication system, wherein the data alignment unit secures simultaneity of each divided data of the cyclic communication data using the counter value.
上記データ整列部は、
読出し側と書込み側とが互いに切替えられ、読出し側からは、上記サイクリック通信によって受信したデータが上記プロセッサによって読出される一対の受信データメモリと、
この受信データメモリの書込み側に上記メモリ制御部を介して、一定周期で上記サイクリック通信によって受信した上記サイクリック用メモリのデータを書込むデータ監視制御部と、
上記受信データメモリの書込み側に書込まれたデータの同時性が上記カウンタ値を用いて確認された場合に、上記一対の受信データメモリの書込み側及び読出し側を切替える受信データ切替部とを有することを特徴とする請求項1記載のサイクリック通信システム。
The data alignment unit
A read side and a write side are switched to each other, and from the read side, a pair of received data memories from which data received by the cyclic communication is read by the processor,
A data monitoring control unit for writing the data of the cyclic memory received by the cyclic communication at a fixed period to the write side of the reception data memory via the memory control unit;
A reception data switching unit that switches between the writing side and the reading side of the pair of reception data memories when the simultaneity of the data written on the writing side of the reception data memory is confirmed using the counter value; The cyclic communication system according to claim 1.
上記一対の受信データメモリを、上記プロセッサが命令実行に際して使用する主メモリ上に配置するとともに、上記受信データ切替部を上記プロセッサに代行させることを特徴とする請求項2記載のサイクリック通信システム。   3. The cyclic communication system according to claim 2, wherein the pair of reception data memories are arranged on a main memory used by the processor when executing instructions, and the reception data switching unit is substituted for the processor. 上記データ整列部は、
読出し側と書込み側とが互いに切替えられ、書込み側には送信すべきサイクリック通信データが上記プロセッサによって書込まれる一対の送信データメモリと、
上記プロセッサによる上記送信データメモリの書込み側への書込みが終ったことを検出して、上記一対の送信データメモリの書込み側及び読出し側を切替える送信データ切替部とを有し、
データ監視制御部は、上記送信データメモリの読出し側の上記サイクリック通信データを、一定周期で上記メモリ制御部を介して上記サイクリック用メモリに書込むことを特徴とする請求項2または請求項3記載のサイクリック通信システム。
The data alignment unit
A read side and a write side are switched to each other, and on the write side, a pair of transmission data memories in which cyclic communication data to be transmitted is written by the processor,
A transmission data switching unit for detecting that writing to the writing side of the transmission data memory by the processor is completed, and switching between the writing side and the reading side of the pair of transmission data memories;
3. The data monitoring control unit writes the cyclic communication data on the reading side of the transmission data memory into the cyclic memory via the memory control unit at a constant cycle. 3. The cyclic communication system according to 3.
上記データ整列部は、
送信すべきサイクリック通信データが上記プロセッサによって書込まれる送信データメモリと、
上記プロセッサによる上記送信データメモリへの上記サイクリック通信データの書込みが終ったことを示す第1のフラグと、
上記送信データメモリの上記サイクリック通信データが、上記サイクリック用メモリへ書込まれたことを示す第2のフラグとを有し、
上記データ監視制御部は、上記第1のフラグを参照して、上記送信データメモリの上記サイクリック通信データを、一定周期で上記メモリ制御部を介して上記サイクリック用メモリに書込み、
上記プロセッサは、上記第2のフラグを参照して、上記送信データメモリへの書込みを行うことを特徴とする請求項2または請求項3記載のサイクリック通信システム。
The data alignment unit
A transmission data memory in which cyclic communication data to be transmitted is written by the processor;
A first flag indicating that the cyclic communication data has been written to the transmission data memory by the processor;
A second flag indicating that the cyclic communication data of the transmission data memory has been written to the cyclic memory;
The data monitoring controller refers to the first flag, writes the cyclic communication data of the transmission data memory to the cyclic memory via the memory controller at regular intervals,
4. The cyclic communication system according to claim 2, wherein the processor performs writing to the transmission data memory with reference to the second flag.
上記送信データメモリを、上記プロセッサが命令実行に際して使用する主メモリ上に配置したことを特徴とする請求項5記載のサイクリック通信システム。   6. The cyclic communication system according to claim 5, wherein the transmission data memory is arranged on a main memory used by the processor when executing instructions. 上記受信データ切替部は、上記サイクリック通信データの分割されたデータのうちのいずれかのデータがエラーにより廃棄されたことを検知した場合に、上記廃棄されたデータを送信した端末IDを含む再送要求情報を上記通信制御部に通知し、これを受けた上記通信制御部は、上記端末IDを格納した再送要求フレームを形成して上記ネットワークへ送出することを特徴とする請求項2〜請求項6のいずれか一項記載のサイクリック通信システム。   When the received data switching unit detects that any of the divided data of the cyclic communication data is discarded due to an error, the received data switching unit retransmits the terminal ID that transmitted the discarded data. The request information is notified to the communication control unit, and the communication control unit receiving the request information forms a retransmission request frame storing the terminal ID and transmits the frame to the network. The cyclic communication system according to claim 6. 上記再送要求情報及び上記再送要求フレームには、廃棄されたサイクリック通信データ及び通信フレームを特定できる情報を含むことを特徴とする請求項7記載のサイクリック通信システム。   8. The cyclic communication system according to claim 7, wherein the retransmission request information and the retransmission request frame include discarded cyclic communication data and information that can identify a communication frame. 上記受信データ切替部は、上記サイクリック通信データの分割されたデータのうちのいずれかのデータがエラーにより廃棄されたことを検知した場合に、上記廃棄されたデータを送信した端末ID並びに廃棄されたサイクリック通信データ及び通信フレームを特定できる情報を含む再送要求情報を、上記通信制御部に通知し、これを受けた上記通信制御部は、一定周期で送信するサイクリック通信の通信フレームに上記再送要求情報を格納して上記ネットワークへ送出することを特徴とする請求項2〜請求項6のいずれか一項記載のサイクリック通信システム。   When the received data switching unit detects that any of the divided data of the cyclic communication data is discarded due to an error, the received data switching unit and the terminal ID that transmitted the discarded data are also discarded. Retransmission request information including information that can identify the cyclic communication data and the communication frame is notified to the communication control unit, and the communication control unit that receives the notification requests the communication frame of the cyclic communication to be transmitted at a constant cycle. The cyclic communication system according to any one of claims 2 to 6, wherein retransmission request information is stored and transmitted to the network.
JP2013220834A 2013-10-24 2013-10-24 Cyclic communication system Pending JP2015082271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013220834A JP2015082271A (en) 2013-10-24 2013-10-24 Cyclic communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013220834A JP2015082271A (en) 2013-10-24 2013-10-24 Cyclic communication system

Publications (1)

Publication Number Publication Date
JP2015082271A true JP2015082271A (en) 2015-04-27

Family

ID=53012821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013220834A Pending JP2015082271A (en) 2013-10-24 2013-10-24 Cyclic communication system

Country Status (1)

Country Link
JP (1) JP2015082271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020105099A1 (en) * 2018-11-19 2020-05-28 三菱電機株式会社 Communication system, communication device, communication method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020105099A1 (en) * 2018-11-19 2020-05-28 三菱電機株式会社 Communication system, communication device, communication method, and program
TWI699105B (en) * 2018-11-19 2020-07-11 日商三菱電機股份有限公司 Communication system, communication device and computer program product
DE112018008145T5 (en) 2018-11-19 2021-08-12 Mitsubishi Electric Corporation Communication system, communication device, communication method and program
US11528348B2 (en) 2018-11-19 2022-12-13 Mitsubishi Electric Corporation Communication system, communication device, communication method, and program for reliably receiving periodic data

Similar Documents

Publication Publication Date Title
CN111682927B (en) Message synchronization method, device, equipment and medium based on MLAG environment
JP2010062729A (en) Time synchronization method and relay apparatus
TWI569607B (en) Relay device
US9197373B2 (en) Method, apparatus, and system for retransmitting data packet in quick path interconnect system
US9282015B2 (en) Network relay device
US6543014B1 (en) Data transmitting/receiving apparatus for executing data retransmission and parallel processor system
CN103678031A (en) Double 2-vote-2 redundant system and method
JPS63279633A (en) Multi-address communication system
JP2014086812A (en) Can system and node
JP5785608B2 (en) Communication node device system, device, and method
WO2019047573A1 (en) Downlink data transmission cache method, terminal, and base station
JP2015082271A (en) Cyclic communication system
JP6571628B2 (en) Cyclic communication system
US10609188B2 (en) Information processing apparatus, information processing system and method of controlling information processing system
WO2011052282A1 (en) Vehicle-mounted network device
JP2016058835A (en) Relay system and switch device
WO2021244588A1 (en) Method for processing routing message, communication device, storage medium, and system
JP6600594B2 (en) Relay system and relay device
WO2019174424A1 (en) Link capacity adjustment method, device and system, controller, and network node
TW202011715A (en) Controller, method for adjusting flow rule, and network communication system
US12040962B2 (en) Routing information management method and apparatus, and computer storage medium
US20220006720A1 (en) Routing Information Management Method and Apparatus, and Computer Storage Medium
US20200394111A1 (en) Method for Operating a Redundant Automation System
JP2018078482A (en) Transfer device, transfer method, and program
JPH06252895A (en) Data transmission system