JPH01183237A - Data link establishment method - Google Patents
Data link establishment methodInfo
- Publication number
- JPH01183237A JPH01183237A JP63007690A JP769088A JPH01183237A JP H01183237 A JPH01183237 A JP H01183237A JP 63007690 A JP63007690 A JP 63007690A JP 769088 A JP769088 A JP 769088A JP H01183237 A JPH01183237 A JP H01183237A
- Authority
- JP
- Japan
- Prior art keywords
- station
- time
- slave
- slave station
- timer
- 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
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本発明は1つの主局が複数の従局を順次指定して、この
指定のつど当該の従局とデータ交信を行ういわゆるポー
リング方式のデータ伝送システムにおいて、故障、電源
断等の事由により、データリンクから外れていた従局と
主局とのデータリンクを再確立する方法に関するもので
、
特に交信不能状態にあった従局が交信可能状態に戻った
とき自動的にデータリンクを確立でき、かつこの従局が
交信不能の状態にある間も短時間に全体のポーリングを
終了することができるようにしたデータリンク確立方法
に関する。The present invention is applied to a so-called polling data transmission system in which one master station sequentially designates a plurality of slave stations and communicates data with each slave station each time the master station designates a plurality of slave stations. This relates to a method for re-establishing a data link between a slave station and a master station that had been disconnected.In particular, it is possible to automatically establish a data link when a slave station that has been unable to communicate returns to a state in which communication is possible, and that this slave station can The present invention relates to a data link establishment method that allows the entire polling to be completed in a short time even when the data link is in a disabled state.
この種のデータリンク確立方法としては、データリンク
が確立できなかった。もしくは確立できなくなった従局
に対しても正常な従局と同じ方法でポーリングを継続す
る方法■や、 ′また、別の方法として一旦無応答で
あった従局をポーリング対象から除外し、その従局が交
信可能な状態に復帰した場合に、主局に人手を介してそ
の旨をキー人力等で伝達して、その従局に対するポーリ
ングを再開させることによりデータリンクを再確立する
方法■などが知られている。With this type of data link establishment method, a data link could not be established. Another method is to continue polling for a slave station that cannot be established in the same way as for a normal slave station.Another method is to exclude a slave station that has not responded from the polling target and to allow that slave station to communicate. There is a known method for re-establishing a data link by manually transmitting a message to the master station using a key or the like when the state returns to a possible state, and restarting polling for the slave station. .
しかしながら前記の方法■によれば、従局が交信可能な
状態に復帰した場合には自動的にデータリンクが確立す
るが、無応答と判定する迄の時間が長い場合に依然とし
て交信不可能な状態が継続している場合には、その判定
に時間がかかり、従局全体に対するポーリングを終了す
る迄に長時間を要してしまいデータ収集効率が悪くなる
という問題点がある。
また前記の方法■では、当該の従局に対するポーリング
の除外から再開に至るまでの各種の作業が面倒であり、
特に主局と従局との間が遠く離れている場合には不便で
あるという問題点がある。
そこで本発明の目的は、主局によるポーリングの際、従
局が無応答状態になったものと主局が判定する迄の無応
答タイマの設定タイマ時間を、−旦無応答と判定した従
局に対しては、この従局が交信可能な状態に復帰しない
限り、より短い設定タイマ時間とするデータリンク確立
方法を提供することにより、上述のような問題点を解決
し、当該の従局が交信可能状態に復帰した場合には自動
的にデータリンクを確立すると共に、交信不可能な期間
中も短時間で全体のポーリングを終了することが可能な
ようにすることにある。However, according to method (2) above, when the slave station returns to a communicable state, a data link is automatically established, but if it takes a long time to determine that there is no response, the communicable state remains. If the polling continues, it takes time to make the determination, and it takes a long time to finish polling all the slave stations, resulting in poor data collection efficiency. In addition, in the method (2) described above, various tasks from excluding polling to restarting polling for the slave station in question are troublesome.
There is a problem in that it is particularly inconvenient when the master station and slave station are far apart. Therefore, an object of the present invention is to set the timer time of the no-response timer until the master station determines that the slave station has become unresponsive during polling by the master station. In this case, the problem described above is solved by providing a data link establishment method that sets a shorter timer time unless the slave station returns to a state where communication is possible. The purpose is to automatically establish a data link when the device returns, and also to be able to complete the entire polling in a short time even during a period when communication is not possible.
前記の目的を達成するために、本発明の方法は、r主局
(1など)と複数の従局(2など)とからなり、前記主
局は前記従局を所定の順番で順次指定する動作を繰返し
、この指定のつど当該の従局とデータ交信を行うデータ
伝送システムであって、前記主局による前記指定ののち
、当該の従局が第1の期間(タイマ時間TLなと)内に
前記主局へ応答を行わないときは、前記主局は当該従局
を無応答局であると判定して、当該従局の次番に位する
従局との前記のデータ交信へ移行するようにしたデータ
伝送システムにおいて、
前記主局が次回以降、前記無応答局へ前記指定を行った
のち当該無応答局が前記第1の期間より短い第2の期間
(タイマ時間TSなど)以内に前記主局へ応答を行わな
いかぎり、前記主局は再び当該従局を無応答局であると
判定して、当該従局の次番に位する従局との前記のデー
タ交信に移行するように」するものとする。In order to achieve the above object, the method of the present invention comprises an r main station (such as 1) and a plurality of slave stations (such as 2), and the master station performs an operation of sequentially specifying the slave stations in a predetermined order. The data transmission system repeatedly performs data communication with the relevant slave station each time this designation is made, wherein after the designation by the master station, the relevant slave station communicates with the master station within a first period (such as timer time TL). In the data transmission system, when the master station does not respond to the slave station, the master station determines the slave station to be a non-responsive station, and shifts to the data communication with the slave station next to the slave station. , From the next time onwards, after the main station specifies the non-responsive station, the non-responsive station responds to the main station within a second period (timer time TS, etc.) that is shorter than the first period. Unless otherwise specified, the master station shall again determine the slave station to be a non-responsive station and proceed to the data communication with the slave station next to the slave station.
この発明は、既にデータリンクの確立している従局に対
しては必要な所定の無応答タイマのタイマ時間を設定し
てポーリングし、データリンクから外れている従局に対
してはより短時間の無応答タイマのタイマ時間を設定し
てポーリングし、応答の有無を短時間の内に確認するも
のである。This invention polls slave stations with which a data link has already been established by setting a necessary predetermined no-response timer time, and polls slave stations that are disconnected from the data link for a shorter time. The timer time of the response timer is set and polling is performed to confirm the presence or absence of a response within a short period of time.
次に第1図および第2図を用いて本発明の詳細な説明す
る。第1図は、本発明の対象とするデータ送信システム
の一例を示す。主局1には予め従局2 (2−1,〜、
2−n)に対してポーリングするように、システムの構
成が登録されているものとする。また主局1内には、主
局1からのポーリングに対して従局2からの応答の有無
を判定するための無応答タイマ3の設定タイマ時間とし
て、正常な従局2に対して用いられる。より長時間(例
えば数100111s〜数5ec)のタイマ時間TLと
、何らかの事由により前回のポーリングに対して無応答
であった従局2に対して用いられる短時間(例えば数瓢
〜数10m5)のタイマ時間TSとが設定されている。
第2図は第1図における主局1の要部動作を示すフロー
チャートである。同図を説明すると、主局1は先ずポー
リングの対象とすべき従局2の番号iを1と指定したの
ち(ステップ11)、当該の(番号iの)従局2が前回
無応答でなければ(ステップ122分岐N)、無応答タ
イマ3のタイマ時間をTLにセットしくステップ13)
、他方無応答であれば(ステップ121分岐Y)、無応
答タイマ3のタイマ時間を前記TLより短いTSにセッ
トする(ステップ14)。
そして当該の従局2へのポーリング動作、即ちこの従局
2についてのアドレス(番号i)を指定する信号と、デ
ータ伝送を開始すべき旨のコマンドとの送信動作を行う
(ステップ15)。
次に前記の無応答タイマ3について設定されたタイマ時
間TLまたはTSの経過前に、当該従局 ・2の応答が
あり、データ伝送が行われると(ステップ161分岐Y
)、そのデータ処理を行ったのち(ステップ17)、当
該の従局2は正常であると記憶し直す。従って当該の従
局2が前回無応答であったときはその無応答の記憶をク
リヤする(ステップ18)。
しかし前記ステップ16においてタイマ時間TLまたは
TSの経過後も当該の従局の応答がなければ(分岐N)
、当該の従局2は無応答6であると記憶し直す(ステッ
プ19)。
そして従局2の番号iをインクリメントして(ステップ
20)、番号iがn+1に達するまでは、換言すれば番
号nまでの全ての従局2についてのポーリングを終了す
るまでは(ステップ213分岐N)、ステップ12に戻
り、次の番号iの従局2に対して前記の一連の動作を繰
返す。
このようにして番号nまでの従局2に対するポーリング
を終了すると(ステップ212分岐Y)、全回分の全て
のポーリング動作が終了したものとして図外の手順へ進
む。
そして所定の条件が満たされるたびに、次回以降も前記
のステップ11からのポーリング動作が繰返される。Next, the present invention will be explained in detail using FIGS. 1 and 2. FIG. 1 shows an example of a data transmission system to which the present invention is applied. Master station 1 has slave station 2 (2-1, ~,
It is assumed that the system configuration is registered to poll 2-n). Further, in the master station 1, the timer is used for a normal slave station 2 as a set timer time of a non-response timer 3 for determining whether there is a response from the slave station 2 in response to polling from the master station 1. A timer time TL with a longer time (e.g., several 100111 seconds to several 5 ec) and a timer with a shorter time (e.g., several seconds to several tens of m5) used for slave station 2 that did not respond to the previous polling for some reason. A time TS is set. FIG. 2 is a flowchart showing the main operations of the main station 1 in FIG. To explain the figure, the master station 1 first specifies the number i of the slave station 2 to be polled as 1 (step 11), and then if the slave station 2 (with the number i) did not respond last time ( Step 122 branch N), set the timer time of no-response timer 3 to TL.Step 13)
, on the other hand, if there is no response (step 121 branch Y), the timer time of the no-response timer 3 is set to a TS shorter than the TL (step 14). Then, a polling operation to the slave station 2 is performed, that is, a signal specifying the address (number i) for the slave station 2 and a command to start data transmission are transmitted (step 15). Next, before the timer time TL or TS set for the non-response timer 3 elapses, there is a response from the slave station ・2 and data transmission is performed (step 161 branch Y
), and after processing the data (step 17), the relevant slave station 2 is re-memorized as being normal. Therefore, when the relevant slave station 2 did not respond last time, the memory of the non-response is cleared (step 18). However, in step 16, if there is no response from the slave station after the timer time TL or TS has elapsed (branch N).
, the relevant slave station 2 is re-memorized as being non-responsive 6 (step 19). Then, the number i of the slave station 2 is incremented (step 20) until the number i reaches n+1, in other words, until the polling for all slave stations 2 up to number n is finished (step 213 branch N). Returning to step 12, the above series of operations is repeated for the next slave station 2 with number i. When polling for slave stations 2 up to number n is completed in this way (step 212 branch Y), it is assumed that all polling operations have been completed and the process proceeds to a procedure not shown. Each time a predetermined condition is met, the polling operation from step 11 is repeated from next time onwards.
本発明によれば主局が従局を順次ポーリングする際、従
局を無応答であると判定する無応答タイマのタイマ時間
を、前回無応答と判定されていない従局に対しては長時
間のTLに、また前回無応答と判定された従局に対して
はTLより短いTSに設定することとした。
このように正常な従局は、データ交信だけがその機能の
全てではなく、人の操作や、第2図では示してないが主
局からの動作指令にもとづいて制御動作を行っているの
が通例であり、タイマ時間TLとして比較的長い時間が
用いられるが、前回上無応答であった従局はそのような
制御動作は行っていないので、故障や電源断などの状況
から回復した場合には必ずデータ交信をするように待機
させておけば、タイマ時間TSとして極めて短い時間を
設定することが可能であり、データ伝送の効率を大きく
改善することができる。According to the present invention, when the master station sequentially polls the slave stations, the timer time of the no-response timer that determines the slave stations as non-responsive is set to a long TL for the slave stations that were not previously determined to be non-responsive. , and for slave stations that were previously determined to have received no response, the TS is set to be shorter than the TL. In this way, the function of a normal slave station is not limited to data communication; it usually performs control operations based on human operations or operation commands from the master station (not shown in Figure 2). Therefore, a relatively long time is used as the timer time TL, but since the slave station that did not respond last time did not perform such control operations, it is necessary to If the device is kept on standby for data communication, it is possible to set an extremely short time as the timer time TS, and the efficiency of data transmission can be greatly improved.
第1図は本発明の一実施例としてのシステム構成図、第
2図は同じく第1図の要部動作を説明するためのフロー
チャートである。
1:主局、2 (2−1,〜、 2−n) :従局
、3:無応答タイマ、TL、TS:タイマ時間。
届)
ノ
主局1
ヱ
オ 1 ―FIG. 1 is a system configuration diagram as an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation of the main part of FIG. 1. 1: Master station, 2 (2-1, ~, 2-n): Slave station, 3: No response timer, TL, TS: Timer time. (Notification) Main station 1 Eo 1 -
Claims (1)
を所定の順番で順次指定する動作を繰返し、この指定の
つど当該の従局とデータ交信を行うデータ伝送システム
であって、 前記主局による前記指定ののち、当該の従局が第1の期
間内に前記主局へ応答を行わないときは、前記主局は当
該従局を無応答局であると判定して、当該従局の次番に
位する従局との前記のデータ交信へ移行するようにした
データ伝送システムにおいて、 前記主局が次回以降、前記無応答局へ前記指定を行った
のち当該無応答局が前記第1の期間より短い第2の期間
以内に前記主局へ応答を行わないかぎり、前記主局は再
び当該従局を無応答局であると判定して、当該従局の次
番に位する従局との前記のデータ交信に移行するように
したことを特徴とするデータリンク確立方法。[Claims] 1) A data transmission system comprising a main station and a plurality of slave stations, wherein the master station repeats an operation of sequentially designating the slave stations in a predetermined order, and each time the master station performs data communication with the corresponding slave station. In the system, if the slave station does not respond to the master station within a first period after the designation by the master station, the master station determines the slave station to be a non-responsive station. In a data transmission system in which the master station shifts to the data communication with the slave station next to the slave station, from the next time onwards, after the master station makes the above designation to the non-responsive station, does not respond to the master station within a second period shorter than the first period, the master station again determines the slave station to be a non-responsive station and ranks it next to the slave station. A method for establishing a data link, characterized in that the data communication is shifted to the above-mentioned data communication with a slave station.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63007690A JPH01183237A (en) | 1988-01-18 | 1988-01-18 | Data link establishment method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63007690A JPH01183237A (en) | 1988-01-18 | 1988-01-18 | Data link establishment method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01183237A true JPH01183237A (en) | 1989-07-21 |
Family
ID=11672776
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63007690A Pending JPH01183237A (en) | 1988-01-18 | 1988-01-18 | Data link establishment method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01183237A (en) |
-
1988
- 1988-01-18 JP JP63007690A patent/JPH01183237A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3619882B2 (en) | Duplex communication control method | |
| JP3241865B2 (en) | Multi-channel access wireless communication system and intermittent communication method thereof | |
| JPH0764472A (en) | Remote I / O system of programmable controller | |
| JP3076325B1 (en) | Broadcast Notification Confirmation System, Control Bureau Applicable to It, and Broadcast Notification Receipt Confirmation Method | |
| JP2604174Y2 (en) | Communication control device | |
| JPH10178680A (en) | Wireless paging system | |
| JPH07245598A (en) | Low speed frequency hopping method for radio communication system | |
| JP2954106B2 (en) | Starting method of mobile communication system | |
| JPH0993270A (en) | Data transmission system | |
| JPS6313385B2 (en) | ||
| JP2536215B2 (en) | Mobile communication system | |
| JPS5925499B2 (en) | Method for accelerating line organization on data highways | |
| CN119676871A (en) | A network reconnection method, device control method, electronic device and storage medium | |
| JPWO2024171973A5 (en) | COMMUNICATION METHOD, REPEATER NODE, PROGRAM, CHIP SET, SYSTEM, AND USER DEVICE | |
| JPH10320307A (en) | Remote I / O system | |
| JPH0662016A (en) | Data communication system | |
| JPH086615A (en) | Data linking method | |
| JPH05308369A (en) | Control station determination method for loop communication system | |
| JPH01241236A (en) | Control method for broadcast communication system | |
| JPH0362150A (en) | Communication control system | |
| JPS61144147A (en) | Local area network system | |
| JPH02154548A (en) | Transmission/reception load test method for online system | |
| JPH04233015A (en) | Time managing system for data transmitter | |
| JPH0126220B2 (en) | ||
| JP2005011285A (en) | Data transmission method for monitor control system |