JP2004122415A - Printer and printing method - Google Patents
Printer and printing method Download PDFInfo
- Publication number
- JP2004122415A JP2004122415A JP2002286576A JP2002286576A JP2004122415A JP 2004122415 A JP2004122415 A JP 2004122415A JP 2002286576 A JP2002286576 A JP 2002286576A JP 2002286576 A JP2002286576 A JP 2002286576A JP 2004122415 A JP2004122415 A JP 2004122415A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- area
- printing
- bitmap image
- dimensional code
- 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.)
- Pending
Links
Images
Landscapes
- Printers Characterized By Their Purpose (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、印字装置および印字方法に関し、特に、情報が記録された二次元コードを所定の用紙に印字する印字装置および印字方法に関する。
【0002】
【従来の技術】
従来より、バーコード(一次元コード)が広く用いられているが、近年、コード化して記録すべき情報量の増大のため、或いはセキュリティの向上を目的として、二次元コードが普及し始めている。バーコードの場合、コード化され記録された情報を示す、人が読み取ることができるコード番号(ヒューマンリーダブル・データ)がバーコードの下部に印字される。このため、バーコードの情報をバーコードリーダが読み取ることができないような場合でも、バーコードの下部に印字されたコード番号を目視により読み取ることができる。二次元コードの場合、従来より、コード化されたコード番号を印字しなければならないという規定はなかった。これは、二次元コードにはバーコードと比較して多くの情報がコード化され記録されているため、コード化され記録された全ての情報を印字することが現実には不可能であったためである。
【0003】
そこで、二次元コードリーダが二次元コードを読み取る範囲外の所定の領域に、二次元コードの情報と1対1に対応するデータを、ヒューマンリーダブル・データとして印字するものがある(例えば、特許文献1参照)。
【0004】
また、二次元コードの印字時の大きさを変更することができるものもある(例えば、特許文献2参照)。
【0005】
【特許文献1】
特開平10−49611号公報(図1)
【特許文献2】
特開2001−293909号公報(図5)
【0006】
【発明が解決しようとする課題】
しかしながら、二次元コードを見ただけでは、二次元コード化され記録された情報を読み取ることはできなかった。従って、二次元コードリーダ等の専用の装置を使用して、二次元コードに記録された情報を読み取らなければならず、二次元コードに記録された情報の確認作業が簡単にはできないという問題があった。
【0007】
本発明はこのような状況に鑑みてなされたものであり、二次元コードの印字領域の近傍に、二次元コード化され記録された情報をヒューマン文字(人が目視により認識できる文字や記号等)で印字することにより、二次元コードの内容を人が目視により容易に判断することができるようにするものである。
【0008】
【課題を解決するための手段】
請求項1に記載の印字装置は、所定の情報が記録された二次元コードを印字する印字装置であって、情報が記録された二次元コードに対応する第1のビットマップイメージデータを生成する生成手段と、情報を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換する第1の変換手段と、生成手段によって生成された二次元コードに対応する第1のビットマップイメージデータを所定のメモリの第1の領域に展開し、第1の変換手段によって変換された第2のビットマップイメージデータをメモリの第2の領域に展開する展開手段と、メモリの第1の領域に展開された第1のビットマップイメージデータ、およびメモリの第2の領域に展開された第2のビットマップイメージデータに基づいて、二次元コードを所定の用紙の第1の印字領域に印字し、解説文字を用紙の第2の印字領域に印字する印字手段とを備えることを特徴とする。
また、第1の変換手段は、情報の一部分を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換するようにすることができる。
また、情報の一部分を指定する指定手段をさらに備えるようにすることができる。
また、第1の印字領域および第2の印字領域を設定する設定手段をさらに備えるようにすることができる。
また、情報に対応する識別コードを、人が目視で認識可能な文字に対応する第3のビットマップイメージデータに変換する第2の変換手段をさらに備え、展開手段は、第3のビットマップイメージデータをメモリの第2の領域に展開し、印字手段は、メモリの第1の領域に展開された第1のビットマップイメージデータ、メモリの第2の領域に展開された第2のビットマップイメージデータ、および第3のビットマップイメージデータに基づいて、二次元コードを所定の用紙の第1の印字領域に印字し、解説文字および識別コードを用紙の第2の印字領域に印字するようにすることができる。
請求項6に記載の印字方法は、所定の情報が記録された二次元コードを印字する印字装置における印字方法であって、情報が記録された二次元コードに対応する第1のビットマップイメージデータを生成する生成ステップと、情報を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換する第1の変換ステップと、生成ステップにおいて生成された二次元コードに対応する第1のビットマップイメージデータを所定のメモリの第1の領域に展開し、第1の変換ステップにおいて変換された第2のビットマップイメージデータをメモリの第2の領域に展開する展開ステップと、メモリの第1の領域に展開された第1のビットマップイメージデータ、およびメモリの第2の領域に展開された第2のビットマップイメージデータに基づいて、二次元コードを所定の用紙の第1の印字領域に印字し、解説文字を用紙の第2の印字領域に印字する印字ステップとを備えることを特徴とする。
【0009】
【発明の実施の形態】
図1は、本発明が適用されるラベルプリンタの一実施の形態の構成例を示している。同図に示すように、ラベルプリンタ100は、各部を制御する制御部10と、用紙1に印字を行うサーマルヘッド(以下では、適宜単にヘッドと記載する)5と、制御部10の制御により駆動されるステッピングモータ7と、タイミングベルト(以下では、適宜単にベルトと記載する)8を介して伝達されるステッピングモータ7の回転駆動力によって回転し、後述する供給軸2にセットされた用紙1を搬送するとともに、用紙1をヘッド5に押圧するプラテンローラ6と、用紙1を回転自在に支持する供給軸2と、用紙1をヘッド5に案内する案内ローラ3と、インクリボン17を供給するリボン供給部11と、リボン供給部11より供給されたインクリボン17をヘッド5と用紙1の間に案内する案内ローラ13と、インクリボン17を巻き取るリボン巻き取り部12と、ヘッド5と用紙1の間を通過したインクリボン17をリボン巻き取り部12に案内する案内ローラ14と、所定の光を出射する発光部と、発光部から出射された光の用紙1からの反射光を受光し、受光した光の強度(単位時間当たりの受光量)に対応する電気信号を出力する受光部とからなり、用紙1の裏面の側に発光部と受光部を配し、用紙1の裏面に印刷等によって形成されたアイマーク(黒の矩形のマーク)を、受光部の受光量に基づいて検出するピッチセンサ9と、所定の光を出射する発光部と、発光部から出射された光を受光し、受光した光の強度に対応する電気信号を出力する受光部とからなり、用紙1の裏面の側に発光部を、用紙1の表面の側に受光部を配し、用紙1の終了を受光部の受光量に基づいて検出するエンドセンサ15と、所定の光を出射する発光部と、発光部から出射された光を受光し、受光した光の強度に対応する電気信号を出力する受光部とからなり、インクリボン17の裏面の側に発光部を、インクリボン17の表面の側に受光部を配し、インクリボン17の終了を、受光部の受光量に基づいて検出するリボンエンドセンサ16とを備えている。
【0010】
図2は、図1の実施の形態の電気的な構成例を示すブロック図である。同図に示すように、制御部10は、所定の制御プログラムやフォントデータを記憶するROM(read only memory)22と、ROM22に記憶されている制御プログラムに従って動作し、各部を制御するCPU(central processing unit)21と、CPU21が動作する上で必要となる各種データを記憶するRAM(random access memory)23と、電源がオフされても保持しておきたい各種データを記憶するEEPROM(electrically erasable and programmable read only memory)33と、ステッピングモータ7にパルス信号を供給し、ステッピングモータ7を回転させるモータ制御部24と、CPU21から供給される印字すべき文字、図形、及び二次元コードなどの印字データに対応する制御信号を生成し、ヘッド5に供給し、印字動作を行わせるヘッド制御部25と、CPU21の制御下、ピッチセンサ9の発光部を制御し、光を出射させるとともに、受光部から出力される電気信号を受け取り、ディジタルのデータに変換してピッチ検出データとしてCPU21に供給するセンサ制御部26と、CPU21の制御下、エンドセンサ15の発光部を制御し、光を出射させるとともに、受光部から出力される電気信号を受け取り、ディジタルのデータに変換してエンド検出データとしてCPU21に供給するエラー検出部31と、CPU21の制御下、リボンエンドセンサ16の発光部を制御し、光を出射させるとともに、受光部から出力される電気信号を受け取り、ディジタルのデータに変換してリボンエンド検出データとしてCPU21に供給するリボンエンド検出部32と、外部インタフェース27と、インタフェース30とを備えている。また、制御部10には、各種データやコマンドを入力するための入力部28と、入力部28から入力された入力データや、各種情報を表示するための表示部29とがインタフェース30を介して接続されている。入力部28より入力された入力データは、インタフェース30を介してCPU21に供給され、表示部29に表示される各種情報に対応する表示データは、インタフェース30を介してCPU21より供給されるようになっている。また、外部インタフェース27を介して、外部に接続されたパーソナルコンピュータ(PC)200等の各種機器との間で各種データやコマンドの送受信を行うことができるようになっている。
【0011】
本実施の形態においては、PC200上で設定された所定の印字コマンドが、シリアルケーブルなどを経由してラベルプリンタ100の外部インタフェース27を介してCPU21に供給されるものとする。ここでは、二次元コードとして普及しているPDF417を印字する場合について説明する。PDF417は、1次元のバーコードを縦に積み上げたスタック型二次元コードである。
【0012】
以下、本実施の形態の処理手順について、図3のフローチャートを参照して説明する。まず最初に、ステップS1において、CPU21は、PC200から送信されてきた印字コマンドが、外部インタフェース27を介して受信されたか否かが判定される。PC200から送信されてきた印字コマンドが、外部インタフェース27を介して受信されていないと判定された場合、ステップS1の処理が繰り返し実行される。一方、PC200から送信されてきた印字コマンドが、外部インタフェース27を介して受信されたと判定された場合、ステップS2に進む。
【0013】
ステップS2においては、CPU21により、外部インタフェース27を介して受信された印字コマンドが、RAM23に供給され、一時的に保存される。そして、RAM23に記憶された印字コマンドの解析が行われ、印字コマンドから、二次元コードの種類、パラメータ、二次元コードの印字位置、二次元コードの内容、及び解説文字に関する情報が含まれる場合には解説文字に関する情報が抽出される。ここで、解説文字とは、二次元コードによって記録される情報をヒューマン文字(人が目視により認識できる文字や記号等)で印字したものである。
【0014】
図4は、印字コマンドの構成例を示している。同図に示すように、印字コマンドは、二次元コードの種類およびパラメータ(例えば、PDF417の場合、最小モジュール幅寸法、最小モジュール縦寸法、セキュリティレベル(誤り訂正)、1行当たりのデータコードワード、シンボル当たりの行数、二次元コードの印字位置等を示すデータ)と、二次元コードの内容、即ち、二次元コード化されて記録されるべき情報とからなる。
【0015】
また、必要に応じて、その二次元コード化されて記録される情報を解説文字としてヒューマン文字で印字する場合における解説文字の印字領域の左上隅の印字可能領域の原点を基準とした縦位置(V)及び横位置(H)と、文字種と、印字領域の縦方向の大きさ(Y)及び横方向の大きさ(X)と、解説文字の所定の部分を指定するための解説文字指定情報が印字コマンドに付加される。解説文字指定情報とは、例えば、解説文字が、「品名」、「価格」、「コード番号」、「日付」等で構成される場合、「コード番号」だけを解説文字として印字するように指定するための情報であり、解説文字の最初の文字から、「コード番号」の最初の文字までの文字数と、「コード番号」の文字数等からなる。
【0016】
次に、ステップS3において、CPU21により、二次元コードの内容、即ち二次元コード化して記録したい情報に基づいて、二次元コード化して記録したい情報を表す二次元コードのビットマップイメージデータが作成され、RAM23の描画領域の指定された位置に展開される。
【0017】
次に、ステップS4において、CPU21により、印字コマンドの中に、解説文字に関する情報、即ち、二次元コードの内容を解説文字としてヒューマン文字で印字する場合の解説文字の印字領域の位置を示す情報と、文字種を指定する情報と、印字領域の縦の大きさ及び横の大きさを指定する情報と、解説文字の所定の部分を指定する解説文字指定情報が含まれているか否かが判定される。その結果、印字コマンドの中に、解説文字に関する情報が含まれていないと判定された場合、ステップS6に進む。一方、印字コマンドの中に、解説文字に関する情報が含まれていると判定された場合、ステップS5に進む。
【0018】
ステップS5においては、CPU21は、解説文字の指定された所定の部分をヒューマン文字に変換する。上述したように、ヒューマン文字とは、人が目視により認識できる文字や記号等であるので、CPU21は、解説文字の指定された所定の部分をRAM23から読み出し、読み出した解説文字の所定の部分の文字列の各文字の文字コードに対応する、指定された文字種のフォントデータをROM22から読み出し、RAM23の描画領域の指定された領域内に展開する。
【0019】
上述したように、解説文字の印字基点の位置(印字可能領域の原点を基準としたXY座標値により指定される)と、解説文字の印字領域の縦の大きさ(Y)及び横の大きさ(X)は印字コマンドによって指定されているので、CPU21は、印字コマンドによって指定された印字領域の左上隅(印字基点)の座標(V,H)と、印字領域の縦の大きさ(Y)および横の大きさ(X)に対応して、RAM23の描画領域の所定の領域内に解説文字に対応する、指定された文字種のフォントデータを展開する。このとき、その領域内に指定された解説文字が入りきらない場合は、その領域内に展開可能な範囲内で解説文字を展開し、入りきらなかった分は廃棄する。上記の解説文字が上記印字領域内に入りきるか否かは、例えば、ラベルプリンタ100内部のEEPROM33に、予め用紙1の印字可能領域の縦サイズ及び横サイズからなる用紙サイズ情報を記憶させておき、この用紙サイズ情報と、解説文字の印字基点の位置(V,H)および解説文字の印字領域の縦の大きさ(Y)及び横の大きさ(X)等に基づいて、所定の演算を行うことにより判断される。
【0020】
図5は、RAM23の描画領域に展開された二次元コードと解説文字を示している。同図に示すように、CPU21の制御により、印字コマンドに基づいて、二次元コードが所定の位置に展開され、解説文字がXY座標(V,H)を基点とし、縦の大きさがY、横の大きさがXの印字領域に対応する領域内に展開される。
【0021】
次に、ステップS6に進み、CPU21は、RAM23の描画領域に展開されたビットマップイメージデータを読み出し、ヘッド制御部25に供給し、ビットマップイメージデータに基づいて印字処理を実行するよう指令するとともに、モータ制御部24に対して、用紙1を搬送方向に搬送するよう指令する。
【0022】
CPU21からの指令を受けたヘッド制御部25は、CPU21より供給されたビットマップイメージデータに対応する制御信号をヘッド5に供給する。また、モータ制御部24は、ステッピングモータ7に対して所定のパルス信号を供給し、ステッピングモータ7を回転駆動させる。ステッピングモータ7の回転駆動力は、ベルト8を介してプラテンローラ6に伝達され、プラテンローラ6とヘッド5に挟持された用紙1及びインクリボン17が搬送方向に搬送される。また、ヘッド5は、RAM23に展開されたビットマップイメージデータに対応して、ヘッド5を構成する各発熱体を発熱させ、インクリボン17を介して用紙1に印字を行う。その結果、図5に示すようなレイアウトで、二次元コード及び解説文字が用紙1に印字される。即ち、図5は、印字結果のレイアウトを示すとともに、RAM23の描画領域に展開されたビットマップイメージデータを示している。
【0023】
次に、解説文字の印字領域に、二次元コードを識別するための二次元コードと1対1に対応する識別コードを印字する場合について説明する。この識別コードは、各二次元コードの固有の識別コードであり、識別コードと二次元コードの内容とが関連付けられて、PC200の図示せぬ記憶装置に記憶されている。従って、二次元コードに記録された情報を読み取る二次元コードリーダ等の専用の装置がない場合や、故障した場合においても、識別コードから二次元コードの内容を知ることができる。
【0024】
図6は、解説文字に識別コード付加して印字する場合の印字コマンドの例を示している。同図に示すように、この印字コマンドには、識別コードが付加されている。ラベルプリンタ100のCPU21は、図6に示すような印字コマンドを外部インタフェース27を介して受信した場合、ステップS5において、識別コードをRAM23の描画領域の指定された領域に展開し、その後、解説文字の指定部分をヒューマン文字により所定の領域に展開する。その他の処理手順は、図4に示した印字コマンドに従って印字処理を行う場合と同様であるので、その説明は省略する。
【0025】
図7は、RAM23の描画領域に展開された二次元コードと、識別コードと、解説文字を示している。同図に示すように、CPU21の制御により、図6に示した印字コマンドに基づいて、二次元コードが所定の位置に展開され、識別コード及び解説文字が、指定されたXY座標(V,H)を基点とし、縦の大きさがY、横の大きさがXの印字領域に対応する領域内に展開される。次に、このRAM23の描画領域に展開されたビットマップイメージデータに基づいて印字処理が行われると、図7に示すようなレイアウトで、二次元コードと、識別コード及び解説文字が用紙1に印字される。即ち、図7は、印字結果のレイアウトを示すとともに、RAM23の描画領域に展開されたビットマップイメージデータを示している。
【0026】
なお、上記実施の形態においては、本発明をラベルプリンタに適用する場合について説明したが、これに限定されるものではなく、他の印字装置にも本発明を適用することができる。
【0027】
また、上記実施の形態においては、二次元コードの下側に解説文字を印字するようにしたが、二次元コードの近傍のその他の位置に解説文字を印字することもできる。
【0028】
また、上記実施の形態においては、PC200上で設定された印字コマンドによって解説文字の所望の部分を指定するようにしたが、ラベルプリンタ100側の入力部28を操作して解説文字の所望の部分を指定するようにすることもできる。
【0029】
また、上記実施の形態の構成及び動作は例であって、本発明の趣旨を逸脱しない範囲で適宜変更することができることは言うまでもない。
【0030】
【発明の効果】
以上の如く、本発明に係る印字装置および印字方法によれば、情報が記録された二次元コードに対応する第1のビットマップイメージデータを生成し、情報を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換し、生成された二次元コードに対応する第1のビットマップイメージデータを所定のメモリの第1の領域に展開し、変換された第2のビットマップイメージデータをメモリの第2の領域に展開し、メモリの第1の領域に展開された第1のビットマップイメージデータ、およびメモリの第2の領域に展開された第2のビットマップイメージデータに基づいて、二次元コードを所定の用紙の第1の印字領域に印字し、解説文字をその用紙の第2の印字領域に印字するようにしたので、二次元コードに記録された情報を人が目視により簡単に認識することが可能となる。これにより、商品等に二次元コードを貼付して管理する工程などでは、工程上の確認作業を簡単に行うことができ、二次元コードの貼付ミス等を抑制することができる。
また、第1の変換手段が、情報の一部分を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換するようにすれば、二次元コードに記録された多くの情報の中の必要な情報のみを解説文字として印字することができ、限られた印字領域を有効利用することができる。
また、情報の一部分を指定する指定手段をさらに備えるようにすれば、二次元コードに記録された情報の中の所望の情報が解説文字として印字されるようにすることができる。
また、情報に対応する識別コードを、人が目視で認識可能な文字に対応する第3のビットマップイメージデータに変換する第2の変換手段をさらに備え、展開手段は、第3のビットマップイメージデータをメモリの第2の領域に展開し、印字手段は、メモリの第1の領域に展開された第1のビットマップイメージデータ、メモリの第2の領域に展開された第2のビットマップイメージデータ、および第3のビットマップイメージデータに基づいて、二次元コードを所定の用紙の第1の印字領域に印字し、解説文字および識別コードを用紙の第2の印字領域に印字するようにすれば、識別コードと、その識別コードに対応する二次元コードによって記録される情報とを対応付けて記憶しておくことにより、二次元コードによって記録されている情報を、その二次元コードの近傍に印字されている識別コードに基づいて知ることができる。
【図面の簡単な説明】
【図1】本発明の印字装置を応用したラベルプリンタの一実施の形態の構成例を示す図である。
【図2】図1の制御部の構成例を示すブロック図である。
【図3】図1の印字装置の処理手順を説明するためのフローチャートである。
【図4】印字コマンドの構成例を示す図である。
【図5】図4の印字コマンドに基づいてRAMに展開されたビットマップイメージデータ及び印字結果のレイアウトを示す図である。
【図6】他の印字コマンドの構成例を示す図である。
【図7】図6の印字コマンドに基づいてRAMに展開されたビットマップイメージデータ及び印字結果のレイアウトを示す図である。
【符号の説明】
1 用紙
2 供給軸
3 案内ローラ
5 サーマルヘッド(ヘッド)
6 プラテンローラ
7 ステッピングモータ
8 タイミングベルト(ベルト)
9 ピッチセンサ
10 制御部
11 リボン供給部
12 リボン巻き取り部
13,14 案内ローラ
15 エンドセンサ
16 リボンエンドセンサ
17 インクリボン
21 CPU
22 ROM
23 RAM
24 モータ制御部
25 ヘッド制御部
26 センサ制御部
27 外部インタフェース
28 入力部
29 表示部
30 インタフェース
31 エラー検出部
32 リボンエンド検出部
33 EEPROM
100 ラベルプリンタ
200 PC[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a printing device and a printing method, and more particularly to a printing device and a printing method for printing a two-dimensional code on which information is recorded on a predetermined sheet.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, barcodes (one-dimensional codes) have been widely used, but in recent years, two-dimensional codes have begun to spread in order to increase the amount of information to be coded and recorded or to improve security. In the case of a barcode, a human readable code number (human readable data) indicating the coded and recorded information is printed below the barcode. For this reason, even when the barcode information cannot be read by the barcode reader, the code number printed below the barcode can be read visually. Conventionally, in the case of a two-dimensional code, there is no provision that a coded code number must be printed. This is because it is actually impossible to print all the coded and recorded information because the two-dimensional code has more information coded and recorded than the bar code. is there.
[0003]
In view of this, there is a method in which data corresponding to information of a two-dimensional code on a one-to-one basis is printed as human-readable data in a predetermined area outside a range in which the two-dimensional code reader reads the two-dimensional code (for example, see Japanese Patent Application Laid-Open No. H10-163873). 1).
[0004]
In addition, there is a printer in which the size of a two-dimensional code at the time of printing can be changed (for example, see Patent Document 2).
[0005]
[Patent Document 1]
JP-A-10-49611 (FIG. 1)
[Patent Document 2]
JP 2001-293909 A (FIG. 5)
[0006]
[Problems to be solved by the invention]
However, just looking at the two-dimensional code could not read the information that was two-dimensionally encoded and recorded. Therefore, the information recorded in the two-dimensional code must be read using a dedicated device such as a two-dimensional code reader, and the task of confirming the information recorded in the two-dimensional code cannot be easily performed. there were.
[0007]
The present invention has been made in view of such a situation, and a human character (a character or a symbol that can be visually recognized by a person) is recorded in the vicinity of a printing area of a two-dimensional code in the form of a two-dimensional coded and recorded information. Is printed so that a person can easily determine the contents of the two-dimensional code visually.
[0008]
[Means for Solving the Problems]
A printing apparatus according to
Further, the first conversion means can convert a part of the information into second bitmap image data corresponding to commentary characters that can be visually recognized by a person.
Further, the information processing apparatus may further include a designating means for designating a part of the information.
Further, it is possible to further comprise a setting means for setting the first print area and the second print area.
The image processing apparatus further includes second conversion means for converting an identification code corresponding to the information into third bitmap image data corresponding to a character visually recognizable by a person, and the developing means includes a third bitmap image data. The data is developed in a second area of the memory, and the printing means comprises: first bitmap image data developed in a first area of the memory; and second bitmap image data developed in a second area of the memory. Based on the data and the third bitmap image data, a two-dimensional code is printed in a first print area of a predetermined sheet, and a commentary character and an identification code are printed in a second print area of the sheet. be able to.
7. The printing method according to claim 6, wherein the printing apparatus prints a two-dimensional code on which predetermined information is recorded, wherein the first bitmap image data corresponding to the two-dimensional code on which the information is recorded is provided. And a first conversion step of converting information into second bitmap image data corresponding to commentary characters visually recognizable by a human, and a two-dimensional code generated in the generation step. Expanding the first bitmap image data to be converted into a first area of a predetermined memory, and expanding the second bitmap image data converted in the first conversion step into a second area of the memory; , First bitmap image data expanded in a first area of the memory, and second bitmap image data expanded in a second area of the memory. Based on Jideta, it prints the two-dimensional code in the first print area of the predetermined paper, characterized in that it comprises a printing step of printing the interpretation text in the second print area of the paper.
[0009]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 shows a configuration example of an embodiment of a label printer to which the present invention is applied. As shown in FIG. 1, the label printer 100 includes a
[0010]
FIG. 2 is a block diagram showing an example of an electrical configuration of the embodiment of FIG. As shown in FIG. 1, the
[0011]
In the present embodiment, it is assumed that a predetermined print command set on the PC 200 is supplied to the
[0012]
Hereinafter, the processing procedure of the present embodiment will be described with reference to the flowchart of FIG. First, in step S1, the
[0013]
In step S2, the print command received via the
[0014]
FIG. 4 shows a configuration example of the print command. As shown in the figure, the print command includes two-dimensional code types and parameters (for example, in the case of PDF417, minimum module width dimension, minimum module vertical dimension, security level (error correction), data code word per line, Data indicating the number of lines per symbol, the print position of the two-dimensional code, etc.) and the contents of the two-dimensional code, that is, information to be recorded as a two-dimensional code.
[0015]
Also, if necessary, when the information recorded in the two-dimensional code is printed as a commentary character by a human character, the vertical position with respect to the origin of the printable area at the upper left corner of the commentary character printing area ( V) and horizontal position (H), character type, vertical size (Y) and horizontal size (X) of the print area, and commentary character designation information for designating a predetermined portion of the commentary character Is added to the print command. For example, if the commentary character consists of "article name", "price", "code number", "date", etc., it is specified that only the "code number" is printed as the commentary character And the number of characters from the first character of the commentary character to the first character of the "code number", the number of characters of the "code number", and the like.
[0016]
Next, in step S3, the
[0017]
Next, in step S4, the
[0018]
In step S5, the
[0019]
As described above, the position of the printing base point of the commentary character (specified by the XY coordinate value based on the origin of the printable area), the vertical size (Y) and the horizontal size of the printing region of the commentary character Since (X) is specified by the print command, the
[0020]
FIG. 5 shows two-dimensional codes and commentary characters developed in the drawing area of the
[0021]
Next, proceeding to step S6, the
[0022]
The
[0023]
Next, a case where an identification code corresponding to a two-dimensional code for identifying a two-dimensional code is printed on a one-to-one basis in a print area of a commentary character is described. This identification code is a unique identification code of each two-dimensional code, and the identification code and the content of the two-dimensional code are stored in a storage device (not shown) of the PC 200 in association with each other. Therefore, even when there is no dedicated device such as a two-dimensional code reader that reads information recorded in the two-dimensional code, or when there is a failure, the contents of the two-dimensional code can be known from the identification code.
[0024]
FIG. 6 shows an example of a print command when an identification code is added to a commentary character and printed. As shown in the figure, an identification code is added to this print command. When the
[0025]
FIG. 7 shows a two-dimensional code, an identification code, and a commentary character developed in the drawing area of the
[0026]
In the above embodiment, the case where the present invention is applied to a label printer has been described. However, the present invention is not limited to this, and the present invention can be applied to other printing apparatuses.
[0027]
In the above embodiment, the commentary character is printed below the two-dimensional code. However, the commentary character can be printed at another position near the two-dimensional code.
[0028]
In the above embodiment, the desired portion of the commentary character is specified by the print command set on the PC 200. However, the desired portion of the commentary character is operated by operating the
[0029]
In addition, the configuration and operation of the above embodiment are examples, and it is needless to say that the configuration and operation can be appropriately changed without departing from the spirit of the present invention.
[0030]
【The invention's effect】
As described above, according to the printing apparatus and the printing method according to the present invention, the first bitmap image data corresponding to the two-dimensional code in which the information is recorded is generated, and the information can be visually recognized by a person. It is converted into second bitmap image data corresponding to the character, the first bitmap image data corresponding to the generated two-dimensional code is developed in a first area of a predetermined memory, and the converted second bitmap image data is converted into a second area. The bitmap image data is expanded in a second area of the memory, the first bitmap image data expanded in a first area of the memory, and the second bitmap image expanded in a second area of the memory Based on the data, the two-dimensional code is printed in a first print area of a predetermined sheet, and the commentary character is printed in a second print area of the sheet. The information person becomes possible to easily recognize visually. Thus, in a process of attaching and managing a two-dimensional code to a product or the like, a checking operation in the process can be easily performed, and an error in attaching the two-dimensional code can be suppressed.
Further, if the first converting means converts a part of the information into the second bitmap image data corresponding to the commentary character which can be visually recognized by a person, many of the information recorded in the two-dimensional code can be converted. Only necessary information in the information can be printed as commentary characters, and a limited printing area can be effectively used.
Further, by further providing a designating means for designating a part of the information, desired information in the information recorded in the two-dimensional code can be printed as commentary characters.
The image processing apparatus further includes second conversion means for converting an identification code corresponding to the information into third bitmap image data corresponding to a character visually recognizable by a person, and the developing means includes a third bitmap image data. The data is developed in a second area of the memory, and the printing means comprises: first bitmap image data developed in a first area of the memory; and second bitmap image data developed in a second area of the memory. Based on the data and the third bitmap image data, a two-dimensional code is printed in a first print area of a predetermined sheet, and commentary characters and an identification code are printed in a second print area of the sheet. For example, by storing the identification code and the information recorded by the two-dimensional code corresponding to the identification code in association with each other, the information is recorded by the two-dimensional code. Distribution and can be known on the basis of the identification code that is printed in the vicinity of the two-dimensional code.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration example of an embodiment of a label printer to which a printing device of the present invention is applied.
FIG. 2 is a block diagram illustrating a configuration example of a control unit in FIG. 1;
FIG. 3 is a flowchart illustrating a processing procedure of the printing apparatus in FIG. 1;
FIG. 4 is a diagram illustrating a configuration example of a print command.
FIG. 5 is a diagram showing a layout of bitmap image data and a print result developed in a RAM based on the print command of FIG. 4;
FIG. 6 is a diagram illustrating a configuration example of another print command.
FIG. 7 is a diagram illustrating a layout of bitmap image data and a print result developed in a RAM based on the print command of FIG. 6;
[Explanation of symbols]
1 paper 2 supply shaft 3 guide roller 5 thermal head (head)
6 Platen roller 7 Stepping motor 8 Timing belt (belt)
9
22 ROM
23 RAM
24
100 Label printer 200 PC
Claims (6)
前記情報が記録された前記二次元コードに対応する第1のビットマップイメージデータを生成する生成手段と、
前記情報を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換する第1の変換手段と、
前記生成手段によって生成された前記二次元コードに対応する前記第1のビットマップイメージデータを所定のメモリの第1の領域に展開し、前記第1の変換手段によって変換された前記第2のビットマップイメージデータを前記メモリの第2の領域に展開する展開手段と、
前記メモリの第1の領域に展開された前記第1のビットマップイメージデータ、および前記メモリの第2の領域に展開された前記第2のビットマップイメージデータに基づいて、前記二次元コードを所定の用紙の第1の印字領域に印字し、前記解説文字を前記用紙の第2の印字領域に印字する印字手段と
を備えることを特徴とする印字装置。A printing device for printing a two-dimensional code on which predetermined information is recorded,
Generating means for generating first bitmap image data corresponding to the two-dimensional code in which the information is recorded;
First conversion means for converting the information into second bitmap image data corresponding to commentary characters that can be visually recognized by a person;
The first bitmap image data corresponding to the two-dimensional code generated by the generation unit is expanded in a first area of a predetermined memory, and the second bit converted by the first conversion unit is converted to the second bitmap image data. Expanding means for expanding map image data in a second area of the memory;
The two-dimensional code is determined based on the first bitmap image data expanded in a first area of the memory and the second bitmap image data expanded in a second area of the memory. And a printing unit for printing the commentary characters in a second printing area of the paper, wherein the printing unit prints the commentary characters in a first printing area of the paper.
ことを特徴とする請求項1に記載の印字装置。2. The printing apparatus according to claim 1, wherein the first conversion unit converts a part of the information into second bitmap image data corresponding to commentary characters that can be visually recognized by a person.
ことを特徴とする請求項2に記載の印字装置。3. The printing apparatus according to claim 2, further comprising a specifying unit that specifies a part of the information.
ことを特徴とする請求項1,2または3に記載の印字装置。The printing apparatus according to claim 1, further comprising a setting unit configured to set the first print area and the second print area.
前記展開手段は、前記第3のビットマップイメージデータを前記メモリの前記第2の領域に展開し、
前記印字手段は、前記メモリの前記第1の領域に展開された前記第1のビットマップイメージデータ、前記メモリの前記第2の領域に展開された前記第2のビットマップイメージデータ、および前記第3のビットマップイメージデータに基づいて、前記二次元コードを所定の用紙の第1の印字領域に印字し、前記解説文字および前記識別コードを前記用紙の第2の印字領域に印字する
ことを特徴とする請求項1乃至4のいずれかに記載の印字装置。A second conversion unit configured to convert an identification code corresponding to the information into third bitmap image data corresponding to a character visually recognizable by a human;
The developing means expands the third bitmap image data in the second area of the memory;
The printing means includes: the first bitmap image data expanded in the first area of the memory; the second bitmap image data expanded in the second area of the memory; The two-dimensional code is printed in a first printing area of a predetermined sheet based on the bitmap image data of No. 3, and the commentary character and the identification code are printed in a second printing area of the sheet. The printing device according to any one of claims 1 to 4, wherein
前記情報が記録された前記二次元コードに対応する第1のビットマップイメージデータを生成する生成ステップと、
前記情報を、人が目視で認識可能な解説文字に対応する第2のビットマップイメージデータに変換する第1の変換ステップと、
前記生成ステップにおいて生成された前記二次元コードに対応する前記第1のビットマップイメージデータを所定のメモリの第1の領域に展開し、前記第1の変換ステップにおいて変換された前記第2のビットマップイメージデータを前記メモリの第2の領域に展開する展開ステップと、
前記メモリの第1の領域に展開された前記第1のビットマップイメージデータ、および前記メモリの第2の領域に展開された前記第2のビットマップイメージデータに基づいて、前記二次元コードを所定の用紙の第1の印字領域に印字し、前記解説文字を前記用紙の第2の印字領域に印字する印字ステップと
を備えることを特徴とする印字方法。A printing method in a printing device that prints a two-dimensional code in which predetermined information is recorded,
A generating step of generating first bitmap image data corresponding to the two-dimensional code in which the information is recorded;
A first conversion step of converting the information into second bitmap image data corresponding to commentary characters visually recognizable by a person;
Developing the first bitmap image data corresponding to the two-dimensional code generated in the generation step in a first area of a predetermined memory, and converting the second bit converted in the first conversion step Developing a map image data in a second area of the memory;
The two-dimensional code is determined based on the first bitmap image data expanded in a first area of the memory and the second bitmap image data expanded in a second area of the memory. And a printing step of printing the commentary characters in a second printing area of the paper.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002286576A JP2004122415A (en) | 2002-09-30 | 2002-09-30 | Printer and printing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002286576A JP2004122415A (en) | 2002-09-30 | 2002-09-30 | Printer and printing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004122415A true JP2004122415A (en) | 2004-04-22 |
Family
ID=32279599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002286576A Pending JP2004122415A (en) | 2002-09-30 | 2002-09-30 | Printer and printing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004122415A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006285555A (en) * | 2005-03-31 | 2006-10-19 | Sato Corp | Member card issuing system, and member card issuing method |
JP2010194741A (en) * | 2009-02-23 | 2010-09-09 | Teraoka Seiko Co Ltd | Label issuing apparatus |
JP2010221428A (en) * | 2009-03-19 | 2010-10-07 | Max Co Ltd | Label printer and information processor |
JP2011014953A (en) * | 2009-06-30 | 2011-01-20 | Nippon Hoso Kyokai <Nhk> | Device for generating electronic document for two-dimensional code display, program therefor, and digital broadcast transmitter |
-
2002
- 2002-09-30 JP JP2002286576A patent/JP2004122415A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006285555A (en) * | 2005-03-31 | 2006-10-19 | Sato Corp | Member card issuing system, and member card issuing method |
JP2010194741A (en) * | 2009-02-23 | 2010-09-09 | Teraoka Seiko Co Ltd | Label issuing apparatus |
JP2010221428A (en) * | 2009-03-19 | 2010-10-07 | Max Co Ltd | Label printer and information processor |
JP2011014953A (en) * | 2009-06-30 | 2011-01-20 | Nippon Hoso Kyokai <Nhk> | Device for generating electronic document for two-dimensional code display, program therefor, and digital broadcast transmitter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10618314B2 (en) | Non-transitory storage medium storing instructions readable by information processing apparatus, and code creating system | |
JP2979536B2 (en) | Barcode printing device | |
JP2006116886A (en) | Printer | |
JP2008305137A (en) | Bar-code generation system, bar-code generation program and printer | |
EP2364856A2 (en) | Tape printer, method for controlling tape printer, and program product | |
US8587821B2 (en) | Tape printer, method for controlling tape printer, and computer program product | |
JP2004122415A (en) | Printer and printing method | |
JP2979535B2 (en) | Barcode printing device | |
JP4142897B2 (en) | Printing device and printing system | |
JP2005047231A (en) | Printer | |
EP0656595B1 (en) | Tape printing apparatus | |
JP2011173278A (en) | Bar code printer | |
JP2013230662A (en) | Recording control device, recording device and control method of recording device | |
JP2003154709A (en) | Printer and printing method | |
JP2004142172A (en) | Print system and printing method | |
JP2007518313A (en) | Method for printing and / or cutting an image | |
JP2005313333A (en) | Printer and method for issuing mailing label | |
JP2005103891A (en) | Printer | |
JP4522102B2 (en) | Printing apparatus with identification code verifier and identification code verification method | |
JP2006272842A (en) | Printing device | |
US11880618B2 (en) | Printing apparatus | |
JP2004034313A (en) | Printer | |
US20110135367A1 (en) | Tape printer, method for controlling tape printer, and computer program product | |
JP2002127537A (en) | Printer and method of printing | |
JP2974095B2 (en) | Barcode printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050927 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090420 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090605 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090706 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20091109 |