JP4369011B2 - Symbol printer, printing method thereof, and information recording medium - Google Patents
Symbol printer, printing method thereof, and information recording medium Download PDFInfo
- Publication number
- JP4369011B2 JP4369011B2 JP2000114041A JP2000114041A JP4369011B2 JP 4369011 B2 JP4369011 B2 JP 4369011B2 JP 2000114041 A JP2000114041 A JP 2000114041A JP 2000114041 A JP2000114041 A JP 2000114041A JP 4369011 B2 JP4369011 B2 JP 4369011B2
- Authority
- JP
- Japan
- Prior art keywords
- symbol
- code
- printing
- data
- display data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000007639 printing Methods 0.000 title claims description 73
- 238000000034 method Methods 0.000 title claims description 19
- 238000006243 chemical reaction Methods 0.000 claims description 28
- 230000005540 biological transmission Effects 0.000 claims description 22
- 238000007405 data analysis Methods 0.000 claims description 22
- 239000011159 matrix material Substances 0.000 claims description 21
- 238000004458 analytical method Methods 0.000 claims description 9
- 230000007246 mechanism Effects 0.000 claims description 9
- 238000012545 processing Methods 0.000 description 23
- 238000012937 correction Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 238000013500 data storage Methods 0.000 description 9
- 238000007906 compression Methods 0.000 description 8
- 230000006835 compression Effects 0.000 description 8
- 238000013144 data compression Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 229930091051 Arenine Natural products 0.000 description 1
- 239000000853 adhesive Substances 0.000 description 1
- 230000001070 adhesive effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Landscapes
- Record Information Processing For Printing (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Printers Characterized By Their Purpose (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、情報を化体したシンボルを印刷することのできるプリンタに関する。このようなシンボルとしては、例えば1次元のバーコード、または2次元コード等がある。2次元コードには、バーコードを縦に積み上げた形のスタック型2次元コードと、バーコードとは全く別の発想によるものでマトリクスの交点が黒か白によってコード化したマトリクス型2次元コードとがある。本発明はこれらの1次元又は2次元のコードを印刷するプリンタに関するものである。尚、本明細書では、上述のような最終的に印刷される1次元又は2次元のバーコードまたはマトリクス等から成るマークををシンボルと称する。また、これらのシンボルにより表示される情報(内容)を表示データと称する。
【0002】
【背景技術】
現在最も普及しているシンボルは、商品に付されており商品番号その他の情報を化体する1次元バーコードであるが、最近、表示できる情報量をが飛躍的に向上する2次元コードが注目され、使用され始めている。1次元バーコードは、バーコードが縦または横に1列に表示されているものであるが、2次元コードには、前述の通り、このような1次元バーコードを複数段に亘って表示するスタック型2次元コードと呼ばれているものと、マトリクスの交点が黒か白かによりコード化したマトリクス型2次元コードとがある。
【0003】
スタック型2次元コードの例として、コード49、コード16K、PDF417、スーパーコード、及びウルトラコード等がある。マトリクス型2次元コードとして、ベリコード、データマトリクス(ECC000−140、ECC200など)、CPコード、マキシコード、コード1、QRコード、QRコードモデル2、アズテックコード等がある。2次元バーコードの特徴は、1次元バーコードに比較してはるかに多くの情報を表示でき、読み取り方向の制限をなくし、バイナリ情報表示も可能であり、読み取り精度を上げるとともにセキュリティを向上したところにある。
【0004】
バーコードは、バーの組み合せ(バーとバーの間隔の組み合わせを含む)により、所定の情報(表示データ)を表示したものであり、バーコードスキャナにより読み取ることにより、情報に復元される。したがって、バーコードを印刷する際には、表示したい情報をバーコードに変換してそのバーコードパターンを印刷しなければならない。マトリクスによるシンボルも同様で、マトリクスの白黒の組み合わせにより、所定の情報を表示するため、表示したい情報(表示データ)をマトリクスのコードパターンに変換して、印刷しなければならない。本発明は、これらの1次元又は2次元の各種シンボルを印刷するプリンタに関するものである。
【0005】
シンボルに情報を化体させて印刷するためには、表示したいデータをシンボル固有の規約(プロトコル)に従って、所定のコードに変換した後、プリンタで印刷する。これらシンボルへの変換には、単なるコード変換だけでなく、表示データの前後にスタートコード、ストップコード等を加えたりエラー訂正コードを付加したり、データの圧縮を行ったりする等、そのシンボルに固有のプロトコルに従った一連の処理が必要となる。特に2次元コードの場合には、表示できる情報量が多いだけでなく、圧縮、エラー訂正コード作成のために複雑な処理が必要になる。
【0006】
【発明が解決しようとする課題】
従来、これらのシンボルを印刷する場合には、ホスト装置において表示データからシンボルのビットパターンへの変換処理を行い、変換後のビットパターンを印刷データとしてプリンタに送信して、シンボル印刷を行っていた。この場合、プリンタ側は、通常の印刷と同じ手順で、受信したビットパターンデータをそのまま印刷するだけで、シンボルの印刷が可能となる。
【0007】
しかし、この方法では、ホスト装置によりデータをバーコードのビットイメージに変換するものであるので、ホスト装置の負荷が大きくなる。特に、2次元のコードの場合、表示したい情報を2次元コードのビットパターンに変換するには、多くの処理が必要である。そのためホストには大きな負荷がかかることになる。
【0008】
例えば、PDF417では、データの圧縮及び、エラー訂正コードを付与することができる。また、データ圧縮には、3種類の圧縮モードがあり、エラー訂正レベルも0〜8までの9種類を有している。そのため、表示データから実際に印刷されるシンボルへの変換処理には、かなりの処理能力と処理時間とが必要となる。また、シンボル表示するビットパターン情報も多いため、ホスト装置及びプリンタ間の通信処理の負荷も大きい。通常、ホスト装置には、複数の通信端末装置や周辺機器が接続されており、複数の処理を並行処理している。そのため、シンボル変換処理にあまり時間がかかると、ホスト装置の負荷が増大するだけでなく、印刷スピードに対して変換処理が遅れることもある。
【0009】
さらに、複数の圧縮モード及び9段階のエラー訂正レベルを有していることから、印刷されるシンボルの長さ(大きさ)は、シンボル表示されるデータの内容及び量によって変化する。そのため、最終的なシンボルの大きさは、実際にシンボルに変換してみなければ、わからない。
【0010】
そこで、本発明は、シンボルを印刷する際に、ホスト装置の負荷、及びホスト装置とプリンタ装置の双方の通信処理の負荷を軽減することのできるプリンタを提供することを目的とする。また、本発明は、シンボルの印刷前に、表示したいデータをシンボルとして印字範囲設定枠内に印刷できるかどうかを確認することのできるプリンタを提供することを目的とする。
【0011】
【課題を解決するための手段】
本発明は、以下の手段により上記課題を解決する。
【0012】
本発明のシンボル印刷可能なプリンタは、2次元のバーコードまたはマトリクスからなるマークであるシンボルとして印刷されるASCIIコードの表示データを、シンボル印刷用の制御コマンドとともに、ホスト装置から受信する受信手段と、前記制御コマンドを解析するデータ解析手段と、前記データ解析手段による前記制御コマンドの解析結果により、該制御コマンドとともに受信した前記表示データを格納する第1の格納手段と、前記シンボルのプロトコルに従って、前記表示データを前記シンボルのコードワードに変換するコード変換手段と、前記コードワードから前記シンボルを表すビットパターン情報を作成するパターンジェネレータと、前記ビットパターン情報を格納する第2の格納手段と、
前記シンボルのシンボルイメージの縦方向及び横方向の大きさを前記ホスト装置に送信するサイズ情報送信手段と、前記ビットパターン情報の印刷を制御する印刷制御手段とを備え、
前記データ解析手段は、前記ホスト装置からの制御コマンドの解析結果がサイズ情報送信要求であると判明すると、前記第1の格納手段に記憶されている表示データを前記コード変換手段に出力させるとともに、前記サイズ情報送信手段をアクティブにして、これにより、前記サイズ情報送信手段は、前記パターンジェネレータにより作成されたビットパターン情報から前記シンボルのシンボルイメージの縦方向及び横方向の大きさを算出し、算出したシンボルイメージの縦方向及び横方向の大きさを前記ホスト装置に送信することを特徴とする。
【0013】
これにより、シンボル表示したいデータを受信すると、プリンタにより所定のシンボルに変換して印刷するので、ホスト装置では、単に表示したいデータを送信するだけでよく、ホスト装置のシンボルへの変換処理の負荷及び、ホスト装置とプリンタ間の通信負荷を大幅に軽減することができる。また、ホスト装置からの要求に応じて、シンボルの大きさを送信するようにすることにより、ホスト装置は、印刷前にシンボルの大きさを確認することができる。
【0015】
また、コード変換手段は、データの圧縮を行う手段及びエラー訂正コードの作成を行う手段を備えていることを特徴とする。例えばPDF417の場合には、各種のデータ圧縮、エラー訂正レベルが用意されており、選択によりエラー訂正レベルを指示するよう構成可能である。
【0017】
また、本発明のプリンタは、サイズ情報送信手段が、印刷されるシンボルの大きさと印刷指定範囲とを比較して、その比較データをホスト装置に送信する手段を備えていることを特徴とする。これにより、ホスト装置は、シンボルを印刷設定範囲枠内に印刷できるかどうかを印刷前に確認し、入らない場合には印刷枠の変更、又は、シンボルの縦及び横の長さを変更したりモジュール幅を変更する等の処理を行うことができる。
【0018】
この場合において、サイズ情報送信手段が、ホスト装置からの送信要求によりサイズ情報または比較データを送信する手段であり、印刷制御手段はホスト装置からの印刷要求によりシンボルの印刷を開始する手段であることを特徴とする。ホスト装置からのコマンドにより、まずシンボルのサイズを確認し、所定の印刷範囲に印刷可能なときに印刷を開始させることが可能となる。
【0019】
また、シンボルイメージ作成手段が、印刷命令を受けたとき又はサイズ情報の送信命令を受けたときにシンボルイメージを作成する手段であることを特徴とする。例えば、サイズ情報の送信命令を受けたときには、シンボルイメージ作成手段はそのシンボルイメージをワークエリア等に展開して、そのサイズを確認する。
【0020】
また、本発明のプリンタは、PDF417、スーパーコード、及びウルトラコードを含むスタック型2次元コード、またはベリコード、データマトリックス及びマキシコードを含むマトリクス型2次元コードを印刷することが可能であることを特徴とする。
【0021】
本発明のシンボルのプリント方法は、
(a)受信手段により、2次元のバーコードまたはマトリクスからなるマークであるシンボルとして印刷されるASCIIコードの表示データを、シンボル印刷用の制御コマンドとともに、ホスト装置から受信する受信ステップと、
(b)データ解析手段により、前記制御コマンドを解析するデータ解析ステップと、
(c)前記データ解析手段による前記制御コマンドの解析結果により、該制御コマンドとともに受信した前記表示データを第1の格納手段に格納するステップと、
(d) コード変換手段により、前記シンボルのプロトコルに従って、前記表示データを前記シンボルのコードワードに変換するステップと、
(e) 前記コードワードから前記シンボルを表すビットパターン情報をパターンジェネレータで作成するステップと、
(f) 前記ビットパターン情報を第2の格納手段に格納するステップと、
(g) 前記ビットパターン情報をプリンタ機構で印刷するステップと、
を備えた、情報を化体したシンボルをプリントするシンボルプリント方法において、
(h) 前記受信ステップで受信したシンボル印刷用の制御コマンドがサイズ情報送信要求コマンドである場合、前記データ解析ステップでの解析結果により、前記コード変換手段に、前記第1の格納手段に記憶されている表示データをコードワードに変換させ、前記パターンジェネレータに、変換されたコードワードからシンボルを表すビットパターン情報を作成させ、サイズ情報送信手段に、作成されたビットパターン情報から前記シンボルのシンボルイメージの縦方向及び横方向の大きさを算出させるとともに、算出したシンボルイメージの縦方向及び横方向の大きさを前記ホスト装置に送信させるステップを含むことを特徴とする。
【0022】
これらのステップは、例えば、ドット単位のレベルで印刷可能なプリント機構と、CPUとメモリーと、これらを制御するプログラム等を内蔵する装置により実施可能である他、これらの機能をハードワイヤロジックで構成した装置により実現可能である。
【0026】
また、本発明のシンボルを印刷する方法は、当該方法により印刷するシンボルが、PDF417、スーパーコード、及びウルトラコードを含むスタック型2次元コード、並びにベリコード、データマトリックス及びマキシコードを含むマトリクス型2次元コードのいずれか1個またはこれらから選択して印刷できることを特徴とする。
【0027】
上述のシンボルプリント方法の各ステップをコンピュータに実現させるためのプルグラムを、コンピュータにより読み取り可能な記録媒体に記録して提供することができる。これにより、印刷機構とCPUとメモリーとを有するプリンタ内に、各種シンボルを印刷可能に制御する本発明にかかる方法を制御するプログラムをロードし、各種シンボルの印刷を実行することが可能となる。
【0028】
【発明の実施の形態】
以下に本発明の一実施形態を説明する。なお、以下に説明する実施形態は説明のためのものであり、本発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であり、これらの実施形態も本発明の範囲に含まれる。
【0029】
本発明は、あらゆるシンボルの印刷に適用可能であるが、ここでは、説明を具体的にするため、2次元コードとして普及し始めているPDF417を用いて説明する。
PDF417はスタック型2次元コードである。図8(a)に、PDF417シンボルの外観とその構成を示す。この図に示すPDF417シンボルは、3段のバーコードから構成されている。PDF417は3段から90段まで自由に選択でき、1シンボル当たり、最大1850個のテキストキャラクタ、2710桁の数字又は1108バイトのバイナリデータを表示できる。
【0030】
実施例の動作の説明の理解を容易にするため、PDF417の構成部分の名称を説明する。まずシンボルには左右上下に空白部、いわゆるクワイエットゾーンが設けられている。シンボルは、左クワイエットゾーンからスタートパターン、左段インジケータ、データ領域と続いている。データ領域が終わると右段インジケータに続くストップパターンで終了する。このPDF417のシンボルのデータ領域で表されているコードワード値を図8(b)に示してある。すなわち1段目が「005 810 032」、2段目が「094 179 880」、3段目が563 781 904」である。
【0031】
PDF417は、スタートパターン、インジケータ、データ等の各種シンボルキャラクタ(コードワードと称する)から構成されている。このようにPDF417は、シンボル表示したいデータ(表示データ)を圧縮したり、エラー訂正用コードワード付加したり、フォーマット用のコードワード(スタートパターン等)を付加する等の処理をすることにより、PDF417の規則(プロトコル)に従ったコードワードに変換されて、全体として1つのシンボルとなる。
【0032】
図9にコードワードの構成例を示す。コードワードは4個の黒バーと4個のスペースの配列により構成される。使用される黒バー及びスペースはそれぞれ1個から6個のモジュールを含み、4個の黒バーと4個のスペースは原則として、合計で17個のモジュールで構成される。モジュールとは、コードワードを構成する最小単位であり、その幅は自由に決定することができる。従って、そのモジュールの幅を変化させることにより、シンボル全体の大きさを調整することも可能である。
【0033】
PDF417では、横方向のコードワード数は1〜30個まで可変であり、その積み重ね段数は上述の通り3〜90段まで可変である。従って、印刷範囲の形状に合わせて同じ内容のシンボルを横長に印刷したり、縦長に印刷する等の変形が可能となる。
【0034】
PDF417では、データの圧縮及び、エラー訂正コードを付与することができる。データ圧縮には、テキスト圧縮モード、バイト圧縮モード、数字圧縮モードの3種類があり、エラー訂正レベルも0〜8までの9種類を有している。
【0035】
従って、表示データを実際に印刷するシンボルにまで変換するには複雑な処理が必要となる。
【0036】
図1に、本発明のプリンタの第1の実施例にかかる機能ブロック構成図を示す。プリンタ1は、ホスト装置90とインタフェース2を介して接続されている。ホスト装置90から送信されたデータはインタフェース2を介して受信部3で受信され、受信バッファ4に記憶される。受信バッファ4に記憶された受信データは、データ解析手段5により受信した順番に解析される。
【0037】
受信したデータが、シンボルとして印刷する表示データであった場合には、第1の格納手段である表示データ保存手段6に格納される。表示データ保存手段6に表示されたデータは、次にシンボルイメージ作成手段9によりシンボルイメージのビットパターンに変換される。シンボルイメージ作成手段9はコード変換処理手段7及びパターンジェネレータ8により構成されている。
【0038】
表示データはまずコード変換処理手段7により、表示しようとするシンボルのプロトコルに従い、コード変換される。このコードパターンへの変換は、単に表示データをコードワードに1対1で変換するだけでなく、データの圧縮、エラー訂正コードワードの付加、及びスタートパターン、左右インジケータ等のコードワードを含む所定のフォーマットとして出力される。
【0039】
所定のフォーマット構成のコードワードに変換されたシンボルデータは、パターンジェネレータ8により、実際に印刷されるシンボルイメージのビットパターンに変換される。ビットパターンに変換されたシンボルは、第2の格納手段に相当するプリントバッファ10に格納される。プリントバッファ10に格納されたシンボルは、プリンタ機構11により印刷される。
【0040】
このようなシンボルの印刷はホスト装置からのコマンドにより制御することが可能である。上述の説明ではシンボルの表示データと印刷とがリンクされており、表示データが送信されるとそのままシンボルが印刷される構成として説明した。しかし、表示データの送信するコマンド、送信した表示データのサイズをホスト装置に通知することを要求をするコマンド、又は既に送信した表示データを印刷させるコマンド等の各種のコマンドを設けることができる。
【0041】
今、ホスト装置からシンボルのサイズの報告するよう要求してきたとする。ホスト装置90から送信されたコマンドは、データ解析手段5により解析される。解析の結果、サイズの報告要求であることが判明すると、データ解析手段5は、表示データ保存手段に記憶しているデータをシンボルイメージ作成手段9に出力するよう制御する。同時に、サイズ情報送信手段12をアクティブにする。これにより、サイズ情報送信手段12は、シンボルイメージ作成手段9により作成されたシンボルのイメージ情報からそのサイズ情報を取得し、送信部13及びインタフェース2を介して、ホスト90にサイズデータを送信する。
【0042】
次に第2の実施例を説明する。図2は、本発明の第2の実施例にかかるプリンタを説明する機能ブロック図である。第1の実施例との違いは、ウインドーサイズ記憶手段15及び制御手段14が設けられている点である。本実施例も第1の実施例と同様の処理を行うものであるが、より多くの機能を実行可能である。
【0043】
制御手段14は、プリンタ全体の制御を行うとともに、各種コマンドに応じた処理を各部の有機的連携により実行するよう制御する手段である。ウインドーサイズ記憶手段15は、シンボルを印刷するための印刷範囲枠を記憶する手段である。ホスト装置90において印刷範囲枠を設定し、それをプリンタ1に送信すると、ウインドーサイズ記憶手段15にそのサイズが記憶される。このようなホスト装置からの設定がなされない場合には、プリセット値として、所定のサイズが自動設定されるように構成してもよい。
【0044】
シンボルは、所定の印刷範囲枠内に印刷されなければならないが、前述したとおり、2次元コードの場合には、データの圧縮、エラー訂正コードの付加などが行われるため、印刷されるシンボルのサイズは実際のビットパターンまで変換してみなければそのサイズがわからない。そのため、シンボルの印刷の前に印刷範囲枠内に印刷可能かどうかの確認が必要となる場合も生じる。このような場合には、確認コマンドにより、その確認が可能となる。確認コマンドを受信すると、データ解析手段5により解析され、そのコマンドが確認コマンドであることがわかると、サイズ情報送信手段12に通知される。
【0045】
サイズ情報手段12は、ウィンドーサイズ記憶手段15から印刷範囲枠の情報を所得し、パターンジェネレータ8からのサイズ情報と比較して、シンボルを印刷範囲枠内に印刷可能か否かを確認し、その比較結果の情報をホスト装置90に送信する。これにより、ホスト装置90は、シンボルを印刷範囲枠内に印刷可能かどうかを知ることができる。もし、印刷範囲枠内に印刷できない場合には、シンボルの縦と横の長さを変えたり、モジュールの幅を変えて印刷することもできる。
【0046】
図3にホスト装置から送信可能なシンボル印刷用の制御コマンドを例示する。この図に示すコマンドの機能及び、コマンドコード、パラメータの指定方法は例示であり、これら以外のの機能及び各種コード、パラメータ等を使用することができる。これらのコマンドは、データ解析手段5で解析されて、そのコマンドに対応する処理は、制御手段14の制御の下で各部がそれぞれ協働することにより実行される。
【0047】
まず、この例では、コマンド「XXX1」は、PDF417シンボルの横方向の桁数を指定する。PDF417では、横方向の長さは最大30であるので、パラメータにより、後続するパラメータa1a2により、その桁数を指定する。
「XXX2」はシンボルの段数を指定するコマンドである。PDF417では、3〜90までの段数が指定可能であるので、パラメータb1b2によりシンボその段数を指定する。「XXX3」では、c1c2によりモジュール幅を指定する。「XXX4」では各コードワードの高さをd1d2で指定する。「XXX5」では、eにより0〜8までのエラー訂正レベルを指定する。「XXX6」はパラメータfにより、PDF417のオプションを指定するものである。
【0048】
「XXX7」では、g1〜gnで指定される表示データを、表示データ保存手段6に保存する。「XXX8」により、表示データ保存手段6に保存した表示データをシンボルとして印刷する。「XXX9」は、表示データ保存手段に記憶されている表示データをシンボルとして表示した場合のサイズ情報をホスト装置90に送信する。
【0049】
図4を用いて、図8に示すようなPDF417のシンボル70を印刷する場合の処理の流れを説明する。図4は、シンボルを印刷する場合に、表示データからシンボルイメージまでの変換の流れを示す図である。
まず、ホスト装置90から、コマンド「XXX1〜6」により、シンボル70の基本構成(シンボルの桁数、段数、モジュール幅、エラー訂正レベル等を設定する。これらの基本構成の設定内容は、プリンタ1内の図示しない所定の記憶部、例えば制御手段14内又はコード変換処理手段7内等に記憶される。これらの設定は、1度設定したら、変更されない限り、次回以降のシンボル印刷でも同様の設定が維持されるように構成することができる。また、これらの基本構成の設定がホスト装置90から指示されない場合には、所定のプリセット値が使用されるように構成することもできる。この例では、印刷されるシンボルの段数は、3段に設定され、横方向の桁数は3桁、モジュール幅は所定の規定値に設定されるものとする。
【0050】
シンボルの基本構成についての設定が終わると、次に、シンボル70の表示データがホスト装置90から送信される。この例では、ホスト装置90からプリンタ1に、コマンド「XXX7」と共に表示データ「ABCDEF(ASCIIコード)」が送信されるものとする。この表示データを受信したプリンタ1は、データ解析手段5により「XXX7」であることを認識すると、当該コマンドに続くデータを表示データとして、表示データ保存手段6に記憶する。表示データは、ホスト装置90からASCIIコードで送信するように構成しても、プリンタでASCIIコードに変換するよう構成してもよい。
【0051】
図4は、表示データ保存手段6に記憶されたASCIIコードの表示データがコードワード値に変換され、その後、コードワード値からビットパターンイメージ(シンボルイメージ)に変換されるまでのデータの変換の流れを示している。
【0052】
次に、例えば、ホスト装置90から、コマンド「XXX8」によりシンボルのサイズ情報の送信を要求すると、プリンタ1ではコード変換処理手段7により、データの圧縮、エラー訂正コード、表示データの変換、スタートパターン、インジケータ等の付加が行われたコードワード値80が作成される。図4ではコードワード値80の内容として、ASCIIコード「ABCDEF」のみをテキスト圧縮モードで変換したコードワード値「001、063、125」のみを示し、スタートパターン、ストップパターン、インジケータなどのコードワードは記載していない。ASCIIコードからPDF417コードのコードワード値への変換は、PDF417の規約に従って変換されるが、ここではその変換規約は重要ではないので、変換されたコードワード値を表示するにとどめる。
【0053】
この例では、コードワード値が「001、063、125」と3個に過ぎないにも拘わらず、最終のビットパターンイメージは横3桁で高さが3段となっている。その理由は、PDF417コードワードでは最小段数が3段であることに加え、この例ではシンボルのサイズを横3桁に指定いるために、表示データのコードワード値に対応するコードワードだけでなく、縦及び横の訂正コードワード及びダミーのコードワードが挿入されているからである。
【0054】
変換されたコード80は、パターンジェネレータ8により、印刷されるPDF417シンボル70のビットパターンイメージに変換される。シンボル70の横サイズxと縦サイズyは、サイズ情報送信手段12により、ウインドーサイズ記憶手段15の印刷範囲指定領域(ウインドー)と比較され、その比較結果が、ホスト装置90に送信される。
【0055】
図5及び図6に印刷範囲とシンボルのサイズの関係を示す。図5は、用紙20上の左上段部に印刷範囲枠21が設定された場合を示している。仮に、印刷しようとするシンボルが横方向に長過ぎた場合には、図5のシンボル外形22として示されるように、印刷範囲枠21の右側の文字に横はみだしのシンボル外形22の右端がかかってしまう。このような場合には、シンボル外形22の読み取りが困難となるばかりでなく、左側の文字も読めなくなってしまう。
【0056】
また、シンボル外形23は、シンボルが縦方向に長すぎる場合を示している。この場合には、印刷範囲枠21の下側の文字にシンボル23の下側の端がかかってしまう。この場合にも、シンボル22の場合と同じように、シンボルの読み取りが困難となるという問題及び、左側の文字が読めなくなるという問題が生じることとなる。
【0057】
このようにシンボルの縦、又は横の一方が、印刷範囲枠21からはみ出てしまう場合であって、他方にスペースがある場合には、シンボルの形を変形させて印刷すれば良い。すなわち、シンボル22の場合には横方向の桁数を減らして、その分の段数を増やして縦方向に長いシンボルに変形すればよい。他方シンボル23のような場合には、段数を減らして、桁数を増やすとよい。
【0058】
もし、縦又は横方向にシンボルを変形しても、印刷範囲枠内にシンボルを印刷できない場合には、シンボルのコードワードを構成する最小単位であるモジュールを小さくすることにより、シンボル全体を縮小することも可能である。
【0059】
このように、シンボルの印刷前にシンボルを印刷範囲内に印刷可能かどうかが、わかれば、シンボルの形体を変更することにより、印刷枠内に印刷することができる。そのためには、印刷前に印刷されるシンボルの形状を知ることが必要である。コマンド「XXX9」によりプリンタ1からサイズ情報を取得する。取得した情報は、ホスト装置内のアプリケーションプログラム(図示せず)により、シンボルサイズのチェックが行われ、必要に応じて印刷範囲枠内に入るように変形させるか又は表示データを変更するための調整が行われる。シンボルサイズの変更は、コマンド「XXX1〜6」を使用して、プリンタ1のシンボルサイズの印刷設定の変更を行うことにより行われる。
【0060】
図6は、ラベル26にバーコードのようなシンボルを印刷する場合について説明する図である。通常ラベル用紙25上には、複数のラベル26が貼付されている。ラベル26の裏面には糊が塗布されており、シンボルが印刷された後でラベル用紙25からラベル26がはがされて、商品などに貼付される。この場合には、シンボルを所定のラベル25に正確に印刷することが特に重要である。
【0061】
図7は、図1または図2に示す各制御部及び記憶手段を、中央制御装置(CPU)60及びRAM61、ROM62により実現する場合の概略構成を示す機能ブロック図である。
【0062】
印字ヘッド31、モータ類32及びプランジャ類33並びにこれらを駆動する印字機構駆動回路34は、印字用紙の搬送、印字、切断等の物理的動作を伴なうプリンタ機構11を構成している。CPU30には、カッタエラー、紙ジャム等のエラー状態、カバーオープン、インク残量、用紙位置等を検出を行うための各種検出装置35が接続されている。検出結果はCPUに入力される。
【0063】
ROM36,RAM37には既に説明した表示データの格納、シンボルへの変換処理、シンボルサイズ情報の送信等の各種各機能を実現するためのプログラムを含むソフトウェア(ファームウェアを含む)及びデータを記憶しており、CPU30がこれを読み出し実行することにより、前述の各種機能を実現する。これらの処理を実行するソフトウェアをコンピュータで読み取り可能な記録媒体に記録し、コンピュータで読み取らせてそのソフトウェアによりプリンタを制御させることにより、本発明のプリンタ及び方法を実施することも可能である。
【0064】
このようなCPUとメモリー及び印刷機構を用いて本発明を実施する場合には、各種シンボルの変換処理も容易であり、各種シンボルの中から希望のシンボルを選択して印刷することができるように構成することも可能である。
【0065】
【発明の効果】
以上説明したように、本発明によると、ホスト装置から表示データを受信するだけで、プリンタ内部で表示データを所定のシンボルに変換して印刷することが可能となるため、ホスト装置の負荷、通信負荷を大幅に減らすことが可能となった。
【0066】
また、本発明によると、ホスト装置からの要求に応じて、シンボルのサイズ情報を返送可能であるので、ホスト装置自身でシンボル変換処理を行わなくとも、シンボルサイズの確認が可能となった。
【図面の簡単な説明】
【図1】本発明のプリンタの第1の実施例にかかる機能ブロック構成図である。
【図2】本発明のプリンタの第2の実施例にかかる機能ブロック構成図である。
【図3】ホスト装置から送信可能なシンボル印刷用の制御コマンドと、その制御内容を例示する図である。
【図4】シンボルを印刷する場合に、表示データからシンボルイメージまでの変換の流れを示す図である。
【図5】用紙20上の左上段部に印刷範囲枠21が設定された場合にシンボルを印刷する場合に、シンボルサイズが印刷範囲枠をはみ出す場合を説明する図である。
【図6】ラベル上にバーコードのようなシンボルを印刷する場合について説明する図である。
【図7】図1または図2に示す各制御部及び記憶手段を、中央制御装置(CPU)及びRAM、ROMにより実現する場合の概略構成を示す機能ブロック図である。
【図8】(a)は、PDF417シンボルとその構成を示す図であり(b)は(a)のデータ領域の表示データを10進数表示したものである。
【図9】PDF417のコードワードの構成を説明するための図である。
【符号の説明】
1 プリンタ
2 インタフェース
3 受信部
4 受信バッファ
5 データ解析手段
6 表示データ保存手段
7 コード変換処理手段
8 パターンジェネレータ
9 シンボルイメージ作成手段
10 プリントバッファ
11 プリンタ機構
12 サイズ情報送信手段
13 送信部
14 主制御手段
15 ウインドーサイズ記憶手段
20 印刷用紙
21 印刷範囲設定枠
22 イメージ外形(横方向はみだし)
23 イメージ外形(縦方向はみだし)
25 ラベル用紙
26 ラベル
27 ラベル印刷イメージ(横方向はみだし)
30 CPU
31 印刷ヘッド
32 モータ
33 プランジャ
34 印字機構駆動回路
35 各種検出装置
36 ROM
37 RAM
70 PDF417シンボルの表示例
71 スタートパターン
72 左側インジケータ
73 データ領域
74 右側インジケータ
75 ストップぱたーん
76 コードワード
77 モジュール
78 黒バー
79 スペースバー[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printer capable of printing a symbol that represents information. Examples of such a symbol include a one-dimensional barcode and a two-dimensional code. The two-dimensional code includes a stack-type two-dimensional code in which barcodes are stacked vertically, and a matrix-type two-dimensional code in which the intersection of the matrix is coded by black or white based on a completely different idea from the barcode. There is. The present invention relates to a printer for printing these one-dimensional or two-dimensional codes. In the present specification, a mark composed of a one-dimensional or two-dimensional barcode or matrix finally printed as described above is referred to as a symbol. Information (contents) displayed by these symbols is referred to as display data.
[0002]
[Background]
Currently, the most popular symbol is a one-dimensional barcode that is attached to a product and forms a product number or other information. Recently, a two-dimensional code that dramatically improves the amount of information that can be displayed has attracted attention. Is starting to be used. A one-dimensional bar code is a bar code displayed in one column vertically or horizontally, but a two-dimensional code displays such a one-dimensional bar code in a plurality of stages as described above. There are a so-called stack type two-dimensional code and a matrix type two-dimensional code coded depending on whether the intersection of the matrix is black or white.
[0003]
Examples of the stack type two-dimensional code include code 49, code 16K, PDF417, super code, and ultra code. As the matrix type two-dimensional code, there are vericode, data matrix (ECC000-140, ECC200, etc.), CP code, maxi code,
[0004]
The bar code displays predetermined information (display data) by a combination of bars (including a combination of bars and bar intervals), and is restored to information by being read by a bar code scanner. Therefore, when printing a barcode, it is necessary to convert information to be displayed into a barcode and print the barcode pattern. The same applies to symbols based on a matrix. In order to display predetermined information by a combination of black and white in the matrix, the information to be displayed (display data) must be converted into a matrix code pattern and printed. The present invention relates to a printer for printing these one-dimensional or two-dimensional symbols.
[0005]
In order to print information by converting information into a symbol, the data to be displayed is converted into a predetermined code according to a symbol-specific rule (protocol) and then printed by a printer. Conversion to these symbols is not only simple code conversion but also unique to the symbol, such as adding start code, stop code, etc. before and after the display data, adding error correction code, compressing data, etc. A series of processing according to the protocol is required. In particular, in the case of a two-dimensional code, not only a large amount of information can be displayed, but also complicated processing is required for compression and creation of an error correction code.
[0006]
[Problems to be solved by the invention]
Conventionally, when printing these symbols, the host device converts the display data into a symbol bit pattern, and sends the converted bit pattern to the printer as print data for symbol printing. . In this case, the symbol can be printed on the printer side simply by printing the received bit pattern data as it is in the same procedure as in normal printing.
[0007]
However, in this method, data is converted into a bar code bit image by the host device, which increases the load on the host device. In particular, in the case of a two-dimensional code, a lot of processing is required to convert information to be displayed into a bit pattern of a two-dimensional code. Therefore, a large load is applied to the host.
[0008]
For example, in PDF417, data compression and an error correction code can be added. Further, there are three types of compression modes for data compression, and there are nine types of error correction levels from 0 to 8. For this reason, considerable processing capacity and processing time are required for the conversion processing from display data to symbols that are actually printed. In addition, since there is much bit pattern information to be displayed as symbols, the load of communication processing between the host device and the printer is also large. Usually, a plurality of communication terminal devices and peripheral devices are connected to the host device, and a plurality of processes are performed in parallel. Therefore, if the symbol conversion process takes too much time, not only the load on the host device increases, but the conversion process may be delayed with respect to the printing speed.
[0009]
Further, since it has a plurality of compression modes and nine error correction levels, the length (size) of a printed symbol varies depending on the content and amount of data displayed as a symbol. Therefore, the final symbol size is not known unless it is actually converted into a symbol.
[0010]
SUMMARY An advantage of some aspects of the invention is that it provides a printer that can reduce the load on the host device and the communication processing on both the host device and the printer device when printing symbols. It is another object of the present invention to provide a printer capable of confirming whether data to be displayed can be printed as a symbol in a print range setting frame before printing the symbol.
[0011]
[Means for Solving the Problems]
The present invention solves the above problems by the following means.
[0012]
The printer capable of symbol printing according to the present invention includes:A mark consisting of a two-dimensional barcode or matrixPrinted as a symbolASCII codeDisplay dataAlong with the control command for symbol printing, from the host deviceReceiving means for receiving;The data analysis means for analyzing the control command, and the control command analysis result of the control command by the data analysis meansFirst storage means for storing the received display data, code conversion means for converting the display data into a code word of the symbol according to a protocol of the symbol, and bit pattern information representing the symbol from the code word A pattern generator for generating the bit pattern, second storage means for storing the bit pattern information,
Size information transmitting means for transmitting the vertical and horizontal sizes of the symbol image of the symbol to the host device;Printing control means for controlling the printing of the bit pattern information,
When the data analysis means determines that the analysis result of the control command from the host device is a size information transmission request, the data analysis means outputs the display data stored in the first storage means to the code conversion means, The size information transmission unit is activated, whereby the size information transmission unit calculates the vertical and horizontal sizes of the symbol image of the symbol from the bit pattern information created by the pattern generator. The vertical size and the horizontal size of the symbol image are transmitted to the host device..
[0013]
Thus, when data to be displayed as a symbol is received, it is converted into a predetermined symbol by the printer and printed. Therefore, the host device only needs to transmit the data to be displayed. The communication load between the host device and the printer can be greatly reduced. Further, by transmitting the symbol size in response to a request from the host device, the host device can confirm the symbol size before printing.
[0015]
In addition, the code conversion means includes means for compressing data and means for creating an error correction code. For example, in the case of PDF417, various data compression and error correction levels are prepared, and the error correction level can be instructed by selection.
[0017]
The printer according to the present invention is characterized in that the size information transmission means includes means for comparing the size of the symbol to be printed with the print designation range and transmitting the comparison data to the host device. As a result, the host device checks whether the symbol can be printed within the print setting range frame before printing, and if not, changes the print frame or changes the vertical and horizontal length of the symbol. Processing such as changing the module width can be performed.
[0018]
In this case, the size information transmission means is means for transmitting size information or comparison data in response to a transmission request from the host device, and the print control means is means for starting symbol printing in response to a print request from the host device. It is characterized by. A symbol size is first confirmed by a command from the host device, and printing can be started when printing is possible within a predetermined printing range.
[0019]
Further, the symbol image creating means is a means for creating a symbol image when receiving a print command or receiving a size information transmission command. For example, when receiving a size information transmission command, the symbol image creating means develops the symbol image in a work area or the like and confirms the size.
[0020]
The printer of the present invention is capable of printing a stack type two-dimensional code including PDF417, super code, and ultra code, or a matrix type two-dimensional code including veri code, data matrix, and maxi code. TossThe
[0021]
The symbol printing method of the present invention includes:
(A)It is a mark consisting of a two-dimensional barcode or matrix by the receiving means.Printed as a symbolASCII codeDisplay dataAlong with control commands for symbol printingA receiving step for receiving from the host device;
(B)A data analysis step of analyzing the control command by data analysis means;
(C)Received together with the control command according to the analysis result of the control command by the data analysis meansThe display dataIn the first storage meansStoring, and
(D) converting the display data into a code word of the symbol according to a protocol of the symbol by code conversion means;
(E) Bit pattern information representing the symbol from the code wordWith pattern generatorA step to create,
(F)Storing the bit pattern information in a second storage means;
(G) The bit pattern informationWith printer mechanismPrinting step;
In a symbol printing method for printing a symbol in which information is embodied, comprising:
(H)The control command for symbol printing received in the receiving step isIn the case of a size information transmission request command, the code conversion means is determined by the analysis result in the data analysis stepIn addition, the display data stored in the first storage means is converted into a code word, the pattern generator is made to create bit pattern information representing a symbol from the converted code word, and the size information transmitting means is made The vertical and horizontal sizes of the symbol image of the symbol are calculated from the obtained bit pattern information and calculated.symbolimageTo the host device to transmit the vertical and horizontal sizes ofIncluding steps.
[0022]
These steps can be performed by, for example, a print mechanism capable of printing at a dot level, a CPU and a memory, and a device incorporating a program for controlling them, and these functions are configured by hard wire logic. This can be realized by the apparatus.
[0026]
In addition, according to the method of printing a symbol of the present invention, the symbol printed by the method includes a stack type two-dimensional code including PDF417, a super code, and an ultra code, and a matrix type two-dimensional including a veri code, a data matrix, and a maxi code. Any one of the codes or a code selected from them can be printed.
[0027]
A program for causing a computer to implement the steps of the symbol printing method described above can be provided by being recorded on a computer-readable recording medium. As a result, it is possible to load a program for controlling a method according to the present invention for controlling printing of various symbols in a printer having a printing mechanism, a CPU, and a memory, and execute printing of the various symbols.
[0028]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below. In addition, embodiment described below is for description and does not limit the scope of the present invention. Accordingly, those skilled in the art can employ embodiments in which each or all of these elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.
[0029]
The present invention can be applied to printing of all symbols, but here, in order to make the description concrete, description will be made using PDF417 that has begun to spread as a two-dimensional code.
PDF417 is a stack type two-dimensional code. FIG. 8A shows the appearance and configuration of the PDF417 symbol. The PDF417 symbol shown in this figure is composed of three levels of barcodes. The PDF 417 can be freely selected from 3 levels to 90 levels, and can display a maximum of 1850 text characters, 2710 digits, or binary data of 1108 bytes per symbol.
[0030]
In order to facilitate understanding of the description of the operation of the embodiment, the names of the components of the PDF 417 will be described. First, the symbol is provided with blank portions, so-called quiet zones, on the left, right, top and bottom. The symbol continues from the left quiet zone to the start pattern, left indicator, and data area. When the data area is over, it ends with a stop pattern following the right indicator. FIG. 8B shows the code word value represented in the data area of the symbol of PDF417. That is, the first stage is “005 810 032”, the second stage is “094 179 880”, and the third stage is “563 781 904”.
[0031]
The PDF 417 is composed of various symbol characters (referred to as code words) such as a start pattern, an indicator, and data. In this way, the PDF 417 performs processing such as compression of data (display data) to be displayed as a symbol, addition of an error correction code word, addition of a format code word (such as a start pattern), and the like. Is converted into a code word in accordance with the above rule (protocol) to become one symbol as a whole.
[0032]
FIG. 9 shows a configuration example of the code word. The code word is composed of an array of four black bars and four spaces. The black bars and spaces used each include 1 to 6 modules, and the 4 black bars and 4 spaces are basically composed of 17 modules. A module is a minimum unit constituting a code word, and its width can be determined freely. Therefore, the size of the entire symbol can be adjusted by changing the width of the module.
[0033]
In PDF417, the number of codewords in the horizontal direction is variable from 1 to 30, and the number of stacked stages is variable from 3 to 90 as described above. Accordingly, it is possible to modify the symbols having the same contents in a horizontally long form or in a vertically long form according to the shape of the print range.
[0034]
In PDF417, data compression and an error correction code can be added. There are three types of data compression: a text compression mode, a byte compression mode, and a number compression mode, and nine error correction levels from 0 to 8.
[0035]
Therefore, complicated processing is required to convert the display data into symbols to be actually printed.
[0036]
FIG. 1 is a functional block configuration diagram according to the first embodiment of the printer of the present invention. The
[0037]
If the received data is display data to be printed as a symbol, it is stored in the display data storage means 6 which is the first storage means. The data displayed on the display data storage means 6 is then converted into a symbol image bit pattern by the symbol image creation means 9. The symbol
[0038]
The display data is first converted by the code conversion processing means 7 in accordance with the protocol of the symbol to be displayed. This conversion to a code pattern is not only a one-to-one conversion of display data into a code word, but also data compression, addition of an error correction code word, and a predetermined word including a code word such as a start pattern and left and right indicators. Output as a format.
[0039]
The symbol data converted into a code word having a predetermined format configuration is converted into a bit pattern of a symbol image to be actually printed by the
[0040]
Such symbol printing can be controlled by a command from the host device. In the above description, the symbol display data and printing are linked, and the symbol is printed as it is when the display data is transmitted. However, various commands such as a command for transmitting display data, a command for requesting the host device to notify the size of the transmitted display data, or a command for printing display data that has already been transmitted can be provided.
[0041]
Assume that the host device requests to report the symbol size. The command transmitted from the
[0042]
Next, a second embodiment will be described. FIG. 2 is a functional block diagram for explaining a printer according to a second embodiment of the present invention. The difference from the first embodiment is that a window size storage means 15 and a control means 14 are provided. This embodiment also performs the same processing as the first embodiment, but more functions can be executed.
[0043]
The
[0044]
The symbol must be printed within a predetermined printing range frame. However, as described above, in the case of a two-dimensional code, data compression, error correction code addition, etc. are performed, so the size of the printed symbol Does not know the size of the actual bit pattern without converting it. For this reason, it may be necessary to check whether printing is possible within the print range frame before printing the symbol. In such a case, the confirmation can be confirmed by a confirmation command. When the confirmation command is received, it is analyzed by the data analysis means 5 and when it is found that the command is the confirmation command, the size information transmission means 12 is notified.
[0045]
The size information means 12 obtains the information of the print range frame from the window size storage means 15 and compares it with the size information from the
[0046]
FIG. 3 exemplifies control commands for symbol printing that can be transmitted from the host device. The command functions, command codes, and parameter designation methods shown in this figure are examples, and other functions, various codes, parameters, and the like can be used. These commands are analyzed by the data analysis means 5, and processing corresponding to the commands is executed by the cooperation of each part under the control of the control means 14.
[0047]
First, in this example, the command “XXX1” specifies the number of digits in the horizontal direction of the PDF417 symbol. In PDF417, since the maximum length in the horizontal direction is 30, the number of digits is specified by the parameter a1a2 that follows.
“XXX2” is a command for designating the number of symbol stages. In PDF417, since the number of stages from 3 to 90 can be specified, the number of stages of the symbol is specified by the parameter b1b2. In “XXX3”, the module width is designated by c1c2. In “XXX4”, the height of each code word is designated by d1d2. In “XXX5”, an error correction level from 0 to 8 is designated by e. “XXX6” designates an option of PDF417 by a parameter f.
[0048]
In “XXX7”, the display data designated by
[0049]
With reference to FIG. 4, the flow of processing when printing the symbol 417 of the PDF 417 as shown in FIG. 8 will be described. FIG. 4 is a diagram showing the flow of conversion from display data to a symbol image when printing a symbol.
First, the basic configuration of the symbol 70 (the number of digits of the symbol, the number of stages, the module width, the error correction level, etc. is set by the command “
[0050]
When the setting of the basic symbol configuration is completed, display data of the
[0051]
FIG. 4 shows the flow of data conversion from when the ASCII code display data stored in the display data storage means 6 is converted into a code word value and then into a bit pattern image (symbol image) from the code word value. Is shown.
[0052]
Next, for example, when the
[0053]
In this example, although there are only three code word values “001, 063, 125”, the final bit pattern image has three horizontal digits and three heights. The reason is that in the PDF417 code word, the minimum number of stages is three, and in this example, since the symbol size is specified as three digits in the horizontal direction, not only the code word corresponding to the code word value of the display data, This is because vertical and horizontal correction code words and dummy code words are inserted.
[0054]
The converted
[0055]
5 and 6 show the relationship between the print range and the symbol size. FIG. 5 shows a case where the
[0056]
The
[0057]
As described above, when one of the vertical and horizontal sides of the symbol protrudes from the
[0058]
If the symbol cannot be printed within the print range frame even if the symbol is deformed in the vertical or horizontal direction, the entire symbol is reduced by reducing the module that is the smallest unit constituting the codeword of the symbol. It is also possible.
[0059]
Thus, if it is known whether or not the symbol can be printed within the printing range before printing the symbol, it can be printed within the printing frame by changing the shape of the symbol. For this purpose, it is necessary to know the shape of the symbol printed before printing. The size information is acquired from the
[0060]
FIG. 6 is a diagram illustrating a case where a symbol such as a barcode is printed on the
[0061]
FIG. 7 is a functional block diagram showing a schematic configuration when each control unit and storage unit shown in FIG. 1 or 2 is realized by a central control unit (CPU) 60, a RAM 61, and a
[0062]
The
[0063]
[0064]
When the present invention is implemented using such a CPU, memory, and printing mechanism, conversion processing of various symbols is easy, so that a desired symbol can be selected from various symbols and printed. It is also possible to configure.
[0065]
【The invention's effect】
As described above, according to the present invention, the display data can be converted into a predetermined symbol and printed inside the printer simply by receiving the display data from the host device. The load can be greatly reduced.
[0066]
Also, according to the present invention, symbol size information can be returned in response to a request from the host device, so that the symbol size can be confirmed without performing symbol conversion processing by the host device itself.
[Brief description of the drawings]
FIG. 1 is a functional block configuration diagram according to a first embodiment of a printer of the present invention;
FIG. 2 is a functional block configuration diagram according to a second embodiment of the printer of the present invention.
FIG. 3 is a diagram illustrating a symbol printing control command that can be transmitted from a host device and its control content;
FIG. 4 is a diagram illustrating a flow of conversion from display data to a symbol image when a symbol is printed.
FIG. 5 is a diagram for explaining a case where a symbol size protrudes from a print range frame when a symbol is printed when a print range frame is set at the upper left stage on the paper.
FIG. 6 is a diagram illustrating a case where a symbol such as a barcode is printed on a label.
7 is a functional block diagram showing a schematic configuration when each control unit and storage unit shown in FIG. 1 or FIG. 2 is realized by a central control unit (CPU), a RAM, and a ROM.
8A is a diagram showing a PDF417 symbol and its configuration, and FIG. 8B is a decimal display of display data in the data area of FIG. 8A.
FIG. 9 is a diagram for explaining the configuration of a code word of PDF417.
[Explanation of symbols]
1 Printer
2 Interface
3 receiver
4 Receive buffer
5 Data analysis means
6 Display data storage means
7 Code conversion processing means
8 Pattern generator
9 Symbol image creation means
10 Print buffer
11 Printer mechanism
12 Size information transmission means
13 Transmitter
14 Main control means
15 Window size storage means
20 Printing paper
21 Print range setting frame
22 Image outline (horizontal direction is protruding)
23 Image outline (extruding in the vertical direction)
25 Label paper
26 Label
27 Label printing image (horizontal direction is protruding)
30 CPU
31 Print head
32 motor
33 Plunger
34 Printing mechanism drive circuit
35 Various detection devices
36 ROM
37 RAM
70 Display example of PDF417 symbol
71 Start pattern
72 Left side indicator
73 Data area
74 Right side indicator
75 Stop Patan
76 codeword
77 modules
78 Black bar
79 Space bar
Claims (5)
前記制御コマンドを解析するデータ解析手段と、
前記データ解析手段による前記制御コマンドの解析結果により、該制御コマンドとともに受信した前記表示データを格納する第1の格納手段と、
前記シンボルのプロトコルに従って、前記表示データを前記シンボルのコードワードに変換するコード変換手段と、
前記コードワードから前記シンボルを表すビットパターン情報を作成するパターンジェネレータと、
前記ビットパターン情報を格納する第2の格納手段と、
前記シンボルのシンボルイメージの縦方向及び横方向の大きさを前記ホスト装置に送信するサイズ情報送信手段と、
前記ビットパターン情報の印刷を制御する印刷制御手段とを備え、
前記データ解析手段は、前記ホスト装置からの制御コマンドの解析結果がサイズ情報送信要求であると判明すると、前記第1の格納手段に記憶されている表示データを前記コード変換手段に出力させるとともに、前記サイズ情報送信手段をアクティブにして、これにより、前記サイズ情報送信手段は、前記パターンジェネレータにより作成されたビットパターン情報から前記シンボルのシンボルイメージの縦方向及び横方向の大きさを算出し、算出したシンボルイメージの縦方向及び横方向の大きさを前記ホスト装置に送信することを特徴とする、情報を化体したシンボルを印刷可能なプリンタ。Receiving means for receiving display data of an ASCII code printed as a symbol which is a mark made of a two-dimensional bar code or matrix , together with a control command for symbol printing, from a host device ;
Data analysis means for analyzing the control command;
The analysis result of the control command by the data analyzing unit, a first storage means for storing the display data received together with the control command,
Code conversion means for converting the display data into a codeword of the symbol according to the protocol of the symbol;
A pattern generator that creates bit pattern information representing the symbol from the codeword;
Second storage means for storing the bit pattern information;
Size information transmitting means for transmitting the vertical and horizontal sizes of the symbol image of the symbol to the host device;
Printing control means for controlling the printing of the bit pattern information,
When the data analysis means determines that the analysis result of the control command from the host device is a size information transmission request, the data analysis means outputs the display data stored in the first storage means to the code conversion means, The size information transmission unit is activated, whereby the size information transmission unit calculates the vertical and horizontal sizes of the symbol image of the symbol from the bit pattern information created by the pattern generator. A printer capable of printing symbols embodying information, wherein the vertical and horizontal sizes of the symbol image are transmitted to the host device .
(b) データ解析手段により、前記制御コマンドを解析するデータ解析ステップと、
(c) 前記データ解析手段による前記制御コマンドの解析結果により、該制御コマンドとともに受信した前記表示データを第1の格納手段に格納するステップと、
(d) コード変換手段により、前記シンボルのプロトコルに従って、前記表示データを前記シンボルのコードワードに変換するステップと、
(e) 前記コードワードから前記シンボルを表すビットパターン情報をパターンジェネレータで作成するステップと、
(f) 前記ビットパターン情報を第2の格納手段に格納するステップと、
(g) 前記ビットパターン情報をプリンタ機構で印刷するステップと、
を備えた、情報を化体したシンボルをプリントするシンボルプリント方法において、
(h) 前記受信ステップで受信したシンボル印刷用の制御コマンドがサイズ情報送信要求コマンドである場合、前記データ解析ステップでの解析結果により、前記コード変換手段に、前記第1の格納手段に記憶されている表示データをコードワードに変換させ、前記パターンジェネレータに、変換されたコードワードからシンボルを表すビットパターン情報を作成させ、サイズ情報送信手段に、作成されたビットパターン情報から前記シンボルのシンボルイメージの縦方向及び横方向の大きさを算出させるとともに、算出したシンボルイメージの縦方向及び横方向の大きさを前記ホスト装置に送信させるステップを含むことを特徴とする、シンボルプリント方法。 (A) a receiving step of receiving ASCII code display data printed as a symbol, which is a mark made of a two-dimensional barcode or matrix , together with a control command for symbol printing from a host device;
(B) a data analysis step of analyzing the control command by data analysis means;
(C) storing the display data received together with the control command in the first storage unit according to the analysis result of the control command by the data analysis unit ;
(D) converting the display data into a code word of the symbol according to a protocol of the symbol by code conversion means;
(E) creating bit pattern information representing the symbol from the codeword with a pattern generator ;
(F) storing the bit pattern information in a second storage means;
(G) printing the bit pattern information with a printer mechanism ;
In a symbol printing method for printing a symbol in which information is embodied, comprising:
(H) If the control command for symbol printing received in the reception step is a size information transmission request command, the code conversion unit stores the symbol printing control command in the first storage unit according to the analysis result in the data analysis step. The display data is converted into a code word, the pattern generator is made to generate bit pattern information representing a symbol from the converted code word, and the size information transmission means is used to generate a symbol image of the symbol from the generated bit pattern information And calculating the vertical and horizontal sizes of the image , and transmitting the calculated vertical and horizontal sizes of the symbol image to the host device .
Priority Applications (9)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000114041A JP4369011B2 (en) | 2000-04-14 | 2000-04-14 | Symbol printer, printing method thereof, and information recording medium |
US09/808,164 US6906812B2 (en) | 2000-04-14 | 2001-03-13 | Symbol printer, symbol printing method, symbol printer driver, and a data storage medium storing a symbol printing program |
EP01107556.1A EP1146418B1 (en) | 2000-04-14 | 2001-03-27 | Method of printing two-dimensional code symbols, printer and printer driver for carrying out the invention, and data storage medium |
EP11172304.5A EP2385460B1 (en) | 2000-04-14 | 2001-03-27 | Method of printing two-dimensional code symbols, printer and printer driver for carrying out the method, and data storage medium |
CNB2004100556930A CN100511333C (en) | 2000-04-14 | 2001-03-31 | Printing method for two-dimensional code symbol, and printer |
KR1020010017190A KR20010098439A (en) | 2000-04-14 | 2001-03-31 | Method of printing two-dimensional code symbols, printer, and printer driver for carrying out the method, and data storage medium |
CN01117876A CN100590682C (en) | 2000-04-14 | 2001-03-31 | Printing method and printer of two-dimensional code symbols |
CNA2009102038712A CN101604231A (en) | 2000-04-14 | 2001-03-31 | Printing method of two-dimensional code symbol, and printer |
HK02104516.5A HK1042762A1 (en) | 2000-04-14 | 2002-06-18 | Method of printing two-dimensional code symbols, printer, and printer driver for carrying out the method, and data storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000114041A JP4369011B2 (en) | 2000-04-14 | 2000-04-14 | Symbol printer, printing method thereof, and information recording medium |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2001293909A JP2001293909A (en) | 2001-10-23 |
JP2001293909A5 JP2001293909A5 (en) | 2005-05-19 |
JP4369011B2 true JP4369011B2 (en) | 2009-11-18 |
Family
ID=18625905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000114041A Expired - Lifetime JP4369011B2 (en) | 2000-04-14 | 2000-04-14 | Symbol printer, printing method thereof, and information recording medium |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4369011B2 (en) |
CN (1) | CN101604231A (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4483727B2 (en) | 2005-07-15 | 2010-06-16 | セイコーエプソン株式会社 | Print image creation apparatus, print image creation method and program |
JP4758785B2 (en) | 2006-02-22 | 2011-08-31 | セイコーエプソン株式会社 | Image creating apparatus and printing apparatus having the same |
JP6064715B2 (en) * | 2013-03-21 | 2017-01-25 | セイコーエプソン株式会社 | Print control program, print control apparatus, and print control method |
CN103955346B (en) * | 2014-05-06 | 2017-10-10 | 丁四涛 | A kind of network print system and Method of printing |
JP6366176B2 (en) * | 2014-07-18 | 2018-08-01 | サトーホールディングス株式会社 | Printer and printing method |
-
2000
- 2000-04-14 JP JP2000114041A patent/JP4369011B2/en not_active Expired - Lifetime
-
2001
- 2001-03-31 CN CNA2009102038712A patent/CN101604231A/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN101604231A (en) | 2009-12-16 |
JP2001293909A (en) | 2001-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6906812B2 (en) | Symbol printer, symbol printing method, symbol printer driver, and a data storage medium storing a symbol printing program | |
US7561283B2 (en) | Barcode printing system, and method and program of setting a virtual barcode font | |
US6149059A (en) | Bar code symbology capable of encoding bytes, words, 16-bit characters, etc. and method and apparatus for printing and reading same | |
US6902114B2 (en) | Setting bar code of optical information reader, method for generating the same, method for changing setting of optical information reader and computer-readable medium | |
US5627358A (en) | System and method for reading two-dimensional barcodes | |
US6776342B1 (en) | Process for the parameterization of scanners for one-dimensional or two-dimensional printed codes | |
JP4369011B2 (en) | Symbol printer, printing method thereof, and information recording medium | |
JP4792646B2 (en) | Symbol printer driver and information recording medium | |
CN106891619B (en) | A kind of Quick Response Code print system and two-dimensional code generation method | |
WO1995012863A1 (en) | Apparatus and method for 16-bit and numeric data collection using bar code symbologies | |
JP2002514329A (en) | Robust machine readable symbology, and method and apparatus for printing and reading based on the symbology | |
JP2001293909A5 (en) | Symbol printer, printing method thereof and information recording medium | |
JPH0643142B2 (en) | Printer space processing device | |
US20050286076A1 (en) | Method and apparatus for printing barcodes and for generating barcode print commands | |
JP3627259B2 (en) | Barcode print data creation device | |
JPH11338964A (en) | Information code reading / creating device | |
EP1522948A1 (en) | Method for generating barcode patterns | |
JPH0535322U (en) | Setting device for printing parameters in a printer | |
JP2008052442A (en) | Bar-code data analyzing program and bar-code data analyzing device | |
JPH11282948A (en) | Method and system for setting operating conditions of symbol reading device | |
JP5904023B2 (en) | Printing system, printing apparatus, and printing control program | |
JP4080218B2 (en) | Image forming apparatus | |
JPS63272145A (en) | Dump output device | |
JPH0639181B2 (en) | Bar code printing controller | |
JPS63205269A (en) | Printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040714 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040714 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050526 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050607 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060307 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060501 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060627 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060814 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20060814 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20060905 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20061124 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20080331 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090723 |
|
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: 20090827 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4369011 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: 20120904 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130904 Year of fee payment: 4 |
|
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 |
|
EXPY | Cancellation because of completion of term |