JPS63220312A - Control device for real time clock module - Google Patents
Control device for real time clock moduleInfo
- Publication number
- JPS63220312A JPS63220312A JP62053679A JP5367987A JPS63220312A JP S63220312 A JPS63220312 A JP S63220312A JP 62053679 A JP62053679 A JP 62053679A JP 5367987 A JP5367987 A JP 5367987A JP S63220312 A JPS63220312 A JP S63220312A
- Authority
- JP
- Japan
- Prior art keywords
- time information
- time
- clock module
- real
- time clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000005856 abnormality Effects 0.000 claims abstract description 14
- 230000002159 abnormal effect Effects 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 description 1
- 101150065817 ROM2 gene Proteins 0.000 description 1
- 101150040617 RTC4 gene Proteins 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Electric Clocks (AREA)
Abstract
Description
【発明の詳細な説明】
(発明の分野)
この発明は、リアルタイム・クロックモジュールを内蔵
した制御システムにおいて、モジュールで生成された時
刻情報に異常が生じたとき、これを迅速に復旧できるよ
うにした管理装置に関する。[Detailed Description of the Invention] (Field of the Invention) The present invention provides a control system with a built-in real-time clock module that can quickly recover when an abnormality occurs in time information generated by the module. Regarding a management device.
(発明の概要)
この発明では、リアルタイム・クロックモジュールで生
成される時刻情報を一定微小時間毎に読出し、その内容
により所定の時刻レジスタの内容を更新し、またモジュ
ールで生成された時刻情報に異常が生じたとき、所定の
リセット指令が与えられることを条件として、時刻レジ
スタに保存された時刻情報をリアルタイム・クロックモ
ジュールに初期設定するようにしたものである。(Summary of the Invention) In this invention, time information generated by a real-time clock module is read out at regular minute intervals, the contents of a predetermined time register are updated based on the read contents, and an error occurs in the time information generated by the module. When this occurs, the time information stored in the time register is initialized in the real-time clock module on the condition that a predetermined reset command is given.
(従来技術とその問題点)
従来、リアルタイム・クロックモジュールを内蔵した制
御システムにおいては、リアルタイム・クロックモジュ
ールで生成される時刻情報を一定微小時間毎に読出し、
時刻情報を構成する日1時。(Prior art and its problems) Conventionally, in a control system with a built-in real-time clock module, time information generated by the real-time clock module is read out at regular minute intervals,
1 o'clock on the day that constitutes the time information.
時刻がそれぞれ規定範囲に収まるか否かに基づいて当該
時刻情報の正常、異常を判定するようにしている。It is determined whether the time information is normal or abnormal based on whether the time falls within a specified range or not.
そして、異常が判定された場合には、例えばブザーを鳴
動する等によりオペレータにその旨を知らせ、オペレー
タのキー操作などを介して正しい時刻情報をリアルタイ
ム・クロックモジュールに設定し直すようにしている。If an abnormality is determined, the operator is notified of this by, for example, sounding a buzzer, and the correct time information is reset to the real-time clock module through the operator's key operations.
しかしながら、このような従来のモジュール管理方法に
あっては時刻情報の再設定に手間がかかり、迅速性に欠
ける等の問題点があった。However, in such a conventional module management method, there are problems such as it takes time and effort to reset the time information and lacks promptness.
(発明の目的)
この発明は、この種のリアルタイム・クロックモジュー
ルを内蔵した制御システムにおいて、モジュールで生成
される時刻情報に異常が生じた場合、これを迅速に復旧
することができるようにしたリアルタイム◆クロックモ
ジュールの管理装置を提供することにある。(Object of the Invention) The present invention provides a real-time clock module that is capable of quickly recovering when an abnormality occurs in the time information generated by the module in a control system incorporating this type of real-time clock module. ◆Providing a clock module management device.
(発明の構成と効果)
この発明は上記の目的を達成するために、リアルタイム
・クロックモジュールを内蔵した制御システムにおいて
、
リアルタイム・クロックモジュールで生成される時刻情
報を一定微小時間毎に読出し、その内容により所定の時
刻レジスタの内容を更新する手段と、
リアルタイム・クロックモジュールで生成された時刻情
報に異常が生じたことを検出する手段と、異常が生じた
ことが検出されたときには、所定のリセット指令が与え
られることを条件として、時刻レジスタに保存された時
刻情報をリアルタイム・クロックモジュールに初期設定
する手段と、を具備することを特徴とするものである。(Structure and Effects of the Invention) In order to achieve the above object, the present invention, in a control system incorporating a real-time clock module, reads time information generated by the real-time clock module at regular minute intervals, and reads out its contents. means for updating the contents of a predetermined time register by the real-time clock module; means for detecting that an abnormality has occurred in the time information generated by the real-time clock module; and means for issuing a predetermined reset command when an abnormality is detected. The present invention is characterized by comprising means for initializing time information stored in the time register in the real-time clock module on the condition that the time information is given.
このような構成によれば、この種のリアルタイム・クロ
ックモジュールを内蔵した制御システムにおいて、モジ
ュールで生成される時刻情報に異常が生じた場合、これ
を迅速に復旧することができるという効果がある。According to such a configuration, in a control system incorporating this type of real-time clock module, if an abnormality occurs in the time information generated by the module, it is possible to quickly recover from the abnormality.
(実施例の説明)
第1図はリアルタイム・クロックモジュールを内蔵した
制御システム全体の構成を概略的に示すブロック図であ
る。(Description of Embodiments) FIG. 1 is a block diagram schematically showing the configuration of the entire control system incorporating a real-time clock module.
同図に示されるようにこのシステムは、マイクロプロセ
ッサを主体として構成された中央処理ユニット(以下、
CPtJという)1.制御プログラム等を格納させたR
OM2.ワーキングエリア等として使用され、本発明で
は時刻レジスタが内蔵されるRAM3.時刻情報を生成
するリアルタイム・クロックモジュール(以下、RTC
という)4を備えており、これらの構成要素によって制
御対象5を制御するようになされている。As shown in the figure, this system consists of a central processing unit (hereinafter referred to as
(referred to as CPtJ)1. R that stores control programs, etc.
OM2. RAM 3. which is used as a working area etc. and which has a built-in time register in the present invention. Real-time clock module (hereinafter referred to as RTC) that generates time information
) 4, and the controlled object 5 is controlled by these components.
そして、CPU1ではROM2に格納された制御プログ
ラムを実行することによって、制御対象5に対する各種
の制御を行なうとともに、RTC4から読込まれた時刻
情報に基づき、制御対象5に時刻を表示させたり、ある
いは各種の時間管理制御などを行なうようになされてい
る。The CPU 1 performs various controls on the controlled object 5 by executing the control program stored in the ROM 2, and also causes the controlled object 5 to display the time based on the time information read from the RTC 4, or performs various controls. It is designed to perform time management control, etc.
以上の構成において、特に本発明にあっては、ROM2
内に新たに第2図に示されるような管理プログラムを設
けることによって、RTC4で生成された時刻情報の異
常に迅速に対処しようとするものである。In the above configuration, especially in the present invention, the ROM2
By newly providing a management program as shown in FIG. 2 in the RTC 4, abnormalities in the time information generated by the RTC 4 can be quickly dealt with.
すなわち、第2図の制御プログラムは、定時割込みによ
って1秒〜1分間隔で繰り返し実行される。That is, the control program shown in FIG. 2 is repeatedly executed at intervals of 1 second to 1 minute by means of scheduled interruptions.
プログラムがスタートされるとまずRTC4で生成され
た時刻情報の読込が行なわれる(ステップ201)。こ
の時刻情報は、月1日1時2分。When the program is started, time information generated by the RTC 4 is first read (step 201). This time information is 1:02 on the 1st of the month.
秒情報からなっている。Consists of second information.
続いて、読込まれた時刻情報について、その正誤の判定
が行なわれる(ステップ202)。この判定は、1≦月
≦12,1≦日≦31,0≦時≦23、O≦分≦59,
0≦秒≦59を確認することによって行なわれる。Subsequently, it is determined whether the read time information is correct or incorrect (step 202). This determination is as follows: 1≦month≦12, 1≦day≦31, 0≦hour≦23, O≦minute≦59,
This is done by checking that 0≦seconds≦59.
確認の結果、全ての情報が正しいと判定されれば(ステ
ップ203肖定)、読込まれた時刻情報は、RAM3内
に設定された時刻レジスタに保存される(ステップ20
4)。As a result of the confirmation, if all the information is determined to be correct (step 203), the read time information is saved in the time register set in the RAM 3 (step 20).
4).
RTC4が正常な場合、以上説明したステップ201〜
204の処理が一定微小時間毎に繰り返され、その都度
RAMa内の時刻レジスタの内容は、新たな時刻情報に
よって更新されることとなる。If RTC4 is normal, steps 201~ explained above
The process of 204 is repeated at regular intervals, and each time the contents of the time register in RAMa are updated with new time information.
なお、RAMa内に設けられた時刻レジスタは、バッテ
リによってバックアップされており、停電時においても
その内容が保持される。Note that the time register provided in RAMa is backed up by a battery, and its contents are retained even in the event of a power outage.
一方、RTCから読込まれた時刻情報の正誤を判定した
結果、これが異常と判定された場合には(ステップ20
3否定)、直ちに制御対象5に設けられた表示器におい
て時刻情報の異常が表示され、同時にブザー等によって
オペレータに対しその旨が報知される(ステップ205
)。On the other hand, as a result of determining whether the time information read from the RTC is correct or not, if this is determined to be abnormal (step 20
3 (No), the time information abnormality is immediately displayed on the display provided in the controlled object 5, and at the same time, the operator is notified of this by a buzzer or the like (step 205).
).
その後、CPUIでは、図示しないリセットスイッチの
押下を待機する状態となる(ステップ206否定)。Thereafter, the CPU enters a state in which it waits for a reset switch (not shown) to be pressed (No in step 206).
この状態において、オペレータがリセットスイッチを押
下すると(ステップ206肯定)、CPU1ではRAM
3の時刻レジス々から、ステップ204で保存された最
新の時刻情報を読出し、これをRTCに書込むことによ
って、RTC4に対する現時刻初期設定を行なう(ステ
ップ207)。In this state, when the operator presses the reset switch (step 206 affirmative), the CPU 1
The latest time information saved in step 204 is read from the time registers 3 and written to the RTC, thereby initializing the current time for the RTC 4 (step 207).
なお、RTC4に対する時刻情報の書込処理については
周知であるから説明は省略する。Note that the process of writing time information to the RTC 4 is well known, so a description thereof will be omitted.
このように本実施例によれば、この種の制御システムに
おいてノイズ等によりRTC4で生成される時刻情報に
異常が生じた場合、オペレータはリセットスイッチを押
下するだけで直ちにRTC4を正常な状態に復旧させる
ことができ、月1日。As described above, according to this embodiment, if an abnormality occurs in the time information generated by the RTC 4 due to noise or the like in this type of control system, the operator can immediately restore the RTC 4 to a normal state by simply pressing the reset switch. Can be done on the 1st of the month.
時2分1秒をそれぞれキー人力せねばならなかった従来
例に比べ、この種の復旧処理を迅速に達成することがで
きる。This type of recovery processing can be accomplished more quickly than in the conventional example, in which key manual input was required for each hour and minute and second.
なお、以上の実施例ではリセットスイッチの押下を待っ
て現時刻初期設定を行なったが、リセット指令を自動的
に内部で生成しこれにより現時刻初期設定を行なわせて
もよい。In the above embodiments, the current time initial setting is performed after waiting for the reset switch to be pressed, but the current time initial setting may be performed by automatically generating a reset command internally.
第1図は本発明が適用された制御システムの構成を概略
的に示すブロック図、第2図は本発明に係わるリアルタ
イム・クロックモジュール管理処理の詳細を示すフロー
チャートである。
1・・・CPU
2・・・ROM
3・・・RAM
4・・・RTC
5・・・制御対象
第1図FIG. 1 is a block diagram schematically showing the configuration of a control system to which the present invention is applied, and FIG. 2 is a flowchart showing details of real-time clock module management processing according to the present invention. 1...CPU 2...ROM 3...RAM 4...RTC 5...Controlled object Figure 1
Claims (1)
御システムにおいて、 リアルタイム・クロックモジュールで生成される時刻情
報を一定微小時間毎に読出し、その内容により所定の時
刻レジスタの内容を更新する手段と、 リアルタイム・クロックモジュールで生成された時刻情
報に異常が生じたことを検出する手段と、異常が生じた
ことが検出されたときには、所定のリセット指令が与え
られることを条件として、時刻レジスタに保存された時
刻情報をリアルタイム・クロックモジュールに初期設定
する手段と、を具備することを特徴とするリアルタイム
・クロックモジュールの管理装置。(1) In a control system incorporating a real-time clock module, a means for reading time information generated by the real-time clock module at fixed minute intervals and updating the contents of a predetermined time register according to the read time information, and a real-time clock. Means for detecting that an abnormality has occurred in the time information generated by the module, and time information stored in the time register, provided that a predetermined reset command is given when the abnormality is detected. A real-time clock module management device, comprising: means for initializing the real-time clock module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62053679A JPH07113866B2 (en) | 1987-03-09 | 1987-03-09 | Real-time clock module management device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62053679A JPH07113866B2 (en) | 1987-03-09 | 1987-03-09 | Real-time clock module management device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63220312A true JPS63220312A (en) | 1988-09-13 |
JPH07113866B2 JPH07113866B2 (en) | 1995-12-06 |
Family
ID=12949505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62053679A Expired - Lifetime JPH07113866B2 (en) | 1987-03-09 | 1987-03-09 | Real-time clock module management device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07113866B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104639847A (en) * | 2015-03-04 | 2015-05-20 | 福建捷联电子有限公司 | Device and method for automatically switching television wall signal based on low-power consumption design of RTC (real time clock) |
-
1987
- 1987-03-09 JP JP62053679A patent/JPH07113866B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104639847A (en) * | 2015-03-04 | 2015-05-20 | 福建捷联电子有限公司 | Device and method for automatically switching television wall signal based on low-power consumption design of RTC (real time clock) |
Also Published As
Publication number | Publication date |
---|---|
JPH07113866B2 (en) | 1995-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63220312A (en) | Control device for real time clock module | |
JPS59140572A (en) | Electronic apparatus | |
JPS6249518A (en) | Trouble diagnosis unit for programmable controller | |
EP0189487B1 (en) | Method of automatically forwarding display pictures | |
GB2260627A (en) | Data integrity in a project control apparatus | |
JPH09204205A (en) | Program control system | |
JPS6161455B2 (en) | ||
JP3101349B2 (en) | Electronic device and control method for electronic device | |
JPH07122839B2 (en) | Data processing device | |
JP2811906B2 (en) | Vending machine data error notification control device | |
JP2011129056A (en) | Display | |
JPS6329825A (en) | Interactive processing system | |
JP3452708B2 (en) | Programmable controller | |
JPH0436849A (en) | Memory diagnostic method | |
JPH02287216A (en) | Monitoring apparatus for plant | |
JPH05158522A (en) | Numerical controller | |
JPS63257042A (en) | Memory device for history of key operation | |
JPS63109550A (en) | Starting system for memory damp program of information processing unit | |
JPS601678B2 (en) | Processing method when power is cut off | |
JPH01177616A (en) | System for storing key operation procedure | |
JPH07271411A (en) | Fault diagnostic device for programmable controller | |
JPH09204342A (en) | Database matching system for supervisory control system | |
JPH02197932A (en) | Regenerating device for abnormal phenomenon of computer | |
JPH0679313B2 (en) | Trading equipment | |
JPH01126709A (en) | Data processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |