JP2017119412A - Printer and control method - Google Patents

Printer and control method Download PDF

Info

Publication number
JP2017119412A
JP2017119412A JP2016034499A JP2016034499A JP2017119412A JP 2017119412 A JP2017119412 A JP 2017119412A JP 2016034499 A JP2016034499 A JP 2016034499A JP 2016034499 A JP2016034499 A JP 2016034499A JP 2017119412 A JP2017119412 A JP 2017119412A
Authority
JP
Japan
Prior art keywords
head
print
deterioration
print data
value
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
JP2016034499A
Other languages
Japanese (ja)
Other versions
JP6679982B2 (en
Inventor
英樹 西村
Hideki Nishimura
英樹 西村
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of JP2017119412A publication Critical patent/JP2017119412A/en
Application granted granted Critical
Publication of JP6679982B2 publication Critical patent/JP6679982B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Electronic Switches (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printer or the like which detects deterioration of a printing part, adequately recognizes a deterioration state before failure, and can continue appropriate printing without interrupting printing.SOLUTION: A printer includes a print head having a plurality of head elements, a storage part for storing initial information indicating an initial state of the respective head elements, an inspection control part for acquiring an index value for determining a deterioration state of the respective head elements, and a print control part for making the print head execute printing in accordance with received print data. The inspection control part determines deterioration of the respective head elements based on the initial information stored in the storage part and the acquired index value. The print control part changes the print data based on the above determination, and makes the print head execute printing in accordance with the changed print data.SELECTED DRAWING: Figure 1

Description

本発明は、印刷部の劣化を検出する印刷装置等に関し、特に、故障する前の劣化状況を適確に把握し、且つ、印刷を中断させることなく適正な印刷を継続することのできる印刷装置等に関する。   BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus that detects deterioration of a printing unit, and in particular, a printing apparatus that can accurately grasp a deterioration state before failure and can continue proper printing without interrupting printing. Etc.

従来、レシートなどの印刷においてサーマル式のプリンターが普及している。かかるサーマルプリンターは、印刷ヘッドに複数のヘッド素子を備え、それらのヘッド素子に電圧を印加することによってヘッド素子の抵抗要素(発熱体)を発熱させ、用紙に印刷を行う。従って、このようなプリンターではヘッド素子に不良があると印刷品質が低下し好ましくない。   Conventionally, thermal printers are widely used for printing receipts and the like. Such a thermal printer includes a plurality of head elements in a print head, and applies a voltage to these head elements to cause the resistance elements (heating elements) of the head elements to generate heat, thereby printing on paper. Accordingly, in such a printer, if the head element is defective, the print quality is undesirably lowered.

下記特許文献1では、サーマルヘッドの不良検出方法が提案され、発熱素子の抵抗値を用いてその最大値と最小値に基づきヘッドの良・不良を判断することが開示されている。   Japanese Patent Application Laid-Open No. 2005-228561 proposes a thermal head defect detection method, and discloses that the resistance value of a heating element is used to determine whether a head is good or defective based on its maximum value and minimum value.

特開2000−141730号公報JP 2000-141730 A

しかしながら、上記特許文献1に記載の方法では、ヘッド素子の良・不良の検出であり、ヘッド素子の劣化の進行状態を把握することはできない。従って、不良が検出された場合には、ヘッド素子を交換しなければ適正な印刷ができず、印刷を中断せざるを得ない。更に、印刷再開には時間がかかるという課題がある。   However, with the method described in Patent Document 1, it is possible to detect the quality of the head element and the progress of the deterioration of the head element. Therefore, when a defect is detected, proper printing cannot be performed unless the head element is replaced, and printing must be interrupted. Furthermore, there is a problem that it takes time to resume printing.

特に、販売店等で用いられるレシートプリンターなどにおいては、レシートに印刷されるバーコードがかすれてしまうような印刷不良は避けられなければならず、ヘッド素子を不良になる前の適切なタイミングで交換できるようにすることが望まれる。すなわち、ヘッド素子の劣化状態をよりきめ細かく検査できる技術が望まれる。   In particular, in receipt printers used at retail stores, etc., printing defects that cause the barcode printed on the receipt to be faint must be avoided, and the head element is replaced at an appropriate timing before it becomes defective. It is desirable to be able to do this. That is, a technique capable of inspecting the deterioration state of the head element more precisely is desired.

そこで、本発明の目的は、印刷部の劣化を検出する印刷装置であって、故障する前の劣化状況を適確に把握し、且つ、印刷を中断させることなく適正な印刷を継続することのできる印刷装置、等を提供することである。   Accordingly, an object of the present invention is a printing apparatus that detects deterioration of a printing unit, accurately grasping a deterioration state before a failure, and continuing proper printing without interrupting printing. It is to provide a printing device that can be used.

上記の目的を達成するために、本発明の一つの側面は、複数のヘッド素子を備える印刷ヘッドと、前記各ヘッド素子の初期状態を示す初期情報を記憶する記憶部と、前記各ヘッド素子の劣化状況を判断するための指標値を取得する検査制御部と、受信した印刷データに従って前記印刷ヘッドに印刷を実行させる印刷制御部と、を備える印刷装置において、前記検査制御部は、前記記憶部に記憶された初期情報と、前記取得した指標値に基づいて前記各ヘッド素子の劣化を判断し、前記印刷制御部は、上記判断に基づいて、前記印刷データを変更し、当該変更された印刷データに従って前記印刷ヘッドに印刷を実行させる、ことである。   In order to achieve the above object, one aspect of the present invention provides a print head including a plurality of head elements, a storage unit that stores initial information indicating an initial state of each head element, and each head element. In the printing apparatus, comprising: an inspection control unit that acquires an index value for determining a deterioration state; and a print control unit that causes the print head to execute printing according to the received print data, the inspection control unit includes the storage unit And determining the deterioration of each head element based on the acquired index value, and the print control unit changes the print data based on the determination, and the changed print Causing the print head to perform printing according to the data.

これにより、初期状態を示す初期情報と取得された指標値に基づいて劣化を判断するので、各ヘッド素子の劣化状態を適確に把握できる。更に、劣化判断の結果に基づいて、印刷データが変更されるので、印刷を中断させることなく適正な印刷を継続することができる。   Thereby, since the deterioration is determined based on the initial information indicating the initial state and the acquired index value, the deterioration state of each head element can be accurately grasped. Furthermore, since the print data is changed based on the result of the deterioration determination, it is possible to continue proper printing without interrupting printing.

更に、上記発明において、その好ましい態様は、前記印刷制御部による印刷データの変更は、シンボル画像の印刷データの変更である、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect thereof is characterized in that the change of the print data by the print control unit is a change of the print data of the symbol image.

これにより、情報の読取りが必要な画像について適正な印刷が可能となる。   As a result, it is possible to appropriately print an image that needs to be read.

更に、上記発明において、その一つの態様は、前記シンボル画像の印刷データの変更は、バーコードの画像を2次元コードの画像に変更する印刷データの変更である、ことを特徴とする。   Furthermore, in the above-described invention, one aspect thereof is characterized in that the change of the print data of the symbol image is a change of print data for changing a barcode image into a two-dimensional code image.

これにより、情報の読取りが可能な適正な印刷を実行することができる。   As a result, it is possible to execute proper printing capable of reading information.

更にまた、上記発明において、その好ましい一つの態様は、前記シンボル画像の印刷データの変更は、バーコードの画像の位置を変更する印刷データの変更である、ことを特徴とする。   Furthermore, in the above invention, one preferable aspect thereof is characterized in that the change of the print data of the symbol image is a change of the print data for changing the position of the barcode image.

これにより、情報の読取りが可能な適正な印刷を実行することができる。   As a result, it is possible to execute proper printing capable of reading information.

更に、上記発明において、その好ましい一つの態様は、前記シンボル画像の印刷データの変更は、バーコードの画像の角度を変更する印刷データの変更である、ことを特徴とする。   Furthermore, in the above-mentioned invention, one preferable aspect thereof is characterized in that the change of the print data of the symbol image is a change of print data for changing the angle of the barcode image.

これにより、情報の読取りが可能な適正な印刷を実行することができる。   As a result, it is possible to execute proper printing capable of reading information.

更に、上記発明において、その好ましい一つの態様は、前記シンボル画像の印刷データの変更は、バーコードの画像のサイズを変更する印刷データの変更である、ことを特徴とする。   Furthermore, in the above-mentioned invention, one preferable aspect thereof is characterized in that the change of the print data of the symbol image is a change of the print data for changing the size of the barcode image.

これにより、情報の読取りが可能な適正な印刷を実行することができる。   As a result, it is possible to execute proper printing capable of reading information.

更に、上記発明において、その好ましい一つの態様は、前記シンボル画像の印刷データの変更は、バーコードの画像に文字を付加する印刷データの変更である、ことを特徴とする。   Further, in the above invention, a preferable aspect thereof is characterized in that the change of the print data of the symbol image is a change of print data for adding characters to the barcode image.

これにより、情報の読取りが可能な適正な印刷を実行することができる。   As a result, it is possible to execute proper printing capable of reading information.

上記の目的を達成するために、本発明の別の側面は、複数のヘッド素子を備える印刷ヘッドと、前記各ヘッド素子の初期状態を示す初期情報を記憶する記憶部と、前記各ヘッド素子の劣化状況を判断するための指標値を取得する検査制御部と、受信した印刷データに従って前記印刷ヘッドに印刷を実行させる印刷制御部と、を備える印刷装置の制御方法において、前記検査制御部は、前記記憶部に記憶された初期情報と、前記取得した指標値に基づいて前記各ヘッド素子の劣化を判断し、前記印刷制御部は、上記判断に基づいて、前記印刷データを変更し、当該変更された印刷データに従って前記印刷ヘッドに印刷を実行させる、ことである。   In order to achieve the above object, another aspect of the present invention provides a print head including a plurality of head elements, a storage unit that stores initial information indicating an initial state of each head element, and each of the head elements. In the control method of a printing apparatus comprising: an inspection control unit that acquires an index value for determining a deterioration state; and a print control unit that causes the print head to execute printing according to received print data, the inspection control unit includes: The deterioration of each head element is determined based on the initial information stored in the storage unit and the acquired index value, and the print control unit changes the print data based on the determination, and the change Printing the print head according to the print data.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   Further objects and features of the present invention will become apparent from the embodiments of the invention described below.

本発明を適用した印刷装置の第1の実施の形態例に係る構成図である。1 is a configuration diagram according to a first exemplary embodiment of a printing apparatus to which the present invention is applied. FIG. 電圧印加回路25とサーマルヘッド26の一例を示した回路図である。3 is a circuit diagram showing an example of a voltage application circuit 25 and a thermal head 26. FIG. 初期設定処理の手順を例示したフローチャートである。It is the flowchart which illustrated the procedure of the initial setting process. 分圧電圧と抵抗値変化率の関係を示すグラフである。It is a graph which shows the relationship between a divided voltage and a resistance value change rate. 仮の変換テーブルを例示した図である。It is the figure which illustrated the temporary conversion table. 劣化判断処理の手順を例示したフローチャートである。It is the flowchart which illustrated the procedure of the degradation judgment process. データ記憶部24に保存する劣化情報の一例である。4 is an example of deterioration information stored in a data storage unit 24. 印刷制御処理の手順を例示したフローチャートである。6 is a flowchart illustrating a procedure of print control processing. 印刷データのシフトを説明するための図である。FIG. 6 is a diagram for explaining a shift of print data. HRI文字の付加を例示した図である。It is the figure which illustrated addition of the HRI character. HRI文字の付加を例示した図である。It is the figure which illustrated addition of the HRI character. バーコードの角度と高さの変更を例示した図である。It is the figure which illustrated change of the angle and height of a barcode. バーコードの角度と高さの変更を例示した図である。It is the figure which illustrated change of the angle and height of a barcode. 分圧電圧値(AD値)と抵抗値(Rhead)の関係を示すグラフである。It is a graph which shows the relationship between a divided voltage value (AD value) and resistance value (Rhead). 変換テーブルCTの一例を示した図である。It is the figure which showed an example of the conversion table CT. 初期値取得処理の手順を例示したフローチャートである。It is the flowchart which illustrated the procedure of the initial value acquisition process. 状態値取得処理の手順を例示したフローチャートである。It is the flowchart which illustrated the procedure of the state value acquisition process. 劣化情報取得処理の手順を例示したフローチャートである。It is the flowchart which illustrated the procedure of the degradation information acquisition process. 劣化情報の一例を示した図である。It is the figure which showed an example of deterioration information. 状態値の取得と劣化情報の取得を連続して行う場合の手順を示したフローチャートである。It is the flowchart which showed the procedure in the case of acquiring acquisition of a state value and acquisition of deterioration information continuously.

以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。   Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar elements are denoted by the same reference numerals or reference symbols.

[第1の実施の形態例]
図1は、本発明を適用した印刷装置の第1の実施の形態例に係る構成図である。図1に示すプリンター2が本発明を適用した印刷装置であり、本プリンター2では、初回起動時等に、そのサーマルヘッド26(印刷ヘッド)に備えられるヘッド素子(RH−1〜RH−n)の初期状態を示す情報(初期情報、例えば、分圧電圧値、抵抗値変化率等)を記憶しておき、その後、所定のタイミングで、ヘッド素子(RH−1〜RH−n)の劣化状態を示す指標値(抵抗値分圧電圧値等)を取得し、その取得した指標値と記憶しておいた初期情報に基づいて各ヘッド素子(RH−1〜RH−n)の劣化状態を判定する。さらに、本プリンター2は、その判定結果に基づいて、印刷時に印刷データを適宜変更して印刷処理を実行する。
[First Embodiment]
FIG. 1 is a configuration diagram according to a first embodiment of a printing apparatus to which the present invention is applied. The printer 2 shown in FIG. 1 is a printing apparatus to which the present invention is applied. In the printer 2, the head elements (RH-1 to RH-n) provided in the thermal head 26 (printing head) at the first startup or the like. Information (initial information, for example, divided voltage value, resistance value change rate, etc.) indicating the initial state of the head element (RH-1 to RH-n) is then deteriorated at a predetermined timing. Is obtained, and the deterioration state of each head element (RH-1 to RH-n) is determined based on the obtained index value and the stored initial information. To do. Further, the printer 2 executes print processing by appropriately changing print data at the time of printing based on the determination result.

これにより、各ヘッド素子(RH−1〜RH−n)が完全に不良になる前の劣化状態を適確に把握することができ、ヘッド素子(RH−1〜RH−n)が故障して印刷を中断せざるを得ない状況を避けることができる。また、ヘッド素子の劣化が進んでいる状況でも、バーコードなど正確に読取りを行いたいシンボル画像等については、読取りが可能なように印刷データを変更してから印刷を行うことができる。   Thereby, it is possible to accurately grasp the deterioration state before each head element (RH-1 to RH-n) is completely defective, and the head elements (RH-1 to RH-n) are broken. It is possible to avoid a situation where printing must be interrupted. Further, even in a situation where the head element is being deteriorated, a symbol image or the like that is to be read accurately such as a barcode can be printed after changing the print data so that it can be read.

図1に示すように、本実施の形態例では、プリンター2はPOS(Point Of Sales)端末装置1からの印刷命令によりレシート等を印刷する印刷装置である。POS端末装置1及びプリンター2は、それぞれ、インターネットなどの通信網4を介して劣化管理サーバー3と通信可能に構成される。POS端末装置1とプリンター2でプリンターシステム100(印刷システム)を構成することができ、また、POS端末装置1とプリンター2と劣化管理サーバー3で、あるいは、プリンター2と劣化管理サーバー3で、劣化管理システム200(印刷システム)を構成することができる。   As shown in FIG. 1, in the present embodiment, the printer 2 is a printing apparatus that prints a receipt or the like in accordance with a print command from a POS (Point Of Sales) terminal device 1. The POS terminal device 1 and the printer 2 are each configured to be able to communicate with the deterioration management server 3 via a communication network 4 such as the Internet. The printer system 100 (printing system) can be configured by the POS terminal device 1 and the printer 2, and the deterioration is made by the POS terminal device 1 and the printer 2 and the deterioration management server 3, or by the printer 2 and the deterioration management server 3. A management system 200 (printing system) can be configured.

なお、図示していないが、通信網4には、複数のプリンターシステム100、POSサーバー等が接続され得る。   Although not shown, a plurality of printer systems 100, a POS server, and the like can be connected to the communication network 4.

POS端末装置1は、販売店などに設置されるいわゆるレジであり、プリンター2にレシート等の印刷命令を行うプリンター2のホスト装置である。POS端末装置1は、図示していないが、CPU、RAM、ROM、表示装置、入力装置(バーコードリーダーなど)、通信装置等を備え、商品販売時における精算処理等を実行する。また、後述の通り、POS端末装置1が、プリンター2のヘッド素子(RH−1〜RH−n)の劣化管理を行ってもよい。   The POS terminal device 1 is a so-called cash register installed in a store or the like, and is a host device of the printer 2 that issues a print instruction such as a receipt to the printer 2. Although not shown, the POS terminal device 1 includes a CPU, a RAM, a ROM, a display device, an input device (such as a barcode reader), a communication device, and the like, and executes a checkout process at the time of product sales. Further, as will be described later, the POS terminal device 1 may perform deterioration management of the head elements (RH-1 to RH-n) of the printer 2.

図1に示す通り、POS端末装置1は、機能構成としてPOSアプリケーション部11、プリンタードライバー部12、及び、劣化管理部13を備える。   As shown in FIG. 1, the POS terminal device 1 includes a POS application unit 11, a printer driver unit 12, and a deterioration management unit 13 as functional configurations.

POSアプリケーション部11は、商品販売時の精算処理、レシート・クーポンの印刷要求、図示していないPOSサーバーへのデータ送信等を担う部分である。印刷要求時には、印刷要求データをプリンタードライバー部12に出力する。   The POS application unit 11 is a part responsible for checkout processing at the time of product sales, receipt / coupon print request, data transmission to a POS server (not shown), and the like. When printing is requested, print request data is output to the printer driver unit 12.

プリンタードライバー部12は、レシートプリンター2用のドライバー機能を担う部分である。プリンタードライバー部12は、POSアプリケーション部11から出力された印刷要求データを受信し、その印刷要求データに従ってプリンター2用のコマンドで表現された印刷データを生成し、プリンター2へ送信する。   The printer driver unit 12 is a part that performs a driver function for the receipt printer 2. The printer driver unit 12 receives the print request data output from the POS application unit 11, generates print data expressed by a command for the printer 2 according to the print request data, and transmits the print data to the printer 2.

劣化管理部13は、プリンター2のヘッド素子(RH−1〜RH−n)の劣化管理を行う部分である。具体的な機能については後述する。   The deterioration management unit 13 is a part that performs deterioration management of the head elements (RH-1 to RH-n) of the printer 2. Specific functions will be described later.

なお、POSアプリケーション部11、プリンタードライバー部12、及び、劣化管理部13は、それぞれ、各処理内容を指示するプログラム、当該プログラムによって動作するCPU、RAM等によって構成される。   The POS application unit 11, the printer driver unit 12, and the deterioration management unit 13 are each configured by a program that instructs each processing content, a CPU that operates according to the program, a RAM, and the like.

次に、劣化管理サーバー3は、プリンター2など管理対象のプリンターの劣化に関する情報を管理するサーバーである。図視していないが、劣化管理サーバー3は、サーバーコンピューターで構成され、CPU、RAM、ROM、HDD、表示装置、入力装置、通信装置等を備える。劣化管理サーバー3の具体的な機能については後述する。   Next, the deterioration management server 3 is a server that manages information related to deterioration of a printer to be managed such as the printer 2. Although not shown, the degradation management server 3 is composed of a server computer and includes a CPU, RAM, ROM, HDD, display device, input device, communication device, and the like. Specific functions of the deterioration management server 3 will be described later.

次に、プリンター2は、POS端末装置1の命令に従って(印刷データに従って)レシート・クーポン等を印刷する、ラインヘッドを備えたサーマルプリンターである。プリンター2は、印刷媒体(ロール状の用紙等)に印刷対象を印刷し、印刷が完了するとカッターにより用紙を切断し、排出する。   Next, the printer 2 is a thermal printer including a line head that prints a receipt, a coupon, or the like according to an instruction from the POS terminal device 1 (according to print data). The printer 2 prints an object to be printed on a print medium (rolled paper or the like), and when printing is completed, the paper is cut by a cutter and discharged.

また、プリンター2は、いわゆるインテリジェントプリンターと呼ばれるものであり、一般的なプリンターにおける印刷制御を行う制御装置のほかに、パーソナルコンピューターと同様のデータ処理装置(演算装置)を備える。   The printer 2 is a so-called intelligent printer, and includes a data processing device (arithmetic device) similar to a personal computer in addition to a control device that performs printing control in a general printer.

プリンター2は、図1に示すような機能構成を備える。通信部21は、外部装置と通信を行う通信装置であり、POS端末装置1、劣化管理サーバー3などとの通信機能を担う。   The printer 2 has a functional configuration as shown in FIG. The communication unit 21 is a communication device that communicates with an external device, and has a communication function with the POS terminal device 1, the degradation management server 3, and the like.

メイン制御部22は、後述するヘッド制御部23が担う制御機能以外の制御機能を担う、プリンター2のメインコントローラーである。上述したパーソナルコンピューターと同様のデータ処理装置(演算装置)で構成される。なお、メイン制御部22とヘッド制御部23は別体でも一体でもよい。   The main control unit 22 is a main controller of the printer 2 that has a control function other than the control function of the head control unit 23 described later. The data processing device (arithmetic device) is the same as the personal computer described above. The main control unit 22 and the head control unit 23 may be separate or integrated.

ヘッド制御部23は、サーマルヘッド26及び電圧印加回路25を制御し、印刷媒体に印刷を実行させると共に、サーマルヘッド26が備えるヘッド素子(RH−1〜RH−n)の劣化状態を検査する処理を行う。図1に示されるように、ヘッド制御部23は、印刷制御部28と検査部27を備え、印刷制御部28は上記印刷の制御を担い、検査部27は上記ヘッド素子の検査の機能を担う。   The head control unit 23 controls the thermal head 26 and the voltage application circuit 25 to execute printing on the print medium, and inspects the deterioration state of the head elements (RH-1 to RH-n) included in the thermal head 26. I do. As shown in FIG. 1, the head control unit 23 includes a print control unit 28 and an inspection unit 27. The print control unit 28 controls the printing, and the inspection unit 27 functions to inspect the head element. .

ヘッド制御部23(印刷制御部28、検査部27(検査制御部))は、CPU、RAM、ROM、ASIC等で構成され、主にROMに記憶されたプログラムに従ってCPUが動作することにより、処理を実行する。ヘッド制御部23による具体的な処理内容は後述する。   The head control unit 23 (print control unit 28, inspection unit 27 (inspection control unit)) includes a CPU, a RAM, a ROM, an ASIC, and the like, and the processing is performed by the CPU operating mainly according to programs stored in the ROM. Execute. Specific processing contents by the head controller 23 will be described later.

データ記憶部24(記憶部)、ヘッド制御部23(検査部27)による、上述したヘッド素子(RH−1〜RH−n)の劣化状態の検査に関するデータ、情報を記憶する部分である。データ記憶部24は、後述する仮の変換テーブル、各ヘッド素子(RH−1〜RH−n)の初期情報としての変換テーブル、及び、劣化情報(ヘッド素子(の識別)番号とそのヘッド素子の劣化度合(抵抗値変化率)、等)等のデータを記憶する。なお、データ記憶部24は、NVRAMなどで構成することができる。   This is a part for storing data and information related to the inspection of the deterioration state of the head elements (RH-1 to RH-n) described above by the data storage unit 24 (storage unit) and the head control unit 23 (inspection unit 27). The data storage unit 24 includes a provisional conversion table to be described later, a conversion table as initial information of each head element (RH-1 to RH-n), and deterioration information (head element (identification) number and its head element). Data such as the degree of deterioration (resistance value change rate) and the like are stored. The data storage unit 24 can be composed of NVRAM or the like.

電圧印加回路25は、サーマルヘッド26に電圧を印加する回路である。電圧印加回路25は、電圧値の異なる2つの電源(24V、3.3V)を備え、印刷実行時には印刷用電圧(24V)をサーマルヘッド26に印加し、ヘッド素子(RH−1〜RH−n)の検査実行時には検査用電圧(3.3V)をサーマルヘッド26に印加する。   The voltage application circuit 25 is a circuit that applies a voltage to the thermal head 26. The voltage application circuit 25 includes two power supplies (24V, 3.3V) having different voltage values, and applies a printing voltage (24V) to the thermal head 26 when printing is performed, and the head elements (RH-1 to RH-n). The inspection voltage (3.3 V) is applied to the thermal head 26 at the time of inspection.

サーマルヘッド26(印刷ヘッド)は、複数のヘッド素子(RH−1〜RH−n)とそれらの選択部を備える。印刷実行時には、選択部によって選択されたヘッド素子(RH−1〜RH−n)に印刷用電圧が印加され、そのヘッド素子の発熱体(抵抗要素)が発熱し印刷媒体に印刷がなされる。また、ヘッド素子(RH−1〜RH−n)の検査実行時には、選択部によって選択されたヘッド素子(RH−1〜RH−n)に検査用電圧が印加される。   The thermal head 26 (printing head) includes a plurality of head elements (RH-1 to RH-n) and their selection units. When printing is performed, a printing voltage is applied to the head elements (RH-1 to RH-n) selected by the selection unit, and a heating element (resistive element) of the head element generates heat to print on the print medium. In addition, during the inspection of the head elements (RH-1 to RH-n), the inspection voltage is applied to the head elements (RH-1 to RH-n) selected by the selection unit.

図2は、電圧印加回路25とサーマルヘッド26の一例を示した回路図である。図2に示す通り、サーマルヘッド26は、ラインヘッドを構成する複数のヘッド素子(RH−1〜RH−n)とラッチドライバー262とn段のFF(フリップフロップ)からなるシフトレジスター263を備えている。上述した選択部は、ラッチドライバー262とシフトレジスター263で構成される。また、各ヘッド素子(RH−1〜RH−n)は、図2に示されるように、発熱体である抵抗要素を備える。   FIG. 2 is a circuit diagram showing an example of the voltage application circuit 25 and the thermal head 26. As shown in FIG. 2, the thermal head 26 includes a shift register 263 including a plurality of head elements (RH-1 to RH-n) constituting the line head, a latch driver 262, and n stages of FFs (flip-flops). Yes. The selection unit described above includes a latch driver 262 and a shift register 263. Each head element (RH-1 to RH-n) includes a resistance element that is a heating element, as shown in FIG.

シフトレジスター263において、第1段のシフトレジスターのDO(Data Out)は第2段シフトレジスターのDI(Data In)に接続されるように順次連結されている。   In the shift register 263, DO (Data Out) of the first-stage shift register is sequentially connected so as to be connected to DI (Data In) of the second-stage shift register.

ラッチドライバー262は、ストローブ信号の入力端子STBと、ラッチ信号の入力端子LATを備えている。また、n段の各シフトレジスターは、印刷データであるシリアルデータが入力される入力端子DI、クロック信号の入力端子CLK、シフトレジスター263からあふれたシリアルデータが出力される出力端子DOを備えている。   The latch driver 262 includes a strobe signal input terminal STB and a latch signal input terminal LAT. Each n-stage shift register includes an input terminal DI to which serial data as print data is input, an input terminal CLK for a clock signal, and an output terminal DO from which serial data overflowing from the shift register 263 is output. .

図2の左側でこれらの回路に接続されるヘッド制御部23からの制御信号によって第1段のシフトレジスターの入力端子DIから、クロック信号に対応して1ビットずつ1ライン分のシリアルデータが入力される。次に、1ライン分のシリアルデータがシフトレジスターに格納された時点で、ラッチ信号によって1ライン分のシリアルデータをパラレルデータとしてラッチドライバー262に格納する。   In accordance with a control signal from the head controller 23 connected to these circuits on the left side of FIG. 2, serial data for one line is input bit by bit from the input terminal DI of the first-stage shift register corresponding to the clock signal. Is done. Next, when serial data for one line is stored in the shift register, serial data for one line is stored in the latch driver 262 as parallel data by a latch signal.

次に、ストローブ信号を受信したラッチドライバー262は、ストローブ信号を受けている間、ラッチしたデータの“1”に相当するヘッド素子に通電する。この通電によって印刷媒体に1ライン分(1ドット)の画像が形成され、図示しない紙送り機構によって1ドット分の紙送りが実行される。この手順を繰り返すことで印刷が実行される。   Next, the latch driver 262 that has received the strobe signal energizes the head element corresponding to “1” of the latched data while receiving the strobe signal. By this energization, an image for one line (one dot) is formed on the printing medium, and paper feeding for one dot is executed by a paper feeding mechanism (not shown). Printing is executed by repeating this procedure.

また、電圧印加回路25は、スイッチ信号(SW24VAあるいはDOT_DETECT)によって、ヘッド素子の印刷用電源24[V]及び検査用電源3.3[V]のON/OFFを制御する。なお、検査用電源は、ヘッド制御部23の電源と同じ電圧が望ましく、一例として、ここでは3.3Vとしている。これにより、後述するA/D変換時の誤差が少なくなる。   The voltage application circuit 25 controls the ON / OFF of the print power supply 24 [V] and the inspection power supply 3.3 [V] of the head element by a switch signal (SW24VA or DOT_DETECT). The inspection power supply is preferably the same voltage as the power supply of the head control unit 23, and is 3.3V here as an example. Thereby, an error at the time of A / D conversion described later is reduced.

上述した印刷の実行時には、ヘッド制御部23からのSW24VA信号により、FETで構成されるスイッチング素子QF5をONとして、ヘッド素子(RH−1〜RH−n)へ印刷用電圧24Vを印加する。   At the time of executing the printing described above, the switching element QF5 composed of the FET is turned on by the SW24VA signal from the head control unit 23, and the printing voltage 24V is applied to the head elements (RH-1 to RH-n).

一方、ヘッド素子(RH−1〜RH−n)の検査時には、スイッチング素子QF5をOFFにして、ヘッド制御部23からのDOT_DETECT信号のより、それぞれFETで構成されるスイッチング素子QF1及びQF2をONとして、ヘッド素子(RH−1〜RH−n)へ検査用電圧3.3Vを印加する。   On the other hand, at the time of inspection of the head elements (RH-1 to RH-n), the switching element QF5 is turned OFF, and the switching elements QF1 and QF2 formed by FETs are turned ON by the DOT_DETECT signal from the head control unit 23, respectively. Then, a test voltage of 3.3 V is applied to the head elements (RH-1 to RH-n).

次に、ヘッド制御部23はDI信号で検査対象のヘッド素子(RH−1〜RH−n)を指定(選択)し、ラッチドライバー262によってそのヘッド素子(RH−1〜RH−n)が通電される。   Next, the head control unit 23 designates (selects) the head elements (RH-1 to RH-n) to be inspected by the DI signal, and the head elements (RH-1 to RH-n) are energized by the latch driver 262. Is done.

これにより、検査用抵抗R1とヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成され、ヘッド制御部23は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧を取得(測定)する。具体的には、A/DコンバーターADCを介して、A/D変換された値を取得する。なお、1ヘッド素子あたりの検査時間内において、当該ヘッド素子に印加されるジュール熱により、通電時間が長くなると印字(発色)に至る虞がある。従って、発色する温度まで上昇することがないように、検査時間は一定時間以内に抑えるのが好ましい。   As a result, a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element is formed, and the head control unit 23 uses the READ_HEAD signal to check the resistance R1 of the series circuit and the resistance element (heat generation) of the head element. Acquire (measure) the divided voltage between the body. Specifically, the A / D converted value is acquired via the A / D converter ADC. Note that printing (coloring) may occur if the energization time becomes long due to the Joule heat applied to the head element within the inspection time per head element. Therefore, it is preferable to keep the inspection time within a certain time so that the temperature does not rise to the color developing temperature.

次に、プリンター2は、印刷媒体の収容部(図示せず)を備え、更に、その収容部を開放(開閉)できるカバー29を備える。当該カバー29が開の状態は、すなわち、収容部が外部に開放されている状態は、図示しないセンサーによりメイン制御部22によって検出される。   Next, the printer 2 includes a print medium container (not shown), and further includes a cover 29 that can open (open and close) the container. The state in which the cover 29 is open, that is, the state in which the housing portion is opened to the outside, is detected by the main control unit 22 by a sensor (not shown).

以上のような構成を備えるプリンター2では、ヘッド素子(RH−1〜RH−n)の劣化判断に係る処理、その判断結果に基づく対応処理に特徴があり、以下、その具体的な内容について説明する。   The printer 2 having the above-described configuration is characterized by a process related to the deterioration determination of the head elements (RH-1 to RH-n) and a corresponding process based on the determination result. The specific contents will be described below. To do.

ヘッド素子(RH−1〜RH−n)においては、劣化が進むことによりその発熱体(抵抗素子)の抵抗値が変化することが知られている。変化の仕方にはいくつかの現象が見られるが、1つの現象においては、抵抗値が徐々に増加していく。また、他の現象においては、抵抗値が徐々に減少していき、その後急激に増加する。いずれの場合においても、ある程度以上に抵抗値が増加すると印刷時に十分に発熱せず印刷不良を起こす虞がある。   In the head elements (RH-1 to RH-n), it is known that the resistance value of the heating element (resistive element) changes as the deterioration progresses. There are several phenomena in the way of change, but in one phenomenon, the resistance value gradually increases. In other phenomena, the resistance value gradually decreases and then increases rapidly. In either case, if the resistance value increases more than a certain level, there is a risk of not generating sufficient heat during printing and causing printing failure.

従って、ヘッド素子(RH−1〜RH−n)の劣化判断では、各ヘッド素子(RH−1〜RH−n)の(発熱体の)抵抗値の変化を段階的に把握することが重要である。   Therefore, in determining the deterioration of the head elements (RH-1 to RH-n), it is important to grasp the change in resistance value (of the heating element) of each head element (RH-1 to RH-n) step by step. is there.

そのため、本プリンター2では、まず、各ヘッド素子(RH−1〜RH−n)の初期状態(初期抵抗値)を把握する処理(初期設定処理)を行い、その後に、初期状態を示す情報(初期情報)に基づいて、適切な頻度で抵抗値を測定し、劣化判断処理を実行する。   Therefore, in the printer 2, first, a process (initial setting process) for grasping the initial state (initial resistance value) of each head element (RH-1 to RH-n) is performed, and then information (1) indicating the initial state ( The resistance value is measured at an appropriate frequency based on the initial information), and the deterioration determination process is executed.

また、各ヘッド素子(RH−1〜RH−n)の抵抗値は、上述した、検査用抵抗R1と
ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路の上記分圧電圧を測定することによって求められるので、上記初期状態の把握及び劣化状態の把握は、分圧電圧(劣化状態を判断するための指標値)を測定することによって行う。
Further, the resistance value of each head element (RH-1 to RH-n) is obtained by measuring the above-mentioned divided voltage of the series circuit connecting the inspection resistor R1 and the resistance element (heating element) of the head element. Therefore, the initial state and the deterioration state are grasped by measuring a divided voltage (an index value for determining the deterioration state).

図3は、初期設定処理の手順を例示したフローチャートである。なお、この初期設定処理においては、その後に行われる劣化判断処理の際に処理を速く行えるように、ヘッド素子(RH−1〜RH−n)毎に変換テーブルを作成しておく。この変換テーブルは、測定される上記分圧電圧の各値(より具体的にはAD値)に、上記初期抵抗値からの抵抗値変化率を対応付けたものである。   FIG. 3 is a flowchart illustrating the procedure of the initial setting process. In this initial setting process, a conversion table is created for each head element (RH-1 to RH-n) so that the process can be performed quickly in the subsequent deterioration determination process. In this conversion table, each value (more specifically, AD value) of the divided voltage to be measured is associated with the rate of change in resistance value from the initial resistance value.

図4は、分圧電圧と抵抗値変化率の関係を示すグラフである。図4に示す例は、ヘッド素子(RH−1〜RH−n)の発熱体の抵抗値を564Ωとし、検査用抵抗R1の抵抗値を255Ωとした場合の、分圧電圧(AD値)と抵抗値変化率の関係を示している。なお、抵抗値変化率は初期抵抗値(ここでは564Ω)からの増加分を百分率で表している。なお、この関係は、数式に基づく計算で求めることができる。   FIG. 4 is a graph showing the relationship between the divided voltage and the resistance value change rate. The example shown in FIG. 4 shows the divided voltage (AD value) when the resistance value of the heating element of the head elements (RH-1 to RH-n) is 564Ω and the resistance value of the inspection resistor R1 is 255Ω. The relationship of the resistance value change rate is shown. Note that the rate of change in resistance value represents an increase from the initial resistance value (here, 564Ω) as a percentage. This relationship can be obtained by calculation based on mathematical expressions.

図5は、仮の変換テーブルを例示した図である。図5に示す仮の変換テーブルは、図4に示したグラフを表形式で表現したものである。仮の変換テーブルにおける「分圧電圧」において、Xは、仮の変換テーブルでは、ヘッド素子(RH−1〜RH−n)の発熱体の初期抵抗値564Ωに対応する分圧電圧(より具体的にはAD値)を意味している。具体的には、X=176である。すなわち、初期状態で発熱体の抵抗値が564Ωである場合に、上述した手順で分圧電圧を測定すると「176」という値が取得されるということである。   FIG. 5 is a diagram illustrating a temporary conversion table. The provisional conversion table shown in FIG. 5 represents the graph shown in FIG. 4 in a table format. In the “divided voltage” in the temporary conversion table, X is a divided voltage (more specifically, corresponding to the initial resistance value 564Ω of the heating element of the head elements (RH-1 to RH-n) in the temporary conversion table. Means an AD value). Specifically, X = 176. That is, when the resistance value of the heating element is 564Ω in the initial state, a value of “176” is acquired when the divided voltage is measured by the above-described procedure.

プリンター2をある程度使用した後に、分圧電圧を測定して、例えば「181」という値を得たときは、仮の変換テーブルにおいて「分圧電圧」が「X+5」であるので、それに対応付けられた「抵抗値変化率」の「10_11%」発熱体の抵抗値が増加した、ということがわかる。   When the divided voltage is measured after the printer 2 is used to some extent and, for example, a value of “181” is obtained, the “divided voltage” is “X + 5” in the temporary conversion table. It can also be seen that the resistance value of the heating element “10_11%” of the “resistance value change rate” has increased.

なお、ヘッド素子(RH−1〜RH−n)の発熱体の初期抵抗値564Ωは、装置の仕様通りの値(仕様値)であり、実際の抵抗値は、この仕様値から10%程度の誤差を含む可能性がある。従って、ヘッド素子(RH−1〜RH−n)毎により正確に劣化度合を判断するためには、その初期抵抗値を正確に把握し、それに基づいた変換テーブル(分圧電圧と抵抗値変化率の関係を示すテーブル)を用意する必要がある。なお、初期抵抗値564Ωはサーマルヘッドにより異なり、上記は一例である。   The initial resistance value 564Ω of the heating element of the head elements (RH-1 to RH-n) is a value (specification value) according to the specification of the device, and the actual resistance value is about 10% from this specification value. It may contain errors. Therefore, in order to accurately determine the degree of deterioration for each head element (RH-1 to RH-n), the initial resistance value is accurately grasped, and a conversion table (divided voltage and resistance value change rate) based on the initial resistance value is obtained. It is necessary to prepare a table showing the relationship of The initial resistance value 564Ω varies depending on the thermal head, and the above is an example.

以上説明した仮の変換テーブルは、予め作成され、データ記憶部24に記憶されている。   The provisional conversion table described above is created in advance and stored in the data storage unit 24.

以降、図3に基づいて、初期設定処理の具体的な処理内容について説明する。本プリンター2の初回起動時において、初期設定処理は実行される。ヘッド制御部23(検査部27)は、まず、上述したように、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図3のステップS1)。   Hereinafter, specific processing contents of the initial setting processing will be described with reference to FIG. When the printer 2 is activated for the first time, the initial setting process is executed. As described above, the head controller 23 (inspection unit 27) first outputs a signal to the voltage application circuit 25 and applies the inspection voltage (3.3 V) to the thermal head 26 (step S1 in FIG. 3).

次に、ヘッド制御部23(検査部27)は、初期設定を行う1つのヘッド素子(RH−1〜RH−n)を選択する(図3のステップS2)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the head control unit 23 (inspection unit 27) selects one head element (RH-1 to RH-n) for initial setting (step S2 in FIG. 3). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、ヘッド制御部23(検査部27)は、READ_HEAD信号で上記
直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧(測定値)を取得する(図3のステップS3)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)初期抵抗値に対応する情報が取得される。
As a result, a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element is formed. Therefore, the head control unit 23 (inspection unit 27) uses the READ_HEAD signal to inspect the series circuit inspection resistor R1. And a divided voltage (measured value) between the resistance elements (heating elements) of the head element is acquired (step S3 in FIG. 3). That is, information corresponding to the initial resistance value (of the resistance element (heating element)) of the head element is acquired.

次に、ヘッド制御部23(検査部27)は、データ記憶部24に記憶される、上述した仮の変換テーブルを読み出し、そのテーブルの「X」に、取得した当該ヘッド素子の分圧電圧(AD値)を代入して、当該ヘッド素子の変換テーブルを生成する(図3のステップS4)。すなわち、そのヘッド素子の実際の初期抵抗値に基づいた、分圧電圧と抵抗値変化率の関係を示す変換テーブルが生成される。   Next, the head control unit 23 (inspection unit 27) reads the above-described provisional conversion table stored in the data storage unit 24, and acquires the obtained divided voltage of the head element (X) in “X” of the table. (AD value) is substituted to generate a conversion table for the head element (step S4 in FIG. 3). That is, a conversion table showing the relationship between the divided voltage and the resistance value change rate based on the actual initial resistance value of the head element is generated.

ヘッド制御部23(検査部27)は、生成した変換テーブルをデータ記憶部24に読み出し可能に記憶(保存)し(図3のステップS5)、当該ヘッド素子についての初期設定処理を終了する。   The head control unit 23 (inspection unit 27) stores (saves) the generated conversion table in the data storage unit 24 so as to be readable (step S5 in FIG. 3), and ends the initial setting process for the head element.

ヘッド制御部23(検査部27)は、以上説明した初期設定処理(S2−S5)を、全てのヘッド素子(RH−1〜RH−n)について実行する(図3のステップS6のYes)。   The head control unit 23 (inspection unit 27) executes the initial setting process (S2-S5) described above for all the head elements (RH-1 to RH-n) (Yes in step S6 in FIG. 3).

その後、ヘッド制御部23(検査部27)は、全てのヘッド素子(RH−1〜RH−n)について生成されデータ記憶部24に記憶される変換テーブルに、それぞれ、閾値を設定する(図3のステップS7)。ここでは、各ヘッド素子(RH−1〜RH−n)の劣化状態をきめ細かく把握できるように、ヘッド素子(RH−1〜RH−n)毎に複数の閾値を設定する。   Thereafter, the head control unit 23 (inspection unit 27) sets thresholds in the conversion tables generated for all the head elements (RH-1 to RH-n) and stored in the data storage unit 24 (FIG. 3). Step S7). Here, a plurality of threshold values are set for each head element (RH-1 to RH-n) so that the deterioration state of each head element (RH-1 to RH-n) can be grasped in detail.

閾値は、変換テーブルにおいて、AD値として取得される分圧電圧に対応付けられる抵抗値変化率に設定され、例えば、51%、15%、−15%、及び、−30%の抵抗値変化率が4つの閾値として予め設定される。例えば、図5に示した仮の変換テーブルが、そのXに測定された初期抵抗値が代入されたあるヘッド素子の変換テーブルであるとすると、図5に示す4つの閾値N1、N2、N3、及びN4が設定される。   The threshold value is set to the resistance value change rate associated with the divided voltage acquired as the AD value in the conversion table. For example, the resistance value change rate is 51%, 15%, −15%, and −30%. Are preset as four thresholds. For example, if the temporary conversion table shown in FIG. 5 is a conversion table of a certain head element in which the measured initial resistance value is substituted for X, the four threshold values N1, N2, N3, And N4 are set.

以上のようにして、初期設定処理が終了する。   As described above, the initial setting process ends.

次に、劣化判断処理について説明する。初期設定処理が行われた後、プリンター2が使用され、所定のタイミングになると、ヘッド制御部23は、劣化判断処理を実行する。   Next, the deterioration determination process will be described. After the initial setting process is performed, when the printer 2 is used and the predetermined timing is reached, the head controller 23 executes a deterioration determination process.

図6は、劣化判断処理の手順を例示したフローチャートである。まず、ヘッド制御部23(検査部27)は、印刷用電圧(24V)が遮断されているかを判断し(図6のステップS11)、遮断されていなければ(図6のステップS11のNo)、劣化判断処理のための検査を行わず、処理がステップS19に移行する。   FIG. 6 is a flowchart illustrating the procedure of the deterioration determination process. First, the head control unit 23 (inspection unit 27) determines whether the printing voltage (24V) is cut off (step S11 in FIG. 6). If not cut off (No in step S11 in FIG. 6), The process proceeds to step S19 without performing the inspection for the deterioration determination process.

一方、印刷用電圧(24V)が遮断されていれば(図6のステップS11のYes)、劣化判断処理の検査を開始する。なお、印刷用電圧(24V)が遮断されている状態とは、POS端末装置1からの印刷命令を受信していない時、カバー29が開放されている時など、プリンター2による印刷処理がなされていない状態である。すなわち、本プリンター2では、印刷処理がなされ得ない時間を利用してヘッド素子の劣化判断処理がなされる。   On the other hand, if the printing voltage (24V) is cut off (Yes in step S11 in FIG. 6), the inspection of the deterioration determination process is started. The state in which the printing voltage (24V) is cut off means that the printing process by the printer 2 is performed, such as when the print command from the POS terminal device 1 is not received or when the cover 29 is opened. There is no state. That is, in the printer 2, the head element deterioration determination process is performed using a time during which the printing process cannot be performed.

また、劣化判断処理は、プリンター2の電源が投入された際に実行するようにしてもよい。これにより、所定の頻度で確実にヘッド素子の劣化判断を行うことができる。   The deterioration determination process may be executed when the printer 2 is turned on. Thereby, it is possible to reliably determine the deterioration of the head element at a predetermined frequency.

まず、ヘッド制御部23(検査部27)は、検査終了条件を満たしているか否かを判断する(図6のステップS12)。検査終了条件とは、印刷用電圧(24V)が遮断されており、ヘッド素子の検査を行える状態であっても、それ以上の検査を行わない条件である。例えば、その日に既に全ヘッド素子について1回の検査を終了している、という検査終了条件が設定される。当該条件の場合には、例えば、本プリンター2が512個のヘッド素子を備えるとすると、1日の間に512個のヘッド素子について検査が終了していれば、その日にはそれ以上の検査は実行しない。   First, the head controller 23 (inspection unit 27) determines whether or not an inspection end condition is satisfied (step S12 in FIG. 6). The inspection end condition is a condition in which no further inspection is performed even when the printing voltage (24 V) is cut off and the head element can be inspected. For example, an inspection end condition is set such that one inspection has already been completed for all head elements on that day. In the case of this condition, for example, if this printer 2 includes 512 head elements, if inspections are completed for 512 head elements in one day, further inspections will be performed on that day. Do not execute.

当該検査終了条件を満たしている場合には(図6のステップS12のYes)、ヘッド制御部23(検査部27)は、検査を実行せず、処理がステップS19に移行する。   If the inspection end condition is satisfied (Yes in step S12 in FIG. 6), the head control unit 23 (inspection unit 27) does not perform the inspection, and the process proceeds to step S19.

一方、当該検査終了条件を満たしていない場合には(図6のステップS12のNo)、ヘッド制御部23(検査部27)は、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図6のステップS13)。なお、すでに検査用電圧(3.3V)がサーマルヘッド26に印加されている場合には、そのままの状態とする。   On the other hand, when the inspection end condition is not satisfied (No in step S12 in FIG. 6), the head control unit 23 (inspection unit 27) issues a signal to the voltage application circuit 25 and the inspection voltage (3.3V). ) Is applied to the thermal head 26 (step S13 in FIG. 6). If the inspection voltage (3.3 V) has already been applied to the thermal head 26, the state is left as it is.

次に、ヘッド制御部23(検査部27)は、劣化判断を行う1つのヘッド素子(RH−1〜RH−n)を選択する(図6のステップS14)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。なお、当該ヘッド素子の選択は予め定められた順番で、例えば、ヘッド素子にふられた識別番号(ヘッド素子番号)の順番に行われる。   Next, the head controller 23 (inspection unit 27) selects one head element (RH-1 to RH-n) for which deterioration is determined (step S14 in FIG. 6). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized. The head elements are selected in a predetermined order, for example, in the order of identification numbers (head element numbers) assigned to the head elements.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、ヘッド制御部23(検査部27)は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧(測定値)を取得する(図6のステップS15)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)この時点における抵抗値に対応する情報(劣化診断をするための指標値)が取得される。   As a result, a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element is formed. Therefore, the head control unit 23 (inspection unit 27) uses the READ_HEAD signal to inspect the series circuit inspection resistor R1. And a divided voltage (measured value) between the resistance elements (heating elements) of the head element is acquired (step S15 in FIG. 6). That is, information (an index value for performing deterioration diagnosis) corresponding to the resistance value of the head element (resistance element (heating element)) at this time is acquired.

次に、ヘッド制御部23(検査部27)は、データ記憶部24に記憶されている当該ヘッド素子の変換テーブルを読み出し、その変換テーブルにおいて、上記取得したこの時点での分圧電圧に対応付けられている抵抗値変化率を読み出す(取得する)(図6のステップS16)。すなわち、分圧電圧が抵抗値の情報に変換される。   Next, the head control unit 23 (inspection unit 27) reads the conversion table of the head element stored in the data storage unit 24, and associates it with the acquired divided voltage at this time in the conversion table. The obtained resistance value change rate is read (obtained) (step S16 in FIG. 6). That is, the divided voltage is converted into resistance value information.

ヘッド制御部23(検査部27)は、取得した抵抗値変化率が当該変換テーブルに設定されている閾値を超えているか否かをチェックし(図6のステップS17)、取得した抵
抗値変化率が最も値の小さい閾値(例えば、図5のN1)を超えていなければ、当該ヘッド素子については劣化があまり進んでいない(直ぐに対応すべき劣化状態にない)と判断する。
The head control unit 23 (inspection unit 27) checks whether or not the acquired resistance value change rate exceeds a threshold value set in the conversion table (step S17 in FIG. 6), and the acquired resistance value change rate. If it does not exceed the smallest threshold value (for example, N1 in FIG. 5), it is determined that the head element has not deteriorated so much (it is not in a deteriorated state to be dealt with immediately).

一方、ヘッド制御部23(検査部27)は、取得した抵抗値変化率が最も値の小さい閾値(例えば、図5のN1)を超えていれば、当該ヘッド素子については劣化が進んでいる(注視すべき劣化状態である)と判断する。更に、ヘッド制御部23(検査部27)は、取得した抵抗値変化率が最も値の大きい閾値(例えば、図5のN2)を超えていれば、当該ヘッド素子については劣化が進み交換すべき状態であると判断する。   On the other hand, if the acquired resistance value change rate exceeds the threshold value with the smallest value (for example, N1 in FIG. 5), the head control unit 23 (inspection unit 27) has been deteriorated. It is judged that the deterioration state should be observed). Furthermore, if the acquired resistance value change rate exceeds the threshold value with the largest value (for example, N2 in FIG. 5), the head control unit 23 (inspection unit 27) should be replaced as the head element deteriorates. Judged to be in a state.

次に、ヘッド制御部23(検査部27)は、行った検査に基づく劣化情報をデータ記憶部24に記憶(保存)する(図6のステップS18)。   Next, the head control unit 23 (inspection unit 27) stores (saves) deterioration information based on the inspection performed in the data storage unit 24 (step S18 in FIG. 6).

図7は、データ記憶部24に保存する劣化情報の一例である。本実施の形態例では、劣化情報として全512のヘッド素子の各ヘッド素子(「ヘッド素子番号」)について、「抵抗値変化率」及び「アラームフラグ」の情報を保存(記憶)する。抵抗値変化率(%)は、ステップS16で取得された抵抗値変化率であり、「アラームフラグ」は、ステップS17の判断により、閾値を超えていると判断された場合に立つ(ONとされる)フラグである。本実施の形態例では、4つの閾値(N1、N2、N3、N4)を変換テーブルに設定しているので、「アラームフラグ」のデータは、どの閾値を超えているか判断可能なデータとしている。ON(N1)は閾値N1を超えていることを示している。また、ON(N3)はマイナス方向に閾値N3を超えているが、閾値N4を超えていないことを示し、ON(N4)はマイナス方向に閾値N4を超えていることを示している。   FIG. 7 is an example of deterioration information stored in the data storage unit 24. In the present embodiment, information of “resistance value change rate” and “alarm flag” is stored (stored) for each head element (“head element number”) of all 512 head elements as deterioration information. The resistance value change rate (%) is the resistance value change rate acquired in step S16, and the “alarm flag” is set to ON when it is determined that the threshold value is exceeded by the determination in step S17. Flag). In this embodiment, since four threshold values (N1, N2, N3, N4) are set in the conversion table, the “alarm flag” data is data that can be used to determine which threshold value is exceeded. ON (N1) indicates that the threshold value N1 is exceeded. Further, ON (N3) indicates that the threshold value N3 is exceeded in the minus direction but does not exceed the threshold value N4, and ON (N4) indicates that the threshold value N4 is exceeded in the minus direction.

図7に示す例では、例えばヘッド素子「1」は、現在の(直近の検出結果における抵抗値変化率)抵抗値変化率が「2−3%」であり、閾値を超えていないことを示している。また、ヘッド素子「30」は、抵抗値変化率が「−16%」であり、閾値N3を超えていることを示している。また、ヘッド素子「50」は、抵抗値変化率が「16_17_18%」であり、閾値N2を超えていることを示している。   In the example illustrated in FIG. 7, for example, the head element “1” indicates that the current (resistance value change rate in the latest detection result) resistance value change rate is “2 to 3%” and does not exceed the threshold value. ing. The head element “30” has a resistance value change rate of “−16%”, which indicates that the threshold value N3 is exceeded. The head element “50” has a resistance value change rate of “16_17_18%”, which indicates that the threshold value N2 is exceeded.

ステップS18の処理では、上記選択されたヘッド素子について、「抵抗値変化率」と「アラームフラグ」の値が保存(更新)される。   In the process of step S18, the values of “resistance change rate” and “alarm flag” are stored (updated) for the selected head element.

なお、抵抗値変化率が、−15%から+15%の間である場合には、そのヘッド素子については劣化があまり進んでおらず(直ぐに対応すべき劣化状態になく)、15%を超えている場合、あるいは、−15%を下回る場合には、そのヘッド素子については劣化が進んでいる(注視すべき劣化状態である)と判断できる。   When the resistance value change rate is between -15% and + 15%, the head element has not deteriorated so much (it is not immediately in a deteriorated state to be dealt with) and exceeds 15%. If it is present, or if it is less than −15%, it can be determined that the head element has been degraded (it is a degraded state to be watched).

なお、劣化情報として、抵抗値変化率が閾値を超えたヘッド素子についてのみ、劣化情報を記憶する様にしても良い。また、各ヘッド素子について合わせて、測定された分圧電圧値、分圧電圧値から換算可能な抵抗値を記録するようにしても良い。   It should be noted that the deterioration information may be stored only for the head element whose resistance value change rate exceeds the threshold value as the deterioration information. Further, the divided voltage value measured and the resistance value that can be converted from the divided voltage value may be recorded for each head element.

このようにして、当該ヘッド素子についての劣化判断処理を終了する。そして、検査部27が検査用電圧を遮断して、処理がステップS11に移行する。それ以降、印刷用電源(24V)が遮断されており、検査終了条件が満足されなければ(図6のステップS11のYes及びステップS12のNo)、上述した各ヘッド素子についての劣化判断処理が、同様に順次実行される。   In this way, the deterioration determination process for the head element ends. And the test | inspection part 27 interrupts | blocks the voltage for a test | inspection, and a process transfers to step S11. Thereafter, if the power supply for printing (24V) is shut off and the inspection end condition is not satisfied (Yes in step S11 and No in step S12 in FIG. 6), the deterioration determination process for each head element described above is performed. Similarly, they are executed sequentially.

ステップS19では、ヘッド制御部23(検査部27)は、ユーザーへの警報を行うタイミングであるか否かを判断する。警報を行うタイミングは、POS端末装置1、劣化管理サーバー3などのホスト装置から警報情報を要求するコマンドを受信した際、所定の時間間隔、等とすることができる。   In step S19, the head control unit 23 (inspection unit 27) determines whether it is time to issue a warning to the user. The timing for issuing an alarm may be a predetermined time interval when a command requesting alarm information is received from a host device such as the POS terminal device 1 or the deterioration management server 3.

当該判断の結果、警報を行うタイミングでないと判断された場合は(図6のステップS19のNo)、ヘッド制御部23(検査部27)は、ユーザーへの警報を行わず(警報情報の出力はせず)、処理がステップS11に戻る。   As a result of the determination, if it is determined that it is not the timing to issue an alarm (No in step S19 in FIG. 6), the head controller 23 (inspection unit 27) does not issue an alarm to the user (the output of alarm information is Not), the process returns to step S11.

一方、当該判断の結果、警報を行うタイミングであると判断された場合は(図6のステップS19のYes)、ヘッド制御部23(検査部27)は、警報情報を生成する(図6のステップS20)。警報情報は、ヘッド素子の劣化に関しプリンター2のユーザーに対して注意を喚起するための情報であり、データ記憶部24に記憶される劣化情報に基づいて生成される。具体的には、警報情報は、例えば、全ヘッド素子のうち何%のヘッド素子が不良になっているか、すなわち、印刷時に何%のドット抜けが発生する虞があるか、という情報を含む。当該情報は、図7に例示した劣化情報を用いれば、「アラームフラグ」が“ON(N2)”、“ON(N3)”となっているヘッド素子数の全ヘッド素子数に対する割合である。なお、ドット抜け、ドットが抜けるとは、印刷時にそのドットを形成するヘッド素子が不良でドットが形成されない、ことを意味する。   On the other hand, as a result of the determination, if it is determined that it is time to issue an alarm (Yes in step S19 in FIG. 6), the head controller 23 (inspection unit 27) generates alarm information (step in FIG. 6). S20). The alarm information is information for alerting the user of the printer 2 regarding the deterioration of the head element, and is generated based on the deterioration information stored in the data storage unit 24. Specifically, the alarm information includes, for example, information indicating what percentage of all head elements are defective, that is, what percentage of missing dots may occur during printing. If the deterioration information illustrated in FIG. 7 is used, this information is the ratio of the number of head elements whose “alarm flag” is “ON (N2)” or “ON (N3)” to the total number of head elements. Note that “missing a dot” or “missing a dot” means that the head element that forms the dot at the time of printing is defective and the dot is not formed.

また、警報情報は、例えば、印刷時に隣接する2ドットが抜ける虞のある箇所が何か所あるか、という情報を含む。当該情報は、図7に例示した劣化情報を用いれば、「アラームフラグ」が“ON(N2)” 、“ON(N3)”となっているヘッド素子同士で、印
刷時に隣接するドットを形成するものの数である。
Further, the alarm information includes, for example, information on the number of places where two adjacent dots may be lost during printing. If the deterioration information illustrated in FIG. 7 is used as the information, the head elements whose “alarm flag” is “ON (N2)” or “ON (N3)” form adjacent dots during printing. Is the number of things.

次に、ヘッド制御部23(検査部27)は、警報情報を出力(送信)する(図6のステップS21)。当該警報情報の出力は、POS端末装置1、劣化管理サーバー3などのホスト装置から警報情報を要求するコマンドを受信した場合には、要求元のホスト装置に送信することによって行う。この場合、出力された警報情報は、ホスト装置(外部装置)によって取得される。また、当該警報情報の出力は、ホスト装置への送信のほか、テスト印字(印刷媒体への印刷)、プリンター2の表示部(図示せず)への表示、音声出力等で行うこともできる。   Next, the head control unit 23 (inspection unit 27) outputs (transmits) alarm information (step S21 in FIG. 6). When the alarm information is output from a host device such as the POS terminal device 1 or the degradation management server 3, a command requesting the alarm information is transmitted to the requesting host device. In this case, the output alarm information is acquired by the host device (external device). Further, the alarm information can be output not only by transmission to the host device but also by test printing (printing on a print medium), display on a display unit (not shown) of the printer 2, voice output, or the like.

以上説明した処理内容で、ヘッド制御部23(検査部27)は、各ヘッド素子の劣化判断と警報情報の出力を実行する。   With the processing content described above, the head control unit 23 (inspection unit 27) executes deterioration determination of each head element and output of alarm information.

次に、劣化判断処理に基づく印刷処理時の劣化対応について説明する。図8は、印刷制御処理の手順を例示したフローチャートである。以下、図8に従って、ヘッド制御部23(印刷制御部28)による印刷時の処理内容について説明する。   Next, degradation handling at the time of printing processing based on degradation determination processing will be described. FIG. 8 is a flowchart illustrating the procedure of the print control process. Hereinafter, according to FIG. 8, processing contents during printing by the head control unit 23 (printing control unit 28) will be described.

ヘッド制御部23(印刷制御部28)は、POS端末装置1から印刷命令が受信されるのを待ち(図8のステップS31のNo)、印刷命令が通信部21を介してメイン制御部22で受信されると(図8のステップS31のYes)、当該印刷命令のコマンドをメイン制御部22から受信する。印刷命令は、例えば、バーコードを含むレシートの印刷を実行する命令である。   The head control unit 23 (print control unit 28) waits for a print command to be received from the POS terminal device 1 (No in step S31 in FIG. 8), and the print command is sent from the main control unit 22 via the communication unit 21. When received (Yes in step S31 in FIG. 8), the command of the print command is received from the main control unit 22. The print command is a command for executing printing of a receipt including a barcode, for example.

ヘッド制御部23(印刷制御部28)は、受信したコマンドを解釈し、印刷データを生成する(図8のステップS32)。より、具体的には、印刷対象の画像を画素毎のデータに展開する。   The head control unit 23 (print control unit 28) interprets the received command and generates print data (step S32 in FIG. 8). More specifically, the image to be printed is developed into data for each pixel.

次に、ヘッド制御部23(印刷制御部28)は、データ記憶部24に記憶される劣化情報を取得する(図8のステップS33)。上述したように、劣化情報には、各ヘッド素子の抵抗値変化率、アラームフラグの情報が含まれるので、ヘッド制御部23(印刷制御部28)は、取得した劣化情報に基づいて、ドット抜けが発生する(虞のある)箇所(以下、ドット抜け箇所)を特定する。具体的には、劣化情報の「アラームフラグ」が“ON(N2)”となっているヘッド素子によって印刷がなされる画像の位置を特定する。プリンター2の備えるラインヘッドにおいて、どのヘッド素子番号のヘッド素子がどこに位置するかは既知であるので、「アラームフラグ」が“ON(N2)”となっているヘッド素子のヘッド素子番号から、ドット抜け箇所を特定することができる。   Next, the head control unit 23 (print control unit 28) acquires deterioration information stored in the data storage unit 24 (step S33 in FIG. 8). As described above, since the deterioration information includes the resistance value change rate and the alarm flag information of each head element, the head control unit 23 (printing control unit 28) performs dot omission based on the acquired deterioration information. The location (hereinafter, “dot missing portion”) where the occurrence of (is likely to occur) is identified. Specifically, the position of the image to be printed by the head element whose “alarm flag” in the deterioration information is “ON (N2)” is specified. Since it is known where the head element of which head element number is located in the line head provided in the printer 2, the dot is calculated from the head element number of the head element whose “alarm flag” is “ON (N2)”. The missing part can be specified.

次に、ヘッド制御部23(印刷制御部28)は、特定したドット抜け箇所を上記展開した印刷データと重ね合わせ、印刷対象画像のうちの特定の画像、例えば、バーコードなどのシンボル画像、の位置とドット抜け箇所が重なるか否かをチェックする(図8のステップS34)。ここで、シンボル画像とは、バーコード、QRコード(登録商標)など、その画像をスキャナーなどの装置で読み取ることによって情報が取得される画像を意味し、従って、シンボル画像はドット抜けがなく正確に印刷されることが重要である。   Next, the head control unit 23 (printing control unit 28) superimposes the specified dot missing portion on the developed print data, and determines a specific image of the print target image, for example, a symbol image such as a barcode. It is checked whether or not the position and the dot missing portion overlap (step S34 in FIG. 8). Here, the symbol image means an image such as a barcode or QR code (registered trademark) in which information is acquired by reading the image with an apparatus such as a scanner. Therefore, the symbol image has no missing dots and is accurate. It is important to be printed on.

当該チェックの結果、特定の画像とドット抜け箇所が重ならない場合には(図8のステップS34のNo)、ヘッド制御部23(印刷制御部28)は、上記展開された印刷データに基づいて印刷処理を実行させる(図8のステップS36)。   As a result of the check, if the specific image does not overlap with the missing dot portion (No in step S34 in FIG. 8), the head control unit 23 (print control unit 28) prints based on the developed print data. The process is executed (step S36 in FIG. 8).

一方、上記チェックの結果、特定の画像とドット抜け箇所が重なる場合には(図8のステップS34のYes)、ヘッド制御部23(印刷制御部28)は、上記展開された印刷データの変更処理を実行する(図8のステップS35)。なお、当該印刷データの変更処理では、特定の画像とドット抜け箇所が重ならないようにする処理、特定の画像から情報を読み取りやすくする処理が実行され、その具体的な内容については後述する。   On the other hand, as a result of the check, if the specific image overlaps with the missing dot portion (Yes in step S34 in FIG. 8), the head controller 23 (print controller 28) changes the developed print data. Is executed (step S35 in FIG. 8). In the print data changing process, a process for preventing a specific image and a missing dot portion from overlapping each other and a process for making information easy to read from the specific image are executed. The specific contents will be described later.

その後、ヘッド制御部23(印刷制御部28)は、変更した印刷データに基づいて印刷処理を実行させる(図8のステップS36)。   Thereafter, the head control unit 23 (print control unit 28) causes the print process to be executed based on the changed print data (step S36 in FIG. 8).

ステップS36の印刷処理では、電圧印加回路25がサーマルヘッド26に印加する電圧を印刷用電圧(24V)に切り換え、搬送される印刷媒体に対して、印刷データに従ってサーマルヘッド26による印字が実行される。印刷処理後の印刷物(例えば、レシート)は切断されて排紙される。   In the printing process of step S36, the voltage applied by the voltage application circuit 25 to the thermal head 26 is switched to the printing voltage (24V), and printing by the thermal head 26 is executed on the conveyed print medium according to the print data. . The printed matter (for example, a receipt) after the printing process is cut and discharged.

印刷処理後は、処理がステップS31に戻り、次の印刷命令の受信を待つ。   After the printing process, the process returns to step S31 and waits for reception of the next printing command.

以上説明した処理が繰り返し実行される。   The process described above is repeatedly executed.

次に、ステップS35における印刷データの変更処理について説明する。なお、ここでは、上記特定の画像がレシートに印刷されるバーコードの画像(シンボル画像)である場合について説明する。   Next, the print data changing process in step S35 will be described. Here, a case where the specific image is a barcode image (symbol image) printed on a receipt will be described.

ヘッド制御部23(印刷制御部28)は、まず、バーコードの画像をシフトしてドット抜け箇所と重ならない位置へ移動させる処理を行う。図9は、印刷データのシフトを説明するための図である。図9に示す例では、シンボル画像S1がドット抜け箇所と重なったバーコード画像であり、用紙(印刷媒体)Pの図9に示す位置に印刷される予定である。   The head control unit 23 (printing control unit 28) first performs a process of shifting the barcode image to a position where it does not overlap with the missing dot portion. FIG. 9 is a diagram for explaining the shift of the print data. In the example shown in FIG. 9, the symbol image S <b> 1 is a barcode image that overlaps with the missing dot portion, and is scheduled to be printed on the paper (print medium) P at the position shown in FIG. 9.

図9において、矢印D2で示す方向が用紙Pの搬送方向であり、上述した画像のシフトはそれとは直交する矢印D1の方向に行われる。すなわち、印刷物であるレシートの幅方向に行われる。また、図9において、用紙Pの両側にあるクリアーバンドCBは、余白とする範囲であり、バーコードを印刷できるのは有効幅EWの範囲内である。   In FIG. 9, the direction indicated by the arrow D2 is the conveyance direction of the paper P, and the above-described image shift is performed in the direction of the arrow D1 orthogonal thereto. That is, it is performed in the width direction of the receipt that is the printed matter. In FIG. 9, the clear band CB on both sides of the paper P is a blank area, and the barcode can be printed within the effective width EW.

ヘッド制御部23(印刷制御部28)は、シンボル画像S1の位置を矢印D2の方向にシフトしてバーコードの印字部分(黒の部分)がドット抜け箇所から外れる位置を探し、その位置へシンボル画像S1を移動させる印刷データの変更を行う。   The head control unit 23 (printing control unit 28) shifts the position of the symbol image S1 in the direction of the arrow D2, searches for a position where the bar code print portion (black portion) deviates from the dot missing portion, and moves the symbol to that position. The print data for moving the image S1 is changed.

ヘッド制御部23(印刷制御部28)は、上記画像のシフトに加えて又は代えて、以下のいずれかのデータ変更処理を行ってもよい。上記シフトの処理によってドット抜け箇所との重なりを完全にはなくせないこともあり、また、シンボル画像からの情報の読取りをより確実にするためである。   The head control unit 23 (printing control unit 28) may perform any of the following data change processes in addition to or instead of the image shift. This is because the overlap with the dot missing portion may not be completely eliminated by the shift process, and the information is more reliably read from the symbol image.

その一つ目の処理は、バーコードの画像にHRI(Human Readable Interpretation)文字を付加する処理である。図10及び図11は、HRI文字の付加を例示した図である。図10及び図11に示す例において、シンボル画像S1は、図9に示したように変更前のバーコード画像であり、シンボル画像S2は、HRI文字の付加後のバーコード画像である。図中のCで指し示す部分がHRI文字である。   The first process is a process of adding an HRI (Human Readable Interpretation) character to the barcode image. 10 and 11 are diagrams illustrating the addition of HRI characters. In the example shown in FIGS. 10 and 11, the symbol image S1 is a barcode image before change as shown in FIG. 9, and the symbol image S2 is a barcode image after addition of HRI characters. The part indicated by C in the figure is the HRI character.

プリンター2には、バーコードを印刷する場合に、HRI文字を付加するモードがあり、ユーザーがそのモードを有効にしている場合には当該処理は必要ないが、ユーザーが当該モードを無効にしている場合には有効にした場合の処理が強制的に行われることになる。   The printer 2 has a mode for adding an HRI character when printing a barcode. When the user has enabled the mode, this process is not necessary, but the user has disabled the mode. In this case, the processing when it is enabled is forcibly performed.

このように当該処理では、印刷データがHRI文字を付加した印刷データに変更される。   In this way, in this process, the print data is changed to print data with HRI characters added.

二つ目の処理は、バーコード画像の角度と高さの変更を行う処理である。より具体的には、ヘッド制御部23(印刷制御部28)は、バーコード画像を90度回転させると共に、その高さを長くする印刷データの変更を行う。   The second process is a process for changing the angle and height of the barcode image. More specifically, the head control unit 23 (print control unit 28) rotates the barcode image by 90 degrees and changes the print data to increase the height.

図12及び図13は、バーコードの角度と高さの変更を例示した図である。図12及び図13において、シンボル画像S3は、変更前のバーコードの画像であり、矢印D2で示す用紙Pの搬送方向に対してバーが平行になるように配置されている。一方、シンボル画像S4は、変更後のバーコード画像であり、シンボル画像S3と角度が90度異なり、すなわち、90度回転されており、バーコードの高さもシンブル画像S3の高さH1よりも長い高さH2になっている。   12 and 13 are diagrams illustrating the change in the angle and height of the barcode. 12 and 13, a symbol image S3 is an image of a barcode before change, and is arranged so that the bars are parallel to the conveyance direction of the paper P indicated by the arrow D2. On the other hand, the symbol image S4 is a barcode image after the change, has an angle different from that of the symbol image S3 by 90 degrees, that is, is rotated by 90 degrees, and the barcode height is longer than the height H1 of the thimble image S3. The height is H2.

このような印刷データの変更により、ドット抜け箇所とバーコードが重なっていても、バーコードを正確に読み取れる確率が上がる。なお、バーコードの角度及び高さのうち、どちらか一方を変更するようにしてもよい。   Such a change in print data increases the probability that the barcode can be read accurately even if the dot missing portion and the barcode overlap. Note that one of the angle and the height of the barcode may be changed.

以上説明したように、印刷データの変更(ステップS35の処理)がなされるが、そのほかに、シンボルデータの種類を変更する、例えば、バーコードをQRコードに変更する、処理を行ってもよい。   As described above, the print data is changed (the process of step S35), but in addition to this, a process of changing the type of symbol data, for example, changing a barcode to a QR code may be performed.

なお、本実施の形態例では、プリンター2側の判断でヘッド素子の劣化判断処理を実行したが、POS端末装置1、劣化管理サーバー3などの外部装置(ホスト装置)からの指示(命令)を受けた際に劣化判断処理を実行してもよい。この場合には、劣化判断処理の実行を命令するプリンター2用のコマンドを用意し、ホスト装置側から当該コマンドをプリンター2へ送信して、劣化判断処理を実行させる。   In this embodiment, the deterioration determination process of the head element is executed by the determination on the printer 2 side. However, an instruction (command) from an external device (host device) such as the POS terminal device 1 or the deterioration management server 3 is issued. Degradation determination processing may be executed upon receipt. In this case, a command for the printer 2 that instructs execution of the deterioration determination process is prepared, and the command is transmitted from the host device side to the printer 2 to execute the deterioration determination process.

送信された当該コマンドは、プリンター2の通信部21で受信され、メイン制御部22がそのコマンドを解釈して劣化判断処理をヘッド制御部23(検査部27)に指示する。ヘッド制御部23(検査部27)は上述した劣化判断処理を実行後、データ記憶部24に記憶した劣化情報をメイン制御部22に渡し、メイン制御部22は、その劣化情報を通信部21を介して、コマンドの送信元のホスト装置に返信する。ホスト装置がPOS端末装置1である場合には、劣化管理部13が上記コマンドを送信し、返信される劣化情報を、メンテナンス処理等に利用可能に記憶する。また、ホスト装置が劣化管理サーバー3である場合には、劣化管理サーバー3が上記コマンドを送信し、返信される劣化情報を、メンテナンス処理等に利用可能に記憶する。   The transmitted command is received by the communication unit 21 of the printer 2, and the main control unit 22 interprets the command and instructs the head control unit 23 (inspection unit 27) to perform deterioration determination processing. After the head control unit 23 (inspection unit 27) executes the above-described deterioration determination process, the deterioration information stored in the data storage unit 24 is transferred to the main control unit 22, and the main control unit 22 transmits the deterioration information to the communication unit 21. To the host device that sent the command. When the host device is the POS terminal device 1, the deterioration management unit 13 transmits the command and stores the returned deterioration information so as to be usable for maintenance processing or the like. When the host device is the degradation management server 3, the degradation management server 3 transmits the above command and stores the degradation information returned for use in maintenance processing or the like.

なお、このようにホスト装置(POS端末装置1、劣化管理サーバー3等)からのコマンドにより、ホスト装置側が主導でヘッド素子の劣化を管理する場合には、初期設定処理もそれを指示(命令)するコマンドを用意し、そのコマンドをホスト装置から送信することで、プリンター2における上述した初期設定処理がなされてもよい。更に、この場合には、仮の変換テーブルをホスト装置に記憶し、プリンター2は測定した各ヘッド素子の分
圧電圧をホスト装置に返信し、ホスト装置が返信された分圧電圧によって各ヘッド素子の変換テーブルを作成し、記憶してもよい。
When the host device manages the deterioration of the head element by the command from the host device (POS terminal device 1, deterioration management server 3, etc.) as described above, the initial setting process also instructs (command) it. The above-described initial setting process in the printer 2 may be performed by preparing a command to be transmitted and transmitting the command from the host device. Further, in this case, a temporary conversion table is stored in the host device, the printer 2 returns the measured divided voltage of each head element to the host device, and each head element is returned by the divided voltage returned by the host device. These conversion tables may be created and stored.

この場合には、劣化判断処理においても、プリンター2は測定した各ヘッド素子の分圧電圧をホスト装置に返信し、ホスト装置が記憶している変換テーブルを用いて上述した劣化判断(閾値との比較、劣化情報の記憶等)を行う。なお、ホスト装置がPOS端末装置1である場合には、これらの処理は劣化管理部13が行う。   In this case, also in the deterioration determination process, the printer 2 returns the measured divided voltage of each head element to the host device, and uses the conversion table stored in the host device to determine the above-described deterioration determination (with the threshold value). Comparison, storage of deterioration information, etc.). When the host device is the POS terminal device 1, the deterioration management unit 13 performs these processes.

また、上述した実施の形態例の変形例として、ホスト装置(POS端末装置1、劣化管理サーバー3等)がヘッド素子の劣化情報を取得する方法に、ASB(オートステータスバック)という機能を適用してもよい。通常、ホスト装置とプリンターはマスター/スレーブの関係にあり、原則的にはプリンター側から自発的にホスト装置に情報送信を行うことはないが、プリンターで所定のステータス情報について設定を行うことにより、そのステータス情報に変化があった際にプリンター側からそのステータス情報を自発的にホスト装置に送信することができ、その機能がASBである。この機能を適用することにより、データ記憶部24に記憶される上記劣化情報に変化があった際には、自発的にその劣化情報がホスト装置に送信されるようになる。すなわち、ヘッド制御部23(検査部27)が劣化情報をデータ記憶部24から読み出し、読み出された劣化情報がメイン制御部22から通信部21を介してホスト装置(例えば、POS端末装置1の劣化管理部13)に送信される。   As a modification of the above-described embodiment, a function called ASB (auto status back) is applied to a method in which the host device (POS terminal device 1, deterioration management server 3, etc.) acquires head element deterioration information. May be. Normally, the host device and the printer are in a master / slave relationship, and in principle, the printer does not send information to the host device voluntarily, but by setting the specified status information on the printer, When the status information changes, the status information can be spontaneously transmitted from the printer side to the host device, and its function is ASB. By applying this function, when there is a change in the deterioration information stored in the data storage unit 24, the deterioration information is spontaneously transmitted to the host device. That is, the head control unit 23 (inspection unit 27) reads the deterioration information from the data storage unit 24, and the read deterioration information is transferred from the main control unit 22 via the communication unit 21 to the host device (for example, the POS terminal device 1). It is transmitted to the degradation manager 13).

また、上記の実施例において、ホスト装置(POS端末装置1、劣化管理サーバー3等)側へ劣化情報を提供する構成(態様)としてもよい。具体的には、ホスト装置は、プリンター2へコマンドを送信し、当該コマンドを受信したプリンター2は、測定した分圧電圧、及び/又は、予め設定した閾値による判断結果(上記閾値を用いた劣化判断処理の結果)をホスト装置へ送信する。   Further, in the above embodiment, a configuration (mode) may be adopted in which deterioration information is provided to the host device (POS terminal device 1, deterioration management server 3, etc.) side. Specifically, the host device transmits a command to the printer 2, and the printer 2 that has received the command determines whether the determination is based on the measured divided voltage and / or a preset threshold value (degradation using the above threshold value). The result of the determination process is transmitted to the host device.

以上説明したように、本実施の形態例及び変形例に係るプリンター2では、各ヘッド素子の初期状態を把握してその初期情報を記録し、使用後に比較的短い間隔で各ヘッド素子の検査を行い、その検査で得られる指標値と初期情報に基づいて劣化を判断するので、各ヘッド素子の劣化状態を適確に且つ故障する前に把握できる。更に、劣化判断の結果に基づく印刷データの変更を行った後に印刷処理を実行するので、シンボル画像などを読取り可能に印刷でき、ヘッド素子の劣化が進んでいても印刷を中断させなくて済む。   As described above, in the printer 2 according to the embodiment and the modification, the initial state of each head element is grasped and the initial information is recorded, and each head element is inspected at a relatively short interval after use. Since the deterioration is determined based on the index value and the initial information obtained by the inspection, the deterioration state of each head element can be grasped accurately and before failure. Further, since the printing process is executed after the print data is changed based on the result of the deterioration determination, the symbol image or the like can be printed in a readable manner, and the printing does not have to be interrupted even if the head element is deteriorated.

特に、ヘッド素子の劣化状態により、バーコードが良好に印刷できない虞がある場合には、バーコードを2次元シンボル(QRコードなどの2次元コード)に変更して印刷することもできるので、情報の読取りが可能な適正な印刷を実行することができる。   In particular, when there is a possibility that the barcode cannot be printed satisfactorily due to the deterioration state of the head element, the barcode can be changed to a two-dimensional symbol (two-dimensional code such as a QR code) and printed. Therefore, it is possible to execute proper printing capable of reading.

また、ヘッド素子の劣化状態により、バーコードが良好に印刷できない虞がある場合には、バーコードの位置、方向、サイズ等を、適宜、変更できるので、情報の読取りが可能な適正な印刷を実行することができる。   If there is a possibility that the barcode cannot be printed satisfactorily due to the deterioration of the head element, the position, direction, size, etc. of the barcode can be changed as appropriate. Can be executed.

また、ヘッド素子の劣化状態により、バーコードが良好に印刷できない虞がある場合には、バーコードに文字を付加して印刷することができるので、情報の読取りが可能な適正な印刷を実行することができる。   In addition, when there is a possibility that the barcode cannot be printed satisfactorily due to the deterioration of the head element, it is possible to print by adding characters to the barcode, so that proper printing capable of reading information is executed. be able to.

なお、本発明は、バブルジェット(登録商標)方式の印刷装置における劣化判断にも応用することができる。   The present invention can also be applied to deterioration determination in a bubble jet (registered trademark) printing apparatus.

[第2の実施の形態例]
第1の実施の形態例では、初期設定処理において変換テーブルという形で分圧電圧と抵抗値変化率を記憶しておき、劣化判断時において測定した分圧電圧から直ぐに抵抗値変化率を取得する方法であったが、その方法であると、各ヘッド素子(RH−1〜RH−n)について変換テーブルを保持する必要があるため、第2の実施の形態例では、一つの変換テーブルCTを保持し、その変換テーブルCTを用いて、劣化判断時に抵抗値変化率を算出する方法を取る。
[Second Embodiment]
In the first embodiment, the divided voltage and the resistance value change rate are stored in the form of a conversion table in the initial setting process, and the resistance value change rate is acquired immediately from the divided voltage measured at the time of deterioration determination. Although this method is used, since it is necessary to hold a conversion table for each head element (RH-1 to RH-n), in the second embodiment, one conversion table CT is used. And using the conversion table CT, a method of calculating a resistance value change rate at the time of deterioration determination is adopted.

以下、その具体的な内容について、第1の実施の形態例との相違点を中心に説明する。   Hereinafter, the specific contents will be described focusing on the differences from the first embodiment.

まず、装置構成(機能構成)と電圧印加回路25及びサーマルヘッド26の回路構成は、図1及び図2に基づいて説明した第1の実施の形態例と同様である。   First, the device configuration (functional configuration) and the circuit configurations of the voltage application circuit 25 and the thermal head 26 are the same as those in the first embodiment described with reference to FIGS.

但し、データ記憶部24には、仮の変換テーブル及び各ヘッド素子(RH−1〜RH−n)の変換テーブルの代わりに、共通の一つの変換テーブルCTを記憶する。   However, the data storage unit 24 stores a common conversion table CT instead of the temporary conversion table and the conversion table of each head element (RH-1 to RH-n).

この変換テーブルCTは、分圧電圧値(AD値)を抵抗値(Ω)に変換するためのテーブルであり、当該変換テーブルCTは、プリンター2の出荷前に生成されて、プリンター2のデータ記憶部24に記憶される。以下、変換テーブルCTの内容について説明する。   The conversion table CT is a table for converting the divided voltage value (AD value) into a resistance value (Ω). The conversion table CT is generated before shipment of the printer 2 and is stored in the printer 2 as data. Stored in the unit 24. Hereinafter, the contents of the conversion table CT will be described.

ヘッド素子(RH−1〜RH−n)の検査時(劣化判断時)に形成される、検査用抵抗R1とヘッド素子の抵抗要素(発熱体)をつなぐ直列回路では、検査用抵抗R1の抵抗値(Ω)をRで表現し、ヘッド素子の抵抗要素の抵抗値(Ω)をRheadで表現すると、以下の関係式(1)が成り立つ。   In the series circuit connecting the inspection resistor R1 and the resistance element (heating element) of the head element, which is formed when the head elements (RH-1 to RH-n) are inspected (deterioration judgment), the resistance of the inspection resistor R1 When the value (Ω) is expressed by R and the resistance value (Ω) of the resistance element of the head element is expressed by Rhead, the following relational expression (1) is established.

Rhead=(R×AD)/(255−AD) (1)
なお、ADは、図2の「READ_HEAD」でA/DコンバーターADCを介して読み取られる分圧電圧値(AD値)であり、例えば、0−255(0−3.3Vに相当)の1バイトのデータで表現される。なお、分圧電圧値(AD値)は、4バイト以下のデータで表現されることが好ましい。
Rhead = (R × AD) / (255−AD) (1)
Note that AD is a divided voltage value (AD value) read via the A / D converter ADC by “READ_HEAD” in FIG. 2, for example, 1 byte of 0-255 (corresponding to 0-3.3 V) It is expressed with the data. The divided voltage value (AD value) is preferably expressed by data of 4 bytes or less.

図14は、分圧電圧値(AD値)と抵抗値(Rhead)の関係を示すグラフである。図14に例示されるグラフは、検査用抵抗R1の抵抗値Rを255Ωとした場合に、上記関係式(1)に基づいて求められるものである。当該グラフは、測定(取得)された分圧電圧値(AD値)を抵抗値(Rhead)に変換するために用いることができ、その対応関係を表形式で表現したものが変換テーブルCTである。   FIG. 14 is a graph showing the relationship between the divided voltage value (AD value) and the resistance value (Rhead). The graph illustrated in FIG. 14 is obtained based on the relational expression (1) when the resistance value R of the inspection resistor R1 is 255Ω. The graph can be used to convert a measured (acquired) divided voltage value (AD value) into a resistance value (Rhead), and the correspondence table is expressed in a tabular form as a conversion table CT. .

図15は、変換テーブルCTの一例を示した図である。図15に示すように、変換テーブルCTには、分圧電圧値である「AD値」に、上記関係式(1)で対応付けられる「抵抗値(Ω)」が対応付けて収められている。従って、変換テーブルCTを用いれば、検査時(劣化判断時)に、測定(取得)されるAD値から、測定対象のヘッド素子の抵抗値(Rhead)をすぐに取得することができる。   FIG. 15 is a diagram illustrating an example of the conversion table CT. As shown in FIG. 15, the “resistance value (Ω)” associated with the relational expression (1) is associated with the “AD value” that is the divided voltage value in the conversion table CT. . Therefore, if the conversion table CT is used, the resistance value (Rhead) of the head element to be measured can be immediately acquired from the AD value measured (acquired) at the time of inspection (degradation judgment).

このような変換テーブルCTが、出荷前の各プリンターに記憶される。なお、プリンター2の各個体には、基板上のパターンや素子の抵抗値に起因する誤差があるので、実際の測定を行って、その測定結果に合うように上記変換テーブルCTの値(抵抗値又はAD値)に補正を加えるようにしてもよい。この場合には、プリンター2の各個体に応じた変換テーブルCTが生成されて、プリンター2に記憶される。   Such a conversion table CT is stored in each printer before shipment. Since each printer 2 has an error due to the pattern on the substrate and the resistance value of the element, the actual measurement is performed and the value (resistance value) of the conversion table CT is adjusted so as to match the measurement result. Alternatively, the AD value may be corrected. In this case, a conversion table CT corresponding to each individual printer 2 is generated and stored in the printer 2.

以上説明した変換テーブルCTを用いて第2の実施の形態例では、以下のような処理を実行する。   In the second embodiment, the following processing is executed using the conversion table CT described above.

まず、第1の実施の形態例で行われる、図3に基づいて説明した各ヘッド素子(RH−1〜RH−n)の変換テーブル作成処理に代わって、各ヘッド素子(RH−1〜RH−n)の初期値の取得処理を行う。   First, instead of the conversion table creation processing for each head element (RH-1 to RH-n) described with reference to FIG. 3 performed in the first embodiment, each head element (RH-1 to RH). -N) The initial value acquisition process is performed.

ヘッド素子(RH−1〜RH−n)においては、劣化が進むことによりその発熱体(抵抗素子)の抵抗値が変化することが知られている。変化の仕方にはいくつかの現象が見られるが、1つの現象においては、抵抗値が徐々に増加していく。また、他の現象においては、抵抗値が徐々に減少していき、その後急激に増加する。いずれの場合においても、ある程度以上に抵抗値が増加すると印刷時に十分に発熱せず印刷不良を起こす虞がある。   In the head elements (RH-1 to RH-n), it is known that the resistance value of the heating element (resistive element) changes as the deterioration progresses. There are several phenomena in the way of change, but in one phenomenon, the resistance value gradually increases. In other phenomena, the resistance value gradually decreases and then increases rapidly. In either case, if the resistance value increases more than a certain level, there is a risk of not generating sufficient heat during printing and causing printing failure.

従って、ヘッド素子(RH−1〜RH−n)の劣化判断では、各ヘッド素子(RH−1〜RH−n)の(発熱体の)抵抗値の変化を段階的に把握することが重要である。   Therefore, in determining the deterioration of the head elements (RH-1 to RH-n), it is important to grasp the change in resistance value (of the heating element) of each head element (RH-1 to RH-n) step by step. is there.

そのため、第2の実施の形態例では、まず、各ヘッド素子(RH−1〜RH−n)の初期状態の値(初期値)を把握する処理(初期値取得処理)を行った後、適切な頻度でその時の状態を示す値(状態値)を測定し、初期値と状態値によって劣化判断を行う。   Therefore, in the second embodiment, first, after performing processing (initial value acquisition processing) for grasping the initial state values (initial values) of the head elements (RH-1 to RH-n), A value (state value) indicating the state at that time is measured at a certain frequency, and the deterioration is determined based on the initial value and the state value.

図16は、初期値取得処理の手順を例示したフローチャートである。初期値取得処理は、プリンター2の初回起動時等に実行される。   FIG. 16 is a flowchart illustrating the procedure of the initial value acquisition process. The initial value acquisition process is executed when the printer 2 is activated for the first time.

ヘッド制御部23の検査部27は、まず、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図16のステップS41)。   The inspection unit 27 of the head control unit 23 first outputs a signal to the voltage application circuit 25 and applies the inspection voltage (3.3 V) to the thermal head 26 (step S41 in FIG. 16).

次に、検査部27は、初期値を取得する1つのヘッド素子(RH−1〜RH−n)を選択し、そのヘッド素子(RH−1〜RH−n)に通電する(図16のステップS42及びS43)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the inspection unit 27 selects one head element (RH-1 to RH-n) from which an initial value is acquired, and energizes the head element (RH-1 to RH-n) (step in FIG. 16). S42 and S43). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、電圧が安定するのを待った後(図16のステップS44)、検査部27は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧の測定値(AD値)を取得する(図16のステップS45)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)初期抵抗値に対応する情報が取得される。   As a result, a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element is formed. After waiting for the voltage to stabilize (step S44 in FIG. 16), the inspection unit 27 reads READ_HEAD. The measured value (AD value) of the divided voltage between the inspection resistor R1 of the series circuit and the resistance element (heating element) of the head element is acquired by the signal (step S45 in FIG. 16). That is, information corresponding to the initial resistance value (of the resistance element (heating element)) of the head element is acquired.

次に、検査部27は、取得したAD値を当該ヘッド素子の初期値として、データ記憶部24に記憶(保存)する(図16のステップS46)。   Next, the inspection unit 27 stores (saves) the acquired AD value as an initial value of the head element in the data storage unit 24 (step S46 in FIG. 16).

なお、取得したAD値を、データ記憶部24に記憶される上記変換テーブルCTを用いて抵抗値に変換し、変換後の抵抗値を初期値としてデータ記憶部24に記憶するようにしてもよい。なお、AD値を初期値とすることにより、記憶するデータ量を1バイトに抑えることができる。   The acquired AD value may be converted into a resistance value using the conversion table CT stored in the data storage unit 24, and the converted resistance value may be stored in the data storage unit 24 as an initial value. . Note that by setting the AD value as an initial value, the amount of data to be stored can be suppressed to 1 byte.

検査部27は、以上説明した初期値取得処理(S42−S46)を、全てのヘッド素子(RH−1〜RH−n)について実行する(図16のステップS47のNo)。   The inspection unit 27 executes the above-described initial value acquisition process (S42-S46) for all the head elements (RH-1 to RH-n) (No in step S47 in FIG. 16).

全てのヘッド素子(RH−1〜RH−n)について初期値取得処理が実行されると(図16のステップS47のYes)、処理が終了し、全てのヘッド素子(RH−1〜RH−n)について初期値がデータ記憶部24に記憶される。   When the initial value acquisition process is executed for all the head elements (RH-1 to RH-n) (Yes in step S47 in FIG. 16), the process ends, and all the head elements (RH-1 to RH-n) are processed. ) Is stored in the data storage unit 24.

次に、第2の実施の形態例における劣化判断処理について説明する。劣化判断処理は、第1の実施の形態例の場合と同タイミングで行われ、すなわち、図6に基づいて説明したタイミングで行われて、図6のステップS13〜ステップS18の処理に代わって、以下の処理が実行される。   Next, the degradation determination process in the second embodiment will be described. The deterioration determination process is performed at the same timing as in the case of the first embodiment, that is, performed at the timing described based on FIG. 6, and instead of the processes of steps S <b> 13 to S <b> 18 of FIG. 6, The following processing is executed.

ヘッド制御部23の検査部27は、まず、このタイミングで状態値取得処理を実行する。   The inspection unit 27 of the head control unit 23 first executes state value acquisition processing at this timing.

図17は、状態値取得処理の手順を例示したフローチャートである。まず、検査部27は、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図17のステップS51)。   FIG. 17 is a flowchart illustrating the procedure of the state value acquisition process. First, the inspection unit 27 outputs a signal to the voltage application circuit 25 and applies the inspection voltage (3.3 V) to the thermal head 26 (step S51 in FIG. 17).

次に、検査部27は、状態値を取得する1つのヘッド素子(RH−1〜RH−n)を選択し、そのヘッド素子(RH−1〜RH−n)に通電する(図17のステップS52及びS53)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the inspection unit 27 selects one head element (RH-1 to RH-n) from which the state value is acquired, and energizes the head element (RH-1 to RH-n) (step in FIG. 17). S52 and S53). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、電圧が安定するのを待った後(図17のステップS54)、検査部27は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧の測定値(AD値)を取得する(図17のステップS55)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)その時点の抵抗値に対応する情報が取得される。   As a result, a series circuit is formed to connect the inspection resistor R1 and the resistance element (heating element) of the head element. After waiting for the voltage to stabilize (step S54 in FIG. 17), the inspection unit 27 reads READ_HEAD. The measured value (AD value) of the divided voltage between the inspection resistor R1 of the series circuit and the resistance element (heating element) of the head element is acquired by the signal (step S55 in FIG. 17). That is, information corresponding to the current resistance value of the head element (of the resistance element (heating element)) is acquired.

次に、検査部27は、取得したAD値を当該ヘッド素子の状態値として、データ記憶部24に記憶(保存)する(図17のステップS56)。なお、状態値は、ヘッド制御部23内のRAMに記憶してもよい。   Next, the inspection unit 27 stores (saves) the acquired AD value as the state value of the head element in the data storage unit 24 (step S56 in FIG. 17). The state value may be stored in a RAM in the head controller 23.

なお、取得したAD値を、データ記憶部24に記憶される上記変換テーブルCTを用いて抵抗値に変換し、変換後の抵抗値を状態値としてデータ記憶部24に記憶するようにしてもよい。なお、AD値を状態値とすることにより、記憶するデータ量を1バイトに抑えることができる。   The acquired AD value may be converted into a resistance value using the conversion table CT stored in the data storage unit 24, and the converted resistance value may be stored in the data storage unit 24 as a state value. . Note that the amount of data to be stored can be suppressed to 1 byte by using the AD value as the state value.

検査部27は、以上説明した状態値取得処理(S52−S56)を、全てのヘッド素子(RH−1〜RH−n)について実行(終了)していない場合には(図17のステップS57のNo)、検査用電圧(3.3V)の印加を遮断し、処理を図6のステップS11に戻す。   The inspection unit 27 does not execute (end) the state value acquisition process (S52 to S56) described above for all the head elements (RH-1 to RH-n) (in step S57 in FIG. 17). No), the application of the inspection voltage (3.3 V) is cut off, and the process returns to step S11 in FIG.

一方、検査部27は、上記状態値取得処理(S52−S56)を、全てのヘッド素子(RH−1〜RH−n)について実行(終了)した場合には(図17のステップS57のYes)、検査用電圧(3.3V)の印加を遮断し、劣化情報取得処理を実行する(図17のA)。   On the other hand, when the inspection unit 27 executes (ends) the state value acquisition process (S52 to S56) for all the head elements (RH-1 to RH-n) (Yes in step S57 in FIG. 17). Then, the application of the inspection voltage (3.3 V) is cut off, and the deterioration information acquisition process is executed (A in FIG. 17).

なお、ステップS57における、全てのヘッド素子(RH−1〜RH−n)とは、以下に説明する劣化情報取得処理を実行後にカウントされる。   Note that all the head elements (RH-1 to RH-n) in step S57 are counted after executing the deterioration information acquisition process described below.

劣化情報取得処理を開始する時点では、全てのヘッド素子(RH−1〜RH−n)について状態値がデータ記憶部24に記憶されているので、それら最新の状態値を用いて、劣化情報取得処理(抵抗値変化率取得処理)が実行される。   Since the state values are stored in the data storage unit 24 for all the head elements (RH-1 to RH-n) at the time of starting the deterioration information acquisition process, the deterioration information acquisition is performed using these latest state values. Processing (resistance value change rate acquisition processing) is executed.

図18は、劣化情報取得処理の手順を例示したフローチャートである。まず、検査部27は、1つのヘッド素子(RH−1〜RH−n)を選択する(図18のステップS61)。その後、検査部27は、データ記憶部24にアクセスし、選択したヘッド素子(RH−1〜RH−n)の初期値を読み出す(図18のステップS62)。当該初期値は、上述した初期値取得処理で取得されて記憶されたものである。   FIG. 18 is a flowchart illustrating the procedure of the deterioration information acquisition process. First, the inspection unit 27 selects one head element (RH-1 to RH-n) (step S61 in FIG. 18). Thereafter, the inspection unit 27 accesses the data storage unit 24 and reads the initial values of the selected head elements (RH-1 to RH-n) (step S62 in FIG. 18). The initial value is acquired and stored in the initial value acquisition process described above.

検査部27は、読み出した初期値を、データ記憶部24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図18のステップS63)。読み出された初期値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   The inspection unit 27 converts the read initial value into a resistance value using the conversion table CT stored in the data storage unit 24 (step S63 in FIG. 18). Since the read initial value is an AD value, conversion to a resistance value is performed by reading the resistance value (Ω) stored in association with the AD value in the conversion table CT.

次に、検査部27は、データ記憶部24にアクセスし、選択したヘッド素子(RH−1〜RH−n)の状態値を読み出す(図18のステップS64)。当該状態値は、上述した状態値取得処理で取得されて記憶されたものである。   Next, the inspection unit 27 accesses the data storage unit 24 and reads the state values of the selected head elements (RH-1 to RH-n) (step S64 in FIG. 18). The state value is acquired and stored in the state value acquisition process described above.

検査部27は、読み出した状態値を、データ記憶部24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図18のステップS65)。読み出された状態値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   The inspection unit 27 converts the read state value into a resistance value using the conversion table CT stored in the data storage unit 24 (step S65 in FIG. 18). Since the read state value is an AD value, conversion to a resistance value is performed by reading the resistance value (Ω) stored in association with the AD value in the conversion table CT.

次に、検査部27は、抵抗値変化率の計算を行う(図18のステップS66)。具体的には、下記(2)式を用いて行う。   Next, the inspection unit 27 calculates a resistance value change rate (step S66 in FIG. 18). Specifically, the following equation (2) is used.

抵抗値変化率(%)=(状態値(Ω)−初期値(Ω))/初期値(Ω)×100 (2)
なお、初期値(Ω)は、ステップS63で抵抗値に変換された初期値であり、状態値(Ω)は、ステップS65で抵抗値に変換された状態値である。
Resistance value change rate (%) = (state value (Ω) −initial value (Ω)) / initial value (Ω) × 100 (2)
The initial value (Ω) is the initial value converted into the resistance value in step S63, and the state value (Ω) is the state value converted into the resistance value in step S65.

計算された抵抗値変化率が、マイナスである場合には、ヘッド素子(RH−1〜RH−n)の抵抗値が減少していることを意味し、計算された抵抗値変化率が、プラスである場合には、ヘッド素子(RH−1〜RH−n)の抵抗値が増加していることを意味する。   If the calculated resistance value change rate is negative, it means that the resistance values of the head elements (RH-1 to RH-n) are decreasing, and the calculated resistance value change rate is positive. In this case, it means that the resistance value of the head elements (RH-1 to RH-n) is increased.

上述の通り、ヘッド素子(RH−1〜RH−n)の劣化が進んでいる場合、その抵抗値が減少している場合及び増加している場合があり、いずれの場合にもその絶対値が所定値以上になった場合には、ドット抜けの虞があるとしてユーザーに報知すべきである。   As described above, when the deterioration of the head elements (RH-1 to RH-n) is progressing, the resistance value may be decreasing or increasing, and in any case, the absolute value is If it exceeds a predetermined value, the user should be informed that there is a risk of missing dots.

従って、その所定値を閾値として設定し、上記計算された抵抗値変化率がその閾値を超えたか否かを、ヘッド制御部23は判断する。具体的には、閾値は、例えば、絶対値で「15%」と「30%」に設定される。   Therefore, the predetermined value is set as a threshold value, and the head controller 23 determines whether or not the calculated resistance value change rate exceeds the threshold value. Specifically, for example, the threshold value is set to “15%” and “30%” in absolute values.

その後、検査部27は、上記算出した抵抗値変化率と上記閾値を用いた判断結果を、劣化情報としてデータ記憶部24に記憶(保存)する(図18のステップS67)。   Thereafter, the inspection unit 27 stores (saves) the determination result using the calculated resistance value change rate and the threshold value in the data storage unit 24 as deterioration information (step S67 in FIG. 18).

図19は、劣化情報の一例を示した図である。図19に例示される劣化情報は、各ヘッド素子(RH−1〜RH−n)の識別情報(ヘッド素子No.)に、そのヘッド素子(RH−1〜RH−n)の上記算出した抵抗値変化率と、上記閾値を用いた判断結果としてのアラームフラグが対応付けられた情報である。これらの情報がデータ記憶部24に記憶(保存)される。   FIG. 19 is a diagram showing an example of deterioration information. The deterioration information illustrated in FIG. 19 includes the calculated resistance of the head element (RH-1 to RH-n) in the identification information (head element No.) of each head element (RH-1 to RH-n). This is information in which a value change rate is associated with an alarm flag as a determination result using the threshold value. These pieces of information are stored (saved) in the data storage unit 24.

図19に示される例では、上述した閾値として、例えば、「15%」、「30%」、「−15%」、「−30%」の4つの閾値が設定されている場合である。「15%」と「−15%」の閾値は軽度の劣化進行の基準であり、これらを超えた(「−15%」については、これよりも下回る)ヘッド素子(RH−1〜RH−n)のアラームフラグには、ON(A)が立つ(記憶される)。また、「30%」と「−30%」の閾値は強度の劣化進行の基準であり、これらを超えた(「−30%」については、これよりも下回る)ヘッド素子(RH−1〜RH−n)のアラームフラグには、ON(B)が立つ(記憶される)。なお、閾値を超えていないヘッド素子(RH−1〜RH−n)のアラームフラグには、OFFが記憶される。   In the example shown in FIG. 19, for example, four threshold values of “15%”, “30%”, “−15%”, and “−30%” are set as the above-described threshold values. The threshold values of “15%” and “−15%” are criteria for mild progress of deterioration, and head elements (RH-1 to RH-n) exceeding these (“-15%” is lower than this). ) ON (A) is set (stored) in the alarm flag. In addition, the threshold values of “30%” and “−30%” are criteria for the progress of deterioration of the strength, and head elements (RH-1 to RH) exceeding these values (“−30%” is lower than this). The alarm flag (-n) is ON (B) (stored). Note that OFF is stored in the alarm flags of the head elements (RH-1 to RH-n) that do not exceed the threshold value.

例えば、図19において、ヘッド素子No.「2」のヘッド素子(RH−1〜RH−n)は、抵抗値変化率が「5%」であり、従って、アラームフラグは「OFF」となる。また、ヘッド素子No.「61」のヘッド素子(RH−1〜RH−n)は、抵抗値変化率が「−18%」であり、従って、アラームフラグは「ON(A)」となる。また、ヘッド素子No.「150」のヘッド素子(RH−1〜RH−n)は、抵抗値変化率が「33%」であり、従って、アラームフラグは「ON(B)」となる。これらの劣化情報から、ヘッド素子No.「2」のヘッド素子(RH−1〜RH−n)は劣化があまり進んでいないと判断でき、ヘッド素子No.「61」のヘッド素子(RH−1〜RH−n)は劣化がある程度進んでいると判断でき、ヘッド素子No.「150」のヘッド素子(RH−1〜RH−n)は劣化がかなり進んでいると判断できる。   For example, in FIG. The head element (RH-1 to RH-n) “2” has a resistance value change rate of “5%”, and therefore the alarm flag is “OFF”. The head element No. The head element (RH-1 to RH-n) “61” has a resistance value change rate of “−18%”, and therefore the alarm flag is “ON (A)”. The head element No. The head element (RH-1 to RH-n) “150” has a resistance value change rate of “33%”, and therefore the alarm flag is “ON (B)”. From these deterioration information, the head element No. It can be determined that the head elements (RH-1 to RH-n) “2” have not deteriorated so much. It can be determined that the head elements (RH-1 to RH-n) of “61” have deteriorated to some extent. It can be judged that the head elements (RH-1 to RH-n) of “150” have considerably deteriorated.

検査部27は、以上説明した劣化情報取得処理(S61−S67)を、全てのヘッド素子(RH−1〜RH−n)について実行する(図18のステップS68のNo)。   The inspection unit 27 executes the deterioration information acquisition process (S61-S67) described above for all the head elements (RH-1 to RH-n) (No in step S68 in FIG. 18).

全てのヘッド素子(RH−1〜RH−n)について劣化情報取得処理が実行されると(図18のステップS68のYes)、処理が終了し、全てのヘッド素子(RH−1〜RH−n)について劣化情報がデータ記憶部24に記憶される。   When the deterioration information acquisition process is executed for all the head elements (RH-1 to RH-n) (Yes in step S68 in FIG. 18), the process ends and all the head elements (RH-1 to RH-n). ) Is stored in the data storage unit 24.

その後、処理が図6のステップS11に戻る。   Thereafter, the processing returns to step S11 in FIG.

なお、上述の実施の形態例では、全てのヘッド素子(RH−1〜RH−n)について状態値を取得した後に、劣化情報取得処理を行ったが、ヘッド素子(RH−1〜RH−n)毎に、状態値の取得と劣化情報の取得を連続して行う処理手順としてもよい。   In the above-described embodiment, the deterioration information acquisition process is performed after the state values are acquired for all the head elements (RH-1 to RH-n), but the head elements (RH-1 to RH-n) are used. ), It may be a processing procedure for continuously obtaining the state value and obtaining the deterioration information.

図20は、状態値の取得と劣化情報の取得を連続して行う場合の手順を示したフローチャートである。なお、この処理は、図6のステップS13〜ステップS18の処理に代わって実行される。   FIG. 20 is a flowchart showing a procedure in a case where acquisition of state values and acquisition of deterioration information are continuously performed. This process is executed in place of the processes in steps S13 to S18 in FIG.

まず、検査部27は、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図20のステップS71)。   First, the inspection unit 27 outputs a signal to the voltage application circuit 25 and applies the inspection voltage (3.3 V) to the thermal head 26 (step S71 in FIG. 20).

次に、検査部27は、1つのヘッド素子(RH−1〜RH−n)を選択し、そのヘッド素子(RH−1〜RH−n)に通電する(図20のステップS72及びS73)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the inspection unit 27 selects one head element (RH-1 to RH-n) and energizes the head element (RH-1 to RH-n) (steps S72 and S73 in FIG. 20). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、電圧が安定するのを待った後(図20のステップS74)、検査部27は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧の測定値(AD値)を取得する(図20のステップS75)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)その時点の抵抗値に対応する情報が取得される。   As a result, a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element is formed. After waiting for the voltage to stabilize (step S74 in FIG. 20), the inspection unit 27 reads READ_HEAD. The measured value (AD value) of the divided voltage between the inspection resistor R1 of the series circuit and the resistance element (heating element) of the head element is acquired by the signal (step S75 in FIG. 20). That is, information corresponding to the current resistance value of the head element (of the resistance element (heating element)) is acquired.

次に、検査部27は、取得した状態値を、データ記憶部24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図20のステップS76)。読み出された状態値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   Next, the inspection unit 27 converts the acquired state value into a resistance value using the conversion table CT stored in the data storage unit 24 (step S76 in FIG. 20). Since the read state value is an AD value, conversion to a resistance value is performed by reading the resistance value (Ω) stored in association with the AD value in the conversion table CT.

次に、検査部27は、データ記憶部24にアクセスし、選択したヘッド素子(RH−1〜RH−n)の初期値を読み出す(図20のステップS77)。当該初期値は、上述した初期値取得処理で取得されて記憶されたものである。   Next, the inspection unit 27 accesses the data storage unit 24 and reads the initial values of the selected head elements (RH-1 to RH-n) (step S77 in FIG. 20). The initial value is acquired and stored in the initial value acquisition process described above.

検査部27は、読み出した初期値を、データ記憶部24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図20のステップS78)。読み出された初期値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   The inspection unit 27 converts the read initial value into a resistance value using the conversion table CT stored in the data storage unit 24 (step S78 in FIG. 20). Since the read initial value is an AD value, conversion to a resistance value is performed by reading the resistance value (Ω) stored in association with the AD value in the conversion table CT.

次に、検査部27は、抵抗値変化率の計算を行う(図20のステップS79)。具体的には、上述した図18のステップS66と同様に行う。   Next, the inspection unit 27 calculates a resistance value change rate (step S79 in FIG. 20). Specifically, it is performed in the same manner as step S66 in FIG.

その後、検査部27は、劣化情報の保存処理を実行する(図20のステップS80)。具体的には、図18のステップS67と同様に行う。   Thereafter, the inspection unit 27 executes a deterioration information storing process (step S80 in FIG. 20). Specifically, it is performed in the same manner as step S67 in FIG.

その後、検査部27が検査用電圧(3.3V)の印加を遮断し、処理が図6のステップS11に戻る。   Thereafter, the inspection unit 27 cuts off the application of the inspection voltage (3.3 V), and the process returns to step S11 in FIG.

第2の実施の形態例では、このようにして処理が実行される。その他の点については、第1の実施の形態例の場合と同様である。   In the second embodiment, the process is executed in this way. The other points are the same as in the case of the first embodiment.

以上説明したように、第2の実施の形態例に係るプリンター2では、ヘッド素子毎に、適切なタイミングで、抵抗値から劣化判断を行うことができ、プリンター2は変換テーブルCTを予め記憶しておけばよいので、プリンター2に記憶するデータ量を少なく抑えることができる。   As described above, in the printer 2 according to the second embodiment, deterioration can be determined from the resistance value at an appropriate timing for each head element, and the printer 2 stores the conversion table CT in advance. Therefore, the amount of data stored in the printer 2 can be reduced.

また、劣化判断には、各ヘッド素子の初期値(分圧電圧値(AD値)、抵抗値(Ω))が用いられるので、適確な劣化判断を行うことができる。   In addition, since the initial values (divided voltage value (AD value) and resistance value (Ω)) of each head element are used for the deterioration determination, an appropriate deterioration determination can be performed.

劣化情報は、ヘッド素子の抵抗値変化率を含むので、適確な劣化判断を行うことができる。   Since the deterioration information includes the resistance value change rate of the head element, it is possible to accurately determine the deterioration.

また、抵抗値変化率を算出するまでに記憶しておくAD値は、4バイト以下のデータであり、記憶しておくデータ量を少なく抑えることができる。   The AD value stored until the resistance value change rate is calculated is data of 4 bytes or less, and the amount of data to be stored can be reduced.

本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。   The protection scope of the present invention is not limited to the above-described embodiment, but covers the invention described in the claims and equivalents thereof.

1…POS端末装置、2…プリンター、3…劣化管理サーバー、4…通信網、11…POSアプリケーション部、12…プリンタードライバー部、13…劣化管理部、21…通信部、22…メイン制御部、23…ヘッド制御部、24…データ記憶部、25…電圧印加回路、26…サーマルヘッド、27…検査部、28…印刷制御部、29…カバー、100…プリンターシステム、200…劣化管理システム、262…ラッチドライバー、263…シフトレジスター、RH−1〜RH−n…ヘッド素子、S1〜S4…シンボル画像、P…用紙、CT…変換テーブル。
DESCRIPTION OF SYMBOLS 1 ... POS terminal device, 2 ... Printer, 3 ... Deterioration management server, 4 ... Communication network, 11 ... POS application part, 12 ... Printer driver part, 13 ... Deterioration management part, 21 ... Communication part, 22 ... Main control part, DESCRIPTION OF SYMBOLS 23 ... Head control part, 24 ... Data storage part, 25 ... Voltage application circuit, 26 ... Thermal head, 27 ... Inspection part, 28 ... Print control part, 29 ... Cover, 100 ... Printer system, 200 ... Deterioration management system, 262 ... Latch driver, 263 ... Shift register, RH-1 to RH-n ... Head element, S1 to S4 ... Symbol image, P ... Paper, CT ... Conversion table.

Claims (8)

複数のヘッド素子を備える印刷ヘッドと、
前記各ヘッド素子の初期状態を示す初期情報を記憶する記憶部と、
前記各ヘッド素子の劣化状況を判断するための指標値を取得する検査制御部と、
受信した印刷データに従って前記印刷ヘッドに印刷を実行させる印刷制御部と、を備える印刷装置であって、
前記検査制御部は、前記記憶部に記憶された初期情報と、前記取得した指標値に基づいて前記各ヘッド素子の劣化を判断し、
前記印刷制御部は、上記判断に基づいて、前記印刷データを変更し、当該変更された印刷データに従って前記印刷ヘッドに印刷を実行させる
ことを特徴とする印刷装置。
A print head comprising a plurality of head elements;
A storage unit that stores initial information indicating an initial state of each of the head elements;
An inspection control unit for obtaining an index value for determining the deterioration state of each head element;
A print control unit that causes the print head to execute printing according to received print data,
The inspection control unit determines deterioration of each head element based on the initial information stored in the storage unit and the acquired index value,
The printing control unit changes the print data based on the determination, and causes the print head to execute printing according to the changed print data.
請求項1において、
前記印刷制御部による印刷データの変更は、シンボル画像の印刷データの変更である
ことを特徴とする印刷装置。
In claim 1,
The printing apparatus according to claim 1, wherein the change of the print data by the print control unit is a change of print data of the symbol image.
請求項2において、
前記シンボル画像の印刷データの変更は、バーコードの画像を2次元コードの画像に変更する印刷データの変更である
ことを特徴とする印刷装置。
In claim 2,
The change of the print data of the symbol image is a change of print data for changing a barcode image into a two-dimensional code image.
請求項2において、
前記シンボル画像の印刷データの変更は、バーコードの画像の位置を変更する印刷データの変更である
ことを特徴とする印刷装置。
In claim 2,
The change of the print data of the symbol image is a change of the print data for changing the position of the barcode image.
請求項2あるいは4において、
前記シンボル画像の印刷データの変更は、バーコードの画像の角度を変更する印刷データの変更である
ことを特徴とする印刷装置。
In claim 2 or 4,
The change of the print data of the symbol image is a change of the print data for changing the angle of the barcode image.
請求項2、4、及び5のいずれか1項において、
前記シンボル画像の印刷データの変更は、バーコードの画像のサイズを変更する印刷データの変更である
ことを特徴とする印刷装置。
In any one of claims 2, 4, and 5,
Changing the print data of the symbol image is changing the print data for changing the size of the barcode image.
請求項2あるいは4において、
前記シンボル画像の印刷データの変更は、バーコードの画像に文字を付加する印刷データの変更である
ことを特徴とする印刷装置。
In claim 2 or 4,
The change of the print data of the symbol image is a change of print data for adding characters to the barcode image.
複数のヘッド素子を備える印刷ヘッドと、前記各ヘッド素子の初期状態を示す初期情報を記憶する記憶部と、前記各ヘッド素子の劣化状況を判断するための指標値を取得する検査制御部と、受信した印刷データに従って前記印刷ヘッドに印刷を実行させる印刷制御部と、を備える印刷装置の制御方法であって、
前記検査制御部は、前記記憶部に記憶された初期情報と、前記取得した指標値に基づいて前記各ヘッド素子の劣化を判断し、
前記印刷制御部は、上記判断に基づいて、前記印刷データを変更し、当該変更された印刷データに従って前記印刷ヘッドに印刷を実行させる
ことを特徴とする制御方法。
A print head including a plurality of head elements; a storage unit that stores initial information indicating an initial state of each head element; and an inspection control unit that acquires an index value for determining a deterioration state of each head element; A print control unit that causes the print head to execute printing in accordance with received print data,
The inspection control unit determines deterioration of each head element based on the initial information stored in the storage unit and the acquired index value,
The print control unit changes the print data based on the determination, and causes the print head to execute printing according to the changed print data.
JP2016034499A 2015-12-25 2016-02-25 Printing device and control method Active JP6679982B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015253795 2015-12-25
JP2015253795 2015-12-25

Publications (2)

Publication Number Publication Date
JP2017119412A true JP2017119412A (en) 2017-07-06
JP6679982B2 JP6679982B2 (en) 2020-04-15

Family

ID=59271751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016034499A Active JP6679982B2 (en) 2015-12-25 2016-02-25 Printing device and control method

Country Status (1)

Country Link
JP (1) JP6679982B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019171742A (en) * 2018-03-29 2019-10-10 サトーホールディングス株式会社 Printer and printer control method
US10618312B2 (en) 2017-11-10 2020-04-14 Seiko Epson Corporation Thermal printer, control method of a thermal printer, and printing system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6436469A (en) * 1987-07-31 1989-02-07 Tokyo Electric Co Ltd Label printer
JPH03211060A (en) * 1990-01-16 1991-09-13 Fujitsu Ltd Control system of thermal printer
JPH03268955A (en) * 1990-03-19 1991-11-29 Nec Eng Ltd Painting of thermal printer
JPH05104763A (en) * 1991-10-18 1993-04-27 Furuno Electric Co Ltd Dot inspection device of thermal printer
JPH11291534A (en) * 1998-04-10 1999-10-26 Ishida Co Ltd Thermal head device
JP2000043307A (en) * 1998-07-29 2000-02-15 Sony Corp Head-diagnosing apparatus and method for diagnosing head
JP2000141730A (en) * 1998-11-13 2000-05-23 Nec Corp Defect detecting method for thermal head
JP2006044027A (en) * 2004-08-04 2006-02-16 Matsushita Electric Ind Co Ltd Printer and method of printing
JP2006076172A (en) * 2004-09-10 2006-03-23 Toshiba Tec Corp Bar code printer
JP2010137408A (en) * 2008-12-10 2010-06-24 Hitachi Industrial Equipment Systems Co Ltd Printing apparatus
JP2011207075A (en) * 2010-03-30 2011-10-20 Seiko Epson Corp Recording device and head inspection method in the recording device
JP2013244706A (en) * 2012-05-29 2013-12-09 Hitachi Omron Terminal Solutions Corp Printing unit
WO2015052540A1 (en) * 2013-10-11 2015-04-16 Videojet Technologies Inc. Thermal printer

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6436469A (en) * 1987-07-31 1989-02-07 Tokyo Electric Co Ltd Label printer
JPH03211060A (en) * 1990-01-16 1991-09-13 Fujitsu Ltd Control system of thermal printer
JPH03268955A (en) * 1990-03-19 1991-11-29 Nec Eng Ltd Painting of thermal printer
JPH05104763A (en) * 1991-10-18 1993-04-27 Furuno Electric Co Ltd Dot inspection device of thermal printer
JPH11291534A (en) * 1998-04-10 1999-10-26 Ishida Co Ltd Thermal head device
JP2000043307A (en) * 1998-07-29 2000-02-15 Sony Corp Head-diagnosing apparatus and method for diagnosing head
JP2000141730A (en) * 1998-11-13 2000-05-23 Nec Corp Defect detecting method for thermal head
JP2006044027A (en) * 2004-08-04 2006-02-16 Matsushita Electric Ind Co Ltd Printer and method of printing
JP2006076172A (en) * 2004-09-10 2006-03-23 Toshiba Tec Corp Bar code printer
JP2010137408A (en) * 2008-12-10 2010-06-24 Hitachi Industrial Equipment Systems Co Ltd Printing apparatus
JP2011207075A (en) * 2010-03-30 2011-10-20 Seiko Epson Corp Recording device and head inspection method in the recording device
JP2013244706A (en) * 2012-05-29 2013-12-09 Hitachi Omron Terminal Solutions Corp Printing unit
WO2015052540A1 (en) * 2013-10-11 2015-04-16 Videojet Technologies Inc. Thermal printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10618312B2 (en) 2017-11-10 2020-04-14 Seiko Epson Corporation Thermal printer, control method of a thermal printer, and printing system
JP2019171742A (en) * 2018-03-29 2019-10-10 サトーホールディングス株式会社 Printer and printer control method

Also Published As

Publication number Publication date
JP6679982B2 (en) 2020-04-15

Similar Documents

Publication Publication Date Title
JP5720098B2 (en) Head element operation confirmation mechanism and head element operation confirmation method
JP6438184B2 (en) System having function of verifying consistency with expected print output, and method of verification
US8851593B1 (en) Image processing apparatus, image forming apparatus, non-transitory computer readable medium, and image processing method
JP2017119413A (en) Printer, control method, and printing system
JP6679982B2 (en) Printing device and control method
JP2009226716A (en) Image forming apparatus, cutting device, image forming system image forming program and cutting program
US9815297B2 (en) Printing device, control method, and printing system
JP5182389B2 (en) Image forming apparatus and image forming apparatus control program
JP4725148B2 (en) Printing apparatus and program
JP2017052260A (en) Printer, control method and printing system
JP6679981B2 (en) Printing device and control method
JP6679941B2 (en) Printing apparatus, control method, and printing system
JP6682906B2 (en) Printing apparatus, control method, and printing system
JP2008079225A (en) Apparatus and method for judging colorimetry precision, and colorimetry precision judgement correcting system
JP2017052259A (en) Printer and control method
JP5661422B2 (en) Image forming apparatus, control method therefor, and program
JP2738302B2 (en) Printing device
JP5098618B2 (en) Information processing apparatus and program
JP6428274B2 (en) Barcode printing density calculation system
JP5915704B2 (en) Head element number confirmation method and head element number confirmation mechanism
JP2007072680A (en) Label printer system and label printer
JP2019049787A (en) Information processing device
JP7211158B2 (en) IMAGE FORMING SYSTEM, IMAGE FORMING SYSTEM CONTROL METHOD AND PROGRAM
JPS6092875A (en) Thermal printer
JP2023154238A (en) Printing device, information processing device, and control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200131

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200302

R150 Certificate of patent or registration of utility model

Ref document number: 6679982

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150