JPH0728572A - Automatic data preserving device at power interruption - Google Patents

Automatic data preserving device at power interruption

Info

Publication number
JPH0728572A
JPH0728572A JP5173941A JP17394193A JPH0728572A JP H0728572 A JPH0728572 A JP H0728572A JP 5173941 A JP5173941 A JP 5173941A JP 17394193 A JP17394193 A JP 17394193A JP H0728572 A JPH0728572 A JP H0728572A
Authority
JP
Japan
Prior art keywords
power
data
prediction signal
storage device
power source
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
JP5173941A
Other languages
Japanese (ja)
Inventor
Masayuki Tsunoda
雅幸 角田
Kazuo Motomitsu
和夫 元光
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5173941A priority Critical patent/JPH0728572A/en
Publication of JPH0728572A publication Critical patent/JPH0728572A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To enable the elimination of a backup power source and an external storage device and to unnecessitate the maintenance required for the device by automatically saving user data in an EEPROM at the time of a power interruption and recovering the data at the time of recovering power. CONSTITUTION:By the power interruption prediction signal from a power source 1, an interruption is made to generate for a CPU 2 and the specified user data is saved in an EEPROM 5 by the interruption processing. Namely, a power source 1 with power interruption prediction signal is used, the power interruption prediction signal monitors an input and the power interruption prediction signal is outputted by an input disconnection, but because a capacitor for smoothing is normally inserted in the power source 1, the output of the power source does not drop instantaneously. Therefore, if the output of the power source is supplied to the CPU 2, the CPU 2 is capable of performing processings till the CUP 2 is stopped due to the drop of power source voltage after the power interruption prediction signal is inputted. In this case, the data amount which can be saved depends on the access time and power consumption of a storage device.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はコンピュータシステムに
かかわり、特定データの停電時保存を行う装置でかつ長
期間無保守で高信頼性を要求される装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system, which stores specific data in the event of a power failure, and which requires high reliability without maintenance for a long period of time.

【0002】[0002]

【従来の技術】コンピュータシステムにおけるデータ保
護方法については、システムそのものの制御を司るプロ
グラムやデータを破壊しないような方法や破壊された場
合の復旧方法について様々の方法が報告されている。
2. Description of the Related Art As a data protection method in a computer system, various methods have been reported as a method of not destroying a program or data which controls the system itself and a recovery method in the case of being destroyed.

【0003】またこれとは別に、利用者側で用いるデー
タの保存方式は、例えば、バックアップ電源付きの内部
記憶メモリ,CPU,入出力装置からなるシステムで、
入力装置からのデータをバックアップ電源付きの内部記
憶メモリに常時データを書き込んでおく方式や、磁気デ
ィスク等の外部記憶装置,CPU,入出力装置からなる
システムで、入力装置からのデータを一定時間間隔で外
部記憶装置に保存する方法などがある。
Aside from this, the data storage method used by the user is, for example, a system including an internal storage memory with a backup power source, a CPU, and an input / output device.
Data from the input device is always written in the internal storage memory with a backup power supply, or a system consisting of an external storage device such as a magnetic disk, a CPU, and an input / output device. There is a method of saving it in an external storage device.

【0004】しかし、利用者データの保存方法について
は、前者の方法ではバックアップ電源の寿命を考え、装
置の保守が必要である。また、後者では、外部記憶装置
のアクセスタイムが長いことを考慮すると頻繁にデータ
を記憶することは不可能であり、保存されたデータが最
新データである確立は少なくなる。
However, regarding the method of storing user data, the former method requires maintenance of the device in consideration of the life of the backup power supply. Further, in the latter case, it is impossible to store data frequently considering that the access time of the external storage device is long, and it is less likely that the stored data is the latest data.

【0005】[0005]

【発明が解決しようとする課題】本発明の目的は、長期
間の停電などにも消失しては困るような重要、かつ、変
化期間が短い利用者データを確実に保存する機能が備わ
り、また、そのための記憶装置が長期間無保守で使用で
きるコンピュータシステムを提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a function of surely storing user data that is important and hard to lose even after a long power outage, and has a short change period. The purpose is to provide a computer system for which a storage device can be used for a long period without maintenance.

【0006】[0006]

【課題を解決するための手段】本発明の特徴は、電源か
らの停電予測信号によりCPUに対して割込みを発生さ
せ、割込み処理にて特定の利用者データをEEPROMへ退避
するところにある。
The feature of the present invention resides in that an interruption is generated to the CPU by a power failure prediction signal from a power source, and specific user data is saved in an EEPROM by interruption processing.

【0007】以下、本発明を図1を用いて詳細に説明す
る。図1は本発明におけるデータ保存装置のブロック図
である。
The present invention will be described in detail below with reference to FIG. FIG. 1 is a block diagram of a data storage device according to the present invention.

【0008】図中、1は停電予測信号付きの電源であ
る。停電予測信号は入力を監視し、入力断で停電予測信
号を出力する。電源には通常平滑用のコンデンサが挿入
されているため、電源出力は瞬時には低下しない。この
電源出力をCPUに供給しておけば、停電予測信号が入
力してから電源電圧が低下したことによるCPU停止に
到るまで、CPUは処理を行うことが可能である。この
場合、退避できるデータ量は記憶装置のアクセス時間及
び消費電力による。
In the figure, 1 is a power supply with a power failure prediction signal. The power failure prediction signal monitors the input and outputs the power failure prediction signal when the input is cut off. Since a smoothing capacitor is usually inserted in the power supply, the power supply output does not drop instantaneously. If this power supply output is supplied to the CPU, the CPU can perform processing from the input of the power failure prediction signal to the stop of the CPU due to the decrease in the power supply voltage. In this case, the amount of data that can be saved depends on the access time and power consumption of the storage device.

【0009】2は割込み機能付きのCPUである。停電
予測信号を割込み起動信号として特定データの退避処理
を行う。
Reference numeral 2 is a CPU with an interrupt function. Saves specific data by using the power failure prediction signal as an interrupt activation signal.

【0010】3は内部作業用メモリであり、5は不揮発
性メモリのEEPROMである。通常処理で使用しているデー
タは内部作業用メモリに格納されている。退避処理はこ
の内部作業用メモリの中の特定データをEEPROMに転送す
ることである。
Reference numeral 3 is an internal working memory, and reference numeral 5 is a nonvolatile memory EEPROM. The data used in normal processing is stored in the internal work memory. The saving process is to transfer the specific data in the internal working memory to the EEPROM.

【0011】[0011]

【作用】以上の手段により停電時に自動的に利用者のデ
ータをEEPROMに退避し、かつ復電時にはデータを復帰す
ることで、従来必要であったバックアップ電源,外部記
憶装置が省略できるためその装置に要する保守が不要と
なった。
By the above means, the user's data is automatically saved in the EEPROM at the time of power failure, and the data is restored at the time of power recovery, so that the backup power supply and the external storage device which were conventionally required can be omitted. The maintenance required for is no longer necessary.

【0012】[0012]

【実施例】次に本発明を変電所制御システムに適用した
例を示す。図2は制御システムのブロック図である。構
成は図1と同様である。図中、2は割込み付きのCP
U、3,5はメモリである。入力装置にA/D変換装置
を設け、アナログ値をCPUに取り込んでいる。アナロ
グ値は電圧,電流,電力などである。CPUでは電力か
ら電力量を積算し出力装置4(整定パネル)へ出力す
る。このとき、電力量は積算値であるため停電時のデー
タ消失を防止するためEEPROMへ退避させる。
EXAMPLE Next, an example in which the present invention is applied to a substation control system will be shown. FIG. 2 is a block diagram of the control system. The configuration is the same as in FIG. In the figure, 2 is a CP with an interrupt
U, 3, and 5 are memories. An A / D converter is provided in the input device, and the analog value is loaded into the CPU. The analog values are voltage, current, power, etc. The CPU integrates the amount of electric power from the electric power and outputs it to the output device 4 (setting panel). At this time, the electric energy is an integrated value, so it is saved in the EEPROM to prevent data loss during a power failure.

【0013】図3は停電予測信号付きの電源装置の特性
を表したものである。入力が遮断されてから約5ms後
に停電予測信号が出力されている。電源出力が低下する
のは停電予測信号が出力されてから約300ms後(C
PUが電源電圧低下で停止するまで)である。その間に
EEPROMへは約600ワードのデータが書き込み可能であ
る。
FIG. 3 shows the characteristics of a power supply device with a power failure prediction signal. The power failure prediction signal is output about 5 ms after the input is cut off. The power output decreases only about 300 ms after the power failure prediction signal is output (C
Until the PU stops due to the power supply voltage drop). During
About 600 words of data can be written to the EEPROM.

【0014】図4は停電予測信号による割込み処理のフ
ローチャートである。割込み後すぐに特定データの退避
を行う(ステップ7)。その後、復電時に退避データが
あるかどうかを確認するためのフラグを同じくEEPROMに
書き込む(ステップ8)。データ退避が終了した後は電
源電圧低下により誤動作が生じないように通常処理へは
戻らずに、停止待ち状態に移行する(ステップ9)。
FIG. 4 is a flow chart of interrupt processing by the power failure prediction signal. The specific data is saved immediately after the interruption (step 7). After that, a flag for confirming whether or not there is saved data when power is restored is also written in the EEPROM (step 8). After the data saving is completed, the normal processing is not returned to the normal processing so as to prevent the malfunction due to the power supply voltage drop, and the operation shifts to the stop waiting state (step 9).

【0015】図5は復電時のデータ復帰処理フローチャ
ートである。はじめに内部作業用メモリ3の初期化を行
う(ステップ10)。本実施例ではメモリの初期値はす
べて「0」である。次に退避データの有無を判定する
(ステップ11)。停電時に書き込んだフラグの有無を
判定して、退避データがある場合にはEEPROMからデータ
を作業用メモリに転送する(ステップ12)。退避デー
タがない場合には何もしないため作業用メモリには初期
値の「0」が入力されていることになる。
FIG. 5 is a flow chart of the data restoration process at the time of power restoration. First, the internal work memory 3 is initialized (step 10). In this embodiment, the initial values of the memory are all "0". Next, it is determined whether or not there is saved data (step 11). The presence or absence of the flag written at the time of power failure is determined, and if there is saved data, the data is transferred from the EEPROM to the work memory (step 12). If there is no saved data, nothing is done and the initial value "0" is input to the working memory.

【0016】[0016]

【発明の効果】本発明により次の効果がある。すなわ
ち、 (1)停電時データ保存装置が無保守化できる。
The present invention has the following effects. That is, (1) the data storage device at the time of power failure can be maintenance-free.

【0017】(2)外部記憶装置を付加させなくてすむ
ため経済的に有利である。
(2) It is economically advantageous because an external storage device need not be added.

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

【図1】停電時自動データ保存装置ブロック図。FIG. 1 is a block diagram of an automatic data storage device during a power failure.

【図2】変電所制御システムへの適用例のブロック図。FIG. 2 is a block diagram of an application example to a substation control system.

【図3】DC/DCコンバータ電源の特性図。FIG. 3 is a characteristic diagram of a DC / DC converter power supply.

【図4】停電予測信号による割込み処理フローチャー
ト。
FIG. 4 is a flowchart of interrupt processing by a power failure prediction signal.

【図5】復電時(起動時)データ復帰処理フローチャー
ト。
FIG. 5 is a flowchart of data recovery processing at power recovery (at the time of startup).

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

1…停電予測信号付き電源、2…割込み機能付きCP
U、3…内部作業用メモリ、4…出力装置、5…EEPROM
(不揮発性メモリ)、6…入力装置。
1 ... Power supply with power failure prediction signal, 2 ... CP with interrupt function
U, 3 ... Internal working memory, 4 ... Output device, 5 ... EEPROM
(Nonvolatile memory), 6 ... Input device.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】コンピュータシステムにおいて、停電予測
信号を発生できる電源を持ち、外部信号を割込み信号と
して割込み処理が起動可能なことを特徴とする停電時自
動データ保存装置。
1. An automatic data storage device during a power failure in a computer system having a power supply capable of generating a power failure prediction signal and capable of starting an interrupt process using an external signal as an interrupt signal.
【請求項2】コンピュータシステムにおいて、内部記憶
装置としてEEPROMを持ち、特定のデータを前記EEPROMに
記憶させ、停電時もデータを保存可能としたことを特徴
とする停電時自動データ保存装置。
2. A computer system having an EEPROM as an internal storage device, wherein specific data is stored in the EEPROM so that the data can be stored even during a power failure.
【請求項3】コンピュータシステムにおいて、内部記憶
装置としてEEPROMを持ち、復電時に前記EEPROMに記憶さ
せておいたデータを元のエリアへ復帰させる処理ルーチ
ンを備えたことを特徴とする停電時自動データ保存装
置。
3. A computer system having an EEPROM as an internal storage device, and having a processing routine for restoring the data stored in the EEPROM to the original area when the power is restored, the automatic data at power failure is provided. Storage device.
【請求項4】コンピュータシステムにおいて、内部記憶
装置としてEEPROMを持ち、利用者が使用する特定のデー
タを選択的に保存しかつ復帰可能なことを特徴とする停
電時自動データ保存装置。
4. A computer system having an EEPROM as an internal storage device, capable of selectively storing and restoring specific data used by a user, the automatic data storage device at the time of power failure.
JP5173941A 1993-07-14 1993-07-14 Automatic data preserving device at power interruption Pending JPH0728572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5173941A JPH0728572A (en) 1993-07-14 1993-07-14 Automatic data preserving device at power interruption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5173941A JPH0728572A (en) 1993-07-14 1993-07-14 Automatic data preserving device at power interruption

Publications (1)

Publication Number Publication Date
JPH0728572A true JPH0728572A (en) 1995-01-31

Family

ID=15969910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5173941A Pending JPH0728572A (en) 1993-07-14 1993-07-14 Automatic data preserving device at power interruption

Country Status (1)

Country Link
JP (1) JPH0728572A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1044567A (en) * 1996-08-05 1998-02-17 Seiko Epson Corp Printer equipment
WO2006003781A1 (en) * 2004-06-30 2006-01-12 Pioneer Corporation Backup device, and car-mounted device
US7062600B2 (en) * 2002-03-19 2006-06-13 Samsung Electronics Co., Ltd. Apparatus and method of controlling information process system of mobile terminal apparatus using flash memory
DE102018006992A1 (en) 2017-09-05 2019-03-07 Fanuc Corporation control device
DE102018122695A1 (en) 2017-09-19 2019-05-16 Fanuc Corporation production system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1044567A (en) * 1996-08-05 1998-02-17 Seiko Epson Corp Printer equipment
US7062600B2 (en) * 2002-03-19 2006-06-13 Samsung Electronics Co., Ltd. Apparatus and method of controlling information process system of mobile terminal apparatus using flash memory
WO2006003781A1 (en) * 2004-06-30 2006-01-12 Pioneer Corporation Backup device, and car-mounted device
DE102018006992A1 (en) 2017-09-05 2019-03-07 Fanuc Corporation control device
US11048216B2 (en) 2017-09-05 2021-06-29 Fanuc Corporation Control device
DE102018006992B4 (en) 2017-09-05 2022-08-04 Fanuc Corporation control device
DE102018122695A1 (en) 2017-09-19 2019-05-16 Fanuc Corporation production system
US11275421B2 (en) 2017-09-19 2022-03-15 Fanuc Corporation Production system

Similar Documents

Publication Publication Date Title
US6108792A (en) Article for providing continuity of operation in a computer
JP3224153B2 (en) Improved data protection system and data protection method
US6523133B2 (en) Information processing apparatus that can hold internal information
JPH07175728A (en) Disk cache data maintenance system
JPH0728572A (en) Automatic data preserving device at power interruption
JPH06231053A (en) Data saving system
JP2000020182A (en) Power management method
JPS58175198A (en) Data processing device
JPH06250939A (en) Data processor
KR0170747B1 (en) A protection method for power on/off
JPH11149419A (en) Method and device for backing up data
JPH0119184B2 (en)
JPH04118705A (en) Programmable controller
JPH0789308B2 (en) Computer automatic restart method
JPS63280357A (en) Data save/restore system
JPH05233474A (en) Storage contents protection system
JPS59133620A (en) Automatic operating system for power restoration
JPH06113483A (en) Method for monitoring capacity of battery in uninterruptive power supply equipment
JPH06266598A (en) Information processor
JPH0415726A (en) Write back-up system for disk controller
JPH02122350A (en) Memory write protection system
JPH04178855A (en) Personal computer
JP2002091632A (en) Computer system
CN114218010A (en) Data backup and recovery method, system, terminal equipment and storage medium
JPH07244544A (en) Computer system