JP2013043379A - Thermal printer and program - Google Patents

Thermal printer and program Download PDF

Info

Publication number
JP2013043379A
JP2013043379A JP2011183035A JP2011183035A JP2013043379A JP 2013043379 A JP2013043379 A JP 2013043379A JP 2011183035 A JP2011183035 A JP 2011183035A JP 2011183035 A JP2011183035 A JP 2011183035A JP 2013043379 A JP2013043379 A JP 2013043379A
Authority
JP
Japan
Prior art keywords
printing
average
voltage
power
thermal head
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
JP2011183035A
Other languages
Japanese (ja)
Other versions
JP5379833B2 (en
Inventor
Yozo Kobayashi
陽三 小林
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2011183035A priority Critical patent/JP5379833B2/en
Publication of JP2013043379A publication Critical patent/JP2013043379A/en
Application granted granted Critical
Publication of JP5379833B2 publication Critical patent/JP5379833B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a thermal printer and a program which allow for print control with low current consumption without compromising the printing speed.SOLUTION: The thermal printer comprises a thermal head in which a plurality of heating elements, each generating heat by receiving voltage supply, are arranged so as to print on a recording medium by generating heat, a detection unit which detects the voltage being supplied to the heating elements, and a control unit which controls the print speed variably depending on the surplus for the average current value, i.e., the average value of currents supplied to the heating elements, and the average print rate before the line to be printed.

Description

本発明の実施形態は、サーマルプリンタおよびプログラムに関する。   Embodiments described herein relate generally to a thermal printer and a program.

近年のサーマルプリンタは、色々な場所で使用される場合が多くなっている。具体的には、サーマルプリンタは、従来からの店頭や倉庫での使用に加えて、屋外のイベントや野外市場、宅配でのラベルやレシートの発行などの様々な場面で使用されるようになっている。   In recent years, thermal printers are often used in various places. Specifically, in addition to traditional use in stores and warehouses, thermal printers are used in various situations such as outdoor events, outdoor markets, and delivery of labels and receipts for home delivery. Yes.

さらに、サーマルプリンタは、1つの場面での専用機としてではなく、複数の場面で使用したいなどの要望が増えている。そして、このように様々な場面においてサーマルプリンタを使用する場合、サーマルプリンタには、ACアダプタによる24Vの電圧供給やバッテリからの12〜24V程度の電圧供給など、様々な電圧供給が行われる。   Further, there is an increasing demand for the thermal printer to be used in a plurality of scenes, not as a dedicated machine in one scene. When the thermal printer is used in various scenes as described above, various voltage supplies are performed on the thermal printer, such as a voltage supply of 24 V by an AC adapter and a voltage supply of about 12 to 24 V from a battery.

ところで、様々な場面で使用されるサーマルプリンタにおいては、小型軽量は勿論のこと、消費電力を少なくし、かつ所望の印字速度も損なわずに使用したいとの要望がある。   By the way, thermal printers used in various situations are demanded not only to be small and light, but also to reduce power consumption and use without sacrificing a desired printing speed.

実施形態のサーマルプリンタは、電圧の供給を受けて発熱する複数の発熱素子が配置され、前記発熱素子の発熱により記録媒体に印字するサーマルヘッドと、前記発熱素子に供給される電圧を検出する検出部と、前記発熱素子に供給する電流の平均である平均電流値に対する余力と印字対象のライン以前の平均印字率とに応じて印字速度を可変制御する制御部と、を備える。   In the thermal printer of the embodiment, a plurality of heating elements that generate heat upon receiving a voltage are arranged, a thermal head that prints on a recording medium by the heat generated by the heating elements, and detection that detects the voltage supplied to the heating elements And a control unit that variably controls the printing speed in accordance with the remaining power with respect to the average current value that is the average of the current supplied to the heating element and the average printing rate before the line to be printed.

実施形態のプログラムは、電圧の供給を受けて発熱する複数の発熱素子が配置され、前記発熱素子の発熱により記録媒体に印字するサーマルヘッドと、前記発熱素子に供給される電圧を検出する検出部と、を備えたサーマルプリンタを制御するコンピュータを、前記発熱素子に供給する電流の平均である平均電流値に対する余力と印字対象のライン以前の平均印字率とに応じて印字速度を可変制御する制御手段として機能させる。   The program according to the embodiment includes a thermal head in which a plurality of heating elements that generate heat upon receiving a voltage supply are arranged, prints on a recording medium by the heat generated by the heating elements, and a detection unit that detects a voltage supplied to the heating elements And a computer for controlling the thermal printer, wherein the printing speed is variably controlled in accordance with the remaining power with respect to the average current value that is the average of the current supplied to the heating element and the average printing rate before the line to be printed. It functions as a means.

図1は、第1の実施形態にかかるラベルプリンタの外観を示す斜視図である。FIG. 1 is a perspective view showing an appearance of the label printer according to the first embodiment. 図2は、カバーが開いた状態のラベルプリンタの外観を示す斜視図である。FIG. 2 is a perspective view showing the appearance of the label printer with the cover open. 図3は、用紙搬送経路を示す模式図である。FIG. 3 is a schematic diagram illustrating a sheet conveyance path. 図4は、ラベルプリンタの制御系を示すブロック図である。FIG. 4 is a block diagram showing the control system of the label printer. 図5は、プリンタ制御部の構成を示すブロック図である。FIG. 5 is a block diagram illustrating a configuration of the printer control unit. 図6は、ラインサーマルヘッドおよびヘッドコントローラを主体に示すブロック図である。FIG. 6 is a block diagram mainly showing a line thermal head and a head controller. 図7は、ドライバICの構成を示す回路図である。FIG. 7 is a circuit diagram showing the configuration of the driver IC. 図8は、ドライバIC毎の動作を示すタイミングチャートである。FIG. 8 is a timing chart showing the operation for each driver IC. 図9は、直流電力入力部から24Vの電圧が供給された場合の印字条件を示す図である。FIG. 9 is a diagram illustrating printing conditions when a voltage of 24 V is supplied from the DC power input unit. 図10は、充電池から19Vの電圧が供給された場合の印字条件を示す図である。FIG. 10 is a diagram illustrating printing conditions when a voltage of 19 V is supplied from the rechargeable battery. 図11は、発熱素子のブロックに24Vの電圧が供給された場合の分割テーブルを示す図である。FIG. 11 is a diagram showing a division table when a voltage of 24 V is supplied to the heat generating element block. 図12は、発熱素子のブロックに19Vの電圧が供給された場合の分割テーブルを示す図である。FIG. 12 is a diagram showing a division table when a voltage of 19 V is supplied to the heat generating element block. 図13は、各ドライバICを一括駆動させる場合の動作を示すタイミングチャートである。FIG. 13 is a timing chart showing an operation when the driver ICs are collectively driven. 図14は、各ドライバICを2分割駆動させる場合の動作を示すタイミングチャートである。FIG. 14 is a timing chart showing the operation when each driver IC is driven in two parts. 図15は、発熱素子のブロックに24Vの電圧が供給された場合において最大定格電流値を超えないようにした場合の印字速度を含む分割テーブルを示す図である。FIG. 15 is a diagram illustrating a division table including a printing speed when the maximum rated current value is not exceeded when a voltage of 24 V is supplied to the heat generating element block. 図16は、発熱素子のブロックに19Vの電圧が供給された場合において最大定格電流値を超えないようにした場合の印字速度を含む分割テーブルを示す図である。FIG. 16 is a diagram illustrating a division table including a printing speed when the maximum rated current value is not exceeded when a voltage of 19 V is supplied to the block of the heat generating elements. 図17は、発熱素子のブロックに24Vの電圧が供給された場合における平均電流値に対する余力に応じた印字率と印字速度との関係を示すテーブルを示す図である。FIG. 17 is a diagram showing a table showing the relationship between the printing rate and the printing speed according to the remaining power with respect to the average current value when a voltage of 24 V is supplied to the block of the heating elements. 図18は、発熱素子のブロックに19Vの電圧が供給された場合における平均電流値に対する余力に応じた印字率と印字速度との関係を示すテーブルを示す図である。FIG. 18 is a diagram showing a table showing the relationship between the printing rate and the printing speed corresponding to the remaining power with respect to the average current value when a voltage of 19 V is supplied to the block of the heat generating elements. 図19は、発熱素子のブロックに24Vの電圧が供給された場合における平均電流値に対する余力に応じた印字率と印字速度との関係の一例を示すグラフである。FIG. 19 is a graph showing an example of the relationship between the printing rate and the printing speed corresponding to the remaining power with respect to the average current value when a voltage of 24 V is supplied to the block of the heating elements. 図20は、発熱素子のブロックに19Vの電圧が供給された場合における平均電流値に対する余力に応じた印字率と印字速度との関係の一例を示すグラフである。FIG. 20 is a graph showing an example of the relationship between the printing rate and the printing speed corresponding to the remaining power with respect to the average current value when a voltage of 19 V is supplied to the block of the heating elements. 図21は、印字処理の流れを示すフローチャートである。FIG. 21 is a flowchart showing the flow of the printing process. 図22は、印字率に応じた加減算値を決めるカウンタ値テーブルを示す図である。FIG. 22 is a diagram showing a counter value table for determining addition / subtraction values according to the printing rate. 図23は、残カウンタ値に対応する印字速度テーブルを決める印字速度選択テーブルを示す図である。FIG. 23 is a diagram showing a printing speed selection table for determining a printing speed table corresponding to the remaining counter value. 図24は、第2の実施形態にかかる印字処理の流れを示すフローチャートである。FIG. 24 is a flowchart illustrating the flow of a printing process according to the second embodiment.

(第1の実施形態)
本実施形態では、台紙に複数のラベルが貼付されたラベル用紙を巻き取った用紙ロールを内部に収納し、サーマルヘッドによりバーコードなど印刷を行う感熱式のプリンタを例示する。
(First embodiment)
In the present embodiment, a thermal printer that stores therein a paper roll in which a label paper having a plurality of labels attached to a mount is wound and prints a barcode or the like with a thermal head is illustrated.

本実施形態にかかるラベルプリンタの概略構造について図1、図2を参照して説明する。図1は、本実施形態にかかるラベルプリンタの外観を示す斜視図である。図2は、カバーが開いた状態のラベルプリンタの外観を示す斜視図である。   A schematic structure of the label printer according to the present embodiment will be described with reference to FIGS. FIG. 1 is a perspective view showing an appearance of a label printer according to the present embodiment. FIG. 2 is a perspective view showing the appearance of the label printer with the cover open.

ラベルプリンタ1は、直方体形状の外観形状を有しており、ラベルプリンタ1の印字機能、用紙送り機能をなす印字機構300(図4参照)および電源となる充電池270(図4参照)などは、ハウジング102内に収納されている。本実施形態においては、充電池270としてリチウムイオン電池(バッテリ電池)を使用している。   The label printer 1 has a rectangular parallelepiped external shape. The printing function 300 of the label printer 1, the printing mechanism 300 (see FIG. 4) that performs the paper feeding function, the rechargeable battery 270 (see FIG. 4) serving as a power source, and the like Housed in the housing 102. In this embodiment, a lithium ion battery (battery battery) is used as the rechargeable battery 270.

ハウジング102は、台紙に複数の記録媒体であるラベルL(図2参照)が貼付されたラベル用紙PTを巻き取った用紙ロールPRを収納する内部構造を有しており、用紙ロールPRを内部に導入できるように上面に開口部106が形成されている。開口部106にはカバー107が回動自在に配置されている。開口部106は、カバー107を開閉することにより開状態又は閉状態にされる。   The housing 102 has an internal structure that houses a paper roll PR around which a label paper PT on which a label L (see FIG. 2) as a plurality of recording media is attached to a mount, and the paper roll PR is placed inside. An opening 106 is formed on the upper surface so that it can be introduced. A cover 107 is rotatably disposed in the opening 106. The opening 106 is opened or closed by opening and closing the cover 107.

なお、ハウジング102には、カバー107の開閉状態を検知するカバー開閉センサ57(図4参照)が設けられている。カバー開閉センサ57は、機械式センサであるマイクロスイッチで構成されており、カバー107がハウジング102から開放され、開口部106が開放された状態では電流が流れないオフ状態となる。一方、カバー107が開口部106を覆った状態では電流が流れるオン状態となる。なお、このカバー開閉センサ57は、上述したマイクロスイッチに限られるものではなく、光センサを備えた非接触式スイッチなども使用することができる。   The housing 102 is provided with a cover open / close sensor 57 (see FIG. 4) that detects the open / closed state of the cover 107. The cover open / close sensor 57 is configured by a micro switch that is a mechanical sensor, and is in an off state in which no current flows when the cover 107 is opened from the housing 102 and the opening 106 is opened. On the other hand, when the cover 107 covers the opening portion 106, an on state in which a current flows is set. The cover open / close sensor 57 is not limited to the above-described microswitch, and a non-contact switch provided with an optical sensor can also be used.

カバー107は、開口部106の一辺をなすハウジング102の奥側辺108に取り付けられている。カバー107を閉じた状態において、カバー107の先端である外側辺111と、開口部106の一辺である手前側辺109との間には、ラベルプリンタ1の幅方向に印字されたラベル用紙PTを取り出すための細長い隙間部が形成される。この隙間部は、用紙排出口110として機能する。   The cover 107 is attached to the back side 108 of the housing 102 that forms one side of the opening 106. With the cover 107 closed, label paper PT printed in the width direction of the label printer 1 is placed between the outer side 111 that is the tip of the cover 107 and the front side 109 that is one side of the opening 106. An elongated gap is formed for removal. This gap portion functions as the paper discharge port 110.

また、ハウジング102の一側面には、各種のコネクタ(例えばUSB(Universal Serial Bus)コネクタなど)を有する接続コネクタ部103および充電池270の着脱を可能とするバッテリ収納部104が配置されている。   In addition, on one side surface of the housing 102, a connection connector portion 103 having various connectors (for example, a USB (Universal Serial Bus) connector) and a battery storage portion 104 that allows the rechargeable battery 270 to be attached and detached are disposed.

用紙排出口110から排出されたラベル用紙PTをカットするため、用紙排出口110を構成するハウジング102の手前側辺109やカバー107の外側辺111は、鋭利な形状に形成されている。   In order to cut the label paper PT discharged from the paper discharge port 110, the front side 109 of the housing 102 and the outer side 111 of the cover 107 constituting the paper discharge port 110 are formed in a sharp shape.

ハウジング102の内部には、用紙ロールPRを着脱自在に収納可能な用紙収納部105が形成されている。用紙ロールPRは、ロール軸をラベルプリンタ1の幅方向に向けた状態で用紙収納部105に収納され、プラテンローラ117によって引き出されて用紙排出口110(図1参照)に向けて搬送される。このプラテンローラ117に対向してラインサーマルヘッド12が配置されている。   Formed inside the housing 102 is a paper storage portion 105 that can removably store the paper roll PR. The paper roll PR is stored in the paper storage unit 105 with the roll axis directed in the width direction of the label printer 1, pulled out by the platen roller 117, and conveyed toward the paper discharge port 110 (see FIG. 1). A line thermal head 12 is disposed opposite to the platen roller 117.

ラインサーマルヘッド12は、下方に配置されたヘッドブラケット115に着脱できるように配置されている。ヘッドブラケット115は、ハウジング102に固定され、ラインサーマルヘッド12をラベルプリンタ1の奥側上方に付勢する。また、ラインサーマルヘッド12のラベルプリンタ1の奥側には、ヘッドカバー116が隣接して配置される。ヘッドカバー116は、ハウジング102に必要に応じて装着され、ラインサーマルヘッド12を付勢してラインサーマルヘッド12の振動を防止する。   The line thermal head 12 is disposed so as to be attachable to and detachable from the head bracket 115 disposed below. The head bracket 115 is fixed to the housing 102 and urges the line thermal head 12 upward on the back side of the label printer 1. A head cover 116 is disposed adjacent to the back side of the label printer 1 of the line thermal head 12. The head cover 116 is attached to the housing 102 as necessary, and urges the line thermal head 12 to prevent the line thermal head 12 from vibrating.

ラインサーマルヘッド12は、本実施形態にかかるラベルプリンタ1がライン型の印刷方式を採用することから、複数の発熱素子24がライン状に配置されている。ラインサーマルヘッド12は、ヘッドコントローラ40(図4参照)の制御に基づいて発熱素子24が発熱することで、ラベル用紙PTのラベルLを加熱し印字を行う。ラインサーマルヘッド12はヘッドブラケット115に着脱自在に配置され、例えば203dpiのものと、300dpiのものとを選択して配置することができる。なお、本実施形態では、203dpiのラインサーマルヘッド12がヘッドブラケット115に配置されているものとする。   In the line thermal head 12, since the label printer 1 according to this embodiment employs a line-type printing method, a plurality of heating elements 24 are arranged in a line. The line thermal head 12 performs printing by heating the label L of the label sheet PT when the heating element 24 generates heat based on the control of the head controller 40 (see FIG. 4). The line thermal head 12 is detachably disposed on the head bracket 115, and for example, a 203 dpi one and a 300 dpi one can be selected and disposed. In the present embodiment, it is assumed that the 203 dpi line thermal head 12 is disposed on the head bracket 115.

また、ハウジング102の内部には、駆動ギア119が配置されている。駆動ギア119は、モータ制御部134(図4参照)に制御されて駆動するステッピングモータ131(図4参照)を駆動源として回動する。   A drive gear 119 is disposed inside the housing 102. The drive gear 119 rotates with a stepping motor 131 (see FIG. 4) driven by being controlled by the motor control unit 134 (see FIG. 4) as a drive source.

カバー107において、プラテンローラ117の近傍には、用紙抑えローラ118が配置されている。プラテンローラ117および用紙抑えローラ118は、いずれもラベルプリンタ1の幅方向に回転軸を向けて回動自在となっている。   In the cover 107, a sheet pressing roller 118 is disposed in the vicinity of the platen roller 117. Both the platen roller 117 and the sheet restraining roller 118 are rotatable with the rotation axis directed in the width direction of the label printer 1.

プラテンローラ117は、カバー107が閉じられた状態でラインサーマルヘッド12の発熱素子24と接する位置に位置決めされてカバー107に配置されている。ラベルプリンタ1の正面側からみてプラテンローラ117の左側には、プラテンローラ117と一体に回動する従動ギア119aが接続されている。   The platen roller 117 is positioned at a position in contact with the heating element 24 of the line thermal head 12 with the cover 107 closed, and is disposed on the cover 107. A driven gear 119 a that rotates integrally with the platen roller 117 is connected to the left side of the platen roller 117 when viewed from the front side of the label printer 1.

従動ギア119aは、カバー107が閉じられた状態になると駆動ギア119と噛み合い、駆動ギア119に駆動される。用紙抑えローラ118は、カバー107が閉じられた状態でヘッドカバー116と接する位置に位置決めされるようにカバー107に接続されている。カバー107が閉じられると、カバー107に取り付けられている従動ギア119aは、駆動ギア119と噛合し、従動ギア119aに連結されたプラテンローラ117を回転駆動する。本実施形態において、駆動ギア119、従動ギア119aとは変速機132(図4参照)を構成する。   When the cover 107 is closed, the driven gear 119a meshes with the drive gear 119 and is driven by the drive gear 119. The sheet holding roller 118 is connected to the cover 107 so as to be positioned at a position in contact with the head cover 116 with the cover 107 closed. When the cover 107 is closed, the driven gear 119a attached to the cover 107 meshes with the drive gear 119 and rotationally drives the platen roller 117 connected to the driven gear 119a. In the present embodiment, the drive gear 119 and the driven gear 119a constitute a transmission 132 (see FIG. 4).

本実施形態では、用紙ロールPRは、用紙収納部105内に配置され、レバー122で取り付け/取り外し可能に配置され、その間隔を用紙ロールPRの間隔にあわせて変更できる2枚のガイドフェンス121の間に配置されている。   In the present embodiment, the paper roll PR is disposed in the paper storage unit 105 and is disposed so as to be attachable / detachable by a lever 122, and the distance between the two guide fences 121 can be changed according to the interval of the paper roll PR. Arranged between.

また、ハウジング102には、外部電源からの直流電力を入力する直流電力入力部210が配置されている。この直流電力入力部210にACアダプタ400のプラグ404が挿し込まれることで、ラベルプリンタ1には直流電力が供給される。   The housing 102 is also provided with a DC power input unit 210 for inputting DC power from an external power source. When the plug 404 of the AC adapter 400 is inserted into the DC power input unit 210, DC power is supplied to the label printer 1.

ACアダプタ400は、ラベルプリンタ1と別体に形成され、外部の商用電力コンセントに挿し込まれて、直流電力をプラグ404から出力する。ACアダプタ400は、内部に直流変換回路を備えた本体401と、本体401に取り付けられたコンセントプラグ402と、直流電力出力用のケーブル403と、プラグ404とを備える。例えば、ACアダプタ400は、コンセントプラグ402から入力されたAC100Vの電力をケーブル403先端のプラグ404にDC24Vとして出力する。   The AC adapter 400 is formed separately from the label printer 1 and is inserted into an external commercial power outlet so as to output DC power from the plug 404. The AC adapter 400 includes a main body 401 having a DC conversion circuit therein, an outlet plug 402 attached to the main body 401, a DC power output cable 403, and a plug 404. For example, the AC adapter 400 outputs AC 100 V power input from the outlet plug 402 to the plug 404 at the tip of the cable 403 as DC 24 V.

なお、直流電力入力部210から直流電力を供給する装置としては、汎用ACアダプタの他、カーアダプタ(入出力12V)、DC−DCコンバータ(入力10〜60V、出力20V)等を使用してもよい。プラグ404を直流電力入力部210に接続することにより、ラベルプリンタ1に直流電力が供給され、ラベルプリンタ1の駆動や充電池270の充電が可能な状態になる。   In addition, as a device for supplying DC power from the DC power input unit 210, a car adapter (input / output 12V), a DC-DC converter (input 10 to 60V, output 20V), etc. can be used in addition to a general-purpose AC adapter. Good. By connecting the plug 404 to the DC power input unit 210, DC power is supplied to the label printer 1, and the label printer 1 can be driven and the rechargeable battery 270 can be charged.

加えて、ハウジング102には、表示・操作部150が設けられている。表示・操作部150には、電源スイッチ151と、ユーザが紙送りなどを指示するための紙送りボタン152と、ユーザが紙送りの一時停止などを指示するための一時停止ボタン153と、充電池270の充電状態をユーザに報知するためのインジケータ154と、LCD155(Liquid Crystal Display)と、通信用窓156とが設けられている。概略的には、ラベルプリンタ1は、通信用窓156および通信インタフェース29(図5参照)を介した赤外線通信や、接続コネクタ部103および通信インタフェース29を介したデータ通信によって、外部機器とのデータ送受信を実行できる。例えば、このデータ送受信によって、バーコードなどの印字データを外部機器から受信し、RAM13やフラッシュメモリ14(いずれも図5参照)に蓄積して印字することができる。外部機器は、例えば、パーソナルコンピュータ(PC)、携帯電話機、ハンディターミナル等であって、ユーザによる操作入力などに応じて各種演算処理を実行する情報機器であってよい。   In addition, the housing 102 is provided with a display / operation unit 150. The display / operation unit 150 includes a power switch 151, a paper feed button 152 for the user to instruct paper feed and the like, a pause button 153 for the user to instruct to pause paper feed, and the like, a rechargeable battery An indicator 154 for notifying the user of the state of charge of 270, an LCD 155 (Liquid Crystal Display), and a communication window 156 are provided. Schematically, the label printer 1 performs data communication with an external device through infrared communication through the communication window 156 and the communication interface 29 (see FIG. 5) and data communication through the connection connector 103 and the communication interface 29. Can send and receive. For example, by this data transmission / reception, print data such as a barcode can be received from an external device, stored in the RAM 13 or the flash memory 14 (both see FIG. 5) and printed. The external device is, for example, a personal computer (PC), a mobile phone, a handy terminal, or the like, and may be an information device that executes various arithmetic processes in response to an operation input by a user.

次に、用紙収納部105とラインサーマルヘッド12とを結ぶ用紙搬送経路について図3を参照して説明する。図3は、用紙搬送経路を示す模式図である。   Next, a paper conveyance path connecting the paper storage unit 105 and the line thermal head 12 will be described with reference to FIG. FIG. 3 is a schematic diagram illustrating a sheet conveyance path.

図3に示すように、用紙収納部105とラインサーマルヘッド12とを結ぶ用紙搬送経路中には、搬送される用紙の位置を検出するセンサであるラベルセンサ56が設けられている。具体的には、ラベルセンサ56は、ラベル用紙PTの台紙に添付されたラベルLの位置を光の明暗によって検出するフォトセンサである。ラベルセンサ56は、ラベル用紙PTの台紙に添付されたラベルL間のギャップを検出するための透過型センサでもよいし、ラベル用紙PTの台紙に貼付されたラベルLを検出するための反射型センサでもよい。ラベルセンサ56はプリンタ制御部135(図4参照)に接続されている。プリンタ制御部135は、ラベルセンサ56の出力値と予め設定された閾値(設定値)とを比較して明暗を区別することで、ラベルLを検出している。また、ラベルセンサ56は、搬送されるラベルLの位置を検出するだけでなく、用紙上の所定位置に印刷するために用紙上に予め設けられたブラックマークを検出してもよい。   As shown in FIG. 3, a label sensor 56 that is a sensor for detecting the position of the conveyed paper is provided in the paper conveyance path connecting the paper storage unit 105 and the line thermal head 12. Specifically, the label sensor 56 is a photo sensor that detects the position of the label L attached to the mount of the label paper PT by the brightness of light. The label sensor 56 may be a transmissive sensor for detecting a gap between the labels L attached to the mount of the label paper PT, or a reflective sensor for detecting the label L attached to the mount of the label paper PT. But you can. The label sensor 56 is connected to the printer control unit 135 (see FIG. 4). The printer control unit 135 detects the label L by comparing the output value of the label sensor 56 with a preset threshold value (set value) to distinguish between light and dark. Further, the label sensor 56 may detect not only the position of the conveyed label L but also a black mark provided in advance on the paper for printing at a predetermined position on the paper.

次に、ラベルプリンタ1の制御系について説明する。ここで、図4は、ラベルプリンタの制御系を示すブロック図である。   Next, the control system of the label printer 1 will be described. Here, FIG. 4 is a block diagram showing a control system of the label printer.

図4に示すように、ラベルプリンタ1の印字機構300は、ラインサーマルヘッド12にストローブ信号(STB)、印字信号を含む印字制御信号(DTA)を出力するヘッドコントローラ40と、ステッピングモータ131に駆動パルス信号を出力するモータ制御部134とを備えている。そして、プリンタ制御部135は、カバー開閉センサ57、ラベルセンサ56、表示・操作部150、印字機構300など、装置全体を制御する。   As shown in FIG. 4, the printing mechanism 300 of the label printer 1 is driven by a head controller 40 that outputs a strobe signal (STB) to the line thermal head 12 and a printing control signal (DTA) including a printing signal, and a stepping motor 131. And a motor control unit 134 that outputs a pulse signal. The printer control unit 135 controls the entire apparatus such as the cover opening / closing sensor 57, the label sensor 56, the display / operation unit 150, the printing mechanism 300, and the like.

また、ラベルプリンタ1の印字機構300は、ヘッドブラケット115に取り付けられたラインサーマルヘッド12の解像度が300dpiのものであるか、203dpiのものであるかを検出する印字密度検出部136を備えている。なお。本実施形態では、上述したように、ヘッドブラケット115に取り付けられたラインサーマルヘッド12の解像度が203dpiの場合について説明する。   In addition, the printing mechanism 300 of the label printer 1 includes a printing density detection unit 136 that detects whether the resolution of the line thermal head 12 attached to the head bracket 115 is 300 dpi or 203 dpi. . Note that. In this embodiment, as described above, the case where the resolution of the line thermal head 12 attached to the head bracket 115 is 203 dpi will be described.

ここで、図5は、プリンタ制御部135の構成を示すブロック図である。図5に示すように、プリンタ制御部135は、各種の演算処理を実行して各部を中央制御するCPU(Central Processing Unit)17を有している。このCPU17には、RAM(Random Access Memory)13および電源を切っても記憶内容を保持することができる不揮発性メモリであるフラッシュメモリ14がシステムバス15を介して接続されている。   Here, FIG. 5 is a block diagram illustrating a configuration of the printer control unit 135. As shown in FIG. 5, the printer control unit 135 includes a CPU (Central Processing Unit) 17 that executes various arithmetic processes and centrally controls each unit. The CPU 17 is connected to a RAM (Random Access Memory) 13 and a flash memory 14, which is a non-volatile memory that can retain stored contents even when the power is turned off, via a system bus 15.

フラッシュメモリ14は、ラベルプリンタ1の動作プログラムや各種設定情報を記憶する。CPU17は、フラッシュメモリ14に記憶された動作プログラムをRAM13の作業領域に展開して実行することにより各部を制御する。   The flash memory 14 stores an operation program of the label printer 1 and various setting information. The CPU 17 controls each unit by expanding and executing the operation program stored in the flash memory 14 in the work area of the RAM 13.

RAM13は、各種の可変情報を一時的に記憶する。例えば、RAM13の一部の領域は、ラベル用紙PTのラベルLに印刷される印刷データ(画像データ)が展開される印刷バッファとして利用される。印刷データは、外部機器から受信した印刷対象となるデータである。なお、印刷データは、フラッシュメモリ14に記憶されたものであってもよい。   The RAM 13 temporarily stores various variable information. For example, a partial area of the RAM 13 is used as a print buffer in which print data (image data) printed on the label L of the label paper PT is expanded. The print data is data to be printed received from an external device. Note that the print data may be stored in the flash memory 14.

また、CPU17には、通信インタフェース29、表示コントローラ141、キーコントローラ142、センサコントローラ143がシステムバス15を介して接続されている。表示コントローラ141は、CPU17の制御のもとで、表示・操作部150のLCD155における表示(バッテリ残量、電波受信状況、ラベルセンサ56による用紙の位置の検出結果など)を制御する。キーコントローラ142は、CPU17の制御のもとで、表示・操作部150の電源スイッチ151、紙送りボタン152、一時停止ボタン153などからのキー入力を制御する。センサコントローラ143は、CPU17の制御の下で、カバー開閉センサ57やラベルセンサ56などのセンサ類からの入力を制御する。   In addition, a communication interface 29, a display controller 141, a key controller 142, and a sensor controller 143 are connected to the CPU 17 via the system bus 15. Under the control of the CPU 17, the display controller 141 controls display on the LCD 155 of the display / operation unit 150 (remaining battery level, radio wave reception status, detection result of the paper position by the label sensor 56, etc.). The key controller 142 controls key inputs from the power switch 151, the paper feed button 152, the pause button 153, and the like of the display / operation unit 150 under the control of the CPU 17. The sensor controller 143 controls input from sensors such as the cover opening / closing sensor 57 and the label sensor 56 under the control of the CPU 17.

通信インタフェース29は、接続コネクタ部103や通信用窓156などを介し、ホストコンピュータなどの外部の機器と通信を行うためのインタフェースである。通信インタフェース29は、例えばIrDA等の赤外線通信、USB、無線LAN(Local Area Network)、RS−232C、Bluetooth(登録商標)等により構成され、ホストコンピュータに設けられた通信インタフェースとの通信が可能である。   The communication interface 29 is an interface for communicating with an external device such as a host computer via the connection connector unit 103, the communication window 156, and the like. The communication interface 29 includes, for example, infrared communication such as IrDA, USB, wireless LAN (Local Area Network), RS-232C, Bluetooth (registered trademark), and the like, and can communicate with a communication interface provided in the host computer. is there.

図4に戻り、ラベルプリンタ1は、ハウジング102の内部に電力制御回路200を備える。電力制御回路200は、表示・操作部150の電源スイッチ151のON/OFFに従って、ACアダプタ400等を介した外部の商用電力コンセントからの電力または充電池270からの電力の供給/遮断をソフト的に制御する。ここでいうソフト的とは、ラベルプリンタ1の制御信号によって電力の供給/遮断を制御することを意味する。   Returning to FIG. 4, the label printer 1 includes a power control circuit 200 inside the housing 102. The power control circuit 200 is configured to supply / shut off power from an external commercial power outlet or power from the rechargeable battery 270 via the AC adapter 400 or the like according to ON / OFF of the power switch 151 of the display / operation unit 150. To control. Here, “soft” means that power supply / cutoff is controlled by a control signal of the label printer 1.

電力制御回路200は、直流電力入力部210と、電圧変更部220と、電力監視部230と、電力制御部240と、電力遮断部250と、電源切替部260と、システム電源供給回路280とを備える。   The power control circuit 200 includes a DC power input unit 210, a voltage change unit 220, a power monitoring unit 230, a power control unit 240, a power cutoff unit 250, a power switching unit 260, and a system power supply circuit 280. Prepare.

直流電力入力部210は、発熱素子24のブロックに対して、24Vの電圧および当該24Vの電圧に応じて設定された電流値:1.2Aの電流を供給する。つまり、直流電力入力部210は、発熱素子24のブロックに対して28.8W(以下、29Wとする)の電力を供給する。   The DC power input unit 210 supplies a voltage of 24 V and a current of 1.2 A set according to the voltage of 24 V to the block of the heat generating element 24. That is, the DC power input unit 210 supplies 28.8 W (hereinafter referred to as 29 W) of power to the block of the heating element 24.

なお、充電池270は、発熱素子24のブロックに対して、19Vの電圧および当該19Vの電圧に応じて設定された電流値:1.5Aの電流を供給する。つまり、充電池270は、発熱素子24のブロックに対して28.5W(以下、29Wとする)の電力を供給する。   The rechargeable battery 270 supplies a voltage of 19 V and a current of 1.5 A set according to the 19 V voltage to the block of the heat generating element 24. That is, the rechargeable battery 270 supplies 28.5 W (hereinafter referred to as 29 W) of power to the block of the heating element 24.

電圧変更部220は、直流電力入力部210から入力された直流電力の電圧(24V)を充電池270の充電に適した電圧(例えば8.4Vまたは16.8V:充電池の仕様により異なる)に変更して、充電池270に供給する。本実施形態では、充電池270はリチウムイオン充電池であるので、CC/CV充電方式、すなわち、外部DC電圧を降圧して、電流電圧一定充電を行う。   The voltage changing unit 220 changes the DC power voltage (24V) input from the DC power input unit 210 to a voltage suitable for charging the rechargeable battery 270 (for example, 8.4 V or 16.8 V: depending on the specifications of the rechargeable battery). It is changed and supplied to the rechargeable battery 270. In this embodiment, since the rechargeable battery 270 is a lithium ion rechargeable battery, the CC / CV charging method, that is, the external DC voltage is stepped down to perform constant current voltage charging.

また、電圧変更部220は、充電に際して、充電電圧、電流を可変にすることや、再充電の閾値を調整することにより、電池の寿命を延ばすことができる長寿命モードに設定することができる。電力監視部230は、直流電力入力部210からの直流電力の電圧を監視する。電力遮断部250は、電力監視部230により直流電力の電圧(例えば、24V)が検出されなくなった場合、直流電力入力部210からの直流電力を遮断状態にする。電源切替部260は、システム電源供給回路280に供給する電圧を直流電力入力部210からの電圧および充電池270からの電圧のうちの一方に切り替える。   In addition, the voltage changing unit 220 can be set to a long life mode that can extend the life of the battery by making the charging voltage and current variable and adjusting the recharging threshold during charging. The power monitoring unit 230 monitors the voltage of the DC power from the DC power input unit 210. The power cut-off unit 250 puts the DC power from the DC power input unit 210 into a cut-off state when the power monitoring unit 230 no longer detects the DC power voltage (for example, 24V). The power supply switching unit 260 switches the voltage supplied to the system power supply circuit 280 to one of the voltage from the DC power input unit 210 and the voltage from the rechargeable battery 270.

電力制御部240は、電力遮断部250および電源切替部260に対して以下の制御を行う。まず、電力制御部240は、電力監視部230の検出結果に基づいて、直流電力入力部210からの直流電力の電圧が24Vである場合、電源切替部260を動作させ、直流電力入力部210からの電圧をシステム電源供給回路280および電圧変更部220に導通させる。これにより、電力制御部240は、電圧変更部220から充電池270に充電用の電圧(例えば8.4V)を供給する。さらに、電力制御部240は、プリンタ制御部135から印字信号を受けると、印字機構300の駆動電力をACアダプタ400の電力とする。   The power control unit 240 performs the following control on the power cut-off unit 250 and the power supply switching unit 260. First, when the voltage of the DC power from the DC power input unit 210 is 24V based on the detection result of the power monitoring unit 230, the power control unit 240 operates the power supply switching unit 260, and from the DC power input unit 210. Is conducted to the system power supply circuit 280 and the voltage changing unit 220. Thereby, the power control unit 240 supplies a charging voltage (for example, 8.4 V) from the voltage changing unit 220 to the rechargeable battery 270. Further, when the power control unit 240 receives a print signal from the printer control unit 135, the power control unit 240 uses the drive power of the print mechanism 300 as the power of the AC adapter 400.

また、電力制御部240は、電力監視部230の検出結果に基づいて、直流電力入力部210からの直流電力の電圧が検出されなかった場合(または電力監視部230で検出された直流電力の電圧が充電池270の電圧より低い場合)、電源切替部260を動作させ、充電池270からの電圧をシステム電源供給回路280に導通させる。これにより、電力制御部240は、プリンタ制御部135からの印字信号を受けると、印字機構300の駆動電力を充電池270の電力とする。   Further, the power control unit 240 determines that the DC power voltage from the DC power input unit 210 is not detected based on the detection result of the power monitoring unit 230 (or the DC power voltage detected by the power monitoring unit 230). Is lower than the voltage of the rechargeable battery 270), the power supply switching unit 260 is operated, and the voltage from the rechargeable battery 270 is conducted to the system power supply circuit 280. Thus, when the power control unit 240 receives a print signal from the printer control unit 135, the power control unit 240 uses the drive power of the print mechanism 300 as the power of the rechargeable battery 270.

システム電源供給回路280は、プリンタ制御部135を介して、印字機構300、カバー開閉センサ57、ラベルセンサ56および表示・操作部150などの各部に電力を供給する。印字機構300のラインサーマルヘッド12には、直流電力入力部210からの直流電力の電圧または充電池270からの電力の電圧を印加する。   The system power supply circuit 280 supplies power to each unit such as the printing mechanism 300, the cover opening / closing sensor 57, the label sensor 56, and the display / operation unit 150 via the printer control unit 135. A DC power voltage from the DC power input unit 210 or a power voltage from the rechargeable battery 270 is applied to the line thermal head 12 of the printing mechanism 300.

また、システム電源供給回路280は、プリンタ制御部135、カバー開閉センサ57、ラベルセンサ56、および表示・操作部150などを駆動する電力(例えば電圧、5V、3.5V、3.3V、1.5V等)を供給する。このように、システム電源供給回路280は、直流電力入力部210からの直流電力の電圧または充電池270からの電力の電圧の範囲で適正に動作できるように各部への動作入力電圧が設定されている。なお、ラベルセンサ56などに供給する電力は、後述するキャリブレーションで設定されたものであってよい。例えばキャリブレーションにより3.3Vから3.5Vに供給する電力が変更された場合は、変更後の電力である3.5Vがラベルセンサ56に供給される。   The system power supply circuit 280 also has power (for example, voltage 5V, 3.5V, 3.3V, 1.V) for driving the printer controller 135, the cover open / close sensor 57, the label sensor 56, the display / operation unit 150, and the like. 5V). As described above, the system power supply circuit 280 is set with the operation input voltage to each unit so that it can properly operate within the range of the DC power voltage from the DC power input unit 210 or the power voltage from the rechargeable battery 270. Yes. Note that the power supplied to the label sensor 56 and the like may be set by calibration described later. For example, when the power supplied from 3.3 V to 3.5 V is changed by calibration, 3.5 V, which is the changed power, is supplied to the label sensor 56.

システム電源供給回路280は、充電池270および直流電力入力部210からの直流電力で駆動する各電源系のオン、オフの制御を行う。すなわち、システム電源供給回路280は、直流電力入力部210に直流電力が供給されている状態では直流電力入力部210からの直流電力をプリンタ制御部135に供給し、直流電力入力部210に直流電力が供給されていない状態では充電池270からの直流電力をプリンタ制御部135に供給する。   The system power supply circuit 280 controls on / off of each power supply system driven by the DC power from the rechargeable battery 270 and the DC power input unit 210. That is, the system power supply circuit 280 supplies the DC power from the DC power input unit 210 to the printer control unit 135 in a state where the DC power is supplied to the DC power input unit 210, and supplies the DC power to the DC power input unit 210. In the state where is not supplied, DC power from the rechargeable battery 270 is supplied to the printer control unit 135.

なお、プリンタ制御部135は、印字機構300の制御を行う他、電力供給に際しては、電力制御回路200およびシステム電源供給回路280からの情報を取得し、電圧変更部220およびシステム電源供給回路280が充電できる条件であるとき、電力制御部240に充電開始の指示を送る。   In addition to controlling the printing mechanism 300, the printer control unit 135 acquires information from the power control circuit 200 and the system power supply circuit 280 when supplying power, and the voltage changing unit 220 and the system power supply circuit 280 When the charging condition is satisfied, an instruction to start charging is sent to the power control unit 240.

また、プリンタ制御部135は、表示・操作部150によるユーザの操作や、外部直流電力が供給されるか否かなどの状況に応じて、ラベルプリンタ1をさまざまな状態モードに設定する。モードとしては、ラインサーマルヘッド12による印刷が直ちに行われるインラインモード、表示・操作部150によるユーザの操作を受け付けて各種設定を行うオンラインモード、電力消費を低減するためシステムを省エネルギー状態としたスリープモード、ラインサーマルヘッド12で印字を行う印字モード、充電池270を充電する充電モード、充電池270の寿命を縮めることがない低電圧で充電を行う長寿命充電モードが設定されている。   Further, the printer control unit 135 sets the label printer 1 to various state modes in accordance with the user operation by the display / operation unit 150 and whether or not external DC power is supplied. Modes include an in-line mode in which printing by the line thermal head 12 is immediately performed, an online mode in which various operations are performed by receiving user operations from the display / operation unit 150, and a sleep mode in which the system is in an energy saving state in order to reduce power consumption. There are set a printing mode for printing with the line thermal head 12, a charging mode for charging the rechargeable battery 270, and a long-life charging mode for charging at a low voltage without shortening the life of the rechargeable battery 270.

このようなラベルプリンタ1では、用紙収納部105に用紙ロールPRを収納してラベル用紙PTを引き出して、カバー107を閉じると、引き出されたラベル用紙PTはラインサーマルヘッド12およびプラテンローラ117の間に挟まれ、かつ、ヘッドカバー116および用紙抑えローラ118の間に挟まれる。この状態でプリンタ制御部135の制御の下に印字モードとなった場合には、ステッピングモータ131がモータ制御部134の制御によって駆動されると、ラベル用紙PTは、用紙ロールPRからラインサーマルヘッド12を経由して用紙排出口110に向かう方向に搬送される。また、ラインサーマルヘッド12は、ヘッドコントローラ40の制御に基づいて発熱素子24を発熱させることによって、搬送されるラベル用紙PTのラベルLに対し所定の内容を印刷する。   In such a label printer 1, when the paper roll PR is stored in the paper storage unit 105 and the label paper PT is pulled out and the cover 107 is closed, the drawn label paper PT is placed between the line thermal head 12 and the platen roller 117. And between the head cover 116 and the sheet holding roller 118. When the printing mode is set under the control of the printer control unit 135 in this state, when the stepping motor 131 is driven by the control of the motor control unit 134, the label paper PT is transferred from the paper roll PR to the line thermal head 12. , And is conveyed in a direction toward the paper discharge port 110. Further, the line thermal head 12 prints predetermined contents on the label L of the conveyed label paper PT by causing the heating element 24 to generate heat based on the control of the head controller 40.

次に、ラインサーマルヘッド12およびヘッドコントローラ40について詳述する。ここで、図6は、ラインサーマルヘッドおよびヘッドコントローラを主体に示すブロック図、図7は、ドライバICの構成を示す回路図、図8は、ドライバIC毎の動作を示すタイミングチャートである。なお、図6においては、ラインサーマルヘッド12とヘッドコントローラ40との間に存在するヘッドブラケット115の図示を省略する。   Next, the line thermal head 12 and the head controller 40 will be described in detail. 6 is a block diagram mainly showing the line thermal head and the head controller, FIG. 7 is a circuit diagram showing the configuration of the driver IC, and FIG. 8 is a timing chart showing the operation of each driver IC. In FIG. 6, the illustration of the head bracket 115 existing between the line thermal head 12 and the head controller 40 is omitted.

ラインサーマルヘッド12は、直流電力入力部210または充電池270からの電圧の供給を、RLC回路36を介して受けて発熱する多数個(例えば、432個)の発熱素子24(24−1〜24−n)(図7参照)がライン状に配置されている。また、ラインサーマルヘッド12は、発熱素子24を分割した単位である複数のブロックを各々駆動させる駆動部である複数のドライバIC51〜55(図6参照)を備えている。このようにラインサーマルヘッド12の各発熱素子24を分割した単位である複数のブロックを各々駆動する複数のドライバIC51〜55を備えることにより、各発熱素子24−1〜24−nの印字駆動のタイミングをずらすことが可能となっている。   The line thermal head 12 receives a supply of voltage from the DC power input unit 210 or the rechargeable battery 270 via the RLC circuit 36 and generates a large number (for example, 432) of heating elements 24 (24-1 to 24-24). -N) (see FIG. 7) are arranged in a line. In addition, the line thermal head 12 includes a plurality of driver ICs 51 to 55 (see FIG. 6) that are driving units that respectively drive a plurality of blocks that are units obtained by dividing the heating element 24. In this way, by providing a plurality of driver ICs 51 to 55 that respectively drive a plurality of blocks that are units obtained by dividing each heating element 24 of the line thermal head 12, print driving of each heating element 24-1 to 24-n is performed. It is possible to shift the timing.

なお、RLC回路36を構成するコンデンサ37は、ラインサーマルヘッド12側の負荷が小さい場合にチャージアップする。なお、コンデンサ37の静電容量は、例えば、約1500Fとする。本実施形態のラベルプリンタ1は、このようにコンデンサ37をチャージアップすることによって、電源容量が小さくてすむので、充電池270による駆動に適するものとなっている。   The capacitor 37 constituting the RLC circuit 36 is charged up when the load on the line thermal head 12 side is small. The capacitance of the capacitor 37 is about 1500F, for example. The label printer 1 of this embodiment is suitable for driving by the rechargeable battery 270 because the power supply capacity can be reduced by charging the capacitor 37 in this way.

ヘッドコントローラ40は、ラインサーマルヘッド12の制御を行う印字制御部である。図6に示すように、ヘッドコントローラ40は、ブロックデータ分割回路41と、ONドット数カウンタ42〜46と、第1加算回路47と、第2加算回路48と、総加算回路49と、ストローブコントローラ50と、を備えている。   The head controller 40 is a print control unit that controls the line thermal head 12. As shown in FIG. 6, the head controller 40 includes a block data division circuit 41, ON dot number counters 42 to 46, a first addition circuit 47, a second addition circuit 48, a total addition circuit 49, and a strobe controller. 50.

各ドライバIC51〜55は、図7に示すように、電圧を発熱素子24に選択的に印加するためのスイッチ回路33として、各発熱素子24に対応させて、スイッチングトランジスタとして作用する複数個のトランジスタ31(31−1〜31−n)を備える。そして、各トランジスタ31のオン・オフを制御するためのベースには、それぞれANDゲート32(32−1〜32−n)が接続され、これらのANDゲート32からの出力信号が入力されるようになっている。   As shown in FIG. 7, each of the driver ICs 51 to 55 is a switch circuit 33 for selectively applying a voltage to the heating element 24, and a plurality of transistors functioning as switching transistors corresponding to each heating element 24. 31 (31-1 to 31-n). The bases for controlling on / off of each transistor 31 are connected to AND gates 32 (32-1 to 32-n), respectively, so that output signals from these AND gates 32 are inputted. It has become.

また、ラインサーマルヘッド12には、入力されるクロック信号CLKを基準クロックとして動作するDタイプのフリップフロップ回路(FF回路)からなるシフトレジスタ34が設けられている。このシフトレジスタ34は144ビットのものとして構成され、上記432個の発熱素子を5つに分けて各ドライバIC51〜55に割り振られている。各ドライバIC51〜55のシフトレジスタ34には並列的に印刷データが入力されるため、印刷データの入力が高速になる。   The line thermal head 12 is provided with a shift register 34 composed of a D-type flip-flop circuit (FF circuit) that operates using the input clock signal CLK as a reference clock. The shift register 34 is configured as a 144-bit register, and the 432 heating elements are divided into five and allocated to the driver ICs 51 to 55. Since the print data is input in parallel to the shift registers 34 of the driver ICs 51 to 55, the input of the print data becomes faster.

図6に示すように、ヘッドコントローラ40のブロックデータ分割回路41は、CPU17から入力された印刷データを、ラインサーマルヘッド12のドライバIC51〜55にかかる発熱素子24に対応するブロック毎の印刷データ(DAT1,DAT2,DAT3,DAT4,DAT5)に分割して、各ドライバIC51〜55のシフトレジスタ34に出力する。   As shown in FIG. 6, the block data dividing circuit 41 of the head controller 40 converts the print data input from the CPU 17 into print data for each block corresponding to the heating elements 24 applied to the driver ICs 51 to 55 of the line thermal head 12. DAT1, DAT2, DAT3, DAT4, DAT5) and output to the shift register 34 of each driver IC 51-55.

また、ヘッドコントローラ40のONドット数カウンタ42〜46は、ブロックデータ分割回路41でブロック分割(ブロック1,ブロック2,ブロック3,ブロック4,ブロック5)された印刷データ(DAT1,DAT2,DAT3,DAT4,DAT5)のそれぞれについて、図8に示すように、クロックに同期してデータラインにおける発熱素子24の数(ONのドット数)を計数する。第1加算回路47は、ONドット数カウンタ42〜44における計数がそれぞれ入力されると、各計数を加算したONドット数の計数結果を算出する。また、第2加算回路48は、ONドット数カウンタ45,46における計数がそれぞれ入力されると、各計数を加算したONドット数の計数結果を算出する。さらに、総加算回路49は、ONドット数カウンタ42〜46における計数がそれぞれ入力されると、5つの全ブロックのONドット数の計数を加算したONドット数の計数結果を算出する。第1加算回路47、第2加算回路48、総加算回路49の各加算回路で算出された計数結果は、ストローブコントローラ50に入力される。   Further, the ON dot number counters 42 to 46 of the head controller 40 are print data (DAT1, DAT2, DAT3, DAT3, DAT2, DAT3, block divided by the block data dividing circuit 41 (block 1, block 2, block 3, block 4, block 5). For each of DAT4 and DAT5), as shown in FIG. 8, the number of heating elements 24 (the number of ON dots) in the data line is counted in synchronization with the clock. When the counts in the ON dot number counters 42 to 44 are respectively input, the first addition circuit 47 calculates a count result of the ON dot number obtained by adding the respective counts. Further, when the counts in the ON dot number counters 45 and 46 are respectively input, the second addition circuit 48 calculates the count result of the ON dot number obtained by adding the respective counts. Furthermore, when the counts in the ON dot number counters 42 to 46 are respectively input, the total addition circuit 49 calculates the count result of the ON dot number obtained by adding the counts of the ON dot numbers of all the five blocks. Count results calculated by the first addition circuit 47, the second addition circuit 48, and the total addition circuit 49 are input to the strobe controller 50.

ストローブコントローラ50は、各加算回路の計数結果(印字率)に応じた分割数を定めた分割テーブルに従って、ラインサーマルヘッド12のドライバIC51〜55によって発熱素子24のブロックを一括駆動または分割駆動させるものである。さらに、ストローブコントローラ50は、直流電力入力部210または充電池270から発熱素子24のブロックに供給される電圧を検出する検出部として機能する。そして、ストローブコントローラ50は、検出した電圧に応じて、各加算回路の計数結果に応じた分割数が異なる分割テーブルに変更するものである。なお、ストローブコントローラ50によって実行される分割テーブルの変更処理については、後述する。   The strobe controller 50 drives the blocks of the heat generating elements 24 in a batch or divided manner by the driver ICs 51 to 55 of the line thermal head 12 in accordance with a division table that defines the number of divisions corresponding to the counting result (printing rate) of each adder circuit. It is. Further, the strobe controller 50 functions as a detection unit that detects a voltage supplied from the DC power input unit 210 or the rechargeable battery 270 to the block of the heating element 24. The strobe controller 50 changes the division table according to the count result of each adder circuit according to the detected voltage. The division table changing process executed by the strobe controller 50 will be described later.

各ドライバIC51〜55のシフトレジスタ34には、ヘッドコントローラ40で履歴処理(説明は省略する)がされた印刷データ(DAT1,DAT2,DAT3,DAT4,DAT5)が、ラインサーマルヘッド12の1ライン分ずつシリアル入力されるように構成されている。そして、各ドライバIC51〜55の各シフトレジスタ34にシリアル入力された1ラインを構成する印刷データはラッチ回路35にパラレル出力されるように構成されている。各ラッチ回路35は、データラッチ信号LATCHの入力によってパラレル印刷データをANDゲート32の一方の入力端子に入力するように構成されている(図7参照)。   In the shift registers 34 of the driver ICs 51 to 55, print data (DAT1, DAT2, DAT3, DAT4, DAT5) subjected to history processing (not described) by the head controller 40 corresponds to one line of the line thermal head 12. It is configured to input serially. The print data constituting one line serially input to each shift register 34 of each of the driver ICs 51 to 55 is configured to be output in parallel to the latch circuit 35. Each latch circuit 35 is configured to input parallel print data to one input terminal of the AND gate 32 in response to the input of the data latch signal LATCH (see FIG. 7).

一方、ストローブ信号STB(STB1,STB2,STB3,STB4,STB5)は、ヘッドコントローラ40によって生成されてCPU17からANDゲート32のもう一方の入力端子に入力される。これにより、ANDゲート32から出力信号が発生してトランジスタ31のベースに出力される。こうして、対応する発熱素子24に電圧が印加され、発熱素子24が発熱駆動される。   On the other hand, the strobe signal STB (STB1, STB2, STB3, STB4, STB5) is generated by the head controller 40 and input from the CPU 17 to the other input terminal of the AND gate 32. As a result, an output signal is generated from the AND gate 32 and output to the base of the transistor 31. Thus, a voltage is applied to the corresponding heat generating element 24, and the heat generating element 24 is driven to generate heat.

次に、図9および図10を用いて、直流電力入力部210から24Vの電圧が発熱素子24のブロックに供給された場合、および充電池270から19Vの電圧が発熱素子24のブロックに供給された場合それぞれの印字条件について説明する。図9は、直流電力入力部から24Vの電圧が発熱素子のブロックに供給された場合の印字条件を示す図である。図10は、充電池から19Vの電圧が発熱素子のブロックに供給された場合それぞれの印字条件を示す図である。   Next, referring to FIGS. 9 and 10, when a voltage of 24 V is supplied from the DC power input unit 210 to the block of the heating element 24, and a voltage of 19 V from the rechargeable battery 270 is supplied to the block of the heating element 24. Each printing condition will be described. FIG. 9 is a diagram illustrating printing conditions when a voltage of 24 V is supplied from the DC power input unit to the block of the heating elements. FIG. 10 is a diagram showing respective printing conditions when a voltage of 19 V is supplied from the rechargeable battery to the block of the heating elements.

本実施形態のラベルプリンタ1は、図9に示すように、直流電力入力部210から24Vの電圧および当該24Vの電圧に応じて設定された電流値:1.2Aの電流が発熱素子24のブロックに供給された場合、解像度:203dpi(8d/mm)、印字幅:54mm、主走査方向への総ドット数:432d、発熱素子24の抵抗値:600Ω、発熱素子24に供給(印加)される印加電圧:24V、発熱素子24に供給(印加)される印加電力:0.96W/d、1d電流値:0.0400mAという印字条件の下で印字を行う。   As shown in FIG. 9, the label printer 1 according to the present embodiment has a voltage of 24 V from the DC power input unit 210 and a current value set according to the voltage of 24 V: a current of 1.2 A is a block of the heating element 24. , Resolution: 203 dpi (8 d / mm), print width: 54 mm, total number of dots in the main scanning direction: 432 d, resistance value of the heating element 24: 600Ω, supplied (applied) to the heating element 24 Printing is performed under printing conditions of applied voltage: 24 V, applied power supplied (applied) to the heating element 24: 0.96 W / d, and 1d current value: 0.0400 mA.

上述のように、直流電力入力部210は、発熱素子24のブロックに対して29Wの電力を供給する。そして、ストローブコントローラ50は、発熱素子24のブロックに対して直流電力入力部210から29Wの電力が供給された場合、ドライバIC51〜55に出力するストローブ信号のストローブ長を制御して、最大印字速度:300mm/sec、印字周期:0.417msで印字を行わせることができる。また、ストローブコントローラ50は、発熱素子24のブロックに対して直流電力入力部210から29Wの電力が供給された場合、0.2mjのエネルギー量を発熱素子24のブロックに供給するために、発熱素子24のブロックに電圧を供給する通電時間を約0.625msとする。   As described above, the DC power input unit 210 supplies 29 W of power to the block of the heating elements 24. The strobe controller 50 controls the strobe length of the strobe signal output to the driver ICs 51 to 55 when the power of 29 W is supplied from the DC power input unit 210 to the block of the heat generating element 24, so that the maximum printing speed is achieved. : 300 mm / sec, printing cycle: 0.417 ms. In addition, the strobe controller 50 is configured to supply an energy amount of 0.2 mj to the block of the heating element 24 when 29 W of power is supplied from the DC power input unit 210 to the block of the heating element 24. The energization time for supplying voltage to the 24 blocks is set to about 0.625 ms.

一方、本実施形態のラベルプリンタ1は、図10に示すように、充電池270から19Vの電圧および当該19Vの電圧に応じて設定された電流値:1.5Aの電流が発熱素子24のブロックに供給された場合、解像度:203dpi(8d/mm)、印字幅:54mm、主走査方向への総ドット数:432d、発熱素子24の抵抗値:600Ω、発熱素子24に供給される印加電圧19V、発熱素子24に供給される印加電力:0.60167W/d、1d電流値:0.0317mAという印字条件の下で印字を行う。   On the other hand, as shown in FIG. 10, the label printer 1 of the present embodiment has a voltage of 19 V from the rechargeable battery 270 and a current value set according to the 19 V voltage: a current of 1.5 A blocks the heating element 24. Resolution: 203 dpi (8 d / mm), print width: 54 mm, total number of dots in the main scanning direction: 432 d, resistance value of the heating element 24: 600Ω, applied voltage 19 V supplied to the heating element 24 Printing is performed under printing conditions of applied power supplied to the heating element 24: 0.60167 W / d, 1d current value: 0.0317 mA.

上述のように、充電池270は、発熱素子24のブロックに対して29Wの電力を供給する。そして、ストローブコントローラ50は、発熱素子24のブロックに対して充電池270から29Wの電力が供給された場合、ドライバIC51〜55に出力するストローブ信号のストローブ長を制御して、最大印字速度:300mm/sec、印字周期:0.417msで印字を行わせることができる。また、ストローブコントローラ50は、発熱素子24のブロックに対して充電池270から29Wの電力が供給された場合、0.2mjのエネルギー量を発熱素子24のブロックに供給するために、発熱素子24のブロックに電圧を供給する通電時間を約0.625msとする。   As described above, the rechargeable battery 270 supplies 29 W of power to the block of the heating element 24. The strobe controller 50 controls the strobe length of the strobe signal output to the driver ICs 51 to 55 when the power of 29 W is supplied from the rechargeable battery 270 to the block of the heating element 24, and the maximum printing speed: 300 mm. / Sec, printing cycle: printing can be performed at 0.417 ms. Further, when 29 W of electric power is supplied from the rechargeable battery 270 to the block of the heating element 24, the strobe controller 50 supplies the energy amount of 0.2 mj to the block of the heating element 24. The energization time for supplying voltage to the block is about 0.625 ms.

次に、図11および図12を用いて、印字率に応じた発熱素子24のブロックの分割数を定めた分割テーブルについて説明する。図11は、発熱素子のブロックに24Vの電圧が供給された場合に発熱素子のブロックの駆動制御に用いる分割テーブルt1を示す図である。図12は、発熱素子のブロックに19Vの電圧が供給された場合に発熱素子のブロックの駆動制御に用いる分割テーブルt2を示す図である。   Next, with reference to FIG. 11 and FIG. 12, a division table that defines the number of divisions of blocks of the heating elements 24 according to the printing rate will be described. FIG. 11 is a diagram showing a division table t1 used for drive control of the heating element block when a voltage of 24 V is supplied to the heating element block. FIG. 12 is a diagram showing a division table t2 used for drive control of the heating element block when a voltage of 19 V is supplied to the heating element block.

図11および図12に示す分割テーブルt1,t2は、印字率と、ONドット数と、印字率毎に予め設定された電流値でありかつ発熱素子24のブロックへの供給が許容される最大定格電流の電流値(以下、最大定格電流値とする)と、印字率に応じた発熱素子24のブロックの分割数と、ラインサーマルヘッド12に供給する瞬時電流の電流値(以下、瞬時電流値とする)と、印字速度と、印字周期と、発熱素子24のブロックに供給する電流の平均(以下、平均電流値(平均印字率×印字速度=平均電流値)とする)と、を対応付けて記憶している。ここで、図11および図12に示した分割テーブルt1,t2に記憶される印字速度は、後述する印字速度テーブルt3,t4(図17、図18参照)により平均電流値に対する余力に応じて決定される速度の内、平均電流値に対する余力が多い場合における最も高速な速度を基準速度として記憶している。また、分割テーブルに記憶された印字周期は、分割テーブルに記憶された印字速度で印字を行った場合の印字周期である。   The division tables t1 and t2 shown in FIG. 11 and FIG. 12 are printing rates, ON dot numbers, and current values preset for each printing rate, and the maximum ratings that allow the heating element 24 to be supplied to the block. The current value of the current (hereinafter referred to as the maximum rated current value), the number of blocks of the heating element 24 corresponding to the printing rate, and the current value of the instantaneous current supplied to the line thermal head 12 (hereinafter referred to as the instantaneous current value) And the printing speed, the printing cycle, and the average of the current supplied to the block of the heating element 24 (hereinafter referred to as average current value (average printing rate × printing speed = average current value)) I remember it. Here, the printing speeds stored in the divided tables t1 and t2 shown in FIGS. 11 and 12 are determined according to the remaining power with respect to the average current value by the printing speed tables t3 and t4 (see FIGS. 17 and 18) described later. Among the speeds to be used, the fastest speed when there is a lot of reserve for the average current value is stored as the reference speed. The printing cycle stored in the division table is a printing cycle when printing is performed at the printing speed stored in the division table.

図11に示す分割テーブルt1では、印字率が55%を超えると、発熱素子24のブロックの分割数が1から2に増えている。より具体的には、図11に示す分割テーブルt1では、印字率が0〜50%の範囲では発熱素子24のブロックを一括駆動させ、印字率が51〜100%の範囲では発熱素子24のブロックを2分割駆動させることを示している。   In the division table t1 shown in FIG. 11, when the printing rate exceeds 55%, the number of divisions of the blocks of the heating elements 24 increases from 1 to 2. More specifically, in the divided table t1 shown in FIG. 11, when the printing rate is in the range of 0 to 50%, the blocks of the heating elements 24 are collectively driven, and in the range of the printing rate of 51 to 100%, the blocks of the heating elements 24 are driven. Is driven in two parts.

これに対して、図12に示す分割テーブルt2では、印字率が75%を超えると、発熱素子24のブロックの分割数が1から2に増えている。より具体的には、図12に示す分割テーブルt2では、印字率が0〜70%の範囲では発熱素子24のブロックを一括駆動させ、印字率が71〜100%の範囲では発熱素子24のブロックを2分割駆動させる。つまり、図12に示す分割テーブルt2は、図11に示す分割テーブルt1と比較して、印字率に応じた発熱素子24のブロックの分割数が小さいといえる。   On the other hand, in the division table t2 shown in FIG. 12, when the printing rate exceeds 75%, the number of divisions of the blocks of the heating elements 24 increases from 1 to 2. More specifically, in the divided table t2 shown in FIG. 12, the blocks of the heating elements 24 are collectively driven when the printing rate is in the range of 0 to 70%, and the blocks of the heating elements 24 are set when the printing rate is in the range of 71 to 100%. Is driven in two parts. That is, it can be said that the division table t2 shown in FIG. 12 has a smaller number of divisions of the blocks of the heating elements 24 in accordance with the printing rate than the division table t1 shown in FIG.

次に、分割テーブルt1,t2に従った発熱素子24のブロックの駆動処理について詳述する。図13は、各ドライバICを一括駆動させる場合の動作を示すタイミングチャートである。図14は、各ドライバICを2分割駆動させる場合の動作を示すタイミングチャートである。   Next, the drive processing of the block of the heat generating element 24 according to the division tables t1 and t2 will be described in detail. FIG. 13 is a timing chart showing an operation when the driver ICs are collectively driven. FIG. 14 is a timing chart showing the operation when each driver IC is driven in two parts.

ストローブコントローラ50は、図11に示す分割テーブルt1(または図12に示す分割テーブルt2)から、総加算回路49における計数結果(または印字率)と対応付けられた分割数を読み込む。そして、ストローブコントローラ50は、読み込んだ分割数に従って各ドライバIC51〜55を一括駆動または分割駆動させるようなストローブ信号STB(STB1,STB2,STB3,STB4,STB5)を各ドライバIC51〜55に出力する。   The strobe controller 50 reads the number of divisions associated with the counting result (or printing rate) in the total addition circuit 49 from the division table t1 shown in FIG. 11 (or the division table t2 shown in FIG. 12). Then, the strobe controller 50 outputs strobe signals STB (STB 1, STB 2, STB 3, STB 4, STB 5) that collectively or separately drive the driver ICs 51 to 55 to the driver ICs 51 to 55 according to the read division number.

例えば、ストローブコントローラ50は、図11に示す分割テーブルt1(または図12に示す分割テーブルt2)から、分割数:1を読み込んだ場合、各ドライバIC51〜55を分割駆動せずに同時に駆動(一括駆動)させるようなストローブ信号STB(STB1,STB2,STB3,STB4,STB5)を各ドライバIC51〜55に出力することで、印字スピードの高速化を図る。具体的には、ストローブコントローラ50は、図13に示すように、各ドライバIC51〜55に対してストローブ信号STB(STB1,STB2,STB3,STB4,STB5)を同時に出力する。   For example, when the number of divisions 1 is read from the division table t1 shown in FIG. 11 (or the division table t2 shown in FIG. 12), the strobe controller 50 drives the driver ICs 51 to 55 at the same time without performing division driving (collective operation). The strobe signal STB (STB1, STB2, STB3, STB4, STB5) to be driven) is output to each of the driver ICs 51 to 55, thereby increasing the printing speed. Specifically, as shown in FIG. 13, the strobe controller 50 outputs strobe signals STB (STB1, STB2, STB3, STB4, STB5) simultaneously to the driver ICs 51 to 55.

また、ストローブコントローラ50は、図11に示す分割テーブルt1(または図12に示す分割テーブルt2)から、分割数:2を読み込んだ場合、各ドライバIC51〜55を2分割駆動させるようなストローブ信号STB(STB1,STB2,STB3,STB4,STB5)を各ドライバIC51〜55に出力することで、各ドライバIC51〜55で同時に電源を使用することを回避させる。   Also, the strobe controller 50 reads the strobe signal STB that drives each of the driver ICs 51 to 55 in two divisions when the division number: 2 is read from the division table t1 shown in FIG. 11 (or the division table t2 shown in FIG. 12). By outputting (STB1, STB2, STB3, STB4, STB5) to each of the driver ICs 51 to 55, the driver ICs 51 to 55 are prevented from simultaneously using the power supply.

具体的には、ストローブコントローラ50は、図14に示すように、ドライバIC51,52,53に対してストローブ信号STB(STB1,STB2,STB3)を出力し、ドライバIC54,55に対するストローブ信号STB(STB4,STB5)をドライバIC51,52,53に対するストローブ信号STB(STB1,STB2,STB3)よりも遅延させて出力する。   Specifically, as shown in FIG. 14, the strobe controller 50 outputs strobe signals STB (STB1, STB2, STB3) to the driver ICs 51, 52, 53, and strobe signals STB (STB4) for the driver ICs 54, 55. , STB5) is delayed from the strobe signal STB (STB1, STB2, STB3) for the driver ICs 51, 52, 53 and output.

なお、ストローブコントローラ50は、詳細な説明は省略するが、図11に示す分割テーブルt1(または図12に示す分割テーブルt2)から、分割数:3〜5を読み込んだ場合も、各ドライバIC51〜55を3〜5分割駆動させるようなストローブ信号STB(STB1,STB2,STB3,STB4,STB5)を各ドライバIC51〜55に出力することで、各ドライバIC51〜55で同時に電源を使用することを回避させる。   Although the detailed description is omitted, the strobe controller 50 also reads each of the driver ICs 51 to 51 when the division number: 3 to 5 is read from the division table t1 shown in FIG. 11 (or the division table t2 shown in FIG. 12). By outputting strobe signals STB (STB1, STB2, STB3, STB4, STB5) to drive each of the driver ICs 51 to 55 so that the driver 55 is divided into three to five parts, it is possible to avoid simultaneously using the power supply in each of the driver ICs 51 to 55 Let

次に、発熱素子24のブロックに供給される電圧の検出結果に応じて分割テーブルを変更する処理、および分割テーブルに従った瞬時電流値の補正処理について説明する。   Next, a process for changing the division table in accordance with the detection result of the voltage supplied to the block of the heating element 24 and a process for correcting the instantaneous current value according to the division table will be described.

ストローブコントローラ50は、発熱素子24のブロックに供給されるヘッド検出電圧が20〜25.2Vである場合、直流電力入力部210からの電力供給とみなし、発熱素子24のブロックの駆動に用いる分割テーブルを、図11に示す分割テーブルt1に変更する。   When the head detection voltage supplied to the block of the heating element 24 is 20 to 25.2 V, the strobe controller 50 regards the power supply from the DC power input unit 210 and uses the division table used for driving the block of the heating element 24. Is changed to the division table t1 shown in FIG.

ここで、ストローブコントローラ50は、最大定格電流値を超えないように、発熱素子24のブロックに供給される瞬時電流値を補正(大きく)して、発熱素子24のブロックによる印字速度を速くするような制御を行うことが考えられる。例えば、ラインサーマルヘッド12に印加する電源が直流電力入力部210からの24V×1.2Aの場合には、図11に示すように、印字率25%程度以内では300mm/secの印字が可能である。   Here, the strobe controller 50 corrects (increases) the instantaneous current value supplied to the block of the heating element 24 so as not to exceed the maximum rated current value, thereby increasing the printing speed by the block of the heating element 24. It is conceivable to perform proper control. For example, when the power applied to the line thermal head 12 is 24 V × 1.2 A from the DC power input unit 210, printing of 300 mm / sec is possible within a printing rate of about 25% as shown in FIG. is there.

しかしながら、図15に示すように、毎ラインの平均消費電流を1.2A以下に抑える為に、最大定格電流値を超えないように、発熱素子24のブロックに供給される瞬時電流値を補正(大きく)して、発熱素子24のブロックによる印字速度を速くするような制御すると、印字率が50%程度では印字速度が下がり、170mm/secに落とさなければならない。また、印字率100%では、印字速度が85mm/secまで低下する。   However, as shown in FIG. 15, in order to keep the average current consumption of each line to 1.2 A or less, the instantaneous current value supplied to the block of the heating element 24 is corrected so as not to exceed the maximum rated current value ( If the control is performed to increase the printing speed by the block of the heat generating element 24, the printing speed decreases at a printing rate of about 50% and must be reduced to 170 mm / sec. Further, when the printing rate is 100%, the printing speed is reduced to 85 mm / sec.

そこで、本実施形態においては、ストローブコントローラ50は、印字するライン以前の印字率(主走査方向の印字率および副走査方向の印字率)を加味して過去の平均印字率を算出し、その平均印字率に応じて印字速度を速く設定するとともに、平均電流値に対する余力に余裕が無ければ印字速度を遅くして、最終的に印字が終了する時に、予め決められた平均率と印字速度の関係になるように、印字速度と分割数とを可変制御する。   Therefore, in the present embodiment, the strobe controller 50 calculates the past average print ratio in consideration of the print ratio (print ratio in the main scanning direction and print ratio in the sub-scanning direction) before the line to be printed, and the average The print speed is set faster according to the print rate, and if there is no margin for the average current value, the print speed is slowed down, and finally when printing ends, the relationship between the predetermined average rate and print speed The printing speed and the number of divisions are variably controlled so that

具体的には、ストローブコントローラ50は、過去数十ライン以上のマクロ印字情報をフラッシュメモリ14に記憶しておき、[印字速度][ONドット数][分割数]の情報から過去数十ライン分の平均印字率を算出する。次いで、ストローブコントローラ50は、平均電流値に対する余力が多ければ、図11に示す分割テーブルt1における算出された平均印字率に応じた基準速度(最も高速な速度)で印字し、平均電流値に対する余力に余裕が無ければ、図11に示す分割テーブルt1における算出された平均印字率に応じた基準速度(最も高速な速度)よりも遅い印字速度で印字する。   Specifically, the strobe controller 50 stores macro print information of past tens of lines or more in the flash memory 14, and stores past tens of lines from information of [print speed], [ON dot number], and [number of divisions]. The average printing rate is calculated. Next, if the remaining power for the average current value is large, the strobe controller 50 performs printing at a reference speed (highest speed) corresponding to the average printing rate calculated in the divided table t1 shown in FIG. If there is no allowance, printing is performed at a printing speed slower than a reference speed (highest speed) corresponding to the average printing rate calculated in the divided table t1 shown in FIG.

図11に示す分割テーブルt1に示すように、平均電流値に対する余力が多ければ、印字率50%の場合では印字速度を213mm/secまで上げることができ、さらに100%の印字率では印字速度を155mm/secまで大幅に上げることが可能になる。   As shown in the division table t1 shown in FIG. 11, if the remaining power for the average current value is large, the printing speed can be increased to 213 mm / sec when the printing rate is 50%, and the printing speed is further increased when the printing rate is 100%. It can be significantly increased up to 155 mm / sec.

一方、ストローブコントローラ50は、発熱素子24のブロックに供給されるヘッド検出電圧が15〜19.9Vである場合、充電池270からの電力供給とみなし、発熱素子24のブロックの駆動に用いる分割テーブルを、図12に示す分割テーブルt2に変更する。   On the other hand, when the head detection voltage supplied to the block of the heating element 24 is 15 to 19.9 V, the strobe controller 50 considers that the power is supplied from the rechargeable battery 270 and is used for driving the block of the heating element 24. Is changed to the division table t2 shown in FIG.

この場合も、ストローブコントローラ50は、最大定格電流値を超えないように、発熱素子24のブロックに供給される瞬時電流値を補正(大きく)して、発熱素子24のブロックによる印字速度を速くするような制御を行うことが考えられる。例えば、ラインサーマルヘッド12に印加する電源が充電池270からの19V×1.5Aの場合には、図12に示すように、印字率25%程度以内では300mm/secの印字が可能である。   Also in this case, the strobe controller 50 corrects (increases) the instantaneous current value supplied to the block of the heating element 24 so as not to exceed the maximum rated current value, thereby increasing the printing speed by the block of the heating element 24. It is conceivable to perform such control. For example, when the power applied to the line thermal head 12 is 19 V × 1.5 A from the rechargeable battery 270, printing of 300 mm / sec is possible within a printing rate of about 25% as shown in FIG.

しかしながら、図16に示すように、毎ラインの平均消費電流を1.5A以下に抑える為に、最大定格電流値を超えないように、発熱素子24のブロックに供給される瞬時電流値を補正(大きく)して、発熱素子24のブロックによる印字速度を速くするような制御すると、印字率が50%程度では印字速度が下がり、167mm/secに落とさなければならない。また、印字率100%では、印字速度が83mm/secまで低下する。   However, as shown in FIG. 16, in order to keep the average current consumption of each line to 1.5 A or less, the instantaneous current value supplied to the block of the heating element 24 is corrected so as not to exceed the maximum rated current value ( If the control is performed to increase the printing speed by the block of the heat generating element 24, the printing speed decreases at a printing rate of about 50% and must be reduced to 167 mm / sec. At a printing rate of 100%, the printing speed is reduced to 83 mm / sec.

そこで、本実施形態においては、ストローブコントローラ50は、過去数十ライン以上のマクロ印字情報をフラッシュメモリ14に記憶しておき、[印字速度][ONドット数][分割数]の情報から過去数十ライン分の平均印字率を算出する。次いで、ストローブコントローラ50は、平均電流値に対する余力が多ければ、図12に示す分割テーブルt2における算出された平均印字率に応じた基準速度(最も高速な速度)で印字し、平均電流値に対する余力に余裕が無ければ、図12に示す分割テーブルt2における算出された平均印字率に応じた基準速度(最も高速な速度)よりも遅い印字速度で印字する。   Therefore, in the present embodiment, the strobe controller 50 stores macro print information of the past several tens of lines or more in the flash memory 14 and determines the past number from the information of [print speed] [number of ON dots] [number of divisions]. The average printing rate for 10 lines is calculated. Next, if the remaining power with respect to the average current value is large, the strobe controller 50 performs printing at a reference speed (highest speed) according to the average printing rate calculated in the divided table t2 shown in FIG. If there is no allowance, printing is performed at a printing speed slower than a reference speed (highest speed) corresponding to the calculated average printing rate in the divided table t2 shown in FIG.

図12に示す分割テーブルt2に示すように、印字率50%の場合では印字速度を204mm/secまで上げることができ、さらに100%印字率では印字速度を135mm/secまで大幅に上げることが可能になる。   As shown in the division table t2 shown in FIG. 12, when the printing rate is 50%, the printing speed can be increased to 204 mm / sec, and when the printing rate is 100%, the printing speed can be significantly increased to 135 mm / sec. become.

なお、図11および図12に示すように、印字率による一括印字するか、2分割印字にするかの印字率閾値は、24Vの場合と19Vの場合では変えられている。このようにしたのは、19Vの場合においては、印加電力が小さくなるので、通電時間が長くなり印字率による一括印字から2分割印字への切り替え閾値が24Vの場合と同じだと、2分割での通電時間が長くなり印字速度を速く出来なくなるからである。従って、19Vの場合においては、24Vの場合とは印字率閾値を変えて、印字率が例えば75%程度の時に一括印字か2分割印字かの閾値にしておけば、印字速度が遅くなることは無い。   As shown in FIGS. 11 and 12, the print rate threshold value for whether to perform batch printing based on the print rate or to perform 2-split printing is different between the case of 24V and the case of 19V. This is because, in the case of 19V, the applied power is small, so that the energization time becomes long, and the switching threshold from batch printing to two-division printing according to the printing rate is the same as in the case of 24V. This is because the energizing time becomes longer and the printing speed cannot be increased. Therefore, in the case of 19V, if the printing rate threshold value is changed from that in the case of 24V and the threshold value is set to batch printing or two-division printing when the printing rate is about 75%, the printing speed will be slow. No.

ここで、図17および図18は、印字率と印字速度との関係を示すテーブル、図19および図20は、印字率と印字速度の関係の一例を示すグラフである。   Here, FIGS. 17 and 18 are tables showing the relationship between the printing rate and the printing speed, and FIGS. 19 and 20 are graphs showing an example of the relationship between the printing rate and the printing speed.

図19に示すグラフは、24V電圧で30%印字率の平均消費電流が1.2Aの場合における印字率と印字速度の関係の一例を示したものである。図19に示すグラフに示されるように、印字率30%程度までは全て同じ印字速度であるが、それ以上の印字率では印字するライン以前の主走査方向の印字率情報と副走査方向の印字率情報とを基に算出された平均印字率に基づくとともに、平均電流値に対する余力が多ければ図17に示す印字速度テーブルt3のうちの高速テーブルを選択して印字速度(分割テーブルt1における基準速度)を上げ、平均電流値に対する余力にやや余裕があれば図17に示す印字速度テーブルt3のうちの中速テーブルを選択して基準速度からやや遅くした中速の印字速度で印字し、平均電流値に対する余力に余裕が無ければ図17に示す印字速度テーブルt3のうちの低速テーブルを選択して中速の印字速度から更に遅くした低速で印字する。こうすることにより、印字速度を損なうことなく消費電流が少ない印字制御が可能となる。なお、過去の印字率情報は、例えば過去15ラインを参照して平均印字率を算出するようにすればよい。   The graph shown in FIG. 19 shows an example of the relationship between the printing rate and the printing speed when the average consumption current of the 30% printing rate is 1.2 A at 24 V voltage. As shown in the graph of FIG. 19, all the printing speeds up to about 30% are the same printing speed, but at higher printing ratios, the printing rate information in the main scanning direction and the printing in the sub-scanning direction before the line to be printed. Based on the average printing rate calculated based on the rate information, and if there is a lot of reserve for the average current value, a high speed table is selected from the printing speed tables t3 shown in FIG. 17 to select the printing speed (reference speed in the divided table t1). ), And if there is a margin in the remaining capacity with respect to the average current value, the medium speed table is selected from the print speed table t3 shown in FIG. 17 and printing is performed at the medium speed printing speed slightly slower than the reference speed. If there is no margin for the value, the low speed table is selected from the print speed table t3 shown in FIG. 17, and printing is performed at a lower speed than the medium speed. By doing so, it is possible to perform printing control with low current consumption without impairing the printing speed. For the past printing rate information, for example, the average printing rate may be calculated by referring to the past 15 lines.

図20に示すグラフは、19V電圧で30%印字率の平均消費電流が1.5Aの場合における印字率と印字速度の関係の一例を示したものである。図20に示すグラフに示されるように、印字率30%程度までは全て同じ印字速度であるが、それ以上の印字率では印字するライン以前の主走査方向の印字率情報と副走査方向の印字率情報とを基に算出された平均印字率に基づくとともに、平均電流値に対する余力が多ければ図18に示す印字速度テーブルt4のうちの高速テーブルを選択して印字速度(分割テーブルt2における基準速度)を上げ、平均電流値に対する余力にやや余裕があれば図18に示す印字速度テーブルt4のうちの中速テーブルを選択して基準速度からやや遅くした中速の印字速度で印字し、平均電流値に対する余力に余裕が無ければ図18に示す印字速度テーブルt4のうちの低速テーブルを選択して中速の印字速度から更に遅くした低速で印字する。こうすることにより、印字速度を損なうことなく消費電流が少ない印字制御が可能となる。なお、過去の印字率情報は、例えば過去18ラインを参照して平均印字率を算出するようにすればよい。   The graph shown in FIG. 20 shows an example of the relationship between the printing rate and the printing speed when the average current consumption at 30% printing rate is 1.5 A at 19V voltage. As shown in the graph of FIG. 20, the printing speed is about the same up to a printing rate of about 30%, but the printing rate information in the main scanning direction before the line to be printed and the printing in the sub-scanning direction are higher than that. Based on the average printing rate calculated based on the rate information, and if there is a lot of reserve for the average current value, a high speed table is selected from the printing speed table t4 shown in FIG. 18 to select the printing speed (reference speed in the divided table t2). 18), if there is a margin in the remaining capacity with respect to the average current value, the medium speed table is selected from the print speed table t4 shown in FIG. 18, and printing is performed at a medium speed printing speed slightly slower than the reference speed. If there is no margin for the value, the low speed table is selected from the print speed table t4 shown in FIG. 18, and printing is performed at a lower speed than the medium speed. By doing so, it is possible to perform printing control with low current consumption without impairing the printing speed. For the past printing rate information, for example, the average printing rate may be calculated by referring to the past 18 lines.

次に、図21を用いて、本実施形態にかかるラベルプリンタ1における印字処理の流れについて説明する。図21は、ラベルプリンタ1における印字処理の流れを示すフローチャートである。   Next, the flow of printing processing in the label printer 1 according to the present embodiment will be described with reference to FIG. FIG. 21 is a flowchart showing the flow of printing processing in the label printer 1.

ラベルプリンタ1の電源がオンされてコンデンサ37が満充電されると、CPU17は、コンデンサ37が満充電された場合のカウンタ値を仮に100(%)とする(ステップS1)。より具体的には、使用する電源容量と電源電圧、コンデンサ37の容量などからチャージアップする容量を設計し、満充電時には仮にカウンタ値を100(%)とする。   When the power of the label printer 1 is turned on and the capacitor 37 is fully charged, the CPU 17 temporarily sets the counter value when the capacitor 37 is fully charged to 100 (%) (step S1). More specifically, the capacity to be charged up is designed from the power supply capacity and power supply voltage to be used, the capacity of the capacitor 37, etc., and the counter value is assumed to be 100 (%) when fully charged.

次いで、CPU17は、ヘッドコントローラ40のストローブコントローラ50が検出したラインサーマルヘッド12の発熱素子24のブロックに供給される電圧を取得し(ステップS2)、取得した電圧に応じて、図11に示す分割テーブルt1または図12に示す分割テーブルt2を選択する(ステップS3)。   Next, the CPU 17 acquires the voltage supplied to the block of the heating element 24 of the line thermal head 12 detected by the strobe controller 50 of the head controller 40 (step S2), and the division shown in FIG. 11 according to the acquired voltage. The table t1 or the division table t2 shown in FIG. 12 is selected (step S3).

次いで、CPU17は、ラインサーマルヘッド12の各発熱素子24の抵抗値に基づくヘッド抵抗値ランク補正を行った後(ステップS4)、チャージカウンタ値の残カウンタ値を確認する(ステップS5)。   Next, the CPU 17 performs head resistance value rank correction based on the resistance value of each heating element 24 of the line thermal head 12 (step S4), and then checks the remaining counter value of the charge counter value (step S5).

ここで、チャージカウンタ値の残カウンタ値について説明する。本実施形態においては、予め印字率に対応するカウンタ値(加減算値)を決めておくものとする。図22は、カウンタ値テーブルT1である。図22に示すように、カウンタ値テーブルT1は、印字率に対応するカウンタ値(加減算値)を予め決めておくテーブルである。直前に印字したラインの印字率が0%では+40を加算し、直前に印字したラインの印字率が1〜24%では+20を加算し、直前に印字したラインの印字率が25〜49%では−5を減算し、直前に印字したラインの印字率が50〜74%では−20を減算し、直前に印字したラインの印字率が50〜74%では−20を減算し、直前に印字したラインの印字率が75〜100%では−40を減算する。例えば、満充電時において(カウンタ値を100)、直前に印字したラインの印字率が30%の場合には、−5のカウントであり、チャージカウンタ値の残カウンタ値は95となる。   Here, the remaining counter value of the charge counter value will be described. In the present embodiment, it is assumed that a counter value (addition / subtraction value) corresponding to the printing rate is determined in advance. FIG. 22 is a counter value table T1. As shown in FIG. 22, the counter value table T1 is a table in which a counter value (addition / subtraction value) corresponding to the printing rate is determined in advance. Add +40 when the printing rate of the line printed immediately before is 0%, add +20 when the printing rate of the line printed immediately before is 1 to 24%, and if the printing rate of the line printed immediately before is 25 to 49% -5 is subtracted, -20 is subtracted when the printing rate of the line printed immediately before is 50 to 74%, -20 is subtracted when the printing rate of the line printed immediately before is 50 to 74%, and printing is performed immediately before When the line printing rate is 75 to 100%, -40 is subtracted. For example, when fully charged (counter value is 100) and the print rate of the line printed immediately before is 30%, the count is -5, and the remaining counter value of the charge counter value is 95.

次いで、ステップS5におけるチャージカウンタ値の残カウンタ値の確認後、CPU17は、ステップS3で選択した分割テーブルにおいて、残カウンタ値に従った印字速度テーブルを決定する(ステップS6)。   Next, after confirming the remaining counter value of the charge counter value in step S5, the CPU 17 determines a printing speed table according to the remaining counter value in the division table selected in step S3 (step S6).

ここで、印字速度テーブルについて説明する。図23は、印字速度選択テーブルT2である。図23に示すように、印字速度選択テーブルT2は、チャージカウンタ値の残カウンタ値に対応する分割テーブルにおける印字速度テーブルを予め決めておくテーブルである。チャージカウンタ値の残カウンタ値が100〜75では高速印字テーブルを選択し、チャージカウンタ値の残カウンタ値が74〜40では中速印字テーブルを選択し、チャージカウンタ値の残カウンタ値が39〜0では低速印字テーブルを選択する。例えば、チャージカウンタ値の残カウンタ値が75の場合に、直前に印字したラインの印字率が80%の場合には、−40のカウントであり、チャージカウンタ値の残カウンタ値は35となり、低速印字テーブルが選択される。なお、これらの定数は設計値により異なるものである。   Here, the printing speed table will be described. FIG. 23 is a printing speed selection table T2. As shown in FIG. 23, the printing speed selection table T2 is a table in which the printing speed table in the division table corresponding to the remaining counter value of the charge counter value is determined in advance. When the remaining counter value of the charge counter value is 100 to 75, the high speed printing table is selected. When the remaining counter value of the charge counter value is 74 to 40, the medium speed printing table is selected, and the remaining counter value of the charge counter value is 39 to 0. Then select the low-speed printing table. For example, when the remaining counter value of the charge counter value is 75 and the printing rate of the line printed immediately before is 80%, the count is −40, the remaining counter value of the charge counter value is 35, and the low speed is low. A print table is selected. Note that these constants differ depending on the design values.

なお、本実施形態においては、チャージカウンタ値の残カウンタ値に応じて印字速度を3種類に変化せるようにしたが、これに限るものではなく、速度変化が3種類以外でも良い。   In this embodiment, the printing speed is changed to three types according to the remaining counter value of the charge counter value. However, the present invention is not limited to this, and the speed change may be other than three types.

次いで、CPU17は、通信インタフェース29を介して、1ライン毎の印字データの取り込み(リード)を開始する(ステップS7)。なお、CPU17により取り込まれた印字データは、ブロックデータ分割回路41にてブロック毎の印刷データに分割された後、各ドライバIC51〜55のシフトレジスタ34に格納される。   Next, the CPU 17 starts fetching (reading) print data for each line via the communication interface 29 (step S7). The print data captured by the CPU 17 is divided into print data for each block by the block data dividing circuit 41 and then stored in the shift register 34 of each driver IC 51 to 55.

次いで、CPU17は、1ライン分の印字データの取り込み(リード)が終了すると、印字処理を実行する(ステップS8)。   Next, the CPU 17 executes a printing process when the reading (reading) of the printing data for one line is completed (step S8).

より詳細には、CPU17の制御により、ストローブコントローラ50が、ステップS3において選択した分割テーブルから、総加算回路49により算出されたONドット数の計数結果(すなわち印字率)に応じた分割数を読み込むとともに、ステップS6において決定した印字速度テーブルによる印字速度を読み込み、読み込んだ分割数および印字速度に従って各ドライバIC51〜55を一括駆動または分割駆動させるようなストローブ信号を各ドライバIC51〜55に出力する。   More specifically, under the control of the CPU 17, the strobe controller 50 reads from the division table selected in step S3 the division number corresponding to the ON dot number counting result (that is, the printing rate) calculated by the total addition circuit 49. At the same time, the printing speed based on the printing speed table determined in step S6 is read, and a strobe signal is output to each of the driver ICs 51 to 55 so that the driver ICs 51 to 55 are collectively or dividedly driven according to the read division number and printing speed.

さらに、CPU17の制御により、ストローブコントローラ50は、図示しない測定部から入力されるラインサーマルヘッド12の周囲温度を把握し、把握したラインサーマルヘッド12の周囲温度に従って、発熱素子24による印字の際のエネルギー量を補正する。例えば、ファーストドットの印字の際にはラインサーマルヘッド12の周囲温度が低いので、ストローブコントローラ50は、各ドライバIC51〜55に出力するストローブ信号のストローブ長を長くして、発熱素子24に供給する通常のエネルギー量よりもエネルギー量を大きくする。   Further, under the control of the CPU 17, the strobe controller 50 grasps the ambient temperature of the line thermal head 12 input from a measurement unit (not shown), and performs printing by the heating element 24 according to the grasped ambient temperature of the line thermal head 12. Correct the amount of energy. For example, since the ambient temperature of the line thermal head 12 is low during the first dot printing, the strobe controller 50 increases the strobe length of the strobe signal output to each of the driver ICs 51 to 55 and supplies the strobe signal to the heating element 24. Make the amount of energy larger than the normal amount of energy.

各ドライバIC51〜55は、ストローブコントローラ50から入力されるストローブ信号に従って発熱素子24のブロックを一括駆動または分割駆動させて1ラインを印字する。   Each of the driver ICs 51 to 55 prints one line by collectively driving or dividingly driving the blocks of the heat generating elements 24 according to the strobe signal input from the strobe controller 50.

ラベルプリンタ1のCPU17は、副走査方向の全てのラインの印字が終了していない場合には(ステップS9のNo)、直前に印字したラインの印字率に基づいてチャージカウンタ値の残カウンタ値を加減算して(ステップS10)、ステップS5に戻る。   If the printing of all lines in the sub-scanning direction has not been completed (No in step S9), the CPU 17 of the label printer 1 calculates the remaining counter value of the charge counter value based on the printing rate of the line printed immediately before. Addition / subtraction is performed (step S10), and the process returns to step S5.

一方、副走査方向の全てのラインの印字が終了した場合には(ステップS9のYes)、CPU17は、新たな印刷データの取り込みに備える。   On the other hand, when printing of all the lines in the sub-scanning direction is completed (Yes in step S9), the CPU 17 prepares for taking in new print data.

このように、本実施形態のラベルプリンタ1によれば、印字対象のライン以前の印字率(主走査方向の印字率および副走査方向の印字率)を加味して過去の平均印字率を算出し、その平均印字率に応じて印字速度を速く設定するとともに、平均電流値に対する余力に余裕が無ければ印字速度を遅くして、最終的に印字が終了する時に、平均電流値を満たすような予め決められた平均印字率と印字速度の関係になるように、印字速度と分割数とを可変制御することにより、印字速度を損なうことなく、消費電流が少ない印字制御を可能にすることができる。   As described above, according to the label printer 1 of the present embodiment, the past average print rate is calculated in consideration of the print rate (print rate in the main scanning direction and print rate in the sub-scanning direction) before the line to be printed. The printing speed is set fast according to the average printing rate, and if there is no margin for the average current value, the printing speed is slowed down so that the average current value is satisfied at the end of printing. By variably controlling the printing speed and the number of divisions so that the relationship between the determined average printing rate and printing speed is obtained, it is possible to perform printing control with low current consumption without impairing the printing speed.

(第2の実施形態)
本実施形態は、複数ライン毎に印字データの取り込み(リード)を実行する点で、第1の実施形態とは、異なるものとなっている。なお、第1の実施形態のラベルプリンタ1と同様の構成については説明を省略し、第1の実施形態のラベルプリンタ1と異なる構成についてのみ説明する。
(Second Embodiment)
The present embodiment is different from the first embodiment in that print data fetching (reading) is executed for each of a plurality of lines. Note that a description of the same configuration as the label printer 1 of the first embodiment is omitted, and only a configuration different from the label printer 1 of the first embodiment will be described.

ここで、図24は、第2の実施形態のラベルプリンタ1における印字処理の流れを示すフローチャートである。   Here, FIG. 24 is a flowchart showing the flow of printing processing in the label printer 1 of the second embodiment.

ラベルプリンタ1の電源がオンされてコンデンサ37が満充電されると、CPU17は、コンデンサ37が満充電された場合のカウンタ値を仮に100(%)とする(ステップS1)。   When the power of the label printer 1 is turned on and the capacitor 37 is fully charged, the CPU 17 temporarily sets the counter value when the capacitor 37 is fully charged to 100 (%) (step S1).

次いで、CPU17は、ヘッドコントローラ40のストローブコントローラ50が検出したラインサーマルヘッド12の発熱素子24のブロックに供給される電圧を取得し(ステップS2)、取得した電圧に応じて、図11に示す分割テーブルt1または図12に示す分割テーブルt2を選択する(ステップS3)。   Next, the CPU 17 acquires the voltage supplied to the block of the heating element 24 of the line thermal head 12 detected by the strobe controller 50 of the head controller 40 (step S2), and the division shown in FIG. 11 according to the acquired voltage. The table t1 or the division table t2 shown in FIG. 12 is selected (step S3).

次いで、CPU17は、ラインサーマルヘッド12の各発熱素子24の抵抗値に基づくヘッド抵抗値ランク補正を行った後(ステップS4)、チャージカウンタ値の残カウンタ値を確認する(ステップS5)。   Next, the CPU 17 performs head resistance value rank correction based on the resistance value of each heating element 24 of the line thermal head 12 (step S4), and then checks the remaining counter value of the charge counter value (step S5).

次いで、CPU17は、通信インタフェース29を介して、複数ライン分の印字データの取り込み(リード)を開始する(ステップS16)。なお、CPU17により取り込まれた複数ライン分の印字データは、ブロックデータ分割回路41にてブロック毎の印刷データに分割された後、各ドライバIC51〜55のシフトレジスタ34に格納される。   Next, the CPU 17 starts fetching (reading) print data for a plurality of lines via the communication interface 29 (step S16). The print data for a plurality of lines fetched by the CPU 17 is divided into print data for each block by the block data dividing circuit 41 and then stored in the shift register 34 of each driver IC 51 to 55.

次いで、CPU17は、複数ライン分の印字データの取り込み(リード)が終了すると、ステップS3で選択した分割テーブルにおいて、残カウンタ値に従った各ライン毎の印字速度テーブルを決定し(ステップS17)、印字処理を実行する(ステップS18)。   Next, when the loading (reading) of print data for a plurality of lines is completed, the CPU 17 determines a print speed table for each line according to the remaining counter value in the division table selected in step S3 (step S17). Printing processing is executed (step S18).

より詳細には、CPU17の制御により、ストローブコントローラ50が、ステップS3において選択した分割テーブルから、総加算回路49により算出されたONドット数の計数結果(すなわち印字率)に応じた分割数を読み込むとともに、ステップS17において決定した各ライン毎の印字速度テーブルによる印字速度を読み込み、読み込んだ分割数および印字速度に従って各ドライバIC51〜55を一括駆動または分割駆動させるようなストローブ信号を各ドライバIC51〜55に出力する。   More specifically, under the control of the CPU 17, the strobe controller 50 reads from the division table selected in step S3 the division number corresponding to the ON dot number counting result (that is, the printing rate) calculated by the total addition circuit 49. At the same time, the printing speed based on the printing speed table for each line determined in step S17 is read, and strobe signals for driving the driver ICs 51 to 55 collectively or in accordance with the read division number and printing speed are sent to the driver ICs 51 to 55, respectively. Output to.

さらに、CPU17の制御により、ストローブコントローラ50は、図示しない測定部から入力されるラインサーマルヘッド12の周囲温度を把握し、把握したラインサーマルヘッド12の周囲温度に従って、発熱素子24による印字の際のエネルギー量を補正する。例えば、ファーストドットの印字の際にはラインサーマルヘッド12の周囲温度が低いので、ストローブコントローラ50は、各ドライバIC51〜55に出力するストローブ信号のストローブ長を長くして、発熱素子24に供給する通常のエネルギー量よりもエネルギー量を大きくする。   Further, under the control of the CPU 17, the strobe controller 50 grasps the ambient temperature of the line thermal head 12 input from a measurement unit (not shown), and performs printing by the heating element 24 according to the grasped ambient temperature of the line thermal head 12. Correct the amount of energy. For example, since the ambient temperature of the line thermal head 12 is low during the first dot printing, the strobe controller 50 increases the strobe length of the strobe signal output to each of the driver ICs 51 to 55 and supplies the strobe signal to the heating element 24. Make the amount of energy larger than the normal amount of energy.

各ドライバIC51〜55は、ストローブコントローラ50から入力されるストローブ信号に従って発熱素子24のブロックを一括駆動または分割駆動させて1ラインを印字する。   Each of the driver ICs 51 to 55 prints one line by collectively driving or dividingly driving the blocks of the heat generating elements 24 according to the strobe signal input from the strobe controller 50.

ラベルプリンタ1のCPU17は、副走査方向の全てのラインの印字が終了していない場合には(ステップS19のNo)、直前に印字した複数ライン分の印字率に基づいてチャージカウンタ値の残カウンタ値を加減算して(ステップS20)、ステップS5に戻る。   If the printing of all lines in the sub-scanning direction has not been completed (No in step S19), the CPU 17 of the label printer 1 determines the remaining counter of the charge counter value based on the printing rate for a plurality of lines printed immediately before. The value is added or subtracted (step S20), and the process returns to step S5.

一方、副走査方向の全てのラインの印字が終了した場合には(ステップS19のYes)、CPU17は、新たな印刷データの取り込みに備える。   On the other hand, when printing of all the lines in the sub-scanning direction is completed (Yes in step S19), the CPU 17 prepares for taking in new print data.

このように、本実施形態のラベルプリンタ1によれば、印字するライン以前の印字率(主走査方向の印字率および副走査方向の印字率)を加味して過去の平均印字率を算出し、その平均印字率に応じて印字速度を速く設定するとともに、平均電流値に対する余力に余裕が無ければ印字速度を遅くして、最終的に印字が終了する時に、平均電流値を満たすような予め決められた平均印字率と印字速度の関係になるように、印字速度と分割数とを可変制御することにより、印字速度を損なうことなく、消費電流が少ない印字制御を可能にすることができる。   As described above, according to the label printer 1 of the present embodiment, the past average printing rate is calculated in consideration of the printing rate (printing rate in the main scanning direction and printing rate in the sub-scanning direction) before the line to be printed, The printing speed is set fast according to the average printing rate, and if there is no margin for the average current value, the printing speed is slowed down and finally determined so that the average current value is satisfied when printing ends. By variably controlling the printing speed and the number of divisions so that the relationship between the average printing rate and the printing speed is obtained, it is possible to perform printing control with less current consumption without impairing the printing speed.

なお、本実施形態のラベルプリンタ1で実行されるプログラムは、フラッシュメモリ14等に予め組み込まれて提供されるが、これに限定するものではなく、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   Note that the program executed by the label printer 1 of the present embodiment is provided by being incorporated in advance in the flash memory 14 or the like, but is not limited to this, and is a file in an installable format or an executable format. You may comprise so that it may record and provide on computer-readable recording media, such as CD-ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk).

さらに、本実施形態のラベルプリンタ1で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施形態のラベルプリンタ1で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   Furthermore, the program executed by the label printer 1 of the present embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. Further, the program executed by the label printer 1 of the present embodiment may be configured to be provided or distributed via a network such as the Internet.

本実施形態のラベルプリンタ1で実行されるプログラムは、上述したストローブコントローラ50を含むモジュール構成となっており、実際のハードウェアとしてはCPU17がフラッシュメモリ14からプログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、ストローブコントローラ50を主記憶装置上に生成することもできる。   The program executed by the label printer 1 of the present embodiment has a module configuration including the above-described strobe controller 50. As actual hardware, the CPU 17 reads out and executes the program from the flash memory 14, and the above-described units. Can be loaded onto the main memory and the strobe controller 50 can be created on the main memory.

1 ラベルプリンタ
12 ラインサーマルヘッド
24 発熱素子
50 検出部
51〜55 駆動部
135 制御部
DESCRIPTION OF SYMBOLS 1 Label printer 12 Line thermal head 24 Heating element 50 Detection part 51-55 Drive part 135 Control part

特開2009−297998号公報JP 2009-297998 A

Claims (6)

電圧の供給を受けて発熱する複数の発熱素子が配置され、前記発熱素子の発熱により記録媒体に印字するサーマルヘッドと、
前記発熱素子に供給される電圧を検出する検出部と、
前記発熱素子に供給する電流の平均である平均電流値に対する余力と印字対象のライン以前の平均印字率とに応じて印字速度を可変制御する制御部と、
を備えるサーマルプリンタ。
A plurality of heating elements that generate heat upon receiving a voltage supply, and a thermal head that prints on a recording medium by the heat generated by the heating elements;
A detection unit for detecting a voltage supplied to the heating element;
A control unit that variably controls the printing speed according to the remaining power with respect to the average current value that is the average of the current supplied to the heating element and the average printing rate before the line to be printed;
Thermal printer equipped with.
前記サーマルヘッドの前記各発熱素子を分割した単位である複数のブロックを各々駆動する複数の駆動部を更に備え、
前記制御部は、前記駆動部を前記平均印字率に応じて制御し、前記複数のブロックを一括駆動または分割駆動させる、
請求項1記載のサーマルプリンタ。
A plurality of driving units for driving each of a plurality of blocks which are units obtained by dividing each of the heating elements of the thermal head;
The control unit controls the driving unit according to the average printing rate, and the plurality of blocks are collectively driven or dividedly driven.
The thermal printer according to claim 1.
前記サーマルヘッドは、RLC回路を介して電圧の供給を受け、
前記制御部は、前記RLC回路を構成するコンデンサが満充電された場合の値から直前に印字したラインの印字率に応じた値を加算または減算したカウンタ値に従って前記平均電流値に対する余力を決定して、決定した前記平均電流値に対する余力と前記平均印字率とに応じて印字速度を可変制御する、
請求項1記載のサーマルプリンタ。
The thermal head is supplied with voltage via an RLC circuit,
The control unit determines a margin for the average current value according to a counter value obtained by adding or subtracting a value corresponding to a printing rate of a line printed immediately before from a value when a capacitor constituting the RLC circuit is fully charged. The printing speed is variably controlled in accordance with the remaining power with respect to the determined average current value and the average printing rate,
The thermal printer according to claim 1.
電圧の供給を受けて発熱する複数の発熱素子が配置され、前記発熱素子の発熱により記録媒体に印字するサーマルヘッドと、前記発熱素子に供給される電圧を検出する検出部と、を備えたサーマルプリンタを制御するコンピュータを、
前記発熱素子に供給する電流の平均である平均電流値に対する余力と印字対象のライン以前の平均印字率とに応じて印字速度を可変制御する制御手段として機能させるためのプログラム。
A thermal head comprising a plurality of heating elements that generate heat upon receiving a voltage supply, a thermal head that prints on a recording medium by the heat generated by the heating elements, and a detection unit that detects a voltage supplied to the heating elements. The computer that controls the printer,
A program for functioning as a control means for variably controlling a printing speed in accordance with a remaining capacity with respect to an average current value that is an average of currents supplied to the heating elements and an average printing rate before a line to be printed.
前記制御手段は、前記サーマルヘッドの前記各発熱素子を分割した単位である複数のブロックを各々駆動する複数の駆動部を前記平均印字率に応じて制御し、前記複数のブロックを一括駆動または分割駆動させる、
請求項4記載のプログラム。
The control means controls a plurality of drive units that respectively drive a plurality of blocks, which are units obtained by dividing the heat generating elements of the thermal head, according to the average printing rate, and collectively drives or divides the plurality of blocks. Drive,
The program according to claim 4.
前記制御手段は、前記サーマルヘッドに対する電圧の供給を介在するRLC回路を構成するコンデンサが満充電された場合の値から直前に印字したラインの印字率に応じた値を加算または減算したカウンタ値に従って前記平均電流値に対する余力を決定して、決定した前記平均電流値に対する余力と前記平均印字率とに応じて印字速度を可変制御する、
請求項4記載のプログラム。
In accordance with a counter value obtained by adding or subtracting a value corresponding to the printing rate of the line printed immediately before from the value when the capacitor constituting the RLC circuit interposing the supply of voltage to the thermal head is fully charged. Determining the remaining capacity for the average current value, and variably controlling the printing speed according to the determined remaining capacity for the average current value and the average printing rate;
The program according to claim 4.
JP2011183035A 2011-08-24 2011-08-24 Thermal printer and program Expired - Fee Related JP5379833B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011183035A JP5379833B2 (en) 2011-08-24 2011-08-24 Thermal printer and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011183035A JP5379833B2 (en) 2011-08-24 2011-08-24 Thermal printer and program

Publications (2)

Publication Number Publication Date
JP2013043379A true JP2013043379A (en) 2013-03-04
JP5379833B2 JP5379833B2 (en) 2013-12-25

Family

ID=48007663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011183035A Expired - Fee Related JP5379833B2 (en) 2011-08-24 2011-08-24 Thermal printer and program

Country Status (1)

Country Link
JP (1) JP5379833B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017159486A (en) * 2016-03-08 2017-09-14 三菱電機株式会社 Thermal printer
US10427418B2 (en) 2017-02-27 2019-10-01 Seiko Instruments Inc. Head drive device, thermal printer, and method of controlling a head drive device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7067261B2 (en) * 2018-05-18 2022-05-16 ブラザー工業株式会社 Printing equipment and printing programs

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007090661A (en) * 2005-09-28 2007-04-12 Seiko Epson Corp Recorder, method for controlling recorder and program
JP2010228259A (en) * 2009-03-26 2010-10-14 Nec Personal Products Co Ltd Label printer, and method and program for controlling printing speed of label printer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007090661A (en) * 2005-09-28 2007-04-12 Seiko Epson Corp Recorder, method for controlling recorder and program
JP2010228259A (en) * 2009-03-26 2010-10-14 Nec Personal Products Co Ltd Label printer, and method and program for controlling printing speed of label printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017159486A (en) * 2016-03-08 2017-09-14 三菱電機株式会社 Thermal printer
US10427418B2 (en) 2017-02-27 2019-10-01 Seiko Instruments Inc. Head drive device, thermal printer, and method of controlling a head drive device

Also Published As

Publication number Publication date
JP5379833B2 (en) 2013-12-25

Similar Documents

Publication Publication Date Title
US6918645B2 (en) Battery-operable printer
US20110199630A1 (en) Printer and printing method using the same
JP4965619B2 (en) Printer, program, and printing start position determination method
US10142508B2 (en) Battery-powered printer, POS system, and method for printing with battery-powered printer
EP2892009A1 (en) Information processing apparatus and control method
JP5379833B2 (en) Thermal printer and program
US20110063649A1 (en) Printer and task control method
JP4997299B2 (en) Printing device, printing method, and printing program
JP5387890B2 (en) Printing apparatus, printing control method, and storage medium storing printing control program
JP5462206B2 (en) Thermal printer and program
US7940289B2 (en) Printer and pulse motor control method
JP5318896B2 (en) Printer and program
JP6166626B2 (en) Printer and printing method thereof
JP2014168903A (en) Thermal printer and program
JP2013103352A (en) Thermal printer and program
JP2020138425A (en) Printer and charge control method
EP3312015B1 (en) Battery-powered printer and method for driving battery-powered printer
KR102248801B1 (en) Printing apparatus and control method therefor, and storage medium
JP2008142896A (en) Recorder and method of detecting battery residual capacity of the recorder
JP2005331462A (en) Method and detector for detecting voltage reduction in line printer
US11618272B2 (en) Printing apparatus
JP5031933B2 (en) Thermal printer
JP5624590B2 (en) Printing device
JP2023131229A (en) Printer
US20200099228A1 (en) Printing apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130723

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130830

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130927

R150 Certificate of patent or registration of utility model

Ref document number: 5379833

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees