JP2740733B2 - Control device with clock function - Google Patents

Control device with clock function

Info

Publication number
JP2740733B2
JP2740733B2 JP5331722A JP33172293A JP2740733B2 JP 2740733 B2 JP2740733 B2 JP 2740733B2 JP 5331722 A JP5331722 A JP 5331722A JP 33172293 A JP33172293 A JP 33172293A JP 2740733 B2 JP2740733 B2 JP 2740733B2
Authority
JP
Japan
Prior art keywords
time
capacitor
discharge amount
discharge
power
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 - Fee Related
Application number
JP5331722A
Other languages
Japanese (ja)
Other versions
JPH07191159A (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.)
Rinnai Corp
Original Assignee
Rinnai 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 Rinnai Corp filed Critical Rinnai Corp
Priority to JP5331722A priority Critical patent/JP2740733B2/en
Publication of JPH07191159A publication Critical patent/JPH07191159A/en
Application granted granted Critical
Publication of JP2740733B2 publication Critical patent/JP2740733B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、任意に設定した時刻に
被制御機器を制御することができる時計機能を備えた制
御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device having a clock function for controlling a controlled device at an arbitrarily set time.

【0002】[0002]

【従来の技術】例えば、時計機能付制御装置が備えられ
ているファンヒータは、使用者が任意の時刻を設定し、
所謂タイマモードにしておくことにより、設定した時刻
にファンヒータの運転を開始或いは停止することが可能
である。この種の時計機能付制御装置は、現在の時刻を
計時する時計手段と、任意の時刻を設定する時刻設定手
段と、現在の時刻が任意に設定した時刻と一致した時に
被制御機器を制御するマイクロコンピュータ等の運転制
御手段とを備えている。
2. Description of the Related Art For example, a fan heater provided with a control device having a clock function allows a user to set an arbitrary time,
By setting a so-called timer mode, it is possible to start or stop the operation of the fan heater at a set time. This type of control device with a clock function controls a clock device that measures the current time, a time setting device that sets an arbitrary time, and controls the controlled device when the current time matches an arbitrarily set time. Operation control means such as a microcomputer.

【0003】ところで、タイマモードに設定してある時
に停電した場合、時計手段や時刻設定手段への給電が停
止されると、時計手段の時刻や時刻設定手段の時刻が初
期値に戻ってしまい、復電時に現在の時刻と設定時刻と
を再びセットし直さなければならない煩わしさがある。
By the way, if a power failure occurs while the timer mode is set, if the power supply to the clock means and the time setting means is stopped, the time of the clock means and the time of the time setting means return to the initial values. There is an annoyance that the current time and the set time have to be set again when the power is restored.

【0004】そこで、前記運転制御手段により、停電時
に、タイマモードの選択の有無を示す情報と、時計手段
の現在の時刻と、時刻設定手段の設定時刻とをEEPR
OM(不揮発性記憶手段)に書き込み、復電時にEEP
ROMからそれらの情報を読み出して、現在の時刻と設
定時刻とを自動的にセットし直すことが望まれる。
[0004] In view of the above, at the time of a power failure, the operation control means sets the information indicating whether or not the timer mode has been selected, the current time of the clock means, and the set time of the time setting means as EEPR.
Write to OM (non-volatile storage means) and EEP when power is restored
It is desired to read out such information from the ROM and automatically reset the current time and the set time.

【0005】しかし、制御装置の給電を0.5秒間バッ
クアップするコンデンサがあれば、停電になった直後
に、タイマモードの選択の有無、現在の時刻、設定時刻
等の情報をEEPROMに書き込むことは可能である
が、停電になっていた時間がわからないため、復電時に
EEPROMに記憶されている情報により時計手段の時
刻と時刻設定手段の時刻とを自動的にセットし直すもの
では、以下に示すような不都合が発生する場合がある。
However, if there is a capacitor that backs up the power supply of the control device for 0.5 second, it is not possible to write information such as the selection of the timer mode, the current time, and the set time to the EEPROM immediately after the power failure. Although it is possible, since the time of the power outage is not known, when the power is restored, the time of the clock means and the time of the time setting means are automatically reset based on the information stored in the EEPROM. Such inconvenience may occur.

【0006】即ち、停電時間が非常に長かった場合、E
EPROMに記憶されていた時計手段の時刻と復電時の
現在時刻とにズレが生じ、設定時刻が使用者の所望する
時刻よりも大幅に遅れてしまう不都合がある。また、フ
ァンヒータの場合、寒冷期間が過ぎて収納する際、タイ
マモードのまま電源プラグをコンセントから抜くと、次
回の使用時に電源プラグをコンセントに接続したとき復
電時と同一の状態となるため、電源プラグをコンセント
から抜いた時に記憶されたEEPROMの情報に従って
時計手段の時刻と時刻設定手段の時刻とがセットされて
しまい、使用者の意図とは関係なく時刻設定手段の設定
時刻に従ってファンヒータの運転が開始或いは停止され
てしまう。
That is, if the power outage time is very long, E
There is a discrepancy between the time of the clock means stored in the EPROM and the current time at the time of power recovery, and there is an inconvenience that the set time is significantly delayed from the time desired by the user. In addition, in the case of a fan heater, if the power plug is disconnected from the outlet in the timer mode when storing it after the cold period, it will be in the same state as when power is restored when the power plug is connected to the outlet the next time it is used The time of the clock means and the time of the time setting means are set according to the information stored in the EEPROM when the power plug is disconnected from the outlet, and the fan heater is set according to the time set by the time setting means regardless of the user's intention. Operation is started or stopped.

【0007】尚、上記のような不都合を解消するため
に、停電時に前記制御装置の給電をバックアップするコ
ンデンサを設け、該コンデンサからの給電により停電中
であっても前記制御装置に通電された状態を維持するよ
うにしたものがある。例えば、少なくとも3分間までの
停電に対応するために、3分間の給電が可能となる容量
のコンデンサを設けることにより、3分以内の停電であ
れば、停電中も現在時間を計時することができる。
[0007] In order to solve the above-mentioned inconvenience, a capacitor is provided to back up the power supply of the control device at the time of power failure. There are things that try to maintain. For example, by providing a capacitor having a capacity capable of supplying power for three minutes in order to cope with a power failure for at least three minutes, if a power failure occurs within three minutes, the current time can be measured even during the power failure. .

【0008】しかし、一般に、制御装置への給電を3分
間もバックアップできるような大容量コンデンサは、非
常に高価であり、製品のコストが増加する不都合があ
る。
However, in general, a large-capacity capacitor capable of backing up the power supply to the control device for three minutes is very expensive and has a disadvantage of increasing the cost of the product.

【0009】[0009]

【発明が解決しようとする課題】かかる不都合を解消し
て、本発明は、タイマモードが設定されている時に停電
しても、大容量コンデンサのバックアップによることな
く、停電時間の長さに応じた制御を行うことができる、
安価で構成が簡単な時計機能付制御装置を提供すること
を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances and solves the above-mentioned inconvenience. Can control,
An object of the present invention is to provide a control device with a clock function which is inexpensive and has a simple configuration.

【0010】[0010]

【課題を解決するための手段】かかる目的を達成するた
めに、本発明は、現在の時刻を計時する時計手段と、任
意の時刻を設定する時刻設定手段と、通電時に充電さ
れ、停電時に放電されるコンデンサと、現在の時刻が任
意に設定した時刻と一致した時に被制御機器を所定の動
作に制御するタイマモードが選択可能な運転制御手段
と、タイマモードの選択の有無の情報、時計手段の時刻
の情報、時刻設定手段の設定時刻の情報、該コンデンサ
の放電時間と放電量との関係を示すデータを夫々記憶す
る不揮発性の記憶手段と、通電時に前記コンデンサを充
電し、続いて強制的に放電させた後、再び充電させる強
制放電手段とを備え、前記運転制御手段は、通電時に前
記強制放電手段により前記コンデンサを放電させて得ら
れる放電時間と放電量との関係を示すデータを前記記憶
手段に書込み、停電時に前記各情報を前記記憶手段に書
込み、復電時に前記コンデンサの放電時間と放電量との
関係を示すデータ及び前記各情報を前記記憶手段から
出す情報書込読出手段と、復電時にコンデンサの放電量
を検出する放電量検出手段と、復電時に該放電量検出手
段が検出した放電量と前記データとに基づいて停電して
いた時間を算出する停電時間算出手段と、該停電時間算
出手段が算出した停電時間を、前記記憶手段に停電時に
記憶された前記時計手段の時刻に加算して該時計手段の
時刻を修正する現在時刻修正手段と、該放電量検出手段
が検出した放電量を所定値と比較し、タイマモードが選
択されており且つ前記コンデンサの放電量が所定値より
小のとき、前記現在時刻修正手段により修正された前記
時計手段の時刻と該記憶手段に記憶されている設定時刻
とに基づいてタイマモード運転を継続させ、また、タイ
マモードが選択されており且つ前記コンデンサの放電量
が所定値より大のときタイマモードによる運転を解除す
る判定手段とを備えることを特徴とする。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a clock means for measuring a current time, a time setting means for setting an arbitrary time, a battery which is charged when power is supplied and discharged when a power failure occurs. A capacitor to be controlled, operation control means for selecting a timer mode for controlling the controlled device to a predetermined operation when the current time matches an arbitrarily set time, information on whether or not the timer mode is selected, clock means Time information, time information set by the time setting means, the capacitor
A non-volatile storage means for storing data indicating the relationship between the discharge time and the amount of discharge , respectively, and charging the capacitor when energized.
Charge, then forcibly discharge, then recharge
And a control discharge means, said operation control means, before the time of energization
Obtained by discharging the capacitor by the forced discharging means.
Storing the data indicating the relationship between the discharge time and the discharge amount
The above information in the event of a power outage.
Between the discharge time and the discharge amount of the capacitor when the power is restored.
Information writing / reading means for reading data indicating the relationship and the respective information from the storage means, discharge amount detecting means for detecting a discharge amount of the capacitor at the time of power recovery, and a discharge amount detecting means at the time of power recovery.
Power failure based on the amount of discharge detected by the stage and the data
Power outage time calculating means for calculating the time spent,
The power outage time calculated by the output means is stored in the storage means at the time of the power outage.
The time of the clock means is added to the stored time of the clock means.
Current time correcting means for correcting the time ; comparing the discharge amount detected by the discharge amount detecting means with a predetermined value; when the timer mode is selected and the discharge amount of the capacitor is smaller than a predetermined value, the current The time corrected by the time correcting means
The timer mode operation is continued based on the time of the clock means and the set time stored in the storage means, and the timer mode is selected when the timer mode is selected and the discharge amount of the capacitor is larger than a predetermined value. And a determination means for canceling the operation based on the information.

【0011】[0011]

【0012】[0012]

【0013】更に、前記コンデンサの復電時の放電量
を、該コンデンサの復電時の充電量と基準値との差とす
ることが好ましい。
Further, it is preferable that the discharge amount of the capacitor at the time of power recovery is a difference between the charge amount of the capacitor at the time of power recovery and a reference value.

【0014】その場合の前記基準値は、通電開始から所
定時間経過した以降の通電時のコンデンサの充電量であ
るか、或いは、停電直後のコンデンサの充電量であるこ
とが好ましい。
In this case, it is preferable that the reference value is a charge amount of the capacitor at the time of energization after a lapse of a predetermined time from the start of energization or a charge amount of the capacitor immediately after a power failure.

【0015】[0015]

【作用】本発明の制御装置によれば、先ず、通電時に、
強制放電手段によってコンデンサを十分に充電させ、そ
の時点で該コンデンサを強制的に放電させる。このと
き、放電時間とコンデンサの放電量との関係を示すデー
タを採取し、そのデータを情報書込読出手段によって記
憶手段に書き込んでおく。データの採取が終了したと
き、再びコンデンサを充電させる。 そして、停電した
時、運転制御手段の情報書込読出手段によってタイマモ
ードの選択の有無の情報、時計手段の時刻の情報、時刻
設定手段の設定時刻の情報を前記記憶手段に記憶する。
停電中、前記コンデンサは放電され、その充電量が徐々
に減少する。
According to the control device of the present invention, first, when energized,
The capacitor is charged sufficiently by forced discharge
At the time point, the capacitor is forcibly discharged. This and
Data indicating the relationship between the discharge time and the amount of discharge of the capacitor.
Data, and record the data with information writing / reading means.
Write it in memory. When data collection is completed
And charge the capacitor again. When a power failure occurs, the information writing / reading means of the operation control means stores information on the presence or absence of the selection of the timer mode, the time information of the clock means, and the information of the set time of the time setting means in the storage means.
During a power outage, the capacitor is discharged and its charge gradually decreases.

【0016】復電した時、運転制御手段の情報書込読出
手段によって前記記憶手段からタイマモードの選択の有
無の情報を読み出すと共に、放電量検出手段によってコ
ンデンサの放電量を検出する。そして、停電前にタイマ
モードが選択されており、且つ、判定手段による比較結
果が前記コンデンサの放電量が所定値よりも小さい場合
は、停電時間算出手段によってその放電量と前記データ
とに基づいて停電していた時間を算出する。そして、現
在時刻修正手段によって、記憶手段に停電時に記憶され
た前記時計手段の時刻に停電時間算出手段が算出した停
電時間を加算し、時計手段の時刻を修正する。次いで、
その現在時刻と停電前に設定されて記憶手段に記憶され
ていた時刻設定手段の設定時刻とが一致したときに被制
御機器を所定の動作に制御するタイマモードの運転を復
帰させる。
When the power is restored, the information writing / reading means of the operation control means reads information on the presence or absence of the selection of the timer mode from the storage means, and the discharge amount detection means detects the discharge amount of the capacitor. If the timer mode is selected before the power failure and the comparison result by the determination means indicates that the discharge amount of the capacitor is smaller than a predetermined value, the power failure time calculation means determines the discharge amount and the data.
Then, the time during which the power failure occurred is calculated based on the above. And now
By the time-of-day correction means, it is stored in the storage means at the time of power failure
At the time of the clock means calculated by the power outage time calculation means.
The electric time is added to correct the time of the clock means. Then
The current time and set before the power failure and stored in the storage means
When the time set by the time setting means
Restore the operation in the timer mode that controls the control device to the specified operation.
Attribute.

【0017】一方、停電前にタイマモードが選択されて
おり、且つ、判定手段による比較結果が前記コンデンサ
の放電量が所定値よりも大きい場合は、比較的長時間の
停電であり、例えば、被制御機器を収納するために長期
間にわたって電源プラグをコンセントから外したとみな
して、タイマモードによる運転を解除する。
On the other hand, if the timer mode is selected before the power failure and the comparison result by the determination means is that the discharge amount of the capacitor is larger than a predetermined value, the power failure is a relatively long time. Assuming that the power plug has been disconnected from the outlet for a long time to accommodate the control device, the operation in the timer mode is released.

【0018】[0018]

【0019】[0019]

【0020】[0020]

【0021】本発明の制御装置におけるコンデンサの放
電量は、基準値と復電時に検出したコンデンサの充電量
との差によって求められる。
The amount of discharge of the capacitor in the control device of the present invention is obtained from the difference between the reference value and the amount of charge of the capacitor detected at the time of power restoration.

【0022】前記基準値は、通電開始から所定時間経過
した以降の通電時のコンデンサの充電量であり、即ち、
コンデンサが十分に充電されたときの充電量である。或
いは、前記基準値は、停電直後のコンデンサの充電量で
あり、即ち、コンデンサが放電を開始する時の充電量で
ある。
The reference value is a charge amount of the capacitor at the time of energization after a predetermined time has elapsed from the start of energization.
This is the amount of charge when the capacitor is fully charged. Alternatively, the reference value is the charge amount of the capacitor immediately after the power failure, that is, the charge amount when the capacitor starts discharging.

【0023】[0023]

【実施例】本発明の実施例を図面に基づいて説明する。An embodiment of the present invention will be described with reference to the drawings.

【0024】図1は本発明の一実施例の概略構成を示す
ブロック図、図2は図1の要部を示す回路図、図3は他
の実施例の要部の回路図である。
FIG. 1 is a block diagram showing a schematic configuration of one embodiment of the present invention, FIG. 2 is a circuit diagram showing a main part of FIG. 1, and FIG. 3 is a circuit diagram of a main part of another embodiment.

【0025】本実施例の時計機能付制御装置は、例え
ば、図示しないファンヒータに備えられて該ファンヒー
タの動作を制御するものである。
The control device with a clock function according to the present embodiment is provided, for example, in a fan heater (not shown) and controls the operation of the fan heater.

【0026】該時計機能付制御装置は、図1に示すよう
に、マイクロコンピュータ等によって時計機能の動作を
制御する運転制御手段であるタイマモードの制御部1
と、ファンヒータの動作自体を制御するファンヒータの
制御部2とによって構成されている。ファンヒータの制
御部2には、後述するタイマモードと非タイマモードで
ある通常運転モードとを選択するモード選択部3が設け
られている。タイマモードとは、希望する時刻にファン
ヒータの運転を開始或いは停止させる時限制御モードで
あり、通常運転モードとは、タイマモードによる運転以
外の運転モードである。
As shown in FIG. 1, the control device with a clock function is a timer mode control unit 1 which is an operation control means for controlling the operation of a clock function by a microcomputer or the like.
And a fan heater control unit 2 for controlling the operation itself of the fan heater. The control section 2 of the fan heater is provided with a mode selection section 3 for selecting a timer mode described later and a normal operation mode which is a non-timer mode. The timer mode is a timed control mode in which the operation of the fan heater is started or stopped at a desired time, and the normal operation mode is an operation mode other than the operation in the timer mode.

【0027】タイマモードの制御部1には、図1に示す
ように、現在の時刻を計時する時計手段4と、任意の時
刻を設定する時刻設定手段5とが設けられている。時計
手段4は現在の時刻を表示する現在時刻表示部6を、時
刻設定手段5は設定した時刻を表示する設定時刻表示部
7を夫々備えている。また、タイマモードの制御部1に
は、通電されているときに充電され、停電時に放電され
るコンデンサCが設けられている。該コンデンサCは、
タイマモードの制御部1の給電をバックアップするため
のものではなく、後述するように放電量を検出するもの
であるため、その容量はバックアップ用に比べて小さい
ものでよい。更に、タイマモードの制御部1には、不揮
発性の記憶手段であるEEPROM8が設けられてい
る。
As shown in FIG. 1, the control section 1 in the timer mode is provided with a clock means 4 for measuring the current time and a time setting means 5 for setting an arbitrary time. The clock means 4 has a current time display section 6 for displaying the current time, and the time setting means 5 has a set time display section 7 for displaying the set time. Further, the control unit 1 in the timer mode is provided with a capacitor C that is charged when power is supplied and discharged when a power failure occurs. The capacitor C is
It is not for backing up the power supply of the control unit 1 in the timer mode, but for detecting the amount of discharge as described later. Therefore, the capacity may be smaller than that for backup. Further, the control unit 1 in the timer mode is provided with an EEPROM 8 as a nonvolatile storage means.

【0028】尚、停電等によって電気の供給が停止した
場合であっても0.5秒間タイマモードの制御部1への
通電状態を維持するためにコンデンサ(図示しない)等
のバックアップ手段を備えている。
A backup means such as a capacitor (not shown) is provided for maintaining the power supply to the control unit 1 in the timer mode for 0.5 seconds even if the supply of electricity is stopped due to a power failure or the like. I have.

【0029】各部を更に詳細に説明すれば、図1に示す
ように、前記タイマモードの制御部1は、停電検出部
9、情報書込読出部10、放電量検出部11、判定部1
2、停電時間算出部13、現在時刻修正部14を備えて
いる。停電検出部9は、停電となったことを検出すると
共に復電されたことを検出する。情報書込読出部10
は、停電があったとき、モード選択部3の選択モードの
情報、時計手段4の時刻情報、時刻設定手段5の時刻情
報、後述するコンデンサCの放電データをEEPROM
8に書き込むと共に、復電したときに、EEPROM8
からそれらの情報を読み出すものである。放電量検出部
11は、前記コンデンサCの放電量を検出するものであ
る。ここで、本実施例においては、コンデンサCへの通
電開始から所定時間経過した以降の通電時のコンデンサ
Cの充電量、即ちコンデンサCが十分に充電されたとき
の充電量を基準値として、その基準値と復電時のコンデ
ンサCの充電量との差をもってコンデンサCの放電量と
している。尚、この基準値を、停電直後のコンデンサC
の充電量としてもよい。
To explain each part in more detail, as shown in FIG. 1, the control unit 1 in the timer mode includes a power failure detection unit 9, an information writing / reading unit 10, a discharge amount detection unit 11, a determination unit 1
2, a power outage time calculation unit 13 and a current time correction unit 14 are provided. The power failure detection unit 9 detects that a power failure has occurred and also detects that power has been restored. Information writing / reading unit 10
When the power failure occurs, the information on the selected mode of the mode selection unit 3, the time information of the clock means 4, the time information of the time setting means 5, and the discharge data of the capacitor C described later are stored in the EEPROM.
8 and when power is restored, the EEPROM 8
The information is read from the The discharge amount detector 11 detects the amount of discharge of the capacitor C. Here, in the present embodiment, the charge amount of the capacitor C during energization after a lapse of a predetermined time from the start of energization to the capacitor C, that is, the charge amount when the capacitor C is sufficiently charged is set as a reference value. The difference between the reference value and the charge amount of the capacitor C at the time of power recovery is defined as the discharge amount of the capacitor C. In addition, this reference value is used for the capacitor C immediately after the power failure.
May be used as the charge amount.

【0030】また、判定部12は、放電量検出部11が
検出したコンデンサCの放電量と所定値との大小によっ
て、タイマモードによる運転の継続或いはタイマモード
の解除を行うものである。停電時間算出部13は、復電
時のコンデンサCの放電量を基にして停電時間を求める
ものである。そして、現在時刻修正部14は、停電時間
算出部13の求めた停電時間に基づいて時計手段4の時
刻を修正するものである。
The judging unit 12 continues the operation in the timer mode or cancels the timer mode according to the magnitude of the discharge amount of the capacitor C detected by the discharge amount detection unit 11 and a predetermined value. The power failure time calculation unit 13 calculates the power failure time based on the amount of discharge of the capacitor C at the time of power recovery. Then, the current time correction unit 14 corrects the time of the clock unit 4 based on the power failure time obtained by the power failure time calculation unit 13.

【0031】また、図1に示すように、コンデンサCに
は、通電時に充電された該コンデンサCから強制的に放
電させる強制放電手段15が設けられている。該強制放
電手段15を含めて該コンデンサCに付加された回路を
説明すれば、図2に示すように、R1 は充電抵抗であ
り、R2 は放電抵抗である。Tr1 は復電時にコンデン
サCの電圧を放電量検出部11に入力する入力制御トラ
ンジスタである。放電量の検出は具体的にはCPUによ
る作業であってその入力ポートにA/D入力ポートを使
用する。充電抵抗R1 によりコンデンサCが約3分で十
分に充電される。またTr2 は強制放電手段15として
の充放電制御トランジスタであり、通電時にコンデンサ
Cへの充電及び放電を制御する。充放電制御トランジス
タTr2 は、通電時にコンデンサCが十分に充電された
時点(本実施例では通電開始5分後)で該コンデンサC
を強制的に放電させるが、そのときの放電時間と放電量
との関係を示すデータをCPUによって処理した後、情
報書込読出部10によってEEPROM8のデータ記憶
部16に書き込まれる。このときのデータは、3分間に
おける10秒経過毎のコンデンサCの充電電圧をCPU
によってバイアスをコントロールされる入力用トランジ
スタTr1 によりA/D入力する。これにより、データ
記憶部16には10秒毎のコンデンサCの充電電圧値に
相当する18個のデータが記憶される。データの採取が
終了したとき、充放電制御トランジスタTr2 は、再び
コンデンサCを充電させる。
As shown in FIG. 1, the capacitor C is provided with a forced discharging means 15 for forcibly discharging the charged capacitor C when energized. To describe the circuit added to the capacitor C including the forcible discharging means 15, as shown in FIG. 2, R 1 is charging resistor, R 2 is a discharge resistor. Tr 1 is an input control transistor for inputting the voltage of the capacitor C to the discharge amount detection unit 11 when the power is restored. The detection of the discharge amount is specifically a work by the CPU, and an A / D input port is used as the input port. The capacitor C is fully charged in about 3 minutes by charging resistor R 1. Tr 2 is a charge / discharge control transistor as the forced discharge means 15 and controls charging and discharging of the capacitor C when energized. The charge / discharge control transistor Tr 2 turns on the capacitor C when the capacitor C is sufficiently charged during energization (in this embodiment, 5 minutes after the start of energization).
Is forcibly discharged. The data indicating the relationship between the discharge time and the discharge amount at that time is processed by the CPU, and then written into the data storage unit 16 of the EEPROM 8 by the information writing / reading unit 10. The data at this time is obtained by measuring the charging voltage of the capacitor C every 10 seconds for 3 minutes by the CPU.
Enter A / D the input transistor Tr 1 which is controlled bias by. Thus, the data storage unit 16 stores 18 data corresponding to the charging voltage value of the capacitor C every 10 seconds. When the data collection is completed, the charge / discharge control transistor Tr 2 charges the capacitor C again.

【0032】次に、本実施例の制御装置の作動を説明す
る。先ず、初期通電後、上述したように強制放電手段1
5によって十分に充電されたコンデンサCを強制的に放
電させ、前記データを情報書込読出部10によってEE
PROM8のデータ記憶部16に書き込んだ後、再びコ
ンデンサCを充電させる。
Next, the operation of the control device of this embodiment will be described. First, after the initial energization, as described above, the forced discharge means 1
5 forcibly discharges the fully charged capacitor C, and the data write / read unit 10
After writing into the data storage section 16 of the PROM 8, the capacitor C is charged again.

【0033】停電した時、情報書込読出部10によっ
て、モード選択部3の選択モードの情報、時計手段4の
時刻情報、時刻設定手段5の時刻情報をEEPROM8
の各部に書き込む。尚、EEPROM8への書き込み
は、前記バックアップ手段(図示しない)により通電状
態に維持されている0.5秒間の間に行われる。停電
中、前記コンデンサCは放電され、その充電量が徐々に
減少する。
When a power failure occurs, the information writing / reading unit 10 stores the information on the selected mode of the mode selection unit 3, the time information of the clock unit 4, and the time information of the time setting unit 5 in the EEPROM 8.
Write to each part of The writing to the EEPROM 8 is performed for 0.5 second while the power is kept on by the backup means (not shown). During a power outage, the capacitor C is discharged, and its charge gradually decreases.

【0034】そして、復電した時、情報書込読出部10
によってEEPROM8のモード記憶部17から選択モ
ードの情報を読み出すと共に、放電量検出部11によっ
てコンデンサCの放電量を検出する。これにより、停電
前にタイマモードが選択されていた場合には、先ず、放
電量検出部11が検出したコンデンサCの充電電圧値
と、EEPROM8のデータ記憶部16に記憶されてい
る18個のデータとの対比を判定部12によって行う。
そして、復電時のコンデンサCの充電電圧値が18個の
データのうち3分に対応するデータよりも小さい場合に
は、停電時間算出部13によって18個のデータのうち
で最も近い値を見出し、そのデータに対応する時間を停
電時間とする。次いで、現在時刻修正部14は、EEP
ROM8の現在時刻記憶部18に記憶されている停電時
の時計手段4の時刻に、停電時間算出部13によって見
出された停電時間を加算して時計手段4の時刻を修正す
る。このように、復電後に再び時計手段4の時刻をセッ
トし直す必要がなく、しかも、コンデンサCに製品上の
バラツキがあっても、使用されているコンデンサCにつ
いての放電時間と放電量との関係を示すデータを基に停
電時間を算出するので、極めて正確に時計手段4の時刻
を修正することができる。そして、現在時刻修正部14
によって修正された時計手段4の時刻及びEEPROM
8の設定時刻記憶部19に記憶されていた設定時刻に従
って時計手段4及び時刻設定手段5を自動的にセット
し、タイマモードによる運転を復帰させる。
When the power is restored, the information writing / reading unit 10
The information of the selected mode is read out from the mode storage unit 17 of the EEPROM 8 by the control unit, and the discharge amount of the capacitor C is detected by the discharge amount detection unit 11. Thus, when the timer mode is selected before the power failure, first, the charge voltage value of the capacitor C detected by the discharge amount detection unit 11 and the 18 data values stored in the data storage unit 16 of the EEPROM 8 Is determined by the determination unit 12.
If the charging voltage value of the capacitor C at the time of power restoration is smaller than the data corresponding to 3 minutes out of the 18 data, the power failure time calculation unit 13 finds the closest value among the 18 data. The time corresponding to the data is defined as a power outage time. Next, the current time correction unit 14
The time of the clock means 4 is corrected by adding the power failure time found by the power failure time calculation unit 13 to the time of the clock means 4 at the time of power failure stored in the current time storage unit 18 of the ROM 8. In this way, there is no need to reset the time of the clock means 4 again after the power is restored, and even if there is a variation in the product of the capacitor C, the discharge time and the discharge amount of the used capacitor C are not changed. Since the power outage time is calculated based on the data indicating the relationship, the time of the clock means 4 can be corrected very accurately. Then, the current time correction unit 14
Time and EEPROM of clock means 4 corrected by
The clock means 4 and the time setting means 5 are automatically set in accordance with the set time stored in the set time storage section 19 of FIG.

【0035】一方、停電前にタイマモードが選択されて
いない場合、又は、タイマモードが選択されていても、
放電量検出部11が検出したコンデンサCの充電電圧値
がEEPROM8のデータ記憶部16に記憶されている
18個のデータのうち3分に対応するデータよりも小さ
い場合には、例えば、被制御機器を収納するために長期
間にわたって電源プラグをコンセントから外したときの
ように、比較的長時間の停電であるため、判定部12
は、通常運転モードによる運転を設定する。これによ
り、長い期間にわたってファンヒータの電源プラグをコ
ンセントから外した後に、再びファンヒータの運転を開
始しても、タイマモードによる不意な運転開始や停止を
確実に防止することができる。
On the other hand, if the timer mode is not selected before the power failure, or if the timer mode is selected,
When the charge voltage value of the capacitor C detected by the discharge amount detection unit 11 is smaller than the data corresponding to three minutes out of the 18 data stored in the data storage unit 16 of the EEPROM 8, for example, Because the power outage is relatively long, such as when the power plug is disconnected from the outlet for a long time to accommodate the
Sets the operation in the normal operation mode. Thus, even if the fan heater is restarted after the power plug of the fan heater has been disconnected from the outlet for a long period of time, unexpected start and stop of the operation in the timer mode can be reliably prevented.

【0036】[0036]

【0037】[0037]

【0038】[0038]

【発明の効果】以上のことから明らかなように、本発明
の時計機能付制御装置は、強制放電手段を設けて、通電
時にコンデンサを強制的に放電させ、そのときの放電時
間と放電量との関係を示すデータを情報書込読出手段に
よって記憶手段に記憶させるので、コンデンサの容量に
製品上のバラツキがあっても正確なデータを採取してお
くことができる。復電した時、前記情報書込読出手段に
よって書き込まれた各情報を前記記憶手段から読み出す
と共に、放電量検出手段によってコンデンサの放電量を
検出する。そして、停電前にタイマモードが選択されて
おり且つ判定手段による比較結果が前記コンデンサの放
電量が所定値よりも小さい場合は、前記現在時刻修正手
段により修正された前記時計手段の時刻と前記記憶手段
から読み出された時刻設定手段の設定時刻の情報とに従
ってタイマモードによる運転を復帰させるので、停電が
あるたびに時計手段と時刻設定手段とをセットし直す煩
わしさを解消することができる。
As is apparent from the above, the control device with a timepiece function of the present invention is provided with the forced discharge means so that the power can be supplied.
At the time of discharge
Data indicating the relationship between the interval and the discharge amount to the information writing / reading means.
Therefore, since it is stored in the storage means, the capacity of the capacitor
Collect accurate data even if there are variations on the product.
Can be When power is restored, the information writing and reading means
Therefore, each written information is read from the storage means.
At the same time, the discharge amount of the capacitor is detected by the discharge amount detecting means . If the timer mode is selected before the power failure and the comparison result by the determination means indicates that the discharge amount of the capacitor is smaller than a predetermined value, the current time correction procedure is performed.
Time of the clock means corrected by a step and the storage means
Since the operation in the timer mode is resumed according to the information on the set time of the time setting means read from the time setting section, the trouble of resetting the clock means and the time setting means every time a power failure occurs can be eliminated.

【0039】前記現在時刻修正手段は、停電時間算出手
段が復電時のコンデンサの放電量と前記放電時間と放電
量との関係を示すデータとに基づいて算出した停電時間
を、前記記憶手段から読み出した時計手段の停電時の時
刻に加算して該時計手段の時刻を修正するので、コンデ
ンサの製品上の容量のバラツキに影響されることなく正
確に時計手段の時刻を修正することができ、それによっ
てタイマモードによる運転を正確に行うことができる。
更に、停電前にタイマモードが選択されており、且つ、
判定手段による比較結果が前記コンデンサの放電量が所
定値よりも大きい場合は、タイマモードによる運転を解
除するので、比較的長時間の停電のとき、例えば、被制
御機器を収納するために長期間にわたって電源プラグを
コンセントから外した場合であっても、次回の使用時に
電源プラグをコンセントに接続したとき使用者の意図に
反して時刻設定手段の設定時刻に従ってファンヒータの
運転が開始或いは停止されることを確実に防止すること
ができる。
The current time correction means is a means for calculating a power failure time.
The amount of discharge of the capacitor when the stage is restored, the discharge time and the discharge
Power outage time calculated based on data indicating the relationship with the amount
At the time of the power failure of the clock means read from the storage means.
Since the time of the clock means is corrected by adding the time,
Correct without being affected by variations in capacitance on the sensor product.
It is possible to correct the time of the clock means,
Thus, the operation in the timer mode can be performed accurately.
Further, the timer mode is selected before the power failure, and
If the result of the comparison by the determining means is that the discharge amount of the capacitor is larger than a predetermined value, the operation in the timer mode is canceled, so in case of a relatively long power outage, for example, a long time Even when the power plug is disconnected from the outlet for a long time, when the power plug is connected to the outlet at the next use, the operation of the fan heater is started or stopped according to the time set by the time setting means contrary to the user's intention. This can be reliably prevented.

【0040】[0040]

【0041】[0041]

【0042】また、前記のように、放電量を検出するた
めのコンデンサを設けたので、停電時のバックアップ用
の大容量コンデンサを設ける場合に比して安価に構成す
ることができ、製品コストを低減することができる。
Further, as described above, since the capacitor for detecting the amount of discharge is provided, it can be constructed at a lower cost as compared with the case where a large-capacity capacitor for backup at the time of power failure is provided, and the product cost is reduced. Can be reduced.

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

【図1】本発明の一実施例の概略構成を示すブロック
図。
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of the present invention.

【図2】図1の要部を示す回路図。FIG. 2 is a circuit diagram showing a main part of FIG. 1;

【図3】他の実施例の要部の回路図。FIG. 3 is a circuit diagram of a main part of another embodiment.

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

1…運転制御手段、4…時計手段、5…時刻設定手段、
8…記憶手段、10…情報書込読出手段、11…放電量
検出手段、12…判定手段、13…停電時間算出手段、
14…現在時刻修正手段、15…強制放電手段、C…コ
ンデンサ。
1 ... operation control means, 4 ... clock means, 5 ... time setting means,
8 storage means, 10 information writing / reading means, 11 discharge amount detecting means, 12 determining means, 13 power outage time calculating means,
14 ... current time correction means, 15 ... forced discharge means, C ... capacitor.

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】現在の時刻を計時する時計手段と、任意の
時刻を設定する時刻設定手段と、通電時に充電され、停
電時に放電されるコンデンサと、現在の時刻が任意に設
定した時刻と一致した時に被制御機器を所定の動作に制
御するタイマモードが選択可能な運転制御手段と、タイ
マモードの選択の有無の情報、時計手段の時刻の情報、
時刻設定手段の設定時刻の情報、該コンデンサの放電時
間と放電量との関係を示すデータを夫々記憶する不揮発
性の記憶手段と、通電時に前記コンデンサを充電し、続
いて強制的に放電させた後、再び充電させる強制放電手
段とを備え、前記運転制御手段は、通電時に前記強制放
電手段により前記コンデンサを放電させて得られる放電
時間と放電量との関係を示すデータを前記記憶手段に書
込み、停電時に前記各情報を前記記憶手段に書込み、復
電時に前記コンデンサの放電時間と放電量との関係を示
すデータ及び前記各情報を前記記憶手段から読出す情報
書込読出手段と、復電時にコンデンサの放電量を検出す
る放電量検出手段と、復電時に該放電量検出手段が検出
した放電量と前記データとに基づいて停電していた時間
を算出する停電時間算出手段と、該停電時間算出手段が
算出した停電時間を、前記記憶手段に停電時に記憶され
た前記時計手段の時刻に加算して該時計手段の時刻を修
正する現在時刻修正手段と、該放電量検出手段が検出し
た放電量を所定値と比較し、タイマモードが選択されて
おり且つ前記コンデンサの放電量が所定値より小のと
き、前記現在時刻修正手段により修正された前記時計手
段の時刻と該記憶手段に記憶されている設定時刻とに基
づいてタイマモード運転を継続させ、また、タイマモー
ドが選択されており且つ前記コンデンサの放電量が所定
値より大のときタイマモードによる運転を解除する判定
手段とを備えることを特徴とする時計機能付制御装置。
1. Clock means for measuring the current time, time setting means for setting an arbitrary time, a capacitor which is charged when energized and discharged when a power failure occurs, and wherein the current time matches an arbitrarily set time. Operation control means capable of selecting a timer mode for controlling the controlled device to a predetermined operation when the operation is performed, information on the presence or absence of selection of the timer mode, information on the time of the clock means,
Information on the time set by the time setting means, when discharging the capacitor
A non-volatile storage means for storing data indicating a relationship between the discharge time and the discharge amount ;
Force the battery to be discharged forcibly and then recharged.
And a stage, the operation control means, the forced discharge when energized
Discharge obtained by discharging the capacitor by electric means
Data indicating the relationship between time and discharge amount is written in the storage means.
In the event of a power failure, the above information is written to the storage means and restored.
The relationship between the discharge time and discharge amount of the capacitor during
Information writing and reading means for reading data and the information from the storage means, a discharge amount detecting means for detecting a discharge amount of the capacitor at the time of power recovery, and a discharge amount detecting means at the time of power recovery.
The time during which the power failure occurred based on the amount of discharged electricity and the data
Power outage time calculating means for calculating
The calculated power outage time is stored in the storage means at the time of the power outage.
The time of the clock means by adding to the time of the clock means.
And the current time adjustment means positive for a discharge amount of the discharge amount detection means detects is compared with a predetermined value, when and discharge amount of the capacitor is timer mode is selected is smaller than a predetermined value, the current time correction Said watch hand modified by means
The timer mode operation is continued based on the time of the stage and the set time stored in the storage means, and when the timer mode is selected and the discharge amount of the capacitor is larger than a predetermined value, the timer mode operation is performed. A control device with a clock function, comprising: determination means for canceling operation.
【請求項2】前記コンデンサの復電時の放電量は、該コ
ンデンサの復電時の充電量と基準値との差であることを
特徴とする請求項1記載の時計機能付制御装置。
2. The discharge amount at the time of power restoration of the capacitor is
2. The control device with a clock function according to claim 1 , wherein the difference is a difference between a charge amount when the capacitor recovers power and a reference value .
【請求項3】前記基準値は、通電開始から所定時間経過
した以降の通電時のコンデンサの充 電量であることを特
徴とする請求項2記載の時計機能付制御装置。
3. The method according to claim 1, wherein the reference value is a predetermined time after the start of energization.
Clock function with the control device according to claim 2, characterized in that the charging amount of the energizing time of the capacitor after that.
【請求項4】前記基準値は、停電直後のコンデンサの充
電量であることを特徴とする請求項2記載の時計機能付
制御装置。
4. The method according to claim 1, wherein the reference value is a charge of a capacitor immediately after a power failure.
3. The control device with a clock function according to claim 2 , wherein the control value is a charge .
JP5331722A 1993-12-27 1993-12-27 Control device with clock function Expired - Fee Related JP2740733B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5331722A JP2740733B2 (en) 1993-12-27 1993-12-27 Control device with clock function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5331722A JP2740733B2 (en) 1993-12-27 1993-12-27 Control device with clock function

Publications (2)

Publication Number Publication Date
JPH07191159A JPH07191159A (en) 1995-07-28
JP2740733B2 true JP2740733B2 (en) 1998-04-15

Family

ID=18246870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5331722A Expired - Fee Related JP2740733B2 (en) 1993-12-27 1993-12-27 Control device with clock function

Country Status (1)

Country Link
JP (1) JP2740733B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56169640U (en) * 1980-05-19 1981-12-15
JPS58140668A (en) * 1982-02-17 1983-08-20 Hitachi Ltd Detecting circuit of power failure time
JPH04142494A (en) * 1990-10-03 1992-05-15 Matsushita Electric Ind Co Ltd Clock device with microcomputer

Also Published As

Publication number Publication date
JPH07191159A (en) 1995-07-28

Similar Documents

Publication Publication Date Title
US5414861A (en) Data protection system using different levels of reserve power to maintain data in volatile memories for any period of time
US7026726B2 (en) Uninterruptible power supply device
US7908504B2 (en) Smart batteryless backup device and method therefor
JPH11233157A (en) Battery pack and battery system
US6236226B1 (en) Test method and system for uninterruptible power supply
JP2002010503A (en) Charge and discharge device and charging and discharging method
JPH0416806B2 (en)
JP2740733B2 (en) Control device with clock function
US5831347A (en) Apparatus for determining if the duration of a power failure exceeded predetermined limits
US5390322A (en) Apparatus and method for retaining cycle memory in electronic sterilizer controls
KR100382747B1 (en) Electronics
EP0393631B1 (en) Initial process system after cutoff of power source and corresponding process system
JP2740734B2 (en) Clock device
US5227981A (en) Initial process system after cutoff of power source and process system at the time of cutoff of power source
JP2740118B2 (en) Clock device
JPH07298512A (en) Charger and charging method
JPH05166541A (en) Discharge device
JPH07113525A (en) Heating cooker
JP3053270B2 (en) Power supply backup method and device
JPH02278411A (en) Start processing system after cut-off of power supply
KR960016371B1 (en) Battery charging circuit
JPH0583874A (en) Battery charger
JP3136074B2 (en) Portable electronic devices
JPH01195559A (en) Back-up memory for electronic equipment
JPH08205424A (en) Backup power supply circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees