JPS631126A - Time synchronizing method for data transmission system - Google Patents

Time synchronizing method for data transmission system

Info

Publication number
JPS631126A
JPS631126A JP61142780A JP14278086A JPS631126A JP S631126 A JPS631126 A JP S631126A JP 61142780 A JP61142780 A JP 61142780A JP 14278086 A JP14278086 A JP 14278086A JP S631126 A JPS631126 A JP S631126A
Authority
JP
Japan
Prior art keywords
time
clock
slave
master
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.)
Granted
Application number
JP61142780A
Other languages
Japanese (ja)
Other versions
JPH0618364B2 (en
Inventor
Takeo Yamanaka
山中 彪生
Teruhisa Masayama
正山 照久
Nobuo Terachi
寺地 信夫
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61142780A priority Critical patent/JPH0618364B2/en
Priority to DE3751571T priority patent/DE3751571T2/en
Priority to EP87107110A priority patent/EP0253096B1/en
Priority to US07/050,576 priority patent/US4807259A/en
Publication of JPS631126A publication Critical patent/JPS631126A/en
Publication of JPH0618364B2 publication Critical patent/JPH0618364B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To synchronize a data transmission system with respect to time without interrupting the operation of an operation processing circuit nor greatly burdening the circuit by gathering time data of a slave clock in accordance with the code transmission and reception operation of the system and performing correction with data of the time difference between the slave clock and a master clock. CONSTITUTION:A slave station transmits a time TS1 of the slave clock, which is read a preliminarily determined certain time ta before by the division of a frame of the code transmitted to a master station and is stored in a register, as data in the frame following said division. After storing a time TRO of the master clock at the time of reception completion of the frame in a register, the master station subtracts the total sum of a length tc of one frame of the code, the certain time ta, and a transmission delay time td from said time TRO to calculate a slave clock estimated time TS10. The difference between this estimated time TS10 and a time TS1 of the slave clock received as data from the slave station is transmitted to the slave station as time correction data. At the time of receiving this data, the slave station adds said difference to the time of the slave clock to correct the slave clock, thereby synchronizing the slave clock with the master clock.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、遠隔地点間で双方向にデータ伝送を行なう
データ伝送システムにおいて両端局に設置された時計の
時刻をデータ伝送回線を介して同期させるデータ伝送シ
ステムの時刻同期方法に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] This invention is a data transmission system that performs bidirectional data transmission between remote points, and synchronizes the time of clocks installed at both terminal stations via a data transmission line. This invention relates to a time synchronization method for a data transmission system.

〔従来の技術〕 電力系R運用の高度化に伴ない広域に亘る各電気所にお
ける保護装置や各機器の動作時刻、動作順序を正確に記
録、解析する必要性が生じたり、また計測データの収集
に際しても異なる地点のデータの収集時点が一致してい
なければならないという問題が生じてきた。
[Conventional technology] As power system R operations become more sophisticated, there is a need to accurately record and analyze the operating times and operating sequences of protective devices and equipment at each electrical station over a wide area, and to record and analyze measurement data. When collecting data, a problem has arisen in that data from different points must be collected at the same time.

これらの問題を解決する方法としては、データ伝送シス
テムの親局および各子局に時計回路を設け、保護装置や
機器の動作はこの時刻の符号と共に伝送し、また予め定
めた時刻に全子局−斉に計81すを行なって一旦計測デ
ータをメモリに収納した後、親局に伝送する方法が考え
られる。
As a method to solve these problems, a clock circuit is installed in the master station and each slave station of the data transmission system, and the operation of protection devices and equipment is transmitted along with this time code, and all slave stations are clocked at a predetermined time. - A possible method is to perform a total of 81 measurements at the same time, store the measurement data in memory, and then transmit it to the master station.

この場合に重要なことは、親局と子局の時計回路が実用
上差支えない誤差の範囲で同期がとれていることである
が、データ伝送に要する時間が上記誤差の範囲の時間を
遥かに越えるため同期の方法に特別な工夫を要する。
What is important in this case is that the clock circuits of the master and slave stations are synchronized within a practically acceptable error range, but the time required for data transmission is far greater than the time within the above error range. In order to overcome this, a special method of synchronization 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, taking into account the transmission delay time.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のデータ伝送システムの時刻同期方法は以上のよう
に行われていたので、時刻同期を実時間で行なうため動
作に猶予はなく、親局、子局の演算処理回路は他の動作
を保留して専ら時刻同期の動作を行なはなければならな
い問題点があった。
The time synchronization method of conventional data transmission systems was performed as described above, and since time synchronization is performed in real time, there is no delay in operation, and the arithmetic processing circuits of the master station and slave stations suspend other operations. However, there was a problem in that the time synchronization operation had to be carried out exclusively.

また、常時サイクリックにデータ伝送を行なうシステム
では、実時間で時刻同期信号を伝送しようとすれば、デ
ータの流れを一旦止めなければならないという問題点が
あった。
Furthermore, in a system that constantly performs cyclic data transmission, there is a problem in that the flow of data must be temporarily stopped if a time synchronization signal is to be transmitted in real time.

この発明は上記のような問題点を解消するためになされ
たもので、データ伝送システムの演算処理装置に動作の
中断や大きな負担をかけず、また常時サイクリック伝送
の場合もその流れを保ったま\親時計、子時計間の時刻
同期が行なえるデータ伝送システムの時刻同期方法を提
供することを目的とする。
This invention was made to solve the above-mentioned problems, and it does not interrupt the operation or impose a large burden on the arithmetic processing unit of the data transmission system, and also maintains the flow even in the case of constant cyclic transmission. The purpose of this invention is to provide a time synchronization method for a data transmission system that can perform time synchronization between a master clock and a child clock.

〔問題点を解決するための手段〕[Means for solving problems]

この出願の第1の発明に係るデータ伝送システムの時刻
同期方法は、親局からの時刻調査指令に応じ、子局は前
記親局に向って送信している符号のフレームの区切り目
より予め定めた一定時刻ta前に読取ってレジスタに蓄
えた子時計の時刻T5゜をその区切り目に続く前記フレ
ームの中にデータとして送信し、前記親局では該フレー
ムの受信完了時点の親時計の時刻TQ0をレジスタに蓄
えた後。
In the time synchronization method of a data transmission system according to the first invention of this application, in response to a time check command from a master station, a slave station predetermines the time from the frame break of the code being transmitted toward the master station. The time T5° of the child clock read a certain time before and stored in the register is transmitted as data in the frame following the break, and the master station transmits the time TQ0 of the master clock at the time of completion of reception of the frame. after storing it in a register.

これより符号1フレームの長さtc+前記一定時刻ta
十伝送遅れ時間tdの合計を差引いた子時計推定時刻T
5.。を算出し、これと前記子局よりデータとして到来
した前記子時計の時刻Ts工との差T5t。
From this code, the length of one frame tc + the fixed time ta
Estimated time T of the child clock by subtracting the sum of ten transmission delay times td
5. . and the difference T5t between this and the time Ts of the slave clock that arrived as data from the slave station.

−T5□を時刻修正データとして前記子局に送信し。- Send T5□ to the slave station as time correction data.

前記子局はこれを受けると前記子時計の時刻に前記差T
5□。−T51を加えて修正することにより前記子時計
を前記親時計に同期させるものである。
When the slave station receives this, it changes the time of the slave clock to the difference T.
5□. -T51 is added and corrected to synchronize the child clock with the master clock.

この出願の第2の発明に係るデータ伝送システムの時刻
同期方法は、親局からの時刻調査指令に応じ、子局は前
記親局に向って送信している符号のフレームの区切り目
より予め定めた一定時刻ta前に読取ってレジスタに蓄
えた前記子時計の時刻T5□をその区切り目に続く前記
フレームの中にデータとして送信し、前記親局では該フ
レームの受信完了時点の前記親時計の時刻T的をレジス
タに蓄えた後、前記子局からデータとして到来した前記
子時計の時刻Ts1に伝送遅れ時間td十前記子時計の
時刻読取りから符号送出迄の時間ta十符号1フレーム
の長さtcの合計を加えた子時計推定時刻Tρ。、を算
出し、これと該フレームの受信完了時点の前記親時計の
時刻TRoとの差’rr2.−’r、、1を時刻修正デ
ータとして前記子局に送信し、前記子局はこれを受ける
と前記子時計の時刻に前記差’rp、−Tρ1゜を加え
て修正することにより前記子時計を前記親時計に同期さ
せるものである。
In the time synchronization method of the data transmission system according to the second invention of this application, in response to a time check command from the master station, the slave station predetermines the timing from the frame break of the code transmitted toward the master station. The time T5□ of the child clock read and stored in a register before a certain time ta is transmitted as data in the frame following the break, and the master station transmits the time T5□ of the child clock that was read and stored in a register before a certain time ta, and the master station transmits the time T5 After the time T is stored in a register, the time Ts1 of the slave clock arrives as data from the slave station, the transmission delay time td, the time from reading the time of the slave clock to transmitting the code, ta, the length of one code frame. Child clock estimated time Tρ by adding the sum of tc. , and the difference between this and the time TRo of the master clock at the time of completion of reception of the frame is 'rr2. -'r, , 1 is sent to the slave station as time correction data, and upon receiving this, the slave station corrects the time of the slave clock by adding the difference 'rp, -Tρ1°, thereby correcting the time of the slave clock. is synchronized with the master clock.

〔作用〕[Effect]

この出願の第1.第2の発明におけるデータ伝送システ
ムの時刻同期方法は、上記のように親時計と子時計の時
刻差のデータにより子時計の修正を行なうため、修正動
作は直ちに行なう必要はなく他の動作の合間に行なうこ
とができる。
No. 1 of this application. In the time synchronization method of the data transmission system according to the second invention, as described above, since the slave clock is corrected using the data of the time difference between the master clock and the slave clock, the correction operation does not need to be performed immediately, but can be carried out between other operations. can be done.

また時刻差のデータを得るための親時計と子時計の時刻
の読み取り等は、常時行なっている符号送受信に合せて
行なってレジスタに蓄わえるようにしているので、親局
、子局共演算処理装置の負担は軽く、サイクリックにデ
ータ伝送を行なうシステムの場合にもデータ伝送の流れ
を止める必要がない。
In addition, reading the time between the master clock and slave clock to obtain time difference data is done in conjunction with the code transmission and reception that is always taking place, and is stored in a register, so both the master station and slave stations can perform calculations. The burden on the processing device is light, and there is no need to stop the flow of data transmission even in the case of a system that performs cyclic data transmission.

〔実施例〕〔Example〕

第1図はこの発明によるデータ伝送システムの時刻同期
方法をスーパーバイザアリイ・コントロール・アンド・
データ・アクウィジイション(Supervisory
 Controd And Data Acquisi
tion。
FIG. 1 shows a time synchronization method for a data transmission system according to the present invention, which is performed by a supervisory control and control system.
Data Acquisition (Supervisory)
Control And Data Acquisi
tion.

以下、5CADAという)システムの親局に設置された
親時計と各子局に設置された子時計との間の時刻同期に
実施した一例を示す図である。図において、0は5CA
DAシステムの親局、1,2゜・・・・・・は子局であ
る。親局Oにおいて、GPは各子局1,2.・・・・・
・の状態を表示する表示盤、CDは各子局1,2.・・
・・・・に制御指令を発するための制御卓、TWは動作
やデータの記録を行なうタイプライタ、CPU、は演算
処理回路、DO,は出力回路、DI。は入力回路、TC
はタイプライタ制御回路、MCは親時計、RG、1.R
G、お、・・・・・・はレジスタ、S e、t Sow
s・・・・・・は符号送信回路、Ro工。
FIG. 2 is a diagram showing an example of time synchronization between a master clock installed in a master station of a system (hereinafter referred to as 5CADA) and slave clocks installed in each slave station. In the figure, 0 is 5CA
The master station of the DA system, 1, 2°, . . . are slave stations. At the master station O, the GP is connected to each slave station 1, 2 .・・・・・・
・The display board and CD displaying the status of each slave station 1, 2.・・・
A control console is used to issue control commands to..., TW is a typewriter for recording operations and data, CPU is an arithmetic processing circuit, DO is an output circuit, and DI. is the input circuit, TC
is the typewriter control circuit, MC is the master clock, RG, 1. R
G, oh... is a register, S e, t Sow
s... is a code transmission circuit, Ro engineering.

R02,・・・・・・は符号受信回路、M6zHMo2
g・・・・・・は変調回路、D 01. D、、、・・
・・・・は復調回路である。
R02, ...... is a code receiving circuit, M6zHMo2
g... is a modulation circuit, D01. D...
... is a demodulation circuit.

また、子局1,2において、CPU、、CPU2は演算
処理回路、Dl、 D、は復調回路、Ml、 M。
In the slave stations 1 and 2, CPU, CPU2 are arithmetic processing circuits, Dl and D are demodulation circuits, and Ml and M are demodulation circuits.

は変調回路、R1,R2は符号受信回路、S工+SZは
符号送信回路、DO□、Do、は出力回路、DI、。
is a modulation circuit, R1 and R2 are code receiving circuits, S + SZ are code transmitting circuits, DO□, Do are output circuits, and DI.

DI、は入力回路、LCl、 LC2は子時計、RG、
DI is the input circuit, LCl, LC2 is the slave clock, RG,
.

RG2はレジスタである。RG2 is a register.

L xD+ Liu+ LzDy L2u”””は親局
Oと各子局1.2・・・・・・を結ぶデータ伝送路であ
る。
LxD+Liu+LzDy L2u""" is a data transmission path connecting the master station O and each slave station 1, 2, . . . .

次に第1図の動作について、親局O〜子局1間で送受信
される符号のタイムチャート図を示す第2図を用いて説
明する。
Next, the operation shown in FIG. 1 will be explained using FIG. 2, which shows a time chart of codes transmitted and received between the master station O and the slave station 1.

まず1通常の遠方監視制御及び動作記録を行なう場合に
ついて説明する。
First, a case will be described in which normal remote monitoring control and operation recording are performed.

第1図において、子局1の演算処理回路cpu1は入力
回路DI、に入力された被監視接点(保護継電器やしゃ
断器の補助接点等)の状態を走査し、その状態を記憶し
ている。そして入力接点に状態変化があれば、その接点
のアドレス番号と新しい状態を符号送信回路S1に渡す
。符号送信回路S。
In FIG. 1, the arithmetic processing circuit CPU1 of the slave station 1 scans the state of monitored contacts (auxiliary contacts of protective relays, circuit breakers, etc.) input to the input circuit DI, and stores the state. If there is a change in the state of the input contact, the address number and new state of the contact are passed to the code transmission circuit S1. Code transmission circuit S.

は常時親局Oに向って符号の送信を行なっており、演算
処理回路CP U、から上記状態変化接点のアドレス及
び断状態のデータを受けると、これをその時送信してい
る符号の次の符号フレームに乗せて親局Oに送るべく変
調回路M0に渡す。符号送信回路S1が送信する符号の
一例を第2図のS□に示す。第2図において、Dは符号
の各フレーム。
is constantly transmitting a code toward the master station O, and when it receives the address and disconnected state data of the state change contact from the arithmetic processing circuit CPU, it transmits the code next to the code it is currently transmitting. It is passed to the modulation circuit M0 to be put on a frame and sent to the master station O. An example of the code transmitted by the code transmitting circuit S1 is shown in S□ in FIG. In FIG. 2, D is each frame of the code.

Fはフレー40間の区切りを示すフラグである。F is a flag indicating a break between frames 40.

フラグFのパターンは固定であるが、フレームDは送る
内容により長さも含めて変化する。また、その内容は送
信すべきデータの他に送受信を確実にするためのコント
ロール部分や符号チエツクの部分が追加されるのが普通
である。なお、符号フォーマットの例としてはハイレベ
ル・データ・リンク・コントロール(High−Lev
el Data Link Co−ntrol、以下H
DLCという)プロスイージュアのそれがある。
The pattern of flag F is fixed, but frame D, including its length, changes depending on the content to be sent. In addition to the data to be transmitted, the contents usually include a control part and a code check part to ensure transmission and reception. An example of the code format is High-Level Data Link Control (High-Level).
el Data Link Control, hereinafter H
There is a version of Prosuigea (called DLC).

第1図に戻ると、変調回路M1は符号送信回路S。Returning to FIG. 1, the modulation circuit M1 is a code transmission circuit S.

から受けた符号を信号伝送路に適合し、雑音の影響も受
けにくい形1例えば周波数偏移(FrequencyS
hift Keying 、以下FSXという)信号に
変調して信号伝送路L 1 uを介して親局Oに伝送す
る。
The code received from
shift keying (hereinafter referred to as FSX) signal and transmits it to the master station O via the signal transmission path L 1 u.

親局0では復調回路Do、がこれを受けて直流パルスに
復調し、符号受信回路Rn1に渡す。
In the master station 0, the demodulation circuit Do receives this, demodulates it into a DC pulse, and passes it to the code reception circuit Rn1.

符号受信回路R0□に到達する符号は、第2図のRol
の如く送信符号S1と同様であるが伝送遅れ時間tdだ
け遅れている。
The code reaching the code receiving circuit R0□ is Rol in FIG.
is similar to the transmission code S1, but is delayed by the transmission delay time td.

親局Oの演算処理回路CP U、は周期的走査あるいは
符号受信回路R0,からの割込信号によりその受信内容
を読み取り、状態変化のデータが到来すれば、自己の記
憶装置の内容を更新するとともに出力回路Dooを介し
て表示盤GPの表示を変化させる。また、タイプライタ
制御回路TCを介してタイプライタTVにより状態変化
を記録する。
The arithmetic processing circuit CPU of the master station O reads the received contents through periodic scanning or an interrupt signal from the code receiving circuit R0, and updates the contents of its own storage device when state change data arrives. At the same time, the display on the display panel GP is changed via the output circuit Doo. In addition, the typewriter TV records state changes via the typewriter control circuit TC.

親局Oの演算処理回路CPU、は入力回路DI。The arithmetic processing circuit CPU of the master station O is an input circuit DI.

を介して制御卓CDからの入力も走査しており、子局1
の機器に対する選択、制御の指令があると該当機器アド
レス、制御すべき状態(入切等)を符号化して符号送信
回路S etに与える。符号送信回路S。、は第2図の
SOIに示す符号を送信しており、その1フレームにこ
れを乗せて変調回路M(11、伝送路L I D、復調
回路D1を介して子局1の符号受信回路R1に伝送する
。演算処理回路CPU1は周期的走査または符号受信回
路R1がらの割込信号によりその受信内容を読取り、符
号チエツク及び復号化を行ない出力回路Do□を介して
割当機器に制御指令を与える。
The input from the control console CD is also scanned through the slave station 1.
When there is a command to select or control a device, the corresponding device address and the state to be controlled (on/off, etc.) are encoded and sent to the code transmission circuit Set. Code transmission circuit S. , transmits the code shown in the SOI in FIG. 2, and transmits the code shown in the SOI in FIG. The arithmetic processing circuit CPU1 reads the received contents through periodic scanning or an interrupt signal from the code receiving circuit R1, performs a code check and decoding, and gives a control command to the assigned device via the output circuit Do□. .

以上の動作は、子局2についても全く同様なので説明は
省略する。また、図示していない子局3以下についても
同様の追加構成を行ない、全く同様の動作を行なわせる
ことができる。
The above operation is exactly the same for the slave station 2, so a description thereof will be omitted. Moreover, the same additional configuration can be applied to slave stations 3 and below (not shown), so that they can perform exactly the same operation.

以上は通常の遠方監視制御及び動作記録の動作であるが
、親局Oで動作記録を行なう場合、上記通常動作では各
子局1,2.・・・・・・がら状態変化が発生した時刻
のデータが来ないため親局0の演算処理回路CPU、が
確認した順序に親時計MCの時刻をつけて記録する以外
に方法はないが、電力系統のように保護装置や機器の動
作がデータ伝送装置の符号伝送所要時間に比べて遥かに
速い場合にはデータが親局0に到達した時点では動作順
序の正確な判別はつかなくなっている。
The above is the normal operation of remote monitoring control and operation recording, but when the operation is recorded at the master station O, in the above normal operation, each slave station 1, 2... However, since the data of the time when the state change occurred is not received, there is no other way than to record the time of the master clock MC in the order confirmed by the arithmetic processing circuit CPU of the master station 0. In cases where the operation of protection devices and equipment is much faster than the time required for code transmission of data transmission equipment, such as in power systems, it is no longer possible to accurately determine the order of operation by the time the data reaches master station 0. .

これを解決するために、各子局1,2.・・・・・・に
子時計LC□、、LC,,・・・・・・を設け、これを
親時計MCと同期させておき、状態変化が発生した場合
には子時計LC1,LC,,・・・・・・の時刻も合せ
て親局Oへ伝送する。即ち、先に説明した子局1の入力
回路DI、に入力されている接点に状態変化があった場
合、演算処理回路CPU工は該当接点のアドレス番号、
断状態と共に子時計LC,の時刻も合せて親局0へ伝送
すれば、親局0の演算処理回路CPU、は自己の記憶装
置に一旦これを蓄え、一定時開催子局からのデータも集
めた上で付加された時刻順に整理しタイプライタ制御回
路TCを介してタイプライタTVで打出せば、操作員は
正しい動作時刻とその順序を知ることが出来る。
In order to solve this problem, each slave station 1, 2. ...... are provided with child clocks LC□,, LC,, ..., synchronized with the master clock MC, and when a state change occurs, child clocks LC1, LC,... , . . . are also transmitted to the master station O. That is, when there is a change in the state of the contact input to the input circuit DI of the slave station 1 described above, the arithmetic processing circuit CPU will input the address number of the corresponding contact,
If the disconnected state and the time of the slave clock LC are transmitted to the master station 0, the arithmetic processing circuit CPU of the master station 0 temporarily stores this in its own storage device, and also collects data from the slave stations at certain times. By arranging the information in the order of added times and printing it out on the typewriter TV via the typewriter control circuit TC, the operator can know the correct operation time and sequence.

この場合、親局Oの親時計MCと各子局1,2゜・・・
・・・の子時計LC,,LC2,・・・・・・がかなり
な精度(例えば数ミリ秒以内)で同期している必要があ
るがこの同期をとる動作について以下に説明する。
In this case, the master clock MC of the master station O and each slave station 1, 2°...
It is necessary that the child clocks LC, LC2, .

親局0の演算処理回路CPU0は一定時間(子時計の精
度により1時間〜1日)に1回、各子時計LC,,LC
,,・・・・・・の時刻をチエツクするための時刻調査
指令を各符号送信回路S。ITS1121・・・・・・
を介して各子局1,2.・・・・・・に発する。
The arithmetic processing circuit CPU0 of the master station 0 checks each child clock LC,, LC once every certain period of time (1 hour to 1 day depending on the accuracy of the child clock).
, . ITS1121・・・・・・
Each slave station 1, 2 . Emit to...

子局1について説明すると、まず通常の動作として符号
送信回路S、は符号フレーム送信開始より予め定めた一
定時間ta前にレジスタRG、に信号を与え、レジスタ
RG1はこの信号が到来した時点の子時計LC□の時刻
を読込んでこれを蓄える動作を繰返し行なっている。親
局0の演算処理回路CPU、が時刻調査指令を出すと符
号送信回路S。1は変調回路M。1、伝送路L I D
、復調回路D1を介して子局1の符号受信回路R□に伝
送する。
To explain about the slave station 1, first, as a normal operation, the code transmitting circuit S gives a signal to the register RG a predetermined time ta before the start of code frame transmission, and the register RG1 outputs a signal to the slave station at the time when this signal arrives. The operation of reading the time of the clock LC□ and storing it is repeated. When the arithmetic processing circuit CPU of the master station 0 issues a time check command, the code transmission circuit S. 1 is a modulation circuit M. 1. Transmission line LID
, and is transmitted to the code receiving circuit R□ of the slave station 1 via the demodulating circuit D1.

この動作は第2図のタイムチャート図でD(TIQ)と
して示されている。
This operation is shown as D(TIQ) in the time chart diagram of FIG.

子局1の演算処理回路CPU□は符号受信回路R1が時
刻調査指令D(TIQ)を受けると、次の符号フレーム
にレジスタRG、に蓄ゎえられたデータを乗せるが、レ
ジスタRG工のデータは第2図の81の上部に示した如
く次のフレームよりtaだけ前(この例では前のフレー
ムの送信完了時点)の子時計LC□の時刻が入っており
、これをT5□とすれば次のフレームD (TAS)に
はこのr5iが子時計LC工の時刻データとして符号送
信回路S1、変調回路M0.伝送路Ltu、復調回路D
01を介して親局0の符号受信回路R111に伝送する
When the code receiving circuit R1 receives the time check command D (TIQ), the arithmetic processing circuit CPU□ of the slave station 1 places the data stored in the register RG on the next code frame, but the data in the register RG is As shown in the upper part of 81 in Fig. 2, contains the time of the child clock LC□ which is ta before the next frame (in this example, the time when the transmission of the previous frame is completed), and if this is T5□, then In the next frame D (TAS), this r5i is used as the time data of the child clock LC in the code transmission circuit S1, the modulation circuit M0. Transmission line Ltu, demodulation circuit D
01 to the code receiving circuit R111 of master station 0.

符号受信回路R01に到来する符号は、第2図のRo、
の如く送信符号S1と同じで伝送遅れ時間tdだけ遅れ
たものである。符号受信回路R6、は子時計LC1の時
刻データが乗ったフレームの受信を完了すると、その時
点の親時計MCの時刻TRoをレジスタRG、1に読込
んで蓄える。
The code arriving at the code receiving circuit R01 is Ro in FIG.
This is the same as the transmission code S1, but delayed by the transmission delay time td. When the code receiving circuit R6 completes receiving the frame carrying the time data of the child clock LC1, it reads the current time TRo of the master clock MC into the register RG,1 and stores it.

演算処理回路CP U、は上記レジスタRG、□に入っ
た時刻データT9゜を読出し、これより、予め分ってい
る符号1フレームの長さtc+前述の子時計時刻読取り
から符号送出迄の時間ta+伝送遅れ時間tdの合計を
差引いて子時計推定時刻T5工。を出し、それと子局1
よりD(TAS)のフレームにより到来した子時計時刻
Ts1との差T5□。−Ts□を取ると、これが親時計
Oと子時計1との時刻差となるのでこれを自己の記憶装
置に蓄える。
The arithmetic processing circuit CPU reads the time data T9° entered in the register RG, □, and calculates the length of one code frame known in advance tc + the time ta from the time reading of the slave clock to the sending of the code described above. The child clock estimated time T5 is obtained by subtracting the total transmission delay time td. and slave station 1.
The difference T5□ with the child clock time Ts1 that arrived with the frame D(TAS). If -Ts□ is taken, this becomes the time difference between the master clock O and the slave clock 1, so it is stored in its own storage device.

次に、演算処理回路CPU、は上記時刻差を子時計修正
データとして符号送信回路Sつい変調回路M。い伝送路
L x D、復調回路り、を介して子局1の符号受信回
路R1に伝送する。この動作のタイムチャートは第2図
のD (TAJ)で示されている。
Next, the arithmetic processing circuit CPU sends the code transmission circuit S and modulation circuit M using the time difference as slave clock correction data. The signal is transmitted to the code receiving circuit R1 of the slave station 1 via a transmission path L x D and a demodulation circuit. A time chart of this operation is shown by D (TAJ) in FIG.

子局1の演算処理回路cpu、は符号受信回路R□が時
刻修正データD (TAJ)を受けると、子時計LC1
の時刻を読出し、これに時刻修正データを加算(符号も
含めて)し、その時刻に子時刻LC,の時刻を設定する
When the code receiving circuit R□ receives the time correction data D (TAJ), the arithmetic processing circuit CPU of the slave station 1 changes the slave clock LC1.
The time of the child time LC is read out, the time correction data is added to it (including the sign), and the time of the child time LC is set to that time.

これにより子時計LC1の時刻は親時計MCの時刻に同
期される。
As a result, the time of the child clock LC1 is synchronized with the time of the master clock MC.

子局2以下の子時計LC,・・・・・・につぃても全く
同様の動作により時刻同期を行なうことが出来る。
The time synchronization can be performed for the slave clocks LC, .

時刻修正データは、親局0の演算処理回路cpu、が上
記とは逆に子局1より到来した子時計LC1の時刻Ts
1に伝送遅れ時間td十壬子時計時刻読取りから符号送
出迄の時間ta十符号1フレームの長さtcの合計を加
えた子時計推定時刻’rp1.と子時計時刻T51を乗
せて到来した符号フレームの受信完了時点の親時計0の
時刻TOaとの差TQt。−TQaとして得ることも出
来る。
Contrary to the above, the time correction data is sent to the arithmetic processing circuit CPU of the master station 0 based on the time Ts of the slave clock LC1 that has arrived from the slave station 1.
The child clock estimated time 'rp1. The difference TQt between the time TOa of the master clock 0 and the time TOa of the master clock 0 at the time of completion of reception of the code frame that arrived with the child clock time T51. - It can also be obtained as TQa.

この発明による時刻同期方法は、常時符号を送出してい
るデータ伝送システムに適用することが呂来るので実施
例にもその方式を挙げているが、他の符号方式、例えば
常時符号の送出は行なわず親局からのポーリング(Po
lling)に応じて各子局が符号送出を行なう方式等
にも適用できることは勿論である。
Since the time synchronization method according to the present invention can be applied to a data transmission system that constantly transmits codes, that system is also listed in the embodiment, but other encoding systems, such as constantly transmitting codes, are not applicable. Polling from the master station (Po
It goes without saying that the present invention can also be applied to a system in which each slave station transmits a code in accordance with the timing (Illing).

実施例の構成においても、例えば親局OのレジスタRG
、1. RGa、、・・・・・・は実施例のように個別
に設ければ各子局の子時計の時刻修正動作を並行して行
なえるが、1局ずつ順次行なうことにすれば1個の共用
レジスタを順次使用して行なえる等色々な構成が出来る
こともまた勿論である。
Also in the configuration of the embodiment, for example, the register RG of the master station O
, 1. If RGa, . Of course, various configurations can be made, such as by sequentially using shared registers.

なお、親局と各子局との間の伝送遅れ時間tdはデータ
伝送システムを設置した時に変復調回路の折返し試験、
例えば、第1図において親局0の変調回路M。い復調回
路り。1及び子局1の変調回路M1、復調回路D工を内
部回路から切離し、子局1において復調回路D□の出力
を変調回路M□に接続し、親局Oの変調回路M。iの入
力符号の変化が復調回路り。1の出力に現われる迄の時
間遅れを測定しこれを2で割る等により測定し、親局0
の演算処理回路CPU0の記憶装置にデータとして苓わ
えておけばよい。
In addition, the transmission delay time td between the master station and each slave station is determined by the loopback test of the modulation/demodulation circuit when the data transmission system is installed.
For example, in FIG. 1, the modulation circuit M of the master station 0. A demodulation circuit. The modulation circuit M1 and the demodulation circuit D of the slave station 1 and the slave station 1 are separated from the internal circuit, and the output of the demodulation circuit D□ is connected to the modulation circuit M□ of the slave station 1, and the modulation circuit M of the master station O is connected. The change in the input sign of i is the demodulation circuit. Measure the time delay until it appears on the output of 1, divide this by 2, etc., and then
It is sufficient to store it as data in the storage device of the arithmetic processing circuit CPU0.

また時刻修正動作は毎回時刻の全ての桁(時、分、秒、
ミリセカンド)について行なう必要は必らずしもなく、
装置起動時あるいは長時間周期で秒迄の修正(あるいは
絶対時刻を伝送して子時計の時刻設定)を行ない、1時
間に1度ミリセカンドの修正をすることにして子時計時
刻やその修正データのビット長を減することを可能であ
る。
In addition, the time adjustment operation is performed every time when all digits of the time (hours, minutes, seconds,
milliseconds).
The time of the child clock and its correction data are corrected to the second when the device is started or at long intervals (or the time of the child clock is set by transmitting the absolute time), and the time is corrected to the millisecond once every hour. It is possible to reduce the bit length of

〔発明の効果〕〔Effect of the invention〕

以上のようにこの出願の第1.第2の発明によれば、デ
ータ伝送システムの符号送受信動作に合せる子時計の時
刻データを収集し、また修正動作も絶対時刻によらず親
時計との時刻差のデータにより修正を行なうようにした
ので、データ伝送システムの演算処理回路に動作の中断
や大きな負担をかけず、また常時サイクリック伝送の場
合もその流れを保ったま\時刻周期が行なえる効果があ
る。
As mentioned above, the first part of this application. According to the second invention, the time data of the slave clock is collected in accordance with the code transmission/reception operation of the data transmission system, and the adjustment operation is not based on absolute time but is performed using data on the time difference with the master clock. Therefore, there is an effect that there is no interruption of operation or a large burden on the arithmetic processing circuit of the data transmission system, and even in the case of constant cyclic transmission, the time cycle can be performed while maintaining the flow.

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

第1図は本発明によるデータ伝送システムの時刻同期方
法を5CADAシステムにおいて実例した一例を示すブ
ロック図、第2図は第1図の親局0と子局1との間で送
受信される符号の一例を示す説明図である。 0は親局、1,2.・・・・・・は子局、CPU、は演
算処理回路、MCは親時計、RG、、、RG、、、−・
・・・・はレジスタ+ Snl+ 5oal・・・・・
・は符号送信回路、R,1,Ro、、・・・・・・は符
号受信回路、CPU、。 CP U2.・・・・・・は演算処理回路、LC□、L
C2゜・・・・・・は子時計、RGl、RG2.・・・
・・・はレジスタ、R1,R2,・・・・・・は符号受
信回路、S□、S2.・・・・・・は符号送信回路、L
 icy Lzut Lift Lzut ”””は親
局0と子局1,2.・・・・・・を結ぶ伝送路。 特許出願人  三菱電機株式会社 o         −−〇 の      ご        の      γ手
続補正書(自発)
FIG. 1 is a block diagram showing an example of the time synchronization method of the data transmission system according to the present invention in a 5CADA system, and FIG. 2 shows the code transmitted and received between the master station 0 and slave station 1 in FIG. It is an explanatory diagram showing an example. 0 is the master station, 1, 2. ...... is a slave station, CPU is an arithmetic processing circuit, MC is a master clock, RG, , RG, ,, -.
... is register + Snl + 5oal...
・ is a code transmitting circuit, R, 1, Ro, . . . is a code receiving circuit, CPU. CPU U2. ...... is an arithmetic processing circuit, LC□, L
C2゜... is a child clock, RGl, RG2. ...
. . . are registers, R1, R2, . . . are code receiving circuits, S□, S2 . ... is a code transmitting circuit, L
icy Lzut Lift Lzut """ is a transmission line connecting master station 0 and slave stations 1, 2, etc. Patent applicant Mitsubishi Electric Corporation O -- 〇's γ procedure amendment (voluntary)

Claims (2)

【特許請求の範囲】[Claims] (1)親局と子局の間で双方向にデータ伝送を行なうデ
ータ伝送システムの時刻同期方法において、前記子局に
設置された子時計を前記親局に設置された親時計と時刻
的に同期させるに際し、前記子局は前記親局からの子時
計時刻調査指令に応じ、前記親局へ向って送信している
符号のフレームの区切り目より予め定めた一定時刻(t
a)前に読取ってレジスタに蓄えた前記子時計の時刻(
T_S_1)をその区切り目に続く前記フレームの中に
データとして送信し、前記親局では該フレームの受信完
了時点の前記親時計の時刻(T_R_0)をレジスタに
蓄わえた後、これより符号1フレームの長さ(tc)+
前記一定時刻(ta)+伝送遅れ時間(td)の合計を
差引いた子時計推定時刻(T_S_1_0)を算出し、
これと前記子局よりデータとして到来した前記子時計の
時刻(T_S_1)との差(T_S_1_0−T_S_
2)を時刻修正データとして前記子局に送信し、前記子
局はこれを受けると前記子時計の時刻に前記差(T_S
_1_0−T_S_1)を加えて修正することにより前
記子時計を前記親時計に同期させることを特徴とするデ
ータ伝送システムの時刻同期方法。
(1) In a time synchronization method for a data transmission system that performs bidirectional data transmission between a master station and a slave station, a slave clock installed in the slave station is time-synchronized with a master clock installed in the master station. When synchronizing, the slave station responds to a slave clock time check command from the master station and starts at a predetermined time (t) from the frame break of the code being transmitted to the master station.
a) The time of the child clock previously read and stored in the register (
T_S_1) is transmitted as data in the frame following the break, and the master station stores the time (T_R_0) of the master clock at the time of completion of reception of the frame in a register, and from now on, one code frame is transmitted. length (tc) +
Calculate the child clock estimated time (T_S_1_0) by subtracting the sum of the fixed time (ta) + transmission delay time (td),
The difference (T_S_1_0 - T_S_
2) as time correction data to the slave station, and upon receiving this, the slave station adjusts the time of the slave clock to the difference (T_S
_1_0−T_S_1) to synchronize the child clock with the master clock.
(2)親局と子局の間で双方向にデータ伝送を行なうデ
ータ伝送システムの時刻同期方法において、前記子局に
設置された子時計を前記親局に設置された親時計と時刻
的に同期させるに際し、前記子局は前記親局からの子時
計時刻調査指令に応じ、前記親局へ向って送信している
符号のフレームの区切り目より予め定めた一定時刻(t
a)前に読取ってレジスタに蓄えた前記子時計の時刻(
T_S_1)をその区切り目に続く前記フレームの中に
データとして送信し、前記親局では該フレームの受信完
了時点の前記親時計の時刻(T_R_0)をレジスタに
蓄えた後、前記子局からデータとして到来した前記子時
計の時刻(T_S_1)に伝送遅れ時間(td)+前記
子時計の時刻読取りから符号送出迄の時間(ta)+符
号1フレームの長さ(tc)の合計を加えた子時計推定
時刻(T_R_1_0)を算出し、これと該フレームの
受信完了時点の前記親時計の時刻(T_R_0)との差
(T_R_0−T_R_0_1)を時刻修正データとし
て前記子局に送信し、前記子局はこれを受けると前記子
時計の時刻に前記差(T_R_0−T_R_0_1)を
加えて修正することにより前記子時計を前記親時計に同
期させることを特徴とするデータ伝送システムの時刻同
期方法。
(2) In a time synchronization method for a data transmission system that performs bidirectional data transmission between a master station and a slave station, a slave clock installed in the slave station is time-synchronized with a master clock installed in the master station. When synchronizing, the slave station responds to a slave clock time check command from the master station and starts at a predetermined time (t) from the frame break of the code being transmitted to the master station.
a) The time of the child clock previously read and stored in the register (
T_S_1) is transmitted as data in the frame following the break, and the master station stores the time (T_R_0) of the master clock at the time of completion of reception of the frame in a register, and then transmits it as data from the slave station. A child clock that is the sum of the arrived time (T_S_1) of the child clock, transmission delay time (td) + time from time reading of the child clock to code transmission (ta) + length of one code frame (tc). The estimated time (T_R_1_0) is calculated, and the difference (T_R_0-T_R_0_1) between this and the time (T_R_0) of the master clock at the time of completion of reception of the frame is transmitted to the slave station as time correction data, and the slave station A time synchronization method for a data transmission system, characterized in that upon receiving this, the slave clock is synchronized with the master clock by correcting the time of the slave clock by adding the difference (T_R_0-T_R_0_1).
JP61142780A 1986-05-20 1986-06-20 Time synchronization method for data transmission system Expired - Lifetime JPH0618364B2 (en)

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 true JPS631126A (en) 1988-01-06
JPH0618364B2 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005045813A (en) * 2003-07-25 2005-02-17 Robert Bosch Gmbh Synchronization method of data processing unit
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
CN116880339A (en) * 2023-09-07 2023-10-13 北京控达科技有限公司 Data period synchronization method and system based on double MCUs

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08104470A (en) * 1994-10-05 1996-04-23 Abansu Techno Kk Bobbin
JP6891512B2 (en) * 2017-01-26 2021-06-18 富士フイルムビジネスイノベーション株式会社 Information processing equipment and communication system

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005045813A (en) * 2003-07-25 2005-02-17 Robert Bosch Gmbh Synchronization method of data processing unit
JP4550505B2 (en) * 2003-07-25 2010-09-22 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Data processing unit synchronization method
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
CN116880339A (en) * 2023-09-07 2023-10-13 北京控达科技有限公司 Data period synchronization method and system based on double MCUs
CN116880339B (en) * 2023-09-07 2023-11-28 北京控达科技有限公司 Data period synchronization method and system based on double MCUs

Also Published As

Publication number Publication date
JPH0618364B2 (en) 1994-03-09

Similar Documents

Publication Publication Date Title
EP0253096B1 (en) Time synchronization method in a data transmission system
JPS63213099A (en) Remotely monitoring control system
JPH08256161A (en) Time information synchronizing system for network
JPS631126A (en) Time synchronizing method for data transmission system
JPS62272182A (en) Time synchronizing method
JPH10191473A (en) Monitor control system
JPH05167589A (en) Time control system for lan
JPS6378697A (en) Remote supervisory and controlling equipment
EP0946003A2 (en) Method for determining propagation delays and method for detecting processor-clock drift in a communications system
JPH05161181A (en) Time synchronization system
JP2821091B2 (en) Remote monitoring control device and time synchronization device
JP3218690B2 (en) Time synchronization method for data transmission system
JPH04183131A (en) Line changeover method
GB2353450A (en) Determining clock drift and propagation delays in a communication system
JPH078070B2 (en) Time synchronization method in remote monitoring device
JPS59181742A (en) Checking device of synchronizing circuit for synchronizing type communicating system
JPH08122467A (en) Time transmission equipment
JPH04121691A (en) Remote time setting method
JPS6051999A (en) Alarm testing system
JPS58114540A (en) Guarantee system of received telegraphic message in duplicated reception system
JPH1065638A (en) Intermediate repeating device and its warning transfer method
JPH04115741A (en) Line monitor equipment
JPH06165265A (en) Remote supervisory and controlling equipment
JPH0385081A (en) Synchronizing picture transmitter
JPH04253212A (en) Remote time setting system