JPH04348979A - Thermal printer - Google Patents

Thermal printer

Info

Publication number
JPH04348979A
JPH04348979A JP6159891A JP6159891A JPH04348979A JP H04348979 A JPH04348979 A JP H04348979A JP 6159891 A JP6159891 A JP 6159891A JP 6159891 A JP6159891 A JP 6159891A JP H04348979 A JPH04348979 A JP H04348979A
Authority
JP
Japan
Prior art keywords
error
recovery processing
processing method
detection means
printing
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
JP6159891A
Other languages
Japanese (ja)
Other versions
JP2655625B2 (en
Inventor
Toru Kitano
徹 北野
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 TEC Corp
Original Assignee
Tokyo Electric Co Ltd
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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
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

Abstract

PURPOSE:To miniaturize the thermal printer and improve the sales service by automatically carrying out optimum recovery processing according to a cause of an error and an operation state when the error occurs. CONSTITUTION:When a certain error occurs, an error detecting means 20 automatically detects its error cause. At the same time, a state detecting means (CPU) 11 automatically detects an operating state in occurrence of the error, for instance, in printing, in feeding paper, or in cutting paper. Then, a recovery processing selection means 2, 3 read and select a recovery processing method corresponding to the automatically detected error cause and state from a memory means 4. The recovery control means (CPU) 11 controls by driving an engine necessary for performing the selected recovery processing means. Thereby, the title thermal printer can be miniaturized and besides sales service is improved.

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
の印字装置として採用する場合、印字データは上位機器
としてのホストコンピュータから伝送され、サーマルプ
リンタはこの伝送データを一時的に記憶するとともに上
記各機構とサーマルヘッドとを連関させた適時に駆動制
御して印字を行う。印字対象としては顧客へ手渡すレシ
ートと店舗の控としてのジャーナルとを有するのが一般
的である。
[Prior Art] A paper feeding mechanism including a feed motor and a feed roller, a thermal head arranged in a line in a direction perpendicular to the paper conveyance direction, a paper cutting mechanism, etc. are equipped with an engine, and the thermal sensitive 2. Description of the Related Art So-called thermal printers, which print on paper using a thermal head, are widely used. For example, ECR as a terminal machine of POS system
When used as a printing device, printing data is transmitted from a host computer as a host device, and the thermal printer temporarily stores this transmitted data and controls the drive of the above-mentioned mechanisms and the thermal head in a timely manner. to print. Generally, the items to be printed include receipts handed to customers and journals used as store copies.

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

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

【0005】そこで、かかる不都合の解消に備え、レシ
ート再発行機能を具備したサーマルプリンタが提案され
ている。これによると、レシート再発行機能によればプ
リンタ停止状態がどのような場合でも、同(A)に示す
通常印字のレシートを発行できる。
[0005] To solve this problem, a thermal printer equipped with a receipt reissue function has been proposed. According to this, according to the receipt reissue function, it is possible to issue a normally printed receipt as shown in (A) regardless of whether the printer is stopped.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、印字品
質のみならずプリンタ小型化,作業高速化,省資源が一
層強く求められる現今では、上記レシート再発行機能を
容易に発現することは許され難くなっている。すなわち
、図8(B)の位置X1でプリンタ停止した場合には、
プリンタの機械的構成上サーマルヘッドとカッターとの
間には相当の距離があるので、レシート再発行を行うに
はレシートを長さLだけ給送しなければならず、作業高
速化に反するばかりか当該用紙Pが無駄となる。
[Problem to be Solved by the Invention] However, in today's world, where not only print quality but also printer miniaturization, work speed, and resource saving are more strongly required, it is no longer acceptable to easily implement the above-mentioned receipt reissue function. ing. That is, when the printer stops at position X1 in FIG. 8(B),
Due to the mechanical structure of the printer, there is a considerable distance between the thermal head and the cutter, so in order to reissue a receipt, the receipt must be fed by a length L, which not only goes against the speed of work. The paper P is wasted.

【0007】さらに、図8(C)に示す如く、例えば3
0行を印字するレシートにおいて29行(位置X1)で
プリンタ停止となった場合には上記問題に加え、再び1
行目(位置X4)から再印字しなければならず、大幅な
作業低速化を招く。しかも、特に、レシートの後出し機
能を有するサーマルプリンタでは、ホストコンピュータ
から伝送された印字データを再発行機能発現のために所
定期間記憶しておく必要があるから、記憶容量の大型化
とコスト高を招く。
Furthermore, as shown in FIG. 8(C), for example, 3
If the printer stops at line 29 (position X1) on a receipt that prints line 0, in addition to the above problem,
It is necessary to reprint from the line (position X4), which significantly slows down the work. Moreover, especially in thermal printers that have a function to output receipts later, it is necessary to store the print data transmitted from the host computer for a predetermined period of time in order to perform the reissue function, which increases the storage capacity and costs. invite.

【0008】一方、ジャーナルについて考えると、レシ
ートと異なり顧客に発行するものでないから、通常、ジ
ャーナルへの印字文字は小さく、行間ピッチも狭く選定
し省資源とプリンタ小型化が図られているが、図8(C
)の場合における再発行相当印字があると、そのまま記
録として残ってしまうので、利用段階において煩雑さが
増大し的確評価がしにくい。
On the other hand, considering journals, unlike receipts, they are not issued to customers, so the characters printed on journals are usually small and the line spacing is narrow to save resources and make printers more compact. Figure 8 (C
) If there is a print equivalent to reissue, it will remain as a record, increasing complexity at the usage stage and making accurate evaluation difficult.

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

【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 that can automatically perform optimal recovery processing depending on the cause of the error and its operating state.

【0011】[0011]

【課題を解決するための手段】本発明は、用紙の搬送方
向と直交する方向にライン状に配設されたサーマルヘッ
ドを有するサーマルプリタにおいて、各種エラー原因を
検出するエラー検出手段と、エラー発生時における動作
状態を検出する状態検出手段と、エラー原因および動作
状態に対応された複数のリカバリー処理方法を記憶する
記憶手段と、該エラー検出手段および状態検出手段から
の検出信号に基づいて対応するリカバリー処理方法を読
取るリカバリー処理方法選択手段と、選択されたリカバ
リー処理方法を実施するために必要なエンジンを駆動制
御するリカバリー制御手段と、を具備したサーマルプリ
ンタである。
[Means for Solving the Problems] The present invention provides an error detection means for detecting various causes of errors, and an error detection means for detecting various error causes in a thermal printer having a thermal head arranged in a line in a direction perpendicular to the paper conveyance direction. a state detection means for detecting the operating state at the time, a storage means for storing a plurality of recovery processing methods corresponding to the cause of the error and the operating state, and a response based on the detection signal from the error detection means and the state detection means This thermal printer is equipped with a recovery processing method selection means for reading a recovery processing method, and a recovery control means for driving and controlling an engine necessary for carrying out the selected recovery processing method.

【0012】0012

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

【0013】[0013]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本サーマルプリンタは、図1に示す如く構成とさ
れ、通常印字処理機能の他に、エラー検出手段,状態検
出手段,記憶手段,リカバリー処理方法選択手段,リカ
バリー制御手段を設け、エラー原因とエラー発生時の動
作状態に最適なリカバリー処理を自動選択しかつ実行す
るように形成されている。なお、この実施例におけるサ
ーマルプリンタは、ホストコンピュータ1を含むPOS
システムのターミナル機としてのECR(電子キャッシ
ュレジスタ)に用いられる。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings. This thermal printer is configured as shown in Fig. 1, and in addition to the normal printing processing function, it is equipped with error detection means, state detection means, storage means, recovery processing method selection means, and recovery control means, and it is equipped with error detection means, state detection means, storage means, recovery processing method selection means, and recovery control means. The system is configured to automatically select and execute the recovery process that is most suitable for the operating state at the time. Note that the thermal printer in this embodiment is a POS system including a host computer 1.
It is used for ECR (electronic cash register) as a terminal machine 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ではキ
ーボード,ドロワ,表示ユニット等々は図示省略してい
る。
An overview of the host computer 1 and ECR will now be described with reference to FIG. In Figure 1, EC
The control unit 10 of R includes a CPU 11, a ROM 12, and a RAM 1.
3, a CG (character generator) 14, a shared RAM 15, and an interface (INT) 16. 35 (driver 3
4) etc. are connected. However, in FIG. 1, the keyboard, drawer, display unit, etc. are not shown.

【0015】一方、ホストコンピュータ1は、CPU2
,ROM3,RAM4等を含み、ECRの制御部10に
商品データ等を伝送し、その販売実績を受信するように
形成されている。ここに、この実施例では、エラー検出
手段,状態検出手段,リカバリー制御手段はECR(1
0)側つまりサーマルプリンタ側に設け、記憶手段,リ
カバリー処理方法選択手段はホストコンピュータ1側に
設けた構成としている。もとより、全て(エラー検出手
段,状態検出手段,記憶手段,リカバリー処理方法選択
手段,制御手段)を、サーマルプリンタ側に設けた構成
として実施することができる。
On the other hand, the host computer 1 has a CPU 2
, ROM 3, RAM 4, etc., and is configured to transmit product data and the like to the control section 10 of the ECR and receive its sales results. Here, in this embodiment, the error detection means, state detection means, and recovery control means are ECR (1
0) side, that is, the thermal printer side, and the storage means and recovery processing method selection means are provided on the host computer 1 side. Of course, everything (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)に示す内容である。
Now, the error detection means is for automatically detecting various causes of errors in the thermal printer, such as receipt paper end as shown in FIG. Each error cause is temporarily stored in the RAM 13 as shown in FIG. 2(A). On the other hand, the status detection means is a means for automatically detecting the operating status of the thermal printer itself when an error occurs.
In this embodiment, it consists of a CPU 11, and the detection operation state is also R.
It is stored in AM13. The operating status can be roughly divided into whether or not the printing operation is in progress as shown in ST11, 13, 16, and 18 in FIG. 4, and the details are shown in FIG. 2(B).

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

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

【0019】次に、リカバリー制御手段は選択されたリ
カバリー処理方法を実施するために必要なエンジンを適
時かつ相互に連関をもたせて駆動制御するもので、この
実施例では図4〜図6に示すプログラムを格納するRO
M12とこれを実行するCPU11とから構成されてい
る。
Next, the recovery control means is for driving and controlling the engines necessary for carrying out the selected recovery processing method in a timely and mutually linked manner, and in this embodiment, as shown in FIGS. 4 to 6 RO to store programs
It is composed of an 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 explained mainly in FIGS. 4 to 6.
Explain with reference to. When a limit switch or the like 20 serving as an error detection means operates and detects the cause of the error, the cause of the error is stored in the RAM 13 as shown in FIG. 2(A). At the same time, the CPU 11 as a state detection means detects the operating state at the time of error occurrence and stores it in the RAM 13 as shown in FIG.

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

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

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

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

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

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

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

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

【0029】R7処理と判断(ST34のNO)される
と、カットフラグをONし(ST35)、図7(C)に
示すようにメッセージ(破棄)を印字後、ロングレシー
ト(送り)し、Y−Y線でカットする。したがって、S
T36,37でエラー処理され、この処理が完了後、新
たに印字処理される(ST10,40)。
When it is determined that R7 processing is required (NO in ST34), the cut flag is turned ON (ST35), and after printing a message (discard) as shown in FIG. -Cut along the Y line. Therefore, S
Error processing is performed at 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 detection means (20), the state detection means (11), and the storage means (4)
), recovery processing method selection means (2, 3), and recovery control means (11, 12) are provided to automatically detect the cause of the error and the operating state at the time of error occurrence, and execute the optimal recovery processing according to the situation. Since the printer is configured to do this, it is possible to speed up printing operations, save resources, and improve printing quality while reducing size and cost.

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

【0032】[0032]

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

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

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

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

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

【図4】同じく動作を説明するためのフローチャート(
1)である
[Figure 4] Flowchart for explaining the operation (
1)

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

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

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

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

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

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

1  ホストコンピュータ 2  CPU(リカバリー処理方法選択手段)3  R
OM(リカバリー処理方法選択手段)4  RAM(記
憶手段) 10  制御部 11  CPU(状態検出手段,リカバリー制御手段)
12  ROM(リカバリー制御手段)13  RAM 14  CG 15  シェアードRAM 16  インターフェース 20  リミットスイッチ類(エラー検出手段)31 
 サーマルヘッド 33  ロールフィードモータ 35  ジャーナルフィードモータ
1 Host computer 2 CPU (recovery processing method selection means) 3 R
OM (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 detection means) 31
Thermal head 33 Roll feed motor 35 Journal feed motor

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  用紙の搬送方向と直交する方向にライ
ン状に配設されたサーマルヘッドを有するサーマルプリ
タにおいて、各種エラー原因を検出するエラー検出手段
と、エラー発生時における動作状態を検出する状態検出
手段と、エラー原因および動作状態に対応された複数の
リカバリー処理方法を記憶する記憶手段と、該エラー検
出手段および状態検出手段からの検出信号に基づいて対
応するリカバリー処理方法を読取るリカバリー処理方法
選択手段と、選択されたリカバリー処理方法を実施する
ために必要なエンジンを駆動制御するリカバリー制御手
段と、を具備したサーマルプリンタ。
1. In a thermal printer having a thermal head arranged in a line in a direction perpendicular to a paper conveyance direction, an error detection means for detecting various causes of errors and a state for detecting an operating state when an error occurs. A detection means, a storage means for storing a plurality of recovery processing methods corresponding to error causes and operating states, and a recovery processing method for reading a corresponding recovery processing method based on detection signals from the error detection means and the state detection means. A thermal printer comprising a selection means and a recovery control means for driving and controlling an engine necessary for carrying out a 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 true JPH04348979A (en) 1992-12-03
JP2655625B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010036440A (en) * 2008-08-05 2010-02-18 Seiko Epson Corp Reprinting controlling method of printer, and printer
JP2013126759A (en) * 2013-01-16 2013-06-27 Seiko Epson Corp Method for controlling reprint of printer, and printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010036440A (en) * 2008-08-05 2010-02-18 Seiko Epson Corp Reprinting controlling method of printer, and printer
JP2013126759A (en) * 2013-01-16 2013-06-27 Seiko Epson Corp Method for controlling reprint of printer, and printer

Also Published As

Publication number Publication date
JP2655625B2 (en) 1997-09-24

Similar Documents

Publication Publication Date Title
US5911527A (en) Hybrid printer device equipped with a plurality of printing mechanisms and control method therefore
EP0945824B1 (en) On-line state resumption in a printer
EP0156392B1 (en) Printing apparatus
JPH04348979A (en) Thermal printer
JP3127091B2 (en) Additional printing processing method
EP1134649A2 (en) Communication terminal device, method of processing data received by same, and computer program product for achieving the method
JP3742268B2 (en) Stencil printing system, stencil printing method, and computer-readable recording medium storing stencil printing program
JPH07182565A (en) Method for controlling print of receipt in pos terminal
JP3426683B2 (en) Tape printer
JPS60101067A (en) Paper handling system of printer
JPH06155851A (en) Printer
JP2989499B2 (en) Printing device
JP2704264B2 (en) Recording device
JPH10119391A (en) Composite printer with plural printer mechanisms and is controlling method
JPH07228015A (en) Printer
JP2808688B2 (en) Printer
JPH07186455A (en) Label printer and data preparation apparatus
JPH05342238A (en) Slip printer
JP2821911B2 (en) Printing control device
JPH0243069A (en) Page printer
JPH02110626A (en) Error display control device for printing device
JPS58145478A (en) Paper feed controller for printer
JPS62255354A (en) Document processor
JPH06278342A (en) Printer
JP2000128418A (en) Printing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080530

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100530

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees