JPH07104842A - Data collecting system - Google Patents
Data collecting systemInfo
- Publication number
- JPH07104842A JPH07104842A JP5244424A JP24442493A JPH07104842A JP H07104842 A JPH07104842 A JP H07104842A JP 5244424 A JP5244424 A JP 5244424A JP 24442493 A JP24442493 A JP 24442493A JP H07104842 A JPH07104842 A JP H07104842A
- Authority
- JP
- Japan
- Prior art keywords
- data
- controller
- monitoring device
- priority
- controllers
- 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
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、監視装置が順次各コン
トローラにポーリング信号を送信して送信先のコントロ
ーラからデータを収集するデータ収集方式に係わり、特
に収集データの変化率が大きいコントローラから優先し
た割合でデータを収集することにより、データが急変し
た際にも迅速に対応し得るデータ収集方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data collection system in which a monitoring device sequentially sends a polling signal to each controller to collect data from a destination controller, and in particular, a controller having a large change rate of collected data is given priority. The present invention relates to a data collection method capable of promptly responding to a sudden change in data by collecting data at a ratio.
【0002】[0002]
【従来の技術】従来、監視装置による複数のコントロー
ラからのデータ収集には、監視装置が各コントローラに
局アドレス等の所定の順番でデータ要求コマンド(ポー
リング信号)を送信し、データ要求コマンドを受信した
コントローラが収集データを監視装置に送信するポーリ
ング/セレクティング方式が広く用いられている。2. Description of the Related Art Conventionally, when collecting data from a plurality of controllers by a monitoring device, the monitoring device transmits a data request command (polling signal) to each controller in a predetermined order such as a station address and receives the data request command. A polling / selecting method in which the controller sends collected data to a monitoring device is widely used.
【0003】図8はこのようなデータ収集方式による伝
送手順を示す概略図である。同図において、監視装置1
は複数のコントローラ21 〜2n に接続され、各コント
ローラ21 〜2n に順次データ要求コマンドを送信し、
送信先のコントローラ2から返送される収集データを表
示する。FIG. 8 is a schematic diagram showing a transmission procedure by such a data collection method. In the figure, the monitoring device 1
Is connected to a plurality of controllers 2 1 to 2 n, sequentially transmits the data request command to each controller 2 1 to 2 n,
The collected data returned from the destination controller 2 is displayed.
【0004】図9乃至図11はこのような監視装置又は
各コントローラの動作を説明するためのフローチャート
であり、図12及び図13はこの監視装置又は各コント
ローラの伝送テキストの構成を示す模式図である。9 to 11 are flowcharts for explaining the operation of such a monitoring device or each controller, and FIGS. 12 and 13 are schematic diagrams showing the structure of the transmission text of this monitoring device or each controller. is there.
【0005】監視装置は、図9に示すように、データ要
求先コントローラ局番を初期値である1に設定し(ST
1)、図12に示すようにヘッダ、データ要求先コント
ローラ番号、データ要求コマンド及びFCS(フレーム
チェックシーケンス)からなるデータ要求コマンドテキ
ストを作成し(ST2)、このデータ要求コマンドテキ
ストをコントローラ1に送信する(ST3)。As shown in FIG. 9, the monitoring device sets the data request destination controller station number to an initial value of 1 (ST
1) As shown in FIG. 12, a data request command text including a header, a data request destination controller number, a data request command, and an FCS (frame check sequence) is created (ST2), and this data request command text is transmitted to the controller 1. Yes (ST3).
【0006】コントローラは、図10に示すように、自
局あてのデータ要求コマンドを受信したか否かを判定し
(ST4)、判定結果が受信無しを示すとき、ステップ
ST4に戻り、判定結果が受信有りを示すとき、図13
に示すようにヘッダ、自局のコントローラ番号、PV
値、MV値、…、デジタル入力値、アナログ入力値及び
FCSからなる応答データ送信テキストを作成し(ST
5)、この応答データ送信テキストの監視装置への送信
処理を実行する(ST6) 監視装置は、ステップST3が完了すると、図11に示
すようにコントローラからの応答の有無を判定し(ST
7)、判定結果が応答無しを示すとき、ステップST7
に戻り、判定結果が応答有りを示すとき、この応答デー
タ送信テキストのエラーの有無を判定する(ST8)。
なお、このステップST7〜8ではリトライ及びタイム
アウトなどの伝送処理を実行してもよい。As shown in FIG. 10, the controller determines whether or not a data request command destined for its own station has been received (ST4), and when the determination result indicates no reception, the process returns to step ST4 and the determination result is When indicating that there is reception, FIG.
As shown in, header, own controller number, PV
Value, MV value, ..., Digital input value, Analog input value and FCS are created (ST)
5) Execute the process of transmitting this response data transmission text to the monitoring device (ST6) When step ST3 is completed, the monitoring device determines whether or not there is a response from the controller as shown in FIG. 11 (ST
7), when the determination result shows that there is no response, step ST7
When the determination result indicates that there is a response, it is determined whether or not there is an error in the response data transmission text (ST8).
Note that transmission processes such as retries and timeouts may be executed in steps ST7 to ST8.
【0007】監視装置はこのステップST8において判
定結果がエラー有りを示すとき、データを再度要求する
ためにステップST2に戻り、判定結果がエラー無しを
示すとき、受信した収集データをRAMに保存し、且つ
表示する(ST9)。When the determination result in this step ST8 indicates that there is an error, the monitoring device returns to step ST2 to request the data again, and when the determination result indicates that there is no error, the received collected data is stored in the RAM, It is also displayed (ST9).
【0008】また、監視装置はこのような収集データを
n台の全てのコントローラから収集し終えたか否かを判
定し(ST10)、判定結果が全コントローラから収集
し終えてない旨を示すとき、次の局番の計算のためにデ
ータ要求先コントローラ局番を+1だけ更新して(ST
11)ステップST2に戻り、判定結果が全コントロー
ラから収集し終えた旨を示すとき、繰返して新たに最初
のコントローラからデータを収集するためにステップS
T1に戻る。以下、前述した通り、監視装置は順次各コ
ントローラからデータ収集を実行するする。Further, the monitoring device judges whether or not such collected data has been collected from all the n controllers (ST10), and when the judgment result indicates that the collected data has not been collected from all the controllers, Update the data request destination controller station number by +1 to calculate the next station number (ST
11) Return to step ST2, and when the determination result indicates that collection has been completed from all controllers, repeat step S to collect new data from the first controller.
Return to T1. Hereinafter, as described above, the monitoring device sequentially executes data collection from each controller.
【0009】[0009]
【発明が解決しようとする課題】しかしながら以上のよ
うなデータ収集方式では、監視装置が各コントローラか
ら決まった順番でデータ収集を行うので、データの表示
更新周期が常に一定となっている問題がある。However, in the above-mentioned data collection method, since the monitoring device collects data from each controller in a predetermined order, there is a problem that the display update cycle of data is always constant. .
【0010】すなわち、データの表示更新周期が一定で
あるため、コントローラで変更されたデータが監視装置
に表示されるまでに、時間がかかる場合がある。例え
ば、データの変更から直ぐに収集順が回ってくれば直ち
に表示が更新されるが、タイミングが悪く収集順が過ぎ
た直後にデータが変更された場合は次の収集順が回って
くるまで待たないと、表示が更新されないという問題が
ある。That is, since the display update cycle of the data is constant, it may take some time before the data changed by the controller is displayed on the monitoring device. For example, the display is updated immediately if the collection order is changed immediately after the data is changed, but if the data is changed immediately after the collection order has passed due to poor timing, do not wait until the next collection order is reached. Then, there is a problem that the display is not updated.
【0011】この問題はコントローラ台数が少ないとき
には次の収集順が回ってくるまでの時間が短いために特
に悪影響を与えないが、コントローラ台数が増大すると
プラント制御に悪影響を与え始める。This problem does not have a bad influence particularly when the number of controllers is small because the time until the next collection order comes around is short. However, when the number of controllers increases, the control of the plant begins to be adversely affected.
【0012】また、データが頻繁に変わるコントローラ
と、データがほとんど変わらないコントローラとにおい
てデータ収集頻度が同一であるため、データが急変した
コントローラのデータ表示までに時間を要し、プラント
運転に不都合が生じる可能性がある。Further, since the data collection frequency is the same in the controller in which the data changes frequently and in the controller in which the data hardly changes, it takes time to display the data of the controller in which the data changes suddenly, which causes inconvenience in plant operation. Can occur.
【0013】本発明は上記実情を考慮してなされたもの
で、収集データの変化率の大きいコントローラから優先
した割合でデータを収集することにより、データが急変
した際にも迅速に対応し得るデータ収集方式を提供する
ことを目的とする。The present invention has been made in consideration of the above situation, and by collecting data at a priority rate from a controller having a large change rate of collected data, it is possible to quickly respond even when the data changes suddenly. The purpose is to provide a collection method.
【0014】[0014]
【課題を解決するための手段】本発明は監視装置に複数
のコントローラが接続され、前記監視装置から順次個別
に送信されるポーリング信号を前記各コントローラが受
けると、対応するコントローラが収集データを前記監視
装置に返送するデータ収集方式において、前記コントロ
ーラが収集データを返送する際に、前記コントローラ
が、前回の収集データと今回の収集データとの変化率を
求めると共に、この変化率が所定の制限値を越えたと
き、他のコントローラよりも優先してデータ収集を実行
させるためのデータ要求頻度変更フラグをセットしてこ
のデータ要求頻度変更フラグ及び前記今回の収集データ
を含む応答データ送信テキストを前記監視装置に送信
し、この監視装置が、前記コントローラから送信された
応答データ送信テキスト内のデータ要求頻度変更フラグ
に基づいて、前記変化率の大小を判定すると共に、この
判定結果が変化率大を示すとき、当該コントローラに他
のコントローラよりも優先した割合で前記ポーリング信
号を送信するデータ収集方式である。According to the present invention, a plurality of controllers are connected to a monitoring device, and when each controller receives a polling signal transmitted individually from the monitoring device, the corresponding controller collects the collected data. In the data collection method of returning to the monitoring device, when the controller returns the collected data, the controller obtains a change rate between the previous collected data and the current collected data, and the change rate is a predetermined limit value. When it exceeds the above, the data request frequency change flag for executing data collection with priority over other controllers is set, and the response data transmission text including this data request frequency change flag and the collected data of this time is monitored. The response data sent text sent to the device, and this monitoring device sent from the controller. Based on the data request frequency change flag, the data for transmitting the polling signal to the controller at a rate prioritized over other controllers when the change rate is determined to be large or small It is a collection method.
【0015】[0015]
【作用】従って、本発明は以上のような手段を講じたこ
とにより、コントローラが収集データを返送する際に、
コントローラが、前回の収集データと今回の収集データ
との変化率を求めると共に、この変化率が所定の制限値
を越えたとき、他のコントローラよりも優先してデータ
収集を実行させるためのデータ要求頻度変更フラグをセ
ットしてこのデータ要求頻度変更フラグ及び今回の収集
データを含む応答データ送信テキストを監視装置に送信
し、この監視装置が、コントローラから送信された応答
データ送信テキスト内のデータ要求頻度変更フラグに基
づいて、変化率の大小を判定すると共に、この判定結果
が変化率大を示すとき、当該コントローラに他のコント
ローラよりも優先した割合でポーリング信号を送信する
ことができるので、収集データの変化率の大きいコント
ローラから優先した割合でデータを収集することによ
り、データが急変した際にも迅速に対応することができ
る。Therefore, according to the present invention, by taking the above means, when the controller returns the collected data,
The controller obtains the rate of change between the previously collected data and this time's collected data, and when this rate of change exceeds the specified limit value, a data request to execute data collection with priority over other controllers. The frequency change flag is set, and the response data transmission text including the data request frequency change flag and the collected data of this time is transmitted to the monitoring device, and the monitoring device transmits the response data transmission text in the response data transmission text transmitted from the controller. As the change rate is judged based on the change flag, and when this judgment result shows that the change rate is high, the polling signal can be sent to the controller at a priority over other controllers. By collecting data from the controller that has a large change rate of It is possible to respond quickly even when.
【0016】[0016]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明の一実施例に係るデータ収集
方式に適用される監視システムの構成を示すブロック図
である。この監視システムは、監視装置11がLAN1
2を介して複数のコントローラA,B,…,F,に接続
されている。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a monitoring system applied to a data collection method according to an embodiment of the present invention. In this monitoring system, the monitoring device 11 is a LAN 1
, F are connected to a plurality of controllers A, B ,.
【0017】監視装置11は、各コントローラA,B,
…,F,に順次データ要求コマンドテキストを送信し、
送信先のコントローラA〜Fから返信される応答データ
送信テキストに含まれたデータ要求頻度変更フラグと、
優先局が設定されてからのデータ収集の実行回数を示す
優先割合カウンタの計数値と、予め設定されるシステム
の固有値とに基づいて、急変するデータを優先的に収集
するためのデータ収集処理及び収集データの更新表示処
理を実行する機能をもっている。ここで、システムの固
有値はシステムに対応して設定されるシステム固有の優
先割合であって、何回のデータ収集のうちの1回のデー
タ収集を優先されるコントローラから実行するかを示し
ている。The monitoring device 11 includes controllers A, B,
..., F, sequentially send the data request command text to
A data request frequency change flag included in the response data transmission text returned from the destination controllers A to F;
A data collection process for preferentially collecting suddenly changing data based on the count value of the priority ratio counter indicating the number of times of data collection execution after the priority station is set, and the preset unique value of the system, and It has a function to execute update display processing of collected data. Here, the unique value of the system is a system-specific priority ratio set corresponding to the system, and indicates how many times of data collection one data collection is executed from the priority controller. .
【0018】なお、データ要求コマンドテキストは従来
と同一のものであり、図12に示すようにヘッダ、デー
タ要求先コントローラ番号、データ要求コマンド及びF
CSから構成されている。The data request command text is the same as the conventional one, and as shown in FIG. 12, the header, the data request destination controller number, the data request command and the F
It is composed of CS.
【0019】また、各コントローラA,B,…,F,
は、監視装置11から自局あてのデータ要求コマンドテ
キストを受信すると、前回の収集データを記憶している
前回値エリアa,b,…,f,を参照して前回の収集デ
ータに対する今回の収集データの変化率を算出し、この
変化率が所定の制限値を越えたときに応答データ送信テ
キスト内のデータ要求頻度変更フラグを立てて、このデ
ータ要求頻度変更フラグ及び今回の収集データを含む応
答データ送信テキストを監視装置11に送信する機能を
もっている。Further, each controller A, B, ..., F,
When receiving the data request command text destined for its own station from the monitoring device 11, refers to the previous value areas a, b, ... The rate of change of data is calculated, and when this rate of change exceeds a predetermined limit value, a data request frequency change flag is set in the response data transmission text, and a response including this data request frequency change flag and this time's collected data It has a function of transmitting the data transmission text to the monitoring device 11.
【0020】なお、この応答データ送信テキストは、従
来の応答データ送信テキストにデータ要求頻度変更フラ
グを付加したものであって、図2に示すようにヘッダ、
自局のコントローラ番号、データ要求頻度変更フラグ、
PV値、MV値、…、デジタル入力値、アナログ入力値
及びFCSを含んで構成されている。また、PV値、M
V値、…、デジタル入力値及びアナログ入力値はデータ
部分である。The response data transmission text is a conventional response data transmission text to which a data request frequency change flag is added. As shown in FIG.
Controller number of own station, data request frequency change flag,
A PV value, an MV value, ..., A digital input value, an analog input value, and an FCS are included. Also, PV value, M
The V value, ..., The digital input value and the analog input value are data parts.
【0021】また、前回値エリアa,b,…,f,は、
図3に示すように応答データ送信テキストのデータ部分
と同じフォーマットで前回の収集データが記憶される。
次に、このような監視システムにおけるデータ収集方式
について図4乃至図6のフローチャートを用いて説明す
る。The previous value areas a, b, ..., F,
As shown in FIG. 3, the previously collected data is stored in the same format as the data part of the response data transmission text.
Next, a data collection method in such a monitoring system will be described with reference to the flowcharts of FIGS.
【0022】初めに、監視装置11は、優先局番及び優
先割合カウンタの初期値を零に設定すると共に(ST2
1)、局番号の初期値を1に設定する(ST22)。続
いて監視装置11は、優先割合カウンタが固有の値
“m”、例えば固有値“3”に到達したか否かを判定し
(ST23)、判定結果が優先割合カウンタの固有値
“3”への到達を示すとき、優先割合カウンタを零にリ
セットすると共に、正規の収集局から収集する順番のと
きに優先局からの収集を割込ませるために収集局番を優
先局番として更に局番号から1を減算するが(ST2
4)、この場合、まだ判定結果が優先割合カウンタの
“2”への到達を示さないので、収集局番(=1)を局
番号(=1)とすると共に(ST25)、収集局番に対
応してデータ要求コマンドテキストを作成し、このデー
タ要求コマンドテキストをコントローラAに送信してデ
ータ収集を実行する(ST26)。First, the monitoring device 11 sets the initial values of the priority station number and the priority ratio counter to zero (ST2
1), the initial value of the station number is set to 1 (ST22). Subsequently, the monitoring device 11 determines whether or not the priority ratio counter has reached the unique value "m", for example, the unique value "3" (ST23), and the determination result reaches the unique value "3" of the priority ratio counter. , The priority ratio counter is reset to zero, and the collection station number is used as the priority station number to interrupt the collection from the priority station in the order of collecting from the regular collection station, and 1 is further subtracted from the station number. But (ST2
4) In this case, since the determination result does not yet indicate that the priority ratio counter has reached “2”, the collection station number (= 1) is set as the station number (= 1) (ST25), and the collection station number is handled. A data request command text is created by transmitting the data request command text to the controller A to execute data collection (ST26).
【0023】コントローラAは自局あてのデータ要求コ
マンドテキストを受信したか否かを判定し(ST2
7)、判定結果が受信無しを示すとき、待機のためにス
テップST27に戻り、判定結果が受信有りを示すと
き、前回値エリアaからアナログ入力値を読出して次の
(1)式に示すように前回の収集データと今回の収集デ
ータとの変化率を算出する(ST28)。Controller A determines whether or not it has received a data request command text for its own station (ST2
7) When the determination result shows that no reception has been made, the process returns to step ST27 for standby. When the determination result shows that there is reception, the analog input value is read from the previous value area a, and the result is expressed by the following equation (1). Then, the rate of change between the previously collected data and the currently collected data is calculated (ST28).
【0024】変化率=(今回の収集データ − 前回の
収集データ)/レンジ …(1) 続いてコントローラAは、この変化率と所定の制限値と
を比較して変化率が制限値を越えたか否かを判定し(S
T29)、判定結果が変化率が大であって制限値を越え
た旨を示すとき、データ要求頻度変更フラグを“1”に
セットするが(ST30)、この場合、判定結果が変化
率の制限値以内である旨を示すので、応答データ送信テ
キスト内のデータ要求頻度変更フラグを“0”にリセッ
トする(ST31)。Change rate = (collected data of this time-collected data of previous time) / range (1) Subsequently, the controller A compares this change rate with a predetermined limit value and determines whether the change rate exceeds the limit value. It is determined whether or not (S
T29), when the determination result shows that the change rate is large and exceeds the limit value, the data request frequency change flag is set to "1" (ST30), but in this case, the determination result is the change rate limit. Since it indicates that the value is within the value, the data request frequency change flag in the response data transmission text is reset to "0" (ST31).
【0025】このようにしてコントローラAは応答デー
タ送信テキストを作成すると共に(ST32)、作成し
た応答データ送信テキストを監視装置11に送信する
(ST33)。また、コントローラAは今回送信した収
集データを前回値エリアaに記憶する(ST34)。In this way, the controller A creates the response data transmission text (ST32) and transmits the created response data transmission text to the monitoring device 11 (ST33). Further, the controller A stores the collected data transmitted this time in the previous value area a (ST34).
【0026】一方、監視装置11は、コントローラAか
ら応答データ送信テキストを受信すると、データの変化
率の大小を判定するためにこの応答データ送信テキスト
に含まれるデータ要求頻度変更フラグが“1”であるか
否かを判定する(ST35)。On the other hand, when the monitoring device 11 receives the response data transmission text from the controller A, the data request frequency change flag included in the response data transmission text is "1" in order to determine the magnitude of the data change rate. It is determined whether there is any (ST35).
【0027】ステップST35において判定結果が該フ
ラグの“1”である旨を示すとき、監視装置11は、既
に優先局が設定されているか否かを判定するために優先
局番が零であるか否かを判定し(ST36)、判定結果
が優先局番の零を示すとき、優先局番を今の収集局番に
設定した後(ST37)、局番号(=1)を+1だけ更
新し(ST38)、判定結果が優先局番の零でない旨を
示すとき、ステップST38に行く。When the result of determination in step ST35 indicates that the flag is "1", the monitoring device 11 determines whether or not the priority station number is zero in order to determine whether or not the priority station is already set. If it is judged (ST36) that the priority station number is zero, the priority station number is set to the current collection station number (ST37), and the station number (= 1) is updated by +1 (ST38). When the result shows that the priority station number is not zero, the process goes to step ST38.
【0028】なお、この場合、ステップST35におい
て判定結果が該フラグの“0”である旨を示すので、続
いて現在の優先局のフラグのリセットか否かを判定する
ために優先局番と収集局番が一致するか否かを判定し
(ST39)、判定結果が一致を示すとき、優先局番及
び優先割合カウンタを零にリセットするが(ST4
0)、この場合、判定結果が不一致を示すのでステップ
ST38に行く。In this case, since the determination result in step ST35 indicates that the flag is "0", the priority station number and the collection station number are subsequently determined to determine whether or not the flag of the current priority station is reset. Is determined (ST39), and when the determination result shows a match, the priority station number and the priority ratio counter are reset to zero (ST4).
0), in this case, the determination result indicates non-coincidence, so the process proceeds to step ST38.
【0029】監視装置11は、ステップST38におけ
る局番号の更新(=2)が完了すると、優先局番が設定
されているか否かを判定するために優先局番が零でない
か否かを判定し(ST41)、判定結果が優先局番の零
でない旨を示すとき、優先割合カウンタを+1だけ更新
するが(ST42)、この場合、優先局が無いために判
定結果が優先局番の零を示すので、優先割合カウンタを
零に設定する(ST43)。When the station number update (= 2) in step ST38 is completed, the monitoring device 11 determines whether or not the priority station number is not zero in order to determine whether or not the priority station number is set (ST41). ), When the determination result indicates that the priority station number is not zero, the priority ratio counter is updated by +1 (ST42). In this case, however, since the determination result indicates that the priority station number is zero, the priority ratio is zero. The counter is set to zero (ST43).
【0030】しかる後、監視装置11は全コントローラ
A〜Fからのデータ収集を終えたか否かを判定し(ST
44)、判定結果が全コントローラA〜Fからのデータ
収集を終えた旨を示すとき、局番号を初期化してデータ
収集を繰り返すためにステップST22に戻るが、この
場合、判定結果が全コントローラA〜Fからのデータ収
集を終えない旨を示すので、次のコントローラBからデ
ータ収集を実行するためにステップST23に戻る。Thereafter, the monitoring device 11 determines whether or not the data collection from all the controllers A to F has been completed (ST
44), when the determination result shows that the data collection from all the controllers A to F has been completed, the station number is initialized and the process returns to step ST22 to repeat the data collection. Since it indicates that the data collection from F to F is not completed, the process returns to step ST23 to execute the data collection from the next controller B.
【0031】これにより、コントローラAに対するデー
タ収集が完了する。次に、コントローラBに対するデー
タ収集を説明する。なお、コントローラBではデータが
急変しているものとする。This completes the data collection for the controller A. Next, the data collection for the controller B will be described. It is assumed that the data is suddenly changed in the controller B.
【0032】監視装置11は、ステップST23におい
て優先割合カウンタ(=0)が固有値“3”に到達して
ないため、ステップST25において収集局番を局番号
(=2)に一致するように設定し、ステップST26に
おいてデータ要求コマンドテキストをコントローラBに
送信する。Since the priority ratio counter (= 0) has not reached the eigenvalue "3" in step ST23, the monitoring device 11 sets the collection station number to match the station number (= 2) in step ST25, In step ST26, the data request command text is transmitted to the controller B.
【0033】コントローラBは、前述した通り、データ
要求コマンドテキストを受信し、しかる後、ステップS
T29においてデータの急変を検出してステップST3
0においてデータ要求頻度変更フラグを“1”に設定
し、ステップST33においてこのデータ要求頻度変更
フラグ“1”を含む応答データ要求テキストを監視装置
11に送出する。As described above, the controller B receives the data request command text, and then performs step S.
At T29, a sudden change in data is detected and step ST3
The data request frequency change flag is set to "1" at 0, and the response data request text including the data request frequency change flag "1" is sent to the monitoring device 11 at step ST33.
【0034】監視装置11はステップST35において
データ要求頻度変更フラグを“1”であると判定し、ス
テップST36において優先局番を今だ設定されてない
もの(=0)と判定してステップST37において優先
局番を収集局番(=2)に一致するように設定し、しか
る後、ステップST38において局番号を+1だけ更新
(=3)する。The monitoring device 11 determines that the data request frequency change flag is "1" in step ST35, determines that the priority station number is not set yet (= 0) in step ST36, and prioritizes in step ST37. The station number is set so as to match the collection station number (= 2), and thereafter, in step ST38, the station number is updated by +1 (= 3).
【0035】続いて監視装置11はステップST41に
おいて優先局番(=2)を零でないと判定し、ステップ
ST42において優先割合カウンタを+1だけ更新(=
1)してステップST44においてステップST23に
戻る。Subsequently, the monitoring device 11 determines in step ST41 that the priority station number (= 2) is not zero, and in step ST42 updates the priority ratio counter by +1 (=
1) Then, in step ST44, the process returns to step ST23.
【0036】次に、コントローラCに対するデータ収集
を説明する。なお、コントローラCではデータが急変し
ないものとする。前述した通り、監視装置11はステッ
プST23において優先割合カウンタの計数値(=1)
が固有値“3”に到達してないため、ステップST25
において収集局番を局番号(=3)に一致するように設
定し、ステップST26においてデータ要求コマンドテ
キストをコントローラCに送信する。Next, the data collection for the controller C will be described. It is assumed that the data is not suddenly changed in the controller C. As described above, the monitoring device 11 determines the count value (= 1) of the priority ratio counter in step ST23.
Has not reached the eigenvalue “3”, step ST25
In step ST26, the collection station number is set to match the station number (= 3), and the data request command text is transmitted to the controller C in step ST26.
【0037】コントローラCは、データ要求コマンドテ
キストを受信し、ステップST29においてデータの急
変を検出しないためにステップST31においてデータ
要求頻度変更フラグを“0”に設定し、ステップST3
3においてこのデータ要求頻度変更フラグ“0”を含む
応答データ要求テキストを監視装置11に送出する。The controller C receives the data request command text, sets the data request frequency change flag to "0" in step ST31 so as not to detect the sudden change of data in step ST29, and in step ST3.
In 3, the response data request text including the data request frequency change flag “0” is sent to the monitoring device 11.
【0038】監視装置11はステップST35において
データ要求頻度変更フラグを“0”であると判定し、ス
テップST39において優先局番(=2)と収集局番
(=3)とが異なるために該フラグ“0”を現在の優先
局のリセットではないと判定し、ステップST38にお
いて局番号を+1だけ更新(=4)する。In step ST35, the monitoring device 11 determines that the data request frequency change flag is "0", and in step ST39, since the priority station number (= 2) and the collection station number (= 3) are different, the flag "0" is set. It is determined that "" is not the reset of the current priority station, and the station number is updated by +1 (= 4) in step ST38.
【0039】続いて監視装置11はステップST41に
おいて優先局番(=2)を零でないと判定し、ステップ
ST42において優先割合カウンタを+1だけ更新(=
2)してステップST44においてステップST23に
戻る。Subsequently, the monitoring device 11 determines in step ST41 that the priority station number (= 2) is not zero, and in step ST42 updates the priority ratio counter by +1 (=
2) Then, in step ST44, the process returns to step ST23.
【0040】続いて、前述同様に監視装置11はコント
ローラDからデータを収集する。なお、コントローラD
はデータの急変がないものとする。また、データ収集
後、局番号はステップST38で+1だけ更新されて5
となっており、優先割合カウンタはステップST42で
+だけ更新されて3となっている。Subsequently, the monitoring device 11 collects data from the controller D as described above. The controller D
Indicates that there is no sudden change in the data. In addition, after collecting the data, the station number is updated by +1 in step ST38 and becomes 5
The priority ratio counter is updated by + in step ST42 to become 3.
【0041】次に、コントローラEに対するデータ収集
に優先局であるコントローラBが割込む場合について説
明する。なお、コントローラBではデータが急変してい
るものとする。Next, the case where the controller B, which is the priority station, interrupts the data collection for the controller E will be described. It is assumed that the data is suddenly changed in the controller B.
【0042】監視装置11はステップST23において
優先割合カウンタの計数値(=3)を固有値“3”に到
達したと判定し、ステップST24において優先割合カ
ウンタを零にリセットし、収集局番を優先局番(=2)
に一致させると共に、局番号(=5)から1を減算(=
4)する。The monitoring device 11 determines in step ST23 that the count value (= 3) of the priority ratio counter has reached the eigenvalue "3", resets the priority ratio counter to zero in step ST24, and sets the collecting station number to the priority station number ( = 2)
And 1 is subtracted from the station number (= 5) (=
4) Do.
【0043】しかる後、監視装置11はステップST2
6においてデータ要求コマンドテキストを収集局番(=
2)に対応するコントローラBに送信する。コントロー
ラBは、前述した通り、データ要求コマンドテキストを
受信し、しかる後、ステップST29においてデータの
急変を検出してステップST30においてデータ要求頻
度変更フラグを“1”に設定し、ステップST33にお
いてこのデータ要求頻度変更フラグ“1”を含む応答デ
ータ要求テキストを監視装置!11に送出する。After that, the monitoring device 11 performs step ST2.
In 6 the data request command text is collected station number (=
It transmits to the controller B corresponding to 2). As described above, the controller B receives the data request command text, thereafter detects a sudden change in the data in step ST29, sets the data request frequency change flag to "1" in step ST30, and then, in step ST33, this data. Monitoring device for response data request text including request frequency change flag "1"! Send to 11.
【0044】監視装置11はステップST35において
データ要求頻度変更フラグを“1”であると判定し、ス
テップST36において優先局番を既に設定されたもの
(=2)と判定してステップST38において局番号
(=4)を+1だけ更新(=5)する。The monitoring apparatus 11 determines in step ST35 that the data request frequency change flag is "1", determines in step ST36 that the priority station number has already been set (= 2), and determines in step ST38 that the station number ( = 4) is updated by +1 (= 5).
【0045】続いて監視装置11はステップST41に
おいて優先局番(=2)を零でないと判定し、ステップ
ST42において優先割合カウンタを+1だけ更新(=
1)してステップST44においてステップST23に
戻る。Subsequently, the monitoring device 11 determines that the priority station number (= 2) is not zero in step ST41, and updates the priority ratio counter by +1 in step ST42 (=
1) Then, in step ST44, the process returns to step ST23.
【0046】以下、前述同様に、監視装置11は次のコ
ントローラEからデータを収集する。このように、監視
装置は優先割合カウンタに対するシステムの固有値を
“3”に設定したことにより、3回のデータ収集のう
ち、1回を優先局からの収集として順次データ収集処理
を実行する。Thereafter, as described above, the monitoring device 11 collects data from the next controller E. As described above, the monitoring apparatus sets the system unique value for the priority ratio counter to “3”, and thus sequentially executes the data collection process, with one of the three data collections as the collection from the priority station.
【0047】すなわち、このデータ収集処理は、図7に
示すように、A,B,C,D,B,E,F,B,A,
B,B,…,のように、優先局であるコントローラBの
データ収集を固有値に対応する優先割合で割込ませてい
る。That is, as shown in FIG. 7, this data collection processing is performed by A, B, C, D, B, E, F, B, A,
B, B, ..., The data collection of the controller B, which is the priority station, is interrupted at the priority rate corresponding to the eigenvalue.
【0048】また、コントローラBにおいてデータの急
変が解消した場合、監視装置11では、ステップST3
5においてデータ要求頻度変更フラグを“0”と判定
し、ステップST39において優先局番(=2)と収集
局番(=2)が一致するか否かを判定し、判定結果が一
致を示すので、ステップST40において優先局番及び
優先割合カウンタを零にリセットしてステップST38
に行く。Further, when the sudden change in the data is resolved in the controller B, the monitoring device 11 proceeds to step ST3.
In step 5, the data request frequency change flag is determined to be "0". In step ST39, it is determined whether the priority station number (= 2) and the collection station number (= 2) match. In ST40, the priority station number and the priority ratio counter are reset to zero and step ST38
go to.
【0049】以下、優先局番及び優先割合カウンタが零
にリセットされたため、優先処理が行われず、通常のコ
ントローラ番号順にデータ収集処理を実行する。さら
に、コントローラBにおいてデータの急変が解消しない
状態で他のコントローラにおいてデータが急変した場
合、監視装置はステップST35においてデータ要求頻
度フラグを“1”と判定し、ステップST36において
優先局番が“0”であるか否かを判定する。After that, since the priority station number and the priority ratio counter are reset to zero, the priority processing is not performed and the data collection processing is executed in the order of the normal controller numbers. Further, when the data is suddenly changed in another controller while the sudden change in the data is not resolved in the controller B, the monitoring device determines that the data request frequency flag is "1" in step ST35, and the priority station number is "0" in step ST36. Or not.
【0050】ここで、コントローラBの優先局番(=
2)が既に設定されているため、監視装置11はステッ
プST38に行く。すなわち、監視装置11は優先局番
を1局のみ記憶し、現在優先中のコントローラBのデー
タ要求頻度変更フラグが“0”にリセットされるまで、
新たに優先局番を記憶しない。これにより、監視装置1
1は確実に優先局のデータ収集を実行する。Here, the priority station number of controller B (=
Since 2) has already been set, the monitoring apparatus 11 goes to step ST38. That is, the monitoring device 11 stores only one priority station number, and until the data request frequency change flag of the currently prioritized controller B is reset to "0",
Do not store a new priority station number. Thereby, the monitoring device 1
1 reliably executes data collection for priority stations.
【0051】上述したように本実施例によれば、収集デ
ータを返送する際に、各コントローラA〜Fが、前回の
収集データと今回の収集データとの変化率を求めると共
に、この変化率が所定の制限値を越えたとき、データ要
求頻度変更フラグを“1”にセットして応答データ送信
テキストを監視装置11に送信し、一方、この監視装置
11が、各コントローラA〜Fから送信された応答デー
タ送信テキスト内のデータ要求頻度変更フラグに基づい
て、変化率大を示すコントローラBに他のコントローラ
よりも優先した割合でデータ要求コマンドテキストを送
信するようにしたので、収集データの変化率の大きいコ
ントローラから優先した割合でデータを収集することに
より、データが急変した際にも迅速に対応することがで
きる。As described above, according to this embodiment, when returning the collected data, each of the controllers A to F obtains the change rate between the previous collected data and the current collected data, and When the predetermined limit value is exceeded, the data request frequency change flag is set to "1" and the response data transmission text is transmitted to the monitoring device 11, while the monitoring device 11 is transmitted from each of the controllers AF. Based on the data request frequency change flag in the response data transmission text, the data request command text is transmitted to the controller B indicating the large change rate at a priority over the other controllers. By collecting data from a controller having a large number at a priority rate, it is possible to quickly respond to a sudden change in data.
【0052】また、本実施例によれば、データの急変を
コントローラA〜Fから自発的に送信する技術である状
態変化通知を使うことなく、監視装置11からのデータ
収集頻度を変更してデータが急変したコントローラBか
らのデータ収集を優先することができる。Further, according to the present embodiment, the data collection frequency from the monitoring device 11 is changed without using the state change notification, which is a technique of spontaneously transmitting a sudden change in data from the controllers A to F. It is possible to give priority to the data collection from the controller B in which the sudden change has occurred.
【0053】また、前述したように状態変化通知を用い
ないようにしたので、状態変化通知に伴う、プロトコル
が複雑で手間がかかる問題や各コントローラから同時に
状態変化通知が発生した場合の各コントローラの制御の
困難性などの問題を回避することができる。その他、本
発明はその要旨を逸脱しない範囲で種々変形して実施で
きる。Further, since the state change notification is not used as described above, there is a problem that the protocol is complicated and time-consuming due to the state change notification, and when the state change notifications are simultaneously issued from the respective controllers, Problems such as control difficulty can be avoided. In addition, the present invention can be modified in various ways without departing from the scope of the invention.
【0054】[0054]
【発明の効果】以上説明したように本発明によれば、コ
ントローラが収集データを返送する際に、コントローラ
が、前回の収集データと今回の収集データとの変化率を
求めると共に、この変化率が所定の制限値を越えたと
き、他のコントローラよりも優先してデータ収集を実行
させるためのデータ要求頻度変更フラグをセットしてこ
のデータ要求頻度変更フラグ及び今回の収集データを含
む応答データ送信テキストを監視装置に送信し、この監
視装置が、コントローラから送信された応答データ送信
テキスト内のデータ要求頻度変更フラグに基づいて、変
化率の大小を判定すると共に、この判定結果が変化率大
を示すとき、当該コントローラに他のコントローラより
も優先した割合でポーリング信号を送信するようにした
ので、収集データの変化率の大きいコントローラから優
先した割合でデータを収集することにより、データが急
変した際にも迅速に対応できるデータ収集方式を提供で
きる。As described above, according to the present invention, when the controller returns the collected data, the controller obtains the change rate between the previous collected data and the current collected data, and this change rate is When the specified limit value is exceeded, the data request frequency change flag for setting the data request frequency change flag to set the data collection priority over other controllers is set, and the response data transmission text including this data request frequency change flag and the collected data this time. To the monitoring device, and the monitoring device determines whether the change rate is large or small based on the data request frequency change flag in the response data transmission text sent from the controller, and the determination result indicates the large change rate. At this time, the polling signal is sent to the controller at a priority over other controllers. By collecting data at a rate that is preferentially from a large controller rate, it can provide a data collection method that can respond quickly even when data is suddenly changed.
【図1】本発明の一実施例に係るデータ収集方式に適用
される監視システムの構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of a monitoring system applied to a data collection method according to an embodiment of the present invention.
【図2】同実施例における応答データ送信テキストを示
す図。FIG. 2 is a diagram showing a response data transmission text in the same embodiment.
【図3】同実施例における前回値エリアを示す図。FIG. 3 is a diagram showing a previous value area in the embodiment.
【図4】同実施例における監視装置の動作を説明するた
めのフローチャート。FIG. 4 is a flow chart for explaining the operation of the monitoring device in the embodiment.
【図5】同実施例におけるコントローラ動作を説明する
ためのフローチャート。FIG. 5 is a flowchart for explaining a controller operation in the embodiment.
【図6】同実施例における監視装置の動作を説明するた
めのフローチャート。FIG. 6 is a flowchart for explaining the operation of the monitoring device in the embodiment.
【図7】同実施例におけるデータ収集の割込動作を説明
するための図。FIG. 7 is a diagram for explaining an interrupt operation of data collection in the embodiment.
【図8】従来のデータ収集方式による伝送手順を示す概
略図FIG. 8 is a schematic diagram showing a transmission procedure by a conventional data collection method.
【図9】従来の監視装置の動作を説明するためのフロー
チャート。FIG. 9 is a flowchart for explaining the operation of the conventional monitoring device.
【図10】従来のコントローラの動作を説明するための
フローチャート。FIG. 10 is a flowchart for explaining the operation of a conventional controller.
【図11】従来の監視装置の動作を説明するためのフロ
ーチャート。FIG. 11 is a flowchart for explaining the operation of the conventional monitoring device.
【図12】従来のデータ要求コマンドテキストの構成を
示す図。FIG. 12 is a diagram showing the structure of a conventional data request command text.
【図13】従来の応答データ送信テキストの構成を示す
図。FIG. 13 is a diagram showing a structure of a conventional response data transmission text.
11…監視装置、12…LAN、A〜F…コントロー
ラ、a〜f…前回値エリア。11 ... Monitoring device, 12 ... LAN, AF ... Controller, af ... Previous value area.
Claims (1)
れ、前記監視装置から順次個別に送信されるポーリング
信号を前記各コントローラが受けると、対応するコント
ローラが収集データを前記監視装置に返送するデータ収
集方式において、 前記コントローラが収集データを返送する際に、 前記コントローラが、前回の収集データと今回の収集デ
ータとの変化率を求めると共に、この変化率が所定の制
限値を越えたとき、他のコントローラよりも優先してデ
ータ収集を実行させるためのデータ要求頻度変更フラグ
をセットしてこのデータ要求頻度変更フラグ及び前記今
回の収集データを含む応答データ送信テキストを前記監
視装置に送信し、 この監視装置が、前記コントローラから送信された応答
データ送信テキスト内のデータ要求頻度変更フラグに基
づいて、前記変化率の大小を判定すると共に、この判定
結果が変化率大を示すとき、当該コントローラに他のコ
ントローラよりも優先した割合で前記ポーリング信号を
送信することを特徴とするデータ収集方式。1. A data collection system in which a plurality of controllers are connected to a monitoring device, and when each controller receives a polling signal that is sequentially and individually transmitted from the monitoring device, the corresponding controller returns collected data to the monitoring device. In the method, when the controller returns the collected data, the controller obtains the rate of change between the previously collected data and the currently collected data, and when the rate of change exceeds a predetermined limit value, another A data request frequency change flag for setting data collection priority over the controller is set, and a response data transmission text including the data request frequency change flag and the collected data of this time is transmitted to the monitoring device. The device changes the data request frequency in the response data transmission text sent from the controller. Based on a flag, the size of the rate of change is determined, and when the result of this determination indicates a high rate of change, the polling signal is transmitted to the controller at a priority over other controllers. Collection method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5244424A JPH07104842A (en) | 1993-09-30 | 1993-09-30 | Data collecting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5244424A JPH07104842A (en) | 1993-09-30 | 1993-09-30 | Data collecting system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH07104842A true JPH07104842A (en) | 1995-04-21 |
Family
ID=17118455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5244424A Pending JPH07104842A (en) | 1993-09-30 | 1993-09-30 | Data collecting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07104842A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008305412A (en) * | 2002-04-15 | 2008-12-18 | Fisher Rosemount Syst Inc | Web service based communication for use with process control system |
WO2010106614A1 (en) * | 2009-03-16 | 2010-09-23 | 三菱電機株式会社 | Data gathering device |
-
1993
- 1993-09-30 JP JP5244424A patent/JPH07104842A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008305412A (en) * | 2002-04-15 | 2008-12-18 | Fisher Rosemount Syst Inc | Web service based communication for use with process control system |
WO2010106614A1 (en) * | 2009-03-16 | 2010-09-23 | 三菱電機株式会社 | Data gathering device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2582982B2 (en) | Method of detecting message identifier in data transmission network of elevator system | |
US5542076A (en) | Method and apparatus for adaptive interrupt servicing in data processing system | |
US4692761A (en) | Adaptive communication network and method | |
JPH07282090A (en) | Data collecting system | |
JPH0653994A (en) | Data transmission system and communication controller | |
JPH07104842A (en) | Data collecting system | |
JP2693940B2 (en) | Radio selective call receiver | |
EP0601853A2 (en) | Line accommodation circuit | |
JPH10111809A (en) | Interruption controller | |
JP3016975B2 (en) | Process monitoring control system | |
CN119232552B (en) | Monitoring method and system for intelligent security remote monitoring equipment | |
JP3355053B2 (en) | Cyclic data transmission method for distributed processing system | |
JPH0749822A (en) | Data processing system load balancing method | |
KR100230240B1 (en) | Complex wireless paging device and radio calling signal processing method thereof | |
JP3108478B2 (en) | Interrupt processing method for multiplex transmission system | |
JPH0730502A (en) | Supervisory equipment | |
US5369743A (en) | Picture displaying method for switching among picture display tasks | |
JP2501977B2 (en) | Communication control device | |
JPH0964935A (en) | Communication control method | |
JPH07272177A (en) | Fire signal receiver | |
JPS63148800A (en) | Data transmission method | |
JPH08190486A (en) | Signal change detection processor | |
CN118626279A (en) | Path decision method for urban rail transit communication front-end | |
JPH06105376A (en) | Remote measurement equipment | |
JP2000333270A (en) | Monitoring and control system server |