JPH1188384A - Data collection method - Google Patents
Data collection methodInfo
- Publication number
- JPH1188384A JPH1188384A JP9245636A JP24563697A JPH1188384A JP H1188384 A JPH1188384 A JP H1188384A JP 9245636 A JP9245636 A JP 9245636A JP 24563697 A JP24563697 A JP 24563697A JP H1188384 A JPH1188384 A JP H1188384A
- Authority
- JP
- Japan
- Prior art keywords
- response text
- text
- memory
- response
- area
- 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
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、例えばデータ表示
装置やデータ伝送装置などの上位機器と例えばコントロ
ーラやシーケンサなどの下位機器との間で通信回線を介
して通信を行い、下位機器からのデータを上位機器に収
集するデータ収集方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to communication between a higher-level device such as a data display device and a data transmission device and a lower-level device such as a controller or a sequencer via a communication line, and data from the lower-level device. A data collection method for collecting data in a host device.
【0002】[0002]
【従来の技術】この種のデータ収集方式における上位機
器によるデータ収集動作では、上位機器が下位機器にデ
ータ収集要求テキストを送信すると、該要求テキストを
受信した下位機器がその内容を解釈して、必要なデータ
を下位機器に接続されているセンサやメモリなどから集
め、送信バッファを利用して応答テキストを組み立て、
この組み立てた応答テキストを要求元の上位機器に返送
している。また、送信テキストを組み立てるメモリエリ
アと送信バッファが異なる別のシステムもあり、このよ
うなシステムでは応答テキストをメモリ内で組み上げた
後、送信バッファに転送して送信している。2. Description of the Related Art In a data collection operation by a higher-level device in this type of data collection method, when a higher-level device transmits a data collection request text to a lower-level device, the lower-level device that has received the request text interprets the content, and Necessary data is collected from sensors and memories connected to the lower device, and a response text is assembled using the transmission buffer.
The assembled response text is sent back to the requesting host device. Further, there is another system in which a memory area for assembling a transmission text and a transmission buffer are different. In such a system, a response text is assembled in a memory and then transferred to a transmission buffer for transmission.
【0003】[0003]
【発明が解決しようとする課題】上述した従来のデータ
収集方式において、下位機器では要求テキストを受信
し、その内容を解釈してから、場合によってはセンサな
どから収集することにより必要なデータを揃え、それか
ら応答テキストを組み立て、要求元の上位機器に返送す
るものであるため、応答テキストを返送するまでに時間
がかかるという問題がある。In the above-described conventional data collection method, the lower-level device receives a request text, interprets the content, and in some cases collects necessary data from a sensor or the like to arrange necessary data. Since the response text is assembled from the response text and sent back to the upper device of the request source, there is a problem that it takes time to return the response text.
【0004】また、要求テキストの種類により応答テキ
ストの長さが異なるため、送信バッファのサイズの管理
を間違えることもあり、応答テキストが無効になってし
まうこともある。[0004] Further, since the length of the response text varies depending on the type of the request text, the size of the transmission buffer may be erroneously managed, and the response text may become invalid.
【0005】更に、上述したように応答テキストが無効
になってしまった場合に、該応答テキストが無効である
ことを検出したデータ要求元の上位機器は再度要求テキ
ストを作成して再送要求を行うため、必要なデータが収
集されるまでに更に多大な時間を要するという問題があ
る。[0005] Further, when the response text becomes invalid as described above, the data requesting upper device detecting that the response text is invalid re-creates the request text and makes a retransmission request. Therefore, there is a problem that much more time is required until necessary data is collected.
【0006】また更に、上述したように応答テキストが
無効になったり、再送要求を行っている間に、例えばプ
ラント等に異常事態が発生しても、それを上位機器で表
示することができず、プラントが危険な状態に陥ること
があるという問題もある。Further, as described above, even if the response text becomes invalid or an abnormal situation occurs in a plant or the like while a retransmission request is made, it cannot be displayed on a higher-level device. However, there is also a problem that the plant may fall into a dangerous state.
【0007】本発明は、上記に鑑みてなされたもので、
その目的とするところは、上位機器からの要求テキスト
に対する応答テキストを迅速かつ適確に返送し得るデー
タ収集方式を提供することにある。[0007] The present invention has been made in view of the above,
An object of the present invention is to provide a data collection method capable of quickly and accurately returning a response text to a request text from a higher-level device.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の本発明は、通信回線を介して互いに
接続された上位機器と下位機器において下位機器からの
データを上位機器で収集するデータ収集方式であって、
下位機器において上位機器から送信される要求テキスト
に応じた応答テキストを常時最新データを使用して予め
作成し、メモリに蓄積しておき、上位機器から要求テキ
ストを受信した時、該要求テキストに合った応答テキス
トをメモリから読み出し、該応答テキストを即時に上位
機器に返送することを要旨とする。In order to achieve the above object, according to the present invention, in a high-order device and a low-order device connected to each other via a communication line, data from the low-order device is collected by the high-order device. Data collection method,
A response text corresponding to the request text transmitted from the higher-level device is always created in advance by using the latest data in the lower-level device and stored in the memory, and when the request text is received from the higher-level device, the response text matches the request text. The gist is to read the response text from the memory and immediately return the response text to the host device.
【0009】請求項1記載の本発明にあっては、下位機
器において常時最新データを使用して応答テキストを予
め作成してメモリに蓄積しておき、上位機器から要求テ
キストを受信した時、該要求テキストに合った応答テキ
ストをメモリから読み出して即時に上位機器に返送する
ため、応答テキストを迅速かつ適確に上位機器に返送す
ることができる。According to the first aspect of the present invention, a response text is always prepared in advance in the lower device using the latest data and stored in the memory, and when the request text is received from the upper device, the response text is received. Since the response text that matches the request text is read from the memory and immediately returned to the host device, the response text can be returned to the host device quickly and accurately.
【0010】また、請求項2記載の本発明は、請求項1
記載の発明において、前記応答テキストを予め作成して
メモリに蓄積しておくステップが、下位機器において1
つの要求テキストに対して2つの応答テキストを蓄積す
る第1および第2の2つのメモリエリアをそれぞれ有す
る複数の応答テキスト蓄積領域を設けるとともに、最新
データを使用して予め完成した応答テキストを前記2つ
のメモリエリアのうちのいずれに蓄積しているかを示す
エリア管理情報を蓄積するエリア管理情報蓄積領域を各
応答テキスト蓄積領域に対応して設け、下位機器におい
て最新データを使用して予め作成した応答テキストを前
記応答テキスト蓄積領域の2つのうちの一方のメモリエ
リアに蓄積し、該一方のメモリエリアに応答テキストが
完成していることを示すエリア管理情報を前記エリア管
理情報蓄積領域に蓄積するとともに、該蓄積後、最新デ
ータを使用して応答テキストを作成して他方のメモリエ
リアに蓄積するという処理を前記複数の応答テキスト蓄
積領域のそれぞれについて順次繰り返し行い、また前記
応答テキストをメモリから読み出し、該応答テキストを
即時に上位機器に返送するステップが、前記エリア管理
情報蓄積領域に蓄積されているエリア管理情報によって
示されるメモリエリアに蓄積されている応答テキストを
読み出し、該応答テキストを上位機器に返送することを
要旨とする。The present invention described in claim 2 is the same as the claim 1.
In the invention described in the claims, the step of preparing the response text in advance and storing the response text in a memory includes the following steps:
A plurality of response text storage areas each having first and second two memory areas for storing two response texts for one request text are provided, and the previously completed response text is stored using the latest data. An area management information storage area for storing area management information indicating which of the two memory areas is stored is provided corresponding to each response text storage area, and a response created in advance using the latest data in a lower device. A text is stored in one of the two memory areas of the response text storage area, and area management information indicating that the response text is completed in the one memory area is stored in the area management information storage area. After the storage, when a response text is created using the latest data and stored in the other memory area, And repeating the same process sequentially for each of the plurality of response text storage areas, reading the response text from the memory, and immediately returning the response text to the host device. The point is that the response text stored in the memory area indicated by the area management information is read out and the response text is returned to the host device.
【0011】請求項2記載の本発明にあっては、下位機
器において最新データを使用して予め作成した応答テキ
ストを応答テキスト蓄積領域の一方のメモリエリアに蓄
積し、応答テキストが完成していることを示すエリア管
理情報をエリア管理情報蓄積領域に蓄積するとともに、
該蓄積後、最新データを使用して応答テキストを作成し
て他方のメモリエリアに蓄積するという処理を複数の応
答テキスト蓄積領域のそれぞれについて順次繰り返し行
い、下位機器は要求テキストを受信すると、エリア管理
情報で示されるメモリエリアに蓄積されている応答テキ
ストを読み出して上位機器に返送するため、下位機器は
要求テキストを受信してから応答テキストを作成するこ
となく、応答テキストを迅速かつ適確に上位機器に返送
することができる。According to the second aspect of the present invention, the response text prepared in advance using the latest data in the lower device is stored in one memory area of the response text storage area, and the response text is completed. Is stored in the area management information storage area,
After the storage, a process of creating a response text using the latest data and storing the response text in the other memory area is sequentially repeated for each of the plurality of response text storage areas. The response text stored in the memory area indicated by the information is read out and sent back to the higher-level device, so that the lower-level device receives the request text and then creates the response text quickly and accurately without having to create the response text. Can be returned to equipment.
【0012】更に、請求項3記載の本発明は、請求項2
記載の発明において、前記メモリエリアに蓄積される応
答テキストがフォーマット化されて蓄積されることを要
旨とする。Further, the present invention according to claim 3 provides the invention according to claim 2.
In the invention described above, the gist is that the response text stored in the memory area is formatted and stored.
【0013】請求項3記載の本発明にあっては、メモリ
エリアに蓄積される応答テキストはフォーマット化され
て蓄積されるため、上位機器からの要求テキストに対す
る応答テキストをメモリエリアから読み出すだけで、フ
ォーマット化の処理を必要とすることなく、この読み出
した応答テキストを迅速に上位機器に返送することがで
きる。According to the third aspect of the present invention, the response text stored in the memory area is formatted and stored, so that the response text corresponding to the request text from the higher-level device is simply read from the memory area. The read response text can be quickly returned to the host device without the need for a formatting process.
【0014】[0014]
【発明の実施の形態】以下、図面を用いて本発明の実施
の形態について説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0015】図1は、本発明の一実施形態に係わるデー
タ収集方式を実施するシステム構成図である。同図にお
いて、例えばデータ表示装置などの上位機器1がLAN
(ローカルエリアネットワーク)等の通信回線2に接続
されるとともに、また該通信回線2にはコントローラや
シーケンサ等の複数の下位機器3が接続され、これによ
り上位機器1と下位機器3は通信回線2を介して互いに
通信し、下位機器3からのデータを上位機器1に収集し
得るようになっている。本実施形態のデータ収集方式
は、特に上位機器からのポーリング動作で下位機器を所
定周期で呼び出してデータを収集するのに有用である。
また、下位機器3であるコントローラやシーケンサ等は
内部に多種多様な生データ、例えばプラント等から読み
出したデータ等や、該データに付随するパラメータ、例
えば計器レンジデータや各警報制限値等を有しているも
のである。FIG. 1 is a system configuration diagram for implementing a data collection method according to an embodiment of the present invention. In FIG. 1, a host device 1 such as a data display device is connected to a LAN.
(Local area network) or the like, and a plurality of lower devices 3 such as a controller and a sequencer are connected to the communication line 2 so that the upper device 1 and the lower device 3 are connected to the communication line 2. , And can collect data from the lower-level device 3 in the higher-level device 1. The data collection method of this embodiment is particularly useful for collecting data by calling a lower device at a predetermined cycle by a polling operation from a higher device.
The lower-level device 3, such as a controller or a sequencer, has a variety of raw data therein, such as data read from a plant or the like, and parameters associated with the data, such as instrument range data and alarm limit values. Is what it is.
【0016】上記下位機器3では、上位機器1からの要
求テキストに対して応答テキストを迅速に返送し得るよ
うに常時最新データを使用して応答テキストを作成して
メモリに蓄積しているとともに、上位機器1から複数の
要求テキストが連続して送信されてきた場合に備えて、
複数の応答テキストをそれぞれ蓄積し得る複数の応答テ
キスト蓄積領域をメモリに設けるとともに、また最新デ
ータを使用して応答テキストを作成している間に要求テ
キストが送信されてきても応答テキストを迅速に返送し
得るように各応答テキスト蓄積領域には2つのメモリエ
リアを設け、一方のメモリエリアに対する応答テキスト
を最新データにより作成している最中には既に他方のメ
モリエリアに先に作成して蓄積した応答テキストを上位
機器1に返送するように構成している。In the lower device 3, a response text is always created using the latest data and stored in a memory so that the response text can be promptly returned to the request text from the higher device 1. In case a plurality of request texts are continuously transmitted from the host device 1,
A plurality of response text storage areas, each of which can store a plurality of response texts, are provided in a memory, and the response texts are quickly transmitted even if the request text is transmitted while the response texts are being created using the latest data. Each response text storage area is provided with two memory areas so that it can be returned, and while the response text for one memory area is being created with the latest data, it is already created and stored in the other memory area first. The response text is returned to the host device 1.
【0017】図2(a)は、このような処理を行うため
のメモリ構成を示しているものであり、下位機器3のメ
モリ11には複数の応答テキスト蓄積領域13a,13
b〜13nが設けられ、この応答テキスト蓄積領域の各
々には2つの応答テキストを蓄積し得る第1および第2
の2つのメモリエリアが設けられ、この2つのメモリエ
リアの一方に完成済テキスト、すなわち最新データを使
用して作成された応答テキストが蓄積され、他方のメモ
リエリアは最新データを使用して作成されつつある応答
テキストを蓄積するためのものであり、図2では「テキ
スト作成中」と表示されている。FIG. 2A shows a memory configuration for performing such processing. The memory 11 of the lower device 3 has a plurality of response text storage areas 13a and 13a.
b to 13n are provided, and each of the response text storage areas is capable of storing two response texts.
Are provided. One of the two memory areas stores a completed text, that is, a response text created using the latest data, and the other memory area is created using the latest data. This is for accumulating the response text that is about to be started, and is displayed in FIG.
【0018】また、複数の応答テキスト蓄積領域13
a,13b〜13nにはそれぞれ対応してエリア管理情
報蓄積領域15a,15b〜15nが設けられ、該エリ
ア管理情報蓄積領域15a,15b〜15nには応答テ
キスト蓄積領域13a,13b〜13nを構成している
2つのメモリエリアのうちいずれに完成済テキストが蓄
積されているかを示す応答テキスト用エリア管理情報が
蓄積されるようになっている。例えば、第1の応答テキ
スト蓄積領域13aのように第1のメモリエリアに応答
テキストの完成済テキストが蓄積され、第2のメモリエ
リアがテキスト作成中に対するものである場合、対応す
る第1のエリア管理情報蓄積領域15aには完成済テキ
ストが蓄積されている第1のメモリエリアを示す応答テ
キスト用エリア管理情報が蓄積される。A plurality of response text storage areas 13
Area management information storage areas 15a, 15b to 15n are provided corresponding to a, 13b to 13n, respectively, and these area management information storage areas 15a, 15b to 15n constitute response text storage areas 13a, 13b to 13n. Response text area management information indicating in which of the two memory areas the completed text is stored is stored. For example, when the completed text of the response text is stored in the first memory area as in the first response text storage area 13a and the second memory area is for the text being created, the corresponding first area is used. The response information area management information indicating the first memory area in which the completed text is stored is stored in the management information storage area 15a.
【0019】図2(b)は、応答テキスト蓄積領域13
a,13b〜13nの第1、第2のメモリエリアに蓄積
される完成済みの応答テキストのフォーマットを示して
おり、この応答テキストフォーマットはヘッダ情報、P
V(データ)、SV(データ)、エラーチェックシーケ
ンス等から構成されている。すなわち、応答テキスト蓄
積領域13a,13b〜13nの第1、第2のメモリエ
リアには図2(b)に示すようにそのままの形で上位機
器に送信することができるフォーマット化された応答テ
キストが蓄積されている。従って、上位機器から要求テ
キストが下位機器に送信されてきた場合には、下位機器
はメモリ11の応答テキスト蓄積領域13a,13b〜
13nから完成済みの応答テキストを読み出すことによ
り、フォーマット化する必要もなく、読み出したそのま
まの形で応答テキストを上位機器に送信することがで
き、迅速化を更に向上させることができる。FIG. 2B shows the response text storage area 13.
a, and 13b to 13n, the format of completed response texts stored in the first and second memory areas is shown.
V (data), SV (data), an error check sequence, and the like. That is, in the first and second memory areas of the response text storage areas 13a, 13b to 13n, as shown in FIG. 2B, formatted response texts which can be transmitted as they are to the higher-level device are stored. Has been accumulated. Accordingly, when the request text is transmitted from the higher-level device to the lower-level device, the lower-level device transmits the response text storage areas 13a and 13b to
By reading out the completed response text from 13n, the response text can be transmitted to the host device as it is without any need for formatting, and the speed can be further improved.
【0020】次に、図3〜図5に示すフローチャートを
参照して、上記実施形態の作用について説明する。図3
は上位機器1における要求テキストの作成および送信と
下位機器3からの応答テキストの受信を示すフローチャ
ートであり、図4は下位機器3における要求テキストの
受信、応答テキストの読み出しおよび送信を示すフロー
チャートであり、図5は応答テキストの作成および更新
を示すフローチャートである。Next, the operation of the above embodiment will be described with reference to the flowcharts shown in FIGS. FIG.
4 is a flowchart showing creation and transmission of a request text in the upper device 1 and reception of a response text from the lower device 3, and FIG. 4 is a flowchart showing reception of the request text, reading and transmission of the response text in the lower device 3. FIG. 5 is a flowchart showing the creation and update of the response text.
【0021】まず、上位機器1は収集すべきデータ種別
に応じた要求テキストを作成し(図3のステップ11
0)、この作成した要求テキストを通信回線2を介して
下位機器3に送信する(ステップ120)。First, the host device 1 creates a request text corresponding to the type of data to be collected (step 11 in FIG. 3).
0), and transmits the created request text to the lower-level device 3 via the communication line 2 (step 120).
【0022】下位機器3では、上位機器1から要求テキ
ストを受信すると(図4のステップ210)、この受信
した要求テキストの種別を判断する(ステップ22
0)。そして、この要求テキストの種別に応じたメモリ
11の応答テキスト蓄積領域13a,13b〜13nの
エリア管理情報蓄積領域15a,15b〜15nに蓄積
されているエリア管理情報で示される第1または第2の
メモリエリアの応答テキストを迅速に読み出し(ステッ
プ230)、この読み出した応答テキストを上位機器1
に返送する(ステップ240)。When the lower device 3 receives the request text from the upper device 1 (step 210 in FIG. 4), it determines the type of the received request text (step 22).
0). Then, the first or second area management information indicated by the area management information stored in the area management information storage areas 15a, 15b to 15n of the response text storage areas 13a, 13b to 13n of the memory 11 corresponding to the type of the request text. The response text in the memory area is quickly read (step 230), and the read response text is read by the host device 1.
(Step 240).
【0023】上位機器1では、下位機器3から応答テキ
ストを受信すると、該応答テキストに対してデータ処理
を行い(図3のステップ130)、該応答テキストを返
送してきた下位機器3に対応する記憶領域に処理済みデ
ータとして保存する(ステップ140)。以上の処理を
すべての下位機器3について行い、すべての下位機器3
からデータを収集する。When the response text is received from the lower device 3, the upper device 1 performs data processing on the response text (step 130 in FIG. 3), and stores the response text corresponding to the lower device 3 that has returned the response text. It is stored as processed data in the area (step 140). The above processing is performed for all the lower devices 3, and all the lower devices 3
Collect data from
【0024】一方、下位機器3においては、常時最新デ
ータを使用して要求テキストに対する応答テキストを予
め作成してメモリ11に蓄積し、これにより図4のステ
ップ230における処理に対処しているが、この処理に
ついて図5に示すフローチャートを参照して説明する。On the other hand, in the lower-level device 3, a response text for the request text is always prepared in advance using the latest data and stored in the memory 11, thereby coping with the processing in step 230 in FIG. This processing will be described with reference to the flowchart shown in FIG.
【0025】下位機器3は、図2(a)に示すように、
応答テキスト数分または要求テキスト数分の複数の応答
テキスト蓄積領域13a,13b〜13nおよび対応す
るエリア管理情報蓄積領域15a,15b〜15nをメ
モリ11に確保し、各応答テキスト蓄積領域13a,1
3b〜13nを第1および第2のメモリエリアに分ける
(図5のステップ310)。それから、最新データを使
用して作成した応答テキストを蓄積した応答テキスト蓄
積領域13iの第1および第2の一方のメモリエリアを
示すエリア管理情報をエリア管理情報蓄積領域15iに
記憶する(ステップ320)。例えば、図2(a)に示
すように応答テキストの完成済テキストを応答テキスト
蓄積領域13aの第1のメモリエリアに蓄積した場合に
は、その対応するエリア管理情報蓄積領域15aに該第
1のメモリエリアを示すエリア管理情報を蓄積する。As shown in FIG. 2A, the lower device 3
A plurality of response text storage areas 13a, 13b to 13n corresponding to the number of response texts or request texts and corresponding area management information storage areas 15a, 15b to 15n are secured in the memory 11, and each response text storage area 13a, 1
3b to 13n are divided into first and second memory areas (step 310 in FIG. 5). Then, the area management information indicating the first and second memory areas of the response text storage area 13i storing the response text created using the latest data is stored in the area management information storage area 15i (step 320). . For example, when the completed text of the response text is stored in the first memory area of the response text storage area 13a as shown in FIG. 2A, the first text is stored in the corresponding area management information storage area 15a. Area management information indicating a memory area is stored.
【0026】次に、前記エリア管理情報に指定されてい
ない他方のメモリエリアに対して、上記例では、応答テ
キスト蓄積領域13aの第2のメモリエリアに対して最
新のデータを使用して図2(b)に示すようなフォーマ
ットの応答テキストを作成し(ステップ330)、この
作成した応答テキストを応答テキスト蓄積領域13iの
他方のメモリエリア、上記例では第2のメモリエリアに
蓄積するとともに、該メモリエリアに対応するエリア管
理情報を対応するエリア管理情報蓄積領域15iに蓄積
してエリア管理情報蓄積領域15iを更新する(ステッ
プ340)。Next, for the other memory area not specified in the area management information, in the above example, the latest data is used for the second memory area of the response text storage area 13a in FIG. A response text in a format as shown in FIG. 3B is created (step 330), and the created response text is stored in the other memory area of the response text storage area 13i, in the above example, in the second memory area. The area management information corresponding to the memory area is stored in the corresponding area management information storage area 15i to update the area management information storage area 15i (step 340).
【0027】以上の処理はメモリ11の各応答テキスト
蓄積領域13a,13b〜13nに対して連続的に順次
行うことにより上位機器1からの要求テキストに対応す
る応答テキストを最新データを使用して予め常時作成し
てメモリ11に蓄積しておく。この結果、上位機器1か
ら要求テキストが送信されてきた場合に、該要求テキス
トに対応する応答テキストを前記メモリ11から読み出
し、この読み出した応答テキストを上位機器1に返送す
ることにより、従来のように要求テキストを受信してか
ら応答テキストを作成するという多くの時間を必要とす
ることなく、迅速に上位機器1に返送することができ
る。また、予め作成される応答テキストは図2(b)に
示すようにフォーマット化されてメモリ11に蓄積され
るものであるため、メモリ11から読み出した後にフォ
ーマット化の処理も不要となり、更に迅速化を図ること
ができる。The above processing is performed successively and sequentially on each of the response text storage areas 13a, 13b to 13n of the memory 11 so that the response text corresponding to the request text from the higher-level device 1 is prepared in advance using the latest data. It is always created and stored in the memory 11. As a result, when the request text is transmitted from the host device 1, the response text corresponding to the request text is read from the memory 11, and the read response text is returned to the host device 1 as in the related art. The response text can be quickly returned to the host device 1 without requiring much time for receiving the request text and then preparing the response text. In addition, since the response text created in advance is formatted as shown in FIG. 2B and stored in the memory 11, no formatting process is required after the response text is read from the memory 11, thereby further speeding up. Can be achieved.
【0028】すなわち、下位機器3においては、メモリ
11の応答テキスト蓄積領域13iの一方のメモリエリ
アに応答テキストが完成していれば、上位機器1から応
答テキストが送信されてきた時に、該一方のメモリエリ
アの応答テキストを返送する。このような処理の間にも
他方のメモリエリアには最新のデータを使用して最新の
応答テキストを作成していく。そして、該他方のメモリ
エリア内の応答テキストが完成して蓄積された時には、
エリア管理情報蓄積領域15iを一方のメモリエリアか
ら他方のメモリエリアに更新する。それから、上位機器
から要求テキストを受信した場合には、該エリア管理情
報蓄積領域15iで指定される他方のメモリエリアの応
答テキストを上位機器に返送するという動作を常時繰り
返し行うことにより、メモリエリアのいずれかには常に
最新データによる応答テキストが完成しており、他方の
メモリエリアには更なる最新データを使用して応答テキ
ストを作成していくことができるものである。That is, in the lower device 3, if the response text is completed in one memory area of the response text storage area 13i of the memory 11, when the response text is transmitted from the higher device 1, the response text is transmitted. Returns the response text of the memory area. Even during such processing, the latest response text is created in the other memory area using the latest data. And when the response text in the other memory area is completed and stored,
The area management information storage area 15i is updated from one memory area to the other memory area. Then, when the request text is received from the higher-level device, the operation of returning the response text of the other memory area designated by the area management information storage area 15i to the higher-level device is always repeated, so that the memory area can be rewritten. In either case, the response text with the latest data is always completed, and in the other memory area, the response text can be created using the further latest data.
【0029】[0029]
【発明の効果】以上説明したように、請求項1記載の本
発明によれば、下位機器において常時最新データを使用
して応答テキストを予め作成してメモリに蓄積してお
き、上位機器から要求テキストを受信した時、該要求テ
キストに合った応答テキストをメモリから読み出して即
時に上位機器に返送するので、従来のように要求テキス
トの受信の都度いちいち応答テキストを作成する必要が
なく、常に応答テキストを迅速かつ適確に上位機器に返
送することができる。As described above, according to the first aspect of the present invention, a response text is created in advance in a lower-level device by using the latest data at all times and stored in a memory. When a text is received, a response text that matches the request text is read from the memory and immediately sent back to the host device. Therefore, it is not necessary to create a response text each time the request text is received as in the related art. Texts can be returned to the host device quickly and accurately.
【0030】また、請求項2記載の本発明によれば、下
位機器において最新データを使用して予め作成した応答
テキストを応答テキスト蓄積領域の一方のメモリエリア
に蓄積し、応答テキストが完成していることを示すエリ
ア管理情報をエリア管理情報蓄積領域に蓄積するととも
に、該蓄積後、最新データを使用して応答テキストを作
成して他方のメモリエリアに蓄積するという処理を複数
の応答テキスト蓄積領域のそれぞれについて順次繰り返
し行い、下位機器は要求テキストを受信すると、エリア
管理情報で示されるメモリエリアに蓄積されている応答
テキストを読み出して上位機器に返送するので、下位機
器は要求テキストを受信してから応答テキストを作成す
ることなく、該当する応答テキストをメモリから読み出
すだけで迅速かつ適確に上位機器に返送することができ
る。According to the second aspect of the present invention, the response text prepared in advance using the latest data in the lower device is stored in one memory area of the response text storage area, and the response text is completed. Is stored in the area management information storage area, and after storing the area management information, a response text is created using the latest data and stored in the other memory area. When the lower device receives the request text, the lower device reads the response text stored in the memory area indicated by the area management information and returns it to the upper device. Quickly and simply read the response text from memory without creating the response text from You can be sure to return to the host device.
【0031】更に、請求項3記載の本発明によれば、メ
モリエリアに蓄積される応答テキストはフォーマット化
されて蓄積されるので、上位機器からの要求テキストに
対してメモリエリアから読み出すだけで、フォーマット
化の処理を必要とすることなく、この読み出した応答テ
キストを迅速に上位機器に返送することができるととも
に、フォーマットの間違い等による応答テキストの無効
や応答テキストの再送処理を低減することができ、効率
化を図ることができる。Further, according to the third aspect of the present invention, the response text stored in the memory area is formatted and stored, so that only the request text from the host device is read out from the memory area. The read response text can be promptly returned to the host device without the need for formatting, and the response text can be invalidated due to a format error or the like and the response text retransmission process can be reduced. Thus, efficiency can be improved.
【図1】本発明の一実施形態に係わるデータ収集方式を
実施するシステム構成図である。FIG. 1 is a system configuration diagram that implements a data collection method according to an embodiment of the present invention.
【図2】図1に示す実施形態に使用される応答テキスト
のメモリ構成およびデータフォーマットを示す図であ
る。FIG. 2 is a diagram showing a memory configuration and a data format of a response text used in the embodiment shown in FIG. 1;
【図3】図1に示す実施形態において上位機器における
要求テキストの作成および送信と下位機器からの応答テ
キストの受信を示すフローチャートである。FIG. 3 is a flowchart showing creation and transmission of a request text in a higher-level device and reception of a response text from a lower-level device in the embodiment shown in FIG. 1;
【図4】図1に示す実施形態において下位機器における
要求テキストの受信、応答テキストの読み出しおよび送
信を示すフローチャートである。FIG. 4 is a flowchart showing reception of a request text, reading and transmission of a response text in a lower device in the embodiment shown in FIG. 1;
【図5】図1に示す実施形態において応答テキストの作
成および更新を示すフローチャートである。FIG. 5 is a flowchart showing creation and update of a response text in the embodiment shown in FIG. 1;
1 上位機器 2 通信回線 3 下位機器 11 メモリ 13a,13b〜13n 応答テキスト蓄積領域 15a,15b〜15n エリア管理情報蓄積領域 Reference Signs List 1 upper device 2 communication line 3 lower device 11 memory 13a, 13b to 13n response text storage area 15a, 15b to 15n area management information storage area
Claims (3)
機器と下位機器において下位機器からのデータを上位機
器で収集するデータ収集方式であって、 下位機器において上位機器から送信される要求テキスト
に応じた応答テキストを常時最新データを使用して予め
作成し、メモリに蓄積しておき、 上位機器から要求テキストを受信した時、該要求テキス
トに合った応答テキストをメモリから読み出し、該応答
テキストを即時に上位機器に返送することを特徴とする
データ収集方式。1. A data collection method for collecting data from a lower-level device in a higher-level device and a lower-level device connected to each other via a communication line, wherein the lower-level device includes a request text transmitted from the higher-level device. A response text corresponding to the request text is always created in advance using the latest data and stored in a memory. When a request text is received from a host device, a response text corresponding to the request text is read from the memory, and the response text is read. A data collection method characterized by immediate return to the host device.
に蓄積しておくステップは、 下位機器において1つの要求テキストに対して2つの応
答テキストを蓄積する第1および第2の2つのメモリエ
リアをそれぞれ有する複数の応答テキスト蓄積領域を設
けるとともに、最新データを使用して予め完成した応答
テキストを前記2つのメモリエリアのうちのいずれに蓄
積しているかを示すエリア管理情報を蓄積するエリア管
理情報蓄積領域を各応答テキスト蓄積領域に対応して設
け、 下位機器において最新データを使用して予め作成した応
答テキストを前記応答テキスト蓄積領域の2つのうちの
一方のメモリエリアに蓄積し、該一方のメモリエリアに
応答テキストが完成していることを示すエリア管理情報
を前記エリア管理情報蓄積領域に蓄積するとともに、該
蓄積後、最新データを使用して応答テキストを作成して
他方のメモリエリアに蓄積するという処理を前記複数の
応答テキスト蓄積領域のそれぞれについて順次繰り返し
行い、 前記応答テキストをメモリから読み出し、該応答テキス
トを即時に上位機器に返送するステップは、 前記エリア管理情報蓄積領域に蓄積されているエリア管
理情報によって示されるメモリエリアに蓄積されている
応答テキストを読み出し、該応答テキストを上位機器に
返送することを特徴とする請求項1記載のデータ収集方
式。2. The method according to claim 1, wherein said response text is created in advance and stored in a memory. The first and second memory areas for storing two response texts for one request text in a lower-level device are provided. Area management information storage for providing a plurality of response text storage areas each having therein and storing area management information indicating in which of the two memory areas the response text completed in advance using the latest data is stored. An area is provided corresponding to each response text storage area, and the response text created in advance using the latest data in the lower device is stored in one of two memory areas of the response text storage area, and the one memory Area management information indicating that the response text is completed in the area is stored in the area management information storage area. Along with the accumulation, a process of creating a response text using the latest data and accumulating the response text in the other memory area is sequentially repeated for each of the plurality of response text accumulation regions, and the response text is read from the memory. The step of immediately returning the response text to the higher-level device includes reading the response text stored in the memory area indicated by the area management information stored in the area management information storage area, and transmitting the response text to the higher-level device. 2. The data collection method according to claim 1, wherein the data is returned.
ストはフォーマット化されて蓄積されることを特徴とす
る請求項2記載のデータ収集方式。3. The data collection method according to claim 2, wherein the response text stored in the memory area is formatted and stored.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9245636A JPH1188384A (en) | 1997-09-10 | 1997-09-10 | Data collection method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9245636A JPH1188384A (en) | 1997-09-10 | 1997-09-10 | Data collection method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1188384A true JPH1188384A (en) | 1999-03-30 |
Family
ID=17136614
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9245636A Pending JPH1188384A (en) | 1997-09-10 | 1997-09-10 | Data collection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1188384A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008053935A (en) * | 2006-08-23 | 2008-03-06 | Toshiba Corp | Data transmission device |
| JP2014131178A (en) * | 2012-12-28 | 2014-07-10 | Lapis Semiconductor Co Ltd | Data communication system, semiconductor device and data communication method |
-
1997
- 1997-09-10 JP JP9245636A patent/JPH1188384A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008053935A (en) * | 2006-08-23 | 2008-03-06 | Toshiba Corp | Data transmission device |
| JP2014131178A (en) * | 2012-12-28 | 2014-07-10 | Lapis Semiconductor Co Ltd | Data communication system, semiconductor device and data communication method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3028815B2 (en) | Transmission method of portable electronic device and portable electronic device | |
| CN107798016B (en) | Data transmission method and device for robot operating system | |
| JP4589749B2 (en) | Data collection system | |
| JPH1188384A (en) | Data collection method | |
| JP3335807B2 (en) | Process control monitoring system | |
| JPH11355867A (en) | Communication system and its transmitter | |
| JP3020402B2 (en) | Status information collection system and status management system | |
| JPH05211686A (en) | Gateway data collection method | |
| CN115022255B (en) | Data processing method and device, vehicle terminal and automatic driving system | |
| JP4902621B2 (en) | Log communication system | |
| JP2606585B2 (en) | Ring network system and node information collection method in ring network system | |
| JPH1115526A (en) | Time series data processing apparatus and method, and storage medium recording time series data processing program | |
| JP2002095068A (en) | Monitoring and control system | |
| JP2751290B2 (en) | Network monitoring method | |
| JP4999880B2 (en) | Controller and network system provided with the same | |
| JPH0681141B2 (en) | Gateway | |
| JP3222504B2 (en) | Service equipment | |
| JPH07129205A (en) | Communication method between programmable controller and monitor device | |
| JPH05314038A (en) | Gateway device | |
| JPS61117941A (en) | Plant process signal transmission method | |
| JP3483339B2 (en) | Set value information transmission device | |
| JPH0729051A (en) | Information collection system for vending machines | |
| JP2001251298A (en) | Gateway system | |
| JPH08191317A (en) | Data transmission method and data transmission device | |
| JPH10229590A (en) | Network communication method |