JP3447589B2 - Communication control device and two-word connected data receiving system - Google Patents

Communication control device and two-word connected data receiving system

Info

Publication number
JP3447589B2
JP3447589B2 JP33048198A JP33048198A JP3447589B2 JP 3447589 B2 JP3447589 B2 JP 3447589B2 JP 33048198 A JP33048198 A JP 33048198A JP 33048198 A JP33048198 A JP 33048198A JP 3447589 B2 JP3447589 B2 JP 3447589B2
Authority
JP
Japan
Prior art keywords
word
data
cycle
reception
concatenated
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.)
Expired - Lifetime
Application number
JP33048198A
Other languages
Japanese (ja)
Other versions
JP2000156717A (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.)
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 JP33048198A priority Critical patent/JP3447589B2/en
Publication of JP2000156717A publication Critical patent/JP2000156717A/en
Application granted granted Critical
Publication of JP3447589B2 publication Critical patent/JP3447589B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、例えば広域監視
制御システムなどにおいて子局からサイクリックに回線
を介してデータを伝送する通信制御装置、及び2ワード
連結データの受信方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device for cyclically transmitting data from a slave station via a line in a wide area monitoring control system and the like, and a 2-word concatenated data receiving system.

【0002】[0002]

【従来の技術】図8は、子局からのサイクリックデータ
のデータ収集機能を実装した通信制御装置を示す構成図
である。図において、1はサイクリックデータのデータ
収集機能を実装した通信制御装置、2はサイクリックデ
ータを送信する子局、3は子局2からのサイクリックデ
ータを通信制御装置1に伝送するサイクリックデータ回
線である。図9は、通信制御装置のデータ受信方式を示
す図である。図において、4は通信制御装置1のデータ
受信部で、受信バッファ5を有している。6は通信制御
装置1のデータ処理部で、データ受信部4から受け取っ
たデータを収集し、上位装置に通知する。
2. Description of the Related Art FIG. 8 is a block diagram showing a communication control device having a function of collecting cyclic data from a slave station. In the figure, 1 is a communication control device having a data collection function for cyclic data, 2 is a slave station for transmitting cyclic data, and 3 is a cyclic device for transmitting cyclic data from the slave station 2 to the communication control device 1. It is a data line. FIG. 9 is a diagram showing a data receiving system of the communication control device. In the figure, reference numeral 4 denotes a data receiving unit of the communication control device 1, which has a reception buffer 5. A data processing unit 6 of the communication control device 1 collects data received from the data receiving unit 4 and notifies the host device of the data.

【0003】図10は、2ワード連結データを説明する
図である。図11は、従来の2ワード連結データの受信
方式を示す図である。図11において、7はデータ受信
部4の連結バッファである。図12は、従来の2ワード
連結データの後行ワードから受信開始した場合の受信動
作を示す図である。図13は、従来の2ワード連結デー
タのワード不良が発生した場合の受信動作を示す図であ
る。
FIG. 10 is a diagram for explaining 2-word concatenated data. FIG. 11 is a diagram showing a conventional 2-word concatenated data reception method. In FIG. 11, reference numeral 7 is a concatenation buffer of the data receiving unit 4. FIG. 12 is a diagram showing a receiving operation when receiving is started from a subsequent word of the conventional 2-word concatenated data. FIG. 13 is a diagram showing a receiving operation when a word defect of conventional 2-word concatenated data occurs.

【0004】次に動作について説明する。図9に示すよ
うに通信制御装置1では、データ受信部4でワード1か
らワードNのサイクリックデータを回線からデータ受信
を行い、データ受信部4から受け取ったデータを収集
し、上位装置に通知するデータ処理部6を有している。
データ受信部4では、回線からワードデータを受信する
たびに、受信バッファ5に格納し、受信したワード数が
1サイクルのワード数Nに達したときに初めてデータ処
理部6に通知(1サイクル受信)し、再度1ワード目か
ら受信を再開することにより、1サイクル毎の定周期受
信を行っている。
Next, the operation will be described. As shown in FIG. 9, in the communication control device 1, the data receiving unit 4 receives cyclic data of word 1 to word N from the line, collects the data received from the data receiving unit 4, and notifies the host device. It has a data processing unit 6 for performing.
Each time the data receiving unit 4 receives word data from the line, it stores it in the receiving buffer 5 and notifies the data processing unit 6 only when the number of received words reaches the word number N of one cycle (one cycle reception ), And the reception is restarted from the first word, so that fixed-cycle reception is performed for each cycle.

【0005】次に図10により、2ワード連結データに
ついて説明する。2ワード連結データとは、あるワード
(以後先行ワードという。図10のワード1)とその直
後に受信するワード(後行ワード、図10のワード2)
を1つのデータとして扱うデータをいう。そのためどち
らか一方のワードデータが欠けても、その2ワード連結
データは成立せず、無効にしなければならない。2ワー
ド連結データのデータ受信方式は、図11に示すよう
に、ワード受信してそのワードが2ワード連結データの
先行ワードである場合、一時連結バッファ7のワード1
の位置に格納して、次に受けたワードが後行ワードなら
連結バッファ7のワード2の位置に格納し、ワード1及
びワード2を受信したとき、連結データとして転送して
受信バッファ5に格納する。その後ワードNまで受信し
たときに1サイクル受信を行ったものとして上位装置に
通知する。
Next, referring to FIG. 10, the 2-word concatenated data will be described. Two-word concatenated data is a word (hereinafter referred to as a preceding word; word 1 in FIG. 10) and a word received immediately after that (a subsequent word, word 2 in FIG. 10).
Refers to data treated as one data. Even missing Therefore either word data, the two words concatenated data is not established, it must disable. As shown in FIG. 11, when the word is received and the word is the preceding word of the 2-word concatenated data, the data reception method of the 2-word concatenated data is as follows.
Is stored in the position of, and if the next received word is the subsequent word, it is stored in the position of word 2 in the concatenation buffer 7, and when word 1 and word 2 are received, they are transferred as concatenated data and stored in the reception buffer 5. To do. After that, when up to the word N is received, the upper device is notified that one cycle of reception has been performed.

【0006】[0006]

【発明が解決しようとする課題】このような2ワード連
結のデータ受信方式は、回線を接続した瞬間など後行ワ
ードから受信を開始した場合は、1回目の1サイクル受
信では2ワード連結データが受信できず、2回目の1サ
イクル受信まで待つ必要があり、データ受信が1サイク
ル分遅れるという問題点があった。この場合の従来の受
信方式を図12を用いて説明する。回線2重化の回線切
替により、どのワードから受信するか不定のときに、後
行ワードから受信を開始した場合は、最初の後行ワード
(ワード2)受信では、先行ワードを受信していないと
きの後行ワード受信であるため、廃棄する(図12の1
2−1)。その後、ワード1まで受信したところでワー
ド1を連結バッファに格納するが、受信バッファには格
納しない(2ワード連結が成立しない、図12の12−
2)。このとき1サイクルのワード数に達したために1
サイクル受信を行うが、受信バッファにはワード1、2
は格納されていないため初期値(図12の12−3)が
通知されて、1回目の1サイクル受信では正しい2ワー
ド連結データが受信できない。2回目の1サイクル受信
ではワード2を受信した時点で、1ワード前にワード1
を受信しているため2ワード連結が成立する。そのた
め、ワード2を連結バッファに格納した後、ワード1、
2を受信バッファに格納する(図12の12−4)。そ
の後、ワード1を受信したときに、1サイクルのワード
数に達したため、2回目の1サイクル受信を通知する。
このときは受信バッファには2ワード連結データが格納
されているため、2回目以降は2ワード連結データが受
信できる。2回目以降の1サイクル受信は2回目と同様
にして行われる。
In such a two-word concatenated data receiving method, when the reception is started from the succeeding word such as the moment when the line is connected, the two-word concatenated data is not received in the first one-cycle reception. There was a problem in that the data could not be received and it was necessary to wait until the second one cycle reception, and the data reception was delayed by one cycle. A conventional receiving method in this case will be described with reference to FIG. If it is uncertain which word is to be received due to line switching due to line duplication, if reception is started from the subsequent word, the preceding word is not received in the first subsequent word (word 2) reception. Since this is a subsequent word reception at time, it is discarded (1 in FIG. 12).
2-1). Thereafter, when word 1 is received, word 1 is stored in the concatenation buffer, but not stored in the reception buffer (two-word concatenation is not established, 12- in FIG. 12).
2). At this time, the number of words in one cycle is reached, so 1
Cycle reception is performed, but words 1 and 2 are stored in the reception buffer.
Is not stored, the initial value (12-3 in FIG. 12) is notified, and correct two-word concatenated data cannot be received in the first one-cycle reception. In the second one-cycle reception, when word 2 is received, word 1 is preceded by word 1.
Is received, the 2-word concatenation is established. Therefore, after storing word 2 in the concatenation buffer, word 1,
2 is stored in the reception buffer (12-4 in FIG. 12). After that, when word 1 is received, the number of words in one cycle has been reached, so the second one-cycle reception is notified.
At this time, since the 2-word concatenated data is stored in the reception buffer, the 2-word concatenated data can be received after the second time. The second and subsequent one-cycle receptions are performed in the same manner as the second reception.

【0007】また、2ワード連結データの受信におい
て、2ワードの内どちらか一方がワード不良となり受信
できなかった場合は、2ワード連結データはその受信の
サイクルでは受信できないという問題点もあった。この
場合の従来の受信方式を図13により説明する。最初の
後行ワード受信(ワード2)したときのワードが不良に
なった場合は、ワード2は廃棄(13−1)され、2ワ
ード連結は成立しない。そのため受信バッファにワード
1、2は格納されない。その後、ワード5を受信したと
ころで、1サイクルのワード数に達するため、1サイク
ル受信を行うが、受信バッファにはワード1、2は格納
されていないため、初期値が通知されて、このサイクル
では2ワード連結データが正しく受信できないことにな
る。その後のサイクルでワード1、2が正常の場合は、
そのサイクルでの2ワード連結データの受信は行えるこ
とになる。
In addition, when receiving two-word concatenated data, if one of the two words is defective and cannot be received, the two-word concatenated data cannot be received in the reception cycle. A conventional receiving method in this case will be described with reference to FIG. If the word when the first succeeding word is received (word 2) becomes defective, word 2 is discarded (13-1), and two-word concatenation is not established. Therefore, words 1 and 2 are not stored in the receive buffer. After that, when word 5 is received, the number of words in one cycle is reached, so one cycle of reception is performed, but since words 1 and 2 are not stored in the receive buffer, the initial value is notified, and in this cycle, The 2-word concatenated data cannot be received correctly. If words 1 and 2 are normal in subsequent cycles,
The 2-word concatenated data can be received in that cycle.

【0008】この発明は、上記のような課題を解決する
ためになされたものであり、2ワード連結データを有す
るサイクリックデータの受信において、2ワード連結が
成立しないサイクルにおいても、データ収集が安定して
行える通信制御装置を得ることを第一の目的とする。ま
た、2ワード連結データを有するサイクリックデータの
受信において、2ワード連結が成立しないサイクルにお
いても、受信データが得られる2ワード連結データ受信
方式を得ることを第二の目的にしている。
The present invention has been made to solve the above problems, and in receiving cyclic data having 2-word concatenated data, data collection is stable even in a cycle in which 2-word concatenation is not established. The first object is to obtain a communication control device that can be performed in this way. A second object is to obtain a two-word concatenated data reception system that can receive data even in a cycle in which two-word concatenation is not established in reception of cyclic data having two-word concatenated data.

【0009】[0009]

【課題を解決するための手段】この発明に係わる通信制
御装置においては、データ収集して上位装置に通知する
データ処理部と、1サイクルの各ワードが所定位置に格
納されるよう構成された受信バッファと連結データの先
行ワード及び後行ワードを所定位置に格納するよう構成
された連結バッファを有し、連結バッファに先行ワード
及び後行ワードが格納されたとき、連結バッファの連結
データを受信バッファに転送すると共に、受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知するデータ受信部を備え、デー
タ受信部の受信が連結データの後行ワードから開始され
たときは、その後行ワードの次のワードから始まるnワ
ードを最初の受信サイクルとするものである。
In a communication control device according to the present invention, a data processing unit for collecting data and notifying a host device, and a reception configured so that each word of one cycle is stored at a predetermined position. The buffer and the concatenated buffer configured to store the leading word and the trailing word of the concatenated data in predetermined positions, and when the leading word and the trailing word are stored in the concatenated buffer, the concatenated data of the concatenated buffer is received by the receiving buffer. And a data receiving unit that notifies the data processing unit of the reception of one cycle when a word of one cycle is stored in the reception buffer, and the reception of the data receiving unit is started from the succeeding word of the concatenated data. In this case, n words starting from the word next to the subsequent row word are used as the first reception cycle.

【0010】また、データ収集して上位装置に通知する
データ処理部と、1サイクルの各ワードが所定位置に格
納されるよう構成された受信バッファと連結データの先
行ワード及び後行ワードを所定位置に格納するよう構成
された連結バッファを有し、連結バッファに先行ワード
及び後行ワードが格納されたとき、連結バッファの連結
データを受信バッファに転送すると共に、受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知するデータ受信部を備え、受信
する連結データの後行ワードが不良のときは、不良後行
ワードの次のワードから始まるnワードを1受信サイク
ルとするものである。
Further, a data processing unit for collecting data and notifying the host device, a reception buffer configured to store each word of one cycle at a predetermined position, and a preceding word and a succeeding word of concatenated data at a predetermined position. A concatenation buffer configured to store, and when the concatenation buffer stores a preceding word and a subsequent word, concatenate data of the concatenation buffer is transferred to the reception buffer, and a word of one cycle is stored in the reception buffer. When the subsequent word of the concatenated data to be received is defective, one word of n words starting from the next word of the defective subsequent word is received in one reception cycle. It is what

【0011】また、データ収集して上位装置に通知する
データ処理部と、1サイクルの各ワードが所定位置に格
納されるよう構成された受信バッファと連結データの先
行ワード及び後行ワードを所定位置に格納するよう構成
された連結バッファを有し、連結バッファに先行ワード
及び後行ワードが格納されたとき、連結バッファの連結
データを受信バッファに転送すると共に、受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知するデータ受信部を備え、受信
する連結データの先行ワードまたは後行ワードが不良の
ときは、不良連結データに替えて前サイクルの連結デー
タを用いて1受信サイクルとするものである。
Further, a data processing unit for collecting data and notifying the host device, a reception buffer configured to store each word of one cycle at a predetermined position, and a preceding word and a succeeding word of concatenated data at a predetermined position. A concatenation buffer configured to store, and when the concatenation buffer stores a preceding word and a subsequent word, concatenate data of the concatenation buffer is transferred to the reception buffer, and a word of one cycle is stored in the reception buffer. When the preceding word or the succeeding word of the concatenated data to be received is defective, the concatenated data of the previous cycle is used instead of the defective concatenated data. 1 reception cycle.

【0012】さらに、データ収集して上位装置に通知す
るデータ処理部と、1サイクルの各ワードが所定位置に
格納されるよう構成された受信バッファと連結データの
先行ワード及び後行ワードを所定位置に格納するよう構
成された連結バッファを有し、連結バッファに先行ワー
ド及び後行ワードが格納されたとき、連結バッファの連
結データを受信バッファに転送すると共に、受信バッフ
ァに1サイクルのワードが格納されたとき、1サイクル
受信をデータ処理部に通知するデータ受信部を備え、受
信する連結データの先行ワードまたは後行ワードの不良
により、不良の連結データに替えて前サイクルの連結デ
ータを用いて1受信サイクルを形成したときは、前サイ
クルの連結データであることを示す付加情報を付して1
サイクル受信をデータ処理部に通知するものである。
Further, a data processing unit for collecting data and notifying it to a host device, a reception buffer configured to store each word of one cycle at a predetermined position, and a preceding word and a succeeding word of concatenated data at a predetermined position. A concatenation buffer configured to store, and when the concatenation buffer stores a preceding word and a subsequent word, concatenate data of the concatenation buffer is transferred to the reception buffer, and a word of one cycle is stored in the reception buffer. When the data is received, the data processing unit for notifying the data processing unit of one-cycle reception is provided, and when the preceding word or the succeeding word of the received concatenated data is defective, the concatenated data of the previous cycle is used instead of the defective concatenated data. When 1 reception cycle is formed, 1 is added with additional information indicating that it is the concatenated data of the previous cycle.
The cycle reception is notified to the data processing unit.

【0013】また、付加情報は、ワード毎に付されてい
るものである。加えて、データ受信部は、1からnまで
カウントするカウンタを有し、後行ワードの次のワード
から始まるnワードの受信サイクルは、後行ワードを受
信したとき、カウンタをゼロクリアすることによって行
うものである。また、前サイクルの連結データは、デー
タ受信部が1サイクルを受信したとき、受信バッファを
クリアしないことによって得るものである。また、この
発明に係わる2ワード連結データ受信方式においては、
受信が連結データの後行ワードから開始されたときは、
後行ワードの次のワードから始まるnワードを最初の受
信サイクルとするものである。
The additional information is attached to each word. In addition, the data receiving unit has a counter that counts from 1 to n, and the reception cycle of n words starting from the next word of the succeeding word is performed by clearing the counter to zero when the succeeding word is received. It is a thing. The concatenated data in the previous cycle is obtained by not clearing the reception buffer when the data receiving unit receives one cycle. Further, in the 2-word concatenated data receiving system according to the present invention,
When reception starts from the second word of the concatenated data,
The first reception cycle is n words starting from the word following the succeeding word.

【0014】さらにまた、受信する連結データの後行ワ
ードが不良のときは、不良後行ワードの次のワードから
始まるnワードを1受信サイクルとするものである。ま
た、受信する連結データの先行ワードまたは後行ワード
が不良のときは、不良連結データに替えて前サイクルの
連結データを用いて1受信サイクルとするものである。
また、受信する連結データの先行ワードまたは後行ワー
ドの不良により、不良の連結データに替えて前サイクル
の連結データを用いて1受信サイクルを形成したとき
は、前サイクルの連結データであることを示す付加情報
を付して1サイクル受信をデータ処理部に通知するもの
である。
Furthermore, when the succeeding word of the concatenated data to be received is defective, n words starting from the word next to the defective succeeding word are set as one reception cycle. When the preceding word or the succeeding word of the received concatenated data is defective, the concatenated data of the preceding cycle is used instead of the defective concatenated data to complete one reception cycle.
Also, if one received cycle is formed by using the concatenated data of the previous cycle instead of the defective concatenated data due to a defect in the preceding word or the succeeding word of the concatenated data to be received, it should be noted that it is the concatenated data of the previous cycle. The additional information shown is added to notify the data processing unit of one-cycle reception.

【0015】[0015]

【発明の実施の形態】実施の形態1.以下に、この発明
の実施の形態1を図に基づいて説明する。図1は、この
発明の実施の形態1による2ワード連結データ受信方式
を説明するフローチャートである。図2は、この発明の
実施の形態1による2ワード連結データの後行ワードか
ら受信開始した場合の受信動作を説明する図である。な
お、実施の形態1の2ワード連結データ受信方式が用い
られる通信制御装置は、図9、図11に示すものと同じ
構成のものを用いているので、その説明を省略する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1. Embodiment 1 of the present invention will be described below with reference to the drawings. 1 is a flow chart for explaining a 2-word concatenated data receiving system according to Embodiment 1 of the present invention. FIG. 2 is a diagram for explaining a receiving operation when receiving is started from the succeeding word of the 2-word concatenated data according to the first embodiment of the present invention. Since the communication control device using the 2-word concatenated data reception system of the first embodiment has the same configuration as that shown in FIGS. 9 and 11, its description is omitted.

【0016】図1を用いて、実施の形態1の2ワード連
結データ受信方式を説明する。ステップST1−1にお
いて受信したワードが2ワード連結データの先行ワード
または後行ワードまたはそれ以外ワードのいずれかの検
定を行い、後行ワードであった場合は、ステップST1
−2で、そのワードがこのサイクルでの受信開始ワード
であるか否かの検定を行う。受信ワードが2ワード連結
データの後行ワードで、かつ受信開始直後に受信したワ
ードであった場合は、ステップST1−3にて受信ワー
ドカウンタを−1することにより、このサイクルでの1
サイクル受信は1ワード多く受信することとなる。ステ
ップST1−4で1サイクルのワード数より1ワード多
く受信したタイミングで1サイクル受信を行う。
The 2-word concatenated data reception system of the first embodiment will be described with reference to FIG. If the word received in step ST1-1 is the preceding word of the two-word concatenated data, the succeeding word, or any other word, and if it is the succeeding word, step ST1
At -2, it is verified whether the word is the reception start word in this cycle. If the received word is the subsequent word of the 2-word concatenated data and is the word received immediately after the start of reception, the received word counter is decremented by 1 in step ST1-3 to set 1 in this cycle.
Cycle reception will receive one word more. In step ST1-4, one cycle of reception is performed at the timing when one word more than the number of words in one cycle is received.

【0017】次に受信動作について、図1及び図2を用
いて1サイクルのワード数が5ワードの場合を例にとっ
て説明する。まず、受信開始直後のワード2の受信で
は、そのワード2は2ワード連結データの後行ワードで
あると認識する。また、そのワード2は受信開始直後に
受信しているため、受信ワードカウンタは−1され、ゼ
ロにされる。ステップST1−5にて、直前に先行ワー
ドは受信していないため、ワード2は廃棄される(図2
の2−1)。その後ワード3、4、5までは2ワード連
結データ以外の受信として、ステップST1−6にて受
信バッファに格納(図2の2−2)される。
Next, the receiving operation will be described with reference to FIGS. 1 and 2 by taking the case where the number of words in one cycle is 5 as an example. First, when word 2 is received immediately after the start of reception, the word 2 is recognized as a subsequent word of the 2-word concatenated data. Since the word 2 is received immediately after the start of reception, the reception word counter is decremented by 1 and set to zero. In step ST1-5, since the preceding word has not been received immediately before, word 2 is discarded (FIG. 2).
2-1). After that, the words 3, 4, and 5 are stored in the reception buffer (2-2 in FIG. 2) as reception other than the 2-word concatenated data in step ST1-6.

【0018】その後、ワード1の受信で、2ワード連結
データの先行ワードであると認識し、ステップST1−
6にて連結バッファにワード1を格納(図2の2−3)
する。次にワード2を受信すると、そのワード2が2ワ
ード連結データの後行ワードと認識し、直前に先行ワー
ドのワード1を受信しているため、2ワード連結が成立
し、ステップST1−7、ステップST1−8にて、連
結バッファにワード2を格納(図2の2−4)した後、
ワード1、2の2ワード連結データを、受信バッファに
格納(図2の2−5)する。この時点で受信ワードカウ
ンタが1サイクルのワード数(ワード3、4、5、1、
2の5ワード)に達するため、ステップST1−10に
て受信バッファが1サイクル受信したこととなり、受信
開始したサイクルからの2ワード連結データの受信が行
えたことになる。
Thereafter, when word 1 is received, it is recognized as a preceding word of the 2-word concatenated data, and step ST1-
Store word 1 in the concatenation buffer at 6 (2-3 in FIG. 2)
To do. Next, when word 2 is received, the word 2 is recognized as the succeeding word of the 2-word concatenated data, and since the word 1 of the preceding word is received immediately before, the 2-word concatenation is established, and steps ST1-7, ST1-7, In step ST1-8, after storing word 2 in the concatenation buffer (2-4 in FIG. 2),
The 2-word concatenated data of words 1 and 2 is stored in the reception buffer (2-5 in FIG. 2). At this point, the receive word counter indicates the number of words in one cycle (words 3, 4, 5, 1,
2 5 words), the reception buffer has received 1 cycle in step ST1-10, and the 2-word concatenated data can be received from the cycle when the reception is started.

【0019】実施の形態2.以下に、この発明の実施の
形態2を図に基づいて説明する。図3は、この発明の実
施の形態2による2ワード連結データ受信方式を説明す
るフローチャートである。図4は、この発明の実施の形
態2による2ワード連結データのワード不良発生した場
合の受信動作を説明する図である。実施の形態1では、
受信開始直後のワードが2ワード連結データの後行ワー
ドの場合について述べたが、実施の形態2は2ワード連
結データの後行ワードがワード不良となった場合につい
てのものである。
Embodiment 2. Embodiment 2 of the present invention will be described below with reference to the drawings. FIG. 3 is a flow chart for explaining a 2-word concatenated data reception system according to the second embodiment of the present invention. FIG. 4 is a diagram for explaining a receiving operation when a word defect of 2-word concatenated data occurs according to the second embodiment of the present invention. In the first embodiment,
The case where the word immediately after the start of reception is the succeeding word of the two-word concatenated data has been described, but the second embodiment relates to the case where the succeeding word of the two-word concatenated data is defective.

【0020】図3に示すように、後行ワード受信の場合
のワード不良を検出(ステップST3−1)した場合
に、受信ワードカウンタを初期化(ステップST3−
2)して、それ以降の1サイクルのワード数受信を行う
ことにより、後行ワード不良による2ワード連結データ
不成立のサイクルの2ワード連結データ受信抜けを回避
することができる。
As shown in FIG. 3, when a word defect is detected in the subsequent word reception (step ST3-1), the received word counter is initialized (step ST3-).
2) Then, by receiving the number of words in one cycle after that, it is possible to avoid the lack of reception of the two-word concatenated data in the cycle in which the two-word concatenated data is not established due to the subsequent word failure.

【0021】次に受信動作について、図3及び図4を用
いて1サイクルのワード数が5ワードの場合を例にとっ
て説明する。2ワード連結データの後行ワード(ワード
2)を受信したときに、ステップST3−1によりワー
ド不良を検出する。そのときはステップST3−2より
受信ワードカウンタを初期化してゼロにし、そのワード
は廃棄(図4の4−1)する。その後ワード3、4、5
を受信した場合は、ステップST3−3より受信ワード
を受信バッファに格納(図4の4−2)する。その後ワ
ード1の受信で、2ワード連結データの先行ワードとし
てステップST3−4にて、連結バッファに格納(図4
の4−3)し、次のワード2の受信で、2ワード連結デ
ータの先行ワード受信直後の後行ワード受信として2ワ
ード連結データが成立し、ステップST3−5、ステッ
プST3−6にて連結バッファへ格納(図4の4−4)
したあと、2ワード連結データを受信バッファに格納
(図4の4−5)する。この時点で、受信ワードカウン
タが1サイクルのワード数に達する(ワード3、4、
5、1、2の5ワード)ため、ステップST3−7にて
受信バッファが1サイクル受信したこととなり、後行ワ
ード不良サイクルの2ワード連結データの受信抜けを回
避できることになる。
Next, the reception operation will be described with reference to FIGS. 3 and 4 by taking the case where the number of words in one cycle is 5 as an example. When the subsequent word (word 2) of the 2-word concatenated data is received, the word defect is detected in step ST3-1. At that time, the received word counter is initialized to zero in step ST3-2, and the word is discarded (4-1 in FIG. 4). Then words 3, 4, 5
When ST is received, the received word is stored in the reception buffer from step ST3-3 (4-2 in FIG. 4). After that, when word 1 is received, it is stored in the concatenation buffer in step ST3-4 as the preceding word of the 2-word concatenated data (see FIG. 4).
4-3), the next word 2 is received, and the 2-word concatenated data is established as the succeeding word reception immediately after the reception of the preceding word of the 2-word concatenated data, and the concatenation is performed in steps ST3-5 and ST3-6. Store in buffer (4-4 in Fig. 4)
After that, the 2-word concatenated data is stored in the reception buffer (4-5 in FIG. 4). At this point, the receive word counter reaches the number of words in one cycle (words 3, 4,
Therefore, the reception buffer has received one cycle in step ST3-7, and it is possible to avoid the reception omission of the two-word concatenated data in the subsequent word defective cycle.

【0022】実施の形態3.以下に、この発明の実施の
形態3を図に基づいて説明する。図5は、この発明の実
施の形態3による2ワード連結データ受信方式を説明す
るフローチャートである。図6は、この発明の実施の形
態3によるワード不良発生した場合の受信動作を説明す
る図である。実施の形態2では、後行ワード不良による
2ワード連結データ不成立時の受信抜けを回避する場合
について述べたが、実施の形態3では、図5に示すよう
に1サイクル受信後の受信バッファ初期化を行わないよ
うにする(ステップST5−1)ことにより、2ワード
連結データのどちらか、もしくは両方がワード不良とな
った場合でも、2ワード連結データを以前受信したもの
を使用することにより、2ワード連結データの受信を一
定周期で行うようにすることができる。
Embodiment 3. Embodiment 3 of the present invention will be described below with reference to the drawings. FIG. 5 is a flowchart illustrating a 2-word concatenated data receiving system according to the third embodiment of the present invention. FIG. 6 is a diagram illustrating a receiving operation when a word defect occurs according to the third embodiment of the present invention. In the second embodiment, the case of avoiding the reception omission when the two-word concatenated data is not established due to the subsequent word defect is described, but in the third embodiment, as shown in FIG. 5, the initialization of the reception buffer after the reception of one cycle is performed. By doing so (step ST5-1), even if either or both of the two-word concatenated data has a word defect, the previously received two-word concatenated data is used to The word concatenated data may be received at regular intervals.

【0023】次に受信動作について図5及び図6を用い
て、1サイクルのワード数が5ワードの場合を例にとっ
て説明する。2ワード連結データの先行ワード(ワード
1)を受信したときに、ステップST5−2によりワー
ド不良を検出する。そのときは、そのワードは廃棄(図
6の6−1)する。その後、後行ワード(ワード2)を
受信しても、先行ワードがワード不良であったため2ワ
ード連結は成立せず、そのワードは廃棄(図6の6−
2)する。その後ワード3、4、5を受信した場合は、
ステップST5−3より受信ワードを受信バッファに格
納(図6の6−3)する。この時点で受信ワードカウン
タが1サイクルのワード数に達する(ワード1、2、
3、4、5の5ワード)ため、ステップST5−6にて
受信バッファの内容を1サイクル受信する。2ワード連
結データは前値が通知されることにより、2ワード連結
が成立しないサイクルにおいても初期値が設定されるこ
となく、一定間隔の2ワード連結データの受信が行える
ことになる。
Next, the receiving operation will be described with reference to FIGS. 5 and 6 by taking the case where the number of words in one cycle is 5 as an example. When the preceding word (word 1) of the 2-word concatenated data is received, the word defect is detected in step ST5-2. At that time, the word is discarded (6-1 in FIG. 6). After that, even if the succeeding word (word 2) is received, the preceding word is defective and the two-word concatenation is not established, and the word is discarded (6-in FIG. 6).
2) Do. If you then receive words 3, 4, and 5,
From step ST5-3, the received word is stored in the reception buffer (6-3 in FIG. 6). At this point, the received word counter reaches the number of words in one cycle (words 1, 2,
Therefore, the contents of the receiving buffer are received for one cycle in step ST5-6. Since the previous value of the 2-word concatenated data is notified, the 2-word concatenated data can be received at regular intervals without setting the initial value even in the cycle in which the 2-word concatenation is not established.

【0024】なお、ステップST5−2で、受信ワード
が、正常の場合は、受信ワードを連結バッファに格納し
(ステップST5−4)、先行ワードと後行ワードが連
結バッファに格納されれば、連結バッファの2ワード連
結データを受信バッファに格納する(ステップST5−
5)。
In step ST5-2, if the received word is normal, the received word is stored in the concatenation buffer (step ST5-4), and if the preceding word and the succeeding word are stored in the concatenation buffer, The 2-word concatenated data of the concatenation buffer is stored in the reception buffer (step ST5-
5).

【0025】実施の形態4.以下に、この発明の実施の
形態4を図に基づいて説明する。図7は、この発明の実
施の形態4による2ワード連結データ受信方式を説明す
る図である。実施の形態4では、ワードとは別の付加情
報としてワード毎に前値を使っているかどうかの情報を
通知することにより、1サイクル受信毎に上位装置で区
別できるようになる。
Fourth Embodiment Embodiment 4 of the present invention will be described below with reference to the drawings. FIG. 7 is a diagram for explaining a 2-word concatenated data receiving system according to the fourth embodiment of the present invention. In the fourth embodiment, by notifying the information as to whether or not the previous value is used for each word, as additional information different from the word, it becomes possible for the host device to distinguish each time one cycle is received.

【0026】次に受信動作について、図7を用いて1サ
イクルのワード数が5ワードの場合を例にとって説明す
る。実施の形態3における図6の受信方式では、1サイ
クル受信のワードが前値を使っているかどうか上位装置
では区別できない。そこで、ワードを受信するたびに付
加情報に廃棄したかどうかを記録する。まず、ワード不
良により、ワードを廃棄した場合(図7の7−1、7−
2)、ワード1、2受信では前値であるという情報を付
加情報とする。また、ワード3、4、5を受信し、受信
バッファに格納した場合(図7の7−3)、ワード3、
4、5受信では更新したという情報を付加情報に反映
し、そのワードと付加情報を1サイクル受信で上位装置
に通知する。なお、実施の形態1〜実施の形態4では、
2ワード連結データの受信方式について、説明したが、
この方式を図9に示すような通信制御装置のデータ受信
部に適用できることは言うまでもない。
Next, the receiving operation will be described with reference to FIG. 7 by taking the case where the number of words in one cycle is 5 as an example. In the reception system of FIG. 6 in the third embodiment, it is not possible for the higher-level device to distinguish whether the word for 1-cycle reception uses the previous value. Therefore, each time a word is received, it is recorded in the additional information whether or not it has been discarded. First, when a word is discarded due to a word defect (7-1 and 7- in FIG. 7).
2), the information that is the previous value in receiving the words 1 and 2 is the additional information. When words 3, 4, and 5 are received and stored in the reception buffer (7-3 in FIG. 7), word 3,
In the case of receiving 4 or 5, the information that it has been updated is reflected in the additional information, and the word and the additional information are notified to the higher-level device in one cycle of reception. In the first to fourth embodiments,
I explained the method of receiving 2-word concatenated data.
It goes without saying that this method can be applied to the data receiving unit of the communication control device as shown in FIG.

【0027】[0027]

【発明の効果】この発明は、以上説明したように構成さ
れているので、以下に示すような効果を奏する。データ
収集して上位装置に通知するデータ処理部と、1サイク
ルの各ワードが所定位置に格納されるよう構成された受
信バッファと連結データの先行ワード及び後行ワードを
所定位置に格納するよう構成された連結バッファを有
し、連結バッファに先行ワード及び後行ワードが格納さ
れたとき、連結バッファの連結データを受信バッファに
転送すると共に、受信バッファに1サイクルのワードが
格納されたとき、1サイクル受信をデータ処理部に通知
するデータ受信部を備え、データ受信部の受信が連結デ
ータの後行ワードから開始されたときは、その後行ワー
ドの次のワードから始まるnワードを最初の受信サイク
ルとするので、2ワード連結データの後行ワードから受
信を開始した場合でも、最初の受信サイクルから連結デ
ータを受信できる。
Since the present invention is constructed as described above, it has the following effects. A data processing unit that collects data and notifies the upper-level device, a reception buffer configured to store each word of one cycle in a predetermined position, and a preceding word and a subsequent word of concatenated data stored in a predetermined position A concatenated buffer, the concatenated buffer stores the preceding word and the subsequent word, transfers the concatenated data of the concatenated buffer to the receive buffer, and stores one cycle of the word in the receive buffer. The data receiving unit for notifying the data processing unit of the cycle reception is provided, and when the reception of the data receiving unit is started from the succeeding word of the concatenated data, the n words starting from the next word of the succeeding row word are first received cycle. Therefore, even if the reception is started from the second word after the 2-word concatenated data, the concatenated data can be received from the first reception cycle. That.

【0028】また、データ収集して上位装置に通知する
データ処理部と、1サイクルの各ワードが所定位置に格
納されるよう構成された受信バッファと連結データの先
行ワード及び後行ワードを所定位置に格納するよう構成
された連結バッファを有し、連結バッファに先行ワード
及び後行ワードが格納されたとき、連結バッファの連結
データを受信バッファに転送すると共に、受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知するデータ受信部を備え、受信
する連結データの後行ワードが不良のときは、不良後行
ワードの次のワードから始まるnワードを1受信サイク
ルとするので、連結データの後行ワードが不良になった
場合でも、連結データの受信抜けのサイクルを回避する
ことができる。
In addition, a data processing unit for collecting data and notifying it to a host device, a reception buffer configured to store each word of one cycle at a predetermined position, and a preceding word and a succeeding word of concatenated data at predetermined positions. A concatenation buffer configured to store, and when the concatenation buffer stores a preceding word and a subsequent word, concatenate data of the concatenation buffer is transferred to the reception buffer, and a word of one cycle is stored in the reception buffer. When the subsequent word of the concatenated data to be received is defective, one word of n words starting from the next word of the defective subsequent word is received in one reception cycle. Therefore, even if the succeeding word of the concatenated data becomes defective, it is possible to avoid the missed cycle of reception of the concatenated data.

【0029】また、データ収集して上位装置に通知する
データ処理部と、1サイクルの各ワードが所定位置に格
納されるよう構成された受信バッファと連結データの先
行ワード及び後行ワードを所定位置に格納するよう構成
された連結バッファを有し、連結バッファに先行ワード
及び後行ワードが格納されたとき、連結バッファの連結
データを受信バッファに転送すると共に、受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知するデータ受信部を備え、受信
する連結データの先行ワードまたは後行ワードが不良の
ときは、不良連結データに替えて前サイクルの連結デー
タを用いて1受信サイクルとするので、一定時間間隔で
受信を行うことができる。
Further, a data processing unit for collecting data and notifying the host device, a reception buffer configured to store each word of one cycle at a predetermined position, and a preceding word and a succeeding word of concatenated data at a predetermined position. A concatenation buffer configured to store, and when the concatenation buffer stores a preceding word and a subsequent word, concatenate data of the concatenation buffer is transferred to the reception buffer, and a word of one cycle is stored in the reception buffer. When the preceding word or the succeeding word of the concatenated data to be received is defective, the concatenated data of the previous cycle is used instead of the defective concatenated data. Since one reception cycle is set, reception can be performed at fixed time intervals.

【0030】さらに、データ収集して上位装置に通知す
るデータ処理部と、1サイクルの各ワードが所定位置に
格納されるよう構成された受信バッファと連結データの
先行ワード及び後行ワードを所定位置に格納するよう構
成された連結バッファを有し、連結バッファに先行ワー
ド及び後行ワードが格納されたとき、連結バッファの連
結データを受信バッファに転送すると共に、受信バッフ
ァに1サイクルのワードが格納されたとき、1サイクル
受信をデータ処理部に通知するデータ受信部を備え、受
信する連結データの先行ワードまたは後行ワードの不良
により、不良の連結データに替えて前サイクルの連結デ
ータを用いて1受信サイクルを形成したときは、前サイ
クルの連結データであることを示す付加情報を付して1
サイクル受信をデータ処理部に通知するので、データ処
理部及び上位装置で前サイクルの連結データを使用して
いることを認識できる。
Further, a data processing unit for collecting data and notifying the host device, a reception buffer configured to store each word of one cycle at a predetermined position, and a preceding word and a succeeding word of concatenated data at a predetermined position. A concatenation buffer configured to store, and when the concatenation buffer stores a preceding word and a subsequent word, concatenate data of the concatenation buffer is transferred to the reception buffer, and a word of one cycle is stored in the reception buffer. When the data is received, the data processing unit for notifying the data processing unit of one-cycle reception is provided, and when the preceding word or the succeeding word of the received concatenated data is defective, the concatenated data of the previous cycle is used instead of the defective concatenated data. When 1 reception cycle is formed, 1 is added with additional information indicating that it is the concatenated data of the previous cycle.
Since the data processing unit is notified of the cycle reception, it can be recognized that the data processing unit and the host device are using the concatenated data of the previous cycle.

【0031】また、付加情報は、ワード毎に付されてい
るので、データ処理部及び上位装置で前サイクルの連結
データを使用していることを認識できる。加えて、デー
タ受信部は、1からnまでカウントするカウンタを有
し、後行ワードの次のワードから始まるnワードの受信
サイクルは、後行ワードを受信したとき、カウンタをゼ
ロクリアすることによって行うので、1サイクルの形成
を簡単に行うことができる。
Further, since the additional information is attached to each word, it can be recognized that the data processing unit and the host device are using the concatenated data of the previous cycle. In addition, the data receiving unit has a counter that counts from 1 to n, and the reception cycle of n words starting from the next word of the succeeding word is performed by clearing the counter to zero when the succeeding word is received. Therefore, one cycle can be easily formed.

【0032】また、前サイクルの連結データは、データ
受信部が1サイクルを受信したとき、受信バッファをク
リアしないことによって得るので、余分な時間を必要と
せず、簡単に前サイクルの連結データを得ることができ
る。また、2ワード連結データ受信方式において、受信
が連結データの後行ワードから開始されたときは、後行
ワードの次のワードから始まるnワードを最初の受信サ
イクルとするので、2ワード連結データの後行ワードか
ら受信を開始した場合でも、最初の受信サイクルから連
結データを受信できる。
Since the concatenated data of the previous cycle is obtained by not clearing the reception buffer when the data receiving unit receives one cycle, extra time is not required and the concatenated data of the previous cycle is easily obtained. be able to. In addition, in the 2-word concatenated data reception method, when the reception is started from the succeeding word of the concatenated data, the n words starting from the word next to the succeeding word are set as the first reception cycle, and thus the 2-word concatenated data is Even when the reception is started from the succeeding word, the concatenated data can be received from the first reception cycle.

【0033】さらにまた、受信する連結データの後行ワ
ードが不良のときは、不良後行ワードの次のワードから
始まるnワードを1受信サイクルとするので、連結デー
タの後行ワードが不良になった場合でも、連結データの
受信抜けのサイクルを回避することができる。また、受
信する連結データの先行ワードまたは後行ワードが不良
のときは、不良連結データに替えて前サイクルの連結デ
ータを用いて1受信サイクルとするので、一定時間間隔
で受信を行うことができる。
Furthermore, when the succeeding word of the concatenated data to be received is defective, n words starting from the word next to the defective succeeding word are set as one reception cycle, so that the succeeding word of the concatenated data becomes defective. In this case, it is possible to avoid a missed cycle of receiving concatenated data. Further, when the preceding word or the succeeding word of the concatenated data to be received is defective, the concatenated data of the previous cycle is used instead of the defective concatenated data to form one reception cycle, so that the reception can be performed at a constant time interval. .

【0034】また、受信する連結データの先行ワードま
たは後行ワードの不良により、不良の連結データに替え
て前サイクルの連結データを用いて1受信サイクルを形
成したときは、前サイクルの連結データであることを示
す付加情報を付して1サイクル受信をデータ処理部に通
知するので、データ処理部で前サイクルの連結データを
使用していることを認識できる。
When one reception cycle is formed by using the concatenated data of the previous cycle instead of the defective concatenated data due to a defect in the preceding word or the succeeding word of the concatenated data to be received, the concatenated data of the preceding cycle is used. Since the one-cycle reception is notified to the data processing unit by adding the additional information indicating that the data is present, the data processing unit can recognize that the concatenated data of the previous cycle is used.

【図面の簡単な説明】[Brief description of drawings]

【図1】 この発明の実施の形態1による2ワード連結
データの後行ワードから受信開始した場合の受信方式の
フローチャートである。
FIG. 1 is a flowchart of a receiving method when receiving is started from a succeeding word of two-word concatenated data according to the first embodiment of the present invention.

【図2】 この発明の実施の形態1による2ワード連結
データの後行ワードから受信開始した場合の受信動作を
説明する図である。
FIG. 2 is a diagram illustrating a receiving operation when receiving is started from a subsequent word of two-word concatenated data according to the first embodiment of the present invention.

【図3】 この発明の実施の形態2による2ワード連結
データのワード不良発生の場合の受信方式のフローチャ
ートである。
FIG. 3 is a flowchart of a receiving method in the case where a word defect occurs in 2-word concatenated data according to the second embodiment of the present invention.

【図4】 この発明の実施の形態2による2ワード連結
データのワード不良発生した場合の受信動作を説明する
図である。
FIG. 4 is a diagram illustrating a receiving operation when a word defect occurs in 2-word concatenated data according to the second embodiment of the present invention.

【図5】 この発明の実施の形態3による2ワード連結
データのワード不良発生の場合の受信方式のフローチャ
ートである。
FIG. 5 is a flowchart of a receiving method in the case where a word defect occurs in 2-word concatenated data according to the third embodiment of the present invention.

【図6】 この発明の実施の形態3によるワード不良発
生した場合の受信動作を説明する図である。
FIG. 6 is a diagram for explaining a receiving operation when a word defect occurs according to the third embodiment of the present invention.

【図7】 この発明の実施の形態4による2ワード連結
データのワード不良発生の場合の受信動作を説明する図
である。
FIG. 7 is a diagram illustrating a receiving operation in the case where a word defect occurs in 2-word concatenated data according to the fourth embodiment of the present invention.

【図8】 子局からのサイクリックデータのデータ収集
機能を実装した通信制御装置を示す構成図である。
FIG. 8 is a configuration diagram showing a communication control device equipped with a function of collecting cyclic data from a slave station.

【図9】 通信制御装置のデータ受信方式を示す図であ
る。
FIG. 9 is a diagram showing a data receiving system of the communication control device.

【図10】 2ワード連結データを説明する図である。FIG. 10 is a diagram illustrating 2-word concatenated data.

【図11】 2ワード連結データの受信方式を示す図で
ある。
FIG. 11 is a diagram showing a method of receiving 2-word concatenated data.

【図12】 従来の2ワード連結データの後行ワードか
ら受信開始した場合の受信を示す図である。
FIG. 12 is a diagram showing reception when the reception is started from the succeeding word of the conventional 2-word concatenated data.

【図13】 従来の2ワード連結データのワード不良発
生した場合の受信を示す図である。
FIG. 13 is a diagram showing reception when a word defect of conventional 2-word concatenated data occurs.

【符号の説明】[Explanation of symbols]

1 通信制御装置、 2 子局、 3 サイクリックデ
ータ回線、4 データ受信部、 5 受信バッファ、
6 データ処理部、7 連結バッファ。
1 communication control device, 2 slave stations, 3 cyclic data line, 4 data receiving section, 5 receive buffer,
6 data processor, 7 concatenation buffer.

Claims (11)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 先行ワード及び後行ワードの2ワードが
連結された連結データを含むnワード(nは正の整数)
を1サイクルとするサイクリックデータを受信して収集
データを上位装置に通知する通信制御装置において、デ
ータ収集して上位装置に通知するデータ処理部、1サイ
クルの各ワードが所定位置に格納されるよう構成された
受信バッファと、連結データの先行ワード及び後行ワー
ドを所定位置に格納するよう構成された連結バッファを
有し、上記連結バッファに先行ワード及び後行ワードが
格納されたとき、上記連結バッファの連結データを上記
受信バッファに転送すると共に、上記受信バッファに1
サイクルのワードが格納されたとき、1サイクル受信を
上記データ処理部に通知するデータ受信部を備え、上記
データ受信部の受信が連結データの後行ワードから開始
されたときは、上記後行ワードの次のワードから始まる
nワードを最初の受信サイクルとすることを特徴とする
通信制御装置。
1. An n word (n is a positive integer) containing concatenated data in which two words of a preceding word and a succeeding word are concatenated.
In a communication control device that receives cyclic data having one cycle as a cycle and notifies collected data to a higher-level device, a data processing unit that collects data and notifies the higher-level device, each word of one cycle is stored at a predetermined position. And a concatenation buffer configured to store the preceding word and the succeeding word of the concatenated data at predetermined positions, and when the preceding word and the succeeding word are stored in the concatenated buffer, The concatenated data in the concatenation buffer is transferred to the reception buffer and at the same time 1
When the word of the cycle is stored, the data processing unit is provided for notifying the data processing unit of one cycle reception, and when the reception of the data receiving unit is started from the subsequent word of the concatenated data, the subsequent word The communication control device is characterized in that n words starting from the next word of are the first reception cycle.
【請求項2】 先行ワード及び後行ワードの2ワードが
連結された連結データを含むnワード(nは正の整数)
を1サイクルとするサイクリックデータを受信して収集
データを上位装置に通知する通信制御装置において、デ
ータ収集して上位装置に通知するデータ処理部、1サイ
クルの各ワードが所定位置に格納されるよう構成された
受信バッファと、連結データの先行ワード及び後行ワー
ドを所定位置に格納するよう構成された連結バッファを
有し、上記連結バッファに先行ワード及び後行ワードが
格納されたとき、上記連結バッファの連結データを上記
受信バッファに転送すると共に、上記受信バッファに1
サイクルのワードが格納されたとき、1サイクル受信を
上記データ処理部に通知するデータ受信部を備え、上記
受信する連結データの後行ワードが不良のときは、上記
不良後行ワードの次のワードから始まるnワードを1受
信サイクルとすることを特徴とする通信制御装置。
2. An n-word (n is a positive integer) including concatenated data in which two words of a preceding word and a succeeding word are concatenated.
In a communication control device that receives cyclic data having one cycle as a cycle and notifies collected data to a higher-level device, a data processing unit that collects data and notifies the higher-level device, each word of one cycle is stored at a predetermined position. And a concatenation buffer configured to store the preceding word and the succeeding word of the concatenated data at predetermined positions, and when the preceding word and the succeeding word are stored in the concatenated buffer, The concatenated data in the concatenation buffer is transferred to the reception buffer and at the same time 1
When a word of a cycle is stored, the data processing unit is provided for notifying the data processing unit of reception of one cycle, and when the succeeding word of the received concatenated data is defective, the next word of the defective succeeding word is provided. A communication control device, wherein n words starting from 1 are set as one reception cycle.
【請求項3】 先行ワード及び後行ワードの2ワードが
連結された連結データを含むnワード(nは正の整数)
を1サイクルとするサイクリックデータを受信して収集
データを上位装置に通知する通信制御装置において、デ
ータ収集して上位装置に通知するデータ処理部、1サイ
クルの各ワードが所定位置に格納されるよう構成された
受信バッファと、連結データの先行ワード及び後行ワー
ドを所定位置に格納するよう構成された連結バッファを
有し、上記連結バッファに先行ワード及び後行ワードが
格納されたとき、上記連結バッファの連結データを上記
受信バッファに転送すると共に、上記受信バッファに1
サイクルのワードが格納されたとき、1サイクル受信を
上記データ処理部に通知するデータ受信部を備え、上記
受信する連結データの先行ワードまたは後行ワードが不
良のときは、上記不良連結データに替えて前サイクルの
連結データを用いて1受信サイクルとすることを特徴と
する通信制御装置。
3. An n-word (n is a positive integer) including concatenated data in which two words of a preceding word and a succeeding word are concatenated.
In a communication control device that receives cyclic data having one cycle as a cycle and notifies collected data to a higher-level device, a data processing unit that collects data and notifies the higher-level device, each word of one cycle is stored at a predetermined position. And a concatenation buffer configured to store the preceding word and the succeeding word of the concatenated data at predetermined positions, and when the preceding word and the succeeding word are stored in the concatenated buffer, The concatenated data in the concatenation buffer is transferred to the reception buffer and at the same time 1
When a word of a cycle is stored, a data receiving unit is provided to notify the data processing unit of one-cycle reception, and when the preceding word or the succeeding word of the received concatenated data is defective, it is replaced with the defective concatenated data. The communication control device is characterized in that one reception cycle is performed by using the concatenated data of the previous cycle.
【請求項4】 先行ワード及び後行ワードの2ワードが
連結された連結データを含むnワード(nは正の整数)
を1サイクルとするサイクリックデータを受信して収集
データを上位装置に通知する通信制御装置において、デ
ータ収集して上位装置に通知するデータ処理部、1サイ
クルの各ワードが所定位置に格納されるよう構成された
受信バッファと、連結データの先行ワード及び後行ワー
ドを所定位置に格納するよう構成された連結バッファを
有し、上記連結バッファに先行ワード及び後行ワードが
格納されたとき、上記連結バッファの連結データを上記
受信バッファに転送すると共に、上記受信バッファに1
サイクルのワードが格納されたとき、1サイクル受信を
上記データ処理部に通知するデータ受信部を備え、上記
受信する連結データの先行ワードまたは後行ワードの不
良により、上記不良の連結データに替えて前サイクルの
連結データを用いて1受信サイクルを形成したときは、
前サイクルの連結データであることを示す付加情報を付
して1サイクル受信をデータ処理部に通知することを特
徴とする通信制御装置。
4. An n-word (n is a positive integer) including concatenated data in which two words of a preceding word and a succeeding word are concatenated.
In a communication control device that receives cyclic data having one cycle as a cycle and notifies collected data to a higher-level device, a data processing unit that collects data and notifies the higher-level device, each word of one cycle is stored at a predetermined position. And a concatenation buffer configured to store the preceding word and the succeeding word of the concatenated data at predetermined positions, and when the preceding word and the succeeding word are stored in the concatenated buffer, The concatenated data in the concatenation buffer is transferred to the reception buffer and at the same time 1
When a word of a cycle is stored, the data processing unit is provided for notifying the data processing unit of one cycle reception, and the defective concatenated data is replaced by the defective concatenated data preceding or succeeding word. When one receive cycle is formed using the concatenated data of the previous cycle,
A communication control device characterized by notifying a data processing unit of reception of one cycle by adding additional information indicating that the data is the connected data of the previous cycle.
【請求項5】 付加情報は、ワード毎に付されているこ
とを特徴とする請求項4記載の通信制御装置。
5. The communication control device according to claim 4, wherein the additional information is attached to each word.
【請求項6】 データ受信部は、1からnまでカウント
するカウンタを有し、後行ワードの次のワードから始ま
るnワードの受信サイクルは、上記後行ワードを受信し
たとき、上記カウンタをゼロクリアすることによって行
うことを特徴とする請求項1または請求項2記載の通信
制御装置。
6. The data receiving unit has a counter that counts from 1 to n, and in a reception cycle of n words starting from a word next to a succeeding word, the counter is cleared to zero when the succeeding word is received. The communication control device according to claim 1, wherein the communication control device is performed by
【請求項7】 前サイクルの連結データは、データ受信
部が1サイクルを受信したとき、受信バッファをクリア
しないことによって得ることを特徴とする請求項3〜請
求項5記載の通信制御装置。
7. The communication control device according to claim 3, wherein the concatenated data of the previous cycle is obtained by not clearing the reception buffer when the data receiving unit receives one cycle.
【請求項8】 nワード(nは正の整数)を1サイクル
とするサイクリックデータに含まれる2ワード連結デー
タの先行ワード及び後行ワードを所定位置に格納するよ
う構成された連結バッファと、上記1サイクルの各ワー
ドが所定位置に格納されるよう構成された受信バッファ
を有し、上記先行ワード及び後行ワードが連結バッファ
に格納されたとき、上記連結バッファの連結データを上
記受信バッファに転送すると共に、上記受信バッファに
1サイクルのワードが格納されたとき、1サイクル受信
をデータ処理部に通知する2ワード連結データ受信方式
において、上記受信が連結データの後行ワードから開始
されたときは、上記後行ワードの次のワードから始まる
nワードを最初の受信サイクルとすることを特徴とする
2ワード連結データ受信方式。
8. A concatenation buffer configured to store a preceding word and a succeeding word of two-word concatenated data included in cyclic data having n words (n is a positive integer) as one cycle, in a predetermined position. When the preceding word and the succeeding word are stored in the concatenation buffer, the concatenation data of the concatenation buffer is stored in the reception buffer. In the two-word concatenated data reception method of notifying the data processing unit of one-cycle reception when the word of one cycle is stored in the reception buffer while being transferred, when the reception is started from the subsequent word of the concatenation data. Is a two-word concatenated data, characterized in that the first reception cycle is n words starting from the word next to the following word. Receiving method.
【請求項9】 nワード(nは正の整数)を1サイクル
とするサイクリックデータに含まれる2ワード連結デー
タの先行ワード及び後行ワードを所定位置に格納するよ
う構成された連結バッファと、上記1サイクルの各ワー
ドが所定位置に格納されるよう構成された受信バッファ
を有し、上記先行ワード及び後行ワードが連結バッファ
に格納されたとき、上記連結バッファの連結データを上
記受信バッファに転送すると共に、上記受信バッファに
1サイクルのワードが格納されたとき、1サイクル受信
をデータ処理部に通知する2ワード連結データ受信方式
において、受信する連結データの後行ワードが不良のと
きは、上記不良後行ワードの次のワードから始まるnワ
ードを1受信サイクルとすることを特徴とする2ワード
連結データ受信方式。
9. A concatenation buffer configured to store a preceding word and a succeeding word of two-word concatenated data included in cyclic data having n words (n is a positive integer) as one cycle in a predetermined position, When the preceding word and the succeeding word are stored in the concatenation buffer, the concatenation data of the concatenation buffer is stored in the reception buffer. In the two-word concatenated data reception method of notifying the data processing unit of the reception of one cycle when a word of one cycle is stored in the reception buffer while being transferred, when the succeeding word of the concatenated data to be received is defective, A two-word concatenated data receiving method, wherein n words starting from the word next to the defective succeeding word are set as one reception cycle. .
【請求項10】 nワード(nは正の整数)を1サイク
ルとするサイクリックデータに含まれる2ワード連結デ
ータの先行ワード及び後行ワードを所定位置に格納する
よう構成された連結バッファと、上記1サイクルの各ワ
ードが所定位置に格納されるよう構成された受信バッフ
ァを有し、上記先行ワード及び後行ワードが連結バッフ
ァに格納されたとき、上記連結バッファの連結データを
上記受信バッファに転送すると共に、上記受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知する2ワード連結データ受信方
式において、受信する連結データの先行ワードまたは後
行ワードが不良のときは、上記不良連結データに替えて
前サイクルの連結データを用いて1受信サイクルとする
ことを特徴とする2ワード連結データ受信方式。
10. A concatenation buffer configured to store a preceding word and a succeeding word of two-word concatenated data included in cyclic data having n words (n is a positive integer) as one cycle in a predetermined position, When the preceding word and the succeeding word are stored in the concatenation buffer, the concatenation data of the concatenation buffer is stored in the reception buffer. In the two-word concatenated data reception method of notifying the data processing unit of the reception of one cycle when a word of one cycle is stored in the reception buffer while being transferred, the preceding word or the succeeding word of the concatenated data to be received is defective. In this case, the concatenated data of the previous cycle is used instead of the defective concatenated data to make one reception cycle. Word concatenated data reception method.
【請求項11】 nワード(nは正の整数)を1サイク
ルとするサイクリックデータに含まれる2ワード連結デ
ータの先行ワード及び後行ワードを所定位置に格納する
よう構成された連結バッファと、上記1サイクルの各ワ
ードが所定位置に格納されるよう構成された受信バッフ
ァを有し、上記先行ワード及び後行ワードが連結バッフ
ァに格納されたとき、上記連結バッファの連結データを
上記受信バッファに転送すると共に、上記受信バッファ
に1サイクルのワードが格納されたとき、1サイクル受
信をデータ処理部に通知する2ワード連結データ受信方
式において、受信する連結データの先行ワードまたは後
行ワードの不良により、上記不良の連結データに替えて
前サイクルの連結データを用いて1受信サイクルを形成
したときは、前サイクルの連結データであることを示す
付加情報を付して1サイクル受信をデータ処理部に通知
することを特徴とする2ワード連結データ受信方式。
11. A concatenation buffer configured to store a preceding word and a succeeding word of two-word concatenated data included in cyclic data having n words (n is a positive integer) as one cycle, in a predetermined position. When the preceding word and the succeeding word are stored in the concatenation buffer, the concatenation data of the concatenation buffer is stored in the reception buffer. In the two-word concatenated data reception method of notifying the data processing unit of one-cycle reception when a word of one cycle is stored in the reception buffer while being transferred, due to a defect in the preceding word or the succeeding word of the concatenated data to be received. , When one received cycle is formed by using the concatenated data of the previous cycle instead of the concatenated data of the above defect, A two-word concatenated data reception method characterized in that the data processing unit is notified of one-cycle reception with additional information indicating that the data is concatenated data.
JP33048198A 1998-11-20 1998-11-20 Communication control device and two-word connected data receiving system Expired - Lifetime JP3447589B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33048198A JP3447589B2 (en) 1998-11-20 1998-11-20 Communication control device and two-word connected data receiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33048198A JP3447589B2 (en) 1998-11-20 1998-11-20 Communication control device and two-word connected data receiving system

Publications (2)

Publication Number Publication Date
JP2000156717A JP2000156717A (en) 2000-06-06
JP3447589B2 true JP3447589B2 (en) 2003-09-16

Family

ID=18233115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33048198A Expired - Lifetime JP3447589B2 (en) 1998-11-20 1998-11-20 Communication control device and two-word connected data receiving system

Country Status (1)

Country Link
JP (1) JP3447589B2 (en)

Also Published As

Publication number Publication date
JP2000156717A (en) 2000-06-06

Similar Documents

Publication Publication Date Title
US8046512B2 (en) Communication system with master and slave exchanging control data in predetermined communication period
JPS63234343A (en) Communication between station of system of a plurality of processors linked to communication medium and a plurality of stations
JP2848784B2 (en) Packet switching method
JPH01202950A (en) Token ring transmission system
JP3447589B2 (en) Communication control device and two-word connected data receiving system
RU2537811C2 (en) Subscriber node of communication system having functionally separate transmission event memory
JPS63124650A (en) Digital trunk interface
TW448650B (en) Method for processing error of received packet in Ethernet MAC layer
JP3190895B2 (en) Automatic communication error recovery system
JP2900364B2 (en) Communication control device
JP3058972B2 (en) Storage method of communication data history between CPUs
JP2944420B2 (en) Transmission unit mismatch detection method and transmission unit mismatch detection device
JPH0350927A (en) Frame alinger and its control method
JP3550634B2 (en) Memory link data communication method and device
US20020075977A1 (en) Data communication method and communication control apparatus
JP4051615B2 (en) Disk unit
JP3068545B2 (en) INFORMATION PROCESSING APPARATUS, RETRY CONTROL METHOD THEREOF, AND RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING THE METHOD
JP2576364B2 (en) Loop type transmission device
JP2002084296A (en) Atm cell transfer system and its cell reception protection circuit
JP2696105B2 (en) Network interconnect circuit
JPH0494293A (en) Data guard processing system
JP2002215567A (en) Usb controller
JPH01293049A (en) Reception controlling system for distributed processing type packet exchange
JP2002278917A (en) Image data transfer system
JP2005341492A (en) Gateway unit and method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070704

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080704

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090704

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100704

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100704

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120704

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120704

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130704

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term