JP3339264B2 - Data transmission method - Google Patents
Data transmission methodInfo
- Publication number
- JP3339264B2 JP3339264B2 JP22758995A JP22758995A JP3339264B2 JP 3339264 B2 JP3339264 B2 JP 3339264B2 JP 22758995 A JP22758995 A JP 22758995A JP 22758995 A JP22758995 A JP 22758995A JP 3339264 B2 JP3339264 B2 JP 3339264B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- host computer
- local device
- transmission
- collected
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims description 42
- 238000000034 method Methods 0.000 title claims description 9
- 238000005070 sampling Methods 0.000 claims description 10
- 238000013480 data collection Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 6
- 230000004044 response Effects 0.000 description 6
- 238000005259 measurement Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Selective Calling Equipment (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、監視制御システム
などにおけるローカル装置と上位コンピュータとの間で
短いサンプリング周期のデータ伝送を行う方法に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for transmitting data at a short sampling period between a local device and a host computer in a monitoring control system or the like.
【0002】[0002]
【従来の技術】例えば、監視制御システムは、ローカル
装置が監視対象から収集したデータ(計測・表示デー
タ)を伝送システムにより上位コンピュータ(制御レベ
ル及び情報処理レベルのコンピュータ)に伝送し、この
データ等から上位コンピュータが制御を必要とするとき
に制御データをローカル装置に伝送する。2. Description of the Related Art For example, a monitoring control system transmits data (measurement / display data) collected from a monitoring target by a local device to a higher-level computer (a computer at a control level and an information processing level) by a transmission system. Transmits control data to the local device when the host computer needs control.
【0003】図4は、ローカル装置と上位コンピュータ
との間の伝送プロトコルを示す。ローカル装置は、監視
対象の「状態変化有り」のデータを取り込むと、CPU
が内部設定される周期(50ms〜1000ms)で状
態変化を検出し、CPUから伝送装置に「送信要求」を
し、伝送装置からLAN等のネットワークを通して「D
ATA:データ」を伝送する。FIG. 4 shows a transmission protocol between a local device and a host computer. When the local device captures the data of “status change” of the monitoring target, the local device
Detects a state change at a cycle (50 ms to 1000 ms) set internally, makes a “transmission request” from the CPU to the transmission device, and transmits “D” through the network such as a LAN from the transmission device.
ATA: Data "is transmitted.
【0004】上位コンピュータは、ローカル装置から伝
送されたデータを伝送装置で受信し、この伝送装置から
CPUに「受信指示」により入出力の割込みをかけ、C
PUが受信データの「収集処理」をすると共に、ローカ
ル装置に対して応答「ACK:アック」を返送し、この
応答によりローカル装置側で「送信確認」を行う。[0004] The host computer receives the data transmitted from the local device by the transmission device, and interrupts the input / output from the transmission device to the CPU in response to a "reception instruction".
The PU performs “collection processing” of the received data, and returns a response “ACK: ACK” to the local device, and performs “transmission confirmation” on the local device side in response to the response.
【0005】[0005]
【発明が解決しようとする課題】従来の伝送プロトコル
によりデータ収集を行うにおいて、ローカル装置側が短
い周期のサンプリングデータ(50ms〜500ms)
を上位コンピュータに伝送する場合、監視不能となる可
能性が高くなる。In collecting data by the conventional transmission protocol, the local device side obtains a short period of sampling data (50 ms to 500 ms).
Is transmitted to the host computer, the possibility that monitoring becomes impossible increases.
【0006】この理由は、上位コンピュータではローカ
ル装置に比べてタスク数が多く、ディスクやプリンタ等
のデバイス処理なども必要とするため、そのデータ収集
処理がローカル装置のデータ収集周期に比較して時間が
かかり、上位コンピュータの伝送装置でデータの渋滞が
発生し、伝送装置部分でデータの破棄がなされ、上位コ
ンピュータでのデータ収集不能を起こすことによる。The reason is that the number of tasks in the host computer is larger than that of the local device, and device processing such as a disk or a printer is also required. Therefore, the data collection process takes a longer time than the data collection cycle of the local device. This causes data congestion in the transmission device of the host computer, data is discarded in the transmission device part, and data cannot be collected in the host computer.
【0007】すなわち、ローカル装置のデータ収集周期
と上位コンピュータの入出力処理が同期してしまう伝送
プロトコルでは、短周期のサンプリングデータを上位コ
ンピュータでは扱えなくなり、監視不能に陥る。In other words, in a transmission protocol in which the data collection cycle of the local device and the input / output processing of the host computer are synchronized, short-cycle sampling data cannot be handled by the host computer, and monitoring becomes impossible.
【0008】本発明の目的は、ローカル装置から短い周
期で収集したサンプリングデータを上位コンピュータに
伝送するのに上位コンピュータでのデータの欠落を無く
した伝送方法を提供することにある。SUMMARY OF THE INVENTION It is an object of the present invention to provide a transmission method for transmitting sampling data collected from a local device in a short cycle to a host computer without data loss in the host computer.
【0009】[0009]
【課題を解決するための手段】本発明は、ローカル装置
によって短いサンプリング周期で収集したデータを上位
コンピュータに伝送し、この上位コンピュータで一定周
期でデータ収集するデータ伝送方法において、前記ロー
カル装置は、サンプリング周期で収集した各データを複
数周期分まとめた一定時間分のデータとし、このデータ
の複数をまとめかつ1データ分だけシフトして一定周期
で送信し、前記上位コンピュータは、ローカル装置から
のデータを一定周期で受信し、この受信データからシリ
アル番号順のデータを一定周期で収集することを特徴と
する。The present invention relates to a data transmission method for transmitting data collected by a local device at a short sampling cycle to a host computer and collecting data at a fixed period by the host computer. Each data collected in the sampling cycle is collected for a plurality of cycles into data for a certain period of time, a plurality of the data are collected, shifted by one data and transmitted at a certain cycle, and the host computer transmits data from the local device. Are received at regular intervals, and data in the order of serial numbers are collected from the received data at regular intervals.
【0010】[0010]
【発明の実施の形態】図1は、本発明の一実施形態を示
す非同期の伝送プロトコルである。ローカル装置1の伝
送装置11及び上位コンピュータ2の伝送装置21は、そ
れぞれグローバルメモリ12、22を設け、ローカル装置
ではCPU13が収集した伝送データをグローバルメモ
リ12に蓄積した伝送を行い、上位コンピュータでは受
信データをグローバルメモリ22に蓄積し、それをCP
U23側に読み込む。FIG. 1 is an asynchronous transmission protocol showing an embodiment of the present invention. Local device transmission device 1 1 and the transmission apparatus 2 1 of the host computer 2 of 1, the global memory 1 2, 2 2 respectively, the transmission accumulated transmission data CPU 1 3 is collected by a local device to a global memory 1 2 performed, the host computer stores the received data in global memory 2 2, it CP
Read into the U2 3 side.
【0011】ローカル装置1は、短周期(以下、200
msとして説明する)で収集したデータを5回分まとめ
て1秒間のデータとして取り扱う。このデータ構造は、
図2に示すようになる。200ms毎に収集する各デー
タは、収集データを区別するためにサンプリング周期で
サイクリックに数値をインクリメントするシリアル番号
と、伝送時刻を「時:分:秒:1/10秒」で表す時刻
と、表示データの個別番号に対応して入力の有無を表示
する表示データと、計測データ値を0〜4095で表示
する計測データとの項目を設ける。The local device 1 has a short cycle (hereinafter, 200
The data collected as described in (ms) will be treated as data for one second for five times. This data structure is
As shown in FIG. Each data collected every 200 ms includes a serial number that cyclically increments a numerical value in a sampling cycle to distinguish collected data, and a time that indicates a transmission time by “hour: minute: second: 1/10 second”. There are provided items of display data for displaying the presence or absence of an input corresponding to the individual number of the display data, and measurement data for displaying measurement data values of 0 to 4095.
【0012】この1秒間にまとめたデータは、ローカル
装置1から上位コンピュータ2に1秒毎に伝送し、上位
コンピュータ2も1秒毎に収集する。The data collected for one second is transmitted from the local device 1 to the host computer 2 every second, and the host computer 2 also collects the data every second.
【0013】ここで、ローカル装置1のデータ送信周期
と上位コンピュータ2のデータ収集周期が同じであり、
送信と収集のタイミングによってはデータを取りこぼす
可能性が有る。このデータの欠落を防ぐため、ローカル
装置1が1秒毎に1回送信するデータは4秒間分とし、
この4秒間分のデータは1データ送信毎に1秒間データ
分だけシフトしたものとする。Here, the data transmission cycle of the local device 1 and the data collection cycle of the host computer 2 are the same,
Data may be missed depending on the timing of transmission and collection. In order to prevent this data loss, the data transmitted by the local device 1 once every second is 4 seconds,
It is assumed that the data for four seconds is shifted by one second for each data transmission.
【0014】この態様は下記表に例を示す。例えば、時
刻aでは時刻「00:00:01」〜「00:00:0
4」で収集したデータを送信し、その1秒後の時刻bで
は時刻「00:00:02」〜「00:00:05」で
収集したデータを送信する。This embodiment is illustrated in the following table. For example, at time a, times “00:00:01” to “00: 00: 0”
The data collected at time "4" is transmitted, and at time "b" one second after that, the data collected at times "00:00:02" to "00:00:05" is transmitted.
【0015】[0015]
【表1】 [Table 1]
【0016】また、図3にデータ収集と伝送のタイムチ
ャートで例示する。ローカル装置1側で1秒に5回収集
したデータを4秒間分だけまとめたデータを時刻aで送
信し、次の時刻bでは1秒間だけシフトした4秒間分の
データを送信し、以下同様に時刻c,dで4秒間分のデ
ータを送信する。FIG. 3 shows an example of a time chart of data collection and transmission. At the time a, data obtained by collecting data collected five times per second on the local device 1 side for four seconds is transmitted at time a, and at the next time b, data for four seconds shifted by one second is transmitted, and so on. Data for 4 seconds is transmitted at times c and d.
【0017】上位コンピュータ2側は、時刻a〜dでそ
れぞれ1秒周期で4秒間分のデータを受信し、時刻a’
〜d’でそれぞれ1秒周期で1秒間分のデータを収集す
る。このとき、受信データには4秒間分のデータが互い
にオーバラップしており、データ収集にはその内のシリ
アル番号順に収集する。これにより、ローカル装置側と
の送信周期と受信周期のタイミングのずれによるデータ
の欠落を防止する。The host computer 2 receives data for four seconds at one-second intervals at times a to d, and at time a ′.
Dd ′, data for one second is collected at one-second intervals. At this time, the data for 4 seconds overlap with each other in the received data, and the data is collected in the order of the serial number. This prevents data loss due to a difference in timing between the transmission cycle and the reception cycle with the local device.
【0018】以上の伝送プロトコルを実現するため、図
1においては、ローカル装置1では200ms毎に「状
態変化有り」の設定をし、CPU13が200ms周期
でデータ収集して伝送装置11に収集データの「書込み
要求」を行い、伝送装置11は200ms周期のデータ
をグローバルメモリ12に順次書込み、「書込み確認」
をCPU13に応答する。伝送装置11は、グローバルメ
モリ12に書込まれた4秒間分のデータを1秒周期で上
位コンピュータ2の伝送装置21にブロードキャスト送
信する。[0018] To realize the above transmission protocol, in Figure 1, the setting of "Yes state change" every 200ms in the local device 1, collected in the transmission device 1 1 CPU 1 3 is collected data 200ms period perform "write request" data transmission device 1 1 sequentially writes the data of 200ms period in the global memory 1 2, "write verify"
The response to the CPU1 3. The transmission device 1 1 transmits broadcast transmission apparatus 2 first host computer 2 the data for 4 seconds of written in global memory 1 2 at 1 second intervals.
【0019】上位コンピュータ2の伝送装置21は、受
信データをグローバルメモリ22に順次格納しておく。
そして、CPU23からの1秒周期の「読み込み要求」
でグローバルメモリ22の格納データをCPU23側に読
み出し、「読み込み確認」の応答でCPU23で収集処
理を行う。The transmission apparatus 2 first host computer 2 is kept sequentially stores the received data in the global memory 2 2.
Then, "read request" of the one-second period from the CPU2 3
In reading the data stored in the global memory 2 2 to CPU 2 3 side, the collection process in CPU 2 3 in response "read confirmation".
【0020】したがって、ローカル装置1とデータ送信
処理と上位コンピュータ2のデータ受信処理は、非同期
で行われる。また、ローカル装置1及び上位コンピュー
タ2におけるCPUと伝送装置間のやり取りは、非同期
で行われる。Therefore, the data transmission process with the local device 1 and the data reception process with the host computer 2 are performed asynchronously. The exchange between the CPU and the transmission device in the local device 1 and the host computer 2 is performed asynchronously.
【0021】[0021]
【発明の効果】以上のとおり、本発明によれば、ローカ
ル装置はサンプリング周期で収集した各データを複数周
期分まとめた一定時間分のデータとし、このデータの複
数をまとめかつ1データ分だけシフトして一定周期で送
信し、上位コンピュータはローカル装置からのデータを
一定周期で受信し、この受信データからシリアル番号順
のデータを一定周期で収集するため、ローカル装置と上
位コンピュータとのデータ収集周期が同等の場合にも非
同期の伝送でデータ欠落を無くすことができる。As described above, according to the present invention, the local device converts the data collected at the sampling period into data for a certain period of time for a plurality of periods, collects the data and shifts the data by one data. The host computer receives data from the local device at regular intervals, and collects data in serial number order from this received data at regular intervals. Are equal to each other, data loss can be eliminated by asynchronous transmission.
【図1】本発明の一実施形態を示す伝送プロトコル。FIG. 1 is a transmission protocol illustrating an embodiment of the present invention.
【図2】実施形態における伝送データ構造。FIG. 2 is a transmission data structure in the embodiment.
【図3】実施形態におけるデータ収集と伝送のタイムチ
ャート。FIG. 3 is a time chart of data collection and transmission in the embodiment.
【図4】従来の伝送プロトコル。FIG. 4 shows a conventional transmission protocol.
1…ローカル装置 2…上位コンピュータ 11、21…伝送装置 12、22…グローバルメモリ 13、23…CPU1 ... local device 2 ... host computer 1 1, 2 1 ... transmission device 1 2, 2 2 ... global memory 1 3, 2 3 ... CPU
Claims (1)
周期で収集したデータを上位コンピュータに伝送し、こ
の上位コンピュータで一定周期でデータ収集するデータ
伝送方法において、 前記ローカル装置は、サンプリング周期で収集した各デ
ータを複数周期分まとめた一定時間分のデータとし、こ
のデータの複数をまとめかつ1データ分だけシフトして
一定周期で送信し、 前記上位コンピュータは、ローカル装置からのデータを
一定周期で受信し、この受信データからシリアル番号順
のデータを一定周期で収集することを特徴とするデータ
伝送方法。1. A data transmission method for transmitting data collected by a local device at a short sampling cycle to a host computer and collecting data at a fixed period by the host computer, wherein the local device transmits each data collected at the sampling period. Data for a certain period of time is collected for a plurality of periods, a plurality of the data are collected, shifted by one data and transmitted at a certain period, and the host computer receives data from the local device at a certain period, A data transmission method characterized by collecting data in serial number order from received data at a fixed period.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22758995A JP3339264B2 (en) | 1995-09-05 | 1995-09-05 | Data transmission method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22758995A JP3339264B2 (en) | 1995-09-05 | 1995-09-05 | Data transmission method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0974590A JPH0974590A (en) | 1997-03-18 |
| JP3339264B2 true JP3339264B2 (en) | 2002-10-28 |
Family
ID=16863292
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP22758995A Expired - Fee Related JP3339264B2 (en) | 1995-09-05 | 1995-09-05 | Data transmission method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3339264B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2020187508A (en) * | 2019-05-14 | 2020-11-19 | 住友電工システムソリューション株式会社 | Traffic signal controller, central device, traffic signal control system, and computer program |
-
1995
- 1995-09-05 JP JP22758995A patent/JP3339264B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0974590A (en) | 1997-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0872799A2 (en) | PCI bus System | |
| JPH03202927A (en) | Monitor method and device of selected software | |
| JPH05265943A (en) | Serial data transfer equipment | |
| JP3339264B2 (en) | Data transmission method | |
| JP2005529429A (en) | Event control method and event control system | |
| JP2920441B2 (en) | Process data processing system and processing method | |
| JPH06230806A (en) | Remote i/o system for programmable controller | |
| JP2000172307A (en) | Method of updating process data collection device | |
| JP2838588B2 (en) | Process data processing system | |
| JPH02308345A (en) | Data gathering method for terminal equipment | |
| JP3047872B2 (en) | Pen recorder output control device and pen recorder output control method | |
| JPH04302346A (en) | Multiprocessor system | |
| JPH10307613A (en) | Updating method of process data gathering device | |
| JP3058972B2 (en) | Storage method of communication data history between CPUs | |
| JPH10105375A (en) | Asynchronous fifo buffer device | |
| JP2945123B2 (en) | Communications system | |
| JP2011065537A (en) | Data receiving system and interruption performing method | |
| JPH023235B2 (en) | ||
| JPH0452746A (en) | Input/output command issuing system for information processing system | |
| JP2001005742A (en) | Data transfer method | |
| JPS6329848A (en) | Timing control method for computer system | |
| JPH11306076A (en) | Common memory control device | |
| JPS6342547A (en) | Line control unit | |
| JPH05292130A (en) | Semiconductor integrated circuit for communication control | |
| JPH0824302B2 (en) | Data transmission method and device using common serial bus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070816 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080816 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080816 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090816 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100816 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100816 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110816 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120816 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130816 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |