JPH07225721A - Power failure processor for data processing system - Google Patents

Power failure processor for data processing system

Info

Publication number
JPH07225721A
JPH07225721A JP1854594A JP1854594A JPH07225721A JP H07225721 A JPH07225721 A JP H07225721A JP 1854594 A JP1854594 A JP 1854594A JP 1854594 A JP1854594 A JP 1854594A JP H07225721 A JPH07225721 A JP H07225721A
Authority
JP
Japan
Prior art keywords
power failure
power supply
power
data
uninterruptible
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
JP1854594A
Other languages
Japanese (ja)
Inventor
Minoru Tohara
稔 戸原
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.)
TEC CORP
Original Assignee
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 TEC CORP filed Critical TEC CORP
Priority to JP1854594A priority Critical patent/JPH07225721A/en
Publication of JPH07225721A publication Critical patent/JPH07225721A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the circuit configuration and to reduce the manufacture cost by excluding a power failure detection circuit at each terminal equipment without complicating the wiring or increasing the cost. CONSTITUTION:In a system, which is composed of plural terminal equipments 1a and 1b provided with power failure processing functions and a host device 3 connecting these terminal equipments through a communication line 2, and which supplies power from an uninterruptible power supply unit 4, when a power failure signal S1 to be transmitted from the uninterruptible power supply unit 4 at the time of power failure detection is inputted, the host device 3 transmits a power failure reporting command to the respective terminal equipments 1a and 1b by using the communication line 2. When the power failure reporting command transmitted through the communication line 2 is received, the respective terminal equipments 1a and 1b execute power failure processing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、流通業におけるPOS
(販売時点情報管理)システム等のデータ処理システム
における停電処理装置に関する。
The present invention relates to a POS in the distribution industry.
The present invention relates to a power failure processing device in a data processing system such as a (point-of-sale information management) system.

【0002】[0002]

【従来の技術】例えばスーパーマーケット等で利用され
ているPOSシステムは、商品販売データの登録機能を
有する複数台の端末装置、いわゆるPOSターミナル
と、これらのPOSターミナルをLAN(ローカルエリ
ア・ネットワーク)等の通信回線で接続し、各POSタ
ーミナルにて登録された商品販売データ等を前記通信回
線を用いて収集して、商品の売上累計データや在庫デー
タ等に加工するホスト装置、いわゆるストアコントロー
ラとから構成される。
2. Description of the Related Art For example, a POS system used in a supermarket or the like has a plurality of terminal devices, so-called POS terminals having a function of registering product sales data, and these POS terminals such as LAN (local area network). Consists of a so-called store controller, which is a host device that is connected by a communication line, collects product sales data and the like registered at each POS terminal using the communication line, and processes the product sales cumulative data and inventory data To be done.

【0003】このようなPOSシステムは、運用上、停
電発生によりシステムの動作が停止しても、停電回復時
には停電発生前の状態から動作を継続できることが要求
される。
In such a POS system, it is required in operation that the system can continue its operation from the state before the occurrence of the power failure even when the system operation stops due to the power failure.

【0004】そこで従来のPOSターミナルは、一般的
に、停電が発生すると、電源電圧がプロセッサのリセッ
ト電圧まで低下するより前に、プロセッサ内のプログラ
ムカウンタ,メモリアドレスレジスタ,命令レジスタ,
メモリデータレジスタ等の制御データを、電源断時にも
データ保持可能な記憶部、例えばLi(リチウム)バッ
テリによって電源バックアップされたS−RAM(スタ
チック形ランダム・アクセス・メモリ)にセーブし、そ
の後停電が回復すると、セーブしておいた各制御データ
をプロセッサ内の各部にロードして、停電発生前の状態
から動作を継続できるようにした停電処理機能を有して
いた。
Therefore, in the conventional POS terminal, in general, when a power failure occurs, the program counter, memory address register, instruction register,
Control data such as a memory data register is saved in a storage unit capable of holding data even when the power is turned off, for example, S-RAM (static random access memory) backed up by a Li (lithium) battery, and then a power failure occurs. When recovered, each saved control data was loaded into each part in the processor, and the power failure processing function was provided so that the operation could be continued from the state before the power failure occurred.

【0005】図10は停電発生時における電源電圧のレ
ベル低下特性を示しており、特性曲線Qが示すように、
時点t1にて停電が発生すると、それまで定常電圧V1
を維持していた電源電圧は徐々に下降し、時点t3にて
リセット電圧V3に到達する。
FIG. 10 shows the characteristic of the level reduction of the power supply voltage when a power failure occurs, and as the characteristic curve Q shows,
When a power failure occurs at time t1, the steady voltage V1 is maintained until then.
The power supply voltage that has been maintained gradually decreases and reaches the reset voltage V3 at time t3.

【0006】そこで従来のPOSターミナルは、電源電
圧を常時監視し、定常電圧V1とリセット電圧V3との
間に設定された停電検知電圧V2まで低下したことを検
出すると停電信号を、逆に前記停電検知電圧V2まで上
昇したことを検出すると停電解除信号を、それぞれプロ
セッサに供給する電気回路、いわゆる停電検出回路を備
えるとともに、前記停電信号及び停電解除信号に応動し
てデータセーブ処理及びデータロード処理をプロセッサ
に行わせる停電処理プログラムを搭載して、前記停電処
理機能を確立していた。
Therefore, the conventional POS terminal constantly monitors the power supply voltage, and when it detects that the power supply voltage has dropped to the power failure detection voltage V2 set between the steady voltage V1 and the reset voltage V3, the power failure signal, and conversely the power failure, is detected. When detecting that the detection voltage V2 has risen, an electric circuit for supplying a power failure cancellation signal to each processor, a so-called power failure detection circuit, is provided, and data save processing and data load processing are performed in response to the power failure signal and the power failure cancellation signal. A power failure processing program to be executed by the processor is installed to establish the power failure processing function.

【0007】図11は前記停電処理プログラムの要部を
示す流れ図である。すなわち、プロセッサは、同図
(a)に示すように通常業務の実行中に停電信号が割込
入力されると、データセーブ処理を行うとともに、デー
タセーブ処理が行われたことを記憶する停電フラグを、
前記電源断時にもデータ保持可能な記憶部にセットす
る。
FIG. 11 is a flow chart showing the main part of the power failure processing program. That is, the processor performs a data save process when a power failure signal is interrupted and input during execution of a normal operation as shown in FIG. 9A, and a power failure flag that stores the fact that the data save process is performed. To
It is set in a storage unit capable of holding data even when the power is turned off.

【0008】なお、このデータセーブ処理及びフラグセ
ット処理に要する時間は、電源電圧が停電電圧V2から
リセット電圧V3まで低下するのに要する時間[t3−
t2]に比べて充分に短い。換言すれば、停電電圧V2
は前記データセーブ処理及びフラグセット処理に要する
時間を充分に確保できるレベルに設定されている。
The time required for the data saving process and the flag setting process is the time required for the power supply voltage to decrease from the power failure voltage V2 to the reset voltage V3 [t3-
t2] is sufficiently short. In other words, power failure voltage V2
Is set to a level at which the time required for the data save processing and the flag setting processing can be sufficiently secured.

【0009】前記データセーブ処理及びフラグセット処
理を終えると、プロセッサは、停電解除信号が入力され
るのを待機する。そして、停電解除信号が入力されたな
らば、電源電圧が停電電圧V2まで低下した後リセット
電圧V3に達する前に回復したので、プロセッサは前記
停電フラグをリセットするとともに、データロード処理
を行う。その後、停電前の状態から通常業務を再開す
る。
When the data saving process and the flag setting process are completed, the processor waits for the power failure cancellation signal to be input. When the power failure cancellation signal is input, the power supply voltage is restored to the power failure voltage V2 and then to the reset voltage V3, and the power supply voltage is recovered. Therefore, the processor resets the power failure flag and performs the data load process. After that, normal work is resumed from the state before the power failure.

【0010】一方、停電解除信号が入力されることなく
電源電圧がリセット電圧V3以下に低下した場合には、
プロセッサは動作を停止する。
On the other hand, when the power supply voltage drops below the reset voltage V3 without inputting the power failure release signal,
The processor stops working.

【0011】その後、電源電圧が上昇してリセット電圧
V3を越えると、プロセッサは立ち上がり、同図(b)
に示すように先ず前記停電フラグがセットされているか
否かを判断する。そして、セットされている場合には、
停電前にデータセーブ処理が行われていたので、停電フ
ラグをリセットするとともに、データロード処理を行
う。なお、停電フラグがリセットされている場合には上
記処理は行わない。
After that, when the power supply voltage rises and exceeds the reset voltage V3, the processor starts up, and FIG.
First, it is determined whether or not the power failure flag is set as shown in FIG. And if it is set,
Since the data save process was performed before the power failure, the power failure flag is reset and the data load process is performed. The above process is not performed when the power failure flag is reset.

【0012】その後、プロセッサは、プログラムカウン
タのリセット、メモリアドレスレジスタ,命令レジスタ
及びメモリデータレジスタのクリア等の初期化処理を行
った後、通常業務を開始する。
After that, the processor carries out initialization processing such as resetting of the program counter and clearing of the memory address register, instruction register and memory data register, and then starts normal operations.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、このよ
うな停電処理機能を有する従来の端末装置においては、
ハードウェアによる停電検出回路を搭載しなければなら
なかったので、回路構成が煩雑化し、コストアップにつ
ながる問題があった。
However, in the conventional terminal device having such a power failure processing function,
Since the power failure detection circuit by hardware had to be installed, there was a problem that the circuit configuration became complicated and the cost increased.

【0014】ところで、POSシステム等のデータ処理
システムにおいては、ホスト装置及び各端末装置の電源
として、無停電電源装置(UPS:uninterruptible po
wersupply)を使用することがある。
By the way, in a data processing system such as a POS system, an uninterruptible power supply (UPS) is used as a power supply for a host device and each terminal device.
wersupply) may be used.

【0015】この無停電電源装置は、通常は商用交流電
源によって負荷に電力を供給するとともに内蔵されたバ
ッテリを充電し、商用交流電源の停電時には前記バッテ
リによって負荷に電力を供給するもので、商用交流電源
が停電している間、停電信号を連続して送出する機能を
備えている。
This uninterruptible power supply device normally supplies electric power to the load by a commercial AC power source and charges a built-in battery, and supplies electric power to the load by the battery when the commercial AC power source fails to operate. It is equipped with a function to continuously output a power failure signal while the AC power supply is out of power.

【0016】そこで、この無停電電源装置から送出され
る停電信号が各端末装置に入力されるようにシステムを
構築する。一方、各端末装置のプロセッサは、停電信号
が入力されるとデータセーブ処理を行い、その後、停電
信号が途絶えるとデータロード処理を行うように停電処
理プログラムを構築する。こうすることにより、各端末
装置の停電検出回路を不要にできる。
Therefore, the system is constructed so that the power failure signal sent from the uninterruptible power supply is input to each terminal device. On the other hand, the processor of each terminal device constructs a power failure processing program so as to perform data save processing when a power failure signal is input and thereafter perform data load processing when the power failure signal is interrupted. By doing so, the power failure detection circuit of each terminal device can be eliminated.

【0017】しかし、この場合にはホスト装置と各端末
装置とを接続する通信回線以外に、無停電電源装置とホ
スト装置及び各端末装置とを接続する電源ケーブルと、
無停電電源装置と各端末装置とを接続する停電信号ケー
ブルが必要で、配線が複雑化し、またコストアップは避
けられず、非実用的であった。
However, in this case, in addition to the communication line connecting the host device and each terminal device, a power cable connecting the uninterruptible power supply device to the host device and each terminal device,
A power failure signal cable for connecting the uninterruptible power supply device and each terminal device is required, wiring is complicated, and cost increase is unavoidable, which is impractical.

【0018】また、商用交流電源の停電によって前記無
停電電源装置から停電信号が送出されても、実際に端末
装置に供給される電源電圧が低下するのは、前記無停電
電源装置のバッテリ容量が不足してバックアップ不能と
なったときである。
Further, even if a power failure signal is sent from the uninterruptible power supply due to a power failure of the commercial AC power supply, the power supply voltage actually supplied to the terminal device is lowered because the battery capacity of the uninterruptible power supply is low. This is when the backup is not possible due to a shortage.

【0019】例えばバッテリ容量が100%のときシス
テムの消費電力から見て2時間程度のバックアップが可
能な無停電電源装置を使用した場合、システムは商用交
流電源の停電発生から2時間近くは通常に稼働可能であ
る。
For example, when using an uninterruptible power supply capable of backing up for about 2 hours in view of the power consumption of the system when the battery capacity is 100%, the system normally operates for about 2 hours after the occurrence of a power failure of the commercial AC power supply. It is operational.

【0020】それにも拘らず、前記の如く無停電電源装
置からの停電信号入力に応動して停電処理が開始される
ように構成した場合には、無停電電源装置の能力を有効
に活用できなくなる問題もあった。
Nevertheless, if the power failure processing is started in response to the power failure signal input from the uninterruptible power supply as described above, the ability of the uninterruptible power supply cannot be effectively utilized. There was also a problem.

【0021】そこで、無停電電源装置のバックアップ可
能時間を考慮して、無停電電源装置の停電信号が入力さ
れてから所定時間を経過した後に停電処理を開始するよ
うにして、システムの稼働効率を高めることが考えられ
る。
Therefore, in consideration of the backup available time of the uninterruptible power supply, the power outage process is started after a predetermined time has elapsed from the input of the uninterruptible power supply signal of the uninterruptible power supply to improve the operating efficiency of the system. It is possible to raise it.

【0022】しかるに、無停電電源装置のバックアップ
可能時間は、バッテリの使用期間によって変化する。す
なわち、バッテリは使用期間が長くなればなるほど劣化
して容量が低下するので、バックアップ可能時間も短縮
される。
However, the backup available time of the uninterruptible power supply varies depending on the period of use of the battery. That is, since the battery deteriorates and its capacity decreases as the usage period becomes longer, the backup available time is also shortened.

【0023】図9は新品時におけるバッテリ容量100
%のときバックアップ可能時間が約2時間の無停電電源
装置の、使用期間(年)に対するバッテリ容量及びバッ
クアップ可能時間の特性図である。同図の特性曲線Pか
らわかるように、新品時からほぼ1年間は2時間近くの
電源バックアップが可能だが、バッテリ容量はその後低
下し、約3年も使用すると50%程度まで低下してバッ
クアップ可能時間は約1時間となり、バッテリの寿命と
判断される。
FIG. 9 shows a battery capacity of 100 when new.
It is a characteristic view of the battery capacity and the backup possible time with respect to the period of use (year) of the uninterruptible power supply whose backup possible time is about 2 hours when%. As can be seen from the characteristic curve P in the figure, the power supply can be backed up for about 2 hours for almost one year from the time of new product, but the battery capacity will decrease after that, and if it is used for about three years, it will decrease to about 50% and backup is possible. It takes about 1 hour, and it is judged that the battery has reached the end of its life.

【0024】従って、無停電電源装置から停電信号が入
力されてから停電処理を開始するまでの経過時間は、無
停電電源装置のバッテリ寿命時におけるバックアップ可
能時間以内に設定する必要があった。このため、バッテ
リ寿命時を除く大部分の期間は、まだバックアップ可能
であるにも拘らず停電処理が開始されてしまい、依然と
して無停電電源装置の能力を有効に活用できなかった。
Therefore, it is necessary to set the elapsed time from the input of the power failure signal from the uninterruptible power supply to the start of the power failure processing within the backup possible time during the battery life of the uninterruptible power supply. Therefore, during most of the period except the battery life, the power failure process is started even though the backup is still possible, and the capability of the uninterruptible power supply cannot be utilized effectively.

【0025】ところで、前記無停電電源装置のバックア
ップ可能時間は、システムの消費電力が小さくなると延
びる。そこで、商用交流電源に停電が発生したならば、
速やかに一部の端末装置の電源をオフして縮退運転に切
替えることにより、バックアップ可能時間を引き延ばす
ことができる。
By the way, the backup possible time of the uninterruptible power supply device extends as the power consumption of the system becomes smaller. Therefore, if a power failure occurs in the commercial AC power supply,
It is possible to extend the backup available time by quickly turning off the power of some of the terminal devices and switching to the degenerate operation.

【0026】しかし縮退運転を行うためには、システム
管理者が停電発生時に速やかに一部端末装置の電源スイ
ッチを切らなければならず、手間がかかって効率が悪い
問題があった。また、電源スイッチの切り忘れや切り間
違いも発生し易かった。
However, in order to carry out the degenerate operation, the system administrator must promptly turn off the power switch of some terminal devices when a power failure occurs, which is troublesome and inefficient. In addition, it was easy to forget to turn off the power switch or mistakenly.

【0027】そこで本発明の第1の目的は、配線の複雑
化及びそれに伴うコストアップを招くことなく各端末装
置の停電検出回路を排除することができ、端末装置の回
路構成簡略化及び製造コストの低減を図り得、ひいては
システム全体のコストを低減できるデータ処理システム
における停電処理装置を提供しようとするものである。
Therefore, the first object of the present invention is to eliminate the power failure detection circuit of each terminal device without complicating the wiring and increasing the cost associated therewith, simplifying the circuit configuration of the terminal device and manufacturing cost. It is an object of the present invention to provide a power outage processing device in a data processing system that can reduce the cost of the entire system, and thus reduce the cost of the entire system.

【0028】また本発明の第2の目的は、前記第1の目
的に加え、商用交流電源に停電が発生しても無停電電源
装置の能力を有効に活用して各端末装置での停電処理を
最大限まで遅らせることができ、システムの稼働効率向
上を図り得るデータ処理システムにおける停電処理装置
を提供しようとするものである。
In addition to the first object, a second object of the present invention is to effectively utilize the capability of the uninterruptible power supply unit even if a power failure occurs in the commercial AC power supply, and to perform a power outage process in each terminal unit. It is an object of the present invention to provide a power failure processing device in a data processing system that can delay the maximum power consumption and improve the operating efficiency of the system.

【0029】さらに本発明の第3の目的は、前記第1の
目的に加え、商用交流電源に停電が発生したときには自
動的にかつ速やかに縮退運転に切替えることができ、シ
ステム管理者の負担になることなく無停電電源装置によ
るバックアップ可能時間を引き延ばすことで、システム
の稼働効率を向上できるデータ処理システムにおける停
電処理装置を提供しようとするものである。
Further, in addition to the first object, a third object of the present invention is to automatically and promptly switch to the degenerate operation when a power failure occurs in the commercial AC power source, which is a burden on the system administrator. It is an object of the present invention to provide a power failure processing device in a data processing system that can improve the operating efficiency of the system by prolonging the backup available time by the uninterruptible power supply without fail.

【0030】[0030]

【課題を解決するための手段】本願請求項1対応の発明
は、前記第1の目的を達成するために、停電検知に応動
してプロセッサ内のレジスタ値等を電源断時にもデータ
保持可能な記憶部にセーブする停電処理機能をそれぞれ
有する複数台の端末装置と、これらの端末装置を通信回
線で接続し、各端末装置にて登録されたデータを通信回
線を用いて収集し加工するホスト装置とからなり、ホス
ト装置及び各端末装置に無停電電源装置から電力を供給
するデータ処理システムにおいて、ホスト装置は、無停
電電源装置から停電検知時に送出される停電信号を入力
する停電信号入力手段と、この入力手段により停電信号
を入力すると通信回線を用いて各端末装置に停電通知コ
マンドを送信する停電通知手段とを備え、各端末装置
は、通信回線を介して伝送される停電通知コマンドを受
信するコマンド受信手段と、この受信手段により停電通
知コマンドを受信すると停電処理を実行する停電処理手
段とを備えたものである。
In order to achieve the first object, the invention according to claim 1 of the present invention can hold data such as a register value in a processor in response to a power failure detection even when the power is turned off. A plurality of terminal devices each having a power failure processing function to save in a storage unit, and a host device that connects these terminal devices with a communication line and collects and processes the data registered in each terminal device using the communication line In the data processing system for supplying power from the uninterruptible power supply to the host device and each terminal device, the host device includes a power failure signal input means for inputting a power failure signal sent from the uninterruptible power supply when a power failure is detected. , And a power failure notification means for transmitting a power failure notification command to each terminal device using the communication line when a power failure signal is input by this input means, and each terminal device is connected via the communication line. A command receiving means for receiving a blackout notification command transmitted, in which a power failure processing means for executing a power failure processing and receives a power failure notification command by the receiving means.

【0031】また本願請求項2対応の発明は、前記第2
の目的を達成するために、ホスト装置に、無停電電源装
置の使用期間に対するバックアップ可能時間を予め設定
記憶する寿命管理テーブルと、無停電電源装置の使用期
間を検出する使用期間検出手段と、停電信号入力手段に
より停電信号を入力すると使用期間検出手段によって検
出される無停電電源装置の使用期間から寿命管理テーブ
ルを検索して無停電電源装置のバックアップ可能時間を
決定するバックアップ可能時間決定手段と、この決定手
段により決定されたバックアップ可能時間に応じて停電
通知手段による停電通知コマンドの送信開始を遅延させ
る停電通知時間調整手段とを設けたものである。
The invention according to claim 2 of the present application is the second invention.
In order to achieve the purpose of the above, the host device has a life management table that presets and stores the backup available time for the usage period of the uninterruptible power supply, a usage period detection means for detecting the usage period of the uninterruptible power supply, and a power failure. When a power failure signal is input by the signal input means, backup possible time determining means for determining the backup possible time of the uninterruptible power supply by searching the life management table from the usage period of the uninterruptible power supply detected by the usage period detecting means, A power failure notification time adjusting means for delaying the start of transmission of the power failure notification command by the power failure notification means according to the backup available time determined by the determining means is provided.

【0032】さらに本願請求項3対応の発明は、前記第
3の目的を達成するために、ホスト装置に、停電信号入
力手段により停電信号を入力すると各端末装置のうちの
予め選択された一部の端末装置を電源断状態にする縮退
運転コマンドを通信回線を介して送信する縮退運転実行
手段と、縮退運転時における無停電電源装置のバックア
ップ可能時間に応じて停電通知手段による停電通知コマ
ンドの送信開始を遅延させる停電通知時間調整手段とを
設け、各端末装置に、通信回線を介して伝送される縮退
運転コマンドを受信するコマンド受信手段と、このコマ
ンド受信手段により縮退運転コマンドを受信すると停電
処理を実行した後に電源を停止する電源停止手段とを設
けたものである。
Further, in order to achieve the third object, the invention according to claim 3 of the present application is such that when a power failure signal is input to the host device by the power failure signal input means, a preselected part of each terminal device is selected. Degeneration operation execution means for transmitting the degeneration operation command to turn off the terminal device of the power supply via the communication line, and transmission of the power failure notification command by the power failure notification means according to the backup available time of the uninterruptible power supply during the degenerate operation A power failure notification time adjusting means for delaying the start is provided, and each terminal device has a command receiving means for receiving a degenerate operation command transmitted via a communication line, and a power failure process when the command receiving means receives the degenerate operation command. And a power supply stopping means for stopping the power supply after executing.

【0033】[0033]

【作用】本願請求項1対応の発明においては、商用交流
電源に停電が発生すると、無停電電源装置による電源バ
ックアップが開始されるとともに、この無停電電源装置
からホスト装置に停電信号が入力される。これにより、
ホスト装置から各端末装置に対し、通信回線を介して停
電通知コマンドが送信される。この停電通知コマンドを
受信した各端末装置では自動的に停電処理が行なわれ
る。
In the invention according to claim 1 of the present application, when a power failure occurs in the commercial AC power supply, power backup by the uninterruptible power supply is started, and a power failure signal is input from the uninterruptible power supply to the host device. . This allows
A power failure notification command is transmitted from the host device to each terminal device via a communication line. Each terminal device that has received this power failure notification command automatically performs power failure processing.

【0034】従って、各端末装置にハードウェアによる
停電検出回路を搭載する必要がなくなる。また、無停電
電源装置からの停電信号ケーブルはホスト装置に対して
のみ配線すればよく、配線が簡単である。
Therefore, it is not necessary to mount a power failure detection circuit by hardware on each terminal device. Further, the power failure signal cable from the uninterruptible power supply may be wired only to the host device, and the wiring is simple.

【0035】また本願請求項2対応の発明においては、
商用交流電源に停電が発生し、無停電電源装置による電
源バックアップが開始されるとともに、この無停電電源
装置からホスト装置に停電信号が入力されると、ホスト
装置では使用期間検出手段によって検出される無停電電
源装置の使用期間をもとに寿命管理テーブルが検索され
て、無停電電源装置のバックアップ可能時間が決定され
る。そして、このバックアップ可能時間がほぼ経過した
後、通信回線を介して各端末装置に停電通知コマンドが
送信される。
In the invention corresponding to claim 2 of the present application,
When a power failure occurs in the commercial AC power supply, power backup by the uninterruptible power supply is started, and when a power failure signal is input from this uninterruptible power supply to the host device, the host device detects it by the usage period detection means. The life management table is searched based on the usage period of the uninterruptible power supply to determine the backup available time of the uninterruptible power supply. Then, after the backupable time has almost passed, the power failure notification command is transmitted to each terminal device via the communication line.

【0036】従って、各端末装置が停電通知コマンドを
受けて停電処理を開始するのは、無停電電源装置による
電源バックアップが不能となる直前となり、無停電電源
装置の能力が最大限に活用されてシステムの稼働効率が
向上する。
Therefore, each terminal device receives the power failure notification command and starts the power failure process immediately before the power supply backup by the uninterruptible power supply becomes impossible, and the capacity of the uninterruptible power supply is fully utilized. System operating efficiency is improved.

【0037】さらに本願請求項3対応の発明において
は、商用交流電源に停電が発生し、無停電電源装置によ
る電源バックアップが開始されるとともに、この無停電
電源装置からホスト装置に停電信号が入力されると、各
端末装置のうちの予め選択された一部の端末装置が自動
的に電源断状態となって縮退運転に切替わる。その後、
縮退運転時における無停電電源装置のバックアップ可能
時間がほぼ経過したならば、通信回線を介して各端末装
置に停電通知コマンドが送信される。
Further, in the invention according to claim 3 of the present application, a power failure occurs in the commercial AC power supply, power backup is started by the uninterruptible power supply, and a power failure signal is input from the uninterruptible power supply to the host device. Then, some of the terminal devices selected in advance out of the terminal devices are automatically turned off and switched to the degenerate operation. afterwards,
When the backup available time of the uninterruptible power supply during the degenerate operation has almost passed, the power failure notification command is transmitted to each terminal device via the communication line.

【0038】従って、縮退運転により電源断された端末
装置以外の端末装置が停電通知コマンドを受けて停電処
理を開始するのは、縮退運転によってバックアップ可能
時間が引き延ばされた無停電電源装置による電源バック
アップが不能となる直前となり、システムの稼働効率は
向上する。
Therefore, the terminal devices other than the terminal device whose power is cut off due to the degenerate operation start the power outage process in response to the power failure notification command by the uninterruptible power supply device whose backup-enabled time is extended due to the degenerate operation. Immediately before power backup becomes impossible, the operating efficiency of the system improves.

【0039】[0039]

【実施例】以下、本発明をPOSシステムに適用した一
実施例について図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a POS system will be described below with reference to the drawings.

【0040】かかるPOSシステムは、図1に示すよう
に、商品販売データの登録機能を有する2台の端末装
置、いわゆるPOSターミナル1a,1bと、これらの
POSターミナル1a,1bをLAN(ローカルエリア
・ネットワーク)等の通信回線2で接続し、各POSタ
ーミナル1a,1bにて登録された商品販売データ等を
前記通信回線2を用いて収集して、商品の売上累計デー
タや在庫データ等に加工するホスト装置、いわゆるスト
アコントローラ3とから構成される。
In this POS system, as shown in FIG. 1, two terminal devices, so-called POS terminals 1a and 1b having a function of registering product sales data, and these POS terminals 1a and 1b are connected to a LAN (local area. Network) or other communication line 2, and collects product sales data registered at each POS terminal 1a, 1b using the communication line 2 and processes into product sales cumulative data or inventory data. It is composed of a host device, a so-called store controller 3.

【0041】そして、このPOSシステムは、ストアコ
ントローラ3及び各POSターミナル1a,1bの電源
として無停電電源装置4を使用しており、無停電電源装
置4とストアコントローラ3及び各POSターミナル1
a,1bとをそれぞれ電源ケーブル5で接続している。
The POS system uses the uninterruptible power supply 4 as a power source for the store controller 3 and the POS terminals 1a and 1b. The uninterruptible power supply 4, the store controller 3 and each POS terminal 1 are used.
Power cables 5 are connected to a and 1b, respectively.

【0042】また、無停電電源装置4とストアコントロ
ーラ3とは、信号ケーブル6で接続しており、無停電電
源装置4からは停電信号S1が、ストアコントローラ3
からはバックアップ停止信号S2がそれぞれ相手側に送
信される。
The uninterruptible power supply 4 and the store controller 3 are connected by a signal cable 6, and the uninterruptible power supply 4 outputs a power failure signal S1 to the store controller 3.
Sends a backup stop signal S2 to the other party.

【0043】因みに、停電信号S1は、商用交流電源7
の停電期間中に無停電電源装置4から連続的に送出され
る信号である。また、バックアップ停止信号S2は、ス
トアコントローラ3及び各POSターミナル1a,1b
で停電処理が完了した後、ストアコントローラ3から一
時的に送出される信号であり、無停電電源装置4は、こ
のバックアップ停止信号S2を受けて商用交流電源7の
停電時における電源バックアップ動作を停止する。
Incidentally, the power failure signal S1 is the commercial AC power supply 7
Is a signal continuously transmitted from the uninterruptible power supply 4 during the power failure period. Further, the backup stop signal S2 is supplied to the store controller 3 and each POS terminal 1a, 1b.
Is a signal that is temporarily sent from the store controller 3 after the power failure processing is completed, and the uninterruptible power supply device 4 receives the backup stop signal S2 and stops the power supply backup operation during a power failure of the commercial AC power supply 7. To do.

【0044】図2は各POSターミナル1a,1bの要
部構成を示すブロック図である。POSターミナル1
a,1bは、プログラムカウンタ,メモリアドレスレジ
スタ,命令レジスタ,メモリデータレジスタ等を内蔵
し、これらを用いて予め設定されたプログラムに従い各
部を制御して、入力データの演算処理等を実行するプロ
セッサとしてのCPU(中央処理装置)11、各種プロ
グラムデータ等の固定的データを予め記憶したROM
(リード・オンリ・メモリ)12、入力データ,演算処
理データ等の可変的データを一時的に記憶するD−RA
M(ダイナミック形ランダム・アクセス・メモリ)1
3、Liバッテリ14によって電源バックアップされた
S−RAM15及び現在の日付(年月日)と時刻(時分
秒)を計時する時計部16を搭載している。
FIG. 2 is a block diagram showing a main configuration of each POS terminal 1a, 1b. POS terminal 1
Each of a and 1b has a built-in program counter, a memory address register, an instruction register, a memory data register and the like, and is a processor that controls each unit according to a preset program using these and executes an arithmetic process of input data. CPU (Central Processing Unit) 11, ROM in which fixed data such as various program data is stored in advance
(Read-only memory) 12, D-RA for temporarily storing variable data such as input data and arithmetic processing data
M (Dynamic Random Access Memory) 1
3. The S-RAM 15 whose power is backed up by the Li battery 14 and the clock unit 16 for measuring the current date (year, month, day) and time (hour, minute, second) are mounted.

【0045】また、POSターミナル1a,1bは、前
記通信回線2を通じてストアコントローラ3及び他方の
POSターミナルとの間で行われるデータの送受信を予
め設定されたプロトコルに従い制御するLANインタフ
ェース17、商品販売登録用の各種キーが配設されたキ
ーボード18からキー信号が入力されるキーボード回路
19、販売登録された商品の金額や客の合計金額等を電
光表示するための表示器20を制御する表示制御回路2
1、レシート用紙及びジャーナル用紙等にデータ印字す
るためのプリンタ22を制御するプリンタ制御回路2
3、現金等を収容するためのドロワ24の開閉を制御す
るドロワ制御回路25等を搭載している。
The POS terminals 1a and 1b are a LAN interface 17 for controlling transmission / reception of data between the store controller 3 and the other POS terminal through the communication line 2 according to a preset protocol, product sales registration. A keyboard circuit 19 for inputting key signals from a keyboard 18 provided with various keys for display, and a display control circuit for controlling a display 20 for electronically displaying the amount of sale-registered merchandise and the total amount of money of customers. Two
1. A printer control circuit 2 for controlling a printer 22 for printing data on receipt paper, journal paper, etc.
3. A drawer control circuit 25 for controlling opening / closing of the drawer 24 for accommodating cash or the like is mounted.

【0046】そして、前記CPU11と、ROM12、
D−RAM13、S−RAM15、時計部16、LAN
インタフェース17、キーボード回路19、表示制御回
路21、プリンタ制御回路23、ドロワ制御回路25と
を、アドレスバス,データバス等のバスライン26で接
続している。
Then, the CPU 11, the ROM 12,
D-RAM 13, S-RAM 15, clock unit 16, LAN
The interface 17, the keyboard circuit 19, the display control circuit 21, the printer control circuit 23, and the drawer control circuit 25 are connected by a bus line 26 such as an address bus and a data bus.

【0047】前記D−RAM13には、販売登録された
商品のコード,販売点数,販売金額等の商品販売データ
を登録するための領域等が形成されている。
The D-RAM 13 is provided with an area for registering product sales data such as the code of a registered product, the number of sales, and the sales amount.

【0048】前記S−RAM15には、停電検知に応動
して前記CPU11内のプログラムカウンタ,メモリア
ドレスレジスタ,命令レジスタ,メモリデータレジスタ
等の制御データや、前記D−RAM13に登録された商
品販売データ等をセーブするための領域等が形成されて
いる。
The S-RAM 15 is responsive to a power failure detection, control data such as a program counter, a memory address register, an instruction register, and a memory data register in the CPU 11, and product sales data registered in the D-RAM 13. Areas for saving the like are formed.

【0049】図3はストアコントローラ3の要部構成を
示すブロック図である。このストアコントローラ3も、
CPU31、ROM32、D−RAM33の他、Liバ
ッテリ34によって電源バックアップされたS−RAM
35及び時計部36を搭載している。
FIG. 3 is a block diagram showing the main configuration of the store controller 3. This store controller 3 also
CPU 31, ROM 32, D-RAM 33, and S-RAM whose power is backed up by a Li battery 34
35 and a clock unit 36 are mounted.

【0050】また、前記通信回線2を通じて各POSタ
ーミナル1a,1bとの間で行われるデータの送受信を
予め設定されたプロトコルに従い制御するLANインタ
フェース37、キーボード回路38及び表示制御回路3
9を搭載している。
A LAN interface 37, a keyboard circuit 38, and a display control circuit 3 for controlling data transmission / reception between the POS terminals 1a and 1b through the communication line 2 according to a preset protocol.
It is equipped with 9.

【0051】キーボード回路38には文字キー,テンキ
ー,ファンクションキー等が配設されたキーボード40
を接続し、表示制御回路39にはCRTディスプレイ等
の表示器41を接続しており、このキーボード40及び
表示器41でワークステーションを構成している。
A keyboard 40 in which character keys, numeric keys, function keys, etc. are arranged in the keyboard circuit 38.
A display device 41 such as a CRT display is connected to the display control circuit 39, and the keyboard 40 and the display device 41 constitute a workstation.

【0052】さらに、ストアコントローラ3は、フロッ
ピーディスク装置(FDD)42によってフロッピーデ
ィスクから読取られたデータの入力やプロッピーディス
クへ書込むデータの出力を行うFDDインタフェース4
3、ハードディスク装置44によってハードディスクか
ら読取られたデータの入力やハードディスクへ書込むデ
ータの出力を行うHDDインタフェース44、前記停電
信号S1の入力や前記バックアップ停止信号の出力を行
うI/Oポート45等を搭載している。
Further, the store controller 3 inputs the data read from the floppy disk by the floppy disk device (FDD) 42 and outputs the data to be written to the proppy disk 4.
3. An HDD interface 44 for inputting data read from the hard disk by the hard disk device 44 and outputting data to be written to the hard disk, an I / O port 45 for inputting the power failure signal S1 and outputting the backup stop signal, and the like. It is equipped with.

【0053】そして、前記CPU31と、ROM32、
D−RAM33、S−RAM35、時計部36、LAN
インタフェース37、キーボード回路38、表示制御回
路39、FDDインタフェース43、HDDインタフェ
ース45及びI/Oポート46とを、アドレスバス,デ
ータバス等のバスライン47で接続している。
Then, the CPU 31, the ROM 32,
D-RAM 33, S-RAM 35, clock section 36, LAN
The interface 37, the keyboard circuit 38, the display control circuit 39, the FDD interface 43, the HDD interface 45, and the I / O port 46 are connected by a bus line 47 such as an address bus and a data bus.

【0054】前記D−RAM33には、各POSターミ
ナル1a,1bから通信回線2を用いて収集した商品販
売データを一時格納し、例えば商品別,部門別,キャッ
シャー別,時間帯別等に分類して集計するための領域等
が形成されている。
The D-RAM 33 temporarily stores product sales data collected from the POS terminals 1a and 1b using the communication line 2, and is classified into, for example, products, departments, cashiers, and time zones. Areas and the like for forming a total are formed.

【0055】前記S−RAM35には、停電検知に応動
して前記CPU31内のプログラムカウンタ,メモリア
ドレスレジスタ,命令レジスタ,メモリデータレジスタ
等の制御データをセーブするための領域等が形成されて
いる。
The S-RAM 35 is provided with an area for saving control data such as a program counter, a memory address register, an instruction register, a memory data register in the CPU 31 in response to a power failure detection.

【0056】またS−RAM35には、特に図4に示す
ように、UPS交換日エリア51、寿命管理テーブル5
2、停電処理時間テーブル53、縮退運転テーブル5
4、動作限界時間エリア55及びフラグエリア56の各
領域が形成されている。
Further, as shown in FIG. 4, the S-RAM 35 has a UPS replacement date area 51 and a life management table 5.
2, power failure processing time table 53, degenerate operation table 5
4, each of the operation limit time area 55 and the flag area 56 is formed.

【0057】前記UPS交換日エリア51は、前記無停
電電源装置4そのもの若しくは内蔵バッテリを新品のも
のに交換した日付(年月日)を記憶するエリアである。
The UPS replacement date area 51 is an area for storing the date (date) when the uninterruptible power supply 4 itself or the built-in battery is replaced with a new one.

【0058】前記寿命管理テーブル52は、通常運転モ
ードと縮退運転モードとのそれぞれにおいて、前記無停
電電源装置4の使用期間、すなわち無停電電源装置4そ
のもの若しくは内蔵バッテリを新品のものに交換してか
らの経過日数に対するバックアップ可能時間を記憶する
エリアである。
The life management table 52 shows that the operating period of the uninterruptible power supply 4, that is, the uninterruptible power supply 4 itself or the built-in battery is replaced with a new one in each of the normal operation mode and the degenerate operation mode. This is an area for storing a backup available time for the number of days elapsed since.

【0059】前記停電処理時間テーブル53は、ストア
コントローラ3が停電処理に要する時間T1と、各PO
Sターミナル1a,1bが停電処理に要する時間T2と
を記憶するエリアである。
The power outage processing time table 53 shows the time T1 required for the store controller 3 to perform a power outage and each PO.
This is an area in which the S terminals 1a and 1b store the time T2 required for power failure processing.

【0060】因みに、ストアコントローラ3の停電処理
は、CPU31内のプログラムカウンタ,メモリアドレ
スレジスタ,命令レジスタ,メモリデータレジスタ等の
制御データをS−RAM35にセーブする処理と、D−
RAM33内の集計データ等をハードディスク装置44
にセーブ処理を含む。また、POSターミナル1a,1
bの停電処理は、CPU11内のプログラムカウンタ,
メモリアドレスレジスタ,命令レジスタ,メモリデータ
レジスタ等の制御データと、D−RAM14内の登録デ
ータ等をS−RAM15にセーブする処理を含む。
Incidentally, the power failure process of the store controller 3 includes a process of saving control data such as a program counter, a memory address register, an instruction register and a memory data register in the CPU 31 in the S-RAM 35, and a D-
The hard disk device 44 stores the totalized data in the RAM 33.
Including save processing. In addition, POS terminals 1a, 1
The power failure process of b is performed by the program counter in the CPU 11,
It includes a process of saving control data such as a memory address register, an instruction register, and a memory data register, and registration data in the D-RAM 14 in the S-RAM 15.

【0061】前記縮退運転テーブル54は、正常運転モ
ードと縮退運転モードとのそれぞれにおいて、各POS
ターミナル1a,1bをそれぞれ稼働させるか否かを識
別するデータ(稼働許可=ON,稼働不許可=OFF)
を記憶するエリアである。
The aforesaid degenerate operation table 54 shows that the POS is different in each of the normal operation mode and the degenerate operation mode.
Data for identifying whether or not to operate the terminals 1a and 1b (operation permission = ON, operation non-permission = OFF)
Is an area for storing.

【0062】前記動作限界時間エリア55は、前記無停
電電源装置4による電源バックアップが開始されてから
ストアコントローラ3が停電処理も含んで安定に動作で
きる限界時間Aと、同じく各POSターミナル1a,1
bが停電処理も含んで安定に動作できる限界時間Bとを
記憶するエリアである。
In the operation limit time area 55, the limit time A during which the store controller 3 can operate stably including power failure processing after the power backup by the uninterruptible power supply 4 is started, and the respective POS terminals 1a, 1 are also provided.
An area b stores a limit time B that allows stable operation including the power outage process.

【0063】前記フラグエリア56は、縮退運転モード
実行中に“1”にセットされる縮退運転フラグFと、ス
トアコントローラ3にて停電処理が開始されたとき
“1”,停電処理が終了したとき“2”にそれぞれ更新
されるSC停電処理フラグfa及び各POSターミナル
1a,1bにて停電処理が開始されたとき“1”,停電
処理が終了したとき“2”にそれぞれ更新されるTM停
電処理フラグfbを記憶するエリアである。
In the flag area 56, the degeneration operation flag F which is set to "1" during execution of the degeneration operation mode, "1" when the power failure process is started by the store controller 3, and when the power failure process is completed SC power failure processing flag fa that is updated to "2" and TM power failure processing that is updated to "1" when power failure processing starts at each POS terminal 1a, 1b, and "2" when power failure processing ends This is an area for storing the flag fb.

【0064】ここで、前記UPS交換日エリア51の日
付データ、寿命管理テーブル52の各使用日数データ及
び各バックアップ可能時間データ、停電処理時間テーブ
ル53の各停電処理時間データT1,T2及び縮退運転
テーブル54の各ON/OFFデータは、キーボード4
0のキー操作により適宜入力設定できる。
Here, the date data of the UPS replacement date area 51, the number of use days data and each backup available time data of the life management table 52, each power failure processing time data T1 and T2 of the power failure processing time table 53, and the degenerate operation table. Each ON / OFF data of 54 is the keyboard 4
The input can be set appropriately by operating the 0 key.

【0065】しかして、本実施例のPOSシステムにお
いては、先ず商用交流電源7の停電時に縮退運転を行う
否か、行う場合にはどちらのPOSターミナルの運転を
停止させるかを決め、その決定事項に従い縮退運転テー
ブル54を作成する。
Therefore, in the POS system of this embodiment, first, it is decided whether or not the degenerate operation is performed when the commercial AC power source 7 is out of power, and if so, which POS terminal is to be stopped. Then, the degenerate operation table 54 is created.

【0066】図4に示す縮退運転テーブル54のデータ
例の場合、商用交流電源7に停電が発生していない通常
運転モード時には両方のPOSターミナル1a,1bが
稼働し、縮退運転モード時には一方のPOSターミナル
1aの運転が停止する。なお、縮退運転を行わない場合
には、縮退運転モードエリアのデータをいずれも“O
N”とすればよい。
In the case of the data example of the degeneration operation table 54 shown in FIG. 4, both POS terminals 1a and 1b operate in the normal operation mode in which the commercial AC power supply 7 is not blacked out, and one POS terminal 1a and 1b operate in the degeneration operation mode. The operation of the terminal 1a is stopped. If the degenerate operation is not performed, the data in the degenerate operation mode area is set to "O".
It may be N ″.

【0067】次に、無停電電源装置4の仕様と、通常運
転モード時及び縮退運転モード時におけるシステム消費
電力との関係から、無停電電源装置4の使用期間に対す
るモード別のバックアップ可能時間の特性が分かるの
で、その特性データに基づいて前記寿命管理テーブル5
2を作成する。
Next, from the relationship between the specifications of the uninterruptible power supply 4 and the system power consumption in the normal operation mode and the degenerate operation mode, the characteristics of the backup-enabled time for each mode with respect to the usage period of the uninterruptible power supply 4 are described. The life management table 5 can be obtained based on the characteristic data.
Create 2.

【0068】図4に示す寿命管理テーブル54のデータ
例の場合、使用開始から365日(約1年間)までは通
常運転モード時には120分のバックアップが可能であ
り、縮退運転モード時には156分のバックアップが可
能であることを示している。同様に、使用開始からの経
過日数が366日から548日(約1年から1年半)ま
では通常運転モード時には114分,縮退運転モード時
には148分のバックアップが可能であり、549日か
ら730日(約1年半から2年)までは通常運転モード
時には108分,縮退運転モード時には140分のバッ
クアップが可能であり、731日から913日(約2年
から2年半)までは通常運転モード時には96分,縮退
運転モード時には114分のバックアップが可能であ
り、914日以上経過すると通常運転モード時には60
分,縮退運転モード時には96分のバックアップが可能
である。なお、この無停電電源装置4のバッテリ寿命は
約3年である。
In the case of the data example of the life management table 54 shown in FIG. 4, 120 minutes of backup can be performed in the normal operation mode and 365 minutes of backup in the degenerate operation mode from the start of use to 365 days (about one year). Is possible. Similarly, when the number of days elapsed from the start of use is 366 days to 548 days (about one year to one and a half years), it is possible to back up 114 minutes in the normal operation mode and 148 minutes in the degenerate operation mode, and from 549 days to 730 days. Up to 108 minutes in normal operation mode and 140 minutes in degenerate operation mode can be backed up until day (about one and a half to two years), and normal operation from 731 to 913 days (about two to two and a half years). It is possible to back up 96 minutes in the mode and 114 minutes in the degenerate operation mode, and 60 minutes in the normal operation mode after 914 days have passed.
In the degenerate operation mode, 96 minutes can be backed up. The battery life of the uninterruptible power supply 4 is about 3 years.

【0069】次に、ストアコントローラ3の仕様と、各
POSターミナル1a,1bの仕様からSC停電処理時
間T1及びTM停電処理時間T2がそれぞれ分かるの
で、これらの時間データT1,T2に基づいて停電処理
時間テーブル53を作成する。
Next, since the SC power failure processing time T1 and the TM power failure processing time T2 can be known from the specifications of the store controller 3 and the specifications of the POS terminals 1a and 1b, respectively, the power failure processing is performed based on these time data T1 and T2. The time table 53 is created.

【0070】図4に示す停電処理時間テーブル53のデ
ータ例の場合、ストアコントローラ3が停電処理に要す
る時間は5分以内であり、POSターミナル1a,1b
が停電処理に要する時間は3分以内である。
In the case of the data example of the power failure processing time table 53 shown in FIG. 4, the time required for the power failure processing by the store controller 3 is within 5 minutes, and the POS terminals 1a, 1b.
Takes less than 3 minutes to process the power outage.

【0071】最後に、かかるPOSシステムでの無停電
電源装置4の使用開始日をUPS交換日エリア51に設
定入力する。図4に示すUPS交換日エリア51のデー
タ例の場合、1993年5月1日が使用開始日である。
Finally, the use start date of the uninterruptible power supply 4 in the POS system is set and input in the UPS exchange date area 51. In the case of the data example of the UPS exchange date area 51 shown in FIG. 4, May 1, 1993 is the use start date.

【0072】以上のデータ設定作業を全て終了したなら
ばシステムを起動する。なお、これらデータの設定順序
は特に本実施例に限定されるものではない。
When all the above data setting work is completed, the system is started. The order of setting these data is not particularly limited to this embodiment.

【0073】こうして、システムが起動されると、無停
電電源装置4は、通常は商用交流電源7によってストア
コントローラ3及び各POSターミナル1a,1bに電
源を供給するとともに、内蔵されたバッテリを充電す
る。その結果、各POSターミナル1a,1bでは商品
販売データの登録業務等が実行される。また、ストアプ
ロセッサ3においては、各POSターミナル1a,1b
にて登録された商品販売データの収集,集計業務等が行
われる。
In this way, when the system is activated, the uninterruptible power supply 4 normally supplies power to the store controller 3 and each of the POS terminals 1a and 1b by the commercial AC power supply 7, and charges the built-in battery. . As a result, registration work of product sales data is executed in each POS terminal 1a, 1b. Further, in the store processor 3, each POS terminal 1a, 1b
Collection of product sales data registered in and collection work are performed.

【0074】この状態で、商用交流電源7に停電が発生
すると、無停電電源装置4はバッテリによってストアコ
ントローラ3及び各POSターミナル1a,1bに電源
を供給するとともに、停電信号S1を停電期間中連続的
にストアコントローラ3へ送信する。この停電信号S1
はI/Oポート46を介して入力され、CPU31に割
込信号として供給される。ここに、I/Oポート46は
停電信号入力手段を構成する。
In this state, when a power failure occurs in the commercial AC power supply 7, the uninterruptible power supply 4 supplies power to the store controller 3 and each of the POS terminals 1a and 1b by a battery, and continuously outputs the power failure signal S1 during the power failure period. To the store controller 3. This power failure signal S1
Is input via the I / O port 46 and is supplied to the CPU 31 as an interrupt signal. Here, the I / O port 46 constitutes a power failure signal input means.

【0075】一方、停電信号S1を受け取ったCPU3
1は、図5乃至図7の流れ図に示す処理を実行するよう
にプログラムされている。先ず、ST(ステップ)1と
して縮退運転テーブル54の縮退運転モード時エリアを
検索し、縮退指定、つまりは運転停止が指定されたPO
Sターミナルが存在するか否かを判断する。
On the other hand, the CPU 3 which has received the power failure signal S1
1 is programmed to perform the processes shown in the flow charts of FIGS. First, as ST (step) 1, the area in the degenerate operation mode of the degenerate operation table 54 is searched, and the PO for which degeneration is designated, that is, operation stop is designated.
It is determined whether the S terminal exists.

【0076】そして、データ“OFF”のPOSターミ
ナルが存在する場合には、そのPOSターミナルが縮退
指定のPOSターミナルなので、フラグエリア56の縮
退運転フラグFを“1”にセットするとともに、前記縮
退指定のPOSターミナルへ通信回線2を介して縮退運
転コマンドを送信する(縮退運転実行手段)。
If there is a POS terminal with data "OFF", the POS terminal is a POS terminal with degeneration specified, so the degeneration operation flag F in the flag area 56 is set to "1" and the degeneration specification is made. The degenerate operation command is transmitted to the POS terminal via the communication line 2 (degenerate operation executing means).

【0077】これに対し、データ“OFF”のPOSタ
ーミナルが存在しない場合には、縮退運転を行わないの
で、前記縮退運転フラグFを“0”にリセットする。
On the other hand, when there is no POS terminal with data "OFF", degeneration operation is not performed, so the degeneration operation flag F is reset to "0".

【0078】次に、ST2として時計部36から読出し
た現在の日付データからUPS交換日エリア51に設定
されている日付データを減算して、無停電電源装置4の
使用日数を算出する(使用期間検出手段)。
Next, in ST2, the date data set in the UPS replacement date area 51 is subtracted from the current date data read from the clock unit 36 to calculate the number of days of use of the uninterruptible power supply 4 (use period. Detection means).

【0079】次に、ST3として前記縮退運転フラグF
を調べる。そして、“1”にセットされている場合には
縮退運転モードなので、寿命管理テーブル52の縮退運
転モードエリアを検索して、前記無停電電源装置4の使
用日数に該当するバックアップ可能時間Xを判別する。
これに対し、“0”にリセットされている場合には、通
常運転モードなので、寿命管理テーブル52の通常運転
モードエリアを検索して、前記無停電電源装置4の使用
日数に該当するバックアップ可能時間Xを判別する(バ
ックアップ可能時間決定手段)。
Next, at ST3, the degenerate operation flag F is set.
Find out. When it is set to "1", the mode is the degenerate operation mode, so the degenerate operation mode area of the life management table 52 is searched to determine the backup available time X corresponding to the number of days of use of the uninterruptible power supply 4. To do.
On the other hand, when it is reset to “0”, it is the normal operation mode, so the normal operation mode area of the life management table 52 is searched and the backup available time corresponding to the number of days of use of the uninterruptible power supply 4 is searched. X is discriminated (backup possible time determining means).

【0080】次に、ST4として前記バックアップ可能
時間Xから停電処理時間テーブル53に設定されている
ストアコントローラ3の停電処理時間T1を減算してス
トアコントローラ3の動作限界時間Aを算出するととも
に、同じくバックアップ可能時間Xから停電処理時間テ
ーブル53に設定されているPOSターミナル1a,1
bの停電処理時間T2を減算してPOSターミナル1
a,1bの動作限界時間Bを算出し、それぞれを格納す
る。
Next, at ST4, the power failure processing time T1 of the store controller 3 set in the power failure processing time table 53 is subtracted from the backup available time X to calculate the operation limit time A of the store controller 3 and POS terminals 1a, 1 set in the power failure processing time table 53 from the backup available time X
POS terminal 1 after subtracting the power failure processing time T2 of b
The operation limit times B of a and 1b are calculated and stored.

【0081】しかる後、フラグエリア56のSC停電処
理フラグfa及びTM停電処理フラグfbを“0”にリ
セットするとともに、CPU31に内蔵された1分タイ
マによる計時を開始する。
Thereafter, the SC power failure processing flag fa and the TM power failure processing flag fb in the flag area 56 are reset to "0", and the one-minute timer built in the CPU 31 starts counting time.

【0082】この状態で、ST5として前記停電信号S
1が入力されているか否かを判断する。また、ST6と
して前記1分タイマによる計時時間が前記動作限界時間
エリア55に格納されたSC動作限界時間Aを経過した
か否かを判断する。さらに、ST7として前記1分タイ
マによる計時時間が前記動作限界時間エリア55に格納
されたTM動作限界時間Bを経過したか否かを判断する
(停電通知時間調整手段)。
In this state, as ST5, the power failure signal S
It is determined whether 1 is input. In ST6, it is determined whether or not the time counted by the 1-minute timer has exceeded the SC operation limit time A stored in the operation limit time area 55. Further, in ST7, it is determined whether or not the time measured by the 1-minute timer has exceeded the TM operation limit time B stored in the operation limit time area 55 (power failure notification time adjusting means).

【0083】そして、停電信号S1が連続的に入力され
ている状態で、ST6にて前記1分タイマによる計時時
間がSC動作限界時間Aを経過すると、ST8として前
記SC停電処理フラグfaを調べる。ここで、SC停電
処理フラグfaが“0”の場合には、停電処理前なの
で、ストアコントローラ3の停電処理を開始するととも
に、SC停電処理フラグfaを“1”に更新する。ST
8にてSC停電処理フラグfaが“0”以外の場合に
は、上記処理を行わない。
When the power failure signal S1 is continuously input and the time counted by the 1-minute timer exceeds the SC operation limit time A in ST6, the SC power failure processing flag fa is checked in ST8. Here, if the SC power outage processing flag fa is "0", it means that the power outage processing has not been performed yet, so that the power outage processing of the store controller 3 is started and the SC power outage processing flag fa is updated to "1". ST
If the SC power failure process flag fa is other than "0" at 8, the above process is not performed.

【0084】その後、停電処理が完了したならば、前記
SC停電処理フラグfaを“2”に更新する。
After that, when the power failure processing is completed, the SC power failure processing flag fa is updated to "2".

【0085】一方、停電信号S1が連続的に入力されて
いる状態で、ST7にて前記1分タイマによる計時時間
がTM動作限界時間Bを経過すると、ST9として前記
TM停電処理フラグfbを調べる。ここで、TM停電処
理フラグfbが“0”の場合には、運転中のPOSター
ミナルの停電処理前なので、その運転中のPOSターミ
ナルに対し通信回線2を介して停電検出コマンドを送信
するとともに(停電通知手段)、TM停電処理フラグf
bを“1”に更新する。ST9にてTM停電処理フラグ
fbが“0”以外の場合には、上記処理を行わない。
On the other hand, when the power failure signal S1 is continuously input and the time counted by the 1-minute timer exceeds the TM operation limit time B in ST7, the TM power failure processing flag fb is checked in ST9. Here, when the TM power failure processing flag fb is “0”, it means that the power is not being processed for the POS terminal in operation, and therefore, a power failure detection command is transmitted to the POS terminal in operation via the communication line 2 ( Power failure notification means), TM power failure processing flag f
b is updated to "1". If the TM power outage process flag fb is other than "0" in ST9, the above process is not performed.

【0086】停電検出コマンドを受信したPOSターミ
ナルでは停電処理が行われ、完了すると停電処理完了報
告コマンドが通信回線2を通じて返信されるので、運転
中の前記POSターミナルから前記停電処理完了報告コ
マンドを受信したならば、前記TM停電処理フラグfb
を“2”に更新する。
The power failure processing is performed at the POS terminal which has received the power failure detection command, and when it is completed, the power failure processing completion report command is returned through the communication line 2. Therefore, the power failure processing completion report command is received from the operating POS terminal. If so, the TM power failure processing flag fb
Is updated to "2".

【0087】こうして、ST10として前記SC停電処
理フラグfa及びTM停電処理フラグfbがいずれも
“2”に更新されたことを確認したならば、ST11と
してI/Oポート46を介して無停電電源装置4にバッ
クアップ停止信号S2を送出して、この制御を終了す
る。
In this way, if it is confirmed at ST10 that both the SC power failure processing flag fa and the TM power failure processing flag fb have been updated to "2", then at ST11 the uninterruptible power supply is operated via the I / O port 46. Then, the backup stop signal S2 is sent to 4 and this control is terminated.

【0088】これにより、無停電電源装置4からの電源
供給が停止されるので、ストアコントローラ3及び各P
OSターミナル1a,1bはダウンする。
As a result, the power supply from the uninterruptible power supply 4 is stopped, so that the store controller 3 and each P
The OS terminals 1a and 1b go down.

【0089】なお、前記SC停電処理フラグfa及びT
M停電処理フラグfbが両方とも“2”に更新されるよ
り前に、ST5にて停電信号S1がローレベル“L”と
なって途絶えたならば、商用交流電源7の停電が回復し
たので、ST12として前記1分タイマをリセットす
る。
The SC power failure processing flags fa and T
If both of the M power failure processing flags fb are updated to "2" and the power failure signal S1 becomes low level "L" at ST5 and is interrupted, the power failure of the commercial AC power supply 7 is recovered. In ST12, the 1-minute timer is reset.

【0090】次いで、ST13として前記SC停電処理
フラグfaを調べ、“0”にリセットされている以外は
ストアコントローラ3の停電処理が実行若しくは完了し
ているので、停電処理によってS−RAM35及びハー
ドディスク装置44にセーブされたデータを元の場所へ
ロードする停電復帰処理を実行する。
Next, in ST13, the SC power failure process flag fa is checked, and the power failure process of the store controller 3 is executed or completed except that it is reset to "0". Therefore, the power failure process causes the S-RAM 35 and the hard disk device to operate. A power failure recovery process of loading the data saved in 44 to the original location is executed.

【0091】また、ST14として前記TM停電処理フ
ラグfbを調べ、“0”にリセットされている以外は運
転中のPOSターミナルで停電処理が実行若しくは完了
しているので、その運転中のPOSターミナルに対し通
信回線2を介して停電解除コマンドを送出する。これに
より、その運転中のPOSターミナルでは停電処理によ
ってS−RAM15にセーブされたデータを元の場所へ
ロードする停電復帰処理が実行される。
Further, in ST14, the TM power failure processing flag fb is checked, and power failure processing is being executed or completed at the POS terminal in operation except that it is reset to "0". On the other hand, a power failure cancellation command is sent via the communication line 2. As a result, at the POS terminal in operation, a power failure recovery process of loading the data saved in the S-RAM 15 to the original location by the power failure process is executed.

【0092】以上で停電信号S1の割込みによるCPU
31のプログラム処理を終了し、CPU31は停電前の
状態から動作を継続する。
As described above, the CPU caused by the interruption of the power failure signal S1
After ending the program processing of 31, the CPU 31 continues the operation from the state before the power failure.

【0093】一方、各POSターミナル1a,1bのC
PU11は、図8に示すように、前記通信回線2を介し
て伝送される自己宛ての停電検出コマンドをLANイン
タフェース17を介して受信すると(コマンド受信手
段)、停電処理としてCPU11内の制御データやD−
RAM14内の登録データ等をS−RAM15にセーブ
する(停電処理手段)。
On the other hand, C of each POS terminal 1a, 1b
As shown in FIG. 8, when the PU 11 receives a power failure detection command addressed to itself transmitted via the communication line 2 via the LAN interface 17 (command receiving means), it receives control data in the CPU 11 as power failure processing and D-
The registration data and the like in the RAM 14 are saved in the S-RAM 15 (power failure processing means).

【0094】そして、データセーブを完了したならば、
通信回線2を介してストアコントローラ3に停電処理完
了報告コマンドを送信する。また、S−RAM15内の
フラグエリアに設けられた停電フラグをセットして停電
処理が行われたことを記憶する。
When the data saving is completed,
A power failure process completion report command is transmitted to the store controller 3 via the communication line 2. In addition, the power failure flag provided in the flag area in the S-RAM 15 is set to store that the power failure process was performed.

【0095】その後、ストアコントローラ3から自己宛
てのコマンドが入力されるのを待機する。そして、停電
解除コマンドが入力された場合には、前記停電フラグを
リセットするとともに、前記停電処理によってS−RA
M15にセーブした各データをそれぞれ元の場所へロー
ドしたならば、通常業務に戻る。これにより、CPU1
1は停電発生前の状態から動作を継続する。
Thereafter, the store controller 3 waits for a command addressed to itself to be input. Then, when a power failure cancellation command is input, the power failure flag is reset, and S-RA is performed by the power failure processing.
After loading each data saved in M15 to the original location, return to normal operation. As a result, the CPU1
1 continues the operation from the state before the occurrence of the power failure.

【0096】なお、コマンド待機中に電源がリセット電
圧V3以下に低下したときには、自動的にダウンする。
When the power supply voltage drops below the reset voltage V3 while waiting for a command, the power supply is automatically shut down.

【0097】また、各POSターミナル1a,1bのC
PU11は、図8に示すように、前記通信回線2を介し
て伝送される自己宛ての縮退運転コマンドをLANイン
タフェース17を介して受信すると(コマンド受信手
段)、停電処理としてCPU11内の制御データやD−
RAM14内の登録データ等をS−RAM15にセーブ
する。そして、データセーブを完了したならば、通信回
線2を介してストアコントローラ3に停電処理完了報告
コマンドを送信する。また、S−RAM15内のフラグ
エリアに設けられた停電フラグをセットして停電処理が
行われたことを記憶する。その後、電源を停止する(電
源停止処理)。
In addition, C of each POS terminal 1a, 1b
As shown in FIG. 8, when the PU 11 receives the degenerate operation command addressed to itself, which is transmitted via the communication line 2 via the LAN interface 17 (command receiving means), control data in the CPU 11 as power failure processing and D-
Registration data and the like in the RAM 14 are saved in the S-RAM 15. When the data saving is completed, the power failure process completion report command is transmitted to the store controller 3 via the communication line 2. In addition, the power failure flag provided in the flag area in the S-RAM 15 is set to store that the power failure process was performed. After that, the power supply is stopped (power supply stop processing).

【0098】こうして、無停電電源装置4からの電源電
圧低下により、または縮退運転コマンドの入力によって
電源を停止したPOSターミナルのCPU11は、その
後、無停電電源装置4からの電源電圧が上昇してリセッ
ト電圧V3を越えると、従来例(図11(b)を参照)
で説明したように、先ず前記停電フラグがセットされて
いるか否かを判断する。そして、セットされている場合
には、停電前にデータセーブ処理が行われていたので、
停電フラグをリセットするとともに、データロード処理
を行う。なお、停電フラグがリセットされている場合に
は上記処理は行わない。
In this way, the CPU 11 of the POS terminal, which has stopped its power supply due to the reduction of the power supply voltage from the uninterruptible power supply 4 or the input of the degenerate operation command, resets the power supply voltage from the uninterruptible power supply 4 after that. When the voltage exceeds V3, the conventional example (see FIG. 11B)
As described above, first, it is determined whether or not the power failure flag is set. If it is set, the data save process was being performed before the power failure, so
Resets the power failure flag and performs data loading processing. The above process is not performed when the power failure flag is reset.

【0099】その後、CPU11は、プログラムカウン
タのリセット、メモリアドレスレジスタ,命令レジスタ
及びメモリデータレジスタのクリア等の初期化処理を行
った後、通常業務を開始する。
After that, the CPU 11 carries out initialization processing such as resetting the program counter, clearing the memory address register, the instruction register and the memory data register, and then starts the normal operation.

【0100】このように本実施例においては、停電処理
機能をそれぞれ有する複数台のPOS端末1a,1b
と、これらのPOS装置1a,1bを通信回線2で接続
し、各POS装置1a,1bにて登録されたデータを前
記通信回線2を用いて収集し加工するストアコントロー
ラ3とからなり、ストアコントローラ3及び各POSタ
ーミナルに無停電電源装置4から電力を供給するPOS
システムにおいて、ストアコントローラ3に、無停電電
源装置4から停電検知時に送出される停電信号S1を入
力する停電信号入力手段(I/Oポート46)と、この
入力手段により停電信号S1を入力すると通信回線2を
用いて各POSターミナル1a,1bに停電通知コマン
ドを送信する停電通知手段(CPU31及びLANイン
タフエース37)とを備え、各POSターミナル1a,
1bに、通信回線2を介して伝送される停電通知コマン
ドを受信するコマンド受信手段(CPU11及びLAN
インタフェース17)と、この受信手段により停電通知
コマンドを受信すると停電処理を実行する停電処理手段
(CPU11)とを備えている。
As described above, in this embodiment, a plurality of POS terminals 1a and 1b each having a power failure processing function are provided.
And a store controller 3 that connects these POS devices 1a and 1b through a communication line 2 and collects and processes the data registered in each POS device 1a and 1b using the communication line 2. 3 and each POS terminal that supplies power from the uninterruptible power supply 4
In the system, a power failure signal input means (I / O port 46) for inputting a power failure signal S1 sent from the uninterruptible power supply 4 when a power failure is detected to the store controller 3 and a power failure signal S1 input by this input means are communicated. A power failure notification means (CPU 31 and LAN interface 37) for transmitting a power failure notification command to each POS terminal 1a, 1b using the line 2 is provided, and each POS terminal 1a,
1b is a command receiving means (CPU 11 and LAN) for receiving a power failure notification command transmitted via the communication line 2.
The interface 17) and a power failure processing means (CPU 11) that executes power failure processing when the power receiving notification command is received by the receiving means.

【0101】従って、各POSターミナル1a,1b
は、ストアコントローラ3から通信回線2を介して入力
される停電通知コマンドに応動して停電処理を開始する
ので、ハードウェアによる停電検出回路を搭載する必要
がなくなる。その結果、回路構成の簡略化及びコストの
低減を図り得る。
Therefore, each POS terminal 1a, 1b
Starts a power failure process in response to a power failure notification command input from the store controller 3 via the communication line 2, so that it is not necessary to mount a hardware power failure detection circuit. As a result, the circuit configuration can be simplified and the cost can be reduced.

【0102】また、無停電電源装置4から送出される停
電信号S1の信号ケーブル6はストアコントローラ3に
対してのみ配線すればよく、各POSターミナル1a,
1bに対しては配線する必要がないので、配線が複雑化
することもなく、この点からもコストアップを抑制でき
る。
Further, the signal cable 6 of the power failure signal S1 sent from the uninterruptible power supply 4 may be wired only to the store controller 3, and each POS terminal 1a,
Since it is not necessary to provide wiring for 1b, the wiring does not become complicated and the cost increase can be suppressed from this point as well.

【0103】また、本実施例では、ストアコントローラ
3に、無停電電源装置4の使用期間に対するバックアッ
プ可能時間を予め設定記憶する寿命管理テーブル52
と、無停電電源装置4の使用期間を検出する使用期間検
出手段(CPU31,時計部36,UPS交換日エリア
51)と、前記停電信号入力手段により停電信号S1を
入力すると使用期間検出手段によって検出される無停電
電源装置4の使用期間から寿命管理テーブル52を検索
して、無停電電源装置4のバックアップ可能時間Xを決
定するバックアップ可能時間決定手段(CPU31)
と、この決定手段により決定されたバックアップ可能時
間Xに応じて前記停電通知手段による停電通知コマンド
の送信開始を遅延させる停電通知時間調整手段(CPU
31,動作限界時間エリア55,1分タイマ)とを備え
ている。
Further, in the present embodiment, the life management table 52 in which the backup available time for the period of use of the uninterruptible power supply 4 is preset and stored in the store controller 3
And a period-of-use detecting means (CPU 31, clock unit 36, UPS replacement date area 51) for detecting the period of use of the uninterruptible power supply 4, and a period-of-use detecting means for detecting the period of use of the power failure signal S1. The available backup time determining means (CPU 31) that searches the life management table 52 from the used period of the uninterruptible power supply 4 and determines the available backup time X of the uninterruptible power supply 4.
And a power failure notification time adjusting means (CPU) that delays the start of transmission of the power failure notification command by the power failure notification means according to the backup available time X determined by the determination means.
31, an operation limit time area 55, a 1-minute timer).

【0104】これにより、商用交流電源7の停電により
ストアコントローラ3から各POSターミナル1a,1
bに停電通知コマンドが送信されるが、このコマンドの
送信開始時間が、無停電電源装置4の使用期間が短いた
めにバッテリ容量が充分に大きくバックアップ可能時間
Xが長いときには遅くなり、逆に使用期間が短いために
バッテリ容量が小さくバックアップ可能時間Xが短いと
きには早くなる。
As a result, the store controller 3 causes the POS terminals 1a, 1
Although the power failure notification command is transmitted to b, the transmission start time of this command is delayed when the battery capacity is sufficiently large and the backup available time X is long because the uninterruptible power supply 4 is used for a short period of time. Since the period is short, the battery capacity is small, and the backup time is short when the available backup time X is short.

【0105】例えば図4に示す寿命管理テーブル52の
データ例において、通常運転モード時、無停電電源装置
4の使用期間が365日以下の場合にはバックアップ可
能時間Xは120分であり、913日を越えると60分
まで短縮される。ここで、POSターミナル1a,1b
での停電処理に要する時間T1=3分とすると、前者の
場合は商用交流電源7の停電発生から117分が経過し
た後に各POSターミナル1a,1bに対して停電通知
コマンドが送信され、後者の場合は停電発生から57分
が経過した後に停電通知コマンドが送信される。
For example, in the data example of the life management table 52 shown in FIG. 4, in the normal operation mode, when the uninterruptible power supply 4 is used for 365 days or less, the backup available time X is 120 minutes, and 913 days. If it exceeds, it will be shortened to 60 minutes. Here, POS terminals 1a, 1b
In the former case, a power failure notification command is transmitted to each POS terminal 1a, 1b after 117 minutes have elapsed from the occurrence of a power failure in the commercial AC power source 7, and the latter In this case, the power failure notification command is transmitted after 57 minutes have elapsed from the power failure.

【0106】また、ストアコントローラ3における停電
処理のタイミングも前記バックアップ可能時間Xに応じ
て遅らせている。ストアコントローラ3での停電処理に
要する時間T2=5分とすると、前者の場合は停電発生
から115分が経過した後にストアコントローラ3の停
電処理が開始され、後者の場合は停電発生から55分が
経過した後に停電処理が開始される。
The timing of the power failure process in the store controller 3 is also delayed according to the backup available time X. Assuming that the time T2 required for power outage processing in the store controller 3 is 5 minutes, in the former case, the power outage processing of the store controller 3 is started after 115 minutes have passed since the power outage occurred, and in the latter case, 55 minutes after the power outage occurred. The power outage process is started after the lapse of time.

【0107】従って、いずれの場合でも無停電電源装置
4によるバックアップが不能となる直前までストアコン
トローラ3及び各POSターミナル1a,1bでは通常
の業務が行われるので、無停電電源装置4の能力を有効
に活用でき、POSシステムの稼働効率向上を図り得
る。
Therefore, in any case, since the store controller 3 and the respective POS terminals 1a and 1b perform normal business until just before the backup by the uninterruptible power supply 4 becomes impossible, the capability of the uninterruptible power supply 4 is effective. Can be utilized for improving the operating efficiency of the POS system.

【0108】さらに本実施例では、ストアコントローラ
3に、前記停電信号入力手段により停電信号S1を入力
すると各POSターミナル1a,1bのうちの予め選択
された一部のPOSターミナルを電源断状態にする縮退
運転コマンドを通信回線2を介して送信する縮退運転実
行手段(CPU31,縮退運転テーブル54)と、縮退
運転時における無停電電源装置4のバックアップ可能時
間Xに応じて前記停電通知手段による停電通知コマンド
の送信開始を遅延させる停電通知時間調整手段と(CP
U31,動作限界時間エリア55,1分タイマ)とを備
え、各POSターミナル1a,1bに、通信回線2を介
して伝送される縮退運転コマンドを受信するコマンド受
信手段(CPU11及びLANインタフェース17)
と、この受信手段により縮退運転コマンドを受信すると
停電処理を実行した後に電源を停止する電源停止手段
(CPU11)とを備えている。
Furthermore, in this embodiment, when the power failure signal S1 is input to the store controller 3 by the power failure signal input means, a part of the POS terminals 1a and 1b selected in advance is turned off. Degeneration operation execution means (CPU 31, degeneration operation table 54) for transmitting a degeneration operation command via the communication line 2 and a power failure notification by the power failure notification means according to the backup available time X of the uninterruptible power supply 4 during the degenerate operation. Power failure notification time adjustment means for delaying the start of command transmission and (CP
U31, operation limit time area 55, 1-minute timer), and command receiving means (CPU 11 and LAN interface 17) for receiving the degenerate operation command transmitted via the communication line 2 to each POS terminal 1a, 1b.
And a power supply stopping means (CPU 11) for stopping the power supply after executing the power failure process when the degenerate operation command is received by the receiving means.

【0109】これにより、商用交流電源7の停電発生に
より縮退指定されたPOSターミナルが自動的にダウン
するので、システムの消費電力が小さくなり、無停電電
源装置4によるバックアップ可能時間Xが通常運転モー
ドの時と比べて引き延ばされる。そして、その引き延ば
された分だけ、さらにストアコントローラ3及び縮退指
定されないPOSターミナルでの停電処理が遅れて実行
される。
As a result, the POS terminal designated for degeneration is automatically brought down due to the occurrence of a power failure of the commercial AC power supply 7, so that the power consumption of the system is reduced and the backupable time X by the uninterruptible power supply 4 is the normal operation mode. Is stretched compared to when. Then, the power outage process in the store controller 3 and the POS terminal not designated for degeneration is executed with a delay by the extended amount.

【0110】例えば図4に示す寿命管理テーブル52及
び縮退運転テーブル54のデータ例においては、停電が
発生すると、即座にPOSターミナル1aは停電処理を
実行した後にダウンする。その結果、ストフコントロー
ラ3と他方のPOSターミナル1bとだけでシステムが
稼働する。
For example, in the data example of the life management table 52 and the degenerate operation table 54 shown in FIG. 4, when a power failure occurs, the POS terminal 1a immediately goes down after executing the power failure process. As a result, the system operates only with the Stoff controller 3 and the other POS terminal 1b.

【0111】この場合における無停電電源装置4のバッ
クアップ可能時間Xは、使用期間が365日以下の場合
には156分であり、停電発生から151分を経過して
漸くストアコントローラ3の停電処理が行われ、POS
ターミナル1bの停電処理は停電発生から153分を経
過して漸く行われる。
In this case, the backup available time X of the uninterruptible power supply 4 is 156 minutes when the usage period is 365 days or less, and the power failure process of the store controller 3 is gradually performed when 151 minutes have passed after the occurrence of the power failure. Done, POS
The power failure process of the terminal 1b is gradually performed 153 minutes after the power failure occurs.

【0112】従って、商用交流電源7に停電が発生した
ときには自動的にかつ速やかに縮退運転に切替えること
ができるので、システム管理者の負担になることなく無
停電電源装置4によるバックアップ可能時間Xを引き延
ばすことができる。そして、このバックアッブ可能時間
を有効に使用してから停電処理を行うので、システムの
稼働効率をより向上できる。
Therefore, when a power failure occurs in the commercial AC power supply 7, it is possible to automatically and promptly switch to the degenerate operation, so that the backupable time X by the uninterruptible power supply 4 can be set without burdening the system administrator. Can be extended. Then, since the power failure process is performed after the backupable time is effectively used, the operating efficiency of the system can be further improved.

【0113】なお、請求項2対応の発明に係わる使用期
間検出手段は、前記実施例ではUPS交換日エリアの日
付データと時計部36にて計時されている日付データと
から検出したが、時計部36によって計時される日付が
1日を経過する毎に+1ずつカウントアップするカウン
タとし、無停電電源装置4そのもの若しくはバッテリを
新品のものに交換したとき前記カウンタをリセットし
て、無停電電源装置4の使用期間を検出してもよい。
The use period detecting means according to the invention according to claim 2 detects from the date data of the UPS exchange date area and the date data clocked by the clock section 36 in the above embodiment. A counter that counts up by +1 each time the date measured by 36 passes one day, and resets the counter when the uninterruptible power supply 4 itself or the battery is replaced with a new one, and the uninterruptible power supply 4 The usage period of may be detected.

【0114】また、請求項2対応の発明に係わる停電通
知時間調整手段は、前記実施例では寿命管理テーブル5
2から検出した無停電電源装置4の使用期間に対するバ
ックアップ可能時間XからTM停電処理時間T2を差し
引いた時間だけ遅らせたが、予めTM停電処理時間T2
を差し引い時間をバックアップ可能時間として寿命管理
テーブル52に設定することで、バックアップ可能時間
XからTM停電処理時間T2を差し引く処理を省略する
こともできる。なお、前記実施例ではSC処理時間T1
の方がTM処理時間T2よりも長いので、バックアップ
可能時間XからSC停電処理時間T1を差し引いた時間
を設定すれば、停電処理時間テーブル53を省略でき
る。
Further, the power failure notification time adjusting means according to the invention corresponding to claim 2 is the life management table 5 in the above embodiment.
Although it was delayed by the time obtained by subtracting the TM power failure processing time T2 from the backup available time X for the usage period of the uninterruptible power supply 4 detected from 2, the TM power failure processing time T2 was previously set.
By setting the subtraction time as the backup available time in the life management table 52, the process of subtracting the TM power failure processing time T2 from the backup available time X can be omitted. In the above embodiment, the SC processing time T1
Is longer than the TM processing time T2, the power failure processing time table 53 can be omitted by setting a time obtained by subtracting the SC power failure processing time T1 from the backup possible time X.

【0115】さらに、請求項3対応の発明に係わる縮退
運転実行手段は、前記実施例ではストアコントローラ3
に縮退運転テーブル54を設け、ストアコントローラ側
で縮退指定されたPOSターミナルを判別して、その縮
退指定されたPOSターミナルに対してのみ縮退運転コ
マンドを送信したが、各POSターミナル1a,1bの
それぞれに縮退指定するか否かのデータを予め設定して
おき、ストアコントローラ3のCPU31は停電信号S
1を入力したならば即座に全POSターミナル1a,1
bに対して縮退運転コマンドを送出する。一方、このコ
マンドを受信したPOSターミナルのCPU11は、自
己が縮退指定されているか否かを判別し、縮退指定され
ている場合には停電処理を行ってからダウンする。この
ように構成しても、停電発生時に縮退運転が自動的に行
われて、無停電電源装置4のバックアップ可能時間を引
き延ばすことができる。
Further, the degenerate operation executing means according to the invention corresponding to claim 3 is the store controller 3 in the above embodiment.
The degenerate operation table 54 is provided in the table, the POS terminal designated to be degenerate is discriminated on the side of the store controller, and the degenerate operation command is transmitted only to the POS terminal designated to be degenerate. Data indicating whether or not the degeneration is designated is set in advance, and the CPU 31 of the store controller 3 sets the power failure signal S
Immediately after entering 1, all POS terminals 1a, 1
Send the degenerate operation command to b. On the other hand, the CPU 11 of the POS terminal that has received this command determines whether or not it has been designated as degenerate, and if it has been designated as degenerate, it performs power outage processing and then goes down. Even with this configuration, the degenerate operation is automatically performed when a power failure occurs, and the backup available time of the uninterruptible power supply 4 can be extended.

【0116】この他、前記実施例では各POSターミナ
ル1a,1bにて停電処理が完了するとストアコントロ
ーラ3に停電処理完了報告コマンドを送信したが、スト
アコントローラ3のCPU31は、各POSターミナル
1a,1bに停電通知コマンドを送信してからTM停電
処理時間T2を充分に経過した後でかつ自己の停電処理
が完了したならば、無停電電源装置4にバックアップ停
止信号S2を送出するように構成することによって、停
電処理完了報告コマンドの送信処理を省略することも可
能である。
In addition to the above, in the above-described embodiment, when the power outage process is completed at each POS terminal 1a, 1b, the power outage process completion report command is sent to the store controller 3. After transmitting the power failure notification command to the power failure notification time T2 sufficiently, and when the power failure processing of its own is completed, a backup stop signal S2 is sent to the uninterruptible power supply 4. Accordingly, it is possible to omit the transmission processing of the power failure processing completion report command.

【0117】[0117]

【発明の効果】以上詳述したように本願請求項1対応の
発明によれば、配線の複雑化及びそれに伴うコストアッ
プを招くことなく各端末装置の停電検出回路を排除する
ことができ、端末装置の回路構成簡略化及び製造コスト
の低減を図り得、ひいてはシステム全体のコストを低減
できる効果を奏する。
As described above in detail, according to the invention according to claim 1 of the present application, it is possible to eliminate the power failure detection circuit of each terminal device without causing the wiring to be complicated and resulting in an increase in cost. The circuit configuration of the device can be simplified and the manufacturing cost can be reduced, and the cost of the entire system can be reduced.

【0118】また本願請求項2対応の発明によれば、前
記請求項1対応の発明の効果に加えて、商用交流電源に
停電が発生しても無停電電源装置の能力を有効に活用し
て各端末装置での停電処理を最大限まで遅らせることが
でき、システムの稼働効率向上を図り得る効果を奏す
る。
Further, according to the invention corresponding to claim 2 of the present application, in addition to the effect of the invention corresponding to claim 1, the capacity of the uninterruptible power supply is effectively utilized even if a power failure occurs in the commercial AC power supply. The power outage process in each terminal device can be delayed to the maximum extent, and the operation efficiency of the system can be improved.

【0119】さらに本願請求項3対応の発明によれば、
前記請求項1対応の発明の効果に加えて、商用交流電源
に停電が発生したときには自動的にかつ速やかに縮退運
転に切替えることができ、システム管理者の負担になる
ことなく無停電電源装置によるバックアップ可能時間を
引き延ばすことで、システムの稼働効率を向上できる効
果を奏する。
Further, according to the invention corresponding to claim 3 of the present application,
In addition to the effect of the invention corresponding to claim 1, when a power failure occurs in the commercial AC power supply, the operation can be automatically and promptly switched to the degenerate operation, and the uninterruptible power supply is provided without burdening the system administrator. By extending the backup time, it is possible to improve the operating efficiency of the system.

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

【図1】 本発明の一実施例であるPOSシステムの概
要図。
FIG. 1 is a schematic diagram of a POS system that is an embodiment of the present invention.

【図2】 同実施例におけるPOSターミナルの要部ブ
ロック図。
FIG. 2 is a block diagram of a main part of a POS terminal in the same embodiment.

【図3】 同実施例におけるストアコントローラの要部
ブロック図。
FIG. 3 is a block diagram of a main part of a store controller in the embodiment.

【図4】 同実施例におけるストアコントローラのS−
RAM領域に形成される主要なメモリエリアを示す図。
FIG. 4 is an S- of the store controller in the embodiment.
FIG. 3 is a diagram showing a main memory area formed in a RAM area.

【図5】 同実施例におけるストアコントローラのCP
Uが実行する停電信号割込み処理の一部を示す流れ図。
FIG. 5 is a CP of the store controller in the same embodiment.
The flowchart which shows a part of power failure signal interruption process which U performs.

【図6】 前記停電信号割込み処理の別の一部を示す
図。
FIG. 6 is a diagram showing another part of the power failure signal interrupt processing.

【図7】 前記停電信号割込み処理のさらに別の一部を
示す図。
FIG. 7 is a diagram showing still another part of the power failure signal interrupt processing.

【図8】 同実施例におけるPOSターミナルのCPU
が実行する停電通知コマンド受信処理を示す流れ図。
FIG. 8 is a CPU of the POS terminal in the same embodiment.
5 is a flowchart showing a power failure notification command reception process executed by the computer.

【図9】 無停電電源装置の使用期間に対するバッテリ
容量及びバックアップ可能時間の特性図。
FIG. 9 is a characteristic diagram of the battery capacity and the backup available time with respect to the usage period of the uninterruptible power supply.

【図10】停電発生時における電源電圧のレベル低下特
性を示す図。
FIG. 10 is a diagram showing the characteristic of the level reduction of the power supply voltage when a power failure occurs.

【図11】従来のPOSターミナルに搭載された停電処
理プログラムの要部を示す流れ図。
FIG. 11 is a flowchart showing a main part of a power failure processing program installed in a conventional POS terminal.

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

1a,1b…POSターミナル(端末装置) 2…通信回線 3…ストアコントローラ(ホスト装置) 4…無停電電源装置 11,31…CPU 52…寿命管理テーブル 54…縮退運転テーブル 1a, 1b ... POS terminal (terminal device) 2 ... Communication line 3 ... Store controller (host device) 4 ... Uninterruptible power supply 11, 31 ... CPU 52 ... Life management table 54 ... Degenerate operation table

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 17/60 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location G06F 17/60

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 停電検知に応動してプロセッサ内のレジ
スタ値等を電源断時にもデータ保持可能な記憶部にセー
ブする停電処理機能をそれぞれ有する複数台の端末装置
と、これらの端末装置を通信回線で接続し、各端末装置
にて登録されたデータを前記通信回線を用いて収集し加
工するホスト装置とからなり、前記ホスト装置及び各端
末装置に無停電電源装置から電力を供給するデータ処理
システムにおいて、 前記ホスト装置は、前記無停電電源装置から停電検知時
に送出される停電信号を入力する停電信号入力手段と、
この入力手段により前記停電信号を入力すると前記通信
回線を用いて前記各端末装置に停電通知コマンドを送信
する停電通知手段とを具備し、 前記各端末装置は、前記通信回線を介して伝送される前
記停電通知コマンドを受信するコマンド受信手段と、こ
の受信手段により前記停電通知コマンドを受信すると前
記停電処理を実行する停電処理手段とを具備したことを
特徴とするデータ処理システムにおける停電処理装置。
1. A plurality of terminal devices each having a power failure processing function for saving register values and the like in a processor in a storage unit capable of holding data even when power is cut off in response to power failure detection, and communication between these terminal devices. A data processing for connecting to a line and a host device for collecting and processing data registered by each terminal device using the communication line, and supplying power from the uninterruptible power supply to the host device and each terminal device. In the system, the host device, a power failure signal input means for inputting a power failure signal sent from the uninterruptible power supply device when a power failure is detected,
And a power failure notification means for transmitting a power failure notification command to each of the terminal devices by using the communication line when the power failure signal is input by the input means, and each of the terminal devices is transmitted through the communication line. A power failure processing device in a data processing system, comprising: a command receiving means for receiving the power failure notification command; and a power failure processing means for executing the power failure processing when the receiving means receives the power failure notification command.
【請求項2】 前記ホスト装置は、前記無停電電源装置
の使用期間に対するバックアップ可能時間を予め設定記
憶する寿命管理テーブルと、前記無停電電源装置の使用
期間を検出する使用期間検出手段と、前記停電信号入力
手段により前記停電信号を入力すると前記使用期間検出
手段によって検出される前記無停電電源装置の使用期間
から前記寿命管理テーブルを検索して前記無停電電源装
置のバックアップ可能時間を決定するバックアップ可能
時間決定手段と、この決定手段により決定されたバック
アップ可能時間に応じて前記停電通知手段による前記停
電通知コマンドの送信開始を遅延させる停電通知時間調
整手段とを具備したことを特徴とする請求項1記載のデ
ータ処理システムにおける停電処理装置。
2. The host device includes a life management table that presets and stores a backup available time for a period of use of the uninterruptible power supply, a period-of-use detection unit that detects a period of use of the uninterruptible power supply, and Backup for determining the backup available time of the uninterruptible power supply by searching the life management table from the usage period of the uninterruptible power supply detected by the usage period detection means when the power failure signal is input by the power failure signal input means It is provided with a possible time determining means and a power failure notification time adjusting means for delaying the start of transmission of the power failure notification command by the power failure notification means according to the backup possible time determined by the determining means. A power failure processing device in the data processing system according to 1.
【請求項3】 前記ホスト装置は、前記停電信号入力手
段により前記停電信号を入力すると前記各端末装置のう
ちの予め選択された一部の端末装置を電源断状態にする
縮退運転コマンドを前記通信回線を介して送信する縮退
運転実行手段と、縮退運転時における前記無停電電源装
置のバックアップ可能時間に応じて前記停電通知手段に
よる前記停電通知コマンドの送信開始を遅延させる停電
通知時間調整手段とを具備し、 前記各端末装置は、前記通信回線を介して伝送される前
記縮退運転コマンドを受信するコマンド受信手段と、こ
のコマンド受信手段により前記縮退運転コマンドを受信
すると前記停電処理を実行した後に電源を停止する電源
停止手段とを具備したことを特徴とする請求項1記載の
データ処理システムにおける停電処理装置。
3. The host device, when the power failure signal is input by the power failure signal input means, issues a degenerate operation command for powering off a part of preselected terminal devices among the terminal devices by the communication. Degenerate operation executing means for transmitting via the line, and a power failure notification time adjusting means for delaying the transmission start of the power failure notification command by the power failure notification means according to the backup available time of the uninterruptible power supply during the degenerate operation. Each of the terminal devices includes a command receiving unit that receives the degenerate operation command transmitted through the communication line, and a power supply after executing the power failure process when the command receiving unit receives the degenerate operation command. 2. A power failure processing device in a data processing system according to claim 1, further comprising a power supply stopping means for stopping the power supply.
JP1854594A 1994-02-15 1994-02-15 Power failure processor for data processing system Pending JPH07225721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1854594A JPH07225721A (en) 1994-02-15 1994-02-15 Power failure processor for data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1854594A JPH07225721A (en) 1994-02-15 1994-02-15 Power failure processor for data processing system

Publications (1)

Publication Number Publication Date
JPH07225721A true JPH07225721A (en) 1995-08-22

Family

ID=11974613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1854594A Pending JPH07225721A (en) 1994-02-15 1994-02-15 Power failure processor for data processing system

Country Status (1)

Country Link
JP (1) JPH07225721A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1027043A (en) * 1996-07-09 1998-01-27 I S A:Kk Start/stop controller having network function
JP2009290949A (en) * 2008-05-28 2009-12-10 Nec Fielding Ltd Power managing system, uninterruptible power supply unit, and method and program for estimating power trend
JP2011039685A (en) * 2009-08-07 2011-02-24 Toshiba Tec Corp Information processor and control program thereof
JP2014124809A (en) * 2012-12-25 2014-07-07 Canon Inc Image formation device, control method thereof, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1027043A (en) * 1996-07-09 1998-01-27 I S A:Kk Start/stop controller having network function
JP2009290949A (en) * 2008-05-28 2009-12-10 Nec Fielding Ltd Power managing system, uninterruptible power supply unit, and method and program for estimating power trend
JP4710059B2 (en) * 2008-05-28 2011-06-29 Necフィールディング株式会社 Power management system, uninterruptible power supply, power management method, power trend prediction method, and power trend prediction program
JP2011039685A (en) * 2009-08-07 2011-02-24 Toshiba Tec Corp Information processor and control program thereof
JP2014124809A (en) * 2012-12-25 2014-07-07 Canon Inc Image formation device, control method thereof, and program

Similar Documents

Publication Publication Date Title
US7203846B2 (en) System and method for intelligent control of power consumption of distributed services during periods of reduced load
US6957353B2 (en) System and method for providing minimal power-consuming redundant computing hardware for distributed services
EP1416381B1 (en) System and method for preserving state data of a personal computer in a standby state in the event of an ac power failure
US6691248B1 (en) Method and apparatus for controlling supply of power, and storage medium
US20030084359A1 (en) System and method for intelligent control of power consumption of distributed services during periods when power consumption must be reduced
US6470358B1 (en) Remote synchronization with intelligent power management
US5825100A (en) Intelligent battery power system
JP2760787B2 (en) Operation control device for electronic computer system
US20020138772A1 (en) Battery management system employing software controls upon power failure to estimate battery duration based on battery/equipment profiles and real-time battery usage
JPH08503566A (en) Method for automatically reducing power consumption of computer equipment
JPH07225721A (en) Power failure processor for data processing system
JPH0612153A (en) Programmable controller
CN105957275A (en) POS system power failure protection system and on-site recovery method
JPH11191026A (en) Device and method for discriminating power source and hardware faults
JP2001034370A (en) Power-saving controller, power-saving control method, and computer system
JP3718926B2 (en) Data processing device
CN113885689A (en) Power supply control method, system, terminal and storage medium for whole cabinet server
JPH10225009A (en) Device for processing data with function protecting secondary cell and program for the device
JP2002108515A (en) Electronic apparatus and storage medium
JP7396520B2 (en) Sales data processing system
JP2002032866A (en) Control system for sales data
JPH07219688A (en) Data processor
JPH04153810A (en) Abnormality processing system
JPH07160374A (en) Data processor
KR20050112171A (en) Method for storing data using battery in computer and apparatus thereof