JP6810419B2 - Thermal printer, print control method of thermal printer, and program - Google Patents

Thermal printer, print control method of thermal printer, and program Download PDF

Info

Publication number
JP6810419B2
JP6810419B2 JP2017007490A JP2017007490A JP6810419B2 JP 6810419 B2 JP6810419 B2 JP 6810419B2 JP 2017007490 A JP2017007490 A JP 2017007490A JP 2017007490 A JP2017007490 A JP 2017007490A JP 6810419 B2 JP6810419 B2 JP 6810419B2
Authority
JP
Japan
Prior art keywords
temperature
print
unit
head
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017007490A
Other languages
Japanese (ja)
Other versions
JP2018114691A (en
Inventor
久 小佐野
久 小佐野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
Original Assignee
NEC Platforms Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2017007490A priority Critical patent/JP6810419B2/en
Publication of JP2018114691A publication Critical patent/JP2018114691A/en
Application granted granted Critical
Publication of JP6810419B2 publication Critical patent/JP6810419B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、サーマルプリンタ、サーマルプリンタのプラテン開閉検知方法、及び、プログラムに関する。 The present invention relates to a thermal printer, a platen open / close detection method for a thermal printer, and a program.

サーマルプリンタは、印刷データに応じた文字などをサーマルヘッドから熱転写することで、記録媒体としての用紙に当該文字などを印刷する装置である。サーマルプリンタでは、典型的には、サーマルヘッドが蓋に設けられ、プラテンローラが本体に設けられる。そして、本体に対して蓋が閉じられると、サーマルヘッドとプラテンローラとの間に用紙が挟持される。この状態でプラテンローラを回転させると、それによって、用紙が搬送される。用紙の搬送にともなって、サーマルヘッドは、その搬送速度、印刷データなどに応じて用紙を加熱する。これによって、用紙に塗布された感熱層が発色し、印刷データに応じた文字などが用紙に印刷される。 A thermal printer is a device that prints characters or the like on paper as a recording medium by thermally transferring characters or the like corresponding to print data from the thermal head. In a thermal printer, a thermal head is typically provided on the lid and a platen roller is provided on the body. Then, when the lid is closed with respect to the main body, the paper is sandwiched between the thermal head and the platen roller. When the platen roller is rotated in this state, the paper is conveyed by it. As the paper is transported, the thermal head heats the paper according to the transport speed, print data, and the like. As a result, the heat-sensitive layer applied to the paper develops color, and characters and the like corresponding to the print data are printed on the paper.

サーマルプリンタにおいて、サーマルヘッドとプラテンローラとが印刷中に離間すると、いわゆる空印刷となって、サーマルヘッドが過熱して損傷するおそれがある。これを防止するため、サーマルプリンタでは、例えば蓋の開閉がレバーによって行われ、蓋の開閉を確認するための検知センサが実装されることがある(特許文献1参照)。 In a thermal printer, if the thermal head and the platen roller are separated from each other during printing, so-called blank printing may occur, and the thermal head may overheat and be damaged. In order to prevent this, in a thermal printer, for example, the lid is opened and closed by a lever, and a detection sensor for confirming the opening and closing of the lid may be mounted (see Patent Document 1).

特許文献1には、2種類のサーマルプリンタが開示されている。 Patent Document 1 discloses two types of thermal printers.

特許文献1に開示された第1のプリンタは、モータと、プラテンローラの回転に応じて発生する信号を検出する検出手段と、記録媒体を搬送するためにモータに与えられる電圧よりも低い電圧をモータに与えたときに、検出手段により検出される信号の有無に基づいて、蓋の開閉状態を判別する判別手段を備える。第1のサーマルプリンタにおいて、モータは、本体に対して蓋が閉成するのと連動して、蓋に設けられたサーマルヘッドと本体に設けられたプラテンローラとの間に記録媒体が挟持された状態でプラテンローラを回転させることにより記録媒体を搬送する。 The first printer disclosed in Patent Document 1 has a motor, a detection means for detecting a signal generated in response to the rotation of a platen roller, and a voltage lower than a voltage given to the motor to convey a recording medium. A discriminating means for determining the open / closed state of the lid based on the presence / absence of a signal detected by the detecting means when the motor is given is provided. In the first thermal printer, the motor has a recording medium sandwiched between the thermal head provided on the lid and the platen roller provided on the main body in conjunction with the closing of the lid with respect to the main body. The recording medium is conveyed by rotating the platen roller in this state.

特許文献1に開示された第2のプリンタは、モータと、プラテンローラの回転に応じた周期で発生する信号を検出する検出手段と、サーマルヘッドにより記録媒体に記録処理中に、検出手段により検出される信号の周期に基づいて、蓋の開閉状態を判別する判別手段とを備える。第2のサーマルプリンタにおいて、モータは、本体に対して蓋が閉成するのと連動して、蓋に設けられたサーマルヘッドと本体に設けられたプラテンローラとの間に記録媒体が挟持された状態で電圧を印加しプラテンローラを回転させることにより前記記録媒体を搬送する。 The second printer disclosed in Patent Document 1 has a detection means for detecting a signal generated at a cycle corresponding to the rotation of a motor and a platen roller, and a detection means for detecting the signal while being recorded on a recording medium by a thermal head. A discriminating means for discriminating the open / closed state of the lid based on the cycle of the signal to be received is provided. In the second thermal printer, the motor has a recording medium sandwiched between the thermal head provided on the lid and the platen roller provided on the main body in conjunction with the closing of the lid with respect to the main body. The recording medium is conveyed by applying a voltage in this state and rotating the platen roller.

特許第5928006号公報Japanese Patent No. 5928006

特許文献1に記載のプリンタでは、本体に対する蓋の開閉に連動して、サーマルヘッドとプラテンローラとの離間/近接が切り替わる。ここで、近接とは、サーマルヘッドとプラテンローラとが予め定められた力で記録媒体を挟持する状態であり、これ以外の状態が離間である。このようなプリンタにおいて、サーマルヘッドとプラテンローラとの離間が検知されると、空印刷による損傷などを防止するため、印刷を停止させることが通常である。 In the printer described in Patent Document 1, the separation / proximity of the thermal head and the platen roller is switched in conjunction with the opening and closing of the lid with respect to the main body. Here, the proximity is a state in which the thermal head and the platen roller sandwich the recording medium with a predetermined force, and the other states are separation. In such a printer, when the separation between the thermal head and the platen roller is detected, printing is usually stopped in order to prevent damage due to blank printing.

しかしながら、特許文献1に記載のプリンタが備える検出手段では、サーマルヘッドとプラテンローラとが、これらの間への異物の混入などのために極めて短い時間だけ離間したような場合であっても、プラテンローラの回転が変化して離間したと検知する可能性がある。このような場合、実際には印刷を継続しても問題はないにもかかわらず印刷を停止することになり、印刷効率を低下させることになることがある。 However, in the detection means provided in the printer described in Patent Document 1, even when the thermal head and the platen roller are separated from each other for an extremely short time due to the mixing of foreign matter between them, the platen is used. It may be detected that the rotation of the rollers changes and the rollers are separated. In such a case, although there is no problem even if the printing is actually continued, the printing is stopped, which may reduce the printing efficiency.

このような印刷効率の低下に対応する方法として、印刷開始時点から、検出手段の動作を停止させたり、検出手段からの出力を遮断したりすることが考えられる。しかし、これらの方法によると、サーマルヘッドとプラテンローラとが印刷中に実際に離間していても、それを検知することができず、その結果、空印刷によってサーマルヘッドが損傷する危険がある。 As a method for dealing with such a decrease in printing efficiency, it is conceivable to stop the operation of the detection means or block the output from the detection means from the start of printing. However, according to these methods, even if the thermal head and the platen roller are actually separated from each other during printing, it cannot be detected, and as a result, there is a risk that the thermal head is damaged by blank printing.

また、特許文献1に開示された上述の第1及び第2のプリンタは、いずれも、検出手段としてのエンコーダの出力を利用して、サーマルヘッドとプラテンローラとの離間/近接を検知している。すなわち、特許文献1に開示された第1及び第2のプリンタでは、エンコーダによってモータの動作をフィードバックするクローズド・ループ制御方式が採用されている。そのため、エンコーダが不要な制御方式であるオープン・ループ制御方式のサーマルプリンタに適用することが極めて困難である。 Further, both of the above-mentioned first and second printers disclosed in Patent Document 1 detect the separation / proximity of the thermal head and the platen roller by using the output of the encoder as the detection means. .. That is, in the first and second printers disclosed in Patent Document 1, a closed loop control method in which the operation of the motor is fed back by an encoder is adopted. Therefore, it is extremely difficult to apply it to an open-loop control type thermal printer, which is a control method that does not require an encoder.

本発明は、上記の事情に鑑みてなされたものであって、エンコーダが搭載されなくても、空印刷によるサーマルヘッドの損傷を回避しつつ、印刷効率の低下を抑制することが可能なサーマルプリンタなどを提供することを目的とする。 The present invention has been made in view of the above circumstances, and is a thermal printer capable of suppressing a decrease in printing efficiency while avoiding damage to the thermal head due to blank printing even if an encoder is not mounted. The purpose is to provide such as.

上記目的を達成するため、本発明の第1の観点に係るサーマルプリンタは、
サーマルヘッドの温度であるヘッド温度を測定するヘッド温度センサと、
予め定められた時点からの印刷履歴に基づいて、前記サーマルヘッドの予測温度を求める予測部と、
前記測定されたヘッド温度と前記求められた予測温度とを比較する比較部と、
前記比較部による比較の結果に基づいて、印刷を制御する印刷制御部とを備える。
In order to achieve the above object, the thermal printer according to the first aspect of the present invention is
A head temperature sensor that measures the head temperature, which is the temperature of the thermal head,
A prediction unit that obtains the predicted temperature of the thermal head based on the printing history from a predetermined time point, and
A comparison unit that compares the measured head temperature with the obtained predicted temperature, and
A print control unit that controls printing based on the result of comparison by the comparison unit is provided.

前記印刷制御部は、前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きい場合に、印刷を停止させてもよい。 The print control unit may stop printing when the magnitude of the difference between the measured head temperature and the obtained predicted temperature is larger than a predetermined threshold value.

前記サーマルヘッドとプラテンローラとが離間したか否かを検知し、検知した結果を示す検知信号を出力する検知部をさらに備え、
前記比較部は、前記出力された検知信号が離間したことを示す場合に、前記測定されたヘッド温度と前記求められた予測温度とを比較してもよい。
Further provided with a detection unit that detects whether or not the thermal head and the platen roller are separated from each other and outputs a detection signal indicating the detection result.
The comparison unit may compare the measured head temperature with the obtained predicted temperature when it indicates that the output detection signals are separated.

予め設定される印刷単位における印刷密度を示す印刷パターンと、当該印刷パターンに応じた印刷密度で前記印刷単位の印刷を行った場合のサーマルヘッドの上昇温度である単位上昇温度と、を関連付けた基準データを記憶する記憶部をさらに備え、
前記予測部は、
前記印刷パターンの印刷単位を基準として、前記印刷履歴の印刷量を算出する印刷量算出部と、
前記基準データに含まれる単位上昇温度と前記算出された印刷量とに基づいて、前記サーマルヘッドの予測温度を求める温度予測部とを有してもよい。
A reference relating a print pattern indicating a print density in a preset print unit and a unit rise temperature which is a rise temperature of a thermal head when printing of the print unit at a print density corresponding to the print pattern. It also has a storage unit to store data.
The prediction unit
A print amount calculation unit that calculates the print amount of the print history based on the print unit of the print pattern,
It may have a temperature prediction unit for obtaining the predicted temperature of the thermal head based on the unit rise temperature included in the reference data and the calculated print amount.

環境温度を測定する環境温度センサをさらに備え、
前記温度予測部は、前記単位上昇温度と前記算出された印刷量との積に、前記測定された環境温度を加算することによって、前記サーマルヘッドの予測温度を求めてもよい。
Equipped with an environmental temperature sensor that measures the environmental temperature
The temperature prediction unit may obtain the predicted temperature of the thermal head by adding the measured ambient temperature to the product of the unit rise temperature and the calculated print amount.

利用中のユーザを示す利用中ユーザデータを取得する利用中ユーザ取得部をさらに備え、
前記基準データは、前記印刷パターンと前記単位上昇温度とに加えて、ユーザを識別するためのユーザIDを関連付けており、
前記予測部は、
前記取得された利用中ユーザデータに対応する前記ユーザIDを特定し、当該特定したユーザIDに関連付けられた前記印刷パターン及び前記単位上昇温度を取得する基準データ取得部をさらに有し、
前記印刷量算出部は、前記取得された印刷パターンの印刷単位を基準として、前記印刷履歴の印刷量を算出し、
前記温度予測部は、前記取得された単位上昇温度と前記算出された印刷量とに基づいて、前記サーマルヘッドの予測温度を求めてもよい。
It also has an in-use user acquisition unit that acquires in-use user data that indicates the in-use user.
The reference data associates the print pattern with the unit rise temperature and a user ID for identifying the user.
The prediction unit
Further having a reference data acquisition unit that identifies the user ID corresponding to the acquired user data in use and acquires the print pattern and the unit rise temperature associated with the specified user ID.
The print amount calculation unit calculates the print amount of the print history based on the print unit of the acquired print pattern.
The temperature prediction unit may obtain the predicted temperature of the thermal head based on the acquired unit rise temperature and the calculated print amount.

前記印刷パターンは、前記印刷単位当たりの行数と各行の文字数とを含んでもよい。 The printing pattern may include the number of lines per printing unit and the number of characters in each line.

本発明の第2の観点に係るサーマルプリンタのプラテン開閉検知方法は、
サーマルヘッドの温度であるヘッド温度を示すヘッド温度データを取得することと、
予め定められた時点からの印刷履歴に基づいて、前記サーマルヘッドの予測温度を求めることと、
前記測定されたヘッド温度と前記求められた予測温度とを比較することと、
前記比較の結果に基づいて、印刷を制御することとを含む
The platen open / close detection method of the thermal printer according to the second aspect of the present invention is
Acquiring head temperature data indicating the head temperature, which is the temperature of the thermal head,
Obtaining the predicted temperature of the thermal head based on the printing history from a predetermined time point,
Comparing the measured head temperature with the obtained predicted temperature,
Including controlling printing based on the result of the comparison.

本発明の第3の観点に係るプログラムは、
コンピュータに、
サーマルヘッドの温度であるヘッド温度を示すヘッド温度データを取得することと、
前記サーマルヘッドが搭載されたサーマルプリンタによる予め定められた時点からの印刷履歴に基づいて、前記サーマルヘッドの予測温度を求めることと、
前記測定されたヘッド温度と前記求められた予測温度とを比較することと、
前記比較部による比較の結果に基づいて、印刷を制御することとを
実行させるためのものである。
The program according to the third aspect of the present invention
On the computer
Acquiring head temperature data indicating the head temperature, which is the temperature of the thermal head,
Obtaining the predicted temperature of the thermal head based on the printing history from a predetermined time point by the thermal printer equipped with the thermal head, and
Comparing the measured head temperature with the obtained predicted temperature,
The purpose is to control printing based on the result of comparison by the comparison unit.

本発明によれば、エンコーダが搭載されなくても、空印刷によるサーマルヘッドの損傷を回避しつつ、印刷効率の悪化を抑制することが可能になる。 According to the present invention, even if an encoder is not mounted, it is possible to suppress deterioration of printing efficiency while avoiding damage to the thermal head due to blank printing.

本発明の一実施の形態に係るサーマルプリンタの物理的な構成を示す図である。It is a figure which shows the physical structure of the thermal printer which concerns on one Embodiment of this invention. 一実施の形態に係る制御ユニットの機能的な構成を示す図である。It is a figure which shows the functional structure of the control unit which concerns on one Embodiment. 一実施の形態に係る基準データの構成を示す図である。It is a figure which shows the structure of the reference data which concerns on one Embodiment. 一実施の形態に係る印刷モード制御部の機能的な構成を示す図である。It is a figure which shows the functional structure of the print mode control part which concerns on one Embodiment. 一実施の形態に係る予測部の機能的な構成を示す図である。It is a figure which shows the functional structure of the prediction part which concerns on one Embodiment. 本発明の一実施の形態に係る基準データ収集処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the reference data collection processing which concerns on one Embodiment of this invention. 検知スイッチの動作と検知信号との関係の一例を示す図である。It is a figure which shows an example of the relationship between the operation of a detection switch and a detection signal. 本発明の一実施の形態に係る印刷モード処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the print mode processing which concerns on one Embodiment of this invention. 本発明の一実施の形態に係る印刷モード処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the print mode processing which concerns on one Embodiment of this invention. 図8Aに示す予測データ取得処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the prediction data acquisition processing shown in FIG. 8A. 本発明の一実施の形態に係る検査モード処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the inspection mode processing which concerns on one Embodiment of this invention. 本発明の一実施の形態に係る検査モード処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the inspection mode processing which concerns on one Embodiment of this invention. 本発明の一実施の形態に係る検査モード処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the inspection mode processing which concerns on one Embodiment of this invention.

本発明の一実施の形態について図面を参照して説明する。以下の説明において、前後上下左右の用語を用いて方向を説明するが、これらは、説明のために用いるのであって、本発明を限定する趣旨ではない。 An embodiment of the present invention will be described with reference to the drawings. In the following description, the directions will be described using terms of front, back, up, down, left and right, but these are used for explanation and are not intended to limit the present invention.

本発明の一実施の形態に係るサーマルプリンタは、文字、記号、画像などを感熱紙に熱転写により印刷する装置である。なお、本実施の形態では、感熱紙を記録媒体として熱転写するサーマルプリンタの例により説明するが、サーマルプリンタは、これに限られず、例えば感熱紙以外の記録媒体にインクリボンを利用して熱転写してもよい。 The thermal printer according to the embodiment of the present invention is a device that prints characters, symbols, images, and the like on thermal paper by thermal transfer. In the present embodiment, an example of a thermal printer that thermally transfers thermal paper as a recording medium will be described, but the thermal printer is not limited to this, and for example, thermal transfer is thermally performed to a recording medium other than thermal paper by using an ink ribbon. You may.

本実施の形態に係るサーマルプリンタ100は、図1に示すように、サーマルヘッド101と、プラテンローラ102と、検知スイッチ103と、モータ104と、ヘッド温度センサ105と、環境温度センサ106と、入力部107と、表示部108と、モード切替スイッチ109と、制御ユニット110とを備える。 As shown in FIG. 1, the thermal printer 100 according to the present embodiment inputs the thermal head 101, the platen roller 102, the detection switch 103, the motor 104, the head temperature sensor 105, and the environmental temperature sensor 106. A unit 107, a display unit 108, a mode changeover switch 109, and a control unit 110 are provided.

サーマルヘッド101は、感熱紙111を加熱することで、文字、記号、画像などを転写する部材である。 The thermal head 101 is a member that transfers characters, symbols, images, and the like by heating the thermal paper 111.

サーマルヘッド101は、例えば、整列配置された微小な発熱体を有する。各発熱体に通電させるか否かを切り替えることで、印刷する文字、記号、画像などに応じた各発熱体を選択的に発熱させる。このような発熱体で加熱された感熱紙に、文字、記号、画像などが転写される。 The thermal head 101 has, for example, minute heating elements that are aligned and arranged. By switching whether or not to energize each heating element, each heating element is selectively heated according to the characters, symbols, images, etc. to be printed. Characters, symbols, images, etc. are transferred to the thermal paper heated by such a heating element.

プラテンローラ102は、左右に延在する回転軸112を中心に回転する円柱状の部材であって、樹脂、ゴムなどを材料として作られる。 The platen roller 102 is a columnar member that rotates around a rotating shaft 112 extending to the left and right, and is made of resin, rubber, or the like.

典型的には、サーマルヘッド101とプラテンローラ102とは、近接した状態と離間した状態とを切り替えることができ、近接した状態では、感熱紙111を介して互いに予め定められた力を及ぼし合う。そのため、サーマルヘッド101とプラテンローラ102とが近接して、図1に示すように感熱紙111を挟持した状態で、プラテンローラ102が回転すると、その回転量に応じて感熱紙111が搬送される。 Typically, the thermal head 101 and the platen roller 102 can switch between a close state and a separated state, and in the close state, exert a predetermined force on each other via the thermal paper 111. Therefore, when the platen roller 102 rotates while the thermal head 101 and the platen roller 102 are close to each other and sandwich the thermal paper 111 as shown in FIG. 1, the thermal paper 111 is conveyed according to the amount of rotation. ..

例えば、サーマルヘッド101及びプラテンローラ102は、図示しないPOS(Point of sale)端末などの筐体に配置される。筐体は、典型的には、中空の箱であって、開口を有する中空の本体と、本体の開口を開閉可能な蓋とで構成される。そして、サーマルヘッド101とプラテンローラ102とは、蓋の開閉に連動して離間と近接とが切り替わるように、それぞれが蓋と本体とに設けられる。これによれば、サーマルヘッド101とプラテンローラ102とは、本体に対して蓋を閉じると近接し、本体に対して蓋を開けると離間する。そして、蓋が本体に対して閉じられると、近接したサーマルヘッド101とプラテンローラ102との間に感熱紙111が挟持される。 For example, the thermal head 101 and the platen roller 102 are arranged in a housing such as a POS (Point of sale) terminal (not shown). The housing is typically a hollow box, consisting of a hollow body having an opening and a lid that can open and close the opening of the body. The thermal head 101 and the platen roller 102 are provided on the lid and the main body, respectively, so that the distance and the proximity are switched in conjunction with the opening and closing of the lid. According to this, the thermal head 101 and the platen roller 102 are close to the main body when the lid is closed, and separated from the main body when the lid is opened. Then, when the lid is closed with respect to the main body, the thermal paper 111 is sandwiched between the adjacent thermal head 101 and the platen roller 102.

検知スイッチ103は、サーマルヘッド101とプラテンローラ102とが離間したか否かを検知する検知部であって、検知した結果を示す検知信号を出力する。 The detection switch 103 is a detection unit that detects whether or not the thermal head 101 and the platen roller 102 are separated from each other, and outputs a detection signal indicating the detection result.

本実施の形態に係る検知スイッチ103は、例えば筐体の本体に設けられ、可動部材(139)と、ピン部材(138)とを有する(図7(a)〜(e)参照。なお、図7(a)〜(e)の各々は、回転軸112及び検知スイッチ103を右方から見た図である。)。 The detection switch 103 according to the present embodiment is provided on the main body of the housing, for example, and has a movable member (139) and a pin member (138) (see FIGS. 7 (a) to 7 (e)). Each of 7 (a) to 7 (e) is a view of the rotating shaft 112 and the detection switch 103 viewed from the right side).

可動部材(139)は、筐体の本体に固定されるプラテンローラ102の回転軸112に対して上下動する。可動部材(139)には、図示しないバネなどによって上方へ向かう付勢力が加えられている。 The movable member (139) moves up and down with respect to the rotation shaft 112 of the platen roller 102 fixed to the main body of the housing. An upward urging force is applied to the movable member (139) by a spring or the like (not shown).

ピン部材(138)は、その下端部が回転軸112に当接しており、可動部材(139)に出没自在に設けられる。 The lower end of the pin member (138) is in contact with the rotating shaft 112, and the pin member (138) is provided on the movable member (139) so as to be freely visible.

本体に対して蓋が閉じられると、可動部材(139)が蓋によって下方に押され、その結果、付勢力に抗して下方へ移動する。これに連動して、ピン部材(138)が押されて可動部材(139)の中へ没入する(図7(c),(e)参照)。これにより、検知スイッチ103は、サーマルヘッド101とプラテンローラ102とが近接したこと(すなわち、離間していないこと)を検知し、これを示す近接信号を検知信号として出力する。 When the lid is closed with respect to the body, the movable member (139) is pushed downward by the lid, and as a result, moves downward against the urging force. In conjunction with this, the pin member (138) is pushed and immersed in the movable member (139) (see FIGS. 7 (c) and 7 (e)). As a result, the detection switch 103 detects that the thermal head 101 and the platen roller 102 are close to each other (that is, not separated from each other), and outputs a proximity signal indicating this as a detection signal.

また、本体に対して蓋が開けられると、可動部材(139)は、付勢力によって上方へ移動する。これに連動して、ピン部材(138)が可動部材(139)から下方へ突出する(図7(a),(b)参照)。これにより、検知スイッチ103は、サーマルヘッド101とプラテンローラ102とが離間していることを検知し、これを示す離間信号を検知信号として出力する。 Further, when the lid is opened with respect to the main body, the movable member (139) moves upward by the urging force. In conjunction with this, the pin member (138) projects downward from the movable member (139) (see FIGS. 7 (a) and 7 (b)). As a result, the detection switch 103 detects that the thermal head 101 and the platen roller 102 are separated from each other, and outputs a separation signal indicating this as a detection signal.

離間信号と近接信号とのそれぞれは、適宜定められてよいが、本実施の形態ではH(mV)とL(mV)との電圧信号である。ここで、Hは、Lよりも大きく、例えば、Lは、基準電位(0mV)の電圧信号であり、Hは、5mVの電圧信号である。 Each of the separation signal and the proximity signal may be appropriately determined, but in the present embodiment, they are voltage signals of H (mV) and L (mV). Here, H is larger than L, for example, L is a voltage signal of a reference potential (0 mV), and H is a voltage signal of 5 mV.

なお、ここで説明した検知スイッチ103は、サーマルヘッド101とプラテンローラ102とが離間したか否かを検知し、検知した結果を示す検知信号を出力する検知部の一例である。検知部は、ここで説明したものに限られず、例えば、本実施の形態とは異なる構成で異なる箇所に設けられるスイッチであってもよく、赤外線センサなどから構成されてもよい。 The detection switch 103 described here is an example of a detection unit that detects whether or not the thermal head 101 and the platen roller 102 are separated from each other and outputs a detection signal indicating the detection result. The detection unit is not limited to the one described here, and may be, for example, a switch having a configuration different from that of the present embodiment and provided at a different location, or may be composed of an infrared sensor or the like.

モータ104は、プラテンローラ102を回転させるための駆動部であって、プラテンローラ102の回転軸112を伝達機構113を介して回転させる。伝達機構113は例えば、歯車、ベルト、プーリなどを適宜組み合わせて構成される。 The motor 104 is a drive unit for rotating the platen roller 102, and rotates the rotation shaft 112 of the platen roller 102 via the transmission mechanism 113. The transmission mechanism 113 is configured by, for example, appropriately combining gears, belts, pulleys, and the like.

ヘッド温度センサ105と環境温度センサ106とは、それぞれ、ヘッド温度と環境温度とを測定するセンサであって、各々が例えばサーミスタなどから構成される。 The head temperature sensor 105 and the environmental temperature sensor 106 are sensors for measuring the head temperature and the environmental temperature, respectively, and each of them is composed of, for example, a thermistor.

ヘッド温度とは、サーマルヘッド101の温度である。ヘッド温度センサ105は、例えば、サーマルヘッド101に密着するように配置される。また、環境温度とは、サーマルプリンタ100の周辺の温度(通常は、室温)である。環境温度センサ106は、例えば、サーマルヘッド101などの発熱体から発せられる熱の影響を受けない位置に配置される。 The head temperature is the temperature of the thermal head 101. The head temperature sensor 105 is arranged so as to be in close contact with the thermal head 101, for example. The environmental temperature is the temperature around the thermal printer 100 (usually room temperature). The environmental temperature sensor 106 is arranged at a position that is not affected by heat generated from a heating element such as a thermal head 101.

入力部107は、ユーザが文字、記号、数値などを入力するための部位である。表示部108は、文字、記号、数値などを表示する部位である。例えば、表示部108は、液晶パネルによって実現され、入力部107とともにタッチパネルを構成する。 The input unit 107 is a part for the user to input characters, symbols, numerical values, and the like. The display unit 108 is a portion for displaying characters, symbols, numerical values, and the like. For example, the display unit 108 is realized by a liquid crystal panel, and constitutes a touch panel together with the input unit 107.

モード切替スイッチ109は、サーマルプリンタ100の動作モードを切り替えるスイッチである。本実施の形態に係るモード切替スイッチ109は、図1に示すようにサーマルヘッド101に設けられて左右にスライドするスイッチである。 The mode changeover switch 109 is a switch for switching the operation mode of the thermal printer 100. The mode changeover switch 109 according to the present embodiment is a switch provided on the thermal head 101 and slides left and right as shown in FIG.

なお、モード切替スイッチ109の設置場所は、これに限られず、適宜変更されてよい。また、モード切替スイッチ109は、スライドするスイッチに限られず、例えば、物理的に設けられるボタン、ソフトウェアで実現されるスイッチやボタンなどであってもよい。 The installation location of the mode changeover switch 109 is not limited to this, and may be changed as appropriate. Further, the mode changeover switch 109 is not limited to the slide switch, and may be, for example, a physically provided button, a switch or a button realized by software, or the like.

本実施の形態に係るサーマルプリンタ100の動作モードは、印刷モードと、検査モードと、基準データ収集モードとを含む。印刷モードは、通常の印刷時の動作モードである。検査モードは、印刷モードでの動作を検査するための動作モードである。基準データ収集モードは、印刷モードでの動作に必要なデータを収集するための動作モードである。 The operation mode of the thermal printer 100 according to the present embodiment includes a print mode, an inspection mode, and a reference data collection mode. The print mode is an operation mode during normal printing. The inspection mode is an operation mode for inspecting the operation in the print mode. The reference data collection mode is an operation mode for collecting data necessary for operation in the print mode.

制御ユニット110は、モード切替スイッチ109の設定に応じた動作モードで、サーマルヘッド101、モータ104、表示部108などを制御する。制御ユニット110は、物理的には例えば、プロセッサ、電気回路、半導体メモリ、通信インタフェースなどの一部又は全部から構成される。 The control unit 110 controls the thermal head 101, the motor 104, the display unit 108, and the like in an operation mode according to the setting of the mode changeover switch 109. The control unit 110 is physically composed of, for example, a part or all of a processor, an electric circuit, a semiconductor memory, a communication interface, and the like.

制御ユニット110は、機能的には例えば図2に示すように、各種データを記憶する記憶部114と、制御部115とを有する。そして、制御部115は、ヘッド温度取得部116と、環境温度取得部117と、検知信号取得部118と、印刷モード制御部119と、基準データ収集部120と、検査モード制御部121とを有する。このような機能は例えば、制御ユニット110が予め組み込まれたコンピュータ・プログラムに従って動作することによって実現される。 The control unit 110 functionally includes, for example, as shown in FIG. 2, a storage unit 114 for storing various data and a control unit 115. The control unit 115 includes a head temperature acquisition unit 116, an environmental temperature acquisition unit 117, a detection signal acquisition unit 118, a print mode control unit 119, a reference data collection unit 120, and an inspection mode control unit 121. .. Such a function is realized, for example, by operating the control unit 110 according to a pre-installed computer program.

記憶部114は、例えば、利用中ユーザID(Identification Data)122と、印刷データ123bと、印刷履歴データ124と、基準データ125と、検査用印刷データ126とを記憶している。 The storage unit 114 stores, for example, the user ID (Identification Data) 122 in use, the print data 123b, the print history data 124, the reference data 125, and the print data 126 for inspection.

利用中ユーザID122は、サーマルプリンタ100を利用しているユーザを識別するためのデータである。利用中ユーザID122は、例えば、サーマルプリンタ100を利用するユーザが変わると、入力部107への入力などを通じて記憶部114に格納される。 The user ID 122 in use is data for identifying a user who is using the thermal printer 100. The in-use user ID 122 is stored in the storage unit 114, for example, when the user who uses the thermal printer 100 changes, through input to the input unit 107 or the like.

印刷データ123bは、印刷する文字、記号、数値などを示すデータである。印刷データ123bは、印刷データ123aが一時的に記憶部114に格納されたデータであり、印刷データ123aは、印刷する文字、記号、数値などを示すデータとして外部から取得されるデータである。例えば、印刷データ123bは、一連の印刷データ123aが外部から取得されると記憶部114に格納され、印刷データ123bに基づく印刷が完了すると削除される。 The print data 123b is data indicating characters, symbols, numerical values, and the like to be printed. The print data 123b is data in which the print data 123a is temporarily stored in the storage unit 114, and the print data 123a is data acquired from the outside as data indicating characters, symbols, numerical values, and the like to be printed. For example, the print data 123b is stored in the storage unit 114 when a series of print data 123a is acquired from the outside, and is deleted when printing based on the print data 123b is completed.

ここで、一連の印刷データ123aとは、典型的には、1つの連続的な印刷データであるが、これに限られない。例えば、一連の印刷データ123aは、内容的に1つのまとまりをなす印刷データとして定められてもよく、予め定められた時間以上の時間間隔を空けることなく取得された印刷データであってもよい。 Here, the series of print data 123a is typically one continuous print data, but is not limited to this. For example, the series of print data 123a may be defined as print data forming one unit in content, or may be print data acquired without a time interval of a predetermined time or longer.

印刷履歴データ124は、印刷データ123bのうち、印刷済みのものを示すデータである。 The print history data 124 is data indicating printed data 123b among the print data 123b.

基準データ125は、印刷中のヘッド温度を予測するための基準となるデータである。 The reference data 125 is data that serves as a reference for predicting the head temperature during printing.

本実施の形態に係る基準データ125は、図3に示すように、ユーザIDと、印刷パターンと、単位上昇温度とが関連付けられたデータである。 As shown in FIG. 3, the reference data 125 according to the present embodiment is data in which the user ID, the print pattern, and the unit rise temperature are associated with each other.

ユーザIDは、サーマルプリンタ100を利用する者の各々を識別するためのデータである。ユーザIDは例えば、文字、数字、記号などを適宜組み合わせたものを示すデータである。本実施の形態では、同一人について、上述の利用中ユーザID122とユーザIDとは同じ文字、数字、記号などの組み合わせが採用され、これによって、対応付けられる。 The user ID is data for identifying each person who uses the thermal printer 100. The user ID is, for example, data indicating a combination of characters, numbers, symbols, and the like as appropriate. In the present embodiment, the same combination of characters, numbers, symbols, etc. is adopted for the above-mentioned in-use user ID 122 and the user ID for the same person, and the user IDs are associated with each other.

なお、同一人についての利用中ユーザID122とユーザIDとは、対応付けられていれば、文字、数字、記号などの異なる組み合わせが採用されてもよい。この場合例えば、ユーザIDと利用中ユーザID122とは、記憶部114に格納されたテーブルなどによって対応付けられるとよい。 As long as the user ID 122 in use and the user ID for the same person are associated with each other, different combinations of characters, numbers, symbols, and the like may be adopted. In this case, for example, the user ID and the user ID 122 in use may be associated with each other by a table stored in the storage unit 114 or the like.

印刷パターンは、予め設定される印刷単位における印刷密度を示す。印刷単位は、例えば、JIS(日本工業規格)で規定されたA4、B5などの用紙サイズである。印刷密度は、印刷単位当たりの行数と、1行当たりの文字数とによって設定される。 The print pattern indicates the print density in a preset print unit. The printing unit is, for example, a paper size such as A4 or B5 defined by JIS (Japanese Industrial Standards). The print density is set by the number of lines per print unit and the number of characters per line.

なお、本実施の形態では、印刷単位は一定であるとして説明するが、変更可能に構成されてもよく、この場合、印刷単位は例えば、印刷パターンにおいて行数及び文字数と関連付けて格納されるとよい。また、印刷単位は、上述の例に限られず適宜設定されてよく、例えばサーマルプリンタ100に取り付けられる感熱紙111がロール紙である場合、その幅と一定の繰り出される長さ(5cm,10cmなど)であってもよい。 In the present embodiment, the print unit is described as being constant, but it may be configured to be changeable. In this case, the print unit is stored in association with the number of lines and the number of characters in the print pattern, for example. Good. Further, the printing unit is not limited to the above example and may be appropriately set. For example, when the thermal paper 111 attached to the thermal printer 100 is a roll paper, its width and a constant feeding length (5 cm, 10 cm, etc.) It may be.

単位上昇温度は、印刷パターンに応じた行数及び文字数で、印刷パターンが示す用紙サイズの印刷を行った場合のサーマルヘッド101の上昇温度を示す。 The unit rise temperature is the number of lines and the number of characters according to the print pattern, and indicates the rise temperature of the thermal head 101 when printing the paper size indicated by the print pattern.

再び、図2を参照する。
検査用印刷データ126は、検査モードにて検査する際に印刷するために予め設定された定型の文字、記号、数値などを示すデータである。
See FIG. 2 again.
The inspection print data 126 is data indicating standard characters, symbols, numerical values, etc. set in advance for printing when inspecting in the inspection mode.

ヘッド温度取得部116は、ヘッド温度データをヘッド温度センサ105から取得する。ヘッド温度データは、ヘッド温度を示すデータである。 The head temperature acquisition unit 116 acquires head temperature data from the head temperature sensor 105. The head temperature data is data indicating the head temperature.

環境温度取得部117は、環境温度データを環境温度センサから取得する。環境温度データは、環境温度を示すデータである。 The environmental temperature acquisition unit 117 acquires the environmental temperature data from the environmental temperature sensor. The environmental temperature data is data indicating the environmental temperature.

検知信号取得部118は、検知信号を検知スイッチ103から取得する。 The detection signal acquisition unit 118 acquires the detection signal from the detection switch 103.

印刷モード制御部119は、サーマルプリンタ100の動作モードが印刷モードである場合に、サーマルプリンタ100の全体的な制御を行う。 The print mode control unit 119 controls the thermal printer 100 as a whole when the operation mode of the thermal printer 100 is the print mode.

例えば、印刷モード制御部119は、印刷データ123bに基づいて、サーマルヘッド101、モータ104などを制御する。これによって、印刷データ123bに応じた文字、記号、画像などがサーマルヘッド101から熱転写されて、当該文字、記号、画像などが感熱紙に印刷される。また例えば、印刷モード制御部119は、印刷中にサーマルヘッド101とプラテンローラ102とが離間したか否かを判断し、離間したと判断した場合には印刷を停止させる。 For example, the print mode control unit 119 controls the thermal head 101, the motor 104, and the like based on the print data 123b. As a result, characters, symbols, images and the like corresponding to the print data 123b are thermally transferred from the thermal head 101, and the characters, symbols, images and the like are printed on the thermal paper. Further, for example, the print mode control unit 119 determines whether or not the thermal head 101 and the platen roller 102 are separated from each other during printing, and if it is determined that the thermal head 101 and the platen roller 102 are separated from each other, the printing is stopped.

詳細には、印刷モード制御部119は、図4に示すように、印刷制御部127と、予測部128と、比較部129とを有する。 Specifically, the print mode control unit 119 has a print control unit 127, a prediction unit 128, and a comparison unit 129, as shown in FIG.

印刷制御部127は、検知スイッチ103から近接信号が出力されている間に印刷データ123aを外部から取得すると、その印刷データ123aを記憶部114に順次、印刷データ123bとして格納する。 When the print control unit 127 acquires the print data 123a from the outside while the proximity signal is being output from the detection switch 103, the print control unit 127 sequentially stores the print data 123a in the storage unit 114 as the print data 123b.

そして、一連の印刷データ123aの取得が完了すると、印刷制御部127は、印刷データ123bに基づいてサーマルヘッド101及びモータ104を制御することによって、印刷データ123bの内容を印刷する。印刷データ123bの内容とは、印刷データ123bが示す文字、記号、画像などである。 Then, when the acquisition of the series of print data 123a is completed, the print control unit 127 prints the contents of the print data 123b by controlling the thermal head 101 and the motor 104 based on the print data 123b. The contents of the print data 123b are characters, symbols, images, and the like indicated by the print data 123b.

印刷制御部127は、サーマルヘッド101とプラテンローラ102との間に感熱紙111が挟持された状態でモータ104を回転させる。これにより、伝達機構113を介してプラテンローラ102が回転して、感熱紙111が搬送される。印刷制御部127は、感熱紙111の搬送にともなって、印刷データ123bに含まれる文字、記号、画像などに応じてサーマルヘッド101を加熱する。これによって、感熱紙111に塗布された感熱層が発色し、印刷データ123bの内容が用紙に印刷される。 The print control unit 127 rotates the motor 104 with the thermal paper 111 sandwiched between the thermal head 101 and the platen roller 102. As a result, the platen roller 102 rotates via the transmission mechanism 113, and the thermal paper 111 is conveyed. The print control unit 127 heats the thermal head 101 according to characters, symbols, images, and the like included in the print data 123b as the thermal paper 111 is conveyed. As a result, the heat-sensitive layer applied to the heat-sensitive paper 111 develops color, and the contents of the print data 123b are printed on the paper.

印刷制御部127は、印刷データ123bの内容を印刷すると、順次、印刷が完了した部分に対応する印刷データ123bを印刷履歴データ124として記憶部114に格納する。 When the print control unit 127 prints the contents of the print data 123b, the print control unit 127 sequentially stores the print data 123b corresponding to the printed portion as the print history data 124 in the storage unit 114.

なお、印刷履歴データ124は、印刷データ123bのうち、印刷が完了した部分を示すものであればよく、印刷が完了した部分を示す方法は、ここで例示したものに限られず、例えば印刷が完了した部分のデータサイズなどであってもよい。 The print history data 124 may be any data 123b that indicates a portion of the print data 123b that has been printed, and the method of indicating the portion that has been printed is not limited to that illustrated here. For example, printing is completed. It may be the data size of the printed part.

印刷データ123bに基づく印刷が完了すると、印刷制御部127は、印刷データ123bと印刷履歴データ124とを記憶部114から削除する。 When printing based on the print data 123b is completed, the print control unit 127 deletes the print data 123b and the print history data 124 from the storage unit 114.

また、印刷制御部127は、詳細後述する比較部129から比較の結果を示す情報を受けると、その情報が示す比較の結果に基づいて、印刷を制御する。例えば、印刷制御部127は、ヘッド温度センサにより測定されたヘッド温度がサーマルヘッド101の予測温度よりも高い場合に、印刷を停止させる。 Further, when the print control unit 127 receives information indicating the comparison result from the comparison unit 129 described in detail later, the print control unit 127 controls printing based on the comparison result indicated by the information. For example, the print control unit 127 stops printing when the head temperature measured by the head temperature sensor is higher than the predicted temperature of the thermal head 101.

予測部128は、予め定められた時点からの印刷履歴に基づいて、サーマルヘッド101の予測温度を求める。本実施の形態に係る予測部128は、印刷履歴データ124に基づいて、サーマルヘッド101の予測温度を求める。すなわち、本実施の形態では、印刷データ123b(一連の印刷データ123a)の印刷を開示した時点を「予め定められた時点」とし、一連の印刷データ123bのうち、どこまでの印刷が完了したかを参照することで、サーマルヘッド101の予測温度を求める。 The prediction unit 128 obtains the predicted temperature of the thermal head 101 based on the printing history from a predetermined time point. The prediction unit 128 according to the present embodiment obtains the predicted temperature of the thermal head 101 based on the print history data 124. That is, in the present embodiment, the time point at which printing of the print data 123b (series of print data 123a) is disclosed is defined as a "predetermined time point", and how much of the series of print data 123b has been printed. By referring to it, the predicted temperature of the thermal head 101 is obtained.

詳細には、予測部128は、利用中ユーザID122と、基準データ125と、印刷履歴データ124と、環境温度データとに基づいて、に基づいて、サーマルヘッド101の予測温度を求める。本実施の形態に係る予測部128は、図5に示すように機能的に、利用中ユーザ取得部130と、基準取得部131と、印刷履歴取得部132と、印刷量算出部133と、温度予測部134とを有する。 Specifically, the prediction unit 128 obtains the predicted temperature of the thermal head 101 based on the user ID 122 in use, the reference data 125, the print history data 124, and the environmental temperature data. As shown in FIG. 5, the prediction unit 128 according to the present embodiment functionally includes the in-use user acquisition unit 130, the reference acquisition unit 131, the print history acquisition unit 132, the print amount calculation unit 133, and the temperature. It has a prediction unit 134.

利用中ユーザ取得部130は、利用中ユーザID122を記憶部114から取得する。なお、利用中ユーザID122は、無線又は有線の通信によって取得されてもよく、この場合、利用中ユーザID122が記憶部114に格納されていなくてもよい。 The in-use user acquisition unit 130 acquires the in-use user ID 122 from the storage unit 114. The in-use user ID 122 may be acquired by wireless or wired communication, and in this case, the in-use user ID 122 may not be stored in the storage unit 114.

基準取得部131は、記憶部114から基準データ125を取得する。 The reference acquisition unit 131 acquires the reference data 125 from the storage unit 114.

詳細には、基準取得部131は、例えば基準データ125を参照して、利用中ユーザ取得部130により取得された利用中ユーザID122に対応するユーザIDを特定する。そして、基準取得部131は、特定したユーザIDに関連付けられた印刷パターン及び単位上昇温度を取得する。 Specifically, the reference acquisition unit 131 identifies the user ID corresponding to the in-use user ID 122 acquired by the in-use user acquisition unit 130 with reference to, for example, the reference data 125. Then, the reference acquisition unit 131 acquires the print pattern and the unit rise temperature associated with the specified user ID.

印刷履歴取得部132は、記憶部114から印刷履歴データ124を取得する。 The print history acquisition unit 132 acquires the print history data 124 from the storage unit 114.

印刷量算出部133は、基準取得部131によって取得された基準データ125に含まれる印刷パターンの印刷単位を基準として、印刷履歴の印刷量を算出する。ここでの印刷履歴とは、印刷履歴取得部132によって取得された印刷履歴データ124が示す印刷履歴である。 The print amount calculation unit 133 calculates the print amount of the print history based on the print unit of the print pattern included in the reference data 125 acquired by the reference acquisition unit 131. The print history here is the print history indicated by the print history data 124 acquired by the print history acquisition unit 132.

温度予測部134は、基準取得部131によって取得された単位上昇温度と印刷量算出部133によって算出された印刷量とに基づいて、サーマルヘッド101の予測温度を求める。 The temperature prediction unit 134 obtains the predicted temperature of the thermal head 101 based on the unit rise temperature acquired by the reference acquisition unit 131 and the print amount calculated by the print amount calculation unit 133.

より詳細には、温度予測部134は、上昇温度算出部135と、予測温度算出部136とを有し、単位上昇温度と印刷量との積に環境温度を加算することによって、サーマルヘッド101の予測温度を求める。 More specifically, the temperature prediction unit 134 has a temperature rise calculation unit 135 and a prediction temperature calculation unit 136, and by adding the ambient temperature to the product of the unit temperature rise temperature and the print amount, the thermal head 101 Find the predicted temperature.

上昇温度算出部135は、基準取得部131によって取得された基準データに含まれる単位上昇温度と、印刷量算出部133によって算出された印刷量との積を、サーマルヘッド101の上昇温度として求める。 The rise temperature calculation unit 135 obtains the product of the unit rise temperature included in the reference data acquired by the reference acquisition unit 131 and the print amount calculated by the print amount calculation unit 133 as the rise temperature of the thermal head 101.

予測温度算出部136は、上昇温度算出部135によって求められたサーマルヘッド101の上昇温度に、環境温度センサ106によって測定された環境温度を加算することによって、サーマルヘッド101の予測温度を求める。 The predicted temperature calculation unit 136 obtains the predicted temperature of the thermal head 101 by adding the environmental temperature measured by the environmental temperature sensor 106 to the rising temperature of the thermal head 101 obtained by the rising temperature calculation unit 135.

再び、図4を参照する。
比較部129は、ヘッド温度センサ105によって測定されたヘッド温度(以下、「測定温度」とも言う。)と、予測部128によって求められた予測温度とを比較する。比較部129は、比較した結果を示す情報を印刷制御部127へ出力する。
See FIG. 4 again.
The comparison unit 129 compares the head temperature measured by the head temperature sensor 105 (hereinafter, also referred to as “measured temperature”) with the predicted temperature obtained by the prediction unit 128. The comparison unit 129 outputs information indicating the comparison result to the print control unit 127.

本実施の形態では、比較部129は、検知スイッチ103から出力された検知信号を検知信号取得部118を介して取得し、取得した検知信号に基づいて、サーマルヘッド101とプラテンローラ102とが離間したか否かを検知する。 In the present embodiment, the comparison unit 129 acquires the detection signal output from the detection switch 103 via the detection signal acquisition unit 118, and the thermal head 101 and the platen roller 102 are separated from each other based on the acquired detection signal. Detects whether or not it has been done.

検知信号が離間したことを示す場合、すなわち、検知信号が離間信号である場合に、比較部129は、ヘッド温度取得部116を介して取得したヘッド温度データが示すヘッド温度と、予測部128によって求められた予測温度とを比較する。そして、比較部129は、測定温度と予測温度との差の大きさ(絶対値)が予め定めた閾値T以下であるか否かを示す情報を、比較した結果を示す情報として印刷制御部127へ出力する。 When it indicates that the detection signals are separated, that is, when the detection signal is a separation signal, the comparison unit 129 uses the head temperature indicated by the head temperature data acquired via the head temperature acquisition unit 116 and the prediction unit 128. Compare with the obtained predicted temperature. Then, the comparison unit 129 uses the information indicating whether or not the magnitude (absolute value) of the difference between the measured temperature and the predicted temperature is equal to or less than a predetermined threshold value T as information indicating the result of comparison, which is the print control unit 127. Output to.

基準データ収集部120は、サーマルプリンタ100の動作モードが基準データ収集モードである場合に、サーマルプリンタ100の全体的な制御を行う。 The reference data collection unit 120 controls the thermal printer 100 as a whole when the operation mode of the thermal printer 100 is the reference data collection mode.

詳細には、基準データ収集部120は、ユーザID及び印刷パターンを入力部107から取得する。そして、基準データ収集部120は、取得した印刷パターンに応じた印刷を行う前後のヘッド温度を取得することによって、単位上昇温度を求める。基準データ収集部120は、このように取得したユーザID、印刷パターン及び単位上昇温度を関連付けたデータを基準データ125として記憶部114に格納する。 Specifically, the reference data collection unit 120 acquires the user ID and the print pattern from the input unit 107. Then, the reference data collecting unit 120 obtains the unit rise temperature by acquiring the head temperature before and after printing according to the acquired print pattern. The reference data collection unit 120 stores the data associated with the user ID, the print pattern, and the unit rise temperature acquired in this way in the storage unit 114 as the reference data 125.

検査モード制御部121は、サーマルプリンタ100の動作モードが検査モードである場合に、サーマルプリンタ100の全体的な制御を行う。 The inspection mode control unit 121 controls the thermal printer 100 as a whole when the operation mode of the thermal printer 100 is the inspection mode.

詳細には、検査モード制御部121は、蓋を開けた状態、すなわち、サーマルヘッド101とプラテンローラ102とが実際に離間した状態で、検査指示を入力部107から受け付けると、ダミーの近接信号を出力し、これによって印刷モード制御部119を動作させる。印刷モード制御部119は、検査モード制御部121の制御の下、印刷を行う。 Specifically, when the inspection mode control unit 121 receives an inspection instruction from the input unit 107 with the lid open, that is, with the thermal head 101 and the platen roller 102 actually separated from each other, the inspection mode control unit 121 receives a dummy proximity signal. Output, thereby operating the print mode control unit 119. The print mode control unit 119 prints under the control of the inspection mode control unit 121.

ここで、ダミーの近接信号は、サーマルヘッド101とプラテンローラ102とが近接した場合に検知スイッチ103から出力される近接信号に相当する信号である。 Here, the dummy proximity signal is a signal corresponding to the proximity signal output from the detection switch 103 when the thermal head 101 and the platen roller 102 are in close proximity to each other.

所定時間PT1が経過するまでに印刷モード制御部119が印刷を停止すると、検査モード制御部121は、蓋を開けた状態での印刷動作が正常であることをユーザに通知する。これに対して、所定時間PT1が経過するまでに印刷モード制御部119が印刷を停止しない場合、検査モード制御部121は、蓋を開けた状態での印刷動作が正常でないこと(検査エラー)をユーザに通知する。 When the print mode control unit 119 stops printing before the lapse of the predetermined time PT1, the inspection mode control unit 121 notifies the user that the printing operation with the lid open is normal. On the other hand, if the print mode control unit 119 does not stop printing by the time PT1 elapses for a predetermined time, the inspection mode control unit 121 determines that the printing operation with the lid open is not normal (inspection error). Notify the user.

また、検査モード制御部121は、蓋を閉じた状態、すなわち、サーマルヘッド101とプラテンローラ102とが実際に近接した状態で、検査指示を入力部107から受け付けると、印刷モード制御部119を動作させる。印刷モード制御部119は、検査モード制御部121の制御の下、印刷を行う。印刷が開始されたから所定時間PT2が経過すると、検査モード制御部121は、印刷モード制御部119へダミーの離間信号を出力する。 Further, the inspection mode control unit 121 operates the print mode control unit 119 when the inspection instruction is received from the input unit 107 in a state where the lid is closed, that is, when the thermal head 101 and the platen roller 102 are actually close to each other. Let me. The print mode control unit 119 prints under the control of the inspection mode control unit 121. When PT2 elapses for a predetermined time from the start of printing, the inspection mode control unit 121 outputs a dummy separation signal to the print mode control unit 119.

ここで、ダミーの離間信号とは、サーマルヘッド101とプラテンローラ102とが離間した場合に検知スイッチ103から出力される離間信号に相当する信号であって、予め定められた短時間のワンショットのパルス信号である。 Here, the dummy separation signal is a signal corresponding to the separation signal output from the detection switch 103 when the thermal head 101 and the platen roller 102 are separated from each other, and is a predetermined short-time one-shot signal. It is a pulse signal.

印刷制御部127は、正常に動作している場合、ダミーの離間信号を取得しても、実際には近接していれば、比較部129での測定温度と予測温度との比較の結果に基づいて、サーマルヘッド101とプラテンローラ102とが離間していないと判断する。 When the print control unit 127 is operating normally, even if it acquires a dummy separation signal, if it is actually close to each other, it is based on the result of comparison between the measured temperature and the predicted temperature in the comparison unit 129. Therefore, it is determined that the thermal head 101 and the platen roller 102 are not separated from each other.

そのため、ダミーの離間信号を出力した後、比較処理に要する所定時間が経過しても印刷制御部127が印刷を継続している場合に、検査モード制御部121は、蓋を閉じた状態での印刷動作が正常であることをユーザに通知する。 Therefore, when the print control unit 127 continues printing even after a predetermined time required for the comparison process elapses after outputting the dummy separation signal, the inspection mode control unit 121 keeps the lid closed. Notify the user that the print operation is normal.

これに対して、検査モード制御部121は、ダミーの離間信号を出力した後、比較処理に要する所定時間が経過するまでに印刷制御部127が印刷を停止した場合に、検査モード制御部121は、蓋を閉じた状態での印刷動作が正常でないこと(検査エラー)をユーザに通知する。 On the other hand, when the inspection mode control unit 121 outputs a dummy separation signal and then the print control unit 127 stops printing before a predetermined time required for the comparison process elapses, the inspection mode control unit 121 causes the inspection mode control unit 121 to stop printing. , Notify the user that the printing operation with the lid closed is not normal (inspection error).

これまで、本発明の一実施の形態に係るサーマルプリンタ100の構成について説明した。ここから、本実施の形態に係るサーマルプリンタ100の動作について説明する。 So far, the configuration of the thermal printer 100 according to the embodiment of the present invention has been described. From here, the operation of the thermal printer 100 according to the present embodiment will be described.

<サーマルプリンタ100の基準データ収集モードでの動作>
サーマルプリンタ100の電源が投入され、モード切替スイッチ109が基準データ収集モードに設定されている場合に、例えば入力部107への操作に基づくユーザの指示を受けると、基準データ収集部120は、図6に示す基準データ収集処理を開始する。
<Operation of the thermal printer 100 in the reference data collection mode>
When the power of the thermal printer 100 is turned on and the mode changeover switch 109 is set to the reference data collection mode, for example, when a user's instruction based on an operation on the input unit 107 is received, the reference data collection unit 120 is shown in FIG. The reference data collection process shown in 6 is started.

基準データ収集部120は、ヘッド温度センサ105から出力されたヘッド温度データをヘッド温度取得部116を介して取得する。これによって、基準データ収集部120は、ヘッド温度データが示すヘッド温度を取得する(ステップS101)。 The reference data collecting unit 120 acquires the head temperature data output from the head temperature sensor 105 via the head temperature acquiring unit 116. As a result, the reference data collecting unit 120 acquires the head temperature indicated by the head temperature data (step S101).

基準データ収集部120は、ユーザの入力部107への操作に基づいて、入力部107からユーザIDを取得する(ステップS102)。 The reference data collecting unit 120 acquires the user ID from the input unit 107 based on the operation of the user to the input unit 107 (step S102).

基準データ収集部120は、ユーザの入力部107への操作に基づいて、印刷パターンを取得する(ステップS103)。本実施の形態では、基準データ収集部120は、印刷単位当たりの行数と、1行当たりの文字数との組み合わせを印刷パターンとして取得する。 The reference data collection unit 120 acquires a print pattern based on the user's operation on the input unit 107 (step S103). In the present embodiment, the reference data collection unit 120 acquires a combination of the number of lines per print unit and the number of characters per line as a print pattern.

基準データ収集部120は、ステップS103にて取得した印刷パターンに従って印刷する(ステップS104)。例えば、印刷パターンに含まれる行数及び文字数で、印刷単位に相当する量の印刷を行う。印刷単位に相当する量とは、例えば印刷単位としてJISのA4サイズが採用されている場合、A4サイズ1枚分のことである。 The reference data collection unit 120 prints according to the print pattern acquired in step S103 (step S104). For example, the number of lines and the number of characters included in the print pattern are used to print an amount corresponding to a printing unit. The amount corresponding to the printing unit is, for example, one A4 size sheet when JIS A4 size is adopted as the printing unit.

なお、ステップS104にて印刷する量は、適宜予め定められればよく、例えば設定された印刷単位の半分、2倍、3倍など印刷単位を基準に予め定められた量などであってもよい。 The amount to be printed in step S104 may be appropriately predetermined, and may be a predetermined amount based on the printing unit, for example, half, two, or three times the set printing unit.

基準データ収集部120は、ステップS104の印刷終了後にヘッド温度センサ105から出力されたヘッド温度データをヘッド温度取得部116を介して取得する。これによって、基準データ収集部120は、ステップS104の印刷後のヘッド温度を取得する。基準データ収集部120は、印刷後のヘッド温度から、ステップS101にて取得した印刷前のヘッド温度を差し引くことによって、単位上昇温度を算出する(ステップS105)。 The reference data collection unit 120 acquires the head temperature data output from the head temperature sensor 105 after the printing in step S104 is completed via the head temperature acquisition unit 116. As a result, the reference data collection unit 120 acquires the head temperature after printing in step S104. The reference data collecting unit 120 calculates the unit rise temperature by subtracting the head temperature before printing acquired in step S101 from the head temperature after printing (step S105).

基準データ収集部120は、ステップS102〜S103で取得したユーザID及び印刷パターンと、ステップS105で算出した単位上昇温度とを関連付けた基準データ125を記憶部114に格納する(ステップS106)。これにより、基準データ収集部120は、基準データ収集処理を終了する。 The reference data collecting unit 120 stores the reference data 125 in which the user ID and the print pattern acquired in steps S102 to S103 and the unit rise temperature calculated in step S105 are associated with each other in the storage unit 114 (step S106). As a result, the reference data collection unit 120 ends the reference data collection process.

<サーマルプリンタ100の印刷モードでの動作>
例えばサーマルプリンタ100の電源が投入され、モード切替スイッチ109が印刷モードに設定されている場合に、印刷モード制御部119は、検知スイッチ103から出力される検知信号を検知信号取得部118を介して取得する。
<Operation of thermal printer 100 in print mode>
For example, when the power of the thermal printer 100 is turned on and the mode changeover switch 109 is set to the print mode, the print mode control unit 119 transmits the detection signal output from the detection switch 103 via the detection signal acquisition unit 118. get.

そして、取得した検知信号が近接信号である間、すなわち、取得した検知信号がサーマルヘッド101とプラテンローラ102との近接を示す場合、印刷モード制御部119は、印刷モード処理(図8A及び8B参照)を繰り返し実行する。 Then, while the acquired detection signal is a proximity signal, that is, when the acquired detection signal indicates proximity between the thermal head 101 and the platen roller 102, the print mode control unit 119 performs print mode processing (see FIGS. 8A and 8B). ) Is repeated.

ここで、図7を参照して、検知スイッチ103の動作と検知信号との関係を説明する。 Here, the relationship between the operation of the detection switch 103 and the detection signal will be described with reference to FIG. 7.

時刻T1では、例えば本体に対して蓋が開いており、検知スイッチ103のピン部材138は、図7(a)に示すように、可動部材139から下方へ突出し、その下端がプラテンローラ102の回転軸112に接触している。このとき、検知信号の信号レベルは、H[mV]の離間信号である。 At time T1, for example, the lid is open with respect to the main body, the pin member 138 of the detection switch 103 projects downward from the movable member 139, and the lower end thereof rotates the platen roller 102, as shown in FIG. 7A. It is in contact with the shaft 112. At this time, the signal level of the detection signal is an H [mV] separation signal.

その後、例えば本体に対して蓋が閉められていくと、可動部材139が下方へ押され、これに伴ってピン部材138が可動部材139の中へ没入していく。時刻T2での検知スイッチ103の状態を図7(b)に示す。このとき、検知信号の信号レベルは、H[mV]の離間信号である。 After that, for example, when the lid is closed with respect to the main body, the movable member 139 is pushed downward, and the pin member 138 is immersed in the movable member 139 accordingly. The state of the detection switch 103 at the time T2 is shown in FIG. 7 (b). At this time, the signal level of the detection signal is an H [mV] separation signal.

やがて、時刻T3では、例えば本体に対して蓋が閉められ、図7(c)に示すように、ピン部材138の概ねすべてが可動部材139の中へ没入する。この直後から、検知信号の信号レベルは、H[mV]からL[mV]の近接信号に変化する(時刻T4)。そして、時刻T4以降、検知スイッチ103は、近接信号の出力を継続する。 Eventually, at time T3, for example, the lid is closed with respect to the main body, and as shown in FIG. 7C, almost all of the pin member 138 is immersed in the movable member 139. Immediately after this, the signal level of the detection signal changes from H [mV] to L [mV] proximity signal (time T4). Then, after the time T4, the detection switch 103 continues to output the proximity signal.

このように近接信号が出力されている場合、図8Aに示すように、印刷制御部127は、外部から印刷データ123aを取得したか否かを判断する(ステップS121)。 When the proximity signal is output in this way, as shown in FIG. 8A, the print control unit 127 determines whether or not the print data 123a has been acquired from the outside (step S121).

印刷データ123aを取得していない場合に、印刷制御部127は、印刷データ123aを取得していないと判断する(ステップS121;NO)。そして、印刷制御部127は、検知スイッチ103から出力された検知信号を検知信号取得部118を介して取得し、取得した検知信号に基づいて、離間信号を取得したか否かを判断する(ステップS122)。 When the print data 123a has not been acquired, the print control unit 127 determines that the print data 123a has not been acquired (step S121; NO). Then, the print control unit 127 acquires the detection signal output from the detection switch 103 via the detection signal acquisition unit 118, and determines whether or not the separation signal has been acquired based on the acquired detection signal (step). S122).

ステップS122にて取得した検知信号が近接信号である場合、印刷制御部127は、離間信号を取得していないと判断して(ステップS122;NO)、ステップS121の処理に戻る。 When the detection signal acquired in step S122 is a proximity signal, the print control unit 127 determines that the separation signal has not been acquired (step S122; NO), and returns to the process of step S121.

ステップS122にて取得した検知信号が離間信号である場合、印刷制御部127は、離間信号を取得したと判断する(ステップS122;YES)。そして、印刷制御部127は、図8Bに示すように、表示部108への表示を通じて、離間していることを通知して(ステップS123)、印刷モード処理を終了する。 When the detection signal acquired in step S122 is a separation signal, the print control unit 127 determines that the separation signal has been acquired (step S122; YES). Then, as shown in FIG. 8B, the print control unit 127 notifies that the print control unit 127 is separated through the display on the display unit 108 (step S123), and ends the print mode process.

再び、図8Aを参照する。
印刷データ123aを取得した場合に、印刷制御部127は、印刷データ123aを取得したと判断する(ステップS121;YES)。印刷制御部127は、一連の印刷データ123aの取得が完了するまで、取得した印刷データ123aを順次、印刷データ123bとして記憶部114に格納する。印刷制御部127は、格納した印刷データ123bを参照して、サーマルヘッド101及びモータ104を制御することで、印刷データ123bが示す文字、記号、画像などを感熱紙111に印刷する(ステップS124)。
See FIG. 8A again.
When the print data 123a is acquired, the print control unit 127 determines that the print data 123a has been acquired (step S121; YES). The print control unit 127 sequentially stores the acquired print data 123a as print data 123b in the storage unit 114 until the acquisition of a series of print data 123a is completed. The print control unit 127 prints characters, symbols, images, etc. indicated by the print data 123b on the thermal paper 111 by controlling the thermal head 101 and the motor 104 with reference to the stored print data 123b (step S124). ..

このとき、印刷制御部127は、印刷データ123bのうちの印刷が完了した部分を順次、印刷履歴データ124として記憶部114に格納する。そして、印刷制御部127は、印刷データ123bの印刷が完了したか否かを判断する(ステップS125)。 At this time, the print control unit 127 sequentially stores the printed portion of the print data 123b in the storage unit 114 as print history data 124. Then, the print control unit 127 determines whether or not the printing of the print data 123b is completed (step S125).

印刷が未だ完了していない印刷データ123bがある場合、印刷制御部127は、印刷が完了していないと判断し(ステップS125;NO)、検知スイッチ103から出力された検知信号を検知信号取得部118を介して取得する。印刷制御部127は、取得した検知信号に基づいて、離間信号を取得したか否かを判断する(ステップS126)。 If there is print data 123b for which printing has not yet been completed, the print control unit 127 determines that printing has not been completed (step S125; NO), and detects the detection signal output from the detection switch 103 as the detection signal acquisition unit. Get through 118. The print control unit 127 determines whether or not the separation signal has been acquired based on the acquired detection signal (step S126).

ステップS126にて取得した検知信号が近接信号である場合、印刷制御部127は、離間信号を取得していないと判断して(ステップS126;NO)、ステップS124の処理に戻る。これによって、引き続き、未だ印刷されていない印刷データ123bの内容が印刷される。 When the detection signal acquired in step S126 is a proximity signal, the print control unit 127 determines that the separation signal has not been acquired (step S126; NO), and returns to the process of step S124. As a result, the contents of the print data 123b that has not yet been printed are continuously printed.

印刷データ123bが示す文字、記号、画像などのすべてを印刷すると、印刷制御部127は、印刷が完了したと判断する(ステップS125;YES)。印刷制御部127は、記憶部114から印刷データ123bを削除して(ステップS127)、図8Bに示すように印刷モード処理を終了する。 When all the characters, symbols, images, and the like indicated by the print data 123b are printed, the print control unit 127 determines that the printing is completed (step S125; YES). The print control unit 127 deletes the print data 123b from the storage unit 114 (step S127), and ends the print mode process as shown in FIG. 8B.

再び、図8Aを参照する。
ステップS126にて取得した検知信号が離間信号である場合、印刷制御部127は、離間信号を取得したと判断する(ステップS126;YES)。
See FIG. 8A again.
When the detection signal acquired in step S126 is a separation signal, the print control unit 127 determines that the separation signal has been acquired (step S126; YES).

通常の印刷中に、サーマルヘッド101とプラテンローラ102とが離間することはないので、離間信号が検知スイッチ103から出力されることはない。 Since the thermal head 101 and the platen roller 102 are not separated from each other during normal printing, the separation signal is not output from the detection switch 103.

しかし、稀に、印刷中に離間信号が検知スイッチ103から出力されることがある。例えば図7(d)に示すようにプラテンローラ102の回転軸112と可動部材139との間に異物140が挟まり、それによって、ピン部材138が可動部材139から下方へ僅かに突き出す場合である。このような場合に、印刷中であっても、サーマルヘッド101とプラテンローラ102とが離間し、検知信号は、L[mV]の近接信号(時刻T5)から次第にH[mV]の離間信号に変化する(時刻T6)。 However, in rare cases, a separation signal may be output from the detection switch 103 during printing. For example, as shown in FIG. 7D, a foreign matter 140 is sandwiched between the rotating shaft 112 of the platen roller 102 and the movable member 139, whereby the pin member 138 slightly protrudes downward from the movable member 139. In such a case, the thermal head 101 and the platen roller 102 are separated from each other even during printing, and the detection signal gradually changes from the proximity signal of L [mV] (time T5) to the separation signal of H [mV]. It changes (time T6).

再び、図8Aを参照する。
離間信号を取得したと判断された場合(ステップS126;YES)、比較部129は、ヘッド温度センサ105から出力されたヘッド温度データをヘッド温度取得部116を介して取得する。これによって、印刷中に離間信号を取得した比較部129は、その離間信号を取得した時の測定温度を取得する(ステップS128)。
See FIG. 8A again.
When it is determined that the separation signal has been acquired (step S126; YES), the comparison unit 129 acquires the head temperature data output from the head temperature sensor 105 via the head temperature acquisition unit 116. As a result, the comparison unit 129, which has acquired the separation signal during printing, acquires the measured temperature when the separation signal is acquired (step S128).

続けて、予測部128が、予測温度取得処理(ステップS129)を実行する。予測温度取得処理は、サーマルヘッド101の予測温度を取得するための処理である。 Subsequently, the prediction unit 128 executes the prediction temperature acquisition process (step S129). The predicted temperature acquisition process is a process for acquiring the predicted temperature of the thermal head 101.

図9に示すように、利用中ユーザ取得部130は、利用中ユーザID122を記憶部114から取得する(ステップS1291)。 As shown in FIG. 9, the in-use user acquisition unit 130 acquires the in-use user ID 122 from the storage unit 114 (step S1291).

基準取得部131は、ステップS1291にて取得された利用中ユーザID122に対応するユーザIDを特定し、特定したユーザIDを含む基準データ125を取得する(ステップS1292)。 The reference acquisition unit 131 identifies the user ID corresponding to the user ID 122 in use acquired in step S1291 and acquires the reference data 125 including the specified user ID (step S1292).

印刷履歴取得部132は、記憶部114から印刷履歴データ124を取得する(ステップS1293)。 The print history acquisition unit 132 acquires the print history data 124 from the storage unit 114 (step S1293).

印刷量算出部133は、予め設定された印刷単位を基準として、ステップS1293にて取得された印刷履歴データ124が示す印刷履歴の印刷量を算出する(ステップS1294)。これにより、ステップS124にて印刷処理を開始した後の印刷量が算出される。 The print amount calculation unit 133 calculates the print amount of the print history indicated by the print history data 124 acquired in step S1293 based on the preset print unit (step S1294). As a result, the amount of printing after the printing process is started in step S124 is calculated.

上昇温度算出部135は、ステップS1292にて取得された基準データ125に含まれる単位上昇温度と、ステップS1294にて算出された印刷量とを乗じる。上昇温度算出部135は、乗じることによって得た値を上昇温度として算出する(ステップS1295)。 The rise temperature calculation unit 135 multiplies the unit rise temperature included in the reference data 125 acquired in step S1292 and the print amount calculated in step S1294. The rise temperature calculation unit 135 calculates the value obtained by multiplying as the rise temperature (step S1295).

これは、サーマルヘッド101の上昇温度が印刷量に比例するという考え方に基づく算出方法である。なお、サーマルヘッド101の上昇温度を求める方法はこれに限られない。サーマルヘッド101の上昇温度は、例えば印刷量とサーマルヘッド101の上昇温度とを対応付けたテーブルを記憶部114に予め格納し、このテーブルを参照することによって求められてもよい。これによれば、サーマルヘッド101の上昇温度が印刷量に比例しない場合であっても、より正確にサーマルヘッド101の上昇温度を求めることができる。 This is a calculation method based on the idea that the rising temperature of the thermal head 101 is proportional to the printing amount. The method for obtaining the rising temperature of the thermal head 101 is not limited to this. The rising temperature of the thermal head 101 may be obtained, for example, by storing a table in which the printing amount and the rising temperature of the thermal head 101 are associated in advance in the storage unit 114 and referring to this table. According to this, even when the rising temperature of the thermal head 101 is not proportional to the printing amount, the rising temperature of the thermal head 101 can be obtained more accurately.

また、本実施の形態では、基準データ125に1つの単位上昇温度が含まれる例を示すが、一般的にサーマルヘッド101は、ある程度の温度で概ね一定になることが多い。そのため、基準データ125には、例えば印刷時間、印刷量などに応じて、複数の単位上昇温度が含まれてもよい。ここでの印刷量は、例えば、印刷した文字数や行数で示されるとよい。 Further, in the present embodiment, an example in which the reference data 125 includes one unit temperature rise is shown, but in general, the thermal head 101 is often substantially constant at a certain temperature. Therefore, the reference data 125 may include a plurality of unit rising temperatures depending on, for example, the printing time, the printing amount, and the like. The amount of printing here may be indicated by, for example, the number of printed characters or the number of lines.

図9を参照し、予測温度算出部136は、環境温度センサ106から出力された環境温度データを環境温度取得部117を介して取得する。これによって、予測温度算出部136は、印刷中に離間信号を取得した時の環境温度を取得する(ステップS1296)。 With reference to FIG. 9, the predicted temperature calculation unit 136 acquires the environmental temperature data output from the environmental temperature sensor 106 via the environmental temperature acquisition unit 117. As a result, the predicted temperature calculation unit 136 acquires the environmental temperature when the separation signal is acquired during printing (step S1296).

予測温度算出部136は、ステップS1295にて算出した上昇温度とステップS1296にて取得した環境温度とを加算する。これによって、予測温度算出部136は、印刷中に離間信号を取得した時のサーマルヘッド101の予測温度を算出する(ステップS1297)。これにより、予測温度取得処理が終了する。 The predicted temperature calculation unit 136 adds the rising temperature calculated in step S1295 and the environmental temperature acquired in step S1296. As a result, the predicted temperature calculation unit 136 calculates the predicted temperature of the thermal head 101 when the separation signal is acquired during printing (step S1297). As a result, the predicted temperature acquisition process is completed.

再び、図8Aを参照する。
比較部129は、ステップS128にて取得した測定温度とステップS129にて取得された予測温度との差を算出する。そして、比較部129は、算出した差の大きさが閾値T以下であるか否かを判断する(ステップS130)。ここで、閾値Tには例えば、サーマルヘッド101の設計上の耐熱温度と測定温度との差の大きさよりも小さい値が設定される。
See FIG. 8A again.
The comparison unit 129 calculates the difference between the measured temperature acquired in step S128 and the predicted temperature acquired in step S129. Then, the comparison unit 129 determines whether or not the calculated difference magnitude is equal to or less than the threshold value T (step S130). Here, for example, the threshold value T is set to a value smaller than the size of the difference between the design heat resistant temperature of the thermal head 101 and the measured temperature.

測定温度と予測温度との差の大きさが閾値T以下であると判断された場合(ステップS130;YES)、その判断の結果を受けて、印刷制御部127は、ステップS124の印刷処理を継続する。 When it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is equal to or less than the threshold value T (step S130; YES), the print control unit 127 continues the printing process in step S124 in response to the result of the determination. To do.

例えば、図7(d)を参照して上述したように、回転軸112と可動部材139との間に異物140が挟まり、それによって、サーマルヘッド101とプラテンローラ102とが離間することがある。しかし、挟まった異物140は、その後の回転軸112の回転などに伴って、図7(e)に示すように除去されることも多い。異物140が除去されると、検知信号は、L[mV]の離間信号(時刻T7)から次第にH[mV]の近接信号に戻る(時刻T8)。 For example, as described above with reference to FIG. 7D, the foreign matter 140 may be caught between the rotating shaft 112 and the movable member 139, whereby the thermal head 101 and the platen roller 102 may be separated from each other. However, the pinched foreign matter 140 is often removed as shown in FIG. 7 (e) with the subsequent rotation of the rotating shaft 112 and the like. When the foreign matter 140 is removed, the detection signal gradually returns from the L [mV] separation signal (time T7) to the H [mV] proximity signal (time T8).

このような場合、離間信号が出力される時間は、時刻T6から時刻T7までの比較的短時間である。そのため、仮にこの間に空印刷になったとしてもサーマルヘッド101が過熱して損傷する可能性は低い。このような場合に、検知信号に基づいて印刷を停止すると、ユーザの手間になり、印刷効率が低下する。 In such a case, the time at which the separation signal is output is a relatively short time from the time T6 to the time T7. Therefore, even if blank printing occurs during this period, it is unlikely that the thermal head 101 will overheat and be damaged. In such a case, if printing is stopped based on the detection signal, it takes time for the user and the printing efficiency is lowered.

本実施の形態では、印刷中に離間信号が出力された場合に、上述したように、サーマルヘッド101とプラテンローラ102との離間をヘッド温度に基づいて判断する。そのため、サーマルヘッド101とプラテンローラ102との離間が比較的短時間であれば、印刷処理(ステップS124)が停止されず、引き続き、未だ印刷されていない印刷データ123bの内容が印刷される。これにより、印刷効率の悪化を抑制することが可能になる。 In the present embodiment, when a separation signal is output during printing, the separation between the thermal head 101 and the platen roller 102 is determined based on the head temperature as described above. Therefore, if the distance between the thermal head 101 and the platen roller 102 is relatively short, the printing process (step S124) is not stopped, and the contents of the print data 123b that has not yet been printed are continuously printed. This makes it possible to suppress deterioration of printing efficiency.

これに対して、サーマルヘッド101とプラテンローラ102との離間が継続している場合、測定温度が上昇し、予測温度との差が閾値Tを超える。この場合、比較部129は、測定温度と予測温度との差の大きさが閾値T以下でないと判断する(ステップS130;NO)。この判断の結果を受けて、印刷制御部127は、図8Bに示すように、印刷を停止する(ステップS131)。印刷が停止されるので、空印刷による損傷を回避することが可能になる。 On the other hand, when the distance between the thermal head 101 and the platen roller 102 continues, the measured temperature rises and the difference from the predicted temperature exceeds the threshold value T. In this case, the comparison unit 129 determines that the magnitude of the difference between the measured temperature and the predicted temperature is not equal to or less than the threshold value T (step S130; NO). Upon receiving the result of this determination, the print control unit 127 stops printing as shown in FIG. 8B (step S131). Since printing is stopped, it is possible to avoid damage due to blank printing.

印刷制御部127は、表示部108への表示を通じて、離間していることを通知して(ステップS123)、印刷モード処理を終了する。 The print control unit 127 notifies that the print control unit 127 is separated through the display on the display unit 108 (step S123), and ends the print mode process.

このような印刷モード処理は、エンコーダに基づく制御を必要としない。従って、エンコーダが搭載されなくても、空印刷によるサーマルヘッドの損傷を回避しつつ、印刷効率の悪化を抑制することが可能になる。 Such print mode processing does not require encoder-based control. Therefore, even if the encoder is not mounted, it is possible to suppress deterioration of printing efficiency while avoiding damage to the thermal head due to blank printing.

<サーマルプリンタ100の検査モードでの動作>
サーマルプリンタ100の電源が投入され、モード切替スイッチ109が検査モードに設定されている場合に、検査モード制御部121は、図10A〜10Cに示す検査モード処理を実行する。
<Operation of thermal printer 100 in inspection mode>
When the power of the thermal printer 100 is turned on and the mode changeover switch 109 is set to the inspection mode, the inspection mode control unit 121 executes the inspection mode processing shown in FIGS. 10A to 10C.

図10Aに示すように、検査モード制御部121は、蓋を開けた状態で検査指示を受け付けたか否かを判断する(ステップS141)。蓋を開けた状態であるか否かは、検知スイッチ103から検知信号取得部118を介して取得する検知信号に基づいて判断される。また、検査指示は、例えばユーザが入力部107に予め定められた操作を行うことに応じて入力部107から出力される。 As shown in FIG. 10A, the inspection mode control unit 121 determines whether or not the inspection instruction has been received with the lid open (step S141). Whether or not the lid is open is determined based on the detection signal acquired from the detection switch 103 via the detection signal acquisition unit 118. Further, the inspection instruction is output from the input unit 107, for example, in response to the user performing a predetermined operation on the input unit 107.

近接信号を取得している場合、又は、検査指示を受け付けない場合に、検査モード制御部121は、蓋を開けた状態で検査指示を受け付けていないと判断し(ステップS141;NO)、ステップS141の処理を繰り返す。 When the proximity signal is acquired or the inspection instruction is not accepted, the inspection mode control unit 121 determines that the inspection instruction is not accepted with the lid open (step S141; NO), and step S141. Repeat the process of.

離間信号を取得し、かつ、検査指示を受け付けた場合に、検査モード制御部121は、蓋を開けた状態で検査指示を受け付けたと判断し(ステップS141;YES)、印刷モード制御部119へダミーの近接信号を出力する(ステップS142)。そして、検査モード制御部121は、タイマをスタートさせる(ステップS143)。 When the separation signal is acquired and the inspection instruction is received, the inspection mode control unit 121 determines that the inspection instruction has been received with the lid open (step S141; YES), and sends a dummy to the print mode control unit 119. Proximity signal is output (step S142). Then, the inspection mode control unit 121 starts the timer (step S143).

印刷モード制御部119は、検査モード制御部121からのダミーの近接信号を取得すると、記憶部114から検査用印刷データ126を取得する(ステップS144)。 When the print mode control unit 119 acquires the dummy proximity signal from the inspection mode control unit 121, the print mode control unit 119 acquires the inspection print data 126 from the storage unit 114 (step S144).

印刷モード制御部119は、上述したステップS124及びS128〜S130の処理を実行する。ここでのステップS124及びS128〜S130の処理では、印刷モード処理の印刷データ123bに代えて、ステップS144にて取得した検査用印刷データ126が採用される。 The print mode control unit 119 executes the processes of steps S124 and S128 to S130 described above. In the processes of steps S124 and S128 to S130 here, the inspection print data 126 acquired in step S144 is adopted instead of the print data 123b of the print mode process.

測定温度と予測温度との差の大きさが閾値T以下であると判断された場合(ステップS130;YES)、検査モード制御部121は、ステップS143にてスタートさせたタイマが計測する時間に基づいて、所定時間PT1が経過したか否かを判断する(ステップS145)。 When it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is equal to or less than the threshold value T (step S130; YES), the inspection mode control unit 121 is based on the time measured by the timer started in step S143. Then, it is determined whether or not the predetermined time PT1 has elapsed (step S145).

所定時間PT1が経過していないと判断した場合(ステップS145;NO)、検査モード制御部121は、ステップS124及びS128〜S130の処理を印刷モード制御部119に続けて実行させる。 When it is determined that the predetermined time PT1 has not elapsed (step S145; NO), the inspection mode control unit 121 causes the print mode control unit 119 to continuously execute the processes of steps S124 and S128 to S130.

仮に検査用印刷データ126に含まれる文字、記号、数値などの印刷が所定時間PT1が経過するまでに完了する場合には、所定時間PT1が経過するまでの間、検査用印刷データ126の内容が繰り返し印刷されるとよい。この場合、印刷履歴データ124は、例えば、印刷データ123の内容の印刷が繰り返された回数を含むとよい。 If the printing of characters, symbols, numerical values, etc. included in the inspection print data 126 is completed by the time when the predetermined time PT1 elapses, the contents of the inspection print data 126 will be displayed until the predetermined time PT1 elapses. It should be printed repeatedly. In this case, the print history data 124 may include, for example, the number of times the printing of the contents of the print data 123 is repeated.

ここで、所定時間PT1には、その時間長さにわたって空印刷を継続すると、サーマルプリンタ100では通常、測定温度と予測温度との差の大きさが閾値Tを超える時間が採用される。そのため、ステップS143にてタイマをスタートさせた時から所定時間PT1が経過しても、測定温度と予測温度との差の大きさが閾値T以下であると判断される場合、印刷モード制御部119が正常に動作していないことを意味する。 Here, when blank printing is continued for the predetermined time PT1, the thermal printer 100 usually adopts a time when the magnitude of the difference between the measured temperature and the predicted temperature exceeds the threshold value T. Therefore, if it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is equal to or less than the threshold value T even if the predetermined time PT1 elapses from the time when the timer is started in step S143, the print mode control unit 119 Means that is not working properly.

所定時間PT1が経過したと判断した場合(ステップS145;YES)、検査モード制御部121は、図10Cに示すように、印刷モード制御部119に印刷を停止させる(ステップS146)。そして、検査モード制御部121は、表示部108への表示を通じて、正常に動作していないこと(検査エラー)を通知して(ステップS147)、検査モード処理を終了する。 When it is determined that the predetermined time PT1 has elapsed (step S145; YES), the inspection mode control unit 121 causes the print mode control unit 119 to stop printing as shown in FIG. 10C (step S146). Then, the inspection mode control unit 121 notifies that it is not operating normally (inspection error) through the display on the display unit 108 (step S147), and ends the inspection mode process.

図10Aを再び参照する。
測定温度と予測温度との差の大きさが閾値T以下でないと判断した場合(ステップS130;NO)、印刷モード制御部119は、図10Bに示すように、印刷を停止する(ステップS131)。
See FIG. 10A again.
When it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is not equal to or less than the threshold value T (step S130; NO), the print mode control unit 119 stops printing as shown in FIG. 10B (step S131).

この場合、ステップS143にてタイマをスタートさせた時から所定時間PT1が経過するまでに、測定温度と予測温度との差の大きさが閾値Tを超えたと判断され、印刷が停止している。このことは、印刷モード制御部119が正常に動作していることを意味する。 In this case, it is determined that the magnitude of the difference between the measured temperature and the predicted temperature exceeds the threshold value T from the time when the timer is started in step S143 to the time when the predetermined time PT1 elapses, and printing is stopped. This means that the print mode control unit 119 is operating normally.

そのため、検査モード制御部121は、表示部108への表示を通じて、正常に動作していること(正常動作)を通知する(ステップS148)。 Therefore, the inspection mode control unit 121 notifies that it is operating normally (normal operation) through the display on the display unit 108 (step S148).

検査モード制御部121は、蓋を閉じた状態で検査指示を受け付けたか否かを判断する(ステップS149)。 The inspection mode control unit 121 determines whether or not the inspection instruction has been received with the lid closed (step S149).

離間信号を取得している場合、又は、検査指示を受け付けない場合に、検査モード制御部121は、蓋を閉じた状態で検査指示を受け付けていないと判断し(ステップS149;NO)、ステップS149の処理を繰り返す。 When the separation signal is acquired or the inspection instruction is not accepted, the inspection mode control unit 121 determines that the inspection instruction is not accepted with the lid closed (step S149; NO), and step S149. Repeat the process of.

近接信号を取得し、かつ、検査指示を受け付けた場合に、検査モード制御部121は、蓋を閉じた状態で検査指示を受け付けたと判断し(ステップS149;YES)、タイマをスタートさせる(ステップS150)。 When the proximity signal is acquired and the inspection instruction is received, the inspection mode control unit 121 determines that the inspection instruction has been received with the lid closed (step S149; YES), and starts the timer (step S150). ).

印刷モード制御部119は、ステップS150にてタイマがスタートすると、例えば検査モード制御部121からの指示を受けて、記憶部114から検査用印刷データ126を取得する(ステップS151)。 When the timer starts in step S150, the print mode control unit 119 acquires the inspection print data 126 from the storage unit 114 in response to an instruction from, for example, the inspection mode control unit 121 (step S151).

印刷モード制御部119は、上述したステップS124の処理を実行する。ここでのステップS124の処理では、印刷モード処理の印刷データ123bに代えて、ステップS144にて取得した検査用印刷データ126が採用される。 The print mode control unit 119 executes the process of step S124 described above. In the process of step S124 here, the inspection print data 126 acquired in step S144 is adopted instead of the print data 123b of the print mode process.

検査モード制御部121は、ステップS150にてスタートさせたタイマが計測する時間に基づいて、所定時間PT2が経過したか否かを判断する(ステップS152)。 The inspection mode control unit 121 determines whether or not the predetermined time PT2 has elapsed based on the time measured by the timer started in step S150 (step S152).

所定時間PT2が経過していないと判断した場合(ステップS152;NO)、検査モード制御部121は、ステップS152の処理を継続して、所定時間PT2が経過するまで待つ。 When it is determined that the predetermined time PT2 has not elapsed (step S152; NO), the inspection mode control unit 121 continues the process of step S152 and waits until the predetermined time PT2 elapses.

ステップS150にてタイマをスタートさせてから所定時間PT2が経過すると、検査モード制御部121は、所定時間PT2が経過したと判断する(ステップS152;YES)。そして、検査モード制御部121は、図10Cに示すように、印刷モード制御部119へダミーの離間信号を出力する(ステップS153)。 When the predetermined time PT2 has elapsed since the timer was started in step S150, the inspection mode control unit 121 determines that the predetermined time PT2 has elapsed (step S152; YES). Then, as shown in FIG. 10C, the inspection mode control unit 121 outputs a dummy separation signal to the print mode control unit 119 (step S153).

印刷モード制御部119は、検査モード制御部121から出力されるダミーの離間信号を取得すると(ステップS154)、ステップS128〜S130の処理を実行する。 When the print mode control unit 119 acquires the dummy separation signal output from the inspection mode control unit 121 (step S154), the print mode control unit 119 executes the processes of steps S128 to S130.

測定温度と予測温度との差の大きさが閾値T以下でないと判断した場合(ステップS130;NO)、印刷モード制御部119は、印刷を停止する(ステップS131)。 When it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is not equal to or less than the threshold value T (step S130; NO), the print mode control unit 119 stops printing (step S131).

ここでは、サーマルヘッド101とプラテンローラ102とは実際には近接しているので、印刷モード制御部119が印刷を停止することは、印刷モード制御部119が正常に動作していないことを意味する。 Here, since the thermal head 101 and the platen roller 102 are actually close to each other, stopping printing by the print mode control unit 119 means that the print mode control unit 119 is not operating normally. ..

そのため、検査モード制御部121は、印刷モード制御部119が印刷を停止したことを検知すると、表示部108への表示を通じて、検査エラーを通知して(ステップS154)、検査モード処理を終了する。 Therefore, when the inspection mode control unit 121 detects that the print mode control unit 119 has stopped printing, the inspection mode control unit 121 notifies the inspection error through the display on the display unit 108 (step S154), and ends the inspection mode process.

これに対して、測定温度と予測温度との差の大きさが閾値T以下であると判断されると、印刷モード制御部119は印刷を継続するので、印刷モード制御部119が正常に動作していることを意味する。 On the other hand, when it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is equal to or less than the threshold value T, the print mode control unit 119 continues printing, so that the print mode control unit 119 operates normally. It means that it is.

測定温度と予測温度との差の大きさが閾値T以下であると判断された場合(ステップS130;YES)、この判断の結果を受けて、検査モード制御部121が、印刷モード制御部119に印刷を停止させる(ステップS155)。そして、検査モード制御部121は、表示部108への表示を通じて、正常動作を通知して(ステップS156)、検査モード処理を終了する。 When it is determined that the magnitude of the difference between the measured temperature and the predicted temperature is equal to or less than the threshold value T (step S130; YES), the inspection mode control unit 121 sends the print mode control unit 119 to the print mode control unit 119 in response to the result of this determination. Printing is stopped (step S155). Then, the inspection mode control unit 121 notifies the normal operation through the display on the display unit 108 (step S156), and ends the inspection mode process.

このように、サーマルプリンタ100を検査モードで動作させることによって、サーマルプリンタ100が、印刷モードでの動作時に検知信号に基づいて、正常に動作するかどうかを検査することができる。 By operating the thermal printer 100 in the inspection mode in this way, it is possible to inspect whether the thermal printer 100 operates normally based on the detection signal when operating in the print mode.

これまで、本発明の一実施の形態に係るサーマルプリンタ100について説明した。 So far, the thermal printer 100 according to the embodiment of the present invention has been described.

一般的に、サーマルヘッド101とプラテンローラ102とが離間した状態で印刷を継続すると、いわゆる空印刷となって、サーマルヘッド101が過熱して損傷するおそれがある。 Generally, if printing is continued with the thermal head 101 and the platen roller 102 separated from each other, so-called blank printing occurs, and the thermal head 101 may overheat and be damaged.

その一方で、上述のように、回転軸112と可動部材139との間に異物140が挟まったために、サーマルヘッド101とプラテンローラ102とが離間することがある。このような場合、比較的短時間のうちに、回転軸112の回転などに伴って人手を介さずに異物140が取れて、サーマルヘッド101とプラテンローラ102とが近接した状態に戻ることが多い。この例のように、サーマルヘッド101とプラテンローラ102との離間が比較的短時間である場合、サーマルヘッド101が過熱して損傷に到る可能性は乏しい。このような場合にまで印刷を停止する必要はなく、印刷を停止させると印刷効率が低下してしまう。 On the other hand, as described above, since the foreign matter 140 is sandwiched between the rotating shaft 112 and the movable member 139, the thermal head 101 and the platen roller 102 may be separated from each other. In such a case, the foreign matter 140 is often removed without human intervention due to the rotation of the rotating shaft 112 or the like within a relatively short time, and the thermal head 101 and the platen roller 102 often return to a close state. .. When the distance between the thermal head 101 and the platen roller 102 is relatively short as in this example, it is unlikely that the thermal head 101 will overheat and cause damage. It is not necessary to stop printing even in such a case, and if printing is stopped, the printing efficiency is lowered.

本実施の形態に係るサーマルプリンタ100は、予め定められた時点からの印刷履歴に基づいてサーマルヘッド101の予測温度を求め、測定されたヘッド温度と求められた予測温度とを比較し、その比較の結果に基づいて印刷を制御する。 The thermal printer 100 according to the present embodiment obtains the predicted temperature of the thermal head 101 based on the printing history from a predetermined time point, compares the measured head temperature with the obtained predicted temperature, and compares them. Control printing based on the result of.

一般的に、サーマルヘッド101とプラテンローラ102とが離間すると、ヘッド温度が上昇する。そのため、サーマルヘッド101の測定温度と予測温度とを比較することによって、サーマルヘッド101とプラテンローラ102とが印刷を停止する必要がある程度に離間しているか否かを正確に検知することができる。 Generally, when the thermal head 101 and the platen roller 102 are separated from each other, the head temperature rises. Therefore, by comparing the measured temperature of the thermal head 101 with the predicted temperature, it is possible to accurately detect whether or not the thermal head 101 and the platen roller 102 need to stop printing to some extent.

そして、検知の結果に基づいて印刷を停止することで、空印刷を回避し、空印刷によるサーマルヘッドの損傷を防ぐことができる。また、サーマルヘッド101の規格上の耐熱温度よりも低い温度で印刷を停止させることで、早期対応によって早期復旧を図り、印刷効率の向上を図ることができる。 Then, by stopping printing based on the detection result, blank printing can be avoided and damage to the thermal head due to blank printing can be prevented. Further, by stopping the printing at a temperature lower than the standard heat resistant temperature of the thermal head 101, it is possible to achieve an early recovery by an early response and improve the printing efficiency.

さらに、サーマルヘッド101とプラテンローラ102との離間が比較的短時間である場合など、サーマルヘッド101が過熱により損傷するおそれが乏しい場合には、印刷を停止させずに継続する。そのため、サーマルヘッド101が損傷するおそれが乏しい場合にまで、印刷を停止させてしまうよりも、印刷効率を向上させることができる。 Further, when there is little possibility that the thermal head 101 is damaged by overheating, such as when the distance between the thermal head 101 and the platen roller 102 is relatively short, printing is continued without stopping. Therefore, the printing efficiency can be improved rather than stopping the printing even when there is little possibility that the thermal head 101 is damaged.

そして、これらの制御には、モータ104のエンコーダが必要とされないので、エンコーダを持たないオープン・ループ制御方式のサーマルプリンタ100であってよい。 Since the encoder of the motor 104 is not required for these controls, the thermal printer 100 of the open loop control system without the encoder may be used.

従って、エンコーダが搭載されなくても、空印刷によるサーマルヘッド101の損傷を回避しつつ、印刷効率の低下を抑制することが可能になる。 Therefore, even if the encoder is not mounted, it is possible to suppress a decrease in printing efficiency while avoiding damage to the thermal head 101 due to blank printing.

本実施の形態によれば、印刷制御部127は、測定されたヘッド温度と求められた予測温度との差の大きさが予め定められた閾値Tよりも大きい場合に、印刷を停止させる。通常、障害発生のおそれがあるのは、サーマルヘッド101が過熱した場合であるので、測定されたヘッド温度が、予測温度よりも大きくなる。 According to the present embodiment, the print control unit 127 stops printing when the magnitude of the difference between the measured head temperature and the obtained predicted temperature is larger than the predetermined threshold value T. Normally, a failure may occur when the thermal head 101 is overheated, so that the measured head temperature becomes higher than the predicted temperature.

このように、印刷を停止させることによって、サーマルヘッド101が過熱して損傷することを防ぐことが可能になる。 By stopping printing in this way, it is possible to prevent the thermal head 101 from being overheated and damaged.

本実施の形態によれば、サーマルプリンタ100は、サーマルヘッド101とプラテンローラ102とが離間したか否かを検知し、検知した結果を示す検知信号を出力する検知スイッチ103をさらに備える。また、比較部129は、出力された検知信号が離間したことを示す場合に、測定されたヘッド温度と予測された温度とを比較する。 According to the present embodiment, the thermal printer 100 further includes a detection switch 103 that detects whether or not the thermal head 101 and the platen roller 102 are separated from each other and outputs a detection signal indicating the detection result. Further, the comparison unit 129 compares the measured head temperature with the predicted temperature when it indicates that the output detection signals are separated.

検知信号が離間したことを示す場合に、測定されたヘッド温度と予測された温度とを比較することで、検知信号を参照せずに例えば定期的に比較処理を実行するよりも、制御部115の処理負荷を軽減することができる。このように、制御部115の処理能力のより多くを印刷処理に割り当てることができるので、制御部115での処理の遅延による印刷処理の遅れを減らすことができる。従って、印刷効率の向上を図ることが可能になる。 By comparing the measured head temperature with the predicted temperature when it indicates that the detection signals are separated, the control unit 115 is compared with, for example, periodically performing a comparison process without referring to the detection signal. Processing load can be reduced. In this way, since more processing capacity of the control unit 115 can be allocated to the printing process, it is possible to reduce the delay in the printing process due to the processing delay in the control unit 115. Therefore, it is possible to improve the printing efficiency.

本実施の形態によれば、サーマルプリンタ100は、予め設定される印刷単位における印刷密度を示す印刷パターンと、当該印刷パターンに応じた印刷密度で印刷単位の印刷を行った場合のサーマルヘッド101の上昇温度である単位上昇温度と、を関連付けた基準データ125を記憶する記憶部114をさらに備える。そして、予測部128は、印刷パターンの印刷単位を基準として、印刷履歴の印刷量を算出し、基準データ125に含まれる単位上昇温度と算出された印刷量とに基づいて、サーマルヘッド101の予測温度を求める。 According to the present embodiment, the thermal printer 100 has a print pattern indicating a print density in a preset print unit and a thermal head 101 in the case where the print unit is printed at a print density corresponding to the print pattern. A storage unit 114 that stores reference data 125 associated with a unit rise temperature, which is a rise temperature, is further provided. Then, the prediction unit 128 calculates the print amount of the print history based on the print unit of the print pattern, and predicts the thermal head 101 based on the unit rise temperature included in the reference data 125 and the calculated print amount. Find the temperature.

一般的に、サーマルヘッド101の温度は、印刷量に従って変化するので、この方法により、サーマルヘッド101の温度を適切に予測することができる。 In general, the temperature of the thermal head 101 changes according to the amount of printing, so that the temperature of the thermal head 101 can be appropriately predicted by this method.

本実施の形態によれば、サーマルプリンタ100は、環境温度を測定する環境温度センサ106をさらに備える。そして、温度予測部134は、単位上昇温度と算出された印刷量との積に、測定された環境温度を加算することによって、サーマルヘッド101の予測温度を求める。 According to the present embodiment, the thermal printer 100 further includes an environmental temperature sensor 106 for measuring the environmental temperature. Then, the temperature prediction unit 134 obtains the predicted temperature of the thermal head 101 by adding the measured ambient temperature to the product of the unit temperature rise temperature and the calculated printing amount.

これにより、環境温度を考慮してサーマルヘッド101の予測温度を求めることができるので、サーマルヘッド101の温度をより適切に予測することが可能になる。 As a result, the predicted temperature of the thermal head 101 can be obtained in consideration of the environmental temperature, so that the temperature of the thermal head 101 can be predicted more appropriately.

本実施の形態によれば、サーマルプリンタ100は、利用中のユーザを示す利用中ユーザデータを取得する利用中ユーザ取得部130をさらに備える。また、基準データ125は、印刷パターンと単位上昇温度とに加えて、ユーザを識別するためのユーザIDを関連付ける。そして、予測部128は、さらに、取得された利用中ユーザデータに対応するユーザIDを特定し、当該特定したユーザIDに関連付けられた印刷パターン及び単位上昇温度を取得する。印刷量算出部133は、取得された印刷パターンの印刷単位を基準として、印刷履歴の印刷量を算出する。温度予測部134は、取得された単位上昇温度と算出された印刷量とに基づいて、サーマルヘッド101の予測温度を求める。 According to the present embodiment, the thermal printer 100 further includes an in-use user acquisition unit 130 that acquires in-use user data indicating the in-use user. Further, the reference data 125 associates a user ID for identifying a user in addition to the print pattern and the unit rise temperature. Then, the prediction unit 128 further identifies the user ID corresponding to the acquired user data in use, and acquires the print pattern and the unit rise temperature associated with the specified user ID. The print amount calculation unit 133 calculates the print amount of the print history based on the print unit of the acquired print pattern. The temperature prediction unit 134 obtains the predicted temperature of the thermal head 101 based on the acquired unit rise temperature and the calculated print amount.

これにより、ユーザIDごとに印刷パターンを設定し、その印刷パターンに基づいてサーマルヘッド101の予測温度を求めることができる。ユーザIDによって印刷パターンが異なる場合、印刷パターンに応じた予測温度を求めることができる。従って、予測温度を正確に求めることが可能になる。 As a result, a print pattern can be set for each user ID, and the predicted temperature of the thermal head 101 can be obtained based on the print pattern. When the print pattern differs depending on the user ID, the predicted temperature can be obtained according to the print pattern. Therefore, it is possible to accurately obtain the predicted temperature.

本実施の形態によれば、印刷パターンは、印刷単位当たりの行数と各行の文字数とを含む。これにより、印刷密度を容易に設定して、サーマルヘッド101の予測温度を求めることができる。 According to this embodiment, the printing pattern includes the number of lines per printing unit and the number of characters in each line. As a result, the print density can be easily set and the predicted temperature of the thermal head 101 can be obtained.

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

本発明は、現金処理装置、マルチメディア端末等の明細を発行する自動機、POSシステムにおいてレシートを発行する店舗端末などに適用することができる。 The present invention can be applied to cash processing devices, automatic machines that issue details such as multimedia terminals, store terminals that issue receipts in POS systems, and the like.

100 サーマルプリンタ
101 サーマルヘッド
102 プラテンローラ
103 検知スイッチ
104 モータ
105 ヘッド温度センサ
106 環境温度センサ
109 モード切替スイッチ
110 制御ユニット
111 感熱紙
112 回転軸
113 伝達機構
114 記憶部
115 制御部
116 ヘッド温度取得部
117 環境温度取得部
118 検知信号取得部
119 印刷モード制御部
120 基準データ収集部
121 検査モード制御部
122 利用中ユーザID
123a,123b 印刷データ
124 印刷履歴データ
125 基準データ
126 検査用印刷データ
127 印刷制御部
128 予測部
129 比較部
130 利用中ユーザ取得部
131 基準取得部
132 印刷履歴取得部
133 印刷量算出部
134 温度予測部
135 上昇温度算出部
136 予測温度算出部
138 ピン部材
139 可動部材
140 異物
100 Thermal printer 101 Thermal head 102 Platen roller 103 Detection switch 104 Motor 105 Head temperature sensor 106 Environmental temperature sensor 109 Mode changeover switch 110 Control unit 111 Thermal paper 112 Rotating shaft 113 Transmission mechanism 114 Storage unit 115 Control unit 116 Head temperature acquisition unit 117 Environmental temperature acquisition unit 118 Detection signal acquisition unit 119 Print mode control unit 120 Reference data collection unit 121 Inspection mode control unit 122 In-use user ID
123a, 123b Print data 124 Print history data 125 Reference data 126 Inspection print data 127 Print control unit 128 Prediction unit 129 Comparison unit 130 In-use user acquisition unit 131 Reference acquisition unit 132 Print history acquisition unit 133 Print amount calculation unit 134 Temperature prediction Part 135 Rising temperature calculation part 136 Predicted temperature calculation part 138 Pin member 139 Movable member 140 Foreign matter

Claims (7)

サーマルヘッドとプラテンローラとが離間したか否かを検知する検知部と、
サーマルヘッドの温度であるヘッド温度を測定するヘッド温度センサと、
印刷を制御する制御ユニットと、
を備え、
前記制御ユニットは、
予め定められた時点からの印刷履歴に基づいて、前記サーマルヘッドの予測温度を求める予測部と、
前記検知部の出力により前記サーマルヘッドと前記プラテンローラとが離間したことを検知した際に、前記ヘッド温度センサにより測定されたヘッド温度と前記予測部により求められた予測温度とを比較し、前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きいか判定する比較部と、
印刷を制御する印刷制御部と
含み、
前記印刷制御部は、前記比較部から判定結果に基づき、前記検知部の出力が前記サーマルヘッドと前記プラテンローラとが離間したことを検知した場合であって前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きい場合に、印刷を停止させる一方、前記検知部の出力が前記サーマルヘッドと前記プラテンローラとが離間したことを検知した場合であっても前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも小さい場合には、印刷を継続させる
ことを特徴とするサーマルプリンタ。
A detector that detects whether the thermal head and the platen roller are separated,
A head temperature sensor that measures the head temperature, which is the temperature of the thermal head,
A control unit that controls printing and
With
The control unit
A prediction unit that obtains the predicted temperature of the thermal head based on the printing history from a predetermined time point, and
When it is detected by the output of the detection unit that the thermal head and the platen roller are separated from each other, the head temperature measured by the head temperature sensor is compared with the predicted temperature obtained by the prediction unit. A comparison unit that determines whether the magnitude of the difference between the measured head temperature and the obtained predicted temperature is larger than a predetermined threshold .
Including a print control unit that controls printing
The print control unit detects that the thermal head and the platen roller are separated from each other by the output of the detection unit based on the determination result from the comparison unit, and the measured head temperature and the determination are obtained. When printing is stopped when the magnitude of the difference from the predicted temperature is larger than a predetermined threshold value, while the output of the detection unit detects that the thermal head and the platen roller are separated from each other. A thermal printer characterized in that printing is continued even if the difference between the measured head temperature and the obtained predicted temperature is smaller than a predetermined threshold value .
予め設定される印刷単位における印刷密度を示す印刷パターンと、当該印刷パターンに応じた印刷密度で前記印刷単位の印刷を行った場合のサーマルヘッドの上昇温度である単位上昇温度と、を関連付けた基準データを記憶する記憶部をさらに備え、
前記予測部は、
前記印刷パターンの印刷単位を基準として、前記印刷履歴の印刷量を算出する印刷量算出部と、
前記基準データに含まれる単位上昇温度と前記算出された印刷量とに基づいて、前記サーマルヘッドの予測温度を求める温度予測部とを有する
ことを特徴とする請求項に記載のサーマルプリンタ。
A reference relating a print pattern indicating a print density in a preset print unit and a unit rise temperature which is a rise temperature of a thermal head when printing of the print unit at a print density corresponding to the print pattern. It also has a storage unit to store data.
The prediction unit
A print amount calculation unit that calculates the print amount of the print history based on the print unit of the print pattern,
Based on the unit temperature rise and the calculated amount of printing included in the reference data, the thermal printer according to claim 1, characterized in that it comprises a temperature prediction unit for obtaining the predicted temperature of the thermal head.
環境温度を測定する環境温度センサをさらに備え、
前記温度予測部は、前記単位上昇温度と前記算出された印刷量との積に、前記測定された環境温度を加算することによって、前記サーマルヘッドの予測温度を求める
ことを特徴とする請求項に記載のサーマルプリンタ。
Equipped with an environmental temperature sensor that measures the environmental temperature
The temperature prediction unit is the product of the unit raised temperature and the calculated amount of printing, by adding the measured environmental temperature, claim 2, characterized in that to determine the predicted temperature of the thermal head The thermal printer described in.
利用中のユーザを示す利用中ユーザデータを取得する利用中ユーザ取得部をさらに備え、
前記基準データは、前記印刷パターンと前記単位上昇温度とに加えて、ユーザを識別するためのユーザIDを関連付けており、
前記予測部は、
前記取得された利用中ユーザデータに対応する前記ユーザIDを特定し、当該特定したユーザIDに関連付けられた前記印刷パターン及び前記単位上昇温度を取得する基準データ取得部をさらに有し、
前記印刷量算出部は、前記取得された印刷パターンの印刷単位を基準として、前記印刷履歴の印刷量を算出し、
前記温度予測部は、前記取得された単位上昇温度と前記算出された印刷量とに基づいて、前記サーマルヘッドの予測温度を求める
ことを特徴とする請求項又はに記載のサーマルプリンタ。
It also has an in-use user acquisition unit that acquires in-use user data that indicates the in-use user.
The reference data associates the print pattern with the unit rise temperature and a user ID for identifying the user.
The prediction unit
Further having a reference data acquisition unit that identifies the user ID corresponding to the acquired user data in use and acquires the print pattern and the unit rise temperature associated with the specified user ID.
The print amount calculation unit calculates the print amount of the print history based on the print unit of the acquired print pattern.
The thermal printer according to claim 2 or 3 , wherein the temperature prediction unit obtains a predicted temperature of the thermal head based on the acquired unit rise temperature and the calculated print amount.
前記印刷パターンは、前記印刷単位当たりの行数と各行の文字数とを含む
ことを特徴とする請求項からのいずれか項に記載のサーマルプリンタ。
The thermal printer according to any one of claims 2 to 4 , wherein the printing pattern includes the number of lines per printing unit and the number of characters in each line.
サーマルヘッドとプラテンローラとが離間したか否かを検知する検知部と、サーマルヘッドの温度であるヘッド温度を測定するヘッド温度センサとを具備するサーマルプリンタの印刷制御方法であって、
前記ヘッド温度センサの測定結果であるサーマルヘッドの温度であるヘッド温度を示すヘッド温度データを取得することと、
予め定められた時点からの印刷履歴に基づいて、前記サーマルヘッドの予測温度を求めることと、
前記検知部の出力により前記サーマルヘッドと前記プラテンローラとが離間したことを検知した際に、記ヘッド温度データと前記予測温度とを比較し、前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きいか判定することと、
前記判定の結果に基づいて、前記検知部の出力が前記サーマルヘッドと前記プラテンローラとが離間したことを検知した場合であって前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きい場合に、印刷を停止させる一方、前記検知部の出力が前記サーマルヘッドと前記プラテンローラとが離間したことを検知した場合であっても前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも小さい場合には、印刷を継続させる、こととを含む
ことを特徴とするサーマルプリンタの印刷制御方法
A printing control method for a thermal printer including a detection unit for detecting whether or not the thermal head and the platen roller are separated from each other and a head temperature sensor for measuring the head temperature, which is the temperature of the thermal head.
Acquiring head temperature data indicating the head temperature, which is the temperature of the thermal head, which is the measurement result of the head temperature sensor ,
Obtaining the predicted temperature of the thermal head based on the printing history from a predetermined time point,
Wherein said thermal head by an output of the detection unit when the platen roller and detects that it has spaced, comparing the measured front Kihe head temperature data before Ki予 temperature, and the measured head temperature Determining whether the magnitude of the difference from the obtained predicted temperature is larger than a predetermined threshold
Based on the result of the determination , when the output of the detection unit detects that the thermal head and the platen roller are separated from each other, the difference between the measured head temperature and the obtained predicted temperature is When the size is larger than a predetermined threshold, printing is stopped, and the measurement is performed even when the output of the detection unit detects that the thermal head and the platen roller are separated from each other. A printing control method for a thermal printer, comprising: continuing printing when the magnitude of the difference between the head temperature and the obtained predicted temperature is smaller than a predetermined threshold value .
サーマルヘッドとプラテンローラとが離間したか否かを検知する検知部と、サーマルヘッドの温度であるヘッド温度を測定するヘッド温度センサとを具備するサーマルプリンタに搭載させるコンピュータに、
前記ヘッド温度センサの測定結果でありサーマルヘッドの温度であるヘッド温度を示すヘッド温度データを取得することと、
前記サーマルヘッドが搭載されたサーマルプリンタによる予め定められた時点からの印刷履歴に基づいて、前記サーマルヘッドの予測温度を求めることと、
前記検知部の出力により前記サーマルヘッドと前記プラテンローラとが離間したことを検知した際に、
記ヘッド温度データと前記予測温度とを比較し、前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きいか判定することと、
前記判定の結果に基づいて、前記検知部の出力が前記サーマルヘッドと前記プラテンローラとが離間したことを検知した場合であって前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも大きい場合に、印刷を停止させる一方、前記検知部の出力が前記サーマルヘッドと前記プラテンローラとが離間したことを検知した場合であっても前記測定されたヘッド温度と前記求められた予測温度との差の大きさが予め定められた閾値よりも小さい場合には、印刷を継続させる、
こととを
実行させるためのプログラム。
A computer mounted on a thermal printer equipped with a detection unit that detects whether or not the thermal head and the platen roller are separated from each other and a head temperature sensor that measures the head temperature, which is the temperature of the thermal head .
Acquiring head temperature data indicating the head temperature, which is the measurement result of the head temperature sensor and is the temperature of the thermal head,
Obtaining the predicted temperature of the thermal head based on the printing history from a predetermined time point by the thermal printer equipped with the thermal head, and
When it is detected that the thermal head and the platen roller are separated from each other by the output of the detection unit,
That before comparing the Kihe head temperature data before Ki予measuring temperature, determining whether the magnitude of the difference between the measured head temperature and the determined prediction temperature is greater than a predetermined threshold When,
Based on the result of the determination , the difference between the measured head temperature and the obtained predicted temperature when the output of the detection unit detects that the thermal head and the platen roller are separated from each other. When the size is larger than a predetermined threshold, printing is stopped, and the measurement is performed even when the output of the detection unit detects that the thermal head and the platen roller are separated from each other. When the magnitude of the difference between the head temperature and the obtained predicted temperature is smaller than the predetermined threshold value, printing is continued.
A program to do things and things.
JP2017007490A 2017-01-19 2017-01-19 Thermal printer, print control method of thermal printer, and program Active JP6810419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017007490A JP6810419B2 (en) 2017-01-19 2017-01-19 Thermal printer, print control method of thermal printer, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017007490A JP6810419B2 (en) 2017-01-19 2017-01-19 Thermal printer, print control method of thermal printer, and program

Publications (2)

Publication Number Publication Date
JP2018114691A JP2018114691A (en) 2018-07-26
JP6810419B2 true JP6810419B2 (en) 2021-01-06

Family

ID=62983325

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017007490A Active JP6810419B2 (en) 2017-01-19 2017-01-19 Thermal printer, print control method of thermal printer, and program

Country Status (1)

Country Link
JP (1) JP6810419B2 (en)

Also Published As

Publication number Publication date
JP2018114691A (en) 2018-07-26

Similar Documents

Publication Publication Date Title
JP5256893B2 (en) RECORDING DEVICE, CONTROL METHOD AND CONTROL PROGRAM FOR RECORDING DEVICE
JP2007219192A (en) Image forming apparatus and its cooling control method
JP2003344325A (en) Material discrimination apparatus and material discrimination method
JP6421846B2 (en) Printing apparatus, printing method, and program
JPH04220676A (en) Correction method for temperature detection in fixing device
CN104865807B (en) Image Forming Apparatus
US8953959B2 (en) Printing apparatus
JP6810419B2 (en) Thermal printer, print control method of thermal printer, and program
JP2007003992A (en) Image forming apparatus
JP2018144447A (en) Printing device, printing system, print control method and program
JP2016029450A (en) Image forming apparatus
US9285732B2 (en) Image forming apparatus and fixing operation control method
JP2005141974A5 (en)
JP7163728B2 (en) printer
CN110031129B (en) Motor temperature estimation device and control method thereof
JP2013011864A (en) Decolorizing apparatus and decolorizing method
JP2005172911A (en) Fixing apparatus
US9354568B2 (en) Method and system for controlling a fuser assembly using temperature feedback
JP4311155B2 (en) Image forming apparatus
JP2002221871A (en) Image forming device, method for controlling temperature of fixing device, and program
JP6293489B2 (en) Printer device control method and printer device
JP2012053156A (en) Image forming device
JP7087710B2 (en) Image forming device and control method
JP4681725B2 (en) Thermal printer
US20220315375A1 (en) Transport system, transport device, recording system, and method of controlling transport device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200923

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200930

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201102

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201203

R150 Certificate of patent or registration of utility model

Ref document number: 6810419

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150