JPH04258050A - Data collection system - Google Patents

Data collection system

Info

Publication number
JPH04258050A
JPH04258050A JP1963291A JP1963291A JPH04258050A JP H04258050 A JPH04258050 A JP H04258050A JP 1963291 A JP1963291 A JP 1963291A JP 1963291 A JP1963291 A JP 1963291A JP H04258050 A JPH04258050 A JP H04258050A
Authority
JP
Japan
Prior art keywords
data
station device
sampling period
sampling
slave station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1963291A
Other languages
Japanese (ja)
Inventor
Yasuyuki Yasuma
安間 恭之
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP1963291A priority Critical patent/JPH04258050A/en
Publication of JPH04258050A publication Critical patent/JPH04258050A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To allow a master station side to easily revise a collected data number and a sampling period with respect to a slave station device in the case of polling in response to the collected data quantity, to improve the utilizing efficiency of a line and to reduce the wait time for data collection. CONSTITUTION:A master station device 2 designates a collected data number and a sampling period to a polling start request from a data processing unit 1, adds them to a communication text and sends the result to a slave station device 3. The slave station device 3 implements data sampling according to the designated parameter and returns the result to the master station device 2. Moreover, the slave station device is provided with a collection data number table and a sampling period table, and the slave station device 3 reads the collection data number and the sampling period corresponding to the parameter designated in the case of polling by the master station respectively from the table and generates and collects the data and returns it to the master station device 2.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ポーリングによるデー
タ収集方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data collection method using polling.

【0002】0002

【従来の技術】従来ポーリングにおいて、親局側でサン
プリングデータ数及びサンプリング周期の情報を付加す
ることはなかったので、子局側で設定した固定周期で固
定されたデータ数をサンプリングして、親局へ送信する
のみであった。そのため周期及びデータ数を変更すると
きは、子局側のプログラムを変更していた。
[Prior Art] In conventional polling, information on the number of sampling data and sampling period was not added on the master station side, so a fixed number of data was sampled at a fixed interval set on the slave station side. It was only sent to the station. Therefore, when changing the cycle and the number of data, the program on the slave station side had to be changed.

【0003】0003

【発明が解決しようとする課題】この従来のポーリング
方式では、親局側が吸上げるデータ量およびその時間は
、子局側で設定したサンプリングパラメータである同期
およびデータ数で固定されるため、収集するデータ量が
少ない場合でも、そのシステムの最大のデータ量を収集
する時間と同じ時間を要し、回線の使用効率が低下する
と共に、データ収集のための待時間がかかるという欠点
があった。また、それらを回避するためには、その都度
子局側のプログラムを変更しなければならず、そのため
の費用と時間がかかるという欠点があった。
[Problem to be Solved by the Invention] In this conventional polling method, the amount of data that the master station acquires and its time are fixed by the synchronization and number of data, which are sampling parameters set on the slave station. Even when the amount of data is small, it takes the same amount of time to collect the maximum amount of data in the system, resulting in lower line usage efficiency and longer waiting times for data collection. In addition, in order to avoid these problems, the program on the slave station side must be changed each time, which has the disadvantage of being costly and time consuming.

【0004】0004

【課題を解決するための手段】本発明のデータ収集方式
は、データの収集先を指定する宛先指定情報と、サンプ
リング収集データ数指定情報と、サンプリング周期指定
情報とを通信電文に付加してポーリングを行う親局装置
と、前記宛先指定情報,サンプリング収集データ数情報
およびサンプリング周期情報を検出し、その指定された
サンプリング収集データ数,サンプリング周期でサンプ
リングしてデータを生成する少くとも1つの子局装置と
を備え、前記子局装置側のサンプリングするデータ数お
よびサンプリングする周期を任意に親局装置側で設定し
てポーリングする。また、子局装置に収集するデータ数
の値を複数項目収納した収集データ数テーブルと、サン
プリング周期の値を複数項目収納したサンプリング周期
テーブルとを備え、ポーリングの際親局から所望する収
集データ数テーブルの項目番号とサンプリング周期テー
ブルの項目番号とを指定し通信電文に付加して送信し、
前記子局装置が前記両テーブルを検索し指定された収集
データ数に対応する項目番号とサンプリング周期に対応
する項目番号を検出し、当該データを生成収集する。
[Means for Solving the Problems] The data collection method of the present invention adds destination designation information that designates the data collection destination, sampling collection data number designation information, and sampling cycle designation information to a communication message and performs polling. and at least one slave station that detects the destination designation information, sampling collection data number information, and sampling period information, and generates data by sampling at the specified sampling collection data number and sampling period. and polling is performed by arbitrarily setting the number of data to be sampled and the sampling period on the slave station side on the master station side. In addition, it is equipped with a collection data number table that stores multiple items of values for the number of data to be collected in the slave station device, and a sampling period table that stores multiple items of sampling period values. Specify the item number of the table and the item number of the sampling period table, add it to the communication message, and send it.
The slave station device searches both tables, detects an item number corresponding to the specified number of collected data and an item number corresponding to the sampling period, and generates and collects the data.

【0005】本発明の目的は、ポーリングの際に子局側
のデータサンプリング周期およびデータ数を親局側で任
意に指定することができるデータ収集方式を提供するこ
とにある。
An object of the present invention is to provide a data collection method that allows the master station to arbitrarily specify the data sampling period and the number of data on the slave station during polling.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明する
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0007】図1は、本発明の一実施例のシステム構成
を示すブロック図であり、データ処理装置1は、入出力
装置付のデータ処理装置であり、サンプリング周期(以
下ST と記す)及び、サンプリングデータ数(収集デ
ータ数:以下SN と記す)をその入出力装置を介して
容易に変更することが可能であり、ポーリングの起動を
かける際に、設定されたサンプリング周期及びサンプリ
ングデータ数を付加するものとする。親局装置2はデー
タ処理装置1からのポーリング起動要求に対して、ST
 ,SN を付加してポーリングをおこなう親局装置で
あり、子局装置3は、親局装置2のポーリングに対して
、指定されたパラメータ値に従いデータのサンプリング
をおこない、それを親局装置2へ送出する子局装置であ
る。また、データ収集の開始は、データ処理装置1が起
動するものとする。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention. A data processing device 1 is a data processing device equipped with an input/output device, and has a sampling period (hereinafter referred to as ST) and The number of sampling data (number of collected data: hereinafter referred to as SN) can be easily changed via the input/output device, and when starting polling, the set sampling period and number of sampling data are added. It shall be. In response to the polling activation request from the data processing device 1, the master station device 2
, SN and performs polling, and the slave station device 3 samples data according to the specified parameter value in response to the polling of the master station device 2, and sends it to the master station device 2. This is a slave station device that transmits data. Furthermore, it is assumed that the data processing device 1 starts up the data collection.

【0008】データ処理装置1は、あらかじめマンマシ
ン系(キーボード等の入力装置及びCRT等の出力装置
より構成される)を介して設定されたサンプリング周期
(ST ),無限大を含むサンプリングデータ数(SN
 )を付加して、親局装置2に対してポーリングのため
の起動をかける。
The data processing device 1 has a sampling period (ST) set in advance via a man-machine system (consisting of an input device such as a keyboard and an output device such as a CRT), and the number of sampling data (including infinity). SN
) to activate the master station device 2 for polling.

【0009】親局装置2では、この電文を受信すると、
データ処理装置1から送られてきたST ,SN の情
報を付加し、子局装置3に対してデータ収集をするため
にポーリングの電文を送出する。
[0009] When the master station device 2 receives this message,
It adds the ST and SN information sent from the data processing device 1 and sends a polling message to the slave station device 3 to collect data.

【0010】子局装置3は、送られてきたST ,SN
 に従ってデータをサンプリングし、親局装置2へ送出
する。
[0010] The slave station device 3 receives the received ST and SN.
The data is sampled according to the data and sent to the master station device 2.

【0011】また、次にポーリングをする際にST ,
SN の値を変更したければ、データ処理装置1のマン
マシン系を介してサンプリング周期(ST a),サン
プリングデータ数(SN a)に設定し直す。それから
データ処理装置1から親局装置2へポーリングの起動を
かける際、データ処理装置1は、変更されたパラメータ
ST a,SN aを付加して、電文を送出する。
[0011] Also, when polling is performed next time, ST,
If it is desired to change the value of SN, the sampling period (ST a) and the number of sampling data (SN a) are reset via the man-machine system of the data processing device 1. Then, when the data processing device 1 initiates polling to the master station device 2, the data processing device 1 adds the changed parameters ST a and SN a and sends the message.

【0012】親局装置2ではこの電文を受信すると、S
T a,SN aを付加して、子局装置3に対してポー
リングの電文を送出する。
[0012] When the master station device 2 receives this message, the S
It adds T a and SN a and sends a polling message to the slave station device 3 .

【0013】子局装置3は、送られてきた前回とは、異
なるST a,SN aに従ってデータをサンプリング
して、親局装置2へ送出する。親局装置2は、収集した
データをデータ処理装置1に送出し、データ処理装置1
で所定の処理がおこなわれる。
[0013] The slave station device 3 samples the data according to ST a and SN a, which are different from the previous data sent, and sends it to the master station device 2 . The master station device 2 sends the collected data to the data processing device 1 and
Predetermined processing is performed.

【0014】以上のように、子局側のサンプリングに関
するパラメータである、周期及びその数を容易に変更し
てデータ収集が可能である。また、一般に、n個の子局
がある場合は、データ処理装置1より局指定をしてST
 ,SN を付加して、ポーリングの起動をかければ、
同様にST ,SN を容易に変更して、データ収集が
可能である。
As described above, data can be collected by easily changing the period and the number of sampling parameters on the slave station side. Generally, when there are n slave stations, the data processing device 1 specifies the station and the ST
,SN and start polling,
Similarly, data can be collected by easily changing ST and SN.

【0015】図2は、子局装置3のデータ・サンプリン
グ処理を示す流れ図であり、子局装置3におけるパラメ
ータの設定及びそのパラメータを用いたデータ入力の手
順を示している。
FIG. 2 is a flowchart showing the data sampling process of the slave station device 3, and shows the procedure for setting parameters in the slave station device 3 and inputting data using the parameters.

【0016】収集データ数は、データを入力するたびに
プラス1ずつ歩進するカウンタの上限値として使用する
。周期はデータ・サンプリングの間隔を決定するために
使用する。この2つのパラメータを使用してサンプリン
グすることにより、時系列上連続した離散データを収集
することが可能となる。
The number of collected data is used as the upper limit value of a counter that increments by one each time data is input. The period is used to determine the data sampling interval. By sampling using these two parameters, it becomes possible to collect discrete data that is continuous in time series.

【0017】子局装置3におけるパラメータの指定方法
としては、大別して2つ有り、子局装置3において、収
集データ数,サンプリング周期の値をテーブルとして持
ち、そのテーブル番号を親局装置2より指定する方法と
、子局装置3において、テーブルを持たず、親局装置2
より直接数値を送出する方法とがある。
There are two general methods for specifying parameters in the slave station device 3. The slave station device 3 has a table containing the values of the number of data to be collected and the sampling period, and the table number is specified by the master station device 2. In the method, the slave station device 3 does not have a table and the master station device 2
There is a method of sending numerical values more directly.

【0018】次に、子局装置3におけるパラメータ指定
方法について説明する。図3は、親局装置2から送出さ
れたパラメータ値を直接使用する場合の電文を示し、ポ
ーリングコマンドに収集データ数及びサンプリング周期
を付加し、この値を子局装置3側で図2のフローにおけ
るサンプリング周期の代入(S1 ),サンプリングデ
ータ数の代入(S2 )に使用する。この場合の収集デ
ータ数,周期のデータ形態は、バイナリー,BCD,ヘ
キサ(16進)等を用いることが可能である。
Next, a method of specifying parameters in the slave station device 3 will be explained. FIG. 3 shows a message when the parameter values sent from the master station device 2 are directly used. The number of collected data and the sampling period are added to the polling command, and this value is sent to the slave station device 3 using the flowchart shown in FIG. It is used to substitute the sampling period (S1) and the number of sampling data (S2) in . In this case, the data format of the number of collected data and the period can be binary, BCD, hex (hexadecimal), etc.

【0019】親局2から指定されたサンプリング周期お
よびサンプリングデータ数が入力されたか否かを判別し
(S3 )、必要データ数が入力されていればデータサ
ンプリングを終了する。データ数が未入力の場合には、
サンプリング同期を設定するタイマをイニシャライズす
る。このイニシャライズしたサンプリング周期が設定値
を経過(S5 )すると、計測データを入力(S6 )
し、その入力データの数が所定の数に達すると(S7 
)、再び必要データ数を判定し(S3 )、必要データ
数があればデータサンプリングを完了する。
It is determined whether the sampling period and number of sampling data designated by the master station 2 have been input (S3), and if the required number of data has been input, data sampling is ended. If the number of data is not entered,
Initialize the timer that sets sampling synchronization. When this initialized sampling period passes the set value (S5), the measurement data is input (S6).
Then, when the number of input data reaches a predetermined number (S7
), the number of required data is determined again (S3), and if there is the required number of data, data sampling is completed.

【0020】図4は、子局装置3で収集データ数,サン
プリング周期の値をテーブルとして有している場合の電
文及びパラメータの指定方法を示している。電文は図3
とほぼ同じだが、ポーリングコマンドに付加されるのは
、直接の数値ではなく、子局装置3の有しているテーブ
ルの項目番号を指定するための収集データ数項目番号,
サンプリング周期項目番号である。
FIG. 4 shows a method for specifying messages and parameters when the slave station device 3 has a table containing the number of collected data and sampling period values. The message is shown in Figure 3.
is almost the same as , but what is added to the polling command is not a direct numerical value, but a collection data number item number to specify the item number of the table held by the slave station device 3,
This is the sampling cycle item number.

【0021】電文中における収集データ数項目番号i,
サンプリング周期項目番号jの指定により、子局装置3
の記憶部のiの箇所に格納されている数値を収集データ
数として、また、jの箇所に格納されている数値をサン
プリング周期として、図2のフローにおける代入時に用
いられる。以下動作は上述した親局からのパラメータを
直接使用する例と同じであるため省略する。但し、この
方法は、各パラメータ値を格納しておくための記憶部が
必要であり、連続的な指定をするためには、それに相当
する容量を必要とする。
[0021] Collection data number item number i in the message,
By specifying the sampling period item number j, the slave station device 3
The numerical value stored in the i location of the storage unit is used as the number of collected data, and the numerical value stored in the j location is used as the sampling period during substitution in the flow of FIG. The following operation is the same as the above-mentioned example in which parameters from the master station are directly used, so a description thereof will be omitted. However, this method requires a storage unit to store each parameter value, and continuous designation requires a corresponding capacity.

【0022】[0022]

【発明の効果】以上説明したように本発明は、ポーリン
グする際に子局側における、データサンプリング時の周
期及びその数を、子局側のプログラムを変更すること無
しに、容易に変更可能であるため、収集データ量に応じ
て可変でき、回線の使用効率が図れる効果がある。また
データ収集のための待時間が短縮できる効果がある。
[Effects of the Invention] As explained above, the present invention allows the data sampling period and the number of sampling cycles on the slave station side to be easily changed during polling without changing the program on the slave station side. Therefore, it can be varied according to the amount of collected data, which has the effect of improving line usage efficiency. It also has the effect of shortening the waiting time for data collection.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の一実施例のシステム構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention.

【図2】本発明の動作を示す流れ図である。FIG. 2 is a flow chart showing the operation of the present invention.

【図3】親局が送出したパラメータ値を直接使用する場
合の親局から子局への電文のデータフォーマットを示す
図である。
FIG. 3 is a diagram showing a data format of a message sent from a master station to a slave station when parameter values sent by the master station are directly used.

【図4】子局が有する収集データ数、サンプリング周期
テーブルの中から所望するパラメータを指定する場合の
親局から子局への電文と子局のテーブル構成を示す図で
ある。
FIG. 4 is a diagram illustrating a message sent from a master station to a slave station and a table configuration of the slave station when specifying desired parameters from the number of collected data and a sampling period table held by the slave station.

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

1    データ処理装置 2    親局装置 3    子局装置 1 Data processing device 2. Master station device 3. Slave station device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  データの収集先を指定する宛先指定情
報と、サンプリング収集データ数指定情報と、サンプリ
ング周期指定情報とを通信電文に付加してポーリングを
行う親局装置と、前記宛先指定情報,サンプリング収集
データ数情報およびサンプリング周期情報を検出し、そ
の指定されたサンプリング収集データ数,サンプリング
周期でサンプリングしてデータを生成する少くとも1つ
の子局装置とを備え、前記子局装置側のサンプリングす
るデータ数およびサンプリングする周期を任意に親局装
置側で設定してポーリングすることを特徴とするデータ
収集方式。
1. A master station device that performs polling by adding destination designation information that designates a data collection destination, sampling collection data number designation information, and sampling cycle designation information to a communication message, the destination designation information, at least one slave station device that detects sampling collection data number information and sampling period information and generates data by sampling with the specified sampling collection data number and sampling period, and the sampling on the side of the slave station device. A data collection method characterized by polling by arbitrarily setting the number of data to be collected and the sampling period on the master station side.
【請求項2】  前記子局装置に収集するデータ数の値
を複数項目収納した収集データ数テーブルと、サンプリ
ング周期の値を複数項目収納したサンプリング周期テー
ブルとを備え、ポーリングの際親局から所望する収集デ
ータ数テーブルの項目番号とサンプリング周期テーブル
の項目番号とを指定し通信電文に付加して送信し、前記
子局装置が前記両テーブルを検索し指定された収集デー
タ数に対応する項目番号とサンプリング周期に対応する
項目番号を検出し、当該データを生成収集することを特
徴とする請求項1記載のデータ収集方式。
2. A collected data number table that stores a plurality of items of values of the number of data to be collected in the slave station device, and a sampling period table that stores a plurality of items of sampling period values, and the table includes a collection data number table that stores a plurality of items of values of the number of data to be collected in the slave station device, and a sampling period table that stores a plurality of items of sampling period values, and the table includes a table that stores a plurality of items of values of the number of data to be collected in the slave station device, and a sampling period table that stores a plurality of items of values of sampling period. The item number of the collection data number table and the item number of the sampling period table are specified and added to the communication message and sent, and the slave station device searches both tables and determines the item number corresponding to the specified number of collection data. 2. The data collection method according to claim 1, wherein said data is generated and collected by detecting an item number corresponding to a sampling period.
JP1963291A 1991-02-13 1991-02-13 Data collection system Pending JPH04258050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1963291A JPH04258050A (en) 1991-02-13 1991-02-13 Data collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1963291A JPH04258050A (en) 1991-02-13 1991-02-13 Data collection system

Publications (1)

Publication Number Publication Date
JPH04258050A true JPH04258050A (en) 1992-09-14

Family

ID=12004583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1963291A Pending JPH04258050A (en) 1991-02-13 1991-02-13 Data collection system

Country Status (1)

Country Link
JP (1) JPH04258050A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011089678A1 (en) 2010-01-22 2011-07-28 パナソニック株式会社 Power collection device, power measurement device, and power collection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011089678A1 (en) 2010-01-22 2011-07-28 パナソニック株式会社 Power collection device, power measurement device, and power collection method
US8712707B2 (en) 2010-01-22 2014-04-29 Panasonic Corporation Power collecting device, power measuring device, and power collecting method

Similar Documents

Publication Publication Date Title
US5802303A (en) Monitor data collecting method for parallel computer system
US6519330B2 (en) Traffic data collection technique
JPH0865324A (en) Parameter setting of plc communication
JPS6069707A (en) Numerical controller
JPH04258050A (en) Data collection system
JP3242031B2 (en) FA information management method and system
JP2010021866A (en) Communication system and master
JPH06161859A (en) Distributed shared resource management system
JPH05211686A (en) Gateway data collection system
JP3018440B2 (en) Parts request device
JP3046887B2 (en) Output file generation method in OCR data entry system
JP4582490B2 (en) Communication data display device
JPH03198549A (en) Multi-point monitor system
JPH09190204A (en) Programmable controller
JP3321359B2 (en) Processing control system
JP2769276B2 (en) Industrial plant data distribution equipment
JPH04172032A (en) Polling control system
JPH0413624Y2 (en)
JPH08255135A (en) Transmitted information designation unit and information transmission unit, information reception unit, and switching device for information processing system using them
JP3152219B2 (en) Command automatic editing system
JPH0685943A (en) Communication control system for computer
JPH0342939A (en) Polling control system for data communication
JPH09102986A (en) Process control system and i/o data collecting method for the same
CN115808908A (en) Data acquisition method and device, electronic equipment and storage medium
JPS63271564A (en) Decentralized text editing system