JP2655625B2 - Thermal printer - Google Patents

Thermal printer

Info

Publication number
JP2655625B2
JP2655625B2 JP6159891A JP6159891A JP2655625B2 JP 2655625 B2 JP2655625 B2 JP 2655625B2 JP 6159891 A JP6159891 A JP 6159891A JP 6159891 A JP6159891 A JP 6159891A JP 2655625 B2 JP2655625 B2 JP 2655625B2
Authority
JP
Japan
Prior art keywords
error
recovery processing
recovery
processing method
thermal printer
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
JP6159891A
Other languages
Japanese (ja)
Other versions
JPH04348979A (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 JP6159891A priority Critical patent/JP2655625B2/en
Publication of JPH04348979A publication Critical patent/JPH04348979A/en
Application granted granted Critical
Publication of JP2655625B2 publication Critical patent/JP2655625B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Electronic Switches (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、サーマルプリンタに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a thermal printer.

【0002】[0002]

【従来の技術】フィードモータ,フィードローラを含む
給紙機構、用紙の搬送方向と直交する方向にライン状に
配設されたサーマルヘッド、用紙カット機構等のエンジ
ンを具備し、給送された感熱用紙にサーマルヘッドで印
字するいわゆるサーマルプリンタが広く普及している。
例えば、POSシステムのターミナル機としてのECR
の印字装置として採用する場合、印字データは上位機器
としてのホストコンピュータから伝送され、サーマルプ
リンタはこの伝送データを一時的に記憶するとともに上
記各機構とサーマルヘッドとを連関させた適時に駆動制
御して印字を行う。印字対象としては顧客へ手渡すレシ
ートと店舗の控としてのジャーナルとを有するのが一般
的である。
2. Description of the Related Art An engine such as a paper feed mechanism including a feed motor and a feed roller, a thermal head and a paper cut mechanism arranged in a line in a direction perpendicular to the paper transport direction, and the like. A so-called thermal printer that prints on a paper with a thermal head is widely used.
For example, ECR as a terminal device of POS system
When the printer is adopted as a printing device, the print data is transmitted from a host computer as a host device, and the thermal printer temporarily stores the transmitted data and controls the drive in a timely manner by linking the above mechanisms with the thermal head. To print. The print target generally has a receipt to be handed to the customer and a journal as a copy of the store.

【0003】かかるサーマルプリンタの特長の1つは、
用紙の幅方向つまり全桁を一括して印字するものである
から印字速度が速い。但し、行方向については1文字を
例えば上側と下側の2段階で印字する場合が多い。とこ
ろで、従来のサーマルプリンタでは、例えばレシートペ
ーパーエンド,ジャーナル紙詰り、カッターのホームポ
ジションエラー等のエラーがあると、印字停止とし、か
つそのリカバリー処理方法はエラー原因に拘わらず一義
的に決定されている。例えば、従来リカバリー処理方法
としては、エラー復帰後にプリンタ停止時の印字状態に
引続き次の印字動作を続行させる方法が代表的である。
One of the features of such a thermal printer is that
The printing speed is high because the printing is performed in the width direction of the paper, that is, all digits are collectively printed. However, in the line direction, one character is often printed in two stages, for example, upper side and lower side. By the way, in the conventional thermal printer, if there is an error such as a receipt paper end, a journal paper jam, a home position error of the cutter, etc., the printing is stopped, and the recovery processing method is uniquely determined regardless of the error cause. I have. For example, as a conventional recovery processing method, a method of continuing a printing state at the time of stopping a printer after an error recovery and continuing the next printing operation is typical.

【0004】すなわち、通常処理が図8(A)に示すよ
うに、レシート用紙Pに「ABC…HIJ」を上記2段
階方式で印字する場合において、同(B)に示す如く位
置X1でプリンタ停止となった場合には、エラー復帰後
に下側から印字続行する方法である。このように、リカ
バリー処理方法を唯一のものとすると、上記エラー復帰
後印字続行方法の場合、プリンタ停止指令に対して用紙
が完全に静止する迄には、給紙機構の慣性を含むフィー
ドモータの制動特性等から相当の惰走が生じる。したが
って、図9の位置(行間)X3でプリンタ停止となった
場合にはあまり問題とならないが、図8(B)の位置X
1で停止した場合には1文字の上側と下側との間にスペ
ースが生じ印字品質が悪くなる。領収書的レシートを作
成する場合等にあっては実用価値がなくなる。
That is, as shown in FIG. 8A, in the case where "ABC... HIJ" is printed on the receipt paper P in the two-stage method as shown in FIG. In this case, the printing is continued from below after the error recovery. As described above, if the recovery processing method is the only one, in the case of the printing continuation method after the above error recovery, the feed motor including the inertia of the paper feed mechanism is required until the paper completely stops in response to the printer stop command. Considerable coasting occurs due to braking characteristics and the like. Therefore, when the printer is stopped at the position (line spacing) X3 in FIG. 9, there is not much problem, but the position X in FIG.
If it stops at 1, a space is created between the upper side and the lower side of one character, resulting in poor print quality. In the case of creating a receipt like a receipt, it has no practical value.

【0005】そこで、かかる不都合の解消に備え、レシ
ート再発行機能を具備したサーマルプリンタが提案され
ている。これによると、レシート再発行機能によればプ
リンタ停止状態がどのような場合でも、同(A)に示す
通常印字のレシートを発行できる。
In order to solve such a problem, a thermal printer having a receipt reissuing function has been proposed. According to this, according to the receipt re-issuing function, a receipt for normal printing shown in FIG.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、印字品
質のみならずプリンタ小型化,作業高速化,省資源が一
層強く求められる現今では、上記レシート再発行機能を
容易に発現することは許され難くなっている。すなわ
ち、図8(B)の位置X1でプリンタ停止した場合に
は、プリンタの機械的構成上サーマルヘッドとカッター
との間には相当の距離があるので、レシート再発行を行
うにはレシートを長さLだけ給送しなければならず、作
業高速化に反するばかりか当該用紙Pが無駄となる。
However, at present, where not only printing quality but also printer downsizing, high-speed operation, and resource saving are more strongly required, it is difficult to allow the above-mentioned receipt reissue function to be easily developed. ing. That is, when the printer is stopped at the position X1 in FIG. 8B, there is a considerable distance between the thermal head and the cutter due to the mechanical configuration of the printer. In this case, the sheet P must be fed, and thus the sheet P is wasted, in addition to deteriorating the operation speed.

【0007】さらに、図8(C)に示す如く、例えば3
0行を印字するレシートにおいて29行(位置X1)で
プリンタ停止となった場合には上記問題に加え、再び1
行目(位置X4)から再印字しなければならず、大幅な
作業低速化を招く。しかも、特に、レシートの後出し機
能を有するサーマルプリンタでは、ホストコンピュータ
から伝送された印字データを再発行機能発現のために所
定期間記憶しておく必要があるから、記憶容量の大型化
とコスト高を招く。
[0007] Further, as shown in FIG.
If the printer is stopped at 29 lines (position X1) in the receipt for printing 0 lines, in addition to the above-mentioned problem, 1 again
Reprinting must be performed from the line (position X4), resulting in a significant reduction in work speed. In particular, in the case of a thermal printer having a receipt delivery function, it is necessary to store print data transmitted from the host computer for a predetermined period in order to realize the reissue function, which results in an increase in storage capacity and cost. Invite.

【0008】一方、ジャーナルについて考えると、レシ
ートと異なり顧客に発行するものでないから、通常、ジ
ャーナルへの印字文字は小さく、行間ピッチも狭く選定
し省資源とプリンタ小型化が図られているが、図8
(C)の場合における再発行相当印字があると、そのま
ま記録として残ってしまうので、利用段階において煩雑
さが増大し的確評価がしにくい。
On the other hand, when considering a journal, unlike a receipt, it is not issued to a customer. Therefore, the print characters on the journal are usually small and the line pitch is narrow, so that resources are saved and the printer is downsized. FIG.
In the case of (C), if there is a print corresponding to reissue, it is left as a record as it is, so that the complexity is increased in the use stage and it is difficult to make an accurate evaluation.

【0009】かかる問題は、どのようなリカバリー処理
方法を採っても、唯一の方法である限りにおいて、それ
特有の別問題が生じる。
[0009] Regarding this problem, no matter what recovery processing method is adopted, another unique problem arises as long as it is the only method.

【0010】本発明は、上記事情に鑑みなされたもの
で、エラー原因やその動作状態に応じて最適なリカバリ
ー処理を自動的に行えるサーマルプリンタを提供するこ
とにある。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a thermal printer capable of automatically performing an optimum recovery process according to the cause of an error and its operation state.

【0011】[0011]

【課題を解決するための手段】本発明は、用紙の搬送方
向と直交する方向にライン状に配設されたサーマルヘッ
ドを有するサーマルプリタにおいて、各種エラー原因を
検出するエラー検出手段と、エラー発生時における動作
状態を検出する状態検出手段と、エラー原因および動作
状態に対応された複数のリカバリー処理方法を記憶する
記憶手段と、該エラー検出手段および状態検出手段から
の検出信号に基づいて対応するリカバリー処理方法を読
取るリカバリー処理方法選択手段と、選択されたリカバ
リー処理方法を実施するために必要なエンジンを駆動制
御するリカバリー制御手段と、を具備したサーマルプリ
ンタである。
SUMMARY OF THE INVENTION The present invention relates to a thermal printer having a thermal head arranged in a line in a direction perpendicular to the sheet conveying direction. State detecting means for detecting an operation state at the time, storage means for storing a plurality of recovery processing methods corresponding to an error cause and an operation state, and correspondence based on detection signals from the error detection means and the state detection means. The thermal printer includes a recovery processing method selection unit that reads a recovery processing method, and a recovery control unit that controls driving of an engine necessary to execute the selected recovery processing method.

【0012】[0012]

【作用】本発明では、あるエラーが生じるとエラー検出
手段がそのエラー原因を自動検出する、と同時に状態検
出手段がエラー発生時における動作状態(例えば、印字
中,用紙フィード中,用紙カット中)を自動検出する。
すると、リカバリー処理方法選択手段が、自動検出され
たエラー原因および状態に対応するリカバリー処理方法
を記憶手段から読取選択する。ここに、リカバリー制御
手段は、選択されたリカバリー処理方法を実施すべく必
要なエンジンを駆動制御する。よって、記憶手段にエラ
ー原因とエラー発生時の動作状態に最適なリカバリー処
理方法を予め記憶させておけば、作業高速化,省資源等
のいずれをも満足させることができる。
According to the present invention, when a certain error occurs, the error detecting means automatically detects the cause of the error, and at the same time, the state detecting means operates at the time of the error occurrence (for example, during printing, paper feeding, paper cutting). Is automatically detected.
Then, the recovery processing method selection means reads and selects the recovery processing method corresponding to the automatically detected error cause and state from the storage means. Here, the recovery control means drives and controls an engine necessary to execute the selected recovery processing method. Therefore, by preliminarily storing in the storage means the recovery processing method that is optimal for the cause of the error and the operating state at the time of the occurrence of the error, it is possible to satisfy both the work speedup and the resource saving.

【0013】[0013]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本サーマルプリンタは、図1に示す如く構成とさ
れ、通常印字処理機能の他に、エラー検出手段,状態検
出手段,記憶手段,リカバリー処理方法選択手段,リカ
バリー制御手段を設け、エラー原因とエラー発生時の動
作状態に最適なリカバリー処理を自動選択しかつ実行す
るように形成されている。なお、この実施例におけるサ
ーマルプリンタは、ホストコンピュータ1を含むPOS
システムのターミナル機としてのECR(電子キャッシ
ュレジスタ)に用いられる。
Embodiments of the present invention will be described below with reference to the drawings. This thermal printer is configured as shown in FIG. 1 and includes an error detection unit, a state detection unit, a storage unit, a recovery processing method selection unit, and a recovery control unit in addition to the normal print processing function. It is configured to automatically select and execute a recovery process optimal for the operating state at the time. The POS including the host computer 1 is a thermal printer in this embodiment.
Used for ECR (Electronic Cash Register) as a terminal device of the system.

【0014】そこで、図1を参照して、ホストコンピュ
ータ1とECRとの概要を述べる。図1において、EC
Rの制御部10は、CPU11,ROM12,RAM1
3,CG(キャラクタジェネレータ)14,シェアード
RAM15,インターフェース(INT)16を含み形
成され、この制御部10にはサーマルヘッド31(デー
タ転送回路30),ロールフィードモータ33(ドライ
バ32),ジャーナルフィードモータ35(ドライバ3
4)等のエンジンが接続されている。但し、図1ではキ
ーボード,ドロワ,表示ユニット等々は図示省略してい
る。
The outline of the host computer 1 and the ECR will now be described with reference to FIG. In FIG. 1, EC
The R control unit 10 includes a CPU 11, a ROM 12, a RAM 1,
The control unit 10 includes a thermal head 31 (data transfer circuit 30), a roll feed motor 33 (driver 32), a journal feed motor, and a CG (character generator) 14, a shared RAM 15, and an interface (INT) 16. 35 (Driver 3
4) etc. are connected. However, FIG. 1 does not show a keyboard, a drawer, a display unit, and the like.

【0015】一方、ホストコンピュータ1は、CPU
2,ROM3,RAM4等を含み、ECRの制御部10
に商品データ等を伝送し、その販売実績を受信するよう
に形成されている。ここに、この実施例では、エラー検
出手段,状態検出手段,リカバリー制御手段はECR
(10)側つまりサーマルプリンタ側に設け、記憶手
段,リカバリー処理方法選択手段はホストコンピュータ
1側に設けた構成としている。もとより、全て(エラー
検出手段,状態検出手段,記憶手段,リカバリー処理方
法選択手段,制御手段)を、サーマルプリンタ側に設け
た構成として実施することができる。
On the other hand, the host computer 1 has a CPU
2, ECR control unit 10 including ROM3, RAM4, etc.
The product data and the like are transmitted to and the sales results are received. Here, in this embodiment, the error detection means, the state detection means, and the recovery control means are ECR
The (10) side, that is, the thermal printer side, and the storage means and the recovery processing method selecting means are provided on the host computer 1 side. Of course, all (error detection means, state detection means, storage means, recovery processing method selection means, control means) can be implemented as a configuration provided on the thermal printer side.

【0016】さて、エラー検出手段は、サーマルプリン
タの例えば図1のレシートペーパーエンド等の各種エラ
ー原因を自動検出するもので、インターフェース16に
接続されたリミットスイッチ等20からなる。各エラー
原因はRAM13に図2(A)に示すように一時記憶さ
れる。一方、状態検出手段は、エラー発生時におけるサ
ーマルプリンタ自体の動作状態を自動検出する手段で、
この実施例ではCPU11からなり、検出動作状態もR
AM13に記憶される。動作状態としては、大別して図
4のST11,13,16,18に示す印字動作中か否
か等であり、詳しくは図2(B)に示す内容である。
The error detecting means automatically detects various error causes such as the receipt paper end of the thermal printer shown in FIG. 1 and includes a limit switch 20 connected to the interface 16. Each error cause is temporarily stored in the RAM 13 as shown in FIG. On the other hand, the state detection means is means for automatically detecting the operation state of the thermal printer itself when an error occurs,
In this embodiment, the CPU 11 is used, and the detection operation state is also R.
Stored in AM13. The operation state is roughly classified into whether or not the printing operation is being performed as shown in ST11, ST13, ST16, ST18 in FIG. 4, and the details are shown in FIG. 2B.

【0017】次に、記憶手段は、図3に示す如く、リカ
バリー処理方法R1〜R7(例えば“R1処理”はエラ
ー復帰後続行)を記憶する手段で、リカバリー処理方法
は、エラー原因および動作状態に対応させて記憶される
ものである。この実施例ではホストコンピュータ1のR
AM4をもって構成している。ROM3から形成しても
よい。
Next, as shown in FIG. 3, the storage means is a means for storing recovery processing methods R1 to R7 (for example, "R1 processing" is continued after error recovery). Is stored in association with In this embodiment, R of the host computer 1
AM4. It may be formed from the ROM 3.

【0018】なお、図3のリカバリー処理R2,R3,
R6,R7のロングレシートとは、行間寸法よりも相当
長い寸法だけ用紙を送ることを意味する。また、ホスト
コンピュータ1のCPU2とROM3とは、エラー検出
手段(20)と状態検出手段(11)からの検出信号に
基づいて対応するリカバリー処理方法を読取るリカバリ
ー処理方法選択手段を構成する。この検出信号は、制御
部10のシェアードRAM15を通して伝送されて来
る。一方、選択されたリカバリー処理方法もシェアード
RAM15を介して制御部10に伝送されるものと形成
されている。
Note that the recovery processing R2, R3,
The long receipt of R6 and R7 means that the sheet is fed by a length considerably longer than the line spacing. Further, the CPU 2 and the ROM 3 of the host computer 1 constitute recovery processing method selecting means for reading a corresponding recovery processing method based on detection signals from the error detecting means (20) and the state detecting means (11). This detection signal is transmitted through the shared RAM 15 of the control unit 10. On the other hand, the selected recovery processing method is also configured to be transmitted to the control unit 10 via the shared RAM 15.

【0019】次に、リカバリー制御手段は選択されたリ
カバリー処理方法を実施するために必要なエンジンを適
時かつ相互に連関をもたせて駆動制御するもので、この
実施例では図4〜図6に示すプログラムを格納するRO
M12とこれを実行するCPU11とから構成されてい
る。
Next, the recovery control means controls the driving of the engines necessary for implementing the selected recovery processing method in a timely and mutually related manner. In this embodiment, the recovery control means is shown in FIGS. RO for storing programs
M12 and a CPU 11 that executes the M12.

【0020】次に、この実施例の作用を主に図4〜図6
を参照して説明する。エラー検出手段としてのリミット
スイッチ等20が働き、エラー原因を検出すると、エラ
ー原因は図2(A)に示すようにRAM13に記憶され
る。と同時に、状態検出手段としてのCPU11は、エ
ラー発生時における動作状態を検出し同(B)に示す如
くRAM13に記憶する。
Next, the operation of this embodiment will be described mainly with reference to FIGS.
This will be described with reference to FIG. When an error cause is detected by a limit switch 20 or the like as an error detecting means, the error cause is stored in the RAM 13 as shown in FIG. At the same time, the CPU 11 as the state detecting means detects the operation state at the time of occurrence of the error and stores it in the RAM 13 as shown in FIG.

【0021】すなわち、図4において、エラー発生(S
T10のYES)すると、ST11,16,18で印字
中か否か等の動作状態が判別され、それぞれエラーステ
ータス〔図2(B)〕がセットされる(ST12,1
7,19)。また、印字中の場合には、ST13で行間
か否かが判断され、行間である場合にはST14の行間
セットを介してST15に至る。一方、用紙がフィード
中であるとST16,17を、用紙のカット中であると
ST18,19を経て、それぞれST20に進む。
That is, in FIG. 4, an error occurs (S
If T10 is YES), the operation status such as whether or not printing is being performed is determined in ST11, 16, and 18, and an error status [FIG. 2B] is set (ST12, 1).
7, 19). If printing is being performed, it is determined in step ST13 whether or not the line is between lines. If the line is between lines, the process proceeds to step ST15 via the line spacing set in step ST14. On the other hand, if the paper is being fed, the process proceeds to ST16 and ST17. If the paper is being cut, the process proceeds to ST20 via ST18 and ST19.

【0022】ST20では、以上においてセットされた
エラーステータスを参照してエラー分析し、図3のリカ
バリー処理(R1〜R7)に対応するエラーステータス
要因をセットする(ST21)。このエラーステータス
要因つまりエラー検出手段(20)と状態検出手段(1
1)とで検出した検出信号は、ホストコンピュータ1へ
送信される(ST22)。これら一連の動作は、CPU
11,ROM12,RAM13,シェアードRAM15
の協働により実行される。
In ST20, error analysis is performed with reference to the error status set as described above, and an error status factor corresponding to the recovery processing (R1 to R7) in FIG. 3 is set (ST21). This error status factor, that is, the error detecting means (20) and the state detecting means (1)
The detection signal detected in 1) is transmitted to the host computer 1 (ST22). These series of operations are performed by the CPU
11, ROM 12, RAM 13, shared RAM 15
It is executed in cooperation with

【0023】かくして、ホストコンピュータ1側のリカ
バリー処理方法選択手段(2,3)は、記憶手段(1
4)と協働のもと受信した検出信号に対応するリカバリ
ー処理方法を図3に示す中から選択し、これを制御部1
0に送信する。
Thus, the recovery processing method selecting means (2, 3) on the host computer 1 side stores the storage means (1).
The recovery processing method corresponding to the detection signal received in cooperation with 4) is selected from those shown in FIG.
Send to 0.

【0024】ここに、制御部10のCPU11,ROM
12からなるリカバリー制御手段は、図4のST22に
引続く図5のST23でYES判断されると、選択され
たリカバリー処理方法を実行すべく当該エンジンを駆動
制御する(図5のST24〜35,図6のST36,3
7)。
Here, the CPU 11 of the control unit 10 and the ROM
If YES is determined in ST23 in FIG. 5 subsequent to ST22 in FIG. 4, the recovery control unit 12 controls the drive of the engine to execute the selected recovery processing method (ST24 to ST35 in FIG. 5, ST36, 3 in FIG.
7).

【0025】すなわち、上記R1処理の場合(ST24
のYES)には、エラー復帰後続行(図3参照)である
から、先に記憶していた印字データに基づいて印字続行
する(ST36)。印字態様は動作状態が印字中の場合
であったときは、図7(A)に示す如くである。X1は
エラー発生に基づくプリンタ停止位置である。かかる場
合のエラー原因としては、図2(A)の08:カッター
ホームポジションエラー等であり、かつエラー発生時の
動作状態が行間にある場合に選択される。
That is, in the case of the R1 process (ST24)
If YES, the printing is continued based on the previously stored print data (ST36) because the process is continued after the error recovery (see FIG. 3). The printing mode is as shown in FIG. 7A when the operation state is during printing. X1 is a printer stop position based on the occurrence of an error. The cause of the error in this case is selected when 08: cutter home position error in FIG. 2A and the operation state at the time of occurrence of the error is between the lines.

【0026】なお、図7(A)に示す態様は用紙Pがレ
シートの場合、領収書的でなければ許容される。もとよ
りジャーナルの場合には全面的に許される。つまり、前
出図9に示す行間で停止した場合等に有効であり、印字
品質を阻害せず用紙無駄も発生せず、かつ作業迅速化が
図れる。
The mode shown in FIG. 7A is acceptable if the sheet P is a receipt, unless it is like a receipt. Of course, in the case of a journal, it is entirely allowed. In other words, this is effective when the operation is stopped between the lines shown in FIG. 9 and the like, so that the print quality is not impaired, the paper is not wasted, and the work can be speeded up.

【0027】ST25でR2処理と判断された場合に
は、ST26でロングレシートフラグがONされ、用紙
を行間寸法より長く送った後に印字続行を行う(ST3
6)。エラー原因が、レシートペーパエンドやレシート
紙詰り等であった場合に有効である。R3処理の場合に
は、ロングレシートおよびカットフラグがONされ(S
T27,28)、その後印字処理(ST36)される。
ST27でNO判断されると、以下のR4〜R7処理
は、先に記憶した印字データから次に印字開始する位置
をサーチするよりも、改めてホストコンピュータ1から
印字データを送信してもらう方が結果として好都合とさ
れたリカバリー処理方法であるから、ST29でバッフ
ァ(RAM13)をクリアーする。
If it is determined in step ST25 that the R2 process has been performed, the long receipt flag is turned on in step ST26, and printing is continued after the sheet is fed longer than the line spacing (ST3).
6). This is effective when the cause of the error is a receipt paper end or a receipt paper jam. In the case of the R3 process, the long receipt and the cut flag are turned on (S
T27, 28), and thereafter, the printing process (ST36).
If NO is determined in ST27, the following R4 to R7 processing results in having the host computer 1 transmit the print data anew, rather than searching the previously stored print data for the next print start position. The buffer (RAM 13) is cleared in ST29 because this is a convenient recovery processing method.

【0028】さらに、R5,R6処理の場合(ST3
0,32)の場合には、ST31でメッセージ印字フラ
グをONし、印字処理する(ST36)。R5処理の場
合には、同7(B)に示す如く、エラーメッセージの印
字後に、エラー発生時に印字中断した内容(A〜J)を
改めて印字し、しかる後に次の内容(N〜V)を印字す
る。ここに、一旦バッファを上記クリアーする意味があ
る。
Further, in the case of R5 and R6 processing (ST3
In the case of (0, 32), the message print flag is turned on in ST31, and print processing is performed (ST36). In the case of the R5 processing, as shown in FIG. 7B, after the error message is printed, the contents (A to J) that were interrupted when the error occurred are printed again, and then the next contents (N to V) are printed. Print. Here, it is meaningful to clear the buffer once.

【0029】R7処理と判断(ST34のNO)される
と、カットフラグをONし(ST35)、図7(C)に
示すようにメッセージ(破棄)を印字後、ロングレシー
ト(送り)し、Y−Y線でカットする。したがって、S
T36,37でエラー処理され、この処理が完了後、新
たに印字処理される(ST10,40)。
When it is determined that the process is the R7 process (NO in ST34), the cut flag is turned on (ST35), and a message (discarded) is printed as shown in FIG. -Cut with the Y line. Therefore, S
Error processing is performed in T36 and T37, and after this processing is completed, new printing processing is performed (ST10 and ST40).

【0030】しかして、この実施例によれば、エラー検
出手段(20),状態検出手段(11),記憶手段
(4),リカバリー処理方法選択手段(2,3),リカ
バリー制御手段(11,12)を設け、エラー原因およ
びエラー発生時の動作状態を自動検出する、とともにそ
の状況に応じた最適なリカバリー処理を実行する構成と
されているので、小型化,低コストを図りつつ印字作業
迅速化,省資源,印字品質向上を達成できる。
According to this embodiment, the error detecting means (20), the state detecting means (11), the storage means (4), the recovery processing method selecting means (2, 3), and the recovery control means (11, 12) to automatically detect the cause of the error and the operating state when the error occurs, and to execute the optimal recovery process according to the situation, so that the printing work can be performed quickly while reducing the size and cost. , Resource saving, and improved printing quality can be achieved.

【0031】また、記憶手段(4)はホストコンピュー
タ1側のRAM4をもって構成されているので、これに
接続される多数のサーマルプリンタ(ECR)に共通使
用でき、かつリカバリー処理方法をエラー原因と動作状
態に応じて書替えれば、当該サーマルプリンタの最適運
用ができる適用性の広いものとなる。もとより記憶手段
(4)は、ROMあるいはEP−ROMから構成し固定
データ化して実施してもよい。
Further, since the storage means (4) is constituted by the RAM 4 of the host computer 1, it can be used in common for a large number of thermal printers (ECR) connected thereto, and the operation of the recovery processing method depends on the cause of the error. If rewriting is performed according to the state, the thermal printer will have a wide applicability that allows optimal operation. Of course, the storage means (4) may be constituted by a ROM or an EP-ROM, and may be implemented as fixed data.

【0032】[0032]

【発明の効果】以上の通り、本発明によれば、エラー検
出手段,状態検出手段,記憶手段,リカバリー処理方法
選択手段,リカバリー制御手段を設け、エラー原因とエ
ラー発生時の動作状態に応じた最適リカバリー処理を自
動的に行う構成とされているので、従来の画一的処理に
よる用紙無駄、多行重複印字等の欠点を一掃でき、印字
作業の迅速化,省資源および印字品質の向上を併せて達
成でき、かつジャーナル紙収容量の減少等による装置小
型化や販売サービスの向上にも大きく貢献することがで
きる。
As described above, according to the present invention, an error detecting means, a state detecting means, a storage means, a recovery processing method selecting means, and a recovery controlling means are provided, and an error cause and an operation state at the time of occurrence of an error are provided. The system is configured to automatically perform the optimal recovery process, eliminating the disadvantages of conventional uniform processing such as paper waste and multi-line duplication printing, and speeding up printing work, saving resources and improving printing quality. This can be achieved at the same time, and can greatly contribute to downsizing of the apparatus and improvement of sales services due to a decrease in the amount of journal paper stored.

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

【図1】本発明の実施例を示す全体構成図である。FIG. 1 is an overall configuration diagram showing an embodiment of the present invention.

【図2】同じくエラー原因を説明するための図である。FIG. 2 is a diagram for explaining a cause of an error.

【図3】同じくエラー発生時の動作状態を説明するため
の図である。
FIG. 3 is a diagram for explaining an operation state when an error occurs.

【図4】同じく動作を説明するためのフローチャート
(1)である
FIG. 4 is a flowchart (1) for explaining the operation in the same manner.

【図5】同じく動作を説明するためのフローチャート
(2)である。
FIG. 5 is a flowchart (2) for explaining the operation.

【図6】同じく動作を説明するためのフローチャート
(3)である。
FIG. 6 is a flowchart (3) for explaining the operation.

【図7】同じくリカバリー処理結果を説明するための図
である。
FIG. 7 is a diagram for explaining a result of the recovery process.

【図8】従来サーマルプリンタによる問題点を説明する
ための図である。
FIG. 8 is a diagram for explaining a problem with a conventional thermal printer.

【図9】同じく行間でプリンタ停止した場合のリカバリ
ー処理を説明するための図である。
FIG. 9 is a diagram for explaining a recovery process when the printer is stopped between lines.

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

1 ホストコンピュータ 2 CPU(リカバリー処理方法選択手段) 3 ROM(リカバリー処理方法選択手段) 4 RAM(記憶手段) 10 制御部 11 CPU(状態検出手段,リカバリー制御手段) 12 ROM(リカバリー制御手段) 13 RAM 14 CG 15 シェアードRAM 16 インターフェース 20 リミットスイッチ類(エラー検出手段) 31 サーマルヘッド 33 ロールフィードモータ 35 ジャーナルフィードモータ REFERENCE SIGNS LIST 1 host computer 2 CPU (recovery processing method selection means) 3 ROM (recovery processing method selection means) 4 RAM (storage means) 10 control unit 11 CPU (state detection means, recovery control means) 12 ROM (recovery control means) 13 RAM 14 CG 15 Shared RAM 16 Interface 20 Limit switches (error detecting means) 31 Thermal head 33 Roll feed motor 35 Journal feed motor

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 用紙の搬送方向と直交する方向にライン
状に配設されたサーマルヘッドを有するサーマルプリタ
において、各種エラー原因を検出するエラー検出手段
と、エラー発生時における動作状態を検出する状態検出
手段と、エラー原因および動作状態に対応された複数の
リカバリー処理方法を記憶する記憶手段と、該エラー検
出手段および状態検出手段からの検出信号に基づいて対
応するリカバリー処理方法を読取るリカバリー処理方法
選択手段と、選択されたリカバリー処理方法を実施する
ために必要なエンジンを駆動制御するリカバリー制御手
段と、を具備したサーマルプリンタ。
An error detecting means for detecting the cause of various errors and a state for detecting an operation state when an error occurs in a thermal printer having a thermal head arranged in a line in a direction orthogonal to a sheet conveying direction. Detection means, storage means for storing a plurality of recovery processing methods corresponding to error causes and operation states, and recovery processing methods for reading the corresponding recovery processing methods based on detection signals from the error detection means and the state detection means A thermal printer, comprising: a selection unit; and a recovery control unit that drives and controls an engine required to execute the selected recovery processing method.
JP6159891A 1991-03-26 1991-03-26 Thermal printer Expired - Fee Related JP2655625B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6159891A JP2655625B2 (en) 1991-03-26 1991-03-26 Thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6159891A JP2655625B2 (en) 1991-03-26 1991-03-26 Thermal printer

Publications (2)

Publication Number Publication Date
JPH04348979A JPH04348979A (en) 1992-12-03
JP2655625B2 true JP2655625B2 (en) 1997-09-24

Family

ID=13175755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6159891A Expired - Fee Related JP2655625B2 (en) 1991-03-26 1991-03-26 Thermal printer

Country Status (1)

Country Link
JP (1) JP2655625B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5181909B2 (en) * 2008-08-05 2013-04-10 セイコーエプソン株式会社 Printer reprint control method and printer
JP5609999B2 (en) * 2013-01-16 2014-10-22 セイコーエプソン株式会社 Printer reprint control method and printer

Also Published As

Publication number Publication date
JPH04348979A (en) 1992-12-03

Similar Documents

Publication Publication Date Title
EP0834828B1 (en) Hybrid printer equipped with a plurality of printing mechanisms and method of controlling it
EP1936537B1 (en) On-line state resumption in a printer
EP0156392B1 (en) Printing apparatus
JP2655625B2 (en) Thermal printer
JPH01235680A (en) Electronic typewriter
JP3127091B2 (en) Additional printing processing method
JP2750215B2 (en) Label printer
JPS60101067A (en) Paper handling system of printer
JP3313904B2 (en) Print server system
JP3961302B2 (en) Printer driver and printer driver data processing method
JPH07228016A (en) Printer
JP2989499B2 (en) Printing device
JPH06293163A (en) Printer
JP2704264B2 (en) Recording device
JP3045077B2 (en) Printing device
JPH06210907A (en) Printer control method and apparatus
JPS637964A (en) Printer control apparatus of cash register
US6166823A (en) Printing method and apparatus, paper ejecting position control method and apparatus
JPH07228015A (en) Printer
JPS58145478A (en) Paper feed controller for printer
JPH07186455A (en) Label printer and data preparation apparatus
JPS6115478B2 (en)
US5263131A (en) Data processing apparatus for outputting ruled lines on successive pages
JPH05342238A (en) Slip printer
JPS61195080A (en) Image data printing system

Legal Events

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20080530

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20090530

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

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 12

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

Year of fee payment: 13

Free format text: PAYMENT UNTIL: 20100530

LAPS Cancellation because of no payment of annual fees