JPH0773266B2 - Polling control system - Google Patents
Polling control systemInfo
- Publication number
- JPH0773266B2 JPH0773266B2 JP62149423A JP14942387A JPH0773266B2 JP H0773266 B2 JPH0773266 B2 JP H0773266B2 JP 62149423 A JP62149423 A JP 62149423A JP 14942387 A JP14942387 A JP 14942387A JP H0773266 B2 JPH0773266 B2 JP H0773266B2
- Authority
- JP
- Japan
- Prior art keywords
- slave station
- polling
- slave
- area
- 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.)
- Expired - Lifetime
Links
Landscapes
- Small-Scale Networks (AREA)
Description
【発明の詳細な説明】 〔概要〕 本発明はメモリ装置内の各子局のポーリングアドレスの
格納とともに一連の順序付けられた子局の当該順序の前
及び後の子局のポーリング・アドレスを格納しているメ
モリ領域の領域アドレスの格納を行っているため、当該
子局のポーリングの優先順位及び順序の変更が容易であ
る。DETAILED DESCRIPTION OF THE INVENTION Overview The present invention stores the polling address of each slave station in a memory device as well as the polling addresses of the slave stations before and after the sequence of a sequence of slave stations. Since the area address of the existing memory area is stored, it is easy to change the polling priority and order of the slave station.
本発明はポーリング制御方式に係り、特に親局と分岐接
続された複数の子局を優先順位の定められた複数の子局
群に分け、当該子局群に属する一連の順序付けられた子
局について、少なくとも各子局のポーリング・アドレ
ス、各子局群、順序に関する情報をメモリ装置に格納
し、当該情報を読み出してポーリングを行うポーリング
制御方式に関する。The present invention relates to a polling control method, and in particular, a plurality of slave stations branch-connected to a master station is divided into a plurality of slave station groups with a predetermined priority order, and a series of ordered slave stations belonging to the slave station group is divided. The present invention relates to a polling control method in which at least information about polling addresses of each slave station, each slave station group, and order is stored in a memory device, and the information is read to perform polling.
従来、親局と分岐接続された複数の子局について、親局
がポーリングを行って子局に送信の呼びかけを行い、子
局が当該ポーリングに対して応答を行うことにより回線
のリンクを確立してデータの伝送を行う回線形態があ
る。Conventionally, with respect to a plurality of slave stations that are branched and connected to the master station, the master station polls and calls the slave station for transmission, and the slave station responds to the polling to establish a line link. There is a line form in which data is transmitted by using this method.
当該回線形態においては、各子局の送受信の頻度に従っ
てポーリング回数の優先順位が定められており、当該優
先順位に従って親局からポーリング信号が出力されるよ
うになっていた。In the line configuration, the priority order of the number of polling is determined according to the transmission / reception frequency of each slave station, and the polling signal is output from the master station according to the priority order.
このポーリングの優先順位としては例えば第3図に示す
ように複数の子局を、複数の子局群に分けるとともに、
当該子局群にランク付けを行い優先順位の高い順にレベ
ル1からレベルXまでを対応させる。当該優先順位は通
常ポーリング回数の頻度の高い順に設定されている。各
子局群内においては一連の順序付けられた複数の子局を
有している。As the priority order of this polling, for example, as shown in FIG. 3, a plurality of slave stations are divided into a plurality of slave station groups, and
The slave stations are ranked, and levels 1 to X are associated in descending order of priority. The priorities are set in descending order of the frequency of normal polling. Within each slave station group, there is a series of ordered slave stations.
例えば第3図においてはポーリング・アドレスM1で指定
される子局が最も優先順位が高く、Mnで指定される子局
も最も優先順位が低いものとする。For example, in FIG. 3, it is assumed that the slave station designated by the polling address M1 has the highest priority and the slave station designated by Mn also has the lowest priority.
このような各子局のポーリング・アドレス、各子局群及
び順序等に関する情報は親局内のメモリ装置内に格納さ
れ、メモリ装置からこれらの情報を読み出してポーリン
グを行っていた。Such information regarding the polling address of each slave station, each slave station group, order, etc. is stored in the memory device in the master station, and such information is read from the memory device for polling.
従来、第6図に示すようにこれらの情報をメモリ装置内
に格納してポーリングを行うポーリング制御方式があっ
た。Conventionally, as shown in FIG. 6, there has been a polling control system in which such information is stored in a memory device and polling is performed.
本例に係るポーリング制御方式にあっては、第6図に示
すようにメモリ装置内に優先順位の定められた複数の子
局群を示すメモリ領域(セル領域)161,…16xを設ける
とともに、当該子局群を示すメモリ領域161,…16xには
当該子局群に属する順序付けられた一連の子局を示す為
に子局群に属する子局のうち順序の先頭にある子局のポ
ーリング・アドレスが格納されているメモリ領域の領域
アドレス(セル・アドレス)と、前記順序の最後にある
子局のポーリング・アドレスが格納されているメモリ領
域の領域アドレスとを格納して優先順位を指定するよう
にしていた。In the polling control method according to the present example, as shown in FIG. 6, a memory area (cell area) 161, ... 16x indicating a plurality of slave station groups having priorities is provided in the memory device, and In the memory area 161, ... 16x indicating the slave station group, in order to indicate an ordered series of slave stations belonging to the slave station group, polling of the slave station at the head of the sequence among the slave stations belonging to the slave station group is performed. The area address (cell address) of the memory area where the address is stored and the area address of the memory area where the polling address of the slave station at the end of the order is stored are stored to specify the priority order. Was doing.
また、各子局のポーリング・アドレスが格納されている
各メモリ領域131,…13nは、当該子局の子局群中の順序
に従いメモリ装置内に子局群毎のメモリ領域171,…17x
に格納することにより当該子局群と一連の子局との対応
と子局群中での子局の順序に関する情報を格納してい
た。Further, the memory areas 131, ... 13n in which the polling addresses of the respective slave stations are stored are stored in the memory device according to the order of the slave stations of the slave station in the memory device.
The information about the correspondence between the slave station group and a series of slave stations and the order of the slave stations in the slave station group is stored by storing in the slave station group.
また、従来のポーリング制御方式にあっては、子局につ
いての優先順位及び順序を変更しようとする場合、例え
ば第3図の子局37の優先順位を変更する場合には、第7
図に示すような手順を行う。Further, in the conventional polling control method, when changing the priority order and order of the slave stations, for example, when changing the priority order of the slave station 37 in FIG.
Follow the procedure shown in the figure.
すなわち、本例ではまず子局37をその属する子局群から
切り離す必要がある。子局37を切り離すには、ステップ
S11で子局37の属する子局群であるレベル2に属する子
局37の子局用メモリ領域内の内容を読み出す。That is, in this example, first, the slave station 37 needs to be separated from the slave station group to which it belongs. Steps to disconnect the slave station 37
In S11, the contents in the slave station memory area of the slave station 37 belonging to the level 2, which is the slave station group to which the slave station 37 belongs, are read.
ステップS12で切り離す子局37の子局用メモリ領域を除
いて、当該子局群の属する子局の子局用メモリ領域を並
べ直し、子局36の子局用メモリ領域以降に格納されてい
る子局の子局用領域メモリの内容を領域メモリを1つず
つずらして詰めて格納し直さなければならない。Except for the slave station memory area of the slave station 37 that is disconnected in step S12, the slave station memory areas of the slave stations to which the slave station group belongs are rearranged and stored in the slave station 36 and subsequent slave station memory areas. The contents of the slave station area memory of the slave station must be stored again by shifting the area memories one by one.
ステップS13ではステップS12で並べ直したために子局群
を示すために当該子局群の属する子局の最後の領域アド
レスを変更しなければならない。もし当該子局群の最初
の子局を除く場合には最初及び最後の領域アドレスを変
更する必要がある。In step S13, the last area address of the slave station to which the slave station group belongs must be changed to indicate the slave station group because the rearrangement has been performed in step S12. If the first slave station of the relevant slave station group is excluded, it is necessary to change the first and last area addresses.
次に、当該子局37を挿入する。Next, the child station 37 is inserted.
例えば当該子局37をレベル1の子局群に属する子局33の
次に挿入しようとする場合には、ステップS14で挿入す
る子局の属する子局群であるレベル1の子局群に対応す
る子局のメモリ領域を読み出す。For example, when the slave station 37 is to be inserted next to the slave station 33 belonging to the slave station group of level 1, it corresponds to the slave station group of level 1 which is the slave station group to which the slave station to be inserted in step S14 belongs. Read the memory area of the slave station.
ステップS15で挿入しようとする子局37の内容を読み出
した子局33のメモリ領域内に書き込み、以下子局33の内
容を子局34のメモリ領域に書き込み以下順序ずらせて子
局のメモリ領域内に内容を書き込んでいく。In the memory area of the slave station 33, the contents of the slave station 37 to be inserted in step S15 are written in the memory area of the slave station 33, and the contents of the slave station 33 are written in the memory area of the slave station 34. Write the contents in.
さらに、ステップS16で子局群を示すために当該子局群
に属する最後の子局の領域アドレスを書き換える必要が
ある。Further, in step S16, it is necessary to rewrite the area address of the last slave station belonging to the slave station group in order to indicate the slave station group.
ところで、従来のポーリング制御方式にあっては、子局
についての優先順位及び順序を変更しようとする場合に
は以上述べたように、順位の変更の対象となっている子
局のメモリ領域内の内容だけでなく、それ以外の子局の
メモリ領域内の内容及び子局群を示すメモリ領域内の内
容までも変更しなければならず優先順位の変更に手間及
び時間がかかるため、ポーリングの順序及び優先順位の
変更が非効率的であるという問題点を有していた。これ
は、従来の方式にあっては各子局群中の子局の順位をメ
モリ装置内に格納する順序により表示するようにしてい
るためである。By the way, in the conventional polling control method, when the priority order and order of the slave stations are to be changed, as described above, in the memory area of the slave station whose order is to be changed, Not only the contents but also the contents in the memory area of other slave stations and the contents in the memory area indicating the slave station group must be changed, so changing the priority order takes time and effort, so the polling order Also, there was a problem that changing the priority was inefficient. This is because, in the conventional method, the order of the slave stations in each slave station group is displayed in the order of storage in the memory device.
そこで、本発明は以上の問題点を解決するためになされ
たものであり、効率的に優先順位及び順序の変更を行う
ことができるポーリング制御方式を提供することを目的
としてなされたものである。Therefore, the present invention has been made in order to solve the above problems, and an object thereof is to provide a polling control method capable of efficiently changing the priority order and the order.
以上の問題点を解決するため本発明は第1図に示すよう
に親局1と分岐接続された複数の子局3を優先順位の定
められた複数の子局群に分け、当該子局群に属する一連
の順序付けられた子局3について、各子局3に関する情
報を親局1に設けられたメモリ装置2に格納し、当該情
報を読み出してポーリングを行うポーリング制御方式に
おいて、前記メモリ装置2内の各子局3のポーリング・
アドレスを格納する各子局用メモリ領域31,…3n内に前
記順序に従って当該子局3の前及び後の子局3に対応す
る子局用メモリ領域のメモリ装置2のメモリ上の格納位
置を表す領域アドレスを各々格納する前子局領域アドレ
ス格納部41,…4n及び後子局領域アドレス格納部51,…5n
を設けたものである。In order to solve the above-mentioned problems, the present invention divides a plurality of slave stations 3 branch-connected to the master station 1 into a plurality of slave station groups having a priority order, as shown in FIG. In the polling control method in which the information about each slave station 3 is stored in the memory device 2 provided in the master station 1 and the information is read to perform polling for the series of ordered slave stations 3 belonging to the memory device 2 Polling of each slave station 3 in
In the memory area for each slave station 31, ... 3n for storing the addresses, the storage positions in the memory of the memory device 2 of the slave station memory areas corresponding to the slave stations 3 before and after the slave station 3 are stored in the memory according to the order. 4n for front slave station area address storage units, and 4n for rear slave station area address storage units 51, ...
Is provided.
本方式では、ある子局3を切り離すには、当該子局3の
メモリ領域31,…3nを読み出し、当該領域内に設けられ
た前子局領域アドレス格納部41,…4nに格納されている
領域アドレスから当該子局の1つ前の子局のメモリ領域
を読み出し当該領域内に設けられた後子局領域アドレス
格納部51,…5nに切り離す子局3の後子局領域アドレス
格納部に格納されている領域アドレスを格納する。ま
た、切り離す子局の後子局領域アドレス格納部51,…5n
に格納されている後の子局のメモリ領域を読み出し、当
該領域内に設けられている前子局領域アドレス格納部4
1,…4nに切り離される子局の1つ前の子局の領域アドレ
スを格納すれば良い。In this method, in order to disconnect a certain slave station 3, the memory area 31, ... 3n of the slave station 3 is read and stored in the previous slave station area address storage unit 41, ... 4n provided in the area. Reads the memory area of the slave station immediately preceding the slave station from the area address and separates it into the rear slave station area address storage units 51, ... Stores the stored area address. In addition, the slave station area address storage units 51, ...
The memory area of the subsequent slave station stored in the area is read, and the previous slave station area address storage unit 4 provided in the area is read.
It suffices to store the area address of the immediately preceding slave station to be separated into 1, ... 4n.
一方、或子局3を所定の子局の後に挿入する場合には、
当該或子局のポーリング・アドレスを格納している子局
用メモリ領域31,…3nの領域アドレスを挿入しようとす
る1つ前の子局、すなわち所定の子局の後子局領域アド
レス格納部51,…5nに格納し、挿入しようとする子局の
前子局領域アドレス格納部41,…4nに挿入しようとする
1つ前の子局の領域アドレスを格納し、挿入しようとす
る子局の後子局領域アドレス格納部には挿入しようとす
る1つ後の子局の領域アドレスを格納し、挿入しようと
する1つ後の子局の前子局領域アドレス格納部に挿入し
ようとする子局の領域アドレスを格納すれば良い。On the other hand, when inserting a certain slave station 3 after a predetermined slave station,
The previous slave station into which the area address of the slave station memory area 31, ... 3n in which the polling address of the certain slave station is stored, that is, the slave station area address storage unit after the predetermined slave station is inserted 51, ... 5n, the slave station area address storage unit of the slave station to be inserted 41 ... 4n The slave station area address of the immediately preceding slave station to be inserted and stored in the slave station to be inserted The area address of the succeeding slave station to be inserted is stored in the succeeding slave station area address storage section, and is inserted into the preceding slave station area address storage section of the succeeding slave station to be inserted. The area address of the slave station may be stored.
尚、本方式にあっては、ポーリングの指示があると、メ
モリ装置2内に格納されている子局群についての情報か
ら、優先順位の高い子局群がまず読み出される。さら
に、当該メモリ装置2内に格納されている当該子局群に
属する順序付けられた一連の子局3のうち、当該順序の
最初の子局3に対応する子局用メモリ領域3m内に格納さ
れている当該子局3に対応すポーリング・アドレスが読
み出され、当該ポーリング・アドレスによりポーリング
が行われる。In this system, when there is a polling instruction, the slave station group having a higher priority is first read from the information about the slave station group stored in the memory device 2. Further, among the series of ordered slave stations 3 belonging to the slave station group stored in the memory device 2, the slave station memory area 3m corresponding to the first slave station 3 in the order is stored. The polling address corresponding to the slave station 3 in question is read out, and polling is performed using the polling address.
また、次のポーリングの指示は前記メモリ領域内に格納
されている。または外部から設定された子局群間の優先
順位の情報に従い次に優先順位の高い子局群の情報が読
みだされ、前述したように当該子局群に属する一連の子
局の順序のうち最初の順序に対応する子局3に対応する
子局用メモリ領域3p内に格納されている当該子局3に対
応するポーリング・アドレスが読み出されることにな
る。The next polling instruction is stored in the memory area. Or, the information of the next highest priority slave station group is read according to the priority information between the slave station groups set from the outside, and as described above, of the sequence of the slave stations belonging to the slave station group. The polling address corresponding to the slave station 3 stored in the slave station memory area 3p corresponding to the slave station 3 corresponding to the first order is read.
再び前述した子局群に対するポーリングの指示があった
場合には、最初に読み出した前記子局用メモリ領域3m内
の後子局領域アドレス格納部5mに格納されていた前記順
序の次の子局3に対応する領域アドレスが読みだされ、
当該メモリ領域内に格納されている対応する子局3のポ
ーリング・アドレスが読み出されることになる。When there is an instruction to poll the slave station group again, the next slave station in the order stored in the subsequent slave station area address storage unit 5m in the slave station memory area 3m that is read first The area address corresponding to 3 is read out,
The polling address of the corresponding slave station 3 stored in the memory area is read.
こうして順序メモリ装置の各子局のメモリ領域に設けら
れた後子局領域アドレス格納部に格納されている領域ア
ドレスに従い、前記順序に従いポーリングが行われるこ
とになる。In this way, polling is performed according to the above order according to the area address stored in the rear child station area address storage unit provided in the memory area of each child station of the sequential memory device.
次に本発明の実施例を説明する。 Next, examples of the present invention will be described.
第2図に実施例に係るブロック図を示す。FIG. 2 shows a block diagram according to the embodiment.
本実施例に係る親局18は各子局のポーリング・アドレス
の読み出しの指示を行うポーリング指示部17と、各子局
のポーリング・アドレス、一連の順序付けられた子局を
有する子局群、優先順位及び順序等の情報を格納したメ
モリ装置13と、メモリ装置13から読み出されたポーリン
グ・アドレスから得られたポーリング信号を送信する送
信部14と、各子局から送信された信号やデータの受信を
行う受信部15と、受信部15が親局18からのポーリング信
号に対する応答信号があるか否かを検出する応答信号検
出手段16とを有している。The master station 18 according to the present embodiment has a polling instruction section 17 for instructing to read the polling address of each slave station, a polling address of each slave station, a slave station group having a series of ordered slave stations, and priority. A memory device 13 that stores information such as rank and order, a transmission unit 14 that transmits a polling signal obtained from a polling address read from the memory device 13, and a signal or data transmitted from each slave station. It has a receiving section 15 for receiving and a response signal detecting means 16 for detecting whether or not the receiving section 15 has a response signal to the polling signal from the master station 18.
ポーリング指示部17は応答信号検出手段16が応答信号を
検出した場合に発するコマンドに基づいてポーリングの
指示を行う監視用CPU11と、当該監視用CPU11からの指示
によりメモリ装置13に予め定められた計画に基づいて各
子局群に対するポーリングの全回数について各子局のポ
ーリング・アドレスの読み出し指示を行うスケデューラ
12とを有している。The polling instructing unit 17 is a monitoring CPU 11 that issues an instruction for polling based on a command issued when the response signal detecting unit 16 detects a response signal, and a preset plan in the memory device 13 according to an instruction from the monitoring CPU 11. A scheduler that gives instructions to read the polling address of each slave station based on the total number of polls for each slave station.
It has 12 and.
前記メモリ装置13には第4図に示すように各子局のポー
リング・アドレス、各子局群に属する一連の子局につい
ての情報等が格納されている。As shown in FIG. 4, the memory device 13 stores the polling address of each slave station, information about a series of slave stations belonging to each slave station group, and the like.
第4図において、子局群用メモリ領域601,…60nは当該
子局群のポーリング回数の頻度の高い順に定められた優
先順位に格納され、当該各メモリ領域(メモリセルの領
域)601,…60nには当該子局群に属する一連の順序付け
られた子局の先頭の子局のポーリング・アドレスが格納
されている子局用メモリ領域の領域アドレス(セルアド
レス)が先頭領域アドレス格納部701,…70nに格納さ
れ、前記順序の最終の子局のポーリング・アドレスが格
納されている子局用メモリ領域の領域アドレスが最終領
域アドレス格納部801,…80nに格納されている。また、
各子局群用メモリ領域601,…60nには現在ポーリングを
行った子局に対する領域アドレスを現領域アドレス格納
部901,…90nに格納して、次に当該子局群のポーリング
の順番になった場合のポーリングを行う子局を明定して
いる。In FIG. 4, the slave station group memory areas 601, ... 60n are stored in the priority order determined in descending order of the frequency of polling of the slave station group, and each memory area (memory cell area) 601 ,. In 60n, the area address (cell address) of the slave station memory area in which the polling address of the head slave station of the series of ordered slave stations belonging to the slave station group is stored is the head area address storage unit 701, The area address of the slave station memory area in which the polling address of the last slave station is stored in the final area address storage unit 801, ... 80n. Also,
The memory area 601, ..., 60n for each slave station group stores the area address for the slave station that is currently polled in the current area address storage unit 901, ... 90n, and then becomes the polling order for the slave station group. In case of polling, the slave station to be polled is specified.
さらに、メモリ装置13には第4図に示すように各子局の
ポーリング・アドレスM1,…Mnを格納する各子局用メモ
リ領域301,…30n内に前記順序に従って当該子局の前及
び後の子局が存在する場合には当該子局に対する子局用
メモリ領域301,…30nの領域アドレスを各々格納する前
子局領域アドレス格納部401,…40n(以下「B部」とい
う)及び後子局領域アドレス格納部501,…50n(以下
「A部」という)を各子局用メモリ領域301,…30n内に
各々設けた。Further, as shown in FIG. 4, the memory device 13 stores the polling addresses M1, ... Mn of each slave station in the slave station memory areas 301 ,. 40n (hereinafter referred to as "B section") and rear slave station area address storage units 401, ... which store the area addresses of the slave station memory areas 301, ... 30n for the slave station respectively. .. 50n (hereinafter referred to as "A section") are provided in the respective slave station memory areas 301 ,.
本実施例は次のように作動する。This embodiment operates as follows.
本方式にあっては、ポーリング指示部17内の 監視用CPU11からのポーリング指示によりスケデューラ1
2は予め設定された計画に従いメモリ装置13に読み出し
の指示を行う。メモリ装置13はスケデューラ12からの指
示があると、ポーリングの回数についての優先順位に従
い、まず最も優先順位の高いレベル1の子局群に関する
情報が格納されている子局群用メモリ領域601を読み出
し、当該情報に基づいて、当該子局群に属する一連の順
序付けられた子局のうち先頭の子局に対応する子局用メ
モリ領域、例えば子局用メモリ領域301に格納されてい
る当該子局のポーリング・アドレスが読み出される。In this method, the scheduler 1 is sent by the polling instruction from the monitoring CPU 11 in the polling instruction unit 17.
2 instructs the memory device 13 to read according to a preset plan. When instructed by the scheduler 12, the memory device 13 first reads the slave station group memory area 601 in which the information about the slave station group of the highest priority level 1 is stored according to the priority order of the number of polling. , Based on the information, a slave station memory area corresponding to the first slave station among a series of ordered slave stations belonging to the slave station group, for example, the slave station stored in the slave station memory area 301. The polling address of is read.
当該読み出されたポーリング・アドレスは送信部14によ
り各子局にポーリング信号として送出される。The read polling address is transmitted as a polling signal by the transmitter 14 to each slave station.
また、次のポーリングの指示は前記メモリ領域内に格納
されている子局群間の優先順位の情報に基づいて次に優
先順位の高い子局群の情報が読み出されて、前述したよ
うに当該子局群に属する一連の子局の順序のうち先頭の
順序に対応する子局に対応する子局用メモリ領域内に格
納されている当該子局に対応するポーリング・アドレス
が読み出されることになる。Further, the next polling instruction is such that the information of the next highest priority slave station group is read based on the priority information between the slave station groups stored in the memory area. The polling address corresponding to the slave station stored in the slave station memory area corresponding to the slave station corresponding to the first order in the sequence of the slave stations belonging to the slave station group is read out. Become.
このようにして再びポーリング指示部17が優先順位の最
も高い子局群を読み出した場合には、最初に読み出した
子局用メモリ領域30m内の後子局領域アドレス格納部50m
に格納されていた前記順序の次の子局3に対応する領域
アドレスが読みだされ対応する子局3のポーリング・ア
ドレスが読み出されることになる。In this manner, when the polling instruction unit 17 again reads the slave station group having the highest priority, the subsequent slave station area address storage unit 50m in the slave station memory area 30m that is read first
The area address corresponding to the next slave station 3 stored in the above-mentioned order is read out, and the polling address of the corresponding slave station 3 is read out.
当該方式により例えば第3図に示すようにレベル2の子
局群に属する子局37を切り離して、当該子局をレベル1
の子局群の子局33の前部分に挿入するような変更は次の
ように行う。By this method, for example, as shown in FIG. 3, the slave station 37 belonging to the group of slave stations of level 2 is separated and the slave station is set to level 1
A change to be inserted in the front part of the slave station 33 in the slave station group is performed as follows.
まず、第5図に示したように、ステップS1において切り
離そうとする子局37に対応する子局用メモリ領域307の
A部(後子局領域アドレス格納部)507内に格納されて
いる領域アドレスを1つ前の子局36に対応する子局用メ
モリ領域306内に設けられたA部506に格納する。First, as shown in FIG. 5, it is stored in the A section (rear slave station area address storage section) 507 of the slave station memory area 307 corresponding to the slave station 37 to be disconnected in step S1. The area address is stored in the A section 506 provided in the child station memory area 306 corresponding to the immediately preceding child station 36.
またステップS2で切り離そうとする子局37に対応する子
局用メモリ領域内307のB部(前子局領域アドレス格納
部)407内に格納されている領域アドレスを当該順序1
つ後の子局38に対応する子局用メモリ領域308内のB部4
08に格納する。Further, the area address stored in the B section (previous slave station area address storage section) 407 of the slave station memory area 307 corresponding to the slave station 37 to be separated in step S2 is set to the order 1
B section 4 in the slave station memory area 308 corresponding to the succeeding slave station 38
Store in 08.
これによって、ポーリング指示部17が子局37の属する子
局群の子局36をポーリングした後、次に当該子局群をポ
ーリングする場合には、当該子局36に対応する子局用メ
モリ領域306内のA部506には、切り離そうとする子局37
の領域アドレスは格納されておらず、子局37を飛び越し
た子局38の領域アドレスが格納されているため、子局36
についてのポーリングが終了した場合には、次に当該子
局群のポーリングの順番になった場合には子局37はポー
リングされずに切り離されることになる。As a result, when the polling instruction unit 17 polls the slave station 36 of the slave station group to which the slave station 37 belongs, and when polling the slave station group next time, the slave station memory area corresponding to the slave station 36. A station 506 in 306 has a slave station 37 to be separated.
The area address of the slave station 36 is not stored, but the area address of the slave station 38 that has skipped the slave station 37 is stored.
When the polling of the slave station is completed, the slave station 37 will be disconnected without being polled when the polling order of the slave station group comes next.
一方、当該子局37をレベル1の子局群に属する子局33の
前に挿入する場合について考える。On the other hand, consider a case where the slave station 37 is inserted before the slave station 33 belonging to the level 1 slave station group.
ステップS3で挿入する部分の1つ前の子局32に対する子
局用メモリ領域302のA部502内に格納されている領域ア
ドレスを挿入しようとする子局37のA部507に格納す
る。In step S3, the area address stored in the A section 502 of the slave station memory area 302 for the immediately previous slave station 32 is stored in the A section 507 of the slave station 37 to be inserted.
ステップS4で切り離した子局37を挿入しようとする部分
の1つ後の子局33は子局用アドレス領域303のB部403内
に格納されている領域アドレスを挿入しようとする子局
37のB部407内に書き込む。The slave station 33 after the portion where the slave station 37 separated in step S4 is to be inserted is the slave station in which the area address stored in the B portion 403 of the slave station address area 303 is to be inserted.
Write in B section 407 of 37.
ステップS5において挿入する部分の1つ後の子局33に対
応する子局用メモリ領域302のB部402と挿入する部分の
1つ前の子局32の子局用メモリ領域302のA部502に各々
挿入しようとする子局37の子局用メモリ領域307の領域
アドレスを新たに格納させる。In step S5, the B portion 402 of the slave station memory area 302 corresponding to the slave station 33 after the portion to be inserted and the A portion 502 of the slave station memory area 302 of the slave station 32 immediately before the portion to be inserted are 502. The area address of the child station memory area 307 of the child station 37 to be inserted into each of the two is newly stored.
これによって、ポーリング指示部17がレベル1に対応す
る子局群の子局32についてポーリングを行った後再び当
該子局群についてポーリング指示部17からポーリングの
指示を受けた場合には第4図に示すようにレベル1の子
局群に関する情報を格納している子局群用メモリ領域60
1に格納されている現在ポーリングを行っている子局に
ついての情報に基づいて当該子局に対応する子局用メモ
リ領域302のB部502に格納されている領域アドレスは子
局33の領域アドレスの代わりに新たに挿入された子局37
に対応する領域アドレスが格納されているため指示は当
該子局37に行われることになる。また、子局37について
ポーリングが行われた後は当該子局37に対応する子局用
メモリ領域内307のB部507に格納されている領域アドレ
スのさし示す次の子局33に進むことになる。As a result, when the polling instructing unit 17 polls the slave station 32 of the slave station group corresponding to level 1 and then receives a polling instruction from the polling instructing unit 17 again for the slave station group, the polling instruction unit 17 is shown in FIG. As shown, a slave station group memory area 60 that stores information about level 1 slave stations
Based on the information about the slave station that is currently polling stored in 1, the area address stored in the B section 502 of the slave station memory area 302 corresponding to the slave station is the area address of the slave station 33. Newly inserted slave station in place of 37
Since the area address corresponding to is stored, the instruction is given to the slave station 37. After the slave station 37 is polled, proceed to the next slave station 33 indicating the area address stored in the B area 507 of the slave station memory area 307 corresponding to the slave station 37. become.
本方式にあっては、各子局のポーリング・アドレスを格
納している各メモリ領域内に前子局領域アドレス格納部
及び後子局領域アドレス格納部を設け、当該格納部に夫
々該当する領域アドレスを格納することにより、各子局
群内の子局の順序を表示するようにしているため、メモ
リ装置内に当該順次に従って各子局のポーリング・アド
レスを格納することにより順序を表示する必要がない。
したがって、優先順位や順序を変更する際には、従来の
ように変更の対象となる子局群に属する全子局の順序を
変更する必要はなく、変更の対象となる子局及びその前
後の前子局領域アドレス格納部または後領域アドレス格
納部に格納されている領域アドレスを変更するだけで順
序の変更が可能であり、容易に、高速に、かつ確実にポ
ーリングの順序の変更を行うことができる。In this method, a front slave station area address storage unit and a rear slave station area address storage unit are provided in each memory area storing the polling address of each slave station, and the areas corresponding to the respective storage units are provided. Since the order of the slave stations in each slave station group is displayed by storing the address, it is necessary to display the order by storing the polling address of each slave station in the memory device according to the order. There is no.
Therefore, when changing the priority order or the order, it is not necessary to change the order of all the slave stations belonging to the slave station group to be changed as in the conventional case, and the slave station to be changed and the sequence before and after it. The order can be changed simply by changing the area address stored in the front slave station area address storage section or the rear area address storage section, and the polling order can be changed easily, at high speed, and reliably. You can
第1図は本発明の原理ブロック図、第2図は実施例に係
るブロック図、第3図はポーリング・テーブル概念図、
第4図は実施例に係る格納例を示す図、第5図は実施例
に係る流れ図、第6図は従来例に係る格納例を示す図、
第7図は従来例に係る流れ図である。 1……親局 2……メモリ装置 3……子局 31,…3n……子局用メモリ領域 41,…4n……前子局領域アドレス格納部(B部) 51,…5n……後子局領域アドレス格納部(A部)1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram according to an embodiment, FIG. 3 is a conceptual diagram of a polling table,
FIG. 4 is a diagram showing a storage example according to the embodiment, FIG. 5 is a flow chart according to the embodiment, and FIG. 6 is a view showing a storage example according to a conventional example.
FIG. 7 is a flow chart according to the conventional example. 1 ... Master station 2 ... Memory device 3 ... Slave station 31, ... 3n ... Slave station memory area 41, ... 4n ... Previous slave station area address storage section (B section) 51, ... 5n ... Rear Slave station area address storage section (A section)
Claims (1)
(3)を優先順位の定められた複数の子局群に分け、当
該子局群に属する一連の順序付けられた子局(3)につ
いて、各子局(3)に関する情報を親局(1)に設けら
れたメモリ装置(2)に格納し、当該情報を読み出して
ポーリングを行うポーリング制御方式において、 前記メモリ装置(2)内の各子局(3)のポーリング・
アドレスを格納する各子局用メモリ領域(31),…(3
n)内に前記順序に従って当該子局(3)の前及び後の
子局(3)に対応する子局用メモリ領域のメモリ装置
(2)のメモリ上の格納位置を表す領域アドレスを各々
格納する前子局領域アドレス格納部(41),…(4n)及
び後子局領域アドレス格納部(51),…(5n)を設けた
ことを特徴とするポーリング制御方式。1. A plurality of slave stations (3) branch-connected to a master station (1) are divided into a plurality of slave station groups having a predetermined priority order, and a series of ordered slave stations belonging to the slave station group. Regarding (3), in the polling control method in which the information about each slave station (3) is stored in the memory device (2) provided in the master station (1) and the information is read to perform polling, the memory device (2 ) Polling of each slave station (3)
Memory area for each slave station that stores addresses (31), ... (3
In n), according to the order, store the area address indicating the storage position on the memory of the memory device (2) of the child station memory area corresponding to the child station (3) before and after the child station (3). A polling control method characterized in that a front slave station area address storage unit (41), ... (4n) and a rear slave station area address storage unit (51), ... (5n) are provided.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62149423A JPH0773266B2 (en) | 1987-06-16 | 1987-06-16 | Polling control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62149423A JPH0773266B2 (en) | 1987-06-16 | 1987-06-16 | Polling control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63312742A JPS63312742A (en) | 1988-12-21 |
JPH0773266B2 true JPH0773266B2 (en) | 1995-08-02 |
Family
ID=15474786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62149423A Expired - Lifetime JPH0773266B2 (en) | 1987-06-16 | 1987-06-16 | Polling control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0773266B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9076054B2 (en) | 1999-10-04 | 2015-07-07 | Hand Held Products, Inc. | Image sensor based optical reader |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0777376B2 (en) * | 1989-10-24 | 1995-08-16 | 日産自動車株式会社 | Vehicle communication device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS56168458A (en) * | 1980-05-29 | 1981-12-24 | Hitachi Ltd | Terminal communication control system |
JPS5883449A (en) * | 1981-11-12 | 1983-05-19 | Nec Corp | Polling table control method |
JPS5961335A (en) * | 1982-09-30 | 1984-04-07 | Matsushita Electric Works Ltd | Time division load control system |
JPS61208340A (en) * | 1985-03-12 | 1986-09-16 | Mitsubishi Electric Corp | Polling system |
-
1987
- 1987-06-16 JP JP62149423A patent/JPH0773266B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9076054B2 (en) | 1999-10-04 | 2015-07-07 | Hand Held Products, Inc. | Image sensor based optical reader |
Also Published As
Publication number | Publication date |
---|---|
JPS63312742A (en) | 1988-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4829297A (en) | Communication network polling technique | |
JP3222086B2 (en) | Tree structure address setting method and system | |
JPH0773266B2 (en) | Polling control system | |
JPS62622B2 (en) | ||
JPH06189377A (en) | Data transmitter | |
JPH01241997A (en) | Information collection device | |
JP2526691B2 (en) | Programmable controller control method | |
JPH0114615B2 (en) | ||
JPH06161859A (en) | Distributed shared resource management method | |
JPS633351B2 (en) | ||
JPS6350729B2 (en) | ||
JPH09181752A (en) | Polling method data collection system | |
SU1130855A1 (en) | Interface for linking computers | |
JP2829120B2 (en) | Data transmission circuit | |
JP3465798B2 (en) | Distributed control system | |
JP2500699B2 (en) | Multi-device group control system | |
JP2674939B2 (en) | Voice bus controller | |
JPS6111502B2 (en) | ||
JPH0576821B2 (en) | ||
JPH10124116A (en) | Control device trend data collection method | |
JPH0343657B2 (en) | ||
JP2522299B2 (en) | DMA transfer control device | |
JPS5943022B2 (en) | data transmission equipment | |
JPS5830256A (en) | Communication controller | |
JPH03160837A (en) | Serial loop transfer data monitor and control system |