JP2017105151A - Printing device, control method and printing system - Google Patents

Printing device, control method and printing system Download PDF

Info

Publication number
JP2017105151A
JP2017105151A JP2016034500A JP2016034500A JP2017105151A JP 2017105151 A JP2017105151 A JP 2017105151A JP 2016034500 A JP2016034500 A JP 2016034500A JP 2016034500 A JP2016034500 A JP 2016034500A JP 2017105151 A JP2017105151 A JP 2017105151A
Authority
JP
Japan
Prior art keywords
head
voltage
printing
head element
deterioration
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
JP2016034500A
Other languages
Japanese (ja)
Other versions
JP6682906B2 (en
Inventor
信一 吉江
Shinichi Yoshie
信一 吉江
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
Priority to US15/367,565 priority Critical patent/US9815297B2/en
Publication of JP2017105151A publication Critical patent/JP2017105151A/en
Application granted granted Critical
Publication of JP6682906B2 publication Critical patent/JP6682906B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a thermal type printing device having a head element and the like which can gradually inspect the deterioration state of the head element without problem in printing processing and suppress the circuit scale.SOLUTION: A printing device includes: a thermal head which executes printing to a printing medium by a plurality of head elements; a voltage application circuit which applies the first voltage or second voltage to the head element; and a head control part which measures the divided voltage of the head element. The head control part switches the voltage applied to the head element to the second voltage by the voltage application circuit and measures the divided voltage of the head element when the state where printing cannot be executed is detected.SELECTED DRAWING: Figure 1

Description

本発明は、ヘッド素子を備えるサーマル式の印刷装置等に関し、特に、ヘッド素子の劣化状態を段階的に、印刷処理に支障をきたす事無く検査でき、かつ、回路規模も小さく抑えることが出来る、印刷装置等に関する。   The present invention relates to a thermal printing apparatus and the like provided with a head element, and in particular, the deterioration state of the head element can be inspected step by step without impeding the printing process, and the circuit scale can be kept small. The present invention relates to a printing apparatus and the like.

レシートなどの印刷においてサーマル式のプリンターが普及している。   Thermal printers are widely used for printing receipts and the like.

サーマルプリンターは、サーマルヘッドに複数のヘッド素子を備え、それらのヘッド素子に電圧を印加することによってヘッド素子の抵抗要素(発熱体)を発熱させ、用紙に印刷を行う。このようなプリンターではヘッド素子に不良があると印刷品質が低下し好ましくない。そこで、従来、サーマルプリンターのヘッド素子の検査方法について提案がされている。   A thermal printer includes a plurality of head elements in a thermal head, and applies a voltage to these head elements to generate heat on the resistance elements (heating elements) of the head elements, thereby printing on a sheet. In such a printer, if the head element is defective, the print quality is undesirably lowered. Thus, conventionally, a method for inspecting a head element of a thermal printer has been proposed.

下記特許文献1では、サーマルヘッドの不良検出方法が提案され、発熱素子の抵抗値を用いてその最大値と最小値に基づき、ヘッドの良・不良を判断することが開示されている。また、下記特許文献2では、検出の高速化を実現する技術の一つとして、印字中にヘッド素子の劣化を検出する方法が開示されている。   Patent Document 1 below proposes a thermal head defect detection method, and discloses that head resistance is determined based on a maximum value and a minimum value using the resistance value of a heating element. Japanese Patent Application Laid-Open No. 2004-228561 discloses a method for detecting head element deterioration during printing as one of the techniques for realizing high-speed detection.

特開2000−141730号公報JP 2000-141730 A 特開平10−166637号公報JP-A-10-166737

しかしながら、上記特許文献1に記載の方法は、ヘッド素子の良・不良の検出であり、ヘッド素子の劣化の進行状態を把握することは出来ず、ヘッド素子が不良になる前の適切なタイミングでヘッド素子を交換することが出来ないため、印刷結果に問題が出てしまう虞がある。   However, the method described in Patent Document 1 is to detect whether the head element is good or defective, and it is impossible to grasp the progress of deterioration of the head element, and at an appropriate timing before the head element becomes defective. Since the head element cannot be replaced, there is a possibility that a problem may occur in the printing result.

また、24時間営業している飲食店、コンビニエンスストア等で用いられるレジのレシートプリンターにおいては、劣化の検査を行う場合、その検査方法によっては、レシート出力を停止する必要があり、営業に支障が出てしまうという課題がある。   In addition, in the receipt printer of a cash register used in restaurants, convenience stores, etc. that are open 24 hours a day, it is necessary to stop the receipt output depending on the inspection method, which may hinder the sales. There is a problem of getting out.

この課題に関し、上記特許文献2には、全信号ラインに電流検出抵抗等を備え、レシートの印刷中に検査をする方法が提案されているが、この方法では、回路規模が大きくなり、高コストとなってしまうという課題がある。   With respect to this problem, Patent Document 2 proposes a method in which all signal lines are provided with current detection resistors and the like and inspected during printing of a receipt. However, this method increases the circuit scale and increases the cost. There is a problem of becoming.

そこで、本発明の目的は、ヘッド素子を備えるサーマル式の印刷装置であって、ヘッド素子の劣化状態を段階的に、印刷処理に支障をきたす事無く検査でき、かつ、回路規模も小さく抑えることが出来る印刷装置、等を提供することである。   Accordingly, an object of the present invention is a thermal printing apparatus including a head element, which can inspect the deterioration state of the head element step by step without causing any trouble in the printing process, and to suppress the circuit scale to be small. It is to provide a printing apparatus capable of performing the above.

上記の目的を達成するために、本発明の一つの側面は、印刷装置が、複数のヘッド素子により印刷媒体に印刷を実行するサーマルヘッドと、前記ヘッド素子に第1電圧または第2電圧を印加する電圧印加回路と、前記ヘッド素子の分圧電圧を測定するヘッド制御部と、を有し、前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記電圧印加回路により、前記ヘッド素子に印加する電圧を、前記第2電圧に切り替え、前記ヘッド素子の分圧電圧を測定する、ことである。   In order to achieve the above object, according to one aspect of the present invention, a printing apparatus applies a first voltage or a second voltage to a thermal head in which printing is performed on a print medium by a plurality of head elements. And a head control unit that measures a divided voltage of the head element. When the head control unit detects a state in which the printing cannot be performed, the voltage application circuit The voltage applied to the head element is switched to the second voltage, and the divided voltage of the head element is measured.

これにより、印刷が実行され得ない時間を利用してヘッド素子の検査がなされるので、印刷処理に支障をきたすことなくヘッド素子の劣化診断を行うことができるようになる。更に、印刷処理と並行してヘッド素子の検査を行わなくてよいので、回路規模を小さく抑えることが出来る。   As a result, since the head element is inspected using a time during which printing cannot be performed, the deterioration of the head element can be diagnosed without hindering the printing process. Furthermore, since it is not necessary to inspect the head element in parallel with the printing process, the circuit scale can be reduced.

更に、上記発明において、その好ましい態様は、更に、データ記憶部を有し、前記サーマルヘッドは、更に、選択部を備え、前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記ヘッド素子毎に前記選択部によって当該ヘッド素子を選択し、当該ヘッド素子の抵抗要素と前記電圧印加回路の検査用抵抗による直列回路の分圧電圧を測定し、当該測定した分圧電圧と予め前記データ記憶部に記憶された初期分圧電圧値に基づいて、当該ヘッド素子の劣化状態を判断する、劣化判断処理を行う、ことを特徴とする。   Furthermore, in the above invention, the preferable aspect further includes a data storage unit, the thermal head further includes a selection unit, and the head control unit detects a state where the printing cannot be performed. For each head element, the selection unit selects the head element, measures the divided voltage of the series circuit by the resistance element of the head element and the test resistor of the voltage application circuit, and the measured divided voltage and the A deterioration determination process is performed in which a deterioration state of the head element is determined based on an initial divided voltage value stored in the data storage unit.

これにより、初期分圧電圧値に基づいてヘッド素子の劣化状態を判断するため、各ヘッド素子の劣化状況を適確に判断することができる。   Thereby, since the deterioration state of the head element is determined based on the initial divided voltage value, the deterioration state of each head element can be determined accurately.

更に、上記発明において、その好ましい態様は、前記劣化判断処理は、前記印刷が実行され得えない状態の間に完了できる、全ヘッド素子数を分割した所定数のヘッド素子について実行される、ことを特徴とする。   Further, in the above invention, a preferable aspect is that the deterioration determination process is executed for a predetermined number of head elements obtained by dividing the total number of head elements, which can be completed while the printing cannot be executed. It is characterized by.

これにより、全ヘッド素子について連続して劣化判断処理を行うのではなく、切断処理中など印刷が実行され得ない状態の期間中に完了できる数のヘッド素子について劣化判断処理を行うので、確実に印刷処理に支障をきたすことはない。   As a result, deterioration determination processing is not performed for all head elements continuously, but deterioration determination processing is performed for the number of head elements that can be completed during a period in which printing cannot be performed such as during cutting processing. There is no problem with the printing process.

更に、上記発明において、その好ましい態様は、前記ヘッド制御部は、前記分圧電圧に対して予め設定された複数の閾値を用いて、前記ヘッド素子の劣化状態を判断する、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect thereof is characterized in that the head control unit determines a deterioration state of the head element using a plurality of threshold values preset with respect to the divided voltage. .

これにより、劣化度合(劣化状態)の判断を、複数の閾値を用いて行うので、きめ細かい管理が可能になる。   Thereby, since the determination of the degree of deterioration (deterioration state) is performed using a plurality of threshold values, fine management is possible.

更に、上記発明において、その好ましい態様は、前記印刷後の前記印刷媒体を切断するオートカッターを有し、前記印刷が実行され得ない状態の検知は、前記オートカッターによる前記切断の開始を検知することである、ことを特徴とする。   Furthermore, in the said invention, the preferable aspect has an auto cutter which cut | disconnects the said printing medium after the said printing, and the detection of the state which the said printing cannot be performed detects the start of the said cutting | disconnection by the said auto cutter. It is characterized by that.

これにより、印刷媒体の切断処理中に劣化判断処理を実行するので、印刷処理に支障きたさない処理が保障される。更に、印刷装置が使用される限り印刷媒体の印刷及び切断が実行されるので、確実にヘッド素子の検査を実行することができる。   As a result, the deterioration determination process is executed during the print medium cutting process, so that a process that does not interfere with the print process is guaranteed. Furthermore, since the printing medium is printed and cut as long as the printing apparatus is used, the head element can be surely inspected.

更に、上記発明において、その好ましい態様は、前記印刷装置の筐体に、前記印刷媒体の収納部を開放できるカバーを有し、前記印刷が実行され得ない状態の検知は、前記カバーの開放を検知することである、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect is that the casing of the printing apparatus includes a cover that can open the storage portion of the print medium, and the detection of the state where the printing cannot be performed is performed by opening the cover. It is characterized by detecting.

これにより、ヘッド素子の検査は、印刷が停止している、カバーの開放の際に行われるため、印刷に支障をきたす事が無く、実行できる。   As a result, the head element is inspected when printing is stopped or when the cover is opened, so that printing can be performed without any trouble.

更に、上記発明において、その好ましい態様は、前記印刷が実行され得ない状態の検知は、前記印刷装置におけるエラーの発生を検知することである、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect thereof is characterized in that the detection of the state where the printing cannot be performed is detection of the occurrence of an error in the printing apparatus.

これにより、ヘッド素子の検査は、印刷が停止している、エラーの発生の際に行われるため、印刷に支障をきたす事が無く、実行できる。   Thus, the head element is inspected when printing is stopped or when an error occurs, so that it can be executed without causing any trouble in printing.

更に、上記発明において、その好ましい態様は、前記第2電圧と前記ヘッド制御部の電圧は同じである、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect thereof is characterized in that the second voltage and the voltage of the head control unit are the same.

これにより、測定した分圧電圧からA/D変換された値の誤差が少なくなるため、ヘッド素子の適確な劣化判断ができる。   As a result, an error in the value obtained by A / D conversion from the measured divided voltage is reduced, so that it is possible to accurately determine the deterioration of the head element.

更に、上記目的を達成するために、本発明の別の側面は、複数のヘッド素子により印刷媒体に印刷を実行するサーマルヘッドと、前記ヘッド素子に第1電圧または第2電圧を印加する電圧印加回路と、前記ヘッド素子の分圧電圧を測定するヘッド制御部と、を備える印刷装置の制御方法であって、前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記電圧印加回路により、前記ヘッド素子に印加する電圧を、前記第2電圧に切り替え、前記ヘッド素子の分圧電圧を測定する、ことである。   In order to achieve the above object, another aspect of the present invention provides a thermal head that performs printing on a print medium using a plurality of head elements, and voltage application that applies a first voltage or a second voltage to the head elements. A printing apparatus control method comprising: a circuit; and a head control unit that measures a divided voltage of the head element, wherein the head control unit applies the voltage when detecting a state in which the printing cannot be performed. The voltage applied to the head element is switched to the second voltage by a circuit, and the divided voltage of the head element is measured.

上記の目的を達成するために、本発明の更に別の側面は、複数のヘッド素子により印刷媒体に印刷を実行するサーマルヘッドと、前記ヘッド素子に第1電圧または第2電圧を印加する電圧印加回路と、前記ヘッド素子の分圧電圧を測定するヘッド制御部と、通信部と、を備える印刷装置と、当該印刷装置のホスト装置を有する印刷システムであって、前記印刷装置の前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記電圧印加回路により、前記ヘッド素子に印加する電圧を、前記第2電圧に切り替え、前記ヘッド素子の分圧電圧を測定し、前記分圧電圧に対して予め設定された閾値を用いて、前記ヘッド素子の劣化状態を判断し、前記測定した分圧電圧及び/又は、前記閾値による判断結果を、前記通信部によって前記ホスト装置へ送信し、前記ホスト装置は、前記送信された情報を取得する、ことである。   In order to achieve the above object, still another aspect of the present invention provides a thermal head that performs printing on a print medium using a plurality of head elements, and voltage application that applies a first voltage or a second voltage to the head elements. A printing system including a circuit, a head control unit that measures a divided voltage of the head element, and a communication unit, and a host device of the printing device, the head control unit of the printing device When the state in which the printing cannot be performed is detected, the voltage applied to the head element is switched to the second voltage by the voltage application circuit, the divided voltage of the head element is measured, and the divided voltage is measured. Using a preset threshold value for the voltage, the deterioration state of the head element is determined, and the measured divided voltage and / or the determination result based on the threshold value is determined by the communication unit. Transmitted to strike device, said host device acquires the information being sent is that.

これにより、ホスト装置などの外部装置で印刷装置の劣化情報を容易に取得することができるようになり、プリンターの劣化管理、特に、遠隔装置における集約的な管理が容易に行えるようになる。   As a result, the deterioration information of the printing apparatus can be easily acquired by an external apparatus such as a host apparatus, and the deterioration management of the printer, particularly the intensive management in the remote apparatus can be easily performed.

更に、上記発明において、その好ましい態様は、前記ホスト装置は、前記印刷装置にコマンドを送信し、前記印刷装置は、当該コマンドを受信して、前記ヘッド制御部による前記ホスト装置への情報の送信を実行する、ことである。   Further, in the above invention, a preferable aspect thereof is that the host device transmits a command to the printing device, and the printing device receives the command and transmits information to the host device by the head control unit. Is to do.

これにより、当該ホスト装置は、コマンドにより、遠隔装置からヘッド素子の劣化情報を操作することができ、劣化情報の管理が多様になる。   Accordingly, the host device can operate the deterioration information of the head element from the remote device by a command, and the management of the deterioration information becomes diverse.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   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 a time chart which illustrated operation timing. レシート印刷の1サイクルの処理手順を例示したフローチャートである。5 is a flowchart illustrating a processing procedure for one cycle of receipt printing. 劣化判断処理の手順を例示したフローチャートである。It is the flowchart which illustrated the procedure of the degradation judgment process. 不揮発性メモリー24に記憶する劣化情報の一例を示す図である。4 is a diagram showing an example of deterioration information stored in a nonvolatile memory 24. FIG. 分圧電圧値(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)の各抵抗値(各分圧電圧)を測定して記憶しておく。その後、印刷処理の際に、オートカッター27による印刷媒体(ロール状の用紙等)の切断のタイミングで、ヘッド素子(RH−1〜RH−n)の各抵抗値(各分圧電圧)を測定する。その測定値と上記記憶しておいた初期の各抵抗値(各分圧電圧)から換算して求められる抵抗値変化率から、各ヘッド素子(RH−1〜RH−n)の劣化状態を判定する。また、測定値及び/又は、判定結果に関する情報を、外部装置(POS端末装置1、劣化管理サーバー3等)に送信する構成とすることができる。
[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 resistance values of the head elements (RH-1 to RH-n) provided in the thermal head 26 at the first startup or the like. (Each divided voltage) is measured and stored. After that, during the printing process, each resistance value (each divided voltage) of the head elements (RH-1 to RH-n) is measured at the timing of cutting the printing medium (rolled paper or the like) by the auto cutter 27. To do. The deterioration state of each head element (RH-1 to RH-n) is determined from the measured value and the resistance value change rate obtained by conversion from the stored initial resistance values (each divided voltage). To do. Moreover, it can be set as the structure which transmits the information regarding a measured value and / or a determination result to an external device (POS terminal device 1, degradation management server 3, etc.).

これにより、各ヘッド素子(RH−1〜RH−n)の劣化状態を段階的に把握することができる。また、印刷媒体の切断時に劣化検出処理を行うので、印刷処理に支障をきたすことなく劣化の検出が可能となる。更に、プリンター2の劣化管理をホスト装置等において容易に行えるようになる。   Thereby, the deterioration state of each head element (RH-1 to RH-n) can be grasped step by step. In addition, since the deterioration detection process is performed when the print medium is cut, it is possible to detect the deterioration without hindering the printing process. Furthermore, the deterioration management of the printer 2 can be easily performed in the host device or the like.

図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 can be configured by the POS terminal device 1 and the printer 2, and the deterioration management system 200 is configured 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. 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 deterioration 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は、印刷媒体に印刷対象を印刷し、印刷が完了するとオートカッター27により用紙を切断し、排出する。   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 a print target on a print medium, and when printing is completed, the printer 2 cuts and discharges the paper with the auto cutter 27.

また、プリンター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)の劣化状態を判定する処理を行う。ヘッド制御部23は、CPU、RAM、ROM、ASIC等で構成され、主にROMに記憶されたプログラムに従ってCPUが動作することにより、処理を実行する。ヘッド制御部23による具体的な処理内容は後述する。   The head control unit 23 controls the thermal head 26 and the voltage application circuit 25 to execute printing on the print medium and determine the deterioration state of the head elements (RH-1 to RH-n) included in the thermal head 26. I do. The head control unit 23 includes a CPU, a RAM, a ROM, an ASIC, and the like, and executes processing by the CPU operating mainly according to a program stored in the ROM. Specific processing contents by the head controller 23 will be described later.

不揮発性メモリー24(データ記憶部)は、ヘッド制御部23による、上述したヘッド素子(RH−1〜RH−n)の劣化状態を判定する処理に関するデータを記憶する部分である。不揮発性メモリー24は、後述する仮の変換テーブル、各ヘッド素子(RH−1〜RH−n)の変換テーブル、及び、劣化情報(ヘッド素子の識別番号とそのヘッド素子の劣化度合、等)等のデータを記憶する。なお、不揮発性メモリー24は、NVRAMなどで構成することができる。   The nonvolatile memory 24 (data storage unit) is a part that stores data related to the process of determining the deterioration state of the head elements (RH-1 to RH-n) described above by the head control unit 23. The nonvolatile memory 24 includes a provisional conversion table, a conversion table for each head element (RH-1 to RH-n), deterioration information (a head element identification number and a deterioration degree of the head element, etc.), etc. Store the data. Note that the nonvolatile memory 24 can be configured by NVRAM or the like.

電圧印加回路25は、サーマルヘッド26に電圧を印加する回路である。電圧印加回路25は、電圧値の異なる2つの電源(24V、3.3V)を備え、印刷実行時には印刷用電圧(24V、(第1電圧))をサーマルヘッド26に印加し、ヘッド素子(RH−1〜RH−n)の検査実行時には検査用電圧(3.3V、(第2電圧))に切り替えて、サーマルヘッド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 (24 V, 3.3 V) having different voltage values, and applies a printing voltage (24 V, (first voltage)) to the thermal head 26 when printing is performed. −1 to RH-n), the voltage is applied to the thermal head 26 by switching to the inspection voltage (3.3 V, (second voltage)).

サーマルヘッド26は、複数のヘッド素子(RH−1〜RH−n)とそれらの選択部を備える。印刷実行時には、選択部によって選択されたヘッド素子(RH−1〜RH−n)に印刷用電圧が印加され、そのヘッド素子の発熱体(抵抗要素)が発熱し、印刷媒体に印刷がなされる。また、ヘッド素子(RH−1〜RH−n)の検査実行時には、選択部によって選択されたヘッド素子(RH−1〜RH−n)に検査用電圧が印加される。   The thermal head 26 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 the heating element (resistive element) of the head element generates heat, and printing is performed 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.

オートカッター27は、刃とその駆動部から構成され、レシートの印刷が完了すると、メイン制御部22の制御により、印刷媒体の切断を行う。   The auto cutter 27 includes a blade and its drive unit, and when printing of a receipt is completed, the print medium is cut under the control of the main control unit 22.

用紙搬送部28は、搬送ローラー、その駆動部等から構成される。メイン制御部22の制御により、印刷媒体の格納部から当該印刷媒体をヘッド素子の位置まで搬送し、印刷が終了すると、印刷媒体をオートカッター27の位置まで搬送する。   The paper transport unit 28 includes a transport roller, a driving unit thereof, and the like. Under the control of the main control unit 22, the printing medium is conveyed from the printing medium storage unit to the position of the head element, and when printing is completed, the printing medium is conveyed to the position of the auto cutter 27.

カバー29は、印刷装置の筐体に設けられる、印刷媒体の収納部を開放可能な蓋である。印刷媒体の交換の際などに、操作者にカバー29が開放されると、メイン制御部22によって、その開放が検知される。   The cover 29 is a lid that is provided in the casing of the printing apparatus and can open the storage portion for the print medium. When the operator opens the cover 29, for example, when replacing the print medium, the main control unit 22 detects the opening.

図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)に接続されるように順次連結されている。   The shift register 263 is sequentially connected so that DO (Data Out) of the first-stage shift register is 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ライン分のシリアルデータをパラレルデータとしてラッチドライバー5に格納する。   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 the serial data for one line is stored in the shift register, the serial data for one line is stored in the latch driver 5 as parallel data by the 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. An inspection 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変換された値(AD値)を取得する。なお、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 (AD 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では、ヘッド素子(RH−1〜RH−n)の劣化判断に係る処理に特徴があり、以下、その具体的な内容について説明する。   The printer 2 having the above-described configuration is characterized by processing related to the deterioration determination of the head elements (RH-1 to RH-n), and the specific contents thereof will be described below.

ヘッド素子(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, after performing processing (initial setting processing) for grasping the initial state (initial resistance value) of each head element (RH-1 to RH-n), an appropriate value is determined based on the initial state. The resistance value is measured at a frequency, 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 deteriorated state are grasped by measuring the divided voltage.

図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. The resistance value change rate represents the change (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Ωに対応する分圧電圧を意味している。具体的には、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 means the divided voltage 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. Yes. 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. This value is the initial divided voltage value.

プリンター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 nonvolatile memory 24.

以降、図3に基づいて、初期設定処理の具体的な処理内容について説明する。本プリンター2の初回起動時において、初期設定処理は実行される。ヘッド制御部23は、まず、上述したように、電圧印加回路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. First, as described above, the head controller 23 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は、初期設定を行う1つのヘッド素子(RH−1〜RH−n)を選択する(図3のステップS2)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the head control unit 23 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は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧を測定し、その値を取得する(図3のステップS3)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)初期抵抗値に対応する情報(初期分圧電圧値)が取得される。   As a result, a series circuit is formed that connects the inspection resistor R1 and the resistance element (heating element) of the head element. Therefore, the head control unit 23 uses the READ_HEAD signal to check the resistance R1 of the series circuit and the resistance of the head element. The divided voltage between the elements (heating elements) is measured, and the value is acquired (step S3 in FIG. 3). That is, information (initial divided voltage value) corresponding to the initial resistance value (of the resistance element (heating element)) of the head element is acquired.

次に、ヘッド制御部23は、不揮発性メモリー24に記憶される、上述した仮の変換テーブルを読み出し、そのテーブルの「X」に、取得した当該ヘッド素子の分圧電圧を代入して、当該ヘッド素子の変換テーブルを生成する(図3のステップS4)。すなわち、そのヘッド素子の実際の初期抵抗値に基づいた、分圧電圧と抵抗値変化率の関係を示す変換テーブルが生成される。   Next, the head control unit 23 reads the provisional conversion table stored in the nonvolatile memory 24, and substitutes the acquired divided voltage of the head element for “X” in the table. A head element conversion table is generated (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は、生成した変換テーブルを不揮発性メモリー24に読み出し可能に記憶(保存)し(図3のステップS5)、当該ヘッド素子についての初期設定処理を終了する。   The head control unit 23 stores (saves) the generated conversion table in the nonvolatile memory 24 so as to be readable (step S5 in FIG. 3), and ends the initial setting process for the head element.

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

その後、ヘッド制御部23は、全てのヘッド素子(RH−1〜RH−n)について生成され不揮発性メモリー24に記憶される変換テーブルに、それぞれ、閾値を設定する(図3のステップS7)。ここでは、各ヘッド素子(RH−1〜RH−n)の劣化状態をきめ細かく把握できるように、ヘッド素子(RH−1〜RH−n)毎に複数の閾値を設定する。   Thereafter, the head controller 23 sets threshold values in the conversion tables generated for all the head elements (RH-1 to RH-n) and stored in the nonvolatile memory 24 (step S7 in FIG. 3). 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 rates of 51%, 15%, −15%, and −30% are 4 One threshold is set in advance. For example, if the provisional 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 is set.

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

次に、初期設定処理が行われた後、プリンター2が使用されて、所定のタイミングになると、ヘッド制御部23は、劣化判断処理を実行する。この劣化判断処理が実行される所定のタイミングが、本プリンター2の1つの大きな特徴であり、具体的には印刷処理終了後の印刷媒体を切断するタイミングである。印刷媒体の切断処理中は、印刷処理が停止する、印刷処理が実行され得ない状態である。本プリンター2では、この印刷が実行され得ない切断処理の状態を検知すると、ヘッド素子の劣化判断処理を実行する。   Next, after the initial setting process is performed, when the printer 2 is used and a predetermined timing is reached, the head control unit 23 executes a deterioration determination process. The predetermined timing at which the deterioration determination process is executed is one major characteristic of the printer 2, and specifically, is the timing at which the print medium is cut after the printing process is completed. During the print medium cutting process, the printing process is stopped and the printing process cannot be executed. When the printer 2 detects the state of the cutting process in which this printing cannot be performed, the head element deterioration determination process is executed.

図6は、プリンター2において実行される、劣化判断処理のタイミングを表したタイムチャートである。図6において、横軸は経過時間tを示す。また、縦軸は、処理の実行(上位値)/不実行(下位置)、又は、電圧のON(上位値)/OFF(下位置)を示す。   FIG. 6 is a time chart showing the timing of the deterioration determination process executed in the printer 2. In FIG. 6, the horizontal axis indicates the elapsed time t. The vertical axis indicates the execution (upper value) / non-execution (lower position) of the process, or ON (upper value) / OFF (lower position) of the voltage.

(A)は、レシートの発行処理を表した図である。タイムチャートの各山(ΔT1及び、ΔT2、ΔT3及びΔT4、ΔT5及びΔT6、…ΔTn及びΔTn+1)は、それぞれ1レシートの発行処理に相当する。各山において、前者(ΔT1、ΔT3、ΔT5、…ΔTn)は、印刷処理に相当し、後者(ΔT2、ΔT4、ΔT6、…ΔTn+1)は切断処理に相当する。例えば、ΔT1(t1からt2)は、ヘッド制御部23により、電圧印加回路25へ信号が発せられ、サーマルヘッド26に電圧が印加されて、レシートに印字をする時間である。また、ΔT2(t2からt3)は、メイン制御部22により、オートカッター27が制御され、レシートを切断している時間である。   (A) is a diagram showing a receipt issuing process. Each mountain (ΔT1, ΔT2, ΔT3 and ΔT4, ΔT5 and ΔT6,... ΔTn and ΔTn + 1) of the time chart corresponds to one receipt issuing process. In each mountain, the former (ΔT1, ΔT3, ΔT5,... ΔTn) corresponds to a printing process, and the latter (ΔT2, ΔT4, ΔT6,... ΔTn + 1) corresponds to a cutting process. For example, ΔT1 (t1 to t2) is a time for printing on a receipt when the head controller 23 issues a signal to the voltage application circuit 25 and a voltage is applied to the thermal head 26. Further, ΔT2 (from t2 to t3) is a time during which the auto cutter 27 is controlled by the main control unit 22 and the receipt is cut.

(B)は、上記レシートに印字をするためにサーマルヘッド26へ印刷用電圧(24V)を印加するタイミングを示した図である。(B)における各山は、(A)における印刷処理(ΔT1、ΔT3、ΔT5、…ΔTn)に一致している。(A)の各印刷処理時間(ΔT1、ΔT3、ΔT5、…ΔTn)にレシートへの印字が終了すると、ヘッド制御部23の制御により、電圧印加回路25は、サーマルヘッド26へ印加されていた印刷用の電圧(24V)を遮断する。   (B) is a diagram showing the timing of applying a printing voltage (24V) to the thermal head 26 in order to print on the receipt. Each mountain in (B) corresponds to the printing process (ΔT1, ΔT3, ΔT5,... ΔTn) in (A). When printing on the receipt is completed at each printing processing time (ΔT1, ΔT3, ΔT5,... ΔTn) in (A), the voltage application circuit 25 performs printing applied to the thermal head 26 under the control of the head control unit 23. The voltage (24V) is cut off.

(C)は、検査用電圧(3.3V)をサーマルヘッド26へ印加するタイミングを示した図である。(C)における各山は(A)における切断処理(ΔT2、ΔT4、ΔT6、…ΔTn+1)に一致している。そして、(A)における各切断処理(ΔT2、ΔT4、ΔT6、…ΔTn+1)の開始時に、ヘッド制御部23の制御により、電圧印加回路25は、サーマルヘッド26へ検査用電圧(3.3V)を印加する。   (C) is a diagram showing timing for applying the inspection voltage (3.3 V) to the thermal head 26. FIG. Each mountain in (C) corresponds to the cutting process (ΔT2, ΔT4, ΔT6,... ΔTn + 1) in (A). Then, at the start of each cutting process (ΔT2, ΔT4, ΔT6,... ΔTn + 1) in (A), the voltage application circuit 25 applies a test voltage (3.3 V) to the thermal head 26 under the control of the head controller 23. Apply.

(D)から(G)は、劣化判断処理の実行タイミングを示す。劣化判断処理の実行タイミングは、(A)における切断処理(ΔT2、ΔT4、ΔT6、…ΔTn+1)、(C)における検査用電圧(3.3V)の印加時間と一致している。(D)から(G)の各劣化判断処理時間では、本実施の形態例では、一例として、50個のヘッド素子について処理を実行する。このヘッド素子の数は、50個に限定されるものではないが、(A)における切断処理(ΔT2、ΔT4、ΔT6、…ΔTn+1)の時間内に処理が完了できる数が選択される。   (D) to (G) show the execution timing of the deterioration determination process. The execution timing of the deterioration determination process coincides with the application time of the cutting process (ΔT2, ΔT4, ΔT6,... ΔTn + 1) in (A) and the inspection voltage (3.3 V) in (C). In each degradation determination processing time from (D) to (G), in this embodiment, as an example, processing is performed for 50 head elements. The number of head elements is not limited to 50, but the number that can be processed within the time of the cutting process (ΔT2, ΔT4, ΔT6,... ΔTn + 1) in (A) is selected.

このように、本プリンター2では、オートカッター27によりレシートを切断している間に、ヘッド素子の全数を分割した所定数のヘッド素子について劣化判断処理を実行する。すなわち、全ヘッド素子について連続して劣化判断処理を実行するのではなく、印刷処理が実行され得ない状態の間に完了できる数のヘッド素子について実行する。   As described above, in the printer 2, while the receipt is cut by the auto cutter 27, the deterioration determination process is executed for a predetermined number of head elements obtained by dividing the total number of head elements. In other words, the deterioration determination process is not continuously performed for all the head elements, but is performed for the number of head elements that can be completed while the printing process cannot be performed.

次に、劣化判断処理の処理内容について説明する。上述したように、劣化判断処理は、レシートが出力されるまでの1サイクルの間に行われるので、まず、レシートが出力されるまでの1サイクルの処理について説明する。   Next, processing contents of the deterioration determination process will be described. As described above, the deterioration determination process is performed during one cycle until the receipt is output. Therefore, first, the process of one cycle until the receipt is output will be described.

図7は、レシート印刷の1サイクルの処理手順を例示したフローチャートである。まず、ヘッド制御部23は、メイン制御部22からレシート印刷の指示を受け、電圧印加回路25に信号を出し、印刷用電圧(24V)をサーマルヘッド26に印加する(図7のステップS11)。   FIG. 7 is a flowchart illustrating an example of a processing procedure for one cycle of receipt printing. First, the head control unit 23 receives a receipt printing instruction from the main control unit 22, outputs a signal to the voltage application circuit 25, and applies a printing voltage (24V) to the thermal head 26 (step S11 in FIG. 7).

次に、メイン制御部22は、POSアプリケーション部11から受信した印刷データに基づいて、レシートを印刷する処理を開始する(図7のステップS12)。具体的には、用紙搬送部28を制御して、印刷媒体を、順次、サーマルヘッド26の位置へ搬送する(図7のステップS12)。   Next, the main control unit 22 starts processing for printing a receipt based on the print data received from the POS application unit 11 (step S12 in FIG. 7). Specifically, the paper transport unit 28 is controlled to sequentially transport the print medium to the position of the thermal head 26 (step S12 in FIG. 7).

また、ヘッド制御部23へ指示して、搬送した印刷媒体への印刷を実行させる。レシートの印刷が終了すると(図7のステップS13)、ヘッド制御部23は、電圧印加回路25に信号を出し、印刷用電圧(24V)のサーマルヘッド26への印加を遮断する(図7のステップS14)。   Further, the head control unit 23 is instructed to execute printing on the conveyed print medium. When the printing of the receipt is completed (step S13 in FIG. 7), the head control unit 23 outputs a signal to the voltage application circuit 25 and cuts off the application of the printing voltage (24V) to the thermal head 26 (step in FIG. 7). S14).

次に、メイン制御部22は、オートカッター27を駆動して、印刷媒体の切断を開始する(図7のステップS15)。ここで、ヘッド制御部23は、メイン制御部22から、オートカッター27の駆動開始の信号を受けてサーマルヘッド26の劣化判断処理を実行する(図7のステップS16)。すなわち、ヘッド制御部23は、印刷が実行され得ない切断処理の状態を検知して、劣化判断処理を開始する。劣化判断処理の具体的な処理内容については後述する。   Next, the main control unit 22 drives the auto cutter 27 to start cutting the print medium (step S15 in FIG. 7). Here, the head control unit 23 receives a signal to start driving the auto cutter 27 from the main control unit 22 and executes a deterioration determination process for the thermal head 26 (step S16 in FIG. 7). That is, the head control unit 23 detects the state of the cutting process in which printing cannot be performed, and starts the deterioration determination process. Specific processing contents of the deterioration determination processing will be described later.

オートカッター27による印刷媒体の切断が終了すると、メイン制御部22は、オートカッター27の駆動を停止し、印刷媒体の切断を終了する(図7のステップS17)。   When the cutting of the print medium by the auto cutter 27 ends, the main control unit 22 stops driving the auto cutter 27 and ends the cutting of the print medium (step S17 in FIG. 7).

このようにして、1レシートについての処理が実行される。かかる処理が、POS端末装置1からレシート印刷の要求を受ける度に、プリンター2によって実行される。   In this way, processing for one receipt is executed. This process is executed by the printer 2 every time a receipt printing request is received from the POS terminal device 1.

次に、劣化判断処理について説明する。図8は、図7のステップS16の具体的な処理の手順を例示したフローチャートである。まず、ヘッド制御部23は、上述したように、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図8のステップS161)。   Next, the deterioration determination process will be described. FIG. 8 is a flowchart illustrating a specific processing procedure in step S <b> 16 of FIG. 7. First, as described above, the head controller 23 outputs a signal to the voltage application circuit 25 and applies the inspection voltage (3.3 V) to the thermal head 26 (step S161 in FIG. 8).

次に、ヘッド制御部23は、劣化判断を行う1つのヘッド素子(RH−1〜RH−n)を選択する(図8のステップS162)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the head controller 23 selects one head element (RH-1 to RH-n) for which deterioration is determined (step S162 in FIG. 8). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1とヘッド素子の抵抗要素(発熱体)の間の分圧電圧を測定し、その値を取得する(図8のステップS163)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)この時点における抵抗値に対応する情報が取得される。   As a result, the divided voltage between the inspection resistor R1 and the resistance element (heating element) of the head element is measured, and the value is obtained (step S163 in FIG. 8). That is, information corresponding to the resistance value of the head element (resistance element (heating element)) at this time is acquired.

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

ヘッド制御部23は、取得した抵抗値変化率が、当該変換テーブルに設定されている閾値を超えているか否かをチェックし(図8のステップS165)、取得した抵抗値変化率などの情報(劣化情報)を不揮発性メモリー24へ保存(記憶)する(図8のステップS166)。   The head controller 23 checks whether or not the acquired resistance value change rate exceeds a threshold value set in the conversion table (step S165 in FIG. 8), and information such as the acquired resistance value change rate ( Deterioration information) is stored (stored) in the nonvolatile memory 24 (step S166 in FIG. 8).

図9は、不揮発性メモリー24に保存する具体的なデータ(劣化情報)の一例である。   FIG. 9 is an example of specific data (degradation information) stored in the nonvolatile memory 24.

本実施の形態例では、劣化情報として全512個のヘッド素子の各ヘッド素子(ヘッド素子の識別番号)について、「抵抗値変化率」及び「アラームフラグ」の情報を保存(記憶)する。抵抗値変化率(%)は、ステップS164で取得された抵抗値変化率であり、「アラームフラグ」は、ステップS165の判断により、閾値を超えていると判断された場合に立つ(ONとされる)フラグである。本実施の形態例では、4つの閾値(N1、N2、N3、N4)を変換テーブルに設定しているので、「アラームフラグ」のデータは、どの閾値を超えているか判断可能なデータとしている。ON(N2)は閾値N2を超えているが、閾値N1を超えていないことを示し、ON(N1)は閾値N1を超えていることを示している。また、ON(N3)はマイナス方向に閾値N3を超えているが、閾値N4を超えていないことを示し、ON(N4)はマイナス方向に閾値N4を超えていることを示している。   In the present embodiment, information of “resistance value change rate” and “alarm flag” is stored (stored) for each head element (head element identification number) of all 512 head elements as deterioration information. The resistance value change rate (%) is the resistance value change rate acquired in step S164, and the “alarm flag” is set (ON) when it is determined that the threshold value is exceeded by the determination in step S165. 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 (N2) indicates that the threshold value N2 is exceeded but not exceeded, and 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.

図9に示す例では、例えばヘッド素子「1」は、現在の(直近の検出結果における抵抗値変化率)抵抗値変化率が「2−3%」であり、閾値を超えていないことを示している。   In the example illustrated in FIG. 9, 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.

ヘッド素子「30」は、抵抗値変化率が「−16%」であり、閾値N3を超えていることを示している。   The head element “30” has a resistance value change rate of “−16%”, which indicates that the threshold value N3 is exceeded.

また、ヘッド素子「50」は、抵抗値変化率が「16_17_18%」であり、閾値N2を超えていることを示している。   The head element “50” has a resistance value change rate of “16_17_18%”, which indicates that the threshold value N2 is exceeded.

ステップS166の処理では、選択されているヘッド素子について、「抵抗値変化率(%)」と「アラームフラグ」の値が保存(更新)される。   In the process of step S166, 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.

このようにして、当該ヘッド素子についての劣化判断処理を終了する。そして、処理がステップS167に移行する。   In this way, the deterioration determination process for the head element ends. Then, the process proceeds to step S167.

ステップS167では、ヘッド制御部23は、今回検査用電圧(3.3V)を印加した後(ステップS161の後)、所定数(例えば、50)のヘッド素子について処理(S162−S166)を終了したか否かを判断し(図8のステップS167)、未だ終了していない場合には(ステップS167のNo)、次のヘッド素子についてステップS162からの処理を行う。   In step S167, the head control unit 23 applies the test voltage (3.3V) this time (after step S161), and then ends the processing (S162 to S166) for a predetermined number (for example, 50) of head elements. (Step S167 in FIG. 8), and if not finished yet (No in step S167), the process from step S162 is performed for the next head element.

一方、所定数のヘッド素子について処理を終了した場合には(ステップS167のYes)、ヘッド制御部23は、電圧印加回路25に信号を出し、検査用電圧(3.3V)の印加を終了する(遮断する)(図8のステップS168)。   On the other hand, when the process has been completed for a predetermined number of head elements (Yes in step S167), the head control unit 23 outputs a signal to the voltage application circuit 25 and ends the application of the inspection voltage (3.3V). (Blocked) (Step S168 in FIG. 8).

このようにして、オートカッター27による切断処理中に実行される劣化判断処理が終了する。   In this way, the deterioration determination process executed during the cutting process by the auto cutter 27 ends.

このような劣化判断処理によって、注視すべき劣化状態にあるヘッド素子の情報、そのヘッド素子の劣化度合(抵抗値変化率)の情報が記憶され、ヘッド素子の交換等のメンテナンス処理に用いられ得る。   By such deterioration determination processing, information on a head element in a deteriorated state to be watched and information on the degree of deterioration (resistance value change rate) of the head element can be stored and used for maintenance processing such as replacement of the head element. .

なお、オートカッター27による切断処理の間に、劣化判断処理を行うヘッド素子の数(図8のステップS167の「所定数」)は、切断処理の間に劣化判断処理が完了する数を予め定めておく。所定数が50個で、全ヘッド数が512個の場合、概ね10レシートの印刷出力が行われる間に全てのヘッド素子の劣化判断処理が完了する。   Note that the number of head elements that perform the deterioration determination process during the cutting process by the auto cutter 27 (the “predetermined number” in step S167 in FIG. 8) is determined in advance as the number of completions of the deterioration determination process during the cutting process. Keep it. When the predetermined number is 50 and the total number of heads is 512, the deterioration determination process for all the head elements is completed while printing of 10 receipts is performed.

また、劣化判断処理の実行タイミングは、オートカッター27による印刷媒体の切断動作の時に限らず、レシートの印刷動作が実行され得ない状態であれば、他のタイミングで実行しても良い。例えば、印刷媒体が無くなって、操作者によって、印刷媒体の収納部を開放できるカバー29が開けられたタイミングや、プリンター2に何らかのエラーが発生したタイミング等、プリンター2の印刷動作が停止している際に行っても良い。前者の場合、ヘッド制御部23は、メイン制御部22から発せられる収納部の開放がされた信号を検知して、すなわち、印刷が実行され得ない状態を検知して、劣化判断処理を開始し、後者の場合には、ヘッド制御部23は、メイン制御部22から発せられるエラー発生信号を検知して、すなわち、印刷が実行され得ない状態を検知して、劣化判断処理を開始する。   Further, the execution timing of the deterioration determination process is not limited to the time when the auto cutter 27 cuts the print medium, and may be executed at another timing as long as the receipt printing operation cannot be executed. For example, the printing operation of the printer 2 is stopped, for example, when the print medium runs out and the operator opens the cover 29 that can open the storage unit for the print medium or when an error occurs in the printer 2. You may go there. In the former case, the head control unit 23 detects a signal from the main control unit 22 that opens the storage unit, that is, detects a state in which printing cannot be performed, and starts the deterioration determination process. In the latter case, the head controller 23 detects an error occurrence signal issued from the main controller 22, that is, detects a state where printing cannot be executed, and starts the deterioration determination process.

また、上記の実施例において、ホスト装置(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.

なお、ホスト装置(POS端末装置1、劣化管理サーバー3等)からのコマンドにより、ホスト装置側が主導でヘッド素子の劣化を管理する場合には、初期設定処理を指示(命令)するコマンドを用意し、そのコマンドをホスト装置から送信することで、プリンター2における上述した初期設定処理がなされてもよい。更に、この場合には、仮の変換テーブルをホスト装置に記憶し、プリンター2は測定した各ヘッド素子の分圧電圧をホスト装置に返信し、ホスト装置が返信された分圧電圧によって各ヘッド素子の変換テーブルを作成し、記憶してもよい。この場合には、劣化判断処理においても、プリンター2(ヘッド制御部23)はホスト装置から送信されるコマンドに応答して、測定した各ヘッド素子の分圧電圧をホスト装置に返信し、ホスト装置が取得した分圧電圧と記憶している変換テーブルを用いて上述した劣化判断(閾値との比較、劣化情報の記憶等)を行う。なお、ホスト装置がPOS端末装置1である場合には、これらの処理は劣化管理部13が行う。   If 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.), a command for instructing (commanding) the initial setting process is prepared. The initial setting process described above in the printer 2 may be performed by 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. In this case, also in the deterioration determination process, the printer 2 (head control unit 23) responds to the command transmitted from the host device and returns the measured divided voltage of each head element to the host device. The above-described deterioration determination (comparison with a threshold value, storage of deterioration information, etc.) is performed using the divided voltage acquired by and the stored conversion table. When the host device is the POS terminal device 1, the deterioration management unit 13 performs these processes.

また、ホスト装置からのコマンドにより、プリンター2における劣化判断処理の有効/無効(実施/不実施)や実行タイミングを設定できるようにしても良い。   Further, it may be possible to set the validity / invalidity (execution / non-execution) and execution timing of the deterioration determination process in the printer 2 by a command from the host device.

また、上述した実施の形態例の変形例として、ホスト装置(POS端末装置1、劣化管理サーバー3等)がヘッド素子の劣化情報を取得する方法に、ASB(オートステータスバック)という機能を適用してもよい。通常、ホスト装置とプリンターはマスター/スレーブの関係にあり、原則的にはプリンター側から自発的にホスト装置に情報送信を行うことはないが、プリンター2で所定のステータス情報について設定を行うことにより、そのステータス情報に変化があった際にプリンター側からそのステータス情報を自発的にホスト装置に送信することができ、その機能がASBである。この機能を適用することにより、不揮発性メモリー24に記憶される上記劣化情報に変化があった際には、自発的にその劣化情報がホスト装置に送信されるようになる。すなわち、ヘッド制御部23が劣化情報を不揮発性メモリー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 spontaneously send information to the host device, but the printer 2 sets the predetermined status information. 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 nonvolatile memory 24, the deterioration information is spontaneously transmitted to the host device. That is, the head control unit 23 reads the deterioration information from the nonvolatile memory 24, and the read deterioration information is sent from the main control unit 22 via the communication unit 21 to the host device (for example, the deterioration management unit 13 of the POS terminal device 1). Sent to.

また、上述した実施の形態例の変形例として、1つのヘッド素子毎に行っていた劣化判断処理を2以上のヘッド素子(複数のヘッド素子を含むグループ)毎に行ってもよい。すなわち、そのグループに含まれるヘッド素子に通電し、分圧電圧を測定して、そのグループ全体として劣化度合を判断する。この場合には、初期設定処理において、そのグループ毎に変換テーブルを作成して記憶しておくことが望ましい。この方法では、劣化度合(抵抗値変化率)が大きいグループについて、再度、ヘッド素子毎の劣化判断処理を実行する。当該変形例では、劣化判断処理(分圧電圧測定)の回数を減らし処理時間を短縮することができる。なお、この場合には、測定精度を上げるため、マルチプレクサ等を設けて検査用抵抗R1の抵抗値を変更してもよい。   Further, as a modification of the above-described embodiment, the deterioration determination process performed for each head element may be performed for each of two or more head elements (a group including a plurality of head elements). That is, the head elements included in the group are energized, the divided voltage is measured, and the degree of deterioration of the entire group is determined. In this case, it is desirable to create and store a conversion table for each group in the initial setting process. In this method, a deterioration determination process for each head element is executed again for a group having a large degree of deterioration (resistance value change rate). In this modification, the number of times of deterioration determination processing (divided voltage measurement) can be reduced and the processing time can be shortened. In this case, in order to increase the measurement accuracy, a multiplexer or the like may be provided to change the resistance value of the inspection resistor R1.

また、全てのヘッド素子の初期抵抗値が仕様値(製品仕様で定められた抵抗値)であると仮定して、仮の変換テーブルにおいて「X」(図5参照)に仕様値に対応する値を代入したテーブルを、全てのヘッド素子についての変換テーブルとすることもできる。この場合、劣化判断精度は落ちるものの、初期設定処理の時間を短縮することができる。   Further, assuming that the initial resistance values of all the head elements are specification values (resistance values determined by the product specifications), “X” (see FIG. 5) in the temporary conversion table corresponds to the specification value. A table into which is substituted can also be used as a conversion table for all head elements. In this case, although the deterioration judgment accuracy is lowered, the time for the initial setting process can be shortened.

以上説明したように、本実施の形態例及び変形例に係るプリンター2では、印刷処理と並行してヘッド素子の検査を実行可能な回路としなくても、印刷媒体の切断処理中など、印刷が実行され得ない時間を利用してヘッド素子の検査がなされるので、印刷処理に支障をきたすことなくヘッド素子の劣化診断を行うことができるようになる。当然の如く、回路規模を大きくする必要はない。   As described above, in the printer 2 according to the present embodiment and the modified example, printing is not possible, for example, during a cutting process of a print medium, without using a circuit that can perform head element inspection in parallel with the printing process. Since the head element is inspected by using a time that cannot be executed, the deterioration of the head element can be diagnosed without causing any trouble in the printing process. As a matter of course, it is not necessary to increase the circuit scale.

また、初期設定処理において取得された初期分圧電圧値に基づいてヘッド素子の劣化状態を判断するため、各ヘッド素子の劣化状況を適確に判断することができる。   Further, since the deterioration state of the head element is determined based on the initial divided voltage value acquired in the initial setting process, the deterioration state of each head element can be determined appropriately.

更に、全ヘッド素子について連続して劣化判断処理を行うのではなく、切断処理中など印刷が実行され得ない状態の期間中に完了できる数のヘッド素子について劣化判断処理を行うので、確実に印刷処理に支障をきたすことはない。   In addition, the deterioration determination process is not performed continuously for all the head elements, but the deterioration determination process is performed for the number of head elements that can be completed during a period in which printing cannot be performed, such as during the cutting process. There is no hindrance to processing.

また、劣化判断処理は、分圧電圧に対して予め設定された複数の閾値を用いて、行うことから、各ヘッド素子の劣化状態の判断を、きめ細かく管理することができる。   Further, since the deterioration determination process is performed using a plurality of threshold values preset for the divided voltage, the determination of the deterioration state of each head element can be managed in detail.

また、印刷媒体の切断処理中に劣化判断処理を実行するので、印刷処理に支障きたさない処理が保障される。更に、プリンター2が使用される限り印刷媒体の印刷及び切断が実行されるので、確実にヘッド素子の検査を実行することができる。   In addition, since the deterioration determination process is executed during the print medium cutting process, a process that does not interfere with the print process is guaranteed. Furthermore, as long as the printer 2 is used, the printing medium is printed and cut, so that the head element can be reliably inspected.

また、ヘッド素子の劣化判断を、カバー29の開放時やエラーの発生時に行うことによっても、印刷処理に支障をきたさない処理が保障される。   In addition, by performing the determination of head element deterioration when the cover 29 is opened or when an error occurs, processing that does not hinder the printing processing is guaranteed.

以上のように、レシートの印刷動作が実行され得ない状態の時に、ヘッド素子の劣化判断処理を実行することから、例えば、24時間営業している飲食店やコンビニエンスストア等で用いられるレシートプリンターなどにおいては、営業に支障をきたす事無くヘッド素子の劣化検査を行うことが出来るようになる。   As described above, since the head element deterioration determination process is executed when the receipt printing operation cannot be executed, for example, a receipt printer used in a restaurant or a convenience store that is open for 24 hours. In this case, the head element can be inspected for deterioration without hindering sales.

更にまた、ホスト装置に劣化判断に係る情報を送信することにより、ホスト装置などの外部装置でプリンターの劣化情報を容易に取得することができるようになり、プリンターの劣化管理、特に、遠隔装置における集約的な管理が容易に行えるようになる。   Furthermore, by transmitting information related to deterioration determination to the host device, it becomes possible to easily acquire printer deterioration information by an external device such as a host device. Centralized management can be easily performed.

更に、当該ホスト装置は、コマンドにより、遠隔装置からヘッド素子の劣化情報を操作することができ、劣化情報の管理が多様になる。   Further, the host device can operate the deterioration information of the head element from a remote device by a command, and the management of the deterioration information becomes diverse.

このように、本プリンター2では、各ヘッド素子の劣化状態を段階的に把握できるようになるので、適切な時期にヘッド素子の交換等を行え、ヘッド素子の不良による印刷の不具合を未然に防止することができる。   In this way, the printer 2 can grasp the deterioration state of each head element step by step, so that the head element can be replaced at an appropriate time, and printing defects due to defective head elements can be prevented. can do.

また、プリンター2の劣化に関する情報がASBの機能等によって、POS端末装置1、劣化管理サーバー3に送信されるので、ホスト装置側でプリンターの劣化情報を容易に取得することができるようになる。従って、プリンターの劣化管理、特に、遠隔装置における集約的な管理が容易に行えるようになる。   In addition, since the information regarding the deterioration of the printer 2 is transmitted to the POS terminal device 1 and the deterioration management server 3 by the ASB function or the like, the deterioration information of the printer can be easily acquired on the host device side. Therefore, it becomes possible to easily manage the deterioration of the printer, particularly the intensive management in the remote device.

[第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 non-volatile memory 24 stores one 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の内容について説明する。   This conversion table CT is a table for converting a divided voltage value (AD value) into a resistance value (Ω). The conversion table CT is generated before shipment of the printer 2 and is non-volatile of the printer 2. Stored in the memory 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.

図10は、分圧電圧値(AD値)と抵抗値(Rhead)の関係を示すグラフである。図10に例示されるグラフは、検査用抵抗R1の抵抗値Rを255Ωとした場合に、上記関係式(1)に基づいて求められるものである。当該グラフは、測定(取得)された分圧電圧値(AD値)を抵抗値(Rhead)に変換するために用いることができ、その対応関係を表形式で表現したものが変換テーブルCTである。   FIG. 10 is a graph showing the relationship between the divided voltage value (AD value) and the resistance value (Rhead). The graph illustrated in FIG. 10 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. .

図11は、変換テーブルCTの一例を示した図である。図11に示すように、変換テーブルCTには、分圧電圧値である「AD値」に、上記関係式(1)で対応付けられる「抵抗値(Ω)」が対応付けて収められている。従って、変換テーブルCTを用いれば、検査時(劣化判断時)に、測定(取得)されるAD値から、測定対象のヘッド素子の抵抗値(Rhead)をすぐに取得することができる。   FIG. 11 is a diagram illustrating an example of the conversion table CT. As shown in FIG. 11, 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.

図12は、初期値取得処理の手順を例示したフローチャートである。初期値取得処理は、プリンター2の初回起動時等に実行される。   FIG. 12 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は、まず、電圧印加回路25に信号を出し、検査用電圧(3.3V)をサーマルヘッド26に印加する(図12のステップS21)。   First, the head controller 23 outputs a signal to the voltage application circuit 25 and applies a test voltage (3.3 V) to the thermal head 26 (step S21 in FIG. 12).

次に、ヘッド制御部23は、初期値を取得する1つのヘッド素子(RH−1〜RH−n)を選択し、そのヘッド素子(RH−1〜RH−n)に通電する(図12のステップS22及びS23)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the head controller 23 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) (see FIG. 12). Steps S22 and S23). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、電圧が安定するのを待った後(図12のステップS24)、ヘッド制御部23は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧の測定値(AD値)を取得する(図12のステップS25)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)初期抵抗値に対応する情報が取得される。   This forms a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element. After waiting for the voltage to stabilize (step S24 in FIG. 12), the head controller 23 A 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 READ_HEAD signal (step S25 in FIG. 12). That is, information corresponding to the initial resistance value (of the resistance element (heating element)) of the head element is acquired.

次に、ヘッド制御部23は、取得したAD値を当該ヘッド素子の初期値として、不揮発性メモリー24に記憶(保存)する(図12のステップS26)。   Next, the head controller 23 stores (saves) the acquired AD value in the nonvolatile memory 24 as an initial value of the head element (step S26 in FIG. 12).

なお、取得した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 nonvolatile memory 24, and the converted resistance value may be stored in the nonvolatile memory 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.

ヘッド制御部23は、以上説明した初期値取得処理(S22−S26)を、全てのヘッド素子(RH−1〜RH−n)について実行する(図12のステップS27のNo)。   The head controller 23 executes the above-described initial value acquisition process (S22-S26) for all the head elements (RH-1 to RH-n) (No in step S27 in FIG. 12).

全てのヘッド素子(RH−1〜RH−n)について初期値取得処理が実行されると(図12のステップS27の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 S27 in FIG. 12), the process ends, and all the head elements (RH-1 to RH-n) are processed. ) Is stored in the nonvolatile memory 24.

次に、第2の実施の形態例における劣化判断処理について説明する。劣化判断処理は、第1の実施の形態例の場合と同タイミングで行われ、すなわち、図7に基づいて説明した印刷処理は同様に行われて、図8に基づいて説明した劣化判断処理に代わって以下の処理が実行される。   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, the printing process described based on FIG. 7 is performed in the same manner, and the deterioration determination process described based on FIG. 8 is performed. Instead, the following processing is executed.

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

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

次に、ヘッド制御部23は、状態値を取得する1つのヘッド素子(RH−1〜RH−n)を選択し、そのヘッド素子(RH−1〜RH−n)に通電する(図13のステップS32及びS33)。具体的には、上述の通り、DI信号をサーマルヘッド26に出して、そのヘッド素子に通電させる。   Next, the head control unit 23 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) (see FIG. 13). Steps S32 and S33). Specifically, as described above, the DI signal is output to the thermal head 26 and the head element is energized.

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、電圧が安定するのを待った後(図13のステップS34)、ヘッド制御部23は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧の測定値(AD値)を取得する(図13のステップS35)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)その時点の抵抗値に対応する情報が取得される。   This forms a series circuit that connects the inspection resistor R1 and the resistance element (heating element) of the head element. After waiting for the voltage to stabilize (step S34 in FIG. 13), the head controller 23 A 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 READ_HEAD signal (step S35 in FIG. 13). That is, information corresponding to the current resistance value of the head element (of the resistance element (heating element)) is acquired.

次に、ヘッド制御部23は、取得したAD値を当該ヘッド素子の状態値として、不揮発性メモリー24に記憶(保存)する(図13のステップS36)。なお、状態値は、ヘッド制御部23内のRAMに記憶してもよい。   Next, the head control unit 23 stores (saves) the acquired AD value as the state value of the head element in the nonvolatile memory 24 (step S36 in FIG. 13). 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 nonvolatile memory 24, and the converted resistance value may be stored in the nonvolatile memory 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.

ヘッド制御部23は、以上説明した状態値取得処理(S32−S36)を、第1の実施の形態例と同様の所定数のヘッド素子(RH−1〜RH−n)について実行する(図13のステップS37のNo)。   The head controller 23 executes the state value acquisition process (S32-S36) described above for a predetermined number of head elements (RH-1 to RH-n) similar to those in the first embodiment (FIG. 13). No of step S37).

上記所定数のヘッド素子(RH−1〜RH−n)について状態値取得処理が実行されると(図13のステップS18のYes)、ヘッド制御部23は、検査用電圧(3.3V)の印加を遮断し(図13のステップS38)、処理が終了する。その結果、全てのヘッド素子(RH−1〜RH−n)について状態値が不揮発性メモリー24に記憶される。   When the state value acquisition process is executed for the predetermined number of head elements (RH-1 to RH-n) (Yes in step S18 in FIG. 13), the head control unit 23 sets the inspection voltage (3.3V). The application is cut off (step S38 in FIG. 13), and the process ends. As a result, the state values are stored in the nonvolatile memory 24 for all the head elements (RH-1 to RH-n).

以上説明した状態値取得処理が、第1の実施の形態例で説明した印刷が実行され得ないタイミングで繰り返し実行され、全てのヘッド素子(RH−1〜RH−n)について状態値が取得されると、ヘッド制御部23は、劣化情報取得処理(抵抗値変化率取得処理)を実行する。   The state value acquisition process described above is repeatedly executed at a timing at which the printing described in the first embodiment cannot be executed, and the state values are acquired for all the head elements (RH-1 to RH-n). Then, the head control unit 23 executes a deterioration information acquisition process (resistance value change rate acquisition process).

図14は、劣化情報取得処理の手順を例示したフローチャートである。まず、ヘッド制御部23は、1つのヘッド素子(RH−1〜RH−n)を選択する(図14のステップS41)。その後、ヘッド制御部23は、不揮発性メモリー24にアクセスし、選択したヘッド素子(RH−1〜RH−n)の初期値を読み出す(図14のステップS42)。当該初期値は、上述した初期値取得処理で取得されて記憶されたものである。   FIG. 14 is a flowchart illustrating the procedure of the deterioration information acquisition process. First, the head controller 23 selects one head element (RH-1 to RH-n) (step S41 in FIG. 14). Thereafter, the head controller 23 accesses the nonvolatile memory 24 and reads the initial values of the selected head elements (RH-1 to RH-n) (step S42 in FIG. 14). The initial value is acquired and stored in the initial value acquisition process described above.

ヘッド制御部23は、読み出した初期値を、不揮発性メモリー24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図14のステップS43)。読み出された初期値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   The head control unit 23 converts the read initial value into a resistance value using the conversion table CT stored in the nonvolatile memory 24 (step S43 in FIG. 14). 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.

次に、ヘッド制御部23は、不揮発性メモリー24にアクセスし、選択したヘッド素子(RH−1〜RH−n)の状態値を読み出す(図14のステップS44)。当該状態値は、上述した状態値取得処理で取得されて記憶されたものである。   Next, the head controller 23 accesses the nonvolatile memory 24 and reads the state values of the selected head elements (RH-1 to RH-n) (step S44 in FIG. 14). The state value is acquired and stored in the state value acquisition process described above.

ヘッド制御部23は、読み出した状態値を、不揮発性メモリー24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図14のステップS45)。読み出された状態値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   The head control unit 23 converts the read state value into a resistance value using the conversion table CT stored in the nonvolatile memory 24 (step S45 in FIG. 14). 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.

次に、ヘッド制御部23は、抵抗値変化率の計算を行う(図14のステップS46)。具体的には、下記(2)式を用いて行う。   Next, the head controller 23 calculates a resistance value change rate (step S46 in FIG. 14). Specifically, the following equation (2) is used.

抵抗値変化率(%)=(状態値(Ω)−初期値(Ω))/初期値(Ω)×100 (2)
なお、初期値(Ω)は、ステップS43で抵抗値に変換された初期値であり、状態値(Ω)は、ステップS45で抵抗値に変換された状態値である。
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 S43, and the state value (Ω) is the state value converted into the resistance value in step S45.

計算された抵抗値変化率が、マイナスである場合には、ヘッド素子(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.

その後、ヘッド制御部23は、上記算出した抵抗値変化率と上記閾値を用いた判断結果を、劣化情報として不揮発性メモリー24に記憶(保存)する(図14のステップS47)。   Thereafter, the head controller 23 stores (saves) the determination result using the calculated resistance value change rate and the threshold value in the nonvolatile memory 24 as deterioration information (step S47 in FIG. 14).

図15は、劣化情報の一例を示した図である。図15に例示される劣化情報は、各ヘッド素子(RH−1〜RH−n)の識別情報(ヘッド素子No.)に、そのヘッド素子(RH−1〜RH−n)の上記算出した抵抗値変化率と、上記閾値を用いた判断結果としてのアラームフラグが対応付けられた情報である。これらの情報が不揮発性メモリー24に記憶(保存)される。   FIG. 15 is a diagram showing an example of deterioration information. The deterioration information illustrated in FIG. 15 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 nonvolatile memory 24.

図15に示される例では、上述した閾値として、例えば、「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 illustrated in FIG. 15, for example, four threshold values “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.

例えば、図15において、ヘッド素子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.

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

全てのヘッド素子(RH−1〜RH−n)について劣化情報取得処理が実行されると(図14のステップS48の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 S48 in FIG. 14), the process ends and all the head elements (RH-1 to RH-n). ) Is stored in the nonvolatile memory 24.

なお、上述の実施の形態例では、全てのヘッド素子(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.

図16は、状態値の取得と劣化情報の取得を連続して行う場合の手順を示したフローチャートである。なお、この処理は、図13に基づいて説明した処理と同様に、印刷がなされえないタイミングで実行される。   FIG. 16 is a flowchart illustrating a procedure in a case where acquisition of state values and acquisition of deterioration information are performed continuously. This process is executed at a timing at which printing cannot be performed, similarly to the process described with reference to FIG.

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

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

これにより、検査用抵抗R1と当該ヘッド素子の抵抗要素(発熱体)をつなぐ直列回路が形成されるので、電圧が安定するのを待った後(図16のステップS54)、ヘッド制御部23は、READ_HEAD信号で上記直列回路の検査用抵抗R1とヘッド素子の抵抗要素(発熱体)間の分圧電圧の測定値(AD値)を取得する(図16のステップS55)。すなわち、当該ヘッド素子の(抵抗要素(発熱体)の)その時点の抵抗値に対応する情報が取得される。   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 S54 in FIG. 16), the head controller 23 A 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 READ_HEAD signal (step S55 in FIG. 16). That is, information corresponding to the current resistance value of the head element (of the resistance element (heating element)) is acquired.

次に、ヘッド制御部23は、取得した状態値を、不揮発性メモリー24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図16のステップS56)。読み出された状態値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   Next, the head controller 23 converts the acquired state value into a resistance value using the conversion table CT stored in the nonvolatile memory 24 (step S56 in FIG. 16). 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.

次に、ヘッド制御部23は、不揮発性メモリー24にアクセスし、選択したヘッド素子(RH−1〜RH−n)の初期値を読み出す(図16のステップS57)。当該初期値は、上述した初期値取得処理で取得されて記憶されたものである。   Next, the head controller 23 accesses the nonvolatile memory 24 and reads the initial values of the selected head elements (RH-1 to RH-n) (step S57 in FIG. 16). The initial value is acquired and stored in the initial value acquisition process described above.

ヘッド制御部23は、読み出した初期値を、不揮発性メモリー24に記憶された変換テーブルCTを用いて、抵抗値に変換する(図16のステップS58)。読み出された初期値はAD値であるので、変換テーブルCTにおいて、そのAD値に対応付けて記憶されている抵抗値(Ω)を読み出すことによって、抵抗値への変換を行う。   The head control unit 23 converts the read initial value into a resistance value using the conversion table CT stored in the nonvolatile memory 24 (step S58 in FIG. 16). 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.

次に、ヘッド制御部23は、抵抗値変化率の計算を行う(図16のステップS59)。具体的には、上述した図14のステップS46と同様に行う。   Next, the head controller 23 calculates a resistance value change rate (step S59 in FIG. 16). Specifically, it is performed in the same manner as step S46 in FIG.

その後、ヘッド制御部23は、劣化情報の保存処理を実行する(図16のステップS60)。具体的には、図14のステップS47と同様に行う。   Thereafter, the head control unit 23 executes a deterioration information storing process (step S60 in FIG. 16). Specifically, it is performed in the same manner as step S47 in FIG.

ヘッド制御部23は、以上説明した劣化判断処理(S52−S60)を、図13の場合と同様に所定数のヘッド素子(RH−1〜RH−n)について実行する(図16のステップS61のNo)。   The head controller 23 executes the above-described deterioration determination process (S52-S60) for a predetermined number of head elements (RH-1 to RH-n) as in FIG. 13 (in step S61 of FIG. 16). No).

上記所定数のヘッド素子(RH−1〜RH−n)について劣化判断処理が実行されると(図16のステップS61のYes)、ヘッド制御部23は、検査用電圧(3.3V)の印加を遮断し(図16のステップS62)、処理が終了する。その結果、全てのヘッド素子(RH−1〜RH−n)について劣化情報が不揮発性メモリー24に記憶される。   When the deterioration determination process is executed for the predetermined number of head elements (RH-1 to RH-n) (Yes in step S61 in FIG. 16), the head controller 23 applies the inspection voltage (3.3V). (Step S62 in FIG. 16), and the process ends. As a result, the deterioration information is stored in the nonvolatile memory 24 for all the head elements (RH-1 to RH-n).

以上説明した処理が、第1の実施の形態例で説明した印刷が実行され得ないタイミングで繰り返し実行され、全てのヘッド素子(RH−1〜RH−n)について劣化情報が取得され、記憶される。   The processing described above is repeatedly executed at a timing at which printing described in the first embodiment cannot be executed, and deterioration information is acquired and stored for all the head elements (RH-1 to RH-n). The

第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…ヘッド素子、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 ... Non-volatile memory, 25 ... Voltage application circuit, 26 ... Thermal head, 27 ... Auto cutter, 28 ... Paper conveyance part, 29 ... Cover, 100 ... Printer system, 200 ... Deterioration management system, 262 ... Latch driver, 263 ... Shift register, RH-1 to RH-n ... Head element, CT ... Conversion table.

Claims (11)

複数のヘッド素子により印刷媒体に印刷を実行するサーマルヘッドと、
前記ヘッド素子に第1電圧または第2電圧を印加する電圧印加回路と、
前記ヘッド素子の分圧電圧を測定するヘッド制御部と、を有し、
前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記電圧印加回路により、前記ヘッド素子に印加する電圧を、前記第2電圧に切り替え、前記ヘッド素子の分圧電圧を測定する
ことを特徴とする印刷装置。
A thermal head for performing printing on a print medium by a plurality of head elements;
A voltage application circuit for applying a first voltage or a second voltage to the head element;
A head controller that measures a divided voltage of the head element,
When the head control unit detects a state where the printing cannot be performed, the voltage application circuit switches the voltage applied to the head element to the second voltage, and measures the divided voltage of the head element. A printing apparatus characterized by that.
請求項1において、
更に、データ記憶部を有し、
前記サーマルヘッドは、更に、選択部を備え、
前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、
前記ヘッド素子毎に、
前記選択部によって当該ヘッド素子を選択し、当該ヘッド素子の抵抗要素と前記電圧印加回路の検査用抵抗による直列回路の分圧電圧を測定し、当該測定した分圧電圧と予め前記データ記憶部に記憶された初期分圧電圧値に基づいて、当該ヘッド素子の劣化状態を判断する、劣化判断処理を行う
ことを特徴とする印刷装置。
In claim 1,
Furthermore, it has a data storage unit,
The thermal head further includes a selection unit,
When the head control unit detects a state where the printing cannot be performed,
For each head element,
The selection unit selects the head element, measures the divided voltage of the series circuit by the resistance element of the head element and the test resistor of the voltage application circuit, and stores the measured divided voltage and the data storage unit in advance. A printing apparatus that performs a deterioration determination process that determines a deterioration state of the head element based on the stored initial divided voltage value.
請求項2において、
前記劣化判断処理は、前記印刷が実行され得ない状態の間に完了できる、全ヘッド素子数を分割した所定数のヘッド素子について実行される
ことを特徴とする印刷装置。
In claim 2,
The deterioration determination process is executed for a predetermined number of head elements obtained by dividing the total number of head elements that can be completed while the printing cannot be executed.
請求項1乃至3のいずれか1項において、
前記ヘッド制御部は、前記分圧電圧に対して予め設定された複数の閾値を用いて、前記ヘッド素子の劣化状態を判断する
ことを特徴とする印刷装置。
In any one of Claims 1 thru | or 3,
The printing apparatus according to claim 1, wherein the head control unit determines a deterioration state of the head element by using a plurality of threshold values preset for the divided voltage.
請求項1乃至4のいずれか1項において、
更に、前記印刷後の前記印刷媒体を切断するオートカッターを有し、
前記印刷が実行され得ない状態の検知は、前記オートカッターによる前記切断の開始を検知することである
ことを特徴とする印刷装置。
In any one of Claims 1 thru | or 4,
Furthermore, it has an auto cutter for cutting the printing medium after the printing,
The detection of the state where the printing cannot be executed is to detect the start of the cutting by the auto cutter.
請求項1乃至5のいずれか1項において、
更に、前記印刷装置の筐体に、前記印刷媒体の収納部を開放できるカバーを有し、
前記印刷が実行され得ない状態の検知は、前記カバーの開放を検知することである
ことを特徴とする印刷装置。
In any one of Claims 1 thru | or 5,
Furthermore, the housing of the printing apparatus has a cover that can open the storage portion for the print medium,
The detection of the state in which the printing cannot be performed is to detect the opening of the cover.
請求項1乃至6のいずれか1項において、
前記印刷が実行され得ない状態の検知は、前記印刷装置におけるエラーの発生を検知することである
ことを特徴とする印刷装置。
In any one of Claims 1 thru | or 6,
Detection of a state where the printing cannot be performed is detection of occurrence of an error in the printing apparatus.
請求項1乃至7のいずれか1項において、
前記第2電圧と前記ヘッド制御部の電圧は同じである
ことを特徴とする印刷装置。
In any one of Claims 1 thru | or 7,
The printing apparatus, wherein the second voltage and the voltage of the head control unit are the same.
複数のヘッド素子により印刷媒体に印刷を実行するサーマルヘッドと、前記ヘッド素子に第1電圧または第2電圧を印加する電圧印加回路と、前記ヘッド素子の分圧電圧を測定するヘッド制御部と、を備える印刷装置の制御方法であって、
前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記電圧印加回路により、前記ヘッド素子に印加する電圧を、前記第2電圧に切り替え、前記ヘッド素子の分圧電圧を測定する
ことを特徴とする制御方法。
A thermal head that performs printing on a print medium by a plurality of head elements, a voltage application circuit that applies a first voltage or a second voltage to the head elements, a head controller that measures a divided voltage of the head elements, A control method for a printing apparatus comprising:
When the head control unit detects a state where the printing cannot be performed, the voltage application circuit switches the voltage applied to the head element to the second voltage, and measures the divided voltage of the head element. A control method characterized by that.
複数のヘッド素子により印刷媒体に印刷を実行するサーマルヘッドと、前記ヘッド素子に第1電圧または第2電圧を印加する電圧印加回路と、前記ヘッド素子の分圧電圧を測定するヘッド制御部と、通信部と、を備える印刷装置と、当該印刷装置のホスト装置を有する印刷システムであって、
前記印刷装置の前記ヘッド制御部は、前記印刷が実行され得ない状態を検知すると、前記電圧印加回路により、前記ヘッド素子に印加する電圧を、前記第2電圧に切り替え、前記ヘッド素子の分圧電圧を測定し、
前記分圧電圧に対して予め設定された閾値を用いて、前記ヘッド素子の劣化状態を判断し、前記測定した分圧電圧及び/又は、前記閾値による判断結果を、前記通信部によって前記ホスト装置へ送信し、
前記ホスト装置は、前記送信された情報を取得する
ことを特徴とする印刷システム。
A thermal head that performs printing on a print medium by a plurality of head elements, a voltage application circuit that applies a first voltage or a second voltage to the head elements, a head controller that measures a divided voltage of the head elements, A printing system including a communication unit, and a host device of the printing device,
When the head controller of the printing apparatus detects a state where the printing cannot be performed, the voltage application circuit switches the voltage applied to the head element to the second voltage, thereby dividing the voltage of the head element. Measure the voltage,
The degradation state of the head element is determined using a threshold value set in advance with respect to the divided voltage, and the determination result based on the measured divided voltage and / or the threshold value is determined by the communication unit by the host device. Send to
The printing system, wherein the host device acquires the transmitted information.
請求項10において、
前記ホスト装置は、前記印刷装置にコマンドを送信し、
前記印刷装置は、当該コマンドを受信して、前記ヘッド制御部による前記ホスト装置への情報の送信を実行する
ことを特徴とする印刷システム。
In claim 10,
The host device sends a command to the printing device;
The printing system receives the command and transmits information to the host device by the head control unit.
JP2016034500A 2015-12-04 2016-02-25 Printing apparatus, control method, and printing system Active JP6682906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/367,565 US9815297B2 (en) 2015-12-04 2016-12-02 Printing device, control method, and printing system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015237800 2015-12-04
JP2015237800 2015-12-04

Publications (2)

Publication Number Publication Date
JP2017105151A true JP2017105151A (en) 2017-06-15
JP6682906B2 JP6682906B2 (en) 2020-04-15

Family

ID=59058557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016034500A Active JP6682906B2 (en) 2015-12-04 2016-02-25 Printing apparatus, control method, and printing system

Country Status (1)

Country Link
JP (1) JP6682906B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019202452A (en) * 2018-05-22 2019-11-28 東芝テック株式会社 Image forming apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05104763A (en) * 1991-10-18 1993-04-27 Furuno Electric Co Ltd Dot inspection device of thermal printer
JPH11268389A (en) * 1998-03-25 1999-10-05 Nippon Jikensha:Kk Variable type automatic stamp duty payment instrument
JP2002192760A (en) * 2000-12-27 2002-07-10 Toshiba Tec Corp Method and device for diagnosing head of thermal printer
JP2005288828A (en) * 2004-03-31 2005-10-20 Sato Corp Printer
JP2007083553A (en) * 2005-09-22 2007-04-05 Fujifilm Corp Power supply circuit for thermal head, and thermal head recording device
JP2008183770A (en) * 2007-01-29 2008-08-14 Sato Corp Wire breaking checker of thermal head
JP2011148232A (en) * 2010-01-22 2011-08-04 Seiko Epson Corp Head element operation checking mechanism, method for checking head element operation, and method for checking number of head element
WO2015052540A1 (en) * 2013-10-11 2015-04-16 Videojet Technologies Inc. Thermal printer

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05104763A (en) * 1991-10-18 1993-04-27 Furuno Electric Co Ltd Dot inspection device of thermal printer
JPH11268389A (en) * 1998-03-25 1999-10-05 Nippon Jikensha:Kk Variable type automatic stamp duty payment instrument
JP2002192760A (en) * 2000-12-27 2002-07-10 Toshiba Tec Corp Method and device for diagnosing head of thermal printer
JP2005288828A (en) * 2004-03-31 2005-10-20 Sato Corp Printer
JP2007083553A (en) * 2005-09-22 2007-04-05 Fujifilm Corp Power supply circuit for thermal head, and thermal head recording device
JP2008183770A (en) * 2007-01-29 2008-08-14 Sato Corp Wire breaking checker of thermal head
JP2011148232A (en) * 2010-01-22 2011-08-04 Seiko Epson Corp Head element operation checking mechanism, method for checking head element operation, and method for checking number of head element
WO2015052540A1 (en) * 2013-10-11 2015-04-16 Videojet Technologies Inc. Thermal printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019202452A (en) * 2018-05-22 2019-11-28 東芝テック株式会社 Image forming apparatus

Also Published As

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

Similar Documents

Publication Publication Date Title
JP5720098B2 (en) Head element operation confirmation mechanism and head element operation confirmation method
US9815297B2 (en) Printing device, control method, and printing system
JP2017119413A (en) Printer, control method, and printing system
JP2017209817A (en) Printer and control method for printer
JP6682906B2 (en) Printing apparatus, control method, and printing system
JP6679982B2 (en) Printing device and control method
JP2017052260A (en) Printer, control method and printing system
JP2017052259A (en) Printer and control method
JP6679941B2 (en) Printing apparatus, control method, and printing system
JP6679981B2 (en) Printing device and control method
JP2012016874A (en) Printer and program
JP2008079225A (en) Apparatus and method for judging colorimetry precision, and colorimetry precision judgement correcting system
US9329821B2 (en) Printing apparatus, method of controlling printing apparatus, and storage medium for displaying print job processing time
JP2015052831A (en) Print control unit, print control method, program, and record medium
JP2007013599A (en) Image data processing system, controller and image conversion program
JP5624962B2 (en) Printer and printing method
JP2012223995A (en) Device and method for checking disconnection in thermal head
JP2016115307A (en) Printing device, printing system, calibration program, and recording medium
JP2015131415A (en) Image forming apparatus, control method therefor, and program
JP5915704B2 (en) Head element number confirmation method and head element number confirmation mechanism
JP2008201017A (en) Thermal printer
JP5030288B2 (en) Printer
JP2018142863A (en) Image forming apparatus, inspection method for image forming apparatus, and inspection program
JP2009208387A (en) Thermal printer
JP2011192107A (en) Control device, recording system, control method of the control device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191211

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200207

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200309

R150 Certificate of patent or registration of utility model

Ref document number: 6682906

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150