JPH03192997A - Auto-scanning method - Google Patents
Auto-scanning methodInfo
- Publication number
- JPH03192997A JPH03192997A JP33121489A JP33121489A JPH03192997A JP H03192997 A JPH03192997 A JP H03192997A JP 33121489 A JP33121489 A JP 33121489A JP 33121489 A JP33121489 A JP 33121489A JP H03192997 A JPH03192997 A JP H03192997A
- Authority
- JP
- Japan
- Prior art keywords
- data
- status data
- auto
- communication interface
- master 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 15
- 238000004891 communication Methods 0.000 abstract description 45
- 230000005540 biological transmission Effects 0.000 abstract description 10
- 230000002265 prevention Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、各個に設けられた子局を順次に呼び出し、そ
のデータを読み取るオートスキャン方法に関するもので
ある。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an auto-scanning method for sequentially calling each slave station and reading the data therefrom.
従来より、第3図に示すように、親局lより伸びた伝送
路りに子局としての通信インターフェイス2−1〜2−
7を各個に接続し、これら通信インターフェイス2−1
〜2□でのデータを、親局1からの送信要求に応答して
返送するようにした通信システムが知られている。Conventionally, as shown in FIG. 3, communication interfaces 2-1 to 2-2 as slave stations have been installed on a transmission path extending from a master station l.
7 to each, and these communication interfaces 2-1
A communication system is known in which data from 2 to 2□ is returned in response to a transmission request from the master station 1.
通信インターフェイス2−1〜2−7は、温度センサ、
湿度センサ、煙センサ、防犯センサ、防災センサ等のセ
ンサ部2−11〜2□1とドライバ・レシーバ部2−+
2〜2□2とを備え、センサ部2〜2−I11にて検出
したデータをドライバ・レシーバ部2−1□〜2−7□
にて詳細データ(アナログデータあるいはディジタルデ
ータ)とし、この詳細データを送信要求に応答して親局
1へ返送する。The communication interfaces 2-1 to 2-7 include temperature sensors,
Sensor sections 2-11 to 2□1 such as humidity sensors, smoke sensors, crime prevention sensors, disaster prevention sensors, etc. and driver/receiver section 2-+
2 to 2□2, and transmits the data detected by the sensor units 2 to 2-I11 to driver/receiver units 2-1□ to 2-7□.
The detailed data (analog data or digital data) is sent back to the master station 1 in response to a transmission request.
このような通信システムでは、一般に、アドレスポーリ
ングによる順次呼び出し方式(オートスキャン方法)が
採用され、親局1が通信インターフェイス2−1〜2□
を順次に呼び出して、その通信インターフェイスでの詳
細データを読み取るものとしている。In such communication systems, a sequential call method (auto scan method) using address polling is generally adopted, and the master station 1 uses the communication interfaces 2-1 to 2-2
are sequentially called to read detailed data from that communication interface.
しかしながら、このような従来のオートスキャン方法に
よると、通信インターフェイス2−I〜2−12での詳
細データを読み取るものとしているため、そのオートス
キャン周期が長引くものとなり、非常に早い応答が要求
されるシステム、例えば防災防犯システムにおいては、
その対応が遅れてしまう虞れがあった。However, according to such a conventional auto-scan method, since detailed data from the communication interfaces 2-I to 2-12 is read, the auto-scan cycle becomes long and a very quick response is required. In systems such as disaster prevention and crime prevention systems,
There was a risk that the response would be delayed.
本発明はこのような課題を解決するためになされたもの
で、各個に設けられた子局での詳細データをステータス
データに変換したうえ、上記子局を順次に呼び出して、
その子局でのステータスデータを読み取るようにしたも
のである。The present invention was made to solve such problems, and after converting the detailed data of each slave station into status data, calling the slave stations sequentially,
The system is designed to read the status data of the slave station.
したがってこの発明によれば、読み取ったステータスデ
ータに基づき、詳細データに変化がないもの以外の子局
について、その子局での詳細データを、オートスキャン
周期の終了後に読み取るようにすることが可能となる。Therefore, according to the present invention, based on the read status data, it is possible to read the detailed data of the slave stations other than those whose detailed data has not changed after the auto scan cycle ends. .
以下、本発明に係るオートスキャン方法を詳細に説明す
る。The automatic scanning method according to the present invention will be explained in detail below.
第3図を共用して示す通信インターフェイス2〜2−゛
において、その詳細データを2ビツトデータに変換した
ステータスデータを、下記表に示す。Status data obtained by converting the detailed data into 2-bit data for the communication interfaces 2 to 2-' shown in FIG. 3 is shown in the table below.
すなわち、各通信インターフェイス2−.゛〜2゛にお
いて、前回の詳細データと今回の詳細データとを比較し
たうえ、その詳細データに変化がなければ「01」なる
ステータスデータとし、変化がありかつその詳細データ
がディジタルデータであれば「10」なるステータスデ
ータとし、変化がありかつその詳細データがアナログデ
ータであれば「11」なるステータスデータとする。ま
た、詳細データが得られなかった場合は無応答として、
「00」なるステータスデータとする。That is, each communication interface 2-. In steps 2 to 2, the previous detailed data and the current detailed data are compared, and if there is no change in the detailed data, the status data is set to "01", and if there is a change and the detailed data is digital data, the status data is set to "01". The status data is set as "10", and if there is a change and the detailed data is analog data, the status data is set as "11". Also, if detailed data cannot be obtained, it will be treated as no response.
It is assumed that the status data is "00".
第1図は本発明に係るオートスキャン方法の一実施例を
示すフローチャートである。このフローチャートに基づ
いてその処理動作を説明するに、先ずステップIOIに
て、スキャンシーケンスをスタートさせる。すなわち、
第3図に示した親局l゛より伝送路りを介して通信イン
ターフェイス2−I゛ 〜2−7′に対して、ハイスピ
ードスキャン指令を送る。このハイスピードスキャン指
令は、第2図に親局1” と通信インターフェイス2〜
2−間の伝送フレームの一例を示すように、この伝送フ
レームにおける領域Iとして通信インターフェイス2−
1゛ 〜2□゛へ与えられる。通信インターフェイス2
−8゛〜2−”は、このハイスピードスキャン指令が与
えられると、そのタイプコードI−,に記されたスキャ
ン指令を読み取ったうえ、そのスタートアドレスコード
■−1に記されたアドレス(0番地)をプリセット値と
して、図示せぬカウンタに保持する。なお、通信インタ
ーフェイス2−1゛ 〜2−゛には、予めそのアドレス
が1番地〜n番地として設定されている。また、スター
トアドレスをOとすることで、スキャンを1番目のノー
ドから始めることになる。FIG. 1 is a flowchart showing an embodiment of the auto-scanning method according to the present invention. To explain the processing operation based on this flowchart, first, in step IOI, a scan sequence is started. That is,
A high-speed scan command is sent from the master station l' shown in FIG. 3 to the communication interfaces 2-I' to 2-7' via the transmission path. This high-speed scan command is sent to the master station 1” and the communication interface 2 to 2 as shown in Figure 2.
As shown in an example of a transmission frame between 2- and 2-, communication interface 2-
Given to 1゛ to 2□゛. Communication interface 2
-8゛~2-'', when this high speed scan command is given, reads the scan command written in its type code I-, and also reads the address written in its start address code ■-1 (0 address) is held as a preset value in a counter (not shown). Note that the addresses are set in advance as addresses 1 to n in the communication interfaces 2-1'' to 2-2''. By setting it to O, the scan will start from the first node.
そして、次のステップ102にて、親局l゛は、通信イ
ンターフェイス2−1′ 〜21′に対し、NEXTパ
ルスを供与する(第2図に示す領域■)。Then, in the next step 102, the master station l' supplies a NEXT pulse to the communication interfaces 2-1' to 21' (region (2) shown in FIG. 2).
このNEXTパルスを受けた通信インターフェイス2−
1′〜2−、l+ は、そのプリセント値を1だけアン
プし、このアップカウント値と設定アドレスとを比較す
る。そして、アンプカウント値と設定アドレスとが一致
した通信インターフェイスが、そのステータスデータを
親局1゛へ返送する。すなわち、この場合、通信インタ
ーフェイス2−1において、そのアンプカウント値と設
定アドレスとが〃l〃として一致するので、通信インタ
ーフェイス2−5゛でのステータスデータが親局1゛へ
返送される(第2図に示す領域■)。通信インターフェ
イス2−8゛でのステータスデータが親局1にて受信さ
れるとくステップ103) 、親局1’に設けられた図
示せぬCPUに割り込みがかかり(ステップ104)、
その受信したステータスデータをCPUが読み込む(ス
テップ105)。Communication interface 2- which received this NEXT pulse
1' to 2-, l+ amplify the precent value by 1 and compare this up-count value with the set address. Then, the communication interface whose amplifier count value matches the set address sends the status data back to the master station 1'. That is, in this case, in the communication interface 2-1, the amplifier count value and the set address match as 〃l〉, so the status data at the communication interface 2-5゛ is sent back to the master station 1゛ (No. Area (■) shown in Figure 2). When the status data from the communication interface 2-8' is received by the master station 1 (step 103), an interrupt is generated to the CPU (not shown) provided in the master station 1' (step 104).
The CPU reads the received status data (step 105).
而して、ステップ106を経てステップ102に戻り、
親局工′より通信インターフェイス2〜2−7“へ、次
のNEXTパルスを供与する(第2図に示す領域■)。Then, the process returns to step 102 via step 106.
The next NEXT pulse is supplied from the master station to the communication interfaces 2 to 2-7 (area (2) shown in FIG. 2).
これにより、通信インターフェイス2−゛において、そ
のアップカウント値と設定アドレスとが一致するものと
なり、通信インターフェイス2−2゛ でのステータス
データが親局1°のCPUに読み取られる。以下同様に
して、通信インターフェイス2−゛までの各々のステー
タスデータが、親局1゛のCPUに順次読み取られるも
のとなる。そして、ステップ106にて、ストップ指令
が検出されれば、CPUからのコマンドによる終了シー
ケンスに移行しくステップ107)、1周期口のオート
スキャンを終了する。As a result, in the communication interface 2-', the up-count value and the set address match, and the status data in the communication interface 2-2' is read by the CPU of the master station 1'. In the same manner, the status data of each communication interface 2-' is sequentially read by the CPU of the master station 1'. If a stop command is detected in step 106, the process moves to an end sequence based on a command from the CPU (step 107), and the auto scan for one cycle is ended.
コノヨウに、本実施例によるオートスキャン方法によれ
ば、各個に設けられた通信インターフェイス2−1°〜
2−゛での詳細データをステータスデータに変換したう
え、通信インターフェイス2〜2−′を順次に呼び出し
て、その通信インターフェイス2−3゛〜2−”でのス
テータスデータが読み取られるので、そのステータスデ
ータが「01」でない通信インターフェイス、すなわち
その詳細データに変化がないもの以外の通信インターフ
ェイスについて、その通信インターフェイスでの詳細デ
ータをオートスキャン周期の終了後に読み取るものとす
れば、トータル的なスキャン周期の短縮化が図られるも
のとなり、早い応答が要求されるシステムであってもそ
の要求に対応することができる。According to the auto scan method according to this embodiment, the communication interface 2-1°~
After converting the detailed data at 2-2 into status data, the communication interfaces 2 to 2-' are sequentially called and the status data at the communication interfaces 2-3 to 2-' is read, so the status For communication interfaces whose data is not "01", that is, communication interfaces other than those whose detailed data has not changed, if the detailed data of that communication interface is read after the end of the auto scan cycle, the total scan cycle will be This allows the system to be shortened, and even systems that require a quick response can meet that requirement.
なお、ステータスデータにプライオリティを定めておけ
ば、例えば無応答の通信インターフ5イスの詳細データ
を、オートスキャン周期の終了後に優先的に読み取るも
のとして、その事態に対しての早急な対処が可能となる
。Furthermore, if a priority is set for the status data, for example, the detailed data of an unresponsive communication interface 5 can be read with priority after the end of the auto scan cycle, allowing for immediate response to the situation. Become.
また、本実施例においては、そのステータスデータが「
01」でない通信インターフェイスについて、その通信
インターフェイスでの詳細データを、オートスキャン周
期の終了後に読み取るものとしたが、「01」以外のス
テータスデータを受信した時点で、次段以降の通信イン
ターフェイスのスキャンを中断し、そのステータスデー
タを発した通信インターフェイスでの詳細データを即座
に読み取るようにしてもよい。しかし、このようなオー
トストップ方式を採用すると、センサ部を何らかの都合
により取り外した場合、その通信インターフェイスから
の無応答を示す「00」のステータスデータを受信して
、次段以降の通信インターフェイスのスキャンが中断さ
れてしまう。つまり、次段以降の通信インターフェイス
のスキャンが、いつまでたっても行われなくなってしま
う。In addition, in this embodiment, the status data is “
For communication interfaces that are not "01", the detailed data of that communication interface is read after the auto scan cycle ends. The status data may be interrupted and the detailed data at the communication interface that issued the status data may be immediately read. However, if such an auto-stop method is adopted, if the sensor unit is removed for some reason, it will receive status data of "00" indicating no response from the communication interface, and the next communication interface will not be able to scan. It gets interrupted. In other words, scanning of communication interfaces in the next and subsequent stages will not be performed forever.
これに対して、オートスキャン周期の終了後に詳細デー
タを読み取る方法を採用すれば、全ての通信インターフ
ェイスのスキャンを常に行うことができる点で有利とな
る。On the other hand, if a method of reading detailed data is adopted after the auto-scan period ends, it is advantageous in that all communication interfaces can be scanned at all times.
以上説明したように本発明によるオートスキャン方法に
よると、各個に設けられた子局での詳細データをステー
タスデータに変換したうえ、上記子局を順次に呼び出し
て、その子局でのステータスデータを読み取るようにし
たので、読み取ったステータスデータに基づき、詳細デ
ータに変化がないもの以外の子局について、その子局で
の詳細データを、オートスキャン周期の終了後に読み取
るようにすることが可能となり、トータル的なスキャン
周期の短縮化を図って、早い応答が要求されるシステム
であってもその要求に対応することができるようになる
。As explained above, according to the auto-scan method of the present invention, the detailed data in each slave station is converted into status data, and the slave stations are sequentially called to read the status data at the slave stations. Therefore, based on the read status data, it is possible to read the detailed data of the slave stations other than those whose detailed data has not changed after the auto scan cycle ends, which improves overall performance. By shortening the scan period, even systems that require a quick response can meet that demand.
第1図は本発明に係るオートスキャン方法の一実施例を
示すフローチャート、第2図はこのフローチャートに従
う親局と通信インターフェイス間の伝送フレームの一例
を示す図、第3図は各個に接続した通信インターフェイ
スでのデータを親局からの送信要求に応答して返送する
ようにした通信システムを示す図である。
1゛ ・・・親局、2−I゛〜2−、、+ ・・・通
信インターフェイス、L・・・伝送路。FIG. 1 is a flowchart showing an embodiment of the auto-scanning method according to the present invention, FIG. 2 is a diagram showing an example of a transmission frame between a master station and a communication interface according to this flowchart, and FIG. 3 is a diagram showing communications connected to each individual. FIG. 2 is a diagram showing a communication system in which data at an interface is returned in response to a transmission request from a master station. 1゛: Master station, 2-I゛~2-,, +: Communication interface, L: Transmission line.
Claims (1)
タに変換したうえ、前記子局を順次に呼び出して、その
子局でのステータスデータを読み取るオートスキャン方
法。An auto-scan method in which detailed data at each slave station is converted into status data, and the slave stations are sequentially called to read the status data at the slave stations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1331214A JP2657281B2 (en) | 1989-12-22 | 1989-12-22 | Auto scan method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1331214A JP2657281B2 (en) | 1989-12-22 | 1989-12-22 | Auto scan method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH03192997A true JPH03192997A (en) | 1991-08-22 |
JP2657281B2 JP2657281B2 (en) | 1997-09-24 |
Family
ID=18241173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1331214A Expired - Lifetime JP2657281B2 (en) | 1989-12-22 | 1989-12-22 | Auto scan method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2657281B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5711557A (en) * | 1980-06-26 | 1982-01-21 | Fujitsu Ltd | Data transmission system |
JPS62183700A (en) * | 1986-02-07 | 1987-08-12 | Nec Corp | Remote supervisory and controlling system |
JPH01291598A (en) * | 1988-05-19 | 1989-11-24 | Nec Corp | Monitor information transmission system |
-
1989
- 1989-12-22 JP JP1331214A patent/JP2657281B2/en not_active Expired - Lifetime
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5711557A (en) * | 1980-06-26 | 1982-01-21 | Fujitsu Ltd | Data transmission system |
JPS62183700A (en) * | 1986-02-07 | 1987-08-12 | Nec Corp | Remote supervisory and controlling system |
JPH01291598A (en) * | 1988-05-19 | 1989-11-24 | Nec Corp | Monitor information transmission system |
Also Published As
Publication number | Publication date |
---|---|
JP2657281B2 (en) | 1997-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH03205933A (en) | Communication method in lan | |
JPH03192997A (en) | Auto-scanning method | |
JPS62285170A (en) | Matching system for input message of decentralized processing system | |
JPH03192996A (en) | Auto-scanning method | |
JP2708976B2 (en) | Learning table management method | |
JPH05252225A (en) | Data conversion system in communication control processing | |
JPH0560703B2 (en) | ||
JPS605404Y2 (en) | Input data processing circuit | |
JPH11110006A (en) | Control system device | |
JP2543678B2 (en) | Data generation method | |
JP2923992B2 (en) | Access Channel Control Method for Demand Assignment Communication System | |
JPH0373050A (en) | Serial write data transfer system | |
JPS60206341A (en) | Communication control method | |
JPH08305666A (en) | Virtual terminal connection type distributed service system | |
JPH039637A (en) | Multiple address communication method | |
JPS63184137A (en) | Analyzing system for abnormally completion information in information processing system | |
JPS60148254A (en) | Communication terminal equipment | |
JP2000190178A (en) | Processing monitoring device of production instructing system | |
JPH02250452A (en) | Communication control lsi | |
JPH02105748A (en) | Signal transfer equipment | |
JPS6286942A (en) | Detecting method for data abnormality | |
JPS6252648A (en) | Transmitting device for data memory | |
JPH0670354A (en) | Protocol control system in isdn exchange | |
JPH05347620A (en) | Repeater | |
JPH04102132A (en) | Fault information collecting system |