JP6219732B2 - Printing apparatus and printing method - Google Patents

Printing apparatus and printing method Download PDF

Info

Publication number
JP6219732B2
JP6219732B2 JP2014008621A JP2014008621A JP6219732B2 JP 6219732 B2 JP6219732 B2 JP 6219732B2 JP 2014008621 A JP2014008621 A JP 2014008621A JP 2014008621 A JP2014008621 A JP 2014008621A JP 6219732 B2 JP6219732 B2 JP 6219732B2
Authority
JP
Japan
Prior art keywords
print
data
dot
medium
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.)
Expired - Fee Related
Application number
JP2014008621A
Other languages
Japanese (ja)
Other versions
JP2015136824A (en
Inventor
和希 品川
和希 品川
Original Assignee
株式会社沖データ
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 株式会社沖データ filed Critical 株式会社沖データ
Priority to JP2014008621A priority Critical patent/JP6219732B2/en
Publication of JP2015136824A publication Critical patent/JP2015136824A/en
Application granted granted Critical
Publication of JP6219732B2 publication Critical patent/JP6219732B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、印刷装置及び印刷方法に関するものである。   The present invention relates to a printing apparatus and a printing method.

従来、テープ、リボン等の長尺の媒体に文字の印刷を行った後に、印刷済みの媒体を切断機によって所定の長さで切断する機能を備える印刷装置では、媒体の切断予定箇所が切断刃の位置から所定ドット数分下流側に媒体を搬送した時に、印刷動作を中断させて更に数ドット分だけ媒体を搬送し、所定ドット数分と数ドット分とを併せた長さだけ媒体を戻してから切断し、次に、所定ドット数分から1ドット分を減じた長さだけ媒体を搬送した位置から印刷を再開させるようになっている(例えば、特許文献1参照。)。これにより、1ドット分の列だけ重複印刷を行うことができるので、媒体の切断後に文字を分断することなく印刷を再開することができる。   Conventionally, in a printing apparatus having a function of cutting a printed medium at a predetermined length by a cutting machine after printing characters on a long medium such as a tape or a ribbon, the planned cutting position of the medium is a cutting blade. When the medium is transported downstream by a predetermined number of dots from the position, the printing operation is interrupted, the medium is transported by several dots, and the medium is returned by a length that is a combination of the predetermined number of dots and the number of dots. Then, the printing is resumed from the position where the medium is conveyed by a length obtained by subtracting one dot from the predetermined number of dots (for example, see Patent Document 1). As a result, overlapping printing can be performed for only one row of dots, so that printing can be resumed without dividing characters after the medium is cut.

特開平5−294021号公報JP-A-5-294221

しかしながら、前記従来の印刷装置においては、キャラクタ(文字)、バーコード等を印刷する場合には、図2に示されるように、重複印刷が行われた部分の線が太くなったり、図3に示されるように、本来ならば空白の部分にドットが印刷されてしまったりする問題があった。   However, in the conventional printing apparatus, when printing characters (characters), barcodes, etc., as shown in FIG. As shown, there was a problem that dots were originally printed in a blank area.

図2は従来の印刷装置による重複印刷の問題を説明する第1の図、図3は従来の印刷装置による重複印刷の問題を説明する第2の図である。   FIG. 2 is a first diagram for explaining the problem of duplicate printing by a conventional printing apparatus, and FIG. 3 is a second diagram for explaining the problem of duplicate printing by a conventional printing apparatus.

本発明は、前記従来の印刷装置における問題点を解決して、重複印刷領域における印刷ドットのサイズを印刷データのパターン並びに前記印刷ドット及びその周辺の印刷ドットのドットパターンに基づいて補正することによって、印刷が行われた媒体を切断する場合であっても、ホワイトラインやブラックラインが発生することなく、高品質の印刷を行うことができる印刷装置及び印刷方法を提供することを目的とする。   The present invention solves the problems in the conventional printing apparatus, and corrects the size of the print dots in the overlapping print region based on the print data pattern and the dot pattern of the print dots and the surrounding print dots. An object of the present invention is to provide a printing apparatus and a printing method capable of performing high-quality printing without generating a white line or a black line even when a medium on which printing has been performed is cut.

そのために、本発明の印刷装置においては、媒体を搬送する媒体搬送装置と、前記媒体に印刷する印刷ヘッドと、前記媒体を切断する媒体切断機と、前記媒体搬送装置、印刷ヘッド及び媒体切断機の動作を制御する制御装置とを備える印刷装置であって、前記媒体切断機が媒体を切断する場合、該媒体の切断時に前記印刷ヘッドが印刷データの印刷開始位置と印刷終了位置との間で印刷を中断するときには、前記制御装置が重複印刷領域を設定し、前記媒体搬送装置が前記重複印刷領域分だけ前記媒体を逆方向に搬送した後、前記印刷ヘッドが印刷データの印刷を再開するとともに前記媒体搬送装置が前記媒体の搬送を再開して前記重複印刷領域に重複印刷を実施し、前記制御装置は、前記印刷データのタイプ並びに前記重複印刷領域における印刷ドット及び該印刷ドットの周囲の印刷ドットのドットパターンに基づいて、前記重複印刷領域における印刷ドットのサイズを縮小する補正を実施する。

Therefore, in the printing apparatus of the present invention, a medium conveying apparatus for conveying a medium, a print head for printing on the medium, a medium cutting machine for cutting the medium, the medium conveying apparatus, the print head, and a medium cutting machine. When the medium cutting machine cuts the medium, the print head moves between the print start position and the print end position of the print data when the medium is cut. When printing is interrupted, the control device sets an overlap print area, and after the medium transport device transports the medium in the reverse direction by the overlap print area, the print head resumes printing of print data. The medium conveyance device resumes conveyance of the medium and performs overlapping printing in the overlapping print area, and the control device sets the type of print data and the overlapping printing area. Based on the dot pattern around the printed dots of the print dots and the printing dots, to implement the correction to reduce the size of the printing dots in the overlapping printing area.

本発明によれば、印刷装置は、重複印刷領域における印刷ドットのサイズを印刷データのパターン並びに前記印刷ドット及びその周辺の印刷ドットのドットパターンに基づいて補正する。これにより、印刷が行われた媒体を切断する場合であっても、ホワイトラインやブラックラインが発生することなく、高品質の印刷を行うことができる。   According to the present invention, the printing apparatus corrects the size of the print dot in the overlapping print region based on the print data pattern and the dot pattern of the print dot and the surrounding print dots. Thereby, even when the printed medium is cut, high-quality printing can be performed without generating a white line or a black line.

本発明の実施の形態における印刷装置の概略構成図である。1 is a schematic configuration diagram of a printing apparatus according to an embodiment of the present invention. 従来の印刷装置による重複印刷の問題を説明する第1の図である。It is the 1st figure explaining the problem of the duplication printing by the conventional printing apparatus. 従来の印刷装置による重複印刷の問題を説明する第2の図である。It is a 2nd figure explaining the problem of the duplication printing by the conventional printing apparatus. 本発明の実施の形態における印刷装置の機能構成を示すブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of a printing apparatus according to an embodiment of the present invention. 本発明の実施の形態における印刷制御処理の前半の動作を説明するフローチャートである。6 is a flowchart for explaining an operation in the first half of a print control process in the embodiment of the present invention. 本発明の実施の形態における印刷制御処理の後半の動作を説明するフローチャートである。6 is a flowchart illustrating an operation in the latter half of the print control process according to the embodiment of the present invention. 本発明の実施の形態における受信データのデコード処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the decoding process of the received data in embodiment of this invention. 本発明の実施の形態におけるホワイトライン発生位置の算出方法を説明する図である。It is a figure explaining the calculation method of the white line generation | occurrence | production position in embodiment of this invention. 本発明の実施の形態におけるホワイトライン発生領域を説明する図である。It is a figure explaining the white line generation | occurrence | production area | region in embodiment of this invention. 本発明の実施の形態における重複印刷領域を説明する図である。It is a figure explaining the duplication printing field in an embodiment of the invention. 本発明の実施の形態における論理的な座標を説明する図である。It is a figure explaining the logical coordinate in embodiment of this invention. 本発明の実施の形態における重複印刷領域算出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the duplication printing area | region calculation process in embodiment of this invention. 本発明の実施の形態における重複印刷制御判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the duplication printing control determination process in embodiment of this invention. 本発明の実施の形態における重複印刷パターン生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the duplication print pattern production | generation process in embodiment of this invention. 本発明の実施の形態における印刷ドットデータ中の当該ドットとそれに隣接する隣接ドットの位置関係を説明する図である。It is a figure explaining the positional relationship of the said dot in the printing dot data in embodiment of this invention, and the adjacent dot adjacent to it. 本発明の実施の形態におけるキャラクタデータの重複印刷パターンを説明する図である。It is a figure explaining the duplication print pattern of the character data in embodiment of this invention. 本発明の実施の形態におけるキャラクタデータの重複印刷の結果を説明する図である。It is a figure explaining the result of the duplication printing of the character data in embodiment of this invention. 本発明の実施の形態におけるキャラクタ重複印刷パターン生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the character duplication print pattern production | generation process in embodiment of this invention. 本発明の実施の形態におけるその他イメージデータの重複印刷パターンを説明する図である。It is a figure explaining the duplication print pattern of the other image data in embodiment of this invention. 本発明の実施の形態におけるその他イメージデータの重複印刷の結果を説明する第1の図である。It is the 1st figure explaining the result of duplication printing of other image data in an embodiment of the invention. 本発明の実施の形態におけるその他イメージデータの重複印刷の結果を説明する第2の図である。It is the 2nd figure explaining the result of duplication printing of other image data in an embodiment of the invention. 本発明の実施の形態におけるその他イメージ重複印刷パターン生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the other image duplication print pattern production | generation process in embodiment of this invention. 本発明の実施の形態におけるバーコードデータの重複印刷パターンを説明する図である。It is a figure explaining the duplication printing pattern of barcode data in an embodiment of the invention. 本発明の実施の形態におけるバーコードデータの重複印刷の結果を説明する第1の図である。It is the 1st figure explaining the result of duplication printing of barcode data in an embodiment of the invention. 本発明の実施の形態におけるバーコードデータの重複印刷の結果を説明する第2の図である。It is the 2nd figure explaining the result of duplication printing of barcode data in an embodiment of the invention. 本発明の実施の形態におけるバーコード重複印刷パターン生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of barcode duplication print pattern generation processing in embodiment of this invention.

以下、本発明の実施の形態について図面を参照しながら詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は本発明の実施の形態における印刷装置の概略構成図、図4は本発明の実施の形態における印刷装置の機能構成を示すブロック図である。   FIG. 1 is a schematic configuration diagram of a printing apparatus according to an embodiment of the present invention, and FIG. 4 is a block diagram illustrating a functional configuration of the printing apparatus according to the embodiment of the present invention.

図1において、10は印刷装置であり、インクジェット方式、インパクト・ドット方式、電子写真方式、熱転写方式等の各種の画像形成方式を利用して、テープ、リボン等の帯状の長尺の媒体21に印刷を行うことが可能な装置であれば、いかなる種類の印刷装置であってもよく、さらに、モノクロ印刷装置であってもよいし、カラー印刷装置であってもよい。なお、本実施の形態においては、前記印刷装置10が感熱方式のモノクロ印刷装置である場合について説明する。   In FIG. 1, reference numeral 10 denotes a printing apparatus, which uses various image forming methods such as an ink jet method, an impact dot method, an electrophotographic method, a thermal transfer method, and the like on a strip-like long medium 21 such as a tape or a ribbon. Any type of printing device may be used as long as it can perform printing, and it may be a monochrome printing device or a color printing device. In the present embodiment, the case where the printing apparatus 10 is a heat-sensitive monochrome printing apparatus will be described.

前記媒体21は、図1に示されるように、あらかじめ芯(しん)21bの周囲に巻付けられたロール21aの状態で用意され、前記芯21bを中心にして回転可能となるように、印刷装置10に装着される。そして、媒体21は、プラテンローラ22によって搬送されることにより、ロール12aから繰り出される。本実施の形態においては、前記媒体21が長尺の感熱紙であるものとして説明する。   As shown in FIG. 1, the medium 21 is prepared in a state of a roll 21 a wound around a core 21 b in advance, and can be rotated around the core 21 b. 10 is attached. Then, the medium 21 is fed from the roll 12 a by being conveyed by the platen roller 22. In the present embodiment, the medium 21 will be described as a long thermal paper.

また、前記印刷装置10には、前記媒体21の搬送路に沿って、媒体検出器としての媒体センサ19、印刷部としての印刷ヘッド11、媒体搬送装置としてのプラテンローラ22、及び、媒体切断機としてのカッタ12が配設されている。   The printing apparatus 10 includes a medium sensor 19 as a medium detector, a print head 11 as a printing unit, a platen roller 22 as a medium conveyance apparatus, and a medium cutting machine along the conveyance path of the medium 21. A cutter 12 is provided.

前記媒体センサ19は、媒体21の有無を検出するとともに、ブラックマーク又は用紙間ギャップを検出するセンサである。そして、前記印刷ヘッド11は、媒体21に印刷を行うヘッドであり、例えば、媒体21側の面には、電圧が印加されることによって発熱する発熱素子が媒体21の搬送方向に対して直交する方向(媒体21の幅方向)に複数個並べて配設され、各発熱素子が選択的に発熱することにより、感熱紙である媒体21に所望の印刷パターンの印刷を行う。   The medium sensor 19 is a sensor that detects the presence or absence of the medium 21 and also detects a black mark or a gap between sheets. The print head 11 is a head for printing on the medium 21. For example, on the surface on the medium 21 side, a heating element that generates heat when a voltage is applied is orthogonal to the conveyance direction of the medium 21. A plurality of elements are arranged in the direction (the width direction of the medium 21), and each heating element selectively generates heat, thereby printing a desired print pattern on the medium 21 that is thermal paper.

また、前記プラテンローラ22は、媒体21の搬送路を挟んで印刷ヘッド11に対向するように配設され、前記媒体21を印刷ヘッド11の媒体21側の面に押し付ける。さらに、前記プラテンローラ22は、駆動源としての媒体搬送モータ13によって駆動されて正逆方向に回転し、前記媒体21を前後方向(図1における左右方向)に所望の長さだけ搬送する。そして、前記カッタ12は、図示されない駆動源によって駆動される可動刃であって媒体21の幅方向に延在する可動刃を備え、該可動刃が作動することによって、前記媒体21を所望の長さで切断する。   The platen roller 22 is disposed so as to face the print head 11 across the conveyance path of the medium 21, and presses the medium 21 against the surface of the print head 11 on the medium 21 side. Further, the platen roller 22 is driven by a medium transport motor 13 as a drive source and rotates in the forward and reverse directions, so that the medium 21 is transported by a desired length in the front-rear direction (left-right direction in FIG. 1). The cutter 12 includes a movable blade that is driven by a drive source (not shown) and extends in the width direction of the medium 21, and the movable blade operates to move the medium 21 to a desired length. Cut off.

さらに、前記印刷装置10は、CPU、MPU等の演算手段、磁気ディスク、半導体メモリ等の記憶手段、通信インターフェイス等を備え、各部の動作を制御するための図示されない制御装置を備える。   Further, the printing apparatus 10 includes a calculation unit such as a CPU and an MPU, a storage unit such as a magnetic disk and a semiconductor memory, a communication interface, and the like, and includes a control unit (not shown) for controlling the operation of each unit.

そして、該制御装置は、機能の観点から、図4に示されるように、データ受信部15、主制御部16、データ記録部17、及び、機構制御部14を有する。   And from a functional viewpoint, this control apparatus has the data receiving part 15, the main control part 16, the data recording part 17, and the mechanism control part 14, as FIG. 4 shows.

前記データ受信部15は、図示されないIEEE1284回線、RS−232c回線、USB回線等の通信回線を介して上位装置から送信された制御コマンド、印刷コマンド等を含むデータを受信するための通信制御を実施する。そして、前記データ受信部15は、上位装置からデ−タを受信後、受信したデータを前記データ記録部17が備える図示されない受信バッファに格納する。   The data receiving unit 15 performs communication control for receiving data including a control command, a print command, and the like transmitted from a host device via a communication line such as an IEEE 1284 line, an RS-232c line, or a USB line (not shown). To do. Then, after receiving data from the host device, the data receiving unit 15 stores the received data in a reception buffer (not shown) provided in the data recording unit 17.

また、前記主制御部16は、前記データ受信部15が受信した制御コマンド、印刷コマンド等を含むデータをデコードすることによって、印刷データか否かの区別、印刷データの種類、印刷データサイズ等の情報を取得する。そして、受信したデータが印刷データの場合、コマンド情報に基づいて印刷ヘッド11に合わせたドットパターンに展開したビットマップデータ(以降、「印刷ドットデータ」と称する。)を生成し、印刷を実施するために、図示されない印刷バッファに格納し、印刷起動をかける。また、受信したデータが、印刷装置10の設定変更を要する印刷速度設定、印刷濃度設定等のコマンドである場合、前記主制御部16は、印刷装置10の設定変更を行う。さらに、前記主制御部16は、データ記録部17にデータの記録及び読み込みを行い、前記機構制御部14への指示等を実施する。なお、前記データ記録部17に格納された印刷ドットデータがある場合、前記主制御部16は、機構制御部14へ印刷指示を行う。   Further, the main control unit 16 decodes data including the control command, the print command, etc. received by the data receiving unit 15 to distinguish whether it is print data, the type of print data, the print data size, etc. Get information. If the received data is print data, bitmap data (hereinafter referred to as “print dot data”) developed into a dot pattern adapted to the print head 11 is generated based on the command information, and printing is performed. Therefore, the data is stored in a print buffer (not shown) and printing is started. When the received data is a command such as a print speed setting or a print density setting that requires a setting change of the printing apparatus 10, the main control unit 16 changes the setting of the printing apparatus 10. Further, the main control unit 16 records and reads data in the data recording unit 17 and executes an instruction to the mechanism control unit 14. When there is print dot data stored in the data recording unit 17, the main control unit 16 issues a print instruction to the mechanism control unit 14.

また、前記主制御部16は、重複印刷パターン生成部16a、重複印刷領域算出部16b及び重複印刷制御判定部16cを備える。該重複印刷制御判定部16cは、カッタ12によって媒体21を切断するときに、次の印刷ドットデータのドットパターンが印刷ヘッド11の位置を跨(また)いでいるか否かに基づいて、ホワイトラインの発生するドットパターンであるか否かを判定する。そして、前記重複印刷領域算出部16bは、重複印刷制御判定部16cがホワイトラインが発生するドットパターンであるか否かを判定するために必要なホワイトライン発生位置等の情報を算出する。また、前記重複印刷パターン生成部16aは、重複印刷制御判定部16cが 重複印刷を実施すると判断した場合に、重複印刷を実施するドットパターンを生成する。そして、前記重複印刷領域算出部16bは、ホワイトライン発生位置から所定距離分を重複印刷領域とし、重複印刷開始位置及び重複印刷終了位置(ホワイトライン発生位置) を算出する。また、前記重複印刷パターン生成部16aは、印刷データの種類並びに印刷ドット及び該印刷ドットの周囲の印刷ドットのドットパターンに基づいて、重複印刷の印刷ドットのサイズを縮小する補正をかけ、重複印刷するドットパターンを生成する。   The main control unit 16 includes an overlapping print pattern generation unit 16a, an overlapping printing area calculation unit 16b, and an overlapping printing control determination unit 16c. The duplication print control determination unit 16c determines whether the white line is based on whether the dot pattern of the next print dot data straddles the position of the print head 11 when the medium 21 is cut by the cutter 12. It is determined whether or not the dot pattern is generated. Then, the overlap print area calculation unit 16b calculates information such as a white line occurrence position necessary for the overlap print control determination unit 16c to determine whether or not the dot pattern has a white line. Further, the duplicate print pattern generation unit 16a generates a dot pattern for performing duplicate printing when the duplicate print control determination unit 16c determines that duplicate print is to be performed. Then, the overlapping print area calculation unit 16b calculates an overlap printing start position and an overlap printing end position (white line occurrence position) by setting a predetermined distance from the white line generation position as an overlap printing area. In addition, the duplicate print pattern generation unit 16a applies a correction to reduce the size of the print dot of the duplicate print based on the type of print data, the dot pattern of the print dot and the print dot around the print dot, and the duplicate print. A dot pattern to be generated is generated.

さらに、前記データ記録部17は、印刷装置10の各種設定を保存するとともに、一時的な印刷データ等を格納する機能を発揮する。そして、前記データ記録部17は、第1分割印刷ドットデータ記録部17a、第2分割印刷ドットデータ記録部17b及び重複印刷補正領域記録部17cを備える。前記重複印刷制御判定部16cが重複印刷を実施すると判定した場合、前記主制御部16が受信データをデコードして生成した印刷ドットデータのうち、媒体21を切断する前に印刷される印刷ドットデータが第1分割印刷ドットデータ記録部17aに記録され、媒体21を切断した後に印刷される印刷ドットデータが第2分割印刷ドットデータ記録部17bに記録される。また、重複印刷開始位置、重複印刷終了位置等の重複印刷領域に関するデータは、重複印刷補正領域記録部17cに記録される。   Further, the data recording unit 17 has a function of storing various settings of the printing apparatus 10 and storing temporary print data and the like. The data recording unit 17 includes a first divided printing dot data recording unit 17a, a second divided printing dot data recording unit 17b, and an overlapping printing correction area recording unit 17c. Print dot data printed before cutting the medium 21 among the print dot data generated by decoding the received data by the main control unit 16 when the overlap print control determination unit 16c determines to perform overlap printing Is recorded in the first divided print dot data recording unit 17a, and print dot data to be printed after the medium 21 is cut is recorded in the second divided print dot data recording unit 17b. Further, data related to the overlapping print area such as the overlapping printing start position and the overlapping printing end position is recorded in the overlapping print correction area recording unit 17c.

さらに、前記機構制御部14は、印刷ヘッド駆動制御部14a、カッタ駆動制御部14b及び媒体搬送モータ駆動制御部14cを備える。前記印刷ヘッド駆動制御部14aは、印刷ヘッド11の各発熱素子に印加される電圧を制御する。また、前記カッタ駆動制御部14bは、カッタ12の動作を制御し、可動刃を作動させる。さらに、前記媒体搬送モータ駆動制御部14cは、前記媒体搬送モータ13の動作を制御し、媒体21の搬送を制御する。   Further, the mechanism control unit 14 includes a print head drive control unit 14a, a cutter drive control unit 14b, and a medium transport motor drive control unit 14c. The print head drive control unit 14 a controls the voltage applied to each heating element of the print head 11. The cutter drive control unit 14b controls the operation of the cutter 12 and operates the movable blade. Further, the medium transport motor drive control unit 14 c controls the operation of the medium transport motor 13 and controls the transport of the medium 21.

なお、前記主制御部16に接続された検出回路18は、媒体21のロール21aが装着されている否か、印刷装置10の図示されないカバーがオープンであるか否か等を検出するとともに、媒体センサ19の出力に基づいて、媒体21の有無、及び、ブラックマーク又は用紙間ギャップを検出する。   The detection circuit 18 connected to the main control unit 16 detects whether or not the roll 21a of the medium 21 is mounted, whether or not a cover (not shown) of the printing apparatus 10 is open, and the like. Based on the output of the sensor 19, the presence / absence of the medium 21 and the black mark or gap between sheets are detected.

そして、本実施の形態における印刷装置10は、カッタ12が媒体21を切断する場合、媒体21の切断時に印刷ヘッド11が印刷データの印刷開始位置と印刷終了位置との間で印刷を中断するときには、主制御部16が重複印刷領域を設定し、プラテンローラ22が重複印刷領域分だけ媒体21を逆方向に搬送した後、印刷ヘッド11が印刷データの印刷を再開するとともにプラテンローラ22が媒体21の搬送を再開して重複印刷領域に重複印刷を実施し、主制御部16は、印刷データのタイプ並びに重複印刷領域における印刷ドット及び当該印刷ドットの周囲の印刷ドットのドットパターンに基づいて、重複印刷領域における印刷ドットのサイズを補正する。したがって、印刷が行われた媒体21を切断する場合であっても、ホワイトラインやブラックラインが発生することなく、高品質の印刷を行うことができる。   In the printing apparatus 10 according to the present embodiment, when the cutter 12 cuts the medium 21, the print head 11 interrupts printing between the print start position and the print end position of the print data when the medium 21 is cut. After the main control unit 16 sets the overlapping printing area and the platen roller 22 transports the medium 21 in the reverse direction by the overlapping printing area, the print head 11 resumes printing the print data and the platen roller 22 moves to the medium 21. The main control unit 16 performs duplication based on the print data type and the dot pattern of the print dots in the overlap print area and the print dots around the print dot. The print dot size in the print area is corrected. Therefore, even when the printed medium 21 is cut, high-quality printing can be performed without generating white lines or black lines.

次に、前記構成の印刷装置10の動作について説明する。まず、主制御部16が実施する印刷制御処理について説明する。なお、該印刷制御処理は、前半と後半とに区別することができるので、最初に、印刷制御処理の前半について説明する。   Next, the operation of the printing apparatus 10 having the above configuration will be described. First, a print control process performed by the main control unit 16 will be described. Since the print control process can be distinguished into the first half and the second half, first, the first half of the print control process will be described.

図5は本発明の実施の形態における印刷制御処理の前半の動作を説明するフローチャートである。   FIG. 5 is a flowchart for explaining the operation of the first half of the print control process according to the embodiment of the present invention.

印刷制御処理の前半が開始されると、まず、ステップS1で、主制御部16は、受信データがあるか否かを判定する。具体的には、データ受信部15が受信したデータがデータ記録部17の受信バッファにあるか否かを判定する。   When the first half of the print control process is started, first, in step S1, the main control unit 16 determines whether there is received data. Specifically, it is determined whether or not the data received by the data receiving unit 15 is in the reception buffer of the data recording unit 17.

そして、受信データがある場合、該受信データが印刷装置10の設定変更を要する印刷速度設定、印刷濃度設定等のコマンドであるか、バーコード、キャラクタ(文字)、その他イメージ等の印刷データであるか等を判定してデコードするために、ステップS2で、主制御部16は、受信データのデコード処理を実施する。データ受信部15が受信したデータが速度変更等の設定を変更するようなデータであった場合、主制御部16は印刷装置10の設定の変更を実施し、受信したデータがバーコード、キャラクタ、その他イメージ等の印刷データである場合、主制御部16は、印刷データの種類や印刷方向など印刷ドットデータ作成のための情報を取得する。   If there is received data, the received data is a command such as a print speed setting and a print density setting that require a setting change of the printing apparatus 10, or is print data such as a barcode, a character (character), and other images. In order to determine and decode such, the main control unit 16 performs a decoding process on the received data in step S2. When the data received by the data receiving unit 15 is data that changes a setting such as a speed change, the main control unit 16 changes the setting of the printing apparatus 10, and the received data is a barcode, character, In the case of print data such as other images, the main control unit 16 acquires information for creating print dot data such as the type and print direction of the print data.

なお、受信データがない場合、ステップS1で、主制御部16は、受信データがあるか否かの判定を繰り返す。   If there is no received data, in step S1, the main control unit 16 repeats the determination of whether there is received data.

続いて、ステップS3で、主制御部16は、印刷データがあるか否かを判定する。具体的には、デコードしたデータが印刷データであるか否かを判定する。そして、印刷データがない場合、ステップS1で、主制御部16は、受信データがあるか否かの判定を繰り返す。   In step S3, the main control unit 16 determines whether there is print data. Specifically, it is determined whether or not the decoded data is print data. If there is no print data, in step S1, the main control unit 16 repeats the determination of whether there is received data.

また、印刷データがある場合、ステップS4で、主制御部16は、重複印刷制御判定処理を実施する。具体的には、重複印刷制御判定部16cが、前記印刷データが媒体21を切断するときに印刷ヘッド11の位置であるヘッド位置を跨ぐデータであって、ホワイトラインが発生する可能性があるデータであるか否かを判定し、重複印刷制御を実施するか否かを判定する。そして、重複印刷制御を実施する場合にはフラグをONにし、重複印刷制御を実施しない場合にはフラグをOFFにする。   If there is print data, the main control unit 16 performs a duplicate print control determination process in step S4. Specifically, the overlapping print control determination unit 16c is data that crosses the head position that is the position of the print head 11 when the print data cuts the medium 21, and data that may cause a white line. It is determined whether or not duplication printing control is to be performed. Then, the flag is turned on when the duplicate print control is performed, and the flag is turned off when the duplicate print control is not performed.

続いて、ステップS5で、主制御部16は、印刷データに基づいて印刷ドットデータを生成する。   Subsequently, in step S5, the main control unit 16 generates print dot data based on the print data.

続いて、ステップS6で、主制御部16は、重複印刷制御がONであるか否かを判定する。具体的には、重複印刷制御判定処理においてON又はOFFにされたフラグに基づいて、重複印刷制御を実施するか否かを判定する。   Subsequently, in step S6, the main control unit 16 determines whether or not the duplicate print control is ON. Specifically, it is determined whether or not the duplicate print control is to be performed based on the flag turned ON or OFF in the duplicate print control determination process.

そして、重複印刷制御がONでない場合、すなわち、フラグがOFFであって重複印刷制御を実施しないと判定された場合、ステップS7で、主制御部16は、印刷ドットデータの分割を実施しない通常の印刷制御を実施するために、印刷ドットデータをデータ記録部17の図示されない印刷バッファへ格納し、ステップS11で、印刷起動をかけて、印刷制御処理の前半を終了する。   If the duplicate print control is not ON, that is, if it is determined that the flag is OFF and the duplicate print control is not performed, in step S7, the main control unit 16 does not perform the division of the print dot data. In order to perform the print control, the print dot data is stored in a print buffer (not shown) of the data recording unit 17, and in step S11, the print is started and the first half of the print control process is completed.

また、重複印刷制御がONである場合、すなわち、フラグがONであって重複印刷制御を実施すると判定された場合、ステップS8で、主制御部16は、重複印刷パターン生成処理を実施する。印刷ドットデータが、媒体21を切断するときに印刷ヘッド11の位置であるヘッド位置を跨ぐデータである場合、印刷を一時中断して媒体21を切断するために位置ズレが発生し、位置ズレが発生した状態で印刷を再開するとホワイトラインが発生してしまう。そこで、印刷データが媒体21を切断するときに印刷ヘッド11の位置であるヘッド位置を跨ぐデータであると判定された場合、重複印刷を実施するために、主制御部16は、重複印刷パターン生成処理を実施する。重複印刷パターン生成処理を実施することによって、印刷ドットデータは、媒体21の切断前に印刷する部分のデータと媒体21の切断後に印刷する部分のデータとに分割され、媒体21の切断後に印刷する部分のデータの重複印刷を行う領域に対しての印刷パターンが生成される。   If the duplicate print control is ON, that is, if it is determined that the flag is ON and the duplicate print control is to be performed, the main control unit 16 performs the duplicate print pattern generation process in step S8. If the print dot data is data that straddles the head position, which is the position of the print head 11 when cutting the medium 21, a positional shift occurs because the printing is temporarily interrupted and the medium 21 is cut. If printing is resumed in a state where it has occurred, a white line will occur. Therefore, when it is determined that the print data is data that crosses the head position that is the position of the print head 11 when the medium 21 is cut, the main control unit 16 generates a duplicate print pattern in order to perform duplicate printing. Implement the process. By executing the duplicate print pattern generation process, the print dot data is divided into a portion of data to be printed before cutting the medium 21 and a portion of data to be printed after the medium 21 is cut, and the print dot data is printed after the medium 21 is cut. A print pattern is generated for an area where the partial data is printed in duplicate.

続いて、ステップS9で、主制御部16は、分割印刷データ(切断前)を印刷バッファに格納する。具体的には、分割された印刷ドットデータであって媒体21の切断前に印刷する部分のデータをデータ記録部17の第1分割印刷ドットデータ記録部17aに記録する。   In step S9, the main control unit 16 stores the divided print data (before cutting) in the print buffer. Specifically, the data of the divided print dot data to be printed before cutting the medium 21 is recorded in the first divided print dot data recording unit 17 a of the data recording unit 17.

また、ステップS10で、主制御部16は、分割印刷データ(切断後)を印刷バッファに格納する。具体的には、分割された印刷ドットデータであって媒体21の切断後に印刷する部分のデータをデータ記録部17の第2分割印刷ドットデータ記録部17bに記録する。   In step S10, the main control unit 16 stores the divided print data (after cutting) in the print buffer. Specifically, the data of the divided print dot data that is to be printed after the medium 21 is cut is recorded in the second divided print dot data recording unit 17 b of the data recording unit 17.

そして、ステップS11で、主制御部16は、印刷起動をかけて、印刷制御処理の前半を終了する。   In step S11, the main control unit 16 activates printing and ends the first half of the print control process.

次に、フローチャートについて説明する。
ステップS1 受信データがあるか否かを判定する。受信データがある場合はステップ2に進み、受信データがない場合は判定を繰り返し行う。
ステップS2 受信データのデコード処理を実施する。
ステップS3 印刷データがあるか否かを判定する。印刷データがある場合はステップS4に進み、印刷データがない場合はステップS1に戻る。
ステップS4 重複印刷制御判定処理を実施する。
ステップS5 印刷ドットデータを生成する。
ステップS6 重複印刷制御がONであるか否かを判定する。重複印刷制御がONである場合はステップS8に進み、重複印刷制御がONでない場合はステップS7に進む。
ステップS7 印刷ドットデータを印刷バッファへ格納する。
ステップS8 重複印刷パターン生成処理を実施する。
ステップS9 分割印刷データ(切断前)を印刷バッファに格納する。
ステップS10 分割印刷データ(切断後)を印刷バッファに格納する。
ステップS11 印刷起動をかけて、印刷制御処理の前半を終了する。
Next, a flowchart will be described.
Step S1: It is determined whether there is received data. If there is received data, the process proceeds to step 2. If there is no received data, the determination is repeated.
Step S2: The received data is decoded.
Step S3: It is determined whether there is print data. If there is print data, the process proceeds to step S4, and if there is no print data, the process returns to step S1.
Step S4: Duplicate print control determination processing is performed.
Step S5 Print dot data is generated.
Step S6: It is determined whether or not duplicate printing control is ON. If the duplicate print control is ON, the process proceeds to step S8, and if the duplicate print control is not ON, the process proceeds to step S7.
Step S7: The print dot data is stored in the print buffer.
Step S8: A duplicate print pattern generation process is performed.
Step S9: The divided print data (before cutting) is stored in the print buffer.
Step S10: The divided print data (after cutting) is stored in the print buffer.
Step S11: Printing is started and the first half of the print control process is terminated.

次に、印刷制御処理の後半について説明する。印刷制御処理の後半は、印刷ドットデータが印刷バッファに格納され、印刷起動がかけられた後に実施される制御であって、印刷バッファに格納された印刷ドットデータを1ラインずつ媒体21に印刷し、該媒体21を所定の位置で切断する動作を制御するための処理である。なお、前記ラインは、媒体21の搬送方向に対して直交する方向(媒体21の幅方向)に延在する印刷ドットのラインであって、印刷ヘッド11に配設された発熱素子のラインに対応する。   Next, the second half of the print control process will be described. The second half of the print control process is control executed after print dot data is stored in the print buffer and printing is started. The print dot data stored in the print buffer is printed on the medium 21 line by line. This is a process for controlling the operation of cutting the medium 21 at a predetermined position. The lines are lines of printing dots extending in a direction perpendicular to the conveyance direction of the medium 21 (width direction of the medium 21), and correspond to lines of heating elements provided in the print head 11. To do.

図6は本発明の実施の形態における印刷制御処理の後半の動作を説明するフローチャートである。   FIG. 6 is a flowchart for explaining the latter half of the print control process according to the embodiment of the present invention.

印刷制御処理の後半が開始されると、まず、ステップS21で、主制御部16は、印刷バッファにデータがあるか否かを判定する。具体的には、印刷ドットデータがデータ記録部17の印刷バッファにあるか否かを判定する。   When the second half of the print control process is started, first, in step S21, the main control unit 16 determines whether or not there is data in the print buffer. Specifically, it is determined whether or not the print dot data is in the print buffer of the data recording unit 17.

そして、データがある場合、主制御部16は、ステップS22で、1ライン分のデータを取得し、ステップS23で、1ライン分の印刷を実施させる。具体的には、印刷ヘッド11の1ライン分に対応する印刷ドットデータを印刷バッファから取得し、印刷ヘッド駆動制御部14aに指令して印刷ヘッド11を作動させ、1ライン分に対応する印刷ドットデータを媒体21に印刷させる。   If there is data, the main control unit 16 acquires data for one line in step S22, and performs printing for one line in step S23. Specifically, print dot data corresponding to one line of the print head 11 is acquired from the print buffer, the print head 11 is operated by instructing the print head drive control unit 14a, and print dots corresponding to one line are printed. Data is printed on the medium 21.

なお、印刷バッファにデータがない場合、ステップS21で、主制御部16は、印刷バッファにデータがあるか否かの判定を繰り返す。   If there is no data in the print buffer, the main control unit 16 repeats the determination of whether there is data in the print buffer in step S21.

続いて、ステップS24で、主制御部16は、最終ラインのデータであるか否かを判定する。具体的には、データを取得して印刷を実施させた1ラインが最終ラインであるか否かを判定する。そして、最終ラインのデータでない場合、ステップS22で、主制御部16は、再度、1ライン分のデータを取得し、以降の動作を繰り返す。   Subsequently, in step S24, the main control unit 16 determines whether the data is the final line data. Specifically, it is determined whether or not one line on which data is acquired and printed is the final line. If it is not the data of the last line, in step S22, the main control unit 16 obtains data for one line again and repeats the subsequent operations.

また、最終ラインのデータである場合、ステップS25で、主制御部16は、重複印刷制御がONであるか否かを判定する。具体的には、重複印刷制御判定処理においてON又はOFFにされたフラグに基づいて、重複印刷制御を実施するか否かを判定する。   If it is the data of the last line, in step S25, the main control unit 16 determines whether or not duplicate printing control is ON. Specifically, it is determined whether or not the duplicate print control is to be performed based on the flag turned ON or OFF in the duplicate print control determination process.

そして、重複印刷制御がONでない場合、すなわち、フラグがOFFであって重複印刷制御を実施しないと判定された場合、主制御部16は、ステップS26で、カッタ位置まで媒体21を搬送させ、ステップS27で、該媒体21を切断させる。具体的には、媒体搬送モータ駆動制御部14cに指令して媒体搬送モータ13を作動させ、媒体21における切断予定位置がカッタ12の可動刃に対応する位置としてのカッタ位置に到達するまで媒体21を搬送させる。そして、カッタ駆動制御部14bに指令してカッタ12の可動刃を作動させ、前記媒体21の切断予定位置を切断させる。   If the duplicate print control is not ON, that is, if it is determined that the flag is OFF and the duplicate print control is not to be performed, the main control unit 16 transports the medium 21 to the cutter position in step S26, and the step In S27, the medium 21 is cut. Specifically, the medium transport motor drive control unit 14 c is commanded to operate the medium transport motor 13, and the medium 21 is reached until the planned cutting position in the medium 21 reaches the cutter position corresponding to the movable blade of the cutter 12. Transport. Then, the cutter drive control unit 14b is instructed to operate the movable blade of the cutter 12, and the cutting position of the medium 21 is cut.

続いて、ステップS28で、主制御部16は、印刷開始位置まで媒体21を搬送させる。具体的には、媒体搬送モータ駆動制御部14cに指令して媒体搬送モータ13を作動させ、媒体21における印刷開始位置が印刷ヘッド11が印刷を行う位置としてのヘッド位置に到達するまで媒体21を搬送させる。   Subsequently, in step S28, the main control unit 16 conveys the medium 21 to the print start position. Specifically, the medium transport motor drive control unit 14c is commanded to operate the medium transport motor 13, and the medium 21 is moved until the print start position on the medium 21 reaches the head position as the position where the print head 11 performs printing. Transport.

最後に、ステップS32で、主制御部16は、次の印刷ドットデータがあるか否かを判定する。すなわち、次の印刷ドットデータが印刷バッファにあるか否かを判定する。そして、主制御部16は、次の印刷ドットデータがない場合には印刷制御処理の後半を終了し、次の印刷ドットデータがある場合には、ステップS22で、再度、1ライン分のデータを取得し、以降の動作を繰り返す。   Finally, in step S32, the main control unit 16 determines whether there is next print dot data. That is, it is determined whether or not the next print dot data is in the print buffer. Then, the main control unit 16 ends the second half of the print control process when there is no next print dot data. If there is the next print dot data, the main control unit 16 again outputs the data for one line in step S22. Acquire and repeat the subsequent operations.

なお、重複印刷制御がONであるか否かを判定してONである場合、すなわち、フラグがONであって重複印刷制御を実施すると判定された場合、ステップS29で、主制御部16は、分割印刷データ(切断前)を印刷させる。具体的には、媒体搬送モータ駆動制御部14cに指令して媒体搬送モータ13を作動させ、媒体21における切断予定位置がカッタ12の可動刃に対応する位置としてのカッタ位置に到達するまで媒体21を搬送させる際に、分割された印刷ドットデータであって媒体21の切断前に印刷する部分のデータをデータ記録部17の第1分割印刷ドットデータ記録部17aから取得し、印刷ヘッド駆動制御部14aに指令して印刷ヘッド11を作動させ、分割された印刷ドットデータを媒体21に印刷させる。   If it is determined whether or not the duplicate printing control is ON and is ON, that is, if it is determined that the flag is ON and the duplicate printing control is to be performed, in step S29, the main control unit 16 Print divided print data (before cutting). Specifically, the medium transport motor drive control unit 14 c is commanded to operate the medium transport motor 13, and the medium 21 is reached until the planned cutting position in the medium 21 reaches the cutter position corresponding to the movable blade of the cutter 12. Is acquired from the first divided print dot data recording unit 17a of the data recording unit 17 to obtain the print dot data that has been divided and to be printed before cutting the medium 21, and the print head drive control unit The print head 11 is actuated by commanding 14 a to print the divided print dot data on the medium 21.

続いて、ステップS30で、主制御部16は、媒体21を切断させる。具体的には、カッタ駆動制御部14bに指令してカッタ12の可動刃を作動させ、前記媒体21の切断予定位置を切断させる。   Subsequently, in step S30, the main control unit 16 cuts the medium 21. Specifically, the cutter drive control unit 14b is instructed to operate the movable blade of the cutter 12, and the cutting position of the medium 21 is cut.

続いて、ステップS31で、主制御部16は、重複印刷領域分、媒体21を逆方向に搬送させる。具体的には、媒体搬送モータ駆動制御部14cに指令して媒体搬送モータ13を作動させ、媒体21において重複印刷領域に相当する距離だけ媒体21を逆方向に搬送させる。   Subsequently, in step S31, the main control unit 16 causes the medium 21 to be conveyed in the reverse direction by the overlapping print area. Specifically, the medium transport motor drive control unit 14c is instructed to operate the medium transport motor 13, and the medium 21 is transported in the reverse direction by a distance corresponding to the overlapping print region in the medium 21.

最後に、ステップS32で、主制御部16は、次の印刷ドットデータがあるか否かを判定する。すなわち、次の印刷ドットデータが印刷バッファにあるか否かを判定する。分割印刷データ(切断前)を印刷させた場合には、分割された印刷ドットデータであって媒体21の切断後に印刷する部分のデータがデータ記録部17の第2分割印刷ドットデータ記録部17bに残っているので、主制御部16は、次の印刷ドットデータがある、と判定する。そして、主制御部16は、分割された印刷ドットデータであって媒体21の切断後に印刷する部分のデータを取得して印刷させる。   Finally, in step S32, the main control unit 16 determines whether there is next print dot data. That is, it is determined whether or not the next print dot data is in the print buffer. When the divided print data (before cutting) is printed, the data of the divided print dot data to be printed after cutting the medium 21 is stored in the second divided print dot data recording unit 17b of the data recording unit 17. Since it remains, the main control unit 16 determines that there is next print dot data. Then, the main control unit 16 acquires and prints the divided print dot data, which is data to be printed after the medium 21 is cut.

次に、フローチャートについて説明する。
ステップS21 印刷バッファにデータがあるか否かを判定する。印刷バッファにデータがある場合はステップS22に進み、印刷バッファにデータがない場合は判定を繰り返し行う。
ステップS22 1ライン分のデータを取得する。
ステップS23 1ライン分の印刷を実施させる。
ステップS24 最終ラインのデータであるか否かを判定する。最終ラインのデータである場合はステップS25に進み、最終ラインのデータでない場合はステップS22に戻る。
ステップS25 重複印刷制御がONであるか否かを判定する。重複印刷制御がONである場合はステップ29に進み、重複印刷制御がONでない場合はステップS26に進む。
ステップS26 カッタ位置まで媒体21を搬送させる。
ステップS27 媒体21を切断させる。
ステップS28 印刷開始位置まで媒体21を搬送させる。
ステップS29 分割印刷データ(切断前)を印刷させる。
ステップS30 媒体21を切断させる。
ステップS31 重複印刷領域分、媒体21を逆方向に搬送させる。
ステップS32 次の印刷ドットデータがあるか否かを判定する。次の印刷ドットデータがある場合はステップS22に戻り、次の印刷ドットデータがない場合は印刷制御処理の後半を終了する。
Next, a flowchart will be described.
Step S21: It is determined whether or not there is data in the print buffer. If there is data in the print buffer, the process proceeds to step S22. If there is no data in the print buffer, the determination is repeated.
Step S22: Data for one line is acquired.
Step S23: One line is printed.
Step S24: It is determined whether the data is the last line. If it is the data of the last line, the process proceeds to step S25, and if it is not the data of the last line, the process returns to step S22.
Step S25: It is determined whether or not duplicate printing control is ON. If the duplicate print control is ON, the process proceeds to step 29. If the duplicate print control is not ON, the process proceeds to step S26.
Step S26: The medium 21 is conveyed to the cutter position.
Step S27 The medium 21 is cut.
Step S28: The medium 21 is conveyed to the printing start position.
Step S29 The divided print data (before cutting) is printed.
Step S30: The medium 21 is cut.
Step S31 The medium 21 is conveyed in the reverse direction by the overlapping print area.
Step S32: It is determined whether there is next print dot data. If there is next print dot data, the process returns to step S22. If there is no next print dot data, the second half of the print control process is terminated.

次に、受信データのデコード処理のサブルーチンについて説明する。   Next, a reception data decoding process subroutine will be described.

図7は本発明の実施の形態における受信データのデコード処理のサブルーチンを示すフローチャートである。   FIG. 7 is a flowchart showing a subroutine of received data decoding processing in the embodiment of the present invention.

受信データのデコード処理は、データ受信部15が受信したデータが印刷速度、印刷濃度等の印刷装置10の設定を変更するコマンドであるか、又は、バーコード、キャラクタ等の印刷データであるかを判定し、印刷データである場合に、コマンド情報に基づいて印刷ドットデータを生成するための情報(例えば、バーコードの場合、バーコードの種類、印刷方向、バー幅、バー比率な等の情報)を取得する処理である。当該処理において、主制御部16は、データ受信部15が受信したデータを解析する。そして、データ受信部15が受信したデータが印刷データであれば、主制御部16は、図5及び6に示されるような印刷制御処理を実施する。なお、データ受信部15が受信したデータが印刷データでなければ、印刷動作は発生しないので、印刷制御処理は実施されない。   In the received data decoding process, it is determined whether the data received by the data receiving unit 15 is a command for changing settings of the printing apparatus 10 such as a printing speed and a printing density, or printing data such as a barcode and a character. Information for determining and generating print dot data based on command information when it is print data (for example, in the case of barcode, information such as barcode type, print direction, bar width, and bar ratio) It is a process to acquire. In this process, the main control unit 16 analyzes the data received by the data receiving unit 15. If the data received by the data receiving unit 15 is print data, the main control unit 16 performs print control processing as shown in FIGS. Note that if the data received by the data receiving unit 15 is not print data, the print operation does not occur, so the print control process is not performed.

受信データのデコード処理が開始されると、ステップS2−1で、主制御部16は、まず、印刷データであるか否かを判定する。具体的には、データ記録部17の受信バッファにあるデータ受信部15が受信したデータが印刷データであるか否かを判定する。   When the decoding process of received data is started, in step S2-1, the main control unit 16 first determines whether it is print data. Specifically, it is determined whether or not the data received by the data receiving unit 15 in the reception buffer of the data recording unit 17 is print data.

そして、印刷データでない場合、ステップS2−2で、主制御部16は、余白設定であるか否かを判定する。具体的には、データ受信部15が受信したデータが余白設定に関するデータであるか否かを判定する。なお、余白とは、カッタ12によって媒体21を切断する場合、切断された媒体21の先端から次の印刷データの印刷開始位置までの媒体21上の範囲である。   If it is not print data, in step S2-2, the main control unit 16 determines whether or not margin setting is performed. Specifically, it is determined whether or not the data received by the data receiving unit 15 is data related to margin setting. The margin is a range on the medium 21 from the leading end of the cut medium 21 to the print start position of the next print data when the medium 21 is cut by the cutter 12.

ここで、余白設定でない場合、ステップS2−5で、主制御部16は、各種デコード処理を実施し、受信データのデコード処理を終了する。また、余白設定である場合、主制御部16は、ステップS2−3で、余白位置を設定し、ステップS2−4で、重複印刷領域算出処理を実施して、受信データのデコード処理を終了する。重複印刷領域算出処理では、重複印刷の判定を実施する際に必要な情報であるホワイトライン発生位置(重複印刷終了位置)を算出する。また、ホワイトライン発生位置に基づいて算出することができるので、重複印刷開始位置も算出する。各種印刷データの印刷開始位置が相対位置で指定されている場合、印刷可能領域の先頭位置からヘッド位置までの距離の情報に基づいて判定するため、あらかじめ余白設定が変更されたときに算出する。   If the margin is not set, the main control unit 16 performs various decoding processes in step S2-5 and ends the decoding process of the received data. If the margin is set, the main control unit 16 sets a margin position in step S2-3, performs a duplicate print area calculation process in step S2-4, and ends the decoding process of the received data. . In the overlap print area calculation process, a white line occurrence position (duplicate print end position), which is information necessary for determining overlap print, is calculated. In addition, since it can be calculated based on the white line occurrence position, the overlap printing start position is also calculated. When the print start position of various print data is designated as a relative position, the determination is made based on the information on the distance from the head position of the printable area to the head position.

また、印刷データであるか否かを判定して印刷データである場合、ステップS2−6で、主制御部16は、バーコードであるか否かを判定する。すなわち、印刷データがバーコードの印刷データであるか否かを判定する。   If it is print data by determining whether it is print data, in step S2-6, the main control unit 16 determines whether it is a barcode. That is, it is determined whether the print data is barcode print data.

そして、バーコードの印刷データである場合、主制御部16は、ステップS2−7で、ナローバー幅を取得し、ステップS2−8で、バーコードサイズを取得し、ステップS2−9で、印刷方向設定を取得し、ステップS2−10で、印刷開始位置を取得し、ステップS2−11で、通常のバーコードデータデコード処理を実施して、受信データのデコード処理を終了する。   If it is barcode print data, the main control unit 16 obtains the narrow bar width in step S2-7, obtains the barcode size in step S2-8, and prints the print direction in step S2-9. In step S2-10, the print start position is acquired. In step S2-11, normal barcode data decoding processing is performed, and the received data decoding processing is terminated.

また、バーコードであるか否かを判定してバーコードでない場合、ステップS2−12で、主制御部16は、その他イメージデータであるか否かを判定する。すなわち、印刷データがその他イメージデータであるか否かを判定する。   If the barcode is not a barcode, the main control unit 16 determines whether the image data is other image data in step S2-12. That is, it is determined whether the print data is other image data.

そして、その他イメージデータでない場合、キャラクタの印刷データであると考えられるので、主制御部16は、ステップS2−13で、キャラクタ印刷サイズを取得し、ステップS2−14で、印刷開始位置を取得し、ステップS2−15で、印刷方向設定を取得し、ステップS2−16で、通常のキャラクタデータデコード処理を実施して、受信データのデコード処理を終了する。   If it is not other image data, it is considered to be character print data, so the main control unit 16 acquires the character print size in step S2-13, and acquires the print start position in step S2-14. In step S2-15, the print direction setting is acquired. In step S2-16, normal character data decoding processing is performed, and the decoding processing of the received data is completed.

また、その他イメージデータである場合、主制御部16は、ステップS2−17で、その他イメージサイズを取得し、ステップS2−18で、印刷開始位置を取得し、ステップS2−19で、通常のその他イメージデータデコード処理を実施して、受信データのデコード処理を終了する。   If the image data is other image data, the main control unit 16 obtains the other image size in step S2-17, obtains the print start position in step S2-18, and obtains other normal image data in step S2-19. The image data decoding process is executed, and the received data decoding process is terminated.

本実施の形態における受信データのデコード処理では、受信データの通常のコマンドデコード処理に加えて、重複印刷の実施判定に必要な情報を取得している。   In the received data decoding process in the present embodiment, in addition to the normal command decoding process for received data, information necessary for determining whether to perform duplicate printing is acquired.

次に、フローチャートについて説明する。
ステップS2−1 印刷データであるか否かを判定する。印刷データである場合はステップS2−6に進み、印刷データでない場合はステップS2−2に進む。
ステップS2−2 余白設定であるか否かを判定する。余白設定である場合はステップS2−3に進み、余白設定でない場合はステップS2−5に進む。
ステップS2−3 余白位置を設定する。
ステップS2−4 重複印刷領域算出処理を実施して、受信データのデコード処理を終了する。
ステップS2−5 各種デコード処理を実施し、受信データのデコード処理を終了する。
ステップS2−6 バーコードであるか否かを判定する。バーコードである場合はステップS2−7に進み、バーコードでない場合はステップS2−12に進む。
ステップS2−7 ナローバー幅を取得する。
ステップS2−8 バーコードサイズを取得する。
ステップS2−9 印刷方向設定を取得する。
ステップS2−10 印刷開始位置を取得する。
ステップS2−11 バーコードデータデコード処理を実施して、受信データのデコード処理を終了する。
ステップS2−12 その他イメージデータであるか否かを判定する。その他イメージデータである場合はステップS2−17に進み、その他イメージデータでない場合はステップS2−13に進む。
ステップS2−13 キャラクタ印刷サイズを取得する。
ステップS2−14 印刷開始位置を取得する。
ステップS2−15 印刷方向設定を取得する。
ステップS2−16 キャラクタデータデコード処理を実施して、受信データのデコード処理を終了する。
ステップS2−17 その他イメージサイズを取得する。
ステップS2−18 印刷開始位置を取得する。
ステップS2−19 その他イメージデータデコード処理を実施して、受信データのデコード処理を終了する。
Next, a flowchart will be described.
Step S2-1: It is determined whether or not the print data. If it is print data, the process proceeds to step S2-6. If it is not print data, the process proceeds to step S2-2.
Step S2-2: It is determined whether or not the margin is set. If the margin is set, the process proceeds to step S2-3. If the margin is not set, the process proceeds to step S2-5.
Step S2-3 Set a margin position.
Step S2-4: The overlapping print area calculation process is performed, and the received data decoding process is terminated.
Step S2-5: Various decoding processes are performed, and the received data decoding process is terminated.
Step S2-6: It is determined whether or not the barcode is used. If it is a barcode, the process proceeds to step S2-7, and if it is not a barcode, the process proceeds to step S2-12.
Step S2-7: The narrow bar width is acquired.
Step S2-8: Obtain the barcode size.
Step S2-9: Print direction setting is acquired.
Step S2-10: The print start position is acquired.
Step S2-11: The barcode data decoding process is performed, and the decoding process of the received data is completed.
Step S2-12: It is determined whether the image data is other image data. If it is other image data, the process proceeds to step S2-17, and if it is not other image data, the process proceeds to step S2-13.
Step S2-13: The character print size is acquired.
Step S2-14: The print start position is acquired.
Step S2-15: Print direction setting is acquired.
Step S2-16: The character data decoding process is performed, and the received data decoding process is terminated.
Step S2-17: The other image size is acquired.
Step S2-18: The print start position is acquired.
Step S2-19: The other image data decoding process is performed, and the received data decoding process is terminated.

次に、重複印刷領域算出処理のサブルーチンについて説明する。   Next, a subroutine for the overlapping print area calculation process will be described.

図8は本発明の実施の形態におけるホワイトライン発生位置の算出方法を説明する図、図9は本発明の実施の形態におけるホワイトライン発生領域を説明する図、図10は本発明の実施の形態における重複印刷領域を説明する図、図11は本発明の実施の形態における論理的な座標を説明する図、図12は本発明の実施の形態における重複印刷領域算出処理のサブルーチンを示すフローチャートである。   FIG. 8 is a diagram for explaining a method for calculating a white line occurrence position in the embodiment of the present invention, FIG. 9 is a diagram for explaining a white line occurrence region in the embodiment of the present invention, and FIG. 10 is an embodiment of the present invention. FIG. 11 is a diagram for explaining logical coordinates in the embodiment of the present invention, and FIG. 12 is a flowchart showing a subroutine for overlapped print area calculation processing in the embodiment of the present invention. .

本実施の形態においては、相対位置で指定される印刷データがホワイトラインの発生する可能性があるデータであるか否かを判定するために、ホワイトライン発生位置を算出する。また、ホワイトライン発生位置に基づいて、あらかじめ重複印刷を開始する位置、すなわち、重複印刷開始位置も算出する。   In the present embodiment, the white line occurrence position is calculated in order to determine whether or not the print data designated by the relative position is data that may generate a white line. Further, based on the white line generation position, a position at which overlapping printing is started, that is, a overlapping printing start position is also calculated.

ホワイトラインは、媒体21を切断するカッタ12の動作である切断動作によって位置ズレが発生した箇所で発生する。したがって、ホワイトラインは、図8及び10に示されるように、媒体21を切断する時点での印刷ヘッド11の位置であるヘッド位置において発生する。   The white line is generated at a position where the positional deviation is generated by the cutting operation that is the operation of the cutter 12 that cuts the medium 21. Therefore, as shown in FIGS. 8 and 10, the white line is generated at the head position, which is the position of the print head 11 when the medium 21 is cut.

なお、図8の上段部分は、図1における上方から観た場合の媒体21、印刷ヘッド11及びカッタ12の位置関係を模式的に示した図であり、線Aはヘッド位置を示し、線Bはカッタ12可動刃の位置であるカッタ位置を示している。また、図8の下段部分は、図1における上方から観た場合の媒体21、ヘッド位置、カッタ位置及び印刷データが印刷される範囲の位置関係を模式的に示した図である。さらに、図10及び11も、図8の下段部分と同様である。なお、図9は、ホワイトライン発生領域(図における左右方向は媒体21の搬送方向)、印刷速度の変化、及び、印刷ヘッド11の発熱素子の温度、すなわち、ヘッド温度の変化の関係を示した図である。   8 is a diagram schematically showing a positional relationship among the medium 21, the print head 11, and the cutter 12 when viewed from above in FIG. 1. A line A indicates a head position, and a line B Indicates the cutter position which is the position of the cutter 12 movable blade. 8 is a diagram schematically showing the positional relationship among the medium 21, the head position, the cutter position, and the print data printing range when viewed from above in FIG. 10 and 11 are the same as the lower part of FIG. FIG. 9 shows the relationship between the white line generation region (the horizontal direction in the figure is the conveyance direction of the medium 21), the change in the printing speed, and the temperature of the heating element of the print head 11, that is, the change in the head temperature. FIG.

図8に示されるように、カッタ位置からホワイトライン発生位置までの距離は、カッタ位置からヘッド位置までの距離としてのカットマージンに等しい。なお、印刷データの先頭からヘッド位置までの距離は、カットマージンから余白設定量(カッタ位置から印刷データの先頭までの距離)を減算した距離に等しい。そして、図11に示されるように、カッタ位置から余白設定量だけ印刷ヘッド11寄りにシフトした位置が論理原点の位置となる。そのため、カットマージンから論理原点の位置までの距離、すなわち、余白設定量を減算することで、ホワイトライン発生位置を算出することができる。   As shown in FIG. 8, the distance from the cutter position to the white line generation position is equal to the cut margin as the distance from the cutter position to the head position. The distance from the head of the print data to the head position is equal to the distance obtained by subtracting the margin setting amount (the distance from the cutter position to the head of the print data) from the cut margin. Then, as shown in FIG. 11, the position shifted from the cutter position toward the print head 11 by the margin setting amount is the logical origin position. Therefore, the white line occurrence position can be calculated by subtracting the distance from the cut margin to the position of the logical origin, that is, the margin setting amount.

また、図9に示されるように、ホワイトライン発生領域は、媒体21の切断による位置ズレ量、印刷速度の減速時において最後に印刷ヘッド11の発熱素子に電圧を印加してから停止するまでのパルス数分、及び、温度低下等により加速開始から発色するまでのパルス数分となる。なお、印刷ヘッド11の機種等によって多少異なるが、印刷速度の減速時において最後に印刷ヘッド11の発熱素子に電圧を印加してから停止するまでのパルス数、及び、発色するまでのパルス数は変動が少ないので、ホワイトライン発生領域を所定量としてもよい。また、印刷装置10の使用環境の温度情報を取得することができる場合、前記温度情報を考慮に入れてホワイトライン発生領域を算出することもできる。ホワイトライン発生領域を重複印刷領域として適用することによって、確実にホワイトラインの発生を防ぐことができる。したがって、重複印刷開始位置は、ホワイトライン発生位置からホワイトライン発生領域の距離を減算した位置となる。   Further, as shown in FIG. 9, the white line generation region is the amount of misalignment due to cutting of the medium 21 and the time from when the voltage is finally applied to the heating element of the print head 11 when the printing speed is reduced until it stops. It corresponds to the number of pulses and the number of pulses from the start of acceleration to color development due to a temperature drop or the like. The number of pulses from when the voltage is last applied to the heating element of the print head 11 until it stops and the number of pulses until the color is developed is slightly different depending on the type of the print head 11 and the like. Since the fluctuation is small, the white line generation area may be set to a predetermined amount. Further, when the temperature information of the usage environment of the printing apparatus 10 can be acquired, the white line generation region can be calculated in consideration of the temperature information. By applying the white line generation area as the overlapping print area, the generation of the white line can be surely prevented. Therefore, the overlapping print start position is a position obtained by subtracting the distance of the white line generation area from the white line generation position.

重複印刷領域算出処理が開始されると、主制御部16の重複印刷領域算出部16bは、まず、ステップS2−4−1で、余白設定量を取得し、ステップS2−4−2で、カットマージン量を取得する。   When the overlap print area calculation process is started, the overlap print area calculation unit 16b of the main control unit 16 first acquires the margin setting amount in step S2-4-1, and in step S2-4-2, the cut is performed. Get the margin amount.

続いて、ステップS2−4−3で、重複印刷領域算出部16bは、ホワイトライン発生位置(重複印刷終了位置)を算出する。具体的には、カットマージン量から余白設定量を減算した値をホワイトライン発生位置とする。そして、ステップS2−4−4で、重複印刷領域算出部16bは、ホワイトライン発生位置を保存する。具体的には、算出したホワイトライン発生位置をデータ記録部17に格納して保存する。   Subsequently, in step S2-4-3, the overlapping print area calculation unit 16b calculates a white line occurrence position (overlapping printing end position). Specifically, a value obtained by subtracting the margin setting amount from the cut margin amount is set as the white line generation position. In step S2-4-4, the overlapping print area calculation unit 16b stores the white line occurrence position. Specifically, the calculated white line occurrence position is stored in the data recording unit 17 and saved.

続いて、ステップS2−4−5で、重複印刷領域算出部16bは、重複印刷開始位置を算出する。具体的には、ホワイトライン発生位置からホワイトライン発生領域(重複印刷領域)を減算した値を重複印刷開始位置とする。そして、ステップS2−4−6で、重複印刷領域算出部16bは、重複印刷開始位置を保存して、重複印刷領域算出処理を終了する。具体的には、算出した重複印刷開始位置をデータ記録部17に格納して保存する。   Subsequently, in step S2-4-5, the overlapping print area calculation unit 16b calculates an overlapping printing start position. Specifically, a value obtained by subtracting the white line generation area (overlapping print area) from the white line generation position is set as the overlapping print start position. In step S2-4-6, the overlapping printing area calculation unit 16b stores the overlapping printing start position and ends the overlapping printing area calculation process. Specifically, the calculated duplicate printing start position is stored in the data recording unit 17 and saved.

次に、フローチャートについて説明する。
ステップS2−4−1 余白設定量を取得する。
ステップS2−4−2 カットマージン量を取得する。
ステップS2−4−3 ホワイトライン発生位置(重複印刷終了位置)を算出する。カットマージン量から余白設定量を減算した値をホワイトライン発生位置とする。
ステップS2−4−4 ホワイトライン発生位置を保存する。
ステップS2−4−5 重複印刷開始位置を算出する。ホワイトライン発生位置からホワイトライン発生領域(重複印刷領域)を減算した値を重複印刷開始位置とする。
ステップS2−4−6 重複印刷開始位置を保存して、重複印刷領域算出処理を終了する。
Next, a flowchart will be described.
Step S2-4-1: A margin setting amount is acquired.
Step S2-4-2: A cut margin amount is acquired.
Step S2-4-3: White line generation position (overlapping printing end position) is calculated. A value obtained by subtracting the margin setting amount from the cut margin amount is set as a white line generation position.
Step S2-4-4: The white line generation position is stored.
Step S2-4-5: The overlapping print start position is calculated. A value obtained by subtracting the white line generation area (overlapping print area) from the white line generation position is set as the overlap printing start position.
Step S2-4-6: The duplicate print start position is saved, and the duplicate print area calculation process is terminated.

次に、重複印刷制御判定処理のサブルーチンについて説明する。   Next, a duplicate print control determination process subroutine will be described.

図13は本発明の実施の形態における重複印刷制御判定処理のサブルーチンを示すフローチャートである。   FIG. 13 is a flowchart showing a subroutine of duplicate print control determination processing in the embodiment of the present invention.

本実施の形態においては、受信データのデコード処理において取得した印刷データの印刷開始位置等の情報、及び、重複印刷領域算出処理において算出したホワイトライン発生位置に基づいて、重複印刷を実施するか否かを判定する。重複印刷を実施するか否かの判定は、印刷データがヘッド位置を跨ぐか否かに応じて行われるので、ホワイトライン発生位置(重複印刷終了位置)が印刷データの印刷開始位置と印刷終了位置との間にあるか否かを確認する必要がある。   In this embodiment, whether or not to perform duplicate printing based on information such as the print start position of the print data acquired in the received data decoding process and the white line occurrence position calculated in the duplicate print area calculation process Determine whether. Whether or not to perform duplicate printing is determined depending on whether or not the print data straddles the head position. Therefore, the white line generation position (duplicate print end position) is the print data print start position and print end position. It is necessary to check whether it is between.

重複印刷制御判定処理が開始されると、ステップS4−1で、主制御部16の重複印刷制御判定部16cは、まず、印刷データがバーコードであるか否かを判定する。すなわち、印刷データがバーコードの印刷データであるか否かを判定する。   When the duplicate print control determination process is started, in step S4-1, the duplicate print control determination unit 16c of the main control unit 16 first determines whether the print data is a barcode. That is, it is determined whether the print data is barcode print data.

そして、バーコードの印刷データである場合、縦印刷か否かで印刷データのサイズが異なるため、ステップS4−2で、重複印刷制御判定部16cは、印刷方向が縦であるか否かを判定する。   In the case of barcode print data, since the size of the print data differs depending on whether or not the print is vertical, in step S4-2, the duplicate print control determination unit 16c determines whether or not the print direction is vertical. To do.

印刷方向が縦でない場合、すなわち、横方向に印刷する場合、ステップS4−3で、重複印刷制御判定部16cは、印刷データの印刷終了位置としてのバーコード印刷終了位置を算出する。横方向に印刷する場合には、媒体21の搬送方向に関する印刷データのサイズがバーコードの高さとなるので、バーコード印刷終了位置は、印刷データの印刷開始位置としてのバーコード印刷開始位置にバーコードの高さを加算した位置となる。   When the print direction is not vertical, that is, when printing is performed in the horizontal direction, in step S4-3, the duplicate print control determination unit 16c calculates a barcode print end position as a print end position of the print data. When printing in the horizontal direction, the size of the print data in the conveyance direction of the medium 21 is the height of the barcode, so the barcode print end position is at the barcode print start position as the print start position of print data. It becomes the position where the height of the code is added.

また、印刷方向が縦であるか否かを判定して縦である場合、重複印刷制御判定部16cは、ステップS4−4で、ナローバー幅及びバーコードのデータからバーコード幅を算出し、ステップS4−5で、バーコード印刷終了位置を算出する。縦方向に印刷する場合、媒体21の搬送方向に関する印刷データのサイズは、バーコードの幅方向のサイズとなる。そのため、重複印刷制御判定部16cは、ナローバー幅及びバーコードのデータからバーコード幅を算出した後、バーコード印刷開始位置にバーコードの幅を加算した値を、バーコード印刷終了位置として算出する。   If the print direction is determined to be vertical and the print direction is vertical, the duplicate print control determination unit 16c calculates the barcode width from the narrow bar width and the barcode data in step S4-4. In S4-5, the barcode printing end position is calculated. When printing in the vertical direction, the size of the print data in the conveyance direction of the medium 21 is the size in the width direction of the barcode. Therefore, after calculating the barcode width from the narrow bar width and the barcode data, the duplicate printing control determination unit 16c calculates a value obtained by adding the barcode width to the barcode printing start position as the barcode printing end position. .

続いて、ステップS4−11で、重複印刷制御判定部16cは、ホワイトライン発生位置が印刷データの印刷開始位置と印刷終了位置との間にあるか否かを判定する。具体的には、印刷データの印刷開始位置の値がホワイトライン発生位置の値より小さく、かつ、ホワイトライン発生位置の値が印刷データの印刷終了位置の値より小さい、という条件が満足されているか否かを判定する。   Subsequently, in step S4-11, the duplicate print control determination unit 16c determines whether the white line generation position is between the print start position and the print end position of the print data. Specifically, whether the print start position value of the print data is smaller than the white line occurrence position value and the white line occurrence position value is smaller than the print end position value of the print data is satisfied Determine whether or not.

そして、重複印刷制御判定部16cは、ステップS4−13で、前記条件が満足されている場合には重複印刷制御を実施するフラグをONにし、ステップS4−12で、前記条件が満足されていない場合には重複印刷制御を実施するフラグをOFFにして、重複印刷制御判定処理を終了する。   In step S4-13, the duplicate print control determination unit 16c turns on a flag for performing duplicate print control if the condition is satisfied, and in step S4-12, the condition is not satisfied. In this case, the flag for executing the duplicate print control is turned OFF, and the duplicate print control determination process is ended.

また、印刷データがバーコードであるか否かを判定してバーコードでない場合、ステップS4−6で、重複印刷制御判定部16cは、その他イメージデータであるか否かを判定する。すなわち、印刷データがその他イメージデータの印刷データであるか否かを判定する。   If it is determined whether the print data is a bar code and is not a bar code, in step S4-6, the duplicate print control determination unit 16c determines whether it is other image data. That is, it is determined whether the print data is print data of other image data.

そして、その他イメージデータである場合、ステップS4−7で、重複印刷制御判定部16cは、印刷終了位置を算出する。具体的には、印刷データの印刷開始位置としてのその他イメージ印刷開始位置にその他イメージサイズを加算した値を、印刷データの印刷終了位置として算出する。   If the image data is other image data, the duplicate print control determination unit 16c calculates the print end position in step S4-7. Specifically, a value obtained by adding the other image size to the other image print start position as the print start position of the print data is calculated as the print end position of the print data.

続いて、重複印刷制御判定部16cは、ステップS4−11で、ホワイトライン発生位置が印刷データの印刷開始位置と印刷終了位置との間にあるか否かを判定し、ステップS4−12又はS4−13で、重複印刷制御を実施するフラグをON又はOFFにして、重複印刷制御判定処理を終了する。   Subsequently, in step S4-11, the duplicate print control determination unit 16c determines whether or not the white line generation position is between the print start position and the print end position of the print data, and steps S4-12 or S4. In −13, the flag for performing the duplicate print control is turned ON or OFF, and the duplicate print control determination process is ended.

また、その他イメージデータであるか否かを判定してその他イメージデータでない場合、すなわち、キャラクタデータである場合、縦印刷か否かで印刷データのサイズが異なるため、ステップS4−8で、重複印刷制御判定部16cは、印刷方向が縦であるか否かを判定する。   If the image data is not other image data by determining whether it is other image data, that is, if it is character data, the size of the print data differs depending on whether it is vertical printing. Therefore, in step S4-8, duplicate printing is performed. The control determination unit 16c determines whether or not the printing direction is vertical.

印刷方向が縦でない場合、すなわち、横方向に印刷する場合、ステップS4−9で、重複印刷制御判定部16cは、印刷データの印刷終了位置を算出する。具体的には、印刷終了位置は、印刷データの印刷開始位置としてのキャラクタ印刷開始位置にキャラクタの高さを加算した値となる。   When the print direction is not vertical, that is, when printing is performed in the horizontal direction, in step S4-9, the duplicate print control determination unit 16c calculates the print end position of the print data. Specifically, the print end position is a value obtained by adding the character height to the character print start position as the print start position of the print data.

また、印刷方向が縦である場合、ステップS4−10で、重複印刷制御判定部16cは、印刷データの印刷開始位置としてのキャラクタ印刷開始位置にキャラクタの幅を加算した値を印刷データの印刷終了位置として算出する。   If the print direction is vertical, in step S4-10, the duplicate print control determination unit 16c sets a value obtained by adding the character width to the character print start position as the print start position of the print data. Calculate as position.

続いて、重複印刷制御判定部16cは、ステップS4−11で、ホワイトライン発生位置が印刷データの印刷開始位置と印刷終了位置との間にあるか否かを判定し、ステップS4−12又はS4−13で、重複印刷制御を実施するフラグをON又はOFFにして、重複印刷制御判定処理を終了する。   Subsequently, in step S4-11, the duplicate print control determination unit 16c determines whether or not the white line generation position is between the print start position and the print end position of the print data, and steps S4-12 or S4. In −13, the flag for performing the duplicate print control is turned ON or OFF, and the duplicate print control determination process is ended.

次に、フローチャートについて説明する。
ステップS4−1 印刷データがバーコードであるか否かを判定する。印刷データがバーコードである場合はステップS4−2に進み、印刷データがバーコードでない場合はステップS4−6に進む。
ステップS4−2 印刷方向が縦であるか否かを判定する。印刷方向が縦である場合はステップS4−4に進み、印刷方向が縦でない場合はステップS4−3に進む。
ステップS4−3 バーコード印刷終了位置を算出する。バーコード印刷終了位置は、バーコード印刷開始位置にバーコードの高さを加算した位置となる。
ステップS4−4 ナローバー幅及びバーコードのデータからバーコード幅を算出する。
ステップS4−5 バーコード印刷終了位置を算出する。バーコード印刷開始位置にバーコードの幅を加算した値を、バーコード印刷終了位置として算出する。
ステップS4−6 その他イメージデータであるか否かを判定する。その他イメージデータである場合はステップS4−7に進み、その他イメージデータでない場合はステップS4−8に進む。
ステップS4−7 印刷終了位置を算出する。その他イメージ印刷開始位置にその他イメージサイズを加算した値を、印刷データの印刷終了位置として算出する。
ステップS4−8 印刷方向が縦であるか否かを判定する。印刷方向が縦である場合はステップS4−10に進み、印刷方向が縦でない場合はステップS4−9に進む。
ステップS4−9 印刷終了位置を算出する。印刷終了位置は、キャラクタ印刷開始位置にキャラクタの高さを加算した値となる。
ステップS4−10 キャラクタ印刷開始位置にキャラクタの幅を加算した値を印刷終了位置として算出する。
ステップS4−11 ホワイトライン発生位置が印刷開始位置と印刷終了位置との間にあるか否かを判定する。ホワイトライン発生位置が印刷開始位置と印刷終了位置との間にある場合はステップS4−13に進み、ホワイトライン発生位置が印刷開始位置と印刷終了位置との間にない場合はステップS4−12に進む。
ステップS4−12 重複印刷制御を実施するフラグをOFFにして、重複印刷制御判定処理を終了する。
ステップS4−13 重複印刷制御を実施するフラグをONにして、重複印刷制御判定処理を終了する。
Next, a flowchart will be described.
Step S4-1: It is determined whether the print data is a barcode. If the print data is a barcode, the process proceeds to step S4-2, and if the print data is not a barcode, the process proceeds to step S4-6.
Step S4-2: It is determined whether or not the printing direction is vertical. If the print direction is vertical, the process proceeds to step S4-4. If the print direction is not vertical, the process proceeds to step S4-3.
Step S4-3: The barcode printing end position is calculated. The barcode printing end position is a position obtained by adding the barcode height to the barcode printing start position.
Step S4-4: Calculate the barcode width from the narrow bar width and barcode data.
Step S4-5: The barcode printing end position is calculated. A value obtained by adding the barcode width to the barcode printing start position is calculated as the barcode printing end position.
Step S4-6: It is determined whether the image data is other image data. If it is other image data, the process proceeds to step S4-7, and if it is not other image data, the process proceeds to step S4-8.
Step S4-7: The print end position is calculated. A value obtained by adding the other image size to the other image print start position is calculated as the print end position of the print data.
Step S4-8: It is determined whether the printing direction is vertical. If the printing direction is vertical, the process proceeds to step S4-10. If the printing direction is not vertical, the process proceeds to step S4-9.
Step S4-9: The print end position is calculated. The print end position is a value obtained by adding the character height to the character print start position.
Step S4-10: A value obtained by adding the character width to the character print start position is calculated as the print end position.
Step S4-11: It is determined whether or not the white line generation position is between the print start position and the print end position. If the white line generation position is between the print start position and the print end position, the process proceeds to step S4-13. If the white line generation position is not between the print start position and the print end position, the process proceeds to step S4-12. move on.
Step S4-12: The flag for executing the duplicate print control is turned OFF, and the duplicate print control determination process is terminated.
Step S4-13: The flag for executing the duplicate print control is set to ON, and the duplicate print control determination process is terminated.

次に、重複印刷パターン生成処理のサブルーチンについて説明する。   Next, a subroutine for duplicate print pattern generation processing will be described.

図14は本発明の実施の形態における重複印刷パターン生成処理のサブルーチンを示すフローチャートである。   FIG. 14 is a flowchart showing a subroutine of duplicate print pattern generation processing in the embodiment of the present invention.

本実施の形態においては、媒体21の切断前及び切断後に媒体21に印刷ドットデータの分割及び重複印刷を実施する領域についての印刷パターンの生成を、印刷データのタイプに応じて行う。   In the present embodiment, generation of a print pattern for an area where print dot data is divided and overlapped printing is performed on the medium 21 before and after cutting the medium 21 is performed according to the type of print data.

重複印刷パターン生成処理が開始されると、ステップS8−1で、主制御部16の重複印刷パターン生成部16aは、まず、イメージ先頭からホワイトライン発生位置までの印刷ドットデータを切断前の印刷ドットデータとして抽出する。具体的には、媒体21の切断前に行われる印刷では印刷ドットデータを変更しないので、該印刷ドットデータの前端からホワイトライン発生位置までの印刷ドットデータを切断前の印刷ドットデータとして抽出する。そして、ステップS8−2で、重複印刷パターン生成部16aは、抽出した切断前の印刷ドットデータをデータ記録部17に保存する。   When the duplicate print pattern generation process is started, in step S8-1, the duplicate print pattern generation unit 16a of the main control unit 16 first converts the print dot data from the top of the image to the white line occurrence position into print dots before cutting. Extract as data. Specifically, since printing dot data is not changed in printing performed before cutting the medium 21, printing dot data from the front end of the printing dot data to the white line occurrence position is extracted as printing dot data before cutting. In step S8-2, the duplicate print pattern generation unit 16a stores the extracted print dot data before cutting in the data recording unit 17.

続いて、切断後の印刷ドットデータを生成するために、ステップS8−3で、重複印刷パターン生成部16aは、重複印刷領域と次の1ライン分の印刷ドットデータを抽出する。つまり、隣接したドットデータを用いて補正を実施するため、重複印刷領域の印刷ドットデータに加えて、次の1ライン分の印刷ドットデータを抽出する。   Subsequently, in order to generate the print dot data after cutting, in step S8-3, the duplicate print pattern generation unit 16a extracts the duplicate print area and the next one line of print dot data. In other words, in order to perform correction using adjacent dot data, print dot data for the next line is extracted in addition to the print dot data in the overlapping print region.

続いて、ステップS8−4で、重複印刷パターン生成部16aは、重複印刷領域内の印刷データタイプを判定する。具体的には、重複印刷領域における印刷ドットデータが、キャラクタデータ、バーコードデータ、又は、その他イメージデータのいずれであるかを判定する。   Subsequently, in step S8-4, the duplicate print pattern generation unit 16a determines the print data type in the duplicate print area. Specifically, it is determined whether the print dot data in the overlapping print area is character data, barcode data, or other image data.

そして、重複印刷パターン生成部16aは、キャラクタデータの場合にはステップS8−5でキャラクタ重複印刷パターン生成処理を実施し、バーコードデータの場合にはステップS8−7でバーコード重複印刷パターン生成処理を実施し、その他イメージデータの場合にはステップS8−6でイメージ重複印刷パターン生成処理を実施する。   In the case of character data, the duplicate print pattern generation unit 16a performs the character duplicate print pattern generation process in step S8-5, and in the case of barcode data, the duplicate print pattern generation process in step S8-7. In the case of other image data, an image duplication print pattern generation process is executed in step S8-6.

続いて、ステップS8−8で、重複印刷パターン生成部16aは、生成した重複パターンに残りの印刷データを付加し、切断後、印刷ドットデータとして保存する。具体的には、キャラクタ重複印刷パターン生成処理、バーコード重複印刷パターン生成処理又はその他イメージ重複印刷パターン生成処理を実施して生成した重複パターンに、ホワイトライン発生位置から印刷ドットデータの後端までの印刷ドットデータを加えたデータを切断前の印刷ドットデータとしてデータ記録部17に保存する。   Subsequently, in step S8-8, the duplicate print pattern generation unit 16a adds the remaining print data to the generated duplicate pattern, and saves it as print dot data after cutting. Specifically, the overlap pattern generated by performing the character overlap print pattern generation process, the barcode overlap print pattern generation process, or other image overlap print pattern generation process, from the white line occurrence position to the rear end of the print dot data. Data added with the print dot data is stored in the data recording unit 17 as print dot data before cutting.

そして、媒体21の切断後に逆方向に媒体21が搬送されるので、ステップS8−9で、重複印刷パターン生成部16aは、重複印刷領域分を切断後の逆方向の媒体搬送量に設定して、すなわち、重複印刷する領域の量を媒体21を逆方向に搬送する量として設定して、重複印刷パターン生成処理を終了する。   Then, since the medium 21 is transported in the reverse direction after the medium 21 is cut, in step S8-9, the overlapping print pattern generation unit 16a sets the overlapping print area for the medium transport amount in the reverse direction after cutting. That is, the amount of the overlapping printing area is set as the amount of the medium 21 to be conveyed in the reverse direction, and the overlapping printing pattern generation process is ended.

次に、フローチャートについて説明する。
ステップS8−1 イメージ先頭からホワイトライン発生位置までの印刷ドットデータを切断前の印刷ドットデータとして抽出する。
ステップS8−2 切断前の印刷ドットデータをデータ記録部17に保存する。
ステップS8−3 重複印刷領域と次の1ライン分の印刷ドットデータを抽出する。
ステップS8−4 重複印刷領域内の印刷データタイプを判定する。印刷ドットデータがキャラクタデータである場合はステップS8−5に進み、印刷ドットデータがバーコードデータである場合はステップS8−7に進み、印刷ドットデータがその他イメージデータである場合はステップS8−6に進む。
ステップS8−5 キャラクタ重複印刷パターン生成処理を実施する。
ステップS8−6 その他イメージ重複印刷パターン生成処理を実施する。
ステップS8−7 バーコード重複印刷パターン生成処理を実施する。
ステップS8−8 生成した重複パターンに残りの印刷データを付加し、切断後、印刷ドットデータとして保存する。
ステップS8−9 重複印刷領域分を切断後の逆方向の媒体搬送量に設定して、重複印刷パターン生成処理を終了する。
Next, a flowchart will be described.
Step S8-1: Print dot data from the beginning of the image to the white line occurrence position is extracted as print dot data before cutting.
Step S8-2: Print dot data before cutting is stored in the data recording unit 17.
Step S8-3: Print dot data for the overlapping print area and the next line is extracted.
Step S8-4: Determine the print data type in the overlapping print area. If the print dot data is character data, the process proceeds to step S8-5. If the print dot data is barcode data, the process proceeds to step S8-7. If the print dot data is other image data, the process proceeds to step S8-6. Proceed to
Step S8-5: Character duplication print pattern generation processing is performed.
Step S8-6: Other image duplication print pattern generation processing is performed.
Step S8-7 A barcode duplication print pattern generation process is performed.
Step S8-8: The remaining print data is added to the generated overlapping pattern, and after cutting, it is stored as print dot data.
Step S8-9: The overlap print area is set to the reverse medium transport amount after cutting, and the overlap print pattern generation process is terminated.

次に、キャラクタ重複印刷パターン生成処理のサブルーチンについて説明する。   Next, a subroutine for character duplication print pattern generation processing will be described.

図15は本発明の実施の形態における印刷ドットデータ中の当該ドットとそれに隣接する隣接ドットの位置関係を説明する図、図16は本発明の実施の形態におけるキャラクタデータの重複印刷パターンを説明する図、図17は本発明の実施の形態におけるキャラクタデータの重複印刷の結果を説明する図、図18は本発明の実施の形態におけるキャラクタ重複印刷パターン生成処理のサブルーチンを示すフローチャートである。   FIG. 15 is a diagram for explaining the positional relationship between the dot in the print dot data according to the embodiment of the present invention and adjacent dots adjacent thereto, and FIG. 16 is a diagram for explaining the overlapping print pattern of character data according to the embodiment of the present invention. FIG. 17 is a diagram for explaining the result of redundant printing of character data in the embodiment of the present invention, and FIG. 18 is a flowchart showing a subroutine of character overlapping print pattern generation processing in the embodiment of the present invention.

キャラクタのデータの場合には、その他イメージデータのような階調データがないので、印刷ドットの有無のみで表現される。また、文字全体としての形が認識できれば可読することができるので、同じ印刷データを重ねても目立ちにくい。そのため、重複する印刷パターンが同じ形となるように、媒体搬送方向に同位置となる次のラインの隣接ドットのみを参照して補正を実施する。   In the case of character data, since there is no gradation data like other image data, it is expressed only by the presence or absence of printing dots. In addition, since it can be read if the shape of the entire character can be recognized, it is difficult to stand out even if the same print data is superimposed. For this reason, correction is performed with reference to only adjacent dots in the next line at the same position in the medium transport direction so that overlapping print patterns have the same shape.

前述のように、印刷ドットデータは、ドットパターンに展開された印刷データであって、注目すべき1つの印刷ドットである当該ドットの周囲には、図15に示されるように、8つの隣接ドットが存在する。また、前述のように、印刷ドットデータは、媒体21の搬送に合わせて1ラインずつ媒体21に印刷されるので、当該ドットよりも媒体21の搬送方向前方に隣接して前の印刷ラインが形成され、当該ドットよりも媒体21の搬送方向後方に隣接して次の印刷ラインが形成される。さらに、各印刷ドットは、印刷ヘッド11に配設された対応する発熱素子の発熱によって形成されるので、各発熱素子に印加される電圧を減少させて各発熱素子の温度を低下させることによって、各印刷ドットの大きさ、すなわち、ドットサイズを減少させることができる。   As described above, the print dot data is print data developed into a dot pattern, and there are eight adjacent dots as shown in FIG. Exists. Further, as described above, the print dot data is printed on the medium 21 line by line in accordance with the conveyance of the medium 21, so that the previous print line is formed adjacent to the front of the medium 21 in the conveyance direction of the dot. Then, the next printing line is formed adjacent to the rear side in the transport direction of the medium 21 from the dot. Furthermore, since each printing dot is formed by the heat generation of the corresponding heating element disposed in the print head 11, by reducing the voltage applied to each heating element and lowering the temperature of each heating element, The size of each printed dot, that is, the dot size can be reduced.

図16には、キャラクタデータの重複印刷パターンを決定する例が示されている。当該ドットの次のラインにおける隣接ドット(番号が2番の隣接ドット)が印刷される場合には、媒体21を切断するために位置ズレが発生しても、印刷ドットが繋がるだけなので、補正をせず、当該ドットのドットサイズを減少させることなく、印刷を行う。また、次のラインにおける隣接ドットが印刷されない場合には、補正をして、当該ドットのドットサイズを減少させて印刷を行うが、重複印刷の最終行にあるのか否かに応じて、当該ドットの縮小率を変更する。重複印刷の最終行でないときは、媒体21の切断前に印刷した印刷データに位置ズレが発生せず、空白部分を単に埋めてしまうこととなるため、当該ドットの縮小率を大きくする(例えば、ドットサイズが50〔%〕となるように縮小する。)。一方、重複印刷の最終行であるときは、位置ズレがホワイトラインとなってしまうため、印刷ドットが大きくなりすぎない程度に、当該ドットの縮小率を小さくする(例えば、ドットサイズが75〔%〕となるように縮小する。)。   FIG. 16 shows an example of determining an overlapping print pattern of character data. When the adjacent dot in the line next to the dot (adjacent dot with the number 2) is printed, even if a positional deviation occurs in order to cut the medium 21, the print dot is only connected. Without printing, the printing is performed without reducing the dot size of the dot. If adjacent dots in the next line are not printed, correction is performed to reduce the dot size of the dot, and printing is performed. However, depending on whether the dot is in the last line of overlapping printing, the dot Change the reduction ratio. If it is not the last line of overlapping printing, the printing data printed before cutting the medium 21 does not cause a positional shift and simply fills in the blank portion, so that the reduction ratio of the dot is increased (for example, (Reduce the dot size to 50%.) On the other hand, since the positional deviation is a white line when it is the last line of overlapping printing, the dot reduction rate is reduced to such an extent that the printed dots do not become too large (for example, the dot size is 75 [% ].

キャラクタ重複印刷パターン生成処理が開始されると、ステップS8−5−1で、重複印刷パターン生成部16aは、まず、1ライン分のデータを取得する。具体的には、重複印刷領域における印刷ドットデータの1ラインに対応するデータを、重複印刷領域の最初のラインから順次、取得する。   When the character duplication print pattern generation process is started, the duplication print pattern generation unit 16a first acquires data for one line in step S8-5-1. Specifically, data corresponding to one line of print dot data in the overlapping print area is sequentially acquired from the first line of the overlapping print area.

続いて、ステップS8−5−2で、重複印刷パターン生成部16aは、1ドット分のデータを取得する。具体的には、取得した1ラインの中の1ドットに対応するデータを、ラインの端のドットから順次、当該ドットのデータとして取得する。   Subsequently, in step S8-5-2, the duplicate print pattern generation unit 16a acquires data for one dot. Specifically, data corresponding to one dot in one acquired line is sequentially acquired from the dot at the end of the line as data of the dot.

続いて、ステップS8−5−3で、重複印刷パターン生成部16aは、隣接する次のラインの1ドット分のデータを取得する。具体的には、当該ドットの次のラインにおける隣接ドットのデータを取得する。   Subsequently, in step S8-5-3, the overlapping print pattern generation unit 16a acquires data for one dot of the next adjacent line. Specifically, the data of adjacent dots in the next line after the dot is acquired.

続いて、ステップS8−5−4で、重複印刷パターン生成部16aは、隣接ドットが空白ドットであるか否かを判定する。具体的には、当該ドットの次のラインにおける隣接ドットが印刷されない空白ドットであるか否かを判定する。   Subsequently, in step S8-5-4, the duplicate print pattern generation unit 16a determines whether or not the adjacent dots are blank dots. Specifically, it is determined whether or not the adjacent dot in the line next to the dot is a blank dot that is not printed.

そして、空白ドットでない場合、すなわち、次のラインにおける隣接ドットが印刷される場合、ステップS8−5−5で、重複印刷パターン生成部16aは、ドットサイズを変更しない。具体的には、当該ドットのドットサイズを減少させないようにする。   If it is not a blank dot, that is, if an adjacent dot in the next line is printed, the overlapping print pattern generation unit 16a does not change the dot size in step S8-5-5. Specifically, the dot size of the dot is not reduced.

また、空白ドットである場合、すなわち、次のラインにおける隣接ドットが印刷されない場合、ステップS8−5−6で、重複印刷パターン生成部16aは、当該ドットが重複印刷領域の最終ラインのドットであるか否かを判定する。すなわち、当該ドットが重複印刷の最終行に位置するものであるか否かを判定する。そして、最終ラインのドットでない場合、重複印刷パターン生成部16aは、ステップS8−5−7で、ドットサイズを50〔%〕に変更する。すなわち、当該ドットのドットサイズが50〔%〕となるように当該ドットの縮小率を決定する。一方、最終ラインのドットである場合、重複印刷パターン生成部16aは、ステップS8−5−8で、ドットサイズを75〔%〕に変更する。すなわち、当該ドットのドットサイズが75〔%〕となるように当該ドットの縮小率を決定する。   If the dot is a blank dot, that is, if an adjacent dot in the next line is not printed, in step S8-5-6, the overlapping print pattern generation unit 16a determines that the dot is a dot in the last line of the overlapping printing region. It is determined whether or not. That is, it is determined whether or not the dot is located in the last line of overlapping printing. If it is not the dot of the last line, the overlapping print pattern generation unit 16a changes the dot size to 50 [%] in step S8-5-7. That is, the dot reduction rate is determined so that the dot size is 50%. On the other hand, if the dot is in the last line, the overlapping print pattern generation unit 16a changes the dot size to 75 [%] in step S8-5-8. That is, the dot reduction rate is determined so that the dot size is 75%.

続いて、ステップS8−5−9で、重複印刷パターン生成部16aは、ライン端のドットデータであるか否かを判定する。すなわち、当該ドットが、データを取得した1ラインの端に位置するドットであるか否かを判定する。   Subsequently, in step S8-5-9, the duplicate print pattern generation unit 16a determines whether the dot data is line end dot data. That is, it is determined whether the dot is a dot located at the end of one line from which data is acquired.

そして、ライン端のドットデータでない場合、ステップS8−5−2で、重複印刷パターン生成部16aは、再度、1ドット分のデータを取得して以降の動作を繰り返す。   If it is not the dot data at the end of the line, in step S8-5-2, the overlapping print pattern generation unit 16a obtains data for one dot again and repeats the subsequent operations.

また、ステップS8−5−10で、ライン端のドットデータである場合、重複印刷パターン生成部16aは、重複印刷領域の最終ラインであるか否かを判定する。すなわち、データを取得したラインが重複印刷領域の最終のラインであるか否かを判定する。   In step S8-5-10, if it is dot data at the end of the line, the overlapping print pattern generation unit 16a determines whether it is the last line of the overlapping printing area. That is, it is determined whether or not the line from which the data has been acquired is the last line in the overlapping print area.

そして、最終ラインでない場合、ステップS8−5−1で、重複印刷パターン生成部16aは、再度、1ライン分のデータを取得して以降の動作を繰り返す。   If it is not the last line, in step S8-5-1, the duplicate print pattern generation unit 16a obtains data for one line again and repeats the subsequent operations.

また、最終ラインである場合、重複印刷領域のすべてのドットについて、必要な場合には、補正を実施したことになるので、重複印刷パターン生成部16aは、キャラクタ重複印刷パターン生成処理を終了する。   In the case of the final line, since all dots in the overlapping print area have been corrected if necessary, the overlapping print pattern generation unit 16a ends the character overlapping print pattern generation process.

このように、キャラクタ重複印刷パターン生成処理を実施することによって、図17に示されるような印刷結果を得ることができる。図17に示されるのは、キャラクタとしてアルファベットのAを印刷した例である。従来技術では、Aという文字の空白部分が、ドットによって埋められて、狭くなっている。これに対し、本実施の形態においては、ドットサイズを縮小しているので、Aという文字の空白部分が、あまり埋められておらず、狭くなっていないことが分かる。   As described above, by executing the character duplication print pattern generation process, a print result as shown in FIG. 17 can be obtained. FIG. 17 shows an example in which alphabet A is printed as a character. In the prior art, the blank portion of the letter A is filled with dots and becomes narrower. On the other hand, in the present embodiment, since the dot size is reduced, it can be seen that the blank portion of the letter A is not so filled and not narrowed.

次に、フローチャートについて説明する。
ステップS8−5−1 1ライン分のデータを取得する。
ステップS8−5−2 1ドット分のデータを取得する。
ステップS8−5−3 隣接する次のラインの1ドット分のデータを取得する。
ステップS8−5−4 隣接ドットが空白ドットであるか否かを判定する。隣接ドットが空白ドットである場合はステップS8−5−6に進み、隣接ドットが空白ドットでない場合はステップS8−5−5に進む。
ステップS8−5−5 ドットサイズを変更しない。
ステップS8−5−6 当該ドットが重複印刷領域の最終ラインのドットであるか否かを判定する。当該ドットが重複印刷領域の最終ラインのドットである場合はステップS8−5−8に進み、当該ドットが重複印刷領域の最終ラインのドットでない場合はステップS8−5−7に進む。
ステップS8−5−7 ドットサイズを50〔%〕に変更する。
ステップS8−5−8 ドットサイズを75〔%〕に変更する。
ステップS8−5−9 ライン端のドットデータであるか否かを判定する。ライン端のドットデータである場合はステップS8−5−10に進み、ライン端のドットデータでない場合はステップS8−5−2に戻る。
ステップS8−5−10 重複印刷領域の最終ラインであるか否かを判定する。重複印刷領域の最終ラインである場合はキャラクタ重複印刷パターン生成処理を終了し、重複印刷領域の最終ラインでない場合はステップS8−5−1に戻る。
Next, a flowchart will be described.
Step S8-5-1: Data for one line is acquired.
Step S8-5-2: Data for one dot is acquired.
Step S8-5-3: Acquire data for one dot of the next adjacent line.
Step S8-5-4: It is determined whether or not the adjacent dot is a blank dot. If the adjacent dot is a blank dot, the process proceeds to step S8-5-6. If the adjacent dot is not a blank dot, the process proceeds to step S8-5-5.
Step S8-5-5: Dot size is not changed.
Step S8-5-6: It is determined whether or not the dot is a dot on the last line of the overlapping print area. If the dot is a dot on the last line of the overlapping print region, the process proceeds to step S8-5-8. If the dot is not a dot on the final line of the overlap printing region, the process proceeds to step S8-5-7.
Step S8-5-7: The dot size is changed to 50 [%].
Step S8-5-8: The dot size is changed to 75 [%].
Step S8-5-9: It is determined whether or not the dot data is at the line end. If it is dot data at the line end, the process proceeds to step S8-5-10. If it is not dot data at the line end, the process returns to step S8-5-2.
Step S8-5-10: It is determined whether it is the last line of the overlapping print area. If it is the last line of the overlapping print area, the character overlapping print pattern generation process is terminated, and if it is not the last line of the overlapping print area, the process returns to step S8-5-1.

次に、その他イメージ重複印刷パターン生成処理のサブルーチンについて説明する。   Next, a subroutine for other image duplication print pattern generation processing will be described.

図19は本発明の実施の形態におけるその他イメージデータの重複印刷パターンを説明する図、図20は本発明の実施の形態におけるその他イメージデータの重複印刷の結果を説明する第1の図、図21は本発明の実施の形態におけるその他イメージデータの重複印刷の結果を説明する第2の図、図22は本発明の実施の形態におけるその他イメージ重複印刷パターン生成処理のサブルーチンを示すフローチャートである。   FIG. 19 is a diagram for explaining a duplicate print pattern of other image data in the embodiment of the present invention. FIG. 20 is a first diagram for explaining the result of duplicate print of other image data in the embodiment of the present invention. FIG. 22 is a second diagram for explaining the result of duplication printing of other image data in the embodiment of the present invention, and FIG. 22 is a flowchart showing a subroutine of other image duplication printing pattern generation processing in the embodiment of the present invention.

その他イメージデータの場合、階調が含まれているので、ドットサイズが変化したり、ドットが間引きされているようなドットパターンになったりすることがある。例えば、図3に示される従来技術の例のように、同じドットパターンの重複印刷を行うと、空白スペースが埋まって、階調が崩れてしまう可能性がある。そのため、図19に示されるように、当該ドットの次のラインにおける3つのドット(番号が1〜3番の隣接ドット)を参照して補正を実施する。   In the case of other image data, since gradation is included, the dot size may change, or the dot pattern may be such that dots are thinned out. For example, if the same dot pattern is printed repeatedly as in the prior art example shown in FIG. 3, the blank space may be filled and the gradation may be lost. Therefore, as shown in FIG. 19, correction is performed with reference to three dots (adjacent dots with numbers 1 to 3) in the next line of the dot.

具体的には、2番の隣接ドットが印刷される場合、2番の隣接ドット及び当該ドットのドットサイズが等しいときには補正を実施しないが、2番の隣接ドット及び当該ドットのドットサイズが異なるときには、小さい方のドットサイズに合わせるように、補正を実施する。   Specifically, when the second adjacent dot is printed, no correction is performed when the second adjacent dot and the dot size are equal, but when the second adjacent dot and the dot size are different. Then, correction is performed so as to match the smaller dot size.

また、2番の隣接ドットが印刷されない場合、1番の隣接ドット及び3番の隣接ドットの印刷のうちで印刷されるドットの数に応じて、補正を切り替える。つまり、1番の隣接ドット及び3番の隣接ドットがいずれも印刷されないときには、キャラクタ重複印刷パターン生成処理と同様の補正を実施する。また、1番の隣接ドット及び3番の隣接ドットの一方が印刷され他方が印刷されないときには、結果が太くなり過ぎないように当該ドットを縮小する。さらに、1番の隣接ドット及び3番の隣接ドットがいずれも印刷されるときには、重複印刷の最終行にあるのか否かに応じて、当該ドットの縮小率を変更する。重複印刷の最終行にないときには、空白を埋めるようになってしまうので、重複印刷の最終行にあるときよりも、当該ドットのドットサイズを小さくする。   When the second adjacent dot is not printed, the correction is switched according to the number of dots printed out of the printing of the first adjacent dot and the third adjacent dot. That is, when neither the first adjacent dot nor the third adjacent dot is printed, the same correction as the character overlap print pattern generation process is performed. Further, when one of the first adjacent dot and the third adjacent dot is printed and the other is not printed, the dot is reduced so that the result does not become too thick. Further, when both the first adjacent dot and the third adjacent dot are printed, the reduction ratio of the dot is changed depending on whether or not it is in the last line of the overlapping printing. When it is not in the last line of overlapping printing, the blank space is filled. Therefore, the dot size of the dot is made smaller than that in the last line of overlapping printing.

その他イメージ重複印刷パターン生成処理が開始されると、ステップS8−6−1で、重複印刷パターン生成部16aは、まず、1ライン分のデータを取得する。具体的には、重複印刷領域における印刷ドットデータの1ラインに対応するデータを、重複印刷領域の最初のラインから順次、取得する。   When the other image duplication print pattern generation process is started, in step S8-6-1, the duplication print pattern generation unit 16a first acquires data for one line. Specifically, data corresponding to one line of print dot data in the overlapping print area is sequentially acquired from the first line of the overlapping print area.

続いて、ステップS8−6−2で、重複印刷パターン生成部16aは、1ドット分のデータを取得する。具体的には、取得した1ラインの中の1ドットに対応するデータを、ラインの端のドットから順次、当該ドットのデータとして取得する。   Subsequently, in step S8-6-2, the duplicate print pattern generation unit 16a acquires data for one dot. Specifically, data corresponding to one dot in one acquired line is sequentially acquired from the dot at the end of the line as data of the dot.

続いて、ステップS8−6−3で、重複印刷パターン生成部16aは、隣接する次のラインの3ドット分のデータを取得する。具体的には、当該ドットの次のラインにおける1〜3番の隣接ドットのデータを取得する。   Subsequently, in step S8-6-3, the overlapping print pattern generation unit 16a acquires data for three dots of the next adjacent line. Specifically, the data of the 1st to 3rd adjacent dots in the line next to the dot is acquired.

続いて、ステップS8−6−4で、重複印刷パターン生成部16aは、媒体搬送方向に隣接しているドットが空白ドットであるか否かを判定する。具体的には、当該ドットの次のラインにおける2番の隣接ドットが印刷されない空白ドットであるか否かを判定する。   Subsequently, in step S8-6-4, the overlapping print pattern generation unit 16a determines whether or not the dots adjacent in the medium conveyance direction are blank dots. Specifically, it is determined whether or not the second adjacent dot in the line next to the dot is a blank dot that is not printed.

そして、空白ドットでない場合、すなわち、次のラインにおける2番の隣接ドットが印刷される場合、ステップS8−6−5で、重複印刷パターン生成部16aは、隣接ドットのサイズが当該ドットよりも小さいか否かを判定する。すなわち、次のラインにおける2番の隣接ドットのドットサイズが当該ドットのドットサイズより小さいか否かを判定する。   If it is not a blank dot, that is, if the second adjacent dot in the next line is printed, in step S8-6-5, the overlapping print pattern generation unit 16a makes the size of the adjacent dot smaller than that dot. It is determined whether or not. That is, it is determined whether or not the dot size of the second adjacent dot in the next line is smaller than the dot size of the dot.

ここで、隣接ドットのサイズが当該ドットよりも小さくない場合、ステップS8−6−6で、重複印刷パターン生成部16aは、ドットサイズを変更しない。具体的には、当該ドットのドットサイズを減少させないようにする。一方、隣接ドットのサイズが当該ドットよりも小さい場合、ステップS8−6−7で、重複印刷パターン生成部16aは、隣接ドットと同サイズに変更する。具体的には、当該ドットのドットサイズを減少させ、隣接ドットのドットサイズに等しくする。   Here, if the size of the adjacent dot is not smaller than the dot, the overlapping print pattern generation unit 16a does not change the dot size in step S8-6-6. Specifically, the dot size of the dot is not reduced. On the other hand, when the size of the adjacent dot is smaller than the dot, in step S8-6-7, the overlapping print pattern generation unit 16a changes to the same size as the adjacent dot. Specifically, the dot size of the dot is reduced to be equal to the dot size of the adjacent dot.

なお、媒体搬送方向に隣接しているドットが空白ドットであるか否かを判定して空白ドットである場合、ステップS8−6−8で、重複印刷パターン生成部16aは、残りの隣接ドットの印刷数を判定する。具体的には、次のラインにおける2番の隣接ドットが印刷されない場合、当該ドットの次のラインにおける1番及び3番の隣接ドットのうちで印刷されるドットの数を判定する。   If it is determined whether the dot adjacent in the medium conveyance direction is a blank dot and is a blank dot, in step S8-6-8, the overlapping print pattern generation unit 16a determines the remaining adjacent dots. Determine the number of prints. Specifically, when the second adjacent dot in the next line is not printed, the number of dots printed out of the first and third adjacent dots in the next line of the dot is determined.

そして、印刷数が2である場合、ステップS8−6−9で、重複印刷パターン生成部16aは、重複印刷最終ラインであるか否かを判定する。すなわち、当該ドットが重複印刷の最終行に位置するものであるか否かを判定する。そして、重複印刷最終ラインでない場合、ステップS8−6−10で、重複印刷パターン生成部16aは、ドットサイズを30〔%〕に変更する。すなわち、当該ドットのドットサイズが30〔%〕となるように当該ドットの縮小率を決定する。一方、重複印刷最終ラインである場合、ステップS8−6−11で、重複印刷パターン生成部16aは、ドットサイズを50〔%〕に変更する。すなわち、当該ドットのドットサイズが50〔%〕となるように当該ドットの縮小率を決定する。   If the number of prints is 2, in step S8-6-9, the duplicate print pattern generation unit 16a determines whether it is a duplicate print last line. That is, it is determined whether or not the dot is located in the last line of overlapping printing. If it is not the last line of overlapping printing, the overlapping printing pattern generation unit 16a changes the dot size to 30 [%] in step S8-6-10. That is, the dot reduction rate is determined so that the dot size is 30%. On the other hand, if it is a duplicate print last line, the duplicate print pattern generation unit 16a changes the dot size to 50 [%] in step S8-6-11. That is, the dot reduction rate is determined so that the dot size is 50%.

また、残りの隣接ドットの印刷数を判定して印刷数が1である場合、ステップS8−6−12で、重複印刷パターン生成部16aは、ドットサイズを50〔%〕に変更する。すなわち、当該ドットのドットサイズが50〔%〕となるように当該ドットの縮小率を決定する。   If the number of prints of the remaining adjacent dots is determined and the number of prints is 1, the duplicate print pattern generation unit 16a changes the dot size to 50 [%] in step S8-6-12. That is, the dot reduction rate is determined so that the dot size is 50%.

さらに、残りの隣接ドットの印刷数を判定して印刷数が0である場合、ステップS8−6−13で、重複印刷パターン生成部16aは、重複印刷最終ラインであるか否かを判定する。すなわち、当該ドットが重複印刷の最終行に位置するものであるか否かを判定する。そして、重複印刷最終ラインでない場合、ステップS8−6−14で、重複印刷パターン生成部16aは、ドットサイズを50〔%〕に変更する。すなわち、当該ドットのドットサイズが50〔%〕となるように当該ドットの縮小率を決定する。一方、重複印刷最終ラインである場合、ステップS8−6−15で、重複印刷パターン生成部16aは、ドットサイズを75〔%〕に変更する。すなわち、当該ドットのドットサイズが75〔%〕となるように当該ドットの縮小率を決定する。   Furthermore, when the number of prints of the remaining adjacent dots is determined and the number of prints is 0, in step S8-6-13, the duplicate print pattern generation unit 16a determines whether it is a duplicate print last line. That is, it is determined whether or not the dot is located in the last line of overlapping printing. If it is not the last line of overlapping printing, the overlapping printing pattern generation unit 16a changes the dot size to 50 [%] in step S8-6-14. That is, the dot reduction rate is determined so that the dot size is 50%. On the other hand, if it is a duplicate print last line, the duplicate print pattern generation unit 16a changes the dot size to 75 [%] in step S8-6-15. That is, the dot reduction rate is determined so that the dot size is 75%.

続いて、ステップS8−6−16で、重複印刷パターン生成部16aは、ライン端のドットデータであるか否かを判定する。すなわち、当該ドットが、データを取得した1ラインの端に位置するドットであるか否かを判定する。   Subsequently, in step S8-6-16, the duplicate print pattern generation unit 16a determines whether the dot data is line end dot data. That is, it is determined whether the dot is a dot located at the end of one line from which data is acquired.

そして、ライン端のドットデータでない場合、ステップS8−6−2で、重複印刷パターン生成部16aは、再度、1ドット分のデータを取得して以降の動作を繰り返す。   If it is not the dot data at the end of the line, in step S8-6-2, the overlapping print pattern generation unit 16a obtains data for one dot again and repeats the subsequent operations.

また、ライン端のドットデータである場合、ステップS8−6−17で、重複印刷パターン生成部16aは、重複印刷領域の最終ラインであるか否かを判定する。すなわち、データを取得したラインが重複印刷領域の最終のラインであるか否かを判定する。   If it is dot data at the end of the line, in step S8-6-17, the duplicate print pattern generation unit 16a determines whether it is the last line of the duplicate print region. That is, it is determined whether or not the line from which the data has been acquired is the last line in the overlapping print area.

そして、最終ラインでない場合、ステップS8−6−1で、重複印刷パターン生成部16aは、再度、1ライン分のデータを取得して以降の動作を繰り返す。   If it is not the last line, in step S8-6-1, the duplicate print pattern generation unit 16a obtains data for one line again and repeats the subsequent operations.

また、最終ラインである場合、重複印刷領域のすべてのドットについて、必要な場合には、補正を実施したことになるので、重複印刷パターン生成部16aは、その他イメージ重複印刷パターン生成処理を終了する。   In the case of the final line, all dots in the overlapping print area have been corrected if necessary, so the overlapping print pattern generation unit 16a ends the other image overlapping print pattern generation processing. .

このように、その他イメージ重複印刷パターン生成処理を実施することによって、図20及び21に示されるような印刷結果を得ることができる。図20に示される例では、多少印刷が太くなるものの、ドットサイズが縮小されているので、空白が目立ちすぎず、かつ、印刷が太くなりすぎず、全体として目立たなくなっている。また、図21に示される例では、位置ズレが発生したときに、空白部分が埋まってしまって完全に1ラインとなってしまわないようにするためにドットサイズが縮小されているので、グラデーションのようにぼかすことができ、目立ちにくくなっている。   As described above, by performing the other image duplication print pattern generation processing, a print result as shown in FIGS. 20 and 21 can be obtained. In the example shown in FIG. 20, although printing is somewhat thick, since the dot size is reduced, blanks are not too conspicuous, printing is not too thick, and the whole is not conspicuous. Further, in the example shown in FIG. 21, when the positional deviation occurs, the dot size is reduced to prevent the blank portion from being filled and becoming one line completely. So that it is less noticeable.

次に、フローチャートについて説明する。
ステップS8−6−1 1ライン分のデータを取得する。
ステップS8−6−2 1ドット分のデータを取得する。
ステップS8−6−3 隣接する次のラインの3ドット分のデータを取得する。
ステップS8−6−4 媒体搬送方向に隣接しているドットが空白ドットであるか否かを判定する。媒体搬送方向に隣接しているドットが空白ドットである場合はステップS8−6−8に進み、媒体搬送方向に隣接しているドットが空白ドットでない場合はステップS8−6−5に進む。
ステップS8−6−5 隣接ドットのサイズが当該ドットよりも小さいか否かを判定する。隣接ドットのサイズが当該ドットよりも小さい場合はステップS8−6−7に進み、隣接ドットのサイズが当該ドットよりも小さくない場合はステップS8−6−6に進む。
ステップS8−6−6 ドットサイズを変更しない。
ステップS8−6−7 隣接ドットと同サイズに変更する。
ステップS8−6−8 残りの隣接ドットの印刷数を判定する。残りの隣接ドットの印刷数が2である場合はステップS8−6−9に進み、残りの隣接ドットの印刷数が1である場合はステップS8−6−12に進み、残りの隣接ドットの印刷数が0である場合はステップS8−6−13に進む。
ステップS8−6−9 重複印刷最終ラインであるか否かを判定する。重複印刷最終ラインである場合はステップS8−6−11に進み、重複印刷最終ラインでない場合はステップS8−6−10に進む。
ステップS8−6−10 ドットサイズを30〔%〕に変更する。
ステップS8−6−11 ドットサイズを50〔%〕に変更する。
ステップS8−6−12 ドットサイズを50〔%〕に変更する。
ステップS8−6−13 重複印刷最終ラインであるか否かを判定する。重複印刷最終ラインである場合はステップS8−6−15に進み、重複印刷最終ラインでない場合はステップS8−6−14に進む。
ステップS8−6−14 ドットサイズを50〔%〕に変更する。
ステップS8−6−15 ドットサイズを75〔%〕に変更する。
ステップS8−6−16 ライン端のドットデータであるか否かを判定する。ライン端のドットデータである場合はステップS8−6−17に進み、ライン端のドットデータでない場合はステップS8−6−2に戻る。
ステップS8−6−17 重複印刷領域の最終ラインであるか否かを判定する。重複印刷領域の最終ラインである場合はその他イメージ重複印刷パターン生成処理を終了し、重複印刷領域の最終ラインでない場合はステップS8−6−1に戻る。
Next, a flowchart will be described.
Step S8-6-1: Data for one line is acquired.
Step S8-6-2: Data for one dot is acquired.
Step S8-6-3: Acquire data for 3 dots of the next adjacent line.
Step S8-6-4: It is determined whether the dots adjacent in the medium transport direction are blank dots. If the dot adjacent in the medium transport direction is a blank dot, the process proceeds to step S8-6-8. If the dot adjacent in the medium transport direction is not a blank dot, the process proceeds to step S8-6-5.
Step S8-6-5: It is determined whether or not the size of the adjacent dot is smaller than the dot. If the size of the adjacent dot is smaller than the dot, the process proceeds to step S8-6-7. If the size of the adjacent dot is not smaller than the dot, the process proceeds to step S8-6-6.
Step S8-6-6: Dot size is not changed.
Step S8-6-7: Change to the same size as adjacent dots.
Step S8-6-8: Determine the number of prints of the remaining adjacent dots. If the number of remaining adjacent dots is 2, the process proceeds to step S8-6-9. If the number of remaining adjacent dots is 1, the process proceeds to step S8-6-12, and the remaining adjacent dots are printed. If the number is 0, the process proceeds to step S8-6-13.
Step S8-6-9: It is determined whether or not it is a duplicate print last line. If it is the overlapping printing final line, the process proceeds to step S8-6-11. If it is not the overlapping printing final line, the process proceeds to step S8-6-10.
Step S8-6-10: The dot size is changed to 30 [%].
Step S8-6-11: The dot size is changed to 50 [%].
Step S8-6-12: The dot size is changed to 50 [%].
Step S8-6-13: It is determined whether or not it is a duplicate print last line. If it is the overlapping printing final line, the process proceeds to step S8-6-15, and if it is not the overlapping printing final line, the process proceeds to step S8-6-14.
Step S8-6-14: The dot size is changed to 50 [%].
Step S8-6-15: The dot size is changed to 75 [%].
Step S8-6-16: It is determined whether the dot data is at the end of the line. If it is dot data at the line end, the process proceeds to step S8-6-17, and if it is not dot data at the line end, the process returns to step S8-6-2.
Step S8-6-17: It is determined whether it is the last line of the overlapping print area. If it is the last line of the overlapping print region, the other image overlapping print pattern generation processing is terminated. If it is not the last line of the overlapping printing region, the process returns to step S8-6-1.

次に、バーコード重複印刷パターン生成処理のサブルーチンについて説明する。   Next, a subroutine for barcode duplicate print pattern generation processing will be described.

図23は本発明の実施の形態におけるバーコードデータの重複印刷パターンを説明する図、図24は本発明の実施の形態におけるバーコードデータの重複印刷の結果を説明する第1の図、図25は本発明の実施の形態におけるバーコードデータの重複印刷の結果を説明する第2の図、図26は本発明の実施の形態におけるバーコード重複印刷パターン生成処理のサブルーチンを示すフローチャートである。   FIG. 23 is a diagram for explaining a duplicate print pattern of barcode data in the embodiment of the present invention. FIG. 24 is a first diagram for explaining the result of duplicate print of barcode data in the embodiment of the present invention. FIG. 26 is a second diagram for explaining the result of duplicate printing of barcode data in the embodiment of the present invention, and FIG. 26 is a flowchart showing a subroutine of barcode duplication printing pattern generation processing in the embodiment of the present invention.

バーコードも、キャラクタと同様に、階調がないので、印刷ドットの有無のみで表現される。また、バーコードは、印刷方向によっては、連続するドットとなる。図23に示されれるように、印刷方向が横の場合、媒体搬送方向にドットが続くので、補正の必要がない。一方、印刷方向が縦の場合、媒体搬送方向にバーが並ぶ形状となるので、空白ドットを埋めてしまうときや、空白ドットが広がってしまうときがある。   The bar code, like the character, has no gradation and is therefore expressed only by the presence / absence of print dots. Further, the barcode is a continuous dot depending on the printing direction. As shown in FIG. 23, when the printing direction is horizontal, dots continue in the medium conveyance direction, so that correction is not necessary. On the other hand, when the printing direction is vertical, since the bars are arranged in the medium conveyance direction, the blank dots may be filled or the blank dots may spread.

バーコードの場合、ナローバーの幅とワイドバーの幅との比率が決まっており、この比率が大きくずれるとバーコードが読めなくなってしまう。ナローバーの幅とワイドバーの幅との比率は、バーサイズが2種類の場合、1:2〜3であり、バーサイズが4種類の場合、1:2:3:4である。そこで、本実施の形態においては、ナローバーのサイズによって補正量を決定する。   In the case of barcodes, the ratio between the width of the narrow bar and the width of the wide bar is determined, and if this ratio deviates greatly, the barcode cannot be read. The ratio between the width of the narrow bar and the width of the wide bar is 1: 2 to 3 when there are two types of bar sizes, and 1: 2: 3: 4 when there are four types of bar sizes. Therefore, in the present embodiment, the correction amount is determined by the size of the narrow bar.

図23に示されるように、ナローバー幅のサイズが大きくなればなるほどマージンが大きくなるので、ナローバー幅のサイズに応じてドットの縮小率を決定する。例えば、ナローバー幅が1ドットである場合、ワイドバー幅は2〜3ドットとなるが、ナローバー幅が5ドットである場合、ワイドバー幅は10〜15ドットとなる。したがって、ナローバー幅が5ドットである場合には、位置ズレによって1ドット分太くなっても影響が少ないが、ナローバー幅が1ドットの場合には、位置ズレによって1ドット分太くなると、ナローバーがワイドバーとして認識されてしまう恐れがある。   As shown in FIG. 23, the larger the narrow bar width size, the larger the margin. Therefore, the dot reduction rate is determined according to the narrow bar width size. For example, when the narrow bar width is 1 dot, the wide bar width is 2 to 3 dots, but when the narrow bar width is 5 dots, the wide bar width is 10 to 15 dots. Therefore, when the narrow bar width is 5 dots, there is little influence even if the position shift becomes thicker by 1 dot. However, when the narrow bar width is 1 dot, the narrow bar becomes wide when the position shift becomes thicker by 1 dot. There is a risk of being recognized as a bar.

バーコード重複印刷パターン生成処理が開始されると、ステップS8−7−1で、重複印刷パターン生成部16aは、まず、1ライン分のデータを取得する。具体的には、重複印刷領域における印刷ドットデータの1ラインに対応するデータを、重複印刷領域の最初のラインから順次、取得する。   When the barcode overlapping print pattern generation process is started, in step S8-7-1, the overlapping print pattern generation unit 16a first acquires data for one line. Specifically, data corresponding to one line of print dot data in the overlapping print area is sequentially acquired from the first line of the overlapping print area.

続いて、ステップS8−7−2で、重複印刷パターン生成部16aは、1ドット分のデータを取得する。具体的には、取得した1ラインの中の1ドットに対応するデータを、ラインの端のドットから順次、当該ドットのデータとして取得する。   Subsequently, in step S8-7-2, the duplicate print pattern generation unit 16a acquires data for one dot. Specifically, data corresponding to one dot in one acquired line is sequentially acquired from the dot at the end of the line as data of the dot.

続いて、ステップS8−7−3で、重複印刷パターン生成部16aは、隣接する次のラインの1ドット分のデータを取得する。具体的には、当該ドットの次のラインにおける隣接ドットのデータを取得する。   Subsequently, in step S8-7-3, the overlapping print pattern generation unit 16a acquires data for one dot of the next adjacent line. Specifically, the data of adjacent dots in the next line after the dot is acquired.

続いて、ステップS8−7−4で、重複印刷パターン生成部16aは、縦印刷であるか否かを判定する。具体的には、バーコードの各バーが媒体21の幅方向に延在するようにバーコードを印刷する縦印刷であるか、又は、バーコードの各バーが媒体21の搬送方向に延在するようにバーコードを印刷する横印刷であるかを判定する。   Subsequently, in step S8-7-4, the duplicate print pattern generation unit 16a determines whether or not vertical printing is performed. Specifically, it is vertical printing in which the barcode is printed so that each bar of the barcode extends in the width direction of the medium 21, or each bar of the barcode extends in the conveyance direction of the medium 21. In this way, it is determined whether or not the horizontal printing for printing the barcode.

そして、縦印刷でない場合、すなわち、横印刷である場合、ステップS8−7−5で、重複印刷パターン生成部16aは、ドットサイズを変更しない。具体的には、当該ドットのドットサイズを減少させないようにする。   If it is not vertical printing, that is, if it is horizontal printing, the overlapping print pattern generation unit 16a does not change the dot size in step S8-7-5. Specifically, the dot size of the dot is not reduced.

また、縦印刷である場合、ステップS8−7−6で、重複印刷パターン生成部16aは、隣接ドットが空白ドットであるか否かを判定する。具体的には、当該ドットの次のラインにおける隣接ドットが印刷されない空白ドットであるか否かを判定する。そして、空白ドットでない場合、すなわち、次のラインにおける隣接ドットが印刷される場合、ステップS8−7−5で、重複印刷パターン生成部16aは、ドットサイズを変更しない。また、空白ドットである場合、すなわち、次のラインにおける隣接ドットが印刷されない場合、ステップS8−7−7で、重複印刷パターン生成部16aは、ナローバー幅が1ドットであるか否かを判定する。ここで、ナローバー幅が1ドットでない場合、ステップS8−7−8で、重複印刷パターン生成部16aは、ナローバー幅を判定する。具体的には、ナローバー幅が2ドット、3ドット又は4ドットのいずれであるかを判定する。   In the case of vertical printing, in step S8-7-6, the overlapping print pattern generation unit 16a determines whether the adjacent dots are blank dots. Specifically, it is determined whether or not the adjacent dot in the line next to the dot is a blank dot that is not printed. If it is not a blank dot, that is, if an adjacent dot in the next line is printed, the overlapping print pattern generation unit 16a does not change the dot size in step S8-7-5. If it is a blank dot, that is, if an adjacent dot in the next line is not printed, in step S8-7-7, the overlapping print pattern generation unit 16a determines whether or not the narrow bar width is 1 dot. . If the narrow bar width is not 1 dot, the overlapping print pattern generation unit 16a determines the narrow bar width in step S8-7-8. Specifically, it is determined whether the narrow bar width is 2 dots, 3 dots, or 4 dots.

そして、ナローバー幅が4ドットである場合、ステップS8−7−5で、重複印刷パターン生成部16aは、ドットサイズを変更しない。また、ナローバー幅が3ドットである場合、ステップS8−7−9で、重複印刷パターン生成部16aは、ドットサイズを90〔%〕に変更する。すなわち、当該ドットのドットサイズが90〔%〕となるように当該ドットの縮小率を決定する。さらに、ナローバー幅が2ドットである場合、ステップS8−7−10で、重複印刷パターン生成部16aは、ドットサイズを70〔%〕に変更する。すなわち、当該ドットのドットサイズが70〔%〕となるように当該ドットの縮小率を決定する。   If the narrow bar width is 4 dots, the overlapping print pattern generation unit 16a does not change the dot size in step S8-7-5. If the narrow bar width is 3 dots, the overlapping print pattern generation unit 16a changes the dot size to 90 [%] in step S8-7-9. That is, the dot reduction rate is determined so that the dot size is 90%. Furthermore, when the narrow bar width is 2 dots, the overlapping print pattern generation unit 16a changes the dot size to 70 [%] in step S8-7-10. That is, the dot reduction rate is determined so that the dot size is 70%.

なお、ナローバー幅が1ドットであるか否かを判定して1ドットである場合、ステップS8−7−11で、重複印刷パターン生成部16aは、ドットサイズを50〔%〕に変更する。すなわち、当該ドットのドットサイズが50〔%〕となるように当該ドットの縮小率を決定する。   If the narrow bar width is 1 dot and it is 1 dot, the overlapping print pattern generation unit 16a changes the dot size to 50 [%] in step S8-7-11. That is, the dot reduction rate is determined so that the dot size is 50%.

続いて、重複印刷パターン生成部16aは、ステップS8−7−12で、ライン端のドットデータであるか否かを判定する。すなわち、当該ドットが、データを取得した1ラインの端に位置するドットであるか否かを判定する。   Subsequently, in step S8-7-12, the duplicate print pattern generation unit 16a determines whether the dot data is line end data. That is, it is determined whether the dot is a dot located at the end of one line from which data is acquired.

そして、ライン端のドットデータでない場合、ステップS8−7−2で、重複印刷パターン生成部16aは、再度、1ドット分のデータを取得して以降の動作を繰り返す。   If it is not the dot data at the end of the line, in step S8-7-2, the overlapping print pattern generation unit 16a obtains data for one dot again and repeats the subsequent operations.

また、ライン端のドットデータである場合、ステップS8−7−13で、重複印刷パターン生成部16aは、重複印刷領域の最終ラインであるか否かを判定する。すなわち、データを取得したラインが重複印刷領域の最終のラインであるか否かを判定する。   If it is dot data at the end of the line, in step S8-7-13, the duplicate print pattern generation unit 16a determines whether it is the last line of the duplicate print region. That is, it is determined whether or not the line from which the data has been acquired is the last line in the overlapping print area.

そして、最終ラインでない場合、ステップS8−7−1で、重複印刷パターン生成部16aは、再度、1ライン分のデータを取得して以降の動作を繰り返す。   If it is not the last line, in step S8-7-1, the duplicate print pattern generation unit 16a obtains data for one line again and repeats the subsequent operations.

また、最終ラインである場合、重複印刷領域のすべてのドットについて、必要な場合には、補正を実施したことになるので、重複印刷パターン生成部16aは、バーコード重複印刷パターン生成処理を終了する。   In the case of the final line, all dots in the overlapping print area have been corrected if necessary, so the overlapping print pattern generation unit 16a ends the barcode overlapping print pattern generation process. .

このように、バーコード重複印刷パターン生成処理を実施することによって、図24及び25に示されるような印刷結果を得ることができる。図24に示される例は、バーコードの各バーが媒体21の搬送方向に延在するようにバーコードを印刷する横印刷の例であって、印刷ドットが媒体21の搬送方向に連続するので、位置ズレによって印刷ドットが重複して印刷されても問題がない。また、図25に示される例は、バーコードの各バーが媒体21の幅方向に延在するようにバーコードを印刷する縦印刷の例である。この場合、位置ズレが発生することによって、空白バー及び黒バーが多少太くなるが、ドットサイズが小さくされているので、太くなる量が空白バー及び黒バーに分散されるので、極端に太くなったり極端に狭くなったりすることが防止される。   As described above, by executing the barcode duplication print pattern generation process, a print result as shown in FIGS. 24 and 25 can be obtained. The example shown in FIG. 24 is an example of horizontal printing in which the barcode is printed so that each bar of the barcode extends in the conveyance direction of the medium 21, and the printing dots are continuous in the conveyance direction of the medium 21. There is no problem even if the printing dots are printed overlapping due to the positional deviation. The example shown in FIG. 25 is an example of vertical printing in which a barcode is printed so that each bar of the barcode extends in the width direction of the medium 21. In this case, the blank bar and black bar become slightly thick due to the occurrence of misalignment, but since the dot size is reduced, the amount of thickening is distributed to the blank bar and black bar, so it becomes extremely thick. Or extremely narrow.

次に、フローチャートについて説明する。
ステップS8−7−1 1ライン分のデータを取得する。
ステップS8−7−2 1ドット分のデータを取得する。
ステップS8−7−3 隣接する次のラインの1ドット分のデータを取得する。
ステップS8−7−4 縦印刷であるか否かを判定する。縦印刷である場合はステップS8−7−6に進み、縦印刷でない場合はステップS8−7−5に進む。
ステップS8−7−5 ドットサイズを変更しない。
ステップS8−7−6 隣接ドットが空白ドットであるか否かを判定する。隣接ドットが空白ドットである場合はステップS8−7−7に進み、隣接ドットが空白ドットでない場合はステップS8−7−5に戻る。
ステップS8−7−7 ナローバー幅が1ドットであるか否かを判定する。ナローバー幅が1ドットである場合はステップS8−7−11に進み、ナローバー幅が1ドットでない場合はステップS8−7−8に進む。
ステップS8−7−8 重複印刷パターン生成部16aは、ナローバー幅を判定する。ナローバー幅が4ドットである場合はステップS8−7−5に戻り、ナローバー幅が3ドットである場合はステップS8−7−9に進み、ナローバー幅が2ドットである場合はステップS8−7−10に進む。
ステップS8−7−9 ドットサイズを90〔%〕に変更する。
ステップS8−7−10 ドットサイズを70〔%〕に変更する。
ステップS8−7−11 ドットサイズを50〔%〕に変更する。
ステップS8−7−12 ライン端のドットデータであるか否かを判定する。ライン端のドットデータである場合はステップS8−7−13に進み、ライン端のドットデータでない場合はステップS8−7−2に戻る。
ステップS8−7−13 重複印刷領域の最終ラインであるか否かを判定する。重複印刷領域の最終ラインである場合はバーコード重複印刷パターン生成処理を終了し、重複印刷領域の最終ラインでない場合はステップS8−7−1に戻る。
Next, a flowchart will be described.
Step S8-7-1: Data for one line is acquired.
Step S8-7-2: Data for one dot is acquired.
Step S8-7-3: Acquire data for one dot of the next adjacent line.
Step S8-7-4: It is determined whether or not the vertical printing is performed. If it is vertical printing, the process proceeds to step S8-7-6, and if it is not vertical printing, the process proceeds to step S8-7-5.
Step S8-7-5 The dot size is not changed.
Step S8-7-6: It is determined whether or not the adjacent dot is a blank dot. If the adjacent dot is a blank dot, the process proceeds to step S8-7-7. If the adjacent dot is not a blank dot, the process returns to step S8-7-5.
Step S8-7-7: It is determined whether or not the narrow bar width is 1 dot. If the narrow bar width is 1 dot, the process proceeds to step S8-7-11. If the narrow bar width is not 1 dot, the process proceeds to step S8-7-8.
Step S8-7-8 The overlapping print pattern generation unit 16a determines the narrow bar width. If the narrow bar width is 4 dots, the process returns to step S8-7-5. If the narrow bar width is 3 dots, the process proceeds to step S8-7-9. If the narrow bar width is 2 dots, the process proceeds to step S8-7-5. Proceed to 10.
Step S8-7-9: The dot size is changed to 90 [%].
Step S8-7-10: The dot size is changed to 70 [%].
Step S8-7-11: The dot size is changed to 50 [%].
Step S8-7-12: It is determined whether the dot data is at the line end. If it is dot data at the line end, the process proceeds to step S8-7-13, and if it is not dot data at the line end, the process returns to step S8-7-2.
Step S8-7-13: It is determined whether it is the last line of the overlapping print area. If it is the last line of the overlapping print area, the barcode overlapping print pattern generation process is terminated. If it is not the last line of the overlapping print area, the process returns to step S8-7-1.

このように、本実施の形態においては、重複印刷を実施することによって、媒体21の切断時の印刷の中断に起因するホワイトラインの発生を防止するとともに、重複印刷領域では、印刷データのタイプ並びに各ドット及びその隣接ドットのパターンに応じてドットサイズを補正することによって、特に、その他イメージデータの印刷のような階調印刷において重複印刷領域で空白が埋まることにより発生する黒ライン等を防止することにより、印刷品質を向上させることができる。   As described above, in the present embodiment, by performing overlapping printing, it is possible to prevent the generation of a white line due to the interruption of printing when the medium 21 is cut. By correcting the dot size according to the pattern of each dot and its adjacent dots, it is possible to prevent black lines and the like that are generated due to filling of blanks in overlapping print areas, particularly in gradation printing such as printing of image data. As a result, the print quality can be improved.

なお、本実施の形態においては、ドットの縮小率を数値で設定した例について説明したが、ドットサイズの縮小率はこれに限定されるものではない。さらに、あらかじめロゴ等を登録する領域を設けている場合、ロゴ等の登録時点で重複印刷が必要かを判定し、重複印刷パターンを生成してもよい。   In this embodiment, the example in which the dot reduction rate is set numerically has been described. However, the dot size reduction rate is not limited to this. Furthermore, when an area for registering a logo or the like is provided in advance, it may be determined whether duplicate printing is necessary at the time of registration of the logo or the like, and an overlapping print pattern may be generated.

また、本発明は前記実施の形態に限定されるものではなく、本発明の趣旨に基づいて種々変形させることが可能であり、それらを本発明の範囲から排除するものではない。   The present invention is not limited to the above-described embodiment, and various modifications can be made based on the spirit of the present invention, and they are not excluded from the scope of the present invention.

本発明は、印刷装置及び印刷方法に利用することができる。   The present invention can be used in a printing apparatus and a printing method.

10 印刷装置
11 印刷ヘッド
12 カッタ
21 媒体
22 プラテンローラ
DESCRIPTION OF SYMBOLS 10 Printing apparatus 11 Print head 12 Cutter 21 Medium 22 Platen roller

Claims (7)

媒体を搬送する媒体搬送装置と、
前記媒体に印刷する印刷ヘッドと、
前記媒体を切断する媒体切断機と、
前記媒体搬送装置、印刷ヘッド及び媒体切断機の動作を制御する制御装置とを備える印刷装置であって、
前記媒体切断機が媒体を切断する場合、該媒体の切断時に前記印刷ヘッドが印刷データの印刷開始位置と印刷終了位置との間で印刷を中断するときには、
前記制御装置が重複印刷領域を設定し、前記媒体搬送装置が前記重複印刷領域分だけ前記媒体を逆方向に搬送した後、前記印刷ヘッドが印刷データの印刷を再開するとともに前記媒体搬送装置が前記媒体の搬送を再開して前記重複印刷領域に重複印刷を実施し、
前記制御装置は、前記印刷データのタイプ並びに前記重複印刷領域における印刷ドット及び該印刷ドットの周囲の印刷ドットのドットパターンに基づいて、前記重複印刷領域における印刷ドットのサイズを縮小する補正を実施することを特徴とする印刷装置。
A medium conveying device for conveying the medium;
A print head for printing on the medium;
A medium cutting machine for cutting the medium;
A printing apparatus comprising a control device for controlling operations of the medium conveying device, the print head, and the medium cutting machine,
When the medium cutting machine cuts the medium, when the print head interrupts printing between the print start position and the print end position of the print data when the medium is cut,
After the control device sets an overlap print area and the medium transport device transports the medium in the reverse direction by the overlap print region, the print head resumes printing of print data and the medium transport device Resuming the conveyance of the medium and performing the duplication printing in the duplication printing area,
The control device performs a correction for reducing the size of the print dots in the overlap print area based on the type of the print data and the dot pattern of the print dots in the overlap print area and the print dots around the print dot. A printing apparatus characterized by that.
前記制御装置は、前記媒体切断機が媒体を切断する位置から前記印刷ヘッドが媒体に印刷する位置までの距離、前記媒体切断機が前記媒体を切断する位置から前記印刷ヘッドが媒体に印刷する印刷データの印刷開始位置までの距離、前記印刷データの印刷開始位置から印刷終了位置までの距離、及び、前記媒体切断機が媒体を切断する際に発生する媒体の位置ズレの量に基づいて、前記重複印刷領域を設定する請求項1に記載の印刷装置。   The control device includes: a distance from a position where the medium cutting machine cuts the medium to a position where the print head prints on the medium; and a print where the print head prints on the medium from a position where the medium cutting machine cuts the medium. Based on the distance from the print start position of the data, the distance from the print start position of the print data to the print end position, and the amount of medium misalignment that occurs when the medium cutting machine cuts the medium, The printing apparatus according to claim 1, wherein an overlapping print area is set. 前記印刷データのタイプは、キャラクタデータ、バーコードデータ、及び、その他イメージデータを含む請求項1又は2に記載の印刷装置。   The printing apparatus according to claim 1, wherein the print data type includes character data, barcode data, and other image data. 前記印刷データのタイプがキャラクタデータである場合、前記制御装置は、前記重複印刷領域における印刷ドットに隣接する次の印刷ラインの1つの印刷ドットのドットパターンに基づいて、前記印刷ドットのサイズを縮小する補正を実施する請求項3に記載の印刷装置。 When the type of the print data is character data, the control device reduces the size of the print dot based on the dot pattern of one print dot of the next print line adjacent to the print dot in the overlapping print region. The printing apparatus according to claim 3, wherein the correction is performed . 前記印刷データのタイプがバーコードデータである場合、前記制御装置は、バーコードのバーの延在する方向、及び、前記重複印刷領域における印刷ドットに隣接する次の印刷ラインの1つの印刷ドットのドットパターンに基づいて、前記印刷ドットのサイズを縮小する補正を実施する請求項3に記載の印刷装置。 When the type of the print data is barcode data, the control device determines the direction in which the bar of the barcode extends and one print dot of the next print line adjacent to the print dot in the overlap print area. The printing apparatus according to claim 3, wherein correction is performed to reduce the size of the print dots based on a dot pattern. 前記印刷データのタイプがその他イメージデータである場合、前記制御装置は、前記重複印刷領域における印刷ドットに隣接する次の印刷ラインの3つの印刷ドットのドットパターンに基づいて、前記印刷ドットのサイズを縮小する補正を実施する請求項3に記載の印刷装置。 When the type of the print data is other image data, the control device determines the size of the print dot based on the dot pattern of the three print dots of the next print line adjacent to the print dot in the overlapping print region. The printing apparatus according to claim 3, wherein correction for reduction is performed . 媒体を媒体切断機によって切断する場合、前記媒体の切断時に印刷ヘッドが印刷データの印刷開始位置と印刷終了位置との間で印刷を中断するときには、
重複印刷領域を設定し、該重複印刷領域分だけ前記媒体を逆方向に搬送した後、前記印刷ヘッドが印刷データの印刷を再開するとともに前記媒体の搬送を再開して前記重複印刷領域に重複印刷を実施し、
前記印刷データのタイプ並びに前記重複印刷領域における印刷ドット及び該印刷ドットの周囲の印刷ドットのドットパターンに基づいて、前記重複印刷領域における印刷ドットのサイズを縮小する補正を実施することを特徴とする印刷方法。
When the medium is cut by the medium cutting machine, when the print head interrupts printing between the print start position and the print end position of the print data when the medium is cut,
After setting an overlap print area and transporting the medium in the reverse direction by the overlap print area, the print head restarts printing of print data and restarts transport of the medium to overlap the overlap print area. Carried out
The correction for reducing the size of the print dot in the overlap print area is performed based on the type of the print data and the dot pattern of the print dot in the overlap print area and the print dot around the print dot. Printing method.
JP2014008621A 2014-01-21 2014-01-21 Printing apparatus and printing method Expired - Fee Related JP6219732B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014008621A JP6219732B2 (en) 2014-01-21 2014-01-21 Printing apparatus and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014008621A JP6219732B2 (en) 2014-01-21 2014-01-21 Printing apparatus and printing method

Publications (2)

Publication Number Publication Date
JP2015136824A JP2015136824A (en) 2015-07-30
JP6219732B2 true JP6219732B2 (en) 2017-10-25

Family

ID=53768178

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014008621A Expired - Fee Related JP6219732B2 (en) 2014-01-21 2014-01-21 Printing apparatus and printing method

Country Status (1)

Country Link
JP (1) JP6219732B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10960612B2 (en) 2015-07-08 2021-03-30 Mitsubishi Chemical Corporation Method for manufacturing fiber-reinforced composite material and fiber-reinforced composite material

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01228869A (en) * 1988-03-09 1989-09-12 Nec Corp Printing control method
JPH05294021A (en) * 1992-04-16 1993-11-09 Brother Ind Ltd Tape printer
JP3928330B2 (en) * 2000-04-28 2007-06-13 コニカミノルタホールディングス株式会社 Image recording device
JP4380733B2 (en) * 2007-06-20 2009-12-09 キヤノン株式会社 Apparatus and method for managing copy history of manuscript
JP5532836B2 (en) * 2009-11-11 2014-06-25 セイコーエプソン株式会社 RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM

Also Published As

Publication number Publication date
JP2015136824A (en) 2015-07-30

Similar Documents

Publication Publication Date Title
JP2014226869A (en) Printer, control system, control method for printer, and program
JP5088200B2 (en) Printing apparatus and printing apparatus control method
JPS6144074B2 (en)
JP6219732B2 (en) Printing apparatus and printing method
JP2009193428A (en) Barcode printing system and print program
JP4419645B2 (en) Printing device
JP4300615B2 (en) Printing cutting apparatus and recording medium
JP2014008660A (en) Inkjet recorder, and method for generating mask pattern
JP2004066595A (en) Recorder and recording method for pattern for registration
JP2004106415A (en) Recording system
JP2010214623A (en) Printing method, printing apparatus, and test pattern
JP2007130934A (en) Inkjet recording apparatus
JP2008023982A (en) Inkjet recording device and ink jet recording method
JP2004050705A (en) Inkjet recorder, method of inkjet recording, program and memory medium
JP2011131492A (en) Recorder and control method therefor
JP2009078449A (en) Printing method of bar code and printer apparatus
JP2020044715A (en) Printer and deviation amount calculation method thereof
JP3680909B2 (en) Serial printer
JP2019181893A (en) Inkjet recording device and recording method
JP5917073B2 (en) Printing apparatus and printing control method
JP5736757B2 (en) Printing apparatus and printing method
JP2019034471A (en) Inkjet recording device, inkjet recording system and inkjet recording method
JP2012035602A (en) Recorder, recording system, and recording module
JP5032275B2 (en) Printing apparatus and printing method
JP2005125536A (en) Printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160615

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170414

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170905

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170928

R150 Certificate of patent or registration of utility model

Ref document number: 6219732

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees