JPH11355331A - Data communication control method for remote measurement system - Google Patents

Data communication control method for remote measurement system

Info

Publication number
JPH11355331A
JPH11355331A JP10164618A JP16461898A JPH11355331A JP H11355331 A JPH11355331 A JP H11355331A JP 10164618 A JP10164618 A JP 10164618A JP 16461898 A JP16461898 A JP 16461898A JP H11355331 A JPH11355331 A JP H11355331A
Authority
JP
Japan
Prior art keywords
polling
station
message
slave
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.)
Pending
Application number
JP10164618A
Other languages
Japanese (ja)
Inventor
Hiromichi Yano
浩道 矢野
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP10164618A priority Critical patent/JPH11355331A/en
Publication of JPH11355331A publication Critical patent/JPH11355331A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a CPU at a master station side to relieve a load required for communication control processing without the need for the master station to make polling communication with all slave stations at all times. SOLUTION: A polling message sent from a master station 3 circulates through all slave stations 1-1-1-5. The slave station 1-1 sends a transmission request of a data message to the other stations and once transmits a polling acknowledgement to the master station 3 when the slave station 1-1 receives the polling message. The master station 3 sends the polling message to the slave station 1-2 that is next to the slave station 1-1 having sent the polling acknowledgement just before to restart the polling. After the polling message circulates through the slave stations for a predetermined number of times, the master station 3 allows the slave stations to make the polling acknowledgement forcibly.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、遠方に点在する複
数の計測局からの計測データを収集し、一つの監視局で
計測データを表示・監視する遠隔計測システムに関し、
特にその計測データの通信制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a remote measurement system that collects measurement data from a plurality of measurement stations scattered in a distance and displays and monitors the measurement data at one monitoring station.
In particular, it relates to a communication control method of the measurement data.

【0002】[0002]

【従来の技術】遠方に点在する複数の計測局(以下、子
局と称する)において計測したデータを、シリアル通信
回線を介して一つの監視局(以下、親局と称する)で収
集し表示する遠隔計測システムにおいて、親局と各子局
はポーリング/セレクティングによる通信を行う形式が
一般的である。このポーリング/セレクティング通信の
概要を図面を用いて説明する。
2. Description of the Related Art Data measured at a plurality of measuring stations (hereinafter, referred to as slave stations) scattered at a distance are collected and displayed by one monitoring station (hereinafter, referred to as master station) via a serial communication line. In a remote measurement system, a master station and each slave station generally communicate by polling / selecting. The outline of the polling / selecting communication will be described with reference to the drawings.

【0003】図1に示すように、親局は、マルチドロッ
プ形式で接続されている各子局に対して、通常はポーリ
ング通信を行い、子局から親局へ送信したいデータがあ
るか否かを問い合わせるポーリング電文を送出する。送
信したいデータを有する子局は、自局に対してポーリン
グ電文が送られてきたタイミングで、親局にデータを送
出する。
As shown in FIG. 1, a master station normally performs polling communication with each slave station connected in a multi-drop manner, and determines whether there is data to be transmitted from the slave station to the master station. Sends a polling message inquiring about. The slave station having the data to be transmitted sends the data to the master station at the timing when the polling message is sent to its own station.

【0004】一方、親局から任意の子局に対して通信を
行いたい場合は、その時点でポーリング通信を一旦中断
し、相手先となる親局の特定をすべく、セレクティング
コードを埋め込んだ電文を送出する。このセレクティン
グコードが埋め込まれた電文が各子局を巡回し、セレク
ティングコードと一致した子局だけがこのデータを認識
し、受信の可否を応答する。
On the other hand, when it is desired to perform communication from the master station to an arbitrary slave station, the polling communication is temporarily interrupted at that time, and a selecting code is embedded in order to identify the master station to be the destination. Send a message. The message in which the selecting code is embedded circulates through each slave station, and only the slave station that matches the selecting code recognizes this data and responds as to whether or not reception is possible.

【0005】このように、親局のみが通信回線を管理す
るポーリング/セレクティングによる集中監視制御を行
うことで、マルチドロップ形式における子局の増減に容
易に対応することができる。
As described above, by performing centralized monitoring and control by polling / selecting in which only the master station manages communication lines, it is possible to easily cope with an increase or decrease in the number of slave stations in the multi-drop format.

【0006】[0006]

【発明が解決しようとする課題】ところが、上述したポ
ーリング/セレクティング方式による集中監視制御方法
においては、親局が常時接続されているすべての子局に
対してポーリングを行っていなければならず、親局側の
CPU動作の大部分がこの処理に割かれてしまうため、
CPUの負荷増大をもたらしてしまうという課題が生じ
ていた。
However, in the above-mentioned centralized monitoring and control method using the polling / selecting method, polling must be performed for all slave stations to which the master station is always connected. Most of the CPU operation of the master station is devoted to this processing.
There has been a problem that the load on the CPU is increased.

【0007】このような課題を解消するために用いられ
る方法としては、例えば特開平5−300156号公報
「複数の端末装置間の通信方法」により開示される方法
を挙げることができる。以下この内容につき簡単に説明
する。
As a method used to solve such a problem, for example, a method disclosed in Japanese Patent Application Laid-Open No. 5-300156, entitled "Method of Communication Between Multiple Terminal Devices" can be mentioned. Hereinafter, this content will be briefly described.

【0008】親局と複数子局間の通信において、(1)
作業機械の制御を行う定常通信状態の際にはポーリング
方式による通信を行い、(2)子局に特定端末装置を接
続し、作業機械の制御プログラムの変更を行う際にはト
ークンパス方式による通信を行う。これら異なる2つの
通信方式は、親局側の処理状態をあらかじめ調べ、作業
機械の制御にかかる演算処理中であればポーリング方式
に、演算処理中でなければトークンパス方式に切り替わ
るよう制御されている。
In communication between a master station and a plurality of slave stations, (1)
In a steady communication state for controlling the work machine, communication is performed by a polling method. (2) When a specific terminal device is connected to a slave station, and when a control program of the work machine is changed, communication is performed by a token pass method. I do. These two different communication systems are controlled so as to check the processing state of the master station in advance, and to switch to the polling system if the arithmetic processing for controlling the work machine is being performed and to the token pass system if the arithmetic processing is not being performed. .

【0009】ポーリング通信は、親局は配下に接続され
た第1子局〜第n子局に向け、順々に入出力データを送
信し、データを受信した子局が入出力データを親局に向
けて送信する。各子局は親局からのデータ受信時以外に
は、親局に向けてデータを送信することはできない。
In the polling communication, the master station transmits input / output data sequentially to the first to nth slave stations connected to the subordinate station, and the slave station receiving the data transmits the input / output data to the master station. Send to. Each slave station cannot transmit data to the master station except when receiving data from the master station.

【0010】トークンパス通信は、親局と複数子局の通
信経路があらかじめ環状に設定されており、親局および
子局は、トークンと呼ばれる信号を受信した段階でデー
タ送信が可能となる。通信が終了すればトークンを次局
(親局あるいは子局)に送出し、環状経路上を順々に通
信が行われていく。
[0010] In the token path communication, a communication path between a master station and a plurality of slave stations is previously set in a ring shape, and the master station and the slave stations can transmit data when a signal called a token is received. When the communication is completed, the token is sent to the next station (the master station or the slave station), and the communication is sequentially performed on the circular route.

【0011】しかしながら、この特開平5−30015
6号公報記載の技術を適用するためには、親局および全
子局とも、ポーリング通信方式とトークンパス通信方式
の双方の制御プログラム、ならびにこれらの切替え制御
を行うための親局側の状態を監視する手段を有していな
ければならず、構成や制御方法が複雑化してしまうとい
う新たな課題を生じさせてしまっていた。
However, Japanese Patent Laid-Open Publication No. Hei.
In order to apply the technology described in Japanese Patent Application Publication No. 6 (1994), both the master station and all slave stations need to control programs for both the polling communication system and the token pass communication system and the state of the master station for performing switching control between them. It must have a means for monitoring, which causes a new problem that the configuration and the control method become complicated.

【0012】本発明のポーリング集中制御通信方法は、
親局が常時、すべての子局に対してポーリング通信を行
う制御を最小限に減らして、親局のCPUが通信制御処
理に要する負荷を低減させることを目的とする。
[0012] The polling central control communication method of the present invention comprises:
It is an object of the present invention to minimize the control that the master station always performs polling communication with respect to all slave stations, and reduce the load required for the CPU of the master station for the communication control process.

【0013】また、本発明のポーリング集中制御通信方
法は、上述の効果を、異なる2つの通信プログラム(ポ
ーリング通信,トークンパス通信)を搭載せずとも、よ
り簡素な構成で実現させることを目的とする。
Further, the polling central control communication method of the present invention aims to realize the above-mentioned effect with a simpler configuration without installing two different communication programs (polling communication and token path communication). I do.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
に、本発明の遠隔計測システムのデータ通信制御方法
は、複数の計測局で計測されるデータを一つの監視局が
集中的に受信して監視する監視システムのデータ通信制
御方法において、前記監視局が送出するポーリング電文
を、あらかじめ定めた順序の先頭となる計測局に対して
送出し、前記複数の計測局は、前記ポーリング電文を受
信した時点で、前記監視局あるいは別の計測局に送出す
べきデータを有しているか否かを判定し、前記送出すべ
きデータを有していなければ該ポーリング電文を次の計
測局に送出し、有していればその宛て先を判定し、該宛
て先が前記監視局であればこれにポーリング応答電文を
付加して送出し、該宛て先が前記別の計測局であれば、
前記送出すべきデータのみを送出した後に前記ポーリン
グ応答電文を前記監視局に対して送出し、前記ポーリン
グ電文を受信した前記監視局は、前記あらかじめ定めた
順序により、前記ポーリング応答電文を送出した計測局
の次の計測局に対し改めてポーリング電文を送出し、前
記ポーリング電文が全計測局を1巡したとき、最後の計
測局から前記監視局に宛てたポーリング応答電文を送出
させるよう処理することを特徴とする。
In order to achieve the above object, a data communication control method for a remote measurement system according to the present invention provides a method in which one monitoring station collectively receives data measured by a plurality of measurement stations. In the data communication control method of the monitoring system, the polling message sent by the monitoring station is sent to the first measuring station in a predetermined order, and the plurality of measuring stations receive the polling message. At this point, it is determined whether or not it has data to be sent to the monitoring station or another measurement station, and if it does not have the data to be sent, the polling message is sent to the next measurement station. If it has, the destination is determined, and if the destination is the monitoring station, a polling response message is added to the monitoring station and transmitted, and if the destination is the another measuring station,
After transmitting only the data to be transmitted, the polling response message is transmitted to the monitoring station, and the monitoring station receiving the polling message transmits the polling response message in the predetermined order. A polling message is sent again to the next measuring station, and when the polling message goes through all the measuring stations, processing is performed so that a polling response message addressed to the monitoring station is sent from the last measuring station. Features.

【0015】また、本発明の遠隔計測システムのデータ
通信制御方法は、上記の構成に加え前記ポーリング電文
の巡回数を任意に設定し、前記ポーリング電文が前記全
計測局を前記巡回数だけ周回したことを検出したとき、
最後の計測局から前記監視局に宛てたポーリング応答電
文を強制的に送出させるよう処理することを特徴とす
る。
Further, in the data communication control method for a remote measurement system according to the present invention, in addition to the above configuration, the number of times of the polling message is set arbitrarily, and the polling message circulates around all the measuring stations by the number of times. When it detects that
It is characterized in that processing is performed so that a polling response message addressed to the monitoring station is forcibly transmitted from the last measuring station.

【0016】[0016]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】図1は、本実施の形態のポーリング集中制
御通信方法を採用した装置の構成を示すブロック図であ
る。なお、本発明においても従来の技術においても、装
置構成そのものについては別段変化がない。
FIG. 1 is a block diagram showing the configuration of an apparatus adopting the polling centralized control communication method according to the present embodiment. It should be noted that there is no particular change in the device configuration itself in both the present invention and the prior art.

【0018】図示するように、複数台(実施形態におい
ては5台)の子局1−1〜1−5と、1台の親局3が、
シリアル通信回線である通信路2によって接続されてい
る。各子局1−1〜1−5において計測された計測デー
タは、通信路2を介して、親局3に送出される。
As shown in the figure, a plurality of (five in the embodiment) slave stations 1-1 to 1-5 and one master station 3 are
They are connected by a communication path 2 which is a serial communication line. The measurement data measured in each of the slave stations 1-1 to 1-5 is transmitted to the master station 3 via the communication path 2.

【0019】これを受けた親局3は、送られてくる計測
データにより、これら子局を集中的に監視・管理してい
る。
The master station 3 receiving the information centrally monitors and manages the slave stations based on the measurement data sent thereto.

【0020】各子局1−1〜1−5は、後述する親局3
からの指示に従って、一定時間毎に計測を行い、これに
より得られる計測データを親局3へ送出する。
Each of the slave stations 1-1 to 1-5 is connected to a master station 3 described later.
In accordance with the instruction from, measurement is performed at regular time intervals, and measurement data obtained thereby is sent to the master station 3.

【0021】親局3は、子局1−1〜1−5から一定時
間毎に送られてくる計測データを収集、記録して、親局
3を操作する操作者に認識可能な所定のフォーマットに
より表示する。
The master station 3 collects and records measurement data sent from the slave stations 1-1 to 1-5 at regular intervals, and records the measurement data in a predetermined format recognizable by an operator operating the master station 3. Display by

【0022】また、親局3は、操作者による各子局1−
1〜1−5への動作指示(計測開始命令、計測終了命
令)を、通信路2を介して通知する。
The master station 3 is connected to each slave station 1- 1 by the operator.
Operation instructions (measurement start instruction, measurement end instruction) to 1 to 1-5 are notified via the communication path 2.

【0023】計測データの収集は、親局3が各子局1−
1〜1−5に対し、ポーリング通信によって行う。これ
を受けた各子局1−1〜1−5は、指示に従い、自己配
下の被監視対象について監視を行う。そして用意の整っ
た子局から、ポーリングのタイミングに従って親局3に
対して計測データを逐次送出する。
The measurement data is collected by the master station 3 by each slave station 1-.
For 1 to 1-5, polling communication is performed. Each of the slave stations 1-1 to 1-5 receiving this monitors the monitored objects under its own control in accordance with the instruction. Then, the prepared slave station sequentially transmits the measurement data to the master station 3 according to the polling timing.

【0024】図3は、本実施の形態におけるポーリング
通信方法による、親局3および各子局1−1〜1−5の
通信を時系列で示したタイムチャートである。定常状態
にて親局3は、常に各子局に対して、ポーリング動作を
行っている。このポーリング動作に用いられるポーリン
グ電文は、例えばトークンパス方式のトークン(送信
権)のように、あらかじめ決められた順番で子局を巡回
する。なおこのポーリング電文は、必ず親局3にて生成
される。
FIG. 3 is a time chart showing, in chronological order, communication between the master station 3 and each of the slave stations 1-1 to 1-5 by the polling communication method according to the present embodiment. In the steady state, the master station 3 always performs a polling operation for each slave station. The polling message used for this polling operation circulates through the slave stations in a predetermined order, for example, a token (transmission right) of a token pass system. The polling message is always generated by the master station 3.

【0025】親局3から送出されたポーリング電文が、
子局1−1→1−2→1−3→・・・→1−5と順々に
巡回し、全ての子局を巡回し終えた後、最後の子局1−
5から親局3に戻され、ポーリング動作が一巡する。
The polling message sent from the master station 3 is
The slave stations 1-1 → 1-2 → 1-3 →... → 1-5 are sequentially visited, and after all the slave stations have been visited, the last slave station 1−1 is completed.
5 is returned to the master station 3, and the polling operation completes.

【0026】続いて子局1−1は、上述したポーリング
動作にてポーリング電文を受信したタイミングをもっ
て、親局3あるいは他の子局1−2〜1−5に対して、
ポーリング電文以外のデータ電文の送信要求を送出す
る。なお、各子局1−1〜1−5とも、自らがポーリン
グ電文を受信したタイミング以外での電文送出は行うこ
とができない。
Subsequently, the slave station 1-1 sends the polling message to the master station 3 or other slave stations 1-2 to 1-5 at the timing of receiving the polling message in the polling operation described above.
Sends a transmission request for a data message other than the polling message. Note that each of the slave stations 1-1 to 1-5 cannot transmit a message at a timing other than the timing at which the local station itself receives the polling message.

【0027】データ電文送信要求を送り終えた子局1−
1は、一旦、親局3に対してポーリング応答を行い、送
信の権限を返却する。なお、親局3に対してデータ電文
要求を送出する場合、ポーリング応答時の情報を付加す
ることによって、上記ポーリング応答による送信権限の
返却を兼ねさせる。
Slave station 1 that has finished sending a data message transmission request
1 temporarily sends a polling response to the master station 3 and returns the transmission authority. When a data message request is sent to the master station 3, the transmission authority is returned by the polling response by adding the information at the time of the polling response.

【0028】親局3は、ポーリング応答によって送信権
限が返却されたとき、各子局に送信したいデータ電文が
あれば、その送出を行う。そして親局3は、直前にポー
リング応答してきた子局1−1の次の子局1−2にポー
リング電文を送出し、ポーリング動作を再開させる。
When the transmission authority is returned by the polling response, the master station 3 sends the data message to be transmitted to each slave station, if any. Then, the master station 3 sends a polling message to the slave station 1-2 next to the slave station 1-1 which has just sent the polling response, and restarts the polling operation.

【0029】親局3からポーリング電文を受け取った子
局1−2は、その時点で他の子局1−1及び1−3〜1
−5に対して、ポーリング電文以外のデータ電文送出要
求がなければ、ポーリング電文をあらかじめ定められた
順序に従い、次の子局(この場合は子局1−3)に送出
する。
The slave station 1-2, which has received the polling message from the master station 3, changes the other slave stations 1-1 and 1-3-1 at that time.
For -5, if there is no data message transmission request other than the polling message, the polling message is transmitted to the next slave station (in this case, slave station 1-3) in a predetermined order.

【0030】各子局1−1〜1−5全てにおいてデータ
電文送出要求がない場合は、ポーリング電文は一巡して
戻ってくるまで、親局3には返送されない。この間、親
局3といえども、各子局1−1〜1−5と同様に、一切
の送信権限を喪失する。これでは親局3から各子局1−
1〜1−5に向けてポーリング通信以外の、非同期的・
突発的な通信が行えないこととなる。
If there is no data message transmission request in all of the slave stations 1-1 to 1-5, the polling message is not returned to the master station 3 until it returns once. During this time, even the master station 3 loses any transmission authority, similarly to the slave stations 1-1 to 1-5. In this case, from the master station 3 to each slave station 1-
Asynchronous other than polling communication toward
Unexpected communication cannot be performed.

【0031】このような事態を防止すべく、ポーリング
巡回数をカウントし、あらかじめ定められた回数のポー
リング電文を局間で巡回させたら、親局3に対して強制
的にポーリング応答を行わせる。図3に示した例では、
ポーリング電文を3回巡回させた後、親局3に一旦ポー
リング応答を行わせている。
In order to prevent such a situation, the number of polling rounds is counted, and when a predetermined number of polling messages are cycled between the stations, the master station 3 is forcibly made a polling response. In the example shown in FIG.
After the polling message is circulated three times, the master station 3 is once made to perform a polling response.

【0032】次に、図4を参照して、本実施例における
通信方法で用いるポーリング電文(ポーリング応答電
文)について説明する。このポーリング電文を構成する
情報は、本発明の通信方法を実現するために不可欠の要
素である。
Next, a polling message (polling response message) used in the communication method according to the present embodiment will be described with reference to FIG. The information constituting this polling message is an essential element for realizing the communication method of the present invention.

【0033】次局番号41は、次にポーリング電文(ポ
ーリング応答電文)を渡す相手先(子局1−1〜1−5
あるいは親局3)の局番号を示している。
The next station number 41 is a destination (slave station 1-1 to 1-5) to which a polling message (polling response message) is to be delivered next.
Alternatively, it indicates the station number of the parent station 3).

【0034】発信局番号42は、ポーリング電文(ポー
リング応答電文)の送信元(子局1−1〜1−5あるい
は親局3)の局番号を示している。
The originating station number 42 indicates the station number of the source (slave station 1-1 to 1-5 or master station 3) of the polling message (polling response message).

【0035】現巡回数43は、上述した親局3に対して
ポーリング応答を強制的に行わせるための、残りポーリ
ング巡回数を示す。
The current number of rounds 43 indicates the number of remaining rounds for polling to force the master station 3 to make a polling response.

【0036】図5は、本実施例の通信方法を実現するた
めに、親局3が行うポーリング通信制御プログラムの処
理を示すフローチャートである。
FIG. 5 is a flowchart showing the processing of the polling communication control program executed by the master station 3 to realize the communication method of the present embodiment.

【0037】プログラムが実行開始されると、現在ポー
リング動作中であるか(ポーリング電文が存在するか)
否かが調査される(step5−1)。このポーリング
電文は親局3によってのみ生成されるため、プログラム
実行開始直後にはポーリング電文は存在しておらず、こ
の時点でポーリング動作が行われていることはあり得な
い。
When the program is started to be executed, whether or not a polling operation is currently being performed (whether or not a polling message exists)
It is checked whether or not it is (step 5-1). Since this polling message is generated only by the master station 3, the polling message does not exist immediately after the start of the program execution, and the polling operation cannot be performed at this point.

【0038】このあと、親局3は、次局番号41に「子
局1−1」の局番号である「1」を、発信局番号に自ら
の局番号である「0」を、そして現巡回数に任意の巡回
数(例えば3回であれば「3」)を設定し(step5
−8)、最初のポーリング電文を生成して送出し、ポー
リング動作を開始する(step5−9)。
Thereafter, the master station 3 sets the next station number 41 to "1" which is the station number of "slave station 1-1", the calling station number to "0" which is its own station number, and the current station number. An arbitrary number of tours (for example, "3" for three times) is set as the number of tours (step 5).
-8) Generate and transmit the first polling message and start the polling operation (step 5-9).

【0039】ポーリング電文を送出したら、親局3は各
子局から返送されてくるポーリング電文またはポーリン
グ応答電文の受信待ち状態に遷移する(step5−
2)。
After transmitting the polling message, the master station 3 transitions to a state of waiting for the reception of the polling message or polling response message returned from each slave station (step 5-).
2).

【0040】ポーリング電文またはポーリング応答電文
のいずれかを受信したら、親局3はこの受信電文が、各
子局を1巡して戻ってきたものであるか、あるいは巡回
途中で戻されたものであるかを判定する(step5−
3)。
When either the polling message or the polling response message is received, the master station 3 determines whether the received message has returned after making a round around each slave station or has been returned during the round. It is determined whether or not there is (step 5-
3).

【0041】もしその受信電文が、各子局を1巡して戻
ってきたものであれば、まずその時点で送信すべきデー
タ電文の有無を確認し(step5−4)、該当するデ
ータ電文があればその送出を行い(step5−5)、
該当するデータ電文がなければそのままで、あらかじめ
定められたポーリング順序で1番目の子局1−1に対し
て、step5−8と同設定のポーリング電文を送出す
る。ポーリング電文送出後は、再びポーリング受信待ち
状態に遷移する。
If the received message has returned after making a round of each slave station, it is first checked whether or not there is a data message to be transmitted at that time (step 5-4). If there is, it is transmitted (step 5-5),
If there is no corresponding data message, a polling message having the same setting as in step 5-8 is transmitted to the first slave station 1-1 in a predetermined polling order. After the transmission of the polling message, the state shifts to the polling reception waiting state again.

【0042】また、受信電文が巡回途中で戻されたもの
であるときも、まずその時点で送信すべきデータ電文の
有無を確認し(step5−6)、該当するデータ電文
があればその送出を行い(step5−7)、該当する
データ電文がなければそのままで、ポーリング電文の設
定処理に移る。しかしながらこの場合、次局番号41に
は、巡回途中でポーリング電文を親局3に戻してきた子
局の次局の局番号、例えば子局1−3がポーリング電文
を戻してきたのであれば、子局1−4の局番号である
「4」をセットし(step5−10)、この新しいポ
ーリング電文を送出する(step5−11)。ポーリ
ング電文送出後は、1巡の場合と同様に、ポーリング受
信待ち状態に移る。
When the received message is returned during the tour, it is first checked whether there is a data message to be transmitted at that time (step 5-6). The process is performed (step 5-7), and if there is no corresponding data message, the process proceeds to a polling message setting process. However, in this case, in the next station number 41, the station number of the next station of the slave station that returned the polling message to the master station 3 during the tour, for example, if the slave station 1-3 returned the polling message, The station number "4" of the slave station 1-4 is set (step 5-10), and this new polling message is transmitted (step 5-11). After the transmission of the polling message, the process shifts to a polling reception waiting state as in the case of one round.

【0043】図6は、本実施例の通信方法を実現するた
めに、各子局が行うポーリング通信制御プログラムの処
理を示すフローチャートである。
FIG. 6 is a flowchart showing the processing of the polling communication control program executed by each slave station in order to realize the communication method of this embodiment.

【0044】プログラムが実行開始されると、各子局は
ただちにポーリング受信待ち状態となる(step6−
1)。この状態において、各子局はそれぞれが自局への
ポーリング電文を受信するまで、その他の通信を行わず
に待機している。
When the execution of the program is started, each slave station immediately enters a polling reception waiting state (step 6).
1). In this state, each slave station stands by without performing any other communication until each slave station receives a polling message to its own station.

【0045】ここで例えば、親局3が子局1−1に対し
てポーリング電文を送出したとする。このとき子局1−
1は、自局の中の送信すべきデータ電文の有無を確認し
(step6−2)、データ電文が存在するときは、こ
れが親局3に対してのデータ送信か否かを判定する(s
tep6−5)。
Here, it is assumed that the master station 3 sends a polling message to the slave station 1-1. At this time, the slave station 1
1 confirms whether there is a data message to be transmitted in its own station (step 6-2), and if a data message exists, determines whether or not this is a data transmission to the master station 3 (s).
step 6-5).

【0046】データ電文が親局3に対してのものである
と、これにポーリング応答電文(次局番号が「0」、発
信局番号が「1」、現巡回数が「3」)を付加して送出
し、親局へのデータ電文送信とポーリング応答送信を兼
ねさせて送出する(step6−7)。
If the data message is for the master station 3, a polling response message (the next station number is "0", the calling station number is "1", and the current number of rounds is "3") is added. Then, the data transmission and polling response transmission to the master station are transmitted together (step 6-7).

【0047】また、step6−5において、データ電
文が親局3以外に対してのものであった場合は、データ
電文のみを該当する相手に、例えば子局1−2に対して
送出する(step6−6)。送出し終えたら、親局3
に対して、次局番号41を「2」、発信局番号42を
「1」、現巡回数43を「3」に設定したポーリング電
文を送出し(step6−11)、プログラムの先頭に
戻って再びポーリング受信待ち状態に移る。
In step 6-5, if the data message is for a device other than the master station 3, only the data message is sent to the corresponding party, for example, to the slave station 1-2 (step 6). -6). When transmission is completed, master station 3
Then, a polling message in which the next station number 41 is set to "2", the calling station number 42 is set to "1", and the current round number 43 is set to "3" (step 6-11), and the program returns to the top of the program. The state shifts to the polling reception waiting state again.

【0048】step6−2において、送出すべきデー
タ電文が存在しなかった場合は、送られてきたポーリン
グ電文内の「現巡回数」から1を減算し(step6−
3)、その値が0になったかどうかを判定する(ste
p6−4)。0になっていなければ、このポーリング電
文の内容を、次局番号41を「1プラス1(=2)」,
発信局番号42を「1」、現巡回数43を「3マイナス
1(=2)」に変更して(step6−8)、次局であ
る子局1−2に送出し、(step6−9)、ポーリン
グ受信待ち状態に移る。
In step 6-2, if there is no data message to be sent, 1 is subtracted from the "current number of tours" in the sent polling message (step 6-2).
3), it is determined whether the value has become 0 (ste)
p6-4). If it is not 0, the content of this polling message is set to the next station number 41 as "1 plus 1 (= 2)",
The source station number 42 is changed to "1", and the current number of tours 43 is changed to "3 minus 1 (= 2)" (step 6-8), and transmitted to the slave station 1-2 which is the next station, (step 6-9). ), And shift to a polling reception waiting state.

【0049】step6−4において、現巡回数43が
0になったときは、前述のとおり、一旦親局3に強制的
にポーリング応答を行わせるため、step6−10の
処理に移行する。
In step 6-4, when the current number of tours 43 becomes 0, as described above, the process shifts to step 6-10 in order to forcibly cause the master station 3 to temporarily perform a polling response.

【0050】[0050]

【発明の効果】以上説明してきたように、本発明のポー
リング集中制御通信方法では、基本的なポーリング通信
の処理制御に、トークンパス通信のトークンを模した処
理を部分的に取り入れることによって、親局が常時、す
べての子局に対してポーリング通信を行う必要がなく、
親局側のCPUがこの通信制御処理に要する負荷を低減
させることが可能となる。
As described above, according to the polling centralized control communication method of the present invention, the process of imitating the token of the token pass communication is partially incorporated into the basic polling communication processing control, thereby enabling the parent polling communication. There is no need for the station to constantly perform polling communication for all slave stations,
It becomes possible to reduce the load required for the CPU on the master station side for the communication control processing.

【0051】また、本発明のポーリング集中制御通信方
法であれば、上述の効果を、異なる2つの通信プログラ
ム(ポーリング通信,トークンパス通信)を搭載せず
に、より簡素な構成で実現することができる。
Further, according to the polling centralized control communication method of the present invention, the above effects can be realized with a simpler configuration without installing two different communication programs (polling communication and token path communication). it can.

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

【図1】本発明の実施形態の通信方法を適用した計測シ
ステムを示すブロック図である。
FIG. 1 is a block diagram illustrating a measurement system to which a communication method according to an embodiment of the present invention is applied.

【図2】本発明の実施形態の通信方法における親局〜子
局間の通信を示すタイムチャートである。
FIG. 2 is a time chart illustrating communication between a master station and a slave station in the communication method according to the embodiment of the present invention.

【図3】強制的な親局へのポーリング応答を示すタイム
チャートである。。
FIG. 3 is a time chart showing a forcible polling response to a master station. .

【図4】ポーリング電文・ポーリング応答電文のフォー
マットを示す図である。
FIG. 4 is a diagram showing a format of a polling message / polling response message.

【図5】親局側の通信処理を示す制御フローチャートで
ある。
FIG. 5 is a control flowchart showing communication processing on the master station side.

【図6】子局側の通信処理を示す制御フローチャートで
ある。
FIG. 6 is a control flowchart showing communication processing on the slave station side.

【図7】従来技術における親局〜子局間の通信を示すタ
イムチャートである。
FIG. 7 is a time chart showing communication between a master station and a slave station in the related art.

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

1−1〜1−n 子局 2 通信路 3 親局 41 次局番号 42 発信局番号 43 現巡回数 1-1 to 1-n slave station 2 communication path 3 master station 41 next station number 42 originating station number 43 current round number

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の計測局で計測されるデータを一つ
の監視局が集中的に受信して監視する監視システムのデ
ータ通信制御方法において、 前記監視局が送出するポーリング電文を、あらかじめ定
めた順序の先頭となる計測局に対して送出し、 前記複数の計測局は、前記ポーリング電文を受信した時
点で、前記監視局あるいは別の計測局に送出すべきデー
タを有しているか否かを判定し、 前記送出すべきデータを有していなければ該ポーリング
電文を次の計測局に送出し、有していればその宛て先を
判定し、該宛て先が前記監視局であればこれにポーリン
グ応答電文を付加して送出し、該宛て先が前記別の計測
局であれば、前記送出すべきデータのみを送出した後に
前記ポーリング応答電文を前記監視局に対して送出し、
前記ポーリング電文を受信した前記監視局は、前記あら
かじめ定めた順序により、前記ポーリング応答電文を送
出した計測局の次の計測局に対し改めてポーリング電文
を送出し、 前記ポーリング電文が全計測局を1巡したとき、最後の
計測局から前記監視局に宛てたポーリング応答電文を送
出させることを特徴とする、遠隔計測システムのデータ
通信制御方法。
1. A data communication control method for a monitoring system in which one monitoring station collectively receives and monitors data measured by a plurality of measuring stations, wherein a polling message transmitted by the monitoring station is determined in advance. Send to the measurement station at the beginning of the order, the plurality of measurement stations, at the time of receiving the polling message, whether or not it has data to be sent to the monitoring station or another measurement station Judgment, if it does not have the data to be sent, send the polling message to the next measurement station, if it has, judge its destination, if the destination is the monitoring station, A polling response message is added and transmitted, and if the destination is the another measurement station, the polling response message is transmitted to the monitoring station after transmitting only the data to be transmitted,
The monitoring station that has received the polling message sends a new polling message to the next measuring station after the measuring station that sent the polling response message in the predetermined order, and the polling message sends all the measuring stations one by one. A data communication control method for a remote measurement system, wherein a polling response message addressed to the monitoring station is sent from the last measurement station when the communication has been performed.
【請求項2】 前記ポーリング電文の巡回数を任意に設
定し、前記ポーリング電文が前記全計測局を前記巡回数
だけ周回したことを検出したとき、最後の計測局から前
記監視局に宛てたポーリング応答電文を強制的に送出さ
せることを特徴とする、請求項1記載の遠隔計測システ
ムのデータ通信制御方法。
2. A method of arbitrarily setting the number of rounds of the polling message, and when detecting that the polling message has circulated all the measuring stations by the number of rounds, polling from the last measuring station to the monitoring station. 2. The data communication control method for a remote measurement system according to claim 1, wherein a response message is forcibly transmitted.
【請求項3】 前記複数の計測局が前記監視局に、シリ
アル回線によるマルチドロップ形式で接続されているこ
とを特徴とする、請求項1あるいは請求項2記載の遠隔
計測システムのデータ通信制御方法。
3. The data communication control method for a remote measurement system according to claim 1, wherein the plurality of measurement stations are connected to the monitoring station in a multi-drop manner via a serial line. .
JP10164618A 1998-06-12 1998-06-12 Data communication control method for remote measurement system Pending JPH11355331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10164618A JPH11355331A (en) 1998-06-12 1998-06-12 Data communication control method for remote measurement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10164618A JPH11355331A (en) 1998-06-12 1998-06-12 Data communication control method for remote measurement system

Publications (1)

Publication Number Publication Date
JPH11355331A true JPH11355331A (en) 1999-12-24

Family

ID=15796629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10164618A Pending JPH11355331A (en) 1998-06-12 1998-06-12 Data communication control method for remote measurement system

Country Status (1)

Country Link
JP (1) JPH11355331A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013030930A (en) * 2011-07-27 2013-02-07 Denso Corp Communication device
WO2013171999A1 (en) * 2012-05-18 2013-11-21 リオン株式会社 Measurement system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013030930A (en) * 2011-07-27 2013-02-07 Denso Corp Communication device
WO2013171999A1 (en) * 2012-05-18 2013-11-21 リオン株式会社 Measurement system
US10139431B2 (en) 2012-05-18 2018-11-27 Rion Co., Ltd. Measurement system

Similar Documents

Publication Publication Date Title
JPH0419737B2 (en)
JPH11355331A (en) Data communication control method for remote measurement system
JPH1121038A (en) Elevator signal transmission equipment
JPS61177047A (en) Terminal central management system
JP3777809B2 (en) Method for detecting line abnormality in duplex communication system
JP2798329B2 (en) Data communication method
JP3883289B2 (en) Polling communication system
JPH11284642A (en) Data transmission system, polling method, and polling frequency setting method
JP2550076B2 (en) Multiple system controller
JPS5828997B2 (en) Supervisory control method
JPH04260242A (en) Monitor information collecting system
JP3738636B2 (en) Dimming system bus control method
JPH10233792A (en) Polling system/method
JPH01291598A (en) Monitor information transmission system
JPH08251206A (en) Data transmission equipment
JPH04103244A (en) Network monitor system
JPH05236555A (en) Remote monitor system
JPS63296456A (en) Data sending system
JPH01152838A (en) High speed data collection system and high speed terminal supervision system
JPH01220544A (en) Cyclic transmission system
JP2750934B2 (en) Communication method in multi-connection
JPH10312210A (en) Distributed monitoring and control system
JPH06327053A (en) Line switching method by polling
JPH0275242A (en) Monitor control system for transmission line
JPH02274095A (en) Time sharing multiplex transmitting system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030304