JPH0740218B2 - Power interruption detection method - Google Patents

Power interruption detection method

Info

Publication number
JPH0740218B2
JPH0740218B2 JP61308405A JP30840586A JPH0740218B2 JP H0740218 B2 JPH0740218 B2 JP H0740218B2 JP 61308405 A JP61308405 A JP 61308405A JP 30840586 A JP30840586 A JP 30840586A JP H0740218 B2 JPH0740218 B2 JP H0740218B2
Authority
JP
Japan
Prior art keywords
power
setting area
terminal device
turned
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61308405A
Other languages
Japanese (ja)
Other versions
JPS63163614A (en
Inventor
康 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP61308405A priority Critical patent/JPH0740218B2/en
Publication of JPS63163614A publication Critical patent/JPS63163614A/en
Publication of JPH0740218B2 publication Critical patent/JPH0740218B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電源瞬断検出方式に関し、特にプログラムによ
り自身の電源オフあるいは電源オンが可能な端末装置に
おける、安価な電源瞬断検出方式に関するものである。
The present invention relates to a power interruption detection method, and more particularly to an inexpensive power interruption detection method for a terminal device capable of powering itself off or on by a program. Is.

〔従来の技術〕[Conventional technology]

従来、電源瞬断の検出は、例えば、特開昭60−181808号
公報に開示されている如く、特別のハードウェアを用い
るものであった。
Conventionally, the detection of a momentary power failure uses a special hardware as disclosed in, for example, JP-A-60-181808.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかしながら、上記従来技術は、電源瞬断の検出に特別
のハードウェアを必要とする点で、端末装置を安価に提
供しようとする場合、大きな障害となるものであった。
特に、端末装置がプログラムにより自身の電源オフある
いは電源オンが可能なものである場合には、その特性を
充分生かし切っていないという問題を有するものであっ
た。
However, the above-mentioned conventional technique is a major obstacle in providing a terminal device at low cost because special hardware is required for detecting a power interruption.
In particular, when the terminal device is capable of powering off or powering on itself by a program, there is a problem that the characteristics are not fully utilized.

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の電源の瞬断検出における上述の如
き問題を解消し、ハードウェアを使用せずに、安価な、
ソフトウェア的手段で端末装置の電源瞬断の検出を可能
とする電源瞬断検出方式を提供することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to solve the problems as described above in the conventional power interruption detection, without using hardware, and at low cost.
An object of the present invention is to provide a power interruption detection method capable of detecting a power interruption of a terminal device by means of software.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の上述の目的は、プログラムにより、自身の電源
オフあるいは電源オンが可能な端末装置において、電源
がオフされても記憶が維持される記憶装置内に電源状態
設定エリアを設け、端末装置が自身の電源をオフする
際、前記電源状態設定エリアに特定の情報を書込み、電
源オン後に前記電源状態設定エリアの情報を読出し、該
情報を電源オフ時に設定した特定の値と比較し、これら
が異なる場合には電源瞬断の発生を検出することを特徴
とする電源瞬断検出方式によって達成される。
The above-described object of the present invention is to provide a power supply state setting area in a storage device that retains memory even when power is turned off in a terminal device that can be powered off or on by a program, When turning off its own power, write specific information in the power status setting area, read information in the power status setting area after power on, compare the information with a specific value set when power is turned off, and If they are different, it is achieved by a power interruption detection method characterized by detecting the occurrence of a power interruption.

〔作用〕[Action]

本発明においては、プログラムにより自身の電源オフあ
るいは電源オンが可能な端末装置が、自身の電源をオフ
する際、外部記憶装置に設けた電源状態設定エリアに電
源オフを示す値を設定後、電源をオフするようにしてい
る。
According to the present invention, when a terminal device capable of powering off or powering on itself by a program turns off its power, after setting a value indicating power off in the power status setting area provided in the external storage device, I'm trying to turn off.

これにより、次に、電源がオンされた場合、端末装置
は、プログラム動作により上記電源状態設定エリアの値
を読出し、電源オフを示す値になっているか否かをチェ
ックする。比較結果がYESであれば電源の瞬断無しを認
識し、上記電源状態設定エリアの値を電源オンを示す値
に更新する。また、比較結果がNOであれば電源オフが所
定の手引き以外で行われたと判断されるので、電源の瞬
断があったものと認識し、瞬断検出を行うことができる
というものである。
Thus, next, when the power is turned on, the terminal device reads the value of the power supply state setting area by the program operation and checks whether or not the value indicates the power off. If the comparison result is YES, it is recognized that there is no power interruption, and the value in the power status setting area is updated to a value indicating that the power is on. Further, if the comparison result is NO, it is determined that the power supply was turned off by a method other than a predetermined guide, so that it is possible to recognize that there is a power supply interruption and to detect the interruption.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例である端末装置の構成図であ
る。図において、1は処理装置、2は外部記憶装置、3
は該外部記憶装置2中の電源状態設定エリア、4は端末
装置の電源を示している。
FIG. 2 is a block diagram of a terminal device which is an embodiment of the present invention. In the figure, 1 is a processing device, 2 is an external storage device, 3
Indicates a power supply state setting area in the external storage device 4, and 4 indicates the power supply of the terminal device.

第3図は上記電源状態設定エリア3内に設定される値を
示すものであり、電源オフ値と電源オン値が設定され
る。
FIG. 3 shows the values set in the power supply state setting area 3, and the power supply off value and the power supply on value are set.

以下、本実施例の動作を説明する。The operation of this embodiment will be described below.

第2図に示す如く、処理装置1には外部記憶装置2が接
続されており、この外部記憶装置2には電源状態設定エ
リア3が設けられている。この電源状態設定エリア3内
は、第3図に示す如く、電源オフ値と電源オン値のいず
れかの値が、処理装置1により以下に示す処理によって
設定される。
As shown in FIG. 2, an external storage device 2 is connected to the processing device 1, and the external storage device 2 is provided with a power supply state setting area 3. In the power supply state setting area 3, as shown in FIG. 3, either the power-off value or the power-on value is set by the processing device 1 by the following processing.

第1図(a)は端末装置での電源オフ時の処理フローチ
ャート、同(b)は端末装置での電源オン後の処理フロ
ーチャートである。
FIG. 1 (a) is a processing flowchart when the terminal device is powered off, and FIG. 1 (b) is a processing flowchart after the terminal device is powered on.

まず、第1図(a)で、処理装置1は、電源オフ要因を
検出すると、外部記憶装置2内の電源状態設定エリア3
内に電源オフ値を設定(ステップ11)した後、電源4に
対して電源オフ指令を発行する(ステップ12)。
First, in FIG. 1A, when the processing device 1 detects a power-off factor, the power-supply state setting area 3 in the external storage device 2 is detected.
After setting the power-off value therein (step 11), a power-off command is issued to the power source 4 (step 12).

次に、端末装置の電源4がオンされると、第1図(b)
で示される処理フローのプログラムが動作し、処理装置
1は、外部記憶装置2内の電源状態設定エリア3の値を
読込み(ステップ21)、電源オフ値と等しいか否かのチ
ェック(ステップ22)を行い、等しくなければ上記第1
図(a)に示した以外の要因による電源断、すなわち、
瞬断が発生したことを認識する(ステップ23)。また、
ステップ21によるチェックの結果が等しいときは、前記
外部記憶装置2内の電源状態設定エリア3の値を電源オ
ン値に更新する(ステップ24)。
Next, when the power supply 4 of the terminal device is turned on, FIG.
The program of the processing flow indicated by is operated, and the processing device 1 reads the value of the power supply state setting area 3 in the external storage device 2 (step 21) and checks whether it is equal to the power off value (step 22). And if not equal to the first
Power shutdown due to factors other than those shown in FIG.
Recognize that a momentary interruption has occurred (step 23). Also,
If the results of the check in step 21 are the same, the value of the power supply state setting area 3 in the external storage device 2 is updated to the power-on value (step 24).

上記実施例によれば、電源の瞬断検出用のハードウェア
が不要であり、安価な端末装置用瞬断検出方式を実現で
きる。
According to the above-described embodiment, the hardware for detecting the instantaneous interruption of the power supply is unnecessary, and the inexpensive instantaneous interruption detection method for the terminal device can be realized.

上記実施例においては、電源状態設定エリア3を外部記
憶装置2内に置くようにした例を示したが、上記電源状
態設定エリア3は、電源をオフしても維持される記憶装
置であれば、他の場所に記憶するようにしても良いこと
は言うまでもない。
In the above embodiment, the example in which the power supply state setting area 3 is placed in the external storage device 2 is shown, but the power supply state setting area 3 is a storage device that is maintained even when the power is turned off. Needless to say, it may be stored in another place.

〔発明の効果〕〔The invention's effect〕

以上述べた如く、本発明によれば、プログラムにより、
自身の電源オフあるいは電源オンが可能な端末装置にお
いて、電源がオフされても記憶が維持される記憶装置内
に電源状態設定エリアを設け、端末装置が自身の電源を
オフする際、前記電源状態設定エリアに特定の情報を書
込み、電源オン後に前記電源状態設定エリアの情報を読
出し、該情報を電源オフ時に設定した特定の値と比較し
て、これらが異なる場合には電源瞬断の発明を検出する
ようにしたので、ハードウェアを使用せずに、安価な、
ソウトウェア的手段で端末装置の電源瞬断の検出を可能
とする電源瞬断検出方式を実現できるという顕著な効果
を奏するものである。
As described above, according to the present invention,
In a terminal device capable of powering off or powering on itself, a power status setting area is provided in the storage device in which memory is maintained even when power is turned off, and when the terminal device powers off itself, the power status When the specific information is written in the setting area, the information in the power status setting area is read after the power is turned on, and the information is compared with the specific value set when the power is turned off. Since it is detected, it is cheap without using hardware,
This has the remarkable effect of realizing a power interruption detection method capable of detecting a power interruption of the terminal device by means of software.

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

第1図は本発明の一実施例である端末装置の処理装置の
動作を示すフローチャート、第2図は実施例の端末装置
の構成図、第3図は電源状態設定エリア3に設定される
値を示す図である。 1:処理装置、2:外部記憶装置、3:電源状態設定エリア、
4:端末装置の電源、11〜12,21〜24:処理ステップ。
FIG. 1 is a flow chart showing the operation of a processing device of a terminal device which is an embodiment of the present invention, FIG. 2 is a configuration diagram of the terminal device of the embodiment, and FIG. 3 is a value set in a power supply state setting area 3. FIG. 1: Processor, 2: External storage device, 3: Power status setting area,
4: Terminal power supply, 11-12, 21-24: Processing steps.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プログラムにより、自身の電源オフあるい
は電源オンが可能な端末装置において、電源がオフされ
ても記憶が維持される記憶装置内に電源状態設定エリア
を設け、端末装置が自身の電源をオフする際、前記電源
状態設定エリアに特定の情報を書込み、電源オン後に前
記電源状態設定エリアの情報を読出し、該情報を電源オ
フ時に設定した特定の値と比較し、これらが異なる場合
には電源瞬断の発生を検出することを特徴とする電源瞬
断検出方式。
1. A terminal device capable of powering off or powering on itself by a program, wherein a power supply state setting area is provided in a storage device in which memory is maintained even when power is turned off, and the terminal device powers itself. When the power is turned off, the specific information is written in the power status setting area, the information in the power status setting area is read after the power is turned on, and the information is compared with the specific value set when the power is turned off. Is a power interruption detection method characterized by detecting the occurrence of a power interruption.
JP61308405A 1986-12-26 1986-12-26 Power interruption detection method Expired - Lifetime JPH0740218B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61308405A JPH0740218B2 (en) 1986-12-26 1986-12-26 Power interruption detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61308405A JPH0740218B2 (en) 1986-12-26 1986-12-26 Power interruption detection method

Publications (2)

Publication Number Publication Date
JPS63163614A JPS63163614A (en) 1988-07-07
JPH0740218B2 true JPH0740218B2 (en) 1995-05-01

Family

ID=17980665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61308405A Expired - Lifetime JPH0740218B2 (en) 1986-12-26 1986-12-26 Power interruption detection method

Country Status (1)

Country Link
JP (1) JPH0740218B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53135682A (en) * 1977-04-30 1978-11-27 Fujitsu Ltd Operation state display system
JPS5441366A (en) * 1977-09-06 1979-04-02 Yoshimi Takenaka Coffee powder blended with herb and like
JPS61153718A (en) * 1984-12-26 1986-07-12 Nec Corp Automatic operation control device

Also Published As

Publication number Publication date
JPS63163614A (en) 1988-07-07

Similar Documents

Publication Publication Date Title
US5530877A (en) Apparatus for providing continuity of operation in a computer
JPS6382534A (en) Memory protection device
JPH0740218B2 (en) Power interruption detection method
JPS5855591B2 (en) Power supply for bubble memory unit
JPS59158425A (en) Control system of input and output device
JP2517540Y2 (en) IC card
JPH0728572A (en) Automatic data preserving device at power interruption
JP2778299B2 (en) Programmable controller
JPS6271685A (en) Printer
JPH06103480B2 (en) Blackout processor
JPS59227094A (en) Electronic computer
JPH0368008A (en) Battery built-in type computer equipment
JPH04118705A (en) Programmable controller
JPS644212B2 (en)
JPS60209863A (en) Control system of data processing device
JPH0789308B2 (en) Computer automatic restart method
JPH05233474A (en) Storage contents protection system
JPH1078812A (en) Method for transferring data and device for controlling data transfer
JPH02278446A (en) Memory access control circuit
JPS6278617A (en) Power saving mpu system
JPH10171936A (en) Pc card
JPS61285559A (en) Battery back-up device
JPS6175414A (en) Resetting device for operation state of electronic equipment
JPH0533227U (en) Blackout processor
JPH11222365A (en) Elevator control device