JPH04360259A - Transmission control system by polling - Google Patents

Transmission control system by polling

Info

Publication number
JPH04360259A
JPH04360259A JP13501191A JP13501191A JPH04360259A JP H04360259 A JPH04360259 A JP H04360259A JP 13501191 A JP13501191 A JP 13501191A JP 13501191 A JP13501191 A JP 13501191A JP H04360259 A JPH04360259 A JP H04360259A
Authority
JP
Japan
Prior art keywords
data
station
polling
slave
slave station
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
JP13501191A
Other languages
Japanese (ja)
Inventor
Masaki Sugihara
杉原 正貴
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP13501191A priority Critical patent/JPH04360259A/en
Publication of JPH04360259A publication Critical patent/JPH04360259A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To rapidly and efficiently execute data transmission from a slave station to a main station by a polling system. CONSTITUTION:At the time of receiving (SC1 to SC3) a polling message which is not transmitted to the slave station, a data transmission control part in the slave station monitors (SC4 to SC5) whether data are sent from another slave station to a bus during an optical time generated by random number generation, and when no data are transmitted, transmits (SC6) a response message including transmission data to the master station.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、一台の主局に複数台の
従局が共通伝送路(バス)を介して接続されたシステム
において、主局と各従局間のデータ伝送をポーリング方
式で行うポーリングによる伝送制御方式に関する。
[Industrial Application Field] The present invention uses a polling method for data transmission between the master station and each slave station in a system in which a plurality of slave stations are connected to one master station via a common transmission path (bus). This paper relates to a transmission control method using polling.

【0002】0002

【従来の技術】一台の制御装置(ホストコンピュータ等
)に、複数の端末装置を、バス等の共通伝送路を介して
マルチドロップ方式で接続する場合、制御装置と各端末
装置との間のデータ転送制御には、通常、ポーリング方
式が用いられている。
[Prior Art] When multiple terminal devices are connected to one control device (host computer, etc.) via a common transmission path such as a bus using a multi-drop method, the connection between the control device and each terminal device is A polling method is usually used for data transfer control.

【0003】このポーリング方式は、一台の主局(また
は制御局)が、複数の従局(または従属局)に対して、
順番に、メッセージ送信を勧誘するポーリングメッセー
ジを送信し(ポーリングを行い)、そのポーリングメッ
セージで指定された従局だけにメッセージの送信権を与
えることにより、複数の従局から主局へ送信されるデー
タが、バス等の共通伝送路上で衝突されることを防止し
て、主局と従局との間で、データ転送が確実に行われる
ようにする伝送制御手順(伝送プロトコル)である。こ
のポーリング方式においては、ポーリングを受けた従局
は、送信データが有れば主局に対してデータを送信し、
送信データが無ければその旨のメッセージを返すか、ま
たは無応答とする(応答を行わない)。
[0003] In this polling method, one main station (or control station) sends information to multiple slave stations (or dependent stations).
By sequentially transmitting polling messages inviting message transmission (performing polling) and giving message transmission rights only to the slave stations specified in the polling messages, data sent from multiple slave stations to the master station can be , a transmission control procedure (transmission protocol) that prevents collisions on a common transmission path such as a bus and ensures data transfer between a master station and a slave station. In this polling method, the polled slave station transmits data to the master station if it has data to send.
If there is no data to be sent, a message to that effect is returned or no response is made (no response is made).

【0004】一方、上述のようなポーリング方式以外に
も、主局が全ての従局に対して同時にポーリングを行い
、送信データのある従局が、そのポーリングに応答して
、主局に対しデータを送信するポーリング方式もある。 このポーリング方式では、複数の従局から同時にデータ
が送出されて、共通伝送路上でデータの衝突が発生する
のを避けるために、従局では、データを送信する前に、
乱数発生により適当な時間だけ遅延した後に、他局がデ
ータを送信中であるかどうかを確認し、送信中であれば
データの送信を待つ等の制御を行っている。
On the other hand, in addition to the above-mentioned polling method, the master station polls all slave stations simultaneously, and the slave stations that have data to send respond to the polling by transmitting data to the master station. There is also a polling method. In this polling method, in order to avoid data collisions occurring on a common transmission path due to simultaneous data transmission from multiple slave stations, the slave stations transmit data before transmitting data.
After a delay of an appropriate amount of time due to random number generation, it is checked whether or not another station is transmitting data, and if it is, it performs controls such as waiting for data transmission.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、前者の
ような方法では、従局の台数が増加するにつれて、各従
局が主局からポーリングを受ける周期(ポーリングの待
ち時間)が長くなるという欠点がある。しかも、主局と
従局間で伝送されるデータの量が少ない場合でも、従局
でのポーリングの待ち時間が増加してしまうという欠点
がある。
However, the former method has the disadvantage that as the number of slave stations increases, the cycle at which each slave station receives polling from the master station (polling waiting time) becomes longer. Moreover, even when the amount of data transmitted between the master station and the slave station is small, there is a drawback that the waiting time for polling at the slave station increases.

【0006】また、後者の方法では、従局の台数が増加
しても、各従局のポーリング周期は変化しない。しかし
、従局から送信されるデータ数が増加するにつれて、共
通伝送路上でデータが衝突する確率が大きくなってしま
う。したがって、各従局が接続されている共通伝送路上
の位置や各従局の性能差等の要因によって、ある特定の
従局がほとんど送信権を得ることができなくなる(デー
タ送信を行えなくなる)という事態が起こるという欠点
があった。
Furthermore, in the latter method, even if the number of slave stations increases, the polling period of each slave station does not change. However, as the number of data transmitted from slave stations increases, the probability that data will collide on the common transmission path increases. Therefore, depending on factors such as the location on the common transmission path to which each slave station is connected and differences in performance between each slave station, a situation may occur where a particular slave station is almost unable to obtain transmission rights (no longer able to transmit data). There was a drawback.

【0007】前者の方法の欠点は、ポーリングされた従
局のみに、主局に対するデータの送信権を与えるように
しているために生じるものと考えられる。また、後者の
方法の欠点は、従局から主局に送信するデータ数が多い
場合は、複数の従局が、主局に対して同時にデータを送
信する確率が高いにもかかわらず、全ての従局に対して
同時にポーリングを行うために発生するものと考えられ
る。
The disadvantage of the former method is thought to be due to the fact that only polled slave stations are given the right to transmit data to the master station. In addition, the disadvantage of the latter method is that if there is a large amount of data to be sent from the slave stations to the master station, even though there is a high probability that multiple slave stations will transmit data to the master station at the same time, all slave stations will This is thought to occur because polling is performed simultaneously for both.

【0008】してみれば、従局に対するポーリングは、
一局ずつ順番に行い、ポーリングされた従局に主局に対
して送信するデータが無かった場合、主局に対して送信
するデータが有るポーリングされていない従局が、次の
ポーリングまでの空き時間を利用して、データを主局に
送信できるようにすれば、主局と従局との間でやり取り
されるデータ量が少なくかつ従局の台数が多い場合のみ
ならず、主局と従局との間でやり取りされるデータ量が
多い場合にも、各従局は、主局に対し、従来よりも迅速
かつ効率良くデータを送信できるようになることは明ら
かである。
[0008] Then, the polling for the slave station is as follows.
Each station is polled in turn, and if the polled slave station has no data to send to the master station, the unpolled slave station that has data to send to the master station will wait until the next polling time. If the data can be sent to the master station by using this function, it can be used not only when the amount of data exchanged between the master station and the slave stations is small and the number of slave stations is large, but also when the amount of data exchanged between the master station and slave stations is large. It is clear that even when a large amount of data is exchanged, each slave station can transmit data to the master station more quickly and efficiently than before.

【0009】本発明の課題は、従局に対するポーリング
は、一局ずつ順番に行い、ポーリングされた従局に主局
に対して送信するデータが無かった場合、主局に対して
送信するデータが有るポーリングされていない従局が、
次のポーリングまでの空き時間を利用して、データを主
局に送信できるようにすることである。
The problem of the present invention is that polling of the slave stations is performed one by one in order, and if the polled slave station does not have data to send to the master station, polling is performed in which there is data to send to the master station. The subordinate who has not been
The purpose is to make it possible to send data to the main station using free time until the next polling.

【0010】0010

【課題を解決するための手段】本発明の手段は、次の通
りである。本発明は、一台の主局1(図1の機能ブロッ
ク図参照、以下同じ)と、その主局1にデータを送信す
る複数台の従局2(2−1,2−2,・・・2−N)が
、一つの共通伝送路3に接続されたシステムにおける、
主局1が各従局2−1,2−2,・・・2−Nを、一台
ずつポーリングして各従局2−1,2−2,・・・2−
Nに対しデータの送信を勧誘する、ポーリングによる伝
送制御方式を前提とする。そして、上記各従局2−1,
2−2,・・・2−Nは、以下の各手段2a,2bを有
する。時間発生手段2bは、所定範囲内の時間を任意に
(例えば乱数的に)発生する手段である。上記所定範囲
内の時間は、例えば、主局1からポーリングされた従局
2−i(i=1,2,・・・N)が、送信データが無い
旨のメッセージ(例えば、1文字から成るメッセージ)
を送信するに要する時間よりも充分に長く、主局1が任
意の従局2−iをポーリングしてから、その従局2−i
からの応答メッセージを待つ最大時間よりも短い時間(
次のポーリングを行うまでの時間に等しい)である。監
視手段2aは、共通伝送路3上にデータが送出されてい
るか否かを監視する。そして、上記手段2a,2bを有
する各従局2−1,2−2,・・・2−Nは、以下のよ
うな特徴を有する。すなわち、ポーリングされた各従局
2−1,2−2,・・・2−Nは、主局1に対する送信
データが有る場合には、即座に、その送信データを、共
通伝送路3を介し主局1に送信し、ポーリングされなか
った各従局2−1,2−2,・・・2−Nは、主局1に
対する送信データがあるとき、時間発生手段2bにより
発生される任意の時間の間、監視手段2aにより、共通
伝送路3上のデータを監視し、上記任意の時間の間、共
通伝送路3上に、他の従局2からデータが送出されなか
ったと判断したときには、前記送信データを、共通伝送
路3を介し主局1に送信する。
Means for Solving the Problems The means of the present invention are as follows. The present invention includes one main station 1 (see the functional block diagram in FIG. 1; the same applies hereinafter) and a plurality of slave stations 2 (2-1, 2-2, . . . ) that transmit data to the main station 1. 2-N) are connected to one common transmission path 3,
The master station 1 polls each slave station 2-1, 2-2, ... 2-N one by one, and polls each slave station 2-1, 2-2, ... 2-N.
A transmission control method based on polling is assumed, in which N is invited to transmit data. And each slave station 2-1,
2-2,...2-N have the following means 2a, 2b. The time generation means 2b is a means for arbitrarily (for example, randomly generating) a time within a predetermined range. For example, during the time within the above predetermined range, the slave station 2-i (i=1, 2,...N) polled by the master station 1 sends a message (for example, a message consisting of one character) indicating that there is no data to be transmitted. )
After the master station 1 polls any slave station 2-i for a period sufficiently longer than the time required to send the slave station 2-i,
A time shorter than the maximum time to wait for a response message from (
(equal to the time until the next polling). The monitoring means 2a monitors whether data is being sent out on the common transmission path 3. Each slave station 2-1, 2-2, . . . 2-N having the means 2a, 2b has the following characteristics. In other words, each polled slave station 2-1, 2-2, ... 2-N, if there is data to be transmitted to the master station 1, immediately transmits the data to the master station via the common transmission path 3. Each slave station 2-1, 2-2, . During the period, the monitoring means 2a monitors the data on the common transmission path 3, and when it is determined that no data is sent from another slave station 2 to the common transmission path 3 during the above-mentioned arbitrary time, the data to be transmitted is is transmitted to the main station 1 via the common transmission path 3.

【0011】[0011]

【作用】本発明の手段の作用は次の通りである。主局1
からポーリングされた従局2は、主局2に対する送信デ
ータが有る場合には、その送信データを含む応答メッセ
ージを、共通伝送路3を介し、即座に、主局1に送信す
るが、上記送信データが無かった場合には、その旨のメ
ッセージを、共通伝送路3を介し主局1に送信するか、
または、主局1に対し応答を行わない。一方、ポーリン
グされていない従局2は、主局1に対する送信データが
有った場合、時間発生手段2bにより上記所定範囲内の
任意の時間を発生し、その任意の時間の間、監視手段2
aにより、共通伝送路3上に、他の従局2から送出され
るデータがあるか否かを監視し続け、その任意の時間の
間、共通伝送路3上に他の従局2からデータが送出され
なければ、上記送信データを含む応答メッセージを、共
通伝送路3を介し主局1に送信する。したがって、従局
に対するポーリングは、一局ずつ順番に行い、ポーリン
グされた従局に主局に対して送信するデータが無かった
場合、主局に対して送信するデータが有るポーリングさ
れていない従局が、次のポーリングまでの空き時間を利
用して、データを主局に送信できる。
[Operation] The operation of the means of the present invention is as follows. Main station 1
If the slave station 2 polled by the master station 2 has transmission data for the master station 2, it immediately transmits a response message containing the transmission data to the master station 1 via the common transmission path 3; If there is no such message, send a message to that effect to the main station 1 via the common transmission path 3, or
Or, it does not respond to the main station 1. On the other hand, when the slave station 2 that has not been polled has data to be transmitted to the master station 1, the time generating means 2b generates an arbitrary time within the above-mentioned predetermined range, and during that arbitrary time, the monitoring means 2
a, it continues to monitor whether there is data sent from other slave stations 2 on the common transmission path 3, and during that arbitrary time, data is sent from other slave stations 2 on the common transmission path 3. If not, a response message containing the above transmission data is transmitted to the main station 1 via the common transmission path 3. Therefore, polling of slave stations is performed one by one in order, and if a polled slave station has no data to send to the master station, the slave station that has not been polled but has data to send to the master station will be the next one. Data can be sent to the main station using the free time before polling.

【0012】0012

【実施例】以下、一実施例を図2〜図11を参照しなが
ら説明する。図2は、コンピュータネットワークのシス
テム構成図である。
[Embodiment] An embodiment will be described below with reference to FIGS. 2 to 11. FIG. 2 is a system configuration diagram of a computer network.

【0013】同図に示すように、このコンピュータネッ
トワークは、ホストコンピュータ等から成る主局20と
、端末装置等から成る4台の従局30(30−1,30
−2,30−3,30−4)が、接続ケーブル40によ
り、共通伝送路であるバス50に接続された構成となっ
ている。
As shown in the figure, this computer network consists of a main station 20 consisting of a host computer, etc., and four slave stations 30 (30-1, 30-1, 30-1,
-2, 30-3, 30-4) are connected to a bus 50, which is a common transmission path, by a connection cable 40.

【0014】次に、上記主局20の内部構成を図3に示
す。同図に示すように、主局20は主局制御部21,デ
ータ受信制御部22,ポーリングリスト・メモリ23,
及びスリーステート・バッファであるラインレシーバ2
5とラインドライバ26とから成っており、各従属局3
0−1,30−2,30−3,30−4に対するポーリ
ングや、各従属局30−1〜30−4が、上記ポーリン
グに応じて送信してくるデータの受信を行う。
Next, the internal configuration of the main station 20 is shown in FIG. As shown in the figure, the main station 20 includes a main station control section 21, a data reception control section 22, a polling list memory 23,
and line receiver 2, which is a three-state buffer.
5 and a line driver 26, each dependent station 3
0-1, 30-2, 30-3, and 30-4, and each dependent station 30-1 to 30-4 receives data transmitted in response to the polling.

【0015】ラインレシーバ25は、その入力端子が接
続ケーブル40に接続されており、制御端子,出力端子
が共にデータ受信制御部22に接続されている。また、
ラインドライバ26は、その出力端子が接続ケーブル4
0に接続されており、制御端子,入力端子が共にデータ
受信制御部22に接続されている。
The line receiver 25 has its input terminal connected to the connection cable 40, and its control terminal and output terminal both connected to the data reception control section 22. Also,
The line driver 26 has an output terminal connected to the connection cable 4.
0, and both the control terminal and the input terminal are connected to the data reception control section 22.

【0016】データ受信制御部22は、主局制御部21
の制御により動作して、バス50上に出力された各従局
30−i(i=1〜4)の送信データを、ラインレシー
バ25を介して受信すると共に、各従局30−1〜30
−4に送信するポーリングメッセージを、ラインドライ
バ26を介してバス50上に出力する。
[0016] The data reception control unit 22 is connected to the main station control unit 21.
receives the transmission data of each slave station 30-i (i=1 to 4) output on the bus 50 via the line receiver 25, and receives the transmission data of each slave station 30-1 to 30 through the line receiver 25.
-4 is output on bus 50 via line driver 26.

【0017】主局制御部21は、上述のようにデータ受
信制御部22の制御を行うと共に、各従局30−iから
送信されてくるデータに対する当該処理を行う。また、
ポーリングリスト・メモリ23は、例えば、ROM(リ
ード・オンリ・メモリ),RAM(ランダム・アクセス
・メモリ)等から成り、各従局30−iをポーリングす
る際に使用する、バス50に接続された全ての従局30
−1〜40−4の端末アドレスを記憶している。
The master station control section 21 controls the data reception control section 22 as described above, and also processes the data transmitted from each slave station 30-i. Also,
The polling list memory 23 consists of, for example, ROM (read only memory), RAM (random access memory), etc., and is used to poll each slave station 30-i. slave 30
-1 to 40-4 terminal addresses are stored.

【0018】次に、図4に従局30(30−1〜30−
4)の内部構成を示す。同図に示すように、従局30は
、従局制御部31,データ送信制御部32,端末アドレ
スメモリ33,及びスリーステートバッファから成るラ
インレシーバ35とラインドライバ36とから成る。
Next, in FIG. 4, slave stations 30 (30-1 to 30-
4) shows the internal configuration. As shown in the figure, the slave station 30 includes a slave station control section 31, a data transmission control section 32, a terminal address memory 33, and a line receiver 35 and a line driver 36 consisting of a three-state buffer.

【0019】ラインレシーバ35は、入力端子が接続ケ
ーブル40に接続され、制御端子と出力端子が共にデー
タ送信制御部32に接続されており、ラインドライバ3
6は、出力端子が接続ケーブル40に接続され、制御端
子と入力端子が共にデータ送信制御部32に接続されて
いる。
The line receiver 35 has an input terminal connected to the connection cable 40, a control terminal and an output terminal both connected to the data transmission control unit 32, and the line driver 3
6 has an output terminal connected to the connection cable 40, and both a control terminal and an input terminal connected to the data transmission control section 32.

【0020】データ送信制御部32は、従局制御部31
の制御により動作し、ラインレシーバ35を介して主局
20から送信されくるるポーリングメッセージを受信し
て、自局に対するポーリングを検出すると共に、従局制
御部31が出力する主局30への送信データを、後述詳
しく説明するように、所定のタイミングで、ラインドラ
イバ36及び接続ケーブル40を介しバス50上に送出
する。
[0020] The data transmission control section 32 is connected to the slave station control section 31.
It operates under the control of the main station 20 via the line receiver 35, receives the polling message sent from the main station 20, detects polling for its own station, and transmits the transmission data to the main station 30 output by the slave station control section 31. , and is sent onto the bus 50 via the line driver 36 and the connection cable 40 at a predetermined timing, as will be explained in detail later.

【0021】従局制御部31は、上述のようにデータ送
信制御部32を制御すると共に、後述詳しく説明するよ
うに、主局30に対する送信データの送出タイミングの
制御も行う。
The slave station control section 31 controls the data transmission control section 32 as described above, and also controls the timing of transmitting data to the master station 30, as will be explained in detail later.

【0022】端末アドレスメモリ32は、例えばROM
,RAM等から成り、自局の端末アドレスを記憶してい
る。次に、主局のデータ受信制御部22の動作を、図5
のフローチャートを参照しながら説明する。
The terminal address memory 32 is, for example, a ROM.
, RAM, etc., and stores the terminal address of its own station. Next, the operation of the data reception control section 22 of the main station is shown in FIG.
This will be explained with reference to the flowchart.

【0023】データ受信制御部22は、まずポーリング
リスト・メモリ23に格納されているポーリングリスト
の先頭から端末アドレスを取り出し、その端末アドレス
をADRレジスタに格納する(SA1)。
The data reception control unit 22 first extracts the terminal address from the head of the polling list stored in the polling list memory 23, and stores the terminal address in the ADR register (SA1).

【0024】続いて、後述詳しく説明するポーリングリ
スト更新処理SA2を行い、上記ADRレジスタにセッ
トされたポーリングリストの先頭の端末アドレスを、ポ
ーリングリストの最後尾に移し、2番目以降の端末アド
レスを順次、1つずつ上に移動させる。このポーリング
リスト更新処理SA2により、ポーリングされる端末ア
ドレス(すなわち、ポーリングされる従局30)が巡回
的に変更される。
[0024] Next, polling list update processing SA2, which will be explained in detail later, is performed, and the first terminal address of the polling list set in the ADR register is moved to the end of the polling list, and the second and subsequent terminal addresses are sequentially updated. , move up one by one. Through this polling list update process SA2, the terminal address to be polled (that is, the slave station 30 to be polled) is cyclically changed.

【0025】次に、ADRレジスタに格納されている端
末アドレスを有する従局30−iをポーリングするため
のポーリングメッセージを、ラインドライバ26を介し
てバス50上に出力する(SA3)。
Next, a polling message for polling the slave station 30-i having the terminal address stored in the ADR register is output onto the bus 50 via the line driver 26 (SA3).

【0026】図6に、上記ポーリングメッセージの構成
例を示す。同図に示す例では、ポーリングメッセージは
、その先頭からテキストの開始を示すSTX(Star
t of Text),ポーリングメッセージであるこ
とを示す識別子P,端末アドレスADR,テキストの終
了を示すETX(End of Text),及びポー
リングメッセージのビット誤りを検出するための水平パ
リティビットから成る1文字のBCC(Block C
heck Character)で構成される。
FIG. 6 shows an example of the structure of the polling message. In the example shown in the figure, the polling message is STX (Star) indicating the start of the text from the beginning.
t of Text), an identifier P indicating that it is a polling message, a terminal address ADR, an ETX (End of Text) indicating the end of the text, and a horizontal parity bit for detecting bit errors in the polling message. BCC (Block C)
heckCharacter).

【0027】再び、図5のフローチャートの説明を行う
。上記処理SA3で、ポーリングメッセージの送出を行
った後、ラインレシーバ25を介して、任意の従局30
−i(i=1〜4)から送信されてくる応答メッセージ
を受信する待ち状態となる(SA4)。
The flowchart in FIG. 5 will be explained again. In the above process SA3, after sending out the polling message, any slave station 30 via the line receiver 25
-i (i=1 to 4) enters a waiting state to receive a response message transmitted from the terminal (SA4).

【0028】そして、所定時間to以内にいずれの従局
30−iからの応答メッセージも受信しなければタイム
アウトエラーと判別し(SA5)、再度上記処理SA1
〜SA3を行い、次の従局30(ポーリングリストの先
頭にある端末アドレスを有する従局30)のポーリング
に移る。
[0028] If no response message is received from any slave station 30-i within the predetermined time to, it is determined that a timeout error has occurred (SA5), and the above process SA1 is performed again.
~SA3 is performed, and the process moves to polling of the next slave station 30 (the slave station 30 having the terminal address at the head of the polling list).

【0029】一方、上記タイムアウトエラーが発生する
前に、任意の従局30−i(i=1〜4)から応答メッ
セージを受信した場合には、その受信した応答メッセー
ジのデータが正常であるか否かの判別を行い(SA6)
、その応答メッセージにデータエラーが発生していれば
、上記タイムアウトエラーと同様に、次の従局30に対
してポーリングを行う(SA1〜SA3)。
On the other hand, if a response message is received from any slave station 30-i (i=1 to 4) before the timeout error occurs, it is determined whether the data of the received response message is normal or not. (SA6)
, if a data error has occurred in the response message, the next slave station 30 is polled (SA1 to SA3) in the same way as for the timeout error described above.

【0030】他方、タイムアウトエラーが発生する前に
、正常な応答メッセージを受信すると、その応答メッセ
ージを送信してきた従局30に対しラインドライバ26
を介して肯定応答(ACK)を返信する(SA7)。
On the other hand, if a normal response message is received before a timeout error occurs, the line driver 26
An acknowledgment (ACK) is returned via (SA7).

【0031】ここで、上記応答メッセージの構成例を図
7に示す。同図に示される応答メッセージは、その先頭
から前記STX,応答メッセージであることを示す識別
子R,この応答メッセージを送信した従局30の端末ア
ドレスADR,主局20に対する送信データが格納され
るデータ部,前記ETX,及び前記BCCで構成される
[0031] Here, an example of the structure of the above response message is shown in FIG. The response message shown in the figure includes, from the beginning, the STX, the identifier R indicating that it is a response message, the terminal address ADR of the slave station 30 that sent this response message, and the data section in which the data sent to the master station 20 is stored. , the ETX, and the BCC.

【0032】尚、これは本実施例の特徴であるが、上記
処理SA4で受信する応答メッセージ内の端末アドレス
は、必ずしも、上記処理SA3でポーリングした従局3
0の端末アドレスとは限らず、ポーリングされなかった
従局の端末アドレスである場合もありうる。そして、こ
の場合の応答メッセージは、正常な応答メッセージとし
て処理される。すなわち、後述詳しく説明するように、
ポーリングされなかった従局30も、応答メッセージを
、主局20に対して送信できる場合がある。
Although this is a feature of this embodiment, the terminal address in the response message received in the above process SA4 does not necessarily correspond to the slave station 3 polled in the above process SA3.
The terminal address is not limited to 0, but may be the terminal address of a slave station that has not been polled. The response message in this case is processed as a normal response message. In other words, as will be explained in detail later,
A slave station 30 that has not been polled may also be able to send a response message to the master station 20.

【0033】再び、図5のフローチャートに戻って説明
を行うと、データ受信制御部22は、上記受信した応答
メッセージから端末アドレスを取り出し、その端末アド
レスをADRレジスタに格納し(SA8)、続いて、上
述したポーリングリスト更新処理SA2と同様の処理を
行う(SA9)。
Returning to the flowchart of FIG. 5 again, the data reception control unit 22 extracts the terminal address from the received response message, stores the terminal address in the ADR register (SA8), and then , performs a process similar to the polling list update process SA2 described above (SA9).

【0034】このポーリングリスト更新処理SA9によ
り、応答メッセージを送信してきた従局30の端末アド
レスが、ポーリングリストの最後尾に移される。上述し
たように、本実施例においては、ポーリングされた従局
30−i以外の従局30−j(i≠j:j=1〜4)が
応答メッセージを送信してくる場合もありうるので、上
記ポーリングリスト更新処理SA9を行うことにより、
応答メッセージを主局20に対して送信してきた従局3
0−i(i=1〜4)の次回のポーリングが、常に、そ
の従局30−i以外の全ての従局30に対するポーリン
グが済んだ後に行われることになる。
By this polling list update process SA9, the terminal address of the slave station 30 that sent the response message is moved to the end of the polling list. As described above, in this embodiment, there is a possibility that a slave station 30-j (i≠j: j=1 to 4) other than the polled slave station 30-i transmits a response message. By performing polling list update processing SA9,
Slave station 3 that sent the response message to master station 20
The next polling of 0-i (i=1 to 4) will always be performed after polling of all slave stations 30 other than that slave station 30-i has been completed.

【0035】上記ポーリングリスト更新処理SA9を行
った後、データ受信制御部22は、上記受信した応答メ
ッセージからデータ部を取り出し、そのデータ部を受信
データとして、主局制御部21に出力する(SA10)
After performing the polling list update process SA9, the data reception control section 22 extracts the data section from the received response message and outputs the data section as received data to the main station control section 21 (SA10). )
.

【0036】このことにより、主局制御部21は、上記
受信データに対する当該処理を行う。続いて、主局20
のデータ受信制御部22の行う前記ポーリングリスト更
新処理SA2,SA9を、図8のフローチャートを参照
しながら説明する。
[0036] Accordingly, the main station control section 21 performs the relevant processing on the received data. Next, main station 20
The polling list update processes SA2 and SA9 performed by the data reception control section 22 will be explained with reference to the flowchart of FIG.

【0037】この処理SA2,SA9において、データ
受信制御部22は、まず作業用ポインタP(以下、単に
ポインタPと表現する)に、前記ポーリングリストの先
頭アドレスをセットする(SB1)。
In these processes SA2 and SA9, the data reception control section 22 first sets the starting address of the polling list in the working pointer P (hereinafter simply expressed as pointer P) (SB1).

【0038】続いて、ポーリングリストのポインタPの
示すアドレスに格納されている端末アドレスとADRレ
ジスタに格納されている端末アドレスとが等しいが否か
の判別を行い(SB2)、等しくなければポインタPを
「1」加算した後(SB3)、上記処理SB2を繰り返
す。
Next, it is determined whether the terminal address stored at the address indicated by pointer P in the polling list and the terminal address stored in the ADR register are equal (SB2), and if they are not equal, pointer P is After adding "1" to (SB3), the above process SB2 is repeated.

【0039】したがって、上記処理SB2は、ポーリン
グリストのポインタPの示すアドレスに格納されている
端末アドレスとADRレジスタに格納されている端末ア
ドレスとが等しくなるまで繰り返されることになる。そ
して、上記2つの端末アドレスが等しくなると、ポイン
タPがポーリングリストの最終アドレスに等しくなって
いるか否かを判別し(SB4)、等しくなければポーリ
ングリストのポインタPの示すアドレスより一つ後方の
アドレスに格納されている端末アドレスを、ポーリング
リストのポインタPの示すアドレスに移した後、ポイン
タPを「1」加算する(SB5)。
Therefore, the above process SB2 is repeated until the terminal address stored at the address indicated by the pointer P of the polling list and the terminal address stored in the ADR register become equal. When the above two terminal addresses become equal, it is determined whether the pointer P is equal to the final address of the polling list (SB4), and if not, the address one address after the address indicated by the pointer P of the polling list is determined. After moving the terminal address stored in , to the address indicated by pointer P on the polling list, "1" is added to pointer P (SB5).

【0040】この処理SB5は、上記処理SB4でポイ
ンタPの示すアドレスがポーリングリストの最終アドレ
スに等しくなったと判別されるまで、繰り返し行われる
。そして、上記処理SB4で、ポインタPの示すアドレ
スがポーリングリストの最終アドレスに等しいと判別す
ると、ADRレジスタに格納されている端末アドレスを
、ポーリングリストのポインタPの示す最終アドレスに
格納する(SB6)。
This process SB5 is repeated until it is determined in the process SB4 that the address indicated by the pointer P is equal to the final address of the polling list. If it is determined in the above process SB4 that the address indicated by the pointer P is equal to the final address of the polling list, the terminal address stored in the ADR register is stored in the final address indicated by the pointer P of the polling list (SB6). .

【0041】ここで、上述したポーリングリスト更新処
理SA2,SA9の動作の理解を容易にするため、図9
(a),(b)及び図10(a),(b)に示す具体例
を参照しながら、上記処理SA2,SA9により行われ
るポーリングリストの更新の実例を説明する。
Here, in order to facilitate understanding of the operations of the polling list update processes SA2 and SA9 described above, FIG.
An example of updating the polling list performed by the above processes SA2 and SA9 will be described with reference to the examples shown in FIGS. 10(a) and 10(b).

【0042】まず、ポーリングリスト100が、図9(
a)に示すように、その先頭から、アドレスがADR1
(先頭アドレス),ADR2,ADR3,ADR4(最
終アドレス)が付与されており、各アドレスADR1,
ADR2,ADR3,ADR4には、それぞれ従局30
−1,30−2,30−3,30−4の各端末アドレス
「1」,「2」,「3」,「4」が格納されているもの
として、以後の説明を行う。
First, the polling list 100 is created as shown in FIG.
As shown in a), from the beginning, the address is ADR1.
(first address), ADR2, ADR3, ADR4 (last address) are assigned, and each address ADR1,
ADR2, ADR3, and ADR4 each have slave stations 30
The following explanation will be given assuming that terminal addresses "1", "2", "3", and "4" of -1, 30-2, 30-3, and 30-4 are stored.

【0043】このような場合、データ受信制御部22は
、最初に、ポーリングリストの先頭アドレスADR1に
格納されている端末アドレス「1」を有する従局30−
1に対するポーリングを行い、ADRレジスタには端末
アドレス「1」を格納する(図5に示すフローチャート
のSA1)。
In such a case, the data reception control unit 22 first selects the slave station 30- with the terminal address "1" stored in the first address ADR1 of the polling list.
1 is polled, and the terminal address "1" is stored in the ADR register (SA1 in the flowchart shown in FIG. 5).

【0044】続いて、データ受信制御部22は、前記ポ
ーリングリスト更新処理SA2を行うが、この処理SA
2において、ポインタPにはまずポーリングリストの先
頭アドレスADR1がセットされ(図8に示すフローチ
ャートのSB1)、続く処理SB2において、直ちにポ
インタPの示すアドレス「ADR1」に格納されている
端末アドレス「1」とADRレジスタに格納されている
端末アドレス「1」とが等しいと判別される。そして、
ポインタPが以後、「ADR2」,「ADR3」と順次
更新されながらポーリングリスト100のアドレス「A
DR2」,「ADR3」,「ADR4」に格納されてい
る端末アドレス「2」,「3」,「4」が、それぞれ図
9(b)に示すように、ポーリングリスト100のアド
レス「ADR1」,「ADR2」,「ADR3」に移さ
れる(処理SB5が3回繰り返される)。そして、ポイ
ンタPがアドレス「ADR4」に更新された後、ADR
レジスタに格納されている端末アドレス「1」が、同図
(b)に示すように、ポーリングリスト100の最後尾
のアドレス「ADR4」に格納される(SB5→SB4
→SB6)。
[0044] Next, the data reception control section 22 performs the polling list update process SA2.
2, the start address ADR1 of the polling list is first set in the pointer P (SB1 in the flowchart shown in FIG. 8), and in the subsequent process SB2, the terminal address "1" stored in the address "ADR1" indicated by the pointer P is immediately set. ” and the terminal address “1” stored in the ADR register are determined to be equal. and,
Thereafter, the pointer P is sequentially updated to "ADR2" and "ADR3" while the address "ADR" of the polling list 100 is updated.
As shown in FIG. 9(b), the terminal addresses "2", "3", and "4" stored in "DR2", "ADR3", and "ADR4" respectively correspond to the addresses "ADR1" and "ADR1" of the polling list 100, respectively. It is moved to "ADR2" and "ADR3" (processing SB5 is repeated three times). Then, after pointer P is updated to address "ADR4", ADR
The terminal address "1" stored in the register is stored in the last address "ADR4" of the polling list 100, as shown in FIG.
→SB6).

【0045】データ受信制御部22は、このようにして
、ポーリングリスト100の内容を、同図(b)に示す
ような内容に更新した後、ADRレジスタに格納されて
いる端末アドレス「1」を有する従局30−1に対する
ポーリングメッセージを送信する(SA3)。
After updating the contents of the polling list 100 as shown in FIG. A polling message is transmitted to the slave station 30-1 having the terminal (SA3).

【0046】そして、続く処理SA4で、従局30−4
からの正常な応答メッセージを受信すると、データ受信
処理部22は、以後に行う処理SA8で、ADRレジス
タに上記受信した応答メッセージに格納されている従局
30−4の端末アドレス「4」をセットし、次にポーリ
ングリスト更新処理SA9を行う。
[0046] Then, in the following process SA4, the slave station 30-4
Upon receiving a normal response message from the terminal, the data reception processing section 22 sets the terminal address "4" of the slave station 30-4 stored in the received response message in the ADR register in the subsequent processing SA8. , then performs polling list update processing SA9.

【0047】この処理SA9が行われる直前のポーリン
グリスト100及びADRレジスタの内容は、図10(
a)に示すようになっている(図9(b)に等しい)。 したがって、上述した処理SA2とは異なり、この処理
SA9においては、処理SB3が2回繰り返され、2回
目の処理SB3で、ポインタPにアドレス「ADR3」
がセットされた後、処理SB2から処理SB4に移行す
る。
The contents of the polling list 100 and the ADR register immediately before this process SA9 is performed are shown in FIG.
It is as shown in a) (equivalent to FIG. 9(b)). Therefore, unlike the process SA2 described above, in this process SA9, process SB3 is repeated twice, and in the second process SB3, the address "ADR3" is set to the pointer P.
After is set, the process moves from process SB2 to process SB4.

【0048】そして、前記処理SB4で「NO」と判別
した後、前記処理SB5を行い、ポーリングリスト10
0のアドレス「ADR4」に格納されている端末アドレ
ス「1」(同図(a)参照)を、アドレス「ADR3」
に移す処理を行った後(同図(b)参照)、ポインタP
をポーリングリスト100の最終アドレス「ADR4」
に変更する。そして、上記処理SB4で「YES」と判
別し、次に前記処理SB6を行い、ADRレジスタに格
納されている端末アドレス「4」を、ポーリングリスト
100の最後尾のアドレス「ADR4」に格納する。
After determining "NO" in the process SB4, the process SB5 is performed and the polling list 10 is
The terminal address "1" stored in the address "ADR4" of 0 (see figure (a)) is transferred to the address "ADR3".
After performing the process of moving the pointer to P (see (b) in the same figure),
The final address of polling list 100 is "ADR4"
Change to Then, "YES" is determined in the above process SB4, and then the above process SB6 is performed, and the terminal address "4" stored in the ADR register is stored in the last address "ADR4" of the polling list 100.

【0049】このことにより、受信した応答メッセージ
を送信した従局30−4の端末アドレス「4」が、ポー
リングリスト100の最後尾のアドレス「ADR4」に
格納される。そして、つぎのポーリング処理SA3によ
り、ポーリングリスト100の先頭アドレス「ADR1
」に格納されている端末アドレス「2」を有する従局3
0−2に対しポーリングを行う。
As a result, the terminal address "4" of the slave station 30-4 that sent the received response message is stored in the last address "ADR4" of the polling list 100. Then, by the next polling process SA3, the first address "ADR1" of the polling list 100 is
slave station 3 with terminal address "2" stored in "
Poll 0-2.

【0050】このように、ポーリングリスト更新処理S
A2は、ポーリングに対応して、そのポーリングを行っ
たポーリングリストの先頭にある従局30の端末アドレ
スをポーリングリストの最後尾に移し、ポーリングリス
トの他の端末アドレスを1つずつポーリングリストの上
方へ移す処理であり、ポーリングリスト処理SA9は、
実際に受信した応答メッセージ(ポーリングした従局3
0からの応答メッセージとは限らない)を送信してきた
従局30の端末アドレスを、ポーリングリストの最後尾
に移し、そのポーリングリストの最後尾に移した端末ア
ドレスの後方につながれていた端末アドレスを1つずつ
ポーリングリストの上方へ移す処理である。
In this way, the polling list update process S
In response to the polling, A2 moves the terminal address of the slave station 30 at the head of the polling list that performed the polling to the end of the polling list, and moves the other terminal addresses on the polling list one by one upward in the polling list. The polling list processing SA9 is
Actual received response message (polled slave 3)
The terminal address of the slave station 30 that sent the response message (not necessarily the response message from 0) is moved to the end of the polling list, and the terminal address connected after the terminal address moved to the end of the polling list is moved to 1. This is the process of moving them up the polling list one by one.

【0051】続いて、各従局30(30−1〜40−4
)のデータ送信制御部32の動作を、図11のフローチ
ャートを参照しながら説明する。従局30のデータ送信
制御部32は、主局20がバス50上にポーリングメッ
セージを送信してくるのを監視し、バス50上にポーリ
ングメッセージが送信されたら、直ちに、そのポーリン
グメッセージを受信する(SC1)。
[0051] Next, each slave station 30 (30-1 to 40-4
) will be described with reference to the flowchart of FIG. 11. The data transmission control unit 32 of the slave station 30 monitors when the master station 20 transmits a polling message on the bus 50, and immediately receives the polling message when it is transmitted on the bus 50 ( SC1).

【0052】そして、次に、上記受信した図6に示すフ
ォーマット(形式)のポーリングメッセージから端末ア
ドレスADRを取り出し(SC2)、その端末アドレス
ADRを端末アドレスメモリ33に格納されている自局
の端末アドレスと比較し、両者が一致するか否か判別す
る(SC3)。
Next, the terminal address ADR is extracted from the received polling message in the format shown in FIG. It is compared with the address and determines whether the two match (SC3).

【0053】そして、両者が一致しており、かつ現在、
主局20に送信すべきデータが有れば、即座に図7に示
すフォーマット(形式)の応答メッセージをラインドラ
イバ36及びバス50を介して、主局20に送信(返信
)する(SC6)。
[0053]Then, both of them match, and currently,
If there is data to be sent to the main station 20, a response message in the format shown in FIG. 7 is immediately sent (replyed) to the main station 20 via the line driver 36 and bus 50 (SC6).

【0054】そして、所定時間内に肯定応答(ACK)
を受信すれば(SC7→SC8)、主局20からのポー
リングに対する応答メッセージ(当該送信データ)の送
出を終了する(正常終了)。
[0054] Then, an acknowledgment (ACK) is received within a predetermined time.
If received (SC7→SC8), the sending of the response message (the transmission data) to the polling from the main station 20 is completed (normal end).

【0055】また、上記応答メッセージを主局20に送
信した後、所定時間内に肯定応答(ACK)を受信でき
なかった場合には(SC8)、主局20に対する応答メ
ッセージの送信が正しく行われなかったものと判断し、
再び、応答メッセージを主局20に再送すべく、上記処
理SC1に戻り、主局20から次のポーリングメッセー
ジが送信されてくるのを待つ。
[0055] Furthermore, if an acknowledgment (ACK) is not received within a predetermined time after transmitting the response message to the main station 20 (SC8), the response message to the main station 20 is not correctly transmitted. It is assumed that there was no
In order to resend the response message to the main station 20 again, the process returns to the process SC1 and waits for the next polling message to be sent from the main station 20.

【0056】また、同図のフローチャートにおいては、
明示していないが、自局に対するポーリングが行われた
とき、送信すべきデータが無ければ、その旨のメッセー
ジ(例えば、所定の1文字から成るメッセージ)を主局
20に対して送信するか、または主局20に対し応答を
行わない(無応答)。
[0056] Also, in the flowchart of the same figure,
Although not explicitly stated, if there is no data to be transmitted when the own station is polled, a message to that effect (for example, a message consisting of one predetermined character) is sent to the main station 20, or Or it does not respond to the main station 20 (no response).

【0057】一方、上記判別処理SC3で、受信したポ
ーリングメモリの端末アドレスが自局の端末アドレスに
等しくない、すなわち自局宛のポーリングメッセージで
なければ、乱数発生によりディレイ時間t1 を生成し
、その時間t1 の間、ラインレシーバ36を介してバ
ス50上のデータを読み込み、他の従局30が主局20
に対し何らかのデータを送信しているか否かの監視を行
う(SC4)。そして、上記時間t1 の間、ラインレ
シーバ36を介し、何のデータも受信しなかったときに
は(SC5(N))、主局20に対し応答メッセージを
送信する(SC6)。
On the other hand, in the above judgment process SC3, if the terminal address of the received polling memory is not equal to the terminal address of the own station, that is, it is not a polling message addressed to the own station, a delay time t1 is generated by random number generation, and the delay time t1 is generated by random number generation. During time t1, data on the bus 50 is read through the line receiver 36, and other slave stations 30
Monitoring is performed to see if any data is being sent to (SC4). If no data is received via the line receiver 36 during the time t1 (SC5 (N)), a response message is transmitted to the main station 20 (SC6).

【0058】そして、肯定応答(ACK)が所定時間内
に受信されるのを待ち、肯定応答(ACK)を所定時間
内に受信すれば、主局20に対するデータの送信が正常
に終了したものと判断して処理を終了する(SC7→S
C8(N))が、肯定応答(ACK)を所定時間内に受
信できなかったときは、応答メッセージが他の従局30
の送信データと衝突したものと判断し、再び、ポーリン
グメッセージの受信待ちとなる(SC7→SC8(Y)
→SC1)。
[0058] Then, wait for the acknowledgment (ACK) to be received within a predetermined time, and if the acknowledgment (ACK) is received within the predetermined time, it is assumed that the data transmission to the main station 20 has been successfully completed. Determine and end the process (SC7→S
When C8(N)) fails to receive an acknowledgment (ACK) within a predetermined time, the response message is sent to another slave station 30.
It is determined that there has been a collision with the transmitted data, and the system waits for the reception of the polling message again (SC7 → SC8 (Y)
→SC1).

【0059】一方、上記時間t1 の間、何らかのデー
タを受信したときには、他の従局30と競合していると
判断して、再びポーリングメッセージの受信待ちの状態
に戻る(SC5(Y)→SC1)。
On the other hand, when any data is received during the above time t1, it is determined that there is a conflict with another slave station 30, and the state returns to waiting for reception of a polling message (SC5 (Y) → SC1). .

【0060】上記動作において、上記乱数化された時間
t1 の長さは、従局30がバス50を介して1文字を
送信するのに要する時間よりも充分に長く、主局20が
ポーリングを行ってから応答メッセージの受信を待つ上
記最大時間(応答メッセージが無かった場合のポーリン
グ周期にほぼ等しい時間)t0 よりも短い任意の時間
長に設定する。すなわち、そのような条件を満足するよ
うな乱数を発生して、上記時間t1 を設定する。
In the above operation, the length of the randomized time t1 is sufficiently longer than the time required for the slave station 30 to transmit one character via the bus 50, and the master station 20 performs polling. The maximum time for waiting for the reception of a response message from t0 (the time approximately equal to the polling cycle when there is no response message) is set to an arbitrary time length shorter than t0. That is, a random number that satisfies such conditions is generated and the above-mentioned time t1 is set.

【0061】本実施例においては、このように、ポーリ
ングメッセージで指定された従局30(主局20からポ
ーリングされた従局30)は、主局20に対し送信すべ
きデータが有った場合には、ポーリングされた際、即座
に、主局20に対し応答メッセージを送信することによ
り、他の従局30よりも優先的に、主局20に対しデー
タを送信できる。また、ポーリングされた従局30に、
主局20に対して送信すべきデータが無い場合には、ポ
ーリングされない従局30でも、ポーリングが行われた
時刻から適当な遅延(上記乱数化された時間t1 に等
しい)をおいて、主局20に対してデータを送信するこ
とが可能である。
In this embodiment, as described above, when the slave station 30 specified in the polling message (the slave station 30 polled by the master station 20) has data to be transmitted to the master station 20, By immediately transmitting a response message to the master station 20 when polled, data can be transmitted to the master station 20 with priority over other slave stations 30. Also, to the slave station 30 that was polled,
If there is no data to be transmitted to the main station 20, even the slave station 30 that is not polled will send the data to the main station 20 after an appropriate delay (equal to the random numbered time t1) from the polling time. It is possible to send data to.

【0062】すなわち、本実施例においては、ポーリン
グされた従局30が、主局20に対し優先的にデータを
送信できるようになっているが、ポーリングされた従局
30が主局20に対して送信するデータが無い場合には
、ポーリングされなかった従局30が、主局20に対し
データを送信できるようになっている。また、主局20
に対しデータの送信(応答メッセージの送信)を行った
従局30が、常にポーリングリストの最後尾につながれ
るようになっている。
In other words, in this embodiment, the polled slave station 30 can send data preferentially to the master station 20; If there is no data to be polled, the slave stations 30 that have not been polled can transmit data to the master station 20. In addition, the main station 20
The slave station 30 that has sent data (transmitted a response message) to the polling list is always connected to the end of the polling list.

【0063】したがって、主局20と従局30との間で
やり取りされるデータが多い場合でも、全ての従局30
は、他の従局30のポーリングが終了すると、ほぼ一定
の周期でデータの送信権を得ることができる。また、主
局20と従局30との間でやり取りされるデータが少な
い場合には、ポーリングされた従局30が主局20に対
して送信するデータが無かったとき、他のポーリングさ
れていない従局30が主局20に対しデータを送信でき
るので、ポーリングされた従局しか主局に対しデータを
送信できない従来の方式に比べて、はるかに迅速に、従
局は、主局に対してデータを送信できるようになる(従
局の主局に対するデータ送信のスループットが向上する
)。また、主局の従局に対するポーリングも、効率良く
行えるようになる(データの送信を行っていない従局3
0が優先的にポーリングされる)。
Therefore, even if a large amount of data is exchanged between the master station 20 and slave stations 30, all slave stations 30
When the polling of other slave stations 30 is completed, it is possible to obtain the right to transmit data at approximately constant intervals. In addition, when there is little data exchanged between the master station 20 and the slave station 30, when the polled slave station 30 has no data to send to the master station 20, other unpolled slave stations 30 can send data to the master station 20, which allows the slave stations to send data to the master station much more quickly than in the conventional system where only polled slave stations can send data to the master station. (The throughput of data transmission from the slave station to the master station is improved). In addition, polling of the slave stations from the master station can be performed efficiently (the slave stations that are not transmitting data
0 is polled preferentially).

【0064】[0064]

【発明の効果】本発明によれば、従局に対するポーリン
グは、一局ずつ順番に行い、ポーリングされた従局に主
局に対して送信するデータが無かった場合、主局に対し
て送信するデータが有るポーリングされていない従局が
、次のポーリングまでの空き時間を利用して、データを
主局に送信できるので、主局と従局との間でやり取りさ
れるデータの量が少なくかつ従局の台数が多い場合のみ
ならず、主局と従局との間でやり取りされるデータの量
が多い場合にも、各従局は、主局に対し、従来よりも迅
速かつ効率良くデータを送信できる。
[Effects of the Invention] According to the present invention, polling of slave stations is performed one by one in order, and if the polled slave station has no data to transmit to the master station, the data to be transmitted to the master station is Since a slave station that has not been polled can send data to the master station using the free time until the next polling, the amount of data exchanged between the master station and slave stations is small and the number of slave stations is small. Not only when the amount of data is large, but also when the amount of data exchanged between the master station and the slave station is large, each slave station can transmit data to the master station more quickly and efficiently than before.

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

【図1】本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】コンピュータネットワークのシステム構成図で
ある。
FIG. 2 is a system configuration diagram of a computer network.

【図3】主局の内部構成を示す図である。FIG. 3 is a diagram showing the internal configuration of the main station.

【図4】従局の内部構成を示す図である。FIG. 4 is a diagram showing the internal configuration of a slave station.

【図5】主局のデータ受信制御部の動作を説明するフロ
ーチャートである。
FIG. 5 is a flowchart illustrating the operation of the data reception control section of the main station.

【図6】ポーリングメッセージの形式(フォーマット)
を示す図である。
[Figure 6] Format of polling message
FIG.

【図7】応答メッセージの形式(フォーマット)を示す
図である。
FIG. 7 is a diagram showing the format of a response message.

【図8】ポーリングリスト更新処理を説明するフローチ
ャートである。
FIG. 8 is a flowchart illustrating polling list update processing.

【図9】ポーリングリスト更新処理の具体例を説明する
図である(その1)。
FIG. 9 is a diagram illustrating a specific example of polling list update processing (Part 1).

【図10】ポーリングリスト更新処理の具体例を説明す
る図である(その2)。
FIG. 10 is a diagram illustrating a specific example of polling list update processing (Part 2).

【図11】従局のデータ送信制御部の動作を説明するフ
ローチャートである。
FIG. 11 is a flowchart illustrating the operation of the data transmission control section of the slave station.

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

1  主局 2(2−1,2−2,・・・2−N)  従局2a  
監視手段 2b  時間発生手段 3  共通伝送路
1 Master station 2 (2-1, 2-2,...2-N) Slave station 2a
Monitoring means 2b Time generating means 3 Common transmission path

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】一台の主局と、その主局にデータを送信す
る複数台の従局が、一つの共通伝送路に接続されたシス
テムにおける、前記主局が、各従局を一台ずつポーリン
グして、各従局に対しデータの送信を勧誘する、ポーリ
ングによる伝送制御方式において、前記各従局は、所定
範囲内の時間を任意に発生する時間発生手段と、前記共
通伝送路上にデータが送出されているか否かを監視する
監視手段とを有し、ポーリングされた各従局は、主局に
対する送信データが有る場合には、即座に、その送信デ
ータを、前記共通伝送路を介して前記主局に送信し、ポ
ーリングされなかった各従局は、主局に対する送信デー
タが有るとき、前記時間発生手段により発生される任意
の時間の間、前記監視手段により前記共通伝送路上のデ
ータを監視し、上記任意の時間の間、前記共通伝送路上
に、他の従局からデータが送出されなかったと判断した
ときには、前記送信データを、前記共通伝送路を介し前
記主局に送信することを特徴とするポーリングによる伝
送制御方式。
Claim 1: In a system in which one master station and a plurality of slave stations that transmit data to the master station are connected to one common transmission path, the master station polls each slave station one by one. In the transmission control method using polling, in which each slave station is invited to transmit data, each slave station has a time generating means that arbitrarily generates a time within a predetermined range, and a time generator that sends data onto the common transmission path. If there is data to be transmitted to the master station, each polled slave station immediately sends the transmitted data to the master station via the common transmission path. Each slave station that has not been polled monitors the data on the common transmission path by the monitoring means during an arbitrary time period generated by the time generation means when there is data to be transmitted to the master station. By polling, the transmission data is transmitted to the main station via the common transmission path when it is determined that no data has been sent from another slave station to the common transmission path for an arbitrary period of time. Transmission control method.
JP13501191A 1991-06-06 1991-06-06 Transmission control system by polling Pending JPH04360259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13501191A JPH04360259A (en) 1991-06-06 1991-06-06 Transmission control system by polling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13501191A JPH04360259A (en) 1991-06-06 1991-06-06 Transmission control system by polling

Publications (1)

Publication Number Publication Date
JPH04360259A true JPH04360259A (en) 1992-12-14

Family

ID=15141848

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13501191A Pending JPH04360259A (en) 1991-06-06 1991-06-06 Transmission control system by polling

Country Status (1)

Country Link
JP (1) JPH04360259A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2748333A1 (en) * 1996-05-06 1997-11-07 Inside Technologies METHOD FOR SELECTING AN ELECTRONIC MODULE AMONG A PLURALITY OF MODULES PRESENT IN THE QUERY FIELD OF A TERMINAL
JP2002329261A (en) * 2001-04-27 2002-11-15 Atsumi Electric Co Ltd Crime prevention sensor
JP2012168679A (en) * 2011-02-14 2012-09-06 Toshiba Mitsubishi-Electric Industrial System Corp Communication processing system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2748333A1 (en) * 1996-05-06 1997-11-07 Inside Technologies METHOD FOR SELECTING AN ELECTRONIC MODULE AMONG A PLURALITY OF MODULES PRESENT IN THE QUERY FIELD OF A TERMINAL
WO1997042578A1 (en) * 1996-05-06 1997-11-13 Inside Technologies Method for selecting an electronic module from a plurality of modules present in the query field of a terminal
AU734604B2 (en) * 1996-05-06 2001-06-21 Inside Technologies Method of selecting an electronic module from a plurality of modules present in the interrogation field of a terminal
JP2002329261A (en) * 2001-04-27 2002-11-15 Atsumi Electric Co Ltd Crime prevention sensor
JP2012168679A (en) * 2011-02-14 2012-09-06 Toshiba Mitsubishi-Electric Industrial System Corp Communication processing system

Similar Documents

Publication Publication Date Title
CA2558111C (en) Communication system and slave and repeater units therefor
CN101454763B (en) Gateway for data transfer between serial buses
US7080175B2 (en) Network system
JPH04360259A (en) Transmission control system by polling
JP2715938B2 (en) Terminal equipment for wireless communication networks
JP2005229322A (en) Master slave synchronous communication system
JP2013126119A (en) Gateway unit and network system
JPH0730576A (en) Transmission system
JPH0690240A (en) Multiplex transmission system
JP2007097157A (en) Reduction of effect of repeater delay
JPH11296211A (en) Input/output device
JPH0644763B2 (en) Data transfer method
JP2935242B2 (en) Wireless communication system
KR900001533B1 (en) Control device for synchronized data link control
JP2022091361A (en) Communication device, communication method, and program
JPS6345146B2 (en)
KR200379327Y1 (en) Input-output data control unit using multi-input synchronization switch controller
CN117792822A (en) Isochronous communication system and communication method of master-slave equipment
JPH08149148A (en) Loop shaped serial communication procedure and loop shaped serial communication network
JP2570192B2 (en) Loop type local area network system
CN117319123A (en) Fieldbus communication method, device, equipment and storage medium
JP2566350B2 (en) Data way device
JPH03137754A (en) Access control system for shared memory
JP2002341907A (en) Method for transmitting/receiving data in blast furnace facility program logic controller
JPH0136740B2 (en)