JPH0239143B2 - - Google Patents
Info
- Publication number
- JPH0239143B2 JPH0239143B2 JP56014569A JP1456981A JPH0239143B2 JP H0239143 B2 JPH0239143 B2 JP H0239143B2 JP 56014569 A JP56014569 A JP 56014569A JP 1456981 A JP1456981 A JP 1456981A JP H0239143 B2 JPH0239143 B2 JP H0239143B2
- Authority
- JP
- Japan
- Prior art keywords
- polling
- counter
- devices
- content
- cycle
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/22—Handling requests for interconnection or transfer for access to input/output bus using successive scanning, e.g. polling
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Small-Scale Networks (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Description
本発明は制御装置より複数デバイスにポーリン
グ信号を送る場合、所定時間内に応答がないデバ
イスに対してポーリング周期を遅らせるようにし
たポーリング制御方式に関するものである。
従来、複数のデバイスを制御する制御装置、た
とえば第1図に示すような制御装置1に複数の表
示器、プリンタ等21〜2oが接続されている場
合、これらの各デバイスの状態を把握するために
制御装置1はポーリング動作を行なう。すなわ
ち、ポーリングは通常機番の若い順(#1→
#n)にくり返し行なわれる。ポーリング信号に
対し応答がなかつたデバイスに対しては制御装置
1は再試行動作を行なう。ポーリング1サイクル
すなわち全てのデバイスにポーリングを行ない1
巡させた間に、再試行動作が多いとポーリングの
周期が遅くなり、正常に動作しているデバイスの
応答が見掛け上遅くなる。これに対し、無応答の
デバイスに対するポーリング周期を正常に応答し
ているデバイスよりもポーリング周期を所定のポ
ーリングサイクル数だけ遅くし、正常に動作して
いるデバイスに対するポーリング周期を見掛上早
くすることが行なわれている。
しかしこの方法は間欠的に遅いポーリング周期
が発生するという欠点が残る。そこで無応答のデ
バイスに対するポーリングは複数のポーリングサ
イクルに対しランダムに分散させることが望まし
い。これによりどの周期も見掛上早くすることが
できる。
本発明の目的は無応答のデバイスに対するポー
リング周期をランダムに遅らせるようにし、正常
なデバイスに対するポーリング周期を有効に早く
することのできるポーリング制御方法を提供する
ことである。
前記目的を達成するため、本発明のポーリング
制御方法は、
制御装置より複数のデバイスに対し順次ポーリ
ングを行ない、所定時間内に応答がないデバイス
に対してポーリング周期を遅らせるようにしたポ
ーリング制御方法であつて、
前記制御装置は、
ポーリング周期カウンタと、
前記複数のデバイスに対応して設けられるポー
リングタイミングカウンタと、を具え、
前記各ポーリングタイミングカウンタ毎にその
内容が特定値であるか否かの確認(以下内容の確
認と略称する)を行ない、
当該ポーリングタイミングカウンタの内容が特
定値でない場合は、ポーリング動作を実行しない
で当該ポーリングタイミングカウンタの内容を減
算方向に歩進し、全デバイスに対応するポーリン
グタイミングカウンタの内容の確認が終了するま
で次のポーリングタイミングカウンタの内容の確
認を行なわせる一方、
当該ポーリングタイミングカウンタの内容が特
定値の場合は、当該ポーリングタイミングカウン
タに対応するデバイスのポーリング動作を実行せ
しめ、
当該ポーリング動作に無応答の場合に前記ポー
リング周期カウンタの内容を当該無応答のデバイ
スに対応して設けられているポーリングタイミン
グカウンタに格納するとともに、前記ポーリング
周期カウンタの値を加算方向に歩進せしめた後、
全デバイスに対応するポーリングタイミングカウ
ンタの内容の確認が終了するまで次のポーリング
タイミングカウンンタの内容の確認を行なわせる
ようにし、
全デバイスに対応するポーリングタイミングカ
ウンタの内容の確認の終了後は、前記複数のポー
リングタイミングカウンタの内容の最大値を前記
ポーリング周期カウンタにセツトして上記動作を
繰り返すようにしたこと、を特徴とするものであ
る。
第2図は本発明の実施例の構成を示す説明図で
ある。
同図において、デバイス21〜2oのポーリング
は、制御装置1内のマイクロプロセツサ(μ―
CPU)11の制御により、マイクロプログラム
12に含まれるポーリング制御プログラムを実行
することにより行なわれる。ポーリング制御プロ
グラムはインターフエイスアダプタ14を経由し
てデバイス21〜2oにポーリング信号を送出する
が、この時応答監視用のタイマ13をセツトし、
一定時間内にポーリング信号に対する応答が検出
できるか否かを監視し、ポーリング制御プログラ
ムに対応するデバイスステータステーブル15に
状態情報を格納する。
以上の構成は、従来と同様のポーリング動作を
行なうための構成である。
本発明では、制御装置1にポーリング周期カウ
ンタ21と、各デバイス21〜2oにそれぞれ対応
して設けられるポーリングタイミングカウンタ2
21〜22o(第2図では、対応関係を明確にする
ため、デバイス側21〜2oに対応して示してい
る)を設けている。
第3図は第2図の実施例における制御装置の動
作を示す流れ図である。
第3図を用いて制御装置1の動作について説明
する。
図において、当初初期値の設定を行ない、ポー
リング周期カウンタの値を“1”に、ポーリング
タイミングカウンタの値を特定値(ここでは0)
に設定し、まず、制御装置1は、ポーリング動作
に先立ち、ポーリング該当デバイスのポーリング
タイミングカウンタ22の内容を確認し、その内
容が特定の値(たとえば「0」)でない場合には、
その値を−1して次のデバイスのポーリング動作
に移り、全デバイスが終了であれば、次のサイク
ルに移る。
一方、ポーリングタイミングカウンタ22の値
が「0」であると、ポーリング動作が行なわれ、
応答があれば、前述と同様にして次のデバイスの
ポーリング動作に移る。
しかしながら、このポーリング動作が無応答で
あり、再試行後も無応答となつた場合には、ポー
リング周期カウンタ21の内容を、無応答となつ
たデバイス2に対応して設けられたポーリングタ
イミングカウンタ22へセツトする。
そして、ポーリング周期カウンタ21の内容も
+1する。
以上の動作を、各デバイス21〜2oの全てにつ
いて行ない、これが終了した時、複数のポーリン
グタイミングカウンタ221〜22oの内容の最大
値を、ポーリング周期カウンタ21にセツトし
て、次のポーリングサイクルに移行する。
このように、本発明では、制御装置1に、ポー
リング周期カウンタとポーリングタイミングカウ
ンタという2種類のカウンタを設け、上述のよう
に制御することにより、無応答のデバイスが複数
台ある時、それぞれのポーリング周期を複数のポ
ーリングサイクルに渡つてランダムに分散させる
ことが可能となり、正常なデバイスへのポーリン
グ周期をいずれのポーリングサイクルにおいても
短縮することが可能となる。
次表は、第3図の流れ図に従つた実例を示した
ものである。
同表では、簡単のため、#1〜#3の3つのデ
バイスに対し、6ポーリングサイクルにおけるポ
ーリング周期カウンタ21と各デバイス21〜2o
のポーリングタイミングカウンタ221〜22oの
数値の一例を示す。
第1のポーリングサイクルにおいて、当初ポー
リング周期カウンタ21の内容を1とし、ポーリ
The present invention relates to a polling control method in which, when a control device sends polling signals to a plurality of devices, the polling period is delayed for devices that do not respond within a predetermined time. Conventionally, when a plurality of displays, printers, etc. 2 1 to 2 o are connected to a control device that controls multiple devices, for example, a control device 1 as shown in FIG. 1, it is difficult to grasp the status of each of these devices. In order to do this, the control device 1 performs a polling operation. In other words, polling is normally done in descending order of machine number (#1→
#n) is repeated. The control device 1 performs a retry operation for devices that do not respond to the polling signal. 1 polling cycle, i.e. polling all devices 1
During the cycle, if there are many retry operations, the polling cycle becomes slow, and the response of devices that are operating normally becomes apparently slow. On the other hand, the polling cycle for non-responsive devices is made slower by a predetermined number of polling cycles than the polling cycle for normally responding devices, and the polling cycle for normally operating devices is apparently made faster. is being carried out. However, this method still has the drawback that slow polling cycles occur intermittently. Therefore, it is desirable to randomly distribute polling for unresponsive devices over multiple polling cycles. This makes it possible to make any cycle appear faster. An object of the present invention is to provide a polling control method that can randomly delay the polling cycle for unresponsive devices and effectively speed up the polling cycle for normal devices. In order to achieve the above object, the polling control method of the present invention is a polling control method in which a control device sequentially polls a plurality of devices, and delays the polling cycle for devices that do not respond within a predetermined time. The control device includes: a polling cycle counter; and a polling timing counter provided corresponding to the plurality of devices; and confirming whether the content of each polling timing counter is a specific value. (hereinafter referred to as content confirmation), and if the content of the polling timing counter is not a specific value, the polling operation is not executed and the content of the polling timing counter is incremented in the direction of decrement to correspond to all devices. The contents of the next polling timing counter are checked until the checking of the contents of the polling timing counter is completed, and if the contents of the polling timing counter is a specific value, the polling operation of the device corresponding to the polling timing counter is stopped. and when there is no response to the polling operation, the contents of the polling cycle counter are stored in a polling timing counter provided corresponding to the non-responsive device, and the value of the polling cycle counter is incremented. After making them move forward,
The contents of the next polling timing counter are checked until the contents of the polling timing counters corresponding to all devices have been checked. After checking the contents of the polling timing counters corresponding to all devices, the above The present invention is characterized in that the maximum value of the contents of a plurality of polling timing counters is set in the polling period counter and the above operation is repeated. FIG. 2 is an explanatory diagram showing the configuration of an embodiment of the present invention. In the figure, polling of devices 2 1 to 2 o is performed by a microprocessor (μ-
This is done by executing a polling control program included in the microprogram 12 under the control of the CPU 11. The polling control program sends polling signals to the devices 2 1 to 2 o via the interface adapter 14, but at this time it sets the timer 13 for response monitoring.
It monitors whether a response to the polling signal can be detected within a certain period of time, and stores the status information in the device status table 15 corresponding to the polling control program. The above configuration is for performing a polling operation similar to the conventional one. In the present invention, the control device 1 includes a polling period counter 21, and polling timing counters 2 provided corresponding to each of the devices 21 to 2o .
2 1 to 22 o (in FIG. 2, in order to clarify the correspondence, they are shown corresponding to the device side 2 1 to 2 o ). FIG. 3 is a flowchart showing the operation of the control device in the embodiment of FIG. The operation of the control device 1 will be explained using FIG. 3. In the figure, initial values are initially set, the value of the polling cycle counter is set to "1", and the value of the polling timing counter is set to a specific value (0 in this case).
, and first, before the polling operation, the control device 1 checks the contents of the polling timing counter 22 of the device to be polled, and if the contents are not a specific value (for example, "0"),
The value is decremented by 1 and the next device polling operation is started. If all devices have been polled, the next cycle is started. On the other hand, if the value of the polling timing counter 22 is "0", a polling operation is performed,
If there is a response, the process moves on to the next device polling operation in the same manner as described above. However, if there is no response to this polling operation and there is no response even after retrying, the contents of the polling period counter 21 are transferred to the polling timing counter 22 provided corresponding to the device 2 that has become unresponsive. Set to Then, the contents of the polling cycle counter 21 are also incremented by 1. The above operation is performed for all of the devices 2 1 to 2 o , and when this is completed, the maximum value of the contents of the plurality of polling timing counters 22 1 to 22 o is set in the polling cycle counter 21, and the next operation is performed. Shift to polling cycle. As described above, in the present invention, the control device 1 is provided with two types of counters, a polling cycle counter and a polling timing counter, and by controlling them as described above, when there are multiple devices that do not respond, each polling It becomes possible to randomly distribute the period over a plurality of polling cycles, and it becomes possible to shorten the polling period for normal devices in any polling cycle. The following table shows an example that follows the flowchart of FIG. In the same table, for the sake of simplicity, the polling period counter 21 and each device 2 1 to 2 o in 6 polling cycles are shown for three devices #1 to #3.
An example of the numerical values of the polling timing counters 22 1 to 22 o is shown below. In the first polling cycle, the content of the polling cycle counter 21 is initially set to 1, and the polling cycle counter 21 is initially set to 1.
【表】
全正常 全異常
ングタイミングカウンタ221〜22oの内容を0
としてポーリング動作を行なつた結果、#1デバ
イスは応答があり、#2,#3デバイスは無応答
であつたとする。
このとき、#1デバイスでは、応答があつたの
で、#1デバイスのポーリングタイミングカウン
タの内容は変化せず「0」であり、#2デバイス
では、無応答であるからポーリング周期カウンタ
21の内容がポーリングタイミングカウンタ22
にセツトされ、その内容は「1」であり、#3デ
バイスでは、#2デバイスに続いてポーリング動
作が行なわれ、ポーリング周期カウンタ21の内
容が「2」となつているので、ポーリングタイミ
ングカウンタ22の内容は「2」である。
そして、全デバイス#1〜#3の処理が終了し
た時点で、各ポーリングタイミングカウンタ22
の値のうちの最大値「2」がポーリング周期カウ
ンタ21にセツトされ、次の第2のポーリングサ
イクルのポーリング周期カウンタ21の初期値と
してセツトされる。
第2ポーリングサイクルにおいては、ポーリン
グ周期カウンタ21に初期値「2」がセツトされ
ており、また、各デバイス#1〜#3のポーリン
グタイミングカウンタ22は、0,1,2がセツ
トされている。
従つて、制御装置1は、このポーリングサイク
ルにおいて、#1デバイスのポーリングタイミン
グカウンタ22が0であるので、ポーリング動作
を実行(このとき応答があつたとする)し、他の
#2,#3デバイスについては、ポーリング動作
を実行せず、それぞれの値を−1し、その内容を
0,1とする。
次いで、その最大値の1がポーリング周期カウ
ンタ21にセツトされ、次の第3ポーリングサイ
クルのポーリング周期カウンタ21の初期値とな
る。
第3のポーリングサイクルでは、ポーリング周
期カウンタ21に初期値1がセツトされ、また、
#1,#2デバイスのポーリングタイミングカウ
ンタ22の値が0であるので、#1,#2デバイ
スに対してのみポーリング動作が行なわれる。
このとき、#1デバイスは応答があり、#2デ
バイスは無応答であつたとする。
従つて、#1デバイスに対応するポーリングタ
イミングカウンタ22の内容は0であり、#2デ
バイスに対応するポーリングタイミングカウンタ
22の内容はポーリング周期カウンタ21の内容
1がセツトされて1となる。
一方、#3デバイスでは、ポーリングタイミン
グカウンタ22の内容が1であるので、ポーリン
グ動作が実行されず、その内容が−1されて、0
となる。
このため、この第3ポーリングサイクル終了時
には、#2デバイスのポーリングタイミングカウ
ンタ22の値1が最大値であるため、ポーリング
周期カウンタ21に1がセツトされ、次の第4の
ポーリングサイクルのポーリング周期カウンタ2
1の初期値となる。
第4のポーリングサイクルでは、ポーリング周
期カウンタ21に初期値1がセツトされ、また、
#1,#3デバイスのみポーリングタイミングカ
ウンタ22の値が0であるので、#1,#3デバ
イスのみポーリング動作が行なわれる。
そして、まず、#1デバイスのポーリング動作
が行なわれる。このとき、#1デバイスは応答が
あつたとする。
次いで、#2デバイスはポーリングタイミング
カウンタ22の内容が1であるので、ポーリング
動作は実行されず、その内容が−1されて0とな
る。
次いで、#3デバイスのポーリング動作が行な
われる。このとき、#3デバイスは応答があつた
とする。
従つて、#1〜#3デバイスに対応するポーリ
ングタイミングカウンタ22の内容は全て0とな
る。
このため、ポーリング周期カウンタ21の初期
値は0がセツトされる。
第5のポーリングサイクルでは、ポーリング周
期カウンタの内容が0であり、#1〜#3デバイ
スのポーリングタイミングカウンタ22もすべて
0であるので、#1〜#3デバイスの全てについ
てポーリング動作が行なわれる。
このとき、#1〜#3デバイスのいずれとも無
応答の場合、#1デバイスのポーリングタイミン
グカウンタ22には0、#2デバイスのポーリン
グタイミングカウンタ22には、1、#3デバイ
スのポーリングタイミングカウンタ22には2が
それぞれセツトされ、ポーリング周期カウンタ2
1にはその最大値2がセツトされる。
第6のポーリングサイクルでは、#1デバイス
のポーリングタイミングカウンタ22のみ内容が
0であるので、#1デバイスのみポーリング動作
が実行され、また、#2,#3デバイスについて
はポーリングタイミングカウンタ22の内容がそ
れぞれ−1され、以下同様の手順が順次繰り返さ
れる。
前表から明らかなように、#1デバイスは第1
〜第4ポーリングサイクルまでは毎回ポーリング
に対し正常な応答があり、第5ポーリングサイク
ルで無応答である。これに対し#2,#3デバイ
スは第1ポーリングサイクルで無応答となつた
後、#2デバイスでは第3,第5ポーリングサイ
クルでポーリングが行なわれて何れも無応答であ
り、#3デバイスでは第5ポーリングサイクルで
ポーリングが行なわれて依然無応答である。この
ように、正常なデバイスのポーリングは毎回行な
われるのに対し、無応答のデバイスはランダムに
ポーリング周期が遅らされて複数のポーリングサ
イクルに分散されることにより見掛上正常なデバ
イスのポーリング周期を早くすることになる。こ
れは各デバイスのポーリングタイミングカウンタ
のうち、ポーリング動作に対し無応答となつたも
のに対して、相互に異なる数値を遅らせるべきポ
ーリングサイクル数に関連してセツトしておき、
該数値をポーリングサイクル毎に歩進させ該数値
が所定の値になつたデバイスに対しポーリングを
行なうことにより実現されている。このような数
値を与える手段として本実施例ではポーリング周
期カウンタを用い、前回のポーリングサイクルに
おけるポーリングタイミングカウンタの最大値を
初期値にとり、そのポーリングサイクルにおける
無応答に対しそれぞれ+1する数値としている
が、この数値は効率的な処理をするために有効で
あるが、所望により無応答に対してはさらに遅ら
せるため任意の数値を加算するように設定するこ
ともできる。また各デバイスのポーリングタイミ
ングカウンタの数値が0になつた時次のポーリン
グサイクルでポーリングを行なうようにしている
が所定値になつた時ポーリングを行なうようにし
てもよい。
以上説明したように、本発明によれば、制御装
置より複数デバイスにボーリング信号を送る場
合、各デバイスにポーリングカウンタを設け、無
応答のデバイスのポーリングカウンタに遅れるポ
ーリングサイクル数に関連しかつデバイス相互に
異なる数値をセツトしておき、該数値をポーリン
グサイクル毎に歩進させ、所定値になつたデバイ
スに対してポーリングを行なうようにしたもので
ある。これにより、正常な応答をしているデバイ
スに対しては毎回ポーリングを行ない、無応答の
デバイスに対してはランダムに複数のポーリング
サイクルに分散させて遅らせることができ、その
結果正常なポーリング周期を有効に早めることが
可能となる。【table】
All normal All abnormal Timing counter 22 1 to 22 o contents to 0
Assume that as a result of a polling operation, device #1 received a response, and devices #2 and #3 did not respond. At this time, since the #1 device received a response, the content of the polling timing counter of the #1 device does not change and is "0", and the content of the polling cycle counter 21 of the #2 device does not change because there is no response. Polling timing counter 22
The polling timing counter 22 is set to 1, and the polling operation is performed in the #3 device following the #2 device, and the content of the polling cycle counter 21 is "2". The content of is "2". Then, when the processing of all devices #1 to #3 is completed, each polling timing counter 22
The maximum value "2" among the values is set in the polling cycle counter 21, and is set as the initial value of the polling cycle counter 21 for the next second polling cycle. In the second polling cycle, the initial value "2" is set in the polling cycle counter 21, and 0, 1, and 2 are set in the polling timing counters 22 of each device #1 to #3. Therefore, in this polling cycle, since the polling timing counter 22 of the #1 device is 0, the control device 1 executes the polling operation (assuming that there is a response at this time) and checks the other #2 and #3 devices. , do not perform the polling operation, subtract each value by 1, and set the contents to 0 and 1. Then, the maximum value 1 is set in the polling cycle counter 21, and becomes the initial value of the polling cycle counter 21 for the next third polling cycle. In the third polling cycle, the polling cycle counter 21 is set to an initial value of 1, and
Since the values of the polling timing counters 22 of devices #1 and #2 are 0, the polling operation is performed only for devices #1 and #2. At this time, it is assumed that #1 device has responded and #2 device has not responded. Therefore, the content of the polling timing counter 22 corresponding to the #1 device is 0, and the content of the polling timing counter 22 corresponding to the #2 device becomes 1 because the content 1 of the polling cycle counter 21 is set. On the other hand, in device #3, since the content of the polling timing counter 22 is 1, the polling operation is not executed, and the content is incremented by -1 and becomes 0.
becomes. Therefore, at the end of this third polling cycle, the value 1 of the polling timing counter 22 of the #2 device is the maximum value, so the polling cycle counter 21 is set to 1, and the polling cycle counter of the next fourth polling cycle is set to 1. 2
The initial value is 1. In the fourth polling cycle, the polling cycle counter 21 is set to an initial value of 1, and
Since the value of the polling timing counter 22 of only devices #1 and #3 is 0, the polling operation is performed only for devices #1 and #3. First, a polling operation for the #1 device is performed. At this time, it is assumed that the #1 device has responded. Next, since the content of the polling timing counter 22 of #2 device is 1, the polling operation is not executed, and the content is incremented by 1 to become 0. Next, a polling operation for #3 device is performed. At this time, it is assumed that #3 device has responded. Therefore, the contents of the polling timing counters 22 corresponding to devices #1 to #3 are all zero. Therefore, the initial value of the polling cycle counter 21 is set to 0. In the fifth polling cycle, the content of the polling cycle counter is 0, and the polling timing counters 22 of devices #1 to #3 are also all 0, so polling operations are performed for all devices #1 to #3. At this time, if there is no response from any of the #1 to #3 devices, the polling timing counter 22 of the #1 device is set to 0, the polling timing counter 22 of the #2 device is set to 1, and the polling timing counter 22 of the #3 device is set to 0. are set to 2, respectively, and the polling period counter 2 is set to 2.
The maximum value 2 is set to 1. In the sixth polling cycle, only the polling timing counter 22 of the #1 device has the content 0, so the polling operation is executed only for the #1 device, and the content of the polling timing counter 22 of the #2 and #3 devices is 0. Each is incremented by -1, and the same procedure is repeated sequentially. As is clear from the table above, #1 device is the first
There is a normal response to polling every time up to the fourth polling cycle, and there is no response in the fifth polling cycle. On the other hand, after #2 and #3 devices did not respond in the first polling cycle, #2 device was polled in the third and fifth polling cycles and both received no response, and #3 device did not respond. Polling is performed in the fifth polling cycle and there is still no response. In this way, while polling of a normal device is performed every time, the polling cycle of an unresponsive device is randomly delayed and distributed over multiple polling cycles, so that the polling cycle of an apparently normal device is This will speed up the process. This is done by setting mutually different values in relation to the number of polling cycles to be delayed for the polling timing counter of each device that has become unresponsive to the polling operation.
This is realized by incrementing the numerical value every polling cycle and polling the device when the numerical value reaches a predetermined value. In this embodiment, a polling cycle counter is used as a means for providing such a numerical value, and the maximum value of the polling timing counter in the previous polling cycle is taken as the initial value, and the value is incremented by 1 for each non-response in that polling cycle. This numerical value is effective for efficient processing, but if desired, it can be set to add an arbitrary numerical value to further delay in response to no response. Further, when the value of the polling timing counter of each device reaches 0, polling is performed in the next polling cycle, but polling may be performed when the value of the polling timing counter of each device reaches a predetermined value. As explained above, according to the present invention, when a control device sends a boring signal to a plurality of devices, a polling counter is provided in each device, and the polling cycle number that lags behind the polling counter of a non-responsive device is determined. Different numerical values are set in advance, the numerical values are incremented every polling cycle, and devices that reach a predetermined value are polled. This allows devices that are responding normally to be polled every time, and unresponsive devices to be randomly distributed over multiple polling cycles and delayed, resulting in a normal polling cycle. This can be effectively accelerated.
第1図はポーリング制御方法の一般説明図、第
2図は本発明の実施例の構成を示す説明図、第3
図は本発明の要部の動作を示す流れ図であり、図
中、1は制御装置、21〜2oはデバイス、11は
マイクロプロセツサ、12はマイクロプログラ
ム、13はタイマ、14はインタフエイスアダプ
タ、15はデバイスステイタステーブル、21は
ポーリング周期カウンタ、221〜22oはポーリ
ングタイミングカウンタを示す。
FIG. 1 is a general explanatory diagram of a polling control method, FIG. 2 is an explanatory diagram showing the configuration of an embodiment of the present invention, and FIG.
The figure is a flowchart showing the operation of the main parts of the present invention. In the figure, 1 is a control device, 2 1 to 2 o are devices, 11 is a microprocessor, 12 is a microprogram, 13 is a timer, and 14 is an interface. 15 is a device status table, 21 is a polling period counter, and 22 1 to 22 o are polling timing counters.
Claims (1)
リングを行ない、所定時間内に応答がないデバイ
スに対してポーリング周期を遅らせるようにした
ポーリング制御方法であつて、 前記制御装置は、 ポーリング周期カウンタと、 前記複数のデバイスに対応して設けられるポー
リングタイミングカウンタと、を具え、 前記各ポーリングタイミングカウンタ毎にその
内容が特定値であるか否かの確認(以下内容の確
認と略称する)を行ない、 当該ポーリングタイミングカウンタの内容が特
定値でない場合は、ポーリング動作を実行しない
で当該ポーリングタイミングカウンタの内容を減
算方向に歩進し、全デバイスに対応するポーリン
グタイミングカウンタの内容の確認が終了するま
で次のポーリングタイミングカウンタの内容の確
認を行なわせる一方、 当該ポーリングタイミングカウンタの内容が特
定値の場合は、当該ポーリングタイミングカウン
タに対応するデバイスのポーリング動作を実行せ
しめ、 当該ポーリング動作に無応答の場合に前記ポー
リング周期カウンタの内容を当該無応答のデバイ
スに対応して設けられているポーリングタイミン
グカウンタに格納するとともに、前記ポーリング
周期カウンタの値を加算方向に歩進せしめた後、
全デバイスに対応するポーリングタイミングカウ
ンタの内容の確認が終了するまで次のポーリング
タイミングカウンタの内容の確認を行なわせるよ
うにし、 全デバイスに対応するポーリングタイミングカ
ウンタの内容の確認の終了後は、前記複数のポー
リングタイミングカウンタの内容の最大値を前記
ポーリング周期カウンタにセツトして上記動作を
繰り返すようにしたこと、を特徴とするポーリン
グ方法。[Scope of Claims] 1. A polling control method in which a control device sequentially polls a plurality of devices and delays the polling period for devices that do not respond within a predetermined time, the control device comprising: A polling cycle counter and a polling timing counter provided corresponding to the plurality of devices are provided, and each of the polling timing counters is configured to confirm whether or not the content thereof is a specific value (hereinafter abbreviated as content confirmation). ), and if the content of the polling timing counter is not a specific value, the content of the polling timing counter is incremented in the direction of decrement without executing the polling operation, and the content of the polling timing counter corresponding to all devices can be checked. The content of the next polling timing counter is checked until the end of the polling process, and if the content of the polling timing counter is a specific value, the polling operation of the device corresponding to the polling timing counter is executed, and the polling operation has no effect. In the case of a response, the contents of the polling cycle counter are stored in a polling timing counter provided corresponding to the non-responsive device, and the value of the polling cycle counter is incremented in the incrementing direction;
The contents of the next polling timing counter are checked until the contents of the polling timing counters corresponding to all devices have been checked, and after checking the contents of the polling timing counters corresponding to all devices, the above-mentioned multiple A polling method characterized in that the maximum value of the contents of a polling timing counter is set in the polling period counter and the above operation is repeated.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1456981A JPS57129049A (en) | 1981-02-03 | 1981-02-03 | Polling control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1456981A JPS57129049A (en) | 1981-02-03 | 1981-02-03 | Polling control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57129049A JPS57129049A (en) | 1982-08-10 |
| JPH0239143B2 true JPH0239143B2 (en) | 1990-09-04 |
Family
ID=11864781
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1456981A Granted JPS57129049A (en) | 1981-02-03 | 1981-02-03 | Polling control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57129049A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6130145A (en) * | 1984-07-20 | 1986-02-12 | Matsushita Electric Ind Co Ltd | Hierarchical polling method |
| JPH0695679B2 (en) * | 1988-11-08 | 1994-11-24 | 日本電気株式会社 | Information transmission method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5818031B2 (en) * | 1976-09-16 | 1983-04-11 | 富士通株式会社 | Polling control method |
-
1981
- 1981-02-03 JP JP1456981A patent/JPS57129049A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57129049A (en) | 1982-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0239143B2 (en) | ||
| JPH06324721A (en) | Method for detecting falling-off of connection unit | |
| JPH02281343A (en) | Cpu operation monitor system | |
| JPH01149637A (en) | System for monitoring polling control response | |
| JP2676609B2 (en) | Data transmission method | |
| JPH0343653B2 (en) | ||
| JPS6267641A (en) | Program terminating system | |
| JPS61293042A (en) | Monitor and control system for polling | |
| JP2690486B2 (en) | Program execution status monitoring method | |
| JPH04147347A (en) | Processor failure recovery control method | |
| JPH01103046A (en) | Communication control system | |
| JPH07115423A (en) | Transmission control method | |
| JPH0232645B2 (en) | ||
| JPH01196942A (en) | Cut-off response command control system | |
| JPH03294952A (en) | Input/output processing system | |
| JPH04313137A (en) | Parallel processing method | |
| JPH0535460B2 (en) | ||
| JPH02131648A (en) | Monitoring device for multi-point connection line | |
| JPH03267839A (en) | System for processing network timer | |
| JPH04293133A (en) | Fault monitoring system in loosely coupled multi-processor system | |
| JPS6363930B2 (en) | ||
| JPS63184137A (en) | Analyzing system for abnormally completion information in information processing system | |
| JPH01234966A (en) | Fault detection method in multiplexed computer system | |
| JPS62143154A (en) | Input/output controller | |
| JPS628256A (en) | Real timer setting system |