Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6989139B2 - Thermal printer, printing method, and printing control program - Google Patents
[go: Go Back, main page]

JP6989139B2 - Thermal printer, printing method, and printing control program - Google Patents

Thermal printer, printing method, and printing control program Download PDF

Info

Publication number
JP6989139B2
JP6989139B2 JP2019020283A JP2019020283A JP6989139B2 JP 6989139 B2 JP6989139 B2 JP 6989139B2 JP 2019020283 A JP2019020283 A JP 2019020283A JP 2019020283 A JP2019020283 A JP 2019020283A JP 6989139 B2 JP6989139 B2 JP 6989139B2
Authority
JP
Japan
Prior art keywords
image data
thermal head
print
stepping motor
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019020283A
Other languages
Japanese (ja)
Other versions
JP2020128011A (en
Inventor
光春 相川
健太 野田
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.)
NEC Platforms Ltd
Original Assignee
NEC Platforms Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2019020283A priority Critical patent/JP6989139B2/en
Publication of JP2020128011A publication Critical patent/JP2020128011A/en
Application granted granted Critical
Publication of JP6989139B2 publication Critical patent/JP6989139B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)
  • Handling Of Sheets (AREA)

Description

本発明は、サーマルプリンタ、印字方法、および印字制御プログラムに関し、特に、サーマルヘッドを用いて印刷データを用紙に印刷するサーマルプリンタ、印字方法、および印字制御プログラムに関する。 The present invention relates to a thermal printer, a printing method, and a print control program, and more particularly to a thermal printer, a printing method, and a print control program for printing print data on paper using a thermal head.

サーマルヘッドを用いて印刷データを用紙に印刷するサーマルプリンタが知られている。一般に、サーマルプリンタでは、サーマルヘッド上に少なくとも1列に並んだ複数の発熱素子を選択的に発熱させて印字を行う。発熱は、一定時間駆動パルスをサーマルヘッドに印加することにより行われる。また、サーマルプリンタでは、印字速度、外部温度や使用する感熱用紙、または熱転写リボンおよび受容紙に対応して設定された印加エネルギー量を、サーマルヘッドに印加することで印字を行っている。 A thermal printer that prints print data on paper using a thermal head is known. Generally, in a thermal printer, a plurality of heat generating elements arranged in at least one row on a thermal head are selectively generated to generate heat for printing. Heat generation is performed by applying a drive pulse to the thermal head for a certain period of time. Further, in the thermal printer, printing is performed by applying an applied energy amount set corresponding to the printing speed, the external temperature, the thermal paper to be used, or the thermal transfer ribbon and the receiving paper to the thermal head.

また、サーマルプリンタに採用されるサーマル式には、熱を感知して発色する特殊紙(感熱用紙)を使用する感熱式と、感熱インクをリボンにしてインクを紙(普通紙)に融かして発色させる熱転写式とがある。 In addition, the thermal type used in thermal printers includes a heat-sensitive type that uses special paper (heat-sensitive paper) that senses heat and develops color, and a heat-sensitive ink that is used as a ribbon to melt the ink into paper (plain paper). There is a thermal transfer type that develops color.

例えば、特許文献1は、発熱体を列状に配列したサーマルヘッドを用いて2値画像を印刷する「サーマルプリンタ」を開示している。特許文献1に開示されたサーマルプリンタは、印字用のビットマップデータを格納する画像メモリと、この画像メモリに格納されている印字用のビットマップデータを印字する印字部とを含む。特許文献1では、ビットマップデータよりジャギーを発生すべき特定パターンが検出された場合に、画像メモリに格納されている印字用のビットマップデータに上記ジャギーを抑制するドットパターンを付加している。 For example, Patent Document 1 discloses a "thermal printer" that prints a binary image using a thermal head in which heating elements are arranged in a row. The thermal printer disclosed in Patent Document 1 includes an image memory for storing bitmap data for printing, and a printing unit for printing the bitmap data for printing stored in the image memory. In Patent Document 1, when a specific pattern that should generate jaggies is detected from the bitmap data, a dot pattern that suppresses the jaggies is added to the bitmap data for printing stored in the image memory.

また、特許文献2は、周囲温度変化に対する印字用紙位置のずれを補正した「サーマルプリンタ」を開示している。特許文献2に開示されたサーマルプリンタは、サーマルヘッドと、プラテンと、モータ(ステッピングモータ)と、温度センサ(サーミスタ)と、モータ制御部とを有する。サーマルヘッドは印字用紙(感熱用紙)に印字を行う。プラテンは、印字用紙(感熱用紙)を挟んでサーマルヘッドと対向して配置され、印字用紙(感熱用紙)を搬送する。モータ(ステッピングモータ)はプラテンを回転駆動する。温度センサ(サーミスタ)はプラテン近傍に設けられる。モータ制御部は、温度センサ(サーミスタ)の出力が入力され、モータの回転制御を行う。モータ制御部は、温度センサの出力に応じてモータの回転量を制御する。 Further, Patent Document 2 discloses a "thermal printer" that corrects the deviation of the printing paper position due to a change in ambient temperature. The thermal printer disclosed in Patent Document 2 has a thermal head, a platen, a motor (stepping motor), a temperature sensor (thermistor), and a motor control unit. The thermal head prints on printing paper (thermal paper). The platen is arranged so as to face the thermal head with the printing paper (heat-sensitive paper) sandwiched between them, and conveys the printing paper (heat-sensitive paper). The motor (stepping motor) drives the platen to rotate. The temperature sensor (thermistor) is installed near the platen. The output of the temperature sensor (thermistor) is input to the motor control unit to control the rotation of the motor. The motor control unit controls the amount of rotation of the motor according to the output of the temperature sensor.

さらに、特許文献3は、印刷抜けのない可変分割印刷を行うことができる「印刷装置」を開示している。特許文献3に開示された印刷装置は、入力部、表示部、サーマルヘッド、サーミスタ、ハーフカット機構、フルカット機構、プラテンローラ、テープ幅検出スイッチ、制御部、ROM(Read Only Memory)、RAM(Random Access Memory)、表示部駆動回路、ヘッド駆動回路、搬送用モータ駆動回路、ステッピングモータ、カッターモータ駆動回路、及びカッターモータを備える。 Further, Patent Document 3 discloses a "printing apparatus" capable of performing variable division printing without printing omissions. The printing apparatus disclosed in Patent Document 3 includes an input unit, a display unit, a thermal head, a thermista, a half-cut mechanism, a full-cut mechanism, a platen roller, a tape width detection switch, a control unit, a ROM (Read Only Memory), and a RAM ( Random Access Memory), display unit drive circuit, head drive circuit, transfer motor drive circuit, stepping motor, cutter motor drive circuit, and cutter motor are provided.

サーマルヘッドは、複数の発熱素子を有し、被印刷媒体に印刷を行う印刷ヘッドである。プラテンは被印刷媒体を搬送する搬送部である。サーマルヘッドには、サーミスタが埋め込まれている。サーミスタは、サーマルヘッドの温度を測定する測定部である。 The thermal head is a print head that has a plurality of heat generating elements and prints on a printing medium. The platen is a transport unit that transports the printed medium. A thermistor is embedded in the thermal head. The thermistor is a measuring unit that measures the temperature of the thermal head.

制御部は、ROMに記憶されているプログラムをRAMに展開し実行することで、印刷装置の各部の動作を制御する。制御部は、ヘッド駆動回路を介してサーマルヘッドを制御するヘッド制御部であり、ストローブ信号と印刷データを生成してヘッド駆動回路へ供給する。制御部は、プラテンローラを制御する搬送制御部であり、カット機構を制御するカット制御部である。ROMは、被印刷媒体に印刷を行う印刷プログラム、印刷プログラムの実行に必要な各種データ(例えば、フォント等)を記憶する。ROMは、制御部によって読取り可能なプログラムが記憶された記憶媒体としても機能する。RAMは、印刷についての各種の情報(印刷情報)を記憶する入力データメモリとして機能する。また、RAMは、印刷情報に基づいて生成される、被印刷媒体に形成すべき印刷内容のパターンを示すデータ(印刷データ)を記憶する印刷データメモリとしても機能する。 The control unit controls the operation of each unit of the printing apparatus by expanding the program stored in the ROM into the RAM and executing the program. The control unit is a head control unit that controls the thermal head via the head drive circuit, generates a strobe signal and print data, and supplies the strobe signal and print data to the head drive circuit. The control unit is a transport control unit that controls the platen roller, and is a cut control unit that controls the cut mechanism. The ROM stores a print program for printing on a print medium and various data (for example, fonts and the like) necessary for executing the print program. The ROM also functions as a storage medium in which a program readable by the control unit is stored. The RAM functions as an input data memory for storing various information (print information) about printing. The RAM also functions as a print data memory for storing data (print data) indicating a pattern of print contents to be formed on a print medium, which is generated based on print information.

ヘッド駆動回路は、ストローブ信号と印刷データに基づいて複数の発熱素子へ通電又は非通電を行う。より詳細には、ヘッド駆動回路は、ストローブ信号(制御信号)がONである期間(通電制御期間)中に印刷データに基づいて複数の発熱素子への通電又は非通電を行う。サーマルヘッドは、主走査方向に配列された複数の発熱素子を有する印刷ヘッドである。サーマルヘッドは、制御部から供給されたストローブ信号の通電制御期間に印刷データに応じて、発熱素子がヘッド駆動回路により選択的に通電されることで、発熱素子でインクリボンを加熱して、熱転写により被印刷媒体に印刷を行う。 The head drive circuit energizes or de-energizes a plurality of heat generating elements based on the strobe signal and print data. More specifically, the head drive circuit energizes or de-energizes a plurality of heat generating elements based on print data during a period (energization control period) in which the strobe signal (control signal) is ON. The thermal head is a print head having a plurality of heat generating elements arranged in the main scanning direction. In the thermal head, the heat generating element is selectively energized by the head drive circuit according to the print data during the energization control period of the strobe signal supplied from the control unit, so that the ink ribbon is heated by the heat generating element and heat transfer is performed. Prints on the printing medium.

搬送用モータ駆動回路はステッピングモータを駆動する。ステッピングモータはプラテンローラを駆動する。プラテンローラは、ステッピングモータの動力によって回転し、被印刷媒体の長手方向(副走査方向、又は搬送方向)に被印刷媒体を搬送する。ステッピングモータは、被印刷媒体を搬送方向に搬送するための搬送モータであり、被印刷媒体を搬送方向に搬送する搬送手段は、ステッピングモータを有している。 The transport motor drive circuit drives the stepping motor. The stepping motor drives the platen roller. The platen roller is rotated by the power of the stepping motor to convey the printed medium in the longitudinal direction (secondary scanning direction or conveying direction) of the printed medium. The stepping motor is a transport motor for transporting the printed medium in the transport direction, and the transport means for transporting the print medium in the transport direction includes a stepping motor.

カッターモータ駆動回路はカッターモータを駆動する。ハーフカット機構及びフルカット機構は、カッターモータの動力によって動作し、被印刷媒体をハーフカット又はフルカットする。フルカットとは、被印刷媒体の基材を剥離紙とともに幅方向に沿って切断する動作のことであり、ハーフカットとは、基材のみを幅方向に沿って切断する動作のことである。 The cutter motor drive circuit drives the cutter motor. The half-cut mechanism and the full-cut mechanism are operated by the power of a cutter motor to half-cut or full-cut the printed medium. The full cut is an operation of cutting the base material of the printing medium together with the release paper along the width direction, and the half cut is an operation of cutting only the base material along the width direction.

特許文献4は、用紙特性および印刷濃度の変動に対応でき、高品質な印刷が可能な「印刷装置」を開示している。特許文献4に開示された印刷装置は、インターフェースと、システム制御部と、印刷制御部と、サーマルヘッドと、駆動制御部と、ステッピングモータと、インクシート搬送モータとを備えている。印刷制御部はサーマルヘッドを制御する。駆動制御部は、ステッピングモータとインクシート搬送モータとを制御する。印刷装置は、サーマルヘッドと、ステッピングモータおよびインクシート搬送モータにより、インクシートのインクを用紙に転写して印刷を行う。サーマルヘッドは、用紙の搬送方向に対して交差する方向に長手を有し、その長手の方向に対応するライン毎に印刷を行う。 Patent Document 4 discloses a "printing apparatus" capable of high-quality printing that can cope with fluctuations in paper characteristics and print density. The printing apparatus disclosed in Patent Document 4 includes an interface, a system control unit, a print control unit, a thermal head, a drive control unit, a stepping motor, and an ink sheet transfer motor. The print control unit controls the thermal head. The drive control unit controls the stepping motor and the ink sheet transfer motor. The printing apparatus transfers the ink of the ink sheet to the paper by the thermal head, the stepping motor, and the ink sheet transport motor to perform printing. The thermal head has a length in a direction intersecting the paper transport direction, and printing is performed for each line corresponding to the length direction.

インターフェースは、情報端末と通信可能であり、情報端末から印刷情報を受信して取得する。印刷情報には、印刷すべき画像データと用紙サイズなどの用紙特性に関連する情報とが含まれる。 The interface can communicate with the information terminal and receives and acquires print information from the information terminal. The print information includes image data to be printed and information related to paper characteristics such as paper size.

システム制御部は、インターフェースが受信した印刷情報に基づいて、印刷制御部および駆動制御部などの印刷装置の各構成要素を統括的に制御する。システム制御部は、印刷情報に含まれる画像データ及び用紙サイズの情報を処理して、ライン毎の複数の印刷データを生成する。システム制御部は、当該印刷データに基づいて印刷制御部を制御し、その印刷制御部を介してサーマルヘッドの駆動を制御する。システム制御部は、当該印刷データに基づいて駆動制御部を制御し、その駆動制御部を介してステッピングモータとインクシート搬送モータとを制御する。 The system control unit comprehensively controls each component of the printing device such as the print control unit and the drive control unit based on the print information received by the interface. The system control unit processes the image data and the paper size information included in the print information to generate a plurality of print data for each line. The system control unit controls the print control unit based on the print data, and controls the drive of the thermal head via the print control unit. The system control unit controls the drive control unit based on the print data, and controls the stepping motor and the ink sheet transfer motor via the drive control unit.

駆動制御部は、システム制御部から出力される制御信号に基づく駆動電流をステッピングモータに出力する。駆動制御部は、システム制御部により算出される駆動電流によりステッピングモータの駆動を制御する。駆動制御部は、システム制御部から出力される信号に基づき、インクシートの巻き取りを行うインクシート搬送モータを制御する。 The drive control unit outputs a drive current based on the control signal output from the system control unit to the stepping motor. The drive control unit controls the drive of the stepping motor by the drive current calculated by the system control unit. The drive control unit controls the ink sheet transfer motor that winds up the ink sheet based on the signal output from the system control unit.

ステッピングモータは、駆動制御部から供給される駆動電流により回転駆動する。ステッピングモータに供給される駆動電流は、システム制御部が駆動制御部に出力する制御信号により調整することができる。 The stepping motor is rotationally driven by a drive current supplied from the drive control unit. The drive current supplied to the stepping motor can be adjusted by a control signal output from the system control unit to the drive control unit.

印刷制御部は、システム制御部が生成する印刷データに基づいてサーマルヘッドの駆動データを生成し、その駆動データをサーマルヘッドに出力する。サーマルヘッドは、印刷制御部が出力する駆動データに基づいて用紙に印刷を行う。 The print control unit generates drive data for the thermal head based on the print data generated by the system control unit, and outputs the drive data to the thermal head. The thermal head prints on paper based on the drive data output by the print control unit.

システム制御部は、CPU(Central Processing Unit)および記憶部を含み、インターフェースから印刷情報を入力可能である。記憶部は、例えばフラッシュメモリなどの不揮発性メモリと、例えばRAM(Random Access Memory)などの一時記憶メモリとを含む。不揮発性メモリには、補正テーブル、印刷に係る制御プログラムおよび各種初期値などが記憶される。一時記憶メモリは、例えば印刷情報、印刷データ、駆動データおよび算出中の駆動電流などが一時的に記憶される。 The system control unit includes a CPU (Central Processing Unit) and a storage unit, and print information can be input from the interface. The storage unit includes, for example, a non-volatile memory such as a flash memory and a temporary storage memory such as a RAM (Random Access Memory). The non-volatile memory stores a correction table, a control program related to printing, various initial values, and the like. In the temporary storage memory, for example, print information, print data, drive data, drive current being calculated, and the like are temporarily stored.

印刷装置に装着された用紙は、ピンチローラ及びグリップローラに挟持されている。グリップローラは、駆動制御部によって制御されるステッピングモータに接続されており、そのステッピングモータの駆動力により回転する。用紙は、グリップローラの回転により、用紙搬送方向に搬送される。 The paper mounted on the printing apparatus is sandwiched between the pinch roller and the grip roller. The grip roller is connected to a stepping motor controlled by a drive control unit, and is rotated by the driving force of the stepping motor. The paper is conveyed in the paper conveying direction by the rotation of the grip roller.

インクシートは、用紙とともにサーマルヘッドとそのサーマルヘッドに対向するピンチローラとの間に供給される。インクシートは、駆動制御部によって制御されるインクシート搬送モータを回転することにより、サーマルヘッドとピンチローラとの間に供給される。用紙はインクシートとともに、サーマルヘッド及びピンチローラによって、圧着、加熱され、その結果、用紙上に画像が印刷される。 The ink sheet is supplied together with the paper between the thermal head and the pinch roller facing the thermal head. The ink sheet is supplied between the thermal head and the pinch roller by rotating the ink sheet transfer motor controlled by the drive control unit. The paper is crimped and heated by a thermal head and a pinch roller together with the ink sheet, and as a result, an image is printed on the paper.

サーマルヘッドは、用紙の搬送方向に対して交差する方向に長手を有して配置される。サーマルヘッドは、その長手の方向に対応するライン毎に印刷する。つまり、印刷装置は、ライン毎の複数の印刷データを、ライン毎に用紙を搬送しながら印刷する。 The thermal head is arranged so as to have a longitudinal direction in a direction intersecting the paper transport direction. The thermal head prints line by line corresponding to its longitudinal direction. That is, the printing apparatus prints a plurality of print data for each line while transporting the paper for each line.

特開2000−037896号公報Japanese Unexamined Patent Publication No. 2000-037896 特開2001−205834号公報Japanese Unexamined Patent Publication No. 2001-205834 特開2018−103432号公報Japanese Unexamined Patent Publication No. 2018-103432 特開2018−138339号公報Japanese Unexamined Patent Publication No. 2018-138339

しかしながら、特許文献1〜4には、次に述べるような問題がある。 However, Patent Documents 1 to 4 have the following problems.

特許文献1〜4に開示されたサーマルプリンタ(印刷装置)においては、黒部分と白抜き部分とを明瞭に区別して印刷するのに、サーマルヘッドに印加されるべき印加エネルギーをバランス制御することが困難である。またそのバランス制御は、サーマルヘッド自体の冷却特性等によるものが大きく、サーマルヘッド自体の特性に左右される面もある。 In the thermal printer (printing apparatus) disclosed in Patent Documents 1 to 4, it is possible to control the balance of the applied energy to be applied to the thermal head in order to clearly distinguish between the black portion and the white portion for printing. Have difficulty. Further, the balance control is largely due to the cooling characteristics of the thermal head itself, and may be influenced by the characteristics of the thermal head itself.

また、特許文献1〜4に開示されたサーマルプリンタ(印刷装置)においては、印刷データが、黒部分に含まれる白抜き部分の文字等であり、特に白面積部分が小さい場合は、黒部分を印刷する際における印加エネルギーの余熱より、白抜き部分が潰れてしまうことがある。 Further, in the thermal printer (printing apparatus) disclosed in Patent Documents 1 to 4, the print data is characters or the like in the white portion included in the black portion, and when the white area portion is particularly small, the black portion is used. The white part may be crushed due to the residual heat of the applied energy during printing.

詳述すると、サーマルヘッドを用いた印刷においては、サーマルヘッドへの印加時間を長く投入すると黒濃度が増し鮮明な黒文字になる。しかしながら、この場合、黒部分が際立つ一方で、逆に白抜き部分は、黒部分を印刷した際の余熱が残り、「尾引き」や「白抜き文字やロゴや華奢な白抜きの横線の潰れ」が発生することがある。ここで、「尾引き」とは、白抜き部分に黒部分が混ざりこむことをいう。 More specifically, in printing using a thermal head, if the application time to the thermal head is extended for a long time, the black density increases and clear black characters are obtained. However, in this case, while the black part stands out, on the contrary, the residual heat when printing the black part remains in the white part, and "tailing" and "outline characters, logos, and delicate white horizontal lines are crushed. "May occur. Here, "tail pulling" means that the black part is mixed in the white part.

本発明は、上記の事情に鑑みてなされたものであって、白、黒の差を明瞭に印刷することができるサーマルプリンタ、印字方法、および印字制御プログラムを提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a thermal printer, a printing method, and a print control program capable of clearly printing a difference between black and white.

上記目的を達成するため、本発明の1つの態様として、サーマルプリンタは、主走査方向に配列された複数の発熱素子を有し、被印刷媒体に印刷を行うサーマルヘッドと;該サーマルヘッドの温度を検出する温度検出手段と;前記被印刷媒体を前記主走査方向と直交する搬送方向に搬送するためのステッピングモータであって、ステップ角度が可変な前記ステッピングモータと;前記サーマルヘッドと前記ステッピングモータとを制御するコントローラと;を備えるサーマルプリンタであって、前記コントローラは、上位装置から原画像データと印字濃度を示す信号とを受信する受信手段と;前記原画像データを前記搬送方向にN(Nは2以上の整数)倍に伸張して、伸張画像データを生成する伸張手段と;前記サーマルヘッドの温度と前記印字濃度とに基づいて、前記サーマルヘッドに印加する印加エネルギーを決定する決定手段と;前記決定した印加エネルギーによる印加により、前記原画像データに含まれる白抜き部分が潰れるか否かを判定する判定手段と;該判定手段の判定結果が、前記白抜き部分が潰れることを示している場合に、前記伸張画像データに含まれる前記白抜き部分を前記搬送方向に所定の(M/N)ドット(1≦M<N)分だけ拡張編集して、拡張編集画像データを得る拡張編集手段と;前記伸張画像データ及び前記拡張編集画像データの一方を、前記判定結果に従って選択して、選択した画像データを印刷データとして前記決定した印加エネルギーに従って前記サーマルヘッドに供給するヘッド制御手段と;前記原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、前記ステッピングモータを駆動するモータ制御手段と;を備える。 In order to achieve the above object, as one aspect of the present invention, the thermal printer has a plurality of heat generating elements arranged in the main scanning direction and prints on a printing medium; the temperature of the thermal head. A temperature detecting means for detecting; a stepping motor for transporting the printed medium in a transport direction orthogonal to the main scanning direction; the stepping motor having a variable step angle; the thermal head and the stepping motor. A thermal printer comprising; a receiving means for receiving the original image data and a signal indicating a print density from a higher-level device; the original image data is N (in the transport direction). N is a stretching means that is stretched by a factor of 2) to generate stretched image data; a determining means that determines the applied energy applied to the thermal head based on the temperature of the thermal head and the print density. And; a determination means for determining whether or not the white portion included in the original image data is crushed by the application by the determined applied energy; the determination result of the determination means indicates that the white portion is crushed. If this is the case, the white portion included in the stretched image data is expanded and edited by a predetermined (M / N) dot (1 ≦ M <N) in the transport direction to obtain extended edited image data. An editing means; a head control means that selects one of the stretched image data and the extended edited image data according to the determination result and supplies the selected image data as print data to the thermal head according to the determined applied energy. With a motor control means for driving the stepping motor at a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of the original image data by (1 / N); To prepare for.

本発明の他の態様として、コントローラが実行する印字方法は、サーマルプリンタにおける印字方法であって、前記サーマルプリンタは、主走査方向に配列された複数の発熱素子を有し、被印刷媒体に印刷を行うサーマルヘッドと;該サーマルヘッドの温度を検出する温度検出手段と;前記被印刷媒体を前記主走査方向と直交する搬送方向に搬送するためのステッピングモータであって、ステップ角度が可変な前記ステッピングモータと;を備え、前記コントローラが実行する印字方法は、上位装置から原画像データと印字濃度を示す信号とを受信する受信ステップと;前記原画像データを前記搬送方向にN(Nは2以上の整数)倍に伸張して、伸張画像データを生成する伸張ステップと;前記サーマルヘッドの温度と前記印字濃度とに基づいて、前記サーマルヘッドに印加する印加エネルギーを決定する決定ステップと;前記決定した印加エネルギーによる印加により、前記原画像データに含まれる白抜き部分が潰れるか否かを判定する判定ステップと;該判定ステップの判定結果が、前記白抜き部分が潰れることを示している場合に、前記伸張画像データに含まれる前記白抜き部分を前記搬送方向に所定の(M/N)ドット(1≦M<N)分だけ拡張編集して、拡張編集画像データを得る拡張編集ステップと;前記伸張画像データ及び前記拡張編集画像データの一方を、前記判定結果に従って選択して、選択した画像データを印刷データとして前記決定した印加エネルギーに従って前記サーマルヘッドに供給するヘッド制御ステップと;前記原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、前記ステッピングモータを駆動するモータ制御ステップと;を含む。 As another aspect of the present invention, the printing method executed by the controller is a printing method in a thermal printer, and the thermal printer has a plurality of heat generating elements arranged in the main scanning direction and prints on a printing medium. ; A temperature detecting means for detecting the temperature of the thermal head; a stepping motor for transporting the printed medium in a transport direction orthogonal to the main scanning direction, wherein the step angle is variable. The printing method performed by the controller including a stepping motor; a receiving step of receiving the original image data and a signal indicating the print density from the host device; N (N is 2) in the transport direction of the original image data. A decompression step that generates stretched image data by decompressing (the above integers) times; and a determination step that determines the applied energy to be applied to the thermal head based on the temperature of the thermal head and the print density; A determination step for determining whether or not the white area included in the original image data is crushed by the application with the determined applied energy; when the determination result of the determination step indicates that the white area is crushed. In addition, an extended editing step of obtaining extended editing image data by expanding and editing the white portion included in the expanded image data by a predetermined (M / N) dot (1 ≦ M <N) in the transport direction. A head control step in which one of the stretched image data and the extended edited image data is selected according to the determination result, and the selected image data is supplied as print data to the thermal head according to the determined applied energy. It includes a motor control step for driving the stepping motor at a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of image data by (1 / N).

本発明の他の態様として、印字制御プログラムは、コンピュータにより、サーマルプリンタの印字を制御させる印字制御プログラムであって、前記サーマルプリンタは、主走査方向に配列された複数の発熱素子を有し、被印刷媒体に印刷を行うサーマルヘッドと;該サーマルヘッドの温度を検出する温度検出手段と;前記被印刷媒体を前記主走査方向と直交する搬送方向に搬送するためのステッピングモータであって、ステップ角度が可変な前記ステッピングモータと;を備え、前記印字制御プログラムは、前記コンピュータに、上位装置から原画像データと印字濃度を示す信号とを受信する受信手順と;前記原画像データを前記搬送方向にN(Nは2以上の整数)倍に伸張して、伸張画像データを生成する伸張手順と;前記サーマルヘッドの温度と前記印字濃度とに基づいて、前記サーマルヘッドに印加する印加エネルギーを決定する決定手順と;前記決定した印加エネルギーによる印加により、前記原画像データに含まれる白抜き部分が潰れるか否かを判定する判定手順と;該判定手順の判定結果が、前記白抜き部分が潰れることを示している場合に、前記伸張画像データに含まれる前記白抜き部分を前記搬送方向に所定の(M/N)ドット(1≦M<N)分だけ拡張編集して、拡張編集画像データを得る拡張編集手順と;前記伸張画像データ及び前記拡張編集画像データの一方を、前記判定結果に従って選択して、選択した画像データを印刷データとして前記決定した印加エネルギーに従って前記サーマルヘッドに供給するヘッド制御手順と;前記原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、前記ステッピングモータを駆動するモータ制御手順と;を実行させる。 As another aspect of the present invention, the print control program is a print control program that controls printing of a thermal printer by a computer, and the thermal printer has a plurality of heat generating elements arranged in the main scanning direction. A thermal head that prints on a printing medium; a temperature detecting means for detecting the temperature of the thermal head; a stepping motor for transporting the printing medium in a transport direction orthogonal to the main scanning direction, and a step. The printing control program includes the stepping motor having a variable angle; and a receiving procedure for receiving the original image data and a signal indicating the print density from the host device to the computer; the original image data in the transport direction. The stretching procedure for generating stretched image data by stretching N (N is an integer of 2 or more) times; determines the applied energy to be applied to the thermal head based on the temperature of the thermal head and the print density. The determination procedure for determining whether or not the white portion included in the original image data is crushed by the application by the determined applied energy; the determination result of the determination procedure is that the white portion is crushed. In the case of indicating that, the blank portion included in the stretched image data is expanded and edited by a predetermined (M / N) dot (1 ≦ M <N) in the transport direction, and the expanded edited image data is printed. A head that selects one of the stretched image data and the extended edited image data according to the determination result and supplies the selected image data as print data to the thermal head according to the determined applied energy. Control procedure; Motor control that drives the stepping motor at a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of the original image data by (1 / N). To execute the procedure and;

本発明によれば、白、黒の差を明瞭に印刷することが可能である。 According to the present invention, it is possible to clearly print the difference between white and black.

本発明の実施形態に係るサーマルプリンタの概略のハードウェア構成を示す側面断面図である。It is a side sectional view which shows the schematic hardware structure of the thermal printer which concerns on embodiment of this invention. 図1に示したサーマルプリンタの概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the thermal printer shown in FIG. 図2に示したサーマルプリンタに使用される、ROMに記憶される印字制御プログラムおよびRAMのメモリエリアの一例を示す図である。It is a figure which shows an example of the memory area of the print control program and RAM stored in ROM used in the thermal printer shown in FIG. 図2に示したサーマルプリンタに使用される、コントローラの機能構成の一例を示すブロック図である。FIG. 3 is a block diagram showing an example of a functional configuration of a controller used in the thermal printer shown in FIG. 2. 図4に示したサーマルプリンタの動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation of the thermal printer shown in FIG. 図4に示したサーマルプリンタに使用される、RAMの第1の印刷データ編集メモリエリアに保存される原画像データの一例を示す図である。It is a figure which shows an example of the original image data which is used in the thermal printer shown in FIG. 4, and is stored in the 1st print data edit memory area of a RAM. 図6に示された原画像データを搬送方向に4倍に伸張したデータの一例を示す図である。It is a figure which shows an example of the data which stretched 4 times in the transport direction from the original image data shown in FIG. 図4に示したサーマルプリンタに使用される、RAMの第2の印刷データ編集メモリエリアに保存される伸張画像データの一例を示す図である。It is a figure which shows an example of the expanded image data which is stored in the 2nd print data edit memory area of a RAM used for the thermal printer shown in FIG. 図4に示したサーマルプリンタに使用される、RAMの第3の印刷データ編集メモリエリアに保存される拡張編集画像データの一例を示す図である。It is a figure which shows an example of the extended edit image data stored in the 3rd print data edit memory area of a RAM used for the thermal printer shown in FIG.

本発明の特徴について説明する。本発明は、連続的に黒部分を印字する場合(黒ベタ)において、その印字範囲中に現れる「印加しない箇所」の文字つぶれ、線つぶれを抑制して、「印加しない箇所」の白、黒の差を明瞭に印刷する方法を提供する。ここで、「印刷しない箇所」とは、例えば、「小型の白抜き文字やロゴ、及び華奢な白抜きの横線部分」をいう。 The features of the present invention will be described. The present invention suppresses character crushing and line crushing in "non-applied areas" that appear in the print range when black areas are continuously printed (black solid), and white and black in "non-applied areas". Provide a method for clearly printing the difference between the two. Here, the "non-printing part" means, for example, "small outline characters and logos, and a delicate white outline portion".

すなわち、本発明では、先ず、所望する印刷ビットマップ等の画像データをサーマルプリンタが受信した際、ソフトウェアにより、印刷データをより高精細に用紙に印字出来るように伸張する。引き続いて、本発明では、白抜き部分については、印加エネルギーに応じた量分、白抜き部分が拡大するように画像データを再編集し、印刷データとしてサーマルヘッドに印加することとする。これにより、印加エネルギーが増大し、黒印加時の熱が白部分におよぶ余熱による白抜き部分の潰れを抑制し、黒、白の差が明瞭な印刷をしている。 That is, in the present invention, first, when the thermal printer receives image data such as a desired print bitmap, the print data is expanded so that the print data can be printed on paper with higher definition by software. Subsequently, in the present invention, for the white part, the image data is re-edited so that the white part is enlarged by the amount corresponding to the applied energy, and the white part is applied to the thermal head as print data. As a result, the applied energy is increased, the heat generated when black is applied suppresses the crushing of the white portion due to the residual heat applied to the white portion, and the difference between black and white is clearly printed.

本発明の実施の形態について図面を参照して説明する。 Embodiments of the present invention will be described with reference to the drawings.

[実施形態]
図1および図2を参照して、本発明の実施形態に係るサーマルプリンタ100について説明する。図1は、サーマルプリンタ100の概略のハードウェア構成を示す側面断面図であり、図2はサーマルプリンタ100の概略構成を示すブロック図である。
[Embodiment]
The thermal printer 100 according to the embodiment of the present invention will be described with reference to FIGS. 1 and 2. FIG. 1 is a side sectional view showing a schematic hardware configuration of the thermal printer 100, and FIG. 2 is a block diagram showing a schematic configuration of the thermal printer 100.

図示のサーマルプリンタ100は、上位装置200と通信を行い、サーマルヘッド172を用いて印刷データを感熱用紙(被印刷媒体)Mに印字するプリンタ装置やATM(automatic teller’s machine)やPOS(point of sales)端末等の明細票印刷を行うためのプリンタ装置である。 The illustrated thermal printer 100 communicates with a host device 200 and prints print data on a heat-sensitive paper (printed medium) M using a thermal head 172, such as a printer device, an ATM (automatic teller's machine), or a POS (point of sales). ) It is a printer device for printing detailed slips of terminals and the like.

図1に示されるように、感熱用紙(被印刷媒体)Mは、ロール紙12から搬送路面14上に繰り出される。搬送路面14上には、第1の搬送ローラ16と第2の搬送ローラ17とが配置されている。第1の搬送ローラ16と第2の搬送ローラ17との間には、サーマルヘッド172、プラテン182およびカッター184が配置されている。上記繰り出された感熱用紙(被印刷媒体)Mは、サーマルヘッド172とプラテン182との間を通過する。この通過する際に、感熱用紙(被印刷媒体)Mがサーマルヘッド172によって加熱されることで、感熱用紙(被印刷媒体)Mに印刷データが印字される。 As shown in FIG. 1, the thermal paper (printed medium) M is fed from the roll paper 12 onto the transport road surface 14. A first transport roller 16 and a second transport roller 17 are arranged on the transport road surface 14. A thermal head 172, a platen 182, and a cutter 184 are arranged between the first transfer roller 16 and the second transfer roller 17. The unwound thermal paper (printed medium) M passes between the thermal head 172 and the platen 182. Upon passing through this, the thermal paper (printed medium) M is heated by the thermal head 172, so that print data is printed on the thermal paper (printed medium) M.

サーマルヘッド172は、主走査方向に配列された複数の発熱素子を有し、感熱用紙(被印刷媒体)Mに印刷を行う。 The thermal head 172 has a plurality of heat generating elements arranged in the main scanning direction, and prints on the thermal paper (printed medium) M.

図2に示されるように、サーマルプリンタ100は、上記サーマルヘッド172、上記プラテン182および上記カッター184に加えて、コント―ラ105、インターフェース140、サーミスタ174、ステッピングモータ176、およびカッターモータ178を備えている。 As shown in FIG. 2, the thermal printer 100 includes a controller 105, an interface 140, a thermistor 174, a stepping motor 176, and a cutter motor 178 in addition to the thermal head 172, the platen 182, and the cutter 184. ing.

サーミスタ174は、サーマルヘッド172に近接して又は埋め込まれて設けられている。サーミスタ174は、サーマルヘッド172の温度を検出する温度検出手段として働く。 The thermistor 174 is provided in close proximity to or embedded in the thermal head 172. The thermistor 174 serves as a temperature detecting means for detecting the temperature of the thermal head 172.

インターフェース140は、上位装置200との通信を行う部分である。コントローラ105は、後述するように、サーマルヘッド172とステッピングモータ176とカッターモータ178とを制御する。コントローラ105は、CPU(Central Processing Unit)110、ROM(Read-Only Memory)120、RAM(Random Access Memory)130、ヘッド駆動回路150、およびモータ駆動回路160から成る。 The interface 140 is a part that communicates with the host device 200. The controller 105 controls the thermal head 172, the stepping motor 176, and the cutter motor 178, as will be described later. The controller 105 includes a CPU (Central Processing Unit) 110, a ROM (Read-Only Memory) 120, a RAM (Random Access Memory) 130, a head drive circuit 150, and a motor drive circuit 160.

CPU110は、インターフェース140を介して受信したデータ(後述する)や後述するROM120に記憶された印字制御プログラム(後述する)をRAM130上に読み出して処理を実行することにより、サーマルプリンタ100の制御や機能を実現する演算装置である。 The CPU 110 controls and functions the thermal printer 100 by reading data received via the interface 140 (described later) and a print control program (described later) stored in the ROM 120 described later onto the RAM 130 and executing processing. It is an arithmetic unit that realizes.

ROM120は、後述する印字制御プログラムを記憶する書き換え可能な不揮発性メモリである。不揮発性メモリは、例えば、EPROM(Erasable Programmed Read-Only Memory)から成る。 The ROM 120 is a rewritable non-volatile memory that stores a print control program described later. The non-volatile memory comprises, for example, EPROM (Erasable Programmed Read-Only Memory).

RAM130は、ROM120から読み出された印字制御プログラムやインターフェース140を介して受信したデータ等を一時的に保持する揮発性のメモリであり、CPU110の作業領域として使用される。 The RAM 130 is a volatile memory that temporarily holds a print control program read from the ROM 120, data received via the interface 140, and the like, and is used as a work area of the CPU 110.

ヘッド駆動回路150は、CPU110から供給される、後述する印刷データに基づいて、サーマルヘッド172の複数の発熱素子への通電又は非通電を行う。モータ駆動回路160は、CPU110から供給される、後述する駆動指令に基づいて、ステッピングモータ176およびカッターモータ178を駆動する。 The head drive circuit 150 energizes or de-energizes a plurality of heat generating elements of the thermal head 172 based on print data supplied from the CPU 110, which will be described later. The motor drive circuit 160 drives the stepping motor 176 and the cutter motor 178 based on a drive command to be described later, which is supplied from the CPU 110.

ステッピングモータ176は、プラテン182を駆動する。プラテン182は、ステッピングモータ176の動力によって回転し、感熱用紙(被印刷媒体)Mをその長手方向(副走査方向、又は搬送方向)に搬送する。この搬送方向は、上記主走査方向と直交する方向である。すなわち、ステッピングモータ176は、感熱用紙(被印刷媒体)Mを搬送方向に搬送するための搬送モータである。なお、図示のステッピングモータ176は、そのステップ角度が可変なモータである。 The stepping motor 176 drives the platen 182. The platen 182 is rotated by the power of the stepping motor 176, and conveys the heat-sensitive paper (printed medium) M in the longitudinal direction (secondary scanning direction or conveying direction) thereof. This transport direction is a direction orthogonal to the main scanning direction. That is, the stepping motor 176 is a transport motor for transporting the thermal paper (printed medium) M in the transport direction. The stepping motor 176 shown in the figure is a motor having a variable step angle.

カッターモータ178は、カッター184を駆動する。カッター184は、カッターモータ178の動力によって上下動し、感熱用紙(被印刷媒体)Mをカットする。 The cutter motor 178 drives the cutter 184. The cutter 184 moves up and down by the power of the cutter motor 178 to cut the thermal paper (printed medium) M.

図3は、ROM120に記憶される印字制御プログラムおよびRAM130のメモリエリアの一例を示す図である。 FIG. 3 is a diagram showing an example of a print control program stored in the ROM 120 and a memory area of the RAM 130.

ROM120は、印字制御プログラムとして、印刷データ編集プログラム122と、ヘッド制御プログラム124と、モータ制御プログラム126とを記憶している。印刷データ編集プログラム122は、上位装置200からインターフェース140を介して受信した原画像データを、後述するように編集するためのプログラムである。ヘッド制御プログラム124は、後述するように、ヘッド駆動回路150を制御するためのプログラムである。モータ制御プログラム126は、後述するように、モータ駆動回路160を制御するためのプログラムである。 The ROM 120 stores a print data editing program 122, a head control program 124, and a motor control program 126 as print control programs. The print data editing program 122 is a program for editing the original image data received from the host device 200 via the interface 140 as described later. The head control program 124 is a program for controlling the head drive circuit 150, as will be described later. The motor control program 126 is a program for controlling the motor drive circuit 160, as will be described later.

尚、実際には、CPU110は、ROM120に記憶されたプログラムに従って所定の処理を実行するが、以下では、そのことを、単に、プログラムが所定の処理を実行するとも記載する。 In reality, the CPU 110 executes a predetermined process according to the program stored in the ROM 120, but in the following, it is also described that the program simply executes the predetermined process.

RAM130は、メモリエリアとして、第1の印刷データ編集メモリエリア132、第2の印刷データ編集メモリエリア134、および第3の印刷データ編集メモリエリア136を有している。 The RAM 130 has a first print data editing memory area 132, a second print data editing memory area 134, and a third print data editing memory area 136 as memory areas.

第1の印刷データ編集メモリエリア132は、上位装置200からインターフェース140を介して送られてくる原画像データを格納するためのエリアである。原画像データは、例えば、ビットマップ等の画像データである。第2の印刷データ編集メモリエリア134は、感熱用紙(被印刷媒体)Mに印刷すべき印刷データを、より高精細に印刷する為に、原画像データを伸張して得られた伸張画像データを保存するためのメモリアリアである。第3の印刷データ編集メモリエリア136は、その伸張画像データを更に、白抜き部分について再編集して得られた拡張編集画像データを保存するためのメモリエリアである。 The first print data editing memory area 132 is an area for storing the original image data sent from the host device 200 via the interface 140. The original image data is, for example, image data such as a bitmap. The second print data editing memory area 134 is a stretched image data obtained by stretching the original image data in order to print the print data to be printed on the heat-sensitive paper (printed medium) M with higher definition. A memory area for saving. The third print data editing memory area 136 is a memory area for storing the extended editing image data obtained by further re-editing the stretched image data with respect to the white portion.

続いて、図4を参照して、コントローラ105の機能構成について説明する。コントローラ105は、図4に示されるように、主制御部300と、RAM130と、ヘッド駆動回路150と、モータ駆動回路160とを備える。 Subsequently, the functional configuration of the controller 105 will be described with reference to FIG. As shown in FIG. 4, the controller 105 includes a main control unit 300, a RAM 130, a head drive circuit 150, and a motor drive circuit 160.

主制御部300は、サーマルプリンタ100(コントローラ105)の各構成部位を制御する。主制御部300は、例えば、図2に示した、CPU110およびROM120の組み合わせから成る。 The main control unit 300 controls each component of the thermal printer 100 (controller 105). The main control unit 300 includes, for example, a combination of the CPU 110 and the ROM 120 shown in FIG.

主制御部300は、機能的には、受信手段310、伸張手段320、印加エネルギー決定手段330、白抜き部分潰れ判定手段340、拡張編集手段350、ヘッド制御手段360、およびモータ制御手段370から成る。 The main control unit 300 functionally includes a receiving means 310, an expanding means 320, an applied energy determining means 330, a white portion crushing determining means 340, an extended editing means 350, a head control means 360, and a motor control means 370. ..

受信手段310は、上位装置200からインターフェース140を介して原画像データと印字濃度を示す信号とを受信する。受信手段310は、受信した原画像データを、RAM130の第1の印刷データ編集メモリエリア132に格納する。原画像データの具体例には後述する。 The receiving means 310 receives the original image data and the signal indicating the print density from the host device 200 via the interface 140. The receiving means 310 stores the received original image data in the first print data editing memory area 132 of the RAM 130. Specific examples of the original image data will be described later.

伸張手段320は、第1の印刷データ編集メモリエリア132に記憶されている原画像データを、搬送方向にN倍に伸張して、上記伸張画像データを生成する。ここで、Nは、2以上の整数であって、例えば、4に等しい。伸張手段320は、生成した伸張画像データを、RAM130の第2の印刷データ編集メモリエリア134に格納する。伸張画像データの具体例も後述する。 The stretching means 320 stretches the original image data stored in the first print data editing memory area 132 N times in the transport direction to generate the stretched image data. Here, N is an integer of 2 or more, and is equal to, for example, 4. The stretching means 320 stores the generated stretched image data in the second print data editing memory area 134 of the RAM 130. Specific examples of the stretched image data will also be described later.

印加エネルギー決定手段330は、サーマルヘッド172の温度と上記印字濃度とに基づいて、サーマルヘッド172に印加する印加エネルギーを決定する。 The applied energy determining means 330 determines the applied energy to be applied to the thermal head 172 based on the temperature of the thermal head 172 and the print density.

白抜き部分潰れ判定手段340は、この決定した印加エネルギーによる印加により、原画像データに含まれる白抜き部分が潰れるか否かを判定する。ここで、白抜き部分が潰れるか否かは、サーマルプリンタ100の開発時におけるサーマルヘッド172の特性等に鑑み、パラメータとしてヘッド制御プログラム124中に組み込まれる。 The white-out portion crushing determination means 340 determines whether or not the white-out portion crushed in the original image data is crushed by the application by the determined applied energy. Here, whether or not the white portion is crushed is incorporated in the head control program 124 as a parameter in consideration of the characteristics of the thermal head 172 at the time of development of the thermal printer 100.

拡張編集手段350は、白抜き部分潰れ判定手段340の判定結果が、白抜き部分が潰れることを示している場合に、伸張画像データに含まれる白抜き部分を搬送方向に所定の(M/N)ドット分だけ拡張編集して、上記拡張編集画像データを得る。ここで、Mは1以上、N以下の整数である。拡張編集手段350は、拡張編集画像データを、RAM130の第3の印刷データ編集メモリエリア136に格納する。拡張編集画像データの具体例も後述する。 When the determination result of the white-out portion crushing determination means 340 indicates that the white-out portion is crushed, the extended editing means 350 moves the white-out portion included in the stretched image data to a predetermined position (M / N) in the transport direction. ) The above-mentioned extended-edited image data is obtained by extended-editing by the number of dots. Here, M is an integer of 1 or more and N or less. The extended editing means 350 stores the extended editing image data in the third print data editing memory area 136 of the RAM 130. Specific examples of the extended edited image data will also be described later.

ヘッド制御手段360は、伸張画像データ及び拡張編集画像データの一方を、上記定結果に従って選択して、選択した画像データを印刷データとして上記決定した印加エネルギーに従って、ヘッド駆動回路150を介してサーマルヘッド172に供給する。 The head control means 360 selects one of the stretched image data and the extended edited image data according to the above-mentioned constant result, and uses the selected image data as print data according to the applied energy determined above, and the thermal head via the head drive circuit 150. Supply to 172.

モータ制御手段370は、原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、モータ駆動回路160を介してステッピングモータ176を駆動する。原ステップ角度θは、例えば、3.6度である。従って、Nが4に等しいとき、精細ステップ角度(θ/N)は、0.9度に等しい。 The motor control means 370 has a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of the original image data by (1 / N), via the motor drive circuit 160. Drives the stepping motor 176. The original step angle θ is, for example, 3.6 degrees. Therefore, when N is equal to 4, the fine step angle (θ / N) is equal to 0.9 degrees.

尚、モータ制御手段370は、モータ駆動回路160を介して、カッターモータ178も制御する。 The motor control means 370 also controls the cutter motor 178 via the motor drive circuit 160.

次に、図3に示されたROM120に記憶された印字制御プログラムと、図4に示した主制御部300の各手段との間の関係について説明する。 Next, the relationship between the print control program stored in the ROM 120 shown in FIG. 3 and each means of the main control unit 300 shown in FIG. 4 will be described.

ROM120に記憶された印刷データ編集プログラム122は、主制御部300の受信手段310、伸張手段320、白抜き部分潰れ判定手段340、および拡張編集手段350として働く。 The print data editing program 122 stored in the ROM 120 functions as a receiving means 310, an expanding means 320, a white portion crushing determining means 340, and an extended editing means 350 of the main control unit 300.

ROM120に記憶されたヘッド制御プログラム124は、主制御部300の印加エネルギー決定手段330とヘッド制御手段360との組み合わせして働く。すなわち、ヘッド制御プログラム124は、サーマルヘッド172の温度及び所望する黒印刷濃度からサーマルヘッド172への印加エネルギーを計算し制御する機能を有する。 The head control program 124 stored in the ROM 120 works in combination with the applied energy determining means 330 of the main control unit 300 and the head control means 360. That is, the head control program 124 has a function of calculating and controlling the energy applied to the thermal head 172 from the temperature of the thermal head 172 and the desired black print density.

ROM120に記憶されたモータ制御プログラム126は、主制御部300のモータ制御手段370として働く。すなわち、モータ制御プログラム126は、ステッピングモータ176を制御する機能を有する。 The motor control program 126 stored in the ROM 120 functions as the motor control means 370 of the main control unit 300. That is, the motor control program 126 has a function of controlling the stepping motor 176.

このように、印刷データ編集プログラム122とヘッド制御プログラム124とモータ制御プログラム126との組み合わせは、上記印字制御プログラムとして働く。 As described above, the combination of the print data editing program 122, the head control program 124, and the motor control program 126 works as the print control program.

次に、図5乃至図9を参照して、サーマルプリンタ100の動作について説明する。以下においては、Nが4に等しく、Mが1に等しく、原ステップ角度θが3.6度であるとして説明する。 Next, the operation of the thermal printer 100 will be described with reference to FIGS. 5 to 9. In the following, it will be described that N is equal to 4, M is equal to 1, and the original step angle θ is 3.6 degrees.

先ず、主制御部300の受信手段310は、上位装置200からビットマップ形式等の印刷を所望する原画像データを受信する(図5のステップS101)。そして、受信手段310は、この原画像データをRAM130の第1の印刷データ編集メモリエリア132に保存する。 First, the receiving means 310 of the main control unit 300 receives the original image data desired to be printed in a bitmap format or the like from the host device 200 (step S101 in FIG. 5). Then, the receiving means 310 stores the original image data in the first print data editing memory area 132 of the RAM 130.

図6は、原画像データの一例を示す図である。図示の原画像データは、横方向(主走査方向)4ドット、縦方向(搬送方向:副走査方向)7ドットのビットマップデータから成り、1ドットの白抜きがあるデータである。詳述すると、図6に示されるように、原画像データは、1ドット目〜3ドット目が黒ベタから成り、4ドット目が白抜きから成り、5ドット目〜7ドット目が黒ベタから成る、画像データである。 FIG. 6 is a diagram showing an example of original image data. The illustrated original image data is composed of bitmap data having 4 dots in the horizontal direction (main scanning direction) and 7 dots in the vertical direction (conveying direction: sub-scanning direction), and is data with 1 dot white. More specifically, as shown in FIG. 6, in the original image data, the 1st to 3rd dots are made of solid black, the 4th dot is made of white, and the 5th to 7th dots are made of solid black. It is image data.

引き続いて、主制御部300の伸張手段320は、第1の印刷データ編集メモリエリア132に保存した原画像データを、より高精細な印刷データに編集する前準備として搬送方向(縦方向)に4倍に伸張する(図5のステップS102)。伸張手段320は、その結果である伸張画像データを、RAM130の第2の印刷データ編集メモリエリア134に保存する Subsequently, the expanding means 320 of the main control unit 300 transfers the original image data stored in the first print data editing memory area 132 in the transport direction (vertical direction) 4 as a preparation for editing into higher-definition print data. It stretches twice (step S102 in FIG. 5). The stretching means 320 stores the resulting stretched image data in the second print data editing memory area 134 of the RAM 130.

詳述すると、伸張手段320は、まず、図7に示されるように、原画像データを搬送方向に4倍に伸張したデータを得た後、図8に示されるように、各ドット目の最初のライン以外を白抜きとして、伸張画像データを得る。 More specifically, the stretching means 320 first obtains data obtained by stretching the original image data four times in the transport direction, as shown in FIG. 7, and then, as shown in FIG. 8, the first of each dot. Stretched image data is obtained with the areas other than the lines shown in white being outlined.

次に、主制御部300の印加エネルギー決定手段330は、サーマルヘッド172に具備されるサーミスタ174で検知された温度と上位装置200から指示される印字濃度とからサーマルヘッド172へ印加する印加エネルギーを決定する(図5のステップS103)。 Next, the applied energy determining means 330 of the main control unit 300 determines the applied energy to be applied to the thermal head 172 from the temperature detected by the thermistor 174 provided in the thermal head 172 and the print density instructed by the host device 200. It is determined (step S103 in FIG. 5).

その際、主制御部300の白抜き部分潰れ判定手段340は、まず、FW(firmware)により白抜き部分が有るか否かを、原画像データを上端から下端までサーチすることにより判定する。そして、白抜き部分が有ることが認められた時に、白抜き部分潰れ判定手段340は、投入する印加エネルギーが、白抜き部分の潰れを侵す可能性があるか否かを判定する(図5のステップS104)。 At that time, the white-out portion crushing determination means 340 of the main control unit 300 first determines whether or not there is a white-out portion by FW (firmware) by searching the original image data from the upper end to the lower end. Then, when it is recognized that the white part is present, the white part crush determination means 340 determines whether or not the applied energy to be applied may invade the crush of the white part (FIG. 5). Step S104).

白抜き部分の潰れを侵す可能性がある印加エネルギー量であると判定された場合(図5のステップS105のY)、主制御部300の拡張編集手段350は、その白抜き部分について、第2の印刷データ編集メモリエリア134に保存されている伸張画像データについて、白抜き部分を微細に拡張編集する(図5のステップS106)。拡張編集手段350は、その結果である拡張編集画像データをRAM130の第3の印刷データ編集メモリエリア136に保存する。 When it is determined that the applied energy amount may invade the crushing of the white-out portion (Y in step S105 in FIG. 5), the extended editing means 350 of the main control unit 300 has the second white-out portion. The stretched image data stored in the print data editing memory area 134 of the above is finely expanded and edited in a white area (step S106 in FIG. 5). The extended editing means 350 stores the resulting extended edited image data in the third print data editing memory area 136 of the RAM 130.

図9は、拡張編集画像データの一例を示す図である。図9から明らかなように、拡張編集画像データは、4ドット目の白抜きを(1/4)ドット分だけ搬送方向に拡張編集して、5ドット目−1部分に拡張したデータである。これに伴い、5ドット目−1部分にあった黒ベタは、5ドット目−2部分に移動されている。 FIG. 9 is a diagram showing an example of extended edited image data. As is clear from FIG. 9, the extended editing image data is data obtained by expanding and editing the white outline of the 4th dot in the transport direction by (1/4) dots and expanding it to the 5th dot-1 portion. Along with this, the solid black that was in the 5th dot-1 part has been moved to the 5th dot-2 part.

引き続いて、主制御部300のヘッド制御手段360およびモータ制御手段370は、第3の印刷データ編集メモリエリア136に保存されている拡張編集画像データについて、それぞれ、ヘッド駆動回路150及びモータ駆動回路160に印字指示および駆動指示をする(図5のステップS107)。詳述すると、ヘッド制御手段360は、拡張編集画像データを印刷データとして決定した印加エネルギーに従って供給する印字指示をヘッド駆動回路150に送出する。モータ制御手段370は、原画像データの1ドット分を印刷するときに必要な原ステップ角度θ(3.6度)を、(1/4)倍にした精細ステップ角度θ/4(0.9度)で、ステッピングモータ176を駆動するような駆動指示を、モータ駆動回路160に送出する。 Subsequently, the head control means 360 and the motor control means 370 of the main control unit 300 refer to the head drive circuit 150 and the motor drive circuit 160 for the extended editing image data stored in the third print data editing memory area 136, respectively. A print instruction and a drive instruction are given to (step S107 in FIG. 5). More specifically, the head control means 360 sends a print instruction to the head drive circuit 150 to supply the extended edited image data according to the applied energy determined as the print data. The motor control means 370 has a fine step angle θ / 4 (0.9) obtained by multiplying the original step angle θ (3.6 degrees) required for printing one dot of the original image data by (1/4). A drive instruction for driving the stepping motor 176 is sent to the motor drive circuit 160.

上記印字指示及び駆動指示に従い、ヘッド駆動回路150及びモータ駆動回路160は、サーマルヘッド172及びステッピングモータ176を駆動することにより、感熱用紙(被印刷媒体)Mに印刷を行う。 According to the above print instruction and drive instruction, the head drive circuit 150 and the motor drive circuit 160 print on the thermal paper (printed medium) M by driving the thermal head 172 and the stepping motor 176.

この時、第3の印刷データ編集メモリエリア136に格納されている拡張編集画像データは、それまでの処理により、高精細印刷出来るよう4倍に伸張されている画像データであるので、ヘッド駆動回路150及びモータ駆動回路160は、4倍の精細さで印刷出来るように拡張編集画像データをサーマルヘッド172に出力し、印刷を行う。 At this time, the extended editing image data stored in the third print data editing memory area 136 is image data that has been stretched four times so that high-definition printing can be performed by the processing up to that point, so that the head drive circuit The 150 and the motor drive circuit 160 output the extended edited image data to the thermal head 172 so that the printing can be performed with four times the fineness, and print the data.

尚、白抜き部分の潰れを侵す可能性がある印加エネルギー量でないと判定された場合(図5のステップS105のN)、主制御部300のヘッド制御手段360およびモータ制御手段370は、第2の印刷データ編集メモリエリア134に保存されている伸張画像データについて、それぞれ、ヘッド駆動回路150及びモータ駆動回路160に印字指示及び駆動指示をする(図5のステップS107)。したがって、ヘッド制御手段360は、伸張画像データを印刷データとして決定した印加エネルギーに従って供給する印字指示をヘッド駆動回路150に送出する。 When it is determined that the applied energy amount does not have the possibility of invading the collapse of the white portion (N in step S105 in FIG. 5), the head control means 360 and the motor control means 370 of the main control unit 300 are second. For the stretched image data stored in the print data editing memory area 134 of the above, print instructions and drive instructions are given to the head drive circuit 150 and the motor drive circuit 160, respectively (step S107 in FIG. 5). Therefore, the head control means 360 sends a print instruction to the head drive circuit 150 to supply the stretched image data according to the applied energy determined as the print data.

次に、本実施形態の効果について説明する。 Next, the effect of this embodiment will be described.

第1の効果は、サーマルヘッド172を用いた印刷において、黒ベタ中の白抜き文字、ロゴ、横線等部分について、黒白明瞭な印刷をすることができることである。この理由は、白抜き部分を微細に拡張する編集した画像データを印刷するため、いくらかのサーマルヘッド172の余熱の冷却効果が期待されること、及び、印刷データとして、白部分がいくらか拡張されるので、白範囲が認識しやすくなり、潰れが認識しにくくなるからである。また、この時に懸念される原画像データから拡張編集画像データに対しての印刷結果の差分についても、微細な再編集が行われているものの人間が認識するにあたり、その印刷差が微細であるために、認識はされない。 The first effect is that in printing using the thermal head 172, it is possible to print clearly black and white on outline characters, logos, horizontal lines and the like in solid black. The reason for this is that since the edited image data that slightly expands the white part is printed, some cooling effect of the residual heat of the thermal head 172 is expected, and the white part is expanded to some extent as the print data. Therefore, the white range becomes easy to recognize, and the crushing becomes difficult to recognize. In addition, the difference in the print result from the original image data to the extended edited image data, which is a concern at this time, is also finely re-edited, but the print difference is so small that humans can recognize it. However, it is not recognized.

第2の効果は、サーマルヘッド172を用いた印刷では、印加する部分(黒印刷)、しない部分(白)を明瞭にすることを印加エネルギー量のバランスを制御することで実現するが、そのバランスを制御することが容易にできることである。 The second effect is realized by controlling the balance of the applied energy amount to clarify the applied part (black printing) and the non-applied part (white) in the printing using the thermal head 172. Is easy to control.

以上、本発明の実施形態について説明したが、本発明は、これらに限られるものではない。例えば、本発明は、これまで説明した実施の形態の一部又は全部を適宜組み合わせた形態、その形態に適宜変更を加えた形態をも含む。 Although the embodiments of the present invention have been described above, the present invention is not limited thereto. For example, the present invention also includes a form in which a part or all of the embodiments described above are appropriately combined, and a form in which the embodiment is appropriately modified.

上記実施形態では、プログラムにより原画像データを編集する例で示したが、ハードウェアにより、メモリに保存するデータをサーチすることにより、実現してもよい。 In the above embodiment, the example of editing the original image data by a program is shown, but it may be realized by searching the data to be stored in the memory by the hardware.

また、上記実施形態では、原画像データを4倍に伸張する例を示しているが、所望する精細さ等により、伸張する精度はいくらであってもよい。すなわち、Nは2以上であってよい。 Further, in the above embodiment, an example in which the original image data is stretched four times is shown, but the stretching accuracy may be any degree depending on the desired fineness and the like. That is, N may be 2 or more.

更に、上記実施形態では、白抜き部分について1/4ドット分拡張する例を示しているが、印加エネルギーが大きく1/4ドット分拡張では不十分な場合は、2/4ドットや、3/4ドットまで白抜き部分を拡張してもよい。 Further, in the above embodiment, an example of expanding the white portion by 1/4 dot is shown, but if the applied energy is large and the expansion by 1/4 dot is insufficient, 2/4 dot or 3/4 dot or 3/4 dot expansion is shown. The white portion may be expanded to 4 dots.

上記実施形態において、例えばサーマルプリンタ100の主制御部300が実行する印字制御プログラムは、あらかじめROM120等に記憶されていた。しかしながら、本発明は、これに限定されず、上記の各種処理を実行させるための印字制御プログラムを、既存の汎用コンピュータや、フレームワーク、ワークステーション等に実装することにより、上記実施形態に係るサーマルプリンタ100に相当する装置として機能させてもよい。 In the above embodiment, for example, the print control program executed by the main control unit 300 of the thermal printer 100 is stored in the ROM 120 or the like in advance. However, the present invention is not limited to this, and by implementing a print control program for executing the above-mentioned various processes on an existing general-purpose computer, a framework, a workstation, or the like, the thermal according to the above-described embodiment is provided. It may function as a device corresponding to the printer 100.

このようなプログラムの提供方法は任意であり、例えば、コンピュータが読取可能な記録媒体(フレキシブルディスク、CD(Compact Disc)−ROM、DVD(Digital Versatile Disc)−ROM)等に格納して配布してもよいし、インターネットをはじめとするネットワーク上のストレージにプログラムを格納しておき、これをダウンロードさせることにより提供してもよい。 The method of providing such a program is arbitrary, and is stored and distributed in, for example, a computer-readable recording medium (flexible disc, CD (Compact Disc) -ROM, DVD (Digital Versatile Disc) -ROM) or the like. Alternatively, the program may be stored in a storage on a network such as the Internet and provided by downloading the program.

本発明は、サーマルヘッドを利用して印刷する、プリンタ装置に適用できる。 The present invention can be applied to a printer device that prints using a thermal head.

12 ロール紙
14 搬送路面
16 第1の搬送ローラ
17 第2の搬送ローラ
100 サーマルプリンタ
105 コントローラ
110 CPU
120 ROM
122 印刷データ編集プログラム
124 ヘッド制御プログラム
126 モータ制御プログラム
130 RAM
132 第1の印刷データ編集メモリエリア
134 第2の印刷データ編集メモリエリア
136 第3の印刷データ編集メモリエリア
140 インターフェース
150 ヘッド駆動回路
160 モータ駆動回路
172 サーマルヘッド
174 サーミスタ(温度検出手段)
176 ステッピングモータ
178 カッターモータ
182 プラテン
184 カッター
200 上位装置
300 主制御部
310 受信手段
320 伸張手段
330 印加エネルギー決定手段
340 白抜き部分潰れ判定手段
350 拡張編集手段
360 ヘッド制御手段
370 モータ制御手段
M 感熱用紙(被印刷媒体)
12 Roll paper 14 Transport road surface 16 First transport roller 17 Second transport roller 100 Thermal printer 105 Controller 110 CPU
120 ROM
122 Print data editing program 124 Head control program 126 Motor control program 130 RAM
132 First print data editing memory area 134 Second print data editing memory area 136 Third print data editing memory area 140 Interface 150 Head drive circuit 160 Motor drive circuit 172 Thermal head 174 Thermistor (temperature detecting means)
176 Stepping motor 178 Cutter motor 182 Platen 184 Cutter 200 Upper device 300 Main control unit 310 Receiving means 320 Stretching means 330 Applied energy determination means 340 Whiteout part crushing judgment means 350 Extended editing means 360 Head control means 370 Motor control means M Heat-sensitive paper (Printed medium)

Claims (9)

主走査方向に配列された複数の発熱素子を有し、被印刷媒体に印刷を行うサーマルヘッドと、
該サーマルヘッドの温度を検出する温度検出手段と、
前記被印刷媒体を前記主走査方向と直交する搬送方向に搬送するためのステッピングモータであって、ステップ角度が可変な前記ステッピングモータと、
前記サーマルヘッドと前記ステッピングモータとを制御するコントローラと、
を備えるサーマルプリンタであって、
前記コントローラは、
上位装置から原画像データと印字濃度を示す信号とを受信する受信手段と、
前記原画像データを前記搬送方向にN(Nは2以上の整数)倍に伸張して、伸張画像データを生成する伸張手段と、
前記サーマルヘッドの温度と前記印字濃度とに基づいて、前記サーマルヘッドに印加する印加エネルギーを決定する決定手段と、
前記決定した印加エネルギーによる印加により、前記原画像データに含まれる白抜き部分が潰れるか否かを判定する判定手段と、
該判定手段の判定結果が、前記白抜き部分が潰れることを示している場合に、前記伸張画像データに含まれる前記白抜き部分を前記搬送方向に所定の(M/N)ドット(1≦M<N)分だけ拡張編集して、拡張編集画像データを得る拡張編集手段と、
前記伸張画像データ及び前記拡張編集画像データの一方を、前記判定結果に従って選択して、選択した画像データを印刷データとして前記決定した印加エネルギーに従って前記サーマルヘッドに供給するヘッド制御手段と、
前記原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、前記ステッピングモータを駆動するモータ制御手段と、
を備えるサーマルプリンタ。
A thermal head that has a plurality of heat generating elements arranged in the main scanning direction and prints on a printing medium, and a thermal head.
A temperature detecting means for detecting the temperature of the thermal head and
A stepping motor for transporting the printed medium in a transport direction orthogonal to the main scanning direction, the stepping motor having a variable step angle, and the stepping motor.
A controller that controls the thermal head and the stepping motor,
It is a thermal printer equipped with
The controller
A receiving means for receiving the original image data and a signal indicating the print density from the host device, and
A decompression means for generating decompressed image data by decompressing the original image data N (N is an integer of 2 or more) times in the transport direction.
A determination means for determining the applied energy applied to the thermal head based on the temperature of the thermal head and the print density, and
A determination means for determining whether or not the white portion included in the original image data is crushed by the application by the determined applied energy.
When the determination result of the determination means indicates that the white portion is crushed, the white portion included in the stretched image data is converted into a predetermined (M / N) dot (1 ≦ M) in the transport direction. <N) Extended editing means to obtain extended edited image data by performing extended editing by the amount of
A head control means that selects one of the stretched image data and the extended edited image data according to the determination result and supplies the selected image data as print data to the thermal head according to the determined applied energy.
A motor control means for driving the stepping motor at a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of the original image data by (1 / N).
A thermal printer equipped with.
前記Nが4に等しく、前記Mが1に等しい、請求項1に記載のサーマルプリンタ。 The thermal printer according to claim 1, wherein N is equal to 4 and M is equal to 1. 前記判定結果が、前記白抜き部分が潰れることを示しているとき、前記ヘッド制御手段は、前記選択した画像データとして前記拡張編集画像データを選択し、
前記判定結果が、前記白抜き部分が潰れないことを示しているとき、前記ヘッド制御手段は、前記選択した画像データとして前記伸張画像データを選択する、
請求項1又は2に記載のサーマルプリンタ。
When the determination result indicates that the white portion is crushed, the head control means selects the extended editing image data as the selected image data.
When the determination result indicates that the white portion is not crushed, the head control means selects the stretched image data as the selected image data.
The thermal printer according to claim 1 or 2.
サーマルプリンタにおける印字方法であって、
前記サーマルプリンタは、
主走査方向に配列された複数の発熱素子を有し、被印刷媒体に印刷を行うサーマルヘッドと、
該サーマルヘッドの温度を検出する温度検出手段と、
前記被印刷媒体を前記主走査方向と直交する搬送方向に搬送するためのステッピングモータであって、ステップ角度が可変な前記ステッピングモータと、
を備え、
前記印字方法は、
上位装置から原画像データと印字濃度を示す信号とを受信する受信ステップと、
前記原画像データを前記搬送方向にN(Nは2以上の整数)倍に伸張して、伸張画像データを生成する伸張ステップと、
前記サーマルヘッドの温度と前記印字濃度とに基づいて、前記サーマルヘッドに印加する印加エネルギーを決定する決定ステップと、
前記決定した印加エネルギーによる印加により、前記原画像データに含まれる白抜き部分が潰れるか否かを判定する判定ステップと、
該判定ステップの判定結果が、前記白抜き部分が潰れることを示している場合に、前記伸張画像データに含まれる前記白抜き部分を前記搬送方向に所定の(M/N)ドット(1≦M<N)分だけ拡張編集して、拡張編集画像データを得る拡張編集ステップと、
前記伸張画像データ及び前記拡張編集画像データの一方を、前記判定結果に従って選択して、選択した画像データを印刷データとして前記決定した印加エネルギーに従って前記サーマルヘッドに供給するヘッド制御ステップと、
前記原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、前記ステッピングモータを駆動するモータ制御ステップと、
を含むコントローラが実行する印字方法。
It is a printing method in a thermal printer.
The thermal printer is
A thermal head that has a plurality of heat generating elements arranged in the main scanning direction and prints on a printing medium, and a thermal head.
A temperature detecting means for detecting the temperature of the thermal head and
A stepping motor for transporting the printed medium in a transport direction orthogonal to the main scanning direction, the stepping motor having a variable step angle, and the stepping motor.
Equipped with
The printing method is
A reception step for receiving the original image data and a signal indicating the print density from the host device, and
A decompression step of expanding the original image data by N (N is an integer of 2 or more) times in the transport direction to generate decompressed image data, and a decompression step.
A determination step of determining the applied energy to be applied to the thermal head based on the temperature of the thermal head and the print density, and a determination step.
A determination step for determining whether or not the white portion included in the original image data is crushed by the application with the determined applied energy, and
When the determination result of the determination step indicates that the white area is crushed, the white area included in the stretched image data is converted into a predetermined (M / N) dot (1 ≦ M) in the transport direction. <N) An extended editing step to obtain extended editing image data by performing extended editing by the amount of
A head control step in which one of the stretched image data and the extended edited image data is selected according to the determination result, and the selected image data is supplied to the thermal head according to the determined applied energy as print data.
A motor control step for driving the stepping motor at a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of the original image data by (1 / N).
The printing method performed by the controller , including.
前記Nが4に等しく、前記Mが1に等しい、請求項4に記載のコントローラが実行する印字方法。 The printing method performed by the controller according to claim 4, wherein N is equal to 4 and M is equal to 1. 前記判定結果が、前記白抜き部分が潰れることを示しているとき、前記ヘッド制御ステップは、前記選択した画像データとして前記拡張編集画像データを選択し、
前記判定結果が、前記白抜き部分が潰れないことを示しているとき、前記ヘッド制御ステップは、前記選択した画像データとして前記伸張画像データを選択する、
請求項4又は5に記載のコントローラが実行する印字方法。
When the determination result indicates that the white portion is crushed, the head control step selects the extended editing image data as the selected image data.
When the determination result indicates that the white portion is not crushed, the head control step selects the stretched image data as the selected image data.
The printing method performed by the controller according to claim 4 or 5.
コンピュータにより、サーマルプリンタの印字を制御させる印字制御プログラムであって、
前記サーマルプリンタは、
主走査方向に配列された複数の発熱素子を有し、被印刷媒体に印刷を行うサーマルヘッドと、
該サーマルヘッドの温度を検出する温度検出手段と、
前記被印刷媒体を前記主走査方向と直交する搬送方向に搬送するためのステッピングモータであって、ステップ角度が可変な前記ステッピングモータと、
を備え、
前記印字制御プログラムは、前記コンピュータに、
上位装置から原画像データと印字濃度を示す信号とを受信する受信手順と、
前記原画像データを前記搬送方向にN(Nは2以上の整数)倍に伸張して、伸張画像データを生成する伸張手順と、
前記サーマルヘッドの温度と前記印字濃度とに基づいて、前記サーマルヘッドに印加する印加エネルギーを決定する決定手順と、
前記決定した印加エネルギーによる印加により、前記原画像データに含まれる白抜き部分が潰れるか否かを判定する判定手順と、
該判定手順の判定結果が、前記白抜き部分が潰れることを示している場合に、前記伸張画像データに含まれる前記白抜き部分を前記搬送方向に所定の(M/N)ドット(1≦M<N)分だけ拡張編集して、拡張編集画像データを得る拡張編集手順と、
前記伸張画像データ及び前記拡張編集画像データの一方を、前記判定結果に従って選択して、選択した画像データを印刷データとして前記決定した印加エネルギーに従って前記サーマルヘッドに供給するヘッド制御手順と、
前記原画像データの1ドット分を印刷するときに必要な原ステップ角度θを(1/N)倍にした精細ステップ角度(θ/N)で、前記ステッピングモータを駆動するモータ制御手順と、
を実行させる、印字制御プログラム。
A print control program that controls the printing of a thermal printer by a computer.
The thermal printer is
A thermal head that has a plurality of heat generating elements arranged in the main scanning direction and prints on a printing medium, and a thermal head.
A temperature detecting means for detecting the temperature of the thermal head and
A stepping motor for transporting the printed medium in a transport direction orthogonal to the main scanning direction, the stepping motor having a variable step angle, and the stepping motor.
Equipped with
The print control program is applied to the computer.
The reception procedure for receiving the original image data and the signal indicating the print density from the host device, and
A decompression procedure for generating decompressed image data by decompressing the original image data N (N is an integer of 2 or more) times in the transport direction, and a decompression procedure.
A determination procedure for determining the applied energy to be applied to the thermal head based on the temperature of the thermal head and the print density, and a determination procedure.
A determination procedure for determining whether or not the white portion included in the original image data is crushed by the application with the determined applied energy, and the determination procedure.
When the determination result of the determination procedure indicates that the white area is crushed, the white area included in the stretched image data is converted into a predetermined (M / N) dot (1 ≦ M) in the transport direction. <N) Extended editing procedure to obtain extended edited image data by performing extended editing by the amount, and
A head control procedure in which one of the stretched image data and the extended edited image data is selected according to the determination result, and the selected image data is supplied to the thermal head according to the determined applied energy as print data.
A motor control procedure for driving the stepping motor at a fine step angle (θ / N) obtained by multiplying the original step angle θ required for printing one dot of the original image data by (1 / N).
A print control program that executes.
前記Nが4に等しく、前記Mが1に等しい、請求項7に記載の印字制御プログラム。 The print control program according to claim 7, wherein N is equal to 4 and M is equal to 1. 前記判定結果が、前記白抜き部分が潰れることを示しているとき、前記ヘッド制御手順は、前記選択した画像データとして前記拡張編集画像データを選択し、
前記判定結果が、前記白抜き部分が潰れないことを示しているとき、前記ヘッド制御手順は、前記選択した画像データとして前記伸張画像データを選択する、
請求項7又は8に記載の印字制御プログラム。
When the determination result indicates that the white portion is crushed, the head control procedure selects the extended edited image data as the selected image data.
When the determination result indicates that the white portion is not crushed, the head control procedure selects the stretched image data as the selected image data.
The print control program according to claim 7 or 8.
JP2019020283A 2019-02-07 2019-02-07 Thermal printer, printing method, and printing control program Active JP6989139B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019020283A JP6989139B2 (en) 2019-02-07 2019-02-07 Thermal printer, printing method, and printing control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019020283A JP6989139B2 (en) 2019-02-07 2019-02-07 Thermal printer, printing method, and printing control program

Publications (2)

Publication Number Publication Date
JP2020128011A JP2020128011A (en) 2020-08-27
JP6989139B2 true JP6989139B2 (en) 2022-01-05

Family

ID=72174032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019020283A Active JP6989139B2 (en) 2019-02-07 2019-02-07 Thermal printer, printing method, and printing control program

Country Status (1)

Country Link
JP (1) JP6989139B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7809949B2 (en) * 2021-11-08 2026-02-03 ブラザー工業株式会社 Print data editing device, print data editing method, and print data editing program

Also Published As

Publication number Publication date
JP2020128011A (en) 2020-08-27

Similar Documents

Publication Publication Date Title
US8619321B2 (en) Recording control device and recording control method
CN100553991C (en) Double-sided printing system and control method thereof
JP2009286073A (en) Printer and its control method
CN107323096A (en) The control method of printer and printer
JP2629516B2 (en) Tape printer
JP6989139B2 (en) Thermal printer, printing method, and printing control program
US6821037B2 (en) Printing device provided with cutter to cut recording paper
JP6812809B2 (en) Image formation system, image formation device, and image formation control program
JP3713955B2 (en) Printing device
KR100754200B1 (en) Image forming method and apparatus for borderless printing
JP2011173278A (en) Bar code printer
JPWO2020245869A1 (en) Thermal printer and printing method
JP7499086B2 (en) Thermal printer and program
US12106165B2 (en) Printing apparatus
JP2000127368A (en) Recording apparatus and recording operation control method
JPH07156500A (en) Tape printer
JP2021163075A (en) Editing device, printing system, and editing method
JP3050469B2 (en) Tape printer
JP2005132063A (en) Thermal printer
JP3031158B2 (en) Printing device
JP6544470B2 (en) Label issuing device and label printing method
JP6599073B1 (en) Thermal printer and printing method
JP2000127367A (en) Recording apparatus and recording operation control method
JP2011104854A (en) Printer
JPH06320796A (en) Method and apparatus for image processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200604

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210618

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211102

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211125

R150 Certificate of patent or registration of utility model

Ref document number: 6989139

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150