JP2009078449A - Printing method of bar code and printer apparatus - Google Patents

Printing method of bar code and printer apparatus Download PDF

Info

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
print
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
Application number
JP2007249113A
Other languages
Japanese (ja)
Inventor
Toyoaki Sugaya
豊明 菅谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta IJ Technologies Inc
Original Assignee
Konica Minolta IJ Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta IJ Technologies Inc filed Critical Konica Minolta IJ Technologies Inc
Priority to JP2007249113A priority Critical patent/JP2009078449A/en
Publication of JP2009078449A publication Critical patent/JP2009078449A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Printers Characterized By Their Purpose (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enhance a reading accuracy of a printed bar code even when a resolution in a main scan direction of a printer apparatus differs from a resolution in a sub scan direction thereof. <P>SOLUTION: The printing method of the bar code includes: a printing condition setting process of setting a length direction of the one-dimensional bar code printed by the printer apparatus to be either the main scan direction or the sub scan direction; a resolution acquiring process of acquiring a printing resolution of the printer apparatus in the length direction; a size determining process of determining a unit size of the bar code on the basis of the printing resolution; a code acquiring process of acquiring code information of the bar code; an image forming process of forming a bit map image of the bar code from the unit size and the code information; and a printing process of printing the one-dimensional bar code by the printer apparatus to follow the length direction on the basis of the bit map image of the formed bar code. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、バーコードのプリント方法及びバーコードプリンタ装置に関する。   The present invention relates to a barcode printing method and a barcode printer apparatus.

バーコードを印刷する場合、所定の規格で定義された基本バーコードパターンを、バーコードプリンタのプリント解像度情報にしたがうドットサイズで生成し、その生成された基本バーコードパターンに基づいてバーコードを印刷するようになっている(例えば特許文献1参照)。これにより、バーコードの規格にそった精度の高い印刷が可能となっている。
特開平11−265419号公報
When printing a barcode, a basic barcode pattern defined by a predetermined standard is generated with a dot size according to the print resolution information of the barcode printer, and the barcode is printed based on the generated basic barcode pattern. (For example, refer to Patent Document 1). As a result, printing with high accuracy in accordance with the barcode standard is possible.
Japanese Patent Laid-Open No. 11-265419

しかしながら、上記のプリント方法では、バーコードプリンタ装置の主走査方向のプリント解像度、副走査方向のプリント解像度が同一のものであれば、効果的に最適化することが可能であるが、主走査解のプリント像度、副走査方向のプリント解像度が異なるプリンタ装置に対して適用すると、逆に画質が劣化してしまい、バーコードの読み取りに不具合が生ずるおそれがあった。   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 claim 1
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 claim 2
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 claim 3 is 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. The original barcode is printed from the print position along the length direction.

請求項4記載の発明は、請求項2記載のプリント方法において、
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリンタ装置のプリント解像度の画素サイズの整数倍であるか否かを判別する判別工程と、
前記判別工程が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴としている。
The invention according to claim 4 is 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. The original barcode is printed from the print position along the length direction.

請求項5記載の発明は、
プリントされる一次元バーコードの2方向のプリント解像度を独立設定可能な一次元バーコードのプリンタ装置において、
プリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定部と、
前記プリント条件設定部で設定された前記長さ方向におけるプリント解像度を取得する解像度取得部と、
前記解像度取得部で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定部と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得部と、
前記サイズ決定部で決定された前記単位サイズ及び前記コード取得部で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成部と、
前記画像生成部で生成された前記一次元バーコードのビットマップイメージに基づいて、前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント部とを有することを特徴としている。
The invention according to claim 5
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 claim 6
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 claim 7 is 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. Printing is performed along the length direction from the printing position.

請求項8記載の発明は、請求項6記載のプリンタ装置において、
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリント部のプリント解像度の画素サイズの整数倍であるか否かを判別する判別部と、
前記判別部が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴としている。
The invention according to claim 8 is 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. 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 printer device 1 prints a barcode on the paper 2 on the roller, and is disposed on a transport device 3 that transports the paper 2. The printer device 1 is electrically connected to a personal computer 4 that is an image creation device. The printer apparatus 1 includes an ink rack 6 that stores the ink cartridge 5, and a head that ejects ink onto the paper 2 on the transport device 3 by the ink supplied from the ink cartridge 5 via the ink rack 6. A unit 7 is provided.

図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 head unit 7. As shown in FIG. 2, the head unit 7 is provided with a plurality of recording heads 8 that eject ink onto the paper 2. Each recording head 8 communicates with an ink flow path 9 for guiding ink from the ink cartridge 5. Each of the recording heads 8 is arranged in two rows, for example, in three rows with respect to the paper transport direction (main scanning direction), and each nozzle row is in a direction orthogonal to the paper transport direction (nozzle row direction: sub-scanning direction). It is arranged along. The recording heads 8 are arranged in a staggered manner so that the entire width of the paper 2 can be covered by the nozzles 81 of the recording heads 8.

ここで、プリンタ装置1の主走査方向のプリント解像度は、搬送装置3における用紙2の搬送速度と、記録ヘッド8のインク吐出周波数とに依存しているために、搬送速度を変更することでプリント解像度を変更することが可能となっている。一方、プリンタ装置1の副走査方向のプリント解像度は、各記録ヘッド8のノズル間隔に依存しているために、当該プリント解像度は固定されている。このため、主走査方向のプリント解像度によっては、副走査方向のプリント解像度とは異なってしまうこともある。例えば、本実施形態では、主走査方向のプリント解像度は、180dpi,270dpi,360dpi,450dpi,540dpiの五段階に変更可能であり、副走査方向のプリント解像度は360dpiに固定されている。   Here, since the print resolution in the main scanning direction of the printer apparatus 1 depends on the conveyance speed of the paper 2 in the conveyance apparatus 3 and the ink ejection frequency of the recording head 8, printing can be performed by changing the conveyance speed. It is possible to change the resolution. On the other hand, since the print resolution in the sub-scanning direction of the printer apparatus 1 depends on the nozzle interval of each recording head 8, the print resolution is fixed. For this reason, depending on the print resolution in the main scanning direction, the print resolution in the sub-scanning direction may be different. For example, in this embodiment, the print resolution in the main scanning direction can be changed in five stages of 180 dpi, 270 dpi, 360 dpi, 450 dpi, and 540 dpi, and the print resolution in the sub-scanning direction is fixed at 360 dpi.

図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 printer apparatus 1 according to the present embodiment. As shown in FIG. 3, the printer device 1 includes an operation unit 11 to which various operation instructions are input, a head drive unit 12 for driving the recording head 8, and a maintenance unit 13 for performing maintenance of the recording head 8. A mechanical control unit 14 for driving the maintenance unit 13 and the ink rack 6, and a control unit 15. The control unit 15 is also electrically connected to the transfer device 3, the personal computer 4, and the like.

操作部11は例えばタッチパネルであり、プリント開始指示や、一次元バーコードの基本情報が入力されるようになっている。ここで、基本条件とは、これからプリントされる一次元バーコードの長さ方向や、プリント位置、サイズ、主走査方向のプリント解像度等のことである。つまり、操作部11が、一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定する本発明に係るプリント条件設定部である。   The operation unit 11 is, for example, a touch panel, and a print start instruction and basic information of a one-dimensional barcode are input. Here, the basic conditions are the length direction of the one-dimensional barcode to be printed, the print position, the size, the print resolution in the main scanning direction, and the like. That is, the operation unit 11 is a print condition setting unit according to the present invention that sets the length direction of the one-dimensional barcode to either the main scanning direction or the sub-scanning direction.

制御部15は、本発明に係る解像度取得部であり、操作部11に入力された基本条件としての長さ方向を基に、当該方向におけるプリント解像度を取得する。具体的には、長さ方向が主走査方向と設定されている場合には、制御部15は基本条件として設定されている主走査方向のプリント解像度を取得する。一方、長さ方向が副走査方向と設定されている場合には、制御部15は、固定値である副走査方向のプリント解像度を取得する。   The control unit 15 is a resolution acquisition unit according to the present invention, and acquires the print resolution in the direction based on the length direction as a basic condition input to the operation unit 11. Specifically, when the length direction is set as the main scanning direction, the control unit 15 acquires the print resolution in the main scanning direction set as a basic condition. On the other hand, when the length direction is set as the sub-scanning direction, the control unit 15 acquires the print resolution in the sub-scanning direction, which is a fixed value.

ここで、図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 control unit 15 as the size determination unit according to the present invention determines the unit size S of the one-dimensional barcode based on the print resolution in the length direction acquired previously. At this time, the control unit 15 sets a unit size S that becomes the barcode length L as close as possible to the size as the basic condition.

例えば、長さ方向が主走査方向、そのプリント解像度が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 control unit 15 is also a code acquisition unit according to the present invention, and acquires code information of a one-dimensional barcode stored in the personal computer 4.

制御部15は、本発明に係る画像生成部でもあり、単位サイズS及びコード情報から、プリントされる一次元バーコードのビットマップイメージを生成し、当該ビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上に当該コード情報が付与された一次元バーコードを前記長さ方向に沿うようにプリントさせるようになっている。つまり、ヘッド駆動部12、搬送装置3及び記録ヘッド8が本発明に係るプリント部である。   The control unit 15 is also an image generation unit according to the present invention, generates a bitmap image of a one-dimensional barcode to be printed from the unit size S and code information, and based on the bitmap image, the head drive unit 12 In addition, the conveyance device 3 is controlled so that ink is ejected from the recording head 8 so that the one-dimensional barcode with the code information is printed on the paper 2 along the length direction. That is, the head driving unit 12, the transport device 3, and the recording head 8 are the printing unit according to the present invention.

次に、本実施形態のプリンタ装置1で実行されるプリント方法について図6のフローチャートを参照し説明する。
まず、ステップS1では、作業者によって操作部11に基本条件が入力される。この基本条件入力時に、プリンタ装置1でプリントされる一次元バーコードBの長さ方向が主走査方向若しくは副走査方向の何れかに設定されることになる(プリント条件設定工程)。
Next, a printing method executed by the printer apparatus 1 of the present embodiment will be described with reference to the flowchart of FIG.
First, in step S1, a basic condition is input to the operation unit 11 by an operator. When inputting the basic conditions, the length direction of the one-dimensional barcode B printed by the printer 1 is set to either the main scanning direction or the sub-scanning direction (print condition setting step).

ステップS2では、制御部15は、ステップS1で設定された長さ方向におけるプリンタ装置1のプリント解像度を取得する(解像度取得工程)。   In step S2, the control unit 15 acquires the print resolution of the printer device 1 in the length direction set in step S1 (resolution acquisition step).

ステップS3では、制御部15は、ステップS2で取得したプリント解像度、基本条件等に基づいて、一次元バーコードの単位サイズSと、バーコード長さLを決定する(サイズ決定工程)。なお、このステップS3では、上述したようにステップS1で設定された長さ方向が、主走査方向、副走査方向のいずれであっても、設定された方向のプリント解像度に基づいて、一次元バーコードBのプリント解像度が設定されることになる。換言すれば、プリントされる一次元バーコードの2方向(主走査方向、副走査方向)のプリント解像度が独立設定されることになる。   In step S3, the control unit 15 determines a unit size S and a barcode length L of the one-dimensional barcode based on the print resolution, basic conditions, etc. acquired in step S2 (size determination step). In step S3, the one-dimensional bar is set based on the print resolution in the set direction regardless of whether the length direction set in step S1 is the main scanning direction or the sub-scanning direction as described above. The print resolution of code B is set. In other words, the print resolutions in two directions (main scanning direction and sub-scanning direction) of the one-dimensional barcode to be printed are set independently.

ステップS4では、制御部15は、パーソナルコンピュータ4から一次元バーコードのコード情報を取得する(コード取得工程)。   In step S4, the control unit 15 acquires code information of the one-dimensional barcode from the personal computer 4 (code acquisition process).

ステップS5では、制御部15は、ステップS3で決定された単位サイズS及びステップS4で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する(画像生成工程)。   In step S5, the control unit 15 generates a bitmap image of the one-dimensional barcode B to be printed from the unit size S determined in step S3 and the code information acquired in step S4 (image generation process).

ステップS6では、制御部15は、ステップS5で作成したビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上に当該コード情報が付与された一次元バーコードBを前記長さ方向に沿うようにプリントさせる。   In step S6, the control unit 15 controls the head driving unit 12 and the conveying device 3 on the basis of the bitmap image created in step S5, and discharges ink from the recording head 8 so that the code information is printed on the paper 2. Is printed along the length direction.

以上のように、本実施形態によれば、一次元バーコード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 printer device 1 in that direction. Since a bitmap image is created, 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 printer 1 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側で一次元バーコードBの基本条件が設定される場合を例示して説明したが、パーソナルコンピュータ4側で設定されることも可能である。この場合、一次元バーコードBのプリント前に、事前に基本条件をプリンタ装置1で読み出しておく必要がある。   In this embodiment, the case where the basic condition of the one-dimensional barcode B is set on the printer device 1 side has been described as an example. However, it can be set on the personal computer 4 side. In this case, before printing the one-dimensional barcode B, it is necessary to read the basic conditions in advance by the printer device 1.

[第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 personal computer 4, and the print resolution in the length direction as the basic conditions is also set by the personal computer 4. This print resolution in the length direction is the print resolution in the direction (main scanning direction or sub-scanning direction) of the printer apparatus 1. Then, the personal computer 4 determines the unit size S and the barcode length L of the one-dimensional barcode B based on the previously set print resolution. Thereafter, the personal computer 4 stores the basic conditions, print resolution, unit size S, and barcode length L set in advance in a storage medium (hard disk or the like) in association with each other. That is, the personal computer 4 is a print condition setting unit, a resolution setting unit, a size determining unit, and a storage unit according to the present invention.

そして、プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された基本条件、プリント解像度及び単位サイズSを読み出し、プリントされる一次元バーコードBのコード情報を再度パーソナルコンピュータ4から取得する。
制御部15は、単位サイズS及びコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成し、当該ビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上にコード情報が付与された一次元バーコードBを前記長さ方向に沿うようにプリントさせる。
つまり、制御部15が本発明に係る読出部、コード取得部、画像生成部であり、ヘッド駆動部12、搬送装置3及び記録ヘッド8がプリント部である。
Then, the control unit 15 of the printer apparatus 1 reads out the basic conditions, the print resolution, and the unit size S stored in the storage medium of the personal computer 4, and sends the code information of the one-dimensional barcode B to be printed from the personal computer 4 again. get.
The control unit 15 generates a bitmap image of the one-dimensional barcode B to be printed from the unit size S and the code information, and controls the head driving unit 12 and the conveying device 3 based on the bitmap image, Ink is ejected from the recording head 8 to print the one-dimensional barcode B to which the code information is given on the paper 2 along the length direction.
That is, the control unit 15 is a reading unit, a code acquisition unit, and an image generation unit according to the present invention, and the head driving unit 12, the transport device 3, and the recording head 8 are printing units.

次に、本実施形態のプリンタ装置1及びパーソナルコンピュータ4で実行されるプリント方法について図7,8のフローチャートを参照して説明する。
図7のステップS21では、パーソナルコンピュータ4は、プリンタ装置1でプリントされる一次元バーコードBの基本条件を設定する(プリント条件設定工程)。具体的には、一次元バーコードBの長さ方向を主走査方向若しくは副走査方向の何れかに設定したり、当該一次元バーコードBのプリント位置を設定したり、サイズを設定している。
Next, a printing method executed by the printer device 1 and the personal computer 4 of the present embodiment will be described with reference to the flowcharts of FIGS.
In step S21 of FIG. 7, the personal computer 4 sets basic conditions for the one-dimensional barcode B printed by the printer apparatus 1 (print condition setting step). Specifically, the length direction of the one-dimensional barcode B is set to either the main scanning direction or the sub-scanning direction, the print position of the one-dimensional barcode B is set, or the size is set. .

ステップS22では、パーソナルコンピュータ4は、ステップS21で設定された長さ方向のプリント解像度を設定する(解像度設定工程)。   In step S22, the personal computer 4 sets the print resolution in the length direction set in step S21 (resolution setting step).

ステップS23では、パーソナルコンピュータ4は、ステップS22で設定されたプリント解像度に基づいて、プリントされる一次元バーコードBの単位サイズSと、バーコード長さLを決定する(サイズ決定工程)。   In step S23, the personal computer 4 determines the unit size S of the one-dimensional barcode B to be printed and the barcode length L based on the print resolution set in step S22 (size determination step).

ステップS24では、パーソナルコンピュータ4は、長さ方向、プリント位置、プリント解像度、単位サイズ及びバーコード長さLを関連づけて記憶媒体に記憶させる(記憶工程)。これにより、バーコードの基本条件が作成され、プリント前に記憶媒体に一時的に記憶されるおとになる。   In step S24, the personal computer 4 stores the length direction, the print position, the print resolution, the unit size, and the barcode length L in association with each other in the storage medium (storage step). Thereby, the basic condition of the barcode is created and temporarily stored in the storage medium before printing.

その後、プリントタイミングになると、図8のステップS25に示すようにプリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された長さ方向、プリント位置、プリント解像度、単位サイズS及びバーコード長さLを読み出す(読出工程)。   Thereafter, at the print timing, as shown in step S25 of FIG. 8, the control unit 15 of the printer apparatus 1 stores the length direction, print position, print resolution, unit size S and bar stored in the storage medium of the personal computer 4. The code length L is read (reading step).

ステップS26では、制御部15は、プリントされる一次元バーコードBのコード情報を取得する(コード取得工程)。   In step S26, the control unit 15 acquires code information of the one-dimensional barcode B to be printed (code acquisition process).

ステップS27では、制御部15は、ステップS25で読み出された単位サイズS及びステップS26で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する(画像生成工程)。   In step S27, the control unit 15 generates a bitmap image of the one-dimensional barcode B to be printed from the unit size S read in step S25 and the code information acquired in step S26 (image generation process). .

ステップS28では、制御部15は、ステップS27で生成された一次元バーコードBのビットマップイメージに基づいて、ステップS25で読み出されたプリント解像度で一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる(プリント工程)。   In step S28, the control unit 15 generates the one-dimensional barcode B from the print position in the length direction at the print resolution read in step S25 based on the bitmap image of the one-dimensional barcode B generated in step S27. (Printing process).

以上のように、この第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 printer 1 has different resolutions in the main scanning direction and sub-scanning direction, it is possible to improve the reading accuracy of the printed barcode.

[第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 printer apparatus 1 has been described. In the second embodiment, these are the same. A description will be given of how to deal with the difference.
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 personal computer 4 side is the same as in the case of the second embodiment, and a description thereof will be omitted.

プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された基本条件、プリント解像度及び単位サイズSを読み出した後に、基本条件にある長さ方向に対応したプリンタ装置1のプリント解像度を取得する。具体的には、基本条件で設定されている長さ方向が主走査方向の場合には、プリンタ装置1の主走査方向のプリント解像度(例えば、180dpi,270dpi,360dpi,450dpi,540dpiのうち、現在設定されているプリント解像度)を取得し、長さ方向が副走査方向である場合には、プリンタ装置1の副走査方向のプリント解像度(例えば360dpi)を取得する。   The control unit 15 of the printer apparatus 1 reads the basic conditions, the print resolution, and the unit size S stored in the storage medium of the personal computer 4 and then determines the print resolution of the printer apparatus 1 corresponding to the length direction in the basic conditions. get. Specifically, when the length direction set in the basic condition is the main scanning direction, the print resolution in the main scanning direction of the printer device 1 (for example, among 180 dpi, 270 dpi, 360 dpi, 450 dpi, and 540 dpi) If the length direction is the sub-scanning direction, the print resolution (for example, 360 dpi) of the printer device 1 in the sub-scanning direction is acquired.

そして、制御部15は、取得したプリンタ装置1のプリント解像度と、基本条件として設定されているプリント解像度とを照合し、一致していない場合には現状のプリンタ装置1のプリント解像度でプリントを実行するか否かを確認する。具体的には、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換して、その変換されたビットマップイメージを加味した中止確認画面G(図9参照)を操作部11に出力する。ここで、変換手法においては例えばニアレストネイバー法等の周知のピクセル補間方法が用いられる。   Then, the control unit 15 collates the acquired print resolution of the printer apparatus 1 with the print resolution set as the basic condition, and executes printing at the current print resolution of the printer apparatus 1 if they do not match. Confirm whether or not to do. Specifically, the control unit 15 converts the currently created bitmap image of the one-dimensional barcode B into the printer resolution of the current printer apparatus 1 and cancels the converted bitmap image. A confirmation screen G (see FIG. 9) is output to the operation unit 11. Here, in the conversion method, for example, a known pixel interpolation method such as a nearest neighbor method is used.

中止確認画面Gにより作業者から操作部11に対してプリント中止指示が入力されると、制御部15は、プリントを中止する。
一方、中止確認画面Gにより作業者から操作部11に対してプリント開始指示が入力されると、制御部15は、先ほど変換されたビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上にコード情報が付与された一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。このように制御部15は、本発明に係る装置解像度取得部、確認部及び変換部である。
When a print cancel instruction is input from the operator to the operation unit 11 on the cancel confirmation screen G, the control unit 15 cancels printing.
On the other hand, when a print start instruction is input from the operator to the operation unit 11 on the cancel confirmation screen G, the control unit 15 moves the head drive unit 12 and the transport device 3 based on the bitmap image converted earlier. By controlling, the ink is ejected from the recording head 8 and the one-dimensional barcode B to which the code information is given is printed on the paper 2 along the length direction from the printing position. Thus, the control unit 15 is an apparatus resolution acquisition unit, a confirmation unit, and a conversion unit according to the present invention.

次に、本実施形態のプリンタ装置1で実行されるプリント方法について図10を参照にして説明する。   Next, a printing method executed by the printer apparatus 1 of the present embodiment will be described with reference to FIG.

ステップS31では、プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された長さ方向、プリント位置、プリント解像度、単位サイズS及びバーコード長さLを読み出す。   In step S <b> 31, the control unit 15 of the printer apparatus 1 reads the length direction, print position, print resolution, unit size S, and barcode length L stored in the storage medium of the personal computer 4.

ステップS32では、制御部15は、プリントされる一次元バーコードBのコード情報を取得する。   In step S32, the control unit 15 acquires code information of the one-dimensional barcode B to be printed.

ステップS33では、制御部15は、ステップS31で読み出された単位サイズS及びステップS32で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する。   In step S33, the control unit 15 generates a bitmap image of the one-dimensional barcode B to be printed from the unit size S read in step S31 and the code information acquired in step S32.

ステップS34では、制御部15は、一次元バーコードBの長さ方向におけるプリンタ装置1のプリント解像度を取得する(装置解像度取得工程)。   In step S34, the control unit 15 acquires the print resolution of the printer device 1 in the length direction of the one-dimensional barcode B (device resolution acquisition step).

ステップS35では、制御部15は、ステップS31で読み取られた長さ方向におけるプリンタ装置1のプリント解像度と、ステップS34で読み取られた長さ方向におけるプリント解像度とを照合し、一致している場合にはステップS40に移行して、一致してない場合にはステップS36に移行する。   In step S35, the control unit 15 collates the print resolution of the printer device 1 in the length direction read in step S31 with the print resolution in the length direction read in step S34, and if they match, Moves to step S40, and if they do not match, moves to step S36.

ステップS36では、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換する(変換工程)。   In step S36, the control unit 15 converts the currently created one-dimensional barcode B bitmap image into the current printer resolution of the printer apparatus 1 (conversion step).

ステップS37では、制御部15は、ステップS36で変換したビットマップイメージを加味した中止確認画面Gを操作部11に出力する。作業者は、その中止確認画面Gを視認することにより、プリントを中止するか否かを判断する(確認工程)。   In step S <b> 37, the control unit 15 outputs to the operation unit 11 a cancellation confirmation screen G that takes into account the bitmap image converted in step S <b> 36. The operator determines whether or not to cancel printing by visually checking the cancellation confirmation screen G (confirmation step).

ステップS38では、制御部15は、作業者により操作部11にプリント中止指示が入力されたか否かを判断し、中止指示が入力されている場合にはステップS39に移行し、入力されていない場合にはステップS40に移行する。   In step S38, the control unit 15 determines whether or not a print stop instruction is input to the operation unit 11 by the operator. If the stop instruction is input, the control unit 15 proceeds to step S39, and if not input. Then, the process proceeds to step S40.

ステップS39では、制御部15は、プリント中止処理を施し、終了する。
ステップS40では、制御部15は、生成若しくは変換された一次元バーコードBのビットマップイメージに基づいて、ステップS34で取得したプリント解像度で一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。
In step S39, the control unit 15 performs a print cancellation process and ends.
In step S40, the control unit 15 causes the one-dimensional barcode B along the length direction from the print position at the print resolution acquired in step S34 based on the generated or converted bitmap image of the one-dimensional barcode B. To print.

以上のように、第3の実施の形態によれば、長さ方向におけるプリンタ装置1のプリント解像度と、基本条件で設定されたプリンタ解像度とが異なる場合には、プリント前に品質が事前に確認することができるので、プリントされた一次元バーコードBの読み取り精度を確保することが可能となる。   As described above, according to the third embodiment, when the print resolution of the printer device 1 in the length direction is different from the printer resolution set in the basic conditions, the quality is confirmed in advance before printing. Therefore, it is possible to ensure the reading accuracy of the printed one-dimensional barcode B.

[第4の実施の形態]
第3の実施の形態では、長さ方向におけるプリンタ装置1のプリント解像度と、基本条件で設定されたプリンタ解像度とが異なるとき、全て作業者による確認作業が必要であるが、この第4の実施の形態では特定の場合であると自動で確認し、作業者の負担を軽減する手法について説明する。
なお、以下の説明において、第1〜3の実施の形態と同一の部分においては同一符号を付してその説明を省略する。例えば、パーソナルコンピュータ4側での処理は、上記第2の実施の形態の場合と同様なのでその説明は省略する。
[Fourth Embodiment]
In the third embodiment, when the print resolution of the printer device 1 in the length direction is different from the printer resolution set in the basic conditions, all confirmation work by the operator is necessary. In this embodiment, a method for automatically confirming a specific case and reducing the burden on the operator will be described.
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 personal computer 4 side is the same as in the case of the second embodiment, and a description thereof will be omitted.

プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された基本条件、プリント解像度及び単位サイズSを読み出した後に、基本条件にある長さ方向に対応したプリンタ装置1のプリント解像度を取得する。   The control unit 15 of the printer apparatus 1 reads the basic conditions, the print resolution, and the unit size S stored in the storage medium of the personal computer 4 and then determines the print resolution of the printer apparatus 1 corresponding to the length direction in the basic conditions. get.

そして、制御部15は、取得したプリンタ装置1のプリント解像度と、基本条件として設定されているプリント解像度とを照合し、一致していない場合には現状の単位サイズSがプリンタ装置1のプリント解像度の画素サイズの整数倍であるか否かを判別し、整数倍でないと判別するとプリントを実行するか否かを確認する。この際、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換して、その変換されたビットマップイメージを加味した中止確認画面Gを操作部11に出力する。   Then, the control unit 15 collates the acquired print resolution of the printer apparatus 1 with the print resolution set as the basic condition. If they do not match, the current unit size S is the print resolution of the printer apparatus 1. It is determined whether or not the pixel size is an integral multiple of the pixel size. At this time, the control unit 15 converts the bitmap image of the one-dimensional barcode B that is currently created into the printer resolution of the current printer device 1 and cancels the confirmation screen with the converted bitmap image taken into account. G is output to the operation unit 11.

中止確認画面Gにより作業者から操作部11に対してプリント中止指示が入力されると、制御部15は、プリントを中止する。
一方、中止確認画面Gにより作業者から操作部11に対してプリント開始指示が入力されると、制御部15は、先ほど変換されたビットマップイメージに基づいて、ヘッド駆動部12及び搬送装置3を制御して、記録ヘッド8からインクを吐出させて用紙2上にコード情報が付与された一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。このように制御部15は、本発明に係る装置解像度取得部、判別部、確認部及び変換部である。
When a print cancel instruction is input from the operator to the operation unit 11 on the cancel confirmation screen G, the control unit 15 cancels printing.
On the other hand, when a print start instruction is input from the operator to the operation unit 11 on the cancel confirmation screen G, the control unit 15 moves the head drive unit 12 and the transport device 3 based on the bitmap image converted earlier. By controlling, the ink is ejected from the recording head 8 and the one-dimensional barcode B to which the code information is given is printed on the paper 2 along the length direction from the printing position. Thus, the control unit 15 is a device resolution acquisition unit, a determination unit, a confirmation unit, and a conversion unit according to the present invention.

次に、本実施形態のプリンタ装置1で実行されるプリント方法について図11を参照にして説明する。   Next, a printing method executed by the printer apparatus 1 of the present embodiment will be described with reference to FIG.

ステップS41では、プリンタ装置1の制御部15は、パーソナルコンピュータ4の記憶媒体に記憶された長さ方向、プリント位置、プリント解像度、単位サイズS及びバーコード長さLを読み出す。   In step S <b> 41, the control unit 15 of the printer apparatus 1 reads the length direction, print position, print resolution, unit size S, and barcode length L stored in the storage medium of the personal computer 4.

ステップS42では、制御部15は、プリントされる一次元バーコードBのコード情報を取得する。   In step S42, the control unit 15 acquires code information of the one-dimensional barcode B to be printed.

ステップS43では、制御部15は、ステップS41で読み出された単位サイズS及びステップS42で取得されたコード情報から、プリントされる一次元バーコードBのビットマップイメージを生成する。   In step S43, the control unit 15 generates a bitmap image of the one-dimensional barcode B to be printed from the unit size S read in step S41 and the code information acquired in step S42.

ステップS44では、制御部15は、一次元バーコードBの長さ方向におけるプリンタ装置1のプリント解像度を取得する。   In step S <b> 44, the control unit 15 acquires the print resolution of the printer device 1 in the length direction of the one-dimensional barcode B.

ステップS45では、制御部15は、ステップS44で取得された長さ方向におけるプリンタ装置1のプリント解像度と、ステップ41で読み取られた長さ方向におけるプリント解像度とを照合し、一致している場合にはステップS51に移行して、一致してない場合にはステップS46に移行する。   In step S45, the control unit 15 collates the print resolution of the printer apparatus 1 in the length direction acquired in step S44 with the print resolution in the length direction read in step 41, and if they match, Goes to step S51, and if they do not match, goes to step S46.

ステップS46では、制御部15は、現在作成されている一次元バーコードBのビットマップイメージを、現状のプリンタ装置1のプリンタ解像度に変換する。   In step S <b> 46, the control unit 15 converts the currently created one-dimensional barcode B bitmap image into the current printer resolution of the printer device 1.

ステップ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 control unit 15 determines whether or not the current unit size S is an integer multiple of the pixel size of the print resolution of the printer apparatus 1. If the unit size is an integer multiple, the process proceeds to step S51. If it is not doubled, the process proceeds to step S48. Specifically, for example, the print resolution in the barcode length direction read in step S41 is 360 dpi, and the unit size S is 6 times the size of 70.5 μm (2.54 cm / 360 dpi = 70.5 μm) of 360 dpi 1 dot. When the print resolution of the printer device 1 acquired in step S44 is 540 dpi, the size of one dot of the printer device 1 is 47 μm (2.54 cm · 540 dpi = 47 μm), that is, an integral multiple. Transition. On the other hand, when the print resolution of the printer apparatus 1 acquired in step S44 is 450 dpi, the unit size S of 423 μm is 7.5 of the size of one dot of the printer apparatus 1 of 56.4 μm (2.54 cm / 450 dpi = 56.4 μm). Since it does not become an integral multiple by double, the process proceeds to step S48. Here, when it is determined as an integer multiple, it may be determined as an integer multiple by providing a certain allowable range even if it is not strictly an integer multiple.

ステップS48では、制御部15は、ステップS47で変換したビットマップイメージを加味した中止確認画面Gを操作部11に出力する。作業者は、その中止確認画面Gを視認することにより、プリントを中止するか否かを判断する。   In step S <b> 48, the control unit 15 outputs a cancellation confirmation screen G that takes into account the bitmap image converted in step S <b> 47 to the operation unit 11. The operator determines whether or not to cancel printing by visually checking the cancellation confirmation screen G.

ステップS49では、制御部15は、作業者により操作部11にプリント中止指示が入力されたか否かを判断し、中止指示が入力されている場合にはステップS50に移行し、入力されていない場合にはステップS51に移行する。   In step S49, the control unit 15 determines whether or not a print stop instruction is input to the operation unit 11 by the operator. If the stop instruction is input, the process proceeds to step S50. Then, the process proceeds to step S51.

ステップS50では、制御部15は、プリント中止処理を施し、終了する。
ステップS51では、制御部15は、生成若しくは変換された一次元バーコードBのビットマップイメージに基づいて、ステップS44で取得したプリント解像度で一次元バーコードBをプリント位置から長さ方向に沿うようにプリントさせる。
In step S50, the control unit 15 performs a print cancellation process and ends.
In step S51, the control unit 15 causes the one-dimensional barcode B along the length direction from the print position at the print resolution acquired in step S44 based on the generated or converted bitmap image of the one-dimensional barcode B. To print.

以上のように、第4の実施の形態によれば、長さ方向におけるプリンタ装置1のプリント解像度と、基本条件で設定されたプリンタ解像度とが異なる場合であっても、プリンタ装置1のプリンタ解像度の画素サイズが単位サイズSの整数倍であれば、自動でプリント可能と判断されるために、作業者の負担を軽減することも可能となる。   As described above, according to the fourth embodiment, even if the print resolution of the printer apparatus 1 in the length direction is different from the printer resolution set in the basic conditions, the printer resolution of the printer apparatus 1 is different. If the pixel size is an integer multiple of the unit size S, it is determined that printing can be automatically performed, so that the burden on the operator can be reduced.

なお、本発明は上記実施形態に限らず適宜変更可能であるのは勿論である。
例えば、上記実施形態では、パーソナルコンピュータ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 personal computer 4 and the printer device 1 are separate has been described as an example. However, the printer device 1 having a function of a personal computer may be used.

本発明に係るプリント装置の概略構成を示す側面図である。1 is a side view illustrating a schematic configuration of a printing apparatus according to the present invention. 図1のプリント装置に備わるヘッドユニットの概略構成を示す上面図である。FIG. 2 is a top view illustrating a schematic configuration of a head unit provided in the printing apparatus of FIG. 1. 図1のプリント装置の主制御構成を示すブロック図である。FIG. 2 is a block diagram illustrating a main control configuration of the printing apparatus in FIG. 1. 図1のプリント装置で主走査方向に長さ方向が沿うようにプリントされた一次元バーコードを示す説明図である。FIG. 2 is an explanatory diagram showing a one-dimensional barcode printed by the printing apparatus of FIG. 1 so that the length direction is along the main scanning direction. 図1のプリント装置で副走査方向に長さ方向が沿うようにプリントされた一次元バーコードを示す説明図である。FIG. 2 is an explanatory diagram showing a one-dimensional barcode printed with the printing apparatus of FIG. 1 so that the length direction is along the sub-scanning direction. 第1の実施の形態におけるプリント方法の流れを示すフローチャートである。3 is a flowchart illustrating a flow of a printing method according to the first embodiment. 第2の実施の形態におけるプリント方法の流れを示すフローチャートである。10 is a flowchart illustrating a flow of a printing method according to the second embodiment. 第2の実施の形態におけるプリント方法の流れを示すフローチャートである。10 is a flowchart illustrating a flow of a printing method according to the second embodiment. 第3の実施の形態におけるプリント装置に表示される中止確認画面を示す説明図である。FIG. 10 is an explanatory diagram illustrating a cancellation confirmation screen displayed on a printing apparatus according to a third embodiment. 第3の実施の形態におけるプリント方法の流れを示すフローチャートである。10 is a flowchart illustrating a flow of a printing method according to a third embodiment. 第4の実施の形態におけるプリント方法の流れを示すフローチャートである。10 is a flowchart illustrating a flow of a printing method according to a fourth embodiment.

符号の説明Explanation of symbols

1 プリンタ装置
2 用紙
3 搬送装置
4 パーソナルコンピュータ
5 インクカートリッジ
6 インクラック
7 ヘッドユニット
8 記録ヘッド
9 インク流路
11 操作部
12 ヘッド駆動部
13 メンテナンス部
14 メカコン部
15 制御部
B 一次元バーコード
G 中止確認画面
DESCRIPTION OF SYMBOLS 1 Printer apparatus 2 Paper 3 Conveyance apparatus 4 Personal computer 5 Ink cartridge 6 Incrack 7 Head unit 8 Recording head 9 Ink flow path 11 Operation part 12 Head drive part 13 Maintenance part 14 Mechanical control part 15 Control part B One-dimensional barcode G Stop confirmation screen

Claims (8)

プリントされる一次元バーコードの2方向のプリント解像度を独立設定可能な一次元バーコードのプリント方法において、
プリンタ装置でプリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定工程と、
前記プリント条件設定工程で設定された前記長さ方向における前記プリンタ装置のプリント解像度を取得する解像度取得工程と、
前記解像度取得工程で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定工程と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得工程と、
前記サイズ決定工程で決定された前記単位サイズ及び前記コード取得工程で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成工程と、
前記画像生成工程で生成された前記一次元バーコードのビットマップイメージに基づいて、前記プリンタ装置で前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント工程とを有することを特徴とするバーコードのプリント方法。
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.
請求項2記載のプリント方法において、
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合にはプリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリント方法。
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.
請求項2記載のプリント方法において、
前記一次元バーコードの長さ方向における前記プリンタ装置のプリント解像度を取得する装置解像度取得工程と、
前記装置解像度取得工程で取得された前記プリンタ装置のプリント解像度と前記解像度設定工程で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリンタ装置のプリント解像度の画素サイズの整数倍であるか否かを判別する判別工程と、
前記判別工程が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認工程と、
前記画像生成工程で生成された前記ビットマップイメージを、前記プリンタ装置のプリント解像度に変換する変換工程とを有し、
前記プリント工程は、前記確認工程でプリントを実行することが確認された場合に、前記変換工程で変換された前記ビットマップイメージに基づいて、前記プリンタ装置が、前記プリンタ装置のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリント方法。
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.
プリントされる一次元バーコードの2方向のプリント解像度を独立設定可能な一次元バーコードのプリンタ装置において、
プリントされる一次元バーコードの長さ方向を主走査方向若しくは副走査方向の何れかに設定するプリント条件設定部と、
前記プリント条件設定部で設定された前記長さ方向におけるプリント解像度を取得する解像度取得部と、
前記解像度取得部で取得されたプリント解像度に基づいて、前記プリントされる一次元バーコードの単位サイズを決定するサイズ決定部と、
前記プリントされる一次元バーコードのコード情報を取得するコード取得部と、
前記サイズ決定部で決定された前記単位サイズ及び前記コード取得部で取得された前記コード情報から、前記プリントされる一次元バーコードのビットマップイメージを生成する画像生成部と、
前記画像生成部で生成された前記一次元バーコードのビットマップイメージに基づいて、前記一次元バーコードを前記長さ方向に沿うようにプリントするプリント部とを有することを特徴とするバーコードのプリンタ装置。
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.
請求項6記載のプリンタ装置において、
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合にはプリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリンタ装置。
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.
請求項6記載のプリンタ装置において、
前記一次元バーコードの長さ方向における前記プリント部のプリント解像度を取得する装置解像度取得部と、
前記装置解像度取得部で取得された前記プリント部のプリント解像度と前記解像度設定部で設定された前記プリント解像度とを照合し、一致していない場合には前記単位サイズが前記プリント部のプリント解像度の画素サイズの整数倍であるか否かを判別する判別部と、
前記判別部が整数倍でないと判別した場合に、プリントを実行するか否かを確認する確認部と、
前記画像生成部で生成された前記ビットマップイメージを、前記プリント部のプリント解像度に変換する変換部とを有し、
前記プリント部は、前記確認部でプリントを実行することが確認された場合に、前記変換部で変換された前記ビットマップイメージに基づいて、当該プリント部のプリント解像度で前記一次元バーコードを前記プリント位置から前記長さ方向に沿うようにプリントすることを特徴とするバーコードのプリンタ装置。
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.
JP2007249113A 2007-09-26 2007-09-26 Printing method of bar code and printer apparatus Pending JP2009078449A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (4)

* Cited by examiner, † Cited by third party
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