JPH1139265A - Method for processing time synchronization - Google Patents

Method for processing time synchronization

Info

Publication number
JPH1139265A
JPH1139265A JP9190879A JP19087997A JPH1139265A JP H1139265 A JPH1139265 A JP H1139265A JP 9190879 A JP9190879 A JP 9190879A JP 19087997 A JP19087997 A JP 19087997A JP H1139265 A JPH1139265 A JP H1139265A
Authority
JP
Japan
Prior art keywords
time
time synchronization
slave station
station device
end processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9190879A
Other languages
Japanese (ja)
Inventor
Takeshi Tsuruta
武 鶴田
Haruo Suzuki
晴雄 鈴木
Masahiro Suzuki
正博 鈴木
Fumitake Itou
史剛 伊藤
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP9190879A priority Critical patent/JPH1139265A/en
Publication of JPH1139265A publication Critical patent/JPH1139265A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method for processing time synchronization by which the occurrence of errors at the level of milliseconds in a slave device can be eliminated even when time synchronization is made by using time data of the level of seconds. SOLUTION: At the time of executing time synchronization processing, an FEP(front-end processor) reads the time of its built-in clock (S1) and, when the milliseconds of the built-in clock deviates from a tolerance, enters a waiting process until the next correct second comes (S2 and S3). When the correct second comes when the tolerance is met at the next time reading time, the FEP makes time correction by incrementing the seconds of the time by one second (S4 and S5), sets time data (S6), and transmits a time correcting requests to a slave device (S7).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、遠方監視制御シス
テムにおける時刻同期処理方法に係り、特にフロントエ
ンドプロセッサと子局装置との間の時刻同期処理方法に
関する。
The present invention relates to a time synchronization processing method in a remote monitoring control system, and more particularly to a time synchronization processing method between a front end processor and a slave station device.

【0002】[0002]

【従来の技術】遠方監視制御システムでは、ネットワー
ク接続される親局やホストコンピュータになる上位系装
置と多数の子局装置間の監視情報と制御情報の伝送によ
り子局側の現場機器を監視制御する。この監視制御にお
いて、上位系装置と子局側にそれぞれ持つ内部時計の時
刻にずれがあると状態変化発生時刻や制御時刻のずれに
なるため、システム内の装置間の時刻同期処理が行われ
る。
2. Description of the Related Art In a remote monitoring and control system, field devices on the slave station side are monitored and controlled by transmitting monitoring information and control information between a host system and a plurality of slave stations, which are master stations and host computers connected to a network. . In this monitoring control, if there is a time difference between the internal clocks of the higher-level apparatus and the slave station, the state change occurrence time and the control time will be different. Therefore, time synchronization processing between the apparatuses in the system is performed.

【0003】この時刻同期処理は、上位系装置の内部時
計を標準時刻とし、上位系装置から各子局への一斉同報
やポーリング方法で各子局への時計情報を伝送し、各子
局側で内部時計を必要に応じて時刻修正を行う。
In this time synchronization process, the internal clock of the higher-level device is set to the standard time, clock information is transmitted from the higher-level device to each slave station by simultaneous broadcast or polling, and each slave station is transmitted. Side adjusts the internal clock as needed.

【0004】ここで、子局側は、図3に示すように、上
位系装置からの時刻同期Aがフロントエンドプロセッサ
(FEP)1に対して行われ、FEP1が時刻同期要求
のタイミングにて自装置の時刻同期を行い、その後にF
EP1の内部時計を使用して子局装置2に時刻同期Bを
行う。FEP1から子局装置2へ送る時刻データは、
「日、時、分、秒」である。
Here, as shown in FIG. 3, the slave station performs time synchronization A from the higher-level device to the front-end processor (FEP) 1, and the FEP 1 automatically executes the time synchronization at the timing of the time synchronization request. Synchronize the time of the device, and then
Time synchronization B is performed on the slave station device 2 using the internal clock of EP1. The time data sent from the FEP 1 to the slave station device 2 is
"Day, hour, minute, second".

【0005】[0005]

【発明が解決しようとする課題】従来の遠方監視制御シ
ステムにおいて、状態変化発生履歴の時刻には、10ミ
リ秒単位で保存されるため、子局装置における時間の管
理は非常に重要となる。従来の時刻同期処理に使用して
いる時刻データは「日、時、分、秒」を用いて行ってお
り、子局装置では時刻同期を受けたときに内部時計を設
定するのに、「秒」以下のデータを「0」として時刻修
正する。
In the conventional remote monitoring control system, the time of the state change occurrence history is stored in units of 10 milliseconds, so that time management in the slave station device is very important. The time data used in the conventional time synchronization processing is performed using "day, hour, minute, second". Time is corrected by setting the following data as “0”.

【0006】このように、FEP1から子局装置2への
時刻データが「秒」までしかないため、FEP1が時刻
同期のタイミングを意識的に計らない限り、「秒」以下
の時刻に誤差を生じさせてしまう。
As described above, since the time data from the FEP 1 to the slave station device 2 is only up to “second”, an error occurs in the time below “second” unless the FEP 1 consciously measures the timing of time synchronization. Let me do it.

【0007】例えば、図4に示すように、FEP1の内
部時計が「××日、15時、40分、24秒’000」
に時刻同期を受け、この後に時刻「××日、15時、4
0分、24秒’350」に子局装置2に対して時刻同期
を行うと、子局装置では「秒」以下を「0」にした時刻
「××日、15時、40分、24秒’000」と修正し
てしまう。このとき、子局装置2では、「350ミリ
秒」の誤差を発生してしまう。
For example, as shown in FIG. 4, the internal clock of FEP1 is "xx day, 15:00, 40 minutes, 24 seconds'000".
Time synchronization, and then the time "xx day, 15:00, 4
When the time is synchronized with the slave station device 2 at 0 minutes and 24 seconds '350', the slave station device sets the time “xx”, 15:00, 40 minutes, 24 seconds at “0” after “second”. '000'. At this time, in the slave station device 2, an error of "350 milliseconds" occurs.

【0008】本発明の目的は、「秒」単位の時刻データ
による時刻同期にも子局装置での「ミリ秒」範囲の誤差
発生を無くした時刻同期処理方法を提供することにあ
る。
It is an object of the present invention to provide a time synchronization processing method which eliminates the occurrence of an error in the "millisecond" range in the slave station even in time synchronization using time data in "second" units.

【0009】[0009]

【課題を解決するための手段】本発明は、FEPから子
局装置への時刻同期処理には、FEPがその内部時計の
正秒から許容誤差範囲内のタイミングで行うウエイト処
理を行い、さらに誤差が進みの場合には「秒」を+1す
ることにより、常に正秒から許容誤差範囲内にした時刻
同期処理ができるようにしたもので、以下の方法を特徴
とする。
According to the present invention, in the time synchronization process from the FEP to the slave station device, the FEP performs a wait process performed at a timing within a permissible error range from the second of the internal clock of the FEP. In the case where is advanced, "seconds" is incremented by 1 so that the time synchronization processing can always be performed within a permissible error range from the correct second, and is characterized by the following method.

【0010】遠方監視制御システムの上位系装置から子
局側のフロント・エンド・プロセッサに時刻データを送
信し、該フロント・エンド・プロセッサがその内部時計
の時刻同期処理を行うと共に子局装置に対して秒単位の
時刻データを与えて子局装置の時刻同期処理を行う時刻
同期処理方法において、前記フロント・エンド・プロセ
ッサは、その内部時計のミリ秒が0になる正秒から許容
誤差範囲内になるタイミングまでウエイト処理し、該許
容誤差が正秒に対して進みの場合には時刻データの
「秒」を+1して前記子局装置に対する時刻同期処理を
行うことを特徴とする。
[0010] Time data is transmitted from a higher-level device of the remote monitoring control system to a front-end processor on the slave station side, and the front-end processor performs time synchronization processing of its internal clock and transmits the time data to the slave station device. In the time synchronization processing method of performing time synchronization processing of the slave station device by giving time data in units of seconds, the front-end processor may be configured such that the millisecond of its internal clock is within a permissible error range from a second which becomes zero. Wait processing is performed until a certain timing, and when the permissible error is ahead of the second, the time synchronization processing for the slave station device is performed by adding +1 to the "second" of the time data.

【0011】[0011]

【発明の実施の形態】図1は、本発明の実施形態を示す
FEPから子局装置への時刻同期処理手順である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a time synchronization processing procedure from an FEP to a slave station according to an embodiment of the present invention.

【0012】FEP1は、時刻同期処理の実行に際し
て、その内部時計の時刻を読み込み(S1)、内部時計
の「ミリ秒」を参照し、この「ミリ秒」が許容範囲内
(例えば±50ミリ秒)を外れているか否かをチェック
する(S2)。許容範囲を外れているときには次の正秒
(ミリ秒が0)までウエイト処理に入る(S3)。
When executing the time synchronization process, the FEP 1 reads the time of the internal clock (S1) and refers to the "millisecond" of the internal clock, and the "millisecond" is within an allowable range (for example, ± 50 milliseconds). ) Is checked (S2). When the value is out of the allowable range, the wait process is started until the next right second (millisecond is 0) (S3).

【0013】このウエイト処理による次回の時刻読み取
りで許容範囲内になるとき、この誤差が正秒に対して進
みか否かをチェックし(S4)、進みの場合には時刻の
「秒」を+1した時刻補正をし(S5)、時刻データを
設定する(S6)。遅れの場合には時刻を補正すること
なく時刻データを設定する(S6)。この後、子局装置
に対して、時刻データと共に時刻修正の要求を送信する
(S7)。
When the next time reading by the wait processing falls within the allowable range, it is checked whether or not this error advances with respect to the second (S4). The time is corrected (S5), and time data is set (S6). In the case of a delay, the time data is set without correcting the time (S6). Thereafter, a time correction request is transmitted to the slave station device together with the time data (S7).

【0014】本実施形態による時刻同期の例を図2に示
す。同図の(a)に示すように、時刻「××日、15
時、40分、24秒’350」に時刻同期処理を実行し
ようとするが、現在時刻が正秒に対して許容範囲外にな
るため、次の正秒時刻「××日、15時、40分、25
秒’000」までウエイト処理で待ち、正秒時刻で子局
装置の内部時計を修正する。
FIG. 2 shows an example of time synchronization according to this embodiment. As shown in (a) of FIG.
Attempts to execute the time synchronization process at "hour, 40 minutes, 24 seconds'350", but since the current time is out of the allowable range with respect to the second, the next time of the second "xx day, 15:00, 40" Min, 25
Wait for the second '000' in the wait process, and correct the internal clock of the slave station device at the second of the second.

【0015】また、同図の(b)に示すように、許容誤
差範囲内で正秒に対する誤差が進みの場合には時刻デー
タの「秒」を+1した時刻「××日、15時、40分、
21秒’000」にし、誤差が遅れの場合には時刻「×
×日、15時、40分、21秒’000」のままにし、
子局装置の時刻修正を行う。
As shown in FIG. 2B, when the error with respect to the second is advanced within the allowable error range, the time obtained by adding "second" of the time data to the time "xx day, 15:00, 40 Minutes,
21 seconds '000', and if the error is late, the time "×
× Day, 15:00, 40 minutes, 21 seconds '000'
The time of the slave station device is adjusted.

【0016】[0016]

【発明の効果】以上のとおり、本発明によれば、FEP
がその内部時計の正秒から許容誤差範囲内のタイミング
で行うウエイト処理を行い、さらに誤差が進みの場合に
は「秒」を+1するようにしたため、「秒」単位の時刻
データによる時刻同期にも子局装置での「ミリ秒」範囲
の誤差発生を無くし、常に正秒から許容誤差範囲内にし
た時刻同期処理ができる効果がある。
As described above, according to the present invention, the FEP
Performs a wait process performed at a timing within the allowable error range from the second of the internal clock, and further increases the "second" when the error advances, so that time synchronization using time data in "second" units This also has the effect of eliminating the occurrence of an error in the "millisecond" range in the slave station device, and enabling the time synchronization process to always be within the allowable error range from the second.

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

【図1】本発明の実施形態を示す同期処理手順。FIG. 1 shows a synchronization processing procedure according to an embodiment of the present invention.

【図2】実施形態における時刻同期タイムチャート。FIG. 2 is a time synchronization time chart in the embodiment.

【図3】遠方監視制御システムの子局側の時刻同期処理
方法。
FIG. 3 is a time synchronization processing method on the slave station side of the remote monitoring control system.

【図4】従来の時刻同期処理方法。FIG. 4 shows a conventional time synchronization processing method.

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

1…フロント・エンド・プロセッサ(FEP) 2…子局装置 1. Front end processor (FEP) 2. Slave station device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 伊藤 史剛 東京都品川区大崎2丁目1番17号 株式会 社明電舎内 ────────────────────────────────────────────────── ─── Continuing from the front page (72) Inventor Fumio Ito 2-1-17 Osaki, Shinagawa-ku, Tokyo Inside Meidensha Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 遠方監視制御システムの上位系装置から
子局側のフロント・エンド・プロセッサに時刻データを
送信し、該フロント・エンド・プロセッサがその内部時
計の時刻同期処理を行うと共に子局装置に対して秒単位
の時刻データを与えて子局装置の時刻同期処理を行う時
刻同期処理方法において、 前記フロント・エンド・プロセッサは、その内部時計の
ミリ秒が0になる正秒から許容誤差範囲内になるタイミ
ングまでウエイト処理し、該許容誤差が正秒に対して進
みの場合には時刻データの「秒」を+1して前記子局装
置に対する時刻同期処理を行うことを特徴とする時刻同
期処理方法。
A time data is transmitted from a higher-level device of a remote monitoring and control system to a front-end processor on a slave station side, and the front-end processor performs time synchronization processing of its internal clock and a slave station device. In the time synchronization processing method of performing time synchronization processing of a slave station device by giving time data in units of seconds to the front end processor, the front-end processor has an allowable error range from a second in which the millisecond of its internal clock becomes 0. Time synchronization until the timing becomes within, and when the permissible error is ahead of the second, the time synchronization is performed on the slave station device by incrementing the "second" of the time data by one. Processing method.
JP9190879A 1997-07-16 1997-07-16 Method for processing time synchronization Pending JPH1139265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9190879A JPH1139265A (en) 1997-07-16 1997-07-16 Method for processing time synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9190879A JPH1139265A (en) 1997-07-16 1997-07-16 Method for processing time synchronization

Publications (1)

Publication Number Publication Date
JPH1139265A true JPH1139265A (en) 1999-02-12

Family

ID=16265277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9190879A Pending JPH1139265A (en) 1997-07-16 1997-07-16 Method for processing time synchronization

Country Status (1)

Country Link
JP (1) JPH1139265A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680037A (en) * 2020-05-14 2020-09-18 许继集团有限公司 Dynamic data time scale obtaining method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680037A (en) * 2020-05-14 2020-09-18 许继集团有限公司 Dynamic data time scale obtaining method and device
CN111680037B (en) * 2020-05-14 2023-08-08 许继集团有限公司 Dynamic data time scale acquisition method and device

Similar Documents

Publication Publication Date Title
US20040223515A1 (en) Method and apparatus for the synchronization of a system time of a communications network with a clock reference
JPH0715421A (en) Clock synchronizing device in communication network
KR101716583B1 (en) Time synchronization server, system and method
JPH1139265A (en) Method for processing time synchronization
JP2001324584A (en) Time synchronizer, time synchronizing system, and method of controlling time synchronizer
JP4123946B2 (en) Time synchronization system
TW200303676A (en) System for providing a calibrated clock and methods thereof
JPH11223687A (en) Synchronizing system for internal timepieces among plural computers
JP2850637B2 (en) Time synchronization device for supervisory control system
JP2001305256A (en) Time synchronization method in computer system
Ferreira et al. Enforcing consistency of communication requirements updates in FTT-CAN
US20230259485A1 (en) Communication apparatus, communication method, and program
JP2002216280A (en) Telemeter monitoring device
CN117639991A (en) Time synchronization method and device for vehicle
JPH0160853B2 (en)
JP2783034B2 (en) Live connection method
JPH05257837A (en) Information processing system
JPS63213013A (en) Time point designating system for computer network system
JPS59135565A (en) Managing method of real time timer
JPH10164666A (en) Time synchronizing method
CN118012224A (en) Time synchronization method, system, device and storage medium based on system on chip
JPH0898263A (en) Remote supervisory and control equipment and time synchronizing device
JP3442685B2 (en) Remote monitoring and control system
JPH11282569A (en) Time correcting device for information processor
JPH02214398A (en) Remote monitor controller