JP2017185790A - Printer, printing method and printing program - Google Patents

Printer, printing method and printing program Download PDF

Info

Publication number
JP2017185790A
JP2017185790A JP2017052241A JP2017052241A JP2017185790A JP 2017185790 A JP2017185790 A JP 2017185790A JP 2017052241 A JP2017052241 A JP 2017052241A JP 2017052241 A JP2017052241 A JP 2017052241A JP 2017185790 A JP2017185790 A JP 2017185790A
Authority
JP
Japan
Prior art keywords
line data
dots
line
data
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.)
Granted
Application number
JP2017052241A
Other languages
Japanese (ja)
Other versions
JP6988109B2 (en
Inventor
亮輔 畑
Ryosuke Hata
亮輔 畑
健二 植松
Kenji Uematsu
健二 植松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to US15/472,122 priority Critical patent/US10137714B2/en
Priority to CN201710200835.5A priority patent/CN107264062B/en
Publication of JP2017185790A publication Critical patent/JP2017185790A/en
Application granted granted Critical
Publication of JP6988109B2 publication Critical patent/JP6988109B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • B41J2/325Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads by selective transfer of ink from ink carrier, e.g. from ink ribbon or sheet
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/66Applications of cutting devices
    • B41J11/70Applications of cutting devices cutting perpendicular to the direction of paper feed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material
    • B41J3/4075Tape printers; Label printers

Abstract

PROBLEM TO BE SOLVED: To provide a printer that can print with high quality by making heating elements arranged in a thermal head generate heat in a suitable manner.SOLUTION: The printer includes a printing head that includes a plurality of heating elements arranged in a first direction, and a controller. Printing data representing an image to be printed on a printing medium are divided into a plurality of line data, each line data extending in the first direction and consisting of conduction dots and non-conduction dots. The controller, for each of the line data, selectively activates the plurality of heating elements that correspond to the conduction dots in the line data so as to make the selected heating elements generate heat and print the corresponding plurality of conduction dots in the line data on the printing medium. Further, the controller, for each of the line data, obtains distribution information of the plurality of conduction dots in the line data, and sets an energizing time, during which the selected heating elements are energized, in accordance with the distribution information of the plurality of conduction dots in the line data.SELECTED DRAWING: Figure 7

Description

本発明は、印刷装置、印刷方法及びプログラムに関する。   The present invention relates to a printing apparatus, a printing method, and a program.

従来、サーマルヘッドに配設された発熱素子を発熱駆動することにより、任意の文字、絵柄等を含む印刷データを、ロール状に巻かれた長尺状のテープに印刷し、該テープを切断することでラベルを容易に作成することが可能な印刷装置が用いられている。印刷装置は、長尺状のテープがサーマルヘッドとプラテンローラとの間にインクリボンとともに搬送され、インクリボンのうちサーマルヘッドにより加熱された部分が、文字、絵柄等を含む描画図案として長尺状のテープの表面に熱転写されることで印刷を行う。このような印刷装置においては、サーマルヘッドを印刷データの各1ラインデータに応じて発熱駆動すると同時に、インクリボンおよびテープを1ラインずつ搬送させることにより、印刷データを順次1ラインずつ印刷出力している。   Conventionally, by driving a heat generating element provided in a thermal head to generate heat, print data including arbitrary characters, designs, etc. is printed on a long tape wound in a roll shape, and the tape is cut. Thus, a printing apparatus capable of easily creating a label is used. In the printing device, a long tape is transported with an ink ribbon between a thermal head and a platen roller, and a portion of the ink ribbon heated by the thermal head is long as a drawing pattern including characters, patterns, etc. Printing is performed by thermal transfer onto the surface of the tape. In such a printing apparatus, the thermal head is driven to generate heat in accordance with each line data of the print data, and at the same time, the ink ribbon and the tape are conveyed line by line to print out the print data sequentially line by line. Yes.

このような熱転写式の印刷装置では、サーマルヘッドの発熱素子を発熱させて印刷を行なうので、ある発熱素子が発熱していると、その熱が隣接する発熱素子にも伝わる。すなわち、隣接する発熱素子は目標温度よりも高くなり、余分なインクが溶融して印刷した文字等のつぶれなどが発生する。すなわち、近傍の発熱素子から発生した熱の影響を受けて印刷品質が低下する、という問題がある。   In such a thermal transfer type printing apparatus, printing is performed by generating heat from the heat generating element of the thermal head. Therefore, when a certain heat generating element generates heat, the heat is transmitted to the adjacent heat generating element. That is, the adjacent heat generating element becomes higher than the target temperature, and the excess ink is melted and the printed characters are crushed. That is, there is a problem that the print quality is deteriorated due to the influence of heat generated from a nearby heating element.

このような問題を解決するため、サーマルヘッドに付随したサーミスタで得られるサーマルヘッド周辺の温度をフィードバックすることで、通電時間を変化させて印刷を行う技術がある。   In order to solve such a problem, there is a technique for performing printing by changing the energization time by feeding back the temperature around the thermal head obtained by a thermistor attached to the thermal head.

また、サーマルヘッドの有効印字ドット数に対する印字データの割合(黒ドット率)を用いて、印字データを分割したり、印字速度を変化させたりする制御が行われる技術がある。例えば、印加される発熱素子の数を検出し、その検出結果に基づいて発熱素子に印加するパルスの数を制御する熱転写式記録装置が開示されている(例えば、特許文献1参照。)。   In addition, there is a technique in which control is performed to divide print data or change the print speed using the ratio of print data to the number of effective print dots of the thermal head (black dot ratio). For example, a thermal transfer recording apparatus that detects the number of applied heat generating elements and controls the number of pulses applied to the heat generating elements based on the detection result is disclosed (for example, see Patent Document 1).

特開平6−143648号公報JP-A-6-143648

しかしながら、サーマルヘッド周辺温度の変動とサーマルヘッド自身の温度の変動との間にはライムラグがあるため、適切な通電時間で印刷することができず、良好な印刷品質を保つことができない、という問題がある。   However, there is a lime lag between the fluctuation of the thermal head ambient temperature and the temperature fluctuation of the thermal head itself, so printing cannot be performed in an appropriate energization time, and good print quality cannot be maintained. There is.

また、黒ドット率に基づいて印字速度を変化させる場合でも、黒ドットデータの分布の相違により、印刷品質にバラつきが生じる、という問題点がある。   Further, even when the printing speed is changed based on the black dot rate, there is a problem that the printing quality varies due to the difference in the distribution of black dot data.

本発明は、上述のような実状に鑑みたものであり、高品質の印刷を行うことが可能な印刷装置、および印刷装置において実行する印刷プログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printing apparatus capable of performing high-quality printing and a printing program executed in the printing apparatus.

上記課題を解決するため、本発明の印刷装置は、
ある方向に配列された複数の発熱素子を含む印刷ヘッドと、制御部とを備える印刷装置であって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記制御部は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを特徴とする。
また、上記課題を解決するため、本発明の印刷方法は、
ある方向に配列された複数の発熱素子を含む印刷ヘッドを備える印刷装置を用いた印刷方法であって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記印刷方法は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを含むことを特徴とする。
さらに、上記課題を解決するため、本発明のプログラムは、
ある方向に配列された複数の発熱素子を含む印刷ヘッドを備える印刷装置の制御部により読取られた際に、前記制御部に処理を実行させるプログラムであって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記制御部に実行させる処理は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを含むことを特徴とする。
In order to solve the above problems, the printing apparatus of the present invention provides:
A printing apparatus including a print head including a plurality of heating elements arranged in a certain direction, and a control unit,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The controller is
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data An energization time for supplying a current to the generated heating element is set.
In addition, in order to solve the above problems, the printing method of the present invention includes:
A printing method using a printing apparatus including a print head including a plurality of heating elements arranged in a certain direction,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The printing method includes:
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data And setting an energization time for supplying a current to the generated heating element.
Furthermore, in order to solve the above problems, the program of the present invention
A program for causing the control unit to execute processing when read by a control unit of a printing apparatus including a print head including a plurality of heating elements arranged in a certain direction,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The process to be executed by the control unit is as follows:
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data And setting an energization time for supplying a current to the generated heating element.

本発明によれば、サーマルヘッドに配設された発熱素子を適切に発熱駆動することにより、高品質の印刷を行うことができる、という効果を奏する。   According to the present invention, there is an effect that high-quality printing can be performed by appropriately driving the heating elements disposed in the thermal head to generate heat.

実施の形態に係る印刷装置を示す平面図である。It is a top view which shows the printing apparatus which concerns on embodiment. 実施の形態に係る印刷装置の断面図である。It is sectional drawing of the printing apparatus which concerns on embodiment. 実施の形態に係る印刷装置のハードウェアブロック図である。It is a hardware block diagram of the printing apparatus which concerns on embodiment. 実施の形態に係る印刷装置の機能ブロック図である。1 is a functional block diagram of a printing apparatus according to an embodiment. 印刷データの例を示す図である。It is a figure which shows the example of print data. ラインデータを説明するための図である。It is a figure for demonstrating line data. 実施の形態に係る印刷処理の流れを示すフローチャートである。6 is a flowchart showing a flow of printing processing according to the embodiment. ラインデータの構成例を示す図である。It is a figure which shows the structural example of line data. 分割ラインデータの構成例を示す図である。It is a figure which shows the structural example of division line data. 変数と計数との関係を示す図である。It is a figure which shows the relationship between a variable and a count. ラインデータを分割する理由を説明するための図である。It is a figure for demonstrating the reason which divides | segments line data.

以下、本発明の実施の形態について、図面を参照しながら詳細に説明する。
図1は、実施の形態に係る印刷装置を示す平面図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a plan view showing a printing apparatus according to an embodiment.

図1に示すように、印刷装置1は、装置筐体2、入力部3、表示部4、開閉蓋17、およびカセット収納部18を備える。なお、印刷装置1は、入力部3と表示部4を不図示の外部装置(例えばコンピュータ)が備え、印刷対象である所望の描画図案の印刷データを、その外部装置から受信する形態の印刷装置であってもよい。   As shown in FIG. 1, the printing apparatus 1 includes an apparatus housing 2, an input unit 3, a display unit 4, an opening / closing lid 17, and a cassette storage unit 18. Note that the printing apparatus 1 includes an input unit 3 and a display unit 4 provided in an external device (not shown) such as a computer, and receives a print data of a desired drawing pattern to be printed from the external device. It may be.

装置筐体2の上面には、入力部3、表示部4、および開閉蓋17が配置されている。装置筐体2の右側面には、被印刷媒体Mの排出口2aが形成されている。被印刷媒体Mは、例えば、予めロール状に巻かれた長尺状のテープである。   An input unit 3, a display unit 4, and an opening / closing lid 17 are disposed on the upper surface of the apparatus housing 2. A discharge port 2 a for the printing medium M is formed on the right side surface of the apparatus housing 2. The printing medium M is, for example, a long tape wound in advance in a roll shape.

入力部3は、文字、絵柄等を含む所望の描画図案を入力する入力キー、印刷開始を指示する印刷キー、表示部4の表示画面上のカーソルを移動操作するカーソルキー、印刷モードの設定や各種設定処理を行う種々の制御キーなどのいずれかまたは全部を備える。なお、上述の入力キーは、文字データを入力する文字入力キーを含む。   The input unit 3 includes an input key for inputting a desired drawing design including characters, designs, etc., a print key for instructing start of printing, a cursor key for moving the cursor on the display screen of the display unit 4, setting of a print mode, Any or all of various control keys for performing various setting processes are provided. The above-described input keys include character input keys for inputting character data.

表示部4は、例えば液晶表示パネルであり、入力部3からの入力に対応する文字を含む画像、各種の設定のための選択メニュー、各種の処理に関するメッセージ等を表示する。   The display unit 4 is, for example, a liquid crystal display panel, and displays an image including characters corresponding to the input from the input unit 3, selection menus for various settings, messages regarding various processes, and the like.

開閉蓋17は、カセット収納部18の上部において、カセット収納部18を開閉可能に配置されている。開閉蓋17は、例えば、ボタン17aを押下されることにより開放する
。また、開閉蓋17には、この開閉蓋17が閉じた状態でもカセット収納部18に収納するカセット20(図2参照)の有無を目視可能とするために、窓部17bが形成されている。
図2は、実施の形態に係る印刷装置の断面図である。
図2には、カセット収納部18付近の構造が示されている。カセット収納部18には、被印刷媒体MとインクリボンRが収容されたカセット20が着脱自在に収納される。被印刷媒体Mは、カセット20内部のテープコア23にロール状に巻かれていて、熱転写用のインクリボンRとともに印刷装置1に設けられたサーマルヘッド部(印刷ヘッド)30へ搬送ローラ13により搬送される。インクリボンRは、カセット20内部のリボン供給コア24にロール状に巻かれている。サーマルヘッド部30によりインクが被印刷媒体Mに転写された使用済みのインクリボンRは、リボン巻取コア25に巻き取られる。サーマルヘッド部30を通過した被印刷媒体Mは、印刷処理が終了するとカット機構16で切断され、排出口2aから排出される。
The opening / closing lid 17 is disposed above the cassette housing portion 18 so that the cassette housing portion 18 can be opened and closed. The open / close lid 17 is opened, for example, when the button 17a is pressed. Further, the opening / closing lid 17 is formed with a window portion 17b so that the presence / absence of the cassette 20 (see FIG. 2) stored in the cassette storage portion 18 can be visually confirmed even when the opening / closing lid 17 is closed.
FIG. 2 is a cross-sectional view of the printing apparatus according to the embodiment.
FIG. 2 shows the structure near the cassette housing 18. A cassette 20 in which the printing medium M and the ink ribbon R are accommodated is detachably accommodated in the cassette accommodating portion 18. The printing medium M is wound around a tape core 23 inside the cassette 20 in a roll shape, and is conveyed by a conveying roller 13 to a thermal head portion (printing head) 30 provided in the printing apparatus 1 together with an ink ribbon R for thermal transfer. The The ink ribbon R is wound around a ribbon supply core 24 inside the cassette 20 in a roll shape. The used ink ribbon R in which the ink is transferred to the printing medium M by the thermal head unit 30 is taken up by the ribbon take-up core 25. The print medium M that has passed through the thermal head unit 30 is cut by the cutting mechanism 16 and discharged from the discharge port 2a when the printing process is completed.

図3は、実施の形態に係る印刷装置のハードウェアブロック図である。
図3に示すように、印刷装置1は、上述の入力部3および表示部4の他、制御部5、ROM(Read Only Memory)6、RAM(Random Access Memory)7、表示部駆動回路8、ヘッド駆動回路9、印刷ヘッドの一例であるサーマルヘッド部30、搬送用モータ駆動回路11、搬送用モータ12、搬送ローラ13、カッターモータ駆動回路14、カッターモータ15、およびカット機構16を備える。
FIG. 3 is a hardware block diagram of the printing apparatus according to the embodiment.
As shown in FIG. 3, the printing apparatus 1 includes a control unit 5, a ROM (Read Only Memory) 6, a RAM (Random Access Memory) 7, a display unit drive circuit 8, in addition to the input unit 3 and the display unit 4 described above. The head drive circuit 9 includes a thermal head unit 30 which is an example of a print head, a transport motor drive circuit 11, a transport motor 12, a transport roller 13, a cutter motor drive circuit 14, a cutter motor 15, and a cutting mechanism 16.

なお、印刷装置1は、例えば、図1に示す被印刷媒体Mに、印刷データに基づいて、所望の描画図案を印刷後、被印刷媒体Mを切断することにより、所望の描画図案が印刷された印刷物を作成する。例えば、長尺状のテープは、任意の文字、絵柄等を含む所望の描画図案の印刷が行われてから、テープ片(ラベル)として切り出される。また、長尺状のテープは、例えば、接着層を有する基材と、接着層を覆うように剥離可能に基材に貼付された剥離紙とを有し、熱転写用のインクリボンRとともにサーマルヘッド部30へ搬送される。ただし、印刷装置1は、ロール状に巻かれずに積層された状態で収容される枚葉紙などの他の被印刷媒体に印刷を行う装置であってもよい。   The printing apparatus 1 prints a desired drawing design by, for example, cutting the printing medium M after printing the desired drawing design on the printing medium M shown in FIG. 1 based on the print data. Create printed materials. For example, a long tape is cut out as a tape piece (label) after a desired drawing design including arbitrary characters, designs and the like is printed. The long tape has, for example, a base having an adhesive layer and a release paper affixed to the base so as to cover the adhesive layer, and a thermal head together with an ink ribbon R for thermal transfer. It is conveyed to the unit 30. However, the printing apparatus 1 may be an apparatus that performs printing on other printing media such as sheets that are accommodated in a stacked state without being wound into a roll.

制御部5(processor)は、例えばCPU(Central Processing Unit)であって、入力部3からのキー操作信号に応じて、または、ROM6に予め記憶されているシステムプログラム、メモリカードに記憶された制御プログラム、外部機器から読み込まれた制御プログラム等を自動で起動させ、RAM7をワークメモリとして回路各部の動作を制御する。   The control unit 5 (processor) is, for example, a CPU (Central Processing Unit) and corresponds to a key operation signal from the input unit 3 or a system program stored in advance in the ROM 6 or a control stored in a memory card. A program, a control program read from an external device, and the like are automatically started, and the operation of each part of the circuit is controlled using the RAM 7 as a work memory.

制御部5には、入力部3、ROM6、RAM7、表示部4を駆動する表示部駆動回路8、サーマルヘッド部30を駆動するヘッド駆動回路9、搬送用モータ12を駆動する搬送用モータ駆動回路11と、カッターモータ15を駆動するカッターモータ駆動回路14とが接続されている。なお、搬送用モータ12は、搬送ローラ13を駆動する。また、カッターモータ15は、カット機構16を稼働する。   The control unit 5 includes an input unit 3, a ROM 6, a RAM 7, a display unit drive circuit 8 that drives the display unit 4, a head drive circuit 9 that drives the thermal head unit 30, and a transport motor drive circuit that drives the transport motor 12. 11 and a cutter motor drive circuit 14 for driving the cutter motor 15 are connected. The transport motor 12 drives the transport roller 13. The cutter motor 15 operates the cutting mechanism 16.

ROM6は、ヘッド駆動回路9によってサーマルヘッド部30に所望の描画図案を被印刷媒体Mへ印刷させるためのプログラム、印刷対象となる描画図案に含まれる文字、記号、絵文字等の元データやサイズ情報、印刷フォント等を記憶する。また、ROM6は、制御部5によって読取り可能なプログラムが記憶された記憶媒体としても機能する。   The ROM 6 is a program for causing the head drive circuit 9 to print a desired drawing design on the print medium M by the thermal head unit 30, original data and size information such as characters, symbols, and pictograms included in the drawing design to be printed. The print font is stored. The ROM 6 also functions as a storage medium in which a program that can be read by the control unit 5 is stored.

RAM7は、印刷対象となる所望の描画図案に含まれる文字、記号、絵文字やそれらのサイズ、文字間隔等を指定する情報、作成される印刷物の大きさ等の印刷情報を記憶する入力データメモリとして機能する。また、RAM7は、入力されたそれらの印刷情報に基づいて生成され、所望の描画図案を表す印刷データを記憶する印刷データメモリとして機能するとともに、表示部4に表示され、所望の描画図案を表す表示用パターンデータを記憶する表示データメモリ等としても機能する。また、RAM7は、印刷処理等に必要なデータを一時的に記憶するレジスタやカウンタ等を備える。   The RAM 7 is an input data memory for storing printing information such as characters, symbols, pictograms and their sizes, character spacing, etc. included in a desired drawing pattern to be printed, and the size of the printed matter to be created. Function. The RAM 7 is generated based on the input print information and functions as a print data memory for storing print data representing a desired drawing design, and is displayed on the display unit 4 to represent the desired drawing design. It also functions as a display data memory or the like for storing display pattern data. The RAM 7 includes a register, a counter, and the like that temporarily store data necessary for print processing and the like.

ヘッド駆動回路9は、RAM7に記憶された印刷データに基づいてサーマルヘッド部30を制御する。サーマルヘッド部30は、この制御に応じて、熱転写により被印刷媒体Mに所望の描画図案を印刷する。   The head drive circuit 9 controls the thermal head unit 30 based on the print data stored in the RAM 7. In accordance with this control, the thermal head unit 30 prints a desired drawing design on the printing medium M by thermal transfer.

搬送用モータ駆動回路11は、RAM7に記憶された印刷データに基づいてステップモータを制御することによって、搬送ローラ13を制御し、サーマルヘッド部30による被印刷媒体Mへの印刷中、所望の速度で当該被印刷媒体Mを搬送させる。   The conveyance motor drive circuit 11 controls the conveyance roller 13 by controlling the step motor based on the print data stored in the RAM 7, and a desired speed during printing on the printing medium M by the thermal head unit 30. Then, the printing medium M is conveyed.

カッターモータ駆動回路14は、カット機構16の動作を制御する。このカット機構16は、被印刷媒体Mを搬送方向に直交する幅方向に切断することによって、作成した印刷物を被印刷媒体Mから分離させる。なお、カット機構16は、被印刷媒体Mが、複数の層(例えば、基材、剥離紙など)を有する場合には、一部の層(例えば、基材)のみを幅方向に切断してもよい。   The cutter motor drive circuit 14 controls the operation of the cutting mechanism 16. The cutting mechanism 16 separates the produced printed matter from the printing medium M by cutting the printing medium M in the width direction orthogonal to the transport direction. The cut mechanism 16 cuts only a part of the layers (for example, the substrate) in the width direction when the print medium M has a plurality of layers (for example, a substrate, release paper, etc.). Also good.

なお、印刷装置1の上述の構成はあくまで一例であって、プラテンローラ、保持部材によって保持される印刷ヘッドの一例であるサーマルヘッド部30、サーマルヘッド部30を移動させるヘッド移動機構を備えるものであれば適宜構成を変更してもよい。   The above-described configuration of the printing apparatus 1 is merely an example, and includes a thermal head unit 30 that is an example of a print head held by a platen roller and a holding member, and a head moving mechanism that moves the thermal head unit 30. If necessary, the configuration may be changed as appropriate.

図4は、実施の形態に係る印刷装置の機能ブロック図である。
図4に示すように、印刷装置1は、印刷データ入力手段41、通電手段42、通電時間設定手段43、および印刷手段47を備える。また、通電時間設定手段43は、第1の計数手段44、第2の計数手段45、および通電時間補正手段46を備える。なお、以下で説明する機能は、制御部5により実行される。
FIG. 4 is a functional block diagram of the printing apparatus according to the embodiment.
As shown in FIG. 4, the printing apparatus 1 includes a print data input unit 41, an energization unit 42, an energization time setting unit 43, and a printing unit 47. The energization time setting unit 43 includes a first counting unit 44, a second counting unit 45, and an energization time correcting unit 46. The functions described below are executed by the control unit 5.

印刷データ入力手段41は、上述の入力部3を用いて被印刷媒体Mに印刷するための印刷データを入力する。   The print data input means 41 inputs print data for printing on the printing medium M using the input unit 3 described above.

通電手段42は、印刷データ入力手段41によって入力された印刷データを構成する1ライン分のラインデータに基づいて、被印刷媒体Mの第1方向(図5参照)、例えば長尺状の被印刷媒体Mの幅方向に沿って、サーマルヘッド部30にライン状に配列された複数の発熱素子に、予め定めた通電時間で選択的に通電することによって選択された発熱素子を発熱させる。   The energization means 42 is based on the line data for one line constituting the print data input by the print data input means 41 in the first direction of the print medium M (see FIG. 5), for example, a long print target. A selected heating element is caused to generate heat by selectively energizing a plurality of heating elements arranged in a line on the thermal head unit 30 along a width direction of the medium M in a predetermined energization time.

通電時間設定手段43は、ラインデータの通電ドットデータの割合(数)と通電ドットデータの分布(分布密度)に基づいて、複数の発熱素子から選択された発熱素子に通電手段42により通電する時間を設定する。   The energization time setting means 43 is a time during which the energization means 42 energizes a heating element selected from a plurality of heating elements based on the ratio (number) of energization dot data of line data and the distribution (distribution density) of energization dot data. Set.

通電時間設定手段43が備える第1の計数手段44は、ラインデータを複数のドット単位に分割して複数の部分ラインデータ(第2のラインセグメント;図8の符号81、82)を生成し、生成した複数の部分ラインデータそれぞれをさらに半分に分割して上位部分ラインデータ(上位セグメント;図8の符号81a、82a)と下位部分ラインデータ(下位セグメント;図8の符号81b、82b)を生成する。そして、複数の部分ラインデータそれぞれにおいて互いに隣接し合う上位部分ラインデータの最下位ドット(下端部)と下位部分ラインデータの最上位ドット(上端部)におけるドットデータが通電ドットデータ同士である組の数をカウントする。   The first counting unit 44 included in the energization time setting unit 43 divides the line data into a plurality of dot units to generate a plurality of partial line data (second line segments; reference numerals 81 and 82 in FIG. 8). Each of the generated partial line data is further divided in half to generate upper partial line data (upper segment; reference numerals 81a and 82a in FIG. 8) and lower partial line data (lower segment; reference numerals 81b and 82b in FIG. 8). To do. In each of the plurality of partial line data, the dot data in the lowest dot (lower end) of the upper partial line data and the uppermost dot (upper end) of the lower partial line data that are adjacent to each other is the energized dot data. Count the number.

例えば、通電ドット(第1のドット)データを「黒」、非通電ドット(第2のドット)データを「白」と表記(以下、同様)した、「白白黒黒黒白黒黒黒黒白白白白白白」の16ビット(2byte)のラインデータの場合、8ビットずつの2つ「白白黒黒黒白黒黒」「黒黒白白白白白白」に分割する。これらをそれぞれ「白白黒黒」と「黒白黒黒」、「黒黒白白」と「白白白白」に分割する。そして、「白白黒黒」と「黒白黒黒」の隣接数「1」、「黒黒白白」と「白白白白」の隣接数「0」を計数する。なお、8ビットずつに限らず、4ビットずつでも2ビットずつでも良い。   For example, “white / black / white / black / black / black / black / black / white / white / white / white / white / white / white / white / white / white / white / white / white / white / white / white / white In the case of 16-bit (2-byte) line data of “white and white”, it is divided into two “white black and white black black black and white black” and “black black white white white white white white” of 8 bits each. These are divided into “white black and white black”, “black black and white black”, “black black white white” and “white white white white”. Then, the adjacent number “1” between “white black and white” and “black black and white black” and the adjacent number “0” between “black black white and white” and “white white white and white” are counted. The number is not limited to 8 bits, but may be 4 bits or 2 bits.

また、通電時間設定手段43が備える第2の計数手段45は、ラインデータを隣接する複数のドット単位で複数の分割ラインデータに分割し、各分割ラインデータの通電ドットデータ数をそれぞれ計数する。例えば、「黒白黒黒黒黒白白」のラインデータであれば、「黒白黒黒」「黒黒白白」の2つの分割ラインデータに分割し、各分割ラインデータの黒ドットデータ数「3」「2」を計数する。   The second counting unit 45 provided in the energization time setting unit 43 divides the line data into a plurality of divided line data in units of a plurality of adjacent dots, and counts the number of energized dot data of each divided line data. For example, in the case of line data of “black / white / black / black / black / white / white”, the line data is divided into two divided line data of “black / black / white / black” and “black / black / white / white”. 2 "is counted.

そして、通電時間設定手段43は、第1の計数手段44で計数された境界の数と第2の計数手段45によって計数された各分割ラインデータの通電ドットデータ数に基づいて、通電手段42によって通電する時間を設定する。例えば、通電時間設定手段43は、第1の計数手段44で計数された境界の数が多いほど、通電手段42によって通電する時間を短く設定する。また、通電時間設定手段43は、第2の計数手段45で通電ドットデータ数が0であると計数された分割ラインデータの数が多いほど、通電手段42によって通電する時間を長く設定し、第2の計数手段45で通電ドットデータ数が0以外であると計数された分割ラインデータの数が多いほど、通電手段42によって通電する時間を短く設定する。例えば、「黒黒黒白白白白白」のラインデータの場合、「黒黒黒白」と「白白白白」となり、隣接数が「0」であるので、例えば隣接数が「1」の場合よりも通電時間を多くする。また、各分割ラインデータの黒ドットデータ数は、「3」「0」であるので、分割ラインデータの黒ドットデータ数「0」により通電時間を多くし、分割ラインデータの黒ドットデータ数「3」により通電時間を少なくする。なお、分割ラインデータの黒ドットデータ数「3」により通電時間を少なくする割合は、分割ラインデータの黒ドットデータ数「2」により通電時間を少なくする割合よりも大きくする。また、分割ラインデータの黒ドットデータ数「2」が2つであれば、分割ラインデータの黒ドットデータ数「2」により通電時間を少なくする割合、1つの場合よりも大きくする。   Then, the energizing time setting unit 43 is operated by the energizing unit 42 based on the number of boundaries counted by the first counting unit 44 and the number of energized dot data of each divided line data counted by the second counting unit 45. Set the energization time. For example, the energization time setting unit 43 sets a shorter energization time by the energization unit 42 as the number of boundaries counted by the first counting unit 44 increases. The energization time setting means 43 sets the energization time by the energization means 42 longer as the number of divided line data counted as 0 by the second counting means 45 is 0, As the number of divided line data counted by the second counting means 45 as the number of energized dot data is other than 0, the energization time by the energizing means 42 is set shorter. For example, in the case of the line data of “black black black white white white white white”, “black black black white” and “white white white white” and the number of adjacency is “0”. To increase. Further, since the number of black dot data of each divided line data is “3” “0”, the energization time is increased by the number of black dot data “0” of the divided line data, and the number of black dot data “ 3 ”to reduce energization time. The ratio of decreasing the energization time by the number of black dot data “3” of the divided line data is set larger than the ratio of decreasing the energization time by the number of black dot data “2” of the divided line data. Further, if the number of black dot data “2” in the divided line data is two, the ratio of reducing the energization time by the number of black dot data “2” in the divided line data is made larger than in the case of one.

通電時間補正手段46は、第1の計数手段44で計数された境界の数と第2の計数手段45によって計数された各分割ラインデータの通電ドットデータ数に基づいて、通電手段42によって通電する所定の時間を補正する。   The energization time correction means 46 is energized by the energization means 42 based on the number of boundaries counted by the first counting means 44 and the number of energized dot data of each divided line data counted by the second counting means 45. The predetermined time is corrected.

このようにして通電時間を設定することにより、サーマルヘッド部30に配設された発熱素子を適切に発熱駆動することができる。そして、適切な発熱駆動により、高品質の印刷を行うことができる。   By setting the energization time in this manner, the heat generating elements provided in the thermal head unit 30 can be appropriately driven to generate heat. High-quality printing can be performed by appropriate heat generation driving.

印刷手段47は、通電時間補正手段46によって補正された通電時間で通電手段42を実行させ、インクリボンRに塗布された染料をインクリボンRと重畳させた被印刷媒体M上に転写する。   The printing unit 47 causes the energization unit 42 to execute the energization time corrected by the energization time correction unit 46 and transfers the dye applied to the ink ribbon R onto the printing medium M superimposed on the ink ribbon R.

図5は、印刷データの例を示す図である。図6は、ラインデータを説明するための図である。図7は、実施の形態に係る印刷処理の流れを示すフローチャートである。図8は、ラインデータの構成例を示す図である。図9は、分割ラインデータの構成例を示す図である。図10は、変数と計数との関係を示す図である。図11は、ラインデータを分割する理由を説明するための図である。これらの図5乃至図11を用いて、iライン分のラインデータで構成される印刷データを例にして、上述した印刷装置1が実行する印刷処理について説明する。なお、以下で説明する印刷処理は、制御部5により実行される。   FIG. 5 is a diagram illustrating an example of print data. FIG. 6 is a diagram for explaining the line data. FIG. 7 is a flowchart showing the flow of the printing process according to the embodiment. FIG. 8 is a diagram illustrating a configuration example of line data. FIG. 9 is a diagram illustrating a configuration example of divided line data. FIG. 10 is a diagram illustrating the relationship between variables and counts. FIG. 11 is a diagram for explaining the reason for dividing the line data. With reference to FIGS. 5 to 11, print processing executed by the printing apparatus 1 described above will be described using print data composed of i-line line data as an example. The printing process described below is executed by the control unit 5.

印刷装置1が実行する印刷処理は、図5に示すような印刷データ50を印刷する。図5に示した例では、文字列「黒字カウンタ」が印刷データ50であり、テープ幅51が約18mmの長尺状のテープ(被印刷媒体M)に印刷される。印刷データ50が印刷されるのは、テープの有効印刷幅52の領域であり、例えば、有効印刷幅52は約16mmである。   The printing process executed by the printing apparatus 1 prints print data 50 as shown in FIG. In the example shown in FIG. 5, the character string “black character counter” is the print data 50 and is printed on a long tape (print medium M) having a tape width 51 of about 18 mm. The print data 50 is printed in an area of the effective print width 52 of the tape. For example, the effective print width 52 is about 16 mm.

印刷データ50は、図6に示すように、複数のラインデータ61、62、63、64、65、66、67、68、…で構成される。印刷装置1の印刷解像度が200dpiであれば、約16mmの有効印刷幅52に印刷される各ラインデータ61等は、それぞれが128ドットとなる。すなわち、各ラインデータ61等は、128ビットのアドレスに対応させることができる。例えば、8ビット毎に1バイトとした16バイトの連続したアドレスに対応させることができる。このような例を用いて、印刷装置1が実行する印刷処理を説明する。   As shown in FIG. 6, the print data 50 includes a plurality of line data 61, 62, 63, 64, 65, 66, 67, 68,. If the printing resolution of the printing apparatus 1 is 200 dpi, each line data 61 or the like printed in an effective printing width 52 of about 16 mm is 128 dots. That is, each line data 61 or the like can correspond to a 128-bit address. For example, it is possible to correspond to a continuous address of 16 bytes with 1 byte every 8 bits. The printing process executed by the printing apparatus 1 will be described using such an example.

まず、印刷装置1が備える制御部5は、図7のステップS701において、変数jに1を代入し、変数iに印刷データ50を構成するラインデータの数を代入する。例えば、印刷データ50が724ラインで構成されていれば、変数iに724を代入する。制御部5は、ステップS702において、jライン目を印刷する。最初は1ライン目を印刷する。そして、制御部5は、ステップS703において、変数jに代入された値が変数iに代入されている値より大きい(j>i)か否かを判断することにより、全ての印刷データの印刷が終了したか否かを判断する。この判断ステップで「No」と判断されることにより、印刷データ50を構成する全てのラインデータについてステップS704乃至S713を繰り返す。   First, in step S701 in FIG. 7, the control unit 5 included in the printing apparatus 1 substitutes 1 for a variable j and substitutes the number of line data constituting the print data 50 for a variable i. For example, if the print data 50 is composed of 724 lines, 724 is substituted for the variable i. In step S702, the control unit 5 prints the j-th line. First, the first line is printed. In step S703, the control unit 5 determines whether or not the value assigned to the variable j is larger than the value assigned to the variable i (j> i), thereby printing all the print data. It is determined whether or not it has been completed. If “No” is determined in this determination step, steps S704 to S713 are repeated for all line data constituting the print data 50.

全ての印刷データの印刷が終了したと判断された場合(ステップS703:Yes)、本印刷処理を終了する。   If it is determined that printing of all print data has been completed (step S703: Yes), the printing process is terminated.

他方、全ての印刷データの印刷が終了していないと判断された場合(ステップS703:No)、制御部5は、ステップS704において、変数pに1を代入し、変数nにラインデータを構成するバイト数を代入する。上述の例では、変数nに16を代入する。そして、制御部5は、ステップS705において、変数pに代入された値が変数nに代入されている値より大きい(p>n)か否かを判断することにより、ラインデータを構成する各バイト単位のデータの全てについて、後述するステップS706乃至S710の処理を実行したか否かを判断する。   On the other hand, when it is determined that printing of all print data has not been completed (step S703: No), the control unit 5 substitutes 1 for the variable p and configures line data for the variable n in step S704. Substitute the number of bytes. In the above example, 16 is substituted for the variable n. In step S705, the control unit 5 determines whether or not the value assigned to the variable p is larger than the value assigned to the variable n (p> n), thereby determining each byte constituting the line data. It is determined whether or not the processing of steps S706 to S710 described later has been executed for all the unit data.

変数pに代入された値が変数nに代入されている値より大きくないと判断された場合(ステップS704:No)、制御部5は、ラインデータを構成する全てのバイトについてステップS706乃至S709の処理を実行する。すなわち、ラインデータを構成する1バイト目からnバイト目、例えば16バイト目まで、ステップS706乃至S709の処理を実行する。   When it is determined that the value assigned to the variable p is not larger than the value assigned to the variable n (step S704: No), the control unit 5 performs steps S706 to S709 for all bytes constituting the line data. Execute the process. That is, the processing of steps S706 to S709 is executed from the 1st byte to the nth byte, for example, the 16th byte constituting the line data.

まず、制御部5は、ステップS706において、第1の計数手段44を実行させ、pバイト目のラインデータについて黒ドットデータの隣接数を計数し、初期値が0の変数「near」をカウントアップする。例えば、図8に示したようなラインデータ80において、pバイト目が第1の部分ラインデータ81であれば、その第1の部分ラインデータ81を上位部分ラインデータ(1番目から4番目のドット)81aと下位部分ラインデータ(5番目から8番目のドット)81bに分割し、上位部分ラインデータの最下位ドットが「黒」(通電ドット)であり、下位部分ラインデータの最上位ドットが「黒」(通電ドット)であるので、黒ドットデータの隣接数として「1」を計数する。そして、変数「near」をカウントアップする。また、図8に示したようなラインデータ80において、pバイト目が第2の部分ラインデータ82であれば、その第2の部分ラインデータ82を上位部分ラインデータ(9番目から12番目のドット)82aと下位部分ラインデータ(13番目から16番目のドット)82bに分割し、上位部分ラインデータの最下位ドットが「白」(非通電ドット)であり、下位部分ラインデータの最上位ドットが「白」(非通電ドット)であるので、黒ドットデータの隣接数として「0」を計数する。この場合、変数「near」はカウントアップしない(言い換えれば、0だけカウントアップする。)。   First, in step S706, the control unit 5 executes the first counting unit 44, counts the number of adjacent black dot data for the p-th line data, and counts up the variable “near” whose initial value is 0. To do. For example, in the line data 80 as shown in FIG. 8, if the pth byte is the first partial line data 81, the first partial line data 81 is converted into the upper partial line data (first to fourth dots). ) 81a and lower partial line data (5th to 8th dots) 81b, the lowermost dot of the upper partial line data is “black” (energized dot), and the uppermost dot of the lower partial line data is “ Since it is “black” (energized dots), “1” is counted as the number of adjacent black dot data. Then, the variable “near” is counted up. Further, in the line data 80 as shown in FIG. 8, if the p-th byte is the second partial line data 82, the second partial line data 82 is converted into the upper partial line data (the ninth to twelfth dots). ) 82a and lower partial line data (13th to 16th dots) 82b, the lowest dot of the upper partial line data is “white” (non-energized dot), and the highest dot of the lower partial line data is Since it is “white” (non-energized dots), “0” is counted as the number of adjacent black dot data. In this case, the variable “near” does not count up (in other words, counts up by 0).

制御部5は、ステップS707において、pバイト目のラインデータを上位ビットと下位ビットに分ける。上述の例では、ラインデータが128ビット/16バイトであり、1バイトあたり8ビットとなるので、制御部5は、図9に示すように、上位4ビットの第1の分割ラインデータ(第1のラインセグメント)91と下位4ビットの第2の分割ラインデータ(第1のラインセグメント)92に分ける。   In step S707, the control unit 5 divides the p-th line data into upper bits and lower bits. In the above example, since the line data is 128 bits / 16 bytes, and 8 bits per byte, the control unit 5 has the first divided line data (first 1st bit) of the upper 4 bits as shown in FIG. Line segment) 91 and lower 4-bit second divided line data (first line segment) 92.

制御部5は、ステップS708において、第2の計数手段45を実行させ、上位ビットの第1の分割ラインデータ91と下位ビットの第2の分割ラインデータ92の黒ドットデータ数をそれぞれ計数する。図9に示した例では、第1の分割ラインデータ91の黒ドットデータ数として「2」が計数され、第2の分割ラインデータ92の黒ドットデータ数として「3」が計数される。ステップS707でラインデータを分割し、それぞれの分割ラインデータについて黒ドットデータ数を計数するのは、本来1つのデータの塊である印刷データを構成するラインデータではあるが、細分化した方が細かく印刷データの状態を把握できるからである。例えば、図11(a)に例示したラインデータ111は、構成する黒ドットデータが離れているが、ラインデータ112を構成する黒ドットデータは近接している。これらのラインデータ111および112について黒ドットデータ数を計数すると、何れも「2」を計数する。しかしながら、図11(b)に示すように、上位4ビットと下位4ビットに分割すると、ラインデータ111について計数する黒ドットデータ数は、「0」と「2」であり、ラインデータ112について計数する黒ドットデータ数は、「1」と「1」である。この例では、ラインデータ111と112は、通電ドットデータ数が同じであるが、通電ドットデータの分布は異なっている。   In step S708, the control unit 5 executes the second counting unit 45 to count the number of black dot data of the first divided line data 91 of the upper bits and the second divided line data 92 of the lower bits. In the example shown in FIG. 9, “2” is counted as the number of black dot data of the first divided line data 91, and “3” is counted as the number of black dot data of the second divided line data 92. In step S707, the line data is divided, and the number of black dot data for each divided line data is counted as line data that originally constitutes print data that is one data block. This is because the state of the print data can be grasped. For example, in the line data 111 illustrated in FIG. 11A, the black dot data constituting the line data 112 is close, but the black dot data constituting the line data 112 is close. When the number of black dot data is counted for these line data 111 and 112, both count “2”. However, as shown in FIG. 11B, when divided into upper 4 bits and lower 4 bits, the numbers of black dot data to be counted for the line data 111 are “0” and “2”, and the numbers for the line data 112 are counted. The numbers of black dot data to be performed are “1” and “1”. In this example, the line data 111 and 112 have the same number of energized dot data, but the distribution of energized dot data is different.

このように、本来1つのデータの塊である印刷データを構成するラインデータを細分化した方が、細かく印刷データの状態を把握できる。   As described above, the state of the print data can be grasped more finely by subdividing the line data that constitutes the print data that is essentially one data block.

制御部5は、ステップS709において、ステップS708で計数した値に応じて、初期値が0の各変数をインクリメント(1加算)する。例えば、ステップS708で計数した値が「0」であれば、変数「zero」をインクリメントし、計数した値が「1」であれば、変数「one」をインクリメントする。同様に、「2」であれば変数[two]を、「3」であれば変数「three」を、「4」であれば変数「four」をそれぞれインクリメントする。変数「zero」「one」「two」「three」「four」の初期値はいずれも0である。   In step S709, the control unit 5 increments (adds 1) each variable whose initial value is 0 in accordance with the value counted in step S708. For example, if the value counted in step S708 is “0”, the variable “zero” is incremented. If the counted value is “1”, the variable “one” is incremented. Similarly, the variable [two] is incremented if “2”, the variable “three” is incremented if “3”, and the variable “four” is incremented if “4”. The initial values of the variables “zero”, “one”, “two”, “three”, and “four” are all zero.

制御部5は、ステップS710において、変数pをインクリメントしてステップS705に戻り、ラインデータを構成する次のバイトについてステップS706以降の処理を実行する。   In step S710, the control unit 5 increments the variable p, returns to step S705, and executes the processing from step S706 onward for the next byte constituting the line data.

ステップS704でラインデータを構成する全てのバイトについてステップS706乃至S710の処理を実行したと判断された場合(ステップS705:Yes)、制御部5は、ステップS711において、ステップS706でカウントアップした変数「near」、およびステップS709でインクリメントした変数「zero」「one」「two」「three」「four」に、所定の係数を乗算して、変数「kuroji」に加算する。具体的には、変数「near」に、図10に示すような係数「135〜165」の間の任意の値、例えば、「150」を乗算し、変数「kuroji」に加算する。また、変数「zero」「one」「two」「three」「four」には、それぞれの係数として「−83〜−67」「68〜84」「94〜116」「355〜435」「418〜512」の間の任意の値、例えば、「−75」「76」「105」「395」「465」を乗算し、初期値が0の変数「kuroji」に加算する。ここで選ばれる各計数としての任意の値は、印刷するテープ幅、印刷速度、サーマルヘッド部30の幅などの条件の組合せによって、予め経験的に求められる一意的な値であり、ROM6に記憶されている。   When it is determined in step S704 that the processing in steps S706 to S710 has been executed for all bytes constituting the line data (step S705: Yes), the control unit 5 in step S711, the variable “ “near” and the variables “zero”, “one”, “two”, “three”, and “four” incremented in step S709 are multiplied by a predetermined coefficient and added to the variable “kuroji”. Specifically, the variable “near” is multiplied by an arbitrary value between coefficients “135 to 165” as shown in FIG. 10, for example, “150”, and added to the variable “kuroji”. In addition, the variables “zero”, “one”, “two”, “three”, and “four” have “−83 to −67”, “68 to 84”, “94 to 116”, “355 to 435”, and “418” as the respective coefficients. Multiply any value between “512”, for example, “−75” “76” “105” “395” “465”, and add to the variable “kuroji” whose initial value is 0. The arbitrary value as each count selected here is a unique value obtained in advance by a combination of conditions such as the tape width to be printed, the printing speed, and the width of the thermal head unit 30, and is stored in the ROM 6. Has been.

制御部5は、ステップS712において、通電時間を設定する。例えば、予め所定の値が設定された通電時間から変数「kuroji」の値を減算する等して、通電時間を補正する。   In step S712, the control unit 5 sets the energization time. For example, the energization time is corrected by subtracting the value of the variable “kuroji” from the energization time for which a predetermined value is set in advance.

そして、制御部5は、ステップS713において、変数jをインクリメントしてステップS702に戻り、次のラインデータについてステップS702以降の処理を実行する。   In step S713, the control unit 5 increments the variable j, returns to step S702, and executes the processing from step S702 on for the next line data.

以上、本発明の実施の形態を、図面を参照しながら説明してきたが、本発明が適用される印刷装置は、その機能が実行されるのであれば、上述の実施の形態に限定されることない。例えば、第1の計数手段44は、通電ドットデータに挟まれた境界の数を計数したが、ラインデータを構成する通電ドットデータの隣接数を計数しても良い。この場合、「白白黒黒黒黒白白」のラインデータであれば、3番目と4番目、4番目と5番目、5番目と6番目の「黒」ドットデータ(通電ドットデータ)が隣接しているので、隣接数「3」を計数する。また、第1の計数手段44は、ラインデータが大きいような場合、ラインデータを適宜複数の部分ラインデータ毎に隣接数を計数した上で、隣接する部分ラインデータにおける通電ドットデータの隣接数も計数することもできる。例えば、「白白黒黒黒白黒黒黒黒白白白白白白」のラインデータであれば、「白白黒黒黒白黒黒」と「黒黒白白白白白白」の部分ラインデータ毎に隣接数「3」と「1」を計数し、1番目の部分ラインデータの最後(8番目)と2番目の部分ラインデータの最初(1番目)の「黒」ドットデータが隣接しているので、「1」を加算し、隣接数「5(=3+1+1)」を計数してもよい。   As described above, the embodiments of the present invention have been described with reference to the drawings. However, the printing apparatus to which the present invention is applied is limited to the above-described embodiments as long as the functions thereof are executed. Absent. For example, the first counting unit 44 counts the number of boundaries sandwiched between energized dot data, but may count the number of adjacent energized dot data constituting the line data. In this case, if the line data is “white / black / white / black / black / white / white”, the third and fourth, fourth and fifth, fifth and sixth “black” dot data (energized dot data) are adjacent to each other. Therefore, the adjacent number “3” is counted. In addition, when the line data is large, the first counting unit 44 counts the number of adjacent line data for each of the plurality of partial line data as appropriate, and also determines the number of adjacent energized dot data in the adjacent partial line data. It can also be counted. For example, in the case of line data of “white black and white black black black and white black black black white white white white white white”, the number of adjacency “3” for each partial line data of “white black and white black black black and white black” and “black black white white white white white white” Count “1” and add “1” because the last (8th) of the first partial line data and the first (first) “black” dot data of the second partial line data are adjacent. Then, the number of neighbors “5 (= 3 + 1 + 1)” may be counted.

さらに、印刷装置1の通電時間設定手段43は、第1の計数手段44および第2の計数手段45の両方を必ずしも備える必要はなく、例えば、第1の計数手段44および第2の計数手段45のいずれかを備えていればよい。印刷装置1の通電時間設定手段43が第1の計数手段44のみを備えている場合には、ステップS711において、変数「near」に所定の計数を乗算して、変数「kuroji」に加算する。この場合、「near」のカウント数だけが、変数「kuroji」に影響を及ぼし、ひいては、通電時間の補正に影響を及ぼすこととなる。また、この場合、変数「zero」「one」「two」「three」「four」は初期値の0のままであるか、そもそも不要であるため、存在しない。印刷装置1の通電時間設定手段43が第2の計数手段45のみを備えている場合には、ステップS711において、変数「zero」「one」「two」「three」「four」に所定の計数を乗算して、変数「kuroji」に加算する。この場合、変数「zero」「one」「two」「three」「four」のカウント数だけが、変数「kuroji」に影響を及ぼし、ひいては、通電時間の補正に影響を及ぼすこととなる。また、この場合、変数「near」は初期値の0のままであるか、そもそも不要であるため、存在しない。   Furthermore, the energization time setting unit 43 of the printing apparatus 1 does not necessarily include both the first counting unit 44 and the second counting unit 45. For example, the first counting unit 44 and the second counting unit 45 are not necessarily included. Any of the above may be provided. When the energization time setting unit 43 of the printing apparatus 1 includes only the first counting unit 44, in step S711, the variable “near” is multiplied by a predetermined count and added to the variable “kuroji”. In this case, only the count number of “near” affects the variable “kuroji” and consequently the correction of the energization time. Further, in this case, the variables “zero”, “one”, “two”, “three”, and “four” remain at the initial value of 0 or are not necessary and do not exist. When the energization time setting unit 43 of the printing apparatus 1 includes only the second counting unit 45, in step S711, the variables “zero” “one” “two” “three” “four” are counted. Multiply and add to variable “kuroji”. In this case, only the counts of the variables “zero”, “one”, “two”, “three”, and “four” affect the variable “kuroji”, and thus affect the correction of the energization time. In this case, the variable “near” does not exist because the initial value is 0 or it is unnecessary in the first place.

また、上述してきた本発明の実施の形態は、印刷装置の一機能としてハードウェアまたはDSP(Digital Signal Processor)ボードやCPUボードでのファームウェアもしくはソフトウェアにより実現することができる。   The above-described embodiment of the present invention can be realized by hardware or firmware or software on a DSP (Digital Signal Processor) board or CPU board as one function of the printing apparatus.

また、本発明が適用される印刷装置は、単体の装置であっても、複数の装置からなるシステムあるいは統合装置であっても、LAN、WAN等のネットワークを介して処理が行なわれるシステムであってもよいことは言うまでもない。   The printing apparatus to which the present invention is applied is a system in which processing is performed via a network such as a LAN or WAN, whether it is a single apparatus, a system composed of a plurality of apparatuses, or an integrated apparatus. Needless to say.

また、バスに接続されたCPU、ROMやRAMのメモリ、入力装置、出力装置、外部記録装置、媒体駆動装置、ネットワーク接続装置で構成されるシステムでも実現できる。すなわち、前述してきた実施の形態のシステムを実現するソフトェアのプログラムを記録したROMやRAMのメモリ、外部記録装置、可搬記録媒体を、印刷装置に供給し、その印刷装置のコンピュータがプログラムを読み出し実行することによっても、達成されることは言うまでもない。   It can also be realized by a system including a CPU, a ROM or RAM memory connected to a bus, an input device, an output device, an external recording device, a medium driving device, and a network connection device. That is, the ROM, RAM memory, external recording device, and portable recording medium in which the software program for realizing the system of the embodiment described above is recorded are supplied to the printing device, and the computer of the printing device reads the program. Needless to say, it can also be achieved through implementation.

この場合、可搬記録媒体等から読み出されたプログラム自体が本発明の新規な機能を実現することになり、そのプログラムを記録した可搬記録媒体等は本発明を構成することになる。   In this case, the program itself read from the portable recording medium or the like realizes the novel function of the present invention, and the portable recording medium or the like on which the program is recorded constitutes the present invention.

プログラムを供給するための可搬記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、DVD−ROM、DVD−RAM、磁気テープ、不揮発性のメモリカード、ROMカード、電子メールやパソコン通信等のネットワーク接続装置(言い換えれば、通信回線)を介して記録した種々の記録媒体などを用いることができる。   Examples of portable recording media for supplying the program include flexible disks, hard disks, optical disks, magneto-optical disks, CD-ROMs, CD-Rs, DVD-ROMs, DVD-RAMs, magnetic tapes, and nonvolatile memory cards. Various recording media recorded via a network connection device (in other words, a communication line) such as a ROM card, electronic mail or personal computer communication can be used.

また、コンピュータ(情報処理装置)がメモリ上に読み出したプログラムを実行することによって、前述した実施の形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施の形態の機能が実現される。   The computer (information processing apparatus) executes the program read out on the memory, thereby realizing the functions of the above-described embodiment, and an OS running on the computer based on the instructions of the program. Performs part or all of the actual processing, and the functions of the above-described embodiments are also realized by the processing.

さらに、可搬型記録媒体から読み出されたプログラムやプログラム(データ)提供者から提供されたプログラム(データ)が、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施の形態の機能が実現され得る。   Furthermore, a program read from a portable recording medium or a program (data) provided by a program (data) provider is stored in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. After being written, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiments are also realized by the processing. obtain.

すなわち、本発明は、以上に述べた実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で種々の構成または形状を取ることができる。   That is, the present invention is not limited to the embodiment described above, and can take various configurations or shapes without departing from the gist of the present invention.

以上、具体的な実施形態に基づいて本発明を説明したが、本発明の技術的範囲は上記実施形態に限定されないことは言うまでもない。本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
具体的な上記実施形態に、多様な変更又は改良を加えることが可能であることは当業者にとって明らかであり、その様な変更又は改良を加えた形態も本発明の技術的範囲に含まれるものであることは、特許請求の範囲の記載から明らかである。
以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。
As mentioned above, although this invention was demonstrated based on specific embodiment, it cannot be overemphasized that the technical scope of this invention is not limited to the said embodiment. The scope of the present invention is not limited to the embodiments described above, but includes the scope of the invention described in the claims and the equivalents thereof.
It will be apparent to those skilled in the art that various modifications or improvements can be made to the specific embodiments described above, and such modifications or improvements are also included in the technical scope of the present invention. It is clear from the description of the scope of claims.
Hereinafter, the invention described in the scope of claims of the present application will be appended.

(付記1)
ある方向に配列された複数の発熱素子を含む印刷ヘッドと、制御部とを備える印刷装置であって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記制御部は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを特徴とする印刷装置。
(付記2)
前記制御部は、前記各ラインデータの前記第1のドットの分布情報を取得することにおいて、
前記各ラインデータを複数の第1のラインセグメントに分割し、分割した各第1のラインセグメントの第1のドットの数をカウントすることにより、前記各第1のラインセグメントに含まれる第1のドットの数である前記第1のラインセグメントの分布を取得し、
さらに、取得した、前記各第1のラインセグメントの分布に応じて、前記各ラインデータについて、前記通電時間を設定する
ことを特徴とする付記1に記載の印刷装置。
(付記3)
前記制御部は、前記各ラインデータの前記第1のドットの分布情報を取得することにおいて、
前記ラインデータ内の2つの連続する第1のドットの発生頻度をカウントし、
さらに、カウントした、前記ラインデータ内の前記2つの連続する第1のドットの前記発生頻度と、取得した、前記第1のラインセグメントの分布とに応じて、前記各ラインデータについて、前記通電時間を設定する
ことを特徴とする付記2に記載の印刷装置。
(付記4)
前記制御部は、前記各ラインデータの前記第1のドットの分布情報を取得することにおいて、
前記ラインデータを、前記複数の第1のラインセグメントと同じか又は異なる複数の第2のラインセグメントに分割し、前記複数の第2のラインセグメントそれぞれを上位セグメントおよび下位セグメントへとさらに分割し、且つ、前記上位セグメントと前記下位セグメントの間の境界であって2つの第1のドットにより挟まれた前記境界の数である第1のドットの境界の数をカウントすることにより、前記ラインデータ内の前記2つの連続する第1のドットの前記発生頻度をカウントし、
さらに、カウントした、前記ラインデータ内の前記第1のドットの前記境界の数と、取得した、前記第1のラインセグメントに含まれる第1のドットの数である前記第1のラインセグメントの分布とに応じて、前記各ラインデータについて、前記通電時間を設定する
ことを特徴とする付記3の印刷装置。
(付記5)
前記制御部は、選択された前記発熱素子への通電時間が、前記ラインデータ内の前記第1のドットの前記境界の数が多い場合に、前記境界の数が少ない場合よりも短くなるように、前記通電時間を設定する
ことを特徴とする付記4に記載の印刷装置。
(付記6)
前記制御部は、選択された前記発熱素子への通電時間が、前記第1のラインセグメントに含まれる前記第1のドットの数が0であるような当該第1のラインセグメントの数が多い場合に、そのような第1のラインセグメントの数が少ない場合よりも長くなるように、前記通電時間を設定する
ことを特徴とする付記2乃至付記5のいずれか一項に記載の印刷装置。
(付記7)
前記制御部は、選択された前記発熱素子への通電時間が、前記第1のラインセグメントに含まれる前記第1のドットの数が0以外であるような当該第1のラインセグメントの数が多い場合に、そのような第1のラインセグメントの数が少ない場合よりも短くなるように、前記通電時間を設定する
ことを特徴とする付記2乃至付記6のいずれか一項に記載の印刷装置。
(付記8)
前記制御部は、前記複数のラインデータそれぞれの前記複数の第1のドットの分布情報を取得することにおいて、前記ラインデータ内の2つの隣接する第1のドットの発生頻度をカウントし、
さらに、カウントした、前記ラインデータ内の前記2つの隣接する第1のドットの発生頻度に応じて、記複数のラインデータそれぞれについて、前記通電時間を設定する
ことを特徴とする付記1に記載の印刷装置。
(付記9)
ある方向に配列された複数の発熱素子を含む印刷ヘッドを備える印刷装置を用いた印刷方法であって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記印刷方法は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを含むことを特徴とする印刷方法。
(付記10)
ある方向に配列された複数の発熱素子を含む印刷ヘッドを備える印刷装置の制御部により読取られた際に、前記制御部に処理を実行させるプログラムであって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記制御部に実行させる処理は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを含むことを特徴とするプログラム。
(Appendix 1)
A printing apparatus including a print head including a plurality of heating elements arranged in a certain direction, and a control unit,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The controller is
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data An energizing time for supplying a current to the heat generating element is set.
(Appendix 2)
In the acquisition of the first dot distribution information of each line data, the control unit,
By dividing each line data into a plurality of first line segments and counting the number of first dots in each divided first line segment, the first line segments included in each first line segment are counted. Obtaining a distribution of the first line segment that is the number of dots;
Further, the energization time is set for each line data in accordance with the acquired distribution of each first line segment.
(Appendix 3)
In the acquisition of the first dot distribution information of each line data, the control unit,
Counting the frequency of occurrence of two consecutive first dots in the line data;
Furthermore, the energization time for each line data according to the counted occurrence frequency of the two consecutive first dots in the line data and the acquired distribution of the first line segments. The printing apparatus as set forth in appendix 2, wherein: is set.
(Appendix 4)
In the acquisition of the first dot distribution information of each line data, the control unit,
Dividing the line data into a plurality of second line segments that are the same as or different from the plurality of first line segments, and further dividing each of the plurality of second line segments into an upper segment and a lower segment; And by counting the number of first dot boundaries, which is the number of boundaries between the upper segment and the lower segment and sandwiched between two first dots, Counting the frequency of occurrence of the two consecutive first dots of
Furthermore, the distribution of the first line segment that is the counted number of the boundaries of the first dots in the line data and the acquired number of the first dots included in the first line segment. The printing apparatus according to appendix 3, wherein the energization time is set for each line data.
(Appendix 5)
The controller is configured such that the energization time for the selected heating element is shorter when the number of the boundaries of the first dots in the line data is large than when the number of the boundaries is small. The printing apparatus according to appendix 4, wherein the energization time is set.
(Appendix 6)
When the energization time for the selected heat generating element is large in the number of the first line segments such that the number of the first dots included in the first line segment is 0, the control unit In addition, the energization time is set so as to be longer than when the number of the first line segments is small. The printing apparatus according to any one of appendix 2 to appendix 5, wherein
(Appendix 7)
The control unit has a large number of first line segments such that the energization time of the selected heating element is such that the number of the first dots included in the first line segment is other than zero. In such a case, the energization time is set so as to be shorter than when the number of the first line segments is small. The printing apparatus according to any one of appendix 2 to appendix 6.
(Appendix 8)
The controller counts the frequency of occurrence of two adjacent first dots in the line data in obtaining the distribution information of the plurality of first dots for each of the plurality of line data,
Further, the energization time is set for each of the plurality of line data according to the counted occurrence frequency of the two adjacent first dots in the line data. Printing device.
(Appendix 9)
A printing method using a printing apparatus including a print head including a plurality of heating elements arranged in a certain direction,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The printing method includes:
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data A printing method comprising: setting an energization time for supplying a current to the generated heating element.
(Appendix 10)
A program for causing the control unit to execute processing when read by a control unit of a printing apparatus including a print head including a plurality of heating elements arranged in a certain direction,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The process to be executed by the control unit is as follows:
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data A program comprising setting an energization time for supplying a current to the generated heating element.

1 印刷装置
2 装置筐体
2a 排出口
3 入力部
4 表示部
5 制御部
6 ROM(Read Only Memory)
7 RAM(Random Access Memory)
8 表示部駆動回路
9 ヘッド駆動回路
11 搬送用モータ駆動回路
12 搬送用モータ
13 搬送ローラ
14 カッターモータ駆動回路
15 カッターモータ
16 カット機構
17 開閉蓋
17a ボタン
17b 窓部
18 カセット収納部
20 カセット
23 テープコア
24 リボン供給コア
25 リボン巻取コア
30 サーマルヘッド部
41 印刷データ入力手段
42 通電手段
43 通電時間設定手段
44 第1の計数手段
45 第2の計数手段
46 通電時間補正手段
47 印刷手段
50 印刷データ
51 テープ幅
52 有効印刷幅
61、62、63、64、65、66、67、68、80、111、112 ラインデータ
81 第1の部分ラインデータ(第2のラインセグメント)
82 第2の部分ラインデータ(第2のラインセグメント)
81a,82a 上位部分ラインデータ(上位セグメント)
81b,82b 下位部分ラインデータ(下位セグメント)
91 第1の分割ラインデータ(第1のラインセグメント)
92 第2の分割ラインデータ(第1のラインセグメント)
M 被印刷媒体
R インクリボン
DESCRIPTION OF SYMBOLS 1 Printing apparatus 2 Apparatus housing 2a Outlet 3 Input part 4 Display part 5 Control part 6 ROM (Read Only Memory)
7 RAM (Random Access Memory)
DESCRIPTION OF SYMBOLS 8 Display part drive circuit 9 Head drive circuit 11 Conveyance motor drive circuit 12 Conveyance motor 13 Conveyance roller 14 Cutter motor drive circuit 15 Cutter motor 16 Cutting mechanism 17 Opening / closing lid 17a Button 17b Window part 18 Cassette accommodating part 20 Cassette 23 Tape core 24 Ribbon supply core 25 Ribbon take-up core 30 Thermal head part 41 Print data input means 42 Energizing means 43 Energizing time setting means 44 First counting means 45 Second counting means 46 Energizing time correcting means 47 Printing means 50 Printing data 51 Tape Width 52 Effective print width 61, 62, 63, 64, 65, 66, 67, 68, 80, 111, 112 Line data 81 First partial line data (second line segment)
82 Second partial line data (second line segment)
81a, 82a Upper partial line data (upper segment)
81b, 82b Lower part line data (lower segment)
91 First division line data (first line segment)
92 Second division line data (first line segment)
M Print medium R Ink ribbon

Claims (10)

ある方向に配列された複数の発熱素子を含む印刷ヘッドと、制御部とを備える印刷装置であって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記制御部は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを特徴とする印刷装置。
A printing apparatus including a print head including a plurality of heating elements arranged in a certain direction, and a control unit,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The controller is
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data An energizing time for supplying a current to the heat generating element is set.
前記制御部は、前記各ラインデータの前記第1のドットの分布情報を取得することにおいて、
前記各ラインデータを複数の第1のラインセグメントに分割し、分割した各第1のラインセグメントの第1のドットの数をカウントすることにより、前記各第1のラインセグメントに含まれる第1のドットの数である前記第1のラインセグメントの分布を取得し、
さらに、取得した、前記各第1のラインセグメントの分布に応じて、前記各ラインデータについて、前記通電時間を設定する
ことを特徴とする請求項1に記載の印刷装置。
In the acquisition of the first dot distribution information of each line data, the control unit,
By dividing each line data into a plurality of first line segments and counting the number of first dots in each divided first line segment, the first line segments included in each first line segment are counted. Obtaining a distribution of the first line segment that is the number of dots;
The printing apparatus according to claim 1, further comprising: setting the energization time for each line data according to the acquired distribution of each first line segment.
前記制御部は、前記各ラインデータの前記第1のドットの分布情報を取得することにおいて、
前記ラインデータ内の2つの連続する第1のドットの発生頻度をカウントし、
さらに、カウントした、前記ラインデータ内の前記2つの連続する第1のドットの前記発生頻度と、取得した、前記第1のラインセグメントの分布とに応じて、前記各ラインデータについて、前記通電時間を設定する
ことを特徴とする請求項2に記載の印刷装置。
In the acquisition of the first dot distribution information of each line data, the control unit,
Counting the frequency of occurrence of two consecutive first dots in the line data;
Furthermore, the energization time for each line data according to the counted occurrence frequency of the two consecutive first dots in the line data and the acquired distribution of the first line segments. The printing apparatus according to claim 2, wherein: is set.
前記制御部は、前記各ラインデータの前記第1のドットの分布情報を取得することにおいて、
前記ラインデータを、前記複数の第1のラインセグメントと同じか又は異なる複数の第2のラインセグメントに分割し、前記複数の第2のラインセグメントそれぞれを上位セグメントおよび下位セグメントへとさらに分割し、且つ、前記上位セグメントと前記下位セグメントの間の境界であって2つの第1のドットにより挟まれた前記境界の数である第1のドットの境界の数をカウントすることにより、前記ラインデータ内の前記2つの連続する第1のドットの前記発生頻度をカウントし、
さらに、カウントした、前記ラインデータ内の前記第1のドットの前記境界の数と、取得した、前記第1のラインセグメントに含まれる第1のドットの数である前記第1のラインセグメントの分布とに応じて、前記各ラインデータについて、前記通電時間を設定する
ことを特徴とする請求項3の印刷装置。
In the acquisition of the first dot distribution information of each line data, the control unit,
Dividing the line data into a plurality of second line segments that are the same as or different from the plurality of first line segments, and further dividing each of the plurality of second line segments into an upper segment and a lower segment; And by counting the number of first dot boundaries, which is the number of boundaries between the upper segment and the lower segment and sandwiched between two first dots, Counting the frequency of occurrence of the two consecutive first dots of
Furthermore, the distribution of the first line segment that is the counted number of the boundaries of the first dots in the line data and the acquired number of the first dots included in the first line segment. The printing apparatus according to claim 3, wherein the energization time is set for each of the line data.
前記制御部は、選択された前記発熱素子への通電時間が、前記ラインデータ内の前記第1のドットの前記境界の数が多い場合に、前記境界の数が少ない場合よりも短くなるように、前記通電時間を設定する
ことを特徴とする請求項4に記載の印刷装置。
The controller is configured such that the energization time for the selected heating element is shorter when the number of the boundaries of the first dots in the line data is large than when the number of the boundaries is small. The printing apparatus according to claim 4, wherein the energization time is set.
前記制御部は、選択された前記発熱素子への通電時間が、前記第1のラインセグメントに含まれる前記第1のドットの数が0であるような当該第1のラインセグメントの数が多い場合に、そのような第1のラインセグメントの数が少ない場合よりも長くなるように、前記通電時間を設定する
ことを特徴とする請求項2乃至請求項5のいずれか一項に記載の印刷装置。
When the energization time for the selected heat generating element is large in the number of the first line segments such that the number of the first dots included in the first line segment is 0, the control unit The printing apparatus according to claim 2, wherein the energization time is set to be longer than when the number of the first line segments is small. .
前記制御部は、選択された前記発熱素子への通電時間が、前記第1のラインセグメントに含まれる前記第1のドットの数が0以外であるような当該第1のラインセグメントの数が多い場合に、そのような第1のラインセグメントの数が少ない場合よりも短くなるように、前記通電時間を設定する
ことを特徴とする請求項2乃至請求項6のいずれか一項に記載の印刷装置。
The control unit has a large number of first line segments such that the energization time of the selected heating element is such that the number of the first dots included in the first line segment is other than zero. 7. The printing according to claim 2, wherein the energization time is set to be shorter than the case where the number of the first line segments is small. apparatus.
前記制御部は、前記複数のラインデータそれぞれの前記複数の第1のドットの分布情報を取得することにおいて、前記ラインデータ内の2つの連続する第1のドットの発生頻度をカウントし、
さらに、カウントした、前記ラインデータ内の前記2つの連続する第1のドットの発生頻度に応じて、記複数のラインデータそれぞれについて、前記通電時間を設定する
ことを特徴とする請求項1に記載の印刷装置。
The control unit counts the frequency of occurrence of two consecutive first dots in the line data in obtaining the distribution information of the plurality of first dots for each of the plurality of line data,
The energization time is set for each of the plurality of line data according to the counted occurrence frequency of the two consecutive first dots in the line data. Printing device.
ある方向に配列された複数の発熱素子を含む印刷ヘッドを備える印刷装置を用いた印刷方法であって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記印刷方法は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを含むことを特徴とする印刷方法。
A printing method using a printing apparatus including a print head including a plurality of heating elements arranged in a certain direction,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The printing method includes:
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data A printing method comprising: setting an energization time for supplying a current to the generated heating element.
ある方向に配列された複数の発熱素子を含む印刷ヘッドを備える印刷装置の制御部により読取られた際に、前記制御部に処理を実行させるプログラムであって、
被印刷媒体に印刷される画像を表す印刷データが複数のラインデータに分割されて、各ラインデータは、前記ある方向に延在し、且つ、前記被印刷媒体に印刷される複数の第1のドットと、前記画像を構成する複数のドットのうちの前記複数の第1のドット以外のドットである複数の第2のドットとを含み、
前記制御部に実行させる処理は、
前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットに対応する複数の前記発熱素子に選択的に電流を流れさせることにより、選択された前記発熱素子に熱を発生させ、且つ、前記各ラインデータ内の対応する複数の第1のドットを前記被印刷媒体に印刷させ、
さらに、前記各ラインデータについて、前記各ラインデータの前記複数の第1のドットの分布情報を取得し、且つ、前記各ラインデータの前記複数の第1のドットの前記分布情報に応じて、選択された前記発熱素子に電流を供給する通電時間を設定する
ことを含むことを特徴とするプログラム。
A program for causing the control unit to execute processing when read by a control unit of a printing apparatus including a print head including a plurality of heating elements arranged in a certain direction,
Print data representing an image to be printed on a print medium is divided into a plurality of line data, and each line data extends in the certain direction and is printed on the print medium. And a plurality of second dots that are dots other than the plurality of first dots among the plurality of dots constituting the image,
The process to be executed by the control unit is as follows:
For each of the line data, by causing current to selectively flow through the plurality of heating elements corresponding to the plurality of first dots of each line data, heat is generated in the selected heating elements, and , Causing a plurality of corresponding first dots in each line data to be printed on the printing medium,
Further, for each of the line data, the distribution information of the plurality of first dots of the line data is acquired and selected according to the distribution information of the plurality of first dots of the line data A program comprising setting an energization time for supplying a current to the generated heating element.
JP2017052241A 2016-03-31 2017-03-17 Printing equipment, printing methods and programs Active JP6988109B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/472,122 US10137714B2 (en) 2016-03-31 2017-03-28 Printer and printing program
CN201710200835.5A CN107264062B (en) 2016-03-31 2017-03-30 Printing equipment and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016072358 2016-03-31
JP2016072358 2016-03-31

Publications (2)

Publication Number Publication Date
JP2017185790A true JP2017185790A (en) 2017-10-12
JP6988109B2 JP6988109B2 (en) 2022-01-05

Family

ID=60046009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017052241A Active JP6988109B2 (en) 2016-03-31 2017-03-17 Printing equipment, printing methods and programs

Country Status (2)

Country Link
JP (1) JP6988109B2 (en)
CN (1) CN107264062B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109532239A (en) * 2018-10-29 2019-03-29 厦门汉印电子技术有限公司 A kind of printer step printing method, apparatus and thermal printer

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63197667A (en) * 1987-02-13 1988-08-16 Mitsubishi Electric Corp Method and apparatus for driving thermal head
JPH06143648A (en) * 1992-10-30 1994-05-24 Casio Comput Co Ltd Thermal printer
JPH0890818A (en) * 1994-09-21 1996-04-09 Kofu Nippon Denki Kk Line thermal printer
JP2001232843A (en) * 2000-02-23 2001-08-28 Alps Electric Co Ltd Thermal printer and method of recording therefor
US20070146466A1 (en) * 2005-12-22 2007-06-28 Wiens Curt A Thermal recording system and method
JP2007283689A (en) * 2006-04-19 2007-11-01 Matsushita Electric Ind Co Ltd Thermosensitive head controller and image-forming apparatus using the same
JP2011062941A (en) * 2009-09-18 2011-03-31 Toshiba Tec Corp Thermal printer and method for controlling thermal printer
JP2014008771A (en) * 2012-07-03 2014-01-20 Toshiba Tec Corp Thermal printer and program therefor
JP2015110322A (en) * 2013-11-05 2015-06-18 カシオ計算機株式会社 Stamp surface forming device, stamp surface forming method and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3889217B2 (en) * 2000-10-31 2007-03-07 セイコーインスツル株式会社 Thermal line printer driving method and thermal line printer
JP4537977B2 (en) * 2006-05-30 2010-09-08 東芝テック株式会社 Thermal printer and printing method therefor
US8403442B2 (en) * 2010-04-23 2013-03-26 Seiko Epson Corporation Printing device and printing method
JP5928409B2 (en) * 2013-05-15 2016-06-01 カシオ電子工業株式会社 Printing apparatus and lubricant supply method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63197667A (en) * 1987-02-13 1988-08-16 Mitsubishi Electric Corp Method and apparatus for driving thermal head
JPH06143648A (en) * 1992-10-30 1994-05-24 Casio Comput Co Ltd Thermal printer
JPH0890818A (en) * 1994-09-21 1996-04-09 Kofu Nippon Denki Kk Line thermal printer
JP2001232843A (en) * 2000-02-23 2001-08-28 Alps Electric Co Ltd Thermal printer and method of recording therefor
US20070146466A1 (en) * 2005-12-22 2007-06-28 Wiens Curt A Thermal recording system and method
JP2007283689A (en) * 2006-04-19 2007-11-01 Matsushita Electric Ind Co Ltd Thermosensitive head controller and image-forming apparatus using the same
JP2011062941A (en) * 2009-09-18 2011-03-31 Toshiba Tec Corp Thermal printer and method for controlling thermal printer
JP2014008771A (en) * 2012-07-03 2014-01-20 Toshiba Tec Corp Thermal printer and program therefor
JP2015110322A (en) * 2013-11-05 2015-06-18 カシオ計算機株式会社 Stamp surface forming device, stamp surface forming method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109532239A (en) * 2018-10-29 2019-03-29 厦门汉印电子技术有限公司 A kind of printer step printing method, apparatus and thermal printer
CN109532239B (en) * 2018-10-29 2021-01-05 厦门汉印电子技术有限公司 Printer segmented printing method and device and thermal printer

Also Published As

Publication number Publication date
JP6988109B2 (en) 2022-01-05
CN107264062B (en) 2019-09-27
CN107264062A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
JP5753415B2 (en) Printing apparatus and printing apparatus control method
US10137714B2 (en) Printer and printing program
JP2011062835A (en) Device and method for controlling the same, and program
US10572780B2 (en) Printing apparatus, printing control method, and recording medium
JP6988109B2 (en) Printing equipment, printing methods and programs
JP5907387B2 (en) Printing apparatus and printing method
JP5548988B2 (en) Printing device, label producing method, and storage medium storing program relating to label producing method
JP5354267B2 (en) Tape printer, division label creation method, and storage medium storing division label creation program
JP5950148B2 (en) Printing device, printing method, and printing control program
JP6790671B2 (en) Printing device, control method of printing device, and program
JP5636830B2 (en) Tape printer
JPH1170707A (en) Printer
JP6347230B2 (en) Printing device
JP5212726B2 (en) Tape printer, label creation method, and storage medium storing label creation program
JP5729446B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP5864948B2 (en) Printing apparatus and control method thereof
JP6447559B2 (en) Printing apparatus, printing method, and printing program
JP5376235B2 (en) Tape printing apparatus, method for creating enlarged width size label, and storage medium storing enlarged width size label creating program
JP4661660B2 (en) Printing apparatus and printing method
JP2011056874A (en) Line printer and control method therefor
JP2023046434A (en) Printer, control method of printer and program
JP2018075722A (en) Printer and control program of printer
JP2001187470A (en) Printer for long print medium
JP2021079705A (en) Printing device, printing method and program
JP2002254687A (en) Device, method and program for controlling thermal printer

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20190415

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190802

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200929

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210427

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210622

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: 20211102

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211115

R150 Certificate of patent or registration of utility model

Ref document number: 6988109

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150