JP2004351820A - Printer, program, and recording medium containing the program recorded thereon - Google Patents
Printer, program, and recording medium containing the program recorded thereon Download PDFInfo
- Publication number
- JP2004351820A JP2004351820A JP2003153854A JP2003153854A JP2004351820A JP 2004351820 A JP2004351820 A JP 2004351820A JP 2003153854 A JP2003153854 A JP 2003153854A JP 2003153854 A JP2003153854 A JP 2003153854A JP 2004351820 A JP2004351820 A JP 2004351820A
- Authority
- JP
- Japan
- Prior art keywords
- dots
- printing
- print data
- maximum
- 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
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、電源としてACアダプタと電池の両方を使用可能な印字装置、プログラム、及びそのプログラムを記録した記録媒体に関するものである。
【0002】
【従来の技術】
従来、交流電源を直流電源に変換するACアダプタと電池との両方を電源として、印字データを印字する印字装置が知られている(例えば、特許文献1参照)。
【0003】
この印字装置は、電源から供給された電力により記録ヘッドを駆動させるものであり、出力電圧の違いによって印字処理に制限を設けている。例えば、特許文献1では、印字幅が異なる複数種類のスタンプ体が被印字媒体として装着可能であり、印字装置に装着されているスタンプ体の種類を、装置に備えられたセンサによって検出する。装置には検出されたスタンプ体の印字幅に対応させた駆動電圧が予め記憶されており、その記憶された駆動電圧と電源からの出力電圧とを比較する。記憶された駆動電圧より出力電圧の方が大きいと判断した場合には、そのまま印字処理を施し、記憶された電圧の方が大きいと判断した場合には、出力電圧が足りないことを表示し、ユーザに電池の交換を促している。
【0004】
【特許文献1】
特開平8−216486号公報
【0005】
【発明が解決しようとする課題】
しかしながら、特許文献1のような印字装置では、スタンプ体である被印字媒体の印字幅によって消費電力を設定しているため、印字幅の広い被印字媒体に印字する際には、電源が電池であることを理由に電圧不足によるエラーが表示される。つまり、ユーザが、被印字媒体の印字幅よりも小さい文字サイズを指定して印字データを作成した場合や、印字データ自体に印字するドット数が少ない場合などであって、少ない印加エネルギーで印字可能な場合であっても、エラーが表示されてしまう。
【0006】
そこで、上記問題点を解決するため、被印字媒体の印字幅の広狭に関わらず、電源が電池の場合は、印字する印字データの印字ドット数に応じて記録ヘッドを制御する印字装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
前記目的を達成するために、請求項1に記載の印字装置は、交流電源を直流電源に変換するACアダプタと電池とを電源として使用可能であり、印字データに基づいて記録ヘッドを前記ACアダプタ或いは電池にて駆動させることにより、被印字媒体に対して1又は複数の単位ラインごとに印字可能な印字装置であって、前記電池を電源として使用した場合に、前記記録ヘッドが一度に印字可能な最大ドット数を記憶する最大ドット数記憶手段と、前記アダプタ或いは電池のいずれが前記印字装置に接続されているかを識別する電源識別手段と、前記電源識別手段が、前記電池を識別した場合、前記印字データの単位ラインにおいて、前記記録ヘッドが一度に印字すべきドット数の最大値を算出するドット数算出手段と、前記ドット数算出手段によって算出された前記最大値が前記最大ドット数記憶手段に記憶された前記最大ドット数より大きいか否かを判別するドット数判別手段と、前記ドット数判別手段の結果に基づいて、前記記録ヘッドを制御する印字制御手段とを備えることを特徴とする。
【0008】
かかる構成を有する請求項1に記載の印字装置は、交流電源を直流電源に変換するACアダプタと電池とを電源として使用可能であり、印字データに基づいて記録ヘッドをACアダプタ或いは電池にて駆動させることにより、被印字媒体に対して1又は複数の単位ラインごとに印字可能である。最大ドット数記憶手段は、電池を電源として使用した場合に記録ヘッドが一度に印字可能な最大ドット数を記憶する。電源識別手段は、アダプタ或いは電池のいずれが印字装置に接続されているかを識別する。ドット数算出手段は、電源識別手段が、電池を識別した場合、印字データの単位ラインにおいて、記録ヘッドが一度に印字する印字データ内のドット数の最大値を算出する。ドット数判別手段は、ドット数算出手段によって算出された最大値が最大ドット数記憶手段に記憶された最大ドット数より大きいか否かを判別する。印字制御手段は、ドット数判別手段の結果に基づいて、記録ヘッドを制御する。
【0009】
請求項2に記載の印字装置は、請求項1に記載の印字装置において、前記印字データを構成する文字の文字サイズを検出する文字サイズ検出手段と、前記文字サイズ検出手段によって検出された文字サイズのうち、最も文字サイズの大きい文字の印字データをイメージ展開するデータ展開手段とをさらに備え、前記データ展開手段によってイメージ展開された印字データの前記記録ヘッドが一度に印字すべきドット数の最大値を前記ドット数算出手段で算出することを特徴とする。
【0010】
かかる請求項2に記載の印字装置において、文字サイズ検出手段は、印字データを構成する文字の文字サイズを検出する。データ展開手段は、文字サイズ検出手段によって検出された文字サイズのうち、最も文字サイズの大きい文字の印字データをイメージ展開し、イメージ展開された印字データの前記記録ヘッドが一度に印字すべきドット数の最大値をドット数算出手段で算出する。
【0011】
請求項3に記載の印字装置は、請求項2に記載の印字装置において、前記文字サイズ毎に異なる印字データの縦ドット数及び横ドット数を、記憶するサイズ別ドット数記憶手段をさらに備え、前記ドット数算出手段によって算出されるドット数は、前記サイズ別ドット数記憶手段によって記憶された縦ドット数又は横ドット数の内、記録ヘッドの高さ方向におけるドット数であることを特徴とする。
【0012】
かかる請求項3に記載の印字装置において、サイズ別ドット数記憶手段は、文字サイズ毎に異なる印字データの縦ドット数及び横ドット数を記憶する。また、ドット数算出手段は、サイズ別ドット数記憶手段によって記憶された縦ドット数又は横ドット数の内、記録ヘッドの高さ方向におけるドット数を算出する。
【0013】
請求項4に記載の印字装置は、請求項1乃至3のいずれか1項に記載の印字装置において、前記印字データの内、印字する方向の長さを算出する印字長算出手段を備え、前記印字長算出手段によって算出された長さによって、前記最大ドット数記憶手段に記憶されている最大ドット数が異なることを特徴とする。
【0014】
かかる請求項4に記載の印字装置において、印字長算出手段は、印字データの内、印字する方向の長さを算出する。その算出した長さによって、最大ドット数記憶手段に記憶されている最大ドット数が異なる。
【0015】
請求項5に記載の印字装置は、請求項1乃至4のいずれか1項に記載の印字装置において、前記ドット数判別手段によって、前記ドット数の最大値が最大ドット数より大きいと判別されたときに、印字データを縮小するか否かを選択する縮小選択手段と、前記縮小選択手段によって、印字データを縮小すると選択され、且つ印字データを構成する文字サイズが異なる場合に、最大文字サイズで構成された文字データを自動縮小するデータ縮小手段とをさらに備えることを特徴とする。
【0016】
かかる請求項5に記載の印字装置において、縮小選択手段は、ドット数判別手段によって、ドット数の最大値が最大ドット数より大きいと判別されたときに、印字データを縮小するか否かを選択する。データ自動縮小手段は、縮小選択手段によって、印字データを縮小すると選択され、且つ印字データを構成する文字サイズが異なる場合に、最大文字サイズで構成された文字データを自動縮小する。
【0017】
請求項6に記載の印字装置は、請求項1乃至5のいずれか1項に記載の印字装置において、前記記録ヘッドが一度に複数ライン印字可能な印字装置であって、前記ドット数判別手段によってドット数が最大ドット数よりも大きいと判別された場合に、前記記録ヘッドの印字ライン数を減少させることを特徴とする。
【0018】
かかる請求項6に記載の印字装置は、記録ヘッドが一度に複数ライン印字可能である。記録ヘッドの印字ライン数は、ドット数判別手段によってドット数が最大ドット数よりも大きいと判別された場合に減少する。
【0019】
請求項7に記載の印字装置は、請求項1乃至6のいずれか1項に記載の印字装置において、前記印字データを入力するための入力手段をさらに備え、前記ドット数判別手段によって、ドット数が最大ドット数より大きいと判別されたとき、前記入力手段により入力されるデータの入力を制限することを特徴とする。
【0020】
かかる請求項7に記載の印字装置において、入力手段は印字するための印字データを入力する。入力手段により入力されるデータの入力は、ドット数判別手段によって、ドット数が最大ドット数より大きいと判別されたときに制限される。
【0021】
請求項8に記載のプログラムは、請求項1乃至7のいずれか1項に記載された印字装置の各手段の機能を実現する。
【0022】
また、請求項9に記載の記録媒体は、請求項8に記載のプログラムを記録するコンピュータに読み取り可能である。
【0023】
【発明の実施の形態】
以下に、本発明の実施の形態について、図面を参照しながら説明する。
【0024】
本実施の形態は、漢字やひらがなやカタカナ及びアルファベット文字などの多数のキャラクタを印字用テープ(被印字媒体としてのテープ)に印字可能なテープ印字装置に本発明を適用した場合のものである。
〔第1の実施の形態〕
テープ印字装置(印字装置)1の構成について、図1及び図2を参照しながら説明する。図1はテープ印字装置1の平面図、図2は印字機構PMの平面図である。
【0025】
図1に示すように、テープ印字装置1は、キーボード3と、液晶ディスプレイ(LCD)22と、印字機構PMとを備えている。
【0026】
キーボード3は、本体フレーム2の前部(図1における下側)に配設され、文字キー、印字キー、電源キー、カーソルキー、印字長キーなどが設けられている。文字キーは、アルファベットやひらがなやカタカナなどを入力する。印字キーは、入力された文字を印字する。電源キーは、電源をON/OFFする。カーソルキーは、文字サイズ等を選択する際に使用される。印字長キーは、印字する長さを設定する。
【0027】
LCD22は、キーボード3の後方に設けられ、文字や記号を表示する。印字機構PMは、キーボード3の後方で本体フレーム2内に配設されている。
【0028】
印字機構PMについては、特開平2−106555号公報に記載された構成と概略同様である。すなわち、図2に示すように、印字機構PMは、印字用テープ5を収納したテープ収納カセットCSと、サーマルヘッド(記録ヘッド)13と、プラテンローラ14と、送りローラ15を備えている。
【0029】
また、サーマルヘッド13は、印字用テープ5とインクリボン7とが重なる位置に設けられ、128個の発熱素子からなる発熱素子群が上下方向に列設されている。プラテンローラ14は、印字用テープ5とインクリボン7とをサーマルヘッド13に押圧するように、印字用テープ5とインクリボン7を介してサーマルヘッド13と対向する位置に配置されている。プラテンローラ14に押圧されつつ、サーマルヘッド13によって、後述するテープ収納カセットCSに備えられた印字用テープ5に文字等のデータを印字する。また、送りローラ15は、プラテンローラ14の横に備えられ、プラテンローラ14と送りローラ15とは、本体に備えられた支持体16に回転可能に枢支されている。送りローラ15は、印字用テープ5と両面テープ10とをテープ収納カセットCS側に備えられた接合ローラ12に押圧する。
【0030】
印字機構PMには、テープ収納カセットCSが、着脱自在に装着される。テープ収納カセットCSには、テープスプール6と、リボン供給スプール8と、巻取りスプール9と、供給スプール11と、接合ローラ12とを備えている。テープスプール6は、透明なフィルムからなる幅約24mm、18mm、16mm、12mm、10mm、6mmの印字用テープ5の内、いずれかが巻装されている。リボン供給スプール8は、インクリボン7が巻装されており、巻取りスプール9が、リボン供給スプール8から供給されたインクリボン7を巻取る。供給スプール11には、印字用テープ5と同一幅を有する両面テープ10が剥離紙を外側にして巻装されている。接合ローラ12は、印字用テープ5と両面テープ10とを接合させる。
【0031】
接合ローラ12と巻取りスプール9とが、所定回転方向に夫々同期して駆動され、サーマルヘッド13の発熱素子群に通電されたとき、印字用テープ5上には複数のドット列により文字が印字され、しかも印字用テープ5は両面テープ10を接合した状態でテープ送り方向A(図2における左方向)にテープ送りされる。
【0032】
なお、前記テープ収納カセットCSの底部壁には下方に突出した1対の突出片17、18が一体形成されている。突出片17、18と対向する本体フレーム2側には、テープ収納カセットCSを装着したときに突出片17を検出するためのフォトインタラプタからなるカセット識別センサ21(図3参照)が取付けられている。この突出片17、18の有無を識別することにより、収納された印字用テープ5のテープ幅を検出できるようになっている。
【0033】
次に、テープ印字装置1の制御について図3を参照して説明する。図3は、テープ印字装置1のブロック図である。
【0034】
図3に示すように、テープ印字装置1は、電源識別センサ(電源識別手段)20と、カセット識別センサ21と、キーボード3と、LCD22を表示するためのディスプレイコントローラ(LCDC)23と、印字機構PMと、制御部Cとを備えている。
【0035】
印字機構PMは、サーマルヘッド13と、テープ送りモータ24と、それぞれを駆動する駆動回路25,26とを備えている。サーマルヘッド13は、駆動回路25によって所定箇所の発熱素子群に通電されて、印字データのドット列を印字する。テープ送りモータ24は、駆動回路26によって、テープ収納カセットCSの接合ローラ12と巻取りスプール9とを駆動させて、印字用テープ5を図2における矢印A方向へ送り出す。
【0036】
電源識別センサ20は、電源装置27から供給される電圧ならびにACアダプタ28の挿抜状態を検出して、その結果に基づき、電源が外部のACアダプタ28からのものであるか、電池29からのものであるかを識別する。電源装置27は、外部の交流電源をACアダプタ28によって降圧・直流化した所定の直流電流あるいは電池29からの直流電流を出力するものである。また、電源装置27に電池29及びACアダプタ28が共に接続されている場合には、ACアダプタ28側からの直流電流が供給されるように構成されている。本実施例では、ACアダプタ28の接続ジャックを所定の位置に差し込むことによって、機械的な構成によって電池29からの出力経路が切断されるようになっている。
【0037】
本実施例のACアダプタ28におけるアダプタプラグ28aは、外側端子28bがプラスに、内側端子28cがマイナス(GND)に設定されている。
【0038】
アダプタプラグ28aが接続されていないときは、図4における接点20aと接点20bが接続しており、電池29から電源が供給される。電源識別センサ20に、内部電圧Vが印加され、ACアダプタ28が接続されていないことを識別する。
【0039】
一方、アダプタプラグ28aが接続されると、接点20aと接点20bとの接続が物理的に切断され、アダプタプラグ28aの外側端子28bが接点20bと接続する。このとき、アダプタプラグ28aの内側端子28cが接点20cと接続し、本体へ電流が供給される。内部電圧Vによる電流がアダプタプラグ28aの内側端子28cへと流れるため、電源識別センサ20には、内部電圧Vが印加されない。従って、ACアダプタ28が接続されたと識別する。
【0040】
制御部Cは、CPU30と、ROM31と、RAM32と、インターフェースユニット33と、データバス34とから構成されている。
【0041】
CPU30は、各種コマンドに従って演算処理を行う中央演算処理装置である。
【0042】
ROM31は、CPU30の各機能部の動作を実現し、図6から図8のフローチャートのように実行させるプログラムやプログラム実行に必要なデータが格納されている読出し専用メモリである。ROM31には、最大ドット数記憶部(最大ドット数記憶手段)と、各データの最大ドット数を記憶するデータ記憶部(サイズ別ドット数記憶手段)と、装着されたテープ収納カセットCSのテープ幅に印字可能なカセット別ドット数記憶部を備えている。最大ドット数記憶部は、電池29で印字可能な最大ドット数を記憶しており、本実施形態では、最大ドット記憶部に記憶された最大ドット数は、112ドットである。データ記憶部は、文書データごとの最大ドット数を記憶している。例えば、「A」における最大ドット数は、文字サイズがXLサイズの場合は96ドット、LLサイズの場合は84ドット、Lサイズの場合は60ドットといったようにキャラクタ及び文字サイズと関連付けた最大ドット数が文書データとして記憶されている(図5参照)。また、カセット別ドット数記憶部は、装着されたテープ収納カセットCSごとに、印字可能なドット数をそれぞれ記憶している。例えば、カセット別ドット数記憶部には、24mmのテープ幅を有するテープ収納カセットCSが、テープ印字装置1に装着されていた場合は128ドット以下、18mmのテープ幅を有するテープ収納カセットCSが装着された場合は112ドット以下のように記憶されている。
【0043】
RAM32は、CPU30がプログラムを実行する際に使用するデータの一時記憶用の揮発性メモリであり、テキストメモリや印字バッファ等を備えている。テキストメモリは、RAM32によって構成された文書保存用メモリであり、入力された文書データをコードデータとして記憶する。印字バッファは、印字する文書データのドットパターンデータが印字データとして格納される。印字バッファには、縦方向(ドット列方向)に128ドットに対応する128ビット(16バイト)、横方向に複数キャラクタのドットパターンデータを格納し得るビット数からなる大きさのメモリ容量が設けられている。
【0044】
インターフェースユニット33は、電源識別センサ20、カセット識別センサ21、LCDC20、キーボード3、印字機構PMと、制御部Cとを電気的に接続する接続部である。
【0045】
データバス34は、CPU30と、ROM31と、RAM32と、インターフェースユニット33とを、それぞれ電気的に接続するデータ転送用ライン群である。制御部C内の全ての転送データは、データバス34を介して転送される。
【0046】
次に、制御部C内に備えられた各機能について詳述する。これら機能は、ROM31内部に格納された各種プログラムをCPU30によって実行することで動作する。
【0047】
データ展開手段は、RAM32のテキストメモリに格納された文書データを、ドットパターンデータに展開する手段である。展開したドットパターンデータは、印字データとして、印字バッファに格納される。
【0048】
ドット数算出手段は、サーマルヘッド13が印字する単位ラインあたりのドット数の内、印字データにおける最大ドット数を算出する。
【0049】
ドット数判別手段は、ドット数算出手段によって算出されたドット数と、予めROM31の最大ドット数記憶部に記憶された最大ドット数の大きさを比較する。
【0050】
文字サイズ検出手段は、印字バッファから印字データの文字サイズをそれぞれ検出する手段である。印字バッファには、文書データとして印字に用いる文字サイズ(XL,LL,L,M、S,SS)の何れかが格納される。また、印字バッファは、フラグメモリを備えている。フラグメモリは、「オートサイズ」の文字サイズが設定されたときにセットされるオートサイズフラグAFのフラグデータが格納されており、オートサイズが設定されたときは、装着されたテープ収納カセットCSのテープ幅に対応した文字サイズが設定される。例えば、18mmのテープ幅であった場合は、テープ幅に印字可能な最大文字サイズであるLLサイズが設定される。
【0051】
印字制御手段は、印字バッファに格納された印字データを順次読み出してサーマルヘッド13とテープ送りモータ24との駆動を制御しながら印字する駆動部と、電池29を電源とした場合に印字不可能であると判断された際、印字データを自動縮小し、印字可能な印字データに変更するデータ処理部とを備えている。
【0052】
次に、本実施の形態におけるテープ印字装置1の印字制御方法について図6から図8のフローチャートを参照しながら説明する。図6は、テープ印字装置1のメインルーチンを示すフローチャート、図7は、印字処理の制御を示すフローチャート、図8は、印字データを確認する際のフローチャートである。
【0053】
図6のフローチャートに示すように、テープ印字装置1のキーボード3を操作すると(S101;Yes)、S102に移行する。S102では、入力されたキーが、文字キーであるかが確認される。入力されたキーが文字キーであった場合(S102;Yes)、データ入力処理が行われ(S103)、再びS101に戻り、キー入力待ち状態となる。データ入力処理では、キャラクタ及び文字サイズを設定し、コードデータをテキストメモリに記憶すると共に、印字データを印字バッファに格納する。
【0054】
入力されたキーが、文字キーでなかった場合(S102;No)、S104に移行し、入力されたキーが、印字長キーであるかが確認される。入力されたキーが印字長キーであった場合(S104;Yes)、S105へ移行し、印字長さ設定処理を行う。印字長さ設定が行われた後、再びS101に戻り、キー入力待ち状態となる。印字長さ設定処理では、ユーザが印字長さを設定することにより、印字されるテープの長さを設定できる。例えば、印字データを10cmの印字用テープ5に印字し作成したい場合は、この印字長さ設定処理において、印字長さを10cmと設定することで、印字バッファに記憶された印字データが、そのテープの長さに基づいて均等配置される。なお、印字データが、設定した印字長さに入らないときは、エラーを表示してユーザに知らせる。また、この印字長さ設定処理を行わないときは、印字データに合わせて自動的にテープの長さが設定されることとなる。
【0055】
入力されたキーが、印字長キーでなかった場合(S104;No)、S106へ移行し、印字キーであるかが確認される。入力されたキーが印字キーであった場合(S106;Yes)、S107へ移行し、図7に示す印字処理が行われ、その後、S101に戻り、再びキー入力待ち状態となる。
【0056】
入力されたキーが、印字キーでなかった場合(S106;No)、S108へ移行し、操作されたキーに対応する処理が行われることとなる。その後、S101へ戻り、キー入力待ち状態となる。
【0057】
次に、印字処理を行う際の動作について図7及び図8に従い説明する。
【0058】
まず、テープ印字装置1のカセット識別センサ21にて、テープ印字装置1に装着されているテープ収納カセットCSのテープ幅を判別する(S201)。ここで、装着可能なテープ収納カセットCSは、24mm、18mm、16mm、12mm、10mm、6mmのテープ幅の印字用テープ5を含んだテープ収納カセットCSの6種類である。ROM31の最大ドット数記憶部に記憶された電池29で印字可能なドット数は112ドット以下である。また、カセット別ドット数記憶部に記憶された各々のテープ幅に印字可能なドット数は、それぞれ128ドット、112ドット、70ドット、50ドット、32ドット以下である。従って、テープ幅18mm以下の印字用テープ5に印字処理を行う場合は、印字データの高さ方向における単位ラインあたりのドット数は、112ドットであるため、電池29を電源とした場合においても印字可能である。S201で18mm以下のテープ幅の印字用テープ5を収納したテープ収納カセットCSであると判別した場合(S201;No)、全てのデータが印字可能であるため、S214に移行して、印字データの印字処理を行う。一方、テープ収納カセットCSがテープ幅18mm以下のテープ収納カセットCSでない、つまり24mmの印字用テープ5を収納したテープ収納カセットCSであると判別した際(S201;Yes)、S202へ移行して、電源識別センサ20にて、供給されている電源が、ACアダプタ28からのものか、電池29からのものかが判断される。
【0059】
供給される電源が、ACアダプタ28からのものである場合は(S202;Yes)、出力電圧が十分に供給されるため、S214へ移行し、通常の印字処理を行う。一方、供給されている電源が、ACアダプタ28でない、つまり電池29であると判別したときは(S202;No)、S203へ移行し、図8に示す印字データの確認をする。
【0060】
図8に示すS301において、確認処理が初期化される。具体的には、文書データにおけるキャラクタの数の順番Nに1を代入する。また、今までに調べた文書データが最初はないので、最大ドット数Maxに「0」を代入する。
【0061】
その後、印字データが構成するキャラクタの数Lstを検出する(S302)。その後、印字データのN文字目の最大ドット数Max(N)をROM31のデータ記憶部から読み出す(S303)。そして、今までに調べた文書データの最大ドット数Maxより大きいか否かを判断する(S304)。
【0062】
最大ドット数Maxより、N文字目の最大ドット数Max(N)が大きいと判断された場合は(S304;Yes)、N文字目の最大ドット数Max(N)を、今まで調べた文書データの最大ドット数Maxに代入する(S305)。1文字目の最大ドット数Max(1)を比較する際は、初期値として、Max(0)は「0」であるので、1文字目の最大ドット数Max(1)の方が必ず大きいと判断されることになる(S304;Yes,S305)。最大ドット数Maxより小さいと判別したときは(S304;No)、最大ドット数Maxの値は変更されず、S306へ移行する。S306では、N番目のキャラクタが印字データ最後のキャラクタか否かが確認される。最後でない場合は(S306;No)、S307へ移行し、次の文字についてS303からの処理を同様に確認を行う。最後であると確認された場合は(S306;Yes)、図7におけるS204の処理に戻り、最大ドット数Maxが112ドット以上であるかを判別する。
【0063】
S204では、単位ラインあたりのドット数の内、最大ドット数Maxが、予めROM31の最大ドット数記憶部に記憶された電池29で印字可能なドット数、すなわち112ドットより大きいか否かを判断する。
【0064】
算出した最大ドット数Maxが、112ドット以下であると判断したとき(S204;Yes)、電池29による出力電圧で印字可能であるため、S214に移行して、装着した印字テープ5に印字データを印字する。一方、最大ドット数が112ドットより大きいと判断したとき(S204;No)、S205へ移行し、文字が大きすぎて印字できない旨のエラーをLCD22に表示する。この際、エラー表示の方法は、特に限定されるものではなく、例えば、音によってユーザに報知してもよい。
【0065】
その後、LCD22に自動縮小するか否かをユーザに選択させる内容が表示される(S206)。ユーザが、自動縮小しないと選択した際は(S206;No)、S207へ移行し、LCD22にエラーを表示してACアダプタ28を装着するようユーザに促す。その後、S201に戻る。この際のエラー表示は、文字サイズの設定が「オートサイズ」であった場合には、印字可能なテープ幅の印字用テープ5を収納したテープ収納カセットCSに交換するように、ユーザに促すような構成にしてもよい。
【0066】
一方、自動縮小すると選択された場合は(S206;Yes)、印字データが、キャラクタごとに複数のサイズで構成されているかを確認する(S208)。1種類の文字サイズにて印字データが構成されていた場合、例えば、XLサイズのみから構成されている場合(S208;No)、印字データ全体を印字可能範囲に縮小する(S209)。印字データが、複数の文字サイズから構成されている場合(S208;Yes)、自動縮小範囲を選択させる(S210)。具体的には、印字データ全体を印字可能範囲に自動縮小するか、印字データのうち、文字サイズがXLサイズの文書データ、つまり最大ドット数が112ドット以上の文書データのみ自動縮小し、他の文書データは変更しないかを選択することができる。この印字データを自動縮小するかをユーザに選択させたときに行う処理が、縮小選択手段に相当する。
【0067】
印字データ全体を自動縮小すると選択した場合(S210;Yes)、S209に移行して印字データ全体を印字可能範囲まで自動縮小する。一方、112ドット以上のドット数を含む文書データのみ自動縮小すると選択した場合(S211)は、112ドット以上の文書データの文字サイズのみ印字可能範囲まで自動縮小する。この印字データを自動縮小する処理が、データ自動縮小手段に相当する。
【0068】
S209及びS211にて、自動縮小した印字データは、その後、LCD22に表示され(S212)、S213へ移行する。
【0069】
LCD22に表示されたイメージデータに従って印字すると判断した場合(S213;Yes)、自動縮小した内容をカセット装着部に装着されたテープ収納カセットCSの印字用テープ5に印字する(S214)。一方、印字しないと選択した際は(S213;No)、S206に移行し、自動縮小するか否かの判断待ち状態となる。S214で印字処理を行った後は、図6に示すフローチャートにおけるS101に戻り、キー入力待ち状態となる。
【0070】
ここで、図7における印字処理が印字制御手段に、図8における印字データ確認の処理がドット数算出手段にそれぞれ相当する。また、図7におけるS204の電池29で印字可能なドット数か否かを確認する処理がドット数判別手段に、図7におけるS208の文字サイズが複数あるかを確認する処理が文字サイズ検出手段に、図7におけるS212の印字データをドットイメージに展開する処理がデータ展開手段に、それぞれ相当する。
【0071】
次に、フローチャートに従いながら、具体的に印字処理を行う動作について説明する。例えば、図9(a)に示すように、24mm幅の印字用テープ5に「P」のみがXLサイズ、「R」がLサイズ、「INT」がMサイズにそれぞれ入力設定された印字データを印字したい場合について説明する。
【0072】
まず、ユーザは、図6におけるデータ入力処理によって、所望の文書データを作成する。作成された文書データは、RAM32のテキストメモリ、印字バッファにそれぞれ格納される。
【0073】
次に、ユーザが印字キーを入力することで(S101;Yes,S102;No,S104;No,S106;Yes)、図7の印字処理へと移行する。
【0074】
印字処理の制御において、S201で装着されたテープ収納カセットCSのテープ幅が24mmであると判断され(S201;No)、電源が電池29であると判断されるため(S202;No)、S203の印字データ確認へ移行する。図8のフローチャートに従って、初期化された後(S301)、キャラクタの数が検出される(S302)。ここで、「PRINT」を構成する文字数は、5文字であるため、Lstに「5」が代入される。ROM31に記憶されたそれぞれの印字データ(図5参照)に基づいて、最大ドット数Maxが算出される。すなわち、1文字目「P」の最大ドット数Max(1)が128ドットであるとROM31から読み出される(S303)。最大ドット数Maxは、初め「0」に設定されているので、1文字目「P」の最大ドット数Max(1)の方が大きく、印字データの最大ドット数Maxに128ドットが代入される(S304;Yes,S305)。「P」は、最後の文字ではないので(S306;No)、次の文字「R」へ移行する(S307)。2文字目「R」の最大ドット数Maxが、112ドットであるとROM31から読み出される(S303)。ここで、今までに調べた最大ドット数Maxは、128ドットであるため、最大ドット数Maxの方が大きいと判断され(S304;Yes)、最大ドット数Maxは書き換えられず、そのまま最後の文字であるかの判断へ移行する(S306)。同様に、3文字目、4文字目も処理が繰り返される(S303〜S307)。5文字目、つまり最後の文字である「T」の最大ドット数Max(5)と今までに調べた最大ドット数Maxとの判別処理が終了すると(S305)、キャラクタが最後であるため(S306;Yes)、印字データ確認の処理が終了する。
【0075】
次に、図7に戻り、記憶された最大ドット数Maxと、ROM31の最大ドット数記憶部に記憶された電池29で印字可能なドット数との大小関係が比較される(S204)。ここで、電池29で印字可能なドット数は、112ドット以下であり、印字データの最大ドット数Maxは128ドットであるため、最大ドット数Maxのほうが大きいと判断され(S205;No)、文字が大きすぎて印字できない旨のエラーが表示される(S206)。続いて、自動縮小するか確認される(S206)。ここでユーザが、自動縮小すると選択すると(S206;Yes)、印字データを構成する文字サイズが複数種類で構成されているか否かが判断される(S208;Yes)。本実施例では、XL、L、Mサイズの複数の文字サイズから構成されていると判断され(S208;Yes)、自動縮小範囲を選択する処理に移行する(S210)。文字サイズがXLサイズのキャラクタのみを部分縮小するか、全体を自動縮小するかが選択可能であり、部分縮小を選択すると(S210;No)、「P」の文字が、印字可能な文字サイズLLサイズに自動縮小される(S211)。そして、自動縮小された「PRINT」の印字データがLCD22に表示される(S212)。このイメージで印字するか否かが確認され、ユーザが印字すると選択すると(S213;Yes)、LCD22に表示された印字データが、装着されたテープ幅24mmの印字用テープ5に印字される(図9(b)参照)。
〔第2の実施形態〕
次に、本発明における第2の実施形態について説明する。第2の実施形態におけるテープ印字装置1の構成等は、第1の実施形態と同様である。第1の実施形態とは異なり、CPU30の印字制御手段による文書データが電池29で印字可能か否かを判別する動作が、キャラクタを入力した時に行われる。そこで、以下に、データ入力処理の動作について、図10のフローチャートを参照しながら説明する。図10は、第2の実施形態におけるデータ入力処理を示すフローチャートである。
【0076】
図6に示すキー入力待ち状態から、文字キーが入力されると(S101;Yes、S102;Yes)、図10のフローチャートに示すデータ入力処理に移行する。
【0077】
図10では、入力されたキャラクタのコードデータがテキストメモリに格納される(S401)。このとき、テキストメモリに入力された文書データがすでに格納されている場合は、新たに入力されたキャラクタをテキストメモリに追加することになる。
【0078】
そして、文字サイズ設定画面に移行し(S402)、ユーザによって入力された文書データの文字サイズが設定される。
【0079】
次に、テープ印字装置1に装着されたテープ収納カセットCSが、テープ幅18mm以下であるかが判断される。このとき、テープ収納カセットCSが18mm以下のテープ幅である場合(S403;Yes)、電源がACアダプタ28であるか電池29であるかを問わずに印字可能であるため、入力されたキャラクタ及び文字サイズがRAM32のテキストメモリに格納されることとなる。一方、装着されたテープ収納カセットCSのテープ幅が18mm以下でない、つまり24mmであると判断された場合は(S403;No)、S404へ移行する。
【0080】
S404では、電源がACアダプタ28によるものか電池29によるものかが判別される。電源がACアダプタ28によるものであれば(S404;Yes)、文書データに関わらず印字可能であるためS411へ移行して、文書データをテキストメモリに格納する。
【0081】
電源が電池29によるものであると判別されると(S404;No)、S405へ移行し、入力されたキャラクタ及び設定された文字サイズから、予めROM31に記憶された最大ドット数が読み出される(S405)。その後、S406へ移行し、S405で読み出された最大ドット数が、電池29で入力可能なドット数112ドット以下であるか否かが判断される。
【0082】
最大ドット数が、112ドット以下であると判別された際は(S406;Yes)、電池29による電源で印字可能であるため、そのままテキストメモリに文字サイズが追加される(S411)。一方、最大ドット数が112ドットより大きいと判断された場合は(S406;No)、LCD22に文字が大きすぎる旨のエラーが表示される(S407)。
【0083】
その後、S408へ移行し、入力した文字を自動縮小するか否かの判断をユーザに促す。ユーザが、自動縮小しないと選択した場合は(S408;No)、アダプタを装着するようにユーザに促す旨のエラーメッセージが表示される(S409)。一方、自動縮小すると選択された場合は(S408;Yes)、S410へ移行し、文字を印字可能範囲に自動縮小し、縮小した文字サイズをRAM32のテキストメモリに追加し(S411)、図6におけるS101のキー入力待ち状態となる。
【0084】
図10に示すデータ入力処理動作を繰り返すことによって、所望の印字データが入力されることとなる。入力された印字データは、印字キーを操作することによって、印字されることとなる。
【0085】
例えば、図9(a)に示す「PRINT」という文字を、入力する動作について図10のフローチャートに従って説明する。
【0086】
まず、ユーザのキー操作によって「P」が入力されることとなる(図6におけるS101;Yes,S102;Yes)。図10のフローチャートに移行し、入力された「P」の文字のコードデータをテキストメモリに格納する(S401)。
【0087】
その後、「P」の文字サイズの選択が行われることとなる(S402)。ユーザは、複数種類ある文字サイズのうち、XLサイズを選択する。その後、テープ印字装置1に装着されたテープ収納カセットCSのテープ幅が確認される(S403)。テープ幅が24mmであるので(S403;No)、S404へ移行し、電源がACアダプタ28であるかが判断される。そして、電源が電池29であるため(S404;No)、入力された文書データ「P」のXLサイズにおける最大ドット数がROM31から読み出されることとなる(図5参照)。
【0088】
このとき、「P」のXLサイズにおける最大ドット数は、128ドットである。電池で印字可能なドット数112ドットより、「P」のXLサイズ時の最大ドット数128ドットが大きいため(S406;No)、文字が大きすぎる旨のエラーを表示し(S407)、自動縮小するか否かをユーザに選択させる(S408)。
【0089】
ユーザが、自動縮小すると選択すると(S408;Yes)、S410で、「P」が印字可能範囲の文字サイズに自動縮小され(ここでは、LLサイズ)、RAM32のテキストメモリに「P」の文字サイズであるLLサイズが追加される。再び、図6におけるS101のキー入力待ち状態となる。
【0090】
次のキャラクタである「R」が入力されると同様に図10のデータ入力処理の動作に移行する。「R」のコードデータがテキストメモリに格納される。このとき、RAM32のテキストメモリには、「P」の文書データが格納されているため、「P」の文書データに追加することになる。「R」は、文字サイズがLLサイズであり、ROM31に格納された最大ドット数が112ドットである。従って、S406で、最大ドット数が112ドット以下であると判別され(S406;Yes)、LLサイズのまま、RAM32のテキストメモリに追加される。同様に、「I」「N」「T」がそれぞれ入力されることとなる。
【0091】
全ての文字が入力されると、再び、図6におけるS101のキー入力待ち状態に移行する。ここで、印字処理を行うには、印字キーを入力する(S101;Yes,S102;No,S103;No,S104;Yes)。印字キーが入力されると、RAM32のテキストメモリに格納されたデータが、印字バッファに展開され、図9(b)に示すドットパターンデータがLCD22に表示される。そこで、ユーザが印字を指定すると印字処理が施される。
〔変形例〕
以上に説明したように、本実施形態にかかるテープ印字装置1は、前述のように、ACアダプタ28と電池29との両方を電源として使用可能であり、電池29を電源として使用する際には、印字データの最大ドット数を算出し、印字データのサーマルヘッド13が一度に印刷するドット数に応じて、印刷を制御することで、電池で印刷可能な範囲を印刷することができる。
【0092】
なお、本発明は実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で種々の改良、変形が可能である。
【0093】
例えば、本実施の形態では、印字装置としてテープ印字装置1を使用しているが、このようなテープ印字装置1に限らず、記録ヘッドを駆動させることにより、印字を行うドット式の印字装置であればよい。
【0094】
また、本実施の形態では、電池29で印字可能とする印刷制御手段を自動縮小するとしたが、サーマルヘッド13が発熱する発熱素子群の数を減少させればよい。例えば、サーマルヘッド13が発熱する発熱素子群を複数列有するテープ印字装置であった場合に、印刷制御手段が、印字データのドット数によって一度に印字する列数を制御する。すなわち、通常の印刷を行うときは、印刷制御手段が、発熱素子群の複数列全てを発熱させて、一度に印刷を行うように制御して、電源が電池であり、且つ印字データの最大ドット数が電池で印字可能な値以上であった場合には、発熱素子群の発熱させる列数を複数列から一列に減少させて印刷する。
【0095】
また、電池29で印刷する際の出力電圧を印字長によって、異なるものとしてもよい。例えば、制御部Cに印字長確認手段を設け、印字長さが10cm以上であると確認された場合は、印字可能ドット数を80ドット以下にし、10cm未満であると確認された場合は、112ドット以下に予め設定してもよい。
【0096】
さらに、本実施形態では、キャラクタと文字サイズから得られる最大ドット数を、予めROM31に記憶しているが、印字データを確認する際に、印字データを展開してサーマルヘッド13が駆動する単位ラインごとにカウントし、その値の最大値としてもよい。なお、このとき展開する印字データは、データ全体であってもよいし、印字データの内、最大の文字サイズであるキャラクタを検出し、そのキャラクタを展開するようにしてもよい。
【0097】
【発明の効果】
以上詳述したように、請求項1に記載の印字装置及びプログラムによれば、印字データの印字ドット数によって、電池で印字可能か否かが判断されるため、ユーザが印字媒体の印字幅よりも小さい文字サイズを指定して印字データを作成した場合や、印字データ自体に印字するドット数が少ない場合など、少ない印加エネルギーで印字可能な場合には、印字テープのテープ幅が広いときでも電池を電源として印字が可能となる。
【0098】
請求項2に記載の印字装置及びプログラムによれば、最も文字サイズの大きい文字からなる印字データをイメージ展開し、その印字データのドット数の最大値のみを算出するため、最大値を算出する処理が速くなる。
【0099】
請求項3に記載の印字装置及びプログラムによれば、予め、文字サイズによってドット数が決まっているため、展開しなくてもドット数が算出できる。
【0100】
請求項4に記載の印字装置及びプログラムによれば、印字長算出手段を設けているため、印字長が短い印字データでは、単位ラインあたりのドット数が大きな場合でも、印字できる範囲が広がる。
【0101】
請求項5に記載の印字装置及びプログラムによれば、文字サイズが異なる印字データであった場合に、文字サイズの大きなデータのみを自動縮小するため、全体の大きさを変えることなく印字できる。
【0102】
請求項6に記載の印字装置及びプログラムによれば、一度に複数ライン印字する記録ヘッドを有する場合に、一度に印字する単位ラインを減少させて印字制御するため、印字データを変更することなく、印字することが可能となる。
【0103】
請求項7に記載の印字装置及びプログラムによれば、データを入力する際に、入力データの制限を行っているので、ユーザが入力し直すことなく印字データを印字することができる。
【図面の簡単な説明】
【図1】本実施形態にかかるテープ印字装置1の平面図である。
【図2】テープ印字装置1の印字機構PMの平面図である。
【図3】テープ印字装置1のブロック図である。
【図4】電源識別センサ20の説明図である。
【図5】ROM31に備えられる最大ドット数記憶部の説明図である。
【図6】テープ印字装置1のメインルーチンを示すフローチャートである。
【図7】第1の実施形態における印字処理の制御を示すフローチャートである。
【図8】第1の実施形態における印字データを確認する際のフローチャートである。
【図9】本実施の形態における処理を行ったときの具体例である。
【図10】第2の実施形態におけるデータ入力処理を示すフローチャートである。
【符号の説明】
1 テープ印字装置
5 印字テープ
20 電源識別センサ
28 ACアダプタ
29 電池
13 サーマルヘッド
30 CPU
31 ROM
32 RAM
PM 印字機構
CS テープ収納カセット[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a printing device and a program that can use both an AC adapter and a battery as a power supply, and a recording medium that stores the program.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a printing apparatus that prints print data using both an AC adapter that converts an AC power supply into a DC power supply and a battery as a power supply has been known (for example, see Patent Document 1).
[0003]
This printing apparatus drives a recording head with electric power supplied from a power supply, and limits printing processing depending on a difference in output voltage. For example, in
[0004]
[Patent Document 1]
JP-A-8-216486
[0005]
[Problems to be solved by the invention]
However, in a printing apparatus such as that disclosed in
[0006]
In order to solve the above problem, a printing apparatus is provided which controls a recording head in accordance with the number of dots of print data to be printed when a power source is a battery, regardless of the width of the print medium. The purpose is to:
[0007]
[Means for Solving the Problems]
In order to achieve the above object, the printing apparatus according to
[0008]
The printing apparatus according to
[0009]
The printing device according to claim 2, wherein the character size detection unit detects a character size of a character constituting the print data, and the character size detected by the character size detection unit. Data development means for developing the print data of the character having the largest character size into an image, wherein the maximum value of the number of dots to be printed at one time by the recording head of the print data developed by the data development means Is calculated by the dot number calculation means.
[0010]
In the printing apparatus according to the second aspect, the character size detecting means detects a character size of a character constituting the print data. The data developing unit develops an image of print data of a character having the largest character size among the character sizes detected by the character size detecting unit, and the number of dots of the image-developed print data to be printed at one time by the recording head. Is calculated by the dot number calculation means.
[0011]
The printing apparatus according to claim 3, further comprising a size-specific dot number storage unit configured to store the number of vertical dots and the number of horizontal dots of print data different for each character size, in the printing apparatus according to claim 2, The number of dots calculated by the number-of-dots calculating means is the number of dots in the height direction of the recording head among the number of vertical dots or the number of horizontal dots stored by the size-specific dot number storing means. .
[0012]
In the printing apparatus according to the third aspect, the size-specific dot number storage means stores the number of vertical dots and the number of horizontal dots of print data that differ for each character size. The dot number calculation means calculates the number of dots in the height direction of the recording head from the number of vertical dots or the number of horizontal dots stored by the size-specific dot number storage means.
[0013]
The printing device according to
[0014]
In the printing apparatus according to the fourth aspect, the print length calculating means calculates the length of the print data in the printing direction. The maximum dot number stored in the maximum dot number storage means differs depending on the calculated length.
[0015]
According to a fifth aspect of the present invention, in the printing apparatus according to any one of the first to fourth aspects, the maximum number of the dots is determined to be larger than the maximum number of the dots by the dot number determination unit. Sometimes, when the print data is reduced by the reduction selecting means for selecting whether or not to reduce the print data, and when the character sizes of the print data are different, the maximum character size is used. It is characterized by further comprising a data reduction means for automatically reducing the configured character data.
[0016]
6. The printing apparatus according to
[0017]
The printing device according to
[0018]
In the printing apparatus according to the sixth aspect, the recording head can print a plurality of lines at a time. The number of print lines of the recording head decreases when the number-of-dots determining means determines that the number of dots is larger than the maximum number of dots.
[0019]
7. The printing device according to claim 7, further comprising an input unit for inputting the print data, wherein the dot number determining unit determines the number of dots. Is determined to be larger than the maximum number of dots, the input of data input by the input means is restricted.
[0020]
In the printing apparatus according to the seventh aspect, the input means inputs print data for printing. The input of the data input by the input means is restricted when the dot number determination means determines that the dot number is larger than the maximum dot number.
[0021]
A program according to an eighth aspect realizes a function of each unit of the printing apparatus according to any one of the first to seventh aspects.
[0022]
A recording medium according to a ninth aspect is readable by a computer that records the program according to the eighth aspect.
[0023]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0024]
In the present embodiment, the present invention is applied to a tape printer capable of printing a large number of characters such as kanji, hiragana, katakana, and alphabetic characters on a printing tape (tape as a medium to be printed).
[First Embodiment]
The configuration of the tape printing device (printing device) 1 will be described with reference to FIGS. FIG. 1 is a plan view of the
[0025]
As shown in FIG. 1, the
[0026]
The keyboard 3 is disposed at the front (lower side in FIG. 1) of the main body frame 2 and is provided with character keys, print keys, power keys, cursor keys, print length keys, and the like. As the character key, an alphabet, hiragana, katakana, or the like is input. The print key prints the input characters. The power key turns on / off the power. The cursor keys are used to select a character size or the like. The print length key sets the print length.
[0027]
The LCD 22 is provided behind the keyboard 3 and displays characters and symbols. The printing mechanism PM is disposed in the main body frame 2 behind the keyboard 3.
[0028]
The configuration of the printing mechanism PM is substantially the same as the configuration described in JP-A-2-106555. That is, as shown in FIG. 2, the printing mechanism PM includes a tape storage cassette CS storing the
[0029]
The
[0030]
A tape storage cassette CS is detachably mounted on the printing mechanism PM. The tape storage cassette CS includes a
[0031]
When the joining
[0032]
A pair of projecting
[0033]
Next, control of the
[0034]
As shown in FIG. 3, the
[0035]
The printing mechanism PM includes a
[0036]
The power
[0037]
In the
[0038]
When the
[0039]
On the other hand, when the
[0040]
The control unit C includes a CPU 30, a
[0041]
The CPU 30 is a central processing unit that performs arithmetic processing according to various commands.
[0042]
The
[0043]
The
[0044]
The interface unit 33 is a connection unit for electrically connecting the power
[0045]
The data bus 34 is a data transfer line group that electrically connects the CPU 30, the
[0046]
Next, each function provided in the control unit C will be described in detail. These functions operate by the CPU 30 executing various programs stored in the
[0047]
The data developing means is means for developing document data stored in the text memory of the
[0048]
The dot number calculation means calculates the maximum number of dots in the print data among the number of dots per unit line printed by the
[0049]
The dot number discriminating unit compares the number of dots calculated by the dot number calculating unit with the maximum dot number stored in the maximum dot number storage unit of the
[0050]
The character size detecting means is means for detecting the character size of the print data from the print buffer. The print buffer stores any of the character sizes (XL, LL, L, M, S, SS) used for printing as document data. The print buffer has a flag memory. The flag memory stores flag data of an auto size flag AF which is set when the character size of "auto size" is set. When the auto size is set, the flag memory of the attached tape storage cassette CS is set. The character size corresponding to the tape width is set. For example, if the tape width is 18 mm, the LL size, which is the maximum character size that can be printed on the tape width, is set.
[0051]
The print control means sequentially reads out the print data stored in the print buffer and prints while controlling the driving of the
[0052]
Next, a print control method of the
[0053]
As shown in the flowchart of FIG. 6, when the keyboard 3 of the
[0054]
If the input key is not a character key (S102; No), the process proceeds to S104, and it is confirmed whether the input key is a print length key. If the input key is a print length key (S104; Yes), the process proceeds to S105, and a print length setting process is performed. After the printing length setting is performed, the process returns to S101 again, and waits for a key input. In the print length setting process, the length of the tape to be printed can be set by the user setting the print length. For example, when the print data is to be printed on a 10
[0055]
If the input key is not the print length key (S104; No), the process proceeds to S106, and it is confirmed whether the input key is the print key. If the input key is a print key (S106; Yes), the flow shifts to S107, where the printing process shown in FIG. 7 is performed, and thereafter, the flow returns to S101, and the key input wait state is resumed.
[0056]
If the input key is not a print key (S106; No), the process moves to S108, and processing corresponding to the operated key is performed. After that, the process returns to S101 and waits for a key input.
[0057]
Next, the operation at the time of performing the printing process will be described with reference to FIGS.
[0058]
First, the tape width of the tape storage cassette CS mounted on the
[0059]
When the supplied power is from the AC adapter 28 (S202; Yes), the output voltage is sufficiently supplied, and the process shifts to S214 to perform a normal printing process. On the other hand, when it is determined that the supplied power is not the
[0060]
In S301 shown in FIG. 8, the confirmation processing is initialized. Specifically, 1 is assigned to the order N of the number of characters in the document data. In addition, since there is no document data that has been examined so far, “0” is substituted for the maximum dot number Max.
[0061]
Thereafter, the number Lst of characters constituting the print data is detected (S302). Thereafter, the maximum dot number Max (N) of the Nth character of the print data is read from the data storage unit of the ROM 31 (S303). Then, it is determined whether or not it is larger than the maximum dot number Max of the document data examined so far (S304).
[0062]
If it is determined that the maximum dot number Max (N) of the N-th character is larger than the maximum dot number Max (S304; Yes), the maximum dot number Max (N) of the N-th character is obtained by examining the document data so far. (S305). When comparing the maximum dot number Max (1) of the first character, since Max (0) is “0” as an initial value, it is necessary to make sure that the maximum dot number Max (1) of the first character is always larger. It is determined (S304; Yes, S305). When it is determined that the value is smaller than the maximum dot number Max (S304; No), the process proceeds to S306 without changing the value of the maximum dot number Max. In S306, it is confirmed whether the Nth character is the last character of the print data. If it is not the last (S306; No), the process proceeds to S307, and the process from S303 on the next character is similarly confirmed. If it is confirmed that the last time is reached (S306; Yes), the process returns to S204 in FIG. 7, and it is determined whether or not the maximum dot number Max is 112 dots or more.
[0063]
In S204, it is determined whether or not the maximum number Max of dots per unit line is larger than the number of dots printable by the battery 29 stored in the maximum dot number storage unit of the
[0064]
When the calculated maximum dot number Max is determined to be 112 dots or less (S204; Yes), printing can be performed with the output voltage of the battery 29. Print. On the other hand, when it is determined that the maximum number of dots is larger than 112 dots (S204; No), the process proceeds to S205, and an error indicating that the characters are too large to be printed is displayed on the LCD 22. At this time, the error display method is not particularly limited, and for example, the user may be notified by sound.
[0065]
After that, the content for prompting the user to select whether or not to perform automatic reduction is displayed on the LCD 22 (S206). If the user selects not to perform automatic reduction (S206; No), the process proceeds to S207, where an error is displayed on the LCD 22 to prompt the user to attach the
[0066]
On the other hand, if automatic reduction is selected (S206; Yes), it is confirmed whether the print data is composed of a plurality of sizes for each character (S208). If the print data is composed of one type of character size, for example, if it is composed of only the XL size (S208; No), the entire print data is reduced to the printable range (S209). If the print data is composed of a plurality of character sizes (S208; Yes), an automatic reduction range is selected (S210). More specifically, the entire print data is automatically reduced to a printable range, or, of the print data, only document data having a character size of XL size, that is, only document data having a maximum dot number of 112 dots or more, is automatically reduced. It is possible to select whether or not to change the document data. The process performed when the user selects whether to automatically reduce the print data corresponds to a reduction selecting unit.
[0067]
If it is selected to automatically reduce the entire print data (S210; Yes), the process proceeds to S209 to automatically reduce the entire print data to a printable range. On the other hand, when it is selected to automatically reduce only the document data including the number of dots of 112 dots or more (S211), only the character size of the document data of 112 dots or more is automatically reduced to the printable range. The process of automatically reducing the print data corresponds to a data automatic reduction unit.
[0068]
At S209 and S211, the print data automatically reduced is displayed on the LCD 22 (S212), and the process proceeds to S213.
[0069]
If it is determined that printing is to be performed in accordance with the image data displayed on the LCD 22 (S213; Yes), the automatically reduced contents are printed on the
[0070]
Here, the print processing in FIG. 7 corresponds to the print control means, and the print data confirmation processing in FIG. 8 corresponds to the dot number calculation means. Also, the process of checking whether or not the number of dots that can be printed by the battery 29 in S204 in FIG. 7 is performed by the dot number determination unit, and the process of checking whether there are multiple character sizes in S208 in FIG. 7 is performed by the character size detection unit. The process of developing the print data in S212 in FIG. 7 into a dot image corresponds to the data developing unit.
[0071]
Next, an operation for specifically performing a printing process will be described with reference to a flowchart. For example, as shown in FIG. 9A, print data in which only “P” is set to the XL size, “R” is set to the L size, and “INT” is set to the M size are printed on the 24 mm
[0072]
First, the user creates desired document data by the data input processing in FIG. The created document data is stored in the text memory and the print buffer of the
[0073]
Next, when the user inputs a print key (S101; Yes, S102; No, S104; No, S106; Yes), the process shifts to the printing process of FIG.
[0074]
In the control of the printing process, it is determined that the tape width of the tape storage cassette CS mounted in S201 is 24 mm (S201; No), and it is determined that the power source is the battery 29 (S202; No). Move on to print data confirmation. According to the flowchart of FIG. 8, after initialization (S301), the number of characters is detected (S302). Here, since the number of characters constituting “PRINT” is five, “5” is substituted for Lst. The maximum dot number Max is calculated based on the respective print data (see FIG. 5) stored in the
[0075]
Next, returning to FIG. 7, the magnitude relationship between the stored maximum dot number Max and the number of dots that can be printed by the battery 29 stored in the maximum dot number storage section of the
[Second embodiment]
Next, a second embodiment of the present invention will be described. The configuration and the like of the
[0076]
When a character key is input from the key input waiting state shown in FIG. 6 (S101; Yes, S102; Yes), the processing shifts to the data input processing shown in the flowchart of FIG.
[0077]
In FIG. 10, the code data of the input character is stored in the text memory (S401). At this time, if the text data input to the text memory is already stored, the newly input character is added to the text memory.
[0078]
Then, the screen shifts to a character size setting screen (S402), and the character size of the document data input by the user is set.
[0079]
Next, it is determined whether the tape storage cassette CS mounted on the
[0080]
In S404, it is determined whether the power is from the
[0081]
If it is determined that the power is supplied from the battery 29 (S404; No), the process proceeds to S405, and the maximum number of dots previously stored in the
[0082]
When it is determined that the maximum number of dots is equal to or less than 112 dots (S406; Yes), the character size is added to the text memory as it is because printing is possible with the power supply from the battery 29 (S411). On the other hand, when it is determined that the maximum dot number is larger than 112 dots (S406; No), an error indicating that the character is too large is displayed on the LCD 22 (S407).
[0083]
Thereafter, the process proceeds to S408, and prompts the user to determine whether to automatically reduce the input character. If the user selects not to perform automatic reduction (S408; No), an error message is displayed to prompt the user to mount the adapter (S409). On the other hand, if automatic reduction has been selected (S408; Yes), the process proceeds to S410, in which the character is automatically reduced to the printable range, and the reduced character size is added to the text memory of the RAM 32 (S411). The key input wait state of S101 is entered.
[0084]
By repeating the data input processing operation shown in FIG. 10, desired print data is input. The input print data is printed by operating the print key.
[0085]
For example, an operation of inputting the character “PRINT” shown in FIG. 9A will be described with reference to the flowchart of FIG.
[0086]
First, "P" is input by a key operation of the user (S101; Yes, S102; Yes in FIG. 6). The process proceeds to the flowchart of FIG. 10, and the code data of the input character “P” is stored in the text memory (S401).
[0087]
Thereafter, the character size of "P" is selected (S402). The user selects the XL size from a plurality of character sizes. Then, the tape width of the tape storage cassette CS mounted on the
[0088]
At this time, the maximum number of dots in the XL size of “P” is 128 dots. Since the maximum number of dots 128 for "P" in the XL size is larger than the number of dots that can be printed by the battery (S406: No), an error indicating that the character is too large is displayed (S407), and automatic reduction is performed. The user is made to select whether or not (S408).
[0089]
If the user selects to reduce automatically (S408; Yes), "P" is automatically reduced to the character size of the printable range (here, LL size) in S410, and the character size of "P" is stored in the text memory of the
[0090]
When the next character “R” is input, the process proceeds to the data input process in FIG. The code data of “R” is stored in the text memory. At this time, since the text data of “P” is stored in the text memory of the
[0091]
When all the characters have been input, the process returns to the key input waiting state of S101 in FIG. Here, in order to perform the printing process, a print key is input (S101; Yes, S102; No, S103; No, S104; Yes). When the print key is input, the data stored in the text memory of the
(Modification)
As described above, the
[0092]
Note that the present invention is not limited to the embodiments, and various improvements and modifications can be made without departing from the spirit of the present invention.
[0093]
For example, in the present embodiment, the
[0094]
Further, in the present embodiment, the print control means for enabling printing with the battery 29 is automatically reduced. However, the number of heat generating element groups that generate heat from the
[0095]
Further, the output voltage at the time of printing with the battery 29 may be different depending on the printing length. For example, a print length confirmation unit is provided in the control unit C. When the print length is confirmed to be 10 cm or more, the number of printable dots is reduced to 80 dots or less, and when the print length is confirmed to be less than 10 cm, 112 It may be set in advance to dots or less.
[0096]
Further, in this embodiment, the maximum dot number obtained from the character and the character size is stored in the
[0097]
【The invention's effect】
As described in detail above, according to the printing apparatus and the program according to the first aspect, whether or not printing is possible with the battery is determined based on the number of print dots of the print data. If the print data can be printed with a small amount of applied energy, such as when the print data is created by specifying a small character size or when the number of dots to be printed on the print data itself is small, even if the print tape is wide, Can be used as a power supply for printing.
[0098]
According to the printing apparatus and the program according to claim 2, processing for developing a print data consisting of characters having the largest character size into an image and calculating only the maximum value of the number of dots of the print data, so as to calculate the maximum value Is faster.
[0099]
According to the printing device and the program according to the third aspect, the number of dots is determined in advance according to the character size, so that the number of dots can be calculated without expanding.
[0100]
According to the printing apparatus and the program according to the fourth aspect, since the print length calculating means is provided, the printable range of print data having a short print length is widened even when the number of dots per unit line is large.
[0101]
According to the printing apparatus and the program according to the fifth aspect, when print data having different character sizes is used, only data having a large character size is automatically reduced, so that printing can be performed without changing the overall size.
[0102]
According to the printing apparatus and the program according to
[0103]
According to the printing apparatus and the program according to the seventh aspect, when data is input, the input data is restricted, so that the print data can be printed without the user having to input the data again.
[Brief description of the drawings]
FIG. 1 is a plan view of a
FIG. 2 is a plan view of a printing mechanism PM of the
FIG. 3 is a block diagram of the
FIG. 4 is an explanatory diagram of a power
FIG. 5 is an explanatory diagram of a maximum dot number storage unit provided in a
FIG. 6 is a flowchart illustrating a main routine of the
FIG. 7 is a flowchart illustrating control of print processing according to the first embodiment.
FIG. 8 is a flowchart for checking print data in the first embodiment.
FIG. 9 is a specific example when processing according to the present embodiment is performed.
FIG. 10 is a flowchart illustrating a data input process according to the second embodiment.
[Explanation of symbols]
1 Tape printer
5 Printing tape
20 Power supply identification sensor
28 AC Adapter
29 batteries
13 Thermal head
30 CPU
31 ROM
32 RAM
PM printing mechanism
CS tape storage cassette
Claims (9)
前記電池を電源として使用した場合に、前記記録ヘッドが一度に印字可能な最大ドット数を記憶する最大ドット数記憶手段と、
前記アダプタ或いは電池のいずれが前記印字装置に接続されているかを識別する電源識別手段と、
前記電源識別手段が、前記電池を識別した場合、前記印字データの単位ラインにおいて、前記記録ヘッドが一度に印字すべきドット数の最大値を算出するドット数算出手段と、
前記ドット数算出手段によって算出された前記最大値が前記最大ドット数記憶手段に記憶された前記最大ドット数より大きいか否かを判別するドット数判別手段と、
前記ドット数判別手段の結果に基づいて、前記記録ヘッドを制御する印字制御手段とを備えることを特徴とする印字装置。An AC adapter that converts an AC power supply into a DC power supply and a battery can be used as power supplies. By driving the recording head with the AC adapter or the battery based on print data, one or more print media can be used. A printing device capable of printing for each unit line of
When the battery is used as a power source, a maximum dot number storage unit that stores the maximum number of dots that can be printed by the recording head at one time,
Power supply identification means for identifying which of the adapter or battery is connected to the printing device;
When the power supply identification unit identifies the battery, in a unit line of the print data, a dot number calculation unit that calculates a maximum value of the number of dots to be printed by the recording head at one time,
Dot number determining means for determining whether the maximum value calculated by the dot number calculating means is larger than the maximum dot number stored in the maximum dot number storing means,
A printing control unit that controls the recording head based on a result of the dot number determination unit.
前記文字サイズ検出手段によって検出された文字サイズのうち、最も文字サイズの大きい文字の印字データをイメージ展開するデータ展開手段とをさらに備え、
前記データ展開手段によってイメージ展開された印字データの前記記録ヘッドが一度に印字すべきドット数の最大値を前記ドット数算出手段で算出することを特徴とする請求項1に記載の印字装置。Character size detection means for detecting the character size of the characters constituting the print data,
Among the character sizes detected by the character size detection means, further comprising data expansion means for image expansion of the print data of the largest character size,
2. The printing apparatus according to claim 1, wherein the maximum value of the number of dots to be printed at one time by the recording head of the print data developed by the data developing unit is calculated by the dot number calculating unit.
前記ドット数算出手段によって算出されるドット数は、前記サイズ別ドット数記憶手段によって記憶された縦ドット数又は横ドット数の内、記録ヘッドの高さ方向におけるドット数であることを特徴とする請求項2に記載の印字装置。The apparatus further includes a size-specific dot number storage unit that stores the number of vertical dots and the number of horizontal dots of the print data that differs for each character size,
The number of dots calculated by the number-of-dots calculating means is the number of dots in the height direction of the recording head among the number of vertical dots or the number of horizontal dots stored by the size-specific dot number storing means. The printing device according to claim 2.
前記印字長算出手段によって算出された長さによって、前記最大ドット数記憶手段に記憶されている最大ドット数が異なることを特徴とする請求項1乃至3のいずれか1項に記載の印字装置。Among the print data, comprises a print length calculating means for calculating the length of the printing direction,
4. The printing apparatus according to claim 1, wherein the maximum number of dots stored in the maximum number of dots storage unit varies depending on the length calculated by the print length calculation unit. 5.
前記縮小選択手段によって、印字データを縮小すると選択され、且つ印字データを構成する文字サイズが異なる場合に、最大文字サイズで構成された文字データを自動縮小するデータ縮小手段とをさらに備えることを特徴とする請求項1乃至4のいずれか1項に記載の印字装置。When the dot number determining unit determines that the maximum value of the dot number is larger than the maximum dot number, a reduction selecting unit that selects whether to reduce print data,
When the print data is selected to be reduced by the reduction selection means and the character size of the print data is different, the data reduction means automatically reduces the character data having the maximum character size. The printing apparatus according to any one of claims 1 to 4, wherein
前記ドット数判別手段によってドット数が最大ドット数よりも大きいと判別された場合に、前記記録ヘッドの印字ライン数を減少させることを特徴とする請求項1乃至4のいずれか1項に記載の印字装置。The recording head is a printing device capable of printing a plurality of lines at a time,
5. The printhead according to claim 1, wherein the number of print lines of the recording head is reduced when the number of dots is determined to be larger than the maximum number of dots by the number-of-dots determination unit. 6. Printing device.
前記ドット数判別手段によって、ドット数が最大ドット数より大きいと判別されたとき、前記入力手段により入力される印字データの入力を制限することを特徴とする請求項1乃至6のいずれか1項に記載の印字装置。Further comprising an input means for inputting the print data,
7. The method according to claim 1, wherein when the number of dots is determined to be larger than the maximum number of dots, the input of print data input by the input unit is limited. 3. The printing device according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003153854A JP3988080B2 (en) | 2003-05-30 | 2003-05-30 | Printing apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003153854A JP3988080B2 (en) | 2003-05-30 | 2003-05-30 | Printing apparatus and program |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006266630A Division JP2007030517A (en) | 2006-09-29 | 2006-09-29 | Printing apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004351820A true JP2004351820A (en) | 2004-12-16 |
JP3988080B2 JP3988080B2 (en) | 2007-10-10 |
Family
ID=34048667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003153854A Expired - Fee Related JP3988080B2 (en) | 2003-05-30 | 2003-05-30 | Printing apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3988080B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015123599A (en) * | 2013-12-25 | 2015-07-06 | 株式会社リコー | Image forming apparatus |
JP2015217647A (en) * | 2014-05-21 | 2015-12-07 | ブラザー工業株式会社 | Printer |
-
2003
- 2003-05-30 JP JP2003153854A patent/JP3988080B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015123599A (en) * | 2013-12-25 | 2015-07-06 | 株式会社リコー | Image forming apparatus |
JP2015217647A (en) * | 2014-05-21 | 2015-12-07 | ブラザー工業株式会社 | Printer |
Also Published As
Publication number | Publication date |
---|---|
JP3988080B2 (en) | 2007-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7997815B2 (en) | Printer | |
US6918645B2 (en) | Battery-operable printer | |
EP0534794A2 (en) | Tape printing device | |
JP2940404B2 (en) | Label making device | |
JP2583625Y2 (en) | Printer | |
JPH08183222A (en) | Printer and display | |
JP2010194853A (en) | Printer, printing control method, and storage medium storing printing control program | |
JP3988080B2 (en) | Printing apparatus and program | |
JP2007030517A (en) | Printing apparatus | |
JP6988123B2 (en) | Printing equipment, printing system, printing control method, and program | |
US20060204307A1 (en) | Image forming device and image forming method | |
JP2004130675A (en) | Tape printer, program, and storage medium storing the program | |
JP2667084B2 (en) | Label printing device | |
JP3139514B2 (en) | Tape printer | |
JP2014004798A (en) | Printer and printing system | |
JP5907386B2 (en) | Printing apparatus, printing method and program by printing apparatus | |
JP3767563B2 (en) | Tape printer | |
JP2002254715A (en) | Printer for tape-like printing medium | |
JP2583678Y2 (en) | Printer | |
JPH07276715A (en) | Tape printer capable of printing a plurality of blocks in optional number of lines | |
JP3370774B2 (en) | Tape printer | |
JP6057116B2 (en) | Tape printer and control method of tape printer | |
JP3098631B2 (en) | Tape printing device and tape printing method | |
JP2007326223A (en) | Printer | |
JP2006116860A (en) | Stencil printing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050330 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060720 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060801 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060927 |
|
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: 20070621 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070704 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100727 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 3988080 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110727 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120727 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120727 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130727 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |