JPH07280971A - Monitor control system with the synchronizing function - Google Patents

Monitor control system with the synchronizing function

Info

Publication number
JPH07280971A
JPH07280971A JP6966894A JP6966894A JPH07280971A JP H07280971 A JPH07280971 A JP H07280971A JP 6966894 A JP6966894 A JP 6966894A JP 6966894 A JP6966894 A JP 6966894A JP H07280971 A JPH07280971 A JP H07280971A
Authority
JP
Japan
Prior art keywords
time
clock
data
predetermined range
deviation
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
JP6966894A
Other languages
Japanese (ja)
Inventor
昌之 ▲片▼岡
Masayuki Kataoka
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.)
Nissin Electric Co Ltd
Original Assignee
Nissin Electric 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 Nissin Electric Co Ltd filed Critical Nissin Electric Co Ltd
Priority to JP6966894A priority Critical patent/JPH07280971A/en
Publication of JPH07280971A publication Critical patent/JPH07280971A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To avoid the occurrence of the overlapping of data and the failure in measurement by avoiding such inconveniences as the overlapping of the same time and the missing of a certain time in synchronizing the time indicated by a clock with a standard time. CONSTITUTION:When a terminal station receives time-setting commands sent from the central station (S1), it compare a standard time of them with the present time indicated by a clock in the terminal station to judge whether the deviation between both times is within a correctable range or not (S2). If the deviation is within a correctable range, the terminal station conducts a time-correcting process (S3). In the time-correcting process, the time indicated by the clock is corrected by compressing or extending the time base of the real time in each specified hour and converting it on the time base of the clock. On the other hand, if the deviation between both times is outside a correctable range, the terminal station conducts a compulsory time-setting process to synchronize the time indicated by the clock with the standard time forcibly (S4).

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 for monitoring and controlling equipment installed in a building or various plants, and more particularly to a time capable of time synchronization within the system. The present invention relates to a supervisory control system with a synchronization function.

【0002】[0002]

【従来の技術】ビルやプラント、高速道路網等の近代化
された施設は、多くの設備機器を有しており、これらの
設備機器を相互に協調して動作させることが上記の施設
を円滑に運営する上で必要になっている。したがって、
特定の場所で全設備機器の動作状況が監視できるととも
に、この特定の場所から全設備機器を制御できることが
望ましく、通常、その監視や制御には、監視制御システ
ムが使用されるようになっている。
2. Description of the Related Art Modernized facilities such as buildings, plants, and highway networks have many equipments, and it is necessary to operate these equipments in cooperation with each other. It is necessary for the operation. Therefore,
It is desirable to be able to monitor the operating status of all equipment at a specific location and control all equipment from this particular location. Normally, a supervisory control system is used for such monitoring and control. .

【0003】監視制御システムのシステムは、通常、図
5に示すように、特定の場所に設けられた中央局として
のホストマシン11と、現場各所に配されて図示しない
設備機器の運転や計測器のデータ収集等を行なう端末局
としてのプログラマブルロジックコントローラ(以降、
PLCと称する)12…とを備え、ホストマシン11と
各PLC12…とがネットワーク13により接続される
構成となっている。各PLC12…は、それぞれ各種設
備機器の動作を管理しており、それら設備機器の状態変
化等のデータをその発生時刻とともに記録している。そ
して、記録されたデータは、ホストマシン11の要求に
応じて、随時ホストマシン11に送信されるようになっ
ている。
As shown in FIG. 5, a supervisory control system system usually has a host machine 11 as a central station provided at a specific place, and operation and measuring instruments of equipment not shown at various places on the site. Programmable logic controller as a terminal station that collects data of
, Which is referred to as PLC), and the host machine 11 and each PLC 12 are connected by a network 13. Each PLC 12 ... Manages the operation of various equipments, and records data such as the state change of the equipments together with the occurrence time. Then, the recorded data is transmitted to the host machine 11 at any time in response to a request from the host machine 11.

【0004】ところが、異なるPLC12…に記録され
たデータをホストマシン11にて比較する場合、それぞ
れのPLC12…での時刻が一致していないと、正確に
データを比較することができなくなる。そこで、各PL
C12…に設けられた図示しない時計の時刻を、ホスト
マシン11の基準時刻と同期するように補正することに
より、比較すべきデータの時刻のずれをなくすことがで
きる。
However, when the data recorded in different PLCs 12 ... Is compared by the host machine 11, the data cannot be accurately compared unless the times of the PLCs 12 ... Therefore, each PL
By correcting the time of the clock (not shown) provided in C12 ... so as to be synchronized with the reference time of the host machine 11, it is possible to eliminate the time difference of the data to be compared.

【0005】この処理は、図6に示すフローチャートの
手順にしたがって行なわれる。まず、ホストマシン11
から時刻設定コマンドが発行される。この時刻設定コマ
ンドには、上記の基準時刻が含まれている。各PLC1
2…が時刻設定コマンドを受信すると(S11)、PL
C12にて時刻設定処理が実行される(S12)。この
時刻設定処理は、PLC12側の時計の時刻を基準時刻
に強制的に同期させることで行なわれる。
This process is performed according to the procedure of the flowchart shown in FIG. First, the host machine 11
Issues a time setting command. This time setting command includes the above-mentioned reference time. Each PLC1
When 2 ... Receives the time setting command (S11), PL
Time setting processing is executed in C12 (S12). This time setting process is performed by forcibly synchronizing the time of the clock on the PLC 12 side with the reference time.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
ようにPLC12側での時刻を補正する場合、基準時刻
と各PLC12の時刻とのずれが大きいと、次のような
不都合が生じる。
However, when correcting the time on the PLC 12 side as described above, if the difference between the reference time and the time of each PLC 12 is large, the following inconvenience occurs.

【0007】例えば、PLC12の時刻の方が基準時刻
より大きく遅れている場合では、その遅れの間の時刻が
欠落して、その間にデータの欠測が生じることになる。
一方、PLC12の時刻の方が基準時刻より大きく進ん
でいる場合では、その遅れの間の時刻が重複して現れる
ことになり、同じ時刻に複数の異なるデータが存在する
おそれがある。
For example, when the time of the PLC 12 is much later than the reference time, the time between the delays is lost, and data is missing during that time.
On the other hand, when the time of the PLC 12 is ahead of the reference time, the times between the delays appear redundantly, and there is a possibility that a plurality of different data exist at the same time.

【0008】本発明は、上記の事情に鑑みてなされたも
のであって、データの欠測や同時刻での異なるデータの
存在を生じさせることなく時刻同期を行なわせることを
目的としている。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to perform time synchronization without causing missing data or existence of different data at the same time.

【0009】[0009]

【課題を解決するための手段】本発明の時刻同期機能付
き監視制御システムは、上記の課題を解決するために、
基準時刻を発生する基準時計を有し、基準時刻に基づく
時刻設定指令を発生して送信する中央局と、実時間を計
時する第1時計と時刻を補正しうる第2時計とを有し、
設備機器のデータを第1時計による一定周期毎に更新し
て記録し、そのデータに第2時計に基づく所定間隔毎に
記録時刻を付加するとともに、記録したデータを記録時
刻とともに上記中央局に送信する複数の端末局とを備え
ており、この端末局には、それぞれ、上記中央局からの
時刻設定指令を受信すると、上記第2時計の時刻と上記
中央局で発生した基準時刻との間のずれが所定範囲内に
あるかあるいは所定範囲外にあるかを判定する判定手段
と、上記判定手段による判定で両時刻の間のずれが所定
範囲内にあるときに、上記第1時計の実時間におけるデ
ータ更新の1周期毎に一定の時間を加算あるいは減算し
た時間を上記第2時計におけるデータ更新の1周期の時
間に変換して第2時計の時刻を補正する時刻補正手段
と、上記判定手段による判定で両時刻の間のずれが所定
範囲外にあるときに、上記第2時計の時刻を基準時刻に
同期させて設定する時刻設定手段とが設けられているこ
とを特徴としている。
In order to solve the above-mentioned problems, a supervisory control system with a time synchronization function of the present invention is provided.
A central station that has a reference clock that generates a reference time, generates and transmits a time setting command based on the reference time, a first clock that measures real time, and a second clock that can correct the time,
The data of the equipment is updated and recorded at regular intervals by the first clock, the recording time is added to the data at predetermined intervals based on the second clock, and the recorded data is transmitted to the central station together with the recording time. When a time setting command is received from the central station, each of the terminal stations operates between the time of the second clock and the reference time generated at the central station. The determining means for determining whether the deviation is within a predetermined range or outside the predetermined range, and the real time of the first clock when the deviation between the two times is within the predetermined range by the determination by the determining means. Time correction means for correcting the time of the second clock by converting the time obtained by adding or subtracting a fixed time for each data update cycle in 1) into the time of one data update cycle in the second clock, and the determining means. To That when the deviation between the two times is outside the predetermined range in the determination, is characterized by the time setting means for setting in synchronization with the reference time of the time of the second clock is provided.

【0010】[0010]

【作用】上記の構成において、各端末局では、設備機器
の状態変化等がデータとして記録される。この記録は、
第1時計に基づいた一定周期毎に更新して行なわれ、記
録されるデータには、第2時計による記録時刻が付加さ
れる。
In the above structure, each terminal station records the state change of the equipment as data. This record is
The data is recorded and updated at regular intervals based on the first clock, and the recording time of the second clock is added to the recorded data.

【0011】端末局では、中央局から送信された時刻設
定指令を受信すると、判定手段により、時刻設定指令の
基準時刻と第2時計の時刻とのずれが所定範囲内にある
か所定範囲外にあるかが判定される。この判定で両時刻
のずれが所定範囲内にあるとき、補正手段により、実時
間におけるデータ更新の1周期毎に一定の時間を加算あ
るいは減算した時間が、上記第2時計におけるデータ更
新の1周期の時間に変換される。この変換により、実時
間の時間軸が圧縮または伸長されて第2時計における時
間となる。
When the terminal station receives the time setting command transmitted from the central station, the discriminating means determines whether the deviation between the reference time of the time setting command and the time of the second clock is within a predetermined range or out of the predetermined range. It is determined whether there is any. When the difference between the two times is within the predetermined range in this determination, the time obtained by adding or subtracting a fixed time for each cycle of data update in real time by the correction means is one cycle of data update in the second clock. Is converted to time. By this conversion, the time axis of real time is compressed or expanded to become the time in the second clock.

【0012】例えば、第2時計の時刻が基準時刻より進
んでいる場合、データ更新の1周期毎に一定の時間を加
算して、正規の1周期より長い時間を第2時計における
データ更新の1周期の時間に変換する。これにより、第
1時計の時間軸が第2時計の時間軸上では圧縮される。
したがって、その圧縮された時間だけ、第2時計の時刻
が遅らされたことになる。
For example, when the time of the second clock is ahead of the reference time, a fixed time is added for each data update cycle, and a time longer than the regular one cycle is set to 1 of the data update in the second clock. Convert to cycle time. As a result, the time axis of the first clock is compressed on the time axis of the second clock.
Therefore, the time of the second clock is delayed by the compressed time.

【0013】また、判定手段による判定で両時刻のずれ
が所定範囲外にあるとき、時刻設定手段により、第2時
計の時刻が基準時刻に同期されて設定される。このとき
は、両時刻のずれが大きすぎて補正手段による補正が不
可能であり、第2時計の時刻が強制的に基準時刻に同期
させられることになる。
Further, when the difference between the two times is outside the predetermined range as judged by the judging means, the time setting means sets the time of the second clock in synchronization with the reference time. At this time, the time difference is too large to be corrected by the correction means, and the time of the second clock is forcibly synchronized with the reference time.

【0014】このように、上記の構成によれば、両時刻
の差が所定範囲内にあれば、時間軸を圧縮あるいは伸長
して第2時計の時刻を補正することにより、第2時計の
時刻は連続性の保たれた状態で基準時刻と同期設定され
る。それゆえ、第2時計の時刻を基準時刻に同期させる
際に、同じ時刻が重複したり、ある時刻が欠けたりする
不都合を回避することができる。
As described above, according to the above configuration, when the difference between the two times is within the predetermined range, the time axis is compressed or expanded to correct the time of the second clock, so that the time of the second clock is corrected. Is set to be synchronized with the reference time while maintaining continuity. Therefore, when synchronizing the time of the second clock with the reference time, it is possible to avoid the inconvenience of overlapping the same time or missing a certain time.

【0015】[0015]

【実施例】本発明の一実施例について図1ないし図4に
基づいて説明すれば、以下の通りである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The following will describe one embodiment of the present invention with reference to FIGS.

【0016】本実施例に係る監視制御システムは、図2
に示すように、中央局としてのホストマシン1と、端末
局としての複数のプログラマブルロジックコントローラ
(以降、PLCと称する)2…とを備えている。ホスト
マシン1と各PLC2…とは、ネットワーク3により接
続されており、相互に通信を行なうことができるように
なっている。
The monitoring control system according to this embodiment is shown in FIG.
As shown in FIG. 3, the host machine 1 as a central station and a plurality of programmable logic controllers (hereinafter referred to as PLC) 2 as terminal stations are provided. The host machine 1 and each PLC 2 ... Are connected by a network 3 so that they can communicate with each other.

【0017】ホストマシン1は、PLC2…に図示しな
い各設備機器を動作させるための指令を与えたり、PL
C2…から送信された各設備機器の状態変化(以降、状
変と称する)等のデータを収集して、そのデータの解析
や画面表示等の処理を行なうようになっている。また、
ホストマシン1は、基準時計としてのマスタ時計1aを
有しており、このマスタ時計1aによる基準時刻を含む
時刻設定コマンドを発行するようになっている。
The host machine 1 gives a command to the PLCs 2, ...
Data such as a state change (hereinafter referred to as a state change) of each equipment transmitted from C2 ... Is collected, and the data is analyzed and the screen is displayed. Also,
The host machine 1 has a master clock 1a as a reference clock, and issues a time setting command including the reference time by the master clock 1a.

【0018】時刻設定指令としての時刻設定コマンド
は、基準時刻とともに、PLC2…から各設備機器への
制御出力の付与、各設備機器からのPLC2…に対する
入力のホストマシン1への送信、各設備機器のアナログ
的な変化の一定時間おきのホストマシン1への送信等の
PLC2…に与える各種の指令を含んでいる。
The time setting command as the time setting command, together with the reference time, gives a control output from PLC 2 to each equipment, transmits an input from each equipment to PLC 2 to host machine 1, each equipment. It includes various commands given to the PLCs 2 ...

【0019】PLC2は、リレー接点、モータ、計測器
等の各種の設備機器が接続されており、これら設備機器
の動作制御、設備機器からの状変や計測値の入力等を行
なう他、その入力値をデータとして記録するデータ記録
機能を備えている。記録されるデータには、ホストマシ
ン1や他局(PLC2…)に送信されると記録から削除
されるものと、一定量または一定時間保持されるものと
がある。
The PLC 2 is connected with various equipments such as relay contacts, motors, measuring instruments, etc., and controls the operation of these equipments, changes the conditions from the equipments, inputs measured values, and inputs them. It has a data recording function that records values as data. The recorded data includes data that is deleted from the recording when it is transmitted to the host machine 1 and other stations (PLC2 ...), and data that is held for a fixed amount or for a fixed time.

【0020】上記のPLC2は、実時間を計時する第1
時計としての時計2aと、時刻補正が可能な第2時計と
しての時計2bとを有しており、これらの時計2a・2
bは、ソフトウェアにより構成されている。また、PL
C2は、時計2aに基づく一定周期毎にデータの記録を
更新するとともに、記録されたデータに記録時刻として
タイムスタンプを時計2bに基づいて付加するようにな
っている。さらに、PLC2は、ホストマシン1から時
刻設定コマンドを受信すると、時計2bの時刻と時刻設
定コマンドの基準時刻とのずれに応じて強制時刻設定処
理または時刻補正処理を行なうようになっている。
The above-mentioned PLC2 is the first for measuring real time.
It has a timepiece 2a as a timepiece and a timepiece 2b as a second timepiece capable of time correction.
b is composed of software. Also, PL
The C2 updates the recording of data at regular intervals based on the clock 2a, and adds a time stamp as a recording time to the recorded data based on the clock 2b. Further, when the PLC 2 receives the time setting command from the host machine 1, the PLC 2 performs the forced time setting process or the time correction process according to the difference between the time of the clock 2b and the reference time of the time setting command.

【0021】強制時刻設定処理は、従来の監視制御シス
テムにおける時刻設定と同様の処理であり、時計2bの
時刻を直接基準時刻に同期させるものである。PLC2
は、この処理を行なうことにより、時刻設定手段として
の機能を有するようになっている。一方、時刻補正処理
は、基準時刻に対する時計2bの時刻のずれをなくすよ
うに、時計2aの時間軸をデータ記録の更新周期単位で
圧縮させるかあるいは伸長させて時計2bの時間軸に変
換して、時計2bの時刻を補正するようになっている。
PLC2は、この処理を行なうことにより、時刻補正手
段としての機能を有するようになっている。
The forced time setting process is the same process as the time setting in the conventional supervisory control system and directly synchronizes the time of the clock 2b with the reference time. PLC2
By performing this process, the device has a function as time setting means. On the other hand, the time correction processing compresses or expands the time axis of the timepiece 2a in the unit of the update cycle of data recording so as to eliminate the time difference of the timepiece 2b from the reference time, and converts it into the time axis of the timepiece 2b. , The time of the clock 2b is corrected.
The PLC 2 has a function as a time correction means by performing this process.

【0022】ここで、時刻補正処理の具体例について述
べる。以下には、データ記録の更新周期を10msとし、
タイムスタンプが1ms間隔で発生する場合について説明
する。
Here, a concrete example of the time correction processing will be described. Below, the update cycle of data recording is set to 10 ms,
A case where time stamps occur at 1 ms intervals will be described.

【0023】時計2bの現在時刻が時刻設定コマンドに
含まれる基準時刻より5ms進んでいる場合、図3に示す
ように、時計2aによる実時間における11ms(10ms
に補正のための1msを加えた時間)を1周期として、こ
の1周期が時計2bによる論理時間の10msに変換され
る。具体的には、実時間で11msの1周期の間に生じた
状変や計測値のタイムスタンプが10/11倍されるこ
とにより、時間軸の圧縮が行なわれる。これにより、実
時間における55msが論理時間の50msに圧縮され、時
計2bの時刻が5ms遅らされて基準時刻に同期設定され
る。
When the current time of the clock 2b is advanced by 5 ms from the reference time included in the time setting command, as shown in FIG. 3, the real time of the clock 2a is 11 ms (10 ms).
Is added to 1 ms for correction) as one cycle, and this one cycle is converted into a logical time of 10 ms by the clock 2b. Specifically, the time axis is compressed by multiplying the time stamp of the state change and the measured value that occurred during one cycle of 11 ms in real time by 10/11. As a result, 55 ms in real time is compressed to 50 ms which is a logical time, the time of the clock 2b is delayed by 5 ms and set in synchronization with the reference time.

【0024】このようにして時間軸の圧縮が行なわれる
ことにより、記録されたデータのタイムスタンプが書き
替えられる。したがって、例えば、実時間における1周
期(11ms)の終了直前に発生した状変は、論理時間に
おける1周期(10ms)の終了直前に生じたこととみな
される。
By compressing the time axis in this way, the time stamp of the recorded data is rewritten. Therefore, for example, the state change that occurred immediately before the end of one cycle (11 ms) in real time is considered to have occurred immediately before the end of one cycle (10 ms) in the logical time.

【0025】逆に、時計2bの現在時刻が時刻設定コマ
ンドに含まれる基準時刻より5ms遅れている場合、図4
に示すように、時計2aによる実時間における9ms(1
0msから補正のための1msを減じた時間)を1周期とし
て、この1周期が時計2bによる論理時間の10msに変
換される。具体的には、実時間で9msの1周期の間に生
じた状変や計測値のタイムスタンプが10/9倍される
ことにより、時間軸の伸長が行なわれる。これにより、
実時間における45msが論理時間の50msに伸長され、
時計2bの時刻が5ms進まされて基準時刻に同期設定さ
れる。
On the contrary, when the current time of the clock 2b is delayed by 5 ms from the reference time included in the time setting command,
As shown in, 9ms (1
The time obtained by subtracting 1 ms for correction from 0 ms) is set as one cycle, and this one cycle is converted into a logical time of 10 ms by the clock 2b. Specifically, the time axis is expanded by multiplying the time stamp of the state change and the measured value that occurred during one cycle of 9 ms in real time by 10/9. This allows
45ms in real time is expanded to 50ms in logic time,
The time of the clock 2b is advanced by 5 ms and set in synchronization with the reference time.

【0026】このようにして時間軸の伸長が行なわれる
ことにより、記録されたデータのタイムスタンプが書き
替えられる。したがって、例えば、実時間における1周
期(9ms)の終了直前に発生した状変は、論理時間にお
ける1周期(10ms)の終了直前に生じたこととみなさ
れる。
By extending the time axis in this way, the time stamp of the recorded data is rewritten. Therefore, for example, the state change that occurred immediately before the end of one cycle (9 ms) in real time is considered to have occurred immediately before the end of one cycle (10 ms) in logical time.

【0027】なお、上記の例では、データの更新周期1
0msに対し10%となる1msずつ時刻補正を行なってい
るが、時刻補正に要する時間を短縮することも可能であ
る。この場合、例えば、データの更新周期10msに対し
2msや3msずつ時刻補正を行なう。これらの設定は、あ
らかじめなされるものであり、システムに応じて適宜異
なっている。また、時刻補正処理終了後の論理時間は、
通常の時間軸、すなわち実時間の時間軸と同じ時間軸に
戻る。
In the above example, the data update cycle 1
Although the time is corrected by 1 ms, which is 10% of 0 ms, it is possible to shorten the time required for the time correction. In this case, for example, the time is corrected every 2 ms or 3 ms with respect to the data update cycle of 10 ms. These settings are made in advance and appropriately differ depending on the system. Also, the logical time after the end of the time correction process is
Return to the normal time axis, that is, the same time axis as the real time axis.

【0028】上記の強制時刻設定処理または時刻補正処
理のいずれを実行するかは、PLC2において、上記両
時刻のずれが、しきい値により決定される所定範囲内で
あるか所定範囲外であるかにより判定される。そのしき
い値は、時刻補正処理が可能であるずれの範囲を設定す
るものであり、システムの処理速度に応じて異なるが、
本実施例では例えば100msとする。PLC2は、この
判定を行なうことにより、判定手段としての機能を有す
るようになっている。
In the PLC 2, which of the forced time setting process and the time correction process should be executed is whether the difference between the two times is within a predetermined range determined by a threshold value or outside the predetermined range. Is determined by. The threshold value sets a range of deviation in which time correction processing is possible, and varies depending on the processing speed of the system.
In this embodiment, it is set to 100 ms, for example. The PLC 2 has a function as a determination means by making this determination.

【0029】上記の時刻補正手段、時刻設定手段および
判定手段は、ソフトウェアにより実現される機能であ
り、それぞれの処理は、PLC2内の処理装置(CPU
等)により所定のプログラムにしたがって行なわれる。
The above-mentioned time correction means, time setting means, and determination means are functions realized by software, and the respective processing is performed by the processing unit (CPU) in the PLC 2.
Etc.) according to a predetermined program.

【0030】上記の構成における時刻設定の処理手順を
図1のフローチャートを参照にして説明する。
The procedure for setting the time in the above configuration will be described with reference to the flowchart of FIG.

【0031】まず、ホストマシン1から時刻設定コマン
ドが発行され、この時刻設定コマンドがネットワーク3
を通じてPLC2…に送信される。PLC2が時刻設定
コマンドを受信すると(S1)、基準時刻と時計2bの
現在時刻との比較により、両時刻の間のずれが補正範囲
内であるか否かが判定される(S2)。
First, a time setting command is issued from the host machine 1, and this time setting command is sent to the network 3
Through PLC2 ... When the PLC 2 receives the time setting command (S1), the reference time is compared with the current time of the timepiece 2b to determine whether the deviation between the two times is within the correction range (S2).

【0032】両時刻の間のずれが補正範囲内であれば、
上記のようにして時刻補正処理が行なわれる(S3)。
このとき、時計2bの時刻を遅らせるか進ませるかは、
基準時刻に対し進んでいるか遅れているかによって決定
される。時計2bの時刻が進んでいる場合は、その時刻
を遅らせる処理が行なわれ、逆に、時計2bの時刻が遅
れている場合は、その時刻を進ませる処理が行なわれ
る。
If the difference between the two times is within the correction range,
The time correction process is performed as described above (S3).
At this time, whether to delay or advance the time of the clock 2b
It is determined by whether it is ahead or behind the reference time. When the time of the clock 2b is advanced, the process of delaying the time is performed, and conversely, when the time of the clock 2b is delayed, the process of advancing the time is performed.

【0033】一方、両時刻の間のずれが補正範囲外であ
れば、強制時刻設定処理が行なわれる(S4)。このと
き、時計2bの現在時刻は、基準時刻に対し進んでいる
か遅れているかに関わらず基準時刻に改められる。
On the other hand, if the difference between the two times is out of the correction range, the forced time setting process is performed (S4). At this time, the current time of the clock 2b is adjusted to the reference time regardless of whether it is ahead or behind the reference time.

【0034】以上述べたように、本実施例の監視制御シ
ステムでは、時刻補正処理を行なうことにより、時計2
bの時刻が連続性の保たれた状態で基準時刻と同期設定
される。このため、時計2bの時刻を基準時刻に同期さ
せる際に、同じ時刻が重複したり、ある時刻が欠けたり
する不都合を回避することができる。
As described above, in the supervisory control system of this embodiment, the time is corrected by performing the time correction process.
The time of b is set in synchronization with the reference time in a state where continuity is maintained. Therefore, when synchronizing the time of the clock 2b with the reference time, it is possible to avoid the inconvenience that the same time is duplicated or a certain time is missing.

【0035】[0035]

【発明の効果】本発明の時刻同期機能付き監視制御シス
テムは、以上のように、基準時刻を発生する基準時計を
有し、基準時刻に基づく時刻設定指令を発生して送信す
る中央局と、実時間を計時する第1時計と時刻を補正し
うる第2時計とを有し、設備機器のデータを第1時計に
よる一定周期毎に更新して記録し、そのデータに第2時
計に基づく所定間隔毎に記録時刻を付加するとともに、
記録したデータを記録時刻とともに上記中央局に送信す
る複数の端末局とを備えており、この端末局には、それ
ぞれ、上記中央局からの時刻設定指令を受信すると、上
記第2時計の時刻と上記中央局で発生した基準時刻との
間のずれが所定範囲内にあるかあるいは所定範囲外にあ
るかを判定する判定手段と、上記判定手段による判定で
両時刻の間のずれが所定範囲内にあるときに、上記第1
時計の実時間におけるデータ更新の1周期毎に一定の時
間を加算あるいは減算した時間を上記第2時計における
データ更新の1周期の時間に変換して第2時計の時刻を
補正する時刻補正手段と、上記判定手段による判定で両
時刻の間のずれが所定範囲外にあるときに、上記第2時
計の時刻を基準時刻に同期させて設定する時刻設定手段
とが設けられている構成である。
As described above, the supervisory control system with the time synchronization function of the present invention has the reference clock for generating the reference time, and the central station for generating and transmitting the time setting command based on the reference time, It has a first clock that counts real time and a second clock that can correct the time, and updates the data of facility equipment at regular intervals by the first clock and records the data, and a predetermined time based on the second clock in the data. Recording time is added for each interval,
A plurality of terminal stations for transmitting the recorded data together with the recording time to the central office are provided. When each terminal station receives the time setting command from the central office, the time of the second clock is recorded. Judgment means for judging whether the deviation from the reference time generated at the central office is within a predetermined range or outside the predetermined range, and the deviation between both times is within a predetermined range by the judgment by the judgment means. The above first when
Time correction means for correcting the time of the second clock by converting the time obtained by adding or subtracting a fixed time for each data update cycle in real time of the clock into the time of one data update cycle in the second clock. And a time setting means for setting the time of the second clock in synchronization with the reference time when the difference between the two times is outside the predetermined range as judged by the judging means.

【0036】これにより、両時刻の差が所定範囲内にあ
れば、第1時計の実時間の時間軸が圧縮あるいは伸長さ
れて第2時計の時間に変換されることになる。このよう
な補正を行なうことにより、第2時計の時刻が連続性の
保たれた状態で基準時刻と同期設定される。それゆえ、
第2時計の時刻を基準時刻に同期させる際に、同じ時刻
が重複したり、ある時刻が欠けたりする不都合を回避す
ることができる。この結果、データの重複や欠測の発生
を回避することができるという効果を奏する。
As a result, if the difference between both times is within the predetermined range, the time axis of the real time of the first clock is compressed or expanded and converted into the time of the second clock. By performing such a correction, the time of the second clock is set in synchronization with the reference time while maintaining continuity. therefore,
When synchronizing the time of the second clock with the reference time, it is possible to avoid the inconvenience of overlapping the same time or missing a certain time. As a result, it is possible to avoid the duplication of data and the occurrence of missing data.

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

【図1】本発明の一実施例に係る監視制御システムの時
刻設定処理の手順を示すフローチャートである。
FIG. 1 is a flowchart showing a procedure of a time setting process of a supervisory control system according to an embodiment of the present invention.

【図2】上記監視制御システムの概略構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a schematic configuration of the monitoring control system.

【図3】プログラマブルロジックコントローラにおける
タイムスタンプ付加用の時計の現在時刻が基準時刻より
進んでいる場合の図2の監視制御システムによる時刻補
正処理を示す説明図である。
FIG. 3 is an explanatory diagram showing a time correction process by the supervisory control system of FIG. 2 when the current time of the time stamp adding clock in the programmable logic controller is ahead of the reference time.

【図4】プログラマブルロジックコントローラにおける
タイムスタンプ付加用の時計の現在時刻が基準時刻より
遅れている場合の図2の監視制御システムによる時刻補
正処理を示す説明図である。
FIG. 4 is an explanatory diagram showing a time correction process by the supervisory control system of FIG. 2 when the current time of the time stamp adding clock in the programmable logic controller is behind the reference time.

【図5】従来の監視制御システムの概略構成を示すブロ
ック図である。
FIG. 5 is a block diagram showing a schematic configuration of a conventional supervisory control system.

【図6】図5の監視制御システムによる時刻設定処理の
手順を示すフローチャートである。
6 is a flowchart showing a procedure of time setting processing by the monitoring control system of FIG.

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

1 ホストマシン(中央局) 1a マスタ時計(基準時計) 2 プログラマブルロジックコントローラ(端末局、
判定手段、時刻補正手段、時刻設定手段) 2a 時計(第1時計) 2b 時計(第2時計)
1 host machine (central station) 1a master clock (reference clock) 2 programmable logic controller (terminal station,
Determination means, time correction means, time setting means) 2a clock (first clock) 2b clock (second clock)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】基準時刻を発生する基準時計を有し、基準
時刻に基づく時刻設定指令を発生して送信する中央局
と、 実時間を計時する第1時計と時刻を補正しうる第2時計
とを有し、設備機器のデータを第1時計による一定周期
毎に更新して記録し、そのデータに第2時計に基づく所
定間隔毎に記録時刻を付加するとともに、記録したデー
タを記録時刻とともに上記中央局に送信する複数の端末
局とを備えており、この端末局には、それぞれ、 上記中央局からの時刻設定指令を受信すると、上記第2
時計の時刻と上記中央局で発生した基準時刻との間のず
れが所定範囲内にあるかあるいは所定範囲外にあるかを
判定する判定手段と、 上記判定手段による判定で両時刻の間のずれが所定範囲
内にあるときに、上記第1時計の実時間におけるデータ
更新の1周期毎に一定の時間を加算あるいは減算した時
間を上記第2時計におけるデータ更新の1周期の時間に
変換して第2時計の時刻を補正する時刻補正手段と、 上記判定手段による判定で両時刻の間のずれが所定範囲
外にあるときに、上記第2時計の時刻を基準時刻に同期
させて設定する時刻設定手段とが設けられていることを
特徴とする時刻同期機能付き監視制御システム。
1. A central station having a reference clock for generating a reference time, generating and transmitting a time setting command based on the reference time, a first clock for measuring real time, and a second clock for correcting the time. The data of the equipment is updated and recorded at regular intervals by the first clock, the recording time is added to the data at predetermined intervals based on the second clock, and the recorded data is recorded together with the recording time. It is provided with a plurality of terminal stations for transmitting to the central station, and each of the terminal stations receives the time setting command from the central station,
Judgment means for judging whether the deviation between the time of the clock and the reference time generated at the central office is within a predetermined range or outside the predetermined range, and the deviation between both times by the judgment by the judgment means. Is within a predetermined range, the time obtained by adding or subtracting a constant time for each cycle of data update in the real time of the first clock is converted into a time of one cycle of data update in the second clock. A time correction unit that corrects the time of the second clock and a time that is set by synchronizing the time of the second clock with the reference time when the difference between the two times is outside the predetermined range as determined by the determination unit. A monitoring control system with a time synchronization function, characterized in that setting means is provided.
JP6966894A 1994-04-07 1994-04-07 Monitor control system with the synchronizing function Pending JPH07280971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6966894A JPH07280971A (en) 1994-04-07 1994-04-07 Monitor control system with the synchronizing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6966894A JPH07280971A (en) 1994-04-07 1994-04-07 Monitor control system with the synchronizing function

Publications (1)

Publication Number Publication Date
JPH07280971A true JPH07280971A (en) 1995-10-27

Family

ID=13409456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6966894A Pending JPH07280971A (en) 1994-04-07 1994-04-07 Monitor control system with the synchronizing function

Country Status (1)

Country Link
JP (1) JPH07280971A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005233662A (en) * 2004-02-17 2005-09-02 Yokogawa Electric Corp Measuring device
US6983161B2 (en) 1999-09-08 2006-01-03 Nokia Corporation Method for performing frequency synchronization of a base station and a network part
JP2006242841A (en) * 2005-03-04 2006-09-14 Sony Corp Time setting system, imager, image equipment and time setting method
JP2007058705A (en) * 2005-08-26 2007-03-08 Daikin Ind Ltd Equipment management device
JP2011029756A (en) * 2009-07-22 2011-02-10 Mitsubishi Electric Corp Synchronous reference transmission terminal and reception terminal, synchronous reference sending and receiving terminal, synchronization system, and synchronization method
JP2013033374A (en) * 2011-08-02 2013-02-14 Nissin Electric Co Ltd Distributed monitoring control system
CN106385597A (en) * 2016-10-08 2017-02-08 广东欧珀移动通信有限公司 Clock adjusting method and device, terminal and multimedia synchronous playing system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6983161B2 (en) 1999-09-08 2006-01-03 Nokia Corporation Method for performing frequency synchronization of a base station and a network part
US7190963B2 (en) 1999-09-08 2007-03-13 Nokia Corporation Method for performing frequency synchronization of a base station and a network part
JP2005233662A (en) * 2004-02-17 2005-09-02 Yokogawa Electric Corp Measuring device
JP2006242841A (en) * 2005-03-04 2006-09-14 Sony Corp Time setting system, imager, image equipment and time setting method
US7821573B2 (en) 2005-03-04 2010-10-26 Sony Corporation Time setting system, imaging device, video-device, and time setting method
JP2007058705A (en) * 2005-08-26 2007-03-08 Daikin Ind Ltd Equipment management device
JP2011029756A (en) * 2009-07-22 2011-02-10 Mitsubishi Electric Corp Synchronous reference transmission terminal and reception terminal, synchronous reference sending and receiving terminal, synchronization system, and synchronization method
JP2013033374A (en) * 2011-08-02 2013-02-14 Nissin Electric Co Ltd Distributed monitoring control system
CN106385597A (en) * 2016-10-08 2017-02-08 广东欧珀移动通信有限公司 Clock adjusting method and device, terminal and multimedia synchronous playing system

Similar Documents

Publication Publication Date Title
CN112445127B (en) Redundancy control method of master controller
US10061345B2 (en) Apparatus and method for controlling an automated installation
EP3026515B1 (en) Programmable controller system
CZ20004382A3 (en) Fault data synchronization via peer-to-peer communications network
JP2001069159A (en) Method for applying backup link active schedule and system for controlling communication while using link active schedule
JPH07280971A (en) Monitor control system with the synchronizing function
JPH07280970A (en) Monitoring control system with time synchronizing function
KR101492910B1 (en) Method and system for ethercat-based distributed clokc synchronization
CN113630203A (en) Multi-device trigger synchronization method
CN106647228B (en) Converter station master clock fault judgment system
JPH07280969A (en) Monitoring control system with time synchronizing function
JPS6352089A (en) Time synchronizing system for network
JPS6141242A (en) Data transmission system
JP2002196991A (en) Method for synchronizing time in network
CN110768830B (en) Role switching method for time synchronization management
JPH08129563A (en) Time setting system for decentralized control system
JP2821091B2 (en) Remote monitoring control device and time synchronization device
CN111033400A (en) Control device, control method, and control program
JP2815922B2 (en) Remote monitoring and control device
KR20180100934A (en) A method for controlling transmission of goose message
JP3368691B2 (en) Data sampling synchronization method
JPH02214397A (en) Remote monitor controller
JPH09115083A (en) Remote supervisory and control equipment
KR101640142B1 (en) Time synchronizing device using the modbus gateway
JPH0898287A (en) Supervisory control equipment