JP2850637B2 - Time synchronization device for supervisory control system - Google Patents

Time synchronization device for supervisory control system

Info

Publication number
JP2850637B2
JP2850637B2 JP4107229A JP10722992A JP2850637B2 JP 2850637 B2 JP2850637 B2 JP 2850637B2 JP 4107229 A JP4107229 A JP 4107229A JP 10722992 A JP10722992 A JP 10722992A JP 2850637 B2 JP2850637 B2 JP 2850637B2
Authority
JP
Japan
Prior art keywords
time
internal clock
control unit
correction
sub
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
Application number
JP4107229A
Other languages
Japanese (ja)
Other versions
JPH05303516A (en
Inventor
廣純 西澤
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
Original Assignee
Meidensha 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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP4107229A priority Critical patent/JP2850637B2/en
Publication of JPH05303516A publication Critical patent/JPH05303516A/en
Application granted granted Critical
Publication of JP2850637B2 publication Critical patent/JP2850637B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、メイン制御ユニット
および複数のサブ制御ユニットからなる監視制御システ
ムに係り、特に各制御ユニットの内部時計の時刻を同期
させる装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a supervisory control system comprising a main control unit and a plurality of sub-control units, and more particularly to a device for synchronizing the time of an internal clock of each control unit.

【0002】[0002]

【従来の技術】一般に、電力・動力関係を制御する電気
制御や各種の計装制御、予測演算・最適化演算を行う計
算機制御を統合化したEIC統合化システムなどの監視
制御システムでは、複数のワークステーション等を結合
する構成がとられるが、このようなシステムの場合、オ
ペレータステーション等のワークステーションの内部時
計の時刻を同期させる必要がある。
2. Description of the Related Art Generally, in a supervisory control system such as an EIC integrated system in which electric control for controlling electric power and power relations, various types of instrumentation control, and computer control for performing prediction operation and optimization operation are integrated, a plurality of systems are used. Although a configuration in which a workstation or the like is connected is adopted, in such a system, it is necessary to synchronize the time of an internal clock of a workstation such as an operator station.

【0003】この種のシステムにおける従来の時刻同期
方式の概略を図4,5に示す。図において、1−1,1
−2はオペレータステーションである。各オペレータス
テーション1−1,1−2は、CRT2やCRT2等を
制御するCPU3を備えている。CPU3はそれぞれ内
部時計4を有する。一方、ホスト装置5のホストCPU
6も内部時計7を有する。8は外部時計である。従来は
たとえば図4に示すように、各CPU3,3,6におい
て時間管理プロセスを組み込んでおき、各CPU3,
3,6がそれぞれ外部時計8から一定周期で時刻データ
を読み込むことで時刻同期を行う。この方式の場合、精
度の高い時刻同期が可能となる反面、システム構成が複
雑化して低廉性を阻害する等の欠点がある。
FIGS. 4 and 5 show an outline of a conventional time synchronization system in this type of system. In the figure, 1-1,1
-2 is an operator station. Each of the operator stations 1-1 and 1-2 includes a CRT 2 and a CPU 3 for controlling the CRT 2 and the like. Each of the CPUs 3 has an internal clock 4. On the other hand, the host CPU of the host device 5
6 also has an internal clock 7. 8 is an external clock. Conventionally, for example, as shown in FIG.
The time synchronization is performed by reading time data from the external clock 8 at a constant period by the clocks 3 and 6, respectively. In the case of this method, although highly accurate time synchronization can be performed, there are disadvantages in that the system configuration is complicated and the cost is hindered.

【0004】このことに鑑み、図5に示すように、外部
時計8から時刻データを取り込む時間管理プロセスをホ
ストCPU6のみに組み込むこととし、他のCPU3,
3にはホストCPU6から時刻データを一定周期で送信
する方式が提供されている。
In view of this, as shown in FIG. 5, a time management process for taking in time data from the external clock 8 is incorporated only in the host CPU 6, and the other CPUs 3
3 is provided with a method of transmitting time data from the host CPU 6 at a constant cycle.

【0005】[0005]

【発明が解決しようとする課題】しかしながら図5に示
す時刻同期方式では、ホストCPU6の立ち上げ時に内
部時計7が初期化され、その制御動作に不都合が生じる
おそれがあった。ホスト装置5の内部時計7としてバッ
クアップ機能を有する装置を使用すればこの問題は解消
できるが、この場合、ホスト装置5が高価格化するとい
った問題が生じる。
However, in the time synchronization system shown in FIG. 5, the internal clock 7 is initialized when the host CPU 6 starts up, and there is a possibility that the control operation may be inconvenient. If a device having a backup function is used as the internal clock 7 of the host device 5, this problem can be solved. However, in this case, there is a problem that the host device 5 becomes expensive.

【0006】この発明は、かかる問題点に鑑み、メイン
制御ユニットおよび複数のサブ制御ユニットからなる監
視制御システムの時刻同期技術において、所定の時刻同
期精度を確保しながらシステムの簡素化・低廉化を図る
ことを目的とする。
The present invention has been made in view of the above-mentioned problems, and in a time synchronization technique of a monitoring control system including a main control unit and a plurality of sub-control units, it is possible to simplify and reduce the cost of the system while securing predetermined time synchronization accuracy. The purpose is to aim.

【0007】[0007]

【課題を解決するための手段】この発明の構成を図1に
示す。この発明は、上記の目的を達成するために、それ
ぞれ内部時計を有するメイン制御ユニット9および複数
のサブ制御ユニット10からなる監視制御システムを対
象とし、各制御ユニットの時刻管理を行う監視制御シス
テムの時刻同期装置において、次の手段を講じたもので
ある。
FIG. 1 shows the configuration of the present invention. In order to achieve the above object, the present invention is directed to a monitoring control system including a main control unit 9 having an internal clock and a plurality of sub-control units 10, and a timepiece management system for performing time management of each control unit. The time synchronization device employs the following means.

【0008】(1)メイン制御ユニット9は、次の要素
を備える。
(1) The main control unit 9 includes the following elements.

【0009】a)立ち上げの際、他のアプリケーション
プロセス手段よりも優先して選択され、サブ制御ユニッ
ト10から初期時刻11−1を取得して当該ユニットの
内部時計12に初期時刻11−1を設定する初期時刻設
定手段13。
A) At the time of start-up, it is selected with priority over other application process means, acquires the initial time 11-1 from the sub-control unit 10, and sets the initial time 11-1 in the internal clock 12 of the unit. Initial time setting means 13 to be set.

【0010】b)定期的に選択され、当該ユニットの内
部時計12から時刻11−2を取得して各サブ制御ユニ
ット10に修正時刻として送信する修正時刻送信手段1
4。
B) Corrected time transmitting means 1 which is periodically selected, acquires time 11-2 from internal clock 12 of the unit, and transmits it to each sub-control unit 10 as a corrected time.
4.

【0011】(2)各サブ制御ユニット10は、次の要
素を備える。
(2) Each sub-control unit 10 has the following elements.

【0012】a)修正時刻11−2が受信されると選択
され、修正時刻11−2と当該ユニットの内部時計15
の時刻11−3とを比較して時間差が許容範囲内である
か否かを判定する時間差判定手段16。
A) When the correction time 11-2 is received, it is selected, and the correction time 11-2 and the internal clock 15 of the unit are selected.
Time difference determining means 16 for comparing with the time 11-3 to determine whether the time difference is within the allowable range.

【0013】b)修正時間11−2と内部時刻11−3
との時間差が許容範囲内であるときに選択され、当該ユ
ニットの内部時計15に修正時刻11−2を設定する時
刻修正手段17。
B) Correction time 11-2 and internal time 11-3
Time correction means 17 which is selected when the time difference between the unit and the unit is within the allowable range, and sets the correction time 11-2 in the internal clock 15 of the unit.

【0014】[0014]

【作用】この発明によれば、メイン制御ユニット9の立
ち上げの際、計時動作を維持しているサブ制御ユニット
10の内部時計15から初期時刻11−1を取得してメ
イン制御ユニット9の内部時計12に設定することと
し、メイン制御ユニット9の内部時計12としてバック
アップ機能を有しない装置の使用を可能とする。このと
き、他のアプリケーションプロセスより内部時計初期設
定プロセスを優先して実行することより時刻取得の所要
時間が短くて済むようにし、初期時刻の精度を確保す
る。
According to the present invention, when the main control unit 9 is started, the initial time 11-1 is acquired from the internal clock 15 of the sub control unit 10 which maintains the timekeeping operation, and the internal time of the main control unit 9 is obtained. The clock 12 is set so that a device having no backup function can be used as the internal clock 12 of the main control unit 9. At this time, the time required for obtaining the time can be shortened by giving priority to the internal clock initial setting process over other application processes, and the accuracy of the initial time is ensured.

【0015】定常時は、メイン制御ユニット9から内部
時計12の時刻11−2を各サブ制御ユニット10に送
信することにより、ユニット間の時刻同期をとる。この
とき、サブ制御ユニット10は、データ伝送に伴う大誤
差が、受信した修正時刻11−2に生じている可能性が
あるため、内部時刻11−3を基準として修正時刻11
−2の妥当性を確認したうえで内部時計15に取り込む
こととする。
In a normal state, the main control unit 9 transmits the time 11-2 of the internal clock 12 to each sub-control unit 10 to synchronize the time between the units. At this time, since there is a possibility that a large error due to data transmission may occur at the received correction time 11-2, the sub-control unit 10 sets the correction time 11 based on the internal time 11-3.
After confirming the validity of -2, it is taken into the internal clock 15.

【0016】[0016]

【実施例】以下、この発明の実施例を説明する。この発
明の一実施例に係る時刻同期方式のシステム構成の概略
を図2に示す。図において、従来と同じあるいは相当す
る部分には同一の符号を付して説明を省略する。この実
施例では、ホスト装置5としてマイクロコンピュータを
使用し、その内部時計7としてバックアップ機能を有し
ない装置を使用している。さらに基本的には外部時計8
(図4,5参照)を省略可能としている。
Embodiments of the present invention will be described below. FIG. 2 shows an outline of a system configuration of a time synchronization system according to an embodiment of the present invention. In the drawings, the same or corresponding parts as those in the related art are denoted by the same reference numerals, and description thereof is omitted. In this embodiment, a microcomputer is used as the host device 5, and a device having no backup function is used as the internal clock 7. Basically, an external clock 8
(See FIGS. 4 and 5) can be omitted.

【0017】この方式における時刻同期手順を図3に示
す。図に示すように、ホスト装置5側の時間管理プロセ
スでは、内部時計7がバックアップされていないため、
起動時に時刻初期設定を行う。この時刻初期設定では、
たとえばオペレータステーション1−1から初期時刻を
取得する。すなわち、まずホスト装置5からオペレータ
ステーション1−1に対して時刻送信要求を送信する。
この要求を受けてオペレータステーション1−1は、内
部時計4から時刻データを読み出してホスト装置5に送
信する。ホスト装置5は、この時刻データを内部時計7
にセットする。
FIG. 3 shows a time synchronization procedure in this system. As shown in the figure, in the time management process on the host device 5 side, since the internal clock 7 is not backed up,
Initialize the time at startup. In this initial time setting,
For example, an initial time is obtained from the operator station 1-1. That is, first, a time transmission request is transmitted from the host device 5 to the operator station 1-1.
In response to this request, the operator station 1-1 reads the time data from the internal clock 4 and transmits it to the host device 5. The host device 5 stores the time data in the internal clock 7.
Set to.

【0018】このときホスト装置5とオペレータステー
ション1−1との間の通信は、リンクプロセスが仲介す
るが、リンクプロセスは当然、時間管理プロセスだけで
はなく各アプリケーションプロセスからの要求を受けて
動作する。このため通信の負荷が高いときは、オペレー
タステーション1−1側で時刻データを送信してからホ
スト装置5の時間管理プロセスに当該時刻データが取得
されるまで時間がかかり、時刻データの信頼性が低下し
てしまう。そこでこの実施例では、ホスト装置5の立ち
上げの際、アプリケーションプロセスを起動させる順番
として、リンクプロセスの起動後、直ちに時間管理プロ
セスを起動させることとしている。これによりリンクプ
ロセスの負荷がまだ比較的低い状態のうちに初期時刻設
定を完了させることが可能となる。この結果、十分精度
の高い時刻を設定することができる。
At this time, the communication between the host device 5 and the operator station 1-1 is mediated by a link process, but the link process is operated not only by a time management process but also by a request from each application process. . For this reason, when the communication load is high, it takes time until the time data is acquired by the time management process of the host device 5 after the time data is transmitted on the operator station 1-1 side, and the reliability of the time data is reduced. Will drop. Therefore, in this embodiment, when the host device 5 starts up, the time management process is started immediately after the link process is started as the order in which the application processes are started. As a result, the initial time setting can be completed while the load of the link process is still relatively low. As a result, a sufficiently accurate time can be set.

【0019】この後、定常時の時間管理プロセスでは、
たとえば1時間に1回の周期で時刻同期を行うこととす
る。この時刻同期では、ホスト装置5の内部時計7から
時刻データを読み出して各ステーションに送信する。毎
正時は各処理でCPUの負荷が高くなることが予想され
るので、この時刻同期はたとえばn時30分に行うこと
とする。
Thereafter, in a time management process in a normal state,
For example, it is assumed that time synchronization is performed once per hour. In this time synchronization, time data is read from the internal clock 7 of the host device 5 and transmitted to each station. Since it is expected that the load on the CPU will increase in each process at every hour, this time synchronization is performed at, for example, n: 30.

【0020】各ステーション側では、ホスト装置5から
送信された時刻データを受信すると時間管理プロセス
は、時刻修正処理を行う。この処理では、まず受信した
時刻と当該ステーション側の内部時刻とを比較し、両時
刻の誤差があらかじめ設定された許容範囲内であるかを
演算する。この結果、両時刻の誤差が許容範囲内である
場合は受信した時刻を内部時計4にセットし、両時刻の
誤差が許容範囲を越えた場合は時刻のセットを行わない
こととする。このことにより、前述のようにリンクプロ
セスが高負荷状態にあって受信した時刻が大誤差を生じ
た場合、その時刻を取り込まずに済む。
When each station receives the time data transmitted from the host device 5, the time management process performs a time correction process. In this process, first, the received time is compared with the internal time on the station side, and it is calculated whether an error between both times is within a preset allowable range. As a result, if the error between the two times is within the allowable range, the received time is set in the internal clock 4, and if the error between the two times exceeds the allowable range, the time is not set. As a result, when the link process is in a high load state and the received time has a large error as described above, the time need not be taken.

【0021】[0021]

【発明の効果】以上説明したようにこの発明によれば、
メイン制御ユニットの立ち上げの際、サブ制御ユニット
から精度良く時刻データを取り込んで初期時刻設定を行
える。それゆえ外部時計装置が不要となってシステム構
成が簡略化され、システムの低廉性が向上する。またサ
ブ制御ユニットにおける時間管理プロセスにおいて、メ
イン制御ユニットから信頼性の高い時刻データを取り込
めるので、個別に外部時計から時刻を取り込む処理が不
要となり、プロセスの構造が簡略化される。
As described above, according to the present invention,
When the main control unit starts up, the initial time can be set by accurately capturing time data from the sub control unit. Therefore, no external clock device is required, the system configuration is simplified, and the cost of the system is improved. Also, in the time management process in the sub control unit, highly reliable time data can be taken from the main control unit, so that it is not necessary to separately take time from an external clock, and the structure of the process is simplified.

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

【図1】この発明の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of the present invention.

【図2】この発明の一実施例に係る時刻同期方式を示す
ブロック図。
FIG. 2 is a block diagram showing a time synchronization method according to one embodiment of the present invention.

【図3】図2の実施例による時刻同期手順を示す説明
図。
FIG. 3 is an explanatory diagram showing a time synchronization procedure according to the embodiment of FIG. 2;

【図4】従来の時刻同期方式を示すブロック図。FIG. 4 is a block diagram showing a conventional time synchronization method.

【図5】従来の時刻同期方式を示すブロック図。FIG. 5 is a block diagram showing a conventional time synchronization method.

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

9…メイン制御ユニット 10…サブ制御ユニット 11−1…初期時刻 11−2…修正時刻 11−3…内部時刻 12…内部時計 13…初期時刻設定手段 14…修正時刻送信手段 15…内部時計 16…時間差判定手段 17…時刻修正手段 9 Main control unit 10 Sub-control unit 11-1 Initial time 11-2 Modified time 11-3 Internal time 12 Internal clock 13 Initial time setting means 14 Corrected time transmitting means 15 Internal clock 16 Time difference determination means 17: Time correction means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 それぞれ内部時計を有するメイン制御ユ
ニットおよび複数のサブ制御ユニットからなる監視制御
システムを対象とし、各制御ユニットの時刻管理を行う
装置において、 メイン制御ユニットは、立ち上げの際他のアプリケーシ
ョンプロセス手段よりも優先して選択されサブ制御ユニ
ットから初期時刻を取得して当該ユニットの内部時計に
該初期時刻を設定する初期時刻設定手段と、定期的に選
択され当該ユニットの内部時計から時刻を取得して各サ
ブ制御ユニットに修正時刻として送信する修正時刻送信
手段とを備え、 各サブ制御ユニットは、前記修正時刻が受信されると選
択され修正時刻と当該ユニットの内部時計の時刻とを比
較して時間差が許容範囲内であるか否かを判定する時間
差判定手段と、前記時間差が許容範囲内であるときに選
択され当該ユニットの内部時計に修正時刻を設定する時
刻修正手段とを備えたことを特徴とする監視制御システ
ムの時刻同期装置。
An apparatus for monitoring and controlling a main control unit having an internal clock and a plurality of sub-control units and performing time management of each control unit. Initial time setting means for obtaining an initial time from the sub-control unit, which is selected prior to the application process means, and setting the initial time in the internal clock of the unit; And a correction time transmitting means for transmitting the correction time to each sub-control unit as a correction time, wherein each of the sub-control units is selected when the correction time is received, and outputs the correction time and the time of the internal clock of the unit. A time difference determining means for comparing to determine whether the time difference is within an allowable range; and Time synchronization device of the monitoring control system is characterized in that a time correction means for setting a correction time in the internal clock of the selected the unit Rutoki.
JP4107229A 1992-04-27 1992-04-27 Time synchronization device for supervisory control system Expired - Lifetime JP2850637B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4107229A JP2850637B2 (en) 1992-04-27 1992-04-27 Time synchronization device for supervisory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4107229A JP2850637B2 (en) 1992-04-27 1992-04-27 Time synchronization device for supervisory control system

Publications (2)

Publication Number Publication Date
JPH05303516A JPH05303516A (en) 1993-11-16
JP2850637B2 true JP2850637B2 (en) 1999-01-27

Family

ID=14453767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4107229A Expired - Lifetime JP2850637B2 (en) 1992-04-27 1992-04-27 Time synchronization device for supervisory control system

Country Status (1)

Country Link
JP (1) JP2850637B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004107063A1 (en) 2003-05-28 2004-12-09 Fujitsu Limited Time manager and time management method
JP2006236251A (en) 2005-02-28 2006-09-07 Fujitsu Ltd Time stamp device, time calibration method and time calibration program
JP5962697B2 (en) 2014-03-26 2016-08-03 株式会社デンソー Electronic control unit

Also Published As

Publication number Publication date
JPH05303516A (en) 1993-11-16

Similar Documents

Publication Publication Date Title
EP1380953B1 (en) Fault-tolerant computer system, re-synchronization method thereof and re-synchronization program thereof
EP0253096B1 (en) Time synchronization method in a data transmission system
JPH11154920A (en) Clock synchronizing method for synchronizing-type base station control system and its synchronizing device
CN107947888A (en) A kind of task level synchronous method based on network service
CA1222572A (en) Methods and apparatus for correcting a software clock from an accurate clock
JPH0715421A (en) Clock synchronizing device in communication network
JP2850637B2 (en) Time synchronization device for supervisory control system
CN113630203A (en) Multi-device trigger synchronization method
JP4051131B2 (en) Clock signal preparation apparatus and method
JP3166552B2 (en) CPU monitoring method and CPU monitoring device
CA2411788C (en) Device and method for synchronising a system of coupled data processing facilities
JP2821091B2 (en) Remote monitoring control device and time synchronization device
JP2728500B2 (en) Time data equivalence method
JP2002135284A (en) Line concentrator
JPH065309B2 (en) Time synchronization method
CN117112315A (en) Data synchronization method and system of redundant equipment, storage medium and electronic equipment
JP2002216280A (en) Telemeter monitoring device
JP2872039B2 (en) Cyclic digital information transmission equipment
JPH10164666A (en) Time synchronizing method
JP2723281B2 (en) Remote monitoring and control device
JPH0126096B2 (en)
JPH11203251A (en) Time synchronization method
JPH0160853B2 (en)
KR20020040955A (en) Time Management Method In Exchange System
JPH07131544A (en) Remote monitoring system