JPH0442633A - Line control system - Google Patents

Line control system

Info

Publication number
JPH0442633A
JPH0442633A JP2148729A JP14872990A JPH0442633A JP H0442633 A JPH0442633 A JP H0442633A JP 2148729 A JP2148729 A JP 2148729A JP 14872990 A JP14872990 A JP 14872990A JP H0442633 A JPH0442633 A JP H0442633A
Authority
JP
Japan
Prior art keywords
station
polling
response
stations
transmission
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
JP2148729A
Other languages
Japanese (ja)
Inventor
Makoto Unosawa
誠 鵜之沢
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2148729A priority Critical patent/JPH0442633A/en
Publication of JPH0442633A publication Critical patent/JPH0442633A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To make the line control efficient by allowing a host station to collate a reply decision table deciding a frequency of reply of each subordinate station, and omitting the transmission of a polling signal to a subordinate station with a low frequency of reply tentatively so as to reduce the polling period in response to the number of subordinate stations whose transmission of the polling signal is omitted. CONSTITUTION:The system is provided with a reply decision table 12 in which a data representing the frequency of reply to save the number of times of no reply and the transmission of a polling signal to subordinate stations 3A - 3C whose frequency of reply is low is tentatively omitted. Thus, the subordinate stations 3A - 3C whose frequency of reply is high receive the polling signal in a short period substantially and the subordinate stations 3A - 3C whose frequency of reply is low receive the polling signal in a long period substantially. Thus, when the transmission of the polling signal is omitted, the polling period is reduced in response to the number of subordinate stations to which the transmission of the polling signal is omitted to make the line control efficient.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、上位局である中央処理装置等に対し、下位局
である複数の端末が接続されている場合のポーリング信
号制御に特徴がある回線制御システム関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention is characterized by polling signal control when a plurality of terminals, which are lower stations, are connected to a central processing unit, etc., which is an upper station. Regarding line control systems.

(従来の技術) 上位局を中心として多数の下位局を接続し運用するシス
テムにおいては、各下位局の処理要求に応え回線制御を
行なうために、種々の方式が採用されている。グローバ
ルポーリング方式もその一種で、上位局が全ての下位局
に対しポーリング信号を送り、その応答を待って、処理
要求があるかどうかを調べる方式である。
(Prior Art) In a system in which a large number of lower stations are connected and operated around an upper station, various methods are employed to perform line control in response to processing requests from each lower station. The global polling method is one such method, in which an upper station sends a polling signal to all lower stations, waits for a response, and checks whether there is a processing request.

第2図に、このようなグローバルポーリング方式を採用
した従来の回線制御システム動作シーケンスチャートを
示す。
FIG. 2 shows an operation sequence chart of a conventional line control system that employs such a global polling method.

図において、上位局1は、通信回線2を介して複数の下
位局、例えばこの例では、3台の下位局3A、3B、3
Cに接続されている。上位局1は、各下位局から処理要
求があるか否かを調べるために、適当な周期でポーリン
グ信号の送出を行なう(第2図ステップ■)。各下位局
3A。
In the figure, an upper station 1 communicates with a plurality of lower stations via a communication line 2, for example, three lower stations 3A, 3B, 3 in this example.
Connected to C. The upper station 1 sends out a polling signal at appropriate intervals in order to check whether there is a processing request from each lower station (step 2 in FIG. 2). Each lower station 3A.

3B、3Cは、このポーリング信号を受取ると、処理要
求がある場合、上位局1に対し応答を行なう。尚、この
応答のタイミングは、例えば、下位局3Aについてはポ
ーリング信号受信後上1時間後、下位局3Bについては
ポーリング信号受信後上2時間後、下位局3Cについて
はポーリング信号受信後上3時間後に応答するよう、予
め設定されている。
Upon receiving this polling signal, 3B and 3C send a response to the upper station 1 if there is a processing request. The timing of this response is, for example, one hour after receiving the polling signal for lower station 3A, two hours after receiving the polling signal for lower station 3B, and three hours after receiving the polling signal for lower station 3C. It is preset to respond later.

このように、各下位局に対し固有の応答待ち時間tl、
t2.t3が設定されているのは、通信回線2上で、各
下位局3A、3B、3Cの応答が衝突しないようにする
ためである。
In this way, for each subordinate station, a unique response waiting time tl,
t2. The reason why t3 is set is to prevent the responses of the lower stations 3A, 3B, and 3C from colliding on the communication line 2.

上位局1は、各下位局3A、3B、3Cからの応答が入
力するのを待つ。
The upper station 1 waits for responses from the lower stations 3A, 3B, and 3C to be input.

図の例では、ステップ■、■、■に示すように、何れの
下位局からも応答が無い状態となっている。上位局1は
、下位局3A、3B、3Cに設定された応答待ち時間t
l、t2.t3のうちの、最大時間以上の時間Tだけ待
機し、再びポーリング信号の出力を行なう(ステップ■
)。
In the example shown in the figure, as shown in steps ■, ■, and ■, there is no response from any lower station. The upper station 1 waits for the response waiting time t set for the lower stations 3A, 3B, and 3C.
l, t2. Waits for time T, which is longer than the maximum time of t3, and outputs the polling signal again (step
).

ここで、例えば、下位局3Aからは応答がないが(ステ
ップ■)、下位局3Bから応答があった場合(ステップ
■)、上位局1は下位局3Bに対しデータ転送許可を出
力しくステップ■)、下位局3Bはそれに従って上位局
1に対しデータを転送する(ステップ■)。上位局1は
、データを受信すると、受信完了通知を下位局3Bに向
は送出する(ステップ0)。
Here, for example, if there is no response from the lower station 3A (step ■) but there is a response from the lower station 3B (step ■), the upper station 1 outputs data transfer permission to the lower station 3B. ), the lower station 3B transfers the data to the upper station 1 accordingly (step ■). When the upper station 1 receives the data, it sends a reception completion notification to the lower station 3B (step 0).

(発明が解決しようとする課題) ところで、上記のような従来の回線制御システムにおい
ては、上位局1は、常に予め設定された最大応答待ち時
間以上のポーリング周期Tで、ポーリング信号を繰返し
送出する必要がある。
(Problem to be Solved by the Invention) In the conventional line control system as described above, the upper station 1 repeatedly sends out a polling signal at a polling cycle T that is always longer than a preset maximum response waiting time. There is a need.

また、上記のような方式では、応答待ち時間t1〜t3
を短時間に設定した下位局程、優先的にデータ転送許可
を受けられる。従って、応答頻度の低い下位局に、短い
応答待ち時間を設定するのは無駄である。
Furthermore, in the above method, the response waiting time t1 to t3
Lower stations that have been set for a shorter time can receive data transfer permission preferentially. Therefore, it is wasteful to set a short response waiting time for lower-level stations that respond less frequently.

そこで、従来、下位局の応答頻度に応じた優先比較を行
ない、応答待ち時間を切替えるようにしていた。
Therefore, in the past, a priority comparison was performed according to the response frequency of the lower station, and the response waiting time was changed.

第3図に、そのような場合に用いられるポーリング信号
のフレームフォーマットを示す。
FIG. 3 shows a frame format of a polling signal used in such a case.

図のフレームは、先頭から順に、フラグ21、アドレス
22、制御部23、ステーションアドレス#124、ス
テーションアドレス#225、ステーションアドレス#
326、FCS27、フラグ28から構成されている。
The frame in the figure is, in order from the beginning, flag 21, address 22, control unit 23, station address #124, station address #225, station address #
326, FCS 27, and flag 28.

フラグ21は、このフレームがポーリング信号であるこ
とを示す識別符号等から成る。アドレス22は、相手先
アドレスを示すが、ポーリング信号の場合、全ての下位
局に対し送出されるものであるから、いわゆるグローバ
ルアドレスが設定される。制御部23は、送信側から受
信側に対する命令(コマンド)を格納する部分である。
The flag 21 consists of an identification code or the like indicating that this frame is a polling signal. The address 22 indicates the destination address, but in the case of a polling signal, it is sent to all lower stations, so a so-called global address is set. The control unit 23 is a part that stores instructions (commands) from the sending side to the receiving side.

ステーションアドレス24,25.26は、各下位局を
特定するためのアドレスで、例えば、ステーションアド
レス#1に下位局3Aのアドレスが格納されていた場合
、下位局3Aに対し、応答待ち時間t1が設定される。
Station addresses 24, 25, and 26 are addresses for identifying each lower station. For example, if the address of lower station 3A is stored in station address #1, the response waiting time t1 for lower station 3A is Set.

同様にステーションアドレス#2に下位局3Bのアドレ
スが格納されていた場合、下位局3Bの応答待ち時間は
t2、ステーションアドレス#3に下位局3Cのアドレ
スが格納されていた場合、応答待ち時間はt3となる。
Similarly, if the address of lower station 3B is stored in station address #2, the response waiting time of lower station 3B is t2, and if the address of lower station 3C is stored in station address #3, the response waiting time is t2. It becomes t3.

下位局の応答頻度に応じて、この順が変更される。This order is changed depending on the response frequency of the lower station.

FC527は、パリティピット等が格納された検査用の
領域である。フラグ28は、フレームの終了を示すスト
ップビット等が格納された領域である。
FC527 is an area for inspection in which parity pits and the like are stored. The flag 28 is an area in which a stop bit and the like indicating the end of a frame are stored.

尚、優先度を判定するために、次のようなデータを生成
する。
Note that in order to determine the priority, the following data is generated.

第5図は、優先比較テーブルの一例を示す。このテーブ
ルは、上位局1の図示いないメモリ等に格納される。
FIG. 5 shows an example of a priority comparison table. This table is stored in a memory (not shown) of the upper station 1.

第5図の優先比較テーブル40には、下位局3Aとの送
受信回数41、下位局3Bとの送受信回数42、下位局
3Cとの送受信回数43及び送受信回数クリア値44が
格納される。
The priority comparison table 40 in FIG. 5 stores the number of times of transmission and reception with the lower station 3A 41, the number of times of transmission and reception with the lower station 3B 42, the number of times of transmission and reception with the lower station 3C 43, and the number of times of transmission and reception clear value 44.

第5図に、従来システムの動作フローチャートを示す。FIG. 5 shows an operation flowchart of the conventional system.

図のように、先ず、上位局1が、下位局3A。As shown in the figure, first, the upper station 1 is the lower station 3A.

3B、3Cに対しポーリング信号を送出する(ステップ
Sl)。その後、上位局1は、タイマにより4m5ec
の間待機する(ステップS2)。尚、この例では、各下
位局の応答待ち時間は、時間t1は1 m5ec、 t
 2は2 m5ec、 t 3は3 m5ecと設定し
ている。
A polling signal is sent to 3B and 3C (step Sl). After that, the upper station 1 receives 4m5ec by the timer.
Wait for a while (step S2). In this example, the response waiting time of each lower station is 1 m5ec for time t1, t
2 is set to 2 m5ec, and t3 is set to 3 m5ec.

ここで、下位局より応答があったか否かが判断される(
ステップS3)。下位局から応答が無い場合には、再び
ポーリング信号の送出が行なわれる(ステップSl)。
Here, it is determined whether there is a response from the lower station (
Step S3). If there is no response from the lower station, the polling signal is sent again (step Sl).

一方、下位局から応答があった場合には、所定の通信処
理が実行され(ステップS4)、該当する送受信回数が
インクリメントされる(ステップS5)。即ち、例えば
、下位局3Bから応答があったような場合には、第5図
に示す優先比較テーブル40の下位局3Bとの送受信回
数42がインクリメントされる。
On the other hand, if there is a response from the lower station, a predetermined communication process is executed (step S4), and the corresponding number of times of transmission and reception is incremented (step S5). That is, for example, when there is a response from the lower station 3B, the number of times of transmission and reception with the lower station 3B in the priority comparison table 40 shown in FIG. 5 is incremented.

ここで、第5図ステップS6において、優先比較が行な
われる。即ち、優先比較テーブル40の下位局3Aとの
送受信回数41と、下位局3Bとの送受信回数42と、
下位局3Cとの送受信回数43を相互に比較し、最大値
を示すものをステーションアドレス#lに選定し、2番
目のものをステーション−アドレス#2に、3番目のも
のをステーションアドレス#3に選定する。これにより
、最も応答頻度の高い下位局程、応答が優先的に処理さ
れる。
Here, priority comparison is performed in step S6 in FIG. That is, the number of transmissions and receptions 41 with the lower station 3A in the priority comparison table 40, the number of transmissions and receptions with the lower station 3B 42,
The number of transmissions and receptions 43 with the lower station 3C is compared with each other, and the one showing the maximum value is selected as station address #l, the second one is set as station address #2, and the third one is set as station address #3. Select. As a result, responses are processed preferentially for lower-level stations that respond most frequently.

尚、送受信回数を無条件に積算すると、たとえ非常に応
答頻度の高い下位局であっても、装置自体の起動が、他
の下位局より相当時間遅れたような場合、送受信回数の
累積値を比較して優先度を定めると、なかなか最優先で
の処理が得られない、そこで、何れかの送受信回数が一
定値を越えた場合、全ての送受信回数を一旦ゼロクリア
し、改めて送受信回数の累積比較を行なうようにするこ
とが好ましい。
Note that if you integrate the number of transmissions and receptions unconditionally, even if it is a lower station with a very high response frequency, if the startup of the device itself is delayed by a considerable amount of time than other lower stations, the cumulative value of the number of transmissions and receptions will be calculated. If you compare and determine the priority, it is difficult to get the highest priority processing. Therefore, if the number of transmissions and receptions exceeds a certain value, all the number of transmissions and receptions are cleared to zero, and then the cumulative number of transmissions and receptions is compared again. It is preferable to do this.

この目的のために、第4図の優先比較テーブル40に、
送受信回数クリア値44を設定しておく。
For this purpose, the priority comparison table 40 of FIG.
A transmission/reception count clear value 44 is set in advance.

そして、第5図のフローチャートに示すように、ステッ
プS7において、送受信回数をクリアするか否かを判断
し、何れかの送受信回数が送受信回数クリア値を越えた
場合、ステップS8において、全ての送受信回数をゼロ
クリアするようにしている。
Then, as shown in the flowchart of FIG. 5, in step S7 it is determined whether or not to clear the number of transmissions and receptions, and if any number of transmissions and receptions exceeds the number of transmissions and receptions clear value, in step S8 all transmissions and receptions are cleared. I am trying to clear the number of times to zero.

しかしながら、上記のような方式においても、上位局1
0は、常に予め定められた一定の時間Tを周期としてポ
ーリング信号を送出することになり、全く使用されてい
ない下位局が存在するような場合に、時間的な無駄が生
じていた。
However, even in the above method, the upper station 1
0, a polling signal is always sent at a predetermined period T, which results in wasted time when there are lower stations that are not used at all.

本発明は以上の点に着目してなされたもので、応答頻度
の低い下位局に対しては、ポーリング信号の送出を一時
的に省略し、ポーリングの効率化を図った回線制御シス
テムを提供することを目的とするものである。
The present invention has been made with attention to the above points, and provides a line control system that improves the efficiency of polling by temporarily omitting the sending of polling signals to lower-order stations that respond less frequently. The purpose is to

(課題を解決するための手段) 本発明の回線制御システムは、上位局が複数の下位局に
対して同時にポーリング信号を送出し、各下位局は、そ
れぞれ予め設定された固有の応答待ち時間だけ待機後、
前記上位局に応答を行ない、上位局は、設定された最大
の前記応答待ち時間以上のポーリング周期で前記ポーリ
ング信号を繰返し送出するものにおいて、前記上位局は
、前記各下位局の応答頻度を判定する応答判定テーブル
と、この応答判定テーブルを参照して、応答頻度の低い
下位局へのポーリング信号の送出を一時的に省略し、か
つ、ポーリング信号の送出を省略した下位局数に応じて
、前記ポーリング周期を短縮するよう制御する応答制御
部とを備えたことを特徴とするものである。
(Means for Solving the Problems) In the line control system of the present invention, an upper station simultaneously sends polling signals to multiple lower stations, and each lower station waits for a preset unique response waiting time. After waiting,
The upper station responds to the upper station, and the upper station repeatedly sends the polling signal at a polling cycle longer than the maximum response waiting time set, and the upper station determines the response frequency of each of the lower stations. and the response determination table to temporarily omit sending polling signals to lower-order stations with low response frequency, and according to the number of lower-order stations for which sending of polling signals is omitted, The present invention is characterized by comprising a response control section that performs control to shorten the polling period.

(作用) 本発明のシステムは、未応答回数′を含む応答頻度を示
すデータを格納した応答判定テーブルを設け、応答頻度
の低い下位局へのポーリング信号の送出を一時的に省略
する。従って、応答頻度の高い下位局は実質的に短周期
で、応答頻度の低い下位局は長周期でポーリング信号を
受信することになる。この結果、ポーリング信号の送出
を省略した場合には、省略した下位局数に応じて、ポー
リング周期を短縮し効率化を図ることができる。
(Function) The system of the present invention provides a response determination table that stores data indicating response frequency including the number of non-responses, and temporarily omits sending polling signals to lower-order stations with low response frequency. Therefore, a lower station with a high response frequency receives a polling signal in a substantially short cycle, and a lower station with a low response frequency receives a polling signal in a long cycle. As a result, when the sending of polling signals is omitted, it is possible to shorten the polling cycle and improve efficiency according to the number of omitted lower-order stations.

(実施例) 以下、本発明を図の実施例を用いて詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail using embodiments shown in the drawings.

第1図は、本発明の回線制御システム実施例を示すシー
ケンスチャートである。
FIG. 1 is a sequence chart showing an embodiment of the line control system of the present invention.

尚、本発明のシステムにおいては、上位局が、第1図に
示すように応答制御部11と応答判定テーブル12とを
備えている。
In the system of the present invention, the upper station includes a response control section 11 and a response determination table 12, as shown in FIG.

第1図の動作説明を行なう前に、先ず、上位局10の応
答判定テーブル12の具体的内容を説明する。
Before explaining the operation of FIG. 1, first, the specific contents of the response determination table 12 of the upper station 10 will be explained.

第6図は、本発明のシステムにおける応答判定テーブル
内容説明図である。
FIG. 6 is an explanatory diagram of the contents of the response determination table in the system of the present invention.

この応答判定テーブル50は、上位局10に設けられた
図示しないメモリ等に格納される。
This response determination table 50 is stored in a memory (not shown) provided in the upper station 10.

図のように、応答判定テーブル50は、下位局3Aとの
送受信回数51、下位局3Bとの送受信回数52、下位
局3Cとの送受信回数53、下位局3Aの未応答回数5
4、回数下位局3Bの未応答回数55、下位局3Cの未
応答回数56、送受信回数クリア値57、スルーボール
移行値58、スルーボール送出回数59及びスルーボー
ルカウンタ60とから構成されている。
As shown in the figure, the response determination table 50 includes the number of times of transmission and reception with the lower station 3A 51, the number of times of transmission and reception with the lower station 3B 52, the number of times of transmission and reception with the lower station 3C 53, and the number of unresponses from the lower station 3A 5
4. Number of times The number of unresponses from the lower station 3B 55, the number of unresponses from the lower station 3C 56, the number of transmission/reception times clear value 57, the through ball transition value 58, the number of times of through ball transmission 59, and the through ball counter 60.

下位局3A、3B、3Cの送受信回数51゜52.53
は、それぞれ過去に送受信された応答回数を下位局毎に
累積して格納する部分である。下位局3A、3B、3C
の未応答回数54゜55.56は、ポーリング信号を送
出したにも関わらず、応答が無かった場合の回数を下位
局毎に累積して格納する部分である。送受信回数クリア
値57は、送受信回数51.52.53の何れかが一定
値以上を越えた場合に、全ての送受信回数をクリアする
ための指標となる値である。
Number of transmissions and receptions of lower stations 3A, 3B, 3C 51゜52.53
is a part that accumulates and stores the number of responses sent and received in the past for each lower station. Lower stations 3A, 3B, 3C
The number of non-responses 54.55.56 is a part that accumulates and stores the number of times when there is no response despite sending a polling signal for each lower station. The transmission/reception count clear value 57 is a value that serves as an index for clearing all the transmission/reception counts when any of the transmission/reception counts 51, 52, and 53 exceeds a certain value.

スルーボール移行値58は、上記未応答回数54.55
.56が一定値を越えた場合に、ポーリングを省略する
判定を行なうよう、その限界値を格納しておく領域であ
る。スルーボール送出回数59は、1つの下位局につい
てポーリングを省略する最大回数を格納しておく領域で
ある。スルーボールカウンタ60は、ポーリングを省略
した場合に、その都度インクリメントされるカウンタで
ある。
The through ball transition value 58 is the number of non-responses mentioned above, 54.55.
.. 56 exceeds a certain value, this is an area in which a limit value is stored so that a determination is made to omit polling. The through ball transmission count 59 is an area that stores the maximum number of times polling is omitted for one lower station. The through ball counter 60 is a counter that is incremented each time polling is omitted.

以下、第1図を用いて、本発明の回線制御システムの動
作原理を説明する。
The operating principle of the line control system of the present invention will be explained below with reference to FIG.

先ず、上位局10は、通信回線2を介して下位局3A、
3B、3Cに接続されており、従来通りの方式でポーリ
ング信号を出力しくステップ■)、各下位局からの応答
を待ち(ステップ■■、■)、所定の周期T1でポーリ
ングを行なうよう設定されている。上位局の応答制御部
11は、このようなポーリング周期TIを設定するため
の回路で、プロセッサ等から構成される。
First, the upper station 10 communicates with the lower stations 3A and 3A via the communication line 2.
3B and 3C, and is set to output a polling signal using the conventional method (step ■), wait for a response from each lower station (steps ■■, ■), and perform polling at a predetermined cycle T1. ing. The response control unit 11 of the upper station is a circuit for setting such a polling cycle TI, and is composed of a processor and the like.

ここで、第1図に示すように、例えば、下位局3Bが電
源オフ等により所定時間応答が無くなったものとする。
Here, as shown in FIG. 1, it is assumed that, for example, the lower station 3B does not respond for a predetermined period of time due to power being turned off or the like.

この場合、第6図に示した下位局3Bの未応答回数55
が、その都度累積されていく。
In this case, the number of unresponses 55 of the lower station 3B shown in FIG.
is accumulated each time.

そして、その値が、第6図に示したスルーボール移行値
58を越えた場合には、第1図ステップ■に示すように
、下位局3Aと下位局3Cのみにポーリングを行ない、
下位局3Bへのポーリングを省略する。この場合、下位
局3Cが下位局3Aよりも優先度が低いとしても、その
応答時間は以前の応答時間より短縮され、上位局10が
待機しなければならない時間が短縮される。
If the value exceeds the through-ball transition value 58 shown in FIG. 6, polling is performed only to the lower station 3A and the lower station 3C, as shown in step ■ in FIG.
Polling to the lower station 3B is omitted. In this case, even if the lower station 3C has a lower priority than the lower station 3A, its response time is shorter than the previous response time, and the time the upper station 10 has to wait is shortened.

即ち、上位局10の応答制御部11は、新たにポーリン
グ周期T2を設定し、T2時間待機後、次のポーリング
(ステップ■)を行なうようにする。ポーリングの省略
を1回だけとすれば、次のポーリングにおいては、全て
の下位局3A。
That is, the response control unit 11 of the upper station 10 newly sets the polling period T2, and after waiting for T2 time, performs the next polling (step 2). If polling is omitted only once, all lower stations 3A will be omitted in the next polling.

3B、3Cに対し、ポーリングを行なうことになる。そ
の後の応答ステップ■、[相]2■については、当初の
動作と変わるところはない。
Polling will be performed for 3B and 3C. Regarding the subsequent response step (2) and [phase]2 (2), there is no difference from the initial operation.

このように、本発明の回線制御システムにおいては、未
応答回数の少ない下位局についてポーリング信号の送出
を一時的に省略し、かつ、ポーリング信号の送出を省略
した分だけポーリング周期を短縮するようにしている。
In this way, in the line control system of the present invention, the transmission of polling signals is temporarily omitted for lower stations with a small number of unresponses, and the polling period is shortened by the amount of omitting the transmission of polling signals. ing.

尚、このようにポーリングの省略をするような場合には
、第3図に示すフレームフォーマット中、ステーション
アドレスを格納する部分24゜2526に対し、従来の
ように、全てのステーションアドレスを記入することを
要しない。
If polling is to be omitted in this way, all station addresses should be written in the frame format shown in Figure 3 in the section 24° 2526 for storing station addresses, as in the past. does not require

即ち、例えば下位局3Bに対するポーリングを省略する
場合、ステーションアドレス#lには下位局3Aのアド
レスを、ステーションアドレス#2には下位局3Cのア
ドレスを格納し、残りのステーションアドレス書込み領
域には、アドレスの書込みを行なわない。このような方
法によって、任意の下位局に対するポーリングが省略さ
れる。
That is, for example, when polling for the lower station 3B is omitted, the address of the lower station 3A is stored in station address #l, the address of lower station 3C is stored in station address #2, and the remaining station address writing area is Do not write address. Such a method eliminates polling for any subordinate stations.

第7図を用いて、本発明のシステムの更に具体的な動作
を説明する。
A more specific operation of the system of the present invention will be explained using FIG. 7.

第7図は、本発明のシステム動作フローチャートである
FIG. 7 is a system operation flowchart of the present invention.

図において、先ず始めに、上位局10は、各下位局3A
、3B、3Cに対しポーリング信号の送出を行なう(ス
テップS1)、そして、当初設定されたポーリング周期
T1の間待機する(ステップS2)。
In the figure, first, the upper station 10 and each lower station 3A
, 3B, and 3C (step S1), and waits for an initially set polling cycle T1 (step S2).

そして、ステップS3において、下位局からの応答があ
ったか否かが判断される。応答があった場合には、既に
第2図を用いて説明した通り、所定の通信用の処理が行
なわれる(ステップS4)。
Then, in step S3, it is determined whether there is a response from the lower station. If there is a response, predetermined communication processing is performed as already explained using FIG. 2 (step S4).

更に、ステップS5において、第6図に示した応答判定
テーブル50中の送受信回数がインクリメントされる0
例えば、下位局3A、3Cから応答があった場合、これ
らの送受信回数51.53がインクリメントされる。更
に、こうして応答のあった下位局については、直ちに第
6図に示した応答判定テーブル50の未応答回数がゼロ
クリアされる(ステップS6)、即ち、下位局3A、3
Cについの未応答回数54.56がゼロクリアされる。
Further, in step S5, the number of transmissions and receptions in the response determination table 50 shown in FIG. 6 is incremented to 0.
For example, when there is a response from the lower stations 3A and 3C, the number of times of transmission and reception, 51.53, is incremented. Furthermore, for the lower stations that have responded in this way, the number of non-responses in the response determination table 50 shown in FIG. 6 is immediately cleared to zero (step S6), that is, the lower stations 3A, 3
The number of unresponses for C, 54.56, is cleared to zero.

そして、ステップS7において、優先比較が行なわれる
。即ち、先に第5図を用いて説明したように、第6図の
応答判定テーブル50中の下位局3A、3B、3Cの送
受信回数51.52.53を比較し、その値の大きい順
に優先順位を設定する。そして、第3図に示したポーリ
ング信号用のフレームを書換える。
Then, in step S7, priority comparison is performed. That is, as previously explained using FIG. 5, the transmission/reception frequencies 51, 52, and 53 of the lower stations 3A, 3B, and 3C in the response determination table 50 of FIG. 6 are compared, and priority is given in descending order of the values. Set the ranking. Then, the frame for the polling signal shown in FIG. 3 is rewritten.

ポーリングの省略は行なわれず優先順位の変更のみであ
れば、先に従来例で示したように、ステーションアドレ
ス#1 、 #2 、 #3への下位局3A、3B、3
Cのアドレス格納順を変更する。
If polling is not omitted and only the priority order is changed, lower stations 3A, 3B, 3 to station addresses #1, #2, #3, as shown in the conventional example earlier,
Change the address storage order of C.

次に、第7図ステップS8において、送受信回数をクリ
アするか否かが判断される。これは、第6図に示した応
答判定テーブル50中の下位局3A、3B、3Cの何れ
かの送受信回数51゜52.53が、送受信回数クリア
値57を越えていないかどうかを判断することにより行
なわれる。何れかの送受信回数が送受信回数クリア値5
7を越えている場合には、全ての送受信回数を一旦ゼロ
クリアする。それ以外の場合には、そのままステップS
IOに移行する。理由は、先に説明した通りである。
Next, in step S8 of FIG. 7, it is determined whether the number of transmissions and receptions is to be cleared. This is to judge whether the number of transmissions and receptions 51°52.53 of any of the lower stations 3A, 3B, and 3C in the response determination table 50 shown in FIG. 6 does not exceed the number of transmissions and receptions clear value 57. This is done by The number of sending/receiving times is the number of sending/receiving times clear value 5
If the number exceeds 7, all transmission/reception counts are cleared to zero. Otherwise, proceed to step S.
Move to IO. The reason is as explained above.

そして、第1図に示した上位局10の応答制御部11が
ポーリング周期のセットを行なう。ポーリング信号の送
出を省略した下位局がなければ、ポーリング周期は変更
されない。
Then, the response control unit 11 of the upper station 10 shown in FIG. 1 sets the polling period. If there are no lower stations that omit sending polling signals, the polling cycle will not be changed.

一方、ステップS3において、下位局からの応答が無か
った場合には、第6図に示した応答判定テーブル50の
未応答回数をインクリメントする。例えば、下位局3B
について応答が無かった場合には、下位局3Bの未応答
回数55をインクリメントする。
On the other hand, in step S3, if there is no response from the lower station, the number of non-responses in the response determination table 50 shown in FIG. 6 is incremented. For example, lower station 3B
If there is no response, the number of non-responses 55 of the lower station 3B is incremented.

そして、ステップS12において、その未応答回数がス
ルーボール移行値58を越えているか否かを判断する。
Then, in step S12, it is determined whether the number of non-responses exceeds the through ball transition value 58 or not.

未応答回数がスルーボール移行値58を越えている場合
には、その下位局については、ポーリングを省略する旨
の設定を行なう、即ち、ステップS13においては、先
にステップS7において説明した優先比較と共に、ポー
リングを省略する下位局の設定を行なう。
If the number of non-responses exceeds the through-ball transition value 58, a setting is made to omit polling for that lower station, that is, in step S13, the priority comparison described earlier in step S7 is performed. , configure the lower station to omit polling.

そして、ステップS14において、スルーボールカウン
タ60とスルーボール送出回数59の比較を行なう、ス
ルーボールカウンタ60の値がスルーボール送出回数5
9よりも低い場合には、該当する下位局については再び
ボーリング信号の送出を省略する。従って、ステップS
15において、スルーボールカウンタ60をインクリメ
ントし、ステップSIOにおいてポーリング周期がセッ
トされる場合には、ポーリング周期が通常よりも短縮さ
れる。また、スルーボールカウンタ60の値がスルーボ
ール送出回数59よりも大きくなっている場合には、ス
ルーボールカウンタの値をゼロクリアしくステップ51
6)、この場合には、未応答回数が小さくてもボーリン
グ信号の送出を行なう、従っ゛で、スルーボール送出回
数59の値の設定によって応答の非常に少ない下位局に
対するボーリング信号の送出周期が決定されることにな
る。
Then, in step S14, the through ball counter 60 and the number of through balls sent out 59 are compared, and the value of the through ball counter 60 is 5.
If it is lower than 9, the sending of the boring signal is omitted again for the corresponding lower station. Therefore, step S
At step 15, the through ball counter 60 is incremented, and if the polling cycle is set at step SIO, the polling cycle is made shorter than normal. Further, if the value of the through ball counter 60 is larger than the number of times 59 of sending out through balls, the value of the through ball counter is cleared to zero in step 51.
6) In this case, the boring signal is sent out even if the number of unresponses is small.Therefore, by setting the value of the through ball sending number 59, the sending cycle of the boring signal to the lower station with very few responses can be adjusted. It will be decided.

このようにすれば、例えば、最優先の下位局の応答待ち
時間が1 m5ec、次の下位局の応答待ち時間が2 
m5ec、次の下位局の応答待ち時間が3 m5ecと
した場合、当初、上位局10で設定されたボーリング信
号装置のT1が4 m5ecであったとすると、1つの
局についてボーリング信号の送出を省略すると、そのポ
ーリング周期T2を3 m5ecとし、短縮することが
できる。
In this way, for example, the response waiting time of the highest priority lower station is 1 m5ec, and the response waiting time of the next lower station is 2 m5ec.
m5ec, if the response waiting time of the next lower station is 3 m5ec, and if the T1 of the boring signal device initially set in the upper station 10 is 4 m5ec, then if the sending of the boring signal for one station is omitted. , the polling period T2 can be shortened to 3 m5ec.

また、応答の特に少ない下位局については、例えば、1
0回に1度、あるいは20回に1度という程度にボーリ
ング信号を送出し、その分だけ応答頻度の高い下位局に
対し、短周期でボーリング信号を送出し、効率的に回線
制御を行なうことができる。
Also, for lower-level stations with particularly few responses, for example, 1
To send a boring signal once every 0 times or once every 20 times, and send the boring signal in a short cycle to lower stations that respond more frequently to efficiently control the line. I can do it.

本発明は以上の実施例に限定されない。The present invention is not limited to the above embodiments.

上記実施例においては、応答制御部11が実質的にソフ
トウェアタイマによる制御を行なうよう説明したが、実
際には、タイマ回路等を複数設け、その出力信号を選択
するようなハードウェアによる構成も可能である。また
、上位局10に接続される下位局の数は、任意の数に選
定して差し支えない。
In the above embodiment, it has been explained that the response control unit 11 is substantially controlled by a software timer, but in reality, a hardware configuration in which a plurality of timer circuits etc. are provided and the output signal is selected is also possible. It is. Furthermore, the number of lower stations connected to the upper station 10 may be selected to any desired number.

(発明の効果) 以上説明した本発明の回線制御システムは、ボーリング
信号に対する下位局の応答頻度をその未応答回数等を含
むデータで表わした応答判定テーブルを作成し、この応
答判定テーブルを参照して、使用頻度の低い下位局への
ボーリング信号の送出を一時的に省略するようにしたの
で、そのボーリング信号の送出を省略した分、他の下位
局に対するポーリング周期を短縮し、回線制御の効率化
を図ることができる。
(Effects of the Invention) The line control system of the present invention described above creates a response judgment table that represents the response frequency of lower-level stations to boring signals using data including the number of unresponses, and refers to this response judgment table. Therefore, the sending of boring signals to lower-order stations that are used less frequently is temporarily omitted, so that the polling period for other lower-order stations is shortened by the amount of skipping the sending of boring signals, which improves the efficiency of line control. It is possible to aim for

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

第1図は本発明の回線制御システム実施例を示すシーケ
ンスチャート、第2図は従来の回線制御システム動作シ
ーケンスチャート、第3図はボーリング信号のフレーム
フォーマット、第4図は優先比較テーブル説明図、第5
図は従来のシステム動作フローチャート、第6図は本発
明に関わる応答判定テーブル説明図、第7図は本発明の
システム動作フローチャートである。 2・・・通信回線、3A、3B、3C−・・下位局、1
0・・・上位局、11・・・応答制御部、12・・・応
答判定テーブル。 従来の回線制御システム 第  2  図
Fig. 1 is a sequence chart showing an embodiment of the line control system of the present invention, Fig. 2 is a conventional line control system operation sequence chart, Fig. 3 is a frame format of a boring signal, Fig. 4 is an explanatory diagram of a priority comparison table, Fifth
This figure is a conventional system operation flowchart, FIG. 6 is an explanatory diagram of a response determination table related to the present invention, and FIG. 7 is a system operation flowchart of the present invention. 2...Communication line, 3A, 3B, 3C-...Lower station, 1
0...Upper station, 11...Response control unit, 12...Response determination table. Conventional line control system Figure 2

Claims (1)

【特許請求の範囲】  上位局が複数の下位局に対して同時にポーリング信号
を送出し、各下位局は、それぞれ予め設定された固有の
応答待ち時間だけ待機後、前記上位局に応答を行ない、
上位局は、設定された最大の前記応答待ち時間以上のポ
ーリング周期で前記ポーリング信号を繰返し送出するも
のにおいて、前記上位局は、 前記各下位局の応答頻度を判定する応答判定テーブルと
、 この応答判定テーブルを参照して、応答頻度の低い下位
局へのポーリング信号の送出を一時的に省略し、かつ、
ポーリング信号の送出を省略した下位局数に応じて、前
記ポーリング周期を短縮するよう制御する応答制御部と
を備えたことを特徴とする回線制御システム。
[Scope of Claims] An upper station simultaneously sends a polling signal to a plurality of lower stations, each lower station waits for a preset unique response waiting time, and then responds to the upper station,
The upper station repeatedly sends out the polling signal at a polling cycle longer than the set maximum response waiting time, and the upper station includes: a response determination table for determining the response frequency of each lower station; Referring to the determination table, temporarily omit sending a polling signal to a lower station with a low response frequency, and
1. A line control system comprising: a response control unit that controls the polling cycle to be shortened in accordance with the number of lower-order stations for which transmission of polling signals is omitted.
JP2148729A 1990-06-08 1990-06-08 Line control system Pending JPH0442633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2148729A JPH0442633A (en) 1990-06-08 1990-06-08 Line control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2148729A JPH0442633A (en) 1990-06-08 1990-06-08 Line control system

Publications (1)

Publication Number Publication Date
JPH0442633A true JPH0442633A (en) 1992-02-13

Family

ID=15459306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2148729A Pending JPH0442633A (en) 1990-06-08 1990-06-08 Line control system

Country Status (1)

Country Link
JP (1) JPH0442633A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007104597A (en) * 2005-10-07 2007-04-19 Kenwood Corp Polling system, command transmission device, data transmission device, polling control method, command transmission method, data transmission method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007104597A (en) * 2005-10-07 2007-04-19 Kenwood Corp Polling system, command transmission device, data transmission device, polling control method, command transmission method, data transmission method and program

Similar Documents

Publication Publication Date Title
US5175732A (en) Method and apparatus for controlling data communication operations within stations of a local-area network
US7203943B2 (en) Dynamic allocation of processing tasks using variable performance hardware platforms
KR20060089505A (en) DMA control apparatus and method
JPH0442633A (en) Line control system
JPH1117714A (en) Address setting method and communication system to which the address setting method is applied
JP3007923B2 (en) Data transfer method and system
JPS60246148A (en) Data transmission control system
JP2004213666A (en) Dma module and its operating method
JP3260515B2 (en) Interface circuit for multiple port storage device
KR100434340B1 (en) message processing equipment of the message queue of operation system and controlling method therefore
JPH05191474A (en) Communication protocol processor
JP3033764B1 (en) Radio base station controller and method
JPH05336124A (en) Communication processing unit
JP2570192B2 (en) Loop type local area network system
JPH11219492A (en) Mobile radio equipment provided with control signal generator
JPS63222549A (en) Reception buffer management equipment
JPH027240B2 (en)
JPH01103046A (en) Communication control system
JPS6261442A (en) Data communication method and data communication device
JPH02173843A (en) Memory constitution setting system
JPH11202906A (en) Process management system, data collection device, control method therefor, and storage medium
JPH11122249A (en) Remote control system and remote control method
JPS6285365A (en) Information transferring system
JP2000322376A (en) Bus interface converting circuit
JPS63280532A (en) Polling control system