JP2008293366A - Data processor - Google Patents

Data processor Download PDF

Info

Publication number
JP2008293366A
JP2008293366A JP2007139540A JP2007139540A JP2008293366A JP 2008293366 A JP2008293366 A JP 2008293366A JP 2007139540 A JP2007139540 A JP 2007139540A JP 2007139540 A JP2007139540 A JP 2007139540A JP 2008293366 A JP2008293366 A JP 2008293366A
Authority
JP
Japan
Prior art keywords
power failure
automatic shutdown
cpu
shutdown
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007139540A
Other languages
Japanese (ja)
Other versions
JP4723534B2 (en
Inventor
Noriyuki Marumo
宣之 丸茂
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2007139540A priority Critical patent/JP4723534B2/en
Publication of JP2008293366A publication Critical patent/JP2008293366A/en
Application granted granted Critical
Publication of JP4723534B2 publication Critical patent/JP4723534B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To make it possible to surely perform shut-down processing even at power failure of a main power source. <P>SOLUTION: An elapsed time period is measured after detection of power failure of the main power source. If the measured time period reaches a predetermined time period, shut-down processing is performed to terminate a system normally. In addition, a remaining time period before the shut-down processing will be started is indicated on a display. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、主電源の停電検知により補助電源に切り換えてデータ処理を継続することが可能なデータ処理装置に関する。   The present invention relates to a data processing apparatus capable of continuing data processing by switching to an auxiliary power source upon detection of a power failure of a main power source.

納品書の作成や請求書の発行等の事務処理に対応した計算機、いわゆる事務用コンピュータにおいて、補助電源としてのバッテリを内蔵し、商用電源等の主電源に停電が発生した際にはバッテリからの電源供給に切り換えて、予期しない電源断にも処理中のデータが消失してしまうのを防ぐ技術は既に実施されている。この場合、バッテリが持続する時間(3〜5分程度)内は処理中のデータを保護できるので、停電発生の警告メッセージを確認したオペレータは、区切のよいタイミングで業務を終了させる等の処置を取ればよい。   Computers that support paperwork such as invoice creation and invoicing, so-called office computers, have a built-in battery as an auxiliary power source. A technique for preventing the data being processed from being lost even when the power supply is switched to an unexpected power interruption has already been implemented. In this case, since the data being processed can be protected during the battery lasting time (about 3 to 5 minutes), the operator who has confirmed the warning message of the occurrence of a power failure should take measures such as ending the work at a good timing. Take it.

このような電源バックアップ機能を有するデータ処理装置において、従来、主電源の停電をCPUが検知すると、データ処理を終えた後にCPUからの命令で電源をオフする自動シャットダウン機能を有するものは知られていた(例えば、特許文献1参照)。
特開平10−207586号公報
Conventionally known data processing apparatuses having such a power backup function have an automatic shutdown function that turns off the power in response to a command from the CPU after the data processing is completed when the CPU detects a power failure of the main power supply. (For example, see Patent Document 1).
Japanese Patent Laid-Open No. 10-207586

しかしながら、この種のデータ処理装置に設けられた従来の自動シャットダウン機能は、データ処理を終えないとCPUからの命令で電源がオフされないため、停電発生後のデータ処理に時間がかかると、バッテリの容量低下によりシャットダウン処理が実行される前に給電が停止するおそれがあった。   However, the conventional automatic shutdown function provided in this type of data processing apparatus does not turn off the power in response to an instruction from the CPU unless the data processing is completed. There is a possibility that the power supply stops before the shutdown process is executed due to the capacity drop.

シャットダウン処理を行われずに給電が停止した場合には、システムが正常に終了していないため処理中のデータが消失してしまったり、データファイルが破壊されてしまったりすることがある。   If the power supply is stopped without performing the shutdown process, the system is not terminated normally, and the data being processed may be lost or the data file may be destroyed.

本発明はこのような事情に基づいてなされたもので、その目的とするところは、主電源の停電時においても確実にシャットダウン処理を行うことができ、データの消失,データファイルの破壊等の不具合を未然に防止できるデータ処理装置を提供しようするものである。   The present invention has been made based on such circumstances, and the purpose of the present invention is to ensure that the shutdown process can be performed even in the event of a power failure of the main power supply, such as data loss and data file destruction. It is an object of the present invention to provide a data processing apparatus that can prevent the above-mentioned problem.

本発明は、主電源の停電検知により補助電源に切り換えてデータ処理を継続することが可能なデータ処理装置において、主電源の停電検知からの経過時間を計測する計時手段と、計時手段による計測時間が所定時間に達するとシステムを正常に終了させるためのシャットダウン処理を行う自動シャットダウン手段と、シャットダウン処理が開始されるまでの残り時間を表示する表示手段とを備えたものである。   The present invention relates to a data processing apparatus capable of continuing data processing by switching to an auxiliary power supply by detecting a power failure of the main power supply, a time measuring means for measuring an elapsed time since the power failure detection of the main power supply, and a measuring time by the time measuring means. Is provided with an automatic shutdown means for performing a shutdown process for normally terminating the system when a predetermined time is reached, and a display means for displaying a remaining time until the shutdown process is started.

かかる手段を講じた本発明によれば、主電源の停電時においても確実にシャットダウン処理を行うことができ、データの消失,データファイルの破壊等の不具合を未然に防止できるデータ処理装置を提供できる。   According to the present invention in which such measures are taken, it is possible to provide a data processing apparatus that can reliably perform a shutdown process even in the event of a power failure of the main power supply and can prevent problems such as data loss and data file destruction. .

以下、本発明を実施するための最良の形態について、図面を用いて説明する。
なお、この実施の形態は、データ処理装置の一態様である事務用コンピュータに本発明を適用した場合である。
The best mode for carrying out the present invention will be described below with reference to the drawings.
This embodiment is a case where the present invention is applied to an office computer which is an aspect of a data processing apparatus.

図1は、本実施の形態における事務用コンピュータの要部構成を示すブロック図である。事務用コンピュータは、不揮発性記憶部であるHDD(Hard Disk Drive)装置1を内蔵した本体部2と、この本体部2の駆動源である電源部3と、本体部2に搭載されたキーボード4、ディスプレイ5及びプリンタ6の各種入出力機器とで構成されている。   FIG. 1 is a block diagram showing a main configuration of an office computer according to the present embodiment. The office computer includes a main body 2 having a built-in HDD (Hard Disk Drive) device 1 as a non-volatile storage, a power source 3 as a drive source of the main body 2, and a keyboard 4 mounted on the main body 2. The display 5 and the various input / output devices of the printer 6 are configured.

本体部2は、主制御部を構成するCPU(Central Processing Unit)20、プログラム等の固定的データが格納されたROM(Read Only Memory)21、CPU20によるデータの書込み及び読出しが自在なデータエリアが形成されたRAM(Random Access Memory)22、前記HDD装置1をアクセスしてデータの書込み及び読出しを制御するHDDコントローラ23、光ディスク,光磁気ディスク等の補助記憶装置を駆動する補助記憶装置ドライバ24、ネットワークを介して接続される外部装置とのデータ通信を司る通信インターフェイス25、前記キーボード4の通電を制御し、操作キーに対応したキー信号を取込むキーボードコントローラ26、前記ディスプレイ5の通電を制御し、画面を表示させる表示コントローラ27、前記プリンタ6の通電を制御し、印字動作させるプリンタコントローラ28等で構成されている。CPU20と、ROM21,RAM22,HDDコントローラ23,補助記憶装置ドライバ24,通信インターフェイス25,キーボードコントローラ26,表示コントローラ27及びプリンタコントローラ28とは、アドレスバス,データバス等のバスライン29で電気的に接続されている。   The main unit 2 has a CPU (Central Processing Unit) 20 constituting a main control unit, a ROM (Read Only Memory) 21 in which fixed data such as a program is stored, and a data area in which the CPU 20 can freely write and read data. A formed RAM (Random Access Memory) 22, an HDD controller 23 that accesses the HDD device 1 to control writing and reading of data, an auxiliary storage device driver 24 that drives an auxiliary storage device such as an optical disk and a magneto-optical disk, A communication interface 25 that controls data communication with an external device connected via a network, a keyboard controller 26 that controls the energization of the keyboard 4 and captures key signals corresponding to operation keys, and an energization of the display 5 The display controller 27 for displaying the screen and the energization of the printer 6 Gyoshi, and a printer controller 28 or the like for printing operation. The CPU 20, ROM 21, RAM 22, HDD controller 23, auxiliary storage device driver 24, communication interface 25, keyboard controller 26, display controller 27, and printer controller 28 are electrically connected by a bus line 29 such as an address bus or a data bus. Has been.

また、タイマ発振器200が本体部2に設けられており、このタイマ発振器200から一定周期のタイマ信号がCPU20に入力されるようになっている。   In addition, a timer oscillator 200 is provided in the main body 2, and a timer signal having a constant period is input from the timer oscillator 200 to the CPU 20.

電源部3は、電源回路30、停電検出回路31及びバッテリ32で構成されている。電源回路30は、図示しない電源スイッチの投入により商用電源7からの電源供給を受け、所定の駆動電圧Vを生成して本体部2に供給するとともに、前記バッテリ32の充電を行う。停電検出回路31は、前記電源回路30から供給される駆動電圧Vを監視し、一定電圧以下に低下すると停電発生とみなして、前記本体部2のCPU20に停電信号Sを出力するとともに(停電検知手段)、バッテリ32を放電させる。バッテリ32は、満充電の状態において放電が開始された場合に、3〜5分程度であれば本体部2の動作を保障し得る容量を備えたものである。   The power supply unit 3 includes a power supply circuit 30, a power failure detection circuit 31, and a battery 32. The power supply circuit 30 is supplied with power from the commercial power supply 7 by turning on a power switch (not shown), generates a predetermined drive voltage V and supplies it to the main body 2, and charges the battery 32. The power failure detection circuit 31 monitors the drive voltage V supplied from the power supply circuit 30 and considers that a power failure has occurred when the drive voltage V drops below a certain voltage and outputs a power failure signal S to the CPU 20 of the main body 2 (power failure detection). Means), the battery 32 is discharged. The battery 32 has a capacity that can guarantee the operation of the main body 2 for about 3 to 5 minutes when discharging is started in a fully charged state.

かかる構成の事務用コンピュータは、納品書、請求書、売上帳等の経営に関わる伝票,帳票の作成作業を支援するのに特化したデータ処理装置であり、納品書作成業務、請求書作成業務、月次集計業務、月次更新業務、締日集計業務、締日更新業務等の種々の業務を実行可能となっている。   An office computer with such a configuration is a data processing device specialized in supporting the creation of slips and forms related to management of invoices, invoices, sales books, etc. It is possible to perform various tasks such as a monthly tabulation task, a monthly update task, a closing date counting task, and a closing date updating task.

そして、そのHDD装置1には、業務別に作成された種々の業務プログラムを記憶するプログラム領域と、各業務に対してそれぞれ形成された複数のデータファイルを記憶するデータファイル領域とを形成している。   The HDD device 1 has a program area for storing various business programs created for each business and a data file area for storing a plurality of data files formed for each business. .

例えば納品書作成業務に対しては、作成された納品書の得意先名,得意先識別コード,商品名,数量,単価,金額,合計金額等の明細レコードを蓄積記憶するためのデータファイルがデータファイル領域に形成されている。また、月次集計業務に対しては、上記納品書作成業務に対応するデータファイルに蓄積された明細レコードのうち指定された月のレコードから得意先識別コード別に金額を集計して、月間売上帳を作成するためのデータファイルがデータファイル領域に形成されている。   For example, for a delivery note creation job, a data file for storing and storing detailed records such as customer name, customer identification code, product name, quantity, unit price, amount of money, and total amount of the created delivery note It is formed in the file area. In addition, for monthly tabulation work, the monthly sales book is calculated by summing the amount by customer identification code from the records for the specified month among the detailed records stored in the data file corresponding to the above delivery document creation work. A data file for creating a file is formed in the data file area.

そして、この事務用コンピュータは、前述したように電源部3に停電検出回路31とバッテリ32とを備えており、主電源である商用電源7の停電を停電検出回路31が検知すると、電源供給元を補助電源であるバッテリ32に切り換えて、バッテリ32が持続している間はデータ処理を継続することが可能である。そこでユーザは、バッテリ32によって電源がバックアップされている間に、実行中の業務を終了させ、システムを終了させるためのシャットダウン処理を実行する。こうすることにより、開かれていたデータファイルがクローズされるので、処理中のデータが消失してしまったり、データファイルが破壊されてしまったりすることがなくなる。   The office computer includes the power failure detection circuit 31 and the battery 32 in the power supply unit 3 as described above. When the power failure detection circuit 31 detects a power failure of the commercial power supply 7 as the main power source, the power supply source Can be switched to the battery 32 as an auxiliary power source, and data processing can be continued while the battery 32 is maintained. Therefore, while the power is being backed up by the battery 32, the user ends the work being executed and executes a shutdown process for ending the system. By doing so, the opened data file is closed, so that the data being processed is not lost or the data file is not destroyed.

さて、本実施の形態では、上述したような停電発生後の処理をより効率的に行えるようにするために、主電源に停電が発生した際に停電が発生したことを通知する機能と、停電発生から一定時間後に自動的にシャットダウン処理を実行してシステムを終了させ、電源をオフする機能とを備えている。そして、この自動シャットダウン機能を実現するために、図2に示すように、停電フラグF1、自動シャットダウン設定フラグF2、自動シャットダウン経過時間カウンタT1及び停電経過時間カウンタT2の各記憶領域をRAM22に形成している。   Now, in the present embodiment, in order to more efficiently perform the processing after the occurrence of a power failure as described above, a function for notifying that a power failure has occurred when a power failure has occurred in the main power supply, It has a function of automatically executing a shutdown process after a certain time from the occurrence to terminate the system and turning off the power. In order to realize this automatic shutdown function, as shown in FIG. 2, storage areas of the power failure flag F1, the automatic shutdown setting flag F2, the automatic shutdown elapsed time counter T1, and the power failure elapsed time counter T2 are formed in the RAM 22. ing.

停電フラグF1は、主電源である商用電源7に停電が発生しているか否かを識別するフラグであり、停電発生中は“1”にセットされる。自動シャットダウン設定フラグF2は、自動シャットダウン機能を有効にするか否かを識別するフラグであり、有効とする場合は“1”にセットされる。   The power failure flag F1 is a flag for identifying whether or not a power failure has occurred in the commercial power supply 7 as the main power source, and is set to “1” during the occurrence of a power failure. The automatic shutdown setting flag F2 is a flag for identifying whether or not to enable the automatic shutdown function, and is set to “1” when it is enabled.

これらの記憶領域は、電源投入後の初期化処理においてすべて“0”にクリアされる。すなわち電源投入時は、自動シャットダウン機能が無効となっている。そこでユーザは、自動シャットダウン機能を有効とする場合はシャットダウン設定業務を実行する。   These storage areas are all cleared to “0” in the initialization process after the power is turned on. That is, when the power is turned on, the automatic shutdown function is disabled. Therefore, the user executes a shutdown setting job when the automatic shutdown function is enabled.

図3は、シャットダウン設定業務が起動されたときのCPU20の主要な処理手順を示す流れ図である。すなわちCPU20は、種々の設定業務メニューの中からキーボード4のキー操作によりシャットダウン設定業務が選択されたことを検知すると(ST1のYES)、自動シャットダウン機能を有効とするか無効とするかの選択をオペレータに促すシャットダウン設定画面をディスプレイ5に表示させる(ST2)。   FIG. 3 is a flowchart showing a main processing procedure of the CPU 20 when the shutdown setting job is activated. That is, when the CPU 20 detects that the shutdown setting job is selected by operating the keyboard 4 from various setting job menus (YES in ST1), the CPU 20 selects whether to enable or disable the automatic shutdown function. A shutdown setting screen prompting the operator is displayed on the display 5 (ST2).

ここで、キーボード4のキー操作により自動シャットダウン機能を有効とする旨の選択操作がなされた場合には(ST3のYES)、前記自動シャットダウン設定フラグF2を“1”にセットし(ST4)、無効とする旨の選択操作がなされた場合には(ST3のNO)、前記自動シャットダウン設定フラグF2が“1”にセットされていた場合のみ“0”にリセットする(ST5:無効化手段)。   If a selection operation for enabling the automatic shutdown function is performed by key operation on the keyboard 4 (YES in ST3), the automatic shutdown setting flag F2 is set to “1” (ST4) and disabled. Is selected (NO in ST3), it is reset to “0” only when the automatic shutdown setting flag F2 is set to “1” (ST5: invalidating means).

ここで、停電が発生してからシャットダウン処理が開始されるまでの時間は、バッテリ32によって電源をバックアップできる時間以内でかつなるべく長い時間あればよい。例えば本実施の形態のように、バッテリ32による電源バックアップ時間が定格で3〜5分の場合には、確実にバックアップできる時間でかつ最長の3分(180秒)を設定することが望ましい。そこで本実施の形態では、この時間を180秒として予め停電監視プログラムに設定しておく。   Here, the time from the occurrence of a power failure to the start of the shutdown process may be as long as possible and within a time during which the power can be backed up by the battery 32. For example, as in the present embodiment, when the power backup time by the battery 32 is rated at 3 to 5 minutes, it is desirable to set the longest 3 minutes (180 seconds) as the time that can be reliably backed up. Therefore, in the present embodiment, this time is set to 180 seconds in advance in the power failure monitoring program.

上記停電監視プログラムは、本実施の形態の事務用コンピュータに常駐している。そして本体起動後、CPU20は、上記停電監視プログラムに従い、図4の流れ図に示す停電監視処理を繰返し実行するものとなっている。   The power failure monitoring program is resident in the office computer according to the present embodiment. After the main body is activated, the CPU 20 repeatedly executes the power failure monitoring process shown in the flowchart of FIG. 4 according to the power failure monitoring program.

すなわちCPU20は、ST11として停電検出回路31により停電が検出されているか否かを判断する。ここで、停電検出回路31からの信号Sが“0”であり停電未検出であると判断した場合には、CPU20は、ST12として停電フラグF1をチェックする。通常、停電フラグF1は“0”にリセットされているので、その場合は、今回の処理を終了する。   That is, the CPU 20 determines whether or not a power failure is detected by the power failure detection circuit 31 in ST11. Here, when the signal S from the power failure detection circuit 31 is “0” and it is determined that the power failure has not been detected, the CPU 20 checks the power failure flag F1 as ST12. Normally, since the power failure flag F1 is reset to “0”, in this case, the current process is terminated.

一方、停電検出回路31からの信号Sが“1”であり停電検出中であると判断した場合には、CPU20は、ST13として停電フラグF1をチェックする。そして、停電フラグF1が“0”にリセットされていた場合には、ST14としてこの停電フラグF1を“1”にセットする。さらに、ST15として後述する停電通知処理を実行して、今回の処理を終了する。これに対し、停電フラグF1が“1”にセットされていた場合には、既に停電通知処理を実行しているので、直ちに今回の処理を終了する。   On the other hand, if the signal S from the power failure detection circuit 31 is “1” and it is determined that a power failure is being detected, the CPU 20 checks the power failure flag F1 as ST13. If the power failure flag F1 has been reset to “0”, the power failure flag F1 is set to “1” as ST14. Furthermore, a power failure notification process, which will be described later, is executed as ST15, and the current process is terminated. On the other hand, if the power failure flag F1 is set to “1”, the power failure notification processing has already been executed, and the current processing is immediately terminated.

なお、停電検出回路31にて停電が検出され、信号Sが“1”に代わったものの、その後、停電から復帰して信号Sが“0”に戻ることがある。このような場合は、ST12にて停電フラグF1が“1”にセットされている。そこでCPU20は、ST16として停電フラグF1を“0”にリセットする。また、ST17として後述するタイマ監視処理を終了させて、今回の処理を終了する。   Although the power failure is detected by the power failure detection circuit 31 and the signal S is replaced with “1”, the signal S may return to “0” after the power failure. In such a case, the power failure flag F1 is set to “1” in ST12. Therefore, the CPU 20 resets the power failure flag F1 to “0” in ST16. In addition, a timer monitoring process, which will be described later, is terminated as ST17, and the current process is terminated.

図5は、前記停電通知処理の要部処理手順を示す流れ図である。すなわちCPU20は、この停電通知処理ルーチンに入ると、先ず、ST21として何らかの業務実行中に停電が発生したか否かを判断する。業務メニュー画面がディスプレイ5に表示されているときに停電が発生した場合には、業務実行中でないので、CPU20は、ST22として自動シャットダウン設定フラグF2をチェックする。ここで、自動シャットダウン設定フラグF2が“0”にリセットされていた場合、すなわち自動シャットダウン機能が無効に設定されていた場合には、CPU20は、ST23として自動シャットダウン機能無しかつ業務実行無しに対応した第1の停電通知画面G1をディスプレイ5に表示させる。   FIG. 5 is a flowchart showing a main part processing procedure of the power failure notification process. That is, when entering the power failure notification processing routine, the CPU 20 first determines whether or not a power failure has occurred during the execution of some work as ST21. If a power failure occurs while the business menu screen is displayed on the display 5, since the business is not being executed, the CPU 20 checks the automatic shutdown setting flag F2 as ST22. Here, when the automatic shutdown setting flag F2 is reset to “0”, that is, when the automatic shutdown function is set to be invalid, the CPU 20 corresponds to no automatic shutdown function and no business execution as ST23. The first power failure notification screen G1 is displayed on the display 5.

これに対し、自動シャットダウン設定フラグF2が“1”にセットされていた場合、すなわち自動シャットダウン機能が有効に設定されていた場合には、CPU20は、ST24として自動シャットダウン機能有りかつ業務実行無しに対応した第2の停電通知画面G2をディスプレイ5に表示させる。   On the other hand, when the automatic shutdown setting flag F2 is set to “1”, that is, when the automatic shutdown function is set to be valid, the CPU 20 responds to ST24 with the automatic shutdown function and no business execution. The second power failure notification screen G2 is displayed on the display 5.

一方、各種業務メニューの中から選択された業務の処理画面が表示されているときに、停電が発生した場合には、業務実行中であるので、CPU20は、ST25として自動シャットダウン設定フラグF2をチェックする。ここで、自動シャットダウン設定フラグF2が“0”にリセットされていた場合、すなわち自動シャットダウン機能が無効に設定されていた場合には、CPU20は、ST26として停電経過時間カウンタT2を“0”に初期設定するとともに、ST27として自動シャットダウン機能無しかつ業務実行有りに対応した第3の停電通知画面G3をディスプレイ5に表示させる。これに対し、自動シャットダウン設定フラグF2が“1”にセットされていた場合、すなわち自動シャットダウン機能が有効に設定されていた場合には、CPU20は、ST28として自動シャットダウン経過時間カウンタT1を“180”に初期設定する。   On the other hand, if a power failure occurs while the processing screen for the business selected from the various business menus is displayed, the business is being executed, so the CPU 20 checks the automatic shutdown setting flag F2 as ST25. To do. Here, when the automatic shutdown setting flag F2 is reset to “0”, that is, when the automatic shutdown function is disabled, the CPU 20 initializes the power failure elapsed time counter T2 to “0” as ST26. In addition to the setting, in ST27, the third power failure notification screen G3 corresponding to the absence of the automatic shutdown function and the execution of business is displayed on the display 5. On the other hand, when the automatic shutdown setting flag F2 is set to “1”, that is, when the automatic shutdown function is enabled, the CPU 20 sets the automatic shutdown elapsed time counter T1 to “180” as ST28. Initial setting.

次いで、ST29として実行中の業務において、データファイルに保存されていないデータがあるか否かを判断する。そして、保存されていないデータがない場合には、ST30として自動シャットダウン機能有り、業務実行有りかつ未保存データ無しに対応した第4の停電通知画面G4をディスプレイ5に表示させる。これに対し、保存されていないデータがある場合には、ST31として自動シャットダウン機能有り、業務実行有りかつ未保存データ有りに対応した第5の停電通知画面G5をディスプレイ5に表示させる。   Next, in the job being executed as ST29, it is determined whether there is data that is not stored in the data file. If there is no unsaved data, a fourth power failure notification screen G4 corresponding to the presence of the automatic shutdown function, the execution of business, and the absence of unsaved data is displayed on the display 5 as ST30. On the other hand, if there is unsaved data, a fifth power failure notification screen G5 corresponding to the presence of an automatic shutdown function, the presence of business execution, and the presence of unsaved data is displayed on the display 5 as ST31.

こうして、いずれかの停電通知画面G1〜G5を表示させたならば、CPU20は、ST32としてタイマ監視処理を起動する。このタイマ監視処理は、図6の流れ図に示す手順で実行される。   If any of the power failure notification screens G1 to G5 is displayed in this way, the CPU 20 starts a timer monitoring process as ST32. This timer monitoring process is executed according to the procedure shown in the flowchart of FIG.

先ず、CPU20は、ST41として自動シャットダウン設定フラグF2をチェックする。そして、自動シャットダウン設定フラグF2が“1”、すなわち自動シャットダウン機能が有効であった場合には、CPU20は、ST42として画面のガイダンスラインに自動シャットダウン経過時間カウンタT1の値を表示する(表示手段)。これに対し、自動シャットダウン設定フラグF2が“0”、すなわち自動シャットダウン機能が無効であった場合には、CPU20は、ST43として上記ガイダンスラインに停電経過時間カウンタT2の値を表示する(表示手段)。   First, the CPU 20 checks the automatic shutdown setting flag F2 as ST41. If the automatic shutdown setting flag F2 is “1”, that is, if the automatic shutdown function is valid, the CPU 20 displays the value of the automatic shutdown elapsed time counter T1 on the guidance line of the screen as ST42 (display means). . On the other hand, when the automatic shutdown setting flag F2 is “0”, that is, when the automatic shutdown function is disabled, the CPU 20 displays the value of the power failure elapsed time counter T2 on the guidance line as ST43 (display means). .

しかる後、CPU20は、ST44としてタイマ発振器200からの信号により1秒をカウントする。そして、1秒がカウントされる毎に、ST45〜ST49の処理を繰返し実行する。   After that, the CPU 20 counts 1 second by a signal from the timer oscillator 200 in ST44. Each time one second is counted, the processes of ST45 to ST49 are repeatedly executed.

すなわちCPU20は、自動シャットダウン設定フラグF2をチェックし(ST45)、“0”にリセットされていた場合には(ST45のNO)、停電経過時間カウンタT2の値を“1”だけカウントアップする(ST46)。そして、ガイダンスラインに表示されている停電経過時間カウンタT2の値を更新する(ST49)。しかる後、次の1秒が計時されるのを待機する(ST44)。   That is, the CPU 20 checks the automatic shutdown setting flag F2 (ST45), and if it has been reset to “0” (NO in ST45), the value of the power failure elapsed time counter T2 is incremented by “1” (ST46). ). Then, the value of the power failure elapsed time counter T2 displayed on the guidance line is updated (ST49). Thereafter, it waits for the next one second to be timed (ST44).

これに対し、自動シャットダウン設定フラグF2が“1”にセットされていた場合には(ST45のYES)、CPU20は、自動シャットダウン経過時間カウンタT1の値を“1”だけカウントダウンする(ST47:計時手段)。そして、カウントダウン後の自動シャットダウン経過時間カウンタT1の値が“0”になったか否かを判断する(ST48)。自動シャットダウン経過時間カウンタT1の値が“0”より大きい場合には(ST48のNO)、ガイダンスラインに表示されている自動シャットダウン経過時間カウンタT1の値を更新する(ST49)。しかる後、CPU20は、次の1秒が計時されるのを待機する(ST44)。   On the other hand, when the automatic shutdown setting flag F2 is set to “1” (YES in ST45), the CPU 20 counts down the value of the automatic shutdown elapsed time counter T1 by “1” (ST47: time measuring means) ). Then, it is determined whether or not the value of the automatic shutdown elapsed time counter T1 after the countdown has become “0” (ST48). When the value of the automatic shutdown elapsed time counter T1 is larger than “0” (NO in ST48), the value of the automatic shutdown elapsed time counter T1 displayed on the guidance line is updated (ST49). Thereafter, the CPU 20 waits for the next one second to be timed (ST44).

一方、自動シャットダウン経過時間カウンタT1の値が“0”になったことを確認した場合には(ST48のYES)、CPU20は、オープンされているデータファイルをクローズする等のシステムを終了させるためのシャットダウン処理を行い、電源をオフする(ST50:自動シャットダウン手段)。   On the other hand, when it is confirmed that the value of the automatic shutdown elapsed time counter T1 has become “0” (YES in ST48), the CPU 20 terminates the system such as closing the opened data file. A shutdown process is performed and the power is turned off (ST50: automatic shutdown means).

このように、本実施の形態の事務用コンピュータにおいては、主電源である商用電源7に停電が発生すると、電源供給元が補助電源であるバッテリ32に切り替る。そしてオペレータに停電が発生したことを知らせる停電通知画面がディスプレイ5に表示される。   As described above, in the office computer according to the present embodiment, when a power failure occurs in the commercial power source 7 that is the main power source, the power supply source is switched to the battery 32 that is the auxiliary power source. Then, a power failure notification screen that informs the operator that a power failure has occurred is displayed on the display 5.

このとき、業務実行中でなく、自動シャットダウン機能が無効に設定されていた場合には第1の停電通知画面G1が表示される。また、業務実行中でなく、自動シャットダウン機能が有効に設定されていた場合には第2の停電通知画面G2が表示される。これに対し、業務実行中であり、自動シャットダウン機能が無効に設定されていた場合には第3の停電通知画面G3が表示される。また、自動シャットダウン機能が有効に設定されていた場合には、保存されていないデータがない場合には第4の停電通知画面G4が表示され、保存されていないデータがある場合には第5の停電通知画面G5が表示される。   At this time, when the business is not being executed and the automatic shutdown function is disabled, the first power failure notification screen G1 is displayed. Further, when the business is not being executed and the automatic shutdown function is set to be effective, the second power failure notification screen G2 is displayed. On the other hand, when the business is being executed and the automatic shutdown function is disabled, the third power failure notification screen G3 is displayed. Further, when the automatic shutdown function is set to be effective, the fourth power failure notification screen G4 is displayed when there is no unsaved data, and when there is unsaved data, the fifth A power failure notification screen G5 is displayed.

第1の停電通知画面G1の一表示例を図7に、第2の停電通知画面G2の一表示例を図8に、第3の停電通知画面G3の一表示例を図9に、第4の停電通知画面G4の一表示例を図10に、第5の停電通知画面G5の一表示例を図11にそれぞれ示す。   FIG. 7 shows a display example of the first power failure notification screen G1, FIG. 8 shows a display example of the second power failure notification screen G2, FIG. 9 shows a display example of the third power failure notification screen G3. A display example of the power failure notification screen G4 is shown in FIG. 10, and a display example of the fifth power failure notification screen G5 is shown in FIG.

図示するように、自動シャットダウン機能無しに対応した停電通知画面G1,G3には、停電発生を知らせる所定の停電通知メッセージを示したポップアップウィンドウM1,M3が表示される。また、そのガイダンスラインL1,L3には、停電経過時間カウンタT2の値が秒単位で表示される。   As shown in the figure, pop-up windows M1 and M3 showing predetermined power failure notification messages notifying the occurrence of a power failure are displayed on the power failure notification screens G1 and G3 corresponding to the absence of the automatic shutdown function. In addition, on the guidance lines L1 and L3, the value of the power failure elapsed time counter T2 is displayed in seconds.

そして、ポップアップウィンドゥM1,M3は、クリアキーが操作されたことに応じて閉じられる。また、停電経過時間カウンタT2の値は、1秒が経過する毎にカウントアップされる。すなわち、停電発生からの経過時間が表示される。したがってオペレータは、停電発生からの経過時間を確認しながら手動によるシャットダウン処理を実行することができる。   The pop-up windows M1 and M3 are closed in response to the operation of the clear key. The value of the power failure elapsed time counter T2 is counted up every time 1 second elapses. That is, the elapsed time since the occurrence of a power failure is displayed. Therefore, the operator can execute the manual shutdown process while checking the elapsed time from the occurrence of the power failure.

一方、自動シャットダウン機能有りに対応した停電通知画面G2,G4,G5には、停電発生とともに自動シャットダウン機能が働くことを通知する所定の停電通知メッセージを示したポップアップウィンドウM2,M4,M5が表示される。また、そのガイダンスラインL2,L4,L5には、自動シャットダウン経過時間カウンタT1の値が秒単位で表示される。   On the other hand, on the power failure notification screens G2, G4, and G5 corresponding to the presence of the automatic shutdown function, pop-up windows M2, M4, and M5 showing predetermined power failure notification messages for notifying that the automatic shutdown function is activated when a power failure occurs are displayed. The In addition, the value of the automatic shutdown elapsed time counter T1 is displayed in seconds on the guidance lines L2, L4, and L5.

そして、ポップアップウィンドゥM2,M4,M5は、クリアキーが操作されたことに応じて閉じられる。また、自動シャットダウン経過時間カウンタT1の値は、1秒が経過する毎にカウントダウンされる。すなわち、自動シャットダウン機能が働くまでの残り時間が表示される。したがってオペレータは、自動シャットダウン機能が働くまでの残り時間を確認しながら業務を終了させる等の必要な操作を実行することができる。その結果、業務の実行途中でシャットダウン処理が自動的に行われてデータが消失してしまうようなことはない。   The pop-up windows M2, M4 and M5 are closed in response to the operation of the clear key. The value of the automatic shutdown elapsed time counter T1 is counted down every time 1 second elapses. That is, the remaining time until the automatic shutdown function is displayed. Therefore, the operator can execute necessary operations such as ending the work while checking the remaining time until the automatic shutdown function is activated. As a result, there is no possibility that the shutdown process is automatically performed during the execution of the business and the data is not lost.

かくして本実施の形態によれば、主電源の停電時においても確実にシャットダウン処理を行うことができるので、データの消失,データファイルの破壊等の不具合を未然に防止することができる。   Thus, according to the present embodiment, the shutdown process can be reliably performed even in the event of a power failure of the main power supply, so that problems such as data loss and data file destruction can be prevented in advance.

なお、この発明は前記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。   The present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage.

例えば前記実施の形態では、自動シャットダウン機能無しに対応した停電通知画面G1,G3において、そのガイダンスラインL1,L3に停電経過時間カウンタT2の値を表示させたが、自動シャットダウン機能無しのときには、停電発生を通知するメッセージとして終了業務(シャットダウン業務)を即実行させることを促す情報を通知すれば事足りるので、必ずしも停電経過時間カウンタT2の値を表示させない実施形態としても、本発明の効果を充分に奏し得るものである。   For example, in the above-described embodiment, the value of the power failure elapsed time counter T2 is displayed on the guidance lines L1 and L3 on the power failure notification screens G1 and G3 corresponding to the absence of the automatic shutdown function. Since it suffices to notify the information prompting the user to immediately execute the end task (shutdown task) as a message notifying the occurrence, the embodiment of the present invention does not necessarily display the value of the power failure elapsed time counter T2. It can be played.

また、本発明は事務用コンピュータに限定されるものではなく、主電源の停電検知により補助電源に切り換えてデータ処理を継続することが可能なデータ処理装置全般に適用できるものである。   The present invention is not limited to an office computer, and can be applied to all data processing apparatuses capable of continuing data processing by switching to an auxiliary power source upon detection of a power failure of the main power source.

この他、前記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態に亘る構成要素を組合わせてもよい。   In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, the constituent elements over different embodiments may be combined.

本発明の一実施の形態である事務用コンピュータの要部構成を示すブロック図。The block diagram which shows the principal part structure of the office computer which is one embodiment of this invention. 同実施の形態において、事務用コンピュータのRAMに形成される主要なメモリエリアを示す模式図。The schematic diagram which shows the main memory areas formed in RAM of an office computer in the embodiment. 同実施の形態において、事務用コンピュータのCPUが実行するシャットダウン設定業務処理の要部手順を示す流れ図。The flowchart which shows the principal part procedure of the shutdown setting work process which CPU of an office computer performs in the embodiment. 同実施の形態において、事務用コンピュータのCPUが実行する停電監視処理の要部手順を示す流れ図。The flowchart which shows the principal part procedure of the power failure monitoring process which CPU of an office computer performs in the embodiment. 同実施の形態において、事務用コンピュータのCPUが実行する停電通知処理の要部手順を示す流れ図。The flowchart which shows the principal part procedure of the power failure notification process which CPU of an office computer performs in the embodiment. 同実施の形態において、事務用コンピュータのCPUが実行するタイマ監視処理の要部手順を示す流れ図。The flowchart which shows the principal part procedure of the timer monitoring process which CPU of an office computer performs in the embodiment. 同実施の形態において、事務用コンピュータのディスプレイに表示される第1の停電通知画面の一表示例を示す模式図。The schematic diagram which shows one display example of the 1st power failure notification screen displayed on the display of an office computer in the embodiment. 同実施の形態において、事務用コンピュータのディスプレイに表示される第2の停電通知画面の一表示例を示す模式図。The schematic diagram which shows one display example of the 2nd power failure notification screen displayed on the display of an office computer in the embodiment. 同実施の形態において、事務用コンピュータのディスプレイに表示される第3の停電通知画面の一表示例を示す模式図。The schematic diagram which shows one display example of the 3rd power failure notification screen displayed on the display of an office computer in the embodiment. 同実施の形態において、事務用コンピュータのディスプレイに表示される第4の停電通知画面の一表示例を示す模式図。The schematic diagram which shows one display example of the 4th power failure notification screen displayed on the display of an office computer in the embodiment. 同実施の形態において、事務用コンピュータのディスプレイに表示される第5の停電通知画面の一表示例を示す模式図。The schematic diagram which shows one display example of the 5th power failure notification screen displayed on the display of an office computer in the embodiment.

符号の説明Explanation of symbols

1…HDD装置、2…本体部、3…電源部、4…キーボード、5…ディスプレイ、6…プリンタ、20…CPU、30…電源回路、31…停電検出回路、32…バッテリ、200…タイマ発振器。   DESCRIPTION OF SYMBOLS 1 ... HDD apparatus, 2 ... Main-body part, 3 ... Power supply part, 4 ... Keyboard, 5 ... Display, 6 ... Printer, 20 ... CPU, 30 ... Power supply circuit, 31 ... Power failure detection circuit, 32 ... Battery, 200 ... Timer oscillator .

Claims (2)

主電源の停電検知により補助電源に切り換えてデータ処理を継続することが可能なデータ処理装置において、
前記主電源の停電検知からの経過時間を計測する計時手段と、
前記計時手段による計測時間が所定時間に達するとシャットダウン処理を行う自動シャットダウン手段と、
前記シャットダウン処理が開始されるまでの残り時間を表示する表示手段と、
を具備したことを特徴とするデータ処理装置。
In a data processing device that can continue to process data by switching to an auxiliary power source when a main power failure is detected,
A time measuring means for measuring an elapsed time from detection of a power failure of the main power source,
Automatic shutdown means for performing a shutdown process when the time measured by the time measuring means reaches a predetermined time;
Display means for displaying a remaining time until the shutdown process is started;
A data processing apparatus comprising:
前記自動シャットダウン手段によるシャットダウン処理の機能を無効化する無効化手段をさらに具備し、
前記表示手段は、前記自動シャットダウン手段によるシャットダウン処理の機能が無効化されている場合は、前記主電源の停電検知からの経過時間を表示することを特徴とする請求項1記載のデータ処理装置。
Further comprising invalidating means for invalidating the function of shutdown processing by the automatic shutdown means,
2. The data processing apparatus according to claim 1, wherein the display means displays an elapsed time since a power failure detection of the main power supply when the function of the shutdown process by the automatic shutdown means is invalidated.
JP2007139540A 2007-05-25 2007-05-25 Data processing device Expired - Fee Related JP4723534B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007139540A JP4723534B2 (en) 2007-05-25 2007-05-25 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007139540A JP4723534B2 (en) 2007-05-25 2007-05-25 Data processing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2011085389A Division JP5112531B2 (en) 2011-04-07 2011-04-07 Data processing apparatus, power failure processing method thereof, and power failure processing program

Publications (2)

Publication Number Publication Date
JP2008293366A true JP2008293366A (en) 2008-12-04
JP4723534B2 JP4723534B2 (en) 2011-07-13

Family

ID=40168011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007139540A Expired - Fee Related JP4723534B2 (en) 2007-05-25 2007-05-25 Data processing device

Country Status (1)

Country Link
JP (1) JP4723534B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013114400A (en) * 2011-11-28 2013-06-10 Toshiba Tec Corp Data processor and program
CN110989496A (en) * 2019-11-27 2020-04-10 苏州领裕电子科技有限公司 PMC program-based automatic shutdown method for numerical control machine tool

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04112679A (en) * 1990-08-30 1992-04-14 Toshiba Corp Ac adapter
JPH0573183A (en) * 1991-07-15 1993-03-26 Mitsubishi Electric Corp Power supply and cad/cam for computer
JP2001331240A (en) * 2000-05-18 2001-11-30 Mitsubishi Electric Corp On-vehicle terminal power source device
JP2004304260A (en) * 2003-03-28 2004-10-28 Casio Comput Co Ltd Electronic apparatus, power supply control method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04112679A (en) * 1990-08-30 1992-04-14 Toshiba Corp Ac adapter
JPH0573183A (en) * 1991-07-15 1993-03-26 Mitsubishi Electric Corp Power supply and cad/cam for computer
JP2001331240A (en) * 2000-05-18 2001-11-30 Mitsubishi Electric Corp On-vehicle terminal power source device
JP2004304260A (en) * 2003-03-28 2004-10-28 Casio Comput Co Ltd Electronic apparatus, power supply control method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013114400A (en) * 2011-11-28 2013-06-10 Toshiba Tec Corp Data processor and program
CN110989496A (en) * 2019-11-27 2020-04-10 苏州领裕电子科技有限公司 PMC program-based automatic shutdown method for numerical control machine tool

Also Published As

Publication number Publication date
JP4723534B2 (en) 2011-07-13

Similar Documents

Publication Publication Date Title
JP5431111B2 (en) Information processing apparatus and system setting method
CN108304282B (en) Control method of double BIOS and related device
US20080098246A1 (en) Computer system and control method thereof
CN101615162B (en) Memory management unit, image forming apparatus, memory management method, and computer program
JP4836732B2 (en) Information processing device
JP4723534B2 (en) Data processing device
JP4887065B2 (en) Product sales data processing apparatus and reboot control program
US20060288198A1 (en) Data storage system and related method
JP5112531B2 (en) Data processing apparatus, power failure processing method thereof, and power failure processing program
JP4825727B2 (en) Data processing apparatus and power failure countermeasure method thereof
JP2009009323A (en) Setting device, electronic equipment, and setting program
JP4744983B2 (en) Information processing device
JP2761990B2 (en) Data protection device for electronic equipment
JP2008107989A (en) Failure monitoring method and device for computer system, and failure monitoring program
JPH11232183A (en) Printer control information managing device and recording medium for recording control information management program
JP4577433B2 (en) printer
JP2010004293A (en) Image forming apparatus, and method for detecting write error of image forming apparatus
JP4336159B2 (en) Printing device
JPH11149332A (en) Portable information equipment and data management method
JPH11327911A (en) Image forming device
JP2010097560A (en) Data processor and program for handling interruption
JP5444698B2 (en) Data processing apparatus and program
JP3087650B2 (en) Automatic power recovery method
JP2010026789A (en) Sales data processor and program
JP4909935B2 (en) Merchandise sales data processing apparatus and control method thereof

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100825

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100831

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101028

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110308

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110407

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140415

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees