JPS58213548A - Method for transmitting polling - Google Patents

Method for transmitting polling

Info

Publication number
JPS58213548A
JPS58213548A JP57096560A JP9656082A JPS58213548A JP S58213548 A JPS58213548 A JP S58213548A JP 57096560 A JP57096560 A JP 57096560A JP 9656082 A JP9656082 A JP 9656082A JP S58213548 A JPS58213548 A JP S58213548A
Authority
JP
Japan
Prior art keywords
polling
station
slave station
response
slave
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
JP57096560A
Other languages
Japanese (ja)
Inventor
Hitoshi Naito
均 内藤
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP57096560A priority Critical patent/JPS58213548A/en
Publication of JPS58213548A publication Critical patent/JPS58213548A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To detect recovery automatically and to shorten polling time, by separating a downed slave station from normal polling and sending common polling to make a restored slave station output a recovery response and insert the restored slave station into the normal polling again. CONSTITUTION:When the slave stations TS2, TS5 are downed, pollings N2, N5 are removed, and when the slave station TS2 has the priority, a common polling C2 is inserted into the last position of a normal polling string. The normal polling includes the processing to supervise time at the no response of the slave station and the common polling waits only the minimum time to check the recovery response from the downed terminal and then moves to the normal polling N1 immediately. When only the slave station TS5 is restored, the slave station TS5 sends a recovery response to the master station CS when the response time of the self-station is reached after passing the time of T5 from the reception of the common polling C2. Receiving said recovery response, the master station CS inserts the normal polling N5 for the slave station TS5 from the next polling group. After receiving the normal polling N5 after recovery, the slave station TS5 loses the right of response to the common polling.

Description

【発明の詳細な説明】 この発明はポーリング伝送方式、特にポーリング/セレ
クテイング伝送方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a polling transmission system, and more particularly to a polling/selecting transmission system.

従来のポーリング/セレクテイング伝送方式において、
従局である端末が電源断や異常でポーリングに対して応
答しなくなった場合、すなわち端末がダウンした場合こ
の対応として無応答のエラーを上位に知らせる一方、以
降のポーリングループでも正常時と同様にポーリングを
行ないそのたびにエラーを上位に報告する方法か、エラ
ーをガウントして一定回数に達したら、その端末をポー
リングループから除外する方法をとっている。しかしな
がら前出の方法は無応答をそのつと検知するため、無応
答の時間管理処理が行なわれ全体のポーリングループが
長くなる欠点があるし、後出の方法はダウンした端末が
回復した場合これを検知する手段が主局になく2人間が
キー操作などの手動によって主局に復帰状態をセットし
ており非常に面倒である。またシステムに人間の操作が
介在することは好ましいことではない。
In the conventional polling/selecting transmission method,
If a terminal that is a slave station stops responding to polling due to a power outage or abnormality, that is, if the terminal goes down, the error of no response will be reported to the upper layer, and subsequent polling loops will continue to poll as normal. Either the error is gaunted and the error is reported to the higher level each time it occurs, or the terminal is removed from the polling loop after a certain number of errors are gaunted. However, since the above method detects each non-response, it has the disadvantage that time management processing for non-response is performed and the overall polling loop becomes longer. There is no detection means in the main station, and two people have to manually set the return state in the main station by operating keys, which is very troublesome. Furthermore, it is not desirable for the system to involve human operations.

この発明の目的は上記した従来のポーリング伝送方式の
欠点を解消し、ポーリング周期を短かくできそれでいて
、タウンした従局(端末)の復帰を主局が自動的に検知
し得るポーリング伝送方式を提供するにある。
The purpose of the present invention is to eliminate the drawbacks of the conventional polling transmission method described above, and to provide a polling transmission method that can shorten the polling cycle and allow a master station to automatically detect the return of a slave station (terminal) that has gone down. It is in.

上記目的を達成するためにこの発明のポーリング伝送方
式は、主局よシ各従局あて個別のアドレスを含む正規ポ
ーリングを順次送出し各従局よシ応答がなければ、その
従局をダウン端末として正規ポーリングから切離すとと
もに、無応答の従局があれば前記正規ポーリングに後続
し、最優先応答順位を付置する無心・答従局アドレスを
含む共通ポーリングを送出し、最優先応答順位が付与さ
れる無応答従局以降の従局シ(共通ポーリング受信後の
応答時間を時分割的に割当て、各無応答従局はダウンよ
シ復帰して前記共通ポーリングを受信するとこの共通ポ
ーリングに含まれる従局アドレスと自局アドレスとによ
り自局の送信時間を算出し。
In order to achieve the above object, the polling transmission method of the present invention sequentially sends regular polling including individual addresses to each slave station from the master station, and if there is no response from each slave station, regular polling is performed with that slave station as a down terminal. At the same time, if there is a non-responsive slave station, following the regular polling, a common poll including the unresponsive slave station address to which the highest priority response priority is attached is sent, and the non-responsive slave station to which the highest priority response priority is assigned is sent. Subsequent slave stations (response time after receiving common polling are allocated in a time-division manner, and when each non-responsive slave station recovers from down and receives the common polling, the slave station address and own station address included in this common polling are Calculate your own station's transmission time.

この送信時間に達すると自局よりも以前に他局が送信し
ていない場合に、前記主局に復帰応答を送出し、この復
帰応答を受けた主局は前記復帰応答送出の従局を正規ポ
ーリング中に復帰させるようにしている。
When this transmission time is reached, if no other station has transmitted before the own station, a return response is sent to the master station, and the master station that receives this return response regularly polls the slave station that sent the return response. I'm trying to get it back inside.

以下1図面に示す実施例によりこの発明の詳細な説明す
る。
The present invention will be explained in detail below with reference to an embodiment shown in one drawing.

第1図はこの発明が実施されるシステムの概略ブロック
図である。同図において主局C8は下シ伝送路L1.上
り伝送路L2によシマルチドロップ方式で従局TSi・
TS2・・・・・TSnに接続されている。
FIG. 1 is a schematic block diagram of a system in which the present invention is implemented. In the figure, the main station C8 is connected to the lower transmission line L1. The slave station TSi/
TS2...Connected to TSn.

第1図に示すシステムにおいて従局Tl・TS2・・・
・・TSnのすべてが正常の場合には、主局C8より各
従局TSi・TS2・・・・・TSnに対し正規ポーリ
ング送出がなされる。この正規ポーリングの送出は第2
図に示すように、先ず従局TS1に対し従局TS1のア
ドレスを含むポーリングN1が送出され以下順次従局T
S2・TS3・・・・TSnに対しそれぞれの従局アド
レスを含むポーリングN2・N5・・・・Nnが送出さ
れるようになっておシ。
In the system shown in FIG. 1, slave stations Tl and TS2...
...TSn are normal, the master station C8 sends regular polling to each slave station TSi, TS2, ...TSn. This regular polling is sent in the second
As shown in the figure, polling N1 containing the address of slave station TS1 is first sent to slave station TS1, and then polling N1 containing the address of slave station TS1 is sent to slave station TS1.
Polling N2, N5...Nn including the respective slave station addresses is now sent to S2, TS3...TSn.

いずれの端末すなわち従局からも応答データが主局C8
に送出されない限りここに示すN1・N2・・・・・N
nのポーリングル−プの送出が繰り返される。このよう
なポーリングループの繰り返しは従来のポーリング伝送
方式と変るところがない。
The response data from any terminal, that is, the slave station, is sent to the master station C8.
N1, N2...N shown here unless sent to
The sending of n polling groups is repeated. The repetition of such polling loops is no different from the conventional polling transmission method.

しかしいくらかの端末がダウンして正規ポーリングN1
・N2・・・・・N n K対して無応答の従局が生じ
るとこの実施例ではこの無応答の従局を正規ポーリング
から除外し、残りの正常に動作してい渇従局に対しての
み、主局よシ正規ポーリングを送出する。そして正規ポ
ーリングに後続してダウン従局に復帰応答のチャンスを
与えるための共通ポーリングを送出する。この共通ポー
リングはダウンした端末のうち最も優先順位Ω高い従局
アドレスを指定して送出されるようになっている。
However, some terminals were down and regular polling N1
・N2...N When a non-responsive slave station occurs for N n K, in this embodiment, this non-responsive slave station is excluded from regular polling, and the main polling is performed only for the remaining normally operating and starved stations. The station sends out a regular poll. Then, following the regular polling, a common polling is sent out to give the down slave station a chance to respond with a recovery response. This common polling is sent out by specifying the slave station address with the highest priority Ω among the downed terminals.

共通ポーリングに対する各ダウン従局の応答優先順位は
正規ポーリングの順位に沿って便宜的に定められている
The response priority of each down slave station to common polling is conveniently determined in accordance with the order of regular polling.

また電源オンの後一度も正規ポーリングを受信していな
い端末は、ダウン後復帰した端末として共通ポーリング
に応答する資格を持つが一度でも正規ポーリングを受信
した端末は共通ポーリングに応答しない。
Furthermore, a terminal that has not received regular polling even once after powering on is eligible to respond to common polling as a terminal that has returned after going down, but a terminal that has received regular polling even once does not respond to common polling.

ダウンした後復帰した従局は共通ポーリングに乗せられ
ている最優先の従局アドレスと自局のアドレスから応答
時間を計算するようになっている。
A slave station that returns after going down calculates its response time from the highest priority slave station address included in the common poll and its own address.

なお優先順位がとなシ合った従局間の応答時間間隔は、
より優先度の高い端末が応答を主局へ送出した場合に、
優先順位の低い端末が自局の送出時間に到達しても、優
先順上位局の送信を検知することにより、自局の応答を
主局へ送出しない程度以上にあけている。
The response time interval between slave stations with the same priority is
When a terminal with a higher priority sends a response to the master station,
Even if a terminal with a low priority reaches its own sending time, by detecting the transmission from a station with a higher priority, the terminal has enough time to not send its own response to the main station.

正規ポーリングと共通ポーリングを含むこの実施例のポ
ーリングループの一例を第6図に示している。第6図の
例では従局TS2とTS5がダウンした場合を示してお
シボ−リングN2とN5がが除かれるとともに従局TS
2の端末アドレスを最優先応答アドレスとして含む共通
ポーリングC2が正規ポーリング列の最後に挿入されて
いる。
An example of the polling loop of this embodiment including regular polling and common polling is shown in FIG. The example in Fig. 6 shows a case where slave stations TS2 and TS5 go down, and shiboring rings N2 and N5 are removed and slave stations TS2 and TS5 go down.
Common poll C2, which includes terminal address No. 2 as the highest priority response address, is inserted at the end of the regular poll sequence.

正規ポーリングと共通ポーリングの相違は、正規ポーリ
ングが従局の無応答時に時間監視やポーリング再送など
のエラー処理が含まれるのに列し。
The difference between regular polling and common polling is that regular polling includes error handling such as time monitoring and polling retransmission when a slave station does not respond.

共通ポーリングはダウンした端末よりの復帰応答を確認
するだめの最少時間しか持たずつぎは直ちツ に正規ポーリングN1に移行する点である。それゆえ正
規ポーリング中でダウン端末の状況を確認するよυも、
共通ポーリングによる確認の方が短時間ですむことにな
る。
The common polling has only the minimum time to confirm the return response from the downed terminal, and then immediately shifts to regular polling N1. Therefore, check the status of down terminals during regular polling.
Confirmation using common polling will take less time.

次に第3図の例において従局TS5が復帰し°た場合の
処理方法について説明する。第4図はその場合の共通ポ
ーリングC2送出時の拡大したタイムチャートを示して
いる。第4図においで(a)は主局C8よシのポーリン
グ送出タイミング、及びダウンした端末の従局に割当て
られる応答時間を示して゛おシ、も2は共通ポーリング
データC2中に含まれる最優先応答従局アドレスに対応
する従局(この例では従局TS2)に割当てられる応答
時間を、t5は同じくダウンしている端末の従局TS5
に割当てられる応答時間を示している。
Next, a processing method when the slave station TS5 returns to normal operation in the example shown in FIG. 3 will be described. FIG. 4 shows an enlarged time chart when common polling C2 is sent in that case. In FIG. 4, (a) shows the polling transmission timing from the master station C8 and the response time allocated to the slave station of the down terminal, and (2) shows the highest priority response included in the common polling data C2. t5 is the response time assigned to the slave station (in this example, slave station TS2) corresponding to the slave station address, and t5 is the response time assigned to the slave station TS5 of the terminal that is also down.
shows the response time allocated to

今ダウンしている従局TS2とTS5のうち従局TS5
が復帰したとすると、従局TS5は主局C8よりの共通
ポーリングC2を受信し自局のアドレス(=5)と、共
通ポーリングC2中に含まれる最優先応答従局アドレス
(=2)とより、(5−2)XK+α=T5の演算を行
なう。ここでαは自局が共通ポーリングC21受信しあ
るいは優先順位が上位の従局かも主局C8へ応答を受1
言したことを確認するために必要な時間でアり、 Kは
ダウンした端末よシの応答が重ならないためのマージン
時間である。これらα及び−にはいずれもシステムによ
って可変の数値である。
Of the slave stations TS2 and TS5 that are currently down, slave station TS5
Suppose that the slave station TS5 has recovered, the slave station TS5 receives the common polling C2 from the master station C8, and from its own address (=5) and the highest priority response slave station address (=2) included in the common polling C2, ( 5-2) Perform the calculation of XK+α=T5. Here, α is 1 when the own station receives the common polling C21 or the slave station with higher priority receives the response from the master station C8.
This is the time required to confirm what has been said, and K is the margin time to ensure that the responses from the terminal that is down do not overlap. Both α and - have variable values depending on the system.

第4図(b)に示すように従局TS2はダウン復帰して
いないので共通ポーリングC2の受信後、T2=αの時
間が経過して自局の応答時間L2に達しても、復帰応答
しないが、従局TS5はダウン復帰しているので、共通
ポーリングC2の受信後T5の時間が経過して自局の応
答時間に達すると第4図((1)に示すように復帰応答
を主局C8に送出する。
As shown in FIG. 4(b), the slave station TS2 has not returned from being down, so even after the time T2=α has elapsed and the own station's response time L2 has been reached after receiving the common polling C2, it does not respond to the return response. , the slave station TS5 has recovered from being down, so when the time T5 has passed after receiving the common polling C2 and the own station's response time has been reached, it sends a recovery response to the master station C8 as shown in Figure 4 ((1)). Send.

主局CSは従局TS5よυの復帰応答を受信すると9次
のポーリングループから従局TS5用の正規ポーリング
N5を挿入する。その状態を第5図に示している。従局
TS5は復帰後の正規ポーリングN5′f:受信すると
その後共通ポーリングへ゛の応答資格を失う。
When the master station CS receives the return response from the slave station TS5, it inserts a regular poll N5 for the slave station TS5 from the ninth polling loop. The state is shown in FIG. When slave station TS5 receives regular polling N5'f: after returning, it loses the qualification to respond to common polling.

第3図の例において、従局TS2.TS5がともに共通
ポーリングC2の送出前に復帰した場合の処理方法を第
6図に示すタイムチャートを参照して説明する。
In the example of FIG. 3, slave station TS2. A processing method when both TS5 return before sending the common polling C2 will be explained with reference to the time chart shown in FIG.

従局TS2.TS5はいずれも共通ポーリングC2を受
信するとそれぞれ自局の応答時間α、T5を算出して待
機する。そして共通ポーリングC2受信後時間αが経過
すると従局TS2は復帰応答を主局C8に送出する〔第
6図(b)参照〕。一方従局TS5は従局TS2の復帰
応答を受信すると自局の応答時間も5で予定していた復
帰応答の送出を中断し〔第6図(c)参照〕次回以降の
共通ボーリングが送出されて来るまで待機する。主局C
8は従局TS2よシの復帰応答を受信すると予定してい
た正規ポーリングN1までの待時間をキャン七ルして直
ちに正規ポーリングN1に移行するとともに正規ポーリ
ング列に従局TS2用の正規ポーリングN2を挿入する
Slave station TS2. When each TS5 receives the common polling C2, it calculates its own response time α, T5, and waits. Then, when time α has elapsed after receiving the common polling C2, the slave station TS2 sends a return response to the master station C8 [see FIG. 6(b)]. On the other hand, when the slave station TS5 receives the return response from the slave station TS2, it interrupts sending the scheduled return response when its own response time is 5 [see Fig. 6(c)], and the next common boring is sent. Wait until. Main station C
Upon receiving the return response from slave station TS2, 8 cancels the scheduled wait time until regular polling N1, immediately shifts to regular polling N1, and inserts regular polling N2 for slave station TS2 into the regular polling queue. do.

なお」二記説明では従局TS2とTS5がダウンした場
島を想定し、これら従局の正規ポーリングよりの除外と
、復帰時の共通ポーリングに対する復帰応答で、復帰し
た従局の正規ポーリング列への再挿入について説明した
が、さらに他の多くの従局がダウンしまた復帰する場合
も同様の処理がなされる。この場合、同時に複数の従局
が復帰した場合には上記したように応答時間割当の早い
もの(優先順位大)から順次正規ポーリング列に挿入さ
れてゆくことになシ、順位の低い従局は以降の共通ポー
リングの到来まで待機する。
In addition, in the explanation in section 2, we assume a case where slave stations TS2 and TS5 are down, and we will exclude these slave stations from regular polling, and reinsert the restored slave stations into the regular polling queue in response to the common polling upon recovery. However, similar processing is performed even when many other slave stations go down and then come back up again. In this case, if multiple slave stations return at the same time, they will be inserted into the regular polling queue in order from the one with the quickest response time allocation (highest priority) as described above, and the slave stations with lower ranks will be inserted into the regular polling queue in order. Wait until common polling arrives.

上記した正常ポーリングよりの除外及び復帰応答による
正規ポーリングへの再挿入のさらに具体的〃動作を第7
図に示す主局C8の制御フロー。
More specific operations of the above-mentioned exclusion from normal polling and reinsertion into normal polling by return response are explained in the seventh section.
The control flow of the main station C8 shown in the figure.

第8図に示す従局TSI・TS2・・・・・TSnの制
御フローを参照して説明する。
This will be explained with reference to the control flow of slave stations TSI, TS2, . . . TSn shown in FIG.

第7図に示すように主局C8は電源オンまたはリセット
による動作スタートで先ずイニシャライズ処理を行なう
(ステップ5TI)。すなわち全接続端末(全従局)の
ポーリング起動フラグをセットし、第1の従局TS1の
アドレスをポーリングアドレスエリアにセットする。な
おポーリング起動フラグやポーリングアドレスエリアは
主局C8の処理装置に内蔵されるメモリに配置されてい
る。
As shown in FIG. 7, the main station C8 first performs initialization processing when the power is turned on or the operation is started by resetting (step 5TI). That is, the polling activation flags of all connected terminals (all slave stations) are set, and the address of the first slave station TS1 is set in the polling address area. Note that the polling activation flag and polling address area are arranged in a memory built in the processing device of the main station C8.

ST1のイニシャライズに続いて先ス従局TS1に対し
正規ポーリングN1の送出を行ない(ST2)、従局T
S1からの応答の有無を判定する(ST3 )。そして
応答があれば正常処理、すなわち無データ応答を受信す
るか、送出データを受信する(ST4 )。続いて対象
全従局へのポーリングが終了したか判定するが(ST5
)、当初は判定NOであシボ−リングアドレスを更新す
る(ST6)。
Following the initialization of ST1, normal polling N1 is sent to the previous slave station TS1 (ST2), and the slave station T
It is determined whether there is a response from S1 (ST3). If there is a response, normal processing is performed, that is, a no-data response is received or sent data is received (ST4). Next, it is determined whether polling of all target slave stations has been completed (ST5).
), the decision is NO at first and the symbolic address is updated (ST6).

そして更新されたアドレスの従局に対して正規ポーリン
グを送出する。正規ポーリングに対する応答がある限り
、ポーリングアドレスを更新しつつ。
Then, regular polling is sent to the slave station with the updated address. While updating the polling address as long as there is a response to the regular poll.

ST2→STろ−→5T4−→5T5−→ST6→ST
2の処理を繰り返す。
ST2→STro-→5T4-→5T5-→ST6→ST
Repeat process 2.

もしST3で従局よシの応答が゛ない場合はその端末は
ダウンしているとして、このアドレスに相当するポーリ
ング起動フラグをリセットし、ポーリング対象から切離
し処理を行なう。すなわちその従局を正規ポーリングか
ら除外する(ST7 )。
If there is no response from the slave station in ST3, the terminal is assumed to be down, the polling start flag corresponding to this address is reset, and the terminal is separated from the polling target. That is, the slave station is excluded from regular polling (ST7).

その後、ポーリングアドレスを更新して(ST6 )次
の従局の正規ポーリングに移行する。
Thereafter, the polling address is updated (ST6) and the process moves to regular polling of the next slave station.

以上のようにして対象全従局に列する正規ポーリングが
終了するとポーリング起動フラグを参照してダウン中の
端末があるか否か判定する(ST8)。
When the regular polling of all target slave stations is completed as described above, it is determined whether or not there is a terminal that is down by referring to the polling start flag (ST8).

ここでダウンしている端末がなければ、ST6のポーリ
ングアドレス更新を経てST2にもどり次の正規ポーリ
ングループの動作に移る。一方ST8でダウン端末がも
し1台でもあれば、ダウンしている端末のうち最も優先
順位の高いアドレスを起点アドレスとしてポーリングア
ドレスエリアに  ゛セットしダウン中のもので応答優
先順位の最下位のアドレスまでの復帰応答時間を計算し
て、共通ポーリングを送出する(ST9 )。共通ポー
リングの送出に対しダウン端末の従局のいずれからも復
帰応答がない場合(STIO)はポーリングアドレスエ
リアに9次ポーリングループの開始アドレスをセラl−
L、 (ST12) 、 S T 2にもどり次の正規
ポーリングループの動作に移る。
If there is no terminal that is down, the process returns to ST2 after updating the polling address in ST6 and moves on to the operation of the next regular polling loop. On the other hand, if there is even one down terminal in ST8, the address with the highest priority among the down terminals is set as the starting address in the polling address area, and the address with the lowest response priority among the down terminals is set. The return response time is calculated and a common poll is sent out (ST9). If there is no return response from any of the slave stations of the down terminal in response to the common polling (STIO), the start address of the 9th polling loop is set in the polling address area.
L, (ST12) Return to ST2 and proceed to the operation of the next regular polling loop.

5TIOで復帰応答があると応答のあった端末に十目当
するポーリング起動フラグをセットすることによシ復帰
処理を施しく5T11)、 ST12を経てST2にも
どシ次の正規ポーリングループの動作に移る。
When there is a return response at 5TIO, the return processing is performed by setting the polling start flag for the terminal that received the response (5T11), and the process returns to ST2 via ST12, and the next normal polling loop operation begins. Move.

一方各従局TS1・TS2・・・・・TSnは電源オン
またはリセットによる動作スタートで、レディフラグを
リセットしイニシャル状態を記憶する(ST21)。な
おレディフラグは各従局の処理装置に内蔵されるメモリ
に配されている。レディフラグのリーセット後、ポーリ
ングデータを受信したかを判定しく5T22)、ポーリ
ング受信であればレディフラグがオンしているか否か判
定する(ST23)。
On the other hand, each slave station TS1, TS2, . . . TSn resets the ready flag and stores the initial state when the power is turned on or the operation is started by reset (ST21). Note that the ready flag is stored in the memory built in the processing device of each slave station. After resetting the ready flag, it is determined whether polling data has been received (5T22), and if it is polling reception, it is determined whether the ready flag is on (ST23).

レディフラグがリセットされておジオンしていなければ
、ポーリング受信はイニシャル状)線における受信であ
ることを意味し、続いてそのポーリング受信が正規ポー
リングか共通ポーリングか判定する(ST24)。正規
ポーリング受信であれば、レディフラグをセット(ST
25)L、正規ポーリンクに対する応答処理(データ無
の応答またはデータ送出応答) L(ST26) 、 
S T 22にもどり次のポーリング受信まで待機する
If the ready flag is reset and is not turned on, it means that the polling reception is reception on the initial (initial) line, and then it is determined whether the polling reception is regular polling or common polling (ST24). If it is a regular polling reception, set the ready flag (ST
25) L, response processing to regular poll link (response with no data or data sending response) L (ST26),
It returns to ST 22 and waits until the next polling reception.

ST24で共通ポーリング受信であれば、タウン状態か
ら動作可能のイニシャル状rBに戻っていることを意味
し共通ポーリング中の最優先応答従局アドレスと自局の
アドレスから自局の応答時間を計算し、タイマを起動す
る(ST27)。そして自局の応答時間が来るまで優先
度の高い他局から復帰応答が送出されないかを監現する
。タイマがタイムアツプするまでに、すなわち自局の応
答時間が来るまでに他局の復帰応答を検知するとタイマ
をリセットして(ST28 、5T29)、 S T 
2にもとシ。
If it is a common polling reception in ST24, it means that the state has returned from the town state to the initial state rB which is ready for operation.The response time of the own station is calculated from the highest priority response slave station address during common polling and the address of the own station, Start the timer (ST27). Then, it monitors whether a return response is sent from another station with a higher priority until the response time of its own station is reached. If a return response from another station is detected before the timer times up, that is, before the own station's response time comes, the timer is reset (ST28, 5T29), and ST
2 to Motoshi.

次の共通ポーリングの到来まで待機する。他局が復帰応
答を送出する以前に自局の応答時間が到来すると復帰応
答を主局CSに送出する(ST30)。
Wait until the next common poll arrives. If the own station's response time arrives before the other station sends a return response, it sends a return response to the main station CS (ST30).

なお上記した実施例は2線式の場合について説明しだが
、伝送路が4線式であり送信ラインと受1言ラインが分
かれている場合は復帰応答を受信した主局は、その旨を
従局側に応答として送信することにより応答順位が下位
の復帰端末はこれを受信して予定していた自己の復帰応
答を放棄できる。
Although the above embodiment describes the case of a two-wire system, if the transmission line is a four-wire system and the transmitting line and receiving line are separated, the master station that receives the return response will send a message to that effect to the slave station. By transmitting this as a response to the return terminal, a returning terminal with a lower response order can receive this and abandon its own scheduled return response.

以上のようにこの発明のポーリング伝送方式によれば、
従局がダウンした場合に正規ポーリングから切離すよう
にしているので、正規ポーリングループを短縮できると
ともに従局のダウンがある場合には、共通ポーリングを
送出してダウンから復帰した従局に対し復帰応答を主局
に送出する機会を与え、この復帰応答を受けだ主局は、
゛その従局を正規ポーリングに再挿入するようにしてい
るので、主局は従局の復帰を自動的に検知でき、復帰処
理に人間の介在が不要であり、システムの信頼性を向上
し得るとともに自動化率も高めることができる。
As described above, according to the polling transmission method of the present invention,
If a slave station goes down, it is disconnected from regular polling, so the regular polling loop can be shortened, and if a slave station goes down, it sends common polling and sends a return response to the slave station that returns from down. The main station, which gives the station an opportunity to send, and receives this return response,
゛Since the slave station is reinserted into regular polling, the master station can automatically detect the return of the slave station, and no human intervention is required for the return process, which improves system reliability and facilitates automation. rate can also be increased.

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

第1図はとの発明が実施されるシステムの概略ブロック
図、第2図は第1図に示すシステムで。 全従局が正常な場合のポーリングタイムチャート。 第6図は第1図に示すシステムで一部従局がダウンした
場合のポーリングタイムチャート例、第4図は第5図の
タイムチャート例において従局TS5が復帰した場合の
処理動作を説明するだめのタイムチャート、第5図は従
局TS5が復帰した後のポーリングタイムチャート、第
6図は第5図のポーリングタイムチャート例において従
局TS2・TS5が復帰した場合の処理動作を説明する
ためC8:主局、  TSl ・TS2−・−TSn 
:従局。 Ll:下り伝送路、 L2:上部伝送路。 特許出願人     立石電機株式会社代理人  弁理
士  中 村 茂 信 第1図 q 第4図 第5図
Fig. 1 is a schematic block diagram of a system in which the invention is implemented, and Fig. 2 shows the system shown in Fig. 1. Polling time chart when all slave stations are normal. FIG. 6 is an example of a polling time chart in the system shown in FIG. 1 when some of the slave stations go down, and FIG. Time chart, FIG. 5 is a polling time chart after the slave station TS5 returns, and FIG. 6 is a time chart for explaining the processing operation when slave stations TS2 and TS5 return in the polling time chart example of FIG. 5. ,TSl・TS2−・−TSn
:Subordinate. Ll: Downward transmission line, L2: Upper transmission line. Patent Applicant Tateishi Electric Co., Ltd. Agent Patent Attorney Shigeru Nakamura Figure 1 q Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] (1)主局から複数の従局にポーリングを行ない。 従局よりの応答を受けて主局と従局間のデータ授受を行
なうポーリング伝送方式において。 主局より各従局あて個別のアドレスを含む正規ポーリン
グを順次送出し、各従局よシ応答がなければその従局を
ダウン端末として正規ポーリングから切離すとともに、
無応答の従局があれば前記正規ポーリングに後続し、最
優先応答順位を付置する無応答従局アドレスを含む共通
ポ→リングを送出し、最優先応答順位が付置される無応
答従局以降の従局に共通ポーリング受信後の応答時間を
時分割的に割当て、各無応答従局はダウンより復帰して
111記共通計−リングを受信すると、この共通ポーリ
ングに含まれる従局アドレスと自局アドレスとにより自
局の送信時間を算出し、この送信時間に達すると、自局
よりも以mJに他局が送信していない場きに前記主局に
復帰応答を送出し、この復帰応答を受けた主局は前記復
帰応答送出の従局を前記正規ポーリング中に復帰させる
ことを特徴とするポーリング伝送方式。
(1) Polling is performed from the master station to multiple slave stations. In a polling transmission method in which data is exchanged between a master station and a slave station upon receiving a response from the slave station. The master station sequentially sends regular polling containing individual addresses to each slave station, and if there is no response from each slave station, that slave station is marked as a down terminal and separated from the regular polling,
If there is a non-responsive slave station, following the regular polling, a common poll including the non-responsive slave station address to which the highest priority response order is attached is sent, and to the slave stations after the non-response slave station to which the highest priority response order is assigned. The response time after receiving the common polling is allocated in a time-division manner, and when each non-responsive slave station recovers from a down state and receives the 111 common total ring, it uses the slave station address included in this common polling and its own station address. When this transmission time is reached, a return response is sent to the main station when no other station has transmitted within mJ than the own station, and the main station that receives this return response A polling transmission system characterized in that the slave station that sent the return response is returned during the regular polling.
JP57096560A 1982-06-05 1982-06-05 Method for transmitting polling Pending JPS58213548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57096560A JPS58213548A (en) 1982-06-05 1982-06-05 Method for transmitting polling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57096560A JPS58213548A (en) 1982-06-05 1982-06-05 Method for transmitting polling

Publications (1)

Publication Number Publication Date
JPS58213548A true JPS58213548A (en) 1983-12-12

Family

ID=14168426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57096560A Pending JPS58213548A (en) 1982-06-05 1982-06-05 Method for transmitting polling

Country Status (1)

Country Link
JP (1) JPS58213548A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62208737A (en) * 1986-03-08 1987-09-14 Honda Motor Co Ltd Operating state decision method in multiplex communication system
JPH0219045A (en) * 1988-07-07 1990-01-23 Fujitsu Ltd Data transfer system
JPH0248841A (en) * 1988-08-10 1990-02-19 Omron Tateisi Electron Co Transmission right control system in bus type lan
JPH02182051A (en) * 1989-01-06 1990-07-16 Matsushita Electric Ind Co Ltd Communication abnormality detector
JPH04139936A (en) * 1990-10-01 1992-05-13 Matsushita Electric Ind Co Ltd Polling transmission control method
JPH06164601A (en) * 1992-11-20 1994-06-10 Nec Corp Packet communication system
EP0742659A2 (en) * 1995-05-11 1996-11-13 Nec Corporation Multiple access system and method for multiple access

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62208737A (en) * 1986-03-08 1987-09-14 Honda Motor Co Ltd Operating state decision method in multiplex communication system
JPH0720105B2 (en) * 1986-03-08 1995-03-06 本田技研工業株式会社 Method for determining operating state in multiple communication system
JPH0219045A (en) * 1988-07-07 1990-01-23 Fujitsu Ltd Data transfer system
JPH0773271B2 (en) * 1988-07-07 1995-08-02 富士通株式会社 Data transfer method
JPH0248841A (en) * 1988-08-10 1990-02-19 Omron Tateisi Electron Co Transmission right control system in bus type lan
JPH02182051A (en) * 1989-01-06 1990-07-16 Matsushita Electric Ind Co Ltd Communication abnormality detector
JPH0775348B2 (en) * 1989-01-06 1995-08-09 松下電器産業株式会社 Communication error detection device
JPH04139936A (en) * 1990-10-01 1992-05-13 Matsushita Electric Ind Co Ltd Polling transmission control method
JPH06164601A (en) * 1992-11-20 1994-06-10 Nec Corp Packet communication system
EP0742659A2 (en) * 1995-05-11 1996-11-13 Nec Corporation Multiple access system and method for multiple access
EP0742659A3 (en) * 1995-05-11 1998-07-29 Nec Corporation Multiple access system and method for multiple access

Similar Documents

Publication Publication Date Title
EP0123507B1 (en) Data communication system and apparatus
CN103516571B (en) A kind of dual CAN bus ensures system architecture and the method thereof of data communication reliability
US4177450A (en) Process and method to initiate a receiving and transmitting station linked by a connecting channel of an information exchange system consisting of several transmitting and receiving stations
EP0100662A2 (en) Digital communication system
EP0050451B1 (en) Alarm data concentration and gathering system
JPH09181737A (en) Communication method for small scale network
CN103281261A (en) Ethernet communication method and Ethernet communication system
JPS58213548A (en) Method for transmitting polling
US4754480A (en) Circuit arrangement for telecommunication switching systems connected to line concentrator sub-exchanges by connecting channels
CN109194555B (en) Improved bus scheduling system of small satellite data transmission subsystem
JPH06101732B2 (en) Communication control method
CN108833056B (en) Encoding method for priority communication of two fire-fighting buses
CN1555622B (en) Method and device for producing program interruptions in subscribers to a bus system, and corresponding bus system
EP0364558B1 (en) Data communications system and method therefor
GB2178878A (en) Alarm system with priority override
JPS5945742A (en) Polling transmission system
US4807226A (en) Secondary station operable in a data communication network like a primary station upon occurrence of a fault
CN110536467B (en) ZigBee networked industrial control system communication scheduling method and coordinator thereof
CN109586978B (en) Bus topology network ad hoc network method
JPH11177550A (en) Monitor system for network
JP4594825B2 (en) Electric switchgear control system
JPH07312613A (en) Communication system
JP2964187B2 (en) Data transmission control method
JP2004080132A (en) Synchronization-detecting method for communication
JP2000004246A (en) Supervisory and control method for communication equipment