[go: up one dir, main page]

JPH07288532A - Simultaneous multiple address communication method - Google Patents

Simultaneous multiple address communication method

Info

Publication number
JPH07288532A
JPH07288532A JP370295A JP370295A JPH07288532A JP H07288532 A JPH07288532 A JP H07288532A JP 370295 A JP370295 A JP 370295A JP 370295 A JP370295 A JP 370295A JP H07288532 A JPH07288532 A JP H07288532A
Authority
JP
Japan
Prior art keywords
node
data
polling
response
master
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
JP370295A
Other languages
Japanese (ja)
Inventor
Shinya Ono
信也 大野
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP370295A priority Critical patent/JPH07288532A/en
Publication of JPH07288532A publication Critical patent/JPH07288532A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To surely update data while reducing a simultaneous multiple address communication period. CONSTITUTION:A node #00 being a polling master sends a polling command to other nodes #01-#04, other node sends reply data to the polling master with respect to the polling command and the polling master applies simultaneous multiple address communication of data collected from each node as batch data, the node #00 changes an unconditional reply bit provided on the polling command to '1' when a reception error or reception time expiration takes place in the preceding polling and sends the resulting data and the nodes #01-#04 send only a header part as reply data when no state change is caused or the unconditional reply bit is '0' and send reply data when no state change is caused in the reply data while the unconditional reply bit is '1'.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ローカル・エリア・ネ
ットワーク(LAN)における一斉同報通信方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a broadcast communication method in a local area network (LAN).

【0002】[0002]

【従来の技術】ローカル・エリア・ネットワークの持つ
機能の1つに、一斉同報通信がある。この通信機能は、
伝送路上に接続される各LANインターフェース(各々
をノードと呼ぶ)がそれぞれに自己ノードの出力データ
領域を持ち、全てのノードがその各々のノードの出力デ
ータを共有することを実現する。
2. Description of the Related Art Broadcasting is one of the functions of a local area network. This communication function is
Each LAN interface (each called a node) connected on the transmission path has its own output data area, and all nodes share the output data of each node.

【0003】この通信方法には、あるノードがポーリン
グマスタとなり、各ノードの出力データを全て収集した
ときに全てのノードに全データを一括送信するというも
のがある。
In this communication method, a certain node serves as a polling master, and when all output data of each node are collected, all the data are collectively transmitted to all the nodes.

【0004】この例を図7に示す。同図はノード数を5
とし、ノード#00をポーリングマスタノードとする。
また、各ノードの出力データを128ワード(1ワード
=16ビット)とし、送受信には最低限必要なデータ領
域をヘッダとして4ワード用意する。このヘッダにはコ
マンド識別、ノード識別、送信サイズ等が含まれる。
An example of this is shown in FIG. In the figure, the number of nodes is 5
And node # 00 is the polling master node.
Further, the output data of each node is 128 words (1 word = 16 bits), and the minimum data area required for transmission / reception is prepared as 4 headers. This header contains command identification, node identification, transmission size, and the like.

【0005】一斉同報通信手順は、まずノード#00か
らノード#01へポーリングコマンドを送信し、ノード
#01からの応答データをノード#00が持つノード#
01用のデータ領域に保存する。図8には各ノードが持
つ共有データ領域を示す。
In the broadcast communication procedure, first, a polling command is transmitted from the node # 00 to the node # 01, and the response data from the node # 01 is stored in the node # 00.
Save in 01 data area. FIG. 8 shows the shared data area of each node.

【0006】同様に、ノード#00はノード#02、#
03、#04に対してポーリングコマンドの送信と当該
ノードからのデータ受信を行う。この後、各ノードから
受信したデータを一斉同報通信データとして送信する。
Similarly, the node # 00 has nodes # 02 and #.
A polling command is transmitted to 03 and # 04 and data is received from the node. After that, the data received from each node is transmitted as broadcast data.

【0007】[0007]

【発明が解決しようとする課題】従来の一斉同報通信で
は、各ノードは出力データ領域として定められたデータ
を全て送信する。例えば、図7では一斉同報通信周期で
示される一巡の伝送において、伝送路上を流れるデータ
の総数は、データ収集に(4+132)×4ワードを要
し、一括データとして4+644ワードを要し、総計で
1188ワードを毎周期固定のものとして送受信する。
In conventional broadcast communication, each node transmits all the data defined as the output data area. For example, in FIG. 7, in one round of transmission indicated by the broadcast communication period, the total number of data flowing on the transmission path requires (4 + 132) × 4 words for data collection and 4 + 644 words for collective data, which is a total. In this case, 1188 words are transmitted / received as being fixed every cycle.

【0008】したがって、一斉同報通信周期は、未接続
ノードがある場合を除いて常に一定の時間となる。但
し、ポーリングコマンド送信後のリプライタイムを考慮
しないとする。
Therefore, the broadcast communication cycle is always a constant time except when there is an unconnected node. However, the reply time after sending the polling command is not considered.

【0009】ここで、ホストシステムからみると、一斉
同報通信周期が短いほど最新のデータの更新周期を短縮
して好ましいものとなる。
From the viewpoint of the host system, the shorter the simultaneous broadcast communication cycle, the shorter the latest data update cycle, which is preferable.

【0010】この一斉同報通信周期を短縮する方法とし
て、各ノードが前回に送信したデータに変化がなければ
ポーリングコマンドに対する応答データの送信を省略す
る方法がある。
As a method of shortening this broadcast communication cycle, there is a method of omitting the transmission of the response data to the polling command unless the data transmitted by each node last time has changed.

【0011】本来、ポーリングマスタからポーリングを
受けるノードは、今回送信する出力データが前回送信し
た出力データと変化がない場合、出力データを送信する
意味がない。そこで、前回値と同じ場合には出力データ
は送信せずにヘッダ部に前回値と同じであるという情報
を乗せた応答を行う。これにより、応答データは、4ワ
ードのみとなり、結果として一斉同報通信周期は短くな
り、システムの性能向上になる。
Originally, a node that receives polling from a polling master does not make sense to send output data if the output data sent this time is the same as the output data sent last time. Therefore, if it is the same as the previous value, the output data is not transmitted, and a response is added with the information that the header value is the same as the previous value. As a result, the response data is only 4 words, and as a result, the broadcast period is shortened, and the system performance is improved.

【0012】しかし、この通信方法では、ポーリングマ
スタが応答データを取り損なう危険性を含む。仮に、ポ
ーリングマスタがあるノードの出力データを取り損な
い、それ以降、そのノードで出力データの状態変化が起
きない場合には、そのノードはポーリングコマンドに対
して出力データを送信しないため、ポーリングマスタは
取り損ねたデータを永久に収集することができなくな
る。なお、応答データの取り損ねは、伝送路上にノイズ
等がのって発生する伝送プロトコルの受信エラーが発生
したことを意味する。
However, this communication method involves a risk that the polling master may miss the response data. If the polling master misses the output data of a node and the state of the output data does not change after that, the node does not send the output data in response to the polling command. You will not be able to permanently collect missed data. The failure to collect the response data means that a reception error of the transmission protocol occurs due to noise or the like on the transmission path.

【0013】本発明の目的は、一斉同報通信周期を短縮
しながら確実なデータ更新を行う一斉同報通信方法を提
供することにある。
An object of the present invention is to provide a broadcast communication method for surely updating data while shortening the broadcast communication cycle.

【0014】[0014]

【課題を解決するための手段】本発明は、前記課題の解
決を図るため、ポーリングマスタとなったノードが他の
ノードに対してポーリングコマンドを送信し、このポー
リングコマンドに対して他のノードが応答データをポー
リングマスタに送信し、ポーリングマスタは各ノードか
ら収集したデータを一括データとして各ノードに一斉同
報する一斉同報通信方法において、前記ポーリングマス
タは、前記ポーリングコマンドに無条件応答ビットを設
け、前回のデータ収集に受信エラー又は受信タイムアウ
トを発生したノードに対するポーリングコマンドは該無
条件応答ビットを「1」に変更して送信し、前記他のノ
ードは、受信したポーリングコマンドに対して応答デー
タに状態変化があるとき又は前記無条件応答ビットが
「1」にあるときに応答データをポーリングマスタに送
信し、応答データに状態変化がないとき及び前記無条件
応答ビットが「0」にあるときに応答データのヘッダ部
のみをポーリングマスタに送信することを特徴とする。
According to the present invention, in order to solve the above-mentioned problems, a node which has become a polling master sends a polling command to another node, and another node responds to this polling command. In a broadcast communication method in which response data is transmitted to the polling master, and the polling master broadcasts the data collected from each node to each node as batch data, the polling master sends an unconditional response bit to the polling command. A polling command for a node that has a reception error or a reception timeout in the previous data collection is transmitted by changing the unconditional response bit to "1", and the other node responds to the received polling command. When the data has a state change or when the unconditional response bit is "1" Sends the answer data to the polling master, and transmits only the header portion of the response data to the polling master when when there is no state change in the response data and said unconditional response bit is "0".

【0015】また、本発明は、ポーリングマスタとなっ
たノードが他のノードに対してポーリングコマンドを送
信し、このポーリングコマンドに対して他のノードが応
答データをポーリングマスタに送信し、ポーリングマス
タは各ノードから収集したデータを一括データとして各
ノードに一斉同報する一斉同報通信方法において、前記
ポーリングマスタは、以下の手順によって他のノードと
通信し、 (1)ポーリングコマンドの送信完了後に前記他のノー
ドが出力データの送信動作に入ったことを確認する第1
のタイマを起動する。
Further, according to the present invention, the node which has become a polling master transmits a polling command to another node, and the other node responds to this polling command by sending response data to the polling master. In the broadcast communication method of broadcasting the data collected from each node as a batch data to each node, the polling master communicates with other nodes by the following procedure, and (1) after the completion of transmission of the polling command, First to confirm that another node has started to send output data
Start the timer of.

【0016】(2)前記第1のタイマのタイムアップ時
に当該他のノードからのデータを受信中でないときは他
のノードに出力データに状態変化無しと判断して次のノ
ードへポーリングコマンドを送信する。
(2) When data from the other node is not being received when the first timer times out, it is determined that the output data has no change in state to the other node, and a polling command is transmitted to the next node. To do.

【0017】(3)前記第1のタイマのタイムアップ時
に当該他のノードからのデータを受信中でないときは当
該他のノード用タイムアップカウンタを+1し、該カウ
ンタの回数が設定回数を越えたときは当該他のノードを
未接続として認識する。
(3) When data from the other node is not being received when the first timer times out, the time-up counter for the other node is incremented by 1, and the number of times of the counter exceeds the set number. In this case, the other node is recognized as unconnected.

【0018】(4)前記他のノードからの応答データの
受信中には第2のタイマを起動し、この第2のタイマの
タイムアップ前に受信完了したときに該応答データを取
り込み、かつ前記タイムアップカウンタを0クリアして
接続を確認する。
(4) The second timer is started during the reception of the response data from the other node, and the response data is fetched when the reception is completed before the time up of the second timer, and Clear the time-up counter to 0 and check the connection.

【0019】(5)前記第2のタイマがタイムアップし
た時には前記タイムアップカウンタを+1する。
(5) When the second timer times out, the time-up counter is incremented by +1.

【0020】前記他のノードは、ポーリングコマンドの
受信時に出力データに状態変化がある場合は応答データ
を送信し、出力データに状態変化が無い場合は応答デー
タを送信せず、この状態変化なしが前記設定回数よりも
低い回数続いたときに1回だけ応答データを送信するこ
とを特徴とする。
The other node transmits response data when the output data has a state change at the time of receiving the polling command, and does not transmit the response data when the output data has no state change. It is characterized in that the response data is transmitted only once when the number of times lower than the set number continues.

【0021】[0021]

【作用】[Action]

(第1の発明)他のノードはポーリングコマンドの受信
に対して、基本的には状態変化が発生しないときには応
答データとしてヘッダ部のみを送信することによりデー
タ収集のための伝送データ量を減らす。
(First invention) In response to the reception of the polling command, the other node basically transmits only the header part as response data when the state change does not occur, thereby reducing the amount of transmission data for data collection.

【0022】ポーリングマスタとなったノードは前回の
ポーリングで受信エラー又は受信タイムアウトが発生し
たときにポーリングコマンドに設けた無条件応答ビット
を変えて送信し、他のノードは応答データに状態変化が
ない場合にも応答データを送信することにより、ポーリ
ングマスタがデータを取り損ねた場合にもデータ更新が
行えるようにする。
The node that has become the polling master changes the unconditional response bit provided in the polling command when a reception error or reception timeout occurs in the previous polling, and the other nodes do not change the state of the response data. In this case, the response data is transmitted so that the data can be updated even if the polling master misses the data.

【0023】(第2の発明)他のノードはポーリングコ
マンドの受信に対して、基本的には状態変化が発生しな
いときには応答データを送信せず、データ収集のための
データの伝送量を減らす。
(Second aspect) In response to the reception of the polling command, another node basically does not transmit the response data when the state change does not occur, and reduces the amount of data transmission for data collection.

【0024】また、他のノードは応答データを送信しな
い回数がポーリングコマンド側の受信無しの設定回数よ
り低い回数続くときに1回だけ応答データを送信するこ
とによりポーリングマスタ側で当該ノードとの接続確認
及びデータ更新ができるようにする。
Further, the other node transmits the response data only once when the number of times of not transmitting the response data is lower than the number of times of no reception on the polling command side, so that the polling master side connects to the node concerned. Enable confirmation and data update.

【0025】すなわち、ポーリングマスタとなったノー
ドは、ポーリングコマンドに対しての応答が無い場合、
そのノードが未接続か、出力データに状態変化が無いの
かを応答データの受信なしが設定回数を越えたか否かで
認識する。
That is, if the node that has become the polling master does not respond to the polling command,
Whether the node is not connected or whether the output data has no change in state is recognized by whether or not the response data is not received and the set number of times is exceeded.

【0026】また、ポーリングマスタは、伝送プロトコ
ルエラーにより受信データを取り損ねた場合、例え他の
ノードで出力データに状態変化がなくとも、設定回数よ
り低い回数で他のノードからの受信を得てデータの更新
を行う。
Further, when the polling master misses the received data due to the transmission protocol error, the polling master obtains the reception from the other node at a number lower than the set number of times even if the state of the output data is not changed at the other node. Update the data.

【0027】[0027]

【実施例】【Example】

(第1の実施例)図1は、ポーリングマスタとなったノ
ードが他のノードからデータを受信する手順を示す。ま
た、図2にはポーリングマスタ以外のノードがポーリン
グコマンドに対して応答データを送信する手順を示す。
(First Embodiment) FIG. 1 shows a procedure in which a node serving as a polling master receives data from another node. Further, FIG. 2 shows a procedure in which a node other than the polling master transmits response data to the polling command.

【0028】図1において、ポーリングマスタがポーリ
ングコマンドを送信するのに、そのヘッダ部中に無条件
応答ビットを用意する。ポーリングマスタは、ポーリン
グコマンドを送信するに際し、ヘッダの無条件応答ビッ
トを「0」にし(ステップS1)、前回のポーリング時
に受信エラーが発生又は受信タイムアウトが発生したか
否かをチェックし(ステップS2)、受信エラーが発生
又は受信タイムアウトが発生したときには該無条件応答
ビットを「1」にセットする(ステップS3)。
In FIG. 1, when the polling master sends a polling command, an unconditional response bit is prepared in its header part. When transmitting the polling command, the polling master sets the unconditional response bit of the header to "0" (step S1) and checks whether a reception error or a reception timeout has occurred at the previous polling (step S2). ), When a reception error occurs or a reception timeout occurs, the unconditional response bit is set to "1" (step S3).

【0029】受信エラーの発生なし又は受信タイムアウ
トの発生なしの場合には該無条件応答ビットを「0」の
ままにする。
When there is no reception error or no reception timeout, the unconditional response bit remains "0".

【0030】この無条件応答ビットを処理したヘッダデ
ータとして、ポーリングマスタはポーリングコマンドを
送信する(ステップS4)。
The polling master transmits a polling command as header data obtained by processing the unconditional response bit (step S4).

【0031】このポーリングコマンドの送信に対して、
送信先ノードからの応答受信があるかないかをチェック
し(ステップS5)、応答受信がなければ当該ノードに
対する受信エラー又は受信タイムアウトを記憶する(ス
テップS6)。
For the transmission of this polling command,
It is checked whether or not a response is received from the destination node (step S5), and if there is no response, a reception error or reception timeout for the node is stored (step S6).

【0032】応答受信があれば、当該ノードに対する受
信エラー及び受信タイムアウトの記憶をリセットする
(ステップS7)。
When the response is received, the storage of the reception error and the reception timeout for the node is reset (step S7).

【0033】一方、ポーリングコマンドを受信したノー
ドは、図2に示すように、ポーリングコマンドの受信
(ステップS11)したときにそのヘッダに含まれる無
条件応答ビットが「1」か否かをチェックし(ステップ
S12)、無条件応答ビットが「0」のときには前回の
ときに比べて今回の出力データに状態変化があるか否か
をチェックし(ステップS13)、状態変化がなければ
出力データに状態変化なしの情報を乗せたヘッダ部のみ
を送信する(ステップS14)。
On the other hand, the node receiving the polling command checks whether the unconditional response bit included in its header is "1" when the polling command is received (step S11), as shown in FIG. (Step S12), when the unconditional response bit is "0", it is checked whether or not there is a state change in the output data of this time compared to the previous time (step S13). If there is no state change, the state of the output data is changed. Only the header part carrying the unchanged information is transmitted (step S14).

【0034】ステップS12での無条件応答ビットが1
のとき、又はステップS13での出力データに状態変化
があるとき、正規の出力データをヘッダと共に送信する
(ステップS15)。
The unconditional response bit in step S12 is 1
Or when there is a state change in the output data in step S13, the regular output data is transmitted together with the header (step S15).

【0035】本実施例によれば、ポーリングマスタとな
ったノードは、ポーリングコマンドを送信するに際し、
前回のポーリング処理に受信エラー又は受信タイムアウ
トがあるときにはヘッダ部中の無条件応答ビットを
「1」にして送信する。すなわち、ポーリングマスタと
なったノードは、前回のポーリングで応答データを取り
損ねたときには、そのノードに対する次のポーリングで
無条件応答ビットをセットする。
According to the present embodiment, the node which has become the polling master, when transmitting the polling command,
When there is a reception error or reception timeout in the previous polling process, the unconditional response bit in the header part is set to "1" and transmitted. That is, when the node that has become the polling master misses the response data in the previous polling, it sets the unconditional response bit in the next polling for that node.

【0036】このポーリングコマンドを受信したノード
は、今回送信するデータが前回送信したデータを同じ場
合、基本的にはヘッダのみを送信して出力データを送信
しない処理を行うが、ヘッダ部に無条件応答ビットがセ
ット「1」にあるときは状態変化がない場合も出力デー
タを送信する。
When the data to be transmitted this time is the same as the data transmitted last time, the node receiving this polling command basically performs processing of transmitting only the header but not the output data, but unconditionally in the header part. When the response bit is set to "1", the output data is transmitted even if there is no state change.

【0037】図3は、本実施例の一斉同報通信手順例を
示す。ポーリングマスタとなったノード#00からノー
ド#01〜#04に対してポーリングコマンドの送信と
その応答データを収集するにおいて、ノード#00でノ
ード#01に対する前回受信エラー又は受信タイムアウ
トの発生がないこと、及びノード#01で出力データに
状態変化なしの場合を示し、ノード#01ではポーリン
グコマンドに対してヘッダ部のみをノード#00に送信
する。
FIG. 3 shows an example of the simultaneous broadcast communication procedure of this embodiment. When sending a polling command from node # 00, which has become the polling master, to nodes # 01 to # 04 and collecting its response data, there must be no previous reception error or reception timeout for node # 01 at node # 00. , And the case where there is no state change in the output data in the node # 01, the node # 01 transmits only the header part to the node # 00 in response to the polling command.

【0038】次に、ノード#02からのデータ収集に
は、ノード#00でノード#02に対する前回受信エラ
ー又は受信タイムアウトの発生があるか、又はノード#
02で出力データに状態変化なしの場合を示し、ノード
#02からは応答データ(132ワード)をノード#0
0に送信する。
Next, in collecting data from the node # 02, there is a previous reception error or reception timeout for the node # 02 in the node # 00, or the node # 02.
02 shows the case where the output data has no state change, and the response data (132 words) is sent from node # 02 to node # 0.
Send to 0.

【0039】同様に、ノード#03はノード#01と同
様の応答の場合を示し、ノード#04はノード#02と
同様の応答の場合を示す。
Similarly, the node # 03 shows the case of the same response as the node # 01, and the node # 04 shows the case of the same response as the node # 02.

【0040】この通信例では、ノード#01及びノード
#03での応答にそれぞれ128ワードのデータ削減が
でき、一斉同報通信周期としては
In this communication example, 128 words of data can be reduced in the responses from the node # 01 and the node # 03, respectively.

【0041】[0041]

【数1】 (4+4)×2+(4+132)×2+644=932 ワードの送受信で済み、256ワード分の周期の短縮が
できる。この時間短縮は、状態変化が発生しなかったノ
ードが多ければ多いほど、また、各ノードのデータサイ
ズが大きいほど効果的になる。
## EQU00001 ## Transmission / reception of (4 + 4) .times.2 + (4 + 132) .times.2 + 644 = 932 words is sufficient, and the cycle of 256 words can be shortened. This time reduction becomes more effective as the number of nodes in which the state change has not occurred increases and the data size of each node increases.

【0042】しかも、ポーリングマスタとなったノード
で前回に受信エラー又は受信タイムアウトが発生したと
きは、ポーリングされるノード側に状態変化がなくとも
応答データを送受信するため、データの更新が確実に行
われる。
Furthermore, when the node that has become the polling master has previously received a reception error or reception time-out, response data is transmitted and received even if there is no state change on the polled node side. Be seen.

【0043】(第2の実施例)図4は、ポーリングマス
タとなったノードが他のノードからデータを受信する手
順を示す。また、図5にはポーリングマスタ以外のノー
ドがポーリングコマンドに対して応答データを送信する
手順を示す。
(Second Embodiment) FIG. 4 shows a procedure in which a node which has become a polling master receives data from another node. Further, FIG. 5 shows a procedure in which a node other than the polling master transmits response data to the polling command.

【0044】図4において、ポーリングマスタは、ポー
リングコマンドを送信し(ステップS21)、送信完了
後に応答データの有無をチェックするための第1のタイ
マを起動する(ステップS22)。
In FIG. 4, the polling master transmits a polling command (step S21) and, after the transmission is completed, activates a first timer for checking the presence of response data (step S22).

【0045】第1のタイマがタイムアップしたときに
(ステップS23)、応答データの受信中であるか否か
をチェックし(ステップS24)、受信中であるときは
受信完了までをチェックする第2のタイマを起動する
(ステップS25)。
When the first timer times out (step S23), it is checked whether or not the response data is being received (step S24), and when the response data is being received, the reception completion is checked. The timer is activated (step S25).

【0046】また、応答データの受信中でなければ、そ
のノードに対するタイムアップカウンタを+1し(ステ
ップS31)、その結果が所定のβ回以上になったとき
には、そのノードの未接続を認識するようにし(ステッ
プS32、S33)、そのノードに対する処理を終え
る。
If the response data is not being received, the time-up counter for the node is incremented by 1 (step S31), and when the result is a predetermined β times or more, the unconnection of the node is recognized. (Steps S32 and S33), and the process for that node ends.

【0047】第2のタイマを起動した場合、タイムアッ
プする前に応答データを受信完了すれば(ステップS2
6)、ポーリングマスタは受信データをそのノードの出
力データ領域に取り込み(ステップS27)、当該タイ
ムアップカウンタを0クリアし(ステップS28)、そ
のノードの接続を認識し(ステップS29)、そのノー
ドに対する処理を終える。
When the second timer is started, if the response data is completely received before the time is up (step S2
6), the polling master fetches the received data into the output data area of the node (step S27), clears the time-up counter to 0 (step S28), recognizes the connection of the node (step S29), and recognizes the node. Finish the process.

【0048】第2のタイマがタイムアップした場合(ス
テップS30)、当該タイムアップカウンタを+1し
(ステップS31)、その結果が所定のβ回以上になっ
たならば、そのノードの未接続を認識するようにし(ス
テップS32、S33)、そのノードに対する処理を終
える。
When the second timer times out (step S30), the time-up counter is incremented by 1 (step S31), and if the result is a predetermined β times or more, the unconnection of the node is recognized. By doing so (steps S32 and S33), the process for the node ends.

【0049】一方、ポーリングコマンドを受信したノー
ドは、図5に示すように、ポーリングコマンドを受信し
た後(ステップS41)、今回の出力データに状態変化
があるか否かをチェックし(ステップS42)、状態変
化があるときは出力データの応答を送信し(ステップS
43)、送信チェックカウンタ0クリアする(ステップ
S44)。
On the other hand, the node receiving the polling command, as shown in FIG. 5, after receiving the polling command (step S41), checks whether or not the output data this time has a state change (step S42). , If there is a state change, the response of output data is transmitted (step S
43), the transmission check counter 0 is cleared (step S44).

【0050】この送信チェックカウンタは、状態変化が
ない場合にはポーリングコマンドに対して数回(β/2
回)に1回は応答データを送信するためのチェック用カ
ウンタであり、その0クリアは今回送信したことを記憶
にのこす。
If there is no change in the status, this transmission check counter is sent several times (β / 2) in response to the polling command.
Once) is a check counter for transmitting response data, and clearing it to 0 stores in memory what was transmitted this time.

【0051】出力データに状態変化がない場合、当該送
信チェックカウンタを+1し(ステップS45)、その
結果がβ/2回以上になったか否かをチェックし(ステ
ップS46)、β/2回以上になった場合はポーリング
マスタに自ノードが動作中であることを知らせるため
と、ポーリングマスタが前回送信した出力データを取り
損ねた場合のリカバリとして出力データを送信し(ステ
ップS43)、当該送信チェックカウンタを0クリアし
て処理を終える。
When the output data has no state change, the transmission check counter is incremented by 1 (step S45), and it is checked whether or not the result is β / 2 times or more (step S46), and β / 2 times or more. If this happens, the output data is sent to the polling master to notify it that its own node is operating, and as a recovery when the polling master misses the previously sent output data (step S43). The counter is cleared to 0 and the processing is finished.

【0052】送信チェックカウンタのチェックで、β/
2回以下の場合は出力データを送信せずに処理を終え
る。
When the transmission check counter is checked, β /
In the case of two times or less, the processing is terminated without transmitting the output data.

【0053】図6は、本実施例の一斉同報通信手順を示
す。ポーリングマスタとなったノード#00からノード
#01〜#04に対してポーリングコマンドの送信とそ
の応答データを収集するにおいて、ノード#01で出力
データに状態変化なしで、前記送信チェックカウンタが
β/2回未満である場合を示し、ノード#1ではポーリ
ングコマンドに対して応答データを送信しない。
FIG. 6 shows a broadcast communication procedure of this embodiment. When the polling command is transmitted from the node # 00 that has become the polling master to the nodes # 01 to # 04 and the response data thereof is collected, the transmission check counter is set to β / The case is less than twice, and the node # 1 does not transmit the response data to the polling command.

【0054】次に、ノード#02からのデータ収集に
は、ノード#02で出力データに状態変化有りの場合を
示し、ノード#02からは応答データ(132ワード)
をノード#00に送信する。
Next, in the case of collecting data from the node # 02, the case where there is a state change in the output data at the node # 02 is shown, and the response data (132 words) is sent from the node # 02.
To node # 00.

【0055】同様に、ノード#03はノード#01と同
様に応答データ送信無しの場合を示し、ノード#04は
ノード#02と同様の応答の場合を示す。
Similarly, the node # 03 shows the case where no response data is transmitted like the node # 01, and the node # 04 shows the case where the response is the same as the node # 02.

【0056】この通信例では、ノード#01及びノード
#03での応答にそれぞれ132ワードのデータ削減が
でき(ただし、β/2回の一斉同報通信回数のうち、1
回は図6と同様になる)、一斉同報通信周期としては
In this communication example, data of 132 words can be reduced in each of the responses in the node # 01 and the node # 03 (however, 1 out of β / 2 times of simultaneous broadcast communication).
(The times are the same as in Figure 6.)

【0057】[0057]

【数2】 4×2+(4+132)×2+644=924 ワードの送受信で済み、264ワード分の周期の短縮が
できる。この時間短縮は、状態変化が発生しなかったノ
ードが多ければ多いほど、また、各ノードのデータサイ
ズが大きいほど効果的になる。
## EQU00002 ## 4 × 2 + (4 + 132) × 2 + 644 = 924 words can be transmitted / received, and the cycle of 264 words can be shortened. This time reduction becomes more effective as the number of nodes in which the state change has not occurred increases and the data size of each node increases.

【0058】しかも、ポーリングされるノード側で状態
変化が無くても、数回(β/2回)も1回は応答データ
を送信するため、ポーリングコマンドとなったノードが
例え瞬間的な伝送プロトコルエラーにより受信データを
取り損ねることがあっても、データの更新は保証され
る。
Moreover, since the response data is transmitted once or several times (β / 2 times) even if there is no state change on the polled node side, the node that has become the polling command has an instantaneous transmission protocol. Even if the received data is missed due to an error, the data update is guaranteed.

【0059】本実施例によれば、ポーリングマスタは、
ポーリングコマンドを送信後、応答データの受信完了を
待つのではなく、応答データがあるか否かを見極め、応
答データがないと認識した場合は即座に次のノードへの
ポーリングコマンド送信に移行する。
According to this embodiment, the polling master is
After transmitting the polling command, instead of waiting for the completion of reception of the response data, it is determined whether there is response data, and if it is recognized that there is no response data, the process immediately shifts to the transmission of a polling command to the next node.

【0060】この方法は、前記の実施例のように、ポー
リングコマンドを受信したノードが、出力データに状態
変化がないということをヘッダ部(4ワード)のみで応
答するという方法に比べて、ポーリングマスタが応答デ
ータの受信を必要としない分だけ次のノードへのポーリ
ングコマンド送信が速くなる。
This method is more polling than the method in which the node which receives the polling command responds only with the header portion (4 words) that the output data has no state change, as in the above embodiment. The polling command is transmitted to the next node faster because the master does not need to receive the response data.

【0061】また、本実施例では、ノードからの応答が
ない理由が、出力データに状態変化がないからなのか、
未接続であるからなのかを見極めるため、応答がない回
数が連続β回で未接続を認識するようにし、ポーリング
コマンドを受信するノードは状態変化がなくてもβ/2
回に1回は出力データを応答するようにするため、ポー
リングマスタが誤ってそのノードを未接続と認識するこ
とを防止できる。
Further, in the present embodiment, the reason why there is no response from the node is that there is no change in the state of the output data.
In order to determine if it is unconnected, the number of times there is no response is β times in a row so that the node is recognized as unconnected, and the node that receives the polling command is β / 2 even if there is no state change.
Since the output data is responded once at a time, it is possible to prevent the polling master from erroneously recognizing the node as unconnected.

【0062】さらに、本実施例では、ポーリングコマン
ドを受信するノードは、β/2回に1回は出力データを
送信するため、ポーリングマスタが伝送プロトコルエラ
ーでデータを取り損ねた場合にも永久にデータが更新で
きなくなるという不都合がなくなる。
Further, in the present embodiment, the node which receives the polling command transmits the output data once every β / 2, so that even if the polling master misses the data due to the transmission protocol error, it is permanently. The inconvenience that the data cannot be updated disappears.

【0063】[0063]

【発明の効果】以上のとおり、本発明によれば、ポーリ
ングマスタとなったノードが他のノードに対してポーリ
ングコマンドを送信し、このポーリングコマンドに対し
て他のノードが応答データをポーリングマスタに送信
し、ポーリングマスタは各ノードから収集したデータを
一括データとして各ノードに一斉同報する一斉同報通信
方法において、他のノードはポーリングコマンドの受信
に対して、基本的には状態変化が発生しないときには応
答データとしてヘッダ部のみを送信し、ポーリングマス
タとなったノードは前回のポーリングで受信エラー又は
受信タイムアウトが発生したときにポーリングコマンド
に設けた無条件応答ビットを変えて送信し、他のノード
は応答データに状態変化がない場合にも応答データを送
信する通信方法とするため、以下の効果がある。
As described above, according to the present invention, a node that has become a polling master sends a polling command to another node, and another node responds to this polling command with response data to the polling master. In the broadcast communication method in which data is transmitted and the polling master broadcasts the data collected from each node to all the nodes as a batch data, the other nodes basically change the state in response to the reception of the polling command. If not, only the header part is sent as the response data, and the node that has become the polling master changes the unconditional reply bit provided in the polling command when a reception error or reception timeout occurs in the previous polling, and sends it. The node shall be a communication method that sends response data even when the response data has no state change. Therefore, there are the following effects.

【0064】(1)基本的には状態変化のあったときの
み応答データを送信してデータ収集のための伝送データ
量を減らし、一斉同報通信周期を短縮できる。
(1) Basically, the response data is transmitted only when there is a state change, the amount of transmission data for data collection is reduced, and the broadcast communication cycle can be shortened.

【0065】(2)前回のポーリングで受信エラー又は
受信タイムアウトが発生したときに状態変化がない場合
にも応答データを送信してデータの取り損ねを無くすこ
とができる。
(2) Even if there is no change in status when a reception error or reception time-out occurs in the previous polling, response data can be transmitted to eliminate missing data.

【0066】また、本発明によれば、ポーリングコマン
ドに対して他のノードは基本的には状態変化が発生しな
いときは応答データを送信せず、数回に1回は応答デー
タを送信し、ポーリングマスタとなったノードはポーリ
ングコマンドの送信完了後に応答受信中のチェックを行
い、受信中でなければ速やかに次のノードへのポーリン
グコマンド送信に移行し、β回連続して受信中でない場
合のみそのノードを未接続と認識する通信方法とするた
め、以下の効果がある。
Further, according to the present invention, in response to the polling command, the other nodes basically do not transmit the response data when the state change does not occur, and transmit the response data once every several times, The node that has become the polling master checks if the response is being received after the polling command has been sent, and if it is not receiving it, it immediately shifts to sending the polling command to the next node, and only if it is not receiving β consecutive times. Since the communication method is to recognize the node as unconnected, the following effects are obtained.

【0067】(1)基本的には状態変化のあったときの
み応答データを送信するため、データ収集のための伝送
データ量を減らし、一斉同報通信周期を短縮できる。
(1) Basically, since the response data is transmitted only when there is a change in state, it is possible to reduce the amount of transmission data for data collection and shorten the broadcast communication cycle.

【0068】(2)ポーリングマスタは、β/2回のポ
ーリングコマンド送信に対して、ポーリングを受ける側
のノードの出力データの状態変化の有無に拘わらず、必
ず1回は応答データを受信するため、他のノードとの接
続を確認でき、しかも瞬時的なデータの取り損ねにより
データ更新が行われないことを防止できる。
(2) The polling master always receives the response data once for β / 2 times of the polling command transmission, regardless of whether or not the state of the output data of the node on the polling side changes. It is possible to confirm the connection with other nodes and prevent the data from not being updated due to a momentary loss of data.

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

【図1】本発明の一実施例を示すポーリングマスタとな
ったノードの通信手順図。
FIG. 1 is a communication procedure diagram of a node serving as a polling master showing an embodiment of the present invention.

【図2】本発明の一実施例を示すポーリングマスタ以外
のノードの通信手順図。
FIG. 2 is a communication procedure diagram of a node other than a polling master showing an embodiment of the present invention.

【図3】実施例の一斉同報通信例。FIG. 3 is an example of simultaneous broadcast communication according to the embodiment.

【図4】本発明の他の実施例を示すポーリングマスタと
なったノードの通信手順図。
FIG. 4 is a communication procedure diagram of a node which has become a polling master according to another embodiment of the present invention.

【図5】本発明の他の実施例を示すポーリングマスタ以
外のノードの通信手順図。
FIG. 5 is a communication procedure diagram of a node other than the polling master according to another embodiment of the present invention.

【図6】他の実施例の一斉同報通信例。FIG. 6 shows an example of simultaneous broadcast communication of another embodiment.

【図7】従来の一斉同報通信例。FIG. 7 shows an example of conventional broadcast communication.

【図8】各ノードの持つ共有データ領域図。FIG. 8 is a shared data area diagram of each node.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ポーリングマスタとなったノードが他の
ノードに対してポーリングコマンドを送信し、このポー
リングコマンドに対して他のノードが応答データをポー
リングマスタに送信し、ポーリングマスタは各ノードか
ら収集したデータを一括データとして各ノードに一斉同
報する一斉同報通信方法において、 前記ポーリングマスタは、前記ポーリングコマンドに無
条件応答ビットを設け、前回のデータ収集に受信エラー
又は受信タイムアウトを発生したノードに対するポーリ
ングコマンドは該無条件応答ビットを「1」に変更して
送信し、 前記他のノードは、受信したポーリングコマンドに対し
て応答データに状態変化があるとき又は前記無条件応答
ビットが「1」にあるときに応答データをポーリングマ
スタに送信し、応答データに状態変化がないとき及び前
記無条件応答ビットが「0」にあるときに応答データの
ヘッダ部のみをポーリングマスタに送信することを特徴
とする一斉同報通信方法。
1. A node which has become a polling master sends a polling command to another node, and the other node sends response data to the polling master in response to this polling command, and the polling master collects from each node. In the broadcast communication method that broadcasts the collected data as batch data to each node, the polling master provides an unconditional response bit in the polling command, and the node that generated a reception error or reception timeout in the previous data collection. To the polling command for changing the unconditional response bit to "1", and the other node transmits the status data in response data to the received polling command or when the unconditional response bit is "1". Response data to the polling master, Broadcast communication method and transmits the polling master only header part of the response data when the absence of state change and said unconditional response bit is "0".
【請求項2】 ポーリングマスタとなったノードが他の
ノードに対してポーリングコマンドを送信し、このポー
リングコマンドに対して他のノードが応答データをポー
リングマスタに送信し、ポーリングマスタは各ノードか
ら収集したデータを一括データとして各ノードに一斉同
報する一斉同報通信方法において、 前記ポーリングマスタは、以下の手順によって他のノー
ドと通信し、 (1)ポーリングコマンドの送信完了後に前記他のノー
ドが出力データの送信動作に入ったことを確認する第1
のタイマを起動する。 (2)前記第1のタイマのタイムアップ時に当該他のノ
ードからのデータを受信中でないときは他のノードに出
力データに状態変化無しと判断して次のノードへポーリ
ングコマンドを送信する。 (3)前記第1のタイマのタイムアップ時に当該他のノ
ードからのデータを受信中でないときは当該他のノード
用タイムアップカウンタを+1し、該カウンタの回数が
設定回数を越えたときは当該他のノードを未接続として
認識する。 (4)前記他のノードからの応答データの受信中には第
2のタイマを起動し、この第2のタイマのタイムアップ
前に受信完了したときに該応答データを取り込み、かつ
前記タイムアップカウンタを0クリアして接続を確認す
る。 (5)前記第2のタイマがタイムアップした時には前記
タイムアップカウンタを+1する。前記他のノードは、
ポーリングコマンドの受信時に出力データに状態変化が
ある場合は応答データを送信し、出力データに状態変化
が無い場合は応答データを送信せず、この状態変化なし
が前記設定回数よりも低い回数続いたときに1回だけ応
答データを送信することを特徴とする一斉同報通信方
法。
2. A node that has become a polling master sends a polling command to another node, and the other node sends response data to the polling master, and the polling master collects from each node. In the broadcast communication method that broadcasts the collected data as batch data to each node, the polling master communicates with other nodes according to the following procedure. (1) After the polling command has been transmitted, The first to confirm that the output data transmission operation has started
Start the timer of. (2) If the data from the other node is not being received when the first timer times out, the other node is judged to have no change in the output data and the polling command is transmitted to the next node. (3) When the data from the other node is not being received when the first timer times out, the time-up counter for the other node is incremented by 1, and when the number of times of the counter exceeds the set number, the time is counted. Recognize other nodes as unconnected. (4) A second timer is started while receiving the response data from the other node, and when the reception is completed before the time up of the second timer, the response data is fetched and the time-up counter is also provided. Is cleared to 0 and the connection is confirmed. (5) When the second timer times out, the time-up counter is incremented by +1. The other node is
When the status of the output data changes when the polling command is received, the response data is transmitted, and when the status of the output data does not change, the response data is not transmitted. A broadcast communication method characterized in that the response data is sometimes transmitted only once.
JP370295A 1994-02-25 1995-01-13 Simultaneous multiple address communication method Pending JPH07288532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP370295A JPH07288532A (en) 1994-02-25 1995-01-13 Simultaneous multiple address communication method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2716394 1994-02-25
JP6-27163 1994-02-25
JP370295A JPH07288532A (en) 1994-02-25 1995-01-13 Simultaneous multiple address communication method

Publications (1)

Publication Number Publication Date
JPH07288532A true JPH07288532A (en) 1995-10-31

Family

ID=26337336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP370295A Pending JPH07288532A (en) 1994-02-25 1995-01-13 Simultaneous multiple address communication method

Country Status (1)

Country Link
JP (1) JPH07288532A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083016A (en) * 2019-12-30 2020-04-28 北京和利时系统工程有限公司 Polling table processing method and device, storage medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083016A (en) * 2019-12-30 2020-04-28 北京和利时系统工程有限公司 Polling table processing method and device, storage medium and equipment
CN111083016B (en) * 2019-12-30 2021-04-20 北京和利时系统工程有限公司 Polling table processing method and device, storage medium and equipment

Similar Documents

Publication Publication Date Title
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
US6304546B1 (en) End-to-end bidirectional keep-alive using virtual circuits
EP2245472B1 (en) System and method for network recovery from multiple link failures
EP0471090A1 (en) Message communication processing system
JP3857317B2 (en) Automatic negotiation progress monitor
JPH0683221B2 (en) Data communication method and communication system
CN100387016C (en) Heterogeneous multi-bus data transmission method between information processing devices
JP2010114855A (en) Home network system
EP0409604B1 (en) Processing method by which continuous operation of communication control program is obtained
US4785449A (en) Network system for data transmission among plural communications stations connected to a communication medium
US7310661B2 (en) Approach for transferring functions between participants in a communications arrangement
JPH07288532A (en) Simultaneous multiple address communication method
US7317690B2 (en) Method of constructing network topology and interface circuit
JP3293089B2 (en) PLC remote I/O system and method for implementing the PLC remote I/O system
JP3837987B2 (en) Ring network system, information transmission apparatus, and address setting method thereof
JPH08106306A (en) Data transmitter
JP3246409B2 (en) Fault monitoring method
JP3466860B2 (en) Node arrangement order check method for ring network
JP3910903B2 (en) Control packet receiving method and receiving apparatus
JPH0687559B2 (en) Bus type LAN
JP2804876B2 (en) Communication method for network system including multiplex system
JPH07101475B2 (en) Disaster prevention system
JPH0964872A (en) Network system
JP3112778B2 (en) Token re-generation method
JPS63267039A (en) Network system