JP2917381B2 - Power interruption processing device - Google Patents

Power interruption processing device

Info

Publication number
JP2917381B2
JP2917381B2 JP2081752A JP8175290A JP2917381B2 JP 2917381 B2 JP2917381 B2 JP 2917381B2 JP 2081752 A JP2081752 A JP 2081752A JP 8175290 A JP8175290 A JP 8175290A JP 2917381 B2 JP2917381 B2 JP 2917381B2
Authority
JP
Japan
Prior art keywords
power supply
communication
processing
auxiliary power
series
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 - Fee Related
Application number
JP2081752A
Other languages
Japanese (ja)
Other versions
JPH03280117A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP2081752A priority Critical patent/JP2917381B2/en
Publication of JPH03280117A publication Critical patent/JPH03280117A/en
Application granted granted Critical
Publication of JP2917381B2 publication Critical patent/JP2917381B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、通信制御装置への電源供給が断たれた場
合の処理に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a process when power supply to a communication control device is cut off.

[従来の技術] 販売時点情報管理システム(POS)の端末や、銀行の
現金自動支払い機(CD)等は、ホストコンピュータ等に
接続されて動作を行うようになっている。このようなPO
S端末やCD端末等の下位機器とホストコンピュータ等の
上位機器とのデータ通信の制御を行うものが通信制御装
置である。
[Prior Art] A terminal of a point-of-sale information system (POS), an automatic teller machine (CD) of a bank, and the like are connected to a host computer or the like to operate. PO like this
A communication control device controls data communication between a lower device such as an S terminal or a CD terminal and a higher device such as a host computer.

第4図に、通信制御装置を用いたシステムの構成図を
示す。公衆回線や専用回線等の回線網2を介して、ホス
トコンピュータ4、通信制御装置6が互いに接続されて
いる。各通信制御装置6には、ライン8が接続されてお
り、POSやCD等の端末10とともに、それぞれのローカル
エリアネットワーク(LAN)を構成している。
FIG. 4 shows a configuration diagram of a system using the communication control device. A host computer 4 and a communication control device 6 are connected to each other via a network 2 such as a public line or a dedicated line. A line 8 is connected to each communication control device 6, and together with a terminal 10 such as a POS or a CD, constitutes a local area network (LAN).

通信制御装置の役割は、端末10から送られてくるデー
タをホストコンピュータ4に送ったり、ホストコンピュ
ータ4からのデータを端末10に送ったりすることであ
る。例えば、CD端末10から暗証番号データが入力される
と、通信制御装置6はこれを受け取り、通信網2を介し
てホストコンピュータ4に送る。暗証番号データを受け
取ったホストコンピュータ4は、暗証番号の適否を確認
し、結果データを当該通信制御装置6に送り返す。通信
制御装置6は、この結果データを暗証番号データが送ら
れてきたCD端末10に送り返す。上記のようにして一連の
データ通信が完了する。
The role of the communication control device is to send data sent from the terminal 10 to the host computer 4 and to send data from the host computer 4 to the terminal 10. For example, when personal identification number data is input from the CD terminal 10, the communication control device 6 receives it and sends it to the host computer 4 via the communication network 2. The host computer 4 that has received the personal identification number data confirms the suitability of the personal identification number, and sends the result data back to the communication control device 6. The communication control device 6 sends the result data back to the CD terminal 10 to which the personal identification number data has been sent. A series of data communication is completed as described above.

[発明が解決しようとする課題] ところで、従来の技術においては、次のような問題点
があった。
[Problems to be Solved by the Invention] The conventional technology has the following problems.

停電等により、通信制御装置に外部からの電源供給が
無くなると、処理を停止しなければならない。停電が一
連のデータ通信の途中で起こった場合には、電源復帰の
際に、処理が完了していない旨のエラーが表示されるこ
ととなった。したがって、データ通信処理を再開するに
は、エラーを解除する必要があった。すなわち、電源復
帰後も直ちにデータ通信処理を再開することができなか
った。
If there is no external power supply to the communication control device due to a power failure or the like, the process must be stopped. If a power failure occurs in the middle of a series of data communications, an error indicating that the processing is not completed is displayed when the power is restored. Therefore, in order to restart the data communication process, it was necessary to clear the error. That is, the data communication process cannot be restarted immediately after the power is restored.

また、無停電電源等の補助電源を備えており、外部か
らの電源供給が断たれた時にも電力を供給し得るように
したものもある。しかしながら、この補助電源は、ハー
ドディスク等へのアクセス時に停電が生じた場合に、該
アクセスが終了するまで電源を保持してデータ破壊を防
止するために設けられたものである。すなわち、この補
助電源の電源保持時間は比較的短いものである。したが
って、この補助電源によって通信制御装置を動作させる
ようにしても、動作可能な時間は短いものである。この
ため、補助電源は、通信制御装置全体の動作を行うため
には用いられていなかった。すなわち、補助電源が設け
られている場合であっても処理を続行することはでき
ず、補助電源が設けられていない場合と同様の問題を生
じていた。
There is also an auxiliary power supply such as an uninterruptible power supply, which can supply power even when power supply from the outside is cut off. However, this auxiliary power supply is provided in order to prevent data destruction by holding the power supply until the access is completed when a power failure occurs during access to a hard disk or the like. That is, the power supply holding time of the auxiliary power supply is relatively short. Therefore, even if the communication control device is operated by this auxiliary power supply, the operable time is short. For this reason, the auxiliary power supply has not been used for performing the operation of the entire communication control device. That is, even when the auxiliary power supply is provided, the processing cannot be continued, and the same problem as that when the auxiliary power supply is not provided has occurred.

この発明は、上記のような問題点を解決して、外部か
らの電源供給が断たれた場合にも、一連のデータ通信が
終了した状態で動作を停止するようにした電断処理方式
を提供することを目的とする。
The present invention solves the above-mentioned problems, and provides an electric power interruption processing method in which, even when an external power supply is interrupted, the operation is stopped after a series of data communication is completed. The purpose is to do.

[課題を解決するための手段] 請求項1の電断処理装置は、 外部からの電力供給が断たれた時、所定の保持時間の
間、外部電力と同等の電力を供給する補助電源を備えて
おり、下位機器と上位機器との間のデータ通信を制御す
る通信制御に用いる電断処理装置であって、 一連のデータ通信が開始された時に通信処理中である
ことを記憶し、 当該一連のデータ通信が終了した時に通信処理中でな
いことを記憶するようにして、 外部からの電源供給が断たれた時に、通信処理中であ
るか否かを確認し、下記(a)または(b)の処理を行
うことを特徴としている、 (a)通信処理中であれば、補助電源の電力供給によ
って通信制御装置を動作させ、補助電源による保持時間
が経過するまでに通信処理中でなくなれば停止処理を行
い、補助電源による保持時間が経過するまで通信処理中
のままであれば保持時間経過とともに停止処理を行い、 (b)通信処理中でなければ、直ちに停止処理を行
う。
[Means for Solving the Problems] The power interruption processing device according to claim 1 includes an auxiliary power supply that supplies power equivalent to external power for a predetermined holding time when power supply from outside is cut off. A power interruption processing device used for communication control for controlling data communication between a lower-level device and a higher-level device, and stores that a communication process is being performed when a series of data communication is started. When the power supply from the outside is cut off, it is confirmed whether or not the communication process is being performed by storing the fact that the communication process is not being performed when the data communication is completed, and the following (a) or (b) (A) If the communication processing is being performed, the communication control device is operated by supplying the power of the auxiliary power supply, and if the communication processing is not being performed until the holding time by the auxiliary power supply elapses, the operation is stopped. Perform processing and auxiliary power Together with the holding time if left in the communication process until the retention time due elapses performs stop processing, if not in (b) the communication processing immediately stop processing is carried out.

請求項2の電断処理装置は、 外部からの電源供給が断たれた時に、補助電源の有無
を確認し、補助電源が備えられていない場合には直ちに
停止処理を行い、補助電源が備えられている場合には、
通信処理中であるか否かを確認し、下記(a)または
(b)の処理を行うことを特徴としている、 (a)通信処理中であれば、補助電源の電力供給によ
って通信制御装置を動作させ、補助電源による保持時間
が経過するまでに通信処理中でなくなれば停止処理を行
い、補助電源による保持時間が経過するまで通信処理中
のままであれば保持時間経過とともに停止処理を行い、 (b)通信処理中でなければ、直ちに停止処理を行
う。
The power interruption processing device according to claim 2 confirms the presence or absence of the auxiliary power when the external power supply is cut off, and immediately executes the stop processing if the auxiliary power is not provided, so that the auxiliary power is provided. If you have
It is characterized in that whether or not communication processing is being performed is performed and the following processing (a) or (b) is performed. (A) If communication processing is being performed, the communication control device is activated by supplying power from the auxiliary power supply. Operate and perform stop processing if the communication processing is not performed before the holding time by the auxiliary power supply elapses, and perform the stop processing with the elapse of the holding time if the communication processing is continued until the holding time by the auxiliary power supply elapses. (B) If communication processing is not being performed, stop processing is immediately performed.

請求項3の電断処理装置は、 外部電源および補助電源の双方からの電力供給が無く
なっても上記通信処理中であるか否かの記憶を可能と
し、 外部電源再投入時に、当該記憶内容によって、一連の
データ通信の途中で停止処理が行われたものであること
を認識することを特徴としている。
The power interruption processing device according to claim 3 enables the storage of whether or not the communication process is being performed even when the power supply from both the external power supply and the auxiliary power supply is lost. It is characterized by recognizing that the stop processing was performed during a series of data communication.

[作用] 請求項1に係る電断処理装置においては、外部からの
電力供給が断たれた時に、通信処理中であるか否かを判
断するようにしている。通信処理中であれば、補助電源
の電力供給によって通信制御を行い、現在処理中であっ
た一連のデータ通信の処理を継続する。したがって、処
理中の一連のデータ通信を終了させることができる。な
お、補助電源による保持時間が経過するまでに処理が完
了しなかった場合には、通信処理中であることを記憶し
たままにして保持時間経過により停止処理を行う。
[Operation] In the power interruption processing device according to the first aspect, when power supply from the outside is interrupted, it is determined whether or not communication processing is being performed. If the communication process is being performed, communication control is performed by power supply from the auxiliary power supply, and a series of data communication processes that are currently being processed are continued. Therefore, a series of data communication in process can be terminated. If the processing is not completed before the holding time by the auxiliary power supply has elapsed, the fact that the communication processing is being performed is kept stored, and the stop processing is performed when the holding time has elapsed.

請求項2に係る電断処理装置においては、外部からの
電源供給が断たれたときに、補助電源の有無を確認する
ようにしている。補助電源が備えられていない場合には
直ちに停止処理を行い、補助電源が備えられている場合
には、上記と同様の処理を行う。したがって、補助電源
を有する通信制御装置と補助電源の無い通信制御装置と
が混在するシステムにおいても用いることができる。
In the power interruption processing device according to the second aspect, when the power supply from the outside is cut off, the presence or absence of the auxiliary power supply is checked. If the auxiliary power supply is not provided, the stop processing is immediately performed. If the auxiliary power supply is provided, the same processing as described above is performed. Therefore, the present invention can be used in a system in which a communication control device having an auxiliary power supply and a communication control device having no auxiliary power supply coexist.

請求項3に係る電断処理装置においては、外部電源お
よび補助電源の双方からの電力供給が無くなっても通信
処理中であるか否かの記憶を可能としている。したがっ
て、外部電源再投入時に、通信処理中であることの記憶
内容に基づいて、一連のデータ通信の途中で停止処理が
行われたものであることを認識することができる。
In the power interruption processing device according to the third aspect, it is possible to store whether or not communication processing is being performed even when power supply from both the external power supply and the auxiliary power supply is lost. Therefore, when the external power supply is turned on again, it is possible to recognize that the stop processing has been performed in the middle of a series of data communication based on the stored content that the communication processing is being performed.

[実施例] 通信制御装置を用いたシステムの一例を、第4図に示
す。公衆回線や専用回線等の回線網2を介して、ホスト
コンピュータ4、通信制御装置6が互いに接続されてい
る。各通信制御装置6には、ライン8が接続されてお
り、POSやCD等の端末10とともに、それぞれのローカル
エリアネットワーク(LAN)を構成している。
Embodiment An example of a system using a communication control device is shown in FIG. A host computer 4 and a communication control device 6 are connected to each other via a network 2 such as a public line or a dedicated line. A line 8 is connected to each communication control device 6, and together with a terminal 10 such as a POS or a CD, constitutes a local area network (LAN).

第3図に、この発明の一実施例による電断処理装置を
用いた通信制御装置6のハードウエア構成を示す。バス
ライン22(データラインおよび制御ライン)には、メモ
リ23、バックアップメモリ24、ハードディスク制御回路
26、通信回路28、LAN制御回路30、フロッピィディスク
ドライブ制御回路32が接続されている。CPU20は、メモ
リ23に格納されたプログラムに従って、各部を制御す
る。
FIG. 3 shows a hardware configuration of the communication control device 6 using the power interruption processing device according to one embodiment of the present invention. The bus 23 (data line and control line) includes a memory 23, a backup memory 24, and a hard disk control circuit.
26, a communication circuit 28, a LAN control circuit 30, and a floppy disk drive control circuit 32 are connected. The CPU 20 controls each unit according to a program stored in the memory 23.

バックアップメモリ24は、バッテリ等によりバックア
ップされており、電源が切れてもその内容を保持するこ
とが可能である。ハードディスク制御回路26は、ハード
ディスク34へのデータの書き込みや読み出しを制御する
ものである。通信回路28は、通信網2とのデータ通信を
行うための回路である。LAN制御回路30は、LAN8によっ
て接続された端末10とのデータ通信を行うための回路で
ある。FDD制御回路32は、フロッピィディスクドライブ3
6を制御して、フロッピィディスク(図示せず)へのデ
ータの書き込みや読み出しを行うためのものである。
The backup memory 24 is backed up by a battery or the like, and can retain its contents even when the power is turned off. The hard disk control circuit 26 controls writing and reading of data to and from the hard disk 34. The communication circuit 28 is a circuit for performing data communication with the communication network 2. The LAN control circuit 30 is a circuit for performing data communication with the terminal 10 connected by the LAN 8. The FDD control circuit 32 is connected to the floppy disk drive 3
6 for writing and reading data to and from a floppy disk (not shown).

各部動作のための電源は、商用交流100VをDC電源回路
44によって所定電圧の直流にして得ている。この実施例
では、補助電源として無停電電源40が設けられており、
外部電源である商用交流100Vが切れた場合にも、電源を
供給できるようにしている。無停電電源40が設けられて
いるか否かをCPU20が知ることができるように、ディッ
プスイッチSW1が設けられている。CPU20は、入力ポート
PAがローレベルであれば無停電電源40が備えられている
ものと判断し、ハイレベルであれば無停電電源40が備え
られていないものと判断する。第3図に示す通信制御装
置は、無停電電源40が設けられているので、ディップス
イッチSW1をオフにして、入力ポートPAをローレベルと
している。
The power supply for operation of each part is a commercial power supply of 100 V DC power supply circuit.
It is obtained as a predetermined voltage DC by 44. In this embodiment, an uninterruptible power supply 40 is provided as an auxiliary power supply,
Even when the commercial AC 100V, which is an external power supply, is cut off, power can be supplied. Whether uninterruptible power supply 40 is provided to be able to know that CPU 20, a dip switch SW 1 is provided. CPU20 is an input port
If PA is at a low level, it is determined that the uninterruptible power supply 40 is provided, and if it is at a high level, it is determined that the uninterruptible power supply 40 is not provided. Communication control device shown in FIG. 3, since the uninterruptible power supply 40 is provided, turn off the DIP switch SW 1, has an input port PA to the low level.

この実施例においては、電断検知回路42が設けられて
おり、商用電源の停電を検出して、CPU20の割込みポー
トPIに電断信号を与える。
In this embodiment, a power failure detection circuit 42 is provided, which detects a power failure of a commercial power supply and supplies a power failure signal to an interrupt port PI of the CPU 20.

次に、電断が生じた場合の処理を第1図、第2図を用
いて説明する。第1図、第2図は、メモリ23に記憶され
ているプログラムのフローチャートである。まず、電源
が投入されるとCPU20は、取引中フラグがオンであるか
否かを判断する(ステップS1)。電源投入の際には、通
常、取引フラグはオフであるので、ステップS4へ進む。
なお、取引フラグについては、後述する。
Next, a process in the event of a power interruption will be described with reference to FIGS. 1 and 2 are flowcharts of the programs stored in the memory 23. First, when the power is turned on, the CPU 20 determines whether or not the trading flag is on (step S 1 ). During power-up, usually, since transaction flag is off, the process proceeds to step S 4.
The transaction flag will be described later.

次に、CPU20は、端末10からの電文(上り電文とい
う)を受信したかどうかを、LAN制御回路30に問い合せ
る(ステップS4)。端末からの上り電文が無ければ、再
びステップS4を実行する。すなわち、上り電文があるま
で待機する。
Then, CPU 20 may whether it has received the message (called uplink message) from the terminal 10 inquires to the LAN control circuit 30 (step S 4). Without uplink message from the terminal, performs step S 4 again. That is, the process waits until there is an upstream message.

端末10からの上り電文を受信すると、CPU20は、処理
中フラグである取引フラグをオンにする(ステップ
S5)。すなわち、取引のためのデータ通信中であること
を明らかにする。なお、取引フラグは、バックアップメ
モリ24に記憶される。
Upon receiving the upstream message from the terminal 10, the CPU 20 turns on the transaction flag which is a processing flag (step
S 5). That is, it is clarified that the data communication for the transaction is being performed. Note that the transaction flag is stored in the backup memory 24.

受信された上り電文を、そのままホストコンピュータ
4に送る場合には、通信回路28を介して伝送する。ま
た、上り電文の内容を見て、それに対応するデータを送
る必要がある場合もある。例えば、上り電文が商品コー
ドである場合に、これに対応する商品価格をハードディ
スク34の価格ファイルより検索して送る場合などであ
る。この場合には、価格データ等を検索した後、通信回
路28を介してホストコンピュータ4に送る。
When the received upstream message is sent to the host computer 4 as it is, the message is transmitted via the communication circuit 28. In some cases, it is necessary to look at the contents of an upstream message and send the corresponding data. For example, when the upstream message is a product code, the corresponding product price is retrieved from the price file on the hard disk 34 and sent. In this case, after searching the price data and the like, the data is sent to the host computer 4 via the communication circuit 28.

上り電文を受け取ったホストコンピュータ4は、デー
タ処理を行った後、処理結果や電文受信確認を送り返し
てくる。これを下り電文という。下り電文には、どの通
信制御装置6に対するものであるかの番号等が付されて
いるので、先程の上り電文を送った通信制御装置6のみ
が、これを受け取ることができる。下り電文を受け取っ
た通信制御装置6は、LAN制御回路30を通じて、先程上
り電文を発した端末10に、送り返す。この下り電文を受
け取ることにより、端末10は上り電文として送ったデー
タに対するホストコンピュータ4の応答内容を知ること
ができる。例えば、端末10から暗証番号を上り電文とし
て送った場合には、その適否がホストコンピュータ4よ
り下り電文として送り返されてくる。下り電文を受け取
った端末10は、LAN8を通じて、通信制御装置6に下り電
文受信の確認信号を送る。確認信号を受け取った通信制
御装置6は、上記一連の処理が終ったものとして取引中
フラグをオフにする(ステップS7)。
The host computer 4 that has received the upstream message performs data processing and then returns a processing result and a message reception confirmation. This is called a down message. Since the downlink message has a number indicating which communication control device 6 it is for, only the communication control device 6 that has sent the upstream message can receive it. The communication control device 6 that has received the downstream telegram returns it to the terminal 10 that has just generated the upstream telegram via the LAN control circuit 30. Receiving this downlink message allows the terminal 10 to know the response content of the host computer 4 to the data sent as the uplink message. For example, when the personal identification number is transmitted from the terminal 10 as an upward telegram, the propriety is returned from the host computer 4 as a downward telegram. The terminal 10 that has received the downlink message transmits a confirmation message of reception of the downlink message to the communication control device 6 via the LAN 8. Communication control device 6 that has received the confirmation signal turns off the transaction flag as the series of processing is finished (Step S 7).

以上の動作を繰り返して、データ通信処理が行われ
る。
The data communication process is performed by repeating the above operation.

次に、停電等により外部からの電源供給が断たれた場
合(電断)の処理について説明する。電断になると、無
停電電源40が動作して各部に電力を供給し、通信制御装
置を動作可能に保持する。この無停電電源40により、ハ
ードディスク34やフロッピィディスクのアクセス中に電
断が生じても、これらの継続動作が可能となるので、デ
ータが破壊されることが無くなる。さらに、この実施例
では、無停電電源40の電力により、CPU20が動作可能と
なっている。
Next, a process performed when power supply from the outside is cut off (power cutoff) due to a power failure or the like will be described. When a power failure occurs, the uninterruptible power supply 40 operates to supply power to each unit, and keep the communication control device operable. With the uninterruptible power supply 40, even if a power failure occurs during access to the hard disk 34 or the floppy disk, these operations can be continued, so that data is not destroyed. Further, in this embodiment, the CPU 20 can be operated by the power of the uninterruptible power supply 40.

電断が生じると、上記のように無停電電源40が動作す
ると共に、電断検知回路42が電断を検知して検知出力を
出す。この検知出力は、CPU20の割込みポートPIに与え
られる。CPU20は、検知出力を割込みポートPIに受け取
ると、割込みプログラムを実行する。すなわち、第2図
に示すプログラムを割込みによって実行する。
When a power failure occurs, the uninterruptible power supply 40 operates as described above, and the power failure detection circuit 42 detects the power failure and outputs a detection output. This detection output is given to the interrupt port PI of the CPU 20. When receiving the detection output at the interrupt port PI, the CPU 20 executes the interrupt program. That is, the program shown in FIG. 2 is executed by interruption.

まずステップS10において、CPU20は、入力ポートPAに
より、無停電電源40が備えられているか否かを判断す
る。無停電電源40が備えられていない場合には、処理の
続行が不可能であるため、直ちにステップS14を実行
し、装置全体を停止させる。
First, in step S 10, CPU 20 is an input port PA, it is determined whether the uninterruptible power supply 40 is provided. If the uninterruptible power supply 40 is not provided, since it is impossible to continue the treatment, immediately executes step S 14, stops the entire apparatus.

無停電電源40が備えられている場合には、取引中グラ
フの状態を確認する(ステップS11)。取引中フラグが
オフであれば、取引処理が完了した状態で電源が生じた
ものと判断できる。したがって、この場合には、ステッ
プS14において、直ちに停止処理を行う。
If the uninterruptible power supply 40 are provided, it traded in to check the status of the graph (step S 11). If the in-transaction flag is off, it can be determined that power has been generated in a state where the transaction processing has been completed. Therefore, in this case, in step S 14, immediately performs stop processing.

取引中フラグがオンであれば、取引処理の途中で電断
が生じたものと判断できる。この場合には、所定時間だ
け割込みを中断し、第1図のメインプログラムを実行す
る(ステップS12)。すなわち、メインプログラムのス
テップS6が所定時間だけ実行される。この間に、電断時
に行っていた一連の取引が終了すると、取引中フラグが
オフとなる(ステップS7)。
If the in-transaction flag is on, it can be determined that a power interruption has occurred during the transaction processing. In this case, it interrupts the interrupt predetermined time, executes the main program of FIG. 1 (step S 12). In other words, Step S 6 of the main program is executed for a predetermined time. During this time, when a series of transactions that have been carried out at the time of power interruption is completed, the transaction flag is turned off (step S 7).

所定時間が経過すると、再び第2図の割込み処理に戻
る。そして、ステップS13を経てステップS13を実行し、
フラグの状態を再び判断する。ここで、取引中フラグが
オンに変っていれば、ステップS14の停止処理を行う。
依然として取引中フラグがオフであれば、再度、ステッ
プS12を実行する。このようにして、取引中フラグがオ
フになるまで(取引が完了するまで)、無停電電源40に
よる動作を続ける。
After the lapse of the predetermined time, the process returns to the interrupt processing of FIG. Then, perform the steps S 13 through step S 13,
The state of the flag is determined again. Here, if the in-transaction flag has been turned on, a stop process in step S14 is performed.
Still transaction flag is off, again executes step S 12. In this way, the operation by the uninterruptible power supply 40 is continued until the transaction flag is turned off (until the transaction is completed).

なお、無停電電源40の保持時間が経過すれば、取引中
フラグがオンであっても、停止処理を行う(ステップS
13)。無停電電源40が保持可能であるか否かは、無停電
電源40の出力電圧を検出するか、予め定められた保持時
間の経過を計測する等により知ることができる。
Note that if the holding time of the uninterruptible power supply 40 has elapsed, a stop process is performed even if the transaction flag is on (step S
13 ). Whether or not the uninterruptible power supply 40 can be held can be known by detecting the output voltage of the uninterruptible power supply 40 or measuring the elapse of a predetermined holding time.

その後、外部電源が復帰した時の動作は、次のとおり
である。まず、電源が投入されると、取引中フラグの状
態を確認する(第1図ステップS1)。取引中フラグは、
バックアップメモリ24に記憶されているので、外部電
源、無停電電源40双方の電力供給が無くなっても、消失
すること無く保持されている。取引中フラグがオフであ
れば、未完の取引は無いので、ステップS4以下の通常動
作に移る。
Thereafter, the operation when the external power supply is restored is as follows. First, when the power is turned on, the state of the transaction flag is checked (step S 1 in FIG. 1 ). The trading flag is
Since the power is stored in the backup memory 24, even if the power supply to both the external power supply and the uninterruptible power supply 40 is lost, the power is maintained without being lost. If transaction flag is off, since the unfinished transaction is not, proceeds to the following normal operation step S 4.

上記のように、この実施例では、電断時に無停電電源
40を用いて通信制御装置を動作させ、取引を終了させて
から装置の停止を行うようにしている。したがって、外
部電源が復帰した時に、取引フラグがオフになってお
り、直ちに取引処理を開始することができる。
As described above, in this embodiment, the uninterruptible power supply
The communication control device is operated by using 40, and after the transaction is completed, the device is stopped. Therefore, when the external power supply returns, the transaction flag is turned off, and transaction processing can be started immediately.

なお、無停電電源40が設けられていない場合や、無停
電電源40の保持時間中に取引が完了しなかった場合に
は、取引中フラグはオンとなっている。この場合には、
未完の取引がある旨のエラーを表示して(ステップ
S2)、エラーのリカバリー処理を行う(ステップS3)。
In addition, when the uninterruptible power supply 40 is not provided, or when the transaction is not completed during the holding time of the uninterruptible power supply 40, the in-transaction flag is on. In this case,
Display an error stating that there are unfinished transactions (step
S 2), performs the recovery process of the error (Step S 3).

なお、上記実施例では、無停電電源40の有無を判断す
るようにしている(第2図ステップS10)。したがっ
て、全ての通信制御装置6に無停電電源40が設けられて
いない場合であっても、共通のプログラムを使用するこ
とができる。また、無停電電源40の設置の有無を変更し
た場合にも、対応が容易である。
In the above embodiment, so as to determine the presence or absence of an uninterruptible power supply 40 (FIG. 2 step S 10). Therefore, even when the uninterruptible power supply 40 is not provided in all the communication control devices 6, a common program can be used. Further, it is easy to cope with a case where the installation of the uninterruptible power supply 40 is changed.

なお、無停電電源40が必ず設置される場合には、上記
のステップS10は省略しても良い。
In the case where an uninterruptible power supply 40 is always installed, step S 10 described above may be omitted.

また、この実施例では、無停電電源40の有無をディッ
プスイッチSW1によって設定するようにしたが、メモリ
スイッチによって設定してもよく、無停電電源40の設置
を物理的もしくは電気的に検出するセンサ等によって行
ってもよい。
Further, in this embodiment, the presence of the UPS 40 and to set the DIP switch SW 1, may be set by the memory switch, physically or electrically detecting the installation of the UPS 40 It may be performed by a sensor or the like.

なお、第2図の割込み処理をタイマ割込みによって実
行するようにしてもよい。この場合には、ステップS12
は不要である。
Note that the interrupt processing of FIG. 2 may be executed by a timer interrupt. In this case, step S 12
Is unnecessary.

[発明の効果] 請求項1に係る電断処理装置においては、外部からの
電力供給が断たれた時に、通信処理中であるか否かを判
断している。通信処理中であれば、補助電源の電力供給
によって通信制御を行い、現在処理中であった一連のデ
ータ通信の処理を継続する。したがって、処理中の一連
のデータ通信を完了させることができる。これにより、
外部電源が復帰した時に、直ちに取引処理を開始するこ
とができる。
[Effect of the Invention] In the power interruption processing apparatus according to claim 1, when the external power supply is cut off, it is determined whether or not the communication processing is being performed. If the communication process is being performed, communication control is performed by power supply from the auxiliary power supply, and a series of data communication processes that are currently being processed are continued. Therefore, a series of data communication during processing can be completed. This allows
Transaction processing can be started immediately when the external power supply is restored.

請求項2に係る電断処理装置においては、外部からの
電源供給が断たれた時に、補助電源の有無を確認するよ
うにしている。補助電源が備えられていない場合には直
ちに停止処理を行い、補助電源が備えられている場合に
は、上記と同様の処理を行う。したがって、補助電源を
有する通信制御装置と補助電源のない通信制御装置とが
混在するようなシステムにおいても用いることができ
る。
In the power interruption processing device according to the second aspect, the presence or absence of the auxiliary power supply is confirmed when the external power supply is cut off. If the auxiliary power supply is not provided, the stop processing is immediately performed. If the auxiliary power supply is provided, the same processing as described above is performed. Therefore, the present invention can be used in a system in which a communication control device having an auxiliary power supply and a communication control device having no auxiliary power supply coexist.

請求項3に係る電断処理装置においては、外部電源お
よび補助電源の双方からの電力供給が無くなっても通信
処理中であるか否かの記憶を可能としている。したがっ
て、外部電源再投入時に、通信処理中であることの記憶
内容に基づいて、一連のデータ通信の途中で停止処理が
行われたものであることを認識することができる。
In the power interruption processing device according to the third aspect, it is possible to store whether or not communication processing is being performed even when power supply from both the external power supply and the auxiliary power supply is lost. Therefore, when the external power supply is turned on again, it is possible to recognize that the stop processing has been performed in the middle of a series of data communication based on the stored content that the communication processing is being performed.

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

第1図および第2図はこの発明の一実施例による電断処
理方式を示すフローチャート図であり、 第1図はメインプログラム、第2図は割込み処理プログ
ラムを示している、 第3図は一実施例において用いた通信制御装置のハード
ウエア構成図、 第4図は通信制御装置6を用いたシステムの一例を示す
図である。 24……バックアップメモリ 40……無停電電源 SW1……ディップスイッチ PA……入力ポート PI……割込みポート
1 and 2 are flow charts showing a power interruption processing method according to an embodiment of the present invention. FIG. 1 shows a main program, FIG. 2 shows an interrupt processing program, and FIG. FIG. 4 is a diagram showing an example of a system using a communication control device 6 in a hardware configuration of a communication control device used in the embodiment. 24 Backup memory 40 Uninterruptible power supply SW 1 Dip switch PA Input port PI Interrupt port

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部からの電力供給が断たれた時、所定の
保持時間の間、外部電力と同等の電力を供給する補助電
源を備えており、下位機器と上位機器との間のデータ通
信を制御する通信制御に用いる電断処理装置であって、 一連のデータ通信が開始された時に通信処理中であるこ
とを記憶し、 当該一連のデータ通信が終了した時に通信処理中でない
ことを記憶するようにして、 外部からの電源供給が断たれた時に、通信処理中である
か否かを確認し、下記(a)または(b)の処理を行う
ことを特徴とする電断処理装置、 (a)通信処理中であれば、補助電源の電力供給によっ
て通信制御装置を動作させ、補助電源による保持時間が
経過するまでに通信処理中でなくなれば停止処理を行
い、補助電源による保持時間が経過するまで通信処理中
のままであれば保持時間経過とともに停止処理を行い、 (b)通信処理中でなければ、直ちに停止処理を行う。
An auxiliary power supply for supplying power equivalent to external power for a predetermined holding time when power supply from the outside is cut off, and data communication between a lower device and a higher device is provided. A power interruption processing device used for communication control to control that a communication process is being performed when a series of data communication is started, and that a communication process is not being performed when the series of data communication is completed. A power cut-off device that checks whether or not communication processing is being performed when power supply from the outside is cut off, and performs the following process (a) or (b): (A) If the communication processing is being performed, the communication control device is operated by the power supply of the auxiliary power supply, and if the communication processing is not performed before the holding time by the auxiliary power supply elapses, the stop processing is performed. Communication processing until elapse If it is still in the middle, stop processing is performed with the elapse of the holding time. (B) If it is not in communication processing, the stop processing is immediately performed.
【請求項2】下位機器と上位機器との間のデータ通信を
制御する通信制御に用いる電断処理装置であって、 一連のデータ通信が開始された時に通信処理中であるこ
とを記憶し、 当該一連のデータ通信が終了した時に通信処理中でない
ことを記憶するようにして、 外部からの電源供給が断たれた時に、補助電源の有無を
確認し、補助電源が備えられていない場合には直ちに停
止処理を行い、補助電源が備えられている場合には、通
信処理中であるか否かを確認し、下記(a)または
(b)の処理を行うことを特徴とする電断処理装置、 (a)通信処理中であれば、補助電源の電力供給によっ
て通信制御装置を動作させ、補助電源による保持時間が
経過するまでに通信処理中でなくなれば停止処理を行
い、補助電源による保持時間が経過するまで通信処理中
のままであれば保持時間経過とともに停止処理を行い、 (b)通信処理中でなければ、直ちに停止処理を行う。
2. An electric power interruption processing device used for communication control for controlling data communication between a lower device and a higher device, wherein when a series of data communication is started, it is stored that communication is being performed. When the series of data communication is completed, it is memorized that communication processing is not in progress.When power supply from the outside is cut off, it is checked whether auxiliary power is present. A power interruption processing apparatus which immediately performs a stop process, confirms whether or not a communication process is being performed when an auxiliary power supply is provided, and performs the following process (a) or (b). (A) If the communication processing is being performed, the communication control device is operated by supplying power from the auxiliary power supply, and if the communication processing is not being performed before the holding time by the auxiliary power supply elapses, the stop processing is performed. Until If the communication processing is still in progress, the stop processing is performed with the elapse of the holding time.
【請求項3】請求項1または2の電断処理装置におい
て、 外部電源および補助電源の双方からの電力供給が無くな
っても上記通信処理中であるか否かの記憶を可能とし、 外部電源再投入時に、当該記憶内容によって、一連のデ
ータ通信の途中で停止処理が行われたものであることを
認識することを特徴とする電断処理装置。
3. The power interruption processing device according to claim 1 or 2, wherein even if power supply from both the external power supply and the auxiliary power supply is lost, it is possible to store whether or not the communication processing is being performed. A power interruption processing apparatus, characterized in that at the time of insertion, it is recognized that the stop processing has been performed during a series of data communication, based on the stored contents.
JP2081752A 1990-03-28 1990-03-28 Power interruption processing device Expired - Fee Related JP2917381B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2081752A JP2917381B2 (en) 1990-03-28 1990-03-28 Power interruption processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2081752A JP2917381B2 (en) 1990-03-28 1990-03-28 Power interruption processing device

Publications (2)

Publication Number Publication Date
JPH03280117A JPH03280117A (en) 1991-12-11
JP2917381B2 true JP2917381B2 (en) 1999-07-12

Family

ID=13755174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2081752A Expired - Fee Related JP2917381B2 (en) 1990-03-28 1990-03-28 Power interruption processing device

Country Status (1)

Country Link
JP (1) JP2917381B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH086678A (en) * 1994-06-16 1996-01-12 Nippon Denki Joho Service Kk Power failure measure taking method for electronic computer
WO1997007408A1 (en) 1995-08-21 1997-02-27 Matsushita Electronics Corporation Voltage detecting circuit, a power on/off resetting circuit, and a semiconductor device
JP2002108269A (en) * 2000-09-27 2002-04-10 Minolta Co Ltd Display system, digital paper and display control method
JP4593029B2 (en) * 2001-07-26 2010-12-08 株式会社小松製作所 Mobile communication device
JP7075904B2 (en) * 2019-01-23 2022-05-26 富士通フロンテック株式会社 Automated teller machine, maintenance request notification method, and maintenance request notification program

Also Published As

Publication number Publication date
JPH03280117A (en) 1991-12-11

Similar Documents

Publication Publication Date Title
RU2146399C1 (en) Method for data storage in non-volatile memory unit, method for using integral circuit device, and integral circuit device
JP3474665B2 (en) Power supply control apparatus and method for computer system
JP2917381B2 (en) Power interruption processing device
WO1994016377A1 (en) Automatic backup and restoring device and method of computer system
JP3161468B2 (en) Communication control system
JP3448197B2 (en) Information processing device
JPH11299128A (en) Power supply
JP3487127B2 (en) Information processing device, product registration device, and program storage medium
KR101351703B1 (en) Terminal device and power control device
JPH0795253B2 (en) Power recovery processing method for power supplies for information processing equipment
JPH08227329A (en) System device
JPH0728572A (en) Automatic data preserving device at power interruption
JP3087650B2 (en) Automatic power recovery method
JPH0594238A (en) Data protection device for electronic equipment
JPH06250939A (en) Data processor
CN113360384B (en) App operation stability protection method and device and computer readable medium
JP3087451B2 (en) Backup power control method
KR101288660B1 (en) Automatic booting device and method therefor
JP2003241864A (en) Information processor, information processing system, and program
JPH07129425A (en) Reboot processing method
JP2001297359A (en) Electronic equipment and electronic equipment system
JP2792179B2 (en) Online system for cash transactions
JPS61114323A (en) Processing method for abnormality of power supply of information processor
JPH07120230B2 (en) Uninterruptible power supply control method
JP3268487B2 (en) Terminal device power off method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090423

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees