JPH03192996A - Auto-scanning method - Google Patents
Auto-scanning methodInfo
- Publication number
- JPH03192996A JPH03192996A JP33121289A JP33121289A JPH03192996A JP H03192996 A JPH03192996 A JP H03192996A JP 33121289 A JP33121289 A JP 33121289A JP 33121289 A JP33121289 A JP 33121289A JP H03192996 A JPH03192996 A JP H03192996A
- Authority
- JP
- Japan
- Prior art keywords
- data
- detailed data
- change
- communication interface
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 13
- 238000004891 communication Methods 0.000 abstract description 49
- 230000005540 biological transmission Effects 0.000 abstract description 9
- 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図に示すように、親局1より伸びた伝送
路りに子局としての通信インターフェイス2−1〜2−
7を各個に接続し、これら通信インターフェイス2−1
〜2□でのデータを、親局lからの送信要求に応答して
返送するようにした通信システムが知られている。Conventionally, as shown in FIG.
7 to each, and these communication interfaces 2-1
A communication system is known that sends back data from ~2□ in response to a transmission request from a master station l.
通信インターフェイス2−1〜2−、、は、温度センサ
、湿度センサ、煙センサ、防犯センサ、防災センサ等の
センサ部2−11〜2□1 とドライバ・レシーバ部2
−1□〜2□2とを備え、センサ部2〜2□1にて検出
したデータをドライバ・レシーバ部2−1□〜2−7□
にて詳細データ(アナログデータあるいはディジタルデ
ータ)とし、この詳細データを送信要求に応答して親局
1へ返送する。Communication interfaces 2-1 to 2-, , are sensor units 2-11 to 2□1 such as temperature sensors, humidity sensors, smoke sensors, crime prevention sensors, disaster prevention sensors, etc. and driver/receiver unit 2.
-1□ to 2□2, and transmits the data detected by the sensor units 2 to 2□1 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−3〜2□
を順次に呼び出して、その通信インターフェイスでの詳
細データを読み取るものとしている。In such a communication system, a sequential call method (auto scan method) using address polling is generally adopted, and the master station 1 connects the communication interfaces 2-3 to 2□
are sequentially called to read detailed data from that communication interface.
しかしながら、このような従来のオートスキャン方法に
よると、通信インターフェイス2−2〜27での詳細デ
ータを一々読み取るものとしているため、通信インター
フェイス毎のスキャン時間が長引くものとなり、非常に
早い応答が要求されるシステム、例えば防災、防犯シス
テムにおいては、その対応が遅れてしまう虞れがあった
。However, according to such a conventional auto-scan method, since detailed data from the communication interfaces 2-2 to 2-27 are read one by one, the scanning time for each communication interface becomes long and a very quick response is required. There was a risk that response would be delayed in systems such as disaster prevention and crime prevention systems.
本発明はこのような課題を解決するためになされたもの
で、各個に設けられた子局での詳細データをステータス
データに変換したうえ、上記子局を順次に呼び出して、
その子局でのステータスデータを受信するようにし、か
つ、受信したステータスデータによりその子局での詳細
データの変化の有無を検出し、詳細データに変化がなか
った場合には以降の子局のスキャンを続行し、詳細デー
タに変化があった場合には以降の子局のスキャンを中断
するようにしたものである。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 status data of the slave station is received, and the presence or absence of a change in the detailed data of the slave station is detected based on the received status data, and if there is no change in the detailed data, subsequent scans of the slave station are performed. If there is a change in the detailed data, the subsequent scan of the slave station is interrupted.
したがってこの発明によれば、詳細データがステータス
データとして受信され、受信されたステータスデータに
よりその子局での詳細データの変化の有無が検出され、
詳細データに変化があった場合には以降の子局のスキャ
ンにオートストップがかかるものとなる。Therefore, according to the present invention, detailed data is received as status data, and the presence or absence of a change in the detailed data at the slave station is detected based on the received status data,
If there is a change in the detailed data, subsequent scanning of slave stations will be automatically stopped.
以下、本発明に係るオートスキャン方法を詳細に説明す
る。The automatic scanning method according to the present invention will be explained in detail below.
第3図を共用して示す通信インターフェイス2−1“〜
2−fi′ において、その詳細データを2ビツトデー
タに変換したステータスデータを、下記表に示す。Communication interface 2-1” shown in common with FIG. 3
The status data obtained by converting the detailed data into 2-bit data in 2-fi' is shown in the table below.
すなわち、各通信インターフェイス2−1゛ 〜2゛に
おいて、前回の詳細データと今回の詳細データとを比較
したうえ、その詳細データに変化がなければ「01」な
るステータスデータとし、変化がありかつその詳細デー
タがディジタルデータであればrlOJなるステータス
データとし、変化がありかつその詳細データがアナログ
データであれば「11」なるステータスデータとする。In other words, in each communication interface 2-1'' to 2-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 If the detailed data is digital data, it is set as status data rlOJ, and if there is a change and the detailed data is analog data, it is set as status data "11".
また、詳細データが得られなかった場合は無応答として
、「00」なるステータスデータとする。Further, if detailed data cannot be obtained, it is assumed that there is no response, and the status data is set to "00".
第1図は本発明に係るオートスキャン方法の一実施例を
示すフローチャートである。このフローチャートに基づ
いてその処理動作を説明するに、先ずステップ101に
て、スキャンシーケンスをスタートさせる。すなわち、
第3図に示した親局1゛より伝送路りを介して通信イン
ターフェイス2−1゛ 〜2−“に対して、ハイスピー
ドスキャン指令を送る。このハイスピードスキャン指令
は、第2図に親局1″ と通信インターフェイス2〜2
−間の伝送フレームの一例を示すように、この伝送フレ
ームにおける領域Iとして通信インターフェイス2−、
〜2−’/%、与えられる。通信インターフェイス2〜
1°〜2−7゛ は、このハイスピードスキャン指令が
与えられると、そのタイプコード14に記されたスキャ
ン指令を読み取ったうえ、そのスタートアドレスコード
I−aに記されたアドレス(0番地)をプリセット値と
して、図示せぬカウンタに保持する。なお、通信インタ
ーフェイス2−1”〜2−R′ には、予めそのアドレ
スが1番地〜n番地として設定されている。FIG. 1 is a flowchart showing an embodiment of the auto-scanning method according to the present invention. The processing operation will be explained based on this flowchart. First, in step 101, a scan sequence is started. That is,
The master station 1'' shown in FIG. 3 sends a high-speed scan command to the communication interfaces 2-1'' to 2-'' via the transmission path. Station 1'' and communication interface 2~2
- As shown in an example of a transmission frame between 2 and 2, communication interface 2-,
~2-'/%, given. Communication interface 2~
1° to 2-7゛, when this high-speed scan command is given, reads the scan command written in the type code 14, and then scans the address (address 0) written in the start address code I-a. is held in a counter (not shown) as a preset value. It should be noted that the addresses of the communication interfaces 2-1'' to 2-R' are set in advance as addresses 1 to n.
そして、次のステップ102にて、親局1°は、通信イ
ンターフェイス2−1“〜L、%゛に対し、NEXTパ
ルスを供与する(第2図に示す領域■)。Then, in the next step 102, the master station 1° provides a NEXT pulse to the communication interfaces 2-1" to 2-1" to L, %" (region 2 shown in FIG. 2).
このNEXTパルスを受けた通信インターフェイス2−
5゛〜2−1l”は、そのプリセット値を1だけアップ
し、このアンプカウント値と設定アドレスとを比較する
。そして、アップカウント値と設定アドレスとが一致し
た通信インターフェイスが、そのステータスデータを親
局1′へ返送する。すなわち、この場合、通信インター
フェイス2−9において、そのアップカウント値と設定
アドレスとが〃1〃として一致するので、通信インター
フェイス2−I′ でのステータスデータが親局1゛へ
返送される(第2図に示す領域■)。通信インターフェ
イス2−1″でのステータスデータが親局1”にて受信
されると(ステップ103)、その受信されたステータ
スデータが「01」であるか否かが確認され(ステップ
104)、rolJであれば通信インターフェイス2−
I”での詳細データに変化がないものとして、ステップ
102に戻り、親局1”より通信インターフェイス2−
1゛ 〜L。Communication interface 2- which received this NEXT pulse
5'~2-1l'' increments the preset value by 1 and compares this amplifier count value with the setting address.Then, the communication interface whose up-count value and setting address match transmits the status data. In other words, in this case, in the communication interface 2-9, the up count value and the set address match as 〃1〉, so the status data in the communication interface 2-I' is returned to the master station. 1" (area ■ shown in FIG. 2). When the status data from the communication interface 2-1" is received by the master station 1" (step 103), the received status data is 01" (step 104), and if it is rolJ, the communication interface 2-
Assuming that there is no change in the detailed data at I", the process returns to step 102, and communication interface 2-
1゛~L.
へ、次のNEXTパルスを供与する(第2図に示す領域
■)。これにより、通信インターフェイス2−′におい
て、そのアンプカウント値と設定アドレスとが一致する
ものとなり、通信インターフェイス2−゛でのステータ
スデータが親局l゛へ返送されるものとなる。以下、同
様にして、ステップ104にて「01」なるステータス
データが確認される毎に、親局1°よりNEXTパルス
が送出され、このNEXTパルスにより指定される通信
インターフェイスでのステータスデータが、親局1゛に
て受信されるものとなる。すなわち、親局1”は、受信
したステータスデータによりその通信インターフェイス
での詳細データの変化の有無を検出し、詳細データに変
化がなかった場合には、以降の通信インターフェイスに
対するスキャンを続行する。これにより、詳細データを
一々読み取る従来のオートスキャン方法に比して、通信
インターフェイス毎のスキャン時間の短縮化が図られる
ものとなる。The next NEXT pulse is applied to (region ■ shown in FIG. 2). As a result, in the communication interface 2-', the amplifier count value and the set address match, and the status data at the communication interface 2-' is sent back to the master station l'. Similarly, each time the status data "01" is confirmed in step 104, a NEXT pulse is sent from the master station 1°, and the status data at the communication interface specified by this NEXT pulse is transmitted to the parent station. It will be received by station 1'. That is, the master station 1'' detects whether there is a change in the detailed data on the communication interface based on the received status data, and if there is no change in the detailed data, it continues scanning the subsequent communication interfaces. This makes it possible to shorten the scan time for each communication interface compared to the conventional auto-scan method in which detailed data is read one by one.
一方、「01」以外のステータスデータをステップ10
4にて確認すると、そのステータスデータにて代表され
る通信インターフェイスでの詳細データに変化が生じた
あるいは無応答であったとして、ストップパルスを送出
し以降の通信インターフェイスに対するスキャンを中断
する(ステップ105)。そして、親局1゛に設けられ
た図示せぬCPUへ割り込みをかけ(ステップ106)
、このCPLIによって、上記「01」以外のステータ
スデータを返送した通信インターフェイスのアドレスお
よび詳細データを読み取る(ステップ107)。すなわ
ち、受信したステータスデータによりその通信インター
フェイスでの詳細データの変化の有無を検出し、詳細デ
ータに変化があったあるいは無応答であった場合には、
以降の通信インターフェイスに対するスキャンにオート
ストップをかけ、そのときの通信インターフェイスのア
ドレスおよび詳細データを直ちに読み取る。これによち
、上述した通信インターフェイス毎のスキャン時間の短
縮化と相まって素早い対処が可能となり、早い応答が要
求されるシステムであってもその要求に対応することが
できるようになる。On the other hand, status data other than "01" is
If confirmed in step 4, it is determined that the detailed data of the communication interface represented by the status data has changed or there is no response, and the subsequent scan of the communication interface is interrupted by sending out a stop pulse (step 105). ). Then, an interrupt is sent to the CPU (not shown) provided in the master station 1 (step 106).
, uses this CPLI to read the address and detailed data of the communication interface that returned the status data other than "01" (step 107). In other words, the received status data is used to detect whether there is a change in detailed data on the communication interface, and if there is a change in the detailed data or there is no response,
Auto-stops subsequent scans of communication interfaces, and immediately reads the address and detailed data of the communication interface at that time. This, combined with the shortening of the scan time for each communication interface described above, enables quick response, and even systems that require a quick response can meet that demand.
なお、ステータスデータが「00」となる無応答につい
ては、センサ部の一時的な応答不良やその通信インター
フェイスを欠番としてセンサ部を外す場合等が考えられ
る。センサ部の一時的な応答不良の場合には、短時間で
復旧すると考えられるので、さほど心配はない。しかし
、センサ部を外した場合には、その通信インターフェイ
スからの「00」なるステータスデータを受信して、以
降の通信インターフェイスのスキャンが常に中断されて
しまう。このような不具合に対しては、例えば、同一の
通信インターフェイスからの「00」なるステータスデ
ータの受信によりオートストップが2回かかった場合に
は、その通信インターフェイスのアドレスを飛ばして次
のアドレスをスタートアドレスとして定め、オートスキ
ャンを続行するものとして対応することができる。また
、ステータスデータがro 0Jとなる無応答状態が同
一通信インターフェイスにおいて所定時間(数分間)続
いた場合には、その通信インターフェイスのアドレスを
表示したりする等して、故障を知らせることも可能であ
る。Note that non-response where the status data is "00" may be due to a temporary poor response of the sensor unit or a case where the sensor unit is removed with its communication interface as a missing number. In the case of a temporary response failure in the sensor section, it is thought that the problem will be restored in a short time, so there is no need to worry too much. However, when the sensor section is removed, status data "00" is received from the communication interface, and subsequent scanning of the communication interface is always interrupted. For example, if auto-stop occurs twice due to reception of status data "00" from the same communication interface, the address of that communication interface is skipped and the next address is used as the start address. It is possible to respond by setting it as ``default'' and continuing auto-scanning. Additionally, if a non-responsive state with status data ro 0J continues for a predetermined period of time (several minutes) on the same communication interface, it is possible to notify the user of a failure by displaying the address of that communication interface, etc. be.
以上説明したことから明らかなように本発明によるオー
トスキャン方法によると、詳細データがステータスデー
タとして受信され、受信されたステータスデータにより
その子局での詳細データの変化の有無が検出され、詳細
データに変化があった場合には以降の子局のスキャンに
オートストップがかかるものとなるので、変化の生じた
子局での詳細データを直ちに読み取るものとすれば、子
周毎のスキャン時間の短縮化と相まって素早い対処が可
能となり、早い応答が要求されるシステムであってもそ
の要求に対応することができるようになる。As is clear from the above explanation, according to the auto scan method according to the present invention, detailed data is received as status data, and the presence or absence of a change in the detailed data at the slave station is detected based on the received status data. If there is a change, the scanning of subsequent slave stations will be automatically stopped, so if the detailed data of the slave station where the change occurs is read immediately, the scanning time for each slave station can be shortened. Combined, this makes it possible to take quick action, and even systems that require a quick response can respond to that request.
第1図は本発明に係るオートスキャン方法の一実施例を
示すフローチャート、第2図はこのフローチャートに従
う親局と通信インターフェイス間の伝送フレームの一例
を示す図、第3図は各個に接続した通信インターフェイ
スでのデータを親局からの送信要求に応答して返送する
ようにした通信システムを示す図である。
1゛ ・・・親局、2−1°〜2−n゛ ・・・通信
インターフェイス、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-1° to 2-n゛: Communication interface, L: Transmission line.
Claims (1)
タに変換したうえ、前記子局を順次に呼び出して、その
子局でのステータスデータを受信するオートスキャン方
法であって、受信したステータスデータによりその子局
での詳細データの変化の有無を検出し、詳細データに変
化がなかった場合には以降の子局のスキャンを続行し、
詳細データに変化があった場合には以降の子局のスキャ
ンを中断するようにしたことを特徴とするオートスキャ
ン方法。This is an auto-scan method in which detailed data in each slave station is converted into status data, and the slave stations are sequentially called to receive the status data at the slave stations. It detects whether there is a change in the detailed data at the station, and if there is no change in the detailed data, it continues scanning the subsequent slave stations,
An auto scan method characterized in that if there is a change in detailed data, subsequent scans of slave stations are interrupted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1331212A JP2657280B2 (en) | 1989-12-22 | 1989-12-22 | Auto scan method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1331212A JP2657280B2 (en) | 1989-12-22 | 1989-12-22 | Auto scan method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH03192996A true JPH03192996A (en) | 1991-08-22 |
JP2657280B2 JP2657280B2 (en) | 1997-09-24 |
Family
ID=18241150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1331212A Expired - Lifetime JP2657280B2 (en) | 1989-12-22 | 1989-12-22 | Auto scan method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2657280B2 (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 JP1331212A patent/JP2657280B2/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 |
---|---|
JP2657280B2 (en) | 1997-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3123417B2 (en) | Communication method in small-scale network and control device and subordinate device applied to the communication method | |
JPH05276171A (en) | Communication control equipment | |
JPH03192996A (en) | Auto-scanning method | |
JPH1127342A (en) | Method and system for matching network information | |
JPH0123017B2 (en) | ||
JPH03192997A (en) | Auto-scanning method | |
JPH06119182A (en) | Information communication network system with down-load control function | |
JP3251531B2 (en) | Failure detection method and communication system | |
JP2907233B2 (en) | Upper link system of programmable controller | |
JP2757847B2 (en) | Double reception avoidance method in basic procedure | |
JPH045301B2 (en) | ||
JPH0764472A (en) | Remote i/o system of programmable controller | |
JP2834006B2 (en) | Failure recovery processing method and method | |
JPS59195736A (en) | Communication controller | |
JPS59139764A (en) | Control system of facsimile connection | |
JPH0470148A (en) | Power line carrier communication control equipment | |
CN115578194A (en) | Cross-chain transaction method, system, computer equipment and storage medium | |
JP3087391B2 (en) | Station address duplication check method of transmission system | |
JPH02260941A (en) | Signal transmission method | |
JPH036147A (en) | Responding method for dual transmission device | |
JP2621779B2 (en) | Connection test method for distributed system | |
JPS60117845A (en) | Data transmission system | |
JPH09307551A (en) | Correction method for network mis-connection | |
JPS63207238A (en) | Data communication system | |
JPH04358251A (en) | Method for transmitting data between computers |