JPH0618364B2 - Time synchronization method for data transmission system - Google Patents
Time synchronization method for data transmission systemInfo
- Publication number
- JPH0618364B2 JPH0618364B2 JP61142780A JP14278086A JPH0618364B2 JP H0618364 B2 JPH0618364 B2 JP H0618364B2 JP 61142780 A JP61142780 A JP 61142780A JP 14278086 A JP14278086 A JP 14278086A JP H0618364 B2 JPH0618364 B2 JP H0618364B2
- Authority
- JP
- Japan
- Prior art keywords
- time
- clock
- slave
- station
- data
- 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 - Lifetime
Links
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、遠隔地点間で双方向にデータ伝送を行なう
データ伝送システムにおいて両端局に設置された時計の
時刻をデータ伝送回線を介して同期させるデータ伝送シ
ステムの時刻同期方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention synchronizes the time of a clock installed at both end stations via a data transmission line in a data transmission system for bidirectional data transmission between remote points. The present invention relates to a time synchronization method of a data transmission system.
電力系統運用の高度化に伴ない広域に亘る各電気所にお
ける保護装置や各機器の動作時刻、動作順序を正確に記
録、解析する必要性が生じたり、また計測データの収集
に際しても異なる地点のデータの収集時点が一致してい
なければならないという問題が生じてきた。With the advancement of power system operation, it becomes necessary to accurately record and analyze the operation time and operation sequence of protection devices and equipment at each electric station over a wide area, and it is also necessary to collect measurement data at different points. The problem has arisen that the data collection points must match.
これらの問題を解決する方法としては、データ伝送シス
テムの親局および各子局に時計回路を設け、保護装置や
機器の動作はこの時刻の符号と共に伝送し、また予め定
めた時刻に全子局一斉に計測を行なって一旦計測データ
をメモリに収納した後、親局に伝送する方法が考えられ
る。As a method of solving these problems, a clock circuit is provided in the master station and each slave station of the data transmission system, the operation of the protection device and the device is transmitted together with the code of this time, and all slave stations are set at a predetermined time. A method is conceivable in which measurement is performed all at once, the measurement data is temporarily stored in a memory, and then transmitted to the master station.
この場合に重要なことは、親局と子局の時計回路が実用
上差支えない誤差の範囲で同期がとれていることである
が、データ伝送に要する時間が上記誤差の範囲の時間を
遥かに越えるため同期の方法に特別な工夫を要する。In this case, what is important is that the clock circuits of the master station and slave station are synchronized within an error range that is practically acceptable, but the time required for data transmission is far beyond the error range. In order to exceed the limit, special synchronization method is required.
従来のこの種のデータ伝送システムの時刻同期方法は、
親局の時計回路が所定時刻に達すると親局から時刻設定
信号を送信し、子局ではこれを受けて伝送遅れ時間を加
味して子局時計回路を設定するものである。The conventional time synchronization method for this type of data transmission system is
When the clock circuit of the master station reaches a predetermined time, the master station transmits a time setting signal, and the slave station receives this and sets the slave station clock circuit in consideration of the transmission delay time.
従来のデータ伝送システムの時刻同期方法は以上のよう
に行なわれていたので、時刻同期を実時間で行なうため
動作に猶予はなく、親局、子局の演算処理回路は他の動
作を保留して専ら時刻同期の動作を行なはなければなら
ない問題点があった。また、常時サイクリックにデータ
伝送を行なうシステムでは、実時間で時刻同期信号を伝
送しようとすれば、データの流れを一旦止めなければな
らないという問題点があった。Since the time synchronization method of the conventional data transmission system is performed as described above, there is no delay in the operation because the time synchronization is performed in real time, and the arithmetic processing circuits of the master station and slave stations suspend other operations. However, there is a problem that the time synchronization operation must be performed exclusively. Further, in a system that constantly cyclically transmits data, there is a problem in that if the time synchronization signal is to be transmitted in real time, the data flow must be temporarily stopped.
この発明は上記のような問題点を解消するためになされ
たもので、データ伝送システムの演算処理装置に動作の
中断や大きな負担をかけず、また常時サイクリック伝送
の場合もその流れを保ったま、親時計、子時計間の時刻
同期が行なえるデータ伝送システムの時刻同期方法を提
供することを目的とする。The present invention has been made in order to solve the above-mentioned problems, and does not impose an operation interruption or a heavy burden on the arithmetic processing unit of the data transmission system, and keeps the flow even in the case of constant cyclic transmission. It is an object of the present invention to provide a time synchronization method for a data transmission system capable of time synchronization between a master clock and a slave clock.
この出願の第1の発明に係るデータ伝送システムの時刻
同期方法は、親局からの時刻調査指令に応じ、子局は前
記親局に向って送信している符号のフレームの区切り目
より予め定めた一定時刻ta前の子時計の時刻TS1のその
区切り目に続く前記フレームの中にデータとして送信
し、前記親局では該フレームの受信完了時点の親時計の
時刻TR0から符号1フレームの長さtc+前記一定時刻ta
+伝送遅れ時間tdの合計を差引いた子時計推定時刻T
S10を算出し、これと前記子局よりデータとして到来し
た前記子時計の時刻TS1との差TS10−TS1を時刻修正
データとして前記子局に送信し、前記子局はこれを受け
ると前記子時計の時刻に前記差TS10−TS1を加えて修
正することにより前記子時計を前記親時計に同期させる
ものである。A time synchronization method of a data transmission system according to a first invention of this application is that a slave station is preset from a break point of a frame of a code transmitted to the master station in response to a time check command from the master station. The data is transmitted as data in the frame following the delimiter of the time T S1 of the slave clock before the fixed time ta, and the master station transmits one frame of code from the time T R0 of the master clock when the reception of the frame is completed. Length tc + fixed time ta
+ Estimated time T of child clock less the total of transmission delay time td
S10 is calculated, and the difference T S10 −T S1 between this and the time T S1 of the child clock that has arrived as data from the child station is transmitted to the child station as time correction data, and when the child station receives it. By correcting the time of the child clock by adding the difference T S10 −T S1 , the child clock is synchronized with the master clock.
この出願の第2の発明に係るデータ伝送システムの時刻
同期方法は、親局からの時刻調査指令に応じ、子局は前
記親局に向って送信している符号のフレームの区切り目
より予め定めた一定時刻ta前の前記子時計の時刻TS1を
その区切り目に続く前記フレームの中にデータとして送
信し、前記親局では前記子局からデータとして到来した
前記子時計の時刻TS1に伝送遅れ時間td+前記子時計の
時刻読取りから符号送出迄の時間ta+符号1フレームの
長さtcの合計を加えた子時計推定時刻TR10を算出し、
これと該フレームの受信完了時点の前記親時計の時刻T
R0との差TR0−TR10を時刻修正データとして前記子局
に送信し、前記子局はこれを受けると前記子時計の時刻
に前記差TR0−TR10を加えて修正することにより前記
子時計を前記親時計に同期させるものである。In a time synchronization method for a data transmission system according to a second invention of this application, a slave station is preset from a break point of a frame of a code transmitted toward the master station in response to a time check command from the master station. The time T S1 of the child clock before the fixed time ta is transmitted as data in the frame following the delimiter, and the master station transmits the time T S1 of the child clock received as data from the child station. The slave clock estimated time T R10 is calculated by adding the total of the delay time td + the time ta from the time reading of the slave clock to the code transmission + the length tc of one code frame,
This and the time T of the master clock when the reception of the frame is completed
The difference T R0 -T R10 and R0 transmitted as time correction data to said slave station, said by the slave station modifies the addition of the difference T R0 -T R10 to the terminal time of the clock to undergo this The child clock is synchronized with the parent clock.
この出願の第1,第2の発明におけるデータ伝送システ
ムの時刻同期方法は、上記のように親時計と子時計の時
刻差のデータにより子時計の修正を行なうため、修正動
作は直ちに行なう必要はなく他の動作の合間に行なうこ
とができる。In the time synchronization method of the data transmission system according to the first and second inventions of this application, since the child clock is corrected by the data of the time difference between the parent clock and the child clock as described above, the correction operation need not be performed immediately. Can be done in between other actions.
また時刻差のデータを得るための親時計と子時計の時刻
の読み取り等は、常時行なている符号送受信に合せて行
なってレジスタに蓄わえるようにしているので、親局、
子局共演算処理装置の負担は軽く、サイクリックにデー
タ伝送を行なうシステムの場合にもデータ伝送の流れを
止める必要がない。In addition, reading the time of the master clock and slave clock to obtain the data of the time difference is performed in accordance with the code transmission and reception that is always performed, and is stored in the register.
The burden on the slave station co-processor is light, and it is not necessary to stop the flow of data transmission even in the case of a system that cyclically transmits data.
第1図はこの発明によるデータ伝送システムの時刻同期
方法をスーパーバイザアリィ・コントロール・アンド・
データ・アクウィジィション(Supervisory Controd An
d Data Acquisition、以下、SCADAという)システ
ムの親局に設置された親時計と各子局に設置された子時
計との間の時刻同期に実施した一例を示す図である。図
において、0はSCADAシステムの親局、1,2,…
…は子局である。親局0において、GPは各子局1,
2,……の状態を表示する表示盤、CDは各子局1,
2,……に制御指令を発するための制御卓、TWは動作
やデータの記録を行なうタイプライタ、CPU0は演算
処理回路、DO0は出力回路、DI0は入力回路、TC
はタイプライタ制御回路、MCは親時計、RG01,RG
02,……はレジスタ、S01,S02,……は符号送信回
路、R01,R02,……は符号受信回路、M01,M02,…
…は変調回路、D01,D02,……は復調回路である。FIG. 1 shows a time synchronization method for a data transmission system according to the present invention as a supervisory control and control method.
Data Acquisition (Supervisory Controd An
FIG. 3 is a diagram showing an example of time synchronization between a master clock installed in a master station of a d Data Acquisition (hereinafter referred to as SCADA) system and a slave clock installed in each slave station. In the figure, 0 is the master station of the SCADA system, 1, 2, ...
... is a child station. In the master station 0, the GP is each slave station 1,
2, Display panel that displays the status of, ...
2, a control console for issuing control commands, TW is a typewriter for recording operations and data, CPU 0 is an arithmetic processing circuit, DO 0 is an output circuit, DI 0 is an input circuit, TC
Is a typewriter control circuit, MC is a master clock, RG 01 , RG
02 , ... Are registers, S 01 , S 02 , ... Are code transmission circuits, R 01 , R 02 , ... Are code reception circuits, and M 01 , M 02 ,.
... are modulation circuits, and D 01 , D 02 , ... are demodulation circuits.
また、子局1,2において、CPU1,CPU2は演算
処理回路、D1,D2は復調回路、M1,M2は変調回
路、R1,R2は符号受信回路、S1,S2は符号送信
回路、DO1,DO2は出力回路、DI1,DI2は入
力回路、LC1,LC2は子時計、RG1,RG2はレ
ジスタである。In the slave stations 1 and 2, CPU 1 and CPU 2 are arithmetic processing circuits, D 1 and D 2 are demodulation circuits, M 1 and M 2 are modulation circuits, R 1 and R 2 are code reception circuits, and S 1 and S 2 is a code transmission circuit, DO 1 and DO 2 are output circuits, DI 1 and DI 2 are input circuits, LC 1 and LC 2 are child clocks, and RG 1 and RG 2 are registers.
L1D,L1U,L2D,L2U……は親局0と各子局1,2…
…を結ぶデータ伝送路である。L 1D , L 1U , L 2D , L 2U ... Are the master station 0 and each slave station 1, 2 ...
It is a data transmission line connecting ...
次に第1図の動作について、親局0〜子局1間で送受信
される符号のタイムチャート図を示す第2図を用いて説
明する。Next, the operation of FIG. 1 will be described with reference to FIG. 2 showing a time chart of codes transmitted and received between the master station 0 and the slave station 1.
まず、通常の遠方監視制御及び動作記録を行なう場合に
ついて説明する。First, a case where normal remote monitoring control and operation recording are performed will be described.
第1図において、子局1の演算処理回路CPU1は入力回路
DI1に入力された被監視接点(保護継電器やしゃ断器
の補助接点等)の状態を走査し、その状態を記憶してい
る。そして入力接点に状態変化があれば、その接点のア
ドレス番号と新しい状態を符号送信回路S1に渡す。符
号送信回路S1は常時親局0に向って符号の送信を行な
っており、演算処理回路CPU1から上記状態変化接点
のアドレス及び新状態のデータを受けると、これをその
時送信している符号の次の符号フレームに乗せて親局0
に送るべく変調回路M1に渡す。符号送信回路S1が送
信する符号の一例を第2図のS1に示す。第2図におい
て、Dは符号の各フレーム、FはフレームD間の区切り
を示すフラグである。フラグFのパターンは固定である
が、フレームDは送る内容により長さも含めて変化す
る。また、その内容は送信すべきデータの他に送受信を
確実にするためのコントロール部分や符号チェックの部
分が追加されるのが普通である。なお、符号フォーマッ
トの例としてはハイレベル・データ・リンク・コントロ
ール(High-Level Data Link Co-ntrol、以下HDLC
という)プロスィ−ジュアのそれがある。In FIG. 1, the arithmetic processing circuit CPU 1 of the slave station 1 scans the state of the monitored contact (auxiliary contact of protective relay or breaker, etc.) input to the input circuit DI 1 and stores the state. . Then, if there is a change in the state of the input contact, the address number of the contact and the new state are passed to the code transmission circuit S 1 . The code transmission circuit S 1 always transmits a code toward the master station 0. When the address of the state change contact and the new state data are received from the arithmetic processing circuit CPU 1 , the code transmission circuit S 1 transmits the code at that time. 0 in the next code frame of
And sends it to the modulation circuit M 1 to be sent to. An example of the code transmitted by the code transmission circuit S 1 is shown by S 1 in FIG. In FIG. 2, D is a frame of the code, and F is a flag indicating a delimiter between the frames D. The pattern of the flag F is fixed, but the length of the frame D varies depending on the contents to be transmitted, including the length. In addition to the data to be transmitted, the contents are usually added with a control portion for ensuring transmission and reception and a code check portion. In addition, as an example of the code format, a high-level data link control (High-Level Data Link Co-ntrol, hereinafter HDLC)
There is that of Prosi-Jure.
第1図に戻ると、変調回路M1は符号送信回路S1から
受けた符号を信号伝送路に適合し、雑音の影響も受けに
くい形、例えば周波数偏移(Frequency Shift Keying、
以下FSKという)信号に変調して信号伝送路L1Uを介
して親局0に伝送する。親局0では復調回路D01がこれ
を受けて直流パルスに復調し、符号受信回路R01に渡
す。Returning to FIG. 1, the modulation circuit M 1 adapts the code received from the code transmission circuit S 1 to the signal transmission path and is not easily affected by noise, for example, frequency shift keying (Frequency Shift Keying,
It is modulated into a signal (hereinafter referred to as FSK) and transmitted to the master station 0 via the signal transmission line L 1U . In the master station 0, the demodulation circuit D 01 receives this and demodulates it into a DC pulse, and passes it to the code reception circuit R 01 .
符号受信回路R01に到達する符号は、第2図のR01の如
く送信符号S1と同様であるが伝送遅れ時間tdだけ遅れ
ている。The code reaching the code receiving circuit R 01 is similar to the transmission code S 1 as indicated by R 01 in FIG. 2, but delayed by the transmission delay time td.
親局0の演算処理回路CPU0は周期的走査あるいは符
号受信回路R01からの割込信号によりその受信内容を読
み取り、状態変化のデータが到来すれば、自己の記憶装
置の内容を更新するとともに出力回路DO0を介して表
示盤GPの表示を変化させる。また、タイプライタ制御
回路TCを介してタイプライタTWにより状態変化を記
録する。Arithmetic processing circuit CPU 0 master station 0 reads the received contents by an interrupt signal from a periodic scan or code receiving circuit R 01, if incoming data state change, updates the contents of its storage device The display on the display panel GP is changed via the output circuit DO 0 . Further, the state change is recorded by the typewriter TW via the typewriter control circuit TC.
親局0の演算処理回路CPU0は入力回路DI0を介し
て制御卓CDからの入力も走査しており、子局1の機器
に対する選択、制御の指令があると該当機器アドレス、
制御すべき状態(入切等)を符号化して符号送信回路S
01に与える。符号送信回路S01は第2図のS01に示す符
号を送信しており、その1フレームにこれを乗せて変調
回路M01、伝送路L1D、復調回路D1を介して子局1の
符号受信回路R1に伝送する。演算処理回路CPU1は
周期的走査または符号受信回路R1からの割込信号によ
りその受信内容を読取り、符号チェック及び復号化を行
ない出力回路DO1を介して割当機器に制御指令を与え
る。Arithmetic processing circuit CPU 0 master station 0 input is also scanned from the control console CD via an input circuit DI 0, selection of the appliance of the slave station 1, and the corresponding device address is a command from the control,
A code transmission circuit S that encodes a state to be controlled (ON / OFF, etc.)
Give to 01 . Code transmission circuit S 01 is sending a code indicating the S 01 of FIG. 2, the modulation circuit M 01 put it in one frame, the transmission path L 1D, the slave station 1 via the demodulation circuit D 1 It is transmitted to the code receiving circuit R 1 . The arithmetic processing circuit CPU 1 reads the received contents by periodic scanning or an interrupt signal from the code receiving circuit R 1 , performs code checking and decoding, and gives a control command to the assigned device via the output circuit DO 1 .
以上の動作は、子局2についても全く同様なので説明は
省略する。また、図示していない子局3以下についても
同様の追加構成を行ない、全く同様の動作を行なわせる
ことができる。Since the above operation is exactly the same for the slave station 2, the description thereof is omitted. Further, the same additional configuration can be performed for the slave stations 3 and below (not shown) to perform exactly the same operation.
以上は通常の遠方監視制御及び動作記録の動作である
が、親局0で動作記録を行なう場合、上記通常動作では
各子局1,2,……から状態変化が発生した時刻のデー
タが来ないため親局0の演算処理回路CPU0が確認し
た順序に親時計MCの時刻をつけて記録する以外に方法
はないが、電力系統のように保護装置や機器の動作がデ
ータ伝送装置の符号伝送所要時間に比べて遥かに速い場
合にはデータが親局0に到達した時点では動作順序の正
確な判別はつかなくなっている。The above is the operation of normal distant monitoring control and operation recording. However, when the operation recording is performed by the master station 0, the data of the time when the state change occurs from each slave station 1, 2, ... without method but to record with a time of master clock MC to the order in which the arithmetic processing circuit CPU 0 is confirmed in the master station 0 for no sign of protection devices and equipment operation data transmission device as the power system If it is much faster than the required transmission time, it is impossible to accurately determine the operation sequence when the data reaches the master station 0.
これを解決するために、各子局1,2,……に子時計L
C1,LC2,……を設け、これを親時計MCと同期さ
せておき、状態変化が発生した場合には子時計LC1,
LC2,……の時刻も合せて親局0へ伝送する。即ち、
先に説明した子局1の入力回路DI1に入力されている
接点に状態変化があった場合、演算処理回路CPU1は
該当接点のアドレス番号、親状態と共に子時計LC1の
時刻も合せて親局0へ伝送すれば、親局0の演算処理回
路CPU0は自己の記憶装置に一旦これを蓄え、一定時
間他子局からのデータも集めた上で付加された時刻順に
整理しタイプライタ制御回路TCを介してタイプライタ
TWで打出せば、操作員は正しい動作時刻とその順序を
知ることが出来る。In order to solve this, each slave station 1, 2, ...
, C 1 , LC 2 , ... Are provided and synchronized with the master clock MC, and when a state change occurs, the slave clock LC 1 ,
The time of LC 2 , ... is also transmitted to the master station 0. That is,
When the contact input to the input circuit DI 1 of the slave station 1 described above has a state change, the arithmetic processing circuit CPU 1 includes the address number of the contact, the parent state, and the time of the slave clock LC 1. When the data is transmitted to the master station 0, the arithmetic processing circuit CPU 0 of the master station 0 temporarily stores it in its own storage device, collects data from other slave stations for a certain period of time, and then sorts the data in the order of the added time and typewriter. The operator can know the correct operation time and its order by using the typewriter TW through the control circuit TC.
この場合、親局0の親時計MCと各子局1,2,……の
子時計LC1,LC2,……がかなりな精度(例えば数
ミリ秒以内)で同期している必要があるがこの同期をと
る動作について以下に説明する。In this case, the master clock MC of the master station 0 and the slave clocks LC 1 , LC 2 , ... Of the slave stations 1, 2 , ... Must be synchronized with considerable accuracy (for example, within a few milliseconds). The operation of this synchronization will be described below.
親局0の演算処理回路CPU0は一定時間(子時計の精
度により1時間〜1日)に1回、各子時計LC1,LC
2,……の時刻をチェックするための時刻調査指令を各
符号送信回路S01,S02,……を介して各子局1,2,
……に発する。Once the arithmetic processing circuit CPU 0 is a fixed time for the master station 0 (1 hour to 1 day by the accuracy of the atomic clock), each child watches LC 1, LC
2 , a time check command for checking the time is sent to each slave station 1, 2, via each code transmission circuit S 01 , S 02 , ....
..
子局1について説明すると、まず通常の動作として符号
送信回路S1は符号フレーム送信開始より予め定めた一
定時間ta前にレジスタRG1に信号を与え、レジスタR
G1はこの信号が到来した時点の子時計LC1の時刻を
読込んでこれを蓄える動作を繰返し行なっている。親局
0の演算処理回路CPU0が時刻調査指令を出すと符号
送信回路S01は変調回路M01、伝送路L1D、復調回路D
1を介して子局1の符号受信回路R1に伝送する。この
動作は第2図のタイムチャート図でD(TIQ)として
示されている。The slave station 1 will be explained. First, as a normal operation, the code transmission circuit S 1 gives a signal to the register RG 1 a predetermined time ta before the start of code frame transmission, and then the register R 1
G 1 repeats the operation of reading the time of the child clock LC 1 at the time when this signal arrives and storing it. Code transmission circuit S 01 modulation circuit M 01 When the calculation processing circuit CPU 0 master station 0 issues a time survey command, the transmission path L 1D, the demodulation circuit D
1 to the code receiving circuit R 1 of the slave station 1. This operation is shown as D (TIQ) in the time chart of FIG.
子局1の演算処理回路CPU1は符号受信回路R1が時
刻調査指令D(TIQ)を受けると、次の符号フレーム
にレジスタRG1に蓄わえられたデータを乗せるが、レ
ジスタRG1のデータは第2図のS1の上部に示した如
く次のフレームよりtaだけ前(この例では前のフレーム
の送信完了時点)の子時計LC1の時刻が入っており、
これをTS1とすれば次のフレームD(TAS)にはこの
TS1が子時計LC1の時刻データとして符号送信回路S
1、変調回路M1、伝送路L1U、復調回路D01を介して
親局0の符号受信回路R01に伝送する。When the calculation processing circuit CPU 1 of the slave station 1 code receiving circuit R 1 is subjected to time survey command D (TIQ), but put the next蓄Wa the obtained data to the code frame to register RG 1, the register RG 1 As shown in the upper part of S 1 in FIG. 2, the data includes the time of the slave clock LC 1 which is ta before the next frame (in this example, when the transmission of the previous frame is completed),
Letting this be T S1 , in the next frame D (TAS), this T S1 is used as the time data of the child clock LC 1 for the code transmission circuit S.
1 , the modulation circuit M 1 , the transmission line L 1U , and the demodulation circuit D 01 to the code reception circuit R 01 of the master station 0.
符号受信回路R01に到来する符号は、第2図のR01の如
く送信符号S1と同じで伝送遅れ時間tdだけ遅れたもの
である。符号受信回路R01は子時計LC1の時刻データ
が乗ったフレームの受信を完了すると、その時点の親時
計MCの時刻TR0をレジスタRG01に読込んで蓄える。The code arriving at the code receiving circuit R 01 is the same as the transmission code S 1 as indicated by R 01 in FIG. 2 and is delayed by the transmission delay time td. When the code receiving circuit R 01 completes the reception of the frame in which the time data of the child clock LC 1 is carried, the time T R0 of the parent clock MC at that time is read and stored in the register RG 01 .
演算処理回路CPU0は上記レジスタRG01に入った時
刻データTR0を読出し、これより、予め分っている符号
1フレームの長さtc+前述の子時計時刻読取りから符号
送出迄の時間ta+伝送遅れ時間tdの合計を差引いて子時
計推定時刻TS10を出し、それと子局1よりD(TA
S)のフレームにより到来した子時計時刻TS1との差T
S10−TS1を取ると、これが親時計0と子時計1との時
刻差となるとでこれを自己の記憶装置に蓄える。The arithmetic processing circuit CPU 0 reads out the time data T R0 stored in the register RG 01, and from this, the length tc of the code 1 frame which is known in advance + the time ta from the time reading of the slave clock to the code transmission + the transmission delay Subtract the total of time td to give the child clock estimated time T S10.
S) The difference T from the child clock time T S1 that arrives due to the frame
When S10- T S1 is taken, this becomes the time difference between the master clock 0 and the slave clock 1, and this is stored in its own storage device.
次に、演算処理回路CPU0は上記時刻差を子時計修正
データとして符号送信回路S01、変調回路M01、伝送路
L1D、復調回路D1を介して子局1の符号受信回路R1
に伝送する。この動作のタイムチャートは第2図のD
(TAJ)で示されている。Next, the arithmetic processing circuit CPU 0 uses the time difference as the slave clock correction data through the code transmission circuit S 01 , the modulation circuit M 01 , the transmission line L 1D , and the demodulation circuit D 1 to receive the code reception circuit R 1 of the slave station 1.
To transmit. The time chart of this operation is D in Fig. 2.
(TAJ).
子局1の演算処理回路CPU1は符号受信回路R1が時
刻修正データD(TAJ)を受けると、子時計LC1の
時刻を読出し、これに時刻修正データを加算(符号も含
めて)し、その時刻に子時刻LC1の時刻を設定する。Arithmetic processing circuit CPU 1 of the slave station 1 is the code receiving circuit R 1 receives the time correction data D (TAJ), reads the time of the atomic clock LC 1, this adds time correction data (code included) and , And sets the time of the child time LC 1 to that time.
これにより子時計LC1の時刻は親時計MCの時刻に同
期される。As a result, the time of the child clock LC 1 is synchronized with the time of the parent clock MC.
子局2以下の子時計LC2……についても全く同様の動
作により時刻同期を行なうことが出来る。時刻修正デー
タは、親局0の演算処理回路CPU0が上記とは逆に子局1
より到来した子時計LC1の時刻TS1に伝送遅れ時間td
+子時計の時刻読取りから符号送出迄の時間ta+符号1
フレームの長さtcの合計を加えた子時計推定時刻TR10
と子時計時刻TS1を乗せて到来した符号フレームの受信
完了時点の親時計0の時刻TR0との差TR10−TR0とし
て得ることも出来る。The time synchronization can be performed for the child clocks LC 2 ... Under the slave station 2 by exactly the same operation. The time correction data is transmitted to the slave station 1 by the arithmetic processing circuit CPU 0 of the master station 0 in the opposite manner to the above.
The transmission delay time td at the time T S1 of the child clock LC 1 that has arrived
+ Time ta from reading the time on the child clock to sending the code ta + sign 1
Child clock estimated time T R10, which is the sum of frame length tc
It is also possible to obtain it as a difference T R10 −T R0 from the time T R0 of the master clock 0 at the time when the reception of the code frame arrived by multiplying the time by the child clock time T S1 .
この発明による時刻同期方法は、常時符号を送出してい
るデータ伝送システムに適用することが出来るので実施
例にもその方式を挙げているが、他の符号方式、例えば
常時符号の送出は行なわず親局からのポーリング(Polli
ng)に応じて各子局が符号送出を行なう方式等にも適用
できることは勿論である。Since the time synchronization method according to the present invention can be applied to a data transmission system that constantly sends a code, the method is also mentioned in the embodiment, but other coding methods, for example, a constant code is not sent. Polling from the master station (Polli
It is needless to say that the present invention can be applied to a system in which each slave station transmits a code according to (ng).
実施例の構成においても、例えば親局0のレジスタRG
01,RG02,……は実施例のように個別に設ければ各子
局の子時計の時刻修正動作を並行して行なえるが、1局
ずつ順次行なうことにすれば1個の共用レジスタを順次
使用して行なえる等色々な構成が出来ることもまた勿論
である。Also in the configuration of the embodiment, for example, the register RG of the master station 0
If 01 , RG 02 , ... Are individually provided as in the embodiment, the time adjustment operation of the child clock of each child station can be performed in parallel, but if one station is sequentially performed, one shared register is provided. It goes without saying that various configurations can be made such that the above can be sequentially used.
なお、親局と各子局との間の伝送遅れ時間tdはデータ伝
送システムを設置した時に変復調回路の折返し試験、例
えば、第1図において親局0の変調回路M01、復調回路
D01及び子局1の変調回路M1、復調回路D1を内部回
路から切離し、子局1において復調回路D1の出力を変
調回路M1に接続し、親局0の変調回路M01の入力符号
の変化が復調回路D01の出力に現われる迄の時間遅れを
測定しこれを2で割る等により測定し、親局0の演算処
理回路CPU0の記憶装置にデータとして蓄わえておけ
ばよい。It should be noted that the transmission delay time td between the master station and each slave station is the folding test of the modulation / demodulation circuit when the data transmission system is installed, for example, the modulation circuit M 01 , the demodulation circuit D 01 of the master station 0 in FIG. The modulation circuit M 1 and the demodulation circuit D 1 of the slave station 1 are separated from the internal circuit, the output of the demodulation circuit D 1 in the slave station 1 is connected to the modulation circuit M 1 , and the input code of the modulation circuit M 01 of the master station 0 is input. It suffices to measure the time delay until a change appears in the output of the demodulation circuit D 01 , measure it by dividing it by 2, etc., and store it as data in the storage device of the arithmetic processing circuit CPU 0 of the master station 0.
また時刻修正動作は毎回時刻の全ての桁(時、分、秒、
ミリセカンド)について行なう必要は必らずしもなく、
装置起動時あるいは長時間周期で秒迄の修正(あるいは
絶対時刻を伝送して子時計の時刻設定)を行ない、1時
間に1度ミリセカンドの修正をすることにして子時計時
刻やその修正データのビット長を減ずることを可能であ
る。In addition, the time adjustment operation is performed every time all digits (hour, minute, second,
There is no need to do this in milliseconds),
At the time of device startup or at long-term cycle, up to seconds are corrected (or absolute time is transmitted to set the time of the child clock), and the millisecond correction is made once an hour. It is possible to reduce the bit length of.
以上のようにこの出願の第1,第2の発明によれば、デ
ータ伝送システムの符号送受信動作に合せる子時計の時
刻データを収集し、また修正動作も絶対時刻によらず親
時計との時刻差のデータにより修正を行なうようにした
ので、データ伝送システムの演算処理回路に動作の中断
や大きな負担をかけず、また常時サイクリック伝送の場
合もその流れを保ったまま時刻修正が行えるとともに、
上下伝送路に遅延時間の差がある場合であっても確実に
時刻同期を確立できる効果がある。As described above, according to the first and second inventions of this application, the time data of the child clock is collected in accordance with the code transmission / reception operation of the data transmission system, and the correction operation is performed based on the time with the master clock regardless of the absolute time. Since the correction is made based on the difference data, the operation processing circuit of the data transmission system is not interrupted in operation and does not impose a heavy burden, and the time can be corrected while maintaining the flow even in the case of constant cyclic transmission.
Even if there is a difference in delay time between the upper and lower transmission lines, there is an effect that time synchronization can be reliably established.
第1図は本発明によるデータ伝送システムの時刻同期方
法をSCADAシステムにおいて実例した一例を示すブ
ロック図、第2図は第1図の親局0と子局1との間で送
受信される符号の一例を示す説明図である。 0は親局、1,2,……は子局、CPU0は演算処理回
路、MCは親時計、RG01,RG02,……はレジスタ、
S01,S02,……は符号送信回路、R01,R02,……は
符号受信回路、CPU1,CPU2,……は演算処理回
路、LC1,LC2,……は子時計、RG1,RG2,
……はレジスタ、R1,R2,……は符号受信回路、S
1,S2,……は符号送信回路、L1D,L1U,L2D,L
2U,……は親局0と子局1,2,……を結ぶ伝送路。FIG. 1 is a block diagram showing an example of a time synchronization method of a data transmission system according to the present invention in a SCADA system, and FIG. 2 is a diagram showing codes transmitted and received between a master station 0 and a slave station 1 in FIG. It is explanatory drawing which shows an example. 0 is a master station, 1, 2, ... are slave stations, CPU 0 is an arithmetic processing circuit, MC is a master clock, RG 01 , RG 02 , ... are registers,
S 01 , S 02 , ... Are code transmitting circuits, R 01 , R 02 , .. are code receiving circuits, CPU 1 , CPU 2 , ... Are arithmetic processing circuits, LC 1 , LC 2 ,. , RG 1 , RG 2 ,
... is a register, R 1 , R 2 , ... is a code receiving circuit, S
1 , S 2 , ... Are code transmission circuits, L 1D , L 1U , L 2D , L
2U , ... is a transmission line connecting the master station 0 and the slave stations 1, 2 ,.
フロントページの続き (56)参考文献 特開 昭60−109347(JP,A) 特開 昭60−2220915(JP,A) 特開 昭60−214291(JP,A)Continuation of front page (56) Reference JP-A-60-109347 (JP, A) JP-A-60-2220915 (JP, A) JP-A-60-214291 (JP, A)
Claims (2)
なうデータ伝送システムにおける方法であって、前記子
局に設置された子時計を前記親局に設置された親時計と
時刻的に同期させるデータ伝送システムの時刻同期方法
において、 前記子局は、前記親局からの子時計時刻調査指令に応じ
て、前記親局へ向って送信している符号のフレームの区
切り目より予め定めた一定時刻(ta)前の子時計の時刻
(TS1)をその区切り目に続くフレームの中にデータと
して送信し、 前記親局は、そのフレームの受信完了時点の時刻
(TR0)から、1フレームの長さ(tc)+前記一定時刻(t
a)+伝送遅れ時間(td)の合計を差引いた子時計推定時刻
(TS10 )を算出し、その子時計推定時刻(TS10 )と
前記子局から受信した子時計の時刻(TS1)との差時間
(TS10 −TS1)を時刻修正データとして前記子局に送
信し、 前記子局は、前記時刻修正データを受けると、そのとき
の時刻に前記差時間(TS10 −TS1)を加えて修正する
ことにより前記子時計を前記親時計に同期させることを
特徴とするデータ伝送システムの時刻同期方法。1. A method in a data transmission system for bidirectionally transmitting data between a master station and a slave station, comprising: a slave clock installed in the slave station and a master clock installed in the master station. In the time synchronization method of the data transmission system for synchronously synchronizing, the slave station is, in advance, from the break point of the frame of the code transmitted toward the master station in response to the slave clock time check command from the master station. The time (T S1 ) of the child clock before the defined fixed time (ta) is transmitted as data in the frame following the delimiter, and the master station starts from the time (T R0 ) of the reception completion time of the frame. 1 frame length (tc) + the fixed time (t
a) + Subordinate clock estimated time (T S10 ) is calculated by subtracting the sum of transmission delay time (td), and the estimated sub clock time (T S10 ) and the sub clock time (T S1 ) received from the slave station. Difference time (T S10 −T S1 ) is transmitted as time correction data to the slave station, and when the slave station receives the time correction data, the difference time (T S10 −T S1 ) is received at the time. A time synchronization method for a data transmission system, characterized in that the child clock is synchronized with the parent clock by adding and correcting.
なうデータ伝送システムにおける方法であって、前記子
局に設置された子時計を前記親局に設置された親時計と
時刻的に同期させるデータ伝送システムの時刻同期方法
において、 前記子局は、前記親局からの子時計時刻調査指令に応じ
て、前記親局へ向って送信している符号のフレームの区
切り目より予め定めた一定時刻(ta)前の子時計の時刻
(TS1)をその区切り目に続くフレームの中にデータと
して送信し、 前記親局は、前記子局から受信した子時計の時刻
(TS1)に、伝送遅れ時間(td)+前記一定時刻(ta)+1
フレームの長さ(tc)の合計を加えた子時計推定時刻(T
R10 )を算出し、その子時計推定時刻(TR10 )と前記
子局から子時計の時刻(TS1)を受信完了した時刻(T
R0)との差時間(TR0−TR10 )を時刻修正データとし
て前記子局に送信し、 前記子局は、前記時刻修正データを受けると、そのとき
の時刻に前記差時間(TR0−TR10 )を加えて修正する
ことにより前記子時計を前記親時計に同期させることを
特徴とするデータ伝送システムの時刻同期方法。2. A method in a data transmission system for bidirectionally transmitting data between a master station and a slave station, comprising a slave clock installed in the slave station and a master clock installed in the master station. In the time synchronization method of the data transmission system for synchronously synchronizing, the slave station is, in advance, from the break point of the frame of the code transmitted toward the master station in response to the slave clock time check command from the master station. The time (T S1 ) of the child clock before the predetermined fixed time (ta) is transmitted as data in the frame following the break, and the master station receives the time (T S1 ) of the child clock received from the slave station. ), The transmission delay time (td) + the fixed time (ta) +1
Estimated time of child clock (T plus total of frame length (tc))
R10 ), and the time (T R10 ) at which the slave clock is estimated and the time (T S1 ) when the slave clock is received from the slave station (T S1 ) is completed.
R0 ) and the time difference (T R0 −T R10 ) is transmitted as time correction data to the slave station, and when the slave station receives the time correction data, the time difference (TR 0 −T R0 − T R10 ) is added and corrected to synchronize the child clock with the master clock.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61142780A JPH0618364B2 (en) | 1986-06-20 | 1986-06-20 | Time synchronization method for data transmission system |
| DE3751571T DE3751571T2 (en) | 1986-05-20 | 1987-05-16 | Method for synchronizing real-time clocks in a data transmission system. |
| EP87107110A EP0253096B1 (en) | 1986-05-20 | 1987-05-16 | Time synchronization method in a data transmission system |
| US07/050,576 US4807259A (en) | 1986-05-20 | 1987-05-18 | Time synchronization method in data transmission system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61142780A JPH0618364B2 (en) | 1986-06-20 | 1986-06-20 | Time synchronization method for data transmission system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS631126A JPS631126A (en) | 1988-01-06 |
| JPH0618364B2 true JPH0618364B2 (en) | 1994-03-09 |
Family
ID=15323419
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61142780A Expired - Lifetime JPH0618364B2 (en) | 1986-05-20 | 1986-06-20 | Time synchronization method for data transmission system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0618364B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08104470A (en) * | 1994-10-05 | 1996-04-23 | Abansu Techno Kk | Bobbin |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE10333932A1 (en) * | 2003-07-25 | 2005-02-24 | Robert Bosch Gmbh | Synchronization of data processing units |
| AT13701U1 (en) * | 2012-03-21 | 2014-06-15 | Bachmann Gmbh | Method for synchronizing time base and events in a branched interconnected network, e.g. in wind farm nets |
| CN108710064B (en) * | 2018-07-27 | 2024-09-24 | 四川瑞霆智汇科技有限公司 | Zero sequence active component type circuit fault indicator |
| CN116880339B (en) * | 2023-09-07 | 2023-11-28 | 北京控达科技有限公司 | Data period synchronization method and system based on double MCUs |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60214291A (en) * | 1984-04-11 | 1985-10-26 | Nec Corp | Timepiece control system |
| JPS60222915A (en) * | 1984-04-20 | 1985-11-07 | Fujitsu Ltd | Time information correction system of remote station |
-
1986
- 1986-06-20 JP JP61142780A patent/JPH0618364B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08104470A (en) * | 1994-10-05 | 1996-04-23 | Abansu Techno Kk | Bobbin |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS631126A (en) | 1988-01-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4807259A (en) | Time synchronization method in data transmission system | |
| US5491792A (en) | Sequence of events system using a redundant analog I/O board system | |
| US4860001A (en) | Remote monitoring and controlling system | |
| US6535926B1 (en) | Time synchronization system for industrial control network using global reference pulses | |
| EP0613271A2 (en) | Method and apparatus for time synchronization of bus type local area networks including hierarchical networks | |
| JPH0618364B2 (en) | Time synchronization method for data transmission system | |
| US4545029A (en) | Remote correlation of sequence of events | |
| US6831550B2 (en) | Security system using sensors | |
| JPS62272182A (en) | Time synchronizing method | |
| JPS6342920B2 (en) | ||
| WO1982001438A1 (en) | Remote supervisory control unit | |
| JP2821091B2 (en) | Remote monitoring control device and time synchronization device | |
| JP3571218B2 (en) | Synchronous operation system | |
| US7024325B2 (en) | Time calibration method for security system using sensors | |
| JPS6378697A (en) | Remote supervisory and controlling equipment | |
| JP3272013B2 (en) | Remote monitoring control device | |
| JP2868601B2 (en) | Trend history display device | |
| JP3170827B2 (en) | Polling data collection system | |
| JPH0450798B2 (en) | ||
| JP2000258568A (en) | Reference time management station, control system and time synchronization method | |
| JPS60236088A (en) | Synchronizing system of network | |
| JPH078070B2 (en) | Time synchronization method in remote monitoring device | |
| JPH06165265A (en) | Remote supervisory and controlling equipment | |
| JPH06103952B2 (en) | Remote monitoring controller | |
| JPH0728449B2 (en) | Sensor data transmission method |