JP2645165B2 - Slip printer - Google Patents

Slip printer

Info

Publication number
JP2645165B2
JP2645165B2 JP2090289A JP9028990A JP2645165B2 JP 2645165 B2 JP2645165 B2 JP 2645165B2 JP 2090289 A JP2090289 A JP 2090289A JP 9028990 A JP9028990 A JP 9028990A JP 2645165 B2 JP2645165 B2 JP 2645165B2
Authority
JP
Japan
Prior art keywords
slip
print data
power failure
printing
buffer memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2090289A
Other languages
Japanese (ja)
Other versions
JPH03290280A (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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2090289A priority Critical patent/JP2645165B2/en
Publication of JPH03290280A publication Critical patent/JPH03290280A/en
Application granted granted Critical
Publication of JP2645165B2 publication Critical patent/JP2645165B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は伝票用プリンタの改良に関する。Description: TECHNICAL FIELD The present invention relates to an improvement of a slip printer.

[従来の技術] 伝票用プリンタは、例えばPOS(ポイント・オブ・セ
ールス)システムや電子式キャッシュレジスタ等におい
て商品販売データを伝票用紙に印字する場合に使用され
ている。
2. Description of the Related Art A slip printer is used for printing merchandise sales data on a slip sheet in, for example, a point-of-sale (POS) system or an electronic cash register.

従来、この種伝票プリンタでは、例えば1ラインの印
字データの停電保障ができるものが知られている。すな
わちこの伝票プリンタは1ラインの印字途中で停電が発
生しても停電復帰時にその1ラインを再度重ね印字して
から以降の印字データを伝票用紙に順次印字できるよう
になっている。
2. Description of the Related Art Heretofore, a slip printer of this type has been known that can guarantee a power failure of, for example, one line of print data. That is, even if a power failure occurs during the printing of one line, the slip printer can print the one line again when the power is restored, and then print the subsequent print data sequentially on the slip paper.

[発明が解決しようとする課題] しかし従来の伝票用プリンタは1ラインの停電保障が
できても、1ラインフィード分の停電保障ができなかっ
た。すなわち伝票用紙の場合1ラインの印字は比較的短
時間で終了できるが1ラインフィードに要する時間は1
ラインの印字に要する時間よりも長く、このためライン
フィード中に停電が発生した場合伝票用紙のフィードが
行われず、その結果停電復帰時に次の印字データを前の
印字データの上に重ね印字してしまう問題があった。
[Problems to be Solved by the Invention] However, in the conventional slip printer, even if one line of power failure can be guaranteed, the power failure of one line feed cannot be guaranteed. That is, in the case of slip paper, printing of one line can be completed in a relatively short time, but the time required for one line feed is one.
It is longer than the time required for line printing, so if a power failure occurs during line feed, the slip paper will not be fed, and as a result, the next print data will be overprinted on the previous print data when the power failure recovers. There was a problem.

そこで従来は停電発生時の伝票を一旦無効にし、改め
て例えば他の伝票の一時作業が終了した最後に伝票用紙
をセットして停電発生時の印字データを読出し印字させ
るようにしていた。
Therefore, conventionally, the slip at the time of the occurrence of the power outage was once invalidated, and then, for example, a slip sheet was set again at the end of the temporary work of another slip and the print data at the time of the power outage was read and printed.

このため、作業が面倒となり、またオペレータが停電
発生時に停電保障ができなかった伝票があることを忘れ
てしまう虞があった。
For this reason, the operation becomes troublesome, and the operator may forget that there is a slip for which power failure could not be guaranteed when a power failure occurred.

そこで本発明は、伝票印字の途中で停電が発生した場
合、停電復帰時にオペレータに対して伝票の再セットを
指示し、伝票を再セットするとその伝票に対して再度最
初から印字を開始し、簡単な作業で確実な停電保障がで
きる伝票用プリンタを提供しようとするものである。
Therefore, according to the present invention, if a power failure occurs during printing of a slip, the operator is instructed to reset the slip when the power is restored, and when the slip is reset, printing is started again from the beginning of the slip, and the present invention is simplified. It is an object of the present invention to provide a slip printer capable of ensuring reliable power outage with a simple operation.

[課題を解決するための手段] 本発明は、伝票用紙に対して印字データを順次印字す
る伝票用プリンタにおいて、停電処理が必要な伝票か否
かを判定する判定手段と、この判定手段にて停電処理が
必要な伝票を判定したとき、少なくとも1伝票分の印字
データを1伝票の印字が終了するまで最初に停電保障の
ための伝票始めコードを付加してセーブするバッファメ
モリと、停電復帰時バッファメモリに伝票始めコードを
付加した印字データが格納され、かつその印字データの
印字途中で停電があったことを検出すると伝票用紙の再
セットを指示する報知手段と、伝票用紙の再セットによ
りバッファメモリにセーブした印字データを最初から伝
票用紙に順次印字する再印字手段を設けたものである。
Means for Solving the Problems In the present invention, a slip printer that sequentially prints print data on a slip sheet is provided with a judging means for judging whether or not the slip requires a power failure process, A buffer memory that saves at least one slip of print data by adding a slip start code for power failure security until printing of one slip is completed when a slip requiring power failure processing is determined; The print data to which the slip start code is added is stored in the buffer memory, and when it is detected that a power failure has occurred during the printing of the print data, a notification means for instructing resetting of the slip sheet is provided, and the buffer is set by resetting the slip sheet. A reprinting means for sequentially printing the print data saved in the memory on the slip paper from the beginning is provided.

[作 用] このような構成の本発明においては、伝票印字の途中
で停電が発生しその後停電が復帰すると、バッファメモ
リに伝票始めコードを付加した印字データが格納されて
いることを検出してオペレータに伝票用紙を再セットす
ることを報知手段により指示する。これにより伝票用紙
を再セットするとバッファメモリの印字データを最初か
ら順次印字する。
[Operation] In the present invention having such a configuration, when a power failure occurs during the printing of a slip and the power failure is recovered thereafter, it is detected that the print data with the slip start code added is stored in the buffer memory. The operator is instructed by the notification means to reset the slip sheet. Thus, when the slip sheet is reset, the print data in the buffer memory is sequentially printed from the beginning.

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

第1図は伝票用プリンタのブロック図で、1は制御部
本体を構成するCPU(中央処理装置)、2はこのCPU1が
各部を制御するオペレーティングシステムプログラムが
格納されたROM(リード・オンリー・メモリ)、3はア
プリケーションプログラムを格納するメモリやデータ処
理のための各種メモリが形成されたRAM(ランダム・ア
クセス・メモリ)、4は例えばホストコンピュータと印
字データ等の送受信制御を行う外部インターフェースで
ある。
FIG. 1 is a block diagram of a slip printer. 1 is a CPU (central processing unit) constituting a control unit main body, and 2 is a ROM (read only memory) in which an operating system program for controlling each unit by the CPU 1 is stored. ), A RAM (random access memory) 3 in which a memory for storing application programs and various memories for data processing are formed, and 4 an external interface for controlling transmission and reception of print data and the like with, for example, a host computer.

5はセットされる伝票用紙に対して印字データを印字
するプリンタ6を制御するプリンタコントローラ、7は
報知手段を構成するディスプレイ8を制御してデータ表
示やメッセージ表示等の制御を行うディスプレイコント
ローラ、9はクリアキーを始め各種キーを設けたキーボ
ード10を制御してキー信号の取り込みを行うキーボード
コントローラである。
Reference numeral 5 denotes a printer controller that controls a printer 6 that prints print data on a slip sheet to be set, 7 denotes a display controller that controls a display 8 that constitutes a notification unit and controls data display, message display, and the like. Is a keyboard controller that controls a keyboard 10 provided with various keys including a clear key to capture key signals.

前記RAM3にはバッファメモリとして第2図に示す印字
データ中間バッファメモリ31が設けられている。
The RAM 3 is provided with a print data intermediate buffer memory 31 shown in FIG. 2 as a buffer memory.

また前記RAM3には前記CPU1に第3図に示す処理を行な
わせるアプリケーションプログラムが格納されている。
The RAM 3 stores an application program for causing the CPU 1 to perform the processing shown in FIG.

前記ROM2には前記CPU1に第4図に示す処理を行なわせ
るオペレーティングシステムプログラムが格納されてい
る。
The ROM 2 stores an operating system program for causing the CPU 1 to perform the processing shown in FIG.

すなわち前記CPU1は伝票印字を行う場合、アプリケー
ションプログラムにより第3図に示すように停電処理を
行う伝票か否かをチェックし、停電処理を行う伝票であ
れば最初に伝票始めコードを出力させ、続いて伝票に印
字すべき印字データを順次出力させ、最後に伝票終りコ
ードを出力させるようになっている。また停電処理を行
う必要のない伝票であれば伝票に印字すべき印字データ
のみを順次出力させるようになっている。
That is, when printing a slip, the CPU 1 checks whether or not the slip is to be subjected to power failure processing by an application program as shown in FIG. The print data to be printed on the slip is output sequentially, and finally the slip end code is output. In the case of a slip that does not require a power failure process, only print data to be printed on the slip is sequentially output.

また前記CPU1はオペレーティングシステムプログラム
により1伝票の印字が終了するまでアプリケーションプ
ログラムにより出力された伝票始めコード、各印字デー
タ、伝票終りコードを前記中間バッファメモリ31にセー
ブするようになっている。
The CPU 1 saves the slip start code, each print data, and the slip end code output by the application program in the intermediate buffer memory 31 until the printing of one slip is completed by the operating system program.

また前記CPU1は停電復帰時にはオペレーティングシス
テムプログラムにより第4図に示す印字処理を行うよう
になっている。これは先ず停電継続の立上りか否かをチ
ェックし、停電継続の立上りで無ければ印字データ中間
バッファメモリ31をクリアしてこの処理を終了する。ま
た停電継続の立上りであれば続いて印字途中のデータが
あるか否かをチェックする。
Further, the CPU 1 performs a printing process shown in FIG. 4 by an operating system program at the time of recovery from power failure. First, it is checked whether or not the power failure continues to rise, and if not, the print data intermediate buffer memory 31 is cleared and this process ends. If the power failure continues, it is checked whether there is any data being printed.

そして印字途中のデータが無ければ印字データ中間バ
ッファメモリ31をクリアしてこの処理を終了する。また
印字途中のデータがあれば続いて停電保障伝票か否かを
チェックする。
If there is no data in the middle of printing, the print data intermediate buffer memory 31 is cleared, and this processing ends. If there is data in the middle of printing, it is subsequently checked whether or not it is a power failure guarantee slip.

そして停電保障伝票で無ければ印字データ中間バッフ
ァメモリ31をクリアしてこの処理を終了する。また停電
保障伝票であればディスプレイコントローラ7を制御し
てディスプレイ8に例えば「プリンタが停電を検知しま
した。伝票用紙の先頭を合わせてクリアキーを押して下
さい。」のメッセージを表示させるようになっている。
If it is not a power failure guarantee slip, the print data intermediate buffer memory 31 is cleared, and this processing ends. In the case of a power failure guarantee slip, the display controller 7 is controlled to display a message such as "The printer has detected a power failure. Align the top of the slip sheet and press the clear key." I have.

この状態で伝票用紙がセットされクリアキーのキー入
力があると、プリンタ6を駆動して伝票再印字、すなわ
ち中間バッファメモリ31にセーブされている印字データ
を最初から順次印字させるようになっている。(再印字
手段) このような構成の本実施例においては、停電処理が必
要な伝票の場合にはアプリケーションによって印字デー
タの最初に伝票始めコードが付加されるとともに最後に
伝票終りコードが付加される。そしてこのコード及びデ
ータはオペレーティングシステムにより中間バッファメ
モリ31にセーブされる。
In this state, when the slip sheet is set and the clear key is pressed, the printer 6 is driven to reprint the slip, that is, the print data saved in the intermediate buffer memory 31 is sequentially printed from the beginning. . (Reprinting Means) In this embodiment having such a configuration, in the case of a slip requiring power failure processing, a slip start code is added at the beginning of print data and a slip end code is added at the end by the application. . The codes and data are saved in the intermediate buffer memory 31 by the operating system.

そして停電処理が必要な伝票の印字途中で停電が発生
すると、その停電の復帰時にオペレーティングシステム
によりディスプレイ8に「プリンタが停電を検知しまし
た。伝票用紙の先頭を合わせてクリアキーを押して下さ
い。」のメッセージが表示される。
If a power failure occurs during the printing of a slip requiring power failure processing, the operating system displays "The printer has detected a power failure. Press the clear key with the top of the slip paper." Message is displayed.

これによりオペレータは停電処理が必要な伝票の印字
途中で停電が発生したことを知り、伝票用紙の先頭を合
わせて再セットする。そしてキーボード10のクリアキー
を操作する。
Thus, the operator knows that a power failure has occurred in the middle of printing a slip requiring power failure processing, and resets the slip with the top of the slip sheet. Then, the clear key of the keyboard 10 is operated.

こうして印字途中で停電が発生して伝票の印字データ
が伝票用紙に対して最初から順次印字されるようにな
る。
In this way, a power failure occurs during printing, and the print data of the slip is sequentially printed on the slip paper from the beginning.

このように停電復帰時に伝票用紙を再セットしてクリ
アキーを操作するのみの簡単な作業によって停電にあっ
た伝票の印字データを最初から印字できる。しかも停電
の復帰時に直ちにディスプレイ8でオペレータに知らせ
て再印字を行わせているので、忘れるようなことがなく
確実にできる。
In this way, when the power is restored, the print data of the slip that has been subjected to the power failure can be printed from the beginning by a simple operation of resetting the slip sheet and operating the clear key. In addition, since the operator is immediately notified on the display 8 when the power outage is restored and reprinting is performed, the operator can be surely prevented from forgetting.

なお、前記実施例では印字データ中間バッファメモリ
31に停電処理を行う伝票の印字データを格納する場合、
最初の印字データの前に伝票始めコードを付加しかつ最
後の印字データの後に伝票終わりコードを付加したもの
について述べたが必ずしもこれに限定されるものではな
く、例えば伝票印字が複数伝票にわたる場合には第5図
に示すように各伝票の最初の印字データの前にそれぞれ
伝票始めコードを付加し、かつ伝票終りコードは最後の
伝票の最後の印字データの後のみに付加されていもよ
い。この場合は伝票始めコードと次の伝票始めコードと
の間の印字データ及び伝票始めコードと伝票終りコード
との間の印字データをそれぞれ1伝票単位と判断して停
電保障すればよい。
In the above embodiment, the print data intermediate buffer memory is used.
When storing the print data of the slip for which power failure processing is performed in 31
A description has been given of the case where a slip start code is added before the first print data and a slip end code is added after the last print data.However, the present invention is not limited to this. As shown in FIG. 5, the slip start code may be added before the first print data of each slip, and the slip end code may be added only after the last print data of the last slip. In this case, the print data between the slip start code and the next slip start code and the print data between the slip start code and the slip end code are each determined as one slip unit, and the power failure can be guaranteed.

[発明の効果」 以上詳述したように本発明によれば、伝票印字の途中
で停電が発生した場合、停電復帰時にオペレータに対し
て伝票の再セットを指示し、伝票を再セットするとその
伝票に対して再度最初から印字を開始し、簡単な作業で
確実な停電保障ができる伝票用プリンタを提供できるも
のである。
[Effects of the Invention] As described above in detail, according to the present invention, if a power failure occurs during printing of a slip, the operator is instructed to reset the slip when the power is restored, and the slip is reset when the slip is reset. The present invention can provide a slip printer that can start printing from the beginning again and ensure reliable power outage with a simple operation.

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

第1図乃至第4図は本発明の一実施例を示すもので、第
1図はブロック図、第2図は停電処理の必要な伝票の印
字データの中間バッファメモリに対する格納状態を示す
図、第3図はアプリケーションプログラムによるCPUの
印字データ出力処理を示す流れ図、第4図はオペレーテ
ィングシステムプログラムによるCPUの停電復帰時印字
処理を示す流れ図、第5図は停電処理の必要な伝票の印
字データの中間バッファメモリに対する他の格納状態例
を示す図である。 1……CPU(中央処理装置)、 2……ROM(リード・オンリー・メモリ)、 3……RAM(ランダム・アクセス・メモリ)、 31……印字データ中間バッファメモリ、 6……プリンタ、 8……ディスプレイ(報知手段)。
1 to 4 show an embodiment of the present invention. FIG. 1 is a block diagram, and FIG. 2 is a diagram showing a storage state of print data of a slip requiring power failure processing in an intermediate buffer memory. FIG. 3 is a flow chart showing print data output processing of the CPU by the application program, FIG. 4 is a flow chart showing print processing at the time of power failure recovery of the CPU by the operating system program, and FIG. 5 is print data of a slip requiring the power failure processing. FIG. 14 is a diagram illustrating another example of a storage state in the intermediate buffer memory. 1 ... CPU (central processing unit), 2 ... ROM (read only memory), 3 ... RAM (random access memory), 31 ... print data intermediate buffer memory, 6 ... printer, 8 ... ... Display (notification means).

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】伝票用紙に対して印字データを順次印字す
る伝票用プリンタにおいて、停電処理が必要な伝票か否
かを判定する判定手段と、この判定手段にて停電処理が
必要な伝票を判定したとき、少なくとも1伝票分の印字
データを1伝票の印字が終了するまで最初に停電保障の
ための伝票始めコードを付加してセーブするバッファメ
モリと、停電復帰時前記バッファメモリに伝票始めコー
ドを付加した印字データが格納され、かつその印字デー
タの印字途中で停電があったことを検出すると伝票用紙
の再セットを指示する報知手段と、伝票用紙の再セット
により前記バッファメモリにセーブした印字データを最
初から前記伝票用紙に順次印字する再印字手段を設けた
ことを特徴する伝票用プリンタ。
1. A slip printer for sequentially printing print data on a slip sheet, determining means for determining whether the slip requires power failure processing, and determining the slip requiring power failure processing by the determining means. Then, at least one voucher print data is saved by adding a voucher start code for power outage security first until the printing of one voucher is completed, and the voucher start code is stored in the buffer memory when power is restored. Notification means for storing the added print data and instructing resetting of the slip sheet when detecting that a power failure has occurred during printing of the print data, and print data saved in the buffer memory by resetting the slip sheet. A reprinting means for sequentially printing on the slip form from the beginning.
JP2090289A 1990-04-06 1990-04-06 Slip printer Expired - Lifetime JP2645165B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2090289A JP2645165B2 (en) 1990-04-06 1990-04-06 Slip printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2090289A JP2645165B2 (en) 1990-04-06 1990-04-06 Slip printer

Publications (2)

Publication Number Publication Date
JPH03290280A JPH03290280A (en) 1991-12-19
JP2645165B2 true JP2645165B2 (en) 1997-08-25

Family

ID=13994373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2090289A Expired - Lifetime JP2645165B2 (en) 1990-04-06 1990-04-06 Slip printer

Country Status (1)

Country Link
JP (1) JP2645165B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56124977A (en) * 1980-03-07 1981-09-30 Sanyo Electric Co Ltd Printing control system
JPS58169692A (en) * 1982-03-31 1983-10-06 株式会社東芝 Data processor
JPS6079987A (en) * 1983-10-11 1985-05-07 Tokyo Electric Co Ltd Receipt printer
JPS60124276A (en) * 1983-12-09 1985-07-03 Tokyo Electric Co Ltd Receipt printer

Also Published As

Publication number Publication date
JPH03290280A (en) 1991-12-19

Similar Documents

Publication Publication Date Title
JP3044939B2 (en) Page printer
JP2645165B2 (en) Slip printer
JPH04363268A (en) Page printer
JPS6159920B2 (en)
JPS59129182A (en) Printing apparatus
JP2771677B2 (en) Printing equipment
JPH0239973A (en) Printing control system
JP2907573B2 (en) Label printer
JP3123426B2 (en) Printer device
JP3083251B2 (en) Page printer
JPH02289374A (en) Printer
JP3486446B2 (en) Computer apparatus, image forming apparatus, printing system, and control method thereof
JPH04169257A (en) Printer
JP2811984B2 (en) Vector overlay restart method
JPH0577525A (en) Printer having cancel function
US4941109A (en) Method of effectively performing a feed operation and printing apparatus for realizing the method
JPH05138998A (en) Image processing device
JPH04325266A (en) Printer
JP2692122B2 (en) Diagnostic function setting device for electrophotographic device
JP2001080144A (en) Output device, data processing apparatus, control method of output device, control method of data processing apparatus and memory medium storing computer readable program
JPH05229236A (en) Paper delivery controlling system
JP2612937B2 (en) Printing device
JP2915703B2 (en) Print control apparatus and method
JPH05324132A (en) Data processor
JPH06274288A (en) Printer

Legal Events

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

Free format text: PAYMENT UNTIL: 20080502

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090502

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090502

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100502

Year of fee payment: 13

EXPY Cancellation because of completion of term