JP2009078449A - Printing method of bar code and printer apparatus - Google Patents
Printing method of bar code and printer apparatus Download PDFInfo
- Publication number
- JP2009078449A JP2009078449A JP2007249113A JP2007249113A JP2009078449A JP 2009078449 A JP2009078449 A JP 2009078449A JP 2007249113 A JP2007249113 A JP 2007249113A JP 2007249113 A JP2007249113 A JP 2007249113A JP 2009078449 A JP2009078449 A JP 2009078449A
- Authority
- JP
- Japan
- Prior art keywords
- unit
- resolution
- dimensional barcode
- printing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Printers Characterized By Their Purpose (AREA)
Abstract
Description
本発明は、バーコードのプリント方法及びバーコードプリンタ装置に関する。 The present invention relates to a barcode printing method and a barcode printer apparatus.
バーコードを印刷する場合、所定の規格で定義された基本バーコードパターンを、バーコードプリンタのプリント解像度情報にしたがうドットサイズで生成し、その生成された基本バーコードパターンに基づいてバーコードを印刷するようになっている(例えば特許文献1参照)。これにより、バーコードの規格にそった精度の高い印刷が可能となっている。
しかしながら、上記のプリント方法では、バーコードプリンタ装置の主走査方向のプリント解像度、副走査方向のプリント解像度が同一のものであれば、効果的に最適化することが可能であるが、主走査解のプリント像度、副走査方向のプリント解像度が異なるプリンタ装置に対して適用すると、逆に画質が劣化してしまい、バーコードの読み取りに不具合が生ずるおそれがあった。 However, the above printing method can be effectively optimized if the print resolution in the main scanning direction and the print resolution in the sub-scanning direction of the barcode printer apparatus are the same. When applied to printer apparatuses having different print image densities and different print resolutions in the sub-scanning direction, the image quality deteriorates, and there is a risk that a barcode may be read out.
そこで、本発明の課題は、プリンタ装置の主走査方向の解像度、副走査方向の解像度が異なる場合であっても、プリントされたバーコードの読み取り精度を高めることである。 Accordingly, an object of the present invention is to increase the reading accuracy of a printed barcode even when the resolution in the main scanning direction and the resolution in the sub-scanning direction of the printer apparatus are different.
請求項1記載の発明は、
プリントされる一次元バーコードの2方向のプリント解像度を独立設定可能な一次元バーコードのプリント方法において、
プリンタ装置でプリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定工程と、
前記プリント条件設定工程で設定された前記長さ方向における前記プリンタ装置のプリント解像度を取得する解像度取得工程と、
前記解像度取得工程で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定工程と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得工程と、
前記サイズ決定工程で決定された前記単位サイズ及び前記コード取得工程で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成工程と、
前記画像生成工程で生成された前記一次元バーコードのビットマップイメージに基づいて、前記プリンタ装置で前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント工程とを有することを特徴としている。
The invention described in
In the method of printing a one-dimensional barcode, the print resolution in two directions of the one-dimensional barcode to be printed can be set independently.
A printing condition setting step for setting the length direction of the one-dimensional barcode printed by the printer device to either the main scanning direction or the sub-scanning direction;
A resolution acquisition step of acquiring a print resolution of the printer device in the length direction set in the print condition setting step;
A size determining step for determining a unit size of the one-dimensional barcode to be printed based on the print resolution acquired in the resolution acquiring step;
A code acquisition step of acquiring code information of the one-dimensional barcode to be printed;
An image generation step of generating a bitmap image of the one-dimensional barcode to be printed from the unit size determined in the size determination step and the code information acquired in the code acquisition step;
A printing step of printing the one-dimensional barcode along the length direction by the printer device based on the bitmap image of the one-dimensional barcode generated in the image generation step. Yes.
請求項2記載の発明は、
プリントされる一次元バーコードのプリント解像度を設定可能な一次元バーコードのプリント方法において、
プリンタ装置でプリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するとともに、当該一次元バーコードのプリント位置を設定するプリント条件設定工程と、
前記プリント条件設定工程で設定された前記長さ方向のプリント解像度を設定する解像度設定工程と、
前記解像度設定工程で設定されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定工程と、
前記プリント条件設定工程で設定された前記長さ方向、前記プリント位置、前記解像度設定工程で設定された前記プリント解像度及び前記サイズ決定工程で決定された前記単位サイズを関連づけて記憶媒体に記憶させる記憶工程と、
前記記憶媒体に記憶された前記長さ方向、前記プリント位置、前記プリント解像度及び前記単位サイズを読み出す読出工程と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得工程と、
前記読出工程で読み出された前記単位サイズ及び前記コード取得工程で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成工程と、
前記画像生成工程で生成された前記一次元バーコードのビットマップイメージに基づいて、前記プリンタ装置が、前記読出工程で読み出された前記プリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントするプリント工程とを有することを特徴としている。
The invention according to
In the one-dimensional barcode printing method in which the print resolution of the one-dimensional barcode to be printed can be set,
A print condition setting step for setting the length direction of the one-dimensional barcode printed by the printer device to either the main scanning direction or the sub-scanning direction, and setting the print position of the one-dimensional barcode;
A resolution setting step for setting the print resolution in the length direction set in the print condition setting step;
A size determining step for determining a unit size of the one-dimensional barcode to be printed based on the print resolution set in the resolution setting step;
Storage that associates the length direction set in the print condition setting step, the print position, the print resolution set in the resolution setting step, and the unit size determined in the size determination step and stores them in a storage medium Process,
A step of reading out the length direction, the print position, the print resolution, and the unit size stored in the storage medium;
A code acquisition step of acquiring code information of the one-dimensional barcode to be printed;
An image generating step for generating a bitmap image of the one-dimensional barcode to be printed from the unit size read in the reading step and the code information acquired in the code acquiring step;
Based on the bitmap image of the one-dimensional barcode generated in the image generation step, the printer device reads the one-dimensional barcode from the print position with the print resolution read in the reading step. And a printing process for printing along the vertical direction.
請求項3記載の発明は、請求項2記載のプリント方法において、
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合にはプリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴としている。
The invention according to
An apparatus resolution acquisition step of acquiring a print resolution of the printer apparatus in the length direction of the one-dimensional barcode;
The print resolution of the printer device acquired in the device resolution acquisition step is collated with the print resolution set in the resolution setting step, and if they do not match, confirmation whether to execute printing is confirmed. Process,
A conversion step of converting the bitmap image generated in the image generation step into a print resolution of the printer device,
In the printing step, when it is confirmed that the printing is executed in the confirmation step, the printer device performs the primary processing at the print resolution of the printer device based on the bitmap image converted in the conversion step. The original barcode is printed from the print position along the length direction.
請求項4記載の発明は、請求項2記載のプリント方法において、
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリンタ装置のプリント解像度の画素サイズの整数倍であるか否かを判別する判別工程と、
前記判別工程が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴としている。
The invention according to
An apparatus resolution acquisition step of acquiring a print resolution of the printer apparatus in the length direction of the one-dimensional barcode;
The print resolution of the printer device acquired in the device resolution acquisition step and the print resolution set in the resolution setting step are collated. If they do not match, the unit size is equal to the print resolution of the printer device. A determination step of determining whether or not the pixel size is an integer multiple;
If it is determined that the determination step is not an integer multiple, a confirmation step for confirming whether or not to execute printing;
A conversion step of converting the bitmap image generated in the image generation step into a print resolution of the printer device,
In the printing step, when it is confirmed that the printing is executed in the confirmation step, the printer device performs the primary processing at the print resolution of the printer device based on the bitmap image converted in the conversion step. The original barcode is printed from the print position along the length direction.
請求項5記載の発明は、
プリントされる一次元バーコードの2方向のプリント解像度を独立設定可能な一次元バーコードのプリンタ装置において、
プリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定部と、
前記プリント条件設定部で設定された前記長さ方向におけるプリント解像度を取得する解像度取得部と、
前記解像度取得部で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定部と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得部と、
前記サイズ決定部で決定された前記単位サイズ及び前記コード取得部で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成部と、
前記画像生成部で生成された前記一次元バーコードのビットマップイメージに基づいて、前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント部とを有することを特徴としている。
The invention according to
In a one-dimensional barcode printer capable of independently setting the print resolution in two directions of a one-dimensional barcode to be printed,
A print condition setting unit for setting the length direction of the one-dimensional barcode to be printed to either the main scanning direction or the sub-scanning direction;
A resolution acquisition unit for acquiring a print resolution in the length direction set in the print condition setting unit;
A size determination unit that determines a unit size of the one-dimensional barcode to be printed based on the print resolution acquired by the resolution acquisition unit;
A code acquisition unit for acquiring code information of the one-dimensional barcode to be printed;
An image generation unit that generates a bitmap image of the one-dimensional barcode to be printed from the unit size determined by the size determination unit and the code information acquired by the code acquisition unit;
And a printing unit that prints the one-dimensional barcode along the length direction based on the bitmap image of the one-dimensional barcode generated by the image generation unit.
請求項6記載の発明は、
プリントされる一次元バーコードのプリント解像度を設定可能な一次元バーコードのプリンタ装置において、
プリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するとともに、当該一次元バーコードのプリント位置を設定するプリント条件設定部と、
前記プリント条件設定部で設定された前記長さ方向のプリント解像度を設定する解像度設定部と、
前記解像度設定部で設定されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定部と、
前記プリント条件設定部で設定された前記長さ方向、前記プリント位置、前記解像度設定部で設定された前記プリント解像度及び前記サイズ決定部で決定された前記単位サイズを関連づけて記憶媒体に記憶させる記憶部と、
前記記憶媒体に記憶された前記長さ方向、前記プリント位置、前記プリント解像度及び前記単位サイズを読み出す読出部と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得部と、
前記読出部で読み出された前記単位サイズ及び前記コード取得部で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成部と、
前記画像生成部で生成された前記一次元バーコードのビットマップイメージに基づいて、前記読出部で読み出された前記プリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントするプリント部とを有することを特徴としている。
The invention described in
In a one-dimensional barcode printer that can set the print resolution of a one-dimensional barcode to be printed,
A print condition setting unit that sets the length direction of the one-dimensional barcode to be printed to either the main scanning direction or the sub-scanning direction, and sets the print position of the one-dimensional barcode.
A resolution setting unit for setting the print resolution in the length direction set in the print condition setting unit;
A size determining unit that determines a unit size of the one-dimensional barcode to be printed based on the print resolution set by the resolution setting unit;
Storage that associates the length direction set by the print condition setting unit, the print position, the print resolution set by the resolution setting unit, and the unit size determined by the size determination unit and stores them in a storage medium And
A reading unit for reading out the length direction, the print position, the print resolution, and the unit size stored in the storage medium;
A code acquisition unit for acquiring code information of the one-dimensional barcode to be printed;
An image generation unit that generates a bitmap image of the one-dimensional barcode to be printed from the unit size read by the reading unit and the code information acquired by the code acquisition unit;
Based on the bitmap image of the one-dimensional barcode generated by the image generation unit, the one-dimensional barcode is extended from the print position along the length direction at the print resolution read by the reading unit. And a print unit for printing.
請求項7記載の発明は、請求項6記載のプリンタ装置において、
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合にはプリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴としている。
The invention according to
An apparatus resolution acquisition unit for acquiring a print resolution of the print unit in the length direction of the one-dimensional barcode;
The print resolution of the print unit acquired by the device resolution acquisition unit and the print resolution set by the resolution setting unit are collated, and if they do not match, confirmation whether to execute printing is confirmed. And
A conversion unit that converts the bitmap image generated by the image generation unit into a print resolution of the print unit;
When the printing unit is confirmed to execute printing by the confirmation unit, the one-dimensional barcode is printed at the print resolution of the printing unit based on the bitmap image converted by the conversion unit. Printing is performed along the length direction from the printing position.
請求項8記載の発明は、請求項6記載のプリンタ装置において、
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリント部のプリント解像度の画素サイズの整数倍であるか否かを判別する判別部と、
前記判別部が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴としている。
The invention according to
An apparatus resolution acquisition unit for acquiring a print resolution of the print unit in the length direction of the one-dimensional barcode;
The print resolution of the print unit acquired by the device resolution acquisition unit and the print resolution set by the resolution setting unit are collated. If they do not match, the unit size is the print resolution of the print unit. A discriminator for discriminating whether or not the pixel size is an integer multiple;
A confirmation unit for confirming whether or not to execute printing when it is determined that the determination unit is not an integer multiple;
A conversion unit that converts the bitmap image generated by the image generation unit into a print resolution of the print unit;
When the printing unit is confirmed to execute printing by the confirmation unit, the one-dimensional barcode is printed at the print resolution of the printing unit based on the bitmap image converted by the conversion unit. Printing is performed along the length direction from the printing position.
本発明によれば、バーコードの長さ方向が主走査方向、副走査方向のいずれかになったとしても、当該方向におけるプリンタ装置のプリント解像度に基づいてビットマップイメージが作成されるので、少なくとも長さ方向においてはバーコードの読み取りに差し支えのない画質を確保することができる。これにより、主走査方向の解像度、副走査方向の解像度が異なるプリンタ装置であっても、プリントしたバーコードの読み取り精度を高めることが可能となる。 According to the present invention, even if the length direction of the barcode is either the main scanning direction or the sub-scanning direction, the bitmap image is created based on the print resolution of the printer device in that direction. In the length direction, it is possible to ensure image quality that does not interfere with barcode reading. As a result, even when the printer apparatus has different resolutions in the main scanning direction and sub-scanning direction, it is possible to improve the reading accuracy of the printed barcode.
[第1の実施の形態]
以下、第1の実施の形態におけるバーコードのプリンタ装置について説明する。図1はプリンタ装置の概略構成を示す側面図である。図1に示すように、プリンタ装置1は、ローラ上の用紙2に対してバーコードをプリントするものであり、用紙2を搬送する搬送装置3上に配置されている。プリンタ装置1には、画像作成装置であるパーソナルコンピュータ4が電気的に接続されている。そして、プリンタ装置1には、インクカートリッジ5を格納するインクラック6と、インクカートリッジ5からインクラック6を介して供給されたインクによって、搬送装置3上の用紙2に対してインクを吐出するヘッドユニット7とが設けられている。
[First Embodiment]
The barcode printer apparatus according to the first embodiment will be described below. FIG. 1 is a side view showing a schematic configuration of the printer apparatus. As shown in FIG. 1, the
図2は、ヘッドユニット7の概略構成を示す説明図である。図2に示すように、ヘッドユニット7には、用紙2に対してインクを吐出する複数の記録ヘッド8が設けられている。各記録ヘッド8には、インクカートリッジ5からインクを案内するインク流路9が連通している。各記録ヘッド8は、用紙搬送方向(主走査方向)に対して例えば2列に3つずつ配列されていて、各ノズル列が用紙搬送方向に直交する方向(ノズル列方向:副走査方向)に沿うように配置されている。そして、各記録ヘッド8のノズル81によって用紙2の全幅がカバーできるように、各記録ヘッド8は千鳥状に配置されている。
FIG. 2 is an explanatory diagram showing a schematic configuration of the
ここで、プリンタ装置1の主走査方向のプリント解像度は、搬送装置3における用紙2の搬送速度と、記録ヘッド8のインク吐出周波数とに依存しているために、搬送速度を変更することでプリント解像度を変更することが可能となっている。一方、プリンタ装置1の副走査方向のプリント解像度は、各記録ヘッド8のノズル間隔に依存しているために、当該プリント解像度は固定されている。このため、主走査方向のプリント解像度によっては、副走査方向のプリント解像度とは異なってしまうこともある。例えば、本実施形態では、主走査方向のプリント解像度は、180dpi,270dpi,360dpi,450dpi,540dpiの五段階に変更可能であり、副走査方向のプリント解像度は360dpiに固定されている。
Here, since the print resolution in the main scanning direction of the
図3は、本実施形態のプリンタ装置1の主制御構成を示すブロック図である。図3に示すようにプリンタ装置1には、種々の操作指示が入力される操作部11と、記録ヘッド8を駆動するためのヘッド駆動部12と、記録ヘッド8のメンテナンスを実行するメンテナンス部13と、メンテナンス部13及びインクラック6を駆動するためのメカコン部14と、制御部15とが備えられている。また、制御部15には、搬送装置3、パーソナルコンピュータ4等も電気的に接続されている。
FIG. 3 is a block diagram illustrating a main control configuration of the
操作部11は例えばタッチパネルであり、プリント開始指示や、一次元バーコードの基本情報が入力されるようになっている。ここで、基本条件とは、これからプリントされる一次元バーコードの長さ方向や、プリント位置、サイズ、主走査方向のプリント解像度等のことである。つまり、操作部11が、一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定する本発明に係るプリント条件設定部である。
The
制御部15は、本発明に係る解像度取得部であり、操作部11に入力された基本条件としての長さ方向を基に、当該方向におけるプリント解像度を取得する。具体的には、長さ方向が主走査方向と設定されている場合には、制御部15は基本条件として設定されている主走査方向のプリント解像度を取得する。一方、長さ方向が副走査方向と設定されている場合には、制御部15は、固定値である副走査方向のプリント解像度を取得する。
The
ここで、図4に示すように一次元バーコードBの線幅(例えばL1)、スペース幅(例えばS1)は全てモジュール寸法と呼ばれる単位サイズSの整数倍に設定されている。そのため、単位サイズSがプリント解像度の1ドットサイズの整数倍となっていないと、結果的に線幅やスペース幅にも影響し読み取り精度に不安のある一次元バーコードBがプリントされてしまうことになる。これを防止すべく、本発明に係るサイズ決定部としての制御部15は、先に取得した長さ方向のプリント解像度に基づいて、一次元バーコードの単位サイズSを決定する。このとき、制御部15は、基本条件としてのサイズに極力近似したバーコード長さLとなる単位サイズSを設定する。
Here, as shown in FIG. 4, the line width (for example, L1) and space width (for example, S1) of the one-dimensional barcode B are all set to an integral multiple of the unit size S called the module dimension. For this reason, if the unit size S is not an integral multiple of the 1-dot size of the print resolution, a one-dimensional barcode B that has an influence on the line width and space width and is uneasy about reading accuracy will be printed. become. In order to prevent this, the
例えば、長さ方向が主走査方向、そのプリント解像度が540dpi、基本条件としてのサイズsが27mmと設定されている場合で単位サイズの求め方を説明する。まず1ドットサイズdは47μm(=2.54cm/540dpi)となる。この1ドットサイズのN倍(Nは整数)が単位サイズSであるが、Nの値は、基本条件としてのサイズsにバーコード長さLが近似した値となるように設定される。そして、JANコード規格では、バーコード長さLは単位サイズSの95倍であるので、L=95・S=95・Ndという関係が成り立ち、この式を基にバーコード長さLが基本条件としてのサイズsに近似するN値を求める。この例の場合においては、N値は6となり、単位サイズSは282μm(=6×47μm)、バーコード長さLは26.79mm(=95×47μm)となる。 For example, a description will be given of how to obtain the unit size when the length direction is the main scanning direction, the print resolution is 540 dpi, and the size s as the basic condition is 27 mm. First, the dot size d is 47 μm (= 2.54 cm / 540 dpi). The unit size S is N times the dot size (N is an integer). The value of N is set so that the barcode length L approximates the size s as a basic condition. In the JAN code standard, since the barcode length L is 95 times the unit size S, the relationship L = 95 · S = 95 · Nd is established, and the barcode length L is based on this formula. N value approximate to the size s is obtained. In this example, the N value is 6, the unit size S is 282 μm (= 6 × 47 μm), and the barcode length L is 26.79 mm (= 95 × 47 μm).
一方、図5に示すように、一次元バーコードBの長さ方向が副走査方向、そのプリント解像度が360dpi、基本条件としてのサイズsが27mmと設定されている場合では、1ドットサイズdは70.5μm(=2.54cm/360dpi)、N値は4となり、単位サイズSは282μm(=4×70.5μm)、バーコード長さLは26.79mm(=95×47μm)となる。 On the other hand, as shown in FIG. 5, in the case where the length direction of the one-dimensional barcode B is set to the sub-scanning direction, the print resolution is set to 360 dpi, and the size s as the basic condition is set to 27 mm, the one-dot size d is 70.5 μm (= 2.54 cm / 360 dpi), the N value is 4, the unit size S is 282 μm (= 4 × 70.5 μm), and the barcode length L is 26.79 mm (= 95 × 47 μm).
そして、制御部15は、本発明に係るコード取得部でもあり、パーソナルコンピュータ4に格納されている一次元バーコードのコード情報を取得する。
The
制御部15は、本発明に係る画像生成部でもあり、単位サイズS及びコード情報から、プリントされる一次元バーコードのビットマップイメージを生成し、当該ビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上に当該コード情報が付与された一次元バーコードを前記長さ方向に沿うようにプリントさせるようになっている。つまり、ヘッド駆動部12、搬送装置3及び記録ヘッド8が本発明に係るプリント部である。
The
次に、本実施形態のプリンタ装置1で実行されるプリント方法について図6のフローチャートを参照し説明する。
まず、ステップS1では、作業者によって操作部11に基本条件が入力される。この基本条件入力時に、プリンタ装置1でプリントされる一次元バーコードBの長さ方向が主走査方向若しくは副走査方向の何れかに設定されることになる(プリント条件設定工程)。
Next, a printing method executed by the
First, in step S1, a basic condition is input to the
ステップS2では、制御部15は、ステップS1で設定された長さ方向におけるプリンタ装置1のプリント解像度を取得する(解像度取得工程)。
In step S2, the
ステップS3では、制御部15は、ステップS2で取得したプリント解像度、基本条件等に基づいて、一次元バーコードの単位サイズSと、バーコード長さLを決定する(サイズ決定工程)。なお、このステップS3では、上述したようにステップS1で設定された長さ方向が、主走査方向、副走査方向のいずれであっても、設定された方向のプリント解像度に基づいて、一次元バーコードBのプリント解像度が設定されることになる。換言すれば、プリントされる一次元バーコードの2方向(主走査方向、副走査方向)のプリント解像度が独立設定されることになる。
In step S3, the
ステップS4では、制御部15は、パーソナルコンピュータ4から一次元バーコードのコード情報を取得する(コード取得工程)。
In step S4, the
ステップS5では、制御部15は、ステップS3で決定された単位サイズS及びステップS4で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する(画像生成工程)。
In step S5, the
ステップS6では、制御部15は、ステップS5で作成したビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上に当該コード情報が付与された一次元バーコードBを前記長さ方向に沿うようにプリントさせる。
In step S6, the
以上のように、本実施形態によれば、一次元バーコードBの長さ方向が主走査方向、副走査方向のいずれかになったとしても、当該方向におけるプリンタ装置1のプリント解像度に基づいてビットマップイメージが作成されるので、少なくとも長さ方向においてはバーコードBの読み取りに差し支えのない画質を確保することができる。これにより、主走査方向の解像度、副走査方向の解像度が異なるプリンタ装置1であっても、プリントしたバーコードの読み取り精度を高めることが可能となる。
As described above, according to the present embodiment, even if the length direction of the one-dimensional barcode B is either the main scanning direction or the sub-scanning direction, it is based on the print resolution of the
なお、本実施形態では、プリンタ装置1側で一次元バーコードBの基本条件が設定される場合を例示して説明したが、パーソナルコンピュータ4側で設定されることも可能である。この場合、一次元バーコードBのプリント前に、事前に基本条件をプリンタ装置1で読み出しておく必要がある。
In this embodiment, the case where the basic condition of the one-dimensional barcode B is set on the
[第2の実施形態]
第1の実施の形態では、一次元バーコードBのプリント時に基本条件等が作成される場合を例示して説明したが、この第2の実施の形態では、一次元バーコードの基本条件がプリント前に作成されていて、一時的に記憶媒体に記憶されている場合について説明する。
なお、以下の説明において、第1の実施の形態と同一の部分においては同一符号を付してその説明を省略する。
[Second Embodiment]
In the first embodiment, the case where the basic conditions and the like are created at the time of printing the one-dimensional barcode B has been described as an example. However, in the second embodiment, the basic conditions of the one-dimensional barcode are printed. The case where it was created before and is temporarily stored in the storage medium will be described.
In the following description, the same parts as those in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted.
この第2の実施の形態では、パーソナルコンピュータ4により基本条件が設定されていて、当該基本条件としての長さ方向のプリント解像度もパーソナルコンピュータ4により設定される。この長さ方向のプリント解像度は、プリンタ装置1の当該方向(主走査方向若しくは副走査方向)のプリント解像度である。そして、パーソナルコンピュータ4は、先に設定したプリント解像度に基づいて、一次元バーコードBの単位サイズSとバーコード長さLを決定する。その後パーソナルコンピュータ4は、先に設定された基本条件、プリント解像度、単位サイズS及びバーコード長さLを関連づけて記憶媒体(ハードディスク等)に記憶させる。つまり、パーソナルコンピュータ4が、本発明に係るプリント条件設定部、解像度設定部、サイズ決定部、記憶部である。
In the second embodiment, the basic conditions are set by the
そして、プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された基本条件、プリント解像度及び単位サイズSを読み出し、プリントされる一次元バーコードBのコード情報を再度パーソナルコンピュータ4から取得する。
制御部15は、単位サイズS及びコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成し、当該ビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上にコード情報が付与された一次元バーコードBを前記長さ方向に沿うようにプリントさせる。
つまり、制御部15が本発明に係る読出部、コード取得部、画像生成部であり、ヘッド駆動部12、搬送装置3及び記録ヘッド8がプリント部である。
Then, the
The
That is, the
次に、本実施形態のプリンタ装置1及びパーソナルコンピュータ4で実行されるプリント方法について図7,8のフローチャートを参照して説明する。
図7のステップS21では、パーソナルコンピュータ4は、プリンタ装置1でプリントされる一次元バーコードBの基本条件を設定する(プリント条件設定工程)。具体的には、一次元バーコードBの長さ方向を主走査方向若しくは副走査方向の何れかに設定したり、当該一次元バーコードBのプリント位置を設定したり、サイズを設定している。
Next, a printing method executed by the
In step S21 of FIG. 7, the
ステップS22では、パーソナルコンピュータ4は、ステップS21で設定された長さ方向のプリント解像度を設定する(解像度設定工程)。
In step S22, the
ステップS23では、パーソナルコンピュータ4は、ステップS22で設定されたプリント解像度に基づいて、プリントされる一次元バーコードBの単位サイズSと、バーコード長さLを決定する(サイズ決定工程)。
In step S23, the
ステップS24では、パーソナルコンピュータ4は、長さ方向、プリント位置、プリント解像度、単位サイズ及びバーコード長さLを関連づけて記憶媒体に記憶させる(記憶工程)。これにより、バーコードの基本条件が作成され、プリント前に記憶媒体に一時的に記憶されるおとになる。
In step S24, the
その後、プリントタイミングになると、図8のステップS25に示すようにプリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された長さ方向、プリント位置、プリント解像度、単位サイズS及びバーコード長さLを読み出す(読出工程)。
Thereafter, at the print timing, as shown in step S25 of FIG. 8, the
ステップS26では、制御部15は、プリントされる一次元バーコードBのコード情報を取得する(コード取得工程)。
In step S26, the
ステップS27では、制御部15は、ステップS25で読み出された単位サイズS及びステップS26で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する(画像生成工程)。
In step S27, the
ステップS28では、制御部15は、ステップS27で生成された一次元バーコードBのビットマップイメージに基づいて、ステップS25で読み出されたプリント解像度で一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる(プリント工程)。
In step S28, the
以上のように、この第2の実施の形態によれば、事前に基本条件が設定されていたとしても、その基本条件内に一次元バーコードBの長さ方向や、当該長さ方向のプリント解像度が設定されているために、少なくとも長さ方向においてはバーコードBの読み取りに差し支えのない画質を確保することができる。これにより、主走査方向の解像度、副走査方向の解像度が異なるプリンタ装置1であっても、プリントしたバーコードの読み取り精度を高めることが可能となる。
As described above, according to the second embodiment, even if the basic condition is set in advance, the length direction of the one-dimensional barcode B and the printing in the length direction are included in the basic condition. Since the resolution is set, it is possible to ensure an image quality that does not interfere with the reading of the barcode B at least in the length direction. As a result, even when the
[第3の実施の形態]
第2の実施の形態では、事前に作成された基本条件内のプリント解像度と、プリンタ装置1のプリンタ解像度とが対応している場合について説明したが、この第2の実施の形態では、これらが異なっている場合における対処について説明する。
なお、以下の説明において、第1,2の実施の形態と同一の部分においては同一符号を付してその説明を省略する。例えば、パーソナルコンピュータ4側での処理は、上記第2の実施の形態の場合と同様なのでその説明は省略する。
[Third Embodiment]
In the second embodiment, the case where the print resolution within the basic conditions created in advance corresponds to the printer resolution of the
In the following description, the same parts as those in the first and second embodiments are denoted by the same reference numerals, and the description thereof is omitted. For example, the processing on the
プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された基本条件、プリント解像度及び単位サイズSを読み出した後に、基本条件にある長さ方向に対応したプリンタ装置1のプリント解像度を取得する。具体的には、基本条件で設定されている長さ方向が主走査方向の場合には、プリンタ装置1の主走査方向のプリント解像度(例えば、180dpi,270dpi,360dpi,450dpi,540dpiのうち、現在設定されているプリント解像度)を取得し、長さ方向が副走査方向である場合には、プリンタ装置1の副走査方向のプリント解像度(例えば360dpi)を取得する。
The
そして、制御部15は、取得したプリンタ装置1のプリント解像度と、基本条件として設定されているプリント解像度とを照合し、一致していない場合には現状のプリンタ装置1のプリント解像度でプリントを実行するか否かを確認する。具体的には、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換して、その変換されたビットマップイメージを加味した中止確認画面G(図9参照)を操作部11に出力する。ここで、変換手法においては例えばニアレストネイバー法等の周知のピクセル補間方法が用いられる。
Then, the
中止確認画面Gにより作業者から操作部11に対してプリント中止指示が入力されると、制御部15は、プリントを中止する。
一方、中止確認画面Gにより作業者から操作部11に対してプリント開始指示が入力されると、制御部15は、先ほど変換されたビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上にコード情報が付与された一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。このように制御部15は、本発明に係る装置解像度取得部、確認部及び変換部である。
When a print cancel instruction is input from the operator to the
On the other hand, when a print start instruction is input from the operator to the
次に、本実施形態のプリンタ装置1で実行されるプリント方法について図10を参照にして説明する。
Next, a printing method executed by the
ステップS31では、プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された長さ方向、プリント位置、プリント解像度、単位サイズS及びバーコード長さLを読み出す。
In step S <b> 31, the
ステップS32では、制御部15は、プリントされる一次元バーコードBのコード情報を取得する。
In step S32, the
ステップS33では、制御部15は、ステップS31で読み出された単位サイズS及びステップS32で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する。
In step S33, the
ステップS34では、制御部15は、一次元バーコードBの長さ方向におけるプリンタ装置1のプリント解像度を取得する(装置解像度取得工程)。
In step S34, the
ステップS35では、制御部15は、ステップS31で読み取られた長さ方向におけるプリンタ装置1のプリント解像度と、ステップS34で読み取られた長さ方向におけるプリント解像度とを照合し、一致している場合にはステップS40に移行して、一致してない場合にはステップS36に移行する。
In step S35, the
ステップS36では、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換する(変換工程)。
In step S36, the
ステップS37では、制御部15は、ステップS36で変換したビットマップイメージを加味した中止確認画面Gを操作部11に出力する。作業者は、その中止確認画面Gを視認することにより、プリントを中止するか否かを判断する(確認工程)。
In step S <b> 37, the
ステップS38では、制御部15は、作業者により操作部11にプリント中止指示が入力されたか否かを判断し、中止指示が入力されている場合にはステップS39に移行し、入力されていない場合にはステップS40に移行する。
In step S38, the
ステップS39では、制御部15は、プリント中止処理を施し、終了する。
ステップS40では、制御部15は、生成若しくは変換された一次元バーコードBのビットマップイメージに基づいて、ステップS34で取得したプリント解像度で一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。
In step S39, the
In step S40, the
以上のように、第3の実施の形態によれば、長さ方向におけるプリンタ装置1のプリント解像度と、基本条件で設定されたプリンタ解像度とが異なる場合には、プリント前に品質が事前に確認することができるので、プリントされた一次元バーコードBの読み取り精度を確保することが可能となる。
As described above, according to the third embodiment, when the print resolution of the
[第4の実施の形態]
第3の実施の形態では、長さ方向におけるプリンタ装置1のプリント解像度と、基本条件で設定されたプリンタ解像度とが異なるとき、全て作業者による確認作業が必要であるが、この第4の実施の形態では特定の場合であると自動で確認し、作業者の負担を軽減する手法について説明する。
なお、以下の説明において、第1〜3の実施の形態と同一の部分においては同一符号を付してその説明を省略する。例えば、パーソナルコンピュータ4側での処理は、上記第2の実施の形態の場合と同様なのでその説明は省略する。
[Fourth Embodiment]
In the third embodiment, when the print resolution of the
In the following description, the same parts as those in the first to third embodiments are denoted by the same reference numerals and description thereof is omitted. For example, the processing on the
プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された基本条件、プリント解像度及び単位サイズSを読み出した後に、基本条件にある長さ方向に対応したプリンタ装置1のプリント解像度を取得する。
The
そして、制御部15は、取得したプリンタ装置1のプリント解像度と、基本条件として設定されているプリント解像度とを照合し、一致していない場合には現状の単位サイズSがプリンタ装置1のプリント解像度の画素サイズの整数倍であるか否かを判別し、整数倍でないと判別するとプリントを実行するか否かを確認する。この際、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換して、その変換されたビットマップイメージを加味した中止確認画面Gを操作部11に出力する。
Then, the
中止確認画面Gにより作業者から操作部11に対してプリント中止指示が入力されると、制御部15は、プリントを中止する。
一方、中止確認画面Gにより作業者から操作部11に対してプリント開始指示が入力されると、制御部15は、先ほど変換されたビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上にコード情報が付与された一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。このように制御部15は、本発明に係る装置解像度取得部、判別部、確認部及び変換部である。
When a print cancel instruction is input from the operator to the
On the other hand, when a print start instruction is input from the operator to the
次に、本実施形態のプリンタ装置1で実行されるプリント方法について図11を参照にして説明する。
Next, a printing method executed by the
ステップS41では、プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された長さ方向、プリント位置、プリント解像度、単位サイズS及びバーコード長さLを読み出す。
In step S <b> 41, the
ステップS42では、制御部15は、プリントされる一次元バーコードBのコード情報を取得する。
In step S42, the
ステップS43では、制御部15は、ステップS41で読み出された単位サイズS及びステップS42で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する。
In step S43, the
ステップS44では、制御部15は、一次元バーコードBの長さ方向におけるプリンタ装置1のプリント解像度を取得する。
In step S <b> 44, the
ステップS45では、制御部15は、ステップS44で取得された長さ方向におけるプリンタ装置1のプリント解像度と、ステップ41で読み取られた長さ方向におけるプリント解像度とを照合し、一致している場合にはステップS51に移行して、一致してない場合にはステップS46に移行する。
In step S45, the
ステップS46では、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換する。
In step S <b> 46, the
ステップS47では、制御部15は、現状の単位サイズSがプリンタ装置1のプリント解像度の画素サイズの整数倍であるか否かを判別し、整数倍である場合にはステップS51に移行し、整数倍でない場合にはステップS48に移行する。具体的には、例えばステップS41で読み取られたバーコード長さ方向のプリント解像度が360dpiであり、単位サイズSが360dpi1ドットのサイズ70.5μm(2.54cm/360dpi=70.5μm)の6倍の423μmのとき、ステップS44で取得したプリンタ装置1のプリント解像度が540dpiのとき、プリンタ装置1の1ドットのサイズ47μm(2.54cm・540dpi=47μm)の9倍、すなわち整数倍なのでステップS51に移行する。一方、ステップS44で取得したプリンタ装置1のプリント解像度が450dpiのとき、単位サイズSの423μmはプリンタ装置1の1ドットのサイズ56.4μm(2.54cm/450dpi=56.4μm)の7.5倍で整数倍とはならないのでステップS48に移行する。ここで、整数倍として判断する際には、厳密に整数倍でなくとも、ある程度の許容範囲を設けて整数倍と判断してもよい。
In step S47, the
ステップS48では、制御部15は、ステップS47で変換したビットマップイメージを加味した中止確認画面Gを操作部11に出力する。作業者は、その中止確認画面Gを視認することにより、プリントを中止するか否かを判断する。
In step S <b> 48, the
ステップS49では、制御部15は、作業者により操作部11にプリント中止指示が入力されたか否かを判断し、中止指示が入力されている場合にはステップS50に移行し、入力されていない場合にはステップS51に移行する。
In step S49, the
ステップS50では、制御部15は、プリント中止処理を施し、終了する。
ステップS51では、制御部15は、生成若しくは変換された一次元バーコードBのビットマップイメージに基づいて、ステップS44で取得したプリント解像度で一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。
In step S50, the
In step S51, the
以上のように、第4の実施の形態によれば、長さ方向におけるプリンタ装置1のプリント解像度と、基本条件で設定されたプリンタ解像度とが異なる場合であっても、プリンタ装置1のプリンタ解像度の画素サイズが単位サイズSの整数倍であれば、自動でプリント可能と判断されるために、作業者の負担を軽減することも可能となる。
As described above, according to the fourth embodiment, even if the print resolution of the
なお、本発明は上記実施形態に限らず適宜変更可能であるのは勿論である。
例えば、上記実施形態では、パーソナルコンピュータ4とプリンタ装置1とが別体である場合を例示して説明したが、パーソナルコンピュータの機能を備えたプリンタ装置1であってもよい。
Of course, the present invention is not limited to the above-described embodiment and can be modified as appropriate.
For example, in the above-described embodiment, the case where the
1 プリンタ装置
2 用紙
3 搬送装置
4 パーソナルコンピュータ
5 インクカートリッジ
6 インクラック
7 ヘッドユニット
8 記録ヘッド
9 インク流路
11 操作部
12 ヘッド駆動部
13 メンテナンス部
14 メカコン部
15 制御部
B 一次元バーコード
G 中止確認画面
DESCRIPTION OF
Claims (8)
プリンタ装置でプリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定工程と、
前記プリント条件設定工程で設定された前記長さ方向における前記プリンタ装置のプリント解像度を取得する解像度取得工程と、
前記解像度取得工程で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定工程と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得工程と、
前記サイズ決定工程で決定された前記単位サイズ及び前記コード取得工程で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成工程と、
前記画像生成工程で生成された前記一次元バーコードのビットマップイメージに基づいて、前記プリンタ装置で前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント工程とを有することを特徴とするバーコードのプリント方法。 In the method of printing a one-dimensional barcode, the print resolution in two directions of the one-dimensional barcode to be printed can be set independently.
A printing condition setting step for setting the length direction of the one-dimensional barcode printed by the printer device to either the main scanning direction or the sub-scanning direction;
A resolution acquisition step of acquiring a print resolution of the printer device in the length direction set in the print condition setting step;
A size determining step for determining a unit size of the one-dimensional barcode to be printed based on the print resolution acquired in the resolution acquiring step;
A code acquisition step of acquiring code information of the one-dimensional barcode to be printed;
An image generation step of generating a bitmap image of the one-dimensional barcode to be printed from the unit size determined in the size determination step and the code information acquired in the code acquisition step;
A printing step of printing the one-dimensional barcode along the length direction by the printer device based on the bitmap image of the one-dimensional barcode generated in the image generation step. How to print barcodes.
プリンタ装置でプリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するとともに、当該一次元バーコードのプリント位置を設定するプリント条件設定工程と、
前記プリント条件設定工程で設定された前記長さ方向のプリント解像度を設定する解像度設定工程と、
前記解像度設定工程で設定されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定工程と、
前記プリント条件設定工程で設定された前記長さ方向、前記プリント位置、前記解像度設定工程で設定された前記プリント解像度及び前記サイズ決定工程で決定された前記単位サイズを関連づけて記憶媒体に記憶させる記憶工程と、
前記記憶媒体に記憶された前記長さ方向、前記プリント位置、前記プリント解像度及び前記単位サイズを読み出す読出工程と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得工程と、
前記読出工程で読み出された前記単位サイズ及び前記コード取得工程で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成工程と、
前記画像生成工程で生成された前記一次元バーコードのビットマップイメージに基づいて、前記プリンタ装置が、前記読出工程で読み出された前記プリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントするプリント工程とを有することを特徴とするバーコードのプリント方法。 In the one-dimensional barcode printing method in which the print resolution of the one-dimensional barcode to be printed can be set,
A print condition setting step for setting the length direction of the one-dimensional barcode printed by the printer device to either the main scanning direction or the sub-scanning direction, and setting the print position of the one-dimensional barcode;
A resolution setting step for setting the print resolution in the length direction set in the print condition setting step;
A size determining step for determining a unit size of the one-dimensional barcode to be printed based on the print resolution set in the resolution setting step;
Storage that associates the length direction set in the print condition setting step, the print position, the print resolution set in the resolution setting step, and the unit size determined in the size determination step and stores them in a storage medium Process,
A step of reading out the length direction, the print position, the print resolution, and the unit size stored in the storage medium;
A code acquisition step of acquiring code information of the one-dimensional barcode to be printed;
An image generating step for generating a bitmap image of the one-dimensional barcode to be printed from the unit size read in the reading step and the code information acquired in the code acquiring step;
Based on the bitmap image of the one-dimensional barcode generated in the image generation step, the printer device reads the one-dimensional barcode from the print position with the print resolution read in the reading step. And a printing process for printing along the horizontal direction.
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合にはプリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリント方法。 The printing method according to claim 2,
An apparatus resolution acquisition step of acquiring a print resolution of the printer apparatus in the length direction of the one-dimensional barcode;
The print resolution of the printer device acquired in the device resolution acquisition step is collated with the print resolution set in the resolution setting step, and if they do not match, confirmation whether to execute printing is confirmed. Process,
A conversion step of converting the bitmap image generated in the image generation step into a print resolution of the printer device,
In the printing step, when it is confirmed that the printing is executed in the confirmation step, the printer device performs the primary processing at the print resolution of the printer device based on the bitmap image converted in the conversion step. A barcode printing method, wherein an original barcode is printed along the length direction from the printing position.
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリンタ装置のプリント解像度の画素サイズの整数倍であるか否かを判別する判別工程と、
前記判別工程が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリント方法。 The printing method according to claim 2,
An apparatus resolution acquisition step of acquiring a print resolution of the printer apparatus in the length direction of the one-dimensional barcode;
The print resolution of the printer device acquired in the device resolution acquisition step and the print resolution set in the resolution setting step are collated. If they do not match, the unit size is equal to the print resolution of the printer device. A determination step of determining whether or not the pixel size is an integer multiple;
If it is determined that the determination step is not an integer multiple, a confirmation step for confirming whether or not to execute printing;
A conversion step of converting the bitmap image generated in the image generation step into a print resolution of the printer device,
In the printing step, when it is confirmed that the printing is executed in the confirmation step, the printer device performs the primary processing at the print resolution of the printer device based on the bitmap image converted in the conversion step. A barcode printing method, wherein an original barcode is printed along the length direction from the printing position.
プリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定部と、
前記プリント条件設定部で設定された前記長さ方向におけるプリント解像度を取得する解像度取得部と、
前記解像度取得部で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定部と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得部と、
前記サイズ決定部で決定された前記単位サイズ及び前記コード取得部で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成部と、
前記画像生成部で生成された前記一次元バーコードのビットマップイメージに基づいて、前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント部とを有することを特徴とするバーコードのプリンタ装置。 In a one-dimensional barcode printer capable of independently setting the print resolution in two directions of a one-dimensional barcode to be printed,
A print condition setting unit for setting the length direction of the one-dimensional barcode to be printed to either the main scanning direction or the sub-scanning direction;
A resolution acquisition unit for acquiring a print resolution in the length direction set in the print condition setting unit;
A size determination unit that determines a unit size of the one-dimensional barcode to be printed based on the print resolution acquired by the resolution acquisition unit;
A code acquisition unit for acquiring code information of the one-dimensional barcode to be printed;
An image generation unit that generates a bitmap image of the one-dimensional barcode to be printed from the unit size determined by the size determination unit and the code information acquired by the code acquisition unit;
And a printing unit that prints the one-dimensional barcode along the length direction based on the bitmap image of the one-dimensional barcode generated by the image generation unit. Printer device.
プリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するとともに、当該一次元バーコードのプリント位置を設定するプリント条件設定部と、
前記プリント条件設定部で設定された前記長さ方向のプリント解像度を設定する解像度設定部と、
前記解像度設定部で設定されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定部と、
前記プリント条件設定部で設定された前記長さ方向、前記プリント位置、前記解像度設定部で設定された前記プリント解像度及び前記サイズ決定部で決定された前記単位サイズを関連づけて記憶媒体に記憶させる記憶部と、
前記記憶媒体に記憶された前記長さ方向、前記プリント位置、前記プリント解像度及び前記単位サイズを読み出す読出部と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得部と、
前記読出部で読み出された前記単位サイズ及び前記コード取得部で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成部と、
前記画像生成部で生成された前記一次元バーコードのビットマップイメージに基づいて、前記読出部で読み出された前記プリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントするプリント部とを有することを特徴とするバーコードのプリンタ装置。 In a one-dimensional barcode printer that can set the print resolution of a one-dimensional barcode to be printed,
A print condition setting unit that sets the length direction of the one-dimensional barcode to be printed to either the main scanning direction or the sub-scanning direction, and sets the print position of the one-dimensional barcode.
A resolution setting unit for setting the print resolution in the length direction set in the print condition setting unit;
A size determining unit that determines a unit size of the one-dimensional barcode to be printed based on the print resolution set by the resolution setting unit;
Storage that associates the length direction set by the print condition setting unit, the print position, the print resolution set by the resolution setting unit, and the unit size determined by the size determination unit and stores them in a storage medium And
A reading unit for reading out the length direction, the print position, the print resolution, and the unit size stored in the storage medium;
A code acquisition unit for acquiring code information of the one-dimensional barcode to be printed;
An image generation unit that generates a bitmap image of the one-dimensional barcode to be printed from the unit size read by the reading unit and the code information acquired by the code acquisition unit;
Based on the bitmap image of the one-dimensional barcode generated by the image generation unit, the one-dimensional barcode is extended from the print position along the length direction at the print resolution read by the reading unit. A barcode printer apparatus, comprising: a printing unit for printing on the barcode.
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合にはプリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリンタ装置。 The printer apparatus according to claim 6.
An apparatus resolution acquisition unit for acquiring a print resolution of the print unit in the length direction of the one-dimensional barcode;
The print resolution of the print unit acquired by the device resolution acquisition unit and the print resolution set by the resolution setting unit are collated, and if they do not match, confirmation whether to execute printing is confirmed. And
A conversion unit that converts the bitmap image generated by the image generation unit into a print resolution of the print unit;
When the printing unit is confirmed to execute printing by the confirmation unit, the one-dimensional barcode is printed at the print resolution of the printing unit based on the bitmap image converted by the conversion unit. A barcode printer, wherein printing is performed along the length direction from a printing position.
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリント部のプリント解像度の画素サイズの整数倍であるか否かを判別する判別部と、
前記判別部が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリンタ装置。 The printer apparatus according to claim 6.
An apparatus resolution acquisition unit for acquiring a print resolution of the print unit in the length direction of the one-dimensional barcode;
The print resolution of the print unit acquired by the device resolution acquisition unit and the print resolution set by the resolution setting unit are collated. If they do not match, the unit size is the print resolution of the print unit. A discriminator for discriminating whether or not the pixel size is an integer multiple;
A confirmation unit for confirming whether or not to execute printing when it is determined that the determination unit is not an integer multiple;
A conversion unit that converts the bitmap image generated by the image generation unit into a print resolution of the print unit;
When the printing unit is confirmed to execute printing by the confirmation unit, the one-dimensional barcode is printed at the print resolution of the printing unit based on the bitmap image converted by the conversion unit. A barcode printer, wherein printing is performed along the length direction from a printing position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007249113A JP2009078449A (en) | 2007-09-26 | 2007-09-26 | Printing method of bar code and printer apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007249113A JP2009078449A (en) | 2007-09-26 | 2007-09-26 | Printing method of bar code and printer apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009078449A true JP2009078449A (en) | 2009-04-16 |
Family
ID=40653581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007249113A Pending JP2009078449A (en) | 2007-09-26 | 2007-09-26 | Printing method of bar code and printer apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009078449A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103386830A (en) * | 2012-05-07 | 2013-11-13 | 北大方正集团有限公司 | Method and system for determining one-dimensional barcode bar width compensation amount, and barcode printing method |
KR101410715B1 (en) * | 2012-04-30 | 2014-06-24 | 주식회사 모텍스 | Barcode printing system and method |
JP2021053983A (en) * | 2019-09-30 | 2021-04-08 | ブラザー工業株式会社 | Ink jet printer and program |
-
2007
- 2007-09-26 JP JP2007249113A patent/JP2009078449A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101410715B1 (en) * | 2012-04-30 | 2014-06-24 | 주식회사 모텍스 | Barcode printing system and method |
CN103386830A (en) * | 2012-05-07 | 2013-11-13 | 北大方正集团有限公司 | Method and system for determining one-dimensional barcode bar width compensation amount, and barcode printing method |
JP2021053983A (en) * | 2019-09-30 | 2021-04-08 | ブラザー工業株式会社 | Ink jet printer and program |
JP7322645B2 (en) | 2019-09-30 | 2023-08-08 | ブラザー工業株式会社 | Inkjet printing device and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3654141B2 (en) | Determination of the adjustment value of the recording position deviation during printing using two types of inspection patterns | |
JP4306214B2 (en) | Misalignment correction during bidirectional printing according to the platen gap | |
JP2009075701A (en) | Bar-code generation system, bar-code generation program, printer and test chart | |
JP5109758B2 (en) | Liquid ejection device and liquid ejection method | |
US20070291059A1 (en) | Inkjet recording apparatus and inkjet recording method | |
JP4647976B2 (en) | Method for concealing defective print elements in a printer | |
JP2020026061A (en) | Recording device, recording method, and recording control device | |
JP2009078449A (en) | Printing method of bar code and printer apparatus | |
JP2002292856A (en) | Method for printing while taking account of deformation of print medium | |
JP2005047168A (en) | Inkjet recorder | |
JP2017065078A (en) | Inkjet recording device, inkjet recording method and program | |
JP3744273B2 (en) | RECORDING METHOD, RECORDING DEVICE, AND READABLE MEDIUM RECORDING PROGRAM FOR THE SAME | |
JP2007331274A (en) | Recording device, controlling method for recording device, program, and storage medium | |
JP2007130934A (en) | Inkjet recording apparatus | |
JP2005349638A (en) | Printer, computer program, printing system, and printing method | |
JP7031390B2 (en) | Image processing equipment, printable range detection method and program | |
JP5112146B2 (en) | Image forming apparatus and image forming method | |
JP4507724B2 (en) | Printing apparatus, computer program, printing system, and printing method | |
JP7275893B2 (en) | LIQUID EJECTING APPARATUS AND LIQUID EJECTING METHOD | |
JP2019014106A (en) | Image recording device and control method | |
JP5783948B2 (en) | Color image forming apparatus | |
JP7069879B2 (en) | Image forming device, image forming method, and program | |
JP4456850B2 (en) | Image forming apparatus | |
JP7020211B2 (en) | Data output setting adjustment method, image data processing device and image forming device | |
JP4604570B2 (en) | Adjustment pattern forming method, adjustment pattern, printing method, and printing apparatus |