JPH05165545A - System time managing device - Google Patents

System time managing device

Info

Publication number
JPH05165545A
JPH05165545A JP3334615A JP33461591A JPH05165545A JP H05165545 A JPH05165545 A JP H05165545A JP 3334615 A JP3334615 A JP 3334615A JP 33461591 A JP33461591 A JP 33461591A JP H05165545 A JPH05165545 A JP H05165545A
Authority
JP
Japan
Prior art keywords
time
external
error
setting operation
processing
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
JP3334615A
Other languages
Japanese (ja)
Inventor
Masayuki Kamae
正行 構
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 JP3334615A priority Critical patent/JPH05165545A/en
Publication of JPH05165545A publication Critical patent/JPH05165545A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate the maintenance of a time managing function or the setting of time managing accuracy, etc., even on the stage of application development or the like and further to simplify a system at the managing device of an in-system timer in a computer constructing an operation system. CONSTITUTION:The managing function of an in-system timer 2 in a computer 1 is constructed by using an application software. Concerning this managing function, external time data and a time setting completion report are inputted from a clock device 3 through an interface part 4 for terminal equipment and based on this information, a prescribed processing is selected 6. Namely, any one of processings such as a time setting processing 7 to fetch external time into system time regardless of error between the external time and the system time, correction processing 9 to correct the time of the in-system timer with the external time as a reference and abnormality processing 10 for an abnormality alarm, etc., is selected 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、オペレーションシス
テムを構築した計算機に係わり、特に外部の時計装置を
用いて計算機内部のシステム内タイマを管理する装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer having an operating system built therein, and more particularly to a device for managing an internal system timer inside a computer by using an external clock device.

【0002】[0002]

【従来の技術】一般に、コンピュータシステムにはシス
テム内タイマが内蔵されており、このシステム内タイマ
を管理する機能が必要となる。通常は、基準となる時計
装置をシステム外部に確保しておき、専用ドライバによ
りこの時計装置から定期的に外部時刻を取り込んでシス
テム内タイマを管理する構成がとられる。
2. Description of the Related Art Generally, a computer system has a built-in system timer, and a function for managing the system timer is required. Usually, a standard timepiece device is secured outside the system, and a dedicated driver regularly takes in the external time from the timepiece device to manage the in-system timer.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記の従
来の構成では、次のような問題点があった。
However, the above conventional structure has the following problems.

【0004】(1)時計装置専用のドライバやインタフ
ェースが必要となるため、システムの複雑化・コストの
増大を招来していた。
(1) Since a driver and an interface dedicated to the timepiece device are required, the system is complicated and the cost is increased.

【0005】(2)時計装置との入出力を専用ドライバ
で行っているため、アプリケーション開発等の段階にお
いて専用ドライバのメンテナンスを行う場合であって
も、オペレーションシステムに関する知識が要求される
難点がある。
(2) Since input / output with the clock device is performed by a dedicated driver, even if the dedicated driver is maintained at the stage of application development, knowledge about the operating system is required. ..

【0006】(3)アプリケーションの機能によっては
高精度の時刻管理が必要となる場合もあるにも拘わら
ず、時刻管理精度が専用ドライバに依存する難点があ
る。
(3) Despite the need for highly accurate time management depending on the function of the application, the time management accuracy depends on the dedicated driver.

【0007】この発明は、このような問題点に鑑み、オ
ペレーションシステムを構築した計算機におけるシステ
ム内タイマの管理装置において、アプリケーション開発
等の段階においても時刻管理機能のメンテナンス等を容
易化し、しかもシステム簡素化を可能とすることを目的
とする。
In view of the above-mentioned problems, the present invention facilitates maintenance of the time management function even in the stage of application development, etc. in the management device for the in-system timer in the computer in which the operation system is constructed, and the system is simple. The purpose is to enable conversion.

【0008】[0008]

【課題を解決するための手段】この発明に係るシステム
時刻管理装置は、図1に示すように、オペレーションシ
ステムを構築した計算機1におけるシステム内タイマ2
を管理対象とし、外部の時計装置3から入力される外部
時刻情報および時刻設定操作有無情報を用いて管理を行
う装置であって、次の措置を講じたものである。
As shown in FIG. 1, a system time management apparatus according to the present invention has an internal system timer 2 in a computer 1 having an operating system.
Is a management target, and is managed by using the external time information and the time setting operation presence / absence information input from the external clock device 3, and the following measures are taken.

【0009】(1)計算機1は、時計装置3との間のデ
ータ入出力を行う端末接続用インタフェース部4を備え
ると共に、前記オペレーションシステムを利用するアプ
リケーションソフトウエアを用いてシステム時刻管理手
段5を構築している。
(1) The computer 1 is provided with a terminal connection interface section 4 for inputting / outputting data to / from the timepiece device 3, and a system time management means 5 using application software utilizing the operation system. I'm building.

【0010】(2)システム時刻管理手段5は、次の要
素を備えている。
(2) The system time management means 5 has the following elements.

【0011】a.時刻設定操作有無情報に基づいて時刻
設定手段7および誤差判定手段8のいずれか一方を選択
する処理選択手段6。
A. Process selecting means 6 for selecting either one of the time setting means 7 and the error determining means 8 based on the time setting operation presence / absence information.

【0012】b.時刻設定操作有りのときに選択され、
外部時刻を基準としてシステム内タイマ2の時刻を設定
する時刻設定手段7。
B. Selected when there is a time setting operation,
Time setting means 7 for setting the time of the in-system timer 2 with reference to the external time.

【0013】c.時刻設定操作無しのときに選択され、
外部時刻およびシステム内タイマの時刻の誤差が許容範
囲内であるか否かを判別し、この判別結果により時刻補
正手段9および異常処理手段10のいずれか一方を選択
する誤差判定手段8。
C. Selected when there is no time setting operation,
An error determination unit 8 that determines whether or not the error between the external time and the time of the system timer is within an allowable range, and selects either the time correction unit 9 or the abnormality processing unit 10 based on the determination result.

【0014】d.誤差が許容範囲内のときに選択され、
外部時刻を基準としてシステム内タイマの時刻を補正す
る時刻補正手段9。
D. Selected when the error is within tolerance,
Time correction means 9 for correcting the time of the internal timer with reference to the external time.

【0015】e.誤差が許容範囲を越えるときに選択さ
れ、異常通報出力処理その他の異常処理を行う異常処理
手段10。
E. Abnormality processing means 10 which is selected when the error exceeds the allowable range and performs abnormal notification output processing and other abnormal processing.

【0016】[0016]

【作用】この発明によれば、計算機1におけるシステム
内タイマ2の管理機能をアプリケーションソフトウエア
を用いて構築している。すなわち、端末接続用インタフ
ェース部4を介して時計装置3から外部時刻情報および
時刻設定操作有無情報を入力し、これらの情報に基づい
て所定の処理を選択する。時計装置3で時刻設定操作が
行われた場合、その設定後の時刻である外部時刻をシス
テム内タイマの時刻にセットする。時刻設定操作が行わ
れてない場合も、外部時刻を基準としてシステム内タイ
マの時刻を補正する処理が選択されるが、両時刻の誤差
が許容範囲を超えているときは、異常が発生したものと
して異常警報等の異常処理を選択する。
According to the present invention, the management function of the in-system timer 2 in the computer 1 is constructed by using the application software. That is, the external time information and the time setting operation presence / absence information are input from the timepiece device 3 via the terminal connection interface unit 4, and a predetermined process is selected based on these information. When the time setting operation is performed on the timepiece device 3, the external time, which is the time after the setting, is set to the time of the in-system timer. Even if the time setting operation is not performed, the process of correcting the time of the in-system timer based on the external time is selected, but if the error between both times exceeds the allowable range, an error has occurred. Is selected as an abnormal process such as an abnormal alarm.

【0017】[0017]

【実施例】以下、この発明の実施例を詳細に説明する。Embodiments of the present invention will be described in detail below.

【0018】図2は、この発明の一実施例に係る計算機
のシステム構成の要部を示す。計算機1において、11
は主制御を行うCPU、12はROM,RAMよりなる
メインメモリ、2はタイマ部である。インタフェース部
4は、時計装置3に接続するためのものであり、たとえ
ばRS−232Cインタフェースを用いる。すなわち、
専用のドライバやインタフェースを使用することなく、
時計装置3を計算機1の端末装置の1つとして扱うこと
としている。メインメモリ12には、オペレーションシ
ステム機能やアプリケーション機能等を構築するための
プログラムや各種データが格納されている。アプリケー
ションプログラムには、システム時刻管理処理手順が含
まれている。
FIG. 2 shows a main part of a system configuration of a computer according to an embodiment of the present invention. In Calculator 1, 11
Is a CPU for main control, 12 is a main memory including ROM and RAM, and 2 is a timer unit. The interface unit 4 is for connecting to the timepiece device 3, and uses, for example, an RS-232C interface. That is,
Without using a dedicated driver or interface
The clock device 3 is treated as one of the terminal devices of the computer 1. The main memory 12 stores programs and various data for constructing operation system functions, application functions, and the like. The application program includes a system time management processing procedure.

【0019】図3は、システム時刻管理処理の概要を示
す。この図に示すように、たとえば定期的に時計装置3
から時刻データ(外部時刻データ)を入力する(S
1)。時計装置3からは、外部時刻データの他に、時計
装置3側で時刻設定があった場合にその旨を示す時刻設
定完了通知が入力されるものとする。時計装置3からの
入力が終ると、この時刻設定完了通知の有無を確認する
(S2)。この通知がある場合は時刻設定処理(S3)
に進む。この時刻誤差補正処理では、時計装置3側で新
たに設定された外部時刻をタイマ部2に設定する。また
時刻設定完了通知がない場合は時刻誤差補正処理に進む
(S4)。
FIG. 3 shows an outline of the system time management process. As shown in this figure, for example, the timepiece device 3 is regularly used.
Input time data (external time data) from (S
1). It is assumed that, in addition to the external time data, a time setting completion notification indicating that there is a time setting on the time device 3 side is input from the time device 3 from the external time data. When the input from the clock device 3 is completed, it is confirmed whether or not there is this time setting completion notification (S2). If there is this notification, the time setting process (S3)
Proceed to. In this time error correction processing, the external time newly set on the timepiece device 3 side is set in the timer unit 2. If there is no time setting completion notification, the process proceeds to time error correction processing (S4).

【0020】図4は、時刻誤差補正処理の概要を示す。
この図に示すように、まず外部時刻とシステム内時刻と
の時刻誤差ΔTを求める(S1)。次に、あらかじめ設
定された許容誤差TSETと時刻誤差ΔTを比較し(S
2)、誤差ΔTが許容範囲内であればシステム時刻を外
部時刻に基づいて補正する(S3)。もし、誤差ΔTが
許容範囲を超過した場合、システム時刻異常処理を行う
(S4)。この処理では、異常警報の通知その他、シス
テムに適した方式を採用して柔軟に対応することが可能
である。
FIG. 4 shows an outline of the time error correction processing.
As shown in this figure, first, the time difference ΔT between the external time and the system internal time is obtained (S1). Next, the preset allowable error T SET is compared with the time error ΔT (S
2) If the error ΔT is within the allowable range, the system time is corrected based on the external time (S3). If the error ΔT exceeds the allowable range, system time abnormality processing is performed (S4). In this processing, it is possible to flexibly deal with notification of an abnormal alarm and other methods suitable for the system.

【0021】図5は、二重系システムへのこの実施例の
適用を示す。二重系システムは、A系の計算機1AとB
系の計算機1Bを備えている。両方に同一の処理を実行
させ、一方が故障した際、他方が実処理を受け継いで処
理動作を継続させるものである。このシステムでは、A
系およびB系の両方の処理動作の同一性を確保すること
が要点となるが、この実施例を適用すれば、時計装置3
の時刻設定を行うことにより両計算機1A,1Bのシス
テム内時刻を整合させることが可能となる。この場合、
時計装置3は、計算機1A,1Bの両方に時刻設定完了
通知を出力したことを確認した後、時刻設定完了通知の
出力を解除する構成をとればよい。
FIG. 5 shows the application of this embodiment to a dual system. The dual system is the A system computer 1A and B
The system computer 1B is provided. Both are made to execute the same processing, and when one fails, the other inherits the actual processing and continues the processing operation. In this system, A
It is essential to ensure the sameness of processing operations of both the B-system and the B-system, but if this embodiment is applied, the timepiece device 3
By setting the time, the system times of both computers 1A and 1B can be matched. in this case,
The timepiece device 3 may be configured to cancel the output of the time setting completion notification after confirming that the time setting completion notification has been output to both the computers 1A and 1B.

【0022】[0022]

【発明の効果】以上説明したようにこの発明によれば、
オペレーションシステムを利用するアプリケーションソ
フトウエアを用いてシステム時刻管理手段を構築するこ
ととしているので、時刻管理のメンテナンスや管理精度
設定などの作業の容易性が向上し、人的資源の効率的利
用に寄与する。また、専用のドライバやインタフェース
が不要となるので、システムの簡素化・低廉化を促進す
る。
As described above, according to the present invention,
Since the system time management means is constructed by using the application software that uses the operation system, the workability of time management maintenance and management accuracy setting is improved, contributing to the efficient use of human resources. To do. In addition, a dedicated driver and interface are not required, which facilitates simplification and cost reduction of the system.

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

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

【図2】この発明の一実施例に係る計算機のシステム構
成の要部を示すブロック図。
FIG. 2 is a block diagram showing a main part of a system configuration of a computer according to an embodiment of the present invention.

【図3】システム時刻管理処理の概要を示すフローチャ
ート。
FIG. 3 is a flowchart showing an outline of system time management processing.

【図4】時刻誤差補正処理の概要を示すフローチャー
ト。
FIG. 4 is a flowchart showing an outline of time difference correction processing.

【図5】二重系システムへのこの実施例の適用を示すブ
ロック図。
FIG. 5 is a block diagram showing the application of this embodiment to a dual system.

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

1…計算機 2…システム内タイマ 3…時計装置 4…端末接続用インタフェース部 5…システム時刻管理手段 6…処理選択手段 7…時刻設定手段 8…誤差判定手段 9…時刻補正手段 10…異常処理手段 DESCRIPTION OF SYMBOLS 1 ... Computer 2 ... In-system timer 3 ... Clock device 4 ... Terminal connection interface unit 5 ... System time management means 6 ... Process selection means 7 ... Time setting means 8 ... Error determination means 9 ... Time correction means 10 ... Abnormality processing means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 オペレーションシステムを構築した計算
機におけるシステム内タイマを管理対象とし、外部の時
計装置から入力される外部時刻情報および時刻設定操作
有無情報を用いて管理を行う装置であって、 前記計算機は、前記時計装置との間のデータ入出力を行
う端末接続用インタフェース部を備えると共に、前記オ
ペレーションシステムを利用するアプリケーションソフ
トウエアを用いてシステム時刻管理手段を構築し、 このシステム時刻管理手段として、時刻設定操作有無情
報に基づいて時刻設定手段および誤差判定手段のいずれ
か一方を選択する処理選択手段と、時刻設定操作有りの
ときに選択され、外部時刻を基準としてシステム内タイ
マの時刻を設定する時刻設定手段と、時刻設定操作無し
のときに選択され、外部時刻およびシステム内タイマの
時刻の誤差が許容範囲内であるか否かを判別し、この判
別結果により時刻補正手段および異常処理手段のいずれ
か一方を選択する誤差判定手段と、誤差が許容範囲内の
ときに選択され、外部時刻を基準としてシステム内タイ
マの時刻を補正する時刻補正手段と、誤差が許容範囲を
越えるときに選択され、異常通報出力処理その他の異常
処理を行う異常処理手段とを備えたことを特徴とするシ
ステム時刻管理装置。
1. A device for managing an in-system timer in a computer having an operating system, which is managed by using external time information and time setting operation presence / absence information input from an external clock device. Includes a terminal connection interface unit for inputting and outputting data to and from the clock device, and constructs a system time management means using application software that uses the operation system, and as the system time management means, A process selecting means for selecting either one of the time setting means and the error determining means based on the time setting operation presence / absence information, and a time selected by the time setting operation, and the time of the in-system timer is set based on the external time. It is selected when there is no time setting operation and time setting operation, and the external time and When the error in the time of the in-system timer is determined whether it is within the allowable range, the error determination means that selects one of the time correction means and the abnormality processing means based on the determination result, and And a time correction means for correcting the time of the in-system timer on the basis of the external time, and an abnormality processing means selected when the error exceeds the allowable range and performing abnormality notification output processing and other abnormality processing. A system time management device characterized by the above.
JP3334615A 1991-12-18 1991-12-18 System time managing device Pending JPH05165545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3334615A JPH05165545A (en) 1991-12-18 1991-12-18 System time managing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3334615A JPH05165545A (en) 1991-12-18 1991-12-18 System time managing device

Publications (1)

Publication Number Publication Date
JPH05165545A true JPH05165545A (en) 1993-07-02

Family

ID=18279360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3334615A Pending JPH05165545A (en) 1991-12-18 1991-12-18 System time managing device

Country Status (1)

Country Link
JP (1) JPH05165545A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07325641A (en) * 1994-06-02 1995-12-12 Hanshin Electric Co Ltd Controller using ceramic oscillator
US7257393B2 (en) 2005-02-28 2007-08-14 Fujitsu Limited Method and apparatus for time calibration
US7555651B2 (en) 2003-05-28 2009-06-30 Fujitsu Limited Time management apparatus and time management method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07325641A (en) * 1994-06-02 1995-12-12 Hanshin Electric Co Ltd Controller using ceramic oscillator
US7555651B2 (en) 2003-05-28 2009-06-30 Fujitsu Limited Time management apparatus and time management method
US7257393B2 (en) 2005-02-28 2007-08-14 Fujitsu Limited Method and apparatus for time calibration

Similar Documents

Publication Publication Date Title
JPH03244003A (en) Partial executing method for programmable controller and sequence program
US7415323B2 (en) Control apparatus and program for vehicles, and method for developing the program
US8959252B2 (en) Method for configuring a field device and corresponding system for parameterization
JPH05165545A (en) System time managing device
JPH09134213A (en) Plant state visualization system
US10884840B2 (en) Controlled monitoring based on root cause analysis recommendations
US20030066048A1 (en) Computer controlled display system for controlling and tracking of software program objects through a displayed sequence of build events and enabling user registration to perform actions on said build events
JP5452836B2 (en) Qualification examination system, its examination method and qualification examination apparatus
JP3256538B2 (en) Diagnostic system
JP4417490B2 (en) Time management control system, time management device and terminal device thereof
CN117112977A (en) Matrix operation system, method, equipment and medium
JPH05225094A (en) Buffer pool control system for communication control system
JPH02109101A (en) Monitoring device
CN114116748A (en) Information processing method, information processing device, electronic equipment and storage medium
JPS6286440A (en) Control system
JP2001100998A (en) Computer system
CN115470031A (en) Abnormal event correction method, device, equipment and medium
JP2020198704A (en) Protection control device, protection control system and operation management method of protection control device
KR20190100534A (en) System for terminal access based beacon using protocol for Internet of Things, Method thereof, and Compueter readable storage medium having the same
JPH02178803A (en) Pc coupling system
JPH07319708A (en) Transmitting device
JPH10187496A (en) Remote supervisory and control system
JPS5972559A (en) Master/slave deciding system of computers
JPH11288381A (en) Remote monitoring system for software
JP2003058245A (en) Monitoring and controlling device