JPH03262677A - Printer - Google Patents

Printer

Info

Publication number
JPH03262677A
JPH03262677A JP6181090A JP6181090A JPH03262677A JP H03262677 A JPH03262677 A JP H03262677A JP 6181090 A JP6181090 A JP 6181090A JP 6181090 A JP6181090 A JP 6181090A JP H03262677 A JPH03262677 A JP H03262677A
Authority
JP
Japan
Prior art keywords
voltage supply
data
printing
ram
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6181090A
Other languages
Japanese (ja)
Other versions
JP2867564B2 (en
Inventor
Fumio Koyama
文夫 小山
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
Omron Tateisi Electronics Co
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, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP6181090A priority Critical patent/JP2867564B2/en
Publication of JPH03262677A publication Critical patent/JPH03262677A/en
Application granted granted Critical
Publication of JP2867564B2 publication Critical patent/JP2867564B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

PURPOSE:To easily judge whether a storage state has been protected over a voltage supply interruption period by an auxiliary power source by a method wherein a state just before a voltage supply is interrupted is compared with a state when the voltage supply is recovered just after the interruption with respect to the printing data storage state. CONSTITUTION:A sum value 230c at the time of a voltage supply interruption is compared and collated with a sum value at the time of a voltage supply recovery. If the both values are equal to each other, the data contents stored in a RAM 230 before and after a period wherein a voltage supply from a power supply 250 is interrupted are coincident with each other. Namely, the data content stored in the RAM 230 is judged to have been protected by a back-up power source by the electric discharge of a capacitor 231. A printing action is continued from printing data just before a voltage supply interruption. On the contrary, if the both sum values are not equal to each other, it is judged that the data content stored in the RAM 230 has been broken during the voltage supply interruption period and is not assured in reliability. Printer is actuated so as to again print out printing data 230a just before the voltage supply interruption.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は印刷装置に関し、特に、印字データを記憶する
ための記憶媒体を備え、電源からの電圧供給遮断に応じ
て前記記憶媒体に補助用電源からの電圧が供給開始され
る印刷装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing device, and in particular, to a printing device that is provided with a storage medium for storing print data, and in which an auxiliary memory is added to the storage medium in response to cutoff of voltage supply from a power source. The present invention relates to a printing device to which voltage supply from a power supply is started.

[従来の技術] 電子計算機、通信回線、その他のシステムにおけるディ
ジタルデータの情報伝達には非常に高い信頼性が要求さ
れることは言うまでもないが、現実問題として、いろい
ろな障害によりエラーが発生することは避けられない。
[Prior Art] It goes without saying that the transmission of digital data in electronic computers, communication lines, and other systems requires extremely high reliability, but as a practical matter, errors can occur due to various failures. is unavoidable.

上述の障害は、たとえば電源からの電圧の不安定供給に
よるものであったりする。
The above-mentioned disturbances may be due, for example, to an unstable supply of voltage from the power supply.

このような場合に信頼性を向上させる一般的な方法の一
つにサムチエツク(検査合計)がある。
One common method for improving reliability in such cases is a sum check.

たとえば、メモリに記憶されたデータの内容が一定時間
経過後も保護されているか否かは、前記サムチエツクを
行なえばよい。つまり、前記一定時間内は前記メモリへ
のデータ入出力は行なわれないものと想定して、メモリ
に記憶されたデータの内容の総和を求めこれを予めサム
値として記憶する。前記一定時間経過後に、同様にして
再度前記サム値を算出して、これを予め求めておいたサ
ム値と比較照合し、両方の値が一致すれば、前記−定時
間内にデータ内容は保護されていたが、一致しなければ
データ内容は保護されていなかったと判別できる。
For example, whether or not the contents of data stored in the memory are protected even after a certain period of time has passed can be determined by performing the above-mentioned thumb check. That is, assuming that no data is input or output to the memory within the certain period of time, the sum of the contents of the data stored in the memory is calculated and stored in advance as a sum value. After the specified period of time has elapsed, the sum value is calculated again in the same manner and compared with the previously determined sum value. If both values match, the data content is protected within the specified period of time. However, if they do not match, it can be determined that the data content was not protected.

さて、従来のECR(電子式キャッシュレジスタの略)
に接続される印字装置などにおいては印字されるべきデ
ータは、−旦印字用のバッファに記憶された後、専用の
紙に印刷されて出力される。
Now, the conventional ECR (abbreviation for electronic cash register)
In a printing device connected to a computer, data to be printed is first stored in a printing buffer and then printed on a special paper and output.

前記印字用バッファを含む記憶装置は、電源からの電圧
供給遮断時も電池などにより補助電源が供給されてその
記憶内容が保証されるようにしている。そのため、前述
したようなサムチエツクを行なって記憶されたデータの
電源断期間経過後の健全性を確認する作業は不要である
と考えられていた。
The storage device including the printing buffer is supplied with auxiliary power by a battery or the like even when the voltage supply from the power supply is cut off, so that the stored contents are guaranteed. Therefore, it was considered unnecessary to perform the above-mentioned thumb check to confirm the soundness of the stored data after the power-off period has elapsed.

[発明が解決しようとする課題] 上述のように、従来のECRに接続される印字装置にお
いては、印字用のバッファが電源からの電圧供給遮断期
間であっても電池などによりバックアップされている。
[Problems to be Solved by the Invention] As described above, in a conventional printing device connected to an ECR, the printing buffer is backed up by a battery or the like even during a period when the voltage supply from the power source is cut off.

しかしながら、バックアップ用電池に代わって、短時間
にわたってコンデンサなどにより電源供給される場合、
またはバックアップ用電池の電源供給能力が印字用バッ
ファの記憶内容を前記電源断期間にわたって維持するの
に十分でない場合は、印字用バッファに記憶された印字
データは電圧遮断期間後には、そのデータの健全性が保
証できないという問題があった。つまり、電源からの電
圧供給遮断期間直後の電圧供給再開(電源回復)により
印字装置が印字可能状態に復帰して、電源断直前に印字
用バッファに記憶されていたデータを印刷aカしたとし
ても、正しいデータが印刷される保証がないという問題
があった。
However, when power is supplied by a capacitor etc. for a short period of time instead of a backup battery,
Or, if the power supply capacity of the backup battery is not sufficient to maintain the stored contents of the print buffer during the power cutoff period, the print data stored in the print buffer will be kept in good condition after the voltage cutoff period. There was a problem that the gender could not be guaranteed. In other words, even if the printing device returns to a printable state by restarting the voltage supply (power recovery) immediately after the voltage supply cutoff period from the power supply and prints the data that was stored in the print buffer immediately before the power cutoff, , there was a problem that there was no guarantee that correct data would be printed.

それゆえに本発明の目的は、印字用のデータが記憶され
る記憶装置を備えて、前記記憶装置に対して電源からの
電圧供給遮断期間の一定期間に補助電源からの電圧供給
が可能な印刷装置において、前記電圧供給遮断期間直後
の電圧供給再開時に、前記電圧供給遮断直前に前記記憶
装置に記憶されていた印字用データが前記電圧供給遮断
期間にわたって保護されていたか否かを判断することが
できる印刷装置を提供することである。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a printing apparatus that is equipped with a storage device in which data for printing is stored, and that is capable of supplying voltage from an auxiliary power source to the storage device during a certain period of time during which the voltage supply from the power source is cut off. In this case, when the voltage supply is restarted immediately after the voltage supply cutoff period, it can be determined whether the printing data stored in the storage device immediately before the voltage supply cutoff has been protected over the voltage supply cutoff period. The purpose of the present invention is to provide a printing device.

U課題を解決するための手段] 本発明に係る印刷装置は、印字データを記憶する記憶媒
体を備えて電源からの電圧供給が遮断されたことに応じ
て補助電源から電圧が供給される印刷装置であり、詳細
には、前記電源から供給される電圧が遮断されたことを
検出する電源断検出手段と、前記電源断検出手段により
電圧供給遮断が検出されたことに応じて前記記憶媒体に
記憶される印字データの総和を算出する第1の算出手段
と、第1の算出手段により算出された印字データの総和
を前記記憶媒体に記憶する記憶手段と、前記電源からの
電圧供給が遮断された後の電源からの電圧供給再開(回
復)を検出する電源回復検出手段と、前記電源回復検出
手段により電源からの電圧供給再開が検出されたことに
応じて、前記記憶媒体に記憶されている印字データの総
和を算出する第2の算出手段と、さらに第1の算8手段
による総和と第2の算出手段による総和とを比較して、
前記電源からの電圧供給遮断期間に記憶媒体に記憶され
ていた印字データが保護されていたか否かを判別する手
段とを備えて構成される。
Means for Solving Problem U] A printing device according to the present invention is a printing device that is provided with a storage medium that stores print data and is supplied with voltage from an auxiliary power source in response to interruption of voltage supply from a power source. In detail, a power-off detection means for detecting that the voltage supplied from the power source is cut off, and a method for storing data in the storage medium in response to the detection of the voltage supply cut-off by the power-off detection means. a first calculation means for calculating the sum of the print data calculated by the first calculation means; a storage means for storing the sum of the print data calculated by the first calculation means in the storage medium; and a voltage supply from the power source is cut off. a power supply recovery detection means for detecting a subsequent resumption (recovery) of voltage supply from the power supply, and a printout stored in the storage medium in response to the detection of the resumption of voltage supply from the power supply by the power supply recovery detection means; A second calculation means for calculating the sum of data, further comparing the sum by the first calculation means and the sum by the second calculation means,
and means for determining whether or not the print data stored in the storage medium was protected during the period when the voltage supply from the power source was cut off.

[作用] 本発明に係る印刷装置は以上のように構成されるので、
印刷装置における電源からの電圧供給遮断という瞬間を
捉らえて、そのとき記憶媒体に記憶されていた印字デー
タが、前記電源断からある任意の時間経過後の前記電源
からの電圧供給再開時に、そのデータ内容が補助電源か
らの電圧供給によって保護されていたかどうかを確認で
きる。
[Operation] Since the printing device according to the present invention is configured as described above,
By capturing the moment when the voltage supply from the power supply to the printing device is cut off, the print data stored in the storage medium at that time will be updated when the voltage supply from the power supply is resumed after a certain arbitrary period of time has elapsed since the power supply cutoff. You can check whether the data content was protected by the voltage supply from the auxiliary power source.

[実施例コ 以下、本発明の一実施例について図面を参照して詳細に
説明する。
[Embodiment] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

なお、本実施例中の印刷装置100は印字方式として印
字機構が1文字ごとに移動してプリントするシリアルプ
リンタのドツトインパクト方式を採用して、縦5ドツト
(点)X横7ドツト(点)を文字に応じて選択して1行
32桁(32文字)、で表現していると想定する。
The printing apparatus 100 in this embodiment employs the dot impact method of a serial printer in which the printing mechanism moves and prints each character, and prints 5 dots (vertical) x 7 dots (horizontal). It is assumed that the characters are selected according to the characters and expressed using 32 digits (32 characters) per line.

第1図は、本発明の一実施例の印刷装置100の機能構
成を示す概略図である。
FIG. 1 is a schematic diagram showing the functional configuration of a printing apparatus 100 according to an embodiment of the present invention.

図において印刷装置100は上位のコントロールユニッ
トにシリアルインターフェイス50を介して接続されて
、印刷すべきシリアルデータを上位コントロールユニッ
トから入力するようにしている。
In the figure, a printing apparatus 100 is connected to a higher-level control unit via a serial interface 50, and serial data to be printed is input from the higher-level control unit.

また、印刷装置100は制御部200および印刷部30
0を含む。
The printing apparatus 100 also includes a control section 200 and a printing section 30.
Contains 0.

前記制御部200は印刷装置100自体の動作を制御お
よび監視するCPU (中央処理装置の略)210、印
刷動作に必要とされるデータ(プログラムを含む)を記
憶するためのROM(ReadOnly  Memor
yの略)220およびRAM(Random  Acc
ess  Memoryの略)230、前記印刷部30
0を駆動制御するプリンタドライバ240ならびに該印
刷装置100に駆動電圧を供給するだめの電源250を
含む。
The control unit 200 includes a CPU (abbreviation for central processing unit) 210 that controls and monitors the operation of the printing apparatus 100 itself, and a ROM (Read Only Memory) that stores data (including programs) required for printing operations.
y) 220 and RAM (Random Acc
ess Memory) 230, the printing section 30
The printing apparatus 100 includes a printer driver 240 that drives and controls the printing apparatus 100, and a power supply 250 that supplies a driving voltage to the printing apparatus 100.

なお、前記RAM230には、電源250からの電圧供
給期間中に充電され電源断直後に放電開始して、電源断
期間中の一定期間にわたてRAM230に補助電圧を供
給して記憶されるデータを保護するように動作するコン
デンサ231が接続される。
The RAM 230 is charged during the voltage supply period from the power source 250, starts discharging immediately after the power is turned off, and stores data by supplying auxiliary voltage to the RAM 230 for a certain period of time during the power interruption period. A capacitor 231 is connected which acts to protect.

また、前記印刷部300は前述したように(5X7) 
 ドツトのドツトインパクト方式によるプリンタ機能を
備える。
Further, as described above, the printing section 300 is (5×7)
Equipped with a printer function using the dot impact method.

図示されるように印刷装置100内の各装置はバスを介
して相互に接続されて、相互のデータ転送の高速化を図
るようにしている。
As shown in the figure, the devices within the printing apparatus 100 are interconnected via a bus to speed up mutual data transfer.

以上のように構成される印刷装置100において、CP
U210はシリアルインターフェイス50を介して上位
のコントロールユニットに接続されており、印刷部30
0に与えるべき印字データは、前記コントロールユニッ
トからバスを経由して送られてくる。このようにして転
送されてきた印字データは、RAM230内に一旦記憶
されるがRAM230内には印刷部300のドツトイン
パクト方式による2行分に相当する印字データが記憶さ
れて、周期的にCPU210により読aされて処理され
る。したがって、RAM230内に記憶される2行分に
相当する印字データは常にコントロールユニットから伝
送されてくるデータによって更新される。
In the printing apparatus 100 configured as described above, the CP
The U210 is connected to the upper control unit via the serial interface 50, and the printing unit 30
The print data to be given to 0 is sent from the control unit via the bus. The print data transferred in this way is temporarily stored in the RAM 230, and the print data corresponding to two lines by the dot impact method of the printing unit 300 is stored in the RAM 230, and is periodically processed by the CPU 210. It is read and processed. Therefore, the print data corresponding to two lines stored in the RAM 230 is always updated with data transmitted from the control unit.

一方、ROM220は、その中にキャラクタデータが格
納されており、CPU210によりRAM230から読
出された印字データが逐次与えられる。応じてROM2
20からは与えられる印字データに従ったドツトパター
ン(5×7ドツト)を示すキャラクタデータが読出され
てCPU210によって相当するコードが生成される。
On the other hand, the ROM 220 stores character data therein, and is sequentially given print data read out from the RAM 230 by the CPU 210. ROM2 according to
Character data indicating a dot pattern (5.times.7 dots) according to the given print data is read out from 20, and a corresponding code is generated by CPU 210.

このようにして生成されたコードはプリンタドライバ2
40に与えられる。応じてプリンタドライバ240は与
えられるコードに従ったパルスを発生して印刷部300
に与える。印刷部300では与えられるパルスに応答し
て高速駆動されて、紙面上にドツトインパクト方式で文
字を印字する。
The code generated in this way is the printer driver 2
given to 40. In response, the printer driver 240 generates a pulse according to the given code and prints it to the printing unit 300.
give to The printing unit 300 is driven at high speed in response to applied pulses and prints characters on paper using a dot impact method.

第2図は、前掲第1図に示されるRAM230の記憶領
域の概略構成図である。
FIG. 2 is a schematic diagram of the storage area of the RAM 230 shown in FIG. 1 above.

図示されるようにRAM230はアドレス$0000か
らアドレス$0OFFまでで示される記憶領域を含み、
その内訳として、アドレス$0010からアドレス$0
OFOで示される記憶領域M1およびアドレス$0OF
Fで示される記憶領域M2を含む。
As shown in the figure, the RAM 230 includes a storage area indicated from address $0000 to address $0OFF,
The breakdown is from address $0010 to address $0
Storage area M1 indicated by OFO and address $0OF
It includes a storage area M2 indicated by F.

前記記憶領域M1には、上位のコントロールユニットか
ら与えられた印字データ230aおよび現在の印刷状況
、すなわち何桁目のどのドツトまで印字されているかと
いう情報を含むプリント印字情報230bが記憶される
。前記印字データ230aおよびプリント印字情報23
0bは、CPU210により印刷部300の印字状況の
進行に従ってデータ更新される。
The storage area M1 stores print data 230a given from a higher-level control unit and print information 230b including information on the current printing status, ie, to what digit and to what dots are printed. The print data 230a and print information 23
0b is updated as data by the CPU 210 as the printing status of the printing unit 300 progresses.

前記記憶領域M2には、前述した印字データ230aお
よびプリント印字情報230bのサム値230Cが記憶
されるが、サム値230Cは電源250の電圧供給遮断
直後にCPU210によって算出されて記憶される値で
ある。なお、記憶領域M2は記憶領域M1の外に設けら
れて、サム値230Cは印字データ230aおよびプリ
ント印字情報230bとは区別して記憶される。
A sum value 230C of the print data 230a and print information 230b described above is stored in the storage area M2, and the sum value 230C is a value calculated and stored by the CPU 210 immediately after the voltage supply from the power source 250 is cut off. . Note that the storage area M2 is provided outside the storage area M1, and the sum value 230C is stored separately from the print data 230a and print information 230b.

以上のようにしてRAM230に印刷装置100の印刷
状況を示すデータが記憶されるが、−旦電源250から
の電圧供給が遮断されてRAM230に電圧供給されな
くなると、電源250からの電圧供給期間中に充電され
たコンデンサ231の放電が開始されて、RAM230
にはコンデンサ231により補助電圧が供給されるので
短期間であればその記憶されたデータ内容を維持し続け
ることができる。したがって、コンデンサ231の静電
容量に依存した前記補助電源供給期間はその記憶された
データ内容の信頼性は保証されるか、それ以降において
はその記憶されたデータ内容の信頼性は著しく低下し保
証されない。
Data indicating the printing status of the printing apparatus 100 is stored in the RAM 230 as described above. The discharge of the capacitor 231 charged in the RAM 230 is started.
Since an auxiliary voltage is supplied to the capacitor 231, the stored data contents can be maintained for a short period of time. Therefore, during the auxiliary power supply period that depends on the capacitance of the capacitor 231, the reliability of the stored data is guaranteed, or after that, the reliability of the stored data decreases significantly and is not guaranteed. Not done.

第3図(a)は、本発明の一実施例の電源250からの
電圧供給遮断に応じて開始される印刷装置100の動作
を示す概略処理フロー図である。
FIG. 3(a) is a schematic process flow diagram showing the operation of the printing apparatus 100 that is started in response to cutoff of voltage supply from the power supply 250 according to an embodiment of the present invention.

第3図(b)は、第3図(a)の電圧供給遮断直後の電
圧供給回復に応じて開始される印刷装置100の動作を
示す概略処理フロー図である。
FIG. 3(b) is a schematic process flow diagram showing the operation of the printing apparatus 100 that is started in response to the voltage supply being restored immediately after the voltage supply cutoff in FIG. 3(a).

第3図(a)および(b)に示される処理フローはプロ
グラムとして予めROM220に記憶されてCPU21
0の割込制御により起動がかけられて実行開始される。
The processing flows shown in FIGS. 3(a) and 3(b) are stored in advance in the ROM 220 as a program and executed by the CPU 220.
It is activated by interrupt control of 0 and starts execution.

つまり、CPU210は電源250の電源異常時に出力
される割込要求信号を受信すると、割込肯定信号を割込
要因側、すなわち電源250にaカする。応じて要因側
は割込肯定信号を受信し、これを確認すると前記割込要
求信号出力を停止する。以降CPU210の割込要求信
号受信に基づく割込処理が実行される。
That is, when the CPU 210 receives an interrupt request signal output when the power supply 250 is abnormal, it sends an interrupt affirmation signal to the interrupt cause side, that is, the power supply 250. In response, the cause side receives the interrupt affirmation signal, and upon confirming this, stops outputting the interrupt request signal. Thereafter, interrupt processing based on reception of the interrupt request signal by the CPU 210 is executed.

さて、今、印刷装置100は通常の印刷動作が継続され
ていて、突然電源250からの電圧供給遮断が発生して
、その後、電圧供給遮断状態から回復して再度、通常の
印刷動作に戻るように処理されると想定する。
Now, the printing apparatus 100 is continuing its normal printing operation, and suddenly the voltage supply from the power supply 250 is cut off, and then it recovers from the voltage supply cutoff state and returns to the normal printing operation again. Assume that it is processed as follows.

まず、第3図(a)のステップ510(図中では、SI
Oと略す)において、CPU210は電源250から電
圧供給が遮断されたことを知らせる電断検出信号(Po
we r  Fa i l信号以下、信号PFと略す)
が信号レベル“HIGH”で検出されるか否か判別する
。つまり、CPU210は信号PFが信号レベル“HI
GH”で検出されない間は、ステップ310の判別処理
を繰返すが、信号PFが信号レベル“HIGH″で検出
されると次のステップS20の処理に分岐する。
First, step 510 in FIG. 3(a) (in the figure, SI
(abbreviated as PO), the CPU 210 outputs a power interruption detection signal (Po
We r Fa i l signal (hereinafter abbreviated as signal PF)
It is determined whether or not the signal is detected at a signal level of "HIGH". In other words, the CPU 210 determines that the signal PF is at the signal level "HI".
While the signal PF is not detected at the signal level "GH", the determination process of step 310 is repeated, but when the signal PF is detected at the signal level "HIGH", the process branches to the next step S20.

以上のようにして、CPU210が信号PFの信号レベ
ル“HIGH”入力を割込要求信号として受付けて、ス
テップS20以降の処理を実行開始するようにする。
As described above, the CPU 210 receives the signal level "HIGH" input of the signal PF as an interrupt request signal, and starts executing the processing from step S20 onwards.

まず、ステップS20において印刷動作を停止する。First, the printing operation is stopped in step S20.

つまり、印字データ230aはRAM230に記憶され
ている訳であるが、CPU210はRAM230に記憶
される印字データ230aを電源250からの電圧供給
遮断時の状態を維持するために、RAM230へのデー
タ入出力動作を一斉に停止するように制御する。このと
き、電源250からの電圧供給が絶たれたことにより印
刷部300の印刷動作も中断される。
In other words, the print data 230a is stored in the RAM 230, but the CPU 210 inputs and outputs the data to and from the RAM 230 in order to maintain the print data 230a stored in the RAM 230 in the state at which the voltage supply from the power supply 250 was cut off. Control so that all operations are stopped all at once. At this time, the printing operation of the printing unit 300 is also interrupted because the voltage supply from the power source 250 is cut off.

その後、ステップS30の処理においてCPU210の
スタック内に記憶されていたデータ(プリント印字情報
230bに含まれる)をRAM230の記憶領域M1に
記憶する。
Thereafter, in the process of step S30, the data (included in the print information 230b) stored in the stack of the CPU 210 is stored in the storage area M1 of the RAM 230.

次に、ステップS40の処理において、前述のステップ
S30の処理終了を受けてRAM230の記憶領域Ml
に記憶される印字データ230aおよびプリント印字情
報230bのデータの総和を算出する。つまり、電源2
50からの電源供給遮断直前に上位のコントロールユニ
ットから伝送されてRAM230に記憶された2行分の
印字デ−夕230aおよび電圧供給遮断直前に前記印字
データ230aは何桁目の何ドツトまで印字終了してい
たかのプリント印字情報230bのデータのサム値が算
出される。
Next, in the process of step S40, in response to the completion of the process of step S30 described above, the memory area Ml of the RAM 230 is
The total sum of data of print data 230a and print information 230b stored in is calculated. In other words, power supply 2
Two lines of print data 230a are transmitted from the host control unit and stored in the RAM 230 immediately before the power supply is cut off from 50, and the print data 230a is printed to which digit and to what dot immediately before the voltage supply is cut off. A sum value of the data of the print information 230b is calculated.

次にステップS50の処理において、前述のステップS
40の処理で求められたサム値に(A A)8を加算し
た値をRAM230の記憶領域M2のアドレス$0OF
Fにサム値230cとして記憶する。
Next, in the process of step S50, the above-mentioned step S
The value obtained by adding (A
It is stored in F as a sum value 230c.

なお、電源250からの電圧供給が遮断されても、その
後の一定の短期間(コンデンサ231の静電容量に依存
する期間)であればRAM230内に記憶されるデータ
内容は維持できる。
Note that even if the voltage supply from the power supply 250 is cut off, the data content stored in the RAM 230 can be maintained for a certain period of time thereafter (a period depending on the capacitance of the capacitor 231).

以上のようにして電圧供給遮断に応答したCPU210
の割込処理が実行されることにより、サム値230cが
算出されて記憶される。
The CPU 210 responded to the voltage supply interruption as described above.
By executing the interrupt process, the sum value 230c is calculated and stored.

次に前記電源断直後の電源250からの電圧供給回復に
より実施される処理について説明する。
Next, a description will be given of the processing performed when the voltage supply from the power supply 250 is restored immediately after the power cutoff.

電源250からの電圧供給が回復すると、第3図(b)
の処理がCPU210により実行開始される。
When the voltage supply from the power supply 250 is restored, FIG. 3(b)
The CPU 210 starts executing the process.

CPU210は電源250から電圧供給開始の旨の信号
をステップ5100において受信すると、ステップ82
00以下に示される処理を実行する。
When the CPU 210 receives a signal to start supplying voltage from the power supply 250 in step 5100, the process proceeds to step 82.
00 Execute the processing shown below.

まず、ステップ5200において電圧供給回復時のRA
M230の記憶領域Ml内に記憶されるデータの総和を
算出して、これに第3図(a)のステップS50と同様
にして(AA)Hを加算して、この値を電圧供給回復後
のサム値としてCPU210内のレジスタに一時的に記
憶しておく。
First, in step 5200, when the voltage supply is restored, the RA
Calculate the total sum of data stored in the storage area M1 of M230, add (AA)H to it in the same way as step S50 in FIG. It is temporarily stored in a register within the CPU 210 as a sum value.

次にステップ5300およびステップ5400において
RAM230内のアドレス$0OFFから読取った電圧
供給遮断時のサム値230cと、前述のステップ520
0で求められてレジスタに一時記憶された電圧供給回復
時のサム値とを比較照合する。
Next, in step 5300 and step 5400, the sum value 230c at the time of voltage supply cutoff read from the address $0OFF in the RAM 230, and the sum value 230c at step 520 described above.
The sum value obtained at 0 and temporarily stored in the register at the time of voltage supply recovery is compared and verified.

さて、ステップ5400の比較判別処理において電圧供
給遮断時のサム値230cと電圧供給回復時のサム値と
が比較照合されて、両サム値が等しければステップ55
00の処理に分岐するが、両値が等しくなければステッ
プ8200以下の処理に分岐する。
Now, in the comparison and determination process of step 5400, the sum value 230c at the time of voltage supply interruption and the sum value at the time of voltage supply restoration are compared and verified, and if the two sum values are equal, step 55
The process branches to step 00, but if the two values are not equal, the process branches to step 8200 and subsequent steps.

ステップ5500の処理においては、前述のステップ5
400での比較照合結果を受けて、RAM230に記憶
されていたプリント印字情報230bをCPU210の
スタックに戻して、電圧供給遮断直前からの印刷処理を
続行する。つまり、CPU210はスタックに戻された
プリント印字情報230bに基づいてRAM230内の
印字データ230aを処理する。このようにして処理さ
れた印字データ230aは印刷部300に与えられて、
印刷部300における印刷動作が電圧供給遮断直前の状
態から継続されるように制御される。
In the process of step 5500, the above-mentioned step 5
In response to the comparison result at step 400, the print information 230b stored in the RAM 230 is returned to the stack of the CPU 210, and the printing process from immediately before the voltage supply is cut off is continued. That is, the CPU 210 processes the print data 230a in the RAM 230 based on the print information 230b returned to the stack. The print data 230a processed in this way is given to the printing section 300, and
The printing operation in the printing unit 300 is controlled to continue from the state immediately before the voltage supply was cut off.

したがって、印刷される文字は、電圧供給遮断直前の文
字に続いて印字出力されることになる。
Therefore, the characters to be printed will be printed following the character immediately before the voltage supply is cut off.

一方、ステップ5400の処理において両サム値が等し
くなければ、ステップ5600の処理に分岐して、CP
U210は印刷部300を、電源250からの電圧供給
遮断があったことを知らせるPFマーク(たとえば、マ
ーク“*PF*”など)を印字するように制御する。印
刷部300は印刷用紙に前記PFマークを印字するので
、ユーザーは印字されたPFマークを見て印刷処理中に
電圧供給遮断があったことを知ることができる。
On the other hand, if the two sum values are not equal in the process of step 5400, the process branches to step 5600 and the CP
The U210 controls the printing unit 300 to print a PF mark (for example, a mark "*PF*", etc.) that indicates that the voltage supply from the power supply 250 has been cut off. Since the printing unit 300 prints the PF mark on the printing paper, the user can see the printed PF mark and know that the voltage supply has been cut off during the printing process.

その後、次のステップ5700の処理において、CPU
210はRAM230の記憶領域M1をクリア(初期化
)して、上位のコントロールユニットに対して印字デー
タ230aの再送信を要求する旨の信号を出力する。前
記再送信要求信号を受信したことに応答して、コントロ
ールユニット側は、再度電圧供給遮断時にRAM230
に記憶されていた印字データ230aを伝送するように
動作する。このようにして再送信された電圧供給遮断時
の印字データ230aはRAM230の記憶領域M1に
再び記憶される。このようにして再送信された印字デー
タ230aは、CPU210に制御されてステップ$8
00の処理において印刷部300を介して再度ドツトプ
リント出力される。
After that, in the next step 5700, the CPU
210 clears (initializes) the storage area M1 of the RAM 230 and outputs a signal requesting retransmission of the print data 230a to the upper control unit. In response to receiving the retransmission request signal, the control unit side controls the RAM 230 when the voltage supply is cut off again.
The print data 230a stored in the print data 230a is transmitted. The thus retransmitted print data 230a at the time of voltage supply interruption is stored again in the storage area M1 of the RAM 230. The print data 230a retransmitted in this way is controlled by the CPU 210 and sent to step $8.
In the process of 00, the dot print is output again via the printing unit 300.

以上のようにしてステップ5400の判別処理で両サム
値が等しければ、RAM230に記憶されるデータ内容
は電源250からの電圧供給遮断期間の前後において一
致している、すなわちコンデンサ231放電によるバッ
クアップ電源によってRAM230に記憶されるデータ
内容は保護されていたと判断されて、電圧供給遮断直前
の印字から継続して印刷動作するようにしている。
As described above, if the two sum values are equal in the determination process of step 5400, the data contents stored in the RAM 230 are the same before and after the voltage supply interruption period from the power supply 250. It is determined that the data stored in the RAM 230 is protected, and the printing operation continues from the printing immediately before the voltage supply was cut off.

反対に、5400の判別処理で両サム値が一致しなけれ
ば、RAM230に記憶されるデータ内容は電圧供給遮
断期間に破損され、その信頼性は保証されないと判断さ
れて、電圧供給遮断直前の印字データ230aを再度印
刷出力するように動作している。
On the other hand, if the two sum values do not match in the determination process of 5400, it is determined that the data stored in the RAM 230 has been damaged during the voltage supply cutoff period and its reliability cannot be guaranteed, and the data printed just before the voltage supply cutoff is It is operating to print out the data 230a again.

なお、電源250からの電圧供給遮断期間にRAM23
0内の記憶領域がクリアされてしまうこと、ならびに偶
然にも記憶領域M1のデータのサム値が0になることを
考慮して、上述のようにして記憶領域Mlのデータの総
和に(AA)Hを加算した値をサム値230Cとする安
全対策を採るようにする。
Note that during the voltage supply cutoff period from the power supply 250, the RAM 23
Considering that the storage area within 0 will be cleared and that the sum value of the data in the storage area M1 will become 0 by chance, the sum of the data in the storage area M1 will be set to (AA) as described above. A safety measure is taken in which the sum value 230C is the value obtained by adding H.

以上のように、電源断時の電源供給のためのバックアッ
プ機能動作が短時間に限定される印刷装置においては、
電圧供給遮断発生時の印字データを記憶するRAM23
0のデータのサム値と、直後の電圧供給回復時に求めら
れるRAM230のデータのサム値とを比較照合するこ
とで、前記バックアップ機能動作によりRAM230が
バックアップされていたかどうか、すなわち記憶されて
いたデータ内容が保護されていたかどうがを容易に確認
できる。
As described above, in printing devices where the backup function for power supply during power outage is limited to a short time,
RAM23 that stores print data when voltage supply interruption occurs
By comparing and collating the sum value of the data of 0 and the sum value of the data of the RAM 230 obtained immediately after the voltage supply is restored, it is possible to determine whether the RAM 230 has been backed up by the backup function operation, that is, the contents of the stored data. You can easily check whether or not the information was protected.

[発明の効果コ 以上のように、印字データが記憶される記憶媒体に電源
からの電圧供給遮断時から一定期間にわたって補助用電
源からの電圧が供給される印刷装置によれば、前記印字
データの記憶状態について電圧供給遮断直前の状態と、
直後の電圧供給回復時の状態とを比較して、前記補助用
電源により前記記憶状態が前記電圧供給遮断期間にわた
って保護されていたか否かを容易に判断できる。したが
って、電源からの電圧供給遮断がらの回復時において印
字動作を継続するか否か、容易に決定できるという効果
がある。前記効果より電源からの電圧供給回復後は電圧
供給遮断前に印刷されていたものと同じデータを無条件
に再印刷するというような無駄が省け、さらに前記判断
に基づけば電圧供給遮断があってもその回復後には電圧
供給遮断時の印字から継続して印刷でき効率的であると
いう効果もある。
[Effects of the Invention] As described above, according to the printing device in which the storage medium in which the print data is stored is supplied with voltage from the auxiliary power source for a certain period of time after the voltage supply from the power source is cut off, the print data is Regarding the memory state, the state immediately before the voltage supply is cut off,
By comparing the state with the state immediately after the voltage supply is restored, it can be easily determined whether the storage state has been protected by the auxiliary power supply over the voltage supply cutoff period. Therefore, there is an advantage that it is possible to easily decide whether or not to continue the printing operation when the voltage supply from the power supply is restored after being cut off. As a result of the above effect, after the voltage supply from the power supply is restored, waste such as unconditionally reprinting the same data that was printed before the voltage supply was cut off can be avoided, and based on the above judgment, even if the voltage supply is cut off, After recovery, printing can be continued from the time when the voltage supply was cut off, which is more efficient.

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

第1図は、本発明の一実施例の印刷装置の機能構成を示
す概略図である。第2図は、第1図に示されるRAMの
記憶領域の概略構成図である。第3図(a)は、本発明
の一実施例の電源からの電圧供給遮断に応じて開始され
る印刷装置の動作を示す概略処理フロー図である。第3
図(b)は、第3図(a)の電圧供給遮断直後の電圧供
給回復に応じて開始される印刷装置の動作を示す概略処
理フロー図である。 図において100は印刷装置、200は制御部、210
はCPU、230はRAM、231はコンデンサ、25
0は電源、300は印刷部、MlおよびM2は記憶領域
、230aは印字データ、230bはプリント印字情報
および230cはサム値を示す。 なお、各図中、同一符号は同一または相当部分を示す。 (α) 第3
FIG. 1 is a schematic diagram showing the functional configuration of a printing apparatus according to an embodiment of the present invention. FIG. 2 is a schematic diagram of the storage area of the RAM shown in FIG. 1. FIG. 3(a) is a schematic processing flow diagram showing the operation of the printing apparatus that is started in response to cutoff of voltage supply from the power source according to an embodiment of the present invention. Third
FIG. 3(b) is a schematic process flow diagram showing the operation of the printing apparatus that is started in response to the voltage supply being restored immediately after the voltage supply cutoff in FIG. 3(a). In the figure, 100 is a printing device, 200 is a control unit, and 210 is a printing device.
is the CPU, 230 is the RAM, 231 is the capacitor, 25
0 is a power supply, 300 is a printing unit, Ml and M2 are storage areas, 230a is print data, 230b is print information, and 230c is a sum value. In each figure, the same reference numerals indicate the same or corresponding parts. (α) Third

Claims (1)

【特許請求の範囲】 印字データを記憶する記憶媒体を備え、電源から供給さ
れる電圧が遮断されたことに応じて補助電源から電圧が
供給される印刷装置において前記電源から供給される電
圧が遮断されたことを検出する電源断検出手段と、 前記電源断検出手段により前記電圧遮断が検出されたこ
とに応じて、前記記憶媒体に記憶される印字データの総
和を算出する第1の算出手段と、前記第1算出手段によ
り算出された総和を前記記憶媒体に記憶する記憶手段と
、 前記電源からの電圧が遮断された後の電源回復を検出す
る電源回復検出手段と、 前記電源回復検出手段により電源回復が検出されたこと
に応じて、前記記憶媒体に記憶されている印字データの
総和を算出する第2の算出手段と、前記第1の算出手段
により算出された総和と前記第2の算出手段により算出
された総和とを比較して前記電圧遮断期間に前記記憶媒
体に記憶される印字データが保護されていたか否か判別
する手段とを備えた、印刷装置。
[Scope of Claims] In a printing device that includes a storage medium for storing print data and is supplied with voltage from an auxiliary power supply in response to cutoff of the voltage supplied from the power supply, the voltage supplied from the power supply is cut off. a first calculation means for calculating the sum of print data stored in the storage medium in response to the detection of the voltage interruption by the power interruption detection means; , storage means for storing the sum calculated by the first calculation means in the storage medium; power recovery detection means for detecting power recovery after the voltage from the power source has been cut off; and by the power recovery detection means. a second calculation means for calculating a total sum of print data stored in the storage medium in response to detection of power recovery; and a second calculation means for calculating the sum total calculated by the first calculation means and the second calculation means. and means for comparing the total sum calculated by the means to determine whether or not print data stored in the storage medium during the voltage cutoff period was protected.
JP6181090A 1990-03-13 1990-03-13 Printing equipment Expired - Fee Related JP2867564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6181090A JP2867564B2 (en) 1990-03-13 1990-03-13 Printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6181090A JP2867564B2 (en) 1990-03-13 1990-03-13 Printing equipment

Publications (2)

Publication Number Publication Date
JPH03262677A true JPH03262677A (en) 1991-11-22
JP2867564B2 JP2867564B2 (en) 1999-03-08

Family

ID=13181818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6181090A Expired - Fee Related JP2867564B2 (en) 1990-03-13 1990-03-13 Printing equipment

Country Status (1)

Country Link
JP (1) JP2867564B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8072424B2 (en) 2004-04-30 2011-12-06 Hillcrest Laboratories, Inc. 3D pointing devices with orientation compensation and improved usability
US8834271B2 (en) 2005-08-24 2014-09-16 Nintendo Co., Ltd. Game controller and game system
US9011248B2 (en) 2005-08-22 2015-04-21 Nintendo Co., Ltd. Game operating device
USRE45905E1 (en) 2005-09-15 2016-03-01 Nintendo Co., Ltd. Video game system with wireless modular handheld controller
US9946356B2 (en) 2004-04-30 2018-04-17 Interdigital Patent Holdings, Inc. 3D pointing devices with orientation compensation and improved usability

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8072424B2 (en) 2004-04-30 2011-12-06 Hillcrest Laboratories, Inc. 3D pointing devices with orientation compensation and improved usability
US9946356B2 (en) 2004-04-30 2018-04-17 Interdigital Patent Holdings, Inc. 3D pointing devices with orientation compensation and improved usability
US9498728B2 (en) 2005-08-22 2016-11-22 Nintendo Co., Ltd. Game operating device
US9011248B2 (en) 2005-08-22 2015-04-21 Nintendo Co., Ltd. Game operating device
US9700806B2 (en) 2005-08-22 2017-07-11 Nintendo Co., Ltd. Game operating device
US10155170B2 (en) 2005-08-22 2018-12-18 Nintendo Co., Ltd. Game operating device with holding portion detachably holding an electronic device
US10238978B2 (en) 2005-08-22 2019-03-26 Nintendo Co., Ltd. Game operating device
US10661183B2 (en) 2005-08-22 2020-05-26 Nintendo Co., Ltd. Game operating device
US9044671B2 (en) 2005-08-24 2015-06-02 Nintendo Co., Ltd. Game controller and game system
US9227138B2 (en) 2005-08-24 2016-01-05 Nintendo Co., Ltd. Game controller and game system
US9498709B2 (en) 2005-08-24 2016-11-22 Nintendo Co., Ltd. Game controller and game system
US8834271B2 (en) 2005-08-24 2014-09-16 Nintendo Co., Ltd. Game controller and game system
US10137365B2 (en) 2005-08-24 2018-11-27 Nintendo Co., Ltd. Game controller and game system
US11027190B2 (en) 2005-08-24 2021-06-08 Nintendo Co., Ltd. Game controller and game system
USRE45905E1 (en) 2005-09-15 2016-03-01 Nintendo Co., Ltd. Video game system with wireless modular handheld controller

Also Published As

Publication number Publication date
JP2867564B2 (en) 1999-03-08

Similar Documents

Publication Publication Date Title
JP3127716B2 (en) Printer
CN102152669B (en) Printing apparatus and method of controlling printing apparatus
JPH03262677A (en) Printer
JP3697785B2 (en) Printer device
JP2907573B2 (en) Label printer
JP3123426B2 (en) Printer device
JP2768307B2 (en) Printer device
KR100294216B1 (en) How to Repair Errors in the Printer Driver
JP2577377Y2 (en) Printing control device
JPH0577525A (en) Printer having cancel function
JP2645165B2 (en) Slip printer
JPH04286674A (en) Printer having printing data protective function
JPH0664252A (en) Printing equipment having emulation mode
JPH1185430A (en) Printer control device
JPH07108739A (en) Device for monitoring exhaustion of printing paper
JPH04173350A (en) Recording device
JP3293337B2 (en) Printer device
JP2502619B2 (en) Electronics
JPH02283466A (en) Printer
JPH10230667A (en) Printer and error remedying method
JPH03277578A (en) Printer
JPH061045A (en) Printer device
JP2002055799A (en) Page recovery method for page printer and device for the same and recording medium
JPH01214460A (en) Page output detection system of printer
JPH03261824A (en) Data recording apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees