JPH08202633A - Data processor - Google Patents

Data processor

Info

Publication number
JPH08202633A
JPH08202633A JP7030114A JP3011495A JPH08202633A JP H08202633 A JPH08202633 A JP H08202633A JP 7030114 A JP7030114 A JP 7030114A JP 3011495 A JP3011495 A JP 3011495A JP H08202633 A JPH08202633 A JP H08202633A
Authority
JP
Japan
Prior art keywords
data
power failure
power
power supply
application
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
JP7030114A
Other languages
Japanese (ja)
Inventor
Toru Sakai
徹 境井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP7030114A priority Critical patent/JPH08202633A/en
Publication of JPH08202633A publication Critical patent/JPH08202633A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a data processor which controls the power supplied from a backup power supply in response to the data saving processing that is carried out by an application program in a service interruption mode. CONSTITUTION: A CPU 11 contains a data saving flag F1 and a service interruption flag F2 which can be set and referred to by an application program under execution. At the same time, a data saving execution flag F3 is provided in an application storage part 22 in accordance with an application that has a service interruption mode data saving processing function. In such a constitution, a backup power supply 1b supplies the power only in a data saving processing period and only when the service interruption mode data saving processing is carried out for the application itself in a service interruption mode.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ処理装置に係わ
り、詳細には、停電時にアプリケーションプログラムに
より実行される停電時データ退避処理の有無に応じて、
バックアップ電源からの電源供給を制御するデータ処理
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device, and more specifically, it relates to the presence / absence of data saving processing at power failure executed by an application program at the time of power failure.
The present invention relates to a data processing device that controls power supply from a backup power supply.

【0002】[0002]

【従来の技術】従来、データ処理装置としては、例え
ば、エンジニアリングワークステーション(Engineerin
g Work station)、パーソナルコンピュータ(Personal
Computer)等がある。
2. Description of the Related Art Conventional data processing devices include, for example, engineering workstations (Engineerin).
g Work station), personal computer (Personal
Computer) etc.

【0003】これらのデータ処理装置には、停電、ある
いは断線等によって不意に瞬間的、もしくは継続的に電
力の供給が途絶えた場合、装置にダメージを与えぬため
に一定期間電源供給を行うUPS部(Uniterruptible P
ower Supply)を備えている。
In these data processing devices, when power supply is suddenly or continuously interrupted due to power failure or disconnection, etc., a UPS unit for supplying power for a certain period to prevent damage to the devices. (Uniterruptible P
ower Supply).

【0004】図4に示すようにUPS部1は、停電検出
部1a、バックアップ電源1bとから構成されている。
停電検出部1aは、AC電源からデータ処理装置に供給
される供給電圧が停電によって停止される状態を検出
し、所定の停電検出信号をデータ処理装置のCPU(Ce
ntral Processing Unit:図示せず)に出力する。
As shown in FIG. 4, the UPS unit 1 comprises a power failure detection unit 1a and a backup power supply 1b.
The power failure detection unit 1a detects a state in which the supply voltage supplied from the AC power source to the data processing device is stopped by a power failure, and outputs a predetermined power failure detection signal to the CPU (Ce of the data processing device).
ntral Processing Unit: not shown).

【0005】バックアップ電源1bは、AC電源により
常時充電されており、停電検出時にCPUから入力され
る所定の供給開始信号により、AC電源に替りデータ処
理装置内各部に一定時間電源供給を行う。
The backup power supply 1b is constantly charged by an AC power supply, and in response to a predetermined supply start signal input from the CPU when a power failure is detected, the backup power supply 1b replaces the AC power supply and supplies power to each part in the data processing device for a certain period of time.

【0006】従来の、データ処理装置のCPUにおいて
実行される停電処理は、UPS部1の停電検出部1aか
らの停電検出信号の入力を受けて実行される処理であ
る。CPUでは、前記停電検出信号の入力を受けると停
電と判断し、バックアップ電源1bに供給開始信号を出
力する。バックアップ電源1bでは、前記供給開始信号
が入力されるとデータ処理装置内各部に一定時間電源供
給を行なう。
The conventional power outage process executed by the CPU of the data processing device is a process executed upon receipt of an input of a power outage detection signal from the power outage detection unit 1a of the UPS unit 1. Upon receiving the power failure detection signal, the CPU determines that there is a power failure and outputs a supply start signal to the backup power supply 1b. When the supply start signal is input, the backup power supply 1b supplies power to each part in the data processing device for a certain period of time.

【0007】一方、データ処理装置上において運用され
る種々のアプリケーションプログラム(以下、アプリケ
ーション:Application Programという)の中には、停
電の際にアプリケーション自身で停電を検知し、バック
アップ電源1bがデータ処理装置内各部に一定時間電源
供給を行う期間に、アプリケーション独自の停電時デー
タ退避処理を実行するものがある。
On the other hand, among various application programs (hereinafter referred to as “application programs”) operated on the data processing apparatus, the application itself detects the power failure at the time of power failure, and the backup power supply 1b is used as the data processing apparatus. There is an application that executes a data saving process unique to an application during a period in which power is supplied to each unit for a certain period of time.

【0008】このような停電監視機能と、独自の停電時
データ退避処理機能を有するアプリケーションは、動作
中に停電状態であることを検知すると、現在処理中の入
力データや一時記憶中の演算データ、プログラム処理位
置等をハードディスク等の外部記憶部に退避、格納する
ことにより、停電により被るデータ破壊等の被害を最小
限に食い止めている。
When an application having such a power failure monitoring function and a unique power failure data saving processing function detects a power failure state during operation, the input data currently being processed and the operation data temporarily stored, By saving and storing the program processing position in an external storage unit such as a hard disk, the damage such as data destruction due to power failure is minimized.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のデータ処理装置においては、停電監視機能を
持たない、あるいは、停電監視機能は有するものの停電
時データ退避処理機能を持たないアプリケーション動作
時、または、アプリケーション非動作時のように停電時
にアプリケーション独自の停電時データ退避処理を実行
しない場合においても、従来の停電処理では、これらの
判別を行わない構成となっていたため、バックアップ電
源から無意味な電源供給を行い、バックアップ電源の蓄
電電力を浪費し、蓄電機能の劣化を速めるという問題点
があった。
However, such a conventional data processing apparatus does not have a power failure monitoring function, or when an application is operating that has a power failure monitoring function but does not have a data saving processing function during a power failure, Alternatively, even when the application's own power failure data save processing is not executed at the time of power failure such as when the application is not operating, the conventional power failure processing does not perform these determinations, so it is meaningless from the backup power supply. There is a problem in that the power is supplied, the power stored in the backup power is wasted, and the deterioration of the power storage function is accelerated.

【0010】また、従来のデータ処理装置においては、
CPUから入力される供給開始信号により、バックアッ
プ電源からのデータ処理装置内各部への一定時間電源供
給が行われる構成となっていたため、停電時に、停電時
データ退避処理機能を有するアプリケーションが既にデ
ータ退避処理を完了しているにもかかわらず、バックア
ップ電源は、定められた期間まで電源供給を継続すると
いった、電源供給期間に無駄な部分が存在しており、バ
ックアップ電源の蓄電電力を浪費し、蓄電機能の劣化を
速めるという問題点もあった。
Further, in the conventional data processing device,
Since the power supply signal from the CPU is used to supply power from the backup power source to each part of the data processing device for a certain period of time, an application having a data backup processing function during a power failure has already saved data during a power failure. Despite the completion of the process, the backup power supply has a wasteful part during the power supply period, such as continuing to supply power until the specified period, thus wasting the power stored in the backup power supply There was also the problem of accelerating the deterioration of functions.

【0011】本発明の課題は、停電時にアプリケーショ
ン独自の停電時データ退避処理が実行されるか否かをデ
ータ処理装置内CPUの停電処理で判別し、停電時に、
停電時データ退避処理が実行される場合にのみバックア
ップ電源からの電源供給を行うこととし、さらに、デー
タ処理装置内CPUの停電処理がアプリケーションから
停電時データ退避処理の完了を受けると、バックアップ
電源からの電源供給を停止させることで、バックアップ
電源からの無駄な電源供給を回避することである。
An object of the present invention is to determine whether or not the application-specific data saving processing during a power failure is executed during a power failure by the power failure processing of the CPU in the data processing device.
The power is supplied from the backup power supply only when the power saving data saving process is executed. Furthermore, when the power failure processing of the CPU in the data processing device receives the completion of the power saving data saving process from the application, the backup power supply That is, by stopping the power supply of the power supply, unnecessary power supply from the backup power supply is avoided.

【0012】また、上記のようにデータ処理装置のCP
Uが、アプリケーション独自の停電時データ退避処理の
実行有無を判別可能とする構成であることに着目し、停
電状態から復帰した際、アプリケーション独自の停電時
データ退避処理が実行された場合は、退避させたデータ
に基づき、直ちにアプリケーション処理の継続を可能と
することである。
Further, as described above, the CP of the data processor is
Focusing on the fact that U can determine whether or not the application-specific data save processing during a power failure is performed, and when the application-specific data save processing during a power failure is executed when returning from a power failure state, save It is possible to immediately continue the application processing based on the data.

【0013】[0013]

【課題を解決するための手段】この発明の手段は以下の
通りである。請求項1記載の発明は、停電を検出する検
出手段と、停電の検出時に電源供給を行うバックアップ
電源と、データ処理を実行するプログラムの中に、停電
時、データの退避処理を行うプログラムが組込まれてい
るか否かを判別する判別手段と、停電が検出された際
に、前記判別手段により、現在処理中のプログラムの中
にデータの退避処理が組込まれていると判別された場合
は、前記バックアップ電源からの電源供給を行い、当該
データ退避処理の実行終了を確認した後に、当該バック
アップ電源からの電源供給を止めて停止し、データの退
避処理が組込まれていないと判断された場合は、バック
アップ電源からの電源供給を行わずに停止する制御手段
とを備えたことを特徴としている。
The means of the present invention are as follows. According to the first aspect of the present invention, a detecting unit for detecting a power failure, a backup power supply for supplying power when a power failure is detected, and a program for executing data processing include a program for saving data during a power failure. If it is determined that a data saving process is incorporated in the program currently being processed when the power failure is detected, the determining unit that determines whether or not the If power is supplied from the backup power supply and the execution of the data save process is confirmed, then the power supply from the backup power supply is stopped and stopped, and if it is determined that the data save process is not incorporated, It is characterized by comprising a control means for stopping without supplying power from a backup power supply.

【0014】また、この場合、請求項2記載の発明のよ
うに、前記制御手段は、前記停電から復帰した際に、停
電時にデータの退避処理が行われている場合、退避させ
たデータに基づき処理を継続する処理継続手段を備える
ことが有効である。
Further, in this case, as in the invention described in claim 2, when the data is saved at the time of power failure when the control means recovers from the power failure, based on the saved data, It is effective to provide a process continuation means for continuing the process.

【0015】[0015]

【作用】この発明の手段の作用は以下の通りである。請
求項1記載の発明によれば、検出手段により停電が検出
された時、データの退避処理を行うプログラムが組込ま
れているか否かを判別手段により判別し、データの退避
処理が組込まれていると判別された場合は、制御手段が
バックアップ電源からの電源供給を行い、当該データ退
避処理の実行終了を確認した後に、当該バックアップ電
源からの電源供給を止めて停止し、データの退避処理が
組込まれていないと判別された場合は、バックアップ電
源からの電源供給を行わずに停止する。
The operation of the means of the present invention is as follows. According to the first aspect of the invention, when the detecting means detects the power failure, the determining means determines whether or not the program for performing the data saving processing is incorporated, and the data saving processing is incorporated. If it is determined that the backup power is supplied, the control means confirms the completion of the execution of the data saving process, then stops and stops the power supply from the backup power, and the data saving process is incorporated. If it is determined that the backup power has not been supplied, the backup power supply is stopped without supplying power.

【0016】したがって、データ処理装置内のバックア
ップ電源からの無駄な電源供給を回避することができ、
バックアップ電源の蓄電機能の劣化を緩和し、信頼性を
向上させることができる。
Therefore, it is possible to avoid unnecessary power supply from the backup power supply in the data processing device,
It is possible to reduce the deterioration of the power storage function of the backup power supply and improve the reliability.

【0017】また、請求項2記載の発明によれば、前記
制御手段は、前記停電から復帰した際に、停電時にデー
タの退避処理が行われている場合、処理継続手段により
退避させたデータに基づき処理を継続する。
According to the second aspect of the present invention, when the data is saved at the time of power failure when the control means recovers from the power failure, the control means writes the data saved by the processing continuation means. Based on this, processing is continued.

【0018】したがって、アプリケーションプログラム
に対する停電復帰時のサポート体制を強化することがで
き、データ処理装置の使い勝手を向上することができ
る。
Therefore, it is possible to strengthen the support system for the application program at the time of power failure recovery and improve the usability of the data processing device.

【0019】[0019]

【実施例】以下、図1〜図3を参照して請求項1及び2
記載の発明の実施例を詳細に説明する。図1〜図3は、
本発明を適用したデータ処理装置の一実施例を示す図で
ある。まず、構成を説明する。図1は、本実施例のデー
タ処理装置10の全体構成を示すブロック図である。こ
の図において、データ処理装置10は、UPS部1、C
PU11、入力部12、入力制御部13、表示駆動部1
4、表示部15、ROM16、印字制御部17、印字部
18、メモリ19、タイマ20及び外部記憶部21によ
り構成されており、CPU11、入力部12、入力制御
部13、表示駆動部14、表示部15、ROM16、印
字制御部17、印字部18、メモリ19、タイマ20及
び外部記憶部21は、バス23に接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, referring to FIG. 1 to FIG.
Embodiments of the described invention will be described in detail. 1 to 3 are
It is a figure which shows one Example of the data processing apparatus to which this invention is applied. First, the configuration will be described. FIG. 1 is a block diagram showing the overall configuration of the data processing device 10 of this embodiment. In this figure, the data processing device 10 includes a UPS unit 1 and a C unit.
PU 11, input unit 12, input control unit 13, display drive unit 1
4, a display unit 15, a ROM 16, a print control unit 17, a print unit 18, a memory 19, a timer 20, and an external storage unit 21, and includes a CPU 11, an input unit 12, an input control unit 13, a display drive unit 14, and a display. The unit 15, the ROM 16, the print control unit 17, the print unit 18, the memory 19, the timer 20, and the external storage unit 21 are connected to the bus 23.

【0020】UPS部1は、停電検出部1a、バックア
ップ電源1bとから構成されており、停電、あるいは断
線等によって不意に瞬間的、もしくは継続的に電力の供
給が途絶えた場合、データ処理装置10内各部へ電源供
給を行う。停電検出部1aは、AC電源からデータ検出
装置10に供給される供給電圧が停電によって停止され
る状態を検出し、所定の停電検出信号をCPU11に出
力する。
The UPS unit 1 is composed of a power failure detection unit 1a and a backup power supply 1b, and when the power supply is suddenly or continuously interrupted due to a power failure or a disconnection, the data processing unit 10 Supply power to each part. The power failure detection unit 1a detects a state in which the supply voltage supplied from the AC power supply to the data detection device 10 is stopped by a power failure, and outputs a predetermined power failure detection signal to the CPU 11.

【0021】また、バックアップ電源1bは、AC電源
により常時充電されており、停電検出時にCPU11か
ら入力される所定の供給開始信号により、AC電源に替
りデータ処理装置内各部へ電源供給を行い、さらに、C
PU11から入力される所定の供給終了信号により、電
源供給を停止する。
The backup power supply 1b is always charged by the AC power supply, and in response to a predetermined supply start signal input from the CPU 11 when a power failure is detected, the backup power supply 1b is replaced with the AC power supply to supply power to each part in the data processing device. , C
Power supply is stopped by a predetermined supply end signal input from the PU 11.

【0022】CPU11は、データ処理装置10の電源
が“ON”された時、ROM16に格納されている基本
制御プログラムを実行し、データ処理装置10内各部の
構成をチェックして動作環境を整備するとともに、入力
部13からのアプリケーション指定に応じて外部記憶部
21内のアプリケーション記憶部22から指定アプリケ
ーションをメモリ19に転送させ、そのアプリケーショ
ンに応じた処理を実行する。
The CPU 11 executes the basic control program stored in the ROM 16 when the power of the data processing device 10 is turned "ON", checks the configuration of each part in the data processing device 10 and prepares an operating environment. At the same time, the designated application is transferred from the application storage unit 22 in the external storage unit 21 to the memory 19 according to the application designation from the input unit 13, and the process according to the application is executed.

【0023】また、CPU11は、データ退避フラグF
1及び停電フラグF2を格納しており、後述するタイマ
割込み処理を実行する際にデータ退避フラグF1及び停
電フラグF2を利用して、停電発生時に、実行中のアプ
リケーションの停電時データ退避処理機能の有無を判別
することにより、UPS部1内のバックアップ電源1b
からのデータ処理装置10内各部への電源供給動作を制
御する。
Further, the CPU 11 causes the data saving flag F
1 and the power failure flag F2 are stored, and the data saving flag F1 and the power failure flag F2 are used when executing the timer interrupt processing described later, and the data saving processing function at the time of the power failure of the application being executed at the time of the power failure occurs. By determining the presence or absence, the backup power supply 1b in the UPS unit 1
Control the power supply operation to each part in the data processing device 10 from the.

【0024】上記、データ退避フラグF1は、実行中の
アプリケーションの停電時データ退避処理機能の有無を
判別する際に利用されるフラグデータであり、その機能
を有する場合には、“1”がセットされ、その機能がな
い場合には、“0”がセットされる。
The data save flag F1 is flag data used when determining whether or not the application being executed has the data save processing function during a power failure. When the data save flag F1 has the function, "1" is set. If there is no such function, "0" is set.

【0025】上記停電フラグF2は、UPS部1の停電
検出部1aから入力される停電検出信号の入力の有無に
応じて利用されるフラグデータであり、停電検出信号が
入力された場合には、“1”がセットされ、停電状態か
ら復帰して、退避されたデータに基づいて停電前に実行
されていたアプリケーション処理の継続処理が再開され
た場合に、“0”にセットされる。
The power failure flag F2 is flag data used according to the presence or absence of the power failure detection signal input from the power failure detection unit 1a of the UPS unit 1. When the power failure detection signal is input, This is set to "0" when "1" is set, the power failure state is restored, and the continuation processing of the application processing that was executed before the power failure is restarted based on the saved data.

【0026】入力部12は、キーボードやマウス等から
構成され、各種キー入力操作に応じた各種入力情報を入
力制御部13に出力する。入力制御部13は、入力部1
2からの各種入力情報をバス23を介してCPU11に
出力する。
The input unit 12 is composed of a keyboard, a mouse and the like, and outputs various input information corresponding to various key input operations to the input control unit 13. The input control unit 13 is the input unit 1
Various input information from 2 is output to the CPU 11 via the bus 23.

【0027】表示駆動部14は、CPU11とバス23
で接続されており、CPU11からバス23を介して入
力されるデータや演算結果によって表示部15を駆動制
御する。表示部15は、CRT(Cathode Ray Tube)や
液晶ディスプレイ等から構成され、表示駆動部14によ
り駆動制御されて、データや演算結果等を表示する。
The display drive unit 14 includes a CPU 11 and a bus 23.
The display unit 15 is driven and controlled by the data input from the CPU 11 via the bus 23 and the calculation result. The display unit 15 includes a CRT (Cathode Ray Tube), a liquid crystal display, and the like, and is drive-controlled by the display drive unit 14 to display data, calculation results, and the like.

【0028】ROM16は、データ処理装置10内各部
の構成や動作環境を整備するために必要な、基本制御プ
ログラム等を格納しており、データ処理装置10の電源
が“ON”された時に、CPU11により基本制御プロ
グラムが読み出されて利用される。印字制御部17は、
CPU11とバス23で接続されており、CPU11か
らバス23を介して入力される印字データによって印字
部18を駆動制御する。
The ROM 16 stores a basic control program and the like necessary for maintaining the configuration and operating environment of each unit in the data processing device 10. When the power of the data processing device 10 is turned "ON", the CPU 11 The basic control program is read out and used by. The print control unit 17
It is connected to the CPU 11 via a bus 23, and drives and controls the printing unit 18 according to print data input from the CPU 11 via the bus 23.

【0029】印字部18は、印字制御部17により駆動
制御されて、データや演算結果等を所定用紙に印字す
る。メモリ19は、CPU11で処理中のアプリケーシ
ョンプログラムや処理中の演算データ等を一時的に格納
するメモリエリアを形成する。
The printing unit 18 is driven and controlled by the printing control unit 17 and prints data and calculation results on a predetermined paper. The memory 19 forms a memory area for temporarily storing an application program being processed by the CPU 11 and calculation data being processed.

【0030】タイマ20は、上記CPU11により実行
されるタイマ割込み処理の割込み時間を設定するタイマ
であり、そのタイムアップ信号をバス23を介してCP
U11に出力する。外部記憶部21は、ハードディスク
ドライブ(Hard Disk Drive)、フロッピーディスクド
ライブ(Floppy Disk Drive)等により構成され、CP
U11からの入力データや演算結果等を格納するととも
に、各種アプリケーションプログラムをアプリケーショ
ン記憶部22に格納する。
The timer 20 is a timer for setting the interrupt time of the timer interrupt process executed by the CPU 11, and outputs its time-up signal to the CP via the bus 23.
Output to U11. The external storage unit 21 is composed of a hard disk drive (Hard Disk Drive), a floppy disk drive (Floppy Disk Drive), and the like.
The input data from U11, the calculation result, and the like are stored, and various application programs are stored in the application storage unit 22.

【0031】このアプリケーション記憶部22に格納さ
れるアプリケーションプログラムは、データ処理装置1
0上で運用される応用プログラムであり、例えば、事務
計算や文書作成、科学技術計算用等があり、これらのア
プリケーションプログラムは、CPU11からの指定に
より外部記憶部21からメモリ19に転送されて、起動
される。
The application program stored in the application storage unit 22 is the data processing device 1
0 is an application program operated on 0, for example, for office calculation, document creation, scientific and technological calculation, etc. These application programs are transferred from the external storage unit 21 to the memory 19 according to a designation from the CPU 11, Is activated.

【0032】さらに、アプリケーション記憶部22は、
データ退避実行フラグF3を格納しており、このデータ
退避実行フラグF3は、停電時に、アプリケーションプ
ログラムにより独自の停電時データ退避処理が実行され
た場合に“1”にセットされ、停電状態から復帰して、
退避されたデータに基づいて停電前に実行されていたア
プリケーションプログラム処理の継続処理が再開された
場合に、“0”にセットされる。
Further, the application storage unit 22 is
The data save execution flag F3 is stored. This data save execution flag F3 is set to "1" when the application program executes its own data save processing during a power failure at the time of a power failure, and the data is saved from the power failure state. hand,
It is set to "0" when the continuing processing of the application program processing that was executed before the power failure is restarted based on the saved data.

【0033】したがって、上記CPU11は、このデー
タ退避実行フラグF3を参照することにより、実行中の
アプリケーションの停電時データ退避処理機能の有無を
判別することができる。
Therefore, the CPU 11 can determine whether or not the application being executed has the data saving processing function during a power failure by referring to the data saving execution flag F3.

【0034】次に、動作を説明する。まず、本実施例の
データ処理装置10のCPU11において実行される停
電処理について、図2に示すフローチャートに基づいて
説明する。この停電処理は、タイマ20のタイムアップ
毎に実行されるタイマ割込み処理であり、一定時間毎に
UPS部1の停電検出部1aから停電検出信号が入力さ
れているか否かを判別し(ステップS1)、前記停電検
出信号が入力されていない場合は、停電処理を終了し、
前記停電検出信号が入力されている場合は、停電フラグ
F2を“1”にセットする(ステップS2)。
Next, the operation will be described. First, the power failure process executed by the CPU 11 of the data processing device 10 of the present embodiment will be described based on the flowchart shown in FIG. This power outage process is a timer interrupt process that is executed each time the timer 20 times up, and it is determined at regular time intervals whether or not a power outage detection signal is input from the power outage detection unit 1a of the UPS unit 1 (step S1). ), If the power failure detection signal is not input, terminate the power failure processing,
When the power failure detection signal is input, the power failure flag F2 is set to "1" (step S2).

【0035】この停電フラグF2の“1”セット状態
は、退避されたデータに基づいて停電前に実行されてい
たアプリケーション処理の継続処理が再開されるまで保
持される。
The "1" set state of the power failure flag F2 is maintained until the continuation of the application processing which was executed before the power failure is restarted based on the saved data.

【0036】次いで、アプリケーションプログラムが動
作中であるか否かを判別し(ステップS3)、動作中で
ない場合は、停電処理を終了し、動作中の場合は、その
アプリケーションプログラムが停電時データ退避処理機
能を有しているか否かを、データ退避フラグF1が
“1”にセットされているか否かにより判別する(ステ
ップS4)。停電時データ退避処理機能がない場合、す
なわち、データ退避フラグF1が“0”にセットされて
いる場合は、停電処理を終了し、停電時データ退避処理
機能を有する場合、すなわち、データ退避フラグF1が
“1”にセットされている場合は、CPU11は、バッ
クアップ電源1bに供給開始信号を出力し、バックアッ
プ電源1bからのデータ処理装置10内各部への電源供
給を開始させる(ステップS5)。
Next, it is determined whether or not the application program is in operation (step S3). If the application program is not in operation, the power outage process is terminated, and if it is in operation, the application program is in the power outage data saving process. Whether or not it has a function is determined by whether or not the data save flag F1 is set to "1" (step S4). If there is no data saving processing function during power failure, that is, if the data saving flag F1 is set to "0", power failure processing is terminated, and if there is a data saving processing function during power failure, that is, data saving flag F1 If is set to "1", the CPU 11 outputs a supply start signal to the backup power supply 1b to start power supply from the backup power supply 1b to each part in the data processing device 10 (step S5).

【0037】そして、アプリケーションプログラム独自
の停電時データ退避処理の完了がデータ処理装置10の
CPU11に入力されると(ステップS6)、CPU1
1は、バックアップ電源1bに供給終了信号を出力し、
バックアップ電源1bからの電源供給を停止させ(ステ
ップS7)、停電処理を終了し、データ処理装置10は
停止する。以上がデータ処理装置10のCPU11にお
いて実行される停電処理の動作手順である。
When the completion of the power saving data saving process unique to the application program is input to the CPU 11 of the data processing device 10 (step S6), the CPU 1
1 outputs a supply end signal to the backup power supply 1b,
The power supply from the backup power supply 1b is stopped (step S7), the power outage process is terminated, and the data processing device 10 is stopped. The above is the operation procedure of the power failure process executed by the CPU 11 of the data processing device 10.

【0038】次に、本実施例のデータ処理装置10上で
運用される、停電時データ退避処理機能を有するアプリ
ケーションプログラムを起動させる際の処理について、
図3に示すフローチャートに基づいて説明する。
Next, regarding the processing when starting the application program having the data saving processing function at the time of power failure, which is operated on the data processing apparatus 10 of this embodiment,
A description will be given based on the flowchart shown in FIG.

【0039】アプリケーションプログラムを起動する
と、まず、アプリケーション記憶部22内部のデータ退
避実行フラグF3が“1”にセットされているか否かを
参照し、停電発生時にアプリケーション独自の停電時デ
ータ退避処理が実行されたか否かを判別する(ステップ
S10)。
When the application program is started up, first, referring to whether or not the data save execution flag F3 inside the application storage unit 22 is set to "1", the data save processing during power failure unique to the application is executed when a power failure occurs. It is determined whether or not it has been performed (step S10).

【0040】アプリケーションプログラムによって停電
前に独自の停電時データ退避処理が実行されて、データ
退避実行フラグF3が“1”にセットされている場合、
すなわち、その停電から復帰した直後のアプリケーショ
ンプログラム起動時の場合は、停電時に退避させたデー
タを外部記憶装置21からメモリ19に転送し(ステッ
プS11)、転送させたデータ内容に基づき、停電前に
中断したアプリケーション処理を継続して(ステップS
12)、停電フラグF2及びデータ退避実行フラグF3
を“0”にセットした後(ステップS13)、アプリケ
ーションプログラムの通常の起動処理(ステップS14
以降)に移る。
When the application program executes its own data saving process before a power failure and the data saving execution flag F3 is set to "1",
That is, when the application program is started immediately after the power failure is recovered, the data saved at the time of the power failure is transferred from the external storage device 21 to the memory 19 (step S11), and based on the transferred data content, before the power failure. Continue the interrupted application processing (step S
12), power failure flag F2 and data saving execution flag F3
Is set to "0" (step S13), and then the application program is normally started (step S14).
Go to).

【0041】また、ステップS10において、アプリケ
ーション独自の停電時データ退避処理が行われておら
ず、データ退避実行フラグF3が“0”にセットされて
いる場合、すなわち、通常のアプリケーションプログラ
ム起動時の場合は、アプリケーションプログラムが停電
時データ退避処理機能を有することを示すデータ退避フ
ラグF1を“1”にセットする(ステップS14)。
In step S10, if the application-specific data save processing during a power failure is not performed and the data save execution flag F3 is set to "0", that is, when the normal application program is started up. Sets a data save flag F1 indicating that the application program has a data save processing function at power failure to "1" (step S14).

【0042】次いで、CPU11の内部に格納する停電
フラグF2が“1”にセットされているか否かを参照
し、停電状態を判別する(ステップS15)。停電状態
でなく、停電フラグF2が“0”にセットされている場
合は、アプリケーションプログラムに基づく処理を実行
し、一定時間経過毎にアプリケーション処理の終了指示
が入力されているか否かを判別する。(ステップS1
7、S18)。アプリケーション処理の終了指示が入力
された場合は、CPU11内部に格納するデータ退避フ
ラグF1を“0”セットして(ステップS19)、アプ
リケーションプログラム起動処理を終了する。
Next, the power failure state is determined by referring to whether the power failure flag F2 stored inside the CPU 11 is set to "1" (step S15). When the power failure flag F2 is set to "0" instead of the power failure state, the processing based on the application program is executed, and it is determined whether or not an instruction to end the application processing is input at every constant time. (Step S1
7, S18). When an instruction to end the application processing is input, the data save flag F1 stored in the CPU 11 is set to "0" (step S19), and the application program starting processing is ended.

【0043】一方、ステップ15において、停電状態で
あり、停電フラグF2が“1”にセットされている場合
は、CPU11は、上記タイマ割込み処理により、バッ
クアップ電源1bに供給開始信号を出力し、バックアッ
プ電源1bからのデータ処理装置10内各部への電源供
給を開始させている。
On the other hand, in step 15, when the power failure is in effect and the power failure flag F2 is set to "1", the CPU 11 outputs the supply start signal to the backup power supply 1b by the timer interrupt processing, and backs up. Power supply from the power supply 1b to each part in the data processing device 10 is started.

【0044】そして、CPU11は、実行中のアプリケ
ーションプログラムの、プログラム名、プログラム処理
位置のデータを外部記憶部21に退避、格納し(ステッ
プS20)、続いて処理中の演算データ、一時記憶中の
処理データを外部記憶部21に退避、格納する(ステッ
プS21)。
Then, the CPU 11 saves and stores the program name and the data of the program processing position of the application program being executed in the external storage unit 21 (step S20), and subsequently, the operation data being processed and the temporary storage data. The processed data is saved and stored in the external storage unit 21 (step S21).

【0045】次いで、アプリケーション独自の停電時デ
ータ退避処理を実行したことを示すデータ退避実行フラ
グF3を“1”にセットし(ステップS22)、停電時
データ退避処理の完了を割込み処理に通知し、アプリケ
ーションプログラムの起動処理を終了する。以上が停電
時データ退避処理機能を有するアプリケーションプログ
ラムを起動する際の処理手順である。
Next, the data saving execution flag F3 indicating that the data saving processing during power failure unique to the application is executed is set to "1" (step S22), and the interruption processing is notified of the completion of the data saving processing during power failure. The application program startup process ends. The above is the processing procedure when the application program having the data saving processing function at the time of power failure is started.

【0046】したがって、本実施例では、データ処理装
置10のCPU11の内部に実行中のアプリケーション
プログラムによりセット、参照が可能なデータ退避フラ
グF1及び停電フラグF2を設け、さらに、停電時デー
タ退避処理機能を持つアプリケーションプログラムに応
じたデータ退避実行フラグF3をアプリケーション記憶
部22内に設け、上記タイマ割込みの停電処理と、停電
時データ退避処理機能を有するアプリケーションプログ
ラムの起動処理を実行することにより、アプリケーショ
ン独自の停電時データ退避処理が実行される場合にのみ
バックアップ電源1bからのデータ処理装置10内各部
への電源供給を行うことができる。
Therefore, in the present embodiment, a data saving flag F1 and a power failure flag F2 that can be set and referenced by the application program being executed are provided in the CPU 11 of the data processing apparatus 10, and a data saving processing function at the time of power failure is provided. The data saving execution flag F3 corresponding to the application program having the above is provided in the application storage unit 22 to execute the power interruption process of the timer interrupt and the starting process of the application program having the data saving process function at the time of power failure It is possible to supply power from the backup power supply 1b to each part in the data processing device 10 only when the data saving process at the time of power failure is executed.

【0047】さらに、上記停電処理では、アプリケーシ
ョンプログラム独自のデータ退避処理の完了を受ける
と、バックアップ電源1bからの電源供給を停止させる
ことにより、アプリケーション独自の停電時データ退避
処理の終了に合わせてバックアップ電源1bからの電源
供給を停止することができる。
Further, in the above power failure process, when the completion of the data saving process unique to the application program is received, the power supply from the backup power supply 1b is stopped, and the backup is performed at the end of the data saving process unique to the application. The power supply from the power supply 1b can be stopped.

【0048】また、停電状態から復帰した際、アプリケ
ーション独自の停電時データ退避処理が実行されている
場合、退避させたデータに基づき、直ちにアプリケーシ
ョン処理の継続を行うことができる。
Further, when the application-specific data saving process at the time of power failure is executed when returning from the power failure state, the application processing can be immediately continued based on the saved data.

【0049】以上、本発明を実施例に基づき具体的に説
明したが、本発明は上記実施例に限定されるものではな
く、その要旨を逸脱しない範囲で、適宜に変更可能であ
ることは勿論である。
Although the present invention has been specifically described based on the embodiments, the present invention is not limited to the above embodiments, and it is needless to say that the present invention can be appropriately modified without departing from the scope of the invention. Is.

【0050】例えば、本実施例では、アプリケーション
独自の停電時データ退避処理機能を有することを示すデ
ータ退避フラグF3は、アプリケーション記憶部22の
内部に格納する構成としたが、これをCPU11の内部
に格納する構成としてもよいし、あるいは、アプケーシ
ョン記憶部22の内部に格納される個々のアプリケーシ
ョンプログラムの内部に格納する構成としてもよい。
For example, in the present embodiment, the data save flag F3 indicating that the application has a data save processing function during a power failure, which is stored in the application storage unit 22, is stored in the CPU 11. It may be configured to be stored, or may be configured to be stored inside each application program stored inside the application storage unit 22.

【0051】[0051]

【発明の効果】請求項1記載の発明によれば、バックア
ップ電源からの無駄な電源供給を回避することが可能と
なり、バックアップ電源の蓄電機能の劣化を緩和し、信
頼性を向上させることができる。
According to the first aspect of the present invention, it is possible to avoid unnecessary power supply from the backup power supply, reduce the deterioration of the storage function of the backup power supply, and improve the reliability. .

【0052】また、請求項2記載の発明によれば、アプ
リケーションプログラムに対する停電復帰時のサポート
体制を強化することができ、データ処理装置の使い勝手
を向上することができる。
According to the second aspect of the invention, it is possible to strengthen the support system at the time of power failure recovery for the application program, and improve the usability of the data processing device.

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

【図1】本発明を適用したデータ処理装置の全体構成を
示すブロック図。
FIG. 1 is a block diagram showing an overall configuration of a data processing device to which the present invention has been applied.

【図2】図1のCPUにより実行されるタイマ割込み停
電処理のフローチャート。
FIG. 2 is a flowchart of timer interrupt power outage processing executed by the CPU of FIG.

【図3】図1のCPUにより実行される停電時データ退
避処理機能を有するアプリケーションプログラムの起動
処理を示すフローチャート。
FIG. 3 is a flowchart showing a starting process of an application program having a data saving process function during a power failure executed by the CPU of FIG.

【図4】従来のデータ処理装置のUPS部の構成を示す
ブロック図。
FIG. 4 is a block diagram showing a configuration of a UPS unit of a conventional data processing device.

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

1 UPS部 1a 停電検出部 1b バックアップ電源 10 データ処理装置 11 CPU 12 入力部 13 入力制御部 14 表示駆動部 15 表示部 16 ROM 17 印字駆動部 18 印字部 19 メモリ 20 タイマ 21 外部記憶部 22 アプリケーション記憶部 23 バス 1 UPS section 1a Power failure detection section 1b Backup power supply 10 Data processing device 11 CPU 12 Input section 13 Input control section 14 Display drive section 15 Display section 16 ROM 17 Print drive section 18 Print section 19 Memory 20 Timer 21 External storage section 22 Application storage Part 23 Bus

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】停電を検出する検出手段と、 停電の検出時に電源供給を行うバックアップ電源と、 データ処理を実行するプログラムの中に、停電時、デー
タの退避処理を行うプログラムが組込まれているか否か
を判別する判別手段と、 停電が検出された際に、前記判別手段により、現在処理
中のプログラムの中にデータの退避処理が組込まれてい
ると判別された場合は、前記バックアップ電源からの電
源供給を行い、当該データ退避処理の実行終了を確認し
た後に、当該バックアップ電源からの電源供給を止めて
停止し、データの退避処理が組込まれていないと判断さ
れた場合は、バックアップ電源からの電源供給を行わず
に停止する制御手段と、 を備えたことを特徴とするデータ処理装置。
1. A detection means for detecting a power failure, a backup power supply for supplying power when a power failure is detected, and a program for executing data processing, whether a program for saving data during a power failure is incorporated. If a judgment means for judging whether or not a power failure is detected and the judgment means judges that data saving processing is incorporated in the program currently being processed, the backup power source is used. After confirming that the data saving process has been completed, stop the power supply from the backup power source and stop it.If it is determined that the data saving process is not installed, the backup power source A data processing device comprising: a control unit that stops the power supply of the device without performing power supply.
【請求項2】前記制御手段は、前記停電から復帰した際
に、停電時にデータの退避処理が行われている場合、退
避させたデータに基づき処理を継続する処理継続手段を
備えたことを特徴とする請求項1記載のデータ処理装
置。
2. The control means comprises a processing continuation means for continuing the processing based on the saved data when the data saving processing is performed at the time of power failure when the power is restored from the power failure. The data processing device according to claim 1.
JP7030114A 1995-01-25 1995-01-25 Data processor Pending JPH08202633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7030114A JPH08202633A (en) 1995-01-25 1995-01-25 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7030114A JPH08202633A (en) 1995-01-25 1995-01-25 Data processor

Publications (1)

Publication Number Publication Date
JPH08202633A true JPH08202633A (en) 1996-08-09

Family

ID=12294763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7030114A Pending JPH08202633A (en) 1995-01-25 1995-01-25 Data processor

Country Status (1)

Country Link
JP (1) JPH08202633A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012071184A (en) * 2012-01-16 2012-04-12 Sankyo Co Ltd Game machine
JP2012071185A (en) * 2012-01-16 2012-04-12 Sankyo Co Ltd Game machine
WO2014147700A1 (en) * 2013-03-18 2014-09-25 富士通株式会社 Information processing device, method for stopping informaton processing device, and program for stopping information processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012071184A (en) * 2012-01-16 2012-04-12 Sankyo Co Ltd Game machine
JP2012071185A (en) * 2012-01-16 2012-04-12 Sankyo Co Ltd Game machine
WO2014147700A1 (en) * 2013-03-18 2014-09-25 富士通株式会社 Information processing device, method for stopping informaton processing device, and program for stopping information processing device
JP6020707B2 (en) * 2013-03-18 2016-11-02 富士通株式会社 Information processing apparatus, information processing apparatus stop method, and information processing apparatus stop program
JPWO2014147700A1 (en) * 2013-03-18 2017-02-16 富士通株式会社 Information processing apparatus, information processing apparatus stop method, and information processing apparatus stop program

Similar Documents

Publication Publication Date Title
US5809223A (en) Network hibernation system and a control method thereof
US20110314316A1 (en) Computer system and control method thereof
KR100281535B1 (en) Computer system and its control method
JPH08202633A (en) Data processor
JPH07160370A (en) Service interruption controller
JPH0651858A (en) Program interrupting/restarting system
JPH10268981A (en) Device and method for cutting power supply to computer system
JPS58175198A (en) Data processing device
JP3487127B2 (en) Information processing device, product registration device, and program storage medium
JPH10240367A (en) Computer system and suspend control method for the same
JP3185446B2 (en) Computer system
JPH1091297A (en) Data processor
JPS63184123A (en) Information processor
JPH07129425A (en) Reboot processing method
JPH086616A (en) Programmable controller
JPH07271561A (en) Information processor
JPH05282214A (en) System restart method and its device
JP2001125687A (en) Computer system
JP2854154B2 (en) Processing equipment
JPH0573183A (en) Power supply and cad/cam for computer
JPH0721091A (en) Service interruption processing method for electronic computer
JP2000235436A (en) Computer system
JPS63200242A (en) System switching system for hot stand-by system
JPH04219895A (en) Electronic register
JPH0628233A (en) Information equipment