JP2000032012A - Polling communication method and system - Google Patents

Polling communication method and system

Info

Publication number
JP2000032012A
JP2000032012A JP10198551A JP19855198A JP2000032012A JP 2000032012 A JP2000032012 A JP 2000032012A JP 10198551 A JP10198551 A JP 10198551A JP 19855198 A JP19855198 A JP 19855198A JP 2000032012 A JP2000032012 A JP 2000032012A
Authority
JP
Japan
Prior art keywords
priority
slave
station
polling
slave station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10198551A
Other languages
Japanese (ja)
Inventor
Tsunehisa Arai
恒壽 荒井
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP10198551A priority Critical patent/JP2000032012A/en
Publication of JP2000032012A publication Critical patent/JP2000032012A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a system where the number of limited polling times of a master station can be effectively utilized by performing the polling communication after shortening the polling cycles set to the slave station groups of higher priorities compared with the polling cycle set when all slave stations have the same priority based on the polling communication priority that is decided in a priority deciding step. SOLUTION: An office number generation circuit 1 starts its processing at each time that is set by a timer 2 with priority set at the highest level L. Then the number of slave stations having levels L is checked. If no slave station has level L, the priority level is subtracted by 1. If one or more slave stations have levels L, the value of a pointer (p) is decided. As a result, the value of the pointer (p) is set at 1 when the pointer (P) value is equal to the number of slave stations of the same priority level with the priority level subtracted by 1. Then the number NL of slave stations of the levels L is checked.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、1つの親局とN個
の子局で構成される局構成において、親局の1子局当た
りのポーリング時間が現状より短くできないときに、ポ
ーリングする子局をレベル分けして優先順位を付すこと
により、最優先グループの子局ポーリング周期を全子局
が同一レベルとしたときのポーリング周期より短縮でき
るポーリング通信方法およびポーリング通信システムに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a station configuration comprising one master station and N slave stations, when the polling time per slave station of the master station cannot be shorter than the current situation, a slave station that polls. The present invention relates to a polling communication method and a polling communication system in which stations are divided into levels and priorities are assigned, so that the slave station polling cycle of the highest priority group can be shorter than the polling cycle when all the slave stations have the same level.

【0002】[0002]

【従来の技術】従来のポーリング通信方法およびポーリ
ング通信システムには、各子局に対しプライオリティを
付し、このプライオリティの高さを基準に各子局に対す
る通信を行うものがある一方、各子局に対するプライオ
リティを同一レベルにして順番にポーリングしていくポ
ーリング通信方法もある。このプライオリティを同一レ
ベルにする通信方法によると、ある子局Cの1回のポー
リング周期PmはN*T(N:局数、T:1子局当たり
のポーリング時間)になり、局数Nが多いとポーリング
周期Pmは非常に大きな値になり、たとえば子局に障害
などが発生した場合、N*T時間待っていては遅すぎる
場合が発生する。また、子局に障害が発生した場合、障
害が発生した子局だけポーリングを行うようにすると、
他の子局の状況が全く把握できない状態になる。
2. Description of the Related Art Some conventional polling communication methods and polling communication systems assign a priority to each slave station and perform communication with each slave station based on the priority. There is also a polling communication method in which the priority is set to the same level and polling is sequentially performed. According to the communication method of setting the priority to the same level, one polling cycle Pm of a certain slave station C is N * T (N: number of stations, T: polling time per slave station), and the number N of stations is equal to N * T. If the number is large, the polling period Pm becomes a very large value. For example, when a failure occurs in a slave station, it may be too late to wait N * T time. Also, if a failure occurs in a slave station, if only the failed slave station is polled,
The situation of other slave stations cannot be grasped at all.

【0003】[0003]

【発明が解決しようとする課題】従来のポーリング通信
方法およびポーリング通信システムは以上のように構成
されていたので、親局のポーリング回数が限定されてい
る場合において、子局数Nが多いとポーリング周期Pm
が長くなり、また特定の子局との間でのみポーリングを
行うような通信システムにすると他の子局との間の通信
が全く出来ず、限られた親局のポーリング回数を有効に
活用できない課題があった。
Since the conventional polling communication method and the conventional polling communication system are configured as described above, when the number of times of polling of the master station is limited, if the number N of slave stations is large, polling is performed. Period Pm
If a communication system that performs polling only with a specific slave station is used, communication with other slave stations cannot be performed at all, and the limited number of times of polling of the master station cannot be used effectively. There were challenges.

【0004】そこで、本発明の目的は、親局のポーリン
グ回数が限られている状況下において、優先度レベルが
低い子局に対してポーリング周期は従来のポーリング周
期より長くなるがポーリングが全く行なわれない状態に
ならないようにして、親局の限られたポーリング回数を
有効に活用できるポーリング通信方法およびポーリング
通信システムを提供することにある。
Accordingly, an object of the present invention is to provide a slave station having a low priority level in a situation where the number of times of polling of the master station is limited, but the polling cycle is longer than the conventional polling cycle, but no polling is performed at all. It is an object of the present invention to provide a polling communication method and a polling communication system which can effectively utilize a limited number of polling times of a master station so as not to be in a state of being left out.

【0005】[0005]

【課題を解決するための手段】本発明に係るポーリング
通信方法は、ポーリングする子局に優先順位を付す優先
順位付与ステップと、該優先順位付与ステップで付した
子局毎の優先順位と、同一優先順位の前記子局の数と、
前記同一優先順位の子局番号とをもとに、前記同一優先
順位の子局グループ毎に、かつ当該同一優先順位内の前
記子局番号毎に、高位の優先順位の子局グループに対す
るポーリング通信順位を優先させ、前記高位の優先順位
の子局グループおよび下位の優先順位の子局グループに
対するポーリング通信順位を決定する優先順位決定ステ
ップと、該優先順位決定ステップで決定した前記ポーリ
ング通信順位をもとに、前記高位の優先順位の子局グル
ープに対するポーリング周期を全子局が同一優先順位と
したときのポーリング周期より短縮してポーリング通信
を行うポーリング通信ステップとを備えたことを特徴と
する。
According to the polling communication method of the present invention, the priority assigning step of assigning priorities to the slave stations to be polled, and the priority assigned to each slave station in the priority assigning step are the same. The number of said slave stations in priority order;
Based on the same priority slave station number, for each of the same priority slave station groups, and for each of the slave station numbers within the same priority order, polling communication with respect to a higher priority slave station group. A priority determining step of prioritizing the priorities and determining a polling communication order for the higher priority slave station group and a lower priority slave station group; and the polling communication order determined in the priority determining step. And a polling communication step of performing polling communication by shortening a polling cycle for the higher priority slave station group than a polling cycle when all the slave stations have the same priority.

【0006】本発明に係るポーリング通信システムは、
1つの親局と複数の子局との間でポーリング通信を行、
前記親局が前記複数の子局から情報の収集を行うポーリ
ング通信システムにおいて、前記親局は、子局に付され
た優先順位と、同一優先順位の前記子局の数と、前記同
一優先順位の子局番号とをもとに、前記同一優先順位の
子局グループ毎に、かつ当該同一優先順位内の前記子局
番号毎に、高位の優先順位の子局グループおよび下位の
優先順位の子局グループに対するポーリング通信順位を
決定し、前記高位の優先順位の子局グループに対するポ
ーリング通信順位を優先させ、当該高位の優先順位の子
局グループに対するポーリング周期を全子局が同一優先
順位としたときのポーリング周期より短縮可能にする局
番号発生手段を備えていることを特徴とする。
A polling communication system according to the present invention comprises:
Perform polling communication between one master station and multiple slave stations,
In the polling communication system in which the master station collects information from the plurality of slave stations, the master station has a priority assigned to the slave station, the number of the slave stations having the same priority, and the same priority. For each slave station group of the same priority, and for each slave station number within the same priority, a slave station group of a higher priority and a child of a lower priority When the polling communication order for the station group is determined, the polling communication order for the higher priority slave station group is prioritized, and the polling cycle for the higher priority slave station group is set to the same priority for all the slave stations. Station number generating means for shortening the polling cycle.

【0007】本発明のポーリング通信方法およびポーリ
ング通信システムは、1つの親局と、複数の子局との間
で行われるポーリング通信方法において、例えば親局の
1子局当たりのポーリング時間が現状より短くできない
とき、ポーリングする子局をレベル分けし優先順位を付
与し、該付与した子局毎の優先順位と、同一優先順位の
前記子局の数と、前記同一優先順位の子局番号とをもと
に、前記同一優先順位の子局グループ毎に、かつ当該同
一優先順位内の前記子局番号毎に、高位の優先順位の子
局グループに対するポーリング通信順位を優先させ、前
記高位の優先順位の子局グループおよび下位の優先順位
の子局グループに対するポーリング通信順位を決定し、
該決定した前記ポーリング通信順位をもとに、前記高位
の優先順位の子局グループのポーリング周期を全子局が
同一レベルとしたときのポーリング周期より短縮し、か
つ前記下位の優先順位の子局に対してはポーリング周期
が従来のポーリング周期より長くなるがポーリングが全
く行なわれない状態にならないようにする。
A polling communication method and a polling communication system according to the present invention are arranged so that, in a polling communication method performed between one master station and a plurality of slave stations, for example, the polling time per slave station of the master station is lower than the current state. If it cannot be shortened, the polling slave stations are divided into levels and priorities are assigned, and the assigned priorities of the slave stations, the number of the slave stations having the same priority, and the slave station numbers having the same priority are assigned. The polling communication order for the higher priority slave station group is prioritized for each slave station group having the same priority and for each slave station number within the same priority, and the higher priority Determining the polling communication order for the slave station group and the lower priority slave station group,
Based on the determined polling communication order, the polling cycle of the higher priority slave station group is shorter than the polling cycle when all the slave stations are at the same level, and the lower priority slave station is used. However, the polling cycle is longer than the conventional polling cycle, but no polling is performed.

【0008】[0008]

【発明の実施の形態】以下、本発明の実施の一形態につ
いて説明する。図1は、本実施の形態のポーリング通信
方法が適用されるポーリング通信システムの構成を示す
ブロック図である。本ポーリング通信システムは、親局
BとN個の子局Cからなり、親局Bと個局Cとは伝送路
N1,N2で接続されており、1つの親局BがN個の子
局C(局番号s=1からN)の局情報aをポーリングに
より収集する構成である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below. FIG. 1 is a block diagram showing a configuration of a polling communication system to which a polling communication method according to the present embodiment is applied. This polling communication system includes a master station B and N slave stations C. The master station B and the slave stations C are connected by transmission lines N1 and N2, and one master station B is composed of N slave stations. In this configuration, station information a of C (station number s = 1 to N) is collected by polling.

【0009】親局Bは、局番号発生回路(局番号発生手
段)1、時間情報を発生するタイマ2、局番号送信回路
3、情報受信回路4を備えている。また、局番号発生回
路1はレベル11、個数12、ポインタ13および局番
号リスト14などの情報を備えている。局番号発生回路
1は、タイマ2で発生する時間Tごとにポーリングする
局番号nを発生する回路である。局番号送信回路3は、
局番号発生回路1が発生した局番号nをN個の子局Cに
送信する回路である。情報受信回路4は、子局nの局情
報aを受信する回路である。
The master station B includes a station number generating circuit (station number generating means) 1, a timer 2 for generating time information, a station number transmitting circuit 3, and an information receiving circuit 4. The station number generating circuit 1 has information such as a level 11, a number 12, a pointer 13, and a station number list 14. The station number generation circuit 1 is a circuit that generates a station number n to be polled every time T generated by the timer 2. The station number transmission circuit 3
This is a circuit for transmitting the station number n generated by the station number generation circuit 1 to N slave stations C. The information receiving circuit 4 is a circuit that receives the station information a of the slave station n.

【0010】各子局Cは、局番号受信回路5、比較回路
6、自局の局番号を格納している自局番号格納手段7、
情報送信回路8および発生した自局情報を格納する自局
情報格納手段9を備えている。局番号受信回路5は、親
局Bから送信された局番号nを受信する回路である。比
較回路6は、局番号受信回路5が受信した局番号nと自
局番号格納手段7が格納している自局の局番号とを比較
し一致判定を行う回路である。情報送信回路8は、前記
局番号受信回路5が受信した局番号nと自局の局番号と
が一致すると自局情報格納手段9に格納されている局情
報aを親局Bへ送信する回路である。
Each slave station C has a station number receiving circuit 5, a comparing circuit 6, a local station number storing means 7 for storing the local station number,
An information transmitting circuit 8 and a local station information storing means 9 for storing generated local station information are provided. The station number receiving circuit 5 is a circuit that receives the station number n transmitted from the master station B. The comparison circuit 6 is a circuit that compares the station number n received by the station number reception circuit 5 with the station number of the own station stored in the own station number storage means 7 to determine a match. The information transmitting circuit 8 transmits the station information a stored in the own station information storing means 9 to the master station B when the station number n received by the station number receiving circuit 5 matches the station number of the own station. It is.

【0011】次に、動作について説明する。本実施の形
態のポーリング通信方法およびポーリング通信システム
は、1つの親局Bと、N個の子局Cで構成される局構成
において、親局Bの1子局当たりのポーリング時間Tが
現状より短くできないとき、ポーリングする子局をレベ
ル分けし優先順位を割り当てることにより、最優先グル
ープLの子局ポーリング周期PLを全子局が同一レベル
としたときのポーリング周期Pmより短縮することを可
能にするものである。この場合、優先度レベルAの子局
のポーリング周期PAは優先度レベルAに属する局数を
NAとするとPA=(NA+1)*PA+1、PL=
(NL+1)*Tになる。
Next, the operation will be described. In the polling communication method and the polling communication system of the present embodiment, in a station configuration including one master station B and N slave stations C, the polling time T per slave station of the master station B is smaller than the current state. When the length cannot be shortened, the polling slave stations are divided into levels and priorities are assigned, so that the polling cycle PL of the slave station of the highest priority group L can be shorter than the polling cycle Pm when all the slave stations have the same level. Is what you do. In this case, assuming that the number of stations belonging to the priority level A is NA, the polling period PA of the slave station of the priority level A is PA = (NA + 1) * PA + 1, PL =
(NL + 1) * T.

【0012】親局Bの局番号発生回路1は、タイマ2で
発生させた時間Tごとにポーリングする局番号nを発生
し、局番号送信回路3は前記発生した局番号nをN個の
子局Cに送信する。各子局Cは局番号受信回路5で親局
Bから送信された局番号nを受信し、比較回路6で自局
番号格納手段7が格納している自局の局番号sと比較
し、局番号nと局番号sが一致すると情報送信回路8か
ら自局情報格納手段9に格納されている局情報aを親局
Bへ送信する。親局Bでは情報受信回路4で子局nの局
情報aを受信する。
The station number generating circuit 1 of the master station B generates a station number n to be polled every time T generated by the timer 2, and the station number transmitting circuit 3 converts the generated station number n into N children. Send to station C. Each of the slave stations C receives the station number n transmitted from the master station B by the station number receiving circuit 5, and compares the station number n of the own station by the comparing circuit 6 with the station number s of the own station stored in the own station number storage means 7. When the station number n and the station number s match, the information transmitting circuit 8 transmits the station information a stored in the own station information storage means 9 to the master station B. In the master station B, the information receiving circuit 4 receives the station information a of the slave station n.

【0013】親局Bの局番号発生回路1は、子局の局番
号n(n=1〜N)をL個の優先度レベル(優先度レベ
ル1〜優先度レベルL)11に振り分け、前記振り分け
た優先度レベルのいずれかに属する各子局の符号14で
示す局番号リストS(優先度レベル,ポインタpの値ま
たは初期値)、各優先度レベルの子局の符号12で示す
個数N、符号13で示す前記ポインタpを持つ。ここで
前記レベル11は優先度レベル1から優先度レベルLに
進むにつれて優先度が上がるものとする。
The station number generating circuit 1 of the master station B assigns the station numbers n (n = 1 to N) of the slave stations to L priority levels (priority levels 1 to L) 11, and Station number list S (priority level, value of pointer p or initial value) indicated by reference numeral 14 of each slave station belonging to any of the assigned priority levels, and number N indicated by reference numeral 12 of slave stations of each priority level , And the pointer p indicated by reference numeral 13. Here, it is assumed that the priority of the level 11 rises from the priority level 1 to the priority level L.

【0014】図2は、優先度レベルを優先度レベル1か
ら優先度レベル3の範囲に設定し、優先度レベル3に属
する子局の局番号を局番号1、局番号2に設定し、また
優先度レベル2に属する子局の局番号を局番号3、局番
号4、局番号5に設定し、また優先度レベル1に属する
子局の局番号を局番号6、局番号7、局番号8、局番号
9に設定したときの子局の個数N、ポインタp(同一の
優先度レベルの何番目の子局であるかを指す)、局番号
リストSの具体的な値を示している。
FIG. 2 shows that the priority level is set in a range from the priority level 1 to the priority level 3, the station numbers of the slave stations belonging to the priority level 3 are set to the station numbers 1 and 2, and The station numbers of the slave stations belonging to the priority level 2 are set to the station numbers 3, 4, and 5, and the station numbers of the slave stations belonging to the priority level 1 are the station numbers 6, 7 and 7. 8, the number N of slave stations when set to the station number 9, the pointer p (indicating the number of the slave station of the same priority level), and the specific values of the station number list S. .

【0015】図3は、図2の構成にもとづいて局番号発
生回路1が動作したときのポインタpの動作と発生する
局番号nの関係を示す。
FIG. 3 shows the relationship between the operation of the pointer p and the generated station number n when the station number generating circuit 1 operates based on the configuration of FIG.

【0016】図4は、最優先グループの子局ポーリング
周期が、全子局が同一レベルとしたときのポーリング周
期より短縮される、本ポーリング通信方法およびポーリ
ング通信システムの特徴的な動作を示すフローチャート
である。なお、各優先度レベルのポインタpの初期値
は、最初全て“1”にしてあるものとする。
FIG. 4 is a flowchart showing the characteristic operation of the polling communication method and the polling communication system in which the polling cycle of the slave station of the highest priority group is shorter than the polling cycle when all the slave stations are at the same level. It is. It is assumed that the initial values of the pointers p of the respective priority levels are all initially set to "1".

【0017】本フローチャートによれば、先ず局番号発
生回路1がタイマ2で発生する時間Tごとに処理を開始
する。ステップS101では優先度レベルを最高位の優
先度レベルLに設定する。次に、ステップS102にお
いて前記設定した最高位の優先度レベルLの子局の個数
NLの値を調べる。この結果、零個のときはステップS
107へ進み、優先度レベルの値を前記優先度レベルL
から“1”を引いた値にしてステップS102へ戻る。
According to this flowchart, first, the station number generating circuit 1 starts the process for each time T generated by the timer 2. In step S101, the priority level is set to the highest priority level L. Next, in step S102, the value of the number NL of the set slave stations having the highest priority level L is checked. As a result, when the number is zero, step S
Go to 107 and change the value of the priority level to the priority level L
Is set to a value obtained by subtracting “1” from the above, and the process returns to step S102.

【0018】一方、零個でないときはステップS103
へ進む。ステップS103ではポインタpの値(同一の
優先度レベルの何番目の子局であるか)を判定する。ス
テップS103でポインタpの値を判定した結果、ポイ
ンタpの値が前記同一の優先度レベルの子局の数のとき
はステップS106へ進み、ポインタ値を“1”にし
て、続くステップS107で優先度レベルの値を“1”
差し引いた値にしてステップS102へ戻る。また、一
方、ポインタpの値が前記同一の優先度レベルの子局の
数でないときはステップS104へ進む。ステップS1
04ではポインタpが指している局番号リストS(優先
度レベル、ポインタp)の局番号をポーリングする局番
号nとしてステップS105へ進み、ステップS105
でポインタpの値を“1”増加させ処理を終了する。
On the other hand, if the number is not zero, step S103
Proceed to. In step S103, the value of the pointer p (the number of the child station having the same priority level) is determined. As a result of the determination of the value of the pointer p in step S103, when the value of the pointer p is the number of slave stations having the same priority level, the process proceeds to step S106, the pointer value is set to "1", and the priority is set in the subsequent step S107. Degree level value is "1"
Return to step S102 with the subtracted value. On the other hand, if the value of the pointer p is not the number of slave stations having the same priority level, the process proceeds to step S104. Step S1
In step 04, the station number of the station number list S (priority level, pointer p) pointed to by the pointer p is set as the station number n to be polled, and the process proceeds to step S105.
The value of the pointer p is incremented by "1", and the process ends.

【0019】以上の処理により、優先度レベルAの子局
のポーリング周期PAは優先度レベルAに属する局数を
NAとするとPA=(NA+1)*PA+1になる。
By the above processing, if the number of stations belonging to the priority level A is NA, the polling period PA of the slave station of the priority level A is PA = (NA + 1) * PA + 1.

【0020】ここで、さらに局番号発生回路1の動作を
図2の構成を前提にして図3にもとづき図4のフローチ
ャートに従って説明すると、時刻TにおいてステップS
101→ステップS102→ステップS103→ステッ
プS104で局番号リストS(優先度レベル=3、ポイ
ンタ値p3=1)が選択されポーリングする局番号nは
になり、続いてステップS105でポインタ値p3=
2になる。同様にして時刻2TではステップS104で
局番号リストS(優先度レベル=3、ポインタ値p3=
2)が選択されポーリングする局番号nはになり、続
いてステップS105でポインタ値p3=3になる。
Here, the operation of the station number generation circuit 1 will be further described with reference to the flow chart of FIG. 4 based on FIG. 3 based on the configuration of FIG.
In step 101 → step S102 → step S103 → step S104, the station number list S (priority level = 3, pointer value p3 = 1) is selected and the polling station number n becomes, and subsequently, in step S105, the pointer value p3 =
It becomes 2. Similarly, at time 2T, in step S104, the station number list S (priority level = 3, pointer value p3 =
2) is selected and the polling station number n becomes, and then the pointer value p3 = 3 in step S105.

【0021】時刻3Tにおいては、ステップS101→
ステップS102→ステップS103でポインタ値p3
=3のためステップS106へ進み、ステップS106
ではポインタ値p3=1、またステップS107では優
先度レベル=2となりステップS102に戻り、ステッ
プS103→ステップS104で局番号リストS(優先
度レベル=2、ポインタ値=1)が選択されポーリング
する局番号nはになり、続いてステップS105でポ
インタ値p2=2になる。以下、同様にしてポーリング
する局番号nは、図3に示すように→→→→
→→→→・・・のようになる。
At time 3T, step S101 →
Step S102 → Step S103: pointer value p3
= 3, the process proceeds to step S106, and the process proceeds to step S106.
In step S107, the priority level is set to 2 and the processing returns to step S102. In step S103 → step S104, the station number list S (priority level = 2, pointer value = 1) is selected and polled. The number n becomes, and then the pointer value becomes p2 = 2 in step S105. Hereinafter, the station number n to be polled in the same manner as shown in FIG.
→→→→ ...

【0022】また、各優先度レベル3,2,1に属する
子局のポーリング周期P3,P2,P1はP3=(N3
+1)*T=(2+1)*T=3T、P2=(N2+
1)*P3=(3+1)*3T=12T、P3=(N1
+1)*P2=(4+1)*12T=60Tになる。従
って全子局が同一レベルとしたときのポーリング周期P
mは(N3+N2+N1)*T=(2+3+4)*T=
9Tのため、優先レベル3の周期P3はPmより3/9
=1/3倍に短縮される。ここで、Tは親局Bの1子局
当たりのポーリング時間である。
The polling periods P3, P2, and P1 of the slave stations belonging to the respective priority levels 3, 2, and 1 are P3 = (N3
+1) * T = (2 + 1) * T = 3T, P2 = (N2 +
1) * P3 = (3 + 1) * 3T = 12T, P3 = (N1
+1) * P2 = (4 + 1) * 12T = 60T. Therefore, the polling period P when all the slave stations have the same level
m is (N3 + N2 + N1) * T = (2 + 3 + 4) * T =
Because of 9T, the period P3 of priority level 3 is 3/9 of Pm.
= 1/3 times. Here, T is the polling time per slave station of the master station B.

【0023】以上、説明したように、本実施の形態によ
れば、最高位の優先度レベルLに属する子局のポーリン
グ周期PLが(NL+1)*Tになり、すべての子局が
同一レベルであるときのポーリング周期Pm=N*Tに
比べてポーリング時間が(NL+1)/N倍短縮され
る。
As described above, according to the present embodiment, the polling period PL of the slave stations belonging to the highest priority level L is (NL + 1) * T, and all the slave stations have the same level. The polling time is reduced by (NL + 1) / N times as compared with a certain polling period Pm = N * T.

【0024】なお、本発明は以上説明した実施の形態に
限定されるものではなく、例えば前記実施の形態の各優
先度レベルに属する子局の個数を子局の状況に応じて動
的に変えるようにしてもよく、このように構成したとき
には、高位の優先順位の子局グループおよび下位の優先
順位の子局グループに対するポーリング通信順位を子局
の状況に応じて動的に変えて決定することができ、該決
定した前記ポーリング通信順位をもとに、前記高位の優
先順位の子局グループに対するポーリング通信順位を優
先させ、前記高位の優先順位の子局グループのポーリン
グ周期を全子局が同一レベルとしたときのポーリング周
期より短縮することができる。
The present invention is not limited to the above-described embodiment. For example, the number of slave stations belonging to each priority level in the above-described embodiment is dynamically changed according to the situation of the slave station. When configured in this way, the polling communication order for the higher priority slave station group and the lower priority slave station group may be dynamically changed and determined according to the situation of the slave station. Based on the determined polling communication order, priority is given to the polling communication order for the higher priority slave station group, and the polling cycle of the higher priority slave station group is the same for all slave stations. The polling cycle when the level is set can be shortened.

【0025】[0025]

【発明の効果】以上のように、本発明によれば、子局に
付与された優先順位と、同一優先順位の前記子局の数
と、前記同一優先順位の子局番号とをもとに、前記同一
優先順位の子局グループ毎に、かつ当該同一優先順位内
の前記子局番号毎に、高位の優先順位の子局グループお
よび下位の優先順位の子局グループに対するポーリング
通信順位を決定し、前記ポーリング通信順位をもとに、
前記高位の優先順位の子局グループに対するポーリング
通信順位を優先させ、親局から前記各子局へポーリング
通信を行うようにしたので、前記親局と各子局とのポー
リング通信において前記高位の優先順位の子局グループ
が最優先される一方、下位優先順位の子局に対してはポ
ーリング周期が従来のポーリング周期より長くなるがポ
ーリングが全く行なわれない状態にはならず、前記高位
の優先順位の子局グループに対するポーリング周期は全
子局が同一優先順位としたときのポーリング周期より短
縮され、親局の限られたポーリング回数が有効に活用で
きる効果がある。
As described above, according to the present invention, based on the priority assigned to the slave stations, the number of the slave stations having the same priority, and the slave station number having the same priority. For each slave station group having the same priority, and for each slave station number within the same priority, determine a polling communication order for a slave station group having a higher priority and a slave station group having a lower priority. , Based on the polling communication order,
Since the polling communication order for the higher priority slave station group is prioritized and polling communication is performed from the master station to each slave station, the higher priority is used in polling communication between the master station and each slave station. While the slave station group with the highest priority has the highest priority, the slave station with the lower priority has a longer polling cycle than the conventional polling cycle, but no polling is performed at all. The polling cycle for the slave station group is shorter than the polling cycle when all the slave stations have the same priority, so that the limited number of polls of the master station can be effectively used.

【0026】また、各同一優先順位に属する子局の個数
を子局の状況に応じて動的に変更可能にしたので、高位
の優先順位の子局グループおよび下位の優先順位の子局
グループに対するポーリング通信順位を子局の状況に応
じて動的に変えて決定することが出来、該決定した前記
ポーリング通信順位をもとに、前記高位の優先順位の子
局グループに対するポーリング通信順位を優先させ、前
記高位の優先順位の子局グループのポーリング周期を全
子局が同一レベルとしたときのポーリング周期より短縮
できる効果がある。
Further, the number of slave stations belonging to the same priority can be dynamically changed according to the situation of the slave stations, so that the number of slave stations of higher priority and slave stations of lower priority can be changed. The polling communication order can be dynamically changed and determined according to the situation of the slave station, and based on the determined polling communication order, the polling communication order for the higher priority slave station group is prioritized. In addition, the polling cycle of the slave station group having the higher priority can be shortened than the polling cycle when all the slave stations have the same level.

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

【図1】 本発明の実施の一形態のポーリング通信方法
が適用されるポーリング通信システムの構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a polling communication system to which a polling communication method according to an embodiment of the present invention is applied.

【図2】 本発明の実施の一形態のポーリング通信方法
が適用されるポーリング通信システムの子局の優先度レ
ベル、局番号、個数、ポインタ、局番号リストの具体的
な例を示す説明図である。
FIG. 2 is an explanatory diagram showing a specific example of a priority level, a station number, a number, a pointer, and a station number list of a slave station of a polling communication system to which a polling communication method according to an embodiment of the present invention is applied; is there.

【図3】 本発明の実施の一形態のポーリング通信方法
が適用されるポーリング通信システムの親局の局番号発
生回路が動作したときのポインタの動作と発生する局番
号の関係を示す説明図である。
FIG. 3 is an explanatory diagram showing a relationship between a pointer operation and a generated station number when a station number generation circuit of a master station of a polling communication system to which a polling communication method according to an embodiment of the present invention is applied; is there.

【図4】 本発明の実施の一形態のポーリング通信方法
およびポーリング通信システムの特徴的な動作を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a characteristic operation of the polling communication method and the polling communication system according to the embodiment of the present invention.

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

1……局番号発生回路(局番号発生手段)、11……優
先度レベル、12……同一優先度レベルの子局の個数、
13……ポインタ、14……局番号リスト、B……親
局、C子局。
1 ... station number generating circuit (station number generating means), 11 ... priority level, 12 ... number of slave stations of the same priority level,
13: Pointer, 14: Station number list, B: Master station, C slave station.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ポーリングする子局に優先順位を付す優
先順位付与ステップと、 該優先順位付与ステップで付した子局の優先順位と、同
一優先順位の前記子局の数と、前記同一優先順位の子局
番号とをもとに、前記同一優先順位の子局グループ毎
に、かつ当該同一優先順位内の前記子局番号毎に、高位
の優先順位の子局グループに対するポーリング通信順位
を優先させ、前記高位の優先順位の子局グループおよび
下位の優先順位の子局グループに対するポーリング通信
順位を決定する優先順位決定ステップと、 該優先順位決定ステップで決定した前記ポーリング通信
順位をもとに、前記高位の優先順位の子局グループに対
するポーリング周期を全子局が同一優先順位としたとき
のポーリング周期より短縮してポーリング通信を行うポ
ーリング通信ステップとを備えたポーリング通信方法。
1. A priority assigning step for assigning priorities to slave stations to be polled, the priority of slave stations assigned in the priority assigning step, the number of the slave stations having the same priority, and the same priority. Based on the slave station number of each of the slave station groups of the same priority, and for each of the slave station numbers within the same priority, the priority of the polling communication for the slave station group of the higher priority. A priority determining step of determining a polling communication order for the higher priority slave station group and a lower priority slave station group; based on the polling communication order determined in the priority determining step, Polling that performs polling communication with a shorter polling cycle for a higher priority slave station group than when all slave stations have the same priority Polling communication method and a signal step.
【請求項2】 前記優先順位決定ステップは、 同一優先順位の子局の数を設定する同一優先順位子局数
設定ステップと、 前記同一優先順位の各子局の子局番号を設定する子局番
号設定ステップと、 前記同一優先順位の子局のうち何番目までの子局にポー
リング通信順位を決定したかを示すポインタを設定する
ポインタ設定ステップと、 前記同一優先順位子局数設定ステップで設定した子局の
数をもとに高位の優先順位の子局の数を判定する子局数
判定ステップと、 該子局数判定ステップで判定した子局の数と、前記ポイ
ンタ設定ステップで設定したポインタの値と、前記子局
番号設定ステップで設定した各子局の子局番号とをもと
に、前記同一優先順位の子局グループ毎に、かつ当該同
一優先順位内の前記子局番号毎に、前記高位の優先順位
の子局グループおよび下位の優先順位の子局グループに
対するポーリング通信順位を決定するポーリング通信順
位決定ステップを備えていることを特徴とする請求項1
記載のポーリング通信方法。
2. The priority order determining step, wherein the same priority order slave station number setting step for setting the number of slave stations having the same priority order, and a slave station for setting the slave station number of each slave station having the same priority order A number setting step; a pointer setting step of setting a pointer indicating to which of the slave stations of the same priority order the polling communication order has been determined; and a pointer setting step of setting the same priority slave station number setting step. The number of slave stations determining the number of higher priority slave stations based on the number of slave stations determined, the number of slave stations determined in the slave station number determination step, and the number of slave stations determined in the pointer setting step Based on the value of the pointer and the slave station number of each slave station set in the slave station number setting step, for each slave station group having the same priority, and for each slave station number within the same priority. The higher priority order Claim, characterized in that it comprises a child station group and a lower slave station polling communication priority determination step of determining a polling communication priority for the group of priority 1
The polling communication method described.
【請求項3】 各同一優先順位に属する子局の個数を子
局の状況に応じて動的に変える子局数変更ステップを備
えていることを特徴とする請求項1または請求項2記載
のポーリング通信方法。
3. The mobile station according to claim 1, further comprising a mobile station number changing step of dynamically changing the number of mobile stations belonging to the same priority according to the status of the mobile station. Polling communication method.
【請求項4】 1つの親局と複数の子局との間でポーリ
ング通信を行、前記親局が前記複数の子局から情報の収
集を行うポーリング通信システムにおいて、 前記親局は、 子局に付された優先順位と、同一優先順位の前記子局の
数と、前記同一優先順位の子局番号とをもとに、前記同
一優先順位の子局グループ毎に、かつ当該同一優先順位
内の前記子局番号毎に、前記高位の優先順位の子局グル
ープおよび下位の優先順位の子局グループに対するポー
リング通信順位を決定し、前記高位の優先順位の子局グ
ループに対するポーリング通信順位を優先させ、当該高
位の優先順位の子局グループに対するポーリング周期を
全子局が同一優先順位としたときのポーリング周期より
短縮可能にする局番号発生手段を備えていることを特徴
とするポーリング通信システム。
4. A polling communication system in which polling communication is performed between one master station and a plurality of slave stations, and the master station collects information from the plurality of slave stations, wherein the master station is a slave station. , The number of the slave stations having the same priority, and the slave station number having the same priority, for each of the slave station groups having the same priority, and within the same priority. For each of the slave station numbers, determine the polling communication order for the higher priority slave station group and the lower priority slave station group, and prioritize the polling communication order for the higher priority slave station group. And a station number generating means for making the polling cycle for the higher priority slave station group shorter than the polling cycle when all the slave stations have the same priority. Communication system.
JP10198551A 1998-07-14 1998-07-14 Polling communication method and system Pending JP2000032012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10198551A JP2000032012A (en) 1998-07-14 1998-07-14 Polling communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10198551A JP2000032012A (en) 1998-07-14 1998-07-14 Polling communication method and system

Publications (1)

Publication Number Publication Date
JP2000032012A true JP2000032012A (en) 2000-01-28

Family

ID=16393062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10198551A Pending JP2000032012A (en) 1998-07-14 1998-07-14 Polling communication method and system

Country Status (1)

Country Link
JP (1) JP2000032012A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158680A (en) * 2000-09-08 2002-05-31 Fisher Rosemount Syst Inc Searching algorithm for foundation field bus protocol
WO2006063500A1 (en) * 2004-12-17 2006-06-22 Zte Corporation A grouped polling method based on guarantee strategy of fixed quality of service (qos) in the wireless local area network
WO2015020148A1 (en) * 2013-08-07 2015-02-12 三菱電機株式会社 Control device, control system, control method, and program
CN114265808A (en) * 2021-12-22 2022-04-01 杭州和利时自动化有限公司 Communication method, device, Profibus DP master station and medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158680A (en) * 2000-09-08 2002-05-31 Fisher Rosemount Syst Inc Searching algorithm for foundation field bus protocol
WO2006063500A1 (en) * 2004-12-17 2006-06-22 Zte Corporation A grouped polling method based on guarantee strategy of fixed quality of service (qos) in the wireless local area network
WO2015020148A1 (en) * 2013-08-07 2015-02-12 三菱電機株式会社 Control device, control system, control method, and program
JP2015035648A (en) * 2013-08-07 2015-02-19 三菱電機株式会社 Control device, control system, control method, and program
CN114265808A (en) * 2021-12-22 2022-04-01 杭州和利时自动化有限公司 Communication method, device, Profibus DP master station and medium

Similar Documents

Publication Publication Date Title
CN112764407B (en) Distributed control non-periodic communication method
Nolte et al. Real-time server-based communication with CAN
WO2004066045A1 (en) Industrial control network providing ethernet protocl overlayed with a transmission schedule
JPH10240659A (en) Method for allocating access right to shared resource to plural elements, and device and system therefor
Grenier et al. Fine-tuning MAC-level protocols for optimized real-time QoS
CN111836312B (en) Resource reservation method and equipment based on competition
Joshi et al. The multi-domain frame packing problem for CAN-FD
JP2000032012A (en) Polling communication method and system
US7539206B2 (en) Communication apparatus and method for supporting carrier sense multiple access/collision detection
CN114039936B (en) Virtual power plant communication service flow scheduling method and device based on time sensitivity
CN114697270A (en) EPA network model-based arbitration method, system, equipment and medium
GB2415855A (en) Variable network address lengths
JP2007081628A (en) Method, program, and device for designing network
US6108344A (en) Method, means and system for communicating on a shared transmission medium
CN114285541A (en) Time-triggered Ethernet schedule generation method based on time delay error
Wang et al. A priority-based distributed channel access mechanism for control over CAN-like networks
KR100583811B1 (en) The can message identifier allocation method and the can message transfer arbitration method for the humanoid robot
CN112688868A (en) Periodic sensing TSN routing method for power Internet of things
JP3436657B2 (en) Access control method in communication system
Ding Scheduling approach for static segment using hybrid genetic algorithm in FlexRay systems
CN113873473B (en) Method, system, equipment and train for realizing low-delay resource scheduling
Shokry et al. Hardware EDF scheduler implementation on controller area network controller
JPH11284642A (en) Data transmission system, polling method, and polling frequency setting method
Zanuso et al. Bulk data transfer in Controller Area Networks for Industry 4.0
JP2570192B2 (en) Loop type local area network system