JP2009214456A - Thermal printer - Google Patents

Thermal printer Download PDF

Info

Publication number
JP2009214456A
JP2009214456A JP2008061465A JP2008061465A JP2009214456A JP 2009214456 A JP2009214456 A JP 2009214456A JP 2008061465 A JP2008061465 A JP 2008061465A JP 2008061465 A JP2008061465 A JP 2008061465A JP 2009214456 A JP2009214456 A JP 2009214456A
Authority
JP
Japan
Prior art keywords
printing
print data
heating element
disconnection
thermal printer
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.)
Withdrawn
Application number
JP2008061465A
Other languages
Japanese (ja)
Inventor
Yuji Yasui
祐治 安井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2008061465A priority Critical patent/JP2009214456A/en
Publication of JP2009214456A publication Critical patent/JP2009214456A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a thermal printer which automatically performs an open circuit check without requiring the indication by a user, and also, guarantees a highly accurate printing result while drastically shortening a period of time required for the open circuit check. <P>SOLUTION: Whether printing data is one requiring the open circuit check or not is judged. Then, when the printing data has been judged to be one requiring the open circuit check, heating elements to be turned on at the time of printing are specified conforming to the printing data. Whether heating elements having the open circuit are included in the specified heating elements or not is judged. Then, when the inclusion of the heating elements having the open circuit is judged, the result is output. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、複数の発熱素子を有するサーマルヘッドを備え、文字やバーコードなどの印字データを印字媒体に印字するサーマルプリンタに関する。   The present invention relates to a thermal printer that includes a thermal head having a plurality of heating elements and prints print data such as characters and barcodes on a print medium.

複数の発熱素子をライン状に配設したサーマルヘッドを用いて印字を行うサーマルプリンタでは、その印字結果を保証するためにサーマルヘッドの断線チェックを行う必要がある。従来この断線チェックは、ユーザ主導の下でサーマルプリンタに接続されたホストコンピュータからの要求があった場合などに行われている。このとき、印字前若しくは印字後に全ての発熱素子に対して断線チェックが行われ、断線チェック処理の終了までに数秒の時間を要する。そのため、サーマルプリンタを高稼働率で使用する場合には運用に支障をきたすことがある。   In a thermal printer that performs printing using a thermal head in which a plurality of heating elements are arranged in a line, it is necessary to check for disconnection of the thermal head in order to guarantee the printing result. Conventionally, this disconnection check is performed when there is a request from a host computer connected to the thermal printer under the initiative of the user. At this time, a disconnection check is performed on all the heating elements before or after printing, and it takes several seconds to complete the disconnection check process. Therefore, when a thermal printer is used at a high operating rate, it may interfere with operation.

このように、発熱素子の断線チェックに要する時間を短縮するための技術としては、例えば特許文献1に記載のサーマルプリンタが知られている。特許文献1に記載のサーマルプリンタは、ホストコンピュータ側からの要求なく紙詰まりや本体のカバーの開放が認識されたときにサーマルヘッドの断線チェックを行うことで円滑なラベル発行を確保しようとするものである。   As described above, for example, a thermal printer described in Patent Document 1 is known as a technique for shortening the time required for checking the disconnection of the heating element. The thermal printer described in Patent Document 1 tries to ensure smooth label issuance by checking the thermal head for disconnection when a paper jam or opening of the main body cover is recognized without a request from the host computer. It is.

また、断線チェックに関する技術としては、例えば特許文献2に記載のサーマルプリンタのヘッドチェック装置およびヘッドチェック方法が知られている。特許文献2に記載のヘッドチェック方法は、断線した発熱素子の数を計数し、一定値を超えたときにエラー信号を出力するものである。
特開平11−268386号公報 特開2002−337378号公報
As a technique related to the disconnection check, for example, a thermal printer head check device and a head check method described in Patent Document 2 are known. The head check method described in Patent Document 2 counts the number of disconnected heating elements and outputs an error signal when a certain value is exceeded.
JP-A-11-268386 JP 2002-337378 A

サーマルプリンタを用いて印字される内容は、ユーザによって様々であり、発熱素子の断線が印字結果に与える影響の大小は、その印字結果の使用用途によって異なる。例えば、文字を印字する際に数ドットの断線があったとしても視覚的にその文字を認識できる場合が多いが、レシートやラベルにバーコードや二次元コードを印字する際には、数ドットが断線した状態で印字を行えばスキャナがユーザの意図しないコードを認識しかねない。このようなバーコードなどの誤認識は、商品の販売処理に影響するなど大きな障害の発生に繋がる蓋然性がある。これに鑑みれば、特許文献2に記載のヘッドチェック方法を用いて断線チェックを行う場合、全ての印字において印字結果の使用用途によらず同一の許容断線ドット数を当てはめるには危険が伴う。   The contents printed using the thermal printer vary depending on the user, and the magnitude of the influence of the disconnection of the heating element on the print result varies depending on the intended use of the print result. For example, even if there is a disconnection of several dots when printing a character, the character can often be visually recognized. However, when printing a barcode or two-dimensional code on a receipt or label, If printing is performed in a disconnected state, the scanner may recognize a code not intended by the user. Such misrecognition of a barcode or the like has a probability of leading to a major failure such as affecting the sales process of the product. In view of this, when the disconnection check is performed using the head check method described in Patent Document 2, it is dangerous to apply the same allowable disconnection dot number regardless of the intended use of the print result in all printing.

さらに、上述の通り全てのラベルやレシートを印字する度に発熱素子の断線チェックを行うには数秒の時間がかかるが、サーマルプリンタを高稼働率で使用するシステムにおいては、たった数秒のことであってもその運用に支障をきたす可能性がある。   Furthermore, as described above, it takes a few seconds to check the disconnection of the heating element every time all labels and receipts are printed. However, in a system that uses a thermal printer at a high operating rate, this is only a few seconds. However, there is a possibility of hindering its operation.

しかし、これらの発熱素子の断線に関する問題に対処するために断線チェックを行うタイミングなどを印字結果の使用用途に応じて考慮したシステムを個別に組むのは、手間がかかり面倒である。   However, it is troublesome and troublesome to individually construct a system that considers the timing of performing a disconnection check in accordance with the usage of the print result in order to cope with the problem relating to the disconnection of these heating elements.

本発明は、上記のような事情に基づいてなされたものであり、その目的は、ユーザの指示を要せず自動的に断線チェックを行い、また、断線チェックに要する時間を大幅に短縮しつつも高精度な印字結果を保証するサーマルプリンタを提供することである。   The present invention has been made based on the above circumstances, and its purpose is to automatically perform a disconnection check without requiring a user's instruction, and to greatly shorten the time required for the disconnection check. Is to provide a thermal printer that guarantees high-precision printing results.

本発明は、複数の発熱素子を有するサーマルヘッドを備え、印字データに基づき前記発熱素子に通電することで印字媒体に対する印字を行うサーマルプリンタにおいて、前記印字データに基づいて印字の際に通電する前記発熱素子を特定する発熱素子特定手段と、この発熱素子特定手段が特定した印字の際に通電する前記発熱素子の中に断線している発熱素子が含まれるか否かを判断する断線判断手段と、この断線判断手段が前記印字の際に通電する発熱素子の中に断線している発熱素子が含まれると判断したとき、その結果を出力する出力手段と、を具備してなることを特徴としている。   The present invention is a thermal printer that includes a thermal head having a plurality of heating elements, and that performs printing on a print medium by energizing the heating elements based on print data, and that is energized during printing based on the print data. A heating element specifying means for specifying a heating element; and a disconnection determining means for determining whether or not a disconnected heating element is included in the heating element that is energized during printing specified by the heating element specifying means; The disconnection determining means comprises an output means for outputting the result when it is determined that the disconnected heating element is included in the heating element energized at the time of printing. Yes.

かかる手段を講じた本発明によれば、ユーザの指示を要せず自動的に断線チェックを行い、また、断線チェックに要する時間を大幅に短縮しつつも高精度な印字結果を保証するサーマルプリンタを提供することができる。   According to the present invention in which such a measure is taken, a thermal printer that automatically performs a disconnection check without requiring a user instruction, and guarantees a highly accurate printing result while greatly reducing the time required for the disconnection check. Can be provided.

以下、本発明を実施するための最良の形態について図面を参照しながら説明する。
なお、本実施の形態は、本発明をたとえば商品の販売店舗において主にバーコードを含む印字データの印字に供されるバーコードプリンタなどのサーマルプリンタ1に適用した場合についての一例である。
The best mode for carrying out the present invention will be described below with reference to the drawings.
The present embodiment is an example of a case where the present invention is applied to a thermal printer 1 such as a barcode printer mainly used for printing print data including a barcode at a merchandise store.

図1は、サーマルプリンタ1の要部構成を示すブロック図である。サーマルプリンタ1は、その制御主体としてCPU(Central Processing Unit)2を備えている。そして、CPU2に各種制御プログラムなどの固定的データを記憶したROM(Read Only Memory)3、処理場面に合わせて各種作業用のメモリエリアを形成するRAM(Random Access Memory)4、有線又は無線で接続されたホストコンピュータ(PC)20などの外部機器との通信を司る通信インターフェイス(I/F)5、表示デバイス10への各種処理内容などの表示を制御する表示コントローラ6、置数キーなど当該サーマルプリンタ1の操作に必要な操作キーを有する入力デバイス11からの入力信号を処理する入力コントローラ7、印字媒体を搬送する搬送モータ12を駆動制御する駆動コントローラ8およびサーマルヘッド13への通電を制御するヘッドコントローラ9をアドレスバスまたはデータバスなどのバスライン14で接続してその制御回路が構成されている。   FIG. 1 is a block diagram showing a main configuration of the thermal printer 1. The thermal printer 1 includes a CPU (Central Processing Unit) 2 as a control subject. Then, a ROM (Read Only Memory) 3 that stores fixed data such as various control programs in the CPU 2, a RAM (Random Access Memory) 4 that forms a memory area for various operations according to the processing scene, wired or wireless connection Communication interface (I / F) 5 that controls communication with an external device such as a host computer (PC) 20, a display controller 6 that controls display of various processing contents on the display device 10, numeric keys, etc. The input controller 7 that processes an input signal from an input device 11 having operation keys necessary for operating the printer 1, the drive controller 8 that drives and controls the conveyance motor 12 that conveys the print medium, and the thermal head 13 are controlled. The head controller 9 is connected by a bus line 14 such as an address bus or a data bus. It is configuration control circuit of.

当該サーマルプリンタ1の稼動状態においては、RAM4に図3の説明にて後述する方法により断線チェックの対象とする発熱素子40を特定して記憶したチェック対象ファイル31が形成される。   In the operating state of the thermal printer 1, a check target file 31 is formed in the RAM 4 by specifying and storing the heating element 40 to be subject to a disconnection check by a method described later in the description of FIG. 3.

ヘッドコントローラ9は、通信インターフェイス5を介して受信した印字データをドットイメージに展開処理するための印字データバッファ30を備えている。また、ヘッドコントローラ9は、CPU2から発熱素子40の断線チェックの実行指令を受けると、チェック対象ファイル31に基づいて所定の発熱素子40に対する断線チェックを実行する。この断線チェックは、たとえば電圧検出回路をサーマルヘッド13に接続し、各発熱素子40に通電した際の当該電圧検出回路の出力を参酌することで可能である。   The head controller 9 includes a print data buffer 30 for developing print data received via the communication interface 5 into a dot image. Further, when the head controller 9 receives an instruction to execute the disconnection check for the heating element 40 from the CPU 2, the head controller 9 executes a disconnection check for the predetermined heating element 40 based on the check target file 31. This disconnection check can be performed, for example, by connecting a voltage detection circuit to the thermal head 13 and taking into account the output of the voltage detection circuit when each heating element 40 is energized.

図2は、サーマルプリンタ1が印字したバーコード42とサーマルヘッド13との関係を示す模式図である。発熱素子40は、サーマルヘッド13が図示しないプラテンローラと当接する位置にライン状に複数配設されている。また、サーマルヘッド13とプラテンローラとの間には印字媒体41と図示しない熱転写リボンが発熱素子40の配列方向と略直交する方向に搬送されている。印字に際しては、ヘッドコントローラ9の制御下にて印字データバッファ30に展開処理されたドットイメージに基づいて特定の発熱素子40に通電され、そのとき生じた熱により熱転写リボンのインクが印字媒体41に熱転写されることで画像が形成される。   FIG. 2 is a schematic diagram showing the relationship between the barcode 42 printed by the thermal printer 1 and the thermal head 13. A plurality of heating elements 40 are arranged in a line at a position where the thermal head 13 contacts a platen roller (not shown). Further, a print medium 41 and a thermal transfer ribbon (not shown) are conveyed between the thermal head 13 and the platen roller in a direction substantially orthogonal to the arrangement direction of the heating elements 40. During printing, a specific heating element 40 is energized based on the dot image developed in the print data buffer 30 under the control of the head controller 9, and the heat transfer ribbon ink is applied to the printing medium 41 by the heat generated at that time. An image is formed by thermal transfer.

通常、バーコード42は印字結果に尾引きが生じないように、印字媒体41の搬送方向に各バーの長手方向が一致するよう印字される。すなわち、バーコード42を構成する各バーは、発熱素子40の配列方向と略直交する方向に印字されることとなる。   Usually, the bar code 42 is printed so that the longitudinal direction of each bar coincides with the transport direction of the print medium 41 so as not to cause tailing in the print result. That is, each bar constituting the barcode 42 is printed in a direction substantially orthogonal to the arrangement direction of the heating elements 40.

図3は、各発熱素子40とチェック対象ファイル31との関係を示す模式図である。チェック対象ファイル31には、各発熱素子40に対して1つのメモリエリアが割当てられている。このメモリエリアには、初期状態において断線チェックの不実施を意味する“0”が格納されている。通信インターフェイス5を介してバーコードの印字データを受信したときには、CPU2が印字データバッファ30にドットパターンを展開処理する際に該バーコードの印字に使用する発熱素子40を特定し、特定した発熱素子40に対応するメモリエリアに断線チェックの実施を意味する“1”を格納する。例えば、印字データバッファ30に展開されたバーコード42の構成でバー42aには印字に使用する発熱素子40a,40b,40cに対するメモリエリアと、バー42bには印字に使用する発熱素子40d,40e,40f,40gに対するメモリエリアとに“1”が格納されることとなる。   FIG. 3 is a schematic diagram showing the relationship between each heating element 40 and the check target file 31. In the check target file 31, one memory area is assigned to each heating element 40. In this memory area, “0”, which means that the disconnection check is not performed in the initial state, is stored. When the barcode print data is received via the communication interface 5, when the CPU 2 develops the dot pattern in the print data buffer 30, the heating element 40 used for printing the barcode is identified, and the identified heating element In the memory area corresponding to 40, “1” indicating execution of disconnection check is stored. For example, in the configuration of the barcode 42 developed in the print data buffer 30, the bar 42a has a memory area for the heating elements 40a, 40b and 40c used for printing, and the bar 42b has the heating elements 40d, 40e and 40e used for printing. “1” is stored in the memory areas for 40f and 40g.

次に、上記のような構成による作用について説明する。
図4は、サーマルプリンタ1の稼動状態においてCPU2が実行する処理の流れ図である。このような処理は、ROM3に格納された制御プログラムに基づいて実行される。先ず、CPU2は、ST1としてホストコンピュータ20から送信されるデータの受信を待機している。
Next, the effect | action by the above structures is demonstrated.
FIG. 4 is a flowchart of processing executed by the CPU 2 when the thermal printer 1 is operating. Such processing is executed based on a control program stored in the ROM 3. First, the CPU 2 waits for reception of data transmitted from the host computer 20 as ST1.

このときホストコンピュータ20から送信される主なデータには、印字データ、モード選択コマンド、バーコード指定コマンドおよび印字コマンドがある。
上記モード選択コマンドは、断線チェックの結果、印字の際に通電する発熱素子40の中に断線しているものが含まれると判明した場合に、ホストコンピュータ20にエラーステータスを送信して印字を行わない印字中止モードとホストコンピュータ20に警告ステータスを送信して印字を実行する印字実行モードとを切換えるよう命じるコマンドである。
At this time, main data transmitted from the host computer 20 includes print data, a mode selection command, a bar code designation command, and a print command.
As a result of the disconnection check, the mode selection command sends an error status to the host computer 20 to perform printing when it is determined that a disconnected element is included in the heating element 40 that is energized during printing. This is a command for instructing to switch between a print cancel mode that does not exist and a print execution mode in which a warning status is transmitted to the host computer 20 to execute printing.

上記バーコード指定コマンドは、同時に受信した印字データがバーコードを含むものであることを示し、該印字データの印字に使用する発熱素子40を特定するよう命じるコマンドである。   The bar code designation command is a command for indicating that the print data received at the same time includes a bar code and specifying the heating element 40 used for printing the print data.

上記印字コマンドは、受信した印字データをドットイメージとして印字データバッファ30に展開処理し、その展開処理したドットイメージに基づいて印字を行うように命じるコマンドである。   The print command is a command for developing the received print data as a dot image in the print data buffer 30 and performing printing based on the developed dot image.

さて、ホストコンピュータ20から印字データまたは各種コマンドを受信したと判断したときには(ST1のYes)、CPU2は、ST2として受信したデータが上記モード選択コマンドであるか否かを判断する。そして、受信したデータが上記モード選択コマンドであると判断したときには(ST2のYes)、ST3として受信したモード選択コマンドにて指定された上記印字中止モード若しくは印字実行モードの種別をRAM4または別個に設けた不揮発性メモリなどに記憶する。しかる後、ST1の処理に戻り、他の印字データまたはコマンドの受信を待つ。すなわち、ST1〜ST3の処理は、印字の際に通電する発熱素子40の中に断線している発熱素子40が含まれる場合に当該印字データに基づく印字を中止するか否かの選択を受け付ける選択受付手段を構成する。   When it is determined that print data or various commands have been received from the host computer 20 (Yes in ST1), the CPU 2 determines whether the data received as ST2 is the mode selection command. When it is determined that the received data is the mode selection command (Yes in ST2), the type of the print stop mode or the print execution mode designated by the mode selection command received as ST3 is provided in the RAM 4 or separately. Store in non-volatile memory. Thereafter, the process returns to ST1 and waits for reception of other print data or commands. That is, in the processes of ST1 to ST3, when the disconnected heating element 40 is included in the heating element 40 that is energized at the time of printing, a selection for accepting selection of whether or not to stop printing based on the print data is selected. The reception means is configured.

一方、ST2の処理にて受信したデータが上記モード選択コマンドではないと判断したときには(ST2のNo)、CPU2は、ST4として受信したデータが印字データであるか否かを判断する。そして、受信したデータが印字データであると判断したときには(ST4のYes)、ST5として受信した印字データを印字データバッファ30にドットイメージとして展開処理する。しかる後、ST6として印字データと共にバーコード指定コマンドを受信したか否かを判断する(データ判断手段)。印字データと共にバーコード指定コマンドを受信したと判断したときには(ST6のYes)、ST7としてST5の処理にて印字データバッファ30に展開処理したドットイメージに基づき、印字の際に通電する発熱素子40すなわち断線チェックの対象となる発熱素子40を特定し、特定した発熱素子40に対応するチェック対象ファイル31のメモリエリアに“1”を格納する(発熱素子特定手段)。ST7の処理の後若しくはST6の処理にて印字データと共にバーコード指定コマンドを受信していないと判断したとき(ST6のNo)には、ST1の処理に戻り、他の印字データまたはコマンドの受信を待つ。そして、その後印字データを受信したときにも順次受信した印字データを印字データバッファ30に展開処理し、バーコード指定コマンドを伴うときには、印字に使用する発熱素子40を特定してチェック対象ファイル31を更新していくこととなる。   On the other hand, when determining that the data received in the process of ST2 is not the mode selection command (No in ST2), the CPU 2 determines whether or not the data received as ST4 is print data. When it is determined that the received data is print data (Yes in ST4), the print data received as ST5 is expanded in the print data buffer 30 as a dot image. Thereafter, in ST6, it is determined whether or not a barcode designation command is received together with the print data (data determination means). When it is determined that the barcode designation command has been received together with the print data (Yes in ST6), based on the dot image developed in the print data buffer 30 in ST5 as ST7, the heating element 40 energized during printing, that is, The heating element 40 that is the subject of the disconnection check is specified, and “1” is stored in the memory area of the check target file 31 corresponding to the specified heating element 40 (heating element specifying means). When it is determined that the barcode designation command is not received together with the print data after the process of ST7 or the process of ST6 (No in ST6), the process returns to the process of ST1 to receive another print data or command. wait. Then, when the print data is subsequently received, the received print data is expanded in the print data buffer 30. When accompanied by a barcode designation command, the heating element 40 used for printing is specified and the check target file 31 is set. It will be updated.

一方、ST4の処理にて受信したデータが印字データではないと判断したときには(ST4のNo)、CPU2は、ST8として受信したデータが上記印字コマンドであるか否かを判断する。そして、受信したデータが上記印字コマンドであると判断したときには(ST8のYes)、ST9としてチェック対象ファイル31に断線チェック対象の発熱素子40が記憶されているか否か、すなわち “1”が記憶されたメモリエリアがあるか否かを判断する。断線チェック対象の発熱素子40が記憶されていないと判断したときには(ST9のNo)、ST10として印字処理を実行する。この印字処理では、駆動コントローラ8の制御下にて搬送モータ12が駆動されて印字媒体41を搬送し、印字データバッファ30に展開処理されたドットイメージに基づいてヘッドコントローラ9が各発熱素子40への通電を制御することで行われる。   On the other hand, when determining that the data received in the process of ST4 is not print data (No in ST4), the CPU 2 determines whether or not the data received as ST8 is the print command. When it is determined that the received data is the above print command (Yes in ST8), whether or not the heating element 40 subject to disconnection check is stored in the check target file 31 as ST9, that is, “1” is stored. It is determined whether or not there is a memory area. When it is determined that the heating element 40 subject to the disconnection check is not stored (No in ST9), the printing process is executed as ST10. In this printing process, the conveyance motor 12 is driven under the control of the drive controller 8 to convey the printing medium 41, and the head controller 9 sends the heating elements 40 to the heating elements 40 based on the dot image developed in the printing data buffer 30. This is done by controlling the energization.

一方、ST9の処理にて断線チェック対象の発熱素子40が記憶されていると判断したときには(ST9のYes)、CPU2は、ST11としてチェック対象ファイル31のメモリエリアに“1”が格納された発熱素子40に対して断線チェックを実行する。そしてこの断線チェックの結果に基づき、ST12として断線チェックを行った発熱素子40のいずれかに断線したものがあるか否かを判断する(断線判断手段)。このとき、断線している発熱素子40がないと判断したときには(ST12のNo)、上記ST10の印字処理を実行する。   On the other hand, when it is determined in ST9 that the heating element 40 subject to the disconnection check is stored (Yes in ST9), the CPU 2 generates heat in which “1” is stored in the memory area of the check target file 31 as ST11. A disconnection check is performed on the element 40. Then, based on the result of the disconnection check, it is determined whether or not any of the heating elements 40 that have been subjected to the disconnection check in ST12 is disconnected (disconnection determination means). At this time, when it is determined that there is no disconnected heating element 40 (No in ST12), the printing process in ST10 is executed.

一方、断線している発熱素子40が有ると判断したときには(ST12のYes)、CPU2は、ST13としてRAM4または別個に設けた不揮発性メモリに記憶された印字中止モード若しくは印字実行モードの種別を判断する。このとき、印字実行モードに設定されていると判断したときには(ST13の“警告・印字実行”)、ST14として通信インターフェイス5を介してホストコンピュータ20に断線している発熱素子40がある旨の警告ステータスを送信し、ST10の印字処理を実行する。   On the other hand, when it is determined that there is a disconnected heating element 40 (Yes in ST12), the CPU 2 determines the type of the print stop mode or the print execution mode stored in the RAM 4 or a separately provided nonvolatile memory as ST13. To do. At this time, when it is determined that the print execution mode is set (“warning / print execution” in ST13), a warning that there is a heating element 40 that is disconnected to the host computer 20 via the communication interface 5 as ST14. The status is transmitted and the printing process of ST10 is executed.

一方、ST13の処理にて印字中止モードに設定されていると判断したときには(ST13の“エラー・印字中止”)、ST15として通信インターフェイス5を介してホストコンピュータ20に断線している発熱素子40があるため印字を中止した旨のエラーステータスを送信する。すなわち、ST14またはST15の処理にてホストコンピュータ20に発熱素子40の中に断線しているものが含まれる旨を出力する出力手段を構成する。また、ホストコンピュータ20への出力と共に、またはホストコンピュータ20への出力に代えて表示デバイス11に断線した発熱素子40がある旨の警告などを行うようにして当該出力手段を構成してもよい。   On the other hand, when it is determined in the process of ST13 that the print cancel mode is set (“error / print cancel” of ST13), the heating element 40 that is disconnected to the host computer 20 via the communication interface 5 is detected as ST15. Therefore, an error status indicating that printing has been canceled is sent. That is, an output means is configured to output to the host computer 20 that the heater element 40 includes a broken wire in the processing of ST14 or ST15. Further, the output means may be configured so as to give a warning that the heating element 40 is disconnected in the display device 11 together with the output to the host computer 20 or instead of the output to the host computer 20.

ST8の処理にて受信したデータが印字コマンドでないと判断したとき(ST8のNo)、ホストコンピュータ20から受信したデータが上記各モード選択コマンド、印字データまたは印字コマンドのいずれでもないので、CPU2は、ST16としてそのコマンドなどに応じた処理を実行する。   When it is determined that the data received in the process of ST8 is not a print command (No in ST8), the data received from the host computer 20 is not any of the mode selection command, print data, or print command. In ST16, processing corresponding to the command is executed.

また、ST10の印字処理、ST15のエラーステータスの送信処理またはST16の処理の後には、CPU2は、ST17としてチェック対象ファイル31を含むRAM4に記憶された各種データおよび印字データバッファ30に展開処理されたドットイメージをクリアし、ST1の処理に戻って次のデータの受信を待つ。   Further, after the printing process of ST10, the error status transmission process of ST15, or the process of ST16, the CPU 2 develops various data stored in the RAM 4 including the check target file 31 and the print data buffer 30 as ST17. The dot image is cleared, and the process returns to ST1 to wait for reception of the next data.

このように、サーマルプリンタ1は、受信した印字データがバーコードを含むものであるときには、バーコードを構成する各バーの印字に使用する発熱素子40のみに対する断線チェックを自動的に行い、文字やイメージなど他の印字データの印字にのみ使用される発熱素子40に対しては断線チェックを行わない。そのため、全ての発熱素子40に対して断線チェックを行う場合に比べて短時間に断線チェックを完了することができる。このとき断線チェックを行っていない発熱素子40が断線していたとしても、バーコードを構成する各バーでない部分であればバーコードの印字結果には影響がないので、バーコードスキャナによる読み取りに支障をきたすことはない。   As described above, when the received print data includes a bar code, the thermal printer 1 automatically performs a disconnection check on only the heating elements 40 used for printing each bar constituting the bar code, and thereby, characters, images, etc. A disconnection check is not performed for the heating element 40 used only for printing other print data. Therefore, the disconnection check can be completed in a shorter time compared to the case where the disconnection check is performed on all the heating elements 40. At this time, even if the heating element 40 that has not been checked for disconnection is disconnected, the barcode printing result is not affected as long as it is not a portion of each bar constituting the barcode. Never come.

また、ユーザが指示せずとも必要なときには自動的に断線チェックを行うので、断線チェックの実施に関して印字結果の使用用途に応じた個別のシステムを組むことなく、断線チェックに要する時間を大幅に短縮しつつも高精度な印字結果を保証することができる。   In addition, since the disconnection check is automatically performed when necessary without any instruction from the user, the time required for the disconnection check is greatly reduced without having to build a separate system according to the intended use of the print results for the execution of the disconnection check. However, a highly accurate printing result can be guaranteed.

また、モード選択コマンドにより発熱素子40の断線が検出されたときに印字を実行するか中止するかを選択することができるので、より当該サーマルプリンタ1のユーザの使用状況に応じた好適な設定が実現できる。   In addition, since it is possible to select whether to execute printing or to cancel when a disconnection of the heat generating element 40 is detected by the mode selection command, a more suitable setting according to the usage status of the user of the thermal printer 1 can be made. realizable.

なお、この発明は前記実施形態そのままに限定されるものではなく、実施段階においては、その要旨を逸脱しない範囲内にて各構成要素を適宜変形して具体化することができる。   In addition, this invention is not limited to the said embodiment as it is, In an implementation stage, in the range which does not deviate from the summary, each component can be deform | transformed and embodied suitably.

例えば、上記実施の形態においてはバーコードを印字する際に使用する発熱素子40に対して断線チェックを行う場合について説明したがこれに限定されず、二次元コードやOCR(Optical Character Reader:光学文字読取装置)で読み取られることを前提に印字される文字など高精度な印字結果を所望する印字データについても本発明を適用することができる。かかる場合には、ホストコンピュータ20から印字データとともに断線チェックを要する旨の所定のコマンドを送信するようにし、ST6の処理にてバーコード指定コマンドの受信の有無を判断する代わりに上記所定のコマンドの有無を判断するようにすればよい。   For example, in the above-described embodiment, the case where the disconnection check is performed on the heating element 40 used when printing a barcode has been described. However, the present invention is not limited to this, and a two-dimensional code or OCR (Optical Character Reader) is used. The present invention can also be applied to print data for which a high-precision print result is desired, such as characters printed on the premise of being read by a reading device. In such a case, a predetermined command indicating that a disconnection check is required is sent from the host computer 20 together with the print data, and instead of determining whether or not a bar code designation command has been received in the process of ST6, The presence or absence may be determined.

また、ST12の処理にて発熱素子に断線があるか否かを判断する際、1つでも断線があればST13の処理に進むのではなく、予め定めた所定数以下の断線である場合にはST10の処理に進んで印字処理を実行し、当該所定数以上である場合にはST13の処理に進むようにしてもよい。これにより、より詳細にユーザが所望する印字精度に見合った設定を実現することができる。   Further, when determining whether or not there is a disconnection in the heating element in the process of ST12, if there is even one disconnection, the process does not proceed to the process of ST13, but if the disconnection is equal to or less than a predetermined number. The process may proceed to ST10 to execute the printing process, and if it is the predetermined number or more, the process may proceed to ST13. As a result, it is possible to realize a setting corresponding to the printing accuracy desired by the user in more detail.

また、印字データおよび各種コマンドをホストコンピュータ20から受信して印字を行うとしたが、入力デバイス11からの入力に応じて印字データおよび各種コマンドを生成する構成としてもよいし、印字データとバーコード指定コマンドとを紐付けて記憶した記憶部を設けてそこから所定の印字データを印字するようにしてもよい。   In addition, the print data and various commands are received from the host computer 20 and printing is performed. However, the print data and various commands may be generated in response to the input from the input device 11, or the print data and the barcode may be generated. A storage unit that stores the designation command in association with it may be provided, and predetermined print data may be printed therefrom.

また、本発明に係るサーマルプリンタをPOS(Point Of Sales)端末などに内蔵されたレシートプリンタに適用できることはもちろんである。   Of course, the thermal printer according to the present invention can be applied to a receipt printer built in a POS (Point Of Sales) terminal or the like.

この他、前記実施形態に開示されている複数の構成要素を適宜組み合わせることにより種々の発明を形成することができる。例えば、実施形態に示される全体構成要素から幾つかの構成要素を削除してもよい。   In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from the overall components shown in the embodiment.

本発明の一実施形態におけるサーマルプリンタの要部構成を示すブロック図。1 is a block diagram showing a main configuration of a thermal printer according to an embodiment of the present invention. 同実施形態において印字媒体にバーコードを印字する際の状態を示す模式図。FIG. 3 is a schematic diagram illustrating a state when a barcode is printed on a print medium in the embodiment. 同実施形態における発熱素子とチェック対象ファイルとの関係を示す模式図。The schematic diagram which shows the relationship between the heat generating element in the same embodiment, and a check object file. 同実施形態においてCPUが実行する処理の流れ図。The flowchart of the process which CPU performs in the same embodiment.

符号の説明Explanation of symbols

1…サーマルプリンタ、2…CPU、3…ROM、4…RAM、5…通信インターフェイス、6…表示コントローラ、7…入力コントローラ、8…駆動コントローラ、9…ヘッドコントローラ、13…サーマルヘッド、20…ホストコンピュータ、30…印字データバッファ、31…チェック対象ファイル、40…発熱素子   DESCRIPTION OF SYMBOLS 1 ... Thermal printer, 2 ... CPU, 3 ... ROM, 4 ... RAM, 5 ... Communication interface, 6 ... Display controller, 7 ... Input controller, 8 ... Drive controller, 9 ... Head controller, 13 ... Thermal head, 20 ... Host Computer, 30 ... print data buffer, 31 ... file to be checked, 40 ... heating element

Claims (5)

複数の発熱素子を有するサーマルヘッドを備え、印字データに基づき前記発熱素子に通電することで印字媒体に対する印字を行うサーマルプリンタにおいて、
前記印字データに基づいて印字の際に通電する前記発熱素子を特定する発熱素子特定手段と、
この発熱素子特定手段が特定した印字の際に通電する前記発熱素子の中に断線している発熱素子が含まれるか否かを判断する断線判断手段と、
この断線判断手段が前記印字の際に通電する発熱素子の中に断線している発熱素子が含まれると判断したとき、その旨を出力する出力手段と、
を具備してなることを特徴とするサーマルプリンタ。
In a thermal printer that includes a thermal head having a plurality of heating elements and performs printing on a print medium by energizing the heating elements based on print data.
Heating element specifying means for specifying the heating element to be energized during printing based on the print data;
A disconnection determining means for determining whether or not a disconnected heat generating element is included in the heat generating element that is energized during printing specified by the heat generating element specifying means;
When the disconnection determining means determines that the disconnected heating element is included in the heating element energized at the time of printing, an output means for outputting that effect;
A thermal printer comprising:
前記印字データが断線検査を要する印字データであるか否かを判断するデータ判断手段をさらに備え、
前記発熱素子特定手段は、前記データ判断手段が断線検査を要する印字データであると判断したとき、当該印字データに基づいて印字の際に通電する発熱素子を特定することを特徴とする請求項1に記載のサーマルプリンタ。
Further comprising data determining means for determining whether the print data is print data that requires a disconnection inspection;
2. The heating element specifying unit, when the data determining unit determines that the print data requires a disconnection inspection, specifies a heating element to be energized during printing based on the print data. Thermal printer as described in
前記データ判断手段は、前記印字データにバーコードが含まれるとき、当該印字データが断線検査を要する印字データであると判断することを特徴とする請求項2に記載のサーマルプリンタ。   The thermal printer according to claim 2, wherein when the print data includes a barcode, the data determination unit determines that the print data is print data that requires a disconnection inspection. 前記断線判断手段が前記印字の際に通電する発熱素子の中に断線している発熱素子が含まれると判断したとき、当該印字データに基づく印字を中止することを特徴とする請求項1乃至3のうちいずれか1に記載のサーマルプリンタ。   4. The printing based on the print data is stopped when the disconnection determining means determines that a disconnected heat generating element is included in the heat generating element energized during the printing. The thermal printer of any one of these. 前記断線判断手段が前記印字の際に通電する発熱素子の中に断線している発熱素子が含まれると判断した場合に当該印字データに基づく印字を中止するか否かの選択を受け付ける選択受付手段をさらに具備し、
この選択受付手段が印字を中止するとの選択を受け付けている場合であって前記断線判断手段が前記印字の際に通電する発熱素子の中に断線している発熱素子が含まれると判断したとき、当該印字データに基づく印字を中止することを特徴とする請求項1乃至3のうちいずれか1に記載のサーマルプリンタ。
Selection accepting means for accepting a selection as to whether or not to stop printing based on the print data when the disconnection judging means judges that a heat generating element that is disconnected is included in the heat generating elements energized during the printing. Further comprising
When the selection accepting unit accepts the selection of canceling printing, and when the disconnection determining unit determines that the disconnected heating element is included in the heating element energized at the time of printing, 4. The thermal printer according to claim 1, wherein printing based on the print data is stopped.
JP2008061465A 2008-03-11 2008-03-11 Thermal printer Withdrawn JP2009214456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008061465A JP2009214456A (en) 2008-03-11 2008-03-11 Thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008061465A JP2009214456A (en) 2008-03-11 2008-03-11 Thermal printer

Publications (1)

Publication Number Publication Date
JP2009214456A true JP2009214456A (en) 2009-09-24

Family

ID=41186856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008061465A Withdrawn JP2009214456A (en) 2008-03-11 2008-03-11 Thermal printer

Country Status (1)

Country Link
JP (1) JP2009214456A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015037704A1 (en) * 2013-09-13 2015-03-19 サトーホールディングス株式会社 Thermal printer
JP2017185628A (en) * 2016-03-31 2017-10-12 三菱重工メカトロシステムズ株式会社 Control device, printer, charge receiving machine, control method and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015037704A1 (en) * 2013-09-13 2015-03-19 サトーホールディングス株式会社 Thermal printer
JP2015054474A (en) * 2013-09-13 2015-03-23 サトーホールディングス株式会社 Thermal printer
CN105531117A (en) * 2013-09-13 2016-04-27 佐藤控股株式会社 Thermal printer
US9738091B2 (en) 2013-09-13 2017-08-22 Sato Holdings Kabushiki Kaisha Thermal printer
JP2017185628A (en) * 2016-03-31 2017-10-12 三菱重工メカトロシステムズ株式会社 Control device, printer, charge receiving machine, control method and program

Similar Documents

Publication Publication Date Title
JP2015009476A (en) Print control apparatus, print control method and program
KR101429850B1 (en) Recording device and control method of a recording device
US8873096B2 (en) Media processing device and POS system
US9224275B2 (en) Media processing method using multiple processing units for performing multiple processes
US10046577B2 (en) Printing device, printing system, and control method of a printing device
JP2009214456A (en) Thermal printer
JP5556248B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2011108133A (en) Recording control device, control method, and program
JP2011068022A (en) Recording device, control method of recording device and program
JP6372170B2 (en) Printer control apparatus, print system, control method, and control program
JP2013230662A (en) Recording control device, recording device and control method of recording device
JP6056196B2 (en) Medium processing apparatus and POS system
JP4142897B2 (en) Printing device and printing system
JP2007030263A (en) Printer and method for controlling the same
US10510059B2 (en) Printer device
CN102529454B (en) Recording device and control method thereof
US20150277832A1 (en) Printer Control Device, Printing System, and Control Method
US20190210377A1 (en) Printer and printer system
CN107111919B (en) Print data processing device, print data processing method, program, and printing system
JP2010012668A (en) Printing apparatus, control method of printing apparatus and print control program
JP2006281718A (en) Printing method of setting value, management method of setting value and printer
JP5828398B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2006315279A (en) Thermal printer
JP2017081027A (en) Printer, control method for the same and program
JP5924126B2 (en) Medium processing apparatus and POS system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100901

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20121004

A977 Report on retrieval

Effective date: 20121012

Free format text: JAPANESE INTERMEDIATE CODE: A971007