JP2005007761A - Error reset method in printer, program and printer - Google Patents

Error reset method in printer, program and printer Download PDF

Info

Publication number
JP2005007761A
JP2005007761A JP2003175016A JP2003175016A JP2005007761A JP 2005007761 A JP2005007761 A JP 2005007761A JP 2003175016 A JP2003175016 A JP 2003175016A JP 2003175016 A JP2003175016 A JP 2003175016A JP 2005007761 A JP2005007761 A JP 2005007761A
Authority
JP
Japan
Prior art keywords
paper
paper type
error
type
printing apparatus
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
JP2003175016A
Other languages
Japanese (ja)
Other versions
JP4244719B2 (en
Inventor
Masayo Miyasaka
昌代 宮坂
Toshihiro Tsukada
敏博 塚田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003175016A priority Critical patent/JP4244719B2/en
Publication of JP2005007761A publication Critical patent/JP2005007761A/en
Application granted granted Critical
Publication of JP4244719B2 publication Critical patent/JP4244719B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer in which error reset can be easily performed while minimizing waste of paper sheets for detection. <P>SOLUTION: The printer 10, which performs printing on a plurality of kinds of a continuous paper sheet P, detects the kind of the continuous paper sheet P while feeding the continuous paper sheet and controls printing depending on the detected kind of paper sheet. The kind of paper sheet is periodically detected and continuously stored until the kind of paper sheet is updated. It is determined whether the detected kind of paper sheet matches with the stored kind of paper sheet or not. When it is determined that the kind of paper sheet does not match or continuation of printing is difficult, error is informed. The error is reset by opening and closing a lid 12 which covers a paper holding section 25. The error reset comprises detecting the kind of paper sheet by feeding the continuous paper sheet P and updating the stored kind of paper sheet based on the result of the detection. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、複数種類の連続用紙に印刷を行う印刷装置であって、連続用紙を繰り出しながら当該連続用紙の用紙種類を検出すると共に検出した用紙種類に応じて印刷制御を行う印刷装置のエラー復帰方法、プログラムおよび印刷装置に関するものである。
【0002】
【従来の技術】
従来、長尺状の台紙に所定間隔を存して複数のラベルが配置されたラベル紙、長尺状の用紙に所定間隔でマークが付されたマーク付用紙、および長尺状の無地用紙である普通紙など、複数種類の連続用紙に印刷を行う印刷装置が知られている。この種の印刷装置は、上記の連続用紙が巻回された状態で収容され、当該用紙収容部から繰り出された連続用紙の用紙種類を定期的に検出し、その検出結果に基づいて用紙種類に応じた印刷制御を行っている(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開2002−205872号公報
【0004】
ところで、このような複数種類の連続用紙に印刷可能であって、連続用紙がカートリッジに収容されることなくむき出しの状態で収容されている印刷装置は、どの連続用紙が収容されているかを検出するために、連続用紙の繰り出しが必要となる(連続用紙がカートリッジに収容されている場合は、カートリッジを検出することで用紙種類が特定できるため、連続用紙の繰り出しを必要としない場合が多い)。このため、連続用紙を使い切ってしまった場合(用紙切れの状態になった場合)など、用紙交換毎に用紙種類の検出を行うと、その都度連続用紙が繰り出されるため、用紙の無駄が発生してしまうことになる。
【0005】
そこで、この問題を解決するため、検出した用紙種類を記憶しておき、ユーザによって用紙種類の更新(設定)が為されるまでは、その連続用紙が収容されているものとして、連続用紙が交換されても検出を行うことなく(連続用紙を繰り出すことなく)、その連続用紙に適した印刷制御を行う方法が知られている。
【0006】
この場合、異なる用紙種類が収容されると、検出結果が記憶した用紙種類と一致しないため、エラーとなってしまうが、エラー復帰(リカバリ)するためには、例えば図15に示すようなエラー復帰操作が必要であった。すなわち、エラーとなった後、ユーザにより電源がオフされ(S101)、用紙収容部の蓋体が開蓋される(S102)。続いて、紙送りのためのスイッチが押下された状態で電源がオンされることで(S103)、エラー復帰モードとなる。エラー復帰モードでは、紙送りのためのスイッチ本来の紙送り機能はなくなり、同スイッチが6回押下され(S104)、ユーザにより蓋体が閉蓋されると(S105)、紙送りを開始しその紙送り中に検出した検出結果に基づいて用紙種類の更新を行う(S106)。このように、エラー復帰動作には、通常の操作で誤ってエラー復帰を行い得ないような煩雑な操作が必要とされていた。
【0007】
【発明が解決しようとする課題】
しかしながら、このようなエラー復帰操作は、異なる連続用紙に交換する頻度が少ない場合はさほど問題ではないが、交換する頻度が多いユーザにとっては、大変煩わしい操作であった。
【0008】
本発明は、上記の問題点に鑑み、複数種類の連続用紙に印刷可能であり、当該連続用紙の検出結果に基づいて印刷制御を行う場合において、検出のための用紙の無駄を最小限に抑えつつ、容易にエラー復帰を行い得る印刷装置のエラー復帰方法、プログラムおよび印刷装置を提供することを目的としている。
【0009】
【課題を解決するための手段】
本発明の印刷装置のエラー復帰方法は、長尺状の台紙に所定間隔を存して複数のラベルが配置されたラベル紙と、長尺状の用紙に所定間隔でマークが付されたマーク付用紙と、長尺状の無地用紙である普通紙とのうち、少なくともいずれかの用紙を含む複数種類の連続用紙に印刷を行う印刷装置であって、連続用紙を巻回した状態で収容する用紙収容部と、当該用紙収容部を覆蓋する蓋体とを有し、連続用紙を繰り出しながら当該連続用紙の用紙種類を検出すると共に検出した用紙種類に応じて印刷制御を行う印刷装置のエラー復帰方法において、連続用紙を繰り出しながら、繰り出された当該連続用紙の用紙種類を定期的に検出する用紙種類検出工程と、検出した用紙種類を、当該用紙種類の更新が行われるまで継続して記憶する用紙種類記憶工程と、用紙種類の検出に伴い、検出した用紙種類と記憶した用紙種類とが一致するか否かを判別する判別工程と、判別工程において、用紙種類が一致しないと判別した場合、および/または印刷の続行が困難と判別した場合、エラー報知を行うエラー報知工程と、エラー報知後、ユーザによる蓋体の開閉により、エラー復帰を行うエラー復帰工程と、を備え、エラー復帰工程は、蓋体の閉蓋に伴い、連続用紙を繰り出して用紙種類を検出し、当該検出結果に基づいて記憶した用紙種類の更新を行う用紙種類更新工程を含むことを特徴とする。
【0010】
また、本発明の印刷装置は、長尺状の台紙に所定間隔を存して複数のラベルが配置されたラベル紙と、長尺状の用紙に所定間隔でマークが付されたマーク付用紙と、長尺状の無地用紙である普通紙とのうち、少なくともいずれかの用紙を含む複数種類の連続用紙に印刷を行う印刷装置において、連続用紙を巻回した状態で収容する用紙収容部と、用紙収容部を覆蓋する蓋体と、連続用紙を繰り出しながら、繰り出された当該連続用紙の用紙種類を定期的に検出する用紙種類検出手段と、検出した用紙種類に応じて印刷制御を行う印刷制御手段と、検出した用紙種類を、当該用紙種類の更新が行われるまで継続して記憶する用紙種類記憶手段と、検出した用紙種類と記憶した用紙種類とが一致するか否かを判別する判別手段と、用紙種類が一致しないと判別した場合、および/または印刷の続行が困難と判別した場合、エラー報知を行うエラー報知手段と、エラー報知手段のエラー報知後、ユーザによる蓋体の開閉により、エラー復帰を行うエラー復帰手段と、を備え、エラー復帰手段は、蓋体の閉蓋後、用紙種類検出手段により用紙種類を検出し、用紙種類記憶手段に記憶された用紙種類の更新を行う用紙種類更新手段を含むことを特徴とする。
【0011】
これらの構成によれば、検出した用紙種類に応じて印刷制御を行うため、ユーザによる用紙設定の手間を省き、収容された連続用紙に適した印刷制御を行うことができる。また、検出した用紙種類を、当該用紙種類の更新が行われるまで継続して記憶するため、用紙切れの際などの用紙交換毎に連続用紙の検出を行う必要がない。したがって、不必要に用紙を無駄にすることがない。また、エラー報知後は、ユーザによる蓋体の開閉により、エラー復帰を行うことができ、さらにこの場合、用紙種類の検出および更新を行うため、ユーザによる用紙種類更新(用紙設定)のための操作を必要としない。すなわち、エラー復帰並びに用紙設定を容易且つ迅速に行うことができるため、ユーザの使い勝手を格段に向上させることができる。
【0012】
この場合、用紙種類更新工程において、用紙種類をラベル紙またはマーク付用紙に更新した場合、エラー復帰工程は、連続用紙の頭出しを行う頭出し工程を含むことが好ましい。
【0013】
また、この場合、用紙種類更新手段により、用紙種類をラベル紙またはマーク付用紙に更新した場合、エラー復帰手段は、連続用紙の頭出しを行う頭出し手段を含むことが好ましい。
【0014】
これらの構成によれば、用紙種類がラベル紙またはマーク付用紙に更新された場合、引き続き連続用紙の頭出しを行うため、ユーザはいかなる連続用紙を用いる場合でも、適切な位置から印刷を開始することができる。また、エラー復帰時に頭出しまで終了しているため、頭出し直後に印刷操作を再開することができる。
【0015】
これらの場合、用紙種類検出工程では、連続用紙に照射した光の透過受光レベルおよび反射受光レベルに基づいて、用紙種類を検出することが好ましい。
【0016】
また、これらの場合、連続用紙に照射した光の透過受光レベルを検出する透過型光学センサ、および連続用紙に照射した光の反射受光レベルを検出する反射型光学センサをさらに備え、用紙種類検出手段は、透過受光レベルおよび反射受光レベルに基づいて、用紙種類を検出することが好ましい。
【0017】
これらの構成によれば、連続用紙に光を照射し、その透過受光レベルおよび反射受光レベルに基づいて用紙種類を検出するといった簡易な構成で、確実に用紙種類を検出することができる。
【0018】
この場合、判別工程では、透過受光レベルがその基準値よりも高く、且つ反射受光レベルがその基準値よりも低いとき、用紙切れであることを判別し、エラー報知工程では、判別工程において用紙切れと判別した場合、エラー報知を行うことが好ましい。
【0019】
また、この場合、判別手段は、透過受光レベルがその基準値よりも高く、且つ反射受光レベルがその基準値よりも低いとき、用紙切れであることを判別し、エラー報知手段は、判別手段により用紙切れと判別した場合、エラー報知を行うことが好ましい。
【0020】
これらの構成によれば、用紙種類に関わらず、瞬時に用紙切れを判別することができる。したがって、迅速にエラー報知を行うことができる。
【0021】
この場合、エラー報知工程では、用紙切れと判別した場合のエラー報知と、その他のエラー報知とを差別化して報知することが好ましい。
【0022】
また、この場合、エラー報知手段は、用紙切れと判別した場合のエラー報知と、その他のエラー報知とを差別化して報知することが好ましい。
【0023】
これらの構成によれば、用紙切れと判別した場合のエラー報知と、その他のエラー報知とが差別化されるため、ユーザは、印刷装置に収容された連続用紙を確認することなく、瞬時にエラーの内容(少なくとも用紙切れのエラーであるか否か)を把握することができる。
【0024】
これらの場合、用紙種類記憶工程では、用紙種類を不揮発性メモリに記憶することが好ましい。
【0025】
また、これらの場合、用紙種類記憶手段は、不揮発性メモリによって構成されていることが好ましい。
【0026】
これらの構成によれば、用紙種類を不揮発性メモリに記憶するため、電源オフ後も同種類の連続用紙を用いる場合は、用紙種類の検出を行う必要がない。したがって、より用紙の無駄を省くことができる。
【0027】
これらの場合、エラー復帰工程では、電源キーのオン/オフ操作を必要とすることなく、蓋体の1回のみの開閉に伴ってエラー復帰を行うことが好ましい。
【0028】
また、これらの場合、電源供給を指示するための電源キーをさらに備え、エラー復帰手段は、電源キーのオン/オフ操作を必要とすることなく、蓋体の1回のみの開閉に伴ってエラー復帰を行うことが好ましい。
【0029】
これらの構成によれば、エラー復帰の際、電源キーのオン/オフ操作を必要としないため、各種設定情報が消えることがない。また、ユーザは蓋体を1回開閉させるだけの簡単な操作で、より迅速にエラー復帰を行うことができる。
【0030】
本発明のプログラムは、上記のいずれか1に記載の印刷装置のエラー復帰方法における各工程を実行させることを特徴とする。
【0031】
この構成によれば、複数種類の連続用紙に印刷可能であり、当該連続用紙の検出結果に基づいて印刷制御を行う印刷装置において、検出のための用紙の無駄を最小限に抑えつつ、容易にエラー復帰を行い得るプログラムを提供することができる。
【0032】
【発明の実施の形態】
以下、添付図面を参照して、本発明の実施形態に係る印刷装置のエラー復帰方法、プログラムおよび印刷装置について詳細に説明する。本実施形態の印刷装置は、複数種類の連続用紙に印刷可能であり、検出した用紙種類に応じて印刷制御を行う構成となっている。そしてこの場合、検出した用紙種類を、当該用紙種類の更新(再設定)が行われるまで継続して記憶するため、用紙切れの際などの用紙交換毎に連続用紙の検出を行う必要がなく、ひいては用紙検出のための用紙の無駄をなくすことができる。また、エラー報知後は、ユーザによる蓋体の開閉により、容易且つ迅速にエラー復帰および用紙種類の更新を行うため、ユーザによる用紙設定のための特別な操作を必要とせず、使い勝手を格段に向上させることができる。そこで、ホストコンピュータと接続され、当該ホストコンピュータから送信された印刷データおよび制御データに基づいて印刷を行う印刷装置を例に挙げて説明する。
【0033】
図1は本発明の一実施形態に係る印刷装置を縦置きにした状態の斜視図、図2はその印刷装置の蓋体を開いた状態の斜視図、図3は印刷装置を横置きにした状態の断面図、図4はその印刷装置の蓋体を開いた状態の断面図である。これらの図に示すように、本実施形態の印刷装置10は、印刷した連続用紙P(ロール紙)を前面から排出する縦置き姿勢と、上面から排出する横置き姿勢との2つの姿勢で使用可能であるが、以下においては横置き姿勢を基準として説明する。
【0034】
印刷装置10は、上部が開口した筐体11と、上部開口を開閉自在に覆蓋する蓋体12とによって構成され、当該蓋体12を開放することによって、連続用紙Pの交換および内部の保守、点検が可能となっている。連続用紙Pは、巻回された状態で、カートリッジ等のケースに収容されることなく、直接(剥き出しの状態で)印刷装置内部の用紙収容部25に収納されている。また、用紙収容部25から繰り出された連続用紙Pの先端側は、搬送路13を経由して排紙口14から筐体外へ導かれる。
【0035】
また、印刷装置10は、コネクタ等を介してホストコンピュータ100(図8参照)と接続されており、当該ホストコンピュータ100からの印刷指示にしたがって、印刷制御を行う。すなわち、ホストコンピュータ100からの印刷指示により、搬送路13上に配置された、印刷ヘッド(サーマルヘッド)15、プラテンローラ16およびカッタ機構17を適宜駆動すると共に、連続用紙Pの排紙口14に向けて搬送(連続用紙Pの繰り出し)を行い、当該搬送に伴ってキャラクタ(文字や記号など)および絵柄等の印刷を行う。そして、印刷を完了し、さらに連続用紙Pを搬送して、印刷済み部分の後端位置がカッタ機構17の切断位置に達したとき、カッタ機構17により切断分離し、排紙口14から単票用紙として利用者に提供する。
【0036】
また、筐体11の上面(図1の縦置きの場合は前面)には、印刷装置10内の各種エラーを表示する複数のLED41,42,43が備えられている。例えば、用紙収容部25に収容された用紙を使い切った場合(用紙切れとなった場合)は、用紙切れエラーLED41によりエラーを報知し、予めフラッシュROM250(図8参照)内に記憶していた用紙種類と、用紙種類検出センサ21(図5参照)により検出した用紙種類とが異なる場合(詳細については後述する)は、用紙違いエラーLED42によりエラーを報知し、その他の印刷続行が困難となるエラーが発生した場合は、その他エラーLED43によりエラーを報知する。
【0037】
なお、報知方法は、各LED41,42,43を点灯状態にするだけでも良いし、これらを点滅させても良い。また、LED41,42,43の表示と共に、ビープ音(電子音)等を発生させ、より効果的にユーザにエラー報知を行うようにしても良い。
【0038】
ところで、上記の通り、本実施形態の印刷装置10は、連続用紙Pの用紙種類を検出することによって、その連続用紙Pに適した印刷制御を行うものであるが、当該用紙種類の検出は、搬送路13における印刷ヘッド15の上流側近傍に配置された用紙種類検出センサ21(透過・反射兼用型光学センサ)によって行われる。
【0039】
図5は、用紙種類検出センサ21の拡大断面図であるが、同図に示すように、用紙種類検出センサ21は、搬送路13を挟んで対向する表裏のセンサユニット21a、21bによって構成されている。連続用紙Pの表面(印刷面)に対向する表側センサユニット21aは、印刷装置本体側に設けられており、内部には透過用発光素子22が組込まれる。透過用発光素子22は、受光素子23に対向して配置され、透過用発光素子22および受光素子23を一対として透過型光学センサ31を構成している。一方、連続用紙Pの裏面(非印刷面)に対向する裏側センサユニット21bは、蓋体12側に設けられており、内部に組込まれる反射用発光素子24および受光素子23を一対として反射型光学センサ32を構成している。
【0040】
透過用発光素子22と反射用発光素子24とは、紙送りピッチ(1ドット)毎に交互に発光駆動され、それに応じて受光素子23が透過受光レベル信号と反射受光レベル信号とを交互に出力する。例えば紙送りステッピングモータ122(図8参照)の4ステップで1ドットを構成している場合、紙送りステッピングモータ122の駆動パルスに同期し、4ステップ毎に発光素子22、24の発光駆動が交互に切換られる。
【0041】
次に、図6を参照し、本実施形態の印刷装置10に適用可能な連続用紙Pの一例について説明する。同図(a)は、長尺状の無地用紙である普通紙P1を示し、同図(b)は、長尺状の台紙18に所定長さL1のラベル19が所定間隔L2を存して複数配置されたラベル紙P2を示し、同図(c)は、長尺状の用紙の一側部に所定間隔L4でマーク長さL3のマーク(ブラックマーク)20が付されたマーク付用紙P3を示している。なお、各連続用紙Pの印刷面(表面)は、普通紙P1およびラベル紙P2においては図示上側、マーク付用紙P3については、図示下側となっている。
【0042】
本実施形態の印刷装置10は、ここに示す連続用紙Pを含む複数種類の連続用紙Pに印刷可能となっている。また、ラベル紙P2におけるラベル19の長手方向長さL1、およびラベル間隔L2、並びにマーク付用紙P3におけるマーク20の形態、色、配置位置(図示では、左側部であるが、中央、右側部など)およびマーク間隔L4については、任意に設定可能であり、これらの態様が異なる連続用紙Pを複数使用することも可能である。
【0043】
ここで、図7を参照し、用紙種類検出センサ21により、上記の連続用紙Pを検出した場合の、各用紙における透過受光レベルおよび反射受光レベルについて説明する。同図(a)および(b)に示すように、マーク付用紙P3を使用した場合、透過受光レベルは、用紙位置に関わらず基準値(しきい値:後述する)AよりもL(低い)となる。また、反射受光レベルは、白紙部分では基準値(しきい値)BよりもH(高い)となり、マーク部分では基準値BよりもLとなる。したがって、マーク付用紙P3を使用した通常印刷処理においては、透過受光レベルを利用することなく(用紙切れ判別では利用)、反射受光レベルにより基準位置(マーク部分)を判別して所定の位置に印刷を行う。
【0044】
一方、ラベル紙P2を使用した場合、透過受光レベルは、ラベル部分では基準値AよりもLとなり、台紙部分では基準値AよりもHとなる。また、反射受光レベルは、紙位置に拘わらず基準値BよりもHとなる。したがって、ラベル紙P2を使用した通常印刷処理においては、反射受光レベルを利用することなく(用紙切れ判別では利用)、透過受光レベルにより基準位置(台紙部分)を判別して所定の位置に印刷を行う。
【0045】
また、普通紙P1を使用した場合、紙位置に拘わらず、透過受光レベルは基準値AよりもLで、反射受光レベルは基準値BよりもHとなる。したがって、普通紙P1を使用した通常印刷処理においては、何れかの受光レベル(本実施形態では透過)を用紙切れ判別に利用する。さらに、透過受光レベルが基準値AよりもHで、反射受光レベルが基準値BよりもLの場合は、用紙の種類に関わらず、用紙切れ(紙無し)状態と判別する。
【0046】
ここで、印刷装置10の制御構成について、図8の制御ブロック図を参照して説明する。印刷装置10は、用紙切れエラーLED41、用紙違いエラーLED42、およびその他エラーLED43を有し、各種エラーを表示する表示部110と、連続用紙Pを収容した用紙収容部25と、印刷ヘッド(サーマルヘッド)15と、紙送りモータ122により連続用紙Pを搬送する用紙送り部121とを有し、ホストコンピュータ100から送信された印刷データに基づいて連続用紙P上に印刷を行う印刷部120と、用紙カッタ17bとこれを駆動するカッタモータ17aとを有し、連続用紙Pの印刷済み部分の後端を切断する切断部130(カッタ機構17)と、蓋体12の開閉を検出する蓋体検出センサ142と、用紙収容部25内に収容された連続用紙(ロール紙)Pの装填または非装填を検出する用紙検出センサ143と、透過型光学センサ31および反射型光学センサ32から成る用紙種類検出センサ21とを有し、各種検出を行う検出部140と、表示ドライバ151、ヘッドドライバ152およびモータドライバ153(送りモータドライバ153a、カッタモータドライバ153b)を有し、各部を駆動する駆動部150と、各部と接続され、印刷装置10全体を制御する制御部200と、によって構成されている。
【0047】
制御部200は、CPU210、ROM220、キャラクタジェネレータROM(CG−ROM)230、RAM240、フラッシュROM250および入出力制御装置(以下、「IOC:Input Output Controller」という)260を備え、互いに内部バス270により接続されている。ROM220は、用紙種類に応じた印刷制御を行うためのプログラムの他、CPU210で処理する各種プログラムを記憶する制御プログラムブロック221と、用紙種類検出センサ21の検出結果(透過受光レベルおよび反射受光レベル)に応じて用紙種類を特定するための判別テーブル(図7(b)参照)や、印刷装置10の出荷時において設定されたしきい値に関するデータなどを含む制御データを記憶する制御データブロック222とを有している。また、CG−ROM230は、文字や記号のフォントデータを記憶しており、文字等を特定するコードデータが与えられたときに対応するフォントデータを出力する。なお、ホストコンピュータ100の処理能力に応じて、CG−ROM230を省略した構成としても良い。
【0048】
RAM240は、フラグ等として使用される各種ワークエリアブロック241の他、ホストコンピュータ100より送信された印刷データを記憶する印刷データブロック242とを有し、制御処理のための作業領域として使用される。
【0049】
フラッシュROM250は、用紙種類検出センサ21で検出した検出結果に基づいて特定された用紙種類に関するデータを記憶する用紙種類データブロック251と、用紙種類を特定するための基準値となるしきい値(設定されたしきい値:図10参照)を記憶するしきい値データブロック252とを有し、用紙種類の更新が行われるまで継続して記憶する。当然、フラッシュROM250であるため、電源がオン/オフされてもこれら記憶したデータを失うことはない。用紙種類の更新は、表示部110のLED41,42,43によるエラー報知後、ユーザによる蓋体12の開閉をトリガとして実行するが、詳細については後述する。なお、ここに示すフラッシュROM250は、各種不揮発性メモリに代用可能である。すなわち、電源切断によって記憶したデータを損失しないものであればいかなる記憶媒体を用いても良い。
【0050】
IOC260には、CPU210の機能を補うと共に各種周辺回路とのインターフェース信号を取り扱うための論理回路が、ゲートアレイやカスタムLSIなどにより構成されて組み込まれている。これにより、IOC260は、ホストコンピュータ100からの印刷データや制御データをそのまま或いは加工して内部バス270に取り込むと共に、CPU210と連動して、CPU210から内部バス270に出力されたデータや制御信号を、そのまま或いは加工して駆動部150に出力する。
【0051】
そして、CPU210は、上記の構成により、ROM220内の制御プログラムにしたがって、IOC260を介してホストコンピュータ100および印刷装置10内の各部から各種信号・データを入力し、CG−ROM230からのフォントデータ、RAM240内の各種データを処理し、IOC250を介して印刷装置10内の各部に、各種信号・データを出力することにより、フラッシュROM250内に記憶された用紙種類に適した印刷処理の制御やエラー復帰処理などを行う。
【0052】
次に、図9を参照し、印刷装置10のエラー復帰処理について説明する。上記の通り、印刷装置10は、用紙収容部25に収容された用紙を使い切った場合、予めフラッシュROM250(図8参照)内に記憶していた用紙種類と検出した用紙種類とが異なる場合、並びにその他印刷続行が困難なエラーが発生した場合に、LED41,42,43によりエラー報知を行うが、エラー報知後、蓋体12を開閉することにより、エラー復帰(リカバリ)できるようになっている。
【0053】
図9のフローチャートに示すように、まずエラー状態で、ユーザにより蓋体(カバー)12の開閉(オープンの後クローズ)が行われると(S1)、印刷装置10は、蓋体検出センサ142によりこれを検出し、エラー復帰処理を行う(S2)。エラー復帰処理は、用紙切れの判別およびしきい値の設定(第1処理)、並びに用紙種類の判別・更新および頭出し(第2処理)の2つの処理が行われる。すなわち、ユーザが必要な操作は、蓋体12の1回の開閉だけであり、これにより容易且つ迅速にエラー復帰を行うことができる。
【0054】
ここで、図10および図11を参照し、エラー復帰処理について説明する。上記の通り、エラー復帰処理としては用紙切れの判別およびしきい値の設定を行う第1処理と、用紙種類の判別・更新および頭出しを行う第2処理を行う。なお、第1処理において設定されるしきい値は、印刷装置10の出荷時に記憶されたしきい値(初期しきい値)と区別して、以下「レベル値」と称する。第1処理で設定されたレベル値A、Bは、第2処理における用紙種類の判別・更新や頭出しに反映され、第2処理の用紙判別結果は、通常印刷処理に反映される。また、レベル値Aは、透過受光レベルの高低判別に用いる判別基準値、レベル値Bは、反射受光レベルの高低判別に用いる判別基準値である(図7(a)参照)。
【0055】
そこで、まず第1処理の手順について、図10のフローチャートを参照して説明する。第1処理がスタートすると、透過型受光センサ31の出力である透過受光レベルを入力し(S11)、透過受光レベルがしきい値A(初期しきい値A)以下であるか否かを判別する(S12)。透過受光レベルがしきい値Aよりも大きい場合(S12:No)には、反射型受光センサ32の出力である反射受光レベルを入力し(S13)、反射受光レベルがしきい値B(初期しきい値B)以下であるか否かを判別する(S14)。ここで、反射受光レベルがしきい値B以下である場合(S14:Yes)には、用紙切れ状態であると判別し、用紙切れエラー処理として、用紙切れエラーLED41を点灯する(S15)。
【0056】
一方、透過受光レベルがしきい値A以下である場合(S12:Yes)は、紙送りを開始し(S16)、ラベル紙P2の台紙部分でないことを確認して透過受光レベルを取得(S17)すると共に、マーク付用紙P3のマーク部分でないことを確認して反射受光レベルを取得する(S18)。台紙部分でないことの確認は、所定量(L2以上で、且つL3以上:図6参照)の紙送りの間に透過受光レベルが1.5倍を越えて変化しないことを条件に行われる。また、マーク部分でないことの確認は、上記所定量の紙送りの間に反射受光レベルが0.6倍を越えて変化しないことを条件に行われる。
【0057】
その後、両受光レベルの取得が正常に終了したか否かを判別し(S19)、ここでエラーを判別した場合(受光レベルが正常に取得できなかった場合(S19:Error))には、エラー処理として、その他エラーLED43を点灯する(S20)。また、台紙部分以外の透過受光レベルおよび/またはマーク部分以外の反射受光レベルを取得できなかった場合(S19:No)は、紙送りを続けながら各受光レベルを取得する。一方、両受光レベルを正常に取得した場合(S19:Yes)は、取得した透過受光レベルの1.5倍をレベル値Aとし(S21)、また、取得した反射受光レベルの0.6倍をレベル値Bとして設定する(S22)。これにより、現在収容されている連続用紙Pの受光レベルを基準として、当該連続用紙Pに応じたレベル値A、Bが設定(更新)されることになる。設定されたレベル値は、フラッシュROM250内のしきい値データブロック252(図8参照)に格納される。
【0058】
なお、上記の第1処理において、用紙切れエラー報知(S15)後のエラー復帰処理では、処理開始時に用紙検出センサ143(図8参照)で、連続用紙Pの装填を検出することが好ましい。この場合、連続用紙Pの装填を検出しなかった場合は、透過受光レベルおよび反射受光レベルの判別を行うことなく、再度、用紙切れエラー処理を行うことができる。すなわち、この構成によれば、S11〜14の処理を省略することができる。
【0059】
次に、第2処理の手順について、図11のフローチャートを参照して説明する。第2処理がスタートすると、紙送りを開始(S31)すると共に、透過受光レベルを入力し(S32)、透過受光レベルがレベル値A以上であるか否かを判別する(S33)。ここで、レベル値A以上であると判別した場合(S33:Yes)には、反射受光レベルを入力し(S34)、反射受光レベルがレベル値B以下であるか否かを判別する(S35)。そして、レベル値B以下である場合(S35:Yes)には、用紙切れ状態であると判別し、用紙切れ処理として、用紙切れエラーLED41を点灯し(S36)、第2処理(エラー復帰処理)を終了する。なお、この場合、ユーザにより蓋体12が開蓋され、連続用紙Pが投入された後、蓋体12が閉蓋されることにより、再度エラー復帰処理を実行することとなる。一方、反射受光レベルがレベル値Bより大きい場合(S35:No)には、ラベル紙P2であると判別して用紙種類データブロック251(図8参照)の更新を行い(S37)、ラベル紙用頭出し(S38)を実行した後、処理を終了する。
【0060】
また、透過受光レベルがレベル値Aより小さいと判別した場合(S33:No)も、反射受光レベルを入力し(S39)、反射受光レベルがレベル値B以下であるか否かを判別する(S40)。そして、レベル値B以下である場合(S40:Yes)には、マーク付用紙P3であると判別して用紙種類データブロック251の更新を行い(S41)、マーク付用紙用頭出し(S42)を実行した後、処理を終了する。
【0061】
一方、反射受光レベルがレベル値Bより大きい場合(S40:No)には、紙送り量が所定量L(L1以上で、且つL4以上)以上か否かを判別し(S43)、ここで紙送り量が所定量L以上であると判別した場合(S43:Yes)には、普通紙P1であると判別して用紙種類データブロック251の更新を行い(S44)、頭出しを行うことなく処理を終了する。また、紙送り量が所定量Lに達していない場合(S43:No)には、紙送りを継続しつつ各受光レベルの判別を繰返し、受光レベルが変化した場合には、その変化に応じた連続用紙Pの判別を行う一方、受光レベルが変化することなく紙送り量が所定量Lに達した場合には、上記普通紙P1の判別を行うことになる。
【0062】
このように本発明によれば、用紙種類検出センサ21の検出結果(透過受光レベルおよび反射受光レベル)に基づいて連続用紙Pの種類を判別するため、普通紙P1、ラベル紙P2およびマーク付用紙P3のいずれかを含む複数種類の連続用紙Pに対応するものでありながら、用紙変更時に設定変更操作をしなくても、その用紙の種類に応じた適正な印刷処理を行うことができ、その結果、ユーザの操作負担を軽減できるだけでなく、設定の誤り等によるトラブルの発生を回避することができる。
【0063】
また、透過受光レベルが高く、且つ、反射受光レベルが高いとき、ラベル紙P2であると判別するため、ラベル紙P2の台紙部分が受光レベル検出位置に達した時点で用紙判別が終了することになり、その結果、用紙判別の所要時間を短縮して迅速なエラー復帰処理が可能になる。同様に、透過受光レベルが低く、且つ、反射受光レベルが低いとき、マーク付用紙P3であると判別するため、マーク付用紙P3のマーク部分が受光レベル検出位置に達した時点で用紙判別が終了することになり、その結果、用紙判別の所要時間を短縮して迅速なエラー復帰処理が可能になる。
【0064】
また、連続用紙Pが所定量L搬送される間、透過受光レベルが低く、且つ、反射受光レベルが高い状態が続いたとき、普通紙P1であると判別するため、ラベル紙P2、マーク付用紙P3に加えて普通紙P1の判別も可能になり、その結果、印刷装置10の汎用性を高めることができる。また、所定量Lは、ラベル紙P2のラベル長さL1より大きく、且つ、マーク付用紙P3のマーク間距離L4より大きいため、ラベル紙P2のラベル部分やマーク付用紙P3の白紙部分を普通紙P1と誤認することがない。さらに、透過受光レベルが高く、且つ、反射受光レベルが低いとき、用紙切れ状態であると判別するため、用紙の種類に拘わらず、用紙切れ状態を瞬時に判別することが可能になり、その結果、迅速な用紙切れ処理が可能になる。
【0065】
また、エラー復帰処理の第1処理として、閉蓋後、透過受光レベルおよび反射受光レベルの高低判別に用いるレベル値A、Bを設定するため、セットされた連続用紙Pの受光レベルに基づいてしきい値A、Bを更新でき、その結果、種類の違いのみならず、紙厚、紙質等が異なる連続用紙Pを使用しても、受光レベルの高低判別を正確に行うことができる。
【0066】
また、レベル値Aの基準になる透過受光レベルを取得するとき、ラベル紙P2の台紙部分ではないことを確認すると共に、レベル値Bの基準になる反射受光レベルを取得するとき、マーク付用紙P3のマーク部分ではないことを確認するため、不適正な基準値に基づくレベル値設定を防止し、受光レベルの高低判別を正確に行うことができる。
【0067】
なお、上記の例では、用紙種類を判別するための紙送り量(所定量L)は、ラベル紙P2のラベル長さL1より大きく、且つ、マーク付用紙P3のマーク間距離L4より大きいものとしたが、この場合、複数種類の紙送り量(所定量L)を複数の候補(例えば16〔cm〕、30〔cm〕など)の中からユーザがメモリスイッチ等で選択できるようにしても良い。この構成によれば、ユーザのニーズに応じて、紙送り量を短くして処理速度を高めたり、紙送り量を長くして処理精度を高めたりすることができる。
【0068】
また、この場合、設定された紙送り量Lよりも、数センチメートル(例えば2〔cm〕など)長く紙送りすることが好ましい。この構成によれば、より確実に用紙種類を検出することができる。
【0069】
次に、通常印刷時における一連の処理について、図12および図13を参照して説明する。図12は、用紙種類が普通紙P1に設定されている場合の処理手順を示し、図13は、用紙種類がラベル紙P2に設定されている場合の処理手順を示したものである。
【0070】
まず、用紙種類が普通紙P1に設定されている場合について説明する。図12のフローチャートに示すように、ユーザにより電源がオンされると、用紙種類データを取得する(S61)。ここでは、フラッシュROM250の用紙種類データブロック251に記憶された用紙種類、すなわち前回設定された用紙種類(ここでは「普通紙」)を取得する。ここで、用紙収容部25に連続用紙Pが収容されていない場合や、印刷による紙送りなどで連続用紙Pが終了したときは、紙なしオフライン(コマンドが送信不可能な状態)となる(S62)。したがって、ユーザにより、蓋体12が開蓋され(S63)、連続用紙Pが投入された(S64)後、蓋体12が閉蓋されると(S65)、オンライン状態となり、紙送りに伴って用紙切れであるか否かを判別する(S66)。
【0071】
ここでは、上記のエラー復帰処理と同様に、透過受光レベルおよび反射受光レベルに基づいて用紙切れを判別し、用紙切れと判別された場合(S66:Yes)は、用紙切れエラーLED41を点灯し、エラー復帰処理を実行する(S67,図9参照)。一方、用紙切れでない場合(S66:No)は、ホストコンピュータ100からの印刷データを取得するまで待機状態となる(S68)。
【0072】
ホストコンピュータ100から印刷データを取得すると、印刷を実行し(S69)、定期的(紙送りステッピングモータ122の4ステップ毎)に、透過受光レベルおよび反射受光レベルを取得して用紙切れを判別する(S70)。ここで、用紙切れと判別した場合(S70:Yes)は、上記の場合と同様に、用紙切れエラーLED41を点灯し、エラー復帰処理を実行する(S67)。一方、用紙切れでない場合(S70:No)は、同じく透過受光レベルおよび反射受光レベルに基づいて、普通紙P1以外であるか(ラベル紙P2またはマーク付用紙P3であるか)を判別し(S71)、普通紙P1以外である場合(S71:Yes)は、用紙違いエラーLED42を点灯し(S72)、エラー復帰処理を実行する。一方、普通紙P1であると判別した場合(S71:No)は、印刷を続行する(S69)。
【0073】
このように、普通紙P1に設定されている場合は、頭出し処理を行わないため、蓋体12の閉蓋直後に、用紙切れを判別し(S66)、用紙違いの判別(S71)は印刷の実行(紙送り)に伴って行われる。
【0074】
次に、用紙種類がラベル紙P2に設定されている場合について説明する。図13のフローチャートに示すように、ユーザにより電源がオンされると、用紙種類データを取得する(S81)。ここでは、フラッシュROM250の用紙種類データブロック251に記憶された用紙種類(ここでは「ラベル紙」)を取得する。また、用紙収容部25に連続用紙Pが収容されていない場合や、印刷による紙送りなどで連続用紙Pが終了したときは、紙なしオフラインとなる(S82)。したがって、ユーザにより、蓋体12が開蓋され(S83)、連続用紙Pが投入された(S84)後、蓋体12が閉蓋されると(S85)、オンライン状態となり、ラベル紙用の頭出しを行う(S86)。
【0075】
ここで、この頭出しに伴い、透過受光レベルおよび反射受光レベルを取得し、その結果用紙切れと判別した場合(S87:Yes)は、用紙切れエラーLED41を点灯し、エラー復帰処理を実行する(S88,図9参照)。一方、用紙切れでない場合(S87:No)は、同じく透過受光レベルおよび反射受光レベルに基づいて、ラベル紙P2以外であるか(マーク付用紙P3または普通紙P1であるか)、若しくはレベル値違いのラベル紙P2であるか(ラベル19部分の透過受光レベルがレベル値Aを超えていないか)を判別し(S89)、設定したラベル紙P2と異なると判別した場合(S89:Yes)は、用紙違いエラーLED42を点灯し(S94)、エラー復帰処理を実行する。一方、設定したラベル紙P2と同じと判別した場合(S89:No)は、ホストコンピュータ100からの印刷データを取得するまで待機状態となる(S90)。
【0076】
ホストコンピュータ100から印刷データを取得すると、印刷を実行し(S91)、定期的(紙送りステッピングモータ122の4ステップ毎)に、透過受光レベルおよび反射受光レベルを取得して、用紙切れを判別する(S92)。ここで、用紙切れと判別した場合(S92:Yes)は、上記の場合と同様に、用紙切れエラーLEDを点灯し、エラー復帰処理を実行する。一方、用紙切れでないと判別した場合(S92:No)は、同じく印刷実行中に取得した透過受光レベルおよび反射受光レベルに基づいて、レイアウト違いのラベル紙P2であるか(ラベル長さL1および/またはラベル間隔L2が異なるか)否かを判別し(S93)、レイアウト違いである場合(S93:Yes)は、用紙違いエラーLED42を点灯し(S94)、エラー復帰処理を実行する。一方、レイアウト違いでない場合(設定したラベル紙P2と同じと判別した場合(S93:No))は、印刷を続行する(S91)。
【0077】
このように、ラベル紙P2に設定されている場合は、蓋体12の閉蓋直後に、頭出しを行い(S86)、これに伴って用紙切れ、並びにマーク付用紙、普通紙またはレベル値違いラベル紙を判別する(S87,S89)。また、印刷の実行(紙送り)に伴って、レイアウト違いラベル紙の判別を行う(S93)。
【0078】
なお、マーク付用紙P3に設定されている場合は、上記のラベル紙P2の例と同様に、蓋体12の閉蓋直後に、頭出しを行い、これに伴って用紙切れ、並びにマーク付用紙、普通紙またはレベル値違いラベル紙を判別する(この場合は、レベル値Bに基づいて判別する)。また、印刷の実行(紙送り)に伴って、レイアウト違いマーク付用紙の判別を行う。
【0079】
以上、説明したとおり、本発明の第1実施形態によれば、検出した用紙種類に応じて印刷制御を行うため、ユーザによる用紙設定の手間を省き、収容された連続用紙Pに適した印刷制御を行うことができる。また、検出した用紙種類を、当該用紙種類の更新が行われるまで継続して記憶するため、用紙切れの際などの用紙交換毎に連続用紙Pの検出を行う必要がない。したがって、不必要に連続用紙Pを無駄にすることがない。また、エラー報知後は、ユーザによる蓋体12の1回の開閉により、簡単にエラー復帰を行うことができ、さらにこの場合、用紙種類の検出および更新を行うため、ユーザによる用紙種類更新(用紙設定)のための操作を必要としない。すなわち、エラー復帰並びに用紙設定を容易且つ迅速に行うことができるため、ユーザの使い勝手を格段に向上させることができる。
【0080】
次に、本発明の第2実施形態に係るエラー復帰処理について、図14を参照して説明する。上記の第1実施形態のエラー復帰処理(図9のS2参照)では、第1処理において、用紙種類判別のための基準値となるレベル値の設定を行い、当該レベル値を用いて第2処理で用紙種類の判別を行うものとしたが、本実施形態では、印刷装置10の出荷時において設定された初期しきい値を用いて用紙種類の判別を行い、その後用紙違いの判別のために用いるレベル値の設定を行う。また、第1実施形態とは異なる用紙種類の判別工程を採用することにより(第1実施形態における用紙種類の判別工程は、図11のS32〜S44参照)、多様な種類の連続用紙Pをより正確に判別することができるといった効果を奏する。そこで、第1実施形態と異なる点を中心に説明する。
【0081】
本実施形態におけるエラー復帰処理は、図14のフローチャートに示すように、紙送りを行い(S201)、透過発光時の受光レベルおよび反射発光時の受光レベルを取得する(S202)。ここで、透過受光レベルがしきい値A(初期しきい値A)以上、且つ反射受光レベルがしきい値B(初期しきい値B)以下の場合(S203:Yes)、用紙切れ状態であると判別し、用紙切れエラー処理として、用紙切れエラーLED41を点灯する(S204)。
【0082】
一方、「透過受光レベルがしきい値A以上、且つ反射受光レベルがしきい値B以下」の条件を満たさない場合(S203:No)は、透過受光レベルがしきい値A以下、且つ反射受光レベルがしきい値B以下であるか否かを判別し(S205)、この条件を満たす場合(S205:Yes)は、マーク付用紙P3であると判別して用紙種類データブロック251の更新を行い(S206)、反射受光レベルの基準となるレベル値Bの設定を行う(S207)。このとき、マーク長さL3以上の紙送り後、すなわちマーク部分以外の反射受光レベルの0.6倍をレベル値Bとして設定する。そして、レベル値Bの設定後、マーク付用紙用頭出しを行い(S208)、処理を終了する。
【0083】
また、「透過受光レベルがしきい値A以下、且つ反射受光レベルがしきい値B以下」の条件を満たさない場合(S205:No)は、透過受光レベルがしきい値A以上か否かを判別し(S209)、当該条件を満たす場合(S209:Yes)は、ラベル紙P2であると判別して用紙種類データブロック251の更新を行い(S210)、透過受光レベルの基準となるレベル値Aの設定を行う(S211)。このとき、台紙部分の長さ(ラベル間隔)L2以上の紙送り後、すなわち台紙部分以外の透過受光レベルの1.5倍をレベル値Aとして設定する。そして、レベル値Aの設定後、ラベル紙用頭出しを行い(S212)、処理を終了する。
【0084】
また、透過受光レベルがしきい値Aよりも小さい場合(S209:No)は、紙送り量が所定量L(L1以上で、且つL4以上)以上か否かを判別し(S213)、紙送り量が所定量L以上であると判別した場合(S213:Yes)には、普通紙P1であると判別して用紙種類データブロック251の更新を行い(S214)、頭出しおよびレベル値の設定を行うことなく処理を終了する。また、紙送り量が所定量Lに達していない場合(S213:No)には、紙送りを継続しつつ両受光レベルの判別を繰返し、受光レベルが変化した場合には、その変化に応じた連続用紙Pの判別を行う一方、受光レベルが変化することなく紙送り量が所定量Lに達した場合には、上記普通紙P1の判別を行うことになる。
【0085】
このように、本実施形態では、透過受光レベルおよび反射受光レベルを同じタイミングで取得し、これらに基づいて用紙種類の判別を行うため、正確に用紙種類の判別を行うことができる。例えば、第1実施形態において(図11参照)、台紙部分が厚い若しくは台紙部分の色が濃いラベル紙P2を使用すると、透過受光レベルがレベル値Aを超えることがないため、普通用紙P1と判別される場合がある。また、第1実施形態(第1処理)では、初期しきい値に基づいて用紙切れの判別を行っているため(図10のS11〜S15参照)、厚みの小さい(薄い)普通用紙P1を使用すると、透過受光レベルがしきい値A以上、且つ反射受光レベルがしきい値B以下となるため、用紙切れと判別されるといった問題もある。
【0086】
しかしながら、本実施形態では、透過受光レベルおよび反射受光レベルを同じタイミングで取得し、両受光レベルに基づいて用紙種類の判別を行うため、正確に用紙種類や用紙切れを判別することができ、ひいては多様な連続用紙P(厚みが異なったり、台紙部分やマーク部分が着色されている用紙など)を使用可能となる。また、本実施形態では、用紙種類を特定した後、用紙違い判別の基準値となるレベル値の設定を行うため、第1実施形態のように、レベル値A、Bの両方を設定(図10のS21およびS22参照)する必要がない。なお、普通紙更新(S214)の後に、レベル値A、Bの両方を設定し、普通紙設定時においても、これら両レベル値に基づいて用紙違い(図12のS71参照)を判別するようにしても良い。
【0087】
このように、本発明の第2実施形態によれば、透過受光レベルおよび反射受光レベルを同じタイミングで取得し、両受光レベルに基づいて用紙種類の判別を行うなど用紙種類の判別方法を工夫したことで、多様な種類の連続用紙Pをより正確に判別することができる。また、厚みの小さい普通用紙P1を使用した場合でも、用紙切れと判別されることがない。
【0088】
なお、第1実施形態においても(図11参照)、第2実施形態と同様に、初期しきい値に基づいて用紙種類の判別を行い、ラベル紙更新(S37)の後、レベル値Aの設定を行うと共に、マーク付用紙更新(S41)の後、レベル値Bの設定を行うようにしても良い。この構成によれば、図10に示す第1処理工程を省略することができる。このように、用紙種類の判別工程については、適宜設定変更可能である。
【0089】
以上のとおり、本発明の印刷装置のエラー復帰方法、プログラムおよび印刷装置によれば、検出した用紙種類に応じて印刷制御を行うため、ユーザによる用紙設定の手間を省き、収容された連続用紙Pに適した印刷制御を行うことができる。また、検出した用紙種類は、フラッシュROM250等の不揮発性メモリに、用紙種類の更新(再設定)が行われるまで継続して記憶するため、用紙切れの際などの用紙交換毎に連続用紙の検出を行う必要がない。したがって、不必要に用紙を無駄にすることがない。また、エラー報知後は、ユーザによる蓋体の1回の開閉により、容易且つ迅速エラー復帰を行うことができるため、ユーザの使い勝手を格段に向上させることができる。また、エラー復帰の際に、電源キーのオン/オフ操作を必要としないため、各種設定情報(例えば、印刷品質、印刷速度等の設定情報)が消えることがない。
【0090】
また、用紙種類がラベル紙P2またはマーク付用紙P3に更新された場合、当該更新に引き続き連続用紙Pの頭出しを行うため、ユーザはいかなる連続用紙を用いる場合でも、適切な位置から印刷を開始することができる。また、エラー復帰時に頭出しまで終了しているため、頭出し直後に印刷操作を再開することができる。
【0091】
また、用紙切れと判別した場合のエラー報知と、用紙違いと判別した場合のエラー報知、およびその他のエラー報知とが、異なるLEDにより報知されるため、ユーザは、印刷装置10に収容された連続用紙Pを確認することなく、瞬時にエラーの内容を把握することができる。また、いずれのエラー時においても蓋体12の開閉により容易にエラー復帰を行うことができるため、より使い勝手を向上させることができる。
【0092】
なお、上記の形態によらず、用紙種類の検出方法やエラー復帰処理の手順など、本発明を逸脱しない範囲で、適宜変更も可能である。
【0093】
【発明の効果】
以上のように、本発明の印刷装置のエラー復帰方法、プログラムおよび印刷装置によれば、複数種類の連続用紙に印刷可能であり、当該連続用紙の検出結果に基づいて印刷制御を行う場合において、検出のための用紙の無駄を最小限に抑えつつ、容易且つ迅速にエラー復帰を行うことができるなどの作用・効果を奏する。
【図面の簡単な説明】
【図1】本発明の一実施形態に係る印刷装置を縦置きにした状態の外観斜視図である。
【図2】上記の印刷装置を開蓋した状態の外観斜視図である。
【図3】印刷装置を横置きにした状態の断面図である。
【図4】上記の印刷装置を開蓋した状態の断面図である。
【図5】用紙種類検出センサの拡大断面図である。
【図6】普通紙、ラベル紙およびマーク付用紙の斜視図である。
【図7】各連続用紙における透過受光レベルおよび反射受光レベルを示す説明図である。
【図8】印刷装置の制御系を示す制御ブロック図である。
【図9】エラー復帰処理を示すフローチャートである。
【図10】エラー復帰処理における第1処理を示すフローチャートである。
【図11】エラー復帰処理における第2処理を示すフローチャートである。
【図12】普通紙設定時の通常印刷処理を示すフローチャートである。
【図13】ラベル紙設定時の通常印刷処理を示すフローチャートである。
【図14】本発明の第2実施形態に係るエラー復帰処理を示すフローチャートである。
【図15】従来例におけるエラー復帰処理を示すフローチャートである。
【符号の説明】
10 印刷装置
12 蓋体
15 印刷ヘッド
16 プラテンローラ
18 台紙
19 ラベル
20 マーク
21 用紙種類検出センサ
25 用紙収容部
31 透過型光学センサ
32 反射型光学センサ
41 用紙切れエラーLED
42 用紙違いエラーLED
43 その他エラーLED
142 蓋体検出センサ
250 フラッシュROM
P 連続用紙
P1 普通紙
P2 ラベル紙
P3 マーク付用紙
[0001]
BACKGROUND OF THE INVENTION
The present invention is a printing device that performs printing on a plurality of types of continuous paper, and detects the paper type of the continuous paper while feeding out the continuous paper, and performs error control of the printing device that performs print control according to the detected paper type The present invention relates to a method, a program, and a printing apparatus.
[0002]
[Prior art]
Conventionally, a label sheet in which a plurality of labels are arranged at a predetermined interval on a long mount, a marked sheet in which a mark is attached to a long sheet at a predetermined interval, and a long plain sheet. 2. Description of the Related Art Printing apparatuses that perform printing on a plurality of types of continuous paper such as certain plain paper are known. This type of printing apparatus stores the continuous paper in a wound state, periodically detects the paper type of the continuous paper fed from the paper storage unit, and determines the paper type based on the detection result. The printing control is performed accordingly (see, for example, Patent Document 1).
[0003]
[Patent Document 1]
Japanese Patent Laid-Open No. 2002-205872
[0004]
By the way, a printing apparatus capable of printing on such a plurality of types of continuous paper and containing the continuous paper in an exposed state without being contained in the cartridge detects which continuous paper is contained. Therefore, it is necessary to feed out continuous paper (when continuous paper is stored in a cartridge, the paper type can be specified by detecting the cartridge, and thus it is often unnecessary to feed out continuous paper). For this reason, if the paper type is detected every time the paper is replaced, such as when the continuous paper has been used up (when the paper has run out), the continuous paper is fed out each time, resulting in wasted paper. It will end up.
[0005]
In order to solve this problem, the detected paper type is stored, and the continuous paper is replaced until the paper type is updated (set) by the user. There is known a method of performing print control suitable for the continuous paper without detecting it (without feeding the continuous paper).
[0006]
In this case, if different paper types are accommodated, the detection result does not match the stored paper type and an error occurs. However, for error recovery (recovery), for example, error recovery as shown in FIG. Operation was necessary. That is, after an error occurs, the power is turned off by the user (S101), and the cover of the paper storage unit is opened (S102). Subsequently, when the power is turned on while the paper feed switch is pressed (S103), the error recovery mode is set. In the error recovery mode, the original paper feed function of the switch for paper feed is lost. When the switch is pressed six times (S104) and the lid is closed by the user (S105), the paper feed is started. The paper type is updated based on the detection result detected during paper feeding (S106). As described above, the error recovery operation requires a complicated operation in which an error recovery cannot be erroneously performed by a normal operation.
[0007]
[Problems to be solved by the invention]
However, such an error recovery operation is not a problem when the frequency of replacement with different continuous sheets is small, but it is a very troublesome operation for a user with a high frequency of replacement.
[0008]
In view of the above-described problems, the present invention can print on a plurality of types of continuous paper, and when performing print control based on the detection result of the continuous paper, minimize waste of paper for detection. An object of the present invention is to provide a printing apparatus error recovery method, a program, and a printing apparatus that can easily perform error recovery.
[0009]
[Means for Solving the Problems]
An error recovery method for a printing apparatus according to the present invention includes a label sheet in which a plurality of labels are arranged at a predetermined interval on a long mount, and a mark with a mark added to the long sheet at a predetermined interval. A printing apparatus that prints on a plurality of types of continuous paper including at least one of paper and plain plain paper that is a long plain paper, and stores the paper in a state in which the continuous paper is wound An error recovery method for a printing apparatus that includes a storage unit and a lid that covers the paper storage unit, detects a paper type of the continuous paper while feeding out the continuous paper, and performs print control according to the detected paper type , A paper type detecting step for periodically detecting the paper type of the continuous paper that has been fed out, and a paper that continuously stores the detected paper type until the paper type is updated. type And a determination step for determining whether or not the detected paper type and the stored paper type coincide with the detection of the paper type, and a case where it is determined in the determination step that the paper type does not match, and / or Alternatively, when it is determined that it is difficult to continue printing, an error notification process for performing error notification and an error recovery process for performing error recovery by opening / closing the lid by the user after the error notification is provided. A paper type update process is included, in which continuous paper is fed out to detect the paper type as the body is closed, and the stored paper type is updated based on the detection result.
[0010]
Further, the printing apparatus of the present invention includes a label sheet in which a plurality of labels are arranged on a long mount with a predetermined interval, and a marked sheet in which a mark is attached to the long sheet at a predetermined interval. In a printing apparatus that performs printing on a plurality of types of continuous paper including at least one of plain paper that is a long plain paper, a paper storage unit that stores the continuous paper in a wound state; A cover that covers the paper storage unit, a paper type detection unit that periodically detects the paper type of the continuous paper that is fed out while feeding the continuous paper, and print control that performs print control according to the detected paper type And a paper type storage unit that continuously stores the detected paper type until the paper type is updated, and a determination unit that determines whether or not the detected paper type matches the stored paper type Matches the paper type If it is determined that there is no error, and / or if it is determined that it is difficult to continue printing, error notification means for performing error notification, and error recovery for performing error recovery by opening and closing the lid by the user after the error notification of the error notification means The error recovery means includes a paper type update means for detecting the paper type by the paper type detection means after the lid is closed and updating the paper type stored in the paper type storage means. It is characterized by.
[0011]
According to these configurations, since print control is performed according to the detected paper type, it is possible to perform print control suitable for the stored continuous paper without the user's trouble of paper setting. Further, since the detected paper type is continuously stored until the paper type is updated, it is not necessary to detect the continuous paper every time the paper is replaced such as when the paper is out. Therefore, paper is not unnecessarily wasted. In addition, after the error notification, the user can perform error recovery by opening and closing the lid, and in this case, in order to detect and update the paper type, the user performs an operation for paper type update (paper setting). Do not need. That is, since error recovery and paper setting can be performed easily and quickly, user convenience can be greatly improved.
[0012]
In this case, when the paper type is updated to the label paper or the marked paper in the paper type update step, the error recovery step preferably includes a cueing step for cueing continuous paper.
[0013]
In this case, when the paper type is updated to the label paper or the marked paper by the paper type updating means, the error recovery means preferably includes a cueing means for cueing continuous paper.
[0014]
According to these configurations, when the paper type is updated to the label paper or the marked paper, the continuous paper is continuously cued, so that the user starts printing from an appropriate position when using any continuous paper. be able to. In addition, since the cueing is completed when the error is recovered, the printing operation can be resumed immediately after the cueing.
[0015]
In these cases, in the paper type detection step, it is preferable to detect the paper type based on the transmitted and received light levels of the light irradiated on the continuous paper.
[0016]
In these cases, the paper type detection means further includes a transmission type optical sensor for detecting the transmission / reception level of the light applied to the continuous paper, and a reflection type optical sensor for detecting the reflection / reception level of the light applied to the continuous paper. Preferably, the paper type is detected based on the transmitted light reception level and the reflected light reception level.
[0017]
According to these configurations, it is possible to reliably detect the paper type with a simple configuration in which the continuous paper is irradiated with light and the paper type is detected based on the transmitted / received light reception level and the reflected light reception level.
[0018]
In this case, in the determination step, it is determined that the paper is out when the transmitted / received light level is higher than the reference value and the reflected light reception level is lower than the reference value. In the error notification step, the paper is out of paper in the determination step. If it is determined, it is preferable to perform error notification.
[0019]
In this case, the determining means determines that the sheet is out of paper when the transmitted light receiving level is higher than the reference value and the reflected light receiving level is lower than the reference value, and the error notifying means is determined by the determining means. When it is determined that the paper is out, it is preferable to perform error notification.
[0020]
According to these configurations, it is possible to instantaneously determine whether the paper is out, regardless of the paper type. Therefore, error notification can be performed promptly.
[0021]
In this case, in the error notification step, it is preferable that the error notification when it is determined that the sheet is out of paper and the other error notifications are differentiated and notified.
[0022]
Further, in this case, it is preferable that the error notification means differentiates and notifies the error notification when it is determined that the paper has run out and other error notifications.
[0023]
According to these configurations, since the error notification when it is determined that the paper is out is differentiated from other error notifications, the user can instantly perform the error without checking the continuous paper stored in the printing apparatus. Can be grasped (at least whether or not there is a paper out error).
[0024]
In these cases, it is preferable to store the paper type in the nonvolatile memory in the paper type storage step.
[0025]
In these cases, it is preferable that the paper type storage means is constituted by a nonvolatile memory.
[0026]
According to these configurations, since the paper type is stored in the nonvolatile memory, it is not necessary to detect the paper type when the same type of continuous paper is used even after the power is turned off. Accordingly, it is possible to further reduce paper waste.
[0027]
In these cases, in the error recovery process, it is preferable to perform error recovery with only opening and closing of the lid body without requiring the power key on / off operation.
[0028]
Further, in these cases, a power key for instructing power supply is further provided, and the error recovery means does not require an on / off operation of the power key, and an error occurs when the lid is opened and closed only once. It is preferable to perform a return.
[0029]
According to these configurations, since the power key does not need to be turned on / off at the time of error recovery, various setting information is not lost. Further, the user can perform error recovery more quickly by a simple operation of opening and closing the lid once.
[0030]
A program according to the present invention is characterized by causing each step in the error recovery method for a printing apparatus according to any one of the above to be executed.
[0031]
According to this configuration, it is possible to print on a plurality of types of continuous paper, and in a printing apparatus that performs print control based on the detection result of the continuous paper, easily while minimizing waste of paper for detection. A program that can perform error recovery can be provided.
[0032]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an error recovery method, a program, and a printing apparatus of a printing apparatus according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. The printing apparatus of the present embodiment is capable of printing on a plurality of types of continuous paper and is configured to perform print control according to the detected paper type. In this case, since the detected paper type is continuously stored until the paper type is updated (reset), it is not necessary to detect the continuous paper every time the paper is replaced, such as when the paper is out. As a result, waste of paper for paper detection can be eliminated. In addition, after error notification, the user can easily and quickly return the error and update the paper type by opening and closing the lid, so there is no need for special operation for paper setting by the user, greatly improving usability. Can be made. In view of this, a printing apparatus connected to a host computer and performing printing based on print data and control data transmitted from the host computer will be described as an example.
[0033]
FIG. 1 is a perspective view of a printing apparatus according to an embodiment of the present invention in a vertically placed state, FIG. 2 is a perspective view of a state in which a lid of the printing apparatus is opened, and FIG. 3 is a horizontally placed printing apparatus. FIG. 4 is a sectional view showing a state in which the lid of the printing apparatus is opened. As shown in these drawings, the printing apparatus 10 according to the present embodiment is used in two postures, that is, a vertical posture in which the printed continuous paper P (roll paper) is discharged from the front surface and a horizontal posture in which the continuous paper P is discharged from the upper surface. Although it is possible, the following description will be based on the horizontal orientation.
[0034]
The printing apparatus 10 includes a casing 11 having an upper opening, and a lid 12 that covers the upper opening so that the upper opening can be opened and closed. By opening the lid 12, the continuous paper P can be replaced and the inside can be maintained. Inspection is possible. The continuous paper P is stored in the paper storage unit 25 inside the printing apparatus directly (in an exposed state) without being stored in a case such as a cartridge in a wound state. Further, the leading end side of the continuous paper P fed out from the paper storage unit 25 is guided out of the housing from the paper discharge port 14 via the transport path 13.
[0035]
The printing apparatus 10 is connected to a host computer 100 (see FIG. 8) via a connector or the like, and performs printing control in accordance with a printing instruction from the host computer 100. That is, according to a print instruction from the host computer 100, the print head (thermal head) 15, the platen roller 16, and the cutter mechanism 17 arranged on the conveyance path 13 are appropriately driven, and the continuous paper P is discharged to the discharge port 14. The paper is conveyed (the continuous paper P is fed out), and characters (characters, symbols, etc.) and pictures are printed along with the conveyance. Then, the printing is completed, the continuous paper P is further conveyed, and when the rear end position of the printed portion reaches the cutting position of the cutter mechanism 17, it is cut and separated by the cutter mechanism 17, and a single sheet is cut from the paper discharge port 14. Provide to users as paper.
[0036]
In addition, a plurality of LEDs 41, 42, and 43 that display various errors in the printing apparatus 10 are provided on the top surface of the housing 11 (the front surface in the case of the vertical installation in FIG. 1). For example, when the paper stored in the paper storage unit 25 is used up (when the paper runs out), an error is notified by the paper out error LED 41, and the paper previously stored in the flash ROM 250 (see FIG. 8) is stored. When the type and the paper type detected by the paper type detection sensor 21 (see FIG. 5) are different (details will be described later), an error is notified by the paper difference error LED 42, and other errors that make it difficult to continue printing. When the error occurs, an error is notified by the other error LED 43.
[0037]
As a notification method, each LED 41, 42, 43 may be turned on or blinked. Further, a beep sound (electronic sound) or the like may be generated together with the display of the LEDs 41, 42, and 43 to notify the user of the error more effectively.
[0038]
By the way, as described above, the printing apparatus 10 of the present embodiment performs printing control suitable for the continuous paper P by detecting the paper type of the continuous paper P. This is performed by a paper type detection sensor 21 (a transmission / reflection optical sensor) disposed in the vicinity of the upstream side of the print head 15 in the transport path 13.
[0039]
FIG. 5 is an enlarged cross-sectional view of the paper type detection sensor 21. As shown in FIG. 5, the paper type detection sensor 21 is composed of front and back sensor units 21 a and 21 b that are opposed to each other with the conveyance path 13 interposed therebetween. Yes. The front side sensor unit 21a facing the front surface (printing surface) of the continuous paper P is provided on the printing apparatus main body side, and a light emitting element 22 for transmission is incorporated therein. The transmissive light-emitting element 22 is disposed to face the light-receiving element 23 and constitutes a transmissive optical sensor 31 with the transmissive light-emitting element 22 and the light-receiving element 23 as a pair. On the other hand, the back-side sensor unit 21b facing the back surface (non-printing surface) of the continuous paper P is provided on the lid 12 side, and includes a reflective light-emitting element 24 and a light-receiving element 23 incorporated therein, as a pair. A sensor 32 is configured.
[0040]
The light emitting element 22 for transmission and the light emitting element 24 for reflection are driven to emit light alternately at every paper feed pitch (1 dot), and the light receiving element 23 alternately outputs a transmitted light receiving level signal and a reflected light receiving level signal accordingly. To do. For example, when one dot is formed by four steps of the paper feed stepping motor 122 (see FIG. 8), the light emission elements 22 and 24 are alternately driven every four steps in synchronization with the drive pulse of the paper feed stepping motor 122. Is switched to.
[0041]
Next, an example of the continuous paper P applicable to the printing apparatus 10 of the present embodiment will be described with reference to FIG. FIG. 4A shows a plain paper P1 which is a long plain paper, and FIG. 4B shows a label 19 having a predetermined length L1 on a long mount 18 with a predetermined interval L2. A plurality of label sheets P2 are shown, and FIG. 10C shows a marked sheet P3 in which a mark (black mark) 20 having a mark length L3 is attached to one side of a long sheet at a predetermined interval L4. Is shown. Note that the printing surface (front surface) of each continuous paper P is the upper side in the drawing for the plain paper P1 and the label paper P2, and the lower side in the drawing for the marked paper P3.
[0042]
The printing apparatus 10 of the present embodiment can print on a plurality of types of continuous paper P including the continuous paper P shown here. Further, the longitudinal length L1 and the label interval L2 of the label 19 on the label paper P2, and the form, color, and arrangement position of the mark 20 on the marked paper P3 (in the drawing, the left side, the center, the right side, etc. ) And mark interval L4 can be arbitrarily set, and a plurality of continuous sheets P having different modes can be used.
[0043]
Here, with reference to FIG. 7, the transmission / reception level and reflection / reception level of each sheet when the above-described continuous sheet P is detected by the sheet type detection sensor 21 will be described. As shown in FIGS. 4A and 4B, when the marked paper P3 is used, the transmitted / received light level is L (lower) than the reference value (threshold value: described later) A regardless of the paper position. It becomes. Further, the reflected light reception level is H (higher) than the reference value (threshold value) B in the blank paper portion, and is L lower than the reference value B in the mark portion. Therefore, in the normal printing process using the marked paper P3, the reference position (marked portion) is determined based on the reflected light reception level without using the transmitted light reception level (used for paper out detection) and printed at a predetermined position. I do.
[0044]
On the other hand, when the label paper P2 is used, the transmitted / received light level is L lower than the reference value A in the label portion and H higher than the reference value A in the mount portion. Further, the reflected light reception level is higher than the reference value B regardless of the paper position. Therefore, in the normal printing process using the label paper P2, the reference position (mounting portion) is discriminated based on the transmitted light reception level without using the reflected light reception level (used for paper out determination), and printing is performed at a predetermined position. Do.
[0045]
When the plain paper P1 is used, the transmitted / received light level is lower than the reference value A and the reflected light received level is higher than the reference value B regardless of the paper position. Accordingly, in the normal printing process using the plain paper P1, any light reception level (transmission in the present embodiment) is used for paper out determination. Further, when the transmitted / received light level is H higher than the reference value A and the reflected light received level is L lower than the reference value B, it is determined that the sheet is out of paper (no paper) regardless of the type of paper.
[0046]
Here, the control configuration of the printing apparatus 10 will be described with reference to the control block diagram of FIG. The printing apparatus 10 includes a paper out error LED 41, a paper difference error LED 42, and other error LEDs 43, a display unit 110 that displays various errors, a paper storage unit 25 that stores continuous paper P, and a print head (thermal head). ) 15 and a paper feed unit 121 that conveys the continuous paper P by the paper feed motor 122, a printing unit 120 that performs printing on the continuous paper P based on print data transmitted from the host computer 100, and a paper cutter A cutting unit 130 (cutter mechanism 17) for cutting the rear end of the printed portion of the continuous paper P, and a lid detection sensor 142 for detecting opening and closing of the lid 12. A paper detection sensor 143 that detects loading or non-loading of continuous paper (roll paper) P stored in the paper storage unit 25; The sheet type detection sensor 21 including the over-type optical sensor 31 and the reflection-type optical sensor 32 has a detection unit 140 that performs various detections, a display driver 151, a head driver 152, and a motor driver 153 (feed motor driver 153a, cutter). The motor driver 153b) includes a drive unit 150 that drives each unit, and a control unit 200 that is connected to each unit and controls the entire printing apparatus 10.
[0047]
The control unit 200 includes a CPU 210, a ROM 220, a character generator ROM (CG-ROM) 230, a RAM 240, a flash ROM 250, and an input / output control device (hereinafter referred to as “IOC: Input Output Controller”) 260, which are connected to each other via an internal bus 270. Has been. The ROM 220 stores a control program block 221 for storing various programs to be processed by the CPU 210 in addition to a program for performing printing control according to the paper type, and detection results (transmission light reception level and reflection light reception level) of the paper type detection sensor 21. A control data block 222 for storing control data including a discrimination table (see FIG. 7B) for specifying the paper type according to the data and data relating to a threshold value set at the time of shipment of the printing apparatus 10; have. Further, the CG-ROM 230 stores font data of characters and symbols, and outputs the corresponding font data when code data specifying the character or the like is given. The CG-ROM 230 may be omitted depending on the processing capability of the host computer 100.
[0048]
The RAM 240 has a print data block 242 for storing print data transmitted from the host computer 100 in addition to various work area blocks 241 used as flags and the like, and is used as a work area for control processing.
[0049]
The flash ROM 250 stores a paper type data block 251 for storing data relating to the paper type specified based on the detection result detected by the paper type detection sensor 21, and a threshold value (setting) serving as a reference value for specifying the paper type. The threshold data block 252 for storing the threshold value (see FIG. 10) is stored, and is continuously stored until the paper type is updated. Of course, since it is the flash ROM 250, the stored data is not lost even if the power is turned on / off. The update of the paper type is executed with the user opening and closing the lid 12 as a trigger after the error notification by the LEDs 41, 42, and 43 of the display unit 110. The details will be described later. The flash ROM 250 shown here can be substituted for various nonvolatile memories. In other words, any storage medium may be used as long as it does not lose the data stored when the power is turned off.
[0050]
In the IOC 260, a logic circuit for supplementing the function of the CPU 210 and handling interface signals with various peripheral circuits is configured and configured by a gate array, a custom LSI, or the like. As a result, the IOC 260 takes the print data and control data from the host computer 100 as they are or processes them and imports them into the internal bus 270, and in conjunction with the CPU 210, outputs the data and control signals output from the CPU 210 to the internal bus 270. The data is output to the drive unit 150 as is or after being processed.
[0051]
With the above configuration, the CPU 210 inputs various signals and data from each unit in the host computer 100 and the printing apparatus 10 via the IOC 260 in accordance with the control program in the ROM 220, and the font data from the CG-ROM 230 and the RAM 240. Process and output various signals and data to each unit in the printing apparatus 10 via the IOC 250, thereby controlling the printing process and the error recovery process suitable for the paper type stored in the flash ROM 250. Etc.
[0052]
Next, error recovery processing of the printing apparatus 10 will be described with reference to FIG. As described above, when the printing apparatus 10 uses up all the sheets stored in the sheet storage unit 25, when the sheet type stored in the flash ROM 250 (see FIG. 8) differs from the detected sheet type, When an error that makes it difficult to continue printing occurs, an error is notified by the LEDs 41, 42, and 43. After the error is notified, the lid 12 can be opened and closed to recover (recover) the error.
[0053]
As shown in the flowchart of FIG. 9, when the user first opens and closes (closes after opening) the lid (cover) 12 in an error state (S1), the printing apparatus 10 is detected by the lid detection sensor 142. Is detected, and error recovery processing is performed (S2). In the error recovery process, two processes are performed: determination of out of paper and setting of a threshold value (first process), determination / update of paper type, and cueing (second process). In other words, the user only needs to open and close the lid body 12 once, and the error recovery can be performed easily and quickly.
[0054]
Here, the error recovery process will be described with reference to FIGS. As described above, as the error recovery process, the first process for determining the out of paper and setting the threshold value, and the second process for determining / updating the paper type and cueing are performed. The threshold value set in the first process is hereinafter referred to as “level value” in distinction from the threshold value (initial threshold value) stored at the time of shipment of the printing apparatus 10. The level values A and B set in the first process are reflected in paper type discrimination / update and cueing in the second process, and the paper discrimination result in the second process is reflected in the normal printing process. Further, the level value A is a discrimination reference value used for discrimination of the transmitted / received light level, and the level value B is a discrimination reference value used for discrimination of the reflection / reception level (see FIG. 7A).
[0055]
First, the procedure of the first process will be described with reference to the flowchart of FIG. When the first process starts, the transmitted light reception level, which is the output of the transmissive light receiving sensor 31, is input (S11), and it is determined whether or not the transmitted light reception level is equal to or lower than the threshold value A (initial threshold value A). (S12). When the transmitted / received light level is greater than the threshold value A (S12: No), the reflected / received light level that is the output of the reflective light receiving sensor 32 is input (S13), and the reflected / received light level is set to the threshold value B (initially It is determined whether or not it is equal to or less than the threshold value B) (S14). Here, when the reflected light reception level is equal to or lower than the threshold value B (S14: Yes), it is determined that the paper is out, and the paper out error LED 41 is turned on as paper out error processing (S15).
[0056]
On the other hand, if the transmitted light reception level is equal to or lower than the threshold value A (S12: Yes), paper feeding is started (S16), and it is confirmed that it is not the mount portion of the label paper P2, and the transmitted light reception level is acquired (S17). At the same time, it is confirmed that it is not the mark portion of the marked paper P3, and the reflected light reception level is acquired (S18). The confirmation that it is not the mount portion is performed on the condition that the transmitted and received light level does not change more than 1.5 times during a predetermined amount (L2 or more and L3 or more: see FIG. 6) of paper feeding. Confirmation that the mark portion is not a mark portion is performed on the condition that the reflected light reception level does not change more than 0.6 times during the predetermined amount of paper feeding.
[0057]
Thereafter, it is determined whether or not the acquisition of both light reception levels has been completed normally (S19). If an error is determined here (if the light reception level cannot be acquired normally (S19: Error)), an error is detected. As a process, the other error LED 43 is turned on (S20). If the transmitted light reception level other than the mount portion and / or the reflected light reception level other than the mark portion cannot be acquired (S19: No), each light reception level is acquired while continuing paper feeding. On the other hand, when both the received light levels are acquired normally (S19: Yes), 1.5 times the acquired transmitted / received light level is set as the level value A (S21), and 0.6 times the acquired reflected light received level is set. The level value B is set (S22). Thus, the level values A and B corresponding to the continuous paper P are set (updated) based on the light reception level of the continuous paper P currently stored. The set level value is stored in a threshold data block 252 (see FIG. 8) in the flash ROM 250.
[0058]
In the first process, in the error recovery process after the paper out error notification (S15), it is preferable to detect the loading of the continuous paper P by the paper detection sensor 143 (see FIG. 8) at the start of the process. In this case, when the loading of the continuous paper P is not detected, the out-of-paper error process can be performed again without determining the transmitted light reception level and the reflected light reception level. That is, according to this configuration, the processes of S11 to 14 can be omitted.
[0059]
Next, the procedure of the second process will be described with reference to the flowchart of FIG. When the second process is started, paper feeding is started (S31), and the transmitted / received light level is input (S32), and it is determined whether or not the transmitted / received light level is equal to or higher than the level value A (S33). If it is determined that the level is greater than or equal to the level value A (S33: Yes), the reflected light level is input (S34), and it is determined whether the reflected light level is equal to or lower than the level value B (S35). . If the value is equal to or lower than the level value B (S35: Yes), it is determined that the paper is out, and the paper out error LED 41 is turned on as paper out processing (S36), and the second processing (error recovery processing). Exit. In this case, the lid 12 is opened by the user, and after the continuous paper P is loaded, the lid 12 is closed, so that the error recovery process is executed again. On the other hand, if the reflected light reception level is greater than the level value B (S35: No), it is determined that the sheet is the label sheet P2, and the sheet type data block 251 (see FIG. 8) is updated (S37). After performing cueing (S38), the process is terminated.
[0060]
When it is determined that the transmitted light reception level is smaller than the level value A (S33: No), the reflected light reception level is input (S39), and it is determined whether the reflected light reception level is equal to or lower than the level value B (S40). ). If it is equal to or lower than the level value B (S40: Yes), it is determined that the sheet P3 is marked, the sheet type data block 251 is updated (S41), and the cueing for marked sheet (S42) is performed. After execution, the process is terminated.
[0061]
On the other hand, if the reflected light reception level is greater than the level value B (S40: No), it is determined whether or not the paper feed amount is a predetermined amount L (L1 or more and L4 or more) (S43). If it is determined that the feed amount is greater than or equal to the predetermined amount L (S43: Yes), it is determined that the sheet is plain paper P1, the paper type data block 251 is updated (S44), and processing is performed without performing cueing. Exit. If the paper feed amount does not reach the predetermined amount L (S43: No), the determination of each light reception level is repeated while continuing the paper feed, and if the light reception level changes, the change is made accordingly. While the continuous paper P is discriminated, the plain paper P1 is discriminated when the paper feed amount reaches the predetermined amount L without changing the light receiving level.
[0062]
As described above, according to the present invention, the plain paper P1, the label paper P2, and the marked paper are used to determine the type of the continuous paper P based on the detection result (the transmitted light reception level and the reflected light reception level) of the paper type detection sensor 21. Although it corresponds to a plurality of types of continuous paper P including any one of P3, it is possible to perform an appropriate printing process according to the type of the paper without performing a setting change operation when changing the paper. As a result, it is possible not only to reduce the operation burden on the user, but also to avoid the occurrence of trouble due to setting errors or the like.
[0063]
In addition, when the transmitted light reception level is high and the reflected light reception level is high, it is determined that the label paper P2 is received. Therefore, the paper determination ends when the mount portion of the label paper P2 reaches the light reception level detection position. As a result, the time required for paper discrimination can be shortened and a quick error recovery process can be performed. Similarly, when the transmitted light receiving level is low and the reflected light receiving level is low, it is determined that the paper is marked P3. Therefore, the paper determination is completed when the mark portion of the marked paper P3 reaches the light receiving level detection position. As a result, the time required for paper discrimination can be shortened and quick error recovery processing can be performed.
[0064]
Further, when the continuous light P is conveyed by a predetermined amount L, when the state of the transmitted light reception level is low and the reflection light reception level is high, the label paper P2 and the marked paper are determined in order to determine that it is the plain paper P1. In addition to P3, plain paper P1 can be identified, and as a result, the versatility of the printing apparatus 10 can be enhanced. Further, since the predetermined amount L is larger than the label length L1 of the label paper P2 and larger than the inter-mark distance L4 of the marked paper P3, the label portion of the label paper P2 and the blank portion of the marked paper P3 are used as plain paper. There is no misunderstanding of P1. Further, when the transmitted light reception level is high and the reflected light reception level is low, it is determined that the paper is out, so it is possible to instantaneously determine the paper out state regardless of the type of paper. This makes it possible to quickly run out of paper.
[0065]
Further, as the first error recovery process, the level values A and B used for determining the level of the transmitted light reception level and the reflected light reception level after the lid is closed are set based on the light reception level of the set continuous paper P. The threshold values A and B can be updated. As a result, the level of the received light level can be accurately determined not only by the difference in type but also by using continuous paper P having different paper thickness, paper quality and the like.
[0066]
Further, when acquiring the transmission / reception level that becomes the reference of the level value A, it is confirmed that it is not the mount portion of the label paper P2, and when acquiring the reflection / reception level that becomes the reference of the level value B, the marked paper P3 is used. Therefore, it is possible to prevent level setting based on an inappropriate reference value and to accurately determine the level of the received light level.
[0067]
In the above example, the paper feed amount (predetermined amount L) for determining the paper type is larger than the label length L1 of the label paper P2 and larger than the inter-mark distance L4 of the marked paper P3. However, in this case, the user may select a plurality of types of paper feed amounts (predetermined amount L) from a plurality of candidates (for example, 16 [cm], 30 [cm], etc.) using a memory switch or the like. . According to this configuration, according to the user's needs, the paper feed amount can be shortened to increase the processing speed, or the paper feed amount can be lengthened to increase the processing accuracy.
[0068]
In this case, it is preferable to feed the paper several centimeters (for example, 2 [cm], etc.) longer than the set paper feed amount L. According to this configuration, the paper type can be detected more reliably.
[0069]
Next, a series of processing during normal printing will be described with reference to FIGS. FIG. 12 shows a processing procedure when the paper type is set to plain paper P1, and FIG. 13 shows a processing procedure when the paper type is set to label paper P2.
[0070]
First, a case where the paper type is set to plain paper P1 will be described. As shown in the flowchart of FIG. 12, when the power is turned on by the user, paper type data is acquired (S61). Here, the paper type stored in the paper type data block 251 of the flash ROM 250, that is, the previously set paper type (here, “plain paper”) is acquired. Here, when the continuous paper P is not stored in the paper storage unit 25, or when the continuous paper P is terminated by paper feeding or the like by printing, the printer is in an offline state (command cannot be transmitted) (S62). ). Accordingly, when the lid 12 is opened by the user (S63) and the continuous paper P is loaded (S64), and then the lid 12 is closed (S65), the user enters an online state and is accompanied by paper feeding. It is determined whether or not the sheet is out of paper (S66).
[0071]
Here, as in the error recovery process described above, it is determined whether the paper is out based on the transmitted light reception level and the reflected light reception level. If it is determined that the paper is out (S66: Yes), the paper out error LED 41 is turned on. Error recovery processing is executed (S67, see FIG. 9). On the other hand, if it is not out of paper (S66: No), the printer waits until print data is acquired from the host computer 100 (S68).
[0072]
When the print data is acquired from the host computer 100, printing is executed (S69), and the transmitted light reception level and the reflection light reception level are acquired periodically (every four steps of the paper feed stepping motor 122) to determine whether the paper is out ( S70). If it is determined that the paper is out (S70: Yes), the paper out error LED 41 is turned on and error recovery processing is executed (S67) as in the above case. On the other hand, if it is not out of paper (S70: No), it is determined based on the transmitted light reception level and the reflected light reception level whether it is other than plain paper P1 (whether it is label paper P2 or marked paper P3) (S71). ) If it is other than plain paper P1 (S71: Yes), the paper difference error LED 42 is turned on (S72), and error recovery processing is executed. On the other hand, if it is determined that the paper is plain paper P1 (S71: No), printing is continued (S69).
[0073]
As described above, when the plain paper P1 is set, the cueing process is not performed. Therefore, immediately after the lid 12 is closed, it is determined that the paper is out (S66), and the difference between papers (S71) is printed. This is performed in accordance with the execution (paper feed).
[0074]
Next, a case where the paper type is set to label paper P2 will be described. As shown in the flowchart of FIG. 13, when the power is turned on by the user, paper type data is acquired (S81). Here, the paper type (here, “label paper”) stored in the paper type data block 251 of the flash ROM 250 is acquired. Further, when the continuous paper P is not stored in the paper storage unit 25, or when the continuous paper P is finished by paper feeding by printing or the like, the paper-free offline is set (S82). Accordingly, when the lid 12 is opened by the user (S83) and the continuous paper P is loaded (S84), and then the lid 12 is closed (S85), the user enters an online state, and the head for the label paper (S86).
[0075]
Here, the transmitted light reception level and the reflected light reception level are acquired along with this cueing. As a result, when it is determined that the paper is out (S87: Yes), the paper out error LED 41 is turned on and the error recovery process is executed ( S88, see FIG. 9). On the other hand, if the sheet is not out (S87: No), it is the label paper P2 other than the label paper P2 (whether it is the marked paper P3 or the plain paper P1) or the level value is different based on the transmitted light reception level and the reflected light reception level. (S89), if it is determined that the label sheet P2 is different from the set label sheet P2 (S89: Yes), The paper difference error LED 42 is turned on (S94), and error recovery processing is executed. On the other hand, if it is determined that the label paper P2 is the same as the set label paper P2 (S89: No), the printer waits until print data is acquired from the host computer 100 (S90).
[0076]
When print data is acquired from the host computer 100, printing is executed (S91), and the transmitted light reception level and reflected light reception level are acquired periodically (every four steps of the paper feed stepping motor 122) to determine whether the paper is out. (S92). If it is determined that the paper is out (S92: Yes), the paper out error LED is turned on and error recovery processing is executed as in the above case. On the other hand, if it is determined that the sheet is not out of paper (S92: No), it is determined whether the label sheet P2 has a different layout (label length L1 and / or label length) based on the transmitted light reception level and reflected light reception level acquired during printing. Alternatively, it is determined whether or not the label interval L2 is different (S93). If the layout is different (S93: Yes), the paper difference error LED 42 is turned on (S94), and error recovery processing is executed. On the other hand, if the layout is not different (if it is determined that it is the same as the set label paper P2 (S93: No)), printing is continued (S91).
[0077]
As described above, when the label paper P2 is set, the cueing is performed immediately after the lid 12 is closed (S86), and accordingly, the paper runs out, the marked paper, the plain paper, or the level value is different. The label paper is discriminated (S87, S89). In addition, with the execution of printing (paper feeding), a label paper with a different layout is discriminated (S93).
[0078]
In the case of setting the marked paper P3, as in the above-described example of the label paper P2, the cueing is performed immediately after the lid 12 is closed. A plain paper or a label paper with a different level value is discriminated (in this case, the disc is discriminated based on the level value B). In addition, with the execution of printing (paper feeding), a sheet with a layout difference mark is determined.
[0079]
As described above, according to the first embodiment of the present invention, print control is performed according to the detected paper type, so that the user does not need to set paper and print control suitable for the stored continuous paper P is performed. It can be performed. Further, since the detected paper type is continuously stored until the paper type is updated, it is not necessary to detect the continuous paper P every time the paper is replaced such as when the paper is out. Therefore, the continuous paper P is not unnecessarily wasted. Further, after the error notification, the user can easily recover from the error by opening and closing the lid 12 once. Further, in this case, the paper type is updated by the user (paper type) in order to detect and update the paper type. Operation for setting) is not required. That is, since error recovery and paper setting can be performed easily and quickly, user convenience can be greatly improved.
[0080]
Next, error recovery processing according to the second embodiment of the present invention will be described with reference to FIG. In the error recovery process of the first embodiment (see S2 in FIG. 9), in the first process, a level value is set as a reference value for paper type discrimination, and the second process is performed using the level value. In this embodiment, the paper type is determined using the initial threshold value set at the time of shipment of the printing apparatus 10, and then used for determining the difference in paper. Set the level value. Further, by adopting a paper type discriminating step different from that in the first embodiment (refer to S32 to S44 in FIG. 11 for the paper type discriminating step in the first embodiment), various types of continuous paper P can be used. There is an effect that it can be accurately discriminated. Thus, differences from the first embodiment will be mainly described.
[0081]
In the error recovery process according to the present embodiment, as shown in the flowchart of FIG. 14, paper is fed (S201), and the received light level during transmitted light emission and the received light level during reflected light emission are acquired (S202). Here, when the transmitted light reception level is equal to or higher than the threshold value A (initial threshold value A) and the reflected light reception level is equal to or lower than the threshold value B (initial threshold value B) (S203: Yes), the paper is out. And the paper out error LED 41 is turned on as a paper out error process (S204).
[0082]
On the other hand, when the condition that “the transmitted light reception level is equal to or higher than the threshold value A and the reflected light reception level is equal to or less than the threshold value B” is not satisfied (S203: No), the transmitted light reception level is equal to or lower than the threshold value A and the reflected light reception. It is determined whether or not the level is equal to or lower than the threshold value B (S205). If this condition is satisfied (S205: Yes), it is determined that the sheet is marked paper P3 and the paper type data block 251 is updated. (S206), a level value B serving as a reference of the reflected light reception level is set (S207). At this time, the level value B is set to 0.6 times the reflected and received light level other than the mark portion after paper feed of the mark length L3 or more. Then, after setting the level value B, cueing for marked paper is performed (S208), and the process ends.
[0083]
Further, when the condition that “the transmitted light reception level is equal to or lower than the threshold value A and the reflected light reception level is equal to or lower than the threshold value B” is not satisfied (S205: No), it is determined whether or not the transmitted light reception level is equal to or higher than the threshold value A. If it is determined (S209) and the condition is satisfied (S209: Yes), it is determined that the sheet is the label sheet P2, and the sheet type data block 251 is updated (S210). Is set (S211). At this time, the level value A is set to 1.5 times the transmission / reception level other than the length of the mount portion (label interval) L2 or more, that is, the transmitted / received level other than the mount portion. Then, after setting the level value A, cueing for label paper is performed (S212), and the process is terminated.
[0084]
If the transmitted light reception level is smaller than the threshold value A (S209: No), it is determined whether or not the paper feed amount is a predetermined amount L (L1 or more and L4 or more) (S213). If it is determined that the amount is equal to or greater than the predetermined amount L (S213: Yes), it is determined that the sheet is plain paper P1, the paper type data block 251 is updated (S214), and the cue and level values are set. End the process without doing it. If the paper feed amount does not reach the predetermined amount L (S213: No), the determination of both light reception levels is repeated while continuing the paper feed, and if the light reception level changes, the change is made accordingly. While the continuous paper P is discriminated, the plain paper P1 is discriminated when the paper feed amount reaches the predetermined amount L without changing the light receiving level.
[0085]
As described above, in this embodiment, the transmitted light reception level and the reflected light reception level are acquired at the same timing, and the paper type is determined based on them, so that the paper type can be accurately determined. For example, in the first embodiment (see FIG. 11), when the label paper P2 having a thick mount portion or a dark color of the mount portion is used, the transmitted / received light level does not exceed the level value A. May be. Further, in the first embodiment (first process), the paper out is determined based on the initial threshold value (see S11 to S15 in FIG. 10), so that the normal paper P1 having a small thickness (thin) is used. Then, since the transmitted light reception level is equal to or higher than the threshold value A and the reflected light reception level is equal to or lower than the threshold value B, there is a problem that it is determined that the sheet is out of paper.
[0086]
However, in the present embodiment, the transmitted light reception level and the reflected light reception level are acquired at the same timing, and the paper type is determined based on both the light reception levels. Therefore, it is possible to accurately determine the paper type and out of paper, and thus Various continuous sheets P (sheets having different thicknesses or colored mount parts or mark parts) can be used. Further, in the present embodiment, after specifying the paper type, in order to set a level value that is a reference value for paper difference discrimination, both level values A and B are set as in the first embodiment (FIG. 10). (See S21 and S22). Note that both the level values A and B are set after the plain paper update (S214), and even when the plain paper is set, the paper difference (see S71 in FIG. 12) is determined based on these two level values. May be.
[0087]
As described above, according to the second embodiment of the present invention, the paper type determination method is devised such that the transmitted light reception level and the reflected light reception level are acquired at the same timing, and the paper type is determined based on both light reception levels. As a result, various types of continuous paper P can be more accurately determined. Even when the plain paper P1 having a small thickness is used, it is not determined that the paper is out.
[0088]
In the first embodiment (see FIG. 11), as in the second embodiment, the paper type is determined based on the initial threshold value, and the level value A is set after the label paper update (S37). The level value B may be set after the marked sheet update (S41). According to this configuration, the first processing step shown in FIG. 10 can be omitted. As described above, it is possible to appropriately change the setting for the paper type determination step.
[0089]
As described above, according to the error recovery method, program, and printing apparatus of the printing apparatus of the present invention, the printing control is performed according to the detected paper type, so that the user does not need to set the paper and the stored continuous paper P is stored. Printing control suitable for the printer can be performed. In addition, since the detected paper type is continuously stored in the nonvolatile memory such as the flash ROM 250 until the paper type is updated (reset), continuous paper detection is performed every time the paper is replaced such as when the paper is out. There is no need to do. Therefore, paper is not unnecessarily wasted. In addition, after the error notification, the user can easily and quickly recover from the error by opening and closing the lid once, so that the user's usability can be greatly improved. In addition, since the power key does not need to be turned on / off at the time of error recovery, various setting information (for example, setting information such as print quality and printing speed) does not disappear.
[0090]
In addition, when the paper type is updated to the label paper P2 or the marked paper P3, the continuous paper P is cued following the update, so that the user starts printing from an appropriate position when using any continuous paper. can do. In addition, since the cueing is completed when the error is recovered, the printing operation can be resumed immediately after the cueing.
[0091]
In addition, since the error notification when it is determined that the paper is out, the error notification when it is determined that the paper is different, and other error notifications are notified by different LEDs, the user is continuously connected to the printing apparatus 10. Without checking the paper P, the contents of the error can be grasped instantly. Further, since any error can be easily restored by opening and closing the lid body 12, the usability can be further improved.
[0092]
Regardless of the above form, the sheet type detection method and error recovery processing procedure can be appropriately changed without departing from the present invention.
[0093]
【The invention's effect】
As described above, according to the error recovery method, program, and printing apparatus of the printing apparatus of the present invention, it is possible to print on a plurality of types of continuous paper, and when performing print control based on the detection result of the continuous paper, There are operations and effects that the error recovery can be performed easily and quickly while minimizing the waste of paper for detection.
[Brief description of the drawings]
FIG. 1 is an external perspective view of a state in which a printing apparatus according to an embodiment of the present invention is placed vertically.
FIG. 2 is an external perspective view showing a state where the printing apparatus is opened.
FIG. 3 is a cross-sectional view showing a state in which the printing apparatus is placed horizontally.
FIG. 4 is a cross-sectional view of the printing apparatus with the lid opened.
FIG. 5 is an enlarged cross-sectional view of a paper type detection sensor.
FIG. 6 is a perspective view of plain paper, label paper, and marked paper.
FIG. 7 is an explanatory diagram showing a transmitted light reception level and a reflected light reception level in each continuous sheet.
FIG. 8 is a control block diagram illustrating a control system of the printing apparatus.
FIG. 9 is a flowchart showing error recovery processing.
FIG. 10 is a flowchart showing a first process in the error recovery process.
FIG. 11 is a flowchart showing a second process in the error recovery process.
FIG. 12 is a flowchart illustrating normal printing processing when plain paper is set.
FIG. 13 is a flowchart illustrating normal printing processing when setting label paper.
FIG. 14 is a flowchart showing an error recovery process according to the second embodiment of the present invention.
FIG. 15 is a flowchart showing error recovery processing in a conventional example.
[Explanation of symbols]
10 Printing device
12 Lid
15 Print head
16 Platen roller
18 Mount
19 Label
20 mark
21 Paper type detection sensor
25 Paper compartment
31 Transmission type optical sensor
32 Reflective optical sensor
41 Out of paper error LED
42 Paper error error LED
43 Other error LED
142 lid detection sensor
250 flash ROM
P Continuous paper
P1 plain paper
P2 label paper
Paper with P3 mark

Claims (15)

長尺状の台紙に所定間隔を存して複数のラベルが配置されたラベル紙と、長尺状の用紙に所定間隔でマークが付されたマーク付用紙と、長尺状の無地用紙である普通紙とのうち、少なくともいずれかの用紙を含む複数種類の連続用紙に印刷を行う印刷装置であって、前記連続用紙を巻回した状態で収容する用紙収容部と、当該用紙収容部を覆蓋する蓋体とを有し、前記連続用紙を繰り出しながら当該連続用紙の用紙種類を検出すると共に検出した用紙種類に応じて印刷制御を行う印刷装置のエラー復帰方法において、
前記連続用紙を繰り出しながら、繰り出された当該連続用紙の用紙種類を定期的に検出する用紙種類検出工程と、
検出した前記用紙種類を、当該用紙種類の更新が行われるまで継続して記憶する用紙種類記憶工程と、
前記用紙種類の検出に伴い、検出した用紙種類と記憶した用紙種類とが一致するか否かを判別する判別工程と、
前記判別工程において、前記用紙種類が一致しないと判別した場合、および/または印刷の続行が困難と判別した場合、エラー報知を行うエラー報知工程と、
前記エラー報知後、ユーザによる前記蓋体の開閉により、エラー復帰を行うエラー復帰工程と、を備え、
前記エラー復帰工程は、前記蓋体の閉蓋に伴い、前記連続用紙を繰り出して用紙種類を検出し、当該検出結果に基づいて記憶した前記用紙種類の更新を行う用紙種類更新工程を含むことを特徴とする印刷装置のエラー復帰方法。
A label sheet in which a plurality of labels are arranged at predetermined intervals on a long mount, a marked sheet in which marks are added at a predetermined interval on a long sheet, and a long plain sheet A printing apparatus that performs printing on a plurality of types of continuous paper including at least one of plain paper, a paper storage unit that stores the continuous paper in a wound state, and covers the paper storage unit An error recovery method for a printing apparatus that detects a paper type of the continuous paper while feeding out the continuous paper and performs print control according to the detected paper type.
A paper type detection step of periodically detecting the paper type of the continuous paper that has been fed out while feeding out the continuous paper;
A paper type storage step for continuously storing the detected paper type until the paper type is updated;
A determination step of determining whether or not the detected paper type and the stored paper type coincide with the detection of the paper type;
In the determination step, when it is determined that the paper types do not match and / or when it is determined that continuation of printing is difficult, an error notification step of performing error notification;
After the error notification, an error recovery step of performing error recovery by opening and closing the lid by the user, and
The error recovery step includes a paper type update step of detecting the paper type by feeding out the continuous paper with the lid closing, and updating the stored paper type based on the detection result. An error recovery method for a printing apparatus.
前記用紙種類更新工程において、前記用紙種類を前記ラベル紙または前記マーク付用紙に更新した場合、前記エラー復帰工程は、前記連続用紙の頭出しを行う頭出し工程を含むことを特徴とする請求項1に記載の印刷装置のエラー復帰方法。The said error return step includes a cueing step of cueing the continuous paper when the paper type is updated to the label paper or the marked paper in the paper type updating step. An error recovery method for a printing apparatus according to 1. 前記用紙種類検出工程では、前記連続用紙に照射した光の透過受光レベルおよび反射受光レベルに基づいて、前記用紙種類を検出することを特徴とする請求項1または2に記載の印刷装置のエラー復帰方法。3. The error recovery of the printing apparatus according to claim 1, wherein in the paper type detection step, the paper type is detected based on a transmission light reception level and a reflection light reception level of light irradiated on the continuous paper. Method. 前記判別工程では、前記透過受光レベルがその基準値よりも高く、且つ前記反射受光レベルがその基準値よりも低いとき、用紙切れであることを判別し、
前記エラー報知工程では、前記判別工程において前記用紙切れと判別した場合、エラー報知を行うことを特徴とする請求項3に記載の印刷装置のエラー復帰方法。
In the determination step, when the transmitted light reception level is higher than the reference value and the reflected light reception level is lower than the reference value, it is determined that the sheet is out of paper,
The error recovery method for a printing apparatus according to claim 3, wherein, in the error notification step, an error notification is performed when it is determined that the paper is out in the determination step.
前記エラー報知工程では、前記用紙切れと判別した場合のエラー報知と、その他のエラー報知とを差別化して報知することを特徴とする請求項4に記載の印刷装置のエラー復帰方法。5. The error recovery method for a printing apparatus according to claim 4, wherein in the error notification step, an error notification when it is determined that the sheet is out of paper and other error notifications are differentiated and notified. 前記用紙種類記憶工程では、前記用紙種類を不揮発性メモリに記憶することを特徴とする請求項1ないし5のいずれか1に記載の印刷装置のエラー復帰方法。6. The error recovery method for a printing apparatus according to claim 1, wherein in the paper type storage step, the paper type is stored in a nonvolatile memory. 前記エラー復帰工程では、電源キーのオン/オフ操作を必要とすることなく、前記蓋体の1回のみの開閉に伴ってエラー復帰を行うことを特徴とする請求項1ないし6のいずれか1に記載の印刷装置のエラー復帰方法。The error recovery step performs error recovery by opening and closing the lid only once without requiring an operation of turning on / off the power key. An error recovery method for a printing apparatus as described in 1. 請求項1ないし7のいずれか1に記載の印刷装置のエラー復帰方法における各工程を実行させることを特徴とするプログラム。8. A program that causes each step in the error recovery method for a printing apparatus according to claim 1 to be executed. 長尺状の台紙に所定間隔を存して複数のラベルが配置されたラベル紙と、長尺状の用紙に所定間隔でマークが付されたマーク付用紙と、長尺状の無地用紙である普通紙とのうち、少なくともいずれかの用紙を含む複数種類の連続用紙に印刷を行う印刷装置において、
前記連続用紙を巻回した状態で収容する用紙収容部と、
前記用紙収容部を覆蓋する蓋体と、
前記連続用紙を繰り出しながら、繰り出された当該連続用紙の用紙種類を定期的に検出する用紙種類検出手段と、
検出した前記用紙種類に応じて印刷制御を行う印刷制御手段と、
検出した前記用紙種類を、当該用紙種類の更新が行われるまで継続して記憶する用紙種類記憶手段と、
検出した用紙種類と記憶した用紙種類とが一致するか否かを判別する判別手段と、
前記用紙種類が一致しないと判別した場合、および/または印刷の続行が困難と判別した場合、エラー報知を行うエラー報知手段と、
前記エラー報知手段のエラー報知後、ユーザによる前記蓋体の開閉により、エラー復帰を行うエラー復帰手段と、を備え、
前記エラー復帰手段は、前記蓋体の閉蓋後、前記用紙種類検出手段により用紙種類を検出し、前記用紙種類記憶手段に記憶された前記用紙種類の更新を行う用紙種類更新手段を含むことを特徴とする印刷装置。
A label sheet in which a plurality of labels are arranged at predetermined intervals on a long mount, a marked sheet in which marks are added at a predetermined interval on a long sheet, and a long plain sheet In a printing apparatus that performs printing on a plurality of types of continuous paper including at least one of plain paper and
A paper storage section for storing the continuous paper in a wound state;
A lid that covers the paper container;
Paper type detection means for periodically detecting the paper type of the continuous paper that is fed out while feeding out the continuous paper;
Print control means for performing print control according to the detected paper type;
Paper type storage means for continuously storing the detected paper type until the paper type is updated;
Discrimination means for discriminating whether or not the detected paper type matches the stored paper type;
If it is determined that the paper types do not match, and / or if it is determined that it is difficult to continue printing, error notification means for performing error notification;
After error notification of the error notification means, an error recovery means for performing error recovery by opening and closing the lid body by a user,
The error return means includes a paper type update means for detecting the paper type by the paper type detection means after the lid is closed and updating the paper type stored in the paper type storage means. Characteristic printing device.
前記用紙種類更新手段により、前記用紙種類を前記ラベル紙または前記マーク付用紙に更新した場合、前記エラー復帰手段は、前記連続用紙の頭出しを行う頭出し手段を含むことを特徴とする請求項9に記載の印刷装置。The error return means includes a cueing means for cueing the continuous paper when the paper type is updated to the label paper or the marked paper by the paper type updating means. The printing apparatus according to 9. 前記連続用紙に照射した光の透過受光レベルを検出する透過型光学センサ、および前記連続用紙に照射した光の反射受光レベルを検出する反射型光学センサをさらに備え、
前記用紙種類検出手段は、前記透過受光レベルおよび前記反射受光レベルに基づいて、前記用紙種類を検出することを特徴とする請求項9または10に記載の印刷装置。
A transmission type optical sensor for detecting a transmission / reception level of light irradiated on the continuous paper; and a reflection type optical sensor for detecting a reflection / reception level of light irradiated on the continuous paper;
The printing apparatus according to claim 9 or 10, wherein the paper type detection unit detects the paper type based on the transmitted light reception level and the reflected light reception level.
前記判別手段は、前記透過受光レベルがその基準値よりも高く、且つ前記反射受光レベルがその基準値よりも低いとき、用紙切れであることを判別し、
前記エラー報知手段は、前記判別手段により前記用紙切れと判別した場合、エラー報知を行うことを特徴とする請求項11に記載の印刷装置。
The determining means determines that the sheet is out of paper when the transmitted light receiving level is higher than the reference value and the reflected light receiving level is lower than the reference value;
The printing apparatus according to claim 11, wherein the error notification unit performs error notification when the determination unit determines that the paper is out.
前記エラー報知手段は、前記用紙切れと判別した場合のエラー報知と、その他のエラー報知とを差別化して報知することを特徴とする請求項12に記載の印刷装置。The printing apparatus according to claim 12, wherein the error notification unit differentiates and notifies an error notification when it is determined that the paper is out and other error notifications. 前記用紙種類記憶手段は、不揮発性メモリによって構成されていることを特徴とする請求項9ないし13のいずれか1に記載の印刷装置。The printing apparatus according to claim 9, wherein the paper type storage unit is configured by a nonvolatile memory. 電源供給を指示するための電源キーをさらに備え、
前記エラー復帰手段は、前記電源キーのオン/オフ操作を必要とすることなく、前記蓋体の1回のみの開閉に伴ってエラー復帰を行うことを特徴とする請求項9ないし14のいずれか1に記載の印刷装置。
A power key for instructing power supply;
15. The error recovery means performs error recovery as the lid is opened and closed only once without requiring the power key to be turned on / off. The printing apparatus according to 1.
JP2003175016A 2003-06-19 2003-06-19 Error recovery method for printing apparatus, program, and printing apparatus Expired - Fee Related JP4244719B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003175016A JP4244719B2 (en) 2003-06-19 2003-06-19 Error recovery method for printing apparatus, program, and printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003175016A JP4244719B2 (en) 2003-06-19 2003-06-19 Error recovery method for printing apparatus, program, and printing apparatus

Publications (2)

Publication Number Publication Date
JP2005007761A true JP2005007761A (en) 2005-01-13
JP4244719B2 JP4244719B2 (en) 2009-03-25

Family

ID=34098342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003175016A Expired - Fee Related JP4244719B2 (en) 2003-06-19 2003-06-19 Error recovery method for printing apparatus, program, and printing apparatus

Country Status (1)

Country Link
JP (1) JP4244719B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012176507A (en) * 2011-02-25 2012-09-13 Ishida Co Ltd Printing device, and electronic weighing machine
US8366332B2 (en) 2008-03-06 2013-02-05 Seiko Epson Corporation Method of setting paper in a printer, and a printer
JP2013039779A (en) * 2011-08-18 2013-02-28 Fujitsu Component Ltd Printer apparatus and printer head
JP2015193433A (en) * 2014-03-31 2015-11-05 サトーホールディングス株式会社 Printer and sensor level adjustment method
JP2018069579A (en) * 2016-10-28 2018-05-10 シチズン時計株式会社 Printer
CN114274679A (en) * 2020-12-20 2022-04-05 上海商米科技集团股份有限公司 Method and system for simultaneously detecting paper shortage and label
WO2023167573A1 (en) * 2022-03-04 2023-09-07 주식회사 빅솔론 Printing apparatus for performing printing according type of printing paper determined by recognizing bar pattern

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8366332B2 (en) 2008-03-06 2013-02-05 Seiko Epson Corporation Method of setting paper in a printer, and a printer
US8646996B2 (en) 2008-03-06 2014-02-11 Seiko Epson Corporation Method of setting paper in a printer, and a printer
JP2012176507A (en) * 2011-02-25 2012-09-13 Ishida Co Ltd Printing device, and electronic weighing machine
JP2013039779A (en) * 2011-08-18 2013-02-28 Fujitsu Component Ltd Printer apparatus and printer head
JP2015193433A (en) * 2014-03-31 2015-11-05 サトーホールディングス株式会社 Printer and sensor level adjustment method
JP2018069579A (en) * 2016-10-28 2018-05-10 シチズン時計株式会社 Printer
CN114274679A (en) * 2020-12-20 2022-04-05 上海商米科技集团股份有限公司 Method and system for simultaneously detecting paper shortage and label
CN114274679B (en) * 2020-12-20 2023-12-29 上海商米科技集团股份有限公司 Method and system for simultaneously detecting paper shortage and labels
WO2023167573A1 (en) * 2022-03-04 2023-09-07 주식회사 빅솔론 Printing apparatus for performing printing according type of printing paper determined by recognizing bar pattern

Also Published As

Publication number Publication date
JP4244719B2 (en) 2009-03-25

Similar Documents

Publication Publication Date Title
US5447383A (en) Tape printing apparatus having manual tape cutting device with suspension of printing
JP4784330B2 (en) Printing device
JP7184121B2 (en) PRINTING DEVICE, CONTROL METHOD, AND PROGRAM
JP4732946B2 (en) Page pitch detection method, page pitch detection device and printer
JP4244719B2 (en) Error recovery method for printing apparatus, program, and printing apparatus
JP2013095048A (en) Tape printing apparatus
JPH07214876A (en) Tape printer
CN110744926B (en) Printing apparatus, control method, and recording medium
JP6717328B2 (en) Printing device, control method, and program
JP2005001887A (en) Printer, control method and program of printer
JP2002200806A (en) Printer, controlling method therefor, and computer- readable information recording medium
US11370235B2 (en) Printer configured to set operation mode to one of first mode and second mode for appropriately determining whether to allow subsequent print control
JP2010202307A (en) Method for detecting recording paper and printer
JP4559588B2 (en) Label printer
JP2006198859A (en) Recording apparatus and method for controlling recording apparatus
JPH09314962A (en) Printing apparatus and control method thereof
JP6717327B2 (en) Printing device, printing method, and program
JP7318254B2 (en) PRINTING DEVICE, PRINT CONTROL METHOD, AND PROGRAM
JP5417362B2 (en) Image forming apparatus and method of controlling image forming apparatus
JP2007245558A (en) Printing device and printing program
JP2010228834A (en) Printer
KR200319128Y1 (en) Paper misprinting prevention device
JP2003159842A (en) Label printer
JP2002127547A (en) Multi-layer printer
JPH07132657A (en) Tape printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060331

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060614

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070403

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081216

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081229

R150 Certificate of patent or registration of utility model

Ref document number: 4244719

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120116

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120116

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130116

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130116

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140116

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees